aloha-vue 1.2.52 → 1.2.53
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/package.json
CHANGED
package/src/AMenu2/AMenu2.js
CHANGED
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
|
+
computed,
|
|
2
3
|
ref,
|
|
3
4
|
toRef,
|
|
4
5
|
} from "vue";
|
|
5
6
|
|
|
6
7
|
export default function LinkClickAPI(props, {
|
|
8
|
+
closeAllPanels = () => {},
|
|
9
|
+
isMenuOpen = computed(() => false),
|
|
7
10
|
isMobileWidth = ref(false),
|
|
8
11
|
resetSearch = () => {},
|
|
9
12
|
toggleMenu = () => {},
|
|
@@ -28,6 +31,9 @@ export default function LinkClickAPI(props, {
|
|
|
28
31
|
isMenuLinkClicked.value = true;
|
|
29
32
|
resetSearch();
|
|
30
33
|
setFocusToBody();
|
|
34
|
+
if (!isMenuOpen.value) {
|
|
35
|
+
closeAllPanels();
|
|
36
|
+
}
|
|
31
37
|
if (isMobileWidth.value) {
|
|
32
38
|
toggleMenu({ isOpen: false });
|
|
33
39
|
}
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
:root {
|
|
2
2
|
--a_menu_2_width_expanded: 350px;
|
|
3
3
|
--a_menu_2_width_collapsed: 60px;
|
|
4
|
-
--a_menu_2_close_panel_width: 300px;
|
|
5
|
-
--a_menu_2_close_panel_max_height: 400px;
|
|
6
4
|
--a_menu_2_transition: 0.5s;
|
|
7
5
|
--a_menu_2_btn_toggle_top: 5px;
|
|
8
6
|
--a_menu_2_btn_toggle_margin_left: 0.5rem;
|
|
@@ -41,6 +39,9 @@
|
|
|
41
39
|
--a_menu_2_submenu_border_radius: 1rem;
|
|
42
40
|
--a_menu_2_submenu_border_width: 2px;
|
|
43
41
|
--a_menu_2_search_height: 50px;
|
|
42
|
+
--a_menu_2_close_panel_width: 300px;
|
|
43
|
+
--a_menu_2_close_panel_max_height: 400px;
|
|
44
|
+
--a_menu_2_close_panel_border_radius: .3rem;
|
|
44
45
|
|
|
45
46
|
width: var(--a_menu_2_width);
|
|
46
47
|
position: absolute;
|
|
@@ -464,7 +465,7 @@
|
|
|
464
465
|
left: auto;
|
|
465
466
|
top: auto;
|
|
466
467
|
border: none;
|
|
467
|
-
border-radius:
|
|
468
|
+
border-radius: var(--a_menu_2_close_panel_border_radius);
|
|
468
469
|
box-shadow: 0 0 2px 2px var(--a_color_gray_600);
|
|
469
470
|
max-height: var(--a_menu_2_close_panel_max_height);
|
|
470
471
|
overflow-y: auto;
|