mamba-layout 0.1.0 → 0.3.0
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/components/UserAvatar/src/UserAvatar.vue2.js +4 -4
- package/dist/layout/BaseLayout.css +1 -1
- package/dist/layout/BaseLayout.vue.js +2 -2
- package/dist/layout/BaseLayout.vue2.js +81 -45
- package/dist/layout/components/AppSelect.vue2.js +10 -10
- package/dist/layout/components/AsideBar.vue2.js +9 -9
- package/dist/layout/components/AsideSubMenuItem.vue.js +5 -5
- package/dist/layout/components/AsideSubMenus.vue.js +4 -4
- package/dist/layout/components/AsideTabMenus.vue.js +4 -4
- package/dist/layout/components/AsideUser.vue.js +1 -1
- package/dist/layout/components/HeaderBar.vue2.js +1 -1
- package/dist/layout/components/HeaderMenuToggle.vue.js +1 -1
- package/dist/layout/components/LanguageSelect.vue2.js +32 -33
- package/dist/layout/components/LayoutBreadcrumb.css +1 -1
- package/dist/layout/components/LayoutBreadcrumb.vue.d.ts +1 -1
- package/dist/layout/components/LayoutBreadcrumb.vue2.js +1 -1
- package/dist/layout/components/MenuDrawer.vue.js +1 -1
- package/dist/layout/components/MenuItemIcon.vue2.js +4 -4
- package/dist/layout/components/NavIconBtn.vue2.js +8 -8
- package/dist/layout/components/SHeaderRight.css +1 -1
- package/dist/layout/components/SHeaderRight.vue.js +2 -2
- package/dist/layout/components/SHeaderRight.vue2.js +37 -49
- package/dist/layout/components/ThemeToggle.vue2.js +3 -3
- package/dist/layout/components/TimezoneSelect.vue2.js +29 -29
- package/dist/layout/components/UserInfo.vue.js +2 -2
- package/dist/layout/components/UserInfo.vue2.js +1 -1
- package/dist/layout/components/UserInfo2.css +1 -1
- package/dist/layout/components/mobile/AppSelectMobile.vue.js +19 -19
- package/dist/layout/components/mobile/AsideBarMobile.css +1 -1
- package/dist/layout/components/mobile/AsideBarMobile.vue.js +3 -3
- package/dist/layout/components/mobile/AsideBarMobile.vue2.js +25 -23
- package/dist/layout/components/mobile/AsideUserMobile.vue2.js +3 -3
- package/dist/layout/components/mobile/AsideUserMobilePopover.vue2.js +2 -2
- package/dist/layout/components/mobile/HeaderRightMobile.css +1 -1
- package/dist/layout/components/mobile/HeaderRightMobile.vue.js +1 -1
- package/dist/layout/components/mobile/HeaderRightMobile.vue2.js +21 -25
- package/dist/layout/components/mobile/MobileMenuToggle.css +1 -1
- package/dist/layout/components/mobile/MobileMenuToggle.vue.js +1 -1
- package/dist/layout/components/mobile/MobileMenuToggle.vue2.js +15 -13
- package/dist/layout/hooks/useSetting.d.ts +1 -2
- package/dist/layout/hooks/useState.d.ts +98 -514
- package/dist/layout/hooks/useState.js +56 -55
- package/dist/layout.css +1 -1
- package/dist/layout.es.js +43244 -45315
- package/dist/layout.global.js +84 -54
- package/dist/utils/repoUtils.js +3 -3
- package/package.json +1 -1
|
@@ -1,28 +1,30 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { Expand as
|
|
3
|
-
import { injectLayoutContext as
|
|
4
|
-
const u = { class: "mobile-menu-toggle__icon" }, v = /* @__PURE__ */
|
|
1
|
+
import { defineComponent as a, resolveComponent as c, openBlock as i, createElementBlock as r, unref as o, createElementVNode as m, createVNode as n, withCtx as s } from "vue";
|
|
2
|
+
import { Expand as p } from "@element-plus/icons-vue";
|
|
3
|
+
import { injectLayoutContext as _ } from "../../hooks/useState.js";
|
|
4
|
+
const u = ["aria-label", "aria-expanded"], d = { class: "mobile-menu-toggle__icon" }, v = /* @__PURE__ */ a({
|
|
5
5
|
__name: "MobileMenuToggle",
|
|
6
|
-
setup(
|
|
7
|
-
const { sideOpen: e } =
|
|
6
|
+
setup(f) {
|
|
7
|
+
const { sideOpen: e } = _(), t = () => {
|
|
8
8
|
e.value = !e.value;
|
|
9
9
|
};
|
|
10
|
-
return (
|
|
11
|
-
const
|
|
12
|
-
return
|
|
10
|
+
return (g, b) => {
|
|
11
|
+
const l = c("el-icon");
|
|
12
|
+
return i(), r("button", {
|
|
13
13
|
type: "button",
|
|
14
14
|
class: "mobile-menu-toggle",
|
|
15
|
+
"aria-label": o(e) ? "Close menu" : "Open menu",
|
|
16
|
+
"aria-expanded": o(e),
|
|
15
17
|
onClick: t
|
|
16
18
|
}, [
|
|
17
|
-
|
|
18
|
-
|
|
19
|
+
m("div", d, [
|
|
20
|
+
n(l, null, {
|
|
19
21
|
default: s(() => [
|
|
20
|
-
o(
|
|
22
|
+
n(o(p))
|
|
21
23
|
]),
|
|
22
24
|
_: 1
|
|
23
25
|
})
|
|
24
26
|
])
|
|
25
|
-
]);
|
|
27
|
+
], 8, u);
|
|
26
28
|
};
|
|
27
29
|
}
|
|
28
30
|
});
|
|
@@ -43,8 +43,7 @@ export interface SettingConfig {
|
|
|
43
43
|
pageType?: "card" | "common";
|
|
44
44
|
logoPath?: string;
|
|
45
45
|
hideDoc?: boolean;
|
|
46
|
-
|
|
47
|
-
docUserPath?: string;
|
|
46
|
+
docsPath?: string;
|
|
48
47
|
loginPath?: string;
|
|
49
48
|
userCenterPath?: string;
|
|
50
49
|
[key: string]: unknown;
|