@pubinfo-pr/core 0.222.2 → 0.222.4

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 (59) hide show
  1. package/dist/{AppSetting-Adv5Y3SE.js → AppSetting-BWVulLPM.js} +38 -38
  2. package/dist/{HCheckList-WAAl9RiK.js → HCheckList-Bb4GvZ2_.js} +1 -1
  3. package/dist/HSlideover-DoCRa4dK.js +152 -0
  4. package/dist/{HToggle-YLmL7R0b.js → HToggle-Bnr5k93p.js} +1 -1
  5. package/dist/{HeaderFullMenu-ByedDsvz.js → HeaderFullMenu--AOcAS-6.js} +72 -72
  6. package/dist/{HeaderThinMenu-2q2iBtTH.js → HeaderThinMenu-CRPVfGgM.js} +132 -132
  7. package/dist/PreferencesContent-DW9HAzpr.js +486 -0
  8. package/dist/{SettingBreadcrumb-C1VwfnxX.js → SettingBreadcrumb-DKCK6V-n.js} +6 -7
  9. package/dist/{SettingCopyright-C--oGV21.js → SettingCopyright-C5Pc0I1w.js} +4 -4
  10. package/dist/{SettingEnableTransition-DW2gfisN.js → SettingEnableTransition-D2FDj0oR.js} +5 -5
  11. package/dist/{SettingHome-VUAS3uEg.js → SettingHome-1Y1rYeQb.js} +6 -6
  12. package/dist/{SettingMenu-BH7XU7eF.js → SettingMenu-DWtNX8Ti.js} +8 -9
  13. package/dist/{SettingMode-BIyHzTKH.js → SettingMode-CZV84QeW.js} +4 -4
  14. package/dist/{SettingNavSearch-PfSA-_ro.js → SettingNavSearch-CrMpbXFg.js} +5 -5
  15. package/dist/{SettingOther-DdqNapQX.js → SettingOther-D6gGuQJw.js} +6 -6
  16. package/dist/{SettingPage-DS-G9-X5.js → SettingPage-DuN13bXO.js} +3 -3
  17. package/dist/{SettingTabbar-2yfw2vsm.js → SettingTabbar-BhJxcU35.js} +10 -11
  18. package/dist/{SettingThemes-Bkcywy7v.js → SettingThemes-BjkWfY1C.js} +9 -10
  19. package/dist/{SettingToolbar-DP7-_nPK.js → SettingToolbar-BYOxXAXL.js} +5 -5
  20. package/dist/{SettingTopbar-C0Ia4-If.js → SettingTopbar-CxKsnIRK.js} +8 -9
  21. package/dist/{SettingWidthMode-DgSWsHFq.js → SettingWidthMode-dM88qSol.js} +5 -5
  22. package/dist/auth-DILNNEQ8.js +1230 -0
  23. package/dist/{change-organization-BfnI2yEl.js → change-organization-BXl4ZC7j.js} +24 -24
  24. package/dist/{change-password-Bj_GWzmn.js → change-password-P4SGdvdU.js} +64 -73
  25. package/dist/components-C9kcavB4.js +2768 -0
  26. package/dist/core-CKIhF3Vi.js +270 -0
  27. package/dist/{core-4H5JBsa5.js → core-D2ocBD0r.js} +57 -51
  28. package/dist/index.js +2249 -7757
  29. package/dist/{not-found-DbHOY5cU.js → not-found-C-1699o2.js} +4 -5
  30. package/dist/{not-permission-DwERxb_u.js → not-permission-CZGJzlSF.js} +4 -5
  31. package/dist/profile-B3Q7hRgl.js +123 -0
  32. package/dist/{question-line-D7ecIumZ.js → question-line-B4oDBb2H.js} +2 -2
  33. package/dist/{right-DYiPS7dU.js → right-BTHgfOSp.js} +4 -4
  34. package/dist/style.css +1 -1
  35. package/package.json +7 -7
  36. package/dist/HSlideover-CXBJxuQo.js +0 -1695
  37. package/dist/PreferencesContent-CiPweszy.js +0 -701
  38. package/dist/auth-B65CJEOe.js +0 -4242
  39. package/dist/chunk-CD4vhpVs.js +0 -18
  40. package/dist/components-BfkDsfck.js +0 -5238
  41. package/dist/dist-7OjQvlya.js +0 -468
  42. package/dist/form-C3VHofnN.js +0 -2768
  43. package/dist/modal-Bl5xHbxa.js +0 -43824
  44. package/dist/overlayscrollbars-vue-mGyICRMi.js +0 -1460
  45. package/dist/profile-Dq66-Gsl.js +0 -19269
  46. package/dist/tree-select-B8cTcGLa.js +0 -12497
  47. package/dist/watchDiff-CPZFtaOC.js +0 -655
  48. /package/dist/{HButton-Dt6qGhhR.js → HButton-BPbXqVbA.js} +0 -0
  49. /package/dist/{HDivider-Ds5MMqtm.js → HDivider-BSENlYnI.js} +0 -0
  50. /package/dist/{HInput-BrsX9848.js → HInput-DbvnkEO7.js} +0 -0
  51. /package/dist/{HTooltip-DjAU-Evn.js → HTooltip-tCnNrJUE.js} +0 -0
  52. /package/dist/{_plugin-vue_export-helper-sUTDUeGO.js → _plugin-vue_export-helper-BBf_fmJ_.js} +0 -0
  53. /package/dist/{engine-oniguruma-uxNZ2DGJ.js → engine-oniguruma-Bl7ZtyDI.js} +0 -0
  54. /package/dist/{json-CC4oV-bd.js → json-BuUwnwNo.js} +0 -0
  55. /package/dist/{reload-CbuQgTlC.js → reload-DWTXo9r2.js} +0 -0
  56. /package/dist/{useContext-DLtu9F7E.js → useContext-mDF2-tXy.js} +0 -0
  57. /package/dist/{vitesse-dark-CxkWMfh6.js → vitesse-dark-j0hKJETh.js} +0 -0
  58. /package/dist/{vitesse-light-DY25e6F3.js → vitesse-light-BfgKNo3X.js} +0 -0
  59. /package/dist/{wasm-DAU6f5s5.js → wasm-tXaxAgz9.js} +0 -0
@@ -1,13 +1,13 @@
1
- import { n as __exportAll } from "./chunk-CD4vhpVs.js";
2
- import { n as api } from "./modal-Bl5xHbxa.js";
3
- import { d as useTimeoutFn } from "./dist-7OjQvlya.js";
4
- import { a as PubinfoIcon_default } from "./components-BfkDsfck.js";
5
- import { t as _plugin_vue_export_helper_default } from "./_plugin-vue_export-helper-sUTDUeGO.js";
6
- import { n as useContext } from "./useContext-DLtu9F7E.js";
7
- import { t as P } from "./overlayscrollbars-vue-mGyICRMi.js";
1
+ import { a as PubinfoIcon_default } from "./components-C9kcavB4.js";
2
+ import { t as _plugin_vue_export_helper_default } from "./_plugin-vue_export-helper-BBf_fmJ_.js";
3
+ import { n as useContext } from "./useContext-mDF2-tXy.js";
8
4
  import { usePartyLogin } from "./index.js";
5
+ import { t as __exportAll } from "./core-D2ocBD0r.js";
9
6
  import { Fragment, Teleport, Transition, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createVNode, defineComponent, guardReactiveProps, inject, mergeProps, nextTick, normalizeClass, normalizeProps, normalizeStyle, openBlock, provide, reactive, ref, renderList, renderSlot, resolveComponent, shallowRef, toDisplayString, toHandlers, unref, watch, withCtx, withModifiers } from "vue";
7
+ import { useTimeoutFn } from "@vueuse/core";
10
8
  import { useRoute, useRouter } from "vue-router";
9
+ import { message } from "ant-design-vue";
10
+ import { OverlayScrollbarsComponent } from "overlayscrollbars-vue";
11
11
  var _hoisted_1$1 = { class: "relative inline-flex" }, _hoisted_2 = {
12
12
  key: 0,
13
13
  class: "absolute left-[50%] top-0 z-20 whitespace-nowrap rounded-full bg-ui-primary px-1.5 text-xs text-ui-text ring-1 ring-light -translate-y-[50%] dark:ring-dark"
@@ -60,52 +60,52 @@ var _hoisted_1 = ["title"], item_default = /* @__PURE__ */ _plugin_vue_export_he
60
60
  default: !1
61
61
  }
62
62
  },
63
- setup(e, { expose: t }) {
64
- let n = e, i = inject(rootMenuInjectionKey), { generateTitle: o } = useContext(), s = ref(), c = computed(() => n.subMenu ? i.subMenus[n.uniqueKey[n.uniqueKey.length - 1]]?.active : i.activeIndex === n.uniqueKey[n.uniqueKey.length - 1]), l = computed(() => c.value && (!n.subMenu || i.isMenuPopup)), d = computed(() => {
63
+ setup(t, { expose: r }) {
64
+ let i = t, o = inject(rootMenuInjectionKey), { generateTitle: s } = useContext(), u = ref(), d = computed(() => i.subMenu ? o.subMenus[i.uniqueKey[i.uniqueKey.length - 1]]?.active : o.activeIndex === i.uniqueKey[i.uniqueKey.length - 1]), f = computed(() => d.value && (!i.subMenu || o.isMenuPopup)), m = computed(() => {
65
65
  let e;
66
- return n.item.meta?.icon && (e = n.item.meta.icon), c.value && (n.item.meta?.activeIcon === "system-point" ? e = "system-point" : n.item.meta?.activeIcon && (e = n.item.meta.activeIcon)), e;
67
- }), f = computed(() => n.item.meta?.iconOptions), p = computed(() => {
68
- let e = f.value?.boxType;
66
+ return i.item.meta?.icon && (e = i.item.meta.icon), d.value && (i.item.meta?.activeIcon === "system-point" ? e = "system-point" : i.item.meta?.activeIcon && (e = i.item.meta.activeIcon)), e;
67
+ }), h = computed(() => i.item.meta?.iconOptions), g = computed(() => {
68
+ let e = h.value?.boxType;
69
69
  return e && e !== "null" ? e : void 0;
70
- }), h = computed(() => f.value?.iconColor || void 0), g = computed(() => i.isMenuPopup ? "" : `padding-left: ${32 * (n.level ?? 0)}px`);
71
- return t({ ref: s }), (t, n) => {
72
- let a = HBadge_default;
70
+ }), v = computed(() => h.value?.iconColor || void 0), y = computed(() => o.isMenuPopup ? "" : `padding-left: ${32 * (i.level ?? 0)}px`);
71
+ return r({ ref: u }), (n, r) => {
72
+ let i = HBadge_default;
73
73
  return openBlock(), createElementBlock("div", {
74
74
  ref_key: "itemRef",
75
- ref: s,
75
+ ref: u,
76
76
  class: normalizeClass(["menu-item relative transition-all", {
77
- active: unref(l),
78
- "px-2 py-1": unref(i).props.rounded,
79
- "px-1! py-2!": unref(i).props.rounded && unref(i).isMenuPopup && e.level === 0 && unref(i).props.mode === "horizontal"
77
+ active: unref(f),
78
+ "px-2 py-1": unref(o).props.rounded,
79
+ "px-1! py-2!": unref(o).props.rounded && unref(o).isMenuPopup && t.level === 0 && unref(o).props.mode === "horizontal"
80
80
  }])
81
81
  }, [createElementVNode("div", {
82
82
  class: normalizeClass(["group menu-item-container h-full w-full flex cursor-pointer items-center justify-between gap-1 px-5 py-14px text-[var(--g-sub-sidebar-menu-color)] transition-all hover:(bg-[var(--g-sub-sidebar-menu-hover-bg)] text-[var(--g-sub-sidebar-menu-hover-color)])", {
83
- "text-[var(--g-sub-sidebar-menu-active-color)]! bg-[var(--g-sub-sidebar-menu-active-bg)]!": unref(l),
84
- "rounded-2": unref(i).props.rounded,
85
- "px-2!": unref(i).isMenuPopup && e.level === 0,
86
- "py-3!": unref(i).props.rounded && unref(i).isMenuPopup && e.level !== 0
83
+ "text-[var(--g-sub-sidebar-menu-active-color)]! bg-[var(--g-sub-sidebar-menu-active-bg)]!": unref(f),
84
+ "rounded-2": unref(o).props.rounded,
85
+ "px-2!": unref(o).isMenuPopup && t.level === 0,
86
+ "py-3!": unref(o).props.rounded && unref(o).isMenuPopup && t.level !== 0
87
87
  }]),
88
- title: unref(o)(e.item.meta?.title)
88
+ title: unref(s)(t.item.meta?.title)
89
89
  }, [createElementVNode("div", {
90
90
  class: normalizeClass(["menu-item-container-layout inline-flex flex-1 items-center justify-center gap-[12px]", {
91
- "flex-col gap-none": unref(i).isMenuPopup && e.level === 0,
92
- "flex-col gap-[2px]!": unref(i).isMenuPopup && e.level === 0 && unref(i).props.showCollapseName,
93
- "w-full": unref(i).isMenuPopup && e.level === 0 && unref(i).props.showCollapseName && unref(i).props.mode === "vertical",
94
- "w-[50px]": unref(i).isMenuPopup && e.level === 0 && unref(i).props.showCollapseName && unref(i).props.mode === "horizontal"
91
+ "flex-col gap-none": unref(o).isMenuPopup && t.level === 0,
92
+ "flex-col gap-[2px]!": unref(o).isMenuPopup && t.level === 0 && unref(o).props.showCollapseName,
93
+ "w-full": unref(o).isMenuPopup && t.level === 0 && unref(o).props.showCollapseName && unref(o).props.mode === "vertical",
94
+ "w-[50px]": unref(o).isMenuPopup && t.level === 0 && unref(o).props.showCollapseName && unref(o).props.mode === "horizontal"
95
95
  }]),
96
- style: normalizeStyle(unref(g))
96
+ style: normalizeStyle(unref(y))
97
97
  }, [
98
- unref(d) && unref(d) !== "system-point" ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [unref(f) && unref(p) ? (openBlock(), createBlock(unref(PubinfoIcon_default), {
98
+ unref(m) && unref(m) !== "system-point" ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [unref(h) && unref(g) ? (openBlock(), createBlock(unref(PubinfoIcon_default), {
99
99
  key: 0,
100
100
  small: "",
101
- name: unref(d),
102
- box: unref(p),
101
+ name: unref(m),
102
+ box: unref(g),
103
103
  size: 20,
104
- "icon-size": unref(f)?.iconSize,
105
- angle: unref(f)?.angle,
106
- background: unref(f)?.background,
107
- radius: unref(f)?.radius,
108
- color: (unref(d) || "").startsWith("antd:") ? unref(h) || "#ffffff" : void 0,
104
+ "icon-size": unref(h)?.iconSize,
105
+ angle: unref(h)?.angle,
106
+ background: unref(h)?.background,
107
+ radius: unref(h)?.radius,
108
+ color: (unref(m) || "").startsWith("antd:") ? unref(v) || "#ffffff" : void 0,
109
109
  class: "menu-item-container-icon transition-transform group-hover:scale-115"
110
110
  }, null, 8, [
111
111
  "name",
@@ -117,30 +117,30 @@ var _hoisted_1 = ["title"], item_default = /* @__PURE__ */ _plugin_vue_export_he
117
117
  "color"
118
118
  ])) : (openBlock(), createBlock(unref(PubinfoIcon_default), {
119
119
  key: 1,
120
- name: unref(d),
120
+ name: unref(m),
121
121
  size: 20,
122
- color: (unref(d) || "").startsWith("antd:") ? unref(h) : void 0,
122
+ color: (unref(m) || "").startsWith("antd:") ? unref(v) : void 0,
123
123
  class: "menu-item-container-icon transition-transform group-hover:scale-115"
124
124
  }, null, 8, ["name", "color"]))], 64)) : createCommentVNode("", !0),
125
- unref(i).isMenuPopup && e.level === 0 && !unref(i).props.showCollapseName ? createCommentVNode("", !0) : (openBlock(), createElementBlock("span", {
125
+ unref(o).isMenuPopup && t.level === 0 && !unref(o).props.showCollapseName ? createCommentVNode("", !0) : (openBlock(), createElementBlock("span", {
126
126
  key: 1,
127
127
  class: normalizeClass(["title w-0 flex-1 truncate text-sm transition-height transition-opacity transition-width", {
128
- "opacity-0 w-0 h-0": unref(i).isMenuPopup && e.level === 0 && !unref(i).props.showCollapseName,
129
- "w-full text-center": unref(i).isMenuPopup && e.level === 0 && unref(i).props.showCollapseName,
130
- "system-point": unref(d) === "system-point" && unref(l)
128
+ "opacity-0 w-0 h-0": unref(o).isMenuPopup && t.level === 0 && !unref(o).props.showCollapseName,
129
+ "w-full text-center": unref(o).isMenuPopup && t.level === 0 && unref(o).props.showCollapseName,
130
+ "system-point": unref(m) === "system-point" && unref(f)
131
131
  }])
132
- }, toDisplayString(unref(o)(e.item.meta?.title)), 3)),
133
- e.item.meta?.badge ? (openBlock(), createBlock(a, {
132
+ }, toDisplayString(unref(s)(t.item.meta?.title)), 3)),
133
+ t.item.meta?.badge ? (openBlock(), createBlock(i, {
134
134
  key: 2,
135
- value: typeof e.item.meta.badge == "function" ? e.item.meta.badge() : e.item.meta.badge,
136
- class: normalizeClass(["badge", { "opacity-0": unref(i).isMenuPopup && e.level === 0 }])
135
+ value: typeof t.item.meta.badge == "function" ? t.item.meta.badge() : t.item.meta.badge,
136
+ class: normalizeClass(["badge", { "opacity-0": unref(o).isMenuPopup && t.level === 0 }])
137
137
  }, null, 8, ["value", "class"])) : createCommentVNode("", !0)
138
- ], 6), e.subMenu && !(unref(i).isMenuPopup && e.level === 0) ? (openBlock(), createElementBlock("i", {
138
+ ], 6), t.subMenu && !(unref(o).isMenuPopup && t.level === 0) ? (openBlock(), createElementBlock("i", {
139
139
  key: 0,
140
140
  class: normalizeClass(["sharp-corner", [
141
- e.expand ? "before:-rotate-45 before:-translate-x-[2px] after:rotate-45 after:translate-x-[2px]" : "before:rotate-45 before:-translate-x-[2px] after:-rotate-45 after:translate-x-[2px] ",
142
- unref(i).isMenuPopup && e.level === 0 && "opacity-0",
143
- unref(i).isMenuPopup && e.level !== 0 && "-rotate-90 -top-[1.5px]"
141
+ t.expand ? "before:-rotate-45 before:-translate-x-[2px] after:rotate-45 after:translate-x-[2px]" : "before:rotate-45 before:-translate-x-[2px] after:-rotate-45 after:translate-x-[2px] ",
142
+ unref(o).isMenuPopup && t.level === 0 && "opacity-0",
143
+ unref(o).isMenuPopup && t.level !== 0 && "-rotate-90 -top-[1.5px]"
144
144
  ]])
145
145
  }, null, 2)) : createCommentVNode("", !0)], 10, _hoisted_1)], 2);
146
146
  };
@@ -154,7 +154,7 @@ var _hoisted_1 = ["title"], item_default = /* @__PURE__ */ _plugin_vue_export_he
154
154
  level: { default: 0 }
155
155
  },
156
156
  setup(e) {
157
- let t = e, r = t.menu.path ?? JSON.stringify(t.menu), i = shallowRef(), a = shallowRef(), s = inject(rootMenuInjectionKey), u = computed(() => s.openedMenus.includes(t.uniqueKey[t.uniqueKey.length - 1])), f = computed(() => s.isMenuPopup ? {
157
+ let t = e, n = t.menu.path ?? JSON.stringify(t.menu), r = shallowRef(), i = shallowRef(), l = inject(rootMenuInjectionKey), d = computed(() => l.openedMenus.includes(t.uniqueKey[t.uniqueKey.length - 1])), f = computed(() => l.isMenuPopup ? {
158
158
  enter(e) {
159
159
  e.offsetHeight > window.innerHeight && (e.style.height = `${window.innerHeight}px`);
160
160
  },
@@ -185,7 +185,7 @@ var _hoisted_1 = ["title"], item_default = /* @__PURE__ */ _plugin_vue_export_he
185
185
  afterLeave(e) {
186
186
  e.style.overflow = "", e.style.maxHeight = "";
187
187
  }
188
- }), p = computed(() => s.isMenuPopup ? {
188
+ }), g = computed(() => l.isMenuPopup ? {
189
189
  enterActiveClass: "ease-in-out duration-300",
190
190
  enterFromClass: "opacity-0 translate-x-4",
191
191
  enterToClass: "opacity-100",
@@ -204,36 +204,36 @@ var _hoisted_1 = ["title"], item_default = /* @__PURE__ */ _plugin_vue_export_he
204
204
  return t.menu.children ? t.menu.children.every((e) => e.meta?.sidebar === !1) && (e = !1) : e = !1, e;
205
205
  });
206
206
  function v() {
207
- s.isMenuPopup && _.value || (_.value ? s.handleSubMenuClick(r, t.uniqueKey) : s.handleMenuItemClick(r, t.menu.meta));
207
+ l.isMenuPopup && _.value || (_.value ? l.handleSubMenuClick(n, t.uniqueKey) : l.handleMenuItemClick(n, t.menu.meta));
208
208
  }
209
209
  let y;
210
210
  function b() {
211
- s.isMenuPopup && (s.mouseInMenu = t.uniqueKey, y?.(), {stop: y} = useTimeoutFn(() => {
212
- if (_.value) s.openMenu(r, t.uniqueKey), nextTick(() => {
213
- let e = i.value.ref, n = 0, r = 0;
214
- s.props.mode === "vertical" || t.level !== 0 ? (n = e.getBoundingClientRect().top + e.scrollTop, r = e.getBoundingClientRect().left + e.getBoundingClientRect().width, n + a.value.getElement().offsetHeight > window.innerHeight && (n = window.innerHeight - a.value.getElement().offsetHeight)) : (n = e.getBoundingClientRect().top + e.getBoundingClientRect().height, r = e.getBoundingClientRect().left, n + a.value.getElement().offsetHeight > window.innerHeight && (a.value.getElement().style.height = `${window.innerHeight - n}px`)), a.value.getElement().style.top = `${n}px`, a.value.getElement().style.left = `${r}px`;
211
+ l.isMenuPopup && (l.mouseInMenu = t.uniqueKey, y?.(), {stop: y} = useTimeoutFn(() => {
212
+ if (_.value) l.openMenu(n, t.uniqueKey), nextTick(() => {
213
+ let e = r.value.ref, n = 0, a = 0;
214
+ l.props.mode === "vertical" || t.level !== 0 ? (n = e.getBoundingClientRect().top + e.scrollTop, a = e.getBoundingClientRect().left + e.getBoundingClientRect().width, n + i.value.getElement().offsetHeight > window.innerHeight && (n = window.innerHeight - i.value.getElement().offsetHeight)) : (n = e.getBoundingClientRect().top + e.getBoundingClientRect().height, a = e.getBoundingClientRect().left, n + i.value.getElement().offsetHeight > window.innerHeight && (i.value.getElement().style.height = `${window.innerHeight - n}px`)), i.value.getElement().style.top = `${n}px`, i.value.getElement().style.left = `${a}px`;
215
215
  });
216
216
  else {
217
- let e = t.menu.children ? s.subMenus[r].indexPath.at(-1) : s.items[r].indexPath.at(-1);
218
- s.openMenu(e, s.subMenus[e].indexPath);
217
+ let e = t.menu.children ? l.subMenus[n].indexPath.at(-1) : l.items[n].indexPath.at(-1);
218
+ l.openMenu(e, l.subMenus[e].indexPath);
219
219
  }
220
220
  }, 300));
221
221
  }
222
222
  function x() {
223
- s.isMenuPopup && (s.mouseInMenu = [], y?.(), {stop: y} = useTimeoutFn(() => {
224
- s.mouseInMenu.length === 0 ? s.closeMenu(t.uniqueKey) : _.value && (s.mouseInMenu.includes(t.uniqueKey.at(-1)) || s.closeMenu(t.uniqueKey.at(-1)));
223
+ l.isMenuPopup && (l.mouseInMenu = [], y?.(), {stop: y} = useTimeoutFn(() => {
224
+ l.mouseInMenu.length === 0 ? l.closeMenu(t.uniqueKey) : _.value && (l.mouseInMenu.includes(t.uniqueKey.at(-1)) || l.closeMenu(t.uniqueKey.at(-1)));
225
225
  }, 300));
226
226
  }
227
227
  return (t, n) => {
228
- let r = resolveComponent("SubMenu");
228
+ let c = resolveComponent("SubMenu");
229
229
  return openBlock(), createElementBlock(Fragment, null, [createVNode(item_default, {
230
230
  ref_key: "itemRef",
231
- ref: i,
231
+ ref: r,
232
232
  "unique-key": e.uniqueKey,
233
233
  item: e.menu,
234
234
  level: e.level,
235
235
  "sub-menu": unref(_),
236
- expand: unref(u),
236
+ expand: unref(d),
237
237
  onClick: v,
238
238
  onMouseenter: b,
239
239
  onMouseleave: x
@@ -246,22 +246,22 @@ var _hoisted_1 = ["title"], item_default = /* @__PURE__ */ _plugin_vue_export_he
246
246
  ]), unref(_) ? (openBlock(), createBlock(Teleport, {
247
247
  key: 0,
248
248
  to: "body",
249
- disabled: !unref(s).isMenuPopup
250
- }, [createVNode(Transition, mergeProps(unref(p), toHandlers(unref(f))), {
251
- default: withCtx(() => [unref(u) ? (openBlock(), createBlock(unref(P), {
249
+ disabled: !unref(l).isMenuPopup
250
+ }, [createVNode(Transition, mergeProps(unref(g), toHandlers(unref(f))), {
251
+ default: withCtx(() => [unref(d) ? (openBlock(), createBlock(unref(OverlayScrollbarsComponent), {
252
252
  key: 0,
253
253
  ref_key: "subMenuRef",
254
- ref: a,
254
+ ref: i,
255
255
  options: { scrollbars: { visibility: "hidden" } },
256
256
  defer: "",
257
257
  class: normalizeClass(["sub-menu", {
258
- "bg-[var(--g-sub-sidebar-bg)]": unref(s).isMenuPopup,
259
- "ring-1 ring-stone-2 dark:ring-stone-8 shadow-xl fixed z-3000 w-[200px]": unref(s).isMenuPopup,
260
- "mx-2": unref(s).isMenuPopup && (unref(s).props.mode === "vertical" || e.level !== 0),
261
- "rounded-2 py-1": unref(s).props.rounded && unref(s).isMenuPopup
258
+ "bg-[var(--g-sub-sidebar-bg)]": unref(l).isMenuPopup,
259
+ "ring-1 ring-stone-2 dark:ring-stone-8 shadow-xl fixed z-3000 w-[200px]": unref(l).isMenuPopup,
260
+ "mx-2": unref(l).isMenuPopup && (unref(l).props.mode === "vertical" || e.level !== 0),
261
+ "rounded-2 py-1": unref(l).props.rounded && unref(l).isMenuPopup
262
262
  }])
263
263
  }, {
264
- default: withCtx(() => [(openBlock(!0), createElementBlock(Fragment, null, renderList(e.menu.children, (t) => (openBlock(), createElementBlock(Fragment, { key: t.path ?? JSON.stringify(t) }, [t.meta?.sidebar === !1 ? createCommentVNode("", !0) : (openBlock(), createBlock(r, {
264
+ default: withCtx(() => [(openBlock(!0), createElementBlock(Fragment, null, renderList(e.menu.children, (t) => (openBlock(), createElementBlock(Fragment, { key: t.path ?? JSON.stringify(t) }, [t.meta?.sidebar === !1 ? createCommentVNode("", !0) : (openBlock(), createBlock(c, {
265
265
  key: 0,
266
266
  "unique-key": [...e.uniqueKey, t.path ?? JSON.stringify(t)],
267
267
  menu: t,
@@ -303,49 +303,49 @@ var _hoisted_1 = ["title"], item_default = /* @__PURE__ */ _plugin_vue_export_he
303
303
  }
304
304
  },
305
305
  setup(e) {
306
- let n = e, r = useRouter(), i = ref(n.value), a = ref({}), o = ref({}), c = ref(n.defaultOpeneds.slice(0)), l = ref([]), u = computed(() => n.mode === "horizontal" || n.mode === "vertical" && n.collapse);
307
- function d(e = [], t = []) {
306
+ let t = e, n = useRouter(), i = ref(t.value), o = ref({}), s = ref({}), l = ref(t.defaultOpeneds.slice(0)), u = ref([]), d = computed(() => t.mode === "horizontal" || t.mode === "vertical" && t.collapse);
307
+ function f(e = [], t = []) {
308
308
  e.forEach((e) => {
309
309
  let n = e.path ?? JSON.stringify(e);
310
310
  if (e.children && e.children.length > 0) {
311
311
  let r = [...t, n];
312
- o.value[n] = {
312
+ s.value[n] = {
313
313
  index: n,
314
314
  indexPath: r,
315
315
  active: !1
316
- }, d(e.children, r);
317
- } else a.value[n] = {
316
+ }, f(e.children, r);
317
+ } else o.value[n] = {
318
318
  index: n,
319
319
  indexPath: t
320
320
  };
321
321
  });
322
322
  }
323
- let f = (e, t) => {
324
- c.value.includes(e) || (n.accordion && (c.value = c.value.filter((e) => t.includes(e))), c.value.push(e));
325
- }, p = (e) => {
323
+ let p = (e, n) => {
324
+ l.value.includes(e) || (t.accordion && (l.value = l.value.filter((e) => n.includes(e))), l.value.push(e));
325
+ }, m = (e) => {
326
326
  if (Array.isArray(e)) {
327
327
  nextTick(() => {
328
- p(e.at(-1)), e.length > 1 && p(e.slice(0, -1));
328
+ m(e.at(-1)), e.length > 1 && m(e.slice(0, -1));
329
329
  });
330
330
  return;
331
331
  }
332
- Object.keys(o.value).forEach((t) => {
333
- o.value[t].indexPath.includes(e) && (c.value = c.value.filter((t) => t !== e));
332
+ Object.keys(s.value).forEach((t) => {
333
+ s.value[t].indexPath.includes(e) && (l.value = l.value.filter((t) => t !== e));
334
334
  });
335
335
  };
336
- function m(e) {
337
- Object.keys(o.value).forEach((e) => {
338
- o.value[e].active = !1;
339
- }), a.value[e]?.indexPath.forEach((e) => {
340
- o.value[e].active = !0;
336
+ function g(e) {
337
+ Object.keys(s.value).forEach((e) => {
338
+ s.value[e].active = !1;
339
+ }), o.value[e]?.indexPath.forEach((e) => {
340
+ s.value[e].active = !0;
341
341
  });
342
342
  }
343
- let h = async (e, i) => {
343
+ let _ = async (e, i) => {
344
344
  if (i?.isDev) {
345
- api.info("暂未上线,敬请期待!");
345
+ message.info("暂未上线,敬请期待!");
346
346
  return;
347
347
  }
348
- if ((n.mode === "horizontal" || n.collapse) && (c.value = []), m(e), i?.link) {
348
+ if ((t.mode === "horizontal" || t.collapse) && (l.value = []), g(e), i?.link) {
349
349
  let e = i?.partyLogin;
350
350
  if (e && Array.isArray(e) && e.length > 0) {
351
351
  let { url: t } = await usePartyLogin(e, i.link);
@@ -353,45 +353,45 @@ var _hoisted_1 = ["title"], item_default = /* @__PURE__ */ _plugin_vue_export_he
353
353
  } else window.open(i.link);
354
354
  return;
355
355
  }
356
- r.push(e);
357
- }, _ = (e, t) => {
358
- c.value.includes(e) ? p(e) : f(e, t);
356
+ n.push(e);
357
+ }, x = (e, t) => {
358
+ l.value.includes(e) ? m(e) : p(e, t);
359
359
  };
360
- function v() {
361
- let e = i.value && a.value[i.value];
362
- m(i.value), !(!e || n.collapse) && e.indexPath.forEach((e) => {
363
- let t = o.value[e];
364
- t && f(e, t.indexPath);
360
+ function S() {
361
+ let e = i.value && o.value[i.value];
362
+ g(i.value), !(!e || t.collapse) && e.indexPath.forEach((e) => {
363
+ let t = s.value[e];
364
+ t && p(e, t.indexPath);
365
365
  });
366
366
  }
367
- return watch(() => n.menu, (e) => {
368
- d(e), v();
367
+ return watch(() => t.menu, (e) => {
368
+ f(e), S();
369
369
  }, {
370
370
  deep: !0,
371
371
  immediate: !0
372
- }), watch(() => n.value, (e) => {
373
- a.value[e] || (i.value = "");
374
- let t = a.value[e] || i.value && a.value[i.value] || a.value[n.value];
375
- t ? i.value = t.index : i.value = e, v();
376
- }), watch(() => n.collapse, (e) => {
377
- e && (c.value = []), v();
372
+ }), watch(() => t.value, (e) => {
373
+ o.value[e] || (i.value = "");
374
+ let n = o.value[e] || i.value && o.value[i.value] || o.value[t.value];
375
+ n ? i.value = n.index : i.value = e, S();
376
+ }), watch(() => t.collapse, (e) => {
377
+ e && (l.value = []), S();
378
378
  }), provide(rootMenuInjectionKey, reactive({
379
- props: n,
380
- items: a,
381
- subMenus: o,
379
+ props: t,
380
+ items: o,
381
+ subMenus: s,
382
382
  activeIndex: i,
383
- openedMenus: c,
384
- mouseInMenu: l,
385
- isMenuPopup: u,
386
- openMenu: f,
387
- closeMenu: p,
388
- handleMenuItemClick: h,
389
- handleSubMenuClick: _
390
- })), (t, r) => (openBlock(), createElementBlock("div", { class: normalizeClass(["flex flex-col of-hidden transition-all", {
391
- "w-[200px]": !unref(u) && n.mode === "vertical",
392
- "w-[64px]": unref(u) && n.mode === "vertical",
393
- "h-[80px]": n.mode === "horizontal",
394
- "flex-row! w-auto": unref(u) && n.mode === "horizontal"
383
+ openedMenus: l,
384
+ mouseInMenu: u,
385
+ isMenuPopup: d,
386
+ openMenu: p,
387
+ closeMenu: m,
388
+ handleMenuItemClick: _,
389
+ handleSubMenuClick: x
390
+ })), (n, r) => (openBlock(), createElementBlock("div", { class: normalizeClass(["flex flex-col of-hidden transition-all", {
391
+ "w-[200px]": !unref(d) && t.mode === "vertical",
392
+ "w-[64px]": unref(d) && t.mode === "vertical",
393
+ "h-[80px]": t.mode === "horizontal",
394
+ "flex-row! w-auto": unref(d) && t.mode === "horizontal"
395
395
  }]) }, [(openBlock(!0), createElementBlock(Fragment, null, renderList(e.menu, (e, t) => (openBlock(), createElementBlock(Fragment, { key: t }, [e.children?.length && e.meta?.sidebar !== !1 ? (openBlock(), createBlock(sub_default, {
396
396
  key: 0,
397
397
  menu: e,
@@ -400,7 +400,7 @@ var _hoisted_1 = ["title"], item_default = /* @__PURE__ */ _plugin_vue_export_he
400
400
  key: 1,
401
401
  item: e,
402
402
  "unique-key": [e.path ?? JSON.stringify(e)],
403
- onClick: (t) => h(e.path ?? JSON.stringify(e), e.meta)
403
+ onClick: (t) => _(e.path ?? JSON.stringify(e), e.meta)
404
404
  }, null, 8, [
405
405
  "item",
406
406
  "unique-key",
@@ -411,22 +411,22 @@ var _hoisted_1 = ["title"], item_default = /* @__PURE__ */ _plugin_vue_export_he
411
411
  name: "LayoutHeaderThinMenu",
412
412
  __name: "HeaderThinMenu",
413
413
  setup(e) {
414
- let t = useRoute(), { settingsStore: n, menuStore: r } = useContext(), i = ref();
414
+ let t = useRoute(), { settingsStore: r, menuStore: i } = useContext(), a = ref();
415
415
  function o(e) {
416
- i.value.scrollBy({ left: (e.deltaY || e.detail) > 0 ? 50 : -50 });
416
+ a.value.scrollBy({ left: (e.deltaY || e.detail) > 0 ? 50 : -50 });
417
417
  }
418
- return (e, a) => (openBlock(), createElementBlock("div", {
418
+ return (e, n) => (openBlock(), createElementBlock("div", {
419
419
  ref_key: "menuRef",
420
- ref: i,
420
+ ref: a,
421
421
  class: "menu-container",
422
422
  onWheel: withModifiers(o, ["prevent"])
423
423
  }, [createVNode(Menu_default, {
424
- menu: unref(r).allMenus,
424
+ menu: unref(i).allMenus,
425
425
  value: unref(t).meta.activeMenu || unref(t).path,
426
426
  mode: "horizontal",
427
427
  "show-collapse-name": "",
428
- rounded: unref(n).settings.menu.isRounded,
429
- class: normalizeClass(["menu", { [`menu-active-${unref(n).settings.menu.menuActiveStyle}`]: unref(n).settings.menu.menuActiveStyle !== "" }])
428
+ rounded: unref(r).settings.menu.isRounded,
429
+ class: normalizeClass(["menu", { [`menu-active-${unref(r).settings.menu.menuActiveStyle}`]: unref(r).settings.menu.menuActiveStyle !== "" }])
430
430
  }, null, 8, [
431
431
  "menu",
432
432
  "value",