smart-admin-web 10.13.0 → 10.13.1
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/api/index.d.ts +1 -16
- package/dist/api/index.js +33 -48
- package/dist/api/index.js.map +1 -1
- package/dist/api/schema.d.ts +0 -409
- package/dist/assets/icons/ph-subset.json.js +1 -1
- package/dist/composables/useModule.js +27 -35
- package/dist/composables/useModule.js.map +1 -1
- package/dist/index.js +249 -250
- package/dist/layouts/AppHeader.vue.js +1 -1
- package/dist/layouts/AppHeader2.vue.js +292 -306
- package/dist/layouts/AppHeader2.vue.js.map +1 -1
- package/dist/lib/runtime.js +1 -1
- package/dist/locales/en-US.d.ts +0 -37
- package/dist/locales/en-US.js +0 -37
- package/dist/locales/en-US.js.map +1 -1
- package/dist/locales/zh-CN.d.ts +0 -37
- package/dist/locales/zh-CN.js +0 -37
- package/dist/locales/zh-CN.js.map +1 -1
- package/dist/router/viewRegistry.js +1 -1
- package/dist/router/viewRegistry.js.map +1 -1
- package/dist/stores/user.d.ts +1 -6
- package/dist/stores/user.js.map +1 -1
- package/dist/style.css +1 -1
- package/dist/types/api.d.ts +0 -33
- package/dist/types/api.js.map +1 -1
- package/package.json +3 -3
- package/dist/views/system/tenant/index.vue.d.ts +0 -3
- package/dist/views/system/tenant/index.vue.js +0 -8
- package/dist/views/system/tenant/index.vue.js.map +0 -1
- package/dist/views/system/tenant/index2.vue.js +0 -366
- package/dist/views/system/tenant/index2.vue.js.map +0 -1
|
@@ -1,64 +1,61 @@
|
|
|
1
|
-
import { defineComponent as le, ref as
|
|
2
|
-
import { useRoute as
|
|
3
|
-
import { useMessage as
|
|
1
|
+
import { defineComponent as le, ref as D, computed as M, openBlock as n, createElementBlock as m, createElementVNode as k, createBlock as i, unref as e, withCtx as o, createVNode as t, createCommentVNode as b, toDisplayString as u, Fragment as U, renderList as F, createTextVNode as f, resolveDynamicComponent as ae, normalizeClass as re, h as ne } from "vue";
|
|
2
|
+
import { useRoute as se, useRouter as ie } from "vue-router";
|
|
3
|
+
import { useMessage as ue, NButton as p, NBreadcrumb as pe, NBreadcrumbItem as ce, NMenu as q, NTooltip as h, NDropdown as A, NAvatar as de } from "naive-ui";
|
|
4
4
|
import { Icon as c } from "@iconify/vue";
|
|
5
|
-
import { useI18n as
|
|
6
|
-
import { useAppStore as
|
|
7
|
-
import { useUserStore as
|
|
8
|
-
import { useAuthStore as
|
|
9
|
-
import { useLayoutMenu as
|
|
10
|
-
import { useMenuFlat as
|
|
11
|
-
import { useSite as
|
|
12
|
-
import { useFullscreenToggle as
|
|
13
|
-
import { useHeaderTools as
|
|
14
|
-
import { authApi as
|
|
15
|
-
import { clearClientCache as
|
|
5
|
+
import { useI18n as me } from "vue-i18n";
|
|
6
|
+
import { useAppStore as fe } from "../stores/app.js";
|
|
7
|
+
import { useUserStore as he } from "../stores/user.js";
|
|
8
|
+
import { useAuthStore as ge } from "../stores/auth.js";
|
|
9
|
+
import { useLayoutMenu as ve } from "../composables/useLayoutMenu.js";
|
|
10
|
+
import { useMenuFlat as ye } from "../composables/useMenuFlat.js";
|
|
11
|
+
import { useSite as be } from "../composables/useSite.js";
|
|
12
|
+
import { useFullscreenToggle as ke } from "../composables/useFullscreenToggle.js";
|
|
13
|
+
import { useHeaderTools as we } from "../composables/useHeaderTools.js";
|
|
14
|
+
import { authApi as Ce } from "../api/index.js";
|
|
15
|
+
import { clearClientCache as _e } from "../composables/clearClientCache.js";
|
|
16
16
|
import { beginVoluntaryLogout as Se } from "../composables/useRealtime.js";
|
|
17
|
-
import { resetRouter as
|
|
18
|
-
import { translateError as
|
|
19
|
-
import
|
|
20
|
-
import
|
|
21
|
-
import
|
|
22
|
-
import
|
|
23
|
-
import
|
|
24
|
-
const
|
|
17
|
+
import { resetRouter as Ne } from "../router/index.js";
|
|
18
|
+
import { translateError as T } from "../utils/error.js";
|
|
19
|
+
import Be from "../components/SmartLogo.vue.js";
|
|
20
|
+
import Me from "../components/AppIcon.vue.js";
|
|
21
|
+
import Ue from "./SettingsDrawer.vue.js";
|
|
22
|
+
import qe from "../components/MenuSearch.vue.js";
|
|
23
|
+
import ze from "./NoticeBell.vue.js";
|
|
24
|
+
const Ie = { class: "bar" }, Le = { class: "left" }, Oe = {
|
|
25
25
|
key: 1,
|
|
26
26
|
class: "brand"
|
|
27
|
-
}, $e = { class: "brand-name mobile-hide" },
|
|
27
|
+
}, $e = { class: "brand-name mobile-hide" }, xe = {
|
|
28
28
|
key: 3,
|
|
29
29
|
class: "title"
|
|
30
|
-
},
|
|
30
|
+
}, De = {
|
|
31
31
|
key: 0,
|
|
32
32
|
class: "center"
|
|
33
|
-
},
|
|
34
|
-
key: 0,
|
|
35
|
-
class: "tenant-tag mobile-hide"
|
|
36
|
-
}, Ve = { class: "tenant-tag-text" }, Ee = { class: "uname mobile-hide" }, pt = /* @__PURE__ */ le({
|
|
33
|
+
}, Fe = { class: "right" }, Ae = { class: "uname mobile-hide" }, io = /* @__PURE__ */ le({
|
|
37
34
|
__name: "AppHeader",
|
|
38
35
|
props: {
|
|
39
36
|
showCollapse: { type: Boolean, default: !0 },
|
|
40
37
|
showBrand: { type: Boolean, default: !1 },
|
|
41
38
|
topMenu: { default: null }
|
|
42
39
|
},
|
|
43
|
-
setup(
|
|
44
|
-
const
|
|
45
|
-
isSupported:
|
|
40
|
+
setup(g) {
|
|
41
|
+
const d = fe(), { site: V } = be(), v = he(), z = ge(), I = se(), w = ie(), C = ue(), { t: s } = me(), {
|
|
42
|
+
isSupported: E,
|
|
46
43
|
isFullscreen: _,
|
|
47
|
-
toggle:
|
|
48
|
-
} =
|
|
49
|
-
const r =
|
|
44
|
+
toggle: R
|
|
45
|
+
} = ke(), { menuOptions: H, l1Options: K, l2Options: j, activeKey: L, selectedL1: G, onSelect: O, onSelectL1: J } = ve(), P = ye(), Q = we(), S = D(!1), N = D(!1), W = M(() => {
|
|
46
|
+
const r = I.meta.title;
|
|
50
47
|
return r ? r.includes(".") ? s(r) : r : "";
|
|
51
|
-
}),
|
|
48
|
+
}), $ = M(() => {
|
|
52
49
|
var r;
|
|
53
|
-
return ((r =
|
|
54
|
-
}),
|
|
50
|
+
return ((r = P.value.find((a) => a.path === I.path)) == null ? void 0 : r.breadcrumb) ?? [];
|
|
51
|
+
}), X = [
|
|
55
52
|
{ label: "简体中文", key: "zh-CN" },
|
|
56
53
|
{ label: "English", key: "en-US" }
|
|
57
54
|
];
|
|
58
|
-
function
|
|
59
|
-
|
|
55
|
+
function Y(r) {
|
|
56
|
+
d.setLocale(r);
|
|
60
57
|
}
|
|
61
|
-
const B = (r,
|
|
58
|
+
const B = (r, a) => () => ne(c, { icon: r, width: 16, style: a ? { color: a } : void 0 }), Z = M(() => [
|
|
62
59
|
{ label: s("app.personalCenter"), key: "personal", icon: B("ph:user") },
|
|
63
60
|
{ label: s("app.clearCache"), key: "clearCache", icon: B("ph:broom") },
|
|
64
61
|
{ type: "divider", key: "d1" },
|
|
@@ -70,297 +67,286 @@ const ze = { class: "bar" }, Le = { class: "left" }, Oe = {
|
|
|
70
67
|
props: { style: "color: var(--color-danger)" }
|
|
71
68
|
}
|
|
72
69
|
]);
|
|
73
|
-
async function
|
|
74
|
-
r === "personal" ? w.push("/personal/profile") : r === "clearCache" ? await oe() : r === "logout" && await
|
|
70
|
+
async function ee(r) {
|
|
71
|
+
r === "personal" ? w.push("/personal/profile") : r === "clearCache" ? await oe() : r === "logout" && await te();
|
|
75
72
|
}
|
|
76
73
|
async function oe() {
|
|
77
74
|
try {
|
|
78
|
-
await
|
|
75
|
+
await _e(), C.success(s("app.cacheCleared"));
|
|
79
76
|
} catch (r) {
|
|
80
|
-
C.error(
|
|
77
|
+
C.error(T(r));
|
|
81
78
|
}
|
|
82
79
|
}
|
|
83
|
-
async function
|
|
80
|
+
async function te() {
|
|
84
81
|
await Se();
|
|
85
82
|
try {
|
|
86
|
-
await
|
|
83
|
+
await Ce.logout();
|
|
87
84
|
} catch (r) {
|
|
88
|
-
C.error(
|
|
85
|
+
C.error(T(r));
|
|
89
86
|
}
|
|
90
|
-
|
|
87
|
+
Ne(), z.reset(), v.clear(), w.replace("/login");
|
|
91
88
|
}
|
|
92
|
-
return (r,
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
}, {
|
|
103
|
-
default: o(() => [
|
|
104
|
-
t(e(c), {
|
|
105
|
-
icon: e(m).collapsed ? "ph:list" : "ph:sidebar-simple",
|
|
106
|
-
width: 20
|
|
107
|
-
}, null, 8, ["icon"])
|
|
108
|
-
]),
|
|
109
|
-
_: 1
|
|
110
|
-
}, 8, ["aria-label"])) : g("", !0),
|
|
111
|
-
y.showBrand ? (n(), d("div", Oe, [
|
|
112
|
-
t(Me, { size: 26 }),
|
|
113
|
-
k("span", $e, u(e(E).title), 1)
|
|
114
|
-
])) : g("", !0),
|
|
115
|
-
e(m).showBreadcrumb && O.value.length ? (n(), i(e(pe), { key: 2 }, {
|
|
116
|
-
default: o(() => [
|
|
117
|
-
(n(!0), d(U, null, A(O.value, (a, b) => (n(), i(e(de), { key: b }, {
|
|
118
|
-
default: o(() => [
|
|
119
|
-
h(u(a), 1)
|
|
120
|
-
]),
|
|
121
|
-
_: 2
|
|
122
|
-
}, 1024))), 128))
|
|
123
|
-
]),
|
|
124
|
-
_: 1
|
|
125
|
-
})) : (n(), d("span", De, u(X.value), 1))
|
|
126
|
-
]),
|
|
127
|
-
y.topMenu ? (n(), d("div", Fe, [
|
|
128
|
-
y.topMenu === "full" ? (n(), i(e(q), {
|
|
129
|
-
key: 0,
|
|
130
|
-
mode: "horizontal",
|
|
131
|
-
responsive: "",
|
|
132
|
-
options: e(K),
|
|
133
|
-
value: e(z),
|
|
134
|
-
"onUpdate:value": e(L)
|
|
135
|
-
}, null, 8, ["options", "value", "onUpdate:value"])) : y.topMenu === "l1" ? (n(), i(e(q), {
|
|
136
|
-
key: 1,
|
|
137
|
-
mode: "horizontal",
|
|
138
|
-
responsive: "",
|
|
139
|
-
options: e(j),
|
|
140
|
-
value: e(J),
|
|
141
|
-
"onUpdate:value": e(P)
|
|
142
|
-
}, null, 8, ["options", "value", "onUpdate:value"])) : (n(), i(e(q), {
|
|
143
|
-
key: 2,
|
|
144
|
-
mode: "horizontal",
|
|
145
|
-
responsive: "",
|
|
146
|
-
options: e(G),
|
|
147
|
-
value: e(z),
|
|
148
|
-
"onUpdate:value": e(L)
|
|
149
|
-
}, null, 8, ["options", "value", "onUpdate:value"]))
|
|
150
|
-
])) : g("", !0),
|
|
151
|
-
k("div", Ae, [
|
|
152
|
-
($ = e(f).userInfo) != null && $.tenantName ? (n(), d("span", Te, [
|
|
89
|
+
return (r, a) => (n(), m("div", Ie, [
|
|
90
|
+
k("div", Le, [
|
|
91
|
+
g.showCollapse ? (n(), i(e(p), {
|
|
92
|
+
key: 0,
|
|
93
|
+
quaternary: "",
|
|
94
|
+
circle: "",
|
|
95
|
+
"aria-label": e(s)("app.collapse"),
|
|
96
|
+
onClick: a[0] || (a[0] = (l) => e(d).toggleCollapsed())
|
|
97
|
+
}, {
|
|
98
|
+
default: o(() => [
|
|
153
99
|
t(e(c), {
|
|
154
|
-
icon: "ph:
|
|
155
|
-
width:
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
100
|
+
icon: e(d).collapsed ? "ph:list" : "ph:sidebar-simple",
|
|
101
|
+
width: 20
|
|
102
|
+
}, null, 8, ["icon"])
|
|
103
|
+
]),
|
|
104
|
+
_: 1
|
|
105
|
+
}, 8, ["aria-label"])) : b("", !0),
|
|
106
|
+
g.showBrand ? (n(), m("div", Oe, [
|
|
107
|
+
t(Be, { size: 26 }),
|
|
108
|
+
k("span", $e, u(e(V).title), 1)
|
|
109
|
+
])) : b("", !0),
|
|
110
|
+
e(d).showBreadcrumb && $.value.length ? (n(), i(e(pe), { key: 2 }, {
|
|
111
|
+
default: o(() => [
|
|
112
|
+
(n(!0), m(U, null, F($.value, (l, y) => (n(), i(e(ce), { key: y }, {
|
|
113
|
+
default: o(() => [
|
|
114
|
+
f(u(l), 1)
|
|
115
|
+
]),
|
|
116
|
+
_: 2
|
|
117
|
+
}, 1024))), 128))
|
|
118
|
+
]),
|
|
119
|
+
_: 1
|
|
120
|
+
})) : (n(), m("span", xe, u(W.value), 1))
|
|
121
|
+
]),
|
|
122
|
+
g.topMenu ? (n(), m("div", De, [
|
|
123
|
+
g.topMenu === "full" ? (n(), i(e(q), {
|
|
124
|
+
key: 0,
|
|
125
|
+
mode: "horizontal",
|
|
126
|
+
responsive: "",
|
|
127
|
+
options: e(H),
|
|
128
|
+
value: e(L),
|
|
129
|
+
"onUpdate:value": e(O)
|
|
130
|
+
}, null, 8, ["options", "value", "onUpdate:value"])) : g.topMenu === "l1" ? (n(), i(e(q), {
|
|
131
|
+
key: 1,
|
|
132
|
+
mode: "horizontal",
|
|
133
|
+
responsive: "",
|
|
134
|
+
options: e(K),
|
|
135
|
+
value: e(G),
|
|
136
|
+
"onUpdate:value": e(J)
|
|
137
|
+
}, null, 8, ["options", "value", "onUpdate:value"])) : (n(), i(e(q), {
|
|
138
|
+
key: 2,
|
|
139
|
+
mode: "horizontal",
|
|
140
|
+
responsive: "",
|
|
141
|
+
options: e(j),
|
|
142
|
+
value: e(L),
|
|
143
|
+
"onUpdate:value": e(O)
|
|
144
|
+
}, null, 8, ["options", "value", "onUpdate:value"]))
|
|
145
|
+
])) : b("", !0),
|
|
146
|
+
k("div", Fe, [
|
|
147
|
+
t(e(h), null, {
|
|
148
|
+
trigger: o(() => [
|
|
149
|
+
t(e(p), {
|
|
150
|
+
quaternary: "",
|
|
151
|
+
circle: "",
|
|
152
|
+
class: "mobile-hide",
|
|
153
|
+
onClick: a[1] || (a[1] = (l) => N.value = !0)
|
|
154
|
+
}, {
|
|
155
|
+
default: o(() => [
|
|
156
|
+
t(e(c), {
|
|
157
|
+
icon: "ph:magnifying-glass",
|
|
158
|
+
width: 18
|
|
159
|
+
})
|
|
160
|
+
]),
|
|
161
|
+
_: 1
|
|
162
|
+
})
|
|
163
|
+
]),
|
|
164
|
+
default: o(() => [
|
|
165
|
+
f(" " + u(e(s)("app.search")) + " (Ctrl+K) ", 1)
|
|
166
|
+
]),
|
|
167
|
+
_: 1
|
|
168
|
+
}),
|
|
169
|
+
e(E) ? (n(), i(e(h), { key: 0 }, {
|
|
170
|
+
trigger: o(() => [
|
|
171
|
+
t(e(p), {
|
|
172
|
+
quaternary: "",
|
|
173
|
+
circle: "",
|
|
174
|
+
class: "mobile-hide",
|
|
175
|
+
"aria-label": e(_) ? e(s)("app.exitFullscreen") : e(s)("app.fullscreen"),
|
|
176
|
+
onClick: a[2] || (a[2] = (l) => e(R)())
|
|
177
|
+
}, {
|
|
178
|
+
default: o(() => [
|
|
179
|
+
t(e(c), {
|
|
180
|
+
icon: e(_) ? "ph:arrows-in" : "ph:arrows-out",
|
|
181
|
+
width: 18
|
|
182
|
+
}, null, 8, ["icon"])
|
|
183
|
+
]),
|
|
184
|
+
_: 1
|
|
185
|
+
}, 8, ["aria-label"])
|
|
186
|
+
]),
|
|
187
|
+
default: o(() => [
|
|
188
|
+
f(" " + u(e(_) ? e(s)("app.exitFullscreen") : e(s)("app.fullscreen")), 1)
|
|
189
|
+
]),
|
|
190
|
+
_: 1
|
|
191
|
+
})) : b("", !0),
|
|
192
|
+
t(e(h), null, {
|
|
193
|
+
trigger: o(() => [
|
|
194
|
+
t(e(p), {
|
|
195
|
+
quaternary: "",
|
|
196
|
+
circle: "",
|
|
197
|
+
onClick: a[3] || (a[3] = (l) => e(d).toggleDark())
|
|
198
|
+
}, {
|
|
199
|
+
default: o(() => [
|
|
200
|
+
t(e(c), {
|
|
201
|
+
icon: e(d).isDark ? "ph:moon-stars" : "ph:sun",
|
|
202
|
+
width: 18
|
|
203
|
+
}, null, 8, ["icon"])
|
|
204
|
+
]),
|
|
205
|
+
_: 1
|
|
206
|
+
})
|
|
207
|
+
]),
|
|
208
|
+
default: o(() => [
|
|
209
|
+
f(" " + u(e(d).isDark ? e(s)("app.dark") : e(s)("app.light")), 1)
|
|
210
|
+
]),
|
|
211
|
+
_: 1
|
|
212
|
+
}),
|
|
213
|
+
t(e(A), {
|
|
214
|
+
options: X,
|
|
215
|
+
onSelect: Y
|
|
216
|
+
}, {
|
|
217
|
+
default: o(() => [
|
|
218
|
+
t(e(p), {
|
|
219
|
+
quaternary: "",
|
|
220
|
+
circle: "",
|
|
221
|
+
class: "mobile-hide",
|
|
222
|
+
"aria-label": e(s)("app.language")
|
|
223
|
+
}, {
|
|
224
|
+
default: o(() => [
|
|
225
|
+
t(e(c), {
|
|
226
|
+
icon: "ph:translate",
|
|
227
|
+
width: 18
|
|
228
|
+
})
|
|
229
|
+
]),
|
|
230
|
+
_: 1
|
|
231
|
+
}, 8, ["aria-label"])
|
|
232
|
+
]),
|
|
233
|
+
_: 1
|
|
234
|
+
}),
|
|
235
|
+
t(e(h), null, {
|
|
236
|
+
trigger: o(() => [
|
|
237
|
+
t(e(p), {
|
|
238
|
+
quaternary: "",
|
|
239
|
+
circle: "",
|
|
240
|
+
class: "mobile-hide",
|
|
241
|
+
onClick: a[4] || (a[4] = (l) => S.value = !0)
|
|
242
|
+
}, {
|
|
243
|
+
default: o(() => [
|
|
244
|
+
t(e(c), {
|
|
245
|
+
icon: "ph:gear-six",
|
|
246
|
+
width: 18
|
|
247
|
+
})
|
|
248
|
+
]),
|
|
249
|
+
_: 1
|
|
250
|
+
})
|
|
251
|
+
]),
|
|
252
|
+
default: o(() => [
|
|
253
|
+
f(" " + u(e(s)("app.settings")), 1)
|
|
254
|
+
]),
|
|
255
|
+
_: 1
|
|
256
|
+
}),
|
|
257
|
+
e(z).modules.length > 1 ? (n(), i(e(h), { key: 1 }, {
|
|
258
|
+
trigger: o(() => [
|
|
259
|
+
t(e(p), {
|
|
260
|
+
quaternary: "",
|
|
261
|
+
circle: "",
|
|
262
|
+
"aria-label": e(s)("app.switchModule"),
|
|
263
|
+
onClick: a[5] || (a[5] = (l) => e(w).push("/module"))
|
|
264
|
+
}, {
|
|
265
|
+
default: o(() => [
|
|
266
|
+
t(e(c), {
|
|
267
|
+
icon: "ph:squares-four",
|
|
268
|
+
width: 18
|
|
269
|
+
})
|
|
270
|
+
]),
|
|
271
|
+
_: 1
|
|
272
|
+
}, 8, ["aria-label"])
|
|
273
|
+
]),
|
|
274
|
+
default: o(() => [
|
|
275
|
+
f(" " + u(e(s)("app.switchModule")), 1)
|
|
276
|
+
]),
|
|
277
|
+
_: 1
|
|
278
|
+
})) : b("", !0),
|
|
279
|
+
(n(!0), m(U, null, F(e(Q), (l) => (n(), m(U, {
|
|
280
|
+
key: l.key
|
|
281
|
+
}, [
|
|
282
|
+
l.component ? (n(), i(ae(l.component), { key: 0 })) : (n(), i(e(h), { key: 1 }, {
|
|
206
283
|
trigger: o(() => [
|
|
207
284
|
t(e(p), {
|
|
208
285
|
quaternary: "",
|
|
209
286
|
circle: "",
|
|
210
|
-
|
|
287
|
+
class: re({ "mobile-hide": !l.keepOnMobile }),
|
|
288
|
+
"aria-label": l.label,
|
|
289
|
+
onClick: (y) => l.onClick()
|
|
211
290
|
}, {
|
|
212
291
|
default: o(() => [
|
|
213
|
-
t(
|
|
214
|
-
icon:
|
|
215
|
-
|
|
292
|
+
t(Me, {
|
|
293
|
+
icon: l.icon,
|
|
294
|
+
size: 18
|
|
216
295
|
}, null, 8, ["icon"])
|
|
217
296
|
]),
|
|
218
|
-
_:
|
|
219
|
-
})
|
|
220
|
-
]),
|
|
221
|
-
default: o(() => [
|
|
222
|
-
h(" " + u(e(m).isDark ? e(s)("app.dark") : e(s)("app.light")), 1)
|
|
223
|
-
]),
|
|
224
|
-
_: 1
|
|
225
|
-
}),
|
|
226
|
-
t(e(T), {
|
|
227
|
-
options: Y,
|
|
228
|
-
onSelect: Z
|
|
229
|
-
}, {
|
|
230
|
-
default: o(() => [
|
|
231
|
-
t(e(p), {
|
|
232
|
-
quaternary: "",
|
|
233
|
-
circle: "",
|
|
234
|
-
class: "mobile-hide",
|
|
235
|
-
"aria-label": e(s)("app.language")
|
|
236
|
-
}, {
|
|
237
|
-
default: o(() => [
|
|
238
|
-
t(e(c), {
|
|
239
|
-
icon: "ph:translate",
|
|
240
|
-
width: 18
|
|
241
|
-
})
|
|
242
|
-
]),
|
|
243
|
-
_: 1
|
|
244
|
-
}, 8, ["aria-label"])
|
|
245
|
-
]),
|
|
246
|
-
_: 1
|
|
247
|
-
}),
|
|
248
|
-
t(e(v), null, {
|
|
249
|
-
trigger: o(() => [
|
|
250
|
-
t(e(p), {
|
|
251
|
-
quaternary: "",
|
|
252
|
-
circle: "",
|
|
253
|
-
class: "mobile-hide",
|
|
254
|
-
onClick: l[4] || (l[4] = (a) => N.value = !0)
|
|
255
|
-
}, {
|
|
256
|
-
default: o(() => [
|
|
257
|
-
t(e(c), {
|
|
258
|
-
icon: "ph:gear-six",
|
|
259
|
-
width: 18
|
|
260
|
-
})
|
|
261
|
-
]),
|
|
262
|
-
_: 1
|
|
263
|
-
})
|
|
264
|
-
]),
|
|
265
|
-
default: o(() => [
|
|
266
|
-
h(" " + u(e(s)("app.settings")), 1)
|
|
267
|
-
]),
|
|
268
|
-
_: 1
|
|
269
|
-
}),
|
|
270
|
-
e(I).modules.length > 1 ? (n(), i(e(v), { key: 2 }, {
|
|
271
|
-
trigger: o(() => [
|
|
272
|
-
t(e(p), {
|
|
273
|
-
quaternary: "",
|
|
274
|
-
circle: "",
|
|
275
|
-
"aria-label": e(s)("app.switchModule"),
|
|
276
|
-
onClick: l[5] || (l[5] = (a) => e(w).push("/module"))
|
|
277
|
-
}, {
|
|
278
|
-
default: o(() => [
|
|
279
|
-
t(e(c), {
|
|
280
|
-
icon: "ph:squares-four",
|
|
281
|
-
width: 18
|
|
282
|
-
})
|
|
283
|
-
]),
|
|
284
|
-
_: 1
|
|
285
|
-
}, 8, ["aria-label"])
|
|
286
|
-
]),
|
|
287
|
-
default: o(() => [
|
|
288
|
-
h(" " + u(e(s)("app.switchModule")), 1)
|
|
297
|
+
_: 2
|
|
298
|
+
}, 1032, ["class", "aria-label", "onClick"])
|
|
289
299
|
]),
|
|
290
|
-
_: 1
|
|
291
|
-
})) : g("", !0),
|
|
292
|
-
(n(!0), d(U, null, A(e(W), (a) => (n(), d(U, {
|
|
293
|
-
key: a.key
|
|
294
|
-
}, [
|
|
295
|
-
a.component ? (n(), i(re(a.component), { key: 0 })) : (n(), i(e(v), { key: 1 }, {
|
|
296
|
-
trigger: o(() => [
|
|
297
|
-
t(e(p), {
|
|
298
|
-
quaternary: "",
|
|
299
|
-
circle: "",
|
|
300
|
-
class: ne({ "mobile-hide": !a.keepOnMobile }),
|
|
301
|
-
"aria-label": a.label,
|
|
302
|
-
onClick: (b) => a.onClick()
|
|
303
|
-
}, {
|
|
304
|
-
default: o(() => [
|
|
305
|
-
t(Ue, {
|
|
306
|
-
icon: a.icon,
|
|
307
|
-
size: 18
|
|
308
|
-
}, null, 8, ["icon"])
|
|
309
|
-
]),
|
|
310
|
-
_: 2
|
|
311
|
-
}, 1032, ["class", "aria-label", "onClick"])
|
|
312
|
-
]),
|
|
313
|
-
default: o(() => [
|
|
314
|
-
h(" " + u(a.label), 1)
|
|
315
|
-
]),
|
|
316
|
-
_: 2
|
|
317
|
-
}, 1024))
|
|
318
|
-
], 64))), 128)),
|
|
319
|
-
t(xe),
|
|
320
|
-
t(e(T), {
|
|
321
|
-
options: ee.value,
|
|
322
|
-
onSelect: te
|
|
323
|
-
}, {
|
|
324
300
|
default: o(() => [
|
|
325
|
-
|
|
326
|
-
quaternary: "",
|
|
327
|
-
"aria-label": e(s)("app.profile")
|
|
328
|
-
}, {
|
|
329
|
-
default: o(() => {
|
|
330
|
-
var a, b, D;
|
|
331
|
-
return [
|
|
332
|
-
(a = e(f).userInfo) != null && a.avatar ? (n(), i(e(me), {
|
|
333
|
-
key: 0,
|
|
334
|
-
round: "",
|
|
335
|
-
size: 22,
|
|
336
|
-
src: e(f).userInfo.avatar
|
|
337
|
-
}, null, 8, ["src"])) : (n(), i(e(c), {
|
|
338
|
-
key: 1,
|
|
339
|
-
icon: "ph:user-circle",
|
|
340
|
-
width: 20
|
|
341
|
-
})),
|
|
342
|
-
k("span", Ee, u(((b = e(f).userInfo) == null ? void 0 : b.name) ?? ((D = e(f).userInfo) == null ? void 0 : D.account) ?? ""), 1)
|
|
343
|
-
];
|
|
344
|
-
}),
|
|
345
|
-
_: 1
|
|
346
|
-
}, 8, ["aria-label"])
|
|
301
|
+
f(" " + u(l.label), 1)
|
|
347
302
|
]),
|
|
348
|
-
_:
|
|
349
|
-
},
|
|
350
|
-
]),
|
|
351
|
-
t(
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
303
|
+
_: 2
|
|
304
|
+
}, 1024))
|
|
305
|
+
], 64))), 128)),
|
|
306
|
+
t(ze),
|
|
307
|
+
t(e(A), {
|
|
308
|
+
options: Z.value,
|
|
309
|
+
onSelect: ee
|
|
310
|
+
}, {
|
|
311
|
+
default: o(() => [
|
|
312
|
+
t(e(p), {
|
|
313
|
+
quaternary: "",
|
|
314
|
+
"aria-label": e(s)("app.profile")
|
|
315
|
+
}, {
|
|
316
|
+
default: o(() => {
|
|
317
|
+
var l, y, x;
|
|
318
|
+
return [
|
|
319
|
+
(l = e(v).userInfo) != null && l.avatar ? (n(), i(e(de), {
|
|
320
|
+
key: 0,
|
|
321
|
+
round: "",
|
|
322
|
+
size: 22,
|
|
323
|
+
src: e(v).userInfo.avatar
|
|
324
|
+
}, null, 8, ["src"])) : (n(), i(e(c), {
|
|
325
|
+
key: 1,
|
|
326
|
+
icon: "ph:user-circle",
|
|
327
|
+
width: 20
|
|
328
|
+
})),
|
|
329
|
+
k("span", Ae, u(((y = e(v).userInfo) == null ? void 0 : y.name) ?? ((x = e(v).userInfo) == null ? void 0 : x.account) ?? ""), 1)
|
|
330
|
+
];
|
|
331
|
+
}),
|
|
332
|
+
_: 1
|
|
333
|
+
}, 8, ["aria-label"])
|
|
334
|
+
]),
|
|
335
|
+
_: 1
|
|
336
|
+
}, 8, ["options"])
|
|
337
|
+
]),
|
|
338
|
+
t(Ue, {
|
|
339
|
+
show: S.value,
|
|
340
|
+
"onUpdate:show": a[6] || (a[6] = (l) => S.value = l)
|
|
341
|
+
}, null, 8, ["show"]),
|
|
342
|
+
t(qe, {
|
|
343
|
+
show: N.value,
|
|
344
|
+
"onUpdate:show": a[7] || (a[7] = (l) => N.value = l)
|
|
345
|
+
}, null, 8, ["show"])
|
|
346
|
+
]));
|
|
361
347
|
}
|
|
362
348
|
});
|
|
363
349
|
export {
|
|
364
|
-
|
|
350
|
+
io as default
|
|
365
351
|
};
|
|
366
352
|
//# sourceMappingURL=AppHeader2.vue.js.map
|