@kengic/vue 0.22.1-beta.0 → 0.23.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (40) hide show
  1. package/CHANGELOG.md +58 -22
  2. package/dist/index.css +1 -1
  3. package/dist/kengic-vue.js +4192 -3968
  4. package/dist/project/build/script/postBuild.ts +1 -1
  5. package/dist/src/apis/WMS/Controllers/DescriptionController/ListByCodeNamesAndCodeValues.d.ts +16 -0
  6. package/dist/src/apis/WMS/Controllers/DescriptionController/index.d.ts +1 -0
  7. package/dist/src/apis/WMS/models.d.ts +8 -0
  8. package/dist/src/components/KgButton/index.hooks.d.ts +66 -67
  9. package/dist/src/components/KgButton/index.store.d.ts +43 -182
  10. package/dist/src/components/KgForm/index.hooks.d.ts +22 -28
  11. package/dist/src/components/KgForm/index.store.d.ts +22 -15
  12. package/dist/src/components/KgForm.Item/components/KgForm.Item.CheckboxGroup.d.ts +2 -0
  13. package/dist/src/components/KgForm.Item/components/KgForm.Item.RadioGroup.d.ts +0 -2
  14. package/dist/src/components/KgForm.Item/components/KgForm.Item.Select.d.ts +2 -4
  15. package/dist/src/components/KgSearch/index.hooks.d.ts +31 -136
  16. package/dist/src/components/KgSearch/index.store.d.ts +59 -175
  17. package/dist/src/components/KgSubmit/index.hooks.d.ts +80 -279
  18. package/dist/src/components/KgSubmit/index.store.d.ts +40 -225
  19. package/dist/src/components/KgTable/{KgTable.hooks.d.ts → KgTable.service.d.ts} +8 -16
  20. package/dist/src/components/KgTable/components/setting/KgTable.Setting.d.ts +0 -1
  21. package/dist/src/components/KgTable/components/setting/config/KgTable.Setting.ConfigModal.d.ts +0 -2
  22. package/dist/src/components/KgTable/index.hooks.d.ts +65 -428
  23. package/dist/src/components/KgTable/index.store.d.ts +87 -621
  24. package/dist/src/components/KgVar/index.hooks.d.ts +105 -3468
  25. package/dist/src/components/KgVar/index.store.d.ts +129 -3213
  26. package/dist/src/config/index.hooks.d.ts +31 -38
  27. package/dist/src/config/index.store.d.ts +74 -52
  28. package/dist/src/consts/i18n/en.d.ts +1 -0
  29. package/dist/src/consts/i18n/zh_CN.d.ts +1 -0
  30. package/dist/src/consts/index.d.ts +20 -13
  31. package/dist/src/consts/index.vm.d.ts +78 -51
  32. package/dist/src/pages/KgPageDda/components/KgPageDda.Create.store.d.ts +1 -1
  33. package/dist/src/utils/kg.util.d.ts +2 -2
  34. package/package.json +1 -1
  35. /package/dist/src/components/KgForm.Item/{KgForm.Item.hooks.d.ts → KgForm.Item.service.d.ts} +0 -0
  36. /package/dist/src/components/KgForm.Item/components/{KgForm.Item.Select.hooks.d.ts → KgForm.Item.Select.service.d.ts} +0 -0
  37. /package/dist/src/components/KgModal/{KgModal.hooks.d.ts → KgModal.service.d.ts} +0 -0
  38. /package/dist/src/components/KgSearch/{KgSearch.hooks.d.ts → KgSearch.service.d.ts} +0 -0
  39. /package/dist/src/components/KgSubmit/{KgSubmit.hooks.d.ts → KgSubmit.service.d.ts} +0 -0
  40. /package/dist/src/components/KgTable/components/setting/{KgTable.Setting.hooks.d.ts → KgTable.Setting.service.d.ts} +0 -0
@@ -1,8 +1,10 @@
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';
3
4
  import { Ref } from 'vue';
4
5
  import { VarSubmitConfig, VarSubmitDetail } from '../../apis/WMS/models';
5
6
  import { IKgEventCb, KG_BUTTON_TYPE } from '../../consts';
7
+ import { KgAny } from '../../types';
6
8
  import { IKgTableRow } from '../KgTable';
7
9
  /**
8
10
  * 事件类型.
@@ -73,7 +75,7 @@ export declare type IKgSubmitBeforeRequestCbParam = {
73
75
  * <p>请求参数.</p>
74
76
  * <p>是一个对象或者列表.</p>
75
77
  */
76
- data: Ref<Record<string, any> | Array<Record<string, any>>>;
78
+ data: Ref<KgAny>;
77
79
  isCopying: boolean | null;
78
80
  isCreating: boolean | null;
79
81
  isDeleting: boolean | null;
@@ -108,240 +110,45 @@ export declare type IKgSubmitErrorCb = ((param: any) => Promise<boolean>) & IKgE
108
110
  export declare type IKgSubmitCloseCb = ((param?: any | null) => Promise<boolean>) & IKgEventCb;
109
111
  export declare type IKgSubmitCbParam = IKgSubmitBeforeOpenCbParam | IKgSubmitOpenCbParam | IKgSubmitBeforeOkCbParam | IKgSubmitAfterValidateCbParam | IKgSubmitBeforeRequestCbParam | IKgSubmitOkCbParam | null;
110
112
  export declare type IKgSubmitCb = IKgSubmitBeforeOpenCb | IKgSubmitOpenCb | IKgSubmitBeforeOkCb | IKgSubmitAfterValidateCb | IKgSubmitBeforeRequestCb | IKgSubmitOkCb | IKgSubmitErrorCb | 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[]>;
113
+ export interface IUseKgSubmitStoreState {
114
+ afterValidateListenersMap: Map<string, Array<IKgSubmitAfterValidateCb>>;
115
+ beforeOkListenersMap: Map<string, Array<IKgSubmitBeforeOkCb>>;
116
+ beforeOpenListenersMap: Map<string, Array<IKgSubmitBeforeOpenCb>>;
117
+ beforeRequestListenersMap: Map<string, Array<IKgSubmitBeforeRequestCb>>;
118
+ closeListenersMap: Map<string, Array<IKgSubmitCloseCb>>;
119
+ errorListenersMap: Map<string, Array<IKgSubmitErrorCb>>;
118
120
  /** 表单对象. */
119
121
  formRefMap: Map<string, Ref<FormInstance | null>>;
120
122
  isLoadingMap: Map<string, boolean>;
121
123
  /** 表单数据对象. */
122
124
  modelMap: Map<string, Record<string, any>>;
123
- okListenersMap: Map<string, IKgSubmitOkCb[]>;
124
- openListenersMap: Map<string, IKgSubmitOpenCb[]>;
125
+ okListenersMap: Map<string, Array<IKgSubmitOkCb>>;
126
+ openListenersMap: Map<string, Array<IKgSubmitOpenCb>>;
125
127
  /**
126
128
  * <p>表单验证规则.</p>
127
129
  * <p>在 beforeOk 事件中会将此对象传给调用者, 调用者可以修改此对象, 从而添加自定义的验证规则.</p>
128
130
  */
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?: {
131
+ rulesMap: Map<string, Ref<Record<string, Array<RuleObject>>>>;
132
+ }
133
+ export interface IUseKgSubmitStoreGetters {
134
+ getFormRef(): (formID?: string | null) => Ref<FormInstance | null>;
135
+ getModel(): (formID?: string | null) => Record<string, any> | null;
136
+ getRules(): (formID?: string | null) => Ref<Record<string, Array<RuleObject>>>;
137
+ getVarSubmitConfig(): (formID: string | null | undefined, param?: {
297
138
  buttonType?: KG_BUTTON_TYPE;
298
139
  buttonVarName?: string | null;
299
140
  }) => 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?: {
141
+ getVarSubmitDetails(): (formID: string | null | undefined, param?: {
333
142
  buttonType?: KG_BUTTON_TYPE;
334
143
  buttonVarName?: string | null;
335
144
  isKey?: 0 | 1 | null;
336
145
  isVisible?: 0 | 1 | null;
337
146
  varName?: string | null;
338
147
  } | null) => Array<VarSubmitDetail>;
339
- }, {
340
- /**
341
- * 清理数据.
342
- * @param formID 页面标识.
343
- */
344
- dispose(formID?: string | null): null | undefined;
148
+ /** 是否处于加载状态. */
149
+ isLoading(): (formID?: string | null) => boolean;
150
+ }
151
+ export interface IUseKgSubmitStoreActions {
345
152
  /**
346
153
  * 注册事件监听.
347
154
  * @param formID 界面标识.
@@ -350,19 +157,27 @@ export declare const useKgSubmitStore: import("pinia").StoreDefinition<"KgSubmit
350
157
  */
351
158
  addEventListener(formID: string, event: IKgSubmitEvent, cb: IKgSubmitCb): void;
352
159
  /**
353
- * 退订事件监听.
354
- * @param formID 界面标识.
355
- * @param event 事件名称.
356
- * @param cb 回调函数.
160
+ * 清理数据.
161
+ * @param formID 页面标识.
357
162
  */
358
- removeEventListener(formID: string, event: IKgSubmitEvent, cb?: IKgSubmitCb): void;
163
+ dispose(formID?: string | null): void;
359
164
  emit(formID: string, event: IKgSubmitEvent, param: IKgSubmitCbParam): Promise<boolean>;
360
- setIsLoading(formID: string, value: boolean): void;
361
- setModel(formID?: string | null, model?: Record<string, any> | null): void;
362
165
  patchVarSubmitDetail(formID: string | null | undefined, param: {
363
166
  buttonType?: KG_BUTTON_TYPE;
364
167
  buttonVarName?: string | null;
365
168
  properties: VarSubmitDetail;
366
169
  varName: string | null | undefined;
367
170
  }): void;
368
- }>;
171
+ /**
172
+ * 退订事件监听.
173
+ * @param formID 界面标识.
174
+ * @param event 事件名称.
175
+ * @param cb 回调函数.
176
+ */
177
+ removeEventListener(formID: string, event: IKgSubmitEvent, cb?: IKgSubmitCb): void;
178
+ setIsLoading(formID: string, value: boolean): void;
179
+ setModel(formID?: string | null, model?: Record<string, any> | null): void;
180
+ }
181
+ export declare type IUseKgSubmitStore = StoreDefinition<'KgSubmit', IUseKgSubmitStoreState, IUseKgSubmitStoreGetters, IUseKgSubmitStoreActions>;
182
+ export declare type IKgSubmitStore = ReturnType<IUseKgSubmitStore>;
183
+ export declare const useKgSubmitStore: IUseKgSubmitStore;
@@ -17,25 +17,17 @@ export declare type IUseColumns = {
17
17
  scrollX: ComputedRef<string>;
18
18
  };
19
19
  export declare function _useColumns(props: IKgTableProps): IUseColumns;
20
- export declare type IUseLoading = {
20
+ export declare function _useLoading(): {
21
21
  /** 是否显示加载状态. */
22
22
  isLoading: ComputedRef<boolean>;
23
23
  };
24
- export declare function _useLoading(): IUseLoading;
25
- export declare type IUseResizeObserver = {};
26
- export declare function _useResizeObserver(kgTableRef: Ref<UnwrapRef<HTMLDivElement | null>>): IUseResizeObserver;
27
- export declare type IUseDragColumn = {};
28
- export declare function _useDragColumn(kgTableRef: Ref<UnwrapRef<HTMLDivElement | null>>, columns: ComputedRef<ColumnsType<IKgTableRow>>): IUseDragColumn;
29
- export interface IUseDatas {
30
- /** 表格数据. */
31
- datas: ComputedRef<Array<IKgTableRow>>;
32
- /**
33
- * 处理表格数据.
34
- * @param response 查询接口返回数据.
35
- */
36
- transformDatas(response: Ref<any>): {
24
+ export declare function _useResizeObserver(kgTableRef: Ref<UnwrapRef<HTMLDivElement | null>>): {};
25
+ export declare function _useDragColumn(kgTableRef: Ref<UnwrapRef<HTMLDivElement | null>>, columns: ComputedRef<ColumnsType<IKgTableRow>>): {};
26
+ export declare function _useDatas(): {
27
+ datas: ComputedRef<IKgTableRow[]>;
28
+ transformDatas: (response: Ref<any>) => {
37
29
  datas: Ref<Array<IKgTableRow>>;
38
30
  total: Ref<number>;
39
31
  };
40
- }
41
- export declare function _useDatas(): IUseDatas;
32
+ requestDescriptions: () => Promise<void>;
33
+ };
@@ -1,5 +1,4 @@
1
1
  import { PropType } from 'vue';
2
- import './KgTable.Setting.less';
3
2
  export declare const getProps: () => {
4
3
  kgDisabled: {
5
4
  type: PropType<boolean>;
@@ -1,6 +1,4 @@
1
1
  import { ExtractPropTypes, PropType } from 'vue';
2
- import '../KgTable.Setting.less';
3
- import './KgTable.Setting.ConfigModal.less';
4
2
  export declare const getProps: () => {
5
3
  visible: PropType<boolean>;
6
4
  'onUpdate:visible': PropType<(value: boolean) => void>;