@silver-formily/element-plus 3.0.3 → 4.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (42) hide show
  1. package/README.en-US.md +3 -1
  2. package/README.md +3 -1
  3. package/esm/autocomplete/index.d.ts +41 -1
  4. package/esm/cascader/index.d.ts +31 -1
  5. package/esm/checkbox/index.d.ts +819 -1
  6. package/esm/color-picker/index.d.ts +210 -1
  7. package/esm/color-picker-panel/index.d.ts +130 -1
  8. package/esm/date-picker/index.d.ts +447 -1
  9. package/esm/date-picker-panel/index.d.ts +147 -1
  10. package/esm/editable/index.d.ts +60 -1
  11. package/esm/form-item/index.d.ts +83 -1
  12. package/esm/form-layout/form-layout.vue.d.ts +2 -2
  13. package/esm/index.d.ts +3 -1
  14. package/esm/index.mjs +2 -1
  15. package/esm/input/index.d.ts +43 -1
  16. package/esm/input-number/index.d.ts +328 -1
  17. package/esm/input-tag/index.d.ts +26 -1
  18. package/esm/mention/index.d.ts +36 -1
  19. package/esm/password/index.d.ts +42 -1
  20. package/esm/picker-select/index.d.ts +47 -0
  21. package/esm/picker-select/index.mjs +14 -0
  22. package/esm/picker-select/index.mjs.map +1 -0
  23. package/esm/picker-select/picker-select.mjs +186 -0
  24. package/esm/picker-select/picker-select.mjs.map +1 -0
  25. package/esm/picker-select/types.d.ts +23 -0
  26. package/esm/query-form-item/index.d.ts +152 -1
  27. package/esm/radio/index.d.ts +76 -22
  28. package/esm/rate/index.d.ts +186 -1
  29. package/esm/segmented/index.d.ts +28 -1
  30. package/esm/select/index.d.ts +112 -1
  31. package/esm/select-table/index.d.ts +61 -1
  32. package/esm/select-table/types.d.ts +22 -0
  33. package/esm/slider/index.d.ts +178 -1
  34. package/esm/switch/index.d.ts +298 -1
  35. package/esm/time-picker/index.d.ts +446 -1
  36. package/esm/time-select/index.d.ts +188 -1
  37. package/esm/transfer/index.d.ts +268 -1
  38. package/esm/tree/index.d.ts +45 -1
  39. package/esm/tree/types.d.ts +18 -0
  40. package/esm/tree-select/index.d.ts +19 -1
  41. package/esm/upload/index.d.ts +129 -1
  42. package/package.json +4 -4
@@ -1,8 +1,305 @@
1
1
  import { ElSwitch } from "element-plus";
2
+ import * as _$vue from "vue";
3
+ import * as _$element_plus_es_utils_index_mjs0 from "element-plus/es/utils/index.mjs";
2
4
 
3
5
  //#region src/switch/index.d.ts
4
6
  type SwitchProps = typeof ElSwitch;
5
- declare const Switch: any;
7
+ declare const Switch: _$element_plus_es_utils_index_mjs0.SFCWithInstall<{
8
+ new (...args: any[]): _$vue.CreateComponentPublicInstanceWithMixins<Readonly<_$vue.ExtractPropTypes<{
9
+ modelValue: {
10
+ type: _$vue.PropType<string | number | boolean>;
11
+ default: boolean;
12
+ };
13
+ name: {
14
+ type: _$vue.PropType<string>;
15
+ default: string;
16
+ };
17
+ disabled: {
18
+ type: _$vue.PropType<boolean>;
19
+ default: undefined;
20
+ };
21
+ size: {
22
+ type: _$vue.PropType<"" | "default" | "small" | "large">;
23
+ };
24
+ loading: {
25
+ type: _$vue.PropType<boolean>;
26
+ };
27
+ validateEvent: {
28
+ type: _$vue.PropType<boolean>;
29
+ default: boolean;
30
+ };
31
+ ariaLabel: {
32
+ type: _$vue.PropType<string>;
33
+ };
34
+ id: {
35
+ type: _$vue.PropType<string>;
36
+ };
37
+ tabindex: {
38
+ type: _$vue.PropType<string | number>;
39
+ };
40
+ width: {
41
+ type: _$vue.PropType<string | number>;
42
+ default: string;
43
+ };
44
+ inlinePrompt: {
45
+ type: _$vue.PropType<boolean>;
46
+ };
47
+ inactiveActionIcon: {
48
+ type: _$vue.PropType<string | _$vue.Component>;
49
+ };
50
+ activeActionIcon: {
51
+ type: _$vue.PropType<string | _$vue.Component>;
52
+ };
53
+ activeIcon: {
54
+ type: _$vue.PropType<string | _$vue.Component>;
55
+ };
56
+ inactiveIcon: {
57
+ type: _$vue.PropType<string | _$vue.Component>;
58
+ };
59
+ activeText: {
60
+ type: _$vue.PropType<string>;
61
+ default: string;
62
+ };
63
+ inactiveText: {
64
+ type: _$vue.PropType<string>;
65
+ default: string;
66
+ };
67
+ activeValue: {
68
+ type: _$vue.PropType<string | number | boolean>;
69
+ default: boolean;
70
+ };
71
+ inactiveValue: {
72
+ type: _$vue.PropType<string | number | boolean>;
73
+ default: boolean;
74
+ };
75
+ beforeChange: {
76
+ type: _$vue.PropType<() => Promise<boolean> | boolean>;
77
+ };
78
+ }>> & {
79
+ "onUpdate:modelValue"?: ((val: string | number | boolean) => any) | undefined;
80
+ onInput?: ((val: string | number | boolean) => any) | undefined;
81
+ onChange?: ((val: string | number | boolean) => any) | undefined;
82
+ }, {
83
+ focus: () => void;
84
+ checked: _$vue.ComputedRef<boolean>;
85
+ }, unknown, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {
86
+ "update:modelValue": (val: string | number | boolean) => void;
87
+ change: (val: string | number | boolean) => void;
88
+ input: (val: string | number | boolean) => void;
89
+ }, _$vue.PublicProps, {
90
+ disabled: boolean;
91
+ width: string | number;
92
+ name: string;
93
+ modelValue: boolean | string | number;
94
+ validateEvent: boolean;
95
+ activeText: string;
96
+ inactiveText: string;
97
+ activeValue: boolean | string | number;
98
+ inactiveValue: boolean | string | number;
99
+ }, true, {}, {}, _$vue.GlobalComponents, _$vue.GlobalDirectives, string, {}, any, _$vue.ComponentProvideOptions, {
100
+ P: {};
101
+ B: {};
102
+ D: {};
103
+ C: {};
104
+ M: {};
105
+ Defaults: {};
106
+ }, Readonly<_$vue.ExtractPropTypes<{
107
+ modelValue: {
108
+ type: _$vue.PropType<string | number | boolean>;
109
+ default: boolean;
110
+ };
111
+ name: {
112
+ type: _$vue.PropType<string>;
113
+ default: string;
114
+ };
115
+ disabled: {
116
+ type: _$vue.PropType<boolean>;
117
+ default: undefined;
118
+ };
119
+ size: {
120
+ type: _$vue.PropType<"" | "default" | "small" | "large">;
121
+ };
122
+ loading: {
123
+ type: _$vue.PropType<boolean>;
124
+ };
125
+ validateEvent: {
126
+ type: _$vue.PropType<boolean>;
127
+ default: boolean;
128
+ };
129
+ ariaLabel: {
130
+ type: _$vue.PropType<string>;
131
+ };
132
+ id: {
133
+ type: _$vue.PropType<string>;
134
+ };
135
+ tabindex: {
136
+ type: _$vue.PropType<string | number>;
137
+ };
138
+ width: {
139
+ type: _$vue.PropType<string | number>;
140
+ default: string;
141
+ };
142
+ inlinePrompt: {
143
+ type: _$vue.PropType<boolean>;
144
+ };
145
+ inactiveActionIcon: {
146
+ type: _$vue.PropType<string | _$vue.Component>;
147
+ };
148
+ activeActionIcon: {
149
+ type: _$vue.PropType<string | _$vue.Component>;
150
+ };
151
+ activeIcon: {
152
+ type: _$vue.PropType<string | _$vue.Component>;
153
+ };
154
+ inactiveIcon: {
155
+ type: _$vue.PropType<string | _$vue.Component>;
156
+ };
157
+ activeText: {
158
+ type: _$vue.PropType<string>;
159
+ default: string;
160
+ };
161
+ inactiveText: {
162
+ type: _$vue.PropType<string>;
163
+ default: string;
164
+ };
165
+ activeValue: {
166
+ type: _$vue.PropType<string | number | boolean>;
167
+ default: boolean;
168
+ };
169
+ inactiveValue: {
170
+ type: _$vue.PropType<string | number | boolean>;
171
+ default: boolean;
172
+ };
173
+ beforeChange: {
174
+ type: _$vue.PropType<() => Promise<boolean> | boolean>;
175
+ };
176
+ }>> & {
177
+ "onUpdate:modelValue"?: ((val: string | number | boolean) => any) | undefined;
178
+ onInput?: ((val: string | number | boolean) => any) | undefined;
179
+ onChange?: ((val: string | number | boolean) => any) | undefined;
180
+ }, {
181
+ focus: () => void;
182
+ checked: _$vue.ComputedRef<boolean>;
183
+ }, {}, {}, {}, {
184
+ disabled: boolean;
185
+ width: string | number;
186
+ name: string;
187
+ modelValue: boolean | string | number;
188
+ validateEvent: boolean;
189
+ activeText: string;
190
+ inactiveText: string;
191
+ activeValue: boolean | string | number;
192
+ inactiveValue: boolean | string | number;
193
+ }>;
194
+ __isFragment?: never;
195
+ __isTeleport?: never;
196
+ __isSuspense?: never;
197
+ } & _$vue.ComponentOptionsBase<Readonly<_$vue.ExtractPropTypes<{
198
+ modelValue: {
199
+ type: _$vue.PropType<string | number | boolean>;
200
+ default: boolean;
201
+ };
202
+ name: {
203
+ type: _$vue.PropType<string>;
204
+ default: string;
205
+ };
206
+ disabled: {
207
+ type: _$vue.PropType<boolean>;
208
+ default: undefined;
209
+ };
210
+ size: {
211
+ type: _$vue.PropType<"" | "default" | "small" | "large">;
212
+ };
213
+ loading: {
214
+ type: _$vue.PropType<boolean>;
215
+ };
216
+ validateEvent: {
217
+ type: _$vue.PropType<boolean>;
218
+ default: boolean;
219
+ };
220
+ ariaLabel: {
221
+ type: _$vue.PropType<string>;
222
+ };
223
+ id: {
224
+ type: _$vue.PropType<string>;
225
+ };
226
+ tabindex: {
227
+ type: _$vue.PropType<string | number>;
228
+ };
229
+ width: {
230
+ type: _$vue.PropType<string | number>;
231
+ default: string;
232
+ };
233
+ inlinePrompt: {
234
+ type: _$vue.PropType<boolean>;
235
+ };
236
+ inactiveActionIcon: {
237
+ type: _$vue.PropType<string | _$vue.Component>;
238
+ };
239
+ activeActionIcon: {
240
+ type: _$vue.PropType<string | _$vue.Component>;
241
+ };
242
+ activeIcon: {
243
+ type: _$vue.PropType<string | _$vue.Component>;
244
+ };
245
+ inactiveIcon: {
246
+ type: _$vue.PropType<string | _$vue.Component>;
247
+ };
248
+ activeText: {
249
+ type: _$vue.PropType<string>;
250
+ default: string;
251
+ };
252
+ inactiveText: {
253
+ type: _$vue.PropType<string>;
254
+ default: string;
255
+ };
256
+ activeValue: {
257
+ type: _$vue.PropType<string | number | boolean>;
258
+ default: boolean;
259
+ };
260
+ inactiveValue: {
261
+ type: _$vue.PropType<string | number | boolean>;
262
+ default: boolean;
263
+ };
264
+ beforeChange: {
265
+ type: _$vue.PropType<() => Promise<boolean> | boolean>;
266
+ };
267
+ }>> & {
268
+ "onUpdate:modelValue"?: ((val: string | number | boolean) => any) | undefined;
269
+ onInput?: ((val: string | number | boolean) => any) | undefined;
270
+ onChange?: ((val: string | number | boolean) => any) | undefined;
271
+ }, {
272
+ focus: () => void;
273
+ checked: _$vue.ComputedRef<boolean>;
274
+ }, unknown, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {
275
+ "update:modelValue": (val: string | number | boolean) => void;
276
+ change: (val: string | number | boolean) => void;
277
+ input: (val: string | number | boolean) => void;
278
+ }, string, {
279
+ disabled: boolean;
280
+ width: string | number;
281
+ name: string;
282
+ modelValue: boolean | string | number;
283
+ validateEvent: boolean;
284
+ activeText: string;
285
+ inactiveText: string;
286
+ activeValue: boolean | string | number;
287
+ inactiveValue: boolean | string | number;
288
+ }, {}, string, {}, _$vue.GlobalComponents, _$vue.GlobalDirectives, string, _$vue.ComponentProvideOptions> & _$vue.VNodeProps & _$vue.AllowedComponentProps & _$vue.ComponentCustomProps & (new () => {
289
+ $slots: {
290
+ inactive?: (props: {}) => any;
291
+ } & {
292
+ inactive?: (props: {}) => any;
293
+ } & {
294
+ active?: (props: {}) => any;
295
+ } & {
296
+ 'active-action'?: (props: {}) => any;
297
+ } & {
298
+ 'inactive-action'?: (props: {}) => any;
299
+ } & {
300
+ active?: (props: {}) => any;
301
+ };
302
+ })>;
6
303
  //#endregion
7
304
  export { Switch, SwitchProps };
8
305
  //# sourceMappingURL=index.d.ts.map