@vunk/form 2.10.0 → 2.10.3
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/api-tables-select/index.cjs +37 -36
- package/components/api-tables-select/index.mjs +37 -36
- package/components/api-tables-select/src/ctx.d.ts +48 -13
- package/components/api-tables-select/src/index.vue.d.ts +568 -80
- package/components/button/src/ctx.d.ts +101 -17
- package/components/button/src/index.vue.d.ts +437 -101
- package/components/card-input-collection/index.cjs +67 -70
- package/components/card-input-collection/index.mjs +68 -71
- package/components/card-input-collection/src/ctx.d.ts +43 -8
- package/components/card-input-collection/src/index.vue.d.ts +718 -226
- package/components/cascader/src/ctx.d.ts +192 -46
- package/components/cascader/src/index.vue.d.ts +393 -118
- package/components/checkbox/index.cjs +2 -3
- package/components/checkbox/index.mjs +2 -3
- package/components/checkbox/src/ctx.d.ts +65 -13
- package/components/checkbox/src/index.vue.d.ts +339 -115
- package/components/color-picker/src/ctx.d.ts +76 -13
- package/components/color-picker/src/index.vue.d.ts +160 -34
- package/components/date-picker/src/ctx.d.ts +185 -36
- package/components/date-picker/src/index.vue.d.ts +974 -202
- package/components/date-picker-range/src/ctx.d.ts +168 -35
- package/components/date-picker-range/src/index.vue.d.ts +347 -82
- package/components/download-plus/index.cjs +4 -4
- package/components/download-plus/index.mjs +4 -4
- package/components/download-plus/src/ctx.d.ts +43 -8
- package/components/download-plus/src/index.vue.d.ts +618 -165
- package/components/editable-text/index.cjs +29 -15
- package/components/editable-text/index.mjs +29 -15
- package/components/editable-text/src/ctx.d.ts +51 -8
- package/components/editable-text/src/index.vue.d.ts +2827 -251
- package/components/esri-input-geojson/src/append.vue.d.ts +769 -418
- package/components/esri-input-geojson/src/ctx.d.ts +133 -32
- package/components/esri-input-geojson/src/index.vue.d.ts +262 -92
- package/components/esri-input-geojson/src/viewer.vue.d.ts +1 -1
- package/components/form/src/ctx.d.ts +59 -11
- package/components/form/src/index.vue.d.ts +3456 -186
- package/components/form-item/src/ctx.d.ts +45 -10
- package/components/form-item/src/index.vue.d.ts +484 -141
- package/components/information-collection/src/ctx.d.ts +45 -10
- package/components/information-collection/src/index.vue.d.ts +96 -26
- package/components/information-tag/src/ctx.d.ts +17 -3
- package/components/information-tag/src/index.vue.d.ts +38 -10
- package/components/input/src/ctx.d.ts +138 -33
- package/components/input/src/index.vue.d.ts +528 -152
- package/components/input-collection/index.cjs +105 -74
- package/components/input-collection/index.mjs +107 -76
- package/components/input-collection/src/ctx.d.ts +43 -8
- package/components/input-collection/src/index.vue.d.ts +756 -793
- package/components/input-link/src/ctx.d.ts +103 -25
- package/components/input-link/src/index.vue.d.ts +219 -63
- package/components/input-number/src/ctx.d.ts +123 -21
- package/components/input-number/src/index.vue.d.ts +468 -93
- package/components/input-tag/src/ctx.d.ts +141 -25
- package/components/input-tag/src/index.vue.d.ts +566 -126
- package/components/monaco-editor/src/ctx.d.ts +43 -8
- package/components/monaco-editor/src/index.vue.d.ts +91 -21
- package/components/radio/index.cjs +2 -3
- package/components/radio/index.mjs +2 -3
- package/components/radio/src/ctx.d.ts +84 -14
- package/components/radio/src/index.vue.d.ts +812 -168
- package/components/select/src/ctx.d.ts +63 -13
- package/components/select/src/index.vue.d.ts +549 -108
- package/components/slider/src/ctx.d.ts +170 -54
- package/components/slider/src/index.vue.d.ts +362 -137
- package/components/switch/src/ctx.d.ts +105 -21
- package/components/switch/src/index.vue.d.ts +453 -117
- package/components/tables-select/src/ctx.d.ts +72 -9
- package/components/tables-select/src/index.vue.d.ts +386 -82
- package/components/templates-element-plus/src/index.vue.d.ts +187 -40
- package/components/templates-layout/src/index.vue.d.ts +337 -64
- package/components/upload/index.cjs +2 -2
- package/components/upload/index.mjs +2 -2
- package/components/upload/src/ctx.d.ts +183 -89
- package/components/upload/src/file.vue.d.ts +269 -83
- package/components/upload/src/index.vue.d.ts +1246 -632
- package/components/upload-plus/index.cjs +79 -86
- package/components/upload-plus/index.mjs +79 -86
- package/components/upload-plus/src/ctx.d.ts +43 -8
- package/components/upload-plus/src/index.vue.d.ts +1008 -283
- package/components/van-cascader/src/ctx.d.ts +181 -44
- package/components/van-cascader/src/index.vue.d.ts +1532 -324
- package/components/var-datetime-picker/src/ctx.d.ts +43 -8
- package/components/var-datetime-picker/src/index.vue.d.ts +932 -190
- package/components/vditor/src/ctx.d.ts +43 -8
- package/components/vditor/src/index.vue.d.ts +91 -21
- package/package.json +1 -1
- package/shared/element-plus/ctx.d.ts +111 -30
- package/shared/element-plus/instances.d.ts +140 -28
|
@@ -14,32 +14,100 @@ export declare const props: {
|
|
|
14
14
|
default: any;
|
|
15
15
|
};
|
|
16
16
|
ariaLabel: StringConstructor;
|
|
17
|
-
id:
|
|
18
|
-
|
|
17
|
+
id: {
|
|
18
|
+
readonly type: PropType<string>;
|
|
19
|
+
readonly required: false;
|
|
20
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
21
|
+
__epPropKey: true;
|
|
22
|
+
} & {
|
|
23
|
+
readonly default: undefined;
|
|
24
|
+
};
|
|
25
|
+
step: {
|
|
26
|
+
readonly type: PropType<number>;
|
|
27
|
+
readonly required: false;
|
|
28
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
29
|
+
__epPropKey: true;
|
|
30
|
+
} & {
|
|
31
|
+
readonly default: 1;
|
|
32
|
+
};
|
|
19
33
|
stepStrictly: BooleanConstructor;
|
|
20
|
-
max:
|
|
21
|
-
|
|
22
|
-
|
|
34
|
+
max: {
|
|
35
|
+
readonly type: PropType<number>;
|
|
36
|
+
readonly required: false;
|
|
37
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
38
|
+
__epPropKey: true;
|
|
39
|
+
} & {
|
|
40
|
+
readonly default: number;
|
|
41
|
+
};
|
|
42
|
+
min: {
|
|
43
|
+
readonly type: PropType<number>;
|
|
44
|
+
readonly required: false;
|
|
45
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
46
|
+
__epPropKey: true;
|
|
47
|
+
} & {
|
|
48
|
+
readonly default: number;
|
|
49
|
+
};
|
|
50
|
+
modelValue: {
|
|
51
|
+
readonly type: PropType<any>;
|
|
52
|
+
readonly required: false;
|
|
53
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
54
|
+
__epPropKey: true;
|
|
55
|
+
};
|
|
23
56
|
disabled: BooleanConstructor;
|
|
24
57
|
size: {
|
|
25
|
-
readonly type:
|
|
58
|
+
readonly type: PropType<"" | "default" | "small" | "large">;
|
|
59
|
+
readonly required: false;
|
|
60
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
61
|
+
__epPropKey: true;
|
|
62
|
+
};
|
|
63
|
+
controls: {
|
|
64
|
+
readonly type: PropType<boolean>;
|
|
65
|
+
readonly required: false;
|
|
66
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
67
|
+
__epPropKey: true;
|
|
68
|
+
} & {
|
|
69
|
+
readonly default: true;
|
|
70
|
+
};
|
|
71
|
+
controlsPosition: {
|
|
72
|
+
readonly type: PropType<"" | "right">;
|
|
26
73
|
readonly required: false;
|
|
27
74
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
28
75
|
__epPropKey: true;
|
|
76
|
+
} & {
|
|
77
|
+
readonly default: "";
|
|
78
|
+
};
|
|
79
|
+
valueOnClear: {
|
|
80
|
+
readonly type: PropType<string | number>;
|
|
81
|
+
readonly required: false;
|
|
82
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
83
|
+
__epPropKey: true;
|
|
84
|
+
} & {
|
|
85
|
+
readonly default: null;
|
|
29
86
|
};
|
|
30
|
-
controls: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
31
|
-
controlsPosition: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "" | "right", unknown, "", boolean>;
|
|
32
|
-
valueOnClear: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, NumberConstructor, null], unknown, unknown, null, boolean>;
|
|
33
87
|
name: StringConstructor;
|
|
34
88
|
placeholder: StringConstructor;
|
|
35
89
|
precision: {
|
|
36
|
-
readonly type:
|
|
90
|
+
readonly type: PropType<number>;
|
|
91
|
+
readonly required: false;
|
|
92
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
93
|
+
__epPropKey: true;
|
|
94
|
+
};
|
|
95
|
+
validateEvent: {
|
|
96
|
+
readonly type: PropType<boolean>;
|
|
37
97
|
readonly required: false;
|
|
38
98
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
39
99
|
__epPropKey: true;
|
|
100
|
+
} & {
|
|
101
|
+
readonly default: true;
|
|
102
|
+
};
|
|
103
|
+
required: {
|
|
104
|
+
readonly type: PropType<boolean>;
|
|
105
|
+
readonly required: false;
|
|
106
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
107
|
+
__epPropKey: true;
|
|
108
|
+
} & {
|
|
109
|
+
readonly default: undefined;
|
|
40
110
|
};
|
|
41
|
-
validateEvent: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
42
|
-
required: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
|
|
43
111
|
formItemSize: {
|
|
44
112
|
type: PropType<"default" | "small" | "large">;
|
|
45
113
|
default: "default" | "small" | "large";
|
|
@@ -70,32 +138,60 @@ export declare const props: {
|
|
|
70
138
|
default: boolean;
|
|
71
139
|
};
|
|
72
140
|
label: StringConstructor;
|
|
73
|
-
labelWidth:
|
|
74
|
-
|
|
141
|
+
labelWidth: {
|
|
142
|
+
readonly type: PropType<string | number>;
|
|
143
|
+
readonly required: false;
|
|
144
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
145
|
+
__epPropKey: true;
|
|
146
|
+
} & {
|
|
147
|
+
readonly default: "";
|
|
148
|
+
};
|
|
149
|
+
labelPosition: {
|
|
150
|
+
readonly type: PropType<"" | "top" | "left" | "right">;
|
|
151
|
+
readonly required: false;
|
|
152
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
153
|
+
__epPropKey: true;
|
|
154
|
+
} & {
|
|
155
|
+
readonly default: "";
|
|
156
|
+
};
|
|
75
157
|
prop: {
|
|
76
|
-
readonly type:
|
|
158
|
+
readonly type: PropType<import("element-plus").FormItemProp>;
|
|
77
159
|
readonly required: false;
|
|
78
160
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
79
161
|
__epPropKey: true;
|
|
80
162
|
};
|
|
81
163
|
rules: {
|
|
82
|
-
readonly type:
|
|
164
|
+
readonly type: PropType<unknown>;
|
|
83
165
|
readonly required: false;
|
|
84
166
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
85
167
|
__epPropKey: true;
|
|
86
168
|
};
|
|
87
169
|
error: StringConstructor;
|
|
88
170
|
validateStatus: {
|
|
89
|
-
readonly type:
|
|
171
|
+
readonly type: PropType<"" | "error" | "success" | "validating">;
|
|
90
172
|
readonly required: false;
|
|
91
173
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
92
174
|
__epPropKey: true;
|
|
93
175
|
};
|
|
94
176
|
for: StringConstructor;
|
|
95
|
-
inlineMessage:
|
|
96
|
-
|
|
177
|
+
inlineMessage: {
|
|
178
|
+
readonly type: PropType<string | boolean>;
|
|
179
|
+
readonly required: false;
|
|
180
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
181
|
+
__epPropKey: true;
|
|
182
|
+
} & {
|
|
183
|
+
readonly default: "";
|
|
184
|
+
};
|
|
185
|
+
showMessage: {
|
|
186
|
+
readonly type: PropType<boolean>;
|
|
187
|
+
readonly required: false;
|
|
188
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
189
|
+
__epPropKey: true;
|
|
190
|
+
} & {
|
|
191
|
+
readonly default: true;
|
|
192
|
+
};
|
|
97
193
|
};
|
|
98
|
-
export declare const createBindProps: <T2 extends import("@vunk/core").NormalObject, EX extends (Extract<"
|
|
194
|
+
export declare const createBindProps: <T2 extends import("@vunk/core").NormalObject, EX extends (Extract<"required", keyof T2> | Extract<"size", keyof T2> | Extract<"formItemSize", keyof T2> | Extract<"formItemSlots", keyof T2> | Extract<"elRef", keyof T2> | Extract<"inline", keyof T2> | Extract<"readonly", keyof T2> | Extract<"formItemTip", keyof T2> | Extract<"formItemTipClass", keyof T2> | Extract<"labelTip", keyof T2> | Extract<"information", keyof T2> | Extract<"label", keyof T2> | Extract<"labelWidth", keyof T2> | Extract<"labelPosition", keyof T2> | Extract<"prop", keyof T2> | Extract<"rules", keyof T2> | Extract<"error", keyof T2> | Extract<"validateStatus", keyof T2> | Extract<"for", keyof T2> | Extract<"inlineMessage", keyof T2> | Extract<"showMessage", keyof T2> | Extract<"disabled", keyof T2> | Extract<"id", keyof T2> | Extract<"ariaLabel", keyof T2> | Extract<"name", keyof T2> | Extract<"modelValue", keyof T2> | Extract<"placeholder", keyof T2> | Extract<"min", keyof T2> | Extract<"max", keyof T2> | Extract<"validateEvent", keyof T2> | Extract<"valueOnClear", keyof T2> | Extract<"step", keyof T2> | Extract<"stepStrictly", keyof T2> | Extract<"controls", keyof T2> | Extract<"controlsPosition", keyof T2> | Extract<"precision", keyof T2> | Extract<"unit", keyof T2> | Extract<"inputNumberSlots", keyof T2>)[]>(propsArg: T2, excludes?: EX) => import("vue").ComputedRef<{ [P in EX extends (infer KE)[] ? Exclude<Extract<"required", keyof T2>, KE> | Exclude<Extract<"size", keyof T2>, KE> | Exclude<Extract<"formItemSize", keyof T2>, KE> | Exclude<Extract<"formItemSlots", keyof T2>, KE> | Exclude<Extract<"elRef", keyof T2>, KE> | Exclude<Extract<"inline", keyof T2>, KE> | Exclude<Extract<"readonly", keyof T2>, KE> | Exclude<Extract<"formItemTip", keyof T2>, KE> | Exclude<Extract<"formItemTipClass", keyof T2>, KE> | Exclude<Extract<"labelTip", keyof T2>, KE> | Exclude<Extract<"information", keyof T2>, KE> | Exclude<Extract<"label", keyof T2>, KE> | Exclude<Extract<"labelWidth", keyof T2>, KE> | Exclude<Extract<"labelPosition", keyof T2>, KE> | Exclude<Extract<"prop", keyof T2>, KE> | Exclude<Extract<"rules", keyof T2>, KE> | Exclude<Extract<"error", keyof T2>, KE> | Exclude<Extract<"validateStatus", keyof T2>, KE> | Exclude<Extract<"for", keyof T2>, KE> | Exclude<Extract<"inlineMessage", keyof T2>, KE> | Exclude<Extract<"showMessage", keyof T2>, KE> | Exclude<Extract<"disabled", keyof T2>, KE> | Exclude<Extract<"id", keyof T2>, KE> | Exclude<Extract<"ariaLabel", keyof T2>, KE> | Exclude<Extract<"name", keyof T2>, KE> | Exclude<Extract<"modelValue", keyof T2>, KE> | Exclude<Extract<"placeholder", keyof T2>, KE> | Exclude<Extract<"min", keyof T2>, KE> | Exclude<Extract<"max", keyof T2>, KE> | Exclude<Extract<"validateEvent", keyof T2>, KE> | Exclude<Extract<"valueOnClear", keyof T2>, KE> | Exclude<Extract<"step", keyof T2>, KE> | Exclude<Extract<"stepStrictly", keyof T2>, KE> | Exclude<Extract<"controls", keyof T2>, KE> | Exclude<Extract<"controlsPosition", keyof T2>, KE> | Exclude<Extract<"precision", keyof T2>, KE> | Exclude<Extract<"unit", keyof T2>, KE> | Exclude<Extract<"inputNumberSlots", keyof T2>, KE> : Extract<"required", keyof T2> | Extract<"size", keyof T2> | Extract<"formItemSize", keyof T2> | Extract<"formItemSlots", keyof T2> | Extract<"elRef", keyof T2> | Extract<"inline", keyof T2> | Extract<"readonly", keyof T2> | Extract<"formItemTip", keyof T2> | Extract<"formItemTipClass", keyof T2> | Extract<"labelTip", keyof T2> | Extract<"information", keyof T2> | Extract<"label", keyof T2> | Extract<"labelWidth", keyof T2> | Extract<"labelPosition", keyof T2> | Extract<"prop", keyof T2> | Extract<"rules", keyof T2> | Extract<"error", keyof T2> | Extract<"validateStatus", keyof T2> | Extract<"for", keyof T2> | Extract<"inlineMessage", keyof T2> | Extract<"showMessage", keyof T2> | Extract<"disabled", keyof T2> | Extract<"id", keyof T2> | Extract<"ariaLabel", keyof T2> | Extract<"name", keyof T2> | Extract<"modelValue", keyof T2> | Extract<"placeholder", keyof T2> | Extract<"min", keyof T2> | Extract<"max", keyof T2> | Extract<"validateEvent", keyof T2> | Extract<"valueOnClear", keyof T2> | Extract<"step", keyof T2> | Extract<"stepStrictly", keyof T2> | Extract<"controls", keyof T2> | Extract<"controlsPosition", keyof T2> | Extract<"precision", keyof T2> | Extract<"unit", keyof T2> | Extract<"inputNumberSlots", keyof T2>]: { [k in Extract<"required", keyof T2> | Extract<"size", keyof T2> | Extract<"formItemSize", keyof T2> | Extract<"formItemSlots", keyof T2> | Extract<"elRef", keyof T2> | Extract<"inline", keyof T2> | Extract<"readonly", keyof T2> | Extract<"formItemTip", keyof T2> | Extract<"formItemTipClass", keyof T2> | Extract<"labelTip", keyof T2> | Extract<"information", keyof T2> | Extract<"label", keyof T2> | Extract<"labelWidth", keyof T2> | Extract<"labelPosition", keyof T2> | Extract<"prop", keyof T2> | Extract<"rules", keyof T2> | Extract<"error", keyof T2> | Extract<"validateStatus", keyof T2> | Extract<"for", keyof T2> | Extract<"inlineMessage", keyof T2> | Extract<"showMessage", keyof T2> | Extract<"disabled", keyof T2> | Extract<"id", keyof T2> | Extract<"ariaLabel", keyof T2> | Extract<"name", keyof T2> | Extract<"modelValue", keyof T2> | Extract<"placeholder", keyof T2> | Extract<"min", keyof T2> | Extract<"max", keyof T2> | Extract<"validateEvent", keyof T2> | Extract<"valueOnClear", keyof T2> | Extract<"step", keyof T2> | Extract<"stepStrictly", keyof T2> | Extract<"controls", keyof T2> | Extract<"controlsPosition", keyof T2> | Extract<"precision", keyof T2> | Extract<"unit", keyof T2> | Extract<"inputNumberSlots", keyof T2>]: T2[k]; }[P]; }>;
|
|
99
195
|
export declare const emits: {
|
|
100
196
|
change: (cur: number | undefined, prev: number | undefined) => boolean;
|
|
101
197
|
blur: (e: FocusEvent) => boolean;
|
|
@@ -103,4 +199,10 @@ export declare const emits: {
|
|
|
103
199
|
input: (val: number | null | undefined) => boolean;
|
|
104
200
|
"update:modelValue": (val: number | undefined) => boolean;
|
|
105
201
|
};
|
|
106
|
-
export declare const createOnEmits: <T2 extends import("@vunk/core").AnyFunc, EX extends ("focus" | "update:modelValue" | "change" | "
|
|
202
|
+
export declare const createOnEmits: <T2 extends import("@vunk/core").AnyFunc, EX extends ("focus" | "update:modelValue" | "change" | "input" | "blur")[]>(emit: T2, excludes?: EX) => { [P in EX extends (infer KE)[] ? Exclude<"focus", KE> | Exclude<"update:modelValue", KE> | Exclude<"change", KE> | Exclude<"input", KE> | Exclude<"blur", KE> : "focus" | "update:modelValue" | "change" | "input" | "blur"]: {
|
|
203
|
+
change: (...e: import("@vunk/core").RestParameters<T2>) => void;
|
|
204
|
+
blur: (...e: import("@vunk/core").RestParameters<T2>) => void;
|
|
205
|
+
focus: (...e: import("@vunk/core").RestParameters<T2>) => void;
|
|
206
|
+
input: (...e: import("@vunk/core").RestParameters<T2>) => void;
|
|
207
|
+
"update:modelValue": (...e: import("@vunk/core").RestParameters<T2>) => void;
|
|
208
|
+
}[P]; };
|