snowy-designer
Version:
基于Epic-Designer-Pro版本的设计器,可视化开发页面表单
35 lines (34 loc) • 1.17 kB
JavaScript
import { defineComponent as f, useAttrs as S, computed as c, createBlock as $, openBlock as n, unref as s, normalizeProps as g, guardReactiveProps as B, withCtx as u, renderSlot as t, createElementBlock as a, Fragment as l, renderList as m } from "vue";
import { Badge as k } from "ant-design-vue";
const _ = /* @__PURE__ */ f({
__name: "badge",
props: {
componentSchema: {}
},
setup(p) {
const r = p, d = S(), i = c(() => {
var e;
return ((e = r.componentSchema) == null ? void 0 : e.children) ?? [];
}), h = c(() => {
var e;
return ((e = r.componentSchema.slots) == null ? void 0 : e.count) ?? [];
});
return (e, v) => (n(), $(s(k), g(B(s(d))), {
count: u(() => [
t(e.$slots, "edit-count", {}, () => [
(n(!0), a(l, null, m(h.value, (o) => t(e.$slots, "node", { componentSchema: o })), 256))
]),
t(e.$slots, "count")
]),
default: u(() => [
t(e.$slots, "edit-node", {}, () => [
(n(!0), a(l, null, m(i.value, (o) => t(e.$slots, "node", { componentSchema: o })), 256))
])
]),
_: 3
}, 16));
}
});
export {
_ as default
};