@tmagic/form 1.0.0-beta.13 → 1.0.0-beta.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (70) hide show
  1. package/coverage/clover.xml +274 -261
  2. package/coverage/coverage-final.json +37 -36
  3. package/coverage/lcov-report/index.html +18 -18
  4. package/coverage/lcov-report/src/Form.vue.html +2 -2
  5. package/coverage/lcov-report/src/FormDialog.vue.html +1 -1
  6. package/coverage/lcov-report/src/containers/Col.vue.html +253 -0
  7. package/coverage/lcov-report/src/containers/Container.vue.html +28 -16
  8. package/coverage/lcov-report/src/containers/Fieldset.vue.html +1 -1
  9. package/coverage/lcov-report/src/containers/GroupList.vue.html +1 -1
  10. package/coverage/lcov-report/src/containers/GroupListItem.vue.html +5 -5
  11. package/coverage/lcov-report/src/containers/Panel.vue.html +1 -1
  12. package/coverage/lcov-report/src/containers/Row.vue.html +22 -34
  13. package/coverage/lcov-report/src/containers/Step.vue.html +1 -1
  14. package/coverage/lcov-report/src/containers/Table.vue.html +32 -8
  15. package/coverage/lcov-report/src/containers/Tabs.vue.html +1 -1
  16. package/coverage/lcov-report/src/containers/index.html +41 -26
  17. package/coverage/lcov-report/src/fields/Cascader.vue.html +1 -1
  18. package/coverage/lcov-report/src/fields/Checkbox.vue.html +3 -3
  19. package/coverage/lcov-report/src/fields/CheckboxGroup.vue.html +1 -1
  20. package/coverage/lcov-report/src/fields/ColorPicker.vue.html +1 -1
  21. package/coverage/lcov-report/src/fields/Date.vue.html +1 -1
  22. package/coverage/lcov-report/src/fields/DateTime.vue.html +1 -1
  23. package/coverage/lcov-report/src/fields/Daterange.vue.html +1 -1
  24. package/coverage/lcov-report/src/fields/Display.vue.html +1 -1
  25. package/coverage/lcov-report/src/fields/DynamicField.vue.html +1 -1
  26. package/coverage/lcov-report/src/fields/Hidden.vue.html +1 -1
  27. package/coverage/lcov-report/src/fields/Link.vue.html +2 -2
  28. package/coverage/lcov-report/src/fields/Number.vue.html +1 -1
  29. package/coverage/lcov-report/src/fields/RadioGroup.vue.html +1 -1
  30. package/coverage/lcov-report/src/fields/Select.vue.html +1 -1
  31. package/coverage/lcov-report/src/fields/Switch.vue.html +1 -1
  32. package/coverage/lcov-report/src/fields/Text.vue.html +1 -1
  33. package/coverage/lcov-report/src/fields/Textarea.vue.html +13 -19
  34. package/coverage/lcov-report/src/fields/Time.vue.html +1 -1
  35. package/coverage/lcov-report/src/fields/index.html +1 -1
  36. package/coverage/lcov-report/src/index.html +1 -1
  37. package/coverage/lcov-report/src/index.ts.html +1 -1
  38. package/coverage/lcov-report/src/theme/index.html +1 -1
  39. package/coverage/lcov-report/src/theme/index.scss.html +1 -1
  40. package/coverage/lcov-report/src/utils/config.ts.html +1 -1
  41. package/coverage/lcov-report/src/utils/createForm.ts.html +1 -1
  42. package/coverage/lcov-report/src/utils/fieldProps.ts.html +1 -1
  43. package/coverage/lcov-report/src/utils/form.ts.html +1 -1
  44. package/coverage/lcov-report/src/utils/index.html +1 -1
  45. package/coverage/lcov-report/src/utils/useAddField.ts.html +1 -1
  46. package/coverage/lcov.info +528 -497
  47. package/dist/style.css +7 -9
  48. package/dist/tmagic-form.es.js +143 -99
  49. package/dist/tmagic-form.es.js.map +1 -1
  50. package/dist/tmagic-form.umd.js +143 -99
  51. package/dist/tmagic-form.umd.js.map +1 -1
  52. package/dist/types/src/Form.vue.d.ts +362 -0
  53. package/dist/types/src/FormDialog.vue.d.ts +757 -0
  54. package/dist/types/src/containers/Col.vue.d.ts +42 -0
  55. package/dist/types/src/containers/Container.vue.d.ts +1 -0
  56. package/dist/types/src/containers/Row.vue.d.ts +0 -1
  57. package/dist/types/src/containers/Table.vue.d.ts +2601 -0
  58. package/dist/types/src/fields/Checkbox.vue.d.ts +2 -2
  59. package/dist/types/src/fields/Link.vue.d.ts +1596 -0
  60. package/package.json +10 -6
  61. package/src/Form.vue +1 -1
  62. package/src/containers/Col.vue +56 -0
  63. package/src/containers/Container.vue +9 -5
  64. package/src/containers/GroupListItem.vue +4 -4
  65. package/src/containers/Row.vue +13 -17
  66. package/src/containers/Table.vue +14 -6
  67. package/src/fields/Checkbox.vue +2 -2
  68. package/src/fields/Link.vue +1 -1
  69. package/src/fields/Textarea.vue +11 -13
  70. package/src/theme/form.scss +24 -17
@@ -0,0 +1,1596 @@
1
+ import type { LooseRequired } from '@vue/shared';
2
+ import type { FormItemRule, FormItemProp, FormItemContext, FormValidateCallback, FormValidationResult } from 'element-plus';
3
+ import type { BuildPropType, Arrayable, BuildPropReturn, PropWrapper } from 'element-plus/es/utils';
4
+ import type { DefineComponent, Ref, ComponentInternalInstance, ExtractPropTypes, VNodeProps, AllowedComponentProps, ComponentCustomProps, Slot, ComponentPublicInstance, ComponentOptionsBase, ComputedRef, ComponentOptionsMixin, DebuggerEvent, nextTick, WatchOptions, WatchStopHandle, ShallowUnwrapRef, ComponentCustomProperties, PropType } from 'vue';
5
+ import type { FormConfig, FormState, LinkConfig } from '../schema';
6
+ declare const _default: DefineComponent<{
7
+ config: {
8
+ type: PropType<LinkConfig>;
9
+ required: true;
10
+ };
11
+ model: {
12
+ type: ObjectConstructor;
13
+ required: boolean;
14
+ default: () => {};
15
+ };
16
+ name: {
17
+ type: StringConstructor;
18
+ default: string;
19
+ };
20
+ disabled: {
21
+ type: BooleanConstructor;
22
+ default: boolean;
23
+ };
24
+ size: PropType<"small" | "mini" | "medium">;
25
+ prop: StringConstructor;
26
+ initValues: ObjectConstructor;
27
+ values: ObjectConstructor;
28
+ }, {
29
+ formValue: Ref<{}>;
30
+ editor: Ref<({
31
+ $: ComponentInternalInstance;
32
+ $data: {};
33
+ $props: Partial<{
34
+ values: Record<string, any>;
35
+ config: FormConfig;
36
+ fullscreen: boolean;
37
+ confirmText: string;
38
+ }> & Omit<Readonly<ExtractPropTypes<{
39
+ values: {
40
+ type: ObjectConstructor;
41
+ default: () => {};
42
+ };
43
+ width: (StringConstructor | NumberConstructor)[];
44
+ fullscreen: BooleanConstructor;
45
+ title: StringConstructor;
46
+ config: {
47
+ type: PropType<FormConfig>;
48
+ required: true;
49
+ default: () => never[];
50
+ };
51
+ labelWidth: (StringConstructor | NumberConstructor)[];
52
+ size: PropType<"small" | "default" | "large">;
53
+ confirmText: {
54
+ type: StringConstructor;
55
+ default: string;
56
+ };
57
+ }>> & {
58
+ onChange?: ((...args: any[]) => any) | undefined;
59
+ onClose?: ((...args: any[]) => any) | undefined;
60
+ onSubmit?: ((...args: any[]) => any) | undefined;
61
+ onError?: ((...args: any[]) => any) | undefined;
62
+ } & VNodeProps & AllowedComponentProps & ComponentCustomProps, "values" | "config" | "fullscreen" | "confirmText">;
63
+ $attrs: {
64
+ [x: string]: unknown;
65
+ };
66
+ $refs: {
67
+ [x: string]: unknown;
68
+ };
69
+ $slots: Readonly<{
70
+ [name: string]: Slot | undefined;
71
+ }>;
72
+ $root: ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null;
73
+ $parent: ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null;
74
+ $emit: (event: "change" | "close" | "submit" | "error", ...args: any[]) => void;
75
+ $el: any;
76
+ $options: ComponentOptionsBase<Readonly<ExtractPropTypes<{
77
+ values: {
78
+ type: ObjectConstructor;
79
+ default: () => {};
80
+ };
81
+ width: (StringConstructor | NumberConstructor)[];
82
+ fullscreen: BooleanConstructor;
83
+ title: StringConstructor;
84
+ config: {
85
+ type: PropType<FormConfig>;
86
+ required: true;
87
+ default: () => never[];
88
+ };
89
+ labelWidth: (StringConstructor | NumberConstructor)[];
90
+ size: PropType<"small" | "default" | "large">;
91
+ confirmText: {
92
+ type: StringConstructor;
93
+ default: string;
94
+ };
95
+ }>> & {
96
+ onChange?: ((...args: any[]) => any) | undefined;
97
+ onClose?: ((...args: any[]) => any) | undefined;
98
+ onSubmit?: ((...args: any[]) => any) | undefined;
99
+ onError?: ((...args: any[]) => any) | undefined;
100
+ }, {
101
+ form: Ref<({
102
+ $: ComponentInternalInstance;
103
+ $data: {};
104
+ $props: Partial<{
105
+ initValues: Record<string, any>;
106
+ parentValues: Record<string, any>;
107
+ config: FormConfig;
108
+ labelWidth: string;
109
+ disabled: boolean;
110
+ height: string;
111
+ stepActive: string | number;
112
+ inline: boolean;
113
+ labelPosition: string;
114
+ keyProp: string;
115
+ }> & Omit<Readonly<ExtractPropTypes<{
116
+ initValues: {
117
+ type: ObjectConstructor;
118
+ required: true;
119
+ default: () => {};
120
+ };
121
+ parentValues: {
122
+ type: ObjectConstructor;
123
+ default: () => {};
124
+ };
125
+ config: {
126
+ type: PropType<FormConfig>;
127
+ required: true;
128
+ default: () => never[];
129
+ };
130
+ labelWidth: {
131
+ type: StringConstructor;
132
+ default: () => string;
133
+ };
134
+ disabled: {
135
+ type: BooleanConstructor;
136
+ default: () => boolean;
137
+ };
138
+ height: {
139
+ type: StringConstructor;
140
+ default: () => string;
141
+ };
142
+ stepActive: {
143
+ type: (StringConstructor | NumberConstructor)[];
144
+ default: () => number;
145
+ };
146
+ size: {
147
+ type: PropType<"small" | "default" | "large">;
148
+ };
149
+ inline: {
150
+ type: BooleanConstructor;
151
+ default: boolean;
152
+ };
153
+ labelPosition: {
154
+ type: StringConstructor;
155
+ default: string;
156
+ };
157
+ keyProp: {
158
+ type: StringConstructor;
159
+ default: string;
160
+ };
161
+ popperClass: {
162
+ type: StringConstructor;
163
+ };
164
+ }>> & {
165
+ onChange?: ((...args: any[]) => any) | undefined;
166
+ "onField-input"?: ((...args: any[]) => any) | undefined;
167
+ "onField-change"?: ((...args: any[]) => any) | undefined;
168
+ } & VNodeProps & AllowedComponentProps & ComponentCustomProps, "initValues" | "parentValues" | "config" | "labelWidth" | "disabled" | "height" | "stepActive" | "inline" | "labelPosition" | "keyProp">;
169
+ $attrs: {
170
+ [x: string]: unknown;
171
+ };
172
+ $refs: {
173
+ [x: string]: unknown;
174
+ };
175
+ $slots: Readonly<{
176
+ [name: string]: Slot | undefined;
177
+ }>;
178
+ $root: ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null;
179
+ $parent: ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null;
180
+ $emit: (event: "change" | "field-input" | "field-change", ...args: any[]) => void;
181
+ $el: any;
182
+ $options: ComponentOptionsBase<Readonly<ExtractPropTypes<{
183
+ initValues: {
184
+ type: ObjectConstructor;
185
+ required: true;
186
+ default: () => {};
187
+ };
188
+ parentValues: {
189
+ type: ObjectConstructor;
190
+ default: () => {};
191
+ };
192
+ config: {
193
+ type: PropType<FormConfig>;
194
+ required: true;
195
+ default: () => never[];
196
+ };
197
+ labelWidth: {
198
+ type: StringConstructor;
199
+ default: () => string;
200
+ };
201
+ disabled: {
202
+ type: BooleanConstructor;
203
+ default: () => boolean;
204
+ };
205
+ height: {
206
+ type: StringConstructor;
207
+ default: () => string;
208
+ };
209
+ stepActive: {
210
+ type: (StringConstructor | NumberConstructor)[];
211
+ default: () => number;
212
+ };
213
+ size: {
214
+ type: PropType<"small" | "default" | "large">;
215
+ };
216
+ inline: {
217
+ type: BooleanConstructor;
218
+ default: boolean;
219
+ };
220
+ labelPosition: {
221
+ type: StringConstructor;
222
+ default: string;
223
+ };
224
+ keyProp: {
225
+ type: StringConstructor;
226
+ default: string;
227
+ };
228
+ popperClass: {
229
+ type: StringConstructor;
230
+ };
231
+ }>> & {
232
+ onChange?: ((...args: any[]) => any) | undefined;
233
+ "onField-input"?: ((...args: any[]) => any) | undefined;
234
+ "onField-change"?: ((...args: any[]) => any) | undefined;
235
+ }, {
236
+ initialized: Ref<boolean>;
237
+ values: Ref<{
238
+ [x: string]: any;
239
+ [x: number]: any;
240
+ }>;
241
+ elForm: Ref<({
242
+ $: ComponentInternalInstance;
243
+ $data: {};
244
+ $props: Partial<{
245
+ size: BuildPropType<StringConstructor, "" | "small" | "default" | "large", unknown>;
246
+ disabled: boolean;
247
+ rules: Partial<Record<string, Arrayable<FormItemRule>>>;
248
+ labelWidth: BuildPropType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
249
+ labelSuffix: string;
250
+ showMessage: BuildPropType<BooleanConstructor, unknown, unknown>;
251
+ validateOnRuleChange: BuildPropType<BooleanConstructor, unknown, unknown>;
252
+ hideRequiredAsterisk: BuildPropType<BooleanConstructor, unknown, unknown>;
253
+ inline: boolean;
254
+ inlineMessage: boolean;
255
+ statusIcon: boolean;
256
+ scrollToError: boolean;
257
+ }> & Omit<Readonly<ExtractPropTypes<{
258
+ readonly model: ObjectConstructor;
259
+ readonly rules: BuildPropReturn<PropWrapper<Partial<Record<string, Arrayable<FormItemRule>>>>, unknown, unknown, unknown, unknown>;
260
+ readonly labelPosition: StringConstructor;
261
+ readonly labelWidth: BuildPropReturn<readonly [StringConstructor, NumberConstructor], "", unknown, unknown, unknown>;
262
+ readonly labelSuffix: BuildPropReturn<StringConstructor, "", unknown, unknown, unknown>;
263
+ readonly inline: BooleanConstructor;
264
+ readonly inlineMessage: BooleanConstructor;
265
+ readonly statusIcon: BooleanConstructor;
266
+ readonly showMessage: BuildPropReturn<BooleanConstructor, true, unknown, unknown, unknown>;
267
+ readonly size: BuildPropReturn<StringConstructor, unknown, unknown, "" | "small" | "default" | "large", unknown>;
268
+ readonly disabled: BooleanConstructor;
269
+ readonly validateOnRuleChange: BuildPropReturn<BooleanConstructor, true, unknown, unknown, unknown>;
270
+ readonly hideRequiredAsterisk: BuildPropReturn<BooleanConstructor, false, unknown, unknown, unknown>;
271
+ readonly scrollToError: BooleanConstructor;
272
+ }>> & {
273
+ onValidate?: ((prop: FormItemProp, isValid: boolean, message: string) => any) | undefined;
274
+ } & VNodeProps & AllowedComponentProps & ComponentCustomProps, "labelWidth" | "disabled" | "size" | "inline" | "rules" | "labelSuffix" | "inlineMessage" | "statusIcon" | "showMessage" | "validateOnRuleChange" | "hideRequiredAsterisk" | "scrollToError">;
275
+ $attrs: {
276
+ [x: string]: unknown;
277
+ };
278
+ $refs: {
279
+ [x: string]: unknown;
280
+ };
281
+ $slots: Readonly<{
282
+ [name: string]: Slot | undefined;
283
+ }>;
284
+ $root: ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null;
285
+ $parent: ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null;
286
+ $emit: (event: "validate", prop: FormItemProp, isValid: boolean, message: string) => void;
287
+ $el: any;
288
+ $options: ComponentOptionsBase<Readonly<ExtractPropTypes<{
289
+ readonly model: ObjectConstructor;
290
+ readonly rules: BuildPropReturn<PropWrapper<Partial<Record<string, Arrayable<FormItemRule>>>>, unknown, unknown, unknown, unknown>;
291
+ readonly labelPosition: StringConstructor;
292
+ readonly labelWidth: BuildPropReturn<readonly [StringConstructor, NumberConstructor], "", unknown, unknown, unknown>;
293
+ readonly labelSuffix: BuildPropReturn<StringConstructor, "", unknown, unknown, unknown>;
294
+ readonly inline: BooleanConstructor;
295
+ readonly inlineMessage: BooleanConstructor;
296
+ readonly statusIcon: BooleanConstructor;
297
+ readonly showMessage: BuildPropReturn<BooleanConstructor, true, unknown, unknown, unknown>;
298
+ readonly size: BuildPropReturn<StringConstructor, unknown, unknown, "" | "small" | "default" | "large", unknown>;
299
+ readonly disabled: BooleanConstructor;
300
+ readonly validateOnRuleChange: BuildPropReturn<BooleanConstructor, true, unknown, unknown, unknown>;
301
+ readonly hideRequiredAsterisk: BuildPropReturn<BooleanConstructor, false, unknown, unknown, unknown>;
302
+ readonly scrollToError: BooleanConstructor;
303
+ }>> & {
304
+ onValidate?: ((prop: FormItemProp, isValid: boolean, message: string) => any) | undefined;
305
+ }, {
306
+ COMPONENT_NAME: string;
307
+ props: Readonly<LooseRequired<Readonly<ExtractPropTypes<{
308
+ readonly model: ObjectConstructor;
309
+ readonly rules: BuildPropReturn<PropWrapper<Partial<Record<string, Arrayable<FormItemRule>>>>, unknown, unknown, unknown, unknown>;
310
+ readonly labelPosition: StringConstructor;
311
+ readonly labelWidth: BuildPropReturn<readonly [StringConstructor, NumberConstructor], "", unknown, unknown, unknown>;
312
+ readonly labelSuffix: BuildPropReturn<StringConstructor, "", unknown, unknown, unknown>;
313
+ readonly inline: BooleanConstructor;
314
+ readonly inlineMessage: BooleanConstructor;
315
+ readonly statusIcon: BooleanConstructor;
316
+ readonly showMessage: BuildPropReturn<BooleanConstructor, true, unknown, unknown, unknown>;
317
+ readonly size: BuildPropReturn<StringConstructor, unknown, unknown, "" | "small" | "default" | "large", unknown>;
318
+ readonly disabled: BooleanConstructor;
319
+ readonly validateOnRuleChange: BuildPropReturn<BooleanConstructor, true, unknown, unknown, unknown>;
320
+ readonly hideRequiredAsterisk: BuildPropReturn<BooleanConstructor, false, unknown, unknown, unknown>;
321
+ readonly scrollToError: BooleanConstructor;
322
+ }>> & {
323
+ onValidate?: ((prop: FormItemProp, isValid: boolean, message: string) => any) | undefined;
324
+ }>>;
325
+ emit: (event: "validate", prop: FormItemProp, isValid: boolean, message: string) => void;
326
+ fields: FormItemContext[];
327
+ formSize: ComputedRef<"" | "small" | "default" | "large">;
328
+ ns: {
329
+ namespace: ComputedRef<string>;
330
+ b: (blockSuffix?: string | undefined) => string;
331
+ e: (element?: string | undefined) => string;
332
+ m: (modifier?: string | undefined) => string;
333
+ be: (blockSuffix?: string | undefined, element?: string | undefined) => string;
334
+ em: (element?: string | undefined, modifier?: string | undefined) => string;
335
+ bm: (blockSuffix?: string | undefined, modifier?: string | undefined) => string;
336
+ bem: (blockSuffix?: string | undefined, element?: string | undefined, modifier?: string | undefined) => string;
337
+ is: {
338
+ (name: string, state: boolean | undefined): string;
339
+ (name: string): string;
340
+ };
341
+ cssVar: (object: Record<string, string>) => Record<string, string>;
342
+ cssVarName: (name: string) => string;
343
+ cssVarBlock: (object: Record<string, string>) => Record<string, string>;
344
+ cssVarBlockName: (name: string) => string;
345
+ };
346
+ formClasses: ComputedRef<(string | {
347
+ [x: string]: string | boolean | undefined;
348
+ })[]>;
349
+ addField: (field: FormItemContext) => void;
350
+ removeField: (field: FormItemContext) => void;
351
+ resetFields: (props?: Arrayable<FormItemProp> | undefined) => void;
352
+ clearValidate: (props?: Arrayable<FormItemProp> | undefined) => void;
353
+ isValidatable: ComputedRef<boolean>;
354
+ obtainValidateFields: (props: Arrayable<FormItemProp>) => FormItemContext[];
355
+ validate: (callback?: FormValidateCallback | undefined) => FormValidationResult;
356
+ doValidateField: (props?: Arrayable<FormItemProp> | undefined) => Promise<boolean>;
357
+ validateField: (props?: Arrayable<FormItemProp> | undefined, callback?: FormValidateCallback | undefined) => FormValidationResult;
358
+ scrollToField: (prop: FormItemProp) => void;
359
+ }, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
360
+ validate: (prop: FormItemProp, isValid: boolean, message: string) => boolean;
361
+ }, string, {
362
+ size: BuildPropType<StringConstructor, "" | "small" | "default" | "large", unknown>;
363
+ disabled: boolean;
364
+ rules: Partial<Record<string, Arrayable<FormItemRule>>>;
365
+ labelWidth: BuildPropType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
366
+ labelSuffix: string;
367
+ showMessage: BuildPropType<BooleanConstructor, unknown, unknown>;
368
+ validateOnRuleChange: BuildPropType<BooleanConstructor, unknown, unknown>;
369
+ hideRequiredAsterisk: BuildPropType<BooleanConstructor, unknown, unknown>;
370
+ inline: boolean;
371
+ inlineMessage: boolean;
372
+ statusIcon: boolean;
373
+ scrollToError: boolean;
374
+ }> & {
375
+ beforeCreate?: ((() => void) | (() => void)[]) | undefined;
376
+ created?: ((() => void) | (() => void)[]) | undefined;
377
+ beforeMount?: ((() => void) | (() => void)[]) | undefined;
378
+ mounted?: ((() => void) | (() => void)[]) | undefined;
379
+ beforeUpdate?: ((() => void) | (() => void)[]) | undefined;
380
+ updated?: ((() => void) | (() => void)[]) | undefined;
381
+ activated?: ((() => void) | (() => void)[]) | undefined;
382
+ deactivated?: ((() => void) | (() => void)[]) | undefined;
383
+ beforeDestroy?: ((() => void) | (() => void)[]) | undefined;
384
+ beforeUnmount?: ((() => void) | (() => void)[]) | undefined;
385
+ destroyed?: ((() => void) | (() => void)[]) | undefined;
386
+ unmounted?: ((() => void) | (() => void)[]) | undefined;
387
+ renderTracked?: (((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[]) | undefined;
388
+ renderTriggered?: (((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[]) | undefined;
389
+ errorCaptured?: (((err: unknown, instance: ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null, info: string) => boolean | void)[]) | undefined;
390
+ };
391
+ $forceUpdate: () => void;
392
+ $nextTick: typeof nextTick;
393
+ $watch(source: string | Function, cb: Function, options?: WatchOptions<boolean> | undefined): WatchStopHandle;
394
+ } & Readonly<ExtractPropTypes<{
395
+ readonly model: ObjectConstructor;
396
+ readonly rules: BuildPropReturn<PropWrapper<Partial<Record<string, Arrayable<FormItemRule>>>>, unknown, unknown, unknown, unknown>;
397
+ readonly labelPosition: StringConstructor;
398
+ readonly labelWidth: BuildPropReturn<readonly [StringConstructor, NumberConstructor], "", unknown, unknown, unknown>;
399
+ readonly labelSuffix: BuildPropReturn<StringConstructor, "", unknown, unknown, unknown>;
400
+ readonly inline: BooleanConstructor;
401
+ readonly inlineMessage: BooleanConstructor;
402
+ readonly statusIcon: BooleanConstructor;
403
+ readonly showMessage: BuildPropReturn<BooleanConstructor, true, unknown, unknown, unknown>;
404
+ readonly size: BuildPropReturn<StringConstructor, unknown, unknown, "" | "small" | "default" | "large", unknown>;
405
+ readonly disabled: BooleanConstructor;
406
+ readonly validateOnRuleChange: BuildPropReturn<BooleanConstructor, true, unknown, unknown, unknown>;
407
+ readonly hideRequiredAsterisk: BuildPropReturn<BooleanConstructor, false, unknown, unknown, unknown>;
408
+ readonly scrollToError: BooleanConstructor;
409
+ }>> & {
410
+ onValidate?: ((prop: FormItemProp, isValid: boolean, message: string) => any) | undefined;
411
+ } & ShallowUnwrapRef<{
412
+ COMPONENT_NAME: string;
413
+ props: Readonly<LooseRequired<Readonly<ExtractPropTypes<{
414
+ readonly model: ObjectConstructor;
415
+ readonly rules: BuildPropReturn<PropWrapper<Partial<Record<string, Arrayable<FormItemRule>>>>, unknown, unknown, unknown, unknown>;
416
+ readonly labelPosition: StringConstructor;
417
+ readonly labelWidth: BuildPropReturn<readonly [StringConstructor, NumberConstructor], "", unknown, unknown, unknown>;
418
+ readonly labelSuffix: BuildPropReturn<StringConstructor, "", unknown, unknown, unknown>;
419
+ readonly inline: BooleanConstructor;
420
+ readonly inlineMessage: BooleanConstructor;
421
+ readonly statusIcon: BooleanConstructor;
422
+ readonly showMessage: BuildPropReturn<BooleanConstructor, true, unknown, unknown, unknown>;
423
+ readonly size: BuildPropReturn<StringConstructor, unknown, unknown, "" | "small" | "default" | "large", unknown>;
424
+ readonly disabled: BooleanConstructor;
425
+ readonly validateOnRuleChange: BuildPropReturn<BooleanConstructor, true, unknown, unknown, unknown>;
426
+ readonly hideRequiredAsterisk: BuildPropReturn<BooleanConstructor, false, unknown, unknown, unknown>;
427
+ readonly scrollToError: BooleanConstructor;
428
+ }>> & {
429
+ onValidate?: ((prop: FormItemProp, isValid: boolean, message: string) => any) | undefined;
430
+ }>>;
431
+ emit: (event: "validate", prop: FormItemProp, isValid: boolean, message: string) => void;
432
+ fields: FormItemContext[];
433
+ formSize: ComputedRef<"" | "small" | "default" | "large">;
434
+ ns: {
435
+ namespace: ComputedRef<string>;
436
+ b: (blockSuffix?: string | undefined) => string;
437
+ e: (element?: string | undefined) => string;
438
+ m: (modifier?: string | undefined) => string;
439
+ be: (blockSuffix?: string | undefined, element?: string | undefined) => string;
440
+ em: (element?: string | undefined, modifier?: string | undefined) => string;
441
+ bm: (blockSuffix?: string | undefined, modifier?: string | undefined) => string;
442
+ bem: (blockSuffix?: string | undefined, element?: string | undefined, modifier?: string | undefined) => string;
443
+ is: {
444
+ (name: string, state: boolean | undefined): string;
445
+ (name: string): string;
446
+ };
447
+ cssVar: (object: Record<string, string>) => Record<string, string>;
448
+ cssVarName: (name: string) => string;
449
+ cssVarBlock: (object: Record<string, string>) => Record<string, string>;
450
+ cssVarBlockName: (name: string) => string;
451
+ };
452
+ formClasses: ComputedRef<(string | {
453
+ [x: string]: string | boolean | undefined;
454
+ })[]>;
455
+ addField: (field: FormItemContext) => void;
456
+ removeField: (field: FormItemContext) => void;
457
+ resetFields: (props?: Arrayable<FormItemProp> | undefined) => void;
458
+ clearValidate: (props?: Arrayable<FormItemProp> | undefined) => void;
459
+ isValidatable: ComputedRef<boolean>;
460
+ obtainValidateFields: (props: Arrayable<FormItemProp>) => FormItemContext[];
461
+ validate: (callback?: FormValidateCallback | undefined) => FormValidationResult;
462
+ doValidateField: (props?: Arrayable<FormItemProp> | undefined) => Promise<boolean>;
463
+ validateField: (props?: Arrayable<FormItemProp> | undefined, callback?: FormValidateCallback | undefined) => FormValidationResult;
464
+ scrollToField: (prop: FormItemProp) => void;
465
+ }> & {} & {} & ComponentCustomProperties) | undefined>;
466
+ formState: FormState;
467
+ changeHandler: () => void;
468
+ resetForm: () => void | undefined;
469
+ submitForm: (native?: boolean | undefined) => Promise<any>;
470
+ }, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, ("change" | "field-input" | "field-change")[], string, {
471
+ initValues: Record<string, any>;
472
+ parentValues: Record<string, any>;
473
+ config: FormConfig;
474
+ labelWidth: string;
475
+ disabled: boolean;
476
+ height: string;
477
+ stepActive: string | number;
478
+ inline: boolean;
479
+ labelPosition: string;
480
+ keyProp: string;
481
+ }> & {
482
+ beforeCreate?: ((() => void) | (() => void)[]) | undefined;
483
+ created?: ((() => void) | (() => void)[]) | undefined;
484
+ beforeMount?: ((() => void) | (() => void)[]) | undefined;
485
+ mounted?: ((() => void) | (() => void)[]) | undefined;
486
+ beforeUpdate?: ((() => void) | (() => void)[]) | undefined;
487
+ updated?: ((() => void) | (() => void)[]) | undefined;
488
+ activated?: ((() => void) | (() => void)[]) | undefined;
489
+ deactivated?: ((() => void) | (() => void)[]) | undefined;
490
+ beforeDestroy?: ((() => void) | (() => void)[]) | undefined;
491
+ beforeUnmount?: ((() => void) | (() => void)[]) | undefined;
492
+ destroyed?: ((() => void) | (() => void)[]) | undefined;
493
+ unmounted?: ((() => void) | (() => void)[]) | undefined;
494
+ renderTracked?: (((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[]) | undefined;
495
+ renderTriggered?: (((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[]) | undefined;
496
+ errorCaptured?: (((err: unknown, instance: ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null, info: string) => boolean | void)[]) | undefined;
497
+ };
498
+ $forceUpdate: () => void;
499
+ $nextTick: typeof nextTick;
500
+ $watch(source: string | Function, cb: Function, options?: WatchOptions<boolean> | undefined): WatchStopHandle;
501
+ } & Readonly<ExtractPropTypes<{
502
+ initValues: {
503
+ type: ObjectConstructor;
504
+ required: true;
505
+ default: () => {};
506
+ };
507
+ parentValues: {
508
+ type: ObjectConstructor;
509
+ default: () => {};
510
+ };
511
+ config: {
512
+ type: PropType<FormConfig>;
513
+ required: true;
514
+ default: () => never[];
515
+ };
516
+ labelWidth: {
517
+ type: StringConstructor;
518
+ default: () => string;
519
+ };
520
+ disabled: {
521
+ type: BooleanConstructor;
522
+ default: () => boolean;
523
+ };
524
+ height: {
525
+ type: StringConstructor;
526
+ default: () => string;
527
+ };
528
+ stepActive: {
529
+ type: (StringConstructor | NumberConstructor)[];
530
+ default: () => number;
531
+ };
532
+ size: {
533
+ type: PropType<"small" | "default" | "large">;
534
+ };
535
+ inline: {
536
+ type: BooleanConstructor;
537
+ default: boolean;
538
+ };
539
+ labelPosition: {
540
+ type: StringConstructor;
541
+ default: string;
542
+ };
543
+ keyProp: {
544
+ type: StringConstructor;
545
+ default: string;
546
+ };
547
+ popperClass: {
548
+ type: StringConstructor;
549
+ };
550
+ }>> & {
551
+ onChange?: ((...args: any[]) => any) | undefined;
552
+ "onField-input"?: ((...args: any[]) => any) | undefined;
553
+ "onField-change"?: ((...args: any[]) => any) | undefined;
554
+ } & ShallowUnwrapRef<{
555
+ initialized: Ref<boolean>;
556
+ values: Ref<{
557
+ [x: string]: any;
558
+ [x: number]: any;
559
+ }>;
560
+ elForm: Ref<({
561
+ $: ComponentInternalInstance;
562
+ $data: {};
563
+ $props: Partial<{
564
+ size: BuildPropType<StringConstructor, "" | "small" | "default" | "large", unknown>;
565
+ disabled: boolean;
566
+ rules: Partial<Record<string, Arrayable<FormItemRule>>>;
567
+ labelWidth: BuildPropType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
568
+ labelSuffix: string;
569
+ showMessage: BuildPropType<BooleanConstructor, unknown, unknown>;
570
+ validateOnRuleChange: BuildPropType<BooleanConstructor, unknown, unknown>;
571
+ hideRequiredAsterisk: BuildPropType<BooleanConstructor, unknown, unknown>;
572
+ inline: boolean;
573
+ inlineMessage: boolean;
574
+ statusIcon: boolean;
575
+ scrollToError: boolean;
576
+ }> & Omit<Readonly<ExtractPropTypes<{
577
+ readonly model: ObjectConstructor;
578
+ readonly rules: BuildPropReturn<PropWrapper<Partial<Record<string, Arrayable<FormItemRule>>>>, unknown, unknown, unknown, unknown>;
579
+ readonly labelPosition: StringConstructor;
580
+ readonly labelWidth: BuildPropReturn<readonly [StringConstructor, NumberConstructor], "", unknown, unknown, unknown>;
581
+ readonly labelSuffix: BuildPropReturn<StringConstructor, "", unknown, unknown, unknown>;
582
+ readonly inline: BooleanConstructor;
583
+ readonly inlineMessage: BooleanConstructor;
584
+ readonly statusIcon: BooleanConstructor;
585
+ readonly showMessage: BuildPropReturn<BooleanConstructor, true, unknown, unknown, unknown>;
586
+ readonly size: BuildPropReturn<StringConstructor, unknown, unknown, "" | "small" | "default" | "large", unknown>;
587
+ readonly disabled: BooleanConstructor;
588
+ readonly validateOnRuleChange: BuildPropReturn<BooleanConstructor, true, unknown, unknown, unknown>;
589
+ readonly hideRequiredAsterisk: BuildPropReturn<BooleanConstructor, false, unknown, unknown, unknown>;
590
+ readonly scrollToError: BooleanConstructor;
591
+ }>> & {
592
+ onValidate?: ((prop: FormItemProp, isValid: boolean, message: string) => any) | undefined;
593
+ } & VNodeProps & AllowedComponentProps & ComponentCustomProps, "labelWidth" | "disabled" | "size" | "inline" | "rules" | "labelSuffix" | "inlineMessage" | "statusIcon" | "showMessage" | "validateOnRuleChange" | "hideRequiredAsterisk" | "scrollToError">;
594
+ $attrs: {
595
+ [x: string]: unknown;
596
+ };
597
+ $refs: {
598
+ [x: string]: unknown;
599
+ };
600
+ $slots: Readonly<{
601
+ [name: string]: Slot | undefined;
602
+ }>;
603
+ $root: ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null;
604
+ $parent: ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null;
605
+ $emit: (event: "validate", prop: FormItemProp, isValid: boolean, message: string) => void;
606
+ $el: any;
607
+ $options: ComponentOptionsBase<Readonly<ExtractPropTypes<{
608
+ readonly model: ObjectConstructor;
609
+ readonly rules: BuildPropReturn<PropWrapper<Partial<Record<string, Arrayable<FormItemRule>>>>, unknown, unknown, unknown, unknown>;
610
+ readonly labelPosition: StringConstructor;
611
+ readonly labelWidth: BuildPropReturn<readonly [StringConstructor, NumberConstructor], "", unknown, unknown, unknown>;
612
+ readonly labelSuffix: BuildPropReturn<StringConstructor, "", unknown, unknown, unknown>;
613
+ readonly inline: BooleanConstructor;
614
+ readonly inlineMessage: BooleanConstructor;
615
+ readonly statusIcon: BooleanConstructor;
616
+ readonly showMessage: BuildPropReturn<BooleanConstructor, true, unknown, unknown, unknown>;
617
+ readonly size: BuildPropReturn<StringConstructor, unknown, unknown, "" | "small" | "default" | "large", unknown>;
618
+ readonly disabled: BooleanConstructor;
619
+ readonly validateOnRuleChange: BuildPropReturn<BooleanConstructor, true, unknown, unknown, unknown>;
620
+ readonly hideRequiredAsterisk: BuildPropReturn<BooleanConstructor, false, unknown, unknown, unknown>;
621
+ readonly scrollToError: BooleanConstructor;
622
+ }>> & {
623
+ onValidate?: ((prop: FormItemProp, isValid: boolean, message: string) => any) | undefined;
624
+ }, {
625
+ COMPONENT_NAME: string;
626
+ props: Readonly<LooseRequired<Readonly<ExtractPropTypes<{
627
+ readonly model: ObjectConstructor;
628
+ readonly rules: BuildPropReturn<PropWrapper<Partial<Record<string, Arrayable<FormItemRule>>>>, unknown, unknown, unknown, unknown>;
629
+ readonly labelPosition: StringConstructor;
630
+ readonly labelWidth: BuildPropReturn<readonly [StringConstructor, NumberConstructor], "", unknown, unknown, unknown>;
631
+ readonly labelSuffix: BuildPropReturn<StringConstructor, "", unknown, unknown, unknown>;
632
+ readonly inline: BooleanConstructor;
633
+ readonly inlineMessage: BooleanConstructor;
634
+ readonly statusIcon: BooleanConstructor;
635
+ readonly showMessage: BuildPropReturn<BooleanConstructor, true, unknown, unknown, unknown>;
636
+ readonly size: BuildPropReturn<StringConstructor, unknown, unknown, "" | "small" | "default" | "large", unknown>;
637
+ readonly disabled: BooleanConstructor;
638
+ readonly validateOnRuleChange: BuildPropReturn<BooleanConstructor, true, unknown, unknown, unknown>;
639
+ readonly hideRequiredAsterisk: BuildPropReturn<BooleanConstructor, false, unknown, unknown, unknown>;
640
+ readonly scrollToError: BooleanConstructor;
641
+ }>> & {
642
+ onValidate?: ((prop: FormItemProp, isValid: boolean, message: string) => any) | undefined;
643
+ }>>;
644
+ emit: (event: "validate", prop: FormItemProp, isValid: boolean, message: string) => void;
645
+ fields: FormItemContext[];
646
+ formSize: ComputedRef<"" | "small" | "default" | "large">;
647
+ ns: {
648
+ namespace: ComputedRef<string>;
649
+ b: (blockSuffix?: string | undefined) => string;
650
+ e: (element?: string | undefined) => string;
651
+ m: (modifier?: string | undefined) => string;
652
+ be: (blockSuffix?: string | undefined, element?: string | undefined) => string;
653
+ em: (element?: string | undefined, modifier?: string | undefined) => string;
654
+ bm: (blockSuffix?: string | undefined, modifier?: string | undefined) => string;
655
+ bem: (blockSuffix?: string | undefined, element?: string | undefined, modifier?: string | undefined) => string;
656
+ is: {
657
+ (name: string, state: boolean | undefined): string;
658
+ (name: string): string;
659
+ };
660
+ cssVar: (object: Record<string, string>) => Record<string, string>;
661
+ cssVarName: (name: string) => string;
662
+ cssVarBlock: (object: Record<string, string>) => Record<string, string>;
663
+ cssVarBlockName: (name: string) => string;
664
+ };
665
+ formClasses: ComputedRef<(string | {
666
+ [x: string]: string | boolean | undefined;
667
+ })[]>;
668
+ addField: (field: FormItemContext) => void;
669
+ removeField: (field: FormItemContext) => void;
670
+ resetFields: (props?: Arrayable<FormItemProp> | undefined) => void;
671
+ clearValidate: (props?: Arrayable<FormItemProp> | undefined) => void;
672
+ isValidatable: ComputedRef<boolean>;
673
+ obtainValidateFields: (props: Arrayable<FormItemProp>) => FormItemContext[];
674
+ validate: (callback?: FormValidateCallback | undefined) => FormValidationResult;
675
+ doValidateField: (props?: Arrayable<FormItemProp> | undefined) => Promise<boolean>;
676
+ validateField: (props?: Arrayable<FormItemProp> | undefined, callback?: FormValidateCallback | undefined) => FormValidationResult;
677
+ scrollToField: (prop: FormItemProp) => void;
678
+ }, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
679
+ validate: (prop: FormItemProp, isValid: boolean, message: string) => boolean;
680
+ }, string, {
681
+ size: BuildPropType<StringConstructor, "" | "small" | "default" | "large", unknown>;
682
+ disabled: boolean;
683
+ rules: Partial<Record<string, Arrayable<FormItemRule>>>;
684
+ labelWidth: BuildPropType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
685
+ labelSuffix: string;
686
+ showMessage: BuildPropType<BooleanConstructor, unknown, unknown>;
687
+ validateOnRuleChange: BuildPropType<BooleanConstructor, unknown, unknown>;
688
+ hideRequiredAsterisk: BuildPropType<BooleanConstructor, unknown, unknown>;
689
+ inline: boolean;
690
+ inlineMessage: boolean;
691
+ statusIcon: boolean;
692
+ scrollToError: boolean;
693
+ }> & {
694
+ beforeCreate?: ((() => void) | (() => void)[]) | undefined;
695
+ created?: ((() => void) | (() => void)[]) | undefined;
696
+ beforeMount?: ((() => void) | (() => void)[]) | undefined;
697
+ mounted?: ((() => void) | (() => void)[]) | undefined;
698
+ beforeUpdate?: ((() => void) | (() => void)[]) | undefined;
699
+ updated?: ((() => void) | (() => void)[]) | undefined;
700
+ activated?: ((() => void) | (() => void)[]) | undefined;
701
+ deactivated?: ((() => void) | (() => void)[]) | undefined;
702
+ beforeDestroy?: ((() => void) | (() => void)[]) | undefined;
703
+ beforeUnmount?: ((() => void) | (() => void)[]) | undefined;
704
+ destroyed?: ((() => void) | (() => void)[]) | undefined;
705
+ unmounted?: ((() => void) | (() => void)[]) | undefined;
706
+ renderTracked?: (((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[]) | undefined;
707
+ renderTriggered?: (((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[]) | undefined;
708
+ errorCaptured?: (((err: unknown, instance: ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null, info: string) => boolean | void)[]) | undefined;
709
+ };
710
+ $forceUpdate: () => void;
711
+ $nextTick: typeof nextTick;
712
+ $watch(source: string | Function, cb: Function, options?: WatchOptions<boolean> | undefined): WatchStopHandle;
713
+ } & Readonly<ExtractPropTypes<{
714
+ readonly model: ObjectConstructor;
715
+ readonly rules: BuildPropReturn<PropWrapper<Partial<Record<string, Arrayable<FormItemRule>>>>, unknown, unknown, unknown, unknown>;
716
+ readonly labelPosition: StringConstructor;
717
+ readonly labelWidth: BuildPropReturn<readonly [StringConstructor, NumberConstructor], "", unknown, unknown, unknown>;
718
+ readonly labelSuffix: BuildPropReturn<StringConstructor, "", unknown, unknown, unknown>;
719
+ readonly inline: BooleanConstructor;
720
+ readonly inlineMessage: BooleanConstructor;
721
+ readonly statusIcon: BooleanConstructor;
722
+ readonly showMessage: BuildPropReturn<BooleanConstructor, true, unknown, unknown, unknown>;
723
+ readonly size: BuildPropReturn<StringConstructor, unknown, unknown, "" | "small" | "default" | "large", unknown>;
724
+ readonly disabled: BooleanConstructor;
725
+ readonly validateOnRuleChange: BuildPropReturn<BooleanConstructor, true, unknown, unknown, unknown>;
726
+ readonly hideRequiredAsterisk: BuildPropReturn<BooleanConstructor, false, unknown, unknown, unknown>;
727
+ readonly scrollToError: BooleanConstructor;
728
+ }>> & {
729
+ onValidate?: ((prop: FormItemProp, isValid: boolean, message: string) => any) | undefined;
730
+ } & ShallowUnwrapRef<{
731
+ COMPONENT_NAME: string;
732
+ props: Readonly<LooseRequired<Readonly<ExtractPropTypes<{
733
+ readonly model: ObjectConstructor;
734
+ readonly rules: BuildPropReturn<PropWrapper<Partial<Record<string, Arrayable<FormItemRule>>>>, unknown, unknown, unknown, unknown>;
735
+ readonly labelPosition: StringConstructor;
736
+ readonly labelWidth: BuildPropReturn<readonly [StringConstructor, NumberConstructor], "", unknown, unknown, unknown>;
737
+ readonly labelSuffix: BuildPropReturn<StringConstructor, "", unknown, unknown, unknown>;
738
+ readonly inline: BooleanConstructor;
739
+ readonly inlineMessage: BooleanConstructor;
740
+ readonly statusIcon: BooleanConstructor;
741
+ readonly showMessage: BuildPropReturn<BooleanConstructor, true, unknown, unknown, unknown>;
742
+ readonly size: BuildPropReturn<StringConstructor, unknown, unknown, "" | "small" | "default" | "large", unknown>;
743
+ readonly disabled: BooleanConstructor;
744
+ readonly validateOnRuleChange: BuildPropReturn<BooleanConstructor, true, unknown, unknown, unknown>;
745
+ readonly hideRequiredAsterisk: BuildPropReturn<BooleanConstructor, false, unknown, unknown, unknown>;
746
+ readonly scrollToError: BooleanConstructor;
747
+ }>> & {
748
+ onValidate?: ((prop: FormItemProp, isValid: boolean, message: string) => any) | undefined;
749
+ }>>;
750
+ emit: (event: "validate", prop: FormItemProp, isValid: boolean, message: string) => void;
751
+ fields: FormItemContext[];
752
+ formSize: ComputedRef<"" | "small" | "default" | "large">;
753
+ ns: {
754
+ namespace: ComputedRef<string>;
755
+ b: (blockSuffix?: string | undefined) => string;
756
+ e: (element?: string | undefined) => string;
757
+ m: (modifier?: string | undefined) => string;
758
+ be: (blockSuffix?: string | undefined, element?: string | undefined) => string;
759
+ em: (element?: string | undefined, modifier?: string | undefined) => string;
760
+ bm: (blockSuffix?: string | undefined, modifier?: string | undefined) => string;
761
+ bem: (blockSuffix?: string | undefined, element?: string | undefined, modifier?: string | undefined) => string;
762
+ is: {
763
+ (name: string, state: boolean | undefined): string;
764
+ (name: string): string;
765
+ };
766
+ cssVar: (object: Record<string, string>) => Record<string, string>;
767
+ cssVarName: (name: string) => string;
768
+ cssVarBlock: (object: Record<string, string>) => Record<string, string>;
769
+ cssVarBlockName: (name: string) => string;
770
+ };
771
+ formClasses: ComputedRef<(string | {
772
+ [x: string]: string | boolean | undefined;
773
+ })[]>;
774
+ addField: (field: FormItemContext) => void;
775
+ removeField: (field: FormItemContext) => void;
776
+ resetFields: (props?: Arrayable<FormItemProp> | undefined) => void;
777
+ clearValidate: (props?: Arrayable<FormItemProp> | undefined) => void;
778
+ isValidatable: ComputedRef<boolean>;
779
+ obtainValidateFields: (props: Arrayable<FormItemProp>) => FormItemContext[];
780
+ validate: (callback?: FormValidateCallback | undefined) => FormValidationResult;
781
+ doValidateField: (props?: Arrayable<FormItemProp> | undefined) => Promise<boolean>;
782
+ validateField: (props?: Arrayable<FormItemProp> | undefined, callback?: FormValidateCallback | undefined) => FormValidationResult;
783
+ scrollToField: (prop: FormItemProp) => void;
784
+ }> & {} & {} & ComponentCustomProperties) | undefined>;
785
+ formState: FormState;
786
+ changeHandler: () => void;
787
+ resetForm: () => void | undefined;
788
+ submitForm: (native?: boolean | undefined) => Promise<any>;
789
+ }> & {} & {} & ComponentCustomProperties) | undefined>;
790
+ saveFetch: Ref<boolean>;
791
+ stepActive: Ref<number>;
792
+ dialogVisible: Ref<boolean>;
793
+ bodyHeight: Ref<string>;
794
+ stepCount: ComputedRef<number>;
795
+ hasStep: ComputedRef<boolean>;
796
+ cancel: () => void;
797
+ closeHandler: () => void;
798
+ save: () => Promise<void>;
799
+ preStep: () => void;
800
+ nextStep: () => void;
801
+ changeHandler: (value: any) => void;
802
+ }, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, ("change" | "close" | "submit" | "error")[], string, {
803
+ values: Record<string, any>;
804
+ config: FormConfig;
805
+ fullscreen: boolean;
806
+ confirmText: string;
807
+ }> & {
808
+ beforeCreate?: ((() => void) | (() => void)[]) | undefined;
809
+ created?: ((() => void) | (() => void)[]) | undefined;
810
+ beforeMount?: ((() => void) | (() => void)[]) | undefined;
811
+ mounted?: ((() => void) | (() => void)[]) | undefined;
812
+ beforeUpdate?: ((() => void) | (() => void)[]) | undefined;
813
+ updated?: ((() => void) | (() => void)[]) | undefined;
814
+ activated?: ((() => void) | (() => void)[]) | undefined;
815
+ deactivated?: ((() => void) | (() => void)[]) | undefined;
816
+ beforeDestroy?: ((() => void) | (() => void)[]) | undefined;
817
+ beforeUnmount?: ((() => void) | (() => void)[]) | undefined;
818
+ destroyed?: ((() => void) | (() => void)[]) | undefined;
819
+ unmounted?: ((() => void) | (() => void)[]) | undefined;
820
+ renderTracked?: (((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[]) | undefined;
821
+ renderTriggered?: (((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[]) | undefined;
822
+ errorCaptured?: (((err: unknown, instance: ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null, info: string) => boolean | void)[]) | undefined;
823
+ };
824
+ $forceUpdate: () => void;
825
+ $nextTick: typeof nextTick;
826
+ $watch(source: string | Function, cb: Function, options?: WatchOptions<boolean> | undefined): WatchStopHandle;
827
+ } & Readonly<ExtractPropTypes<{
828
+ values: {
829
+ type: ObjectConstructor;
830
+ default: () => {};
831
+ };
832
+ width: (StringConstructor | NumberConstructor)[];
833
+ fullscreen: BooleanConstructor;
834
+ title: StringConstructor;
835
+ config: {
836
+ type: PropType<FormConfig>;
837
+ required: true;
838
+ default: () => never[];
839
+ };
840
+ labelWidth: (StringConstructor | NumberConstructor)[];
841
+ size: PropType<"small" | "default" | "large">;
842
+ confirmText: {
843
+ type: StringConstructor;
844
+ default: string;
845
+ };
846
+ }>> & {
847
+ onChange?: ((...args: any[]) => any) | undefined;
848
+ onClose?: ((...args: any[]) => any) | undefined;
849
+ onSubmit?: ((...args: any[]) => any) | undefined;
850
+ onError?: ((...args: any[]) => any) | undefined;
851
+ } & ShallowUnwrapRef<{
852
+ form: Ref<({
853
+ $: ComponentInternalInstance;
854
+ $data: {};
855
+ $props: Partial<{
856
+ initValues: Record<string, any>;
857
+ parentValues: Record<string, any>;
858
+ config: FormConfig;
859
+ labelWidth: string;
860
+ disabled: boolean;
861
+ height: string;
862
+ stepActive: string | number;
863
+ inline: boolean;
864
+ labelPosition: string;
865
+ keyProp: string;
866
+ }> & Omit<Readonly<ExtractPropTypes<{
867
+ initValues: {
868
+ type: ObjectConstructor;
869
+ required: true;
870
+ default: () => {};
871
+ };
872
+ parentValues: {
873
+ type: ObjectConstructor;
874
+ default: () => {};
875
+ };
876
+ config: {
877
+ type: PropType<FormConfig>;
878
+ required: true;
879
+ default: () => never[];
880
+ };
881
+ labelWidth: {
882
+ type: StringConstructor;
883
+ default: () => string;
884
+ };
885
+ disabled: {
886
+ type: BooleanConstructor;
887
+ default: () => boolean;
888
+ };
889
+ height: {
890
+ type: StringConstructor;
891
+ default: () => string;
892
+ };
893
+ stepActive: {
894
+ type: (StringConstructor | NumberConstructor)[];
895
+ default: () => number;
896
+ };
897
+ size: {
898
+ type: PropType<"small" | "default" | "large">;
899
+ };
900
+ inline: {
901
+ type: BooleanConstructor;
902
+ default: boolean;
903
+ };
904
+ labelPosition: {
905
+ type: StringConstructor;
906
+ default: string;
907
+ };
908
+ keyProp: {
909
+ type: StringConstructor;
910
+ default: string;
911
+ };
912
+ popperClass: {
913
+ type: StringConstructor;
914
+ };
915
+ }>> & {
916
+ onChange?: ((...args: any[]) => any) | undefined;
917
+ "onField-input"?: ((...args: any[]) => any) | undefined;
918
+ "onField-change"?: ((...args: any[]) => any) | undefined;
919
+ } & VNodeProps & AllowedComponentProps & ComponentCustomProps, "initValues" | "parentValues" | "config" | "labelWidth" | "disabled" | "height" | "stepActive" | "inline" | "labelPosition" | "keyProp">;
920
+ $attrs: {
921
+ [x: string]: unknown;
922
+ };
923
+ $refs: {
924
+ [x: string]: unknown;
925
+ };
926
+ $slots: Readonly<{
927
+ [name: string]: Slot | undefined;
928
+ }>;
929
+ $root: ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null;
930
+ $parent: ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null;
931
+ $emit: (event: "change" | "field-input" | "field-change", ...args: any[]) => void;
932
+ $el: any;
933
+ $options: ComponentOptionsBase<Readonly<ExtractPropTypes<{
934
+ initValues: {
935
+ type: ObjectConstructor;
936
+ required: true;
937
+ default: () => {};
938
+ };
939
+ parentValues: {
940
+ type: ObjectConstructor;
941
+ default: () => {};
942
+ };
943
+ config: {
944
+ type: PropType<FormConfig>;
945
+ required: true;
946
+ default: () => never[];
947
+ };
948
+ labelWidth: {
949
+ type: StringConstructor;
950
+ default: () => string;
951
+ };
952
+ disabled: {
953
+ type: BooleanConstructor;
954
+ default: () => boolean;
955
+ };
956
+ height: {
957
+ type: StringConstructor;
958
+ default: () => string;
959
+ };
960
+ stepActive: {
961
+ type: (StringConstructor | NumberConstructor)[];
962
+ default: () => number;
963
+ };
964
+ size: {
965
+ type: PropType<"small" | "default" | "large">;
966
+ };
967
+ inline: {
968
+ type: BooleanConstructor;
969
+ default: boolean;
970
+ };
971
+ labelPosition: {
972
+ type: StringConstructor;
973
+ default: string;
974
+ };
975
+ keyProp: {
976
+ type: StringConstructor;
977
+ default: string;
978
+ };
979
+ popperClass: {
980
+ type: StringConstructor;
981
+ };
982
+ }>> & {
983
+ onChange?: ((...args: any[]) => any) | undefined;
984
+ "onField-input"?: ((...args: any[]) => any) | undefined;
985
+ "onField-change"?: ((...args: any[]) => any) | undefined;
986
+ }, {
987
+ initialized: Ref<boolean>;
988
+ values: Ref<{
989
+ [x: string]: any;
990
+ [x: number]: any;
991
+ }>;
992
+ elForm: Ref<({
993
+ $: ComponentInternalInstance;
994
+ $data: {};
995
+ $props: Partial<{
996
+ size: BuildPropType<StringConstructor, "" | "small" | "default" | "large", unknown>;
997
+ disabled: boolean;
998
+ rules: Partial<Record<string, Arrayable<FormItemRule>>>;
999
+ labelWidth: BuildPropType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
1000
+ labelSuffix: string;
1001
+ showMessage: BuildPropType<BooleanConstructor, unknown, unknown>;
1002
+ validateOnRuleChange: BuildPropType<BooleanConstructor, unknown, unknown>;
1003
+ hideRequiredAsterisk: BuildPropType<BooleanConstructor, unknown, unknown>;
1004
+ inline: boolean;
1005
+ inlineMessage: boolean;
1006
+ statusIcon: boolean;
1007
+ scrollToError: boolean;
1008
+ }> & Omit<Readonly<ExtractPropTypes<{
1009
+ readonly model: ObjectConstructor;
1010
+ readonly rules: BuildPropReturn<PropWrapper<Partial<Record<string, Arrayable<FormItemRule>>>>, unknown, unknown, unknown, unknown>;
1011
+ readonly labelPosition: StringConstructor;
1012
+ readonly labelWidth: BuildPropReturn<readonly [StringConstructor, NumberConstructor], "", unknown, unknown, unknown>;
1013
+ readonly labelSuffix: BuildPropReturn<StringConstructor, "", unknown, unknown, unknown>;
1014
+ readonly inline: BooleanConstructor;
1015
+ readonly inlineMessage: BooleanConstructor;
1016
+ readonly statusIcon: BooleanConstructor;
1017
+ readonly showMessage: BuildPropReturn<BooleanConstructor, true, unknown, unknown, unknown>;
1018
+ readonly size: BuildPropReturn<StringConstructor, unknown, unknown, "" | "small" | "default" | "large", unknown>;
1019
+ readonly disabled: BooleanConstructor;
1020
+ readonly validateOnRuleChange: BuildPropReturn<BooleanConstructor, true, unknown, unknown, unknown>;
1021
+ readonly hideRequiredAsterisk: BuildPropReturn<BooleanConstructor, false, unknown, unknown, unknown>;
1022
+ readonly scrollToError: BooleanConstructor;
1023
+ }>> & {
1024
+ onValidate?: ((prop: FormItemProp, isValid: boolean, message: string) => any) | undefined;
1025
+ } & VNodeProps & AllowedComponentProps & ComponentCustomProps, "labelWidth" | "disabled" | "size" | "inline" | "rules" | "labelSuffix" | "inlineMessage" | "statusIcon" | "showMessage" | "validateOnRuleChange" | "hideRequiredAsterisk" | "scrollToError">;
1026
+ $attrs: {
1027
+ [x: string]: unknown;
1028
+ };
1029
+ $refs: {
1030
+ [x: string]: unknown;
1031
+ };
1032
+ $slots: Readonly<{
1033
+ [name: string]: Slot | undefined;
1034
+ }>;
1035
+ $root: ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null;
1036
+ $parent: ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null;
1037
+ $emit: (event: "validate", prop: FormItemProp, isValid: boolean, message: string) => void;
1038
+ $el: any;
1039
+ $options: ComponentOptionsBase<Readonly<ExtractPropTypes<{
1040
+ readonly model: ObjectConstructor;
1041
+ readonly rules: BuildPropReturn<PropWrapper<Partial<Record<string, Arrayable<FormItemRule>>>>, unknown, unknown, unknown, unknown>;
1042
+ readonly labelPosition: StringConstructor;
1043
+ readonly labelWidth: BuildPropReturn<readonly [StringConstructor, NumberConstructor], "", unknown, unknown, unknown>;
1044
+ readonly labelSuffix: BuildPropReturn<StringConstructor, "", unknown, unknown, unknown>;
1045
+ readonly inline: BooleanConstructor;
1046
+ readonly inlineMessage: BooleanConstructor;
1047
+ readonly statusIcon: BooleanConstructor;
1048
+ readonly showMessage: BuildPropReturn<BooleanConstructor, true, unknown, unknown, unknown>;
1049
+ readonly size: BuildPropReturn<StringConstructor, unknown, unknown, "" | "small" | "default" | "large", unknown>;
1050
+ readonly disabled: BooleanConstructor;
1051
+ readonly validateOnRuleChange: BuildPropReturn<BooleanConstructor, true, unknown, unknown, unknown>;
1052
+ readonly hideRequiredAsterisk: BuildPropReturn<BooleanConstructor, false, unknown, unknown, unknown>;
1053
+ readonly scrollToError: BooleanConstructor;
1054
+ }>> & {
1055
+ onValidate?: ((prop: FormItemProp, isValid: boolean, message: string) => any) | undefined;
1056
+ }, {
1057
+ COMPONENT_NAME: string;
1058
+ props: Readonly<LooseRequired<Readonly<ExtractPropTypes<{
1059
+ readonly model: ObjectConstructor;
1060
+ readonly rules: BuildPropReturn<PropWrapper<Partial<Record<string, Arrayable<FormItemRule>>>>, unknown, unknown, unknown, unknown>;
1061
+ readonly labelPosition: StringConstructor;
1062
+ readonly labelWidth: BuildPropReturn<readonly [StringConstructor, NumberConstructor], "", unknown, unknown, unknown>;
1063
+ readonly labelSuffix: BuildPropReturn<StringConstructor, "", unknown, unknown, unknown>;
1064
+ readonly inline: BooleanConstructor;
1065
+ readonly inlineMessage: BooleanConstructor;
1066
+ readonly statusIcon: BooleanConstructor;
1067
+ readonly showMessage: BuildPropReturn<BooleanConstructor, true, unknown, unknown, unknown>;
1068
+ readonly size: BuildPropReturn<StringConstructor, unknown, unknown, "" | "small" | "default" | "large", unknown>;
1069
+ readonly disabled: BooleanConstructor;
1070
+ readonly validateOnRuleChange: BuildPropReturn<BooleanConstructor, true, unknown, unknown, unknown>;
1071
+ readonly hideRequiredAsterisk: BuildPropReturn<BooleanConstructor, false, unknown, unknown, unknown>;
1072
+ readonly scrollToError: BooleanConstructor;
1073
+ }>> & {
1074
+ onValidate?: ((prop: FormItemProp, isValid: boolean, message: string) => any) | undefined;
1075
+ }>>;
1076
+ emit: (event: "validate", prop: FormItemProp, isValid: boolean, message: string) => void;
1077
+ fields: FormItemContext[];
1078
+ formSize: ComputedRef<"" | "small" | "default" | "large">;
1079
+ ns: {
1080
+ namespace: ComputedRef<string>;
1081
+ b: (blockSuffix?: string | undefined) => string;
1082
+ e: (element?: string | undefined) => string;
1083
+ m: (modifier?: string | undefined) => string;
1084
+ be: (blockSuffix?: string | undefined, element?: string | undefined) => string;
1085
+ em: (element?: string | undefined, modifier?: string | undefined) => string;
1086
+ bm: (blockSuffix?: string | undefined, modifier?: string | undefined) => string;
1087
+ bem: (blockSuffix?: string | undefined, element?: string | undefined, modifier?: string | undefined) => string;
1088
+ is: {
1089
+ (name: string, state: boolean | undefined): string;
1090
+ (name: string): string;
1091
+ };
1092
+ cssVar: (object: Record<string, string>) => Record<string, string>;
1093
+ cssVarName: (name: string) => string;
1094
+ cssVarBlock: (object: Record<string, string>) => Record<string, string>;
1095
+ cssVarBlockName: (name: string) => string;
1096
+ };
1097
+ formClasses: ComputedRef<(string | {
1098
+ [x: string]: string | boolean | undefined;
1099
+ })[]>;
1100
+ addField: (field: FormItemContext) => void;
1101
+ removeField: (field: FormItemContext) => void;
1102
+ resetFields: (props?: Arrayable<FormItemProp> | undefined) => void;
1103
+ clearValidate: (props?: Arrayable<FormItemProp> | undefined) => void;
1104
+ isValidatable: ComputedRef<boolean>;
1105
+ obtainValidateFields: (props: Arrayable<FormItemProp>) => FormItemContext[];
1106
+ validate: (callback?: FormValidateCallback | undefined) => FormValidationResult;
1107
+ doValidateField: (props?: Arrayable<FormItemProp> | undefined) => Promise<boolean>;
1108
+ validateField: (props?: Arrayable<FormItemProp> | undefined, callback?: FormValidateCallback | undefined) => FormValidationResult;
1109
+ scrollToField: (prop: FormItemProp) => void;
1110
+ }, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
1111
+ validate: (prop: FormItemProp, isValid: boolean, message: string) => boolean;
1112
+ }, string, {
1113
+ size: BuildPropType<StringConstructor, "" | "small" | "default" | "large", unknown>;
1114
+ disabled: boolean;
1115
+ rules: Partial<Record<string, Arrayable<FormItemRule>>>;
1116
+ labelWidth: BuildPropType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
1117
+ labelSuffix: string;
1118
+ showMessage: BuildPropType<BooleanConstructor, unknown, unknown>;
1119
+ validateOnRuleChange: BuildPropType<BooleanConstructor, unknown, unknown>;
1120
+ hideRequiredAsterisk: BuildPropType<BooleanConstructor, unknown, unknown>;
1121
+ inline: boolean;
1122
+ inlineMessage: boolean;
1123
+ statusIcon: boolean;
1124
+ scrollToError: boolean;
1125
+ }> & {
1126
+ beforeCreate?: ((() => void) | (() => void)[]) | undefined;
1127
+ created?: ((() => void) | (() => void)[]) | undefined;
1128
+ beforeMount?: ((() => void) | (() => void)[]) | undefined;
1129
+ mounted?: ((() => void) | (() => void)[]) | undefined;
1130
+ beforeUpdate?: ((() => void) | (() => void)[]) | undefined;
1131
+ updated?: ((() => void) | (() => void)[]) | undefined;
1132
+ activated?: ((() => void) | (() => void)[]) | undefined;
1133
+ deactivated?: ((() => void) | (() => void)[]) | undefined;
1134
+ beforeDestroy?: ((() => void) | (() => void)[]) | undefined;
1135
+ beforeUnmount?: ((() => void) | (() => void)[]) | undefined;
1136
+ destroyed?: ((() => void) | (() => void)[]) | undefined;
1137
+ unmounted?: ((() => void) | (() => void)[]) | undefined;
1138
+ renderTracked?: (((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[]) | undefined;
1139
+ renderTriggered?: (((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[]) | undefined;
1140
+ errorCaptured?: (((err: unknown, instance: ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null, info: string) => boolean | void)[]) | undefined;
1141
+ };
1142
+ $forceUpdate: () => void;
1143
+ $nextTick: typeof nextTick;
1144
+ $watch(source: string | Function, cb: Function, options?: WatchOptions<boolean> | undefined): WatchStopHandle;
1145
+ } & Readonly<ExtractPropTypes<{
1146
+ readonly model: ObjectConstructor;
1147
+ readonly rules: BuildPropReturn<PropWrapper<Partial<Record<string, Arrayable<FormItemRule>>>>, unknown, unknown, unknown, unknown>;
1148
+ readonly labelPosition: StringConstructor;
1149
+ readonly labelWidth: BuildPropReturn<readonly [StringConstructor, NumberConstructor], "", unknown, unknown, unknown>;
1150
+ readonly labelSuffix: BuildPropReturn<StringConstructor, "", unknown, unknown, unknown>;
1151
+ readonly inline: BooleanConstructor;
1152
+ readonly inlineMessage: BooleanConstructor;
1153
+ readonly statusIcon: BooleanConstructor;
1154
+ readonly showMessage: BuildPropReturn<BooleanConstructor, true, unknown, unknown, unknown>;
1155
+ readonly size: BuildPropReturn<StringConstructor, unknown, unknown, "" | "small" | "default" | "large", unknown>;
1156
+ readonly disabled: BooleanConstructor;
1157
+ readonly validateOnRuleChange: BuildPropReturn<BooleanConstructor, true, unknown, unknown, unknown>;
1158
+ readonly hideRequiredAsterisk: BuildPropReturn<BooleanConstructor, false, unknown, unknown, unknown>;
1159
+ readonly scrollToError: BooleanConstructor;
1160
+ }>> & {
1161
+ onValidate?: ((prop: FormItemProp, isValid: boolean, message: string) => any) | undefined;
1162
+ } & ShallowUnwrapRef<{
1163
+ COMPONENT_NAME: string;
1164
+ props: Readonly<LooseRequired<Readonly<ExtractPropTypes<{
1165
+ readonly model: ObjectConstructor;
1166
+ readonly rules: BuildPropReturn<PropWrapper<Partial<Record<string, Arrayable<FormItemRule>>>>, unknown, unknown, unknown, unknown>;
1167
+ readonly labelPosition: StringConstructor;
1168
+ readonly labelWidth: BuildPropReturn<readonly [StringConstructor, NumberConstructor], "", unknown, unknown, unknown>;
1169
+ readonly labelSuffix: BuildPropReturn<StringConstructor, "", unknown, unknown, unknown>;
1170
+ readonly inline: BooleanConstructor;
1171
+ readonly inlineMessage: BooleanConstructor;
1172
+ readonly statusIcon: BooleanConstructor;
1173
+ readonly showMessage: BuildPropReturn<BooleanConstructor, true, unknown, unknown, unknown>;
1174
+ readonly size: BuildPropReturn<StringConstructor, unknown, unknown, "" | "small" | "default" | "large", unknown>;
1175
+ readonly disabled: BooleanConstructor;
1176
+ readonly validateOnRuleChange: BuildPropReturn<BooleanConstructor, true, unknown, unknown, unknown>;
1177
+ readonly hideRequiredAsterisk: BuildPropReturn<BooleanConstructor, false, unknown, unknown, unknown>;
1178
+ readonly scrollToError: BooleanConstructor;
1179
+ }>> & {
1180
+ onValidate?: ((prop: FormItemProp, isValid: boolean, message: string) => any) | undefined;
1181
+ }>>;
1182
+ emit: (event: "validate", prop: FormItemProp, isValid: boolean, message: string) => void;
1183
+ fields: FormItemContext[];
1184
+ formSize: ComputedRef<"" | "small" | "default" | "large">;
1185
+ ns: {
1186
+ namespace: ComputedRef<string>;
1187
+ b: (blockSuffix?: string | undefined) => string;
1188
+ e: (element?: string | undefined) => string;
1189
+ m: (modifier?: string | undefined) => string;
1190
+ be: (blockSuffix?: string | undefined, element?: string | undefined) => string;
1191
+ em: (element?: string | undefined, modifier?: string | undefined) => string;
1192
+ bm: (blockSuffix?: string | undefined, modifier?: string | undefined) => string;
1193
+ bem: (blockSuffix?: string | undefined, element?: string | undefined, modifier?: string | undefined) => string;
1194
+ is: {
1195
+ (name: string, state: boolean | undefined): string;
1196
+ (name: string): string;
1197
+ };
1198
+ cssVar: (object: Record<string, string>) => Record<string, string>;
1199
+ cssVarName: (name: string) => string;
1200
+ cssVarBlock: (object: Record<string, string>) => Record<string, string>;
1201
+ cssVarBlockName: (name: string) => string;
1202
+ };
1203
+ formClasses: ComputedRef<(string | {
1204
+ [x: string]: string | boolean | undefined;
1205
+ })[]>;
1206
+ addField: (field: FormItemContext) => void;
1207
+ removeField: (field: FormItemContext) => void;
1208
+ resetFields: (props?: Arrayable<FormItemProp> | undefined) => void;
1209
+ clearValidate: (props?: Arrayable<FormItemProp> | undefined) => void;
1210
+ isValidatable: ComputedRef<boolean>;
1211
+ obtainValidateFields: (props: Arrayable<FormItemProp>) => FormItemContext[];
1212
+ validate: (callback?: FormValidateCallback | undefined) => FormValidationResult;
1213
+ doValidateField: (props?: Arrayable<FormItemProp> | undefined) => Promise<boolean>;
1214
+ validateField: (props?: Arrayable<FormItemProp> | undefined, callback?: FormValidateCallback | undefined) => FormValidationResult;
1215
+ scrollToField: (prop: FormItemProp) => void;
1216
+ }> & {} & {} & ComponentCustomProperties) | undefined>;
1217
+ formState: FormState;
1218
+ changeHandler: () => void;
1219
+ resetForm: () => void | undefined;
1220
+ submitForm: (native?: boolean | undefined) => Promise<any>;
1221
+ }, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, ("change" | "field-input" | "field-change")[], string, {
1222
+ initValues: Record<string, any>;
1223
+ parentValues: Record<string, any>;
1224
+ config: FormConfig;
1225
+ labelWidth: string;
1226
+ disabled: boolean;
1227
+ height: string;
1228
+ stepActive: string | number;
1229
+ inline: boolean;
1230
+ labelPosition: string;
1231
+ keyProp: string;
1232
+ }> & {
1233
+ beforeCreate?: ((() => void) | (() => void)[]) | undefined;
1234
+ created?: ((() => void) | (() => void)[]) | undefined;
1235
+ beforeMount?: ((() => void) | (() => void)[]) | undefined;
1236
+ mounted?: ((() => void) | (() => void)[]) | undefined;
1237
+ beforeUpdate?: ((() => void) | (() => void)[]) | undefined;
1238
+ updated?: ((() => void) | (() => void)[]) | undefined;
1239
+ activated?: ((() => void) | (() => void)[]) | undefined;
1240
+ deactivated?: ((() => void) | (() => void)[]) | undefined;
1241
+ beforeDestroy?: ((() => void) | (() => void)[]) | undefined;
1242
+ beforeUnmount?: ((() => void) | (() => void)[]) | undefined;
1243
+ destroyed?: ((() => void) | (() => void)[]) | undefined;
1244
+ unmounted?: ((() => void) | (() => void)[]) | undefined;
1245
+ renderTracked?: (((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[]) | undefined;
1246
+ renderTriggered?: (((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[]) | undefined;
1247
+ errorCaptured?: (((err: unknown, instance: ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null, info: string) => boolean | void)[]) | undefined;
1248
+ };
1249
+ $forceUpdate: () => void;
1250
+ $nextTick: typeof nextTick;
1251
+ $watch(source: string | Function, cb: Function, options?: WatchOptions<boolean> | undefined): WatchStopHandle;
1252
+ } & Readonly<ExtractPropTypes<{
1253
+ initValues: {
1254
+ type: ObjectConstructor;
1255
+ required: true;
1256
+ default: () => {};
1257
+ };
1258
+ parentValues: {
1259
+ type: ObjectConstructor;
1260
+ default: () => {};
1261
+ };
1262
+ config: {
1263
+ type: PropType<FormConfig>;
1264
+ required: true;
1265
+ default: () => never[];
1266
+ };
1267
+ labelWidth: {
1268
+ type: StringConstructor;
1269
+ default: () => string;
1270
+ };
1271
+ disabled: {
1272
+ type: BooleanConstructor;
1273
+ default: () => boolean;
1274
+ };
1275
+ height: {
1276
+ type: StringConstructor;
1277
+ default: () => string;
1278
+ };
1279
+ stepActive: {
1280
+ type: (StringConstructor | NumberConstructor)[];
1281
+ default: () => number;
1282
+ };
1283
+ size: {
1284
+ type: PropType<"small" | "default" | "large">;
1285
+ };
1286
+ inline: {
1287
+ type: BooleanConstructor;
1288
+ default: boolean;
1289
+ };
1290
+ labelPosition: {
1291
+ type: StringConstructor;
1292
+ default: string;
1293
+ };
1294
+ keyProp: {
1295
+ type: StringConstructor;
1296
+ default: string;
1297
+ };
1298
+ popperClass: {
1299
+ type: StringConstructor;
1300
+ };
1301
+ }>> & {
1302
+ onChange?: ((...args: any[]) => any) | undefined;
1303
+ "onField-input"?: ((...args: any[]) => any) | undefined;
1304
+ "onField-change"?: ((...args: any[]) => any) | undefined;
1305
+ } & ShallowUnwrapRef<{
1306
+ initialized: Ref<boolean>;
1307
+ values: Ref<{
1308
+ [x: string]: any;
1309
+ [x: number]: any;
1310
+ }>;
1311
+ elForm: Ref<({
1312
+ $: ComponentInternalInstance;
1313
+ $data: {};
1314
+ $props: Partial<{
1315
+ size: BuildPropType<StringConstructor, "" | "small" | "default" | "large", unknown>;
1316
+ disabled: boolean;
1317
+ rules: Partial<Record<string, Arrayable<FormItemRule>>>;
1318
+ labelWidth: BuildPropType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
1319
+ labelSuffix: string;
1320
+ showMessage: BuildPropType<BooleanConstructor, unknown, unknown>;
1321
+ validateOnRuleChange: BuildPropType<BooleanConstructor, unknown, unknown>;
1322
+ hideRequiredAsterisk: BuildPropType<BooleanConstructor, unknown, unknown>;
1323
+ inline: boolean;
1324
+ inlineMessage: boolean;
1325
+ statusIcon: boolean;
1326
+ scrollToError: boolean;
1327
+ }> & Omit<Readonly<ExtractPropTypes<{
1328
+ readonly model: ObjectConstructor;
1329
+ readonly rules: BuildPropReturn<PropWrapper<Partial<Record<string, Arrayable<FormItemRule>>>>, unknown, unknown, unknown, unknown>;
1330
+ readonly labelPosition: StringConstructor;
1331
+ readonly labelWidth: BuildPropReturn<readonly [StringConstructor, NumberConstructor], "", unknown, unknown, unknown>;
1332
+ readonly labelSuffix: BuildPropReturn<StringConstructor, "", unknown, unknown, unknown>;
1333
+ readonly inline: BooleanConstructor;
1334
+ readonly inlineMessage: BooleanConstructor;
1335
+ readonly statusIcon: BooleanConstructor;
1336
+ readonly showMessage: BuildPropReturn<BooleanConstructor, true, unknown, unknown, unknown>;
1337
+ readonly size: BuildPropReturn<StringConstructor, unknown, unknown, "" | "small" | "default" | "large", unknown>;
1338
+ readonly disabled: BooleanConstructor;
1339
+ readonly validateOnRuleChange: BuildPropReturn<BooleanConstructor, true, unknown, unknown, unknown>;
1340
+ readonly hideRequiredAsterisk: BuildPropReturn<BooleanConstructor, false, unknown, unknown, unknown>;
1341
+ readonly scrollToError: BooleanConstructor;
1342
+ }>> & {
1343
+ onValidate?: ((prop: FormItemProp, isValid: boolean, message: string) => any) | undefined;
1344
+ } & VNodeProps & AllowedComponentProps & ComponentCustomProps, "labelWidth" | "disabled" | "size" | "inline" | "rules" | "labelSuffix" | "inlineMessage" | "statusIcon" | "showMessage" | "validateOnRuleChange" | "hideRequiredAsterisk" | "scrollToError">;
1345
+ $attrs: {
1346
+ [x: string]: unknown;
1347
+ };
1348
+ $refs: {
1349
+ [x: string]: unknown;
1350
+ };
1351
+ $slots: Readonly<{
1352
+ [name: string]: Slot | undefined;
1353
+ }>;
1354
+ $root: ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null;
1355
+ $parent: ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null;
1356
+ $emit: (event: "validate", prop: FormItemProp, isValid: boolean, message: string) => void;
1357
+ $el: any;
1358
+ $options: ComponentOptionsBase<Readonly<ExtractPropTypes<{
1359
+ readonly model: ObjectConstructor;
1360
+ readonly rules: BuildPropReturn<PropWrapper<Partial<Record<string, Arrayable<FormItemRule>>>>, unknown, unknown, unknown, unknown>;
1361
+ readonly labelPosition: StringConstructor;
1362
+ readonly labelWidth: BuildPropReturn<readonly [StringConstructor, NumberConstructor], "", unknown, unknown, unknown>;
1363
+ readonly labelSuffix: BuildPropReturn<StringConstructor, "", unknown, unknown, unknown>;
1364
+ readonly inline: BooleanConstructor;
1365
+ readonly inlineMessage: BooleanConstructor;
1366
+ readonly statusIcon: BooleanConstructor;
1367
+ readonly showMessage: BuildPropReturn<BooleanConstructor, true, unknown, unknown, unknown>;
1368
+ readonly size: BuildPropReturn<StringConstructor, unknown, unknown, "" | "small" | "default" | "large", unknown>;
1369
+ readonly disabled: BooleanConstructor;
1370
+ readonly validateOnRuleChange: BuildPropReturn<BooleanConstructor, true, unknown, unknown, unknown>;
1371
+ readonly hideRequiredAsterisk: BuildPropReturn<BooleanConstructor, false, unknown, unknown, unknown>;
1372
+ readonly scrollToError: BooleanConstructor;
1373
+ }>> & {
1374
+ onValidate?: ((prop: FormItemProp, isValid: boolean, message: string) => any) | undefined;
1375
+ }, {
1376
+ COMPONENT_NAME: string;
1377
+ props: Readonly<LooseRequired<Readonly<ExtractPropTypes<{
1378
+ readonly model: ObjectConstructor;
1379
+ readonly rules: BuildPropReturn<PropWrapper<Partial<Record<string, Arrayable<FormItemRule>>>>, unknown, unknown, unknown, unknown>;
1380
+ readonly labelPosition: StringConstructor;
1381
+ readonly labelWidth: BuildPropReturn<readonly [StringConstructor, NumberConstructor], "", unknown, unknown, unknown>;
1382
+ readonly labelSuffix: BuildPropReturn<StringConstructor, "", unknown, unknown, unknown>;
1383
+ readonly inline: BooleanConstructor;
1384
+ readonly inlineMessage: BooleanConstructor;
1385
+ readonly statusIcon: BooleanConstructor;
1386
+ readonly showMessage: BuildPropReturn<BooleanConstructor, true, unknown, unknown, unknown>;
1387
+ readonly size: BuildPropReturn<StringConstructor, unknown, unknown, "" | "small" | "default" | "large", unknown>;
1388
+ readonly disabled: BooleanConstructor;
1389
+ readonly validateOnRuleChange: BuildPropReturn<BooleanConstructor, true, unknown, unknown, unknown>;
1390
+ readonly hideRequiredAsterisk: BuildPropReturn<BooleanConstructor, false, unknown, unknown, unknown>;
1391
+ readonly scrollToError: BooleanConstructor;
1392
+ }>> & {
1393
+ onValidate?: ((prop: FormItemProp, isValid: boolean, message: string) => any) | undefined;
1394
+ }>>;
1395
+ emit: (event: "validate", prop: FormItemProp, isValid: boolean, message: string) => void;
1396
+ fields: FormItemContext[];
1397
+ formSize: ComputedRef<"" | "small" | "default" | "large">;
1398
+ ns: {
1399
+ namespace: ComputedRef<string>;
1400
+ b: (blockSuffix?: string | undefined) => string;
1401
+ e: (element?: string | undefined) => string;
1402
+ m: (modifier?: string | undefined) => string;
1403
+ be: (blockSuffix?: string | undefined, element?: string | undefined) => string;
1404
+ em: (element?: string | undefined, modifier?: string | undefined) => string;
1405
+ bm: (blockSuffix?: string | undefined, modifier?: string | undefined) => string;
1406
+ bem: (blockSuffix?: string | undefined, element?: string | undefined, modifier?: string | undefined) => string;
1407
+ is: {
1408
+ (name: string, state: boolean | undefined): string;
1409
+ (name: string): string;
1410
+ };
1411
+ cssVar: (object: Record<string, string>) => Record<string, string>;
1412
+ cssVarName: (name: string) => string;
1413
+ cssVarBlock: (object: Record<string, string>) => Record<string, string>;
1414
+ cssVarBlockName: (name: string) => string;
1415
+ };
1416
+ formClasses: ComputedRef<(string | {
1417
+ [x: string]: string | boolean | undefined;
1418
+ })[]>;
1419
+ addField: (field: FormItemContext) => void;
1420
+ removeField: (field: FormItemContext) => void;
1421
+ resetFields: (props?: Arrayable<FormItemProp> | undefined) => void;
1422
+ clearValidate: (props?: Arrayable<FormItemProp> | undefined) => void;
1423
+ isValidatable: ComputedRef<boolean>;
1424
+ obtainValidateFields: (props: Arrayable<FormItemProp>) => FormItemContext[];
1425
+ validate: (callback?: FormValidateCallback | undefined) => FormValidationResult;
1426
+ doValidateField: (props?: Arrayable<FormItemProp> | undefined) => Promise<boolean>;
1427
+ validateField: (props?: Arrayable<FormItemProp> | undefined, callback?: FormValidateCallback | undefined) => FormValidationResult;
1428
+ scrollToField: (prop: FormItemProp) => void;
1429
+ }, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
1430
+ validate: (prop: FormItemProp, isValid: boolean, message: string) => boolean;
1431
+ }, string, {
1432
+ size: BuildPropType<StringConstructor, "" | "small" | "default" | "large", unknown>;
1433
+ disabled: boolean;
1434
+ rules: Partial<Record<string, Arrayable<FormItemRule>>>;
1435
+ labelWidth: BuildPropType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
1436
+ labelSuffix: string;
1437
+ showMessage: BuildPropType<BooleanConstructor, unknown, unknown>;
1438
+ validateOnRuleChange: BuildPropType<BooleanConstructor, unknown, unknown>;
1439
+ hideRequiredAsterisk: BuildPropType<BooleanConstructor, unknown, unknown>;
1440
+ inline: boolean;
1441
+ inlineMessage: boolean;
1442
+ statusIcon: boolean;
1443
+ scrollToError: boolean;
1444
+ }> & {
1445
+ beforeCreate?: ((() => void) | (() => void)[]) | undefined;
1446
+ created?: ((() => void) | (() => void)[]) | undefined;
1447
+ beforeMount?: ((() => void) | (() => void)[]) | undefined;
1448
+ mounted?: ((() => void) | (() => void)[]) | undefined;
1449
+ beforeUpdate?: ((() => void) | (() => void)[]) | undefined;
1450
+ updated?: ((() => void) | (() => void)[]) | undefined;
1451
+ activated?: ((() => void) | (() => void)[]) | undefined;
1452
+ deactivated?: ((() => void) | (() => void)[]) | undefined;
1453
+ beforeDestroy?: ((() => void) | (() => void)[]) | undefined;
1454
+ beforeUnmount?: ((() => void) | (() => void)[]) | undefined;
1455
+ destroyed?: ((() => void) | (() => void)[]) | undefined;
1456
+ unmounted?: ((() => void) | (() => void)[]) | undefined;
1457
+ renderTracked?: (((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[]) | undefined;
1458
+ renderTriggered?: (((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[]) | undefined;
1459
+ errorCaptured?: (((err: unknown, instance: ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null, info: string) => boolean | void)[]) | undefined;
1460
+ };
1461
+ $forceUpdate: () => void;
1462
+ $nextTick: typeof nextTick;
1463
+ $watch(source: string | Function, cb: Function, options?: WatchOptions<boolean> | undefined): WatchStopHandle;
1464
+ } & Readonly<ExtractPropTypes<{
1465
+ readonly model: ObjectConstructor;
1466
+ readonly rules: BuildPropReturn<PropWrapper<Partial<Record<string, Arrayable<FormItemRule>>>>, unknown, unknown, unknown, unknown>;
1467
+ readonly labelPosition: StringConstructor;
1468
+ readonly labelWidth: BuildPropReturn<readonly [StringConstructor, NumberConstructor], "", unknown, unknown, unknown>;
1469
+ readonly labelSuffix: BuildPropReturn<StringConstructor, "", unknown, unknown, unknown>;
1470
+ readonly inline: BooleanConstructor;
1471
+ readonly inlineMessage: BooleanConstructor;
1472
+ readonly statusIcon: BooleanConstructor;
1473
+ readonly showMessage: BuildPropReturn<BooleanConstructor, true, unknown, unknown, unknown>;
1474
+ readonly size: BuildPropReturn<StringConstructor, unknown, unknown, "" | "small" | "default" | "large", unknown>;
1475
+ readonly disabled: BooleanConstructor;
1476
+ readonly validateOnRuleChange: BuildPropReturn<BooleanConstructor, true, unknown, unknown, unknown>;
1477
+ readonly hideRequiredAsterisk: BuildPropReturn<BooleanConstructor, false, unknown, unknown, unknown>;
1478
+ readonly scrollToError: BooleanConstructor;
1479
+ }>> & {
1480
+ onValidate?: ((prop: FormItemProp, isValid: boolean, message: string) => any) | undefined;
1481
+ } & ShallowUnwrapRef<{
1482
+ COMPONENT_NAME: string;
1483
+ props: Readonly<LooseRequired<Readonly<ExtractPropTypes<{
1484
+ readonly model: ObjectConstructor;
1485
+ readonly rules: BuildPropReturn<PropWrapper<Partial<Record<string, Arrayable<FormItemRule>>>>, unknown, unknown, unknown, unknown>;
1486
+ readonly labelPosition: StringConstructor;
1487
+ readonly labelWidth: BuildPropReturn<readonly [StringConstructor, NumberConstructor], "", unknown, unknown, unknown>;
1488
+ readonly labelSuffix: BuildPropReturn<StringConstructor, "", unknown, unknown, unknown>;
1489
+ readonly inline: BooleanConstructor;
1490
+ readonly inlineMessage: BooleanConstructor;
1491
+ readonly statusIcon: BooleanConstructor;
1492
+ readonly showMessage: BuildPropReturn<BooleanConstructor, true, unknown, unknown, unknown>;
1493
+ readonly size: BuildPropReturn<StringConstructor, unknown, unknown, "" | "small" | "default" | "large", unknown>;
1494
+ readonly disabled: BooleanConstructor;
1495
+ readonly validateOnRuleChange: BuildPropReturn<BooleanConstructor, true, unknown, unknown, unknown>;
1496
+ readonly hideRequiredAsterisk: BuildPropReturn<BooleanConstructor, false, unknown, unknown, unknown>;
1497
+ readonly scrollToError: BooleanConstructor;
1498
+ }>> & {
1499
+ onValidate?: ((prop: FormItemProp, isValid: boolean, message: string) => any) | undefined;
1500
+ }>>;
1501
+ emit: (event: "validate", prop: FormItemProp, isValid: boolean, message: string) => void;
1502
+ fields: FormItemContext[];
1503
+ formSize: ComputedRef<"" | "small" | "default" | "large">;
1504
+ ns: {
1505
+ namespace: ComputedRef<string>;
1506
+ b: (blockSuffix?: string | undefined) => string;
1507
+ e: (element?: string | undefined) => string;
1508
+ m: (modifier?: string | undefined) => string;
1509
+ be: (blockSuffix?: string | undefined, element?: string | undefined) => string;
1510
+ em: (element?: string | undefined, modifier?: string | undefined) => string;
1511
+ bm: (blockSuffix?: string | undefined, modifier?: string | undefined) => string;
1512
+ bem: (blockSuffix?: string | undefined, element?: string | undefined, modifier?: string | undefined) => string;
1513
+ is: {
1514
+ (name: string, state: boolean | undefined): string;
1515
+ (name: string): string;
1516
+ };
1517
+ cssVar: (object: Record<string, string>) => Record<string, string>;
1518
+ cssVarName: (name: string) => string;
1519
+ cssVarBlock: (object: Record<string, string>) => Record<string, string>;
1520
+ cssVarBlockName: (name: string) => string;
1521
+ };
1522
+ formClasses: ComputedRef<(string | {
1523
+ [x: string]: string | boolean | undefined;
1524
+ })[]>;
1525
+ addField: (field: FormItemContext) => void;
1526
+ removeField: (field: FormItemContext) => void;
1527
+ resetFields: (props?: Arrayable<FormItemProp> | undefined) => void;
1528
+ clearValidate: (props?: Arrayable<FormItemProp> | undefined) => void;
1529
+ isValidatable: ComputedRef<boolean>;
1530
+ obtainValidateFields: (props: Arrayable<FormItemProp>) => FormItemContext[];
1531
+ validate: (callback?: FormValidateCallback | undefined) => FormValidationResult;
1532
+ doValidateField: (props?: Arrayable<FormItemProp> | undefined) => Promise<boolean>;
1533
+ validateField: (props?: Arrayable<FormItemProp> | undefined, callback?: FormValidateCallback | undefined) => FormValidationResult;
1534
+ scrollToField: (prop: FormItemProp) => void;
1535
+ }> & {} & {} & ComponentCustomProperties) | undefined>;
1536
+ formState: FormState;
1537
+ changeHandler: () => void;
1538
+ resetForm: () => void | undefined;
1539
+ submitForm: (native?: boolean | undefined) => Promise<any>;
1540
+ }> & {} & {} & ComponentCustomProperties) | undefined>;
1541
+ saveFetch: Ref<boolean>;
1542
+ stepActive: Ref<number>;
1543
+ dialogVisible: Ref<boolean>;
1544
+ bodyHeight: Ref<string>;
1545
+ stepCount: ComputedRef<number>;
1546
+ hasStep: ComputedRef<boolean>;
1547
+ cancel: () => void;
1548
+ closeHandler: () => void;
1549
+ save: () => Promise<void>;
1550
+ preStep: () => void;
1551
+ nextStep: () => void;
1552
+ changeHandler: (value: any) => void;
1553
+ }> & {} & {} & ComponentCustomProperties) | undefined>;
1554
+ href: ComputedRef<any>;
1555
+ formConfig: ComputedRef<FormConfig>;
1556
+ disable: ComputedRef<boolean | ((mForm: FormState | undefined, data: {
1557
+ model: Record<any, any>;
1558
+ values: Record<any, any>;
1559
+ parent?: Record<any, any> | undefined;
1560
+ formValue: Record<any, any>;
1561
+ prop: string;
1562
+ }) => boolean)>;
1563
+ displayText: ComputedRef<string>;
1564
+ init: () => void;
1565
+ editHandler: () => void;
1566
+ action: (data: any) => void;
1567
+ }, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, "change"[], "change", VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
1568
+ config: {
1569
+ type: PropType<LinkConfig>;
1570
+ required: true;
1571
+ };
1572
+ model: {
1573
+ type: ObjectConstructor;
1574
+ required: boolean;
1575
+ default: () => {};
1576
+ };
1577
+ name: {
1578
+ type: StringConstructor;
1579
+ default: string;
1580
+ };
1581
+ disabled: {
1582
+ type: BooleanConstructor;
1583
+ default: boolean;
1584
+ };
1585
+ size: PropType<"small" | "mini" | "medium">;
1586
+ prop: StringConstructor;
1587
+ initValues: ObjectConstructor;
1588
+ values: ObjectConstructor;
1589
+ }>> & {
1590
+ onChange?: ((...args: any[]) => any) | undefined;
1591
+ }, {
1592
+ name: string;
1593
+ disabled: boolean;
1594
+ model: Record<string, any>;
1595
+ }>;
1596
+ export default _default;