@chewel611/naive-ui-plus 0.0.20 → 0.0.22

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (100) hide show
  1. package/dist/index.js +233 -233
  2. package/dist/index.umd.cjs +1 -1
  3. package/dist/style.css +1 -1
  4. package/es/application/index.d.ts +1 -2
  5. package/es/application/index.js +4 -4
  6. package/es/components.d.ts +9 -9
  7. package/es/components.js +21 -21
  8. package/es/iframe/index.d.ts +1 -2
  9. package/es/iframe/index.js +4 -4
  10. package/es/index.d.ts +5 -1
  11. package/es/index.js +33 -33
  12. package/es/languages/PLanguage.vue.js +1 -1
  13. package/es/languages/index.d.ts +3 -4
  14. package/es/languages/index.js +4 -5
  15. package/es/languages/store.d.ts +1 -1
  16. package/es/languages/store.js +1 -1
  17. package/es/layout/PLayout.css +1 -1
  18. package/es/layout/PLayout.vue.js +1 -1
  19. package/es/layout/PLayout.vue2.js +4 -4
  20. package/es/layout/content/PTabs.css +1 -1
  21. package/es/layout/content/PTabs.vue.js +1 -1
  22. package/es/layout/content/PTabs.vue2.js +3 -3
  23. package/es/layout/header/PHeader.css +1 -1
  24. package/es/layout/header/PHeader.vue.js +2 -2
  25. package/es/layout/header/PHeader.vue2.js +1 -1
  26. package/es/layout/index.d.ts +2 -1
  27. package/es/layout/sider/PLogo.css +1 -1
  28. package/es/layout/sider/PLogo.vue.js +2 -2
  29. package/es/layout/sider/PLogo.vue2.js +1 -1
  30. package/es/layout/sider/PMenus.vue.js +5 -5
  31. package/es/layout/{layout.d.ts → store.d.ts} +2 -26
  32. package/es/layout/{layout.js → store.js} +1 -1
  33. package/es/layout/typing.d.ts +25 -0
  34. package/es/modal/PModal.d.ts +3 -3
  35. package/es/modal/index.d.ts +5 -5
  36. package/es/modal/index.js +4 -4
  37. package/es/modal/typing.d.ts +2 -2
  38. package/es/oidc/POidc.css +1 -1
  39. package/es/oidc/POidc.vue.js +2 -2
  40. package/es/oidc/POidc.vue2.js +9 -9
  41. package/es/oidc/index.d.ts +3 -3
  42. package/es/oidc/index.js +3 -3
  43. package/es/oidc/store.d.ts +7 -11
  44. package/es/oidc/store.js +7 -7
  45. package/es/oidc/typing.d.ts +5 -0
  46. package/es/redirect/index.d.ts +1 -2
  47. package/es/redirect/index.js +3 -3
  48. package/es/table/index.d.ts +2 -2
  49. package/es/table/index.js +4 -4
  50. package/es/table/typing.d.ts +8 -8
  51. package/lib/application/index.cjs +1 -1
  52. package/lib/application/index.d.ts +1 -2
  53. package/lib/components.cjs +1 -1
  54. package/lib/components.d.ts +9 -9
  55. package/lib/iframe/index.cjs +1 -1
  56. package/lib/iframe/index.d.ts +1 -2
  57. package/lib/index.cjs +1 -1
  58. package/lib/index.d.ts +5 -1
  59. package/lib/languages/PLanguage.vue.cjs +1 -1
  60. package/lib/languages/index.cjs +1 -1
  61. package/lib/languages/index.d.ts +3 -4
  62. package/lib/languages/store.cjs +1 -1
  63. package/lib/languages/store.d.ts +1 -1
  64. package/lib/layout/PLayout.css +1 -1
  65. package/lib/layout/PLayout.vue.cjs +1 -1
  66. package/lib/layout/PLayout.vue2.cjs +1 -1
  67. package/lib/layout/content/PTabs.css +1 -1
  68. package/lib/layout/content/PTabs.vue.cjs +1 -1
  69. package/lib/layout/content/PTabs.vue2.cjs +1 -1
  70. package/lib/layout/header/PHeader.css +1 -1
  71. package/lib/layout/header/PHeader.vue.cjs +1 -1
  72. package/lib/layout/header/PHeader.vue2.cjs +1 -1
  73. package/lib/layout/index.d.ts +2 -1
  74. package/lib/layout/sider/PLogo.css +1 -1
  75. package/lib/layout/sider/PLogo.vue.cjs +1 -1
  76. package/lib/layout/sider/PLogo.vue2.cjs +1 -1
  77. package/lib/layout/sider/PMenus.vue.cjs +1 -1
  78. package/lib/layout/{layout.cjs → store.cjs} +1 -1
  79. package/lib/layout/{layout.d.ts → store.d.ts} +2 -26
  80. package/lib/layout/typing.d.ts +25 -0
  81. package/lib/modal/PModal.d.ts +3 -3
  82. package/lib/modal/index.cjs +1 -1
  83. package/lib/modal/index.d.ts +5 -5
  84. package/lib/modal/typing.d.ts +2 -2
  85. package/lib/oidc/POidc.css +1 -1
  86. package/lib/oidc/POidc.vue.cjs +1 -1
  87. package/lib/oidc/POidc.vue2.cjs +1 -1
  88. package/lib/oidc/index.cjs +1 -1
  89. package/lib/oidc/index.d.ts +3 -3
  90. package/lib/oidc/store.cjs +1 -1
  91. package/lib/oidc/store.d.ts +7 -11
  92. package/lib/oidc/typing.d.ts +5 -0
  93. package/lib/redirect/index.cjs +1 -1
  94. package/lib/redirect/index.d.ts +1 -2
  95. package/lib/table/index.cjs +1 -1
  96. package/lib/table/index.d.ts +2 -2
  97. package/lib/table/typing.d.ts +8 -8
  98. package/package.json +1 -1
  99. package/es/typing.d.ts +0 -6
  100. package/lib/typing.d.ts +0 -6
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
- import { useDialog as Me, useMessage as fe, NCard as Xe, NDataTable as Ge, NModal as Re, NSpace as Ne, NButton as K, NTooltip as De, NIcon as M, NDropdown as Q, NAvatar as Ae, NBreadcrumb as Je, NBreadcrumbItem as Ze, NDivider as Qe, useThemeVars as et, NMenu as tt, NLayout as $e, NLayoutSider as at, NFlex as ot, NLayoutHeader as nt, NLayoutContent as lt, NBackTop as st, NConfigProvider as rt, dateZhCN as ct, zhCN as it, NDialogProvider as dt, NNotificationProvider as ut, NMessageProvider as ft, NText as pt, NEmpty as gt, NSpin as ht, NResult as Pe } from "naive-ui";
2
- import { defineComponent as A, ref as O, computed as U, unref as a, onMounted as X, openBlock as b, createBlock as $, withCtx as s, createElementVNode as y, createElementBlock as N, renderSlot as F, createCommentVNode as B, createVNode as c, normalizeStyle as ue, createTextVNode as Y, h as z, toRaw as Z, reactive as xe, normalizeClass as ae, withDirectives as mt, toDisplayString as q, vShow as vt, nextTick as oe, inject as Ie, Fragment as Oe, renderList as _t, resolveDynamicComponent as we, withModifiers as ke, resolveComponent as ze, KeepAlive as bt, useCssVars as yt, watch as Be, provide as wt, mergeProps as kt, onBeforeMount as Pt } from "vue";
3
- import { PlusSquareOutlined as xt, DeleteOutlined as Ct, ReloadOutlined as Ce, MoreOutlined as St, MenuUnfoldOutlined as Lt, MenuFoldOutlined as Tt, FullscreenOutlined as $t, FullscreenExitOutlined as Ot, CloseOutlined as Ee, ColumnWidthOutlined as Et, MinusOutlined as Mt, LeftOutlined as Rt, RightOutlined as Nt, DownOutlined as Dt } from "@vicons/antd";
1
+ import { useDialog as Me, useMessage as fe, NCard as Xe, NDataTable as Ge, NModal as Re, NSpace as Ne, NButton as K, NTooltip as De, NIcon as M, NDropdown as Q, NAvatar as Ae, NBreadcrumb as Je, NBreadcrumbItem as Ze, NDivider as Qe, useThemeVars as et, NMenu as tt, NLayout as $e, NLayoutSider as at, NFlex as ot, NLayoutHeader as nt, NLayoutContent as lt, NBackTop as st, NConfigProvider as rt, dateZhCN as it, zhCN as ct, NDialogProvider as dt, NNotificationProvider as ut, NMessageProvider as ft, NText as pt, NEmpty as gt, NSpin as ht, NResult as ke } from "naive-ui";
2
+ import { defineComponent as A, ref as O, computed as U, unref as a, onMounted as X, openBlock as b, createBlock as $, withCtx as s, createElementVNode as y, createElementBlock as N, renderSlot as F, createCommentVNode as B, createVNode as i, normalizeStyle as ue, createTextVNode as Y, h as z, toRaw as Z, reactive as Ce, normalizeClass as ae, withDirectives as mt, toDisplayString as q, vShow as vt, nextTick as oe, inject as Ie, Fragment as Oe, renderList as _t, resolveDynamicComponent as we, withModifiers as Pe, resolveComponent as ze, KeepAlive as bt, useCssVars as yt, watch as Be, provide as wt, mergeProps as Pt, onBeforeMount as kt } from "vue";
3
+ import { PlusSquareOutlined as Ct, DeleteOutlined as xt, ReloadOutlined as xe, MoreOutlined as St, MenuUnfoldOutlined as Lt, MenuFoldOutlined as Tt, FullscreenOutlined as $t, FullscreenExitOutlined as Ot, CloseOutlined as Ee, ColumnWidthOutlined as Et, MinusOutlined as Mt, LeftOutlined as Rt, RightOutlined as Nt, DownOutlined as Dt } from "@vicons/antd";
4
4
  import { cloneDeep as At } from "lodash";
5
5
  import { defineStore as Se } from "pinia";
6
6
  import { useRouter as ne, useRoute as le } from "vue-router";
@@ -8,8 +8,8 @@ import It from "element-resize-detector";
8
8
  import zt from "vuedraggable";
9
9
  const We = (t) => {
10
10
  Object.keys(t).forEach((r) => {
11
- const i = t[r];
12
- Array.isArray(i) ? t[r] = [] : i !== null && typeof i == "object" ? We(i) : t[r] = void 0;
11
+ const c = t[r];
12
+ Array.isArray(c) ? t[r] = [] : c !== null && typeof c == "object" ? We(c) : t[r] = void 0;
13
13
  });
14
14
  }, Bt = { id: "data-content" }, Wt = {
15
15
  key: 0,
@@ -32,7 +32,7 @@ const We = (t) => {
32
32
  onDelete: {}
33
33
  },
34
34
  setup(t, { expose: r }) {
35
- const i = O(null), h = Me(), p = fe(), u = O(!1), C = O([]), w = O([]), m = O(null), T = O(!1), g = O(!1), v = O(!1), d = O({}), S = O({
35
+ const c = O(null), h = Me(), p = fe(), u = O(!1), x = O([]), w = O([]), m = O(null), T = O(!1), g = O(!1), v = O(!1), d = O({}), S = O({
36
36
  page: 1,
37
37
  itemCount: 0,
38
38
  pageSize: 10,
@@ -44,14 +44,14 @@ const We = (t) => {
44
44
  onUpdatePageSize: async (f) => {
45
45
  S.value.pageSize = f, await j();
46
46
  }
47
- }), o = t, k = (f) => {
47
+ }), o = t, P = (f) => {
48
48
  const e = (n) => {
49
49
  const l = [];
50
- return f && f.forEach((x) => {
51
- x.key !== "edit" && x.key !== "delete" && l.push({
52
- label: x.name,
53
- key: x.key,
54
- props: { onClick: () => x.action(n) }
50
+ return f && f.forEach((C) => {
51
+ C.key !== "edit" && C.key !== "delete" && l.push({
52
+ label: C.name,
53
+ key: C.key,
54
+ props: { onClick: () => C.action(n) }
55
55
  });
56
56
  }), l;
57
57
  };
@@ -102,9 +102,9 @@ const We = (t) => {
102
102
  return e && e?.length > 0 || !o.hiddenDelete || !o.hiddenEdit ? [
103
103
  { type: "selection", fixed: "left" },
104
104
  ...f,
105
- k(e)
105
+ P(e)
106
106
  ] : [{ type: "selection", fixed: "left" }, ...f];
107
- }), P = async () => {
107
+ }), k = async () => {
108
108
  await j();
109
109
  }, I = (f) => {
110
110
  L([f]);
@@ -127,9 +127,9 @@ const We = (t) => {
127
127
  }
128
128
  });
129
129
  }, ee = () => {
130
- m.value = null, ce();
130
+ m.value = null, ie();
131
131
  }, pe = async (f) => {
132
- m.value = At(f), ce(m.value, async () => {
132
+ m.value = At(f), ie(m.value, async () => {
133
133
  o.onGet && (m.value = await o.onGet(f[o.idField])), Object.assign(o.item, m.value);
134
134
  });
135
135
  }, re = async () => {
@@ -141,11 +141,11 @@ const We = (t) => {
141
141
  } finally {
142
142
  v.value = !1;
143
143
  }
144
- }, ce = async (f, e) => {
144
+ }, ie = async (f, e) => {
145
145
  o.onOpenModal?.(f), await e?.(), f ? (T.value = !1, g.value = !0) : (g.value = !1, T.value = !0);
146
146
  }, G = () => {
147
147
  m.value = null, We(o.item), Object.assign(o.item, { ...Z(d.value) }), o.onCloseModal?.(o.item), T.value = !1, g.value = !1;
148
- }, J = () => C.value ? w.value.filter((e) => C.value.includes(e.id)).map((e) => Z(e)) : [], ge = () => J()[0], he = () => Z(w.value), j = async () => {
148
+ }, J = () => x.value ? w.value.filter((e) => x.value.includes(e.id)).map((e) => Z(e)) : [], ge = () => J()[0], he = () => Z(w.value), j = async () => {
149
149
  if (!u.value) {
150
150
  u.value = !0;
151
151
  try {
@@ -163,9 +163,9 @@ const We = (t) => {
163
163
  }
164
164
  }
165
165
  }, me = U(() => {
166
- const f = a(i);
166
+ const f = a(c);
167
167
  if (!f) return;
168
- const e = f?.$el, n = e.querySelector(".n-data-table-thead "), { bottomIncludeBody: l } = te(n), x = 64;
168
+ const e = f?.$el, n = e.querySelector(".n-data-table-thead "), { bottomIncludeBody: l } = te(n), C = 64;
169
169
  let R = 2, D = 24;
170
170
  const V = e.querySelector(
171
171
  ".n-data-table__pagination"
@@ -175,14 +175,14 @@ const We = (t) => {
175
175
  R += _e || 0;
176
176
  } else
177
177
  R += 28;
178
- return l - (x + R + D);
179
- }), ie = (f) => !f || !f.getBoundingClientRect ? 0 : f.getBoundingClientRect(), te = (f) => {
180
- const e = document.documentElement, n = e.scrollLeft, l = e.scrollTop, x = e.clientLeft, R = e.clientTop, D = window.pageXOffset, V = window.pageYOffset, de = ie(f), {
178
+ return l - (C + R + D);
179
+ }), ce = (f) => !f || !f.getBoundingClientRect ? 0 : f.getBoundingClientRect(), te = (f) => {
180
+ const e = document.documentElement, n = e.scrollLeft, l = e.scrollTop, C = e.clientLeft, R = e.clientTop, D = window.pageXOffset, V = window.pageYOffset, de = ce(f), {
181
181
  left: _e,
182
182
  top: je,
183
183
  width: Ue,
184
184
  height: Fe
185
- } = de, qe = (D || n) - (x || 0), Ve = (V || l) - (R || 0), Ke = _e + D, Ye = je + V, be = Ke - qe, ye = Ye - Ve, Le = window.document.documentElement.clientWidth, Te = window.document.documentElement.clientHeight;
185
+ } = de, qe = (D || n) - (C || 0), Ve = (V || l) - (R || 0), Ke = _e + D, Ye = je + V, be = Ke - qe, ye = Ye - Ve, Le = window.document.documentElement.clientWidth, Te = window.document.documentElement.clientHeight;
186
186
  return {
187
187
  left: be,
188
188
  top: ye,
@@ -206,7 +206,7 @@ const We = (t) => {
206
206
  S.value.page = 1;
207
207
  }
208
208
  }), (f, e) => {
209
- const n = De, l = Ge, x = Ne, R = Re;
209
+ const n = De, l = Ge, C = Ne, R = Re;
210
210
  return b(), $(a(Xe), {
211
211
  title: " ",
212
212
  "header-class": "p-4",
@@ -219,13 +219,13 @@ const We = (t) => {
219
219
  trigger: "hover"
220
220
  }, {
221
221
  trigger: s(() => [
222
- c(a(M), {
222
+ i(a(M), {
223
223
  size: "18",
224
224
  class: "mr-1 cursor-pointer hover:text-blue-600",
225
225
  onClick: ee
226
226
  }, {
227
227
  default: s(() => [
228
- c(a(xt))
228
+ i(a(Ct))
229
229
  ]),
230
230
  _: 1
231
231
  })
@@ -240,13 +240,13 @@ const We = (t) => {
240
240
  trigger: "hover"
241
241
  }, {
242
242
  trigger: s(() => [
243
- c(a(M), {
243
+ i(a(M), {
244
244
  size: "18",
245
245
  class: "mr-1 cursor-pointer hover:text-blue-600",
246
246
  onClick: E
247
247
  }, {
248
248
  default: s(() => [
249
- c(a(Ct))
249
+ i(a(xt))
250
250
  ]),
251
251
  _: 1
252
252
  })
@@ -256,15 +256,15 @@ const We = (t) => {
256
256
  ]),
257
257
  _: 1
258
258
  })),
259
- c(n, { trigger: "hover" }, {
259
+ i(n, { trigger: "hover" }, {
260
260
  trigger: s(() => [
261
- c(a(M), {
261
+ i(a(M), {
262
262
  size: "18",
263
263
  class: "cursor-pointer hover:text-blue-600",
264
- onClick: P
264
+ onClick: k
265
265
  }, {
266
266
  default: s(() => [
267
- c(a(Ce))
267
+ i(a(xe))
268
268
  ]),
269
269
  _: 1
270
270
  })
@@ -280,12 +280,12 @@ const We = (t) => {
280
280
  f.$slots.toolbar ? (b(), N("div", Wt, [
281
281
  F(f.$slots, "toolbar")
282
282
  ])) : B("", !0),
283
- c(l, {
283
+ i(l, {
284
284
  remote: "",
285
285
  ref_key: "$table",
286
- ref: i,
287
- "checked-row-keys": C.value,
288
- "onUpdate:checkedRowKeys": e[0] || (e[0] = (D) => C.value = D),
286
+ ref: c,
287
+ "checked-row-keys": x.value,
288
+ "onUpdate:checkedRowKeys": e[0] || (e[0] = (D) => x.value = D),
289
289
  "max-height": me.value,
290
290
  loading: u.value,
291
291
  bordered: !1,
@@ -296,7 +296,7 @@ const We = (t) => {
296
296
  "row-key": (D) => D[t.idField]
297
297
  }, null, 8, ["checked-row-keys", "max-height", "loading", "columns", "data", "pagination", "row-key"]),
298
298
  f.$slots.addModal ? (b(), N("div", Ht, [
299
- c(R, {
299
+ i(R, {
300
300
  title: "新增",
301
301
  preset: "card",
302
302
  show: T.value,
@@ -309,9 +309,9 @@ const We = (t) => {
309
309
  style: ue({ width: `${t.modalWidth}px` })
310
310
  }, {
311
311
  action: s(() => [
312
- c(x, { justify: "end" }, {
312
+ i(C, { justify: "end" }, {
313
313
  default: s(() => [
314
- c(a(K), {
314
+ i(a(K), {
315
315
  type: "primary",
316
316
  loading: v.value,
317
317
  onClick: re
@@ -321,7 +321,7 @@ const We = (t) => {
321
321
  ])]),
322
322
  _: 1
323
323
  }, 8, ["loading"]),
324
- c(a(K), { onClick: G }, {
324
+ i(a(K), { onClick: G }, {
325
325
  default: s(() => [...e[7] || (e[7] = [
326
326
  Y("取消", -1)
327
327
  ])]),
@@ -338,7 +338,7 @@ const We = (t) => {
338
338
  }, 8, ["show", "style"])
339
339
  ])) : B("", !0),
340
340
  f.$slots.editModal ? (b(), N("div", jt, [
341
- c(R, {
341
+ i(R, {
342
342
  title: "编辑",
343
343
  show: g.value,
344
344
  "onUpdate:show": e[2] || (e[2] = (D) => g.value = D),
@@ -351,9 +351,9 @@ const We = (t) => {
351
351
  style: ue({ width: `${t.modalWidth}px` })
352
352
  }, {
353
353
  action: s(() => [
354
- c(x, { justify: "end" }, {
354
+ i(C, { justify: "end" }, {
355
355
  default: s(() => [
356
- c(a(K), {
356
+ i(a(K), {
357
357
  type: "primary",
358
358
  loading: v.value,
359
359
  onClick: re
@@ -363,7 +363,7 @@ const We = (t) => {
363
363
  ])]),
364
364
  _: 1
365
365
  }, 8, ["loading"]),
366
- c(a(K), { onClick: G }, {
366
+ i(a(K), { onClick: G }, {
367
367
  default: s(() => [...e[9] || (e[9] = [
368
368
  Y("取消", -1)
369
369
  ])]),
@@ -387,11 +387,11 @@ const We = (t) => {
387
387
  }
388
388
  }), W = (t) => {
389
389
  const r = t;
390
- return r.install = function(i) {
391
- i.component(r.__name, t);
390
+ return r.install = function(c) {
391
+ c.component(r.__name, t);
392
392
  }, t;
393
393
  }, Ft = W(Ut), qt = ["Redirect", "RedirectSon", "login"], se = Se("p-layout", () => {
394
- const t = xe({
394
+ const t = Ce({
395
395
  collapsed: !1,
396
396
  title: "输入项目名称",
397
397
  logo: "https://picsum.photos/id/1/100/100",
@@ -404,39 +404,39 @@ const We = (t) => {
404
404
  return {
405
405
  state: t,
406
406
  initTabs: (o) => {
407
- o.sort((k, _) => (_.meta.affix ? 1 : 0) - (k.meta.affix ? 1 : 0)), t.tabs = o;
407
+ o.sort((P, _) => (_.meta.affix ? 1 : 0) - (P.meta.affix ? 1 : 0)), t.tabs = o;
408
408
  },
409
409
  addTab: (o) => qt.includes(o.name) ? !1 : (t.tabs?.some(
410
410
  (_) => _.fullPath == o.fullPath
411
411
  ) || t.tabs?.push(o), !0),
412
412
  closeCurrentTab: (o) => {
413
- const k = t.tabs.findIndex(
413
+ const P = t.tabs.findIndex(
414
414
  (_) => _.fullPath == o.fullPath
415
415
  );
416
- t.tabs.splice(k, 1);
416
+ t.tabs.splice(P, 1);
417
417
  },
418
418
  closeAllTabs: () => {
419
419
  t.tabs = t.tabs.filter((o) => o?.meta?.affix ?? !1);
420
420
  },
421
421
  closeOtherTabs: (o) => {
422
422
  t.tabs = t.tabs.filter(
423
- (k) => k.fullPath == o.fullPath || (k?.meta?.affix ?? !1)
423
+ (P) => P.fullPath == o.fullPath || (P?.meta?.affix ?? !1)
424
424
  );
425
425
  },
426
426
  closeLeftTabs: (o) => {
427
- const k = t.tabs.findIndex(
427
+ const P = t.tabs.findIndex(
428
428
  (_) => _.fullPath == o.fullPath
429
429
  );
430
430
  t.tabs = t.tabs.filter(
431
- (_, P) => P >= k || (_?.meta?.affix ?? !1)
431
+ (_, k) => k >= P || (_?.meta?.affix ?? !1)
432
432
  );
433
433
  },
434
434
  closeRightTabs: (o) => {
435
- const k = t.tabs.findIndex(
435
+ const P = t.tabs.findIndex(
436
436
  (_) => _.fullPath == o.fullPath
437
437
  );
438
438
  t.tabs = t.tabs.filter(
439
- (_, P) => P <= k || (_?.meta?.affix ?? !1)
439
+ (_, k) => k <= P || (_?.meta?.affix ?? !1)
440
440
  );
441
441
  },
442
442
  collapse: () => {
@@ -448,8 +448,8 @@ const We = (t) => {
448
448
  setLogo: (o) => {
449
449
  t.logo = o;
450
450
  },
451
- setUser: (o, k) => {
452
- t.uid = o, t.uname = k;
451
+ setUser: (o, P) => {
452
+ t.uid = o, t.uname = P;
453
453
  },
454
454
  setSettingPages: (o) => {
455
455
  t.settingPages = o;
@@ -462,8 +462,8 @@ const We = (t) => {
462
462
  __name: "PLogo",
463
463
  setup(t) {
464
464
  const r = se();
465
- return (i, h) => (b(), N("div", Vt, [
466
- c(a(Ae), {
465
+ return (c, h) => (b(), N("div", Vt, [
466
+ i(a(Ae), {
467
467
  color: "var(--color-logo)",
468
468
  size: 32,
469
469
  src: a(r).state.logo,
@@ -475,11 +475,11 @@ const We = (t) => {
475
475
  ]));
476
476
  }
477
477
  }), H = (t, r) => {
478
- const i = t.__vccOpts || t;
478
+ const c = t.__vccOpts || t;
479
479
  for (const [h, p] of r)
480
- i[h] = p;
481
- return i;
482
- }, Yt = /* @__PURE__ */ H(Kt, [["__scopeId", "data-v-c9496d2e"]]), Xt = {
480
+ c[h] = p;
481
+ return c;
482
+ }, Yt = /* @__PURE__ */ H(Kt, [["__scopeId", "data-v-e48aeefa"]]), Xt = {
483
483
  translationApiUrl: "https://translate.zvo.cn/api",
484
484
  defaultLanguage: "chinese",
485
485
  currentLanguage: "",
@@ -493,7 +493,7 @@ const We = (t) => {
493
493
  g.forEach((v) => {
494
494
  (v.key === "Chinese" || v.key === "chinese") && (v.key = "chinese_simplified");
495
495
  }), t.value.options = [...g];
496
- }, i = () => t.value.options, h = (g) => {
496
+ }, c = () => t.value.options, h = (g) => {
497
497
  if (t.value.currentLanguage === g)
498
498
  return;
499
499
  const v = t.value.options.find(
@@ -507,7 +507,7 @@ const We = (t) => {
507
507
  );
508
508
  }, u = (g) => {
509
509
  t.value.selectCallback = g;
510
- }, C = () => t.value.translationApiUrl, w = (g) => {
510
+ }, x = () => t.value.translationApiUrl, w = (g) => {
511
511
  t.value.translationApiUrl = g;
512
512
  }, m = (g) => {
513
513
  (g === "Chinese" || g === "chinese") && (g = "chinese_simplified"), t.value.defaultLanguage = g;
@@ -518,26 +518,26 @@ const We = (t) => {
518
518
  state: t,
519
519
  select: h,
520
520
  setLanguages: r,
521
- getLanguages: i,
521
+ getLanguages: c,
522
522
  getCurrentLanguage: p,
523
523
  setSelectCallback: u,
524
524
  setTranslationApiUrl: w,
525
- getTranslationApiUrl: C,
525
+ getTranslationApiUrl: x,
526
526
  setDefaultLanguage: m,
527
527
  getDefaultLanguage: T
528
528
  };
529
529
  }), Jt = { key: 1 }, He = /* @__PURE__ */ A({
530
530
  __name: "PLanguage",
531
531
  setup(t) {
532
- const r = (m) => i(m), {
533
- select: i,
532
+ const r = (m) => c(m), {
533
+ select: c,
534
534
  getLanguages: h,
535
535
  getCurrentLanguage: p,
536
536
  getDefaultLanguage: u,
537
- getTranslationApiUrl: C
537
+ getTranslationApiUrl: x
538
538
  } = Gt(), w = () => {
539
539
  const m = window.translate;
540
- m && (m.selectLanguageTag.show = !1, m.selectLanguageTag.languages = h().map((T) => T.key).join(","), m.ignore.class.push("ignore-translate-flag"), m.ignore.id.push("ignore-translation"), m.language.setLocal(u()), m.request.api.translate = "api/v1/translation", m.request.api.connectTest = "api/v1/translation/connect-test", m.request.api.init = "api/v1/translation/init", m.request.api.language = "api/v1/translation/language", m.request.setHost(C()), m.request.listener.start(), m.listener.start(), m.whole.enableAll(), m.execute());
540
+ m && (m.selectLanguageTag.show = !1, m.selectLanguageTag.languages = h().map((T) => T.key).join(","), m.ignore.class.push("ignore-translate-flag"), m.ignore.id.push("ignore-translation"), m.language.setLocal(u()), m.request.api.translate = "api/v1/translation", m.request.api.connectTest = "api/v1/translation/connect-test", m.request.api.init = "api/v1/translation/init", m.request.api.language = "api/v1/translation/language", m.request.setHost(x()), m.request.listener.start(), m.listener.start(), m.whole.enableAll(), m.execute());
541
541
  };
542
542
  return X(async () => await oe(() => w())), (m, T) => {
543
543
  const g = M, v = K;
@@ -551,7 +551,7 @@ const We = (t) => {
551
551
  options: a(h)()
552
552
  }, {
553
553
  default: s(() => [
554
- c(v, {
554
+ i(v, {
555
555
  quaternary: "",
556
556
  type: "info"
557
557
  }, {
@@ -592,8 +592,8 @@ const We = (t) => {
592
592
  }, aa = { class: "layout-header-right" }, oa = { class: "layout-header-trigger-min" }, na = { class: "layout-header-trigger layout-header-trigger-min" }, la = { class: "layout-header-trigger layout-header-trigger-min" }, sa = { class: "avatar" }, ra = /* @__PURE__ */ A({
593
593
  __name: "PHeader",
594
594
  setup(t) {
595
- const r = fe(), i = Me(), h = se(), p = ne(), u = le(), C = Ie("reloadPage"), w = (k) => p.push({ name: k }), m = U(() => T(u.matched)), T = (k) => k.map((_) => {
596
- const P = {
595
+ const r = fe(), c = Me(), h = se(), p = ne(), u = le(), x = Ie("reloadPage"), w = (P) => p.push({ name: P }), m = U(() => T(u.matched)), T = (P) => P.map((_) => {
596
+ const k = {
597
597
  key: _.name,
598
598
  label: _.meta.title,
599
599
  icon: _.meta.icon,
@@ -601,26 +601,26 @@ const We = (t) => {
601
601
  disabled: _.path === "/",
602
602
  children: void 0
603
603
  };
604
- return _.children && _.children.length > 0 && (P.children = T(
604
+ return _.children && _.children.length > 0 && (k.children = T(
605
605
  _.children
606
- )), P;
606
+ )), k;
607
607
  }), g = O(!1), v = () => {
608
608
  document.fullscreenElement ? document.exitFullscreen && (document.exitFullscreen(), g.value = !1) : (document.documentElement.requestFullscreen(), g.value = !0);
609
609
  }, d = U(() => {
610
- const k = [];
611
- return k.push({
610
+ const P = [];
611
+ return P.push({
612
612
  label: "退出登录",
613
613
  key: "logout"
614
614
  }), h.state.settingPages && h.state.settingPages.length > 0 && h.state.settingPages.forEach((_) => {
615
- k.push({
615
+ P.push({
616
616
  label: _.title,
617
617
  key: _.route
618
618
  });
619
- }), k;
620
- }), S = (k) => {
621
- k === "logout" ? o() : p.push({ name: k });
619
+ }), P;
620
+ }), S = (P) => {
621
+ P === "logout" ? o() : p.push({ name: P });
622
622
  }, o = () => {
623
- i.info({
623
+ c.info({
624
624
  title: "提示",
625
625
  content: "您确定要退出登录吗",
626
626
  positiveText: "确定",
@@ -629,8 +629,8 @@ const We = (t) => {
629
629
  if (h.state.logout)
630
630
  try {
631
631
  await h.state.logout(), localStorage.removeItem("TABS-ROUTES"), r.error("退出成功");
632
- } catch (k) {
633
- console.error(k), r.error("退出登录失败");
632
+ } catch (P) {
633
+ console.error(P), r.error("退出登录失败");
634
634
  } finally {
635
635
  location.reload();
636
636
  }
@@ -641,8 +641,8 @@ const We = (t) => {
641
641
  }
642
642
  });
643
643
  };
644
- return (k, _) => {
645
- const P = De, I = Qe, E = Ae;
644
+ return (P, _) => {
645
+ const k = De, I = Qe, E = Ae;
646
646
  return b(), N("div", Zt, [
647
647
  y("div", Qt, [
648
648
  y("div", {
@@ -655,7 +655,7 @@ const We = (t) => {
655
655
  size: "18"
656
656
  }, {
657
657
  default: s(() => [
658
- c(a(Lt))
658
+ i(a(Lt))
659
659
  ]),
660
660
  _: 1
661
661
  })) : (b(), $(a(M), {
@@ -663,7 +663,7 @@ const We = (t) => {
663
663
  size: "18"
664
664
  }, {
665
665
  default: s(() => [
666
- c(a(Tt))
666
+ i(a(Tt))
667
667
  ]),
668
668
  _: 1
669
669
  }))
@@ -671,16 +671,16 @@ const We = (t) => {
671
671
  y("div", {
672
672
  class: "mr-1 layout-header-trigger layout-header-trigger-min",
673
673
  onClick: _[1] || (_[1] = //@ts-ignore
674
- (...L) => a(C) && a(C)(...L))
674
+ (...L) => a(x) && a(x)(...L))
675
675
  }, [
676
- c(a(M), { size: "18" }, {
676
+ i(a(M), { size: "18" }, {
677
677
  default: s(() => [
678
- c(a(Ce))
678
+ i(a(xe))
679
679
  ]),
680
680
  _: 1
681
681
  })
682
682
  ]),
683
- c(a(Je), null, {
683
+ i(a(Je), null, {
684
684
  default: s(() => [
685
685
  (b(!0), N(Oe, null, _t(m.value, (L) => (b(), N(Oe, {
686
686
  key: L.label
@@ -713,14 +713,14 @@ const We = (t) => {
713
713
  ]),
714
714
  y("div", aa, [
715
715
  y("div", oa, [
716
- c(He)
716
+ i(He)
717
717
  ]),
718
718
  y("div", na, [
719
- c(P, { placement: "bottom" }, {
719
+ i(k, { placement: "bottom" }, {
720
720
  trigger: s(() => [
721
- c(a(M), {
721
+ i(a(M), {
722
722
  size: "18",
723
- onClick: ke(v, ["stop"])
723
+ onClick: Pe(v, ["stop"])
724
724
  }, {
725
725
  default: s(() => [
726
726
  g.value ? (b(), $(a(Ot), { key: 1 })) : (b(), $(a($t), { key: 0 }))
@@ -735,7 +735,7 @@ const We = (t) => {
735
735
  })
736
736
  ]),
737
737
  y("div", la, [
738
- c(a(Q), {
738
+ i(a(Q), {
739
739
  trigger: "hover",
740
740
  onSelect: S,
741
741
  options: d.value
@@ -743,8 +743,8 @@ const We = (t) => {
743
743
  default: s(() => [
744
744
  y("div", sa, [
745
745
  y("span", null, q(a(h).state.uname), 1),
746
- c(I, { vertical: "" }),
747
- c(E, {
746
+ i(I, { vertical: "" }),
747
+ i(E, {
748
748
  round: "",
749
749
  src: a(h).state.avatar
750
750
  }, null, 8, ["src"])
@@ -757,15 +757,15 @@ const We = (t) => {
757
757
  ]);
758
758
  };
759
759
  }
760
- }), ca = /* @__PURE__ */ H(ra, [["__scopeId", "data-v-93589779"]]), ia = { class: "mt-1" }, da = /* @__PURE__ */ A({
760
+ }), ia = /* @__PURE__ */ H(ra, [["__scopeId", "data-v-9fabccfe"]]), ca = { class: "mt-1" }, da = /* @__PURE__ */ A({
761
761
  __name: "PContent",
762
762
  props: {
763
763
  loading: { type: Boolean, default: !1 }
764
764
  },
765
765
  setup(t) {
766
- return (r, i) => {
766
+ return (r, c) => {
767
767
  const h = ze("RouterView");
768
- return b(), N("div", ia, [
768
+ return b(), N("div", ca, [
769
769
  t.loading ? B("", !0) : (b(), $(h, { key: 0 }, {
770
770
  default: s(({ Component: p, route: u }) => [
771
771
  (b(), $(bt, null, [
@@ -783,10 +783,10 @@ const We = (t) => {
783
783
  __name: "PTabs",
784
784
  setup(t) {
785
785
  yt((e) => ({
786
- v1ffa5f5e: i.value,
787
- db4d15a0: h.value
786
+ v141ddb06: c.value,
787
+ cf709148: h.value
788
788
  }));
789
- const r = et(), i = U(() => r.value.cardColor), h = U(() => r.value.textColor1), p = fe(), u = le(), C = ne(), w = O(null), m = O(null), T = O(!1), g = se(), v = U(() => g.state.tabs), d = xe({
789
+ const r = et(), c = U(() => r.value.cardColor), h = U(() => r.value.textColor1), p = fe(), u = le(), x = ne(), w = O(null), m = O(null), T = O(!1), g = se(), v = U(() => g.state.tabs), d = Ce({
790
790
  activeKey: u.fullPath,
791
791
  scrollable: !0,
792
792
  dropdownX: 0,
@@ -795,9 +795,9 @@ const We = (t) => {
795
795
  isMultiHeaderFixed: !0,
796
796
  multiTabsSetting: !0
797
797
  }), S = ["Login", "Redirect", "ErrorPage"], o = (e) => {
798
- const { fullPath: n, hash: l, meta: x, name: R, params: D, path: V, query: de } = e;
799
- return { fullPath: n, hash: l, meta: x, name: R, params: D, path: V, query: de };
800
- }, k = U(() => {
798
+ const { fullPath: n, hash: l, meta: C, name: R, params: D, path: V, query: de } = e;
799
+ return { fullPath: n, hash: l, meta: C, name: R, params: D, path: V, query: de };
800
+ }, P = U(() => {
801
801
  const l = g.state.collapsed ? "64px" : "272px";
802
802
  return {
803
803
  left: l,
@@ -809,7 +809,7 @@ const We = (t) => {
809
809
  {
810
810
  label: "刷新当前",
811
811
  key: "1",
812
- icon: () => z(M, null, { default: () => z(Ce) })
812
+ icon: () => z(M, null, { default: () => z(xe) })
813
813
  },
814
814
  {
815
815
  label: "关闭当前",
@@ -830,7 +830,7 @@ const We = (t) => {
830
830
  icon: () => z(M, null, { default: () => z(Mt) })
831
831
  }
832
832
  ];
833
- }), P = () => {
833
+ }), k = () => {
834
834
  let e = [];
835
835
  const n = o(u);
836
836
  try {
@@ -844,13 +844,13 @@ const We = (t) => {
844
844
  return e;
845
845
  }
846
846
  }, I = (e) => {
847
- const n = C.getRoutes();
847
+ const n = x.getRoutes();
848
848
  e.forEach((l) => {
849
- const x = n.find((R) => R.path === l.path);
850
- x && (l.meta = x.meta || l.meta, l.name = x.name || l.name);
849
+ const C = n.find((R) => R.path === l.path);
850
+ C && (l.meta = C.meta || l.meta, l.name = C.name || l.name);
851
851
  }), g.state.cacheTabs && localStorage.setItem("TABS_ROUTES", JSON.stringify(e));
852
852
  }, E = () => {
853
- const e = P();
853
+ const e = k();
854
854
  I(e), g.initTabs(e);
855
855
  }, L = async (e) => {
856
856
  if (await oe(), !w.value) return;
@@ -865,15 +865,15 @@ const We = (t) => {
865
865
  const { fullPath: n } = e;
866
866
  if (n === u.fullPath || (d.activeKey = n, !e))
867
867
  return;
868
- const { replace: l } = C;
868
+ const { replace: l } = x;
869
869
  toString.call(e), l(e).catch(console.error);
870
- }, ce = (e, n) => {
870
+ }, ie = (e, n) => {
871
871
  e.preventDefault(), T.value = n.path === "/home", d.showDropdown = !1, oe().then(() => {
872
872
  d.showDropdown = !0, d.dropdownX = e.clientX, d.dropdownY = e.clientY;
873
873
  });
874
874
  }, G = () => {
875
875
  if (u.meta.keepAlive) {
876
- var e = C.currentRoute.value.matched.find(
876
+ var e = x.currentRoute.value.matched.find(
877
877
  (n) => n.name == u.name
878
878
  );
879
879
  e && e.components?.default?.name;
@@ -883,17 +883,17 @@ const We = (t) => {
883
883
  return p.warning("这已经是最后一页,不能再关闭了!");
884
884
  if (G(), g.closeCurrentTab(e), d.activeKey === e.fullPath) {
885
885
  const n = v.value[Math.max(0, v.value.length - 1)];
886
- d.activeKey = n.fullPath, C.push(n);
886
+ d.activeKey = n.fullPath, x.push(n);
887
887
  }
888
888
  L();
889
889
  }, ge = (e) => {
890
- const { fullPath: n } = e, l = v.value.find((x) => x.fullPath == n);
890
+ const { fullPath: n } = e, l = v.value.find((C) => C.fullPath == n);
891
891
  J(l);
892
892
  }, he = (e) => {
893
- g.closeOtherTabs(e), d.activeKey = e.fullPath, C.replace(e.fullPath), L();
893
+ g.closeOtherTabs(e), d.activeKey = e.fullPath, x.replace(e.fullPath), L();
894
894
  }, j = () => {
895
895
  g.closeAllTabs(), L();
896
- }, me = Ie("reloadPage"), ie = (e) => {
896
+ }, me = Ie("reloadPage"), ce = (e) => {
897
897
  switch (e) {
898
898
  //刷新
899
899
  case "1":
@@ -914,8 +914,8 @@ const We = (t) => {
914
914
  }
915
915
  L(), d.showDropdown = !1;
916
916
  }, te = (e, n) => {
917
- const l = w.value.scrollLeft, x = n > 0 && l + n >= e || n < 0 && l + n <= e ? e : l + n;
918
- if (w.value && w.value.scrollTo(x, 0), x !== e)
917
+ const l = w.value.scrollLeft, C = n > 0 && l + n >= e || n < 0 && l + n <= e ? e : l + n;
918
+ if (w.value && w.value.scrollTo(C, 0), C !== e)
919
919
  return window.requestAnimationFrame(() => te(e, n));
920
920
  }, ve = () => {
921
921
  const e = w.value.offsetWidth, n = w.value.scrollLeft;
@@ -925,8 +925,8 @@ const We = (t) => {
925
925
  }, f = () => {
926
926
  const e = w.value.offsetWidth, n = w.value.scrollWidth, l = w.value.scrollLeft;
927
927
  if (n - l <= e) return;
928
- const x = n - l > e * 2 ? l + e : n - e;
929
- te(x, (x - l) / 20);
928
+ const C = n - l > e * 2 ? l + e : n - e;
929
+ te(C, (C - l) / 20);
930
930
  };
931
931
  return window.addEventListener("beforeunload", () => {
932
932
  localStorage.setItem("TABS_ROUTES", JSON.stringify(v.value));
@@ -945,7 +945,7 @@ const We = (t) => {
945
945
  { immediate: !0 }
946
946
  ), E(), X(() => pe()), (e, n) => (b(), N("div", {
947
947
  class: "box-border tabs-view tabs-view-fix tabs-view-default-background",
948
- style: ue(k.value)
948
+ style: ue(P.value)
949
949
  }, [
950
950
  y("div", ua, [
951
951
  y("div", {
@@ -957,12 +957,12 @@ const We = (t) => {
957
957
  class: ae(["tabs-card-prev", { "tabs-card-prev-hide": !d.scrollable }]),
958
958
  onClick: ve
959
959
  }, [
960
- c(a(M), {
960
+ i(a(M), {
961
961
  size: "16",
962
962
  color: "#515a6e"
963
963
  }, {
964
964
  default: s(() => [
965
- c(a(Rt))
965
+ i(a(Rt))
966
966
  ]),
967
967
  _: 1
968
968
  })
@@ -971,12 +971,12 @@ const We = (t) => {
971
971
  class: ae(["tabs-card-next", { "tabs-card-next-hide": !d.scrollable }]),
972
972
  onClick: f
973
973
  }, [
974
- c(a(M), {
974
+ i(a(M), {
975
975
  size: "16",
976
976
  color: "#515a6e"
977
977
  }, {
978
978
  default: s(() => [
979
- c(a(Nt))
979
+ i(a(Nt))
980
980
  ]),
981
981
  _: 1
982
982
  })
@@ -986,7 +986,7 @@ const We = (t) => {
986
986
  ref: w,
987
987
  class: "tabs-card-scroll"
988
988
  }, [
989
- c(a(zt), {
989
+ i(a(zt), {
990
990
  list: v.value,
991
991
  animation: "300",
992
992
  "item-key": "fullPath",
@@ -997,17 +997,17 @@ const We = (t) => {
997
997
  y("div", {
998
998
  id: `tag${l.fullPath.split("/").join("/")}`,
999
999
  class: ae(["tabs-card-scroll-item", { "active-item": d.activeKey === l.fullPath }]),
1000
- onClick: ke((x) => re(l), ["stop"]),
1001
- onContextmenu: (x) => ce(x, l)
1000
+ onClick: Pe((C) => re(l), ["stop"]),
1001
+ onContextmenu: (C) => ie(C, l)
1002
1002
  }, [
1003
1003
  y("span", null, q(l.meta.title), 1),
1004
1004
  l.meta.affix ? B("", !0) : (b(), $(a(M), {
1005
1005
  key: 0,
1006
1006
  size: "14",
1007
- onClick: ke((x) => ge(l), ["stop"])
1007
+ onClick: Pe((C) => ge(l), ["stop"])
1008
1008
  }, {
1009
1009
  default: s(() => [
1010
- c(a(Ee))
1010
+ i(a(Ee))
1011
1011
  ]),
1012
1012
  _: 1
1013
1013
  }, 8, ["onClick"]))
@@ -1018,20 +1018,20 @@ const We = (t) => {
1018
1018
  ], 512)
1019
1019
  ], 2),
1020
1020
  y("div", pa, [
1021
- c(a(Q), {
1021
+ i(a(Q), {
1022
1022
  trigger: "hover",
1023
- onSelect: ie,
1023
+ onSelect: ce,
1024
1024
  placement: "bottom-end",
1025
1025
  options: _.value
1026
1026
  }, {
1027
1027
  default: s(() => [
1028
1028
  y("div", ga, [
1029
- c(a(M), {
1029
+ i(a(M), {
1030
1030
  size: "16",
1031
1031
  color: "#515a6e"
1032
1032
  }, {
1033
1033
  default: s(() => [
1034
- c(a(Dt))
1034
+ i(a(Dt))
1035
1035
  ]),
1036
1036
  _: 1
1037
1037
  })
@@ -1040,25 +1040,25 @@ const We = (t) => {
1040
1040
  _: 1
1041
1041
  }, 8, ["options"])
1042
1042
  ]),
1043
- c(a(Q), {
1043
+ i(a(Q), {
1044
1044
  show: d.showDropdown,
1045
1045
  x: d.dropdownX,
1046
1046
  y: d.dropdownY,
1047
1047
  onClickoutside: n[0] || (n[0] = (l) => d.showDropdown = !1),
1048
1048
  placement: "bottom-start",
1049
- onSelect: ie,
1049
+ onSelect: ce,
1050
1050
  options: _.value
1051
1051
  }, null, 8, ["show", "x", "y", "options"])
1052
1052
  ])
1053
1053
  ], 4));
1054
1054
  }
1055
- }), ma = /* @__PURE__ */ H(ha, [["__scopeId", "data-v-8148d6d3"]]), va = /* @__PURE__ */ A({
1055
+ }), ma = /* @__PURE__ */ H(ha, [["__scopeId", "data-v-48b3be2d"]]), va = /* @__PURE__ */ A({
1056
1056
  __name: "PMenus",
1057
1057
  setup(t) {
1058
- const r = le(), i = ne(), h = se(), p = O(r.name), u = O(
1058
+ const r = le(), c = ne(), h = se(), p = O(r.name), u = O(
1059
1059
  r.matched && r.matched.length ? r.matched.map((d) => d.name) : []
1060
- ), C = O([]), w = (d) => {
1061
- /http(s)?:/.test(d) ? window.open(d) : i.push({ name: d });
1060
+ ), x = O([]), w = (d) => {
1061
+ /http(s)?:/.test(d) ? window.open(d) : c.push({ name: d });
1062
1062
  }, m = (d) => {
1063
1063
  if (!d) return;
1064
1064
  const S = d.find((o) => u.value.indexOf(o) === -1);
@@ -1069,7 +1069,7 @@ const We = (t) => {
1069
1069
  const S = r.meta?.activeMenu || "";
1070
1070
  p.value = S || r.name;
1071
1071
  }, g = (d, S = [], o = !1) => {
1072
- const k = [], _ = [
1072
+ const P = [], _ = [
1073
1073
  "/:path(.*)*",
1074
1074
  "/redirect",
1075
1075
  "/redirect/:path(.*)",
@@ -1077,40 +1077,40 @@ const We = (t) => {
1077
1077
  "/oidc-callback"
1078
1078
  ];
1079
1079
  if (!d || d.length === 0)
1080
- return k;
1081
- d = d.sort((P, I) => {
1082
- let E = (I.children?.length ? 1 : 0) - (P.children?.length ? 1 : 0);
1083
- return E === 0 && (E = (P.meta?.sort ?? 0) - (I.meta?.sort ?? 0)), E;
1080
+ return P;
1081
+ d = d.sort((k, I) => {
1082
+ let E = (I.children?.length ? 1 : 0) - (k.children?.length ? 1 : 0);
1083
+ return E === 0 && (E = (k.meta?.sort ?? 0) - (I.meta?.sort ?? 0)), E;
1084
1084
  });
1085
- for (const P of d) {
1086
- if (o || (P.meta?.hidden || !1) == !0 || _.includes(P.path)) {
1087
- S.push(P.name), P.children && P.children.length > 0 && g(P.children, S, !0);
1085
+ for (const k of d) {
1086
+ if (o || (k.meta?.hidden || !1) == !0 || _.includes(k.path)) {
1087
+ S.push(k.name), k.children && k.children.length > 0 && g(k.children, S, !0);
1088
1088
  continue;
1089
1089
  }
1090
- const I = P.meta?.alwaysShow != !0 && P?.children?.filter((ee) => !ee?.meta?.hidden)?.length === 1, E = I ? P.children[0] : P, L = {
1090
+ const I = k.meta?.alwaysShow != !0 && k?.children?.filter((ee) => !ee?.meta?.hidden)?.length === 1, E = I ? k.children[0] : k, L = {
1091
1091
  key: E.name,
1092
1092
  label: E.meta?.title,
1093
1093
  affix: E.meta?.affix,
1094
1094
  sort: E.meta?.sort,
1095
1095
  path: E.path,
1096
1096
  redirect: E.redirect,
1097
- icon: I ? P.meta?.icon : E.meta?.icon,
1097
+ icon: I ? k.meta?.icon : E.meta?.icon,
1098
1098
  permissions: E.meta?.permissions,
1099
1099
  meta: E.meta,
1100
1100
  children: void 0
1101
1101
  };
1102
- if (!S.includes(P.name)) {
1103
- if (k.push(L), S.push(P.name), I) {
1104
- g(P.children, S, o);
1102
+ if (!S.includes(k.name)) {
1103
+ if (P.push(L), S.push(k.name), I) {
1104
+ g(k.children, S, o);
1105
1105
  continue;
1106
1106
  }
1107
- P.children && P.children.length > 0 && (L.children = g(P.children, S, o));
1107
+ k.children && k.children.length > 0 && (L.children = g(k.children, S, o));
1108
1108
  }
1109
1109
  }
1110
- return k;
1110
+ return P;
1111
1111
  }, v = () => {
1112
- const d = i.getRoutes();
1113
- C.value = g(d);
1112
+ const d = c.getRoutes();
1113
+ x.value = g(d);
1114
1114
  };
1115
1115
  return Be(
1116
1116
  () => r.fullPath,
@@ -1123,7 +1123,7 @@ const We = (t) => {
1123
1123
  class: "h-full",
1124
1124
  inverted: "",
1125
1125
  mode: "vertical",
1126
- options: C.value,
1126
+ options: x.value,
1127
1127
  collapsed: a(h).state.collapsed,
1128
1128
  "collapsed-width": 64,
1129
1129
  "collapsed-icon-size": 20,
@@ -1137,18 +1137,18 @@ const We = (t) => {
1137
1137
  }), _a = { class: "layout-content-main layout-content-main-fix" }, ba = { class: "main-view main-view-fix" }, ya = /* @__PURE__ */ A({
1138
1138
  __name: "PLayout",
1139
1139
  setup(t) {
1140
- const r = se(), i = O(!1);
1140
+ const r = se(), c = O(!1);
1141
1141
  return wt("reloadPage", () => {
1142
- i.value = !0, oe(() => i.value = !1);
1142
+ c.value = !0, oe(() => c.value = !1);
1143
1143
  }), (p, u) => {
1144
- const C = st;
1144
+ const x = st;
1145
1145
  return b(), $(a($e), {
1146
1146
  "has-sider": "",
1147
1147
  class: "layout",
1148
1148
  position: "absolute"
1149
1149
  }, {
1150
1150
  default: s(() => [
1151
- c(a(at), {
1151
+ i(a(at), {
1152
1152
  class: "layout-sider",
1153
1153
  inverted: "",
1154
1154
  "show-trigger": "bar",
@@ -1161,36 +1161,36 @@ const We = (t) => {
1161
1161
  onExpand: a(r).collapse
1162
1162
  }, {
1163
1163
  default: s(() => [
1164
- c(a(ot), { vertical: "" }, {
1164
+ i(a(ot), { vertical: "" }, {
1165
1165
  default: s(() => [
1166
- c(Yt),
1167
- c(va)
1166
+ i(Yt),
1167
+ i(va)
1168
1168
  ]),
1169
1169
  _: 1
1170
1170
  })
1171
1171
  ]),
1172
1172
  _: 1
1173
1173
  }, 8, ["collapsed", "onCollapse", "onExpand"]),
1174
- c(a($e), null, {
1174
+ i(a($e), null, {
1175
1175
  default: s(() => [
1176
- c(a(nt), { position: "absolute" }, {
1176
+ i(a(nt), { position: "absolute" }, {
1177
1177
  default: s(() => [
1178
- c(ca)
1178
+ i(ia)
1179
1179
  ]),
1180
1180
  _: 1
1181
1181
  }),
1182
- c(a(lt), { class: "layout-content layout-default-background" }, {
1182
+ i(a(lt), { class: "layout-content layout-default-background" }, {
1183
1183
  default: s(() => [
1184
1184
  y("div", _a, [
1185
- c(ma),
1185
+ i(ma),
1186
1186
  y("div", ba, [
1187
- c(da, { loading: i.value }, null, 8, ["loading"])
1187
+ i(da, { loading: c.value }, null, 8, ["loading"])
1188
1188
  ])
1189
1189
  ])
1190
1190
  ]),
1191
1191
  _: 1
1192
1192
  }),
1193
- c(C, {
1193
+ i(x, {
1194
1194
  right: 20,
1195
1195
  class: "z-50"
1196
1196
  })
@@ -1202,12 +1202,12 @@ const We = (t) => {
1202
1202
  });
1203
1203
  };
1204
1204
  }
1205
- }), wa = /* @__PURE__ */ H(ya, [["__scopeId", "data-v-87dcb433"]]), ka = {};
1206
- function Pa(t, r) {
1207
- const i = ze("router-view");
1208
- return b(), $(i);
1205
+ }), wa = /* @__PURE__ */ H(ya, [["__scopeId", "data-v-8d20e006"]]), Pa = {};
1206
+ function ka(t, r) {
1207
+ const c = ze("router-view");
1208
+ return b(), $(c);
1209
1209
  }
1210
- const xa = /* @__PURE__ */ H(ka, [["render", Pa]]), Ca = W(xa), Sa = W(wa), La = /* @__PURE__ */ A({
1210
+ const Ca = /* @__PURE__ */ H(Pa, [["render", ka]]), xa = W(Ca), Sa = W(wa), La = /* @__PURE__ */ A({
1211
1211
  __name: "PApplication",
1212
1212
  props: {
1213
1213
  theme: {},
@@ -1224,20 +1224,20 @@ const xa = /* @__PURE__ */ H(ka, [["render", Pa]]), Ca = W(xa), Sa = W(wa), La =
1224
1224
  } }
1225
1225
  },
1226
1226
  setup(t) {
1227
- return (r, i) => {
1227
+ return (r, c) => {
1228
1228
  const h = rt;
1229
1229
  return b(), $(h, {
1230
- locale: a(it),
1230
+ locale: a(ct),
1231
1231
  theme: t.theme,
1232
1232
  "theme-overrides": t.themeOverrides,
1233
- "date-locale": a(ct)
1233
+ "date-locale": a(it)
1234
1234
  }, {
1235
1235
  default: s(() => [
1236
- c(a(dt), null, {
1236
+ i(a(dt), null, {
1237
1237
  default: s(() => [
1238
- c(a(ut), null, {
1238
+ i(a(ut), null, {
1239
1239
  default: s(() => [
1240
- c(a(ft), null, {
1240
+ i(a(ft), null, {
1241
1241
  default: s(() => [
1242
1242
  F(r.$slots, "default")
1243
1243
  ]),
@@ -1268,8 +1268,8 @@ const xa = /* @__PURE__ */ H(ka, [["render", Pa]]), Ca = W(xa), Sa = W(wa), La =
1268
1268
  onClose: {}
1269
1269
  },
1270
1270
  emits: ["update:visible", "update:loading"],
1271
- setup(t, { expose: r, emit: i }) {
1272
- const h = fe(), p = t, u = i, C = async () => {
1271
+ setup(t, { expose: r, emit: c }) {
1272
+ const h = fe(), p = t, u = c, x = async () => {
1273
1273
  u("update:loading", !0);
1274
1274
  try {
1275
1275
  p.onSave && await p.onSave() && w();
@@ -1295,8 +1295,8 @@ const xa = /* @__PURE__ */ H(ka, [["render", Pa]]), Ca = W(xa), Sa = W(wa), La =
1295
1295
  u("update:visible", !1), u("update:loading", !1);
1296
1296
  }
1297
1297
  }), (v, d) => {
1298
- const S = pt, o = K, k = Ne;
1299
- return b(), $(a(Re), kt({
1298
+ const S = pt, o = K, P = Ne;
1299
+ return b(), $(a(Re), Pt({
1300
1300
  ref: "$modal",
1301
1301
  preset: "card"
1302
1302
  }, v.$attrs, {
@@ -1333,12 +1333,12 @@ const xa = /* @__PURE__ */ H(ka, [["render", Pa]]), Ca = W(xa), Sa = W(wa), La =
1333
1333
  F(v.$slots, "footer")
1334
1334
  ]),
1335
1335
  action: s(() => [
1336
- c(k, { justify: "end" }, {
1336
+ i(P, { justify: "end" }, {
1337
1337
  default: s(() => [
1338
- c(o, {
1338
+ i(o, {
1339
1339
  type: "primary",
1340
1340
  loading: t.loading,
1341
- onClick: C
1341
+ onClick: x
1342
1342
  }, {
1343
1343
  default: s(() => [
1344
1344
  Y(q(t.saveBtnText), 1)
@@ -1346,7 +1346,7 @@ const xa = /* @__PURE__ */ H(ka, [["render", Pa]]), Ca = W(xa), Sa = W(wa), La =
1346
1346
  _: 1
1347
1347
  }, 8, ["loading"]),
1348
1348
  F(v.$slots, "action-extra", { loading: t.loading }),
1349
- c(o, {
1349
+ i(o, {
1350
1350
  onClick: m,
1351
1351
  loading: t.loading
1352
1352
  }, {
@@ -1367,8 +1367,8 @@ const xa = /* @__PURE__ */ H(ka, [["render", Pa]]), Ca = W(xa), Sa = W(wa), La =
1367
1367
  name: "Redirect",
1368
1368
  setup() {
1369
1369
  const t = le(), r = ne();
1370
- return Pt(() => {
1371
- const { params: i, query: h } = t, { path: p } = i;
1370
+ return kt(() => {
1371
+ const { params: c, query: h } = t, { path: p } = c;
1372
1372
  r.replace({
1373
1373
  path: "/" + (Array.isArray(p) ? p.join("/") : p),
1374
1374
  query: h
@@ -1378,12 +1378,12 @@ const xa = /* @__PURE__ */ H(ka, [["render", Pa]]), Ca = W(xa), Sa = W(wa), La =
1378
1378
  }), Ra = W(Ma), Na = { class: "frame" }, Da = ["src"], Aa = /* @__PURE__ */ A({
1379
1379
  __name: "PIframe",
1380
1380
  setup(t) {
1381
- const r = le(), i = O(!1), h = O(null), p = O("");
1381
+ const r = le(), c = O(!1), h = O(null), p = O("");
1382
1382
  a(r.meta)?.frameSrc && (p.value = a(r.meta)?.frameSrc);
1383
1383
  function u() {
1384
- i.value = !1;
1384
+ c.value = !1;
1385
1385
  }
1386
- function C() {
1386
+ function x() {
1387
1387
  oe(() => {
1388
1388
  const w = a(h);
1389
1389
  if (!w) return;
@@ -1396,10 +1396,10 @@ const xa = /* @__PURE__ */ H(ka, [["render", Pa]]), Ca = W(xa), Sa = W(wa), La =
1396
1396
  });
1397
1397
  }
1398
1398
  return X(() => {
1399
- i.value = !0, C();
1399
+ c.value = !0, x();
1400
1400
  }), (w, m) => {
1401
1401
  const T = ht;
1402
- return b(), $(T, { show: i.value }, {
1402
+ return b(), $(T, { show: c.value }, {
1403
1403
  default: s(() => [
1404
1404
  y("div", Na, [
1405
1405
  y("iframe", {
@@ -1416,9 +1416,9 @@ const xa = /* @__PURE__ */ H(ka, [["render", Pa]]), Ca = W(xa), Sa = W(wa), La =
1416
1416
  }
1417
1417
  }), Ia = /* @__PURE__ */ H(Aa, [["__scopeId", "data-v-161a378e"]]), za = W(Ia), Ba = {}, Wa = { class: "flex flex-col justify-center page-container" };
1418
1418
  function Ha(t, r) {
1419
- const i = Pe;
1419
+ const c = ke;
1420
1420
  return b(), N("div", Wa, [
1421
- c(i, {
1421
+ i(c, {
1422
1422
  status: "500",
1423
1423
  title: "服务器错误",
1424
1424
  description: "抱歉,服务器出错了"
@@ -1427,9 +1427,9 @@ function Ha(t, r) {
1427
1427
  }
1428
1428
  const ja = /* @__PURE__ */ H(Ba, [["render", Ha], ["__scopeId", "data-v-4586b61a"]]), Ua = {}, Fa = { class: "flex flex-col justify-center page-container" };
1429
1429
  function qa(t, r) {
1430
- const i = Pe;
1430
+ const c = ke;
1431
1431
  return b(), N("div", Fa, [
1432
- c(i, {
1432
+ i(c, {
1433
1433
  status: "404",
1434
1434
  title: "资源不存在",
1435
1435
  description: "抱歉,你访问的页面不存在"
@@ -1438,9 +1438,9 @@ function qa(t, r) {
1438
1438
  }
1439
1439
  const Va = /* @__PURE__ */ H(Ua, [["render", qa], ["__scopeId", "data-v-52d560c4"]]), Ka = {}, Ya = { class: "flex flex-col justify-center page-container" };
1440
1440
  function Xa(t, r) {
1441
- const i = Pe;
1441
+ const c = ke;
1442
1442
  return b(), N("div", Ya, [
1443
- c(i, {
1443
+ i(c, {
1444
1444
  status: "403",
1445
1445
  title: "禁止访问",
1446
1446
  description: "抱歉,你无权访问该页面"
@@ -1448,7 +1448,7 @@ function Xa(t, r) {
1448
1448
  ]);
1449
1449
  }
1450
1450
  const Ga = /* @__PURE__ */ H(Ka, [["render", Xa], ["__scopeId", "data-v-3a660eda"]]), Ja = W(ja), Za = W(Va), Qa = W(Ga), eo = Se("oidc", () => {
1451
- const t = xe({
1451
+ const t = Ce({
1452
1452
  callback: void 0
1453
1453
  });
1454
1454
  return {
@@ -1461,19 +1461,19 @@ const Ga = /* @__PURE__ */ H(Ka, [["render", Xa], ["__scopeId", "data-v-3a660eda
1461
1461
  setError: (u) => {
1462
1462
  t.error = u;
1463
1463
  },
1464
- callError: (u, C) => {
1465
- t.error && t.error(u, C);
1464
+ callError: async (u, x) => {
1465
+ t.error && await t.error(u, x);
1466
1466
  }
1467
1467
  };
1468
1468
  }), to = { class: "view-auth-callback" }, ao = /* @__PURE__ */ A({
1469
1469
  __name: "POidc",
1470
1470
  setup(t) {
1471
- const r = ne(), { callCallback: i, callError: h } = eo();
1471
+ const r = ne(), { callCallback: c, callError: h } = eo();
1472
1472
  return X(async () => {
1473
1473
  try {
1474
- i();
1474
+ await c();
1475
1475
  } catch (p) {
1476
- console.error("OIDC回调处理失败:", p), h(r, p);
1476
+ console.error("OIDC回调处理失败:", p), await h(r, p);
1477
1477
  }
1478
1478
  }), (p, u) => (b(), N("div", to, [...u[0] || (u[0] = [
1479
1479
  y("div", { class: "view-auth-callback-content" }, [
@@ -1483,41 +1483,41 @@ const Ga = /* @__PURE__ */ H(Ka, [["render", Xa], ["__scopeId", "data-v-3a660eda
1483
1483
  ], -1)
1484
1484
  ])]));
1485
1485
  }
1486
- }), oo = /* @__PURE__ */ H(ao, [["__scopeId", "data-v-6cac61e4"]]), no = W(oo), lo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1486
+ }), oo = /* @__PURE__ */ H(ao, [["__scopeId", "data-v-9af221fc"]]), no = W(oo), lo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1487
1487
  __proto__: null,
1488
- P403Plugin: Qa,
1489
- P404Plugin: Za,
1490
- P500Plugin: Ja,
1488
+ P403: Qa,
1489
+ P404: Za,
1490
+ P500: Ja,
1491
1491
  PApplication: Ta,
1492
- PEmptyLayoutPlugin: Ca,
1492
+ PEmptyLayout: xa,
1493
1493
  PIframe: za,
1494
1494
  PLanguage: Ea,
1495
- PLayoutPlugin: Sa,
1495
+ PLayout: Sa,
1496
1496
  PModal: Oa,
1497
1497
  POidc: no,
1498
1498
  PRedirect: Ra,
1499
1499
  PTable: Ft
1500
- }, Symbol.toStringTag, { value: "Module" })), so = (t, r) => (Object.values(lo).forEach((i) => {
1501
- i.install && t.use(i);
1500
+ }, Symbol.toStringTag, { value: "Module" })), so = (t, r) => (Object.values(lo).forEach((c) => {
1501
+ c.install && t.use(c);
1502
1502
  }), r?.(), t), mo = {
1503
1503
  install: so
1504
1504
  };
1505
1505
  export {
1506
- Qa as P403Plugin,
1507
- Za as P404Plugin,
1508
- Ja as P500Plugin,
1506
+ Qa as P403,
1507
+ Za as P404,
1508
+ Ja as P500,
1509
1509
  Ta as PApplication,
1510
- Ca as PEmptyLayoutPlugin,
1510
+ xa as PEmptyLayout,
1511
1511
  za as PIframe,
1512
1512
  Ea as PLanguage,
1513
- Sa as PLayoutPlugin,
1513
+ Sa as PLayout,
1514
1514
  Oa as PModal,
1515
1515
  no as POidc,
1516
1516
  Ra as PRedirect,
1517
1517
  Ft as PTable,
1518
1518
  mo as default,
1519
1519
  so as install,
1520
- Gt as usePLanguageStore,
1521
- se as usePLayoutStore,
1522
- eo as usePOidcStore
1520
+ Gt as useLanguageStore,
1521
+ se as useLayoutStore,
1522
+ eo as useOidcStore
1523
1523
  };