cnhis-design-vue 3.1.33 → 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 (55) hide show
  1. package/README.md +123 -123
  2. package/es/components/button-print/src/ButtonPrint.vue2.js +2 -0
  3. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/editDate.vue.d.ts +8 -8
  4. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/editDate.vue.js +8 -12
  5. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/index.js +2 -2
  6. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/hooks/{useCommon.d.ts → useAutoFocus.d.ts} +2 -1
  7. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/hooks/{useCommon.js → useAutoFocus.js} +6 -2
  8. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/inputRendererPlugin.js +4 -2
  9. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/numberRendererPlugin.js +11 -5
  10. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/editSelect.d.ts +5 -5
  11. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/editSelect.js +14 -15
  12. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/index.js +2 -2
  13. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/editSeparate.vue.d.ts +9 -9
  14. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/editSeparate.vue.js +6 -9
  15. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/index.js +2 -2
  16. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin.js +7 -1
  17. package/es/components/iho-table/src/utils/index.d.ts +5 -10
  18. package/es/components/iho-table/src/utils/index.js +19 -26
  19. package/es/components/select-person/index.d.ts +1 -2
  20. package/es/components/select-person/src/SelectPerson.vue.d.ts +1 -2
  21. package/es/components/select-person/src/SelectPerson.vue2.js +20 -19
  22. package/es/components/select-person/src/utils/index.d.ts +1 -0
  23. package/es/components/select-person/src/utils/index.js +15 -1
  24. package/es/shared/assets/img/failure.js +1 -1
  25. package/es/shared/assets/img/failure.png.js +1 -1
  26. package/es/shared/assets/img/icon-asc.js +1 -1
  27. package/es/shared/assets/img/icon-desc.js +1 -1
  28. package/es/shared/assets/img/no-permission.js +1 -1
  29. package/es/shared/assets/img/no-permission.png.js +1 -1
  30. package/es/shared/assets/img/nodata.js +1 -1
  31. package/es/shared/assets/img/nodata.png.js +1 -1
  32. package/es/shared/assets/img/notfound.js +1 -1
  33. package/es/shared/assets/img/notfound.png.js +1 -1
  34. package/es/shared/assets/img/qr.js +1 -1
  35. package/es/shared/assets/img/qr.png.js +1 -1
  36. package/es/shared/assets/img/success.js +1 -1
  37. package/es/shared/assets/img/success.png.js +1 -1
  38. package/es/shared/assets/img/video.js +1 -1
  39. package/es/shared/assets/img/video.png.js +1 -1
  40. package/es/shared/assets/img/video_default_cover.js +1 -1
  41. package/es/shared/assets/img/video_default_cover.png.js +1 -1
  42. package/es/shared/assets/img/video_hover.js +1 -1
  43. package/es/shared/assets/img/video_play_hover.js +1 -1
  44. package/es/shared/assets/img/xb_big.js +1 -1
  45. package/es/shared/assets/img/xb_big.png.js +1 -1
  46. package/es/shared/assets/img/xb_small.js +1 -1
  47. package/es/shared/assets/img/xb_small.png.js +1 -1
  48. package/package.json +2 -2
  49. package/es/components/bpmn-workflow/src/BpmnWorkflow.d.ts +0 -0
  50. package/es/components/bpmn-workflow/types/BpmnViewer.d.ts +0 -1
  51. package/es/components/bpmn-workflow/types/ModelingModule.d.ts +0 -1
  52. package/es/components/bpmn-workflow/types/MoveCanvasModule.d.ts +0 -1
  53. package/es/components/fabric-chart/src/utils/index.d.ts +0 -6823
  54. package/es/shared/components/VueDraggable/src/vuedraggable.d.ts +0 -86
  55. 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,6 +200,8 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
200
200
  };
201
201
  if (props.strategy === "MULTI") {
202
202
  for (let i = 0; i < state.printParams.length; i++) {
203
+ if (i > 0)
204
+ queryParams.printdlgshow = "0";
203
205
  printInstance.printDirect({
204
206
  ...queryParams,
205
207
  params: getPrintParams(i)
@@ -1,6 +1,6 @@
1
1
  import { Func } from '../../../../../../../../es/shared/types';
2
2
  import { PropType } from 'vue';
3
- import { IhoTableFieldItem } from '../../../../../../../../es/components/iho-table';
3
+ import { VxeTableDefines } from 'vxe-table';
4
4
  import { AnyObject } from '../../../../../../../../es/shared/types';
5
5
  declare const _default: import("vue").DefineComponent<{
6
6
  value: {
@@ -8,14 +8,14 @@ declare const _default: import("vue").DefineComponent<{
8
8
  default: undefined;
9
9
  };
10
10
  column: {
11
- type: PropType<IhoTableFieldItem>;
11
+ type: PropType<VxeTableDefines.ColumnInfo>;
12
12
  required: true;
13
13
  };
14
14
  row: {
15
15
  type: PropType<AnyObject>;
16
16
  required: true;
17
17
  };
18
- index: {
18
+ rowIndex: {
19
19
  type: NumberConstructor;
20
20
  required: true;
21
21
  };
@@ -27,22 +27,22 @@ declare const _default: import("vue").DefineComponent<{
27
27
  default: undefined;
28
28
  };
29
29
  column: {
30
- type: PropType<IhoTableFieldItem>;
30
+ type: PropType<VxeTableDefines.ColumnInfo>;
31
31
  required: true;
32
32
  };
33
33
  row: {
34
34
  type: PropType<AnyObject>;
35
35
  required: true;
36
36
  };
37
- index: {
37
+ rowIndex: {
38
38
  type: NumberConstructor;
39
39
  required: true;
40
40
  };
41
41
  }>> & {
42
42
  "onUpdate:value"?: ((...args: any[]) => any) | undefined;
43
43
  }>>;
44
+ emitFormChange: (params?: AnyObject) => void;
44
45
  emit: (event: "update:value", ...args: any[]) => void;
45
- globEmit: import("../../../../../../../../es/components/iho-table").IhoTableEmits;
46
46
  formRef: import("vue").Ref<HTMLElement | null>;
47
47
  isShow: import("vue").Ref<boolean>;
48
48
  formattedValue: import("vue").Ref<string | undefined>;
@@ -77,14 +77,14 @@ declare const _default: import("vue").DefineComponent<{
77
77
  default: undefined;
78
78
  };
79
79
  column: {
80
- type: PropType<IhoTableFieldItem>;
80
+ type: PropType<VxeTableDefines.ColumnInfo>;
81
81
  required: true;
82
82
  };
83
83
  row: {
84
84
  type: PropType<AnyObject>;
85
85
  required: true;
86
86
  };
87
- index: {
87
+ rowIndex: {
88
88
  type: NumberConstructor;
89
89
  required: true;
90
90
  };
@@ -1,9 +1,9 @@
1
- import { defineComponent, useAttrs, inject, ref, computed, watch, openBlock, createBlock, unref, mergeProps, withCtx, createVNode, isRef } from 'vue';
1
+ import { defineComponent, useAttrs, ref, computed, watch, openBlock, createBlock, unref, mergeProps, withCtx, createVNode, isRef } from 'vue';
2
2
  import { generateTimeFormat } from '../../../../../../../shared/utils/index.js';
3
3
  import { isFunction, isNaN } from 'lodash-es';
4
4
  import { NPopover, NInput, NDatePicker } from 'naive-ui';
5
- import { InjectionIhoTableEmits } from '../../../../constants/index.js';
6
- import { useCommon } from '../hooks/useCommon.js';
5
+ import { useIhoTableFormEvent } from '../../../../utils/index.js';
6
+ import { useAutoFocus } from '../hooks/useAutoFocus.js';
7
7
  import _export_sfc from '../../../../../../../_virtual/plugin-vue_export-helper.js';
8
8
 
9
9
  const _sfc_main = /* @__PURE__ */ defineComponent({
@@ -12,23 +12,19 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
12
12
  value: { type: String, default: void 0 },
13
13
  column: { type: Object, required: true },
14
14
  row: { type: Object, required: true },
15
- index: { type: Number, required: true }
15
+ rowIndex: { type: Number, required: true }
16
16
  },
17
17
  emits: ["update:value"],
18
18
  setup(__props, { emit }) {
19
19
  const props = __props;
20
20
  const attr = useAttrs();
21
- const globEmit = inject(InjectionIhoTableEmits);
22
- const { formRef, isShow } = useCommon();
21
+ const { emitFormChange } = useIhoTableFormEvent(props);
22
+ const { formRef, isShow } = useAutoFocus();
23
23
  const formattedValue = ref();
24
24
  const onConfirm = (value) => {
25
+ const oldValue = props.value;
25
26
  emit("update:value", value);
26
- globEmit("formChange", {
27
- value,
28
- row: props.row,
29
- column: props.column,
30
- index: props.index
31
- });
27
+ emitFormChange({ oldValue });
32
28
  };
33
29
  const { isStartDate = false, isEndDate = false } = attr;
34
30
  const connectField = attr.connectField || "";
@@ -17,7 +17,7 @@ function dateRendererPlugin() {
17
17
  emitFormClick,
18
18
  row,
19
19
  column,
20
- $rowIndex
20
+ rowIndex
21
21
  }) => {
22
22
  return [createVNode(EditDate, mergeProps({
23
23
  "value": row[column.field],
@@ -25,7 +25,7 @@ function dateRendererPlugin() {
25
25
  }, fieldItem.componentProps, {
26
26
  "column": column,
27
27
  "row": row,
28
- "index": $rowIndex,
28
+ "row-index": rowIndex,
29
29
  "onClick": emitFormClick
30
30
  }), null)];
31
31
  })
@@ -1,4 +1,5 @@
1
- export declare const useCommon: () => {
1
+ export declare const useAutoFocus: () => {
2
2
  formRef: import("vue").Ref<HTMLElement | null>;
3
+ setRef: (ref: HTMLElement) => void;
3
4
  isShow: import("vue").Ref<boolean>;
4
5
  };
@@ -1,7 +1,10 @@
1
1
  import { ref, onMounted } from 'vue';
2
2
 
3
- const useCommon = () => {
3
+ const useAutoFocus = () => {
4
4
  const formRef = ref(null);
5
+ function setRef(ref2) {
6
+ formRef.value = ref2;
7
+ }
5
8
  const isShow = ref(false);
6
9
  onMounted(() => {
7
10
  var _a;
@@ -10,8 +13,9 @@ const useCommon = () => {
10
13
  });
11
14
  return {
12
15
  formRef,
16
+ setRef,
13
17
  isShow
14
18
  };
15
19
  };
16
20
 
17
- export { useCommon };
21
+ export { useAutoFocus };
@@ -22,8 +22,10 @@ function inputRendererPlugin() {
22
22
  return [createVNode(NInput, mergeProps({
23
23
  "value": row[column.field],
24
24
  "onUpdate:value": ($event) => row[column.field] = $event,
25
- "onBlur": emitFormChange,
26
- "onClick": emitFormClick
25
+ "onBlur": () => emitFormChange({
26
+ oldValue: row[column.field]
27
+ }),
28
+ "onClick": () => emitFormClick()
27
29
  }, fieldItem.componentProps), null)];
28
30
  })
29
31
  });
@@ -17,8 +17,7 @@ function numberRendererPlugin() {
17
17
  column,
18
18
  fieldItem,
19
19
  emitFormClick,
20
- emitFormChange,
21
- createCustomEvent
20
+ emitFormChange
22
21
  }) => {
23
22
  const {
24
23
  placeholder = "\u8BF7\u8F93\u5165"
@@ -27,10 +26,17 @@ function numberRendererPlugin() {
27
26
  ...fieldItem.componentProps || {},
28
27
  clearable: true,
29
28
  placeholder,
30
- onBlur: createCustomEvent("formChange", {
31
- type: "blur"
29
+ onBlur: () => emitFormChange({
30
+ type: "blur",
31
+ oldValue: row[column.field]
32
32
  }),
33
- onUpdateValue: emitFormChange,
33
+ onUpdateValue: (value) => {
34
+ const oldValue = row[column.field];
35
+ row[column.field] = value;
36
+ emitFormChange({
37
+ oldValue
38
+ });
39
+ },
34
40
  onClick: emitFormClick
35
41
  };
36
42
  return [createVNode(NInputNumber, mergeProps({
@@ -1,5 +1,5 @@
1
1
  import { PropType } from 'vue';
2
- import { IhoTableFieldItem } from '../../../../../../../../es/components/iho-table';
2
+ import { VxeTableDefines } from 'vxe-table';
3
3
  import { AnyObject } from '../../../../../../../../es/shared/types';
4
4
  declare const _default: import("vue").DefineComponent<{
5
5
  value: {
@@ -7,14 +7,14 @@ declare const _default: import("vue").DefineComponent<{
7
7
  default: undefined;
8
8
  };
9
9
  column: {
10
- type: PropType<IhoTableFieldItem>;
10
+ type: PropType<VxeTableDefines.ColumnInfo>;
11
11
  required: true;
12
12
  };
13
13
  row: {
14
14
  type: PropType<AnyObject>;
15
15
  required: true;
16
16
  };
17
- index: {
17
+ rowIndex: {
18
18
  type: NumberConstructor;
19
19
  required: true;
20
20
  };
@@ -24,14 +24,14 @@ declare const _default: import("vue").DefineComponent<{
24
24
  default: undefined;
25
25
  };
26
26
  column: {
27
- type: PropType<IhoTableFieldItem>;
27
+ type: PropType<VxeTableDefines.ColumnInfo>;
28
28
  required: true;
29
29
  };
30
30
  row: {
31
31
  type: PropType<AnyObject>;
32
32
  required: true;
33
33
  };
34
- index: {
34
+ rowIndex: {
35
35
  type: NumberConstructor;
36
36
  required: true;
37
37
  };
@@ -1,7 +1,7 @@
1
- import { defineComponent, inject, createVNode, mergeProps } from 'vue';
1
+ import { defineComponent, createVNode, mergeProps } from 'vue';
2
2
  import { NSelect } from 'naive-ui';
3
- import { InjectionIhoTableEmits } from '../../../../constants/index.js';
4
- import { useCommon } from '../hooks/useCommon.js';
3
+ import { useIhoTableFormEvent } from '../../../../utils/index.js';
4
+ import { useAutoFocus } from '../hooks/useAutoFocus.js';
5
5
 
6
6
  var EditSelect = defineComponent({
7
7
  name: "EditSelect",
@@ -22,7 +22,7 @@ var EditSelect = defineComponent({
22
22
  type: Object,
23
23
  required: true
24
24
  },
25
- index: {
25
+ rowIndex: {
26
26
  type: Number,
27
27
  required: true
28
28
  }
@@ -30,25 +30,24 @@ var EditSelect = defineComponent({
30
30
  emits: ["update:value"],
31
31
  setup(props, {
32
32
  attrs,
33
- slots,
34
33
  emit
35
34
  }) {
36
- const globEmit = inject(InjectionIhoTableEmits);
37
35
  const {
38
- formRef,
39
- isShow
40
- } = useCommon();
36
+ isShow,
37
+ setRef
38
+ } = useAutoFocus();
39
+ const {
40
+ emitFormChange
41
+ } = useIhoTableFormEvent(props);
41
42
  function onUpdateValue(value) {
43
+ const oldValue = props.value;
42
44
  emit("update:value", value);
43
- globEmit("formChange", {
44
- value,
45
- row: props.row,
46
- column: props.column,
47
- index: props.index
45
+ emitFormChange({
46
+ oldValue
48
47
  });
49
48
  }
50
49
  return () => createVNode(NSelect, mergeProps({
51
- "ref": "formRef",
50
+ "ref": setRef,
52
51
  "show": isShow.value,
53
52
  "onUpdate:show": ($event) => isShow.value = $event
54
53
  }, attrs, {
@@ -24,12 +24,12 @@ function selectRendererPlugin() {
24
24
  emitFormClick,
25
25
  row,
26
26
  column,
27
- $rowIndex
27
+ rowIndex
28
28
  }) => {
29
29
  return [createVNode(EditSelect, mergeProps(fieldItem.componentProps, {
30
30
  "column": column,
31
31
  "row": row,
32
- "index": $rowIndex,
32
+ "row-index": rowIndex,
33
33
  "value": row[column.field],
34
34
  "onUpdate:value": ($event) => row[column.field] = $event,
35
35
  "onClick": emitFormClick
@@ -1,6 +1,6 @@
1
1
  import { AnyObject } from '../../../../../../../../es/shared/types';
2
2
  import { CSSProperties, PropType } from 'vue';
3
- import { IhoTableFieldItem } from '../../../../../../../../es/components/iho-table';
3
+ import { VxeTableDefines } from 'vxe-table';
4
4
  declare const _default: import("vue").DefineComponent<{
5
5
  value: {};
6
6
  height: {
@@ -8,7 +8,7 @@ declare const _default: import("vue").DefineComponent<{
8
8
  default: number;
9
9
  };
10
10
  column: {
11
- type: PropType<IhoTableFieldItem>;
11
+ type: PropType<VxeTableDefines.ColumnInfo>;
12
12
  required: true;
13
13
  };
14
14
  row: {
@@ -19,7 +19,7 @@ declare const _default: import("vue").DefineComponent<{
19
19
  type: StringConstructor;
20
20
  default: string;
21
21
  };
22
- dataIndex: {
22
+ rowIndex: {
23
23
  type: NumberConstructor;
24
24
  required: true;
25
25
  };
@@ -31,7 +31,7 @@ declare const _default: import("vue").DefineComponent<{
31
31
  default: number;
32
32
  };
33
33
  column: {
34
- type: PropType<IhoTableFieldItem>;
34
+ type: PropType<VxeTableDefines.ColumnInfo>;
35
35
  required: true;
36
36
  };
37
37
  row: {
@@ -42,15 +42,14 @@ declare const _default: import("vue").DefineComponent<{
42
42
  type: StringConstructor;
43
43
  default: string;
44
44
  };
45
- dataIndex: {
45
+ rowIndex: {
46
46
  type: NumberConstructor;
47
47
  required: true;
48
48
  };
49
49
  }>> & {
50
50
  "onUpdate:value"?: ((...args: any[]) => any) | undefined;
51
51
  }>>;
52
- globEmit: import("../../../../../../../../es/components/iho-table").IhoTableEmits;
53
- tableHandler: import("../../../../../../../../es/components/iho-table").IhoTableHandler;
52
+ tableHandler: import("../../../../types").IhoTableHandler;
54
53
  popoverRef: import("vue").Ref<any>;
55
54
  editContent: import("vue").Ref<any>;
56
55
  setEditContent: (value: any) => void;
@@ -58,6 +57,7 @@ declare const _default: import("vue").DefineComponent<{
58
57
  setShow: (v: boolean) => void;
59
58
  emit: (event: "update:value", ...args: any[]) => void;
60
59
  onShow: () => Promise<void>;
60
+ emitFormChange: (params?: AnyObject) => void;
61
61
  onClose: () => Promise<void>;
62
62
  updateShow: (show: boolean) => void;
63
63
  style: import("vue").ComputedRef<CSSProperties>;
@@ -70,7 +70,7 @@ declare const _default: import("vue").DefineComponent<{
70
70
  default: number;
71
71
  };
72
72
  column: {
73
- type: PropType<IhoTableFieldItem>;
73
+ type: PropType<VxeTableDefines.ColumnInfo>;
74
74
  required: true;
75
75
  };
76
76
  row: {
@@ -81,7 +81,7 @@ declare const _default: import("vue").DefineComponent<{
81
81
  type: StringConstructor;
82
82
  default: string;
83
83
  };
84
- dataIndex: {
84
+ rowIndex: {
85
85
  type: NumberConstructor;
86
86
  required: true;
87
87
  };