vft 0.0.67 → 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/table/table.vue.d.ts +9 -25
- package/es/components/table/table.vue2.js +141 -94
- 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/table/table.vue.d.ts +9 -25
- package/lib/components/table/table.vue2.cjs +1 -1
- 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 +4 -6
- 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
|
@@ -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,34 +1,10 @@
|
|
|
1
1
|
import type { PropType as __PropType } from 'vue';
|
|
2
2
|
import { type PaginationProps } from 'vft/es/components/pagination';
|
|
3
|
-
import type {
|
|
3
|
+
import type { IDefaultSort, TableConfigProps } from './type';
|
|
4
4
|
interface stickyOption {
|
|
5
5
|
offsetTop: number;
|
|
6
6
|
getContainer?: HTMLElement;
|
|
7
7
|
}
|
|
8
|
-
export interface TableProps {
|
|
9
|
-
/** 最大高度,设置后自动开启虚拟滚动 */
|
|
10
|
-
maxHeight?: number;
|
|
11
|
-
/** 列配置项 */
|
|
12
|
-
columns: IColumnsOption[];
|
|
13
|
-
/** 表格数据 */
|
|
14
|
-
tableData: any[];
|
|
15
|
-
/** 是否在加载中 */
|
|
16
|
-
loading?: boolean;
|
|
17
|
-
/** 表格高度 */
|
|
18
|
-
height?: Numberish;
|
|
19
|
-
/** 分页页数 */
|
|
20
|
-
pageSize?: number;
|
|
21
|
-
/** 总数 */
|
|
22
|
-
total?: number;
|
|
23
|
-
/** 默认排序 */
|
|
24
|
-
defaultSort?: IDefaultSort;
|
|
25
|
-
/** 表格配置 */
|
|
26
|
-
tableConfig?: TableConfigProps;
|
|
27
|
-
/** 滚动条是否固定在底部 */
|
|
28
|
-
sticky?: boolean | stickyOption;
|
|
29
|
-
pagePlacement?: 'bottom-left' | 'bottom-right' | 'top-left' | 'top-right';
|
|
30
|
-
pageOptions: Partial<PaginationProps>;
|
|
31
|
-
}
|
|
32
8
|
declare const _sfc_main: import("vue").DefineComponent<{
|
|
33
9
|
maxHeight: {
|
|
34
10
|
type: __PropType<number | undefined>;
|
|
@@ -54,6 +30,10 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
54
30
|
type: __PropType<number | undefined>;
|
|
55
31
|
required: false;
|
|
56
32
|
};
|
|
33
|
+
pageNum: {
|
|
34
|
+
type: __PropType<number | undefined>;
|
|
35
|
+
required: false;
|
|
36
|
+
};
|
|
57
37
|
total: {
|
|
58
38
|
type: __PropType<number | undefined>;
|
|
59
39
|
required: false;
|
|
@@ -105,6 +85,10 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
105
85
|
type: __PropType<number | undefined>;
|
|
106
86
|
required: false;
|
|
107
87
|
};
|
|
88
|
+
pageNum: {
|
|
89
|
+
type: __PropType<number | undefined>;
|
|
90
|
+
required: false;
|
|
91
|
+
};
|
|
108
92
|
total: {
|
|
109
93
|
type: __PropType<number | undefined>;
|
|
110
94
|
required: false;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),W=require("../empty/index.cjs"),k=require("../pagination/index.cjs"),$=require("../../hooks/use-namespace/index.cjs");require("@popperjs/core");require("lodash");require("../../hooks/use-z-index/index.cjs");const
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),W=require("../empty/index.cjs"),k=require("../pagination/index.cjs"),$=require("../../hooks/use-namespace/index.cjs");require("@popperjs/core");require("lodash");require("../../hooks/use-z-index/index.cjs");const N=require("@vueuse/core");require("@vft/utils");require("../../utils/ns-cover.cjs");require("@vue/reactivity");require("@vue/shared");const p=require("vxe-table"),A=require("../empty/constants.cjs"),u=$.useNamespace("table"),M=e.defineComponent({name:u.b()}),j=e.defineComponent({...M,props:{maxHeight:null,columns:null,tableData:{default:[]},loading:{type:Boolean,default:!1},height:null,pageSize:{default:50},pageNum:{default:1},total:null,defaultSort:{default:{}},tableConfig:{default:{}},sticky:{type:[Boolean,Object]},pagePlacement:{default:"bottom-right"},pageOptions:null},emits:["page-change","sort-change","update:pageNum"],setup(n,{expose:q,emit:m}){const z=e.useAttrs(),B=e.ref(0),i=e.ref(),E=N.useDebounceFn(()=>H(),120),x=e.computed(()=>n.pagePlacement.startsWith("bottom"));e.watch([()=>n.loading,()=>n.tableData,()=>n.columns],()=>{E()},{immediate:!0});function H(){h.data=n.tableData,b(n.pageNum)}p.renderer.add("Encrypt",{renderDefault(t,l){const{row:a,column:r}=l;return e.createVNode("span",{class:"line-clamp",innerHTML:a[r.field]||"-"},null)}}),p.renderer.add("Clamp",{renderDefault(t,l){const{row:a,column:r}=l;return r.showOverflow=null,e.createVNode(e.resolveComponent("vftClampToggle"),{autoResize:!0,maxLines:2,text:a[r.field],title:a[r.field],toggleText:["展开","收起"],onClampChange:c=>R(l)},null)}}),p.formats.mixin({showEmpty({cellValue:t}){return t||"-"}});function P(t){m("page-change",t),m("update:pageNum",t)}const R=(t,l)=>{const{rowid:a}=t;e.nextTick(()=>{const r=document.getElementsByClassName("vxe-body--row"),c=[];for(var s=0;s<r.length;s++)r[s].getAttribute("rowid")===a&&c.push(r[s]);setTimeout(()=>{if(c.length>1){const d=c[0].clientHeight,I=c[1].clientHeight;d!==I&&(c[1].style.height=d+"px")}},1)})},L=e.computed(()=>n.columns.filter(t=>(t&&t.type!=="seq"&&!t.formatter&&!t.slots&&!t.cellRender&&(t.cellRender={name:"Encrypt"}),t))),V=()=>({maxHeight:"88px",height:"44px"}),O=t=>{var a;const{column:l}=t;return{maxHeight:((a=l==null?void 0:l.cellRender)==null?void 0:a.name)==="Clamp"?"max-content":"44px"}},h=e.reactive({autoResize:!0,sortConfig:{trigger:"cell",remote:!0,defaultSort:{field:"",order:"desc",...n.defaultSort},orders:["desc","asc",null]},seqConfig:{startIndex:B.value},cellClassName:"cellClass",rowClassName:"rowClass",cellStyle:O,rowStyle:V,headerRowClassName:"headerRowClass",headerAlign:"center",columnConfig:{resizable:!0},rowConfig:{isHover:!0},scrollY:{mode:"wheel"},scrollX:{enabled:!1},...n.tableConfig,...z}),T=t=>{m("sort-change",t)};e.watch(()=>n.pageNum,t=>{b(t)});const b=t=>{h.seqConfig&&(h.seqConfig.startIndex=(t-1)*n.pageSize)},g=e.ref(),w=e.ref(),y=e.ref(!1);let o=e.ref(),v=e.ref();const f=e.computed(()=>{var t;return((t=n.sticky)==null?void 0:t.getContainer)||document.documentElement||document.body});e.watch(()=>[i,n.sticky],()=>{var t,l,a;(t=i.value)!=null&&t.$el&&n.sticky&&((l=f.value)==null||l.removeEventListener("scroll",C),(a=f.value)==null||a.addEventListener("scroll",C),setTimeout(()=>{S()},50))},{immediate:!0,deep:!0});function S(){if(!o.value||!v.value||(C(),!y.value))return;const t=o.value.clientWidth,l=v.value.offsetWidth;g.value.style.width=t-1+"px",w.value.style.width=l+"px"}function C(){var c,s,d;if(!((c=i.value)!=null&&c.$el)||!o.value||!f.value)return;const t=((s=f.value)==null?void 0:s.clientHeight)||window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight,{top:l,bottom:a}=o.value.getBoundingClientRect(),r=((d=f.value)==null?void 0:d.getBoundingClientRect().top)||document.body.getBoundingClientRect().top;y.value=l<t&&a>t&&a-r>t,g.value.scrollLeft=o.value.scrollLeft}const D=()=>{var l;const t=(l=i.value)==null?void 0:l.$el;t&&(o.value=t.querySelector(".vxe-table--body-wrapper"),v.value=t.querySelector(".vxe-table--body"),!(!o.value&&!v.value)&&(o.value.addEventListener("scroll",function(a){g.value.scrollLeft=a.target.scrollLeft}),g.value.addEventListener("scroll",function(a){o.value.scrollLeft=a.target.scrollLeft})))};return e.onMounted(()=>{n.sticky&&(D(),N.useResizeObserver(i,()=>S()))}),q({table:i}),(t,l)=>{const a=e.resolveComponent("vxe-grid");return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(e.unref(u).b())},[e.unref(x)?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(e.unref(k.VftPagination),e.mergeProps({key:0,class:[e.unref(u).e("pager"),e.unref(u).m("pager-"+n.pagePlacement)],layout:"prev, pager, next"},n.pageOptions,{total:n.total,"page-size":n.pageSize,onCurrentChange:l[0]||(l[0]=r=>m("page-change",n.pageNum)),"current-page":n.pageNum}),null,16,["class","total","page-size","current-page"])),e.createVNode(a,e.mergeProps({ref_key:"xGrid",ref:i},h,{height:n.height,"max-height":n.maxHeight,columns:e.unref(L),data:n.tableData,"auto-resize":"",loading:n.loading,resizable:"",onSortChange:T}),e.createSlots({empty:e.withCtx(()=>[e.createVNode(e.unref(W.VftEmpty),{type:e.unref(A.EmptyEnum).NO_DATA},null,8,["type"])]),_:2},[n.sticky?{name:"bottom",fn:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",{ref_key:"stickyScroll",ref:g,class:e.normalizeClass(e.unref(u).e("sticky-scroll-warpper"))},[e.createElementVNode("div",{ref_key:"stickyScrollBar",ref:w,class:e.normalizeClass(e.unref(u).e("sticky-scroll-bar"))},null,2)],2),[[e.vShow,y.value]])]),key:"0"}:void 0]),1040,["height","max-height","columns","data","loading"]),e.unref(x)?(e.openBlock(),e.createBlock(e.unref(k.VftPagination),e.mergeProps({key:1,class:[e.unref(u).e("pager"),e.unref(u).m("pager-"+n.pagePlacement)],layout:"prev, pager, next"},n.pageOptions,{total:n.total,"page-size":n.pageSize,onCurrentChange:P,"current-page":n.pageNum}),null,16,["class","total","page-size","current-page"])):e.createCommentVNode("",!0)],2)}}});exports.default=j;
|
|
@@ -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",
|
|
@@ -36,6 +36,8 @@
|
|
|
36
36
|
"vue-router": ">=4.0.16"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
+
"vxe-table": "4.3.11",
|
|
40
|
+
"xe-utils": "3.5.7",
|
|
39
41
|
"@ctrl/tinycolor": "^3.6.0",
|
|
40
42
|
"@floating-ui/dom": "^1.2.5",
|
|
41
43
|
"@popperjs/core": "npm:@sxzz/popperjs-es@^2.11.7",
|
|
@@ -51,14 +53,10 @@
|
|
|
51
53
|
"qrcode": "1.5.1",
|
|
52
54
|
"resize-detector": "0.3.0",
|
|
53
55
|
"sortablejs": "^1.15.0",
|
|
54
|
-
"vue": "^3.2.47",
|
|
55
|
-
"vue-router": "^4.1.6",
|
|
56
|
-
"vxe-table": "^4.3.6",
|
|
57
|
-
"xe-utils": "^3.5.7",
|
|
58
56
|
"@vft/constants": "0.0.45",
|
|
59
57
|
"@vft/router": "0.0.16",
|
|
60
|
-
"@vft/store": "0.0.17",
|
|
61
58
|
"@vft/use": "0.0.19",
|
|
59
|
+
"@vft/store": "0.0.17",
|
|
62
60
|
"@vft/utils": "0.0.29",
|
|
63
61
|
"@vft/directives": "0.0.13"
|
|
64
62
|
},
|