@vunk/form 0.0.1-alpha.2 → 0.0.1-alpha.20
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 +82 -0
- package/components/button/src/ctx.js +39 -0
- package/components/button/src/index.vue.d.ts +222 -0
- package/components/button/src/types.d.ts +7 -0
- package/components/button/src/types.js +1 -0
- package/components/checkbox/index.d.ts +4 -0
- package/components/checkbox/index.js +116 -0
- package/components/checkbox/src/ctx.d.ts +103 -0
- package/components/checkbox/src/ctx.js +43 -0
- package/components/checkbox/src/index.vue.d.ts +260 -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 +70 -0
- package/components/color-picker/src/ctx.js +23 -0
- package/components/color-picker/src/index.vue.d.ts +186 -0
- package/components/color-picker/src/types.d.ts +1 -0
- package/components/color-picker/src/types.js +1 -0
- package/components/date-picker/src/ctx.d.ts +28 -24
- package/components/date-picker/src/index.vue.d.ts +113 -89
- package/components/date-picker/src/types.d.ts +7 -7
- package/components/form/index.js +10 -3
- package/components/form/src/ctx.d.ts +80 -77
- package/components/form/src/index.vue.d.ts +231 -229
- package/components/form-item/index.css +4 -0
- package/components/form-item/index.js +10 -2
- package/components/form-item/src/ctx.d.ts +11 -7
- package/components/form-item/src/ctx.js +4 -0
- package/components/form-item/src/index.vue.d.ts +33 -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 +112 -19
- package/components/form-item-renderer-template-default/src/index.vue.d.ts +6 -6
- 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 +18 -2
- package/components/input/src/ctx.d.ts +44 -15
- package/components/input/src/ctx.js +12 -0
- package/components/input/src/index.vue.d.ts +133 -60
- package/components/input-number/index.d.ts +4 -0
- package/components/input-number/index.js +67 -0
- package/components/input-number/src/ctx.d.ts +75 -0
- package/components/input-number/src/ctx.js +23 -0
- package/components/input-number/src/index.vue.d.ts +208 -0
- package/components/input-number/src/types.d.ts +1 -0
- package/components/input-number/src/types.js +1 -0
- package/components/radio/index.d.ts +4 -0
- package/components/radio/index.js +107 -0
- package/components/radio/src/ctx.d.ts +70 -0
- package/components/radio/src/ctx.js +35 -0
- package/components/radio/src/index.vue.d.ts +189 -0
- package/components/radio/src/types.d.ts +1 -0
- package/components/radio/src/types.js +1 -0
- package/components/select/index.js +13 -4
- package/components/select/src/ctx.d.ts +29 -25
- package/components/select/src/index.vue.d.ts +176 -118
- package/components/switch/index.js +29 -12
- package/components/switch/src/ctx.d.ts +32 -9
- package/components/switch/src/ctx.js +15 -2
- package/components/switch/src/index.vue.d.ts +118 -32
- package/components/upload/index.css +10 -0
- package/components/upload/index.d.ts +4 -0
- package/components/upload/index.js +473 -0
- package/components/upload/src/ctx.d.ts +164 -0
- package/components/upload/src/ctx.js +38 -0
- package/components/upload/src/file.vue.d.ts +96 -0
- package/components/upload/src/index.vue.d.ts +412 -0
- package/components/upload/src/types.d.ts +1 -0
- package/components/upload/src/types.js +1 -0
- package/index.css +16 -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 -11
- package/shared/element-plus/index.js +51 -2
- package/shared/element-plus/instances.d.ts +56 -26
- package/shared/types/basic-source/index.d.ts +6 -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 +2 -0
- package/shared/types/renderer-source/date-picker.d.ts +3 -2
- package/shared/types/renderer-source/index.d.ts +13 -1
- package/shared/types/renderer-source/input-number.d.ts +8 -0
- 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
|
@@ -7,7 +7,7 @@ export declare const props: {
|
|
|
7
7
|
};
|
|
8
8
|
formItems: {
|
|
9
9
|
type: PropType<any[]>;
|
|
10
|
-
default: () =>
|
|
10
|
+
default: () => never[];
|
|
11
11
|
};
|
|
12
12
|
elRef: {
|
|
13
13
|
type: PropType<(arg: {
|
|
@@ -15,7 +15,7 @@ export declare const props: {
|
|
|
15
15
|
$data: {};
|
|
16
16
|
$props: Partial<{
|
|
17
17
|
readonly disabled: boolean;
|
|
18
|
-
readonly labelPosition: import("element-plus/es/utils").EpPropMergeType<StringConstructor, "
|
|
18
|
+
readonly labelPosition: import("element-plus/es/utils").EpPropMergeType<StringConstructor, "top" | "left" | "right", unknown>;
|
|
19
19
|
readonly labelWidth: import("element-plus/es/utils").EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
|
20
20
|
readonly labelSuffix: string;
|
|
21
21
|
readonly showMessage: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
@@ -30,10 +30,10 @@ export declare const props: {
|
|
|
30
30
|
readonly rules: {
|
|
31
31
|
readonly type: PropType<Partial<Record<string, import("element-plus/es/utils").Arrayable<import("element-plus").FormItemRule>>>>;
|
|
32
32
|
readonly required: false;
|
|
33
|
-
readonly validator: (val: unknown) => boolean;
|
|
33
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
34
34
|
__epPropKey: true;
|
|
35
35
|
};
|
|
36
|
-
readonly labelPosition: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "
|
|
36
|
+
readonly labelPosition: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "top" | "left" | "right", unknown, "right", boolean>;
|
|
37
37
|
readonly labelWidth: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, "", boolean>;
|
|
38
38
|
readonly labelSuffix: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
39
39
|
readonly inline: BooleanConstructor;
|
|
@@ -43,7 +43,7 @@ export declare const props: {
|
|
|
43
43
|
readonly size: {
|
|
44
44
|
readonly type: PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "default" | "small" | "large", unknown>>;
|
|
45
45
|
readonly required: false;
|
|
46
|
-
readonly validator: (val: unknown) => boolean;
|
|
46
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
47
47
|
__epPropKey: true;
|
|
48
48
|
};
|
|
49
49
|
readonly disabled: BooleanConstructor;
|
|
@@ -51,8 +51,8 @@ export declare const props: {
|
|
|
51
51
|
readonly hideRequiredAsterisk: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
52
52
|
readonly scrollToError: BooleanConstructor;
|
|
53
53
|
}>> & {
|
|
54
|
-
onValidate?: (prop: import("element-plus").FormItemProp, isValid: boolean, message: string) => any;
|
|
55
|
-
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "labelWidth" | "inlineMessage" | "showMessage" | "
|
|
54
|
+
onValidate?: ((prop: import("element-plus").FormItemProp, isValid: boolean, message: string) => any) | undefined;
|
|
55
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "labelWidth" | "inlineMessage" | "showMessage" | "inline" | "disabled" | "labelPosition" | "labelSuffix" | "statusIcon" | "validateOnRuleChange" | "hideRequiredAsterisk" | "scrollToError">;
|
|
56
56
|
$attrs: {
|
|
57
57
|
[x: string]: unknown;
|
|
58
58
|
};
|
|
@@ -60,10 +60,10 @@ export declare const props: {
|
|
|
60
60
|
[x: string]: unknown;
|
|
61
61
|
};
|
|
62
62
|
$slots: Readonly<{
|
|
63
|
-
[name: string]: import("vue").Slot;
|
|
63
|
+
[name: string]: import("vue").Slot | undefined;
|
|
64
64
|
}>;
|
|
65
|
-
$root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}
|
|
66
|
-
$parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}
|
|
65
|
+
$root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null;
|
|
66
|
+
$parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null;
|
|
67
67
|
$emit: (event: "validate", prop: import("element-plus").FormItemProp, isValid: boolean, message: string) => void;
|
|
68
68
|
$el: any;
|
|
69
69
|
$options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
|
@@ -71,10 +71,10 @@ export declare const props: {
|
|
|
71
71
|
readonly rules: {
|
|
72
72
|
readonly type: PropType<Partial<Record<string, import("element-plus/es/utils").Arrayable<import("element-plus").FormItemRule>>>>;
|
|
73
73
|
readonly required: false;
|
|
74
|
-
readonly validator: (val: unknown) => boolean;
|
|
74
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
75
75
|
__epPropKey: true;
|
|
76
76
|
};
|
|
77
|
-
readonly labelPosition: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "
|
|
77
|
+
readonly labelPosition: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "top" | "left" | "right", unknown, "right", boolean>;
|
|
78
78
|
readonly labelWidth: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, "", boolean>;
|
|
79
79
|
readonly labelSuffix: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
80
80
|
readonly inline: BooleanConstructor;
|
|
@@ -84,7 +84,7 @@ export declare const props: {
|
|
|
84
84
|
readonly size: {
|
|
85
85
|
readonly type: PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "default" | "small" | "large", unknown>>;
|
|
86
86
|
readonly required: false;
|
|
87
|
-
readonly validator: (val: unknown) => boolean;
|
|
87
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
88
88
|
__epPropKey: true;
|
|
89
89
|
};
|
|
90
90
|
readonly disabled: BooleanConstructor;
|
|
@@ -92,7 +92,7 @@ export declare const props: {
|
|
|
92
92
|
readonly hideRequiredAsterisk: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
93
93
|
readonly scrollToError: BooleanConstructor;
|
|
94
94
|
}>> & {
|
|
95
|
-
onValidate?: (prop: import("element-plus").FormItemProp, isValid: boolean, message: string) => any;
|
|
95
|
+
onValidate?: ((prop: import("element-plus").FormItemProp, isValid: boolean, message: string) => any) | undefined;
|
|
96
96
|
}, {
|
|
97
97
|
COMPONENT_NAME: string;
|
|
98
98
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
@@ -100,10 +100,10 @@ export declare const props: {
|
|
|
100
100
|
readonly rules: {
|
|
101
101
|
readonly type: PropType<Partial<Record<string, import("element-plus/es/utils").Arrayable<import("element-plus").FormItemRule>>>>;
|
|
102
102
|
readonly required: false;
|
|
103
|
-
readonly validator: (val: unknown) => boolean;
|
|
103
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
104
104
|
__epPropKey: true;
|
|
105
105
|
};
|
|
106
|
-
readonly labelPosition: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "
|
|
106
|
+
readonly labelPosition: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "top" | "left" | "right", unknown, "right", boolean>;
|
|
107
107
|
readonly labelWidth: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, "", boolean>;
|
|
108
108
|
readonly labelSuffix: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
109
109
|
readonly inline: BooleanConstructor;
|
|
@@ -113,7 +113,7 @@ export declare const props: {
|
|
|
113
113
|
readonly size: {
|
|
114
114
|
readonly type: PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "default" | "small" | "large", unknown>>;
|
|
115
115
|
readonly required: false;
|
|
116
|
-
readonly validator: (val: unknown) => boolean;
|
|
116
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
117
117
|
__epPropKey: true;
|
|
118
118
|
};
|
|
119
119
|
readonly disabled: BooleanConstructor;
|
|
@@ -121,22 +121,22 @@ export declare const props: {
|
|
|
121
121
|
readonly hideRequiredAsterisk: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
122
122
|
readonly scrollToError: BooleanConstructor;
|
|
123
123
|
}>> & {
|
|
124
|
-
onValidate?: (prop: import("element-plus").FormItemProp, isValid: boolean, message: string) => any;
|
|
124
|
+
onValidate?: ((prop: import("element-plus").FormItemProp, isValid: boolean, message: string) => any) | undefined;
|
|
125
125
|
}>>;
|
|
126
126
|
emit: (event: "validate", prop: import("element-plus").FormItemProp, isValid: boolean, message: string) => void;
|
|
127
127
|
fields: import("element-plus").FormItemContext[];
|
|
128
128
|
formSize: import("vue").ComputedRef<"" | "default" | "small" | "large">;
|
|
129
129
|
ns: {
|
|
130
130
|
namespace: import("vue").ComputedRef<string>;
|
|
131
|
-
b: (blockSuffix?: string) => string;
|
|
132
|
-
e: (element?: string) => string;
|
|
133
|
-
m: (modifier?: string) => string;
|
|
134
|
-
be: (blockSuffix?: string, element?: string) => string;
|
|
135
|
-
em: (element?: string, modifier?: string) => string;
|
|
136
|
-
bm: (blockSuffix?: string, modifier?: string) => string;
|
|
137
|
-
bem: (blockSuffix?: string, element?: string, modifier?: string) => string;
|
|
131
|
+
b: (blockSuffix?: string | undefined) => string;
|
|
132
|
+
e: (element?: string | undefined) => string;
|
|
133
|
+
m: (modifier?: string | undefined) => string;
|
|
134
|
+
be: (blockSuffix?: string | undefined, element?: string | undefined) => string;
|
|
135
|
+
em: (element?: string | undefined, modifier?: string | undefined) => string;
|
|
136
|
+
bm: (blockSuffix?: string | undefined, modifier?: string | undefined) => string;
|
|
137
|
+
bem: (blockSuffix?: string | undefined, element?: string | undefined, modifier?: string | undefined) => string;
|
|
138
138
|
is: {
|
|
139
|
-
(name: string, state: boolean): string;
|
|
139
|
+
(name: string, state: boolean | undefined): string;
|
|
140
140
|
(name: string): string;
|
|
141
141
|
};
|
|
142
142
|
cssVar: (object: Record<string, string>) => Record<string, string>;
|
|
@@ -145,23 +145,23 @@ export declare const props: {
|
|
|
145
145
|
cssVarBlockName: (name: string) => string;
|
|
146
146
|
};
|
|
147
147
|
formClasses: import("vue").ComputedRef<(string | {
|
|
148
|
-
[x: string]: boolean | import("element-plus/es/utils").EpPropMergeType<StringConstructor, "
|
|
148
|
+
[x: string]: boolean | import("element-plus/es/utils").EpPropMergeType<StringConstructor, "top" | "left" | "right", unknown>;
|
|
149
149
|
})[]>;
|
|
150
150
|
addField: (field: import("element-plus").FormItemContext) => void;
|
|
151
151
|
removeField: (field: import("element-plus").FormItemContext) => void;
|
|
152
|
-
resetFields: (props?: import("element-plus/es/utils").Arrayable<import("element-plus").FormItemProp>) => void;
|
|
153
|
-
clearValidate: (props?: import("element-plus/es/utils").Arrayable<import("element-plus").FormItemProp>) => void;
|
|
152
|
+
resetFields: (props?: import("element-plus/es/utils").Arrayable<import("element-plus").FormItemProp> | undefined) => void;
|
|
153
|
+
clearValidate: (props?: import("element-plus/es/utils").Arrayable<import("element-plus").FormItemProp> | undefined) => void;
|
|
154
154
|
isValidatable: import("vue").ComputedRef<boolean>;
|
|
155
155
|
obtainValidateFields: (props: import("element-plus/es/utils").Arrayable<import("element-plus").FormItemProp>) => import("element-plus").FormItemContext[];
|
|
156
|
-
validate: (callback?: import("element-plus").FormValidateCallback) => import("element-plus").FormValidationResult;
|
|
157
|
-
doValidateField: (props?: import("element-plus/es/utils").Arrayable<import("element-plus").FormItemProp>) => Promise<boolean>;
|
|
158
|
-
validateField: (props?: import("element-plus/es/utils").Arrayable<import("element-plus").FormItemProp
|
|
156
|
+
validate: (callback?: import("element-plus").FormValidateCallback | undefined) => import("element-plus").FormValidationResult;
|
|
157
|
+
doValidateField: (props?: import("element-plus/es/utils").Arrayable<import("element-plus").FormItemProp> | undefined) => Promise<boolean>;
|
|
158
|
+
validateField: (props?: import("element-plus/es/utils").Arrayable<import("element-plus").FormItemProp> | undefined, callback?: import("element-plus").FormValidateCallback | undefined) => import("element-plus").FormValidationResult;
|
|
159
159
|
scrollToField: (prop: import("element-plus").FormItemProp) => void;
|
|
160
160
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
161
161
|
validate: (prop: import("element-plus").FormItemProp, isValid: boolean, message: string) => boolean;
|
|
162
162
|
}, string, {
|
|
163
163
|
readonly disabled: boolean;
|
|
164
|
-
readonly labelPosition: import("element-plus/es/utils").EpPropMergeType<StringConstructor, "
|
|
164
|
+
readonly labelPosition: import("element-plus/es/utils").EpPropMergeType<StringConstructor, "top" | "left" | "right", unknown>;
|
|
165
165
|
readonly labelWidth: import("element-plus/es/utils").EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
|
166
166
|
readonly labelSuffix: string;
|
|
167
167
|
readonly showMessage: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
@@ -172,34 +172,34 @@ export declare const props: {
|
|
|
172
172
|
readonly statusIcon: boolean;
|
|
173
173
|
readonly scrollToError: boolean;
|
|
174
174
|
}> & {
|
|
175
|
-
beforeCreate?: (() => void) | (() => void)[];
|
|
176
|
-
created?: (() => void) | (() => void)[];
|
|
177
|
-
beforeMount?: (() => void) | (() => void)[];
|
|
178
|
-
mounted?: (() => void) | (() => void)[];
|
|
179
|
-
beforeUpdate?: (() => void) | (() => void)[];
|
|
180
|
-
updated?: (() => void) | (() => void)[];
|
|
181
|
-
activated?: (() => void) | (() => void)[];
|
|
182
|
-
deactivated?: (() => void) | (() => void)[];
|
|
183
|
-
beforeDestroy?: (() => void) | (() => void)[];
|
|
184
|
-
beforeUnmount?: (() => void) | (() => void)[];
|
|
185
|
-
destroyed?: (() => void) | (() => void)[];
|
|
186
|
-
unmounted?: (() => void) | (() => void)[];
|
|
187
|
-
renderTracked?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
|
|
188
|
-
renderTriggered?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
|
|
189
|
-
errorCaptured?: ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}
|
|
175
|
+
beforeCreate?: ((() => void) | (() => void)[]) | undefined;
|
|
176
|
+
created?: ((() => void) | (() => void)[]) | undefined;
|
|
177
|
+
beforeMount?: ((() => void) | (() => void)[]) | undefined;
|
|
178
|
+
mounted?: ((() => void) | (() => void)[]) | undefined;
|
|
179
|
+
beforeUpdate?: ((() => void) | (() => void)[]) | undefined;
|
|
180
|
+
updated?: ((() => void) | (() => void)[]) | undefined;
|
|
181
|
+
activated?: ((() => void) | (() => void)[]) | undefined;
|
|
182
|
+
deactivated?: ((() => void) | (() => void)[]) | undefined;
|
|
183
|
+
beforeDestroy?: ((() => void) | (() => void)[]) | undefined;
|
|
184
|
+
beforeUnmount?: ((() => void) | (() => void)[]) | undefined;
|
|
185
|
+
destroyed?: ((() => void) | (() => void)[]) | undefined;
|
|
186
|
+
unmounted?: ((() => void) | (() => void)[]) | undefined;
|
|
187
|
+
renderTracked?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
|
|
188
|
+
renderTriggered?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
|
|
189
|
+
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;
|
|
190
190
|
};
|
|
191
191
|
$forceUpdate: () => void;
|
|
192
192
|
$nextTick: typeof import("vue").nextTick;
|
|
193
|
-
$watch(source: string | Function, cb: Function, options?: import("vue").WatchOptions<boolean>): import("vue").WatchStopHandle;
|
|
193
|
+
$watch(source: string | Function, cb: Function, options?: import("vue").WatchOptions<boolean> | undefined): import("vue").WatchStopHandle;
|
|
194
194
|
} & Readonly<import("vue").ExtractPropTypes<{
|
|
195
195
|
readonly model: ObjectConstructor;
|
|
196
196
|
readonly rules: {
|
|
197
197
|
readonly type: PropType<Partial<Record<string, import("element-plus/es/utils").Arrayable<import("element-plus").FormItemRule>>>>;
|
|
198
198
|
readonly required: false;
|
|
199
|
-
readonly validator: (val: unknown) => boolean;
|
|
199
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
200
200
|
__epPropKey: true;
|
|
201
201
|
};
|
|
202
|
-
readonly labelPosition: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "
|
|
202
|
+
readonly labelPosition: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "top" | "left" | "right", unknown, "right", boolean>;
|
|
203
203
|
readonly labelWidth: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, "", boolean>;
|
|
204
204
|
readonly labelSuffix: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
205
205
|
readonly inline: BooleanConstructor;
|
|
@@ -209,7 +209,7 @@ export declare const props: {
|
|
|
209
209
|
readonly size: {
|
|
210
210
|
readonly type: PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "default" | "small" | "large", unknown>>;
|
|
211
211
|
readonly required: false;
|
|
212
|
-
readonly validator: (val: unknown) => boolean;
|
|
212
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
213
213
|
__epPropKey: true;
|
|
214
214
|
};
|
|
215
215
|
readonly disabled: BooleanConstructor;
|
|
@@ -217,7 +217,7 @@ export declare const props: {
|
|
|
217
217
|
readonly hideRequiredAsterisk: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
218
218
|
readonly scrollToError: BooleanConstructor;
|
|
219
219
|
}>> & {
|
|
220
|
-
onValidate?: (prop: import("element-plus").FormItemProp, isValid: boolean, message: string) => any;
|
|
220
|
+
onValidate?: ((prop: import("element-plus").FormItemProp, isValid: boolean, message: string) => any) | undefined;
|
|
221
221
|
} & import("vue").ShallowUnwrapRef<{
|
|
222
222
|
COMPONENT_NAME: string;
|
|
223
223
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
@@ -225,10 +225,10 @@ export declare const props: {
|
|
|
225
225
|
readonly rules: {
|
|
226
226
|
readonly type: PropType<Partial<Record<string, import("element-plus/es/utils").Arrayable<import("element-plus").FormItemRule>>>>;
|
|
227
227
|
readonly required: false;
|
|
228
|
-
readonly validator: (val: unknown) => boolean;
|
|
228
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
229
229
|
__epPropKey: true;
|
|
230
230
|
};
|
|
231
|
-
readonly labelPosition: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "
|
|
231
|
+
readonly labelPosition: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "top" | "left" | "right", unknown, "right", boolean>;
|
|
232
232
|
readonly labelWidth: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, "", boolean>;
|
|
233
233
|
readonly labelSuffix: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
234
234
|
readonly inline: BooleanConstructor;
|
|
@@ -238,7 +238,7 @@ export declare const props: {
|
|
|
238
238
|
readonly size: {
|
|
239
239
|
readonly type: PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "default" | "small" | "large", unknown>>;
|
|
240
240
|
readonly required: false;
|
|
241
|
-
readonly validator: (val: unknown) => boolean;
|
|
241
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
242
242
|
__epPropKey: true;
|
|
243
243
|
};
|
|
244
244
|
readonly disabled: BooleanConstructor;
|
|
@@ -246,22 +246,22 @@ export declare const props: {
|
|
|
246
246
|
readonly hideRequiredAsterisk: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
247
247
|
readonly scrollToError: BooleanConstructor;
|
|
248
248
|
}>> & {
|
|
249
|
-
onValidate?: (prop: import("element-plus").FormItemProp, isValid: boolean, message: string) => any;
|
|
249
|
+
onValidate?: ((prop: import("element-plus").FormItemProp, isValid: boolean, message: string) => any) | undefined;
|
|
250
250
|
}>>;
|
|
251
251
|
emit: (event: "validate", prop: import("element-plus").FormItemProp, isValid: boolean, message: string) => void;
|
|
252
252
|
fields: import("element-plus").FormItemContext[];
|
|
253
253
|
formSize: import("vue").ComputedRef<"" | "default" | "small" | "large">;
|
|
254
254
|
ns: {
|
|
255
255
|
namespace: import("vue").ComputedRef<string>;
|
|
256
|
-
b: (blockSuffix?: string) => string;
|
|
257
|
-
e: (element?: string) => string;
|
|
258
|
-
m: (modifier?: string) => string;
|
|
259
|
-
be: (blockSuffix?: string, element?: string) => string;
|
|
260
|
-
em: (element?: string, modifier?: string) => string;
|
|
261
|
-
bm: (blockSuffix?: string, modifier?: string) => string;
|
|
262
|
-
bem: (blockSuffix?: string, element?: string, modifier?: string) => string;
|
|
256
|
+
b: (blockSuffix?: string | undefined) => string;
|
|
257
|
+
e: (element?: string | undefined) => string;
|
|
258
|
+
m: (modifier?: string | undefined) => string;
|
|
259
|
+
be: (blockSuffix?: string | undefined, element?: string | undefined) => string;
|
|
260
|
+
em: (element?: string | undefined, modifier?: string | undefined) => string;
|
|
261
|
+
bm: (blockSuffix?: string | undefined, modifier?: string | undefined) => string;
|
|
262
|
+
bem: (blockSuffix?: string | undefined, element?: string | undefined, modifier?: string | undefined) => string;
|
|
263
263
|
is: {
|
|
264
|
-
(name: string, state: boolean): string;
|
|
264
|
+
(name: string, state: boolean | undefined): string;
|
|
265
265
|
(name: string): string;
|
|
266
266
|
};
|
|
267
267
|
cssVar: (object: Record<string, string>) => Record<string, string>;
|
|
@@ -270,17 +270,17 @@ export declare const props: {
|
|
|
270
270
|
cssVarBlockName: (name: string) => string;
|
|
271
271
|
};
|
|
272
272
|
formClasses: import("vue").ComputedRef<(string | {
|
|
273
|
-
[x: string]: boolean | import("element-plus/es/utils").EpPropMergeType<StringConstructor, "
|
|
273
|
+
[x: string]: boolean | import("element-plus/es/utils").EpPropMergeType<StringConstructor, "top" | "left" | "right", unknown>;
|
|
274
274
|
})[]>;
|
|
275
275
|
addField: (field: import("element-plus").FormItemContext) => void;
|
|
276
276
|
removeField: (field: import("element-plus").FormItemContext) => void;
|
|
277
|
-
resetFields: (props?: import("element-plus/es/utils").Arrayable<import("element-plus").FormItemProp>) => void;
|
|
278
|
-
clearValidate: (props?: import("element-plus/es/utils").Arrayable<import("element-plus").FormItemProp>) => void;
|
|
277
|
+
resetFields: (props?: import("element-plus/es/utils").Arrayable<import("element-plus").FormItemProp> | undefined) => void;
|
|
278
|
+
clearValidate: (props?: import("element-plus/es/utils").Arrayable<import("element-plus").FormItemProp> | undefined) => void;
|
|
279
279
|
isValidatable: import("vue").ComputedRef<boolean>;
|
|
280
280
|
obtainValidateFields: (props: import("element-plus/es/utils").Arrayable<import("element-plus").FormItemProp>) => import("element-plus").FormItemContext[];
|
|
281
|
-
validate: (callback?: import("element-plus").FormValidateCallback) => import("element-plus").FormValidationResult;
|
|
282
|
-
doValidateField: (props?: import("element-plus/es/utils").Arrayable<import("element-plus").FormItemProp>) => Promise<boolean>;
|
|
283
|
-
validateField: (props?: import("element-plus/es/utils").Arrayable<import("element-plus").FormItemProp
|
|
281
|
+
validate: (callback?: import("element-plus").FormValidateCallback | undefined) => import("element-plus").FormValidationResult;
|
|
282
|
+
doValidateField: (props?: import("element-plus/es/utils").Arrayable<import("element-plus").FormItemProp> | undefined) => Promise<boolean>;
|
|
283
|
+
validateField: (props?: import("element-plus/es/utils").Arrayable<import("element-plus").FormItemProp> | undefined, callback?: import("element-plus").FormValidateCallback | undefined) => import("element-plus").FormValidationResult;
|
|
284
284
|
scrollToField: (prop: import("element-plus").FormItemProp) => void;
|
|
285
285
|
}> & {} & import("vue").ComponentCustomProperties) => any>;
|
|
286
286
|
default: () => () => void;
|
|
@@ -289,10 +289,10 @@ export declare const props: {
|
|
|
289
289
|
rules: {
|
|
290
290
|
readonly type: PropType<Partial<Record<string, import("element-plus/es/utils").Arrayable<import("element-plus").FormItemRule>>>>;
|
|
291
291
|
readonly required: false;
|
|
292
|
-
readonly validator: (val: unknown) => boolean;
|
|
292
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
293
293
|
__epPropKey: true;
|
|
294
294
|
};
|
|
295
|
-
labelPosition: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "
|
|
295
|
+
labelPosition: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "top" | "left" | "right", unknown, "right", boolean>;
|
|
296
296
|
labelWidth: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, "", boolean>;
|
|
297
297
|
labelSuffix: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
298
298
|
inline: BooleanConstructor;
|
|
@@ -302,7 +302,7 @@ export declare const props: {
|
|
|
302
302
|
size: {
|
|
303
303
|
readonly type: PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "default" | "small" | "large", unknown>>;
|
|
304
304
|
readonly required: false;
|
|
305
|
-
readonly validator: (val: unknown) => boolean;
|
|
305
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
306
306
|
__epPropKey: true;
|
|
307
307
|
};
|
|
308
308
|
disabled: BooleanConstructor;
|
|
@@ -310,9 +310,12 @@ export declare const props: {
|
|
|
310
310
|
hideRequiredAsterisk: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
311
311
|
scrollToError: BooleanConstructor;
|
|
312
312
|
};
|
|
313
|
-
export declare const createBindProps: <T2 extends
|
|
313
|
+
export declare const createBindProps: <T2 extends import("@vunk/core").NormalObject, EX extends (Extract<"labelWidth", keyof T2> | Extract<"rules", keyof T2> | Extract<"inlineMessage", keyof T2> | Extract<"showMessage", keyof T2> | Extract<"size", keyof T2> | Extract<"elRef", keyof T2> | Extract<"inline", keyof T2> | Extract<"data", keyof T2> | Extract<"disabled", keyof T2> | Extract<"model", keyof T2> | Extract<"labelPosition", keyof T2> | Extract<"labelSuffix", keyof T2> | Extract<"statusIcon", keyof T2> | Extract<"validateOnRuleChange", keyof T2> | Extract<"hideRequiredAsterisk", keyof T2> | Extract<"scrollToError", keyof T2> | Extract<"formItems", keyof T2>)[] | undefined>(propsArg: T2, excludes?: EX | undefined) => import("vue").ComputedRef<{ [P in EX extends (infer KE)[] ? Exclude<Extract<"labelWidth", keyof T2>, KE> | Exclude<Extract<"rules", keyof T2>, KE> | Exclude<Extract<"inlineMessage", keyof T2>, KE> | Exclude<Extract<"showMessage", keyof T2>, KE> | Exclude<Extract<"size", keyof T2>, KE> | Exclude<Extract<"elRef", keyof T2>, KE> | Exclude<Extract<"inline", keyof T2>, KE> | Exclude<Extract<"data", keyof T2>, KE> | Exclude<Extract<"disabled", keyof T2>, KE> | Exclude<Extract<"model", keyof T2>, KE> | Exclude<Extract<"labelPosition", keyof T2>, KE> | Exclude<Extract<"labelSuffix", keyof T2>, KE> | Exclude<Extract<"statusIcon", keyof T2>, KE> | Exclude<Extract<"validateOnRuleChange", keyof T2>, KE> | Exclude<Extract<"hideRequiredAsterisk", keyof T2>, KE> | Exclude<Extract<"scrollToError", keyof T2>, KE> | Exclude<Extract<"formItems", keyof T2>, KE> : Extract<"labelWidth", keyof T2> | Extract<"rules", keyof T2> | Extract<"inlineMessage", keyof T2> | Extract<"showMessage", keyof T2> | Extract<"size", keyof T2> | Extract<"elRef", keyof T2> | Extract<"inline", keyof T2> | Extract<"data", keyof T2> | Extract<"disabled", keyof T2> | Extract<"model", keyof T2> | Extract<"labelPosition", keyof T2> | Extract<"labelSuffix", keyof T2> | Extract<"statusIcon", keyof T2> | Extract<"validateOnRuleChange", keyof T2> | Extract<"hideRequiredAsterisk", keyof T2> | Extract<"scrollToError", keyof T2> | Extract<"formItems", keyof T2>]: { [k in Extract<"labelWidth", keyof T2> | Extract<"rules", keyof T2> | Extract<"inlineMessage", keyof T2> | Extract<"showMessage", keyof T2> | Extract<"size", keyof T2> | Extract<"elRef", keyof T2> | Extract<"inline", keyof T2> | Extract<"data", keyof T2> | Extract<"disabled", keyof T2> | Extract<"model", keyof T2> | Extract<"labelPosition", keyof T2> | Extract<"labelSuffix", keyof T2> | Extract<"statusIcon", keyof T2> | Extract<"validateOnRuleChange", keyof T2> | Extract<"hideRequiredAsterisk", keyof T2> | Extract<"scrollToError", keyof T2> | Extract<"formItems", keyof T2>]: T2[k]; }[P]; }>;
|
|
314
314
|
export declare const emits: {
|
|
315
315
|
setData: (e: SetDataEvent) => SetDataEvent<any>;
|
|
316
|
-
validate:
|
|
316
|
+
validate: null;
|
|
317
317
|
};
|
|
318
|
-
export declare const createOnEmits: <T2 extends (
|
|
318
|
+
export declare const createOnEmits: <T2 extends import("@vunk/core").AnyFunc, EX extends ("validate" | "setData")[] | undefined>(emit: T2, excludes?: EX | undefined) => { [P in EX extends (infer KE)[] ? Exclude<"validate", KE> | Exclude<"setData", KE> : "validate" | "setData"]: {
|
|
319
|
+
setData: (...e: import("@vunk/core").RestParameters<T2>) => void;
|
|
320
|
+
validate: (...e: import("@vunk/core").RestParameters<T2>) => void;
|
|
321
|
+
}[P]; };
|