@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.
- package/dist/{AppSetting-Adv5Y3SE.js → AppSetting-BWVulLPM.js} +38 -38
- package/dist/{HCheckList-WAAl9RiK.js → HCheckList-Bb4GvZ2_.js} +1 -1
- package/dist/HSlideover-DoCRa4dK.js +152 -0
- package/dist/{HToggle-YLmL7R0b.js → HToggle-Bnr5k93p.js} +1 -1
- package/dist/{HeaderFullMenu-ByedDsvz.js → HeaderFullMenu--AOcAS-6.js} +72 -72
- package/dist/{HeaderThinMenu-2q2iBtTH.js → HeaderThinMenu-CRPVfGgM.js} +132 -132
- package/dist/PreferencesContent-DW9HAzpr.js +486 -0
- package/dist/{SettingBreadcrumb-C1VwfnxX.js → SettingBreadcrumb-DKCK6V-n.js} +6 -7
- package/dist/{SettingCopyright-C--oGV21.js → SettingCopyright-C5Pc0I1w.js} +4 -4
- package/dist/{SettingEnableTransition-DW2gfisN.js → SettingEnableTransition-D2FDj0oR.js} +5 -5
- package/dist/{SettingHome-VUAS3uEg.js → SettingHome-1Y1rYeQb.js} +6 -6
- package/dist/{SettingMenu-BH7XU7eF.js → SettingMenu-DWtNX8Ti.js} +8 -9
- package/dist/{SettingMode-BIyHzTKH.js → SettingMode-CZV84QeW.js} +4 -4
- package/dist/{SettingNavSearch-PfSA-_ro.js → SettingNavSearch-CrMpbXFg.js} +5 -5
- package/dist/{SettingOther-DdqNapQX.js → SettingOther-D6gGuQJw.js} +6 -6
- package/dist/{SettingPage-DS-G9-X5.js → SettingPage-DuN13bXO.js} +3 -3
- package/dist/{SettingTabbar-2yfw2vsm.js → SettingTabbar-BhJxcU35.js} +10 -11
- package/dist/{SettingThemes-Bkcywy7v.js → SettingThemes-BjkWfY1C.js} +9 -10
- package/dist/{SettingToolbar-DP7-_nPK.js → SettingToolbar-BYOxXAXL.js} +5 -5
- package/dist/{SettingTopbar-C0Ia4-If.js → SettingTopbar-CxKsnIRK.js} +8 -9
- package/dist/{SettingWidthMode-DgSWsHFq.js → SettingWidthMode-dM88qSol.js} +5 -5
- package/dist/auth-DILNNEQ8.js +1230 -0
- package/dist/{change-organization-BfnI2yEl.js → change-organization-BXl4ZC7j.js} +24 -24
- package/dist/{change-password-Bj_GWzmn.js → change-password-P4SGdvdU.js} +64 -73
- package/dist/components-C9kcavB4.js +2768 -0
- package/dist/core-CKIhF3Vi.js +270 -0
- package/dist/{core-4H5JBsa5.js → core-D2ocBD0r.js} +57 -51
- package/dist/index.js +2249 -7757
- package/dist/{not-found-DbHOY5cU.js → not-found-C-1699o2.js} +4 -5
- package/dist/{not-permission-DwERxb_u.js → not-permission-CZGJzlSF.js} +4 -5
- package/dist/profile-B3Q7hRgl.js +123 -0
- package/dist/{question-line-D7ecIumZ.js → question-line-B4oDBb2H.js} +2 -2
- package/dist/{right-DYiPS7dU.js → right-BTHgfOSp.js} +4 -4
- package/dist/style.css +1 -1
- package/package.json +7 -7
- package/dist/HSlideover-CXBJxuQo.js +0 -1695
- package/dist/PreferencesContent-CiPweszy.js +0 -701
- package/dist/auth-B65CJEOe.js +0 -4242
- package/dist/chunk-CD4vhpVs.js +0 -18
- package/dist/components-BfkDsfck.js +0 -5238
- package/dist/dist-7OjQvlya.js +0 -468
- package/dist/form-C3VHofnN.js +0 -2768
- package/dist/modal-Bl5xHbxa.js +0 -43824
- package/dist/overlayscrollbars-vue-mGyICRMi.js +0 -1460
- package/dist/profile-Dq66-Gsl.js +0 -19269
- package/dist/tree-select-B8cTcGLa.js +0 -12497
- package/dist/watchDiff-CPZFtaOC.js +0 -655
- /package/dist/{HButton-Dt6qGhhR.js → HButton-BPbXqVbA.js} +0 -0
- /package/dist/{HDivider-Ds5MMqtm.js → HDivider-BSENlYnI.js} +0 -0
- /package/dist/{HInput-BrsX9848.js → HInput-DbvnkEO7.js} +0 -0
- /package/dist/{HTooltip-DjAU-Evn.js → HTooltip-tCnNrJUE.js} +0 -0
- /package/dist/{_plugin-vue_export-helper-sUTDUeGO.js → _plugin-vue_export-helper-BBf_fmJ_.js} +0 -0
- /package/dist/{engine-oniguruma-uxNZ2DGJ.js → engine-oniguruma-Bl7ZtyDI.js} +0 -0
- /package/dist/{json-CC4oV-bd.js → json-BuUwnwNo.js} +0 -0
- /package/dist/{reload-CbuQgTlC.js → reload-DWTXo9r2.js} +0 -0
- /package/dist/{useContext-DLtu9F7E.js → useContext-mDF2-tXy.js} +0 -0
- /package/dist/{vitesse-dark-CxkWMfh6.js → vitesse-dark-j0hKJETh.js} +0 -0
- /package/dist/{vitesse-light-DY25e6F3.js → vitesse-light-BfgKNo3X.js} +0 -0
- /package/dist/{wasm-DAU6f5s5.js → wasm-tXaxAgz9.js} +0 -0
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
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(
|
|
64
|
-
let
|
|
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
|
|
67
|
-
}),
|
|
68
|
-
let e =
|
|
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
|
-
}),
|
|
71
|
-
return
|
|
72
|
-
let
|
|
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:
|
|
75
|
+
ref: u,
|
|
76
76
|
class: normalizeClass(["menu-item relative transition-all", {
|
|
77
|
-
active: unref(
|
|
78
|
-
"px-2 py-1": unref(
|
|
79
|
-
"px-1! py-2!": unref(
|
|
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(
|
|
84
|
-
"rounded-2": unref(
|
|
85
|
-
"px-2!": unref(
|
|
86
|
-
"py-3!": unref(
|
|
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(
|
|
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(
|
|
92
|
-
"flex-col gap-[2px]!": unref(
|
|
93
|
-
"w-full": unref(
|
|
94
|
-
"w-[50px]": unref(
|
|
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(
|
|
96
|
+
style: normalizeStyle(unref(y))
|
|
97
97
|
}, [
|
|
98
|
-
unref(
|
|
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(
|
|
102
|
-
box: unref(
|
|
101
|
+
name: unref(m),
|
|
102
|
+
box: unref(g),
|
|
103
103
|
size: 20,
|
|
104
|
-
"icon-size": unref(
|
|
105
|
-
angle: unref(
|
|
106
|
-
background: unref(
|
|
107
|
-
radius: unref(
|
|
108
|
-
color: (unref(
|
|
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(
|
|
120
|
+
name: unref(m),
|
|
121
121
|
size: 20,
|
|
122
|
-
color: (unref(
|
|
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(
|
|
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(
|
|
129
|
-
"w-full text-center": unref(
|
|
130
|
-
"system-point": unref(
|
|
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(
|
|
133
|
-
|
|
132
|
+
}, toDisplayString(unref(s)(t.item.meta?.title)), 3)),
|
|
133
|
+
t.item.meta?.badge ? (openBlock(), createBlock(i, {
|
|
134
134
|
key: 2,
|
|
135
|
-
value: typeof
|
|
136
|
-
class: normalizeClass(["badge", { "opacity-0": unref(
|
|
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),
|
|
138
|
+
], 6), t.subMenu && !(unref(o).isMenuPopup && t.level === 0) ? (openBlock(), createElementBlock("i", {
|
|
139
139
|
key: 0,
|
|
140
140
|
class: normalizeClass(["sharp-corner", [
|
|
141
|
-
|
|
142
|
-
unref(
|
|
143
|
-
unref(
|
|
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,
|
|
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
|
-
}),
|
|
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
|
-
|
|
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
|
-
|
|
212
|
-
if (_.value)
|
|
213
|
-
let e =
|
|
214
|
-
|
|
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 ?
|
|
218
|
-
|
|
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
|
-
|
|
224
|
-
|
|
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
|
|
228
|
+
let c = resolveComponent("SubMenu");
|
|
229
229
|
return openBlock(), createElementBlock(Fragment, null, [createVNode(item_default, {
|
|
230
230
|
ref_key: "itemRef",
|
|
231
|
-
ref:
|
|
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(
|
|
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(
|
|
250
|
-
}, [createVNode(Transition, mergeProps(unref(
|
|
251
|
-
default: withCtx(() => [unref(
|
|
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:
|
|
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(
|
|
259
|
-
"ring-1 ring-stone-2 dark:ring-stone-8 shadow-xl fixed z-3000 w-[200px]": unref(
|
|
260
|
-
"mx-2": unref(
|
|
261
|
-
"rounded-2 py-1": unref(
|
|
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(
|
|
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
|
|
307
|
-
function
|
|
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
|
-
|
|
312
|
+
s.value[n] = {
|
|
313
313
|
index: n,
|
|
314
314
|
indexPath: r,
|
|
315
315
|
active: !1
|
|
316
|
-
},
|
|
317
|
-
} else
|
|
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
|
|
324
|
-
|
|
325
|
-
},
|
|
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
|
-
|
|
328
|
+
m(e.at(-1)), e.length > 1 && m(e.slice(0, -1));
|
|
329
329
|
});
|
|
330
330
|
return;
|
|
331
331
|
}
|
|
332
|
-
Object.keys(
|
|
333
|
-
|
|
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
|
|
337
|
-
Object.keys(
|
|
338
|
-
|
|
339
|
-
}),
|
|
340
|
-
|
|
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
|
|
343
|
+
let _ = async (e, i) => {
|
|
344
344
|
if (i?.isDev) {
|
|
345
|
-
|
|
345
|
+
message.info("暂未上线,敬请期待!");
|
|
346
346
|
return;
|
|
347
347
|
}
|
|
348
|
-
if ((
|
|
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
|
-
|
|
357
|
-
},
|
|
358
|
-
|
|
356
|
+
n.push(e);
|
|
357
|
+
}, x = (e, t) => {
|
|
358
|
+
l.value.includes(e) ? m(e) : p(e, t);
|
|
359
359
|
};
|
|
360
|
-
function
|
|
361
|
-
let e = i.value &&
|
|
362
|
-
|
|
363
|
-
let t =
|
|
364
|
-
t &&
|
|
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(() =>
|
|
368
|
-
|
|
367
|
+
return watch(() => t.menu, (e) => {
|
|
368
|
+
f(e), S();
|
|
369
369
|
}, {
|
|
370
370
|
deep: !0,
|
|
371
371
|
immediate: !0
|
|
372
|
-
}), watch(() =>
|
|
373
|
-
|
|
374
|
-
let
|
|
375
|
-
|
|
376
|
-
}), watch(() =>
|
|
377
|
-
e && (
|
|
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:
|
|
380
|
-
items:
|
|
381
|
-
subMenus:
|
|
379
|
+
props: t,
|
|
380
|
+
items: o,
|
|
381
|
+
subMenus: s,
|
|
382
382
|
activeIndex: i,
|
|
383
|
-
openedMenus:
|
|
384
|
-
mouseInMenu:
|
|
385
|
-
isMenuPopup:
|
|
386
|
-
openMenu:
|
|
387
|
-
closeMenu:
|
|
388
|
-
handleMenuItemClick:
|
|
389
|
-
handleSubMenuClick:
|
|
390
|
-
})), (
|
|
391
|
-
"w-[200px]": !unref(
|
|
392
|
-
"w-[64px]": unref(
|
|
393
|
-
"h-[80px]":
|
|
394
|
-
"flex-row! w-auto": unref(
|
|
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) =>
|
|
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:
|
|
414
|
+
let t = useRoute(), { settingsStore: r, menuStore: i } = useContext(), a = ref();
|
|
415
415
|
function o(e) {
|
|
416
|
-
|
|
416
|
+
a.value.scrollBy({ left: (e.deltaY || e.detail) > 0 ? 50 : -50 });
|
|
417
417
|
}
|
|
418
|
-
return (e,
|
|
418
|
+
return (e, n) => (openBlock(), createElementBlock("div", {
|
|
419
419
|
ref_key: "menuRef",
|
|
420
|
-
ref:
|
|
420
|
+
ref: a,
|
|
421
421
|
class: "menu-container",
|
|
422
422
|
onWheel: withModifiers(o, ["prevent"])
|
|
423
423
|
}, [createVNode(Menu_default, {
|
|
424
|
-
menu: unref(
|
|
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(
|
|
429
|
-
class: normalizeClass(["menu", { [`menu-active-${unref(
|
|
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",
|