@vunk/form 0.0.1-alpha.5 → 0.0.1-alpha.51
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 +7 -0
- package/components/button/src/types.js +1 -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 +1 -0
- package/components/cascader/src/types.js +1 -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 +1 -0
- package/components/checkbox/src/types.js +1 -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 +74 -0
- package/components/color-picker/src/ctx.js +23 -0
- package/components/color-picker/src/index.vue.d.ts +196 -0
- package/components/color-picker/src/types.d.ts +1 -0
- package/components/color-picker/src/types.js +1 -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 +183 -153
- package/components/date-picker/src/types.d.ts +7 -7
- package/components/firt-ep/index.d.ts +4 -0
- package/components/firt-ep/index.js +80 -0
- package/components/firt-ep/src/ctx.d.ts +9 -0
- package/components/firt-ep/src/ctx.js +9 -0
- package/components/firt-ep/src/index.vue.d.ts +19 -0
- package/components/firt-ep/src/types.d.ts +1 -0
- package/components/firt-ep/src/types.js +1 -0
- package/components/form/index.d.ts +1 -0
- package/components/form/index.js +40 -15
- 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 +432 -295
- 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 +8 -8
- 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/form-item-renderer-template-default/index.js +130 -31
- package/components/form-item-renderer-template-default/src/index.vue.d.ts +7 -7
- package/components/form-item-renderer-template-layout/index.css +1 -3
- package/components/form-item-renderer-template-layout/index.js +48 -31
- package/components/form-item-renderer-template-layout/src/ctx.d.ts +3 -2
- package/components/form-item-renderer-template-layout/src/ctx.js +1 -1
- package/components/form-item-renderer-template-layout/src/index.vue.d.ts +18 -6
- package/components/input/index.js +39 -14
- package/components/input/src/ctx.d.ts +96 -49
- package/components/input/src/ctx.js +13 -1
- package/components/input/src/index.vue.d.ts +234 -128
- package/components/input-number/index.css +17 -0
- package/components/input-number/index.js +46 -14
- package/components/input-number/src/ctx.d.ts +28 -16
- package/components/input-number/src/ctx.js +13 -1
- package/components/input-number/src/index.vue.d.ts +104 -44
- 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 +1 -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 +47 -35
- package/components/select/src/ctx.js +4 -0
- package/components/select/src/index.vue.d.ts +206 -129
- package/components/switch/index.css +11 -0
- package/components/switch/index.js +44 -16
- package/components/switch/src/ctx.d.ts +46 -11
- package/components/switch/src/ctx.js +13 -2
- package/components/switch/src/index.vue.d.ts +147 -37
- package/components/upload/index.css +29 -0
- package/components/upload/index.d.ts +5 -0
- package/components/upload/index.js +605 -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 +1 -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 +146 -2
- package/index.d.ts +1 -0
- package/index.esm.js +4 -1
- package/package.json +4 -1
- package/shared/default-renderer-source/index.d.ts +12 -0
- package/shared/default-renderer-source/index.js +83 -0
- package/shared/element-plus/ctx.d.ts +86 -13
- package/shared/element-plus/index.js +18186 -35
- package/shared/element-plus/instances.d.ts +128 -27
- 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/basic-source/index.d.ts +7 -0
- package/shared/types/basic-source/index.js +1 -0
- package/shared/types/ep-source/el-divider.d.ts +7 -0
- package/shared/types/ep-source/el-link.d.ts +8 -0
- package/shared/types/ep-source/index.d.ts +3 -0
- package/shared/types/ep-source/index.js +1 -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 +2 -0
- package/shared/types/layout-source/index.d.ts +4 -3
- package/shared/types/renderer-source/button.d.ts +7 -0
- package/shared/types/renderer-source/cascader.d.ts +7 -0
- package/shared/types/renderer-source/checkbox.d.ts +7 -0
- package/shared/types/renderer-source/color-picker.d.ts +7 -0
- package/shared/types/renderer-source/compoent.d.ts +3 -0
- package/shared/types/renderer-source/date-picker.d.ts +3 -2
- package/shared/types/renderer-source/index.d.ts +13 -1
- package/shared/types/renderer-source/input-number.d.ts +3 -2
- package/shared/types/renderer-source/input.d.ts +3 -2
- package/shared/types/renderer-source/radio.d.ts +7 -0
- package/shared/types/renderer-source/select.d.ts +3 -2
- package/shared/types/renderer-source/switch.d.ts +3 -2
- package/shared/types/renderer-source/upload.d.ts +7 -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, "
|
|
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
|
-
rules: Partial<Record<string, import("element-plus/es/utils").Arrayable<import("element-plus").FormItemRule>>>;
|
|
313
|
-
labelPosition: import("element-plus/es/utils").EpPropMergeType<StringConstructor, "left" | "right" | "top", unknown>;
|
|
314
360
|
labelWidth: import("element-plus/es/utils").EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
|
315
|
-
|
|
316
|
-
inline: boolean;
|
|
361
|
+
rules: Partial<Record<string, import("element-plus/es/utils").Arrayable<import("element-plus").FormItemRule>>> | undefined;
|
|
317
362
|
inlineMessage: boolean;
|
|
318
|
-
statusIcon: boolean;
|
|
319
363
|
showMessage: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
320
|
-
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;
|
|
321
366
|
disabled: boolean;
|
|
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>;
|
|
369
|
+
labelSuffix: string;
|
|
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, "
|
|
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,67 +691,66 @@ 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
|
-
labelPosition: import("element-plus/es/utils").EpPropMergeType<StringConstructor, "left" | "right" | "top", unknown>;
|
|
647
744
|
labelWidth: import("element-plus/es/utils").EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
|
648
|
-
labelSuffix: string;
|
|
649
|
-
inline: boolean;
|
|
650
745
|
inlineMessage: boolean;
|
|
651
|
-
statusIcon: boolean;
|
|
652
746
|
showMessage: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
653
|
-
disabled: boolean;
|
|
654
|
-
validateOnRuleChange: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
655
|
-
hideRequiredAsterisk: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
656
|
-
scrollToError: boolean;
|
|
657
|
-
data: {};
|
|
658
747
|
elRef: (arg: {
|
|
659
748
|
$: import("vue").ComponentInternalInstance;
|
|
660
749
|
$data: {};
|
|
661
750
|
$props: Partial<{
|
|
662
751
|
readonly disabled: boolean;
|
|
663
|
-
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>;
|
|
664
754
|
readonly labelWidth: import("element-plus/es/utils").EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
|
665
755
|
readonly labelSuffix: string;
|
|
666
756
|
readonly showMessage: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
@@ -675,29 +765,36 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
675
765
|
readonly rules: {
|
|
676
766
|
readonly type: import("vue").PropType<Partial<Record<string, import("element-plus/es/utils").Arrayable<import("element-plus").FormItemRule>>>>;
|
|
677
767
|
readonly required: false;
|
|
678
|
-
readonly validator: (val: unknown) => boolean;
|
|
768
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
679
769
|
__epPropKey: true;
|
|
680
770
|
};
|
|
681
|
-
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>;
|
|
682
773
|
readonly labelWidth: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, "", boolean>;
|
|
683
774
|
readonly labelSuffix: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
684
775
|
readonly inline: BooleanConstructor;
|
|
685
776
|
readonly inlineMessage: BooleanConstructor;
|
|
686
777
|
readonly statusIcon: BooleanConstructor;
|
|
687
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
|
+
};
|
|
688
788
|
readonly size: {
|
|
689
789
|
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "default" | "small" | "large", unknown>>;
|
|
690
790
|
readonly required: false;
|
|
691
|
-
readonly validator: (val: unknown) => boolean;
|
|
791
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
692
792
|
__epPropKey: true;
|
|
693
793
|
};
|
|
694
794
|
readonly disabled: BooleanConstructor;
|
|
695
|
-
readonly validateOnRuleChange: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
696
|
-
readonly hideRequiredAsterisk: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
697
|
-
readonly scrollToError: BooleanConstructor;
|
|
698
795
|
}>> & {
|
|
699
|
-
onValidate?: (prop: import("element-plus").FormItemProp, isValid: boolean, message: string) => any;
|
|
700
|
-
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "
|
|
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">;
|
|
701
798
|
$attrs: {
|
|
702
799
|
[x: string]: unknown;
|
|
703
800
|
};
|
|
@@ -705,10 +802,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
705
802
|
[x: string]: unknown;
|
|
706
803
|
};
|
|
707
804
|
$slots: Readonly<{
|
|
708
|
-
[name: string]: import("vue").Slot;
|
|
805
|
+
[name: string]: import("vue").Slot | undefined;
|
|
709
806
|
}>;
|
|
710
|
-
$root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}
|
|
711
|
-
$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;
|
|
712
809
|
$emit: (event: "validate", prop: import("element-plus").FormItemProp, isValid: boolean, message: string) => void;
|
|
713
810
|
$el: any;
|
|
714
811
|
$options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
|
@@ -716,28 +813,35 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
716
813
|
readonly rules: {
|
|
717
814
|
readonly type: import("vue").PropType<Partial<Record<string, import("element-plus/es/utils").Arrayable<import("element-plus").FormItemRule>>>>;
|
|
718
815
|
readonly required: false;
|
|
719
|
-
readonly validator: (val: unknown) => boolean;
|
|
816
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
720
817
|
__epPropKey: true;
|
|
721
818
|
};
|
|
722
|
-
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>;
|
|
723
821
|
readonly labelWidth: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, "", boolean>;
|
|
724
822
|
readonly labelSuffix: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
725
823
|
readonly inline: BooleanConstructor;
|
|
726
824
|
readonly inlineMessage: BooleanConstructor;
|
|
727
825
|
readonly statusIcon: BooleanConstructor;
|
|
728
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
|
+
};
|
|
729
836
|
readonly size: {
|
|
730
837
|
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "default" | "small" | "large", unknown>>;
|
|
731
838
|
readonly required: false;
|
|
732
|
-
readonly validator: (val: unknown) => boolean;
|
|
839
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
733
840
|
__epPropKey: true;
|
|
734
841
|
};
|
|
735
842
|
readonly disabled: BooleanConstructor;
|
|
736
|
-
readonly validateOnRuleChange: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
737
|
-
readonly hideRequiredAsterisk: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
738
|
-
readonly scrollToError: BooleanConstructor;
|
|
739
843
|
}>> & {
|
|
740
|
-
onValidate?: (prop: import("element-plus").FormItemProp, isValid: boolean, message: string) => any;
|
|
844
|
+
onValidate?: ((prop: import("element-plus").FormItemProp, isValid: boolean, message: string) => any) | undefined;
|
|
741
845
|
}, {
|
|
742
846
|
COMPONENT_NAME: string;
|
|
743
847
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
@@ -745,43 +849,50 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
745
849
|
readonly rules: {
|
|
746
850
|
readonly type: import("vue").PropType<Partial<Record<string, import("element-plus/es/utils").Arrayable<import("element-plus").FormItemRule>>>>;
|
|
747
851
|
readonly required: false;
|
|
748
|
-
readonly validator: (val: unknown) => boolean;
|
|
852
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
749
853
|
__epPropKey: true;
|
|
750
854
|
};
|
|
751
|
-
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>;
|
|
752
857
|
readonly labelWidth: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, "", boolean>;
|
|
753
858
|
readonly labelSuffix: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
754
859
|
readonly inline: BooleanConstructor;
|
|
755
860
|
readonly inlineMessage: BooleanConstructor;
|
|
756
861
|
readonly statusIcon: BooleanConstructor;
|
|
757
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
|
+
};
|
|
758
872
|
readonly size: {
|
|
759
873
|
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "default" | "small" | "large", unknown>>;
|
|
760
874
|
readonly required: false;
|
|
761
|
-
readonly validator: (val: unknown) => boolean;
|
|
875
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
762
876
|
__epPropKey: true;
|
|
763
877
|
};
|
|
764
878
|
readonly disabled: BooleanConstructor;
|
|
765
|
-
readonly validateOnRuleChange: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
766
|
-
readonly hideRequiredAsterisk: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
767
|
-
readonly scrollToError: BooleanConstructor;
|
|
768
879
|
}>> & {
|
|
769
|
-
onValidate?: (prop: import("element-plus").FormItemProp, isValid: boolean, message: string) => any;
|
|
880
|
+
onValidate?: ((prop: import("element-plus").FormItemProp, isValid: boolean, message: string) => any) | undefined;
|
|
770
881
|
}>>;
|
|
771
882
|
emit: (event: "validate", prop: import("element-plus").FormItemProp, isValid: boolean, message: string) => void;
|
|
772
883
|
fields: import("element-plus").FormItemContext[];
|
|
773
884
|
formSize: import("vue").ComputedRef<"" | "default" | "small" | "large">;
|
|
774
885
|
ns: {
|
|
775
886
|
namespace: import("vue").ComputedRef<string>;
|
|
776
|
-
b: (blockSuffix?: string) => string;
|
|
777
|
-
e: (element?: string) => string;
|
|
778
|
-
m: (modifier?: string) => string;
|
|
779
|
-
be: (blockSuffix?: string, element?: string) => string;
|
|
780
|
-
em: (element?: string, modifier?: string) => string;
|
|
781
|
-
bm: (blockSuffix?: string, modifier?: string) => string;
|
|
782
|
-
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;
|
|
783
894
|
is: {
|
|
784
|
-
(name: string, state: boolean): string;
|
|
895
|
+
(name: string, state: boolean | undefined): string;
|
|
785
896
|
(name: string): string;
|
|
786
897
|
};
|
|
787
898
|
cssVar: (object: Record<string, string>) => Record<string, string>;
|
|
@@ -790,23 +901,24 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
790
901
|
cssVarBlockName: (name: string) => string;
|
|
791
902
|
};
|
|
792
903
|
formClasses: import("vue").ComputedRef<(string | {
|
|
793
|
-
[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>;
|
|
794
905
|
})[]>;
|
|
795
906
|
addField: (field: import("element-plus").FormItemContext) => void;
|
|
796
907
|
removeField: (field: import("element-plus").FormItemContext) => void;
|
|
797
|
-
resetFields: (props?: import("element-plus/es/utils").Arrayable<import("element-plus").FormItemProp>) => void;
|
|
798
|
-
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;
|
|
799
910
|
isValidatable: import("vue").ComputedRef<boolean>;
|
|
800
911
|
obtainValidateFields: (props: import("element-plus/es/utils").Arrayable<import("element-plus").FormItemProp>) => import("element-plus").FormItemContext[];
|
|
801
|
-
validate: (callback?: import("element-plus").FormValidateCallback) => import("element-plus").FormValidationResult;
|
|
802
|
-
doValidateField: (props?: import("element-plus/es/utils").Arrayable<import("element-plus").FormItemProp>) => Promise<boolean>;
|
|
803
|
-
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;
|
|
804
915
|
scrollToField: (prop: import("element-plus").FormItemProp) => void;
|
|
805
916
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
806
917
|
validate: (prop: import("element-plus").FormItemProp, isValid: boolean, message: string) => boolean;
|
|
807
918
|
}, string, {
|
|
808
919
|
readonly disabled: boolean;
|
|
809
|
-
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>;
|
|
810
922
|
readonly labelWidth: import("element-plus/es/utils").EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
|
811
923
|
readonly labelSuffix: string;
|
|
812
924
|
readonly showMessage: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
@@ -816,53 +928,60 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
816
928
|
readonly inlineMessage: boolean;
|
|
817
929
|
readonly statusIcon: boolean;
|
|
818
930
|
readonly scrollToError: boolean;
|
|
819
|
-
}> & {
|
|
820
|
-
beforeCreate?: (() => void) | (() => void)[];
|
|
821
|
-
created?: (() => void) | (() => void)[];
|
|
822
|
-
beforeMount?: (() => void) | (() => void)[];
|
|
823
|
-
mounted?: (() => void) | (() => void)[];
|
|
824
|
-
beforeUpdate?: (() => void) | (() => void)[];
|
|
825
|
-
updated?: (() => void) | (() => void)[];
|
|
826
|
-
activated?: (() => void) | (() => void)[];
|
|
827
|
-
deactivated?: (() => void) | (() => void)[];
|
|
828
|
-
beforeDestroy?: (() => void) | (() => void)[];
|
|
829
|
-
beforeUnmount?: (() => void) | (() => void)[];
|
|
830
|
-
destroyed?: (() => void) | (() => void)[];
|
|
831
|
-
unmounted?: (() => void) | (() => void)[];
|
|
832
|
-
renderTracked?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
|
|
833
|
-
renderTriggered?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
|
|
834
|
-
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;
|
|
835
947
|
};
|
|
836
948
|
$forceUpdate: () => void;
|
|
837
949
|
$nextTick: typeof import("vue").nextTick;
|
|
838
|
-
$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;
|
|
839
951
|
} & Readonly<import("vue").ExtractPropTypes<{
|
|
840
952
|
readonly model: ObjectConstructor;
|
|
841
953
|
readonly rules: {
|
|
842
954
|
readonly type: import("vue").PropType<Partial<Record<string, import("element-plus/es/utils").Arrayable<import("element-plus").FormItemRule>>>>;
|
|
843
955
|
readonly required: false;
|
|
844
|
-
readonly validator: (val: unknown) => boolean;
|
|
956
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
845
957
|
__epPropKey: true;
|
|
846
958
|
};
|
|
847
|
-
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>;
|
|
848
961
|
readonly labelWidth: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, "", boolean>;
|
|
849
962
|
readonly labelSuffix: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
850
963
|
readonly inline: BooleanConstructor;
|
|
851
964
|
readonly inlineMessage: BooleanConstructor;
|
|
852
965
|
readonly statusIcon: BooleanConstructor;
|
|
853
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
|
+
};
|
|
854
976
|
readonly size: {
|
|
855
977
|
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "default" | "small" | "large", unknown>>;
|
|
856
978
|
readonly required: false;
|
|
857
|
-
readonly validator: (val: unknown) => boolean;
|
|
979
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
858
980
|
__epPropKey: true;
|
|
859
981
|
};
|
|
860
982
|
readonly disabled: BooleanConstructor;
|
|
861
|
-
readonly validateOnRuleChange: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
862
|
-
readonly hideRequiredAsterisk: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
863
|
-
readonly scrollToError: BooleanConstructor;
|
|
864
983
|
}>> & {
|
|
865
|
-
onValidate?: (prop: import("element-plus").FormItemProp, isValid: boolean, message: string) => any;
|
|
984
|
+
onValidate?: ((prop: import("element-plus").FormItemProp, isValid: boolean, message: string) => any) | undefined;
|
|
866
985
|
} & import("vue").ShallowUnwrapRef<{
|
|
867
986
|
COMPONENT_NAME: string;
|
|
868
987
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
@@ -870,43 +989,50 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
870
989
|
readonly rules: {
|
|
871
990
|
readonly type: import("vue").PropType<Partial<Record<string, import("element-plus/es/utils").Arrayable<import("element-plus").FormItemRule>>>>;
|
|
872
991
|
readonly required: false;
|
|
873
|
-
readonly validator: (val: unknown) => boolean;
|
|
992
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
874
993
|
__epPropKey: true;
|
|
875
994
|
};
|
|
876
|
-
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>;
|
|
877
997
|
readonly labelWidth: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, "", boolean>;
|
|
878
998
|
readonly labelSuffix: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
879
999
|
readonly inline: BooleanConstructor;
|
|
880
1000
|
readonly inlineMessage: BooleanConstructor;
|
|
881
1001
|
readonly statusIcon: BooleanConstructor;
|
|
882
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
|
+
};
|
|
883
1012
|
readonly size: {
|
|
884
1013
|
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "default" | "small" | "large", unknown>>;
|
|
885
1014
|
readonly required: false;
|
|
886
|
-
readonly validator: (val: unknown) => boolean;
|
|
1015
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
887
1016
|
__epPropKey: true;
|
|
888
1017
|
};
|
|
889
1018
|
readonly disabled: BooleanConstructor;
|
|
890
|
-
readonly validateOnRuleChange: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
891
|
-
readonly hideRequiredAsterisk: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
892
|
-
readonly scrollToError: BooleanConstructor;
|
|
893
1019
|
}>> & {
|
|
894
|
-
onValidate?: (prop: import("element-plus").FormItemProp, isValid: boolean, message: string) => any;
|
|
1020
|
+
onValidate?: ((prop: import("element-plus").FormItemProp, isValid: boolean, message: string) => any) | undefined;
|
|
895
1021
|
}>>;
|
|
896
1022
|
emit: (event: "validate", prop: import("element-plus").FormItemProp, isValid: boolean, message: string) => void;
|
|
897
1023
|
fields: import("element-plus").FormItemContext[];
|
|
898
1024
|
formSize: import("vue").ComputedRef<"" | "default" | "small" | "large">;
|
|
899
1025
|
ns: {
|
|
900
1026
|
namespace: import("vue").ComputedRef<string>;
|
|
901
|
-
b: (blockSuffix?: string) => string;
|
|
902
|
-
e: (element?: string) => string;
|
|
903
|
-
m: (modifier?: string) => string;
|
|
904
|
-
be: (blockSuffix?: string, element?: string) => string;
|
|
905
|
-
em: (element?: string, modifier?: string) => string;
|
|
906
|
-
bm: (blockSuffix?: string, modifier?: string) => string;
|
|
907
|
-
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;
|
|
908
1034
|
is: {
|
|
909
|
-
(name: string, state: boolean): string;
|
|
1035
|
+
(name: string, state: boolean | undefined): string;
|
|
910
1036
|
(name: string): string;
|
|
911
1037
|
};
|
|
912
1038
|
cssVar: (object: Record<string, string>) => Record<string, string>;
|
|
@@ -915,19 +1041,30 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
915
1041
|
cssVarBlockName: (name: string) => string;
|
|
916
1042
|
};
|
|
917
1043
|
formClasses: import("vue").ComputedRef<(string | {
|
|
918
|
-
[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>;
|
|
919
1045
|
})[]>;
|
|
920
1046
|
addField: (field: import("element-plus").FormItemContext) => void;
|
|
921
1047
|
removeField: (field: import("element-plus").FormItemContext) => void;
|
|
922
|
-
resetFields: (props?: import("element-plus/es/utils").Arrayable<import("element-plus").FormItemProp>) => void;
|
|
923
|
-
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;
|
|
924
1050
|
isValidatable: import("vue").ComputedRef<boolean>;
|
|
925
1051
|
obtainValidateFields: (props: import("element-plus/es/utils").Arrayable<import("element-plus").FormItemProp>) => import("element-plus").FormItemContext[];
|
|
926
|
-
validate: (callback?: import("element-plus").FormValidateCallback) => import("element-plus").FormValidationResult;
|
|
927
|
-
doValidateField: (props?: import("element-plus/es/utils").Arrayable<import("element-plus").FormItemProp>) => Promise<boolean>;
|
|
928
|
-
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;
|
|
929
1055
|
scrollToField: (prop: import("element-plus").FormItemProp) => void;
|
|
930
|
-
}> & {} & import("vue").ComponentCustomProperties) => any;
|
|
1056
|
+
}> & {} & import("vue").ComponentCustomProperties & {}) => any;
|
|
1057
|
+
inline: boolean;
|
|
1058
|
+
readonly: boolean;
|
|
1059
|
+
data: Record<string, any>;
|
|
1060
|
+
disabled: boolean;
|
|
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>;
|
|
1063
|
+
labelSuffix: string;
|
|
1064
|
+
statusIcon: boolean;
|
|
1065
|
+
validateOnRuleChange: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
1066
|
+
hideRequiredAsterisk: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
1067
|
+
scrollToError: boolean;
|
|
931
1068
|
formItems: any[];
|
|
932
1069
|
}>;
|
|
933
1070
|
export default _default;
|