UNPKG

tk-eui-plus

Version:

32 lines (31 loc) 770 B
import { defineComponent as l, useSlots as a, resolveComponent as r, openBlock as s, createBlock as p, mergeProps as c, withCtx as m, unref as u, renderSlot as d, createCommentVNode as f } from "vue"; const i = /* @__PURE__ */ l({ __name: "index", props: { //选项卡标题 label: { type: String, default: "" } }, setup(e) { let n = a(); return (t, _) => { const o = r("el-tab-pane"); return s(), p(o, c({ label: e.label }, t.$attrs), { default: m(() => [ u(n).default ? d(t.$slots, "default", { key: 0 }) : f("v-if", !0) ]), _: 3 /* FORWARDED */ }, 16, ["label"]); }; } }), k = { install(e) { e.component("tkTabPane", i); } }; export { k as default };