cnhis-design-vue 3.2.15-beta.9 → 3.2.16-beta.7

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 (141) hide show
  1. package/es/components/ai-chat/index.d.ts +9 -0
  2. package/es/components/ai-chat/src/Index.vue.d.ts +9 -0
  3. package/es/components/ai-chat/src/Index.vue2.js +1 -1
  4. package/es/components/ai-chat/src/components/ChatCard.js +1 -1
  5. package/es/components/ai-chat/style/index.css +1 -1
  6. package/es/components/branch-notice/index.d.ts +32 -3
  7. package/es/components/branch-notice/src/BranchNotice.vue.d.ts +9 -3
  8. package/es/components/branch-notice/src/BranchNotice.vue2.js +1 -1
  9. package/es/components/branch-notice/src/canstants.js +1 -1
  10. package/es/components/button-print/index.d.ts +6 -13
  11. package/es/components/button-print/src/ButtonPrint.vue.d.ts +6 -13
  12. package/es/components/button-print/src/components/NewPrintComponent.vue.d.ts +6 -13
  13. package/es/components/button-print/src/components/NewPrintComponent.vue2.js +1 -1
  14. package/es/components/button-print/src/components/OldPrintComponent.vue2.js +1 -1
  15. package/es/components/button-print/style/index.css +1 -1
  16. package/es/components/callback/src/components/render/popupMaps.d.ts +10 -0
  17. package/es/components/card-reader-sdk/src/cardReaderSDK.js +1 -1
  18. package/es/components/classification/index.d.ts +30 -0
  19. package/es/components/classification/src/components/search-filter/index.vue.d.ts +30 -0
  20. package/es/components/classification/src/components/set-classification/index.vue.d.ts +30 -0
  21. package/es/components/classification/src/components/table-modal/index.vue.d.ts +0 -3
  22. package/es/components/classification/src/index.vue.d.ts +30 -0
  23. package/es/components/date-picker/index.d.ts +10 -0
  24. package/es/components/date-picker/src/DatePicker.vue.d.ts +10 -0
  25. package/es/components/date-picker/src/DatePicker.vue2.js +1 -1
  26. package/es/components/expand-field/index.d.ts +27 -1
  27. package/es/components/expand-field/src/components/FormItemPerson.vue.d.ts +27 -1
  28. package/es/components/expand-field/src/components/PersonModal.vue.d.ts +27 -1
  29. package/es/components/expand-field/src/components/form.vue.d.ts +27 -1
  30. package/es/components/expand-field/src/index.vue.d.ts +27 -1
  31. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useCenter.js +1 -1
  32. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useOther.d.ts +1 -0
  33. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useOther.js +1 -1
  34. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useSurgicalAnesthesiaChart.js +1 -1
  35. package/es/components/fabric-chart/src/hooks/useCommon.d.ts +1 -2
  36. package/es/components/fabric-chart/src/hooks/useDraw.js +1 -1
  37. package/es/components/field-set/src/FieldColor.vue.d.ts +20 -0
  38. package/es/components/field-set/src/FieldFilter.vue.d.ts +2 -1
  39. package/es/components/field-set/src/FieldFilter.vue2.js +1 -1
  40. package/es/components/field-set/src/components/condition.vue.d.ts +10 -0
  41. package/es/components/field-set/src/components/edit-dialog.vue.d.ts +20 -0
  42. package/es/components/field-set/src/components/edit-filter.vue.d.ts +10 -0
  43. package/es/components/field-set/src/components/table-row.vue2.js +1 -1
  44. package/es/components/field-set/src/utils/index.js +1 -1
  45. package/es/components/form-config/index.d.ts +1051 -1
  46. package/es/components/form-config/src/FormConfig.vue.d.ts +1051 -1
  47. package/es/components/form-config/src/components/FormConfigCreator.vue.d.ts +10 -0
  48. package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +10 -1
  49. package/es/components/form-config/src/components/FormConfigEdit.vue2.js +1 -1
  50. package/es/components/form-config/src/components/FormConfigEventSetting.vue.d.ts +1029 -0
  51. package/es/components/form-config/src/components/FormConfigEventSetting.vue2.js +1 -1
  52. package/es/components/form-config/src/constants/index.js +1 -1
  53. package/es/components/form-config/style/index.css +1 -1
  54. package/es/components/form-render/index.d.ts +10 -0
  55. package/es/components/form-render/src/FormRender.vue.d.ts +10 -0
  56. package/es/components/form-render/src/FormRender.vue2.js +1 -1
  57. package/es/components/form-render/src/FormRenderWrapper.vue.d.ts +10 -0
  58. package/es/components/form-render/src/components/renderer/input.d.ts +9 -1
  59. package/es/components/form-render/src/components/renderer/input.js +1 -1
  60. package/es/components/form-render/src/components/renderer/select.d.ts +6 -0
  61. package/es/components/form-render/src/components/renderer/select.js +1 -1
  62. package/es/components/form-render/src/hooks/useFieldListAdaptor.js +1 -1
  63. package/es/components/form-render/src/hooks/useLowCodeReactions.js +1 -1
  64. package/es/components/iho-chat/index.d.ts +477 -102
  65. package/es/components/iho-chat/src/Index.vue.d.ts +477 -102
  66. package/es/components/iho-chat/src/Index.vue2.js +1 -1
  67. package/es/components/iho-chat/src/components/ChatAdd.vue.d.ts +33 -9
  68. package/es/components/iho-chat/src/components/ChatAdd.vue2.js +1 -1
  69. package/es/components/iho-chat/src/components/ChatFile.vue.d.ts +33 -10
  70. package/es/components/iho-chat/src/components/ChatFile.vue2.js +1 -1
  71. package/es/components/iho-chat/src/components/ChatFooter.vue.d.ts +33 -10
  72. package/es/components/iho-chat/src/components/ChatFooter.vue2.js +1 -1
  73. package/es/components/iho-chat/src/components/ChatHeader.vue.d.ts +133 -45
  74. package/es/components/iho-chat/src/components/ChatMain.vue.d.ts +183 -18
  75. package/es/components/iho-chat/src/components/ChatMain.vue2.js +1 -1
  76. package/es/components/iho-chat/src/components/ChatRecord.vue.d.ts +10 -1
  77. package/es/components/iho-chat/src/components/ChatSearch.vue.d.ts +0 -1
  78. package/es/components/iho-chat/src/components/ChatSet.vue.d.ts +45 -17
  79. package/es/components/iho-chat/src/components/MessageEvent.vue.d.ts +137 -0
  80. package/es/components/iho-chat/src/components/MessageEvent.vue.js +1 -0
  81. package/es/components/iho-chat/src/components/MessageEvent.vue2.js +1 -0
  82. package/es/components/iho-chat/src/components/MultipleVideo.vue.d.ts +40 -13
  83. package/es/components/iho-chat/src/components/MultipleVideo.vue2.js +1 -1
  84. package/es/components/iho-chat/src/components/PersonProfile.vue.d.ts +13 -7
  85. package/es/components/iho-chat/src/components/PersonProfile.vue2.js +1 -1
  86. package/es/components/iho-chat/src/components/SiderList.vue.d.ts +11 -1
  87. package/es/components/iho-chat/src/components/SiderList.vue2.js +1 -1
  88. package/es/components/iho-chat/src/components/Video.vue.d.ts +2 -2
  89. package/es/components/iho-chat/src/components/Video.vue2.js +1 -1
  90. package/es/components/iho-chat/src/constants/index.d.ts +2 -1
  91. package/es/components/iho-chat/src/constants/index.js +1 -1
  92. package/es/components/iho-chat/src/hooks/useData.d.ts +4 -2
  93. package/es/components/iho-chat/src/hooks/useData.js +1 -1
  94. package/es/components/iho-chat/src/hooks/useVideo.d.ts +3 -3
  95. package/es/components/iho-chat/src/hooks/useVideo.js +1 -1
  96. package/es/components/iho-chat/src/types/index.d.ts +13 -2
  97. package/es/components/iho-chat/src/utils/asyncQueue.d.ts +10 -0
  98. package/es/components/iho-chat/src/utils/asyncQueue.js +1 -0
  99. package/es/components/iho-chat/style/iconfont.ttf +0 -0
  100. package/es/components/iho-chat/style/index.css +1 -1
  101. package/es/components/iho-table/src/plugins/filterDaterangeRenderPlugin/filter.vue.d.ts +10 -0
  102. package/es/components/iho-table/src/plugins/filterRenderPlugin/filter.vue2.js +1 -1
  103. package/es/components/iho-table/src/plugins/filterRenderPlugin/index.js +1 -1
  104. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/editDate.vue.d.ts +10 -0
  105. package/es/components/iho-table/src/types/index.d.ts +14 -0
  106. package/es/components/iho-table/src/utils/index.js +1 -1
  107. package/es/components/iho-table/style/index.css +1 -1
  108. package/es/components/index.css +1 -1
  109. package/es/components/info-header/index.d.ts +20 -0
  110. package/es/components/info-header/src/InfoHeader.vue.d.ts +20 -0
  111. package/es/components/info-header/src/components/infoDescription/index.vue.d.ts +10 -0
  112. package/es/components/info-header/src/components/patientInfo/index.vue.d.ts +10 -0
  113. package/es/components/scale-view/src/ScaleView.vue2.js +1 -1
  114. package/es/components/select-person/index.d.ts +27 -1
  115. package/es/components/select-person/src/SelectPerson.vue.d.ts +15 -1
  116. package/es/components/select-person/src/SelectPerson.vue2.js +1 -1
  117. package/es/components/select-person/src/index.vue.d.ts +27 -1
  118. package/es/components/select-person/src/index.vue2.js +1 -1
  119. package/es/components/shortcut-setter/index.d.ts +10 -0
  120. package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +10 -0
  121. package/es/components/table-filter/src/components/bi-filter/ValueCfg.vue.d.ts +10 -0
  122. package/es/components/table-filter/src/components/bi-filter/components/Date.vue.d.ts +10 -0
  123. package/es/components/table-filter/src/components/bi-filter/components/index.d.ts +10 -0
  124. package/es/components/table-filter/src/components/bi-filter/index.vue.d.ts +10 -0
  125. package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue.d.ts +20 -0
  126. package/es/components/table-filter/src/components/classify-filter/components/Date.vue.d.ts +10 -0
  127. package/es/components/table-filter/src/components/classify-filter/components/DateRange.vue.d.ts +10 -0
  128. package/es/components/table-filter/src/components/classify-filter/components/index.d.ts +20 -0
  129. package/es/components/table-filter/src/components/classify-filter/index.vue.d.ts +20 -0
  130. package/es/components/table-filter/src/components/render-widget/components/DateInner.vue.d.ts +10 -0
  131. package/es/components/table-filter/src/components/render-widget/components/DateOut.vue.d.ts +10 -0
  132. package/es/components/table-filter/src/components/render-widget/components/DateRangeInner.vue.d.ts +10 -0
  133. package/es/components/table-filter/src/components/render-widget/components/DateRangeOut.vue.d.ts +10 -0
  134. package/es/components/table-filter/src/components/render-widget/components/SelectDynamic.vue2.js +1 -1
  135. package/es/components/table-filter/src/components/render-widget/components/index.d.ts +40 -0
  136. package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.d.ts +40 -0
  137. package/es/env.d.ts +25 -25
  138. package/es/shared/hooks/useDateTime.js +1 -1
  139. package/es/shared/package.json.js +1 -1
  140. package/es/shared/types/business.d.ts +4 -0
  141. package/package.json +2 -2
@@ -220,6 +220,9 @@ declare const _default: import("vue").DefineComponent<{}, {
220
220
  type: import("vue").PropType<"default" | "tooltip">;
221
221
  default: string;
222
222
  };
223
+ fixMemoLeak: {
224
+ type: BooleanConstructor;
225
+ };
223
226
  }, {
224
227
  props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
225
228
  fieldList: {
@@ -419,6 +422,9 @@ declare const _default: import("vue").DefineComponent<{}, {
419
422
  type: import("vue").PropType<"default" | "tooltip">;
420
423
  default: string;
421
424
  };
425
+ fixMemoLeak: {
426
+ type: BooleanConstructor;
427
+ };
422
428
  }>> & {
423
429
  onFormChange?: ((...args: any[]) => any) | undefined;
424
430
  onScroll?: ((...args: any[]) => any) | undefined;
@@ -976,6 +982,9 @@ declare const _default: import("vue").DefineComponent<{}, {
976
982
  type: import("vue").PropType<"default" | "tooltip">;
977
983
  default: string;
978
984
  };
985
+ fixMemoLeak: {
986
+ type: BooleanConstructor;
987
+ };
979
988
  }>> & {
980
989
  onFormChange?: ((...args: any[]) => any) | undefined;
981
990
  onScroll?: ((...args: any[]) => any) | undefined;
@@ -1009,6 +1018,7 @@ declare const _default: import("vue").DefineComponent<{}, {
1009
1018
  feedbackType: "default" | "tooltip";
1010
1019
  operationalFormInit: boolean;
1011
1020
  incrementalRender: boolean;
1021
+ fixMemoLeak: boolean;
1012
1022
  }>;
1013
1023
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>>;
1014
1024
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
@@ -1162,7 +1162,6 @@ declare const _default: import("vue").DefineComponent<{
1162
1162
  onOptionModalConfirm: () => void;
1163
1163
  useFormConfigLocale: typeof useFormConfigLocale;
1164
1164
  NModal: any;
1165
- NSpace: any;
1166
1165
  NInput: any;
1167
1166
  CFormRender: import("../../../../shared/types").SFCWithInstall<import("vue").DefineComponent<{}, {
1168
1167
  formRenderRef: import("vue").Ref<FormRenderExpose | undefined>;
@@ -1368,6 +1367,9 @@ declare const _default: import("vue").DefineComponent<{
1368
1367
  type: PropType<"default" | "tooltip">;
1369
1368
  default: string;
1370
1369
  };
1370
+ fixMemoLeak: {
1371
+ type: BooleanConstructor;
1372
+ };
1371
1373
  }, {
1372
1374
  props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
1373
1375
  fieldList: {
@@ -1567,6 +1569,9 @@ declare const _default: import("vue").DefineComponent<{
1567
1569
  type: PropType<"default" | "tooltip">;
1568
1570
  default: string;
1569
1571
  };
1572
+ fixMemoLeak: {
1573
+ type: BooleanConstructor;
1574
+ };
1570
1575
  }>> & {
1571
1576
  onFormChange?: ((...args: any[]) => any) | undefined;
1572
1577
  onScroll?: ((...args: any[]) => any) | undefined;
@@ -2124,6 +2129,9 @@ declare const _default: import("vue").DefineComponent<{
2124
2129
  type: PropType<"default" | "tooltip">;
2125
2130
  default: string;
2126
2131
  };
2132
+ fixMemoLeak: {
2133
+ type: BooleanConstructor;
2134
+ };
2127
2135
  }>> & {
2128
2136
  onFormChange?: ((...args: any[]) => any) | undefined;
2129
2137
  onScroll?: ((...args: any[]) => any) | undefined;
@@ -2157,6 +2165,7 @@ declare const _default: import("vue").DefineComponent<{
2157
2165
  feedbackType: "default" | "tooltip";
2158
2166
  operationalFormInit: boolean;
2159
2167
  incrementalRender: boolean;
2168
+ fixMemoLeak: boolean;
2160
2169
  }>;
2161
2170
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>>;
2162
2171
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
@@ -1 +1 @@
1
- import{defineComponent as e,computed as t,ref as l,inject as i,watch as o,toRaw as a,openBlock as n,createElementBlock as r,Fragment as s,createVNode as u,unref as d,mergeProps as v,createCommentVNode as p,withCtx as f,createElementVNode as c,toDisplayString as m,renderList as g,h as x}from"vue";import{cloneDeep as y,isEmpty as h,isArray as b}from"lodash-es";import{InjectionActiveFieldItem as k,EditAbleField as A}from"../constants/index.js";import"../../../../shared/components/VueDraggable/src/vuedraggable.js";import{findFieldItemByKey as j}from"../utils/index.js";import"@vicons/ionicons5";import{NModal as w,NInput as F,NSpace as L,NButton as C}from"naive-ui";import"../../../../shared/utils/index.js";import{useConfigurationField as O}from"../hooks/useConfigurationField.js";import{useFormConfigLocale as _}from"../hooks/useLocale.js";import"../../../index.js";import R from"../../../form-render/index.js";const P={style:{"padding-top":"8px"}},T={style:{width:"100%","text-align":"left"}};var U=e({__name:"FormConfigEdit",props:{uuid:{type:String,required:!0},bindFormRenderRef:{type:Object},formProps:{type:Object}},setup(e,{expose:U}){const E=e;t((()=>`#${E.uuid} .form-config__config`));const B=l(),N=i(k),D=l([]),I=l({}),{generateFieldListByFormConfigItem:S}=O();function V({fieldKey:e,value:t}){N.value&&(N.value[e]=t)}o(N,(async(e,t)=>{var l,i;if(!e)return D.value=[];I.value={editable:!0,show:!0,...y(a(e))};const o=null==(l=E.bindFormRenderRef)?void 0:l.getFieldList();D.value=S(e,j(o,e.key)),null==(i=B.value)||i.reload()}),{immediate:!0});const q={"*"({field:e}){if(e.val_key!==A.DEFAULT_VALUE)return;const t=e.option;var l,i;e.option=(l=e.option,b(l)?l.map((e=>{var t;const l=null==(t=N.value.optionAliasList)?void 0:t.find((t=>t.value===e.value));return l?{...e,text:l.text}:e})):l),e.decoratorProps={labelRender:(i=t,e=>{const t=x("span",{},e);return h(i)?t:x("div",{style:{display:"flex",alignItems:"center",gap:"8px"}},[t,x(C,{text:!0,type:"primary",onClick(){var e;z.value=!0,K.value=y(i),h(null==(e=N.value)?void 0:e.optionAliasList)||K.value.forEach((e=>{const t=N.value.optionAliasList.find((t=>t.value===e.value));t&&(e.alias=t.text)}))}},{default:()=>_("configArea.modifyOptionTitle")})])})}}},z=l(!1),K=l([]);function M(){z.value=!1,K.value=[]}function $(){var e;z.value=!1,N.value.optionAliasList=K.value.reduce(((e,t)=>(t.alias&&e.push({value:t.value,text:t.alias}),e)),[]),K.value=[],I.value={editable:!0,show:!0,...y(a(N.value))},null==(e=B.value)||e.reload()}return U({validate(){var e;return null==(e=B.value)?void 0:e.validate()}}),(t,l)=>(n(),r(s,null,[u(d(R),v({size:"small"},e.formProps,{column:12,ref_key:"formRenderRef",ref:B,onFormChange:V,"field-visitor":q,"field-list":D.value,"initial-data":I.value}),null,16,["field-list","initial-data"]),p("\t<n-modal"),p('\t\tv-model:show="showModal"'),p('\t\tpreset="dialog"'),p('\t\tto="body"'),p('\t\t:to="wrapperSelector"'),p('\t\t:close-on-esc="false"'),p('\t\t:mask-closable="false"'),p('\t\t:closable="false"'),p('\t\ttitle="存在填写错误的字段"'),p('\t\tpositive-text="继续编辑"'),p('\t\t@positive-click="onPositiveClick"'),p("\t/>"),u(d(w),{show:z.value,"onUpdate:show":l[0]||(l[0]=e=>z.value=e),preset:"dialog",to:"body","close-on-esc":!1,"mask-closable":!1,title:d(_)("configArea.modifyOptionTitle"),"positive-text":d(_)("configArea.positiveBtn"),"negative-text":d(_)("configArea.negativeBtn"),onNegativeClick:M,onPositiveClick:$},{default:f((()=>[c("section",P,[c("table",T,[c("thead",null,[c("tr",null,[c("th",null,m(d(_)("configArea.modifyOptionName")),1),c("th",null,m(d(_)("configArea.modifyOptionOriginText")),1),c("th",null,m(d(_)("configArea.modifyOptionNewText")),1)])]),c("tbody",null,[(n(!0),r(s,null,g(K.value,(e=>(n(),r("tr",{key:e.value},[c("td",null,m(e.value),1),c("td",null,m(e.text),1),c("td",null,[u(d(F),{value:e.alias,"onUpdate:value":t=>e.alias=t},null,8,["value","onUpdate:value"])])])))),128))])]),u(d(L),{vertical:""})])])),_:1},8,["show","to","title","positive-text","negative-text"])],64))}});export{U as default};
1
+ import{defineComponent as e,computed as t,ref as i,inject as l,watch as o,toRaw as a,openBlock as n,createElementBlock as r,Fragment as u,createVNode as s,unref as d,mergeProps as v,withCtx as p,createElementVNode as f,toDisplayString as m,renderList as c,h as g}from"vue";import{cloneDeep as x,isEmpty as y,isArray as h}from"lodash-es";import{InjectionActiveFieldItem as b,EditAbleField as A}from"../constants/index.js";import"../../../../shared/components/VueDraggable/src/vuedraggable.js";import{findFieldItemByKey as j}from"../utils/index.js";import"@vicons/ionicons5";import{NModal as k,NInput as F,NButton as L}from"naive-ui";import"../../../../shared/utils/index.js";import{useConfigurationField as O}from"../hooks/useConfigurationField.js";import{useFormConfigLocale as _}from"../hooks/useLocale.js";import"../../../index.js";import w from"../../../form-render/index.js";const C={style:{"padding-top":"8px"}},R={style:{width:"100%","text-align":"left"}};var T=e({__name:"FormConfigEdit",props:{uuid:{type:String,required:!0},bindFormRenderRef:{type:Object},formProps:{type:Object}},setup(e,{expose:T}){const U=e;t((()=>`#${U.uuid} .form-config__config`));const E=i(),P=l(b),B=i([]),N=i({}),{generateFieldListByFormConfigItem:D}=O();function I({fieldKey:e,value:t}){P.value&&(P.value[e]=t)}o(P,(async(e,t)=>{var i,l;if(!e)return B.value=[];N.value={editable:!0,show:!0,...x(a(e))};const o=null==(i=U.bindFormRenderRef)?void 0:i.getFieldList();B.value=D(e,j(o,e.key)),null==(l=E.value)||l.reload()}),{immediate:!0});const V={"*"({field:e}){if(e.val_key!==A.DEFAULT_VALUE)return;const t=e.option;var i,l;e.option=(i=e.option,h(i)?i.map((e=>{var t;const i=null==(t=P.value.optionAliasList)?void 0:t.find((t=>t.value===e.value));return i?{...e,text:i.text}:e})):i),e.decoratorProps={labelRender:(l=t,e=>{const t=g("span",{},e);return y(l)?t:g("div",{style:{display:"flex",alignItems:"center",gap:"8px"}},[t,g(L,{text:!0,type:"primary",onClick(){var e;q.value=!0,z.value=x(l),y(null==(e=P.value)?void 0:e.optionAliasList)||z.value.forEach((e=>{const t=P.value.optionAliasList.find((t=>t.value===e.value));t&&(e.alias=t.text)}))}},{default:()=>_("configArea.modifyOptionTitle")})])})}}},q=i(!1),z=i([]);function K(){q.value=!1,z.value=[]}function S(){var e;q.value=!1,P.value.optionAliasList=z.value.reduce(((e,t)=>(t.alias&&e.push({value:t.value,text:t.alias}),e)),[]),z.value=[],N.value={editable:!0,show:!0,...x(a(P.value))},null==(e=E.value)||e.reload()}return T({validate(){var e;return null==(e=E.value)?void 0:e.validate()}}),(t,i)=>(n(),r(u,null,[s(d(w),v({size:"small"},e.formProps,{column:12,ref_key:"formRenderRef",ref:E,onFormChange:I,"field-visitor":V,"field-list":B.value,"initial-data":N.value}),null,16,["field-list","initial-data"]),s(d(k),{show:q.value,"onUpdate:show":i[0]||(i[0]=e=>q.value=e),preset:"dialog",to:"body","close-on-esc":!1,"mask-closable":!1,title:d(_)("configArea.modifyOptionTitle"),"positive-text":d(_)("configArea.positiveBtn"),"negative-text":d(_)("configArea.negativeBtn"),onNegativeClick:K,onPositiveClick:S},{default:p((()=>[f("section",C,[f("table",R,[f("thead",null,[f("tr",null,[f("th",null,m(d(_)("configArea.modifyOptionName")),1),f("th",null,m(d(_)("configArea.modifyOptionOriginText")),1),f("th",null,m(d(_)("configArea.modifyOptionNewText")),1)])]),f("tbody",null,[(n(!0),r(u,null,c(z.value,(e=>(n(),r("tr",{key:e.value},[f("td",null,m(e.value),1),f("td",null,m(e.text),1),f("td",null,[s(d(F),{value:e.alias,"onUpdate:value":t=>e.alias=t},null,8,["value","onUpdate:value"])])])))),128))])])])])),_:1},8,["show","to","title","positive-text","negative-text"])],64))}});export{T as default};