itube-specs 0.0.542 → 0.0.545
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.
|
@@ -64,7 +64,7 @@ const props = withDefaults(defineProps<{
|
|
|
64
64
|
center?: boolean;
|
|
65
65
|
separateLastChild?: boolean; // deprecated, вешать на нужный child класс модификатор --separate
|
|
66
66
|
maxHeight?: string | number;
|
|
67
|
-
|
|
67
|
+
openByHover?: boolean;
|
|
68
68
|
useVIf?: boolean;
|
|
69
69
|
}>(), {
|
|
70
70
|
useVIf: false
|
|
@@ -81,12 +81,9 @@ const { scrollLock, scrollUnlock } = useGlobalScrollLock();
|
|
|
81
81
|
const breakpoints = useAppConfig().cssBreakpoints as Record<CssBreakpoints, number>;
|
|
82
82
|
|
|
83
83
|
function openDropdown() {
|
|
84
|
-
|
|
85
|
-
open.value = !open.value
|
|
86
|
-
}
|
|
87
|
-
if (isMobileWidth(breakpoints).value) {
|
|
88
|
-
open.value = !open.value
|
|
84
|
+
open.value = !open.value
|
|
89
85
|
|
|
86
|
+
if (isMobileWidth(breakpoints).value) {
|
|
90
87
|
nextTick(() => {
|
|
91
88
|
if (menuRef.value?.showModal) {
|
|
92
89
|
menuRef.value.showModal();
|
|
@@ -108,7 +105,7 @@ function close() {
|
|
|
108
105
|
}
|
|
109
106
|
|
|
110
107
|
function mouseHandler(event: boolean) {
|
|
111
|
-
if (!isMobileWidth(breakpoints).value &&
|
|
108
|
+
if (!isMobileWidth(breakpoints).value && props.openByHover) {
|
|
112
109
|
open.value = event
|
|
113
110
|
}
|
|
114
111
|
}
|