cnhis-design-vue 3.1.21-beta.1 → 3.1.21-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 (130) hide show
  1. package/README.md +123 -123
  2. package/es/components/big-table/index.d.ts +12 -10
  3. package/es/components/big-table/src/BigTable.vue.d.ts +12 -10
  4. package/es/components/big-table/src/BigTable.vue_vue_type_script_setup_true_lang.js +24 -16
  5. package/es/components/big-table/src/bigTableProps.d.ts +1 -1
  6. package/es/components/big-table/src/components/edit-form/edit-input.js +15 -7
  7. package/es/components/big-table/src/hooks/useEdit.d.ts +2 -1
  8. package/es/components/big-table/src/hooks/useEdit2.js +3 -2
  9. package/es/components/big-table/src/hooks/useFormat.d.ts +3 -1
  10. package/es/components/big-table/src/hooks/useFormat2.js +11 -2
  11. package/es/components/fabric-chart/src/components/PopupMenu.js +9 -2
  12. package/es/components/fabric-chart/src/hooks/useCenter2.js +21 -20
  13. package/es/components/fabric-chart/src/hooks/useLeft2.js +4 -3
  14. package/es/components/form-config/index.d.ts +1 -0
  15. package/es/components/form-config/src/FormConfig.vue.d.ts +1 -0
  16. package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +1 -0
  17. package/es/components/form-render/index2.js +4 -5
  18. package/es/components/form-render/src/FormRender.js +3 -3
  19. package/es/components/form-render/src/components/renderer/cascader.js +3 -4
  20. package/es/components/form-render/src/components/renderer/checkbox.js +2 -5
  21. package/es/components/form-render/src/components/renderer/combination.js +2 -4
  22. package/es/components/form-render/src/components/renderer/complex.js +1 -4
  23. package/es/components/form-render/src/components/renderer/date.js +12 -3
  24. package/es/components/form-render/src/components/renderer/formItem.js +1 -4
  25. package/es/components/form-render/src/components/renderer/radio.js +1 -3
  26. package/es/components/form-render/src/components/renderer/search.js +11 -17
  27. package/es/components/form-render/src/components/renderer/select.js +13 -19
  28. package/es/components/form-render/src/components/renderer/switch.js +2 -5
  29. package/es/components/form-render/src/components/renderer/textarea.js +2 -5
  30. package/es/components/form-render/src/hooks/useAnchor2.js +1 -3
  31. package/es/components/form-render/src/hooks/useBusinessBinding2.js +1 -3
  32. package/es/components/form-render/src/hooks/useChangeContext.d.ts +3 -5
  33. package/es/components/form-render/src/hooks/useChangeContext2.js +2 -2
  34. package/es/components/form-render/src/hooks/useFormItemDeps2.js +1 -4
  35. package/es/components/{form-table → form-render}/src/hooks/useNuiThemeOverrides.d.ts +0 -0
  36. package/es/components/{form-table → form-render}/src/hooks/useNuiThemeOverrides.js +0 -0
  37. package/es/components/{form-table → form-render}/src/hooks/useNuiThemeOverrides2.js +0 -0
  38. package/es/components/form-render/src/hooks/usePresetScope2.js +1 -4
  39. package/es/components/form-render/src/types/fieldItem.d.ts +1 -0
  40. package/es/components/form-render/src/utils/index.d.ts +4 -1
  41. package/es/components/form-render/src/utils/index.js +27 -1
  42. package/es/components/index.d.ts +1 -2
  43. package/es/components/index.js +0 -1
  44. package/es/components/index2.js +0 -3
  45. package/es/components/info-header/index.d.ts +31 -8
  46. package/es/components/info-header/src/HiddenContent.vue.d.ts +2 -2
  47. package/es/components/info-header/src/InfoEllipsis.vue.d.ts +1 -1
  48. package/es/components/info-header/src/InfoHeader.js +9 -10
  49. package/es/components/info-header/src/InfoHeader.vue.d.ts +32 -8
  50. package/es/components/scale-view/src/components/formitem/text-over-tooltip/TextOverTooltip.vue.d.ts +1 -1
  51. package/es/components/shortcut-setter/index.d.ts +1 -0
  52. package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +1 -0
  53. package/es/components/steps-wheel/index.d.ts +1 -1
  54. package/es/components/steps-wheel/src/StepsWheel.vue.d.ts +1 -1
  55. package/es/shared/components/TextOverTooltip/TextOverTooltip.vue.d.ts +1 -1
  56. package/package.json +2 -2
  57. package/es/components/big-table/src/components/edit-form/useCommon.d.ts +0 -4
  58. package/es/components/bpmn-workflow/src/BpmnWorkflow.d.ts +0 -0
  59. package/es/components/bpmn-workflow/types/BpmnViewer.d.ts +0 -1
  60. package/es/components/bpmn-workflow/types/ModelingModule.d.ts +0 -1
  61. package/es/components/bpmn-workflow/types/MoveCanvasModule.d.ts +0 -1
  62. package/es/components/fabric-chart/src/utils/index.d.ts +0 -6823
  63. package/es/components/form-table/index.d.ts +0 -4019
  64. package/es/components/form-table/index.js +0 -1
  65. package/es/components/form-table/index2.js +0 -10
  66. package/es/components/form-table/src/FormTable.js +0 -474
  67. package/es/components/form-table/src/FormTable.vue.d.ts +0 -4019
  68. package/es/components/form-table/src/components/index.d.ts +0 -3778
  69. package/es/components/form-table/src/components/index.js +0 -1
  70. package/es/components/form-table/src/components/index2.js +0 -40
  71. package/es/components/form-table/src/components/table-age.js +0 -235
  72. package/es/components/form-table/src/components/table-age.vue.d.ts +0 -318
  73. package/es/components/form-table/src/components/table-date-picker.js +0 -179
  74. package/es/components/form-table/src/components/table-date-picker.vue.d.ts +0 -250
  75. package/es/components/form-table/src/components/table-digital.js +0 -141
  76. package/es/components/form-table/src/components/table-digital.vue.d.ts +0 -261
  77. package/es/components/form-table/src/components/table-input-password.js +0 -141
  78. package/es/components/form-table/src/components/table-input-password.vue.d.ts +0 -304
  79. package/es/components/form-table/src/components/table-input.js +0 -127
  80. package/es/components/form-table/src/components/table-input.vue.d.ts +0 -261
  81. package/es/components/form-table/src/components/table-month-picker.js +0 -104
  82. package/es/components/form-table/src/components/table-month-picker.vue.d.ts +0 -193
  83. package/es/components/form-table/src/components/table-search-more.js +0 -6
  84. package/es/components/form-table/src/components/table-search-more.vue.d.ts +0 -392
  85. package/es/components/form-table/src/components/table-search-more.vue_vue_type_script_setup_true_lang.js +0 -276
  86. package/es/components/form-table/src/components/table-search.js +0 -6
  87. package/es/components/form-table/src/components/table-search.vue.d.ts +0 -386
  88. package/es/components/form-table/src/components/table-search.vue_vue_type_script_setup_true_lang.js +0 -276
  89. package/es/components/form-table/src/components/table-select-multiple.js +0 -164
  90. package/es/components/form-table/src/components/table-select-multiple.vue.d.ts +0 -235
  91. package/es/components/form-table/src/components/table-select.js +0 -159
  92. package/es/components/form-table/src/components/table-select.vue.d.ts +0 -234
  93. package/es/components/form-table/src/components/table-textarea.js +0 -157
  94. package/es/components/form-table/src/components/table-textarea.vue.d.ts +0 -320
  95. package/es/components/form-table/src/components/table-time-picker.js +0 -150
  96. package/es/components/form-table/src/components/table-time-picker.vue.d.ts +0 -246
  97. package/es/components/form-table/src/components/table-tree-select.js +0 -285
  98. package/es/components/form-table/src/components/table-tree-select.vue.d.ts +0 -349
  99. package/es/components/form-table/src/components/text-over-tooltip.js +0 -64
  100. package/es/components/form-table/src/components/text-over-tooltip.vue.d.ts +0 -70
  101. package/es/components/form-table/src/configs/index.d.ts +0 -35
  102. package/es/components/form-table/src/configs/index.js +0 -1
  103. package/es/components/form-table/src/configs/index2.js +0 -67
  104. package/es/components/form-table/src/hooks/index.d.ts +0 -5
  105. package/es/components/form-table/src/hooks/index.js +0 -5
  106. package/es/components/form-table/src/hooks/useBoundDate.d.ts +0 -21
  107. package/es/components/form-table/src/hooks/useBoundDate.js +0 -1
  108. package/es/components/form-table/src/hooks/useBoundDate2.js +0 -414
  109. package/es/components/form-table/src/hooks/useDateType.d.ts +0 -17
  110. package/es/components/form-table/src/hooks/useDateType.js +0 -1
  111. package/es/components/form-table/src/hooks/useDateType2.js +0 -160
  112. package/es/components/form-table/src/hooks/useFormCommon.d.ts +0 -14
  113. package/es/components/form-table/src/hooks/useFormCommon.js +0 -1
  114. package/es/components/form-table/src/hooks/useFormCommon2.js +0 -101
  115. package/es/components/form-table/src/hooks/useFormEvent.d.ts +0 -9
  116. package/es/components/form-table/src/hooks/useFormEvent.js +0 -1
  117. package/es/components/form-table/src/hooks/useFormEvent2.js +0 -68
  118. package/es/components/form-table/src/hooks/useItemDefault.d.ts +0 -53
  119. package/es/components/form-table/src/hooks/useItemDefault.js +0 -1
  120. package/es/components/form-table/src/hooks/useItemDefault2.js +0 -218
  121. package/es/components/form-table/src/hooks/useSearch.d.ts +0 -165
  122. package/es/components/form-table/src/hooks/useSearch.js +0 -1
  123. package/es/components/form-table/src/hooks/useSearch2.js +0 -1154
  124. package/es/components/form-table/src/hooks/useValidate.d.ts +0 -24
  125. package/es/components/form-table/src/hooks/useValidate.js +0 -1
  126. package/es/components/form-table/src/hooks/useValidate2.js +0 -480
  127. package/es/components/form-table/src/types/index.d.ts +0 -11
  128. package/es/components/form-table/src/types/index.js +0 -1
  129. package/es/components/form-table/style/index.css +0 -1
  130. package/es/shared/utils/tapable/index.d.ts +0 -139
package/README.md CHANGED
@@ -1,123 +1,123 @@
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. 注意
65
-
66
- 由于 vxe-table 目前的引入方式是由组件 install 触发的,所以如果需要使用 c-grid/c-big-table 组件,需要全局注册二者任意一个
67
-
68
- ```typescript
69
- // main.ts
70
- import { createApp } from 'vue';
71
- import App from './App.vue';
72
-
73
- import { CGrid } from 'cnhis-design-vue';
74
- // 或者
75
- import { CBigTable } from 'cnhis-design-vue';
76
-
77
- const app = createApp(App);
78
- app.use(CGrid);
79
- // 或者
80
- app.use(CBigTable);
81
- app.mount('#app');
82
- ```
83
-
84
- ## 4.FAQ
85
-
86
- ### 4.1 项目打包后样式丢失
87
-
88
- > 处理方法, 将 cnhis-design-vue 从 vendor 包中移除
89
-
90
- ```typescript
91
- // vite.config.ts
92
- import { defineConfig } from 'vite';
93
-
94
- export default defineConfig({
95
- rollupOptions: {
96
- // ..otherOptions
97
- output: {
98
- dir: './dist',
99
- manualChunks(id: string) {
100
- if (id.includes('node_modules') && !id.includes('cnhis-design-vue')) {
101
- return 'vendor';
102
- }
103
- }
104
- }
105
- }
106
- });
107
- ```
108
-
109
- ### 4.2 找不到文件
110
-
111
- > 由于组件库输出文件类型由 js 修改成了 mjs, 如果配置了 resolve 属性的项目, 需要将 mjs 文件类型添加至 extensions 中
112
-
113
- ```javascript
114
- // vite.config.ts
115
- const config = {
116
- // ...otherOptions
117
- resolve: {
118
- // ...otherOptions
119
- // 如果没有配置, 则不用考虑
120
- extensions: ['.js', '.ts', '.vue', '.json', '.mjs']
121
- }
122
- };
123
- ```
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. 注意
65
+
66
+ 由于 vxe-table 目前的引入方式是由组件 install 触发的,所以如果需要使用 c-grid/c-big-table 组件,需要全局注册二者任意一个
67
+
68
+ ```typescript
69
+ // main.ts
70
+ import { createApp } from 'vue';
71
+ import App from './App.vue';
72
+
73
+ import { CGrid } from 'cnhis-design-vue';
74
+ // 或者
75
+ import { CBigTable } from 'cnhis-design-vue';
76
+
77
+ const app = createApp(App);
78
+ app.use(CGrid);
79
+ // 或者
80
+ app.use(CBigTable);
81
+ app.mount('#app');
82
+ ```
83
+
84
+ ## 4.FAQ
85
+
86
+ ### 4.1 项目打包后样式丢失
87
+
88
+ > 处理方法, 将 cnhis-design-vue 从 vendor 包中移除
89
+
90
+ ```typescript
91
+ // vite.config.ts
92
+ import { defineConfig } from 'vite';
93
+
94
+ export default defineConfig({
95
+ rollupOptions: {
96
+ // ..otherOptions
97
+ output: {
98
+ dir: './dist',
99
+ manualChunks(id: string) {
100
+ if (id.includes('node_modules') && !id.includes('cnhis-design-vue')) {
101
+ return 'vendor';
102
+ }
103
+ }
104
+ }
105
+ }
106
+ });
107
+ ```
108
+
109
+ ### 4.2 找不到文件
110
+
111
+ > 由于组件库输出文件类型由 js 修改成了 mjs, 如果配置了 resolve 属性的项目, 需要将 mjs 文件类型添加至 extensions 中
112
+
113
+ ```javascript
114
+ // vite.config.ts
115
+ const config = {
116
+ // ...otherOptions
117
+ resolve: {
118
+ // ...otherOptions
119
+ // 如果没有配置, 则不用考虑
120
+ extensions: ['.js', '.ts', '.vue', '.json', '.mjs']
121
+ }
122
+ };
123
+ ```
@@ -200,7 +200,7 @@ declare const BigTable: SFCWithInstall<import("vue").DefineComponent<{
200
200
  resetInlineBatchEdit: FunctionConstructor;
201
201
  resetBatchEditRowStatus: FunctionConstructor;
202
202
  anchor: {
203
- type: ArrayConstructor;
203
+ type: import("vue").PropType<import("../../../es/shared/types").AnyObject[]>;
204
204
  default: () => never[];
205
205
  };
206
206
  }, {
@@ -547,12 +547,15 @@ declare const BigTable: SFCWithInstall<import("vue").DefineComponent<{
547
547
  resetInlineBatchEdit: FunctionConstructor;
548
548
  resetBatchEditRowStatus: FunctionConstructor;
549
549
  anchor: {
550
- type: ArrayConstructor;
550
+ type: import("vue").PropType<import("../../../es/shared/types").AnyObject[]>;
551
551
  default: () => never[];
552
552
  };
553
553
  }>> & {
554
554
  [x: `on${string}`]: ((...args: any[]) => any) | undefined;
555
555
  }>>;
556
+ attr: {
557
+ [x: string]: unknown;
558
+ };
556
559
  formatData: (data?: {
557
560
  tableList: any[];
558
561
  fieldList: any[];
@@ -579,6 +582,7 @@ declare const BigTable: SFCWithInstall<import("vue").DefineComponent<{
579
582
  'border-color': any;
580
583
  color?: undefined;
581
584
  };
585
+ getAttr: (field: string) => any;
582
586
  imgs2imgArr: (imgs: any) => any;
583
587
  parseDurationValue: (v: any, duration: any) => string | undefined;
584
588
  parseCombinationValue: (value: any, setting: any) => any;
@@ -599,11 +603,12 @@ declare const BigTable: SFCWithInstall<import("vue").DefineComponent<{
599
603
  rowIndex: any;
600
604
  };
601
605
  deleteRow: (row: any, col: any, index: number) => void;
602
- onFormChange: ({ value, row, column, index }: {
606
+ onFormChange: ({ value, row, column, index, type }: {
603
607
  value: string | number | null;
604
608
  row: any;
605
609
  column: any;
606
610
  index: number;
611
+ type?: string | undefined;
607
612
  }) => void;
608
613
  getDefaultValue: (params: any, item: any) => any;
609
614
  isAboutNestTable: import("vue").ComputedRef<any>;
@@ -621,9 +626,6 @@ declare const BigTable: SFCWithInstall<import("vue").DefineComponent<{
621
626
  $event: KeyboardEvent;
622
627
  }) => void;
623
628
  scroll: (params: any) => void;
624
- attr: {
625
- [x: string]: unknown;
626
- };
627
629
  currentCheckedKeys: import("vue").ComputedRef<never[]>;
628
630
  visibleCancelCheckAllBtn: import("vue").ComputedRef<boolean>;
629
631
  singleCheckedKey: import("vue").ComputedRef<string>;
@@ -701,7 +703,7 @@ declare const BigTable: SFCWithInstall<import("vue").DefineComponent<{
701
703
  handleFilterChangeAll: (val: any, field: any) => void;
702
704
  handleFilterChange: (value: any, name: any, field: any) => void;
703
705
  handleFilterSearchChange: (value: any, columnName: any, field: any) => void;
704
- handleFilterClearAll: (field: any) => void;
706
+ handleFilterClearAll: (columnName: any) => false | undefined;
705
707
  handleCancelFilter: () => void;
706
708
  mergeQuickSearchConfig: (filterFields: any, props: any) => void;
707
709
  handleFilter: (field: any) => void;
@@ -713,7 +715,7 @@ declare const BigTable: SFCWithInstall<import("vue").DefineComponent<{
713
715
  setGroupTreeExpand: () => void;
714
716
  resetTableInlineEditStatus: () => false | undefined;
715
717
  renderAnnotation: (columnConfig: import("../../../es/shared/types").AnyObject) => JSX.Element | null;
716
- toolTipTitle: (item: any, type: any) => any[] | (() => any[]);
718
+ toolTipTitle: (item: any, type: any) => any[] | (() => any);
717
719
  triggerExpand: (e: any, isExpand: any) => void;
718
720
  getOtherConfigInit: () => any;
719
721
  refreshTable: () => void;
@@ -1116,13 +1118,13 @@ declare const BigTable: SFCWithInstall<import("vue").DefineComponent<{
1116
1118
  resetInlineBatchEdit: FunctionConstructor;
1117
1119
  resetBatchEditRowStatus: FunctionConstructor;
1118
1120
  anchor: {
1119
- type: ArrayConstructor;
1121
+ type: import("vue").PropType<import("../../../es/shared/types").AnyObject[]>;
1120
1122
  default: () => never[];
1121
1123
  };
1122
1124
  }>> & {
1123
1125
  [x: `on${string}`]: ((...args: any[]) => any) | undefined;
1124
1126
  }, {
1125
- anchor: unknown[];
1127
+ anchor: import("../../../es/shared/types").AnyObject[];
1126
1128
  data: unknown[];
1127
1129
  showFooter: boolean;
1128
1130
  columnConfig: Record<string, any>;
@@ -198,7 +198,7 @@ declare const _default: import("vue").DefineComponent<{
198
198
  resetInlineBatchEdit: FunctionConstructor;
199
199
  resetBatchEditRowStatus: FunctionConstructor;
200
200
  anchor: {
201
- type: ArrayConstructor;
201
+ type: import("vue").PropType<import("../../../shared/types").AnyObject[]>;
202
202
  default: () => never[];
203
203
  };
204
204
  }, {
@@ -545,12 +545,15 @@ declare const _default: import("vue").DefineComponent<{
545
545
  resetInlineBatchEdit: FunctionConstructor;
546
546
  resetBatchEditRowStatus: FunctionConstructor;
547
547
  anchor: {
548
- type: ArrayConstructor;
548
+ type: import("vue").PropType<import("../../../shared/types").AnyObject[]>;
549
549
  default: () => never[];
550
550
  };
551
551
  }>> & {
552
552
  [x: `on${string}`]: ((...args: any[]) => any) | undefined;
553
553
  }>>;
554
+ attr: {
555
+ [x: string]: unknown;
556
+ };
554
557
  formatData: (data?: {
555
558
  tableList: any[];
556
559
  fieldList: any[];
@@ -577,6 +580,7 @@ declare const _default: import("vue").DefineComponent<{
577
580
  'border-color': any;
578
581
  color?: undefined;
579
582
  };
583
+ getAttr: (field: string) => any;
580
584
  imgs2imgArr: (imgs: any) => any;
581
585
  parseDurationValue: (v: any, duration: any) => string | undefined;
582
586
  parseCombinationValue: (value: any, setting: any) => any;
@@ -597,11 +601,12 @@ declare const _default: import("vue").DefineComponent<{
597
601
  rowIndex: any;
598
602
  };
599
603
  deleteRow: (row: any, col: any, index: number) => void;
600
- onFormChange: ({ value, row, column, index }: {
604
+ onFormChange: ({ value, row, column, index, type }: {
601
605
  value: string | number | null;
602
606
  row: any;
603
607
  column: any;
604
608
  index: number;
609
+ type?: string | undefined;
605
610
  }) => void;
606
611
  getDefaultValue: (params: any, item: any) => any;
607
612
  isAboutNestTable: import("vue").ComputedRef<any>;
@@ -619,9 +624,6 @@ declare const _default: import("vue").DefineComponent<{
619
624
  $event: KeyboardEvent;
620
625
  }) => void;
621
626
  scroll: (params: any) => void;
622
- attr: {
623
- [x: string]: unknown;
624
- };
625
627
  currentCheckedKeys: import("vue").ComputedRef<never[]>;
626
628
  visibleCancelCheckAllBtn: import("vue").ComputedRef<boolean>;
627
629
  singleCheckedKey: import("vue").ComputedRef<string>;
@@ -699,7 +701,7 @@ declare const _default: import("vue").DefineComponent<{
699
701
  handleFilterChangeAll: (val: any, field: any) => void;
700
702
  handleFilterChange: (value: any, name: any, field: any) => void;
701
703
  handleFilterSearchChange: (value: any, columnName: any, field: any) => void;
702
- handleFilterClearAll: (field: any) => void;
704
+ handleFilterClearAll: (columnName: any) => false | undefined;
703
705
  handleCancelFilter: () => void;
704
706
  mergeQuickSearchConfig: (filterFields: any, props: any) => void;
705
707
  handleFilter: (field: any) => void;
@@ -711,7 +713,7 @@ declare const _default: import("vue").DefineComponent<{
711
713
  setGroupTreeExpand: () => void;
712
714
  resetTableInlineEditStatus: () => false | undefined;
713
715
  renderAnnotation: (columnConfig: import("../../../shared/types").AnyObject) => JSX.Element | null;
714
- toolTipTitle: (item: any, type: any) => any[] | (() => any[]);
716
+ toolTipTitle: (item: any, type: any) => any[] | (() => any);
715
717
  triggerExpand: (e: any, isExpand: any) => void;
716
718
  getOtherConfigInit: () => any;
717
719
  refreshTable: () => void;
@@ -1114,13 +1116,13 @@ declare const _default: import("vue").DefineComponent<{
1114
1116
  resetInlineBatchEdit: FunctionConstructor;
1115
1117
  resetBatchEditRowStatus: FunctionConstructor;
1116
1118
  anchor: {
1117
- type: ArrayConstructor;
1119
+ type: import("vue").PropType<import("../../../shared/types").AnyObject[]>;
1118
1120
  default: () => never[];
1119
1121
  };
1120
1122
  }>> & {
1121
1123
  [x: `on${string}`]: ((...args: any[]) => any) | undefined;
1122
1124
  }, {
1123
- anchor: unknown[];
1125
+ anchor: import("../../../shared/types").AnyObject[];
1124
1126
  data: unknown[];
1125
1127
  showFooter: boolean;
1126
1128
  columnConfig: Record<string, any>;
@@ -1,5 +1,5 @@
1
1
  import { defineComponent, ref, reactive, useAttrs, computed, onMounted, onUnmounted, onActivated, nextTick, createVNode, h, resolveComponent, Teleport, createTextVNode, watch, openBlock, createElementBlock, Fragment, createBlock, unref, withCtx, renderList, createCommentVNode, createElementVNode, normalizeClass, normalizeStyle, mergeProps, renderSlot, toDisplayString, withDirectives, vShow, isVNode } from 'vue';
2
- import { isArray, isFunction } from 'lodash-es';
2
+ import { isFunction, isArray } from 'lodash-es';
3
3
  import bigTableState from './bigTableState2.js';
4
4
  import bigTableProps from './bigTableProps2.js';
5
5
  import bigTableEmits from './bigTableEmits2.js';
@@ -57,11 +57,13 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
57
57
  const xGrid = ref({});
58
58
  const copyState = XEUtils.clone(bigTableState, true);
59
59
  const state = reactive(copyState);
60
+ const attr = useAttrs();
60
61
  const {
61
62
  formatData,
62
63
  htmlToText,
63
- getBtnStyle
64
- } = useFormat(state);
64
+ getBtnStyle,
65
+ getAttr
66
+ } = useFormat(state, attr);
65
67
  const {
66
68
  imgs2imgArr,
67
69
  parseDurationValue,
@@ -104,7 +106,6 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
104
106
  keyDown,
105
107
  scroll
106
108
  } = useEvent(props, state, emit, xGrid, anchorEvent);
107
- const attr = useAttrs();
108
109
  const currentCheckedKeys = computed(() => {
109
110
  var _a;
110
111
  return ((_a = state.checkedRows) == null ? void 0 : _a.map((row) => row[props.primaryKey])) || [];
@@ -433,8 +434,9 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
433
434
  let filterField = false;
434
435
  let filterItems = [];
435
436
  try {
436
- const fieldSetting = JSON.parse(item.fieldSetting);
437
- filterField = ((_a2 = fieldSetting == null ? void 0 : fieldSetting.mapping) == null ? void 0 : _a2.type) === "manual" && item.isMerge != 1;
437
+ const fieldSetting = JSON.parse(item.fieldSetting || "{}");
438
+ let notParticipatingSearch = (fieldSetting == null ? void 0 : fieldSetting.notParticipatingSearch) || "";
439
+ filterField = notParticipatingSearch != 1 && ((_a2 = fieldSetting == null ? void 0 : fieldSetting.mapping) == null ? void 0 : _a2.type) === "manual" && item.isMerge != 1;
438
440
  filterItems = (_c2 = (_b2 = fieldSetting == null ? void 0 : fieldSetting.mapping) == null ? void 0 : _b2.mappingFiled) == null ? void 0 : _c2.map((item2) => item2.value[0]);
439
441
  } catch (e) {
440
442
  }
@@ -831,7 +833,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
831
833
  }, [createVNode("span", null, [createTextVNode("\u5DF2\u9009\u62E9"), field.CONVERT.length, createTextVNode("\u9879")]), createVNode(NButton, {
832
834
  "class": "checkbox-btn checkbox-btn-clear",
833
835
  "text": true,
834
- "onClick": () => handleFilterClearAll(field)
836
+ "onClick": () => handleFilterClearAll(item.columnName)
835
837
  }, {
836
838
  default: () => [createTextVNode("\u6E05\u7A7A")]
837
839
  })]) : null, createVNode("div", null, [createVNode(NButton, {
@@ -911,7 +913,10 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
911
913
  field.searchFilterCONVERT = value;
912
914
  _beforeSearchConvert = XEUtils.clone(value, true);
913
915
  };
914
- const handleFilterClearAll = (field) => {
916
+ const handleFilterClearAll = (columnName) => {
917
+ const field = state.filterFields[columnName];
918
+ if (!field)
919
+ return false;
915
920
  field.indeterminate = false;
916
921
  field.checkAll = false;
917
922
  state.filterFields[field.columnName].CONVERT = [];
@@ -970,6 +975,8 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
970
975
  if (name && tooltipTitle && name !== tooltipTitle) {
971
976
  isAlias = !!tooltipTitle;
972
977
  }
978
+ if (isFunction(item.headerSlotFn))
979
+ return () => item.headerSlotFn(item);
973
980
  if (type === "format")
974
981
  return [createVNode(script, {
975
982
  "tooltipTitle": tooltipTitle,
@@ -2278,7 +2285,8 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
2278
2285
  formatData,
2279
2286
  xGrid,
2280
2287
  loadColumn,
2281
- loadData
2288
+ loadData,
2289
+ handleFilterClearAll
2282
2290
  });
2283
2291
  return (_ctx, _cache) => {
2284
2292
  var _a;
@@ -2331,20 +2339,20 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
2331
2339
  "cell-class-name": _ctx.columnConfig.cellClassName || null,
2332
2340
  "row-config": {
2333
2341
  ...state.rowConfig,
2334
- ..._ctx.$attrs.rowConfig || {}
2342
+ ...unref(getAttr)("row-config")
2335
2343
  },
2336
2344
  "show-footer": _ctx.showFooter && !props.isInlineOperating,
2337
2345
  "footer-method": footerMethod,
2338
2346
  "sort-config": {
2339
2347
  trigger: "cell",
2340
2348
  remote: true,
2341
- ..._ctx.$attrs.sortConfig || {}
2349
+ ...unref(getAttr)("sort-config")
2342
2350
  },
2343
2351
  "span-method": colspanMethod,
2344
2352
  "footer-span-method": footerRowspanMethod,
2345
2353
  "tooltip-config": {
2346
2354
  enterable: false,
2347
- ..._ctx.$attrs.tooltipConfig || {}
2355
+ ...unref(getAttr)("tooltip-config")
2348
2356
  },
2349
2357
  "checkbox-config": {
2350
2358
  checkField: "checked",
@@ -2354,18 +2362,18 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
2354
2362
  trigger: "cell",
2355
2363
  reserve: true,
2356
2364
  highlight: true,
2357
- ..._ctx.$attrs.checkboxConfig || {}
2365
+ ...unref(getAttr)("checkbox-config")
2358
2366
  },
2359
2367
  "radio-config": {
2360
2368
  checkField: "checked",
2361
2369
  trigger: "cell",
2362
2370
  reserve: true,
2363
2371
  highlight: true,
2364
- ..._ctx.$attrs.radioConfig || {}
2372
+ ...unref(getAttr)("radio-config")
2365
2373
  },
2366
2374
  "scroll-y": {
2367
2375
  gt: 50,
2368
- ..._ctx.$attrs.scrollY || {}
2376
+ ...unref(getAttr)("scroll-y")
2369
2377
  },
2370
2378
  "row-style": unref(getRowStyle),
2371
2379
  "edit-config": state.editConfig,
@@ -2376,7 +2384,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
2376
2384
  toggleMethod: unref(toggleExpandMethod),
2377
2385
  iconOpen: "iconfont icon-a-xitongtubiaozhediejian",
2378
2386
  iconClose: "iconfont icon-a-xitongtubiaotianjia",
2379
- ..._ctx.$attrs.expandConfig || {}
2387
+ ...unref(getAttr)("expand-config")
2380
2388
  },
2381
2389
  "keyboard-config": _ctx.columnConfig.keyboardConfig || {},
2382
2390
  "edit-rules": _ctx.columnConfig.editRules || {},
@@ -200,7 +200,7 @@ declare const bigTableProps: {
200
200
  resetInlineBatchEdit: FunctionConstructor;
201
201
  resetBatchEditRowStatus: FunctionConstructor;
202
202
  anchor: {
203
- type: ArrayConstructor;
203
+ type: PropType<AnyObject[]>;
204
204
  default: () => never[];
205
205
  };
206
206
  };
@@ -36,20 +36,21 @@ var EditInput = defineComponent({
36
36
  formRef
37
37
  } = useCommon(props, attrs);
38
38
  const __value = ref(attrs.value);
39
+ const commData = {
40
+ row: props.row,
41
+ column: props.col,
42
+ index: props.index
43
+ };
39
44
  const onUpdateValue = (value) => {
40
45
  emit("formChange", {
41
46
  value,
42
- row: props.row,
43
- column: props.col,
44
- index: props.index
47
+ ...commData
45
48
  });
46
49
  };
47
50
  function onBlur() {
48
51
  emit("formChange", {
49
52
  value: __value.value,
50
- row: props.row,
51
- column: props.col,
52
- index: props.index
53
+ ...commData
53
54
  });
54
55
  }
55
56
  const config = {
@@ -68,7 +69,14 @@ var EditInput = defineComponent({
68
69
  }), null) : createVNode(NInputNumber, mergeProps({
69
70
  "ref": formRef
70
71
  }, attrs, config, {
71
- "onUpdateValue": onUpdateValue
72
+ "value": __value.value,
73
+ "onUpdate:value": ($event) => __value.value = $event,
74
+ "onUpdateValue": onUpdateValue,
75
+ "onBlur": () => emit("formChange", {
76
+ value: __value.value,
77
+ ...commData,
78
+ type: "blur"
79
+ })
72
80
  }), null);
73
81
  }
74
82
  });
@@ -326,11 +326,12 @@ export declare const useEdit: (props: any, state: any, emit: any, xGrid: any) =>
326
326
  initEditTable: () => Promise<void>;
327
327
  deleteRow: (row: any, col: any, index: number) => void;
328
328
  onClickSelectTable: (row: any) => Promise<void>;
329
- onFormChange: ({ value, row, column, index }: {
329
+ onFormChange: ({ value, row, column, index, type }: {
330
330
  value: number | string | null;
331
331
  row: any;
332
332
  column: any;
333
333
  index: number;
334
+ type?: string | undefined;
334
335
  }) => void;
335
336
  getDefaultValue: (params: any, item: any) => any;
336
337
  };
@@ -60,7 +60,8 @@ const useEdit = (props, state, emit, xGrid) => {
60
60
  value,
61
61
  row,
62
62
  column,
63
- index
63
+ index,
64
+ type
64
65
  }) => {
65
66
  var _a, _b;
66
67
  let oldValue = row[column.columnName];
@@ -84,7 +85,7 @@ const useEdit = (props, state, emit, xGrid) => {
84
85
  if (((column == null ? void 0 : column.formType) === "date" || (column == null ? void 0 : column.formType) === "time") && !value) {
85
86
  row[column.columnName] = void 0;
86
87
  }
87
- emit("formChange", { value, row, column, index, oldValue });
88
+ emit("formChange", { value, row, column, index, oldValue, ...type ? { type } : {} });
88
89
  };
89
90
  const getDefaultValue = (params, item) => {
90
91
  var _a;
@@ -1,4 +1,5 @@
1
- export declare const useFormat: (state: any) => {
1
+ import { AnyObject } from '../../../../../es/shared/types';
2
+ export declare const useFormat: (state: any, attr: AnyObject) => {
2
3
  formatData: (data?: {
3
4
  tableList: any[];
4
5
  fieldList: any[];
@@ -25,4 +26,5 @@ export declare const useFormat: (state: any) => {
25
26
  'border-color': any;
26
27
  color?: undefined;
27
28
  };
29
+ getAttr: (field: string) => any;
28
30
  };