vft 0.0.243 → 0.0.244
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/es/components/affix/affix.d.ts +1 -1
- package/es/components/affix/affix.vue.d.ts +3 -3
- package/es/components/affix/index.d.ts +6 -6
- package/es/components/autocomplete/autocomplete.vue.d.ts +4 -4
- package/es/components/autocomplete/index.d.ts +12 -12
- package/es/components/avatar/index.d.ts +3 -3
- package/es/components/button/button.vue.d.ts +2 -2
- package/es/components/button/index.d.ts +24 -24
- package/es/components/button/use-button.d.ts +2 -2
- package/es/components/carousel/carousel.vue.d.ts +1 -1
- package/es/components/carousel/index.d.ts +15 -15
- package/es/components/checkbox/composables/use-checkbox-status.d.ts +2 -2
- package/es/components/checkbox/composables/use-checkbox.d.ts +2 -2
- package/es/components/checkbox/index.d.ts +51 -51
- package/es/components/col/col.vue.d.ts +1 -1
- package/es/components/col/index.d.ts +9 -9
- package/es/components/color-picker/index.d.ts +8 -8
- package/es/components/date-picker/date-picker.d.ts +3 -3
- package/es/components/date-picker/index.d.ts +6 -6
- package/es/components/date-picker/props/date-picker.d.ts +1 -1
- package/es/components/divider/index.d.ts +3 -3
- package/es/components/dropdown/dropdown.vue.d.ts +1 -1
- package/es/components/focus-trap/utils.d.ts +1 -1
- package/es/components/form/form-item.vue.d.ts +2 -2
- package/es/components/form/hooks/use-form-common-props.d.ts +2 -2
- package/es/components/form/index.d.ts +48 -48
- package/es/components/input/index.d.ts +3 -3
- package/es/components/input/input.vue2.js +4 -4
- package/es/components/input-number/index.d.ts +2 -2
- package/es/components/popper/composables/use-content.d.ts +3 -3
- package/es/components/radio/index.d.ts +48 -48
- package/es/components/radio/radio.vue.d.ts +1 -1
- package/es/components/radio/use-radio.d.ts +1 -1
- package/es/components/roving-focus-group/roving-focus-group-impl.vue.d.ts +2 -2
- package/es/components/select/useSelect.d.ts +5 -5
- package/es/components/slider/index.d.ts +4 -4
- package/es/components/space/index.d.ts +3 -3
- package/es/components/space/space.d.ts +4 -4
- package/es/components/switch/index.d.ts +15 -15
- package/es/components/switch/switch.vue.d.ts +1 -1
- package/es/components/tabs/index.d.ts +3 -3
- package/es/components/tabs/tab-pane.vue2.js +37 -35
- package/es/components/tabs/tabs.vue.d.ts +1 -1
- package/es/components/tabs/tabs.vue2.js +61 -61
- package/es/components/time-picker/common/picker.vue.d.ts +3 -3
- package/es/components/time-picker/common/props.d.ts +1 -1
- package/es/components/time-picker/index.d.ts +6 -6
- package/es/components/time-picker/time-picker.d.ts +3 -3
- package/es/components/time-select/time-select.vue.d.ts +1 -1
- package/es/components/timeline/index.d.ts +6 -6
- package/es/components/tree/tree-node.vue.d.ts +36 -36
- package/es/components/upload/index.d.ts +9 -9
- package/es/hooks/use-ordered-children/index.js +25 -25
- package/es/hooks/use-popper/index.d.ts +3 -3
- package/es/hooks/use-size/index.d.ts +1 -1
- package/es/package.json.d.ts +1 -1
- package/es/package.json.js +1 -1
- package/lib/components/affix/affix.d.ts +1 -1
- package/lib/components/affix/affix.vue.d.ts +3 -3
- package/lib/components/affix/index.d.ts +6 -6
- package/lib/components/autocomplete/autocomplete.vue.d.ts +4 -4
- package/lib/components/autocomplete/index.d.ts +12 -12
- package/lib/components/avatar/index.d.ts +3 -3
- package/lib/components/button/button.vue.d.ts +2 -2
- package/lib/components/button/index.d.ts +24 -24
- package/lib/components/button/use-button.d.ts +2 -2
- package/lib/components/carousel/carousel.vue.d.ts +1 -1
- package/lib/components/carousel/index.d.ts +15 -15
- package/lib/components/checkbox/composables/use-checkbox-status.d.ts +2 -2
- package/lib/components/checkbox/composables/use-checkbox.d.ts +2 -2
- package/lib/components/checkbox/index.d.ts +51 -51
- package/lib/components/col/col.vue.d.ts +1 -1
- package/lib/components/col/index.d.ts +9 -9
- package/lib/components/color-picker/index.d.ts +8 -8
- package/lib/components/date-picker/date-picker.d.ts +3 -3
- package/lib/components/date-picker/index.d.ts +6 -6
- package/lib/components/date-picker/props/date-picker.d.ts +1 -1
- package/lib/components/divider/index.d.ts +3 -3
- package/lib/components/dropdown/dropdown.vue.d.ts +1 -1
- package/lib/components/focus-trap/utils.d.ts +1 -1
- package/lib/components/form/form-item.vue.d.ts +2 -2
- package/lib/components/form/hooks/use-form-common-props.d.ts +2 -2
- package/lib/components/form/index.d.ts +48 -48
- package/lib/components/input/index.d.ts +3 -3
- package/lib/components/input/input.vue2.cjs +1 -1
- package/lib/components/input-number/index.d.ts +2 -2
- package/lib/components/popper/composables/use-content.d.ts +3 -3
- package/lib/components/radio/index.d.ts +48 -48
- package/lib/components/radio/radio.vue.d.ts +1 -1
- package/lib/components/radio/use-radio.d.ts +1 -1
- package/lib/components/roving-focus-group/roving-focus-group-impl.vue.d.ts +2 -2
- package/lib/components/select/useSelect.d.ts +5 -5
- package/lib/components/slider/index.d.ts +4 -4
- package/lib/components/space/index.d.ts +3 -3
- package/lib/components/space/space.d.ts +4 -4
- package/lib/components/switch/index.d.ts +15 -15
- package/lib/components/switch/switch.vue.d.ts +1 -1
- package/lib/components/tabs/index.d.ts +3 -3
- package/lib/components/tabs/tab-pane.vue2.cjs +1 -1
- package/lib/components/tabs/tabs.vue.d.ts +1 -1
- package/lib/components/tabs/tabs.vue2.cjs +1 -1
- package/lib/components/time-picker/common/picker.vue.d.ts +3 -3
- package/lib/components/time-picker/common/props.d.ts +1 -1
- package/lib/components/time-picker/index.d.ts +6 -6
- package/lib/components/time-picker/time-picker.d.ts +3 -3
- package/lib/components/time-select/time-select.vue.d.ts +1 -1
- package/lib/components/timeline/index.d.ts +6 -6
- package/lib/components/tree/tree-node.vue.d.ts +36 -36
- package/lib/components/upload/index.d.ts +9 -9
- package/lib/hooks/use-ordered-children/index.cjs +1 -1
- package/lib/hooks/use-popper/index.d.ts +3 -3
- package/lib/hooks/use-size/index.d.ts +1 -1
- package/lib/package.json.cjs +1 -1
- package/lib/package.json.d.ts +1 -1
- package/package.json +3 -3
- package/web-types.json +1 -1
|
@@ -3,7 +3,7 @@ import FormItem, { type FormItemProps } from './form-item.vue';
|
|
|
3
3
|
export declare const VftForm: import("vft/es/utils").SFCWithInstall<{
|
|
4
4
|
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("vue").ExtractPropTypes<{
|
|
5
5
|
size: {
|
|
6
|
-
type: import("vue").PropType<"" | "
|
|
6
|
+
type: import("vue").PropType<"" | "small" | "default" | "large">;
|
|
7
7
|
};
|
|
8
8
|
disabled: {
|
|
9
9
|
type: import("vue").PropType<boolean>;
|
|
@@ -15,7 +15,7 @@ export declare const VftForm: import("vft/es/utils").SFCWithInstall<{
|
|
|
15
15
|
type: import("vue").PropType<Partial<Record<string, import("vft/es/utils").Arrayable<import("./types").FormItemRule>>>>;
|
|
16
16
|
};
|
|
17
17
|
labelPosition: {
|
|
18
|
-
type: import("vue").PropType<"
|
|
18
|
+
type: import("vue").PropType<"top" | "left" | "right">;
|
|
19
19
|
};
|
|
20
20
|
requireAsteriskPosition: {
|
|
21
21
|
type: import("vue").PropType<"left" | "right">;
|
|
@@ -66,7 +66,7 @@ export declare const VftForm: import("vft/es/utils").SFCWithInstall<{
|
|
|
66
66
|
Defaults: {};
|
|
67
67
|
}, Readonly<import("vue").ExtractPropTypes<{
|
|
68
68
|
size: {
|
|
69
|
-
type: import("vue").PropType<"" | "
|
|
69
|
+
type: import("vue").PropType<"" | "small" | "default" | "large">;
|
|
70
70
|
};
|
|
71
71
|
disabled: {
|
|
72
72
|
type: import("vue").PropType<boolean>;
|
|
@@ -78,7 +78,7 @@ export declare const VftForm: import("vft/es/utils").SFCWithInstall<{
|
|
|
78
78
|
type: import("vue").PropType<Partial<Record<string, import("vft/es/utils").Arrayable<import("./types").FormItemRule>>>>;
|
|
79
79
|
};
|
|
80
80
|
labelPosition: {
|
|
81
|
-
type: import("vue").PropType<"
|
|
81
|
+
type: import("vue").PropType<"top" | "left" | "right">;
|
|
82
82
|
};
|
|
83
83
|
requireAsteriskPosition: {
|
|
84
84
|
type: import("vue").PropType<"left" | "right">;
|
|
@@ -124,7 +124,7 @@ export declare const VftForm: import("vft/es/utils").SFCWithInstall<{
|
|
|
124
124
|
__isSuspense?: never;
|
|
125
125
|
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
|
126
126
|
size: {
|
|
127
|
-
type: import("vue").PropType<"" | "
|
|
127
|
+
type: import("vue").PropType<"" | "small" | "default" | "large">;
|
|
128
128
|
};
|
|
129
129
|
disabled: {
|
|
130
130
|
type: import("vue").PropType<boolean>;
|
|
@@ -136,7 +136,7 @@ export declare const VftForm: import("vft/es/utils").SFCWithInstall<{
|
|
|
136
136
|
type: import("vue").PropType<Partial<Record<string, import("vft/es/utils").Arrayable<import("./types").FormItemRule>>>>;
|
|
137
137
|
};
|
|
138
138
|
labelPosition: {
|
|
139
|
-
type: import("vue").PropType<"
|
|
139
|
+
type: import("vue").PropType<"top" | "left" | "right">;
|
|
140
140
|
};
|
|
141
141
|
requireAsteriskPosition: {
|
|
142
142
|
type: import("vue").PropType<"left" | "right">;
|
|
@@ -195,16 +195,16 @@ export declare const VftForm: import("vft/es/utils").SFCWithInstall<{
|
|
|
195
195
|
type: import("vue").PropType<string | string[]>;
|
|
196
196
|
};
|
|
197
197
|
size: {
|
|
198
|
-
type: import("vue").PropType<"" | "
|
|
199
|
-
};
|
|
200
|
-
required: {
|
|
201
|
-
type: import("vue").PropType<boolean>;
|
|
202
|
-
default: undefined;
|
|
198
|
+
type: import("vue").PropType<"" | "small" | "default" | "large">;
|
|
203
199
|
};
|
|
204
200
|
labelWidth: {
|
|
205
201
|
type: import("vue").PropType<string | number>;
|
|
206
202
|
default: string;
|
|
207
203
|
};
|
|
204
|
+
required: {
|
|
205
|
+
type: import("vue").PropType<boolean>;
|
|
206
|
+
default: undefined;
|
|
207
|
+
};
|
|
208
208
|
rules: {
|
|
209
209
|
type: import("vue").PropType<import("vft/es/utils").Arrayable<import("./types").FormItemRule>>;
|
|
210
210
|
};
|
|
@@ -225,7 +225,7 @@ export declare const VftForm: import("vft/es/utils").SFCWithInstall<{
|
|
|
225
225
|
}>> & Readonly<{
|
|
226
226
|
"onUpdate:error"?: ((val: string) => any) | undefined;
|
|
227
227
|
}>, {
|
|
228
|
-
size: import("vue").ComputedRef<"" | "
|
|
228
|
+
size: import("vue").ComputedRef<"" | "small" | "default" | "large">;
|
|
229
229
|
validateMessage: import("vue").Ref<string, string>;
|
|
230
230
|
validateState: import("vue").Ref<import("./types").FormItemValidateState, import("./types").FormItemValidateState>;
|
|
231
231
|
validate: (trigger: string, callback?: import("./types").FormValidateCallback) => import("./types").FormValidationResult;
|
|
@@ -234,8 +234,8 @@ export declare const VftForm: import("vft/es/utils").SFCWithInstall<{
|
|
|
234
234
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
235
235
|
"update:error": (val: string) => void;
|
|
236
236
|
}, import("vue").PublicProps, {
|
|
237
|
-
required: boolean;
|
|
238
237
|
labelWidth: string | number;
|
|
238
|
+
required: boolean;
|
|
239
239
|
inlineMessage: string | boolean;
|
|
240
240
|
showMessage: boolean;
|
|
241
241
|
}, true, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
|
|
@@ -256,16 +256,16 @@ export declare const VftForm: import("vft/es/utils").SFCWithInstall<{
|
|
|
256
256
|
type: import("vue").PropType<string | string[]>;
|
|
257
257
|
};
|
|
258
258
|
size: {
|
|
259
|
-
type: import("vue").PropType<"" | "
|
|
260
|
-
};
|
|
261
|
-
required: {
|
|
262
|
-
type: import("vue").PropType<boolean>;
|
|
263
|
-
default: undefined;
|
|
259
|
+
type: import("vue").PropType<"" | "small" | "default" | "large">;
|
|
264
260
|
};
|
|
265
261
|
labelWidth: {
|
|
266
262
|
type: import("vue").PropType<string | number>;
|
|
267
263
|
default: string;
|
|
268
264
|
};
|
|
265
|
+
required: {
|
|
266
|
+
type: import("vue").PropType<boolean>;
|
|
267
|
+
default: undefined;
|
|
268
|
+
};
|
|
269
269
|
rules: {
|
|
270
270
|
type: import("vue").PropType<import("vft/es/utils").Arrayable<import("./types").FormItemRule>>;
|
|
271
271
|
};
|
|
@@ -286,15 +286,15 @@ export declare const VftForm: import("vft/es/utils").SFCWithInstall<{
|
|
|
286
286
|
}>> & Readonly<{
|
|
287
287
|
"onUpdate:error"?: ((val: string) => any) | undefined;
|
|
288
288
|
}>, {
|
|
289
|
-
size: import("vue").ComputedRef<"" | "
|
|
289
|
+
size: import("vue").ComputedRef<"" | "small" | "default" | "large">;
|
|
290
290
|
validateMessage: import("vue").Ref<string, string>;
|
|
291
291
|
validateState: import("vue").Ref<import("./types").FormItemValidateState, import("./types").FormItemValidateState>;
|
|
292
292
|
validate: (trigger: string, callback?: import("./types").FormValidateCallback) => import("./types").FormValidationResult;
|
|
293
293
|
clearValidate: () => void;
|
|
294
294
|
resetField: () => void;
|
|
295
295
|
}, {}, {}, {}, {
|
|
296
|
-
required: boolean;
|
|
297
296
|
labelWidth: string | number;
|
|
297
|
+
required: boolean;
|
|
298
298
|
inlineMessage: string | boolean;
|
|
299
299
|
showMessage: boolean;
|
|
300
300
|
}>;
|
|
@@ -312,16 +312,16 @@ export declare const VftForm: import("vft/es/utils").SFCWithInstall<{
|
|
|
312
312
|
type: import("vue").PropType<string | string[]>;
|
|
313
313
|
};
|
|
314
314
|
size: {
|
|
315
|
-
type: import("vue").PropType<"" | "
|
|
316
|
-
};
|
|
317
|
-
required: {
|
|
318
|
-
type: import("vue").PropType<boolean>;
|
|
319
|
-
default: undefined;
|
|
315
|
+
type: import("vue").PropType<"" | "small" | "default" | "large">;
|
|
320
316
|
};
|
|
321
317
|
labelWidth: {
|
|
322
318
|
type: import("vue").PropType<string | number>;
|
|
323
319
|
default: string;
|
|
324
320
|
};
|
|
321
|
+
required: {
|
|
322
|
+
type: import("vue").PropType<boolean>;
|
|
323
|
+
default: undefined;
|
|
324
|
+
};
|
|
325
325
|
rules: {
|
|
326
326
|
type: import("vue").PropType<import("vft/es/utils").Arrayable<import("./types").FormItemRule>>;
|
|
327
327
|
};
|
|
@@ -342,7 +342,7 @@ export declare const VftForm: import("vft/es/utils").SFCWithInstall<{
|
|
|
342
342
|
}>> & Readonly<{
|
|
343
343
|
"onUpdate:error"?: ((val: string) => any) | undefined;
|
|
344
344
|
}>, {
|
|
345
|
-
size: import("vue").ComputedRef<"" | "
|
|
345
|
+
size: import("vue").ComputedRef<"" | "small" | "default" | "large">;
|
|
346
346
|
validateMessage: import("vue").Ref<string, string>;
|
|
347
347
|
validateState: import("vue").Ref<import("./types").FormItemValidateState, import("./types").FormItemValidateState>;
|
|
348
348
|
validate: (trigger: string, callback?: import("./types").FormValidateCallback) => import("./types").FormValidationResult;
|
|
@@ -351,8 +351,8 @@ export declare const VftForm: import("vft/es/utils").SFCWithInstall<{
|
|
|
351
351
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
352
352
|
"update:error": (val: string) => void;
|
|
353
353
|
}, string, {
|
|
354
|
-
required: boolean;
|
|
355
354
|
labelWidth: string | number;
|
|
355
|
+
required: boolean;
|
|
356
356
|
inlineMessage: string | boolean;
|
|
357
357
|
showMessage: boolean;
|
|
358
358
|
}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
@@ -379,16 +379,16 @@ export declare const VftFormItem: import("vft/es/utils").SFCWithInstall<{
|
|
|
379
379
|
type: import("vue").PropType<string | string[]>;
|
|
380
380
|
};
|
|
381
381
|
size: {
|
|
382
|
-
type: import("vue").PropType<"" | "
|
|
383
|
-
};
|
|
384
|
-
required: {
|
|
385
|
-
type: import("vue").PropType<boolean>;
|
|
386
|
-
default: undefined;
|
|
382
|
+
type: import("vue").PropType<"" | "small" | "default" | "large">;
|
|
387
383
|
};
|
|
388
384
|
labelWidth: {
|
|
389
385
|
type: import("vue").PropType<string | number>;
|
|
390
386
|
default: string;
|
|
391
387
|
};
|
|
388
|
+
required: {
|
|
389
|
+
type: import("vue").PropType<boolean>;
|
|
390
|
+
default: undefined;
|
|
391
|
+
};
|
|
392
392
|
rules: {
|
|
393
393
|
type: import("vue").PropType<import("vft/es/utils").Arrayable<import("./types").FormItemRule>>;
|
|
394
394
|
};
|
|
@@ -409,7 +409,7 @@ export declare const VftFormItem: import("vft/es/utils").SFCWithInstall<{
|
|
|
409
409
|
}>> & Readonly<{
|
|
410
410
|
"onUpdate:error"?: ((val: string) => any) | undefined;
|
|
411
411
|
}>, {
|
|
412
|
-
size: import("vue").ComputedRef<"" | "
|
|
412
|
+
size: import("vue").ComputedRef<"" | "small" | "default" | "large">;
|
|
413
413
|
validateMessage: import("vue").Ref<string, string>;
|
|
414
414
|
validateState: import("vue").Ref<import("./types").FormItemValidateState, import("./types").FormItemValidateState>;
|
|
415
415
|
validate: (trigger: string, callback?: import("./types").FormValidateCallback) => import("./types").FormValidationResult;
|
|
@@ -418,8 +418,8 @@ export declare const VftFormItem: import("vft/es/utils").SFCWithInstall<{
|
|
|
418
418
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
419
419
|
"update:error": (val: string) => void;
|
|
420
420
|
}, import("vue").PublicProps, {
|
|
421
|
-
required: boolean;
|
|
422
421
|
labelWidth: string | number;
|
|
422
|
+
required: boolean;
|
|
423
423
|
inlineMessage: string | boolean;
|
|
424
424
|
showMessage: boolean;
|
|
425
425
|
}, true, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
|
|
@@ -440,16 +440,16 @@ export declare const VftFormItem: import("vft/es/utils").SFCWithInstall<{
|
|
|
440
440
|
type: import("vue").PropType<string | string[]>;
|
|
441
441
|
};
|
|
442
442
|
size: {
|
|
443
|
-
type: import("vue").PropType<"" | "
|
|
444
|
-
};
|
|
445
|
-
required: {
|
|
446
|
-
type: import("vue").PropType<boolean>;
|
|
447
|
-
default: undefined;
|
|
443
|
+
type: import("vue").PropType<"" | "small" | "default" | "large">;
|
|
448
444
|
};
|
|
449
445
|
labelWidth: {
|
|
450
446
|
type: import("vue").PropType<string | number>;
|
|
451
447
|
default: string;
|
|
452
448
|
};
|
|
449
|
+
required: {
|
|
450
|
+
type: import("vue").PropType<boolean>;
|
|
451
|
+
default: undefined;
|
|
452
|
+
};
|
|
453
453
|
rules: {
|
|
454
454
|
type: import("vue").PropType<import("vft/es/utils").Arrayable<import("./types").FormItemRule>>;
|
|
455
455
|
};
|
|
@@ -470,15 +470,15 @@ export declare const VftFormItem: import("vft/es/utils").SFCWithInstall<{
|
|
|
470
470
|
}>> & Readonly<{
|
|
471
471
|
"onUpdate:error"?: ((val: string) => any) | undefined;
|
|
472
472
|
}>, {
|
|
473
|
-
size: import("vue").ComputedRef<"" | "
|
|
473
|
+
size: import("vue").ComputedRef<"" | "small" | "default" | "large">;
|
|
474
474
|
validateMessage: import("vue").Ref<string, string>;
|
|
475
475
|
validateState: import("vue").Ref<import("./types").FormItemValidateState, import("./types").FormItemValidateState>;
|
|
476
476
|
validate: (trigger: string, callback?: import("./types").FormValidateCallback) => import("./types").FormValidationResult;
|
|
477
477
|
clearValidate: () => void;
|
|
478
478
|
resetField: () => void;
|
|
479
479
|
}, {}, {}, {}, {
|
|
480
|
-
required: boolean;
|
|
481
480
|
labelWidth: string | number;
|
|
481
|
+
required: boolean;
|
|
482
482
|
inlineMessage: string | boolean;
|
|
483
483
|
showMessage: boolean;
|
|
484
484
|
}>;
|
|
@@ -496,16 +496,16 @@ export declare const VftFormItem: import("vft/es/utils").SFCWithInstall<{
|
|
|
496
496
|
type: import("vue").PropType<string | string[]>;
|
|
497
497
|
};
|
|
498
498
|
size: {
|
|
499
|
-
type: import("vue").PropType<"" | "
|
|
500
|
-
};
|
|
501
|
-
required: {
|
|
502
|
-
type: import("vue").PropType<boolean>;
|
|
503
|
-
default: undefined;
|
|
499
|
+
type: import("vue").PropType<"" | "small" | "default" | "large">;
|
|
504
500
|
};
|
|
505
501
|
labelWidth: {
|
|
506
502
|
type: import("vue").PropType<string | number>;
|
|
507
503
|
default: string;
|
|
508
504
|
};
|
|
505
|
+
required: {
|
|
506
|
+
type: import("vue").PropType<boolean>;
|
|
507
|
+
default: undefined;
|
|
508
|
+
};
|
|
509
509
|
rules: {
|
|
510
510
|
type: import("vue").PropType<import("vft/es/utils").Arrayable<import("./types").FormItemRule>>;
|
|
511
511
|
};
|
|
@@ -526,7 +526,7 @@ export declare const VftFormItem: import("vft/es/utils").SFCWithInstall<{
|
|
|
526
526
|
}>> & Readonly<{
|
|
527
527
|
"onUpdate:error"?: ((val: string) => any) | undefined;
|
|
528
528
|
}>, {
|
|
529
|
-
size: import("vue").ComputedRef<"" | "
|
|
529
|
+
size: import("vue").ComputedRef<"" | "small" | "default" | "large">;
|
|
530
530
|
validateMessage: import("vue").Ref<string, string>;
|
|
531
531
|
validateState: import("vue").Ref<import("./types").FormItemValidateState, import("./types").FormItemValidateState>;
|
|
532
532
|
validate: (trigger: string, callback?: import("./types").FormValidateCallback) => import("./types").FormValidationResult;
|
|
@@ -535,8 +535,8 @@ export declare const VftFormItem: import("vft/es/utils").SFCWithInstall<{
|
|
|
535
535
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
536
536
|
"update:error": (val: string) => void;
|
|
537
537
|
}, string, {
|
|
538
|
-
required: boolean;
|
|
539
538
|
labelWidth: string | number;
|
|
539
|
+
required: boolean;
|
|
540
540
|
inlineMessage: string | boolean;
|
|
541
541
|
showMessage: boolean;
|
|
542
542
|
}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
@@ -5,7 +5,7 @@ export declare const VftInput: import("vft/es/utils").SFCWithInstall<{
|
|
|
5
5
|
type: import("vue").PropType<string>;
|
|
6
6
|
};
|
|
7
7
|
size: {
|
|
8
|
-
type: import("vue").PropType<"
|
|
8
|
+
type: import("vue").PropType<"small" | "default" | "large">;
|
|
9
9
|
};
|
|
10
10
|
disabled: {
|
|
11
11
|
type: import("vue").PropType<boolean>;
|
|
@@ -134,7 +134,7 @@ export declare const VftInput: import("vft/es/utils").SFCWithInstall<{
|
|
|
134
134
|
type: import("vue").PropType<string>;
|
|
135
135
|
};
|
|
136
136
|
size: {
|
|
137
|
-
type: import("vue").PropType<"
|
|
137
|
+
type: import("vue").PropType<"small" | "default" | "large">;
|
|
138
138
|
};
|
|
139
139
|
disabled: {
|
|
140
140
|
type: import("vue").PropType<boolean>;
|
|
@@ -244,7 +244,7 @@ export declare const VftInput: import("vft/es/utils").SFCWithInstall<{
|
|
|
244
244
|
type: import("vue").PropType<string>;
|
|
245
245
|
};
|
|
246
246
|
size: {
|
|
247
|
-
type: import("vue").PropType<"
|
|
247
|
+
type: import("vue").PropType<"small" | "default" | "large">;
|
|
248
248
|
};
|
|
249
249
|
disabled: {
|
|
250
250
|
type: import("vue").PropType<boolean>;
|
|
@@ -13,8 +13,8 @@ import "../../hooks/use-model-toggle/index.js";
|
|
|
13
13
|
import "@popperjs/core";
|
|
14
14
|
import "../../hooks/use-z-index/index.js";
|
|
15
15
|
import { calcTextareaHeight as ye } from "./utils.js";
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
16
|
+
import { useFormSize as et, useFormDisabled as tt } from "../form/hooks/use-form-common-props.js";
|
|
17
|
+
import { useFormItem as at, useFormItemInputId as ot } from "../form/hooks/use-form-item.js";
|
|
18
18
|
const nt = ["role"], lt = ["id", "type", "disabled", "formatter", "parser", "readonly", "autocomplete", "tabindex", "aria-label", "placeholder", "form"], st = ["id", "tabindex", "disabled", "readonly", "autocomplete", "aria-label", "placeholder", "form"], It = /* @__PURE__ */ Oe({
|
|
19
19
|
__name: "input",
|
|
20
20
|
props: {
|
|
@@ -85,9 +85,9 @@ const nt = ["role"], lt = ["id", "type", "disabled", "formatter", "parser", "rea
|
|
|
85
85
|
o.is("focus", h.value)
|
|
86
86
|
]), d = Je({
|
|
87
87
|
excludeKeys: l(() => Object.keys(X.value))
|
|
88
|
-
}), { form: Ce, formItem: F } =
|
|
88
|
+
}), { form: Ce, formItem: F } = at(), { inputId: Y } = ot(xe.props, {
|
|
89
89
|
formItemContext: F
|
|
90
|
-
}), ke =
|
|
90
|
+
}), ke = et(), p = tt(), o = pe("input"), Z = pe("textarea"), K = H(), y = H(), h = S(!1), D = S(!1), g = S(!1), M = S(!1), _ = S(), O = H(e.inputStyle), C = l(() => K.value || y.value), T = l(() => J(e.prefixIcon, "icon", { size: 16 })), ee = l(() => J(e.suffixIcon, "icon", { size: 16 })), Ie = l(() => J(e.clearIcon, "icon", {
|
|
91
91
|
icon: "icon-circle-close",
|
|
92
92
|
size: 16
|
|
93
93
|
})), te = l(() => Ce?.statusIcon ?? !1), k = l(() => F?.validateState || ""), ae = l(
|
|
@@ -26,7 +26,7 @@ export declare const VftInputNumber: import("vft/es/utils").SFCWithInstall<impor
|
|
|
26
26
|
type: import("vue").PropType<boolean>;
|
|
27
27
|
};
|
|
28
28
|
size: {
|
|
29
|
-
type: import("vue").PropType<"
|
|
29
|
+
type: import("vue").PropType<"small" | "default" | "large">;
|
|
30
30
|
};
|
|
31
31
|
controls: {
|
|
32
32
|
type: import("vue").PropType<boolean>;
|
|
@@ -87,7 +87,7 @@ export declare const VftInputNumber: import("vft/es/utils").SFCWithInstall<impor
|
|
|
87
87
|
type: import("vue").PropType<boolean>;
|
|
88
88
|
};
|
|
89
89
|
size: {
|
|
90
|
-
type: import("vue").PropType<"
|
|
90
|
+
type: import("vue").PropType<"small" | "default" | "large">;
|
|
91
91
|
};
|
|
92
92
|
controls: {
|
|
93
93
|
type: import("vue").PropType<boolean>;
|
|
@@ -46,11 +46,11 @@ export declare const usePopperContent: (props: PopperContentProps) => {
|
|
|
46
46
|
popperEscapeOffsets: import("@popperjs/core").SideObject;
|
|
47
47
|
};
|
|
48
48
|
offset?: {
|
|
49
|
-
|
|
49
|
+
top?: import("@popperjs/core").Offsets | undefined;
|
|
50
|
+
bottom?: import("@popperjs/core").Offsets | undefined;
|
|
50
51
|
left?: import("@popperjs/core").Offsets | undefined;
|
|
51
52
|
right?: import("@popperjs/core").Offsets | undefined;
|
|
52
|
-
|
|
53
|
-
top?: import("@popperjs/core").Offsets | undefined;
|
|
53
|
+
auto?: import("@popperjs/core").Offsets | undefined;
|
|
54
54
|
"auto-start"?: import("@popperjs/core").Offsets | undefined;
|
|
55
55
|
"auto-end"?: import("@popperjs/core").Offsets | undefined;
|
|
56
56
|
"top-start"?: import("@popperjs/core").Offsets | undefined;
|