@tmagic/form 1.0.0-beta.1 → 1.0.0-beta.10

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