vft 0.0.69 → 0.0.70
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/dist/index.css +1 -1
- package/es/components/avatar/avatar.vue.d.ts +2 -2
- package/es/components/avatar/index.d.ts +2 -2
- package/es/components/button/button.vue.d.ts +1 -1
- package/es/components/button/index.d.ts +1 -1
- package/es/components/button/use-button.d.ts +1 -1
- package/es/components/checkbox/checkbox-button.vue.d.ts +2 -2
- package/es/components/checkbox/checkbox-group.vue.d.ts +2 -2
- package/es/components/checkbox/checkbox.vue.d.ts +2 -2
- 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 +10 -10
- package/es/components/color-picker/color-picker.vue.d.ts +2 -2
- package/es/components/color-picker/index.d.ts +2 -2
- package/es/components/dropdown/dropdown.vue.d.ts +1 -1
- package/es/components/dropdown/index.d.ts +1 -1
- package/es/components/form/form-item.vue.d.ts +3 -3
- package/es/components/form/form.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 +8 -8
- package/es/components/input/index.d.ts +2 -2
- package/es/components/input/input.vue.d.ts +2 -2
- package/es/components/radio/index.d.ts +10 -10
- package/es/components/radio/radio-button.vue.d.ts +2 -2
- package/es/components/radio/radio-group.vue.d.ts +2 -2
- package/es/components/radio/radio.vue.d.ts +2 -2
- package/es/components/radio/use-radio.d.ts +1 -1
- package/es/components/select-v2/defaults.d.ts +1 -1
- package/es/components/select-v2/index.d.ts +8 -8
- package/es/components/select-v2/select.vue.d.ts +4 -4
- package/es/components/select-v2/useSelect.d.ts +2 -2
- package/es/components/switch/index.d.ts +2 -2
- package/es/components/switch/switch.vue.d.ts +2 -2
- package/es/components/tabs/tabs.vue2.js +22 -19
- package/es/components/tabs/types.d.ts +22 -21
- package/es/hooks/use-size/index.d.ts +1 -1
- package/es/package.json.js +1 -1
- package/lib/components/avatar/avatar.vue.d.ts +2 -2
- package/lib/components/avatar/index.d.ts +2 -2
- package/lib/components/button/button.vue.d.ts +1 -1
- package/lib/components/button/index.d.ts +1 -1
- package/lib/components/button/use-button.d.ts +1 -1
- package/lib/components/checkbox/checkbox-button.vue.d.ts +2 -2
- package/lib/components/checkbox/checkbox-group.vue.d.ts +2 -2
- package/lib/components/checkbox/checkbox.vue.d.ts +2 -2
- 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 +10 -10
- package/lib/components/color-picker/color-picker.vue.d.ts +2 -2
- package/lib/components/color-picker/index.d.ts +2 -2
- package/lib/components/dropdown/dropdown.vue.d.ts +1 -1
- package/lib/components/dropdown/index.d.ts +1 -1
- package/lib/components/form/form-item.vue.d.ts +3 -3
- package/lib/components/form/form.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 +8 -8
- package/lib/components/input/index.d.ts +2 -2
- package/lib/components/input/input.vue.d.ts +2 -2
- package/lib/components/radio/index.d.ts +10 -10
- package/lib/components/radio/radio-button.vue.d.ts +2 -2
- package/lib/components/radio/radio-group.vue.d.ts +2 -2
- package/lib/components/radio/radio.vue.d.ts +2 -2
- package/lib/components/radio/use-radio.d.ts +1 -1
- package/lib/components/select-v2/defaults.d.ts +1 -1
- package/lib/components/select-v2/index.d.ts +8 -8
- package/lib/components/select-v2/select.vue.d.ts +4 -4
- package/lib/components/select-v2/useSelect.d.ts +2 -2
- package/lib/components/switch/index.d.ts +2 -2
- package/lib/components/switch/switch.vue.d.ts +2 -2
- package/lib/components/tabs/tabs.vue2.cjs +1 -1
- package/lib/components/tabs/types.d.ts +22 -21
- package/lib/hooks/use-size/index.d.ts +1 -1
- package/lib/package.json.cjs +1 -1
- package/package.json +5 -5
- package/theme-style/index.css +1 -1
- package/theme-style/src/tabs.scss +15 -13
- package/theme-style/vft-tabs.css +1 -1
- package/web-types.json +1 -1
|
@@ -60,14 +60,14 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
60
60
|
default: boolean;
|
|
61
61
|
};
|
|
62
62
|
size: {
|
|
63
|
-
type: __PropType<"" | "
|
|
63
|
+
type: __PropType<"" | "large" | "small" | "default" | undefined>;
|
|
64
64
|
required: false;
|
|
65
65
|
};
|
|
66
66
|
}, {
|
|
67
67
|
/**
|
|
68
68
|
* @description Form item size.
|
|
69
69
|
*/
|
|
70
|
-
size: import("vue").ComputedRef<"" | "
|
|
70
|
+
size: import("vue").ComputedRef<"" | "large" | "small" | "default">;
|
|
71
71
|
/**
|
|
72
72
|
* @description Validation message.
|
|
73
73
|
*/
|
|
@@ -134,7 +134,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
134
134
|
default: boolean;
|
|
135
135
|
};
|
|
136
136
|
size: {
|
|
137
|
-
type: __PropType<"" | "
|
|
137
|
+
type: __PropType<"" | "large" | "small" | "default" | undefined>;
|
|
138
138
|
required: false;
|
|
139
139
|
};
|
|
140
140
|
}>>, {
|
|
@@ -21,7 +21,7 @@ export interface FormProps {
|
|
|
21
21
|
}
|
|
22
22
|
declare const _sfc_main: import("vue").DefineComponent<{
|
|
23
23
|
size: {
|
|
24
|
-
type: __PropType<"" | "
|
|
24
|
+
type: __PropType<"" | "large" | "small" | "default" | undefined>;
|
|
25
25
|
required: false;
|
|
26
26
|
};
|
|
27
27
|
disabled: {
|
|
@@ -103,7 +103,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
103
103
|
scrollToField: (prop: FormItemProp) => void;
|
|
104
104
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "validate"[], "validate", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
105
105
|
size: {
|
|
106
|
-
type: __PropType<"" | "
|
|
106
|
+
type: __PropType<"" | "large" | "small" | "default" | undefined>;
|
|
107
107
|
required: false;
|
|
108
108
|
};
|
|
109
109
|
disabled: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { ComponentSize } from 'vft/es/constants';
|
|
2
2
|
import type { MaybeRef } from '@vueuse/core';
|
|
3
|
-
export declare const useFormSize: (fallback?: MaybeRef<ComponentSize | undefined>, ignore?: Partial<Record<'prop' | 'form' | 'formItem' | 'global', boolean>>) => import("vue").ComputedRef<"" | "
|
|
3
|
+
export declare const useFormSize: (fallback?: MaybeRef<ComponentSize | undefined>, ignore?: Partial<Record<'prop' | 'form' | 'formItem' | 'global', boolean>>) => import("vue").ComputedRef<"" | "large" | "small" | "default">;
|
|
4
4
|
export declare const useFormDisabled: (fallback?: MaybeRef<boolean | undefined>) => import("vue").ComputedRef<boolean>;
|
|
5
|
-
export declare const useSize: (fallback?: MaybeRef<ComponentSize | undefined>, ignore?: Partial<Record<'prop' | 'form' | 'formItem' | 'global', boolean>>) => import("vue").ComputedRef<"" | "
|
|
5
|
+
export declare const useSize: (fallback?: MaybeRef<ComponentSize | undefined>, ignore?: Partial<Record<'prop' | 'form' | 'formItem' | 'global', boolean>>) => import("vue").ComputedRef<"" | "large" | "small" | "default">;
|
|
6
6
|
export declare const useDisabled: (fallback?: MaybeRef<boolean | undefined>) => import("vue").ComputedRef<boolean>;
|
|
@@ -2,7 +2,7 @@ import Form from './form.vue';
|
|
|
2
2
|
import FormItem from './form-item.vue';
|
|
3
3
|
export declare const VftForm: import("vft/es/utils").SFCWithInstall<import("vue").DefineComponent<{
|
|
4
4
|
size: {
|
|
5
|
-
type: import("vue").PropType<"" | "
|
|
5
|
+
type: import("vue").PropType<"" | "large" | "small" | "default" | undefined>;
|
|
6
6
|
required: false;
|
|
7
7
|
};
|
|
8
8
|
disabled: {
|
|
@@ -69,7 +69,7 @@ export declare const VftForm: import("vft/es/utils").SFCWithInstall<import("vue"
|
|
|
69
69
|
scrollToField: (prop: import("./types").FormItemProp) => void;
|
|
70
70
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "validate"[], "validate", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
71
71
|
size: {
|
|
72
|
-
type: import("vue").PropType<"" | "
|
|
72
|
+
type: import("vue").PropType<"" | "large" | "small" | "default" | undefined>;
|
|
73
73
|
required: false;
|
|
74
74
|
};
|
|
75
75
|
disabled: {
|
|
@@ -177,11 +177,11 @@ export declare const VftForm: import("vft/es/utils").SFCWithInstall<import("vue"
|
|
|
177
177
|
default: boolean;
|
|
178
178
|
};
|
|
179
179
|
size: {
|
|
180
|
-
type: import("vue").PropType<"" | "
|
|
180
|
+
type: import("vue").PropType<"" | "large" | "small" | "default" | undefined>;
|
|
181
181
|
required: false;
|
|
182
182
|
};
|
|
183
183
|
}, {
|
|
184
|
-
size: import("vue").ComputedRef<"" | "
|
|
184
|
+
size: import("vue").ComputedRef<"" | "large" | "small" | "default">;
|
|
185
185
|
validateMessage: import("vue").Ref<string>;
|
|
186
186
|
validateState: import("vue").Ref<"" | "error" | "validating" | "success">;
|
|
187
187
|
validate: (trigger: string, callback?: import("./types").FormValidateCallback | undefined) => import("./types").FormValidationResult;
|
|
@@ -233,7 +233,7 @@ export declare const VftForm: import("vft/es/utils").SFCWithInstall<import("vue"
|
|
|
233
233
|
default: boolean;
|
|
234
234
|
};
|
|
235
235
|
size: {
|
|
236
|
-
type: import("vue").PropType<"" | "
|
|
236
|
+
type: import("vue").PropType<"" | "large" | "small" | "default" | undefined>;
|
|
237
237
|
required: false;
|
|
238
238
|
};
|
|
239
239
|
}>>, {
|
|
@@ -290,11 +290,11 @@ export declare const VftFormItem: import("vft/es/utils").SFCWithInstall<import("
|
|
|
290
290
|
default: boolean;
|
|
291
291
|
};
|
|
292
292
|
size: {
|
|
293
|
-
type: import("vue").PropType<"" | "
|
|
293
|
+
type: import("vue").PropType<"" | "large" | "small" | "default" | undefined>;
|
|
294
294
|
required: false;
|
|
295
295
|
};
|
|
296
296
|
}, {
|
|
297
|
-
size: import("vue").ComputedRef<"" | "
|
|
297
|
+
size: import("vue").ComputedRef<"" | "large" | "small" | "default">;
|
|
298
298
|
validateMessage: import("vue").Ref<string>;
|
|
299
299
|
validateState: import("vue").Ref<"" | "error" | "validating" | "success">;
|
|
300
300
|
validate: (trigger: string, callback?: import("./types").FormValidateCallback | undefined) => import("./types").FormValidationResult;
|
|
@@ -346,7 +346,7 @@ export declare const VftFormItem: import("vft/es/utils").SFCWithInstall<import("
|
|
|
346
346
|
default: boolean;
|
|
347
347
|
};
|
|
348
348
|
size: {
|
|
349
|
-
type: import("vue").PropType<"" | "
|
|
349
|
+
type: import("vue").PropType<"" | "large" | "small" | "default" | undefined>;
|
|
350
350
|
required: false;
|
|
351
351
|
};
|
|
352
352
|
}>>, {
|
|
@@ -4,7 +4,7 @@ export declare const VftInput: import("vft/es/utils").SFCWithInstall<import("vue
|
|
|
4
4
|
required: false;
|
|
5
5
|
};
|
|
6
6
|
size: {
|
|
7
|
-
type: import("vue").PropType<"
|
|
7
|
+
type: import("vue").PropType<"large" | "small" | "default" | undefined>;
|
|
8
8
|
required: false;
|
|
9
9
|
};
|
|
10
10
|
disabled: {
|
|
@@ -136,7 +136,7 @@ export declare const VftInput: import("vft/es/utils").SFCWithInstall<import("vue
|
|
|
136
136
|
required: false;
|
|
137
137
|
};
|
|
138
138
|
size: {
|
|
139
|
-
type: import("vue").PropType<"
|
|
139
|
+
type: import("vue").PropType<"large" | "small" | "default" | undefined>;
|
|
140
140
|
required: false;
|
|
141
141
|
};
|
|
142
142
|
disabled: {
|
|
@@ -7,7 +7,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
7
7
|
required: false;
|
|
8
8
|
};
|
|
9
9
|
size: {
|
|
10
|
-
type: __PropType<"
|
|
10
|
+
type: __PropType<"large" | "small" | "default" | undefined>;
|
|
11
11
|
required: false;
|
|
12
12
|
};
|
|
13
13
|
disabled: {
|
|
@@ -149,7 +149,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
149
149
|
required: false;
|
|
150
150
|
};
|
|
151
151
|
size: {
|
|
152
|
-
type: __PropType<"
|
|
152
|
+
type: __PropType<"large" | "small" | "default" | undefined>;
|
|
153
153
|
required: false;
|
|
154
154
|
};
|
|
155
155
|
disabled: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export declare const VftRadio: import("vft/es/utils").SFCWithInstall<import("vue").DefineComponent<{
|
|
2
2
|
size: {
|
|
3
|
-
type: import("vue").PropType<"" | "
|
|
3
|
+
type: import("vue").PropType<"" | "large" | "small" | "default" | undefined>;
|
|
4
4
|
required: false;
|
|
5
5
|
};
|
|
6
6
|
disabled: {
|
|
@@ -25,7 +25,7 @@ export declare const VftRadio: import("vft/es/utils").SFCWithInstall<import("vue
|
|
|
25
25
|
};
|
|
26
26
|
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "change")[], "update:modelValue" | "change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
27
27
|
size: {
|
|
28
|
-
type: import("vue").PropType<"" | "
|
|
28
|
+
type: import("vue").PropType<"" | "large" | "small" | "default" | undefined>;
|
|
29
29
|
required: false;
|
|
30
30
|
};
|
|
31
31
|
disabled: {
|
|
@@ -54,7 +54,7 @@ export declare const VftRadio: import("vft/es/utils").SFCWithInstall<import("vue
|
|
|
54
54
|
}, {}>> & {
|
|
55
55
|
RadioButton: import("vue").DefineComponent<{
|
|
56
56
|
size: {
|
|
57
|
-
type: import("vue").PropType<"" | "
|
|
57
|
+
type: import("vue").PropType<"" | "large" | "small" | "default" | undefined>;
|
|
58
58
|
required: false;
|
|
59
59
|
};
|
|
60
60
|
disabled: {
|
|
@@ -71,7 +71,7 @@ export declare const VftRadio: import("vft/es/utils").SFCWithInstall<import("vue
|
|
|
71
71
|
};
|
|
72
72
|
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
73
73
|
size: {
|
|
74
|
-
type: import("vue").PropType<"" | "
|
|
74
|
+
type: import("vue").PropType<"" | "large" | "small" | "default" | undefined>;
|
|
75
75
|
required: false;
|
|
76
76
|
};
|
|
77
77
|
disabled: {
|
|
@@ -93,7 +93,7 @@ export declare const VftRadio: import("vft/es/utils").SFCWithInstall<import("vue
|
|
|
93
93
|
required: false;
|
|
94
94
|
};
|
|
95
95
|
size: {
|
|
96
|
-
type: import("vue").PropType<"" | "
|
|
96
|
+
type: import("vue").PropType<"" | "large" | "small" | "default" | undefined>;
|
|
97
97
|
required: false;
|
|
98
98
|
};
|
|
99
99
|
disabled: {
|
|
@@ -131,7 +131,7 @@ export declare const VftRadio: import("vft/es/utils").SFCWithInstall<import("vue
|
|
|
131
131
|
required: false;
|
|
132
132
|
};
|
|
133
133
|
size: {
|
|
134
|
-
type: import("vue").PropType<"" | "
|
|
134
|
+
type: import("vue").PropType<"" | "large" | "small" | "default" | undefined>;
|
|
135
135
|
required: false;
|
|
136
136
|
};
|
|
137
137
|
disabled: {
|
|
@@ -177,7 +177,7 @@ export declare const VftRadioGroup: import("vft/es/utils").SFCWithInstall<import
|
|
|
177
177
|
required: false;
|
|
178
178
|
};
|
|
179
179
|
size: {
|
|
180
|
-
type: import("vue").PropType<"" | "
|
|
180
|
+
type: import("vue").PropType<"" | "large" | "small" | "default" | undefined>;
|
|
181
181
|
required: false;
|
|
182
182
|
};
|
|
183
183
|
disabled: {
|
|
@@ -215,7 +215,7 @@ export declare const VftRadioGroup: import("vft/es/utils").SFCWithInstall<import
|
|
|
215
215
|
required: false;
|
|
216
216
|
};
|
|
217
217
|
size: {
|
|
218
|
-
type: import("vue").PropType<"" | "
|
|
218
|
+
type: import("vue").PropType<"" | "large" | "small" | "default" | undefined>;
|
|
219
219
|
required: false;
|
|
220
220
|
};
|
|
221
221
|
disabled: {
|
|
@@ -255,7 +255,7 @@ export declare const VftRadioGroup: import("vft/es/utils").SFCWithInstall<import
|
|
|
255
255
|
}>>;
|
|
256
256
|
export declare const VftRadioButton: import("vft/es/utils").SFCWithInstall<import("vue").DefineComponent<{
|
|
257
257
|
size: {
|
|
258
|
-
type: import("vue").PropType<"" | "
|
|
258
|
+
type: import("vue").PropType<"" | "large" | "small" | "default" | undefined>;
|
|
259
259
|
required: false;
|
|
260
260
|
};
|
|
261
261
|
disabled: {
|
|
@@ -272,7 +272,7 @@ export declare const VftRadioButton: import("vft/es/utils").SFCWithInstall<impor
|
|
|
272
272
|
};
|
|
273
273
|
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
274
274
|
size: {
|
|
275
|
-
type: import("vue").PropType<"" | "
|
|
275
|
+
type: import("vue").PropType<"" | "large" | "small" | "default" | undefined>;
|
|
276
276
|
required: false;
|
|
277
277
|
};
|
|
278
278
|
disabled: {
|
|
@@ -8,7 +8,7 @@ export interface RadioButtonProps {
|
|
|
8
8
|
}
|
|
9
9
|
declare const _sfc_main: import("vue").DefineComponent<{
|
|
10
10
|
size: {
|
|
11
|
-
type: __PropType<"" | "
|
|
11
|
+
type: __PropType<"" | "large" | "small" | "default" | undefined>;
|
|
12
12
|
required: false;
|
|
13
13
|
};
|
|
14
14
|
disabled: {
|
|
@@ -25,7 +25,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
25
25
|
};
|
|
26
26
|
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
27
27
|
size: {
|
|
28
|
-
type: __PropType<"" | "
|
|
28
|
+
type: __PropType<"" | "large" | "small" | "default" | undefined>;
|
|
29
29
|
required: false;
|
|
30
30
|
};
|
|
31
31
|
disabled: {
|
|
@@ -17,7 +17,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
17
17
|
required: false;
|
|
18
18
|
};
|
|
19
19
|
size: {
|
|
20
|
-
type: __PropType<"" | "
|
|
20
|
+
type: __PropType<"" | "large" | "small" | "default" | undefined>;
|
|
21
21
|
required: false;
|
|
22
22
|
};
|
|
23
23
|
disabled: {
|
|
@@ -55,7 +55,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
55
55
|
required: false;
|
|
56
56
|
};
|
|
57
57
|
size: {
|
|
58
|
-
type: __PropType<"" | "
|
|
58
|
+
type: __PropType<"" | "large" | "small" | "default" | undefined>;
|
|
59
59
|
required: false;
|
|
60
60
|
};
|
|
61
61
|
disabled: {
|
|
@@ -10,7 +10,7 @@ export interface RadioProps {
|
|
|
10
10
|
}
|
|
11
11
|
declare const _sfc_main: import("vue").DefineComponent<{
|
|
12
12
|
size: {
|
|
13
|
-
type: __PropType<"" | "
|
|
13
|
+
type: __PropType<"" | "large" | "small" | "default" | undefined>;
|
|
14
14
|
required: false;
|
|
15
15
|
};
|
|
16
16
|
disabled: {
|
|
@@ -35,7 +35,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
35
35
|
};
|
|
36
36
|
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "change")[], "update:modelValue" | "change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
37
37
|
size: {
|
|
38
|
-
type: __PropType<"" | "
|
|
38
|
+
type: __PropType<"" | "large" | "small" | "default" | undefined>;
|
|
39
39
|
required: false;
|
|
40
40
|
};
|
|
41
41
|
disabled: {
|
|
@@ -8,7 +8,7 @@ export declare const useRadio: (props: {
|
|
|
8
8
|
isGroup: import("vue").ComputedRef<boolean>;
|
|
9
9
|
radioGroup: import("./constants").RadioGroupContext | undefined;
|
|
10
10
|
focus: import("vue").Ref<boolean>;
|
|
11
|
-
size: import("vue").ComputedRef<"" | "
|
|
11
|
+
size: import("vue").ComputedRef<"" | "large" | "small" | "default">;
|
|
12
12
|
disabled: import("vue").ComputedRef<boolean>;
|
|
13
13
|
tabIndex: import("vue").ComputedRef<-1 | 0>;
|
|
14
14
|
modelValue: import("vue").WritableComputedRef<string | number | boolean | undefined>;
|
|
@@ -79,7 +79,7 @@ declare const _Select: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
79
79
|
};
|
|
80
80
|
remote: BooleanConstructor;
|
|
81
81
|
size: {
|
|
82
|
-
type: import("vue").PropType<"" | "
|
|
82
|
+
type: import("vue").PropType<"" | "large" | "small" | "default">;
|
|
83
83
|
};
|
|
84
84
|
valueKey: {
|
|
85
85
|
type: StringConstructor;
|
|
@@ -100,7 +100,7 @@ declare const _Select: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
100
100
|
};
|
|
101
101
|
}, {
|
|
102
102
|
modelValue: import("vue").ComputedRef<any>;
|
|
103
|
-
collapseTagSize: import("vue").ComputedRef<"
|
|
103
|
+
collapseTagSize: import("vue").ComputedRef<"small" | "default">;
|
|
104
104
|
currentPlaceholder: import("vue").ComputedRef<any>;
|
|
105
105
|
expanded: import("vue").Ref<boolean>;
|
|
106
106
|
emptyText: import("vue").ComputedRef<any>;
|
|
@@ -115,7 +115,7 @@ declare const _Select: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
115
115
|
hasModelValue: import("vue").ComputedRef<boolean>;
|
|
116
116
|
shouldShowPlaceholder: import("vue").ComputedRef<boolean>;
|
|
117
117
|
selectDisabled: import("vue").ComputedRef<boolean | undefined>;
|
|
118
|
-
selectSize: import("vue").ComputedRef<"" | "
|
|
118
|
+
selectSize: import("vue").ComputedRef<"" | "large" | "small" | "default">;
|
|
119
119
|
showClearBtn: import("vue").ComputedRef<boolean>;
|
|
120
120
|
states: {
|
|
121
121
|
inputValue: string;
|
|
@@ -955,7 +955,7 @@ declare const _Select: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
955
955
|
};
|
|
956
956
|
remote: BooleanConstructor;
|
|
957
957
|
size: {
|
|
958
|
-
type: import("vue").PropType<"" | "
|
|
958
|
+
type: import("vue").PropType<"" | "large" | "small" | "default">;
|
|
959
959
|
};
|
|
960
960
|
valueKey: {
|
|
961
961
|
type: StringConstructor;
|
|
@@ -1091,7 +1091,7 @@ export declare const VftSelectV2: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
1091
1091
|
};
|
|
1092
1092
|
remote: BooleanConstructor;
|
|
1093
1093
|
size: {
|
|
1094
|
-
type: import("vue").PropType<"" | "
|
|
1094
|
+
type: import("vue").PropType<"" | "large" | "small" | "default">;
|
|
1095
1095
|
};
|
|
1096
1096
|
valueKey: {
|
|
1097
1097
|
type: StringConstructor;
|
|
@@ -1112,7 +1112,7 @@ export declare const VftSelectV2: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
1112
1112
|
};
|
|
1113
1113
|
}, {
|
|
1114
1114
|
modelValue: import("vue").ComputedRef<any>;
|
|
1115
|
-
collapseTagSize: import("vue").ComputedRef<"
|
|
1115
|
+
collapseTagSize: import("vue").ComputedRef<"small" | "default">;
|
|
1116
1116
|
currentPlaceholder: import("vue").ComputedRef<any>;
|
|
1117
1117
|
expanded: import("vue").Ref<boolean>;
|
|
1118
1118
|
emptyText: import("vue").ComputedRef<any>;
|
|
@@ -1127,7 +1127,7 @@ export declare const VftSelectV2: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
1127
1127
|
hasModelValue: import("vue").ComputedRef<boolean>;
|
|
1128
1128
|
shouldShowPlaceholder: import("vue").ComputedRef<boolean>;
|
|
1129
1129
|
selectDisabled: import("vue").ComputedRef<boolean | undefined>;
|
|
1130
|
-
selectSize: import("vue").ComputedRef<"" | "
|
|
1130
|
+
selectSize: import("vue").ComputedRef<"" | "large" | "small" | "default">;
|
|
1131
1131
|
showClearBtn: import("vue").ComputedRef<boolean>;
|
|
1132
1132
|
states: {
|
|
1133
1133
|
inputValue: string;
|
|
@@ -1967,7 +1967,7 @@ export declare const VftSelectV2: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
1967
1967
|
};
|
|
1968
1968
|
remote: BooleanConstructor;
|
|
1969
1969
|
size: {
|
|
1970
|
-
type: import("vue").PropType<"" | "
|
|
1970
|
+
type: import("vue").PropType<"" | "large" | "small" | "default">;
|
|
1971
1971
|
};
|
|
1972
1972
|
valueKey: {
|
|
1973
1973
|
type: StringConstructor;
|
|
@@ -78,7 +78,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
78
78
|
};
|
|
79
79
|
remote: BooleanConstructor;
|
|
80
80
|
size: {
|
|
81
|
-
type: import("vue").PropType<"" | "
|
|
81
|
+
type: import("vue").PropType<"" | "large" | "small" | "default">;
|
|
82
82
|
};
|
|
83
83
|
valueKey: {
|
|
84
84
|
type: StringConstructor;
|
|
@@ -99,7 +99,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
99
99
|
};
|
|
100
100
|
}, {
|
|
101
101
|
modelValue: import("vue").ComputedRef<any>;
|
|
102
|
-
collapseTagSize: import("vue").ComputedRef<"
|
|
102
|
+
collapseTagSize: import("vue").ComputedRef<"small" | "default">;
|
|
103
103
|
currentPlaceholder: import("vue").ComputedRef<any>;
|
|
104
104
|
expanded: import("vue").Ref<boolean>;
|
|
105
105
|
emptyText: import("vue").ComputedRef<any>;
|
|
@@ -114,7 +114,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
114
114
|
hasModelValue: import("vue").ComputedRef<boolean>;
|
|
115
115
|
shouldShowPlaceholder: import("vue").ComputedRef<boolean>;
|
|
116
116
|
selectDisabled: import("vue").ComputedRef<boolean | undefined>;
|
|
117
|
-
selectSize: import("vue").ComputedRef<"" | "
|
|
117
|
+
selectSize: import("vue").ComputedRef<"" | "large" | "small" | "default">;
|
|
118
118
|
showClearBtn: import("vue").ComputedRef<boolean>;
|
|
119
119
|
states: {
|
|
120
120
|
inputValue: string;
|
|
@@ -954,7 +954,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
954
954
|
};
|
|
955
955
|
remote: BooleanConstructor;
|
|
956
956
|
size: {
|
|
957
|
-
type: import("vue").PropType<"" | "
|
|
957
|
+
type: import("vue").PropType<"" | "large" | "small" | "default">;
|
|
958
958
|
};
|
|
959
959
|
valueKey: {
|
|
960
960
|
type: StringConstructor;
|
|
@@ -3,7 +3,7 @@ import type { SelectProps } from './defaults';
|
|
|
3
3
|
import type { CSSProperties, ExtractPropTypes } from 'vue';
|
|
4
4
|
import type { Option } from './select.types';
|
|
5
5
|
declare const useSelect: (props: ExtractPropTypes<typeof SelectProps>, emit: any) => {
|
|
6
|
-
collapseTagSize: import("vue").ComputedRef<"
|
|
6
|
+
collapseTagSize: import("vue").ComputedRef<"small" | "default">;
|
|
7
7
|
currentPlaceholder: import("vue").ComputedRef<any>;
|
|
8
8
|
expanded: import("vue").Ref<boolean>;
|
|
9
9
|
emptyText: import("vue").ComputedRef<any>;
|
|
@@ -18,7 +18,7 @@ declare const useSelect: (props: ExtractPropTypes<typeof SelectProps>, emit: any
|
|
|
18
18
|
hasModelValue: import("vue").ComputedRef<boolean>;
|
|
19
19
|
shouldShowPlaceholder: import("vue").ComputedRef<boolean>;
|
|
20
20
|
selectDisabled: import("vue").ComputedRef<boolean | undefined>;
|
|
21
|
-
selectSize: import("vue").ComputedRef<"" | "
|
|
21
|
+
selectSize: import("vue").ComputedRef<"" | "large" | "small" | "default">;
|
|
22
22
|
showClearBtn: import("vue").ComputedRef<boolean>;
|
|
23
23
|
states: {
|
|
24
24
|
inputValue: string;
|
|
@@ -84,7 +84,7 @@ export declare const VftSwitch: import("vft/es/utils").SFCWithInstall<import("vu
|
|
|
84
84
|
required: false;
|
|
85
85
|
};
|
|
86
86
|
size: {
|
|
87
|
-
type: import("vue").PropType<"" | "
|
|
87
|
+
type: import("vue").PropType<"" | "large" | "small" | "default" | undefined>;
|
|
88
88
|
required: false;
|
|
89
89
|
};
|
|
90
90
|
tabindex: {
|
|
@@ -180,7 +180,7 @@ export declare const VftSwitch: import("vft/es/utils").SFCWithInstall<import("vu
|
|
|
180
180
|
required: false;
|
|
181
181
|
};
|
|
182
182
|
size: {
|
|
183
|
-
type: import("vue").PropType<"" | "
|
|
183
|
+
type: import("vue").PropType<"" | "large" | "small" | "default" | undefined>;
|
|
184
184
|
required: false;
|
|
185
185
|
};
|
|
186
186
|
tabindex: {
|
|
@@ -110,7 +110,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
110
110
|
required: false;
|
|
111
111
|
};
|
|
112
112
|
size: {
|
|
113
|
-
type: __PropType<"" | "
|
|
113
|
+
type: __PropType<"" | "large" | "small" | "default" | undefined>;
|
|
114
114
|
required: false;
|
|
115
115
|
};
|
|
116
116
|
tabindex: {
|
|
@@ -212,7 +212,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
212
212
|
required: false;
|
|
213
213
|
};
|
|
214
214
|
size: {
|
|
215
|
-
type: __PropType<"" | "
|
|
215
|
+
type: __PropType<"" | "large" | "small" | "default" | undefined>;
|
|
216
216
|
required: false;
|
|
217
217
|
};
|
|
218
218
|
tabindex: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const n=require("vue"),P=require("../../hooks/use-namespace/index.cjs");require("@popperjs/core");require("lodash");require("../../hooks/use-z-index/index.cjs");require("@vueuse/core");const s=require("@vft/utils");require("../../utils/ns-cover.cjs");const V=require("../../hooks/use-ordered-children/index.cjs");require("@vue/reactivity");require("@vue/shared");const
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const n=require("vue"),P=require("../../hooks/use-namespace/index.cjs");require("@popperjs/core");require("lodash");require("../../hooks/use-z-index/index.cjs");require("@vueuse/core");const s=require("@vft/utils");require("../../utils/ns-cover.cjs");const V=require("../../hooks/use-ordered-children/index.cjs");require("@vue/reactivity");require("@vue/shared");const B=require("@vft/constants"),A=require("./tab-nav.vue2.cjs"),E=require("./types.cjs"),d=P.useNamespace("tabs"),k=n.defineComponent({name:d.b()}),M=n.defineComponent({...k,props:{closable:{type:Boolean},addable:{type:Boolean,default:!1},modelValue:null,editable:{type:Boolean},tabPosition:{default:"top"},beforeLeave:{type:Function},stretch:{type:Boolean},showBar:{type:Boolean,default:!1},closeIconCfg:null,addIconCfg:null,arrowLeftIconCfg:null,arrowRightIconCfg:null},emits:{[B.UPDATE_MODEL_EVENT]:t=>s.isNumberish(t),tabClick:(t,u)=>u instanceof Event,tabContextMenu:(t,u,a)=>a instanceof Event,tabChange:t=>s.isNumberish(t),edit:(t,u)=>["remove","add"].includes(u),tabRemove:t=>s.isNumberish(t),tabAdd:()=>!0},setup(t,{expose:u,emit:a}){const m=n.getCurrentInstance(),i=n.useSlots(),l=n.ref(),c=n.ref(t.modelValue??"0"),g=e=>{c.value=e,a("update:modelValue",e),a("tabChange",e)},f=async e=>{var o,r,C;if(!(c.value===e||s.isUndefined(e)))try{await((o=t.beforeLeave)==null?void 0:o.call(t,e,c.value))!==!1&&(g(e),(C=(r=l.value)==null?void 0:r.removeFocus)==null||C.call(r))}catch{}},h=(e,o,r)=>{e.props.disabled||(f(o),a("tabClick",e,r))},I=(e,o)=>{e.props.disabled||s.isUndefined(e.props.name)||(o.stopPropagation(),a("edit",e.props.name,"remove"),a("tabRemove",e.props.name))};n.watch(()=>t.modelValue,e=>f(e)),n.watch(c,async()=>{var e;await n.nextTick(),(e=l.value)==null||e.scrollToActiveTab()});const p=()=>{a("edit",void 0,"add"),a("tabAdd")},w=(e,o,r)=>{a("tabContextMenu",e,o,r)},b=n.computed(()=>{var e;return n.createVNode("div",{class:d.e("content")},[(e=i.default)==null?void 0:e.call(i)])}),{children:N,addChild:q,removeChild:T}=V.useOrderedChildren(n.getCurrentInstance(),"vft-tab-pane");n.provide(E.TabsRootContextKey,{props:m.props,currentName:c,registerPane:q,unregisterPane:T}),u({currentName:c});const y=n.computed(()=>({icon:"ico-ep:plus",size:12,...t.addIconCfg})),R=n.computed(()=>({icon:"ico-ep:close",size:14,...t.closeIconCfg})),x=n.computed(()=>({icon:"ico-ep:arrow-left",size:18,...t.arrowLeftIconCfg})),L=n.computed(()=>({icon:"ico-ep:arrow-right",size:18,...t.arrowRightIconCfg})),v=n.computed(()=>{var e;return n.createVNode("div",{class:[d.e("header"),d.is(t.tabPosition)]},[n.createVNode(A.default,{ref:l,currentName:c.value,panes:N.value,stretch:t.stretch,showBar:t.showBar,closeIconCfg:R.value,addIconCfg:y.value,arrowRightIconCfg:L.value,arrowLeftIconCfg:x.value,editable:t.editable,addable:t.addable,onTabClick:h,onTabRemove:I,onTabAdd:p,onTabContextmenu:w},null),(e=i.headerRight)==null?void 0:e.call(i)])});return()=>n.createVNode("div",{class:[d.b(),d.m(t.tabPosition)]},[...t.tabPosition!=="bottom"?[v.value,b.value]:[b.value,v.value]])}});exports.default=M;
|
|
@@ -10,28 +10,7 @@ export type TabsPaneContext = UnwrapRef<{
|
|
|
10
10
|
isClosable: ComputedRef<boolean>;
|
|
11
11
|
attrs: Record<string, any>;
|
|
12
12
|
}>;
|
|
13
|
-
export type TabsType = 'card' | 'border-card' | '';
|
|
14
|
-
export interface TabsRootContext {
|
|
15
|
-
props: TabsProps;
|
|
16
|
-
currentName: Ref<string | number>;
|
|
17
|
-
registerPane: (pane: TabsPaneContext) => void;
|
|
18
|
-
unregisterPane: (uid: number) => void;
|
|
19
|
-
}
|
|
20
|
-
export interface TabPaneProps {
|
|
21
|
-
/** 选项卡标题 */
|
|
22
|
-
label: string;
|
|
23
|
-
/** 与选项卡绑定值 value 对应的标识符,表示选项卡别名 */
|
|
24
|
-
name: string | number;
|
|
25
|
-
/** 标签是否可关闭 */
|
|
26
|
-
closable: boolean;
|
|
27
|
-
/** 是否禁用 */
|
|
28
|
-
disabled: boolean;
|
|
29
|
-
/** 标签是否延迟渲染 */
|
|
30
|
-
lazy: boolean;
|
|
31
|
-
}
|
|
32
13
|
export interface TabsProps {
|
|
33
|
-
/** 风格类型 */
|
|
34
|
-
type?: TabsType;
|
|
35
14
|
/** 标签是否可关闭 */
|
|
36
15
|
closable?: boolean;
|
|
37
16
|
/** 标签是否可增加 */
|
|
@@ -44,12 +23,34 @@ export interface TabsProps {
|
|
|
44
23
|
tabPosition?: 'top' | 'right' | 'bottom' | 'left';
|
|
45
24
|
/** 切换标签之前的钩子函数, 若返回 false 或者返回被 reject 的 Promise,则阻止切换 */
|
|
46
25
|
beforeLeave?: Function;
|
|
26
|
+
/** 是否自动撑开宽度 */
|
|
47
27
|
stretch?: boolean;
|
|
28
|
+
showBar?: boolean;
|
|
29
|
+
/** icon 配置 */
|
|
48
30
|
closeIconCfg?: IconProps;
|
|
49
31
|
addIconCfg?: IconProps;
|
|
50
32
|
arrowLeftIconCfg?: IconProps;
|
|
51
33
|
arrowRightIconCfg?: IconProps;
|
|
52
34
|
}
|
|
35
|
+
export type TabsType = 'card' | 'border-card' | '';
|
|
36
|
+
export interface TabsRootContext {
|
|
37
|
+
props: TabsProps;
|
|
38
|
+
currentName: Ref<string | number>;
|
|
39
|
+
registerPane: (pane: TabsPaneContext) => void;
|
|
40
|
+
unregisterPane: (uid: number) => void;
|
|
41
|
+
}
|
|
42
|
+
export interface TabPaneProps {
|
|
43
|
+
/** 选项卡标题 */
|
|
44
|
+
label: string;
|
|
45
|
+
/** 与选项卡绑定值 value 对应的标识符,表示选项卡别名 */
|
|
46
|
+
name: string | number;
|
|
47
|
+
/** 标签是否可关闭 */
|
|
48
|
+
closable: boolean;
|
|
49
|
+
/** 是否禁用 */
|
|
50
|
+
disabled: boolean;
|
|
51
|
+
/** 标签是否延迟渲染 */
|
|
52
|
+
lazy: boolean;
|
|
53
|
+
}
|
|
53
54
|
export declare const TabsRootContextKey: InjectionKey<TabsRootContext>;
|
|
54
55
|
export interface Scrollable {
|
|
55
56
|
next?: boolean;
|
|
@@ -4,4 +4,4 @@ export interface SizeContext {
|
|
|
4
4
|
size: Ref<ComponentSize>;
|
|
5
5
|
}
|
|
6
6
|
export declare const SIZE_INJECTION_KEY: InjectionKey<SizeContext>;
|
|
7
|
-
export declare const useGlobalSize: () => import("vue").ComputedRef<"" | "
|
|
7
|
+
export declare const useGlobalSize: () => import("vue").ComputedRef<"" | "large" | "small" | "default">;
|
package/lib/package.json.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e="0.0.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e="0.0.70";exports.version=e;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vft",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.70",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"main": "lib/index.cjs",
|
|
6
6
|
"module": "es/index.js",
|
|
@@ -33,11 +33,11 @@
|
|
|
33
33
|
],
|
|
34
34
|
"peerDependencies": {
|
|
35
35
|
"vue": ">=3.2.0",
|
|
36
|
-
"vue-router": ">=4.0.16"
|
|
37
|
-
"vxe-table": "^4.3.6",
|
|
38
|
-
"xe-utils": "^3.5.7"
|
|
36
|
+
"vue-router": ">=4.0.16"
|
|
39
37
|
},
|
|
40
38
|
"dependencies": {
|
|
39
|
+
"vxe-table": "4.3.11",
|
|
40
|
+
"xe-utils": "3.5.7",
|
|
41
41
|
"@ctrl/tinycolor": "^3.6.0",
|
|
42
42
|
"@floating-ui/dom": "^1.2.5",
|
|
43
43
|
"@popperjs/core": "npm:@sxzz/popperjs-es@^2.11.7",
|
|
@@ -55,8 +55,8 @@
|
|
|
55
55
|
"sortablejs": "^1.15.0",
|
|
56
56
|
"@vft/constants": "0.0.45",
|
|
57
57
|
"@vft/router": "0.0.16",
|
|
58
|
-
"@vft/store": "0.0.17",
|
|
59
58
|
"@vft/use": "0.0.19",
|
|
59
|
+
"@vft/store": "0.0.17",
|
|
60
60
|
"@vft/utils": "0.0.29",
|
|
61
61
|
"@vft/directives": "0.0.13"
|
|
62
62
|
},
|