snowy-designer
Version:
基于Epic-Designer-Pro版本的设计器,可视化开发页面表单
44 lines (43 loc) • 1.43 kB
JavaScript
import { defineComponent as C, computed as c, createBlock as s, openBlock as n, unref as p, normalizeProps as k, guardReactiveProps as v, withCtx as a, createElementBlock as i, renderSlot as m, Fragment as d, renderList as u, createTextVNode as y } from "vue";
import { Descriptions as S, DescriptionsItem as _ } from "ant-design-vue";
const b = /* @__PURE__ */ C({
__name: "descriptions",
props: {
componentSchema: {}
},
setup(h) {
const l = h, f = c(() => {
var e;
return {
...l.componentSchema,
title: ((e = l.componentSchema) == null ? void 0 : e.label) ?? ""
};
}), r = c(() => {
const e = { ...f.value }, t = e.children;
return delete e.children, { schemaCopy: e, childComponents: t };
});
return (e, t) => (n(), s(p(S), k(v(r.value.schemaCopy)), {
default: a(() => [
(n(!0), i(d, null, u(r.value.childComponents, (o) => (n(), s(p(_), {
key: o.id,
label: o.componentProps.label
}, {
default: a(() => t[0] || (t[0] = [
y(" sdf ")
])),
_: 2
}, 1032, ["label"]))), 128)),
m(e.$slots, "edit-node", {}, () => [
(n(!0), i(d, null, u(r.value.childComponents, (o) => m(e.$slots, "node", {
key: o.id,
componentSchema: o
})), 128))
])
]),
_: 3
}, 16));
}
});
export {
b as default
};