@kengic/vue 0.21.5-beta.2 → 0.22.1-beta.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 +156 -68
  2. package/dist/index.css +1 -1
  3. package/dist/kengic-vue.js +10150 -10225
  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 +141 -68
  20. package/dist/src/components/KgButton/index.store.d.ts +175 -54
  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/KgVar/index.hooks.d.ts +2642 -2027
  39. package/dist/src/components/KgVar/index.store.d.ts +2421 -2395
  40. package/dist/src/components/KgVar/index.store.service.d.ts +3 -3
  41. package/dist/src/components/KgVarConfig/components/submit/{KgVarConfig.Modal.Submit.VarSubmitField.d.ts → KgVarConfig.Modal.Submit.VarSubmitDetail.d.ts} +2 -2
  42. package/dist/src/components/KgVarConfig/index.store.d.ts +7 -7
  43. package/dist/src/consts/i18n/en.d.ts +5 -4
  44. package/dist/src/consts/i18n/zh_CN.d.ts +5 -4
  45. package/dist/src/consts/index.d.ts +4 -4
  46. package/dist/src/consts/index.vm.d.ts +8 -11
  47. package/dist/src/pages/KgPageDda/components/KgPageDda.Create.store.d.ts +170 -440
  48. package/dist/src/utils/kg-route.util.d.ts +3 -2
  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;