@vunk/form 0.0.1-alpha.9 → 1.1.1
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/component.d.ts +1 -1
- package/components/button/index.d.ts +4 -0
- package/components/button/index.js +126 -0
- package/components/button/src/ctx.d.ts +92 -0
- package/components/button/src/ctx.js +39 -0
- package/components/button/src/index.vue.d.ts +245 -0
- package/components/button/src/types.d.ts +13 -0
- package/components/cascader/index.d.ts +4 -0
- package/components/cascader/index.js +114 -0
- package/components/cascader/src/ctx.d.ts +129 -0
- package/components/cascader/src/ctx.js +38 -0
- package/components/cascader/src/index.vue.d.ts +311 -0
- package/components/cascader/src/types.d.ts +7 -0
- package/components/checkbox/index.css +38 -0
- package/components/checkbox/index.d.ts +4 -0
- package/components/checkbox/index.js +127 -0
- package/components/checkbox/src/ctx.d.ts +82 -0
- package/components/checkbox/src/ctx.js +43 -0
- package/components/checkbox/src/index.vue.d.ts +213 -0
- package/components/checkbox/src/types.d.ts +8 -0
- package/components/color-picker/index.d.ts +4 -0
- package/components/color-picker/index.js +77 -0
- package/components/color-picker/src/ctx.d.ts +72 -0
- package/components/color-picker/src/ctx.js +23 -0
- package/components/color-picker/src/index.vue.d.ts +193 -0
- package/components/color-picker/src/types.d.ts +7 -0
- package/components/date-picker/index.js +26 -15
- package/components/date-picker/src/ctx.d.ts +64 -57
- package/components/date-picker/src/ctx.js +1 -1
- package/components/date-picker/src/index.vue.d.ts +176 -146
- package/components/date-picker/src/types.d.ts +14 -8
- package/components/form/index.d.ts +1 -0
- package/components/form/index.js +44 -19
- package/components/form/src/ctx.d.ts +147 -97
- package/components/form/src/ctx.js +5 -2
- package/components/form/src/index.vue.d.ts +424 -287
- package/components/form/src/types.d.ts +2 -0
- package/components/form/src/types.js +1 -0
- package/components/form-item/index.css +4 -0
- package/components/form-item/index.js +34 -13
- package/components/form-item/src/ctx.d.ts +15 -7
- package/components/form-item/src/ctx.js +8 -0
- package/components/form-item/src/index.vue.d.ts +44 -14
- package/components/form-item-renderer/index.js +34 -30
- package/components/form-item-renderer/src/ctx.d.ts +3 -3
- package/components/form-item-renderer/src/index.vue.d.ts +9 -9
- package/components/form-item-renderer/src/types.d.ts +2 -0
- package/components/form-item-renderer-template/index.js +13 -6
- package/components/form-item-renderer-template/src/index.vue.d.ts +1 -1
- package/components/geoinput/index.d.ts +4 -0
- package/components/geoinput/index.js +94 -0
- package/components/geoinput/src/ctx.d.ts +218 -0
- package/components/geoinput/src/ctx.js +39 -0
- package/components/geoinput/src/index.vue.d.ts +608 -0
- package/components/geoinput/src/types.d.ts +12 -0
- package/components/geoinput/src/types.js +1 -0
- package/components/geoinput-read/index.css +9 -0
- package/components/geoinput-read/index.d.ts +5 -0
- package/components/geoinput-read/index.js +355 -0
- package/components/geoinput-read/src/append.vue.d.ts +6 -0
- package/components/geoinput-read/src/core.vue.d.ts +457 -0
- package/components/geoinput-read/src/ctx.d.ts +205 -0
- package/components/geoinput-read/src/ctx.js +62 -0
- package/components/geoinput-read/src/index.vue.d.ts +486 -0
- package/components/geoinput-read/src/types.d.ts +3 -0
- package/components/geoinput-read/src/types.js +1 -0
- package/components/geoinput-update/index.css +44 -0
- package/components/geoinput-update/index.d.ts +5 -0
- package/components/geoinput-update/index.js +982 -0
- package/components/geoinput-update/src/append.vue.d.ts +20 -0
- package/components/geoinput-update/src/ctx.d.ts +211 -0
- package/components/geoinput-update/src/ctx.js +85 -0
- package/components/geoinput-update/src/index.vue.d.ts +483 -0
- package/components/geoinput-update/src/types.d.ts +6 -0
- package/components/geoinput-update/src/types.js +1 -0
- package/components/input/index.js +29 -15
- package/components/input/src/ctx.d.ts +88 -49
- package/components/input/src/ctx.js +5 -1
- package/components/input/src/index.vue.d.ts +219 -129
- package/components/input/src/types.d.ts +7 -1
- package/components/input-link/index.css +5 -0
- package/components/input-link/index.d.ts +4 -0
- package/components/input-link/index.js +181 -0
- package/components/input-link/src/ctx.d.ts +143 -0
- package/components/input-link/src/ctx.js +46 -0
- package/components/input-link/src/index.vue.d.ts +373 -0
- package/components/input-link/src/types.d.ts +7 -0
- package/components/input-link/src/types.js +1 -0
- package/components/input-number/index.css +17 -0
- package/components/input-number/index.js +46 -14
- package/components/input-number/src/ctx.d.ts +22 -10
- package/components/input-number/src/ctx.js +13 -1
- package/components/input-number/src/index.vue.d.ts +92 -32
- package/components/input-number/src/types.d.ts +7 -0
- package/components/radio/index.css +29 -0
- package/components/radio/index.d.ts +4 -0
- package/components/radio/index.js +123 -0
- package/components/radio/src/ctx.d.ts +77 -0
- package/components/radio/src/ctx.js +39 -0
- package/components/radio/src/index.vue.d.ts +204 -0
- package/components/radio/src/types.d.ts +8 -0
- package/components/radio/src/types.js +1 -0
- package/components/select/index.css +11 -0
- package/components/select/index.js +75 -49
- package/components/select/src/ctx.d.ts +37 -25
- package/components/select/src/ctx.js +4 -0
- package/components/select/src/index.vue.d.ts +181 -104
- package/components/select/src/types.d.ts +7 -1
- package/components/switch/index.css +11 -0
- package/components/switch/index.js +40 -29
- package/components/switch/src/ctx.d.ts +41 -13
- package/components/switch/src/ctx.js +3 -4
- package/components/switch/src/index.vue.d.ts +123 -49
- package/components/switch/src/types.d.ts +7 -0
- package/components/templates-default/index.d.ts +4 -0
- package/components/templates-default/index.js +244 -0
- package/components/{form-item-renderer-template-default → templates-default}/src/index.vue.d.ts +7 -7
- package/components/templates-default/src/types.d.ts +31 -0
- package/components/templates-default/src/types.js +1 -0
- package/components/templates-element-plus/index.d.ts +4 -0
- package/components/templates-element-plus/index.js +80 -0
- package/components/{form-item-renderer-template-layout → templates-element-plus}/src/ctx.d.ts +3 -2
- package/components/{form-item-renderer-template-layout → templates-element-plus}/src/ctx.js +1 -1
- package/components/templates-element-plus/src/index.vue.d.ts +19 -0
- package/components/templates-element-plus/src/types.d.ts +13 -0
- package/components/templates-element-plus/src/types.js +1 -0
- package/components/templates-layout/index.css +5 -0
- package/components/templates-layout/index.d.ts +4 -0
- package/components/templates-layout/index.js +108 -0
- package/components/templates-layout/src/ctx.d.ts +9 -0
- package/components/templates-layout/src/ctx.js +9 -0
- package/components/templates-layout/src/index.vue.d.ts +19 -0
- package/{shared/types/layout-source/index.d.ts → components/templates-layout/src/types.d.ts} +5 -4
- package/components/templates-layout/src/types.js +1 -0
- package/components/templates-mapbox/index.d.ts +4 -0
- package/components/templates-mapbox/index.js +64 -0
- package/components/templates-mapbox/src/ctx.d.ts +11 -0
- package/components/templates-mapbox/src/ctx.js +11 -0
- package/components/templates-mapbox/src/index.vue.d.ts +20 -0
- package/components/templates-mapbox/src/types.d.ts +3 -0
- package/components/templates-mapbox/src/types.js +1 -0
- package/components/upload/index.css +33 -0
- package/components/upload/index.d.ts +5 -0
- package/components/upload/index.js +606 -0
- package/components/upload/src/ctx.d.ts +168 -0
- package/components/upload/src/ctx.js +45 -0
- package/components/upload/src/file.vue.d.ts +96 -0
- package/components/upload/src/index.vue.d.ts +416 -0
- package/components/upload/src/types.d.ts +7 -0
- package/components/upload/src/types.js +1 -0
- package/composables/index.d.ts +1 -0
- package/composables/index.js +28 -6
- package/composables/useForm.d.ts +9 -0
- package/composables/useSourceManager.d.ts +2 -0
- package/index.css +211 -2
- package/index.d.ts +14 -1
- package/index.esm.js +16 -5
- package/package.json +4 -1
- package/shared/element-plus/ctx.d.ts +86 -13
- package/shared/element-plus/index.js +18156 -35
- package/shared/element-plus/instances.d.ts +97 -26
- package/shared/helper/index.d.ts +1 -0
- package/shared/infer-prop/index.d.ts +17 -0
- package/shared/infer-prop/index.js +34 -0
- package/shared/progress-it/index.d.ts +16 -0
- package/shared/progress-it/index.js +57 -0
- package/shared/types/form/checkbox.d.ts +13 -0
- package/shared/types/form/index.d.ts +2 -0
- package/shared/types/form/index.js +1 -0
- package/shared/types/form/radio.d.ts +8 -0
- package/shared/types/index.d.ts +1 -2
- package/shared/types/source/index.d.ts +13 -0
- package/shared/types/source/index.js +1 -0
- package/components/form-item-renderer-template-default/index.d.ts +0 -4
- package/components/form-item-renderer-template-default/index.js +0 -129
- package/components/form-item-renderer-template-default/src/types.d.ts +0 -1
- package/components/form-item-renderer-template-layout/index.css +0 -7
- package/components/form-item-renderer-template-layout/index.d.ts +0 -4
- package/components/form-item-renderer-template-layout/index.js +0 -91
- package/components/form-item-renderer-template-layout/src/index.vue.d.ts +0 -7
- package/components/form-item-renderer-template-layout/src/types.d.ts +0 -1
- package/shared/types/renderer-source/compoent.d.ts +0 -5
- package/shared/types/renderer-source/date-picker.d.ts +0 -7
- package/shared/types/renderer-source/index.d.ts +0 -13
- package/shared/types/renderer-source/input-number.d.ts +0 -7
- package/shared/types/renderer-source/input.d.ts +0 -7
- package/shared/types/renderer-source/select.d.ts +0 -7
- package/shared/types/renderer-source/switch.d.ts +0 -7
- /package/components/{form-item-renderer-template-default → button}/src/types.js +0 -0
- /package/components/{form-item-renderer-template-layout → cascader}/src/types.js +0 -0
- /package/{shared/types/layout-source/index.js → components/checkbox/src/types.js} +0 -0
- /package/{shared/types/renderer-source/index.js → components/color-picker/src/types.js} +0 -0
- /package/components/{form-item-renderer-template-default → templates-default}/src/ctx.d.ts +0 -0
- /package/components/{form-item-renderer-template-default → templates-default}/src/ctx.js +0 -0
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { ElForm } from 'element-plus';
|
|
1
2
|
declare const _default: import("vue").DefineComponent<{
|
|
2
3
|
data: {
|
|
3
4
|
type: import("vue").PropType<Record<string, any>>;
|
|
@@ -5,7 +6,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
5
6
|
};
|
|
6
7
|
formItems: {
|
|
7
8
|
type: import("vue").PropType<any[]>;
|
|
8
|
-
default: () =>
|
|
9
|
+
default: () => never[];
|
|
10
|
+
};
|
|
11
|
+
readonly: {
|
|
12
|
+
type: BooleanConstructor;
|
|
9
13
|
};
|
|
10
14
|
elRef: {
|
|
11
15
|
type: import("vue").PropType<(arg: {
|
|
@@ -13,7 +17,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
13
17
|
$data: {};
|
|
14
18
|
$props: Partial<{
|
|
15
19
|
readonly disabled: boolean;
|
|
16
|
-
readonly labelPosition: import("element-plus/es/utils").EpPropMergeType<StringConstructor, "
|
|
20
|
+
readonly labelPosition: import("element-plus/es/utils").EpPropMergeType<StringConstructor, "top" | "left" | "right", unknown>;
|
|
21
|
+
readonly requireAsteriskPosition: import("element-plus/es/utils").EpPropMergeType<StringConstructor, "left" | "right", unknown>;
|
|
17
22
|
readonly labelWidth: import("element-plus/es/utils").EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
|
18
23
|
readonly labelSuffix: string;
|
|
19
24
|
readonly showMessage: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
@@ -28,29 +33,36 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
28
33
|
readonly rules: {
|
|
29
34
|
readonly type: import("vue").PropType<Partial<Record<string, import("element-plus/es/utils").Arrayable<import("element-plus").FormItemRule>>>>;
|
|
30
35
|
readonly required: false;
|
|
31
|
-
readonly validator: (val: unknown) => boolean;
|
|
36
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
32
37
|
__epPropKey: true;
|
|
33
38
|
};
|
|
34
|
-
readonly labelPosition: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "
|
|
39
|
+
readonly labelPosition: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "top" | "left" | "right", unknown, "right", boolean>;
|
|
40
|
+
readonly requireAsteriskPosition: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "left" | "right", unknown, "left", boolean>;
|
|
35
41
|
readonly labelWidth: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, "", boolean>;
|
|
36
42
|
readonly labelSuffix: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
37
43
|
readonly inline: BooleanConstructor;
|
|
38
44
|
readonly inlineMessage: BooleanConstructor;
|
|
39
45
|
readonly statusIcon: BooleanConstructor;
|
|
40
46
|
readonly showMessage: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
47
|
+
readonly validateOnRuleChange: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
48
|
+
readonly hideRequiredAsterisk: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
49
|
+
readonly scrollToError: BooleanConstructor;
|
|
50
|
+
readonly scrollIntoViewOptions: {
|
|
51
|
+
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<readonly [ObjectConstructor, BooleanConstructor], unknown, unknown>>;
|
|
52
|
+
readonly required: false;
|
|
53
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
54
|
+
__epPropKey: true;
|
|
55
|
+
};
|
|
41
56
|
readonly size: {
|
|
42
57
|
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "default" | "small" | "large", unknown>>;
|
|
43
58
|
readonly required: false;
|
|
44
|
-
readonly validator: (val: unknown) => boolean;
|
|
59
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
45
60
|
__epPropKey: true;
|
|
46
61
|
};
|
|
47
62
|
readonly disabled: BooleanConstructor;
|
|
48
|
-
readonly validateOnRuleChange: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
49
|
-
readonly hideRequiredAsterisk: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
50
|
-
readonly scrollToError: BooleanConstructor;
|
|
51
63
|
}>> & {
|
|
52
|
-
onValidate?: (prop: import("element-plus").FormItemProp, isValid: boolean, message: string) => any;
|
|
53
|
-
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "labelWidth" | "inlineMessage" | "showMessage" | "disabled" | "labelPosition" | "
|
|
64
|
+
onValidate?: ((prop: import("element-plus").FormItemProp, isValid: boolean, message: string) => any) | undefined;
|
|
65
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "labelWidth" | "inlineMessage" | "showMessage" | "inline" | "disabled" | "labelPosition" | "requireAsteriskPosition" | "labelSuffix" | "statusIcon" | "validateOnRuleChange" | "hideRequiredAsterisk" | "scrollToError">;
|
|
54
66
|
$attrs: {
|
|
55
67
|
[x: string]: unknown;
|
|
56
68
|
};
|
|
@@ -58,10 +70,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
58
70
|
[x: string]: unknown;
|
|
59
71
|
};
|
|
60
72
|
$slots: Readonly<{
|
|
61
|
-
[name: string]: import("vue").Slot;
|
|
73
|
+
[name: string]: import("vue").Slot | undefined;
|
|
62
74
|
}>;
|
|
63
|
-
$root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}
|
|
64
|
-
$parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}
|
|
75
|
+
$root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null;
|
|
76
|
+
$parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null;
|
|
65
77
|
$emit: (event: "validate", prop: import("element-plus").FormItemProp, isValid: boolean, message: string) => void;
|
|
66
78
|
$el: any;
|
|
67
79
|
$options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
|
@@ -69,28 +81,35 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
69
81
|
readonly rules: {
|
|
70
82
|
readonly type: import("vue").PropType<Partial<Record<string, import("element-plus/es/utils").Arrayable<import("element-plus").FormItemRule>>>>;
|
|
71
83
|
readonly required: false;
|
|
72
|
-
readonly validator: (val: unknown) => boolean;
|
|
84
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
73
85
|
__epPropKey: true;
|
|
74
86
|
};
|
|
75
|
-
readonly labelPosition: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "
|
|
87
|
+
readonly labelPosition: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "top" | "left" | "right", unknown, "right", boolean>;
|
|
88
|
+
readonly requireAsteriskPosition: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "left" | "right", unknown, "left", boolean>;
|
|
76
89
|
readonly labelWidth: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, "", boolean>;
|
|
77
90
|
readonly labelSuffix: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
78
91
|
readonly inline: BooleanConstructor;
|
|
79
92
|
readonly inlineMessage: BooleanConstructor;
|
|
80
93
|
readonly statusIcon: BooleanConstructor;
|
|
81
94
|
readonly showMessage: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
95
|
+
readonly validateOnRuleChange: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
96
|
+
readonly hideRequiredAsterisk: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
97
|
+
readonly scrollToError: BooleanConstructor;
|
|
98
|
+
readonly scrollIntoViewOptions: {
|
|
99
|
+
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<readonly [ObjectConstructor, BooleanConstructor], unknown, unknown>>;
|
|
100
|
+
readonly required: false;
|
|
101
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
102
|
+
__epPropKey: true;
|
|
103
|
+
};
|
|
82
104
|
readonly size: {
|
|
83
105
|
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "default" | "small" | "large", unknown>>;
|
|
84
106
|
readonly required: false;
|
|
85
|
-
readonly validator: (val: unknown) => boolean;
|
|
107
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
86
108
|
__epPropKey: true;
|
|
87
109
|
};
|
|
88
110
|
readonly disabled: BooleanConstructor;
|
|
89
|
-
readonly validateOnRuleChange: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
90
|
-
readonly hideRequiredAsterisk: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
91
|
-
readonly scrollToError: BooleanConstructor;
|
|
92
111
|
}>> & {
|
|
93
|
-
onValidate?: (prop: import("element-plus").FormItemProp, isValid: boolean, message: string) => any;
|
|
112
|
+
onValidate?: ((prop: import("element-plus").FormItemProp, isValid: boolean, message: string) => any) | undefined;
|
|
94
113
|
}, {
|
|
95
114
|
COMPONENT_NAME: string;
|
|
96
115
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
@@ -98,43 +117,50 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
98
117
|
readonly rules: {
|
|
99
118
|
readonly type: import("vue").PropType<Partial<Record<string, import("element-plus/es/utils").Arrayable<import("element-plus").FormItemRule>>>>;
|
|
100
119
|
readonly required: false;
|
|
101
|
-
readonly validator: (val: unknown) => boolean;
|
|
120
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
102
121
|
__epPropKey: true;
|
|
103
122
|
};
|
|
104
|
-
readonly labelPosition: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "
|
|
123
|
+
readonly labelPosition: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "top" | "left" | "right", unknown, "right", boolean>;
|
|
124
|
+
readonly requireAsteriskPosition: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "left" | "right", unknown, "left", boolean>;
|
|
105
125
|
readonly labelWidth: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, "", boolean>;
|
|
106
126
|
readonly labelSuffix: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
107
127
|
readonly inline: BooleanConstructor;
|
|
108
128
|
readonly inlineMessage: BooleanConstructor;
|
|
109
129
|
readonly statusIcon: BooleanConstructor;
|
|
110
130
|
readonly showMessage: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
131
|
+
readonly validateOnRuleChange: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
132
|
+
readonly hideRequiredAsterisk: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
133
|
+
readonly scrollToError: BooleanConstructor;
|
|
134
|
+
readonly scrollIntoViewOptions: {
|
|
135
|
+
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<readonly [ObjectConstructor, BooleanConstructor], unknown, unknown>>;
|
|
136
|
+
readonly required: false;
|
|
137
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
138
|
+
__epPropKey: true;
|
|
139
|
+
};
|
|
111
140
|
readonly size: {
|
|
112
141
|
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "default" | "small" | "large", unknown>>;
|
|
113
142
|
readonly required: false;
|
|
114
|
-
readonly validator: (val: unknown) => boolean;
|
|
143
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
115
144
|
__epPropKey: true;
|
|
116
145
|
};
|
|
117
146
|
readonly disabled: BooleanConstructor;
|
|
118
|
-
readonly validateOnRuleChange: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
119
|
-
readonly hideRequiredAsterisk: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
120
|
-
readonly scrollToError: BooleanConstructor;
|
|
121
147
|
}>> & {
|
|
122
|
-
onValidate?: (prop: import("element-plus").FormItemProp, isValid: boolean, message: string) => any;
|
|
148
|
+
onValidate?: ((prop: import("element-plus").FormItemProp, isValid: boolean, message: string) => any) | undefined;
|
|
123
149
|
}>>;
|
|
124
150
|
emit: (event: "validate", prop: import("element-plus").FormItemProp, isValid: boolean, message: string) => void;
|
|
125
151
|
fields: import("element-plus").FormItemContext[];
|
|
126
152
|
formSize: import("vue").ComputedRef<"" | "default" | "small" | "large">;
|
|
127
153
|
ns: {
|
|
128
154
|
namespace: import("vue").ComputedRef<string>;
|
|
129
|
-
b: (blockSuffix?: string) => string;
|
|
130
|
-
e: (element?: string) => string;
|
|
131
|
-
m: (modifier?: string) => string;
|
|
132
|
-
be: (blockSuffix?: string, element?: string) => string;
|
|
133
|
-
em: (element?: string, modifier?: string) => string;
|
|
134
|
-
bm: (blockSuffix?: string, modifier?: string) => string;
|
|
135
|
-
bem: (blockSuffix?: string, element?: string, modifier?: string) => string;
|
|
155
|
+
b: (blockSuffix?: string | undefined) => string;
|
|
156
|
+
e: (element?: string | undefined) => string;
|
|
157
|
+
m: (modifier?: string | undefined) => string;
|
|
158
|
+
be: (blockSuffix?: string | undefined, element?: string | undefined) => string;
|
|
159
|
+
em: (element?: string | undefined, modifier?: string | undefined) => string;
|
|
160
|
+
bm: (blockSuffix?: string | undefined, modifier?: string | undefined) => string;
|
|
161
|
+
bem: (blockSuffix?: string | undefined, element?: string | undefined, modifier?: string | undefined) => string;
|
|
136
162
|
is: {
|
|
137
|
-
(name: string, state: boolean): string;
|
|
163
|
+
(name: string, state: boolean | undefined): string;
|
|
138
164
|
(name: string): string;
|
|
139
165
|
};
|
|
140
166
|
cssVar: (object: Record<string, string>) => Record<string, string>;
|
|
@@ -143,23 +169,24 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
143
169
|
cssVarBlockName: (name: string) => string;
|
|
144
170
|
};
|
|
145
171
|
formClasses: import("vue").ComputedRef<(string | {
|
|
146
|
-
[x: string]: boolean | import("element-plus/es/utils").EpPropMergeType<StringConstructor, "
|
|
172
|
+
[x: string]: boolean | import("element-plus/es/utils").EpPropMergeType<StringConstructor, "top" | "left" | "right", unknown>;
|
|
147
173
|
})[]>;
|
|
148
174
|
addField: (field: import("element-plus").FormItemContext) => void;
|
|
149
175
|
removeField: (field: import("element-plus").FormItemContext) => void;
|
|
150
|
-
resetFields: (props?: import("element-plus/es/utils").Arrayable<import("element-plus").FormItemProp>) => void;
|
|
151
|
-
clearValidate: (props?: import("element-plus/es/utils").Arrayable<import("element-plus").FormItemProp>) => void;
|
|
176
|
+
resetFields: (props?: import("element-plus/es/utils").Arrayable<import("element-plus").FormItemProp> | undefined) => void;
|
|
177
|
+
clearValidate: (props?: import("element-plus/es/utils").Arrayable<import("element-plus").FormItemProp> | undefined) => void;
|
|
152
178
|
isValidatable: import("vue").ComputedRef<boolean>;
|
|
153
179
|
obtainValidateFields: (props: import("element-plus/es/utils").Arrayable<import("element-plus").FormItemProp>) => import("element-plus").FormItemContext[];
|
|
154
|
-
validate: (callback?: import("element-plus").FormValidateCallback) => import("element-plus").FormValidationResult;
|
|
155
|
-
doValidateField: (props?: import("element-plus/es/utils").Arrayable<import("element-plus").FormItemProp>) => Promise<boolean>;
|
|
156
|
-
validateField: (props?: import("element-plus/es/utils").Arrayable<import("element-plus").FormItemProp
|
|
180
|
+
validate: (callback?: import("element-plus").FormValidateCallback | undefined) => import("element-plus").FormValidationResult;
|
|
181
|
+
doValidateField: (props?: import("element-plus/es/utils").Arrayable<import("element-plus").FormItemProp> | undefined) => Promise<boolean>;
|
|
182
|
+
validateField: (props?: import("element-plus/es/utils").Arrayable<import("element-plus").FormItemProp> | undefined, callback?: import("element-plus").FormValidateCallback | undefined) => import("element-plus").FormValidationResult;
|
|
157
183
|
scrollToField: (prop: import("element-plus").FormItemProp) => void;
|
|
158
184
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
159
185
|
validate: (prop: import("element-plus").FormItemProp, isValid: boolean, message: string) => boolean;
|
|
160
186
|
}, string, {
|
|
161
187
|
readonly disabled: boolean;
|
|
162
|
-
readonly labelPosition: import("element-plus/es/utils").EpPropMergeType<StringConstructor, "
|
|
188
|
+
readonly labelPosition: import("element-plus/es/utils").EpPropMergeType<StringConstructor, "top" | "left" | "right", unknown>;
|
|
189
|
+
readonly requireAsteriskPosition: import("element-plus/es/utils").EpPropMergeType<StringConstructor, "left" | "right", unknown>;
|
|
163
190
|
readonly labelWidth: import("element-plus/es/utils").EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
|
164
191
|
readonly labelSuffix: string;
|
|
165
192
|
readonly showMessage: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
@@ -169,53 +196,60 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
169
196
|
readonly inlineMessage: boolean;
|
|
170
197
|
readonly statusIcon: boolean;
|
|
171
198
|
readonly scrollToError: boolean;
|
|
172
|
-
}> & {
|
|
173
|
-
beforeCreate?: (() => void) | (() => void)[];
|
|
174
|
-
created?: (() => void) | (() => void)[];
|
|
175
|
-
beforeMount?: (() => void) | (() => void)[];
|
|
176
|
-
mounted?: (() => void) | (() => void)[];
|
|
177
|
-
beforeUpdate?: (() => void) | (() => void)[];
|
|
178
|
-
updated?: (() => void) | (() => void)[];
|
|
179
|
-
activated?: (() => void) | (() => void)[];
|
|
180
|
-
deactivated?: (() => void) | (() => void)[];
|
|
181
|
-
beforeDestroy?: (() => void) | (() => void)[];
|
|
182
|
-
beforeUnmount?: (() => void) | (() => void)[];
|
|
183
|
-
destroyed?: (() => void) | (() => void)[];
|
|
184
|
-
unmounted?: (() => void) | (() => void)[];
|
|
185
|
-
renderTracked?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
|
|
186
|
-
renderTriggered?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
|
|
187
|
-
errorCaptured?: ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}
|
|
199
|
+
}, {}, string> & {
|
|
200
|
+
beforeCreate?: ((() => void) | (() => void)[]) | undefined;
|
|
201
|
+
created?: ((() => void) | (() => void)[]) | undefined;
|
|
202
|
+
beforeMount?: ((() => void) | (() => void)[]) | undefined;
|
|
203
|
+
mounted?: ((() => void) | (() => void)[]) | undefined;
|
|
204
|
+
beforeUpdate?: ((() => void) | (() => void)[]) | undefined;
|
|
205
|
+
updated?: ((() => void) | (() => void)[]) | undefined;
|
|
206
|
+
activated?: ((() => void) | (() => void)[]) | undefined;
|
|
207
|
+
deactivated?: ((() => void) | (() => void)[]) | undefined;
|
|
208
|
+
beforeDestroy?: ((() => void) | (() => void)[]) | undefined;
|
|
209
|
+
beforeUnmount?: ((() => void) | (() => void)[]) | undefined;
|
|
210
|
+
destroyed?: ((() => void) | (() => void)[]) | undefined;
|
|
211
|
+
unmounted?: ((() => void) | (() => void)[]) | undefined;
|
|
212
|
+
renderTracked?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
|
|
213
|
+
renderTriggered?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
|
|
214
|
+
errorCaptured?: (((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null, info: string) => boolean | void)[]) | undefined;
|
|
188
215
|
};
|
|
189
216
|
$forceUpdate: () => void;
|
|
190
217
|
$nextTick: typeof import("vue").nextTick;
|
|
191
|
-
$watch
|
|
218
|
+
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (args_0: R, args_1: R) => any : (...args: any) => any, options?: import("vue").WatchOptions<boolean> | undefined): import("vue").WatchStopHandle;
|
|
192
219
|
} & Readonly<import("vue").ExtractPropTypes<{
|
|
193
220
|
readonly model: ObjectConstructor;
|
|
194
221
|
readonly rules: {
|
|
195
222
|
readonly type: import("vue").PropType<Partial<Record<string, import("element-plus/es/utils").Arrayable<import("element-plus").FormItemRule>>>>;
|
|
196
223
|
readonly required: false;
|
|
197
|
-
readonly validator: (val: unknown) => boolean;
|
|
224
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
198
225
|
__epPropKey: true;
|
|
199
226
|
};
|
|
200
|
-
readonly labelPosition: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "
|
|
227
|
+
readonly labelPosition: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "top" | "left" | "right", unknown, "right", boolean>;
|
|
228
|
+
readonly requireAsteriskPosition: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "left" | "right", unknown, "left", boolean>;
|
|
201
229
|
readonly labelWidth: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, "", boolean>;
|
|
202
230
|
readonly labelSuffix: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
203
231
|
readonly inline: BooleanConstructor;
|
|
204
232
|
readonly inlineMessage: BooleanConstructor;
|
|
205
233
|
readonly statusIcon: BooleanConstructor;
|
|
206
234
|
readonly showMessage: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
235
|
+
readonly validateOnRuleChange: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
236
|
+
readonly hideRequiredAsterisk: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
237
|
+
readonly scrollToError: BooleanConstructor;
|
|
238
|
+
readonly scrollIntoViewOptions: {
|
|
239
|
+
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<readonly [ObjectConstructor, BooleanConstructor], unknown, unknown>>;
|
|
240
|
+
readonly required: false;
|
|
241
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
242
|
+
__epPropKey: true;
|
|
243
|
+
};
|
|
207
244
|
readonly size: {
|
|
208
245
|
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "default" | "small" | "large", unknown>>;
|
|
209
246
|
readonly required: false;
|
|
210
|
-
readonly validator: (val: unknown) => boolean;
|
|
247
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
211
248
|
__epPropKey: true;
|
|
212
249
|
};
|
|
213
250
|
readonly disabled: BooleanConstructor;
|
|
214
|
-
readonly validateOnRuleChange: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
215
|
-
readonly hideRequiredAsterisk: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
216
|
-
readonly scrollToError: BooleanConstructor;
|
|
217
251
|
}>> & {
|
|
218
|
-
onValidate?: (prop: import("element-plus").FormItemProp, isValid: boolean, message: string) => any;
|
|
252
|
+
onValidate?: ((prop: import("element-plus").FormItemProp, isValid: boolean, message: string) => any) | undefined;
|
|
219
253
|
} & import("vue").ShallowUnwrapRef<{
|
|
220
254
|
COMPONENT_NAME: string;
|
|
221
255
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
@@ -223,43 +257,50 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
223
257
|
readonly rules: {
|
|
224
258
|
readonly type: import("vue").PropType<Partial<Record<string, import("element-plus/es/utils").Arrayable<import("element-plus").FormItemRule>>>>;
|
|
225
259
|
readonly required: false;
|
|
226
|
-
readonly validator: (val: unknown) => boolean;
|
|
260
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
227
261
|
__epPropKey: true;
|
|
228
262
|
};
|
|
229
|
-
readonly labelPosition: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "
|
|
263
|
+
readonly labelPosition: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "top" | "left" | "right", unknown, "right", boolean>;
|
|
264
|
+
readonly requireAsteriskPosition: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "left" | "right", unknown, "left", boolean>;
|
|
230
265
|
readonly labelWidth: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, "", boolean>;
|
|
231
266
|
readonly labelSuffix: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
232
267
|
readonly inline: BooleanConstructor;
|
|
233
268
|
readonly inlineMessage: BooleanConstructor;
|
|
234
269
|
readonly statusIcon: BooleanConstructor;
|
|
235
270
|
readonly showMessage: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
271
|
+
readonly validateOnRuleChange: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
272
|
+
readonly hideRequiredAsterisk: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
273
|
+
readonly scrollToError: BooleanConstructor;
|
|
274
|
+
readonly scrollIntoViewOptions: {
|
|
275
|
+
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<readonly [ObjectConstructor, BooleanConstructor], unknown, unknown>>;
|
|
276
|
+
readonly required: false;
|
|
277
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
278
|
+
__epPropKey: true;
|
|
279
|
+
};
|
|
236
280
|
readonly size: {
|
|
237
281
|
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "default" | "small" | "large", unknown>>;
|
|
238
282
|
readonly required: false;
|
|
239
|
-
readonly validator: (val: unknown) => boolean;
|
|
283
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
240
284
|
__epPropKey: true;
|
|
241
285
|
};
|
|
242
286
|
readonly disabled: BooleanConstructor;
|
|
243
|
-
readonly validateOnRuleChange: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
244
|
-
readonly hideRequiredAsterisk: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
245
|
-
readonly scrollToError: BooleanConstructor;
|
|
246
287
|
}>> & {
|
|
247
|
-
onValidate?: (prop: import("element-plus").FormItemProp, isValid: boolean, message: string) => any;
|
|
288
|
+
onValidate?: ((prop: import("element-plus").FormItemProp, isValid: boolean, message: string) => any) | undefined;
|
|
248
289
|
}>>;
|
|
249
290
|
emit: (event: "validate", prop: import("element-plus").FormItemProp, isValid: boolean, message: string) => void;
|
|
250
291
|
fields: import("element-plus").FormItemContext[];
|
|
251
292
|
formSize: import("vue").ComputedRef<"" | "default" | "small" | "large">;
|
|
252
293
|
ns: {
|
|
253
294
|
namespace: import("vue").ComputedRef<string>;
|
|
254
|
-
b: (blockSuffix?: string) => string;
|
|
255
|
-
e: (element?: string) => string;
|
|
256
|
-
m: (modifier?: string) => string;
|
|
257
|
-
be: (blockSuffix?: string, element?: string) => string;
|
|
258
|
-
em: (element?: string, modifier?: string) => string;
|
|
259
|
-
bm: (blockSuffix?: string, modifier?: string) => string;
|
|
260
|
-
bem: (blockSuffix?: string, element?: string, modifier?: string) => string;
|
|
295
|
+
b: (blockSuffix?: string | undefined) => string;
|
|
296
|
+
e: (element?: string | undefined) => string;
|
|
297
|
+
m: (modifier?: string | undefined) => string;
|
|
298
|
+
be: (blockSuffix?: string | undefined, element?: string | undefined) => string;
|
|
299
|
+
em: (element?: string | undefined, modifier?: string | undefined) => string;
|
|
300
|
+
bm: (blockSuffix?: string | undefined, modifier?: string | undefined) => string;
|
|
301
|
+
bem: (blockSuffix?: string | undefined, element?: string | undefined, modifier?: string | undefined) => string;
|
|
261
302
|
is: {
|
|
262
|
-
(name: string, state: boolean): string;
|
|
303
|
+
(name: string, state: boolean | undefined): string;
|
|
263
304
|
(name: string): string;
|
|
264
305
|
};
|
|
265
306
|
cssVar: (object: Record<string, string>) => Record<string, string>;
|
|
@@ -268,68 +309,78 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
268
309
|
cssVarBlockName: (name: string) => string;
|
|
269
310
|
};
|
|
270
311
|
formClasses: import("vue").ComputedRef<(string | {
|
|
271
|
-
[x: string]: boolean | import("element-plus/es/utils").EpPropMergeType<StringConstructor, "
|
|
312
|
+
[x: string]: boolean | import("element-plus/es/utils").EpPropMergeType<StringConstructor, "top" | "left" | "right", unknown>;
|
|
272
313
|
})[]>;
|
|
273
314
|
addField: (field: import("element-plus").FormItemContext) => void;
|
|
274
315
|
removeField: (field: import("element-plus").FormItemContext) => void;
|
|
275
|
-
resetFields: (props?: import("element-plus/es/utils").Arrayable<import("element-plus").FormItemProp>) => void;
|
|
276
|
-
clearValidate: (props?: import("element-plus/es/utils").Arrayable<import("element-plus").FormItemProp>) => void;
|
|
316
|
+
resetFields: (props?: import("element-plus/es/utils").Arrayable<import("element-plus").FormItemProp> | undefined) => void;
|
|
317
|
+
clearValidate: (props?: import("element-plus/es/utils").Arrayable<import("element-plus").FormItemProp> | undefined) => void;
|
|
277
318
|
isValidatable: import("vue").ComputedRef<boolean>;
|
|
278
319
|
obtainValidateFields: (props: import("element-plus/es/utils").Arrayable<import("element-plus").FormItemProp>) => import("element-plus").FormItemContext[];
|
|
279
|
-
validate: (callback?: import("element-plus").FormValidateCallback) => import("element-plus").FormValidationResult;
|
|
280
|
-
doValidateField: (props?: import("element-plus/es/utils").Arrayable<import("element-plus").FormItemProp>) => Promise<boolean>;
|
|
281
|
-
validateField: (props?: import("element-plus/es/utils").Arrayable<import("element-plus").FormItemProp
|
|
320
|
+
validate: (callback?: import("element-plus").FormValidateCallback | undefined) => import("element-plus").FormValidationResult;
|
|
321
|
+
doValidateField: (props?: import("element-plus/es/utils").Arrayable<import("element-plus").FormItemProp> | undefined) => Promise<boolean>;
|
|
322
|
+
validateField: (props?: import("element-plus/es/utils").Arrayable<import("element-plus").FormItemProp> | undefined, callback?: import("element-plus").FormValidateCallback | undefined) => import("element-plus").FormValidationResult;
|
|
282
323
|
scrollToField: (prop: import("element-plus").FormItemProp) => void;
|
|
283
|
-
}> & {} & import("vue").ComponentCustomProperties) => any>;
|
|
324
|
+
}> & {} & import("vue").ComponentCustomProperties & {}) => any>;
|
|
284
325
|
default: () => () => void;
|
|
285
326
|
};
|
|
286
327
|
model: ObjectConstructor;
|
|
287
328
|
rules: {
|
|
288
329
|
readonly type: import("vue").PropType<Partial<Record<string, import("element-plus/es/utils").Arrayable<import("element-plus").FormItemRule>>>>;
|
|
289
330
|
readonly required: false;
|
|
290
|
-
readonly validator: (val: unknown) => boolean;
|
|
331
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
291
332
|
__epPropKey: true;
|
|
292
333
|
};
|
|
293
|
-
labelPosition: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "
|
|
334
|
+
labelPosition: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "top" | "left" | "right", unknown, "right", boolean>;
|
|
335
|
+
requireAsteriskPosition: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "left" | "right", unknown, "left", boolean>;
|
|
294
336
|
labelWidth: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, "", boolean>;
|
|
295
337
|
labelSuffix: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
296
338
|
inline: BooleanConstructor;
|
|
297
339
|
inlineMessage: BooleanConstructor;
|
|
298
340
|
statusIcon: BooleanConstructor;
|
|
299
341
|
showMessage: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
342
|
+
validateOnRuleChange: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
343
|
+
hideRequiredAsterisk: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
344
|
+
scrollToError: BooleanConstructor;
|
|
345
|
+
scrollIntoViewOptions: {
|
|
346
|
+
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<readonly [ObjectConstructor, BooleanConstructor], unknown, unknown>>;
|
|
347
|
+
readonly required: false;
|
|
348
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
349
|
+
__epPropKey: true;
|
|
350
|
+
};
|
|
300
351
|
size: {
|
|
301
352
|
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "default" | "small" | "large", unknown>>;
|
|
302
353
|
readonly required: false;
|
|
303
|
-
readonly validator: (val: unknown) => boolean;
|
|
354
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
304
355
|
__epPropKey: true;
|
|
305
356
|
};
|
|
306
357
|
disabled: BooleanConstructor;
|
|
307
|
-
validateOnRuleChange: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
308
|
-
hideRequiredAsterisk: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
309
|
-
scrollToError: BooleanConstructor;
|
|
310
358
|
}, {
|
|
311
359
|
formProps: import("vue").ComputedRef<{
|
|
312
360
|
labelWidth: import("element-plus/es/utils").EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
|
313
|
-
rules: Partial<Record<string, import("element-plus/es/utils").Arrayable<import("element-plus").FormItemRule
|
|
361
|
+
rules: Partial<Record<string, import("element-plus/es/utils").Arrayable<import("element-plus").FormItemRule>>> | undefined;
|
|
314
362
|
inlineMessage: boolean;
|
|
315
363
|
showMessage: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
316
|
-
size: import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "default" | "small" | "large", unknown
|
|
364
|
+
size: import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "default" | "small" | "large", unknown> | undefined;
|
|
365
|
+
inline: boolean;
|
|
317
366
|
disabled: boolean;
|
|
318
|
-
labelPosition: import("element-plus/es/utils").EpPropMergeType<StringConstructor, "
|
|
367
|
+
labelPosition: import("element-plus/es/utils").EpPropMergeType<StringConstructor, "top" | "left" | "right", unknown>;
|
|
368
|
+
requireAsteriskPosition: import("element-plus/es/utils").EpPropMergeType<StringConstructor, "left" | "right", unknown>;
|
|
319
369
|
labelSuffix: string;
|
|
320
|
-
inline: boolean;
|
|
321
370
|
statusIcon: boolean;
|
|
322
371
|
validateOnRuleChange: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
323
372
|
hideRequiredAsterisk: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
324
373
|
scrollToError: boolean;
|
|
374
|
+
scrollIntoViewOptions: import("element-plus/es/utils").EpPropMergeType<readonly [ObjectConstructor, BooleanConstructor], unknown, unknown> | undefined;
|
|
325
375
|
}>;
|
|
326
376
|
formEmits: {
|
|
327
|
-
validate: (
|
|
377
|
+
validate: (e: import("@vunk/core").SetDataEvent<any>) => void;
|
|
328
378
|
};
|
|
329
|
-
getValue: (obj: any, k: string | number | any[]) => any;
|
|
379
|
+
getValue: (obj: any, k: string | number | any[], intoUndefined?: ((obj: any, k: string | number) => void) | undefined) => any;
|
|
380
|
+
getRef: (e: InstanceType<typeof ElForm>) => void;
|
|
330
381
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
331
382
|
setData: (e: import("@vunk/core").SetDataEvent<any>) => import("@vunk/core").SetDataEvent<any>;
|
|
332
|
-
validate:
|
|
383
|
+
validate: null;
|
|
333
384
|
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
334
385
|
data: {
|
|
335
386
|
type: import("vue").PropType<Record<string, any>>;
|
|
@@ -337,7 +388,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
337
388
|
};
|
|
338
389
|
formItems: {
|
|
339
390
|
type: import("vue").PropType<any[]>;
|
|
340
|
-
default: () =>
|
|
391
|
+
default: () => never[];
|
|
392
|
+
};
|
|
393
|
+
readonly: {
|
|
394
|
+
type: BooleanConstructor;
|
|
341
395
|
};
|
|
342
396
|
elRef: {
|
|
343
397
|
type: import("vue").PropType<(arg: {
|
|
@@ -345,7 +399,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
345
399
|
$data: {};
|
|
346
400
|
$props: Partial<{
|
|
347
401
|
readonly disabled: boolean;
|
|
348
|
-
readonly labelPosition: import("element-plus/es/utils").EpPropMergeType<StringConstructor, "
|
|
402
|
+
readonly labelPosition: import("element-plus/es/utils").EpPropMergeType<StringConstructor, "top" | "left" | "right", unknown>;
|
|
403
|
+
readonly requireAsteriskPosition: import("element-plus/es/utils").EpPropMergeType<StringConstructor, "left" | "right", unknown>;
|
|
349
404
|
readonly labelWidth: import("element-plus/es/utils").EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
|
350
405
|
readonly labelSuffix: string;
|
|
351
406
|
readonly showMessage: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
@@ -360,29 +415,36 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
360
415
|
readonly rules: {
|
|
361
416
|
readonly type: import("vue").PropType<Partial<Record<string, import("element-plus/es/utils").Arrayable<import("element-plus").FormItemRule>>>>;
|
|
362
417
|
readonly required: false;
|
|
363
|
-
readonly validator: (val: unknown) => boolean;
|
|
418
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
364
419
|
__epPropKey: true;
|
|
365
420
|
};
|
|
366
|
-
readonly labelPosition: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "
|
|
421
|
+
readonly labelPosition: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "top" | "left" | "right", unknown, "right", boolean>;
|
|
422
|
+
readonly requireAsteriskPosition: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "left" | "right", unknown, "left", boolean>;
|
|
367
423
|
readonly labelWidth: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, "", boolean>;
|
|
368
424
|
readonly labelSuffix: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
369
425
|
readonly inline: BooleanConstructor;
|
|
370
426
|
readonly inlineMessage: BooleanConstructor;
|
|
371
427
|
readonly statusIcon: BooleanConstructor;
|
|
372
428
|
readonly showMessage: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
429
|
+
readonly validateOnRuleChange: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
430
|
+
readonly hideRequiredAsterisk: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
431
|
+
readonly scrollToError: BooleanConstructor;
|
|
432
|
+
readonly scrollIntoViewOptions: {
|
|
433
|
+
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<readonly [ObjectConstructor, BooleanConstructor], unknown, unknown>>;
|
|
434
|
+
readonly required: false;
|
|
435
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
436
|
+
__epPropKey: true;
|
|
437
|
+
};
|
|
373
438
|
readonly size: {
|
|
374
439
|
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "default" | "small" | "large", unknown>>;
|
|
375
440
|
readonly required: false;
|
|
376
|
-
readonly validator: (val: unknown) => boolean;
|
|
441
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
377
442
|
__epPropKey: true;
|
|
378
443
|
};
|
|
379
444
|
readonly disabled: BooleanConstructor;
|
|
380
|
-
readonly validateOnRuleChange: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
381
|
-
readonly hideRequiredAsterisk: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
382
|
-
readonly scrollToError: BooleanConstructor;
|
|
383
445
|
}>> & {
|
|
384
|
-
onValidate?: (prop: import("element-plus").FormItemProp, isValid: boolean, message: string) => any;
|
|
385
|
-
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "labelWidth" | "inlineMessage" | "showMessage" | "disabled" | "labelPosition" | "
|
|
446
|
+
onValidate?: ((prop: import("element-plus").FormItemProp, isValid: boolean, message: string) => any) | undefined;
|
|
447
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "labelWidth" | "inlineMessage" | "showMessage" | "inline" | "disabled" | "labelPosition" | "requireAsteriskPosition" | "labelSuffix" | "statusIcon" | "validateOnRuleChange" | "hideRequiredAsterisk" | "scrollToError">;
|
|
386
448
|
$attrs: {
|
|
387
449
|
[x: string]: unknown;
|
|
388
450
|
};
|
|
@@ -390,10 +452,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
390
452
|
[x: string]: unknown;
|
|
391
453
|
};
|
|
392
454
|
$slots: Readonly<{
|
|
393
|
-
[name: string]: import("vue").Slot;
|
|
455
|
+
[name: string]: import("vue").Slot | undefined;
|
|
394
456
|
}>;
|
|
395
|
-
$root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}
|
|
396
|
-
$parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}
|
|
457
|
+
$root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null;
|
|
458
|
+
$parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null;
|
|
397
459
|
$emit: (event: "validate", prop: import("element-plus").FormItemProp, isValid: boolean, message: string) => void;
|
|
398
460
|
$el: any;
|
|
399
461
|
$options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
|
@@ -401,28 +463,35 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
401
463
|
readonly rules: {
|
|
402
464
|
readonly type: import("vue").PropType<Partial<Record<string, import("element-plus/es/utils").Arrayable<import("element-plus").FormItemRule>>>>;
|
|
403
465
|
readonly required: false;
|
|
404
|
-
readonly validator: (val: unknown) => boolean;
|
|
466
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
405
467
|
__epPropKey: true;
|
|
406
468
|
};
|
|
407
|
-
readonly labelPosition: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "
|
|
469
|
+
readonly labelPosition: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "top" | "left" | "right", unknown, "right", boolean>;
|
|
470
|
+
readonly requireAsteriskPosition: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "left" | "right", unknown, "left", boolean>;
|
|
408
471
|
readonly labelWidth: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, "", boolean>;
|
|
409
472
|
readonly labelSuffix: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
410
473
|
readonly inline: BooleanConstructor;
|
|
411
474
|
readonly inlineMessage: BooleanConstructor;
|
|
412
475
|
readonly statusIcon: BooleanConstructor;
|
|
413
476
|
readonly showMessage: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
477
|
+
readonly validateOnRuleChange: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
478
|
+
readonly hideRequiredAsterisk: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
479
|
+
readonly scrollToError: BooleanConstructor;
|
|
480
|
+
readonly scrollIntoViewOptions: {
|
|
481
|
+
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<readonly [ObjectConstructor, BooleanConstructor], unknown, unknown>>;
|
|
482
|
+
readonly required: false;
|
|
483
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
484
|
+
__epPropKey: true;
|
|
485
|
+
};
|
|
414
486
|
readonly size: {
|
|
415
487
|
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "default" | "small" | "large", unknown>>;
|
|
416
488
|
readonly required: false;
|
|
417
|
-
readonly validator: (val: unknown) => boolean;
|
|
489
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
418
490
|
__epPropKey: true;
|
|
419
491
|
};
|
|
420
492
|
readonly disabled: BooleanConstructor;
|
|
421
|
-
readonly validateOnRuleChange: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
422
|
-
readonly hideRequiredAsterisk: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
423
|
-
readonly scrollToError: BooleanConstructor;
|
|
424
493
|
}>> & {
|
|
425
|
-
onValidate?: (prop: import("element-plus").FormItemProp, isValid: boolean, message: string) => any;
|
|
494
|
+
onValidate?: ((prop: import("element-plus").FormItemProp, isValid: boolean, message: string) => any) | undefined;
|
|
426
495
|
}, {
|
|
427
496
|
COMPONENT_NAME: string;
|
|
428
497
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
@@ -430,43 +499,50 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
430
499
|
readonly rules: {
|
|
431
500
|
readonly type: import("vue").PropType<Partial<Record<string, import("element-plus/es/utils").Arrayable<import("element-plus").FormItemRule>>>>;
|
|
432
501
|
readonly required: false;
|
|
433
|
-
readonly validator: (val: unknown) => boolean;
|
|
502
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
434
503
|
__epPropKey: true;
|
|
435
504
|
};
|
|
436
|
-
readonly labelPosition: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "
|
|
505
|
+
readonly labelPosition: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "top" | "left" | "right", unknown, "right", boolean>;
|
|
506
|
+
readonly requireAsteriskPosition: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "left" | "right", unknown, "left", boolean>;
|
|
437
507
|
readonly labelWidth: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, "", boolean>;
|
|
438
508
|
readonly labelSuffix: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
439
509
|
readonly inline: BooleanConstructor;
|
|
440
510
|
readonly inlineMessage: BooleanConstructor;
|
|
441
511
|
readonly statusIcon: BooleanConstructor;
|
|
442
512
|
readonly showMessage: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
513
|
+
readonly validateOnRuleChange: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
514
|
+
readonly hideRequiredAsterisk: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
515
|
+
readonly scrollToError: BooleanConstructor;
|
|
516
|
+
readonly scrollIntoViewOptions: {
|
|
517
|
+
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<readonly [ObjectConstructor, BooleanConstructor], unknown, unknown>>;
|
|
518
|
+
readonly required: false;
|
|
519
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
520
|
+
__epPropKey: true;
|
|
521
|
+
};
|
|
443
522
|
readonly size: {
|
|
444
523
|
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "default" | "small" | "large", unknown>>;
|
|
445
524
|
readonly required: false;
|
|
446
|
-
readonly validator: (val: unknown) => boolean;
|
|
525
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
447
526
|
__epPropKey: true;
|
|
448
527
|
};
|
|
449
528
|
readonly disabled: BooleanConstructor;
|
|
450
|
-
readonly validateOnRuleChange: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
451
|
-
readonly hideRequiredAsterisk: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
452
|
-
readonly scrollToError: BooleanConstructor;
|
|
453
529
|
}>> & {
|
|
454
|
-
onValidate?: (prop: import("element-plus").FormItemProp, isValid: boolean, message: string) => any;
|
|
530
|
+
onValidate?: ((prop: import("element-plus").FormItemProp, isValid: boolean, message: string) => any) | undefined;
|
|
455
531
|
}>>;
|
|
456
532
|
emit: (event: "validate", prop: import("element-plus").FormItemProp, isValid: boolean, message: string) => void;
|
|
457
533
|
fields: import("element-plus").FormItemContext[];
|
|
458
534
|
formSize: import("vue").ComputedRef<"" | "default" | "small" | "large">;
|
|
459
535
|
ns: {
|
|
460
536
|
namespace: import("vue").ComputedRef<string>;
|
|
461
|
-
b: (blockSuffix?: string) => string;
|
|
462
|
-
e: (element?: string) => string;
|
|
463
|
-
m: (modifier?: string) => string;
|
|
464
|
-
be: (blockSuffix?: string, element?: string) => string;
|
|
465
|
-
em: (element?: string, modifier?: string) => string;
|
|
466
|
-
bm: (blockSuffix?: string, modifier?: string) => string;
|
|
467
|
-
bem: (blockSuffix?: string, element?: string, modifier?: string) => string;
|
|
537
|
+
b: (blockSuffix?: string | undefined) => string;
|
|
538
|
+
e: (element?: string | undefined) => string;
|
|
539
|
+
m: (modifier?: string | undefined) => string;
|
|
540
|
+
be: (blockSuffix?: string | undefined, element?: string | undefined) => string;
|
|
541
|
+
em: (element?: string | undefined, modifier?: string | undefined) => string;
|
|
542
|
+
bm: (blockSuffix?: string | undefined, modifier?: string | undefined) => string;
|
|
543
|
+
bem: (blockSuffix?: string | undefined, element?: string | undefined, modifier?: string | undefined) => string;
|
|
468
544
|
is: {
|
|
469
|
-
(name: string, state: boolean): string;
|
|
545
|
+
(name: string, state: boolean | undefined): string;
|
|
470
546
|
(name: string): string;
|
|
471
547
|
};
|
|
472
548
|
cssVar: (object: Record<string, string>) => Record<string, string>;
|
|
@@ -475,23 +551,24 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
475
551
|
cssVarBlockName: (name: string) => string;
|
|
476
552
|
};
|
|
477
553
|
formClasses: import("vue").ComputedRef<(string | {
|
|
478
|
-
[x: string]: boolean | import("element-plus/es/utils").EpPropMergeType<StringConstructor, "
|
|
554
|
+
[x: string]: boolean | import("element-plus/es/utils").EpPropMergeType<StringConstructor, "top" | "left" | "right", unknown>;
|
|
479
555
|
})[]>;
|
|
480
556
|
addField: (field: import("element-plus").FormItemContext) => void;
|
|
481
557
|
removeField: (field: import("element-plus").FormItemContext) => void;
|
|
482
|
-
resetFields: (props?: import("element-plus/es/utils").Arrayable<import("element-plus").FormItemProp>) => void;
|
|
483
|
-
clearValidate: (props?: import("element-plus/es/utils").Arrayable<import("element-plus").FormItemProp>) => void;
|
|
558
|
+
resetFields: (props?: import("element-plus/es/utils").Arrayable<import("element-plus").FormItemProp> | undefined) => void;
|
|
559
|
+
clearValidate: (props?: import("element-plus/es/utils").Arrayable<import("element-plus").FormItemProp> | undefined) => void;
|
|
484
560
|
isValidatable: import("vue").ComputedRef<boolean>;
|
|
485
561
|
obtainValidateFields: (props: import("element-plus/es/utils").Arrayable<import("element-plus").FormItemProp>) => import("element-plus").FormItemContext[];
|
|
486
|
-
validate: (callback?: import("element-plus").FormValidateCallback) => import("element-plus").FormValidationResult;
|
|
487
|
-
doValidateField: (props?: import("element-plus/es/utils").Arrayable<import("element-plus").FormItemProp>) => Promise<boolean>;
|
|
488
|
-
validateField: (props?: import("element-plus/es/utils").Arrayable<import("element-plus").FormItemProp
|
|
562
|
+
validate: (callback?: import("element-plus").FormValidateCallback | undefined) => import("element-plus").FormValidationResult;
|
|
563
|
+
doValidateField: (props?: import("element-plus/es/utils").Arrayable<import("element-plus").FormItemProp> | undefined) => Promise<boolean>;
|
|
564
|
+
validateField: (props?: import("element-plus/es/utils").Arrayable<import("element-plus").FormItemProp> | undefined, callback?: import("element-plus").FormValidateCallback | undefined) => import("element-plus").FormValidationResult;
|
|
489
565
|
scrollToField: (prop: import("element-plus").FormItemProp) => void;
|
|
490
566
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
491
567
|
validate: (prop: import("element-plus").FormItemProp, isValid: boolean, message: string) => boolean;
|
|
492
568
|
}, string, {
|
|
493
569
|
readonly disabled: boolean;
|
|
494
|
-
readonly labelPosition: import("element-plus/es/utils").EpPropMergeType<StringConstructor, "
|
|
570
|
+
readonly labelPosition: import("element-plus/es/utils").EpPropMergeType<StringConstructor, "top" | "left" | "right", unknown>;
|
|
571
|
+
readonly requireAsteriskPosition: import("element-plus/es/utils").EpPropMergeType<StringConstructor, "left" | "right", unknown>;
|
|
495
572
|
readonly labelWidth: import("element-plus/es/utils").EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
|
496
573
|
readonly labelSuffix: string;
|
|
497
574
|
readonly showMessage: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
@@ -501,53 +578,60 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
501
578
|
readonly inlineMessage: boolean;
|
|
502
579
|
readonly statusIcon: boolean;
|
|
503
580
|
readonly scrollToError: boolean;
|
|
504
|
-
}> & {
|
|
505
|
-
beforeCreate?: (() => void) | (() => void)[];
|
|
506
|
-
created?: (() => void) | (() => void)[];
|
|
507
|
-
beforeMount?: (() => void) | (() => void)[];
|
|
508
|
-
mounted?: (() => void) | (() => void)[];
|
|
509
|
-
beforeUpdate?: (() => void) | (() => void)[];
|
|
510
|
-
updated?: (() => void) | (() => void)[];
|
|
511
|
-
activated?: (() => void) | (() => void)[];
|
|
512
|
-
deactivated?: (() => void) | (() => void)[];
|
|
513
|
-
beforeDestroy?: (() => void) | (() => void)[];
|
|
514
|
-
beforeUnmount?: (() => void) | (() => void)[];
|
|
515
|
-
destroyed?: (() => void) | (() => void)[];
|
|
516
|
-
unmounted?: (() => void) | (() => void)[];
|
|
517
|
-
renderTracked?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
|
|
518
|
-
renderTriggered?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
|
|
519
|
-
errorCaptured?: ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}
|
|
581
|
+
}, {}, string> & {
|
|
582
|
+
beforeCreate?: ((() => void) | (() => void)[]) | undefined;
|
|
583
|
+
created?: ((() => void) | (() => void)[]) | undefined;
|
|
584
|
+
beforeMount?: ((() => void) | (() => void)[]) | undefined;
|
|
585
|
+
mounted?: ((() => void) | (() => void)[]) | undefined;
|
|
586
|
+
beforeUpdate?: ((() => void) | (() => void)[]) | undefined;
|
|
587
|
+
updated?: ((() => void) | (() => void)[]) | undefined;
|
|
588
|
+
activated?: ((() => void) | (() => void)[]) | undefined;
|
|
589
|
+
deactivated?: ((() => void) | (() => void)[]) | undefined;
|
|
590
|
+
beforeDestroy?: ((() => void) | (() => void)[]) | undefined;
|
|
591
|
+
beforeUnmount?: ((() => void) | (() => void)[]) | undefined;
|
|
592
|
+
destroyed?: ((() => void) | (() => void)[]) | undefined;
|
|
593
|
+
unmounted?: ((() => void) | (() => void)[]) | undefined;
|
|
594
|
+
renderTracked?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
|
|
595
|
+
renderTriggered?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
|
|
596
|
+
errorCaptured?: (((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null, info: string) => boolean | void)[]) | undefined;
|
|
520
597
|
};
|
|
521
598
|
$forceUpdate: () => void;
|
|
522
599
|
$nextTick: typeof import("vue").nextTick;
|
|
523
|
-
$watch
|
|
600
|
+
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (args_0: R, args_1: R) => any : (...args: any) => any, options?: import("vue").WatchOptions<boolean> | undefined): import("vue").WatchStopHandle;
|
|
524
601
|
} & Readonly<import("vue").ExtractPropTypes<{
|
|
525
602
|
readonly model: ObjectConstructor;
|
|
526
603
|
readonly rules: {
|
|
527
604
|
readonly type: import("vue").PropType<Partial<Record<string, import("element-plus/es/utils").Arrayable<import("element-plus").FormItemRule>>>>;
|
|
528
605
|
readonly required: false;
|
|
529
|
-
readonly validator: (val: unknown) => boolean;
|
|
606
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
530
607
|
__epPropKey: true;
|
|
531
608
|
};
|
|
532
|
-
readonly labelPosition: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "
|
|
609
|
+
readonly labelPosition: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "top" | "left" | "right", unknown, "right", boolean>;
|
|
610
|
+
readonly requireAsteriskPosition: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "left" | "right", unknown, "left", boolean>;
|
|
533
611
|
readonly labelWidth: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, "", boolean>;
|
|
534
612
|
readonly labelSuffix: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
535
613
|
readonly inline: BooleanConstructor;
|
|
536
614
|
readonly inlineMessage: BooleanConstructor;
|
|
537
615
|
readonly statusIcon: BooleanConstructor;
|
|
538
616
|
readonly showMessage: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
617
|
+
readonly validateOnRuleChange: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
618
|
+
readonly hideRequiredAsterisk: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
619
|
+
readonly scrollToError: BooleanConstructor;
|
|
620
|
+
readonly scrollIntoViewOptions: {
|
|
621
|
+
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<readonly [ObjectConstructor, BooleanConstructor], unknown, unknown>>;
|
|
622
|
+
readonly required: false;
|
|
623
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
624
|
+
__epPropKey: true;
|
|
625
|
+
};
|
|
539
626
|
readonly size: {
|
|
540
627
|
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "default" | "small" | "large", unknown>>;
|
|
541
628
|
readonly required: false;
|
|
542
|
-
readonly validator: (val: unknown) => boolean;
|
|
629
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
543
630
|
__epPropKey: true;
|
|
544
631
|
};
|
|
545
632
|
readonly disabled: BooleanConstructor;
|
|
546
|
-
readonly validateOnRuleChange: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
547
|
-
readonly hideRequiredAsterisk: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
548
|
-
readonly scrollToError: BooleanConstructor;
|
|
549
633
|
}>> & {
|
|
550
|
-
onValidate?: (prop: import("element-plus").FormItemProp, isValid: boolean, message: string) => any;
|
|
634
|
+
onValidate?: ((prop: import("element-plus").FormItemProp, isValid: boolean, message: string) => any) | undefined;
|
|
551
635
|
} & import("vue").ShallowUnwrapRef<{
|
|
552
636
|
COMPONENT_NAME: string;
|
|
553
637
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
@@ -555,43 +639,50 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
555
639
|
readonly rules: {
|
|
556
640
|
readonly type: import("vue").PropType<Partial<Record<string, import("element-plus/es/utils").Arrayable<import("element-plus").FormItemRule>>>>;
|
|
557
641
|
readonly required: false;
|
|
558
|
-
readonly validator: (val: unknown) => boolean;
|
|
642
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
559
643
|
__epPropKey: true;
|
|
560
644
|
};
|
|
561
|
-
readonly labelPosition: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "
|
|
645
|
+
readonly labelPosition: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "top" | "left" | "right", unknown, "right", boolean>;
|
|
646
|
+
readonly requireAsteriskPosition: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "left" | "right", unknown, "left", boolean>;
|
|
562
647
|
readonly labelWidth: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, "", boolean>;
|
|
563
648
|
readonly labelSuffix: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
564
649
|
readonly inline: BooleanConstructor;
|
|
565
650
|
readonly inlineMessage: BooleanConstructor;
|
|
566
651
|
readonly statusIcon: BooleanConstructor;
|
|
567
652
|
readonly showMessage: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
653
|
+
readonly validateOnRuleChange: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
654
|
+
readonly hideRequiredAsterisk: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
655
|
+
readonly scrollToError: BooleanConstructor;
|
|
656
|
+
readonly scrollIntoViewOptions: {
|
|
657
|
+
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<readonly [ObjectConstructor, BooleanConstructor], unknown, unknown>>;
|
|
658
|
+
readonly required: false;
|
|
659
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
660
|
+
__epPropKey: true;
|
|
661
|
+
};
|
|
568
662
|
readonly size: {
|
|
569
663
|
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "default" | "small" | "large", unknown>>;
|
|
570
664
|
readonly required: false;
|
|
571
|
-
readonly validator: (val: unknown) => boolean;
|
|
665
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
572
666
|
__epPropKey: true;
|
|
573
667
|
};
|
|
574
668
|
readonly disabled: BooleanConstructor;
|
|
575
|
-
readonly validateOnRuleChange: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
576
|
-
readonly hideRequiredAsterisk: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
577
|
-
readonly scrollToError: BooleanConstructor;
|
|
578
669
|
}>> & {
|
|
579
|
-
onValidate?: (prop: import("element-plus").FormItemProp, isValid: boolean, message: string) => any;
|
|
670
|
+
onValidate?: ((prop: import("element-plus").FormItemProp, isValid: boolean, message: string) => any) | undefined;
|
|
580
671
|
}>>;
|
|
581
672
|
emit: (event: "validate", prop: import("element-plus").FormItemProp, isValid: boolean, message: string) => void;
|
|
582
673
|
fields: import("element-plus").FormItemContext[];
|
|
583
674
|
formSize: import("vue").ComputedRef<"" | "default" | "small" | "large">;
|
|
584
675
|
ns: {
|
|
585
676
|
namespace: import("vue").ComputedRef<string>;
|
|
586
|
-
b: (blockSuffix?: string) => string;
|
|
587
|
-
e: (element?: string) => string;
|
|
588
|
-
m: (modifier?: string) => string;
|
|
589
|
-
be: (blockSuffix?: string, element?: string) => string;
|
|
590
|
-
em: (element?: string, modifier?: string) => string;
|
|
591
|
-
bm: (blockSuffix?: string, modifier?: string) => string;
|
|
592
|
-
bem: (blockSuffix?: string, element?: string, modifier?: string) => string;
|
|
677
|
+
b: (blockSuffix?: string | undefined) => string;
|
|
678
|
+
e: (element?: string | undefined) => string;
|
|
679
|
+
m: (modifier?: string | undefined) => string;
|
|
680
|
+
be: (blockSuffix?: string | undefined, element?: string | undefined) => string;
|
|
681
|
+
em: (element?: string | undefined, modifier?: string | undefined) => string;
|
|
682
|
+
bm: (blockSuffix?: string | undefined, modifier?: string | undefined) => string;
|
|
683
|
+
bem: (blockSuffix?: string | undefined, element?: string | undefined, modifier?: string | undefined) => string;
|
|
593
684
|
is: {
|
|
594
|
-
(name: string, state: boolean): string;
|
|
685
|
+
(name: string, state: boolean | undefined): string;
|
|
595
686
|
(name: string): string;
|
|
596
687
|
};
|
|
597
688
|
cssVar: (object: Record<string, string>) => Record<string, string>;
|
|
@@ -600,48 +691,55 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
600
691
|
cssVarBlockName: (name: string) => string;
|
|
601
692
|
};
|
|
602
693
|
formClasses: import("vue").ComputedRef<(string | {
|
|
603
|
-
[x: string]: boolean | import("element-plus/es/utils").EpPropMergeType<StringConstructor, "
|
|
694
|
+
[x: string]: boolean | import("element-plus/es/utils").EpPropMergeType<StringConstructor, "top" | "left" | "right", unknown>;
|
|
604
695
|
})[]>;
|
|
605
696
|
addField: (field: import("element-plus").FormItemContext) => void;
|
|
606
697
|
removeField: (field: import("element-plus").FormItemContext) => void;
|
|
607
|
-
resetFields: (props?: import("element-plus/es/utils").Arrayable<import("element-plus").FormItemProp>) => void;
|
|
608
|
-
clearValidate: (props?: import("element-plus/es/utils").Arrayable<import("element-plus").FormItemProp>) => void;
|
|
698
|
+
resetFields: (props?: import("element-plus/es/utils").Arrayable<import("element-plus").FormItemProp> | undefined) => void;
|
|
699
|
+
clearValidate: (props?: import("element-plus/es/utils").Arrayable<import("element-plus").FormItemProp> | undefined) => void;
|
|
609
700
|
isValidatable: import("vue").ComputedRef<boolean>;
|
|
610
701
|
obtainValidateFields: (props: import("element-plus/es/utils").Arrayable<import("element-plus").FormItemProp>) => import("element-plus").FormItemContext[];
|
|
611
|
-
validate: (callback?: import("element-plus").FormValidateCallback) => import("element-plus").FormValidationResult;
|
|
612
|
-
doValidateField: (props?: import("element-plus/es/utils").Arrayable<import("element-plus").FormItemProp>) => Promise<boolean>;
|
|
613
|
-
validateField: (props?: import("element-plus/es/utils").Arrayable<import("element-plus").FormItemProp
|
|
702
|
+
validate: (callback?: import("element-plus").FormValidateCallback | undefined) => import("element-plus").FormValidationResult;
|
|
703
|
+
doValidateField: (props?: import("element-plus/es/utils").Arrayable<import("element-plus").FormItemProp> | undefined) => Promise<boolean>;
|
|
704
|
+
validateField: (props?: import("element-plus/es/utils").Arrayable<import("element-plus").FormItemProp> | undefined, callback?: import("element-plus").FormValidateCallback | undefined) => import("element-plus").FormValidationResult;
|
|
614
705
|
scrollToField: (prop: import("element-plus").FormItemProp) => void;
|
|
615
|
-
}> & {} & import("vue").ComponentCustomProperties) => any>;
|
|
706
|
+
}> & {} & import("vue").ComponentCustomProperties & {}) => any>;
|
|
616
707
|
default: () => () => void;
|
|
617
708
|
};
|
|
618
709
|
model: ObjectConstructor;
|
|
619
710
|
rules: {
|
|
620
711
|
readonly type: import("vue").PropType<Partial<Record<string, import("element-plus/es/utils").Arrayable<import("element-plus").FormItemRule>>>>;
|
|
621
712
|
readonly required: false;
|
|
622
|
-
readonly validator: (val: unknown) => boolean;
|
|
713
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
623
714
|
__epPropKey: true;
|
|
624
715
|
};
|
|
625
|
-
labelPosition: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "
|
|
716
|
+
labelPosition: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "top" | "left" | "right", unknown, "right", boolean>;
|
|
717
|
+
requireAsteriskPosition: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "left" | "right", unknown, "left", boolean>;
|
|
626
718
|
labelWidth: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, "", boolean>;
|
|
627
719
|
labelSuffix: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
628
720
|
inline: BooleanConstructor;
|
|
629
721
|
inlineMessage: BooleanConstructor;
|
|
630
722
|
statusIcon: BooleanConstructor;
|
|
631
723
|
showMessage: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
724
|
+
validateOnRuleChange: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
725
|
+
hideRequiredAsterisk: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
726
|
+
scrollToError: BooleanConstructor;
|
|
727
|
+
scrollIntoViewOptions: {
|
|
728
|
+
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<readonly [ObjectConstructor, BooleanConstructor], unknown, unknown>>;
|
|
729
|
+
readonly required: false;
|
|
730
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
731
|
+
__epPropKey: true;
|
|
732
|
+
};
|
|
632
733
|
size: {
|
|
633
734
|
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "default" | "small" | "large", unknown>>;
|
|
634
735
|
readonly required: false;
|
|
635
|
-
readonly validator: (val: unknown) => boolean;
|
|
736
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
636
737
|
__epPropKey: true;
|
|
637
738
|
};
|
|
638
739
|
disabled: BooleanConstructor;
|
|
639
|
-
validateOnRuleChange: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
640
|
-
hideRequiredAsterisk: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
641
|
-
scrollToError: BooleanConstructor;
|
|
642
740
|
}>> & {
|
|
643
|
-
onSetData?: (e: import("@vunk/core").SetDataEvent<any>) => any;
|
|
644
|
-
onValidate?: ((...args: any[]) => any) |
|
|
741
|
+
onSetData?: ((e: import("@vunk/core").SetDataEvent<any>) => any) | undefined;
|
|
742
|
+
onValidate?: ((...args: any[]) => any) | undefined;
|
|
645
743
|
}, {
|
|
646
744
|
labelWidth: import("element-plus/es/utils").EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
|
647
745
|
inlineMessage: boolean;
|
|
@@ -651,7 +749,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
651
749
|
$data: {};
|
|
652
750
|
$props: Partial<{
|
|
653
751
|
readonly disabled: boolean;
|
|
654
|
-
readonly labelPosition: import("element-plus/es/utils").EpPropMergeType<StringConstructor, "
|
|
752
|
+
readonly labelPosition: import("element-plus/es/utils").EpPropMergeType<StringConstructor, "top" | "left" | "right", unknown>;
|
|
753
|
+
readonly requireAsteriskPosition: import("element-plus/es/utils").EpPropMergeType<StringConstructor, "left" | "right", unknown>;
|
|
655
754
|
readonly labelWidth: import("element-plus/es/utils").EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
|
656
755
|
readonly labelSuffix: string;
|
|
657
756
|
readonly showMessage: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
@@ -666,29 +765,36 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
666
765
|
readonly rules: {
|
|
667
766
|
readonly type: import("vue").PropType<Partial<Record<string, import("element-plus/es/utils").Arrayable<import("element-plus").FormItemRule>>>>;
|
|
668
767
|
readonly required: false;
|
|
669
|
-
readonly validator: (val: unknown) => boolean;
|
|
768
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
670
769
|
__epPropKey: true;
|
|
671
770
|
};
|
|
672
|
-
readonly labelPosition: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "
|
|
771
|
+
readonly labelPosition: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "top" | "left" | "right", unknown, "right", boolean>;
|
|
772
|
+
readonly requireAsteriskPosition: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "left" | "right", unknown, "left", boolean>;
|
|
673
773
|
readonly labelWidth: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, "", boolean>;
|
|
674
774
|
readonly labelSuffix: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
675
775
|
readonly inline: BooleanConstructor;
|
|
676
776
|
readonly inlineMessage: BooleanConstructor;
|
|
677
777
|
readonly statusIcon: BooleanConstructor;
|
|
678
778
|
readonly showMessage: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
779
|
+
readonly validateOnRuleChange: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
780
|
+
readonly hideRequiredAsterisk: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
781
|
+
readonly scrollToError: BooleanConstructor;
|
|
782
|
+
readonly scrollIntoViewOptions: {
|
|
783
|
+
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<readonly [ObjectConstructor, BooleanConstructor], unknown, unknown>>;
|
|
784
|
+
readonly required: false;
|
|
785
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
786
|
+
__epPropKey: true;
|
|
787
|
+
};
|
|
679
788
|
readonly size: {
|
|
680
789
|
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "default" | "small" | "large", unknown>>;
|
|
681
790
|
readonly required: false;
|
|
682
|
-
readonly validator: (val: unknown) => boolean;
|
|
791
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
683
792
|
__epPropKey: true;
|
|
684
793
|
};
|
|
685
794
|
readonly disabled: BooleanConstructor;
|
|
686
|
-
readonly validateOnRuleChange: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
687
|
-
readonly hideRequiredAsterisk: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
688
|
-
readonly scrollToError: BooleanConstructor;
|
|
689
795
|
}>> & {
|
|
690
|
-
onValidate?: (prop: import("element-plus").FormItemProp, isValid: boolean, message: string) => any;
|
|
691
|
-
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "labelWidth" | "inlineMessage" | "showMessage" | "disabled" | "labelPosition" | "
|
|
796
|
+
onValidate?: ((prop: import("element-plus").FormItemProp, isValid: boolean, message: string) => any) | undefined;
|
|
797
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "labelWidth" | "inlineMessage" | "showMessage" | "inline" | "disabled" | "labelPosition" | "requireAsteriskPosition" | "labelSuffix" | "statusIcon" | "validateOnRuleChange" | "hideRequiredAsterisk" | "scrollToError">;
|
|
692
798
|
$attrs: {
|
|
693
799
|
[x: string]: unknown;
|
|
694
800
|
};
|
|
@@ -696,10 +802,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
696
802
|
[x: string]: unknown;
|
|
697
803
|
};
|
|
698
804
|
$slots: Readonly<{
|
|
699
|
-
[name: string]: import("vue").Slot;
|
|
805
|
+
[name: string]: import("vue").Slot | undefined;
|
|
700
806
|
}>;
|
|
701
|
-
$root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}
|
|
702
|
-
$parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}
|
|
807
|
+
$root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null;
|
|
808
|
+
$parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null;
|
|
703
809
|
$emit: (event: "validate", prop: import("element-plus").FormItemProp, isValid: boolean, message: string) => void;
|
|
704
810
|
$el: any;
|
|
705
811
|
$options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
|
@@ -707,28 +813,35 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
707
813
|
readonly rules: {
|
|
708
814
|
readonly type: import("vue").PropType<Partial<Record<string, import("element-plus/es/utils").Arrayable<import("element-plus").FormItemRule>>>>;
|
|
709
815
|
readonly required: false;
|
|
710
|
-
readonly validator: (val: unknown) => boolean;
|
|
816
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
711
817
|
__epPropKey: true;
|
|
712
818
|
};
|
|
713
|
-
readonly labelPosition: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "
|
|
819
|
+
readonly labelPosition: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "top" | "left" | "right", unknown, "right", boolean>;
|
|
820
|
+
readonly requireAsteriskPosition: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "left" | "right", unknown, "left", boolean>;
|
|
714
821
|
readonly labelWidth: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, "", boolean>;
|
|
715
822
|
readonly labelSuffix: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
716
823
|
readonly inline: BooleanConstructor;
|
|
717
824
|
readonly inlineMessage: BooleanConstructor;
|
|
718
825
|
readonly statusIcon: BooleanConstructor;
|
|
719
826
|
readonly showMessage: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
827
|
+
readonly validateOnRuleChange: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
828
|
+
readonly hideRequiredAsterisk: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
829
|
+
readonly scrollToError: BooleanConstructor;
|
|
830
|
+
readonly scrollIntoViewOptions: {
|
|
831
|
+
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<readonly [ObjectConstructor, BooleanConstructor], unknown, unknown>>;
|
|
832
|
+
readonly required: false;
|
|
833
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
834
|
+
__epPropKey: true;
|
|
835
|
+
};
|
|
720
836
|
readonly size: {
|
|
721
837
|
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "default" | "small" | "large", unknown>>;
|
|
722
838
|
readonly required: false;
|
|
723
|
-
readonly validator: (val: unknown) => boolean;
|
|
839
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
724
840
|
__epPropKey: true;
|
|
725
841
|
};
|
|
726
842
|
readonly disabled: BooleanConstructor;
|
|
727
|
-
readonly validateOnRuleChange: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
728
|
-
readonly hideRequiredAsterisk: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
729
|
-
readonly scrollToError: BooleanConstructor;
|
|
730
843
|
}>> & {
|
|
731
|
-
onValidate?: (prop: import("element-plus").FormItemProp, isValid: boolean, message: string) => any;
|
|
844
|
+
onValidate?: ((prop: import("element-plus").FormItemProp, isValid: boolean, message: string) => any) | undefined;
|
|
732
845
|
}, {
|
|
733
846
|
COMPONENT_NAME: string;
|
|
734
847
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
@@ -736,43 +849,50 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
736
849
|
readonly rules: {
|
|
737
850
|
readonly type: import("vue").PropType<Partial<Record<string, import("element-plus/es/utils").Arrayable<import("element-plus").FormItemRule>>>>;
|
|
738
851
|
readonly required: false;
|
|
739
|
-
readonly validator: (val: unknown) => boolean;
|
|
852
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
740
853
|
__epPropKey: true;
|
|
741
854
|
};
|
|
742
|
-
readonly labelPosition: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "
|
|
855
|
+
readonly labelPosition: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "top" | "left" | "right", unknown, "right", boolean>;
|
|
856
|
+
readonly requireAsteriskPosition: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "left" | "right", unknown, "left", boolean>;
|
|
743
857
|
readonly labelWidth: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, "", boolean>;
|
|
744
858
|
readonly labelSuffix: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
745
859
|
readonly inline: BooleanConstructor;
|
|
746
860
|
readonly inlineMessage: BooleanConstructor;
|
|
747
861
|
readonly statusIcon: BooleanConstructor;
|
|
748
862
|
readonly showMessage: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
863
|
+
readonly validateOnRuleChange: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
864
|
+
readonly hideRequiredAsterisk: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
865
|
+
readonly scrollToError: BooleanConstructor;
|
|
866
|
+
readonly scrollIntoViewOptions: {
|
|
867
|
+
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<readonly [ObjectConstructor, BooleanConstructor], unknown, unknown>>;
|
|
868
|
+
readonly required: false;
|
|
869
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
870
|
+
__epPropKey: true;
|
|
871
|
+
};
|
|
749
872
|
readonly size: {
|
|
750
873
|
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "default" | "small" | "large", unknown>>;
|
|
751
874
|
readonly required: false;
|
|
752
|
-
readonly validator: (val: unknown) => boolean;
|
|
875
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
753
876
|
__epPropKey: true;
|
|
754
877
|
};
|
|
755
878
|
readonly disabled: BooleanConstructor;
|
|
756
|
-
readonly validateOnRuleChange: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
757
|
-
readonly hideRequiredAsterisk: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
758
|
-
readonly scrollToError: BooleanConstructor;
|
|
759
879
|
}>> & {
|
|
760
|
-
onValidate?: (prop: import("element-plus").FormItemProp, isValid: boolean, message: string) => any;
|
|
880
|
+
onValidate?: ((prop: import("element-plus").FormItemProp, isValid: boolean, message: string) => any) | undefined;
|
|
761
881
|
}>>;
|
|
762
882
|
emit: (event: "validate", prop: import("element-plus").FormItemProp, isValid: boolean, message: string) => void;
|
|
763
883
|
fields: import("element-plus").FormItemContext[];
|
|
764
884
|
formSize: import("vue").ComputedRef<"" | "default" | "small" | "large">;
|
|
765
885
|
ns: {
|
|
766
886
|
namespace: import("vue").ComputedRef<string>;
|
|
767
|
-
b: (blockSuffix?: string) => string;
|
|
768
|
-
e: (element?: string) => string;
|
|
769
|
-
m: (modifier?: string) => string;
|
|
770
|
-
be: (blockSuffix?: string, element?: string) => string;
|
|
771
|
-
em: (element?: string, modifier?: string) => string;
|
|
772
|
-
bm: (blockSuffix?: string, modifier?: string) => string;
|
|
773
|
-
bem: (blockSuffix?: string, element?: string, modifier?: string) => string;
|
|
887
|
+
b: (blockSuffix?: string | undefined) => string;
|
|
888
|
+
e: (element?: string | undefined) => string;
|
|
889
|
+
m: (modifier?: string | undefined) => string;
|
|
890
|
+
be: (blockSuffix?: string | undefined, element?: string | undefined) => string;
|
|
891
|
+
em: (element?: string | undefined, modifier?: string | undefined) => string;
|
|
892
|
+
bm: (blockSuffix?: string | undefined, modifier?: string | undefined) => string;
|
|
893
|
+
bem: (blockSuffix?: string | undefined, element?: string | undefined, modifier?: string | undefined) => string;
|
|
774
894
|
is: {
|
|
775
|
-
(name: string, state: boolean): string;
|
|
895
|
+
(name: string, state: boolean | undefined): string;
|
|
776
896
|
(name: string): string;
|
|
777
897
|
};
|
|
778
898
|
cssVar: (object: Record<string, string>) => Record<string, string>;
|
|
@@ -781,23 +901,24 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
781
901
|
cssVarBlockName: (name: string) => string;
|
|
782
902
|
};
|
|
783
903
|
formClasses: import("vue").ComputedRef<(string | {
|
|
784
|
-
[x: string]: boolean | import("element-plus/es/utils").EpPropMergeType<StringConstructor, "
|
|
904
|
+
[x: string]: boolean | import("element-plus/es/utils").EpPropMergeType<StringConstructor, "top" | "left" | "right", unknown>;
|
|
785
905
|
})[]>;
|
|
786
906
|
addField: (field: import("element-plus").FormItemContext) => void;
|
|
787
907
|
removeField: (field: import("element-plus").FormItemContext) => void;
|
|
788
|
-
resetFields: (props?: import("element-plus/es/utils").Arrayable<import("element-plus").FormItemProp>) => void;
|
|
789
|
-
clearValidate: (props?: import("element-plus/es/utils").Arrayable<import("element-plus").FormItemProp>) => void;
|
|
908
|
+
resetFields: (props?: import("element-plus/es/utils").Arrayable<import("element-plus").FormItemProp> | undefined) => void;
|
|
909
|
+
clearValidate: (props?: import("element-plus/es/utils").Arrayable<import("element-plus").FormItemProp> | undefined) => void;
|
|
790
910
|
isValidatable: import("vue").ComputedRef<boolean>;
|
|
791
911
|
obtainValidateFields: (props: import("element-plus/es/utils").Arrayable<import("element-plus").FormItemProp>) => import("element-plus").FormItemContext[];
|
|
792
|
-
validate: (callback?: import("element-plus").FormValidateCallback) => import("element-plus").FormValidationResult;
|
|
793
|
-
doValidateField: (props?: import("element-plus/es/utils").Arrayable<import("element-plus").FormItemProp>) => Promise<boolean>;
|
|
794
|
-
validateField: (props?: import("element-plus/es/utils").Arrayable<import("element-plus").FormItemProp
|
|
912
|
+
validate: (callback?: import("element-plus").FormValidateCallback | undefined) => import("element-plus").FormValidationResult;
|
|
913
|
+
doValidateField: (props?: import("element-plus/es/utils").Arrayable<import("element-plus").FormItemProp> | undefined) => Promise<boolean>;
|
|
914
|
+
validateField: (props?: import("element-plus/es/utils").Arrayable<import("element-plus").FormItemProp> | undefined, callback?: import("element-plus").FormValidateCallback | undefined) => import("element-plus").FormValidationResult;
|
|
795
915
|
scrollToField: (prop: import("element-plus").FormItemProp) => void;
|
|
796
916
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
797
917
|
validate: (prop: import("element-plus").FormItemProp, isValid: boolean, message: string) => boolean;
|
|
798
918
|
}, string, {
|
|
799
919
|
readonly disabled: boolean;
|
|
800
|
-
readonly labelPosition: import("element-plus/es/utils").EpPropMergeType<StringConstructor, "
|
|
920
|
+
readonly labelPosition: import("element-plus/es/utils").EpPropMergeType<StringConstructor, "top" | "left" | "right", unknown>;
|
|
921
|
+
readonly requireAsteriskPosition: import("element-plus/es/utils").EpPropMergeType<StringConstructor, "left" | "right", unknown>;
|
|
801
922
|
readonly labelWidth: import("element-plus/es/utils").EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
|
802
923
|
readonly labelSuffix: string;
|
|
803
924
|
readonly showMessage: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
@@ -807,53 +928,60 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
807
928
|
readonly inlineMessage: boolean;
|
|
808
929
|
readonly statusIcon: boolean;
|
|
809
930
|
readonly scrollToError: boolean;
|
|
810
|
-
}> & {
|
|
811
|
-
beforeCreate?: (() => void) | (() => void)[];
|
|
812
|
-
created?: (() => void) | (() => void)[];
|
|
813
|
-
beforeMount?: (() => void) | (() => void)[];
|
|
814
|
-
mounted?: (() => void) | (() => void)[];
|
|
815
|
-
beforeUpdate?: (() => void) | (() => void)[];
|
|
816
|
-
updated?: (() => void) | (() => void)[];
|
|
817
|
-
activated?: (() => void) | (() => void)[];
|
|
818
|
-
deactivated?: (() => void) | (() => void)[];
|
|
819
|
-
beforeDestroy?: (() => void) | (() => void)[];
|
|
820
|
-
beforeUnmount?: (() => void) | (() => void)[];
|
|
821
|
-
destroyed?: (() => void) | (() => void)[];
|
|
822
|
-
unmounted?: (() => void) | (() => void)[];
|
|
823
|
-
renderTracked?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
|
|
824
|
-
renderTriggered?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
|
|
825
|
-
errorCaptured?: ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}
|
|
931
|
+
}, {}, string> & {
|
|
932
|
+
beforeCreate?: ((() => void) | (() => void)[]) | undefined;
|
|
933
|
+
created?: ((() => void) | (() => void)[]) | undefined;
|
|
934
|
+
beforeMount?: ((() => void) | (() => void)[]) | undefined;
|
|
935
|
+
mounted?: ((() => void) | (() => void)[]) | undefined;
|
|
936
|
+
beforeUpdate?: ((() => void) | (() => void)[]) | undefined;
|
|
937
|
+
updated?: ((() => void) | (() => void)[]) | undefined;
|
|
938
|
+
activated?: ((() => void) | (() => void)[]) | undefined;
|
|
939
|
+
deactivated?: ((() => void) | (() => void)[]) | undefined;
|
|
940
|
+
beforeDestroy?: ((() => void) | (() => void)[]) | undefined;
|
|
941
|
+
beforeUnmount?: ((() => void) | (() => void)[]) | undefined;
|
|
942
|
+
destroyed?: ((() => void) | (() => void)[]) | undefined;
|
|
943
|
+
unmounted?: ((() => void) | (() => void)[]) | undefined;
|
|
944
|
+
renderTracked?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
|
|
945
|
+
renderTriggered?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
|
|
946
|
+
errorCaptured?: (((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null, info: string) => boolean | void)[]) | undefined;
|
|
826
947
|
};
|
|
827
948
|
$forceUpdate: () => void;
|
|
828
949
|
$nextTick: typeof import("vue").nextTick;
|
|
829
|
-
$watch
|
|
950
|
+
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (args_0: R, args_1: R) => any : (...args: any) => any, options?: import("vue").WatchOptions<boolean> | undefined): import("vue").WatchStopHandle;
|
|
830
951
|
} & Readonly<import("vue").ExtractPropTypes<{
|
|
831
952
|
readonly model: ObjectConstructor;
|
|
832
953
|
readonly rules: {
|
|
833
954
|
readonly type: import("vue").PropType<Partial<Record<string, import("element-plus/es/utils").Arrayable<import("element-plus").FormItemRule>>>>;
|
|
834
955
|
readonly required: false;
|
|
835
|
-
readonly validator: (val: unknown) => boolean;
|
|
956
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
836
957
|
__epPropKey: true;
|
|
837
958
|
};
|
|
838
|
-
readonly labelPosition: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "
|
|
959
|
+
readonly labelPosition: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "top" | "left" | "right", unknown, "right", boolean>;
|
|
960
|
+
readonly requireAsteriskPosition: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "left" | "right", unknown, "left", boolean>;
|
|
839
961
|
readonly labelWidth: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, "", boolean>;
|
|
840
962
|
readonly labelSuffix: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
841
963
|
readonly inline: BooleanConstructor;
|
|
842
964
|
readonly inlineMessage: BooleanConstructor;
|
|
843
965
|
readonly statusIcon: BooleanConstructor;
|
|
844
966
|
readonly showMessage: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
967
|
+
readonly validateOnRuleChange: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
968
|
+
readonly hideRequiredAsterisk: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
969
|
+
readonly scrollToError: BooleanConstructor;
|
|
970
|
+
readonly scrollIntoViewOptions: {
|
|
971
|
+
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<readonly [ObjectConstructor, BooleanConstructor], unknown, unknown>>;
|
|
972
|
+
readonly required: false;
|
|
973
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
974
|
+
__epPropKey: true;
|
|
975
|
+
};
|
|
845
976
|
readonly size: {
|
|
846
977
|
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "default" | "small" | "large", unknown>>;
|
|
847
978
|
readonly required: false;
|
|
848
|
-
readonly validator: (val: unknown) => boolean;
|
|
979
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
849
980
|
__epPropKey: true;
|
|
850
981
|
};
|
|
851
982
|
readonly disabled: BooleanConstructor;
|
|
852
|
-
readonly validateOnRuleChange: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
853
|
-
readonly hideRequiredAsterisk: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
854
|
-
readonly scrollToError: BooleanConstructor;
|
|
855
983
|
}>> & {
|
|
856
|
-
onValidate?: (prop: import("element-plus").FormItemProp, isValid: boolean, message: string) => any;
|
|
984
|
+
onValidate?: ((prop: import("element-plus").FormItemProp, isValid: boolean, message: string) => any) | undefined;
|
|
857
985
|
} & import("vue").ShallowUnwrapRef<{
|
|
858
986
|
COMPONENT_NAME: string;
|
|
859
987
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
@@ -861,43 +989,50 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
861
989
|
readonly rules: {
|
|
862
990
|
readonly type: import("vue").PropType<Partial<Record<string, import("element-plus/es/utils").Arrayable<import("element-plus").FormItemRule>>>>;
|
|
863
991
|
readonly required: false;
|
|
864
|
-
readonly validator: (val: unknown) => boolean;
|
|
992
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
865
993
|
__epPropKey: true;
|
|
866
994
|
};
|
|
867
|
-
readonly labelPosition: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "
|
|
995
|
+
readonly labelPosition: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "top" | "left" | "right", unknown, "right", boolean>;
|
|
996
|
+
readonly requireAsteriskPosition: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "left" | "right", unknown, "left", boolean>;
|
|
868
997
|
readonly labelWidth: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, "", boolean>;
|
|
869
998
|
readonly labelSuffix: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
870
999
|
readonly inline: BooleanConstructor;
|
|
871
1000
|
readonly inlineMessage: BooleanConstructor;
|
|
872
1001
|
readonly statusIcon: BooleanConstructor;
|
|
873
1002
|
readonly showMessage: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
1003
|
+
readonly validateOnRuleChange: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
1004
|
+
readonly hideRequiredAsterisk: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
1005
|
+
readonly scrollToError: BooleanConstructor;
|
|
1006
|
+
readonly scrollIntoViewOptions: {
|
|
1007
|
+
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<readonly [ObjectConstructor, BooleanConstructor], unknown, unknown>>;
|
|
1008
|
+
readonly required: false;
|
|
1009
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
1010
|
+
__epPropKey: true;
|
|
1011
|
+
};
|
|
874
1012
|
readonly size: {
|
|
875
1013
|
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "default" | "small" | "large", unknown>>;
|
|
876
1014
|
readonly required: false;
|
|
877
|
-
readonly validator: (val: unknown) => boolean;
|
|
1015
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
878
1016
|
__epPropKey: true;
|
|
879
1017
|
};
|
|
880
1018
|
readonly disabled: BooleanConstructor;
|
|
881
|
-
readonly validateOnRuleChange: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
882
|
-
readonly hideRequiredAsterisk: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
883
|
-
readonly scrollToError: BooleanConstructor;
|
|
884
1019
|
}>> & {
|
|
885
|
-
onValidate?: (prop: import("element-plus").FormItemProp, isValid: boolean, message: string) => any;
|
|
1020
|
+
onValidate?: ((prop: import("element-plus").FormItemProp, isValid: boolean, message: string) => any) | undefined;
|
|
886
1021
|
}>>;
|
|
887
1022
|
emit: (event: "validate", prop: import("element-plus").FormItemProp, isValid: boolean, message: string) => void;
|
|
888
1023
|
fields: import("element-plus").FormItemContext[];
|
|
889
1024
|
formSize: import("vue").ComputedRef<"" | "default" | "small" | "large">;
|
|
890
1025
|
ns: {
|
|
891
1026
|
namespace: import("vue").ComputedRef<string>;
|
|
892
|
-
b: (blockSuffix?: string) => string;
|
|
893
|
-
e: (element?: string) => string;
|
|
894
|
-
m: (modifier?: string) => string;
|
|
895
|
-
be: (blockSuffix?: string, element?: string) => string;
|
|
896
|
-
em: (element?: string, modifier?: string) => string;
|
|
897
|
-
bm: (blockSuffix?: string, modifier?: string) => string;
|
|
898
|
-
bem: (blockSuffix?: string, element?: string, modifier?: string) => string;
|
|
1027
|
+
b: (blockSuffix?: string | undefined) => string;
|
|
1028
|
+
e: (element?: string | undefined) => string;
|
|
1029
|
+
m: (modifier?: string | undefined) => string;
|
|
1030
|
+
be: (blockSuffix?: string | undefined, element?: string | undefined) => string;
|
|
1031
|
+
em: (element?: string | undefined, modifier?: string | undefined) => string;
|
|
1032
|
+
bm: (blockSuffix?: string | undefined, modifier?: string | undefined) => string;
|
|
1033
|
+
bem: (blockSuffix?: string | undefined, element?: string | undefined, modifier?: string | undefined) => string;
|
|
899
1034
|
is: {
|
|
900
|
-
(name: string, state: boolean): string;
|
|
1035
|
+
(name: string, state: boolean | undefined): string;
|
|
901
1036
|
(name: string): string;
|
|
902
1037
|
};
|
|
903
1038
|
cssVar: (object: Record<string, string>) => Record<string, string>;
|
|
@@ -906,24 +1041,26 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
906
1041
|
cssVarBlockName: (name: string) => string;
|
|
907
1042
|
};
|
|
908
1043
|
formClasses: import("vue").ComputedRef<(string | {
|
|
909
|
-
[x: string]: boolean | import("element-plus/es/utils").EpPropMergeType<StringConstructor, "
|
|
1044
|
+
[x: string]: boolean | import("element-plus/es/utils").EpPropMergeType<StringConstructor, "top" | "left" | "right", unknown>;
|
|
910
1045
|
})[]>;
|
|
911
1046
|
addField: (field: import("element-plus").FormItemContext) => void;
|
|
912
1047
|
removeField: (field: import("element-plus").FormItemContext) => void;
|
|
913
|
-
resetFields: (props?: import("element-plus/es/utils").Arrayable<import("element-plus").FormItemProp>) => void;
|
|
914
|
-
clearValidate: (props?: import("element-plus/es/utils").Arrayable<import("element-plus").FormItemProp>) => void;
|
|
1048
|
+
resetFields: (props?: import("element-plus/es/utils").Arrayable<import("element-plus").FormItemProp> | undefined) => void;
|
|
1049
|
+
clearValidate: (props?: import("element-plus/es/utils").Arrayable<import("element-plus").FormItemProp> | undefined) => void;
|
|
915
1050
|
isValidatable: import("vue").ComputedRef<boolean>;
|
|
916
1051
|
obtainValidateFields: (props: import("element-plus/es/utils").Arrayable<import("element-plus").FormItemProp>) => import("element-plus").FormItemContext[];
|
|
917
|
-
validate: (callback?: import("element-plus").FormValidateCallback) => import("element-plus").FormValidationResult;
|
|
918
|
-
doValidateField: (props?: import("element-plus/es/utils").Arrayable<import("element-plus").FormItemProp>) => Promise<boolean>;
|
|
919
|
-
validateField: (props?: import("element-plus/es/utils").Arrayable<import("element-plus").FormItemProp
|
|
1052
|
+
validate: (callback?: import("element-plus").FormValidateCallback | undefined) => import("element-plus").FormValidationResult;
|
|
1053
|
+
doValidateField: (props?: import("element-plus/es/utils").Arrayable<import("element-plus").FormItemProp> | undefined) => Promise<boolean>;
|
|
1054
|
+
validateField: (props?: import("element-plus/es/utils").Arrayable<import("element-plus").FormItemProp> | undefined, callback?: import("element-plus").FormValidateCallback | undefined) => import("element-plus").FormValidationResult;
|
|
920
1055
|
scrollToField: (prop: import("element-plus").FormItemProp) => void;
|
|
921
|
-
}> & {} & import("vue").ComponentCustomProperties) => any;
|
|
922
|
-
|
|
1056
|
+
}> & {} & import("vue").ComponentCustomProperties & {}) => any;
|
|
1057
|
+
inline: boolean;
|
|
1058
|
+
readonly: boolean;
|
|
1059
|
+
data: Record<string, any>;
|
|
923
1060
|
disabled: boolean;
|
|
924
|
-
labelPosition: import("element-plus/es/utils").EpPropMergeType<StringConstructor, "
|
|
1061
|
+
labelPosition: import("element-plus/es/utils").EpPropMergeType<StringConstructor, "top" | "left" | "right", unknown>;
|
|
1062
|
+
requireAsteriskPosition: import("element-plus/es/utils").EpPropMergeType<StringConstructor, "left" | "right", unknown>;
|
|
925
1063
|
labelSuffix: string;
|
|
926
|
-
inline: boolean;
|
|
927
1064
|
statusIcon: boolean;
|
|
928
1065
|
validateOnRuleChange: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
929
1066
|
hideRequiredAsterisk: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|