cnhis-design-vue 3.3.2-release.0 → 3.3.2-release.2

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 (251) hide show
  1. package/es/components/audio-sdk/index.d.ts +173 -146
  2. package/es/components/audio-sdk/src/Index.vue.d.ts +174 -147
  3. package/es/components/audio-sdk/src/Index.vue2.js +131 -53
  4. package/es/components/audio-sdk/src/audioSDK.d.ts +29 -26
  5. package/es/components/audio-sdk/src/audioSDK.js +123 -42
  6. package/es/components/audio-sdk/src/components/readyCountdown.vue.d.ts +31 -0
  7. package/es/components/audio-sdk/src/components/readyCountdown.vue.js +6 -0
  8. package/es/components/audio-sdk/src/components/readyCountdown.vue2.js +46 -0
  9. package/es/components/audio-sdk/src/components/recording-modal.vue.d.ts +138 -10
  10. package/es/components/audio-sdk/src/components/recording.vue.d.ts +139 -11
  11. package/es/components/audio-sdk/src/components/recording.vue2.js +318 -74
  12. package/es/components/audio-sdk/src/hooks/useChartAudioContext.d.ts +24 -0
  13. package/es/components/audio-sdk/src/hooks/useChartAudioContext.js +176 -0
  14. package/es/components/audio-sdk/src/svgs/Close.vue.js +26 -0
  15. package/es/components/audio-sdk/src/svgs/Continue.vue.js +20 -0
  16. package/es/components/audio-sdk/src/svgs/Enlarge.vue.js +20 -0
  17. package/es/components/audio-sdk/src/svgs/Pause.vue.js +20 -0
  18. package/es/components/audio-sdk/src/svgs/WaveView.vue.js +20 -0
  19. package/es/components/audio-sdk/src/svgs/Zoom.vue.js +27 -0
  20. package/es/components/audio-sdk/src/types/index.d.ts +42 -0
  21. package/es/components/audio-sdk/src/types/index.js +10 -0
  22. package/es/components/audio-sdk/src/utils/recordingModal.d.ts +9 -3
  23. package/es/components/audio-sdk/src/utils/recordingModal.js +57 -32
  24. package/es/components/audio-sdk/style/index.css +1 -1
  25. package/es/components/base-search/src/index.vue2.js +30 -18
  26. package/es/components/big-table/src/BigTable.vue2.js +191 -133
  27. package/es/components/big-table/src/components/NoData.vue2.js +16 -4
  28. package/es/components/big-table/src/components/edit-form/edit-date.js +12 -6
  29. package/es/components/big-table/src/components/edit-form/edit-input.js +8 -2
  30. package/es/components/big-table/src/components/edit-form/edit-select.js +21 -17
  31. package/es/components/big-table/src/components/edit-form/edit-time.js +11 -4
  32. package/es/components/big-table/src/components/input-button.vue2.js +8 -4
  33. package/es/components/big-table/src/hooks/useNestTable.js +18 -4
  34. package/es/components/big-table/src/hooks/useTableParse.js +16 -3
  35. package/es/components/body-select/src/index.vue2.js +24 -4
  36. package/es/components/button-print/index.d.ts +12 -4
  37. package/es/components/button-print/src/ButtonPrint.vue.d.ts +12 -4
  38. package/es/components/button-print/src/ButtonPrint.vue2.js +52 -11
  39. package/es/components/button-print/src/components/EditFormat.vue2.js +16 -8
  40. package/es/components/button-print/src/components/IdentityVerification.vue.d.ts +4 -2
  41. package/es/components/button-print/src/components/IdentityVerification.vue2.js +104 -49
  42. package/es/components/button-print/src/components/NewPrintComponent.vue.d.ts +7 -2
  43. package/es/components/button-print/src/components/NewPrintComponent.vue2.js +244 -95
  44. package/es/components/button-print/src/components/OldPrintComponent.vue.d.ts +5 -2
  45. package/es/components/button-print/src/components/OldPrintComponent.vue2.js +92 -32
  46. package/es/components/button-print/src/components/Preview.vue.d.ts +5 -2
  47. package/es/components/button-print/src/components/Preview.vue2.js +14 -4
  48. package/es/components/button-print/src/utils/dialog.js +26 -8
  49. package/es/components/button-print/src/utils/print.d.ts +5 -5
  50. package/es/components/button-print/src/utils/print.js +108 -21
  51. package/es/components/card-reader-sdk/src/components/readCardDialog.vue2.js +8 -2
  52. package/es/components/card-reader-sdk/src/utils/readHealthCard.js +16 -4
  53. package/es/components/card-reader-sdk-cn/src/henan/index.js +38 -11
  54. package/es/components/card-render/src/components/index.d.ts +23 -23
  55. package/es/components/classification/src/components/search-filter/index.vue2.js +24 -10
  56. package/es/components/classification/src/components/set-classification/index.vue2.js +24 -7
  57. package/es/components/classification/src/components/table-modal/index.vue2.js +324 -165
  58. package/es/components/classification/src/index.vue2.js +261 -69
  59. package/es/components/default-page/src/constants/index.js +144 -19
  60. package/es/components/default-page/src/index.vue2.js +8 -2
  61. package/es/components/expand-field/src/components/FormBatchOptionsModal.vue2.js +75 -51
  62. package/es/components/expand-field/src/components/FormItemPerson.vue2.js +46 -38
  63. package/es/components/expand-field/src/components/PersonModal.vue2.js +62 -50
  64. package/es/components/expand-field/src/components/form.vue2.js +783 -412
  65. package/es/components/expand-field/src/index.vue2.js +88 -22
  66. package/es/components/expand-field/src/utils/constant.js +88 -12
  67. package/es/components/fabric-chart/src/components/PopupMenu.js +32 -15
  68. package/es/components/fabric-chart/src/constants/index.js +72 -10
  69. package/es/components/fabric-chart/src/hooks/birthProcess/useBirthProcess.js +18 -4
  70. package/es/components/fabric-chart/src/hooks/newBirthProcess/useNewBirthProcess.js +8 -2
  71. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useCenter.js +32 -5
  72. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useTop.js +8 -2
  73. package/es/components/fabric-chart/src/hooks/temperature/useCenter.js +63 -41
  74. package/es/components/fabric-chart/src/hooks/temperature/useTemperatureChart.js +1 -1
  75. package/es/components/fabric-chart/src/hooks/temperature/useTop.js +5 -1
  76. package/es/components/fabric-chart/src/hooks/useCommon.js +24 -4
  77. package/es/components/fabric-chart/src/hooks/useCumputedPoint.js +4 -1
  78. package/es/components/fabric-chart/src/hooks/useDraw.js +19 -0
  79. package/es/components/fabric-chart/src/utils/index.d.ts +1 -1
  80. package/es/components/fabric-chart/src/utils/index.js +2 -2
  81. package/es/components/field-editor/src/fields.js +232 -30
  82. package/es/components/field-set/src/FieldColor.vue.d.ts +2 -2
  83. package/es/components/field-set/src/FieldColor.vue2.js +88 -21
  84. package/es/components/field-set/src/FieldFilter.vue.d.ts +2 -2
  85. package/es/components/field-set/src/FieldFilter.vue2.js +32 -16
  86. package/es/components/field-set/src/FieldSet.vue.d.ts +2 -2
  87. package/es/components/field-set/src/FieldSet.vue2.js +210 -57
  88. package/es/components/field-set/src/Index.vue2.js +40 -6
  89. package/es/components/field-set/src/TableStyle.vue2.js +48 -13
  90. package/es/components/field-set/src/components/condition.vue2.js +26 -10
  91. package/es/components/field-set/src/components/edit-dialog.vue2.js +148 -68
  92. package/es/components/field-set/src/components/edit-filter.vue2.js +24 -4
  93. package/es/components/field-set/src/components/table-row.vue.d.ts +2 -2
  94. package/es/components/field-set/src/components/table-row.vue2.js +123 -42
  95. package/es/components/field-set/src/constants/filter.js +328 -42
  96. package/es/components/field-set/src/constants/index.js +504 -64
  97. package/es/components/field-set/src/utils/index.js +1 -1
  98. package/es/components/form-config/src/components/FormConfigEventSetting.vue2.js +91 -46
  99. package/es/components/form-config/src/constants/index.js +80 -11
  100. package/es/components/form-config/src/hooks/useLocale.js +240 -31
  101. package/es/components/form-render/src/components/renderer/combination/hooks/useCombination.js +8 -4
  102. package/es/components/form-render/src/components/renderer/combination/jsonCombination.js +8 -4
  103. package/es/components/form-render/src/components/renderer/combination/tableCombination.js +8 -2
  104. package/es/components/form-render/src/components/renderer/input.js +3 -2
  105. package/es/components/form-render/src/components/renderer/radio_checkbox.js +8 -4
  106. package/es/components/form-render/src/components/renderer/remoteSearch.js +8 -2
  107. package/es/components/form-render/src/components/renderer/switch.js +24 -4
  108. package/es/components/form-render/src/components/renderer/textarea.js +5 -4
  109. package/es/components/form-render/src/utils/schema.js +26 -6
  110. package/es/components/iho-chat/src/Index.vue2.js +42 -38
  111. package/es/components/iho-chat/src/components/ChatAdd.vue2.js +108 -33
  112. package/es/components/iho-chat/src/components/ChatFile.vue2.js +132 -90
  113. package/es/components/iho-chat/src/components/ChatFooter.vue2.js +110 -48
  114. package/es/components/iho-chat/src/components/ChatHeader.vue2.js +40 -20
  115. package/es/components/iho-chat/src/components/ChatMain.vue2.js +55 -23
  116. package/es/components/iho-chat/src/components/ChatRecord.vue2.js +77 -45
  117. package/es/components/iho-chat/src/components/ChatSearch.vue2.js +256 -208
  118. package/es/components/iho-chat/src/components/ChatSet.vue2.js +306 -208
  119. package/es/components/iho-chat/src/components/ContextMenu.js +50 -9
  120. package/es/components/iho-chat/src/components/MessageEvent.vue2.js +16 -4
  121. package/es/components/iho-chat/src/components/MessageTemplate.vue2.js +8 -2
  122. package/es/components/iho-chat/src/components/MultipleVideo.vue2.js +104 -18
  123. package/es/components/iho-chat/src/components/PersonProfile.vue2.js +66 -11
  124. package/es/components/iho-chat/src/components/SelectLabel.vue2.js +47 -43
  125. package/es/components/iho-chat/src/components/SiderList.vue2.js +68 -38
  126. package/es/components/iho-chat/src/components/Video.vue2.js +38 -11
  127. package/es/components/iho-chat/src/hooks/useVideo.js +15 -4
  128. package/es/components/iho-chat/src/utils/index.js +79 -14
  129. package/es/components/iho-table/src/hooks/useColumnConfigAdaptor.js +8 -2
  130. package/es/components/iho-table/src/plugins/dynamicFilterRenderPlugin/dynamicFilter.vue2.js +40 -15
  131. package/es/components/iho-table/src/plugins/filterRemoteSearchPlugin/remoteFilter.vue2.js +40 -15
  132. package/es/components/iho-table/src/plugins/filterRenderPlugin/filter.vue.d.ts +1 -1
  133. package/es/components/iho-table/src/plugins/filterRenderPlugin/filter.vue2.js +50 -20
  134. package/es/components/iho-table/src/plugins/filterTextPlugin/filter.vue2.js +16 -8
  135. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/numberRendererPlugin.js +10 -3
  136. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/editSelect.js +42 -15
  137. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/index.js +1 -1
  138. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin/editTime.vue2.js +18 -12
  139. package/es/components/index.css +1 -1
  140. package/es/components/info-header/src/components/patientInfo/index.vue2.js +144 -25
  141. package/es/components/keyboard/src/Keyboard.vue2.js +20 -8
  142. package/es/components/keyboard/src/components/NumberPanel.vue2.js +51 -37
  143. package/es/components/map/src/Map.vue2.js +8 -4
  144. package/es/components/picture-clipper/src/PictureClipper.vue2.js +16 -8
  145. package/es/components/quick-search/src/index.vue2.js +176 -131
  146. package/es/components/recommend-search/src/components/BaseSearch.js +14 -8
  147. package/es/components/recommend-search/src/components/RecommendInput.vue2.js +28 -8
  148. package/es/components/recommend-search/src/components/RecommendSelect.vue2.js +18 -5
  149. package/es/components/scale-view/src/ScaleView.vue2.js +16 -8
  150. package/es/components/scale-view/src/components/NoData.vue2.js +16 -4
  151. package/es/components/scale-view/src/components/formitem/r-cascader.js +8 -2
  152. package/es/components/scale-view/src/components/formitem/r-checkbox.js +24 -6
  153. package/es/components/scale-view/src/components/formitem/r-input.js +8 -2
  154. package/es/components/scale-view/src/components/formitem/r-map.js +8 -2
  155. package/es/components/scale-view/src/components/formitem/r-radio.js +24 -6
  156. package/es/components/scale-view/src/components/formitem/r-select.js +8 -2
  157. package/es/components/scale-view/src/components/formitem/r-sign.js +32 -11
  158. package/es/components/scale-view/src/components/formitem/standard-modal.js +16 -3
  159. package/es/components/scale-view/src/hooks/scaleview-computed.js +24 -5
  160. package/es/components/scale-view/src/hooks/scaleview-methods.js +16 -4
  161. package/es/components/scale-view/src/hooks/scaleview-submit.js +16 -3
  162. package/es/components/scale-view/src/hooks/scaleview-validate.js +40 -9
  163. package/es/components/search-cascader/src/SearchCascader.vue2.js +20 -14
  164. package/es/components/select-label/src/LabelFormContent.vue2.js +53 -21
  165. package/es/components/select-label/src/SelectLabel.vue2.js +81 -51
  166. package/es/components/select-label/src/components/label-classify.vue2.js +28 -11
  167. package/es/components/select-label/src/ihoLabel/IhoLabelFormContent.vue2.js +18 -5
  168. package/es/components/select-label/src/ihoLabel/IhoSelectLabel.vue2.js +34 -8
  169. package/es/components/select-label/src/ihoLabel/iho-label-classify.vue2.js +18 -5
  170. package/es/components/select-person/src/SelectPerson.vue2.js +214 -141
  171. package/es/components/select-person/src/SelectPersonType.vue2.js +127 -102
  172. package/es/components/select-person/src/components/SearchOrgAndStaff.vue2.js +9 -2
  173. package/es/components/select-person/src/index.vue2.js +20 -7
  174. package/es/components/slider-tree/src/index.vue2.js +16 -3
  175. package/es/components/table-export-field/index.d.ts +1 -0
  176. package/es/components/table-export-field/src/components/ExportModal.vue.d.ts +1 -0
  177. package/es/components/table-export-field/src/components/ExportModal.vue2.js +187 -113
  178. package/es/components/table-export-field/src/components/SaveProjectModal.vue2.js +147 -88
  179. package/es/components/table-export-field/src/index.vue.d.ts +1 -0
  180. package/es/components/table-export-field/src/index.vue2.js +28 -12
  181. package/es/components/table-filter/src/components/bi-filter/ValueCfg.vue2.js +32 -5
  182. package/es/components/table-filter/src/components/bi-filter/helpers/options.js +264 -34
  183. package/es/components/table-filter/src/components/bi-filter/index.vue2.js +214 -135
  184. package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue2.js +16 -3
  185. package/es/components/table-filter/src/components/classify-filter/components/Date.vue2.js +9 -2
  186. package/es/components/table-filter/src/components/classify-filter/components/DateRange.vue2.js +39 -6
  187. package/es/components/table-filter/src/components/classify-filter/components/InputFilter.vue2.js +18 -5
  188. package/es/components/table-filter/src/components/classify-filter/components/InputNumberGroup.vue2.js +29 -18
  189. package/es/components/table-filter/src/components/classify-filter/helpers/options.js +16 -3
  190. package/es/components/table-filter/src/components/classify-filter/hooks/useDisplayCategory.js +8 -2
  191. package/es/components/table-filter/src/components/classify-filter/index.vue2.js +195 -130
  192. package/es/components/table-filter/src/components/render-widget/components/DateInner.vue2.js +26 -7
  193. package/es/components/table-filter/src/components/render-widget/components/DateOut.vue2.js +12 -6
  194. package/es/components/table-filter/src/components/render-widget/components/DateRangeInner.vue2.js +34 -8
  195. package/es/components/table-filter/src/components/render-widget/components/DateRangeOut.vue2.js +21 -8
  196. package/es/components/table-filter/src/components/render-widget/components/InputCustom.vue2.js +8 -4
  197. package/es/components/table-filter/src/components/render-widget/components/InputNumberGroup.vue2.js +19 -6
  198. package/es/components/table-filter/src/components/render-widget/components/LabelInner.vue2.js +16 -3
  199. package/es/components/table-filter/src/components/render-widget/components/SelectDynamicOption/index.vue2.js +24 -10
  200. package/es/components/table-filter/src/components/render-widget/helpers/dateExtraMap.js +1648 -207
  201. package/es/components/table-filter/src/components/render-widget/helpers/selectExtraMap.js +8 -2
  202. package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.js +16 -3
  203. package/es/components/table-filter/src/tool/baseOptions.js +144 -19
  204. package/es/components/tooth-bitmap/src/ToothBitmap.vue2.js +32 -16
  205. package/es/components/vod-chunk-upload/src/hooks/upload-computed.js +22 -2
  206. package/es/components/vod-chunk-upload/src/vod-chunk-upload/vod-chunk-upload.vue2.js +8 -4
  207. package/es/components/vod-chunk-upload/src/vod-upload-modal.js +16 -8
  208. package/es/shared/assets/img/defaultCover/10review_successful.png.js +1 -1
  209. package/es/shared/assets/img/defaultCover/11review_fail.png.js +1 -1
  210. package/es/shared/assets/img/defaultCover/12no_setting.png.js +1 -1
  211. package/es/shared/assets/img/defaultCover/13no_menu_setting.png.js +1 -1
  212. package/es/shared/assets/img/defaultCover/14no_call_setting.png.js +1 -1
  213. package/es/shared/assets/img/defaultCover/15no_use_tag.png.js +1 -1
  214. package/es/shared/assets/img/defaultCover/16no_table_data.png.js +1 -1
  215. package/es/shared/assets/img/defaultCover/1location.png.js +1 -1
  216. package/es/shared/assets/img/defaultCover/2notfound.png.js +1 -1
  217. package/es/shared/assets/img/defaultCover/3loading.png.js +1 -1
  218. package/es/shared/assets/img/defaultCover/4no_permission.png.js +1 -1
  219. package/es/shared/assets/img/defaultCover/5no_data.png.js +1 -1
  220. package/es/shared/assets/img/defaultCover/6no_network.png.js +1 -1
  221. package/es/shared/assets/img/defaultCover/7no_doctor.png.js +1 -1
  222. package/es/shared/assets/img/defaultCover/8system_error.png.js +1 -1
  223. package/es/shared/assets/img/defaultCover/9system_upgrade.png.js +1 -1
  224. package/es/shared/assets/img/failure.png.js +1 -1
  225. package/es/shared/assets/img/no-permission.png.js +1 -1
  226. package/es/shared/assets/img/nodata.png.js +1 -1
  227. package/es/shared/assets/img/notfound.png.js +1 -1
  228. package/es/shared/assets/img/qr.png.js +1 -1
  229. package/es/shared/assets/img/success.png.js +1 -1
  230. package/es/shared/assets/img/table_style_2.png.js +1 -1
  231. package/es/shared/assets/img/video.png.js +1 -1
  232. package/es/shared/assets/img/video_default_cover.png.js +1 -1
  233. package/es/shared/assets/img/xb_big.png.js +1 -1
  234. package/es/shared/assets/img/xb_small.png.js +1 -1
  235. package/es/shared/hooks/selectHooks/useSelectAllowModify.js +2 -2
  236. package/es/shared/package.json.js +1 -1
  237. package/package.json +2 -2
  238. package/es/components/audio-sdk/src/components/recording-modal.vue.js +0 -6
  239. package/es/components/audio-sdk/src/components/recording-modal.vue2.js +0 -40
  240. package/es/components/audio-sdk/src/utils/recorder/fft.d.ts +0 -4
  241. package/es/components/audio-sdk/src/utils/recorder/mp3-engine.d.ts +0 -4
  242. package/es/components/audio-sdk/src/utils/recorder/mp3.d.ts +0 -4
  243. package/es/components/audio-sdk/src/utils/recorder/recorder.d.ts +0 -4
  244. package/es/components/audio-sdk/src/utils/recorder/wave.d.ts +0 -4
  245. package/es/components/bpmn-workflow/src/BpmnWorkflow.d.ts +0 -0
  246. package/es/components/bpmn-workflow/types/BpmnViewer.d.ts +0 -1
  247. package/es/components/bpmn-workflow/types/ModelingModule.d.ts +0 -1
  248. package/es/components/bpmn-workflow/types/MoveCanvasModule.d.ts +0 -1
  249. package/es/shared/components/VueDraggable/src/vuedraggable.d.ts +0 -86
  250. package/es/shared/utils/fabricjs/index.d.ts +0 -6823
  251. package/es/shared/utils/tapable/index.d.ts +0 -139
@@ -73,12 +73,18 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
73
73
  expose,
74
74
  emit
75
75
  }) {
76
- var _a;
77
76
  const props = __props;
78
77
  const rules = {
79
78
  classname: {
80
79
  required: true,
81
- message: ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.360")) || "\u8BF7\u8F93\u5165\u5206\u7C7B\u540D\u79F0",
80
+ message: function() {
81
+ var _a, _b, _c;
82
+ try {
83
+ return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.360")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.360")) || "\u8BF7\u8F93\u5165\u5206\u7C7B\u540D\u79F0";
84
+ } catch (e) {
85
+ return "\u8BF7\u8F93\u5165\u5206\u7C7B\u540D\u79F0";
86
+ }
87
+ }(),
82
88
  trigger: ["input", "blur"]
83
89
  }
84
90
  };
@@ -144,14 +150,20 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
144
150
  return getConObj(quickSearch.value) || [];
145
151
  }
146
152
  function openSaveToCalss() {
147
- var _a2;
148
153
  let conObj = getConObjParams();
149
154
  if (!conObj)
150
155
  return;
151
156
  if (conObj.length > 0) {
152
157
  showInner.value = true;
153
158
  } else {
154
- $message.warning(((_a2 = window.getLanguageByCode) == null ? void 0 : _a2.call(window, "10010.1.409")) || "\u8BF7\u8BBE\u7F6E\u641C\u7D22\u6761\u4EF6");
159
+ $message.warning(function() {
160
+ var _a, _b, _c;
161
+ try {
162
+ return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.409")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.409")) || "\u8BF7\u8BBE\u7F6E\u641C\u7D22\u6761\u4EF6";
163
+ } catch (e) {
164
+ return "\u8BF7\u8BBE\u7F6E\u641C\u7D22\u6761\u4EF6";
165
+ }
166
+ }());
155
167
  }
156
168
  }
157
169
  function getConObj(arr) {
@@ -173,16 +185,16 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
173
185
  return res;
174
186
  }
175
187
  function saveToCalss() {
176
- var _a2;
177
- (_a2 = formRef.value) == null ? void 0 : _a2.validate((err) => {
178
- var _a3;
188
+ var _a;
189
+ (_a = formRef.value) == null ? void 0 : _a.validate((err) => {
190
+ var _a2;
179
191
  if (err)
180
192
  return;
181
193
  let conObj = getConObjParams();
182
194
  if (!conObj.length) {
183
195
  conObj = [];
184
196
  }
185
- let displayCategory = (_a3 = parentNames.value.filter((item) => item.selected)[0]) == null ? void 0 : _a3.value;
197
+ let displayCategory = (_a2 = parentNames.value.filter((item) => item.selected)[0]) == null ? void 0 : _a2.value;
186
198
  let params = {
187
199
  tableId: props.tableId || "",
188
200
  setting: JSON.stringify({
@@ -266,13 +278,13 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
266
278
  parentNames.value.splice(index, 1);
267
279
  }
268
280
  async function saveTableCondiTion(params) {
269
- var _a2;
281
+ var _a;
270
282
  try {
271
283
  let res = await handleGetConfigApi(params, "requestSaveTableCondiTion", {}, props.filterApiConfig);
272
284
  if (!res)
273
285
  return;
274
286
  showInner.value = false;
275
- (_a2 = formRef.value) == null ? void 0 : _a2.restoreValidation();
287
+ (_a = formRef.value) == null ? void 0 : _a.restoreValidation();
276
288
  formValue.value.classname = "";
277
289
  parentNames.value = [];
278
290
  clearData();
@@ -298,10 +310,10 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
298
310
  }
299
311
  function setDefaultCon(widgetArr) {
300
312
  quickSearch.value.forEach((item) => {
301
- var _a2, _b;
313
+ var _a, _b;
302
314
  if (isRender(item)) {
303
315
  const curItem = widgetArr.find((widget) => widget.field_key === item.columnName);
304
- if (curItem && ((_a2 = curItem.value) == null ? void 0 : _a2.length) > 0) {
316
+ if (curItem && ((_a = curItem.value) == null ? void 0 : _a.length) > 0) {
305
317
  item.value = getCacheDef(item, curItem.value);
306
318
  item.unit = (_b = curItem.unit) != null ? _b : "";
307
319
  }
@@ -317,10 +329,10 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
317
329
  const keys = params ? Object.keys(params) : [];
318
330
  if (keys.length > 0) {
319
331
  quickSearch.value.forEach((v) => {
320
- var _a2, _b;
332
+ var _a, _b;
321
333
  if (isRender(v) && keys.includes(v.columnName)) {
322
334
  const result = params[v.columnName];
323
- v.value = Array.isArray(result) && ((_a2 = v.widgetCfg) == null ? void 0 : _a2.multiple) === false && ((_b = v == null ? void 0 : v.widgetCfg) == null ? void 0 : _b.widgetType) != WidgetTypeEnums.SELECTDYNAMIC ? result[0] : result;
335
+ v.value = Array.isArray(result) && ((_a = v.widgetCfg) == null ? void 0 : _a.multiple) === false && ((_b = v == null ? void 0 : v.widgetCfg) == null ? void 0 : _b.widgetType) != WidgetTypeEnums.SELECTDYNAMIC ? result[0] : result;
324
336
  }
325
337
  });
326
338
  }
@@ -364,7 +376,6 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
364
376
  onFilterChange
365
377
  });
366
378
  return (_ctx, _cache) => {
367
- var _a2, _b;
368
379
  return openBlock(), createElementBlock("div", null, [createElementVNode("div", _hoisted_1, [(openBlock(true), createElementBlock(Fragment, null, renderList(unref(quickSearch), (item) => {
369
380
  return openBlock(), createElementBlock("div", {
370
381
  class: normalizeClass(["quick-item", {
@@ -388,135 +399,169 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
388
399
  }), 128))]), createCommentVNode(" \u4FDD\u5B58\u5230\u5206\u7C7B\u7684\u5F39\u7A97 "), createVNode(unref(NModal), {
389
400
  show: unref(showInner),
390
401
  maskClosable: false,
391
- "positive-text": ((_a2 = window.getLanguageByCode) == null ? void 0 : _a2.call(window, "10010.1.428")) || "\u786E\u8BA4",
392
- "negative-text": ((_b = window.getLanguageByCode) == null ? void 0 : _b.call(window, "10010.1.28")) || "\u53D6\u6D88",
402
+ "positive-text": function() {
403
+ var _a, _b, _c;
404
+ try {
405
+ return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.428")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.428")) || "\u786E\u8BA4";
406
+ } catch (e) {
407
+ return "\u786E\u8BA4";
408
+ }
409
+ }(),
410
+ "negative-text": function() {
411
+ var _a, _b, _c;
412
+ try {
413
+ return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.28")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.28")) || "\u53D6\u6D88";
414
+ } catch (e) {
415
+ return "\u53D6\u6D88";
416
+ }
417
+ }(),
393
418
  onPositiveClick: saveToCalss,
394
419
  onNegativeClick: cancelSaveToCalss,
395
420
  class: "classification-modal-block"
396
421
  }, {
397
- default: withCtx(() => {
398
- var _a3;
399
- return [createVNode(unref(NCard), {
400
- title: ((_a3 = window.getLanguageByCode) == null ? void 0 : _a3.call(window, "10010.1.407")) || "\u8BBE\u7F6E\u7B5B\u9009\u5206\u7C7B",
401
- style: {
402
- "width": "520px"
403
- },
404
- bordered: false,
405
- size: "huge",
406
- role: "dialog",
407
- "aria-modal": "true"
422
+ default: withCtx(() => [createVNode(unref(NCard), {
423
+ title: function() {
424
+ var _a, _b, _c;
425
+ try {
426
+ return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.407")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.407")) || "\u8BBE\u7F6E\u7B5B\u9009\u5206\u7C7B";
427
+ } catch (e) {
428
+ return "\u8BBE\u7F6E\u7B5B\u9009\u5206\u7C7B";
429
+ }
430
+ }(),
431
+ style: {
432
+ "width": "520px"
433
+ },
434
+ bordered: false,
435
+ size: "huge",
436
+ role: "dialog",
437
+ "aria-modal": "true"
438
+ }, {
439
+ "header-extra": withCtx(() => [createElementVNode("div", _hoisted_5, [createVNode(unref(NIcon), {
440
+ component: unref(CloseOutline),
441
+ size: "24",
442
+ onClick: cancelSaveToCalss
443
+ }, null, 8, ["component"])])]),
444
+ footer: withCtx(() => [createElementVNode("div", _hoisted_6, [createVNode(unref(NButton), {
445
+ onClick: cancelSaveToCalss
408
446
  }, {
409
- "header-extra": withCtx(() => [createElementVNode("div", _hoisted_5, [createVNode(unref(NIcon), {
410
- component: unref(CloseOutline),
411
- size: "24",
412
- onClick: cancelSaveToCalss
413
- }, null, 8, ["component"])])]),
414
- footer: withCtx(() => [createElementVNode("div", _hoisted_6, [createVNode(unref(NButton), {
415
- onClick: cancelSaveToCalss
416
- }, {
417
- default: withCtx(() => {
418
- var _a4;
419
- return [createTextVNode(((_a4 = window.getLanguageByCode) == null ? void 0 : _a4.call(window, "10010.1.28")) || "\u53D6\u6D88")];
420
- }),
421
- _: 1
422
- }), createVNode(unref(NButton), {
423
- type: "info",
424
- onClick: saveToCalss
425
- }, {
426
- default: withCtx(() => {
427
- var _a4;
428
- return [createTextVNode(((_a4 = window.getLanguageByCode) == null ? void 0 : _a4.call(window, "10010.1.428")) || "\u786E\u8BA4")];
429
- }),
430
- _: 1
431
- })])]),
432
- default: withCtx(() => [createElementVNode("div", _hoisted_7, [createVNode(unref(NForm), {
433
- ref_key: "formRef",
434
- ref: formRef,
435
- "label-placement": "left",
436
- rules,
437
- model: formValue.value
438
- }, {
439
- default: withCtx(() => {
440
- var _a4;
441
- return [createVNode(unref(NFormItem), {
442
- label: ((_a4 = window.getLanguageByCode) == null ? void 0 : _a4.call(window, "10010.1.408")) || "\u7B5B\u9009\u96C6\u540D\u79F0",
443
- path: "classname"
444
- }, {
445
- default: withCtx(() => {
446
- var _a5;
447
- return [createVNode(unref(NInput), {
448
- value: formValue.value.classname,
449
- "onUpdate:value": _cache[0] || (_cache[0] = ($event) => formValue.value.classname = $event),
450
- placeholder: ((_a5 = window.getLanguageByCode) == null ? void 0 : _a5.call(window, "10010.1.360")) || "\u8BF7\u8F93\u5165\u5206\u7C7B\u540D\u79F0",
451
- clearable: ""
452
- }, null, 8, ["value"])];
453
- }),
454
- _: 1
455
- })];
456
- }),
457
- _: 1
458
- }, 8, ["model"]), createElementVNode("div", _hoisted_8, [_hoisted_9, (openBlock(true), createElementBlock(Fragment, null, renderList(unref(parentNames), (item, index) => {
459
- return openBlock(), createElementBlock("div", {
460
- class: "parent-name",
461
- key: index,
462
- onDblclick: ($event) => editParentName(item),
463
- onClick: ($event) => handleParentNameSelect(item, index)
464
- }, [item.disabled ? (openBlock(), createElementBlock("div", {
465
- key: 0,
466
- class: normalizeClass(["edit-tag", {
467
- "edit-tag-select": item.selected && item.disabled
468
- }])
469
- }, [createElementVNode("div", _hoisted_11, toDisplayString(item.value), 1), createVNode(unref(NIcon), {
470
- component: unref(CloseOutline),
471
- class: "anticon-close",
472
- size: "20",
473
- onClick: ($event) => handleParentNamesRemove(index)
474
- }, null, 8, ["component", "onClick"])], 2)) : (openBlock(), createBlock(unref(NInput), {
475
- key: 1,
476
- ref_for: true,
477
- ref_key: "parentInputRef",
478
- ref: parentInputRef,
479
- class: "parent-input",
480
- style: {
481
- "width": "100px"
482
- },
483
- value: item.value,
484
- "onUpdate:value": ($event) => item.value = $event,
485
- disabled: item.disabled,
486
- onBlur: () => item.disabled = true,
487
- maxlength: 20
488
- }, null, 8, ["value", "onUpdate:value", "disabled", "onBlur"]))], 40, _hoisted_10);
489
- }), 128)), !unref(parentNamesHasAdd) ? (openBlock(), createElementBlock(Fragment, {
490
- key: 0
491
- }, [withDirectives(createVNode(unref(NButton), {
492
- dashed: "",
493
- icon: "plus",
494
- class: "ant-btn",
495
- onClick: handleParentNamesAdd
447
+ default: withCtx(() => [createTextVNode(function() {
448
+ var _a, _b, _c;
449
+ try {
450
+ return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.28")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.28")) || "\u53D6\u6D88";
451
+ } catch (e) {
452
+ return "\u53D6\u6D88";
453
+ }
454
+ }())]),
455
+ _: 1
456
+ }), createVNode(unref(NButton), {
457
+ type: "info",
458
+ onClick: saveToCalss
459
+ }, {
460
+ default: withCtx(() => [createTextVNode(function() {
461
+ var _a, _b, _c;
462
+ try {
463
+ return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.428")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.428")) || "\u786E\u8BA4";
464
+ } catch (e) {
465
+ return "\u786E\u8BA4";
466
+ }
467
+ }())]),
468
+ _: 1
469
+ })])]),
470
+ default: withCtx(() => [createElementVNode("div", _hoisted_7, [createVNode(unref(NForm), {
471
+ ref_key: "formRef",
472
+ ref: formRef,
473
+ "label-placement": "left",
474
+ rules,
475
+ model: formValue.value
476
+ }, {
477
+ default: withCtx(() => [createVNode(unref(NFormItem), {
478
+ label: function() {
479
+ var _a, _b, _c;
480
+ try {
481
+ return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.408")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.408")) || "\u7B5B\u9009\u96C6\u540D\u79F0";
482
+ } catch (e) {
483
+ return "\u7B5B\u9009\u96C6\u540D\u79F0";
484
+ }
485
+ }(),
486
+ path: "classname"
496
487
  }, {
497
- default: withCtx(() => [createVNode(unref(NIcon), {
498
- component: unref(AddOutline),
499
- size: "20"
500
- }, null, 8, ["component"]), createTextVNode("\u6DFB\u52A0\u5206\u7C7B ")]),
488
+ default: withCtx(() => [createVNode(unref(NInput), {
489
+ value: formValue.value.classname,
490
+ "onUpdate:value": _cache[0] || (_cache[0] = ($event) => formValue.value.classname = $event),
491
+ placeholder: function() {
492
+ var _a, _b, _c;
493
+ try {
494
+ return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.360")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.360")) || "\u8BF7\u8F93\u5165\u5206\u7C7B\u540D\u79F0";
495
+ } catch (e) {
496
+ return "\u8BF7\u8F93\u5165\u5206\u7C7B\u540D\u79F0";
497
+ }
498
+ }(),
499
+ clearable: ""
500
+ }, null, 8, ["value"])]),
501
501
  _: 1
502
- }, 512), [[vShow, !unref(showAdd)]]), withDirectives(createVNode(unref(NInput), {
503
- ref_key: "parentInputAddRef",
504
- ref: parentInputAddRef,
502
+ })]),
503
+ _: 1
504
+ }, 8, ["model"]), createElementVNode("div", _hoisted_8, [_hoisted_9, (openBlock(true), createElementBlock(Fragment, null, renderList(unref(parentNames), (item, index) => {
505
+ return openBlock(), createElementBlock("div", {
506
+ class: "parent-name",
507
+ key: index,
508
+ onDblclick: ($event) => editParentName(item),
509
+ onClick: ($event) => handleParentNameSelect(item, index)
510
+ }, [item.disabled ? (openBlock(), createElementBlock("div", {
511
+ key: 0,
512
+ class: normalizeClass(["edit-tag", {
513
+ "edit-tag-select": item.selected && item.disabled
514
+ }])
515
+ }, [createElementVNode("div", _hoisted_11, toDisplayString(item.value), 1), createVNode(unref(NIcon), {
516
+ component: unref(CloseOutline),
517
+ class: "anticon-close",
518
+ size: "20",
519
+ onClick: ($event) => handleParentNamesRemove(index)
520
+ }, null, 8, ["component", "onClick"])], 2)) : (openBlock(), createBlock(unref(NInput), {
521
+ key: 1,
522
+ ref_for: true,
523
+ ref_key: "parentInputRef",
524
+ ref: parentInputRef,
505
525
  class: "parent-input",
506
526
  style: {
507
527
  "width": "100px"
508
528
  },
509
- value: unref(addVal),
510
- "onUpdate:value": _cache[1] || (_cache[1] = ($event) => isRef(addVal) ? addVal.value = $event : addVal = $event),
511
- valueModifiers: {
512
- trim: true
513
- },
514
- onBlur: hanldeBlur,
529
+ value: item.value,
530
+ "onUpdate:value": ($event) => item.value = $event,
531
+ disabled: item.disabled,
532
+ onBlur: () => item.disabled = true,
515
533
  maxlength: 20
516
- }, null, 8, ["value"]), [[vShow, unref(showAdd)]])], 64)) : createCommentVNode("v-if", true)])])]),
534
+ }, null, 8, ["value", "onUpdate:value", "disabled", "onBlur"]))], 40, _hoisted_10);
535
+ }), 128)), !unref(parentNamesHasAdd) ? (openBlock(), createElementBlock(Fragment, {
536
+ key: 0
537
+ }, [withDirectives(createVNode(unref(NButton), {
538
+ dashed: "",
539
+ icon: "plus",
540
+ class: "ant-btn",
541
+ onClick: handleParentNamesAdd
542
+ }, {
543
+ default: withCtx(() => [createVNode(unref(NIcon), {
544
+ component: unref(AddOutline),
545
+ size: "20"
546
+ }, null, 8, ["component"]), createTextVNode("\u6DFB\u52A0\u5206\u7C7B ")]),
517
547
  _: 1
518
- })];
519
- }),
548
+ }, 512), [[vShow, !unref(showAdd)]]), withDirectives(createVNode(unref(NInput), {
549
+ ref_key: "parentInputAddRef",
550
+ ref: parentInputAddRef,
551
+ class: "parent-input",
552
+ style: {
553
+ "width": "100px"
554
+ },
555
+ value: unref(addVal),
556
+ "onUpdate:value": _cache[1] || (_cache[1] = ($event) => isRef(addVal) ? addVal.value = $event : addVal = $event),
557
+ valueModifiers: {
558
+ trim: true
559
+ },
560
+ onBlur: hanldeBlur,
561
+ maxlength: 20
562
+ }, null, 8, ["value"]), [[vShow, unref(showAdd)]])], 64)) : createCommentVNode("v-if", true)])])]),
563
+ _: 1
564
+ })]),
520
565
  _: 1
521
566
  }, 8, ["show"])]);
522
567
  };
@@ -5,7 +5,6 @@ import { useDebounceFn, onClickOutside } from '@vueuse/core';
5
5
  import { NPopover, NInput, NSpin } from 'naive-ui';
6
6
  import { InjectionRecommendSearchRootSlots, InjectionRecommendSearchRef } from '../constant/index.js';
7
7
 
8
- var _a;
9
8
  var BaseSearch = /* @__PURE__ */ defineComponent({
10
9
  props: {
11
10
  displayValue: {
@@ -22,7 +21,14 @@ var BaseSearch = /* @__PURE__ */ defineComponent({
22
21
  },
23
22
  placeholder: {
24
23
  type: String,
25
- default: ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.383")) || "\u8BF7\u8F93\u5165"
24
+ default: function() {
25
+ var _a, _b, _c;
26
+ try {
27
+ return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.383")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.383")) || "\u8BF7\u8F93\u5165";
28
+ } catch (e) {
29
+ return "\u8BF7\u8F93\u5165";
30
+ }
31
+ }()
26
32
  },
27
33
  clearable: {
28
34
  type: Boolean,
@@ -76,8 +82,8 @@ var BaseSearch = /* @__PURE__ */ defineComponent({
76
82
  }
77
83
  });
78
84
  function openMenuAtInput(evt) {
79
- var _a2;
80
- if (((_a2 = evt.target) == null ? void 0 : _a2.tagName) !== "INPUT")
85
+ var _a;
86
+ if (((_a = evt.target) == null ? void 0 : _a.tagName) !== "INPUT")
81
87
  return;
82
88
  openMenu();
83
89
  }
@@ -91,23 +97,23 @@ var BaseSearch = /* @__PURE__ */ defineComponent({
91
97
  }
92
98
  }
93
99
  function closeMenu() {
94
- var _a2;
100
+ var _a;
95
101
  show.value = false;
96
- (_a2 = inputRef.value) == null ? void 0 : _a2.blur();
102
+ (_a = inputRef.value) == null ? void 0 : _a.blur();
97
103
  emit("closeMenu");
98
104
  }
99
105
  function onClear() {
100
106
  emit("clear");
101
107
  }
102
108
  onClickOutside(inputRef, (evt) => {
103
- var _a2;
109
+ var _a;
104
110
  if (!show.value)
105
111
  return;
106
112
  const _evt = evt;
107
113
  if (!_evt.target)
108
114
  return closeMenu();
109
115
  if (isInPopper(_evt.target)) {
110
- (_a2 = inputRef.value) == null ? void 0 : _a2.focus();
116
+ (_a = inputRef.value) == null ? void 0 : _a.focus();
111
117
  return;
112
118
  }
113
119
  closeMenu();
@@ -3,18 +3,31 @@ import { useVModel, useVirtualList } from '@vueuse/core';
3
3
  import RecommendMenu from './RecommendMenu.vue.js';
4
4
  import BaseSearch from './BaseSearch.js';
5
5
 
6
- var _a, _b, _c;
7
6
  const _hoisted_1 = {
8
7
  class: "recommend-search"
9
8
  };
10
9
  const _hoisted_2 = /* @__PURE__ */ createElementVNode("section", {
11
10
  class: "recommend-search__empty"
12
- }, ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.445")) || "\u6682\u65E0\u6570\u636E", -1);
11
+ }, function() {
12
+ var _a, _b, _c;
13
+ try {
14
+ return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.445")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.445")) || "\u6682\u65E0\u6570\u636E";
15
+ } catch (e) {
16
+ return "\u6682\u65E0\u6570\u636E";
17
+ }
18
+ }(), -1);
13
19
  const _hoisted_3 = ["onClick"];
14
20
  const _hoisted_4 = ["title"];
15
21
  const _hoisted_5 = /* @__PURE__ */ createElementVNode("section", {
16
22
  class: "recommend-search__empty"
17
- }, ((_b = window.getLanguageByCode) == null ? void 0 : _b.call(window, "10010.1.445")) || "\u6682\u65E0\u6570\u636E", -1);
23
+ }, function() {
24
+ var _a, _b, _c;
25
+ try {
26
+ return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.445")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.445")) || "\u6682\u65E0\u6570\u636E";
27
+ } catch (e) {
28
+ return "\u6682\u65E0\u6570\u636E";
29
+ }
30
+ }(), -1);
18
31
  var _sfc_main = /* @__PURE__ */ defineComponent({
19
32
  __name: "RecommendInput",
20
33
  props: {
@@ -27,7 +40,14 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
27
40
  },
28
41
  placeholder: {
29
42
  type: String,
30
- default: ((_c = window.getLanguageByCode) == null ? void 0 : _c.call(window, "10010.1.383")) || "\u8BF7\u8F93\u5165"
43
+ default: function() {
44
+ var _a, _b, _c;
45
+ try {
46
+ return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.383")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.383")) || "\u8BF7\u8F93\u5165";
47
+ } catch (e) {
48
+ return "\u8BF7\u8F93\u5165";
49
+ }
50
+ }()
31
51
  },
32
52
  clearable: {
33
53
  type: Boolean,
@@ -53,8 +73,8 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
53
73
  const props = __props;
54
74
  const baseSearchRef = ref();
55
75
  function setPattern(value = "") {
56
- var _a2;
57
- (_a2 = baseSearchRef.value) == null ? void 0 : _a2.setPattern(value);
76
+ var _a;
77
+ (_a = baseSearchRef.value) == null ? void 0 : _a.setPattern(value);
58
78
  }
59
79
  const valueRef = useVModel(props, "value", emits);
60
80
  watch(valueRef, setPattern);
@@ -84,9 +104,9 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
84
104
  type,
85
105
  value
86
106
  }) {
87
- var _a2;
107
+ var _a;
88
108
  valueRef.value = value.itemObj;
89
- (_a2 = baseSearchRef.value) == null ? void 0 : _a2.closeMenu();
109
+ (_a = baseSearchRef.value) == null ? void 0 : _a.closeMenu();
90
110
  emits("choose", {
91
111
  type,
92
112
  value: value.itemObj
@@ -6,7 +6,6 @@ import { isObject } from 'lodash-es';
6
6
  import BaseSearch from './BaseSearch.js';
7
7
  import { NIcon } from 'naive-ui';
8
8
 
9
- var _a, _b;
10
9
  const _hoisted_1 = {
11
10
  class: "recommend-search"
12
11
  };
@@ -14,7 +13,14 @@ const _hoisted_2 = ["onClick"];
14
13
  const _hoisted_3 = ["title"];
15
14
  const _hoisted_4 = /* @__PURE__ */ createElementVNode("section", {
16
15
  class: "recommend-search__empty"
17
- }, ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.445")) || "\u6682\u65E0\u6570\u636E", -1);
16
+ }, function() {
17
+ var _a, _b, _c;
18
+ try {
19
+ return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.445")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.445")) || "\u6682\u65E0\u6570\u636E";
20
+ } catch (e) {
21
+ return "\u6682\u65E0\u6570\u636E";
22
+ }
23
+ }(), -1);
18
24
  var _sfc_main = /* @__PURE__ */ defineComponent({
19
25
  __name: "RecommendSelect",
20
26
  props: {
@@ -31,7 +37,14 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
31
37
  },
32
38
  placeholder: {
33
39
  type: String,
34
- default: ((_b = window.getLanguageByCode) == null ? void 0 : _b.call(window, "10010.1.147")) || "\u8BF7\u9009\u62E9"
40
+ default: function() {
41
+ var _a, _b, _c;
42
+ try {
43
+ return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.147")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.147")) || "\u8BF7\u9009\u62E9";
44
+ } catch (e) {
45
+ return "\u8BF7\u9009\u62E9";
46
+ }
47
+ }()
35
48
  },
36
49
  editPlaceholder: {
37
50
  type: String,
@@ -111,11 +124,11 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
111
124
  });
112
125
  }
113
126
  function onChooseOption(option) {
114
- var _a2;
127
+ var _a;
115
128
  if (!isObject(option))
116
129
  return;
117
130
  valueRef.value = option[props.valueKey];
118
- (_a2 = baseSearchRef.value) == null ? void 0 : _a2.closeMenu();
131
+ (_a = baseSearchRef.value) == null ? void 0 : _a.closeMenu();
119
132
  currentOption.value = option;
120
133
  emitChoose(option[props.valueKey]);
121
134
  }
@@ -273,10 +273,14 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
273
273
  key: 0,
274
274
  onClick: cancel
275
275
  }, {
276
- default: withCtx(() => {
277
- var _a;
278
- return [createTextVNode(((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.28")) || "\u53D6\u6D88")];
279
- }),
276
+ default: withCtx(() => [createTextVNode(function() {
277
+ var _a, _b, _c;
278
+ try {
279
+ return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.28")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.28")) || "\u53D6\u6D88";
280
+ } catch (e) {
281
+ return "\u53D6\u6D88";
282
+ }
283
+ }())]),
280
284
  _: 1
281
285
  })) : createCommentVNode("v-if", true), unref(isSaveBtn) ? (openBlock(), createBlock(unref(NButton), {
282
286
  key: 1,
@@ -284,10 +288,14 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
284
288
  disabled: state.banSubmit,
285
289
  type: "primary"
286
290
  }, {
287
- default: withCtx(() => {
288
- var _a;
289
- return [createTextVNode(((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.244")) || "\u4FDD\u5B58")];
290
- }),
291
+ default: withCtx(() => [createTextVNode(function() {
292
+ var _a, _b, _c;
293
+ try {
294
+ return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.244")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.244")) || "\u4FDD\u5B58";
295
+ } catch (e) {
296
+ return "\u4FDD\u5B58";
297
+ }
298
+ }())]),
291
299
  _: 1
292
300
  }, 8, ["onClick", "disabled"])) : createCommentVNode("v-if", true), renderSlot(_ctx.$slots, "extendBtn")])) : createCommentVNode("v-if", true)], 64))], 64))], 64)) : createCommentVNode("v-if", true)], 2);
293
301
  };