@kengic/vue 0.21.5-beta.1 → 0.22.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (58) hide show
  1. package/CHANGELOG.md +85 -0
  2. package/dist/index.css +1 -1
  3. package/dist/kengic-vue.js +10162 -10277
  4. package/dist/project/index.ts +1 -1
  5. package/dist/src/apis/WMS/Controllers/{VarVariableCatalogController → VarConfigDescriptionController}/Add.d.ts +2 -2
  6. package/dist/src/apis/WMS/Controllers/{VarVariableCatalogController → VarConfigDescriptionController}/Delete.d.ts +1 -1
  7. package/dist/src/apis/WMS/Controllers/{VarVariableCatalogController → VarConfigDescriptionController}/DeleteBatch.d.ts +1 -1
  8. package/dist/src/apis/WMS/Controllers/{VarVariableCatalogController → VarConfigDescriptionController}/Edit.d.ts +2 -2
  9. package/dist/src/apis/WMS/Controllers/{VarVariableCatalogController → VarConfigDescriptionController}/ExportXls.d.ts +1 -1
  10. package/dist/src/apis/WMS/Controllers/{VarVariableCatalogController → VarConfigDescriptionController}/ImportExcel.d.ts +1 -1
  11. package/dist/src/apis/WMS/Controllers/{VarVariableCatalogController → VarConfigDescriptionController}/List.d.ts +2 -2
  12. package/dist/src/apis/WMS/Controllers/{VarContextController → VarConfigDescriptionController}/QueryById.d.ts +2 -2
  13. package/dist/src/apis/WMS/Controllers/{VarContextController → VarVariableController}/Add.d.ts +1 -1
  14. package/dist/src/apis/WMS/Controllers/{VarContextController → VarVariableController}/Edit.d.ts +1 -1
  15. package/dist/src/apis/WMS/Controllers/{VarContextController → VarVariableController}/List.d.ts +1 -1
  16. package/dist/src/apis/WMS/Controllers/{VarVariableCatalogController → VarVariableController}/QueryById.d.ts +2 -2
  17. package/dist/src/apis/WMS/Controllers/index.d.ts +2 -2
  18. package/dist/src/apis/WMS/models.d.ts +179 -251
  19. package/dist/src/components/KgButton/index.hooks.d.ts +239 -42
  20. package/dist/src/components/KgButton/index.store.d.ts +171 -53
  21. package/dist/src/components/KgForm.Item/KgForm.Item.hooks.d.ts +4 -6
  22. package/dist/src/components/KgForm.Item/components/KgForm.Item.Checkbox.d.ts +3 -3
  23. package/dist/src/components/KgForm.Item/components/KgForm.Item.CheckboxGroup.d.ts +1 -1
  24. package/dist/src/components/KgForm.Item/components/KgForm.Item.Date.d.ts +1 -1
  25. package/dist/src/components/KgForm.Item/components/KgForm.Item.DateRange.d.ts +1 -1
  26. package/dist/src/components/KgForm.Item/components/KgForm.Item.Input.d.ts +1 -1
  27. package/dist/src/components/KgForm.Item/components/KgForm.Item.InputNumber.d.ts +1 -1
  28. package/dist/src/components/KgForm.Item/components/KgForm.Item.RadioGroup.d.ts +5 -3
  29. package/dist/src/components/KgForm.Item/components/KgForm.Item.Select.d.ts +5 -3
  30. package/dist/src/components/KgForm.Item/components/KgForm.Item.Select.hooks.d.ts +3 -3
  31. package/dist/src/components/KgForm.Item/components/KgForm.Item.Switch.d.ts +1 -1
  32. package/dist/src/components/KgForm.Item/components/KgForm.Item.TextArea.d.ts +1 -1
  33. package/dist/src/components/KgForm.Item/index.vm.d.ts +5 -5
  34. package/dist/src/components/KgSearch/KgSearch.hooks.d.ts +0 -7
  35. package/dist/src/components/KgSubmit/KgSubmit.hooks.d.ts +4 -4
  36. package/dist/src/components/KgSubmit/index.hooks.d.ts +316 -19
  37. package/dist/src/components/KgSubmit/index.store.d.ts +247 -24
  38. package/dist/src/components/KgTable/index.hooks.d.ts +36 -84
  39. package/dist/src/components/KgVar/index.hooks.d.ts +2796 -2027
  40. package/dist/src/components/KgVar/index.store.d.ts +2421 -2395
  41. package/dist/src/components/KgVar/index.store.service.d.ts +3 -3
  42. package/dist/src/components/KgVarConfig/components/submit/{KgVarConfig.Modal.Submit.VarSubmitField.d.ts → KgVarConfig.Modal.Submit.VarSubmitDetail.d.ts} +2 -2
  43. package/dist/src/components/KgVarConfig/index.store.d.ts +7 -7
  44. package/dist/src/consts/i18n/en.d.ts +5 -4
  45. package/dist/src/consts/i18n/zh_CN.d.ts +5 -4
  46. package/dist/src/consts/index.d.ts +4 -4
  47. package/dist/src/consts/index.vm.d.ts +8 -11
  48. package/dist/src/pages/KgPageDda/components/KgPageDda.Create.store.d.ts +170 -440
  49. package/dist/src/utils/kg-var.util.d.ts +23 -11
  50. package/dist/src/utils/kg.util.d.ts +19 -10
  51. package/package.json +4 -4
  52. /package/dist/src/apis/WMS/Controllers/{VarContextController → VarConfigDescriptionController}/index.d.ts +0 -0
  53. /package/dist/src/apis/WMS/Controllers/{VarContextController → VarVariableController}/Delete.d.ts +0 -0
  54. /package/dist/src/apis/WMS/Controllers/{VarContextController → VarVariableController}/DeleteBatch.d.ts +0 -0
  55. /package/dist/src/apis/WMS/Controllers/{VarContextController → VarVariableController}/ExportXls.d.ts +0 -0
  56. /package/dist/src/apis/WMS/Controllers/{VarContextController → VarVariableController}/ImportExcel.d.ts +0 -0
  57. /package/dist/src/apis/WMS/Controllers/{VarVariableCatalogController → VarVariableController}/index.d.ts +0 -0
  58. /package/dist/src/components/KgVarConfig/components/var/{KgVarConfig.Modal.Var.VarVariableCatalog.d.ts → KgVarConfig.Modal.Var.VarConfigDescription.d.ts} +0 -0
@@ -1,8 +1,8 @@
1
1
  import { RuleObject } from 'ant-design-vue/es/form';
2
2
  import { FormInstance } from 'ant-design-vue/lib/form/Form';
3
- import { StoreDefinition } from 'pinia';
4
3
  import { Ref } from 'vue';
5
- import { IKgEventCb } from '../../consts';
4
+ import { VarSubmitConfig, VarSubmitDetail } from '../../apis/WMS/models';
5
+ import { IKgEventCb, KG_BUTTON_TYPE } from '../../consts';
6
6
  import { IKgTableRow } from '../KgTable';
7
7
  /**
8
8
  * 事件类型.
@@ -108,38 +108,261 @@ export declare type IKgSubmitErrorCb = ((param: any) => Promise<boolean>) & IKgE
108
108
  export declare type IKgSubmitCloseCb = ((param?: any | null) => Promise<boolean>) & IKgEventCb;
109
109
  export declare type IKgSubmitCbParam = IKgSubmitBeforeOpenCbParam | IKgSubmitOpenCbParam | IKgSubmitBeforeOkCbParam | IKgSubmitAfterValidateCbParam | IKgSubmitBeforeRequestCbParam | IKgSubmitOkCbParam | null;
110
110
  export declare type IKgSubmitCb = IKgSubmitBeforeOpenCb | IKgSubmitOpenCb | IKgSubmitBeforeOkCb | IKgSubmitAfterValidateCb | IKgSubmitBeforeRequestCb | IKgSubmitOkCb | IKgSubmitErrorCb | IKgSubmitCloseCb;
111
- export interface IKgSubmitState {
112
- beforeOpenListenersMap: Map<string, Array<IKgSubmitBeforeOpenCb>>;
113
- openListenersMap: Map<string, Array<IKgSubmitOpenCb>>;
114
- beforeOkListenersMap: Map<string, Array<IKgSubmitBeforeOkCb>>;
115
- afterValidateListenersMap: Map<string, Array<IKgSubmitAfterValidateCb>>;
116
- beforeRequestListenersMap: Map<string, Array<IKgSubmitBeforeRequestCb>>;
117
- okListenersMap: Map<string, Array<IKgSubmitOkCb>>;
118
- errorListenersMap: Map<string, Array<IKgSubmitErrorCb>>;
119
- closeListenersMap: Map<string, Array<IKgSubmitCloseCb>>;
111
+ export declare const useKgSubmitStore: import("pinia").StoreDefinition<"KgSubmit", {
112
+ afterValidateListenersMap: Map<string, IKgSubmitAfterValidateCb[]>;
113
+ beforeOkListenersMap: Map<string, IKgSubmitBeforeOkCb[]>;
114
+ beforeOpenListenersMap: Map<string, IKgSubmitBeforeOpenCb[]>;
115
+ beforeRequestListenersMap: Map<string, IKgSubmitBeforeRequestCb[]>;
116
+ closeListenersMap: Map<string, IKgSubmitCloseCb[]>;
117
+ errorListenersMap: Map<string, IKgSubmitErrorCb[]>;
118
+ /** 表单对象. */
119
+ formRefMap: Map<string, Ref<FormInstance | null>>;
120
120
  isLoadingMap: Map<string, boolean>;
121
121
  /** 表单数据对象. */
122
122
  modelMap: Map<string, Record<string, any>>;
123
- /** 表单对象. */
124
- formRefMap: Map<string, Ref<FormInstance | null>>;
123
+ okListenersMap: Map<string, IKgSubmitOkCb[]>;
124
+ openListenersMap: Map<string, IKgSubmitOpenCb[]>;
125
125
  /**
126
126
  * <p>表单验证规则.</p>
127
127
  * <p>在 beforeOk 事件中会将此对象传给调用者, 调用者可以修改此对象, 从而添加自定义的验证规则.</p>
128
128
  */
129
- rulesMap: Map<string, Ref<Record<string, Array<RuleObject>>>>;
130
- }
131
- export declare type IKgSubmitStoreDefinition = StoreDefinition<'KgSubmit', IKgSubmitState, {
132
- isLoading(): (formID?: string | null) => boolean;
133
- getModel(): (formID: string | null | undefined) => Record<string, any> | null;
134
- getFormRef(): (formID?: string | null) => Ref<FormInstance | null>;
135
- getRules(): (formID?: string | null) => Ref<Record<string, Array<RuleObject>>>;
129
+ rulesMap: Map<string, Ref<Record<string, RuleObject[]>>>;
130
+ }, {
131
+ /** 是否处于加载状态. */
132
+ isLoading(state: {
133
+ afterValidateListenersMap: Map<string, IKgSubmitAfterValidateCb[]>;
134
+ beforeOkListenersMap: Map<string, IKgSubmitBeforeOkCb[]>;
135
+ beforeOpenListenersMap: Map<string, IKgSubmitBeforeOpenCb[]>;
136
+ beforeRequestListenersMap: Map<string, IKgSubmitBeforeRequestCb[]>;
137
+ closeListenersMap: Map<string, IKgSubmitCloseCb[]>;
138
+ errorListenersMap: Map<string, IKgSubmitErrorCb[]>;
139
+ formRefMap: Map<string, Ref<FormInstance | null>>;
140
+ isLoadingMap: Map<string, boolean>;
141
+ modelMap: Map<string, Record<string, any>>;
142
+ okListenersMap: Map<string, IKgSubmitOkCb[]>;
143
+ openListenersMap: Map<string, IKgSubmitOpenCb[]>;
144
+ rulesMap: Map<string, Ref<Record<string, RuleObject[]>>>;
145
+ } & import("pinia").PiniaCustomStateProperties<{
146
+ afterValidateListenersMap: Map<string, IKgSubmitAfterValidateCb[]>;
147
+ beforeOkListenersMap: Map<string, IKgSubmitBeforeOkCb[]>;
148
+ beforeOpenListenersMap: Map<string, IKgSubmitBeforeOpenCb[]>;
149
+ beforeRequestListenersMap: Map<string, IKgSubmitBeforeRequestCb[]>;
150
+ closeListenersMap: Map<string, IKgSubmitCloseCb[]>;
151
+ errorListenersMap: Map<string, IKgSubmitErrorCb[]>;
152
+ /** 表单对象. */
153
+ formRefMap: Map<string, Ref<FormInstance | null>>;
154
+ isLoadingMap: Map<string, boolean>;
155
+ /** 表单数据对象. */
156
+ modelMap: Map<string, Record<string, any>>;
157
+ okListenersMap: Map<string, IKgSubmitOkCb[]>;
158
+ openListenersMap: Map<string, IKgSubmitOpenCb[]>;
159
+ /**
160
+ * <p>表单验证规则.</p>
161
+ * <p>在 beforeOk 事件中会将此对象传给调用者, 调用者可以修改此对象, 从而添加自定义的验证规则.</p>
162
+ */
163
+ rulesMap: Map<string, Ref<Record<string, RuleObject[]>>>;
164
+ }>): (formID?: string | null) => boolean;
165
+ getModel(state: {
166
+ afterValidateListenersMap: Map<string, IKgSubmitAfterValidateCb[]>;
167
+ beforeOkListenersMap: Map<string, IKgSubmitBeforeOkCb[]>;
168
+ beforeOpenListenersMap: Map<string, IKgSubmitBeforeOpenCb[]>;
169
+ beforeRequestListenersMap: Map<string, IKgSubmitBeforeRequestCb[]>;
170
+ closeListenersMap: Map<string, IKgSubmitCloseCb[]>;
171
+ errorListenersMap: Map<string, IKgSubmitErrorCb[]>;
172
+ formRefMap: Map<string, Ref<FormInstance | null>>;
173
+ isLoadingMap: Map<string, boolean>;
174
+ modelMap: Map<string, Record<string, any>>;
175
+ okListenersMap: Map<string, IKgSubmitOkCb[]>;
176
+ openListenersMap: Map<string, IKgSubmitOpenCb[]>;
177
+ rulesMap: Map<string, Ref<Record<string, RuleObject[]>>>;
178
+ } & import("pinia").PiniaCustomStateProperties<{
179
+ afterValidateListenersMap: Map<string, IKgSubmitAfterValidateCb[]>;
180
+ beforeOkListenersMap: Map<string, IKgSubmitBeforeOkCb[]>;
181
+ beforeOpenListenersMap: Map<string, IKgSubmitBeforeOpenCb[]>;
182
+ beforeRequestListenersMap: Map<string, IKgSubmitBeforeRequestCb[]>;
183
+ closeListenersMap: Map<string, IKgSubmitCloseCb[]>;
184
+ errorListenersMap: Map<string, IKgSubmitErrorCb[]>;
185
+ /** 表单对象. */
186
+ formRefMap: Map<string, Ref<FormInstance | null>>;
187
+ isLoadingMap: Map<string, boolean>;
188
+ /** 表单数据对象. */
189
+ modelMap: Map<string, Record<string, any>>;
190
+ okListenersMap: Map<string, IKgSubmitOkCb[]>;
191
+ openListenersMap: Map<string, IKgSubmitOpenCb[]>;
192
+ /**
193
+ * <p>表单验证规则.</p>
194
+ * <p>在 beforeOk 事件中会将此对象传给调用者, 调用者可以修改此对象, 从而添加自定义的验证规则.</p>
195
+ */
196
+ rulesMap: Map<string, Ref<Record<string, RuleObject[]>>>;
197
+ }>): (formID?: string | null) => Record<string, any> | null;
198
+ getFormRef(state: {
199
+ afterValidateListenersMap: Map<string, IKgSubmitAfterValidateCb[]>;
200
+ beforeOkListenersMap: Map<string, IKgSubmitBeforeOkCb[]>;
201
+ beforeOpenListenersMap: Map<string, IKgSubmitBeforeOpenCb[]>;
202
+ beforeRequestListenersMap: Map<string, IKgSubmitBeforeRequestCb[]>;
203
+ closeListenersMap: Map<string, IKgSubmitCloseCb[]>;
204
+ errorListenersMap: Map<string, IKgSubmitErrorCb[]>;
205
+ formRefMap: Map<string, Ref<FormInstance | null>>;
206
+ isLoadingMap: Map<string, boolean>;
207
+ modelMap: Map<string, Record<string, any>>;
208
+ okListenersMap: Map<string, IKgSubmitOkCb[]>;
209
+ openListenersMap: Map<string, IKgSubmitOpenCb[]>;
210
+ rulesMap: Map<string, Ref<Record<string, RuleObject[]>>>;
211
+ } & import("pinia").PiniaCustomStateProperties<{
212
+ afterValidateListenersMap: Map<string, IKgSubmitAfterValidateCb[]>;
213
+ beforeOkListenersMap: Map<string, IKgSubmitBeforeOkCb[]>;
214
+ beforeOpenListenersMap: Map<string, IKgSubmitBeforeOpenCb[]>;
215
+ beforeRequestListenersMap: Map<string, IKgSubmitBeforeRequestCb[]>;
216
+ closeListenersMap: Map<string, IKgSubmitCloseCb[]>;
217
+ errorListenersMap: Map<string, IKgSubmitErrorCb[]>;
218
+ /** 表单对象. */
219
+ formRefMap: Map<string, Ref<FormInstance | null>>;
220
+ isLoadingMap: Map<string, boolean>;
221
+ /** 表单数据对象. */
222
+ modelMap: Map<string, Record<string, any>>;
223
+ okListenersMap: Map<string, IKgSubmitOkCb[]>;
224
+ openListenersMap: Map<string, IKgSubmitOpenCb[]>;
225
+ /**
226
+ * <p>表单验证规则.</p>
227
+ * <p>在 beforeOk 事件中会将此对象传给调用者, 调用者可以修改此对象, 从而添加自定义的验证规则.</p>
228
+ */
229
+ rulesMap: Map<string, Ref<Record<string, RuleObject[]>>>;
230
+ }>): (formID?: string | null) => Ref<FormInstance | null>;
231
+ getRules(state: {
232
+ afterValidateListenersMap: Map<string, IKgSubmitAfterValidateCb[]>;
233
+ beforeOkListenersMap: Map<string, IKgSubmitBeforeOkCb[]>;
234
+ beforeOpenListenersMap: Map<string, IKgSubmitBeforeOpenCb[]>;
235
+ beforeRequestListenersMap: Map<string, IKgSubmitBeforeRequestCb[]>;
236
+ closeListenersMap: Map<string, IKgSubmitCloseCb[]>;
237
+ errorListenersMap: Map<string, IKgSubmitErrorCb[]>;
238
+ formRefMap: Map<string, Ref<FormInstance | null>>;
239
+ isLoadingMap: Map<string, boolean>;
240
+ modelMap: Map<string, Record<string, any>>;
241
+ okListenersMap: Map<string, IKgSubmitOkCb[]>;
242
+ openListenersMap: Map<string, IKgSubmitOpenCb[]>;
243
+ rulesMap: Map<string, Ref<Record<string, RuleObject[]>>>;
244
+ } & import("pinia").PiniaCustomStateProperties<{
245
+ afterValidateListenersMap: Map<string, IKgSubmitAfterValidateCb[]>;
246
+ beforeOkListenersMap: Map<string, IKgSubmitBeforeOkCb[]>;
247
+ beforeOpenListenersMap: Map<string, IKgSubmitBeforeOpenCb[]>;
248
+ beforeRequestListenersMap: Map<string, IKgSubmitBeforeRequestCb[]>;
249
+ closeListenersMap: Map<string, IKgSubmitCloseCb[]>;
250
+ errorListenersMap: Map<string, IKgSubmitErrorCb[]>;
251
+ /** 表单对象. */
252
+ formRefMap: Map<string, Ref<FormInstance | null>>;
253
+ isLoadingMap: Map<string, boolean>;
254
+ /** 表单数据对象. */
255
+ modelMap: Map<string, Record<string, any>>;
256
+ okListenersMap: Map<string, IKgSubmitOkCb[]>;
257
+ openListenersMap: Map<string, IKgSubmitOpenCb[]>;
258
+ /**
259
+ * <p>表单验证规则.</p>
260
+ * <p>在 beforeOk 事件中会将此对象传给调用者, 调用者可以修改此对象, 从而添加自定义的验证规则.</p>
261
+ */
262
+ rulesMap: Map<string, Ref<Record<string, RuleObject[]>>>;
263
+ }>): (formID?: string | null) => Ref<Record<string, Array<RuleObject>>>;
264
+ getVarSubmitConfig(state: {
265
+ afterValidateListenersMap: Map<string, IKgSubmitAfterValidateCb[]>;
266
+ beforeOkListenersMap: Map<string, IKgSubmitBeforeOkCb[]>;
267
+ beforeOpenListenersMap: Map<string, IKgSubmitBeforeOpenCb[]>;
268
+ beforeRequestListenersMap: Map<string, IKgSubmitBeforeRequestCb[]>;
269
+ closeListenersMap: Map<string, IKgSubmitCloseCb[]>;
270
+ errorListenersMap: Map<string, IKgSubmitErrorCb[]>;
271
+ formRefMap: Map<string, Ref<FormInstance | null>>;
272
+ isLoadingMap: Map<string, boolean>;
273
+ modelMap: Map<string, Record<string, any>>;
274
+ okListenersMap: Map<string, IKgSubmitOkCb[]>;
275
+ openListenersMap: Map<string, IKgSubmitOpenCb[]>;
276
+ rulesMap: Map<string, Ref<Record<string, RuleObject[]>>>;
277
+ } & import("pinia").PiniaCustomStateProperties<{
278
+ afterValidateListenersMap: Map<string, IKgSubmitAfterValidateCb[]>;
279
+ beforeOkListenersMap: Map<string, IKgSubmitBeforeOkCb[]>;
280
+ beforeOpenListenersMap: Map<string, IKgSubmitBeforeOpenCb[]>;
281
+ beforeRequestListenersMap: Map<string, IKgSubmitBeforeRequestCb[]>;
282
+ closeListenersMap: Map<string, IKgSubmitCloseCb[]>;
283
+ errorListenersMap: Map<string, IKgSubmitErrorCb[]>;
284
+ /** 表单对象. */
285
+ formRefMap: Map<string, Ref<FormInstance | null>>;
286
+ isLoadingMap: Map<string, boolean>;
287
+ /** 表单数据对象. */
288
+ modelMap: Map<string, Record<string, any>>;
289
+ okListenersMap: Map<string, IKgSubmitOkCb[]>;
290
+ openListenersMap: Map<string, IKgSubmitOpenCb[]>;
291
+ /**
292
+ * <p>表单验证规则.</p>
293
+ * <p>在 beforeOk 事件中会将此对象传给调用者, 调用者可以修改此对象, 从而添加自定义的验证规则.</p>
294
+ */
295
+ rulesMap: Map<string, Ref<Record<string, RuleObject[]>>>;
296
+ }>): (formID: string | null | undefined, param?: {
297
+ buttonType?: KG_BUTTON_TYPE;
298
+ buttonVarName?: string | null;
299
+ }) => VarSubmitConfig | null;
300
+ getVarSubmitDetails(state: {
301
+ afterValidateListenersMap: Map<string, IKgSubmitAfterValidateCb[]>;
302
+ beforeOkListenersMap: Map<string, IKgSubmitBeforeOkCb[]>;
303
+ beforeOpenListenersMap: Map<string, IKgSubmitBeforeOpenCb[]>;
304
+ beforeRequestListenersMap: Map<string, IKgSubmitBeforeRequestCb[]>;
305
+ closeListenersMap: Map<string, IKgSubmitCloseCb[]>;
306
+ errorListenersMap: Map<string, IKgSubmitErrorCb[]>;
307
+ formRefMap: Map<string, Ref<FormInstance | null>>;
308
+ isLoadingMap: Map<string, boolean>;
309
+ modelMap: Map<string, Record<string, any>>;
310
+ okListenersMap: Map<string, IKgSubmitOkCb[]>;
311
+ openListenersMap: Map<string, IKgSubmitOpenCb[]>;
312
+ rulesMap: Map<string, Ref<Record<string, RuleObject[]>>>;
313
+ } & import("pinia").PiniaCustomStateProperties<{
314
+ afterValidateListenersMap: Map<string, IKgSubmitAfterValidateCb[]>;
315
+ beforeOkListenersMap: Map<string, IKgSubmitBeforeOkCb[]>;
316
+ beforeOpenListenersMap: Map<string, IKgSubmitBeforeOpenCb[]>;
317
+ beforeRequestListenersMap: Map<string, IKgSubmitBeforeRequestCb[]>;
318
+ closeListenersMap: Map<string, IKgSubmitCloseCb[]>;
319
+ errorListenersMap: Map<string, IKgSubmitErrorCb[]>;
320
+ /** 表单对象. */
321
+ formRefMap: Map<string, Ref<FormInstance | null>>;
322
+ isLoadingMap: Map<string, boolean>;
323
+ /** 表单数据对象. */
324
+ modelMap: Map<string, Record<string, any>>;
325
+ okListenersMap: Map<string, IKgSubmitOkCb[]>;
326
+ openListenersMap: Map<string, IKgSubmitOpenCb[]>;
327
+ /**
328
+ * <p>表单验证规则.</p>
329
+ * <p>在 beforeOk 事件中会将此对象传给调用者, 调用者可以修改此对象, 从而添加自定义的验证规则.</p>
330
+ */
331
+ rulesMap: Map<string, Ref<Record<string, RuleObject[]>>>;
332
+ }>): (formID: string | null | undefined, param?: {
333
+ buttonType?: KG_BUTTON_TYPE;
334
+ buttonVarName?: string | null;
335
+ isKey?: 0 | 1 | null;
336
+ isVisible?: 0 | 1 | null;
337
+ varName?: string | null;
338
+ } | null) => Array<VarSubmitDetail>;
136
339
  }, {
137
- dispose(formID?: string | null): void;
340
+ /**
341
+ * 清理数据.
342
+ * @param formID 页面标识.
343
+ */
344
+ dispose(formID?: string | null): null | undefined;
345
+ /**
346
+ * 注册事件监听.
347
+ * @param formID 界面标识.
348
+ * @param event 事件名称.
349
+ * @param cb 回调函数.
350
+ */
138
351
  addEventListener(formID: string, event: IKgSubmitEvent, cb: IKgSubmitCb): void;
352
+ /**
353
+ * 退订事件监听.
354
+ * @param formID 界面标识.
355
+ * @param event 事件名称.
356
+ * @param cb 回调函数.
357
+ */
139
358
  removeEventListener(formID: string, event: IKgSubmitEvent, cb?: IKgSubmitCb): void;
140
359
  emit(formID: string, event: IKgSubmitEvent, param: IKgSubmitCbParam): Promise<boolean>;
141
360
  setIsLoading(formID: string, value: boolean): void;
142
- setModel(formID: string, model: Record<string, any>): void;
361
+ setModel(formID?: string | null, model?: Record<string, any> | null): void;
362
+ patchVarSubmitDetail(formID: string | null | undefined, param: {
363
+ buttonType?: KG_BUTTON_TYPE;
364
+ buttonVarName?: string | null;
365
+ properties: VarSubmitDetail;
366
+ varName: string | null | undefined;
367
+ }): void;
143
368
  }>;
144
- export declare type IKgSubmitStore = ReturnType<IKgSubmitStoreDefinition>;
145
- export declare const useKgSubmitStore: () => IKgSubmitStoreDefinition;
@@ -8,18 +8,14 @@ export declare function useKgTable(formID?: string | null): {
8
8
  /** 状态数据. */
9
9
  store: import("pinia").Store<"KgTable", {
10
10
  isReadyMap: Map<string, boolean>;
11
- datasMap: Map<String, any[]>;
11
+ datasMap: Map<String, any[]>; /** 当前勾选的唯一行, 如果勾选了多行或者零行, 则为 null. */
12
12
  selectedRowKeysMap: Map<string, import("vue").Ref<import("ant-design-vue/lib/_util/type").Key[]>>;
13
13
  selectedRowsMap: Map<string, any[]>;
14
- isRequestedMap: Map<string, boolean>; /** 当前分页选项. */
14
+ isRequestedMap: Map<string, boolean>;
15
15
  isRequestingMap: Map<string, boolean>;
16
16
  requestParamsMap: Map<string, Record<string, any>>;
17
17
  tableWidthMap: Map<string, number>;
18
- rowHeightMap: Map<string, import("./index.vm").IKgTableRowHeight>; /**
19
- * 事件: 双击某行.
20
- * @param cb 回调函数.
21
- * @param once 是否只会触发一次. 默认为 undefined.
22
- */
18
+ rowHeightMap: Map<string, import("./index.vm").IKgTableRowHeight>;
23
19
  onReadyListenersMap: Map<string, IKgTableReadyCb[]>;
24
20
  rowDoubleClickListenersMap: Map<string, IKgTableRowDoubleClickCb[]>;
25
21
  beforeRequestListenersMap: Map<string, IKgTableBeforeRequestCb[]>;
@@ -43,18 +39,14 @@ export declare function useKgTable(formID?: string | null): {
43
39
  afterRequestListenersMap: Map<string, IKgTableAfterRequestCb[]>;
44
40
  } & import("pinia").PiniaCustomStateProperties<{
45
41
  isReadyMap: Map<string, boolean>;
46
- datasMap: Map<String, any[]>;
42
+ datasMap: Map<String, any[]>; /** 当前勾选的唯一行, 如果勾选了多行或者零行, 则为 null. */
47
43
  selectedRowKeysMap: Map<string, import("vue").Ref<import("ant-design-vue/lib/_util/type").Key[]>>;
48
44
  selectedRowsMap: Map<string, any[]>;
49
- isRequestedMap: Map<string, boolean>; /** 当前分页选项. */
45
+ isRequestedMap: Map<string, boolean>;
50
46
  isRequestingMap: Map<string, boolean>;
51
47
  requestParamsMap: Map<string, Record<string, any>>;
52
48
  tableWidthMap: Map<string, number>;
53
- rowHeightMap: Map<string, import("./index.vm").IKgTableRowHeight>; /**
54
- * 事件: 双击某行.
55
- * @param cb 回调函数.
56
- * @param once 是否只会触发一次. 默认为 undefined.
57
- */
49
+ rowHeightMap: Map<string, import("./index.vm").IKgTableRowHeight>;
58
50
  onReadyListenersMap: Map<string, IKgTableReadyCb[]>;
59
51
  rowDoubleClickListenersMap: Map<string, IKgTableRowDoubleClickCb[]>;
60
52
  beforeRequestListenersMap: Map<string, IKgTableBeforeRequestCb[]>;
@@ -78,18 +70,14 @@ export declare function useKgTable(formID?: string | null): {
78
70
  afterRequestListenersMap: Map<string, IKgTableAfterRequestCb[]>;
79
71
  } & import("pinia").PiniaCustomStateProperties<{
80
72
  isReadyMap: Map<string, boolean>;
81
- datasMap: Map<String, any[]>;
73
+ datasMap: Map<String, any[]>; /** 当前勾选的唯一行, 如果勾选了多行或者零行, 则为 null. */
82
74
  selectedRowKeysMap: Map<string, import("vue").Ref<import("ant-design-vue/lib/_util/type").Key[]>>;
83
75
  selectedRowsMap: Map<string, any[]>;
84
- isRequestedMap: Map<string, boolean>; /** 当前分页选项. */
76
+ isRequestedMap: Map<string, boolean>;
85
77
  isRequestingMap: Map<string, boolean>;
86
78
  requestParamsMap: Map<string, Record<string, any>>;
87
79
  tableWidthMap: Map<string, number>;
88
- rowHeightMap: Map<string, import("./index.vm").IKgTableRowHeight>; /**
89
- * 事件: 双击某行.
90
- * @param cb 回调函数.
91
- * @param once 是否只会触发一次. 默认为 undefined.
92
- */
80
+ rowHeightMap: Map<string, import("./index.vm").IKgTableRowHeight>;
93
81
  onReadyListenersMap: Map<string, IKgTableReadyCb[]>;
94
82
  rowDoubleClickListenersMap: Map<string, IKgTableRowDoubleClickCb[]>;
95
83
  beforeRequestListenersMap: Map<string, IKgTableBeforeRequestCb[]>;
@@ -113,18 +101,14 @@ export declare function useKgTable(formID?: string | null): {
113
101
  afterRequestListenersMap: Map<string, IKgTableAfterRequestCb[]>;
114
102
  } & import("pinia").PiniaCustomStateProperties<{
115
103
  isReadyMap: Map<string, boolean>;
116
- datasMap: Map<String, any[]>;
104
+ datasMap: Map<String, any[]>; /** 当前勾选的唯一行, 如果勾选了多行或者零行, 则为 null. */
117
105
  selectedRowKeysMap: Map<string, import("vue").Ref<import("ant-design-vue/lib/_util/type").Key[]>>;
118
106
  selectedRowsMap: Map<string, any[]>;
119
- isRequestedMap: Map<string, boolean>; /** 当前分页选项. */
107
+ isRequestedMap: Map<string, boolean>;
120
108
  isRequestingMap: Map<string, boolean>;
121
109
  requestParamsMap: Map<string, Record<string, any>>;
122
110
  tableWidthMap: Map<string, number>;
123
- rowHeightMap: Map<string, import("./index.vm").IKgTableRowHeight>; /**
124
- * 事件: 双击某行.
125
- * @param cb 回调函数.
126
- * @param once 是否只会触发一次. 默认为 undefined.
127
- */
111
+ rowHeightMap: Map<string, import("./index.vm").IKgTableRowHeight>;
128
112
  onReadyListenersMap: Map<string, IKgTableReadyCb[]>;
129
113
  rowDoubleClickListenersMap: Map<string, IKgTableRowDoubleClickCb[]>;
130
114
  beforeRequestListenersMap: Map<string, IKgTableBeforeRequestCb[]>;
@@ -148,18 +132,14 @@ export declare function useKgTable(formID?: string | null): {
148
132
  afterRequestListenersMap: Map<string, IKgTableAfterRequestCb[]>;
149
133
  } & import("pinia").PiniaCustomStateProperties<{
150
134
  isReadyMap: Map<string, boolean>;
151
- datasMap: Map<String, any[]>;
135
+ datasMap: Map<String, any[]>; /** 当前勾选的唯一行, 如果勾选了多行或者零行, 则为 null. */
152
136
  selectedRowKeysMap: Map<string, import("vue").Ref<import("ant-design-vue/lib/_util/type").Key[]>>;
153
137
  selectedRowsMap: Map<string, any[]>;
154
- isRequestedMap: Map<string, boolean>; /** 当前分页选项. */
138
+ isRequestedMap: Map<string, boolean>;
155
139
  isRequestingMap: Map<string, boolean>;
156
140
  requestParamsMap: Map<string, Record<string, any>>;
157
141
  tableWidthMap: Map<string, number>;
158
- rowHeightMap: Map<string, import("./index.vm").IKgTableRowHeight>; /**
159
- * 事件: 双击某行.
160
- * @param cb 回调函数.
161
- * @param once 是否只会触发一次. 默认为 undefined.
162
- */
142
+ rowHeightMap: Map<string, import("./index.vm").IKgTableRowHeight>;
163
143
  onReadyListenersMap: Map<string, IKgTableReadyCb[]>;
164
144
  rowDoubleClickListenersMap: Map<string, IKgTableRowDoubleClickCb[]>;
165
145
  beforeRequestListenersMap: Map<string, IKgTableBeforeRequestCb[]>;
@@ -183,18 +163,14 @@ export declare function useKgTable(formID?: string | null): {
183
163
  afterRequestListenersMap: Map<string, IKgTableAfterRequestCb[]>;
184
164
  } & import("pinia").PiniaCustomStateProperties<{
185
165
  isReadyMap: Map<string, boolean>;
186
- datasMap: Map<String, any[]>;
166
+ datasMap: Map<String, any[]>; /** 当前勾选的唯一行, 如果勾选了多行或者零行, 则为 null. */
187
167
  selectedRowKeysMap: Map<string, import("vue").Ref<import("ant-design-vue/lib/_util/type").Key[]>>;
188
168
  selectedRowsMap: Map<string, any[]>;
189
- isRequestedMap: Map<string, boolean>; /** 当前分页选项. */
169
+ isRequestedMap: Map<string, boolean>;
190
170
  isRequestingMap: Map<string, boolean>;
191
171
  requestParamsMap: Map<string, Record<string, any>>;
192
172
  tableWidthMap: Map<string, number>;
193
- rowHeightMap: Map<string, import("./index.vm").IKgTableRowHeight>; /**
194
- * 事件: 双击某行.
195
- * @param cb 回调函数.
196
- * @param once 是否只会触发一次. 默认为 undefined.
197
- */
173
+ rowHeightMap: Map<string, import("./index.vm").IKgTableRowHeight>;
198
174
  onReadyListenersMap: Map<string, IKgTableReadyCb[]>;
199
175
  rowDoubleClickListenersMap: Map<string, IKgTableRowDoubleClickCb[]>;
200
176
  beforeRequestListenersMap: Map<string, IKgTableBeforeRequestCb[]>;
@@ -218,18 +194,14 @@ export declare function useKgTable(formID?: string | null): {
218
194
  afterRequestListenersMap: Map<string, IKgTableAfterRequestCb[]>;
219
195
  } & import("pinia").PiniaCustomStateProperties<{
220
196
  isReadyMap: Map<string, boolean>;
221
- datasMap: Map<String, any[]>;
197
+ datasMap: Map<String, any[]>; /** 当前勾选的唯一行, 如果勾选了多行或者零行, 则为 null. */
222
198
  selectedRowKeysMap: Map<string, import("vue").Ref<import("ant-design-vue/lib/_util/type").Key[]>>;
223
199
  selectedRowsMap: Map<string, any[]>;
224
- isRequestedMap: Map<string, boolean>; /** 当前分页选项. */
200
+ isRequestedMap: Map<string, boolean>;
225
201
  isRequestingMap: Map<string, boolean>;
226
202
  requestParamsMap: Map<string, Record<string, any>>;
227
203
  tableWidthMap: Map<string, number>;
228
- rowHeightMap: Map<string, import("./index.vm").IKgTableRowHeight>; /**
229
- * 事件: 双击某行.
230
- * @param cb 回调函数.
231
- * @param once 是否只会触发一次. 默认为 undefined.
232
- */
204
+ rowHeightMap: Map<string, import("./index.vm").IKgTableRowHeight>;
233
205
  onReadyListenersMap: Map<string, IKgTableReadyCb[]>;
234
206
  rowDoubleClickListenersMap: Map<string, IKgTableRowDoubleClickCb[]>;
235
207
  beforeRequestListenersMap: Map<string, IKgTableBeforeRequestCb[]>;
@@ -253,18 +225,14 @@ export declare function useKgTable(formID?: string | null): {
253
225
  afterRequestListenersMap: Map<string, IKgTableAfterRequestCb[]>;
254
226
  } & import("pinia").PiniaCustomStateProperties<{
255
227
  isReadyMap: Map<string, boolean>;
256
- datasMap: Map<String, any[]>;
228
+ datasMap: Map<String, any[]>; /** 当前勾选的唯一行, 如果勾选了多行或者零行, 则为 null. */
257
229
  selectedRowKeysMap: Map<string, import("vue").Ref<import("ant-design-vue/lib/_util/type").Key[]>>;
258
230
  selectedRowsMap: Map<string, any[]>;
259
- isRequestedMap: Map<string, boolean>; /** 当前分页选项. */
231
+ isRequestedMap: Map<string, boolean>;
260
232
  isRequestingMap: Map<string, boolean>;
261
233
  requestParamsMap: Map<string, Record<string, any>>;
262
234
  tableWidthMap: Map<string, number>;
263
- rowHeightMap: Map<string, import("./index.vm").IKgTableRowHeight>; /**
264
- * 事件: 双击某行.
265
- * @param cb 回调函数.
266
- * @param once 是否只会触发一次. 默认为 undefined.
267
- */
235
+ rowHeightMap: Map<string, import("./index.vm").IKgTableRowHeight>;
268
236
  onReadyListenersMap: Map<string, IKgTableReadyCb[]>;
269
237
  rowDoubleClickListenersMap: Map<string, IKgTableRowDoubleClickCb[]>;
270
238
  beforeRequestListenersMap: Map<string, IKgTableBeforeRequestCb[]>;
@@ -288,18 +256,14 @@ export declare function useKgTable(formID?: string | null): {
288
256
  afterRequestListenersMap: Map<string, IKgTableAfterRequestCb[]>;
289
257
  } & import("pinia").PiniaCustomStateProperties<{
290
258
  isReadyMap: Map<string, boolean>;
291
- datasMap: Map<String, any[]>;
259
+ datasMap: Map<String, any[]>; /** 当前勾选的唯一行, 如果勾选了多行或者零行, 则为 null. */
292
260
  selectedRowKeysMap: Map<string, import("vue").Ref<import("ant-design-vue/lib/_util/type").Key[]>>;
293
261
  selectedRowsMap: Map<string, any[]>;
294
- isRequestedMap: Map<string, boolean>; /** 当前分页选项. */
262
+ isRequestedMap: Map<string, boolean>;
295
263
  isRequestingMap: Map<string, boolean>;
296
264
  requestParamsMap: Map<string, Record<string, any>>;
297
265
  tableWidthMap: Map<string, number>;
298
- rowHeightMap: Map<string, import("./index.vm").IKgTableRowHeight>; /**
299
- * 事件: 双击某行.
300
- * @param cb 回调函数.
301
- * @param once 是否只会触发一次. 默认为 undefined.
302
- */
266
+ rowHeightMap: Map<string, import("./index.vm").IKgTableRowHeight>;
303
267
  onReadyListenersMap: Map<string, IKgTableReadyCb[]>;
304
268
  rowDoubleClickListenersMap: Map<string, IKgTableRowDoubleClickCb[]>;
305
269
  beforeRequestListenersMap: Map<string, IKgTableBeforeRequestCb[]>;
@@ -323,18 +287,14 @@ export declare function useKgTable(formID?: string | null): {
323
287
  afterRequestListenersMap: Map<string, IKgTableAfterRequestCb[]>;
324
288
  } & import("pinia").PiniaCustomStateProperties<{
325
289
  isReadyMap: Map<string, boolean>;
326
- datasMap: Map<String, any[]>;
290
+ datasMap: Map<String, any[]>; /** 当前勾选的唯一行, 如果勾选了多行或者零行, 则为 null. */
327
291
  selectedRowKeysMap: Map<string, import("vue").Ref<import("ant-design-vue/lib/_util/type").Key[]>>;
328
292
  selectedRowsMap: Map<string, any[]>;
329
- isRequestedMap: Map<string, boolean>; /** 当前分页选项. */
293
+ isRequestedMap: Map<string, boolean>;
330
294
  isRequestingMap: Map<string, boolean>;
331
295
  requestParamsMap: Map<string, Record<string, any>>;
332
296
  tableWidthMap: Map<string, number>;
333
- rowHeightMap: Map<string, import("./index.vm").IKgTableRowHeight>; /**
334
- * 事件: 双击某行.
335
- * @param cb 回调函数.
336
- * @param once 是否只会触发一次. 默认为 undefined.
337
- */
297
+ rowHeightMap: Map<string, import("./index.vm").IKgTableRowHeight>;
338
298
  onReadyListenersMap: Map<string, IKgTableReadyCb[]>;
339
299
  rowDoubleClickListenersMap: Map<string, IKgTableRowDoubleClickCb[]>;
340
300
  beforeRequestListenersMap: Map<string, IKgTableBeforeRequestCb[]>;
@@ -358,18 +318,14 @@ export declare function useKgTable(formID?: string | null): {
358
318
  afterRequestListenersMap: Map<string, IKgTableAfterRequestCb[]>;
359
319
  } & import("pinia").PiniaCustomStateProperties<{
360
320
  isReadyMap: Map<string, boolean>;
361
- datasMap: Map<String, any[]>;
321
+ datasMap: Map<String, any[]>; /** 当前勾选的唯一行, 如果勾选了多行或者零行, 则为 null. */
362
322
  selectedRowKeysMap: Map<string, import("vue").Ref<import("ant-design-vue/lib/_util/type").Key[]>>;
363
323
  selectedRowsMap: Map<string, any[]>;
364
- isRequestedMap: Map<string, boolean>; /** 当前分页选项. */
324
+ isRequestedMap: Map<string, boolean>;
365
325
  isRequestingMap: Map<string, boolean>;
366
326
  requestParamsMap: Map<string, Record<string, any>>;
367
327
  tableWidthMap: Map<string, number>;
368
- rowHeightMap: Map<string, import("./index.vm").IKgTableRowHeight>; /**
369
- * 事件: 双击某行.
370
- * @param cb 回调函数.
371
- * @param once 是否只会触发一次. 默认为 undefined.
372
- */
328
+ rowHeightMap: Map<string, import("./index.vm").IKgTableRowHeight>;
373
329
  onReadyListenersMap: Map<string, IKgTableReadyCb[]>;
374
330
  rowDoubleClickListenersMap: Map<string, IKgTableRowDoubleClickCb[]>;
375
331
  beforeRequestListenersMap: Map<string, IKgTableBeforeRequestCb[]>;
@@ -393,18 +349,14 @@ export declare function useKgTable(formID?: string | null): {
393
349
  afterRequestListenersMap: Map<string, IKgTableAfterRequestCb[]>;
394
350
  } & import("pinia").PiniaCustomStateProperties<{
395
351
  isReadyMap: Map<string, boolean>;
396
- datasMap: Map<String, any[]>;
352
+ datasMap: Map<String, any[]>; /** 当前勾选的唯一行, 如果勾选了多行或者零行, 则为 null. */
397
353
  selectedRowKeysMap: Map<string, import("vue").Ref<import("ant-design-vue/lib/_util/type").Key[]>>;
398
354
  selectedRowsMap: Map<string, any[]>;
399
- isRequestedMap: Map<string, boolean>; /** 当前分页选项. */
355
+ isRequestedMap: Map<string, boolean>;
400
356
  isRequestingMap: Map<string, boolean>;
401
357
  requestParamsMap: Map<string, Record<string, any>>;
402
358
  tableWidthMap: Map<string, number>;
403
- rowHeightMap: Map<string, import("./index.vm").IKgTableRowHeight>; /**
404
- * 事件: 双击某行.
405
- * @param cb 回调函数.
406
- * @param once 是否只会触发一次. 默认为 undefined.
407
- */
359
+ rowHeightMap: Map<string, import("./index.vm").IKgTableRowHeight>;
408
360
  onReadyListenersMap: Map<string, IKgTableReadyCb[]>;
409
361
  rowDoubleClickListenersMap: Map<string, IKgTableRowDoubleClickCb[]>;
410
362
  beforeRequestListenersMap: Map<string, IKgTableBeforeRequestCb[]>;