snowy-designer
Version:
基于Epic-Designer-Pro版本的设计器,可视化开发页面表单
2 lines (1 loc) • 547 B
JavaScript
;const e=require("vue"),a=require("element-plus"),u=e.defineComponent({props:{componentSchema:{default:()=>({}),required:!0,type:Object}},setup(t,{slots:n}){return()=>{var c;const r={...t.componentSchema,header:((c=t.componentSchema)==null?void 0:c.label)??""},d=r.children??[];delete r.children;let o=null;return o=d.length?()=>d.map(l=>e.renderSlot(n,"node",{componentSchema:l})):()=>[e.renderSlot(n,"default")],e.h(a.ElCard,r,{default:()=>e.renderSlot(n,"edit-node",{},o),header:()=>e.renderSlot(n,"header")})}}});module.exports=u;