epic-designer-gold 1.0.36 → 1.0.37
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/form-BcyswgAo.cjs +1 -0
- package/dist/{form-DDcaeFok.js → form-CcUK0W1z.js} +70 -68
- package/dist/ocrUpload-CBzBe8ro.cjs +1 -0
- package/dist/{ocrUpload-DFAe83gW.js → ocrUpload-DVHm3yls.js} +27 -27
- package/dist/style.css +1 -1
- package/dist/ui/elementPlus/index.cjs +1 -1
- package/dist/ui/elementPlus/index.js +2 -2
- package/package.json +1 -1
- package/dist/form-sr_OUKVG.cjs +0 -1
- package/dist/ocrUpload-BoJVjq3M.cjs +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var B=Object.create;var z=Object.defineProperty;var M=Object.getOwnPropertyDescriptor;var $=Object.getOwnPropertyNames;var O=Object.getPrototypeOf,U=Object.prototype.hasOwnProperty;var W=(e,n,y,I)=>{if(n&&typeof n=="object"||typeof n=="function")for(let C of $(n))!U.call(e,C)&&C!==y&&z(e,C,{get:()=>n[C],enumerable:!(I=M(n,C))||I.enumerable});return e};var T=(e,n,y)=>(y=e!=null?B(O(e)):{},W(n||!e||!e.__esModule?z(y,"default",{value:e,enumerable:!0}):y,e));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const A=require("epic-designer-gold"),o=require("../../index-BoL2PSBk.cjs"),E=require("element-plus"),{t:p}=o.useLocale(),G={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}=o.useLocale(),K={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}=o.useLocale(),j={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:d}=o.useLocale(),H={component:()=>Promise.resolve().then(()=>require("../../form-sr_OUKVG.cjs")),groupName:d("form"),icon:"icon--epic--list-alt-outline-rounded",sort:600,defaultSchema:{label:d("form"),type:"form",componentProps:{name:"default",labelWidth:"100px","label-position":"left"},children:[]},config:{attribute:[{label:"Name",type:"input",field:"componentProps.name"},{label:d("labelPosition"),type:"radio",field:"componentProps.label-position",componentProps:{clearable:!0,radioButton:!0,options:[{label:d("left"),value:"left"},{label:d("right"),value:"right"},{label:d("top"),value:"top"}]}},{label:d("labelWidth"),type:"EInputSize",field:"componentProps.labelWidth"},{label:d("labelSuffix"),type:"input",field:"componentProps.labelSuffix",componentProps:{placeholder:d("pleaseEnter")}},{label:d("formSize"),type:"select",field:"componentProps.size",componentProps:{placeholder:d("pleaseSelect"),clearable:!0,options:[{label:d("large"),value:"large"},{label:d("medium"),value:"default"},{label:d("small"),value:"small"}]}},{label:d("asteriskPosition"),type:"select",field:"componentProps.require-asterisk-position",componentProps:{placeholder:d("pleaseSelect"),clearable:!0,options:[{label:d("left"),value:"left"},{label:d("right"),value:"right"}]}},{label:d("inlineValidationMessage"),type:"switch",field:"componentProps.inline-message"},{label:d("validationFeedbackIcon"),type:"switch",field:"componentProps.status-icon"},{label:d("scrollToValidationError"),type:"switch",field:"componentProps.scroll-to-error"},{label:d("inlineMode"),type:"switch",field:"componentProps.inline"}],action:[{type:"getData",describe:d("getFormData")},{type:"setData",describe:d("setFormData")},{type:"validate",describe:d("validateForm")}]}};o.useLocale();const _={component:()=>Promise.resolve().then(()=>require("../../formItem-BVnNs1Q9.cjs")),defaultSchema:{label:"表单项",type:"form-item"},config:{}},{t:v}=o.useLocale(),J={component:()=>Promise.resolve().then(()=>require("../../button-Cc4KYk3v.cjs")),groupName:v("form"),icon:"icon--epic--fit-screen-rounded",sort:1200,defaultSchema:{label:v("button"),type:"button",field:"input",input:!1},config:{attribute:[{label:v("title"),type:"input",field:"label"},{label:v("actionType"),type:"select",componentProps:{placeholder:v("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:v("actionType"),type:"select",componentProps:{placeholder:v("pleaseSelect"),clearable:!0,options:[{label:"button",value:"button"},{label:"submit",value:"submit"},{label:"reset",value:"reset"}]},field:"componentProps.native-type"},{label:v("customColor"),type:"color-picker",field:"componentProps.color",componentProps:{type:"color"}},{label:v("plainButton"),type:"switch",field:"componentProps.plain"},{label:v("roundButton"),type:"switch",field:"componentProps.round"},{label:v("circleButton"),type:"switch",field:"componentProps.circle"},{label:v("textButton"),type:"switch",field:"componentProps.text"},{label:v("loadingState"),type:"switch",field:"componentProps.loading"}],event:[{type:"click",describe:v("onClick")},{type:"dblclick",describe:v("onDoubleClick")}]}},{t:F}=o.useLocale(),Q={component:()=>Promise.resolve().then(()=>require("../../card-C9ua0f7r.cjs")),groupName:F("layout"),icon:"icon--epic--wysiwyg-rounded",sort:700,defaultSchema:{label:F("cardLayout"),type:"card",multiple:!1,children:[],field:"input",componentProps:{}},config:{attribute:[{label:F("title"),type:"input",field:"label"},{label:F("fieldName"),type:"input",field:"field"},{label:"是否根据数据自动复制模版",type:"radio",field:"multiple",componentProps:{clearable:!0,radioButton:!0,options:[{label:"是",value:!0},{label:"否",value:!1}]}},{label:F("shadowTiming"),type:"select",componentProps:{options:[{label:"always",value:"always"},{label:"hover",value:"hover"},{label:"never",value:"never"}],placeholder:F("pleaseSelect"),clearable:!0},field:"componentProps.shadow"}]}},{t:x}=o.useLocale(),X={component:()=>Promise.resolve().then(()=>require("../../row-CAcx39Av.cjs")),groupName:x("layout"),icon:"icon--epic--width-normal-outline",sort:800,defaultSchema:{label:x("gridLayout"),type:"row",children:[{type:"col",children:[],componentProps:{span:12}},{type:"col",children:[],componentProps:{span:12}}]},editConstraints:{childImmovable:!0},config:{attribute:[{label:x("verticalAlignment"),type:"select",componentProps:{style:{width:"100%"},options:[{label:"top",value:"top"},{label:"middle",value:"middle"},{label:"bottom",value:"bottom"}],placeholder:x("pleaseSelect")},field:"componentProps.align"},{label:x("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:x("pleaseSelect")},field:"componentProps.justify"},{label:x("gridSpacing"),type:"number",field:"componentProps.gutter",componentProps:{placeholder:x("pleaseEnter")}},{label:x("gridWidth"),type:"EColEditor",field:"children"}]}},{t:D}=o.useLocale(),Z={component:()=>Promise.resolve().then(()=>require("../../col-B1GUMkMK.cjs")),defaultSchema:{label:D("gridLayout")+"-"+D("column"),type:"col",children:[],componentProps:{span:6}},config:{attribute:[{label:"占位格数",type:"number",field:"componentProps.span"}]}},{t}=o.useLocale(),ee={component:()=>Promise.resolve().then(()=>require("../../select-BgVmNynq.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:n})=>{e?n.componentProps.defaultValue=[]:n.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:u}=o.useLocale(),le={component:()=>Promise.resolve().then(()=>require("../../radio-_GXvcBNP.cjs")),groupName:u("form"),icon:"icon--epic--radio-button-checked-outline",sort:850,defaultSchema:{label:u("radio"),type:"radio",field:"radio",input:!0,componentProps:{options:[{label:u("option1"),value:u("option1")},{label:u("option2"),value:u("option2")}],size:"default"}},config:{attribute:[{label:u("fieldName"),type:"input",field:"field"},{label:u("title"),type:"input",field:"label"},{label:u("defaultValue"),type:"radio",field:"componentProps.defaultValue"},{label:u("size"),type:"select",componentProps:{placeholder:u("pleaseSelect"),clearable:!0,options:[{label:u("large"),value:"large"},{label:u("medium"),value:"default"},{label:u("small"),value:"small"}]},field:"componentProps.size"},{label:u("buttonMode"),type:"switch",field:"componentProps.radioButton"},{label:u("optionTextColor"),type:"color-picker",layout:"horizontal",field:"componentProps.textColor",show:({values:e})=>e.componentProps.radioButton,describe:u("effectiveInButtonMode")},{label:u("optionButtonColor"),type:"color-picker",layout:"horizontal",field:"componentProps.fill",show:({values:e})=>e.componentProps.radioButton,describe:u("effectiveInButtonMode")},{label:u("optionManagement"),type:"EOptionsEditor",layout:"vertical",field:"componentProps.options"},{label:u("formValidation"),type:"ERuleEditor",layout:"vertical",field:"rules",describe:u("validationRuleRequiresForm")},{label:u("dataSource"),type:"EDataSource",layout:"vertical",field:"componentProps.dataSource",describe:u("dataSourceConfig")}],event:[{type:"change",describe:u("onValueChange")}]}},{t:r}=o.useLocale(),te={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}=o.useLocale(),oe={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:n,componentAttributes:y})=>{const I=y.value.findIndex(q=>q.field==="componentProps.max"),C=y.value[I];C.componentProps={min:e},(n.componentProps.max??0)<e&&(n.componentProps.max=e)}},{label:c("maxValue"),type:"number",field:"componentProps.max",componentProps:{placeholder:c("pleaseEnter")},onChange:({value:e,values:n,componentAttributes:y})=>{const I=y.value.findIndex(q=>q.field==="componentProps.min"),C=y.value[I];C.componentProps={max:e},(n.componentProps.min??0)>e&&(n.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:n})=>{e&&(n.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:h}=o.useLocale(),ae={component:async()=>(await import("element-plus")).ElColorPicker,groupName:h("form"),icon:"icon--epic--palette-outline",sort:950,defaultSchema:{label:h("colorPicker"),type:"color-picker",field:"color-picker",input:!0},config:{attribute:[{label:h("fieldName"),type:"input",field:"field"},{label:h("title"),type:"input",field:"label"},{label:h("defaultValue"),type:"color-picker",field:"componentProps.defaultValue"},{label:h("size"),type:"select",componentProps:{placeholder:h("pleaseSelect"),clearable:!0,options:[{label:h("large"),value:"large"},{label:h("medium"),value:"default"},{label:h("small"),value:"small"}]},field:"componentProps.size"},{label:h("format"),type:"select",componentProps:{placeholder:h("pleaseSelect"),clearable:!0,options:[{label:"hsl",value:"hsl"},{label:"hsv",value:"hsv"},{label:"hex",value:"hex"},{label:"rgb",value:"rgb"}]},field:"componentProps.colorFormat"},{label:h("alpha"),type:"switch",field:"componentProps.showAlpha"},{label:h("formValidation"),type:"ERuleEditor",layout:"vertical",field:"rules",describe:h("validationRuleRequiresForm")}],event:[{type:"change",describe:h("onValueChange")}],action:[]}},{t:m}=o.useLocale(),ne={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(()=>Y(e))}},{label:m("offValue"),type:"input",field:"componentProps.inactiveValue",componentProps:{placeholder:m("pleaseEnter")},onChange(e){setTimeout(()=>Y(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 Y(e){var y;let n=((y=e.values.componentProps)==null?void 0:y.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=n:e.values.componentProps={defaultValue:n}}const{t:l}=o.useLocale(),pe={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:n})=>{e?n.componentProps.defaultValue=[]:n.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")}]}};o.useLocale();const ie={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:[]}};o.useLocale();const re={component:()=>Promise.resolve().then(()=>require("../../collapseItem-CAGqWjGg.cjs")),defaultSchema:{label:"折叠项",type:"collapse-item",children:[]},config:{attribute:[]}},{t:a}=o.useLocale(),ce={component:async()=>(await import("element-plus")).ElDatePicker,groupName:a("form"),icon:"icon--epic--calendar-month-outline-rounded",sort:910,defaultSchema:{label:a("datePicker"),type:"date",field:"date",input:!0,componentProps:{type:"date",valueFormat:"YYYY-MM-DD",format:"YYYY-MM-DD",placeholder:a("pleaseSelect"),startPlaceholder:a("pleaseSelect"),endPlaceholder:a("pleaseSelect")}},config:{attribute:[{label:a("fieldName"),type:"input",field:"field"},{label:a("title"),type:"input",field:"label"},{label:a("defaultValue"),type:"date",field:"componentProps.defaultValue"},{label:a("dateType"),type:"select",field:"componentProps.type",componentProps:{options:[{label:a("date"),value:"date"},{label:a("week"),value:"week"},{label:a("month"),value:"month"},{label:a("year"),value:"year"},{label:a("time"),value:"datetime"},{label:a("timeRange"),value:"datetimerange"},{label:a("dateRange"),value:"daterange"},{label:a("monthRange"),value:"monthrange"},{label:a("multipleDates"),value:"dates"}]},onChange({values:e,value:n}){e.componentProps.defaultValue=null,["date","daterange","dates"].includes(n)?(e.componentProps.format="YYYY-MM-DD",e.componentProps.valueFormat="YYYY-MM-DD"):["week"].includes(n)?(e.componentProps.format="ww [周]",e.componentProps.valueFormat="YYYY-MM-DD"):["month","monthrange"].includes(n)?(e.componentProps.format="YYYY-MM",e.componentProps.valueFormat="YYYY-MM"):["datetime","datetimerange"].includes(n)?(e.componentProps.format="YYYY-MM-DD HH:mm:ss",e.componentProps.valueFormat="YYYY-MM-DD HH:mm:ss"):["year"].includes(n)&&(e.componentProps.format="YYYY",e.componentProps.valueFormat="YYYY")}},{label:a("startPlaceholder"),type:"input",field:"componentProps.startPlaceholder",show({values:e}){return["datetimerange","daterange","monthrange"].includes(e.componentProps.type)}},{label:a("endPlaceholder"),type:"input",field:"componentProps.endPlaceholder",show({values:e}){return["datetimerange","daterange","monthrange"].includes(e.componentProps.type)}},{label:a("placeholder"),type:"input",field:"componentProps.placeholder",show({values:e}){return!["datetimerange","daterange","monthrange"].includes(e.componentProps.type)}},{label:a("size"),type:"select",defaultValue:"default",componentProps:{placeholder:a("pleaseSelect"),clearable:!0,options:[{label:a("large"),value:"large"},{label:a("medium"),value:"default"},{label:a("small"),value:"small"}]},field:"componentProps.size"},{label:a("editable"),type:"switch",field:"componentProps.editable"},{label:a("displayFormat"),type:"input",field:"componentProps.format"},{label:a("dataFormat"),type:"input",field:"componentProps.valueFormat"},{label:a("separator"),type:"input",field:"componentProps.rangeSeparator",componentProps:{placeholder:a("pleaseEnter")},show({values:e}){return["datetimerange","daterange","monthrange"].includes(e.componentProps.type)}},{label:a("clearable"),type:"switch",field:"componentProps.clearable"},{label:a("formValidation"),type:"ERuleEditor",layout:"vertical",field:"rules",describe:a("validationRuleRequiresForm")}],event:[{type:"change",describe:a("onValueChange")}]}},{t:w}=o.useLocale(),se={component:()=>Promise.resolve().then(()=>require("../../uploadFile-CTDuT_4r.cjs")),groupName:w("form"),icon:"icon--epic--upload-rounded",sort:920,defaultSchema:{label:w("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: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:S}=o.useLocale(),de={component:()=>Promise.resolve().then(()=>require("../../uploadImage-0mGONFA8.cjs")),groupName:S("form"),icon:"icon--epic--imagesmode-outline-rounded",sort:920,defaultSchema:{label:S("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:S("fieldName"),type:"input",field:"field"},{label:S("title"),type:"input",field:"label"},{label:S("requestUrl"),type:"input",field:"componentProps.action"},{label:S("uploadFileField"),type:"input",field:"componentProps.name"},{label:S("multiples"),type:"switch",field:"componentProps.multiple"},{label:S("showFileList"),type:"switch",field:"componentProps.showFileList"},{label:S("dragUpload"),type:"switch",field:"componentProps.drag"},{label:S("maxUploadCount"),type:"number",field:"componentProps.limit",componentProps:{min:0,placeholder:S("pleaseEnter")}},{label:S("formValidation"),type:"ERuleEditor",layout:"vertical",field:"rules",describe:S("validationRuleRequiresForm"),componentProps:{ruleType:"array"}}]},bindModel:"modelValue"},{t:ue}=o.useLocale(),me={component:()=>Promise.resolve().then(()=>require("../../modal-DCBqsiP2.cjs")),defaultSchema:{label:"模态框",type:"modal",children:[]},config:{attribute:[{label:ue("title"),type:"input",field:"title"}]}},{t:R}=o.useLocale(),be={component:async()=>await Promise.resolve().then(()=>require("../../sign-BWCF3Rru.cjs")),icon:"icon--epic--insert-text-outline-rounded",groupName:R("form"),sort:705,defaultSchema:{label:R("signaturePad"),type:"sign",field:"sign",input:!0,componentProps:{placeholder:R("pleaseEnter"),lineWidth:4,type:"sign",style:{}}},config:{attribute:[{label:R("fieldName"),type:"input",field:"field"},{label:R("title"),type:"input",field:"label"},{label:R("lineWidth")+"(px)",type:"input",componentProps:{placeholder:R("pleaseSelect"),clearable:!0},field:"componentProps.lineWidth"},{label:R("formValidation"),type:"ERuleEditor",layout:"vertical",field:"rules",describe:R("validationRuleRequiresForm")}]}};o.useLocale();const fe={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:P}=o.useLocale(),ye={component:async()=>await Promise.resolve().then(()=>require("../../text-B92ioaoV.cjs")),groupName:P("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:P("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:P("labelPosition"),type:"radio",field:"position",componentProps:{clearable:!1,radioButton:!0,options:[{label:P("leftAlign"),value:"left"},{label:P("centerAlign"),value:"center"},{label:P("rightAlign"),value:"right"}]}},{label:P("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:P("onInput")},{type:"change",describe:P("onChange")},{type:"focus",describe:P("onFocus")},{type:"blur",describe:P("onBlur")},{type:"clear",describe:P("onClear")}],action:[{type:"focus",describe:P("focusInput")},{type:"blur",describe:P("blurInput")},{type:"clear",describe:P("clearInput")},{type:"select",describe:P("selectInputText")}]}};o.useLocale();const he={component:()=>Promise.resolve().then(()=>require("../../cell-AML-qIH9.cjs")),groupName:"",defaultSchema:{label:"单元格",type:"table-cell",children:[]},editConstraints:{childImmovable:!1},config:{attribute:[]}},{t:N}=o.useLocale(),Pe={component:()=>Promise.resolve().then(()=>require("../../tabs-5lcSnurM.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")}]}};o.useLocale();const ve={component:()=>Promise.resolve().then(()=>require("../../tabPanel-CXZYMEwi.cjs")),defaultSchema:{label:"标签",type:"tab-panel",children:[],componentProps:{span:6}},config:{attribute:[]}},{t:L}=o.useLocale(),ge={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: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")}}]}},{t:k}=o.useLocale(),we={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:k("verticalAlignment"),type:"select",componentProps:{style:{width:"100%"},options:[{label:"top",value:"top"},{label:"middle",value:"middle"},{label:"bottom",value:"bottom"}],placeholder:k("pleaseSelect")},field:"componentProps.align"},{label:k("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:k("pleaseSelect")},field:"componentProps.justify"},{label:k("gridSpacing"),type:"number",field:"componentProps.gutter",componentProps:{placeholder:k("pleaseEnter")}}]}};o.useLocale();const Se={component:()=>Promise.resolve().then(()=>require("../../ETd-BCM7zA8V.cjs")),icon:"icon--epic--width-normal-outline",sort:10086,defaultSchema:{label:"自定义表格-单元格",type:"eTd"},config:{attribute:[]}},{t:b}=o.useLocale(),Ee={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:Ve}=o.useLocale(),Te={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:Ve("fieldName"),type:"input",field:"field"},{label:"默认页面链接",type:"input",field:"componentProps.url"}]}},{t:g}=o.useLocale(),Ce={component:async()=>await Promise.resolve().then(()=>require("../../selectPage-DZQ1Sbs4.cjs")),icon:"icon--epic--select",groupName:"表单",sort:1888,defaultSchema:{label:"分页下拉框",type:"selectpage",field:"selectpage",input:!0,componentProps:{placeholder:g("pleaseEnter"),lineWidth:4,type:"selectPage",style:{},pageKey:"pageNum",pageTotalKey:"total",searchKey:"keywords"}},config:{attribute:[{label:g("fieldName"),type:"input",field:"field"},{label:g("title"),type:"input",field:"label"},{label:g("placeholder"),type:"input",field:"componentProps.placeholder"},{label:g("size"),type:"select",componentProps:{placeholder:g("pleaseSelect"),clearable:!0,options:[{label:g("large"),value:"large"},{label:g("medium"),value:"default"},{label:g("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:g("configureOptions")},{label:g("dataSource"),type:"EDataSource",layout:"vertical",field:"componentProps.dataSource",describe:g("dataSourceConfig")},{label:g("formValidation"),type:"ERuleEditor",layout:"vertical",field:"rules",describe:g("validationRuleRequiresForm")}],event:[{type:"change",describe:g("onValueChange")}]}},{t:V}=o.useLocale(),xe={component:()=>Promise.resolve().then(()=>require("../../ocrUpload-BoJVjq3M.cjs")),groupName:"业务组件",icon:"icon--epic--upload-rounded",sort:920,defaultSchema:{label:"OCR上传",type:"ocr-upload",field:"ocrUpload",input:!0,componentProps:{action:"https://ess-ds.com/prod-api/center-file/file/upload",callBackUrl:"https://ess-ds.com/prod-api/center-file/file/ocr-callback",callBackMethod:"POST",name:"file",callBackField:"file",showFileList:!0,validateParams:[{label:"校验参数1",value:"param1"}],accept:".pdf,image/*",maxSize:10}},config:{attribute:[{label:V("fieldName"),type:"input",field:"field"},{label:V("title"),type:"input",field:"label"},{label:V("requestUrl"),type:"input",field:"componentProps.action"},{label:V("uploadFileField"),type:"input",field:"componentProps.name"},{label:"文件类型限制",type:"input",field:"componentProps.accept"},{label:"文件大小限制(MB)",type:"input",field:"componentProps.maxSize",componentProps:{placeholder:"请输入文件大小限制(MB)"}},{label:"回填接口地址",type:"input",field:"componentProps.callBackUrl"},{label:"回填接口请求方法",type:"select",field:"componentProps.callBackMethod",componentProps:{options:[{label:"POST",value:"POST"},{label:"GET",value:"GET"},{label:"PUT",value:"PUT"},{label:"DELETE",value:"DELETE"}]}},{label:"回填接口字段",type:"input",field:"componentProps.callBackField"},{label:"回填接口数据位置",type:"input",field:"componentProps.callBackDataPath",componentProps:{placeholder:"多层嵌套使用.分隔,例如:data.list"}},{label:"是否开启特定参数校验",type:"switch",field:"componentProps.validate"},{label:"校验参数",type:"EValidateParam",layout:"vertical",field:"componentProps.validateParams"},{label:V("multiples"),type:"switch",field:"componentProps.multiple"},{label:V("showFileList"),type:"switch",field:"componentProps.showFileList"},{label:V("dragUpload"),type:"switch",field:"componentProps.drag"},{label:V("maxUploadCount"),type:"number",field:"componentProps.limit",componentProps:{min:0,placeholder:V("pleaseEnter")}},{label:V("formValidation"),type:"ERuleEditor",layout:"vertical",field:"rules",describe:V("validationRuleRequiresForm"),componentProps:{ruleType:"array"}}]},bindModel:"modelValue"},{t:f}=o.useLocale(),Re={component:async()=>await Promise.resolve().then(()=>require("../../orcSelectPage-DY_4W3lm.cjs")),icon:"icon--epic--select",groupName:"业务组件",sort:1888,defaultSchema:{label:"OCR下拉",type:"ocr-select-page",field:"ocrSelectPage",input:!0,componentProps:{placeholder:f("pleaseEnter"),lineWidth:4,style:{},options:[{label:f("option1"),value:f("option1")},{label:f("option2"),value:f("option2")}],describe:"分页下拉组件,支持选中值发生变化时可触发事件,填充表单数据"}},config:{attribute:[{label:f("fieldName"),type:"input",field:"field"},{label:f("title"),type:"input",field:"label"},{label:f("placeholder"),type:"input",field:"componentProps.placeholder"},{label:f("size"),type:"select",componentProps:{placeholder:f("pleaseSelect"),clearable:!0,options:[{label:f("large"),value:"large"},{label:f("medium"),value:"default"},{label:f("small"),value:"small"}]},field:"componentProps.size"},{label:f("optionManagement"),type:"EOptionsEditor",layout:"vertical",field:"componentProps.options",describe:f("configureOptions")},{label:"填充数据源(为空则从数据源数据中获取)",layout:"vertical",type:"ESourceDataSelect",field:"componentProps.fillDataSource"},{label:"填充字段",type:"input",layout:"vertical",field:"componentProps.fillDataParams",componentProps:{placeholder:"多个字段用英文逗号隔开"}},{label:f("dataSource"),type:"EDataSource",layout:"vertical",field:"componentProps.dataSource",describe:f("dataSourceConfig")},{label:f("formValidation"),type:"ERuleEditor",layout:"vertical",field:"rules",describe:f("validationRuleRequiresForm")},{label:"描述",type:"EDescribe",layout:"vertical",field:"componentProps.describe"}],event:[{type:"change",describe:f("onValueChange")}]}};function Ie(e=A.pluginManager){e.component("FormItem",E.ElFormItem),e.component("Form",E.ElForm),e.component("RadioGroup",E.ElRadioGroup),e.component("RadioButton",E.ElRadioButton),e.component("Tabs",E.ElTabs),e.component("TabPane",E.ElTabPane),e.component("Collapse",E.ElCollapse),e.component("CollapseItem",E.ElCollapseItem),e.component("Drawer",E.ElDrawer),e.component("Dialog",E.ElDialog),e.component("ElTable",E.ElTable),e.component("ElTableColumn",E.ElTableColumn),[H,_,G,K,j,le,te,ce,ee,ne,ae,pe,oe,se,de,J,Q,X,Z,ie,re,me,be,fe,ye,he,Pe,ve,ge,we,Se,Ee,Te,Ce,xe,Re].forEach(y=>{e.registerComponent(y),e.addBaseComponentTypes(y.defaultSchema.type)}),e.setInitialized(!0)}function Fe(e){import("element-plus").then(({provideGlobalConfig:n})=>{n(e)})}exports.provideGlobalConfig=Fe;exports.setupElementPlus=Ie;
|
|
1
|
+
"use strict";var B=Object.create;var z=Object.defineProperty;var M=Object.getOwnPropertyDescriptor;var $=Object.getOwnPropertyNames;var O=Object.getPrototypeOf,U=Object.prototype.hasOwnProperty;var W=(e,n,y,I)=>{if(n&&typeof n=="object"||typeof n=="function")for(let C of $(n))!U.call(e,C)&&C!==y&&z(e,C,{get:()=>n[C],enumerable:!(I=M(n,C))||I.enumerable});return e};var T=(e,n,y)=>(y=e!=null?B(O(e)):{},W(n||!e||!e.__esModule?z(y,"default",{value:e,enumerable:!0}):y,e));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const A=require("epic-designer-gold"),o=require("../../index-BoL2PSBk.cjs"),E=require("element-plus"),{t:p}=o.useLocale(),G={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}=o.useLocale(),K={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}=o.useLocale(),j={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:d}=o.useLocale(),H={component:()=>Promise.resolve().then(()=>require("../../form-BcyswgAo.cjs")),groupName:d("form"),icon:"icon--epic--list-alt-outline-rounded",sort:600,defaultSchema:{label:d("form"),type:"form",componentProps:{name:"default",labelWidth:"100px","label-position":"left"},children:[]},config:{attribute:[{label:"Name",type:"input",field:"componentProps.name"},{label:d("labelPosition"),type:"radio",field:"componentProps.label-position",componentProps:{clearable:!0,radioButton:!0,options:[{label:d("left"),value:"left"},{label:d("right"),value:"right"},{label:d("top"),value:"top"}]}},{label:d("labelWidth"),type:"EInputSize",field:"componentProps.labelWidth"},{label:d("labelSuffix"),type:"input",field:"componentProps.labelSuffix",componentProps:{placeholder:d("pleaseEnter")}},{label:d("formSize"),type:"select",field:"componentProps.size",componentProps:{placeholder:d("pleaseSelect"),clearable:!0,options:[{label:d("large"),value:"large"},{label:d("medium"),value:"default"},{label:d("small"),value:"small"}]}},{label:d("asteriskPosition"),type:"select",field:"componentProps.require-asterisk-position",componentProps:{placeholder:d("pleaseSelect"),clearable:!0,options:[{label:d("left"),value:"left"},{label:d("right"),value:"right"}]}},{label:d("inlineValidationMessage"),type:"switch",field:"componentProps.inline-message"},{label:d("validationFeedbackIcon"),type:"switch",field:"componentProps.status-icon"},{label:d("scrollToValidationError"),type:"switch",field:"componentProps.scroll-to-error"},{label:d("inlineMode"),type:"switch",field:"componentProps.inline"}],action:[{type:"getData",describe:d("getFormData")},{type:"setData",describe:d("setFormData")},{type:"validate",describe:d("validateForm")}]}};o.useLocale();const _={component:()=>Promise.resolve().then(()=>require("../../formItem-BVnNs1Q9.cjs")),defaultSchema:{label:"表单项",type:"form-item"},config:{}},{t:v}=o.useLocale(),J={component:()=>Promise.resolve().then(()=>require("../../button-Cc4KYk3v.cjs")),groupName:v("form"),icon:"icon--epic--fit-screen-rounded",sort:1200,defaultSchema:{label:v("button"),type:"button",field:"input",input:!1},config:{attribute:[{label:v("title"),type:"input",field:"label"},{label:v("actionType"),type:"select",componentProps:{placeholder:v("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:v("actionType"),type:"select",componentProps:{placeholder:v("pleaseSelect"),clearable:!0,options:[{label:"button",value:"button"},{label:"submit",value:"submit"},{label:"reset",value:"reset"}]},field:"componentProps.native-type"},{label:v("customColor"),type:"color-picker",field:"componentProps.color",componentProps:{type:"color"}},{label:v("plainButton"),type:"switch",field:"componentProps.plain"},{label:v("roundButton"),type:"switch",field:"componentProps.round"},{label:v("circleButton"),type:"switch",field:"componentProps.circle"},{label:v("textButton"),type:"switch",field:"componentProps.text"},{label:v("loadingState"),type:"switch",field:"componentProps.loading"}],event:[{type:"click",describe:v("onClick")},{type:"dblclick",describe:v("onDoubleClick")}]}},{t:F}=o.useLocale(),Q={component:()=>Promise.resolve().then(()=>require("../../card-C9ua0f7r.cjs")),groupName:F("layout"),icon:"icon--epic--wysiwyg-rounded",sort:700,defaultSchema:{label:F("cardLayout"),type:"card",multiple:!1,children:[],field:"input",componentProps:{}},config:{attribute:[{label:F("title"),type:"input",field:"label"},{label:F("fieldName"),type:"input",field:"field"},{label:"是否根据数据自动复制模版",type:"radio",field:"multiple",componentProps:{clearable:!0,radioButton:!0,options:[{label:"是",value:!0},{label:"否",value:!1}]}},{label:F("shadowTiming"),type:"select",componentProps:{options:[{label:"always",value:"always"},{label:"hover",value:"hover"},{label:"never",value:"never"}],placeholder:F("pleaseSelect"),clearable:!0},field:"componentProps.shadow"}]}},{t:x}=o.useLocale(),X={component:()=>Promise.resolve().then(()=>require("../../row-CAcx39Av.cjs")),groupName:x("layout"),icon:"icon--epic--width-normal-outline",sort:800,defaultSchema:{label:x("gridLayout"),type:"row",children:[{type:"col",children:[],componentProps:{span:12}},{type:"col",children:[],componentProps:{span:12}}]},editConstraints:{childImmovable:!0},config:{attribute:[{label:x("verticalAlignment"),type:"select",componentProps:{style:{width:"100%"},options:[{label:"top",value:"top"},{label:"middle",value:"middle"},{label:"bottom",value:"bottom"}],placeholder:x("pleaseSelect")},field:"componentProps.align"},{label:x("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:x("pleaseSelect")},field:"componentProps.justify"},{label:x("gridSpacing"),type:"number",field:"componentProps.gutter",componentProps:{placeholder:x("pleaseEnter")}},{label:x("gridWidth"),type:"EColEditor",field:"children"}]}},{t:D}=o.useLocale(),Z={component:()=>Promise.resolve().then(()=>require("../../col-B1GUMkMK.cjs")),defaultSchema:{label:D("gridLayout")+"-"+D("column"),type:"col",children:[],componentProps:{span:6}},config:{attribute:[{label:"占位格数",type:"number",field:"componentProps.span"}]}},{t}=o.useLocale(),ee={component:()=>Promise.resolve().then(()=>require("../../select-BgVmNynq.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:n})=>{e?n.componentProps.defaultValue=[]:n.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:u}=o.useLocale(),le={component:()=>Promise.resolve().then(()=>require("../../radio-_GXvcBNP.cjs")),groupName:u("form"),icon:"icon--epic--radio-button-checked-outline",sort:850,defaultSchema:{label:u("radio"),type:"radio",field:"radio",input:!0,componentProps:{options:[{label:u("option1"),value:u("option1")},{label:u("option2"),value:u("option2")}],size:"default"}},config:{attribute:[{label:u("fieldName"),type:"input",field:"field"},{label:u("title"),type:"input",field:"label"},{label:u("defaultValue"),type:"radio",field:"componentProps.defaultValue"},{label:u("size"),type:"select",componentProps:{placeholder:u("pleaseSelect"),clearable:!0,options:[{label:u("large"),value:"large"},{label:u("medium"),value:"default"},{label:u("small"),value:"small"}]},field:"componentProps.size"},{label:u("buttonMode"),type:"switch",field:"componentProps.radioButton"},{label:u("optionTextColor"),type:"color-picker",layout:"horizontal",field:"componentProps.textColor",show:({values:e})=>e.componentProps.radioButton,describe:u("effectiveInButtonMode")},{label:u("optionButtonColor"),type:"color-picker",layout:"horizontal",field:"componentProps.fill",show:({values:e})=>e.componentProps.radioButton,describe:u("effectiveInButtonMode")},{label:u("optionManagement"),type:"EOptionsEditor",layout:"vertical",field:"componentProps.options"},{label:u("formValidation"),type:"ERuleEditor",layout:"vertical",field:"rules",describe:u("validationRuleRequiresForm")},{label:u("dataSource"),type:"EDataSource",layout:"vertical",field:"componentProps.dataSource",describe:u("dataSourceConfig")}],event:[{type:"change",describe:u("onValueChange")}]}},{t:r}=o.useLocale(),te={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}=o.useLocale(),oe={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:n,componentAttributes:y})=>{const I=y.value.findIndex(q=>q.field==="componentProps.max"),C=y.value[I];C.componentProps={min:e},(n.componentProps.max??0)<e&&(n.componentProps.max=e)}},{label:c("maxValue"),type:"number",field:"componentProps.max",componentProps:{placeholder:c("pleaseEnter")},onChange:({value:e,values:n,componentAttributes:y})=>{const I=y.value.findIndex(q=>q.field==="componentProps.min"),C=y.value[I];C.componentProps={max:e},(n.componentProps.min??0)>e&&(n.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:n})=>{e&&(n.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:h}=o.useLocale(),ae={component:async()=>(await import("element-plus")).ElColorPicker,groupName:h("form"),icon:"icon--epic--palette-outline",sort:950,defaultSchema:{label:h("colorPicker"),type:"color-picker",field:"color-picker",input:!0},config:{attribute:[{label:h("fieldName"),type:"input",field:"field"},{label:h("title"),type:"input",field:"label"},{label:h("defaultValue"),type:"color-picker",field:"componentProps.defaultValue"},{label:h("size"),type:"select",componentProps:{placeholder:h("pleaseSelect"),clearable:!0,options:[{label:h("large"),value:"large"},{label:h("medium"),value:"default"},{label:h("small"),value:"small"}]},field:"componentProps.size"},{label:h("format"),type:"select",componentProps:{placeholder:h("pleaseSelect"),clearable:!0,options:[{label:"hsl",value:"hsl"},{label:"hsv",value:"hsv"},{label:"hex",value:"hex"},{label:"rgb",value:"rgb"}]},field:"componentProps.colorFormat"},{label:h("alpha"),type:"switch",field:"componentProps.showAlpha"},{label:h("formValidation"),type:"ERuleEditor",layout:"vertical",field:"rules",describe:h("validationRuleRequiresForm")}],event:[{type:"change",describe:h("onValueChange")}],action:[]}},{t:m}=o.useLocale(),ne={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(()=>Y(e))}},{label:m("offValue"),type:"input",field:"componentProps.inactiveValue",componentProps:{placeholder:m("pleaseEnter")},onChange(e){setTimeout(()=>Y(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 Y(e){var y;let n=((y=e.values.componentProps)==null?void 0:y.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=n:e.values.componentProps={defaultValue:n}}const{t:l}=o.useLocale(),pe={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:n})=>{e?n.componentProps.defaultValue=[]:n.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")}]}};o.useLocale();const ie={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:[]}};o.useLocale();const re={component:()=>Promise.resolve().then(()=>require("../../collapseItem-CAGqWjGg.cjs")),defaultSchema:{label:"折叠项",type:"collapse-item",children:[]},config:{attribute:[]}},{t:a}=o.useLocale(),ce={component:async()=>(await import("element-plus")).ElDatePicker,groupName:a("form"),icon:"icon--epic--calendar-month-outline-rounded",sort:910,defaultSchema:{label:a("datePicker"),type:"date",field:"date",input:!0,componentProps:{type:"date",valueFormat:"YYYY-MM-DD",format:"YYYY-MM-DD",placeholder:a("pleaseSelect"),startPlaceholder:a("pleaseSelect"),endPlaceholder:a("pleaseSelect")}},config:{attribute:[{label:a("fieldName"),type:"input",field:"field"},{label:a("title"),type:"input",field:"label"},{label:a("defaultValue"),type:"date",field:"componentProps.defaultValue"},{label:a("dateType"),type:"select",field:"componentProps.type",componentProps:{options:[{label:a("date"),value:"date"},{label:a("week"),value:"week"},{label:a("month"),value:"month"},{label:a("year"),value:"year"},{label:a("time"),value:"datetime"},{label:a("timeRange"),value:"datetimerange"},{label:a("dateRange"),value:"daterange"},{label:a("monthRange"),value:"monthrange"},{label:a("multipleDates"),value:"dates"}]},onChange({values:e,value:n}){e.componentProps.defaultValue=null,["date","daterange","dates"].includes(n)?(e.componentProps.format="YYYY-MM-DD",e.componentProps.valueFormat="YYYY-MM-DD"):["week"].includes(n)?(e.componentProps.format="ww [周]",e.componentProps.valueFormat="YYYY-MM-DD"):["month","monthrange"].includes(n)?(e.componentProps.format="YYYY-MM",e.componentProps.valueFormat="YYYY-MM"):["datetime","datetimerange"].includes(n)?(e.componentProps.format="YYYY-MM-DD HH:mm:ss",e.componentProps.valueFormat="YYYY-MM-DD HH:mm:ss"):["year"].includes(n)&&(e.componentProps.format="YYYY",e.componentProps.valueFormat="YYYY")}},{label:a("startPlaceholder"),type:"input",field:"componentProps.startPlaceholder",show({values:e}){return["datetimerange","daterange","monthrange"].includes(e.componentProps.type)}},{label:a("endPlaceholder"),type:"input",field:"componentProps.endPlaceholder",show({values:e}){return["datetimerange","daterange","monthrange"].includes(e.componentProps.type)}},{label:a("placeholder"),type:"input",field:"componentProps.placeholder",show({values:e}){return!["datetimerange","daterange","monthrange"].includes(e.componentProps.type)}},{label:a("size"),type:"select",defaultValue:"default",componentProps:{placeholder:a("pleaseSelect"),clearable:!0,options:[{label:a("large"),value:"large"},{label:a("medium"),value:"default"},{label:a("small"),value:"small"}]},field:"componentProps.size"},{label:a("editable"),type:"switch",field:"componentProps.editable"},{label:a("displayFormat"),type:"input",field:"componentProps.format"},{label:a("dataFormat"),type:"input",field:"componentProps.valueFormat"},{label:a("separator"),type:"input",field:"componentProps.rangeSeparator",componentProps:{placeholder:a("pleaseEnter")},show({values:e}){return["datetimerange","daterange","monthrange"].includes(e.componentProps.type)}},{label:a("clearable"),type:"switch",field:"componentProps.clearable"},{label:a("formValidation"),type:"ERuleEditor",layout:"vertical",field:"rules",describe:a("validationRuleRequiresForm")}],event:[{type:"change",describe:a("onValueChange")}]}},{t:w}=o.useLocale(),se={component:()=>Promise.resolve().then(()=>require("../../uploadFile-CTDuT_4r.cjs")),groupName:w("form"),icon:"icon--epic--upload-rounded",sort:920,defaultSchema:{label:w("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: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:S}=o.useLocale(),de={component:()=>Promise.resolve().then(()=>require("../../uploadImage-0mGONFA8.cjs")),groupName:S("form"),icon:"icon--epic--imagesmode-outline-rounded",sort:920,defaultSchema:{label:S("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:S("fieldName"),type:"input",field:"field"},{label:S("title"),type:"input",field:"label"},{label:S("requestUrl"),type:"input",field:"componentProps.action"},{label:S("uploadFileField"),type:"input",field:"componentProps.name"},{label:S("multiples"),type:"switch",field:"componentProps.multiple"},{label:S("showFileList"),type:"switch",field:"componentProps.showFileList"},{label:S("dragUpload"),type:"switch",field:"componentProps.drag"},{label:S("maxUploadCount"),type:"number",field:"componentProps.limit",componentProps:{min:0,placeholder:S("pleaseEnter")}},{label:S("formValidation"),type:"ERuleEditor",layout:"vertical",field:"rules",describe:S("validationRuleRequiresForm"),componentProps:{ruleType:"array"}}]},bindModel:"modelValue"},{t:ue}=o.useLocale(),me={component:()=>Promise.resolve().then(()=>require("../../modal-DCBqsiP2.cjs")),defaultSchema:{label:"模态框",type:"modal",children:[]},config:{attribute:[{label:ue("title"),type:"input",field:"title"}]}},{t:R}=o.useLocale(),be={component:async()=>await Promise.resolve().then(()=>require("../../sign-BWCF3Rru.cjs")),icon:"icon--epic--insert-text-outline-rounded",groupName:R("form"),sort:705,defaultSchema:{label:R("signaturePad"),type:"sign",field:"sign",input:!0,componentProps:{placeholder:R("pleaseEnter"),lineWidth:4,type:"sign",style:{}}},config:{attribute:[{label:R("fieldName"),type:"input",field:"field"},{label:R("title"),type:"input",field:"label"},{label:R("lineWidth")+"(px)",type:"input",componentProps:{placeholder:R("pleaseSelect"),clearable:!0},field:"componentProps.lineWidth"},{label:R("formValidation"),type:"ERuleEditor",layout:"vertical",field:"rules",describe:R("validationRuleRequiresForm")}]}};o.useLocale();const fe={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:P}=o.useLocale(),ye={component:async()=>await Promise.resolve().then(()=>require("../../text-B92ioaoV.cjs")),groupName:P("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:P("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:P("labelPosition"),type:"radio",field:"position",componentProps:{clearable:!1,radioButton:!0,options:[{label:P("leftAlign"),value:"left"},{label:P("centerAlign"),value:"center"},{label:P("rightAlign"),value:"right"}]}},{label:P("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:P("onInput")},{type:"change",describe:P("onChange")},{type:"focus",describe:P("onFocus")},{type:"blur",describe:P("onBlur")},{type:"clear",describe:P("onClear")}],action:[{type:"focus",describe:P("focusInput")},{type:"blur",describe:P("blurInput")},{type:"clear",describe:P("clearInput")},{type:"select",describe:P("selectInputText")}]}};o.useLocale();const he={component:()=>Promise.resolve().then(()=>require("../../cell-AML-qIH9.cjs")),groupName:"",defaultSchema:{label:"单元格",type:"table-cell",children:[]},editConstraints:{childImmovable:!1},config:{attribute:[]}},{t:N}=o.useLocale(),Pe={component:()=>Promise.resolve().then(()=>require("../../tabs-5lcSnurM.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")}]}};o.useLocale();const ve={component:()=>Promise.resolve().then(()=>require("../../tabPanel-CXZYMEwi.cjs")),defaultSchema:{label:"标签",type:"tab-panel",children:[],componentProps:{span:6}},config:{attribute:[]}},{t:L}=o.useLocale(),ge={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: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")}}]}},{t:k}=o.useLocale(),we={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:k("verticalAlignment"),type:"select",componentProps:{style:{width:"100%"},options:[{label:"top",value:"top"},{label:"middle",value:"middle"},{label:"bottom",value:"bottom"}],placeholder:k("pleaseSelect")},field:"componentProps.align"},{label:k("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:k("pleaseSelect")},field:"componentProps.justify"},{label:k("gridSpacing"),type:"number",field:"componentProps.gutter",componentProps:{placeholder:k("pleaseEnter")}}]}};o.useLocale();const Se={component:()=>Promise.resolve().then(()=>require("../../ETd-BCM7zA8V.cjs")),icon:"icon--epic--width-normal-outline",sort:10086,defaultSchema:{label:"自定义表格-单元格",type:"eTd"},config:{attribute:[]}},{t:b}=o.useLocale(),Ee={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:Ve}=o.useLocale(),Te={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:Ve("fieldName"),type:"input",field:"field"},{label:"默认页面链接",type:"input",field:"componentProps.url"}]}},{t:g}=o.useLocale(),Ce={component:async()=>await Promise.resolve().then(()=>require("../../selectPage-DZQ1Sbs4.cjs")),icon:"icon--epic--select",groupName:"表单",sort:1888,defaultSchema:{label:"分页下拉框",type:"selectpage",field:"selectpage",input:!0,componentProps:{placeholder:g("pleaseEnter"),lineWidth:4,type:"selectPage",style:{},pageKey:"pageNum",pageTotalKey:"total",searchKey:"keywords"}},config:{attribute:[{label:g("fieldName"),type:"input",field:"field"},{label:g("title"),type:"input",field:"label"},{label:g("placeholder"),type:"input",field:"componentProps.placeholder"},{label:g("size"),type:"select",componentProps:{placeholder:g("pleaseSelect"),clearable:!0,options:[{label:g("large"),value:"large"},{label:g("medium"),value:"default"},{label:g("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:g("configureOptions")},{label:g("dataSource"),type:"EDataSource",layout:"vertical",field:"componentProps.dataSource",describe:g("dataSourceConfig")},{label:g("formValidation"),type:"ERuleEditor",layout:"vertical",field:"rules",describe:g("validationRuleRequiresForm")}],event:[{type:"change",describe:g("onValueChange")}]}},{t:V}=o.useLocale(),xe={component:()=>Promise.resolve().then(()=>require("../../ocrUpload-CBzBe8ro.cjs")),groupName:"业务组件",icon:"icon--epic--upload-rounded",sort:920,defaultSchema:{label:"OCR上传",type:"ocr-upload",field:"ocrUpload",input:!0,componentProps:{action:"https://ess-ds.com/prod-api/center-file/file/upload",callBackUrl:"https://ess-ds.com/prod-api/center-file/file/ocr-callback",callBackMethod:"POST",name:"file",callBackField:"file",showFileList:!0,validateParams:[{label:"校验参数1",value:"param1"}],accept:".pdf,image/*",maxSize:10}},config:{attribute:[{label:V("fieldName"),type:"input",field:"field"},{label:V("title"),type:"input",field:"label"},{label:V("requestUrl"),type:"input",field:"componentProps.action"},{label:V("uploadFileField"),type:"input",field:"componentProps.name"},{label:"文件类型限制",type:"input",field:"componentProps.accept"},{label:"文件大小限制(MB)",type:"input",field:"componentProps.maxSize",componentProps:{placeholder:"请输入文件大小限制(MB)"}},{label:"回填接口地址",type:"input",field:"componentProps.callBackUrl"},{label:"回填接口请求方法",type:"select",field:"componentProps.callBackMethod",componentProps:{options:[{label:"POST",value:"POST"},{label:"GET",value:"GET"},{label:"PUT",value:"PUT"},{label:"DELETE",value:"DELETE"}]}},{label:"回填接口字段",type:"input",field:"componentProps.callBackField"},{label:"回填接口数据位置",type:"input",field:"componentProps.callBackDataPath",componentProps:{placeholder:"多层嵌套使用.分隔,例如:data.list"}},{label:"是否开启特定参数校验",type:"switch",field:"componentProps.validate"},{label:"校验参数",type:"EValidateParam",layout:"vertical",field:"componentProps.validateParams"},{label:V("multiples"),type:"switch",field:"componentProps.multiple"},{label:V("showFileList"),type:"switch",field:"componentProps.showFileList"},{label:V("dragUpload"),type:"switch",field:"componentProps.drag"},{label:V("maxUploadCount"),type:"number",field:"componentProps.limit",componentProps:{min:0,placeholder:V("pleaseEnter")}},{label:V("formValidation"),type:"ERuleEditor",layout:"vertical",field:"rules",describe:V("validationRuleRequiresForm"),componentProps:{ruleType:"array"}}]},bindModel:"modelValue"},{t:f}=o.useLocale(),Re={component:async()=>await Promise.resolve().then(()=>require("../../orcSelectPage-DY_4W3lm.cjs")),icon:"icon--epic--select",groupName:"业务组件",sort:1888,defaultSchema:{label:"OCR下拉",type:"ocr-select-page",field:"ocrSelectPage",input:!0,componentProps:{placeholder:f("pleaseEnter"),lineWidth:4,style:{},options:[{label:f("option1"),value:f("option1")},{label:f("option2"),value:f("option2")}],describe:"分页下拉组件,支持选中值发生变化时可触发事件,填充表单数据"}},config:{attribute:[{label:f("fieldName"),type:"input",field:"field"},{label:f("title"),type:"input",field:"label"},{label:f("placeholder"),type:"input",field:"componentProps.placeholder"},{label:f("size"),type:"select",componentProps:{placeholder:f("pleaseSelect"),clearable:!0,options:[{label:f("large"),value:"large"},{label:f("medium"),value:"default"},{label:f("small"),value:"small"}]},field:"componentProps.size"},{label:f("optionManagement"),type:"EOptionsEditor",layout:"vertical",field:"componentProps.options",describe:f("configureOptions")},{label:"填充数据源(为空则从数据源数据中获取)",layout:"vertical",type:"ESourceDataSelect",field:"componentProps.fillDataSource"},{label:"填充字段",type:"input",layout:"vertical",field:"componentProps.fillDataParams",componentProps:{placeholder:"多个字段用英文逗号隔开"}},{label:f("dataSource"),type:"EDataSource",layout:"vertical",field:"componentProps.dataSource",describe:f("dataSourceConfig")},{label:f("formValidation"),type:"ERuleEditor",layout:"vertical",field:"rules",describe:f("validationRuleRequiresForm")},{label:"描述",type:"EDescribe",layout:"vertical",field:"componentProps.describe"}],event:[{type:"change",describe:f("onValueChange")}]}};function Ie(e=A.pluginManager){e.component("FormItem",E.ElFormItem),e.component("Form",E.ElForm),e.component("RadioGroup",E.ElRadioGroup),e.component("RadioButton",E.ElRadioButton),e.component("Tabs",E.ElTabs),e.component("TabPane",E.ElTabPane),e.component("Collapse",E.ElCollapse),e.component("CollapseItem",E.ElCollapseItem),e.component("Drawer",E.ElDrawer),e.component("Dialog",E.ElDialog),e.component("ElTable",E.ElTable),e.component("ElTableColumn",E.ElTableColumn),[H,_,G,K,j,le,te,ce,ee,ne,ae,pe,oe,se,de,J,Q,X,Z,ie,re,me,be,fe,ye,he,Pe,ve,ge,we,Se,Ee,Te,Ce,xe,Re].forEach(y=>{e.registerComponent(y),e.addBaseComponentTypes(y.defaultSchema.type)}),e.setInitialized(!0)}function Fe(e){import("element-plus").then(({provideGlobalConfig:n})=>{n(e)})}exports.provideGlobalConfig=Fe;exports.setupElementPlus=Ie;
|
|
@@ -496,7 +496,7 @@ const { t: n } = o(), j = {
|
|
|
496
496
|
]
|
|
497
497
|
}
|
|
498
498
|
}, { t: d } = o(), Q = {
|
|
499
|
-
component: () => import("../../form-
|
|
499
|
+
component: () => import("../../form-CcUK0W1z.js"),
|
|
500
500
|
groupName: d("form"),
|
|
501
501
|
icon: "icon--epic--list-alt-outline-rounded",
|
|
502
502
|
sort: 600,
|
|
@@ -3648,7 +3648,7 @@ const Te = {
|
|
|
3648
3648
|
]
|
|
3649
3649
|
}
|
|
3650
3650
|
}, { t: E } = o(), Fe = {
|
|
3651
|
-
component: () => import("../../ocrUpload-
|
|
3651
|
+
component: () => import("../../ocrUpload-DVHm3yls.js"),
|
|
3652
3652
|
groupName: "业务组件",
|
|
3653
3653
|
icon: "icon--epic--upload-rounded",
|
|
3654
3654
|
sort: 920,
|
package/package.json
CHANGED
package/dist/form-sr_OUKVG.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),p=require("element-plus"),w=require("./pluginManager-C8aQylGX.cjs"),R=require("./_plugin-vue_export-helper-NUO0U1Az.cjs"),L=require("./index-BoL2PSBk.cjs"),J={key:0,class:"form-main",style:{height:"100%"}},G={class:"save-modal-content"},K={class:"save-modal-item"},Q={class:"save-modal-item"},Z={class:"signature-container"},ee={class:"signature-controls"},te={key:0,class:"signature-preview"},ne=["src"],oe=e.defineComponent({__name:"form",props:{componentSchema:{type:Object,require:!0,default:()=>({})}},setup(j,{expose:q}){var P,T;const u=j,W=e.inject("pageManager",{}),c=e.ref(null),x=e.inject("forms",{}),A=e.ref(!0),s=e.reactive({});W.addFormData(s,(T=(P=u.componentSchema)==null?void 0:P.componentProps)==null?void 0:T.name),e.provide("formData",s);const F=w.pluginManager.getComponent("modal"),O=w.pluginManager.getComponent("input"),S=w.pluginManager.getComponent("button"),g=e.ref(!1),d=e.ref(""),i=e.ref("");let m=null,f=null;const r=e.ref(null),a=e.ref(null),h=e.ref(!1),y=e.ref(0),C=e.ref(0);function X(){if(!r.value)return;const t=r.value,n=t.parentElement;if(!n)return;const l=n.getBoundingClientRect().width-20,v=400;t.width=l,t.height=v,a.value=t.getContext("2d"),a.value&&(a.value.lineWidth=4,a.value.lineCap="round",a.value.lineJoin="round",a.value.strokeStyle="#000000",a.value.fillStyle="#ffffff",a.value.fillRect(0,0,t.width,t.height))}function b(t){if(h.value=!0,!r.value)return;const n=r.value.getBoundingClientRect(),o=t.type.includes("mouse")?t.offsetX:t.touches[0].clientX-n.left,l=t.type.includes("mouse")?t.offsetY:t.touches[0].clientY-n.top;y.value=o,C.value=l}function V(t){if(!h.value||!a.value||!r.value)return;const n=r.value.getBoundingClientRect(),o=t.type.includes("mouse")?t.offsetX:t.touches[0].clientX-n.left,l=t.type.includes("mouse")?t.offsetY:t.touches[0].clientY-n.top;a.value.beginPath(),a.value.moveTo(y.value,C.value),a.value.lineTo(o,l),a.value.stroke(),y.value=o,C.value=l}function k(){h.value=!1}function B(){!a.value||!r.value||(a.value.fillStyle="#ffffff",a.value.fillRect(0,0,r.value.width,r.value.height),i.value="")}async function Y(){if(r.value)try{const t=r.value,n=await new Promise(v=>{t.toBlob(H=>{v(H||new Blob)},"image/png")});if(!n){p.ElMessage.error("签字转换失败");return}const o=new FormData;o.append("file",n,"signature.png");const l=await R.axios.post("https://ess-ds.com/prod-api/center-file/file/upload",o,{headers:{Authorization:"Bearer "+L.api.get("Admin-Token"),"Content-Type":"multipart/form-data"}});l.data&&l.data.code===200&&l.data.data?(i.value=l.data.data.url,p.ElMessage.success("签字保存成功")):p.ElMessage.error("签字上传失败,请重试")}catch(t){console.error("上传签字失败:",t),p.ElMessage.error("网络错误,签字上传失败")}}function D(){g.value=!1,d.value="",i.value="",B()}function E(){f&&(f(new Error("用户取消了保存确认")),m=null,f=null),setTimeout(()=>{D()},300)}function z(){if(d.value.trim()!=="我已明确当前修改"){alert("请输入准确的确认文字");return}if(!i.value){alert("请签字确认");return}s.saveDescription=d.value,s.signatureData=i.value,m&&(m(s),m=null,f=null),D()}function M(t){const n=[t];if(t.children&&Array.isArray(t.children))for(const o of t.children)n.push(...M(o));return n}function _(){const n=(u.componentSchema?M(u.componentSchema):[]).find(o=>(o==null?void 0:o.type)==="ocr-upload");return n&&s[n.field+"-orcWarningInfo"]&&n.componentProps.hasAlreadyOcr?new Promise((o,l)=>{g.value=!0,m=o,f=l,e.nextTick(()=>{X()})}):s}function N(t){Object.assign(s,t)}function I(){var t;return(t=c.value)==null?void 0:t.validate()}e.onMounted(async()=>{var t,n,o,l;if(((t=u.componentSchema)==null?void 0:t.type)==="form"&&x.value&&c.value){const v=((o=(n=u.componentSchema)==null?void 0:n.componentProps)==null?void 0:o.name)??((l=u.componentSchema)==null?void 0:l.name)??"default";return x.value[v]=c.value,c.value.getData=_,c.value.setData=N,!1}});const U=e.computed(()=>{const t=u.componentSchema.componentProps;let n=t.labelCol,o=t.wrapperCol;return t.labelLayout==="fixed"&&(n={style:`width:${typeof t.labelWidth=="number"?t.labelWidth+"px":t.labelWidth}`},o={style:"width:auto;flex:1"}),{...t,labelCol:n,wrapperCol:o}}),$=e.computed(()=>u.componentSchema.children??[]);return q({form:c,getData:_,setData:N,validate:I}),(t,n)=>A.value?(e.openBlock(),e.createElementBlock("div",J,[e.createVNode(e.unref(p.ElForm),e.mergeProps({ref_key:"form",ref:c,model:s},U.value,{style:{height:"100%"}}),{default:e.withCtx(()=>[e.renderSlot(t.$slots,"edit-node",{},()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList($.value,o=>e.renderSlot(t.$slots,"node",{componentSchema:o},void 0,!0)),256))],!0)]),_:3},16,["model"]),(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(F)),{style:{height:"calc(100vh - 240px)"},modelValue:g.value,"onUpdate:modelValue":n[1]||(n[1]=o=>g.value=o),title:"保存确认",onClose:E,onCancel:E,onOk:z,okText:"确认保存",cancelText:"取消"},{default:e.withCtx(()=>[e.createElementVNode("div",G,[e.createElementVNode("div",K,[n[2]||(n[2]=e.createElementVNode("label",{class:"save-modal-label"},"请输入以下文字确认:",-1)),n[3]||(n[3]=e.createElementVNode("div",{class:"confirm-text"},"我已明确当前修改",-1)),(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(O)),{modelValue:d.value,"onUpdate:modelValue":n[0]||(n[0]=o=>d.value=o),placeholder:"请输入上方文字确认",type:"text",style:{"margin-top":"8px"}},null,8,["modelValue"]))]),e.createElementVNode("div",Q,[n[6]||(n[6]=e.createElementVNode("label",{class:"save-modal-label"},"请签字确认:",-1)),e.createElementVNode("div",Z,[e.createElementVNode("canvas",{ref_key:"signatureCanvas",ref:r,onMousedown:b,onMousemove:V,onMouseup:k,onMouseleave:k,onTouchstart:b,onTouchmove:V,onTouchend:k,class:"signature-canvas"},null,544),e.createElementVNode("div",ee,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(S)),{type:"primary",size:"small",onClick:B},{default:e.withCtx(()=>[...n[4]||(n[4]=[e.createTextVNode("清空",-1)])]),_:1})),(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(S)),{type:"primary",size:"small",onClick:Y},{default:e.withCtx(()=>[...n[5]||(n[5]=[e.createTextVNode("确认签字",-1)])]),_:1}))]),i.value?(e.openBlock(),e.createElementBlock("div",te,[e.createElementVNode("img",{src:i.value,alt:"签字预览",class:"signature-img"},null,8,ne)])):e.createCommentVNode("",!0)])])])]),_:1},40,["modelValue"]))])):e.createCommentVNode("",!0)}}),ae=R._export_sfc(oe,[["__scopeId","data-v-0a967929"]]);exports.default=ae;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("vue"),d=require("element-plus"),I=require("./index-BoL2PSBk.cjs"),{t:P}=I.useLocale(),A=o.defineComponent({props:{modelValue:{type:Array,default:()=>[]}},emits:["update:modelValue","update:ocrData"],setup(B,{emit:z,attrs:e}){const s=o.ref([]),v=o.ref(""),E=o.ref(!1),w=o.ref(!1),y=n=>{E.value=n};o.watch(s,n=>{z("update:modelValue",n)});const g=o.inject("disabled",{value:!1});o.watch(()=>B.modelValue,n=>{if(n!=null&&n.length>0&&s.value!=null){if(s.value===n)return;s.value.length=0,s.value.push(...n)}},{deep:!0,immediate:!0});const W=(n,t)=>{o.nextTick(()=>{C?(s.value=t.filter(l=>{var c,i;return((c=l==null?void 0:l.response)==null?void 0:c.code)===200||((i=l==null?void 0:l.response)==null?void 0:i.code)===201}),C=!1):s.value=t})},j=n=>{var p,u,f;let t=n.url||((u=(p=n==null?void 0:n.response)==null?void 0:p.data)==null?void 0:u.url);if(!t)return;const l=[".jpg",".jpeg",".png",".gif",".svg",".bmp",".webp"],c=((f=n.name)==null?void 0:f.toLowerCase())||"",i=l.some(h=>c.endsWith(h)),m=c.endsWith(".pdf");i?(v.value=t,w.value=!1,y(!0)):m?(v.value=t,w.value=!0,y(!0)):window.open(t)},M=n=>{var i,m,p,u,f;const t=(m=(i=e.componentSchema)==null?void 0:i.componentProps)==null?void 0:m.accept;if(t){const h=t.split(",").map(r=>r.trim().toLowerCase()).filter(r=>r),x=(((p=n.name)==null?void 0:p.toLowerCase())||"").split("."),b=x.length>1?"."+x.pop():"",a=n.type||"";if(!h.some(r=>{if(r==="*/*")return!0;if(r.startsWith("."))return b===r;if(r.endsWith("/*")){const V=r.split("/")[0];return a.startsWith(V+"/")}else return r.includes("/")?a===r||a.startsWith(r+"/"):b==="."+r}))return d.ElMessage.error(`只能上传${t}类型的文件!`),!1}const l=+(((f=(u=e.componentSchema)==null?void 0:u.componentProps)==null?void 0:f.maxSize)??10);return n.size/1024/1024<l?!0:(d.ElMessage.error(`文件大小不能超过 ${l}MB!`),!1)};let C=!1;const R=(n,t,l)=>{n.code!==200&&n.code!==201&&(d.ElMessage.error(P("uploadFailed")),C=!0),console.log(l)},L=(n,t,l)=>{d.ElMessage.error(P("uploadFailed")),console.error(n)},D=(n,t)=>{let{limit:l}=e;d.ElMessage.warning(`最多只能上传 ${l} 个文件`)},U=()=>{var n,t;if(s.value.length===0){d.ElMessage.warning("请先上传文件");return}if(!(e!=null&&e.callBackUrl)){d.ElMessage.warning("请先配置回填接口地址");return}z("update:ocrData",{url:s.value.map(l=>{var c,i;return(i=(c=l.response)==null?void 0:c.data)==null?void 0:i.url}),field:(n=e.componentSchema)==null?void 0:n.field,label:(t=e.componentSchema)==null?void 0:t.label,callBackUrl:e==null?void 0:e.callBackUrl,callBackMethod:e==null?void 0:e.callBackMethod,callBackField:e==null?void 0:e.callBackField,callBackDataPath:e==null?void 0:e.callBackDataPath,validate:e==null?void 0:e.validate,validateParams:e==null?void 0:e.validateParams}),e.componentSchema.componentProps={...e.componentSchema.componentProps,hasAlreadyOcr:!0}};console.log("%c [ ]-199","font-size:13px; background:pink; color:#bf2c9f;",e);const F=o.computed(()=>({...e,"file-list":s.value,beforeUpload:M,onChange:W,onSuccess:R,onError:L,onPreview:j,onExceed:D}));return()=>o.h("div",{class:"epic-ocr-upload",style:{padding:"20px",backgroundColor:"#ffffff",borderRadius:"8px",boxShadow:"0 2px 12px 0 rgba(0, 0, 0, 0.08)",transition:"all 0.3s ease"}},{default:()=>{var n,t,l,c;return[e.disabled||g.value?null:o.h("div",{style:{padding:"16px 20px",backgroundColor:"#f0f9ff",borderRadius:"6px",marginBottom:"20px",border:"1px solid #e0f2fe",color:"#334155",fontSize:"14px",lineHeight:"1.5",display:"flex",alignItems:"flex-start",gap:"8px"}},[o.h("span",{class:"icon--epic icon--epic--error-outline-rounded",style:{color:"#3b82f6",fontSize:"16px",marginTop:"2px"}}),"操作步骤:① 上传文件 → ② 点击「OCR识别」 → 自动识别并回填信息"]),o.h(d.ElUpload,{...F.value,headers:{Authorization:`Bearer ${I.api.get("Admin-Token")}`},listType:"picture-card",style:{marginBottom:e.disabled||g.value?"0":"20px"}},{default:()=>[o.h("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",width:"100%",height:"100%",cursor:e.disabled||g.value?"not-allowed":"pointer",opacity:e.disabled||g.value?.6:1,transition:"all 0.3s ease",borderRadius:"6px",backgroundColor:"#fafafa"}},[o.h("span",{class:"icon--epic icon--epic--cloud-upload-outlined",style:{marginBottom:"8px",color:"#9ca3af",fontSize:"28px",transition:"all 0.3s ease"}}),o.h("span",{style:{fontSize:"14px",color:"#6b7280",fontWeight:500,marginBottom:"4px"}},P("fileUpload")),o.h("span",{style:{fontSize:"12px",color:"#9ca3af"}},"支持图片和PDF文件")])],file:({file:i})=>{var k,x,b;const m=[".jpg",".jpeg",".png",".gif",".svg",".bmp",".webp"],p=((k=i.name)==null?void 0:k.toLowerCase())||"",u=m.some(a=>p.endsWith(a)),f=p.endsWith(".pdf"),h=i.url||((b=(x=i==null?void 0:i.response)==null?void 0:x.data)==null?void 0:b.url);return o.h("div",{class:"el-upload-list__item",style:{backgroundColor:"transparent",border:"none",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",position:"relative",cursor:"pointer"},onClick:()=>j(i)},[o.h("button",{type:"button",class:"el-upload-list__item-delete",style:{position:"absolute",top:"4px",right:"4px",width:"20px",height:"20px",border:"none",borderRadius:"50%",backgroundColor:"rgba(0, 0, 0, 0.6)",color:"white",fontSize:"12px",cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",transition:"all 0.3s ease",zIndex:10},onClick:a=>{a.stopPropagation();const S=s.value.findIndex(r=>r.uid===i.uid);S!==-1&&s.value.splice(S,1)},onMouseenter:a=>{a.target&&(a.target.style.backgroundColor="#ff4d4f",a.target.style.transform="scale(1.1)")},onMouseleave:a=>{a.target&&(a.target.style.backgroundColor="rgba(0, 0, 0, 0.6)",a.target.style.transform="scale(1)")}},"×"),o.h("div",{style:{width:"100%",height:"100%",display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"4px",overflow:"hidden"}},[u&&h?o.h("img",{src:h,style:{width:"100%",height:"100%",objectFit:"contain"}}):f&&h?o.h("div",{style:{width:"100%",height:"100%",display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:"white"}},[o.h("img",{src:"https://ess-ds.com/statics/gd-data/images/pdf.png",style:{width:"60%",height:"60%",objectFit:"contain"},alt:i.name})]):o.h("div",{style:{width:"100%",height:"100%",display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:"white"}},[o.h("img",{src:"https://ess-ds.com/statics/gd-data/images/unknown-file.png",style:{width:"60%",height:"60%",objectFit:"contain"},alt:i.name})])]),o.h("span",{title:i.name,style:{marginTop:"4px",fontSize:"12px",color:"#606266",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",textAlign:"center"}},i.name)])}}),e.disabled||g.value?null:o.h(d.ElButton,{disabled:e.disabled||g.value,onClick:U,style:{marginTop:"0",width:"100%",padding:"10px 24px",fontSize:"14px",fontWeight:500,borderRadius:"6px",backgroundColor:"#3b82f6",borderColor:"#3b82f6",color:"white",transition:"all 0.3s ease"}},{default:()=>[o.h("span",{class:"icon--epic icon--epic--radio-button-checked-outline",style:{marginRight:"8px",fontSize:"16px"}}),"OCR识别"]}),o.h("div",{style:{marginTop:"8px",padding:"12px 16px",backgroundColor:"#ff4d4f",color:"white",borderRadius:"6px",fontSize:"14px",fontWeight:500,textAlign:"left",boxShadow:"0 2px 8px rgba(255, 77, 79, 0.3)",display:(t=e.model)!=null&&t[((n=e.componentSchema)==null?void 0:n.field)+"-orcWarningInfo"]?"block":"none"}},((c=e.model)==null?void 0:c[((l=e.componentSchema)==null?void 0:l.field)+"-orcWarningInfo"])||""),(()=>{if(E.value)return w.value?o.h("div",{class:"el-image-viewer__wrapper",style:{position:"fixed",top:0,left:0,right:0,bottom:0,zIndex:2e3,backgroundColor:"rgba(0, 0, 0, 0.8)",display:"flex",alignItems:"center",justifyContent:"center"}},[o.h("button",{style:{position:"absolute",top:"24px",right:"24px",width:"36px",height:"36px",border:"none",borderRadius:"50%",backgroundColor:"rgba(255, 255, 255, 0.15)",color:"white",fontSize:"20px",cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",transition:"all 0.3s ease",backdropFilter:"blur(8px)"},onClick:()=>y(!1)},"×"),o.h("div",{style:{width:"90%",height:"90%",backgroundColor:"white",borderRadius:"8px",overflow:"hidden",position:"relative",boxShadow:"0 20px 60px rgba(0, 0, 0, 0.5)",maxWidth:"1400px",maxHeight:"900px",minWidth:"980px",minHeight:"600px"}},[o.h("iframe",{src:v.value,style:{width:"100%",height:"100%",border:"none"},title:"PDF Preview"})])]):o.h(d.ElImageViewer,{urlList:[v.value],onClose:()=>{y(!1)}})})()]}})}});exports.default=A;
|