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