UNPKG

snowy-designer

Version:

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

32 lines (31 loc) 978 B
import { defineComponent as i, computed as l, createBlock as f, openBlock as s, unref as d, createSlots as S, renderList as c, withCtx as h, renderSlot as m, createElementBlock as w, Fragment as _ } from "vue"; import { Input as k } from "ant-design-vue"; import v from "./index.js"; const g = /* @__PURE__ */ i({ __name: "input", props: { componentSchema: {} }, setup(p) { const u = p, n = l(() => { var e; return ((e = u.componentSchema) == null ? void 0 : e.slots) ?? {}; }), a = l(() => (v.ownSlots ?? []).filter((t) => n.value[t])); return (e, t) => (s(), f(d(k), null, S({ _: 2 }, [ c(a.value, (o) => ({ name: o, fn: h(() => [ m(e.$slots, `edit-${o}`, {}, () => [ (s(!0), w(_, null, c(n.value[o], (r) => m(e.$slots, "node", { key: r.id, componentSchema: r })), 128)) ]) ]) })) ]), 1024)); } }); export { g as default };