@tmagic/form 1.0.0-beta.2 → 1.0.0-beta.3

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 (44) hide show
  1. package/package.json +3 -2
  2. package/src/containers/Table.vue +8 -6
  3. package/src/theme/table.scss +0 -1
  4. package/dist/style.css +0 -161
  5. package/dist/tmagic-form.es.js +0 -3751
  6. package/dist/tmagic-form.es.js.map +0 -1
  7. package/dist/tmagic-form.umd.js +0 -3792
  8. package/dist/tmagic-form.umd.js.map +0 -1
  9. package/dist/types/src/Form.vue.d.ts +0 -301
  10. package/dist/types/src/FormDialog.vue.d.ts +0 -638
  11. package/dist/types/src/containers/Container.vue.d.ts +0 -69
  12. package/dist/types/src/containers/Fieldset.vue.d.ts +0 -56
  13. package/dist/types/src/containers/GroupList.vue.d.ts +0 -56
  14. package/dist/types/src/containers/GroupListItem.vue.d.ts +0 -72
  15. package/dist/types/src/containers/Panel.vue.d.ts +0 -41
  16. package/dist/types/src/containers/Row.vue.d.ts +0 -42
  17. package/dist/types/src/containers/Step.vue.d.ts +0 -45
  18. package/dist/types/src/containers/Table.vue.d.ts +0 -1401
  19. package/dist/types/src/containers/Tabs.vue.d.ts +0 -45
  20. package/dist/types/src/fields/Cascader.vue.d.ts +0 -1748
  21. package/dist/types/src/fields/Checkbox.vue.d.ts +0 -59
  22. package/dist/types/src/fields/CheckboxGroup.vue.d.ts +0 -56
  23. package/dist/types/src/fields/Date.vue.d.ts +0 -58
  24. package/dist/types/src/fields/DateTime.vue.d.ts +0 -57
  25. package/dist/types/src/fields/Daterange.vue.d.ts +0 -57
  26. package/dist/types/src/fields/Display.vue.d.ts +0 -3
  27. package/dist/types/src/fields/DynamicField.vue.d.ts +0 -76
  28. package/dist/types/src/fields/Hidden.vue.d.ts +0 -3
  29. package/dist/types/src/fields/Link.vue.d.ts +0 -1358
  30. package/dist/types/src/fields/Number.vue.d.ts +0 -59
  31. package/dist/types/src/fields/RadioGroup.vue.d.ts +0 -55
  32. package/dist/types/src/fields/Select.vue.d.ts +0 -975
  33. package/dist/types/src/fields/Switch.vue.d.ts +0 -59
  34. package/dist/types/src/fields/Text.vue.d.ts +0 -61
  35. package/dist/types/src/fields/Textarea.vue.d.ts +0 -56
  36. package/dist/types/src/fields/Time.vue.d.ts +0 -54
  37. package/dist/types/src/index.d.ts +0 -36
  38. package/dist/types/src/schema.d.ts +0 -495
  39. package/dist/types/src/shims-vue.d.ts +0 -6
  40. package/dist/types/src/utils/config.d.ts +0 -3
  41. package/dist/types/src/utils/fieldProps.d.ts +0 -21
  42. package/dist/types/src/utils/form.d.ts +0 -8
  43. package/dist/types/src/utils/useAddField.d.ts +0 -1
  44. package/dist/types/src/vite-env.d.ts +0 -1
@@ -1,638 +0,0 @@
1
- import type { ValidateFieldCallback } from 'element-plus';
2
- import type { Callback } from 'element-plus/es/components/form/src/form.vue';
3
- import type { FormItemRule } from 'element-plus/es/components/form/src/form.type';
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 { FormState, FormConfig } from './schema';
6
- declare const _default: DefineComponent<{
7
- values: {
8
- type: ObjectConstructor;
9
- default: () => {};
10
- };
11
- width: (StringConstructor | NumberConstructor)[];
12
- fullscreen: BooleanConstructor;
13
- title: StringConstructor;
14
- config: {
15
- type: PropType<FormConfig>;
16
- required: true;
17
- default: () => never[];
18
- };
19
- labelWidth: (StringConstructor | NumberConstructor)[];
20
- size: PropType<"small" | "mini" | "medium">;
21
- confirmText: {
22
- type: StringConstructor;
23
- default: string;
24
- };
25
- }, {
26
- form: Ref<({
27
- $: ComponentInternalInstance;
28
- $data: {};
29
- $props: Partial<{
30
- initValues: Record<string, any>;
31
- parentValues: Record<string, any>;
32
- config: FormConfig;
33
- labelWidth: string;
34
- disabled: boolean;
35
- height: string;
36
- stepActive: string | number;
37
- inline: boolean;
38
- labelPosition: string;
39
- keyProp: string;
40
- }> & Omit<Readonly<ExtractPropTypes<{
41
- initValues: {
42
- type: ObjectConstructor;
43
- required: true;
44
- default: () => {};
45
- };
46
- parentValues: {
47
- type: ObjectConstructor;
48
- default: () => {};
49
- };
50
- config: {
51
- type: PropType<FormConfig>;
52
- required: true;
53
- default: () => never[];
54
- };
55
- labelWidth: {
56
- type: StringConstructor;
57
- default: () => string;
58
- };
59
- disabled: {
60
- type: BooleanConstructor;
61
- default: () => boolean;
62
- };
63
- height: {
64
- type: StringConstructor;
65
- default: () => string;
66
- };
67
- stepActive: {
68
- type: (StringConstructor | NumberConstructor)[];
69
- default: () => number;
70
- };
71
- size: {
72
- type: StringConstructor;
73
- };
74
- inline: {
75
- type: BooleanConstructor;
76
- default: boolean;
77
- };
78
- labelPosition: {
79
- type: StringConstructor;
80
- default: string;
81
- };
82
- keyProp: {
83
- type: StringConstructor;
84
- default: string;
85
- };
86
- }>> & {
87
- onChange?: ((...args: any[]) => any) | undefined;
88
- "onField-input"?: ((...args: any[]) => any) | undefined;
89
- "onField-change"?: ((...args: any[]) => any) | undefined;
90
- } & VNodeProps & AllowedComponentProps & ComponentCustomProps, "initValues" | "parentValues" | "config" | "labelWidth" | "disabled" | "height" | "stepActive" | "inline" | "labelPosition" | "keyProp">;
91
- $attrs: {
92
- [x: string]: unknown;
93
- };
94
- $refs: {
95
- [x: string]: unknown;
96
- };
97
- $slots: Readonly<{
98
- [name: string]: Slot | undefined;
99
- }>;
100
- $root: ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null;
101
- $parent: ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null;
102
- $emit: (event: "change" | "field-input" | "field-change", ...args: any[]) => void;
103
- $el: any;
104
- $options: ComponentOptionsBase<Readonly<ExtractPropTypes<{
105
- initValues: {
106
- type: ObjectConstructor;
107
- required: true;
108
- default: () => {};
109
- };
110
- parentValues: {
111
- type: ObjectConstructor;
112
- default: () => {};
113
- };
114
- config: {
115
- type: PropType<FormConfig>;
116
- required: true;
117
- default: () => never[];
118
- };
119
- labelWidth: {
120
- type: StringConstructor;
121
- default: () => string;
122
- };
123
- disabled: {
124
- type: BooleanConstructor;
125
- default: () => boolean;
126
- };
127
- height: {
128
- type: StringConstructor;
129
- default: () => string;
130
- };
131
- stepActive: {
132
- type: (StringConstructor | NumberConstructor)[];
133
- default: () => number;
134
- };
135
- size: {
136
- type: StringConstructor;
137
- };
138
- inline: {
139
- type: BooleanConstructor;
140
- default: boolean;
141
- };
142
- labelPosition: {
143
- type: StringConstructor;
144
- default: string;
145
- };
146
- keyProp: {
147
- type: StringConstructor;
148
- default: string;
149
- };
150
- }>> & {
151
- onChange?: ((...args: any[]) => any) | undefined;
152
- "onField-input"?: ((...args: any[]) => any) | undefined;
153
- "onField-change"?: ((...args: any[]) => any) | undefined;
154
- }, {
155
- initialized: Ref<boolean>;
156
- values: Ref<{
157
- [x: string]: any;
158
- [x: number]: any;
159
- }>;
160
- elForm: Ref<({
161
- $: ComponentInternalInstance;
162
- $data: {};
163
- $props: Partial<{
164
- disabled: boolean;
165
- inline: boolean;
166
- labelWidth: string | number;
167
- labelSuffix: string;
168
- inlineMessage: boolean;
169
- statusIcon: boolean;
170
- showMessage: boolean;
171
- validateOnRuleChange: boolean;
172
- hideRequiredAsterisk: boolean;
173
- scrollToError: boolean;
174
- }> & Omit<Readonly<ExtractPropTypes<{
175
- model: ObjectConstructor;
176
- rules: PropType<Partial<Record<string, FormItemRule | FormItemRule[]>>>;
177
- labelPosition: StringConstructor;
178
- labelWidth: {
179
- type: (StringConstructor | NumberConstructor)[];
180
- default: string;
181
- };
182
- labelSuffix: {
183
- type: StringConstructor;
184
- default: string;
185
- };
186
- inline: BooleanConstructor;
187
- inlineMessage: BooleanConstructor;
188
- statusIcon: BooleanConstructor;
189
- showMessage: {
190
- type: BooleanConstructor;
191
- default: boolean;
192
- };
193
- size: PropType<"small" | "default" | "large">;
194
- disabled: BooleanConstructor;
195
- validateOnRuleChange: {
196
- type: BooleanConstructor;
197
- default: boolean;
198
- };
199
- hideRequiredAsterisk: {
200
- type: BooleanConstructor;
201
- default: boolean;
202
- };
203
- scrollToError: BooleanConstructor;
204
- }>> & {
205
- onValidate?: ((...args: any[]) => any) | undefined;
206
- } & VNodeProps & AllowedComponentProps & ComponentCustomProps, "labelWidth" | "disabled" | "inline" | "labelSuffix" | "inlineMessage" | "statusIcon" | "showMessage" | "validateOnRuleChange" | "hideRequiredAsterisk" | "scrollToError">;
207
- $attrs: {
208
- [x: string]: unknown;
209
- };
210
- $refs: {
211
- [x: string]: unknown;
212
- };
213
- $slots: Readonly<{
214
- [name: string]: Slot | undefined;
215
- }>;
216
- $root: ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null;
217
- $parent: ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null;
218
- $emit: (event: "validate", ...args: any[]) => void;
219
- $el: any;
220
- $options: ComponentOptionsBase<Readonly<ExtractPropTypes<{
221
- model: ObjectConstructor;
222
- rules: PropType<Partial<Record<string, FormItemRule | FormItemRule[]>>>;
223
- labelPosition: StringConstructor;
224
- labelWidth: {
225
- type: (StringConstructor | NumberConstructor)[];
226
- default: string;
227
- };
228
- labelSuffix: {
229
- type: StringConstructor;
230
- default: string;
231
- };
232
- inline: BooleanConstructor;
233
- inlineMessage: BooleanConstructor;
234
- statusIcon: BooleanConstructor;
235
- showMessage: {
236
- type: BooleanConstructor;
237
- default: boolean;
238
- };
239
- size: PropType<"small" | "default" | "large">;
240
- disabled: BooleanConstructor;
241
- validateOnRuleChange: {
242
- type: BooleanConstructor;
243
- default: boolean;
244
- };
245
- hideRequiredAsterisk: {
246
- type: BooleanConstructor;
247
- default: boolean;
248
- };
249
- scrollToError: BooleanConstructor;
250
- }>> & {
251
- onValidate?: ((...args: any[]) => any) | undefined;
252
- }, {
253
- formKls: ComputedRef<string[]>;
254
- validate: (callback?: Callback | undefined) => Promise<boolean> | undefined;
255
- resetFields: () => void;
256
- clearValidate: (props?: string | string[] | undefined) => void;
257
- validateField: (props: string | string[], cb: ValidateFieldCallback) => void;
258
- scrollToField: (prop: string) => void;
259
- }, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, "validate"[], string, {
260
- disabled: boolean;
261
- inline: boolean;
262
- labelWidth: string | number;
263
- labelSuffix: string;
264
- inlineMessage: boolean;
265
- statusIcon: boolean;
266
- showMessage: boolean;
267
- validateOnRuleChange: boolean;
268
- hideRequiredAsterisk: boolean;
269
- scrollToError: boolean;
270
- }> & {
271
- beforeCreate?: ((() => void) | (() => void)[]) | undefined;
272
- created?: ((() => void) | (() => void)[]) | undefined;
273
- beforeMount?: ((() => void) | (() => void)[]) | undefined;
274
- mounted?: ((() => void) | (() => void)[]) | undefined;
275
- beforeUpdate?: ((() => void) | (() => void)[]) | undefined;
276
- updated?: ((() => void) | (() => void)[]) | undefined;
277
- activated?: ((() => void) | (() => void)[]) | undefined;
278
- deactivated?: ((() => void) | (() => void)[]) | undefined;
279
- beforeDestroy?: ((() => void) | (() => void)[]) | undefined;
280
- beforeUnmount?: ((() => void) | (() => void)[]) | undefined;
281
- destroyed?: ((() => void) | (() => void)[]) | undefined;
282
- unmounted?: ((() => void) | (() => void)[]) | undefined;
283
- renderTracked?: (((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[]) | undefined;
284
- renderTriggered?: (((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[]) | undefined;
285
- 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;
286
- };
287
- $forceUpdate: () => void;
288
- $nextTick: typeof nextTick;
289
- $watch(source: string | Function, cb: Function, options?: WatchOptions<boolean> | undefined): WatchStopHandle;
290
- } & Readonly<ExtractPropTypes<{
291
- model: ObjectConstructor;
292
- rules: PropType<Partial<Record<string, FormItemRule | FormItemRule[]>>>;
293
- labelPosition: StringConstructor;
294
- labelWidth: {
295
- type: (StringConstructor | NumberConstructor)[];
296
- default: string;
297
- };
298
- labelSuffix: {
299
- type: StringConstructor;
300
- default: string;
301
- };
302
- inline: BooleanConstructor;
303
- inlineMessage: BooleanConstructor;
304
- statusIcon: BooleanConstructor;
305
- showMessage: {
306
- type: BooleanConstructor;
307
- default: boolean;
308
- };
309
- size: PropType<"small" | "default" | "large">;
310
- disabled: BooleanConstructor;
311
- validateOnRuleChange: {
312
- type: BooleanConstructor;
313
- default: boolean;
314
- };
315
- hideRequiredAsterisk: {
316
- type: BooleanConstructor;
317
- default: boolean;
318
- };
319
- scrollToError: BooleanConstructor;
320
- }>> & {
321
- onValidate?: ((...args: any[]) => any) | undefined;
322
- } & ShallowUnwrapRef<{
323
- formKls: ComputedRef<string[]>;
324
- validate: (callback?: Callback | undefined) => Promise<boolean> | undefined;
325
- resetFields: () => void;
326
- clearValidate: (props?: string | string[] | undefined) => void;
327
- validateField: (props: string | string[], cb: ValidateFieldCallback) => void;
328
- scrollToField: (prop: string) => void;
329
- }> & {} & {} & ComponentCustomProperties) | undefined>;
330
- formState: FormState;
331
- changeHandler: () => void;
332
- resetForm: () => void | undefined;
333
- submitForm: (native?: boolean | undefined) => Promise<any>;
334
- }, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, ("change" | "field-input" | "field-change")[], string, {
335
- initValues: Record<string, any>;
336
- parentValues: Record<string, any>;
337
- config: FormConfig;
338
- labelWidth: string;
339
- disabled: boolean;
340
- height: string;
341
- stepActive: string | number;
342
- inline: boolean;
343
- labelPosition: string;
344
- keyProp: string;
345
- }> & {
346
- beforeCreate?: ((() => void) | (() => void)[]) | undefined;
347
- created?: ((() => void) | (() => void)[]) | undefined;
348
- beforeMount?: ((() => void) | (() => void)[]) | undefined;
349
- mounted?: ((() => void) | (() => void)[]) | undefined;
350
- beforeUpdate?: ((() => void) | (() => void)[]) | undefined;
351
- updated?: ((() => void) | (() => void)[]) | undefined;
352
- activated?: ((() => void) | (() => void)[]) | undefined;
353
- deactivated?: ((() => void) | (() => void)[]) | undefined;
354
- beforeDestroy?: ((() => void) | (() => void)[]) | undefined;
355
- beforeUnmount?: ((() => void) | (() => void)[]) | undefined;
356
- destroyed?: ((() => void) | (() => void)[]) | undefined;
357
- unmounted?: ((() => void) | (() => void)[]) | undefined;
358
- renderTracked?: (((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[]) | undefined;
359
- renderTriggered?: (((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[]) | undefined;
360
- 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;
361
- };
362
- $forceUpdate: () => void;
363
- $nextTick: typeof nextTick;
364
- $watch(source: string | Function, cb: Function, options?: WatchOptions<boolean> | undefined): WatchStopHandle;
365
- } & Readonly<ExtractPropTypes<{
366
- initValues: {
367
- type: ObjectConstructor;
368
- required: true;
369
- default: () => {};
370
- };
371
- parentValues: {
372
- type: ObjectConstructor;
373
- default: () => {};
374
- };
375
- config: {
376
- type: PropType<FormConfig>;
377
- required: true;
378
- default: () => never[];
379
- };
380
- labelWidth: {
381
- type: StringConstructor;
382
- default: () => string;
383
- };
384
- disabled: {
385
- type: BooleanConstructor;
386
- default: () => boolean;
387
- };
388
- height: {
389
- type: StringConstructor;
390
- default: () => string;
391
- };
392
- stepActive: {
393
- type: (StringConstructor | NumberConstructor)[];
394
- default: () => number;
395
- };
396
- size: {
397
- type: StringConstructor;
398
- };
399
- inline: {
400
- type: BooleanConstructor;
401
- default: boolean;
402
- };
403
- labelPosition: {
404
- type: StringConstructor;
405
- default: string;
406
- };
407
- keyProp: {
408
- type: StringConstructor;
409
- default: string;
410
- };
411
- }>> & {
412
- onChange?: ((...args: any[]) => any) | undefined;
413
- "onField-input"?: ((...args: any[]) => any) | undefined;
414
- "onField-change"?: ((...args: any[]) => any) | undefined;
415
- } & ShallowUnwrapRef<{
416
- initialized: Ref<boolean>;
417
- values: Ref<{
418
- [x: string]: any;
419
- [x: number]: any;
420
- }>;
421
- elForm: Ref<({
422
- $: ComponentInternalInstance;
423
- $data: {};
424
- $props: Partial<{
425
- disabled: boolean;
426
- inline: boolean;
427
- labelWidth: string | number;
428
- labelSuffix: string;
429
- inlineMessage: boolean;
430
- statusIcon: boolean;
431
- showMessage: boolean;
432
- validateOnRuleChange: boolean;
433
- hideRequiredAsterisk: boolean;
434
- scrollToError: boolean;
435
- }> & Omit<Readonly<ExtractPropTypes<{
436
- model: ObjectConstructor;
437
- rules: PropType<Partial<Record<string, FormItemRule | FormItemRule[]>>>;
438
- labelPosition: StringConstructor;
439
- labelWidth: {
440
- type: (StringConstructor | NumberConstructor)[];
441
- default: string;
442
- };
443
- labelSuffix: {
444
- type: StringConstructor;
445
- default: string;
446
- };
447
- inline: BooleanConstructor;
448
- inlineMessage: BooleanConstructor;
449
- statusIcon: BooleanConstructor;
450
- showMessage: {
451
- type: BooleanConstructor;
452
- default: boolean;
453
- };
454
- size: PropType<"small" | "default" | "large">;
455
- disabled: BooleanConstructor;
456
- validateOnRuleChange: {
457
- type: BooleanConstructor;
458
- default: boolean;
459
- };
460
- hideRequiredAsterisk: {
461
- type: BooleanConstructor;
462
- default: boolean;
463
- };
464
- scrollToError: BooleanConstructor;
465
- }>> & {
466
- onValidate?: ((...args: any[]) => any) | undefined;
467
- } & VNodeProps & AllowedComponentProps & ComponentCustomProps, "labelWidth" | "disabled" | "inline" | "labelSuffix" | "inlineMessage" | "statusIcon" | "showMessage" | "validateOnRuleChange" | "hideRequiredAsterisk" | "scrollToError">;
468
- $attrs: {
469
- [x: string]: unknown;
470
- };
471
- $refs: {
472
- [x: string]: unknown;
473
- };
474
- $slots: Readonly<{
475
- [name: string]: Slot | undefined;
476
- }>;
477
- $root: ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null;
478
- $parent: ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null;
479
- $emit: (event: "validate", ...args: any[]) => void;
480
- $el: any;
481
- $options: ComponentOptionsBase<Readonly<ExtractPropTypes<{
482
- model: ObjectConstructor;
483
- rules: PropType<Partial<Record<string, FormItemRule | FormItemRule[]>>>;
484
- labelPosition: StringConstructor;
485
- labelWidth: {
486
- type: (StringConstructor | NumberConstructor)[];
487
- default: string;
488
- };
489
- labelSuffix: {
490
- type: StringConstructor;
491
- default: string;
492
- };
493
- inline: BooleanConstructor;
494
- inlineMessage: BooleanConstructor;
495
- statusIcon: BooleanConstructor;
496
- showMessage: {
497
- type: BooleanConstructor;
498
- default: boolean;
499
- };
500
- size: PropType<"small" | "default" | "large">;
501
- disabled: BooleanConstructor;
502
- validateOnRuleChange: {
503
- type: BooleanConstructor;
504
- default: boolean;
505
- };
506
- hideRequiredAsterisk: {
507
- type: BooleanConstructor;
508
- default: boolean;
509
- };
510
- scrollToError: BooleanConstructor;
511
- }>> & {
512
- onValidate?: ((...args: any[]) => any) | undefined;
513
- }, {
514
- formKls: ComputedRef<string[]>;
515
- validate: (callback?: Callback | undefined) => Promise<boolean> | undefined;
516
- resetFields: () => void;
517
- clearValidate: (props?: string | string[] | undefined) => void;
518
- validateField: (props: string | string[], cb: ValidateFieldCallback) => void;
519
- scrollToField: (prop: string) => void;
520
- }, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, "validate"[], string, {
521
- disabled: boolean;
522
- inline: boolean;
523
- labelWidth: string | number;
524
- labelSuffix: string;
525
- inlineMessage: boolean;
526
- statusIcon: boolean;
527
- showMessage: boolean;
528
- validateOnRuleChange: boolean;
529
- hideRequiredAsterisk: boolean;
530
- scrollToError: boolean;
531
- }> & {
532
- beforeCreate?: ((() => void) | (() => void)[]) | undefined;
533
- created?: ((() => void) | (() => void)[]) | undefined;
534
- beforeMount?: ((() => void) | (() => void)[]) | undefined;
535
- mounted?: ((() => void) | (() => void)[]) | undefined;
536
- beforeUpdate?: ((() => void) | (() => void)[]) | undefined;
537
- updated?: ((() => void) | (() => void)[]) | undefined;
538
- activated?: ((() => void) | (() => void)[]) | undefined;
539
- deactivated?: ((() => void) | (() => void)[]) | undefined;
540
- beforeDestroy?: ((() => void) | (() => void)[]) | undefined;
541
- beforeUnmount?: ((() => void) | (() => void)[]) | undefined;
542
- destroyed?: ((() => void) | (() => void)[]) | undefined;
543
- unmounted?: ((() => void) | (() => void)[]) | undefined;
544
- renderTracked?: (((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[]) | undefined;
545
- renderTriggered?: (((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[]) | undefined;
546
- 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;
547
- };
548
- $forceUpdate: () => void;
549
- $nextTick: typeof nextTick;
550
- $watch(source: string | Function, cb: Function, options?: WatchOptions<boolean> | undefined): WatchStopHandle;
551
- } & Readonly<ExtractPropTypes<{
552
- model: ObjectConstructor;
553
- rules: PropType<Partial<Record<string, FormItemRule | FormItemRule[]>>>;
554
- labelPosition: StringConstructor;
555
- labelWidth: {
556
- type: (StringConstructor | NumberConstructor)[];
557
- default: string;
558
- };
559
- labelSuffix: {
560
- type: StringConstructor;
561
- default: string;
562
- };
563
- inline: BooleanConstructor;
564
- inlineMessage: BooleanConstructor;
565
- statusIcon: BooleanConstructor;
566
- showMessage: {
567
- type: BooleanConstructor;
568
- default: boolean;
569
- };
570
- size: PropType<"small" | "default" | "large">;
571
- disabled: BooleanConstructor;
572
- validateOnRuleChange: {
573
- type: BooleanConstructor;
574
- default: boolean;
575
- };
576
- hideRequiredAsterisk: {
577
- type: BooleanConstructor;
578
- default: boolean;
579
- };
580
- scrollToError: BooleanConstructor;
581
- }>> & {
582
- onValidate?: ((...args: any[]) => any) | undefined;
583
- } & ShallowUnwrapRef<{
584
- formKls: ComputedRef<string[]>;
585
- validate: (callback?: Callback | undefined) => Promise<boolean> | undefined;
586
- resetFields: () => void;
587
- clearValidate: (props?: string | string[] | undefined) => void;
588
- validateField: (props: string | string[], cb: ValidateFieldCallback) => void;
589
- scrollToField: (prop: string) => void;
590
- }> & {} & {} & ComponentCustomProperties) | undefined>;
591
- formState: FormState;
592
- changeHandler: () => void;
593
- resetForm: () => void | undefined;
594
- submitForm: (native?: boolean | undefined) => Promise<any>;
595
- }> & {} & {} & ComponentCustomProperties) | undefined>;
596
- saveFetch: Ref<boolean>;
597
- stepActive: Ref<number>;
598
- dialogVisible: Ref<boolean>;
599
- bodyHeight: Ref<string>;
600
- stepCount: ComputedRef<number>;
601
- hasStep: ComputedRef<boolean>;
602
- cancel: () => void;
603
- closeHandler: () => void;
604
- save: () => Promise<void>;
605
- preStep: () => void;
606
- nextStep: () => void;
607
- changeHandler: (value: any) => void;
608
- }, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, ("change" | "close" | "submit" | "error")[], "change" | "close" | "submit" | "error", VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
609
- values: {
610
- type: ObjectConstructor;
611
- default: () => {};
612
- };
613
- width: (StringConstructor | NumberConstructor)[];
614
- fullscreen: BooleanConstructor;
615
- title: StringConstructor;
616
- config: {
617
- type: PropType<FormConfig>;
618
- required: true;
619
- default: () => never[];
620
- };
621
- labelWidth: (StringConstructor | NumberConstructor)[];
622
- size: PropType<"small" | "mini" | "medium">;
623
- confirmText: {
624
- type: StringConstructor;
625
- default: string;
626
- };
627
- }>> & {
628
- onChange?: ((...args: any[]) => any) | undefined;
629
- onClose?: ((...args: any[]) => any) | undefined;
630
- onSubmit?: ((...args: any[]) => any) | undefined;
631
- onError?: ((...args: any[]) => any) | undefined;
632
- }, {
633
- values: Record<string, any>;
634
- config: FormConfig;
635
- fullscreen: boolean;
636
- confirmText: string;
637
- }>;
638
- export default _default;