@vtj/ui 0.9.29 → 0.10.0
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.
- package/dist/index.mjs +2 -2
- package/dist/index.umd.js +2 -2
- package/package.json +5 -5
- package/types/components/attachment/Attachment.d.ts +394 -1
- package/types/components/container/Container.d.ts +3 -1
- package/types/components/dialog/Dialog.d.ts +814 -3
- package/types/components/dialog-form/DialogForm.d.ts +2265 -4
- package/types/components/dialog-grid/DialogGrid.d.ts +3012 -5
- package/types/components/field/Field.d.ts +163 -1
- package/types/components/form/Form.d.ts +186 -1
- package/types/components/grid/Grid.d.ts +14 -1
- package/types/components/grid/renderers/components/DateEdit.d.ts +256 -2
- package/types/components/grid/renderers/components/GridEdit.d.ts +410 -2
- package/types/components/grid/renderers/components/PickerEdit.d.ts +1926 -2
- package/types/components/grid-editor/GridEditor.d.ts +375 -2
- package/types/components/list/List.d.ts +3 -1
- package/types/components/mask/Mask.d.ts +534 -3
- package/types/components/mask/components/Tabs.d.ts +255 -2
- package/types/components/panel/Panel.d.ts +254 -1
- package/types/components/picker/Dialog.d.ts +1291 -2
- package/types/components/picker/Picker.d.ts +1731 -3
- package/types/components/query-form/QueryForm.d.ts +925 -6
- package/types/version.d.ts +2 -2
@@ -1,6 +1,8 @@
|
|
1
|
-
import { ComponentInternalInstance, VNodeProps, AllowedComponentProps, ComponentCustomProps, Slot, ComponentPublicInstance, ComponentOptionsBase, ExtractPropTypes, PropType,
|
2
|
-
import { ElTooltipProps } from 'element-plus';
|
1
|
+
import { ComponentInternalInstance, VNodeProps, AllowedComponentProps, ComponentCustomProps, Slot, ComponentPublicInstance, ComponentOptionsBase, ExtractPropTypes, PropType, ComponentOptionsMixin, GlobalComponents, GlobalDirectives, ComponentProvideOptions, DebuggerEvent, nextTick, WatchOptions, WatchStopHandle, ShallowUnwrapRef, ComponentCustomProperties, Ref, DefineComponent, PublicProps } from 'vue';
|
2
|
+
import { ElTooltipProps, FormItemRule, FormItemProp, FormValidateCallback, FormValidationResult, FormItemContext } from 'element-plus';
|
3
3
|
import { FormModel } from '../form';
|
4
|
+
import { EpPropMergeType, EpPropFinalized } from 'element-plus/es/utils/index.mjs';
|
5
|
+
import { Arrayable } from 'element-plus/es/utils/typescript.mjs';
|
4
6
|
import { OnCleanup } from '@vue/reactivity';
|
5
7
|
import { QueryFormItems } from './types';
|
6
8
|
declare function __VLS_template(): {
|
@@ -28,8 +30,8 @@ declare function __VLS_template(): {
|
|
28
30
|
readonly enterSubmit: boolean;
|
29
31
|
readonly tooltipMessage?: boolean | Partial< ElTooltipProps> | undefined;
|
30
32
|
readonly model?: Record<string, any> | undefined;
|
31
|
-
readonly submitMethod?: ((model: FormModel) => Promise<any>) | undefined;
|
32
33
|
readonly inlineColumns?: number | undefined;
|
34
|
+
readonly submitMethod?: ((model: FormModel) => Promise<any>) | undefined;
|
33
35
|
readonly onReset?: (() => any) | undefined;
|
34
36
|
readonly onSubmit?: ((model: Record<string, any>) => any) | undefined;
|
35
37
|
readonly onChange?: ((model: Record<string, any>) => any) | undefined;
|
@@ -39,6 +41,191 @@ declare function __VLS_template(): {
|
|
39
41
|
};
|
40
42
|
$refs: {
|
41
43
|
[x: string]: unknown;
|
44
|
+
} & {
|
45
|
+
formRef: ({
|
46
|
+
$: ComponentInternalInstance;
|
47
|
+
$data: {};
|
48
|
+
$props: Partial<{
|
49
|
+
readonly disabled: boolean;
|
50
|
+
readonly inline: boolean;
|
51
|
+
readonly labelWidth: EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
52
|
+
readonly labelPosition: EpPropMergeType<StringConstructor, "top" | "left" | "right", unknown>;
|
53
|
+
readonly inlineMessage: boolean;
|
54
|
+
readonly showMessage: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
55
|
+
readonly requireAsteriskPosition: EpPropMergeType<StringConstructor, "left" | "right", unknown>;
|
56
|
+
readonly labelSuffix: string;
|
57
|
+
readonly validateOnRuleChange: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
58
|
+
readonly statusIcon: boolean;
|
59
|
+
readonly hideRequiredAsterisk: boolean;
|
60
|
+
readonly scrollToError: boolean;
|
61
|
+
}> & Omit<{
|
62
|
+
readonly disabled: boolean;
|
63
|
+
readonly inline: boolean;
|
64
|
+
readonly labelWidth: EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
65
|
+
readonly labelPosition: EpPropMergeType<StringConstructor, "top" | "left" | "right", unknown>;
|
66
|
+
readonly inlineMessage: boolean;
|
67
|
+
readonly showMessage: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
68
|
+
readonly requireAsteriskPosition: EpPropMergeType<StringConstructor, "left" | "right", unknown>;
|
69
|
+
readonly labelSuffix: string;
|
70
|
+
readonly statusIcon: boolean;
|
71
|
+
readonly validateOnRuleChange: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
72
|
+
readonly hideRequiredAsterisk: boolean;
|
73
|
+
readonly scrollToError: boolean;
|
74
|
+
readonly size?: EpPropMergeType<StringConstructor, "" | "large" | "default" | "small", unknown> | undefined;
|
75
|
+
readonly rules?: Partial<Record<string, Arrayable<FormItemRule>>> | undefined;
|
76
|
+
readonly model?: Record<string, any> | undefined;
|
77
|
+
readonly scrollIntoViewOptions?: EpPropMergeType<readonly [ObjectConstructor, BooleanConstructor], unknown, unknown> | undefined;
|
78
|
+
onValidate?: ((prop: FormItemProp, isValid: boolean, message: string) => any) | undefined | undefined;
|
79
|
+
} & VNodeProps & AllowedComponentProps & ComponentCustomProps, "disabled" | "inline" | "labelWidth" | "labelPosition" | "inlineMessage" | "showMessage" | "requireAsteriskPosition" | "labelSuffix" | "statusIcon" | "validateOnRuleChange" | "hideRequiredAsterisk" | "scrollToError">;
|
80
|
+
$attrs: {
|
81
|
+
[x: string]: unknown;
|
82
|
+
};
|
83
|
+
$refs: {
|
84
|
+
[x: string]: unknown;
|
85
|
+
};
|
86
|
+
$slots: Readonly<{
|
87
|
+
[name: string]: Slot<any> | undefined;
|
88
|
+
}>;
|
89
|
+
$root: ComponentPublicInstance | null;
|
90
|
+
$parent: ComponentPublicInstance | null;
|
91
|
+
$host: Element | null;
|
92
|
+
$emit: (event: "validate", prop: FormItemProp, isValid: boolean, message: string) => void;
|
93
|
+
$el: any;
|
94
|
+
$options: ComponentOptionsBase<Readonly< ExtractPropTypes<{
|
95
|
+
readonly model: ObjectConstructor;
|
96
|
+
readonly rules: {
|
97
|
+
readonly type: PropType<Partial<Record<string, Arrayable<FormItemRule>>>>;
|
98
|
+
readonly required: false;
|
99
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
100
|
+
__epPropKey: true;
|
101
|
+
};
|
102
|
+
readonly labelPosition: EpPropFinalized<StringConstructor, "top" | "left" | "right", unknown, "right", boolean>;
|
103
|
+
readonly requireAsteriskPosition: EpPropFinalized<StringConstructor, "left" | "right", unknown, "left", boolean>;
|
104
|
+
readonly labelWidth: EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, "", boolean>;
|
105
|
+
readonly labelSuffix: EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
106
|
+
readonly inline: BooleanConstructor;
|
107
|
+
readonly inlineMessage: BooleanConstructor;
|
108
|
+
readonly statusIcon: BooleanConstructor;
|
109
|
+
readonly showMessage: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
110
|
+
readonly validateOnRuleChange: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
111
|
+
readonly hideRequiredAsterisk: BooleanConstructor;
|
112
|
+
readonly scrollToError: BooleanConstructor;
|
113
|
+
readonly scrollIntoViewOptions: {
|
114
|
+
readonly type: PropType<EpPropMergeType<readonly [ObjectConstructor, BooleanConstructor], unknown, unknown>>;
|
115
|
+
readonly required: false;
|
116
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
117
|
+
__epPropKey: true;
|
118
|
+
};
|
119
|
+
readonly size: {
|
120
|
+
readonly type: PropType<EpPropMergeType<StringConstructor, "" | "small" | "default" | "large", unknown>>;
|
121
|
+
readonly required: false;
|
122
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
123
|
+
__epPropKey: true;
|
124
|
+
};
|
125
|
+
readonly disabled: BooleanConstructor;
|
126
|
+
}>> & {
|
127
|
+
onValidate?: ((prop: FormItemProp, isValid: boolean, message: string) => any) | undefined;
|
128
|
+
}, {
|
129
|
+
validate: (callback?: FormValidateCallback) => FormValidationResult;
|
130
|
+
validateField: (props?: Arrayable<FormItemProp>, callback?: FormValidateCallback) => FormValidationResult;
|
131
|
+
resetFields: (props?: Arrayable<FormItemProp>) => void;
|
132
|
+
clearValidate: (props?: Arrayable<FormItemProp>) => void;
|
133
|
+
scrollToField: (prop: FormItemProp) => void;
|
134
|
+
fields: FormItemContext[];
|
135
|
+
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
136
|
+
validate: (prop: FormItemProp, isValid: boolean, message: string) => void;
|
137
|
+
}, string, {
|
138
|
+
readonly disabled: boolean;
|
139
|
+
readonly inline: boolean;
|
140
|
+
readonly labelWidth: EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
141
|
+
readonly labelPosition: EpPropMergeType<StringConstructor, "top" | "left" | "right", unknown>;
|
142
|
+
readonly inlineMessage: boolean;
|
143
|
+
readonly showMessage: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
144
|
+
readonly requireAsteriskPosition: EpPropMergeType<StringConstructor, "left" | "right", unknown>;
|
145
|
+
readonly labelSuffix: string;
|
146
|
+
readonly validateOnRuleChange: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
147
|
+
readonly statusIcon: boolean;
|
148
|
+
readonly hideRequiredAsterisk: boolean;
|
149
|
+
readonly scrollToError: boolean;
|
150
|
+
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & {
|
151
|
+
beforeCreate?: (() => void) | (() => void)[];
|
152
|
+
created?: (() => void) | (() => void)[];
|
153
|
+
beforeMount?: (() => void) | (() => void)[];
|
154
|
+
mounted?: (() => void) | (() => void)[];
|
155
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
156
|
+
updated?: (() => void) | (() => void)[];
|
157
|
+
activated?: (() => void) | (() => void)[];
|
158
|
+
deactivated?: (() => void) | (() => void)[];
|
159
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
160
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
161
|
+
destroyed?: (() => void) | (() => void)[];
|
162
|
+
unmounted?: (() => void) | (() => void)[];
|
163
|
+
renderTracked?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
|
164
|
+
renderTriggered?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
|
165
|
+
errorCaptured?: ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void)[];
|
166
|
+
};
|
167
|
+
$forceUpdate: () => void;
|
168
|
+
$nextTick: nextTick;
|
169
|
+
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, OnCleanup]) => any : (...args: [any, any, OnCleanup]) => any, options?: WatchOptions): WatchStopHandle;
|
170
|
+
} & Readonly<{
|
171
|
+
readonly disabled: boolean;
|
172
|
+
readonly inline: boolean;
|
173
|
+
readonly labelWidth: EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
174
|
+
readonly labelPosition: EpPropMergeType<StringConstructor, "top" | "left" | "right", unknown>;
|
175
|
+
readonly inlineMessage: boolean;
|
176
|
+
readonly showMessage: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
177
|
+
readonly requireAsteriskPosition: EpPropMergeType<StringConstructor, "left" | "right", unknown>;
|
178
|
+
readonly labelSuffix: string;
|
179
|
+
readonly validateOnRuleChange: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
180
|
+
readonly statusIcon: boolean;
|
181
|
+
readonly hideRequiredAsterisk: boolean;
|
182
|
+
readonly scrollToError: boolean;
|
183
|
+
}> & Omit<Readonly< ExtractPropTypes<{
|
184
|
+
readonly model: ObjectConstructor;
|
185
|
+
readonly rules: {
|
186
|
+
readonly type: PropType<Partial<Record<string, Arrayable<FormItemRule>>>>;
|
187
|
+
readonly required: false;
|
188
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
189
|
+
__epPropKey: true;
|
190
|
+
};
|
191
|
+
readonly labelPosition: EpPropFinalized<StringConstructor, "top" | "left" | "right", unknown, "right", boolean>;
|
192
|
+
readonly requireAsteriskPosition: EpPropFinalized<StringConstructor, "left" | "right", unknown, "left", boolean>;
|
193
|
+
readonly labelWidth: EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, "", boolean>;
|
194
|
+
readonly labelSuffix: EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
195
|
+
readonly inline: BooleanConstructor;
|
196
|
+
readonly inlineMessage: BooleanConstructor;
|
197
|
+
readonly statusIcon: BooleanConstructor;
|
198
|
+
readonly showMessage: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
199
|
+
readonly validateOnRuleChange: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
200
|
+
readonly hideRequiredAsterisk: BooleanConstructor;
|
201
|
+
readonly scrollToError: BooleanConstructor;
|
202
|
+
readonly scrollIntoViewOptions: {
|
203
|
+
readonly type: PropType<EpPropMergeType<readonly [ObjectConstructor, BooleanConstructor], unknown, unknown>>;
|
204
|
+
readonly required: false;
|
205
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
206
|
+
__epPropKey: true;
|
207
|
+
};
|
208
|
+
readonly size: {
|
209
|
+
readonly type: PropType<EpPropMergeType<StringConstructor, "" | "small" | "default" | "large", unknown>>;
|
210
|
+
readonly required: false;
|
211
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
212
|
+
__epPropKey: true;
|
213
|
+
};
|
214
|
+
readonly disabled: BooleanConstructor;
|
215
|
+
}>> & {
|
216
|
+
onValidate?: ((prop: FormItemProp, isValid: boolean, message: string) => any) | undefined;
|
217
|
+
}, "disabled" | "inline" | "clearValidate" | "validate" | "labelWidth" | "labelPosition" | "inlineMessage" | "showMessage" | "fields" | "requireAsteriskPosition" | "labelSuffix" | "statusIcon" | "validateOnRuleChange" | "hideRequiredAsterisk" | "scrollToError" | "validateField" | "resetFields" | "scrollToField"> & ShallowUnwrapRef<{
|
218
|
+
validate: (callback?: FormValidateCallback) => FormValidationResult;
|
219
|
+
validateField: (props?: Arrayable<FormItemProp>, callback?: FormValidateCallback) => FormValidationResult;
|
220
|
+
resetFields: (props?: Arrayable<FormItemProp>) => void;
|
221
|
+
clearValidate: (props?: Arrayable<FormItemProp>) => void;
|
222
|
+
scrollToField: (prop: FormItemProp) => void;
|
223
|
+
fields: FormItemContext[];
|
224
|
+
}> & {} & ComponentCustomProperties & {} & {
|
225
|
+
$slots: {
|
226
|
+
default?(_: {}): any;
|
227
|
+
};
|
228
|
+
}) | null;
|
42
229
|
};
|
43
230
|
$slots: Readonly<{
|
44
231
|
[name: string]: Slot<any> | undefined;
|
@@ -228,8 +415,8 @@ declare const __VLS_component: DefineComponent<ExtractPropTypes<{
|
|
228
415
|
readonly enterSubmit: boolean;
|
229
416
|
readonly tooltipMessage?: boolean | Partial< ElTooltipProps> | undefined;
|
230
417
|
readonly model?: Record<string, any> | undefined;
|
231
|
-
readonly submitMethod?: ((model: FormModel) => Promise<any>) | undefined;
|
232
418
|
readonly inlineColumns?: number | undefined;
|
419
|
+
readonly submitMethod?: ((model: FormModel) => Promise<any>) | undefined;
|
233
420
|
readonly onReset?: (() => any) | undefined;
|
234
421
|
readonly onSubmit?: ((model: Record<string, any>) => any) | undefined;
|
235
422
|
readonly onChange?: ((model: Record<string, any>) => any) | undefined;
|
@@ -239,6 +426,191 @@ declare const __VLS_component: DefineComponent<ExtractPropTypes<{
|
|
239
426
|
};
|
240
427
|
$refs: {
|
241
428
|
[x: string]: unknown;
|
429
|
+
} & {
|
430
|
+
formRef: ({
|
431
|
+
$: ComponentInternalInstance;
|
432
|
+
$data: {};
|
433
|
+
$props: Partial<{
|
434
|
+
readonly disabled: boolean;
|
435
|
+
readonly inline: boolean;
|
436
|
+
readonly labelWidth: EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
437
|
+
readonly labelPosition: EpPropMergeType<StringConstructor, "top" | "left" | "right", unknown>;
|
438
|
+
readonly inlineMessage: boolean;
|
439
|
+
readonly showMessage: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
440
|
+
readonly requireAsteriskPosition: EpPropMergeType<StringConstructor, "left" | "right", unknown>;
|
441
|
+
readonly labelSuffix: string;
|
442
|
+
readonly validateOnRuleChange: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
443
|
+
readonly statusIcon: boolean;
|
444
|
+
readonly hideRequiredAsterisk: boolean;
|
445
|
+
readonly scrollToError: boolean;
|
446
|
+
}> & Omit<{
|
447
|
+
readonly disabled: boolean;
|
448
|
+
readonly inline: boolean;
|
449
|
+
readonly labelWidth: EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
450
|
+
readonly labelPosition: EpPropMergeType<StringConstructor, "top" | "left" | "right", unknown>;
|
451
|
+
readonly inlineMessage: boolean;
|
452
|
+
readonly showMessage: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
453
|
+
readonly requireAsteriskPosition: EpPropMergeType<StringConstructor, "left" | "right", unknown>;
|
454
|
+
readonly labelSuffix: string;
|
455
|
+
readonly statusIcon: boolean;
|
456
|
+
readonly validateOnRuleChange: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
457
|
+
readonly hideRequiredAsterisk: boolean;
|
458
|
+
readonly scrollToError: boolean;
|
459
|
+
readonly size?: EpPropMergeType<StringConstructor, "" | "large" | "default" | "small", unknown> | undefined;
|
460
|
+
readonly rules?: Partial<Record<string, Arrayable<FormItemRule>>> | undefined;
|
461
|
+
readonly model?: Record<string, any> | undefined;
|
462
|
+
readonly scrollIntoViewOptions?: EpPropMergeType<readonly [ObjectConstructor, BooleanConstructor], unknown, unknown> | undefined;
|
463
|
+
onValidate?: ((prop: FormItemProp, isValid: boolean, message: string) => any) | undefined | undefined;
|
464
|
+
} & VNodeProps & AllowedComponentProps & ComponentCustomProps, "disabled" | "inline" | "labelWidth" | "labelPosition" | "inlineMessage" | "showMessage" | "requireAsteriskPosition" | "labelSuffix" | "statusIcon" | "validateOnRuleChange" | "hideRequiredAsterisk" | "scrollToError">;
|
465
|
+
$attrs: {
|
466
|
+
[x: string]: unknown;
|
467
|
+
};
|
468
|
+
$refs: {
|
469
|
+
[x: string]: unknown;
|
470
|
+
};
|
471
|
+
$slots: Readonly<{
|
472
|
+
[name: string]: Slot<any> | undefined;
|
473
|
+
}>;
|
474
|
+
$root: ComponentPublicInstance | null;
|
475
|
+
$parent: ComponentPublicInstance | null;
|
476
|
+
$host: Element | null;
|
477
|
+
$emit: (event: "validate", prop: FormItemProp, isValid: boolean, message: string) => void;
|
478
|
+
$el: any;
|
479
|
+
$options: ComponentOptionsBase<Readonly< ExtractPropTypes<{
|
480
|
+
readonly model: ObjectConstructor;
|
481
|
+
readonly rules: {
|
482
|
+
readonly type: PropType<Partial<Record<string, Arrayable<FormItemRule>>>>;
|
483
|
+
readonly required: false;
|
484
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
485
|
+
__epPropKey: true;
|
486
|
+
};
|
487
|
+
readonly labelPosition: EpPropFinalized<StringConstructor, "top" | "left" | "right", unknown, "right", boolean>;
|
488
|
+
readonly requireAsteriskPosition: EpPropFinalized<StringConstructor, "left" | "right", unknown, "left", boolean>;
|
489
|
+
readonly labelWidth: EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, "", boolean>;
|
490
|
+
readonly labelSuffix: EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
491
|
+
readonly inline: BooleanConstructor;
|
492
|
+
readonly inlineMessage: BooleanConstructor;
|
493
|
+
readonly statusIcon: BooleanConstructor;
|
494
|
+
readonly showMessage: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
495
|
+
readonly validateOnRuleChange: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
496
|
+
readonly hideRequiredAsterisk: BooleanConstructor;
|
497
|
+
readonly scrollToError: BooleanConstructor;
|
498
|
+
readonly scrollIntoViewOptions: {
|
499
|
+
readonly type: PropType<EpPropMergeType<readonly [ObjectConstructor, BooleanConstructor], unknown, unknown>>;
|
500
|
+
readonly required: false;
|
501
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
502
|
+
__epPropKey: true;
|
503
|
+
};
|
504
|
+
readonly size: {
|
505
|
+
readonly type: PropType<EpPropMergeType<StringConstructor, "" | "small" | "default" | "large", unknown>>;
|
506
|
+
readonly required: false;
|
507
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
508
|
+
__epPropKey: true;
|
509
|
+
};
|
510
|
+
readonly disabled: BooleanConstructor;
|
511
|
+
}>> & {
|
512
|
+
onValidate?: ((prop: FormItemProp, isValid: boolean, message: string) => any) | undefined;
|
513
|
+
}, {
|
514
|
+
validate: (callback?: FormValidateCallback) => FormValidationResult;
|
515
|
+
validateField: (props?: Arrayable<FormItemProp>, callback?: FormValidateCallback) => FormValidationResult;
|
516
|
+
resetFields: (props?: Arrayable<FormItemProp>) => void;
|
517
|
+
clearValidate: (props?: Arrayable<FormItemProp>) => void;
|
518
|
+
scrollToField: (prop: FormItemProp) => void;
|
519
|
+
fields: FormItemContext[];
|
520
|
+
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
521
|
+
validate: (prop: FormItemProp, isValid: boolean, message: string) => void;
|
522
|
+
}, string, {
|
523
|
+
readonly disabled: boolean;
|
524
|
+
readonly inline: boolean;
|
525
|
+
readonly labelWidth: EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
526
|
+
readonly labelPosition: EpPropMergeType<StringConstructor, "top" | "left" | "right", unknown>;
|
527
|
+
readonly inlineMessage: boolean;
|
528
|
+
readonly showMessage: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
529
|
+
readonly requireAsteriskPosition: EpPropMergeType<StringConstructor, "left" | "right", unknown>;
|
530
|
+
readonly labelSuffix: string;
|
531
|
+
readonly validateOnRuleChange: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
532
|
+
readonly statusIcon: boolean;
|
533
|
+
readonly hideRequiredAsterisk: boolean;
|
534
|
+
readonly scrollToError: boolean;
|
535
|
+
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & {
|
536
|
+
beforeCreate?: (() => void) | (() => void)[];
|
537
|
+
created?: (() => void) | (() => void)[];
|
538
|
+
beforeMount?: (() => void) | (() => void)[];
|
539
|
+
mounted?: (() => void) | (() => void)[];
|
540
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
541
|
+
updated?: (() => void) | (() => void)[];
|
542
|
+
activated?: (() => void) | (() => void)[];
|
543
|
+
deactivated?: (() => void) | (() => void)[];
|
544
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
545
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
546
|
+
destroyed?: (() => void) | (() => void)[];
|
547
|
+
unmounted?: (() => void) | (() => void)[];
|
548
|
+
renderTracked?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
|
549
|
+
renderTriggered?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
|
550
|
+
errorCaptured?: ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void)[];
|
551
|
+
};
|
552
|
+
$forceUpdate: () => void;
|
553
|
+
$nextTick: nextTick;
|
554
|
+
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, OnCleanup]) => any : (...args: [any, any, OnCleanup]) => any, options?: WatchOptions): WatchStopHandle;
|
555
|
+
} & Readonly<{
|
556
|
+
readonly disabled: boolean;
|
557
|
+
readonly inline: boolean;
|
558
|
+
readonly labelWidth: EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
559
|
+
readonly labelPosition: EpPropMergeType<StringConstructor, "top" | "left" | "right", unknown>;
|
560
|
+
readonly inlineMessage: boolean;
|
561
|
+
readonly showMessage: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
562
|
+
readonly requireAsteriskPosition: EpPropMergeType<StringConstructor, "left" | "right", unknown>;
|
563
|
+
readonly labelSuffix: string;
|
564
|
+
readonly validateOnRuleChange: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
565
|
+
readonly statusIcon: boolean;
|
566
|
+
readonly hideRequiredAsterisk: boolean;
|
567
|
+
readonly scrollToError: boolean;
|
568
|
+
}> & Omit<Readonly< ExtractPropTypes<{
|
569
|
+
readonly model: ObjectConstructor;
|
570
|
+
readonly rules: {
|
571
|
+
readonly type: PropType<Partial<Record<string, Arrayable<FormItemRule>>>>;
|
572
|
+
readonly required: false;
|
573
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
574
|
+
__epPropKey: true;
|
575
|
+
};
|
576
|
+
readonly labelPosition: EpPropFinalized<StringConstructor, "top" | "left" | "right", unknown, "right", boolean>;
|
577
|
+
readonly requireAsteriskPosition: EpPropFinalized<StringConstructor, "left" | "right", unknown, "left", boolean>;
|
578
|
+
readonly labelWidth: EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, "", boolean>;
|
579
|
+
readonly labelSuffix: EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
580
|
+
readonly inline: BooleanConstructor;
|
581
|
+
readonly inlineMessage: BooleanConstructor;
|
582
|
+
readonly statusIcon: BooleanConstructor;
|
583
|
+
readonly showMessage: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
584
|
+
readonly validateOnRuleChange: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
585
|
+
readonly hideRequiredAsterisk: BooleanConstructor;
|
586
|
+
readonly scrollToError: BooleanConstructor;
|
587
|
+
readonly scrollIntoViewOptions: {
|
588
|
+
readonly type: PropType<EpPropMergeType<readonly [ObjectConstructor, BooleanConstructor], unknown, unknown>>;
|
589
|
+
readonly required: false;
|
590
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
591
|
+
__epPropKey: true;
|
592
|
+
};
|
593
|
+
readonly size: {
|
594
|
+
readonly type: PropType<EpPropMergeType<StringConstructor, "" | "small" | "default" | "large", unknown>>;
|
595
|
+
readonly required: false;
|
596
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
597
|
+
__epPropKey: true;
|
598
|
+
};
|
599
|
+
readonly disabled: BooleanConstructor;
|
600
|
+
}>> & {
|
601
|
+
onValidate?: ((prop: FormItemProp, isValid: boolean, message: string) => any) | undefined;
|
602
|
+
}, "disabled" | "inline" | "clearValidate" | "validate" | "labelWidth" | "labelPosition" | "inlineMessage" | "showMessage" | "fields" | "requireAsteriskPosition" | "labelSuffix" | "statusIcon" | "validateOnRuleChange" | "hideRequiredAsterisk" | "scrollToError" | "validateField" | "resetFields" | "scrollToField"> & ShallowUnwrapRef<{
|
603
|
+
validate: (callback?: FormValidateCallback) => FormValidationResult;
|
604
|
+
validateField: (props?: Arrayable<FormItemProp>, callback?: FormValidateCallback) => FormValidationResult;
|
605
|
+
resetFields: (props?: Arrayable<FormItemProp>) => void;
|
606
|
+
clearValidate: (props?: Arrayable<FormItemProp>) => void;
|
607
|
+
scrollToField: (prop: FormItemProp) => void;
|
608
|
+
fields: FormItemContext[];
|
609
|
+
}> & {} & ComponentCustomProperties & {} & {
|
610
|
+
$slots: {
|
611
|
+
default?(_: {}): any;
|
612
|
+
};
|
613
|
+
}) | null;
|
242
614
|
};
|
243
615
|
$slots: Readonly<{
|
244
616
|
[name: string]: Slot<any> | undefined;
|
@@ -403,8 +775,8 @@ declare const __VLS_component: DefineComponent<ExtractPropTypes<{
|
|
403
775
|
readonly enterSubmit: boolean;
|
404
776
|
readonly tooltipMessage?: boolean | Partial< ElTooltipProps> | undefined;
|
405
777
|
readonly model?: Record<string, any> | undefined;
|
406
|
-
readonly submitMethod?: ((model: FormModel) => Promise<any>) | undefined;
|
407
778
|
readonly inlineColumns?: number | undefined;
|
779
|
+
readonly submitMethod?: ((model: FormModel) => Promise<any>) | undefined;
|
408
780
|
readonly onReset?: (() => any) | undefined;
|
409
781
|
readonly onSubmit?: ((model: Record<string, any>) => any) | undefined;
|
410
782
|
readonly onChange?: ((model: Record<string, any>) => any) | undefined;
|
@@ -414,6 +786,191 @@ declare const __VLS_component: DefineComponent<ExtractPropTypes<{
|
|
414
786
|
};
|
415
787
|
$refs: {
|
416
788
|
[x: string]: unknown;
|
789
|
+
} & {
|
790
|
+
formRef: ({
|
791
|
+
$: ComponentInternalInstance;
|
792
|
+
$data: {};
|
793
|
+
$props: Partial<{
|
794
|
+
readonly disabled: boolean;
|
795
|
+
readonly inline: boolean;
|
796
|
+
readonly labelWidth: EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
797
|
+
readonly labelPosition: EpPropMergeType<StringConstructor, "top" | "left" | "right", unknown>;
|
798
|
+
readonly inlineMessage: boolean;
|
799
|
+
readonly showMessage: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
800
|
+
readonly requireAsteriskPosition: EpPropMergeType<StringConstructor, "left" | "right", unknown>;
|
801
|
+
readonly labelSuffix: string;
|
802
|
+
readonly validateOnRuleChange: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
803
|
+
readonly statusIcon: boolean;
|
804
|
+
readonly hideRequiredAsterisk: boolean;
|
805
|
+
readonly scrollToError: boolean;
|
806
|
+
}> & Omit<{
|
807
|
+
readonly disabled: boolean;
|
808
|
+
readonly inline: boolean;
|
809
|
+
readonly labelWidth: EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
810
|
+
readonly labelPosition: EpPropMergeType<StringConstructor, "top" | "left" | "right", unknown>;
|
811
|
+
readonly inlineMessage: boolean;
|
812
|
+
readonly showMessage: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
813
|
+
readonly requireAsteriskPosition: EpPropMergeType<StringConstructor, "left" | "right", unknown>;
|
814
|
+
readonly labelSuffix: string;
|
815
|
+
readonly statusIcon: boolean;
|
816
|
+
readonly validateOnRuleChange: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
817
|
+
readonly hideRequiredAsterisk: boolean;
|
818
|
+
readonly scrollToError: boolean;
|
819
|
+
readonly size?: EpPropMergeType<StringConstructor, "" | "large" | "default" | "small", unknown> | undefined;
|
820
|
+
readonly rules?: Partial<Record<string, Arrayable<FormItemRule>>> | undefined;
|
821
|
+
readonly model?: Record<string, any> | undefined;
|
822
|
+
readonly scrollIntoViewOptions?: EpPropMergeType<readonly [ObjectConstructor, BooleanConstructor], unknown, unknown> | undefined;
|
823
|
+
onValidate?: ((prop: FormItemProp, isValid: boolean, message: string) => any) | undefined | undefined;
|
824
|
+
} & VNodeProps & AllowedComponentProps & ComponentCustomProps, "disabled" | "inline" | "labelWidth" | "labelPosition" | "inlineMessage" | "showMessage" | "requireAsteriskPosition" | "labelSuffix" | "statusIcon" | "validateOnRuleChange" | "hideRequiredAsterisk" | "scrollToError">;
|
825
|
+
$attrs: {
|
826
|
+
[x: string]: unknown;
|
827
|
+
};
|
828
|
+
$refs: {
|
829
|
+
[x: string]: unknown;
|
830
|
+
};
|
831
|
+
$slots: Readonly<{
|
832
|
+
[name: string]: Slot<any> | undefined;
|
833
|
+
}>;
|
834
|
+
$root: ComponentPublicInstance | null;
|
835
|
+
$parent: ComponentPublicInstance | null;
|
836
|
+
$host: Element | null;
|
837
|
+
$emit: (event: "validate", prop: FormItemProp, isValid: boolean, message: string) => void;
|
838
|
+
$el: any;
|
839
|
+
$options: ComponentOptionsBase<Readonly< ExtractPropTypes<{
|
840
|
+
readonly model: ObjectConstructor;
|
841
|
+
readonly rules: {
|
842
|
+
readonly type: PropType<Partial<Record<string, Arrayable<FormItemRule>>>>;
|
843
|
+
readonly required: false;
|
844
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
845
|
+
__epPropKey: true;
|
846
|
+
};
|
847
|
+
readonly labelPosition: EpPropFinalized<StringConstructor, "top" | "left" | "right", unknown, "right", boolean>;
|
848
|
+
readonly requireAsteriskPosition: EpPropFinalized<StringConstructor, "left" | "right", unknown, "left", boolean>;
|
849
|
+
readonly labelWidth: EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, "", boolean>;
|
850
|
+
readonly labelSuffix: EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
851
|
+
readonly inline: BooleanConstructor;
|
852
|
+
readonly inlineMessage: BooleanConstructor;
|
853
|
+
readonly statusIcon: BooleanConstructor;
|
854
|
+
readonly showMessage: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
855
|
+
readonly validateOnRuleChange: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
856
|
+
readonly hideRequiredAsterisk: BooleanConstructor;
|
857
|
+
readonly scrollToError: BooleanConstructor;
|
858
|
+
readonly scrollIntoViewOptions: {
|
859
|
+
readonly type: PropType<EpPropMergeType<readonly [ObjectConstructor, BooleanConstructor], unknown, unknown>>;
|
860
|
+
readonly required: false;
|
861
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
862
|
+
__epPropKey: true;
|
863
|
+
};
|
864
|
+
readonly size: {
|
865
|
+
readonly type: PropType<EpPropMergeType<StringConstructor, "" | "small" | "default" | "large", unknown>>;
|
866
|
+
readonly required: false;
|
867
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
868
|
+
__epPropKey: true;
|
869
|
+
};
|
870
|
+
readonly disabled: BooleanConstructor;
|
871
|
+
}>> & {
|
872
|
+
onValidate?: ((prop: FormItemProp, isValid: boolean, message: string) => any) | undefined;
|
873
|
+
}, {
|
874
|
+
validate: (callback?: FormValidateCallback) => FormValidationResult;
|
875
|
+
validateField: (props?: Arrayable<FormItemProp>, callback?: FormValidateCallback) => FormValidationResult;
|
876
|
+
resetFields: (props?: Arrayable<FormItemProp>) => void;
|
877
|
+
clearValidate: (props?: Arrayable<FormItemProp>) => void;
|
878
|
+
scrollToField: (prop: FormItemProp) => void;
|
879
|
+
fields: FormItemContext[];
|
880
|
+
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
881
|
+
validate: (prop: FormItemProp, isValid: boolean, message: string) => void;
|
882
|
+
}, string, {
|
883
|
+
readonly disabled: boolean;
|
884
|
+
readonly inline: boolean;
|
885
|
+
readonly labelWidth: EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
886
|
+
readonly labelPosition: EpPropMergeType<StringConstructor, "top" | "left" | "right", unknown>;
|
887
|
+
readonly inlineMessage: boolean;
|
888
|
+
readonly showMessage: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
889
|
+
readonly requireAsteriskPosition: EpPropMergeType<StringConstructor, "left" | "right", unknown>;
|
890
|
+
readonly labelSuffix: string;
|
891
|
+
readonly validateOnRuleChange: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
892
|
+
readonly statusIcon: boolean;
|
893
|
+
readonly hideRequiredAsterisk: boolean;
|
894
|
+
readonly scrollToError: boolean;
|
895
|
+
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & {
|
896
|
+
beforeCreate?: (() => void) | (() => void)[];
|
897
|
+
created?: (() => void) | (() => void)[];
|
898
|
+
beforeMount?: (() => void) | (() => void)[];
|
899
|
+
mounted?: (() => void) | (() => void)[];
|
900
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
901
|
+
updated?: (() => void) | (() => void)[];
|
902
|
+
activated?: (() => void) | (() => void)[];
|
903
|
+
deactivated?: (() => void) | (() => void)[];
|
904
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
905
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
906
|
+
destroyed?: (() => void) | (() => void)[];
|
907
|
+
unmounted?: (() => void) | (() => void)[];
|
908
|
+
renderTracked?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
|
909
|
+
renderTriggered?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
|
910
|
+
errorCaptured?: ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void)[];
|
911
|
+
};
|
912
|
+
$forceUpdate: () => void;
|
913
|
+
$nextTick: nextTick;
|
914
|
+
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, OnCleanup]) => any : (...args: [any, any, OnCleanup]) => any, options?: WatchOptions): WatchStopHandle;
|
915
|
+
} & Readonly<{
|
916
|
+
readonly disabled: boolean;
|
917
|
+
readonly inline: boolean;
|
918
|
+
readonly labelWidth: EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
919
|
+
readonly labelPosition: EpPropMergeType<StringConstructor, "top" | "left" | "right", unknown>;
|
920
|
+
readonly inlineMessage: boolean;
|
921
|
+
readonly showMessage: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
922
|
+
readonly requireAsteriskPosition: EpPropMergeType<StringConstructor, "left" | "right", unknown>;
|
923
|
+
readonly labelSuffix: string;
|
924
|
+
readonly validateOnRuleChange: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
925
|
+
readonly statusIcon: boolean;
|
926
|
+
readonly hideRequiredAsterisk: boolean;
|
927
|
+
readonly scrollToError: boolean;
|
928
|
+
}> & Omit<Readonly< ExtractPropTypes<{
|
929
|
+
readonly model: ObjectConstructor;
|
930
|
+
readonly rules: {
|
931
|
+
readonly type: PropType<Partial<Record<string, Arrayable<FormItemRule>>>>;
|
932
|
+
readonly required: false;
|
933
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
934
|
+
__epPropKey: true;
|
935
|
+
};
|
936
|
+
readonly labelPosition: EpPropFinalized<StringConstructor, "top" | "left" | "right", unknown, "right", boolean>;
|
937
|
+
readonly requireAsteriskPosition: EpPropFinalized<StringConstructor, "left" | "right", unknown, "left", boolean>;
|
938
|
+
readonly labelWidth: EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, "", boolean>;
|
939
|
+
readonly labelSuffix: EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
940
|
+
readonly inline: BooleanConstructor;
|
941
|
+
readonly inlineMessage: BooleanConstructor;
|
942
|
+
readonly statusIcon: BooleanConstructor;
|
943
|
+
readonly showMessage: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
944
|
+
readonly validateOnRuleChange: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
945
|
+
readonly hideRequiredAsterisk: BooleanConstructor;
|
946
|
+
readonly scrollToError: BooleanConstructor;
|
947
|
+
readonly scrollIntoViewOptions: {
|
948
|
+
readonly type: PropType<EpPropMergeType<readonly [ObjectConstructor, BooleanConstructor], unknown, unknown>>;
|
949
|
+
readonly required: false;
|
950
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
951
|
+
__epPropKey: true;
|
952
|
+
};
|
953
|
+
readonly size: {
|
954
|
+
readonly type: PropType<EpPropMergeType<StringConstructor, "" | "small" | "default" | "large", unknown>>;
|
955
|
+
readonly required: false;
|
956
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
957
|
+
__epPropKey: true;
|
958
|
+
};
|
959
|
+
readonly disabled: BooleanConstructor;
|
960
|
+
}>> & {
|
961
|
+
onValidate?: ((prop: FormItemProp, isValid: boolean, message: string) => any) | undefined;
|
962
|
+
}, "disabled" | "inline" | "clearValidate" | "validate" | "labelWidth" | "labelPosition" | "inlineMessage" | "showMessage" | "fields" | "requireAsteriskPosition" | "labelSuffix" | "statusIcon" | "validateOnRuleChange" | "hideRequiredAsterisk" | "scrollToError" | "validateField" | "resetFields" | "scrollToField"> & ShallowUnwrapRef<{
|
963
|
+
validate: (callback?: FormValidateCallback) => FormValidationResult;
|
964
|
+
validateField: (props?: Arrayable<FormItemProp>, callback?: FormValidateCallback) => FormValidationResult;
|
965
|
+
resetFields: (props?: Arrayable<FormItemProp>) => void;
|
966
|
+
clearValidate: (props?: Arrayable<FormItemProp>) => void;
|
967
|
+
scrollToField: (prop: FormItemProp) => void;
|
968
|
+
fields: FormItemContext[];
|
969
|
+
}> & {} & ComponentCustomProperties & {} & {
|
970
|
+
$slots: {
|
971
|
+
default?(_: {}): any;
|
972
|
+
};
|
973
|
+
}) | null;
|
417
974
|
};
|
418
975
|
$slots: Readonly<{
|
419
976
|
[name: string]: Slot<any> | undefined;
|
@@ -584,7 +1141,369 @@ declare const __VLS_component: DefineComponent<ExtractPropTypes<{
|
|
584
1141
|
disabled: boolean;
|
585
1142
|
collapsible: boolean;
|
586
1143
|
inlineColumns: number;
|
587
|
-
}, {}, {}, {}, string, ComponentProvideOptions, true, {
|
1144
|
+
}, {}, {}, {}, string, ComponentProvideOptions, true, {
|
1145
|
+
formRef: ({
|
1146
|
+
$: ComponentInternalInstance;
|
1147
|
+
$data: {};
|
1148
|
+
$props: Partial<{
|
1149
|
+
footer: boolean;
|
1150
|
+
inline: boolean;
|
1151
|
+
tooltipMessage: boolean | Partial< ElTooltipProps>;
|
1152
|
+
model: Record<string, any>;
|
1153
|
+
submitText: string | null;
|
1154
|
+
resetText: string | null;
|
1155
|
+
enterSubmit: boolean;
|
1156
|
+
}> & Omit<{
|
1157
|
+
readonly footer: boolean;
|
1158
|
+
readonly inline: boolean;
|
1159
|
+
readonly submitText: string | null;
|
1160
|
+
readonly resetText: string | null;
|
1161
|
+
readonly enterSubmit: boolean;
|
1162
|
+
readonly tooltipMessage?: boolean | Partial< ElTooltipProps> | undefined;
|
1163
|
+
readonly model?: Record<string, any> | undefined;
|
1164
|
+
readonly inlineColumns?: number | undefined;
|
1165
|
+
readonly submitMethod?: ((model: FormModel) => Promise<any>) | undefined;
|
1166
|
+
readonly onReset?: (() => any) | undefined;
|
1167
|
+
readonly onSubmit?: ((model: Record<string, any>) => any) | undefined;
|
1168
|
+
readonly onChange?: ((model: Record<string, any>) => any) | undefined;
|
1169
|
+
} & VNodeProps & AllowedComponentProps & ComponentCustomProps, "footer" | "inline" | "tooltipMessage" | "model" | "submitText" | "resetText" | "enterSubmit">;
|
1170
|
+
$attrs: {
|
1171
|
+
[x: string]: unknown;
|
1172
|
+
};
|
1173
|
+
$refs: {
|
1174
|
+
[x: string]: unknown;
|
1175
|
+
} & {
|
1176
|
+
formRef: ({
|
1177
|
+
$: ComponentInternalInstance;
|
1178
|
+
$data: {};
|
1179
|
+
$props: Partial<{
|
1180
|
+
readonly disabled: boolean;
|
1181
|
+
readonly inline: boolean;
|
1182
|
+
readonly labelWidth: EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
1183
|
+
readonly labelPosition: EpPropMergeType<StringConstructor, "top" | "left" | "right", unknown>;
|
1184
|
+
readonly inlineMessage: boolean;
|
1185
|
+
readonly showMessage: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
1186
|
+
readonly requireAsteriskPosition: EpPropMergeType<StringConstructor, "left" | "right", unknown>;
|
1187
|
+
readonly labelSuffix: string;
|
1188
|
+
readonly validateOnRuleChange: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
1189
|
+
readonly statusIcon: boolean;
|
1190
|
+
readonly hideRequiredAsterisk: boolean;
|
1191
|
+
readonly scrollToError: boolean;
|
1192
|
+
}> & Omit<{
|
1193
|
+
readonly disabled: boolean;
|
1194
|
+
readonly inline: boolean;
|
1195
|
+
readonly labelWidth: EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
1196
|
+
readonly labelPosition: EpPropMergeType<StringConstructor, "top" | "left" | "right", unknown>;
|
1197
|
+
readonly inlineMessage: boolean;
|
1198
|
+
readonly showMessage: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
1199
|
+
readonly requireAsteriskPosition: EpPropMergeType<StringConstructor, "left" | "right", unknown>;
|
1200
|
+
readonly labelSuffix: string;
|
1201
|
+
readonly statusIcon: boolean;
|
1202
|
+
readonly validateOnRuleChange: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
1203
|
+
readonly hideRequiredAsterisk: boolean;
|
1204
|
+
readonly scrollToError: boolean;
|
1205
|
+
readonly size?: EpPropMergeType<StringConstructor, "" | "large" | "default" | "small", unknown> | undefined;
|
1206
|
+
readonly rules?: Partial<Record<string, Arrayable<FormItemRule>>> | undefined;
|
1207
|
+
readonly model?: Record<string, any> | undefined;
|
1208
|
+
readonly scrollIntoViewOptions?: EpPropMergeType<readonly [ObjectConstructor, BooleanConstructor], unknown, unknown> | undefined;
|
1209
|
+
onValidate?: ((prop: FormItemProp, isValid: boolean, message: string) => any) | undefined | undefined;
|
1210
|
+
} & VNodeProps & AllowedComponentProps & ComponentCustomProps, "disabled" | "inline" | "labelWidth" | "labelPosition" | "inlineMessage" | "showMessage" | "requireAsteriskPosition" | "labelSuffix" | "statusIcon" | "validateOnRuleChange" | "hideRequiredAsterisk" | "scrollToError">;
|
1211
|
+
$attrs: {
|
1212
|
+
[x: string]: unknown;
|
1213
|
+
};
|
1214
|
+
$refs: {
|
1215
|
+
[x: string]: unknown;
|
1216
|
+
};
|
1217
|
+
$slots: Readonly<{
|
1218
|
+
[name: string]: Slot<any> | undefined;
|
1219
|
+
}>;
|
1220
|
+
$root: ComponentPublicInstance | null;
|
1221
|
+
$parent: ComponentPublicInstance | null;
|
1222
|
+
$host: Element | null;
|
1223
|
+
$emit: (event: "validate", prop: FormItemProp, isValid: boolean, message: string) => void;
|
1224
|
+
$el: any;
|
1225
|
+
$options: ComponentOptionsBase<Readonly< ExtractPropTypes<{
|
1226
|
+
readonly model: ObjectConstructor;
|
1227
|
+
readonly rules: {
|
1228
|
+
readonly type: PropType<Partial<Record<string, Arrayable<FormItemRule>>>>;
|
1229
|
+
readonly required: false;
|
1230
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
1231
|
+
__epPropKey: true;
|
1232
|
+
};
|
1233
|
+
readonly labelPosition: EpPropFinalized<StringConstructor, "top" | "left" | "right", unknown, "right", boolean>;
|
1234
|
+
readonly requireAsteriskPosition: EpPropFinalized<StringConstructor, "left" | "right", unknown, "left", boolean>;
|
1235
|
+
readonly labelWidth: EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, "", boolean>;
|
1236
|
+
readonly labelSuffix: EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
1237
|
+
readonly inline: BooleanConstructor;
|
1238
|
+
readonly inlineMessage: BooleanConstructor;
|
1239
|
+
readonly statusIcon: BooleanConstructor;
|
1240
|
+
readonly showMessage: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
1241
|
+
readonly validateOnRuleChange: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
1242
|
+
readonly hideRequiredAsterisk: BooleanConstructor;
|
1243
|
+
readonly scrollToError: BooleanConstructor;
|
1244
|
+
readonly scrollIntoViewOptions: {
|
1245
|
+
readonly type: PropType<EpPropMergeType<readonly [ObjectConstructor, BooleanConstructor], unknown, unknown>>;
|
1246
|
+
readonly required: false;
|
1247
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
1248
|
+
__epPropKey: true;
|
1249
|
+
};
|
1250
|
+
readonly size: {
|
1251
|
+
readonly type: PropType<EpPropMergeType<StringConstructor, "" | "small" | "default" | "large", unknown>>;
|
1252
|
+
readonly required: false;
|
1253
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
1254
|
+
__epPropKey: true;
|
1255
|
+
};
|
1256
|
+
readonly disabled: BooleanConstructor;
|
1257
|
+
}>> & {
|
1258
|
+
onValidate?: ((prop: FormItemProp, isValid: boolean, message: string) => any) | undefined;
|
1259
|
+
}, {
|
1260
|
+
validate: (callback?: FormValidateCallback) => FormValidationResult;
|
1261
|
+
validateField: (props?: Arrayable<FormItemProp>, callback?: FormValidateCallback) => FormValidationResult;
|
1262
|
+
resetFields: (props?: Arrayable<FormItemProp>) => void;
|
1263
|
+
clearValidate: (props?: Arrayable<FormItemProp>) => void;
|
1264
|
+
scrollToField: (prop: FormItemProp) => void;
|
1265
|
+
fields: FormItemContext[];
|
1266
|
+
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
1267
|
+
validate: (prop: FormItemProp, isValid: boolean, message: string) => void;
|
1268
|
+
}, string, {
|
1269
|
+
readonly disabled: boolean;
|
1270
|
+
readonly inline: boolean;
|
1271
|
+
readonly labelWidth: EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
1272
|
+
readonly labelPosition: EpPropMergeType<StringConstructor, "top" | "left" | "right", unknown>;
|
1273
|
+
readonly inlineMessage: boolean;
|
1274
|
+
readonly showMessage: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
1275
|
+
readonly requireAsteriskPosition: EpPropMergeType<StringConstructor, "left" | "right", unknown>;
|
1276
|
+
readonly labelSuffix: string;
|
1277
|
+
readonly validateOnRuleChange: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
1278
|
+
readonly statusIcon: boolean;
|
1279
|
+
readonly hideRequiredAsterisk: boolean;
|
1280
|
+
readonly scrollToError: boolean;
|
1281
|
+
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & {
|
1282
|
+
beforeCreate?: (() => void) | (() => void)[];
|
1283
|
+
created?: (() => void) | (() => void)[];
|
1284
|
+
beforeMount?: (() => void) | (() => void)[];
|
1285
|
+
mounted?: (() => void) | (() => void)[];
|
1286
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
1287
|
+
updated?: (() => void) | (() => void)[];
|
1288
|
+
activated?: (() => void) | (() => void)[];
|
1289
|
+
deactivated?: (() => void) | (() => void)[];
|
1290
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
1291
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
1292
|
+
destroyed?: (() => void) | (() => void)[];
|
1293
|
+
unmounted?: (() => void) | (() => void)[];
|
1294
|
+
renderTracked?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
|
1295
|
+
renderTriggered?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
|
1296
|
+
errorCaptured?: ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void)[];
|
1297
|
+
};
|
1298
|
+
$forceUpdate: () => void;
|
1299
|
+
$nextTick: nextTick;
|
1300
|
+
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, OnCleanup]) => any : (...args: [any, any, OnCleanup]) => any, options?: WatchOptions): WatchStopHandle;
|
1301
|
+
} & Readonly<{
|
1302
|
+
readonly disabled: boolean;
|
1303
|
+
readonly inline: boolean;
|
1304
|
+
readonly labelWidth: EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
1305
|
+
readonly labelPosition: EpPropMergeType<StringConstructor, "top" | "left" | "right", unknown>;
|
1306
|
+
readonly inlineMessage: boolean;
|
1307
|
+
readonly showMessage: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
1308
|
+
readonly requireAsteriskPosition: EpPropMergeType<StringConstructor, "left" | "right", unknown>;
|
1309
|
+
readonly labelSuffix: string;
|
1310
|
+
readonly validateOnRuleChange: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
1311
|
+
readonly statusIcon: boolean;
|
1312
|
+
readonly hideRequiredAsterisk: boolean;
|
1313
|
+
readonly scrollToError: boolean;
|
1314
|
+
}> & Omit<Readonly< ExtractPropTypes<{
|
1315
|
+
readonly model: ObjectConstructor;
|
1316
|
+
readonly rules: {
|
1317
|
+
readonly type: PropType<Partial<Record<string, Arrayable<FormItemRule>>>>;
|
1318
|
+
readonly required: false;
|
1319
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
1320
|
+
__epPropKey: true;
|
1321
|
+
};
|
1322
|
+
readonly labelPosition: EpPropFinalized<StringConstructor, "top" | "left" | "right", unknown, "right", boolean>;
|
1323
|
+
readonly requireAsteriskPosition: EpPropFinalized<StringConstructor, "left" | "right", unknown, "left", boolean>;
|
1324
|
+
readonly labelWidth: EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, "", boolean>;
|
1325
|
+
readonly labelSuffix: EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
1326
|
+
readonly inline: BooleanConstructor;
|
1327
|
+
readonly inlineMessage: BooleanConstructor;
|
1328
|
+
readonly statusIcon: BooleanConstructor;
|
1329
|
+
readonly showMessage: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
1330
|
+
readonly validateOnRuleChange: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
1331
|
+
readonly hideRequiredAsterisk: BooleanConstructor;
|
1332
|
+
readonly scrollToError: BooleanConstructor;
|
1333
|
+
readonly scrollIntoViewOptions: {
|
1334
|
+
readonly type: PropType<EpPropMergeType<readonly [ObjectConstructor, BooleanConstructor], unknown, unknown>>;
|
1335
|
+
readonly required: false;
|
1336
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
1337
|
+
__epPropKey: true;
|
1338
|
+
};
|
1339
|
+
readonly size: {
|
1340
|
+
readonly type: PropType<EpPropMergeType<StringConstructor, "" | "small" | "default" | "large", unknown>>;
|
1341
|
+
readonly required: false;
|
1342
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
1343
|
+
__epPropKey: true;
|
1344
|
+
};
|
1345
|
+
readonly disabled: BooleanConstructor;
|
1346
|
+
}>> & {
|
1347
|
+
onValidate?: ((prop: FormItemProp, isValid: boolean, message: string) => any) | undefined;
|
1348
|
+
}, "disabled" | "inline" | "clearValidate" | "validate" | "labelWidth" | "labelPosition" | "inlineMessage" | "showMessage" | "fields" | "requireAsteriskPosition" | "labelSuffix" | "statusIcon" | "validateOnRuleChange" | "hideRequiredAsterisk" | "scrollToError" | "validateField" | "resetFields" | "scrollToField"> & ShallowUnwrapRef<{
|
1349
|
+
validate: (callback?: FormValidateCallback) => FormValidationResult;
|
1350
|
+
validateField: (props?: Arrayable<FormItemProp>, callback?: FormValidateCallback) => FormValidationResult;
|
1351
|
+
resetFields: (props?: Arrayable<FormItemProp>) => void;
|
1352
|
+
clearValidate: (props?: Arrayable<FormItemProp>) => void;
|
1353
|
+
scrollToField: (prop: FormItemProp) => void;
|
1354
|
+
fields: FormItemContext[];
|
1355
|
+
}> & {} & ComponentCustomProperties & {} & {
|
1356
|
+
$slots: {
|
1357
|
+
default?(_: {}): any;
|
1358
|
+
};
|
1359
|
+
}) | null;
|
1360
|
+
};
|
1361
|
+
$slots: Readonly<{
|
1362
|
+
[name: string]: Slot<any> | undefined;
|
1363
|
+
}>;
|
1364
|
+
$root: ComponentPublicInstance | null;
|
1365
|
+
$parent: ComponentPublicInstance | null;
|
1366
|
+
$host: Element | null;
|
1367
|
+
$emit: ((event: "reset") => void) & ((event: "submit", model: Record<string, any>) => void) & ((event: "change", model: Record<string, any>) => void);
|
1368
|
+
$el: any;
|
1369
|
+
$options: ComponentOptionsBase<Readonly< ExtractPropTypes<{
|
1370
|
+
model: {
|
1371
|
+
type: PropType<Record<string, any>>;
|
1372
|
+
default(): any;
|
1373
|
+
};
|
1374
|
+
inline: {
|
1375
|
+
type: BooleanConstructor;
|
1376
|
+
};
|
1377
|
+
inlineColumns: {
|
1378
|
+
type: NumberConstructor;
|
1379
|
+
};
|
1380
|
+
footer: {
|
1381
|
+
type: BooleanConstructor;
|
1382
|
+
default: boolean;
|
1383
|
+
};
|
1384
|
+
submitText: {
|
1385
|
+
type: PropType<string | null>;
|
1386
|
+
default: string;
|
1387
|
+
};
|
1388
|
+
resetText: {
|
1389
|
+
type: PropType<string | null>;
|
1390
|
+
default: string;
|
1391
|
+
};
|
1392
|
+
submitMethod: {
|
1393
|
+
type: PropType<(model: FormModel) => Promise<any>>;
|
1394
|
+
};
|
1395
|
+
tooltipMessage: {
|
1396
|
+
type: PropType<boolean | Partial< ElTooltipProps>>;
|
1397
|
+
default: undefined;
|
1398
|
+
};
|
1399
|
+
enterSubmit: {
|
1400
|
+
type: BooleanConstructor;
|
1401
|
+
default: boolean;
|
1402
|
+
};
|
1403
|
+
}>> & Readonly<{
|
1404
|
+
onReset?: (() => any) | undefined;
|
1405
|
+
onSubmit?: ((model: Record<string, any>) => any) | undefined;
|
1406
|
+
onChange?: ((model: Record<string, any>) => any) | undefined;
|
1407
|
+
}>, {
|
1408
|
+
formRef: Ref<any, any>;
|
1409
|
+
model: FormModel;
|
1410
|
+
submit: () => Promise<void>;
|
1411
|
+
reset: (fields?: string[] | string) => void;
|
1412
|
+
validate: () => Promise<any>;
|
1413
|
+
clearValidate: () => void;
|
1414
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
1415
|
+
reset: () => any;
|
1416
|
+
submit: (model: Record<string, any>) => any;
|
1417
|
+
change: (model: Record<string, any>) => any;
|
1418
|
+
}, string, {
|
1419
|
+
footer: boolean;
|
1420
|
+
inline: boolean;
|
1421
|
+
tooltipMessage: boolean | Partial< ElTooltipProps>;
|
1422
|
+
model: Record<string, any>;
|
1423
|
+
submitText: string | null;
|
1424
|
+
resetText: string | null;
|
1425
|
+
enterSubmit: boolean;
|
1426
|
+
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & {
|
1427
|
+
beforeCreate?: (() => void) | (() => void)[];
|
1428
|
+
created?: (() => void) | (() => void)[];
|
1429
|
+
beforeMount?: (() => void) | (() => void)[];
|
1430
|
+
mounted?: (() => void) | (() => void)[];
|
1431
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
1432
|
+
updated?: (() => void) | (() => void)[];
|
1433
|
+
activated?: (() => void) | (() => void)[];
|
1434
|
+
deactivated?: (() => void) | (() => void)[];
|
1435
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
1436
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
1437
|
+
destroyed?: (() => void) | (() => void)[];
|
1438
|
+
unmounted?: (() => void) | (() => void)[];
|
1439
|
+
renderTracked?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
|
1440
|
+
renderTriggered?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
|
1441
|
+
errorCaptured?: ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void)[];
|
1442
|
+
};
|
1443
|
+
$forceUpdate: () => void;
|
1444
|
+
$nextTick: nextTick;
|
1445
|
+
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, OnCleanup]) => any : (...args: [any, any, OnCleanup]) => any, options?: WatchOptions): WatchStopHandle;
|
1446
|
+
} & Readonly<{
|
1447
|
+
footer: boolean;
|
1448
|
+
inline: boolean;
|
1449
|
+
tooltipMessage: boolean | Partial< ElTooltipProps>;
|
1450
|
+
model: Record<string, any>;
|
1451
|
+
submitText: string | null;
|
1452
|
+
resetText: string | null;
|
1453
|
+
enterSubmit: boolean;
|
1454
|
+
}> & Omit<Readonly< ExtractPropTypes<{
|
1455
|
+
model: {
|
1456
|
+
type: PropType<Record<string, any>>;
|
1457
|
+
default(): any;
|
1458
|
+
};
|
1459
|
+
inline: {
|
1460
|
+
type: BooleanConstructor;
|
1461
|
+
};
|
1462
|
+
inlineColumns: {
|
1463
|
+
type: NumberConstructor;
|
1464
|
+
};
|
1465
|
+
footer: {
|
1466
|
+
type: BooleanConstructor;
|
1467
|
+
default: boolean;
|
1468
|
+
};
|
1469
|
+
submitText: {
|
1470
|
+
type: PropType<string | null>;
|
1471
|
+
default: string;
|
1472
|
+
};
|
1473
|
+
resetText: {
|
1474
|
+
type: PropType<string | null>;
|
1475
|
+
default: string;
|
1476
|
+
};
|
1477
|
+
submitMethod: {
|
1478
|
+
type: PropType<(model: FormModel) => Promise<any>>;
|
1479
|
+
};
|
1480
|
+
tooltipMessage: {
|
1481
|
+
type: PropType<boolean | Partial< ElTooltipProps>>;
|
1482
|
+
default: undefined;
|
1483
|
+
};
|
1484
|
+
enterSubmit: {
|
1485
|
+
type: BooleanConstructor;
|
1486
|
+
default: boolean;
|
1487
|
+
};
|
1488
|
+
}>> & Readonly<{
|
1489
|
+
onReset?: (() => any) | undefined;
|
1490
|
+
onSubmit?: ((model: Record<string, any>) => any) | undefined;
|
1491
|
+
onChange?: ((model: Record<string, any>) => any) | undefined;
|
1492
|
+
}>, "reset" | "submit" | "clearValidate" | "validate" | "formRef" | ("footer" | "inline" | "tooltipMessage" | "model" | "submitText" | "resetText" | "enterSubmit")> & ShallowUnwrapRef<{
|
1493
|
+
formRef: Ref<any, any>;
|
1494
|
+
model: FormModel;
|
1495
|
+
submit: () => Promise<void>;
|
1496
|
+
reset: (fields?: string[] | string) => void;
|
1497
|
+
validate: () => Promise<any>;
|
1498
|
+
clearValidate: () => void;
|
1499
|
+
}> & {} & ComponentCustomProperties & {} & {
|
1500
|
+
$slots: {
|
1501
|
+
default?(_: {}): any;
|
1502
|
+
footer?(_: {}): any;
|
1503
|
+
action?(_: {}): any;
|
1504
|
+
};
|
1505
|
+
}) | null;
|
1506
|
+
}, any>;
|
588
1507
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
589
1508
|
export default _default;
|
590
1509
|
type __VLS_WithTemplateSlots<T, S> = T & {
|