UNPKG

epic-designer-gold

Version:

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

11 lines (10 loc) 44.5 kB
"use strict";var d=Object.create;var s=Object.defineProperty;var u=Object.getOwnPropertyDescriptor;var m=Object.getOwnPropertyNames;var b=Object.getPrototypeOf,h=Object.prototype.hasOwnProperty;var f=(l,e,t,a)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of m(e))!h.call(l,n)&&n!==t&&s(l,n,{get:()=>e[n],enumerable:!(a=u(e,n))||a.enumerable});return l};var o=(l,e,t)=>(t=l!=null?d(b(l)):{},f(e||!l||!l.__esModule?s(t,"default",{value:l,enumerable:!0}):t,l));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const P=require("epic-designer-gold"),y=require("dayjs"),v=require("ant-design-vue"),w={component:async()=>(await import("ant-design-vue")).Input,groupName:"表单",icon:"icon--epic--border-color-outline-rounded",sort:700,defaultSchema:{label:"输入框",type:"input",field:"input",input:!0,componentProps:{placeholder:"请输入"}},config:{attribute:[{label:"字段名",type:"input",field:"field"},{label:"标题",type:"input",field:"label"},{label:"占位内容",type:"input",field:"componentProps.placeholder"},{label:"默认值",type:"input",field:"componentProps.defaultValue",componentProps:{placeholder:"请输入"}},{label:"输入类型",type:"select",componentProps:{placeholder:"请选择",allowClear:!0,options:[{label:"text",value:"text"},{label:"number",value:"number"},{label:"password",value:"password"}]},field:"componentProps.type"},{label:"尺寸",type:"select",componentProps:{placeholder:"请选择",allowClear:!0,options:[{label:"大号",value:"large"},{label:"中等",value:"middle"},{label:"小型",value:"small"}]},field:"componentProps.size"},{label:"无边框",type:"switch",componentProps:{checkedValue:!1,unCheckedValue:!0},field:"componentProps.bordered"},{label:"最大输入长度",type:"number",field:"componentProps.maxlength",componentProps:{placeholder:"请输入"}},{label:"展示字数",type:"switch",field:"componentProps.showCount"},{label:"可清空",type:"switch",field:"componentProps.allowClear"},{label:"禁用",type:"switch",field:"componentProps.disabled"},{label:"隐藏",type:"switch",field:"componentProps.hidden"},{label:"表单校验",type:"ERuleEditor",layout:"vertical",field:"rules",describe:"校验规则需要配合表单使用"}],event:[{type:"input",describe:"输入值时"},{type:"change",describe:"值修改时"},{type:"pressEnter",describe:"按下回车时"},{type:"focus",describe:"获取焦点时"},{type:"blur",describe:"失去焦点时"}],action:[{type:"focus",describe:"使输入框获取焦点"},{type:"blur",describe:"使输入框失去焦点"},{type:"select",describe:"选中输入框中的文字"}]},bindModel:"value"},g={component:async()=>(await import("ant-design-vue")).Textarea,groupName:"表单",icon:"icon--epic--edit-square-outline-rounded",sort:705,defaultSchema:{label:"文本域",type:"textarea",field:"textarea",input:!0,componentProps:{placeholder:"请输入"}},config:{attribute:[{label:"字段名",type:"input",field:"field"},{label:"标题",type:"input",field:"label"},{label:"默认值",type:"textarea",field:"componentProps.defaultValue",componentProps:{placeholder:"请输入"}},{label:"占位内容",type:"input",field:"componentProps.placeholder"},{label:"最小行数",type:"number",field:"componentProps.autoSize.minRows",componentProps:{placeholder:"请输入"}},{label:"最大行数",type:"number",field:"componentProps.autoSize.maxRows",componentProps:{placeholder:"请输入"}},{label:"尺寸",type:"select",componentProps:{placeholder:"请选择",allowClear:!0,options:[{label:"大号",value:"large"},{label:"中等",value:"middle"},{label:"小型",value:"small"}]},field:"componentProps.size"},{label:"最大输入长度",type:"number",field:"componentProps.maxLength",componentProps:{placeholder:"请输入"}},{label:"无边框",type:"switch",componentProps:{checkedValue:!1,unCheckedValue:!0},field:"componentProps.bordered"},{label:"统计字数",type:"switch",field:"componentProps.showCount"},{label:"可清除",type:"switch",field:"componentProps.allowClear"},{label:"禁用",type:"switch",field:"componentProps.disabled"},{label:"隐藏",type:"switch",field:"componentProps.hidden"},{label:"表单校验",type:"ERuleEditor",layout:"vertical",field:"rules",describe:"校验规则需要配合表单使用"}],event:[{type:"input",describe:"输入值"},{type:"change",describe:"值修改"},{type:"pressEnter",describe:"按下回车的回调"},{type:"focus",describe:"获取焦点"},{type:"blur",describe:"失去焦点"}],action:[{type:"focus",describe:"使 input 获取焦点"},{type:"blur",describe:"使 input 失去焦点"},{type:"select",describe:"选中 input 中的文字"}]},bindModel:"value"},k={component:async()=>(await import("ant-design-vue")).InputNumber,groupName:"表单",icon:"icon--epic--123-rounded",sort:710,defaultSchema:{label:"数字输入框",type:"number",field:"number",input:!0,componentProps:{style:{width:"100%"},placeholder:"请输入"}},config:{attribute:[{label:"字段名",type:"input",field:"field"},{label:"标题",type:"input",field:"label"},{label:"默认值",type:"number",field:"componentProps.defaultValue",componentProps:{placeholder:"请输入",size:"middle"}},{label:"占位内容",type:"input",field:"componentProps.placeholder"},{label:"尺寸",type:"select",componentProps:{placeholder:"请选择",allowClear:!0,options:[{label:"大号",value:"large"},{label:"中等",value:"middle"},{label:"小型",value:"small"}]},field:"componentProps.size"},{label:"键盘快捷行为",type:"switch",field:"componentProps.keyboard"},{label:"最大值",type:"number",field:"componentProps.max",componentProps:{placeholder:"请输入"}},{label:"最小值",type:"number",field:"componentProps.min",componentProps:{placeholder:"请输入"}},{label:"精度",type:"number",field:"componentProps.precision",componentProps:{placeholder:"请输入"}},{label:"步长",type:"number",field:"componentProps.step",componentProps:{placeholder:"请输入"}},{label:"字符模式",type:"switch",field:"componentProps.stringMode"},{label:"无边框",type:"switch",componentProps:{checkedValue:!1,unCheckedValue:!0},field:"componentProps.bordered"},{label:"可清空",type:"switch",field:"componentProps.allowClear"},{label:"禁用",type:"switch",field:"componentProps.disabled"},{label:"隐藏",type:"switch",field:"componentProps.hidden"},{label:"表单校验",type:"ERuleEditor",layout:"vertical",field:"rules",describe:"校验规则需要配合表单使用",componentProps:{ruleType:"number"}}],event:[{type:"input",describe:"输入值"},{type:"change",describe:"值修改"},{type:"pressEnter",describe:"按下回车的回调"},{type:"focus",describe:"获取焦点"},{type:"blur",describe:"失去焦点"}],action:[{type:"focus",describe:"使 input 获取焦点"},{type:"blur",describe:"使 input 失去焦点"},{type:"select",describe:"选中 input 中的文字"}]},bindModel:"value"},C={component:async()=>(await import("ant-design-vue")).InputPassword,groupName:"表单",icon:"icon--epic--lock-outline",sort:720,defaultSchema:{label:"密码输入框",type:"password",field:"password",input:!0,componentProps:{placeholder:"请输入"}},config:{attribute:[{label:"字段名",type:"input",field:"field"},{label:"标题",type:"input",field:"label"},{label:"占位内容",type:"input",field:"componentProps.placeholder"},{label:"尺寸",type:"select",componentProps:{placeholder:"请选择",allowClear:!0,options:[{label:"大号",value:"large"},{label:"中等",value:"middle"},{label:"小型",value:"small"}]},field:"componentProps.size"},{label:"无边框",type:"switch",componentProps:{checkedValue:!1,unCheckedValue:!0},field:"componentProps.bordered"},{label:"最大输入长度",type:"number",field:"componentProps.maxLength",componentProps:{placeholder:"请输入"}},{label:"统计字数",type:"switch",field:"componentProps.showCount"},{label:"密码可见",type:"switch",field:"componentProps.visible"},{label:"隐藏切换按钮",type:"switch",componentProps:{checkedValue:!1,unCheckedValue:!0},field:"componentProps.visibilityToggle"},{label:"可清空",type:"switch",field:"componentProps.allowClear"},{label:"禁用",type:"switch",field:"componentProps.disabled"},{label:"隐藏",type:"switch",field:"componentProps.hidden"},{label:"表单校验",type:"ERuleEditor",layout:"vertical",field:"rules",describe:"校验规则需要配合表单使用"}],event:[{type:"input",describe:"输入值"},{type:"change",describe:"值修改"},{type:"pressEnter",describe:"按下回车的回调"},{type:"focus",describe:"获取焦点"},{type:"blur",describe:"失去焦点"}],action:[{type:"focus",describe:"使 input 获取焦点"},{type:"blur",describe:"使 input 失去焦点"},{type:"select",describe:"选中 input 中的文字"}]},bindModel:"value"},q={component:async()=>(await import("ant-design-vue")).RadioGroup,groupName:"表单",icon:"icon--epic--radio-button-checked-outline",sort:850,defaultSchema:{label:"单选框",type:"radio",field:"radio",input:!0,componentProps:{options:[{label:"选项1",value:"选项1"},{label:"选项2",value:"选项2"}]}},config:{attribute:[{label:"字段名",type:"input",field:"field"},{label:"标题",type:"input",field:"label"},{label:"默认值",type:"radio",field:"componentProps.defaultValue"},{label:"尺寸",type:"select",componentProps:{placeholder:"请选择",allowClear:!0,options:[{label:"大号",value:"large"},{label:"中等",value:"middle"},{label:"小型",value:"small"}]},field:"componentProps.size"},{label:"按钮样式",type:"switch",componentProps:{checkedValue:"button",unCheckedValue:"default"},field:"componentProps.optionType"},{label:"禁用",type:"switch",field:"componentProps.disabled"},{label:"隐藏",type:"switch",field:"componentProps.hidden"},{label:"选项管理",type:"EOptionsEditor",layout:"vertical",field:"componentProps.options"},{label:"表单校验",type:"ERuleEditor",layout:"vertical",field:"rules",describe:"校验规则需要配合表单使用"}],event:[{type:"change",describe:"值变化时"}]},bindModel:"value"},V={component:async()=>(await import("ant-design-vue")).CheckboxGroup,groupName:"表单",icon:"icon--epic--dialogs-outline-rounded",sort:860,defaultSchema:{label:"多选框",type:"checkbox",field:"checkbox",input:!0,componentProps:{options:[{label:"选项1",value:"选项1"},{label:"选项2",value:"选项2"}]}},config:{attribute:[{label:"字段名",type:"input",field:"field"},{label:"标题",type:"input",field:"label"},{label:"默认值",type:"checkbox",field:"componentProps.defaultValue"},{label:"尺寸",type:"select",componentProps:{placeholder:"请选择",allowClear:!0,options:[{label:"大号",value:"large"},{label:"中等",value:"middle"},{label:"小型",value:"small"}]},field:"componentProps.size"},{label:"禁用",type:"switch",field:"componentProps.disabled"},{label:"隐藏",type:"switch",field:"componentProps.hidden"},{label:"选项管理",type:"EOptionsEditor",layout:"vertical",field:"componentProps.options"},{label:"表单校验",type:"ERuleEditor",layout:"vertical",field:"rules",describe:"校验规则需要配合表单使用",componentProps:{ruleType:"array"}}],event:[{type:"change",describe:"值变化时"}]},bindModel:"value"},Y={component:async()=>(await import("ant-design-vue")).Select,groupName:"表单",icon:"icon--epic--select",sort:900,defaultSchema:{label:"选择框",type:"select",field:"select",input:!0,componentProps:{options:[{label:"选项1",value:"选项1"},{label:"选项2",value:"选项2"}],placeholder:"请选择"}},config:{attribute:[{label:"字段名",type:"input",field:"field"},{label:"标题",type:"input",field:"label"},{label:"占位内容",type:"input",field:"componentProps.placeholder",componentProps:{placeholder:"请输入"}},{label:"默认值",type:"select",field:"componentProps.defaultValue"},{label:"尺寸",type:"select",componentProps:{placeholder:"请选择",allowClear:!0,options:[{label:"大号",value:"large"},{label:"中等",value:"middle"},{label:"小型",value:"small"}]},field:"componentProps.size"},{label:"弹窗高度",type:"number",componentProps:{placeholder:"请输入"},field:"componentProps.listHeight"},{label:"模式",type:"select",componentProps:{options:[{label:"multiple",value:"multiple"},{label:"tags",value:"tags"},{label:"combobox",value:"combobox"}],placeholder:"请选择",allowClear:!0},field:"componentProps.mode"},{label:"可搜索",type:"switch",field:"componentProps.showSearch"},{label:"选中选项后清空搜索框",type:"switch",field:"componentProps.autoClearSearchValue",show:({values:l})=>l.componentProps.mode&&l.componentProps.showSearch},{label:"最大tag文本长度",type:"number",field:"componentProps.maxTagTextLength",show:({values:l})=>l.componentProps.mode},{label:"最大tag显示数",type:"number",field:"componentProps.maxTagCount",show:({values:l})=>l.componentProps.mode},{label:"弹出框位置",type:"select",componentProps:{placeholder:"请选择",allowClear:!0,options:[{label:"bottomLeft",value:"bottomLeft"},{label:"bottomRight",value:"bottomRight"},{label:"topLeft",value:"topLeft"},{label:"topRight",value:"topRight"}]},field:"componentProps.placement"},{label:"无边框",type:"switch",componentProps:{checkedValue:!1,unCheckedValue:!0},field:"componentProps.bordered"},{label:"可清空",type:"switch",field:"componentProps.allowClear"},{label:"labelInValue",type:"switch",field:"componentProps.labelInValue"},{label:"禁用",type:"switch",field:"componentProps.disabled"},{label:"隐藏",type:"switch",field:"componentProps.hidden"},{label:"选项管理",type:"EOptionsEditor",layout:"vertical",field:"componentProps.options"},{label:"表单校验",type:"ERuleEditor",layout:"vertical",field:"rules",describe:"校验规则需要配合表单使用"}],event:[{type:"change",describe:"值修改"},{type:"focus",describe:"获取焦点"},{type:"blur",describe:"失去焦点"}],action:[{type:"focus",describe:"使 input 获取焦点"},{type:"blur",describe:"使 input 失去焦点"},{type:"select",describe:"选中 input 中的文字"}]},bindModel:"value"},E={component:async()=>(await import("ant-design-vue")).Slider,groupName:"表单",icon:"icon--epic--switches",sort:930,defaultSchema:{label:"滑块",type:"slider",field:"slider",input:!0},config:{attribute:[{label:"字段名",type:"input",field:"field"},{label:"标题",type:"input",field:"label"},{label:"默认值",type:"slider",componentProps:{style:{width:"100%"}},field:"componentProps.defaultValue"},{label:"尺寸",type:"select",componentProps:{placeholder:"请选择",allowClear:!0,options:[{label:"大号",value:"large"},{label:"中等",value:"middle"},{label:"小型",value:"small"}]},field:"componentProps.size"},{label:"范围选择",type:"switch",field:"componentProps.range",changeSync:!0,onChange:({value:l,values:e})=>{l?e.componentProps.defaultValue=[0,100]:e.componentProps.defaultValue=0}},{label:"倒转轨道",type:"switch",field:"componentProps.reverse"},{label:"步长",type:"number",field:"componentProps.step",componentProps:{placeholder:"请输入"}},{label:"最小值",type:"number",field:"componentProps.min",componentProps:{placeholder:"请输入"}},{label:"最大值",type:"number",field:"componentProps.max",componentProps:{placeholder:"请输入"}},{label:"垂直模式",type:"switch",field:"componentProps.vertical"},{label:"显示刻度",type:"switch",field:"componentProps.dots"},{label:"禁用",type:"switch",field:"componentProps.disabled"},{label:"隐藏",type:"switch",field:"componentProps.hidden"},{label:"表单校验",type:"ERuleEditor",layout:"vertical",field:"rules",describe:"校验规则需要配合表单使用",componentProps:{ruleType:"number"}}],event:[{type:"afterChange",describe:"与mouseup触发时机一致"},{type:"change",describe:"拖拽结束改变值时"}]},bindModel:"value"},x={component:async()=>(await import("ant-design-vue")).TimePicker,groupName:"表单",icon:"icon--epic--time-line",sort:920,defaultSchema:{label:"时间选择器",type:"time",field:"time",input:!0,componentProps:{valueFormat:"HH:mm:ss",format:"HH:mm:ss",placeholder:"请输入"}},config:{attribute:[{label:"字段名",type:"input",field:"field"},{label:"标题",type:"input",field:"label"},{label:"默认值",type:"time",field:"componentProps.defaultValue"},{label:"占位内容",type:"input",field:"componentProps.placeholder"},{label:"显示格式",type:"input",componentProps:{placeholder:"请输入"},field:"componentProps.format"},{label:"数据格式",type:"input",componentProps:{placeholder:"请输入"},field:"componentProps.valueFormat"},{label:"尺寸",type:"select",componentProps:{placeholder:"请选择",allowClear:!0,options:[{label:"大号",value:"large"},{label:"中等",value:"middle"},{label:"小型",value:"small"}]},field:"componentProps.size"},{label:"小时选项间隔",type:"number",field:"componentProps.hourStep",componentProps:{placeholder:"请输入"}},{label:"分钟选项间隔",type:"number",field:"componentProps.minuteStep",componentProps:{placeholder:"请输入"}},{label:"秒选项间隔",type:"number",field:"componentProps.secondStep",componentProps:{placeholder:"请输入"}},{label:"弹出框位置",type:"select",componentProps:{placeholder:"请选择",allowClear:!0,options:[{label:"bottomLeft",value:"bottomLeft"},{label:"bottomRight",value:"bottomRight"},{label:"topLeft",value:"topLeft"},{label:"topRight",value:"topRight"}]},field:"componentProps.placement"},{label:"12小时制",type:"switch",field:"componentProps.use12Hours",changeSync:!0,onChange({values:l,value:e}){l.componentProps.defaultValue=null,e?(l.componentProps.format="h:mm:ss a",l.componentProps.valueFormat="h:mm:ss a"):(l.componentProps.format="HH:mm:ss",l.componentProps.valueFormat="HH:mm:ss")}},{label:"无边框",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:"ERuleEditor",layout:"vertical",field:"rules",describe:"校验规则需要配合表单使用"}],event:[{type:"change",describe:"值变化时"}]},bindModel:"value"},S={component:()=>Promise.resolve().then(()=>require("../../datePicker-DCH40VJR.cjs")),groupName:"表单",icon:"icon--epic--calendar-month-outline-rounded",sort:910,defaultSchema:{label:"日期选择器",type:"date",field:"date",input:!0,componentProps:{valueFormat:"YYYY-MM-DD",format:"YYYY-MM-DD",type:"date",placeholder:"请选择"}},config:{attribute:[{label:"字段名",type:"input",field:"field"},{label:"标题",type:"input",componentProps:{placeholder:"请输入"},field:"label"},{label:"默认值",type:"date",field:"componentProps.defaultValue"},{label:"日期类型",type:"select",field:"componentProps.type",componentProps:{options:[{label:"日期",value:"date"},{label:"周",value:"week"},{label:"月份",value:"month"},{label:"季度",value:"quarter"},{label:"年份",value:"year"},{label:"日期范围",value:"daterange"},{label:"周范围",value:"weekrange"},{label:"月份范围",value:"monthrange"},{label:"季度范围",value:"quarterrange"},{label:"年份范围",value:"yearrange"}]},changeSync:!0,onChange({values:l,value:e}){l.componentProps.defaultValue=null,["daterange","weekrange","monthrange","yearrange","quarterrange"].includes(e)?l.componentProps.placeholder=["请输入","请输入"]:l.componentProps.placeholder="请输入",["date","daterange"].includes(e)?(l.componentProps.format="YYYY-MM-DD",l.componentProps.valueFormat="YYYY-MM-DD"):["week","weekrange"].includes(e)?(l.componentProps.format="ww [周]",l.componentProps.valueFormat="YYYY-MM-DD"):["month","monthrange"].includes(e)?(l.componentProps.format="YYYY-MM",l.componentProps.valueFormat="YYYY-MM"):["quarter","quarterrange"].includes(e)?(l.componentProps.format="YYYY-Q季度",l.componentProps.valueFormat="YYYY-Q季度"):["year",'"yearrange"'].includes(e)&&(l.componentProps.format="YYYY",l.componentProps.valueFormat="YYYY")}},{label:"增加时间选择",type:"switch",field:"componentProps.showTime",onChange:({value:l,values:e})=>{l?(e.componentProps.valueFormat="YYYY-MM-DD HH:mm:ss",e.componentProps.format="YYYY-MM-DD HH:mm:ss"):(e.componentProps.valueFormat="YYYY-MM-DD",e.componentProps.format="YYYY-MM-DD")},show({values:l}){return["date","daterange"].includes(l.componentProps.type)}},{label:"占位内容",type:"input",field:"componentProps.placeholder",componentProps:{placeholder:"请输入"},show:({values:l})=>!["daterange","weekrange","monthrange","yearrange","quarterrange"].includes(l.componentProps.type)},{label:"开始占位符",type:"input",componentProps:{placeholder:"请输入"},field:"componentProps.placeholder.0",show:({values:l})=>["daterange","weekrange","monthrange","yearrange","quarterrange"].includes(l.componentProps.type)},{label:"结束占位符",type:"input",componentProps:{placeholder:"请输入"},field:"componentProps.placeholder.1",show:({values:l})=>["daterange","weekrange","monthrange","yearrange","quarterrange"].includes(l.componentProps.type)},{label:"显示格式",type:"input",componentProps:{placeholder:"请输入"},field:"componentProps.format"},{label:"数据格式",type:"input",componentProps:{placeholder:"请输入"},field:"componentProps.valueFormat"},{label:"尺寸",type:"select",componentProps:{placeholder:"请选择",allowClear:!0,options:[{label:"大号",value:"large"},{label:"中等",value:"middle"},{label:"小型",value:"small"}]},field:"componentProps.size"},{label:"弹出框位置",type:"select",componentProps:{placeholder:"请选择",allowClear:!0,options:[{label:"bottomLeft",value:"bottomLeft"},{label:"bottomRight",value:"bottomRight"},{label:"topLeft",value:"topLeft"},{label:"topRight",value:"topRight"}]},field:"componentProps.placement"},{label:"无边框",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:"ERuleEditor",layout:"vertical",field:"rules",describe:"校验规则需要配合表单使用"}],event:[{type:"change",describe:"值变化时"},{type:"ok",describe:"点击确定按钮时"}]},bindModel:"modelValue"},R={component:async()=>(await import("ant-design-vue")).Cascader,groupName:"表单",icon:"icon--epic--full-coverage-outline",sort:900,defaultSchema:{label:"级联选择器",type:"cascader",field:"cascader",input:!0,componentProps:{options:[{label:"选项1",value:"选项1"},{label:"选项2",value:"选项2"}],placeholder:"请选择"}},config:{attribute:[{label:"字段名",type:"input",field:"field"},{label:"标题",type:"input",field:"label"},{label:"默认值",type:"cascader",field:"componentProps.defaultValue"},{label:"占位内容",type:"input",field:"componentProps.placeholder"},{label:"尺寸",type:"select",componentProps:{placeholder:"请选择",allowClear:!0,options:[{label:"大号",value:"large"},{label:"中等",value:"middle"},{label:"小型",value:"small"}]},field:"componentProps.size"},{label:"弹出框位置",type:"select",componentProps:{placeholder:"请选择",allowClear:!0,options:[{label:"bottomLeft",value:"bottomLeft"},{label:"bottomRight",value:"bottomRight"},{label:"topLeft",value:"topLeft"},{label:"topRight",value:"topRight"}]},field:"componentProps.placement"},{label:"可搜索",type:"switch",field:"componentProps.showSearch"},{label:"无边框",type:"switch",componentProps:{checkedValue:!1,unCheckedValue:!0},field:"componentProps.bordered"},{label:"多选",type:"switch",field:"componentProps.multiple"},{label:"标签最大长度",type:"number",field:"componentProps.maxTagTextLength",componentProps:{placeholder:"请输入"},show:({values:l})=>l.componentProps.multiple},{label:"标签显示数量",type:"number",field:"componentProps.maxTagCount",componentProps:{placeholder:"请输入"},show:({values:l})=>l.componentProps.multiple},{label:"回填方式",type:"select",componentProps:{placeholder:"请选择",clearable:!0,options:[{label:"SHOW_PARENT",value:"SHOW_PARENT"},{label:"SHOW_CHILD",value:"SHOW_CHILD"}]},field:"componentProps.showCheckedStrategy",show:({values:l})=>l.componentProps.multiple},{label:"可清空",type:"switch",field:"componentProps.allowClear"},{label:"禁用",type:"switch",field:"componentProps.disabled"},{label:"隐藏",type:"switch",field:"componentProps.hidden"},{label:"选项管理",type:"EOptionsEditor",layout:"vertical",field:"componentProps.options",componentProps:{tree:!0}},{label:"表单校验",type:"ERuleEditor",layout:"vertical",field:"rules",describe:"校验规则需要配合表单使用",componentProps:{ruleType:"array"}}],event:[{type:"change",describe:"值变化时"}]},bindModel:"value"},M={component:async()=>(await import("ant-design-vue")).Switch,groupName:"表单",icon:"icon--epic--toggle-off-outline",sort:930,defaultSchema:{label:"开关",type:"switch",field:"switch",input:!0,componentProps:{defaultValue:!1}},config:{attribute:[{label:"字段名",type:"input",field:"field"},{label:"标题",type:"input",field:"label"},{label:"默认值",type:"switch",field:"componentProps.defaultValue"},{label:"ON状态值",type:"input",field:"componentProps.checkedValue",componentProps:{placeholder:"请输入"},onChange(l){setTimeout(()=>c(l))}},{label:"OFF状态值",type:"input",field:"componentProps.unCheckedValue",componentProps:{placeholder:"请输入"},onChange(l){setTimeout(()=>c(l))}},{label:"ON状态描述",type:"input",field:"componentProps.checkedChildren",componentProps:{placeholder:"请输入"}},{label:"OFF状态描述",type:"input",field:"componentProps.unCheckedChildren",componentProps:{placeholder:"请输入"}},{label:"尺寸",type:"select",componentProps:{placeholder:"请选择",allowClear:!0,options:[{label:"default",value:"default"},{label:"small",value:"small"}]},field:"componentProps.size"},{label:"禁用",type:"switch",field:"componentProps.disabled"},{label:"隐藏",type:"switch",field:"componentProps.hidden"},{label:"表单校验",type:"ERuleEditor",layout:"vertical",field:"rules",describe:"校验规则需要配合表单使用",componentProps:{ruleType:"boolean"}}],event:[{type:"change",describe:"值变化时"}]},bindModel:"checked"};function c(l){var t;let e=((t=l.values.componentProps)==null?void 0:t.unCheckedValue)||!1;l.values.componentProps.unCheckedValue===""&&delete l.values.componentProps.unCheckedValue,l.values.componentProps.checkedValue===""&&delete l.values.componentProps.checkedValue,l.values.componentProps?l.values.componentProps.defaultValue=e:l.values.componentProps={defaultValue:e}}const T={component:()=>Promise.resolve().then(()=>require("../../uploadImage-r7uyNOKB.cjs")),groupName:"表单",icon:"icon--epic--imagesmode-outline-rounded",sort:920,defaultSchema:{label:"上传图片",type:"upload-image",field:"uploadImage",input:!0,componentProps:{action:"https://ess-ds.com/prod-api/center-file/file/upload"}},config:{attribute:[{label:"字段名",type:"input",field:"field"},{label:"标题",type:"input",field:"label"},{label:"请求地址",type:"input",field:"componentProps.action"},{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"},z={component:()=>Promise.resolve().then(()=>require("../../uploadFile-LCUznBf2.cjs")),groupName:"表单",icon:"icon--epic--upload-rounded",sort:920,defaultSchema:{label:"上传文件",type:"upload-file",field:"uploadFile",input:!0,componentProps:{action:"https://ess-ds.com/prod-api/center-file/file/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"},L={component:()=>Promise.resolve().then(()=>require("../../card-hriyYYMn.cjs")),groupName:"布局",icon:"icon--epic--wysiwyg-rounded",sort:700,defaultSchema:{label:"卡片布局",type:"card",children:[]},config:{attribute:[{label:"标题",type:"input",field:"label"},{label:"尺寸",type:"select",componentProps:{placeholder:"请选择",allowClear:!0,options:[{label:"default",value:"default"},{label:"small",value:"small"}]},field:"componentProps.size"},{label:"无边框",type:"switch",componentProps:{checkedValue:!1,unCheckedValue:!0},field:"componentProps.bordered"},{label:"鼠标悬停阴影",type:"switch",field:"componentProps.hoverable"},{label:"加载状态",type:"switch",field:"componentProps.loading"},{label:"隐藏",type:"switch",field:"componentProps.hidden"}]}},D={component:()=>Promise.resolve().then(()=>require("../../row-BpXp0tC3.cjs")),groupName:"布局",icon:"icon--epic--width-normal-outline",sort:800,defaultSchema:{label:"栅格布局",type:"row",children:[{type:"col",children:[],componentProps:{span:12}},{type:"col",children:[],componentProps:{span:12}}]},editConstraints:{childImmovable:!0},config:{attribute:[{label:"垂直对齐方式",type:"select",componentProps:{style:{width:"100%"},options:[{label:"top",value:"top"},{label:"middle",value:"middle"},{label:"bottom",value:"bottom"}],placeholder:"请选择"},field:"componentProps.align"},{label:"水平排列方式",type:"select",componentProps:{style:{width:"100%"},options:[{label:"start",value:"start"},{label:"end",value:"end"},{label:"center",value:"center"},{label:"space-around",value:"space-around"},{label:"space-between",value:"space-between"}],placeholder:"请选择"},field:"componentProps.justify"},{label:"栅格间距",type:"input",field:"componentProps.gutter",componentProps:{placeholder:"请输入"}},{label:"列编辑",type:"EColEditor",field:"children"},{label:"不自动换行",type:"switch",componentProps:{checkedValue:!1,unCheckedValue:!0},field:"componentProps.wrap"},{label:"隐藏",type:"switch",field:"componentProps.hidden"}]}},N={component:()=>Promise.resolve().then(()=>require("../../col-B4lx76O5.cjs")),defaultSchema:{label:"栅格布局-列",type:"col",children:[],componentProps:{span:6}},config:{attribute:[{label:"占位格数",type:"number",field:"componentProps.span"}]}},r={component:()=>Promise.resolve().then(()=>require("../../form-D2qj0Dvr.cjs")),groupName:"表单",icon:"icon--epic--list-alt-outline-rounded",sort:600,defaultSchema:{label:"表单",type:"form",componentProps:{name:"default",labelWidth:"100px",labelLayout:"fixed",labelCol:{span:5},wrapperCol:{span:19}},children:[]},config:{attribute:[{label:"Name",type:"input",field:"componentProps.name"},{label:"表单布局",type:"radio",componentProps:{placeholder:"请选择",allowClear:!0,options:[{label:"水平",value:"horizontal"},{label:"垂直",value:"vertical"},{label:"内联",value:"inline"}],"option-type":"button"},field:"componentProps.layout"},{label:"标签布局",type:"radio",field:"componentProps.labelLayout",componentProps:{options:[{label:"固定宽度",value:"fixed"},{label:"自适应宽度",value:"flex"}],"option-type":"button"}},{label:"标签宽度",type:"EInputSize",field:"componentProps.labelWidth",show:({values:l})=>{var e;return((e=l.componentProps)==null?void 0:e.labelLayout)==="fixed"}},{label:"标签占比",type:"input",field:"componentProps.labelCol.span",show:({values:l})=>{var e;return((e=l.componentProps)==null?void 0:e.labelLayout)==="flex"},componentProps:{placeholder:"请输入"}},{label:"控件占比",type:"input",field:"componentProps.wrapperCol.span",show:({values:l})=>{var e;return((e=l.componentProps)==null?void 0:e.labelLayout)==="flex"},componentProps:{placeholder:"请输入"}},{label:"标签对齐",type:"radio",componentProps:{options:[{label:"左",value:"left"},{label:"右",value:"right"}],"option-type":"button"},field:"componentProps.labelAlign"},{label:"尺寸",type:"select",defaultValue:"default",componentProps:{placeholder:"请选择",allowClear:!0,options:[{label:"大号",value:"large"},{label:"中等",value:"middle"},{label:"小型",value:"small"}]},field:"componentProps.size"},{label:"隐藏冒号",type:"switch",componentProps:{checkedValue:!1,unCheckedValue:!0},field:"componentProps.colon"},{label:"隐藏必须标志",type:"switch",field:"componentProps.hideRequiredMark"},{label:"标签文本换行",type:"switch",field:"componentProps.labelWrap"},{label:"滚动校验错误处",type:"switch",field:"componentProps.scrollToFirstError"},{label:"禁用",type:"switch",field:"componentProps.disabled"},{label:"隐藏",type:"switch",field:"componentProps.hidden"}],action:[{type:"getData",describe:"获取表单数据"},{type:"setData",describe:"设置表单数据"},{type:"validate",describe:"校验表单"}]}},F={component:()=>Promise.resolve().then(()=>require("../../formItem-0oXWwtrG.cjs")),defaultSchema:{label:"表单项",type:"form-item"},config:{}},H={component:()=>Promise.resolve().then(()=>require("../../button-C48gWpMn.cjs")),groupName:"表单",icon:"icon--epic--fit-screen-rounded",sort:1200,defaultSchema:{label:"按钮",type:"button",field:"input",input:!1},config:{attribute:[{label:"标题",type:"input",field:"label"},{label:"类型",type:"select",componentProps:{placeholder:"请选择",clearable:!0,options:[{label:"primary",value:"primary"},{label:"ghost",value:"ghost"},{label:"dashed",value:"dashed"},{label:"link",value:"link"},{label:"text",value:"text"},{label:"default",value:"default"}]},field:"componentProps.type"},{label:"操作类型",type:"select",componentProps:{placeholder:"请选择",clearable:!0,options:[{label:"button",value:"button"},{label:"submit",value:"submit"},{label:"reset",value:"reset"}]},field:"componentProps.htmlType"},{label:"链接",type:"input",field:"componentProps.href",componentProps:{allowClear:!0,placeholder:"请输入"}},{label:"链接打开方式",type:"select",field:"componentProps.target",show:({values:l})=>{var e;return(e=l.componentProps)==null?void 0:e.href},componentProps:{placeholder:"请选择",clearable:!0,options:[{label:"blank",value:"_blank"},{label:"parent",value:"_parent"},{label:"self",value:"_self"},{label:"top",value:"_top"}]}},{label:"尺寸",type:"select",componentProps:{placeholder:"请选择",allowClear:!0,options:[{label:"default",value:"default"},{label:"small",value:"small"},{label:"large",value:"large"}]},field:"componentProps.size"},{label:"形状",type:"select",componentProps:{placeholder:"请选择",clearable:!0,options:[{label:"default",value:"default"},{label:"circle",value:"circle"},{label:"round",value:"round"}]},field:"componentProps.shape"},{label:"幽灵按钮",type:"switch",field:"componentProps.ghost"},{label:"加载状态",type:"switch",field:"componentProps.loading"},{label:"宽度自适应",type:"switch",field:"componentProps.block"},{label:"危险按钮",type:"switch",field:"componentProps.danger"},{label:"禁用",type:"switch",field:"componentProps.disabled"},{label:"隐藏",type:"switch",field:"componentProps.hidden"}],event:[{type:"click",describe:"点击按钮时"},{type:"dblclick",describe:"双击按钮时"}]}},I={component:()=>Promise.resolve().then(()=>require("../../modal-BgQNXEZY.cjs")),icon:"epic-icon-xiala",defaultSchema:{label:"模态框",type:"modal",children:[]},config:{attribute:[{label:"标题",type:"input",field:"title"}]}},O={component:async()=>(await import("ant-design-vue")).Input,groupName:"表单",icon:"icon--epic--palette-outline",sort:950,defaultSchema:{label:"颜色选择器",type:"color-picker",field:"color-picker",input:!0,componentProps:{type:"color",style:{width:"80px"}}},config:{attribute:[{label:"字段名",type:"input",field:"field"},{label:"标题",type:"input",field:"label"},{label:"默认值",type:"input",field:"componentProps.defaultValue"},{label:"尺寸",type:"select",componentProps:{placeholder:"请选择",allowClear:!0,options:[{label:"大号",value:"large"},{label:"中等",value:"middle"},{label:"小型",value:"small"}]},field:"componentProps.size"},{label:"无边框",type:"switch",componentProps:{checkedValue:!1,unCheckedValue:!0},field:"componentProps.bordered"},{label:"可清空",type:"switch",field:"componentProps.allowClear"},{label:"禁用",type:"switch",field:"componentProps.disabled"},{label:"隐藏",type:"switch",field:"componentProps.hidden"},{label:"表单校验",type:"ERuleEditor",layout:"vertical",field:"rules",describe:"校验规则需要配合表单使用"}],event:[{type:"change",describe:"值修改时"},{type:"focus",describe:"获取焦点时"},{type:"blur",describe:"失去焦点时"}],action:[]},bindModel:"value"};function A(l=P.pluginManager){var i;const e=v.version.split("."),t=parseInt(e[0]),a=document.createElement("style");t>3?(a.appendChild(document.createTextNode(` .epic-modal-ant .epic-modal-main { padding: 4px 12px 12px; } .epic-modal-ant .ant-modal-title { padding: 16px 16px 0px; } .epic-modal-ant .ant-modal-content { padding: 0px; }`)),document.head.appendChild(a)):r.config.attribute=(i=r.config.attribute)==null?void 0:i.filter(p=>p.label!=="禁用"),l.component("Collapse",async()=>(await import("ant-design-vue")).Collapse),l.component("CollapseItem",async()=>(await import("ant-design-vue")).CollapsePanel),l.component("Tabs",async()=>(await import("ant-design-vue")).Tabs),l.component("TabPane",async()=>(await import("ant-design-vue")).TabPane),[r,F,w,g,k,C,q,V,Y,E,x,S,R,M,T,z,O,H,L,D,N,I].forEach(p=>{l.registerComponent(p),l.addBaseComponentTypes(p.defaultSchema.type)}),l.setInitialized(!0)}function _(l="zh-cn"){switch(y.locale(l),l.toLowerCase()){case"az-az":Promise.resolve().then(()=>require("../../az-BHlmRKxT.cjs")).then(e=>e.az);break;case"bg-bg":Promise.resolve().then(()=>require("../../bg-DRyWA3-W.cjs")).then(e=>e.bg);break;case"bn-bd":Promise.resolve().then(()=>require("../../bn-bd-DsQtVph4.cjs")).then(e=>e.bnBd);break;case"by-by":Promise.resolve().then(()=>require("../../be-Bix86zGn.cjs")).then(e=>e.be);break;case"ca-es":Promise.resolve().then(()=>require("../../ca-BTQUSb29.cjs")).then(e=>e.ca);break;case"cs-cz":Promise.resolve().then(()=>require("../../cs-fe0nQEUY.cjs")).then(e=>e.cs);break;case"da-dk":Promise.resolve().then(()=>require("../../da-DHmiHyZA.cjs")).then(e=>e.da);break;case"de-de":Promise.resolve().then(()=>require("../../de-2hHpT7Ze.cjs")).then(e=>e.de);break;case"el-gr":Promise.resolve().then(()=>require("../../el-CUlPbKiq.cjs")).then(e=>e.el);break;case"en-gb":Promise.resolve().then(()=>require("../../en-gb-py_kegyw.cjs")).then(e=>e.enGb);break;case"en-us":Promise.resolve().then(()=>require("../../en-C1ESb179.cjs")).then(e=>e.en);break;case"es-es":Promise.resolve().then(()=>require("../../es-CV4N9sQJ.cjs")).then(e=>e.es);break;case"et-ee":Promise.resolve().then(()=>require("../../et-DKRhU9OP.cjs")).then(e=>e.et);break;case"fa-ir":Promise.resolve().then(()=>require("../../fa-DUcAIQzU.cjs")).then(e=>e.fa);break;case"fi-fi":Promise.resolve().then(()=>require("../../fi-CyT899pV.cjs")).then(e=>e.fi);break;case"fr-ca":Promise.resolve().then(()=>require("../../fr-ca-D872_l2Z.cjs")).then(e=>e.frCa);break;case"fr-fr":Promise.resolve().then(()=>require("../../fr-B_IotmK8.cjs")).then(e=>e.fr);break;case"ga-ie":Promise.resolve().then(()=>require("../../ga-Upa8swLh.cjs")).then(e=>e.ga);break;case"gl-es":Promise.resolve().then(()=>require("../../gl-buZ-VDaz.cjs")).then(e=>e.gl);break;case"he-il":Promise.resolve().then(()=>require("../../he-CwFEkyZP.cjs")).then(e=>e.he);break;case"hi-in":Promise.resolve().then(()=>require("../../hi-BSHDLwY4.cjs")).then(e=>e.hi);break;case"hr-hr":Promise.resolve().then(()=>require("../../hr-BuVBNZ4z.cjs")).then(e=>e.hr);break;case"hu-hu":Promise.resolve().then(()=>require("../../hu-CXrkHTYq.cjs")).then(e=>e.hu);break;case"hy-am":Promise.resolve().then(()=>require("../../hy-am-IbMCW8s4.cjs")).then(e=>e.hyAm);break;case"id-id":Promise.resolve().then(()=>require("../../id-DG0GoH6p.cjs")).then(e=>e.id);break;case"is-is":Promise.resolve().then(()=>require("../../is-DKGME0z-.cjs")).then(e=>e.is);break;case"it-it":Promise.resolve().then(()=>require("../../it-ZWKZeGyD.cjs")).then(e=>e.it);break;case"ja-jp":Promise.resolve().then(()=>require("../../ja-pfO_QIN1.cjs")).then(e=>e.ja);break;case"ka-ge":Promise.resolve().then(()=>require("../../ka-JF7_8awE.cjs")).then(e=>e.ka);break;case"kk-kz":Promise.resolve().then(()=>require("../../kk-8gl4nJDr.cjs")).then(e=>e.kk);break;case"km-kh":Promise.resolve().then(()=>require("../../km-BhO_ypYk.cjs")).then(e=>e.km);break;case"kmr-iq":Promise.resolve().then(()=>require("../../ku-5MauiT2q.cjs")).then(e=>e.ku);break;case"kn-in":Promise.resolve().then(()=>require("../../kn-DbnERw-L.cjs")).then(e=>e.kn);break;case"ko-kr":Promise.resolve().then(()=>require("../../ko-DlQtUQ6r.cjs")).then(e=>e.ko);break;case"ku-iq":Promise.resolve().then(()=>require("../../ku-5MauiT2q.cjs")).then(e=>e.ku);break;case"lt-lt":Promise.resolve().then(()=>require("../../lt-CkWoaAYB.cjs")).then(e=>e.lt);break;case"lv-lv":Promise.resolve().then(()=>require("../../lv-BOhsxkyH.cjs")).then(e=>e.lv);break;case"mk-mk":Promise.resolve().then(()=>require("../../mk-Bjsw8OIP.cjs")).then(e=>e.mk);break;case"ml-in":Promise.resolve().then(()=>require("../../ml-B2Uwy4uy.cjs")).then(e=>e.ml);break;case"mn-mn":Promise.resolve().then(()=>require("../../mn-CsItTiQc.cjs")).then(e=>e.mn);break;case"ms-my":Promise.resolve().then(()=>require("../../ms-my-BgFBTdYR.cjs")).then(e=>e.msMy);break;case"nb-no":Promise.resolve().then(()=>require("../../nb-BdFW_T0n.cjs")).then(e=>e.nb);break;case"ne-np":Promise.resolve().then(()=>require("../../ne-wk64JT9v.cjs")).then(e=>e.ne);break;case"nl-be":Promise.resolve().then(()=>require("../../nl-be-Bo6vnbHY.cjs")).then(e=>e.nlBe);break;case"nl-nl":Promise.resolve().then(()=>require("../../nl-B5Fclgi6.cjs")).then(e=>e.nl);break;case"pl-pl":Promise.resolve().then(()=>require("../../pl-De2Dm_kD.cjs")).then(e=>e.pl);break;case"pt-br":Promise.resolve().then(()=>require("../../pt-br-Cmqeku7l.cjs")).then(e=>e.ptBr);break;case"pt-pt":Promise.resolve().then(()=>require("../../pt-BfCV6EE0.cjs")).then(e=>e.pt);break;case"ro-ro":Promise.resolve().then(()=>require("../../ro-BoP4bVrV.cjs")).then(e=>e.ro);break;case"ru-ru":Promise.resolve().then(()=>require("../../ru-_du5Xwu3.cjs")).then(e=>e.ru);break;case"sk-sk":Promise.resolve().then(()=>require("../../sk-DvU2x_On.cjs")).then(e=>e.sk);break;case"sl-si":Promise.resolve().then(()=>require("../../sl-nqW7xzZa.cjs")).then(e=>e.sl);break;case"sr-rs":Promise.resolve().then(()=>require("../../sr-BnjILg54.cjs")).then(e=>e.sr);break;case"sv-se":Promise.resolve().then(()=>require("../../sv-6b7oq_fA.cjs")).then(e=>e.sv);break;case"ta-in":Promise.resolve().then(()=>require("../../ta-HTr6IFsZ.cjs")).then(e=>e.ta);break;case"th-th":Promise.resolve().then(()=>require("../../th-B1vCpSkb.cjs")).then(e=>e.th);break;case"tr-tr":Promise.resolve().then(()=>require("../../tr-z7Blusoy.cjs")).then(e=>e.tr);break;case"uk-ua":Promise.resolve().then(()=>require("../../uk-8RCZke0G.cjs")).then(e=>e.uk);break;case"ur-pk":Promise.resolve().then(()=>require("../../ur-CPEUOWqh.cjs")).then(e=>e.ur);break;case"vi-vn":Promise.resolve().then(()=>require("../../vi-aBc6LsS_.cjs")).then(e=>e.vi);break;case"zh-cn":Promise.resolve().then(()=>require("../../zh-cn-DTp5Vsak.cjs")).then(e=>e.zhCn);break;case"zh-hk":Promise.resolve().then(()=>require("../../zh-hk-DvIiOtyL.cjs")).then(e=>e.zhHk);break;case"zh-tw":Promise.resolve().then(()=>require("../../zh-tw-OGVt40m9.cjs")).then(e=>e.zhTw);break}}exports.setDateLocale=_;exports.setupAntd=A;