gepic
Version:
基于vue3的设计器,可视化开发页面表单
2 lines (1 loc) • 1.31 kB
JavaScript
;const l=e=>Object.freeze(Object.defineProperty({__proto__:null,default:e},Symbol.toStringTag,{value:"Module"})),o={component:()=>Promise.resolve().then(()=>l(require("./uploadFile.cjs"))),groupName:"表单",icon:"icon--epic--upload-rounded",sort:920,defaultSchema:{label:"上传文件",type:"upload-file",field:"uploadFile",input:!0,componentProps:{action:"https://examples.epicjs.cn/epic-mock/common/upload"}},config:{attribute:[{label:"字段名",type:"input",field:"field"},{label:"标题",type:"input",field:"label"},{label:"请求地址",type:"input",field:"componentProps.action"},{label:"列表样式",type:"select",field:"componentProps.listType",componentProps:{placeholder:"请选择",allowClear:!0,options:[{label:"text",value:"text"},{label:"picture",value:"picture"}]}},{label:"多选",type:"switch",field:"componentProps.multiple"},{label:"允许上传最大数量",type:"number",field:"componentProps.maxCount",componentProps:{min:0,placeholder:"请输入"}},{label:"禁用",type:"switch",field:"componentProps.disabled"},{label:"隐藏",type:"switch",field:"componentProps.hidden"},{label:"表单校验",type:"ERuleEditor",layout:"vertical",field:"rules",describe:"校验规则需要配合表单使用",componentProps:{ruleType:"array"}}]},bindModel:"modelValue"};module.exports=o;