xto-fronted 0.9.3 → 0.9.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.
@@ -1,11 +1,11 @@
1
- import { y as T, z as st, A as Me, B as rt, C as it, D as ct, E as ut, F as Te, p as yt, G as dt, H as bt, j as ot, n as wt, I as kt, J as at, K as xt, L as Ct, M as $t, h as Lt, N as Mt } from "./user-B0q24FmO.js";
2
- import { ref as y, computed as k, watch as Le, defineComponent as ce, resolveComponent as mt, openBlock as o, createBlock as A, unref as n, withCtx as S, createElementBlock as c, Fragment as j, renderList as J, createElementVNode as e, toDisplayString as x, createCommentVNode as z, normalizeClass as Z, withDirectives as De, vShow as St, createVNode as w, createTextVNode as Ce, onMounted as qe, onUnmounted as He, vModelText as Ye, Transition as Se, withModifiers as Ae, normalizeStyle as Ue, reactive as Ge, createStaticVNode as Fe, withKeys as Nt, h as Et } from "vue";
1
+ import { y as T, z as st, A as Me, B as rt, C as it, D as ct, E as ut, F as Te, p as yt, G as dt, H as bt, j as ot, n as kt, I as wt, J as nt, K as xt, L as Ct, M as Lt, h as $t, N as Mt } from "./user-B0q24FmO.js";
2
+ import { ref as g, computed as w, watch as $e, defineComponent as ce, resolveComponent as mt, openBlock as o, createBlock as A, unref as n, withCtx as S, createElementBlock as u, Fragment as j, renderList as Z, createTextVNode as _e, toDisplayString as x, normalizeClass as H, createElementVNode as e, withDirectives as De, vShow as St, createCommentVNode as z, createVNode as k, onMounted as qe, onUnmounted as He, vModelText as Ye, Transition as Se, withModifiers as Ae, normalizeStyle as Ue, reactive as Ge, createStaticVNode as Fe, withKeys as It, h as Et } from "vue";
3
3
  import { defineStore as Pe } from "pinia";
4
- import { useRoute as Ee, useRouter as be, createRouter as Xe, createWebHistory as Je } from "vue-router";
5
- import { SubMenu as We, MenuItem as Ie, Menu as Ze, Tabs as It, TabPane as Ut } from "@xto/navigation";
6
- import { Icon as U, Button as Ne } from "@xto/base";
4
+ import { useRoute as Ee, useRouter as ke, createRouter as Xe, createWebHistory as Je } from "vue-router";
5
+ import { SubMenu as We, MenuItem as Ne, Menu as Ze, Tabs as Nt, TabPane as Ut } from "@xto/navigation";
6
+ import { Icon as U, Button as Ie } from "@xto/base";
7
7
  import { Drawer as Qe, Message as Tt } from "@xto/feedback";
8
- import { Form as Pt, FormItem as Be, Input as nt, Checkbox as zt } from "@xto/form";
8
+ import { Form as Pt, FormItem as Be, Input as at, Checkbox as zt } from "@xto/form";
9
9
  import { createLocaleProvider as Ft, getSupportedLocales as Dt, useLocale as At } from "@xto/core/locale";
10
10
  function Bt(t) {
11
11
  const a = /^#?([0-9a-f]{6})$/i.exec(t.trim());
@@ -13,104 +13,104 @@ function Bt(t) {
13
13
  const p = parseInt(a[1], 16);
14
14
  return [p >> 16 & 255, p >> 8 & 255, p & 255];
15
15
  }
16
- function $e(t) {
16
+ function Le(t) {
17
17
  const a = T.get(t);
18
18
  return a === null || a === "" ? void 0 : a;
19
19
  }
20
- const Vt = ["layout", "primaryColor", "theme", "isDark", "showTabs", "showBreadcrumb", "showFooter"], _e = Pe("app", () => {
21
- const t = st(), a = t.features || {}, p = y(T.get("appName") || "XTO App"), l = y(T.get("indexPath") || "/dashboard"), s = y(T.get("loginPath") || "/login"), d = y(t.theme ?? $e("theme") ?? "light"), i = y(d.value === "dark"), h = y(t.layout ?? $e("layout") ?? "sidebar"), m = y(T.get("isCollapsed") || !1), f = y(a.showTabs ?? $e("showTabs") ?? !0), _ = y(a.showFooter ?? $e("showFooter") ?? !0), g = y(a.showBreadcrumb ?? $e("showBreadcrumb") ?? !0), u = y(t.primaryColor ?? $e("primaryColor") ?? "#4F46E5"), W = y(t.allowUserOverride !== !1), P = y([]), B = y([]), V = k(() => i.value ? "dark" : "light"), R = (M) => {
20
+ const Vt = ["layout", "primaryColor", "theme", "isDark", "showTabs", "showBreadcrumb", "showFooter"], fe = Pe("app", () => {
21
+ const t = st(), a = t.features || {}, p = g(T.get("appName") || "XTO App"), l = g(T.get("indexPath") || "/dashboard"), s = g(T.get("loginPath") || "/login"), d = g(t.theme ?? Le("theme") ?? "light"), i = g(d.value === "dark"), h = g(t.layout ?? Le("layout") ?? "sidebar"), _ = g(T.get("isCollapsed") || !1), m = g(a.showTabs ?? Le("showTabs") ?? !0), f = g(a.showFooter ?? Le("showFooter") ?? !0), y = g(a.showBreadcrumb ?? Le("showBreadcrumb") ?? !0), c = g(t.primaryColor ?? Le("primaryColor") ?? "#4F46E5"), W = g(t.allowUserOverride !== !1), P = g([]), B = g([]), V = w(() => i.value ? "dark" : "light"), R = (M) => {
22
22
  p.value = M, T.set("appName", M);
23
- }, H = (M) => {
23
+ }, Y = (M) => {
24
24
  l.value = M, T.set("indexPath", M);
25
25
  }, Q = (M) => {
26
26
  s.value = M, T.set("loginPath", M);
27
- }, G = () => {
27
+ }, X = () => {
28
28
  const M = document.documentElement;
29
29
  i.value ? M.classList.add("dark") : M.classList.remove("dark");
30
30
  }, ee = () => {
31
31
  i.value = !i.value, d.value = i.value ? "dark" : "light", te();
32
- }, Y = (M) => {
32
+ }, G = (M) => {
33
33
  d.value = M, i.value = M === "dark", te();
34
34
  }, te = () => {
35
- G(), T.set("isDark", i.value), T.set("theme", d.value);
35
+ X(), T.set("isDark", i.value), T.set("theme", d.value);
36
36
  }, D = () => {
37
- m.value = !m.value, T.set("isCollapsed", m.value);
37
+ _.value = !_.value, T.set("isCollapsed", _.value);
38
38
  }, E = (M) => {
39
39
  h.value = M, T.set("layout", M);
40
40
  }, F = () => {
41
- f.value = !f.value, T.set("showTabs", f.value);
42
- }, X = () => {
43
- _.value = !_.value, T.set("showFooter", _.value);
41
+ m.value = !m.value, T.set("showTabs", m.value);
42
+ }, J = () => {
43
+ f.value = !f.value, T.set("showFooter", f.value);
44
44
  }, K = () => {
45
- g.value = !g.value, T.set("showBreadcrumb", g.value);
45
+ y.value = !y.value, T.set("showBreadcrumb", y.value);
46
46
  }, oe = (M) => {
47
47
  const q = document.documentElement;
48
48
  q.style.setProperty("--xto-color-primary", M);
49
49
  const pe = Bt(M);
50
50
  if (pe) {
51
- const ve = (ne, ke) => {
52
- const ye = ke ? [255, 255, 255] : [0, 0, 0];
53
- return `#${pe.map((I, b) => Math.round(I + (ye[b] - I) * ne)).map((I) => I.toString(16).padStart(2, "0")).join("")}`;
51
+ const ve = (ae, xe) => {
52
+ const be = xe ? [255, 255, 255] : [0, 0, 0];
53
+ return `#${pe.map((N, b) => Math.round(N + (be[b] - N) * ae)).map((N) => N.toString(16).padStart(2, "0")).join("")}`;
54
54
  };
55
- for (let ne = 1; ne <= 9; ne++)
56
- q.style.setProperty(`--xto-color-primary-light-${ne}`, ve(ne * 0.1, !0));
55
+ for (let ae = 1; ae <= 9; ae++)
56
+ q.style.setProperty(`--xto-color-primary-light-${ae}`, ve(ae * 0.1, !0));
57
57
  q.style.setProperty("--xto-color-primary-dark-1", ve(0.12, !1)), q.style.setProperty("--xto-color-primary-dark-2", ve(0.28, !1)), q.style.setProperty("--xto-color-primary-dark-3", ve(0.45, !1)), q.style.setProperty("--xto-color-ring", M);
58
58
  }
59
59
  }, he = (M) => {
60
- u.value = M, oe(M), T.set("primaryColor", M);
60
+ c.value = M, oe(M), T.set("primaryColor", M);
61
61
  }, we = () => {
62
62
  Vt.forEach((pe) => T.remove(pe));
63
63
  const M = st(), q = M.features || {};
64
- h.value = M.layout ?? "sidebar", u.value = M.primaryColor ?? "#4F46E5", d.value = M.theme ?? "light", i.value = d.value === "dark", f.value = q.showTabs ?? !0, _.value = q.showFooter ?? !0, g.value = q.showBreadcrumb ?? !0, G(), oe(u.value);
64
+ h.value = M.layout ?? "sidebar", c.value = M.primaryColor ?? "#4F46E5", d.value = M.theme ?? "light", i.value = d.value === "dark", m.value = q.showTabs ?? !0, f.value = q.showFooter ?? !0, y.value = q.showBreadcrumb ?? !0, X(), oe(c.value);
65
65
  }, re = (M) => {
66
66
  P.value.includes(M) || P.value.push(M);
67
67
  }, me = (M) => {
68
68
  const q = P.value.indexOf(M);
69
69
  q > -1 && P.value.splice(q, 1);
70
- }, ge = () => {
70
+ }, ye = () => {
71
71
  P.value = [];
72
72
  }, ie = (M) => {
73
73
  B.value = M;
74
- }, ae = () => {
75
- G(), oe(u.value);
74
+ }, ne = () => {
75
+ X(), oe(c.value);
76
76
  };
77
- return Le(i, G), {
77
+ return $e(i, X), {
78
78
  appName: p,
79
79
  indexPath: l,
80
80
  loginPath: s,
81
81
  isDark: i,
82
82
  theme: d,
83
83
  layout: h,
84
- isCollapsed: m,
85
- showTabs: f,
86
- showFooter: _,
87
- showBreadcrumb: g,
88
- primaryColor: u,
84
+ isCollapsed: _,
85
+ showTabs: m,
86
+ showFooter: f,
87
+ showBreadcrumb: y,
88
+ primaryColor: c,
89
89
  allowUserOverride: W,
90
90
  cachedViews: P,
91
91
  mixSubMenus: B,
92
92
  themeClass: V,
93
93
  setAppName: R,
94
- setIndexPath: H,
94
+ setIndexPath: Y,
95
95
  setLoginPath: Q,
96
96
  toggleTheme: ee,
97
97
  toggleCollapse: D,
98
- setTheme: Y,
98
+ setTheme: G,
99
99
  setLayout: E,
100
100
  toggleTabs: F,
101
- toggleFooter: X,
101
+ toggleFooter: J,
102
102
  toggleBreadcrumb: K,
103
103
  setPrimaryColor: he,
104
104
  resetToServerDefaults: we,
105
105
  addCachedView: re,
106
106
  removeCachedView: me,
107
- clearCachedViews: ge,
107
+ clearCachedViews: ye,
108
108
  setMixSubMenus: ie,
109
- initTheme: ae
109
+ initTheme: ne
110
110
  };
111
111
  }), Ot = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
112
112
  __proto__: null,
113
- useAppStore: _e
113
+ useAppStore: fe
114
114
  }, Symbol.toStringTag, { value: "Module" })), Rt = "menu_list", Kt = "permission_list", Ve = () => `${Rt}_${Me()}`, Oe = () => `${Kt}_${Me()}`, jt = {
115
115
  menuCode: "home",
116
116
  menuName: "首页",
@@ -135,8 +135,8 @@ function Wt(t) {
135
135
  }
136
136
  return p(t), a;
137
137
  }
138
- const fe = Pe("menu", () => {
139
- const t = y(T.get(Ve()) || []), a = y(T.get(Oe()) || []), p = k(() => t.value.length > 0);
138
+ const ge = Pe("menu", () => {
139
+ const t = g(T.get(Ve()) || []), a = g(T.get(Oe()) || []), p = w(() => t.value.length > 0);
140
140
  return {
141
141
  menuList: t,
142
142
  permissions: a,
@@ -152,30 +152,30 @@ const fe = Pe("menu", () => {
152
152
  hasPermission: (i) => Array.isArray(i) ? i.some((h) => a.value.includes(h)) : a.value.includes(i)
153
153
  };
154
154
  }), Re = "user_info", ue = Pe("user", () => {
155
- const t = y(T.get(Re)), a = k(() => !!t.value), p = k(() => {
156
- var u;
157
- return ((u = t.value) == null ? void 0 : u.userId) || "";
158
- }), l = k(() => {
159
- var u;
160
- return ((u = t.value) == null ? void 0 : u.userName) || "";
161
- }), s = k(() => {
162
- var u;
163
- return ((u = t.value) == null ? void 0 : u.departmentName) || "";
164
- }), d = k(() => {
165
- var u;
166
- return ((u = t.value) == null ? void 0 : u.roleName) || "";
167
- }), i = k(() => {
168
- var u;
169
- return ((u = t.value) == null ? void 0 : u.email) || "";
170
- }), h = k(() => {
171
- var u;
172
- return ((u = t.value) == null ? void 0 : u.mobilePhone) || "";
173
- }), m = k(() => {
174
- var u;
175
- return ((u = t.value) == null ? void 0 : u.positionName) || "";
176
- }), f = k(() => {
177
- var u;
178
- return ((u = t.value) == null ? void 0 : u.avatar) || "";
155
+ const t = g(T.get(Re)), a = w(() => !!t.value), p = w(() => {
156
+ var c;
157
+ return ((c = t.value) == null ? void 0 : c.userId) || "";
158
+ }), l = w(() => {
159
+ var c;
160
+ return ((c = t.value) == null ? void 0 : c.userName) || "";
161
+ }), s = w(() => {
162
+ var c;
163
+ return ((c = t.value) == null ? void 0 : c.departmentName) || "";
164
+ }), d = w(() => {
165
+ var c;
166
+ return ((c = t.value) == null ? void 0 : c.roleName) || "";
167
+ }), i = w(() => {
168
+ var c;
169
+ return ((c = t.value) == null ? void 0 : c.email) || "";
170
+ }), h = w(() => {
171
+ var c;
172
+ return ((c = t.value) == null ? void 0 : c.mobilePhone) || "";
173
+ }), _ = w(() => {
174
+ var c;
175
+ return ((c = t.value) == null ? void 0 : c.positionName) || "";
176
+ }), m = w(() => {
177
+ var c;
178
+ return ((c = t.value) == null ? void 0 : c.avatar) || "";
179
179
  });
180
180
  return {
181
181
  userInfo: t,
@@ -186,17 +186,17 @@ const fe = Pe("menu", () => {
186
186
  roleName: d,
187
187
  email: i,
188
188
  mobilePhone: h,
189
- positionName: m,
190
- avatar: f,
191
- setUserInfo: (u) => {
192
- t.value = u, T.set(Re, u);
189
+ positionName: _,
190
+ avatar: m,
191
+ setUserInfo: (c) => {
192
+ t.value = c, T.set(Re, c);
193
193
  },
194
194
  clearUserInfo: () => {
195
195
  t.value = null, T.remove(Re);
196
196
  }
197
197
  };
198
198
  }), ze = Pe("auth", () => {
199
- const t = y(rt()), a = k(() => it()), p = y(""), l = y(""), s = y(""), d = y("/login");
199
+ const t = g(rt()), a = w(() => it()), p = g(""), l = g(""), s = g(""), d = g("/login");
200
200
  return {
201
201
  token: t,
202
202
  isLoggedIn: a,
@@ -204,35 +204,32 @@ const fe = Pe("menu", () => {
204
204
  appId: l,
205
205
  clientId: s,
206
206
  loginPath: d,
207
- login: (u) => {
208
- t.value = u.access_token, ut(u);
207
+ login: (c) => {
208
+ t.value = c.access_token, ut(c);
209
209
  },
210
210
  logout: () => {
211
211
  t.value = null, ct();
212
212
  },
213
- setBaseUrl: (u) => {
214
- p.value = u;
213
+ setBaseUrl: (c) => {
214
+ p.value = c;
215
215
  },
216
- setAppId: (u) => {
217
- l.value = u;
216
+ setAppId: (c) => {
217
+ l.value = c;
218
218
  },
219
- setClientId: (u) => {
220
- s.value = u;
219
+ setClientId: (c) => {
220
+ s.value = c;
221
221
  },
222
- setLoginPath: (u) => {
223
- d.value = u;
222
+ setLoginPath: (c) => {
223
+ d.value = c;
224
224
  }
225
225
  };
226
- }), qt = { class: "menu-item__content" }, Ht = { class: "menu-item__icon" }, Yt = {
226
+ }), qt = {
227
227
  key: 1,
228
228
  class: "menu-item__char"
229
- }, Gt = { class: "menu-item__text" }, Xt = { class: "menu-item__content" }, Jt = {
230
- key: 0,
231
- class: "menu-item__icon"
232
- }, Zt = {
229
+ }, Ht = {
233
230
  key: 1,
234
231
  class: "menu-item__char"
235
- }, Qt = { class: "menu-item__text" }, es = /* @__PURE__ */ ce({
232
+ }, Yt = /* @__PURE__ */ ce({
236
233
  __name: "SidebarMenuItem",
237
234
  props: {
238
235
  menu: {}
@@ -340,10 +337,65 @@ const fe = Pe("menu", () => {
340
337
  "sun",
341
338
  "theme",
342
339
  "skin"
343
- ]), l = (m) => {
340
+ ]), l = {
341
+ "el-icon-s-platform": "system",
342
+ "el-icon-platform": "system",
343
+ "el-icon-s-data": "database",
344
+ "el-icon-data-analysis": "chart",
345
+ "el-icon-files": "folder",
346
+ "el-icon-folder": "folder",
347
+ "el-icon-folder-opened": "folder-open",
348
+ "el-icon-s-custom": "user",
349
+ "el-icon-user": "user",
350
+ "el-icon-s-grid": "grid",
351
+ "el-icon-menu": "list",
352
+ "el-icon-setting": "setting",
353
+ "el-icon-s-tools": "setting",
354
+ "el-icon-s-operation": "setting",
355
+ "el-icon-s-home": "home",
356
+ "el-icon-house": "home",
357
+ "el-icon-document": "document",
358
+ "el-icon-document-copy": "copy",
359
+ "el-icon-monitor": "dashboard",
360
+ "el-icon-odometer": "dashboard",
361
+ "el-icon-s-order": "list",
362
+ "el-icon-s-check": "check",
363
+ "el-icon-s-claim": "file",
364
+ "el-icon-s-comment": "message",
365
+ "el-icon-s-promotion": "share",
366
+ "el-icon-s-marketing": "chart",
367
+ "el-icon-s-finance": "chart",
368
+ "el-icon-s-management": "list",
369
+ "el-icon-s-cooperation": "user-group",
370
+ "el-icon-s-shop": "gift",
371
+ "el-icon-picture": "image",
372
+ "el-icon-location": "location",
373
+ "el-icon-map-location": "map",
374
+ "el-icon-lock": "lock",
375
+ "el-icon-unlock": "unlock",
376
+ "el-icon-key": "key",
377
+ "el-icon-bell": "bell",
378
+ "el-icon-edit": "edit",
379
+ "el-icon-delete": "delete",
380
+ "el-icon-link": "link",
381
+ "el-icon-connection": "link",
382
+ "el-icon-upload": "upload",
383
+ "el-icon-upload2": "upload",
384
+ "el-icon-download": "download",
385
+ "el-icon-search": "search",
386
+ "el-icon-timer": "clock",
387
+ "el-icon-time": "clock",
388
+ "el-icon-calendar": "calendar",
389
+ "el-icon-view": "eye",
390
+ "el-icon-message": "mail",
391
+ "el-icon-chat-dot-round": "chat",
392
+ "el-icon-cpu": "server",
393
+ "el-icon-cloudy": "cloud"
394
+ }, s = (m) => {
344
395
  if (!m || m === "") return "";
396
+ if (l[m]) return l[m];
345
397
  if (m.startsWith("tineco-icon-")) {
346
- const _ = m.replace("tineco-icon-", "");
398
+ const y = m.replace("tineco-icon-", "");
347
399
  return {
348
400
  home: "home",
349
401
  dashboard: "dashboard",
@@ -357,7 +409,7 @@ const fe = Pe("menu", () => {
357
409
  chart: "chart",
358
410
  report: "report",
359
411
  analytics: "analytics"
360
- }[_] || _;
412
+ }[y] || y;
361
413
  }
362
414
  return {
363
415
  dashboard: "dashboard",
@@ -377,47 +429,43 @@ const fe = Pe("menu", () => {
377
429
  list: "list",
378
430
  grid: "grid"
379
431
  }[m] || m;
380
- }, s = (m) => m ? m.charAt(0) : "", d = (m) => p.has(m), i = k(() => a.menu.menuId || a.menu.menuCode || a.menu.menuUrl || ""), h = k(() => a.menu.children && a.menu.children.length > 0);
432
+ }, d = (m) => m ? m.charAt(0) : "", i = (m) => p.has(m), h = w(() => a.menu.menuId || a.menu.menuCode || a.menu.menuUrl || ""), _ = w(() => a.menu.children && a.menu.children.length > 0);
381
433
  return (m, f) => {
382
- const _ = mt("SidebarMenuItem", !0);
383
- return h.value ? (o(), A(n(We), {
434
+ const y = mt("SidebarMenuItem", !0);
435
+ return _.value ? (o(), A(n(We), {
384
436
  key: 0,
385
- index: i.value
437
+ index: h.value
386
438
  }, {
439
+ icon: S(() => [
440
+ i(s(t.menu.icon)) ? (o(), A(n(U), {
441
+ key: 0,
442
+ name: s(t.menu.icon),
443
+ size: 16
444
+ }, null, 8, ["name"])) : (o(), u("span", qt, x(d(t.menu.menuName)), 1))
445
+ ]),
387
446
  title: S(() => [
388
- e("span", qt, [
389
- e("span", Ht, [
390
- d(l(t.menu.icon)) ? (o(), A(n(U), {
391
- key: 0,
392
- name: l(t.menu.icon),
393
- size: 16
394
- }, null, 8, ["name"])) : (o(), c("span", Yt, x(s(t.menu.menuName)), 1))
395
- ]),
396
- e("span", Gt, x(t.menu.menuName), 1)
397
- ])
447
+ _e(x(t.menu.menuName), 1)
398
448
  ]),
399
449
  default: S(() => [
400
- (o(!0), c(j, null, J(t.menu.children, (g) => (o(), A(_, {
401
- key: g.menuId || g.menuCode || g.menuUrl,
402
- menu: g
450
+ (o(!0), u(j, null, Z(t.menu.children, (c) => (o(), A(y, {
451
+ key: c.menuId || c.menuCode || c.menuUrl,
452
+ menu: c
403
453
  }, null, 8, ["menu"]))), 128))
404
454
  ]),
405
455
  _: 1
406
- }, 8, ["index"])) : (o(), A(n(Ie), {
456
+ }, 8, ["index"])) : (o(), A(n(Ne), {
407
457
  key: 1,
408
- index: t.menu.menuUrl || i.value
458
+ index: t.menu.menuUrl || h.value
409
459
  }, {
460
+ icon: S(() => [
461
+ i(s(t.menu.icon)) ? (o(), A(n(U), {
462
+ key: 0,
463
+ name: s(t.menu.icon),
464
+ size: 16
465
+ }, null, 8, ["name"])) : (o(), u("span", Ht, x(d(t.menu.menuName)), 1))
466
+ ]),
410
467
  default: S(() => [
411
- e("span", Xt, [
412
- t.menu.menuName !== "首页" ? (o(), c("span", Jt, [
413
- d(l(t.menu.icon)) ? (o(), A(n(U), {
414
- key: 0,
415
- name: l(t.menu.icon),
416
- size: 16
417
- }, null, 8, ["name"])) : (o(), c("span", Zt, x(s(t.menu.menuName)), 1))
418
- ])) : z("", !0),
419
- e("span", Qt, x(t.menu.menuName), 1)
420
- ])
468
+ _e(" " + x(t.menu.menuName), 1)
421
469
  ]),
422
470
  _: 1
423
471
  }, 8, ["index"]));
@@ -428,13 +476,13 @@ const fe = Pe("menu", () => {
428
476
  for (const [l, s] of a)
429
477
  p[l] = s;
430
478
  return p;
431
- }, ts = /* @__PURE__ */ de(es, [["__scopeId", "data-v-03a4d35c"]]), ss = {
479
+ }, Gt = /* @__PURE__ */ de(Yt, [["__scopeId", "data-v-7297001c"]]), Xt = {
432
480
  key: 0,
433
481
  class: "sidebar__logo"
434
- }, os = ["src"], as = {
482
+ }, Jt = ["src"], Zt = {
435
483
  key: 1,
436
484
  class: "sidebar__user"
437
- }, ns = { class: "sidebar__user-info" }, ls = { class: "sidebar__user-name" }, rs = { class: "sidebar__user-role" }, Ke = "sidebar_opened_menus", je = "sidebar_menu_list_key", is = /* @__PURE__ */ ce({
485
+ }, Qt = { class: "sidebar__user-info" }, es = { class: "sidebar__user-name" }, ts = { class: "sidebar__user-role" }, Ke = "sidebar_opened_menus", je = "sidebar_menu_list_key", ss = /* @__PURE__ */ ce({
438
486
  __name: "Sidebar",
439
487
  props: {
440
488
  menuList: { default: () => [] },
@@ -443,131 +491,131 @@ const fe = Pe("menu", () => {
443
491
  logoSrc: {}
444
492
  },
445
493
  setup(t) {
446
- const a = t, p = k(() => a.logoSrc || Te("/vite.svg")), l = Ee(), s = be(), d = fe(), i = ue(), h = ze(), m = _e(), f = k(() => a.menuList.length > 0 ? a.menuList : d.menuList), _ = k(() => m.isCollapsed), g = k(() => l.path), u = (D) => D.menuId || D.menuCode || D.menuUrl || "", W = () => f.value.map(u).join(","), P = T.get(je) || "", B = W(), V = P === B ? T.get(Ke) || [] : [], R = y(V);
447
- Le(R, (D) => {
494
+ const a = t, p = w(() => a.logoSrc || Te("/vite.svg")), l = Ee(), s = ke(), d = ge(), i = ue(), h = ze(), _ = fe(), m = w(() => a.menuList.length > 0 ? a.menuList : d.menuList), f = w(() => _.isCollapsed), y = w(() => l.path), c = (D) => D.menuId || D.menuCode || D.menuUrl || "", W = () => m.value.map(c).join(","), P = T.get(je) || "", B = W(), V = P === B ? T.get(Ke) || [] : [], R = g(V);
495
+ $e(R, (D) => {
448
496
  T.set(Ke, D), T.set(je, W());
449
497
  }, { deep: !0 });
450
- const H = (D, E, F = []) => {
451
- var X;
498
+ const Y = (D, E, F = []) => {
499
+ var J;
452
500
  for (const K of D) {
453
501
  if (K.menuUrl && (E === K.menuUrl || E.startsWith(K.menuUrl + "/")))
454
- return [...F, u(K)];
455
- if ((X = K.children) != null && X.length) {
456
- const oe = H(K.children, E, [...F, u(K)]);
502
+ return [...F, c(K)];
503
+ if ((J = K.children) != null && J.length) {
504
+ const oe = Y(K.children, E, [...F, c(K)]);
457
505
  if (oe) return oe;
458
506
  }
459
507
  }
460
508
  return null;
461
509
  };
462
- Le([() => l.path, f], ([D, E]) => {
510
+ $e([() => l.path, m], ([D, E]) => {
463
511
  if (E.length > 0) {
464
- const F = H(E, D);
512
+ const F = Y(E, D);
465
513
  if (F) {
466
- const X = F.slice(0, -1), K = /* @__PURE__ */ new Set([...R.value, ...X]);
514
+ const J = F.slice(0, -1), K = /* @__PURE__ */ new Set([...R.value, ...J]);
467
515
  R.value = Array.from(K);
468
516
  }
469
517
  }
470
- }, { immediate: !0 }), Le(f, (D, E) => {
518
+ }, { immediate: !0 }), $e(m, (D, E) => {
471
519
  D !== E && (R.value = [], T.set(Ke, []), T.set(je, W()));
472
520
  }, { immediate: !1 });
473
- const Q = k(() => m.isDark ? "#161B21" : "#fff"), G = k(() => m.isDark ? "#D9DCE1" : "#4E5566"), ee = k(() => m.isDark ? "#818CF8" : "#4F46E5"), Y = (D) => {
521
+ const Q = w(() => _.isDark ? "#161B21" : "#fff"), X = w(() => _.isDark ? "#D9DCE1" : "#4E5566"), ee = w(() => _.isDark ? "#818CF8" : "#4F46E5"), G = (D) => {
474
522
  D && D !== l.path && s.push(D);
475
523
  }, te = () => {
476
- h.logout(), i.clearUserInfo(), d.clearMenu(), s.push(m.loginPath);
524
+ h.logout(), i.clearUserInfo(), d.clearMenu(), s.push(_.loginPath);
477
525
  };
478
- return (D, E) => (o(), c("div", {
479
- class: Z(["sidebar", { "sidebar--collapsed": _.value }])
526
+ return (D, E) => (o(), u("div", {
527
+ class: H(["sidebar", { "sidebar--collapsed": f.value }])
480
528
  }, [
481
- a.showLogo ? (o(), c("div", ss, [
529
+ a.showLogo ? (o(), u("div", Xt, [
482
530
  e("img", {
483
531
  src: p.value,
484
532
  alt: "Logo",
485
533
  class: "sidebar__logo-img"
486
- }, null, 8, os),
487
- De(e("span", { class: "sidebar__logo-text" }, x(n(m).appName), 513), [
488
- [St, !_.value]
534
+ }, null, 8, Jt),
535
+ De(e("span", { class: "sidebar__logo-text" }, x(n(_).appName), 513), [
536
+ [St, !f.value]
489
537
  ])
490
538
  ])) : z("", !0),
491
- w(n(Ze), {
492
- modelValue: g.value,
493
- "onUpdate:modelValue": E[0] || (E[0] = (F) => g.value = F),
539
+ k(n(Ze), {
540
+ modelValue: y.value,
541
+ "onUpdate:modelValue": E[0] || (E[0] = (F) => y.value = F),
494
542
  openeds: R.value,
495
543
  "onUpdate:openeds": E[1] || (E[1] = (F) => R.value = F),
496
544
  mode: "vertical",
497
- collapse: _.value,
545
+ collapse: f.value,
498
546
  "collapse-transition": !1,
499
547
  "background-color": Q.value,
500
- "text-color": G.value,
548
+ "text-color": X.value,
501
549
  "active-text-color": ee.value,
502
550
  class: "sidebar__menu",
503
- onSelect: Y
551
+ onSelect: G
504
552
  }, {
505
553
  default: S(() => [
506
- (o(!0), c(j, null, J(f.value, (F) => (o(), A(ts, {
507
- key: u(F),
554
+ (o(!0), u(j, null, Z(m.value, (F) => (o(), A(Gt, {
555
+ key: c(F),
508
556
  menu: F
509
557
  }, null, 8, ["menu"]))), 128))
510
558
  ]),
511
559
  _: 1
512
560
  }, 8, ["modelValue", "openeds", "collapse", "background-color", "text-color", "active-text-color"]),
513
- a.showUser && !_.value ? (o(), c("div", as, [
514
- e("div", ns, [
515
- e("span", ls, x(n(i).userName), 1),
516
- e("span", rs, x(n(i).departmentName), 1)
561
+ a.showUser && !f.value ? (o(), u("div", Zt, [
562
+ e("div", Qt, [
563
+ e("span", es, x(n(i).userName), 1),
564
+ e("span", ts, x(n(i).departmentName), 1)
517
565
  ]),
518
- w(n(Ne), {
566
+ k(n(Ie), {
519
567
  type: "text",
520
568
  size: "small",
521
569
  onClick: te
522
570
  }, {
523
571
  default: S(() => [...E[2] || (E[2] = [
524
- Ce("退出", -1)
572
+ _e("退出", -1)
525
573
  ])]),
526
574
  _: 1
527
575
  })
528
576
  ])) : z("", !0)
529
577
  ], 2));
530
578
  }
531
- }), lt = /* @__PURE__ */ de(is, [["__scopeId", "data-v-3145ea3a"]]), cs = { class: "header" }, us = { class: "header__left" }, ds = {
579
+ }), lt = /* @__PURE__ */ de(ss, [["__scopeId", "data-v-0322d1ab"]]), os = { class: "header" }, ns = { class: "header__left" }, as = {
532
580
  key: 0,
533
581
  class: "header__breadcrumb"
534
- }, ms = {
582
+ }, ls = {
535
583
  key: 0,
536
584
  class: "breadcrumb-separator"
537
- }, ps = { class: "header__right" }, vs = {
585
+ }, rs = { class: "header__right" }, is = {
538
586
  key: 0,
539
587
  class: "header__search-dropdown"
540
- }, hs = {
588
+ }, cs = {
541
589
  key: 0,
542
590
  class: "header__search-results"
543
- }, _s = ["onClick"], fs = {
591
+ }, us = ["onClick"], ds = {
544
592
  key: 0,
545
593
  class: "header__search-icon"
546
- }, gs = {
594
+ }, ms = {
547
595
  key: 1,
548
596
  class: "header__search-char"
549
- }, ys = { class: "header__search-item-title" }, bs = {
597
+ }, ps = { class: "header__search-item-title" }, vs = {
550
598
  key: 1,
551
599
  class: "header__search-item-parent"
552
- }, ws = {
600
+ }, hs = {
553
601
  key: 1,
554
602
  class: "header__search-empty"
555
- }, ks = ["title"], xs = { class: "header__avatar" }, Cs = { class: "header__user-name" }, $s = {
603
+ }, _s = ["title"], fs = { class: "header__avatar" }, gs = { class: "header__user-name" }, ys = {
556
604
  key: 0,
557
605
  class: "header__dropdown"
558
- }, Ls = { class: "header__dropdown-header" }, Ms = { class: "header__dropdown-avatar" }, Ss = { class: "header__dropdown-info" }, Ns = { class: "header__dropdown-name" }, Es = { class: "header__dropdown-role" }, Is = { class: "header__dropdown-menu" }, Us = { class: "settings-drawer" }, Ts = { class: "settings-section" }, Ps = { class: "settings-layout-options" }, zs = ["onClick"], Fs = { class: "layout-option__preview" }, Ds = {
606
+ }, bs = { class: "header__dropdown-header" }, ks = { class: "header__dropdown-avatar" }, ws = { class: "header__dropdown-info" }, xs = { class: "header__dropdown-name" }, Cs = { class: "header__dropdown-role" }, Ls = { class: "header__dropdown-menu" }, $s = { class: "settings-drawer" }, Ms = { class: "settings-section" }, Ss = { class: "settings-layout-options" }, Is = ["onClick"], Es = { class: "layout-option__preview" }, Ns = {
559
607
  key: 0,
560
608
  class: "layout-preview-sidebar"
561
- }, As = {
609
+ }, Us = {
562
610
  key: 1,
563
611
  class: "layout-preview-top"
564
- }, Bs = {
612
+ }, Ts = {
565
613
  key: 2,
566
614
  class: "layout-preview-mix"
567
- }, Vs = { class: "layout-option__label" }, Os = { class: "settings-section" }, Rs = { class: "settings-color-options" }, Ks = ["title", "onClick"], js = { class: "settings-section" }, Ws = { class: "settings-switch-list" }, qs = { class: "settings-switch-item" }, Hs = { class: "settings-switch-item" }, Ys = { class: "settings-section" }, Gs = /* @__PURE__ */ ce({
615
+ }, Ps = { class: "layout-option__label" }, zs = { class: "settings-section" }, Fs = { class: "settings-color-options" }, Ds = ["title", "onClick"], As = { class: "settings-section" }, Bs = { class: "settings-switch-list" }, Vs = { class: "settings-switch-item" }, Os = { class: "settings-switch-item" }, Rs = { class: "settings-section" }, Ks = /* @__PURE__ */ ce({
568
616
  __name: "Header",
569
617
  setup(t) {
570
- const a = Ee(), p = be(), l = _e(), s = ue(), d = ze(), i = fe(), h = y(!1), m = y(!1), f = y(null), _ = y(!1), g = y(!1), u = y(""), W = y(null), P = y(!1), B = [
618
+ const a = Ee(), p = ke(), l = fe(), s = ue(), d = ze(), i = ge(), h = g(!1), _ = g(!1), m = g(null), f = g(!1), y = g(!1), c = g(""), W = g(null), P = g(!1), B = [
571
619
  { value: "sidebar", label: "左侧菜单", icon: "sidebar-left" },
572
620
  { value: "top", label: "顶部菜单", icon: "menu" },
573
621
  { value: "mix", label: "混合菜单", icon: "grid" }
@@ -577,13 +625,13 @@ const fe = Pe("menu", () => {
577
625
  { value: "#00A870", label: "翡翠绿" },
578
626
  { value: "#D46B08", label: "琥珀橙" },
579
627
  { value: "#1F2329", label: "石墨黑" }
580
- ], R = k(() => a.matched.filter((b) => b.meta && b.meta.title).map((b) => ({
628
+ ], R = w(() => a.matched.filter((b) => b.meta && b.meta.title).map((b) => ({
581
629
  title: b.meta.title,
582
630
  path: b.path
583
- }))), H = (I, b = "") => {
631
+ }))), Y = (N, b = "") => {
584
632
  const se = [];
585
- return I.forEach(($) => {
586
- $.children && $.children.length > 0 ? se.push(...H($.children, $.menuName)) : se.push({ ...$, parentTitle: b, title: $.menuName, path: $.menuUrl });
633
+ return N.forEach((L) => {
634
+ L.children && L.children.length > 0 ? se.push(...Y(L.children, L.menuName)) : se.push({ ...L, parentTitle: b, title: L.menuName, path: L.menuUrl });
587
635
  }), se;
588
636
  }, Q = /* @__PURE__ */ new Set([
589
637
  "arrow-up",
@@ -687,10 +735,10 @@ const fe = Pe("menu", () => {
687
735
  "sun",
688
736
  "theme",
689
737
  "skin"
690
- ]), G = (I) => {
691
- if (!I || I === "") return "";
692
- if (I.startsWith("tineco-icon-")) {
693
- const se = I.replace("tineco-icon-", "");
738
+ ]), X = (N) => {
739
+ if (!N || N === "") return "";
740
+ if (N.startsWith("tineco-icon-")) {
741
+ const se = N.replace("tineco-icon-", "");
694
742
  return {
695
743
  home: "home",
696
744
  dashboard: "dashboard",
@@ -723,120 +771,120 @@ const fe = Pe("menu", () => {
723
771
  app: "app",
724
772
  list: "list",
725
773
  grid: "grid"
726
- }[I] || I;
727
- }, ee = (I) => I ? I.charAt(0) : "", Y = (I) => Q.has(I), te = k(() => u.value.trim() ? H(i.menuList).filter(
728
- (b) => b.title.toLowerCase().includes(u.value.toLowerCase())
729
- ) : []), D = k(() => l.layout), E = () => {
774
+ }[N] || N;
775
+ }, ee = (N) => N ? N.charAt(0) : "", G = (N) => Q.has(N), te = w(() => c.value.trim() ? Y(i.menuList).filter(
776
+ (b) => b.title.toLowerCase().includes(c.value.toLowerCase())
777
+ ) : []), D = w(() => l.layout), E = () => {
730
778
  l.toggleCollapse();
731
779
  }, F = () => {
732
780
  l.toggleTheme();
733
- }, X = () => {
734
- m.value = !0;
735
- }, K = (I) => {
736
- l.setLayout(I), m.value = !1;
737
- }, oe = (I) => {
738
- P.value = I;
781
+ }, J = () => {
782
+ _.value = !0;
783
+ }, K = (N) => {
784
+ l.setLayout(N), _.value = !1;
785
+ }, oe = (N) => {
786
+ P.value = N;
739
787
  const b = document.documentElement;
740
- I ? b.classList.add("grey-mode") : b.classList.remove("grey-mode");
788
+ N ? b.classList.add("grey-mode") : b.classList.remove("grey-mode");
741
789
  }, he = () => {
742
- oe(!P.value), m.value = !1;
790
+ oe(!P.value), _.value = !1;
743
791
  }, we = () => {
744
- l.toggleTheme(), m.value = !1;
792
+ l.toggleTheme(), _.value = !1;
745
793
  }, re = () => {
746
- l.resetToServerDefaults(), m.value = !1;
794
+ l.resetToServerDefaults(), _.value = !1;
747
795
  }, me = () => {
748
796
  document.fullscreenElement ? document.exitFullscreen() : document.documentElement.requestFullscreen();
749
- }, ge = () => {
750
- _.value = !!document.fullscreenElement;
797
+ }, ye = () => {
798
+ f.value = !!document.fullscreenElement;
751
799
  }, ie = () => {
752
800
  h.value = !h.value;
753
- }, ae = () => {
801
+ }, ne = () => {
754
802
  h.value = !1;
755
803
  }, M = () => {
756
- g.value = !1, u.value = "";
757
- }, q = (I) => {
758
- p.push(I), M();
759
- }, pe = (I) => {
760
- l.setPrimaryColor(I), m.value = !1;
804
+ y.value = !1, c.value = "";
805
+ }, q = (N) => {
806
+ p.push(N), M();
807
+ }, pe = (N) => {
808
+ l.setPrimaryColor(N), _.value = !1;
761
809
  }, ve = () => {
762
- ae(), p.push("/profile");
763
- }, ne = () => {
764
- ae(), p.push("/change-password");
765
- }, ke = () => {
766
- ae(), d.logout(), s.clearUserInfo(), i.clearMenu(), p.push(l.loginPath);
767
- }, ye = (I) => {
768
- f.value && !f.value.contains(I.target) && ae(), W.value && !W.value.contains(I.target) && M();
769
- }, xe = (I) => {
770
- I.key === "Escape" && (M(), ae());
810
+ ne(), p.push("/profile");
811
+ }, ae = () => {
812
+ ne(), p.push("/change-password");
813
+ }, xe = () => {
814
+ ne(), d.logout(), s.clearUserInfo(), i.clearMenu(), p.push(l.loginPath);
815
+ }, be = (N) => {
816
+ m.value && !m.value.contains(N.target) && ne(), W.value && !W.value.contains(N.target) && M();
817
+ }, Ce = (N) => {
818
+ N.key === "Escape" && (M(), ne());
771
819
  };
772
820
  return qe(() => {
773
- document.addEventListener("click", ye), document.addEventListener("fullscreenchange", ge), document.addEventListener("keydown", xe), l.initTheme(), P.value = document.documentElement.classList.contains("grey-mode");
821
+ document.addEventListener("click", be), document.addEventListener("fullscreenchange", ye), document.addEventListener("keydown", Ce), l.initTheme(), P.value = document.documentElement.classList.contains("grey-mode");
774
822
  }), He(() => {
775
- document.removeEventListener("click", ye), document.removeEventListener("fullscreenchange", ge), document.removeEventListener("keydown", xe);
776
- }), (I, b) => {
823
+ document.removeEventListener("click", be), document.removeEventListener("fullscreenchange", ye), document.removeEventListener("keydown", Ce);
824
+ }), (N, b) => {
777
825
  var se;
778
- return o(), c("div", cs, [
779
- e("div", us, [
826
+ return o(), u("div", os, [
827
+ e("div", ns, [
780
828
  e("div", {
781
829
  class: "header__collapse",
782
830
  onClick: E
783
831
  }, [
784
- w(n(U), {
832
+ k(n(U), {
785
833
  name: n(l).isCollapsed ? "menu-unfold" : "menu-fold",
786
834
  size: 18
787
835
  }, null, 8, ["name"])
788
836
  ]),
789
- n(l).showBreadcrumb ? (o(), c("div", ds, [
790
- (o(!0), c(j, null, J(R.value, ($, N) => (o(), c("span", {
791
- key: $.path
837
+ n(l).showBreadcrumb ? (o(), u("div", as, [
838
+ (o(!0), u(j, null, Z(R.value, (L, I) => (o(), u("span", {
839
+ key: L.path
792
840
  }, [
793
- N > 0 ? (o(), c("span", ms, "/")) : z("", !0),
841
+ I > 0 ? (o(), u("span", ls, "/")) : z("", !0),
794
842
  e("span", {
795
- class: Z({ "is-current": N === R.value.length - 1 })
796
- }, x($.title), 3)
843
+ class: H({ "is-current": I === R.value.length - 1 })
844
+ }, x(L.title), 3)
797
845
  ]))), 128))
798
846
  ])) : z("", !0)
799
847
  ]),
800
- e("div", ps, [
848
+ e("div", rs, [
801
849
  e("div", {
802
850
  class: "header__search",
803
851
  ref_key: "searchRef",
804
852
  ref: W
805
853
  }, [
806
- w(n(U), {
854
+ k(n(U), {
807
855
  name: "search",
808
856
  size: 14,
809
857
  class: "header__search-icon"
810
858
  }),
811
859
  De(e("input", {
812
- "onUpdate:modelValue": b[0] || (b[0] = ($) => u.value = $),
860
+ "onUpdate:modelValue": b[0] || (b[0] = (L) => c.value = L),
813
861
  type: "text",
814
862
  class: "header__search-input",
815
863
  placeholder: "搜索菜单...",
816
- onFocus: b[1] || (b[1] = ($) => g.value = !0)
864
+ onFocus: b[1] || (b[1] = (L) => y.value = !0)
817
865
  }, null, 544), [
818
- [Ye, u.value]
866
+ [Ye, c.value]
819
867
  ]),
820
- w(Se, { name: "search-dropdown" }, {
868
+ k(Se, { name: "search-dropdown" }, {
821
869
  default: S(() => [
822
- g.value && (te.value.length > 0 || u.value) ? (o(), c("div", vs, [
823
- te.value.length > 0 ? (o(), c("div", hs, [
824
- (o(!0), c(j, null, J(te.value, ($) => (o(), c("div", {
825
- key: $.path,
870
+ y.value && (te.value.length > 0 || c.value) ? (o(), u("div", is, [
871
+ te.value.length > 0 ? (o(), u("div", cs, [
872
+ (o(!0), u(j, null, Z(te.value, (L) => (o(), u("div", {
873
+ key: L.path,
826
874
  class: "header__search-item",
827
- onClick: (N) => q($.path)
875
+ onClick: (I) => q(L.path)
828
876
  }, [
829
- $.title !== "首页" ? (o(), c("span", fs, [
830
- Y(G($.icon)) ? (o(), A(n(U), {
877
+ L.title !== "首页" ? (o(), u("span", ds, [
878
+ G(X(L.icon)) ? (o(), A(n(U), {
831
879
  key: 0,
832
- name: G($.icon),
880
+ name: X(L.icon),
833
881
  size: 16
834
- }, null, 8, ["name"])) : (o(), c("span", gs, x(ee($.title)), 1))
882
+ }, null, 8, ["name"])) : (o(), u("span", ms, x(ee(L.title)), 1))
835
883
  ])) : z("", !0),
836
- e("span", ys, x($.title), 1),
837
- $.parentTitle ? (o(), c("span", bs, x($.parentTitle), 1)) : z("", !0)
838
- ], 8, _s))), 128))
839
- ])) : (o(), c("div", ws, " 未找到匹配的菜单 "))
884
+ e("span", ps, x(L.title), 1),
885
+ L.parentTitle ? (o(), u("span", vs, x(L.parentTitle), 1)) : z("", !0)
886
+ ], 8, us))), 128))
887
+ ])) : (o(), u("div", hs, " 未找到匹配的菜单 "))
840
888
  ])) : z("", !0)
841
889
  ]),
842
890
  _: 1
@@ -845,20 +893,20 @@ const fe = Pe("menu", () => {
845
893
  e("div", {
846
894
  class: "header__action",
847
895
  onClick: me,
848
- title: _.value ? "退出全屏" : "全屏"
896
+ title: f.value ? "退出全屏" : "全屏"
849
897
  }, [
850
- w(n(U), {
851
- name: _.value ? "fullscreen-exit" : "fullscreen",
898
+ k(n(U), {
899
+ name: f.value ? "fullscreen-exit" : "fullscreen",
852
900
  size: 16
853
901
  }, null, 8, ["name"])
854
- ], 8, ks),
855
- n(l).allowUserOverride ? (o(), c("div", {
902
+ ], 8, _s),
903
+ n(l).allowUserOverride ? (o(), u("div", {
856
904
  key: 0,
857
905
  class: "header__action",
858
- onClick: X,
906
+ onClick: J,
859
907
  title: "换肤设置"
860
908
  }, [
861
- w(n(U), {
909
+ k(n(U), {
862
910
  name: "skin",
863
911
  size: 16
864
912
  })
@@ -868,7 +916,7 @@ const fe = Pe("menu", () => {
868
916
  onClick: F,
869
917
  title: "切换主题"
870
918
  }, [
871
- w(n(U), {
919
+ k(n(U), {
872
920
  name: n(l).isDark ? "sun" : "moon",
873
921
  size: 16
874
922
  }, null, 8, ["name"])
@@ -876,18 +924,18 @@ const fe = Pe("menu", () => {
876
924
  e("div", {
877
925
  class: "header__user",
878
926
  ref_key: "dropdownRef",
879
- ref: f
927
+ ref: m
880
928
  }, [
881
929
  e("div", {
882
930
  class: "header__user-trigger",
883
931
  onClick: Ae(ie, ["stop"])
884
932
  }, [
885
- e("div", xs, [
933
+ e("div", fs, [
886
934
  e("span", null, x(((se = n(s).userName) == null ? void 0 : se.charAt(0)) || "U"), 1)
887
935
  ]),
888
- e("span", Cs, x(n(s).userName), 1),
936
+ e("span", gs, x(n(s).userName), 1),
889
937
  e("span", {
890
- class: Z(["header__user-arrow", { "is-active": h.value }])
938
+ class: H(["header__user-arrow", { "is-active": h.value }])
891
939
  }, [...b[3] || (b[3] = [
892
940
  e("svg", {
893
941
  viewBox: "0 0 12 12",
@@ -903,27 +951,27 @@ const fe = Pe("menu", () => {
903
951
  ], -1)
904
952
  ])], 2)
905
953
  ]),
906
- w(Se, { name: "dropdown" }, {
954
+ k(Se, { name: "dropdown" }, {
907
955
  default: S(() => {
908
- var $;
956
+ var L;
909
957
  return [
910
- h.value ? (o(), c("div", $s, [
911
- e("div", Ls, [
912
- e("div", Ms, [
913
- e("span", null, x((($ = n(s).userName) == null ? void 0 : $.charAt(0)) || "U"), 1)
958
+ h.value ? (o(), u("div", ys, [
959
+ e("div", bs, [
960
+ e("div", ks, [
961
+ e("span", null, x(((L = n(s).userName) == null ? void 0 : L.charAt(0)) || "U"), 1)
914
962
  ]),
915
- e("div", Ss, [
916
- e("div", Ns, x(n(s).userName), 1),
917
- e("div", Es, x(n(s).roleName || n(s).departmentName), 1)
963
+ e("div", ws, [
964
+ e("div", xs, x(n(s).userName), 1),
965
+ e("div", Cs, x(n(s).roleName || n(s).departmentName), 1)
918
966
  ])
919
967
  ]),
920
968
  b[8] || (b[8] = e("div", { class: "header__dropdown-divider" }, null, -1)),
921
- e("div", Is, [
969
+ e("div", Ls, [
922
970
  e("div", {
923
971
  class: "header__dropdown-item",
924
972
  onClick: ve
925
973
  }, [
926
- w(n(U), {
974
+ k(n(U), {
927
975
  name: "user",
928
976
  size: 16
929
977
  }),
@@ -931,9 +979,9 @@ const fe = Pe("menu", () => {
931
979
  ]),
932
980
  e("div", {
933
981
  class: "header__dropdown-item",
934
- onClick: ne
982
+ onClick: ae
935
983
  }, [
936
- w(n(U), {
984
+ k(n(U), {
937
985
  name: "lock",
938
986
  size: 16
939
987
  }),
@@ -942,9 +990,9 @@ const fe = Pe("menu", () => {
942
990
  b[7] || (b[7] = e("div", { class: "header__dropdown-divider" }, null, -1)),
943
991
  e("div", {
944
992
  class: "header__dropdown-item header__dropdown-item--danger",
945
- onClick: ke
993
+ onClick: xe
946
994
  }, [
947
- w(n(U), {
995
+ k(n(U), {
948
996
  name: "logout",
949
997
  size: 16
950
998
  }),
@@ -958,34 +1006,34 @@ const fe = Pe("menu", () => {
958
1006
  })
959
1007
  ], 512)
960
1008
  ]),
961
- w(n(Qe), {
962
- modelValue: m.value,
963
- "onUpdate:modelValue": b[2] || (b[2] = ($) => m.value = $),
1009
+ k(n(Qe), {
1010
+ modelValue: _.value,
1011
+ "onUpdate:modelValue": b[2] || (b[2] = (L) => _.value = L),
964
1012
  title: "换肤设置",
965
1013
  direction: "rtl",
966
1014
  size: "320px"
967
1015
  }, {
968
1016
  default: S(() => [
969
- e("div", Us, [
970
- e("div", Ts, [
1017
+ e("div", $s, [
1018
+ e("div", Ms, [
971
1019
  b[12] || (b[12] = e("div", { class: "settings-title" }, "布局模式", -1)),
972
- e("div", Ps, [
973
- (o(), c(j, null, J(B, ($) => e("div", {
974
- key: $.value,
975
- class: Z(["layout-option", { "is-active": D.value === $.value }]),
976
- onClick: (N) => K($.value)
1020
+ e("div", Ss, [
1021
+ (o(), u(j, null, Z(B, (L) => e("div", {
1022
+ key: L.value,
1023
+ class: H(["layout-option", { "is-active": D.value === L.value }]),
1024
+ onClick: (I) => K(L.value)
977
1025
  }, [
978
- e("div", Fs, [
979
- $.value === "sidebar" ? (o(), c("div", Ds, [...b[9] || (b[9] = [
1026
+ e("div", Es, [
1027
+ L.value === "sidebar" ? (o(), u("div", Ns, [...b[9] || (b[9] = [
980
1028
  e("div", { class: "preview-aside" }, null, -1),
981
1029
  e("div", { class: "preview-main" }, [
982
1030
  e("div", { class: "preview-header" }),
983
1031
  e("div", { class: "preview-content" })
984
1032
  ], -1)
985
- ])])) : $.value === "top" ? (o(), c("div", As, [...b[10] || (b[10] = [
1033
+ ])])) : L.value === "top" ? (o(), u("div", Us, [...b[10] || (b[10] = [
986
1034
  e("div", { class: "preview-header-full" }, null, -1),
987
1035
  e("div", { class: "preview-content-full" }, null, -1)
988
- ])])) : (o(), c("div", Bs, [...b[11] || (b[11] = [
1036
+ ])])) : (o(), u("div", Ts, [...b[11] || (b[11] = [
989
1037
  e("div", { class: "preview-header-mix" }, [
990
1038
  e("div", { class: "preview-mix-left" })
991
1039
  ], -1),
@@ -995,45 +1043,45 @@ const fe = Pe("menu", () => {
995
1043
  ], -1)
996
1044
  ])]))
997
1045
  ]),
998
- e("span", Vs, x($.label), 1)
999
- ], 10, zs)), 64))
1046
+ e("span", Ps, x(L.label), 1)
1047
+ ], 10, Is)), 64))
1000
1048
  ])
1001
1049
  ]),
1002
- e("div", Os, [
1050
+ e("div", zs, [
1003
1051
  b[13] || (b[13] = e("div", { class: "settings-title" }, "主题色", -1)),
1004
- e("div", Rs, [
1005
- (o(), c(j, null, J(V, ($) => e("div", {
1006
- key: $.value,
1007
- class: Z(["color-option", { "is-active": n(l).primaryColor === $.value }]),
1008
- style: Ue({ backgroundColor: $.value }),
1009
- title: $.label,
1010
- onClick: (N) => pe($.value)
1052
+ e("div", Fs, [
1053
+ (o(), u(j, null, Z(V, (L) => e("div", {
1054
+ key: L.value,
1055
+ class: H(["color-option", { "is-active": n(l).primaryColor === L.value }]),
1056
+ style: Ue({ backgroundColor: L.value }),
1057
+ title: L.label,
1058
+ onClick: (I) => pe(L.value)
1011
1059
  }, [
1012
- n(l).primaryColor === $.value ? (o(), A(n(U), {
1060
+ n(l).primaryColor === L.value ? (o(), A(n(U), {
1013
1061
  key: 0,
1014
1062
  name: "check",
1015
1063
  size: 12,
1016
1064
  color: "#fff"
1017
1065
  })) : z("", !0)
1018
- ], 14, Ks)), 64))
1066
+ ], 14, Ds)), 64))
1019
1067
  ])
1020
1068
  ]),
1021
- e("div", js, [
1069
+ e("div", As, [
1022
1070
  b[18] || (b[18] = e("div", { class: "settings-title" }, "功能设置", -1)),
1023
- e("div", Ws, [
1024
- e("div", qs, [
1071
+ e("div", Bs, [
1072
+ e("div", Vs, [
1025
1073
  b[15] || (b[15] = e("span", null, "灰色模式", -1)),
1026
1074
  e("div", {
1027
- class: Z(["switch-wrapper", { "is-checked": P.value }]),
1075
+ class: H(["switch-wrapper", { "is-checked": P.value }]),
1028
1076
  onClick: he
1029
1077
  }, [...b[14] || (b[14] = [
1030
1078
  e("span", { class: "switch-core" }, null, -1)
1031
1079
  ])], 2)
1032
1080
  ]),
1033
- e("div", Hs, [
1081
+ e("div", Os, [
1034
1082
  b[17] || (b[17] = e("span", null, "暗黑模式", -1)),
1035
1083
  e("div", {
1036
- class: Z(["switch-wrapper", { "is-checked": n(l).isDark }]),
1084
+ class: H(["switch-wrapper", { "is-checked": n(l).isDark }]),
1037
1085
  onClick: we
1038
1086
  }, [...b[16] || (b[16] = [
1039
1087
  e("span", { class: "switch-core" }, null, -1)
@@ -1041,12 +1089,12 @@ const fe = Pe("menu", () => {
1041
1089
  ])
1042
1090
  ])
1043
1091
  ]),
1044
- e("div", Ys, [
1092
+ e("div", Rs, [
1045
1093
  e("div", {
1046
1094
  class: "settings-reset",
1047
1095
  onClick: re
1048
1096
  }, [
1049
- w(n(U), {
1097
+ k(n(U), {
1050
1098
  name: "refresh",
1051
1099
  size: 14
1052
1100
  }),
@@ -1060,72 +1108,72 @@ const fe = Pe("menu", () => {
1060
1108
  ]);
1061
1109
  };
1062
1110
  }
1063
- }), Xs = /* @__PURE__ */ de(Gs, [["__scopeId", "data-v-21769fe5"]]), Js = { class: "top-menu" }, Zs = { class: "top-menu__logo" }, Qs = ["src"], eo = { class: "top-menu__logo-text" }, to = { class: "top-menu__menu-content" }, so = {
1111
+ }), js = /* @__PURE__ */ de(Ks, [["__scopeId", "data-v-21769fe5"]]), Ws = { class: "top-menu" }, qs = { class: "top-menu__logo" }, Hs = ["src"], Ys = { class: "top-menu__logo-text" }, Gs = { class: "top-menu__menu-content" }, Xs = {
1064
1112
  key: 0,
1065
1113
  class: "top-menu__menu-icon"
1066
- }, oo = {
1114
+ }, Js = {
1067
1115
  key: 1,
1068
1116
  class: "top-menu__menu-char"
1069
- }, ao = { class: "top-menu__menu-text" }, no = { class: "top-menu__menu-content" }, lo = { class: "top-menu__menu-icon" }, ro = {
1117
+ }, Zs = { class: "top-menu__menu-text" }, Qs = { class: "top-menu__menu-content" }, eo = { class: "top-menu__menu-icon" }, to = {
1070
1118
  key: 1,
1071
1119
  class: "top-menu__menu-char"
1072
- }, io = { class: "top-menu__menu-text" }, co = { class: "top-menu__menu-content" }, uo = { class: "top-menu__menu-icon" }, mo = {
1120
+ }, so = { class: "top-menu__menu-text" }, oo = { class: "top-menu__menu-content" }, no = { class: "top-menu__menu-icon" }, ao = {
1073
1121
  key: 1,
1074
1122
  class: "top-menu__menu-char"
1075
- }, po = { class: "top-menu__menu-text" }, vo = { class: "top-menu__menu-content" }, ho = { class: "top-menu__menu-icon" }, _o = {
1123
+ }, lo = { class: "top-menu__menu-text" }, ro = { class: "top-menu__menu-content" }, io = { class: "top-menu__menu-icon" }, co = {
1076
1124
  key: 1,
1077
1125
  class: "top-menu__menu-char"
1078
- }, fo = { class: "top-menu__menu-text" }, go = { class: "top-menu__menu-content" }, yo = {
1126
+ }, uo = { class: "top-menu__menu-text" }, mo = { class: "top-menu__menu-content" }, po = {
1079
1127
  key: 0,
1080
1128
  class: "top-menu__menu-icon"
1081
- }, bo = {
1129
+ }, vo = {
1082
1130
  key: 1,
1083
1131
  class: "top-menu__menu-char"
1084
- }, wo = { class: "top-menu__menu-text" }, ko = { class: "top-menu__actions" }, xo = {
1132
+ }, ho = { class: "top-menu__menu-text" }, _o = { class: "top-menu__actions" }, fo = {
1085
1133
  key: 0,
1086
1134
  class: "top-menu__search-dropdown"
1087
- }, Co = {
1135
+ }, go = {
1088
1136
  key: 0,
1089
1137
  class: "top-menu__search-results"
1090
- }, $o = ["onClick"], Lo = {
1138
+ }, yo = ["onClick"], bo = {
1091
1139
  key: 0,
1092
1140
  class: "top-menu__search-icon-item"
1093
- }, Mo = {
1141
+ }, ko = {
1094
1142
  key: 1,
1095
1143
  class: "top-menu__search-char"
1096
- }, So = { class: "top-menu__search-item-title" }, No = {
1144
+ }, wo = { class: "top-menu__search-item-title" }, xo = {
1097
1145
  key: 1,
1098
1146
  class: "top-menu__search-item-parent"
1099
- }, Eo = {
1147
+ }, Co = {
1100
1148
  key: 1,
1101
1149
  class: "top-menu__search-empty"
1102
- }, Io = ["title"], Uo = { class: "top-menu__avatar" }, To = { class: "top-menu__user-name" }, Po = {
1150
+ }, Lo = ["title"], $o = { class: "top-menu__avatar" }, Mo = { class: "top-menu__user-name" }, So = {
1103
1151
  key: 0,
1104
1152
  class: "top-menu__dropdown"
1105
- }, zo = { class: "top-menu__dropdown-header" }, Fo = { class: "top-menu__dropdown-avatar" }, Do = { class: "top-menu__dropdown-info" }, Ao = { class: "top-menu__dropdown-name" }, Bo = { class: "top-menu__dropdown-role" }, Vo = { class: "top-menu__dropdown-menu" }, Oo = { class: "settings-drawer" }, Ro = { class: "settings-section" }, Ko = { class: "settings-layout-options" }, jo = ["onClick"], Wo = { class: "layout-option__preview" }, qo = {
1153
+ }, Io = { class: "top-menu__dropdown-header" }, Eo = { class: "top-menu__dropdown-avatar" }, No = { class: "top-menu__dropdown-info" }, Uo = { class: "top-menu__dropdown-name" }, To = { class: "top-menu__dropdown-role" }, Po = { class: "top-menu__dropdown-menu" }, zo = { class: "settings-drawer" }, Fo = { class: "settings-section" }, Do = { class: "settings-layout-options" }, Ao = ["onClick"], Bo = { class: "layout-option__preview" }, Vo = {
1106
1154
  key: 0,
1107
1155
  class: "layout-preview-sidebar"
1108
- }, Ho = {
1156
+ }, Oo = {
1109
1157
  key: 1,
1110
1158
  class: "layout-preview-top"
1111
- }, Yo = {
1159
+ }, Ro = {
1112
1160
  key: 2,
1113
1161
  class: "layout-preview-mix"
1114
- }, Go = { class: "layout-option__label" }, Xo = { class: "settings-section" }, Jo = { class: "settings-color-options" }, Zo = ["title", "onClick"], Qo = { class: "settings-section" }, ea = { class: "settings-switch-list" }, ta = { class: "settings-switch-item" }, sa = { class: "settings-switch-item" }, oa = /* @__PURE__ */ ce({
1162
+ }, Ko = { class: "layout-option__label" }, jo = { class: "settings-section" }, Wo = { class: "settings-color-options" }, qo = ["title", "onClick"], Ho = { class: "settings-section" }, Yo = { class: "settings-switch-list" }, Go = { class: "settings-switch-item" }, Xo = { class: "settings-switch-item" }, Jo = /* @__PURE__ */ ce({
1115
1163
  __name: "TopMenu",
1116
1164
  props: {
1117
1165
  logoSrc: {}
1118
1166
  },
1119
1167
  setup(t) {
1120
- const a = t, p = k(() => a.logoSrc || Te("/vite.svg")), l = Ee(), s = be(), d = fe(), i = _e(), h = ue(), m = ze(), f = k(() => l.path), _ = (N, C = "") => {
1168
+ const a = t, p = w(() => a.logoSrc || Te("/vite.svg")), l = Ee(), s = ke(), d = ge(), i = fe(), h = ue(), _ = ze(), m = w(() => l.path), f = (I, C = "") => {
1121
1169
  const le = [];
1122
- return N.forEach((r) => {
1123
- r.children && r.children.length > 0 ? le.push(..._(r.children, r.menuName)) : le.push({ ...r, parentTitle: C, title: r.menuName, path: r.menuUrl });
1170
+ return I.forEach((r) => {
1171
+ r.children && r.children.length > 0 ? le.push(...f(r.children, r.menuName)) : le.push({ ...r, parentTitle: C, title: r.menuName, path: r.menuUrl });
1124
1172
  }), le;
1125
- }, g = k(() => ee.value.trim() ? _(d.menuList).filter(
1173
+ }, y = w(() => ee.value.trim() ? f(d.menuList).filter(
1126
1174
  (C) => C.title.toLowerCase().includes(ee.value.toLowerCase())
1127
- ) : []), u = k(() => i.isDark ? "#1d1e1f" : "#fff"), W = k(() => i.isDark ? "#cfd3dc" : "#303133"), P = k(() => "#409eff"), B = y(!1), V = y(null), R = y(!1), H = y(!1), Q = y(!1), G = y(!1), ee = y(""), Y = y(null), te = (N) => {
1128
- N && N !== l.path && s.push(N);
1175
+ ) : []), c = w(() => i.isDark ? "#1d1e1f" : "#fff"), W = w(() => i.isDark ? "#cfd3dc" : "#303133"), P = w(() => "#409eff"), B = g(!1), V = g(null), R = g(!1), Y = g(!1), Q = g(!1), X = g(!1), ee = g(""), G = g(null), te = (I) => {
1176
+ I && I !== l.path && s.push(I);
1129
1177
  }, D = /* @__PURE__ */ new Set([
1130
1178
  "arrow-up",
1131
1179
  "arrow-down",
@@ -1228,10 +1276,10 @@ const fe = Pe("menu", () => {
1228
1276
  "sun",
1229
1277
  "theme",
1230
1278
  "skin"
1231
- ]), E = (N) => {
1232
- if (!N || N === "") return "";
1233
- if (N.startsWith("tineco-icon-")) {
1234
- const le = N.replace("tineco-icon-", "");
1279
+ ]), E = (I) => {
1280
+ if (!I || I === "") return "";
1281
+ if (I.startsWith("tineco-icon-")) {
1282
+ const le = I.replace("tineco-icon-", "");
1235
1283
  return {
1236
1284
  home: "home",
1237
1285
  dashboard: "dashboard",
@@ -1264,9 +1312,9 @@ const fe = Pe("menu", () => {
1264
1312
  app: "app",
1265
1313
  list: "list",
1266
1314
  grid: "grid"
1267
- }[N] || N;
1268
- }, F = (N) => N ? N.charAt(0) : "", X = (N) => D.has(N), K = () => {
1269
- i.toggleTheme(), H.value = !1;
1315
+ }[I] || I;
1316
+ }, F = (I) => I ? I.charAt(0) : "", J = (I) => D.has(I), K = () => {
1317
+ i.toggleTheme(), Y.value = !1;
1270
1318
  }, oe = () => {
1271
1319
  document.fullscreenElement ? document.exitFullscreen() : document.documentElement.requestFullscreen();
1272
1320
  }, he = () => {
@@ -1276,70 +1324,70 @@ const fe = Pe("menu", () => {
1276
1324
  }, re = () => {
1277
1325
  B.value = !1;
1278
1326
  }, me = () => {
1279
- G.value = !1, ee.value = "";
1280
- }, ge = (N) => {
1281
- s.push(N), me();
1327
+ X.value = !1, ee.value = "";
1328
+ }, ye = (I) => {
1329
+ s.push(I), me();
1282
1330
  }, ie = () => {
1283
- H.value = !0;
1284
- }, ae = (N) => {
1285
- Q.value = N;
1331
+ Y.value = !0;
1332
+ }, ne = (I) => {
1333
+ Q.value = I;
1286
1334
  const C = document.documentElement;
1287
- N ? C.classList.add("grey-mode") : C.classList.remove("grey-mode");
1335
+ I ? C.classList.add("grey-mode") : C.classList.remove("grey-mode");
1288
1336
  }, M = () => {
1289
- ae(!Q.value), H.value = !1;
1337
+ ne(!Q.value), Y.value = !1;
1290
1338
  }, q = () => {
1291
- i.toggleTheme(), H.value = !1;
1339
+ i.toggleTheme(), Y.value = !1;
1292
1340
  }, pe = [
1293
1341
  { value: "sidebar", label: "左侧菜单", icon: "sidebar-left" },
1294
1342
  { value: "top", label: "顶部菜单", icon: "menu" },
1295
1343
  { value: "mix", label: "混合菜单", icon: "grid" }
1296
- ], ve = k(() => i.layout), ne = (N) => {
1297
- i.setLayout(N), H.value = !1;
1298
- }, ke = [
1344
+ ], ve = w(() => i.layout), ae = (I) => {
1345
+ i.setLayout(I), Y.value = !1;
1346
+ }, xe = [
1299
1347
  { value: "#409eff", label: "默认蓝" },
1300
1348
  { value: "#0F6FDE", label: "企业蓝" },
1301
1349
  { value: "#00A870", label: "翡翠绿" },
1302
1350
  { value: "#D46B08", label: "琥珀橙" },
1303
1351
  { value: "#1F2329", label: "石墨黑" }
1304
- ], ye = (N) => {
1305
- i.setPrimaryColor(N), H.value = !1;
1306
- }, xe = () => {
1352
+ ], be = (I) => {
1353
+ i.setPrimaryColor(I), Y.value = !1;
1354
+ }, Ce = () => {
1307
1355
  re(), s.push("/profile");
1308
- }, I = () => {
1356
+ }, N = () => {
1309
1357
  re(), s.push("/change-password");
1310
1358
  }, b = () => {
1311
- re(), m.logout(), h.clearUserInfo(), d.clearMenu(), s.push(i.loginPath);
1312
- }, se = (N) => {
1313
- V.value && !V.value.contains(N.target) && re(), Y.value && !Y.value.contains(N.target) && me();
1314
- }, $ = (N) => {
1315
- N.key === "Escape" && (me(), re());
1359
+ re(), _.logout(), h.clearUserInfo(), d.clearMenu(), s.push(i.loginPath);
1360
+ }, se = (I) => {
1361
+ V.value && !V.value.contains(I.target) && re(), G.value && !G.value.contains(I.target) && me();
1362
+ }, L = (I) => {
1363
+ I.key === "Escape" && (me(), re());
1316
1364
  };
1317
1365
  return qe(() => {
1318
- document.addEventListener("click", se), document.addEventListener("fullscreenchange", he), document.addEventListener("keydown", $), Q.value = document.documentElement.classList.contains("grey-mode");
1366
+ document.addEventListener("click", se), document.addEventListener("fullscreenchange", he), document.addEventListener("keydown", L), Q.value = document.documentElement.classList.contains("grey-mode");
1319
1367
  }), He(() => {
1320
- document.removeEventListener("click", se), document.removeEventListener("fullscreenchange", he), document.removeEventListener("keydown", $);
1321
- }), (N, C) => {
1368
+ document.removeEventListener("click", se), document.removeEventListener("fullscreenchange", he), document.removeEventListener("keydown", L);
1369
+ }), (I, C) => {
1322
1370
  var le;
1323
- return o(), c("div", Js, [
1324
- e("div", Zs, [
1371
+ return o(), u("div", Ws, [
1372
+ e("div", qs, [
1325
1373
  e("img", {
1326
1374
  src: p.value,
1327
1375
  alt: "Logo",
1328
1376
  class: "top-menu__logo-img"
1329
- }, null, 8, Qs),
1330
- e("span", eo, x(n(i).appName), 1)
1377
+ }, null, 8, Hs),
1378
+ e("span", Ys, x(n(i).appName), 1)
1331
1379
  ]),
1332
- w(n(Ze), {
1333
- "model-value": f.value,
1380
+ k(n(Ze), {
1381
+ "model-value": m.value,
1334
1382
  mode: "horizontal",
1335
- "background-color": u.value,
1383
+ "background-color": c.value,
1336
1384
  "text-color": W.value,
1337
1385
  "active-text-color": P.value,
1338
1386
  class: "top-menu__menu",
1339
1387
  onSelect: te
1340
1388
  }, {
1341
1389
  default: S(() => [
1342
- (o(!0), c(j, null, J(n(d).menuList, (r) => (o(), c(j, {
1390
+ (o(!0), u(j, null, Z(n(d).menuList, (r) => (o(), u(j, {
1343
1391
  key: r.menuUrl
1344
1392
  }, [
1345
1393
  r.children && r.children.length > 0 ? (o(), A(n(We), {
@@ -1347,19 +1395,19 @@ const fe = Pe("menu", () => {
1347
1395
  index: r.menuUrl
1348
1396
  }, {
1349
1397
  title: S(() => [
1350
- e("span", to, [
1351
- r.menuName !== "首页" ? (o(), c("span", so, [
1352
- X(E(r.icon)) ? (o(), A(n(U), {
1398
+ e("span", Gs, [
1399
+ r.menuName !== "首页" ? (o(), u("span", Xs, [
1400
+ J(E(r.icon)) ? (o(), A(n(U), {
1353
1401
  key: 0,
1354
1402
  name: E(r.icon),
1355
1403
  size: 16
1356
- }, null, 8, ["name"])) : (o(), c("span", oo, x(F(r.menuName)), 1))
1404
+ }, null, 8, ["name"])) : (o(), u("span", Js, x(F(r.menuName)), 1))
1357
1405
  ])) : z("", !0),
1358
- e("span", ao, x(r.menuName), 1)
1406
+ e("span", Zs, x(r.menuName), 1)
1359
1407
  ])
1360
1408
  ]),
1361
1409
  default: S(() => [
1362
- (o(!0), c(j, null, J(r.children, (v) => (o(), c(j, {
1410
+ (o(!0), u(j, null, Z(r.children, (v) => (o(), u(j, {
1363
1411
  key: v.menuUrl
1364
1412
  }, [
1365
1413
  v.children && v.children.length > 0 ? (o(), A(n(We), {
@@ -1367,52 +1415,52 @@ const fe = Pe("menu", () => {
1367
1415
  index: v.menuUrl
1368
1416
  }, {
1369
1417
  title: S(() => [
1370
- e("span", no, [
1371
- e("span", lo, [
1372
- X(E(v.icon)) ? (o(), A(n(U), {
1418
+ e("span", Qs, [
1419
+ e("span", eo, [
1420
+ J(E(v.icon)) ? (o(), A(n(U), {
1373
1421
  key: 0,
1374
1422
  name: E(v.icon),
1375
1423
  size: 16
1376
- }, null, 8, ["name"])) : (o(), c("span", ro, x(F(v.menuName)), 1))
1424
+ }, null, 8, ["name"])) : (o(), u("span", to, x(F(v.menuName)), 1))
1377
1425
  ]),
1378
- e("span", io, x(v.menuName), 1)
1426
+ e("span", so, x(v.menuName), 1)
1379
1427
  ])
1380
1428
  ]),
1381
1429
  default: S(() => [
1382
- (o(!0), c(j, null, J(v.children, (O) => (o(), A(n(Ie), {
1430
+ (o(!0), u(j, null, Z(v.children, (O) => (o(), A(n(Ne), {
1383
1431
  key: O.menuUrl,
1384
1432
  index: O.menuUrl
1385
1433
  }, {
1386
1434
  default: S(() => [
1387
- e("span", co, [
1388
- e("span", uo, [
1389
- X(E(O.icon)) ? (o(), A(n(U), {
1435
+ e("span", oo, [
1436
+ e("span", no, [
1437
+ J(E(O.icon)) ? (o(), A(n(U), {
1390
1438
  key: 0,
1391
1439
  name: E(O.icon),
1392
1440
  size: 16
1393
- }, null, 8, ["name"])) : (o(), c("span", mo, x(F(O.menuName)), 1))
1441
+ }, null, 8, ["name"])) : (o(), u("span", ao, x(F(O.menuName)), 1))
1394
1442
  ]),
1395
- e("span", po, x(O.menuName), 1)
1443
+ e("span", lo, x(O.menuName), 1)
1396
1444
  ])
1397
1445
  ]),
1398
1446
  _: 2
1399
1447
  }, 1032, ["index"]))), 128))
1400
1448
  ]),
1401
1449
  _: 2
1402
- }, 1032, ["index"])) : (o(), A(n(Ie), {
1450
+ }, 1032, ["index"])) : (o(), A(n(Ne), {
1403
1451
  key: 1,
1404
1452
  index: v.menuUrl
1405
1453
  }, {
1406
1454
  default: S(() => [
1407
- e("span", vo, [
1408
- e("span", ho, [
1409
- X(E(v.icon)) ? (o(), A(n(U), {
1455
+ e("span", ro, [
1456
+ e("span", io, [
1457
+ J(E(v.icon)) ? (o(), A(n(U), {
1410
1458
  key: 0,
1411
1459
  name: E(v.icon),
1412
1460
  size: 16
1413
- }, null, 8, ["name"])) : (o(), c("span", _o, x(F(v.menuName)), 1))
1461
+ }, null, 8, ["name"])) : (o(), u("span", co, x(F(v.menuName)), 1))
1414
1462
  ]),
1415
- e("span", fo, x(v.menuName), 1)
1463
+ e("span", uo, x(v.menuName), 1)
1416
1464
  ])
1417
1465
  ]),
1418
1466
  _: 2
@@ -1420,20 +1468,20 @@ const fe = Pe("menu", () => {
1420
1468
  ], 64))), 128))
1421
1469
  ]),
1422
1470
  _: 2
1423
- }, 1032, ["index"])) : (o(), A(n(Ie), {
1471
+ }, 1032, ["index"])) : (o(), A(n(Ne), {
1424
1472
  key: 1,
1425
1473
  index: r.menuUrl
1426
1474
  }, {
1427
1475
  default: S(() => [
1428
- e("span", go, [
1429
- r.menuName !== "首页" ? (o(), c("span", yo, [
1430
- X(E(r.icon)) ? (o(), A(n(U), {
1476
+ e("span", mo, [
1477
+ r.menuName !== "首页" ? (o(), u("span", po, [
1478
+ J(E(r.icon)) ? (o(), A(n(U), {
1431
1479
  key: 0,
1432
1480
  name: E(r.icon),
1433
1481
  size: 16
1434
- }, null, 8, ["name"])) : (o(), c("span", bo, x(F(r.menuName)), 1))
1482
+ }, null, 8, ["name"])) : (o(), u("span", vo, x(F(r.menuName)), 1))
1435
1483
  ])) : z("", !0),
1436
- e("span", wo, x(r.menuName), 1)
1484
+ e("span", ho, x(r.menuName), 1)
1437
1485
  ])
1438
1486
  ]),
1439
1487
  _: 2
@@ -1442,13 +1490,13 @@ const fe = Pe("menu", () => {
1442
1490
  ]),
1443
1491
  _: 1
1444
1492
  }, 8, ["model-value", "background-color", "text-color", "active-text-color"]),
1445
- e("div", ko, [
1493
+ e("div", _o, [
1446
1494
  e("div", {
1447
1495
  class: "top-menu__search",
1448
1496
  ref_key: "searchRef",
1449
- ref: Y
1497
+ ref: G
1450
1498
  }, [
1451
- w(n(U), {
1499
+ k(n(U), {
1452
1500
  name: "search",
1453
1501
  size: 14,
1454
1502
  class: "top-menu__search-icon"
@@ -1458,30 +1506,30 @@ const fe = Pe("menu", () => {
1458
1506
  type: "text",
1459
1507
  class: "top-menu__search-input",
1460
1508
  placeholder: "搜索菜单...",
1461
- onFocus: C[1] || (C[1] = (r) => G.value = !0)
1509
+ onFocus: C[1] || (C[1] = (r) => X.value = !0)
1462
1510
  }, null, 544), [
1463
1511
  [Ye, ee.value]
1464
1512
  ]),
1465
- w(Se, { name: "search-dropdown" }, {
1513
+ k(Se, { name: "search-dropdown" }, {
1466
1514
  default: S(() => [
1467
- G.value && (g.value.length > 0 || ee.value) ? (o(), c("div", xo, [
1468
- g.value.length > 0 ? (o(), c("div", Co, [
1469
- (o(!0), c(j, null, J(g.value, (r) => (o(), c("div", {
1515
+ X.value && (y.value.length > 0 || ee.value) ? (o(), u("div", fo, [
1516
+ y.value.length > 0 ? (o(), u("div", go, [
1517
+ (o(!0), u(j, null, Z(y.value, (r) => (o(), u("div", {
1470
1518
  key: r.path,
1471
1519
  class: "top-menu__search-item",
1472
- onClick: (v) => ge(r.path)
1520
+ onClick: (v) => ye(r.path)
1473
1521
  }, [
1474
- r.title !== "首页" ? (o(), c("span", Lo, [
1475
- X(E(r.icon)) ? (o(), A(n(U), {
1522
+ r.title !== "首页" ? (o(), u("span", bo, [
1523
+ J(E(r.icon)) ? (o(), A(n(U), {
1476
1524
  key: 0,
1477
1525
  name: E(r.icon),
1478
1526
  size: 16
1479
- }, null, 8, ["name"])) : (o(), c("span", Mo, x(F(r.title)), 1))
1527
+ }, null, 8, ["name"])) : (o(), u("span", ko, x(F(r.title)), 1))
1480
1528
  ])) : z("", !0),
1481
- e("span", So, x(r.title), 1),
1482
- r.parentTitle ? (o(), c("span", No, x(r.parentTitle), 1)) : z("", !0)
1483
- ], 8, $o))), 128))
1484
- ])) : (o(), c("div", Eo, " 未找到匹配的菜单 "))
1529
+ e("span", wo, x(r.title), 1),
1530
+ r.parentTitle ? (o(), u("span", xo, x(r.parentTitle), 1)) : z("", !0)
1531
+ ], 8, yo))), 128))
1532
+ ])) : (o(), u("div", Co, " 未找到匹配的菜单 "))
1485
1533
  ])) : z("", !0)
1486
1534
  ]),
1487
1535
  _: 1
@@ -1492,17 +1540,17 @@ const fe = Pe("menu", () => {
1492
1540
  onClick: oe,
1493
1541
  title: R.value ? "退出全屏" : "全屏"
1494
1542
  }, [
1495
- w(n(U), {
1543
+ k(n(U), {
1496
1544
  name: R.value ? "fullscreen-exit" : "fullscreen",
1497
1545
  size: 16
1498
1546
  }, null, 8, ["name"])
1499
- ], 8, Io),
1547
+ ], 8, Lo),
1500
1548
  e("div", {
1501
1549
  class: "top-menu__action",
1502
1550
  onClick: ie,
1503
1551
  title: "换肤设置"
1504
1552
  }, [
1505
- w(n(U), {
1553
+ k(n(U), {
1506
1554
  name: "skin",
1507
1555
  size: 16
1508
1556
  })
@@ -1512,7 +1560,7 @@ const fe = Pe("menu", () => {
1512
1560
  onClick: K,
1513
1561
  title: "切换主题"
1514
1562
  }, [
1515
- w(n(U), {
1563
+ k(n(U), {
1516
1564
  name: n(i).isDark ? "sun" : "moon",
1517
1565
  size: 16
1518
1566
  }, null, 8, ["name"])
@@ -1526,12 +1574,12 @@ const fe = Pe("menu", () => {
1526
1574
  class: "top-menu__user-trigger",
1527
1575
  onClick: Ae(we, ["stop"])
1528
1576
  }, [
1529
- e("div", Uo, [
1577
+ e("div", $o, [
1530
1578
  e("span", null, x(((le = n(h).userName) == null ? void 0 : le.charAt(0)) || "U"), 1)
1531
1579
  ]),
1532
- e("span", To, x(n(h).userName), 1),
1580
+ e("span", Mo, x(n(h).userName), 1),
1533
1581
  e("span", {
1534
- class: Z(["top-menu__user-arrow", { "is-active": B.value }])
1582
+ class: H(["top-menu__user-arrow", { "is-active": B.value }])
1535
1583
  }, [...C[3] || (C[3] = [
1536
1584
  e("svg", {
1537
1585
  viewBox: "0 0 12 12",
@@ -1547,27 +1595,27 @@ const fe = Pe("menu", () => {
1547
1595
  ], -1)
1548
1596
  ])], 2)
1549
1597
  ]),
1550
- w(Se, { name: "dropdown" }, {
1598
+ k(Se, { name: "dropdown" }, {
1551
1599
  default: S(() => {
1552
1600
  var r;
1553
1601
  return [
1554
- B.value ? (o(), c("div", Po, [
1555
- e("div", zo, [
1556
- e("div", Fo, [
1602
+ B.value ? (o(), u("div", So, [
1603
+ e("div", Io, [
1604
+ e("div", Eo, [
1557
1605
  e("span", null, x(((r = n(h).userName) == null ? void 0 : r.charAt(0)) || "U"), 1)
1558
1606
  ]),
1559
- e("div", Do, [
1560
- e("div", Ao, x(n(h).userName), 1),
1561
- e("div", Bo, x(n(h).departmentName), 1)
1607
+ e("div", No, [
1608
+ e("div", Uo, x(n(h).userName), 1),
1609
+ e("div", To, x(n(h).departmentName), 1)
1562
1610
  ])
1563
1611
  ]),
1564
1612
  C[8] || (C[8] = e("div", { class: "top-menu__dropdown-divider" }, null, -1)),
1565
- e("div", Vo, [
1613
+ e("div", Po, [
1566
1614
  e("div", {
1567
1615
  class: "top-menu__dropdown-item",
1568
- onClick: xe
1616
+ onClick: Ce
1569
1617
  }, [
1570
- w(n(U), {
1618
+ k(n(U), {
1571
1619
  name: "user",
1572
1620
  size: 16
1573
1621
  }),
@@ -1575,9 +1623,9 @@ const fe = Pe("menu", () => {
1575
1623
  ]),
1576
1624
  e("div", {
1577
1625
  class: "top-menu__dropdown-item",
1578
- onClick: I
1626
+ onClick: N
1579
1627
  }, [
1580
- w(n(U), {
1628
+ k(n(U), {
1581
1629
  name: "lock",
1582
1630
  size: 16
1583
1631
  }),
@@ -1588,7 +1636,7 @@ const fe = Pe("menu", () => {
1588
1636
  class: "top-menu__dropdown-item top-menu__dropdown-item--danger",
1589
1637
  onClick: b
1590
1638
  }, [
1591
- w(n(U), {
1639
+ k(n(U), {
1592
1640
  name: "logout",
1593
1641
  size: 16
1594
1642
  }),
@@ -1602,34 +1650,34 @@ const fe = Pe("menu", () => {
1602
1650
  })
1603
1651
  ], 512)
1604
1652
  ]),
1605
- w(n(Qe), {
1606
- modelValue: H.value,
1607
- "onUpdate:modelValue": C[2] || (C[2] = (r) => H.value = r),
1653
+ k(n(Qe), {
1654
+ modelValue: Y.value,
1655
+ "onUpdate:modelValue": C[2] || (C[2] = (r) => Y.value = r),
1608
1656
  title: "换肤设置",
1609
1657
  direction: "rtl",
1610
1658
  size: "320px"
1611
1659
  }, {
1612
1660
  default: S(() => [
1613
- e("div", Oo, [
1614
- e("div", Ro, [
1661
+ e("div", zo, [
1662
+ e("div", Fo, [
1615
1663
  C[12] || (C[12] = e("div", { class: "settings-title" }, "布局模式", -1)),
1616
- e("div", Ko, [
1617
- (o(), c(j, null, J(pe, (r) => e("div", {
1664
+ e("div", Do, [
1665
+ (o(), u(j, null, Z(pe, (r) => e("div", {
1618
1666
  key: r.value,
1619
- class: Z(["layout-option", { "is-active": ve.value === r.value }]),
1620
- onClick: (v) => ne(r.value)
1667
+ class: H(["layout-option", { "is-active": ve.value === r.value }]),
1668
+ onClick: (v) => ae(r.value)
1621
1669
  }, [
1622
- e("div", Wo, [
1623
- r.value === "sidebar" ? (o(), c("div", qo, [...C[9] || (C[9] = [
1670
+ e("div", Bo, [
1671
+ r.value === "sidebar" ? (o(), u("div", Vo, [...C[9] || (C[9] = [
1624
1672
  e("div", { class: "preview-aside" }, null, -1),
1625
1673
  e("div", { class: "preview-main" }, [
1626
1674
  e("div", { class: "preview-header" }),
1627
1675
  e("div", { class: "preview-content" })
1628
1676
  ], -1)
1629
- ])])) : r.value === "top" ? (o(), c("div", Ho, [...C[10] || (C[10] = [
1677
+ ])])) : r.value === "top" ? (o(), u("div", Oo, [...C[10] || (C[10] = [
1630
1678
  e("div", { class: "preview-header-full" }, null, -1),
1631
1679
  e("div", { class: "preview-content-full" }, null, -1)
1632
- ])])) : (o(), c("div", Yo, [...C[11] || (C[11] = [
1680
+ ])])) : (o(), u("div", Ro, [...C[11] || (C[11] = [
1633
1681
  e("div", { class: "preview-header-mix" }, [
1634
1682
  e("div", { class: "preview-mix-left" })
1635
1683
  ], -1),
@@ -1639,19 +1687,19 @@ const fe = Pe("menu", () => {
1639
1687
  ], -1)
1640
1688
  ])]))
1641
1689
  ]),
1642
- e("span", Go, x(r.label), 1)
1643
- ], 10, jo)), 64))
1690
+ e("span", Ko, x(r.label), 1)
1691
+ ], 10, Ao)), 64))
1644
1692
  ])
1645
1693
  ]),
1646
- e("div", Xo, [
1694
+ e("div", jo, [
1647
1695
  C[13] || (C[13] = e("div", { class: "settings-title" }, "主题色", -1)),
1648
- e("div", Jo, [
1649
- (o(), c(j, null, J(ke, (r) => e("div", {
1696
+ e("div", Wo, [
1697
+ (o(), u(j, null, Z(xe, (r) => e("div", {
1650
1698
  key: r.value,
1651
- class: Z(["color-option", { "is-active": n(i).primaryColor === r.value }]),
1699
+ class: H(["color-option", { "is-active": n(i).primaryColor === r.value }]),
1652
1700
  style: Ue({ backgroundColor: r.value }),
1653
1701
  title: r.label,
1654
- onClick: (v) => ye(r.value)
1702
+ onClick: (v) => be(r.value)
1655
1703
  }, [
1656
1704
  n(i).primaryColor === r.value ? (o(), A(n(U), {
1657
1705
  key: 0,
@@ -1659,25 +1707,25 @@ const fe = Pe("menu", () => {
1659
1707
  size: 12,
1660
1708
  color: "#fff"
1661
1709
  })) : z("", !0)
1662
- ], 14, Zo)), 64))
1710
+ ], 14, qo)), 64))
1663
1711
  ])
1664
1712
  ]),
1665
- e("div", Qo, [
1713
+ e("div", Ho, [
1666
1714
  C[18] || (C[18] = e("div", { class: "settings-title" }, "功能设置", -1)),
1667
- e("div", ea, [
1668
- e("div", ta, [
1715
+ e("div", Yo, [
1716
+ e("div", Go, [
1669
1717
  C[15] || (C[15] = e("span", null, "灰色模式", -1)),
1670
1718
  e("div", {
1671
- class: Z(["switch-wrapper", { "is-checked": Q.value }]),
1719
+ class: H(["switch-wrapper", { "is-checked": Q.value }]),
1672
1720
  onClick: M
1673
1721
  }, [...C[14] || (C[14] = [
1674
1722
  e("span", { class: "switch-core" }, null, -1)
1675
1723
  ])], 2)
1676
1724
  ]),
1677
- e("div", sa, [
1725
+ e("div", Xo, [
1678
1726
  C[17] || (C[17] = e("span", null, "暗黑模式", -1)),
1679
1727
  e("div", {
1680
- class: Z(["switch-wrapper", { "is-checked": n(i).isDark }]),
1728
+ class: H(["switch-wrapper", { "is-checked": n(i).isDark }]),
1681
1729
  onClick: q
1682
1730
  }, [...C[16] || (C[16] = [
1683
1731
  e("span", { class: "switch-core" }, null, -1)
@@ -1692,62 +1740,62 @@ const fe = Pe("menu", () => {
1692
1740
  ]);
1693
1741
  };
1694
1742
  }
1695
- }), aa = /* @__PURE__ */ de(oa, [["__scopeId", "data-v-711d5b8d"]]), na = { class: "mix-top-menu" }, la = { class: "mix-top-menu__logo" }, ra = ["src"], ia = { class: "mix-top-menu__logo-text" }, ca = { class: "mix-top-menu__menu-content" }, ua = {
1743
+ }), Zo = /* @__PURE__ */ de(Jo, [["__scopeId", "data-v-711d5b8d"]]), Qo = { class: "mix-top-menu" }, en = { class: "mix-top-menu__logo" }, tn = ["src"], sn = { class: "mix-top-menu__logo-text" }, on = { class: "mix-top-menu__menu-content" }, nn = {
1696
1744
  key: 0,
1697
1745
  class: "mix-top-menu__menu-icon"
1698
- }, da = {
1746
+ }, an = {
1699
1747
  key: 1,
1700
1748
  class: "mix-top-menu__menu-char"
1701
- }, ma = { class: "mix-top-menu__menu-text" }, pa = { class: "mix-top-menu__actions" }, va = {
1749
+ }, ln = { class: "mix-top-menu__menu-text" }, rn = { class: "mix-top-menu__actions" }, cn = {
1702
1750
  key: 0,
1703
1751
  class: "mix-top-menu__search-dropdown"
1704
- }, ha = {
1752
+ }, un = {
1705
1753
  key: 0,
1706
1754
  class: "mix-top-menu__search-results"
1707
- }, _a = ["onClick"], fa = {
1755
+ }, dn = ["onClick"], mn = {
1708
1756
  key: 0,
1709
1757
  class: "mix-top-menu__search-icon-item"
1710
- }, ga = {
1758
+ }, pn = {
1711
1759
  key: 1,
1712
1760
  class: "mix-top-menu__search-char"
1713
- }, ya = { class: "mix-top-menu__search-item-title" }, ba = {
1761
+ }, vn = { class: "mix-top-menu__search-item-title" }, hn = {
1714
1762
  key: 1,
1715
1763
  class: "mix-top-menu__search-item-parent"
1716
- }, wa = {
1764
+ }, _n = {
1717
1765
  key: 1,
1718
1766
  class: "mix-top-menu__search-empty"
1719
- }, ka = ["title"], xa = { class: "mix-top-menu__avatar" }, Ca = { class: "mix-top-menu__user-name" }, $a = {
1767
+ }, fn = ["title"], gn = { class: "mix-top-menu__avatar" }, yn = { class: "mix-top-menu__user-name" }, bn = {
1720
1768
  key: 0,
1721
1769
  class: "mix-top-menu__dropdown"
1722
- }, La = { class: "mix-top-menu__dropdown-header" }, Ma = { class: "mix-top-menu__dropdown-avatar" }, Sa = { class: "mix-top-menu__dropdown-info" }, Na = { class: "mix-top-menu__dropdown-name" }, Ea = { class: "mix-top-menu__dropdown-role" }, Ia = { class: "mix-top-menu__dropdown-menu" }, Ua = { class: "settings-drawer" }, Ta = { class: "settings-section" }, Pa = { class: "settings-layout-options" }, za = ["onClick"], Fa = { class: "layout-option__preview" }, Da = {
1770
+ }, kn = { class: "mix-top-menu__dropdown-header" }, wn = { class: "mix-top-menu__dropdown-avatar" }, xn = { class: "mix-top-menu__dropdown-info" }, Cn = { class: "mix-top-menu__dropdown-name" }, Ln = { class: "mix-top-menu__dropdown-role" }, $n = { class: "mix-top-menu__dropdown-menu" }, Mn = { class: "settings-drawer" }, Sn = { class: "settings-section" }, In = { class: "settings-layout-options" }, En = ["onClick"], Nn = { class: "layout-option__preview" }, Un = {
1723
1771
  key: 0,
1724
1772
  class: "layout-preview-sidebar"
1725
- }, Aa = {
1773
+ }, Tn = {
1726
1774
  key: 1,
1727
1775
  class: "layout-preview-top"
1728
- }, Ba = {
1776
+ }, Pn = {
1729
1777
  key: 2,
1730
1778
  class: "layout-preview-mix"
1731
- }, Va = { class: "layout-option__label" }, Oa = { class: "settings-section" }, Ra = { class: "settings-color-options" }, Ka = ["title", "onClick"], ja = { class: "settings-section" }, Wa = { class: "settings-switch-list" }, qa = { class: "settings-switch-item" }, Ha = { class: "settings-switch-item" }, Ya = /* @__PURE__ */ ce({
1779
+ }, zn = { class: "layout-option__label" }, Fn = { class: "settings-section" }, Dn = { class: "settings-color-options" }, An = ["title", "onClick"], Bn = { class: "settings-section" }, Vn = { class: "settings-switch-list" }, On = { class: "settings-switch-item" }, Rn = { class: "settings-switch-item" }, Kn = /* @__PURE__ */ ce({
1732
1780
  __name: "MixTopMenu",
1733
1781
  props: {
1734
1782
  logoSrc: {}
1735
1783
  },
1736
1784
  setup(t) {
1737
- const a = t, p = k(() => a.logoSrc || Te("/vite.svg")), l = Ee(), s = be(), d = fe(), i = _e(), h = ue(), m = ze(), f = y(""), _ = (r, v = "") => {
1785
+ const a = t, p = w(() => a.logoSrc || Te("/vite.svg")), l = Ee(), s = ke(), d = ge(), i = fe(), h = ue(), _ = ze(), m = g(""), f = (r, v = "") => {
1738
1786
  const O = [];
1739
- return r.forEach((L) => {
1740
- L.children && L.children.length > 0 ? O.push(..._(L.children, L.menuName)) : O.push({ ...L, parentTitle: v, title: L.menuName, path: L.menuUrl });
1787
+ return r.forEach(($) => {
1788
+ $.children && $.children.length > 0 ? O.push(...f($.children, $.menuName)) : O.push({ ...$, parentTitle: v, title: $.menuName, path: $.menuUrl });
1741
1789
  }), O;
1742
- }, g = k(() => E.value.trim() ? _(d.menuList).filter(
1790
+ }, y = w(() => E.value.trim() ? f(d.menuList).filter(
1743
1791
  (v) => v.title.toLowerCase().includes(E.value.toLowerCase())
1744
- ) : []), u = k(() => {
1745
- const r = d.menuList.find((v) => v.menuUrl === f.value);
1792
+ ) : []), c = w(() => {
1793
+ const r = d.menuList.find((v) => v.menuUrl === m.value);
1746
1794
  return (r == null ? void 0 : r.children) || [];
1747
- }), W = k(() => d.menuList.find((r) => !!(l.path === r.menuUrl || r.children && r.children.some((v) => l.path.startsWith(v.menuUrl) || l.path === v.menuUrl)))), P = () => {
1748
- W.value ? f.value = W.value.menuUrl : d.menuList.length > 0 && (f.value = d.menuList[0].menuUrl);
1795
+ }), W = w(() => d.menuList.find((r) => !!(l.path === r.menuUrl || r.children && r.children.some((v) => l.path.startsWith(v.menuUrl) || l.path === v.menuUrl)))), P = () => {
1796
+ W.value ? m.value = W.value.menuUrl : d.menuList.length > 0 && (m.value = d.menuList[0].menuUrl);
1749
1797
  }, B = (r) => {
1750
- f.value = r;
1798
+ m.value = r;
1751
1799
  const v = d.menuList.find((O) => O.menuUrl === r);
1752
1800
  if (v)
1753
1801
  if (v.children && v.children.length > 0) {
@@ -1755,13 +1803,13 @@ const fe = Pe("menu", () => {
1755
1803
  l.path !== O && s.push(O);
1756
1804
  } else
1757
1805
  l.path !== r && s.push(r);
1758
- }, V = k(() => i.isDark ? "#1d1e1f" : "#fff"), R = k(() => i.isDark ? "#cfd3dc" : "#303133"), H = k(() => "#409eff"), Q = y(!1), G = y(null), ee = y(!1), Y = y(!1), te = y(!1), D = y(!1), E = y(""), F = y(null);
1759
- Le(() => l.path, () => {
1760
- P(), i.setMixSubMenus(u.value);
1761
- }), Le(() => d.menuList, (r) => {
1762
- r && r.length > 0 && (P(), i.setMixSubMenus(u.value));
1806
+ }, V = w(() => i.isDark ? "#1d1e1f" : "#fff"), R = w(() => i.isDark ? "#cfd3dc" : "#303133"), Y = w(() => "#409eff"), Q = g(!1), X = g(null), ee = g(!1), G = g(!1), te = g(!1), D = g(!1), E = g(""), F = g(null);
1807
+ $e(() => l.path, () => {
1808
+ P(), i.setMixSubMenus(c.value);
1809
+ }), $e(() => d.menuList, (r) => {
1810
+ r && r.length > 0 && (P(), i.setMixSubMenus(c.value));
1763
1811
  }, { immediate: !0 });
1764
- const X = /* @__PURE__ */ new Set([
1812
+ const J = /* @__PURE__ */ new Set([
1765
1813
  "arrow-up",
1766
1814
  "arrow-down",
1767
1815
  "arrow-left",
@@ -1900,54 +1948,54 @@ const fe = Pe("menu", () => {
1900
1948
  list: "list",
1901
1949
  grid: "grid"
1902
1950
  }[r] || r;
1903
- }, oe = (r) => r ? r.charAt(0) : "", he = (r) => X.has(r), we = () => {
1904
- i.toggleTheme(), Y.value = !1;
1951
+ }, oe = (r) => r ? r.charAt(0) : "", he = (r) => J.has(r), we = () => {
1952
+ i.toggleTheme(), G.value = !1;
1905
1953
  }, re = () => {
1906
1954
  document.fullscreenElement ? document.exitFullscreen() : document.documentElement.requestFullscreen();
1907
1955
  }, me = () => {
1908
1956
  ee.value = !!document.fullscreenElement;
1909
- }, ge = () => {
1957
+ }, ye = () => {
1910
1958
  Q.value = !Q.value;
1911
1959
  }, ie = () => {
1912
1960
  Q.value = !1;
1913
- }, ae = () => {
1961
+ }, ne = () => {
1914
1962
  D.value = !1, E.value = "";
1915
1963
  }, M = (r) => {
1916
- s.push(r), ae();
1964
+ s.push(r), ne();
1917
1965
  }, q = () => {
1918
- Y.value = !0;
1966
+ G.value = !0;
1919
1967
  }, pe = (r) => {
1920
1968
  te.value = r;
1921
1969
  const v = document.documentElement;
1922
1970
  r ? v.classList.add("grey-mode") : v.classList.remove("grey-mode");
1923
1971
  }, ve = () => {
1924
- pe(!te.value), Y.value = !1;
1925
- }, ne = () => {
1926
- i.toggleTheme(), Y.value = !1;
1927
- }, ke = [
1972
+ pe(!te.value), G.value = !1;
1973
+ }, ae = () => {
1974
+ i.toggleTheme(), G.value = !1;
1975
+ }, xe = [
1928
1976
  { value: "sidebar", label: "左侧菜单", icon: "sidebar-left" },
1929
1977
  { value: "top", label: "顶部菜单", icon: "menu" },
1930
1978
  { value: "mix", label: "混合菜单", icon: "grid" }
1931
- ], ye = k(() => i.layout), xe = (r) => {
1932
- i.setLayout(r), Y.value = !1;
1933
- }, I = [
1979
+ ], be = w(() => i.layout), Ce = (r) => {
1980
+ i.setLayout(r), G.value = !1;
1981
+ }, N = [
1934
1982
  { value: "#409eff", label: "默认蓝" },
1935
1983
  { value: "#0F6FDE", label: "企业蓝" },
1936
1984
  { value: "#00A870", label: "翡翠绿" },
1937
1985
  { value: "#D46B08", label: "琥珀橙" },
1938
1986
  { value: "#1F2329", label: "石墨黑" }
1939
1987
  ], b = (r) => {
1940
- i.setPrimaryColor(r), Y.value = !1;
1988
+ i.setPrimaryColor(r), G.value = !1;
1941
1989
  }, se = () => {
1942
1990
  ie(), s.push("/profile");
1943
- }, $ = () => {
1991
+ }, L = () => {
1944
1992
  ie(), s.push("/change-password");
1945
- }, N = () => {
1946
- ie(), m.logout(), h.clearUserInfo(), d.clearMenu(), s.push(i.loginPath);
1993
+ }, I = () => {
1994
+ ie(), _.logout(), h.clearUserInfo(), d.clearMenu(), s.push(i.loginPath);
1947
1995
  }, C = (r) => {
1948
- G.value && !G.value.contains(r.target) && ie(), F.value && !F.value.contains(r.target) && ae();
1996
+ X.value && !X.value.contains(r.target) && ie(), F.value && !F.value.contains(r.target) && ne();
1949
1997
  }, le = (r) => {
1950
- r.key === "Escape" && (ae(), ie());
1998
+ r.key === "Escape" && (ne(), ie());
1951
1999
  };
1952
2000
  return qe(() => {
1953
2001
  document.addEventListener("click", C), document.addEventListener("fullscreenchange", me), document.addEventListener("keydown", le), te.value = document.documentElement.classList.contains("grey-mode"), P();
@@ -1955,39 +2003,39 @@ const fe = Pe("menu", () => {
1955
2003
  document.removeEventListener("click", C), document.removeEventListener("fullscreenchange", me), document.removeEventListener("keydown", le);
1956
2004
  }), (r, v) => {
1957
2005
  var O;
1958
- return o(), c("div", na, [
1959
- e("div", la, [
2006
+ return o(), u("div", Qo, [
2007
+ e("div", en, [
1960
2008
  e("img", {
1961
2009
  src: p.value,
1962
2010
  alt: "Logo",
1963
2011
  class: "mix-top-menu__logo-img"
1964
- }, null, 8, ra),
1965
- e("span", ia, x(n(i).appName), 1)
2012
+ }, null, 8, tn),
2013
+ e("span", sn, x(n(i).appName), 1)
1966
2014
  ]),
1967
- w(n(Ze), {
1968
- "model-value": f.value,
2015
+ k(n(Ze), {
2016
+ "model-value": m.value,
1969
2017
  mode: "horizontal",
1970
2018
  "background-color": V.value,
1971
2019
  "text-color": R.value,
1972
- "active-text-color": H.value,
2020
+ "active-text-color": Y.value,
1973
2021
  class: "mix-top-menu__menu",
1974
2022
  onSelect: B
1975
2023
  }, {
1976
2024
  default: S(() => [
1977
- (o(!0), c(j, null, J(n(d).menuList, (L) => (o(), A(n(Ie), {
1978
- key: L.menuUrl,
1979
- index: L.menuUrl
2025
+ (o(!0), u(j, null, Z(n(d).menuList, ($) => (o(), A(n(Ne), {
2026
+ key: $.menuUrl,
2027
+ index: $.menuUrl
1980
2028
  }, {
1981
2029
  default: S(() => [
1982
- e("span", ca, [
1983
- L.menuName !== "首页" ? (o(), c("span", ua, [
1984
- he(K(L.icon)) ? (o(), A(n(U), {
2030
+ e("span", on, [
2031
+ $.menuName !== "首页" ? (o(), u("span", nn, [
2032
+ he(K($.icon)) ? (o(), A(n(U), {
1985
2033
  key: 0,
1986
- name: K(L.icon),
2034
+ name: K($.icon),
1987
2035
  size: 16
1988
- }, null, 8, ["name"])) : (o(), c("span", da, x(oe(L.menuName)), 1))
2036
+ }, null, 8, ["name"])) : (o(), u("span", an, x(oe($.menuName)), 1))
1989
2037
  ])) : z("", !0),
1990
- e("span", ma, x(L.menuName), 1)
2038
+ e("span", ln, x($.menuName), 1)
1991
2039
  ])
1992
2040
  ]),
1993
2041
  _: 2
@@ -1995,46 +2043,46 @@ const fe = Pe("menu", () => {
1995
2043
  ]),
1996
2044
  _: 1
1997
2045
  }, 8, ["model-value", "background-color", "text-color", "active-text-color"]),
1998
- e("div", pa, [
2046
+ e("div", rn, [
1999
2047
  e("div", {
2000
2048
  class: "mix-top-menu__search",
2001
2049
  ref_key: "searchRef",
2002
2050
  ref: F
2003
2051
  }, [
2004
- w(n(U), {
2052
+ k(n(U), {
2005
2053
  name: "search",
2006
2054
  size: 14,
2007
2055
  class: "mix-top-menu__search-icon"
2008
2056
  }),
2009
2057
  De(e("input", {
2010
- "onUpdate:modelValue": v[0] || (v[0] = (L) => E.value = L),
2058
+ "onUpdate:modelValue": v[0] || (v[0] = ($) => E.value = $),
2011
2059
  type: "text",
2012
2060
  class: "mix-top-menu__search-input",
2013
2061
  placeholder: "搜索菜单...",
2014
- onFocus: v[1] || (v[1] = (L) => D.value = !0)
2062
+ onFocus: v[1] || (v[1] = ($) => D.value = !0)
2015
2063
  }, null, 544), [
2016
2064
  [Ye, E.value]
2017
2065
  ]),
2018
- w(Se, { name: "search-dropdown" }, {
2066
+ k(Se, { name: "search-dropdown" }, {
2019
2067
  default: S(() => [
2020
- D.value && (g.value.length > 0 || E.value) ? (o(), c("div", va, [
2021
- g.value.length > 0 ? (o(), c("div", ha, [
2022
- (o(!0), c(j, null, J(g.value, (L) => (o(), c("div", {
2023
- key: L.path,
2068
+ D.value && (y.value.length > 0 || E.value) ? (o(), u("div", cn, [
2069
+ y.value.length > 0 ? (o(), u("div", un, [
2070
+ (o(!0), u(j, null, Z(y.value, ($) => (o(), u("div", {
2071
+ key: $.path,
2024
2072
  class: "mix-top-menu__search-item",
2025
- onClick: (tt) => M(L.path)
2073
+ onClick: (tt) => M($.path)
2026
2074
  }, [
2027
- L.title !== "首页" ? (o(), c("span", fa, [
2028
- he(K(L.icon)) ? (o(), A(n(U), {
2075
+ $.title !== "首页" ? (o(), u("span", mn, [
2076
+ he(K($.icon)) ? (o(), A(n(U), {
2029
2077
  key: 0,
2030
- name: K(L.icon),
2078
+ name: K($.icon),
2031
2079
  size: 16
2032
- }, null, 8, ["name"])) : (o(), c("span", ga, x(oe(L.title)), 1))
2080
+ }, null, 8, ["name"])) : (o(), u("span", pn, x(oe($.title)), 1))
2033
2081
  ])) : z("", !0),
2034
- e("span", ya, x(L.title), 1),
2035
- L.parentTitle ? (o(), c("span", ba, x(L.parentTitle), 1)) : z("", !0)
2036
- ], 8, _a))), 128))
2037
- ])) : (o(), c("div", wa, " 未找到匹配的菜单 "))
2082
+ e("span", vn, x($.title), 1),
2083
+ $.parentTitle ? (o(), u("span", hn, x($.parentTitle), 1)) : z("", !0)
2084
+ ], 8, dn))), 128))
2085
+ ])) : (o(), u("div", _n, " 未找到匹配的菜单 "))
2038
2086
  ])) : z("", !0)
2039
2087
  ]),
2040
2088
  _: 1
@@ -2045,17 +2093,17 @@ const fe = Pe("menu", () => {
2045
2093
  onClick: re,
2046
2094
  title: ee.value ? "退出全屏" : "全屏"
2047
2095
  }, [
2048
- w(n(U), {
2096
+ k(n(U), {
2049
2097
  name: ee.value ? "fullscreen-exit" : "fullscreen",
2050
2098
  size: 16
2051
2099
  }, null, 8, ["name"])
2052
- ], 8, ka),
2100
+ ], 8, fn),
2053
2101
  e("div", {
2054
2102
  class: "mix-top-menu__action",
2055
2103
  onClick: q,
2056
2104
  title: "换肤设置"
2057
2105
  }, [
2058
- w(n(U), {
2106
+ k(n(U), {
2059
2107
  name: "skin",
2060
2108
  size: 16
2061
2109
  })
@@ -2065,7 +2113,7 @@ const fe = Pe("menu", () => {
2065
2113
  onClick: we,
2066
2114
  title: "切换主题"
2067
2115
  }, [
2068
- w(n(U), {
2116
+ k(n(U), {
2069
2117
  name: n(i).isDark ? "sun" : "moon",
2070
2118
  size: 16
2071
2119
  }, null, 8, ["name"])
@@ -2073,18 +2121,18 @@ const fe = Pe("menu", () => {
2073
2121
  e("div", {
2074
2122
  class: "mix-top-menu__user",
2075
2123
  ref_key: "dropdownRef",
2076
- ref: G
2124
+ ref: X
2077
2125
  }, [
2078
2126
  e("div", {
2079
2127
  class: "mix-top-menu__user-trigger",
2080
- onClick: Ae(ge, ["stop"])
2128
+ onClick: Ae(ye, ["stop"])
2081
2129
  }, [
2082
- e("div", xa, [
2130
+ e("div", gn, [
2083
2131
  e("span", null, x(((O = n(h).userName) == null ? void 0 : O.charAt(0)) || "U"), 1)
2084
2132
  ]),
2085
- e("span", Ca, x(n(h).userName), 1),
2133
+ e("span", yn, x(n(h).userName), 1),
2086
2134
  e("span", {
2087
- class: Z(["mix-top-menu__user-arrow", { "is-active": Q.value }])
2135
+ class: H(["mix-top-menu__user-arrow", { "is-active": Q.value }])
2088
2136
  }, [...v[3] || (v[3] = [
2089
2137
  e("svg", {
2090
2138
  viewBox: "0 0 12 12",
@@ -2100,27 +2148,27 @@ const fe = Pe("menu", () => {
2100
2148
  ], -1)
2101
2149
  ])], 2)
2102
2150
  ]),
2103
- w(Se, { name: "dropdown" }, {
2151
+ k(Se, { name: "dropdown" }, {
2104
2152
  default: S(() => {
2105
- var L;
2153
+ var $;
2106
2154
  return [
2107
- Q.value ? (o(), c("div", $a, [
2108
- e("div", La, [
2109
- e("div", Ma, [
2110
- e("span", null, x(((L = n(h).userName) == null ? void 0 : L.charAt(0)) || "U"), 1)
2155
+ Q.value ? (o(), u("div", bn, [
2156
+ e("div", kn, [
2157
+ e("div", wn, [
2158
+ e("span", null, x((($ = n(h).userName) == null ? void 0 : $.charAt(0)) || "U"), 1)
2111
2159
  ]),
2112
- e("div", Sa, [
2113
- e("div", Na, x(n(h).userName), 1),
2114
- e("div", Ea, x(n(h).departmentName), 1)
2160
+ e("div", xn, [
2161
+ e("div", Cn, x(n(h).userName), 1),
2162
+ e("div", Ln, x(n(h).departmentName), 1)
2115
2163
  ])
2116
2164
  ]),
2117
2165
  v[8] || (v[8] = e("div", { class: "mix-top-menu__dropdown-divider" }, null, -1)),
2118
- e("div", Ia, [
2166
+ e("div", $n, [
2119
2167
  e("div", {
2120
2168
  class: "mix-top-menu__dropdown-item",
2121
2169
  onClick: se
2122
2170
  }, [
2123
- w(n(U), {
2171
+ k(n(U), {
2124
2172
  name: "user",
2125
2173
  size: 16
2126
2174
  }),
@@ -2128,9 +2176,9 @@ const fe = Pe("menu", () => {
2128
2176
  ]),
2129
2177
  e("div", {
2130
2178
  class: "mix-top-menu__dropdown-item",
2131
- onClick: $
2179
+ onClick: L
2132
2180
  }, [
2133
- w(n(U), {
2181
+ k(n(U), {
2134
2182
  name: "lock",
2135
2183
  size: 16
2136
2184
  }),
@@ -2139,9 +2187,9 @@ const fe = Pe("menu", () => {
2139
2187
  v[7] || (v[7] = e("div", { class: "mix-top-menu__dropdown-divider" }, null, -1)),
2140
2188
  e("div", {
2141
2189
  class: "mix-top-menu__dropdown-item mix-top-menu__dropdown-item--danger",
2142
- onClick: N
2190
+ onClick: I
2143
2191
  }, [
2144
- w(n(U), {
2192
+ k(n(U), {
2145
2193
  name: "logout",
2146
2194
  size: 16
2147
2195
  }),
@@ -2155,34 +2203,34 @@ const fe = Pe("menu", () => {
2155
2203
  })
2156
2204
  ], 512)
2157
2205
  ]),
2158
- w(n(Qe), {
2159
- modelValue: Y.value,
2160
- "onUpdate:modelValue": v[2] || (v[2] = (L) => Y.value = L),
2206
+ k(n(Qe), {
2207
+ modelValue: G.value,
2208
+ "onUpdate:modelValue": v[2] || (v[2] = ($) => G.value = $),
2161
2209
  title: "换肤设置",
2162
2210
  direction: "rtl",
2163
2211
  size: "320px"
2164
2212
  }, {
2165
2213
  default: S(() => [
2166
- e("div", Ua, [
2167
- e("div", Ta, [
2214
+ e("div", Mn, [
2215
+ e("div", Sn, [
2168
2216
  v[12] || (v[12] = e("div", { class: "settings-title" }, "布局模式", -1)),
2169
- e("div", Pa, [
2170
- (o(), c(j, null, J(ke, (L) => e("div", {
2171
- key: L.value,
2172
- class: Z(["layout-option", { "is-active": ye.value === L.value }]),
2173
- onClick: (tt) => xe(L.value)
2217
+ e("div", In, [
2218
+ (o(), u(j, null, Z(xe, ($) => e("div", {
2219
+ key: $.value,
2220
+ class: H(["layout-option", { "is-active": be.value === $.value }]),
2221
+ onClick: (tt) => Ce($.value)
2174
2222
  }, [
2175
- e("div", Fa, [
2176
- L.value === "sidebar" ? (o(), c("div", Da, [...v[9] || (v[9] = [
2223
+ e("div", Nn, [
2224
+ $.value === "sidebar" ? (o(), u("div", Un, [...v[9] || (v[9] = [
2177
2225
  e("div", { class: "preview-aside" }, null, -1),
2178
2226
  e("div", { class: "preview-main" }, [
2179
2227
  e("div", { class: "preview-header" }),
2180
2228
  e("div", { class: "preview-content" })
2181
2229
  ], -1)
2182
- ])])) : L.value === "top" ? (o(), c("div", Aa, [...v[10] || (v[10] = [
2230
+ ])])) : $.value === "top" ? (o(), u("div", Tn, [...v[10] || (v[10] = [
2183
2231
  e("div", { class: "preview-header-full" }, null, -1),
2184
2232
  e("div", { class: "preview-content-full" }, null, -1)
2185
- ])])) : (o(), c("div", Ba, [...v[11] || (v[11] = [
2233
+ ])])) : (o(), u("div", Pn, [...v[11] || (v[11] = [
2186
2234
  e("div", { class: "preview-header-mix" }, [
2187
2235
  e("div", { class: "preview-mix-left" })
2188
2236
  ], -1),
@@ -2192,46 +2240,46 @@ const fe = Pe("menu", () => {
2192
2240
  ], -1)
2193
2241
  ])]))
2194
2242
  ]),
2195
- e("span", Va, x(L.label), 1)
2196
- ], 10, za)), 64))
2243
+ e("span", zn, x($.label), 1)
2244
+ ], 10, En)), 64))
2197
2245
  ])
2198
2246
  ]),
2199
- e("div", Oa, [
2247
+ e("div", Fn, [
2200
2248
  v[13] || (v[13] = e("div", { class: "settings-title" }, "主题色", -1)),
2201
- e("div", Ra, [
2202
- (o(), c(j, null, J(I, (L) => e("div", {
2203
- key: L.value,
2204
- class: Z(["color-option", { "is-active": n(i).primaryColor === L.value }]),
2205
- style: Ue({ backgroundColor: L.value }),
2206
- title: L.label,
2207
- onClick: (tt) => b(L.value)
2249
+ e("div", Dn, [
2250
+ (o(), u(j, null, Z(N, ($) => e("div", {
2251
+ key: $.value,
2252
+ class: H(["color-option", { "is-active": n(i).primaryColor === $.value }]),
2253
+ style: Ue({ backgroundColor: $.value }),
2254
+ title: $.label,
2255
+ onClick: (tt) => b($.value)
2208
2256
  }, [
2209
- n(i).primaryColor === L.value ? (o(), A(n(U), {
2257
+ n(i).primaryColor === $.value ? (o(), A(n(U), {
2210
2258
  key: 0,
2211
2259
  name: "check",
2212
2260
  size: 12,
2213
2261
  color: "#fff"
2214
2262
  })) : z("", !0)
2215
- ], 14, Ka)), 64))
2263
+ ], 14, An)), 64))
2216
2264
  ])
2217
2265
  ]),
2218
- e("div", ja, [
2266
+ e("div", Bn, [
2219
2267
  v[18] || (v[18] = e("div", { class: "settings-title" }, "功能设置", -1)),
2220
- e("div", Wa, [
2221
- e("div", qa, [
2268
+ e("div", Vn, [
2269
+ e("div", On, [
2222
2270
  v[15] || (v[15] = e("span", null, "灰色模式", -1)),
2223
2271
  e("div", {
2224
- class: Z(["switch-wrapper", { "is-checked": te.value }]),
2272
+ class: H(["switch-wrapper", { "is-checked": te.value }]),
2225
2273
  onClick: ve
2226
2274
  }, [...v[14] || (v[14] = [
2227
2275
  e("span", { class: "switch-core" }, null, -1)
2228
2276
  ])], 2)
2229
2277
  ]),
2230
- e("div", Ha, [
2278
+ e("div", Rn, [
2231
2279
  v[17] || (v[17] = e("span", null, "暗黑模式", -1)),
2232
2280
  e("div", {
2233
- class: Z(["switch-wrapper", { "is-checked": n(i).isDark }]),
2234
- onClick: ne
2281
+ class: H(["switch-wrapper", { "is-checked": n(i).isDark }]),
2282
+ onClick: ae
2235
2283
  }, [...v[16] || (v[16] = [
2236
2284
  e("span", { class: "switch-core" }, null, -1)
2237
2285
  ])], 2)
@@ -2245,130 +2293,130 @@ const fe = Pe("menu", () => {
2245
2293
  ]);
2246
2294
  };
2247
2295
  }
2248
- }), Ga = /* @__PURE__ */ de(Ya, [["__scopeId", "data-v-ec17777f"]]), Xa = {
2296
+ }), jn = /* @__PURE__ */ de(Kn, [["__scopeId", "data-v-ec17777f"]]), Wn = {
2249
2297
  key: 0,
2250
2298
  class: "layout layout--sidebar"
2251
- }, Ja = { class: "layout__main" }, Za = { class: "layout__header" }, Qa = { class: "layout__content" }, en = {
2299
+ }, qn = { class: "layout__main" }, Hn = { class: "layout__header" }, Yn = { class: "layout__content" }, Gn = {
2252
2300
  key: 1,
2253
2301
  class: "layout layout--top"
2254
- }, tn = { class: "layout__top-menu" }, sn = { class: "layout__main" }, on = { class: "layout__content" }, an = {
2302
+ }, Xn = { class: "layout__top-menu" }, Jn = { class: "layout__main" }, Zn = { class: "layout__content" }, Qn = {
2255
2303
  key: 2,
2256
2304
  class: "layout layout--mix"
2257
- }, nn = { class: "layout__mix-top-menu" }, ln = { class: "layout__mix-body" }, rn = { class: "layout__content" }, cn = /* @__PURE__ */ ce({
2305
+ }, ea = { class: "layout__mix-top-menu" }, ta = { class: "layout__mix-body" }, sa = { class: "layout__content" }, oa = /* @__PURE__ */ ce({
2258
2306
  __name: "index",
2259
2307
  props: {
2260
2308
  logoSrc: {}
2261
2309
  },
2262
2310
  setup(t) {
2263
- const a = t, p = k(() => a.logoSrc || Te("/vite.svg")), l = _e(), s = fe(), d = k(
2311
+ const a = t, p = w(() => a.logoSrc || Te("/vite.svg")), l = fe(), s = ge(), d = w(
2264
2312
  () => l.isCollapsed ? "64px" : "210px"
2265
- ), i = k(() => l.layout), h = k(() => i.value === "mix"), m = k(() => i.value === "sidebar" ? s.menuList : i.value === "mix" ? l.mixSubMenus : []), f = k(() => h.value ? m.value.length > 0 : !1);
2266
- return (_, g) => {
2267
- const u = mt("router-view");
2268
- return o(), c(j, null, [
2269
- i.value === "sidebar" ? (o(), c("div", Xa, [
2313
+ ), i = w(() => l.layout), h = w(() => i.value === "mix"), _ = w(() => i.value === "sidebar" ? s.menuList : i.value === "mix" ? l.mixSubMenus : []), m = w(() => h.value ? _.value.length > 0 : !1);
2314
+ return (f, y) => {
2315
+ const c = mt("router-view");
2316
+ return o(), u(j, null, [
2317
+ i.value === "sidebar" ? (o(), u("div", Wn, [
2270
2318
  e("aside", {
2271
- class: "layout__aside",
2319
+ class: H(["layout__aside", { "layout__aside--collapsed": n(l).isCollapsed }]),
2272
2320
  style: Ue({ width: d.value })
2273
2321
  }, [
2274
- w(lt, {
2275
- "menu-list": m.value,
2322
+ k(lt, {
2323
+ "menu-list": _.value,
2276
2324
  "show-logo": !0,
2277
2325
  "show-user": !0,
2278
2326
  "logo-src": p.value
2279
2327
  }, null, 8, ["menu-list", "logo-src"])
2280
- ], 4),
2281
- e("div", Ja, [
2282
- e("header", Za, [
2283
- w(Xs)
2328
+ ], 6),
2329
+ e("div", qn, [
2330
+ e("header", Hn, [
2331
+ k(js)
2284
2332
  ]),
2285
- e("main", Qa, [
2286
- w(u)
2333
+ e("main", Yn, [
2334
+ k(c)
2287
2335
  ])
2288
2336
  ])
2289
2337
  ])) : z("", !0),
2290
- i.value === "top" ? (o(), c("div", en, [
2291
- e("div", tn, [
2292
- w(aa, { "logo-src": p.value }, null, 8, ["logo-src"])
2338
+ i.value === "top" ? (o(), u("div", Gn, [
2339
+ e("div", Xn, [
2340
+ k(Zo, { "logo-src": p.value }, null, 8, ["logo-src"])
2293
2341
  ]),
2294
- e("div", sn, [
2295
- e("main", on, [
2296
- w(u)
2342
+ e("div", Jn, [
2343
+ e("main", Zn, [
2344
+ k(c)
2297
2345
  ])
2298
2346
  ])
2299
2347
  ])) : z("", !0),
2300
- i.value === "mix" ? (o(), c("div", an, [
2301
- e("div", nn, [
2302
- w(Ga, { "logo-src": p.value }, null, 8, ["logo-src"])
2348
+ i.value === "mix" ? (o(), u("div", Qn, [
2349
+ e("div", ea, [
2350
+ k(jn, { "logo-src": p.value }, null, 8, ["logo-src"])
2303
2351
  ]),
2304
- e("div", ln, [
2305
- f.value ? (o(), c("aside", {
2352
+ e("div", ta, [
2353
+ m.value ? (o(), u("aside", {
2306
2354
  key: 0,
2307
- class: "layout__aside",
2355
+ class: H(["layout__aside", { "layout__aside--collapsed": n(l).isCollapsed }]),
2308
2356
  style: Ue({ width: d.value })
2309
2357
  }, [
2310
- w(lt, {
2311
- "menu-list": m.value,
2358
+ k(lt, {
2359
+ "menu-list": _.value,
2312
2360
  "show-logo": !1,
2313
2361
  "show-user": !1
2314
2362
  }, null, 8, ["menu-list"])
2315
- ], 4)) : z("", !0),
2316
- e("main", rn, [
2317
- w(u)
2363
+ ], 6)) : z("", !0),
2364
+ e("main", sa, [
2365
+ k(c)
2318
2366
  ])
2319
2367
  ])
2320
2368
  ])) : z("", !0)
2321
2369
  ], 64);
2322
2370
  };
2323
2371
  }
2324
- }), vt = /* @__PURE__ */ de(cn, [["__scopeId", "data-v-4e5f3bf5"]]), un = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2372
+ }), vt = /* @__PURE__ */ de(oa, [["__scopeId", "data-v-5cf17579"]]), na = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2325
2373
  __proto__: null,
2326
2374
  default: vt
2327
- }, Symbol.toStringTag, { value: "Module" })), dn = { class: "tabs-wrapper" }, mn = { class: "tab-label" }, pn = ["onClick"], vn = /* @__PURE__ */ ce({
2375
+ }, Symbol.toStringTag, { value: "Module" })), aa = { class: "tabs-wrapper" }, la = { class: "tab-label" }, ra = ["onClick"], ia = /* @__PURE__ */ ce({
2328
2376
  __name: "Tabs",
2329
2377
  setup(t) {
2330
- const a = Ee(), p = be(), l = k(() => {
2378
+ const a = Ee(), p = ke(), l = w(() => {
2331
2379
  const h = [];
2332
- return a.matched.forEach((m) => {
2333
- var f;
2334
- (f = m.meta) != null && f.affix && h.push({
2335
- name: m.name,
2336
- title: m.meta.title,
2337
- path: m.path,
2380
+ return a.matched.forEach((_) => {
2381
+ var m;
2382
+ (m = _.meta) != null && m.affix && h.push({
2383
+ name: _.name,
2384
+ title: _.meta.title,
2385
+ path: _.path,
2338
2386
  affix: !0
2339
2387
  });
2340
2388
  }), h;
2341
- }), s = k(() => a.path), d = (h) => {
2389
+ }), s = w(() => a.path), d = (h) => {
2342
2390
  p.push(h);
2343
2391
  }, i = (h) => {
2344
- const m = l.value.find((f) => f.path === h);
2345
- if (!(m != null && m.affix) && h === s.value) {
2346
- const f = l.value.findIndex((g) => g.path === h), _ = l.value[f - 1] || l.value[f + 1];
2347
- _ && p.push(_.path);
2392
+ const _ = l.value.find((m) => m.path === h);
2393
+ if (!(_ != null && _.affix) && h === s.value) {
2394
+ const m = l.value.findIndex((y) => y.path === h), f = l.value[m - 1] || l.value[m + 1];
2395
+ f && p.push(f.path);
2348
2396
  }
2349
2397
  };
2350
- return (h, m) => (o(), c("div", dn, [
2351
- w(n(It), {
2398
+ return (h, _) => (o(), u("div", aa, [
2399
+ k(n(Nt), {
2352
2400
  modelValue: s.value,
2353
- "onUpdate:modelValue": m[0] || (m[0] = (f) => s.value = f),
2401
+ "onUpdate:modelValue": _[0] || (_[0] = (m) => s.value = m),
2354
2402
  type: "card",
2355
2403
  onTabClick: d
2356
2404
  }, {
2357
2405
  default: S(() => [
2358
- (o(!0), c(j, null, J(l.value, (f) => (o(), A(n(Ut), {
2359
- key: f.path,
2360
- name: f.path,
2361
- label: f.title,
2362
- closable: !f.affix
2406
+ (o(!0), u(j, null, Z(l.value, (m) => (o(), A(n(Ut), {
2407
+ key: m.path,
2408
+ name: m.path,
2409
+ label: m.title,
2410
+ closable: !m.affix
2363
2411
  }, {
2364
2412
  label: S(() => [
2365
- e("span", mn, [
2366
- Ce(x(f.title) + " ", 1),
2367
- f.affix ? z("", !0) : (o(), c("span", {
2413
+ e("span", la, [
2414
+ _e(x(m.title) + " ", 1),
2415
+ m.affix ? z("", !0) : (o(), u("span", {
2368
2416
  key: 0,
2369
2417
  class: "tab-close",
2370
- onClick: Ae((_) => i(f.path), ["stop"])
2371
- }, " ✕ ", 8, pn))
2418
+ onClick: Ae((f) => i(m.path), ["stop"])
2419
+ }, " ✕ ", 8, ra))
2372
2420
  ])
2373
2421
  ]),
2374
2422
  _: 2
@@ -2378,16 +2426,16 @@ const fe = Pe("menu", () => {
2378
2426
  }, 8, ["modelValue"])
2379
2427
  ]));
2380
2428
  }
2381
- }), ol = /* @__PURE__ */ de(vn, [["__scopeId", "data-v-0a4ca30d"]]), hn = {}, _n = { class: "footer" };
2382
- function fn(t, a) {
2383
- return o(), c("div", _n, [...a[0] || (a[0] = [
2429
+ }), Ja = /* @__PURE__ */ de(ia, [["__scopeId", "data-v-0a4ca30d"]]), ca = {}, ua = { class: "footer" };
2430
+ function da(t, a) {
2431
+ return o(), u("div", ua, [...a[0] || (a[0] = [
2384
2432
  e("span", null, "Copyright © 2024 Xto Demo. All Rights Reserved.", -1)
2385
2433
  ])]);
2386
2434
  }
2387
- const al = /* @__PURE__ */ de(hn, [["render", fn], ["__scopeId", "data-v-ac63e349"]]), gn = { class: "login-page" }, yn = { class: "login-form-section" }, bn = { class: "form-container" }, wn = { class: "input-wrapper" }, kn = { class: "input-wrapper" }, xn = { class: "form-options" }, Cn = { key: 0 }, $n = { key: 1 }, Ln = /* @__PURE__ */ ce({
2435
+ const Za = /* @__PURE__ */ de(ca, [["render", da], ["__scopeId", "data-v-ac63e349"]]), ma = { class: "login-page" }, pa = { class: "login-form-section" }, va = { class: "form-container" }, ha = { class: "input-wrapper" }, _a = { class: "input-wrapper" }, fa = { class: "form-options" }, ga = { key: 0 }, ya = { key: 1 }, ba = /* @__PURE__ */ ce({
2388
2436
  __name: "index",
2389
2437
  setup(t) {
2390
- const a = be(), p = Ee(), l = y(!1), s = y(!1), d = Ge({
2438
+ const a = ke(), p = Ee(), l = g(!1), s = g(!1), d = Ge({
2391
2439
  uid: "",
2392
2440
  password: ""
2393
2441
  }), i = {
@@ -2398,35 +2446,35 @@ const al = /* @__PURE__ */ de(hn, [["render", fn], ["__scopeId", "data-v-ac63e34
2398
2446
  { required: !0, message: "请输入密码", trigger: "blur" },
2399
2447
  { min: 6, message: "密码长度至少6位", trigger: "blur" }
2400
2448
  ]
2401
- }, h = y(), m = async () => {
2402
- var f;
2449
+ }, h = g(), _ = async () => {
2450
+ var m;
2403
2451
  try {
2404
- await ((f = h.value) == null ? void 0 : f.validate()), l.value = !0;
2405
- const _ = await yt({
2452
+ await ((m = h.value) == null ? void 0 : m.validate()), l.value = !0;
2453
+ const f = await yt({
2406
2454
  appId: Me(),
2407
2455
  clientId: dt(),
2408
2456
  uid: d.uid,
2409
2457
  password: d.password,
2410
2458
  code: !0
2411
2459
  });
2412
- ut(_), Tt.success("登录成功");
2413
- const g = p.query.redirect;
2414
- g ? a.push(g) : a.push({ name: "Dashboard" });
2415
- } catch (_) {
2416
- console.error("登录失败:", _);
2460
+ ut(f), Tt.success("登录成功");
2461
+ const y = p.query.redirect;
2462
+ y ? a.push(y) : a.push({ name: "Dashboard" });
2463
+ } catch (f) {
2464
+ console.error("登录失败:", f);
2417
2465
  } finally {
2418
2466
  l.value = !1;
2419
2467
  }
2420
2468
  };
2421
- return (f, _) => (o(), c("div", gn, [
2422
- _[10] || (_[10] = Fe('<div class="login-brand" data-v-20b19b53><div class="brand-content" data-v-20b19b53><div class="brand-logo" data-v-20b19b53><div class="logo-icon" data-v-20b19b53><svg viewBox="0 0 48 48" fill="none" xmlns="http://www.w3.org/2000/svg" data-v-20b19b53><rect width="48" height="48" rx="12" fill="currentColor" data-v-20b19b53></rect><path d="M14 24L20 30L34 16" stroke="white" stroke-width="4" stroke-linecap="round" stroke-linejoin="round" data-v-20b19b53></path></svg></div><span class="logo-text" data-v-20b19b53>XTO</span></div><div class="brand-slogan" data-v-20b19b53><h1 data-v-20b19b53>企业级后台管理解决方案</h1><p data-v-20b19b53>开箱即用的中后台前端/设计解决方案</p></div><div class="brand-features" data-v-20b19b53><div class="feature-item" data-v-20b19b53><div class="feature-icon" data-v-20b19b53><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" data-v-20b19b53><path d="M13 2L3 14h9l-1 8 10-12h-9l1-8z" data-v-20b19b53></path></svg></div><div class="feature-text" data-v-20b19b53><h4 data-v-20b19b53>高性能</h4><p data-v-20b19b53>极致的渲染性能与响应速度</p></div></div><div class="feature-item" data-v-20b19b53><div class="feature-icon" data-v-20b19b53><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" data-v-20b19b53><rect x="3" y="3" width="18" height="18" rx="2" data-v-20b19b53></rect><path d="M9 9h6M9 12h6M9 15h4" data-v-20b19b53></path></svg></div><div class="feature-text" data-v-20b19b53><h4 data-v-20b19b53>丰富组件</h4><p data-v-20b19b53>60+ 高质量业务组件</p></div></div><div class="feature-item" data-v-20b19b53><div class="feature-icon" data-v-20b19b53><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" data-v-20b19b53><circle cx="12" cy="12" r="10" data-v-20b19b53></circle><path d="M12 6v6l4 2" data-v-20b19b53></path></svg></div><div class="feature-text" data-v-20b19b53><h4 data-v-20b19b53>持续更新</h4><p data-v-20b19b53>活跃的社区与快速迭代</p></div></div></div><div class="brand-decoration" data-v-20b19b53><div class="decoration-line" data-v-20b19b53></div><div class="decoration-dots" data-v-20b19b53><span data-v-20b19b53></span><span data-v-20b19b53></span><span data-v-20b19b53></span></div></div></div><div class="brand-bg" data-v-20b19b53><div class="bg-grid" data-v-20b19b53></div></div></div>', 1)),
2423
- e("div", yn, [
2424
- e("div", bn, [
2425
- _[7] || (_[7] = e("div", { class: "form-header" }, [
2469
+ return (m, f) => (o(), u("div", ma, [
2470
+ f[10] || (f[10] = Fe('<div class="login-brand" data-v-20b19b53><div class="brand-content" data-v-20b19b53><div class="brand-logo" data-v-20b19b53><div class="logo-icon" data-v-20b19b53><svg viewBox="0 0 48 48" fill="none" xmlns="http://www.w3.org/2000/svg" data-v-20b19b53><rect width="48" height="48" rx="12" fill="currentColor" data-v-20b19b53></rect><path d="M14 24L20 30L34 16" stroke="white" stroke-width="4" stroke-linecap="round" stroke-linejoin="round" data-v-20b19b53></path></svg></div><span class="logo-text" data-v-20b19b53>XTO</span></div><div class="brand-slogan" data-v-20b19b53><h1 data-v-20b19b53>企业级后台管理解决方案</h1><p data-v-20b19b53>开箱即用的中后台前端/设计解决方案</p></div><div class="brand-features" data-v-20b19b53><div class="feature-item" data-v-20b19b53><div class="feature-icon" data-v-20b19b53><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" data-v-20b19b53><path d="M13 2L3 14h9l-1 8 10-12h-9l1-8z" data-v-20b19b53></path></svg></div><div class="feature-text" data-v-20b19b53><h4 data-v-20b19b53>高性能</h4><p data-v-20b19b53>极致的渲染性能与响应速度</p></div></div><div class="feature-item" data-v-20b19b53><div class="feature-icon" data-v-20b19b53><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" data-v-20b19b53><rect x="3" y="3" width="18" height="18" rx="2" data-v-20b19b53></rect><path d="M9 9h6M9 12h6M9 15h4" data-v-20b19b53></path></svg></div><div class="feature-text" data-v-20b19b53><h4 data-v-20b19b53>丰富组件</h4><p data-v-20b19b53>60+ 高质量业务组件</p></div></div><div class="feature-item" data-v-20b19b53><div class="feature-icon" data-v-20b19b53><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" data-v-20b19b53><circle cx="12" cy="12" r="10" data-v-20b19b53></circle><path d="M12 6v6l4 2" data-v-20b19b53></path></svg></div><div class="feature-text" data-v-20b19b53><h4 data-v-20b19b53>持续更新</h4><p data-v-20b19b53>活跃的社区与快速迭代</p></div></div></div><div class="brand-decoration" data-v-20b19b53><div class="decoration-line" data-v-20b19b53></div><div class="decoration-dots" data-v-20b19b53><span data-v-20b19b53></span><span data-v-20b19b53></span><span data-v-20b19b53></span></div></div></div><div class="brand-bg" data-v-20b19b53><div class="bg-grid" data-v-20b19b53></div></div></div>', 1)),
2471
+ e("div", pa, [
2472
+ e("div", va, [
2473
+ f[7] || (f[7] = e("div", { class: "form-header" }, [
2426
2474
  e("h2", null, "欢迎登录"),
2427
2475
  e("p", null, "请输入您的账户信息")
2428
2476
  ], -1)),
2429
- w(n(Pt), {
2477
+ k(n(Pt), {
2430
2478
  ref_key: "formRef",
2431
2479
  ref: h,
2432
2480
  model: d,
@@ -2435,18 +2483,18 @@ const al = /* @__PURE__ */ de(hn, [["render", fn], ["__scopeId", "data-v-ac63e34
2435
2483
  "label-width": "0"
2436
2484
  }, {
2437
2485
  default: S(() => [
2438
- w(n(Be), { prop: "uid" }, {
2486
+ k(n(Be), { prop: "uid" }, {
2439
2487
  default: S(() => [
2440
- e("div", wn, [
2441
- _[3] || (_[3] = e("label", { class: "input-label" }, "用户名", -1)),
2442
- w(n(nt), {
2488
+ e("div", ha, [
2489
+ f[3] || (f[3] = e("label", { class: "input-label" }, "用户名", -1)),
2490
+ k(n(at), {
2443
2491
  modelValue: d.uid,
2444
- "onUpdate:modelValue": _[0] || (_[0] = (g) => d.uid = g),
2492
+ "onUpdate:modelValue": f[0] || (f[0] = (y) => d.uid = y),
2445
2493
  placeholder: "请输入用户名",
2446
2494
  size: "large"
2447
2495
  }, {
2448
2496
  prefix: S(() => [
2449
- w(n(U), {
2497
+ k(n(U), {
2450
2498
  name: "user",
2451
2499
  size: 18
2452
2500
  })
@@ -2457,21 +2505,21 @@ const al = /* @__PURE__ */ de(hn, [["render", fn], ["__scopeId", "data-v-ac63e34
2457
2505
  ]),
2458
2506
  _: 1
2459
2507
  }),
2460
- w(n(Be), { prop: "password" }, {
2508
+ k(n(Be), { prop: "password" }, {
2461
2509
  default: S(() => [
2462
- e("div", kn, [
2463
- _[4] || (_[4] = e("label", { class: "input-label" }, "密码", -1)),
2464
- w(n(nt), {
2510
+ e("div", _a, [
2511
+ f[4] || (f[4] = e("label", { class: "input-label" }, "密码", -1)),
2512
+ k(n(at), {
2465
2513
  modelValue: d.password,
2466
- "onUpdate:modelValue": _[1] || (_[1] = (g) => d.password = g),
2514
+ "onUpdate:modelValue": f[1] || (f[1] = (y) => d.password = y),
2467
2515
  type: "password",
2468
2516
  placeholder: "请输入密码",
2469
2517
  size: "large",
2470
2518
  "show-password": "",
2471
- onKeyup: Nt(m, ["enter"])
2519
+ onKeyup: It(_, ["enter"])
2472
2520
  }, {
2473
2521
  prefix: S(() => [
2474
- w(n(U), {
2522
+ k(n(U), {
2475
2523
  name: "lock",
2476
2524
  size: 18
2477
2525
  })
@@ -2482,32 +2530,32 @@ const al = /* @__PURE__ */ de(hn, [["render", fn], ["__scopeId", "data-v-ac63e34
2482
2530
  ]),
2483
2531
  _: 1
2484
2532
  }),
2485
- e("div", xn, [
2486
- w(n(zt), {
2533
+ e("div", fa, [
2534
+ k(n(zt), {
2487
2535
  modelValue: s.value,
2488
- "onUpdate:modelValue": _[2] || (_[2] = (g) => s.value = g)
2536
+ "onUpdate:modelValue": f[2] || (f[2] = (y) => s.value = y)
2489
2537
  }, {
2490
- default: S(() => [..._[5] || (_[5] = [
2491
- Ce("记住我", -1)
2538
+ default: S(() => [...f[5] || (f[5] = [
2539
+ _e("记住我", -1)
2492
2540
  ])]),
2493
2541
  _: 1
2494
2542
  }, 8, ["modelValue"]),
2495
- _[6] || (_[6] = e("a", {
2543
+ f[6] || (f[6] = e("a", {
2496
2544
  href: "#",
2497
2545
  class: "forgot-link"
2498
2546
  }, "忘记密码?", -1))
2499
2547
  ]),
2500
- w(n(Be), null, {
2548
+ k(n(Be), null, {
2501
2549
  default: S(() => [
2502
- w(n(Ne), {
2550
+ k(n(Ie), {
2503
2551
  type: "primary",
2504
2552
  size: "large",
2505
2553
  loading: l.value,
2506
2554
  class: "login-btn",
2507
- onClick: m
2555
+ onClick: _
2508
2556
  }, {
2509
2557
  default: S(() => [
2510
- l.value ? (o(), c("span", $n, "登录中...")) : (o(), c("span", Cn, "登 录"))
2558
+ l.value ? (o(), u("span", ya, "登录中...")) : (o(), u("span", ga, "登 录"))
2511
2559
  ]),
2512
2560
  _: 1
2513
2561
  }, 8, ["loading"])
@@ -2517,34 +2565,34 @@ const al = /* @__PURE__ */ de(hn, [["render", fn], ["__scopeId", "data-v-ac63e34
2517
2565
  ]),
2518
2566
  _: 1
2519
2567
  }, 8, ["model"]),
2520
- _[8] || (_[8] = Fe('<div class="form-footer" data-v-20b19b53><p data-v-20b19b53>其他登录方式</p><div class="social-login" data-v-20b19b53><button class="social-btn" title="企业微信" data-v-20b19b53><svg viewBox="0 0 24 24" fill="currentColor" data-v-20b19b53><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-1 17.93c-3.95-.49-7-3.85-7-7.93 0-.62.08-1.21.21-1.79L9 15v1c0 1.1.9 2 2 2v1.93zm6.9-2.54c-.26-.81-1-1.39-1.9-1.39h-1v-3c0-.55-.45-1-1-1H8v-2h2c.55 0 1-.45 1-1V7h2c1.1 0 2-.9 2-2v-.41c2.93 1.19 5 4.06 5 7.41 0 2.08-.8 3.97-2.1 5.39z" data-v-20b19b53></path></svg></button><button class="social-btn" title="钉钉" data-v-20b19b53><svg viewBox="0 0 24 24" fill="currentColor" data-v-20b19b53><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm4.64 6.8c-.15 1.58-.8 5.42-1.13 7.19-.14.75-.42 1-.68 1.03-.58.05-1.02-.38-1.58-.75-.88-.58-1.38-.94-2.23-1.5-.99-.65-.35-1.01.22-1.59.15-.15 2.71-2.48 2.76-2.69a.2.2 0 00-.05-.18c-.06-.05-.14-.03-.21-.02-.09.02-1.49.95-4.22 2.79-.4.27-.76.41-1.08.4-.36-.01-1.04-.2-1.55-.37-.63-.2-1.12-.31-1.08-.66.02-.18.27-.36.74-.55 2.92-1.27 4.86-2.11 5.83-2.51 2.78-1.16 3.35-1.36 3.73-1.36.08 0 .27.02.39.12.1.08.13.19.14.27-.01.06.01.24 0 .38z" data-v-20b19b53></path></svg></button><button class="social-btn" title="飞书" data-v-20b19b53><svg viewBox="0 0 24 24" fill="currentColor" data-v-20b19b53><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z" data-v-20b19b53></path></svg></button></div></div>', 1))
2568
+ f[8] || (f[8] = Fe('<div class="form-footer" data-v-20b19b53><p data-v-20b19b53>其他登录方式</p><div class="social-login" data-v-20b19b53><button class="social-btn" title="企业微信" data-v-20b19b53><svg viewBox="0 0 24 24" fill="currentColor" data-v-20b19b53><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-1 17.93c-3.95-.49-7-3.85-7-7.93 0-.62.08-1.21.21-1.79L9 15v1c0 1.1.9 2 2 2v1.93zm6.9-2.54c-.26-.81-1-1.39-1.9-1.39h-1v-3c0-.55-.45-1-1-1H8v-2h2c.55 0 1-.45 1-1V7h2c1.1 0 2-.9 2-2v-.41c2.93 1.19 5 4.06 5 7.41 0 2.08-.8 3.97-2.1 5.39z" data-v-20b19b53></path></svg></button><button class="social-btn" title="钉钉" data-v-20b19b53><svg viewBox="0 0 24 24" fill="currentColor" data-v-20b19b53><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm4.64 6.8c-.15 1.58-.8 5.42-1.13 7.19-.14.75-.42 1-.68 1.03-.58.05-1.02-.38-1.58-.75-.88-.58-1.38-.94-2.23-1.5-.99-.65-.35-1.01.22-1.59.15-.15 2.71-2.48 2.76-2.69a.2.2 0 00-.05-.18c-.06-.05-.14-.03-.21-.02-.09.02-1.49.95-4.22 2.79-.4.27-.76.41-1.08.4-.36-.01-1.04-.2-1.55-.37-.63-.2-1.12-.31-1.08-.66.02-.18.27-.36.74-.55 2.92-1.27 4.86-2.11 5.83-2.51 2.78-1.16 3.35-1.36 3.73-1.36.08 0 .27.02.39.12.1.08.13.19.14.27-.01.06.01.24 0 .38z" data-v-20b19b53></path></svg></button><button class="social-btn" title="飞书" data-v-20b19b53><svg viewBox="0 0 24 24" fill="currentColor" data-v-20b19b53><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z" data-v-20b19b53></path></svg></button></div></div>', 1))
2521
2569
  ]),
2522
- _[9] || (_[9] = e("div", { class: "copyright" }, [
2570
+ f[9] || (f[9] = e("div", { class: "copyright" }, [
2523
2571
  e("p", null, "© 2024 XTO Team. All rights reserved.")
2524
2572
  ], -1))
2525
2573
  ])
2526
2574
  ]));
2527
2575
  }
2528
- }), Mn = /* @__PURE__ */ de(Ln, [["__scopeId", "data-v-20b19b53"]]), Sn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2576
+ }), ka = /* @__PURE__ */ de(ba, [["__scopeId", "data-v-20b19b53"]]), wa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2529
2577
  __proto__: null,
2530
- default: Mn
2531
- }, Symbol.toStringTag, { value: "Module" })), Nn = { class: "error-page" }, En = { class: "error-container" }, In = { class: "error-content" }, Un = { class: "error-actions" }, Tn = /* @__PURE__ */ ce({
2578
+ default: ka
2579
+ }, Symbol.toStringTag, { value: "Module" })), xa = { class: "error-page" }, Ca = { class: "error-container" }, La = { class: "error-content" }, $a = { class: "error-actions" }, Ma = /* @__PURE__ */ ce({
2532
2580
  __name: "404",
2533
2581
  setup(t) {
2534
- const a = be(), p = () => {
2582
+ const a = ke(), p = () => {
2535
2583
  a.push("/");
2536
2584
  };
2537
- return (l, s) => (o(), c("div", Nn, [
2538
- e("div", En, [
2585
+ return (l, s) => (o(), u("div", xa, [
2586
+ e("div", Ca, [
2539
2587
  s[7] || (s[7] = e("div", { class: "error-bg" }, [
2540
2588
  e("div", { class: "bg-circle circle-1" }),
2541
2589
  e("div", { class: "bg-circle circle-2" }),
2542
2590
  e("div", { class: "bg-circle circle-3" })
2543
2591
  ], -1)),
2544
- e("div", In, [
2592
+ e("div", La, [
2545
2593
  s[5] || (s[5] = Fe('<div class="error-code" data-v-c36cc0ad><span class="code-digit" data-v-c36cc0ad>4</span><span class="code-zero" data-v-c36cc0ad><span class="zero-inner" data-v-c36cc0ad>0</span></span><span class="code-digit" data-v-c36cc0ad>4</span></div><div class="error-illustration" data-v-c36cc0ad><svg viewBox="0 0 200 120" fill="none" xmlns="http://www.w3.org/2000/svg" data-v-c36cc0ad><rect x="40" y="20" width="120" height="80" rx="8" fill="var(--xto-fill-color, #F2F3F5)" stroke="var(--xto-border-color, #D9DCE1)" stroke-width="2" data-v-c36cc0ad></rect><rect x="50" y="30" width="100" height="60" rx="4" fill="var(--xto-bg-color, #FFFFFF)" data-v-c36cc0ad></rect><line x1="60" y1="45" x2="140" y2="45" stroke="var(--xto-border-color-light, #E5E6EB)" stroke-width="2" data-v-c36cc0ad></line><line x1="60" y1="55" x2="120" y2="55" stroke="var(--xto-border-color-light, #E5E6EB)" stroke-width="2" data-v-c36cc0ad></line><line x1="60" y1="65" x2="100" y2="65" stroke="var(--xto-border-color-light, #E5E6EB)" stroke-width="2" data-v-c36cc0ad></line><text x="100" y="75" text-anchor="middle" fill="var(--xto-color-primary, #4F46E5)" font-size="24" font-weight="600" data-v-c36cc0ad>?</text><circle cx="150" cy="35" r="12" stroke="var(--xto-color-primary, #4F46E5)" stroke-width="2" fill="none" data-v-c36cc0ad></circle><line x1="158" y1="43" x2="168" y2="53" stroke="var(--xto-color-primary, #4F46E5)" stroke-width="2" stroke-linecap="round" data-v-c36cc0ad></line></svg></div><h1 class="error-title" data-v-c36cc0ad>页面不存在</h1><p class="error-desc" data-v-c36cc0ad>抱歉,您访问的页面不存在或已被删除</p>', 4)),
2546
- e("div", Un, [
2547
- w(n(Ne), {
2594
+ e("div", $a, [
2595
+ k(n(Ie), {
2548
2596
  type: "primary",
2549
2597
  size: "large",
2550
2598
  onClick: p
@@ -2561,11 +2609,11 @@ const al = /* @__PURE__ */ de(hn, [["render", fn], ["__scopeId", "data-v-ac63e34
2561
2609
  ], -1)
2562
2610
  ])]),
2563
2611
  default: S(() => [
2564
- s[2] || (s[2] = Ce(" 返回首页 ", -1))
2612
+ s[2] || (s[2] = _e(" 返回首页 ", -1))
2565
2613
  ]),
2566
2614
  _: 1
2567
2615
  }),
2568
- w(n(Ne), {
2616
+ k(n(Ie), {
2569
2617
  size: "large",
2570
2618
  onClick: s[0] || (s[0] = (d) => n(a).go(-1))
2571
2619
  }, {
@@ -2580,7 +2628,7 @@ const al = /* @__PURE__ */ de(hn, [["render", fn], ["__scopeId", "data-v-ac63e34
2580
2628
  ], -1)
2581
2629
  ])]),
2582
2630
  default: S(() => [
2583
- s[4] || (s[4] = Ce(" 返回上一页 ", -1))
2631
+ s[4] || (s[4] = _e(" 返回上一页 ", -1))
2584
2632
  ]),
2585
2633
  _: 1
2586
2634
  })
@@ -2597,26 +2645,26 @@ const al = /* @__PURE__ */ de(hn, [["render", fn], ["__scopeId", "data-v-ac63e34
2597
2645
  ])
2598
2646
  ]));
2599
2647
  }
2600
- }), Pn = /* @__PURE__ */ de(Tn, [["__scopeId", "data-v-c36cc0ad"]]), ht = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2648
+ }), Sa = /* @__PURE__ */ de(Ma, [["__scopeId", "data-v-c36cc0ad"]]), ht = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2601
2649
  __proto__: null,
2602
- default: Pn
2603
- }, Symbol.toStringTag, { value: "Module" })), zn = { class: "error-page" }, Fn = { class: "error-container" }, Dn = { class: "error-content" }, An = { class: "error-actions" }, Bn = /* @__PURE__ */ ce({
2650
+ default: Sa
2651
+ }, Symbol.toStringTag, { value: "Module" })), Ia = { class: "error-page" }, Ea = { class: "error-container" }, Na = { class: "error-content" }, Ua = { class: "error-actions" }, Ta = /* @__PURE__ */ ce({
2604
2652
  __name: "403",
2605
2653
  setup(t) {
2606
- const a = be(), p = () => {
2654
+ const a = ke(), p = () => {
2607
2655
  a.push("/");
2608
2656
  };
2609
- return (l, s) => (o(), c("div", zn, [
2610
- e("div", Fn, [
2657
+ return (l, s) => (o(), u("div", Ia, [
2658
+ e("div", Ea, [
2611
2659
  s[7] || (s[7] = e("div", { class: "error-bg" }, [
2612
2660
  e("div", { class: "bg-circle circle-1" }),
2613
2661
  e("div", { class: "bg-circle circle-2" }),
2614
2662
  e("div", { class: "bg-circle circle-3" })
2615
2663
  ], -1)),
2616
- e("div", Dn, [
2664
+ e("div", Na, [
2617
2665
  s[5] || (s[5] = Fe('<div class="error-code" data-v-e6e1f7ac><span class="code-digit" data-v-e6e1f7ac>4</span><span class="code-zero warning" data-v-e6e1f7ac><span class="zero-inner" data-v-e6e1f7ac>0</span></span><span class="code-digit" data-v-e6e1f7ac>3</span></div><div class="error-illustration" data-v-e6e1f7ac><svg viewBox="0 0 200 120" fill="none" xmlns="http://www.w3.org/2000/svg" data-v-e6e1f7ac><path d="M100 15 L150 35 L150 70 C150 95 100 110 100 110 C100 110 50 95 50 70 L50 35 Z" fill="var(--xto-color-warning-light-9, #FFF3E8)" stroke="var(--xto-color-warning, #FF7D00)" stroke-width="2" data-v-e6e1f7ac></path><rect x="85" y="55" width="30" height="25" rx="4" fill="var(--xto-color-warning, #FF7D00)" data-v-e6e1f7ac></rect><path d="M92 55 V48 A8 8 0 0 1 108 48 V55" fill="none" stroke="var(--xto-color-warning, #FF7D00)" stroke-width="3" data-v-e6e1f7ac></path><circle cx="100" cy="67" r="6" fill="none" stroke="#fff" stroke-width="2" data-v-e6e1f7ac></circle><line x1="96" y1="63" x2="104" y2="71" stroke="#fff" stroke-width="2" data-v-e6e1f7ac></line></svg></div><h1 class="error-title" data-v-e6e1f7ac>无访问权限</h1><p class="error-desc" data-v-e6e1f7ac>抱歉,您没有权限访问此页面,请联系管理员获取权限</p>', 4)),
2618
- e("div", An, [
2619
- w(n(Ne), {
2666
+ e("div", Ua, [
2667
+ k(n(Ie), {
2620
2668
  type: "primary",
2621
2669
  size: "large",
2622
2670
  onClick: p
@@ -2633,11 +2681,11 @@ const al = /* @__PURE__ */ de(hn, [["render", fn], ["__scopeId", "data-v-ac63e34
2633
2681
  ], -1)
2634
2682
  ])]),
2635
2683
  default: S(() => [
2636
- s[2] || (s[2] = Ce(" 返回首页 ", -1))
2684
+ s[2] || (s[2] = _e(" 返回首页 ", -1))
2637
2685
  ]),
2638
2686
  _: 1
2639
2687
  }),
2640
- w(n(Ne), {
2688
+ k(n(Ie), {
2641
2689
  size: "large",
2642
2690
  onClick: s[0] || (s[0] = (d) => n(a).go(-1))
2643
2691
  }, {
@@ -2652,7 +2700,7 @@ const al = /* @__PURE__ */ de(hn, [["render", fn], ["__scopeId", "data-v-ac63e34
2652
2700
  ], -1)
2653
2701
  ])]),
2654
2702
  default: S(() => [
2655
- s[4] || (s[4] = Ce(" 返回上一页 ", -1))
2703
+ s[4] || (s[4] = _e(" 返回上一页 ", -1))
2656
2704
  ]),
2657
2705
  _: 1
2658
2706
  })
@@ -2669,18 +2717,18 @@ const al = /* @__PURE__ */ de(hn, [["render", fn], ["__scopeId", "data-v-ac63e34
2669
2717
  ])
2670
2718
  ]));
2671
2719
  }
2672
- }), nl = /* @__PURE__ */ de(Bn, [["__scopeId", "data-v-e6e1f7ac"]]);
2673
- function ll() {
2674
- const t = _e(), a = ue(), p = ze(), l = k(() => a.userName || ""), s = k(() => a.userInfo), d = k(() => t.appName), i = k(() => p.isLoggedIn), h = k(() => t.isDark), m = k(() => t.theme), f = k(() => t.isCollapsed), _ = k(() => t.layout);
2720
+ }), Qa = /* @__PURE__ */ de(Ta, [["__scopeId", "data-v-e6e1f7ac"]]);
2721
+ function el() {
2722
+ const t = fe(), a = ue(), p = ze(), l = w(() => a.userName || ""), s = w(() => a.userInfo), d = w(() => t.appName), i = w(() => p.isLoggedIn), h = w(() => t.isDark), _ = w(() => t.theme), m = w(() => t.isCollapsed), f = w(() => t.layout);
2675
2723
  return {
2676
2724
  userName: l,
2677
2725
  userInfo: s,
2678
2726
  appName: d,
2679
2727
  isLoggedIn: i,
2680
2728
  isDark: h,
2681
- theme: m,
2682
- isCollapsed: f,
2683
- layout: _,
2729
+ theme: _,
2730
+ isCollapsed: m,
2731
+ layout: f,
2684
2732
  toggleTheme: () => {
2685
2733
  t.toggleTheme();
2686
2734
  },
@@ -2689,20 +2737,20 @@ function ll() {
2689
2737
  }
2690
2738
  };
2691
2739
  }
2692
- function rl() {
2740
+ function tl() {
2693
2741
  const t = ue();
2694
2742
  return {
2695
- isLoggedIn: k(() => t.isLoggedIn)
2743
+ isLoggedIn: w(() => t.isLoggedIn)
2696
2744
  };
2697
2745
  }
2698
- function il(t, a = {}) {
2699
- const { rules: p, onSubmit: l } = a, s = y(), d = Ge({ ...t }), i = y(!1), h = y(!1), m = y(!1), f = () => {
2700
- u(), m.value = !1, h.value = !0;
2701
- }, _ = (P) => {
2702
- Object.assign(d, P), m.value = !0, h.value = !0;
2703
- }, g = () => {
2704
- h.value = !1, u();
2705
- }, u = () => {
2746
+ function sl(t, a = {}) {
2747
+ const { rules: p, onSubmit: l } = a, s = g(), d = Ge({ ...t }), i = g(!1), h = g(!1), _ = g(!1), m = () => {
2748
+ c(), _.value = !1, h.value = !0;
2749
+ }, f = (P) => {
2750
+ Object.assign(d, P), _.value = !0, h.value = !0;
2751
+ }, y = () => {
2752
+ h.value = !1, c();
2753
+ }, c = () => {
2706
2754
  var P;
2707
2755
  Object.keys(t).forEach((B) => {
2708
2756
  d[B] = t[B];
@@ -2714,15 +2762,15 @@ function il(t, a = {}) {
2714
2762
  rules: p,
2715
2763
  loading: i,
2716
2764
  visible: h,
2717
- isEdit: m,
2718
- openAdd: f,
2719
- openEdit: _,
2720
- close: g,
2721
- resetForm: u,
2765
+ isEdit: _,
2766
+ openAdd: m,
2767
+ openEdit: f,
2768
+ close: y,
2769
+ resetForm: c,
2722
2770
  handleSubmit: async () => {
2723
2771
  var P;
2724
2772
  try {
2725
- await ((P = s.value) == null ? void 0 : P.validate()), i.value = !0, await (l == null ? void 0 : l(d)), g();
2773
+ await ((P = s.value) == null ? void 0 : P.validate()), i.value = !0, await (l == null ? void 0 : l(d)), y();
2726
2774
  } catch (B) {
2727
2775
  console.error(B);
2728
2776
  } finally {
@@ -2731,12 +2779,12 @@ function il(t, a = {}) {
2731
2779
  }
2732
2780
  };
2733
2781
  }
2734
- function cl(t) {
2735
- const { fetchData: a, defaultPageSize: p = 10 } = t, l = y(!1), s = y([]), d = y(0), i = y(1), h = y(p), m = Ge({}), f = async () => {
2782
+ function ol(t) {
2783
+ const { fetchData: a, defaultPageSize: p = 10 } = t, l = g(!1), s = g([]), d = g(0), i = g(1), h = g(p), _ = Ge({}), m = async () => {
2736
2784
  l.value = !0;
2737
2785
  try {
2738
2786
  const V = {
2739
- ...m,
2787
+ ..._,
2740
2788
  page: i.value,
2741
2789
  pageSize: h.value
2742
2790
  }, R = await a(V);
@@ -2746,19 +2794,19 @@ function cl(t) {
2746
2794
  } finally {
2747
2795
  l.value = !1;
2748
2796
  }
2749
- }, _ = () => {
2750
- i.value = 1, f();
2751
- }, g = () => {
2752
- Object.keys(m).forEach((V) => {
2753
- m[V] = void 0;
2754
- }), i.value = 1, f();
2755
- }, u = (V) => {
2756
- i.value = V, f();
2797
+ }, f = () => {
2798
+ i.value = 1, m();
2799
+ }, y = () => {
2800
+ Object.keys(_).forEach((V) => {
2801
+ _[V] = void 0;
2802
+ }), i.value = 1, m();
2803
+ }, c = (V) => {
2804
+ i.value = V, m();
2757
2805
  }, W = (V) => {
2758
- h.value = V, i.value = 1, f();
2806
+ h.value = V, i.value = 1, m();
2759
2807
  }, P = () => {
2760
- f();
2761
- }, B = k(() => ({
2808
+ m();
2809
+ }, B = w(() => ({
2762
2810
  current: i.value,
2763
2811
  pageSize: h.value,
2764
2812
  total: d.value
@@ -2769,43 +2817,43 @@ function cl(t) {
2769
2817
  total: d,
2770
2818
  currentPage: i,
2771
2819
  pageSize: h,
2772
- searchParams: m,
2820
+ searchParams: _,
2773
2821
  pagination: B,
2774
- getData: f,
2775
- handleSearch: _,
2776
- handleReset: g,
2777
- handlePageChange: u,
2822
+ getData: m,
2823
+ handleSearch: f,
2824
+ handleReset: y,
2825
+ handlePageChange: c,
2778
2826
  handleSizeChange: W,
2779
2827
  refresh: P
2780
2828
  };
2781
2829
  }
2782
2830
  const et = Pe("locale", () => {
2783
- const t = T.get("locale") || "zh-CN", a = Ft(t), p = y(t), l = Dt(), { t: s, messages: d, setLocale: i, mergeMessages: h } = At(), m = k(() => {
2784
- const u = l.find((W) => W.code === p.value);
2785
- return (u == null ? void 0 : u.name) || p.value;
2831
+ const t = T.get("locale") || "zh-CN", a = Ft(t), p = g(t), l = Dt(), { t: s, messages: d, setLocale: i, mergeMessages: h } = At(), _ = w(() => {
2832
+ const c = l.find((W) => W.code === p.value);
2833
+ return (c == null ? void 0 : c.name) || p.value;
2786
2834
  });
2787
2835
  return {
2788
2836
  locale: p,
2789
- localeName: m,
2837
+ localeName: _,
2790
2838
  locales: l,
2791
2839
  messages: d,
2792
2840
  t: s,
2793
- changeLocale: (u) => {
2794
- p.value = u, i(u), T.set("locale", u), a.setLocale(u);
2841
+ changeLocale: (c) => {
2842
+ p.value = c, i(c), T.set("locale", c), a.setLocale(c);
2795
2843
  },
2796
- addMessages: (u) => {
2797
- h(u);
2844
+ addMessages: (c) => {
2845
+ h(c);
2798
2846
  },
2799
2847
  initLocale: () => {
2800
2848
  i(t);
2801
2849
  },
2802
2850
  provider: a
2803
2851
  };
2804
- }), Vn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2852
+ }), Pa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2805
2853
  __proto__: null,
2806
2854
  useLocaleStore: et
2807
2855
  }, Symbol.toStringTag, { value: "Module" }));
2808
- function ul() {
2856
+ function nl() {
2809
2857
  const t = et();
2810
2858
  return {
2811
2859
  /** 当前语言代码 */
@@ -2824,24 +2872,24 @@ function ul() {
2824
2872
  addMessages: t.addMessages
2825
2873
  };
2826
2874
  }
2827
- function dl() {
2875
+ function al() {
2828
2876
  return et().t;
2829
2877
  }
2830
- function ml(t) {
2831
- const a = ue(), p = fe();
2878
+ function ll(t) {
2879
+ const a = ue(), p = ge();
2832
2880
  return a.isLoggedIn ? p.hasPermission(t) : !1;
2833
2881
  }
2834
- function pl(t) {
2882
+ function rl(t) {
2835
2883
  return ue().isLoggedIn;
2836
2884
  }
2837
- function vl() {
2885
+ function il() {
2838
2886
  return !0;
2839
2887
  }
2840
2888
  const _t = [
2841
2889
  {
2842
2890
  path: "/login",
2843
2891
  name: "Login",
2844
- component: () => Promise.resolve().then(() => Sn),
2892
+ component: () => Promise.resolve().then(() => wa),
2845
2893
  meta: {
2846
2894
  title: "登录",
2847
2895
  hidden: !0
@@ -2850,13 +2898,13 @@ const _t = [
2850
2898
  ], ft = {
2851
2899
  path: "/",
2852
2900
  name: "Layout",
2853
- component: () => Promise.resolve().then(() => un),
2901
+ component: () => Promise.resolve().then(() => na),
2854
2902
  redirect: "/dashboard",
2855
2903
  children: [
2856
2904
  {
2857
2905
  path: "/dashboard",
2858
2906
  name: "Dashboard",
2859
- component: () => import("./index-U6a8866w.js"),
2907
+ component: () => import("./index-xhdpvVQC.js"),
2860
2908
  meta: {
2861
2909
  title: "仪表盘",
2862
2910
  icon: "dashboard",
@@ -2867,7 +2915,7 @@ const _t = [
2867
2915
  {
2868
2916
  path: "/system/user",
2869
2917
  name: "SystemUser",
2870
- component: () => import("./index-DkpGZDBh.js"),
2918
+ component: () => import("./index-DG5BwN0D.js"),
2871
2919
  meta: {
2872
2920
  title: "用户管理",
2873
2921
  icon: "user",
@@ -2877,7 +2925,7 @@ const _t = [
2877
2925
  {
2878
2926
  path: "/system/role",
2879
2927
  name: "SystemRole",
2880
- component: () => import("./index-B6OJp8lX.js"),
2928
+ component: () => import("./index-C0VbPQUq.js"),
2881
2929
  meta: {
2882
2930
  title: "角色管理",
2883
2931
  icon: "role",
@@ -2887,7 +2935,7 @@ const _t = [
2887
2935
  {
2888
2936
  path: "/system/menu",
2889
2937
  name: "SystemMenu",
2890
- component: () => import("./index-rfFkJbFI.js"),
2938
+ component: () => import("./index-i4mPNvy-.js"),
2891
2939
  meta: {
2892
2940
  title: "菜单管理",
2893
2941
  icon: "menu",
@@ -2905,11 +2953,11 @@ const _t = [
2905
2953
  }
2906
2954
  }
2907
2955
  ]
2908
- }, hl = [
2956
+ }, cl = [
2909
2957
  {
2910
2958
  path: "/dashboard",
2911
2959
  name: "Dashboard",
2912
- component: () => import("./index-U6a8866w.js"),
2960
+ component: () => import("./index-xhdpvVQC.js"),
2913
2961
  meta: {
2914
2962
  title: "仪表盘",
2915
2963
  icon: "dashboard",
@@ -2929,7 +2977,7 @@ const _t = [
2929
2977
  {
2930
2978
  path: "user",
2931
2979
  name: "SystemUser",
2932
- component: () => import("./index-DkpGZDBh.js"),
2980
+ component: () => import("./index-DG5BwN0D.js"),
2933
2981
  meta: {
2934
2982
  title: "用户管理",
2935
2983
  icon: "user",
@@ -2939,7 +2987,7 @@ const _t = [
2939
2987
  {
2940
2988
  path: "role",
2941
2989
  name: "SystemRole",
2942
- component: () => import("./index-B6OJp8lX.js"),
2990
+ component: () => import("./index-C0VbPQUq.js"),
2943
2991
  meta: {
2944
2992
  title: "角色管理",
2945
2993
  icon: "role",
@@ -2949,7 +2997,7 @@ const _t = [
2949
2997
  {
2950
2998
  path: "menu",
2951
2999
  name: "SystemMenu",
2952
- component: () => import("./index-rfFkJbFI.js"),
3000
+ component: () => import("./index-i4mPNvy-.js"),
2953
3001
  meta: {
2954
3002
  title: "菜单管理",
2955
3003
  icon: "menu",
@@ -2958,7 +3006,7 @@ const _t = [
2958
3006
  }
2959
3007
  ]
2960
3008
  }
2961
- ], On = [
3009
+ ], za = [
2962
3010
  {
2963
3011
  menuCode: "dashboard",
2964
3012
  menuName: "仪表盘",
@@ -3010,9 +3058,9 @@ const _t = [
3010
3058
  history: Je(),
3011
3059
  routes: [..._t, ft],
3012
3060
  scrollBehavior: () => ({ left: 0, top: 0 })
3013
- }), Rn = ["/login"];
3061
+ }), Fa = ["/login"];
3014
3062
  gt.beforeEach(async (t, a, p) => {
3015
- const l = _e();
3063
+ const l = fe();
3016
3064
  if (l.initTheme(), it())
3017
3065
  if (t.path === "/login")
3018
3066
  p({ path: "/" });
@@ -3027,19 +3075,19 @@ gt.beforeEach(async (t, a, p) => {
3027
3075
  mobilePhone: "13800138000",
3028
3076
  positionName: "管理员",
3029
3077
  avatar: ""
3030
- }), fe().setMenuList(On)), t.name && t.meta.keepAlive && l.addCachedView(t.name), p();
3078
+ }), ge().setMenuList(za)), t.name && t.meta.keepAlive && l.addCachedView(t.name), p();
3031
3079
  }
3032
3080
  else
3033
- Rn.includes(t.path) ? p() : p("/login");
3081
+ Fa.includes(t.path) ? p() : p("/login");
3034
3082
  });
3035
- function _l() {
3083
+ function ul() {
3036
3084
  const t = Xe({
3037
3085
  history: Je(),
3038
3086
  routes: [..._t, ft]
3039
3087
  });
3040
3088
  gt.matcher = t.matcher;
3041
3089
  }
3042
- function fl(t, a = {}) {
3090
+ function dl(t, a = {}) {
3043
3091
  const p = a.indexPath || "/dashboard", l = a.logoSrc, s = {
3044
3092
  path: "/:pathMatch(.*)*",
3045
3093
  name: "CatchAll",
@@ -3061,7 +3109,7 @@ function fl(t, a = {}) {
3061
3109
  children: [...t, s]
3062
3110
  };
3063
3111
  }
3064
- function gl(t, a = {}) {
3112
+ function ml(t, a = {}) {
3065
3113
  const p = a.base || bt();
3066
3114
  return Xe({
3067
3115
  history: Je(p),
@@ -3069,66 +3117,66 @@ function gl(t, a = {}) {
3069
3117
  scrollBehavior: () => ({ left: 0, top: 0 })
3070
3118
  });
3071
3119
  }
3072
- const Kn = ["login", "404", "403", "/login", "/404", "/403"];
3073
- function jn(t, a) {
3120
+ const Da = ["login", "404", "403", "/login", "/404", "/403"];
3121
+ function Aa(t, a) {
3074
3122
  if (a.includes(t)) return !0;
3075
3123
  const p = t.startsWith("/") ? t.slice(1) : t;
3076
3124
  return a.includes(p);
3077
3125
  }
3078
- function yl(t, a = {}) {
3079
- const p = a.whiteList || Kn;
3126
+ function pl(t, a = {}) {
3127
+ const p = a.whiteList || Da;
3080
3128
  t.beforeEach(async (l, s, d) => {
3081
- const i = _e(), h = ue(), m = fe(), f = i.loginPath || a.loginPath || "/login";
3129
+ const i = fe(), h = ue(), _ = ge(), m = i.loginPath || a.loginPath || "/login";
3082
3130
  if (i.initTheme(), rt())
3083
- if (l.path === f || l.name === "Login")
3131
+ if (l.path === m || l.name === "Login")
3084
3132
  d({ name: "Dashboard" });
3085
3133
  else if (h.isLoggedIn) {
3086
- if (!m.hasMenu)
3134
+ if (!_.hasMenu)
3087
3135
  try {
3088
- const g = a.fetchMenu ? await a.fetchMenu() : await ot(a.appId);
3089
- m.setMenuList(g);
3090
- } catch (g) {
3091
- console.warn("补拉菜单失败:", g);
3136
+ const y = a.fetchMenu ? await a.fetchMenu() : await ot(a.appId);
3137
+ _.setMenuList(y);
3138
+ } catch (y) {
3139
+ console.warn("补拉菜单失败:", y);
3092
3140
  }
3093
3141
  l.name && l.meta.keepAlive && i.addCachedView(l.name), d();
3094
3142
  } else
3095
3143
  try {
3096
3144
  if (a.fetchUserInfo) {
3097
- const g = await a.fetchUserInfo();
3098
- h.setUserInfo(g);
3145
+ const y = await a.fetchUserInfo();
3146
+ h.setUserInfo(y);
3099
3147
  } else {
3100
- const g = await wt();
3101
- h.setUserInfo(g);
3148
+ const y = await kt();
3149
+ h.setUserInfo(y);
3102
3150
  }
3103
3151
  if (a.fetchMenu) {
3104
- const g = await a.fetchMenu();
3105
- m.setMenuList(g);
3152
+ const y = await a.fetchMenu();
3153
+ _.setMenuList(y);
3106
3154
  } else {
3107
- const g = await ot(a.appId);
3108
- m.setMenuList(g);
3155
+ const y = await ot(a.appId);
3156
+ _.setMenuList(y);
3109
3157
  }
3110
3158
  a.onLoginSuccess && a.onLoginSuccess(), l.name && l.meta.keepAlive && i.addCachedView(l.name), d({ ...l, replace: !0 });
3111
- } catch (g) {
3112
- console.error("获取用户信息失败:", g), h.clearUserInfo(), m.clearMenu(), ct(), d({ name: "Login", query: { redirect: l.fullPath } });
3159
+ } catch (y) {
3160
+ console.error("获取用户信息失败:", y), h.clearUserInfo(), _.clearMenu(), ct(), d({ name: "Login", query: { redirect: l.fullPath } });
3113
3161
  }
3114
3162
  else
3115
- jn(l.path, p) || l.name === "Login" || l.name === "NotFound" || l.name === "Forbidden" ? d() : d({ name: "Login", query: { redirect: l.fullPath } });
3163
+ Aa(l.path, p) || l.name === "Login" || l.name === "NotFound" || l.name === "Forbidden" ? d() : d({ name: "Login", query: { redirect: l.fullPath } });
3116
3164
  }), t.afterEach(() => {
3117
3165
  });
3118
3166
  }
3119
- var Wn = /* @__PURE__ */ ((t) => (t[t.ENABLED = 1] = "ENABLED", t[t.DISABLED = 0] = "DISABLED", t))(Wn || {}), qn = /* @__PURE__ */ ((t) => (t[t.UNKNOWN = 0] = "UNKNOWN", t[t.MALE = 1] = "MALE", t[t.FEMALE = 2] = "FEMALE", t))(qn || {}), Hn = /* @__PURE__ */ ((t) => (t[t.DIRECTORY = 0] = "DIRECTORY", t[t.MENU = 1] = "MENU", t[t.BUTTON = 2] = "BUTTON", t))(Hn || {});
3120
- const bl = {
3167
+ var Ba = /* @__PURE__ */ ((t) => (t[t.ENABLED = 1] = "ENABLED", t[t.DISABLED = 0] = "DISABLED", t))(Ba || {}), Va = /* @__PURE__ */ ((t) => (t[t.UNKNOWN = 0] = "UNKNOWN", t[t.MALE = 1] = "MALE", t[t.FEMALE = 2] = "FEMALE", t))(Va || {}), Oa = /* @__PURE__ */ ((t) => (t[t.DIRECTORY = 0] = "DIRECTORY", t[t.MENU = 1] = "MENU", t[t.BUTTON = 2] = "BUTTON", t))(Oa || {});
3168
+ const vl = {
3121
3169
  1: "启用",
3122
3170
  0: "禁用"
3123
- }, wl = {
3171
+ }, hl = {
3124
3172
  0: "未知",
3125
3173
  1: "男",
3126
3174
  2: "女"
3127
- }, kl = {
3175
+ }, _l = {
3128
3176
  0: "目录",
3129
3177
  1: "菜单",
3130
3178
  2: "按钮"
3131
- }, xl = [
3179
+ }, fl = [
3132
3180
  {
3133
3181
  label: "启用",
3134
3182
  value: 1
@@ -3139,7 +3187,7 @@ const bl = {
3139
3187
  value: 0
3140
3188
  /* DISABLED */
3141
3189
  }
3142
- ], Cl = [
3190
+ ], gl = [
3143
3191
  {
3144
3192
  label: "未知",
3145
3193
  value: 0
@@ -3155,7 +3203,7 @@ const bl = {
3155
3203
  value: 2
3156
3204
  /* FEMALE */
3157
3205
  }
3158
- ], $l = [
3206
+ ], yl = [
3159
3207
  {
3160
3208
  label: "目录",
3161
3209
  value: 0
@@ -3171,10 +3219,10 @@ const bl = {
3171
3219
  value: 2
3172
3220
  /* BUTTON */
3173
3221
  }
3174
- ], Ll = {
3222
+ ], bl = {
3175
3223
  mounted(t, a) {
3176
3224
  var i, h;
3177
- const p = ue(), l = fe();
3225
+ const p = ue(), l = ge();
3178
3226
  if (!p.isLoggedIn) {
3179
3227
  (i = t.parentNode) == null || i.removeChild(t);
3180
3228
  return;
@@ -3183,20 +3231,20 @@ const bl = {
3183
3231
  l.hasPermission(d) || (h = t.parentNode) == null || h.removeChild(t);
3184
3232
  }
3185
3233
  };
3186
- async function Ml(t) {
3187
- await kt(t.basePath);
3188
- const a = at();
3234
+ async function kl(t) {
3235
+ await wt(t.basePath);
3236
+ const a = nt();
3189
3237
  a && xt(a), Ct({
3190
3238
  appId: t.appId,
3191
3239
  clientId: t.clientId,
3192
3240
  apiBaseUrl: a || t.apiBaseUrl,
3193
3241
  basePath: t.basePath
3194
- }), t.basePath && $t(t.basePath);
3242
+ }), t.basePath && Lt(t.basePath);
3195
3243
  const p = typeof window < "u" && window.location.pathname.includes("/h5/"), l = t.appId || Me();
3196
3244
  if (l && !p)
3197
3245
  try {
3198
3246
  const s = await Promise.race([
3199
- Lt(l),
3247
+ $t(l),
3200
3248
  new Promise((d) => setTimeout(() => d(null), 2e3))
3201
3249
  ]);
3202
3250
  s && typeof s == "object" && Mt(s);
@@ -3206,14 +3254,14 @@ async function Ml(t) {
3206
3254
  return Promise.resolve().then(() => Ot).then(({ useAppStore: s }) => {
3207
3255
  const d = s();
3208
3256
  t.appName && d.setAppName(t.appName), t.indexPath && d.setIndexPath(t.indexPath), t.loginPath && d.setLoginPath(t.loginPath);
3209
- }), t.locale && Promise.resolve().then(() => Vn).then(({ useLocaleStore: s }) => {
3257
+ }), t.locale && Promise.resolve().then(() => Pa).then(({ useLocaleStore: s }) => {
3210
3258
  s().changeLocale(t.locale);
3211
3259
  }), {
3212
3260
  config: {
3213
3261
  appName: t.appName || "XTO App",
3214
3262
  appId: Me(),
3215
3263
  clientId: dt(),
3216
- apiBaseUrl: at(),
3264
+ apiBaseUrl: nt(),
3217
3265
  basePath: t.basePath || "/",
3218
3266
  indexPath: t.indexPath || "/dashboard",
3219
3267
  loginPath: t.loginPath || "/login",
@@ -3222,47 +3270,47 @@ async function Ml(t) {
3222
3270
  };
3223
3271
  }
3224
3272
  export {
3225
- _e as A,
3226
- rl as B,
3273
+ fe as A,
3274
+ tl as B,
3227
3275
  ze as C,
3228
- il as D,
3229
- ul as E,
3230
- al as F,
3231
- qn as G,
3232
- Xs as H,
3276
+ sl as D,
3277
+ nl as E,
3278
+ Za as F,
3279
+ Va as G,
3280
+ js as H,
3233
3281
  et as I,
3234
- fe as J,
3235
- cl as K,
3282
+ ge as J,
3283
+ ol as K,
3236
3284
  vt as L,
3237
- Hn as M,
3285
+ Oa as M,
3238
3286
  ue as N,
3239
- Wn as S,
3240
- ol as T,
3287
+ Ba as S,
3288
+ Ja as T,
3241
3289
  de as _,
3242
- xl as a,
3243
- $l as b,
3244
- nl as c,
3245
- Cl as d,
3246
- wl as e,
3247
- kl as f,
3248
- Pn as g,
3290
+ fl as a,
3291
+ yl as b,
3292
+ Qa as c,
3293
+ gl as d,
3294
+ hl as e,
3295
+ _l as f,
3296
+ Sa as g,
3249
3297
  lt as h,
3250
- Mn as i,
3251
- bl as j,
3252
- fl as k,
3253
- gl as l,
3254
- dl as m,
3255
- Ml as n,
3256
- hl as o,
3257
- ml as p,
3258
- pl as q,
3259
- vl as r,
3298
+ ka as i,
3299
+ vl as j,
3300
+ dl as k,
3301
+ ml as l,
3302
+ al as m,
3303
+ kl as n,
3304
+ cl as o,
3305
+ ll as p,
3306
+ rl as q,
3307
+ il as r,
3260
3308
  ft as s,
3261
- On as t,
3262
- Ll as u,
3263
- _l as v,
3309
+ za as t,
3310
+ bl as u,
3311
+ ul as v,
3264
3312
  gt as w,
3265
- yl as x,
3313
+ pl as x,
3266
3314
  _t as y,
3267
- ll as z
3315
+ el as z
3268
3316
  };