snowy-designer
Version:
基于Epic-Designer-Pro版本的设计器,可视化开发页面表单
2 lines (1 loc) • 912 B
JavaScript
;const e=require("vue"),l=require("ant-design-vue"),a=e.defineComponent({__name:"badge",props:{componentSchema:{}},setup(r){const o=r,c=e.useAttrs(),s=e.computed(()=>{var t;return((t=o.componentSchema)==null?void 0:t.children)??[]}),u=e.computed(()=>{var t;return((t=o.componentSchema.slots)==null?void 0:t.count)??[]});return(t,d)=>(e.openBlock(),e.createBlock(e.unref(l.Badge),e.normalizeProps(e.guardReactiveProps(e.unref(c))),{count:e.withCtx(()=>[e.renderSlot(t.$slots,"edit-count",{},()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(u.value,n=>e.renderSlot(t.$slots,"node",{componentSchema:n})),256))]),e.renderSlot(t.$slots,"count")]),default:e.withCtx(()=>[e.renderSlot(t.$slots,"edit-node",{},()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value,n=>e.renderSlot(t.$slots,"node",{componentSchema:n})),256))])]),_:3},16))}});module.exports=a;