vft 0.0.151 → 0.0.154
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.vue.d.ts +1 -1
- package/es/components/affix/index.d.ts +2 -2
- package/es/components/autocomplete/autocomplete.vue.d.ts +6 -6
- package/es/components/autocomplete/index.d.ts +17 -17
- package/es/components/button/use-button.js +3 -3
- package/es/components/carousel/carousel.vue.d.ts +1 -1
- package/es/components/carousel/index.d.ts +19 -19
- package/es/components/checkbox/checkbox-button.vue.d.ts +1 -1
- package/es/components/checkbox/checkbox-group.vue.d.ts +1 -1
- package/es/components/checkbox/checkbox.vue.d.ts +1 -1
- package/es/components/checkbox/index.d.ts +10 -10
- package/es/components/color-picker/color-picker.vue.d.ts +1 -1
- package/es/components/color-picker/index.d.ts +1 -1
- package/es/components/date-picker/date-picker.d.ts +1 -1
- package/es/components/date-picker/index.d.ts +2 -2
- package/es/components/dialog/dialog.vue.d.ts +1 -1
- package/es/components/dialog/index.d.ts +2 -2
- package/es/components/drawer/drawer.vue.d.ts +1 -1
- package/es/components/drawer/index.d.ts +2 -2
- package/es/components/dropdown/dropdown.vue.d.ts +1 -1
- package/es/components/dropdown/index.d.ts +19 -19
- package/es/components/icon/icon.vue2.js +20 -21
- package/es/components/index.js +113 -113
- package/es/components/input/index.d.ts +12 -12
- package/es/components/input/input.vue.d.ts +4 -4
- package/es/components/input-number/index.d.ts +3 -3
- package/es/components/input-number/input-number.vue.d.ts +3 -3
- package/es/components/modal/index.d.ts +11 -11
- package/es/components/modal/modal.vue.d.ts +1 -1
- package/es/components/multiple-tabs/multiple-tabs.vue2.js +97 -67
- package/es/components/popconfirm/index.d.ts +11 -11
- package/es/components/popconfirm/popconfirm.vue.d.ts +1 -1
- package/es/components/progress/index.d.ts +4 -4
- package/es/components/radio/index.d.ts +6 -6
- package/es/components/radio/radio-group.vue.d.ts +1 -1
- package/es/components/radio/radio.vue.d.ts +1 -1
- package/es/components/search/index.d.ts +8 -8
- package/es/components/search/search.vue.d.ts +2 -2
- package/es/components/select/index.d.ts +8 -8
- package/es/components/select/select.vue.d.ts +4 -4
- package/es/components/select/useSelect.d.ts +1 -1
- package/es/components/side-menu/side-menu.vue2.js +44 -44
- package/es/components/slider/index.d.ts +1 -1
- package/es/components/slider/slider.vue.d.ts +1 -1
- package/es/components/switch/index.d.ts +3 -3
- package/es/components/switch/switch.vue.d.ts +3 -3
- package/es/components/table/index.d.ts +17 -17
- package/es/components/table/table.vue.d.ts +2 -2
- package/es/components/tabs/tabs.vue2.js +4 -4
- package/es/components/time-picker/common/picker.vue.d.ts +4 -4
- package/es/components/time-picker/index.d.ts +2 -2
- package/es/components/time-picker/time-picker.d.ts +1 -1
- package/es/components/time-select/time-select.vue.d.ts +3 -3
- package/es/components/tree/index.d.ts +16 -16
- package/es/components/upload/index.d.ts +12 -12
- package/es/index.js +113 -113
- package/es/package.json.d.ts +1 -1
- package/es/package.json.js +1 -1
- package/lib/components/affix/affix.vue.d.ts +1 -1
- package/lib/components/affix/index.d.ts +2 -2
- package/lib/components/autocomplete/autocomplete.vue.d.ts +6 -6
- package/lib/components/autocomplete/index.d.ts +17 -17
- package/lib/components/button/use-button.cjs +1 -1
- package/lib/components/carousel/carousel.vue.d.ts +1 -1
- package/lib/components/carousel/index.d.ts +19 -19
- package/lib/components/checkbox/checkbox-button.vue.d.ts +1 -1
- package/lib/components/checkbox/checkbox-group.vue.d.ts +1 -1
- package/lib/components/checkbox/checkbox.vue.d.ts +1 -1
- package/lib/components/checkbox/index.d.ts +10 -10
- package/lib/components/color-picker/color-picker.vue.d.ts +1 -1
- package/lib/components/color-picker/index.d.ts +1 -1
- package/lib/components/date-picker/date-picker.d.ts +1 -1
- package/lib/components/date-picker/index.d.ts +2 -2
- package/lib/components/dialog/dialog.vue.d.ts +1 -1
- package/lib/components/dialog/index.d.ts +2 -2
- package/lib/components/drawer/drawer.vue.d.ts +1 -1
- package/lib/components/drawer/index.d.ts +2 -2
- package/lib/components/dropdown/dropdown.vue.d.ts +1 -1
- package/lib/components/dropdown/index.d.ts +19 -19
- package/lib/components/icon/icon.vue2.cjs +1 -1
- package/lib/components/index.cjs +1 -1
- package/lib/components/input/index.d.ts +12 -12
- package/lib/components/input/input.vue.d.ts +4 -4
- package/lib/components/input-number/index.d.ts +3 -3
- package/lib/components/input-number/input-number.vue.d.ts +3 -3
- package/lib/components/modal/index.d.ts +11 -11
- package/lib/components/modal/modal.vue.d.ts +1 -1
- package/lib/components/multiple-tabs/multiple-tabs.vue2.cjs +1 -1
- package/lib/components/popconfirm/index.d.ts +11 -11
- package/lib/components/popconfirm/popconfirm.vue.d.ts +1 -1
- package/lib/components/progress/index.d.ts +4 -4
- package/lib/components/radio/index.d.ts +6 -6
- package/lib/components/radio/radio-group.vue.d.ts +1 -1
- package/lib/components/radio/radio.vue.d.ts +1 -1
- package/lib/components/search/index.d.ts +8 -8
- package/lib/components/search/search.vue.d.ts +2 -2
- package/lib/components/select/index.d.ts +8 -8
- package/lib/components/select/select.vue.d.ts +4 -4
- package/lib/components/select/useSelect.d.ts +1 -1
- package/lib/components/side-menu/side-menu.vue2.cjs +1 -1
- package/lib/components/slider/index.d.ts +1 -1
- package/lib/components/slider/slider.vue.d.ts +1 -1
- package/lib/components/switch/index.d.ts +3 -3
- package/lib/components/switch/switch.vue.d.ts +3 -3
- package/lib/components/table/index.d.ts +17 -17
- package/lib/components/table/table.vue.d.ts +2 -2
- package/lib/components/tabs/tabs.vue2.cjs +1 -1
- package/lib/components/time-picker/common/picker.vue.d.ts +4 -4
- package/lib/components/time-picker/index.d.ts +2 -2
- package/lib/components/time-picker/time-picker.d.ts +1 -1
- package/lib/components/time-select/time-select.vue.d.ts +3 -3
- package/lib/components/tree/index.d.ts +16 -16
- package/lib/components/upload/index.d.ts +12 -12
- package/lib/index.cjs +1 -1
- package/lib/package.json.cjs +1 -1
- package/lib/package.json.d.ts +1 -1
- package/package.json +4 -4
- package/web-types.json +1 -1
|
@@ -32,16 +32,16 @@ export declare const VftSearch: import("vft/es/utils").SFCWithInstall<{
|
|
|
32
32
|
type: globalThis.PropType<string | import("..").IconProps>;
|
|
33
33
|
};
|
|
34
34
|
}>> & {
|
|
35
|
+
onChange?: ((val: string | number) => any) | undefined;
|
|
35
36
|
onInput?: ((val: string | number) => any) | undefined;
|
|
36
37
|
onBlur?: (() => any) | undefined;
|
|
37
|
-
onChange?: ((val: string | number) => any) | undefined;
|
|
38
38
|
onFocus?: (() => any) | undefined;
|
|
39
39
|
onKeydown?: ((evt: Event | KeyboardEvent) => any) | undefined;
|
|
40
40
|
onMouseenter?: ((val: string | number) => any) | undefined;
|
|
41
41
|
onMouseleave?: ((val: string | number) => any) | undefined;
|
|
42
42
|
onEnter?: ((val: string | number) => any) | undefined;
|
|
43
|
-
onClear?: (() => any) | undefined;
|
|
44
43
|
"onUpdate:modelValue"?: ((val: string | number) => any) | undefined;
|
|
44
|
+
onClear?: (() => any) | undefined;
|
|
45
45
|
onSuffixClick?: ((val: string | number) => any) | undefined;
|
|
46
46
|
onPrefixClick?: ((val: string | number) => any) | undefined;
|
|
47
47
|
}, {
|
|
@@ -95,16 +95,16 @@ export declare const VftSearch: import("vft/es/utils").SFCWithInstall<{
|
|
|
95
95
|
type: globalThis.PropType<string | import("..").IconProps>;
|
|
96
96
|
};
|
|
97
97
|
}>> & {
|
|
98
|
+
onChange?: ((val: string | number) => any) | undefined;
|
|
98
99
|
onInput?: ((val: string | number) => any) | undefined;
|
|
99
100
|
onBlur?: (() => any) | undefined;
|
|
100
|
-
onChange?: ((val: string | number) => any) | undefined;
|
|
101
101
|
onFocus?: (() => any) | undefined;
|
|
102
102
|
onKeydown?: ((evt: Event | KeyboardEvent) => any) | undefined;
|
|
103
103
|
onMouseenter?: ((val: string | number) => any) | undefined;
|
|
104
104
|
onMouseleave?: ((val: string | number) => any) | undefined;
|
|
105
105
|
onEnter?: ((val: string | number) => any) | undefined;
|
|
106
|
-
onClear?: (() => any) | undefined;
|
|
107
106
|
"onUpdate:modelValue"?: ((val: string | number) => any) | undefined;
|
|
107
|
+
onClear?: (() => any) | undefined;
|
|
108
108
|
onSuffixClick?: ((val: string | number) => any) | undefined;
|
|
109
109
|
onPrefixClick?: ((val: string | number) => any) | undefined;
|
|
110
110
|
}, {}, true, {}, {}, {
|
|
@@ -146,16 +146,16 @@ export declare const VftSearch: import("vft/es/utils").SFCWithInstall<{
|
|
|
146
146
|
type: globalThis.PropType<string | import("..").IconProps>;
|
|
147
147
|
};
|
|
148
148
|
}>> & {
|
|
149
|
+
onChange?: ((val: string | number) => any) | undefined;
|
|
149
150
|
onInput?: ((val: string | number) => any) | undefined;
|
|
150
151
|
onBlur?: (() => any) | undefined;
|
|
151
|
-
onChange?: ((val: string | number) => any) | undefined;
|
|
152
152
|
onFocus?: (() => any) | undefined;
|
|
153
153
|
onKeydown?: ((evt: Event | KeyboardEvent) => any) | undefined;
|
|
154
154
|
onMouseenter?: ((val: string | number) => any) | undefined;
|
|
155
155
|
onMouseleave?: ((val: string | number) => any) | undefined;
|
|
156
156
|
onEnter?: ((val: string | number) => any) | undefined;
|
|
157
|
-
onClear?: (() => any) | undefined;
|
|
158
157
|
"onUpdate:modelValue"?: ((val: string | number) => any) | undefined;
|
|
158
|
+
onClear?: (() => any) | undefined;
|
|
159
159
|
onSuffixClick?: ((val: string | number) => any) | undefined;
|
|
160
160
|
onPrefixClick?: ((val: string | number) => any) | undefined;
|
|
161
161
|
}, {
|
|
@@ -200,16 +200,16 @@ export declare const VftSearch: import("vft/es/utils").SFCWithInstall<{
|
|
|
200
200
|
type: globalThis.PropType<string | import("..").IconProps>;
|
|
201
201
|
};
|
|
202
202
|
}>> & {
|
|
203
|
+
onChange?: ((val: string | number) => any) | undefined;
|
|
203
204
|
onInput?: ((val: string | number) => any) | undefined;
|
|
204
205
|
onBlur?: (() => any) | undefined;
|
|
205
|
-
onChange?: ((val: string | number) => any) | undefined;
|
|
206
206
|
onFocus?: (() => any) | undefined;
|
|
207
207
|
onKeydown?: ((evt: Event | KeyboardEvent) => any) | undefined;
|
|
208
208
|
onMouseenter?: ((val: string | number) => any) | undefined;
|
|
209
209
|
onMouseleave?: ((val: string | number) => any) | undefined;
|
|
210
210
|
onEnter?: ((val: string | number) => any) | undefined;
|
|
211
|
-
onClear?: (() => any) | undefined;
|
|
212
211
|
"onUpdate:modelValue"?: ((val: string | number) => any) | undefined;
|
|
212
|
+
onClear?: (() => any) | undefined;
|
|
213
213
|
onSuffixClick?: ((val: string | number) => any) | undefined;
|
|
214
214
|
onPrefixClick?: ((val: string | number) => any) | undefined;
|
|
215
215
|
}, {
|
|
@@ -33,16 +33,16 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
33
33
|
change: (val: string | number) => void;
|
|
34
34
|
input: (val: string | number) => void;
|
|
35
35
|
}, string, import("vue").PublicProps, Readonly<globalThis.ExtractPropTypes<__VLS_TypePropsToRuntimeProps<SearchProps & _InputProps>>> & {
|
|
36
|
+
onChange?: ((val: string | number) => any) | undefined;
|
|
36
37
|
onInput?: ((val: string | number) => any) | undefined;
|
|
37
38
|
onBlur?: (() => any) | undefined;
|
|
38
|
-
onChange?: ((val: string | number) => any) | undefined;
|
|
39
39
|
onFocus?: (() => any) | undefined;
|
|
40
40
|
onKeydown?: ((evt: Event | KeyboardEvent) => any) | undefined;
|
|
41
41
|
onMouseenter?: ((val: string | number) => any) | undefined;
|
|
42
42
|
onMouseleave?: ((val: string | number) => any) | undefined;
|
|
43
43
|
onEnter?: ((val: string | number) => any) | undefined;
|
|
44
|
-
onClear?: (() => any) | undefined;
|
|
45
44
|
"onUpdate:modelValue"?: ((val: string | number) => any) | undefined;
|
|
45
|
+
onClear?: (() => any) | undefined;
|
|
46
46
|
onSuffixClick?: ((val: string | number) => any) | undefined;
|
|
47
47
|
onPrefixClick?: ((val: string | number) => any) | undefined;
|
|
48
48
|
}, {}, {}>, {
|
|
@@ -223,7 +223,6 @@ declare const _Select: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
223
223
|
readonly appendTo?: any;
|
|
224
224
|
readonly visible?: boolean | undefined;
|
|
225
225
|
readonly effect?: "light" | "dark" | undefined;
|
|
226
|
-
readonly teleported?: boolean | undefined;
|
|
227
226
|
readonly arrowOffset?: number | undefined;
|
|
228
227
|
readonly gpuAcceleration?: boolean | undefined;
|
|
229
228
|
readonly fallbackPlacements?: Placement[] | undefined;
|
|
@@ -242,6 +241,7 @@ declare const _Select: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
242
241
|
readonly virtualRef?: import("..").Measurable | undefined;
|
|
243
242
|
readonly rawContent?: boolean | undefined;
|
|
244
243
|
readonly persistent?: boolean | undefined;
|
|
244
|
+
readonly teleported?: boolean | undefined;
|
|
245
245
|
readonly triggerKeys?: string[] | undefined;
|
|
246
246
|
readonly showArrow?: boolean | undefined;
|
|
247
247
|
onClose?: ((...args: any[]) => any) | undefined;
|
|
@@ -800,7 +800,7 @@ declare const _Select: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
800
800
|
handleCompositionStart: () => void;
|
|
801
801
|
handleCompositionEnd: (event: any) => void;
|
|
802
802
|
handleCompositionUpdate: (event: any) => void;
|
|
803
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("
|
|
803
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "change" | "clear" | "blur" | "focus" | "visible-change" | "remove-tag")[], "update:modelValue" | "change" | "clear" | "blur" | "focus" | "visible-change" | "remove-tag", import("vue").PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
|
804
804
|
allowCreate: BooleanConstructor;
|
|
805
805
|
autocomplete: {
|
|
806
806
|
type: globalThis.PropType<"both" | "none" | "inline" | "list">;
|
|
@@ -900,11 +900,11 @@ declare const _Select: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
900
900
|
default: string;
|
|
901
901
|
};
|
|
902
902
|
}>> & {
|
|
903
|
-
onBlur?: ((...args: any[]) => any) | undefined;
|
|
904
903
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
904
|
+
onBlur?: ((...args: any[]) => any) | undefined;
|
|
905
905
|
onFocus?: ((...args: any[]) => any) | undefined;
|
|
906
|
-
onClear?: ((...args: any[]) => any) | undefined;
|
|
907
906
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
907
|
+
onClear?: ((...args: any[]) => any) | undefined;
|
|
908
908
|
"onVisible-change"?: ((...args: any[]) => any) | undefined;
|
|
909
909
|
"onRemove-tag"?: ((...args: any[]) => any) | undefined;
|
|
910
910
|
}, {
|
|
@@ -1160,7 +1160,6 @@ export declare const VftSelect: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
1160
1160
|
readonly appendTo?: any;
|
|
1161
1161
|
readonly visible?: boolean | undefined;
|
|
1162
1162
|
readonly effect?: "light" | "dark" | undefined;
|
|
1163
|
-
readonly teleported?: boolean | undefined;
|
|
1164
1163
|
readonly arrowOffset?: number | undefined;
|
|
1165
1164
|
readonly gpuAcceleration?: boolean | undefined;
|
|
1166
1165
|
readonly fallbackPlacements?: Placement[] | undefined;
|
|
@@ -1179,6 +1178,7 @@ export declare const VftSelect: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
1179
1178
|
readonly virtualRef?: import("..").Measurable | undefined;
|
|
1180
1179
|
readonly rawContent?: boolean | undefined;
|
|
1181
1180
|
readonly persistent?: boolean | undefined;
|
|
1181
|
+
readonly teleported?: boolean | undefined;
|
|
1182
1182
|
readonly triggerKeys?: string[] | undefined;
|
|
1183
1183
|
readonly showArrow?: boolean | undefined;
|
|
1184
1184
|
onClose?: ((...args: any[]) => any) | undefined;
|
|
@@ -1737,7 +1737,7 @@ export declare const VftSelect: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
1737
1737
|
handleCompositionStart: () => void;
|
|
1738
1738
|
handleCompositionEnd: (event: any) => void;
|
|
1739
1739
|
handleCompositionUpdate: (event: any) => void;
|
|
1740
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("
|
|
1740
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "change" | "clear" | "blur" | "focus" | "visible-change" | "remove-tag")[], "update:modelValue" | "change" | "clear" | "blur" | "focus" | "visible-change" | "remove-tag", import("vue").PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
|
1741
1741
|
allowCreate: BooleanConstructor;
|
|
1742
1742
|
autocomplete: {
|
|
1743
1743
|
type: globalThis.PropType<"both" | "none" | "inline" | "list">;
|
|
@@ -1837,11 +1837,11 @@ export declare const VftSelect: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
1837
1837
|
default: string;
|
|
1838
1838
|
};
|
|
1839
1839
|
}>> & {
|
|
1840
|
-
onBlur?: ((...args: any[]) => any) | undefined;
|
|
1841
1840
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
1841
|
+
onBlur?: ((...args: any[]) => any) | undefined;
|
|
1842
1842
|
onFocus?: ((...args: any[]) => any) | undefined;
|
|
1843
|
-
onClear?: ((...args: any[]) => any) | undefined;
|
|
1844
1843
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
1844
|
+
onClear?: ((...args: any[]) => any) | undefined;
|
|
1845
1845
|
"onVisible-change"?: ((...args: any[]) => any) | undefined;
|
|
1846
1846
|
"onRemove-tag"?: ((...args: any[]) => any) | undefined;
|
|
1847
1847
|
}, {
|
|
@@ -222,7 +222,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
222
222
|
readonly appendTo?: any;
|
|
223
223
|
readonly visible?: boolean | undefined;
|
|
224
224
|
readonly effect?: "light" | "dark" | undefined;
|
|
225
|
-
readonly teleported?: boolean | undefined;
|
|
226
225
|
readonly arrowOffset?: number | undefined;
|
|
227
226
|
readonly gpuAcceleration?: boolean | undefined;
|
|
228
227
|
readonly fallbackPlacements?: Placement[] | undefined;
|
|
@@ -241,6 +240,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
241
240
|
readonly virtualRef?: import("..").Measurable | undefined;
|
|
242
241
|
readonly rawContent?: boolean | undefined;
|
|
243
242
|
readonly persistent?: boolean | undefined;
|
|
243
|
+
readonly teleported?: boolean | undefined;
|
|
244
244
|
readonly triggerKeys?: string[] | undefined;
|
|
245
245
|
readonly showArrow?: boolean | undefined;
|
|
246
246
|
onClose?: ((...args: any[]) => any) | undefined;
|
|
@@ -799,7 +799,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
799
799
|
handleCompositionStart: () => void;
|
|
800
800
|
handleCompositionEnd: (event: any) => void;
|
|
801
801
|
handleCompositionUpdate: (event: any) => void;
|
|
802
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("
|
|
802
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "change" | "clear" | "blur" | "focus" | "visible-change" | "remove-tag")[], "update:modelValue" | "change" | "clear" | "blur" | "focus" | "visible-change" | "remove-tag", import("vue").PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
|
803
803
|
allowCreate: BooleanConstructor;
|
|
804
804
|
autocomplete: {
|
|
805
805
|
type: globalThis.PropType<"both" | "none" | "inline" | "list">;
|
|
@@ -899,11 +899,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
899
899
|
default: string;
|
|
900
900
|
};
|
|
901
901
|
}>> & {
|
|
902
|
-
onBlur?: ((...args: any[]) => any) | undefined;
|
|
903
902
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
903
|
+
onBlur?: ((...args: any[]) => any) | undefined;
|
|
904
904
|
onFocus?: ((...args: any[]) => any) | undefined;
|
|
905
|
-
onClear?: ((...args: any[]) => any) | undefined;
|
|
906
905
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
906
|
+
onClear?: ((...args: any[]) => any) | undefined;
|
|
907
907
|
"onVisible-change"?: ((...args: any[]) => any) | undefined;
|
|
908
908
|
"onRemove-tag"?: ((...args: any[]) => any) | undefined;
|
|
909
909
|
}, {
|
|
@@ -126,7 +126,6 @@ declare const useSelect: (props: ExtractPropTypes<typeof SelectProps>, emit: any
|
|
|
126
126
|
readonly appendTo?: any;
|
|
127
127
|
readonly visible?: boolean | undefined;
|
|
128
128
|
readonly effect?: "light" | "dark" | undefined;
|
|
129
|
-
readonly teleported?: boolean | undefined;
|
|
130
129
|
readonly arrowOffset?: number | undefined;
|
|
131
130
|
readonly gpuAcceleration?: boolean | undefined;
|
|
132
131
|
readonly fallbackPlacements?: Placement[] | undefined;
|
|
@@ -145,6 +144,7 @@ declare const useSelect: (props: ExtractPropTypes<typeof SelectProps>, emit: any
|
|
|
145
144
|
readonly virtualRef?: import("..").Measurable | undefined;
|
|
146
145
|
readonly rawContent?: boolean | undefined;
|
|
147
146
|
readonly persistent?: boolean | undefined;
|
|
147
|
+
readonly teleported?: boolean | undefined;
|
|
148
148
|
readonly triggerKeys?: string[] | undefined;
|
|
149
149
|
readonly showArrow?: boolean | undefined;
|
|
150
150
|
onClose?: ((...args: any[]) => any) | undefined;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineComponent as I, toRefs as ie, useSlots as
|
|
1
|
+
import { defineComponent as I, toRefs as ie, useSlots as le, getCurrentInstance as ne, ref as C, computed as g, h as M, createVNode as f, onMounted as ae, nextTick as pe, watch as ue, isVNode as se } from "vue";
|
|
2
2
|
import { listenerRouteChange as de, useRouterHelper as me } from "@vft/router";
|
|
3
3
|
import { useSortable as ce } from "@vft/use";
|
|
4
|
-
import { isUrl as fe, isNullOrUndefined as j, addUnit as E, isNumber as
|
|
4
|
+
import { isUrl as fe, isNullOrUndefined as j, addUnit as E, isNumber as ve } from "@vft/utils";
|
|
5
5
|
import "../alert/index.js";
|
|
6
6
|
import "../avatar/index.js";
|
|
7
7
|
import "../backtop/index.js";
|
|
@@ -31,7 +31,7 @@ import "../form/index.js";
|
|
|
31
31
|
import "../full-screen/index.js";
|
|
32
32
|
import "../header-layout/index.js";
|
|
33
33
|
import "../horizontal-menu/index.js";
|
|
34
|
-
import { VftIcon as
|
|
34
|
+
import { VftIcon as he } from "../icon/index.js";
|
|
35
35
|
import "../icon-text/index.js";
|
|
36
36
|
import "../iframe-layout/index.js";
|
|
37
37
|
import "../image/index.js";
|
|
@@ -172,11 +172,11 @@ const Se = I({
|
|
|
172
172
|
}) {
|
|
173
173
|
const t = b, {
|
|
174
174
|
defaultActive: S,
|
|
175
|
-
collapse:
|
|
175
|
+
collapse: v,
|
|
176
176
|
uniqueOpened: H,
|
|
177
177
|
defaultOpeneds: x,
|
|
178
178
|
openMenuCollapse: U
|
|
179
|
-
} = ie(t), m = P,
|
|
179
|
+
} = ie(t), m = P, l = le(), B = ne(), _ = C(), a = g(() => ({
|
|
180
180
|
path: "path",
|
|
181
181
|
children: "children",
|
|
182
182
|
title: "title",
|
|
@@ -193,9 +193,9 @@ const Se = I({
|
|
|
193
193
|
var r;
|
|
194
194
|
const o = e.e;
|
|
195
195
|
if (t.autoScrollActiveDom && o) {
|
|
196
|
-
const
|
|
196
|
+
const p = ve(t.autoScrollActiveDom) ? t.autoScrollActiveDom : 0, i = o.target;
|
|
197
197
|
(r = y.value) != null && r.menu && i && setTimeout(() => {
|
|
198
|
-
y.value.menu.scrollTop = y.value.menu.scrollTop + (i.getBoundingClientRect().top - y.value.menu.getBoundingClientRect().top) +
|
|
198
|
+
y.value.menu.scrollTop = y.value.menu.scrollTop + (i.getBoundingClientRect().top - y.value.menu.getBoundingClientRect().top) + p;
|
|
199
199
|
}, 300);
|
|
200
200
|
}
|
|
201
201
|
m("subMenuClick", e);
|
|
@@ -204,7 +204,7 @@ const Se = I({
|
|
|
204
204
|
}, $ = (e) => {
|
|
205
205
|
m("menuItemMouseleave", e);
|
|
206
206
|
}, T = (e, o) => {
|
|
207
|
-
const r = e[
|
|
207
|
+
const r = e[a.value.path], p = e[a.value.title], i = e == null ? void 0 : e[a.value.children], c = e == null ? void 0 : e[a.value.index], s = e == null ? void 0 : e[a.value.icon], d = !!(e != null && e[a.value.disabled]), h = t.disabledJudgeTurnOver ? !d : d, N = c || r || o + p;
|
|
208
208
|
return i != null && i.length ? M(
|
|
209
209
|
// @ts-ignore
|
|
210
210
|
be,
|
|
@@ -213,29 +213,29 @@ const Se = I({
|
|
|
213
213
|
popperAppendToBody: !0,
|
|
214
214
|
key: N,
|
|
215
215
|
index: N,
|
|
216
|
-
title:
|
|
216
|
+
title: p,
|
|
217
217
|
icon: s,
|
|
218
|
-
disabled: t.openDisabled &&
|
|
218
|
+
disabled: t.openDisabled && h,
|
|
219
219
|
popperClass: u.e("popper")
|
|
220
220
|
},
|
|
221
221
|
{
|
|
222
|
-
default: () => i == null ? void 0 : i.map((
|
|
222
|
+
default: () => i == null ? void 0 : i.map((n, ee) => {
|
|
223
223
|
var V;
|
|
224
|
-
const w =
|
|
225
|
-
return (V =
|
|
224
|
+
const w = n[a.value.path], W = n[a.value.index], te = n[a.value.icon], oe = n[a.value.title], A = !!n[a.value.disabled], re = t.disabledJudgeTurnOver ? !A : A;
|
|
225
|
+
return (V = n == null ? void 0 : n[a.value.children]) != null && V.length ? T(n, ee) : (
|
|
226
226
|
// @ts-ignore
|
|
227
227
|
M(q, {
|
|
228
|
-
...
|
|
228
|
+
...n,
|
|
229
229
|
key: W || w,
|
|
230
230
|
index: W || w,
|
|
231
231
|
route: w,
|
|
232
232
|
icon: te,
|
|
233
233
|
title: oe,
|
|
234
234
|
disabled: t.openDisabled && re
|
|
235
|
-
},
|
|
235
|
+
}, l.menuItem ? () => {
|
|
236
236
|
var J;
|
|
237
|
-
return (J =
|
|
238
|
-
item:
|
|
237
|
+
return (J = l.menuItem) == null ? void 0 : J.call(l, {
|
|
238
|
+
item: n
|
|
239
239
|
});
|
|
240
240
|
} : "")
|
|
241
241
|
);
|
|
@@ -245,21 +245,21 @@ const Se = I({
|
|
|
245
245
|
...e,
|
|
246
246
|
key: c || r,
|
|
247
247
|
index: c || r,
|
|
248
|
-
title:
|
|
248
|
+
title: p,
|
|
249
249
|
route: r,
|
|
250
250
|
icon: s,
|
|
251
|
-
disabled: t.openDisabled &&
|
|
251
|
+
disabled: t.openDisabled && h,
|
|
252
252
|
onMouseenter: () => Z(e),
|
|
253
253
|
onMouseleave: () => $(e)
|
|
254
|
-
},
|
|
255
|
-
var
|
|
256
|
-
return (
|
|
254
|
+
}, l.menuItem ? () => {
|
|
255
|
+
var n;
|
|
256
|
+
return (n = l.menuItem) == null ? void 0 : n.call(l, {
|
|
257
257
|
item: e,
|
|
258
258
|
index: o
|
|
259
259
|
});
|
|
260
260
|
} : "");
|
|
261
261
|
}, y = C(), z = g(() => ({
|
|
262
|
-
...t.collapseWidth === 0 &&
|
|
262
|
+
...t.collapseWidth === 0 && v.value ? {
|
|
263
263
|
width: 0
|
|
264
264
|
} : {},
|
|
265
265
|
height: `calc(100% - ${t.menuTopBottomHeight}px)`
|
|
@@ -267,29 +267,29 @@ const Se = I({
|
|
|
267
267
|
var o, r;
|
|
268
268
|
let e;
|
|
269
269
|
return M(f(ge, {
|
|
270
|
-
ref: y,
|
|
270
|
+
ref: y.value,
|
|
271
271
|
onSelect: G,
|
|
272
272
|
onOpen: F,
|
|
273
273
|
defaultActive: (S == null ? void 0 : S.value) || _.value,
|
|
274
274
|
defaultOpeneds: x == null ? void 0 : x.value,
|
|
275
275
|
class: [u.e("con"), (o = t.dragOption) != null && o.dragClassName ? u.e((r = t.dragOption) == null ? void 0 : r.dragClassName) : ""],
|
|
276
276
|
style: z.value,
|
|
277
|
-
collapse: U.value ?
|
|
277
|
+
collapse: U.value ? v.value : !1,
|
|
278
278
|
uniqueOpened: H.value,
|
|
279
279
|
collapseTransition: !1
|
|
280
|
-
}, Me(e = t.menus.map((
|
|
280
|
+
}, Me(e = t.menus.map((p, i) => T(p, i))) ? e : {
|
|
281
281
|
default: () => [e]
|
|
282
282
|
}));
|
|
283
283
|
}), D = B.appContext.config.globalProperties.$router;
|
|
284
284
|
async function G(e) {
|
|
285
|
-
var o, r,
|
|
285
|
+
var o, r, p;
|
|
286
286
|
if (t.useRouterJump) {
|
|
287
287
|
const {
|
|
288
288
|
go: i
|
|
289
289
|
} = me(D), c = e.route;
|
|
290
290
|
let s = e.route;
|
|
291
|
-
e.indexPath.some((
|
|
292
|
-
const d = (
|
|
291
|
+
e.indexPath.some((h) => fe(h)) && (s = e.indexPath.slice(-2).join("/"));
|
|
292
|
+
const d = (p = (r = (o = D.getRoutes().filter((h) => h.path === s)) == null ? void 0 : o[0]) == null ? void 0 : r.meta) == null ? void 0 : p.linkTarget;
|
|
293
293
|
i(d ? {
|
|
294
294
|
url: c,
|
|
295
295
|
winOpenOpt: {
|
|
@@ -299,13 +299,13 @@ const Se = I({
|
|
|
299
299
|
}
|
|
300
300
|
m("select", e);
|
|
301
301
|
}
|
|
302
|
-
|
|
303
|
-
|
|
302
|
+
ae(() => {
|
|
303
|
+
pe(() => {
|
|
304
304
|
var e, o, r;
|
|
305
305
|
if ((e = t.dragOption) != null && e.dragClassName) {
|
|
306
|
-
const
|
|
306
|
+
const p = (r = document.querySelectorAll("." + u.e((o = t.dragOption) == null ? void 0 : o.dragClassName))) == null ? void 0 : r[0], {
|
|
307
307
|
initSortable: i
|
|
308
|
-
} = ce(
|
|
308
|
+
} = ce(p, {
|
|
309
309
|
draggable: ".vft-menu-item",
|
|
310
310
|
onEnd: (c) => {
|
|
311
311
|
const {
|
|
@@ -321,13 +321,13 @@ const Se = I({
|
|
|
321
321
|
});
|
|
322
322
|
});
|
|
323
323
|
const O = C(), R = C(), k = C(), K = g(() => ({
|
|
324
|
-
...t.collapseWidth === 0 &&
|
|
324
|
+
...t.collapseWidth === 0 && v.value ? {
|
|
325
325
|
borderRight: "none"
|
|
326
326
|
} : {},
|
|
327
327
|
width: E(t.width),
|
|
328
328
|
height: t.height
|
|
329
329
|
}));
|
|
330
|
-
ue(() =>
|
|
330
|
+
ue(() => v.value, (e) => {
|
|
331
331
|
e ? m("update:width", t.collapseWidth) : m("update:width", k.value || t.width), k.value = t.width;
|
|
332
332
|
}), t.dragWidthCfg && Ce(O, R, B);
|
|
333
333
|
const Q = g(() => ({
|
|
@@ -338,24 +338,24 @@ const Se = I({
|
|
|
338
338
|
}), () => {
|
|
339
339
|
var e;
|
|
340
340
|
return f("div", {
|
|
341
|
-
ref: O,
|
|
341
|
+
ref: O.value,
|
|
342
342
|
class: X.value,
|
|
343
343
|
style: K.value
|
|
344
|
-
}, [
|
|
344
|
+
}, [l.top ? f("div", {
|
|
345
345
|
class: u.e("top")
|
|
346
|
-
}, [
|
|
346
|
+
}, [l.top()]) : null, Y.value, l.bottom ? f("div", {
|
|
347
347
|
class: u.e("bottom")
|
|
348
|
-
}, [
|
|
349
|
-
onClick: () => m("update:collapse", !
|
|
348
|
+
}, [l.bottom()]) : t.showCollapse ? f("div", {
|
|
349
|
+
onClick: () => m("update:collapse", !v.value),
|
|
350
350
|
class: [u.e("bottom"), u.e("collapse")]
|
|
351
|
-
}, [f(
|
|
351
|
+
}, [f(he, {
|
|
352
352
|
style: {
|
|
353
|
-
transform:
|
|
353
|
+
transform: v.value ? "rotateY(180deg)" : ""
|
|
354
354
|
},
|
|
355
355
|
size: 20,
|
|
356
356
|
icon: "icon-sidebar-collapse"
|
|
357
|
-
}, null)]) : null, (e =
|
|
358
|
-
ref: R,
|
|
357
|
+
}, null)]) : null, (e = l.default) == null ? void 0 : e.call(l), t.dragWidthCfg ? f("div", {
|
|
358
|
+
ref: R.value,
|
|
359
359
|
style: Q.value,
|
|
360
360
|
class: u.e("drag-bar")
|
|
361
361
|
}, null) : null]);
|
|
@@ -163,8 +163,8 @@ export declare const VftSlider: import("vft/es/utils").SFCWithInstall<import("vu
|
|
|
163
163
|
type: globalThis.PropType<boolean>;
|
|
164
164
|
};
|
|
165
165
|
}>> & {
|
|
166
|
-
onInput?: ((value: import("vft/es/utils").Arrayable<number>) => any) | undefined;
|
|
167
166
|
onChange?: ((value: import("vft/es/utils").Arrayable<number>) => any) | undefined;
|
|
167
|
+
onInput?: ((value: import("vft/es/utils").Arrayable<number>) => any) | undefined;
|
|
168
168
|
"onUpdate:modelValue"?: ((value: import("vft/es/utils").Arrayable<number>) => any) | undefined;
|
|
169
169
|
}, {}, {}>> & Record<string, any>;
|
|
170
170
|
export default VftSlider;
|
|
@@ -35,8 +35,8 @@ declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimePr
|
|
|
35
35
|
change: (value: import("../../utils").Arrayable<number>) => void;
|
|
36
36
|
input: (value: import("../../utils").Arrayable<number>) => void;
|
|
37
37
|
}, string, import("vue").PublicProps, Readonly<globalThis.ExtractPropTypes<__VLS_TypePropsToRuntimeProps<SliderProps>>> & {
|
|
38
|
-
onInput?: ((value: import("../../utils").Arrayable<number>) => any) | undefined;
|
|
39
38
|
onChange?: ((value: import("../../utils").Arrayable<number>) => any) | undefined;
|
|
39
|
+
onInput?: ((value: import("../../utils").Arrayable<number>) => any) | undefined;
|
|
40
40
|
"onUpdate:modelValue"?: ((value: import("../../utils").Arrayable<number>) => any) | undefined;
|
|
41
41
|
}, {}, {}>;
|
|
42
42
|
export default _default;
|
|
@@ -74,9 +74,9 @@ export declare const VftSwitch: import("vft/es/utils").SFCWithInstall<import("vu
|
|
|
74
74
|
focus: () => void;
|
|
75
75
|
checked: globalThis.ComputedRef<boolean>;
|
|
76
76
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
77
|
-
input: (...args: any[]) => void;
|
|
78
|
-
change: (...args: any[]) => void;
|
|
79
77
|
"update:modelValue": (...args: any[]) => void;
|
|
78
|
+
change: (...args: any[]) => void;
|
|
79
|
+
input: (...args: any[]) => void;
|
|
80
80
|
}, string, import("vue").PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
|
81
81
|
value: {
|
|
82
82
|
type: globalThis.PropType<string | number | boolean>;
|
|
@@ -150,8 +150,8 @@ export declare const VftSwitch: import("vft/es/utils").SFCWithInstall<import("vu
|
|
|
150
150
|
type: globalThis.PropType<Function>;
|
|
151
151
|
};
|
|
152
152
|
}>> & {
|
|
153
|
-
onInput?: ((...args: any[]) => any) | undefined;
|
|
154
153
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
154
|
+
onInput?: ((...args: any[]) => any) | undefined;
|
|
155
155
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
156
156
|
}, {
|
|
157
157
|
value: string | number | boolean;
|
|
@@ -42,9 +42,9 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
42
42
|
*/
|
|
43
43
|
checked: globalThis.ComputedRef<boolean>;
|
|
44
44
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
45
|
-
input: (...args: any[]) => void;
|
|
46
|
-
change: (...args: any[]) => void;
|
|
47
45
|
"update:modelValue": (...args: any[]) => void;
|
|
46
|
+
change: (...args: any[]) => void;
|
|
47
|
+
input: (...args: any[]) => void;
|
|
48
48
|
}, string, import("vue").PublicProps, Readonly<globalThis.ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<SwitchProps>, {
|
|
49
49
|
modelValue: boolean;
|
|
50
50
|
value: boolean;
|
|
@@ -55,8 +55,8 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
55
55
|
validateEvent: boolean;
|
|
56
56
|
loading: boolean;
|
|
57
57
|
}>>> & {
|
|
58
|
-
onInput?: ((...args: any[]) => any) | undefined;
|
|
59
58
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
59
|
+
onInput?: ((...args: any[]) => any) | undefined;
|
|
60
60
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
61
61
|
}, {
|
|
62
62
|
value: string | number | boolean;
|