jmash-core 0.1.0 → 0.1.2
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/{401-mTulvsgZ.mjs → 401-1RT8-UtT.mjs} +1 -1
- package/dist/{404-DxlWduSf.mjs → 404-BOTkpKjR.mjs} +1 -1
- package/dist/{BarChart-CtUdxB_0.mjs → BarChart-CrGpG06b.mjs} +1 -1
- package/dist/{index-Mj1ROiut.mjs → index-B91VAniG.mjs} +1 -1
- package/dist/{index-pVhvMkbz.mjs → index-BoctJepu.mjs} +1 -1
- package/dist/{index-C9nXRt5O.mjs → index-BzuQcvQM.mjs} +335 -332
- package/dist/{index-DuxBd-8U.mjs → index-CzQaeyBq.mjs} +59 -56
- package/dist/{index-CfF_1UQn.mjs → index-D4oPpx8S.mjs} +14 -11
- package/dist/index.mjs +1 -1
- package/dist/{profile-CGK99sh1.mjs → profile-CQjdFL5P.mjs} +1 -1
- package/dist/{runAs-B8LJKe8Q.mjs → runAs-D3X3uAOe.mjs} +1 -1
- package/dist/{runAs.vue_vue_type_script_setup_true_lang-rKU04MVd.mjs → runAs.vue_vue_type_script_setup_true_lang-DLLs5O_i.mjs} +1 -1
- package/dist/style.css +1 -1
- package/dist/{types-BvEVzU5Z.mjs → types-D9vmrnIK.mjs} +1 -1
- package/dist/{updatePwd-BI8GFMwr.mjs → updatePwd-DmP9TFne.mjs} +1 -1
- package/dist/{updatePwd.vue_vue_type_script_setup_true_lang-DJXNzQb4.mjs → updatePwd.vue_vue_type_script_setup_true_lang-BKU9MMqp.mjs} +1 -1
- package/package.json +1 -1
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { u as
|
|
2
|
-
import { defineComponent as
|
|
1
|
+
import { u as Z, _ as le, E as ze, S as Fe, a as we, b as Ue, c as te, D as _e, d as qe, f as He, e as We, g as de, h as Ke, i as q, j as Ve, r as Te, k as me, T as he, s as Xe, m as je, l as Ge, n as fe, o as Ye } from "./index-D4oPpx8S.mjs";
|
|
2
|
+
import { defineComponent as D, ref as U, resolveComponent as V, createBlock as S, openBlock as d, withCtx as h, createElementVNode as k, createVNode as p, createElementBlock as x, Fragment as K, renderList as se, unref as l, createTextVNode as N, toDisplayString as E, computed as B, createCommentVNode as T, isRef as ve, watch as oe, onBeforeMount as Je, TransitionGroup as Qe, withModifiers as ue, normalizeClass as H, Transition as Me, KeepAlive as Ze, resolveDynamicComponent as ye, getCurrentInstance as et, nextTick as $e, onMounted as Ee, withDirectives as tt, normalizeStyle as nt, vShow as ot, normalizeProps as it, guardReactiveProps as at, renderSlot as lt, watchEffect as st } from "vue";
|
|
3
3
|
import { useRoute as pe, useRouter as ke } from "vue-router";
|
|
4
|
-
import { _ as rt } from "./updatePwd.vue_vue_type_script_setup_true_lang-
|
|
5
|
-
import { _ as ct } from "./runAs.vue_vue_type_script_setup_true_lang-
|
|
4
|
+
import { _ as rt } from "./updatePwd.vue_vue_type_script_setup_true_lang-BKU9MMqp.mjs";
|
|
5
|
+
import { _ as ct } from "./runAs.vue_vue_type_script_setup_true_lang-DLLs5O_i.mjs";
|
|
6
6
|
import { storeToRefs as ut } from "pinia";
|
|
7
|
-
const dt = /* @__PURE__ */
|
|
7
|
+
const dt = /* @__PURE__ */ D({
|
|
8
8
|
__name: "index",
|
|
9
9
|
setup(i) {
|
|
10
|
-
const e =
|
|
10
|
+
const e = Z(), t = U([
|
|
11
11
|
{ label: "默认", value: "default" },
|
|
12
12
|
{ label: "大型", value: "large" },
|
|
13
13
|
{ label: "小型", value: "small" }
|
|
@@ -16,7 +16,7 @@ const dt = /* @__PURE__ */ I({
|
|
|
16
16
|
e.changeSize(r), ze.success("切换布局大小成功");
|
|
17
17
|
}
|
|
18
18
|
return (r, n) => {
|
|
19
|
-
const a =
|
|
19
|
+
const a = le, s = V("el-dropdown-item"), c = V("el-dropdown-menu"), f = V("el-dropdown");
|
|
20
20
|
return d(), S(f, {
|
|
21
21
|
trigger: "click",
|
|
22
22
|
onCommand: o
|
|
@@ -24,13 +24,13 @@ const dt = /* @__PURE__ */ I({
|
|
|
24
24
|
dropdown: h(() => [
|
|
25
25
|
p(c, null, {
|
|
26
26
|
default: h(() => [
|
|
27
|
-
(d(!0), x(
|
|
27
|
+
(d(!0), x(K, null, se(l(t), (m) => (d(), S(s, {
|
|
28
28
|
key: m.value,
|
|
29
29
|
disabled: l(e).size == m.value,
|
|
30
30
|
command: m.value
|
|
31
31
|
}, {
|
|
32
32
|
default: h(() => [
|
|
33
|
-
|
|
33
|
+
N(E(m.label), 1)
|
|
34
34
|
]),
|
|
35
35
|
_: 2
|
|
36
36
|
}, 1032, ["disabled", "command"]))), 128))
|
|
@@ -47,16 +47,18 @@ const dt = /* @__PURE__ */ I({
|
|
|
47
47
|
});
|
|
48
48
|
};
|
|
49
49
|
}
|
|
50
|
-
}), ft = { class: "flex" }, mt = { class: "flex-center h100% p10px" }, pt = ["src"], _t = { key: 0 }, vt = /* @__PURE__ */
|
|
50
|
+
}), ft = { class: "flex" }, mt = { class: "flex-center h100% p10px" }, pt = ["src"], _t = { key: 0 }, vt = /* @__PURE__ */ D({
|
|
51
51
|
__name: "NavbarRight",
|
|
52
52
|
setup(i) {
|
|
53
|
-
const e = new Fe(), t =
|
|
53
|
+
const e = new Fe(), t = Z(), o = we(), r = Ue(), n = te();
|
|
54
54
|
pe();
|
|
55
|
-
const a = ke(), s =
|
|
56
|
-
|
|
55
|
+
const a = ke(), s = B(() => t.device === _e.MOBILE), c = U(!1), f = U(!1), { isFullscreen: m, toggle: u } = qe(), _ = B(() => He.imageUrl(r.user.avatar, 48, 48)), g = (C) => {
|
|
56
|
+
C.target.src = "https://gh.sooyie.cn/v1/file/path/wxapp/images/user/avatar.png";
|
|
57
|
+
};
|
|
58
|
+
function y() {
|
|
57
59
|
f.value = !0;
|
|
58
60
|
}
|
|
59
|
-
function
|
|
61
|
+
function A() {
|
|
60
62
|
Ke.confirm("确定注销并退出系统吗?", "提示", {
|
|
61
63
|
confirmButtonText: "确定",
|
|
62
64
|
cancelButtonText: "取消",
|
|
@@ -70,85 +72,85 @@ const dt = /* @__PURE__ */ I({
|
|
|
70
72
|
});
|
|
71
73
|
});
|
|
72
74
|
}
|
|
73
|
-
function
|
|
75
|
+
function $(C) {
|
|
74
76
|
c.value = C;
|
|
75
77
|
}
|
|
76
|
-
return (C,
|
|
77
|
-
const
|
|
78
|
+
return (C, L) => {
|
|
79
|
+
const w = le, Y = dt, ee = V("el-tooltip"), ne = We, X = V("router-link"), J = V("el-dropdown-item"), z = V("el-dropdown-menu"), I = V("el-dropdown");
|
|
78
80
|
return d(), x("div", ft, [
|
|
79
|
-
l(s) ?
|
|
81
|
+
l(s) ? T("", !0) : (d(), x(K, { key: 0 }, [
|
|
80
82
|
k("div", {
|
|
81
83
|
class: "setting-item",
|
|
82
|
-
onClick:
|
|
83
|
-
(...
|
|
84
|
+
onClick: L[0] || (L[0] = //@ts-ignore
|
|
85
|
+
(...R) => l(u) && l(u)(...R))
|
|
84
86
|
}, [
|
|
85
|
-
p(
|
|
87
|
+
p(w, {
|
|
86
88
|
"icon-class": l(m) ? "fullscreen-exit" : "fullscreen"
|
|
87
89
|
}, null, 8, ["icon-class"])
|
|
88
90
|
]),
|
|
89
|
-
p(
|
|
91
|
+
p(ee, {
|
|
90
92
|
content: C.$t("sizeSelect.tooltip"),
|
|
91
93
|
effect: "dark",
|
|
92
94
|
placement: "bottom"
|
|
93
95
|
}, {
|
|
94
96
|
default: h(() => [
|
|
95
|
-
p(
|
|
97
|
+
p(Y, { class: "setting-item" })
|
|
96
98
|
]),
|
|
97
99
|
_: 1
|
|
98
100
|
}, 8, ["content"]),
|
|
99
|
-
p(
|
|
101
|
+
p(ne, { class: "setting-item" })
|
|
100
102
|
], 64)),
|
|
101
|
-
p(
|
|
103
|
+
p(I, {
|
|
102
104
|
class: "setting-item",
|
|
103
105
|
trigger: "click"
|
|
104
106
|
}, {
|
|
105
107
|
dropdown: h(() => [
|
|
106
|
-
p(
|
|
108
|
+
p(z, null, {
|
|
107
109
|
default: h(() => [
|
|
108
|
-
p(
|
|
110
|
+
p(J, null, {
|
|
109
111
|
default: h(() => [
|
|
110
|
-
p(
|
|
112
|
+
p(X, { to: "/" }, {
|
|
111
113
|
default: h(() => [
|
|
112
|
-
|
|
114
|
+
N(E(C.$t("navbar.Dashboard")), 1)
|
|
113
115
|
]),
|
|
114
116
|
_: 1
|
|
115
117
|
})
|
|
116
118
|
]),
|
|
117
119
|
_: 1
|
|
118
120
|
}),
|
|
119
|
-
p(
|
|
121
|
+
p(J, null, {
|
|
120
122
|
default: h(() => [
|
|
121
|
-
p(
|
|
123
|
+
p(X, { to: "/my/profile" }, {
|
|
122
124
|
default: h(() => [
|
|
123
|
-
|
|
125
|
+
N(E(C.$t("navbar.profile")), 1)
|
|
124
126
|
]),
|
|
125
127
|
_: 1
|
|
126
128
|
})
|
|
127
129
|
]),
|
|
128
130
|
_: 1
|
|
129
131
|
}),
|
|
130
|
-
p(
|
|
131
|
-
onClick:
|
|
132
|
+
p(J, {
|
|
133
|
+
onClick: L[1] || (L[1] = (R) => c.value = !0)
|
|
132
134
|
}, {
|
|
133
135
|
default: h(() => [
|
|
134
|
-
|
|
136
|
+
N(E(C.$t("navbar.changePwd")), 1)
|
|
135
137
|
]),
|
|
136
138
|
_: 1
|
|
137
139
|
}),
|
|
138
140
|
l(e).hasRole("tester") || l(e).userInfo().runAs ? (d(), x("div", _t, [
|
|
139
|
-
p(
|
|
141
|
+
p(J, { onClick: y }, {
|
|
140
142
|
default: h(() => [
|
|
141
|
-
|
|
143
|
+
N(E(C.$t("navbar.runAs")), 1)
|
|
142
144
|
]),
|
|
143
145
|
_: 1
|
|
144
146
|
})
|
|
145
|
-
])) :
|
|
146
|
-
p(
|
|
147
|
+
])) : T("", !0),
|
|
148
|
+
p(J, {
|
|
147
149
|
divided: "",
|
|
148
|
-
onClick:
|
|
150
|
+
onClick: A
|
|
149
151
|
}, {
|
|
150
152
|
default: h(() => [
|
|
151
|
-
|
|
153
|
+
N(E(C.$t("navbar.logout")), 1)
|
|
152
154
|
]),
|
|
153
155
|
_: 1
|
|
154
156
|
})
|
|
@@ -160,9 +162,10 @@ const dt = /* @__PURE__ */ I({
|
|
|
160
162
|
k("div", mt, [
|
|
161
163
|
k("img", {
|
|
162
164
|
src: l(_),
|
|
163
|
-
class: "rounded-full mr-10px w24px w24px"
|
|
164
|
-
|
|
165
|
-
|
|
165
|
+
class: "rounded-full mr-10px w24px w24px",
|
|
166
|
+
onError: g
|
|
167
|
+
}, null, 40, pt),
|
|
168
|
+
k("span", null, E(l(r).user.nickName), 1)
|
|
166
169
|
])
|
|
167
170
|
]),
|
|
168
171
|
_: 1
|
|
@@ -170,24 +173,24 @@ const dt = /* @__PURE__ */ I({
|
|
|
170
173
|
l(de).showSettings ? (d(), x("div", {
|
|
171
174
|
key: 1,
|
|
172
175
|
class: "setting-item",
|
|
173
|
-
onClick:
|
|
176
|
+
onClick: L[2] || (L[2] = (R) => l(n).settingsVisible = !0)
|
|
174
177
|
}, [
|
|
175
|
-
p(
|
|
176
|
-
])) :
|
|
178
|
+
p(w, { "icon-class": "setting" })
|
|
179
|
+
])) : T("", !0),
|
|
177
180
|
l(c) ? (d(), S(rt, {
|
|
178
181
|
key: 2,
|
|
179
182
|
"pwd-visible": l(c),
|
|
180
|
-
onDialogActionChange:
|
|
181
|
-
}, null, 8, ["pwd-visible"])) :
|
|
183
|
+
onDialogActionChange: $
|
|
184
|
+
}, null, 8, ["pwd-visible"])) : T("", !0),
|
|
182
185
|
l(f) ? (d(), S(ct, {
|
|
183
186
|
key: 3,
|
|
184
187
|
modelValue: l(f),
|
|
185
|
-
"onUpdate:modelValue":
|
|
186
|
-
}, null, 8, ["modelValue"])) :
|
|
188
|
+
"onUpdate:modelValue": L[3] || (L[3] = (R) => ve(f) ? f.value = R : null)
|
|
189
|
+
}, null, 8, ["modelValue"])) : T("", !0)
|
|
187
190
|
]);
|
|
188
191
|
};
|
|
189
192
|
}
|
|
190
|
-
}), Le = /* @__PURE__ */ q(vt, [["__scopeId", "data-v-
|
|
193
|
+
}), Le = /* @__PURE__ */ q(vt, [["__scopeId", "data-v-745304a4"]]);
|
|
191
194
|
function gt(i) {
|
|
192
195
|
for (var e = [], t = 0; t < i.length; ) {
|
|
193
196
|
var o = i[t];
|
|
@@ -258,58 +261,58 @@ function gt(i) {
|
|
|
258
261
|
}
|
|
259
262
|
function ht(i, e) {
|
|
260
263
|
e === void 0 && (e = {});
|
|
261
|
-
for (var t = gt(i), o = e.prefixes, r = o === void 0 ? "./" : o, n = e.delimiter, a = n === void 0 ? "/#?" : n, s = [], c = 0, f = 0, m = "", u = function(
|
|
262
|
-
if (f < t.length && t[f].type ===
|
|
264
|
+
for (var t = gt(i), o = e.prefixes, r = o === void 0 ? "./" : o, n = e.delimiter, a = n === void 0 ? "/#?" : n, s = [], c = 0, f = 0, m = "", u = function(z) {
|
|
265
|
+
if (f < t.length && t[f].type === z)
|
|
263
266
|
return t[f++].value;
|
|
264
|
-
}, _ = function(
|
|
265
|
-
var
|
|
266
|
-
if (
|
|
267
|
-
return
|
|
268
|
-
var
|
|
269
|
-
throw new TypeError("Unexpected ".concat(re, " at ").concat(ce, ", expected ").concat(
|
|
267
|
+
}, _ = function(z) {
|
|
268
|
+
var I = u(z);
|
|
269
|
+
if (I !== void 0)
|
|
270
|
+
return I;
|
|
271
|
+
var R = t[f], re = R.type, ce = R.index;
|
|
272
|
+
throw new TypeError("Unexpected ".concat(re, " at ").concat(ce, ", expected ").concat(z));
|
|
270
273
|
}, g = function() {
|
|
271
|
-
for (var
|
|
272
|
-
|
|
273
|
-
return
|
|
274
|
-
},
|
|
275
|
-
for (var
|
|
276
|
-
var re =
|
|
277
|
-
if (
|
|
274
|
+
for (var z = "", I; I = u("CHAR") || u("ESCAPED_CHAR"); )
|
|
275
|
+
z += I;
|
|
276
|
+
return z;
|
|
277
|
+
}, y = function(z) {
|
|
278
|
+
for (var I = 0, R = a; I < R.length; I++) {
|
|
279
|
+
var re = R[I];
|
|
280
|
+
if (z.indexOf(re) > -1)
|
|
278
281
|
return !0;
|
|
279
282
|
}
|
|
280
283
|
return !1;
|
|
281
|
-
},
|
|
282
|
-
var
|
|
283
|
-
if (
|
|
284
|
-
throw new TypeError('Must have text between two parameters, missing text after "'.concat(
|
|
285
|
-
return !
|
|
284
|
+
}, A = function(z) {
|
|
285
|
+
var I = s[s.length - 1], R = z || (I && typeof I == "string" ? I : "");
|
|
286
|
+
if (I && !R)
|
|
287
|
+
throw new TypeError('Must have text between two parameters, missing text after "'.concat(I.name, '"'));
|
|
288
|
+
return !R || y(R) ? "[^".concat(be(a), "]+?") : "(?:(?!".concat(be(R), ")[^").concat(be(a), "])+?");
|
|
286
289
|
}; f < t.length; ) {
|
|
287
|
-
var
|
|
288
|
-
if (
|
|
289
|
-
var
|
|
290
|
-
r.indexOf(
|
|
291
|
-
name:
|
|
292
|
-
prefix:
|
|
290
|
+
var $ = u("CHAR"), C = u("NAME"), L = u("PATTERN");
|
|
291
|
+
if (C || L) {
|
|
292
|
+
var w = $ || "";
|
|
293
|
+
r.indexOf(w) === -1 && (m += w, w = ""), m && (s.push(m), m = ""), s.push({
|
|
294
|
+
name: C || c++,
|
|
295
|
+
prefix: w,
|
|
293
296
|
suffix: "",
|
|
294
|
-
pattern:
|
|
297
|
+
pattern: L || A(w),
|
|
295
298
|
modifier: u("MODIFIER") || ""
|
|
296
299
|
});
|
|
297
300
|
continue;
|
|
298
301
|
}
|
|
299
|
-
var Y =
|
|
302
|
+
var Y = $ || u("ESCAPED_CHAR");
|
|
300
303
|
if (Y) {
|
|
301
304
|
m += Y;
|
|
302
305
|
continue;
|
|
303
306
|
}
|
|
304
307
|
m && (s.push(m), m = "");
|
|
305
|
-
var
|
|
306
|
-
if (
|
|
307
|
-
var
|
|
308
|
+
var ee = u("OPEN");
|
|
309
|
+
if (ee) {
|
|
310
|
+
var w = g(), ne = u("NAME") || "", X = u("PATTERN") || "", J = g();
|
|
308
311
|
_("CLOSE"), s.push({
|
|
309
|
-
name:
|
|
310
|
-
pattern:
|
|
311
|
-
prefix:
|
|
312
|
-
suffix:
|
|
312
|
+
name: ne || (X ? c++ : ""),
|
|
313
|
+
pattern: ne && !X ? A(w) : X,
|
|
314
|
+
prefix: w,
|
|
315
|
+
suffix: J,
|
|
313
316
|
modifier: u("MODIFIER") || ""
|
|
314
317
|
});
|
|
315
318
|
continue;
|
|
@@ -336,33 +339,33 @@ function xt(i, e) {
|
|
|
336
339
|
f += u;
|
|
337
340
|
continue;
|
|
338
341
|
}
|
|
339
|
-
var _ = c ? c[u.name] : void 0, g = u.modifier === "?" || u.modifier === "*",
|
|
342
|
+
var _ = c ? c[u.name] : void 0, g = u.modifier === "?" || u.modifier === "*", y = u.modifier === "*" || u.modifier === "+";
|
|
340
343
|
if (Array.isArray(_)) {
|
|
341
|
-
if (!
|
|
344
|
+
if (!y)
|
|
342
345
|
throw new TypeError('Expected "'.concat(u.name, '" to not repeat, but got an array'));
|
|
343
346
|
if (_.length === 0) {
|
|
344
347
|
if (g)
|
|
345
348
|
continue;
|
|
346
349
|
throw new TypeError('Expected "'.concat(u.name, '" to not be empty'));
|
|
347
350
|
}
|
|
348
|
-
for (var
|
|
349
|
-
var
|
|
350
|
-
if (a && !s[m].test(
|
|
351
|
-
throw new TypeError('Expected all "'.concat(u.name, '" to match "').concat(u.pattern, '", but got "').concat(
|
|
352
|
-
f += u.prefix +
|
|
351
|
+
for (var A = 0; A < _.length; A++) {
|
|
352
|
+
var $ = r(_[A], u);
|
|
353
|
+
if (a && !s[m].test($))
|
|
354
|
+
throw new TypeError('Expected all "'.concat(u.name, '" to match "').concat(u.pattern, '", but got "').concat($, '"'));
|
|
355
|
+
f += u.prefix + $ + u.suffix;
|
|
353
356
|
}
|
|
354
357
|
continue;
|
|
355
358
|
}
|
|
356
359
|
if (typeof _ == "string" || typeof _ == "number") {
|
|
357
|
-
var
|
|
358
|
-
if (a && !s[m].test(
|
|
359
|
-
throw new TypeError('Expected "'.concat(u.name, '" to match "').concat(u.pattern, '", but got "').concat(
|
|
360
|
-
f += u.prefix +
|
|
360
|
+
var $ = r(String(_), u);
|
|
361
|
+
if (a && !s[m].test($))
|
|
362
|
+
throw new TypeError('Expected "'.concat(u.name, '" to match "').concat(u.pattern, '", but got "').concat($, '"'));
|
|
363
|
+
f += u.prefix + $ + u.suffix;
|
|
361
364
|
continue;
|
|
362
365
|
}
|
|
363
366
|
if (!g) {
|
|
364
|
-
var
|
|
365
|
-
throw new TypeError('Expected "'.concat(u.name, '" to be ').concat(
|
|
367
|
+
var C = y ? "an array" : "a string";
|
|
368
|
+
throw new TypeError('Expected "'.concat(u.name, '" to be ').concat(C));
|
|
366
369
|
}
|
|
367
370
|
}
|
|
368
371
|
return f;
|
|
@@ -388,7 +391,7 @@ function ge(i, e) {
|
|
|
388
391
|
const kt = {
|
|
389
392
|
key: 0,
|
|
390
393
|
class: "color-gray-400"
|
|
391
|
-
}, St = ["onClick"], Ct = /* @__PURE__ */
|
|
394
|
+
}, St = ["onClick"], Ct = /* @__PURE__ */ D({
|
|
392
395
|
__name: "index",
|
|
393
396
|
setup(i) {
|
|
394
397
|
const e = pe(), t = (s) => {
|
|
@@ -420,7 +423,7 @@ const kt = {
|
|
|
420
423
|
console.warn(m);
|
|
421
424
|
});
|
|
422
425
|
}
|
|
423
|
-
return
|
|
426
|
+
return oe(
|
|
424
427
|
() => e.path,
|
|
425
428
|
(s) => {
|
|
426
429
|
s.startsWith("/redirect/") || r();
|
|
@@ -428,19 +431,19 @@ const kt = {
|
|
|
428
431
|
), Je(() => {
|
|
429
432
|
r();
|
|
430
433
|
}), (s, c) => {
|
|
431
|
-
const f =
|
|
434
|
+
const f = V("el-breadcrumb-item"), m = V("el-breadcrumb");
|
|
432
435
|
return d(), S(m, { class: "flex-y-center" }, {
|
|
433
436
|
default: h(() => [
|
|
434
437
|
p(Qe, { "enter-active-class": "animate__animated animate__fadeInRight" }, {
|
|
435
438
|
default: h(() => [
|
|
436
|
-
(d(!0), x(
|
|
439
|
+
(d(!0), x(K, null, se(l(o), (u, _) => (d(), S(f, {
|
|
437
440
|
key: u.path
|
|
438
441
|
}, {
|
|
439
442
|
default: h(() => [
|
|
440
|
-
u.redirect === "noredirect" || _ === l(o).length - 1 ? (d(), x("span", kt,
|
|
443
|
+
u.redirect === "noredirect" || _ === l(o).length - 1 ? (d(), x("span", kt, E(l(xe)(u)), 1)) : (d(), x("a", {
|
|
441
444
|
key: 1,
|
|
442
445
|
onClick: ue((g) => a(u), ["prevent"])
|
|
443
|
-
},
|
|
446
|
+
}, E(l(xe)(u)), 9, St))
|
|
444
447
|
]),
|
|
445
448
|
_: 2
|
|
446
449
|
}, 1024))), 128))
|
|
@@ -452,7 +455,7 @@ const kt = {
|
|
|
452
455
|
});
|
|
453
456
|
};
|
|
454
457
|
}
|
|
455
|
-
}), Vt = /* @__PURE__ */ q(Ct, [["__scopeId", "data-v-6109c28e"]]), Tt = /* @__PURE__ */
|
|
458
|
+
}), Vt = /* @__PURE__ */ q(Ct, [["__scopeId", "data-v-6109c28e"]]), Tt = /* @__PURE__ */ D({
|
|
456
459
|
__name: "index",
|
|
457
460
|
props: {
|
|
458
461
|
isActive: {
|
|
@@ -468,22 +471,22 @@ const kt = {
|
|
|
468
471
|
t("toggleClick");
|
|
469
472
|
}
|
|
470
473
|
return (r, n) => {
|
|
471
|
-
const a =
|
|
474
|
+
const a = le;
|
|
472
475
|
return d(), x("div", {
|
|
473
476
|
class: "px-[15px] flex items-center justify-center color-[var(--el-text-color-regular)]",
|
|
474
477
|
onClick: o
|
|
475
478
|
}, [
|
|
476
479
|
p(a, {
|
|
477
|
-
class:
|
|
480
|
+
class: H(["hamburger", { "is-active": i.isActive }]),
|
|
478
481
|
"icon-class": "indent-decrease"
|
|
479
482
|
}, null, 8, ["class"])
|
|
480
483
|
]);
|
|
481
484
|
};
|
|
482
485
|
}
|
|
483
|
-
}), Pe = /* @__PURE__ */ q(Tt, [["__scopeId", "data-v-42e37629"]]), $t = { class: "flex" }, At = /* @__PURE__ */
|
|
486
|
+
}), Pe = /* @__PURE__ */ q(Tt, [["__scopeId", "data-v-42e37629"]]), $t = { class: "flex" }, At = /* @__PURE__ */ D({
|
|
484
487
|
__name: "NavbarLeft",
|
|
485
488
|
setup(i) {
|
|
486
|
-
const e =
|
|
489
|
+
const e = Z();
|
|
487
490
|
function t() {
|
|
488
491
|
e.toggleSidebar();
|
|
489
492
|
}
|
|
@@ -507,8 +510,8 @@ function Lt(i, e) {
|
|
|
507
510
|
]);
|
|
508
511
|
}
|
|
509
512
|
const Pt = /* @__PURE__ */ q(Mt, [["render", Lt], ["__scopeId", "data-v-b1624593"]]);
|
|
510
|
-
var
|
|
511
|
-
const It = { class: "flex flex-wrap justify-around w-full h-12" }, Rt = /* @__PURE__ */
|
|
513
|
+
var Q = /* @__PURE__ */ ((i) => (i.LEFT = "left", i.TOP = "top", i.MIX = "mix", i))(Q || {});
|
|
514
|
+
const It = { class: "flex flex-wrap justify-around w-full h-12" }, Rt = /* @__PURE__ */ D({
|
|
512
515
|
__name: "LayoutSelect",
|
|
513
516
|
props: {
|
|
514
517
|
modelValue: String
|
|
@@ -520,7 +523,7 @@ const It = { class: "flex flex-wrap justify-around w-full h-12" }, Rt = /* @__PU
|
|
|
520
523
|
t("update:modelValue", r);
|
|
521
524
|
}
|
|
522
525
|
return (r, n) => {
|
|
523
|
-
const a =
|
|
526
|
+
const a = V("el-tooltip");
|
|
524
527
|
return d(), x("div", It, [
|
|
525
528
|
p(a, {
|
|
526
529
|
content: "左侧模式",
|
|
@@ -528,8 +531,8 @@ const It = { class: "flex flex-wrap justify-around w-full h-12" }, Rt = /* @__PU
|
|
|
528
531
|
}, {
|
|
529
532
|
default: h(() => [
|
|
530
533
|
k("div", {
|
|
531
|
-
class:
|
|
532
|
-
onClick: n[0] || (n[0] = (s) => o(l(
|
|
534
|
+
class: H(["layout-item left", { "is-active": i.modelValue === l(Q).LEFT }]),
|
|
535
|
+
onClick: n[0] || (n[0] = (s) => o(l(Q).LEFT))
|
|
533
536
|
}, n[3] || (n[3] = [
|
|
534
537
|
k("div", null, null, -1),
|
|
535
538
|
k("div", null, null, -1)
|
|
@@ -543,8 +546,8 @@ const It = { class: "flex flex-wrap justify-around w-full h-12" }, Rt = /* @__PU
|
|
|
543
546
|
}, {
|
|
544
547
|
default: h(() => [
|
|
545
548
|
k("div", {
|
|
546
|
-
class:
|
|
547
|
-
onClick: n[1] || (n[1] = (s) => o(l(
|
|
549
|
+
class: H(["layout-item top", { "is-active": i.modelValue === l(Q).TOP }]),
|
|
550
|
+
onClick: n[1] || (n[1] = (s) => o(l(Q).TOP))
|
|
548
551
|
}, n[4] || (n[4] = [
|
|
549
552
|
k("div", null, null, -1),
|
|
550
553
|
k("div", null, null, -1)
|
|
@@ -558,8 +561,8 @@ const It = { class: "flex flex-wrap justify-around w-full h-12" }, Rt = /* @__PU
|
|
|
558
561
|
}, {
|
|
559
562
|
default: h(() => [
|
|
560
563
|
k("div", {
|
|
561
|
-
class:
|
|
562
|
-
onClick: n[2] || (n[2] = (s) => o(l(
|
|
564
|
+
class: H(["layout-item mix", { "is-active": i.modelValue === l(Q).MIX }]),
|
|
565
|
+
onClick: n[2] || (n[2] = (s) => o(l(Q).MIX))
|
|
563
566
|
}, n[5] || (n[5] = [
|
|
564
567
|
k("div", null, null, -1),
|
|
565
568
|
k("div", null, null, -1)
|
|
@@ -570,7 +573,7 @@ const It = { class: "flex flex-wrap justify-around w-full h-12" }, Rt = /* @__PU
|
|
|
570
573
|
]);
|
|
571
574
|
};
|
|
572
575
|
}
|
|
573
|
-
}), Dt = /* @__PURE__ */ q(Rt, [["__scopeId", "data-v-2bdf1403"]]), Bt = /* @__PURE__ */
|
|
576
|
+
}), Dt = /* @__PURE__ */ q(Rt, [["__scopeId", "data-v-2bdf1403"]]), Bt = /* @__PURE__ */ D({
|
|
574
577
|
__name: "ThemeColorPicker",
|
|
575
578
|
props: {
|
|
576
579
|
modelValue: String
|
|
@@ -589,10 +592,10 @@ const It = { class: "flex flex-wrap justify-around w-full h-12" }, Rt = /* @__PU
|
|
|
589
592
|
"rgb(255, 120, 0)",
|
|
590
593
|
"hsva(120, 40, 94)"
|
|
591
594
|
], n = U(t.modelValue);
|
|
592
|
-
return
|
|
595
|
+
return oe(n, (a) => {
|
|
593
596
|
o("update:modelValue", a);
|
|
594
597
|
}), (a, s) => {
|
|
595
|
-
const c =
|
|
598
|
+
const c = V("el-color-picker");
|
|
596
599
|
return d(), S(c, {
|
|
597
600
|
modelValue: l(n),
|
|
598
601
|
"onUpdate:modelValue": s[0] || (s[0] = (f) => ve(n) ? n.value = f : null),
|
|
@@ -601,10 +604,10 @@ const It = { class: "flex flex-wrap justify-around w-full h-12" }, Rt = /* @__PU
|
|
|
601
604
|
}, null, 8, ["modelValue"]);
|
|
602
605
|
};
|
|
603
606
|
}
|
|
604
|
-
}), Ot = /* @__PURE__ */ q(Bt, [["__scopeId", "data-v-92c1fd79"]]), Nt = { class: "flex-center" }, zt = { class: "settings-option" }, Ft = { class: "text-xs" }, Ut = { class: "settings-option" }, qt = { class: "text-xs" }, Ht = { class: "settings-option" }, Wt = { class: "text-xs" }, Kt = { class: "settings-option" }, Xt = { class: "text-xs" }, jt = { class: "settings-option" }, Gt = { class: "text-xs" }, Yt = /* @__PURE__ */
|
|
607
|
+
}), Ot = /* @__PURE__ */ q(Bt, [["__scopeId", "data-v-92c1fd79"]]), Nt = { class: "flex-center" }, zt = { class: "settings-option" }, Ft = { class: "text-xs" }, Ut = { class: "settings-option" }, qt = { class: "text-xs" }, Ht = { class: "settings-option" }, Wt = { class: "text-xs" }, Kt = { class: "settings-option" }, Xt = { class: "text-xs" }, jt = { class: "settings-option" }, Gt = { class: "text-xs" }, Yt = /* @__PURE__ */ D({
|
|
605
608
|
__name: "index",
|
|
606
609
|
setup(i) {
|
|
607
|
-
const e = pe(), t =
|
|
610
|
+
const e = pe(), t = Z(), o = te(), r = me(), n = B({
|
|
608
611
|
get() {
|
|
609
612
|
return o.settingsVisible;
|
|
610
613
|
},
|
|
@@ -619,107 +622,107 @@ const It = { class: "flex flex-wrap justify-around w-full h-12" }, Rt = /* @__PU
|
|
|
619
622
|
s.value = _, o.changeTheme(s.value ? he.DARK : he.LIGHT);
|
|
620
623
|
};
|
|
621
624
|
function f(_) {
|
|
622
|
-
o.changeLayout(_), _ ===
|
|
625
|
+
o.changeLayout(_), _ === Q.MIX ? e.name && m(e.name) : _ === Q.TOP && t.openSideBar();
|
|
623
626
|
}
|
|
624
627
|
function m(_) {
|
|
625
628
|
const g = u(r.routes, _);
|
|
626
629
|
t.activeTopMenu !== g.path && t.activeTopMenu(g.path);
|
|
627
630
|
}
|
|
628
631
|
function u(_, g) {
|
|
629
|
-
let
|
|
630
|
-
function
|
|
631
|
-
if (
|
|
632
|
-
for (let
|
|
633
|
-
|
|
632
|
+
let y = {};
|
|
633
|
+
function A(C, L) {
|
|
634
|
+
if (y[C.name] = L, C.children)
|
|
635
|
+
for (let w = 0; w < C.children.length; w++)
|
|
636
|
+
A(C.children[w], C);
|
|
634
637
|
}
|
|
635
|
-
for (let
|
|
636
|
-
|
|
637
|
-
let
|
|
638
|
-
for (;
|
|
639
|
-
if (!
|
|
640
|
-
return
|
|
641
|
-
|
|
638
|
+
for (let C = 0; C < _.length; C++)
|
|
639
|
+
A(_[C], null);
|
|
640
|
+
let $ = y[g];
|
|
641
|
+
for (; $; ) {
|
|
642
|
+
if (!y[$.name])
|
|
643
|
+
return $;
|
|
644
|
+
$ = y[$.name];
|
|
642
645
|
}
|
|
643
646
|
return null;
|
|
644
647
|
}
|
|
645
648
|
return (_, g) => {
|
|
646
|
-
const
|
|
647
|
-
return d(), S(
|
|
649
|
+
const y = V("el-divider"), A = V("el-switch"), $ = Ot, C = Dt, L = V("el-drawer");
|
|
650
|
+
return d(), S(L, {
|
|
648
651
|
modelValue: l(n),
|
|
649
|
-
"onUpdate:modelValue": g[7] || (g[7] = (
|
|
652
|
+
"onUpdate:modelValue": g[7] || (g[7] = (w) => ve(n) ? n.value = w : null),
|
|
650
653
|
size: "300",
|
|
651
654
|
title: _.$t("settings.project")
|
|
652
655
|
}, {
|
|
653
656
|
default: h(() => [
|
|
654
|
-
p(
|
|
657
|
+
p(y, null, {
|
|
655
658
|
default: h(() => [
|
|
656
|
-
|
|
659
|
+
N(E(_.$t("settings.theme")), 1)
|
|
657
660
|
]),
|
|
658
661
|
_: 1
|
|
659
662
|
}),
|
|
660
663
|
k("div", Nt, [
|
|
661
|
-
p(
|
|
664
|
+
p(A, {
|
|
662
665
|
modelValue: l(s),
|
|
663
|
-
"onUpdate:modelValue": g[0] || (g[0] = (
|
|
666
|
+
"onUpdate:modelValue": g[0] || (g[0] = (w) => ve(s) ? s.value = w : null),
|
|
664
667
|
"active-icon": l(je),
|
|
665
668
|
"inactive-icon": l(Xe),
|
|
666
669
|
onChange: c
|
|
667
670
|
}, null, 8, ["modelValue", "active-icon", "inactive-icon"])
|
|
668
671
|
]),
|
|
669
|
-
p(
|
|
672
|
+
p(y, null, {
|
|
670
673
|
default: h(() => [
|
|
671
|
-
|
|
674
|
+
N(E(_.$t("settings.interface")), 1)
|
|
672
675
|
]),
|
|
673
676
|
_: 1
|
|
674
677
|
}),
|
|
675
678
|
k("div", zt, [
|
|
676
|
-
k("span", Ft,
|
|
677
|
-
p(
|
|
679
|
+
k("span", Ft, E(_.$t("settings.themeColor")), 1),
|
|
680
|
+
p($, {
|
|
678
681
|
modelValue: l(o).themeColor,
|
|
679
682
|
"onUpdate:modelValue": [
|
|
680
|
-
g[1] || (g[1] = (
|
|
683
|
+
g[1] || (g[1] = (w) => l(o).themeColor = w),
|
|
681
684
|
a
|
|
682
685
|
]
|
|
683
686
|
}, null, 8, ["modelValue"])
|
|
684
687
|
]),
|
|
685
688
|
k("div", Ut, [
|
|
686
|
-
k("span", qt,
|
|
687
|
-
p(
|
|
689
|
+
k("span", qt, E(_.$t("settings.tagsView")), 1),
|
|
690
|
+
p(A, {
|
|
688
691
|
modelValue: l(o).tagsView,
|
|
689
|
-
"onUpdate:modelValue": g[2] || (g[2] = (
|
|
692
|
+
"onUpdate:modelValue": g[2] || (g[2] = (w) => l(o).tagsView = w)
|
|
690
693
|
}, null, 8, ["modelValue"])
|
|
691
694
|
]),
|
|
692
695
|
k("div", Ht, [
|
|
693
|
-
k("span", Wt,
|
|
694
|
-
p(
|
|
696
|
+
k("span", Wt, E(_.$t("settings.fixedHeader")), 1),
|
|
697
|
+
p(A, {
|
|
695
698
|
modelValue: l(o).fixedHeader,
|
|
696
|
-
"onUpdate:modelValue": g[3] || (g[3] = (
|
|
699
|
+
"onUpdate:modelValue": g[3] || (g[3] = (w) => l(o).fixedHeader = w)
|
|
697
700
|
}, null, 8, ["modelValue"])
|
|
698
701
|
]),
|
|
699
702
|
k("div", Kt, [
|
|
700
|
-
k("span", Xt,
|
|
701
|
-
p(
|
|
703
|
+
k("span", Xt, E(_.$t("settings.sidebarLogo")), 1),
|
|
704
|
+
p(A, {
|
|
702
705
|
modelValue: l(o).sidebarLogo,
|
|
703
|
-
"onUpdate:modelValue": g[4] || (g[4] = (
|
|
706
|
+
"onUpdate:modelValue": g[4] || (g[4] = (w) => l(o).sidebarLogo = w)
|
|
704
707
|
}, null, 8, ["modelValue"])
|
|
705
708
|
]),
|
|
706
709
|
k("div", jt, [
|
|
707
|
-
k("span", Gt,
|
|
708
|
-
p(
|
|
710
|
+
k("span", Gt, E(_.$t("settings.watermark")), 1),
|
|
711
|
+
p(A, {
|
|
709
712
|
modelValue: l(o).watermarkEnabled,
|
|
710
|
-
"onUpdate:modelValue": g[5] || (g[5] = (
|
|
713
|
+
"onUpdate:modelValue": g[5] || (g[5] = (w) => l(o).watermarkEnabled = w)
|
|
711
714
|
}, null, 8, ["modelValue"])
|
|
712
715
|
]),
|
|
713
|
-
p(
|
|
716
|
+
p(y, null, {
|
|
714
717
|
default: h(() => [
|
|
715
|
-
|
|
718
|
+
N(E(_.$t("settings.navigation")), 1)
|
|
716
719
|
]),
|
|
717
720
|
_: 1
|
|
718
721
|
}),
|
|
719
|
-
p(
|
|
722
|
+
p(C, {
|
|
720
723
|
modelValue: l(o).layout,
|
|
721
724
|
"onUpdate:modelValue": [
|
|
722
|
-
g[6] || (g[6] = (
|
|
725
|
+
g[6] || (g[6] = (w) => l(o).layout = w),
|
|
723
726
|
f
|
|
724
727
|
]
|
|
725
728
|
}, null, 8, ["modelValue"])
|
|
@@ -728,12 +731,12 @@ const It = { class: "flex flex-wrap justify-around w-full h-12" }, Rt = /* @__PU
|
|
|
728
731
|
}, 8, ["modelValue", "title"]);
|
|
729
732
|
};
|
|
730
733
|
}
|
|
731
|
-
}), Jt = /* @__PURE__ */ q(Yt, [["__scopeId", "data-v-70f5bf10"]]), Qt = { class: "app-main" }, Zt = /* @__PURE__ */
|
|
734
|
+
}), Jt = /* @__PURE__ */ q(Yt, [["__scopeId", "data-v-70f5bf10"]]), Qt = { class: "app-main" }, Zt = /* @__PURE__ */ D({
|
|
732
735
|
__name: "index",
|
|
733
736
|
setup(i) {
|
|
734
|
-
const e =
|
|
737
|
+
const e = B(() => we().cachedViews);
|
|
735
738
|
return (t, o) => {
|
|
736
|
-
const r =
|
|
739
|
+
const r = V("router-view");
|
|
737
740
|
return d(), x("section", Qt, [
|
|
738
741
|
p(r, null, {
|
|
739
742
|
default: h(({ Component: n, route: a }) => [
|
|
@@ -812,7 +815,7 @@ function an(i, e) {
|
|
|
812
815
|
var t = e.dir || e.root, o = e.base || (e.name || "") + (e.ext || "");
|
|
813
816
|
return t ? t === e.root ? t + o : t + i + o : o;
|
|
814
817
|
}
|
|
815
|
-
var
|
|
818
|
+
var ie = {
|
|
816
819
|
// path.resolve([from ...], to)
|
|
817
820
|
resolve: function() {
|
|
818
821
|
for (var e = "", t = !1, o, r = arguments.length - 1; r >= -1 && !t; r--) {
|
|
@@ -836,10 +839,10 @@ var oe = {
|
|
|
836
839
|
var o = arguments[t];
|
|
837
840
|
G(o), o.length > 0 && (e === void 0 ? e = o : e += "/" + o);
|
|
838
841
|
}
|
|
839
|
-
return e === void 0 ? "." :
|
|
842
|
+
return e === void 0 ? "." : ie.normalize(e);
|
|
840
843
|
},
|
|
841
844
|
relative: function(e, t) {
|
|
842
|
-
if (G(e), G(t), e === t || (e =
|
|
845
|
+
if (G(e), G(t), e === t || (e = ie.resolve(e), t = ie.resolve(t), e === t)) return "";
|
|
843
846
|
for (var o = 1; o < e.length && e.charCodeAt(o) === 47; ++o)
|
|
844
847
|
;
|
|
845
848
|
for (var r = e.length, n = r - o, a = 1; a < t.length && t.charCodeAt(a) === 47; ++a)
|
|
@@ -859,10 +862,10 @@ var oe = {
|
|
|
859
862
|
break;
|
|
860
863
|
_ === 47 && (m = u);
|
|
861
864
|
}
|
|
862
|
-
var
|
|
865
|
+
var y = "";
|
|
863
866
|
for (u = o + m + 1; u <= r; ++u)
|
|
864
|
-
(u === r || e.charCodeAt(u) === 47) && (
|
|
865
|
-
return
|
|
867
|
+
(u === r || e.charCodeAt(u) === 47) && (y.length === 0 ? y += ".." : y += "/..");
|
|
868
|
+
return y.length > 0 ? y + t.slice(a + m) : (a += m, t.charCodeAt(a) === 47 && ++a, t.slice(a));
|
|
866
869
|
},
|
|
867
870
|
_makeLong: function(e) {
|
|
868
871
|
return e;
|
|
@@ -955,12 +958,12 @@ var oe = {
|
|
|
955
958
|
win32: null,
|
|
956
959
|
posix: null
|
|
957
960
|
};
|
|
958
|
-
|
|
959
|
-
var Ie =
|
|
960
|
-
const Re = /* @__PURE__ */ Ge(Ie), ln = { class: "tags-container" }, sn = /* @__PURE__ */
|
|
961
|
+
ie.posix = ie;
|
|
962
|
+
var Ie = ie;
|
|
963
|
+
const Re = /* @__PURE__ */ Ge(Ie), ln = { class: "tags-container" }, sn = /* @__PURE__ */ D({
|
|
961
964
|
__name: "index",
|
|
962
965
|
setup(i) {
|
|
963
|
-
const { proxy: e } = et(), t = ke(), o = pe(), r = me(), n = we(), a =
|
|
966
|
+
const { proxy: e } = et(), t = ke(), o = pe(), r = me(), n = we(), a = Z(), { visitedViews: s } = ut(n), c = te(), f = B(() => c.layout), m = U({
|
|
964
967
|
path: "",
|
|
965
968
|
query: "",
|
|
966
969
|
fullPath: "",
|
|
@@ -969,45 +972,45 @@ const Re = /* @__PURE__ */ Ge(Ie), ln = { class: "tags-container" }, sn = /* @__
|
|
|
969
972
|
affix: !1,
|
|
970
973
|
keepAlive: !1
|
|
971
974
|
}), u = U([]), _ = U(0), g = U(0);
|
|
972
|
-
|
|
975
|
+
oe(
|
|
973
976
|
o,
|
|
974
977
|
() => {
|
|
975
|
-
|
|
978
|
+
C(), L();
|
|
976
979
|
},
|
|
977
980
|
{
|
|
978
981
|
immediate: !0
|
|
979
982
|
//初始化立即执行
|
|
980
983
|
}
|
|
981
984
|
);
|
|
982
|
-
const
|
|
983
|
-
|
|
985
|
+
const y = U(!1);
|
|
986
|
+
oe(y, (b) => {
|
|
984
987
|
b ? document.body.addEventListener("click", ce) : document.body.removeEventListener("click", ce);
|
|
985
988
|
});
|
|
986
|
-
function
|
|
987
|
-
let
|
|
988
|
-
return b.forEach((
|
|
989
|
-
var
|
|
990
|
-
const
|
|
991
|
-
if ((
|
|
992
|
-
path:
|
|
993
|
-
fullPath:
|
|
994
|
-
name: String(
|
|
995
|
-
title: ((P =
|
|
996
|
-
affix: (j =
|
|
997
|
-
keepAlive: (Se =
|
|
998
|
-
}),
|
|
999
|
-
const Ce =
|
|
1000
|
-
Ce.length >= 1 && (
|
|
989
|
+
function A(b, v = "/") {
|
|
990
|
+
let F = [];
|
|
991
|
+
return b.forEach((O) => {
|
|
992
|
+
var M, P, j, Se;
|
|
993
|
+
const W = Ie.resolve(v, O.path);
|
|
994
|
+
if ((M = O.meta) != null && M.affix && F.push({
|
|
995
|
+
path: W,
|
|
996
|
+
fullPath: W,
|
|
997
|
+
name: String(O.name),
|
|
998
|
+
title: ((P = O.meta) == null ? void 0 : P.title) || "no-name",
|
|
999
|
+
affix: (j = O.meta) == null ? void 0 : j.affix,
|
|
1000
|
+
keepAlive: (Se = O.meta) == null ? void 0 : Se.keepAlive
|
|
1001
|
+
}), O.children) {
|
|
1002
|
+
const Ce = A(O.children, v + O.path);
|
|
1003
|
+
Ce.length >= 1 && (F = [...F, ...Ce]);
|
|
1001
1004
|
}
|
|
1002
|
-
}),
|
|
1005
|
+
}), F;
|
|
1003
1006
|
}
|
|
1004
|
-
function
|
|
1005
|
-
const b =
|
|
1007
|
+
function $() {
|
|
1008
|
+
const b = A(r.routes);
|
|
1006
1009
|
u.value = b;
|
|
1007
1010
|
for (const v of b)
|
|
1008
1011
|
v.name && n.addVisitedView(v);
|
|
1009
1012
|
}
|
|
1010
|
-
function
|
|
1013
|
+
function C() {
|
|
1011
1014
|
var b, v;
|
|
1012
1015
|
o.meta.title && n.addView({
|
|
1013
1016
|
name: o.name,
|
|
@@ -1019,11 +1022,11 @@ const Re = /* @__PURE__ */ Ge(Ie), ln = { class: "tags-container" }, sn = /* @__
|
|
|
1019
1022
|
query: o.query
|
|
1020
1023
|
});
|
|
1021
1024
|
}
|
|
1022
|
-
function
|
|
1025
|
+
function L() {
|
|
1023
1026
|
$e(() => {
|
|
1024
1027
|
var b, v;
|
|
1025
|
-
for (const
|
|
1026
|
-
|
|
1028
|
+
for (const F of s.value)
|
|
1029
|
+
F.path === o.path && F.fullPath !== o.fullPath && n.updateVisitedView({
|
|
1027
1030
|
name: o.name,
|
|
1028
1031
|
title: o.meta.title || "",
|
|
1029
1032
|
path: o.path,
|
|
@@ -1034,71 +1037,71 @@ const Re = /* @__PURE__ */ Ge(Ie), ln = { class: "tags-container" }, sn = /* @__
|
|
|
1034
1037
|
});
|
|
1035
1038
|
});
|
|
1036
1039
|
}
|
|
1037
|
-
function
|
|
1040
|
+
function w(b) {
|
|
1038
1041
|
return b == null ? void 0 : b.affix;
|
|
1039
1042
|
}
|
|
1040
1043
|
function Y() {
|
|
1041
1044
|
return n.visitedViews.length <= 1 ? !1 : m.value.path === "/dashboard" || m.value.fullPath === n.visitedViews[1].fullPath;
|
|
1042
1045
|
}
|
|
1043
|
-
function
|
|
1046
|
+
function ee() {
|
|
1044
1047
|
return n.visitedViews.length <= 1 ? !1 : m.value.fullPath === n.visitedViews[n.visitedViews.length - 1].fullPath;
|
|
1045
1048
|
}
|
|
1046
|
-
function
|
|
1049
|
+
function ne(b) {
|
|
1047
1050
|
n.delCachedView(b);
|
|
1048
1051
|
const { fullPath: v } = b;
|
|
1049
1052
|
$e(() => {
|
|
1050
1053
|
t.replace({ path: "/redirect" + v });
|
|
1051
1054
|
});
|
|
1052
1055
|
}
|
|
1053
|
-
function
|
|
1056
|
+
function X(b) {
|
|
1054
1057
|
n.delView(b).then((v) => {
|
|
1055
1058
|
n.isActive(b) && n.toLastView(v.visitedViews, b);
|
|
1056
1059
|
});
|
|
1057
1060
|
}
|
|
1058
|
-
function
|
|
1061
|
+
function J() {
|
|
1059
1062
|
n.delLeftViews(m.value).then((b) => {
|
|
1060
1063
|
b.visitedViews.find((v) => v.path === o.path) || n.toLastView(b.visitedViews);
|
|
1061
1064
|
});
|
|
1062
1065
|
}
|
|
1063
|
-
function
|
|
1066
|
+
function z() {
|
|
1064
1067
|
n.delRightViews(m.value).then((b) => {
|
|
1065
1068
|
b.visitedViews.find((v) => v.path === o.path) || n.toLastView(b.visitedViews);
|
|
1066
1069
|
});
|
|
1067
1070
|
}
|
|
1068
|
-
function
|
|
1071
|
+
function I() {
|
|
1069
1072
|
t.push(m.value), n.delOtherViews(m.value).then(() => {
|
|
1070
|
-
|
|
1073
|
+
L();
|
|
1071
1074
|
});
|
|
1072
1075
|
}
|
|
1073
|
-
function
|
|
1076
|
+
function R(b) {
|
|
1074
1077
|
n.delAllViews().then((v) => {
|
|
1075
1078
|
n.toLastView(v.visitedViews, b);
|
|
1076
1079
|
});
|
|
1077
1080
|
}
|
|
1078
1081
|
function re(b, v) {
|
|
1079
|
-
const
|
|
1080
|
-
P >
|
|
1082
|
+
const O = e == null ? void 0 : e.$el.getBoundingClientRect().left, M = (e == null ? void 0 : e.$el.offsetWidth) - 105, P = v.clientX - O + 15;
|
|
1083
|
+
P > M ? _.value = M : _.value = P, f.value === "mix" ? g.value = v.clientY - 50 : g.value = v.clientY, y.value = !0, m.value = b;
|
|
1081
1084
|
}
|
|
1082
1085
|
function ce() {
|
|
1083
|
-
|
|
1086
|
+
y.value = !1;
|
|
1084
1087
|
}
|
|
1085
1088
|
function Be() {
|
|
1086
1089
|
ce();
|
|
1087
1090
|
}
|
|
1088
1091
|
function Oe(b, v) {
|
|
1089
|
-
let
|
|
1090
|
-
function
|
|
1091
|
-
if (
|
|
1092
|
-
for (let j = 0; j <
|
|
1093
|
-
|
|
1092
|
+
let F = {};
|
|
1093
|
+
function O(M, P) {
|
|
1094
|
+
if (F[M.name] = P, M.children)
|
|
1095
|
+
for (let j = 0; j < M.children.length; j++)
|
|
1096
|
+
O(M.children[j], M);
|
|
1094
1097
|
}
|
|
1095
|
-
for (let
|
|
1096
|
-
|
|
1097
|
-
let
|
|
1098
|
-
for (;
|
|
1099
|
-
if (!
|
|
1100
|
-
return
|
|
1101
|
-
|
|
1098
|
+
for (let M = 0; M < b.length; M++)
|
|
1099
|
+
O(b[M], null);
|
|
1100
|
+
let W = F[v];
|
|
1101
|
+
for (; W; ) {
|
|
1102
|
+
if (!F[W.name])
|
|
1103
|
+
return W;
|
|
1104
|
+
W = F[W.name];
|
|
1102
1105
|
}
|
|
1103
1106
|
return null;
|
|
1104
1107
|
}
|
|
@@ -1107,7 +1110,7 @@ const Re = /* @__PURE__ */ Ge(Ie), ln = { class: "tags-container" }, sn = /* @__
|
|
|
1107
1110
|
const v = Oe(r.routes, b);
|
|
1108
1111
|
a.activeTopMenu !== v.path && a.activeTopMenu(v.path);
|
|
1109
1112
|
};
|
|
1110
|
-
return
|
|
1113
|
+
return oe(
|
|
1111
1114
|
() => o.name,
|
|
1112
1115
|
(b) => {
|
|
1113
1116
|
b && Ne(b);
|
|
@@ -1116,32 +1119,32 @@ const Re = /* @__PURE__ */ Ge(Ie), ln = { class: "tags-container" }, sn = /* @__
|
|
|
1116
1119
|
deep: !0
|
|
1117
1120
|
}
|
|
1118
1121
|
), Ee(() => {
|
|
1119
|
-
|
|
1122
|
+
$();
|
|
1120
1123
|
}), (b, v) => {
|
|
1121
|
-
const
|
|
1124
|
+
const F = on, O = V("router-link"), W = V("el-scrollbar"), M = le;
|
|
1122
1125
|
return d(), x("div", ln, [
|
|
1123
|
-
p(
|
|
1126
|
+
p(W, {
|
|
1124
1127
|
class: "scroll-container",
|
|
1125
1128
|
vertical: !1,
|
|
1126
1129
|
onWheel: ue(Be, ["prevent"])
|
|
1127
1130
|
}, {
|
|
1128
1131
|
default: h(() => [
|
|
1129
|
-
(d(!0), x(
|
|
1132
|
+
(d(!0), x(K, null, se(l(s), (P) => (d(), S(O, {
|
|
1130
1133
|
ref_for: !0,
|
|
1131
1134
|
ref: "tagRef",
|
|
1132
1135
|
key: P.fullPath,
|
|
1133
|
-
class:
|
|
1136
|
+
class: H("tags-item " + (l(n).isActive(P) ? "active" : "")),
|
|
1134
1137
|
to: { path: P.path, query: P.query },
|
|
1135
|
-
onMouseup: ue((j) =>
|
|
1138
|
+
onMouseup: ue((j) => w(P) ? "" : X(P), ["middle"]),
|
|
1136
1139
|
onContextmenu: ue((j) => re(P, j), ["prevent"])
|
|
1137
1140
|
}, {
|
|
1138
1141
|
default: h(() => [
|
|
1139
|
-
|
|
1140
|
-
|
|
1142
|
+
N(E(l(yt)(P)) + " ", 1),
|
|
1143
|
+
w(P) ? T("", !0) : (d(), S(F, {
|
|
1141
1144
|
key: 0,
|
|
1142
1145
|
class: "close-icon",
|
|
1143
1146
|
size: "12px",
|
|
1144
|
-
onClick: ue((j) =>
|
|
1147
|
+
onClick: ue((j) => X(P), ["prevent", "stop"])
|
|
1145
1148
|
}, null, 8, ["onClick"]))
|
|
1146
1149
|
]),
|
|
1147
1150
|
_: 2
|
|
@@ -1154,49 +1157,49 @@ const Re = /* @__PURE__ */ Ge(Ie), ln = { class: "tags-container" }, sn = /* @__
|
|
|
1154
1157
|
style: nt({ left: l(_) + "px", top: l(g) + "px" })
|
|
1155
1158
|
}, [
|
|
1156
1159
|
k("li", {
|
|
1157
|
-
onClick: v[0] || (v[0] = (P) =>
|
|
1160
|
+
onClick: v[0] || (v[0] = (P) => ne(l(m)))
|
|
1158
1161
|
}, [
|
|
1159
|
-
p(
|
|
1160
|
-
v[3] || (v[3] =
|
|
1162
|
+
p(M, { "icon-class": "refresh" }),
|
|
1163
|
+
v[3] || (v[3] = N(" 刷新 "))
|
|
1161
1164
|
]),
|
|
1162
|
-
|
|
1165
|
+
w(l(m)) ? T("", !0) : (d(), x("li", {
|
|
1163
1166
|
key: 0,
|
|
1164
|
-
onClick: v[1] || (v[1] = (P) =>
|
|
1167
|
+
onClick: v[1] || (v[1] = (P) => X(l(m)))
|
|
1165
1168
|
}, [
|
|
1166
|
-
p(
|
|
1167
|
-
v[4] || (v[4] =
|
|
1169
|
+
p(M, { "icon-class": "close" }),
|
|
1170
|
+
v[4] || (v[4] = N(" 关闭 "))
|
|
1168
1171
|
])),
|
|
1169
|
-
k("li", { onClick:
|
|
1170
|
-
p(
|
|
1171
|
-
v[5] || (v[5] =
|
|
1172
|
+
k("li", { onClick: I }, [
|
|
1173
|
+
p(M, { "icon-class": "close_other" }),
|
|
1174
|
+
v[5] || (v[5] = N(" 关闭其它 "))
|
|
1172
1175
|
]),
|
|
1173
|
-
Y() ?
|
|
1176
|
+
Y() ? T("", !0) : (d(), x("li", {
|
|
1174
1177
|
key: 1,
|
|
1175
|
-
onClick:
|
|
1178
|
+
onClick: J
|
|
1176
1179
|
}, [
|
|
1177
|
-
p(
|
|
1178
|
-
v[6] || (v[6] =
|
|
1180
|
+
p(M, { "icon-class": "close_left" }),
|
|
1181
|
+
v[6] || (v[6] = N(" 关闭左侧 "))
|
|
1179
1182
|
])),
|
|
1180
|
-
|
|
1183
|
+
ee() ? T("", !0) : (d(), x("li", {
|
|
1181
1184
|
key: 2,
|
|
1182
|
-
onClick:
|
|
1185
|
+
onClick: z
|
|
1183
1186
|
}, [
|
|
1184
|
-
p(
|
|
1185
|
-
v[7] || (v[7] =
|
|
1187
|
+
p(M, { "icon-class": "close_right" }),
|
|
1188
|
+
v[7] || (v[7] = N(" 关闭右侧 "))
|
|
1186
1189
|
])),
|
|
1187
1190
|
k("li", {
|
|
1188
|
-
onClick: v[2] || (v[2] = (P) =>
|
|
1191
|
+
onClick: v[2] || (v[2] = (P) => R(l(m)))
|
|
1189
1192
|
}, [
|
|
1190
|
-
p(
|
|
1191
|
-
v[8] || (v[8] =
|
|
1193
|
+
p(M, { "icon-class": "close_all" }),
|
|
1194
|
+
v[8] || (v[8] = N(" 关闭所有 "))
|
|
1192
1195
|
])
|
|
1193
1196
|
], 4), [
|
|
1194
|
-
[ot, l(
|
|
1197
|
+
[ot, l(y)]
|
|
1195
1198
|
])
|
|
1196
1199
|
]);
|
|
1197
1200
|
};
|
|
1198
1201
|
}
|
|
1199
|
-
}), rn = /* @__PURE__ */ q(sn, [["__scopeId", "data-v-77bfe9a5"]]), cn = /* @__PURE__ */
|
|
1202
|
+
}), rn = /* @__PURE__ */ q(sn, [["__scopeId", "data-v-77bfe9a5"]]), cn = /* @__PURE__ */ D({
|
|
1200
1203
|
name: "AppLink",
|
|
1201
1204
|
inheritAttrs: !1,
|
|
1202
1205
|
__name: "index",
|
|
@@ -1207,7 +1210,7 @@ const Re = /* @__PURE__ */ Ge(Ie), ln = { class: "tags-container" }, sn = /* @__
|
|
|
1207
1210
|
}
|
|
1208
1211
|
},
|
|
1209
1212
|
setup(i) {
|
|
1210
|
-
const e = i, t =
|
|
1213
|
+
const e = i, t = B(() => fe(e.to)), o = B(() => t.value ? "a" : "router-link"), r = (n) => t.value ? { href: n, target: "_blank", rel: "noopener noreferrer" } : { to: n };
|
|
1211
1214
|
return (n, a) => (d(), S(ye(l(o)), it(at(r(i.to))), {
|
|
1212
1215
|
default: h(() => [
|
|
1213
1216
|
lt(n.$slots, "default")
|
|
@@ -1218,7 +1221,7 @@ const Re = /* @__PURE__ */ Ge(Ie), ln = { class: "tags-container" }, sn = /* @__
|
|
|
1218
1221
|
}), un = {
|
|
1219
1222
|
key: 3,
|
|
1220
1223
|
class: "ml-1"
|
|
1221
|
-
}, dn = /* @__PURE__ */
|
|
1224
|
+
}, dn = /* @__PURE__ */ D({
|
|
1222
1225
|
__name: "SidebarMenuItemTitle",
|
|
1223
1226
|
props: {
|
|
1224
1227
|
icon: {
|
|
@@ -1236,8 +1239,8 @@ const Re = /* @__PURE__ */ Ge(Ie), ln = { class: "tags-container" }, sn = /* @__
|
|
|
1236
1239
|
},
|
|
1237
1240
|
setup(i) {
|
|
1238
1241
|
return (e, t) => {
|
|
1239
|
-
const o =
|
|
1240
|
-
return d(), x(
|
|
1242
|
+
const o = V("el-icon"), r = le;
|
|
1243
|
+
return d(), x(K, null, [
|
|
1241
1244
|
i.icon && i.icon.startsWith("el-icon") ? (d(), S(o, {
|
|
1242
1245
|
key: 0,
|
|
1243
1246
|
class: "sub-el-icon"
|
|
@@ -1253,11 +1256,11 @@ const Re = /* @__PURE__ */ Ge(Ie), ln = { class: "tags-container" }, sn = /* @__
|
|
|
1253
1256
|
key: 2,
|
|
1254
1257
|
"icon-class": "menu"
|
|
1255
1258
|
})),
|
|
1256
|
-
i.title ? (d(), x("span", un,
|
|
1259
|
+
i.title ? (d(), x("span", un, E(l(ge)(i.name, i.title)), 1)) : T("", !0)
|
|
1257
1260
|
], 64);
|
|
1258
1261
|
};
|
|
1259
1262
|
}
|
|
1260
|
-
}), fn = /* @__PURE__ */ q(dn, [["__scopeId", "data-v-992a058f"]]), mn = { key: 0 }, pn = /* @__PURE__ */
|
|
1263
|
+
}), fn = /* @__PURE__ */ q(dn, [["__scopeId", "data-v-992a058f"]]), mn = { key: 0 }, pn = /* @__PURE__ */ D({
|
|
1261
1264
|
name: "SidebarMenuItem",
|
|
1262
1265
|
inheritAttrs: !1,
|
|
1263
1266
|
__name: "SidebarMenuItem",
|
|
@@ -1295,9 +1298,9 @@ const Re = /* @__PURE__ */ Ge(Ie), ln = { class: "tags-container" }, sn = /* @__
|
|
|
1295
1298
|
}
|
|
1296
1299
|
return (n, a) => {
|
|
1297
1300
|
var _;
|
|
1298
|
-
const s = fn, c =
|
|
1301
|
+
const s = fn, c = V("el-menu-item"), f = cn, m = V("SidebarMenuItem", !0), u = V("el-sub-menu");
|
|
1299
1302
|
return !i.item.meta || !i.item.meta.hidden ? (d(), x("div", mn, [
|
|
1300
|
-
o(i.item.children, i.item) && (!l(t).children || l(t).noShowingChildren) && !((_ = i.item.meta) != null && _.alwaysShow) ? (d(), x(
|
|
1303
|
+
o(i.item.children, i.item) && (!l(t).children || l(t).noShowingChildren) && !((_ = i.item.meta) != null && _.alwaysShow) ? (d(), x(K, { key: 0 }, [
|
|
1301
1304
|
l(t).meta ? (d(), S(f, {
|
|
1302
1305
|
key: 0,
|
|
1303
1306
|
to: r(l(t).path)
|
|
@@ -1305,7 +1308,7 @@ const Re = /* @__PURE__ */ Ge(Ie), ln = { class: "tags-container" }, sn = /* @__
|
|
|
1305
1308
|
default: h(() => [
|
|
1306
1309
|
p(c, {
|
|
1307
1310
|
index: r(l(t).path),
|
|
1308
|
-
class:
|
|
1311
|
+
class: H({ "submenu-title-noDropdown": !i.isNest })
|
|
1309
1312
|
}, {
|
|
1310
1313
|
default: h(() => [
|
|
1311
1314
|
p(s, {
|
|
@@ -1318,7 +1321,7 @@ const Re = /* @__PURE__ */ Ge(Ie), ln = { class: "tags-container" }, sn = /* @__
|
|
|
1318
1321
|
}, 8, ["index", "class"])
|
|
1319
1322
|
]),
|
|
1320
1323
|
_: 1
|
|
1321
|
-
}, 8, ["to"])) :
|
|
1324
|
+
}, 8, ["to"])) : T("", !0)
|
|
1322
1325
|
], 64)) : (d(), S(u, {
|
|
1323
1326
|
key: 1,
|
|
1324
1327
|
index: r(i.item.path),
|
|
@@ -1330,10 +1333,10 @@ const Re = /* @__PURE__ */ Ge(Ie), ln = { class: "tags-container" }, sn = /* @__
|
|
|
1330
1333
|
icon: i.item.meta && i.item.meta.icon,
|
|
1331
1334
|
title: i.item.meta.title,
|
|
1332
1335
|
name: i.item.name
|
|
1333
|
-
}, null, 8, ["icon", "title", "name"])) :
|
|
1336
|
+
}, null, 8, ["icon", "title", "name"])) : T("", !0)
|
|
1334
1337
|
]),
|
|
1335
1338
|
default: h(() => [
|
|
1336
|
-
(d(!0), x(
|
|
1339
|
+
(d(!0), x(K, null, se(i.item.children, (g) => (d(), S(m, {
|
|
1337
1340
|
key: g.path,
|
|
1338
1341
|
"is-nest": !0,
|
|
1339
1342
|
item: g,
|
|
@@ -1342,10 +1345,10 @@ const Re = /* @__PURE__ */ Ge(Ie), ln = { class: "tags-container" }, sn = /* @__
|
|
|
1342
1345
|
]),
|
|
1343
1346
|
_: 1
|
|
1344
1347
|
}, 8, ["index"]))
|
|
1345
|
-
])) :
|
|
1348
|
+
])) : T("", !0);
|
|
1346
1349
|
};
|
|
1347
1350
|
}
|
|
1348
|
-
}), _n = "_dark_168i3_12",
|
|
1351
|
+
}), _n = "_dark_168i3_12", ae = {
|
|
1349
1352
|
"sidebar-width": "210px",
|
|
1350
1353
|
"navbar-height": "50px",
|
|
1351
1354
|
"menu-background": "var(--menu-background)",
|
|
@@ -1353,7 +1356,7 @@ const Re = /* @__PURE__ */ Ge(Ie), ln = { class: "tags-container" }, sn = /* @__
|
|
|
1353
1356
|
"menu-active-text": "var(--menu-active-text)",
|
|
1354
1357
|
"menu-hover": "var(--menu-hover)",
|
|
1355
1358
|
dark: _n
|
|
1356
|
-
}, De = /* @__PURE__ */
|
|
1359
|
+
}, De = /* @__PURE__ */ D({
|
|
1357
1360
|
__name: "SidebarMenu",
|
|
1358
1361
|
props: {
|
|
1359
1362
|
menuList: {
|
|
@@ -1367,24 +1370,24 @@ const Re = /* @__PURE__ */ Ge(Ie), ln = { class: "tags-container" }, sn = /* @__
|
|
|
1367
1370
|
}
|
|
1368
1371
|
},
|
|
1369
1372
|
setup(i) {
|
|
1370
|
-
const e = te(), t =
|
|
1373
|
+
const e = te(), t = Z(), o = pe(), r = B(() => e.layout), n = i;
|
|
1371
1374
|
function a(s) {
|
|
1372
1375
|
return fe(s) ? s : fe(n.basePath) ? n.basePath : Re.resolve(n.basePath, s);
|
|
1373
1376
|
}
|
|
1374
1377
|
return (s, c) => {
|
|
1375
|
-
const f = pn, m =
|
|
1378
|
+
const f = pn, m = V("el-menu");
|
|
1376
1379
|
return d(), S(m, {
|
|
1377
1380
|
"default-active": l(o).path,
|
|
1378
1381
|
collapse: !l(t).sidebar.opened,
|
|
1379
|
-
"background-color": l(
|
|
1380
|
-
"text-color": l(
|
|
1381
|
-
"active-text-color": l(
|
|
1382
|
+
"background-color": l(ae)["menu-background"],
|
|
1383
|
+
"text-color": l(ae)["menu-text"],
|
|
1384
|
+
"active-text-color": l(ae)["menu-active-text"],
|
|
1382
1385
|
"unique-opened": !1,
|
|
1383
1386
|
"collapse-transition": !1,
|
|
1384
1387
|
mode: l(r) === "top" ? "horizontal" : "vertical"
|
|
1385
1388
|
}, {
|
|
1386
1389
|
default: h(() => [
|
|
1387
|
-
(d(!0), x(
|
|
1390
|
+
(d(!0), x(K, null, se(i.menuList, (u) => (d(), S(f, {
|
|
1388
1391
|
key: u.path,
|
|
1389
1392
|
item: u,
|
|
1390
1393
|
"base-path": a(u.path),
|
|
@@ -1398,10 +1401,10 @@ const Re = /* @__PURE__ */ Ge(Ie), ln = { class: "tags-container" }, sn = /* @__
|
|
|
1398
1401
|
}), vn = { key: 1 }, gn = {
|
|
1399
1402
|
key: 0,
|
|
1400
1403
|
class: "ml-1"
|
|
1401
|
-
}, hn = /* @__PURE__ */
|
|
1404
|
+
}, hn = /* @__PURE__ */ D({
|
|
1402
1405
|
__name: "SidebarMixTopMenu",
|
|
1403
1406
|
setup(i) {
|
|
1404
|
-
const e =
|
|
1407
|
+
const e = Z(), t = me(), o = ke(), r = B(() => e.activeTopMenuPath), n = U([]), a = (c) => {
|
|
1405
1408
|
e.activeTopMenu(c), t.setMixLeftMenus(c);
|
|
1406
1409
|
const f = t.mixLeftMenus;
|
|
1407
1410
|
s(f);
|
|
@@ -1417,29 +1420,29 @@ const Re = /* @__PURE__ */ Ge(Ie), ln = { class: "tags-container" }, sn = /* @__
|
|
|
1417
1420
|
(c) => !c.meta || !c.meta.hidden
|
|
1418
1421
|
);
|
|
1419
1422
|
}), (c, f) => {
|
|
1420
|
-
const m =
|
|
1423
|
+
const m = le, u = V("el-menu-item"), _ = V("el-menu"), g = V("el-scrollbar");
|
|
1421
1424
|
return d(), S(g, null, {
|
|
1422
1425
|
default: h(() => [
|
|
1423
1426
|
p(_, {
|
|
1424
1427
|
mode: "horizontal",
|
|
1425
1428
|
"default-active": l(r),
|
|
1426
|
-
"background-color": l(
|
|
1427
|
-
"text-color": l(
|
|
1428
|
-
"active-text-color": l(
|
|
1429
|
+
"background-color": l(ae)["menu-background"],
|
|
1430
|
+
"text-color": l(ae)["menu-text"],
|
|
1431
|
+
"active-text-color": l(ae)["menu-active-text"],
|
|
1429
1432
|
onSelect: a
|
|
1430
1433
|
}, {
|
|
1431
1434
|
default: h(() => [
|
|
1432
|
-
(d(!0), x(
|
|
1433
|
-
key:
|
|
1434
|
-
index:
|
|
1435
|
+
(d(!0), x(K, null, se(l(n), (y) => (d(), S(u, {
|
|
1436
|
+
key: y.path,
|
|
1437
|
+
index: y.path
|
|
1435
1438
|
}, {
|
|
1436
1439
|
title: h(() => [
|
|
1437
|
-
|
|
1440
|
+
y.meta && y.meta.icon ? (d(), S(m, {
|
|
1438
1441
|
key: 0,
|
|
1439
|
-
"icon-class":
|
|
1440
|
-
}, null, 8, ["icon-class"])) :
|
|
1441
|
-
|
|
1442
|
-
|
|
1442
|
+
"icon-class": y.meta.icon
|
|
1443
|
+
}, null, 8, ["icon-class"])) : T("", !0),
|
|
1444
|
+
y.path === "/" ? (d(), x("span", vn, E(l(ge)("Dashboard", "首页")), 1)) : (d(), x(K, { key: 2 }, [
|
|
1445
|
+
y.meta && y.meta.title ? (d(), x("span", gn, E(l(xe)(y)), 1)) : T("", !0)
|
|
1443
1446
|
], 64))
|
|
1444
1447
|
]),
|
|
1445
1448
|
_: 2
|
|
@@ -1452,7 +1455,7 @@ const Re = /* @__PURE__ */ Ge(Ie), ln = { class: "tags-container" }, sn = /* @__
|
|
|
1452
1455
|
});
|
|
1453
1456
|
};
|
|
1454
1457
|
}
|
|
1455
|
-
}), bn = { class: "logo-container" }, xn = ["src"], wn = ["src"], yn = { class: "logo-title" }, kn = /* @__PURE__ */
|
|
1458
|
+
}), bn = { class: "logo-container" }, xn = ["src"], wn = ["src"], yn = { class: "logo-title" }, kn = /* @__PURE__ */ D({
|
|
1456
1459
|
__name: "SidebarLogo",
|
|
1457
1460
|
props: {
|
|
1458
1461
|
collapse: {
|
|
@@ -1463,7 +1466,7 @@ const Re = /* @__PURE__ */ Ge(Ie), ln = { class: "tags-container" }, sn = /* @__
|
|
|
1463
1466
|
setup(i) {
|
|
1464
1467
|
const e = te(), t = de.logo;
|
|
1465
1468
|
return (o, r) => {
|
|
1466
|
-
const n =
|
|
1469
|
+
const n = V("router-link");
|
|
1467
1470
|
return d(), x("div", bn, [
|
|
1468
1471
|
p(Me, { "enter-active-class": "animate__animated animate__fadeInLeft" }, {
|
|
1469
1472
|
default: h(() => [
|
|
@@ -1477,7 +1480,7 @@ const Re = /* @__PURE__ */ Ge(Ie), ln = { class: "tags-container" }, sn = /* @__
|
|
|
1477
1480
|
key: 0,
|
|
1478
1481
|
src: l(t),
|
|
1479
1482
|
class: "logo-image"
|
|
1480
|
-
}, null, 8, xn)) :
|
|
1483
|
+
}, null, 8, xn)) : T("", !0)
|
|
1481
1484
|
]),
|
|
1482
1485
|
_: 1
|
|
1483
1486
|
})) : (d(), S(n, {
|
|
@@ -1490,8 +1493,8 @@ const Re = /* @__PURE__ */ Ge(Ie), ln = { class: "tags-container" }, sn = /* @__
|
|
|
1490
1493
|
key: 0,
|
|
1491
1494
|
src: l(t),
|
|
1492
1495
|
class: "logo-image"
|
|
1493
|
-
}, null, 8, wn)) :
|
|
1494
|
-
k("span", yn,
|
|
1496
|
+
}, null, 8, wn)) : T("", !0),
|
|
1497
|
+
k("span", yn, E(l(de).title), 1)
|
|
1495
1498
|
]),
|
|
1496
1499
|
_: 1
|
|
1497
1500
|
}))
|
|
@@ -1504,27 +1507,27 @@ const Re = /* @__PURE__ */ Ge(Ie), ln = { class: "tags-container" }, sn = /* @__
|
|
|
1504
1507
|
}), Sn = /* @__PURE__ */ q(kn, [["__scopeId", "data-v-210c85a9"]]), Cn = {
|
|
1505
1508
|
key: 0,
|
|
1506
1509
|
class: "flex w-full"
|
|
1507
|
-
}, Vn = /* @__PURE__ */
|
|
1510
|
+
}, Vn = /* @__PURE__ */ D({
|
|
1508
1511
|
__name: "index",
|
|
1509
1512
|
setup(i) {
|
|
1510
|
-
const e =
|
|
1513
|
+
const e = Z(), t = te(), o = me(), r = B(() => t.sidebarLogo), n = B(() => t.layout);
|
|
1511
1514
|
return (a, s) => {
|
|
1512
|
-
const c = Sn, f = hn, m = Le, u = De, _ =
|
|
1515
|
+
const c = Sn, f = hn, m = Le, u = De, _ = V("el-scrollbar");
|
|
1513
1516
|
return d(), x("div", {
|
|
1514
|
-
class:
|
|
1517
|
+
class: H({ "has-logo": l(r) })
|
|
1515
1518
|
}, [
|
|
1516
1519
|
l(n) == "mix" ? (d(), x("div", Cn, [
|
|
1517
1520
|
l(r) ? (d(), S(c, {
|
|
1518
1521
|
key: 0,
|
|
1519
1522
|
collapse: !l(e).sidebar.opened
|
|
1520
|
-
}, null, 8, ["collapse"])) :
|
|
1523
|
+
}, null, 8, ["collapse"])) : T("", !0),
|
|
1521
1524
|
p(f, { class: "flex-1" }),
|
|
1522
1525
|
p(m)
|
|
1523
|
-
])) : (d(), x(
|
|
1526
|
+
])) : (d(), x(K, { key: 1 }, [
|
|
1524
1527
|
l(r) ? (d(), S(c, {
|
|
1525
1528
|
key: 0,
|
|
1526
1529
|
collapse: !l(e).sidebar.opened
|
|
1527
|
-
}, null, 8, ["collapse"])) :
|
|
1530
|
+
}, null, 8, ["collapse"])) : T("", !0),
|
|
1528
1531
|
p(_, null, {
|
|
1529
1532
|
default: h(() => [
|
|
1530
1533
|
p(u, {
|
|
@@ -1534,7 +1537,7 @@ const Re = /* @__PURE__ */ Ge(Ie), ln = { class: "tags-container" }, sn = /* @__
|
|
|
1534
1537
|
]),
|
|
1535
1538
|
_: 1
|
|
1536
1539
|
}),
|
|
1537
|
-
l(n) === "top" ? (d(), S(m, { key: 1 })) :
|
|
1540
|
+
l(n) === "top" ? (d(), S(m, { key: 1 })) : T("", !0)
|
|
1538
1541
|
], 64))
|
|
1539
1542
|
], 2);
|
|
1540
1543
|
};
|
|
@@ -1542,11 +1545,11 @@ const Re = /* @__PURE__ */ Ge(Ie), ln = { class: "tags-container" }, sn = /* @__
|
|
|
1542
1545
|
}), Tn = /* @__PURE__ */ q(Vn, [["__scopeId", "data-v-a6d3f8e9"]]), $n = {
|
|
1543
1546
|
key: 1,
|
|
1544
1547
|
class: "mix-container"
|
|
1545
|
-
}, An = { class: "mix-container__left" }, Mn = { class: "sidebar-toggle" }, En = 992, Ln = /* @__PURE__ */
|
|
1548
|
+
}, An = { class: "mix-container__left" }, Mn = { class: "sidebar-toggle" }, En = 992, Ln = /* @__PURE__ */ D({
|
|
1546
1549
|
__name: "index",
|
|
1547
1550
|
setup(i) {
|
|
1548
|
-
const e =
|
|
1549
|
-
|
|
1551
|
+
const e = Z(), t = te(), o = me(), r = B(() => t.fixedHeader), n = B(() => t.tagsView), a = B(() => t.layout), s = B(() => e.activeTopMenuPath), c = B(() => o.mixLeftMenus);
|
|
1552
|
+
oe(
|
|
1550
1553
|
() => s.value,
|
|
1551
1554
|
(g) => {
|
|
1552
1555
|
o.setMixLeftMenus(g);
|
|
@@ -1556,7 +1559,7 @@ const Re = /* @__PURE__ */ Ge(Ie), ln = { class: "tags-container" }, sn = /* @__
|
|
|
1556
1559
|
immediate: !0
|
|
1557
1560
|
}
|
|
1558
1561
|
);
|
|
1559
|
-
const f =
|
|
1562
|
+
const f = B(() => ({
|
|
1560
1563
|
hideSidebar: !e.sidebar.opened,
|
|
1561
1564
|
openSidebar: e.sidebar.opened,
|
|
1562
1565
|
mobile: e.device === _e.MOBILE,
|
|
@@ -1573,53 +1576,53 @@ const Re = /* @__PURE__ */ Ge(Ie), ln = { class: "tags-container" }, sn = /* @__
|
|
|
1573
1576
|
function _() {
|
|
1574
1577
|
e.toggleSidebar();
|
|
1575
1578
|
}
|
|
1576
|
-
return (g,
|
|
1577
|
-
const
|
|
1579
|
+
return (g, y) => {
|
|
1580
|
+
const A = Tn, $ = De, C = Pe, L = rn, w = en, Y = Jt, ee = Pt;
|
|
1578
1581
|
return d(), x("div", {
|
|
1579
|
-
class:
|
|
1582
|
+
class: H(["wh-full", l(f)])
|
|
1580
1583
|
}, [
|
|
1581
1584
|
l(f).mobile && l(f).openSidebar ? (d(), x("div", {
|
|
1582
1585
|
key: 0,
|
|
1583
1586
|
class: "wh-full fixed-lt z-999 bg-black bg-opacity-30",
|
|
1584
1587
|
onClick: u
|
|
1585
|
-
})) :
|
|
1586
|
-
p(
|
|
1588
|
+
})) : T("", !0),
|
|
1589
|
+
p(A, { class: "sidebar-container" }),
|
|
1587
1590
|
l(a) === "mix" ? (d(), x("div", $n, [
|
|
1588
1591
|
k("div", An, [
|
|
1589
|
-
p(
|
|
1592
|
+
p($, {
|
|
1590
1593
|
"menu-list": l(c),
|
|
1591
1594
|
"base-path": l(s)
|
|
1592
1595
|
}, null, 8, ["menu-list", "base-path"]),
|
|
1593
1596
|
k("div", Mn, [
|
|
1594
|
-
p(
|
|
1597
|
+
p(C, {
|
|
1595
1598
|
"is-active": l(e).sidebar.opened,
|
|
1596
1599
|
onToggleClick: _
|
|
1597
1600
|
}, null, 8, ["is-active"])
|
|
1598
1601
|
])
|
|
1599
1602
|
]),
|
|
1600
1603
|
k("div", {
|
|
1601
|
-
class:
|
|
1604
|
+
class: H([{ hasTagsView: l(n) }, "main-container"])
|
|
1602
1605
|
}, [
|
|
1603
1606
|
k("div", {
|
|
1604
|
-
class:
|
|
1607
|
+
class: H({ "fixed-header": l(r) })
|
|
1605
1608
|
}, [
|
|
1606
|
-
l(n) ? (d(), S(
|
|
1609
|
+
l(n) ? (d(), S(L, { key: 0 })) : T("", !0)
|
|
1607
1610
|
], 2),
|
|
1608
|
-
p(
|
|
1609
|
-
l(de).showSettings ? (d(), S(Y, { key: 0 })) :
|
|
1611
|
+
p(w),
|
|
1612
|
+
l(de).showSettings ? (d(), S(Y, { key: 0 })) : T("", !0)
|
|
1610
1613
|
], 2)
|
|
1611
1614
|
])) : (d(), x("div", {
|
|
1612
1615
|
key: 2,
|
|
1613
|
-
class:
|
|
1616
|
+
class: H([{ hasTagsView: l(n) }, "main-container"])
|
|
1614
1617
|
}, [
|
|
1615
1618
|
k("div", {
|
|
1616
|
-
class:
|
|
1619
|
+
class: H({ "fixed-header": l(r) })
|
|
1617
1620
|
}, [
|
|
1618
|
-
l(a) === "left" ? (d(), S(
|
|
1619
|
-
l(n) ? (d(), S(
|
|
1621
|
+
l(a) === "left" ? (d(), S(ee, { key: 0 })) : T("", !0),
|
|
1622
|
+
l(n) ? (d(), S(L, { key: 1 })) : T("", !0)
|
|
1620
1623
|
], 2),
|
|
1621
|
-
p(
|
|
1622
|
-
l(de).showSettings ? (d(), S(Y, { key: 0 })) :
|
|
1624
|
+
p(w),
|
|
1625
|
+
l(de).showSettings ? (d(), S(Y, { key: 0 })) : T("", !0)
|
|
1623
1626
|
], 2))
|
|
1624
1627
|
], 2);
|
|
1625
1628
|
};
|