epic-designer
Version:
基于vue3的设计器,可视化开发页面表单
2 lines (1 loc) • 1.66 kB
JavaScript
;var i=Object.create;var p=Object.defineProperty;var n=Object.getOwnPropertyDescriptor;var c=Object.getOwnPropertyNames;var r=Object.getPrototypeOf,d=Object.prototype.hasOwnProperty;var s=(e,l,o,a)=>{if(l&&typeof l=="object"||typeof l=="function")for(let t of c(l))!d.call(e,t)&&t!==o&&p(e,t,{get:()=>l[t],enumerable:!(a=n(l,t))||a.enumerable});return e};var u=(e,l,o)=>(o=e!=null?i(r(e)):{},s(l||!e||!e.__esModule?p(o,"default",{value:e,enumerable:!0}):o,e));const b={bindModel:"value",component:async()=>(await import("ant-design-vue")).CheckboxGroup,config:{attribute:[{field:"field",label:"字段名",type:"input"},{field:"label",label:"标题",type:"input"},{field:"componentProps.defaultValue",label:"默认值",type:"checkbox"},{componentProps:{allowClear:!0,options:[{label:"大号",value:"large"},{label:"中等",value:"middle"},{label:"小型",value:"small"}],placeholder:"请选择"},field:"componentProps.size",label:"尺寸",type:"select"},{field:"componentProps.disabled",label:"禁用",type:"switch"},{field:"componentProps.hidden",label:"隐藏",type:"switch"},{field:"componentProps.options",label:"选项管理",layout:"vertical",type:"EOptionsEditor"},{componentProps:{ruleType:"array"},description:"校验规则需要配合表单使用",field:"rules",label:"表单校验",layout:"vertical",type:"ERuleEditor"}],event:[{description:"值变化时",type:"change"}]},defaultSchema:{componentProps:{options:[{label:"选项1",value:"选项1"},{label:"选项2",value:"选项2"}]},field:"checkbox",input:!0,label:"多选框",type:"checkbox"},groupName:"表单",icon:"icon--epic--dialogs-outline-rounded",sort:860};module.exports=b;