@kengic/vue 0.22.0 → 0.23.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (41) hide show
  1. package/CHANGELOG.md +178 -139
  2. package/dist/index.css +1 -1
  3. package/dist/kengic-vue.js +4201 -3969
  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 +74 -199
  9. package/dist/src/components/KgButton/index.store.d.ts +48 -184
  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 -3622
  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-route.util.d.ts +3 -2
  34. package/dist/src/utils/kg.util.d.ts +2 -2
  35. package/package.json +1 -1
  36. /package/dist/src/components/KgForm.Item/{KgForm.Item.hooks.d.ts → KgForm.Item.service.d.ts} +0 -0
  37. /package/dist/src/components/KgForm.Item/components/{KgForm.Item.Select.hooks.d.ts → KgForm.Item.Select.service.d.ts} +0 -0
  38. /package/dist/src/components/KgModal/{KgModal.hooks.d.ts → KgModal.service.d.ts} +0 -0
  39. /package/dist/src/components/KgSearch/{KgSearch.hooks.d.ts → KgSearch.service.d.ts} +0 -0
  40. /package/dist/src/components/KgSubmit/{KgSubmit.hooks.d.ts → KgSubmit.service.d.ts} +0 -0
  41. /package/dist/src/components/KgTable/components/setting/{KgTable.Setting.hooks.d.ts → KgTable.Setting.service.d.ts} +0 -0
@@ -1,272 +1,57 @@
1
+ import { FormInstance } from 'ant-design-vue';
2
+ import { ComputedRef, Ref } from 'vue';
1
3
  import { VarSubmitConfig, VarSubmitDetail } from '../../apis/WMS/models';
2
- import { IKgVarSubmitConfigProps, KG__VAR_SUBMIT_CONFIG__DISPLAY_TYPE, KG_BUTTON_TYPE } from '../../consts';
3
- import { IKgSubmitAfterValidateCb, IKgSubmitBeforeOkCb, IKgSubmitBeforeOpenCb, IKgSubmitBeforeRequestCb, IKgSubmitCloseCb, IKgSubmitErrorCb, IKgSubmitEvent, IKgSubmitOkCb, IKgSubmitOpenCb } from './index.store';
4
- /**
5
- * @param formID 界面标识.
6
- */
7
- export declare function useKgSubmit(formID?: string | null): {
8
- /** 界面标识. */
9
- formID: string;
10
- /** 状态数据. */
11
- store: import("pinia").Store<"KgSubmit", {
12
- afterValidateListenersMap: Map<string, IKgSubmitAfterValidateCb[]>;
13
- beforeOkListenersMap: Map<string, IKgSubmitBeforeOkCb[]>;
14
- beforeOpenListenersMap: Map<string, IKgSubmitBeforeOpenCb[]>;
15
- beforeRequestListenersMap: Map<string, IKgSubmitBeforeRequestCb[]>;
16
- closeListenersMap: Map<string, IKgSubmitCloseCb[]>;
17
- errorListenersMap: Map<string, IKgSubmitErrorCb[]>;
18
- formRefMap: Map<string, import("vue").Ref<import("ant-design-vue").FormInstance | null>>;
19
- isLoadingMap: Map<string, boolean>;
20
- modelMap: Map<string, Record<string, any>>;
21
- okListenersMap: Map<string, IKgSubmitOkCb[]>; /**
22
- * <p>「当前按钮」的「提交表单字段」的所属分组(可见的).</p>
23
- */
24
- openListenersMap: Map<string, IKgSubmitOpenCb[]>;
25
- rulesMap: Map<string, import("vue").Ref<Record<string, import("ant-design-vue/es/form").RuleObject[]>>>;
26
- }, {
27
- isLoading(state: {
28
- afterValidateListenersMap: Map<string, IKgSubmitAfterValidateCb[]>;
29
- beforeOkListenersMap: Map<string, IKgSubmitBeforeOkCb[]>;
30
- beforeOpenListenersMap: Map<string, IKgSubmitBeforeOpenCb[]>;
31
- beforeRequestListenersMap: Map<string, IKgSubmitBeforeRequestCb[]>;
32
- closeListenersMap: Map<string, IKgSubmitCloseCb[]>;
33
- errorListenersMap: Map<string, IKgSubmitErrorCb[]>;
34
- formRefMap: Map<string, import("vue").Ref<import("ant-design-vue").FormInstance | null>>;
35
- isLoadingMap: Map<string, boolean>;
36
- modelMap: Map<string, Record<string, any>>;
37
- okListenersMap: Map<string, IKgSubmitOkCb[]>;
38
- openListenersMap: Map<string, IKgSubmitOpenCb[]>;
39
- rulesMap: Map<string, import("vue").Ref<Record<string, import("ant-design-vue/es/form").RuleObject[]>>>;
40
- } & import("pinia").PiniaCustomStateProperties<{
41
- afterValidateListenersMap: Map<string, IKgSubmitAfterValidateCb[]>;
42
- beforeOkListenersMap: Map<string, IKgSubmitBeforeOkCb[]>;
43
- beforeOpenListenersMap: Map<string, IKgSubmitBeforeOpenCb[]>;
44
- beforeRequestListenersMap: Map<string, IKgSubmitBeforeRequestCb[]>;
45
- closeListenersMap: Map<string, IKgSubmitCloseCb[]>;
46
- errorListenersMap: Map<string, IKgSubmitErrorCb[]>;
47
- formRefMap: Map<string, import("vue").Ref<import("ant-design-vue").FormInstance | null>>;
48
- isLoadingMap: Map<string, boolean>;
49
- modelMap: Map<string, Record<string, any>>;
50
- okListenersMap: Map<string, IKgSubmitOkCb[]>; /**
51
- * <p>「当前按钮」的「提交表单字段」的所属分组(可见的).</p>
52
- */
53
- openListenersMap: Map<string, IKgSubmitOpenCb[]>;
54
- rulesMap: Map<string, import("vue").Ref<Record<string, import("ant-design-vue/es/form").RuleObject[]>>>;
55
- }>): (formID?: string | null | undefined) => boolean;
56
- getModel(state: {
57
- afterValidateListenersMap: Map<string, IKgSubmitAfterValidateCb[]>;
58
- beforeOkListenersMap: Map<string, IKgSubmitBeforeOkCb[]>;
59
- beforeOpenListenersMap: Map<string, IKgSubmitBeforeOpenCb[]>;
60
- beforeRequestListenersMap: Map<string, IKgSubmitBeforeRequestCb[]>;
61
- closeListenersMap: Map<string, IKgSubmitCloseCb[]>;
62
- errorListenersMap: Map<string, IKgSubmitErrorCb[]>;
63
- formRefMap: Map<string, import("vue").Ref<import("ant-design-vue").FormInstance | null>>;
64
- isLoadingMap: Map<string, boolean>;
65
- modelMap: Map<string, Record<string, any>>;
66
- okListenersMap: Map<string, IKgSubmitOkCb[]>;
67
- openListenersMap: Map<string, IKgSubmitOpenCb[]>;
68
- rulesMap: Map<string, import("vue").Ref<Record<string, import("ant-design-vue/es/form").RuleObject[]>>>;
69
- } & import("pinia").PiniaCustomStateProperties<{
70
- afterValidateListenersMap: Map<string, IKgSubmitAfterValidateCb[]>;
71
- beforeOkListenersMap: Map<string, IKgSubmitBeforeOkCb[]>;
72
- beforeOpenListenersMap: Map<string, IKgSubmitBeforeOpenCb[]>;
73
- beforeRequestListenersMap: Map<string, IKgSubmitBeforeRequestCb[]>;
74
- closeListenersMap: Map<string, IKgSubmitCloseCb[]>;
75
- errorListenersMap: Map<string, IKgSubmitErrorCb[]>;
76
- formRefMap: Map<string, import("vue").Ref<import("ant-design-vue").FormInstance | null>>;
77
- isLoadingMap: Map<string, boolean>;
78
- modelMap: Map<string, Record<string, any>>;
79
- okListenersMap: Map<string, IKgSubmitOkCb[]>; /**
80
- * <p>「当前按钮」的「提交表单字段」的所属分组(可见的).</p>
81
- */
82
- openListenersMap: Map<string, IKgSubmitOpenCb[]>;
83
- rulesMap: Map<string, import("vue").Ref<Record<string, import("ant-design-vue/es/form").RuleObject[]>>>;
84
- }>): (formID?: string | null | undefined) => Record<string, any> | null;
85
- getFormRef(state: {
86
- afterValidateListenersMap: Map<string, IKgSubmitAfterValidateCb[]>;
87
- beforeOkListenersMap: Map<string, IKgSubmitBeforeOkCb[]>;
88
- beforeOpenListenersMap: Map<string, IKgSubmitBeforeOpenCb[]>;
89
- beforeRequestListenersMap: Map<string, IKgSubmitBeforeRequestCb[]>;
90
- closeListenersMap: Map<string, IKgSubmitCloseCb[]>;
91
- errorListenersMap: Map<string, IKgSubmitErrorCb[]>;
92
- formRefMap: Map<string, import("vue").Ref<import("ant-design-vue").FormInstance | null>>;
93
- isLoadingMap: Map<string, boolean>;
94
- modelMap: Map<string, Record<string, any>>;
95
- okListenersMap: Map<string, IKgSubmitOkCb[]>;
96
- openListenersMap: Map<string, IKgSubmitOpenCb[]>;
97
- rulesMap: Map<string, import("vue").Ref<Record<string, import("ant-design-vue/es/form").RuleObject[]>>>;
98
- } & import("pinia").PiniaCustomStateProperties<{
99
- afterValidateListenersMap: Map<string, IKgSubmitAfterValidateCb[]>;
100
- beforeOkListenersMap: Map<string, IKgSubmitBeforeOkCb[]>;
101
- beforeOpenListenersMap: Map<string, IKgSubmitBeforeOpenCb[]>;
102
- beforeRequestListenersMap: Map<string, IKgSubmitBeforeRequestCb[]>;
103
- closeListenersMap: Map<string, IKgSubmitCloseCb[]>;
104
- errorListenersMap: Map<string, IKgSubmitErrorCb[]>;
105
- formRefMap: Map<string, import("vue").Ref<import("ant-design-vue").FormInstance | null>>;
106
- isLoadingMap: Map<string, boolean>;
107
- modelMap: Map<string, Record<string, any>>;
108
- okListenersMap: Map<string, IKgSubmitOkCb[]>; /**
109
- * <p>「当前按钮」的「提交表单字段」的所属分组(可见的).</p>
110
- */
111
- openListenersMap: Map<string, IKgSubmitOpenCb[]>;
112
- rulesMap: Map<string, import("vue").Ref<Record<string, import("ant-design-vue/es/form").RuleObject[]>>>;
113
- }>): (formID?: string | null | undefined) => import("vue").Ref<import("ant-design-vue").FormInstance | null>;
114
- getRules(state: {
115
- afterValidateListenersMap: Map<string, IKgSubmitAfterValidateCb[]>;
116
- beforeOkListenersMap: Map<string, IKgSubmitBeforeOkCb[]>;
117
- beforeOpenListenersMap: Map<string, IKgSubmitBeforeOpenCb[]>;
118
- beforeRequestListenersMap: Map<string, IKgSubmitBeforeRequestCb[]>;
119
- closeListenersMap: Map<string, IKgSubmitCloseCb[]>;
120
- errorListenersMap: Map<string, IKgSubmitErrorCb[]>;
121
- formRefMap: Map<string, import("vue").Ref<import("ant-design-vue").FormInstance | null>>;
122
- isLoadingMap: Map<string, boolean>;
123
- modelMap: Map<string, Record<string, any>>;
124
- okListenersMap: Map<string, IKgSubmitOkCb[]>;
125
- openListenersMap: Map<string, IKgSubmitOpenCb[]>;
126
- rulesMap: Map<string, import("vue").Ref<Record<string, import("ant-design-vue/es/form").RuleObject[]>>>;
127
- } & import("pinia").PiniaCustomStateProperties<{
128
- afterValidateListenersMap: Map<string, IKgSubmitAfterValidateCb[]>;
129
- beforeOkListenersMap: Map<string, IKgSubmitBeforeOkCb[]>;
130
- beforeOpenListenersMap: Map<string, IKgSubmitBeforeOpenCb[]>;
131
- beforeRequestListenersMap: Map<string, IKgSubmitBeforeRequestCb[]>;
132
- closeListenersMap: Map<string, IKgSubmitCloseCb[]>;
133
- errorListenersMap: Map<string, IKgSubmitErrorCb[]>;
134
- formRefMap: Map<string, import("vue").Ref<import("ant-design-vue").FormInstance | null>>;
135
- isLoadingMap: Map<string, boolean>;
136
- modelMap: Map<string, Record<string, any>>;
137
- okListenersMap: Map<string, IKgSubmitOkCb[]>; /**
138
- * <p>「当前按钮」的「提交表单字段」的所属分组(可见的).</p>
139
- */
140
- openListenersMap: Map<string, IKgSubmitOpenCb[]>;
141
- rulesMap: Map<string, import("vue").Ref<Record<string, import("ant-design-vue/es/form").RuleObject[]>>>;
142
- }>): (formID?: string | null | undefined) => import("vue").Ref<Record<string, import("ant-design-vue/es/form").RuleObject[]>>;
143
- getVarSubmitConfig(state: {
144
- afterValidateListenersMap: Map<string, IKgSubmitAfterValidateCb[]>;
145
- beforeOkListenersMap: Map<string, IKgSubmitBeforeOkCb[]>;
146
- beforeOpenListenersMap: Map<string, IKgSubmitBeforeOpenCb[]>;
147
- beforeRequestListenersMap: Map<string, IKgSubmitBeforeRequestCb[]>;
148
- closeListenersMap: Map<string, IKgSubmitCloseCb[]>;
149
- errorListenersMap: Map<string, IKgSubmitErrorCb[]>;
150
- formRefMap: Map<string, import("vue").Ref<import("ant-design-vue").FormInstance | null>>;
151
- isLoadingMap: Map<string, boolean>;
152
- modelMap: Map<string, Record<string, any>>;
153
- okListenersMap: Map<string, IKgSubmitOkCb[]>;
154
- openListenersMap: Map<string, IKgSubmitOpenCb[]>;
155
- rulesMap: Map<string, import("vue").Ref<Record<string, import("ant-design-vue/es/form").RuleObject[]>>>;
156
- } & import("pinia").PiniaCustomStateProperties<{
157
- afterValidateListenersMap: Map<string, IKgSubmitAfterValidateCb[]>;
158
- beforeOkListenersMap: Map<string, IKgSubmitBeforeOkCb[]>;
159
- beforeOpenListenersMap: Map<string, IKgSubmitBeforeOpenCb[]>;
160
- beforeRequestListenersMap: Map<string, IKgSubmitBeforeRequestCb[]>;
161
- closeListenersMap: Map<string, IKgSubmitCloseCb[]>;
162
- errorListenersMap: Map<string, IKgSubmitErrorCb[]>;
163
- formRefMap: Map<string, import("vue").Ref<import("ant-design-vue").FormInstance | null>>;
164
- isLoadingMap: Map<string, boolean>;
165
- modelMap: Map<string, Record<string, any>>;
166
- okListenersMap: Map<string, IKgSubmitOkCb[]>; /**
167
- * <p>「当前按钮」的「提交表单字段」的所属分组(可见的).</p>
168
- */
169
- openListenersMap: Map<string, IKgSubmitOpenCb[]>;
170
- rulesMap: Map<string, import("vue").Ref<Record<string, import("ant-design-vue/es/form").RuleObject[]>>>;
171
- }>): (formID: string | null | undefined, param?: {
172
- buttonType?: KG_BUTTON_TYPE | undefined;
173
- buttonVarName?: string | null | undefined;
174
- } | undefined) => VarSubmitConfig | null;
175
- getVarSubmitDetails(state: {
176
- afterValidateListenersMap: Map<string, IKgSubmitAfterValidateCb[]>;
177
- beforeOkListenersMap: Map<string, IKgSubmitBeforeOkCb[]>;
178
- beforeOpenListenersMap: Map<string, IKgSubmitBeforeOpenCb[]>;
179
- beforeRequestListenersMap: Map<string, IKgSubmitBeforeRequestCb[]>;
180
- closeListenersMap: Map<string, IKgSubmitCloseCb[]>;
181
- errorListenersMap: Map<string, IKgSubmitErrorCb[]>;
182
- formRefMap: Map<string, import("vue").Ref<import("ant-design-vue").FormInstance | null>>;
183
- isLoadingMap: Map<string, boolean>;
184
- modelMap: Map<string, Record<string, any>>;
185
- okListenersMap: Map<string, IKgSubmitOkCb[]>;
186
- openListenersMap: Map<string, IKgSubmitOpenCb[]>;
187
- rulesMap: Map<string, import("vue").Ref<Record<string, import("ant-design-vue/es/form").RuleObject[]>>>;
188
- } & import("pinia").PiniaCustomStateProperties<{
189
- afterValidateListenersMap: Map<string, IKgSubmitAfterValidateCb[]>;
190
- beforeOkListenersMap: Map<string, IKgSubmitBeforeOkCb[]>;
191
- beforeOpenListenersMap: Map<string, IKgSubmitBeforeOpenCb[]>;
192
- beforeRequestListenersMap: Map<string, IKgSubmitBeforeRequestCb[]>;
193
- closeListenersMap: Map<string, IKgSubmitCloseCb[]>;
194
- errorListenersMap: Map<string, IKgSubmitErrorCb[]>;
195
- formRefMap: Map<string, import("vue").Ref<import("ant-design-vue").FormInstance | null>>;
196
- isLoadingMap: Map<string, boolean>;
197
- modelMap: Map<string, Record<string, any>>;
198
- okListenersMap: Map<string, IKgSubmitOkCb[]>; /**
199
- * <p>「当前按钮」的「提交表单字段」的所属分组(可见的).</p>
200
- */
201
- openListenersMap: Map<string, IKgSubmitOpenCb[]>;
202
- rulesMap: Map<string, import("vue").Ref<Record<string, import("ant-design-vue/es/form").RuleObject[]>>>;
203
- }>): (formID: string | null | undefined, param?: {
204
- buttonType?: KG_BUTTON_TYPE | undefined;
205
- buttonVarName?: string | null | undefined;
206
- isKey?: 0 | 1 | null | undefined;
207
- isVisible?: 0 | 1 | null | undefined;
208
- varName?: string | null | undefined;
209
- } | null | undefined) => VarSubmitDetail[];
210
- }, {
211
- dispose(formID?: string | null | undefined): null | undefined;
212
- addEventListener(formID: string, event: IKgSubmitEvent, cb: import("./index.store").IKgSubmitCb): void;
213
- removeEventListener(formID: string, event: IKgSubmitEvent, cb?: import("./index.store").IKgSubmitCb | undefined): void;
214
- emit(formID: string, event: IKgSubmitEvent, param: import("./index.store").IKgSubmitCbParam): Promise<boolean>;
215
- setIsLoading(formID: string, value: boolean): void;
216
- setModel(formID?: string | null | undefined, model?: Record<string, any> | null | undefined): void;
217
- patchVarSubmitDetail(formID: string | null | undefined, param: {
218
- buttonType?: KG_BUTTON_TYPE | undefined;
219
- buttonVarName?: string | null | undefined;
220
- properties: VarSubmitDetail;
221
- varName: string | null | undefined;
222
- }): void;
223
- }>;
224
- /** 表单数据对象. */
225
- model: import("vue").ComputedRef<Record<string, any>>;
226
- /** 表单组件. */
227
- formRef: import("vue").Ref<import("ant-design-vue").FormInstance | null>;
228
- /** 表单验证规则. */
229
- rules: import("vue").Ref<Record<string, import("ant-design-vue/es/form").RuleObject[]>>;
4
+ import { IKgVarSubmitConfigProperties, IRemoveEventListenerHandler, KG__VAR_SUBMIT_CONFIG__DISPLAY_TYPE, KG_BUTTON_TYPE } from '../../consts';
5
+ import { IKgSubmitAfterValidateCb, IKgSubmitBeforeOkCb, IKgSubmitBeforeOpenCb, IKgSubmitBeforeRequestCb, IKgSubmitCloseCb, IKgSubmitErrorCb, IKgSubmitOkCb, IKgSubmitOpenCb, IKgSubmitStore } from './index.store';
6
+ export interface IUseKgSubmit {
230
7
  /**
231
8
  * <p>「当前按钮」的「提交表单配置」.</p>
232
9
  */
233
- currentVarSubmitConfig: import("vue").ComputedRef<VarSubmitConfig | null>;
10
+ currentVarSubmitConfig: ComputedRef<VarSubmitConfig | null>;
234
11
  /**
235
12
  * <p>「当前按钮」的「提交表单配置」的显示方式.</p>
236
13
  */
237
- currentVarSubmitConfigDisplayType: import("vue").ComputedRef<KG__VAR_SUBMIT_CONFIG__DISPLAY_TYPE>;
14
+ currentVarSubmitConfigDisplayType: ComputedRef<KG__VAR_SUBMIT_CONFIG__DISPLAY_TYPE>;
238
15
  /**
239
16
  * <p>「当前按钮」的「提交表单配置」的配置属性.</p>
240
17
  */
241
- currentVarSubmitConfigProps: import("vue").ComputedRef<IKgVarSubmitConfigProps>;
18
+ currentVarSubmitConfigProps: ComputedRef<IKgVarSubmitConfigProperties>;
242
19
  /**
243
- * <p>「当前按钮」的「提交表单字段」.</p>
20
+ * <p>「当前按钮」的「提交表单字段」的所属分组(可见的).</p>
244
21
  */
245
- currentVarSubmitDetails: import("vue").ComputedRef<VarSubmitDetail[]>;
22
+ currentVarSubmitDetailSectionsForVisible: ComputedRef<string[]>;
246
23
  /**
247
- * <p>「当前按钮」的「提交表单字段」(可见的).</p>
24
+ * <p>「当前按钮」的「提交表单字段」.</p>
248
25
  */
249
- currentVarSubmitDetailsForVisible: import("vue").ComputedRef<VarSubmitDetail[]>;
26
+ currentVarSubmitDetails: ComputedRef<VarSubmitDetail[]>;
250
27
  /**
251
28
  * <p>「当前按钮」的「提交表单字段」(关键的).</p>
252
29
  */
253
- currentVarSubmitDetailsForKey: import("vue").ComputedRef<VarSubmitDetail[]>;
30
+ currentVarSubmitDetailsForKey: ComputedRef<VarSubmitDetail[]>;
254
31
  /**
255
32
  * <p>「当前按钮」的「提交表单字段」(关键的, 可见的).</p>
256
33
  */
257
- currentVarSubmitDetailsForKeyAndVisible: import("vue").ComputedRef<VarSubmitDetail[]>;
34
+ currentVarSubmitDetailsForKeyAndVisible: ComputedRef<VarSubmitDetail[]>;
258
35
  /**
259
36
  * <p>「当前按钮」的「提交表单字段」(非关键的).</p>
260
37
  */
261
- currentVarSubmitDetailsForNotKey: import("vue").ComputedRef<VarSubmitDetail[]>;
38
+ currentVarSubmitDetailsForNotKey: ComputedRef<VarSubmitDetail[]>;
262
39
  /**
263
40
  * <p>「当前按钮」的「提交表单字段」(非关键的, 可见的).</p>
264
41
  */
265
- currentVarSubmitDetailsForNotKeyAndVisible: import("vue").ComputedRef<VarSubmitDetail[]>;
42
+ currentVarSubmitDetailsForNotKeyAndVisible: ComputedRef<VarSubmitDetail[]>;
266
43
  /**
267
- * <p>「当前按钮」的「提交表单字段」的所属分组(可见的).</p>
44
+ * <p>「当前按钮」的「提交表单字段」(可见的).</p>
268
45
  */
269
- currentVarSubmitDetailSectionsForVisible: import("vue").ComputedRef<string[]>;
46
+ currentVarSubmitDetailsForVisible: ComputedRef<VarSubmitDetail[]>;
47
+ /**
48
+ * 界面标识.
49
+ */
50
+ formID: string;
51
+ /**
52
+ * 表单组件.
53
+ */
54
+ formRef: Ref<FormInstance | null>;
270
55
  /**
271
56
  * <p>获取「提交表单配置」, 根据所传参数进行过滤.</p>
272
57
  *
@@ -322,33 +107,18 @@ export declare function useKgSubmit(formID?: string | null): {
322
107
  varName?: string | null;
323
108
  } | null): Array<VarSubmitDetail>;
324
109
  /**
325
- * 修改某个「提交表单字段」的部分属性.
326
- *
327
- * @param param.buttonType <p>按钮的类型, 对应的是 {@link VarButton.typ} 属性, 取值请参考 {@link KG_BUTTON_TYPE}.</p>
328
- * @param param.buttonVarName <p>按钮的变量名称, 对应的是 {@link VarButton.var_nam} 属性.</p>
329
- * @param param.properties 要修改的部分属性.
330
- * @param param.varName 「提交表单字段」的变量名称, 对应的是 {@link VarSubmitDetail.var_nam} 属性.
110
+ * 表单数据对象.
331
111
  */
332
- patchVarSubmitDetail(param: {
333
- buttonType?: KG_BUTTON_TYPE;
334
- buttonVarName?: string | null;
335
- properties: VarSubmitDetail;
336
- varName: string | null | undefined;
337
- }): void;
338
- /**
339
- * <p>事件: 打开提交弹窗之前.</p>
340
- * @param cb 回调函数.
341
- * @param once 是否只会触发一次. 默认为 undefined.
342
- * @return {} 移除事件监听函数.
343
- */
344
- onBeforeOpen: (cb: IKgSubmitBeforeOpenCb, once?: boolean | undefined) => import("../../consts").IRemoveEventListenerHandler;
112
+ model: ComputedRef<Record<string, any>>;
345
113
  /**
346
- * <p>事件: 打开提交弹窗.</p>
114
+ * <p>事件: 点击确认按钮之后, 表单验证完成.</p>
115
+ * <p>回调函数如果返回 true, 则不会再执行后面的代码.</p>
116
+ *
347
117
  * @param cb 回调函数.
348
118
  * @param once 是否只会触发一次. 默认为 undefined.
349
119
  * @return {} 移除事件监听函数.
350
120
  */
351
- onOpen: (cb: IKgSubmitOpenCb, once?: boolean | undefined) => import("../../consts").IRemoveEventListenerHandler;
121
+ onAfterValidate(cb: IKgSubmitAfterValidateCb, once?: boolean): IRemoveEventListenerHandler;
352
122
  /**
353
123
  * <p>事件: 点击确认按钮之后, 执行默认逻辑之前.</p>
354
124
  * <ul>
@@ -361,16 +131,14 @@ export declare function useKgSubmit(formID?: string | null): {
361
131
  * @param once 是否只会触发一次. 默认为 undefined.
362
132
  * @return {} 移除事件监听函数.
363
133
  */
364
- onBeforeOk: (cb: IKgSubmitBeforeOkCb, once?: boolean | undefined) => import("../../consts").IRemoveEventListenerHandler;
134
+ onBeforeOk(cb: IKgSubmitBeforeOkCb, once?: boolean): IRemoveEventListenerHandler;
365
135
  /**
366
- * <p>事件: 点击确认按钮之后, 表单验证完成.</p>
367
- * <p>回调函数如果返回 true, 则不会再执行后面的代码.</p>
368
- *
136
+ * <p>事件: 打开提交弹窗之前.</p>
369
137
  * @param cb 回调函数.
370
138
  * @param once 是否只会触发一次. 默认为 undefined.
371
139
  * @return {} 移除事件监听函数.
372
140
  */
373
- onAfterValidate: (cb: IKgSubmitAfterValidateCb, once?: boolean | undefined) => import("../../consts").IRemoveEventListenerHandler;
141
+ onBeforeOpen(cb: IKgSubmitBeforeOpenCb, once?: boolean): IRemoveEventListenerHandler;
374
142
  /**
375
143
  * <p>事件: 发起接口请求之前. 表单验证完成, 参数解析完成.</p>
376
144
  * <p>回调函数如果返回 true, 则不会再执行后面的代码.</p>
@@ -379,31 +147,64 @@ export declare function useKgSubmit(formID?: string | null): {
379
147
  * @param once 是否只会触发一次. 默认为 undefined.
380
148
  * @return {} 移除事件监听函数.
381
149
  */
382
- onBeforeRequest: (cb: IKgSubmitBeforeRequestCb, once?: boolean | undefined) => import("../../consts").IRemoveEventListenerHandler;
150
+ onBeforeRequest(cb: IKgSubmitBeforeRequestCb, once?: boolean): IRemoveEventListenerHandler;
383
151
  /**
384
- * <p>事件: 点击保存按钮之后, 执行默认逻辑之后, 调用接口成功, 即将关闭提交弹窗.</p>
152
+ * <p>事件: 关闭提交弹窗. 下面几种场景都会触发此事件:</p>
153
+ * <ul>
154
+ * <li>点击右上角的关闭按钮,</li>
155
+ * <li>点击取消按钮,</li>
156
+ * <li>点击保存按钮之后, 调用接口成功, 关闭弹窗,</li>
157
+ * </ul>
385
158
  * @param cb 回调函数.
386
159
  * @param once 是否只会触发一次. 默认为 undefined.
387
160
  * @return {} 移除事件监听函数.
388
161
  */
389
- onOk: (cb: IKgSubmitOkCb, once?: boolean | undefined) => import("../../consts").IRemoveEventListenerHandler;
162
+ onClose(cb: IKgSubmitCloseCb, once?: boolean): IRemoveEventListenerHandler;
390
163
  /**
391
164
  * <p>事件: 请求失败. 请求失败了, 或者请求返回了错误消息.</p>
392
165
  * @param cb 回调函数.
393
166
  * @param once 是否只会触发一次. 默认为 undefined.
394
167
  * @return {} 移除事件监听函数.
395
168
  */
396
- onError: (cb: IKgSubmitErrorCb, once?: boolean | undefined) => import("../../consts").IRemoveEventListenerHandler;
169
+ onError(cb: IKgSubmitErrorCb, once?: boolean): IRemoveEventListenerHandler;
397
170
  /**
398
- * <p>事件: 关闭提交弹窗. 下面几种场景都会触发此事件:</p>
399
- * <ul>
400
- * <li>点击右上角的关闭按钮,</li>
401
- * <li>点击取消按钮,</li>
402
- * <li>点击保存按钮之后, 调用接口成功, 关闭弹窗,</li>
403
- * </ul>
171
+ * <p>事件: 点击保存按钮之后, 执行默认逻辑之后, 调用接口成功, 即将关闭提交弹窗.</p>
172
+ * @param cb 回调函数.
173
+ * @param once 是否只会触发一次. 默认为 undefined.
174
+ * @return {} 移除事件监听函数.
175
+ */
176
+ onOk(cb: IKgSubmitOkCb, once?: boolean): IRemoveEventListenerHandler;
177
+ /**
178
+ * <p>事件: 打开提交弹窗.</p>
404
179
  * @param cb 回调函数.
405
180
  * @param once 是否只会触发一次. 默认为 undefined.
406
181
  * @return {} 移除事件监听函数.
407
182
  */
408
- onClose: (cb: IKgSubmitCloseCb, once?: boolean | undefined) => import("../../consts").IRemoveEventListenerHandler;
409
- };
183
+ onOpen(cb: IKgSubmitOpenCb, once?: boolean): IRemoveEventListenerHandler;
184
+ /**
185
+ * 修改某个「提交表单字段」的部分属性.
186
+ *
187
+ * @param param.buttonType <p>按钮的类型, 对应的是 {@link VarButton.typ} 属性, 取值请参考 {@link KG_BUTTON_TYPE}.</p>
188
+ * @param param.buttonVarName <p>按钮的变量名称, 对应的是 {@link VarButton.var_nam} 属性.</p>
189
+ * @param param.properties 要修改的部分属性.
190
+ * @param param.varName 「提交表单字段」的变量名称, 对应的是 {@link VarSubmitDetail.var_nam} 属性.
191
+ */
192
+ patchVarSubmitDetail(param: {
193
+ buttonType?: KG_BUTTON_TYPE;
194
+ buttonVarName?: string | null;
195
+ properties: VarSubmitDetail;
196
+ varName: string | null | undefined;
197
+ }): void;
198
+ /**
199
+ * 表单验证规则.
200
+ */
201
+ rules: ReturnType<IKgSubmitStore['getRules']>;
202
+ /**
203
+ * 状态数据.
204
+ */
205
+ store: IKgSubmitStore;
206
+ }
207
+ /**
208
+ * @param formID 界面标识.
209
+ */
210
+ export declare function useKgSubmit(formID?: string | null): IUseKgSubmit;