@kengic/vue 0.22.1-beta.0 → 0.23.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (89) hide show
  1. package/CHANGELOG.md +62 -22
  2. package/dist/index.css +1 -1
  3. package/dist/kengic-vue.js +7709 -6673
  4. package/dist/project/build/script/buildConf.ts +1 -2
  5. package/dist/project/build/script/postBuild.ts +1 -1
  6. package/dist/project/src/api/sys/model/userModel.ts +1 -0
  7. package/dist/src/apis/WMS/Controllers/DescriptionController/ListByCodeNamesAndCodeValues.d.ts +16 -0
  8. package/dist/src/apis/WMS/Controllers/DescriptionController/index.d.ts +1 -0
  9. package/dist/src/apis/WMS/Controllers/VarConfigDescriptionController/index.d.ts +0 -7
  10. package/dist/src/apis/WMS/Controllers/VarConfigPossibilityController/ExecuteQuery.d.ts +18 -0
  11. package/dist/src/apis/WMS/Controllers/VarConfigPossibilityController/index.d.ts +1 -0
  12. package/dist/src/apis/WMS/Controllers/index.d.ts +1 -0
  13. package/dist/src/apis/WMS/models.d.ts +28 -4
  14. package/dist/src/components/KgAppSelect/index.hooks.d.ts +3 -3
  15. package/dist/src/components/KgAppSelect/index.store.d.ts +30 -29
  16. package/dist/src/components/KgButton/KgButton.d.ts +18 -12
  17. package/dist/src/components/KgButton/index.d.ts +4 -4
  18. package/dist/src/components/KgButton/index.hooks.d.ts +68 -67
  19. package/dist/src/components/KgButton/index.store.d.ts +57 -193
  20. package/dist/src/components/KgForm/index.hooks.d.ts +37 -30
  21. package/dist/src/components/KgForm/index.store.d.ts +88 -41
  22. package/dist/src/components/KgForm.Item/KgForm.Item.d.ts +3 -3
  23. package/dist/src/components/KgForm.Item/{KgForm.Item.hooks.d.ts → KgForm.Item.service.d.ts} +3 -3
  24. package/dist/src/components/KgForm.Item/components/KgForm.Item.Checkbox.d.ts +8 -7
  25. package/dist/src/components/KgForm.Item/components/KgForm.Item.CheckboxGroup.d.ts +6 -5
  26. package/dist/src/components/KgForm.Item/components/KgForm.Item.Date.d.ts +6 -5
  27. package/dist/src/components/KgForm.Item/components/KgForm.Item.DateRange.d.ts +6 -5
  28. package/dist/src/components/KgForm.Item/components/KgForm.Item.Image.d.ts +3 -3
  29. package/dist/src/components/KgForm.Item/components/KgForm.Item.Input.d.ts +6 -5
  30. package/dist/src/components/KgForm.Item/components/KgForm.Item.InputNumber.d.ts +6 -5
  31. package/dist/src/components/KgForm.Item/components/KgForm.Item.RadioGroup.d.ts +6 -7
  32. package/dist/src/components/KgForm.Item/components/KgForm.Item.Select.d.ts +7 -5
  33. package/dist/src/components/KgForm.Item/components/{KgForm.Item.Select.hooks.d.ts → KgForm.Item.Select.service.d.ts} +16 -13
  34. package/dist/src/components/KgForm.Item/components/KgForm.Item.Switch.d.ts +6 -5
  35. package/dist/src/components/KgForm.Item/components/KgForm.Item.TextArea.d.ts +6 -5
  36. package/dist/src/components/KgForm.Item/index.d.ts +1 -1
  37. package/dist/src/components/KgForm.Item/index.vm.d.ts +9 -7
  38. package/dist/src/components/KgResizable/KgResizable.d.ts +52 -52
  39. package/dist/src/components/KgSearch/KgSearch.d.ts +0 -16
  40. package/dist/src/components/KgSearch/KgSearch.service.d.ts +32 -0
  41. package/dist/src/components/KgSearch/index.hooks.d.ts +57 -138
  42. package/dist/src/components/KgSearch/index.store.d.ts +84 -193
  43. package/dist/src/components/KgSubmit/index.hooks.d.ts +112 -278
  44. package/dist/src/components/KgSubmit/index.store.d.ts +71 -257
  45. package/dist/src/components/KgSubmit/index.vm.d.ts +2 -1
  46. package/dist/src/components/KgTable/{KgTable.hooks.d.ts → KgTable.service.d.ts} +8 -16
  47. package/dist/src/components/KgTable/components/setting/KgTable.Setting.d.ts +0 -1
  48. package/dist/src/components/KgTable/components/setting/{KgTable.Setting.hooks.d.ts → KgTable.Setting.service.d.ts} +1 -1
  49. package/dist/src/components/KgTable/components/setting/config/KgTable.Setting.ConfigModal.d.ts +0 -2
  50. package/dist/src/components/KgTable/index.hooks.d.ts +79 -427
  51. package/dist/src/components/KgTable/index.store.d.ts +127 -647
  52. package/dist/src/components/KgTable/index.vm.d.ts +1 -1
  53. package/dist/src/components/KgVar/index.hooks.d.ts +103 -3468
  54. package/dist/src/components/KgVar/index.store.d.ts +136 -3229
  55. package/dist/src/components/KgVar/index.store.service.d.ts +2 -1
  56. package/dist/src/components/KgVar/index.vm.d.ts +7 -7
  57. package/dist/src/components/KgVarConfig/components/var/KgVarConfig.Modal.Var.VarConfigInput.d.ts +2 -0
  58. package/dist/src/components/KgVarConfig/components/var/KgVarConfig.Modal.Var.VarConfigLookup.d.ts +2 -0
  59. package/dist/src/components/KgVarConfig/components/var/KgVarConfig.Modal.Var.VarConfigPossibility.d.ts +2 -0
  60. package/dist/src/components/KgVarConfig/components/var/KgVarConfig.Modal.Var.VarConfigTip.d.ts +2 -0
  61. package/dist/src/components/KgVarConfig/components/var/KgVarConfig.Modal.Var.VarVariable.d.ts +2 -0
  62. package/dist/src/components/KgVarConfig/index.store.d.ts +23 -16
  63. package/dist/src/components/KgVarConfig/index.vm.d.ts +32 -0
  64. package/dist/src/components/KgWarehouse/index.hooks.d.ts +10 -6
  65. package/dist/src/components/KgWarehouse/index.store.d.ts +15 -14
  66. package/dist/src/components/util.d.ts +7 -7
  67. package/dist/src/config/index.hooks.d.ts +31 -38
  68. package/dist/src/config/index.store.d.ts +74 -52
  69. package/dist/src/consts/i18n/en.d.ts +10 -6
  70. package/dist/src/consts/i18n/zh_CN.d.ts +10 -6
  71. package/dist/src/consts/index.d.ts +0 -277
  72. package/dist/src/consts/index.vm.d.ts +503 -75
  73. package/dist/src/pages/KgPageDda/components/KgPageDda.Create.store.d.ts +7 -1
  74. package/dist/src/utils/kg-var.util.d.ts +4 -3
  75. package/dist/src/utils/kg.util.d.ts +13 -16
  76. package/package.json +2 -2
  77. package/dist/src/apis/WMS/Controllers/VarConfigDescriptionController/Delete.d.ts +0 -18
  78. package/dist/src/apis/WMS/Controllers/VarConfigDescriptionController/DeleteBatch.d.ts +0 -18
  79. package/dist/src/apis/WMS/Controllers/VarConfigDescriptionController/Edit.d.ts +0 -16
  80. package/dist/src/apis/WMS/Controllers/VarConfigDescriptionController/ExportXls.d.ts +0 -30
  81. package/dist/src/apis/WMS/Controllers/VarConfigDescriptionController/ImportExcel.d.ts +0 -15
  82. package/dist/src/apis/WMS/Controllers/VarConfigDescriptionController/List.d.ts +0 -37
  83. package/dist/src/apis/WMS/Controllers/VarConfigDescriptionController/QueryById.d.ts +0 -19
  84. package/dist/src/components/KgSearch/KgSearch.hooks.d.ts +0 -28
  85. package/dist/src/components/KgVarConfig/components/var/KgVarConfig.Modal.Var.CreateModal.d.ts +0 -32
  86. /package/dist/src/components/KgModal/{KgModal.hooks.d.ts → KgModal.service.d.ts} +0 -0
  87. /package/dist/src/components/KgSubmit/{KgSubmit.hooks.d.ts → KgSubmit.service.d.ts} +0 -0
  88. /package/dist/src/components/KgTable/components/setting/config/{KgTable.Setting.ConfigModal.VarGridMaster.hooks.d.ts → KgTable.Setting.ConfigModal.VarGridMaster.service.d.ts} +0 -0
  89. /package/dist/src/components/KgVarConfig/components/var/{KgVarConfig.Modal.Var.Vars.d.ts → KgVarConfig.Modal.Var.VarConfigControl.d.ts} +0 -0
@@ -1,42 +1,46 @@
1
1
  import { Key } from 'ant-design-vue/lib/_util/type';
2
+ import { StoreDefinition } from 'pinia';
2
3
  import { Ref } from 'vue';
3
- import { IPage } from '../../apis/WMS/models';
4
- import { IKgEventCb } from '../../consts';
4
+ import { IPage, VarGridConfig } from '../../apis/WMS/models';
5
+ import { IKgEventListener } from '../../consts';
5
6
  import { IKgTableRow, IKgTableRowHeight } from './index.vm';
6
7
  /**
7
8
  * 事件类型.
8
- * 'ready': 就绪, 配置初始完成, 组件渲染完成
9
- * 'rowDoubleClick': 双击某行
10
- * 'beforeSearch': 即将发起查询请求, 如果返回 true 表示不会发起请求
11
- * 'beforeSetDatas': 查询请求成功, 表格数据尚未赋值. 此处可以对查询接口返回的列表数据作处理
12
- * 'afterSearch': 查询请求成功, 表格数据已经赋值, 表格状态已经更新
9
+ * 'ready': 就绪, 配置初始完成, 组件渲染完成
10
+ * 'rowDoubleClick': 双击某行
11
+ * 'beforeParseParameter': 即将解析请求参数,
12
+ * 'beforeSearch': 即将发起查询请求, 如果返回 true 表示不会发起请求
13
+ * 'beforeSetDatas': 查询请求成功, 表格数据尚未赋值. 此处可以对查询接口返回的列表数据作处理
14
+ * 'afterSearch': 查询请求成功, 表格数据已经赋值, 表格状态已经更新
13
15
  */
14
- export declare type IKgTableEvent = 'ready' | 'rowDoubleClick' | 'beforeSearch' | 'beforeSetDatas' | 'afterSearch';
15
- /** 事件监听函数: ready. */
16
- export declare type IKgTableReadyParam = {};
17
- export declare type IKgTableReadyCb = ((param: IKgTableReadyParam) => Promise<boolean>) & IKgEventCb;
18
- /** 事件监听函数: rowDoubleClick. */
19
- export declare type IKgTableRowDoubleClickParam = {
16
+ export declare type IKgTableEvent = 'ready' | 'rowDoubleClick' | 'beforeParseParameter' | 'beforeSearch' | 'beforeSetDatas' | 'afterSearch';
17
+ export declare type IKgTableReadyEventListenerParameter = {};
18
+ export declare type IKgTableReadyEventListener = ((param: IKgTableReadyEventListenerParameter) => Promise<boolean>) & IKgEventListener;
19
+ export declare type IKgTableRowDoubleClickEventListenerParameter = {
20
20
  /** 双击的行. */
21
21
  row: IKgTableRow;
22
22
  };
23
- export declare type IKgTableRowDoubleClickCb = ((param: IKgTableRowDoubleClickParam) => Promise<boolean>) & IKgEventCb;
24
- /** 事件监听函数: beforeSearch. */
25
- export declare type IKgTableBeforeRequestCbParam = {
23
+ export declare type IKgTableRowDoubleClickEventListener = ((param: IKgTableRowDoubleClickEventListenerParameter) => Promise<boolean>) & IKgEventListener;
24
+ export declare type IKgTableBeforeParseParameterEventListenerParameter = {
25
+ /**
26
+ * 查询接口请求参数, 尚未解析.
27
+ */
28
+ params: Record<string, any>;
29
+ };
30
+ export declare type IKgTableBeforeParseParameterEventListener = ((param: IKgTableBeforeParseParameterEventListenerParameter) => Promise<boolean>) & IKgEventListener;
31
+ export declare type IKgTableBeforeRequestEventListenerParameter = {
26
32
  /** 查询接口请求参数. */
27
33
  params: Record<string, any>;
28
34
  /** 查询接口返回的数据, 调用者可以直接修改该数据, 从而实现手动提供表格数据. */
29
35
  response: Ref;
30
36
  };
31
- export declare type IKgTableBeforeRequestCb = ((param: IKgTableBeforeRequestCbParam) => Promise<boolean>) & IKgEventCb;
32
- /** 事件监听函数: beforeSetDatas. */
33
- export declare type IKgTableBeforeSetDatasCbParam = {
37
+ export declare type IKgTableBeforeRequestEventListener = ((param: IKgTableBeforeRequestEventListenerParameter) => Promise<boolean>) & IKgEventListener;
38
+ export declare type IKgTableBeforeSetDatasEventListenerParameter = {
34
39
  /** 列表数据. */
35
40
  datas: Ref<Array<IKgTableRow>>;
36
41
  };
37
- export declare type IKgTableBeforeSetDatasCb = ((param: IKgTableBeforeSetDatasCbParam) => Promise<boolean>) & IKgEventCb;
38
- /** 事件监听函数: afterSearch. */
39
- export declare type IKgTableAfterRequestCbParam = {
42
+ export declare type IKgTableBeforeSetDatasEventListener = ((param: IKgTableBeforeSetDatasEventListenerParameter) => Promise<boolean>) & IKgEventListener;
43
+ export declare type IKgTableAfterRequestEventListenerParameter = {
40
44
  /** 查询接口请求参数. */
41
45
  params: Record<string, any>;
42
46
  /** 接口返回的分页数据. */
@@ -44,18 +48,18 @@ export declare type IKgTableAfterRequestCbParam = {
44
48
  /** 列表数据. */
45
49
  datas: Ref<Array<IKgTableRow>>;
46
50
  };
47
- export declare type IKgTableAfterRequestCb = ((param: IKgTableAfterRequestCbParam) => Promise<boolean>) & IKgEventCb;
48
- export declare type IKgTableCbParam = IKgTableReadyParam | IKgTableRowDoubleClickParam | IKgTableBeforeRequestCbParam | IKgTableBeforeSetDatasCbParam | IKgTableAfterRequestCbParam;
49
- export declare type IKgTableCb = IKgTableReadyCb | IKgTableRowDoubleClickCb | IKgTableBeforeRequestCb | IKgTableBeforeSetDatasCb | IKgTableAfterRequestCb;
50
- export declare const useKgTableStore: import("pinia").StoreDefinition<"KgTable", {
51
+ export declare type IKgTableAfterRequestEventListener = ((param: IKgTableAfterRequestEventListenerParameter) => Promise<boolean>) & IKgEventListener;
52
+ export declare type IKgTableEventListenerParameter = IKgTableReadyEventListenerParameter | IKgTableRowDoubleClickEventListenerParameter | IKgTableBeforeParseParameterEventListenerParameter | IKgTableBeforeRequestEventListenerParameter | IKgTableBeforeSetDatasEventListenerParameter | IKgTableAfterRequestEventListenerParameter;
53
+ export declare type IKgTableEventListener = IKgTableReadyEventListener | IKgTableRowDoubleClickEventListener | IKgTableBeforeParseParameterEventListener | IKgTableBeforeRequestEventListener | IKgTableBeforeSetDatasEventListener | IKgTableAfterRequestEventListener;
54
+ export interface IUseKgTableStoreState {
55
+ afterRequestEventListenersMap: Map<string, Array<IKgTableAfterRequestEventListener>>;
56
+ beforeParseParameterEventListenersMap: Map<string, Array<IKgTableBeforeParseParameterEventListener>>;
57
+ beforeRequestEventListenersMap: Map<string, Array<IKgTableBeforeRequestEventListener>>;
58
+ beforeSetDatasEventListenersMap: Map<string, Array<IKgTableBeforeSetDatasEventListener>>;
59
+ /** 列表数据. */
60
+ datasMap: Map<String, Array<any>>;
51
61
  /** 是否就绪: 配置初始完成, 组件渲染完成. */
52
62
  isReadyMap: Map<string, boolean>;
53
- /** 列表数据. */
54
- datasMap: Map<String, any[]>;
55
- /** 勾选的行的主键. */
56
- selectedRowKeysMap: Map<string, Ref<Key[]>>;
57
- /** 勾选的行. */
58
- selectedRowsMap: Map<string, any[]>;
59
63
  /**
60
64
  * <p>是否已经查询过一次了.</p>
61
65
  * <ul>
@@ -66,660 +70,136 @@ export declare const useKgTableStore: import("pinia").StoreDefinition<"KgTable",
66
70
  isRequestedMap: Map<string, boolean>;
67
71
  /** 是否正在查询. */
68
72
  isRequestingMap: Map<string, boolean>;
73
+ /**
74
+ * <p>是否显示描述.</p>
75
+ * <ul>
76
+ * <li>是: 所有描述列显示的是描述,</li>
77
+ * <li>否: 所有描述列显示的是原始的值,</li>
78
+ * </ul>
79
+ * <p>描述列指的是显示类型为 KG_TABLE_CELL_DISPLAY_TYPE.DESC 的列.</p>
80
+ *
81
+ * @default true
82
+ */
83
+ isShowDescriptionMap: Map<string, boolean>;
84
+ /** 事件监听函数列表: ready. */
85
+ onReadyEventListenersMap: Map<string, Array<IKgTableReadyEventListener>>;
69
86
  /**
70
87
  * <p>查询参数.</p>
71
88
  * <p>此查询参数是最终传给后端接口的参数, 包含了查询条件, 还包含了表格中的排序和分页, 还包含了表格配置中的参数.</p>
72
89
  */
73
90
  requestParamsMap: Map<string, Record<string, any>>;
74
- /** 表格宽度. */
75
- tableWidthMap: Map<string, number>;
91
+ /** '双击某行'事件监听函数列表. */
92
+ rowDoubleClickEventListenersMap: Map<string, Array<IKgTableRowDoubleClickEventListener>>;
76
93
  /** 行高. */
77
94
  rowHeightMap: Map<string, IKgTableRowHeight>;
78
- /** 事件监听函数列表: ready. */
79
- onReadyListenersMap: Map<string, IKgTableReadyCb[]>;
80
- /** '双击某行'事件监听函数列表. */
81
- rowDoubleClickListenersMap: Map<string, IKgTableRowDoubleClickCb[]>;
82
- beforeRequestListenersMap: Map<string, IKgTableBeforeRequestCb[]>;
83
- beforeSetDatasListenersMap: Map<string, IKgTableBeforeSetDatasCb[]>;
84
- afterRequestListenersMap: Map<string, IKgTableAfterRequestCb[]>;
85
- }, {
86
- /** 是否就绪. */
87
- getIsReady(state: {
88
- isReadyMap: Map<string, boolean>;
89
- datasMap: Map<String, any[]>;
90
- selectedRowKeysMap: Map<string, Ref<Key[]>>;
91
- selectedRowsMap: Map<string, any[]>;
92
- isRequestedMap: Map<string, boolean>;
93
- isRequestingMap: Map<string, boolean>;
94
- requestParamsMap: Map<string, Record<string, any>>;
95
- tableWidthMap: Map<string, number>;
96
- rowHeightMap: Map<string, IKgTableRowHeight>;
97
- onReadyListenersMap: Map<string, IKgTableReadyCb[]>;
98
- rowDoubleClickListenersMap: Map<string, IKgTableRowDoubleClickCb[]>;
99
- beforeRequestListenersMap: Map<string, IKgTableBeforeRequestCb[]>;
100
- beforeSetDatasListenersMap: Map<string, IKgTableBeforeSetDatasCb[]>;
101
- afterRequestListenersMap: Map<string, IKgTableAfterRequestCb[]>;
102
- } & import("pinia").PiniaCustomStateProperties<{
103
- /** 是否就绪: 配置初始完成, 组件渲染完成. */
104
- isReadyMap: Map<string, boolean>;
105
- /** 列表数据. */
106
- datasMap: Map<String, any[]>;
107
- /** 勾选的行的主键. */
108
- selectedRowKeysMap: Map<string, Ref<Key[]>>;
109
- /** 勾选的行. */
110
- selectedRowsMap: Map<string, any[]>;
111
- /**
112
- * <p>是否已经查询过一次了.</p>
113
- * <ul>
114
- * <li>如果表格禁用了自动查询, 当用户手动点击查询按钮后, 此属性会设置为 true,</li>
115
- * <li>如果表格启用了自动查询, 当第一次自动查询之后, 此属性会设置为 true,</li>
116
- * </ul>
117
- */
118
- isRequestedMap: Map<string, boolean>;
119
- /** 是否正在查询. */
120
- isRequestingMap: Map<string, boolean>;
121
- /**
122
- * <p>查询参数.</p>
123
- * <p>此查询参数是最终传给后端接口的参数, 包含了查询条件, 还包含了表格中的排序和分页, 还包含了表格配置中的参数.</p>
124
- */
125
- requestParamsMap: Map<string, Record<string, any>>;
126
- /** 表格宽度. */
127
- tableWidthMap: Map<string, number>;
128
- /** 行高. */
129
- rowHeightMap: Map<string, IKgTableRowHeight>;
130
- /** 事件监听函数列表: ready. */
131
- onReadyListenersMap: Map<string, IKgTableReadyCb[]>;
132
- /** '双击某行'事件监听函数列表. */
133
- rowDoubleClickListenersMap: Map<string, IKgTableRowDoubleClickCb[]>;
134
- beforeRequestListenersMap: Map<string, IKgTableBeforeRequestCb[]>;
135
- beforeSetDatasListenersMap: Map<string, IKgTableBeforeSetDatasCb[]>;
136
- afterRequestListenersMap: Map<string, IKgTableAfterRequestCb[]>;
137
- }>): (formID: string | null | undefined) => boolean;
95
+ /** 勾选的行的主键. */
96
+ selectedRowKeysMap: Map<string, Ref<Array<Key>>>;
97
+ /** 勾选的行. */
98
+ selectedRowsMap: Map<string, Array<any>>;
99
+ /** 表格宽度. */
100
+ tableWidthMap: Map<string, number>;
101
+ }
102
+ export interface IUseKgTableStoreGetters {
138
103
  /** 列表数据. */
139
- getDatas(state: {
140
- isReadyMap: Map<string, boolean>;
141
- datasMap: Map<String, any[]>;
142
- selectedRowKeysMap: Map<string, Ref<Key[]>>;
143
- selectedRowsMap: Map<string, any[]>;
144
- isRequestedMap: Map<string, boolean>;
145
- isRequestingMap: Map<string, boolean>;
146
- requestParamsMap: Map<string, Record<string, any>>;
147
- tableWidthMap: Map<string, number>;
148
- rowHeightMap: Map<string, IKgTableRowHeight>;
149
- onReadyListenersMap: Map<string, IKgTableReadyCb[]>;
150
- rowDoubleClickListenersMap: Map<string, IKgTableRowDoubleClickCb[]>;
151
- beforeRequestListenersMap: Map<string, IKgTableBeforeRequestCb[]>;
152
- beforeSetDatasListenersMap: Map<string, IKgTableBeforeSetDatasCb[]>;
153
- afterRequestListenersMap: Map<string, IKgTableAfterRequestCb[]>;
154
- } & import("pinia").PiniaCustomStateProperties<{
155
- /** 是否就绪: 配置初始完成, 组件渲染完成. */
156
- isReadyMap: Map<string, boolean>;
157
- /** 列表数据. */
158
- datasMap: Map<String, any[]>;
159
- /** 勾选的行的主键. */
160
- selectedRowKeysMap: Map<string, Ref<Key[]>>;
161
- /** 勾选的行. */
162
- selectedRowsMap: Map<string, any[]>;
163
- /**
164
- * <p>是否已经查询过一次了.</p>
165
- * <ul>
166
- * <li>如果表格禁用了自动查询, 当用户手动点击查询按钮后, 此属性会设置为 true,</li>
167
- * <li>如果表格启用了自动查询, 当第一次自动查询之后, 此属性会设置为 true,</li>
168
- * </ul>
169
- */
170
- isRequestedMap: Map<string, boolean>;
171
- /** 是否正在查询. */
172
- isRequestingMap: Map<string, boolean>;
173
- /**
174
- * <p>查询参数.</p>
175
- * <p>此查询参数是最终传给后端接口的参数, 包含了查询条件, 还包含了表格中的排序和分页, 还包含了表格配置中的参数.</p>
176
- */
177
- requestParamsMap: Map<string, Record<string, any>>;
178
- /** 表格宽度. */
179
- tableWidthMap: Map<string, number>;
180
- /** 行高. */
181
- rowHeightMap: Map<string, IKgTableRowHeight>;
182
- /** 事件监听函数列表: ready. */
183
- onReadyListenersMap: Map<string, IKgTableReadyCb[]>;
184
- /** '双击某行'事件监听函数列表. */
185
- rowDoubleClickListenersMap: Map<string, IKgTableRowDoubleClickCb[]>;
186
- beforeRequestListenersMap: Map<string, IKgTableBeforeRequestCb[]>;
187
- beforeSetDatasListenersMap: Map<string, IKgTableBeforeSetDatasCb[]>;
188
- afterRequestListenersMap: Map<string, IKgTableAfterRequestCb[]>;
189
- }>): <T = IKgTableRow>(formID: string | null | undefined) => T[];
190
- /** 当前勾选的行的主键. */
191
- getSelectedRowKeys(state: {
192
- isReadyMap: Map<string, boolean>;
193
- datasMap: Map<String, any[]>;
194
- selectedRowKeysMap: Map<string, Ref<Key[]>>;
195
- selectedRowsMap: Map<string, any[]>;
196
- isRequestedMap: Map<string, boolean>;
197
- isRequestingMap: Map<string, boolean>;
198
- requestParamsMap: Map<string, Record<string, any>>;
199
- tableWidthMap: Map<string, number>;
200
- rowHeightMap: Map<string, IKgTableRowHeight>;
201
- onReadyListenersMap: Map<string, IKgTableReadyCb[]>;
202
- rowDoubleClickListenersMap: Map<string, IKgTableRowDoubleClickCb[]>;
203
- beforeRequestListenersMap: Map<string, IKgTableBeforeRequestCb[]>;
204
- beforeSetDatasListenersMap: Map<string, IKgTableBeforeSetDatasCb[]>;
205
- afterRequestListenersMap: Map<string, IKgTableAfterRequestCb[]>;
206
- } & import("pinia").PiniaCustomStateProperties<{
207
- /** 是否就绪: 配置初始完成, 组件渲染完成. */
208
- isReadyMap: Map<string, boolean>;
209
- /** 列表数据. */
210
- datasMap: Map<String, any[]>;
211
- /** 勾选的行的主键. */
212
- selectedRowKeysMap: Map<string, Ref<Key[]>>;
213
- /** 勾选的行. */
214
- selectedRowsMap: Map<string, any[]>;
215
- /**
216
- * <p>是否已经查询过一次了.</p>
217
- * <ul>
218
- * <li>如果表格禁用了自动查询, 当用户手动点击查询按钮后, 此属性会设置为 true,</li>
219
- * <li>如果表格启用了自动查询, 当第一次自动查询之后, 此属性会设置为 true,</li>
220
- * </ul>
221
- */
222
- isRequestedMap: Map<string, boolean>;
223
- /** 是否正在查询. */
224
- isRequestingMap: Map<string, boolean>;
225
- /**
226
- * <p>查询参数.</p>
227
- * <p>此查询参数是最终传给后端接口的参数, 包含了查询条件, 还包含了表格中的排序和分页, 还包含了表格配置中的参数.</p>
228
- */
229
- requestParamsMap: Map<string, Record<string, any>>;
230
- /** 表格宽度. */
231
- tableWidthMap: Map<string, number>;
232
- /** 行高. */
233
- rowHeightMap: Map<string, IKgTableRowHeight>;
234
- /** 事件监听函数列表: ready. */
235
- onReadyListenersMap: Map<string, IKgTableReadyCb[]>;
236
- /** '双击某行'事件监听函数列表. */
237
- rowDoubleClickListenersMap: Map<string, IKgTableRowDoubleClickCb[]>;
238
- beforeRequestListenersMap: Map<string, IKgTableBeforeRequestCb[]>;
239
- beforeSetDatasListenersMap: Map<string, IKgTableBeforeSetDatasCb[]>;
240
- afterRequestListenersMap: Map<string, IKgTableAfterRequestCb[]>;
241
- }>): (formID: string | null | undefined) => Ref<Array<Key>>;
242
- /** 当前勾选的行. */
243
- getSelectedRows(state: {
244
- isReadyMap: Map<string, boolean>;
245
- datasMap: Map<String, any[]>;
246
- selectedRowKeysMap: Map<string, Ref<Key[]>>;
247
- selectedRowsMap: Map<string, any[]>;
248
- isRequestedMap: Map<string, boolean>;
249
- isRequestingMap: Map<string, boolean>;
250
- requestParamsMap: Map<string, Record<string, any>>;
251
- tableWidthMap: Map<string, number>;
252
- rowHeightMap: Map<string, IKgTableRowHeight>;
253
- onReadyListenersMap: Map<string, IKgTableReadyCb[]>;
254
- rowDoubleClickListenersMap: Map<string, IKgTableRowDoubleClickCb[]>;
255
- beforeRequestListenersMap: Map<string, IKgTableBeforeRequestCb[]>;
256
- beforeSetDatasListenersMap: Map<string, IKgTableBeforeSetDatasCb[]>;
257
- afterRequestListenersMap: Map<string, IKgTableAfterRequestCb[]>;
258
- } & import("pinia").PiniaCustomStateProperties<{
259
- /** 是否就绪: 配置初始完成, 组件渲染完成. */
260
- isReadyMap: Map<string, boolean>;
261
- /** 列表数据. */
262
- datasMap: Map<String, any[]>;
263
- /** 勾选的行的主键. */
264
- selectedRowKeysMap: Map<string, Ref<Key[]>>;
265
- /** 勾选的行. */
266
- selectedRowsMap: Map<string, any[]>;
267
- /**
268
- * <p>是否已经查询过一次了.</p>
269
- * <ul>
270
- * <li>如果表格禁用了自动查询, 当用户手动点击查询按钮后, 此属性会设置为 true,</li>
271
- * <li>如果表格启用了自动查询, 当第一次自动查询之后, 此属性会设置为 true,</li>
272
- * </ul>
273
- */
274
- isRequestedMap: Map<string, boolean>;
275
- /** 是否正在查询. */
276
- isRequestingMap: Map<string, boolean>;
277
- /**
278
- * <p>查询参数.</p>
279
- * <p>此查询参数是最终传给后端接口的参数, 包含了查询条件, 还包含了表格中的排序和分页, 还包含了表格配置中的参数.</p>
280
- */
281
- requestParamsMap: Map<string, Record<string, any>>;
282
- /** 表格宽度. */
283
- tableWidthMap: Map<string, number>;
284
- /** 行高. */
285
- rowHeightMap: Map<string, IKgTableRowHeight>;
286
- /** 事件监听函数列表: ready. */
287
- onReadyListenersMap: Map<string, IKgTableReadyCb[]>;
288
- /** '双击某行'事件监听函数列表. */
289
- rowDoubleClickListenersMap: Map<string, IKgTableRowDoubleClickCb[]>;
290
- beforeRequestListenersMap: Map<string, IKgTableBeforeRequestCb[]>;
291
- beforeSetDatasListenersMap: Map<string, IKgTableBeforeSetDatasCb[]>;
292
- afterRequestListenersMap: Map<string, IKgTableAfterRequestCb[]>;
293
- }>): (formID: string | null | undefined) => Array<IKgTableRow> | null;
294
- /** 当前勾选的第一行. */
295
- getSelectedFirstRow(state: {
296
- isReadyMap: Map<string, boolean>;
297
- datasMap: Map<String, any[]>;
298
- selectedRowKeysMap: Map<string, Ref<Key[]>>;
299
- selectedRowsMap: Map<string, any[]>;
300
- isRequestedMap: Map<string, boolean>;
301
- isRequestingMap: Map<string, boolean>;
302
- requestParamsMap: Map<string, Record<string, any>>;
303
- tableWidthMap: Map<string, number>;
304
- rowHeightMap: Map<string, IKgTableRowHeight>;
305
- onReadyListenersMap: Map<string, IKgTableReadyCb[]>;
306
- rowDoubleClickListenersMap: Map<string, IKgTableRowDoubleClickCb[]>;
307
- beforeRequestListenersMap: Map<string, IKgTableBeforeRequestCb[]>;
308
- beforeSetDatasListenersMap: Map<string, IKgTableBeforeSetDatasCb[]>;
309
- afterRequestListenersMap: Map<string, IKgTableAfterRequestCb[]>;
310
- } & import("pinia").PiniaCustomStateProperties<{
311
- /** 是否就绪: 配置初始完成, 组件渲染完成. */
312
- isReadyMap: Map<string, boolean>;
313
- /** 列表数据. */
314
- datasMap: Map<String, any[]>;
315
- /** 勾选的行的主键. */
316
- selectedRowKeysMap: Map<string, Ref<Key[]>>;
317
- /** 勾选的行. */
318
- selectedRowsMap: Map<string, any[]>;
319
- /**
320
- * <p>是否已经查询过一次了.</p>
321
- * <ul>
322
- * <li>如果表格禁用了自动查询, 当用户手动点击查询按钮后, 此属性会设置为 true,</li>
323
- * <li>如果表格启用了自动查询, 当第一次自动查询之后, 此属性会设置为 true,</li>
324
- * </ul>
325
- */
326
- isRequestedMap: Map<string, boolean>;
327
- /** 是否正在查询. */
328
- isRequestingMap: Map<string, boolean>;
329
- /**
330
- * <p>查询参数.</p>
331
- * <p>此查询参数是最终传给后端接口的参数, 包含了查询条件, 还包含了表格中的排序和分页, 还包含了表格配置中的参数.</p>
332
- */
333
- requestParamsMap: Map<string, Record<string, any>>;
334
- /** 表格宽度. */
335
- tableWidthMap: Map<string, number>;
336
- /** 行高. */
337
- rowHeightMap: Map<string, IKgTableRowHeight>;
338
- /** 事件监听函数列表: ready. */
339
- onReadyListenersMap: Map<string, IKgTableReadyCb[]>;
340
- /** '双击某行'事件监听函数列表. */
341
- rowDoubleClickListenersMap: Map<string, IKgTableRowDoubleClickCb[]>;
342
- beforeRequestListenersMap: Map<string, IKgTableBeforeRequestCb[]>;
343
- beforeSetDatasListenersMap: Map<string, IKgTableBeforeSetDatasCb[]>;
344
- afterRequestListenersMap: Map<string, IKgTableAfterRequestCb[]>;
345
- }>): (formID: string | null | undefined) => IKgTableRow | null;
346
- /** 当前勾选的唯一行. */
347
- getSelectedRow(state: {
348
- isReadyMap: Map<string, boolean>;
349
- datasMap: Map<String, any[]>;
350
- selectedRowKeysMap: Map<string, Ref<Key[]>>;
351
- selectedRowsMap: Map<string, any[]>;
352
- isRequestedMap: Map<string, boolean>;
353
- isRequestingMap: Map<string, boolean>;
354
- requestParamsMap: Map<string, Record<string, any>>;
355
- tableWidthMap: Map<string, number>;
356
- rowHeightMap: Map<string, IKgTableRowHeight>;
357
- onReadyListenersMap: Map<string, IKgTableReadyCb[]>;
358
- rowDoubleClickListenersMap: Map<string, IKgTableRowDoubleClickCb[]>;
359
- beforeRequestListenersMap: Map<string, IKgTableBeforeRequestCb[]>;
360
- beforeSetDatasListenersMap: Map<string, IKgTableBeforeSetDatasCb[]>;
361
- afterRequestListenersMap: Map<string, IKgTableAfterRequestCb[]>;
362
- } & import("pinia").PiniaCustomStateProperties<{
363
- /** 是否就绪: 配置初始完成, 组件渲染完成. */
364
- isReadyMap: Map<string, boolean>;
365
- /** 列表数据. */
366
- datasMap: Map<String, any[]>;
367
- /** 勾选的行的主键. */
368
- selectedRowKeysMap: Map<string, Ref<Key[]>>;
369
- /** 勾选的行. */
370
- selectedRowsMap: Map<string, any[]>;
371
- /**
372
- * <p>是否已经查询过一次了.</p>
373
- * <ul>
374
- * <li>如果表格禁用了自动查询, 当用户手动点击查询按钮后, 此属性会设置为 true,</li>
375
- * <li>如果表格启用了自动查询, 当第一次自动查询之后, 此属性会设置为 true,</li>
376
- * </ul>
377
- */
378
- isRequestedMap: Map<string, boolean>;
379
- /** 是否正在查询. */
380
- isRequestingMap: Map<string, boolean>;
381
- /**
382
- * <p>查询参数.</p>
383
- * <p>此查询参数是最终传给后端接口的参数, 包含了查询条件, 还包含了表格中的排序和分页, 还包含了表格配置中的参数.</p>
384
- */
385
- requestParamsMap: Map<string, Record<string, any>>;
386
- /** 表格宽度. */
387
- tableWidthMap: Map<string, number>;
388
- /** 行高. */
389
- rowHeightMap: Map<string, IKgTableRowHeight>;
390
- /** 事件监听函数列表: ready. */
391
- onReadyListenersMap: Map<string, IKgTableReadyCb[]>;
392
- /** '双击某行'事件监听函数列表. */
393
- rowDoubleClickListenersMap: Map<string, IKgTableRowDoubleClickCb[]>;
394
- beforeRequestListenersMap: Map<string, IKgTableBeforeRequestCb[]>;
395
- beforeSetDatasListenersMap: Map<string, IKgTableBeforeSetDatasCb[]>;
396
- afterRequestListenersMap: Map<string, IKgTableAfterRequestCb[]>;
397
- }>): (formID: string | null | undefined) => IKgTableRow | null;
104
+ getDatas(): <T = IKgTableRow>(formID: string | null | undefined) => Array<T>;
105
+ /** 是否就绪. */
106
+ getIsReady(): (formID: string | null | undefined) => boolean;
398
107
  /**
399
108
  * 根据 formID 获取是否已经查询过一次了.
400
109
  */
401
- getIsRequested(state: {
402
- isReadyMap: Map<string, boolean>;
403
- datasMap: Map<String, any[]>;
404
- selectedRowKeysMap: Map<string, Ref<Key[]>>;
405
- selectedRowsMap: Map<string, any[]>;
406
- isRequestedMap: Map<string, boolean>;
407
- isRequestingMap: Map<string, boolean>;
408
- requestParamsMap: Map<string, Record<string, any>>;
409
- tableWidthMap: Map<string, number>;
410
- rowHeightMap: Map<string, IKgTableRowHeight>;
411
- onReadyListenersMap: Map<string, IKgTableReadyCb[]>;
412
- rowDoubleClickListenersMap: Map<string, IKgTableRowDoubleClickCb[]>;
413
- beforeRequestListenersMap: Map<string, IKgTableBeforeRequestCb[]>;
414
- beforeSetDatasListenersMap: Map<string, IKgTableBeforeSetDatasCb[]>;
415
- afterRequestListenersMap: Map<string, IKgTableAfterRequestCb[]>;
416
- } & import("pinia").PiniaCustomStateProperties<{
417
- /** 是否就绪: 配置初始完成, 组件渲染完成. */
418
- isReadyMap: Map<string, boolean>;
419
- /** 列表数据. */
420
- datasMap: Map<String, any[]>;
421
- /** 勾选的行的主键. */
422
- selectedRowKeysMap: Map<string, Ref<Key[]>>;
423
- /** 勾选的行. */
424
- selectedRowsMap: Map<string, any[]>;
425
- /**
426
- * <p>是否已经查询过一次了.</p>
427
- * <ul>
428
- * <li>如果表格禁用了自动查询, 当用户手动点击查询按钮后, 此属性会设置为 true,</li>
429
- * <li>如果表格启用了自动查询, 当第一次自动查询之后, 此属性会设置为 true,</li>
430
- * </ul>
431
- */
432
- isRequestedMap: Map<string, boolean>;
433
- /** 是否正在查询. */
434
- isRequestingMap: Map<string, boolean>;
435
- /**
436
- * <p>查询参数.</p>
437
- * <p>此查询参数是最终传给后端接口的参数, 包含了查询条件, 还包含了表格中的排序和分页, 还包含了表格配置中的参数.</p>
438
- */
439
- requestParamsMap: Map<string, Record<string, any>>;
440
- /** 表格宽度. */
441
- tableWidthMap: Map<string, number>;
442
- /** 行高. */
443
- rowHeightMap: Map<string, IKgTableRowHeight>;
444
- /** 事件监听函数列表: ready. */
445
- onReadyListenersMap: Map<string, IKgTableReadyCb[]>;
446
- /** '双击某行'事件监听函数列表. */
447
- rowDoubleClickListenersMap: Map<string, IKgTableRowDoubleClickCb[]>;
448
- beforeRequestListenersMap: Map<string, IKgTableBeforeRequestCb[]>;
449
- beforeSetDatasListenersMap: Map<string, IKgTableBeforeSetDatasCb[]>;
450
- afterRequestListenersMap: Map<string, IKgTableAfterRequestCb[]>;
451
- }>): (formID: string | null | undefined) => boolean;
110
+ getIsRequested(): (formID: string | null | undefined) => boolean;
452
111
  /**
453
112
  * 根据 formID 获取是否正在查询.
454
- * @param state
455
113
  */
456
- getIsRequesting(state: {
457
- isReadyMap: Map<string, boolean>;
458
- datasMap: Map<String, any[]>;
459
- selectedRowKeysMap: Map<string, Ref<Key[]>>;
460
- selectedRowsMap: Map<string, any[]>;
461
- isRequestedMap: Map<string, boolean>;
462
- isRequestingMap: Map<string, boolean>;
463
- requestParamsMap: Map<string, Record<string, any>>;
464
- tableWidthMap: Map<string, number>;
465
- rowHeightMap: Map<string, IKgTableRowHeight>;
466
- onReadyListenersMap: Map<string, IKgTableReadyCb[]>;
467
- rowDoubleClickListenersMap: Map<string, IKgTableRowDoubleClickCb[]>;
468
- beforeRequestListenersMap: Map<string, IKgTableBeforeRequestCb[]>;
469
- beforeSetDatasListenersMap: Map<string, IKgTableBeforeSetDatasCb[]>;
470
- afterRequestListenersMap: Map<string, IKgTableAfterRequestCb[]>;
471
- } & import("pinia").PiniaCustomStateProperties<{
472
- /** 是否就绪: 配置初始完成, 组件渲染完成. */
473
- isReadyMap: Map<string, boolean>;
474
- /** 列表数据. */
475
- datasMap: Map<String, any[]>;
476
- /** 勾选的行的主键. */
477
- selectedRowKeysMap: Map<string, Ref<Key[]>>;
478
- /** 勾选的行. */
479
- selectedRowsMap: Map<string, any[]>;
480
- /**
481
- * <p>是否已经查询过一次了.</p>
482
- * <ul>
483
- * <li>如果表格禁用了自动查询, 当用户手动点击查询按钮后, 此属性会设置为 true,</li>
484
- * <li>如果表格启用了自动查询, 当第一次自动查询之后, 此属性会设置为 true,</li>
485
- * </ul>
486
- */
487
- isRequestedMap: Map<string, boolean>;
488
- /** 是否正在查询. */
489
- isRequestingMap: Map<string, boolean>;
490
- /**
491
- * <p>查询参数.</p>
492
- * <p>此查询参数是最终传给后端接口的参数, 包含了查询条件, 还包含了表格中的排序和分页, 还包含了表格配置中的参数.</p>
493
- */
494
- requestParamsMap: Map<string, Record<string, any>>;
495
- /** 表格宽度. */
496
- tableWidthMap: Map<string, number>;
497
- /** 行高. */
498
- rowHeightMap: Map<string, IKgTableRowHeight>;
499
- /** 事件监听函数列表: ready. */
500
- onReadyListenersMap: Map<string, IKgTableReadyCb[]>;
501
- /** '双击某行'事件监听函数列表. */
502
- rowDoubleClickListenersMap: Map<string, IKgTableRowDoubleClickCb[]>;
503
- beforeRequestListenersMap: Map<string, IKgTableBeforeRequestCb[]>;
504
- beforeSetDatasListenersMap: Map<string, IKgTableBeforeSetDatasCb[]>;
505
- afterRequestListenersMap: Map<string, IKgTableAfterRequestCb[]>;
506
- }>): (formID: string | null | undefined) => boolean | null;
114
+ getIsRequesting(): (formID: string | null | undefined) => boolean | null;
115
+ getIsShowDescription(): (formID: string | null | undefined) => boolean;
507
116
  /**
508
117
  * 根据 formID 获取查询参数.
509
- * @param state
510
118
  */
511
- getRequestParams(state: {
512
- isReadyMap: Map<string, boolean>;
513
- datasMap: Map<String, any[]>;
514
- selectedRowKeysMap: Map<string, Ref<Key[]>>;
515
- selectedRowsMap: Map<string, any[]>;
516
- isRequestedMap: Map<string, boolean>;
517
- isRequestingMap: Map<string, boolean>;
518
- requestParamsMap: Map<string, Record<string, any>>;
519
- tableWidthMap: Map<string, number>;
520
- rowHeightMap: Map<string, IKgTableRowHeight>;
521
- onReadyListenersMap: Map<string, IKgTableReadyCb[]>;
522
- rowDoubleClickListenersMap: Map<string, IKgTableRowDoubleClickCb[]>;
523
- beforeRequestListenersMap: Map<string, IKgTableBeforeRequestCb[]>;
524
- beforeSetDatasListenersMap: Map<string, IKgTableBeforeSetDatasCb[]>;
525
- afterRequestListenersMap: Map<string, IKgTableAfterRequestCb[]>;
526
- } & import("pinia").PiniaCustomStateProperties<{
527
- /** 是否就绪: 配置初始完成, 组件渲染完成. */
528
- isReadyMap: Map<string, boolean>;
529
- /** 列表数据. */
530
- datasMap: Map<String, any[]>;
531
- /** 勾选的行的主键. */
532
- selectedRowKeysMap: Map<string, Ref<Key[]>>;
533
- /** 勾选的行. */
534
- selectedRowsMap: Map<string, any[]>;
535
- /**
536
- * <p>是否已经查询过一次了.</p>
537
- * <ul>
538
- * <li>如果表格禁用了自动查询, 当用户手动点击查询按钮后, 此属性会设置为 true,</li>
539
- * <li>如果表格启用了自动查询, 当第一次自动查询之后, 此属性会设置为 true,</li>
540
- * </ul>
541
- */
542
- isRequestedMap: Map<string, boolean>;
543
- /** 是否正在查询. */
544
- isRequestingMap: Map<string, boolean>;
545
- /**
546
- * <p>查询参数.</p>
547
- * <p>此查询参数是最终传给后端接口的参数, 包含了查询条件, 还包含了表格中的排序和分页, 还包含了表格配置中的参数.</p>
548
- */
549
- requestParamsMap: Map<string, Record<string, any>>;
550
- /** 表格宽度. */
551
- tableWidthMap: Map<string, number>;
552
- /** 行高. */
553
- rowHeightMap: Map<string, IKgTableRowHeight>;
554
- /** 事件监听函数列表: ready. */
555
- onReadyListenersMap: Map<string, IKgTableReadyCb[]>;
556
- /** '双击某行'事件监听函数列表. */
557
- rowDoubleClickListenersMap: Map<string, IKgTableRowDoubleClickCb[]>;
558
- beforeRequestListenersMap: Map<string, IKgTableBeforeRequestCb[]>;
559
- beforeSetDatasListenersMap: Map<string, IKgTableBeforeSetDatasCb[]>;
560
- afterRequestListenersMap: Map<string, IKgTableAfterRequestCb[]>;
561
- }>): (formID: string | null | undefined) => Record<string, any>;
119
+ getRequestParams(): (formID: string | null | undefined) => Record<string, any>;
120
+ getRowHeight(): (formID: string | null | undefined) => IKgTableRowHeight;
121
+ /** 当前勾选的第一行. */
122
+ getSelectedFirstRow(): (formID: string | null | undefined) => IKgTableRow | null;
123
+ /** 当前勾选的唯一行. */
124
+ getSelectedRow(): (formID: string | null | undefined) => IKgTableRow | null;
125
+ /** 当前勾选的行的主键. */
126
+ getSelectedRowKeys(): (formID: string | null | undefined) => Ref<Array<Key>>;
127
+ /** 当前勾选的行. */
128
+ getSelectedRows(): (formID: string | null | undefined) => Array<IKgTableRow> | null;
562
129
  /**
563
130
  * 根据 formID 获取表格宽度.
564
- * @param state
565
- */
566
- getTableWidth(state: {
567
- isReadyMap: Map<string, boolean>;
568
- datasMap: Map<String, any[]>;
569
- selectedRowKeysMap: Map<string, Ref<Key[]>>;
570
- selectedRowsMap: Map<string, any[]>;
571
- isRequestedMap: Map<string, boolean>;
572
- isRequestingMap: Map<string, boolean>;
573
- requestParamsMap: Map<string, Record<string, any>>;
574
- tableWidthMap: Map<string, number>;
575
- rowHeightMap: Map<string, IKgTableRowHeight>;
576
- onReadyListenersMap: Map<string, IKgTableReadyCb[]>;
577
- rowDoubleClickListenersMap: Map<string, IKgTableRowDoubleClickCb[]>;
578
- beforeRequestListenersMap: Map<string, IKgTableBeforeRequestCb[]>;
579
- beforeSetDatasListenersMap: Map<string, IKgTableBeforeSetDatasCb[]>;
580
- afterRequestListenersMap: Map<string, IKgTableAfterRequestCb[]>;
581
- } & import("pinia").PiniaCustomStateProperties<{
582
- /** 是否就绪: 配置初始完成, 组件渲染完成. */
583
- isReadyMap: Map<string, boolean>;
584
- /** 列表数据. */
585
- datasMap: Map<String, any[]>;
586
- /** 勾选的行的主键. */
587
- selectedRowKeysMap: Map<string, Ref<Key[]>>;
588
- /** 勾选的行. */
589
- selectedRowsMap: Map<string, any[]>;
590
- /**
591
- * <p>是否已经查询过一次了.</p>
592
- * <ul>
593
- * <li>如果表格禁用了自动查询, 当用户手动点击查询按钮后, 此属性会设置为 true,</li>
594
- * <li>如果表格启用了自动查询, 当第一次自动查询之后, 此属性会设置为 true,</li>
595
- * </ul>
596
- */
597
- isRequestedMap: Map<string, boolean>;
598
- /** 是否正在查询. */
599
- isRequestingMap: Map<string, boolean>;
600
- /**
601
- * <p>查询参数.</p>
602
- * <p>此查询参数是最终传给后端接口的参数, 包含了查询条件, 还包含了表格中的排序和分页, 还包含了表格配置中的参数.</p>
603
- */
604
- requestParamsMap: Map<string, Record<string, any>>;
605
- /** 表格宽度. */
606
- tableWidthMap: Map<string, number>;
607
- /** 行高. */
608
- rowHeightMap: Map<string, IKgTableRowHeight>;
609
- /** 事件监听函数列表: ready. */
610
- onReadyListenersMap: Map<string, IKgTableReadyCb[]>;
611
- /** '双击某行'事件监听函数列表. */
612
- rowDoubleClickListenersMap: Map<string, IKgTableRowDoubleClickCb[]>;
613
- beforeRequestListenersMap: Map<string, IKgTableBeforeRequestCb[]>;
614
- beforeSetDatasListenersMap: Map<string, IKgTableBeforeSetDatasCb[]>;
615
- afterRequestListenersMap: Map<string, IKgTableAfterRequestCb[]>;
616
- }>): (formID: string | null | undefined) => number | null;
617
- getRowHeight(state: {
618
- isReadyMap: Map<string, boolean>;
619
- datasMap: Map<String, any[]>;
620
- selectedRowKeysMap: Map<string, Ref<Key[]>>;
621
- selectedRowsMap: Map<string, any[]>;
622
- isRequestedMap: Map<string, boolean>;
623
- isRequestingMap: Map<string, boolean>;
624
- requestParamsMap: Map<string, Record<string, any>>;
625
- tableWidthMap: Map<string, number>;
626
- rowHeightMap: Map<string, IKgTableRowHeight>;
627
- onReadyListenersMap: Map<string, IKgTableReadyCb[]>;
628
- rowDoubleClickListenersMap: Map<string, IKgTableRowDoubleClickCb[]>;
629
- beforeRequestListenersMap: Map<string, IKgTableBeforeRequestCb[]>;
630
- beforeSetDatasListenersMap: Map<string, IKgTableBeforeSetDatasCb[]>;
631
- afterRequestListenersMap: Map<string, IKgTableAfterRequestCb[]>;
632
- } & import("pinia").PiniaCustomStateProperties<{
633
- /** 是否就绪: 配置初始完成, 组件渲染完成. */
634
- isReadyMap: Map<string, boolean>;
635
- /** 列表数据. */
636
- datasMap: Map<String, any[]>;
637
- /** 勾选的行的主键. */
638
- selectedRowKeysMap: Map<string, Ref<Key[]>>;
639
- /** 勾选的行. */
640
- selectedRowsMap: Map<string, any[]>;
641
- /**
642
- * <p>是否已经查询过一次了.</p>
643
- * <ul>
644
- * <li>如果表格禁用了自动查询, 当用户手动点击查询按钮后, 此属性会设置为 true,</li>
645
- * <li>如果表格启用了自动查询, 当第一次自动查询之后, 此属性会设置为 true,</li>
646
- * </ul>
647
- */
648
- isRequestedMap: Map<string, boolean>;
649
- /** 是否正在查询. */
650
- isRequestingMap: Map<string, boolean>;
651
- /**
652
- * <p>查询参数.</p>
653
- * <p>此查询参数是最终传给后端接口的参数, 包含了查询条件, 还包含了表格中的排序和分页, 还包含了表格配置中的参数.</p>
654
- */
655
- requestParamsMap: Map<string, Record<string, any>>;
656
- /** 表格宽度. */
657
- tableWidthMap: Map<string, number>;
658
- /** 行高. */
659
- rowHeightMap: Map<string, IKgTableRowHeight>;
660
- /** 事件监听函数列表: ready. */
661
- onReadyListenersMap: Map<string, IKgTableReadyCb[]>;
662
- /** '双击某行'事件监听函数列表. */
663
- rowDoubleClickListenersMap: Map<string, IKgTableRowDoubleClickCb[]>;
664
- beforeRequestListenersMap: Map<string, IKgTableBeforeRequestCb[]>;
665
- beforeSetDatasListenersMap: Map<string, IKgTableBeforeSetDatasCb[]>;
666
- afterRequestListenersMap: Map<string, IKgTableAfterRequestCb[]>;
667
- }>): (formID: string | null | undefined) => IKgTableRowHeight;
668
- }, {
669
- /**
670
- * 清理数据.
671
- * @param formID 页面标识.
672
131
  */
673
- dispose(formID: string | null | undefined): null | undefined;
132
+ getTableWidth(): (formID: string | null | undefined) => number | null;
133
+ }
134
+ export interface IUseKgTableStoreActions {
674
135
  /**
675
136
  * 注册事件监听.
676
137
  * @param formID 界面标识.
677
138
  * @param event 事件名称.
678
139
  * @param cb 回调函数.
679
140
  */
680
- addEventListener(formID: string | null | undefined, event: IKgTableEvent, cb: IKgTableCb): void;
141
+ addEventListener(formID: string | null | undefined, event: IKgTableEvent, cb: IKgTableEventListener): void;
681
142
  /**
682
- * 退订事件监听.
143
+ * 修改「表格配置」的部分属性.
144
+ *
683
145
  * @param formID 界面标识.
684
- * @param event 事件名称.
685
- * @param cb 回调函数.
146
+ * @param param 其他参数.
147
+ * @param param.properties 要修改的部分属性.
686
148
  */
687
- removeEventListener(formID: string | null | undefined, event: IKgTableEvent, cb?: IKgTableCb): void;
149
+ patchVarGridConfig(formID: string, param: {
150
+ properties: VarGridConfig;
151
+ }): Promise<void>;
152
+ /**
153
+ * 清空表格数据.
154
+ * @param formID 界面标识.
155
+ */
156
+ clearDatas(formID: string | null | undefined): void;
157
+ /**
158
+ * 清理数据.
159
+ * @param formID 页面标识.
160
+ */
161
+ dispose(formID: string | null | undefined): void;
688
162
  /**
689
163
  * 触发事件.
690
164
  * @param formID 界面标识.
691
165
  * @param event 事件名称.
692
166
  * @param param 数据.
693
167
  */
694
- emit<T_1 = IKgTableCbParam>(formID: string | null | undefined, event: IKgTableEvent, param: T_1): Promise<boolean>;
168
+ emit<T = IKgTableEventListenerParameter>(formID: string | null | undefined, event: IKgTableEvent, param: T): Promise<boolean>;
695
169
  /**
696
- * 设置是否就绪.
170
+ * 刷新勾选的行. 表格列表数据变更之后, 需要同步到勾选的行.
171
+ * @param frmId 界面标识.
172
+ */
173
+ refreshSelectedRows(frmId: string | null | undefined): void;
174
+ /**
175
+ * 退订事件监听.
697
176
  * @param formID 界面标识.
698
- * @param ready 是否就绪.
177
+ * @param event 事件名称.
178
+ * @param cb 回调函数.
699
179
  */
700
- setIsReady(formID: string | null | undefined, ready?: boolean): void;
180
+ removeEventListener(formID: string | null | undefined, event: IKgTableEvent, cb?: IKgTableEventListener): void;
701
181
  /**
702
182
  * 设置列表数据.
703
183
  * @param param.frmId 界面标识.
704
184
  * @param param.datas 列表数据.
705
185
  * @param param.isPreserveSelectedRows 是否保留行的勾选状态. 默认为 false.
706
186
  */
707
- setDatas<T_2 = any>(param: {
187
+ setDatas(param: {
708
188
  frmId: string | null | undefined;
709
- datas: T_2[];
710
- isPreserveSelectedRows?: boolean | undefined;
189
+ datas: Array<any>;
190
+ isPreserveSelectedRows?: boolean;
711
191
  }): void;
712
192
  /**
713
- * 设置勾选的行.
714
- * @param frmId 界面标识.
715
- * @param selectedRows 勾选的行.
716
- */
717
- setSelectedRows(frmId: string | null | undefined, selectedRows: Array<IKgTableRow>): void;
718
- /**
719
- * 刷新勾选的行. 表格列表数据变更之后, 需要同步到勾选的行.
720
- * @param frmId 界面标识.
193
+ * 设置是否就绪.
194
+ * @param formID 界面标识.
195
+ * @param ready 是否就绪.
721
196
  */
722
- refreshSelectedRows(frmId: string | null | undefined): void;
197
+ setIsReady(formID: string | null | undefined, ready?: boolean): void;
198
+ setIsRequested(frmId: string | null | undefined, value: boolean): void;
199
+ setIsRequesting(formID: string | null | undefined, value: boolean): void;
200
+ setIsShowDescription(formID: string | null | undefined, value: boolean): void;
201
+ setRequestParams(formID: string | null | undefined, requestParams: Record<string, any> | null | undefined): void;
202
+ setRowHeight(formID: string | null | undefined, value: IKgTableRowHeight): void;
723
203
  /**
724
204
  * 设置某行的勾选状态.
725
205
  * @param frmId 界面标识.
@@ -727,14 +207,14 @@ export declare const useKgTableStore: import("pinia").StoreDefinition<"KgTable",
727
207
  * @param isSelected 是否勾选.
728
208
  */
729
209
  setRowSelect(frmId: string | null | undefined, row: IKgTableRow, isSelected: boolean): void;
730
- setIsRequested(frmId: string | null | undefined, value: boolean): void;
731
- setIsRequesting(formID: string | null | undefined, value: boolean): void;
732
- setRequestParams(formID: string | null | undefined, requestParams: Record<string, any> | null | undefined): void;
733
- setTableWidth(formID: string | null | undefined, value: number): void;
734
- setRowHeight(formID: string | null | undefined, value: IKgTableRowHeight): void;
735
210
  /**
736
- * 清空表格数据.
737
- * @param formID 界面标识.
211
+ * 设置勾选的行.
212
+ * @param frmId 界面标识.
213
+ * @param selectedRows 勾选的行.
738
214
  */
739
- clearDatas(formID: string | null | undefined): void;
740
- }>;
215
+ setSelectedRows(frmId: string | null | undefined, selectedRows: Array<IKgTableRow>): void;
216
+ setTableWidth(formID: string | null | undefined, value: number): void;
217
+ }
218
+ export declare type IUseKgTableStore = StoreDefinition<'KgTable', IUseKgTableStoreState, IUseKgTableStoreGetters, IUseKgTableStoreActions>;
219
+ export declare type IKgTableStore = ReturnType<IUseKgTableStore>;
220
+ export declare const useKgTableStore: IUseKgTableStore;