UNPKG

epic-designer

Version:

基于vue3的设计器,可视化开发页面表单

2 lines (1 loc) 2.99 kB
"use strict";var a=Object.create;var n=Object.defineProperty;var r=Object.getOwnPropertyDescriptor;var m=Object.getOwnPropertyNames;var i=Object.getPrototypeOf,c=Object.prototype.hasOwnProperty;var s=(o,e,l,p)=>{if(e&&typeof e=="object"||typeof e=="function")for(let t of m(e))!c.call(o,t)&&t!==l&&n(o,t,{get:()=>e[t],enumerable:!(p=r(e,t))||p.enumerable});return o};var d=(o,e,l)=>(l=o!=null?a(i(o)):{},s(e||!o||!o.__esModule?n(l,"default",{value:o,enumerable:!0}):l,o));const u={bindModel:"value",component:async()=>(await import("ant-design-vue")).TimePicker,config:{attribute:[{field:"field",label:"字段名",type:"input"},{field:"label",label:"标题",type:"input"},{field:"componentProps.defaultValue",label:"默认值",type:"time"},{field:"componentProps.placeholder",label:"占位内容",type:"input"},{componentProps:{placeholder:"请输入"},field:"componentProps.format",label:"显示格式",type:"input"},{componentProps:{placeholder:"请输入"},field:"componentProps.valueFormat",label:"数据格式",type:"input"},{componentProps:{allowClear:!0,options:[{label:"大号",value:"large"},{label:"中等",value:"middle"},{label:"小型",value:"small"}],placeholder:"请选择"},field:"componentProps.size",label:"尺寸",type:"select"},{componentProps:{placeholder:"请输入"},field:"componentProps.hourStep",label:"小时选项间隔",type:"number"},{componentProps:{placeholder:"请输入"},field:"componentProps.minuteStep",label:"分钟选项间隔",type:"number"},{componentProps:{placeholder:"请输入"},field:"componentProps.secondStep",label:"秒选项间隔",type:"number"},{componentProps:{allowClear:!0,options:[{label:"bottomLeft",value:"bottomLeft"},{label:"bottomRight",value:"bottomRight"},{label:"topLeft",value:"topLeft"},{label:"topRight",value:"topRight"}],placeholder:"请选择"},field:"componentProps.placement",label:"弹出框位置",type:"select"},{changeSync:!0,field:"componentProps.use12Hours",label:"12小时制",onChange({value:o,values:e}){e.componentProps.defaultValue=null,o?(e.componentProps.format="h:mm:ss a",e.componentProps.valueFormat="h:mm:ss a"):(e.componentProps.format="HH:mm:ss",e.componentProps.valueFormat="HH:mm:ss")},type:"switch"},{componentProps:{checkedValue:!1,unCheckedValue:!0},field:"componentProps.bordered",label:"无边框",type:"switch"},{field:"componentProps.inputReadOnly",label:"禁止键盘输入",type:"switch"},{field:"componentProps.allowClear",label:"可清空",type:"switch"},{field:"componentProps.disabled",label:"禁用",type:"switch"},{field:"componentProps.hidden",label:"隐藏",type:"switch"},{description:"校验规则需要配合表单使用",field:"rules",label:"表单校验",layout:"vertical",type:"ERuleEditor"}],event:[{description:"值变化时",type:"change"}]},defaultSchema:{componentProps:{format:"HH:mm:ss",placeholder:"请输入",valueFormat:"HH:mm:ss"},field:"time",input:!0,label:"时间选择器",type:"time"},groupName:"表单",icon:"icon--epic--time-line",sort:920};module.exports=u;