tk-eui-plus
Version:
43 lines (42 loc) • 1.02 kB
JavaScript
import { defineComponent as i, useSlots as r, resolveComponent as d, openBlock as l, createBlock as c, withCtx as s, unref as a, renderSlot as u, createCommentVNode as f } from "vue";
const p = /* @__PURE__ */ i({
__name: "index",
props: {
direction: {
type: String,
default: "horizontal"
},
borderStyle: {
type: String,
default: "solid"
},
contentPosition: {
type: String,
default: "center"
}
},
setup(e) {
let t = r();
return (o, m) => {
const n = d("el-divider");
return l(), c(n, {
direction: e.direction,
"border-style": e.borderStyle,
"content-position": e.contentPosition
}, {
default: s(() => [
a(t).default ? u(o.$slots, "default", { key: 0 }) : f("v-if", !0)
]),
_: 3
/* FORWARDED */
}, 8, ["direction", "border-style", "content-position"]);
};
}
}), S = {
install(e) {
e.component("tkDivider", p);
}
};
export {
S as default
};