epic-designer-gold 1.0.33 → 1.0.35

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.
Files changed (57) hide show
  1. package/dist/{index-3k1IXN1T.js → _plugin-vue_export-helper-8DRKdUfJ.js} +30 -24
  2. package/dist/{index-DlWUR7vt.cjs → _plugin-vue_export-helper-NUO0U1Az.cjs} +3 -3
  3. package/dist/{attributeView-BAtvUAhV.js → attributeView-BsBiqVGu.js} +1 -1
  4. package/dist/{attributeView-BF8AFFq3.cjs → attributeView-CDOlTCej.cjs} +1 -1
  5. package/dist/form-BaNhucdK.js +231 -0
  6. package/dist/form-DvdMrtVG.cjs +1 -0
  7. package/dist/index-4NyY4OrM.cjs +10 -0
  8. package/dist/{index-Xnqspbxj.js → index-57Jo44dB.js} +2 -2
  9. package/dist/{index-Cecp9t8s.js → index-6ehvFk8m.js} +1 -1
  10. package/dist/{index-9Mn4Y5ul.js → index-7Z6k5ElN.js} +1 -1
  11. package/dist/{index-CQSYlqUB.js → index-B2L9CYN8.js} +1 -1
  12. package/dist/{index-sFE9uQIP.js → index-BCfsLh0H.js} +111 -112
  13. package/dist/{index-DExGgrX9.cjs → index-BK6ipjbo.cjs} +1 -1
  14. package/dist/index-BNgMDVXO.js +4 -0
  15. package/dist/{index-CrVn9CfT.js → index-BQGUEUhF.js} +1 -1
  16. package/dist/index-BU-UAvHC.cjs +1 -0
  17. package/dist/{index-CLeSXOVj.js → index-BelKUDOu.js} +1 -1
  18. package/dist/{index-Di9sEDRc.cjs → index-Bv6UOkMb.cjs} +1 -1
  19. package/dist/{index-ClgIpXW0.cjs → index-C0sL_Cow.cjs} +1 -1
  20. package/dist/{index-Bxdmlmwu.cjs → index-CBKTyKT5.cjs} +1 -1
  21. package/dist/{index-BozsQqds.cjs → index-CGSKdgpe.cjs} +1 -1
  22. package/dist/{index-DYU07eGb.cjs → index-CP9mOhqZ.cjs} +1 -1
  23. package/dist/{index-K9w-efBB.cjs → index-Ce2UbX3P.cjs} +1 -1
  24. package/dist/{index-natF7VzY.js → index-Ch0kn_uQ.js} +1 -1
  25. package/dist/{index-CFChTrwc.cjs → index-CqmYHiDr.cjs} +1 -1
  26. package/dist/{index-C5yUsiJH.js → index-D8diDndG.js} +2 -2
  27. package/dist/{index-C4CkFEzv.cjs → index-DV6zVc1G.cjs} +1 -1
  28. package/dist/{index-CFHEVgng.cjs → index-Dh-5bgQx.cjs} +1 -1
  29. package/dist/{index-BMXnkqXx.js → index-Dz39c928.js} +1 -1
  30. package/dist/{index-lf6yCev-.cjs → index-EU7IKyES.cjs} +1 -1
  31. package/dist/{index-BwHmwZ5G.cjs → index-PjUZVUx6.cjs} +1 -1
  32. package/dist/{index-D2n96wxz.js → index-lkwgM-Nx.js} +1 -1
  33. package/dist/{index-CT056ccv.js → index-nvc1uY17.js} +1 -1
  34. package/dist/{index-DI-E5Cpq.js → index-u1-3v7J4.js} +2 -2
  35. package/dist/{index-CHYKgo9A.cjs → index-wjKD4mBu.cjs} +1 -1
  36. package/dist/{index-UpNznhhe.js → index-zxpOBir-.js} +2 -2
  37. package/dist/index.cjs +1 -1
  38. package/dist/index.js +1 -1
  39. package/dist/{selectPage-oM1OpHbJ.js → selectPage-Cu2yuxd6.js} +6 -7
  40. package/dist/selectPage-DZQ1Sbs4.cjs +1 -0
  41. package/dist/sign-B1wFFef_.cjs +1 -0
  42. package/dist/{sign-Cz5OCE1C.js → sign-mjic2rIw.js} +22 -23
  43. package/dist/style.css +1 -1
  44. package/dist/{styleView-oSuNX97o.js → styleView-DXePdHW5.js} +1 -1
  45. package/dist/{styleView-DAskd_e3.cjs → styleView-sZrNBCuS.cjs} +1 -1
  46. package/dist/ui/elementPlus/index.cjs +1 -1
  47. package/dist/ui/elementPlus/index.js +3 -3
  48. package/package.json +1 -1
  49. package/dist/_plugin-vue_export-helper-BHFhmbuH.cjs +0 -1
  50. package/dist/_plugin-vue_export-helper-CHgC5LLL.js +0 -9
  51. package/dist/form-CUbklubB.cjs +0 -1
  52. package/dist/form-DGbjgAvD.js +0 -208
  53. package/dist/index-B_ZNp-FD.cjs +0 -10
  54. package/dist/index-Dp0hJSh5.js +0 -4
  55. package/dist/index-eAXbC_rr.cjs +0 -1
  56. package/dist/selectPage-H4G0pWhK.cjs +0 -1
  57. package/dist/sign-Cusu4oCD.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-CUbklubB.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-Cusu4oCD.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-H4G0pWhK.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-CMskfGHX.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-DvdMrtVG.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-B1wFFef_.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-CMskfGHX.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-DGbjgAvD.js"),
499
+ component: () => import("../../form-BaNhucdK.js"),
500
500
  groupName: d("form"),
501
501
  icon: "icon--epic--list-alt-outline-rounded",
502
502
  sort: 600,
@@ -2635,7 +2635,7 @@ const de = {
2635
2635
  }
2636
2636
  }, { t: T } = o(), he = {
2637
2637
  // component: async () => await import("../../../../packages/core/components/designer/src"),
2638
- component: async () => await import("../../sign-Cz5OCE1C.js"),
2638
+ component: async () => await import("../../sign-mjic2rIw.js"),
2639
2639
  icon: "icon--epic--insert-text-outline-rounded",
2640
2640
  groupName: T("form"),
2641
2641
  sort: 705,
@@ -3526,7 +3526,7 @@ const Te = {
3526
3526
  ]
3527
3527
  }
3528
3528
  }, { t: g } = o(), Ie = {
3529
- component: async () => await import("../../selectPage-oM1OpHbJ.js"),
3529
+ component: async () => await import("../../selectPage-Cu2yuxd6.js"),
3530
3530
  // component: async () => (await import("element-plus")).ElInput,
3531
3531
  icon: "icon--epic--select",
3532
3532
  groupName: "表单",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "epic-designer-gold",
3
3
  "private": false,
4
- "version": "1.0.33",
4
+ "version": "1.0.35",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
7
7
  "module": "dist/index.js",
@@ -1 +0,0 @@
1
- "use strict";const e=(t,o)=>{const c=t.__vccOpts||t;for(const[r,s]of o)c[r]=s;return c};exports._export_sfc=e;
@@ -1,9 +0,0 @@
1
- const s = (t, r) => {
2
- const o = t.__vccOpts || t;
3
- for (const [c, e] of r)
4
- o[c] = e;
5
- return o;
6
- };
7
- export {
8
- s as _
9
- };
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),L=require("element-plus"),k=require("./pluginManager-C8aQylGX.cjs"),$=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),z={key:0,class:"form-main",style:{height:"100%"}},H={class:"save-modal-content"},J={class:"save-modal-item"},G={class:"save-modal-item"},K={class:"signature-container"},Q={class:"signature-controls"},Z={key:0,class:"signature-preview"},ee=["src"],te=e.defineComponent({__name:"form",props:{componentSchema:{type:Object,require:!0,default:()=>({})}},setup(T,{expose:R}){var N,P;const s=T,j=e.inject("pageManager",{}),c=e.ref(null),S=e.inject("forms",{}),W=e.ref(!0),u=e.reactive({});j.addFormData(u,(P=(N=s.componentSchema)==null?void 0:N.componentProps)==null?void 0:P.name),e.provide("formData",u);const q=k.pluginManager.getComponent("modal"),O=k.pluginManager.getComponent("input"),V=k.pluginManager.getComponent("button"),v=e.ref(!1),d=e.ref(""),i=e.ref("");let m=null,f=null;const a=e.ref(null),l=e.ref(null),p=e.ref(!1),g=e.ref(0),h=e.ref(0);function X(){if(!a.value)return;const t=a.value,n=t.parentElement;if(!n)return;const r=n.getBoundingClientRect().width-20,C=400;t.width=r,t.height=C,l.value=t.getContext("2d"),l.value&&(l.value.lineWidth=4,l.value.lineCap="round",l.value.lineJoin="round",l.value.strokeStyle="#000000",l.value.fillStyle="#ffffff",l.value.fillRect(0,0,t.width,t.height))}function x(t){if(p.value=!0,!a.value)return;const n=a.value.getBoundingClientRect(),o=t.type.includes("mouse")?t.offsetX:t.touches[0].clientX-n.left,r=t.type.includes("mouse")?t.offsetY:t.touches[0].clientY-n.top;g.value=o,h.value=r}function w(t){if(!p.value||!l.value||!a.value)return;const n=a.value.getBoundingClientRect(),o=t.type.includes("mouse")?t.offsetX:t.touches[0].clientX-n.left,r=t.type.includes("mouse")?t.offsetY:t.touches[0].clientY-n.top;l.value.beginPath(),l.value.moveTo(g.value,h.value),l.value.lineTo(o,r),l.value.stroke(),g.value=o,h.value=r}function y(){p.value=!1}function b(){!l.value||!a.value||(l.value.fillStyle="#ffffff",l.value.fillRect(0,0,a.value.width,a.value.height),i.value="")}function Y(){a.value&&(i.value=a.value.toDataURL("image/png"))}function D(){v.value=!1,d.value="",i.value="",b()}function B(){f&&(f(new Error("用户取消了保存确认")),m=null,f=null),D()}function F(){if(d.value.trim()!=="我已明确当前修改"){alert("请输入准确的确认文字");return}if(!i.value){alert("请签字确认");return}u.saveDescription=d.value,u.signatureData=i.value,m&&(m(u),m=null,f=null),D()}function _(t){const n=[t];if(t.children&&Array.isArray(t.children))for(const o of t.children)n.push(..._(o));return n}function E(){const n=(s.componentSchema?_(s.componentSchema):[]).find(o=>(o==null?void 0:o.type)==="ocr-upload");return n&&u[n.field+"-orcWarningInfo"]&&n.componentProps.hasAlreadyOcr?new Promise((o,r)=>{v.value=!0,m=o,f=r,e.nextTick(()=>{X()})}):u}function M(t){Object.assign(u,t)}function U(){var t;return(t=c.value)==null?void 0:t.validate()}e.onMounted(async()=>{var t,n,o,r;if(((t=s.componentSchema)==null?void 0:t.type)==="form"&&S.value&&c.value){const C=((o=(n=s.componentSchema)==null?void 0:n.componentProps)==null?void 0:o.name)??((r=s.componentSchema)==null?void 0:r.name)??"default";return S.value[C]=c.value,c.value.getData=E,c.value.setData=M,!1}});const A=e.computed(()=>{const t=s.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}}),I=e.computed(()=>s.componentSchema.children??[]);return R({form:c,getData:E,setData:M,validate:U}),(t,n)=>W.value?(e.openBlock(),e.createElementBlock("div",z,[e.createVNode(e.unref(L.ElForm),e.mergeProps({ref_key:"form",ref:c,model:u},A.value,{style:{height:"100%"}}),{default:e.withCtx(()=>[e.renderSlot(t.$slots,"edit-node",{},()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(I.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(q)),{style:{height:"calc(100vh - 240px)"},modelValue:v.value,"onUpdate:modelValue":n[1]||(n[1]=o=>v.value=o),title:"保存确认",onClose:B,onCancel:B,onOk:F,okText:"确认保存",cancelText:"取消"},{default:e.withCtx(()=>[e.createElementVNode("div",H,[e.createElementVNode("div",J,[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",G,[n[6]||(n[6]=e.createElementVNode("label",{class:"save-modal-label"},"请签字确认:",-1)),e.createElementVNode("div",K,[e.createElementVNode("canvas",{ref_key:"signatureCanvas",ref:a,onMousedown:x,onMousemove:w,onMouseup:y,onMouseleave:y,onTouchstart:x,onTouchmove:w,onTouchend:y,class:"signature-canvas"},null,544),e.createElementVNode("div",Q,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(V)),{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(V)),{type:"primary",size:"small",onClick:Y},{default:e.withCtx(()=>[...n[5]||(n[5]=[e.createTextVNode("确认签字",-1)])]),_:1}))]),i.value?(e.openBlock(),e.createElementBlock("div",Z,[e.createElementVNode("img",{src:i.value,alt:"签字预览",class:"signature-img"},null,8,ee)])):e.createCommentVNode("",!0)])])])]),_:1},40,["modelValue"]))])):e.createCommentVNode("",!0)}}),ne=$._export_sfc(te,[["__scopeId","data-v-503c09f4"]]);exports.default=ne;
@@ -1,208 +0,0 @@
1
- import { defineComponent as oe, inject as O, ref as s, reactive as le, provide as ae, onMounted as se, computed as U, createElementBlock as k, createCommentVNode as A, openBlock as v, createVNode as re, createBlock as y, unref as h, mergeProps as ue, withCtx as C, renderSlot as I, Fragment as ie, renderList as ce, resolveDynamicComponent as S, createElementVNode as r, createTextVNode as L, nextTick as de } from "vue";
2
- import { ElForm as ve } from "element-plus";
3
- import { p as M } from "./pluginManager-B0y107-1.js";
4
- import { _ as fe } from "./_plugin-vue_export-helper-CHgC5LLL.js";
5
- const me = {
6
- key: 0,
7
- class: "form-main",
8
- style: { height: "100%" }
9
- }, pe = { class: "save-modal-content" }, he = { class: "save-modal-item" }, ge = { class: "save-modal-item" }, ye = { class: "signature-container" }, Ce = { class: "signature-controls" }, Se = {
10
- key: 0,
11
- class: "signature-preview"
12
- }, xe = ["src"], be = /* @__PURE__ */ oe({
13
- __name: "form",
14
- props: {
15
- componentSchema: {
16
- type: Object,
17
- require: !0,
18
- default: () => ({})
19
- }
20
- },
21
- setup($, { expose: z }) {
22
- var F, N;
23
- const i = $, q = O("pageManager", {}), c = s(null), P = O("forms", {}), H = s(!0), u = le({});
24
- q.addFormData(u, (N = (F = i.componentSchema) == null ? void 0 : F.componentProps) == null ? void 0 : N.name), ae("formData", u);
25
- const J = M.getComponent("modal"), G = M.getComponent("input"), V = M.getComponent("button"), g = s(!1), f = s(""), d = s("");
26
- let m = null, p = null;
27
- const l = s(null), o = s(null), x = s(!1), b = s(0), w = s(0);
28
- function K() {
29
- if (!l.value) return;
30
- const e = l.value, t = e.parentElement;
31
- if (!t) return;
32
- const a = t.getBoundingClientRect().width - 20, D = 400;
33
- e.width = a, e.height = D, o.value = e.getContext("2d"), o.value && (o.value.lineWidth = 4, o.value.lineCap = "round", o.value.lineJoin = "round", o.value.strokeStyle = "#000000", o.value.fillStyle = "#ffffff", o.value.fillRect(0, 0, e.width, e.height));
34
- }
35
- function R(e) {
36
- if (x.value = !0, !l.value) return;
37
- const t = l.value.getBoundingClientRect(), n = e.type.includes("mouse") ? e.offsetX : e.touches[0].clientX - t.left, a = e.type.includes("mouse") ? e.offsetY : e.touches[0].clientY - t.top;
38
- b.value = n, w.value = a;
39
- }
40
- function T(e) {
41
- if (!x.value || !o.value || !l.value) return;
42
- const t = l.value.getBoundingClientRect(), n = e.type.includes("mouse") ? e.offsetX : e.touches[0].clientX - t.left, a = e.type.includes("mouse") ? e.offsetY : e.touches[0].clientY - t.top;
43
- o.value.beginPath(), o.value.moveTo(b.value, w.value), o.value.lineTo(n, a), o.value.stroke(), b.value = n, w.value = a;
44
- }
45
- function _() {
46
- x.value = !1;
47
- }
48
- function B() {
49
- !o.value || !l.value || (o.value.fillStyle = "#ffffff", o.value.fillRect(0, 0, l.value.width, l.value.height), d.value = "");
50
- }
51
- function Q() {
52
- l.value && (d.value = l.value.toDataURL("image/png"));
53
- }
54
- function W() {
55
- g.value = !1, f.value = "", d.value = "", B();
56
- }
57
- function E() {
58
- p && (p(new Error("用户取消了保存确认")), m = null, p = null), W();
59
- }
60
- function Z() {
61
- if (f.value.trim() !== "我已明确当前修改") {
62
- alert("请输入准确的确认文字");
63
- return;
64
- }
65
- if (!d.value) {
66
- alert("请签字确认");
67
- return;
68
- }
69
- u.saveDescription = f.value, u.signatureData = d.value, m && (m(u), m = null, p = null), W();
70
- }
71
- function X(e) {
72
- const t = [e];
73
- if (e.children && Array.isArray(e.children))
74
- for (const n of e.children)
75
- t.push(...X(n));
76
- return t;
77
- }
78
- function Y() {
79
- const t = (i.componentSchema ? X(i.componentSchema) : []).find((n) => (n == null ? void 0 : n.type) === "ocr-upload");
80
- return t && u[t.field + "-orcWarningInfo"] && t.componentProps.hasAlreadyOcr ? new Promise((n, a) => {
81
- g.value = !0, m = n, p = a, de(() => {
82
- K();
83
- });
84
- }) : u;
85
- }
86
- function j(e) {
87
- Object.assign(u, e);
88
- }
89
- function ee() {
90
- var e;
91
- return (e = c.value) == null ? void 0 : e.validate();
92
- }
93
- se(async () => {
94
- var e, t, n, a;
95
- if (((e = i.componentSchema) == null ? void 0 : e.type) === "form" && P.value && c.value) {
96
- const D = ((n = (t = i.componentSchema) == null ? void 0 : t.componentProps) == null ? void 0 : n.name) ?? ((a = i.componentSchema) == null ? void 0 : a.name) ?? "default";
97
- return P.value[D] = c.value, c.value.getData = Y, c.value.setData = j, !1;
98
- }
99
- });
100
- const te = U(() => {
101
- const e = i.componentSchema.componentProps;
102
- let t = e.labelCol, n = e.wrapperCol;
103
- return e.labelLayout === "fixed" && (t = {
104
- style: `width:${typeof e.labelWidth == "number" ? e.labelWidth + "px" : e.labelWidth}`
105
- }, n = { style: "width:auto;flex:1" }), {
106
- ...e,
107
- labelCol: t,
108
- wrapperCol: n
109
- };
110
- }), ne = U(() => i.componentSchema.children ?? []);
111
- return z({
112
- form: c,
113
- getData: Y,
114
- setData: j,
115
- validate: ee
116
- }), (e, t) => H.value ? (v(), k("div", me, [
117
- re(h(ve), ue({
118
- ref_key: "form",
119
- ref: c,
120
- model: u
121
- }, te.value, { style: { height: "100%" } }), {
122
- default: C(() => [
123
- I(e.$slots, "edit-node", {}, () => [
124
- (v(!0), k(ie, null, ce(ne.value, (n) => I(e.$slots, "node", { componentSchema: n }, void 0, !0)), 256))
125
- ], !0)
126
- ]),
127
- _: 3
128
- }, 16, ["model"]),
129
- (v(), y(S(h(J)), {
130
- style: { height: "calc(100vh - 240px)" },
131
- modelValue: g.value,
132
- "onUpdate:modelValue": t[1] || (t[1] = (n) => g.value = n),
133
- title: "保存确认",
134
- onClose: E,
135
- onCancel: E,
136
- onOk: Z,
137
- okText: "确认保存",
138
- cancelText: "取消"
139
- }, {
140
- default: C(() => [
141
- r("div", pe, [
142
- r("div", he, [
143
- t[2] || (t[2] = r("label", { class: "save-modal-label" }, "请输入以下文字确认:", -1)),
144
- t[3] || (t[3] = r("div", { class: "confirm-text" }, "我已明确当前修改", -1)),
145
- (v(), y(S(h(G)), {
146
- modelValue: f.value,
147
- "onUpdate:modelValue": t[0] || (t[0] = (n) => f.value = n),
148
- placeholder: "请输入上方文字确认",
149
- type: "text",
150
- style: { "margin-top": "8px" }
151
- }, null, 8, ["modelValue"]))
152
- ]),
153
- r("div", ge, [
154
- t[6] || (t[6] = r("label", { class: "save-modal-label" }, "请签字确认:", -1)),
155
- r("div", ye, [
156
- r("canvas", {
157
- ref_key: "signatureCanvas",
158
- ref: l,
159
- onMousedown: R,
160
- onMousemove: T,
161
- onMouseup: _,
162
- onMouseleave: _,
163
- onTouchstart: R,
164
- onTouchmove: T,
165
- onTouchend: _,
166
- class: "signature-canvas"
167
- }, null, 544),
168
- r("div", Ce, [
169
- (v(), y(S(h(V)), {
170
- type: "primary",
171
- size: "small",
172
- onClick: B
173
- }, {
174
- default: C(() => [...t[4] || (t[4] = [
175
- L("清空", -1)
176
- ])]),
177
- _: 1
178
- })),
179
- (v(), y(S(h(V)), {
180
- type: "primary",
181
- size: "small",
182
- onClick: Q
183
- }, {
184
- default: C(() => [...t[5] || (t[5] = [
185
- L("确认签字", -1)
186
- ])]),
187
- _: 1
188
- }))
189
- ]),
190
- d.value ? (v(), k("div", Se, [
191
- r("img", {
192
- src: d.value,
193
- alt: "签字预览",
194
- class: "signature-img"
195
- }, null, 8, xe)
196
- ])) : A("", !0)
197
- ])
198
- ])
199
- ])
200
- ]),
201
- _: 1
202
- }, 40, ["modelValue"]))
203
- ])) : A("", !0);
204
- }
205
- }), Me = /* @__PURE__ */ fe(be, [["__scopeId", "data-v-503c09f4"]]);
206
- export {
207
- Me as default
208
- };