@tekkare/auriga 0.2.165 → 0.2.166
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/module.json
CHANGED
|
@@ -57,7 +57,6 @@
|
|
|
57
57
|
import {
|
|
58
58
|
onMounted,
|
|
59
59
|
ref,
|
|
60
|
-
onUnmounted,
|
|
61
60
|
onBeforeMount,
|
|
62
61
|
defineComponent,
|
|
63
62
|
watch
|
|
@@ -145,21 +144,13 @@ export default defineComponent({
|
|
|
145
144
|
trueActiveMenu.value = props.activeMenu;
|
|
146
145
|
infoOpen.value = props.toolbarOpen;
|
|
147
146
|
});
|
|
148
|
-
|
|
149
|
-
const body = document.querySelector("html");
|
|
150
|
-
if (body) {
|
|
151
|
-
body.style.overflow = "hidden";
|
|
152
|
-
}
|
|
153
|
-
});
|
|
154
|
-
const removeOverflow = () => {
|
|
147
|
+
function toggleBodyOverflow(state) {
|
|
155
148
|
const body = document.querySelector("html");
|
|
156
149
|
if (body) {
|
|
157
|
-
body.style.removeProperty("overflow");
|
|
150
|
+
state ? body.style.setProperty("overflow", "hidden") : body.style.removeProperty("overflow");
|
|
158
151
|
}
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
removeOverflow();
|
|
162
|
-
});
|
|
152
|
+
}
|
|
153
|
+
watch(infoOpen, toggleBodyOverflow, { immediate: true });
|
|
163
154
|
function openMenu(item) {
|
|
164
155
|
trueActiveMenu.value = item;
|
|
165
156
|
emit("update:Menu", trueActiveMenu.value);
|