epic-designer-gold 1.0.30 → 1.0.31
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/elementPlus/index.cjs +1 -1
- package/dist/ui/elementPlus/index.js +2 -2
- package/dist/uploadFile-CTDuT_4r.cjs +1 -0
- package/dist/uploadFile-D1Wv0mlk.js +90 -0
- package/dist/uploadImage-0mGONFA8.cjs +1 -0
- package/dist/{uploadImage-DQmVV0jl.js → uploadImage-lNqQKWH3.js} +23 -22
- package/package.json +2 -2
- package/dist/uploadFile-pgvj4Lm9.cjs +0 -1
- package/dist/uploadFile-qCbXuHfd.js +0 -81
- package/dist/uploadImage-B3sOX-5F.cjs +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var Y=Object.create;var k=Object.defineProperty;var D=Object.getOwnPropertyDescriptor;var B=Object.getOwnPropertyNames;var M=Object.getPrototypeOf,$=Object.prototype.hasOwnProperty;var W=(e,a,f,x)=>{if(a&&typeof a=="object"||typeof a=="function")for(let V of B(a))!$.call(e,V)&&V!==f&&k(e,V,{get:()=>a[V],enumerable:!(x=D(a,V))||x.enumerable});return e};var E=(e,a,f)=>(f=e!=null?Y(M(e)):{},W(a||!e||!e.__esModule?k(f,"default",{value:e,enumerable:!0}):f,e));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const A=require("epic-designer-gold"),n=require("../../index-BoL2PSBk.cjs"),S=require("element-plus"),{t:p}=n.useLocale(),O={component:async()=>(await import("element-plus")).ElInput,groupName:p("form"),icon:"icon--epic--border-color-outline-rounded",sort:700,defaultSchema:{label:p("input"),type:"input",field:"input",input:!0,componentProps:{placeholder:p("pleaseEnter"),style:{cursor:""}}},config:{attribute:[{label:p("fieldName"),type:"input",field:"field"},{label:p("title"),type:"input",field:"label"},{label:p("defaultValue"),type:"input",field:"componentProps.defaultValue"},{label:p("placeholder"),type:"input",field:"componentProps.placeholder"},{label:p("size"),type:"select",defaultValue:"default",componentProps:{placeholder:p("pleaseSelect"),clearable:!0,options:[{label:p("large"),value:"large"},{label:p("medium"),value:"default"},{label:p("small"),value:"small"}]},field:"componentProps.size"},{label:p("maxInputLength"),type:"number",field:"componentProps.maxlength",componentProps:{placeholder:p("pleaseEnter"),min:0}},{label:p("countWords"),type:"switch",field:"componentProps.showWordLimit",show:({values:e})=>e.componentProps.maxlength},{label:p("inputType"),type:"select",defaultValue:"text",componentProps:{placeholder:p("pleaseSelect"),clearable:!0,options:[{label:"text",value:"text"},{label:"number",value:"number"},{label:"password",value:"password"}]},field:"componentProps.type"},{label:p("showToggleIcon"),type:"switch",field:"componentProps.showPassword",show:({values:e})=>e.componentProps.type==="password"},{label:p("clearable"),type:"switch",field:"componentProps.clearable"},{label:"超链接",type:"switch",field:"componentProps.isLink"},{label:p("formValidation"),type:"ERuleEditor",layout:"vertical",field:"rules",describe:p("validationRuleRequiresForm")}],event:[{type:"input",describe:p("onInput")},{type:"change",describe:p("onChange")},{type:"focus",describe:p("onFocus")},{type:"blur",describe:p("onBlur")},{type:"clear",describe:p("onClear")},{type:"click",describe:"点击时"}],action:[{type:"focus",describe:p("focusInput")},{type:"blur",describe:p("blurInput")},{type:"clear",describe:p("clearInput")},{type:"select",describe:p("selectInputText")}]}},{t:i}=n.useLocale(),U={component:async()=>(await import("element-plus")).ElInput,icon:"icon--epic--edit-square-outline-rounded",groupName:i("form"),sort:705,defaultSchema:{label:i("textarea"),type:"textarea",field:"textarea",input:!0,componentProps:{placeholder:i("pleaseEnter"),type:"textarea"}},config:{attribute:[{label:i("fieldName"),type:"input",field:"field"},{label:i("title"),type:"input",field:"label"},{label:i("defaultValue"),type:"textarea",field:"componentProps.defaultValue"},{label:i("placeholder"),type:"input",field:"componentProps.placeholder"},{label:i("size"),type:"select",componentProps:{placeholder:i("pleaseSelect"),clearable:!0,options:[{label:i("large"),value:"large"},{label:i("medium"),value:"default"},{label:i("small"),value:"small"}]},field:"componentProps.size"},{label:i("maxInputLength"),type:"number",field:"componentProps.maxlength",componentProps:{placeholder:i("pleaseEnter"),min:0}},{label:i("countWords"),type:"switch",field:"componentProps.showWordLimit",show:({values:e})=>e.componentProps.maxlength},{label:i("minRows"),type:"number",field:"componentProps.autosize.minRows",componentProps:{placeholder:i("pleaseEnter")}},{label:i("maxRows"),type:"number",field:"componentProps.autosize.maxRows",componentProps:{placeholder:i("pleaseEnter")}},{label:i("clearable"),type:"switch",field:"componentProps.clearable"},{label:i("formValidation"),type:"ERuleEditor",layout:"vertical",field:"rules",describe:i("validationRuleRequiresForm")}],event:[{type:"input",describe:i("inputValue")},{type:"change",describe:i("valueChange")},{type:"focus",describe:i("focus")},{type:"blur",describe:i("blur")}],action:[{type:"focus",describe:i("focusInput")},{type:"blur",describe:i("blurInput")},{type:"clear",describe:i("clearInput")},{type:"select",describe:i("selectInputText")}]}},{t:s}=n.useLocale(),K={component:async()=>(await import("element-plus")).ElInputNumber,groupName:s("form"),icon:"icon--epic--123-rounded",sort:710,defaultSchema:{label:s("numberInput"),type:"number",field:"number",input:!0,componentProps:{placeholder:s("pleaseEnter")}},config:{attribute:[{label:s("fieldName"),type:"input",field:"field"},{label:s("title"),type:"input",field:"label"},{label:s("defaultValue"),type:"number",field:"componentProps.defaultValue"},{label:s("placeholder"),type:"input",field:"componentProps.placeholder"},{label:s("size"),type:"select",componentProps:{placeholder:s("pleaseSelect"),clearable:!0,options:[{label:s("large"),value:"large"},{label:s("medium"),value:"default"},{label:s("small"),value:"small"}]},field:"componentProps.size"},{label:s("maxValue"),type:"number",field:"componentProps.max",componentProps:{placeholder:s("pleaseEnter")}},{label:s("minValue"),type:"number",field:"componentProps.min",componentProps:{placeholder:s("pleaseEnter")}},{label:s("step"),type:"number",field:"componentProps.step",componentProps:{placeholder:s("pleaseEnter")}},{label:s("controlButtonPosition"),type:"select",defaultValue:"",componentProps:{options:[{label:"default",value:""},{label:"right",value:"right"}],placeholder:s("pleaseSelect"),clearable:!0},field:"componentProps.controlsPosition"},{label:s("precision"),type:"number",field:"componentProps.precision",componentProps:{placeholder:s("pleaseEnter")}},{label:s("inputControlIsMultipleOfStep"),type:"switch",field:"componentProps.stepStrictly"},{label:s("formValidation"),type:"ERuleEditor",layout:"vertical",field:"rules",describe:s("validationRuleRequiresForm"),componentProps:{ruleType:"number"}}],event:[{type:"change",describe:s("onValueChange")}]}},{t:u}=n.useLocale(),j={component:()=>Promise.resolve().then(()=>require("../../form-Bofkrmkd.cjs")),groupName:u("form"),icon:"icon--epic--list-alt-outline-rounded",sort:600,defaultSchema:{label:u("form"),type:"form",componentProps:{name:"default",labelWidth:"100px","label-position":"left"},children:[]},config:{attribute:[{label:"Name",type:"input",field:"componentProps.name"},{label:u("labelPosition"),type:"radio",field:"componentProps.label-position",componentProps:{clearable:!0,radioButton:!0,options:[{label:u("left"),value:"left"},{label:u("right"),value:"right"},{label:u("top"),value:"top"}]}},{label:u("labelWidth"),type:"EInputSize",field:"componentProps.labelWidth"},{label:u("labelSuffix"),type:"input",field:"componentProps.labelSuffix",componentProps:{placeholder:u("pleaseEnter")}},{label:u("formSize"),type:"select",field:"componentProps.size",componentProps:{placeholder:u("pleaseSelect"),clearable:!0,options:[{label:u("large"),value:"large"},{label:u("medium"),value:"default"},{label:u("small"),value:"small"}]}},{label:u("asteriskPosition"),type:"select",field:"componentProps.require-asterisk-position",componentProps:{placeholder:u("pleaseSelect"),clearable:!0,options:[{label:u("left"),value:"left"},{label:u("right"),value:"right"}]}},{label:u("inlineValidationMessage"),type:"switch",field:"componentProps.inline-message"},{label:u("validationFeedbackIcon"),type:"switch",field:"componentProps.status-icon"},{label:u("scrollToValidationError"),type:"switch",field:"componentProps.scroll-to-error"},{label:u("inlineMode"),type:"switch",field:"componentProps.inline"}],action:[{type:"getData",describe:u("getFormData")},{type:"setData",describe:u("setFormData")},{type:"validate",describe:u("validateForm")}]}};n.useLocale();const G={component:()=>Promise.resolve().then(()=>require("../../formItem-BVnNs1Q9.cjs")),defaultSchema:{label:"表单项",type:"form-item"},config:{}},{t:P}=n.useLocale(),H={component:()=>Promise.resolve().then(()=>require("../../button-Cc4KYk3v.cjs")),groupName:P("form"),icon:"icon--epic--fit-screen-rounded",sort:1200,defaultSchema:{label:P("button"),type:"button",field:"input",input:!1},config:{attribute:[{label:P("title"),type:"input",field:"label"},{label:P("actionType"),type:"select",componentProps:{placeholder:P("pleaseSelect"),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:P("actionType"),type:"select",componentProps:{placeholder:P("pleaseSelect"),clearable:!0,options:[{label:"button",value:"button"},{label:"submit",value:"submit"},{label:"reset",value:"reset"}]},field:"componentProps.native-type"},{label:P("customColor"),type:"color-picker",field:"componentProps.color",componentProps:{type:"color"}},{label:P("plainButton"),type:"switch",field:"componentProps.plain"},{label:P("roundButton"),type:"switch",field:"componentProps.round"},{label:P("circleButton"),type:"switch",field:"componentProps.circle"},{label:P("textButton"),type:"switch",field:"componentProps.text"},{label:P("loadingState"),type:"switch",field:"componentProps.loading"}],event:[{type:"click",describe:P("onClick")},{type:"dblclick",describe:P("onDoubleClick")}]}},{t:I}=n.useLocale(),_={component:()=>Promise.resolve().then(()=>require("../../card-C9ua0f7r.cjs")),groupName:I("layout"),icon:"icon--epic--wysiwyg-rounded",sort:700,defaultSchema:{label:I("cardLayout"),type:"card",multiple:!1,children:[],field:"input",componentProps:{}},config:{attribute:[{label:I("title"),type:"input",field:"label"},{label:I("fieldName"),type:"input",field:"field"},{label:"是否根据数据自动复制模版",type:"radio",field:"multiple",componentProps:{clearable:!0,radioButton:!0,options:[{label:"是",value:!0},{label:"否",value:!1}]}},{label:I("shadowTiming"),type:"select",componentProps:{options:[{label:"always",value:"always"},{label:"hover",value:"hover"},{label:"never",value:"never"}],placeholder:I("pleaseSelect"),clearable:!0},field:"componentProps.shadow"}]}},{t:C}=n.useLocale(),J={component:()=>Promise.resolve().then(()=>require("../../row-NNlPGZRG.cjs")),groupName:C("layout"),icon:"icon--epic--width-normal-outline",sort:800,defaultSchema:{label:C("gridLayout"),type:"row",children:[{type:"col",children:[],componentProps:{span:12}},{type:"col",children:[],componentProps:{span:12}}]},editConstraints:{childImmovable:!0},config:{attribute:[{label:C("verticalAlignment"),type:"select",componentProps:{style:{width:"100%"},options:[{label:"top",value:"top"},{label:"middle",value:"middle"},{label:"bottom",value:"bottom"}],placeholder:C("pleaseSelect")},field:"componentProps.align"},{label:C("horizontalArrangement"),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:C("pleaseSelect")},field:"componentProps.justify"},{label:C("gridSpacing"),type:"number",field:"componentProps.gutter",componentProps:{placeholder:C("pleaseEnter")}},{label:C("gridWidth"),type:"EColEditor",field:"children"}]}},{t:q}=n.useLocale(),Q={component:()=>Promise.resolve().then(()=>require("../../col-B1GUMkMK.cjs")),defaultSchema:{label:q("gridLayout")+"-"+q("column"),type:"col",children:[],componentProps:{span:6}},config:{attribute:[{label:"占位格数",type:"number",field:"componentProps.span"}]}},{t}=n.useLocale(),X={component:()=>Promise.resolve().then(()=>require("../../select-BvJWp4t6.cjs")),groupName:t("form"),icon:"icon--epic--select",sort:900,defaultSchema:{label:t("select"),type:"select",field:"select",input:!0,componentProps:{options:[{label:t("option1"),value:t("option1")},{label:t("option2"),value:t("option2")}],dynamicId:"",placeholder:t("pleaseSelect"),size:"default",effect:"light",placement:"bottom-start"}},config:{attribute:[{label:t("fieldName"),type:"input",field:"field"},{label:t("title"),type:"input",field:"label"},{label:t("defaultValue"),type:"select",field:"componentProps.defaultValue"},{label:t("placeholder"),type:"input",field:"componentProps.placeholder"},{label:t("size"),type:"select",componentProps:{placeholder:t("pleaseSelect"),clearable:!0,options:[{label:t("large"),value:"large"},{label:t("medium"),value:"default"},{label:t("small"),value:"small"}]},field:"componentProps.size"},{label:t("multiple"),type:"switch",field:"componentProps.multiple",onChange:({value:e,values:a})=>{e?a.componentProps.defaultValue=[]:a.componentProps.defaultValue=null}},{label:t("hideMultiple"),type:"switch",field:"componentProps.collapseTags",show:({values:e})=>e.componentProps.multiple},{label:t("hideHint"),type:"switch",field:"componentProps.collapseTagsTooltip",show:({values:e})=>e.componentProps.multiple&&e.componentProps.collapseTags},{label:t("retainSearchKeyword"),type:"switch",field:"componentProps.reserveKeyword",show:({values:e})=>e.componentProps.multiple},{label:t("tagType"),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:t("multipleLimit"),type:"number",field:"componentProps.multipleLimit",show:({values:e})=>e.componentProps.multiple},{label:t("hintTheme"),type:"select",componentProps:{options:[{label:"light",value:"light"},{label:"dark",value:"dark"}]},field:"componentProps.effect"},{label:t("filterable"),type:"switch",field:"componentProps.filterable"},{label:t("allowCreate"),type:"switch",field:"componentProps.allowCreate"},{label:t("dropdownPosition"),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:t("dropdownWidthSameAsInput"),type:"switch",field:"componentProps.fitInputWidth"},{label:t("noDataText"),type:"input",field:"componentProps.noDataText",componentProps:{placeholder:t("pleaseEnter")}},{label:t("clearable"),type:"switch",field:"componentProps.clearable"},{label:t("optionManagement"),type:"EOptionsEditor",layout:"vertical",field:"componentProps.options",describe:t("configureOptions")},{label:t("formValidation"),type:"ERuleEditor",layout:"vertical",field:"rules",describe:t("validationRuleRequiresForm")},{label:t("dataSource"),type:"EDataSource",layout:"vertical",field:"componentProps.dataSource",describe:t("dataSourceConfig")}],event:[{type:"change",describe:t("onValueChange")}]}},{t:d}=n.useLocale(),Z={component:()=>Promise.resolve().then(()=>require("../../radio-_GXvcBNP.cjs")),groupName:d("form"),icon:"icon--epic--radio-button-checked-outline",sort:850,defaultSchema:{label:d("radio"),type:"radio",field:"radio",input:!0,componentProps:{options:[{label:d("option1"),value:d("option1")},{label:d("option2"),value:d("option2")}],size:"default"}},config:{attribute:[{label:d("fieldName"),type:"input",field:"field"},{label:d("title"),type:"input",field:"label"},{label:d("defaultValue"),type:"radio",field:"componentProps.defaultValue"},{label:d("size"),type:"select",componentProps:{placeholder:d("pleaseSelect"),clearable:!0,options:[{label:d("large"),value:"large"},{label:d("medium"),value:"default"},{label:d("small"),value:"small"}]},field:"componentProps.size"},{label:d("buttonMode"),type:"switch",field:"componentProps.radioButton"},{label:d("optionTextColor"),type:"color-picker",layout:"horizontal",field:"componentProps.textColor",show:({values:e})=>e.componentProps.radioButton,describe:d("effectiveInButtonMode")},{label:d("optionButtonColor"),type:"color-picker",layout:"horizontal",field:"componentProps.fill",show:({values:e})=>e.componentProps.radioButton,describe:d("effectiveInButtonMode")},{label:d("optionManagement"),type:"EOptionsEditor",layout:"vertical",field:"componentProps.options"},{label:d("formValidation"),type:"ERuleEditor",layout:"vertical",field:"rules",describe:d("validationRuleRequiresForm")},{label:d("dataSource"),type:"EDataSource",layout:"vertical",field:"componentProps.dataSource",describe:d("dataSourceConfig")}],event:[{type:"change",describe:d("onValueChange")}]}},{t:r}=n.useLocale(),ee={component:()=>Promise.resolve().then(()=>require("../../checkbox-Bjqm2Ob1.cjs")),groupName:r("form"),icon:"icon--epic--dialogs-outline-rounded",sort:860,defaultSchema:{label:r("checkbox"),type:"checkbox",field:"checkbox",input:!0,componentProps:{options:[{label:r("option1"),value:r("option1")},{label:r("option2"),value:r("option2")}]}},config:{attribute:[{label:r("fieldName"),type:"input",field:"field"},{label:r("title"),type:"input",field:"label"},{label:r("defaultValue"),type:"checkbox",field:"componentProps.defaultValue"},{label:r("size"),type:"select",componentProps:{placeholder:r("pleaseSelect"),clearable:!0,options:[{label:r("large"),value:"large"},{label:r("medium"),value:"default"},{label:r("small"),value:"small"}]},field:"componentProps.size"},{label:r("maxSelected"),type:"number",field:"componentProps.max",componentProps:{placeholder:r("pleaseEnter")}},{label:r("minSelected"),type:"number",field:"componentProps.min",componentProps:{placeholder:r("pleaseEnter")}},{label:r("buttonMode"),type:"switch",field:"componentProps.radioButton"},{label:r("optionTextColor"),type:"color-picker",layout:"horizontal",field:"componentProps.textColor",show:({values:e})=>e.componentProps.radioButton,describe:r("effectiveInButtonMode")},{label:r("optionButtonColor"),type:"color-picker",layout:"horizontal",field:"componentProps.fill",show:({values:e})=>e.componentProps.radioButton,describe:r("effectiveInButtonMode")},{label:r("optionManagement"),type:"EOptionsEditor",layout:"vertical",field:"componentProps.options"},{label:r("formValidation"),type:"ERuleEditor",layout:"vertical",field:"rules",describe:r("validationRuleRequiresForm"),componentProps:{ruleType:"array"}},{label:r("dataSource"),type:"EDataSource",layout:"vertical",field:"componentProps.dataSource",describe:r("dataSourceConfig")}],event:[{type:"change",describe:r("onValueChange")}]}},{t:c}=n.useLocale(),le={component:async()=>(await import("element-plus")).ElSlider,groupName:c("form"),icon:"icon--epic--switches",sort:930,defaultSchema:{label:c("slider"),type:"slider",field:"slider",input:!0,componentProps:{placement:"top-start",showTooltip:!0}},config:{attribute:[{label:c("fieldName"),type:"input",field:"field"},{label:c("title"),type:"input",field:"label"},{label:c("defaultValue"),type:"slider",field:"componentProps.defaultValue"},{label:c("size"),type:"select",componentProps:{placeholder:c("pleaseSelect"),clearable:!0,options:[{label:c("large"),value:"large"},{label:c("medium"),value:"default"},{label:c("small"),value:"small"}]},field:"componentProps.size"},{label:c("minValue"),type:"number",field:"componentProps.min",componentProps:{placeholder:c("pleaseEnter")},onChange:({value:e,values:a,componentAttributes:f})=>{const x=f.value.findIndex(F=>F.field==="componentProps.max"),V=f.value[x];V.componentProps={min:e},(a.componentProps.max??0)<e&&(a.componentProps.max=e)}},{label:c("maxValue"),type:"number",field:"componentProps.max",componentProps:{placeholder:c("pleaseEnter")},onChange:({value:e,values:a,componentAttributes:f})=>{const x=f.value.findIndex(F=>F.field==="componentProps.min"),V=f.value[x];V.componentProps={max:e},(a.componentProps.min??0)>e&&(a.componentProps.min=e)}},{label:c("step"),type:"number",field:"componentProps.step",componentProps:{placeholder:c("pleaseEnter")}},{label:c("showStops"),type:"switch",field:"componentProps.showStops"},{label:c("tooltip"),type:"switch",field:"componentProps.showTooltip"},{label:c("range"),type:"switch",field:"componentProps.range"},{label:c("vertical"),type:"switch",field:"componentProps.vertical"},{label:c("height"),type:"EInputSize",field:"componentProps.height",show:({values:e})=>e.componentProps.vertical},{label:c("showInput"),type:"switch",field:"componentProps.showInput",onChange:({value:e,values:a})=>{e&&(a.componentProps.showInputControls=!0)}},{label:c("controlButtons"),type:"switch",field:"componentProps.showInputControls",show:({values:e})=>e.componentProps.showInput},{label:c("tooltipPosition"),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:c("formValidation"),type:"ERuleEditor",layout:"vertical",field:"rules",describe:c("validationRuleRequiresForm"),componentProps:{ruleType:"number"}}],event:[{type:"input",describe:c("realTimeTrigger")},{type:"change",describe:c("onChangeEnd")}]}},{t:y}=n.useLocale(),te={component:async()=>(await import("element-plus")).ElColorPicker,groupName:y("form"),icon:"icon--epic--palette-outline",sort:950,defaultSchema:{label:y("colorPicker"),type:"color-picker",field:"color-picker",input:!0},config:{attribute:[{label:y("fieldName"),type:"input",field:"field"},{label:y("title"),type:"input",field:"label"},{label:y("defaultValue"),type:"color-picker",field:"componentProps.defaultValue"},{label:y("size"),type:"select",componentProps:{placeholder:y("pleaseSelect"),clearable:!0,options:[{label:y("large"),value:"large"},{label:y("medium"),value:"default"},{label:y("small"),value:"small"}]},field:"componentProps.size"},{label:y("format"),type:"select",componentProps:{placeholder:y("pleaseSelect"),clearable:!0,options:[{label:"hsl",value:"hsl"},{label:"hsv",value:"hsv"},{label:"hex",value:"hex"},{label:"rgb",value:"rgb"}]},field:"componentProps.colorFormat"},{label:y("alpha"),type:"switch",field:"componentProps.showAlpha"},{label:y("formValidation"),type:"ERuleEditor",layout:"vertical",field:"rules",describe:y("validationRuleRequiresForm")}],event:[{type:"change",describe:y("onValueChange")}],action:[]}},{t:m}=n.useLocale(),oe={component:async()=>(await import("element-plus")).ElSwitch,groupName:m("form"),icon:"icon--epic--toggle-off-outline",sort:930,defaultSchema:{label:m("switch"),type:"switch",field:"switch",input:!0,componentProps:{defaultValue:!1}},config:{attribute:[{label:m("fieldName"),type:"input",field:"field"},{label:m("title"),type:"input",field:"label"},{label:m("defaultValue"),type:"switch",field:"componentProps.defaultValue"},{label:m("onValue"),type:"input",field:"componentProps.activeValue",componentProps:{placeholder:m("pleaseEnter")},onChange(e){setTimeout(()=>z(e))}},{label:m("offValue"),type:"input",field:"componentProps.inactiveValue",componentProps:{placeholder:m("pleaseEnter")},onChange(e){setTimeout(()=>z(e))}},{label:m("onDescription"),type:"input",field:"componentProps.activeText",componentProps:{placeholder:m("pleaseEnter")}},{label:m("offDescription"),type:"input",field:"componentProps.inactiveText",componentProps:{placeholder:m("pleaseEnter")}},{label:m("size"),type:"select",componentProps:{placeholder:m("pleaseSelect"),clearable:!0,options:[{label:m("large"),value:"large"},{label:m("medium"),value:"default"},{label:m("small"),value:"small"}]},field:"componentProps.size"},{label:m("width"),type:"number",field:"componentProps.width",componentProps:{min:50,placeholder:m("pleaseEnter")}},{label:m("textInside"),type:"switch",field:"componentProps.inlinePrompt"},{label:m("formValidation"),type:"ERuleEditor",layout:"vertical",field:"rules",describe:m("validationRuleRequiresForm"),componentProps:{ruleType:"boolean"}}],event:[{type:"change",describe:m("onChangeSwitch")}]}};function z(e){var f;let a=((f=e.values.componentProps)==null?void 0:f.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=a:e.values.componentProps={defaultValue:a}}const{t:l}=n.useLocale(),ae={component:async()=>(await import("element-plus")).ElCascader,groupName:l("form"),icon:"icon--epic--full-coverage-outline",sort:900,defaultSchema:{label:l("cascader"),type:"cascader",field:"cascader",input:!0,componentProps:{options:[{label:l("option1"),value:l("option1")},{label:l("option2"),value:l("option2")}],placeholder:l("pleaseSelect"),props:{expandTrigger:"click"}}},config:{attribute:[{label:l("fieldName"),type:"input",field:"field"},{label:l("title"),type:"input",field:"label"},{label:l("defaultValue"),type:"cascader",field:"componentProps.defaultValue"},{label:l("placeholder"),type:"input",field:"componentProps.placeholder"},{label:l("size"),type:"select",componentProps:{placeholder:l("pleaseSelect"),clearable:!0,options:[{label:l("large"),value:"large"},{label:l("medium"),value:"default"},{label:l("small"),value:"small"}]},field:"componentProps.size"},{label:l("separator"),type:"input",componentProps:{placeholder:l("pleaseEnter")},field:"componentProps.separator"},{label:l("subMenuExpandMode"),type:"select",field:"componentProps.props.expandTrigger",componentProps:{placeholder:l("pleaseSelect"),clearable:!0,options:[{label:"click",value:"click"},{label:"hover",value:"hover"}]}},{label:l("searchable"),type:"switch",field:"componentProps.filterable"},{label:l("multiple"),type:"switch",field:"componentProps.props.multiple",onChange:({value:e,values:a})=>{e?a.componentProps.defaultValue=[]:a.componentProps.defaultValue=null}},{label:l("collapseTags"),type:"switch",field:"componentProps.collapseTags",show:({values:e})=>e.componentProps.props.multiple},{label:l("showCollapsedTags"),type:"switch",field:"componentProps.collapseTagsTooltip",show:({values:e})=>e.componentProps.props.multiple&&e.componentProps.collapseTags},{label:l("hidePath"),type:"switch",componentProps:{activeValue:!1,inactiveValue:!0},field:"componentProps.showAllLevels"},{label:l("parentSelectable"),type:"switch",field:"componentProps.props.checkStrictly",describe:l("parentChildNotLinked")},{label:l("onlyGetSelectedNodes"),type:"switch",field:"componentProps.props.emitPath",componentProps:{activeValue:!1,inactiveValue:!0}},{label:l("clearable"),type:"switch",field:"componentProps.clearable"},{label:l("optionManagement"),type:"EOptionsEditor",layout:"vertical",field:"componentProps.options",componentProps:{tree:!0},describe:l("configureOptions")},{label:l("formValidation"),type:"ERuleEditor",layout:"vertical",field:"rules",describe:l("validationRuleRequiresForm"),componentProps:{ruleType:"array"}},{label:l("dataSource"),type:"EDataSource",layout:"vertical",field:"componentProps.dataSource",describe:l("dataSourceConfig")}],event:[{type:"change",describe:l("onSelectedNodeChange")},{type:"blur",describe:" 当失去焦点时触发"},{type:"focus",describe:l("onFocu")}],action:[{type:"getCheckedNodes",describe:l("getCurrentSelectedNodes")},{type:"togglePopperVisible",describe:l("togglePopperVisibility")}]}};n.useLocale();const ne={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:[]}};n.useLocale();const pe={component:()=>Promise.resolve().then(()=>require("../../collapseItem-CAGqWjGg.cjs")),defaultSchema:{label:"折叠项",type:"collapse-item",children:[]},config:{attribute:[]}},{t:o}=n.useLocale(),ie={component:async()=>(await import("element-plus")).ElDatePicker,groupName:o("form"),icon:"icon--epic--calendar-month-outline-rounded",sort:910,defaultSchema:{label:o("datePicker"),type:"date",field:"date",input:!0,componentProps:{type:"date",valueFormat:"YYYY-MM-DD",format:"YYYY-MM-DD",placeholder:o("pleaseSelect"),startPlaceholder:o("pleaseSelect"),endPlaceholder:o("pleaseSelect")}},config:{attribute:[{label:o("fieldName"),type:"input",field:"field"},{label:o("title"),type:"input",field:"label"},{label:o("defaultValue"),type:"date",field:"componentProps.defaultValue"},{label:o("dateType"),type:"select",field:"componentProps.type",componentProps:{options:[{label:o("date"),value:"date"},{label:o("week"),value:"week"},{label:o("month"),value:"month"},{label:o("year"),value:"year"},{label:o("time"),value:"datetime"},{label:o("timeRange"),value:"datetimerange"},{label:o("dateRange"),value:"daterange"},{label:o("monthRange"),value:"monthrange"},{label:o("multipleDates"),value:"dates"}]},onChange({values:e,value:a}){e.componentProps.defaultValue=null,["date","daterange","dates"].includes(a)?(e.componentProps.format="YYYY-MM-DD",e.componentProps.valueFormat="YYYY-MM-DD"):["week"].includes(a)?(e.componentProps.format="ww [周]",e.componentProps.valueFormat="YYYY-MM-DD"):["month","monthrange"].includes(a)?(e.componentProps.format="YYYY-MM",e.componentProps.valueFormat="YYYY-MM"):["datetime","datetimerange"].includes(a)?(e.componentProps.format="YYYY-MM-DD HH:mm:ss",e.componentProps.valueFormat="YYYY-MM-DD HH:mm:ss"):["year"].includes(a)&&(e.componentProps.format="YYYY",e.componentProps.valueFormat="YYYY")}},{label:o("startPlaceholder"),type:"input",field:"componentProps.startPlaceholder",show({values:e}){return["datetimerange","daterange","monthrange"].includes(e.componentProps.type)}},{label:o("endPlaceholder"),type:"input",field:"componentProps.endPlaceholder",show({values:e}){return["datetimerange","daterange","monthrange"].includes(e.componentProps.type)}},{label:o("placeholder"),type:"input",field:"componentProps.placeholder",show({values:e}){return!["datetimerange","daterange","monthrange"].includes(e.componentProps.type)}},{label:o("size"),type:"select",defaultValue:"default",componentProps:{placeholder:o("pleaseSelect"),clearable:!0,options:[{label:o("large"),value:"large"},{label:o("medium"),value:"default"},{label:o("small"),value:"small"}]},field:"componentProps.size"},{label:o("editable"),type:"switch",field:"componentProps.editable"},{label:o("displayFormat"),type:"input",field:"componentProps.format"},{label:o("dataFormat"),type:"input",field:"componentProps.valueFormat"},{label:o("separator"),type:"input",field:"componentProps.rangeSeparator",componentProps:{placeholder:o("pleaseEnter")},show({values:e}){return["datetimerange","daterange","monthrange"].includes(e.componentProps.type)}},{label:o("clearable"),type:"switch",field:"componentProps.clearable"},{label:o("formValidation"),type:"ERuleEditor",layout:"vertical",field:"rules",describe:o("validationRuleRequiresForm")}],event:[{type:"change",describe:o("onValueChange")}]}},{t:g}=n.useLocale(),re={component:()=>Promise.resolve().then(()=>require("../../uploadFile-pgvj4Lm9.cjs")),groupName:g("form"),icon:"icon--epic--upload-rounded",sort:920,defaultSchema:{label:g("fileUpload"),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:g("fieldName"),type:"input",field:"field"},{label:g("title"),type:"input",field:"label"},{label:g("requestUrl"),type:"input",field:"componentProps.action"},{label:g("uploadFileField"),type:"input",field:"componentProps.name"},{label:g("multiples"),type:"switch",field:"componentProps.multiple"},{label:g("showFileList"),type:"switch",field:"componentProps.showFileList"},{label:g("dragUpload"),type:"switch",field:"componentProps.drag"},{label:g("maxUploadCount"),type:"number",field:"componentProps.limit",componentProps:{min:0,placeholder:g("pleaseEnter")}},{label:g("formValidation"),type:"ERuleEditor",layout:"vertical",field:"rules",describe:g("validationRuleRequiresForm"),componentProps:{ruleType:"array"}}]},bindModel:"modelValue"},{t:w}=n.useLocale(),ce={component:()=>Promise.resolve().then(()=>require("../../uploadImage-B3sOX-5F.cjs")),groupName:w("form"),icon:"icon--epic--imagesmode-outline-rounded",sort:920,defaultSchema:{label:w("imageUpload"),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:w("fieldName"),type:"input",field:"field"},{label:w("title"),type:"input",field:"label"},{label:w("requestUrl"),type:"input",field:"componentProps.action"},{label:w("uploadFileField"),type:"input",field:"componentProps.name"},{label:w("multiples"),type:"switch",field:"componentProps.multiple"},{label:w("showFileList"),type:"switch",field:"componentProps.showFileList"},{label:w("dragUpload"),type:"switch",field:"componentProps.drag"},{label:w("maxUploadCount"),type:"number",field:"componentProps.limit",componentProps:{min:0,placeholder:w("pleaseEnter")}},{label:w("formValidation"),type:"ERuleEditor",layout:"vertical",field:"rules",describe:w("validationRuleRequiresForm"),componentProps:{ruleType:"array"}}]},bindModel:"modelValue"},{t:se}=n.useLocale(),ue={component:()=>Promise.resolve().then(()=>require("../../modal-DCBqsiP2.cjs")),defaultSchema:{label:"模态框",type:"modal",children:[]},config:{attribute:[{label:se("title"),type:"input",field:"title"}]}},{t:T}=n.useLocale(),de={component:async()=>await Promise.resolve().then(()=>require("../../sign-BS-9u6is.cjs")),icon:"icon--epic--insert-text-outline-rounded",groupName:T("form"),sort:705,defaultSchema:{label:T("signaturePad"),type:"sign",field:"sign",input:!0,componentProps:{placeholder:T("pleaseEnter"),lineWidth:4,type:"sign",style:{}}},config:{attribute:[{label:T("fieldName"),type:"input",field:"field"},{label:T("title"),type:"input",field:"label"},{label:T("lineWidth")+"(px)",type:"input",componentProps:{placeholder:T("pleaseSelect"),clearable:!0},field:"componentProps.lineWidth"},{label:T("formValidation"),type:"ERuleEditor",layout:"vertical",field:"rules",describe:T("validationRuleRequiresForm")}]}};n.useLocale();const me={component:()=>Promise.resolve().then(()=>require("../../table-CN2LNWqY.cjs")),icon:"icon--epic--table-dashed",sort:10087,defaultSchema:{label:"表格",type:"table",field:"table",componentProps:{isDesign:!1,align:"center",border:!0,isMerge:!1},children:[{type:"table-cell",children:[],id:"table-cell_ftcr7svi1p",label:"行吗",prop:"id"},{type:"table-cell",children:[],id:"table-cell_yxo5fr7hnt",label:"行吗",prop:"id"}]},editConstraints:{childImmovable:!0},config:{attribute:[{label:"字段名",type:"input",field:"field"},{label:"对齐方式",type:"radio",field:"componentProps.align",componentProps:{clearable:!0,radioButton:!0,options:[{label:"居左",value:"left"},{label:"居中",value:"center"},{label:"居右",value:"right"}]}},{label:"是否带有纵向边框",field:"componentProps.border",type:"switch"},{label:"表头设置",type:"EColumnEditor",layout:"vertical",field:"children"},{label:"是否自动合并相同单元格",field:"componentProps.isMerge",type:"switch"}]}},{t:h}=n.useLocale(),be={component:async()=>await Promise.resolve().then(()=>require("../../text-B92ioaoV.cjs")),groupName:h("form"),icon:"icon--epic--file-word-line",sort:1e3,defaultSchema:{label:"文字",type:"text",field:"text",position:"left",fontSize:"14",componentProps:{dynamic:!1,isLink:!1,link:"",style:{width:"max-content",padding:"4px 8px",display:"flex","max-width":"100%","flex-wrap":"wrap"}}},config:{attribute:[{label:h("fieldName"),type:"input",field:"field"},{label:"动态文字",type:"radio",field:"componentProps.dynamic",componentProps:{clearable:!0,radioButton:!0,options:[{label:"是",value:!0},{label:"否",value:!1}]}},{label:"文本",type:"input",field:"label"},{label:h("labelPosition"),type:"radio",field:"position",componentProps:{clearable:!1,radioButton:!0,options:[{label:h("leftAlign"),value:"left"},{label:h("centerAlign"),value:"center"},{label:h("rightAlign"),value:"right"}]}},{label:h("fontSize")+"(px)",type:"input",field:"fontSize"},{label:"超链接",type:"radio",field:"componentProps.isLink",componentProps:{clearable:!0,radioButton:!0,options:[{label:"是",value:!0},{label:"否",value:!1}]}},{label:"链接地址",type:"input",field:"componentProps.link"}],event:[{type:"input",describe:h("onInput")},{type:"change",describe:h("onChange")},{type:"focus",describe:h("onFocus")},{type:"blur",describe:h("onBlur")},{type:"clear",describe:h("onClear")}],action:[{type:"focus",describe:h("focusInput")},{type:"blur",describe:h("blurInput")},{type:"clear",describe:h("clearInput")},{type:"select",describe:h("selectInputText")}]}};n.useLocale();const fe={component:()=>Promise.resolve().then(()=>require("../../cell-AML-qIH9.cjs")),groupName:"",defaultSchema:{label:"单元格",type:"table-cell",children:[]},editConstraints:{childImmovable:!1},config:{attribute:[]}},{t:N}=n.useLocale(),ye={component:()=>Promise.resolve().then(()=>require("../../tabs-CYH9lAUk.cjs")),groupName:"布局",icon:"icon--epic--section",sort:900,defaultSchema:{label:"标签页",type:"tabs",children:[{label:"标签页1",value:"1"},{label:"标签页2",value:"2"}],componentProps:{type:"","tab-position":"top"}},editConstraints:{childImmovable:!0},config:{attribute:[{label:N("fieldName"),type:"input",field:"field"},{label:"风格类型",type:"select",componentProps:{placeholder:N("pleaseSelect"),clearable:!0,options:[{label:"卡片风格",value:"card"},{label:"带有边框的卡片风格",value:"border-card"}]},field:"componentProps.type"},{label:"选项卡所在位置",type:"select",componentProps:{placeholder:N("pleaseSelect"),clearable:!0,options:[{label:"上边",value:"top"},{label:"下边",value:"bottom"},{label:"右边",value:"right"},{label:"左边",value:"left"}]},field:"componentProps.tab-position"},{label:N("optionManagement"),type:"EOptionsEditor",layout:"vertical",field:"children",describe:N("configureOptions")}]}};n.useLocale();const he={component:()=>Promise.resolve().then(()=>require("../../tabPanel-CXZYMEwi.cjs")),defaultSchema:{label:"标签",type:"tab-panel",children:[],componentProps:{span:6}},config:{attribute:[]}},{t:R}=n.useLocale(),Pe={component:()=>Promise.resolve().then(()=>require("../../ETable-adkZzXhI.cjs")),groupName:"布局",icon:"icon--epic--table-shortcut",sort:10086,defaultSchema:{label:"表格布局",type:"eTable",children:[{type:"eTr",children:[{type:"eTd",children:[]},{type:"eTd",children:[]},{type:"eTd",children:[]}]},{type:"eTr",children:[{type:"eTd",children:[]},{type:"eTd",children:[]},{type:"eTd",children:[]}]},{type:"eTr",children:[{type:"eTd",children:[]},{type:"eTd",children:[]},{type:"eTd",children:[]}]}]},editConstraints:{childImmovable:!0},config:{attribute:[{label:R("verticalAlignment"),type:"select",componentProps:{style:{width:"100%"},options:[{label:"top",value:"top"},{label:"middle",value:"middle"},{label:"bottom",value:"bottom"}],placeholder:R("pleaseSelect")},field:"componentProps.align"},{label:R("horizontalArrangement"),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:R("pleaseSelect")},field:"componentProps.justify"},{label:R("gridSpacing"),type:"number",field:"componentProps.gutter",componentProps:{placeholder:R("pleaseEnter")}}]}},{t:L}=n.useLocale(),ve={component:()=>Promise.resolve().then(()=>require("../../ETr-BqGghav2.cjs")),icon:"icon--epic--width-normal-outline",sort:10086,defaultSchema:{label:"自定义表格-行",type:"eTr"},editConstraints:{childImmovable:!0},config:{attribute:[{label:L("verticalAlignment"),type:"select",componentProps:{style:{width:"100%"},options:[{label:"top",value:"top"},{label:"middle",value:"middle"},{label:"bottom",value:"bottom"}],placeholder:L("pleaseSelect")},field:"componentProps.align"},{label:L("horizontalArrangement"),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:L("pleaseSelect")},field:"componentProps.justify"},{label:L("gridSpacing"),type:"number",field:"componentProps.gutter",componentProps:{placeholder:L("pleaseEnter")}}]}};n.useLocale();const ge={component:()=>Promise.resolve().then(()=>require("../../ETd-BCM7zA8V.cjs")),icon:"icon--epic--width-normal-outline",sort:10086,defaultSchema:{label:"自定义表格-单元格",type:"eTd"},config:{attribute:[]}},{t:b}=n.useLocale(),we={component:async()=>(await import("element-plus")).ElRate,groupName:b("form"),icon:"icon--epic--star-filled-half",sort:701,defaultSchema:{label:"评分",type:"rate",field:"rate",input:!0,componentProps:{placeholder:b("pleaseEnter"),allowHalf:!0,max:5,showScore:!1}},config:{attribute:[{label:b("fieldName"),type:"input",field:"field"},{label:b("title"),type:"input",field:"label"},{label:"最大分值",type:"input",field:"componentProps.max"},{label:b("defaultValue"),type:"input",field:"componentProps.defaultValue"},{label:b("size"),type:"select",defaultValue:"default",componentProps:{placeholder:b("pleaseSelect"),clearable:!0,options:[{label:b("large"),value:"large"},{label:b("medium"),value:"default"},{label:b("small"),value:"small"}]},field:"componentProps.size"},{label:b("clearable"),type:"switch",field:"componentProps.clearable"},{label:"允许半选",type:"switch",field:"componentProps.allowHalf"},{label:"显示当前分数",type:"switch",field:"componentProps.showScore"},{label:b("formValidation"),type:"ERuleEditor",layout:"vertical",field:"rules",describe:b("validationRuleRequiresForm")}],event:[{type:"input",describe:b("onInput")},{type:"change",describe:b("onChange")},{type:"focus",describe:b("onFocus")},{type:"blur",describe:b("onBlur")},{type:"clear",describe:b("onClear")}],action:[{type:"focus",describe:b("focusInput")},{type:"blur",describe:b("blurInput")},{type:"clear",describe:b("clearInput")},{type:"select",describe:b("selectInputText")}]}},{t:Se}=n.useLocale(),Ee={component:async()=>await Promise.resolve().then(()=>require("../../iframe-CRF3GSRv.cjs")),groupName:"布局",icon:"icon--epic--box-3-line",sort:1e3,defaultSchema:{label:"内嵌页面",type:"iframe",field:"input",input:!1,componentProps:{url:""}},editConstraints:{childImmovable:!0},config:{attribute:[{label:Se("fieldName"),type:"input",field:"field"},{label:"默认页面链接",type:"input",field:"componentProps.url"}]}},{t:v}=n.useLocale(),Ve={component:async()=>await Promise.resolve().then(()=>require("../../selectPage-CrdVWKGk.cjs")),icon:"icon--epic--select",groupName:"表单",sort:1888,defaultSchema:{label:"分页下拉框",type:"selectpage",field:"selectpage",input:!0,componentProps:{placeholder:v("pleaseEnter"),lineWidth:4,type:"selectPage",style:{},pageKey:"pageNum",pageTotalKey:"total",searchKey:"keywords"}},config:{attribute:[{label:v("fieldName"),type:"input",field:"field"},{label:v("title"),type:"input",field:"label"},{label:v("placeholder"),type:"input",field:"componentProps.placeholder"},{label:v("size"),type:"select",componentProps:{placeholder:v("pleaseSelect"),clearable:!0,options:[{label:v("large"),value:"large"},{label:v("medium"),value:"default"},{label:v("small"),value:"small"}]},field:"componentProps.size"},{label:"分页字段名",type:"input",field:"componentProps.pageKey"},{label:"总数字段名",type:"input",field:"componentProps.pageTotalKey"},{label:"搜索字段名",type:"input",field:"componentProps.searchKey"},{label:"选择数据源",type:"ESourceDataSelect",layout:"vertical",field:"componentProps.options",describe:v("configureOptions")},{label:v("dataSource"),type:"EDataSource",layout:"vertical",field:"componentProps.dataSource",describe:v("dataSourceConfig")},{label:v("formValidation"),type:"ERuleEditor",layout:"vertical",field:"rules",describe:v("validationRuleRequiresForm")}],event:[{type:"change",describe:v("onValueChange")}]}};function Ce(e=A.pluginManager){e.component("FormItem",S.ElFormItem),e.component("Form",S.ElForm),e.component("RadioGroup",S.ElRadioGroup),e.component("RadioButton",S.ElRadioButton),e.component("Tabs",S.ElTabs),e.component("TabPane",S.ElTabPane),e.component("Collapse",S.ElCollapse),e.component("CollapseItem",S.ElCollapseItem),e.component("Drawer",S.ElDrawer),e.component("Dialog",S.ElDialog),e.component("ElTable",S.ElTable),e.component("ElTableColumn",S.ElTableColumn),[j,G,O,U,K,Z,ee,ie,X,oe,te,ae,le,re,ce,H,_,J,Q,ne,pe,ue,de,me,be,fe,ye,he,Pe,ve,ge,we,Ee,Ve].forEach(f=>{e.registerComponent(f),e.addBaseComponentTypes(f.defaultSchema.type)}),e.setInitialized(!0)}function Te(e){import("element-plus").then(({provideGlobalConfig:a})=>{a(e)})}exports.provideGlobalConfig=Te;exports.setupElementPlus=Ce;
|
|
1
|
+
"use strict";var Y=Object.create;var k=Object.defineProperty;var D=Object.getOwnPropertyDescriptor;var B=Object.getOwnPropertyNames;var M=Object.getPrototypeOf,$=Object.prototype.hasOwnProperty;var W=(e,a,f,x)=>{if(a&&typeof a=="object"||typeof a=="function")for(let V of B(a))!$.call(e,V)&&V!==f&&k(e,V,{get:()=>a[V],enumerable:!(x=D(a,V))||x.enumerable});return e};var E=(e,a,f)=>(f=e!=null?Y(M(e)):{},W(a||!e||!e.__esModule?k(f,"default",{value:e,enumerable:!0}):f,e));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const A=require("epic-designer-gold"),n=require("../../index-BoL2PSBk.cjs"),S=require("element-plus"),{t:p}=n.useLocale(),O={component:async()=>(await import("element-plus")).ElInput,groupName:p("form"),icon:"icon--epic--border-color-outline-rounded",sort:700,defaultSchema:{label:p("input"),type:"input",field:"input",input:!0,componentProps:{placeholder:p("pleaseEnter"),style:{cursor:""}}},config:{attribute:[{label:p("fieldName"),type:"input",field:"field"},{label:p("title"),type:"input",field:"label"},{label:p("defaultValue"),type:"input",field:"componentProps.defaultValue"},{label:p("placeholder"),type:"input",field:"componentProps.placeholder"},{label:p("size"),type:"select",defaultValue:"default",componentProps:{placeholder:p("pleaseSelect"),clearable:!0,options:[{label:p("large"),value:"large"},{label:p("medium"),value:"default"},{label:p("small"),value:"small"}]},field:"componentProps.size"},{label:p("maxInputLength"),type:"number",field:"componentProps.maxlength",componentProps:{placeholder:p("pleaseEnter"),min:0}},{label:p("countWords"),type:"switch",field:"componentProps.showWordLimit",show:({values:e})=>e.componentProps.maxlength},{label:p("inputType"),type:"select",defaultValue:"text",componentProps:{placeholder:p("pleaseSelect"),clearable:!0,options:[{label:"text",value:"text"},{label:"number",value:"number"},{label:"password",value:"password"}]},field:"componentProps.type"},{label:p("showToggleIcon"),type:"switch",field:"componentProps.showPassword",show:({values:e})=>e.componentProps.type==="password"},{label:p("clearable"),type:"switch",field:"componentProps.clearable"},{label:"超链接",type:"switch",field:"componentProps.isLink"},{label:p("formValidation"),type:"ERuleEditor",layout:"vertical",field:"rules",describe:p("validationRuleRequiresForm")}],event:[{type:"input",describe:p("onInput")},{type:"change",describe:p("onChange")},{type:"focus",describe:p("onFocus")},{type:"blur",describe:p("onBlur")},{type:"clear",describe:p("onClear")},{type:"click",describe:"点击时"}],action:[{type:"focus",describe:p("focusInput")},{type:"blur",describe:p("blurInput")},{type:"clear",describe:p("clearInput")},{type:"select",describe:p("selectInputText")}]}},{t:i}=n.useLocale(),U={component:async()=>(await import("element-plus")).ElInput,icon:"icon--epic--edit-square-outline-rounded",groupName:i("form"),sort:705,defaultSchema:{label:i("textarea"),type:"textarea",field:"textarea",input:!0,componentProps:{placeholder:i("pleaseEnter"),type:"textarea"}},config:{attribute:[{label:i("fieldName"),type:"input",field:"field"},{label:i("title"),type:"input",field:"label"},{label:i("defaultValue"),type:"textarea",field:"componentProps.defaultValue"},{label:i("placeholder"),type:"input",field:"componentProps.placeholder"},{label:i("size"),type:"select",componentProps:{placeholder:i("pleaseSelect"),clearable:!0,options:[{label:i("large"),value:"large"},{label:i("medium"),value:"default"},{label:i("small"),value:"small"}]},field:"componentProps.size"},{label:i("maxInputLength"),type:"number",field:"componentProps.maxlength",componentProps:{placeholder:i("pleaseEnter"),min:0}},{label:i("countWords"),type:"switch",field:"componentProps.showWordLimit",show:({values:e})=>e.componentProps.maxlength},{label:i("minRows"),type:"number",field:"componentProps.autosize.minRows",componentProps:{placeholder:i("pleaseEnter")}},{label:i("maxRows"),type:"number",field:"componentProps.autosize.maxRows",componentProps:{placeholder:i("pleaseEnter")}},{label:i("clearable"),type:"switch",field:"componentProps.clearable"},{label:i("formValidation"),type:"ERuleEditor",layout:"vertical",field:"rules",describe:i("validationRuleRequiresForm")}],event:[{type:"input",describe:i("inputValue")},{type:"change",describe:i("valueChange")},{type:"focus",describe:i("focus")},{type:"blur",describe:i("blur")}],action:[{type:"focus",describe:i("focusInput")},{type:"blur",describe:i("blurInput")},{type:"clear",describe:i("clearInput")},{type:"select",describe:i("selectInputText")}]}},{t:s}=n.useLocale(),K={component:async()=>(await import("element-plus")).ElInputNumber,groupName:s("form"),icon:"icon--epic--123-rounded",sort:710,defaultSchema:{label:s("numberInput"),type:"number",field:"number",input:!0,componentProps:{placeholder:s("pleaseEnter")}},config:{attribute:[{label:s("fieldName"),type:"input",field:"field"},{label:s("title"),type:"input",field:"label"},{label:s("defaultValue"),type:"number",field:"componentProps.defaultValue"},{label:s("placeholder"),type:"input",field:"componentProps.placeholder"},{label:s("size"),type:"select",componentProps:{placeholder:s("pleaseSelect"),clearable:!0,options:[{label:s("large"),value:"large"},{label:s("medium"),value:"default"},{label:s("small"),value:"small"}]},field:"componentProps.size"},{label:s("maxValue"),type:"number",field:"componentProps.max",componentProps:{placeholder:s("pleaseEnter")}},{label:s("minValue"),type:"number",field:"componentProps.min",componentProps:{placeholder:s("pleaseEnter")}},{label:s("step"),type:"number",field:"componentProps.step",componentProps:{placeholder:s("pleaseEnter")}},{label:s("controlButtonPosition"),type:"select",defaultValue:"",componentProps:{options:[{label:"default",value:""},{label:"right",value:"right"}],placeholder:s("pleaseSelect"),clearable:!0},field:"componentProps.controlsPosition"},{label:s("precision"),type:"number",field:"componentProps.precision",componentProps:{placeholder:s("pleaseEnter")}},{label:s("inputControlIsMultipleOfStep"),type:"switch",field:"componentProps.stepStrictly"},{label:s("formValidation"),type:"ERuleEditor",layout:"vertical",field:"rules",describe:s("validationRuleRequiresForm"),componentProps:{ruleType:"number"}}],event:[{type:"change",describe:s("onValueChange")}]}},{t:u}=n.useLocale(),j={component:()=>Promise.resolve().then(()=>require("../../form-Bofkrmkd.cjs")),groupName:u("form"),icon:"icon--epic--list-alt-outline-rounded",sort:600,defaultSchema:{label:u("form"),type:"form",componentProps:{name:"default",labelWidth:"100px","label-position":"left"},children:[]},config:{attribute:[{label:"Name",type:"input",field:"componentProps.name"},{label:u("labelPosition"),type:"radio",field:"componentProps.label-position",componentProps:{clearable:!0,radioButton:!0,options:[{label:u("left"),value:"left"},{label:u("right"),value:"right"},{label:u("top"),value:"top"}]}},{label:u("labelWidth"),type:"EInputSize",field:"componentProps.labelWidth"},{label:u("labelSuffix"),type:"input",field:"componentProps.labelSuffix",componentProps:{placeholder:u("pleaseEnter")}},{label:u("formSize"),type:"select",field:"componentProps.size",componentProps:{placeholder:u("pleaseSelect"),clearable:!0,options:[{label:u("large"),value:"large"},{label:u("medium"),value:"default"},{label:u("small"),value:"small"}]}},{label:u("asteriskPosition"),type:"select",field:"componentProps.require-asterisk-position",componentProps:{placeholder:u("pleaseSelect"),clearable:!0,options:[{label:u("left"),value:"left"},{label:u("right"),value:"right"}]}},{label:u("inlineValidationMessage"),type:"switch",field:"componentProps.inline-message"},{label:u("validationFeedbackIcon"),type:"switch",field:"componentProps.status-icon"},{label:u("scrollToValidationError"),type:"switch",field:"componentProps.scroll-to-error"},{label:u("inlineMode"),type:"switch",field:"componentProps.inline"}],action:[{type:"getData",describe:u("getFormData")},{type:"setData",describe:u("setFormData")},{type:"validate",describe:u("validateForm")}]}};n.useLocale();const G={component:()=>Promise.resolve().then(()=>require("../../formItem-BVnNs1Q9.cjs")),defaultSchema:{label:"表单项",type:"form-item"},config:{}},{t:P}=n.useLocale(),H={component:()=>Promise.resolve().then(()=>require("../../button-Cc4KYk3v.cjs")),groupName:P("form"),icon:"icon--epic--fit-screen-rounded",sort:1200,defaultSchema:{label:P("button"),type:"button",field:"input",input:!1},config:{attribute:[{label:P("title"),type:"input",field:"label"},{label:P("actionType"),type:"select",componentProps:{placeholder:P("pleaseSelect"),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:P("actionType"),type:"select",componentProps:{placeholder:P("pleaseSelect"),clearable:!0,options:[{label:"button",value:"button"},{label:"submit",value:"submit"},{label:"reset",value:"reset"}]},field:"componentProps.native-type"},{label:P("customColor"),type:"color-picker",field:"componentProps.color",componentProps:{type:"color"}},{label:P("plainButton"),type:"switch",field:"componentProps.plain"},{label:P("roundButton"),type:"switch",field:"componentProps.round"},{label:P("circleButton"),type:"switch",field:"componentProps.circle"},{label:P("textButton"),type:"switch",field:"componentProps.text"},{label:P("loadingState"),type:"switch",field:"componentProps.loading"}],event:[{type:"click",describe:P("onClick")},{type:"dblclick",describe:P("onDoubleClick")}]}},{t:I}=n.useLocale(),_={component:()=>Promise.resolve().then(()=>require("../../card-C9ua0f7r.cjs")),groupName:I("layout"),icon:"icon--epic--wysiwyg-rounded",sort:700,defaultSchema:{label:I("cardLayout"),type:"card",multiple:!1,children:[],field:"input",componentProps:{}},config:{attribute:[{label:I("title"),type:"input",field:"label"},{label:I("fieldName"),type:"input",field:"field"},{label:"是否根据数据自动复制模版",type:"radio",field:"multiple",componentProps:{clearable:!0,radioButton:!0,options:[{label:"是",value:!0},{label:"否",value:!1}]}},{label:I("shadowTiming"),type:"select",componentProps:{options:[{label:"always",value:"always"},{label:"hover",value:"hover"},{label:"never",value:"never"}],placeholder:I("pleaseSelect"),clearable:!0},field:"componentProps.shadow"}]}},{t:C}=n.useLocale(),J={component:()=>Promise.resolve().then(()=>require("../../row-NNlPGZRG.cjs")),groupName:C("layout"),icon:"icon--epic--width-normal-outline",sort:800,defaultSchema:{label:C("gridLayout"),type:"row",children:[{type:"col",children:[],componentProps:{span:12}},{type:"col",children:[],componentProps:{span:12}}]},editConstraints:{childImmovable:!0},config:{attribute:[{label:C("verticalAlignment"),type:"select",componentProps:{style:{width:"100%"},options:[{label:"top",value:"top"},{label:"middle",value:"middle"},{label:"bottom",value:"bottom"}],placeholder:C("pleaseSelect")},field:"componentProps.align"},{label:C("horizontalArrangement"),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:C("pleaseSelect")},field:"componentProps.justify"},{label:C("gridSpacing"),type:"number",field:"componentProps.gutter",componentProps:{placeholder:C("pleaseEnter")}},{label:C("gridWidth"),type:"EColEditor",field:"children"}]}},{t:q}=n.useLocale(),Q={component:()=>Promise.resolve().then(()=>require("../../col-B1GUMkMK.cjs")),defaultSchema:{label:q("gridLayout")+"-"+q("column"),type:"col",children:[],componentProps:{span:6}},config:{attribute:[{label:"占位格数",type:"number",field:"componentProps.span"}]}},{t}=n.useLocale(),X={component:()=>Promise.resolve().then(()=>require("../../select-BvJWp4t6.cjs")),groupName:t("form"),icon:"icon--epic--select",sort:900,defaultSchema:{label:t("select"),type:"select",field:"select",input:!0,componentProps:{options:[{label:t("option1"),value:t("option1")},{label:t("option2"),value:t("option2")}],dynamicId:"",placeholder:t("pleaseSelect"),size:"default",effect:"light",placement:"bottom-start"}},config:{attribute:[{label:t("fieldName"),type:"input",field:"field"},{label:t("title"),type:"input",field:"label"},{label:t("defaultValue"),type:"select",field:"componentProps.defaultValue"},{label:t("placeholder"),type:"input",field:"componentProps.placeholder"},{label:t("size"),type:"select",componentProps:{placeholder:t("pleaseSelect"),clearable:!0,options:[{label:t("large"),value:"large"},{label:t("medium"),value:"default"},{label:t("small"),value:"small"}]},field:"componentProps.size"},{label:t("multiple"),type:"switch",field:"componentProps.multiple",onChange:({value:e,values:a})=>{e?a.componentProps.defaultValue=[]:a.componentProps.defaultValue=null}},{label:t("hideMultiple"),type:"switch",field:"componentProps.collapseTags",show:({values:e})=>e.componentProps.multiple},{label:t("hideHint"),type:"switch",field:"componentProps.collapseTagsTooltip",show:({values:e})=>e.componentProps.multiple&&e.componentProps.collapseTags},{label:t("retainSearchKeyword"),type:"switch",field:"componentProps.reserveKeyword",show:({values:e})=>e.componentProps.multiple},{label:t("tagType"),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:t("multipleLimit"),type:"number",field:"componentProps.multipleLimit",show:({values:e})=>e.componentProps.multiple},{label:t("hintTheme"),type:"select",componentProps:{options:[{label:"light",value:"light"},{label:"dark",value:"dark"}]},field:"componentProps.effect"},{label:t("filterable"),type:"switch",field:"componentProps.filterable"},{label:t("allowCreate"),type:"switch",field:"componentProps.allowCreate"},{label:t("dropdownPosition"),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:t("dropdownWidthSameAsInput"),type:"switch",field:"componentProps.fitInputWidth"},{label:t("noDataText"),type:"input",field:"componentProps.noDataText",componentProps:{placeholder:t("pleaseEnter")}},{label:t("clearable"),type:"switch",field:"componentProps.clearable"},{label:t("optionManagement"),type:"EOptionsEditor",layout:"vertical",field:"componentProps.options",describe:t("configureOptions")},{label:t("formValidation"),type:"ERuleEditor",layout:"vertical",field:"rules",describe:t("validationRuleRequiresForm")},{label:t("dataSource"),type:"EDataSource",layout:"vertical",field:"componentProps.dataSource",describe:t("dataSourceConfig")}],event:[{type:"change",describe:t("onValueChange")}]}},{t:d}=n.useLocale(),Z={component:()=>Promise.resolve().then(()=>require("../../radio-_GXvcBNP.cjs")),groupName:d("form"),icon:"icon--epic--radio-button-checked-outline",sort:850,defaultSchema:{label:d("radio"),type:"radio",field:"radio",input:!0,componentProps:{options:[{label:d("option1"),value:d("option1")},{label:d("option2"),value:d("option2")}],size:"default"}},config:{attribute:[{label:d("fieldName"),type:"input",field:"field"},{label:d("title"),type:"input",field:"label"},{label:d("defaultValue"),type:"radio",field:"componentProps.defaultValue"},{label:d("size"),type:"select",componentProps:{placeholder:d("pleaseSelect"),clearable:!0,options:[{label:d("large"),value:"large"},{label:d("medium"),value:"default"},{label:d("small"),value:"small"}]},field:"componentProps.size"},{label:d("buttonMode"),type:"switch",field:"componentProps.radioButton"},{label:d("optionTextColor"),type:"color-picker",layout:"horizontal",field:"componentProps.textColor",show:({values:e})=>e.componentProps.radioButton,describe:d("effectiveInButtonMode")},{label:d("optionButtonColor"),type:"color-picker",layout:"horizontal",field:"componentProps.fill",show:({values:e})=>e.componentProps.radioButton,describe:d("effectiveInButtonMode")},{label:d("optionManagement"),type:"EOptionsEditor",layout:"vertical",field:"componentProps.options"},{label:d("formValidation"),type:"ERuleEditor",layout:"vertical",field:"rules",describe:d("validationRuleRequiresForm")},{label:d("dataSource"),type:"EDataSource",layout:"vertical",field:"componentProps.dataSource",describe:d("dataSourceConfig")}],event:[{type:"change",describe:d("onValueChange")}]}},{t:r}=n.useLocale(),ee={component:()=>Promise.resolve().then(()=>require("../../checkbox-Bjqm2Ob1.cjs")),groupName:r("form"),icon:"icon--epic--dialogs-outline-rounded",sort:860,defaultSchema:{label:r("checkbox"),type:"checkbox",field:"checkbox",input:!0,componentProps:{options:[{label:r("option1"),value:r("option1")},{label:r("option2"),value:r("option2")}]}},config:{attribute:[{label:r("fieldName"),type:"input",field:"field"},{label:r("title"),type:"input",field:"label"},{label:r("defaultValue"),type:"checkbox",field:"componentProps.defaultValue"},{label:r("size"),type:"select",componentProps:{placeholder:r("pleaseSelect"),clearable:!0,options:[{label:r("large"),value:"large"},{label:r("medium"),value:"default"},{label:r("small"),value:"small"}]},field:"componentProps.size"},{label:r("maxSelected"),type:"number",field:"componentProps.max",componentProps:{placeholder:r("pleaseEnter")}},{label:r("minSelected"),type:"number",field:"componentProps.min",componentProps:{placeholder:r("pleaseEnter")}},{label:r("buttonMode"),type:"switch",field:"componentProps.radioButton"},{label:r("optionTextColor"),type:"color-picker",layout:"horizontal",field:"componentProps.textColor",show:({values:e})=>e.componentProps.radioButton,describe:r("effectiveInButtonMode")},{label:r("optionButtonColor"),type:"color-picker",layout:"horizontal",field:"componentProps.fill",show:({values:e})=>e.componentProps.radioButton,describe:r("effectiveInButtonMode")},{label:r("optionManagement"),type:"EOptionsEditor",layout:"vertical",field:"componentProps.options"},{label:r("formValidation"),type:"ERuleEditor",layout:"vertical",field:"rules",describe:r("validationRuleRequiresForm"),componentProps:{ruleType:"array"}},{label:r("dataSource"),type:"EDataSource",layout:"vertical",field:"componentProps.dataSource",describe:r("dataSourceConfig")}],event:[{type:"change",describe:r("onValueChange")}]}},{t:c}=n.useLocale(),le={component:async()=>(await import("element-plus")).ElSlider,groupName:c("form"),icon:"icon--epic--switches",sort:930,defaultSchema:{label:c("slider"),type:"slider",field:"slider",input:!0,componentProps:{placement:"top-start",showTooltip:!0}},config:{attribute:[{label:c("fieldName"),type:"input",field:"field"},{label:c("title"),type:"input",field:"label"},{label:c("defaultValue"),type:"slider",field:"componentProps.defaultValue"},{label:c("size"),type:"select",componentProps:{placeholder:c("pleaseSelect"),clearable:!0,options:[{label:c("large"),value:"large"},{label:c("medium"),value:"default"},{label:c("small"),value:"small"}]},field:"componentProps.size"},{label:c("minValue"),type:"number",field:"componentProps.min",componentProps:{placeholder:c("pleaseEnter")},onChange:({value:e,values:a,componentAttributes:f})=>{const x=f.value.findIndex(F=>F.field==="componentProps.max"),V=f.value[x];V.componentProps={min:e},(a.componentProps.max??0)<e&&(a.componentProps.max=e)}},{label:c("maxValue"),type:"number",field:"componentProps.max",componentProps:{placeholder:c("pleaseEnter")},onChange:({value:e,values:a,componentAttributes:f})=>{const x=f.value.findIndex(F=>F.field==="componentProps.min"),V=f.value[x];V.componentProps={max:e},(a.componentProps.min??0)>e&&(a.componentProps.min=e)}},{label:c("step"),type:"number",field:"componentProps.step",componentProps:{placeholder:c("pleaseEnter")}},{label:c("showStops"),type:"switch",field:"componentProps.showStops"},{label:c("tooltip"),type:"switch",field:"componentProps.showTooltip"},{label:c("range"),type:"switch",field:"componentProps.range"},{label:c("vertical"),type:"switch",field:"componentProps.vertical"},{label:c("height"),type:"EInputSize",field:"componentProps.height",show:({values:e})=>e.componentProps.vertical},{label:c("showInput"),type:"switch",field:"componentProps.showInput",onChange:({value:e,values:a})=>{e&&(a.componentProps.showInputControls=!0)}},{label:c("controlButtons"),type:"switch",field:"componentProps.showInputControls",show:({values:e})=>e.componentProps.showInput},{label:c("tooltipPosition"),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:c("formValidation"),type:"ERuleEditor",layout:"vertical",field:"rules",describe:c("validationRuleRequiresForm"),componentProps:{ruleType:"number"}}],event:[{type:"input",describe:c("realTimeTrigger")},{type:"change",describe:c("onChangeEnd")}]}},{t:y}=n.useLocale(),te={component:async()=>(await import("element-plus")).ElColorPicker,groupName:y("form"),icon:"icon--epic--palette-outline",sort:950,defaultSchema:{label:y("colorPicker"),type:"color-picker",field:"color-picker",input:!0},config:{attribute:[{label:y("fieldName"),type:"input",field:"field"},{label:y("title"),type:"input",field:"label"},{label:y("defaultValue"),type:"color-picker",field:"componentProps.defaultValue"},{label:y("size"),type:"select",componentProps:{placeholder:y("pleaseSelect"),clearable:!0,options:[{label:y("large"),value:"large"},{label:y("medium"),value:"default"},{label:y("small"),value:"small"}]},field:"componentProps.size"},{label:y("format"),type:"select",componentProps:{placeholder:y("pleaseSelect"),clearable:!0,options:[{label:"hsl",value:"hsl"},{label:"hsv",value:"hsv"},{label:"hex",value:"hex"},{label:"rgb",value:"rgb"}]},field:"componentProps.colorFormat"},{label:y("alpha"),type:"switch",field:"componentProps.showAlpha"},{label:y("formValidation"),type:"ERuleEditor",layout:"vertical",field:"rules",describe:y("validationRuleRequiresForm")}],event:[{type:"change",describe:y("onValueChange")}],action:[]}},{t:m}=n.useLocale(),oe={component:async()=>(await import("element-plus")).ElSwitch,groupName:m("form"),icon:"icon--epic--toggle-off-outline",sort:930,defaultSchema:{label:m("switch"),type:"switch",field:"switch",input:!0,componentProps:{defaultValue:!1}},config:{attribute:[{label:m("fieldName"),type:"input",field:"field"},{label:m("title"),type:"input",field:"label"},{label:m("defaultValue"),type:"switch",field:"componentProps.defaultValue"},{label:m("onValue"),type:"input",field:"componentProps.activeValue",componentProps:{placeholder:m("pleaseEnter")},onChange(e){setTimeout(()=>z(e))}},{label:m("offValue"),type:"input",field:"componentProps.inactiveValue",componentProps:{placeholder:m("pleaseEnter")},onChange(e){setTimeout(()=>z(e))}},{label:m("onDescription"),type:"input",field:"componentProps.activeText",componentProps:{placeholder:m("pleaseEnter")}},{label:m("offDescription"),type:"input",field:"componentProps.inactiveText",componentProps:{placeholder:m("pleaseEnter")}},{label:m("size"),type:"select",componentProps:{placeholder:m("pleaseSelect"),clearable:!0,options:[{label:m("large"),value:"large"},{label:m("medium"),value:"default"},{label:m("small"),value:"small"}]},field:"componentProps.size"},{label:m("width"),type:"number",field:"componentProps.width",componentProps:{min:50,placeholder:m("pleaseEnter")}},{label:m("textInside"),type:"switch",field:"componentProps.inlinePrompt"},{label:m("formValidation"),type:"ERuleEditor",layout:"vertical",field:"rules",describe:m("validationRuleRequiresForm"),componentProps:{ruleType:"boolean"}}],event:[{type:"change",describe:m("onChangeSwitch")}]}};function z(e){var f;let a=((f=e.values.componentProps)==null?void 0:f.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=a:e.values.componentProps={defaultValue:a}}const{t:l}=n.useLocale(),ae={component:async()=>(await import("element-plus")).ElCascader,groupName:l("form"),icon:"icon--epic--full-coverage-outline",sort:900,defaultSchema:{label:l("cascader"),type:"cascader",field:"cascader",input:!0,componentProps:{options:[{label:l("option1"),value:l("option1")},{label:l("option2"),value:l("option2")}],placeholder:l("pleaseSelect"),props:{expandTrigger:"click"}}},config:{attribute:[{label:l("fieldName"),type:"input",field:"field"},{label:l("title"),type:"input",field:"label"},{label:l("defaultValue"),type:"cascader",field:"componentProps.defaultValue"},{label:l("placeholder"),type:"input",field:"componentProps.placeholder"},{label:l("size"),type:"select",componentProps:{placeholder:l("pleaseSelect"),clearable:!0,options:[{label:l("large"),value:"large"},{label:l("medium"),value:"default"},{label:l("small"),value:"small"}]},field:"componentProps.size"},{label:l("separator"),type:"input",componentProps:{placeholder:l("pleaseEnter")},field:"componentProps.separator"},{label:l("subMenuExpandMode"),type:"select",field:"componentProps.props.expandTrigger",componentProps:{placeholder:l("pleaseSelect"),clearable:!0,options:[{label:"click",value:"click"},{label:"hover",value:"hover"}]}},{label:l("searchable"),type:"switch",field:"componentProps.filterable"},{label:l("multiple"),type:"switch",field:"componentProps.props.multiple",onChange:({value:e,values:a})=>{e?a.componentProps.defaultValue=[]:a.componentProps.defaultValue=null}},{label:l("collapseTags"),type:"switch",field:"componentProps.collapseTags",show:({values:e})=>e.componentProps.props.multiple},{label:l("showCollapsedTags"),type:"switch",field:"componentProps.collapseTagsTooltip",show:({values:e})=>e.componentProps.props.multiple&&e.componentProps.collapseTags},{label:l("hidePath"),type:"switch",componentProps:{activeValue:!1,inactiveValue:!0},field:"componentProps.showAllLevels"},{label:l("parentSelectable"),type:"switch",field:"componentProps.props.checkStrictly",describe:l("parentChildNotLinked")},{label:l("onlyGetSelectedNodes"),type:"switch",field:"componentProps.props.emitPath",componentProps:{activeValue:!1,inactiveValue:!0}},{label:l("clearable"),type:"switch",field:"componentProps.clearable"},{label:l("optionManagement"),type:"EOptionsEditor",layout:"vertical",field:"componentProps.options",componentProps:{tree:!0},describe:l("configureOptions")},{label:l("formValidation"),type:"ERuleEditor",layout:"vertical",field:"rules",describe:l("validationRuleRequiresForm"),componentProps:{ruleType:"array"}},{label:l("dataSource"),type:"EDataSource",layout:"vertical",field:"componentProps.dataSource",describe:l("dataSourceConfig")}],event:[{type:"change",describe:l("onSelectedNodeChange")},{type:"blur",describe:" 当失去焦点时触发"},{type:"focus",describe:l("onFocu")}],action:[{type:"getCheckedNodes",describe:l("getCurrentSelectedNodes")},{type:"togglePopperVisible",describe:l("togglePopperVisibility")}]}};n.useLocale();const ne={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:[]}};n.useLocale();const pe={component:()=>Promise.resolve().then(()=>require("../../collapseItem-CAGqWjGg.cjs")),defaultSchema:{label:"折叠项",type:"collapse-item",children:[]},config:{attribute:[]}},{t:o}=n.useLocale(),ie={component:async()=>(await import("element-plus")).ElDatePicker,groupName:o("form"),icon:"icon--epic--calendar-month-outline-rounded",sort:910,defaultSchema:{label:o("datePicker"),type:"date",field:"date",input:!0,componentProps:{type:"date",valueFormat:"YYYY-MM-DD",format:"YYYY-MM-DD",placeholder:o("pleaseSelect"),startPlaceholder:o("pleaseSelect"),endPlaceholder:o("pleaseSelect")}},config:{attribute:[{label:o("fieldName"),type:"input",field:"field"},{label:o("title"),type:"input",field:"label"},{label:o("defaultValue"),type:"date",field:"componentProps.defaultValue"},{label:o("dateType"),type:"select",field:"componentProps.type",componentProps:{options:[{label:o("date"),value:"date"},{label:o("week"),value:"week"},{label:o("month"),value:"month"},{label:o("year"),value:"year"},{label:o("time"),value:"datetime"},{label:o("timeRange"),value:"datetimerange"},{label:o("dateRange"),value:"daterange"},{label:o("monthRange"),value:"monthrange"},{label:o("multipleDates"),value:"dates"}]},onChange({values:e,value:a}){e.componentProps.defaultValue=null,["date","daterange","dates"].includes(a)?(e.componentProps.format="YYYY-MM-DD",e.componentProps.valueFormat="YYYY-MM-DD"):["week"].includes(a)?(e.componentProps.format="ww [周]",e.componentProps.valueFormat="YYYY-MM-DD"):["month","monthrange"].includes(a)?(e.componentProps.format="YYYY-MM",e.componentProps.valueFormat="YYYY-MM"):["datetime","datetimerange"].includes(a)?(e.componentProps.format="YYYY-MM-DD HH:mm:ss",e.componentProps.valueFormat="YYYY-MM-DD HH:mm:ss"):["year"].includes(a)&&(e.componentProps.format="YYYY",e.componentProps.valueFormat="YYYY")}},{label:o("startPlaceholder"),type:"input",field:"componentProps.startPlaceholder",show({values:e}){return["datetimerange","daterange","monthrange"].includes(e.componentProps.type)}},{label:o("endPlaceholder"),type:"input",field:"componentProps.endPlaceholder",show({values:e}){return["datetimerange","daterange","monthrange"].includes(e.componentProps.type)}},{label:o("placeholder"),type:"input",field:"componentProps.placeholder",show({values:e}){return!["datetimerange","daterange","monthrange"].includes(e.componentProps.type)}},{label:o("size"),type:"select",defaultValue:"default",componentProps:{placeholder:o("pleaseSelect"),clearable:!0,options:[{label:o("large"),value:"large"},{label:o("medium"),value:"default"},{label:o("small"),value:"small"}]},field:"componentProps.size"},{label:o("editable"),type:"switch",field:"componentProps.editable"},{label:o("displayFormat"),type:"input",field:"componentProps.format"},{label:o("dataFormat"),type:"input",field:"componentProps.valueFormat"},{label:o("separator"),type:"input",field:"componentProps.rangeSeparator",componentProps:{placeholder:o("pleaseEnter")},show({values:e}){return["datetimerange","daterange","monthrange"].includes(e.componentProps.type)}},{label:o("clearable"),type:"switch",field:"componentProps.clearable"},{label:o("formValidation"),type:"ERuleEditor",layout:"vertical",field:"rules",describe:o("validationRuleRequiresForm")}],event:[{type:"change",describe:o("onValueChange")}]}},{t:g}=n.useLocale(),re={component:()=>Promise.resolve().then(()=>require("../../uploadFile-CTDuT_4r.cjs")),groupName:g("form"),icon:"icon--epic--upload-rounded",sort:920,defaultSchema:{label:g("fileUpload"),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:g("fieldName"),type:"input",field:"field"},{label:g("title"),type:"input",field:"label"},{label:g("requestUrl"),type:"input",field:"componentProps.action"},{label:g("uploadFileField"),type:"input",field:"componentProps.name"},{label:g("multiples"),type:"switch",field:"componentProps.multiple"},{label:g("showFileList"),type:"switch",field:"componentProps.showFileList"},{label:g("dragUpload"),type:"switch",field:"componentProps.drag"},{label:g("maxUploadCount"),type:"number",field:"componentProps.limit",componentProps:{min:0,placeholder:g("pleaseEnter")}},{label:g("formValidation"),type:"ERuleEditor",layout:"vertical",field:"rules",describe:g("validationRuleRequiresForm"),componentProps:{ruleType:"array"}}]},bindModel:"modelValue"},{t:w}=n.useLocale(),ce={component:()=>Promise.resolve().then(()=>require("../../uploadImage-0mGONFA8.cjs")),groupName:w("form"),icon:"icon--epic--imagesmode-outline-rounded",sort:920,defaultSchema:{label:w("imageUpload"),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:w("fieldName"),type:"input",field:"field"},{label:w("title"),type:"input",field:"label"},{label:w("requestUrl"),type:"input",field:"componentProps.action"},{label:w("uploadFileField"),type:"input",field:"componentProps.name"},{label:w("multiples"),type:"switch",field:"componentProps.multiple"},{label:w("showFileList"),type:"switch",field:"componentProps.showFileList"},{label:w("dragUpload"),type:"switch",field:"componentProps.drag"},{label:w("maxUploadCount"),type:"number",field:"componentProps.limit",componentProps:{min:0,placeholder:w("pleaseEnter")}},{label:w("formValidation"),type:"ERuleEditor",layout:"vertical",field:"rules",describe:w("validationRuleRequiresForm"),componentProps:{ruleType:"array"}}]},bindModel:"modelValue"},{t:se}=n.useLocale(),ue={component:()=>Promise.resolve().then(()=>require("../../modal-DCBqsiP2.cjs")),defaultSchema:{label:"模态框",type:"modal",children:[]},config:{attribute:[{label:se("title"),type:"input",field:"title"}]}},{t:T}=n.useLocale(),de={component:async()=>await Promise.resolve().then(()=>require("../../sign-BS-9u6is.cjs")),icon:"icon--epic--insert-text-outline-rounded",groupName:T("form"),sort:705,defaultSchema:{label:T("signaturePad"),type:"sign",field:"sign",input:!0,componentProps:{placeholder:T("pleaseEnter"),lineWidth:4,type:"sign",style:{}}},config:{attribute:[{label:T("fieldName"),type:"input",field:"field"},{label:T("title"),type:"input",field:"label"},{label:T("lineWidth")+"(px)",type:"input",componentProps:{placeholder:T("pleaseSelect"),clearable:!0},field:"componentProps.lineWidth"},{label:T("formValidation"),type:"ERuleEditor",layout:"vertical",field:"rules",describe:T("validationRuleRequiresForm")}]}};n.useLocale();const me={component:()=>Promise.resolve().then(()=>require("../../table-CN2LNWqY.cjs")),icon:"icon--epic--table-dashed",sort:10087,defaultSchema:{label:"表格",type:"table",field:"table",componentProps:{isDesign:!1,align:"center",border:!0,isMerge:!1},children:[{type:"table-cell",children:[],id:"table-cell_ftcr7svi1p",label:"行吗",prop:"id"},{type:"table-cell",children:[],id:"table-cell_yxo5fr7hnt",label:"行吗",prop:"id"}]},editConstraints:{childImmovable:!0},config:{attribute:[{label:"字段名",type:"input",field:"field"},{label:"对齐方式",type:"radio",field:"componentProps.align",componentProps:{clearable:!0,radioButton:!0,options:[{label:"居左",value:"left"},{label:"居中",value:"center"},{label:"居右",value:"right"}]}},{label:"是否带有纵向边框",field:"componentProps.border",type:"switch"},{label:"表头设置",type:"EColumnEditor",layout:"vertical",field:"children"},{label:"是否自动合并相同单元格",field:"componentProps.isMerge",type:"switch"}]}},{t:h}=n.useLocale(),be={component:async()=>await Promise.resolve().then(()=>require("../../text-B92ioaoV.cjs")),groupName:h("form"),icon:"icon--epic--file-word-line",sort:1e3,defaultSchema:{label:"文字",type:"text",field:"text",position:"left",fontSize:"14",componentProps:{dynamic:!1,isLink:!1,link:"",style:{width:"max-content",padding:"4px 8px",display:"flex","max-width":"100%","flex-wrap":"wrap"}}},config:{attribute:[{label:h("fieldName"),type:"input",field:"field"},{label:"动态文字",type:"radio",field:"componentProps.dynamic",componentProps:{clearable:!0,radioButton:!0,options:[{label:"是",value:!0},{label:"否",value:!1}]}},{label:"文本",type:"input",field:"label"},{label:h("labelPosition"),type:"radio",field:"position",componentProps:{clearable:!1,radioButton:!0,options:[{label:h("leftAlign"),value:"left"},{label:h("centerAlign"),value:"center"},{label:h("rightAlign"),value:"right"}]}},{label:h("fontSize")+"(px)",type:"input",field:"fontSize"},{label:"超链接",type:"radio",field:"componentProps.isLink",componentProps:{clearable:!0,radioButton:!0,options:[{label:"是",value:!0},{label:"否",value:!1}]}},{label:"链接地址",type:"input",field:"componentProps.link"}],event:[{type:"input",describe:h("onInput")},{type:"change",describe:h("onChange")},{type:"focus",describe:h("onFocus")},{type:"blur",describe:h("onBlur")},{type:"clear",describe:h("onClear")}],action:[{type:"focus",describe:h("focusInput")},{type:"blur",describe:h("blurInput")},{type:"clear",describe:h("clearInput")},{type:"select",describe:h("selectInputText")}]}};n.useLocale();const fe={component:()=>Promise.resolve().then(()=>require("../../cell-AML-qIH9.cjs")),groupName:"",defaultSchema:{label:"单元格",type:"table-cell",children:[]},editConstraints:{childImmovable:!1},config:{attribute:[]}},{t:N}=n.useLocale(),ye={component:()=>Promise.resolve().then(()=>require("../../tabs-CYH9lAUk.cjs")),groupName:"布局",icon:"icon--epic--section",sort:900,defaultSchema:{label:"标签页",type:"tabs",children:[{label:"标签页1",value:"1"},{label:"标签页2",value:"2"}],componentProps:{type:"","tab-position":"top"}},editConstraints:{childImmovable:!0},config:{attribute:[{label:N("fieldName"),type:"input",field:"field"},{label:"风格类型",type:"select",componentProps:{placeholder:N("pleaseSelect"),clearable:!0,options:[{label:"卡片风格",value:"card"},{label:"带有边框的卡片风格",value:"border-card"}]},field:"componentProps.type"},{label:"选项卡所在位置",type:"select",componentProps:{placeholder:N("pleaseSelect"),clearable:!0,options:[{label:"上边",value:"top"},{label:"下边",value:"bottom"},{label:"右边",value:"right"},{label:"左边",value:"left"}]},field:"componentProps.tab-position"},{label:N("optionManagement"),type:"EOptionsEditor",layout:"vertical",field:"children",describe:N("configureOptions")}]}};n.useLocale();const he={component:()=>Promise.resolve().then(()=>require("../../tabPanel-CXZYMEwi.cjs")),defaultSchema:{label:"标签",type:"tab-panel",children:[],componentProps:{span:6}},config:{attribute:[]}},{t:R}=n.useLocale(),Pe={component:()=>Promise.resolve().then(()=>require("../../ETable-adkZzXhI.cjs")),groupName:"布局",icon:"icon--epic--table-shortcut",sort:10086,defaultSchema:{label:"表格布局",type:"eTable",children:[{type:"eTr",children:[{type:"eTd",children:[]},{type:"eTd",children:[]},{type:"eTd",children:[]}]},{type:"eTr",children:[{type:"eTd",children:[]},{type:"eTd",children:[]},{type:"eTd",children:[]}]},{type:"eTr",children:[{type:"eTd",children:[]},{type:"eTd",children:[]},{type:"eTd",children:[]}]}]},editConstraints:{childImmovable:!0},config:{attribute:[{label:R("verticalAlignment"),type:"select",componentProps:{style:{width:"100%"},options:[{label:"top",value:"top"},{label:"middle",value:"middle"},{label:"bottom",value:"bottom"}],placeholder:R("pleaseSelect")},field:"componentProps.align"},{label:R("horizontalArrangement"),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:R("pleaseSelect")},field:"componentProps.justify"},{label:R("gridSpacing"),type:"number",field:"componentProps.gutter",componentProps:{placeholder:R("pleaseEnter")}}]}},{t:L}=n.useLocale(),ve={component:()=>Promise.resolve().then(()=>require("../../ETr-BqGghav2.cjs")),icon:"icon--epic--width-normal-outline",sort:10086,defaultSchema:{label:"自定义表格-行",type:"eTr"},editConstraints:{childImmovable:!0},config:{attribute:[{label:L("verticalAlignment"),type:"select",componentProps:{style:{width:"100%"},options:[{label:"top",value:"top"},{label:"middle",value:"middle"},{label:"bottom",value:"bottom"}],placeholder:L("pleaseSelect")},field:"componentProps.align"},{label:L("horizontalArrangement"),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:L("pleaseSelect")},field:"componentProps.justify"},{label:L("gridSpacing"),type:"number",field:"componentProps.gutter",componentProps:{placeholder:L("pleaseEnter")}}]}};n.useLocale();const ge={component:()=>Promise.resolve().then(()=>require("../../ETd-BCM7zA8V.cjs")),icon:"icon--epic--width-normal-outline",sort:10086,defaultSchema:{label:"自定义表格-单元格",type:"eTd"},config:{attribute:[]}},{t:b}=n.useLocale(),we={component:async()=>(await import("element-plus")).ElRate,groupName:b("form"),icon:"icon--epic--star-filled-half",sort:701,defaultSchema:{label:"评分",type:"rate",field:"rate",input:!0,componentProps:{placeholder:b("pleaseEnter"),allowHalf:!0,max:5,showScore:!1}},config:{attribute:[{label:b("fieldName"),type:"input",field:"field"},{label:b("title"),type:"input",field:"label"},{label:"最大分值",type:"input",field:"componentProps.max"},{label:b("defaultValue"),type:"input",field:"componentProps.defaultValue"},{label:b("size"),type:"select",defaultValue:"default",componentProps:{placeholder:b("pleaseSelect"),clearable:!0,options:[{label:b("large"),value:"large"},{label:b("medium"),value:"default"},{label:b("small"),value:"small"}]},field:"componentProps.size"},{label:b("clearable"),type:"switch",field:"componentProps.clearable"},{label:"允许半选",type:"switch",field:"componentProps.allowHalf"},{label:"显示当前分数",type:"switch",field:"componentProps.showScore"},{label:b("formValidation"),type:"ERuleEditor",layout:"vertical",field:"rules",describe:b("validationRuleRequiresForm")}],event:[{type:"input",describe:b("onInput")},{type:"change",describe:b("onChange")},{type:"focus",describe:b("onFocus")},{type:"blur",describe:b("onBlur")},{type:"clear",describe:b("onClear")}],action:[{type:"focus",describe:b("focusInput")},{type:"blur",describe:b("blurInput")},{type:"clear",describe:b("clearInput")},{type:"select",describe:b("selectInputText")}]}},{t:Se}=n.useLocale(),Ee={component:async()=>await Promise.resolve().then(()=>require("../../iframe-CRF3GSRv.cjs")),groupName:"布局",icon:"icon--epic--box-3-line",sort:1e3,defaultSchema:{label:"内嵌页面",type:"iframe",field:"input",input:!1,componentProps:{url:""}},editConstraints:{childImmovable:!0},config:{attribute:[{label:Se("fieldName"),type:"input",field:"field"},{label:"默认页面链接",type:"input",field:"componentProps.url"}]}},{t:v}=n.useLocale(),Ve={component:async()=>await Promise.resolve().then(()=>require("../../selectPage-CrdVWKGk.cjs")),icon:"icon--epic--select",groupName:"表单",sort:1888,defaultSchema:{label:"分页下拉框",type:"selectpage",field:"selectpage",input:!0,componentProps:{placeholder:v("pleaseEnter"),lineWidth:4,type:"selectPage",style:{},pageKey:"pageNum",pageTotalKey:"total",searchKey:"keywords"}},config:{attribute:[{label:v("fieldName"),type:"input",field:"field"},{label:v("title"),type:"input",field:"label"},{label:v("placeholder"),type:"input",field:"componentProps.placeholder"},{label:v("size"),type:"select",componentProps:{placeholder:v("pleaseSelect"),clearable:!0,options:[{label:v("large"),value:"large"},{label:v("medium"),value:"default"},{label:v("small"),value:"small"}]},field:"componentProps.size"},{label:"分页字段名",type:"input",field:"componentProps.pageKey"},{label:"总数字段名",type:"input",field:"componentProps.pageTotalKey"},{label:"搜索字段名",type:"input",field:"componentProps.searchKey"},{label:"选择数据源",type:"ESourceDataSelect",layout:"vertical",field:"componentProps.options",describe:v("configureOptions")},{label:v("dataSource"),type:"EDataSource",layout:"vertical",field:"componentProps.dataSource",describe:v("dataSourceConfig")},{label:v("formValidation"),type:"ERuleEditor",layout:"vertical",field:"rules",describe:v("validationRuleRequiresForm")}],event:[{type:"change",describe:v("onValueChange")}]}};function Ce(e=A.pluginManager){e.component("FormItem",S.ElFormItem),e.component("Form",S.ElForm),e.component("RadioGroup",S.ElRadioGroup),e.component("RadioButton",S.ElRadioButton),e.component("Tabs",S.ElTabs),e.component("TabPane",S.ElTabPane),e.component("Collapse",S.ElCollapse),e.component("CollapseItem",S.ElCollapseItem),e.component("Drawer",S.ElDrawer),e.component("Dialog",S.ElDialog),e.component("ElTable",S.ElTable),e.component("ElTableColumn",S.ElTableColumn),[j,G,O,U,K,Z,ee,ie,X,oe,te,ae,le,re,ce,H,_,J,Q,ne,pe,ue,de,me,be,fe,ye,he,Pe,ve,ge,we,Ee,Ve].forEach(f=>{e.registerComponent(f),e.addBaseComponentTypes(f.defaultSchema.type)}),e.setInitialized(!0)}function Te(e){import("element-plus").then(({provideGlobalConfig:a})=>{a(e)})}exports.provideGlobalConfig=Te;exports.setupElementPlus=Ce;
|
|
@@ -2448,7 +2448,7 @@ const ce = {
|
|
|
2448
2448
|
]
|
|
2449
2449
|
}
|
|
2450
2450
|
}, { t: g } = a(), de = {
|
|
2451
|
-
component: () => import("../../uploadFile-
|
|
2451
|
+
component: () => import("../../uploadFile-D1Wv0mlk.js"),
|
|
2452
2452
|
groupName: g("form"),
|
|
2453
2453
|
icon: "icon--epic--upload-rounded",
|
|
2454
2454
|
sort: 920,
|
|
@@ -2533,7 +2533,7 @@ const ce = {
|
|
|
2533
2533
|
},
|
|
2534
2534
|
bindModel: "modelValue"
|
|
2535
2535
|
}, { t: v } = a(), ue = {
|
|
2536
|
-
component: () => import("../../uploadImage-
|
|
2536
|
+
component: () => import("../../uploadImage-lNqQKWH3.js"),
|
|
2537
2537
|
groupName: v("form"),
|
|
2538
2538
|
icon: "icon--epic--imagesmode-outline-rounded",
|
|
2539
2539
|
sort: 920,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("vue"),a=require("element-plus"),d=require("./index-BoL2PSBk.cjs"),{t:r}=d.useLocale(),b=l.defineComponent({props:{modelValue:{type:Array,default:()=>[]}},emits:["update:modelValue"],setup(i,{emit:c,attrs:u}){const o=l.ref([]);l.watch(o,e=>{c("update:modelValue",e)});const p=l.inject("disabled",{value:!1});l.watch(()=>i.modelValue,e=>{if(e!=null&&e.length>0&&o.value!=null){if(o.value===e)return;o.value.length=0,o.value.push(...e)}},{deep:!0,immediate:!0});const f=(e,t)=>{l.nextTick(()=>{o.value=t})},h=e=>{var n,s;let t=e.url||((s=(n=e==null?void 0:e.response)==null?void 0:n.data)==null?void 0:s.url);window.open(t)},g=e=>{},m=(e,t,n)=>{console.log(n)},v=(e,t,n)=>{a.ElMessage.error(r("uploadFailed")),console.error(e)},w=(e,t)=>{let{limit:n}=u;a.ElMessage.warning(`最多只能上传 ${n} 个文件`)},E=l.computed(()=>({...u,"file-list":o.value,onBeforeUpload:g,onChange:f,onSuccess:m,onError:v,onPreview:h,onExceed:w}));return()=>l.h("div",null,{default:()=>[l.h(a.ElUpload,{...E.value,headers:{Authorization:`Bearer ${d.api.get("Admin-Token")}`}},{default:()=>[l.h(a.ElButton,{disabled:p.value},{default:()=>[l.h("span",{class:"icon--epic icon--epic--cloud-upload-outlined text-lg",style:{"margin-right":"2px"}}),l.h("span",null,{default:()=>r("fileUpload")})]})]})]})}});exports.default=b;
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import { defineComponent as x, ref as U, watch as s, inject as b, computed as V, h as n, nextTick as y } from "vue";
|
|
2
|
+
import { ElUpload as A, ElButton as B, ElMessage as u } from "element-plus";
|
|
3
|
+
import { a as C, u as L } from "./index-B1s67XDZ.js";
|
|
4
|
+
const { t: d } = L(), T = x({
|
|
5
|
+
props: {
|
|
6
|
+
modelValue: {
|
|
7
|
+
type: Array,
|
|
8
|
+
default: () => []
|
|
9
|
+
}
|
|
10
|
+
},
|
|
11
|
+
emits: ["update:modelValue"],
|
|
12
|
+
setup(i, { emit: p, attrs: t }) {
|
|
13
|
+
const l = U([]);
|
|
14
|
+
s(l, (e) => {
|
|
15
|
+
p("update:modelValue", e);
|
|
16
|
+
});
|
|
17
|
+
const c = b("disabled", { value: !1 });
|
|
18
|
+
s(
|
|
19
|
+
() => i.modelValue,
|
|
20
|
+
(e) => {
|
|
21
|
+
if (e != null && e.length > 0 && l.value != null) {
|
|
22
|
+
if (l.value === e) return;
|
|
23
|
+
l.value.length = 0, l.value.push(...e);
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
{ deep: !0, immediate: !0 }
|
|
27
|
+
);
|
|
28
|
+
const f = (e, a) => {
|
|
29
|
+
y(() => {
|
|
30
|
+
l.value = a;
|
|
31
|
+
});
|
|
32
|
+
}, m = (e) => {
|
|
33
|
+
var o, r;
|
|
34
|
+
let a = e.url || ((r = (o = e == null ? void 0 : e.response) == null ? void 0 : o.data) == null ? void 0 : r.url);
|
|
35
|
+
window.open(a);
|
|
36
|
+
}, h = (e) => {
|
|
37
|
+
}, g = (e, a, o) => {
|
|
38
|
+
console.log(o);
|
|
39
|
+
}, v = (e, a, o) => {
|
|
40
|
+
u.error(d("uploadFailed")), console.error(e);
|
|
41
|
+
}, w = (e, a) => {
|
|
42
|
+
let { limit: o } = t;
|
|
43
|
+
u.warning(`最多只能上传 ${o} 个文件`);
|
|
44
|
+
}, E = V(() => ({
|
|
45
|
+
...t,
|
|
46
|
+
"file-list": l.value,
|
|
47
|
+
onBeforeUpload: h,
|
|
48
|
+
onChange: f,
|
|
49
|
+
onSuccess: g,
|
|
50
|
+
onError: v,
|
|
51
|
+
onPreview: m,
|
|
52
|
+
onExceed: w
|
|
53
|
+
}));
|
|
54
|
+
return () => n("div", null, {
|
|
55
|
+
default: () => [
|
|
56
|
+
n(
|
|
57
|
+
A,
|
|
58
|
+
{
|
|
59
|
+
...E.value,
|
|
60
|
+
headers: {
|
|
61
|
+
Authorization: `Bearer ${C.get("Admin-Token")}`
|
|
62
|
+
}
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
default: () => [
|
|
66
|
+
n(
|
|
67
|
+
B,
|
|
68
|
+
{
|
|
69
|
+
disabled: c.value
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
default: () => [
|
|
73
|
+
n("span", {
|
|
74
|
+
class: "icon--epic icon--epic--cloud-upload-outlined text-lg",
|
|
75
|
+
style: { "margin-right": "2px" }
|
|
76
|
+
}),
|
|
77
|
+
n("span", null, { default: () => d("fileUpload") })
|
|
78
|
+
]
|
|
79
|
+
}
|
|
80
|
+
)
|
|
81
|
+
]
|
|
82
|
+
}
|
|
83
|
+
)
|
|
84
|
+
]
|
|
85
|
+
});
|
|
86
|
+
}
|
|
87
|
+
});
|
|
88
|
+
export {
|
|
89
|
+
T as default
|
|
90
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("vue"),r=require("element-plus"),v=require("./index-BoL2PSBk.cjs"),{t:u}=v.useLocale(),P=l.defineComponent({props:{modelValue:{type:Array,default:()=>[]}},emits:["update:modelValue"],setup(h,{emit:m,attrs:i}){const o=l.ref([]),x=l.inject("disabled",{value:!1}),n=l.ref(""),d=l.ref(!1),c=e=>{d.value=e};l.watch(o,e=>{m("update:modelValue",e)}),l.watch(()=>h.modelValue,e=>{if(e!=null&&e.length>0&&o.value!=null){if(o.value===e)return;o.value.length=0,o.value.push(...e)}},{deep:!0,immediate:!0});const E=(e,t)=>{l.nextTick(()=>{s?(o.value=t.filter(a=>{var f,g;return((f=a==null?void 0:a.response)==null?void 0:f.code)===200||((g=a==null?void 0:a.response)==null?void 0:g.code)===201}),s=!1):o.value=t})};let s=!1;const b=(e,t,a)=>{e.code!==200&&(r.ElMessage.error(u("uploadFailed")),s=!0),console.log(a)},w=(e,t,a)=>{r.ElMessage.error(u("uploadFailed")),console.error(e)},y=(e,t)=>{let{limit:a}=i;r.ElMessage.warning(`最多只能上传 ${a} 张图片`)},U=e=>{},p=l.computed(()=>({...i,"file-list":o.value,"list-type":"picture-card",accept:"image/gif,image/jpeg,image/jpg,image/png,image/svg",onBeforeUpload:U,onChange:E,onSuccess:b,onError:w,onPreview:V,onExceed:y})),V=e=>{e.url&&(n.value=e.url,c(!0))};return()=>l.h("div",{class:"epic-upload-image"},p.value.disabled||x.value?{default:()=>[o.value.map(e=>l.h(r.ElImage,{src:o.value[0].url,fit:"contain","preview-src-list":[e.url],style:{width:"156px",margin:"0 8px 8px 0",height:"156px",border:"1px solid #eee","border-radius":"6px"}}))]}:{default:()=>[l.h(r.ElUpload,{...p.value,headers:{Authorization:`Bearer ${v.api.get("Admin-Token")}`}},{default:()=>[l.h("div",{style:{"text-align":"center"}},{default:()=>[l.h("span",{class:"icon--epic icon--epic--cloud-upload-outlined mr-2px text-lg"}),l.h("div",{class:"ant-upload-text"},{default:()=>u("clickToUpload")})]})]}),(()=>{if(d.value)return l.h(r.ElImageViewer,{urlList:[n.value],onClose:()=>{c(!1)}})})()]})}});exports.default=P;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineComponent as F, ref as
|
|
2
|
-
import { ElImage as
|
|
3
|
-
import {
|
|
4
|
-
const { t:
|
|
1
|
+
import { defineComponent as F, ref as s, inject as L, watch as m, computed as j, h as o, nextTick as k } from "vue";
|
|
2
|
+
import { ElImage as A, ElUpload as I, ElImageViewer as P, ElMessage as i } from "element-plus";
|
|
3
|
+
import { a as T, u as B } from "./index-B1s67XDZ.js";
|
|
4
|
+
const { t: u } = B(), M = F({
|
|
5
5
|
props: {
|
|
6
6
|
modelValue: {
|
|
7
7
|
type: Array,
|
|
@@ -10,8 +10,8 @@ const { t: i } = T(), N = F({
|
|
|
10
10
|
},
|
|
11
11
|
emits: ["update:modelValue"],
|
|
12
12
|
setup(h, { emit: x, attrs: n }) {
|
|
13
|
-
const a =
|
|
14
|
-
|
|
13
|
+
const a = s([]), E = L("disabled", { value: !1 }), d = s(""), p = s(!1), c = (e) => {
|
|
14
|
+
p.value = e;
|
|
15
15
|
};
|
|
16
16
|
m(a, (e) => {
|
|
17
17
|
x("update:modelValue", e);
|
|
@@ -26,21 +26,21 @@ const { t: i } = T(), N = F({
|
|
|
26
26
|
{ deep: !0, immediate: !0 }
|
|
27
27
|
);
|
|
28
28
|
const b = (e, r) => {
|
|
29
|
-
|
|
30
|
-
|
|
29
|
+
k(() => {
|
|
30
|
+
t ? (a.value = r.filter((l) => {
|
|
31
31
|
var g, v;
|
|
32
32
|
return ((g = l == null ? void 0 : l.response) == null ? void 0 : g.code) === 200 || ((v = l == null ? void 0 : l.response) == null ? void 0 : v.code) === 201;
|
|
33
|
-
}),
|
|
33
|
+
}), t = !1) : a.value = r;
|
|
34
34
|
});
|
|
35
35
|
};
|
|
36
|
-
let
|
|
36
|
+
let t = !1;
|
|
37
37
|
const w = (e, r, l) => {
|
|
38
|
-
e.code !== 200 && (
|
|
38
|
+
e.code !== 200 && (i.error(u("uploadFailed")), t = !0), console.log(l);
|
|
39
39
|
}, U = (e, r, l) => {
|
|
40
|
-
|
|
40
|
+
i.error(u("uploadFailed")), console.error(e);
|
|
41
41
|
}, V = (e, r) => {
|
|
42
42
|
let { limit: l } = n;
|
|
43
|
-
|
|
43
|
+
i.warning(`最多只能上传 ${l} 张图片`);
|
|
44
44
|
}, y = (e) => {
|
|
45
45
|
}, f = j(() => ({
|
|
46
46
|
...n,
|
|
@@ -54,7 +54,7 @@ const { t: i } = T(), N = F({
|
|
|
54
54
|
onPreview: C,
|
|
55
55
|
onExceed: V
|
|
56
56
|
})), C = (e) => {
|
|
57
|
-
e.url && (d.value = e.url,
|
|
57
|
+
e.url && (d.value = e.url, c(!0));
|
|
58
58
|
};
|
|
59
59
|
return () => o(
|
|
60
60
|
"div",
|
|
@@ -64,7 +64,7 @@ const { t: i } = T(), N = F({
|
|
|
64
64
|
f.value.disabled || E.value ? {
|
|
65
65
|
default: () => [
|
|
66
66
|
a.value.map(
|
|
67
|
-
(e) => o(
|
|
67
|
+
(e) => o(A, {
|
|
68
68
|
src: a.value[0].url,
|
|
69
69
|
fit: "contain",
|
|
70
70
|
"preview-src-list": [e.url],
|
|
@@ -81,9 +81,10 @@ const { t: i } = T(), N = F({
|
|
|
81
81
|
} : {
|
|
82
82
|
default: () => [
|
|
83
83
|
o(
|
|
84
|
-
|
|
84
|
+
I,
|
|
85
85
|
{
|
|
86
|
-
...f.value
|
|
86
|
+
...f.value,
|
|
87
|
+
headers: { Authorization: `Bearer ${T.get("Admin-Token")}` }
|
|
87
88
|
},
|
|
88
89
|
{
|
|
89
90
|
default: () => [
|
|
@@ -95,7 +96,7 @@ const { t: i } = T(), N = F({
|
|
|
95
96
|
o("span", {
|
|
96
97
|
class: "icon--epic icon--epic--cloud-upload-outlined mr-2px text-lg"
|
|
97
98
|
}),
|
|
98
|
-
o("div", { class: "ant-upload-text" }, { default: () =>
|
|
99
|
+
o("div", { class: "ant-upload-text" }, { default: () => u("clickToUpload") })
|
|
99
100
|
]
|
|
100
101
|
}
|
|
101
102
|
)
|
|
@@ -103,11 +104,11 @@ const { t: i } = T(), N = F({
|
|
|
103
104
|
}
|
|
104
105
|
),
|
|
105
106
|
(() => {
|
|
106
|
-
if (
|
|
107
|
-
return o(
|
|
107
|
+
if (p.value)
|
|
108
|
+
return o(P, {
|
|
108
109
|
urlList: [d.value],
|
|
109
110
|
onClose: () => {
|
|
110
|
-
|
|
111
|
+
c(!1);
|
|
111
112
|
}
|
|
112
113
|
});
|
|
113
114
|
})()
|
|
@@ -117,5 +118,5 @@ const { t: i } = T(), N = F({
|
|
|
117
118
|
}
|
|
118
119
|
});
|
|
119
120
|
export {
|
|
120
|
-
|
|
121
|
+
M as default
|
|
121
122
|
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "epic-designer-gold",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.31",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"module": "dist/index.js",
|
|
@@ -72,4 +72,4 @@
|
|
|
72
72
|
"vue-eslint-parser": "^9.4.3",
|
|
73
73
|
"vue-tsc": "^2.1.6"
|
|
74
74
|
}
|
|
75
|
-
}
|
|
75
|
+
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("vue"),a=require("element-plus"),E=require("./index-BoL2PSBk.cjs"),{t:r}=E.useLocale(),b=l.defineComponent({props:{modelValue:{type:Array,default:()=>[]}},emits:["update:modelValue"],setup(d,{emit:i,attrs:u}){const o=l.ref([]);l.watch(o,e=>{i("update:modelValue",e)});const c=l.inject("disabled",{value:!1});l.watch(()=>d.modelValue,e=>{if(e!=null&&e.length>0&&o.value!=null){if(o.value===e)return;o.value.length=0,o.value.push(...e)}},{deep:!0,immediate:!0});const p=(e,t)=>{l.nextTick(()=>{o.value=t})},f=e=>{var n,s;let t=e.url||((s=(n=e==null?void 0:e.response)==null?void 0:n.data)==null?void 0:s.url);window.open(t)},h=e=>{},g=(e,t,n)=>{console.log(n)},v=(e,t,n)=>{a.ElMessage.error(r("uploadFailed")),console.error(e)},m=(e,t)=>{let{limit:n}=u;a.ElMessage.warning(`最多只能上传 ${n} 个文件`)},w=l.computed(()=>({...u,"file-list":o.value,onBeforeUpload:h,onChange:p,onSuccess:g,onError:v,onPreview:f,onExceed:m}));return()=>l.h("div",null,{default:()=>[l.h(a.ElUpload,w.value,{default:()=>[l.h(a.ElButton,{disabled:c.value},{default:()=>[l.h("span",{class:"icon--epic icon--epic--cloud-upload-outlined text-lg",style:{"margin-right":"2px"}}),l.h("span",null,{default:()=>r("fileUpload")})]})]})]})}});exports.default=b;
|
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
import { defineComponent as x, ref as U, watch as s, inject as b, computed as V, h as n, nextTick as y } from "vue";
|
|
2
|
-
import { ElUpload as C, ElButton as L, ElMessage as r } from "element-plus";
|
|
3
|
-
import { u as P } from "./index-B1s67XDZ.js";
|
|
4
|
-
const { t: d } = P(), k = x({
|
|
5
|
-
props: {
|
|
6
|
-
modelValue: {
|
|
7
|
-
type: Array,
|
|
8
|
-
default: () => []
|
|
9
|
-
}
|
|
10
|
-
},
|
|
11
|
-
emits: ["update:modelValue"],
|
|
12
|
-
setup(i, { emit: c, attrs: t }) {
|
|
13
|
-
const l = U([]);
|
|
14
|
-
s(l, (e) => {
|
|
15
|
-
c("update:modelValue", e);
|
|
16
|
-
});
|
|
17
|
-
const p = b("disabled", { value: !1 });
|
|
18
|
-
s(
|
|
19
|
-
() => i.modelValue,
|
|
20
|
-
(e) => {
|
|
21
|
-
if (e != null && e.length > 0 && l.value != null) {
|
|
22
|
-
if (l.value === e) return;
|
|
23
|
-
l.value.length = 0, l.value.push(...e);
|
|
24
|
-
}
|
|
25
|
-
},
|
|
26
|
-
{ deep: !0, immediate: !0 }
|
|
27
|
-
);
|
|
28
|
-
const f = (e, a) => {
|
|
29
|
-
y(() => {
|
|
30
|
-
l.value = a;
|
|
31
|
-
});
|
|
32
|
-
}, m = (e) => {
|
|
33
|
-
var o, u;
|
|
34
|
-
let a = e.url || ((u = (o = e == null ? void 0 : e.response) == null ? void 0 : o.data) == null ? void 0 : u.url);
|
|
35
|
-
window.open(a);
|
|
36
|
-
}, h = (e) => {
|
|
37
|
-
}, v = (e, a, o) => {
|
|
38
|
-
console.log(o);
|
|
39
|
-
}, g = (e, a, o) => {
|
|
40
|
-
r.error(d("uploadFailed")), console.error(e);
|
|
41
|
-
}, w = (e, a) => {
|
|
42
|
-
let { limit: o } = t;
|
|
43
|
-
r.warning(`最多只能上传 ${o} 个文件`);
|
|
44
|
-
}, E = V(() => ({
|
|
45
|
-
...t,
|
|
46
|
-
"file-list": l.value,
|
|
47
|
-
onBeforeUpload: h,
|
|
48
|
-
onChange: f,
|
|
49
|
-
onSuccess: v,
|
|
50
|
-
onError: g,
|
|
51
|
-
onPreview: m,
|
|
52
|
-
onExceed: w
|
|
53
|
-
}));
|
|
54
|
-
return () => n("div", null, {
|
|
55
|
-
default: () => [
|
|
56
|
-
n(C, E.value, {
|
|
57
|
-
default: () => [
|
|
58
|
-
n(
|
|
59
|
-
L,
|
|
60
|
-
{
|
|
61
|
-
disabled: p.value
|
|
62
|
-
},
|
|
63
|
-
{
|
|
64
|
-
default: () => [
|
|
65
|
-
n("span", {
|
|
66
|
-
class: "icon--epic icon--epic--cloud-upload-outlined text-lg",
|
|
67
|
-
style: { "margin-right": "2px" }
|
|
68
|
-
}),
|
|
69
|
-
n("span", null, { default: () => d("fileUpload") })
|
|
70
|
-
]
|
|
71
|
-
}
|
|
72
|
-
)
|
|
73
|
-
]
|
|
74
|
-
})
|
|
75
|
-
]
|
|
76
|
-
});
|
|
77
|
-
}
|
|
78
|
-
});
|
|
79
|
-
export {
|
|
80
|
-
k as default
|
|
81
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("vue"),r=require("element-plus"),V=require("./index-BoL2PSBk.cjs"),{t:u}=V.useLocale(),P=l.defineComponent({props:{modelValue:{type:Array,default:()=>[]}},emits:["update:modelValue"],setup(v,{emit:h,attrs:i}){const o=l.ref([]),m=l.inject("disabled",{value:!1}),n=l.ref(""),d=l.ref(!1),c=e=>{d.value=e};l.watch(o,e=>{h("update:modelValue",e)}),l.watch(()=>v.modelValue,e=>{if(e!=null&&e.length>0&&o.value!=null){if(o.value===e)return;o.value.length=0,o.value.push(...e)}},{deep:!0,immediate:!0});const x=(e,s)=>{l.nextTick(()=>{t?(o.value=s.filter(a=>{var f,g;return((f=a==null?void 0:a.response)==null?void 0:f.code)===200||((g=a==null?void 0:a.response)==null?void 0:g.code)===201}),t=!1):o.value=s})};let t=!1;const E=(e,s,a)=>{e.code!==200&&(r.ElMessage.error(u("uploadFailed")),t=!0),console.log(a)},b=(e,s,a)=>{r.ElMessage.error(u("uploadFailed")),console.error(e)},w=(e,s)=>{let{limit:a}=i;r.ElMessage.warning(`最多只能上传 ${a} 张图片`)},y=e=>{},p=l.computed(()=>({...i,"file-list":o.value,"list-type":"picture-card",accept:"image/gif,image/jpeg,image/jpg,image/png,image/svg",onBeforeUpload:y,onChange:x,onSuccess:E,onError:b,onPreview:U,onExceed:w})),U=e=>{e.url&&(n.value=e.url,c(!0))};return()=>l.h("div",{class:"epic-upload-image"},p.value.disabled||m.value?{default:()=>[o.value.map(e=>l.h(r.ElImage,{src:o.value[0].url,fit:"contain","preview-src-list":[e.url],style:{width:"156px",margin:"0 8px 8px 0",height:"156px",border:"1px solid #eee","border-radius":"6px"}}))]}:{default:()=>[l.h(r.ElUpload,{...p.value},{default:()=>[l.h("div",{style:{"text-align":"center"}},{default:()=>[l.h("span",{class:"icon--epic icon--epic--cloud-upload-outlined mr-2px text-lg"}),l.h("div",{class:"ant-upload-text"},{default:()=>u("clickToUpload")})]})]}),(()=>{if(d.value)return l.h(r.ElImageViewer,{urlList:[n.value],onClose:()=>{c(!1)}})})()]})}});exports.default=P;
|