epic-designer-gold 0.0.38 → 0.0.39
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/ui/antd/index.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"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"},x={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"},E={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-nwjqcVFU.cjs")),groupName:"表单",icon:"icon--epic--imagesmode-outline-rounded",sort:920,defaultSchema:{label:"上传图片",type:"upload-image",field:"uploadImage",input:!0,componentProps:{action:"https://examples.epicjs.cn/static/upload-img.json"}},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://examples.epicjs.cn/static/upload-img.json"}},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-DZRJyZfk.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 j(l=P.pluginManager){var i;const e=v.version.split("."),t=parseInt(e[0]),a=document.createElement("style");t>3?(a.appendChild(document.createTextNode(`
|
|
1
|
+
"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-nwjqcVFU.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-DZRJyZfk.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(`
|
|
2
2
|
.epic-modal-ant .epic-modal-main {
|
|
3
3
|
padding: 4px 12px 12px;
|
|
4
4
|
}
|
|
@@ -7,4 +7,4 @@
|
|
|
7
7
|
}
|
|
8
8
|
.epic-modal-ant .ant-modal-content {
|
|
9
9
|
padding: 0px;
|
|
10
|
-
}`)),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,x,
|
|
10
|
+
}`)),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-CJXcaytS.cjs")).then(e=>e.az);break;case"bg-bg":Promise.resolve().then(()=>require("../../bg-DCT06eJE.cjs")).then(e=>e.bg);break;case"bn-bd":Promise.resolve().then(()=>require("../../bn-bd-DaKs5QkR.cjs")).then(e=>e.bnBd);break;case"by-by":Promise.resolve().then(()=>require("../../be--_CkdeMD.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-D_hyDJBU.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-BCec0wpC.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-BFLRglxD.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-D1kezmpm.cjs")).then(e=>e.fr);break;case"ga-ie":Promise.resolve().then(()=>require("../../ga-B7Rd2JIZ.cjs")).then(e=>e.ga);break;case"gl-es":Promise.resolve().then(()=>require("../../gl-DI-aVaAh.cjs")).then(e=>e.gl);break;case"he-il":Promise.resolve().then(()=>require("../../he-O14-JKYm.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-BLnv1pCz.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-C40R_fdL.cjs")).then(e=>e.is);break;case"it-it":Promise.resolve().then(()=>require("../../it-D7K-0U_k.cjs")).then(e=>e.it);break;case"ja-jp":Promise.resolve().then(()=>require("../../ja-CAXCMb11.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-Bv8yYeRk.cjs")).then(e=>e.kk);break;case"km-kh":Promise.resolve().then(()=>require("../../km-BmycjYfj.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-CFiXt5hu.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-CoTNe47-.cjs")).then(e=>e.lv);break;case"mk-mk":Promise.resolve().then(()=>require("../../mk-DVN6iYK_.cjs")).then(e=>e.mk);break;case"ml-in":Promise.resolve().then(()=>require("../../ml-DnXJOqZ0.cjs")).then(e=>e.ml);break;case"mn-mn":Promise.resolve().then(()=>require("../../mn-DMIrWGkN.cjs")).then(e=>e.mn);break;case"ms-my":Promise.resolve().then(()=>require("../../ms-my-BoMZ8Hzl.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-VNPqdWFn.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-DBFNL8wC.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-B_N58uu_.cjs")).then(e=>e.ptBr);break;case"pt-pt":Promise.resolve().then(()=>require("../../pt-BaTZB0XW.cjs")).then(e=>e.pt);break;case"ro-ro":Promise.resolve().then(()=>require("../../ro-Cnuhxb40.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-DRjgEzVO.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-C-CGWPlT.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-Cc6k-QUE.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-Dyfq5Qgz.cjs")).then(e=>e.vi);break;case"zh-cn":Promise.resolve().then(()=>require("../../zh-cn-BKQHxHe9.cjs")).then(e=>e.zhCn);break;case"zh-hk":Promise.resolve().then(()=>require("../../zh-hk-hNFRxlrX.cjs")).then(e=>e.zhHk);break;case"zh-tw":Promise.resolve().then(()=>require("../../zh-tw-SGOlw9Wo.cjs")).then(e=>e.zhTw);break}}exports.setDateLocale=_;exports.setupAntd=A;
|
package/dist/ui/antd/index.js
CHANGED
|
@@ -2011,7 +2011,7 @@ const C = {
|
|
|
2011
2011
|
field: "uploadImage",
|
|
2012
2012
|
input: !0,
|
|
2013
2013
|
componentProps: {
|
|
2014
|
-
action: "https://
|
|
2014
|
+
action: "https://ess-ds.com/prod-api/center-file/file/upload"
|
|
2015
2015
|
}
|
|
2016
2016
|
},
|
|
2017
2017
|
config: {
|
|
@@ -2079,7 +2079,7 @@ const C = {
|
|
|
2079
2079
|
field: "uploadFile",
|
|
2080
2080
|
input: !0,
|
|
2081
2081
|
componentProps: {
|
|
2082
|
-
action: "https://
|
|
2082
|
+
action: "https://ess-ds.com/prod-api/center-file/file/upload"
|
|
2083
2083
|
}
|
|
2084
2084
|
},
|
|
2085
2085
|
config: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var s=Object.create;var r=Object.defineProperty;var d=Object.getOwnPropertyDescriptor;var u=Object.getOwnPropertyNames;var m=Object.getPrototypeOf,b=Object.prototype.hasOwnProperty;var f=(e,l,o,a)=>{if(l&&typeof l=="object"||typeof l=="function")for(let t of u(l))!b.call(e,t)&&t!==o&&r(e,t,{get:()=>l[t],enumerable:!(a=d(l,t))||a.enumerable});return e};var p=(e,l,o)=>(o=e!=null?s(m(e)):{},f(l||!e||!e.__esModule?r(o,"default",{value:e,enumerable:!0}):o,e));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const y=require("epic-designer-gold"),n=require("element-plus"),h={component:async()=>(await import("element-plus")).ElInput,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.defaultValue"},{label:"占位内容",type:"input",field:"componentProps.placeholder"},{label:"尺寸",type:"select",defaultValue:"default",componentProps:{placeholder:"请选择",clearable:!0,options:[{label:"大号",value:"large"},{label:"中等",value:"default"},{label:"小型",value:"small"}]},field:"componentProps.size"},{label:"最大输入长度",type:"number",field:"componentProps.maxlength",componentProps:{placeholder:"请输入",min:0}},{label:"统计字数",type:"switch",field:"componentProps.showWordLimit",show:({values:e})=>e.componentProps.maxlength},{label:"输入类型",type:"select",defaultValue:"text",componentProps:{placeholder:"请选择",clearable:!0,options:[{label:"text",value:"text"},{label:"number",value:"number"},{label:"password",value:"password"}]},field:"componentProps.type"},{label:"显示切换图标",type:"switch",field:"componentProps.showPassword",show:({values:e})=>e.componentProps.type==="password"},{label:"只读",type:"switch",field:"componentProps.readonly"},{label:"可清空",type:"switch",field:"componentProps.clearable"},{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:"focus",describe:"获取焦点时"},{type:"blur",describe:"失去焦点时"},{type:"clear",describe:"点击清空按钮时"}],action:[{type:"focus",describe:"使 input 获取焦点"},{type:"blur",describe:"使 input 失去焦点"},{type:"clear",describe:"清除 input 值"},{type:"select",describe:"选中 input 中的文字"}]}},P={component:async()=>(await import("element-plus")).ElInput,icon:"icon--epic--edit-square-outline-rounded",groupName:"表单",sort:705,defaultSchema:{label:"文本域",type:"textarea",field:"textarea",input:!0,componentProps:{placeholder:"请输入",type:"textarea"}},config:{attribute:[{label:"字段名",type:"input",field:"field"},{label:"标题",type:"input",field:"label"},{label:"默认值",type:"textarea",field:"componentProps.defaultValue"},{label:"占位内容",type:"input",field:"componentProps.placeholder"},{label:"尺寸",type:"select",componentProps:{placeholder:"请选择",clearable:!0,options:[{label:"大号",value:"large"},{label:"中等",value:"default"},{label:"小型",value:"small"}]},field:"componentProps.size"},{label:"最大输入长度",type:"number",field:"componentProps.maxlength",componentProps:{placeholder:"请输入",min:0}},{label:"统计字数",type:"switch",field:"componentProps.showWordLimit",show:({values:e})=>e.componentProps.maxlength},{label:"最小行数",type:"number",field:"componentProps.autosize.minRows",componentProps:{placeholder:"请输入"}},{label:"最大行数",type:"number",field:"componentProps.autosize.maxRows",componentProps:{placeholder:"请输入"}},{label:"可清空",type:"switch",field:"componentProps.clearable"},{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:"focus",describe:"获取焦点"},{type:"blur",describe:"失去焦点"}],action:[{type:"focus",describe:"使 input 获取焦点"},{type:"blur",describe:"使 input 失去焦点"},{type:"clear",describe:"清除 input 值"},{type:"select",describe:"选中 input 中的文字"}]}},v={component:async()=>(await import("element-plus")).ElInputNumber,groupName:"表单",icon:"icon--epic--123-rounded",sort:710,defaultSchema:{label:"数字输入框",type:"number",field:"number",input:!0,componentProps:{placeholder:"请输入"}},config:{attribute:[{label:"字段名",type:"input",field:"field"},{label:"标题",type:"input",field:"label"},{label:"默认值",type:"number",field:"componentProps.defaultValue"},{label:"占位内容",type:"input",field:"componentProps.placeholder"},{label:"尺寸",type:"select",componentProps:{placeholder:"请选择",clearable:!0,options:[{label:"大号",value:"large"},{label:"中等",value:"default"},{label:"小型",value:"small"}]},field:"componentProps.size"},{label:"最大值",type:"number",field:"componentProps.max",componentProps:{placeholder:"请输入"}},{label:"最小值",type:"number",field:"componentProps.min",componentProps:{placeholder:"请输入"}},{label:"步长",type:"number",field:"componentProps.step",componentProps:{placeholder:"请输入"}},{label:"控制按钮位置",type:"select",defaultValue:"",componentProps:{options:[{label:"default",value:""},{label:"right",value:"right"}],placeholder:"请选择",clearable:!0},field:"componentProps.controlsPosition"},{label:"精度",type:"number",field:"componentProps.precision",componentProps:{placeholder:"请输入"}},{label:"输入控制为步长的倍数",type:"switch",field:"componentProps.stepStrictly"},{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:"change",describe:"值变化时"}]}},w={component:()=>Promise.resolve().then(()=>require("../../form-CthzLIgs.cjs")),groupName:"表单",icon:"icon--epic--list-alt-outline-rounded",sort:600,defaultSchema:{label:"表单",type:"form",componentProps:{name:"default",labelWidth:"100px","label-position":"left"},children:[]},config:{attribute:[{label:"Name",type:"input",field:"componentProps.name"},{label:"标签位置",type:"radio",field:"componentProps.label-position",componentProps:{clearable:!0,radioButton:!0,options:[{label:"左边",value:"left"},{label:"右边",value:"right"},{label:"顶部",value:"top"}]}},{label:"标签宽度",type:"EInputSize",field:"componentProps.labelWidth"},{label:"标签后缀",type:"input",field:"componentProps.labelSuffix",componentProps:{placeholder:"请输入"}},{label:"表单尺寸",type:"select",field:"componentProps.size",componentProps:{placeholder:"请选择",clearable:!0,options:[{label:"大号",value:"large"},{label:"中等",value:"default"},{label:"小型",value:"small"}]}},{label:"星号位置",type:"select",field:"componentProps.require-asterisk-position",componentProps:{placeholder:"请选择",clearable:!0,options:[{label:"左边",value:"left"},{label:"右边",value:"right"}]}},{label:"行内展示校验信息",type:"switch",field:"componentProps.inline-message"},{label:"校验反馈图标",type:"switch",field:"componentProps.status-icon"},{label:"滚动校验错误处",type:"switch",field:"componentProps.scroll-to-error"},{label:"行内模式",type:"switch",field:"componentProps.inline"},{label:"禁用",type:"switch",field:"componentProps.disabled"},{label:"隐藏",type:"switch",field:"componentProps.hidden"}],action:[{type:"getData",describe:"获取表单数据"},{type:"setData",describe:"设置表单数据"},{type:"validate",describe:"校验表单"}]}},g={component:()=>Promise.resolve().then(()=>require("../../formItem-BVnNs1Q9.cjs")),defaultSchema:{label:"表单项",type:"form-item"},config:{}},E={component:()=>Promise.resolve().then(()=>require("../../button-Cc4KYk3v.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:"success",value:"success"},{label:"info",value:"info"},{label:"warning",value:"warning"},{label:"danger",value:"danger"}]},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.native-type"},{label:"自定义颜色",type:"color-picker",field:"componentProps.color",componentProps:{type:"color"}},{label:"朴素按钮",type:"switch",field:"componentProps.plain"},{label:"圆角按钮",type:"switch",field:"componentProps.round"},{label:"圆形按钮",type:"switch",field:"componentProps.circle"},{label:"文字按钮",type:"switch",field:"componentProps.text"},{label:"加载状态",type:"switch",field:"componentProps.loading"},{label:"禁用",type:"switch",field:"componentProps.disabled"},{label:"隐藏",type:"switch",field:"componentProps.hidden"}],event:[{type:"click",describe:"点击按钮时"},{type:"dblclick",describe:"双击按钮时"}]}},S={component:()=>Promise.resolve().then(()=>require("../../card-BowzD9vN.cjs")),groupName:"布局",icon:"icon--epic--wysiwyg-rounded",sort:700,defaultSchema:{label:"卡片布局",type:"card",children:[],componentProps:{}},config:{attribute:[{label:"标题",type:"input",field:"label"},{label:"阴影时机",type:"select",componentProps:{options:[{label:"always",value:"always"},{label:"hover",value:"hover"},{label:"never",value:"never"}],placeholder:"请选择",clearable:!0},field:"componentProps.shadow"},{label:"隐藏",type:"switch",field:"componentProps.hidden"}]}},x={component:()=>Promise.resolve().then(()=>require("../../row-NNlPGZRG.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:"number",field:"componentProps.gutter",componentProps:{placeholder:"请输入"}},{label:"列编辑",type:"EColEditor",field:"children"},{label:"隐藏",type:"switch",field:"componentProps.hidden"}]}},Y={component:()=>Promise.resolve().then(()=>require("../../col-B1GUMkMK.cjs")),defaultSchema:{label:"栅格布局-列",type:"col",children:[],componentProps:{span:6}},config:{attribute:[{label:"占位格数",type:"number",field:"componentProps.span"}]}},V={component:()=>Promise.resolve().then(()=>require("../../select-D6bRz5G2.cjs")),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"}],dynamicId:"",placeholder:"请选择",size:"default",effect:"light",placement:"bottom-start"}},config:{attribute:[{label:"字段名",type:"input",field:"field"},{label:"标题",type:"input",field:"label"},{label:"默认值",type:"select",field:"componentProps.defaultValue"},{label:"占位内容",type:"input",field:"componentProps.placeholder"},{label:"尺寸",type:"select",componentProps:{placeholder:"请选择",clearable:!0,options:[{label:"大号",value:"large"},{label:"中等",value:"default"},{label:"小型",value:"small"}]},field:"componentProps.size"},{label:"可多选",type:"switch",field:"componentProps.multiple",onChange:({value:e,values:l})=>{e?l.componentProps.defaultValue=[]:l.componentProps.defaultValue=null}},{label:"多选隐藏",type:"switch",field:"componentProps.collapseTags",show:({values:e})=>e.componentProps.multiple},{label:"隐藏提示",type:"switch",field:"componentProps.collapseTagsTooltip",show:({values:e})=>e.componentProps.multiple&&e.componentProps.collapseTags},{label:"保留搜索关键字",type:"switch",field:"componentProps.reserveKeyword",show:({values:e})=>e.componentProps.multiple},{label:"标签类型",type:"select",defaultValue:"info",componentProps:{options:[{label:"success",value:"success"},{label:"info",value:"info"},{label:"warning",value:"warning"},{label:"danger",value:"danger"}]},show:({values:e})=>e.componentProps.multiple,field:"componentProps.tagType"},{label:"多选限制",type:"number",field:"componentProps.multipleLimit",show:({values:e})=>e.componentProps.multiple},{label:"提示主题",type:"select",componentProps:{options:[{label:"light",value:"light"},{label:"dark",value:"dark"}]},field:"componentProps.effect"},{label:"可筛选",type:"switch",field:"componentProps.filterable"},{label:"允许创建条目",type:"switch",field:"componentProps.allowCreate"},{label:"下拉框位置",type:"select",defaultValue:"bottom-start",componentProps:{options:[{label:"top",value:"top"},{label:"top-start",value:"top-start"},{label:"top-end",value:"top-end"},{label:"bottom",value:"bottom"},{label:"bottom-start",value:"bottom-start"},{label:"bottom-end",value:"bottom-end"},{label:"left",value:"left"},{label:"left-start",value:"left-start"},{label:"left-end",value:"left-end"},{label:"right",value:"right"},{label:"right-start",value:"right-start"},{label:"right-end",value:"right-end"}]},field:"componentProps.placement"},{label:"下拉框宽度与输入框相同",type:"switch",field:"componentProps.fitInputWidth"},{label:"无数据时文本",type:"input",field:"componentProps.noDataText",componentProps:{placeholder:"请输入"}},{label:"可清空",type:"switch",field:"componentProps.clearable"},{label:"禁用",type:"switch",field:"componentProps.disabled"},{label:"隐藏",type:"switch",field:"componentProps.hidden"},{label:"选项管理",type:"EOptionsEditor",layout:"vertical",field:"componentProps.options",describe:"配置选项"},{label:"表单校验",type:"ERuleEditor",layout:"vertical",field:"rules",describe:"校验规则需要配合表单使用"},{label:"数据源",type:"EDataSource",layout:"vertical",field:"componentProps.dataSource",describe:"数据源配置"}],event:[{type:"change",describe:"值变化时"}]}},C={component:()=>Promise.resolve().then(()=>require("../../radio-D3AHEMXb.cjs")),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"}],size:"default"}},config:{attribute:[{label:"字段名",type:"input",field:"field"},{label:"标题",type:"input",field:"label"},{label:"默认值",type:"radio",field:"componentProps.defaultValue"},{label:"尺寸",type:"select",componentProps:{placeholder:"请选择",clearable:!0,options:[{label:"大号",value:"large"},{label:"中等",value:"default"},{label:"小型",value:"small"}]},field:"componentProps.size"},{label:"按钮模式",type:"switch",field:"componentProps.radioButton"},{label:"选项文本颜色",type:"color-picker",layout:"horizontal",field:"componentProps.textColor",show:({values:e})=>e.componentProps.radioButton,describe:"按钮模式下生效"},{label:"选项按钮颜色",type:"color-picker",layout:"horizontal",field:"componentProps.fill",show:({values:e})=>e.componentProps.radioButton,describe:"按钮模式下生效"},{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:"校验规则需要配合表单使用"},{label:"数据源",type:"EDataSource",layout:"vertical",field:"componentProps.dataSource",describe:"数据源配置"}],event:[{type:"change",describe:"值变化时"}]}},k={component:()=>Promise.resolve().then(()=>require("../../checkbox-CMr5pERY.cjs")),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:"请选择",clearable:!0,options:[{label:"大号",value:"large"},{label:"中等",value:"default"},{label:"小型",value:"small"}]},field:"componentProps.size"},{label:"最大选中数",type:"number",field:"componentProps.max",componentProps:{placeholder:"请输入"}},{label:"最小选中数",type:"number",field:"componentProps.min",componentProps:{placeholder:"请输入"}},{label:"按钮模式",type:"switch",field:"componentProps.radioButton"},{label:"选项文本颜色",type:"color-picker",layout:"horizontal",field:"componentProps.textColor",show:({values:e})=>e.componentProps.radioButton,describe:"按钮模式下生效"},{label:"选项按钮颜色",type:"color-picker",layout:"horizontal",field:"componentProps.fill",show:({values:e})=>e.componentProps.radioButton,describe:"按钮模式下生效"},{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"}},{label:"数据源",type:"EDataSource",layout:"vertical",field:"componentProps.dataSource",describe:"数据源配置"}],event:[{type:"change",describe:"值变化时"}]}},T={component:async()=>(await import("element-plus")).ElSlider,groupName:"表单",icon:"icon--epic--switches",sort:930,defaultSchema:{label:"滑块",type:"slider",field:"slider",input:!0,componentProps:{placement:"top-start",showTooltip:!0}},config:{attribute:[{label:"字段名",type:"input",field:"field"},{label:"标题",type:"input",field:"label"},{label:"默认值",type:"slider",field:"componentProps.defaultValue"},{label:"尺寸",type:"select",componentProps:{placeholder:"请选择",clearable:!0,options:[{label:"大号",value:"large"},{label:"中等",value:"default"},{label:"小型",value:"small"}]},field:"componentProps.size"},{label:"最小值",type:"number",field:"componentProps.min",componentProps:{placeholder:"请输入"},onChange:({value:e,values:l,componentAttributes:o})=>{const a=o.value.findIndex(i=>i.field==="componentProps.max"),t=o.value[a];t.componentProps={min:e},(l.componentProps.max??0)<e&&(l.componentProps.max=e)}},{label:"最大值",type:"number",field:"componentProps.max",componentProps:{placeholder:"请输入"},onChange:({value:e,values:l,componentAttributes:o})=>{const a=o.value.findIndex(i=>i.field==="componentProps.min"),t=o.value[a];t.componentProps={max:e},(l.componentProps.min??0)>e&&(l.componentProps.min=e)}},{label:"步长",type:"number",field:"componentProps.step",componentProps:{placeholder:"请输入"}},{label:"显示间断点",type:"switch",field:"componentProps.showStops"},{label:"提示信息",type:"switch",field:"componentProps.showTooltip"},{label:"开启选择范围",type:"switch",field:"componentProps.range"},{label:"垂直模式",type:"switch",field:"componentProps.vertical"},{label:"高度",type:"EInputSize",field:"componentProps.height",show:({values:e})=>e.componentProps.vertical},{label:"显示数字框",type:"switch",field:"componentProps.showInput",onChange:({value:e,values:l})=>{e&&(l.componentProps.showInputControls=!0)}},{label:"控制按钮",type:"switch",field:"componentProps.showInputControls",show:({values:e})=>e.componentProps.showInput},{label:"提示框位置",type:"select",defaultValue:"bottom-start",componentProps:{options:[{label:"top",value:"top"},{label:"top-start",value:"top-start"},{label:"top-end",value:"top-end"},{label:"bottom",value:"bottom"},{label:"bottom-start",value:"bottom-start"},{label:"bottom-end",value:"bottom-end"},{label:"left",value:"left"},{label:"left-start",value:"left-start"},{label:"left-end",value:"left-end"},{label:"right",value:"right"},{label:"right-start",value:"right-start"},{label:"right-end",value:"right-end"}]},field:"componentProps.placement"},{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:"拖拽结束改变值时"}]}},D={component:async()=>(await import("element-plus")).ElColorPicker,groupName:"表单",icon:"icon--epic--palette-outline",sort:950,defaultSchema:{label:"颜色选择器",type:"color-picker",field:"color-picker",input:!0},config:{attribute:[{label:"字段名",type:"input",field:"field"},{label:"标题",type:"input",field:"label"},{label:"默认值",type:"color-picker",field:"componentProps.defaultValue"},{label:"尺寸",type:"select",componentProps:{placeholder:"请选择",clearable:!0,options:[{label:"大号",value:"large"},{label:"中等",value:"default"},{label:"小型",value:"small"}]},field:"componentProps.size"},{label:"格式",type:"select",componentProps:{placeholder:"请选择",clearable:!0,options:[{label:"hsl",value:"hsl"},{label:"hsv",value:"hsv"},{label:"hex",value:"hex"},{label:"rgb",value:"rgb"}]},field:"componentProps.colorFormat"},{label:"透明度选择",type:"switch",field:"componentProps.showAlpha"},{label:"禁用",type:"switch",field:"componentProps.disabled"},{label:"隐藏",type:"switch",field:"componentProps.hidden"},{label:"表单校验",type:"ERuleEditor",layout:"vertical",field:"rules",describe:"校验规则需要配合表单使用"}],event:[{type:"change",describe:"值变化时"}],action:[]}},I={component:async()=>(await import("element-plus")).ElSwitch,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.activeValue",componentProps:{placeholder:"请输入"},onChange(e){setTimeout(()=>c(e))}},{label:"OFF状态值",type:"input",field:"componentProps.inactiveValue",componentProps:{placeholder:"请输入"},onChange(e){setTimeout(()=>c(e))}},{label:"ON状态描述",type:"input",field:"componentProps.activeText",componentProps:{placeholder:"请输入"}},{label:"OFF状态描述",type:"input",field:"componentProps.inactiveText",componentProps:{placeholder:"请输入"}},{label:"尺寸",type:"select",componentProps:{placeholder:"请选择",clearable:!0,options:[{label:"大号",value:"large"},{label:"中等",value:"default"},{label:"小型",value:"small"}]},field:"componentProps.size"},{label:"宽度",type:"number",field:"componentProps.width",componentProps:{min:50,placeholder:"请输入"}},{label:"文本点内显示",type:"switch",field:"componentProps.inlinePrompt"},{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:"状态发生变化时"}]}};function c(e){var o;let l=((o=e.values.componentProps)==null?void 0:o.inactiveValue)||!1;e.values.componentProps.unCheckedValue===""&&delete e.values.componentProps.unCheckedValue,e.values.componentProps.activeValue===""&&delete e.values.componentProps.activeValue,e.values.componentProps?e.values.componentProps.defaultValue=l:e.values.componentProps={defaultValue:l}}const z={component:async()=>(await import("element-plus")).ElCascader,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:"请选择",props:{expandTrigger:"click"}}},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:"请选择",clearable:!0,options:[{label:"大号",value:"large"},{label:"中等",value:"default"},{label:"小型",value:"small"}]},field:"componentProps.size"},{label:"分割符",type:"input",componentProps:{placeholder:"请输入"},field:"componentProps.separator"},{label:"次级菜单展开方式",type:"select",field:"componentProps.props.expandTrigger",componentProps:{placeholder:"请选择",clearable:!0,options:[{label:"click",value:"click"},{label:"hover",value:"hover"}]}},{label:"可搜索",type:"switch",field:"componentProps.filterable"},{label:"可多选",type:"switch",field:"componentProps.props.multiple",onChange:({value:e,values:l})=>{e?l.componentProps.defaultValue=[]:l.componentProps.defaultValue=null}},{label:"折叠Tag",type:"switch",field:"componentProps.collapseTags",show:({values:e})=>e.componentProps.props.multiple},{label:"显示被折叠标签",type:"switch",field:"componentProps.collapseTagsTooltip",show:({values:e})=>e.componentProps.props.multiple&&e.componentProps.collapseTags},{label:"不显示路径",type:"switch",componentProps:{activeValue:!1,inactiveValue:!0},field:"componentProps.showAllLevels"},{label:"父级可选",type:"switch",field:"componentProps.props.checkStrictly",describe:"父子节点不互相关联"},{label:"只获取选中节点",type:"switch",field:"componentProps.props.emitPath",componentProps:{activeValue:!1,inactiveValue:!0}},{label:"可清空",type:"switch",field:"componentProps.clearable"},{label:"禁用",type:"switch",field:"componentProps.disabled"},{label:"隐藏",type:"switch",field:"componentProps.hidden"},{label:"选项管理",type:"EOptionsEditor",layout:"vertical",field:"componentProps.options",componentProps:{tree:!0},describe:"配置选项"},{label:"表单校验",type:"ERuleEditor",layout:"vertical",field:"rules",describe:"校验规则需要配合表单使用",componentProps:{ruleType:"array"}},{label:"数据源",type:"EDataSource",layout:"vertical",field:"componentProps.dataSource",describe:"数据源配置"}],event:[{type:"change",describe:"选中节点变化时"},{type:"blur",describe:" 当失去焦点时触发"},{type:"focus",describe:"当获得焦点时触发"}],action:[{type:"getCheckedNodes",describe:"获取当前选中节点"},{type:"togglePopperVisible",describe:"切换 popper 可见状态"}]}},F={component:()=>Promise.resolve().then(()=>require("../../collapse-B2AXU6Jz.cjs")),icon:"epic-icon-xiala",defaultSchema:{label:"折叠面板",type:"collapse",children:[{type:"collapse-item",children:[],componentProps:{span:12},id:"g062zikd2jk001"},{type:"collapse-item",children:[],componentProps:{span:12},id:"gy5z9jtfb3s001"}]},config:{attribute:[{label:"折叠项管理",type:"EColEditor",field:"children"},{label:"隐藏",type:"switch",field:"componentProps.hidden"}]}},N={component:()=>Promise.resolve().then(()=>require("../../collapseItem-CAGqWjGg.cjs")),defaultSchema:{label:"折叠项",type:"collapse-item",children:[]},config:{attribute:[]}},R={component:async()=>(await import("element-plus")).ElDatePicker,groupName:"表单",icon:"icon--epic--calendar-month-outline-rounded",sort:910,defaultSchema:{label:"日期选择器",type:"date",field:"date",input:!0,componentProps:{type:"date",valueFormat:"YYYY-MM-DD",format:"YYYY-MM-DD",placeholder:"请选择",startPlaceholder:"请选择",endPlaceholder:"请选择"}},config:{attribute:[{label:"字段名",type:"input",field:"field"},{label:"标题",type:"input",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:"year"},{label:"时间",value:"datetime"},{label:"时间范围",value:"datetimerange"},{label:"日期范围",value:"daterange"},{label:"月份范围",value:"monthrange"},{label:"多个日期",value:"dates"}]},onChange({values:e,value:l}){e.componentProps.defaultValue=null,["date","daterange","dates"].includes(l)?(e.componentProps.format="YYYY-MM-DD",e.componentProps.valueFormat="YYYY-MM-DD"):["week"].includes(l)?(e.componentProps.format="ww [周]",e.componentProps.valueFormat="YYYY-MM-DD"):["month","monthrange"].includes(l)?(e.componentProps.format="YYYY-MM",e.componentProps.valueFormat="YYYY-MM"):["datetime","datetimerange"].includes(l)?(e.componentProps.format="YYYY-MM-DD HH:mm:ss",e.componentProps.valueFormat="YYYY-MM-DD HH:mm:ss"):["year"].includes(l)&&(e.componentProps.format="YYYY",e.componentProps.valueFormat="YYYY")}},{label:"开始占位符",type:"input",field:"componentProps.startPlaceholder",show({values:e}){return["datetimerange","daterange","monthrange"].includes(e.componentProps.type)}},{label:"结束占位符",type:"input",field:"componentProps.endPlaceholder",show({values:e}){return["datetimerange","daterange","monthrange"].includes(e.componentProps.type)}},{label:"占位内容",type:"input",field:"componentProps.placeholder",show({values:e}){return!["datetimerange","daterange","monthrange"].includes(e.componentProps.type)}},{label:"尺寸",type:"select",defaultValue:"default",componentProps:{placeholder:"请选择",clearable:!0,options:[{label:"大号",value:"large"},{label:"中等",value:"default"},{label:"小型",value:"small"}]},field:"componentProps.size"},{label:"可输入",type:"switch",field:"componentProps.editable"},{label:"显示格式",type:"input",field:"componentProps.format"},{label:"数据格式",type:"input",field:"componentProps.valueFormat"},{label:"分割符",type:"input",field:"componentProps.rangeSeparator",componentProps:{placeholder:"请输入"},show({values:e}){return["datetimerange","daterange","monthrange"].includes(e.componentProps.type)}},{label:"可清空",type:"switch",field:"componentProps.clearable"},{label:"只读",type:"switch",field:"componentProps.readonly"},{label:"禁用",type:"switch",field:"componentProps.disabled"},{label:"隐藏",type:"switch",field:"componentProps.hidden"},{label:"表单校验",type:"ERuleEditor",layout:"vertical",field:"rules",describe:"校验规则需要配合表单使用"}],event:[{type:"change",describe:"值变化时"}]}},q={component:()=>Promise.resolve().then(()=>require("../../uploadFile-z7Ko58XG.cjs")),groupName:"表单",icon:"icon--epic--upload-rounded",sort:920,defaultSchema:{label:"上传文件",type:"upload-file",field:"uploadFile",input:!0,componentProps:{action:"https://examples.epicjs.cn/static/upload-img.json",name:"file",showFileList:!0}},config:{attribute:[{label:"字段名",type:"input",field:"field"},{label:"标题",type:"input",field:"label"},{label:"请求地址",type:"input",field:"componentProps.action"},{label:"上传文件字段",type:"input",field:"componentProps.name"},{label:"多选",type:"switch",field:"componentProps.multiple"},{label:"展示文件列表",type:"switch",field:"componentProps.showFileList"},{label:"拖拽上传",type:"switch",field:"componentProps.drag"},{label:"允许上传最大数量",type:"number",field:"componentProps.limit",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"},M={component:()=>Promise.resolve().then(()=>require("../../uploadImage-xU0He_aO.cjs")),groupName:"表单",icon:"icon--epic--imagesmode-outline-rounded",sort:920,defaultSchema:{label:"上传图片",type:"upload-image",field:"uploadImage",input:!0,componentProps:{action:"https://examples.epicjs.cn/static/upload-img.json",name:"file",showFileList:!0}},config:{attribute:[{label:"字段名",type:"input",field:"field"},{label:"标题",type:"input",field:"label"},{label:"请求地址",type:"input",field:"componentProps.action"},{label:"上传文件字段",type:"input",field:"componentProps.name"},{label:"多选",type:"switch",field:"componentProps.multiple"},{label:"展示文件列表",type:"switch",field:"componentProps.showFileList"},{label:"拖拽上传",type:"switch",field:"componentProps.drag"},{label:"允许上传最大数量",type:"number",field:"componentProps.limit",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"},B={component:()=>Promise.resolve().then(()=>require("../../modal-_fid8E1T.cjs")),defaultSchema:{label:"模态框",type:"modal",children:[]},config:{attribute:[{label:"标题",type:"input",field:"title"}]}},O={component:async()=>await Promise.resolve().then(()=>require("../../sign-BCmA2v-3.cjs")),icon:"icon--epic--insert-text-outline-rounded",groupName:"表单",sort:705,defaultSchema:{label:"签名板",type:"sign",field:"sign",input:!0,componentProps:{placeholder:"请输入",lineWidth:4,type:"sign",style:{height:"300px"}}},config:{attribute:[{label:"字段名",type:"input",field:"field"},{label:"标题",type:"input",field:"label"},{label:"线条宽度(px)",type:"input",componentProps:{placeholder:"请选择",clearable:!0},field:"componentProps.lineWidth"},{label:"只读",type:"switch",field:"componentProps.readonly"},{label:"隐藏",type:"switch",field:"componentProps.hidden"},{label:"表单校验",type:"ERuleEditor",layout:"vertical",field:"rules",describe:"校验规则需要配合表单使用"}]}};function j(e=y.pluginManager){e.component("FormItem",n.ElFormItem),e.component("Form",n.ElForm),e.component("RadioGroup",n.ElRadioGroup),e.component("RadioButton",n.ElRadioButton),e.component("Tabs",n.ElTabs),e.component("TabPane",n.ElTabPane),e.component("Collapse",n.ElCollapse),e.component("CollapseItem",n.ElCollapseItem),e.component("Drawer",n.ElDrawer),[w,g,h,P,v,C,k,R,V,I,D,z,T,q,M,E,S,x,Y,F,N,B,O].forEach(o=>{e.registerComponent(o),e.addBaseComponentTypes(o.defaultSchema.type)}),e.setInitialized(!0)}function L(e){import("element-plus").then(({provideGlobalConfig:l})=>{l(e)})}exports.provideGlobalConfig=L;exports.setupElementPlus=j;
|
|
1
|
+
"use strict";var s=Object.create;var r=Object.defineProperty;var d=Object.getOwnPropertyDescriptor;var u=Object.getOwnPropertyNames;var m=Object.getPrototypeOf,b=Object.prototype.hasOwnProperty;var f=(e,l,o,a)=>{if(l&&typeof l=="object"||typeof l=="function")for(let t of u(l))!b.call(e,t)&&t!==o&&r(e,t,{get:()=>l[t],enumerable:!(a=d(l,t))||a.enumerable});return e};var p=(e,l,o)=>(o=e!=null?s(m(e)):{},f(l||!e||!e.__esModule?r(o,"default",{value:e,enumerable:!0}):o,e));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const y=require("epic-designer-gold"),n=require("element-plus"),h={component:async()=>(await import("element-plus")).ElInput,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.defaultValue"},{label:"占位内容",type:"input",field:"componentProps.placeholder"},{label:"尺寸",type:"select",defaultValue:"default",componentProps:{placeholder:"请选择",clearable:!0,options:[{label:"大号",value:"large"},{label:"中等",value:"default"},{label:"小型",value:"small"}]},field:"componentProps.size"},{label:"最大输入长度",type:"number",field:"componentProps.maxlength",componentProps:{placeholder:"请输入",min:0}},{label:"统计字数",type:"switch",field:"componentProps.showWordLimit",show:({values:e})=>e.componentProps.maxlength},{label:"输入类型",type:"select",defaultValue:"text",componentProps:{placeholder:"请选择",clearable:!0,options:[{label:"text",value:"text"},{label:"number",value:"number"},{label:"password",value:"password"}]},field:"componentProps.type"},{label:"显示切换图标",type:"switch",field:"componentProps.showPassword",show:({values:e})=>e.componentProps.type==="password"},{label:"只读",type:"switch",field:"componentProps.readonly"},{label:"可清空",type:"switch",field:"componentProps.clearable"},{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:"focus",describe:"获取焦点时"},{type:"blur",describe:"失去焦点时"},{type:"clear",describe:"点击清空按钮时"}],action:[{type:"focus",describe:"使 input 获取焦点"},{type:"blur",describe:"使 input 失去焦点"},{type:"clear",describe:"清除 input 值"},{type:"select",describe:"选中 input 中的文字"}]}},P={component:async()=>(await import("element-plus")).ElInput,icon:"icon--epic--edit-square-outline-rounded",groupName:"表单",sort:705,defaultSchema:{label:"文本域",type:"textarea",field:"textarea",input:!0,componentProps:{placeholder:"请输入",type:"textarea"}},config:{attribute:[{label:"字段名",type:"input",field:"field"},{label:"标题",type:"input",field:"label"},{label:"默认值",type:"textarea",field:"componentProps.defaultValue"},{label:"占位内容",type:"input",field:"componentProps.placeholder"},{label:"尺寸",type:"select",componentProps:{placeholder:"请选择",clearable:!0,options:[{label:"大号",value:"large"},{label:"中等",value:"default"},{label:"小型",value:"small"}]},field:"componentProps.size"},{label:"最大输入长度",type:"number",field:"componentProps.maxlength",componentProps:{placeholder:"请输入",min:0}},{label:"统计字数",type:"switch",field:"componentProps.showWordLimit",show:({values:e})=>e.componentProps.maxlength},{label:"最小行数",type:"number",field:"componentProps.autosize.minRows",componentProps:{placeholder:"请输入"}},{label:"最大行数",type:"number",field:"componentProps.autosize.maxRows",componentProps:{placeholder:"请输入"}},{label:"可清空",type:"switch",field:"componentProps.clearable"},{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:"focus",describe:"获取焦点"},{type:"blur",describe:"失去焦点"}],action:[{type:"focus",describe:"使 input 获取焦点"},{type:"blur",describe:"使 input 失去焦点"},{type:"clear",describe:"清除 input 值"},{type:"select",describe:"选中 input 中的文字"}]}},v={component:async()=>(await import("element-plus")).ElInputNumber,groupName:"表单",icon:"icon--epic--123-rounded",sort:710,defaultSchema:{label:"数字输入框",type:"number",field:"number",input:!0,componentProps:{placeholder:"请输入"}},config:{attribute:[{label:"字段名",type:"input",field:"field"},{label:"标题",type:"input",field:"label"},{label:"默认值",type:"number",field:"componentProps.defaultValue"},{label:"占位内容",type:"input",field:"componentProps.placeholder"},{label:"尺寸",type:"select",componentProps:{placeholder:"请选择",clearable:!0,options:[{label:"大号",value:"large"},{label:"中等",value:"default"},{label:"小型",value:"small"}]},field:"componentProps.size"},{label:"最大值",type:"number",field:"componentProps.max",componentProps:{placeholder:"请输入"}},{label:"最小值",type:"number",field:"componentProps.min",componentProps:{placeholder:"请输入"}},{label:"步长",type:"number",field:"componentProps.step",componentProps:{placeholder:"请输入"}},{label:"控制按钮位置",type:"select",defaultValue:"",componentProps:{options:[{label:"default",value:""},{label:"right",value:"right"}],placeholder:"请选择",clearable:!0},field:"componentProps.controlsPosition"},{label:"精度",type:"number",field:"componentProps.precision",componentProps:{placeholder:"请输入"}},{label:"输入控制为步长的倍数",type:"switch",field:"componentProps.stepStrictly"},{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:"change",describe:"值变化时"}]}},w={component:()=>Promise.resolve().then(()=>require("../../form-CthzLIgs.cjs")),groupName:"表单",icon:"icon--epic--list-alt-outline-rounded",sort:600,defaultSchema:{label:"表单",type:"form",componentProps:{name:"default",labelWidth:"100px","label-position":"left"},children:[]},config:{attribute:[{label:"Name",type:"input",field:"componentProps.name"},{label:"标签位置",type:"radio",field:"componentProps.label-position",componentProps:{clearable:!0,radioButton:!0,options:[{label:"左边",value:"left"},{label:"右边",value:"right"},{label:"顶部",value:"top"}]}},{label:"标签宽度",type:"EInputSize",field:"componentProps.labelWidth"},{label:"标签后缀",type:"input",field:"componentProps.labelSuffix",componentProps:{placeholder:"请输入"}},{label:"表单尺寸",type:"select",field:"componentProps.size",componentProps:{placeholder:"请选择",clearable:!0,options:[{label:"大号",value:"large"},{label:"中等",value:"default"},{label:"小型",value:"small"}]}},{label:"星号位置",type:"select",field:"componentProps.require-asterisk-position",componentProps:{placeholder:"请选择",clearable:!0,options:[{label:"左边",value:"left"},{label:"右边",value:"right"}]}},{label:"行内展示校验信息",type:"switch",field:"componentProps.inline-message"},{label:"校验反馈图标",type:"switch",field:"componentProps.status-icon"},{label:"滚动校验错误处",type:"switch",field:"componentProps.scroll-to-error"},{label:"行内模式",type:"switch",field:"componentProps.inline"},{label:"禁用",type:"switch",field:"componentProps.disabled"},{label:"隐藏",type:"switch",field:"componentProps.hidden"}],action:[{type:"getData",describe:"获取表单数据"},{type:"setData",describe:"设置表单数据"},{type:"validate",describe:"校验表单"}]}},g={component:()=>Promise.resolve().then(()=>require("../../formItem-BVnNs1Q9.cjs")),defaultSchema:{label:"表单项",type:"form-item"},config:{}},E={component:()=>Promise.resolve().then(()=>require("../../button-Cc4KYk3v.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:"success",value:"success"},{label:"info",value:"info"},{label:"warning",value:"warning"},{label:"danger",value:"danger"}]},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.native-type"},{label:"自定义颜色",type:"color-picker",field:"componentProps.color",componentProps:{type:"color"}},{label:"朴素按钮",type:"switch",field:"componentProps.plain"},{label:"圆角按钮",type:"switch",field:"componentProps.round"},{label:"圆形按钮",type:"switch",field:"componentProps.circle"},{label:"文字按钮",type:"switch",field:"componentProps.text"},{label:"加载状态",type:"switch",field:"componentProps.loading"},{label:"禁用",type:"switch",field:"componentProps.disabled"},{label:"隐藏",type:"switch",field:"componentProps.hidden"}],event:[{type:"click",describe:"点击按钮时"},{type:"dblclick",describe:"双击按钮时"}]}},S={component:()=>Promise.resolve().then(()=>require("../../card-BowzD9vN.cjs")),groupName:"布局",icon:"icon--epic--wysiwyg-rounded",sort:700,defaultSchema:{label:"卡片布局",type:"card",children:[],componentProps:{}},config:{attribute:[{label:"标题",type:"input",field:"label"},{label:"阴影时机",type:"select",componentProps:{options:[{label:"always",value:"always"},{label:"hover",value:"hover"},{label:"never",value:"never"}],placeholder:"请选择",clearable:!0},field:"componentProps.shadow"},{label:"隐藏",type:"switch",field:"componentProps.hidden"}]}},x={component:()=>Promise.resolve().then(()=>require("../../row-NNlPGZRG.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:"number",field:"componentProps.gutter",componentProps:{placeholder:"请输入"}},{label:"列编辑",type:"EColEditor",field:"children"},{label:"隐藏",type:"switch",field:"componentProps.hidden"}]}},Y={component:()=>Promise.resolve().then(()=>require("../../col-B1GUMkMK.cjs")),defaultSchema:{label:"栅格布局-列",type:"col",children:[],componentProps:{span:6}},config:{attribute:[{label:"占位格数",type:"number",field:"componentProps.span"}]}},V={component:()=>Promise.resolve().then(()=>require("../../select-D6bRz5G2.cjs")),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"}],dynamicId:"",placeholder:"请选择",size:"default",effect:"light",placement:"bottom-start"}},config:{attribute:[{label:"字段名",type:"input",field:"field"},{label:"标题",type:"input",field:"label"},{label:"默认值",type:"select",field:"componentProps.defaultValue"},{label:"占位内容",type:"input",field:"componentProps.placeholder"},{label:"尺寸",type:"select",componentProps:{placeholder:"请选择",clearable:!0,options:[{label:"大号",value:"large"},{label:"中等",value:"default"},{label:"小型",value:"small"}]},field:"componentProps.size"},{label:"可多选",type:"switch",field:"componentProps.multiple",onChange:({value:e,values:l})=>{e?l.componentProps.defaultValue=[]:l.componentProps.defaultValue=null}},{label:"多选隐藏",type:"switch",field:"componentProps.collapseTags",show:({values:e})=>e.componentProps.multiple},{label:"隐藏提示",type:"switch",field:"componentProps.collapseTagsTooltip",show:({values:e})=>e.componentProps.multiple&&e.componentProps.collapseTags},{label:"保留搜索关键字",type:"switch",field:"componentProps.reserveKeyword",show:({values:e})=>e.componentProps.multiple},{label:"标签类型",type:"select",defaultValue:"info",componentProps:{options:[{label:"success",value:"success"},{label:"info",value:"info"},{label:"warning",value:"warning"},{label:"danger",value:"danger"}]},show:({values:e})=>e.componentProps.multiple,field:"componentProps.tagType"},{label:"多选限制",type:"number",field:"componentProps.multipleLimit",show:({values:e})=>e.componentProps.multiple},{label:"提示主题",type:"select",componentProps:{options:[{label:"light",value:"light"},{label:"dark",value:"dark"}]},field:"componentProps.effect"},{label:"可筛选",type:"switch",field:"componentProps.filterable"},{label:"允许创建条目",type:"switch",field:"componentProps.allowCreate"},{label:"下拉框位置",type:"select",defaultValue:"bottom-start",componentProps:{options:[{label:"top",value:"top"},{label:"top-start",value:"top-start"},{label:"top-end",value:"top-end"},{label:"bottom",value:"bottom"},{label:"bottom-start",value:"bottom-start"},{label:"bottom-end",value:"bottom-end"},{label:"left",value:"left"},{label:"left-start",value:"left-start"},{label:"left-end",value:"left-end"},{label:"right",value:"right"},{label:"right-start",value:"right-start"},{label:"right-end",value:"right-end"}]},field:"componentProps.placement"},{label:"下拉框宽度与输入框相同",type:"switch",field:"componentProps.fitInputWidth"},{label:"无数据时文本",type:"input",field:"componentProps.noDataText",componentProps:{placeholder:"请输入"}},{label:"可清空",type:"switch",field:"componentProps.clearable"},{label:"禁用",type:"switch",field:"componentProps.disabled"},{label:"隐藏",type:"switch",field:"componentProps.hidden"},{label:"选项管理",type:"EOptionsEditor",layout:"vertical",field:"componentProps.options",describe:"配置选项"},{label:"表单校验",type:"ERuleEditor",layout:"vertical",field:"rules",describe:"校验规则需要配合表单使用"},{label:"数据源",type:"EDataSource",layout:"vertical",field:"componentProps.dataSource",describe:"数据源配置"}],event:[{type:"change",describe:"值变化时"}]}},C={component:()=>Promise.resolve().then(()=>require("../../radio-D3AHEMXb.cjs")),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"}],size:"default"}},config:{attribute:[{label:"字段名",type:"input",field:"field"},{label:"标题",type:"input",field:"label"},{label:"默认值",type:"radio",field:"componentProps.defaultValue"},{label:"尺寸",type:"select",componentProps:{placeholder:"请选择",clearable:!0,options:[{label:"大号",value:"large"},{label:"中等",value:"default"},{label:"小型",value:"small"}]},field:"componentProps.size"},{label:"按钮模式",type:"switch",field:"componentProps.radioButton"},{label:"选项文本颜色",type:"color-picker",layout:"horizontal",field:"componentProps.textColor",show:({values:e})=>e.componentProps.radioButton,describe:"按钮模式下生效"},{label:"选项按钮颜色",type:"color-picker",layout:"horizontal",field:"componentProps.fill",show:({values:e})=>e.componentProps.radioButton,describe:"按钮模式下生效"},{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:"校验规则需要配合表单使用"},{label:"数据源",type:"EDataSource",layout:"vertical",field:"componentProps.dataSource",describe:"数据源配置"}],event:[{type:"change",describe:"值变化时"}]}},k={component:()=>Promise.resolve().then(()=>require("../../checkbox-CMr5pERY.cjs")),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:"请选择",clearable:!0,options:[{label:"大号",value:"large"},{label:"中等",value:"default"},{label:"小型",value:"small"}]},field:"componentProps.size"},{label:"最大选中数",type:"number",field:"componentProps.max",componentProps:{placeholder:"请输入"}},{label:"最小选中数",type:"number",field:"componentProps.min",componentProps:{placeholder:"请输入"}},{label:"按钮模式",type:"switch",field:"componentProps.radioButton"},{label:"选项文本颜色",type:"color-picker",layout:"horizontal",field:"componentProps.textColor",show:({values:e})=>e.componentProps.radioButton,describe:"按钮模式下生效"},{label:"选项按钮颜色",type:"color-picker",layout:"horizontal",field:"componentProps.fill",show:({values:e})=>e.componentProps.radioButton,describe:"按钮模式下生效"},{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"}},{label:"数据源",type:"EDataSource",layout:"vertical",field:"componentProps.dataSource",describe:"数据源配置"}],event:[{type:"change",describe:"值变化时"}]}},T={component:async()=>(await import("element-plus")).ElSlider,groupName:"表单",icon:"icon--epic--switches",sort:930,defaultSchema:{label:"滑块",type:"slider",field:"slider",input:!0,componentProps:{placement:"top-start",showTooltip:!0}},config:{attribute:[{label:"字段名",type:"input",field:"field"},{label:"标题",type:"input",field:"label"},{label:"默认值",type:"slider",field:"componentProps.defaultValue"},{label:"尺寸",type:"select",componentProps:{placeholder:"请选择",clearable:!0,options:[{label:"大号",value:"large"},{label:"中等",value:"default"},{label:"小型",value:"small"}]},field:"componentProps.size"},{label:"最小值",type:"number",field:"componentProps.min",componentProps:{placeholder:"请输入"},onChange:({value:e,values:l,componentAttributes:o})=>{const a=o.value.findIndex(i=>i.field==="componentProps.max"),t=o.value[a];t.componentProps={min:e},(l.componentProps.max??0)<e&&(l.componentProps.max=e)}},{label:"最大值",type:"number",field:"componentProps.max",componentProps:{placeholder:"请输入"},onChange:({value:e,values:l,componentAttributes:o})=>{const a=o.value.findIndex(i=>i.field==="componentProps.min"),t=o.value[a];t.componentProps={max:e},(l.componentProps.min??0)>e&&(l.componentProps.min=e)}},{label:"步长",type:"number",field:"componentProps.step",componentProps:{placeholder:"请输入"}},{label:"显示间断点",type:"switch",field:"componentProps.showStops"},{label:"提示信息",type:"switch",field:"componentProps.showTooltip"},{label:"开启选择范围",type:"switch",field:"componentProps.range"},{label:"垂直模式",type:"switch",field:"componentProps.vertical"},{label:"高度",type:"EInputSize",field:"componentProps.height",show:({values:e})=>e.componentProps.vertical},{label:"显示数字框",type:"switch",field:"componentProps.showInput",onChange:({value:e,values:l})=>{e&&(l.componentProps.showInputControls=!0)}},{label:"控制按钮",type:"switch",field:"componentProps.showInputControls",show:({values:e})=>e.componentProps.showInput},{label:"提示框位置",type:"select",defaultValue:"bottom-start",componentProps:{options:[{label:"top",value:"top"},{label:"top-start",value:"top-start"},{label:"top-end",value:"top-end"},{label:"bottom",value:"bottom"},{label:"bottom-start",value:"bottom-start"},{label:"bottom-end",value:"bottom-end"},{label:"left",value:"left"},{label:"left-start",value:"left-start"},{label:"left-end",value:"left-end"},{label:"right",value:"right"},{label:"right-start",value:"right-start"},{label:"right-end",value:"right-end"}]},field:"componentProps.placement"},{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:"拖拽结束改变值时"}]}},D={component:async()=>(await import("element-plus")).ElColorPicker,groupName:"表单",icon:"icon--epic--palette-outline",sort:950,defaultSchema:{label:"颜色选择器",type:"color-picker",field:"color-picker",input:!0},config:{attribute:[{label:"字段名",type:"input",field:"field"},{label:"标题",type:"input",field:"label"},{label:"默认值",type:"color-picker",field:"componentProps.defaultValue"},{label:"尺寸",type:"select",componentProps:{placeholder:"请选择",clearable:!0,options:[{label:"大号",value:"large"},{label:"中等",value:"default"},{label:"小型",value:"small"}]},field:"componentProps.size"},{label:"格式",type:"select",componentProps:{placeholder:"请选择",clearable:!0,options:[{label:"hsl",value:"hsl"},{label:"hsv",value:"hsv"},{label:"hex",value:"hex"},{label:"rgb",value:"rgb"}]},field:"componentProps.colorFormat"},{label:"透明度选择",type:"switch",field:"componentProps.showAlpha"},{label:"禁用",type:"switch",field:"componentProps.disabled"},{label:"隐藏",type:"switch",field:"componentProps.hidden"},{label:"表单校验",type:"ERuleEditor",layout:"vertical",field:"rules",describe:"校验规则需要配合表单使用"}],event:[{type:"change",describe:"值变化时"}],action:[]}},I={component:async()=>(await import("element-plus")).ElSwitch,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.activeValue",componentProps:{placeholder:"请输入"},onChange(e){setTimeout(()=>c(e))}},{label:"OFF状态值",type:"input",field:"componentProps.inactiveValue",componentProps:{placeholder:"请输入"},onChange(e){setTimeout(()=>c(e))}},{label:"ON状态描述",type:"input",field:"componentProps.activeText",componentProps:{placeholder:"请输入"}},{label:"OFF状态描述",type:"input",field:"componentProps.inactiveText",componentProps:{placeholder:"请输入"}},{label:"尺寸",type:"select",componentProps:{placeholder:"请选择",clearable:!0,options:[{label:"大号",value:"large"},{label:"中等",value:"default"},{label:"小型",value:"small"}]},field:"componentProps.size"},{label:"宽度",type:"number",field:"componentProps.width",componentProps:{min:50,placeholder:"请输入"}},{label:"文本点内显示",type:"switch",field:"componentProps.inlinePrompt"},{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:"状态发生变化时"}]}};function c(e){var o;let l=((o=e.values.componentProps)==null?void 0:o.inactiveValue)||!1;e.values.componentProps.unCheckedValue===""&&delete e.values.componentProps.unCheckedValue,e.values.componentProps.activeValue===""&&delete e.values.componentProps.activeValue,e.values.componentProps?e.values.componentProps.defaultValue=l:e.values.componentProps={defaultValue:l}}const z={component:async()=>(await import("element-plus")).ElCascader,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:"请选择",props:{expandTrigger:"click"}}},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:"请选择",clearable:!0,options:[{label:"大号",value:"large"},{label:"中等",value:"default"},{label:"小型",value:"small"}]},field:"componentProps.size"},{label:"分割符",type:"input",componentProps:{placeholder:"请输入"},field:"componentProps.separator"},{label:"次级菜单展开方式",type:"select",field:"componentProps.props.expandTrigger",componentProps:{placeholder:"请选择",clearable:!0,options:[{label:"click",value:"click"},{label:"hover",value:"hover"}]}},{label:"可搜索",type:"switch",field:"componentProps.filterable"},{label:"可多选",type:"switch",field:"componentProps.props.multiple",onChange:({value:e,values:l})=>{e?l.componentProps.defaultValue=[]:l.componentProps.defaultValue=null}},{label:"折叠Tag",type:"switch",field:"componentProps.collapseTags",show:({values:e})=>e.componentProps.props.multiple},{label:"显示被折叠标签",type:"switch",field:"componentProps.collapseTagsTooltip",show:({values:e})=>e.componentProps.props.multiple&&e.componentProps.collapseTags},{label:"不显示路径",type:"switch",componentProps:{activeValue:!1,inactiveValue:!0},field:"componentProps.showAllLevels"},{label:"父级可选",type:"switch",field:"componentProps.props.checkStrictly",describe:"父子节点不互相关联"},{label:"只获取选中节点",type:"switch",field:"componentProps.props.emitPath",componentProps:{activeValue:!1,inactiveValue:!0}},{label:"可清空",type:"switch",field:"componentProps.clearable"},{label:"禁用",type:"switch",field:"componentProps.disabled"},{label:"隐藏",type:"switch",field:"componentProps.hidden"},{label:"选项管理",type:"EOptionsEditor",layout:"vertical",field:"componentProps.options",componentProps:{tree:!0},describe:"配置选项"},{label:"表单校验",type:"ERuleEditor",layout:"vertical",field:"rules",describe:"校验规则需要配合表单使用",componentProps:{ruleType:"array"}},{label:"数据源",type:"EDataSource",layout:"vertical",field:"componentProps.dataSource",describe:"数据源配置"}],event:[{type:"change",describe:"选中节点变化时"},{type:"blur",describe:" 当失去焦点时触发"},{type:"focus",describe:"当获得焦点时触发"}],action:[{type:"getCheckedNodes",describe:"获取当前选中节点"},{type:"togglePopperVisible",describe:"切换 popper 可见状态"}]}},F={component:()=>Promise.resolve().then(()=>require("../../collapse-B2AXU6Jz.cjs")),icon:"epic-icon-xiala",defaultSchema:{label:"折叠面板",type:"collapse",children:[{type:"collapse-item",children:[],componentProps:{span:12},id:"g062zikd2jk001"},{type:"collapse-item",children:[],componentProps:{span:12},id:"gy5z9jtfb3s001"}]},config:{attribute:[{label:"折叠项管理",type:"EColEditor",field:"children"},{label:"隐藏",type:"switch",field:"componentProps.hidden"}]}},N={component:()=>Promise.resolve().then(()=>require("../../collapseItem-CAGqWjGg.cjs")),defaultSchema:{label:"折叠项",type:"collapse-item",children:[]},config:{attribute:[]}},R={component:async()=>(await import("element-plus")).ElDatePicker,groupName:"表单",icon:"icon--epic--calendar-month-outline-rounded",sort:910,defaultSchema:{label:"日期选择器",type:"date",field:"date",input:!0,componentProps:{type:"date",valueFormat:"YYYY-MM-DD",format:"YYYY-MM-DD",placeholder:"请选择",startPlaceholder:"请选择",endPlaceholder:"请选择"}},config:{attribute:[{label:"字段名",type:"input",field:"field"},{label:"标题",type:"input",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:"year"},{label:"时间",value:"datetime"},{label:"时间范围",value:"datetimerange"},{label:"日期范围",value:"daterange"},{label:"月份范围",value:"monthrange"},{label:"多个日期",value:"dates"}]},onChange({values:e,value:l}){e.componentProps.defaultValue=null,["date","daterange","dates"].includes(l)?(e.componentProps.format="YYYY-MM-DD",e.componentProps.valueFormat="YYYY-MM-DD"):["week"].includes(l)?(e.componentProps.format="ww [周]",e.componentProps.valueFormat="YYYY-MM-DD"):["month","monthrange"].includes(l)?(e.componentProps.format="YYYY-MM",e.componentProps.valueFormat="YYYY-MM"):["datetime","datetimerange"].includes(l)?(e.componentProps.format="YYYY-MM-DD HH:mm:ss",e.componentProps.valueFormat="YYYY-MM-DD HH:mm:ss"):["year"].includes(l)&&(e.componentProps.format="YYYY",e.componentProps.valueFormat="YYYY")}},{label:"开始占位符",type:"input",field:"componentProps.startPlaceholder",show({values:e}){return["datetimerange","daterange","monthrange"].includes(e.componentProps.type)}},{label:"结束占位符",type:"input",field:"componentProps.endPlaceholder",show({values:e}){return["datetimerange","daterange","monthrange"].includes(e.componentProps.type)}},{label:"占位内容",type:"input",field:"componentProps.placeholder",show({values:e}){return!["datetimerange","daterange","monthrange"].includes(e.componentProps.type)}},{label:"尺寸",type:"select",defaultValue:"default",componentProps:{placeholder:"请选择",clearable:!0,options:[{label:"大号",value:"large"},{label:"中等",value:"default"},{label:"小型",value:"small"}]},field:"componentProps.size"},{label:"可输入",type:"switch",field:"componentProps.editable"},{label:"显示格式",type:"input",field:"componentProps.format"},{label:"数据格式",type:"input",field:"componentProps.valueFormat"},{label:"分割符",type:"input",field:"componentProps.rangeSeparator",componentProps:{placeholder:"请输入"},show({values:e}){return["datetimerange","daterange","monthrange"].includes(e.componentProps.type)}},{label:"可清空",type:"switch",field:"componentProps.clearable"},{label:"只读",type:"switch",field:"componentProps.readonly"},{label:"禁用",type:"switch",field:"componentProps.disabled"},{label:"隐藏",type:"switch",field:"componentProps.hidden"},{label:"表单校验",type:"ERuleEditor",layout:"vertical",field:"rules",describe:"校验规则需要配合表单使用"}],event:[{type:"change",describe:"值变化时"}]}},q={component:()=>Promise.resolve().then(()=>require("../../uploadFile-z7Ko58XG.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",name:"file",showFileList:!0}},config:{attribute:[{label:"字段名",type:"input",field:"field"},{label:"标题",type:"input",field:"label"},{label:"请求地址",type:"input",field:"componentProps.action"},{label:"上传文件字段",type:"input",field:"componentProps.name"},{label:"多选",type:"switch",field:"componentProps.multiple"},{label:"展示文件列表",type:"switch",field:"componentProps.showFileList"},{label:"拖拽上传",type:"switch",field:"componentProps.drag"},{label:"允许上传最大数量",type:"number",field:"componentProps.limit",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"},M={component:()=>Promise.resolve().then(()=>require("../../uploadImage-xU0He_aO.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",name:"file",showFileList:!0}},config:{attribute:[{label:"字段名",type:"input",field:"field"},{label:"标题",type:"input",field:"label"},{label:"请求地址",type:"input",field:"componentProps.action"},{label:"上传文件字段",type:"input",field:"componentProps.name"},{label:"多选",type:"switch",field:"componentProps.multiple"},{label:"展示文件列表",type:"switch",field:"componentProps.showFileList"},{label:"拖拽上传",type:"switch",field:"componentProps.drag"},{label:"允许上传最大数量",type:"number",field:"componentProps.limit",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"},B={component:()=>Promise.resolve().then(()=>require("../../modal-_fid8E1T.cjs")),defaultSchema:{label:"模态框",type:"modal",children:[]},config:{attribute:[{label:"标题",type:"input",field:"title"}]}},O={component:async()=>await Promise.resolve().then(()=>require("../../sign-BCmA2v-3.cjs")),icon:"icon--epic--insert-text-outline-rounded",groupName:"表单",sort:705,defaultSchema:{label:"签名板",type:"sign",field:"sign",input:!0,componentProps:{placeholder:"请输入",lineWidth:4,type:"sign",style:{height:"300px"}}},config:{attribute:[{label:"字段名",type:"input",field:"field"},{label:"标题",type:"input",field:"label"},{label:"线条宽度(px)",type:"input",componentProps:{placeholder:"请选择",clearable:!0},field:"componentProps.lineWidth"},{label:"只读",type:"switch",field:"componentProps.readonly"},{label:"隐藏",type:"switch",field:"componentProps.hidden"},{label:"表单校验",type:"ERuleEditor",layout:"vertical",field:"rules",describe:"校验规则需要配合表单使用"}]}};function L(e=y.pluginManager){e.component("FormItem",n.ElFormItem),e.component("Form",n.ElForm),e.component("RadioGroup",n.ElRadioGroup),e.component("RadioButton",n.ElRadioButton),e.component("Tabs",n.ElTabs),e.component("TabPane",n.ElTabPane),e.component("Collapse",n.ElCollapse),e.component("CollapseItem",n.ElCollapseItem),e.component("Drawer",n.ElDrawer),[w,g,h,P,v,C,k,R,V,I,D,z,T,q,M,E,S,x,Y,F,N,B,O].forEach(o=>{e.registerComponent(o),e.addBaseComponentTypes(o.defaultSchema.type)}),e.setInitialized(!0)}function W(e){import("element-plus").then(({provideGlobalConfig:l})=>{l(e)})}exports.provideGlobalConfig=W;exports.setupElementPlus=L;
|
|
@@ -2411,7 +2411,7 @@ const z = {
|
|
|
2411
2411
|
field: "uploadFile",
|
|
2412
2412
|
input: !0,
|
|
2413
2413
|
componentProps: {
|
|
2414
|
-
action: "https://
|
|
2414
|
+
action: "https://ess-ds.com/prod-api/center-file/file/upload",
|
|
2415
2415
|
name: "file",
|
|
2416
2416
|
showFileList: !0
|
|
2417
2417
|
}
|
|
@@ -2496,7 +2496,7 @@ const z = {
|
|
|
2496
2496
|
field: "uploadImage",
|
|
2497
2497
|
input: !0,
|
|
2498
2498
|
componentProps: {
|
|
2499
|
-
action: "https://
|
|
2499
|
+
action: "https://ess-ds.com/prod-api/center-file/file/upload",
|
|
2500
2500
|
name: "file",
|
|
2501
2501
|
showFileList: !0
|
|
2502
2502
|
}
|
|
@@ -2693,7 +2693,7 @@ const z = {
|
|
|
2693
2693
|
// ],
|
|
2694
2694
|
}
|
|
2695
2695
|
};
|
|
2696
|
-
function
|
|
2696
|
+
function H(e = i) {
|
|
2697
2697
|
e.component("FormItem", r), e.component("Form", c), e.component("RadioGroup", s), e.component("RadioButton", d), e.component("Tabs", m), e.component("TabPane", u), e.component("Collapse", b), e.component("CollapseItem", f), e.component("Drawer", y), [
|
|
2698
2698
|
w,
|
|
2699
2699
|
g,
|
|
@@ -2722,12 +2722,12 @@ function G(e = i) {
|
|
|
2722
2722
|
e.registerComponent(o), e.addBaseComponentTypes(o.defaultSchema.type);
|
|
2723
2723
|
}), e.setInitialized(!0);
|
|
2724
2724
|
}
|
|
2725
|
-
function
|
|
2725
|
+
function j(e) {
|
|
2726
2726
|
import("element-plus").then(({ provideGlobalConfig: l }) => {
|
|
2727
2727
|
l(e);
|
|
2728
2728
|
});
|
|
2729
2729
|
}
|
|
2730
2730
|
export {
|
|
2731
|
-
|
|
2732
|
-
|
|
2731
|
+
j as provideGlobalConfig,
|
|
2732
|
+
H as setupElementPlus
|
|
2733
2733
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("epic-designer-gold"),p=require("naive-ui"),n={component:async()=>(await Promise.resolve().then(()=>require("../../index-BVUz9lFN.cjs")).then(e=>e.index)).NInput,groupName:"表单",icon:"icon--epic--border-color-outline-rounded",sort:700,defaultSchema:{label:"输入框",type:"input",field:"input",input:!0,componentProps:{defaultValue:"",placeholder:"请输入",type:"text"}},config:{attribute:[{label:"字段名",type:"input",field:"field"},{label:"标题",type:"input",field:"label"},{label:"默认值",type:"input",field:"componentProps.defaultValue"},{label:"占位内容",type:"input",field:"componentProps.placeholder"},{label:"尺寸",type:"select",field:"componentProps.size",componentProps:{placeholder:"请选择",clearable:!0,options:[{label:"极小",value:"tiny"},{label:"小型",value:"small"},{label:"中等",value:"medium"},{label:"大号",value:"large"}]}},{label:"输入类型",type:"select",defaultValue:"text",componentProps:{placeholder:"请选择",clearable:!0,options:[{label:"text",value:"text"},{label:"textarea",value:"textarea"},{label:"password",value:"password"}]},field:"componentProps.type",onChange:({value:e,values:l})=>{e!="text"&&(l.componentProps.pair=!1)}},{label:"最大输入长度",type:"number",field:"componentProps.maxlength",componentProps:{placeholder:"请输入"}},{label:"显示密码的时机",type:"select",field:"componentProps.showPasswordOn",componentProps:{placeholder:"请选择",clearable:!0,options:[{label:"click",value:"click"},{label:"mousedown",value:"mousedown"}]},show:({values:e})=>e.componentProps.type==="password"},{label:"行数",type:"number",field:"componentProps.rows",show:({values:e})=>e.componentProps.type==="textarea"},{label:"是否输入成对值",type:"switch",field:"componentProps.pair",show:({values:e})=>e.componentProps.type==="text"},{label:"分割符",type:"input",field:"componentProps.separator",show:({values:e})=>e.componentProps.type==="text"&&e.componentProps.pair,componentProps:{placeholder:"请输入"}},{label:"是否圆角",type:"switch",field:"componentProps.round"},{label:"是否统计字数",type:"switch",field:"componentProps.showCount"},{label:"自适应内容高度",type:"switch",field:"componentProps.autosize",show:({values:e})=>e.componentProps.type==="textarea"},{label:"可清空",type:"switch",field:"componentProps.clearable"},{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:"focus",describe:"获取焦点"},{type:"blur",describe:"失去焦点"}],action:[{type:"focus",describe:"使 input 获取焦点"},{type:"blur",describe:"使 input 失去焦点"},{type:"clear",describe:"清除 input 值"},{type:"select",describe:"选中 input 中的文字"}]},bindModel:"value"},r={component:async()=>(await Promise.resolve().then(()=>require("../../index-XU85x6vz.cjs")).then(e=>e.index)).NInputNumber,groupName:"表单",icon:"icon--epic--123-rounded",sort:710,defaultSchema:{label:"数字输入框",type:"number",field:"number",input:!0,componentProps:{placeholder:"请输入"}},config:{attribute:[{label:"字段名",type:"input",field:"field"},{label:"标题",type:"input",field:"label"},{label:"默认值",type:"number",field:"componentProps.defaultValue"},{label:"占位内容",type:"input",field:"componentProps.placeholder"},{label:"尺寸",type:"select",field:"componentProps.size",componentProps:{placeholder:"请选择",clearable:!0,options:[{label:"极小",value:"tiny"},{label:"小型",value:"small"},{label:"中等",value:"medium"},{label:"大号",value:"large"}]}},{label:"控制按钮位置",type:"select",field:"componentProps.buttonPlacement",componentProps:{placeholder:"请选择",clearable:!0,options:[{label:"both",value:"both"},{label:"right",value:"right"}]}},{label:"最大值",type:"number",field:"componentProps.max",componentProps:{placeholder:"请输入"}},{label:"最小值",type:"number",field:"componentProps.min",componentProps:{placeholder:"请输入"}},{label:"步长",type:"number",field:"componentProps.step",componentProps:{placeholder:"请输入"}},{label:"精度",type:"number",field:"componentProps.precision",componentProps:{placeholder:"请输入"}},{label:"可清空",type:"switch",field:"componentProps.clearable"},{label:"禁用",type:"switch",field:"componentProps.disabled"},{label:"隐藏",type:"switch",field:"componentProps.hidden"},{label:"表单校验",type:"ERuleEditor",layout:"vertical",field:"rules",describe:"校验规则需要配合表单使用",componentProps:{ruleType:"number"}}]},bindModel:"value"},i={component:()=>Promise.resolve().then(()=>require("../../form-ChuxpD-f.cjs")),groupName:"表单",icon:"icon--epic--list-alt-outline-rounded",sort:600,defaultSchema:{label:"表单",type:"form",componentProps:{name:"default",labelWidth:100,labelCol:{span:5},wrapperCol:{span:19},hideRequiredMark:!1},children:[]},config:{attribute:[{label:"name",type:"input",field:"componentProps.name"},{label:"标签宽度",type:"EInputSize",field:"componentProps.labelWidth"},{label:"标签位置",type:"select",field:"componentProps.labelPlacement",componentProps:{placeholder:"请选择",clearable:!0,options:[{label:"左边",value:"left"},{label:"顶部",value:"top"}]}},{label:"标签对齐方式",type:"select",field:"componentProps.labelAlign",componentProps:{placeholder:"请选择",clearable:!0,options:[{label:"左边",value:"left"},{label:"右边",value:"right"}]}},{label:"必填星号位置",type:"select",field:"componentProps.requireMarkPlacement",componentProps:{placeholder:"请选择",clearable:!0,options:[{label:"左边",value:"left"},{label:"右边",value:"right"}]}},{label:"表单尺寸",type:"select",field:"componentProps.size",componentProps:{placeholder:"请选择",clearable:!0,options:[{label:"大号",value:"large"},{label:"中等",value:"medium"},{label:"小型",value:"small"}]}},{label:"行内模式",type:"switch",field:"componentProps.inline"},{label:"禁用",type:"switch",field:"componentProps.disabled"},{label:"隐藏",type:"switch",field:"componentProps.hidden"}],action:[{type:"getData",describe:"获取表单数据"},{type:"setData",describe:"设置表单数据"},{type:"validate",describe:"校验表单"}]}},c={component:()=>Promise.resolve().then(()=>require("../../formItem-Do31LPIz.cjs")),defaultSchema:{label:"表单项",type:"form-item"},config:{}},s={component:()=>Promise.resolve().then(()=>require("../../button-BKT6NVeB.cjs")),groupName:"表单",icon:"icon--epic--fit-screen-rounded",sort:1200,defaultSchema:{label:"按钮",type:"button",field:"input",input:!1,componentProps:{bordered:!0,type:"default",size:"medium"}},config:{attribute:[{label:"标题",type:"input",field:"label"},{label:"类型",type:"select",componentProps:{placeholder:"请选择",options:[{label:"default",value:"default"},{label:"tertiary",value:"tertiary"},{label:"primary",value:"primary"},{label:"success",value:"success"},{label:"info",value:"info"},{label:"warning",value:"warning"},{label:"error",value:"error"}]},field:"componentProps.type"},{label:"尺寸",type:"select",defaultValue:"default",componentProps:{placeholder:"请选择",clearable:!0,options:[{label:"tiny",value:"tiny"},{label:"大号",value:"large"},{label:"中等",value:"medium"},{label:"小型",value:"small"}]},field:"componentProps.size"},{label:"是否块级",type:"switch",field:"componentProps.block"},{label:"显示边框",type:"switch",field:"componentProps.bordered"},{label:"虚线框",type:"switch",field:"componentProps.dashed"},{label:"圆角按钮",type:"switch",field:"componentProps.round"},{label:"圆形按钮",type:"switch",field:"componentProps.circle"},{label:"按钮颜色",type:"color-picker",field:"componentProps.color"},{label:"是否透明",type:"switch",field:"componentProps.ghost"},{label:"禁用",type:"switch",field:"componentProps.disabled"},{label:"隐藏",type:"switch",field:"componentProps.hidden"}],event:[{type:"click",describe:"点击按钮时"},{type:"dblclick",describe:"双击按钮时"}]}},d={component:()=>Promise.resolve().then(()=>require("../../card-BOMT_SwB.cjs")),groupName:"布局",icon:"icon--epic--wysiwyg-rounded",sort:900,defaultSchema:{label:"卡片布局",type:"card",children:[]},config:{attribute:[{label:"标题",type:"input",field:"label"},{label:"隐藏",type:"switch",field:"componentProps.hidden"}]}},u={component:()=>Promise.resolve().then(()=>require("../../row-B28N4Nao.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:"number",field:"componentProps.gutter",componentProps:{placeholder:"请输入"}},{label:"列编辑",type:"EColEditor",field:"children"},{label:"隐藏",type:"switch",field:"componentProps.hidden"}]}},b={component:()=>Promise.resolve().then(()=>require("../../col-DXjfnmpf.cjs")),defaultSchema:{label:"栅格布局-列",type:"col",children:[],componentProps:{span:6}},config:{attribute:[{label:"占位格数",type:"number",field:"componentProps.span"}]}},m={component:async()=>(await Promise.resolve().then(()=>require("../../index-zYoSB4fa.cjs")).then(e=>e.index)).NSelect,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:"select",field:"componentProps.defaultValue"},{label:"占位内容",type:"input",field:"componentProps.placeholder"},{label:"尺寸",type:"select",field:"componentProps.size",componentProps:{placeholder:"请选择",clearable:!0,options:[{label:"极小",value:"tiny"},{label:"小型",value:"small"},{label:"中等",value:"medium"},{label:"大号",value:"large"}]}},{label:"菜单弹出的位置",type:"select",field:"componentProps.placement",componentProps:{placeholder:"请选择",clearable:!0,options:[{label:"top-start",value:"top-start"},{label:"top",value:"top"},{label:"top-end",value:"top-end"},{label:"right-start",value:"right-start"},{label:"right",value:"right"},{label:"right-end",value:"right-end"},{label:"bottom-start",value:"bottom-start"},{label:"bottom",value:"bottom"},{label:"bottom-end",value:"bottom-end"},{label:"left-start",value:"left-start"},{label:"left",value:"left"},{label:"left-end",value:"left-end"}]}},{label:"可过滤",type:"switch",field:"componentProps.filterable"},{label:"允许创建新选项",type:"switch",field:"componentProps.tag",show:({values:e})=>e.componentProps.filterable},{label:"多选",type:"switch",field:"componentProps.multiple"},{label:"最大tag数",type:"number",field:"componentProps.maxTagCount",show:({values:e})=>e.componentProps.multiple,componentProps:{placeholder:"请输入"}},{label:"可清空",type:"switch",field:"componentProps.clearable"},{label:"禁用",type:"switch",field:"componentProps.disabled"},{label:"隐藏",type:"switch",field:"componentProps.hidden"},{label:"表单校验",type:"ERuleEditor",layout:"vertical",field:"rules",describe:"校验规则需要配合表单使用"},{label:"选项管理",type:"EOptionsEditor",layout:"vertical",field:"componentProps.options",describe:"配置选项"}],event:[{type:"change",describe:"值修改"}]},bindModel:"value"},y={component:()=>Promise.resolve().then(()=>require("../../radio-J90E17Sb.cjs")),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",field:"componentProps.size",componentProps:{placeholder:"请选择",clearable:!0,options:[{label:"大号",value:"large"},{label:"中等",value:"medium"},{label:"小型",value:"small"}]}},{label:"禁用",type:"switch",field:"componentProps.disabled"},{label:"隐藏",type:"switch",field:"componentProps.hidden"},{label:"选项管理",type:"EOptionsEditor",layout:"vertical",field:"componentProps.options",describe:"配置选项"},{label:"表单校验",type:"ERuleEditor",layout:"vertical",field:"rules",describe:"校验规则需要配合表单使用"}],event:[{type:"change",describe:"值变化时"}]}},f={component:()=>Promise.resolve().then(()=>require("../../checkbox-D8eqzQDX.cjs")),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:"number",field:"componentProps.max",componentProps:{placeholder:"请输入"}},{label:"最小勾选数",type:"number",field:"componentProps.min",componentProps:{placeholder:"请输入"}},{label:"尺寸",type:"select",field:"componentProps.size",componentProps:{placeholder:"请选择",clearable:!0,options:[{label:"大号",value:"large"},{label:"中等",value:"medium"},{label:"小型",value:"small"}]}},{label:"禁用",type:"switch",field:"componentProps.disabled"},{label:"隐藏",type:"switch",field:"componentProps.hidden"},{label:"选项管理",type:"EOptionsEditor",layout:"vertical",field:"componentProps.options",describe:"配置选项"},{label:"表单校验",type:"ERuleEditor",layout:"vertical",field:"rules",describe:"校验规则需要配合表单使用",componentProps:{ruleType:"array"}}],event:[{type:"change",describe:"值变化时"}]}},h={component:async()=>(await Promise.resolve().then(()=>require("../../index-DTzB2pWI.cjs")).then(e=>e.index)).NSlider,groupName:"表单",icon:"icon--epic--switches",sort:930,defaultSchema:{label:"滑块",type:"slider",field:"slider",input:!0,componentProps:{placement:"top-start"}},config:{attribute:[{label:"字段名",type:"input",field:"field"},{label:"标题",type:"input",field:"label"},{label:"默认值",type:"slider",field:"componentProps.defaultValue"},{label:"键盘可控",type:"switch",field:"componentProps.keyboard"},{label:"范围选择",type:"switch",field:"componentProps.range",changeSync:!0,onChange:({value:e,values:l})=>{e?l.componentProps.defaultValue=[0,100]:l.componentProps.defaultValue=0}},{label:"倒转轨道",type:"switch",field:"componentProps.reverse"},{label:"步长",type:"number",field:"componentProps.step",componentProps:{placeholder:"请输入"}},{label:"一直显示提示",type:"switch",field:"componentProps.showTooltip"},{label:"垂直模式",type:"switch",field:"componentProps.vertical"},{label:"最大值",type:"number",field:"componentProps.max",componentProps:{placeholder:"请输入"}},{label:"最小值",type:"number",field:"componentProps.min",componentProps:{placeholder:"请输入"}},{label:"弹出位置",type:"select",field:"componentProps.placement",componentProps:{placeholder:"请选择",clearable:!0,options:[{label:"top-start",value:"top-start"},{label:"top",value:"top"},{label:"top-end",value:"top-end"},{label:"right-start",value:"right-start"},{label:"right",value:"right"},{label:"right-end",value:"right-end"},{label:"bottom-start",value:"bottom-start"},{label:"bottom",value:"bottom"},{label:"bottom-end",value:"bottom-end"},{label:"left-start",value:"left-start"},{label:"left",value:"left"},{label:"left-end",value:"left-end"}]}},{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:"拖拽结束改变值时"}]},bindModel:"value"},P={component:async()=>(await Promise.resolve().then(()=>require("../../index-BB9rZNCd.cjs")).then(e=>e.index)).NColorPicker,groupName:"表单",icon:"icon--epic--palette-outline",sort:950,defaultSchema:{label:"颜色选择器",type:"color-picker",field:"color-picker",input:!0,componentProps:{type:"color",modes:["hex"],showAlpha:!0}},config:{attribute:[{label:"字段名",type:"input",field:"field"},{label:"标题",type:"input",field:"label"},{label:"默认值",type:"color-picker",field:"componentProps.defaultValue"},{label:"尺寸",type:"select",defaultValue:"default",componentProps:{placeholder:"请选择",clearable:!0,options:[{label:"大号",value:"large"},{label:"中等",value:"medium"},{label:"小型",value:"small"}]},field:"componentProps.size"},{label:"菜单弹出的位置",type:"select",field:"componentProps.placement",componentProps:{placeholder:"请选择",clearable:!0,options:[{label:"top-start",value:"top-start"},{label:"top",value:"top"},{label:"top-end",value:"top-end"},{label:"right-start",value:"right-start"},{label:"right",value:"right"},{label:"right-end",value:"right-end"},{label:"bottom-start",value:"bottom-start"},{label:"bottom",value:"bottom"},{label:"bottom-end",value:"bottom-end"},{label:"left-start",value:"left-start"},{label:"left",value:"left"},{label:"left-end",value:"left-end"}]}},{label:"格式",type:"checkbox",field:"componentProps.modes",componentProps:{options:[{label:"rgb",value:"rgb"},{label:"hex",value:"hex"},{label:"hsl",value:"hsl"},{label:"hsv",value:"hsv"}],max:1}},{label:"展示预览块",type:"switch",field:"componentProps.showPreview"},{label:"可调节透明度",type:"switch",field:"componentProps.showAlpha"},{label:"禁用",type:"switch",field:"componentProps.disabled"},{label:"隐藏",type:"switch",field:"componentProps.hidden"},{label:"表单校验",type:"ERuleEditor",layout:"vertical",field:"rules",describe:"校验规则需要配合表单使用"}],event:[{type:"change",describe:"值变化时"}],action:[]},bindModel:"value"},v={component:async()=>(await Promise.resolve().then(()=>require("../../index-g5ZjtbqH.cjs")).then(e=>e.index)).NSwitch,groupName:"表单",icon:"icon--epic--toggle-off-outline",sort:930,defaultSchema:{label:"开关",type:"switch",field:"switch",input:!0,componentProps:{defaultValue:!1,round:!0}},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(e){setTimeout(()=>o(e))}},{label:"OFF状态值",type:"input",field:"componentProps.uncheckedValue",componentProps:{placeholder:"请输入"},onChange(e){setTimeout(()=>o(e))}},{label:"尺寸",type:"select",field:"componentProps.size",componentProps:{placeholder:"请选择",clearable:!0,options:[{label:"大号",value:"large"},{label:"中等",value:"medium"},{label:"小型",value:"small"}]}},{label:"圆型按钮",type:"switch",field:"componentProps.round"},{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:"value"};function o(e){var t;let l=((t=e.values.componentProps)==null?void 0:t.uncheckedValue)||!1;e.values.componentProps.uncheckedValue===""&&delete e.values.componentProps.uncheckedValue,e.values.componentProps.checkedValue===""&&delete e.values.componentProps.checkedValue,e.values.componentProps?e.values.componentProps.defaultValue=l:e.values.componentProps={defaultValue:l}}const g={component:async()=>(await Promise.resolve().then(()=>require("../../index-Cphndmia.cjs")).then(e=>e.index)).NCascader,groupName:"表单",icon:"icon--epic--full-coverage-outline",sort:880,defaultSchema:{label:"级联选择器",type:"cascader",field:"cascader",input:!0,componentProps:{options:[{label:"选项1",value:"选项1"},{label:"选项2",value:"选项2"}],placeholder:"请选择",cascade:!1,showPath:!0}},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",field:"componentProps.size",componentProps:{placeholder:"请选择",clearable:!0,options:[{label:"极小",value:"tiny"},{label:"小型",value:"small"},{label:"中等",value:"medium"},{label:"大号",value:"large"}]}},{label:"多选",type:"switch",field:"componentProps.multiple"},{label:"多选时关联选项",type:"switch",field:"componentProps.cascade",show:({values:e})=>e.componentProps.multiple},{label:"分割符",type:"switch",field:"componentProps.separator"},{label:"显示选项路径",type:"switch",field:"componentProps.showPath"},{label:"可搜索",type:"switch",field:"componentProps.filterable"},{label:"菜单弹出的位置",type:"select",field:"componentProps.placement",componentProps:{placeholder:"请选择",clearable:!0,options:[{label:"top-start",value:"top-start"},{label:"top",value:"top"},{label:"top-end",value:"top-end"},{label:"right-start",value:"right-start"},{label:"right",value:"right"},{label:"right-end",value:"right-end"},{label:"bottom-start",value:"bottom-start"},{label:"bottom",value:"bottom"},{label:"bottom-end",value:"bottom-end"},{label:"left-start",value:"left-start"},{label:"left",value:"left"},{label:"left-end",value:"left-end"}]}},{label:"最大tag显示数",type:"number",field:"componentProps.maxTagCount",show:({values:e})=>e.componentProps.multiple},{label:"可清空",type:"switch",field:"componentProps.clearable"},{label:"禁用",type:"switch",field:"componentProps.disabled"},{label:"隐藏",type:"switch",field:"componentProps.hidden"},{label:"选项管理",type:"EOptionsEditor",layout:"vertical",field:"componentProps.options",componentProps:{tree:!0},describe:"配置选项"},{label:"表单校验",type:"ERuleEditor",layout:"vertical",field:"rules",describe:"校验规则需要配合表单使用",componentProps:{ruleType:"array"}}],event:[{type:"change",describe:"选中节点变化时"},{type:"close",describe:"面板的关闭事件"}],action:[{type:"getCheckedNodes",describe:"获取当前选中节点"}]},bindModel:"value"},w={component:()=>Promise.resolve().then(()=>require("../../collapse-BSFa_xwh.cjs")),defaultSchema:{label:"折叠面板",type:"collapse",children:[{type:"collapse-item",children:[],componentProps:{span:12},id:"g062zikd2jk001"},{type:"collapse-item",children:[],componentProps:{span:12},id:"gy5z9jtfb3s001"}]},config:{attribute:[{label:"折叠项管理",type:"EColEditor",field:"children"},{label:"隐藏",type:"switch",field:"componentProps.hidden"}]}},x={component:()=>Promise.resolve().then(()=>require("../../collapseItem-FF5A59WT.cjs")),defaultSchema:{label:"折叠项",type:"collapse-item",children:[]},config:{attribute:[]}},E={component:async()=>(await Promise.resolve().then(()=>require("../../index-BCk0LJsg.cjs")).then(e=>e.index)).NDatePicker,groupName:"表单",icon:"icon--epic--calendar-month-outline-rounded",sort:910,defaultSchema:{label:"日期选择器",type:"date",field:"date",input:!0,componentProps:{type:"date",placeholder:"请选择",format:"yyyy-MM-dd",valueFormat:"yyyy-MM-dd"}},config:{attribute:[{label:"字段名",type:"input",field:"field"},{label:"标题",type:"input",field:"label"},{label:"默认值",type:"date",field:"componentProps.defaultValue"},{label:"尺寸",type:"select",field:"componentProps.size",componentProps:{placeholder:"请选择",clearable:!0,options:[{label:"大号",value:"large"},{label:"中等",value:"medium"},{label:"小型",value:"small"}]}},{label:"占位内容",type:"input",field:"componentProps.placeholder"},{label:"日期类型",type:"select",field:"componentProps.type",componentProps:{options:[{label:"日期",value:"date"},{label:"日期时间",value:"datetime"},{label:"日期范围",value:"daterange"},{label:"时间范围",value:"datetimerange"},{label:"月份",value:"month"},{label:"月份范围",value:"monthrange"},{label:"年份",value:"year"},{label:"季度",value:"quarter"},{label:"周",value:"week"}]},onChange({values:e,value:l}){e.componentProps.defaultValue=null,console.log(l),["date","daterange","dates"].includes(l)?(e.componentProps.format="yyyy-MM-dd",e.componentProps.valueFormat="yyyy-MM-dd"):["week"].includes(l)||["quarter"].includes(l)?(e.componentProps.format=null,e.componentProps.valueFormat="yyyy-MM-dd"):["month","monthrange"].includes(l)?(e.componentProps.format="yyyy-MM",e.componentProps.valueFormat="yyyy-MM"):["datetime","datetimerange"].includes(l)?(e.componentProps.format="yyyy-MM-dd HH:mm:ss",e.componentProps.valueFormat="yyyy-MM-dd HH:mm:ss"):["year"].includes(l)&&(e.componentProps.format="yyyy",e.componentProps.valueFormat="yyyy")}},{label:"显示格式",type:"input",field:"componentProps.format"},{label:"数据格式",type:"input",field:"componentProps.valueFormat"},{label:"分割符",type:"input",field:"componentProps.separator",componentProps:{placeholder:"请输入",clearable:!0},show:({values:e})=>["daterange","datetimerange","monthrange"].includes(e.componentProps.type)},{label:"start框占位符",type:"input",field:"componentProps.startPlaceholder",componentProps:{placeholder:"请输入",clearable:!0},show:({values:e})=>["daterange","datetimerange","monthrange"].includes(e.componentProps.type)},{label:"end框占位符",type:"input",field:"componentProps.endPlaceholder",componentProps:{placeholder:"请输入",clearable:!0},show:({values:e})=>["daterange","datetimerange","monthrange"].includes(e.componentProps.type)},{label:"可清空",type:"switch",field:"componentProps.clearable"},{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:"formatted-value"},N={component:()=>Promise.resolve().then(()=>require("../../uploadFile-Dv3Rsw56.cjs")),groupName:"表单",icon:"icon--epic--upload-rounded",sort:920,defaultSchema:{label:"上传文件",type:"upload-file",field:"uploadFile",input:!0,componentProps:{action:"https://examples.epicjs.cn/static/upload-img.json"}},config:{attribute:[{label:"字段名",type:"input",field:"field"},{label:"标题",type:"input",field:"label"},{label:"请求地址",type:"input",field:"componentProps.action"},{label:"上传文件字段",type:"input",field:"componentProps.name",componentProps:{placeholder:"请输入"}},{label:"允许上传最大数量",type:"number",field:"componentProps.max",componentProps:{min:0,placeholder:"请输入"}},{label:"展示文件列表",type:"switch",field:"componentProps.showFileList"},{label:"多选",type:"switch",field:"componentProps.multiple"},{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"},k={component:()=>Promise.resolve().then(()=>require("../../uploadImage-BQhv5ymq.cjs")),groupName:"表单",icon:"icon--epic--imagesmode-outline-rounded",sort:920,defaultSchema:{label:"上传图片",type:"upload-image",field:"uploadImage",input:!0,componentProps:{action:"https://examples.epicjs.cn/static/upload-img.json"}},config:{attribute:[{label:"字段名",type:"input",field:"field"},{label:"标题",type:"input",field:"label"},{label:"请求地址",type:"input",field:"componentProps.action"},{label:"上传文件字段",type:"input",field:"componentProps.name",componentProps:{placeholder:"请输入"}},{label:"允许上传最大数量",type:"number",field:"componentProps.max",componentProps:{min:0,placeholder:"请输入"}},{label:"展示文件列表",type:"switch",field:"componentProps.showFileList"},{label:"多选",type:"switch",field:"componentProps.multiple"},{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"},S={component:()=>Promise.resolve().then(()=>require("../../modal-BYw2WLwG.cjs")),defaultSchema:{label:"模态框",type:"modal",children:[]},config:{attribute:[{label:"标题",type:"input",field:"title"}]}};function q(e=a.pluginManager){e.component("FormItem",async()=>(await Promise.resolve().then(()=>require("../../index-DMszow96.cjs")).then(t=>t.index)).NFormItem),e.component("Tabs",async()=>(await Promise.resolve().then(()=>require("../../index-D5WpEOUO.cjs")).then(t=>t.index)).NTabs),e.component("TabPane",p.NTabPane),e.component("Collapse",async()=>(await Promise.resolve().then(()=>require("../../index-RdEhd65J.cjs")).then(t=>t.index)).NCollapse),e.component("CollapseItem",async()=>(await Promise.resolve().then(()=>require("../../index-RdEhd65J.cjs")).then(t=>t.index)).NCollapseItem),[i,c,n,r,y,f,E,m,v,P,g,h,N,k,s,d,u,b,w,x,S].forEach(t=>{e.registerComponent(t),e.addBaseComponentTypes(t.defaultSchema.type)}),e.setInitialized(!0)}exports.setupNaiveUi=q;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("epic-designer-gold"),p=require("naive-ui"),n={component:async()=>(await Promise.resolve().then(()=>require("../../index-BVUz9lFN.cjs")).then(e=>e.index)).NInput,groupName:"表单",icon:"icon--epic--border-color-outline-rounded",sort:700,defaultSchema:{label:"输入框",type:"input",field:"input",input:!0,componentProps:{defaultValue:"",placeholder:"请输入",type:"text"}},config:{attribute:[{label:"字段名",type:"input",field:"field"},{label:"标题",type:"input",field:"label"},{label:"默认值",type:"input",field:"componentProps.defaultValue"},{label:"占位内容",type:"input",field:"componentProps.placeholder"},{label:"尺寸",type:"select",field:"componentProps.size",componentProps:{placeholder:"请选择",clearable:!0,options:[{label:"极小",value:"tiny"},{label:"小型",value:"small"},{label:"中等",value:"medium"},{label:"大号",value:"large"}]}},{label:"输入类型",type:"select",defaultValue:"text",componentProps:{placeholder:"请选择",clearable:!0,options:[{label:"text",value:"text"},{label:"textarea",value:"textarea"},{label:"password",value:"password"}]},field:"componentProps.type",onChange:({value:e,values:l})=>{e!="text"&&(l.componentProps.pair=!1)}},{label:"最大输入长度",type:"number",field:"componentProps.maxlength",componentProps:{placeholder:"请输入"}},{label:"显示密码的时机",type:"select",field:"componentProps.showPasswordOn",componentProps:{placeholder:"请选择",clearable:!0,options:[{label:"click",value:"click"},{label:"mousedown",value:"mousedown"}]},show:({values:e})=>e.componentProps.type==="password"},{label:"行数",type:"number",field:"componentProps.rows",show:({values:e})=>e.componentProps.type==="textarea"},{label:"是否输入成对值",type:"switch",field:"componentProps.pair",show:({values:e})=>e.componentProps.type==="text"},{label:"分割符",type:"input",field:"componentProps.separator",show:({values:e})=>e.componentProps.type==="text"&&e.componentProps.pair,componentProps:{placeholder:"请输入"}},{label:"是否圆角",type:"switch",field:"componentProps.round"},{label:"是否统计字数",type:"switch",field:"componentProps.showCount"},{label:"自适应内容高度",type:"switch",field:"componentProps.autosize",show:({values:e})=>e.componentProps.type==="textarea"},{label:"可清空",type:"switch",field:"componentProps.clearable"},{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:"focus",describe:"获取焦点"},{type:"blur",describe:"失去焦点"}],action:[{type:"focus",describe:"使 input 获取焦点"},{type:"blur",describe:"使 input 失去焦点"},{type:"clear",describe:"清除 input 值"},{type:"select",describe:"选中 input 中的文字"}]},bindModel:"value"},r={component:async()=>(await Promise.resolve().then(()=>require("../../index-XU85x6vz.cjs")).then(e=>e.index)).NInputNumber,groupName:"表单",icon:"icon--epic--123-rounded",sort:710,defaultSchema:{label:"数字输入框",type:"number",field:"number",input:!0,componentProps:{placeholder:"请输入"}},config:{attribute:[{label:"字段名",type:"input",field:"field"},{label:"标题",type:"input",field:"label"},{label:"默认值",type:"number",field:"componentProps.defaultValue"},{label:"占位内容",type:"input",field:"componentProps.placeholder"},{label:"尺寸",type:"select",field:"componentProps.size",componentProps:{placeholder:"请选择",clearable:!0,options:[{label:"极小",value:"tiny"},{label:"小型",value:"small"},{label:"中等",value:"medium"},{label:"大号",value:"large"}]}},{label:"控制按钮位置",type:"select",field:"componentProps.buttonPlacement",componentProps:{placeholder:"请选择",clearable:!0,options:[{label:"both",value:"both"},{label:"right",value:"right"}]}},{label:"最大值",type:"number",field:"componentProps.max",componentProps:{placeholder:"请输入"}},{label:"最小值",type:"number",field:"componentProps.min",componentProps:{placeholder:"请输入"}},{label:"步长",type:"number",field:"componentProps.step",componentProps:{placeholder:"请输入"}},{label:"精度",type:"number",field:"componentProps.precision",componentProps:{placeholder:"请输入"}},{label:"可清空",type:"switch",field:"componentProps.clearable"},{label:"禁用",type:"switch",field:"componentProps.disabled"},{label:"隐藏",type:"switch",field:"componentProps.hidden"},{label:"表单校验",type:"ERuleEditor",layout:"vertical",field:"rules",describe:"校验规则需要配合表单使用",componentProps:{ruleType:"number"}}]},bindModel:"value"},i={component:()=>Promise.resolve().then(()=>require("../../form-ChuxpD-f.cjs")),groupName:"表单",icon:"icon--epic--list-alt-outline-rounded",sort:600,defaultSchema:{label:"表单",type:"form",componentProps:{name:"default",labelWidth:100,labelCol:{span:5},wrapperCol:{span:19},hideRequiredMark:!1},children:[]},config:{attribute:[{label:"name",type:"input",field:"componentProps.name"},{label:"标签宽度",type:"EInputSize",field:"componentProps.labelWidth"},{label:"标签位置",type:"select",field:"componentProps.labelPlacement",componentProps:{placeholder:"请选择",clearable:!0,options:[{label:"左边",value:"left"},{label:"顶部",value:"top"}]}},{label:"标签对齐方式",type:"select",field:"componentProps.labelAlign",componentProps:{placeholder:"请选择",clearable:!0,options:[{label:"左边",value:"left"},{label:"右边",value:"right"}]}},{label:"必填星号位置",type:"select",field:"componentProps.requireMarkPlacement",componentProps:{placeholder:"请选择",clearable:!0,options:[{label:"左边",value:"left"},{label:"右边",value:"right"}]}},{label:"表单尺寸",type:"select",field:"componentProps.size",componentProps:{placeholder:"请选择",clearable:!0,options:[{label:"大号",value:"large"},{label:"中等",value:"medium"},{label:"小型",value:"small"}]}},{label:"行内模式",type:"switch",field:"componentProps.inline"},{label:"禁用",type:"switch",field:"componentProps.disabled"},{label:"隐藏",type:"switch",field:"componentProps.hidden"}],action:[{type:"getData",describe:"获取表单数据"},{type:"setData",describe:"设置表单数据"},{type:"validate",describe:"校验表单"}]}},c={component:()=>Promise.resolve().then(()=>require("../../formItem-Do31LPIz.cjs")),defaultSchema:{label:"表单项",type:"form-item"},config:{}},s={component:()=>Promise.resolve().then(()=>require("../../button-BKT6NVeB.cjs")),groupName:"表单",icon:"icon--epic--fit-screen-rounded",sort:1200,defaultSchema:{label:"按钮",type:"button",field:"input",input:!1,componentProps:{bordered:!0,type:"default",size:"medium"}},config:{attribute:[{label:"标题",type:"input",field:"label"},{label:"类型",type:"select",componentProps:{placeholder:"请选择",options:[{label:"default",value:"default"},{label:"tertiary",value:"tertiary"},{label:"primary",value:"primary"},{label:"success",value:"success"},{label:"info",value:"info"},{label:"warning",value:"warning"},{label:"error",value:"error"}]},field:"componentProps.type"},{label:"尺寸",type:"select",defaultValue:"default",componentProps:{placeholder:"请选择",clearable:!0,options:[{label:"tiny",value:"tiny"},{label:"大号",value:"large"},{label:"中等",value:"medium"},{label:"小型",value:"small"}]},field:"componentProps.size"},{label:"是否块级",type:"switch",field:"componentProps.block"},{label:"显示边框",type:"switch",field:"componentProps.bordered"},{label:"虚线框",type:"switch",field:"componentProps.dashed"},{label:"圆角按钮",type:"switch",field:"componentProps.round"},{label:"圆形按钮",type:"switch",field:"componentProps.circle"},{label:"按钮颜色",type:"color-picker",field:"componentProps.color"},{label:"是否透明",type:"switch",field:"componentProps.ghost"},{label:"禁用",type:"switch",field:"componentProps.disabled"},{label:"隐藏",type:"switch",field:"componentProps.hidden"}],event:[{type:"click",describe:"点击按钮时"},{type:"dblclick",describe:"双击按钮时"}]}},d={component:()=>Promise.resolve().then(()=>require("../../card-BOMT_SwB.cjs")),groupName:"布局",icon:"icon--epic--wysiwyg-rounded",sort:900,defaultSchema:{label:"卡片布局",type:"card",children:[]},config:{attribute:[{label:"标题",type:"input",field:"label"},{label:"隐藏",type:"switch",field:"componentProps.hidden"}]}},u={component:()=>Promise.resolve().then(()=>require("../../row-B28N4Nao.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:"number",field:"componentProps.gutter",componentProps:{placeholder:"请输入"}},{label:"列编辑",type:"EColEditor",field:"children"},{label:"隐藏",type:"switch",field:"componentProps.hidden"}]}},b={component:()=>Promise.resolve().then(()=>require("../../col-DXjfnmpf.cjs")),defaultSchema:{label:"栅格布局-列",type:"col",children:[],componentProps:{span:6}},config:{attribute:[{label:"占位格数",type:"number",field:"componentProps.span"}]}},m={component:async()=>(await Promise.resolve().then(()=>require("../../index-zYoSB4fa.cjs")).then(e=>e.index)).NSelect,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:"select",field:"componentProps.defaultValue"},{label:"占位内容",type:"input",field:"componentProps.placeholder"},{label:"尺寸",type:"select",field:"componentProps.size",componentProps:{placeholder:"请选择",clearable:!0,options:[{label:"极小",value:"tiny"},{label:"小型",value:"small"},{label:"中等",value:"medium"},{label:"大号",value:"large"}]}},{label:"菜单弹出的位置",type:"select",field:"componentProps.placement",componentProps:{placeholder:"请选择",clearable:!0,options:[{label:"top-start",value:"top-start"},{label:"top",value:"top"},{label:"top-end",value:"top-end"},{label:"right-start",value:"right-start"},{label:"right",value:"right"},{label:"right-end",value:"right-end"},{label:"bottom-start",value:"bottom-start"},{label:"bottom",value:"bottom"},{label:"bottom-end",value:"bottom-end"},{label:"left-start",value:"left-start"},{label:"left",value:"left"},{label:"left-end",value:"left-end"}]}},{label:"可过滤",type:"switch",field:"componentProps.filterable"},{label:"允许创建新选项",type:"switch",field:"componentProps.tag",show:({values:e})=>e.componentProps.filterable},{label:"多选",type:"switch",field:"componentProps.multiple"},{label:"最大tag数",type:"number",field:"componentProps.maxTagCount",show:({values:e})=>e.componentProps.multiple,componentProps:{placeholder:"请输入"}},{label:"可清空",type:"switch",field:"componentProps.clearable"},{label:"禁用",type:"switch",field:"componentProps.disabled"},{label:"隐藏",type:"switch",field:"componentProps.hidden"},{label:"表单校验",type:"ERuleEditor",layout:"vertical",field:"rules",describe:"校验规则需要配合表单使用"},{label:"选项管理",type:"EOptionsEditor",layout:"vertical",field:"componentProps.options",describe:"配置选项"}],event:[{type:"change",describe:"值修改"}]},bindModel:"value"},y={component:()=>Promise.resolve().then(()=>require("../../radio-J90E17Sb.cjs")),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",field:"componentProps.size",componentProps:{placeholder:"请选择",clearable:!0,options:[{label:"大号",value:"large"},{label:"中等",value:"medium"},{label:"小型",value:"small"}]}},{label:"禁用",type:"switch",field:"componentProps.disabled"},{label:"隐藏",type:"switch",field:"componentProps.hidden"},{label:"选项管理",type:"EOptionsEditor",layout:"vertical",field:"componentProps.options",describe:"配置选项"},{label:"表单校验",type:"ERuleEditor",layout:"vertical",field:"rules",describe:"校验规则需要配合表单使用"}],event:[{type:"change",describe:"值变化时"}]}},f={component:()=>Promise.resolve().then(()=>require("../../checkbox-D8eqzQDX.cjs")),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:"number",field:"componentProps.max",componentProps:{placeholder:"请输入"}},{label:"最小勾选数",type:"number",field:"componentProps.min",componentProps:{placeholder:"请输入"}},{label:"尺寸",type:"select",field:"componentProps.size",componentProps:{placeholder:"请选择",clearable:!0,options:[{label:"大号",value:"large"},{label:"中等",value:"medium"},{label:"小型",value:"small"}]}},{label:"禁用",type:"switch",field:"componentProps.disabled"},{label:"隐藏",type:"switch",field:"componentProps.hidden"},{label:"选项管理",type:"EOptionsEditor",layout:"vertical",field:"componentProps.options",describe:"配置选项"},{label:"表单校验",type:"ERuleEditor",layout:"vertical",field:"rules",describe:"校验规则需要配合表单使用",componentProps:{ruleType:"array"}}],event:[{type:"change",describe:"值变化时"}]}},h={component:async()=>(await Promise.resolve().then(()=>require("../../index-DTzB2pWI.cjs")).then(e=>e.index)).NSlider,groupName:"表单",icon:"icon--epic--switches",sort:930,defaultSchema:{label:"滑块",type:"slider",field:"slider",input:!0,componentProps:{placement:"top-start"}},config:{attribute:[{label:"字段名",type:"input",field:"field"},{label:"标题",type:"input",field:"label"},{label:"默认值",type:"slider",field:"componentProps.defaultValue"},{label:"键盘可控",type:"switch",field:"componentProps.keyboard"},{label:"范围选择",type:"switch",field:"componentProps.range",changeSync:!0,onChange:({value:e,values:l})=>{e?l.componentProps.defaultValue=[0,100]:l.componentProps.defaultValue=0}},{label:"倒转轨道",type:"switch",field:"componentProps.reverse"},{label:"步长",type:"number",field:"componentProps.step",componentProps:{placeholder:"请输入"}},{label:"一直显示提示",type:"switch",field:"componentProps.showTooltip"},{label:"垂直模式",type:"switch",field:"componentProps.vertical"},{label:"最大值",type:"number",field:"componentProps.max",componentProps:{placeholder:"请输入"}},{label:"最小值",type:"number",field:"componentProps.min",componentProps:{placeholder:"请输入"}},{label:"弹出位置",type:"select",field:"componentProps.placement",componentProps:{placeholder:"请选择",clearable:!0,options:[{label:"top-start",value:"top-start"},{label:"top",value:"top"},{label:"top-end",value:"top-end"},{label:"right-start",value:"right-start"},{label:"right",value:"right"},{label:"right-end",value:"right-end"},{label:"bottom-start",value:"bottom-start"},{label:"bottom",value:"bottom"},{label:"bottom-end",value:"bottom-end"},{label:"left-start",value:"left-start"},{label:"left",value:"left"},{label:"left-end",value:"left-end"}]}},{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:"拖拽结束改变值时"}]},bindModel:"value"},P={component:async()=>(await Promise.resolve().then(()=>require("../../index-BB9rZNCd.cjs")).then(e=>e.index)).NColorPicker,groupName:"表单",icon:"icon--epic--palette-outline",sort:950,defaultSchema:{label:"颜色选择器",type:"color-picker",field:"color-picker",input:!0,componentProps:{type:"color",modes:["hex"],showAlpha:!0}},config:{attribute:[{label:"字段名",type:"input",field:"field"},{label:"标题",type:"input",field:"label"},{label:"默认值",type:"color-picker",field:"componentProps.defaultValue"},{label:"尺寸",type:"select",defaultValue:"default",componentProps:{placeholder:"请选择",clearable:!0,options:[{label:"大号",value:"large"},{label:"中等",value:"medium"},{label:"小型",value:"small"}]},field:"componentProps.size"},{label:"菜单弹出的位置",type:"select",field:"componentProps.placement",componentProps:{placeholder:"请选择",clearable:!0,options:[{label:"top-start",value:"top-start"},{label:"top",value:"top"},{label:"top-end",value:"top-end"},{label:"right-start",value:"right-start"},{label:"right",value:"right"},{label:"right-end",value:"right-end"},{label:"bottom-start",value:"bottom-start"},{label:"bottom",value:"bottom"},{label:"bottom-end",value:"bottom-end"},{label:"left-start",value:"left-start"},{label:"left",value:"left"},{label:"left-end",value:"left-end"}]}},{label:"格式",type:"checkbox",field:"componentProps.modes",componentProps:{options:[{label:"rgb",value:"rgb"},{label:"hex",value:"hex"},{label:"hsl",value:"hsl"},{label:"hsv",value:"hsv"}],max:1}},{label:"展示预览块",type:"switch",field:"componentProps.showPreview"},{label:"可调节透明度",type:"switch",field:"componentProps.showAlpha"},{label:"禁用",type:"switch",field:"componentProps.disabled"},{label:"隐藏",type:"switch",field:"componentProps.hidden"},{label:"表单校验",type:"ERuleEditor",layout:"vertical",field:"rules",describe:"校验规则需要配合表单使用"}],event:[{type:"change",describe:"值变化时"}],action:[]},bindModel:"value"},v={component:async()=>(await Promise.resolve().then(()=>require("../../index-g5ZjtbqH.cjs")).then(e=>e.index)).NSwitch,groupName:"表单",icon:"icon--epic--toggle-off-outline",sort:930,defaultSchema:{label:"开关",type:"switch",field:"switch",input:!0,componentProps:{defaultValue:!1,round:!0}},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(e){setTimeout(()=>o(e))}},{label:"OFF状态值",type:"input",field:"componentProps.uncheckedValue",componentProps:{placeholder:"请输入"},onChange(e){setTimeout(()=>o(e))}},{label:"尺寸",type:"select",field:"componentProps.size",componentProps:{placeholder:"请选择",clearable:!0,options:[{label:"大号",value:"large"},{label:"中等",value:"medium"},{label:"小型",value:"small"}]}},{label:"圆型按钮",type:"switch",field:"componentProps.round"},{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:"value"};function o(e){var t;let l=((t=e.values.componentProps)==null?void 0:t.uncheckedValue)||!1;e.values.componentProps.uncheckedValue===""&&delete e.values.componentProps.uncheckedValue,e.values.componentProps.checkedValue===""&&delete e.values.componentProps.checkedValue,e.values.componentProps?e.values.componentProps.defaultValue=l:e.values.componentProps={defaultValue:l}}const g={component:async()=>(await Promise.resolve().then(()=>require("../../index-Cphndmia.cjs")).then(e=>e.index)).NCascader,groupName:"表单",icon:"icon--epic--full-coverage-outline",sort:880,defaultSchema:{label:"级联选择器",type:"cascader",field:"cascader",input:!0,componentProps:{options:[{label:"选项1",value:"选项1"},{label:"选项2",value:"选项2"}],placeholder:"请选择",cascade:!1,showPath:!0}},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",field:"componentProps.size",componentProps:{placeholder:"请选择",clearable:!0,options:[{label:"极小",value:"tiny"},{label:"小型",value:"small"},{label:"中等",value:"medium"},{label:"大号",value:"large"}]}},{label:"多选",type:"switch",field:"componentProps.multiple"},{label:"多选时关联选项",type:"switch",field:"componentProps.cascade",show:({values:e})=>e.componentProps.multiple},{label:"分割符",type:"switch",field:"componentProps.separator"},{label:"显示选项路径",type:"switch",field:"componentProps.showPath"},{label:"可搜索",type:"switch",field:"componentProps.filterable"},{label:"菜单弹出的位置",type:"select",field:"componentProps.placement",componentProps:{placeholder:"请选择",clearable:!0,options:[{label:"top-start",value:"top-start"},{label:"top",value:"top"},{label:"top-end",value:"top-end"},{label:"right-start",value:"right-start"},{label:"right",value:"right"},{label:"right-end",value:"right-end"},{label:"bottom-start",value:"bottom-start"},{label:"bottom",value:"bottom"},{label:"bottom-end",value:"bottom-end"},{label:"left-start",value:"left-start"},{label:"left",value:"left"},{label:"left-end",value:"left-end"}]}},{label:"最大tag显示数",type:"number",field:"componentProps.maxTagCount",show:({values:e})=>e.componentProps.multiple},{label:"可清空",type:"switch",field:"componentProps.clearable"},{label:"禁用",type:"switch",field:"componentProps.disabled"},{label:"隐藏",type:"switch",field:"componentProps.hidden"},{label:"选项管理",type:"EOptionsEditor",layout:"vertical",field:"componentProps.options",componentProps:{tree:!0},describe:"配置选项"},{label:"表单校验",type:"ERuleEditor",layout:"vertical",field:"rules",describe:"校验规则需要配合表单使用",componentProps:{ruleType:"array"}}],event:[{type:"change",describe:"选中节点变化时"},{type:"close",describe:"面板的关闭事件"}],action:[{type:"getCheckedNodes",describe:"获取当前选中节点"}]},bindModel:"value"},w={component:()=>Promise.resolve().then(()=>require("../../collapse-BSFa_xwh.cjs")),defaultSchema:{label:"折叠面板",type:"collapse",children:[{type:"collapse-item",children:[],componentProps:{span:12},id:"g062zikd2jk001"},{type:"collapse-item",children:[],componentProps:{span:12},id:"gy5z9jtfb3s001"}]},config:{attribute:[{label:"折叠项管理",type:"EColEditor",field:"children"},{label:"隐藏",type:"switch",field:"componentProps.hidden"}]}},x={component:()=>Promise.resolve().then(()=>require("../../collapseItem-FF5A59WT.cjs")),defaultSchema:{label:"折叠项",type:"collapse-item",children:[]},config:{attribute:[]}},E={component:async()=>(await Promise.resolve().then(()=>require("../../index-BCk0LJsg.cjs")).then(e=>e.index)).NDatePicker,groupName:"表单",icon:"icon--epic--calendar-month-outline-rounded",sort:910,defaultSchema:{label:"日期选择器",type:"date",field:"date",input:!0,componentProps:{type:"date",placeholder:"请选择",format:"yyyy-MM-dd",valueFormat:"yyyy-MM-dd"}},config:{attribute:[{label:"字段名",type:"input",field:"field"},{label:"标题",type:"input",field:"label"},{label:"默认值",type:"date",field:"componentProps.defaultValue"},{label:"尺寸",type:"select",field:"componentProps.size",componentProps:{placeholder:"请选择",clearable:!0,options:[{label:"大号",value:"large"},{label:"中等",value:"medium"},{label:"小型",value:"small"}]}},{label:"占位内容",type:"input",field:"componentProps.placeholder"},{label:"日期类型",type:"select",field:"componentProps.type",componentProps:{options:[{label:"日期",value:"date"},{label:"日期时间",value:"datetime"},{label:"日期范围",value:"daterange"},{label:"时间范围",value:"datetimerange"},{label:"月份",value:"month"},{label:"月份范围",value:"monthrange"},{label:"年份",value:"year"},{label:"季度",value:"quarter"},{label:"周",value:"week"}]},onChange({values:e,value:l}){e.componentProps.defaultValue=null,console.log(l),["date","daterange","dates"].includes(l)?(e.componentProps.format="yyyy-MM-dd",e.componentProps.valueFormat="yyyy-MM-dd"):["week"].includes(l)||["quarter"].includes(l)?(e.componentProps.format=null,e.componentProps.valueFormat="yyyy-MM-dd"):["month","monthrange"].includes(l)?(e.componentProps.format="yyyy-MM",e.componentProps.valueFormat="yyyy-MM"):["datetime","datetimerange"].includes(l)?(e.componentProps.format="yyyy-MM-dd HH:mm:ss",e.componentProps.valueFormat="yyyy-MM-dd HH:mm:ss"):["year"].includes(l)&&(e.componentProps.format="yyyy",e.componentProps.valueFormat="yyyy")}},{label:"显示格式",type:"input",field:"componentProps.format"},{label:"数据格式",type:"input",field:"componentProps.valueFormat"},{label:"分割符",type:"input",field:"componentProps.separator",componentProps:{placeholder:"请输入",clearable:!0},show:({values:e})=>["daterange","datetimerange","monthrange"].includes(e.componentProps.type)},{label:"start框占位符",type:"input",field:"componentProps.startPlaceholder",componentProps:{placeholder:"请输入",clearable:!0},show:({values:e})=>["daterange","datetimerange","monthrange"].includes(e.componentProps.type)},{label:"end框占位符",type:"input",field:"componentProps.endPlaceholder",componentProps:{placeholder:"请输入",clearable:!0},show:({values:e})=>["daterange","datetimerange","monthrange"].includes(e.componentProps.type)},{label:"可清空",type:"switch",field:"componentProps.clearable"},{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:"formatted-value"},N={component:()=>Promise.resolve().then(()=>require("../../uploadFile-Dv3Rsw56.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:"input",field:"componentProps.name",componentProps:{placeholder:"请输入"}},{label:"允许上传最大数量",type:"number",field:"componentProps.max",componentProps:{min:0,placeholder:"请输入"}},{label:"展示文件列表",type:"switch",field:"componentProps.showFileList"},{label:"多选",type:"switch",field:"componentProps.multiple"},{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"},k={component:()=>Promise.resolve().then(()=>require("../../uploadImage-BQhv5ymq.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:"input",field:"componentProps.name",componentProps:{placeholder:"请输入"}},{label:"允许上传最大数量",type:"number",field:"componentProps.max",componentProps:{min:0,placeholder:"请输入"}},{label:"展示文件列表",type:"switch",field:"componentProps.showFileList"},{label:"多选",type:"switch",field:"componentProps.multiple"},{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"},S={component:()=>Promise.resolve().then(()=>require("../../modal-BYw2WLwG.cjs")),defaultSchema:{label:"模态框",type:"modal",children:[]},config:{attribute:[{label:"标题",type:"input",field:"title"}]}};function q(e=a.pluginManager){e.component("FormItem",async()=>(await Promise.resolve().then(()=>require("../../index-DMszow96.cjs")).then(t=>t.index)).NFormItem),e.component("Tabs",async()=>(await Promise.resolve().then(()=>require("../../index-D5WpEOUO.cjs")).then(t=>t.index)).NTabs),e.component("TabPane",p.NTabPane),e.component("Collapse",async()=>(await Promise.resolve().then(()=>require("../../index-RdEhd65J.cjs")).then(t=>t.index)).NCollapse),e.component("CollapseItem",async()=>(await Promise.resolve().then(()=>require("../../index-RdEhd65J.cjs")).then(t=>t.index)).NCollapseItem),[i,c,n,r,y,f,E,m,v,P,g,h,N,k,s,d,u,b,w,x,S].forEach(t=>{e.registerComponent(t),e.addBaseComponentTypes(t.defaultSchema.type)}),e.setInitialized(!0)}exports.setupNaiveUi=q;
|
package/dist/ui/naiveUi/index.js
CHANGED
|
@@ -999,7 +999,7 @@ const n = {
|
|
|
999
999
|
]
|
|
1000
1000
|
},
|
|
1001
1001
|
bindModel: "value"
|
|
1002
|
-
},
|
|
1002
|
+
}, f = {
|
|
1003
1003
|
component: () => import("../../radio-DAOm4xuJ.js"),
|
|
1004
1004
|
groupName: "表单",
|
|
1005
1005
|
icon: "icon--epic--radio-button-checked-outline",
|
|
@@ -1094,7 +1094,7 @@ const n = {
|
|
|
1094
1094
|
}
|
|
1095
1095
|
]
|
|
1096
1096
|
}
|
|
1097
|
-
},
|
|
1097
|
+
}, y = {
|
|
1098
1098
|
component: () => import("../../checkbox-Dp36upb2.js"),
|
|
1099
1099
|
groupName: "表单",
|
|
1100
1100
|
icon: "icon--epic--dialogs-outline-rounded",
|
|
@@ -1683,7 +1683,7 @@ function o(e) {
|
|
|
1683
1683
|
defaultValue: l
|
|
1684
1684
|
};
|
|
1685
1685
|
}
|
|
1686
|
-
const
|
|
1686
|
+
const w = {
|
|
1687
1687
|
component: async () => (await import("../../index-DaRhLTx9.js").then((e) => e.i)).NCascader,
|
|
1688
1688
|
groupName: "表单",
|
|
1689
1689
|
icon: "icon--epic--full-coverage-outline",
|
|
@@ -1903,7 +1903,7 @@ const g = {
|
|
|
1903
1903
|
]
|
|
1904
1904
|
},
|
|
1905
1905
|
bindModel: "value"
|
|
1906
|
-
},
|
|
1906
|
+
}, g = {
|
|
1907
1907
|
component: () => import("../../collapse-CxLG5oyO.js"),
|
|
1908
1908
|
defaultSchema: {
|
|
1909
1909
|
label: "折叠面板",
|
|
@@ -2149,7 +2149,7 @@ const g = {
|
|
|
2149
2149
|
field: "uploadFile",
|
|
2150
2150
|
input: !0,
|
|
2151
2151
|
componentProps: {
|
|
2152
|
-
action: "https://
|
|
2152
|
+
action: "https://ess-ds.com/prod-api/center-file/file/upload"
|
|
2153
2153
|
}
|
|
2154
2154
|
},
|
|
2155
2155
|
config: {
|
|
@@ -2219,7 +2219,7 @@ const g = {
|
|
|
2219
2219
|
]
|
|
2220
2220
|
},
|
|
2221
2221
|
bindModel: "modelValue"
|
|
2222
|
-
},
|
|
2222
|
+
}, S = {
|
|
2223
2223
|
component: () => import("../../uploadImage-CnNnAISs.js"),
|
|
2224
2224
|
groupName: "表单",
|
|
2225
2225
|
icon: "icon--epic--imagesmode-outline-rounded",
|
|
@@ -2230,7 +2230,7 @@ const g = {
|
|
|
2230
2230
|
field: "uploadImage",
|
|
2231
2231
|
input: !0,
|
|
2232
2232
|
componentProps: {
|
|
2233
|
-
action: "https://
|
|
2233
|
+
action: "https://ess-ds.com/prod-api/center-file/file/upload"
|
|
2234
2234
|
}
|
|
2235
2235
|
},
|
|
2236
2236
|
config: {
|
|
@@ -2300,7 +2300,7 @@ const g = {
|
|
|
2300
2300
|
]
|
|
2301
2301
|
},
|
|
2302
2302
|
bindModel: "modelValue"
|
|
2303
|
-
},
|
|
2303
|
+
}, V = {
|
|
2304
2304
|
component: () => import("../../modal-D4cRUUVN.js"),
|
|
2305
2305
|
defaultSchema: {
|
|
2306
2306
|
label: "模态框",
|
|
@@ -2323,23 +2323,23 @@ function M(e = a) {
|
|
|
2323
2323
|
c,
|
|
2324
2324
|
n,
|
|
2325
2325
|
i,
|
|
2326
|
-
y,
|
|
2327
2326
|
f,
|
|
2327
|
+
y,
|
|
2328
2328
|
k,
|
|
2329
2329
|
u,
|
|
2330
2330
|
v,
|
|
2331
2331
|
P,
|
|
2332
|
-
|
|
2332
|
+
w,
|
|
2333
2333
|
h,
|
|
2334
2334
|
N,
|
|
2335
|
-
|
|
2335
|
+
S,
|
|
2336
2336
|
s,
|
|
2337
2337
|
d,
|
|
2338
2338
|
b,
|
|
2339
2339
|
m,
|
|
2340
|
-
|
|
2340
|
+
g,
|
|
2341
2341
|
E,
|
|
2342
|
-
|
|
2342
|
+
V
|
|
2343
2343
|
].forEach((t) => {
|
|
2344
2344
|
e.registerComponent(t), e.addBaseComponentTypes(t.defaultSchema.type);
|
|
2345
2345
|
}), e.setInitialized(!0);
|