cnhis-design-vue 3.2.7-beta.3 → 3.2.7-beta.30

Sign up to get free protection for your applications and to get access to all the features.
Files changed (201) hide show
  1. package/README.md +87 -87
  2. package/es/components/base-search/index.d.ts +2 -0
  3. package/es/components/base-search/src/index.vue.d.ts +2 -0
  4. package/es/components/button-print/index.d.ts +27 -0
  5. package/es/components/button-print/src/ButtonPrint.vue.d.ts +27 -0
  6. package/es/components/button-print/src/ButtonPrint.vue2.js +1 -1
  7. package/es/components/button-print/src/components/NewPrintComponent.vue.d.ts +1 -0
  8. package/es/components/button-print/src/components/NewPrintComponent.vue2.js +1 -1
  9. package/es/components/button-print/src/components/OldPrintComponent.vue.d.ts +9 -0
  10. package/es/components/button-print/src/components/OldPrintComponent.vue2.js +1 -1
  11. package/es/components/button-print/style/index.css +1 -1
  12. package/es/components/callback/src/components/render/popupMaps.d.ts +27 -0
  13. package/es/components/classification/index.d.ts +60 -5
  14. package/es/components/classification/src/components/search-filter/index.vue.d.ts +60 -5
  15. package/es/components/classification/src/components/set-classification/index.vue.d.ts +60 -5
  16. package/es/components/classification/src/index.vue.d.ts +60 -5
  17. package/es/components/date-picker/index.d.ts +13 -0
  18. package/es/components/date-picker/src/DatePicker.vue.d.ts +13 -0
  19. package/es/components/date-picker/src/DatePicker.vue2.js +1 -1
  20. package/es/components/fabric-chart/src/constants/index.d.ts +3 -1
  21. package/es/components/fabric-chart/src/constants/index.js +1 -1
  22. package/es/components/fabric-chart/src/hooks/birthProcess/useBirthProcess.js +1 -1
  23. package/es/components/fabric-chart/src/hooks/birthProcess/useBirthProcessChart.d.ts +8 -3
  24. package/es/components/fabric-chart/src/hooks/birthProcess/useBirthProcessChart.js +1 -1
  25. package/es/components/fabric-chart/src/hooks/electrocardiogram/useElectrocardiogramChart.d.ts +9 -6
  26. package/es/components/fabric-chart/src/hooks/electrocardiogram/useElectrocardiogramChart.js +1 -1
  27. package/es/components/fabric-chart/src/hooks/electrocardiogram/useMeasureInstrument.js +1 -1
  28. package/es/components/fabric-chart/src/hooks/newBirthProcess/useNewBirthProcess.js +1 -1
  29. package/es/components/fabric-chart/src/hooks/newBirthProcess/useNewBirthProcessChart.d.ts +0 -2
  30. package/es/components/fabric-chart/src/hooks/newBirthProcess/useNewBirthProcessChart.js +1 -1
  31. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useSurgicalAnesthesiaChart.d.ts +8 -3
  32. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useSurgicalAnesthesiaChart.js +1 -1
  33. package/es/components/fabric-chart/src/hooks/temperature/useCenter.js +1 -1
  34. package/es/components/fabric-chart/src/hooks/temperature/useLeft.js +1 -1
  35. package/es/components/fabric-chart/src/hooks/temperature/useTemperatureChart.d.ts +8 -3
  36. package/es/components/fabric-chart/src/hooks/temperature/useTemperatureChart.js +1 -1
  37. package/es/components/fabric-chart/src/hooks/useScaleColumn.d.ts +1 -1
  38. package/es/components/fabric-chart/src/hooks/useScaleColumn.js +1 -1
  39. package/es/components/fabric-chart/src/interface.d.ts +11 -1
  40. package/es/components/field-set/src/FieldColor.vue.d.ts +26 -0
  41. package/es/components/field-set/src/FieldSet.vue.d.ts +1 -1
  42. package/es/components/field-set/src/components/condition.vue.d.ts +13 -0
  43. package/es/components/field-set/src/components/edit-dialog.vue.d.ts +26 -0
  44. package/es/components/field-set/src/components/edit-filter.vue.d.ts +13 -0
  45. package/es/components/form-config/index.d.ts +40 -3
  46. package/es/components/form-config/src/FormConfig.vue.d.ts +40 -3
  47. package/es/components/form-config/src/components/FormConfigCreator.vue.d.ts +14 -0
  48. package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +23 -3
  49. package/es/components/form-config/src/components/FormConfigEdit.vue2.js +1 -1
  50. package/es/components/form-render/index.d.ts +14 -0
  51. package/es/components/form-render/src/FormRender.vue.d.ts +14 -0
  52. package/es/components/form-render/src/FormRender.vue2.js +1 -1
  53. package/es/components/form-render/src/FormRenderWrapper.vue.d.ts +14 -0
  54. package/es/components/form-render/src/components/renderer/formItem.d.ts +9 -0
  55. package/es/components/form-render/src/components/renderer/formItem.js +1 -1
  56. package/es/components/form-render/src/components/renderer/lineBar/FormCollapse.vue.d.ts +1 -0
  57. package/es/components/form-render/src/components/renderer/lineBar/index.d.ts +1 -0
  58. package/es/components/form-render/src/components/tooltipMessage.vue2.js +1 -1
  59. package/es/components/form-render/src/hooks/useFieldListAdaptor.js +1 -1
  60. package/es/components/form-render/src/hooks/useFieldNormalize.d.ts +2 -0
  61. package/es/components/form-render/src/hooks/useFormValidator.js +1 -1
  62. package/es/components/form-render/src/types/fieldItem.d.ts +3 -1
  63. package/es/components/form-render/src/types/index.d.ts +2 -1
  64. package/es/components/form-render/src/utils/business.js +1 -1
  65. package/es/components/form-render/src/utils/schema.d.ts +1 -1
  66. package/es/components/form-render/src/utils/schema.js +1 -1
  67. package/es/components/iho-chat/index.d.ts +300 -75
  68. package/es/components/iho-chat/src/Index.vue.d.ts +300 -75
  69. package/es/components/iho-chat/src/Index.vue2.js +1 -1
  70. package/es/components/iho-chat/src/components/ChatAdd.vue.d.ts +35 -13
  71. package/es/components/iho-chat/src/components/ChatAdd.vue2.js +1 -1
  72. package/es/components/iho-chat/src/components/ChatFooter.vue.d.ts +41 -14
  73. package/es/components/iho-chat/src/components/ChatFooter.vue2.js +1 -1
  74. package/es/components/iho-chat/src/components/ChatHeader.vue.d.ts +50 -14
  75. package/es/components/iho-chat/src/components/ChatHeader.vue2.js +1 -1
  76. package/es/components/iho-chat/src/components/ChatMain.vue.d.ts +24 -4
  77. package/es/components/iho-chat/src/components/ChatMain.vue2.js +1 -1
  78. package/es/components/iho-chat/src/components/ChatRecord.vue.d.ts +13 -0
  79. package/es/components/iho-chat/src/components/ChatRecord.vue2.js +1 -1
  80. package/es/components/iho-chat/src/components/ChatSearch.vue.d.ts +60 -11
  81. package/es/components/iho-chat/src/components/ChatSearch.vue2.js +1 -1
  82. package/es/components/iho-chat/src/components/ChatSet.vue2.js +1 -1
  83. package/es/components/iho-chat/src/components/ContextMenu.d.ts +15 -2
  84. package/es/components/iho-chat/src/components/ContextMenu.js +1 -1
  85. package/es/components/iho-chat/src/components/MultipleVideo.vue.d.ts +62 -24
  86. package/es/components/iho-chat/src/components/MultipleVideo.vue2.js +1 -1
  87. package/es/components/iho-chat/src/components/PersonProfile.vue2.js +1 -1
  88. package/es/components/iho-chat/src/components/SiderList.vue.d.ts +1 -0
  89. package/es/components/iho-chat/src/components/SiderList.vue2.js +1 -1
  90. package/es/components/iho-chat/src/components/Video.vue.d.ts +14 -2
  91. package/es/components/iho-chat/src/components/Video.vue2.js +1 -1
  92. package/es/components/iho-chat/src/hooks/useScrollLoading.d.ts +1 -1
  93. package/es/components/iho-chat/src/hooks/useScrollLoading.js +1 -1
  94. package/es/components/iho-chat/src/hooks/useSearchUserList.d.ts +11 -0
  95. package/es/components/iho-chat/src/hooks/useSearchUserList.js +1 -0
  96. package/es/components/iho-chat/src/hooks/useSession.js +1 -1
  97. package/es/components/iho-chat/src/hooks/useState.js +1 -1
  98. package/es/components/iho-chat/src/hooks/useVideo.d.ts +11 -0
  99. package/es/components/iho-chat/src/hooks/useVideo.js +1 -1
  100. package/es/components/iho-chat/src/types/index.d.ts +0 -1
  101. package/es/components/iho-chat/src/utils/index.js +1 -1
  102. package/es/components/iho-chat/style/index.css +1 -1
  103. package/es/components/iho-table/index.d.ts +13 -0
  104. package/es/components/iho-table/src/IhoTable.vue.d.ts +13 -0
  105. package/es/components/iho-table/src/IhoTable.vue2.js +1 -1
  106. package/es/components/iho-table/src/plugins/filterDaterangeRenderPlugin/filter.vue.d.ts +13 -0
  107. package/es/components/iho-table/src/plugins/headerPlugin/index.d.ts +1 -0
  108. package/es/components/iho-table/src/plugins/headerPlugin/index.js +1 -0
  109. package/es/components/iho-table/src/plugins/headerPlugin/tooltipMessage.vue.d.ts +13 -0
  110. package/es/components/iho-table/src/plugins/headerPlugin/tooltipMessage.vue.js +1 -0
  111. package/es/components/iho-table/src/plugins/headerPlugin/tooltipMessage.vue2.js +1 -0
  112. package/es/components/iho-table/src/plugins/index.js +1 -1
  113. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/editDate.vue.d.ts +13 -0
  114. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin/editTime.vue.d.ts +20 -2
  115. package/es/components/iho-table/src/types/index.d.ts +3 -0
  116. package/es/components/iho-table/src/utils/index.d.ts +0 -1
  117. package/es/components/iho-table/src/utils/index.js +1 -1
  118. package/es/components/index.css +1 -1
  119. package/es/components/info-header/index.d.ts +34 -0
  120. package/es/components/info-header/src/InfoHeader.vue.d.ts +34 -0
  121. package/es/components/info-header/src/components/infoDescription/DescriptionItem.vue.d.ts +2 -0
  122. package/es/components/info-header/src/components/infoDescription/DescriptionItem.vue2.js +1 -1
  123. package/es/components/info-header/src/components/infoDescription/DescriptionList.vue.d.ts +2 -0
  124. package/es/components/info-header/src/components/infoDescription/index.vue.d.ts +16 -0
  125. package/es/components/info-header/src/components/infoDescription/index.vue2.js +1 -1
  126. package/es/components/info-header/src/components/patientInfo/index.vue.d.ts +14 -0
  127. package/es/components/quick-search/src/index.vue2.js +1 -1
  128. package/es/components/select-label/src/LabelFormContent.vue2.js +1 -1
  129. package/es/components/shortcut-setter/index.d.ts +16 -1
  130. package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +16 -1
  131. package/es/components/steps-wheel/index.d.ts +1 -1
  132. package/es/components/steps-wheel/src/StepsWheel.vue.d.ts +1 -1
  133. package/es/components/table-filter/src/components/bi-filter/ValueCfg.vue.d.ts +13 -0
  134. package/es/components/table-filter/src/components/bi-filter/components/Date.vue.d.ts +13 -0
  135. package/es/components/table-filter/src/components/bi-filter/components/index.d.ts +13 -0
  136. package/es/components/table-filter/src/components/bi-filter/index.vue.d.ts +13 -0
  137. package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue.d.ts +47 -5
  138. package/es/components/table-filter/src/components/classify-filter/components/Date.vue.d.ts +13 -0
  139. package/es/components/table-filter/src/components/classify-filter/components/DateRange.vue.d.ts +13 -0
  140. package/es/components/table-filter/src/components/classify-filter/components/SelectDynamic.vue.d.ts +37 -19
  141. package/es/components/table-filter/src/components/classify-filter/components/SelectDynamic.vue2.js +1 -1
  142. package/es/components/table-filter/src/components/classify-filter/components/index.d.ts +47 -5
  143. package/es/components/table-filter/src/components/classify-filter/hooks/useFilterConditions.js +1 -1
  144. package/es/components/table-filter/src/components/classify-filter/index.vue.d.ts +47 -5
  145. package/es/components/table-filter/src/components/render-widget/components/DateInner.vue.d.ts +13 -0
  146. package/es/components/table-filter/src/components/render-widget/components/DateOut.vue.d.ts +13 -0
  147. package/es/components/table-filter/src/components/render-widget/components/DateRangeInner.vue.d.ts +13 -0
  148. package/es/components/table-filter/src/components/render-widget/components/DateRangeOut.vue.d.ts +13 -0
  149. package/es/components/table-filter/src/components/render-widget/components/SelectDynamic.vue.d.ts +33 -18
  150. package/es/components/table-filter/src/components/render-widget/components/SelectDynamic.vue2.js +1 -1
  151. package/es/components/table-filter/src/components/render-widget/components/SelectDynamicOption/index.vue.d.ts +13 -0
  152. package/es/components/table-filter/src/components/render-widget/components/SelectDynamicOption/index.vue2.js +1 -1
  153. package/es/components/table-filter/src/components/render-widget/components/index.d.ts +69 -4
  154. package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.d.ts +69 -4
  155. package/es/components/table-filter/src/tool/transformData.js +1 -1
  156. package/es/components/table-filter/src/types/index.d.ts +3 -0
  157. package/es/components/time-line/index.d.ts +4 -4
  158. package/es/components/time-line/src/TimeLine.vue.d.ts +1 -1
  159. package/es/components/time-line/src/TimeLine.vue2.js +1 -1
  160. package/es/components/time-picker/index.d.ts +20 -2
  161. package/es/components/time-picker/src/TimePicker.vue.d.ts +21 -2
  162. package/es/components/time-picker/src/TimePicker.vue2.js +1 -1
  163. package/es/shared/assets/img/defaultCover/10review_successful.png.js +1 -1
  164. package/es/shared/assets/img/defaultCover/11review_fail.png.js +1 -1
  165. package/es/shared/assets/img/defaultCover/12no_setting.png.js +1 -1
  166. package/es/shared/assets/img/defaultCover/13no_menu_setting.png.js +1 -1
  167. package/es/shared/assets/img/defaultCover/14no_call_setting.png.js +1 -1
  168. package/es/shared/assets/img/defaultCover/15no_use_tag.png.js +1 -1
  169. package/es/shared/assets/img/defaultCover/16no_table_data.png.js +1 -1
  170. package/es/shared/assets/img/defaultCover/1location.png.js +1 -1
  171. package/es/shared/assets/img/defaultCover/2notfound.png.js +1 -1
  172. package/es/shared/assets/img/defaultCover/3loading.png.js +1 -1
  173. package/es/shared/assets/img/defaultCover/4no_permission.png.js +1 -1
  174. package/es/shared/assets/img/defaultCover/5no_data.png.js +1 -1
  175. package/es/shared/assets/img/defaultCover/6no_network.png.js +1 -1
  176. package/es/shared/assets/img/defaultCover/7no_doctor.png.js +1 -1
  177. package/es/shared/assets/img/defaultCover/8system_error.png.js +1 -1
  178. package/es/shared/assets/img/defaultCover/9system_upgrade.png.js +1 -1
  179. package/es/shared/assets/img/failure.png.js +1 -1
  180. package/es/shared/assets/img/no-permission.png.js +1 -1
  181. package/es/shared/assets/img/nodata.png.js +1 -1
  182. package/es/shared/assets/img/notfound.png.js +1 -1
  183. package/es/shared/assets/img/qr.png.js +1 -1
  184. package/es/shared/assets/img/success.png.js +1 -1
  185. package/es/shared/assets/img/table_style_2.png.js +1 -1
  186. package/es/shared/assets/img/video.png.js +1 -1
  187. package/es/shared/assets/img/video_default_cover.png.js +1 -1
  188. package/es/shared/assets/img/xb_big.png.js +1 -1
  189. package/es/shared/assets/img/xb_small.png.js +1 -1
  190. package/es/shared/package.json.js +1 -1
  191. package/es/shared/utils/business.js +1 -1
  192. package/package.json +2 -2
  193. package/es/components/bpmn-workflow/src/BpmnWorkflow.d.ts +0 -0
  194. package/es/components/bpmn-workflow/types/BpmnViewer.d.ts +0 -1
  195. package/es/components/bpmn-workflow/types/ModelingModule.d.ts +0 -1
  196. package/es/components/bpmn-workflow/types/MoveCanvasModule.d.ts +0 -1
  197. package/es/components/iho-table/src/plugins/headerPlugin.d.ts +0 -1
  198. package/es/components/iho-table/src/plugins/headerPlugin.js +0 -1
  199. package/es/shared/components/VueDraggable/src/vuedraggable.d.ts +0 -86
  200. package/es/shared/utils/fabricjs/index.d.ts +0 -6823
  201. package/es/shared/utils/tapable/index.d.ts +0 -139
@@ -174,6 +174,7 @@ declare const InfoHeader: SFCWithInstall<import("vue").DefineComponent<{
174
174
  linebarDirection: "horizontal" | "vertical";
175
175
  linebarTextDirection: "horizontal" | "vertical";
176
176
  autoWidth: number | boolean;
177
+ feedbackType: "default" | "tooltip";
177
178
  }>>>;
178
179
  };
179
180
  encrypted: {
@@ -356,6 +357,7 @@ declare const InfoHeader: SFCWithInstall<import("vue").DefineComponent<{
356
357
  linebarDirection: "horizontal" | "vertical";
357
358
  linebarTextDirection: "horizontal" | "vertical";
358
359
  autoWidth: number | boolean;
360
+ feedbackType: "default" | "tooltip";
359
361
  }>>>;
360
362
  };
361
363
  encrypted: {
@@ -549,6 +551,7 @@ declare const InfoHeader: SFCWithInstall<import("vue").DefineComponent<{
549
551
  linebarDirection: "horizontal" | "vertical";
550
552
  linebarTextDirection: "horizontal" | "vertical";
551
553
  autoWidth: number | boolean;
554
+ feedbackType: "default" | "tooltip";
552
555
  }>>;
553
556
  encrypted: boolean;
554
557
  };
@@ -673,6 +676,7 @@ declare const InfoHeader: SFCWithInstall<import("vue").DefineComponent<{
673
676
  };
674
677
  SchemaField: import("vue").Component;
675
678
  formRenderRef: import("vue").Ref<import("..").FormRenderExpose | undefined>;
679
+ setEdit: (v: boolean) => void;
676
680
  onItemDblclick: (item: Partial<{
677
681
  [K: string]: any;
678
682
  slot: string | import("vue").Component | ((payload: {
@@ -799,6 +803,7 @@ declare const InfoHeader: SFCWithInstall<import("vue").DefineComponent<{
799
803
  linebarDirection: "horizontal" | "vertical";
800
804
  linebarTextDirection: "horizontal" | "vertical";
801
805
  autoWidth: number | boolean;
806
+ feedbackType: "default" | "tooltip";
802
807
  }>) => Record<string, import("@formily/json-schema").Stringify<{
803
808
  [key: symbol]: any;
804
809
  [key: `x-${string}`]: any;
@@ -1343,6 +1348,10 @@ declare const InfoHeader: SFCWithInstall<import("vue").DefineComponent<{
1343
1348
  type: BooleanConstructor;
1344
1349
  default: boolean;
1345
1350
  };
1351
+ feedbackType: {
1352
+ type: import("vue").PropType<"default" | "tooltip">;
1353
+ default: string;
1354
+ };
1346
1355
  }, {
1347
1356
  props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
1348
1357
  fieldList: {
@@ -1538,6 +1547,10 @@ declare const InfoHeader: SFCWithInstall<import("vue").DefineComponent<{
1538
1547
  type: BooleanConstructor;
1539
1548
  default: boolean;
1540
1549
  };
1550
+ feedbackType: {
1551
+ type: import("vue").PropType<"default" | "tooltip">;
1552
+ default: string;
1553
+ };
1541
1554
  }>> & {
1542
1555
  onFormChange?: ((...args: any[]) => any) | undefined;
1543
1556
  onScroll?: ((...args: any[]) => any) | undefined;
@@ -1710,6 +1723,7 @@ declare const InfoHeader: SFCWithInstall<import("vue").DefineComponent<{
1710
1723
  linebarDirection: "horizontal" | "vertical";
1711
1724
  linebarTextDirection: "horizontal" | "vertical";
1712
1725
  autoWidth: number | boolean;
1726
+ feedbackType: "default" | "tooltip";
1713
1727
  }>) => Record<string, import("@formily/json-schema").Stringify<{
1714
1728
  [key: symbol]: any;
1715
1729
  [key: `x-${string}`]: any;
@@ -2089,6 +2103,10 @@ declare const InfoHeader: SFCWithInstall<import("vue").DefineComponent<{
2089
2103
  type: BooleanConstructor;
2090
2104
  default: boolean;
2091
2105
  };
2106
+ feedbackType: {
2107
+ type: import("vue").PropType<"default" | "tooltip">;
2108
+ default: string;
2109
+ };
2092
2110
  }>> & {
2093
2111
  onFormChange?: ((...args: any[]) => any) | undefined;
2094
2112
  onScroll?: ((...args: any[]) => any) | undefined;
@@ -2119,6 +2137,7 @@ declare const InfoHeader: SFCWithInstall<import("vue").DefineComponent<{
2119
2137
  linebarDirection: "horizontal" | "vertical";
2120
2138
  linebarTextDirection: "horizontal" | "vertical";
2121
2139
  autoWidth: number | boolean;
2140
+ feedbackType: "default" | "tooltip";
2122
2141
  operationalFormInit: boolean;
2123
2142
  incrementalRender: boolean;
2124
2143
  }>;
@@ -2442,6 +2461,10 @@ declare const InfoHeader: SFCWithInstall<import("vue").DefineComponent<{
2442
2461
  type: BooleanConstructor;
2443
2462
  default: boolean;
2444
2463
  };
2464
+ feedbackType: {
2465
+ type: import("vue").PropType<"default" | "tooltip">;
2466
+ default: string;
2467
+ };
2445
2468
  }, {
2446
2469
  props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
2447
2470
  fieldList: {
@@ -2637,6 +2660,10 @@ declare const InfoHeader: SFCWithInstall<import("vue").DefineComponent<{
2637
2660
  type: BooleanConstructor;
2638
2661
  default: boolean;
2639
2662
  };
2663
+ feedbackType: {
2664
+ type: import("vue").PropType<"default" | "tooltip">;
2665
+ default: string;
2666
+ };
2640
2667
  }>> & {
2641
2668
  onFormChange?: ((...args: any[]) => any) | undefined;
2642
2669
  onScroll?: ((...args: any[]) => any) | undefined;
@@ -2809,6 +2836,7 @@ declare const InfoHeader: SFCWithInstall<import("vue").DefineComponent<{
2809
2836
  linebarDirection: "horizontal" | "vertical";
2810
2837
  linebarTextDirection: "horizontal" | "vertical";
2811
2838
  autoWidth: number | boolean;
2839
+ feedbackType: "default" | "tooltip";
2812
2840
  }>) => Record<string, import("@formily/json-schema").Stringify<{
2813
2841
  [key: symbol]: any;
2814
2842
  [key: `x-${string}`]: any;
@@ -3188,6 +3216,10 @@ declare const InfoHeader: SFCWithInstall<import("vue").DefineComponent<{
3188
3216
  type: BooleanConstructor;
3189
3217
  default: boolean;
3190
3218
  };
3219
+ feedbackType: {
3220
+ type: import("vue").PropType<"default" | "tooltip">;
3221
+ default: string;
3222
+ };
3191
3223
  }>> & {
3192
3224
  onFormChange?: ((...args: any[]) => any) | undefined;
3193
3225
  onScroll?: ((...args: any[]) => any) | undefined;
@@ -3218,6 +3250,7 @@ declare const InfoHeader: SFCWithInstall<import("vue").DefineComponent<{
3218
3250
  linebarDirection: "horizontal" | "vertical";
3219
3251
  linebarTextDirection: "horizontal" | "vertical";
3220
3252
  autoWidth: number | boolean;
3253
+ feedbackType: "default" | "tooltip";
3221
3254
  operationalFormInit: boolean;
3222
3255
  incrementalRender: boolean;
3223
3256
  }>;
@@ -3410,6 +3443,7 @@ declare const InfoHeader: SFCWithInstall<import("vue").DefineComponent<{
3410
3443
  linebarDirection: "horizontal" | "vertical";
3411
3444
  linebarTextDirection: "horizontal" | "vertical";
3412
3445
  autoWidth: number | boolean;
3446
+ feedbackType: "default" | "tooltip";
3413
3447
  }>>>;
3414
3448
  };
3415
3449
  encrypted: {
@@ -175,6 +175,7 @@ declare const _default: import("vue").DefineComponent<{
175
175
  linebarDirection: "horizontal" | "vertical";
176
176
  linebarTextDirection: "horizontal" | "vertical";
177
177
  autoWidth: number | boolean;
178
+ feedbackType: "default" | "tooltip";
178
179
  }>>>;
179
180
  };
180
181
  encrypted: {
@@ -355,6 +356,7 @@ declare const _default: import("vue").DefineComponent<{
355
356
  linebarDirection: "horizontal" | "vertical";
356
357
  linebarTextDirection: "horizontal" | "vertical";
357
358
  autoWidth: number | boolean;
359
+ feedbackType: "default" | "tooltip";
358
360
  }>>>;
359
361
  };
360
362
  encrypted: {
@@ -544,6 +546,7 @@ declare const _default: import("vue").DefineComponent<{
544
546
  linebarDirection: "horizontal" | "vertical";
545
547
  linebarTextDirection: "horizontal" | "vertical";
546
548
  autoWidth: number | boolean;
549
+ feedbackType: "default" | "tooltip";
547
550
  }>>;
548
551
  encrypted: boolean;
549
552
  };
@@ -668,6 +671,7 @@ declare const _default: import("vue").DefineComponent<{
668
671
  };
669
672
  SchemaField: import("vue").Component;
670
673
  formRenderRef: import("vue").Ref<FormRenderExpose | undefined>;
674
+ setEdit: (v: boolean) => void;
671
675
  onItemDblclick: (item: Partial<{
672
676
  [K: string]: any;
673
677
  slot: string | import("vue").Component | ((payload: {
@@ -794,6 +798,7 @@ declare const _default: import("vue").DefineComponent<{
794
798
  linebarDirection: "horizontal" | "vertical";
795
799
  linebarTextDirection: "horizontal" | "vertical";
796
800
  autoWidth: number | boolean;
801
+ feedbackType: "default" | "tooltip";
797
802
  }>) => Record<string, import("@formily/json-schema").Stringify<{
798
803
  [key: symbol]: any;
799
804
  [key: `x-${string}`]: any;
@@ -1338,6 +1343,10 @@ declare const _default: import("vue").DefineComponent<{
1338
1343
  type: BooleanConstructor;
1339
1344
  default: boolean;
1340
1345
  };
1346
+ feedbackType: {
1347
+ type: PropType<"default" | "tooltip">;
1348
+ default: string;
1349
+ };
1341
1350
  }, {
1342
1351
  props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
1343
1352
  fieldList: {
@@ -1533,6 +1542,10 @@ declare const _default: import("vue").DefineComponent<{
1533
1542
  type: BooleanConstructor;
1534
1543
  default: boolean;
1535
1544
  };
1545
+ feedbackType: {
1546
+ type: PropType<"default" | "tooltip">;
1547
+ default: string;
1548
+ };
1536
1549
  }>> & {
1537
1550
  onFormChange?: ((...args: any[]) => any) | undefined;
1538
1551
  onScroll?: ((...args: any[]) => any) | undefined;
@@ -1705,6 +1718,7 @@ declare const _default: import("vue").DefineComponent<{
1705
1718
  linebarDirection: "horizontal" | "vertical";
1706
1719
  linebarTextDirection: "horizontal" | "vertical";
1707
1720
  autoWidth: number | boolean;
1721
+ feedbackType: "default" | "tooltip";
1708
1722
  }>) => Record<string, import("@formily/json-schema").Stringify<{
1709
1723
  [key: symbol]: any;
1710
1724
  [key: `x-${string}`]: any;
@@ -2084,6 +2098,10 @@ declare const _default: import("vue").DefineComponent<{
2084
2098
  type: BooleanConstructor;
2085
2099
  default: boolean;
2086
2100
  };
2101
+ feedbackType: {
2102
+ type: PropType<"default" | "tooltip">;
2103
+ default: string;
2104
+ };
2087
2105
  }>> & {
2088
2106
  onFormChange?: ((...args: any[]) => any) | undefined;
2089
2107
  onScroll?: ((...args: any[]) => any) | undefined;
@@ -2114,6 +2132,7 @@ declare const _default: import("vue").DefineComponent<{
2114
2132
  linebarDirection: "horizontal" | "vertical";
2115
2133
  linebarTextDirection: "horizontal" | "vertical";
2116
2134
  autoWidth: number | boolean;
2135
+ feedbackType: "default" | "tooltip";
2117
2136
  operationalFormInit: boolean;
2118
2137
  incrementalRender: boolean;
2119
2138
  }>;
@@ -2437,6 +2456,10 @@ declare const _default: import("vue").DefineComponent<{
2437
2456
  type: BooleanConstructor;
2438
2457
  default: boolean;
2439
2458
  };
2459
+ feedbackType: {
2460
+ type: PropType<"default" | "tooltip">;
2461
+ default: string;
2462
+ };
2440
2463
  }, {
2441
2464
  props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
2442
2465
  fieldList: {
@@ -2632,6 +2655,10 @@ declare const _default: import("vue").DefineComponent<{
2632
2655
  type: BooleanConstructor;
2633
2656
  default: boolean;
2634
2657
  };
2658
+ feedbackType: {
2659
+ type: PropType<"default" | "tooltip">;
2660
+ default: string;
2661
+ };
2635
2662
  }>> & {
2636
2663
  onFormChange?: ((...args: any[]) => any) | undefined;
2637
2664
  onScroll?: ((...args: any[]) => any) | undefined;
@@ -2804,6 +2831,7 @@ declare const _default: import("vue").DefineComponent<{
2804
2831
  linebarDirection: "horizontal" | "vertical";
2805
2832
  linebarTextDirection: "horizontal" | "vertical";
2806
2833
  autoWidth: number | boolean;
2834
+ feedbackType: "default" | "tooltip";
2807
2835
  }>) => Record<string, import("@formily/json-schema").Stringify<{
2808
2836
  [key: symbol]: any;
2809
2837
  [key: `x-${string}`]: any;
@@ -3183,6 +3211,10 @@ declare const _default: import("vue").DefineComponent<{
3183
3211
  type: BooleanConstructor;
3184
3212
  default: boolean;
3185
3213
  };
3214
+ feedbackType: {
3215
+ type: PropType<"default" | "tooltip">;
3216
+ default: string;
3217
+ };
3186
3218
  }>> & {
3187
3219
  onFormChange?: ((...args: any[]) => any) | undefined;
3188
3220
  onScroll?: ((...args: any[]) => any) | undefined;
@@ -3213,6 +3245,7 @@ declare const _default: import("vue").DefineComponent<{
3213
3245
  linebarDirection: "horizontal" | "vertical";
3214
3246
  linebarTextDirection: "horizontal" | "vertical";
3215
3247
  autoWidth: number | boolean;
3248
+ feedbackType: "default" | "tooltip";
3216
3249
  operationalFormInit: boolean;
3217
3250
  incrementalRender: boolean;
3218
3251
  }>;
@@ -3403,6 +3436,7 @@ declare const _default: import("vue").DefineComponent<{
3403
3436
  linebarDirection: "horizontal" | "vertical";
3404
3437
  linebarTextDirection: "horizontal" | "vertical";
3405
3438
  autoWidth: number | boolean;
3439
+ feedbackType: "default" | "tooltip";
3406
3440
  }>>>;
3407
3441
  };
3408
3442
  encrypted: {
@@ -40,6 +40,7 @@ declare const _default: import("vue").DefineComponent<{
40
40
  };
41
41
  SchemaField: import("vue").Component;
42
42
  formRenderRef: import("vue").Ref<import("../../../../../components/form-render").FormRenderExpose | undefined>;
43
+ setEdit: (v: boolean) => void;
43
44
  onItemDblclick: (item: InfoHeaderTypes.InfoItem) => Promise<void>;
44
45
  onItemClick: (item: InfoHeaderTypes.InfoItem) => Promise<void>;
45
46
  collector: import("../../../../../components/form-render").BusinessCollector | undefined;
@@ -146,6 +147,7 @@ declare const _default: import("vue").DefineComponent<{
146
147
  linebarDirection: "horizontal" | "vertical";
147
148
  linebarTextDirection: "horizontal" | "vertical";
148
149
  autoWidth: number | boolean;
150
+ feedbackType: "default" | "tooltip";
149
151
  }>) => Record<string, import("@formily/vue").Stringify<{
150
152
  [key: symbol]: any;
151
153
  [key: `x-${string}`]: any;
@@ -1 +1 @@
1
- import{defineComponent as e,inject as t,computed as o,watch as n,openBlock as l,createElementBlock as i,createBlock as r,unref as m,normalizeStyle as s,Fragment as d,withDirectives as a,createElementVNode as c,vShow as f,createCommentVNode as u}from"vue";import{isField as p}from"@formily/core";import{useForm as y}from"@formily/vue";import{isFunction as v}from"lodash-es";import{pauseTracking as I,enableTracking as h}from"@vue/reactivity";import"../../../../form-render/index.js";import{InjectionSchemaField as F,InjectionBusinessCollector as w}from"../../../../form-render/src/constants/index.js";import{InjectionInfoHeaderFormRef as b}from"../../constants/index.js";import k from"./HiddenContent.vue.js";import P from"./InfoEllipsis.vue.js";import x from"../../../../../shared/components/SlotRender/SlotRender.js";import{useFieldListAdaptor as j}from"../../../../form-render/src/hooks/useFieldListAdaptor.js";import{createObjSchema as g}from"../../../../form-render/src/utils/schema.js";const S={key:0};var W=e({__name:"DescriptionItem",props:{infoItem:{default:()=>({})},labelField:{default:"label"},valueField:{default:"value"},width:null,rootSlot:null,encrypted:{type:Boolean}},setup(e){const W=e,_=t(F,{render:()=>null}),B=t(b);async function E(e){var t,o,n;if(!e.formField||e.edit)return;e.edit=!0;const l=await(null==(t=B.value)?void 0:t.queryWidget(e[W.labelField]));l&&(null==(o=l.widgetElement)||o.focus(),null==(n=l.widgetElement)||n.click())}const q=t(w,void 0),{schemaAdaptor:A}=j(q),C=y(),D=o((()=>{var e,t,o;const n=W.infoItem.formField;if(!n)return{};const l=W.infoItem[W.labelField],i={...n,html_type:null!=(e=n.html_type)?e:"INPUT",val_key:l,decoratorProps:{showLabel:!1,...n.decoratorProps,style:{marginBottom:"-12px"}},componentProps:{size:"tiny",clearable:!0,...n.componentProps,style:{fontWeight:(null==(t=W.infoItem)?void 0:t.bold)?700:500,...null==(o=n.componentProps)?void 0:o.style},async onBlur(e){var t;if(C&&C.value)try{const o=C.value.query(l).take();await(o&&p(o)&&o.validate()),W.infoItem.edit=!1,v(null==(t=n.componentProps)?void 0:t.onBlur)&&n.componentProps.onBlur(e)}catch(e){}}}};I(),i.default_val=W.infoItem[W.valueField],h();const r=A([i]);return g(r)}));n((()=>W.width),(e=>{var t;e&&W.infoItem.formField&&(null==(t=B.value)||t.setFieldState(W.infoItem[W.labelField],(t=>{t.componentProps&&(t.componentProps.style={...t.componentProps.style,maxWidth:e+"px"})})))}));const L=o((()=>({fontWeight:W.infoItem.bold?700:500,...W.infoItem.contentStyle}))),R=o((()=>{const{bold:e,contentStyle:t}=W.infoItem,o=W.width+"px";return{width:o,maxWidth:o,fontWeight:e?700:500,...t}})),z=o((()=>["电话","身份证"].some((e=>{var t,o;return null==(o=null==(t=W.infoItem[W.labelField])?void 0:t.includes)?void 0:o.call(t,e)}))));return(t,o)=>(l(),i("section",{onDblclick:o[0]||(o[0]=t=>E(e.infoItem)),onClick:o[1]||(o[1]=t=>async function(e){e.formField&&!e[W.valueField]&&0!==e[W.valueField]&&E(e)}(e.infoItem))},[e.infoItem.slot?(l(),r(m(x),{key:0,renderer:e.infoItem.slot,"root-slots":e.rootSlot,item:e.infoItem,style:s(m(L)),width:e.width},null,8,["renderer","root-slots","item","style","width"])):(l(),i(d,{key:1},[a(c("section",null,[m(z)?(l(),r(k,{key:0,content:e.infoItem[e.valueField],tip:e.infoItem.tip,"content-style":m(L),width:e.width,encrypted:e.encrypted},null,8,["content","tip","content-style","width","encrypted"])):(l(),r(P,{key:1,"content-style":m(R),content:e.infoItem[e.valueField],tip:e.infoItem.tip},null,8,["content-style","content","tip"]))],512),[[f,!e.infoItem.edit||!e.infoItem.formField]]),e.infoItem.formField?a((l(),i("section",S,[(l(),r(m(_),{schema:m(D),key:e.infoItem[e.labelField]},null,8,["schema"]))],512)),[[f,e.infoItem.edit]]):u("v-if",!0)],64))],32))}});export{W as default};
1
+ import{defineComponent as e,inject as t,watch as o,computed as n,openBlock as l,createElementBlock as i,createBlock as r,unref as m,normalizeStyle as d,Fragment as s,withDirectives as a,createElementVNode as c,vShow as f,createCommentVNode as u}from"vue";import{isField as p}from"@formily/core";import{useForm as y}from"@formily/vue";import{isFunction as v}from"lodash-es";import{pauseTracking as I,enableTracking as h}from"@vue/reactivity";import"../../../../form-render/index.js";import{InjectionSchemaField as F,InjectionBusinessCollector as w}from"../../../../form-render/src/constants/index.js";import{InjectionInfoHeaderFormRef as b}from"../../constants/index.js";import k from"./HiddenContent.vue.js";import P from"./InfoEllipsis.vue.js";import x from"../../../../../shared/components/SlotRender/SlotRender.js";import{useFieldListAdaptor as j}from"../../../../form-render/src/hooks/useFieldListAdaptor.js";import{createObjSchema as S}from"../../../../form-render/src/utils/schema.js";const g={key:0};var W=e({__name:"DescriptionItem",props:{infoItem:{default:()=>({})},labelField:{default:"label"},valueField:{default:"value"},width:null,rootSlot:null,encrypted:{type:Boolean}},setup(e){const W=e,_=t(F,{render:()=>null}),B=t(b);function E(e){W.infoItem.edit=e}async function q(e){var t,o,n;if(!e.formField||e.edit)return;E(!0);const l=await(null==(t=B.value)?void 0:t.queryWidget(e[W.labelField]));l&&(null==(o=l.widgetElement)||o.focus(),null==(n=l.widgetElement)||n.click())}o((()=>W.infoItem.edit),(e=>{var t;null==(t=B.value)||t.setFieldState(W.infoItem[W.labelField],(t=>{t.decoratorProps.showTooltipFeedback=!!e}))}),{immediate:!0});const A=t(w,void 0),{schemaAdaptor:C}=j(A),D=y(),L=n((()=>{var e,t,o;const n=W.infoItem.formField;if(!n)return{};const l=W.infoItem[W.labelField],i={...n,html_type:null!=(e=n.html_type)?e:"INPUT",val_key:l,decoratorProps:{showLabel:!1,...n.decoratorProps,style:{marginBottom:"-12px"}},componentProps:{size:"tiny",clearable:!0,...n.componentProps,style:{fontWeight:(null==(t=W.infoItem)?void 0:t.bold)?700:500,...null==(o=n.componentProps)?void 0:o.style},async onBlur(e){var t;if(D&&D.value)try{const o=D.value.query(l).take();await(o&&p(o)&&o.validate()),E(!1),v(null==(t=n.componentProps)?void 0:t.onBlur)&&n.componentProps.onBlur(e)}catch(e){}}}};I(),i.default_val=W.infoItem[W.valueField],h();const r=C([i]);return S(r)}));o((()=>W.width),(e=>{var t;e&&W.infoItem.formField&&(null==(t=B.value)||t.setFieldState(W.infoItem[W.labelField],(t=>{t.componentProps&&(t.componentProps.style={...t.componentProps.style,maxWidth:e+"px"})})))}));const R=n((()=>({fontWeight:W.infoItem.bold?700:500,...W.infoItem.contentStyle}))),T=n((()=>{const{bold:e,contentStyle:t}=W.infoItem,o=W.width+"px";return{width:o,maxWidth:o,fontWeight:e?700:500,...t}})),z=n((()=>["电话","身份证"].some((e=>{var t,o;return null==(o=null==(t=W.infoItem[W.labelField])?void 0:t.includes)?void 0:o.call(t,e)}))));return(t,o)=>(l(),i("section",{onDblclick:o[0]||(o[0]=t=>q(e.infoItem)),onClick:o[1]||(o[1]=t=>async function(e){e.formField&&!e[W.valueField]&&0!==e[W.valueField]&&q(e)}(e.infoItem))},[e.infoItem.slot?(l(),r(m(x),{key:0,renderer:e.infoItem.slot,"root-slots":e.rootSlot,item:e.infoItem,style:d(m(R)),width:e.width},null,8,["renderer","root-slots","item","style","width"])):(l(),i(s,{key:1},[a(c("section",null,[m(z)?(l(),r(k,{key:0,content:e.infoItem[e.valueField],tip:e.infoItem.tip,"content-style":m(R),width:e.width,encrypted:e.encrypted},null,8,["content","tip","content-style","width","encrypted"])):(l(),r(P,{key:1,"content-style":m(T),content:e.infoItem[e.valueField],tip:e.infoItem.tip},null,8,["content-style","content","tip"]))],512),[[f,!e.infoItem.edit||!e.infoItem.formField]]),e.infoItem.formField?a((l(),i("section",g,[(l(),r(m(_),{schema:m(L),key:e.infoItem[e.labelField]},null,8,["schema"]))],512)),[[f,e.infoItem.edit]]):u("v-if",!0)],64))],32))}});export{W as default};
@@ -94,6 +94,7 @@ declare const _default: import("vue").DefineComponent<{
94
94
  };
95
95
  SchemaField: import("vue").Component;
96
96
  formRenderRef: import("vue").Ref<import("../../../..").FormRenderExpose | undefined>;
97
+ setEdit: (v: boolean) => void;
97
98
  onItemDblclick: (item: Partial<{
98
99
  [K: string]: any;
99
100
  slot: string | import("vue").Component | ((payload: {
@@ -220,6 +221,7 @@ declare const _default: import("vue").DefineComponent<{
220
221
  linebarDirection: "horizontal" | "vertical";
221
222
  linebarTextDirection: "horizontal" | "vertical";
222
223
  autoWidth: number | boolean;
224
+ feedbackType: "default" | "tooltip";
223
225
  }>) => Record<string, import("@formily/json-schema").Stringify<{
224
226
  [key: symbol]: any;
225
227
  [key: `x-${string}`]: any;
@@ -166,6 +166,7 @@ declare const _default: import("vue").DefineComponent<{
166
166
  };
167
167
  SchemaField: import("vue").Component;
168
168
  formRenderRef: import("vue").Ref<import("../../../../../components/form-render").FormRenderExpose | undefined>;
169
+ setEdit: (v: boolean) => void;
169
170
  onItemDblclick: (item: Partial<{
170
171
  [K: string]: any;
171
172
  slot: string | import("vue").Component | ((payload: {
@@ -292,6 +293,7 @@ declare const _default: import("vue").DefineComponent<{
292
293
  linebarDirection: "horizontal" | "vertical";
293
294
  linebarTextDirection: "horizontal" | "vertical";
294
295
  autoWidth: number | boolean;
296
+ feedbackType: "default" | "tooltip";
295
297
  }>) => Record<string, import("@formily/json-schema").Stringify<{
296
298
  [key: symbol]: any;
297
299
  [key: `x-${string}`]: any;
@@ -836,6 +838,10 @@ declare const _default: import("vue").DefineComponent<{
836
838
  type: BooleanConstructor;
837
839
  default: boolean;
838
840
  };
841
+ feedbackType: {
842
+ type: import("vue").PropType<"default" | "tooltip">;
843
+ default: string;
844
+ };
839
845
  }, {
840
846
  props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
841
847
  fieldList: {
@@ -1031,6 +1037,10 @@ declare const _default: import("vue").DefineComponent<{
1031
1037
  type: BooleanConstructor;
1032
1038
  default: boolean;
1033
1039
  };
1040
+ feedbackType: {
1041
+ type: import("vue").PropType<"default" | "tooltip">;
1042
+ default: string;
1043
+ };
1034
1044
  }>> & {
1035
1045
  onFormChange?: ((...args: any[]) => any) | undefined;
1036
1046
  onScroll?: ((...args: any[]) => any) | undefined;
@@ -1203,6 +1213,7 @@ declare const _default: import("vue").DefineComponent<{
1203
1213
  linebarDirection: "horizontal" | "vertical";
1204
1214
  linebarTextDirection: "horizontal" | "vertical";
1205
1215
  autoWidth: number | boolean;
1216
+ feedbackType: "default" | "tooltip";
1206
1217
  }>) => Record<string, import("@formily/json-schema").Stringify<{
1207
1218
  [key: symbol]: any;
1208
1219
  [key: `x-${string}`]: any;
@@ -1582,6 +1593,10 @@ declare const _default: import("vue").DefineComponent<{
1582
1593
  type: BooleanConstructor;
1583
1594
  default: boolean;
1584
1595
  };
1596
+ feedbackType: {
1597
+ type: import("vue").PropType<"default" | "tooltip">;
1598
+ default: string;
1599
+ };
1585
1600
  }>> & {
1586
1601
  onFormChange?: ((...args: any[]) => any) | undefined;
1587
1602
  onScroll?: ((...args: any[]) => any) | undefined;
@@ -1612,6 +1627,7 @@ declare const _default: import("vue").DefineComponent<{
1612
1627
  linebarDirection: "horizontal" | "vertical";
1613
1628
  linebarTextDirection: "horizontal" | "vertical";
1614
1629
  autoWidth: number | boolean;
1630
+ feedbackType: "default" | "tooltip";
1615
1631
  operationalFormInit: boolean;
1616
1632
  incrementalRender: boolean;
1617
1633
  }>;
@@ -1 +1 @@
1
- import{defineComponent as e,inject as i,computed as o,ref as l,nextTick as n,onMounted as t,watch as r,onBeforeUnmount as a,onDeactivated as s,onActivated as u,openBlock as d,createElementBlock as f,normalizeStyle as m,createVNode as c,unref as p,withCtx as v,createCommentVNode as h,renderSlot as _,createElementVNode as y,createBlock as w,mergeProps as F}from"vue";import{useThrottleFn as L,useEventListener as b}from"@vueuse/core";import{isArray as C}from"lodash-es";import{NScrollbar as W,NConfigProvider as j}from"naive-ui";import k from"./DescriptionList.vue.js";import{InjectionInfoHeaderEmit as x,InjectionInfoHeaderFormRef as g}from"../../constants/index.js";import{useThemeOverrides as R}from"../../hooks/useThemeOverrides.js";import O from"../../../../form-render/index.js";var $=e({__name:"index",props:{infoList:{default:()=>[]},labelField:{default:"label"},valueField:{default:"value"},minColumnWidth:{default:180},rootSlot:null,formProps:{default:()=>({})},encrypted:{type:Boolean}},setup(e,{expose:$}){const A=e,{themeOverrides:I}=R(),M=i(x),P=o((()=>C(A.infoList)&&A.infoList.some((e=>e.formField)))),S=o((()=>C(A.infoList)?A.infoList.reduce(((e,i)=>(i.formField&&(e[i[A.labelField]]=i[A.valueField]),e)),{}):{}));function q(e){var i;const{fieldKey:o,value:l}=e,n=null==(i=A.infoList)?void 0:i.find((e=>e[A.labelField]===o));n&&(n[A.valueField]=l,M&&M("formChange",e))}const z=i(g),B=l(3),D=l(),K=l(0),T=l([]),E=L((async function(){await n();const e=D.value;if(!e)return;const{clientWidth:i}=e;B.value=Math.floor(i/+A.minColumnWidth),K.value=Math.floor(i/B.value),await n();const o=e.querySelectorAll(".n-descriptions-table-content__label");o&&Object.assign(T.value,Array.from(o).map((e=>K.value-e.clientWidth-8)))}),200,!0,!1);let G;function H(){clearInterval(G)}function J(){H(),G=setInterval(E,700)}return t(E),r([()=>A.minColumnWidth,()=>A.infoList],E,{flush:"post",deep:!0}),b(window,"resize",E),a(H),s(H),u(J),t(J),$({updateColumn:E}),(i,o)=>(d(),f("section",{class:"c-info-header__info",ref_key:"infoRef",ref:D,style:m({"--column-width":K.value})},[c(p(W),{class:"c-info-header__infoWrapper"},{default:v((()=>[h(" 描述信息区插槽 "),_(i.$slots,"info",{},(()=>[y("section",null,[p(P)?(d(),w(p(O),F({key:1},e.formProps,{onFormChange:q,"initial-data":p(S),ref_key:"formRenderRef",ref:z,class:"c-info-header__formRender"}),{default:v((()=>[c(p(j),{"theme-overrides":p(I),style:m({"grid-column":"span min(var(--column), 999) / span min(var(--column), 999)"})},{default:v((()=>[c(k,F(i.$props,{"description-width-list":T.value,"column-num":B.value,"in-form":""}),null,16,["description-width-list","column-num"])])),_:1},8,["theme-overrides","style"])])),_:1},16,["initial-data"])):(d(),w(k,F({key:0},i.$props,{"description-width-list":T.value,"column-num":B.value}),null,16,["description-width-list","column-num"]))])]))])),_:3})],4))}});export{$ as default};
1
+ import{defineComponent as e,inject as i,computed as o,ref as t,nextTick as l,onMounted as n,watch as r,onBeforeUnmount as a,onDeactivated as s,onActivated as u,openBlock as d,createElementBlock as f,normalizeStyle as m,createVNode as c,unref as p,withCtx as v,createCommentVNode as h,renderSlot as _,createElementVNode as y,createBlock as w,mergeProps as F}from"vue";import{useThrottleFn as b,useEventListener as L}from"@vueuse/core";import{isArray as k}from"lodash-es";import{NScrollbar as C,NConfigProvider as W}from"naive-ui";import j from"./DescriptionList.vue.js";import{InjectionInfoHeaderEmit as x,InjectionInfoHeaderFormRef as g}from"../../constants/index.js";import{useThemeOverrides as R}from"../../hooks/useThemeOverrides.js";import O from"../../../../form-render/index.js";var $=e({__name:"index",props:{infoList:{default:()=>[]},labelField:{default:"label"},valueField:{default:"value"},minColumnWidth:{default:180},rootSlot:null,formProps:{default:()=>({})},encrypted:{type:Boolean}},setup(e,{expose:$}){const A=e,{themeOverrides:I}=R(),M=i(x),P=o((()=>k(A.infoList)&&A.infoList.some((e=>e.formField)))),S=o((()=>k(A.infoList)?A.infoList.reduce(((e,i)=>(i.formField&&(e[i[A.labelField]]=i[A.valueField]),e)),{}):{}));function T(e){var i;const{fieldKey:o,value:t}=e,l=null==(i=A.infoList)?void 0:i.find((e=>e[A.labelField]===o));l&&(l[A.valueField]=t,M&&M("formChange",e))}const q=i(g),z=t(3),B=t(),D=t(0),K=t([]),E=b((async function(){await l();const e=B.value;if(!e)return;const{clientWidth:i}=e;z.value=Math.floor(i/+A.minColumnWidth),D.value=Math.floor(i/z.value),await l();const o=e.querySelectorAll(".n-descriptions-table-content__label");o&&Object.assign(K.value,Array.from(o).map((e=>D.value-e.clientWidth-8)))}),200,!0,!1);let G;function H(){clearInterval(G)}function J(){H(),G=setInterval(E,700)}return n(E),r([()=>A.minColumnWidth,()=>A.infoList],E,{flush:"post",deep:!0}),L(window,"resize",E),a(H),s(H),u(J),n(J),$({updateColumn:E}),(i,o)=>(d(),f("section",{class:"c-info-header__info",ref_key:"infoRef",ref:B,style:m({"--column-width":D.value})},[c(p(C),{class:"c-info-header__infoWrapper"},{default:v((()=>[h(" 描述信息区插槽 "),_(i.$slots,"info",{},(()=>[y("section",null,[p(P)?(d(),w(p(O),F({key:1,feedbackType:"tooltip"},e.formProps,{onFormChange:T,"initial-data":p(S),ref_key:"formRenderRef",ref:q,class:"c-info-header__formRender"}),{default:v((()=>[c(p(W),{"theme-overrides":p(I),style:m({"grid-column":"span min(var(--column), 999) / span min(var(--column), 999)"})},{default:v((()=>[c(j,F(i.$props,{"description-width-list":K.value,"column-num":z.value,"in-form":""}),null,16,["description-width-list","column-num"])])),_:1},8,["theme-overrides","style"])])),_:1},16,["initial-data"])):(d(),w(j,F({key:0},i.$props,{"description-width-list":K.value,"column-num":z.value}),null,16,["description-width-list","column-num"]))])]))])),_:3})],4))}});export{$ as default};
@@ -248,6 +248,10 @@ declare const _default: import("vue").DefineComponent<{
248
248
  type: BooleanConstructor;
249
249
  default: boolean;
250
250
  };
251
+ feedbackType: {
252
+ type: import("vue").PropType<"default" | "tooltip">;
253
+ default: string;
254
+ };
251
255
  }, {
252
256
  props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
253
257
  fieldList: {
@@ -443,6 +447,10 @@ declare const _default: import("vue").DefineComponent<{
443
447
  type: BooleanConstructor;
444
448
  default: boolean;
445
449
  };
450
+ feedbackType: {
451
+ type: import("vue").PropType<"default" | "tooltip">;
452
+ default: string;
453
+ };
446
454
  }>> & {
447
455
  onFormChange?: ((...args: any[]) => any) | undefined;
448
456
  onScroll?: ((...args: any[]) => any) | undefined;
@@ -615,6 +623,7 @@ declare const _default: import("vue").DefineComponent<{
615
623
  linebarDirection: "horizontal" | "vertical";
616
624
  linebarTextDirection: "horizontal" | "vertical";
617
625
  autoWidth: number | boolean;
626
+ feedbackType: "default" | "tooltip";
618
627
  }>) => Record<string, import("@formily/json-schema").Stringify<{
619
628
  [key: symbol]: any;
620
629
  [key: `x-${string}`]: any;
@@ -994,6 +1003,10 @@ declare const _default: import("vue").DefineComponent<{
994
1003
  type: BooleanConstructor;
995
1004
  default: boolean;
996
1005
  };
1006
+ feedbackType: {
1007
+ type: import("vue").PropType<"default" | "tooltip">;
1008
+ default: string;
1009
+ };
997
1010
  }>> & {
998
1011
  onFormChange?: ((...args: any[]) => any) | undefined;
999
1012
  onScroll?: ((...args: any[]) => any) | undefined;
@@ -1024,6 +1037,7 @@ declare const _default: import("vue").DefineComponent<{
1024
1037
  linebarDirection: "horizontal" | "vertical";
1025
1038
  linebarTextDirection: "horizontal" | "vertical";
1026
1039
  autoWidth: number | boolean;
1040
+ feedbackType: "default" | "tooltip";
1027
1041
  operationalFormInit: boolean;
1028
1042
  incrementalRender: boolean;
1029
1043
  }>;
@@ -1 +1 @@
1
- import{defineComponent as e,ref as l,provide as a,computed as t,watch as i,onMounted as n,openBlock as o,createElementBlock as r,createElementVNode as u,Fragment as s,renderList as c,unref as d,normalizeClass as f,createCommentVNode as v,createVNode as m,withCtx as p,createTextVNode as h,toDisplayString as g,createBlock as k,withDirectives as b,vShow as y,isRef as C}from"vue";import{useMessage as _,NPopover as A,NModal as S,NCard as x,NIcon as F,NButton as q,NForm as w,NFormItem as j,NInput as I}from"naive-ui";import{CloseOutline as R,AddOutline as U}from"@vicons/ionicons5";import E from"../../table-filter/src/hooks/useMixins.js";import N from"../../table-filter/src/hooks/useRenderWidget.js";import O from"../../table-filter/src/hooks/useAdvanced.js";import P from"../../table-filter/src/components/render-widget/index.vue.js";import"moment/locale/zh-cn";import{cloneDeep as V}from"lodash-es";import{InjectionFilterApiConfig as z,InjectionFilterSearchConfig as D}from"../../table-filter/src/constants/index.js";const L={class:"quick-search-block quick-search-table"},T={class:"quick-row"},B={class:"quick-item-title"},Q={class:"quick-item-col"},M={class:"svg-wrap"},W={class:"flex_right"},G={class:"class-filter-content"},J={class:"quickSearch-content"},H=u("span",{class:"label"},"父类名称:",-1),K=["onDblclick","onClick"],X={class:"s-content"};var Y=e({__name:"index",props:{searchFieldList:{type:Array,default:()=>[]},quickSearchConfig:{type:Array,default:()=>[]},tableId:{type:String,default:""},filterApiConfig:{type:Object}},emits:["getFilterParam","onFilterSearch","clearQuickSearchConfig"],setup(e,{expose:Y,emit:Z}){const $=e,ee={classname:{required:!0,message:"请输入分类名称",trigger:["input","blur"]}},le=_(),{handleGetConfigApi:ae,outQuickSearchFn:te}=E(),{getRenderSearchConObj:ie,resetRenderWidgetValue:ne,isRender:oe}=N(),{transformData:re,getCacheDef:ue,transformParams:se}=O(),ce=l(null),de=l({classname:""});let fe=l(!1),ve=l([]),me=l([]),pe=l(!1),he=l("");const ge=l(),ke=l(),be=l([]);a(z,$.filterApiConfig),a(D,ve);let ye=t((()=>!!me.value.length&&me.value.some((e=>e.isAdd)))),Ce=t((()=>(e,l="name")=>e.alias||e[l]));function _e(){return function(e){if(!Array.isArray(e))return[];let l=[];for(let a=0;a<e.length;a++){let t=e[a];const i=ie(t);!l.find((e=>e.field_key===i.field_key))&&i&&l.push(i)}return l.filter((e=>e.value))}(ve.value)||[]}function Ae(){var e;null==(e=ce.value)||e.validate((e=>{var l;if(e)return;let a=_e();a.length||(a=[]);let t=null==(l=me.value.filter((e=>e.selected))[0])?void 0:l.value;!async function(e){var l;try{if(!await ae(e,"requestSaveTableCondiTion",{},$.filterApiConfig))return;fe.value=!1,null==(l=ce.value)||l.restoreValidation(),de.value.classname="",me.value=[],we()}catch(e){console.log(e)}}({tableId:$.tableId||"",setting:JSON.stringify({displayCategory:t,name:de.value.classname,conObj:a.map((e=>(e.unit&&(e.value=[]),e)))}),conditionList:"[]"})}))}function Se(e){setTimeout((()=>{ke.value&&ke.value.focus()}),100),pe.value=!0}function xe(){pe.value=!1,he.value&&(me.value.forEach((e=>e.selected=!1)),me.value.push({disabled:!0,value:he.value,selected:!0,isAdd:!0}),he.value="")}function Fe(e){!function(e){me.value.splice(e,1)}(e)}function qe(){fe.value=!1}function we(){je(ve.value),Z("clearQuickSearchConfig")}function je(e){Array.isArray(e)&&(e.forEach((e=>{ne(e)})),te.handlerInitSearchItem(ve.value))}return i((()=>$.searchFieldList),(e=>{e&&e.length>0&&function(){let e=V(re($.searchFieldList,{_filterApiConfig:$.filterApiConfig})).filter((e=>1==e.isShowSearch&&1!=e.filterExplicit))||[];ve.value=e||[],te.handlerInitSearchItem(ve.value)}()}),{immediate:!0,deep:!0}),i((()=>ve),(()=>{const e=_e()||[],l=se(e);Z("getFilterParam",e,l),be.value.forEach((e=>e(l)))}),{deep:!0}),n((()=>{const e=$.quickSearchConfig;if(e&&e.length>0)return l=e,void ve.value.forEach((e=>{var a,t;if(oe(e)){const i=l.find((l=>l.field_key===e.columnName));i&&(null==(a=i.value)?void 0:a.length)>0&&(e.value=ue(e,i.value),e.unit=null!=(t=i.unit)?t:"")}}));var l;je(ve.value)})),Y({openSaveToCalss:function(){let e=_e();e&&(e.length>0?fe.value=!0:le.warning("请设置搜索条件"))},clearData:we,onFilterSearch:function(){let e=_e()||[];const l=se(e);return Z("onFilterSearch",e,l,!1),ve.value},getFilterParams:function(){const e=_e()||[];return se(e)},setFilterParams:function(e){const l=e?Object.keys(e):[];l.length>0&&ve.value.forEach((a=>{var t;if(oe(a)&&l.includes(a.columnName)){const l=e[a.columnName];a.value=Array.isArray(l)&&!1===(null==(t=a.widgetCfg)?void 0:t.multiple)?l[0]:l}}))},getOriginalConfig:function(){return $.searchFieldList},onFilterChange:function(e){be.value.push(e)}}),(e,l)=>(o(),r("div",null,[u("div",L,[(o(!0),r(s,null,c(d(ve),(e=>(o(),r("div",{class:f(["quick-item",{"quick-block":e._isBlock}]),key:e.sid||e.columnName},[u("div",T,[v(" title "),u("div",B,[m(d(A),{trigger:"hover"},{trigger:p((()=>[h(g(d(Ce)(e,"title")),1)])),default:p((()=>[u("span",null,g(d(Ce)(e,"title")),1)])),_:2},1024)]),v(" content "),u("div",Q,[v(" 直接渲染组件 "),e.isRender?(o(),k(P,{key:0,cfg:e,modelValue:e.value,"onUpdate:modelValue":l=>e.value=l,unit:e.unit,"onUpdate:unit":l=>e.unit=l},null,8,["cfg","modelValue","onUpdate:modelValue","unit","onUpdate:unit"])):v("v-if",!0)])])],2)))),128))]),v(" 保存到分类的弹窗 "),m(d(S),{show:d(fe),maskClosable:!1,"positive-text":"确认","negative-text":"取消",onPositiveClick:Ae,onNegativeClick:qe,class:"classification-modal-block"},{default:p((()=>[m(d(x),{title:"设置筛选分类",style:{width:"520px"},bordered:!1,size:"huge",role:"dialog","aria-modal":"true"},{"header-extra":p((()=>[u("div",M,[m(d(F),{component:d(R),size:"24",onClick:qe},null,8,["component"])])])),footer:p((()=>[u("div",W,[m(d(q),{onClick:qe},{default:p((()=>[h("取消")])),_:1}),m(d(q),{type:"info",onClick:Ae},{default:p((()=>[h("确认")])),_:1})])])),default:p((()=>[u("div",G,[m(d(w),{ref_key:"formRef",ref:ce,"label-placement":"left",rules:ee,model:de.value},{default:p((()=>[m(d(j),{label:"筛选集名称",path:"classname"},{default:p((()=>[m(d(I),{value:de.value.classname,"onUpdate:value":l[0]||(l[0]=e=>de.value.classname=e),placeholder:"请输入分类名称",clearable:""},null,8,["value"])])),_:1})])),_:1},8,["model"]),u("div",J,[H,(o(!0),r(s,null,c(d(me),((e,l)=>(o(),r("div",{class:"parent-name",key:l,onDblclick:l=>function(e){e.disabled=!1,setTimeout((()=>{ge.value.length>0&&ge.value[0].focus()}),100)}(e),onClick:a=>function(e,l){e.disabled&&(me.value.forEach(((e,a)=>{a!==l&&(e.selected=!1)})),e.selected=!e.selected)}(e,l)},[e.disabled?(o(),r("div",{key:0,class:f(["edit-tag",{"edit-tag-select":e.selected&&e.disabled}])},[u("div",X,g(e.value),1),m(d(F),{component:d(R),class:"anticon-close",size:"20",onClick:e=>Fe(l)},null,8,["component","onClick"])],2)):(o(),k(d(I),{key:1,ref_for:!0,ref_key:"parentInputRef",ref:ge,class:"parent-input",style:{width:"100px"},value:e.value,"onUpdate:value":l=>e.value=l,disabled:e.disabled,onBlur:()=>e.disabled=!0,maxlength:20},null,8,["value","onUpdate:value","disabled","onBlur"]))],40,K)))),128)),d(ye)?v("v-if",!0):(o(),r(s,{key:0},[b(m(d(q),{dashed:"",icon:"plus",class:"ant-btn",onClick:Se},{default:p((()=>[m(d(F),{component:d(U),size:"20"},null,8,["component"]),h("添加分类 ")])),_:1},512),[[y,!d(pe)]]),b(m(d(I),{ref_key:"parentInputAddRef",ref:ke,class:"parent-input",style:{width:"100px"},value:d(he),"onUpdate:value":l[1]||(l[1]=e=>C(he)?he.value=e:he=e),valueModifiers:{trim:!0},onBlur:xe,maxlength:20},null,8,["value"]),[[y,d(pe)]])],64))])])])),_:1})])),_:1},8,["show"])]))}});export{Y as default};
1
+ import{defineComponent as e,ref as l,provide as a,computed as t,watch as i,onMounted as n,openBlock as o,createElementBlock as r,createElementVNode as s,Fragment as u,renderList as c,unref as d,normalizeClass as f,createCommentVNode as v,createVNode as m,withCtx as p,createTextVNode as h,toDisplayString as g,createBlock as k,withDirectives as b,vShow as y,isRef as C}from"vue";import{useMessage as _,NPopover as A,NModal as S,NCard as x,NIcon as w,NButton as F,NForm as q,NFormItem as j,NInput as I}from"naive-ui";import{CloseOutline as E,AddOutline as R}from"@vicons/ionicons5";import U from"../../table-filter/src/hooks/useMixins.js";import L from"../../table-filter/src/hooks/useRenderWidget.js";import N from"../../table-filter/src/hooks/useAdvanced.js";import T from"../../table-filter/src/components/render-widget/index.vue.js";import{WidgetTypeEnums as D}from"../../table-filter/src/types/enums.js";import"moment/locale/zh-cn";import{cloneDeep as O}from"lodash-es";import{InjectionFilterApiConfig as P,InjectionFilterSearchConfig as V}from"../../table-filter/src/constants/index.js";const z={class:"quick-search-block quick-search-table"},B={class:"quick-row"},M={class:"quick-item-title"},Q={class:"quick-item-col"},W={class:"svg-wrap"},G={class:"flex_right"},J={class:"class-filter-content"},Y={class:"quickSearch-content"},H=s("span",{class:"label"},"父类名称:",-1),K=["onDblclick","onClick"],X={class:"s-content"};var Z=e({__name:"index",props:{searchFieldList:{type:Array,default:()=>[]},quickSearchConfig:{type:Array,default:()=>[]},tableId:{type:String,default:""},filterApiConfig:{type:Object}},emits:["getFilterParam","onFilterSearch","clearQuickSearchConfig"],setup(e,{expose:Z,emit:$}){const ee=e,le={classname:{required:!0,message:"请输入分类名称",trigger:["input","blur"]}},ae=_(),{handleGetConfigApi:te,outQuickSearchFn:ie}=U(),{getRenderSearchConObj:ne,resetRenderWidgetValue:oe,isRender:re}=L(),{transformData:se,getCacheDef:ue,transformParams:ce}=N(),de=l(null),fe=l({classname:""});let ve=l(!1),me=l([]),pe=l([]),he=l(!1),ge=l("");const ke=l(),be=l(),ye=l([]);a(P,ee.filterApiConfig),a(V,me);let Ce=t((()=>!!pe.value.length&&pe.value.some((e=>e.isAdd)))),_e=t((()=>(e,l="name")=>e.alias||e[l]));function Ae(){return function(e){if(!Array.isArray(e))return[];let l=[];for(let a=0;a<e.length;a++){let t=e[a];const i=ne(t);!l.find((e=>e.field_key===i.field_key))&&i&&l.push(i)}return l.filter((e=>e.value))}(me.value)||[]}function Se(){var e;null==(e=de.value)||e.validate((e=>{var l;if(e)return;let a=Ae();a.length||(a=[]);let t=null==(l=pe.value.filter((e=>e.selected))[0])?void 0:l.value;!async function(e){var l;try{if(!await te(e,"requestSaveTableCondiTion",{},ee.filterApiConfig))return;ve.value=!1,null==(l=de.value)||l.restoreValidation(),fe.value.classname="",pe.value=[],je()}catch(e){console.log(e)}}({tableId:ee.tableId||"",setting:JSON.stringify({displayCategory:t,name:fe.value.classname,conObj:a.map((e=>(e.unit&&(e.value=[]),e.widgetType===D.SELECTDYNAMIC&&(e.dynamicBaseList=e.value.map((e=>e.includes("&")?{label:e.split("&")[0],value:e.split("&")[1]}:{label:e,value:e})),e.value=e.value.map((e=>e.includes("&")?e.split("&")[1]:e))),e)))}),conditionList:"[]"})}))}function xe(e){setTimeout((()=>{be.value&&be.value.focus()}),100),he.value=!0}function we(){he.value=!1,ge.value&&(pe.value.forEach((e=>e.selected=!1)),pe.value.push({disabled:!0,value:ge.value,selected:!0,isAdd:!0}),ge.value="")}function Fe(e){!function(e){pe.value.splice(e,1)}(e)}function qe(){ve.value=!1}function je(){Ie(me.value),$("clearQuickSearchConfig")}function Ie(e){Array.isArray(e)&&(e.forEach((e=>{oe(e)})),ie.handlerInitSearchItem(me.value))}return i((()=>ee.searchFieldList),(e=>{e&&e.length>0&&function(){let e=O(se(ee.searchFieldList,{_filterApiConfig:ee.filterApiConfig})).filter((e=>1==e.isShowSearch&&1!=e.filterExplicit))||[];me.value=e||[],ie.handlerInitSearchItem(me.value)}()}),{immediate:!0,deep:!0}),i((()=>me),(()=>{const e=Ae()||[],l=ce(e);$("getFilterParam",e,l),ye.value.forEach((e=>e(l)))}),{deep:!0}),n((()=>{const e=ee.quickSearchConfig;if(e&&e.length>0)return l=e,void me.value.forEach((e=>{var a,t;if(re(e)){const i=l.find((l=>l.field_key===e.columnName));i&&(null==(a=i.value)?void 0:a.length)>0&&(e.value=ue(e,i.value),e.unit=null!=(t=i.unit)?t:"")}}));var l;Ie(me.value)})),Z({openSaveToCalss:function(){let e=Ae();e&&(e.length>0?ve.value=!0:ae.warning("请设置搜索条件"))},clearData:je,onFilterSearch:function(){let e=Ae()||[];const l=ce(e);return $("onFilterSearch",e,l,!1),me.value},getFilterParams:function(){const e=Ae()||[];return ce(e)},setFilterParams:function(e){const l=e?Object.keys(e):[];l.length>0&&me.value.forEach((a=>{var t;if(re(a)&&l.includes(a.columnName)){const l=e[a.columnName];a.value=Array.isArray(l)&&!1===(null==(t=a.widgetCfg)?void 0:t.multiple)?l[0]:l}}))},getOriginalConfig:function(){return ee.searchFieldList},onFilterChange:function(e){ye.value.push(e)}}),(e,l)=>(o(),r("div",null,[s("div",z,[(o(!0),r(u,null,c(d(me),(e=>(o(),r("div",{class:f(["quick-item",{"quick-block":e._isBlock}]),key:e.sid||e.columnName},[s("div",B,[v(" title "),s("div",M,[m(d(A),{trigger:"hover"},{trigger:p((()=>[h(g(d(_e)(e,"title")),1)])),default:p((()=>[s("span",null,g(d(_e)(e,"title")),1)])),_:2},1024)]),v(" content "),s("div",Q,[v(" 直接渲染组件 "),e.isRender?(o(),k(T,{key:0,cfg:e,modelValue:e.value,"onUpdate:modelValue":l=>e.value=l,unit:e.unit,"onUpdate:unit":l=>e.unit=l},null,8,["cfg","modelValue","onUpdate:modelValue","unit","onUpdate:unit"])):v("v-if",!0)])])],2)))),128))]),v(" 保存到分类的弹窗 "),m(d(S),{show:d(ve),maskClosable:!1,"positive-text":"确认","negative-text":"取消",onPositiveClick:Se,onNegativeClick:qe,class:"classification-modal-block"},{default:p((()=>[m(d(x),{title:"设置筛选分类",style:{width:"520px"},bordered:!1,size:"huge",role:"dialog","aria-modal":"true"},{"header-extra":p((()=>[s("div",W,[m(d(w),{component:d(E),size:"24",onClick:qe},null,8,["component"])])])),footer:p((()=>[s("div",G,[m(d(F),{onClick:qe},{default:p((()=>[h("取消")])),_:1}),m(d(F),{type:"info",onClick:Se},{default:p((()=>[h("确认")])),_:1})])])),default:p((()=>[s("div",J,[m(d(q),{ref_key:"formRef",ref:de,"label-placement":"left",rules:le,model:fe.value},{default:p((()=>[m(d(j),{label:"筛选集名称",path:"classname"},{default:p((()=>[m(d(I),{value:fe.value.classname,"onUpdate:value":l[0]||(l[0]=e=>fe.value.classname=e),placeholder:"请输入分类名称",clearable:""},null,8,["value"])])),_:1})])),_:1},8,["model"]),s("div",Y,[H,(o(!0),r(u,null,c(d(pe),((e,l)=>(o(),r("div",{class:"parent-name",key:l,onDblclick:l=>function(e){e.disabled=!1,setTimeout((()=>{ke.value.length>0&&ke.value[0].focus()}),100)}(e),onClick:a=>function(e,l){e.disabled&&(pe.value.forEach(((e,a)=>{a!==l&&(e.selected=!1)})),e.selected=!e.selected)}(e,l)},[e.disabled?(o(),r("div",{key:0,class:f(["edit-tag",{"edit-tag-select":e.selected&&e.disabled}])},[s("div",X,g(e.value),1),m(d(w),{component:d(E),class:"anticon-close",size:"20",onClick:e=>Fe(l)},null,8,["component","onClick"])],2)):(o(),k(d(I),{key:1,ref_for:!0,ref_key:"parentInputRef",ref:ke,class:"parent-input",style:{width:"100px"},value:e.value,"onUpdate:value":l=>e.value=l,disabled:e.disabled,onBlur:()=>e.disabled=!0,maxlength:20},null,8,["value","onUpdate:value","disabled","onBlur"]))],40,K)))),128)),d(Ce)?v("v-if",!0):(o(),r(u,{key:0},[b(m(d(F),{dashed:"",icon:"plus",class:"ant-btn",onClick:xe},{default:p((()=>[m(d(w),{component:d(R),size:"20"},null,8,["component"]),h("添加分类 ")])),_:1},512),[[y,!d(he)]]),b(m(d(I),{ref_key:"parentInputAddRef",ref:be,class:"parent-input",style:{width:"100px"},value:d(ge),"onUpdate:value":l[1]||(l[1]=e=>C(ge)?ge.value=e:ge=e),valueModifiers:{trim:!0},onBlur:we,maxlength:20},null,8,["value"]),[[y,d(he)]])],64))])])])),_:1})])),_:1},8,["show"])]))}});export{Z as default};
@@ -1 +1 @@
1
- import{defineComponent as t,ref as e,reactive as l,computed as a,watch as i,openBlock as n,createElementBlock as s,unref as d,createCommentVNode as o,withDirectives as r,createElementVNode as c,normalizeClass as b,createVNode as u,withCtx as p,Fragment as f,renderList as h,createBlock as y,createTextVNode as v,toDisplayString as m,vShow as g,nextTick as C}from"vue";import{useMessage as L,NAnchor as I,NAnchorLink as S}from"naive-ui";import E from"./components/label-classify.vue.js";import{handleLabelColor as w}from"../../../shared/utils/vexutils.js";import x from"../../../shared/utils/vexutilsExpand.js";const A={key:0,class:"label-disable-wrap"},O=[c("p",{class:"label-disable-title"},"无可选标签",-1),c("p",{class:"label-disable-desc"},"请联系管理员进行标签管理设置",-1)],K={style:{height:"100%"}},j={class:"label-wrap"},k=["id"],T={class:"edit-label-type"};var B=t({__name:"LabelFormContent",props:{item:{default:()=>({})},isEdit:{type:Boolean,default:!0},isLock:{type:Boolean,default:!1},labelSelectedList:null,isChangeWindow:{type:Boolean},getLabelList:{type:Function,default:()=>Promise.resolve({rows:[]})},deleteLabel:{type:Function,default:()=>Promise.resolve({status:!0})},saveLabelItem:{type:Function,default:()=>Promise.resolve({status:!0})},labelOptions:null,sourceType:{default:""},explicit:{type:Boolean,default:!1}},emits:["explicitOnChange","change","updateLabelData"],setup(t,{expose:B,emit:D}){const V=t,F=L(),P=e(null),_=l({editLabelItem:{},inited:!1,labelSelectedEdit:[],labelAnchorKey:"",cacheAnchorKey:"",labelConfig:{}});let N=e(0);const W=a((()=>{if(!_.inited)return!1;let t=_.labelConfig;return!t||Object.keys(t).every((e=>!t[e].itemList))})),$=a((()=>{let t=[].concat(..._.labelSelectedEdit,...V.labelSelectedList);return J(t,"labelId")})),q=a((()=>{const t=$.value||[];return Array.isArray(t)?t.map((t=>t.labelId)):[]})),J=(t,e)=>{let l={};return t.reduce(((t,a)=>(!l[a[e]]&&(l[a[e]]=t.push(a)),t)),[])},R=()=>{if(_.labelSelectedEdit=$.value,"object"==typeof _.labelConfig){Object.keys(_.labelConfig||{}).forEach((t=>{var e;let l=(null==(e=_.labelConfig[t])?void 0:e.itemList)||[];l.length&&l.forEach((t=>{q.value.includes(t.labelId)&&(t.isSelect=!0)}))}))}},z=(t,e)=>{if(!t)return;let l=Object.keys(t)||[];if(!l.length)return;let a=t[l[0]].curKey;if(e&&"string"==typeof e){let[i]=e.split("~"),n=l.find((e=>t[e]&&t[e].curKey&&t[e].curKey.includes(i)));n&&(a=t[n].curKey)}a&&Y(a)},G=(t,e)=>{e.showAdd=!0;const l=t.target.nextElementSibling;C((()=>{var t;null==(t=null==l?void 0:l.firstChild)||t.focus()}))},H=(t,e)=>{setTimeout((()=>{e.addVal?Q(e):e.showAdd=!1}),150)},M=(t,e)=>{e.addVal="",e.showAdd=!1},Q=async t=>{var e;if(!!t.itemList.filter((t=>!(t.isPublic&&1==t.isPublic))).find((e=>e.labelName===t.addVal)))return F.error("标签名称重复!"),!1;let l="";l=(null==(e=t.itemList)?void 0:e.length)?t.itemList[0].parentColor||t.parentColor||"":(null==t?void 0:t.parentColor)||"";const a={type:t.typeId,name:t.addVal,parentColor:l},{status:i}=await V.saveLabelItem(a,t);i&&(F.success("添加成功!"),D("updateLabelData"),t.showAdd=!1)},U=(t,e,l,a)=>{var i;const n=l.itemList,s=l.multipleChoice;let d=(null==(i=_.labelSelectedEdit)?void 0:i.length)&&x.clone(_.labelSelectedEdit,!0)||[];if(t){if(d.some((t=>t.labelId==e.labelId)))return;if(2==s){const{typeId:t,labelId:l}=e;d=d.filter((e=>e.typeId!==t)),n.forEach((t=>{t.labelId!==l&&(t.isSelect=!1)}))}d.push(e)}else{const t=d.findIndex((t=>t.labelId==e.labelId));-1!=t&&d.splice(t,1)}_.labelSelectedEdit=[...d],N.value++,V.explicit&&D("explicitOnChange",[..._.labelSelectedEdit])},X=async t=>{const{status:e}=await V.deleteLabel(t,V.item);if(e){F.success("删除成功!");for(const e in _.labelConfig){const l=_.labelConfig[e].itemList.findIndex((e=>e.labelId==t.labelId));-1!=l&&_.labelConfig[e].itemList.splice(l,1)}const e=_.labelSelectedEdit||[],l=V.labelSelectedList||[];if(e&&e.length){const l=e.findIndex((e=>e.labelId==t.labelId));-1!=l&&e.splice(l,1)}if(l&&l.length){const e=l.findIndex((e=>e.labelId==t.labelId));-1!=e&&l.splice(e,1),D("change",[...l],V.item)}D("updateLabelData")}else F.warning("删除失败")},Y=t=>{t&&setTimeout((()=>{let e,l="#"+t;e=P.value.querySelector("a[href='"+l+"']"),e&&e.click(),_.labelAnchorKey=t}),32)},Z=t=>{t.preventDefault()},tt=t=>{if(!t)return;let e=t.slice(1);_.cacheAnchorKey=e},et=()=>{var t;return null==(t=P.value)?void 0:t.querySelector(".right-label-wrap")};return i((()=>V.labelOptions),(t=>{t&&(()=>{var t;if(V.isLock)return;const e=JSON.parse(JSON.stringify(V.labelOptions));for(let l in e){let a=(null==(t=e[l])?void 0:t.typeId)||"";Object.assign(e[l],{curKey:`${l}_${a}}`})}_.labelConfig=e,C((()=>{let t;R(),V.explicit&&_.inited&&(t=_.labelAnchorKey),z(_.labelConfig,t),_.inited=!0}))})()}),{immediate:!0,deep:!0}),B({resetShowAdd:()=>{let{labelObj:t}=_.editLabelItem;if(t&&Object.keys(t).length)for(let e in t){let l=t[e];Object.assign(l,{showAdd:!1})}},handleLabelForm:t=>{t([..._.labelSelectedEdit||[]])},handleResetOptions:()=>{},hanldeSetLabelItem:(t,e)=>{if("object"==typeof _.labelConfig){Object.keys(_.labelConfig||{}).forEach((l=>{var a;let i=(null==(a=_.labelConfig[l])?void 0:a.itemList)||[];i.length&&i.forEach((l=>{t==l.labelId&&(l.isSelect=e)}))}))}if(!1===e&&Array.isArray(_.labelSelectedEdit)){const e=_.labelSelectedEdit.findIndex((e=>e.labelId==t));-1!=e&&_.labelSelectedEdit.splice(e,1)}}}),(e,l)=>(n(),s("div",{class:"c-label-form-content",ref_key:"labelFormContent",ref:P},[d(W)?(n(),s("div",A,O)):o("v-if",!0),r(c("div",K,[c("div",j,[o(" 表单内嵌打开标签组件的样式 "),o(' <div v-if="explicit" class="explicit-continer">\n\t\t\t\t\t<n-tabs :value="state.labelAnchorKey" type="card" @change="labelAnchorTabsOnChange" tab-position="top">\n\t\t\t\t\t\t<template v-for="(v, i) in state.labelConfig">\n\t\t\t\t\t\t\t<n-tab-pane :name="v.curKey">\n\t\t\t\t\t\t\t\t<span slot="tab">\n\t\t\t\t\t\t\t\t\t{{ i }}\n\t\t\t\t\t\t\t\t\t<span class="edit-label-type">({{ v.multipleChoice == 2 ? \'单\' : \'多\' }}选)</span>\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t<div class="explicit-label-wrap left-label-wrap">\n\t\t\t\t\t\t\t\t\t<div class="edit-label-content">\n\t\t\t\t\t\t\t\t\t\t<labelClassify\n\t\t\t\t\t\t\t\t\t\t\t:classifyItem="v"\n\t\t\t\t\t\t\t\t\t\t\t:handleLabelChange="handleLabelChange"\n\t\t\t\t\t\t\t\t\t\t\t:handleLabelColor="handleLabelColor"\n\t\t\t\t\t\t\t\t\t\t\t:handleDelLabel="handleDelLabel"\n\t\t\t\t\t\t\t\t\t\t\t:hanldeBlur="hanldeBlur"\n\t\t\t\t\t\t\t\t\t\t\t:handleAddLabel="handleAddLabel"\n\t\t\t\t\t\t\t\t\t\t\t:clearaddVal="clearaddVal"\n\t\t\t\t\t\t\t\t\t\t\t:isEdit="isEdit"\n\t\t\t\t\t\t\t\t\t\t\t:sourceType="sourceType"\n\t\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</n-tab-pane>\n\t\t\t\t\t\t</template>\n\t\t\t\t\t</n-tabs>\n\t\t\t\t</div> '),o("\n\t\t\t\t\t普通标签样式\n\t\t\t\t\tv-else\n\t\t\t\t\texplicit\n\t\t\t\t "),c("div",{class:b(["left-label-wrap",{"total-left-label-wrap":t.isChangeWindow}])},[u(d(I),{"offset-target":et,type:"block",onClick:Z,onChange:tt},{default:p((()=>[(n(!0),s(f,null,h(_.labelConfig,((t,e)=>(n(),y(d(S),{href:`#${t.curKey}`,title:String(e)},null,8,["href","title"])))),256))])),_:1})],2),o(' v-if="!explicit" '),c("div",{class:b(["right-label-wrap",{"total-right-label-wrap":t.isChangeWindow}])},[(n(!0),s(f,null,h(_.labelConfig,((e,l)=>(n(),s("div",{key:l,class:"edit-label-content"},[c("div",{class:"edit-label",id:e.curKey},[v(m(l)+" ",1),c("span",T,"("+m(2==e.multipleChoice?"单":"多")+"选)",1)],8,k),u(E,{classifyItem:e,handleLabelChange:U,handleLabelColor:d(w),handleDelLabel:X,hanldeBlur:H,handleAddLabel:G,clearaddVal:M,isEdit:t.isEdit,sourceType:t.sourceType},null,8,["classifyItem","handleLabelColor","isEdit","sourceType"])])))),128))],2)])],512),[[g,!d(W)]])],512))}});export{B as default};
1
+ import{defineComponent as t,ref as e,reactive as l,computed as a,watch as i,openBlock as n,createElementBlock as s,unref as r,createCommentVNode as d,withDirectives as o,createElementVNode as c,normalizeClass as b,createVNode as u,withCtx as p,Fragment as f,renderList as h,createBlock as y,createTextVNode as v,toDisplayString as m,vShow as g,nextTick as C}from"vue";import{useMessage as L,NAnchor as I,NAnchorLink as S}from"naive-ui";import E from"./components/label-classify.vue.js";import{handleLabelColor as w}from"../../../shared/utils/vexutils.js";import x from"../../../shared/utils/vexutilsExpand.js";const A={key:0,class:"label-disable-wrap"},O=[c("p",{class:"label-disable-title"},"无可选标签",-1),c("p",{class:"label-disable-desc"},"请联系管理员进行标签管理设置",-1)],K={style:{height:"100%"}},j={class:"label-wrap"},k=["id"],T={class:"edit-label-type"};var B=t({__name:"LabelFormContent",props:{item:{default:()=>({})},isEdit:{type:Boolean,default:!0},isLock:{type:Boolean,default:!1},labelSelectedList:null,isChangeWindow:{type:Boolean},getLabelList:{type:Function,default:()=>Promise.resolve({rows:[]})},deleteLabel:{type:Function,default:()=>Promise.resolve({status:!0})},saveLabelItem:{type:Function,default:()=>Promise.resolve({status:!0})},labelOptions:null,sourceType:{default:""},explicit:{type:Boolean,default:!1}},emits:["explicitOnChange","change","updateLabelData"],setup(t,{expose:B,emit:D}){const V=t,F=L(),P=e(null),_=l({editLabelItem:{},inited:!1,labelSelectedEdit:[],labelAnchorKey:"",cacheAnchorKey:"",labelConfig:{}});let N=e(0);const W=a((()=>{if(!_.inited)return!1;let t=_.labelConfig;return!t||Object.keys(t).every((e=>!t[e].itemList))})),$=a((()=>{let t=[].concat(..._.labelSelectedEdit,...V.labelSelectedList);return J(t,"labelId")})),q=a((()=>{const t=$.value||[];return Array.isArray(t)?t.map((t=>t.labelId)):[]})),J=(t,e)=>{let l={};return t.reduce(((t,a)=>(!l[a[e]]&&(l[a[e]]=t.push(a)),t)),[])},R=()=>{if(_.labelSelectedEdit=$.value,"object"==typeof _.labelConfig){Object.keys(_.labelConfig||{}).forEach((t=>{var e;let l=(null==(e=_.labelConfig[t])?void 0:e.itemList)||[];l.length&&l.forEach((t=>{q.value.includes(t.labelId)&&(t.isSelect=!0)}))}))}},z=(t,e)=>{if(!t)return;let l=Object.keys(t)||[];if(!l.length)return;let a=t[l[0]].curKey;if(e&&"string"==typeof e){let[i]=e.split("~"),n=l.find((e=>t[e]&&t[e].curKey&&t[e].curKey.includes(i)));n&&(a=t[n].curKey)}a&&Y(a)},G=(t,e)=>{e.showAdd=!0;const l=t.target.nextElementSibling;C((()=>{var t;null==(t=null==l?void 0:l.firstChild)||t.focus()}))},H=(t,e)=>{setTimeout((()=>{e.addVal?Q(e):e.showAdd=!1}),150)},M=(t,e)=>{e.addVal="",e.showAdd=!1},Q=async t=>{var e;if(!!t.itemList.filter((t=>!(t.isPublic&&1==t.isPublic))).find((e=>e.labelName===t.addVal)))return F.error("标签名称重复!"),!1;let l="";l=(null==(e=t.itemList)?void 0:e.length)?t.itemList[0].parentColor||t.parentColor||"":(null==t?void 0:t.parentColor)||"";const a={type:t.typeId,name:t.addVal,parentColor:l},{status:i}=await V.saveLabelItem(a,t);i&&(F.success("添加成功!"),D("updateLabelData"),t.showAdd=!1)},U=(t,e,l,a)=>{var i;const n=l.itemList,s=l.multipleChoice;let r=(null==(i=_.labelSelectedEdit)?void 0:i.length)&&x.clone(_.labelSelectedEdit,!0)||[];if(t){if(r.some((t=>t.labelId==e.labelId)))return;if(2==s){const{typeId:t,labelId:l}=e;r=r.filter((e=>e.typeId!==t)),n.forEach((t=>{t.labelId!==l&&(t.isSelect=!1)}))}r.push(e)}else{const t=r.findIndex((t=>t.labelId==e.labelId));-1!=t&&r.splice(t,1)}_.labelSelectedEdit=[...r],N.value++,V.explicit&&D("explicitOnChange",[..._.labelSelectedEdit])},X=async t=>{const{status:e}=await V.deleteLabel(t,V.item);if(e){F.success("删除成功!");for(const e in _.labelConfig){const l=_.labelConfig[e].itemList.findIndex((e=>e.labelId==t.labelId));-1!=l&&_.labelConfig[e].itemList.splice(l,1)}const e=_.labelSelectedEdit||[],l=V.labelSelectedList||[];if(e&&e.length){const l=e.findIndex((e=>e.labelId==t.labelId));-1!=l&&e.splice(l,1)}if(l&&l.length){const e=l.findIndex((e=>e.labelId==t.labelId));-1!=e&&l.splice(e,1),D("change",[...l],V.item)}D("updateLabelData")}else F.warning("删除失败")},Y=t=>{t&&setTimeout((()=>{let e,l="#"+t;e=P.value.querySelector("a[href='"+l+"']"),e&&e.click(),_.labelAnchorKey=t}),32)},Z=t=>{t.preventDefault()},tt=t=>{if(!t)return;let e=t.slice(1);_.cacheAnchorKey=e},et=()=>{var t;return null==(t=P.value)?void 0:t.querySelector(".right-label-wrap")};return i((()=>V.labelOptions),(t=>{t&&(()=>{var t;if(V.isLock)return;const e=JSON.parse(JSON.stringify(V.labelOptions));for(let l in e){let a=(null==(t=e[l])?void 0:t.typeId)||"";Object.assign(e[l],{curKey:`${l}_${a}}`})}_.labelConfig=e,C((()=>{let t;R(),V.explicit&&_.inited&&(t=_.labelAnchorKey),z(_.labelConfig,t),_.inited=!0}))})()}),{immediate:!0,deep:!0}),B({resetShowAdd:()=>{let{labelObj:t}=_.editLabelItem;if(t&&Object.keys(t).length)for(let e in t){let l=t[e];Object.assign(l,{showAdd:!1})}},handleLabelForm:t=>{t([..._.labelSelectedEdit||[]])},handleResetOptions:()=>{},hanldeSetLabelItem:(t,e)=>{if("object"==typeof _.labelConfig){Object.keys(_.labelConfig||{}).forEach((l=>{var a;let i=(null==(a=_.labelConfig[l])?void 0:a.itemList)||[];i.length&&i.forEach((l=>{t==l.labelId&&(l.isSelect=e)}))}))}if(!1===e&&Array.isArray(_.labelSelectedEdit)){const e=_.labelSelectedEdit.findIndex((e=>e.labelId==t));-1!=e&&_.labelSelectedEdit.splice(e,1)}}}),(e,l)=>(n(),s("div",{class:"c-label-form-content",ref_key:"labelFormContent",ref:P},[r(W)?(n(),s("div",A,O)):d("v-if",!0),o(c("div",K,[c("div",j,[d(" 表单内嵌打开标签组件的样式 "),d(' <div v-if="explicit" class="explicit-continer">\r\n\t\t\t\t\t<n-tabs :value="state.labelAnchorKey" type="card" @change="labelAnchorTabsOnChange" tab-position="top">\r\n\t\t\t\t\t\t<template v-for="(v, i) in state.labelConfig">\r\n\t\t\t\t\t\t\t<n-tab-pane :name="v.curKey">\r\n\t\t\t\t\t\t\t\t<span slot="tab">\r\n\t\t\t\t\t\t\t\t\t{{ i }}\r\n\t\t\t\t\t\t\t\t\t<span class="edit-label-type">({{ v.multipleChoice == 2 ? \'单\' : \'多\' }}选)</span>\r\n\t\t\t\t\t\t\t\t</span>\r\n\t\t\t\t\t\t\t\t<div class="explicit-label-wrap left-label-wrap">\r\n\t\t\t\t\t\t\t\t\t<div class="edit-label-content">\r\n\t\t\t\t\t\t\t\t\t\t<labelClassify\r\n\t\t\t\t\t\t\t\t\t\t\t:classifyItem="v"\r\n\t\t\t\t\t\t\t\t\t\t\t:handleLabelChange="handleLabelChange"\r\n\t\t\t\t\t\t\t\t\t\t\t:handleLabelColor="handleLabelColor"\r\n\t\t\t\t\t\t\t\t\t\t\t:handleDelLabel="handleDelLabel"\r\n\t\t\t\t\t\t\t\t\t\t\t:hanldeBlur="hanldeBlur"\r\n\t\t\t\t\t\t\t\t\t\t\t:handleAddLabel="handleAddLabel"\r\n\t\t\t\t\t\t\t\t\t\t\t:clearaddVal="clearaddVal"\r\n\t\t\t\t\t\t\t\t\t\t\t:isEdit="isEdit"\r\n\t\t\t\t\t\t\t\t\t\t\t:sourceType="sourceType"\r\n\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t\t</n-tab-pane>\r\n\t\t\t\t\t\t</template>\r\n\t\t\t\t\t</n-tabs>\r\n\t\t\t\t</div> '),d("\r\n\t\t\t\t\t普通标签样式\r\n\t\t\t\t\tv-else\r\n\t\t\t\t\texplicit\r\n\t\t\t\t "),c("div",{class:b(["left-label-wrap",{"total-left-label-wrap":t.isChangeWindow}])},[u(r(I),{"offset-target":et,type:"block",onClick:Z,onChange:tt},{default:p((()=>[(n(!0),s(f,null,h(_.labelConfig,((t,e)=>(n(),y(r(S),{href:`#${t.curKey}`,title:String(e)},null,8,["href","title"])))),256))])),_:1})],2),d(' v-if="!explicit" '),c("div",{class:b(["right-label-wrap",{"total-right-label-wrap":t.isChangeWindow}])},[(n(!0),s(f,null,h(_.labelConfig,((e,l)=>(n(),s("div",{key:l,class:"edit-label-content"},[c("div",{class:"edit-label",id:e.curKey},[v(m(l)+" ",1),c("span",T,"("+m(2==e.multipleChoice?"单":"多")+"选)",1)],8,k),u(E,{classifyItem:e,handleLabelChange:U,handleLabelColor:r(w),handleDelLabel:X,hanldeBlur:H,handleAddLabel:G,clearaddVal:M,isEdit:t.isEdit,sourceType:t.sourceType},null,8,["classifyItem","handleLabelColor","isEdit","sourceType"])])))),128))],2)])],512),[[g,!r(W)]])],512))}});export{B as default};