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