@kengic/vue 0.21.5-beta.2 → 0.22.0
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +85 -0
- package/dist/index.css +1 -1
- package/dist/kengic-vue.js +10142 -10225
- package/dist/project/index.ts +1 -1
- package/dist/src/apis/WMS/Controllers/{VarVariableCatalogController → VarConfigDescriptionController}/Add.d.ts +2 -2
- package/dist/src/apis/WMS/Controllers/{VarVariableCatalogController → VarConfigDescriptionController}/Delete.d.ts +1 -1
- package/dist/src/apis/WMS/Controllers/{VarVariableCatalogController → VarConfigDescriptionController}/DeleteBatch.d.ts +1 -1
- package/dist/src/apis/WMS/Controllers/{VarVariableCatalogController → VarConfigDescriptionController}/Edit.d.ts +2 -2
- package/dist/src/apis/WMS/Controllers/{VarVariableCatalogController → VarConfigDescriptionController}/ExportXls.d.ts +1 -1
- package/dist/src/apis/WMS/Controllers/{VarVariableCatalogController → VarConfigDescriptionController}/ImportExcel.d.ts +1 -1
- package/dist/src/apis/WMS/Controllers/{VarVariableCatalogController → VarConfigDescriptionController}/List.d.ts +2 -2
- package/dist/src/apis/WMS/Controllers/{VarContextController → VarConfigDescriptionController}/QueryById.d.ts +2 -2
- package/dist/src/apis/WMS/Controllers/{VarContextController → VarVariableController}/Add.d.ts +1 -1
- package/dist/src/apis/WMS/Controllers/{VarContextController → VarVariableController}/Edit.d.ts +1 -1
- package/dist/src/apis/WMS/Controllers/{VarContextController → VarVariableController}/List.d.ts +1 -1
- package/dist/src/apis/WMS/Controllers/{VarVariableCatalogController → VarVariableController}/QueryById.d.ts +2 -2
- package/dist/src/apis/WMS/Controllers/index.d.ts +2 -2
- package/dist/src/apis/WMS/models.d.ts +179 -251
- package/dist/src/components/KgButton/index.hooks.d.ts +239 -42
- package/dist/src/components/KgButton/index.store.d.ts +171 -53
- package/dist/src/components/KgForm.Item/KgForm.Item.hooks.d.ts +4 -6
- package/dist/src/components/KgForm.Item/components/KgForm.Item.Checkbox.d.ts +3 -3
- package/dist/src/components/KgForm.Item/components/KgForm.Item.CheckboxGroup.d.ts +1 -1
- package/dist/src/components/KgForm.Item/components/KgForm.Item.Date.d.ts +1 -1
- package/dist/src/components/KgForm.Item/components/KgForm.Item.DateRange.d.ts +1 -1
- package/dist/src/components/KgForm.Item/components/KgForm.Item.Input.d.ts +1 -1
- package/dist/src/components/KgForm.Item/components/KgForm.Item.InputNumber.d.ts +1 -1
- package/dist/src/components/KgForm.Item/components/KgForm.Item.RadioGroup.d.ts +5 -3
- package/dist/src/components/KgForm.Item/components/KgForm.Item.Select.d.ts +5 -3
- package/dist/src/components/KgForm.Item/components/KgForm.Item.Select.hooks.d.ts +3 -3
- package/dist/src/components/KgForm.Item/components/KgForm.Item.Switch.d.ts +1 -1
- package/dist/src/components/KgForm.Item/components/KgForm.Item.TextArea.d.ts +1 -1
- package/dist/src/components/KgForm.Item/index.vm.d.ts +5 -5
- package/dist/src/components/KgSearch/KgSearch.hooks.d.ts +0 -7
- package/dist/src/components/KgSubmit/KgSubmit.hooks.d.ts +4 -4
- package/dist/src/components/KgSubmit/index.hooks.d.ts +316 -19
- package/dist/src/components/KgSubmit/index.store.d.ts +247 -24
- package/dist/src/components/KgVar/index.hooks.d.ts +2796 -2027
- package/dist/src/components/KgVar/index.store.d.ts +2421 -2395
- package/dist/src/components/KgVar/index.store.service.d.ts +3 -3
- package/dist/src/components/KgVarConfig/components/submit/{KgVarConfig.Modal.Submit.VarSubmitField.d.ts → KgVarConfig.Modal.Submit.VarSubmitDetail.d.ts} +2 -2
- package/dist/src/components/KgVarConfig/index.store.d.ts +7 -7
- package/dist/src/consts/i18n/en.d.ts +5 -4
- package/dist/src/consts/i18n/zh_CN.d.ts +5 -4
- package/dist/src/consts/index.d.ts +4 -4
- package/dist/src/consts/index.vm.d.ts +8 -11
- package/dist/src/pages/KgPageDda/components/KgPageDda.Create.store.d.ts +170 -440
- package/dist/src/utils/kg-var.util.d.ts +23 -11
- package/dist/src/utils/kg.util.d.ts +19 -10
- package/package.json +4 -4
- /package/dist/src/apis/WMS/Controllers/{VarContextController → VarConfigDescriptionController}/index.d.ts +0 -0
- /package/dist/src/apis/WMS/Controllers/{VarContextController → VarVariableController}/Delete.d.ts +0 -0
- /package/dist/src/apis/WMS/Controllers/{VarContextController → VarVariableController}/DeleteBatch.d.ts +0 -0
- /package/dist/src/apis/WMS/Controllers/{VarContextController → VarVariableController}/ExportXls.d.ts +0 -0
- /package/dist/src/apis/WMS/Controllers/{VarContextController → VarVariableController}/ImportExcel.d.ts +0 -0
- /package/dist/src/apis/WMS/Controllers/{VarVariableCatalogController → VarVariableController}/index.d.ts +0 -0
- /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 {
|
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
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
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
|
-
|
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,
|
130
|
-
}
|
131
|
-
|
132
|
-
isLoading(
|
133
|
-
|
134
|
-
|
135
|
-
|
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
|
-
|
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
|
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;
|