vxe-table-pro
Version:
Vue table plugins based on vxe-table
45 lines (44 loc) • 1.36 kB
JavaScript
import { defineComponent as c, mergeModels as p, useModel as _, resolveComponent as s, createElementBlock as d, openBlock as t, createVNode as i, withCtx as f, Fragment as b, renderList as v, createBlock as V } from "vue";
import { _ as x } from "./index-B8MbCfO1.mjs";
const C = { class: "w-full tab-container" }, g = /* @__PURE__ */ c({
__name: "index",
props: /* @__PURE__ */ p({
options: {
type: Array,
default: () => []
}
}, {
modelValue: { default: null },
modelModifiers: {}
}),
emits: ["update:modelValue"],
setup(a) {
const l = _(a, "modelValue"), r = (o) => {
l.value = o;
};
return (o, n) => {
const u = s("el-tab-pane"), m = s("el-tabs");
return t(), d("div", C, [
i(m, {
modelValue: l.value,
"onUpdate:modelValue": n[0] || (n[0] = (e) => l.value = e),
class: "demo-tabs",
type: "card",
size: "small",
onTabChange: r
}, {
default: f(() => [
(t(!0), d(b, null, v(a.options, (e) => (t(), V(u, {
label: e.label,
name: e.value
}, null, 8, ["label", "name"]))), 256))
]),
_: 1
}, 8, ["modelValue"])
]);
};
}
}), B = /* @__PURE__ */ x(g, [["__scopeId", "data-v-07d288cf"]]);
export {
B as default
};