cnhis-design-vue 3.1.33-beta.9 → 3.1.34-beta.0

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 (150) hide show
  1. package/README.md +123 -123
  2. package/es/components/big-table/index.d.ts +1 -1
  3. package/es/components/big-table/src/BigTable.vue.d.ts +1 -1
  4. package/es/components/big-table/src/BigTable.vue2.js +7 -9
  5. package/es/components/big-table/src/components/edit-form/edit-input.js +1 -1
  6. package/es/components/big-table/src/components/edit-form/edit-select.js +1 -1
  7. package/es/components/big-table/src/components/edit-form/edit-time.js +5 -3
  8. package/es/components/big-table/src/components/edit-form/useCommon.d.ts +2 -1
  9. package/es/components/big-table/src/components/edit-form/useCommon.js +7 -3
  10. package/es/components/big-table/src/hooks/useFormat.js +1 -1
  11. package/es/components/button-print/index.d.ts +13 -0
  12. package/es/components/button-print/src/ButtonPrint.vue.d.ts +13 -0
  13. package/es/components/button-print/src/ButtonPrint.vue2.js +8 -1
  14. package/es/components/button-print/src/utils/print.d.ts +2 -2
  15. package/es/components/button-print/src/utils/print.js +7 -4
  16. package/es/components/fabric-chart/index.d.ts +133 -2
  17. package/es/components/fabric-chart/src/BirthProcessChart.vue.d.ts +132 -0
  18. package/es/components/fabric-chart/src/BirthProcessChart.vue.js +62 -8
  19. package/es/components/fabric-chart/src/FabricChart.vue.d.ts +133 -2
  20. package/es/components/fabric-chart/src/FabricChart.vue.js +2 -2
  21. package/es/components/fabric-chart/src/TemperatureChart.vue.d.ts +1 -2
  22. package/es/components/fabric-chart/src/TemperatureChart.vue.js +17 -9
  23. package/es/components/fabric-chart/src/components/PopupMenu.js +2 -2
  24. package/es/components/fabric-chart/src/components/PopupTip.vue.d.ts +3 -2
  25. package/es/components/fabric-chart/src/hooks/index.d.ts +1 -0
  26. package/es/components/fabric-chart/src/hooks/index.js +1 -0
  27. package/es/components/fabric-chart/src/hooks/useBirthProcess.d.ts +23 -1
  28. package/es/components/fabric-chart/src/hooks/useBirthProcess.js +305 -9
  29. package/es/components/fabric-chart/src/hooks/useCenter.d.ts +0 -2
  30. package/es/components/fabric-chart/src/hooks/useCenter.js +27 -45
  31. package/es/components/fabric-chart/src/hooks/useCommon.d.ts +8 -0
  32. package/es/components/fabric-chart/src/hooks/useCommon.js +32 -0
  33. package/es/components/fabric-chart/src/hooks/useCumputedPoint.d.ts +5 -2
  34. package/es/components/fabric-chart/src/hooks/useCumputedPoint.js +27 -10
  35. package/es/components/fabric-chart/src/hooks/useLeft.d.ts +1 -1
  36. package/es/components/fabric-chart/src/hooks/useLeft.js +12 -7
  37. package/es/components/fabric-chart/src/interface.d.ts +1 -0
  38. package/es/components/fabric-chart/src/utils/utils.d.ts +11 -0
  39. package/es/components/fabric-chart/src/utils/utils.js +27 -0
  40. package/es/components/iho-table/index.d.ts +4 -3
  41. package/es/components/iho-table/src/IhoTable.vue.d.ts +4 -3
  42. package/es/components/iho-table/src/IhoTable.vue.js +6 -4
  43. package/es/components/iho-table/src/components/IhoTableColumn.js +1 -1
  44. package/es/components/iho-table/src/constants/index.d.ts +3 -3
  45. package/es/components/iho-table/src/constants/index.js +0 -1
  46. package/es/components/iho-table/src/hooks/tapHooks/index.d.ts +5 -1
  47. package/es/components/iho-table/src/hooks/tapHooks/index.js +10 -9
  48. package/es/components/iho-table/src/hooks/tapHooks/useDataHooks.d.ts +2 -2
  49. package/es/components/iho-table/src/hooks/tapHooks/useEventHooks.d.ts +119 -119
  50. package/es/components/iho-table/src/hooks/tapHooks/useExposeHooks.d.ts +5 -3
  51. package/es/components/iho-table/src/hooks/tapHooks/useExposeHooks.js +1 -1
  52. package/es/components/iho-table/src/hooks/tapHooks/useFieldHooks.d.ts +16 -4
  53. package/es/components/iho-table/src/hooks/tapHooks/useFieldHooks.js +9 -4
  54. package/es/components/iho-table/src/hooks/useColumnConfigAdaptor.js +6 -1
  55. package/es/components/iho-table/src/plugins/defaultConfigPlugin/index.js +1 -1
  56. package/es/components/iho-table/src/plugins/filterPlugin/filter.vue.d.ts +51 -24
  57. package/es/components/iho-table/src/plugins/filterPlugin/filter.vue.js +37 -51
  58. package/es/components/iho-table/src/plugins/filterPlugin/index.js +181 -20
  59. package/es/components/iho-table/src/plugins/filterPlugin/types.d.ts +2 -6
  60. package/es/components/iho-table/src/plugins/filterPlugin/types.js +0 -7
  61. package/es/components/iho-table/src/plugins/index.js +1 -1
  62. package/es/components/iho-table/src/plugins/keyboardEventPlugin/index.js +1 -1
  63. package/es/components/iho-table/src/plugins/lowCodeFieldAdaptorPlugin/index.js +7 -4
  64. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/editDate.vue.d.ts +8 -8
  65. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/editDate.vue.js +8 -12
  66. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/index.js +2 -2
  67. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/hooks/{useCommon.d.ts → useAutoFocus.d.ts} +2 -1
  68. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/hooks/{useCommon.js → useAutoFocus.js} +6 -2
  69. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/inputRendererPlugin.js +4 -2
  70. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/numberRendererPlugin.js +11 -5
  71. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/editSelect.d.ts +5 -5
  72. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/editSelect.js +14 -15
  73. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/index.js +2 -2
  74. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/editSeparate.vue.d.ts +9 -9
  75. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/editSeparate.vue.js +9 -10
  76. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/index.js +5 -5
  77. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin.js +7 -1
  78. package/es/components/iho-table/src/plugins/rendererPlugins/widgets/checkRendererPlugin.js +3 -5
  79. package/es/components/iho-table/src/plugins/rendererPlugins/widgets/seqRendererPlugin.js +5 -2
  80. package/es/components/iho-table/src/plugins/rowGroupSettingPlugin/rowGroupUtils.js +7 -4
  81. package/es/components/iho-table/src/plugins/virtualTreePlugin/index.js +1 -1
  82. package/es/components/iho-table/src/types/index.d.ts +10 -12
  83. package/es/components/iho-table/src/types/pluginType.d.ts +28 -12
  84. package/es/components/iho-table/src/utils/index.d.ts +5 -10
  85. package/es/components/iho-table/src/utils/index.js +19 -26
  86. package/es/components/iho-table/style/index.css +1 -1
  87. package/es/components/index.css +1 -1
  88. package/es/components/info-header/src/InfoHeader.vue.js +1 -1
  89. package/es/components/info-header/style/index.css +1 -1
  90. package/es/components/keyboard/index.d.ts +62 -1
  91. package/es/components/keyboard/src/Keyboard.vue.d.ts +62 -1
  92. package/es/components/keyboard/src/Keyboard.vue.js +4 -1
  93. package/es/components/keyboard/src/components/NumberPanel.vue.d.ts +67 -5
  94. package/es/components/keyboard/src/components/NumberPanel.vue.js +48 -26
  95. package/es/components/keyboard/style/index.css +1 -1
  96. package/es/components/select-person/index.d.ts +1 -2
  97. package/es/components/select-person/src/SelectPerson.vue.d.ts +1 -2
  98. package/es/components/select-person/src/SelectPerson.vue2.js +20 -19
  99. package/es/components/select-person/src/utils/index.d.ts +1 -0
  100. package/es/components/select-person/src/utils/index.js +15 -1
  101. package/es/shared/assets/img/failure.js +1 -1
  102. package/es/shared/assets/img/failure.png.js +1 -1
  103. package/es/shared/assets/img/icon-asc.js +1 -1
  104. package/es/shared/assets/img/icon-desc.js +1 -1
  105. package/es/shared/assets/img/no-permission.js +1 -1
  106. package/es/shared/assets/img/no-permission.png.js +1 -1
  107. package/es/shared/assets/img/nodata.js +1 -1
  108. package/es/shared/assets/img/nodata.png.js +1 -1
  109. package/es/shared/assets/img/notfound.js +1 -1
  110. package/es/shared/assets/img/notfound.png.js +1 -1
  111. package/es/shared/assets/img/qr.js +1 -1
  112. package/es/shared/assets/img/qr.png.js +1 -1
  113. package/es/shared/assets/img/success.js +1 -1
  114. package/es/shared/assets/img/success.png.js +1 -1
  115. package/es/shared/assets/img/video.js +1 -1
  116. package/es/shared/assets/img/video.png.js +1 -1
  117. package/es/shared/assets/img/video_default_cover.js +1 -1
  118. package/es/shared/assets/img/video_default_cover.png.js +1 -1
  119. package/es/shared/assets/img/video_hover.js +1 -1
  120. package/es/shared/assets/img/video_play_hover.js +1 -1
  121. package/es/shared/assets/img/xb_big.js +1 -1
  122. package/es/shared/assets/img/xb_big.png.js +1 -1
  123. package/es/shared/assets/img/xb_small.js +1 -1
  124. package/es/shared/assets/img/xb_small.png.js +1 -1
  125. package/package.json +2 -2
  126. package/es/components/big-table/src/components/edit-form/dist/edit-date.d.ts +0 -36
  127. package/es/components/big-table/src/components/edit-form/dist/edit-select.d.ts +0 -37
  128. package/es/components/big-table/src/components/edit-form/dist/edit-time.d.ts +0 -45
  129. package/es/components/bpmn-workflow/src/BpmnWorkflow.d.ts +0 -0
  130. package/es/components/bpmn-workflow/types/BpmnViewer.d.ts +0 -1
  131. package/es/components/bpmn-workflow/types/ModelingModule.d.ts +0 -1
  132. package/es/components/bpmn-workflow/types/MoveCanvasModule.d.ts +0 -1
  133. package/es/components/fabric-chart/src/constants/index.d.ts +0 -4
  134. package/es/components/fabric-chart/src/constants/index.js +0 -4
  135. package/es/components/fabric-chart/src/utils/index.d.ts +0 -6823
  136. package/es/components/form-render/src/components/renderer/dist/levelSearchCascader.d.ts +0 -65
  137. package/es/components/form-render/src/components/renderer/dist/radio.d.ts +0 -64
  138. package/es/components/form-render/src/components/renderer/dist/remoteSearch.d.ts +0 -46
  139. package/es/components/form-render/src/components/renderer/dist/search.d.ts +0 -56
  140. package/es/components/form-render/src/components/renderer/dist/select.d.ts +0 -55
  141. package/es/components/iho-table/src/components/dist/IhoTableColumn.d.ts +0 -20
  142. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/dist/index.d.ts +0 -3
  143. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dist/inputRendererPlugin.d.ts +0 -3
  144. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dist/numberRendererPlugin.d.ts +0 -3
  145. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dist/timeRendererPlugin.d.ts +0 -3
  146. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/dist/editSelect.d.ts +0 -42
  147. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/dist/index.d.ts +0 -3
  148. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/dist/index.d.ts +0 -3
  149. package/es/shared/components/VueDraggable/src/vuedraggable.d.ts +0 -86
  150. 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
+ ```
@@ -646,7 +646,7 @@ declare const BigTable: SFCWithInstall<import("vue").DefineComponent<{
646
646
  userInfo: Record<string, any>;
647
647
  sysImageSize: unknown[];
648
648
  }>;
649
- treeConfig: import("vue").ComputedRef<null>;
649
+ treeConfig: import("vue").ComputedRef<any>;
650
650
  hideAllWrap: (e: any) => void;
651
651
  bindDocumentClick: () => void;
652
652
  unBindDocumentClick: () => void;
@@ -645,7 +645,7 @@ declare const _default: import("vue").DefineComponent<{
645
645
  userInfo: Record<string, any>;
646
646
  sysImageSize: unknown[];
647
647
  }>;
648
- treeConfig: import("vue").ComputedRef<null>;
648
+ treeConfig: import("vue").ComputedRef<any>;
649
649
  hideAllWrap: (e: any) => void;
650
650
  bindDocumentClick: () => void;
651
651
  unBindDocumentClick: () => void;
@@ -137,7 +137,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
137
137
  };
138
138
  });
139
139
  const treeConfig = computed(() => {
140
- let result = null;
140
+ let result = getAttr("tree-config");
141
141
  let {
142
142
  isTransform
143
143
  } = props.tableParams;
@@ -529,7 +529,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
529
529
  editTrigger: state.editConfig.trigger
530
530
  };
531
531
  if (["date", "time"].includes(formType)) {
532
- propsData.formattedValue = row[col.columnName];
532
+ propsData.formattedValue = row[col.columnName] || void 0;
533
533
  } else if (formatMap) {
534
534
  propsData.value = row[formatMap.value];
535
535
  } else {
@@ -1301,7 +1301,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
1301
1301
  updateAddCheckedRows(row);
1302
1302
  };
1303
1303
  const handlerClickRow = (data) => {
1304
- var _a, _b;
1304
+ var _a, _b, _c;
1305
1305
  let {
1306
1306
  row,
1307
1307
  $event = {},
@@ -1342,8 +1342,9 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
1342
1342
  nestHandleClickRow(table, data);
1343
1343
  return;
1344
1344
  }
1345
+ const batchSelect = (_c = getAttr("checkbox-config")) == null ? void 0 : _c.batchSelect;
1345
1346
  let forbiddenBatchSelect = !checkMethod(data);
1346
- if (state.selectType == "checkbox" && (forbiddenBatchSelect || data.row.$__SEPARATE)) {
1347
+ if (state.selectType == "checkbox" && !batchSelect && (forbiddenBatchSelect || data.row.$__SEPARATE)) {
1347
1348
  table == null ? void 0 : table.setAllCheckboxRow(false);
1348
1349
  const checked2 = getRowClassName({
1349
1350
  row
@@ -1407,7 +1408,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
1407
1408
  rowLen = checkedRow.filter((item) => !XEUtils.has(item, GROUP_TITLE_KEY)).length;
1408
1409
  }
1409
1410
  }
1410
- table.setAllCheckboxRow(false);
1411
+ !batchSelect && table.setAllCheckboxRow(false);
1411
1412
  let setChecked = checked;
1412
1413
  if (rowLen > 1) {
1413
1414
  state.selectType != "radio" && table.setCheckboxRow([row], true);
@@ -2309,10 +2310,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
2309
2310
  "mouse-config": {
2310
2311
  selected: ((_a = _ctx.columnConfig.keyboardConfig) == null ? void 0 : _a.isEdit) ? true : false
2311
2312
  },
2312
- "tree-config": {
2313
- ...unref(treeConfig) || {},
2314
- ...unref(getAttr)("tree-config")
2315
- },
2313
+ "tree-config": unref(treeConfig),
2316
2314
  "row-class-name": getRowClassName,
2317
2315
  "row-config": {
2318
2316
  ...state.rowConfig,
@@ -35,7 +35,7 @@ var EditInput = defineComponent({
35
35
  const {
36
36
  formRef
37
37
  } = useCommon(props, attrs);
38
- const __value = ref(attrs.value);
38
+ const __value = ref(props.type === "number" ? attrs.value || void 0 : attrs.value);
39
39
  const commData = {
40
40
  row: props.row,
41
41
  column: props.col,
@@ -33,7 +33,7 @@ var EditSelect = defineComponent({
33
33
  const {
34
34
  formRef,
35
35
  isShow
36
- } = useCommon(props, attrs);
36
+ } = useCommon(props, attrs, true);
37
37
  const state = reactive({
38
38
  options: [],
39
39
  loading: false,
@@ -80,12 +80,14 @@ var EditTime = defineComponent({
80
80
  }
81
81
  return false;
82
82
  };
83
+ const isTime = (curTime) => {
84
+ const arr = curTime.split(":");
85
+ return +arr[0] * 60 * 60 + +arr[1] * 60 + (arr[3] ? +arr[3] : 0) < 24 * 60 * 60;
86
+ };
83
87
  if (!isValid(time)) {
84
88
  if (!isNaN(time) && (/^\d{4}$/.test(time) || /^\d{6}$/.test(time))) {
85
89
  const curTime = getFormatTime(time);
86
- if (isValid(curTime)) {
87
- time = curTime;
88
- }
90
+ time = isValid(curTime) && isTime(curTime) ? curTime : "";
89
91
  } else {
90
92
  time = "";
91
93
  }
@@ -1,4 +1,5 @@
1
- export declare const useCommon: (props: any, attrs: any) => {
1
+ import { AnyObject } from '../../../../../../es/shared/types';
2
+ export declare const useCommon: (props: AnyObject, attrs: AnyObject, isTriggerClick?: boolean) => {
2
3
  formRef: import("vue").Ref<HTMLElement | null>;
3
4
  isShow: import("vue").Ref<boolean>;
4
5
  };
@@ -1,12 +1,16 @@
1
1
  import { ref, onMounted } from 'vue';
2
2
 
3
- const useCommon = (props, attrs) => {
3
+ const useCommon = (props, attrs, isTriggerClick = false) => {
4
4
  const formRef = ref(null);
5
5
  const isShow = ref(false);
6
6
  onMounted(() => {
7
- var _a;
7
+ var _a, _b, _c;
8
8
  if (attrs.editTrigger !== "manual") {
9
- (_a = formRef.value) == null ? void 0 : _a.focus();
9
+ if (isTriggerClick) {
10
+ (_b = (_a = formRef.value) == null ? void 0 : _a.handleTriggerClick) == null ? void 0 : _b.call(_a);
11
+ } else {
12
+ (_c = formRef.value) == null ? void 0 : _c.focus();
13
+ }
10
14
  isShow.value = true;
11
15
  }
12
16
  });
@@ -494,7 +494,7 @@ const useFormat = (state, attr) => {
494
494
  const newField = field.replace(/-(\w)/g, ($0, $1) => {
495
495
  return $1.toUpperCase();
496
496
  });
497
- return attr[newField] || {};
497
+ return attr[newField] || null;
498
498
  }
499
499
  return {
500
500
  formatData,
@@ -60,6 +60,10 @@ declare const ButtonPrint: SFCWithInstall<import("vue").DefineComponent<{
60
60
  default: string;
61
61
  type: StringConstructor;
62
62
  };
63
+ btnprint: {
64
+ type: StringConstructor;
65
+ default: string;
66
+ };
63
67
  }, {
64
68
  $message: import("naive-ui").MessageApi;
65
69
  printInstance: any;
@@ -122,6 +126,10 @@ declare const ButtonPrint: SFCWithInstall<import("vue").DefineComponent<{
122
126
  default: string;
123
127
  type: StringConstructor;
124
128
  };
129
+ btnprint: {
130
+ type: StringConstructor;
131
+ default: string;
132
+ };
125
133
  }>> & {
126
134
  onError?: ((...args: any[]) => any) | undefined;
127
135
  onSuccess?: ((...args: any[]) => any) | undefined;
@@ -1869,6 +1877,10 @@ declare const ButtonPrint: SFCWithInstall<import("vue").DefineComponent<{
1869
1877
  default: string;
1870
1878
  type: StringConstructor;
1871
1879
  };
1880
+ btnprint: {
1881
+ type: StringConstructor;
1882
+ default: string;
1883
+ };
1872
1884
  }>> & {
1873
1885
  onError?: ((...args: any[]) => any) | undefined;
1874
1886
  onSuccess?: ((...args: any[]) => any) | undefined;
@@ -1887,5 +1899,6 @@ declare const ButtonPrint: SFCWithInstall<import("vue").DefineComponent<{
1887
1899
  clickPrevFn: Function;
1888
1900
  noDataMsg: string;
1889
1901
  printdlgshow: string;
1902
+ btnprint: string;
1890
1903
  }>>;
1891
1904
  export default ButtonPrint;
@@ -61,6 +61,10 @@ declare const _default: import("vue").DefineComponent<{
61
61
  default: string;
62
62
  type: StringConstructor;
63
63
  };
64
+ btnprint: {
65
+ type: StringConstructor;
66
+ default: string;
67
+ };
64
68
  }, {
65
69
  $message: import("naive-ui").MessageApi;
66
70
  printInstance: any;
@@ -126,6 +130,10 @@ declare const _default: import("vue").DefineComponent<{
126
130
  default: string;
127
131
  type: StringConstructor;
128
132
  };
133
+ btnprint: {
134
+ type: StringConstructor;
135
+ default: string;
136
+ };
129
137
  }>> & {
130
138
  onError?: ((...args: any[]) => any) | undefined;
131
139
  onSuccess?: ((...args: any[]) => any) | undefined;
@@ -1876,6 +1884,10 @@ declare const _default: import("vue").DefineComponent<{
1876
1884
  default: string;
1877
1885
  type: StringConstructor;
1878
1886
  };
1887
+ btnprint: {
1888
+ type: StringConstructor;
1889
+ default: string;
1890
+ };
1879
1891
  }>> & {
1880
1892
  onError?: ((...args: any[]) => any) | undefined;
1881
1893
  onSuccess?: ((...args: any[]) => any) | undefined;
@@ -1894,5 +1906,6 @@ declare const _default: import("vue").DefineComponent<{
1894
1906
  clickPrevFn: Function;
1895
1907
  noDataMsg: string;
1896
1908
  printdlgshow: string;
1909
+ btnprint: string;
1897
1910
  }>;
1898
1911
  export default _default;
@@ -67,6 +67,10 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
67
67
  printdlgshow: {
68
68
  default: "0",
69
69
  type: String
70
+ },
71
+ btnprint: {
72
+ type: String,
73
+ default: "1"
70
74
  }
71
75
  },
72
76
  emits: ["success", "error", "clickoutside"],
@@ -196,6 +200,8 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
196
200
  };
197
201
  if (props.strategy === "MULTI") {
198
202
  for (let i = 0; i < state.printParams.length; i++) {
203
+ if (i > 0)
204
+ queryParams.printdlgshow = "0";
199
205
  printInstance.printDirect({
200
206
  ...queryParams,
201
207
  params: getPrintParams(i)
@@ -222,7 +228,8 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
222
228
  const queryParams = {
223
229
  formatId: state.currentFormatId,
224
230
  templateId: getTemplateIdByFormatId.value,
225
- params
231
+ params,
232
+ btnprint: props.btnprint
226
233
  };
227
234
  printInstance.preview(queryParams, (res) => {
228
235
  callLocalServicesSuccessCb(res, "preview");
@@ -33,10 +33,10 @@ export declare class Print {
33
33
  pageCount: any;
34
34
  formatId: string;
35
35
  };
36
- _handleEventDirect({ templateId, formatId, params, cmdid, print, printdlgshow, nobillnode }: AnyObject): Promise<any>;
36
+ _handleEventDirect({ templateId, formatId, params, cmdid, print, printdlgshow, nobillnode, btnprint }: AnyObject): Promise<any>;
37
37
  _handleEventEditFormat({ templateId, formatId, params, token }: AnyObject): Promise<any>;
38
38
  _queryPrintFile(formatId: string, params?: string): Promise<any>;
39
- preview({ templateId, formatId, params }: AnyObject, successCallbackFn?: Func, errorCallbackFn?: Func): Promise<any>;
39
+ preview({ templateId, formatId, params, btnprint }: AnyObject, successCallbackFn?: Func, errorCallbackFn?: Func): Promise<any>;
40
40
  printDirect({ templateId, formatId, params, print, printdlgshow, nobillnode }: AnyObject, successCallbackFn: Func, errorCallbackFn: Func, mode?: string): Promise<any>;
41
41
  private _downloadPDF;
42
42
  /**
@@ -197,7 +197,8 @@ class Print {
197
197
  cmdid,
198
198
  print,
199
199
  printdlgshow = "1",
200
- nobillnode = "1"
200
+ nobillnode = "1",
201
+ btnprint = "1"
201
202
  }) {
202
203
  const queryParams = {
203
204
  templateId,
@@ -205,7 +206,8 @@ class Print {
205
206
  params,
206
207
  cmdid,
207
208
  nobillnode,
208
- printdlgshow
209
+ printdlgshow,
210
+ btnprint
209
211
  };
210
212
  if (print) {
211
213
  try {
@@ -245,7 +247,7 @@ class Print {
245
247
  }) || {};
246
248
  return data;
247
249
  }
248
- async preview({ templateId, formatId, params = "" }, successCallbackFn, errorCallbackFn) {
250
+ async preview({ templateId, formatId, params = "", btnprint }, successCallbackFn, errorCallbackFn) {
249
251
  if (isIReport(formatId)) {
250
252
  const data = await this._queryPrintFile(formatId, params);
251
253
  if (!data)
@@ -264,7 +266,8 @@ class Print {
264
266
  templateId,
265
267
  formatId,
266
268
  params,
267
- cmdid: PREVIEW_CMD_ID
269
+ cmdid: PREVIEW_CMD_ID,
270
+ btnprint
268
271
  });
269
272
  if (!result)
270
273
  return false;