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