ai-form-designer
Version:
vue3+adv的设计器,可视化开发页面表单
32 lines (31 loc) • 854 B
JavaScript
import { defineComponent as p, createBlock as a, openBlock as c, unref as m, normalizeProps as s, guardReactiveProps as l, withCtx as u, renderSlot as f, createTextVNode as i, toDisplayString as d } from "vue";
import { Button as _ } from "ant-design-vue";
const x = /* @__PURE__ */ p({
__name: "button",
props: {
componentSchema: {
type: Object,
default: () => ({})
}
},
setup(n) {
const e = n;
return (r, h) => {
var t;
return c(), a(m(_), s(l((t = e.componentSchema) == null ? void 0 : t.componentProps)), {
default: u(() => [
f(r.$slots, "default", {}, () => {
var o;
return [
i(d((o = e.componentSchema) == null ? void 0 : o.label), 1)
];
})
]),
_: 3
}, 16);
};
}
});
export {
x as default
};