@kengic/vue 0.19.1 → 0.19.2-beta.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,89 +1,524 @@
1
- import { ComputedRef, Ref } from 'vue';
2
- import { IRemoveEventListenerHandler } from '../../consts';
3
- import { IKgTableAfterRequestCb, IKgTableBeforeRequestCb, IKgTableBeforeSetDatasCb, IKgTableReadyCb, IKgTableRowDoubleClickCb, useKgTableStore } from './index.store';
4
- export declare type IUseKgTable = {
1
+ import { IKgTableAfterRequestCb, IKgTableBeforeRequestCb, IKgTableBeforeSetDatasCb, IKgTableEvent, IKgTableReadyCb, IKgTableRowDoubleClickCb } from './index.store';
2
+ /**
3
+ * @param formID 界面标识.
4
+ */
5
+ export declare function useKgTable(formID?: string | null): {
6
+ /** 界面标识ss. */
5
7
  formID: string;
6
8
  /** 状态数据. */
7
- store: ReturnType<typeof useKgTableStore>;
9
+ store: import("pinia").Store<"KgTable", {
10
+ isReadyMap: Map<string, boolean>;
11
+ /** 当前勾选的第一行. */
12
+ datasMap: Map<String, any[]>;
13
+ selectedRowKeysMap: Map<string, import("vue").Ref<import("ant-design-vue/lib/_util/type").Key[]>>;
14
+ selectedRowsMap: Map<string, any[]>;
15
+ isRequestedMap: Map<string, boolean>;
16
+ isRequestingMap: Map<string, boolean>; /**
17
+ * 事件: ready, 配置初始完成, 组件渲染完成.
18
+ * @param cb 回调函数.
19
+ * @param once 是否只会触发一次. 默认为 undefined.
20
+ */
21
+ requestParamsMap: Map<string, Record<string, any>>;
22
+ tableWidthMap: Map<string, number>;
23
+ rowHeightMap: Map<string, import("./index.vm").IKgTableRowHeight>;
24
+ onReadyListenersMap: Map<string, IKgTableReadyCb[]>;
25
+ rowDoubleClickListenersMap: Map<string, IKgTableRowDoubleClickCb[]>;
26
+ beforeRequestListenersMap: Map<string, IKgTableBeforeRequestCb[]>;
27
+ beforeSetDatasListenersMap: Map<string, IKgTableBeforeSetDatasCb[]>;
28
+ afterRequestListenersMap: Map<string, IKgTableAfterRequestCb[]>;
29
+ }, {
30
+ getIsReady(state: {
31
+ isReadyMap: Map<string, boolean>;
32
+ datasMap: Map<String, any[]>;
33
+ selectedRowKeysMap: Map<string, import("vue").Ref<import("ant-design-vue/lib/_util/type").Key[]>>;
34
+ selectedRowsMap: Map<string, any[]>;
35
+ isRequestedMap: Map<string, boolean>;
36
+ isRequestingMap: Map<string, boolean>;
37
+ requestParamsMap: Map<string, Record<string, any>>;
38
+ tableWidthMap: Map<string, number>;
39
+ rowHeightMap: Map<string, import("./index.vm").IKgTableRowHeight>;
40
+ onReadyListenersMap: Map<string, IKgTableReadyCb[]>;
41
+ rowDoubleClickListenersMap: Map<string, IKgTableRowDoubleClickCb[]>;
42
+ beforeRequestListenersMap: Map<string, IKgTableBeforeRequestCb[]>;
43
+ beforeSetDatasListenersMap: Map<string, IKgTableBeforeSetDatasCb[]>;
44
+ afterRequestListenersMap: Map<string, IKgTableAfterRequestCb[]>;
45
+ } & import("pinia").PiniaCustomStateProperties<{
46
+ isReadyMap: Map<string, boolean>;
47
+ /** 当前勾选的第一行. */
48
+ datasMap: Map<String, any[]>;
49
+ selectedRowKeysMap: Map<string, import("vue").Ref<import("ant-design-vue/lib/_util/type").Key[]>>;
50
+ selectedRowsMap: Map<string, any[]>;
51
+ isRequestedMap: Map<string, boolean>;
52
+ isRequestingMap: Map<string, boolean>; /**
53
+ * 事件: ready, 配置初始完成, 组件渲染完成.
54
+ * @param cb 回调函数.
55
+ * @param once 是否只会触发一次. 默认为 undefined.
56
+ */
57
+ requestParamsMap: Map<string, Record<string, any>>;
58
+ tableWidthMap: Map<string, number>;
59
+ rowHeightMap: Map<string, import("./index.vm").IKgTableRowHeight>;
60
+ onReadyListenersMap: Map<string, IKgTableReadyCb[]>;
61
+ rowDoubleClickListenersMap: Map<string, IKgTableRowDoubleClickCb[]>;
62
+ beforeRequestListenersMap: Map<string, IKgTableBeforeRequestCb[]>;
63
+ beforeSetDatasListenersMap: Map<string, IKgTableBeforeSetDatasCb[]>;
64
+ afterRequestListenersMap: Map<string, IKgTableAfterRequestCb[]>;
65
+ }>): (formID: string | null | undefined) => boolean;
66
+ getDatas(state: {
67
+ isReadyMap: Map<string, boolean>;
68
+ datasMap: Map<String, any[]>;
69
+ selectedRowKeysMap: Map<string, import("vue").Ref<import("ant-design-vue/lib/_util/type").Key[]>>;
70
+ selectedRowsMap: Map<string, any[]>;
71
+ isRequestedMap: Map<string, boolean>;
72
+ isRequestingMap: Map<string, boolean>;
73
+ requestParamsMap: Map<string, Record<string, any>>;
74
+ tableWidthMap: Map<string, number>;
75
+ rowHeightMap: Map<string, import("./index.vm").IKgTableRowHeight>;
76
+ onReadyListenersMap: Map<string, IKgTableReadyCb[]>;
77
+ rowDoubleClickListenersMap: Map<string, IKgTableRowDoubleClickCb[]>;
78
+ beforeRequestListenersMap: Map<string, IKgTableBeforeRequestCb[]>;
79
+ beforeSetDatasListenersMap: Map<string, IKgTableBeforeSetDatasCb[]>;
80
+ afterRequestListenersMap: Map<string, IKgTableAfterRequestCb[]>;
81
+ } & import("pinia").PiniaCustomStateProperties<{
82
+ isReadyMap: Map<string, boolean>;
83
+ /** 当前勾选的第一行. */
84
+ datasMap: Map<String, any[]>;
85
+ selectedRowKeysMap: Map<string, import("vue").Ref<import("ant-design-vue/lib/_util/type").Key[]>>;
86
+ selectedRowsMap: Map<string, any[]>;
87
+ isRequestedMap: Map<string, boolean>;
88
+ isRequestingMap: Map<string, boolean>; /**
89
+ * 事件: ready, 配置初始完成, 组件渲染完成.
90
+ * @param cb 回调函数.
91
+ * @param once 是否只会触发一次. 默认为 undefined.
92
+ */
93
+ requestParamsMap: Map<string, Record<string, any>>;
94
+ tableWidthMap: Map<string, number>;
95
+ rowHeightMap: Map<string, import("./index.vm").IKgTableRowHeight>;
96
+ onReadyListenersMap: Map<string, IKgTableReadyCb[]>;
97
+ rowDoubleClickListenersMap: Map<string, IKgTableRowDoubleClickCb[]>;
98
+ beforeRequestListenersMap: Map<string, IKgTableBeforeRequestCb[]>;
99
+ beforeSetDatasListenersMap: Map<string, IKgTableBeforeSetDatasCb[]>;
100
+ afterRequestListenersMap: Map<string, IKgTableAfterRequestCb[]>;
101
+ }>): <T = import("./index.vm").IKgTableRow>(formID: string | null | undefined) => T[];
102
+ getSelectedRowKeys(state: {
103
+ isReadyMap: Map<string, boolean>;
104
+ datasMap: Map<String, any[]>;
105
+ selectedRowKeysMap: Map<string, import("vue").Ref<import("ant-design-vue/lib/_util/type").Key[]>>;
106
+ selectedRowsMap: Map<string, any[]>;
107
+ isRequestedMap: Map<string, boolean>;
108
+ isRequestingMap: Map<string, boolean>;
109
+ requestParamsMap: Map<string, Record<string, any>>;
110
+ tableWidthMap: Map<string, number>;
111
+ rowHeightMap: Map<string, import("./index.vm").IKgTableRowHeight>;
112
+ onReadyListenersMap: Map<string, IKgTableReadyCb[]>;
113
+ rowDoubleClickListenersMap: Map<string, IKgTableRowDoubleClickCb[]>;
114
+ beforeRequestListenersMap: Map<string, IKgTableBeforeRequestCb[]>;
115
+ beforeSetDatasListenersMap: Map<string, IKgTableBeforeSetDatasCb[]>;
116
+ afterRequestListenersMap: Map<string, IKgTableAfterRequestCb[]>;
117
+ } & import("pinia").PiniaCustomStateProperties<{
118
+ isReadyMap: Map<string, boolean>;
119
+ /** 当前勾选的第一行. */
120
+ datasMap: Map<String, any[]>;
121
+ selectedRowKeysMap: Map<string, import("vue").Ref<import("ant-design-vue/lib/_util/type").Key[]>>;
122
+ selectedRowsMap: Map<string, any[]>;
123
+ isRequestedMap: Map<string, boolean>;
124
+ isRequestingMap: Map<string, boolean>; /**
125
+ * 事件: ready, 配置初始完成, 组件渲染完成.
126
+ * @param cb 回调函数.
127
+ * @param once 是否只会触发一次. 默认为 undefined.
128
+ */
129
+ requestParamsMap: Map<string, Record<string, any>>;
130
+ tableWidthMap: Map<string, number>;
131
+ rowHeightMap: Map<string, import("./index.vm").IKgTableRowHeight>;
132
+ onReadyListenersMap: Map<string, IKgTableReadyCb[]>;
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) => import("vue").Ref<import("ant-design-vue/lib/_util/type").Key[]>;
138
+ getSelectedRows(state: {
139
+ isReadyMap: Map<string, boolean>;
140
+ datasMap: Map<String, any[]>;
141
+ selectedRowKeysMap: Map<string, import("vue").Ref<import("ant-design-vue/lib/_util/type").Key[]>>;
142
+ selectedRowsMap: Map<string, any[]>;
143
+ isRequestedMap: Map<string, boolean>;
144
+ isRequestingMap: Map<string, boolean>;
145
+ requestParamsMap: Map<string, Record<string, any>>;
146
+ tableWidthMap: Map<string, number>;
147
+ rowHeightMap: Map<string, import("./index.vm").IKgTableRowHeight>;
148
+ onReadyListenersMap: Map<string, IKgTableReadyCb[]>;
149
+ rowDoubleClickListenersMap: Map<string, IKgTableRowDoubleClickCb[]>;
150
+ beforeRequestListenersMap: Map<string, IKgTableBeforeRequestCb[]>;
151
+ beforeSetDatasListenersMap: Map<string, IKgTableBeforeSetDatasCb[]>;
152
+ afterRequestListenersMap: Map<string, IKgTableAfterRequestCb[]>;
153
+ } & import("pinia").PiniaCustomStateProperties<{
154
+ isReadyMap: Map<string, boolean>;
155
+ /** 当前勾选的第一行. */
156
+ datasMap: Map<String, any[]>;
157
+ selectedRowKeysMap: Map<string, import("vue").Ref<import("ant-design-vue/lib/_util/type").Key[]>>;
158
+ selectedRowsMap: Map<string, any[]>;
159
+ isRequestedMap: Map<string, boolean>;
160
+ isRequestingMap: Map<string, boolean>; /**
161
+ * 事件: ready, 配置初始完成, 组件渲染完成.
162
+ * @param cb 回调函数.
163
+ * @param once 是否只会触发一次. 默认为 undefined.
164
+ */
165
+ requestParamsMap: Map<string, Record<string, any>>;
166
+ tableWidthMap: Map<string, number>;
167
+ rowHeightMap: Map<string, import("./index.vm").IKgTableRowHeight>;
168
+ onReadyListenersMap: Map<string, IKgTableReadyCb[]>;
169
+ rowDoubleClickListenersMap: Map<string, IKgTableRowDoubleClickCb[]>;
170
+ beforeRequestListenersMap: Map<string, IKgTableBeforeRequestCb[]>;
171
+ beforeSetDatasListenersMap: Map<string, IKgTableBeforeSetDatasCb[]>;
172
+ afterRequestListenersMap: Map<string, IKgTableAfterRequestCb[]>;
173
+ }>): (formID: string | null | undefined) => import("./index.vm").IKgTableRow[] | null;
174
+ getSelectedFirstRow(state: {
175
+ isReadyMap: Map<string, boolean>;
176
+ datasMap: Map<String, any[]>;
177
+ selectedRowKeysMap: Map<string, import("vue").Ref<import("ant-design-vue/lib/_util/type").Key[]>>;
178
+ selectedRowsMap: Map<string, any[]>;
179
+ isRequestedMap: Map<string, boolean>;
180
+ isRequestingMap: Map<string, boolean>;
181
+ requestParamsMap: Map<string, Record<string, any>>;
182
+ tableWidthMap: Map<string, number>;
183
+ rowHeightMap: Map<string, import("./index.vm").IKgTableRowHeight>;
184
+ onReadyListenersMap: Map<string, IKgTableReadyCb[]>;
185
+ rowDoubleClickListenersMap: Map<string, IKgTableRowDoubleClickCb[]>;
186
+ beforeRequestListenersMap: Map<string, IKgTableBeforeRequestCb[]>;
187
+ beforeSetDatasListenersMap: Map<string, IKgTableBeforeSetDatasCb[]>;
188
+ afterRequestListenersMap: Map<string, IKgTableAfterRequestCb[]>;
189
+ } & import("pinia").PiniaCustomStateProperties<{
190
+ isReadyMap: Map<string, boolean>;
191
+ /** 当前勾选的第一行. */
192
+ datasMap: Map<String, any[]>;
193
+ selectedRowKeysMap: Map<string, import("vue").Ref<import("ant-design-vue/lib/_util/type").Key[]>>;
194
+ selectedRowsMap: Map<string, any[]>;
195
+ isRequestedMap: Map<string, boolean>;
196
+ isRequestingMap: Map<string, boolean>; /**
197
+ * 事件: ready, 配置初始完成, 组件渲染完成.
198
+ * @param cb 回调函数.
199
+ * @param once 是否只会触发一次. 默认为 undefined.
200
+ */
201
+ requestParamsMap: Map<string, Record<string, any>>;
202
+ tableWidthMap: Map<string, number>;
203
+ rowHeightMap: Map<string, import("./index.vm").IKgTableRowHeight>;
204
+ onReadyListenersMap: Map<string, IKgTableReadyCb[]>;
205
+ rowDoubleClickListenersMap: Map<string, IKgTableRowDoubleClickCb[]>;
206
+ beforeRequestListenersMap: Map<string, IKgTableBeforeRequestCb[]>;
207
+ beforeSetDatasListenersMap: Map<string, IKgTableBeforeSetDatasCb[]>;
208
+ afterRequestListenersMap: Map<string, IKgTableAfterRequestCb[]>;
209
+ }>): (formID: string | null | undefined) => import("./index.vm").IKgTableRow | null;
210
+ getSelectedRow(state: {
211
+ isReadyMap: Map<string, boolean>;
212
+ datasMap: Map<String, any[]>;
213
+ selectedRowKeysMap: Map<string, import("vue").Ref<import("ant-design-vue/lib/_util/type").Key[]>>;
214
+ selectedRowsMap: Map<string, any[]>;
215
+ isRequestedMap: Map<string, boolean>;
216
+ isRequestingMap: Map<string, boolean>;
217
+ requestParamsMap: Map<string, Record<string, any>>;
218
+ tableWidthMap: Map<string, number>;
219
+ rowHeightMap: Map<string, import("./index.vm").IKgTableRowHeight>;
220
+ onReadyListenersMap: Map<string, IKgTableReadyCb[]>;
221
+ rowDoubleClickListenersMap: Map<string, IKgTableRowDoubleClickCb[]>;
222
+ beforeRequestListenersMap: Map<string, IKgTableBeforeRequestCb[]>;
223
+ beforeSetDatasListenersMap: Map<string, IKgTableBeforeSetDatasCb[]>;
224
+ afterRequestListenersMap: Map<string, IKgTableAfterRequestCb[]>;
225
+ } & import("pinia").PiniaCustomStateProperties<{
226
+ isReadyMap: Map<string, boolean>;
227
+ /** 当前勾选的第一行. */
228
+ datasMap: Map<String, any[]>;
229
+ selectedRowKeysMap: Map<string, import("vue").Ref<import("ant-design-vue/lib/_util/type").Key[]>>;
230
+ selectedRowsMap: Map<string, any[]>;
231
+ isRequestedMap: Map<string, boolean>;
232
+ isRequestingMap: Map<string, boolean>; /**
233
+ * 事件: ready, 配置初始完成, 组件渲染完成.
234
+ * @param cb 回调函数.
235
+ * @param once 是否只会触发一次. 默认为 undefined.
236
+ */
237
+ requestParamsMap: Map<string, Record<string, any>>;
238
+ tableWidthMap: Map<string, number>;
239
+ rowHeightMap: Map<string, import("./index.vm").IKgTableRowHeight>;
240
+ onReadyListenersMap: Map<string, IKgTableReadyCb[]>;
241
+ rowDoubleClickListenersMap: Map<string, IKgTableRowDoubleClickCb[]>;
242
+ beforeRequestListenersMap: Map<string, IKgTableBeforeRequestCb[]>;
243
+ beforeSetDatasListenersMap: Map<string, IKgTableBeforeSetDatasCb[]>;
244
+ afterRequestListenersMap: Map<string, IKgTableAfterRequestCb[]>;
245
+ }>): (formID: string | null | undefined) => import("./index.vm").IKgTableRow | null;
246
+ getIsRequested(state: {
247
+ isReadyMap: Map<string, boolean>;
248
+ datasMap: Map<String, any[]>;
249
+ selectedRowKeysMap: Map<string, import("vue").Ref<import("ant-design-vue/lib/_util/type").Key[]>>;
250
+ selectedRowsMap: Map<string, any[]>;
251
+ isRequestedMap: Map<string, boolean>;
252
+ isRequestingMap: Map<string, boolean>;
253
+ requestParamsMap: Map<string, Record<string, any>>;
254
+ tableWidthMap: Map<string, number>;
255
+ rowHeightMap: Map<string, import("./index.vm").IKgTableRowHeight>;
256
+ onReadyListenersMap: Map<string, IKgTableReadyCb[]>;
257
+ rowDoubleClickListenersMap: Map<string, IKgTableRowDoubleClickCb[]>;
258
+ beforeRequestListenersMap: Map<string, IKgTableBeforeRequestCb[]>;
259
+ beforeSetDatasListenersMap: Map<string, IKgTableBeforeSetDatasCb[]>;
260
+ afterRequestListenersMap: Map<string, IKgTableAfterRequestCb[]>;
261
+ } & import("pinia").PiniaCustomStateProperties<{
262
+ isReadyMap: Map<string, boolean>;
263
+ /** 当前勾选的第一行. */
264
+ datasMap: Map<String, any[]>;
265
+ selectedRowKeysMap: Map<string, import("vue").Ref<import("ant-design-vue/lib/_util/type").Key[]>>;
266
+ selectedRowsMap: Map<string, any[]>;
267
+ isRequestedMap: Map<string, boolean>;
268
+ isRequestingMap: Map<string, boolean>; /**
269
+ * 事件: ready, 配置初始完成, 组件渲染完成.
270
+ * @param cb 回调函数.
271
+ * @param once 是否只会触发一次. 默认为 undefined.
272
+ */
273
+ requestParamsMap: Map<string, Record<string, any>>;
274
+ tableWidthMap: Map<string, number>;
275
+ rowHeightMap: Map<string, import("./index.vm").IKgTableRowHeight>;
276
+ onReadyListenersMap: Map<string, IKgTableReadyCb[]>;
277
+ rowDoubleClickListenersMap: Map<string, IKgTableRowDoubleClickCb[]>;
278
+ beforeRequestListenersMap: Map<string, IKgTableBeforeRequestCb[]>;
279
+ beforeSetDatasListenersMap: Map<string, IKgTableBeforeSetDatasCb[]>;
280
+ afterRequestListenersMap: Map<string, IKgTableAfterRequestCb[]>;
281
+ }>): (formID: string | null | undefined) => boolean;
282
+ getIsRequesting(state: {
283
+ isReadyMap: Map<string, boolean>;
284
+ datasMap: Map<String, any[]>;
285
+ selectedRowKeysMap: Map<string, import("vue").Ref<import("ant-design-vue/lib/_util/type").Key[]>>;
286
+ selectedRowsMap: Map<string, any[]>;
287
+ isRequestedMap: Map<string, boolean>;
288
+ isRequestingMap: Map<string, boolean>;
289
+ requestParamsMap: Map<string, Record<string, any>>;
290
+ tableWidthMap: Map<string, number>;
291
+ rowHeightMap: Map<string, import("./index.vm").IKgTableRowHeight>;
292
+ onReadyListenersMap: Map<string, IKgTableReadyCb[]>;
293
+ rowDoubleClickListenersMap: Map<string, IKgTableRowDoubleClickCb[]>;
294
+ beforeRequestListenersMap: Map<string, IKgTableBeforeRequestCb[]>;
295
+ beforeSetDatasListenersMap: Map<string, IKgTableBeforeSetDatasCb[]>;
296
+ afterRequestListenersMap: Map<string, IKgTableAfterRequestCb[]>;
297
+ } & import("pinia").PiniaCustomStateProperties<{
298
+ isReadyMap: Map<string, boolean>;
299
+ /** 当前勾选的第一行. */
300
+ datasMap: Map<String, any[]>;
301
+ selectedRowKeysMap: Map<string, import("vue").Ref<import("ant-design-vue/lib/_util/type").Key[]>>;
302
+ selectedRowsMap: Map<string, any[]>;
303
+ isRequestedMap: Map<string, boolean>;
304
+ isRequestingMap: Map<string, boolean>; /**
305
+ * 事件: ready, 配置初始完成, 组件渲染完成.
306
+ * @param cb 回调函数.
307
+ * @param once 是否只会触发一次. 默认为 undefined.
308
+ */
309
+ requestParamsMap: Map<string, Record<string, any>>;
310
+ tableWidthMap: Map<string, number>;
311
+ rowHeightMap: Map<string, import("./index.vm").IKgTableRowHeight>;
312
+ onReadyListenersMap: Map<string, IKgTableReadyCb[]>;
313
+ rowDoubleClickListenersMap: Map<string, IKgTableRowDoubleClickCb[]>;
314
+ beforeRequestListenersMap: Map<string, IKgTableBeforeRequestCb[]>;
315
+ beforeSetDatasListenersMap: Map<string, IKgTableBeforeSetDatasCb[]>;
316
+ afterRequestListenersMap: Map<string, IKgTableAfterRequestCb[]>;
317
+ }>): (formID: string | null | undefined) => boolean | null;
318
+ getRequestParams(state: {
319
+ isReadyMap: Map<string, boolean>;
320
+ datasMap: Map<String, any[]>;
321
+ selectedRowKeysMap: Map<string, import("vue").Ref<import("ant-design-vue/lib/_util/type").Key[]>>;
322
+ selectedRowsMap: Map<string, any[]>;
323
+ isRequestedMap: Map<string, boolean>;
324
+ isRequestingMap: Map<string, boolean>;
325
+ requestParamsMap: Map<string, Record<string, any>>;
326
+ tableWidthMap: Map<string, number>;
327
+ rowHeightMap: Map<string, import("./index.vm").IKgTableRowHeight>;
328
+ onReadyListenersMap: Map<string, IKgTableReadyCb[]>;
329
+ rowDoubleClickListenersMap: Map<string, IKgTableRowDoubleClickCb[]>;
330
+ beforeRequestListenersMap: Map<string, IKgTableBeforeRequestCb[]>;
331
+ beforeSetDatasListenersMap: Map<string, IKgTableBeforeSetDatasCb[]>;
332
+ afterRequestListenersMap: Map<string, IKgTableAfterRequestCb[]>;
333
+ } & import("pinia").PiniaCustomStateProperties<{
334
+ isReadyMap: Map<string, boolean>;
335
+ /** 当前勾选的第一行. */
336
+ datasMap: Map<String, any[]>;
337
+ selectedRowKeysMap: Map<string, import("vue").Ref<import("ant-design-vue/lib/_util/type").Key[]>>;
338
+ selectedRowsMap: Map<string, any[]>;
339
+ isRequestedMap: Map<string, boolean>;
340
+ isRequestingMap: Map<string, boolean>; /**
341
+ * 事件: ready, 配置初始完成, 组件渲染完成.
342
+ * @param cb 回调函数.
343
+ * @param once 是否只会触发一次. 默认为 undefined.
344
+ */
345
+ requestParamsMap: Map<string, Record<string, any>>;
346
+ tableWidthMap: Map<string, number>;
347
+ rowHeightMap: Map<string, import("./index.vm").IKgTableRowHeight>;
348
+ onReadyListenersMap: Map<string, IKgTableReadyCb[]>;
349
+ rowDoubleClickListenersMap: Map<string, IKgTableRowDoubleClickCb[]>;
350
+ beforeRequestListenersMap: Map<string, IKgTableBeforeRequestCb[]>;
351
+ beforeSetDatasListenersMap: Map<string, IKgTableBeforeSetDatasCb[]>;
352
+ afterRequestListenersMap: Map<string, IKgTableAfterRequestCb[]>;
353
+ }>): (formID: string | null | undefined) => Record<string, any>;
354
+ getTableWidth(state: {
355
+ isReadyMap: Map<string, boolean>;
356
+ datasMap: Map<String, any[]>;
357
+ selectedRowKeysMap: Map<string, import("vue").Ref<import("ant-design-vue/lib/_util/type").Key[]>>;
358
+ selectedRowsMap: Map<string, any[]>;
359
+ isRequestedMap: Map<string, boolean>;
360
+ isRequestingMap: Map<string, boolean>;
361
+ requestParamsMap: Map<string, Record<string, any>>;
362
+ tableWidthMap: Map<string, number>;
363
+ rowHeightMap: Map<string, import("./index.vm").IKgTableRowHeight>;
364
+ onReadyListenersMap: Map<string, IKgTableReadyCb[]>;
365
+ rowDoubleClickListenersMap: Map<string, IKgTableRowDoubleClickCb[]>;
366
+ beforeRequestListenersMap: Map<string, IKgTableBeforeRequestCb[]>;
367
+ beforeSetDatasListenersMap: Map<string, IKgTableBeforeSetDatasCb[]>;
368
+ afterRequestListenersMap: Map<string, IKgTableAfterRequestCb[]>;
369
+ } & import("pinia").PiniaCustomStateProperties<{
370
+ isReadyMap: Map<string, boolean>;
371
+ /** 当前勾选的第一行. */
372
+ datasMap: Map<String, any[]>;
373
+ selectedRowKeysMap: Map<string, import("vue").Ref<import("ant-design-vue/lib/_util/type").Key[]>>;
374
+ selectedRowsMap: Map<string, any[]>;
375
+ isRequestedMap: Map<string, boolean>;
376
+ isRequestingMap: Map<string, boolean>; /**
377
+ * 事件: ready, 配置初始完成, 组件渲染完成.
378
+ * @param cb 回调函数.
379
+ * @param once 是否只会触发一次. 默认为 undefined.
380
+ */
381
+ requestParamsMap: Map<string, Record<string, any>>;
382
+ tableWidthMap: Map<string, number>;
383
+ rowHeightMap: Map<string, import("./index.vm").IKgTableRowHeight>;
384
+ onReadyListenersMap: Map<string, IKgTableReadyCb[]>;
385
+ rowDoubleClickListenersMap: Map<string, IKgTableRowDoubleClickCb[]>;
386
+ beforeRequestListenersMap: Map<string, IKgTableBeforeRequestCb[]>;
387
+ beforeSetDatasListenersMap: Map<string, IKgTableBeforeSetDatasCb[]>;
388
+ afterRequestListenersMap: Map<string, IKgTableAfterRequestCb[]>;
389
+ }>): (formID: string | null | undefined) => number | null;
390
+ getRowHeight(state: {
391
+ isReadyMap: Map<string, boolean>;
392
+ datasMap: Map<String, any[]>;
393
+ selectedRowKeysMap: Map<string, import("vue").Ref<import("ant-design-vue/lib/_util/type").Key[]>>;
394
+ selectedRowsMap: Map<string, any[]>;
395
+ isRequestedMap: Map<string, boolean>;
396
+ isRequestingMap: Map<string, boolean>;
397
+ requestParamsMap: Map<string, Record<string, any>>;
398
+ tableWidthMap: Map<string, number>;
399
+ rowHeightMap: Map<string, import("./index.vm").IKgTableRowHeight>;
400
+ onReadyListenersMap: Map<string, IKgTableReadyCb[]>;
401
+ rowDoubleClickListenersMap: Map<string, IKgTableRowDoubleClickCb[]>;
402
+ beforeRequestListenersMap: Map<string, IKgTableBeforeRequestCb[]>;
403
+ beforeSetDatasListenersMap: Map<string, IKgTableBeforeSetDatasCb[]>;
404
+ afterRequestListenersMap: Map<string, IKgTableAfterRequestCb[]>;
405
+ } & import("pinia").PiniaCustomStateProperties<{
406
+ isReadyMap: Map<string, boolean>;
407
+ /** 当前勾选的第一行. */
408
+ datasMap: Map<String, any[]>;
409
+ selectedRowKeysMap: Map<string, import("vue").Ref<import("ant-design-vue/lib/_util/type").Key[]>>;
410
+ selectedRowsMap: Map<string, any[]>;
411
+ isRequestedMap: Map<string, boolean>;
412
+ isRequestingMap: Map<string, boolean>; /**
413
+ * 事件: ready, 配置初始完成, 组件渲染完成.
414
+ * @param cb 回调函数.
415
+ * @param once 是否只会触发一次. 默认为 undefined.
416
+ */
417
+ requestParamsMap: Map<string, Record<string, any>>;
418
+ tableWidthMap: Map<string, number>;
419
+ rowHeightMap: Map<string, import("./index.vm").IKgTableRowHeight>;
420
+ onReadyListenersMap: Map<string, IKgTableReadyCb[]>;
421
+ rowDoubleClickListenersMap: Map<string, IKgTableRowDoubleClickCb[]>;
422
+ beforeRequestListenersMap: Map<string, IKgTableBeforeRequestCb[]>;
423
+ beforeSetDatasListenersMap: Map<string, IKgTableBeforeSetDatasCb[]>;
424
+ afterRequestListenersMap: Map<string, IKgTableAfterRequestCb[]>;
425
+ }>): (formID: string | null | undefined) => import("./index.vm").IKgTableRowHeight;
426
+ }, {
427
+ dispose(formID: string | null | undefined): null | undefined;
428
+ addEventListener(formID: string | null | undefined, event: IKgTableEvent, cb: import("./index.store").IKgTableCb): void;
429
+ removeEventListener(formID: string | null | undefined, event: IKgTableEvent, cb?: import("./index.store").IKgTableCb | undefined): void;
430
+ emit<T_1 = import("./index.store").IKgTableCbParam>(formID: string | null | undefined, event: IKgTableEvent, param: T_1): Promise<boolean>;
431
+ setIsReady(formID: string | null | undefined, ready?: boolean | undefined): void;
432
+ setDatas<T_2 = any>(param: {
433
+ frmId: string | null | undefined;
434
+ datas: T_2[];
435
+ isPreserveSelectedRows?: boolean | undefined;
436
+ }): void;
437
+ setSelectedRows(frmId: string | null | undefined, selectedRows: import("./index.vm").IKgTableRow[]): void;
438
+ refreshSelectedRows(frmId: string | null | undefined): void;
439
+ setRowSelect(frmId: string | null | undefined, row: import("./index.vm").IKgTableRow, isSelected: boolean): void;
440
+ setIsRequested(frmId: string | null | undefined, value: boolean): void;
441
+ setIsRequesting(formID: string | null | undefined, value: boolean): void;
442
+ setRequestParams(formID: string | null | undefined, requestParams: Record<string, any> | null | undefined): void;
443
+ setTableWidth(formID: string | null | undefined, value: number): void;
444
+ setRowHeight(formID: string | null | undefined, value: import("./index.vm").IKgTableRowHeight): void;
445
+ clearDatas(formID: string | null | undefined): void;
446
+ }>;
8
447
  /** 是否就绪: 配置初始完成, 组件渲染完成. */
9
- isReady: ComputedRef<ReturnType<ReturnType<typeof useKgTableStore>['getIsReady']>>;
448
+ isReady: import("vue").ComputedRef<boolean>;
10
449
  /** 是否正在查询. */
11
- isRetrieving: ComputedRef<ReturnType<ReturnType<typeof useKgTableStore>['getIsRequesting']>>;
450
+ isRetrieving: import("vue").ComputedRef<boolean | null>;
12
451
  /** 是否已经查询过一次了. */
13
- isSearched: Ref<boolean>;
452
+ isRequested: import("vue").ComputedRef<boolean>;
14
453
  /**
15
454
  * <p>查询参数.</p>
16
455
  * <p>此查询参数是最终传给后端接口的参数, 包含了查询条件, 还包含了表格中的排序和分页, 还包含了表格配置中的参数.</p>
17
456
  */
18
- requestParams: Ref<ReturnType<ReturnType<typeof useKgTableStore>['getRequestParams']>>;
457
+ requestParams: import("vue").ComputedRef<Record<string, any>>;
458
+ /** 当前勾选的所有行. */
459
+ selectedRows: import("vue").ComputedRef<import("./index.vm").IKgTableRow[] | null>;
19
460
  /** 当前勾选的第一行. */
20
- selectedFirstRow: ComputedRef<ReturnType<ReturnType<typeof useKgTableStore>['getSelectedFirstRow']>>;
461
+ selectedFirstRow: import("vue").ComputedRef<import("./index.vm").IKgTableRow | null>;
21
462
  /** 当前勾选的唯一行, 如果勾选了多行或者零行, 则为 null. */
22
- selectedRow: ComputedRef<ReturnType<ReturnType<typeof useKgTableStore>['getSelectedRow']>>;
23
- /** 当前勾选的所有行. */
24
- selectedRows: ComputedRef<ReturnType<ReturnType<typeof useKgTableStore>['getSelectedRows']>>;
463
+ selectedRow: import("vue").ComputedRef<import("./index.vm").IKgTableRow | null>;
25
464
  /** 是否支持多选. */
26
- isMultiSelect: Ref<boolean>;
465
+ isMultiSelect: import("vue").ComputedRef<boolean>;
27
466
  /** 是否自动查询. */
28
- isAutoSearch: Ref<boolean>;
467
+ isAutoRequest: import("vue").ComputedRef<boolean>;
29
468
  /** 是否显示底部左侧. */
30
- isShowBottomLeft: Ref<boolean>;
469
+ isShowBottomLeft: import("vue").ComputedRef<boolean>;
31
470
  /** 是否显示底部右侧. */
32
- isShowBottomRight: Ref<boolean>;
471
+ isShowBottomRight: import("vue").ComputedRef<boolean>;
33
472
  /** 主键字段. */
34
- id: Ref<string>;
473
+ id: import("vue").ComputedRef<string>;
35
474
  /** 所有分页选项. */
36
- pageSizeOptions: Ref<Array<number>>;
475
+ pageSizeOptions: import("vue").ComputedRef<number[]>;
37
476
  /** 当前分页选项. */
38
- pageSizeOption: Ref<number>;
477
+ pageSizeOption: import("vue").ComputedRef<number>;
39
478
  /** 查询条件的界面标识. */
40
- kgSearchFormID: Ref<string>;
479
+ kgSearchFormID: import("vue").ComputedRef<string>;
41
480
  /**
42
481
  * 事件: ready, 配置初始完成, 组件渲染完成.
43
482
  * @param cb 回调函数.
44
483
  * @param once 是否只会触发一次. 默认为 undefined.
45
- * */
46
- onReady(cb: IKgTableReadyCb, once?: boolean): IRemoveEventListenerHandler;
484
+ */
485
+ onReady: (cb: IKgTableReadyCb, once?: boolean | undefined) => import("../..").IRemoveEventListenerHandler;
47
486
  /**
48
487
  * 事件: 双击某行.
49
488
  * @param cb 回调函数.
50
489
  * @param once 是否只会触发一次. 默认为 undefined.
51
490
  */
52
- onRowDoubleClick(cb: IKgTableRowDoubleClickCb, once?: boolean): IRemoveEventListenerHandler;
491
+ onRowDoubleClick: (cb: IKgTableRowDoubleClickCb, once?: boolean | undefined) => import("../..").IRemoveEventListenerHandler;
53
492
  /**
54
493
  * 事件: 即将发起查询请求, 如果返回 true 表示不会发起请求.
55
494
  * @param cb 回调函数.
56
495
  * @param once 是否只会触发一次. 默认为 undefined.
57
496
  */
58
- onBeforeSearch(cb: IKgTableBeforeRequestCb, once?: boolean): IRemoveEventListenerHandler;
497
+ onBeforeSearch: (cb: IKgTableBeforeRequestCb, once?: boolean | undefined) => import("../..").IRemoveEventListenerHandler;
59
498
  /**
60
499
  * 事件: 查询请求成功, 表格数据尚未赋值. 此处可以对查询接口返回的列表数据作处理.
61
500
  * @param cb 回调函数.
62
501
  * @param once 是否只会触发一次. 默认为 undefined.
63
502
  */
64
- onBeforeSetDatas(cb: IKgTableBeforeSetDatasCb, once?: boolean): IRemoveEventListenerHandler;
503
+ onBeforeSetDatas: (cb: IKgTableBeforeSetDatasCb, once?: boolean | undefined) => import("../..").IRemoveEventListenerHandler;
65
504
  /**
66
505
  * 事件: 查询请求成功, 表格数据已经赋值, 表格状态已经更新.
67
506
  * @param cb 回调函数.
68
507
  * @param once 是否只会触发一次. 默认为 undefined.
69
508
  */
70
- onAfterSearch(cb: IKgTableAfterRequestCb, once?: boolean): IRemoveEventListenerHandler;
509
+ onAfterSearch: (cb: IKgTableAfterRequestCb, once?: boolean | undefined) => import("../..").IRemoveEventListenerHandler;
71
510
  /**
72
511
  * 事件: 即将发起查询请求, 如果返回 true 表示不会发起请求.
73
512
  * @param cb 回调函数.
74
513
  * @param once 是否只会触发一次. 默认为 undefined.
75
514
  * @deprecated 已废弃, 请使用 onBeforeSearch() 方法.
76
515
  */
77
- onBeforeRetrieve(cb: IKgTableBeforeRequestCb, once?: boolean): IRemoveEventListenerHandler;
516
+ onBeforeRetrieve: (cb: IKgTableBeforeRequestCb, once?: boolean | undefined) => import("../..").IRemoveEventListenerHandler;
78
517
  /**
79
518
  * 事件: 查询请求成功, 表格数据已经赋值, 表格状态已经更新.
80
519
  * @param cb 回调函数.
81
520
  * @param once 是否只会触发一次. 默认为 undefined.
82
521
  * @deprecated 已废弃, 请使用 onAfterSearch() 方法.
83
522
  */
84
- onRetrieve(cb: IKgTableAfterRequestCb, once?: boolean): IRemoveEventListenerHandler;
523
+ onRetrieve: (cb: IKgTableAfterRequestCb, once?: boolean | undefined) => import("../..").IRemoveEventListenerHandler;
85
524
  };
86
- /**
87
- * @param formID 界面标识.
88
- */
89
- export declare function useKgTable(formID?: string | null): IUseKgTable;