UNPKG

yk-element-components-v2

Version:

87 lines (86 loc) 2.19 kB
function c(i, e, r, p, a, d, s, u) { var t = typeof i == "function" ? i.options : i; e && (t.render = e, t.staticRenderFns = r, t._compiled = !0), p && (t.functional = !0), d && (t._scopeId = "data-v-" + d); var o; if (s ? (o = function(n) { n = n || this.$vnode && this.$vnode.ssrContext || this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext, !n && typeof __VUE_SSR_CONTEXT__ < "u" && (n = __VUE_SSR_CONTEXT__), a && a.call(this, n), n && n._registeredComponents && n._registeredComponents.add(s); }, t._ssrRegister = o) : a && (o = u ? function() { a.call( this, (t.functional ? this.parent : this).$root.$options.shadowRoot ); } : a), o) if (t.functional) { t._injectStyles = o; var h = t.render; t.render = function(g, _) { return o.call(_), h(g, _); }; } else { var l = t.beforeCreate; t.beforeCreate = l ? [].concat(l, o) : [o]; } return { exports: i, options: t }; } const v = { name: "yk-header", props: { height: { type: String, default: "64px" }, logo: { type: String, default: "" }, title: { type: String, default: "" }, padding: { type: String, default: "15px" }, background: { type: String, default: "#FFFFFF" }, borderColor: { type: String, default: "#FFFFFF" }, color: { type: String, default: "#000000" } } }; var F = function() { var e = this, r = e._self._c; return r("header", { style: { height: e.height, minHeight: e.height, borderBottom: `1px solid ${e.borderColor}` } }, [r("div", { staticClass: "yk-header-box", style: { paddingLeft: e.padding, paddingRight: e.padding, background: e.background, color: e.color } }, [r("div", { staticClass: "header-logo" }, [r("img", { attrs: { src: e.logo } }), r("span", [e._v(e._s(e.title))])]), r("div", [e._t("headerOperation")], 2)])]); }, m = [], y = /* @__PURE__ */ c( v, F, m, !1, null, "f72de6c2", null, null ); const f = y.exports, C = { install(i) { i.component(f.name, f); } }; export { C as default };