yk-element-components-v2
Version:
67 lines (66 loc) • 1.87 kB
JavaScript
function v(t, n, s, d, r, a, _, u) {
var e = typeof t == "function" ? t.options : t;
n && (e.render = n, e.staticRenderFns = s, e._compiled = !0), d && (e.functional = !0), a && (e._scopeId = "data-v-" + a);
var o;
if (_ ? (o = function(i) {
i = i || this.$vnode && this.$vnode.ssrContext || this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext, !i && typeof __VUE_SSR_CONTEXT__ < "u" && (i = __VUE_SSR_CONTEXT__), r && r.call(this, i), i && i._registeredComponents && i._registeredComponents.add(_);
}, e._ssrRegister = o) : r && (o = u ? function() {
r.call(
this,
(e.functional ? this.parent : this).$root.$options.shadowRoot
);
} : r), o)
if (e.functional) {
e._injectStyles = o;
var h = e.render;
e.render = function(p, f) {
return o.call(f), h(p, f);
};
} else {
var l = e.beforeCreate;
e.beforeCreate = l ? [].concat(l, o) : [o];
}
return {
exports: t,
options: e
};
}
const m = {
name: "yk-container",
props: {
height: {
type: String,
default: ""
},
direction: String
},
computed: {
isVertical() {
return this.direction === "vertical" ? !0 : this.direction === "horizontal" ? !1 : this.$slots && this.$slots.default ? this.$slots.default.some((t) => {
const n = t.componentOptions && t.componentOptions.tag;
return n === "yk-header" || n === "yk-footer";
}) : !1;
}
}
};
var g = function() {
var n = this, s = n._self._c;
return s("section", { staticClass: "yk-container", class: { "is-vertical": n.isVertical }, style: { height: n.height } }, [n._t("default")], 2);
}, C = [], $ = /* @__PURE__ */ v(
m,
g,
C,
!1,
null,
"af91ac28",
null,
null
);
const c = $.exports, y = {
install(t) {
t.component(c.name, c);
}
};
export {
y as default
};