cnhis-design-vue 3.2.7-beta.0 → 3.2.7-beta.10

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 (137) hide show
  1. package/README.md +87 -87
  2. package/es/components/classification/index.d.ts +39 -0
  3. package/es/components/classification/src/components/search-filter/index.vue.d.ts +39 -0
  4. package/es/components/classification/src/components/search-filter/index.vue2.js +1 -1
  5. package/es/components/classification/src/components/set-classification/index.vue.d.ts +39 -0
  6. package/es/components/classification/src/components/table-modal/index.vue.d.ts +3 -0
  7. package/es/components/classification/src/components/table-modal/index.vue2.js +1 -1
  8. package/es/components/classification/src/index.vue.d.ts +39 -0
  9. package/es/components/date-picker/index.d.ts +13 -0
  10. package/es/components/date-picker/src/DatePicker.vue.d.ts +13 -0
  11. package/es/components/date-picker/src/DatePicker.vue2.js +1 -1
  12. package/es/components/fabric-chart/src/constants/index.d.ts +3 -1
  13. package/es/components/fabric-chart/src/constants/index.js +1 -1
  14. package/es/components/fabric-chart/src/hooks/birthProcess/useBirthProcess.js +1 -1
  15. package/es/components/fabric-chart/src/hooks/birthProcess/useBirthProcessChart.d.ts +8 -3
  16. package/es/components/fabric-chart/src/hooks/birthProcess/useBirthProcessChart.js +1 -1
  17. package/es/components/fabric-chart/src/hooks/electrocardiogram/useElectrocardiogramChart.d.ts +9 -6
  18. package/es/components/fabric-chart/src/hooks/electrocardiogram/useElectrocardiogramChart.js +1 -1
  19. package/es/components/fabric-chart/src/hooks/newBirthProcess/useNewBirthProcess.js +1 -1
  20. package/es/components/fabric-chart/src/hooks/newBirthProcess/useNewBirthProcessChart.d.ts +0 -2
  21. package/es/components/fabric-chart/src/hooks/newBirthProcess/useNewBirthProcessChart.js +1 -1
  22. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useSurgicalAnesthesiaChart.d.ts +8 -3
  23. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useSurgicalAnesthesiaChart.js +1 -1
  24. package/es/components/fabric-chart/src/hooks/temperature/useCenter.js +1 -1
  25. package/es/components/fabric-chart/src/hooks/temperature/useLeft.js +1 -1
  26. package/es/components/fabric-chart/src/hooks/temperature/useTemperatureChart.d.ts +8 -3
  27. package/es/components/fabric-chart/src/hooks/temperature/useTemperatureChart.js +1 -1
  28. package/es/components/fabric-chart/src/hooks/useScaleColumn.d.ts +1 -1
  29. package/es/components/fabric-chart/src/hooks/useScaleColumn.js +1 -1
  30. package/es/components/fabric-chart/src/interface.d.ts +11 -1
  31. package/es/components/field-set/src/FieldColor.vue.d.ts +26 -0
  32. package/es/components/field-set/src/FieldSet.vue.d.ts +1 -1
  33. package/es/components/field-set/src/components/condition.vue.d.ts +13 -0
  34. package/es/components/field-set/src/components/edit-dialog.vue.d.ts +26 -0
  35. package/es/components/field-set/src/components/edit-filter.vue.d.ts +13 -0
  36. package/es/components/form-config/index.d.ts +3 -3
  37. package/es/components/form-config/src/FormConfig.vue.d.ts +3 -3
  38. package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +3 -3
  39. package/es/components/form-render/src/components/renderer/combination/tableCombination.js +1 -1
  40. package/es/components/form-render/src/hooks/useFieldListAdaptor.js +1 -1
  41. package/es/components/form-render/src/hooks/useFormValidator.js +1 -1
  42. package/es/components/form-render/src/types/fieldItem.d.ts +2 -1
  43. package/es/components/form-render/src/utils/schema.d.ts +1 -1
  44. package/es/components/form-render/src/utils/schema.js +1 -1
  45. package/es/components/iho-chat/index.d.ts +160 -45
  46. package/es/components/iho-chat/src/Index.vue.d.ts +160 -45
  47. package/es/components/iho-chat/src/Index.vue2.js +1 -1
  48. package/es/components/iho-chat/src/components/ChatAdd.vue.d.ts +25 -10
  49. package/es/components/iho-chat/src/components/ChatAdd.vue2.js +1 -1
  50. package/es/components/iho-chat/src/components/ChatFooter.vue.d.ts +29 -10
  51. package/es/components/iho-chat/src/components/ChatFooter.vue2.js +1 -1
  52. package/es/components/iho-chat/src/components/ChatHeader.vue.d.ts +39 -11
  53. package/es/components/iho-chat/src/components/ChatHeader.vue2.js +1 -1
  54. package/es/components/iho-chat/src/components/ChatMain.vue.d.ts +21 -5
  55. package/es/components/iho-chat/src/components/ChatMain.vue2.js +1 -1
  56. package/es/components/iho-chat/src/components/ChatRecord.vue.d.ts +13 -0
  57. package/es/components/iho-chat/src/components/ChatRecord.vue2.js +1 -1
  58. package/es/components/iho-chat/src/components/ContextMenu.d.ts +15 -2
  59. package/es/components/iho-chat/src/components/ContextMenu.js +1 -1
  60. package/es/components/iho-chat/src/components/MultipleVideo.vue.d.ts +25 -10
  61. package/es/components/iho-chat/src/components/MultipleVideo.vue2.js +1 -1
  62. package/es/components/iho-chat/src/components/Video.vue2.js +1 -1
  63. package/es/components/iho-chat/src/hooks/useScrollLoading.d.ts +1 -1
  64. package/es/components/iho-chat/src/hooks/useScrollLoading.js +1 -1
  65. package/es/components/iho-chat/src/hooks/useState.js +1 -1
  66. package/es/components/iho-chat/style/index.css +1 -1
  67. package/es/components/iho-table/src/plugins/filterDaterangeRenderPlugin/filter.vue.d.ts +13 -0
  68. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/editDate.vue.d.ts +13 -0
  69. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin/editTime.vue.d.ts +20 -2
  70. package/es/components/index.css +1 -1
  71. package/es/components/quick-search/src/index.vue2.js +1 -1
  72. package/es/components/scale-view/src/ScaleView.vue2.js +1 -1
  73. package/es/components/select-label/src/LabelFormContent.vue2.js +1 -1
  74. package/es/components/shortcut-setter/index.d.ts +1 -1
  75. package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +1 -1
  76. package/es/components/table-export-field/src/components/ExportModal.vue2.js +1 -1
  77. package/es/components/table-export-field/src/components/SaveProjectModal.vue2.js +1 -1
  78. package/es/components/table-filter/src/components/bi-filter/ValueCfg.vue.d.ts +13 -0
  79. package/es/components/table-filter/src/components/bi-filter/components/Date.vue.d.ts +13 -0
  80. package/es/components/table-filter/src/components/bi-filter/components/index.d.ts +13 -0
  81. package/es/components/table-filter/src/components/bi-filter/index.vue.d.ts +13 -0
  82. package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue.d.ts +26 -0
  83. package/es/components/table-filter/src/components/classify-filter/components/Date.vue.d.ts +13 -0
  84. package/es/components/table-filter/src/components/classify-filter/components/DateRange.vue.d.ts +13 -0
  85. package/es/components/table-filter/src/components/classify-filter/components/SelectDynamic.vue2.js +1 -1
  86. package/es/components/table-filter/src/components/classify-filter/components/index.d.ts +26 -0
  87. package/es/components/table-filter/src/components/classify-filter/index.vue.d.ts +26 -0
  88. package/es/components/table-filter/src/components/render-widget/components/DateInner.vue.d.ts +13 -0
  89. package/es/components/table-filter/src/components/render-widget/components/DateOut.vue.d.ts +13 -0
  90. package/es/components/table-filter/src/components/render-widget/components/DateRangeInner.vue.d.ts +13 -0
  91. package/es/components/table-filter/src/components/render-widget/components/DateRangeOut.vue.d.ts +13 -0
  92. package/es/components/table-filter/src/components/render-widget/components/Select.vue2.js +1 -1
  93. package/es/components/table-filter/src/components/render-widget/components/SelectDynamic.vue2.js +1 -1
  94. package/es/components/table-filter/src/components/render-widget/components/SelectDynamicOption/index.vue2.js +1 -1
  95. package/es/components/table-filter/src/components/render-widget/components/index.d.ts +52 -0
  96. package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.d.ts +52 -0
  97. package/es/components/time-picker/index.d.ts +20 -2
  98. package/es/components/time-picker/src/TimePicker.vue.d.ts +21 -2
  99. package/es/components/time-picker/src/TimePicker.vue2.js +1 -1
  100. package/es/env.d.ts +25 -25
  101. package/es/shared/assets/img/defaultCover/10review_successful.png.js +1 -1
  102. package/es/shared/assets/img/defaultCover/11review_fail.png.js +1 -1
  103. package/es/shared/assets/img/defaultCover/12no_setting.png.js +1 -1
  104. package/es/shared/assets/img/defaultCover/13no_menu_setting.png.js +1 -1
  105. package/es/shared/assets/img/defaultCover/14no_call_setting.png.js +1 -1
  106. package/es/shared/assets/img/defaultCover/15no_use_tag.png.js +1 -1
  107. package/es/shared/assets/img/defaultCover/16no_table_data.png.js +1 -1
  108. package/es/shared/assets/img/defaultCover/1location.png.js +1 -1
  109. package/es/shared/assets/img/defaultCover/2notfound.png.js +1 -1
  110. package/es/shared/assets/img/defaultCover/3loading.png.js +1 -1
  111. package/es/shared/assets/img/defaultCover/4no_permission.png.js +1 -1
  112. package/es/shared/assets/img/defaultCover/5no_data.png.js +1 -1
  113. package/es/shared/assets/img/defaultCover/6no_network.png.js +1 -1
  114. package/es/shared/assets/img/defaultCover/7no_doctor.png.js +1 -1
  115. package/es/shared/assets/img/defaultCover/8system_error.png.js +1 -1
  116. package/es/shared/assets/img/defaultCover/9system_upgrade.png.js +1 -1
  117. package/es/shared/assets/img/failure.png.js +1 -1
  118. package/es/shared/assets/img/no-permission.png.js +1 -1
  119. package/es/shared/assets/img/nodata.png.js +1 -1
  120. package/es/shared/assets/img/notfound.png.js +1 -1
  121. package/es/shared/assets/img/qr.png.js +1 -1
  122. package/es/shared/assets/img/success.png.js +1 -1
  123. package/es/shared/assets/img/table_style_2.png.js +1 -1
  124. package/es/shared/assets/img/video.png.js +1 -1
  125. package/es/shared/assets/img/video_default_cover.png.js +1 -1
  126. package/es/shared/assets/img/xb_big.png.js +1 -1
  127. package/es/shared/assets/img/xb_small.png.js +1 -1
  128. package/es/shared/package.json.js +1 -1
  129. package/es/shared/utils/business.js +1 -1
  130. package/package.json +2 -2
  131. package/es/components/bpmn-workflow/src/BpmnWorkflow.d.ts +0 -0
  132. package/es/components/bpmn-workflow/types/BpmnViewer.d.ts +0 -1
  133. package/es/components/bpmn-workflow/types/ModelingModule.d.ts +0 -1
  134. package/es/components/bpmn-workflow/types/MoveCanvasModule.d.ts +0 -1
  135. package/es/shared/components/VueDraggable/src/vuedraggable.d.ts +0 -86
  136. package/es/shared/utils/fabricjs/index.d.ts +0 -6823
  137. package/es/shared/utils/tapable/index.d.ts +0 -139
package/README.md CHANGED
@@ -1,87 +1,87 @@
1
- # 安装
2
-
3
- ```shell
4
- npm i cnhis-design-vue@[版本号]
5
- # or
6
- yarn add cnhis-design-vue@[版本号] #推荐
7
- ```
8
-
9
- ## 1.全局引入
10
-
11
- ```typescript
12
- // main.ts
13
- import { createApp } from 'vue';
14
- import App from './App.vue';
15
- import 'cnhis-design-vue/es/packages/index.css';
16
- import cui from 'cnhis-design-vue';
17
-
18
- const app = createApp(App);
19
- app.use(cui).mount('#app');
20
- ```
21
-
22
- ## 2. 按需引入
23
-
24
- 组件现在支持了自动按需引入, 但是样式文件需要额外的处理
25
-
26
- ### 2.1 样式处理方式1 (按需引入样式)
27
-
28
- ```shell
29
- # 安装自动导入样式的插件
30
- npm i -d vite-plugin-style-import
31
- ```
32
-
33
- ```typescript
34
- // vite.config.ts
35
- import { defineConfig } from 'vite';
36
- import { createStyleImportPlugin } from 'vite-plugin-style-import';
37
-
38
- export default defineConfig({
39
- plugins: [
40
- // ...otherPlugins
41
- createStyleImportPlugin({
42
- libs: [
43
- {
44
- libraryName: 'cnhis-design-vue',
45
- esModule: true,
46
- ensureStyleFile: true,
47
- resolveStyle: name => {
48
- return `cnhis-design-vue/es/components/${ name.slice(2) }/style/index.css`;
49
- }
50
- }
51
- ]
52
- })
53
- ]
54
- });
55
- ```
56
-
57
- ### 2.2 样式处理方式2 (全局引入样式)
58
-
59
- ```typescript
60
- // main.ts
61
- import 'cnhis-design-vue/es/components/index.css';
62
- ```
63
-
64
- ## 3.FAQ
65
-
66
- ### 3.1 项目打包后样式丢失
67
-
68
- 处理方法, 将 cnhis-design-vue 从 vendor 包中移除 (没有出现此问题则不需要)
69
-
70
- ```typescript
71
- // vite.config.ts
72
- import { defineConfig } from 'vite';
73
-
74
- export default defineConfig({
75
- build: {
76
- rollupOptions: {
77
- // ..otherOptions
78
- output: {
79
- dir: './dist',
80
- manualChunks: {
81
- 'cnhis-vendor': ['cnhis-design-vue']
82
- }
83
- }
84
- }
85
- }
86
- });
87
- ```
1
+ # 安装
2
+
3
+ ```shell
4
+ npm i cnhis-design-vue@[版本号]
5
+ # or
6
+ yarn add cnhis-design-vue@[版本号] #推荐
7
+ ```
8
+
9
+ ## 1.全局引入
10
+
11
+ ```typescript
12
+ // main.ts
13
+ import { createApp } from 'vue';
14
+ import App from './App.vue';
15
+ import 'cnhis-design-vue/es/packages/index.css';
16
+ import cui from 'cnhis-design-vue';
17
+
18
+ const app = createApp(App);
19
+ app.use(cui).mount('#app');
20
+ ```
21
+
22
+ ## 2. 按需引入
23
+
24
+ 组件现在支持了自动按需引入, 但是样式文件需要额外的处理
25
+
26
+ ### 2.1 样式处理方式1 (按需引入样式)
27
+
28
+ ```shell
29
+ # 安装自动导入样式的插件
30
+ npm i -d vite-plugin-style-import
31
+ ```
32
+
33
+ ```typescript
34
+ // vite.config.ts
35
+ import { defineConfig } from 'vite';
36
+ import { createStyleImportPlugin } from 'vite-plugin-style-import';
37
+
38
+ export default defineConfig({
39
+ plugins: [
40
+ // ...otherPlugins
41
+ createStyleImportPlugin({
42
+ libs: [
43
+ {
44
+ libraryName: 'cnhis-design-vue',
45
+ esModule: true,
46
+ ensureStyleFile: true,
47
+ resolveStyle: name => {
48
+ return `cnhis-design-vue/es/components/${ name.slice(2) }/style/index.css`;
49
+ }
50
+ }
51
+ ]
52
+ })
53
+ ]
54
+ });
55
+ ```
56
+
57
+ ### 2.2 样式处理方式2 (全局引入样式)
58
+
59
+ ```typescript
60
+ // main.ts
61
+ import 'cnhis-design-vue/es/components/index.css';
62
+ ```
63
+
64
+ ## 3.FAQ
65
+
66
+ ### 3.1 项目打包后样式丢失
67
+
68
+ 处理方法, 将 cnhis-design-vue 从 vendor 包中移除 (没有出现此问题则不需要)
69
+
70
+ ```typescript
71
+ // vite.config.ts
72
+ import { defineConfig } from 'vite';
73
+
74
+ export default defineConfig({
75
+ build: {
76
+ rollupOptions: {
77
+ // ..otherOptions
78
+ output: {
79
+ dir: './dist',
80
+ manualChunks: {
81
+ 'cnhis-vendor': ['cnhis-design-vue']
82
+ }
83
+ }
84
+ }
85
+ }
86
+ });
87
+ ```
@@ -829,6 +829,10 @@ declare const CClassification: SFCWithInstall<import("vue").DefineComponent<{
829
829
  allowedInvalidValue: {
830
830
  type: StringConstructor;
831
831
  };
832
+ to: {
833
+ type: import("vue").PropType<string | false | HTMLElement>;
834
+ default: string;
835
+ };
832
836
  }, {
833
837
  attrs: {
834
838
  [x: string]: unknown;
@@ -849,6 +853,10 @@ declare const CClassification: SFCWithInstall<import("vue").DefineComponent<{
849
853
  allowedInvalidValue: {
850
854
  type: StringConstructor;
851
855
  };
856
+ to: {
857
+ type: import("vue").PropType<string | false | HTMLElement>;
858
+ default: string;
859
+ };
852
860
  }>> & {
853
861
  "onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
854
862
  }>>;
@@ -885,10 +893,15 @@ declare const CClassification: SFCWithInstall<import("vue").DefineComponent<{
885
893
  allowedInvalidValue: {
886
894
  type: StringConstructor;
887
895
  };
896
+ to: {
897
+ type: import("vue").PropType<string | false | HTMLElement>;
898
+ default: string;
899
+ };
888
900
  }>> & {
889
901
  "onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
890
902
  }, {
891
903
  updateUnchangedValue: boolean;
904
+ to: string | false | HTMLElement;
892
905
  }>>;
893
906
  NSelect: any;
894
907
  WidgetValEnums: {
@@ -1462,6 +1475,10 @@ declare const CClassification: SFCWithInstall<import("vue").DefineComponent<{
1462
1475
  allowedInvalidValue: {
1463
1476
  type: StringConstructor;
1464
1477
  };
1478
+ to: {
1479
+ type: import("vue").PropType<string | false | HTMLElement>;
1480
+ default: string;
1481
+ };
1465
1482
  }, {
1466
1483
  attrs: {
1467
1484
  [x: string]: unknown;
@@ -1482,6 +1499,10 @@ declare const CClassification: SFCWithInstall<import("vue").DefineComponent<{
1482
1499
  allowedInvalidValue: {
1483
1500
  type: StringConstructor;
1484
1501
  };
1502
+ to: {
1503
+ type: import("vue").PropType<string | false | HTMLElement>;
1504
+ default: string;
1505
+ };
1485
1506
  }>> & {
1486
1507
  "onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
1487
1508
  }>>;
@@ -1518,10 +1539,15 @@ declare const CClassification: SFCWithInstall<import("vue").DefineComponent<{
1518
1539
  allowedInvalidValue: {
1519
1540
  type: StringConstructor;
1520
1541
  };
1542
+ to: {
1543
+ type: import("vue").PropType<string | false | HTMLElement>;
1544
+ default: string;
1545
+ };
1521
1546
  }>> & {
1522
1547
  "onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
1523
1548
  }, {
1524
1549
  updateUnchangedValue: boolean;
1550
+ to: string | false | HTMLElement;
1525
1551
  }>>;
1526
1552
  WidgetValEnums: {
1527
1553
  CUSTOM: string;
@@ -1911,6 +1937,10 @@ declare const CClassification: SFCWithInstall<import("vue").DefineComponent<{
1911
1937
  allowedInvalidValue: {
1912
1938
  type: StringConstructor;
1913
1939
  };
1940
+ to: {
1941
+ type: import("vue").PropType<string | false | HTMLElement>;
1942
+ default: string;
1943
+ };
1914
1944
  }, {
1915
1945
  attrs: {
1916
1946
  [x: string]: unknown;
@@ -1931,6 +1961,10 @@ declare const CClassification: SFCWithInstall<import("vue").DefineComponent<{
1931
1961
  allowedInvalidValue: {
1932
1962
  type: StringConstructor;
1933
1963
  };
1964
+ to: {
1965
+ type: import("vue").PropType<string | false | HTMLElement>;
1966
+ default: string;
1967
+ };
1934
1968
  }>> & {
1935
1969
  "onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
1936
1970
  }>>;
@@ -1967,10 +2001,15 @@ declare const CClassification: SFCWithInstall<import("vue").DefineComponent<{
1967
2001
  allowedInvalidValue: {
1968
2002
  type: StringConstructor;
1969
2003
  };
2004
+ to: {
2005
+ type: import("vue").PropType<string | false | HTMLElement>;
2006
+ default: string;
2007
+ };
1970
2008
  }>> & {
1971
2009
  "onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
1972
2010
  }, {
1973
2011
  updateUnchangedValue: boolean;
2012
+ to: string | false | HTMLElement;
1974
2013
  }>>;
1975
2014
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
1976
2015
  componentCfg: {
@@ -293,6 +293,10 @@ declare const _default: import("vue").DefineComponent<{
293
293
  allowedInvalidValue: {
294
294
  type: StringConstructor;
295
295
  };
296
+ to: {
297
+ type: import("vue").PropType<string | false | HTMLElement>;
298
+ default: string;
299
+ };
296
300
  }, {
297
301
  attrs: {
298
302
  [x: string]: unknown;
@@ -313,6 +317,10 @@ declare const _default: import("vue").DefineComponent<{
313
317
  allowedInvalidValue: {
314
318
  type: StringConstructor;
315
319
  };
320
+ to: {
321
+ type: import("vue").PropType<string | false | HTMLElement>;
322
+ default: string;
323
+ };
316
324
  }>> & {
317
325
  "onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
318
326
  }>>;
@@ -349,10 +357,15 @@ declare const _default: import("vue").DefineComponent<{
349
357
  allowedInvalidValue: {
350
358
  type: StringConstructor;
351
359
  };
360
+ to: {
361
+ type: import("vue").PropType<string | false | HTMLElement>;
362
+ default: string;
363
+ };
352
364
  }>> & {
353
365
  "onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
354
366
  }, {
355
367
  updateUnchangedValue: boolean;
368
+ to: string | false | HTMLElement;
356
369
  }>>;
357
370
  NSelect: any;
358
371
  WidgetValEnums: {
@@ -926,6 +939,10 @@ declare const _default: import("vue").DefineComponent<{
926
939
  allowedInvalidValue: {
927
940
  type: StringConstructor;
928
941
  };
942
+ to: {
943
+ type: import("vue").PropType<string | false | HTMLElement>;
944
+ default: string;
945
+ };
929
946
  }, {
930
947
  attrs: {
931
948
  [x: string]: unknown;
@@ -946,6 +963,10 @@ declare const _default: import("vue").DefineComponent<{
946
963
  allowedInvalidValue: {
947
964
  type: StringConstructor;
948
965
  };
966
+ to: {
967
+ type: import("vue").PropType<string | false | HTMLElement>;
968
+ default: string;
969
+ };
949
970
  }>> & {
950
971
  "onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
951
972
  }>>;
@@ -982,10 +1003,15 @@ declare const _default: import("vue").DefineComponent<{
982
1003
  allowedInvalidValue: {
983
1004
  type: StringConstructor;
984
1005
  };
1006
+ to: {
1007
+ type: import("vue").PropType<string | false | HTMLElement>;
1008
+ default: string;
1009
+ };
985
1010
  }>> & {
986
1011
  "onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
987
1012
  }, {
988
1013
  updateUnchangedValue: boolean;
1014
+ to: string | false | HTMLElement;
989
1015
  }>>;
990
1016
  WidgetValEnums: {
991
1017
  CUSTOM: string;
@@ -1375,6 +1401,10 @@ declare const _default: import("vue").DefineComponent<{
1375
1401
  allowedInvalidValue: {
1376
1402
  type: StringConstructor;
1377
1403
  };
1404
+ to: {
1405
+ type: import("vue").PropType<string | false | HTMLElement>;
1406
+ default: string;
1407
+ };
1378
1408
  }, {
1379
1409
  attrs: {
1380
1410
  [x: string]: unknown;
@@ -1395,6 +1425,10 @@ declare const _default: import("vue").DefineComponent<{
1395
1425
  allowedInvalidValue: {
1396
1426
  type: StringConstructor;
1397
1427
  };
1428
+ to: {
1429
+ type: import("vue").PropType<string | false | HTMLElement>;
1430
+ default: string;
1431
+ };
1398
1432
  }>> & {
1399
1433
  "onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
1400
1434
  }>>;
@@ -1431,10 +1465,15 @@ declare const _default: import("vue").DefineComponent<{
1431
1465
  allowedInvalidValue: {
1432
1466
  type: StringConstructor;
1433
1467
  };
1468
+ to: {
1469
+ type: import("vue").PropType<string | false | HTMLElement>;
1470
+ default: string;
1471
+ };
1434
1472
  }>> & {
1435
1473
  "onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
1436
1474
  }, {
1437
1475
  updateUnchangedValue: boolean;
1476
+ to: string | false | HTMLElement;
1438
1477
  }>>;
1439
1478
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
1440
1479
  componentCfg: {
@@ -1 +1 @@
1
- import{defineComponent as e,ref as i,inject as t,onBeforeUnmount as l,watch as a,openBlock as n,createBlock as o,unref as s,normalizeClass as d,withCtx as c,createVNode as r,normalizeStyle as u,createElementVNode as f,createTextVNode as h,createElementBlock as v,Fragment as m,createCommentVNode as p,mergeProps as x}from"vue";import{NModal as b,NCard as g,NButton as y}from"naive-ui";import{InjectionClassifyfilterType as L}from"../../../../table-filter/src/constants/index.js";import k from"../../../../table-filter/src/components/classify-filter/index.vue.js";import z from"../../../../table-filter/src/components/bi-filter/index.vue.js";const A={class:"svg-wrap"},_={class:"flex_right"};var w=e({__name:"index",props:{visible:{type:Boolean,default:!1},modalTitle:{type:String,default:"设置分类"},conditionList:{type:Array,default:()=>[]},searchFieldList:{type:Array,default:()=>[]}},emits:["cancelSaveAdd"],setup(e,{expose:w,emit:C}){const F=e,S=i(F.visible),H=i(!1),T=i("860px");let $=i({maxHeight:"496px",height:"496px"}),j=i(null),R=null;const B=t(L);function I(){N(),R=setTimeout((()=>{j&&j.value.handleInitConditions()}),30)}function N(){R&&clearTimeout(R)}function P(){j&&j.value.saveAdd()}function U(){S.value=!1,C("cancelSaveAdd"),T.value="860px",$.value={height:"496px",maxHeight:"496px"},H.value=!1,j&&j.value.cancelSaveAdd()}function q(){H.value=!H.value;let e=document.body.clientHeight;"860px"===T.value?(T.value="100%",$.value.maxHeight=`${e}px`,$.value.height=`${e}px`):(T.value="860px",$.value.maxHeight="496px",$.value.height="")}return l((()=>{N()})),a((()=>F.visible),(e=>{S.value=e,e&&I()})),w({cancelSaveAdd:U}),(e,i)=>(n(),o(s(b),{class:d(["classification-modal-block standard-modal standard-modal-white search-filter-modal",{"modal-screen":H.value}]),show:S.value,"onUpdate:show":i[0]||(i[0]=e=>S.value=e),maskClosable:!1,width:T.value,bodyStyle:s($),closable:!1,centered:"",onPositiveClick:P,onNegativeClick:U},{default:c((()=>[r(s(g),{style:u({width:T.value,...s($)}),title:F.modalTitle,bordered:!1,size:"huge",role:"dialog","aria-modal":"true"},{"header-extra":c((()=>[f("div",A,[f("i",{onClick:q,class:d(["iconfont-table-filter",H.value?"icon-table-filter-menzhenyishengzhanxitongtubiaozuixiaohua2":"icon-table-filter-menzhenyishengzhanxitongtubiaozuidahua"])},null,2),f("i",{onClick:U,class:"iconfont-table-filter icon-table-filter-menzhenyishengzhanxitongtubiaoguanbi"})])])),footer:c((()=>[f("div",_,[r(s(y),{onClick:U},{default:c((()=>[h("取消")])),_:1}),r(s(y),{type:"info",onClick:P},{default:c((()=>[h("保存")])),_:1})])])),default:c((()=>["1"===s(B)?(n(),v(m,{key:0},[p(" 默认配置弹窗 "),r(k,x(e.$attrs,{ref_key:"conditionApiRef",ref:j,searchFieldList:F.searchFieldList,conditionList:F.conditionList}),null,16,["searchFieldList","conditionList"])],64)):"2"===s(B)?(n(),v(m,{key:1},[p(" bi配置弹窗 "),r(z,x(e.$attrs,{ref_key:"conditionApiRef",ref:j,searchFieldList:F.searchFieldList,conditionList:F.conditionList}),null,16,["searchFieldList","conditionList"])],64)):p("v-if",!0)])),_:1},8,["style","title"])])),_:1},8,["class","show","width","bodyStyle"]))}});export{w as default};
1
+ import{defineComponent as e,ref as i,inject as t,onBeforeUnmount as l,watch as a,openBlock as o,createBlock as n,unref as s,normalizeClass as d,withCtx as c,createVNode as r,normalizeStyle as u,createElementVNode as f,createTextVNode as h,createElementBlock as v,Fragment as m,createCommentVNode as p,mergeProps as x}from"vue";import{NModal as b,NCard as y,NButton as g}from"naive-ui";import{InjectionClassifyfilterType as L}from"../../../../table-filter/src/constants/index.js";import k from"../../../../table-filter/src/components/classify-filter/index.vue.js";import z from"../../../../table-filter/src/components/bi-filter/index.vue.js";const A={class:"svg-wrap"},_={class:"flex_right"};var w=e({__name:"index",props:{visible:{type:Boolean,default:!1},modalTitle:{type:String,default:"设置分类"},conditionList:{type:Array,default:()=>[]},searchFieldList:{type:Array,default:()=>[]}},emits:["cancelSaveAdd"],setup(e,{expose:w,emit:C}){const F=e,S=i(F.visible),H=i(!1),T=i("860px");let $=i({maxHeight:"496px",height:"496px"}),j=i(null),R=null;const B=t(L);function I(){N(),R=setTimeout((()=>{j&&j.value.handleInitConditions()}),30)}function N(){R&&clearTimeout(R)}function P(){j&&j.value.saveAdd()}function U(){S.value=!1,C("cancelSaveAdd"),T.value="860px",$.value={height:"496px",maxHeight:"496px"},H.value=!1,j&&j.value.cancelSaveAdd()}function q(){H.value=!H.value;let e=document.body.clientHeight;"860px"===T.value?(T.value="100%",$.value.maxHeight=`${e}px`,$.value.height=`${e}px`):(T.value="860px",$.value.maxHeight="496px",$.value.height="")}return l((()=>{N()})),a((()=>F.visible),(e=>{S.value=e,e&&I()})),w({cancelSaveAdd:U}),(e,i)=>(o(),n(s(b),{class:d(["classification-modal-block standard-modal standard-modal-white search-filter-modal",{"modal-screen":H.value}]),show:S.value,"onUpdate:show":i[0]||(i[0]=e=>S.value=e),maskClosable:!1,width:T.value,bodyStyle:s($),closable:!1,to:"body",centered:"",onPositiveClick:P,onNegativeClick:U},{default:c((()=>[r(s(y),{style:u({width:T.value,...s($)}),title:F.modalTitle,bordered:!1,size:"huge",role:"dialog","aria-modal":"true"},{"header-extra":c((()=>[f("div",A,[f("i",{onClick:q,class:d(["iconfont-table-filter",H.value?"icon-table-filter-menzhenyishengzhanxitongtubiaozuixiaohua2":"icon-table-filter-menzhenyishengzhanxitongtubiaozuidahua"])},null,2),f("i",{onClick:U,class:"iconfont-table-filter icon-table-filter-menzhenyishengzhanxitongtubiaoguanbi"})])])),footer:c((()=>[f("div",_,[r(s(g),{onClick:U},{default:c((()=>[h("取消")])),_:1}),r(s(g),{type:"info",onClick:P},{default:c((()=>[h("保存")])),_:1})])])),default:c((()=>["1"===s(B)?(o(),v(m,{key:0},[p(" 默认配置弹窗 "),r(k,x(e.$attrs,{ref_key:"conditionApiRef",ref:j,searchFieldList:F.searchFieldList,conditionList:F.conditionList}),null,16,["searchFieldList","conditionList"])],64)):"2"===s(B)?(o(),v(m,{key:1},[p(" bi配置弹窗 "),r(z,x(e.$attrs,{ref_key:"conditionApiRef",ref:j,searchFieldList:F.searchFieldList,conditionList:F.conditionList}),null,16,["searchFieldList","conditionList"])],64)):p("v-if",!0)])),_:1},8,["style","title"])])),_:1},8,["class","show","width","bodyStyle"]))}});export{w as default};
@@ -587,6 +587,10 @@ declare const _default: import("vue").DefineComponent<{
587
587
  allowedInvalidValue: {
588
588
  type: StringConstructor;
589
589
  };
590
+ to: {
591
+ type: import("vue").PropType<string | false | HTMLElement>;
592
+ default: string;
593
+ };
590
594
  }, {
591
595
  attrs: {
592
596
  [x: string]: unknown;
@@ -607,6 +611,10 @@ declare const _default: import("vue").DefineComponent<{
607
611
  allowedInvalidValue: {
608
612
  type: StringConstructor;
609
613
  };
614
+ to: {
615
+ type: import("vue").PropType<string | false | HTMLElement>;
616
+ default: string;
617
+ };
610
618
  }>> & {
611
619
  "onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
612
620
  }>>;
@@ -643,10 +651,15 @@ declare const _default: import("vue").DefineComponent<{
643
651
  allowedInvalidValue: {
644
652
  type: StringConstructor;
645
653
  };
654
+ to: {
655
+ type: import("vue").PropType<string | false | HTMLElement>;
656
+ default: string;
657
+ };
646
658
  }>> & {
647
659
  "onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
648
660
  }, {
649
661
  updateUnchangedValue: boolean;
662
+ to: string | false | HTMLElement;
650
663
  }>>;
651
664
  NSelect: any;
652
665
  WidgetValEnums: {
@@ -1220,6 +1233,10 @@ declare const _default: import("vue").DefineComponent<{
1220
1233
  allowedInvalidValue: {
1221
1234
  type: StringConstructor;
1222
1235
  };
1236
+ to: {
1237
+ type: import("vue").PropType<string | false | HTMLElement>;
1238
+ default: string;
1239
+ };
1223
1240
  }, {
1224
1241
  attrs: {
1225
1242
  [x: string]: unknown;
@@ -1240,6 +1257,10 @@ declare const _default: import("vue").DefineComponent<{
1240
1257
  allowedInvalidValue: {
1241
1258
  type: StringConstructor;
1242
1259
  };
1260
+ to: {
1261
+ type: import("vue").PropType<string | false | HTMLElement>;
1262
+ default: string;
1263
+ };
1243
1264
  }>> & {
1244
1265
  "onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
1245
1266
  }>>;
@@ -1276,10 +1297,15 @@ declare const _default: import("vue").DefineComponent<{
1276
1297
  allowedInvalidValue: {
1277
1298
  type: StringConstructor;
1278
1299
  };
1300
+ to: {
1301
+ type: import("vue").PropType<string | false | HTMLElement>;
1302
+ default: string;
1303
+ };
1279
1304
  }>> & {
1280
1305
  "onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
1281
1306
  }, {
1282
1307
  updateUnchangedValue: boolean;
1308
+ to: string | false | HTMLElement;
1283
1309
  }>>;
1284
1310
  WidgetValEnums: {
1285
1311
  CUSTOM: string;
@@ -1669,6 +1695,10 @@ declare const _default: import("vue").DefineComponent<{
1669
1695
  allowedInvalidValue: {
1670
1696
  type: StringConstructor;
1671
1697
  };
1698
+ to: {
1699
+ type: import("vue").PropType<string | false | HTMLElement>;
1700
+ default: string;
1701
+ };
1672
1702
  }, {
1673
1703
  attrs: {
1674
1704
  [x: string]: unknown;
@@ -1689,6 +1719,10 @@ declare const _default: import("vue").DefineComponent<{
1689
1719
  allowedInvalidValue: {
1690
1720
  type: StringConstructor;
1691
1721
  };
1722
+ to: {
1723
+ type: import("vue").PropType<string | false | HTMLElement>;
1724
+ default: string;
1725
+ };
1692
1726
  }>> & {
1693
1727
  "onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
1694
1728
  }>>;
@@ -1725,10 +1759,15 @@ declare const _default: import("vue").DefineComponent<{
1725
1759
  allowedInvalidValue: {
1726
1760
  type: StringConstructor;
1727
1761
  };
1762
+ to: {
1763
+ type: import("vue").PropType<string | false | HTMLElement>;
1764
+ default: string;
1765
+ };
1728
1766
  }>> & {
1729
1767
  "onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
1730
1768
  }, {
1731
1769
  updateUnchangedValue: boolean;
1770
+ to: string | false | HTMLElement;
1732
1771
  }>>;
1733
1772
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
1734
1773
  componentCfg: {
@@ -175,6 +175,9 @@ declare const _default: import("vue").DefineComponent<{
175
175
  modelValue: unknown[];
176
176
  componentData: Record<string, any>;
177
177
  } & {
178
+ /**
179
+ * 改变弹窗大小
180
+ */
178
181
  itemKey?: string | Function | undefined;
179
182
  }>, {
180
183
  move: Function;
@@ -1 +1 @@
1
- import{defineComponent as e,ref as t,inject as i,watch as l,openBlock as a,createBlock as n,unref as o,normalizeClass as s,withCtx as c,createVNode as r,normalizeStyle as u,createSlots as d,createElementVNode as p,withDirectives as v,createTextVNode as m,toDisplayString as h,createCommentVNode as f,withModifiers as y,vShow as g,createElementBlock as w,renderSlot as k}from"vue";import{NModal as x,NCard as b,NTooltip as C,NIcon as z,NSwitch as S,NPopconfirm as _,NButton as D}from"naive-ui";import{ReorderTwo as I,Brush as E,DocumentOutline as N}from"@vicons/ionicons5";import P from"../../../../../shared/components/VueDraggable/src/vuedraggable.js";import{root_isShowResetButton as F}from"../../const/index.js";import{cloneDeep as M}from"lodash-es";const U={class:"svg-wrap"},V={class:"flex_between"},B={class:"table-modal-list"},O=p("div",{class:"list-title"},[p("span",{class:"list-title-item",style:{width:"6%"}}),p("span",{class:"list-title-item"}," 名称 "),p("span",{class:"list-title-item"}," 父类名称 "),p("span",{class:"list-title-item"}," 是否显示 "),p("span",{class:"list-title-item"}," 设置为默认 "),p("span",{class:"list-title-item"}," 操作 ")],-1),j=["onClick"],Y={class:"list-content-item",style:{width:"6%","text-align":"center",overflow:"initial"}},$=["title"],A=["title"],H={class:"list-content-item list-content-switch"},J={class:"list-content-item list-content-radio"},q={class:"list-content-item"},G={key:0},K=p("svg",{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 32 32"},[p("path",{d:"M12 12h2v12h-2z",fill:"currentColor"}),p("path",{d:"M18 12h2v12h-2z",fill:"currentColor"}),p("path",{d:"M4 6v2h2v20a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V8h2V6zm4 22V8h16v20z",fill:"currentColor"}),p("path",{d:"M12 2h8v2h-8z",fill:"currentColor"})],-1);var L=e({__name:"index",props:{visibleIn:{type:Boolean},loading:{type:Boolean},confirm:{type:Function},edit:{type:Function,defdault:()=>({})},copy:{type:Function,defdault:()=>({})},delItem:{type:Function,defdault:()=>({})},dataSource:{type:Array,default:()=>[]},type:{type:String,default:"search"},transitionName:{type:String},getContainer:{type:Function,default:()=>document.body}},emits:["handleOk","close","resetPopconfirm","finishSubmit"],setup(e,{emit:L}){const Q=e,R=t([]),T=t(Q.visibleIn),W=t(!1),X=t("other"==Q.type?"100%":"860px"),Z=t("654px"),ee=i(F);function te(){var e;Q.type&&(le(),L("handleOk","search"==(e=Q.type)||"other"==e?{id:"",tableId:"",setting:JSON.stringify(R.value.map((e=>({isDefault:e.isDefault,isShow:e.isShow,name:e.name,type:e.type,classifyId:e.sid}))))}:void 0))}function ie(){T.value=!1,le(),L("close")}function le(){X.value="860px",Z.value="654px",W.value=!1}function ae(){W.value=!W.value;let e=document.body.clientHeight;X.value="860px"===X.value?"100%":"860px",Z.value="654px"===Z.value?`${e}px`:"654px"}function ne(e){L("resetPopconfirm",e)}function oe(e,t,i){const l=Q[e];l&&l(t,i)}return l((()=>Q.visibleIn),(e=>{T.value=e})),l((()=>Q.dataSource),(e=>{R.value=M(e)}),{immediate:!0,deep:!0}),(t,i)=>(a(),n(o(x),{show:T.value,bodyStyle:{height:Z.value,overflowY:"auto"},width:X.value,maskClosable:!1,class:s(["classification-modal-block standard-modal standard-modal-white",{"modal-screen":W.value}]),closable:!1,centered:"",transitionName:e.transitionName,getContainer:e.getContainer,"positive-text":"保存","negative-text":"取消",onPositiveClick:te,onNegativeClick:ie},{default:c((()=>[r(o(b),{style:u({width:X.value,height:Z.value,overflowY:"auto"}),title:"设置分类",bordered:!1,size:"huge",role:"dialog","aria-modal":"true"},d({"header-extra":c((()=>[p("div",U,[p("i",{onClick:ae,class:s(["iconfont-table-filter",W.value?"icon-table-filter-menzhenyishengzhanxitongtubiaozuixiaohua2":"icon-table-filter-menzhenyishengzhanxitongtubiaozuidahua"])},null,2),p("i",{onClick:ie,class:"iconfont-table-filter icon-table-filter-menzhenyishengzhanxitongtubiaoguanbi"})])])),default:c((()=>[p("div",B,[O,r(o(P),{class:"list-content",tag:"ul",list:R.value,"item-key":"sid",animation:"300"},{item:c((({element:t})=>[v(p("li",{class:s({checked:t.checked}),onClick:e=>{return i=t,void R.value.forEach((e=>{e.sid==i.sid?e.checked=!0:e.checked=!1}));var i}},[p("span",Y,[r(o(C),{mouseEnterDelay:1},{trigger:c((()=>[r(o(z),{component:o(I),size:"24"},null,8,["component"])])),default:c((()=>[m(" 拖拽调整顺序 ")])),_:1})]),p("span",{title:t.displayCategory,class:"list-content-item"},h(t.name),9,$),p("span",{title:t.name,class:"list-content-item"},h(t.displayCategory),9,A),p("span",H,[r(o(S),{"onUpdate:value":e=>{return i=t,void R.value.forEach((e=>{e.sid==i.sid&&(e.isShow=!e.isShow,e.isShow||(i.isDefault=!1))}));var i},size:"small",value:t.isShow},null,8,["onUpdate:value","value"])]),p("span",J,[r(o(S),{"onUpdate:value":e=>{var i;(i=t).isShow&&R.value.forEach((e=>{e.sid==i.sid?e.isDefault=!e.isDefault:e.isDefault=!1}))},size:"small",value:t.isDefault},null,8,["onUpdate:value","value"])]),p("span",q,[f(" 编辑 "),v(p("span",null,[r(o(C),null,{trigger:c((()=>[r(o(z),{component:o(E),onClick:y((e=>oe("edit",t,"编辑")),["prevent","stop"])},null,8,["component","onClick"])])),default:c((()=>[m(" 编辑 ")])),_:2},1024)],512),[[g,"other"==e.type||"search"==e.type&&t.isEdit]]),f(" 复制 "),v(p("span",null,[r(o(C),null,{trigger:c((()=>[r(o(z),{component:o(N),onClick:y((e=>oe("copy",t,"复制")),["prevent","stop"])},null,8,["component","onClick"])])),default:c((()=>[m(" 复制 ")])),_:2},1024)],512),[[g,"search"==e.type||"other"==e.type]]),f(" 删除 "),t.isEdit?(a(),w("span",G,[r(o(_),{onPositiveClick:e=>oe("delItem",t,"删除")},{trigger:c((()=>[r(o(z),null,{default:c((()=>[K])),_:1})])),default:c((()=>[m(" 是否确认删除? ")])),_:2},1032,["onPositiveClick"])])):f("v-if",!0)])],10,j),[[g,"line"!=t.type]])])),_:1},8,["list"])])])),_:2},["search"==e.type?{name:"footer",fn:c((()=>[p("div",V,[p("div",null,[o(ee)?(a(),n(o(_),{key:0,placement:"top-start","positive-text":"确认","negative-text":"取消",onPositiveClick:ne},{trigger:c((()=>[r(o(D),null,{default:c((()=>[m("恢复默认设置")])),_:1})])),default:c((()=>[m(" 确认要恢复系统默认设置吗? ")])),_:1})):f("v-if",!0)]),p("div",null,[r(o(D),{onClick:ie},{default:c((()=>[m("取消")])),_:1}),k(t.$slots,"add"),r(o(D),{type:"info",onClick:te},{default:c((()=>[m("保存")])),_:1})])])])),key:"0"}:void 0]),1032,["style"])])),_:3},8,["show","bodyStyle","width","class","transitionName","getContainer"]))}});export{L as default};
1
+ import{defineComponent as e,ref as t,inject as i,watch as l,openBlock as a,createBlock as n,unref as o,normalizeClass as s,withCtx as c,createVNode as r,normalizeStyle as u,createSlots as d,createElementVNode as p,withDirectives as v,createTextVNode as m,toDisplayString as h,createCommentVNode as f,withModifiers as y,vShow as g,createElementBlock as w,renderSlot as k}from"vue";import{NModal as x,NCard as b,NTooltip as C,NIcon as z,NSwitch as S,NPopconfirm as _,NButton as D}from"naive-ui";import{ReorderTwo as I,Brush as E,DocumentOutline as N}from"@vicons/ionicons5";import P from"../../../../../shared/components/VueDraggable/src/vuedraggable.js";import{root_isShowResetButton as F}from"../../const/index.js";import{cloneDeep as M}from"lodash-es";const U={class:"svg-wrap"},V={class:"flex_between"},B={class:"table-modal-list"},O=p("div",{class:"list-title"},[p("span",{class:"list-title-item",style:{width:"6%"}}),p("span",{class:"list-title-item"}," 名称 "),p("span",{class:"list-title-item"}," 父类名称 "),p("span",{class:"list-title-item"}," 是否显示 "),p("span",{class:"list-title-item"}," 设置为默认 "),p("span",{class:"list-title-item"}," 操作 ")],-1),j=["onClick"],Y={class:"list-content-item",style:{width:"6%","text-align":"center",overflow:"initial"}},$=["title"],A=["title"],H={class:"list-content-item list-content-switch"},J={class:"list-content-item list-content-radio"},q={class:"list-content-item"},G={key:0},K=p("svg",{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 32 32"},[p("path",{d:"M12 12h2v12h-2z",fill:"currentColor"}),p("path",{d:"M18 12h2v12h-2z",fill:"currentColor"}),p("path",{d:"M4 6v2h2v20a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V8h2V6zm4 22V8h16v20z",fill:"currentColor"}),p("path",{d:"M12 2h8v2h-8z",fill:"currentColor"})],-1);var L=e({__name:"index",props:{visibleIn:{type:Boolean},loading:{type:Boolean},confirm:{type:Function},edit:{type:Function,defdault:()=>({})},copy:{type:Function,defdault:()=>({})},delItem:{type:Function,defdault:()=>({})},dataSource:{type:Array,default:()=>[]},type:{type:String,default:"search"},transitionName:{type:String},getContainer:{type:Function,default:()=>document.body}},emits:["handleOk","close","resetPopconfirm","finishSubmit"],setup(e,{emit:L}){const Q=e,R=t([]),T=t(Q.visibleIn),W=t(!1),X=t("other"==Q.type?"100%":"860px"),Z=t("654px"),ee=i(F);function te(){var e;Q.type&&(le(),L("handleOk","search"==(e=Q.type)||"other"==e?{id:"",tableId:"",setting:JSON.stringify(R.value.map((e=>({isDefault:e.isDefault,isShow:e.isShow,name:e.name,type:e.type,classifyId:e.sid}))))}:void 0))}function ie(){T.value=!1,le(),L("close")}function le(){X.value="860px",Z.value="654px",W.value=!1}function ae(){W.value=!W.value;let e=document.body.clientHeight;X.value="860px"===X.value?"100%":"860px",Z.value="654px"===Z.value?`${e}px`:"654px"}function ne(e){L("resetPopconfirm",e)}function oe(e,t,i){const l=Q[e];l&&l(t,i)}return l((()=>Q.visibleIn),(e=>{T.value=e})),l((()=>Q.dataSource),(e=>{R.value=M(e)}),{immediate:!0,deep:!0}),(t,i)=>(a(),n(o(x),{show:T.value,bodyStyle:{height:Z.value,overflowY:"auto"},width:X.value,maskClosable:!1,class:s(["classification-modal-block standard-modal standard-modal-white",{"modal-screen":W.value}]),closable:!1,centered:"",transitionName:e.transitionName,getContainer:e.getContainer,"positive-text":"保存","negative-text":"取消",to:"body",onPositiveClick:te,onNegativeClick:ie},{default:c((()=>[r(o(b),{style:u({width:X.value,height:Z.value,overflowY:"auto"}),title:"设置分类",bordered:!1,size:"huge",role:"dialog","aria-modal":"true"},d({"header-extra":c((()=>[p("div",U,[p("i",{onClick:ae,class:s(["iconfont-table-filter",W.value?"icon-table-filter-menzhenyishengzhanxitongtubiaozuixiaohua2":"icon-table-filter-menzhenyishengzhanxitongtubiaozuidahua"])},null,2),p("i",{onClick:ie,class:"iconfont-table-filter icon-table-filter-menzhenyishengzhanxitongtubiaoguanbi"})])])),default:c((()=>[p("div",B,[O,r(o(P),{class:"list-content",tag:"ul",list:R.value,"item-key":"sid",animation:"300"},{item:c((({element:t})=>[v(p("li",{class:s({checked:t.checked}),onClick:e=>{return i=t,void R.value.forEach((e=>{e.sid==i.sid?e.checked=!0:e.checked=!1}));var i}},[p("span",Y,[r(o(C),{mouseEnterDelay:1},{trigger:c((()=>[r(o(z),{component:o(I),size:"24"},null,8,["component"])])),default:c((()=>[m(" 拖拽调整顺序 ")])),_:1})]),p("span",{title:t.displayCategory,class:"list-content-item"},h(t.name),9,$),p("span",{title:t.name,class:"list-content-item"},h(t.displayCategory),9,A),p("span",H,[r(o(S),{"onUpdate:value":e=>{return i=t,void R.value.forEach((e=>{e.sid==i.sid&&(e.isShow=!e.isShow,e.isShow||(i.isDefault=!1))}));var i},size:"small",value:t.isShow},null,8,["onUpdate:value","value"])]),p("span",J,[r(o(S),{"onUpdate:value":e=>{var i;(i=t).isShow&&R.value.forEach((e=>{e.sid==i.sid?e.isDefault=!e.isDefault:e.isDefault=!1}))},size:"small",value:t.isDefault},null,8,["onUpdate:value","value"])]),p("span",q,[f(" 编辑 "),v(p("span",null,[r(o(C),null,{trigger:c((()=>[r(o(z),{component:o(E),onClick:y((e=>oe("edit",t,"编辑")),["prevent","stop"])},null,8,["component","onClick"])])),default:c((()=>[m(" 编辑 ")])),_:2},1024)],512),[[g,"other"==e.type||"search"==e.type&&t.isEdit]]),f(" 复制 "),v(p("span",null,[r(o(C),null,{trigger:c((()=>[r(o(z),{component:o(N),onClick:y((e=>oe("copy",t,"复制")),["prevent","stop"])},null,8,["component","onClick"])])),default:c((()=>[m(" 复制 ")])),_:2},1024)],512),[[g,"search"==e.type||"other"==e.type]]),f(" 删除 "),t.isEdit?(a(),w("span",G,[r(o(_),{onPositiveClick:e=>oe("delItem",t,"删除")},{trigger:c((()=>[r(o(z),null,{default:c((()=>[K])),_:1})])),default:c((()=>[m(" 是否确认删除? ")])),_:2},1032,["onPositiveClick"])])):f("v-if",!0)])],10,j),[[g,"line"!=t.type]])])),_:1},8,["list"])])])),_:2},["search"==e.type?{name:"footer",fn:c((()=>[p("div",V,[p("div",null,[o(ee)?(a(),n(o(_),{key:0,placement:"top-start","positive-text":"确认","negative-text":"取消",onPositiveClick:ne},{trigger:c((()=>[r(o(D),null,{default:c((()=>[m("恢复默认设置")])),_:1})])),default:c((()=>[m(" 确认要恢复系统默认设置吗? ")])),_:1})):f("v-if",!0)]),p("div",null,[r(o(D),{onClick:ie},{default:c((()=>[m("取消")])),_:1}),k(t.$slots,"add"),r(o(D),{type:"info",onClick:te},{default:c((()=>[m("保存")])),_:1})])])])),key:"0"}:void 0]),1032,["style"])])),_:3},8,["show","bodyStyle","width","class","transitionName","getContainer"]))}});export{L as default};