UNPKG

snowy-designer

Version:

基于Epic-Designer-Pro版本的设计器,可视化开发页面表单

38 lines (37 loc) 1.14 kB
import { defineComponent as a, computed as s, createBlock as d, openBlock as o, unref as h, withCtx as u, renderSlot as t, createElementBlock as p, Fragment as c, renderList as l } from "vue"; import { NInput as x } from "naive-ui/lib/input"; const B = /* @__PURE__ */ a({ __name: "input", props: { componentSchema: { default: () => ({}), require: !0, type: Object } }, setup(m) { const r = m, f = s(() => { var e; return ((e = r.componentSchema.slots) == null ? void 0 : e.suffix) ?? []; }), i = s(() => { var e; return ((e = r.componentSchema.slots) == null ? void 0 : e.prefix) ?? []; }); return (e, S) => (o(), d(h(x), null, { prefix: u(() => [ t(e.$slots, "edit-prefix", {}, () => [ (o(!0), p(c, null, l(i.value, (n) => t(e.$slots, "node", { componentSchema: n })), 256)) ]) ]), suffix: u(() => [ t(e.$slots, "edit-suffix", {}, () => [ (o(!0), p(c, null, l(f.value, (n) => t(e.$slots, "node", { componentSchema: n })), 256)) ]) ]), _: 3 })); } }); export { B as default };