@chewel611/naive-ui-plus 0.0.47 → 0.0.49

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,7 +1,7 @@
1
- import { useDialog as Ee, useMessage as ce, NCard as Oe, NDataTable as Me, NSpace as he, NTooltip as Ne, NIcon as A, NDropdown as Q, NButton as _e, NAvatar as ve, NBreadcrumb as Ie, NBreadcrumbItem as Ue, NDivider as He, useThemeVars as We, NMenu as qe, NLayout as Le, NLayoutSider as je, NFlex as Ve, NLayoutHeader as Fe, NLayoutContent as Ke, NBackTop as Ye, NConfigProvider as Xe, dateZhCN as Je, zhCN as Ze, NDialogProvider as Ge, NNotificationProvider as Qe, NMessageProvider as et, NModal as tt, NText as at, NEmpty as nt, NSpin as ot, NResult as be } from "naive-ui";
2
- import { defineComponent as H, ref as z, computed as F, unref as a, onMounted as ee, openBlock as g, createBlock as L, withCtx as l, createElementVNode as m, createElementBlock as U, renderSlot as K, createCommentVNode as M, createVNode as c, toDisplayString as q, h as D, toRaw as Ce, reactive as ye, normalizeClass as oe, withDirectives as st, vShow as lt, nextTick as se, inject as Re, Fragment as Te, renderList as rt, resolveDynamicComponent as pe, withModifiers as me, resolveComponent as Ae, KeepAlive as ct, useCssVars as it, watch as ze, normalizeStyle as Be, provide as ut, mergeProps as dt, createTextVNode as ge, onBeforeMount as ft } from "vue";
3
- import { PlusSquareOutlined as gt, DeleteOutlined as Se, ReloadOutlined as we, MoreOutlined as pt, EditOutlined as mt, MenuUnfoldOutlined as ht, MenuFoldOutlined as _t, FullscreenOutlined as vt, FullscreenExitOutlined as bt, CloseOutlined as $e, ColumnWidthOutlined as yt, MinusOutlined as wt, LeftOutlined as Pt, RightOutlined as kt, DownOutlined as xt, AlertOutlined as Lt } from "@vicons/antd";
4
- import { defineStore as Pe } from "pinia";
1
+ import { useDialog as Ee, useMessage as ce, NCard as Oe, NDataTable as De, NSpace as he, NTooltip as Ne, NIcon as A, NDropdown as Q, NButton as _e, NAvatar as ve, NBreadcrumb as Ie, NBreadcrumbItem as Ue, NDivider as He, useThemeVars as We, NMenu as qe, NLayout as Le, NLayoutSider as je, NFlex as Ve, NLayoutHeader as Fe, NLayoutContent as Ke, NBackTop as Ye, NConfigProvider as Xe, dateZhCN as Je, zhCN as Ze, NDialogProvider as Ge, NNotificationProvider as Qe, NMessageProvider as et, NModal as tt, NText as at, NEmpty as nt, NSpin as ot, NResult as be } from "naive-ui";
2
+ import { defineComponent as H, ref as M, computed as K, unref as a, onMounted as ee, openBlock as p, createBlock as C, withCtx as l, createElementVNode as _, createElementBlock as U, renderSlot as Y, createCommentVNode as D, createVNode as c, toDisplayString as j, h as B, toRaw as Ce, reactive as ye, normalizeClass as oe, withDirectives as st, vShow as lt, nextTick as se, inject as Re, Fragment as Te, renderList as rt, resolveDynamicComponent as pe, withModifiers as me, resolveComponent as Ae, KeepAlive as ct, useCssVars as it, watch as Me, normalizeStyle as ze, provide as ut, mergeProps as dt, createTextVNode as ge, onBeforeMount as ft } from "vue";
3
+ import { PlusSquareOutlined as gt, DeleteOutlined as Se, ReloadOutlined as Pe, MoreOutlined as pt, EditOutlined as mt, MenuUnfoldOutlined as ht, MenuFoldOutlined as _t, FullscreenOutlined as vt, FullscreenExitOutlined as bt, CloseOutlined as $e, ColumnWidthOutlined as yt, MinusOutlined as Pt, LeftOutlined as wt, RightOutlined as kt, DownOutlined as xt, AlertOutlined as Lt } from "@vicons/antd";
4
+ import { defineStore as we } from "pinia";
5
5
  import { useRoute as te, useRouter as le } from "vue-router";
6
6
  import Ct from "element-resize-detector";
7
7
  import Tt from "vuedraggable";
@@ -19,138 +19,138 @@ const St = { class: "text-lg font-medium" }, $t = { id: "data-content" }, Et = {
19
19
  onAdd: {},
20
20
  onEdit: {}
21
21
  },
22
- setup(e, { expose: s }) {
23
- const o = z(null), p = Ee(), _ = ce(), u = z(!1), y = z([]), i = z([]), E = z({
22
+ setup(e, { expose: n }) {
23
+ const o = M(null), m = Ee(), v = ce(), u = M(!1), y = M([]), i = M([]), E = M({
24
24
  page: 1,
25
25
  itemCount: 0,
26
26
  pageSize: 10,
27
27
  pageSizes: [10, 20, 30, 50],
28
28
  showSizePicker: !0,
29
- onChange: async (P) => {
30
- E.value.page = P, await N();
29
+ onChange: async (w) => {
30
+ E.value.page = w, await h();
31
31
  },
32
- onUpdatePageSize: async (P) => {
33
- E.value.pageSize = P, await N();
32
+ onUpdatePageSize: async (w) => {
33
+ E.value.pageSize = w, await h();
34
34
  }
35
- }), w = e, r = (P) => {
36
- const k = (T) => {
37
- const R = [];
38
- return P && P.forEach((I) => {
39
- I.key !== "edit" && I.key !== "delete" && R.push({
35
+ }), P = e, r = (w) => {
36
+ const k = (S) => {
37
+ const N = [];
38
+ return w && w.forEach((I) => {
39
+ I.key !== "edit" && I.key !== "delete" && N.push({
40
40
  label: I.name,
41
41
  key: I.key,
42
- icon: I.icon && (() => D(A, null, { default: () => D(I.icon) })),
43
- props: { onClick: () => I.action(T) }
42
+ icon: I.icon && (() => B(A, null, { default: () => B(I.icon) })),
43
+ props: { onClick: () => I.action(S) }
44
44
  });
45
- }), R;
45
+ }), N;
46
46
  };
47
47
  return {
48
48
  title: "操作",
49
49
  key: "actions",
50
50
  width: 100,
51
51
  fixed: "right",
52
- render: (T) => {
53
- let R = [];
54
- if (w.onEdit && R.push({
52
+ render: (S) => {
53
+ let N = [];
54
+ if (P.onEdit && N.push({
55
55
  label: "编辑",
56
56
  key: "edit",
57
- icon: () => D(A, null, { default: () => D(mt) }),
58
- props: { onClick: async () => await w.onEdit(T) }
59
- }), w.onDelete && R.push({
57
+ icon: () => B(A, null, { default: () => B(mt) }),
58
+ props: { onClick: async () => await P.onEdit(S) }
59
+ }), P.onDelete && N.push({
60
60
  label: "删除",
61
61
  key: "delete",
62
- icon: () => D(A, null, { default: () => D(Se) }),
63
- props: { onClick: () => x(T) }
64
- }), R = [...R, ...k(T)], !(R.length <= 0))
65
- return D(
62
+ icon: () => B(A, null, { default: () => B(Se) }),
63
+ props: { onClick: () => L(S) }
64
+ }), N = [...N, ...k(S)], !(N.length <= 0))
65
+ return B(
66
66
  Q,
67
67
  {
68
- options: R,
68
+ options: N,
69
69
  placement: "bottom-start"
70
70
  },
71
71
  {
72
- default: () => D(
72
+ default: () => B(
73
73
  _e,
74
74
  { size: "small", type: "primary" },
75
- { default: () => ["操作", D(A, () => D(pt))] }
75
+ { default: () => ["操作", B(A, () => B(pt))] }
76
76
  )
77
77
  }
78
78
  );
79
79
  }
80
80
  };
81
- }, $ = F(() => {
82
- const P = w.columns.filter((T) => T.key != "action").map((T) => ({
83
- title: T.title,
84
- key: T.key,
85
- width: T.width,
86
- fixed: T.fixed ?? !1,
87
- render: T.render,
88
- ellipsis: T.ellipsis ? { tooltip: !0 } : !1
89
- })), k = w.columns.reduce(
90
- (T, R) => R.key === "action" ? R : T,
81
+ }, $ = K(() => {
82
+ const w = P.columns.filter((S) => S.key != "action").map((S) => ({
83
+ title: S.title,
84
+ key: S.key,
85
+ width: S.width,
86
+ fixed: S.fixed ?? !1,
87
+ render: S.render,
88
+ ellipsis: S.ellipsis ? { tooltip: !0 } : !1
89
+ })), k = P.columns.reduce(
90
+ (S, N) => N.key === "action" ? N : S,
91
91
  void 0
92
92
  )?.action;
93
- return k && k?.length > 0 || w.onEdit || w.onDelete ? [
93
+ return k && k?.length > 0 || P.onEdit || P.onDelete ? [
94
94
  { type: "selection", fixed: "left" },
95
- ...P,
95
+ ...w,
96
96
  r(k)
97
- ] : [{ type: "selection", fixed: "left" }, ...P];
98
- }), d = async () => await N(), x = (P) => C([P]), O = () => {
99
- const P = n();
100
- C(P);
101
- }, C = (P) => {
102
- P && P.length > 0 && p.warning({
97
+ ] : [{ type: "selection", fixed: "left" }, ...w];
98
+ }), d = async () => await h(), L = (w) => T([w]), O = () => {
99
+ const w = x();
100
+ T(w);
101
+ }, T = (w) => {
102
+ w && w.length > 0 && m.warning({
103
103
  title: "警告",
104
104
  content: "删除数据不可恢复, 确认删除吗?",
105
105
  positiveText: "确定",
106
106
  negativeText: "取消",
107
107
  onPositiveClick: async () => {
108
- if (w.onDelete)
108
+ if (P.onDelete)
109
109
  try {
110
- await w.onDelete(P) ? (N(), _.success("删除成功")) : _.error("删除失败");
110
+ await P.onDelete(w) ? (h(), v.success("删除成功")) : v.error("删除失败");
111
111
  } catch (k) {
112
- _.error(k.message);
112
+ v.error(k.message);
113
113
  }
114
114
  }
115
115
  });
116
- }, n = () => y.value ? i.value.filter((k) => y.value.includes(k.id)).map((k) => Ce(k)) : [], v = () => n()[0], S = () => Ce(i.value), N = async () => {
116
+ }, x = () => y.value ? i.value.filter((k) => y.value.includes(k.id)).map((k) => Ce(k)) : [], R = () => x()[0], g = () => Ce(i.value), h = async () => {
117
117
  if (!u.value) {
118
118
  u.value = !0;
119
119
  try {
120
- if (w.onLoad) {
121
- var { items: P, totalCount: k } = await w.onLoad(
120
+ if (P.onLoad) {
121
+ var { items: w, totalCount: k } = await P.onLoad(
122
122
  E.value.page,
123
123
  E.value.pageSize
124
124
  );
125
- i.value = P, E.value.itemCount = k;
125
+ i.value = w, E.value.itemCount = k;
126
126
  }
127
- } catch (T) {
128
- _.error(T.message);
127
+ } catch (S) {
128
+ v.error(S.message);
129
129
  } finally {
130
130
  u.value = !1;
131
131
  }
132
132
  }
133
- }, h = F(() => {
134
- const P = a(o);
135
- if (!P) return;
136
- const k = P?.$el, T = k.querySelector(".n-data-table-thead "), { bottomIncludeBody: R } = ae(T), I = 48;
137
- let j = 12, G = 25;
133
+ }, s = K(() => {
134
+ const w = a(o);
135
+ if (!w) return;
136
+ const k = w?.$el, S = k.querySelector(".n-data-table-thead "), { bottomIncludeBody: N } = ae(S), I = 48;
137
+ let V = 12, G = 25;
138
138
  const X = k.querySelector(
139
139
  ".n-data-table__pagination"
140
140
  );
141
141
  if (X) {
142
142
  const J = X.offsetHeight;
143
- j += J || 0;
143
+ V += J || 0;
144
144
  } else
145
- j += 28;
146
- return R - (I + j + G);
147
- }), Y = (P) => !P || !P.getBoundingClientRect ? 0 : P.getBoundingClientRect(), ae = (P) => {
148
- const k = document.documentElement, T = k.scrollLeft, R = k.scrollTop, I = k.clientLeft, j = k.clientTop, G = window.pageXOffset, X = window.pageYOffset, ne = Y(P), {
145
+ V += 28;
146
+ return N - (I + V + G);
147
+ }), q = (w) => !w || !w.getBoundingClientRect ? 0 : w.getBoundingClientRect(), ae = (w) => {
148
+ const k = document.documentElement, S = k.scrollLeft, N = k.scrollTop, I = k.clientLeft, V = k.clientTop, G = window.pageXOffset, X = window.pageYOffset, ne = q(w), {
149
149
  left: J,
150
150
  top: ie,
151
151
  width: ue,
152
152
  height: t
153
- } = ne, f = (G || T) - (I || 0), b = (X || R) - (j || 0), B = J + G, Z = ie + X, de = B - f, fe = Z - b, ke = window.document.documentElement.clientWidth, xe = window.document.documentElement.clientHeight;
153
+ } = ne, f = (G || S) - (I || 0), b = (X || N) - (V || 0), z = J + G, Z = ie + X, de = z - f, fe = Z - b, ke = window.document.documentElement.clientWidth, xe = window.document.documentElement.clientHeight;
154
154
  return {
155
155
  left: de,
156
156
  top: fe,
@@ -160,28 +160,28 @@ const St = { class: "text-lg font-medium" }, $t = { id: "data-content" }, Et = {
160
160
  bottomIncludeBody: xe - fe
161
161
  };
162
162
  };
163
- return ee(async () => await N()), s({
164
- getData: S,
165
- getSelectedRow: v,
166
- getSelectedRows: n,
167
- refreshData: N,
163
+ return ee(async () => await h()), n({
164
+ getData: g,
165
+ getSelectedRow: R,
166
+ getSelectedRows: x,
167
+ refreshData: h,
168
168
  resetPage: () => {
169
169
  E.value.page = 1;
170
170
  }
171
- }), (P, k) => {
172
- const T = Ne, R = he, I = Me;
173
- return g(), L(a(Oe), { bordered: !1 }, {
171
+ }), (w, k) => {
172
+ const S = Ne, N = he, I = De;
173
+ return p(), C(a(Oe), { bordered: !1 }, {
174
174
  header: l(() => [
175
- c(R, {
175
+ c(N, {
176
176
  justify: "space-between",
177
177
  align: "center",
178
178
  class: "w-full"
179
179
  }, {
180
180
  default: l(() => [
181
- m("span", St, q(e.title), 1),
182
- c(R, null, {
181
+ _("span", St, j(e.title), 1),
182
+ c(N, null, {
183
183
  default: l(() => [
184
- w.onAdd ? (g(), L(T, {
184
+ P.onAdd ? (p(), C(S, {
185
185
  key: 0,
186
186
  trigger: "hover"
187
187
  }, {
@@ -189,7 +189,7 @@ const St = { class: "text-lg font-medium" }, $t = { id: "data-content" }, Et = {
189
189
  c(a(A), {
190
190
  size: "18",
191
191
  class: "mr-1 cursor-pointer hover:text-blue-600",
192
- onClick: w.onAdd
192
+ onClick: P.onAdd
193
193
  }, {
194
194
  default: l(() => [
195
195
  c(a(gt))
@@ -198,11 +198,11 @@ const St = { class: "text-lg font-medium" }, $t = { id: "data-content" }, Et = {
198
198
  }, 8, ["onClick"])
199
199
  ]),
200
200
  default: l(() => [
201
- k[1] || (k[1] = m("span", null, "新增", -1))
201
+ k[1] || (k[1] = _("span", null, "新增", -1))
202
202
  ]),
203
203
  _: 1
204
- })) : M("", !0),
205
- w.onDelete ? (g(), L(T, {
204
+ })) : D("", !0),
205
+ P.onDelete ? (p(), C(S, {
206
206
  key: 1,
207
207
  trigger: "hover"
208
208
  }, {
@@ -219,11 +219,11 @@ const St = { class: "text-lg font-medium" }, $t = { id: "data-content" }, Et = {
219
219
  })
220
220
  ]),
221
221
  default: l(() => [
222
- k[2] || (k[2] = m("span", null, "删除", -1))
222
+ k[2] || (k[2] = _("span", null, "删除", -1))
223
223
  ]),
224
224
  _: 1
225
- })) : M("", !0),
226
- c(T, { trigger: "hover" }, {
225
+ })) : D("", !0),
226
+ c(S, { trigger: "hover" }, {
227
227
  trigger: l(() => [
228
228
  c(a(A), {
229
229
  size: "18",
@@ -231,13 +231,13 @@ const St = { class: "text-lg font-medium" }, $t = { id: "data-content" }, Et = {
231
231
  onClick: d
232
232
  }, {
233
233
  default: l(() => [
234
- c(a(we))
234
+ c(a(Pe))
235
235
  ]),
236
236
  _: 1
237
237
  })
238
238
  ]),
239
239
  default: l(() => [
240
- k[3] || (k[3] = m("span", null, "刷新", -1))
240
+ k[3] || (k[3] = _("span", null, "刷新", -1))
241
241
  ]),
242
242
  _: 1
243
243
  })
@@ -249,24 +249,24 @@ const St = { class: "text-lg font-medium" }, $t = { id: "data-content" }, Et = {
249
249
  })
250
250
  ]),
251
251
  default: l(() => [
252
- m("div", $t, [
253
- P.$slots.toolbar ? (g(), U("div", Et, [
254
- K(P.$slots, "toolbar")
255
- ])) : M("", !0),
252
+ _("div", $t, [
253
+ w.$slots.toolbar ? (p(), U("div", Et, [
254
+ Y(w.$slots, "toolbar")
255
+ ])) : D("", !0),
256
256
  c(I, {
257
257
  remote: "",
258
258
  ref_key: "$table",
259
259
  ref: o,
260
260
  "checked-row-keys": y.value,
261
- "onUpdate:checkedRowKeys": k[0] || (k[0] = (j) => y.value = j),
262
- "max-height": h.value,
261
+ "onUpdate:checkedRowKeys": k[0] || (k[0] = (V) => y.value = V),
262
+ "max-height": s.value,
263
263
  loading: u.value,
264
264
  bordered: !1,
265
265
  "single-line": !1,
266
266
  columns: $.value,
267
267
  data: i.value,
268
268
  pagination: E.value,
269
- "row-key": (j) => j[e.idField]
269
+ "row-key": (V) => V[e.idField]
270
270
  }, null, 8, ["checked-row-keys", "max-height", "loading", "columns", "data", "pagination", "row-key"])
271
271
  ])
272
272
  ]),
@@ -274,12 +274,12 @@ const St = { class: "text-lg font-medium" }, $t = { id: "data-content" }, Et = {
274
274
  });
275
275
  };
276
276
  }
277
- }), W = (e) => {
278
- const s = e;
279
- return s.install = function(o) {
280
- o.component(s.__name, e);
281
- }, e;
282
- }, Nt = W(Ot), Rt = ["Redirect", "RedirectSon", "login"], re = Pe(
277
+ }), W = (e, n) => {
278
+ const o = n;
279
+ return o.install = function(m) {
280
+ m.component(e, n);
281
+ }, n;
282
+ }, Nt = W("PTable", Ot), Rt = ["Redirect", "RedirectSon", "login"], re = we(
283
283
  "p-layout",
284
284
  () => {
285
285
  const e = ye({
@@ -290,96 +290,101 @@ const St = { class: "text-lg font-medium" }, $t = { id: "data-content" }, Et = {
290
290
  uid: "",
291
291
  uname: "",
292
292
  tabs: [],
293
+ menus: [],
293
294
  cacheTabs: !1,
294
295
  enableLanguage: !1
295
296
  });
296
297
  return {
297
298
  state: e,
298
- initTabs: (n) => {
299
- n.sort((v, S) => v.meta.affix && !S.meta.affix ? -1 : !v.meta.affix && S.meta.affix ? 1 : Number(S.meta.sort ?? 0) - Number(v.meta.sort ?? 0)), e.tabs = n;
299
+ initMenus: (g) => {
300
+ g.sort((h, s) => h.affix && !s.affix ? -1 : !h.affix && s.affix ? 1 : Number(s.sort ?? 0) - Number(h.sort ?? 0)), e.menus = g;
300
301
  },
301
- addTab: (n) => Rt.includes(n.name) ? !1 : (e.tabs?.some(
302
- (S) => S.fullPath == n.fullPath
303
- ) || e.tabs?.push(n), !0),
302
+ getMenus: () => e.menus,
303
+ initTabs: (g) => {
304
+ g.sort((h, s) => h.meta.affix && !s.meta.affix ? -1 : !h.meta.affix && s.meta.affix ? 1 : Number(s.meta.sort ?? 0) - Number(h.meta.sort ?? 0)), e.tabs = g;
305
+ },
306
+ addTab: (g) => Rt.includes(g.name) ? !1 : (e.tabs?.some(
307
+ (s) => s.fullPath == g.fullPath
308
+ ) || e.tabs?.push(g), !0),
304
309
  getCurrentTab: () => {
305
- const n = te();
306
- return e.tabs.find((v) => v.fullPath == n.fullPath);
310
+ const g = te();
311
+ return e.tabs.find((h) => h.fullPath == g.fullPath);
307
312
  },
308
- closeCurrentTab: (n) => {
309
- const v = e.tabs.findIndex(
310
- (S) => S.fullPath == n.fullPath
313
+ closeCurrentTab: (g) => {
314
+ const h = e.tabs.findIndex(
315
+ (s) => s.fullPath == g.fullPath
311
316
  );
312
- e.tabs.splice(v, 1);
317
+ e.tabs.splice(h, 1);
313
318
  },
314
319
  closeAllTabs: () => {
315
- e.tabs = e.tabs.filter((n) => n?.meta?.affix ?? !1);
320
+ e.tabs = e.tabs.filter((g) => g?.meta?.affix ?? !1);
316
321
  },
317
- closeOtherTabs: (n) => {
322
+ closeOtherTabs: (g) => {
318
323
  e.tabs = e.tabs.filter(
319
- (v) => v.fullPath == n.fullPath || (v?.meta?.affix ?? !1)
324
+ (h) => h.fullPath == g.fullPath || (h?.meta?.affix ?? !1)
320
325
  );
321
326
  },
322
- closeLeftTabs: (n) => {
323
- const v = e.tabs.findIndex(
324
- (S) => S.fullPath == n.fullPath
327
+ closeLeftTabs: (g) => {
328
+ const h = e.tabs.findIndex(
329
+ (s) => s.fullPath == g.fullPath
325
330
  );
326
331
  e.tabs = e.tabs.filter(
327
- (S, N) => N >= v || (S?.meta?.affix ?? !1)
332
+ (s, q) => q >= h || (s?.meta?.affix ?? !1)
328
333
  );
329
334
  },
330
- closeRightTabs: (n) => {
331
- const v = e.tabs.findIndex(
332
- (S) => S.fullPath == n.fullPath
335
+ closeRightTabs: (g) => {
336
+ const h = e.tabs.findIndex(
337
+ (s) => s.fullPath == g.fullPath
333
338
  );
334
339
  e.tabs = e.tabs.filter(
335
- (S, N) => N <= v || (S?.meta?.affix ?? !1)
340
+ (s, q) => q <= h || (s?.meta?.affix ?? !1)
336
341
  );
337
342
  },
338
343
  collapse: () => {
339
344
  e.collapsed = !e.collapsed;
340
345
  },
341
- setTitle: (n) => {
342
- e.title = n;
346
+ setTitle: (g) => {
347
+ e.title = g;
343
348
  },
344
- setLogo: (n) => {
345
- e.logo = n;
349
+ setLogo: (g) => {
350
+ e.logo = g;
346
351
  },
347
- setUser: (n, v) => {
348
- e.uid = n, e.uname = v;
352
+ setUser: (g, h) => {
353
+ e.uid = g, e.uname = h;
349
354
  },
350
- setSettingPages: (n) => {
351
- e.settingPages = n;
355
+ setSettingPages: (g) => {
356
+ e.settingPages = g;
352
357
  },
353
- setLogout: (n) => {
354
- e.logout = n;
358
+ setLogout: (g) => {
359
+ e.logout = g;
355
360
  },
356
- enableLanguage: (n) => {
357
- e.enableLanguage = n;
361
+ enableLanguage: (g) => {
362
+ e.enableLanguage = g;
358
363
  }
359
364
  };
360
365
  }
361
- ), At = { class: "logo" }, zt = /* @__PURE__ */ H({
366
+ ), At = { class: "logo" }, Mt = /* @__PURE__ */ H({
362
367
  __name: "PLogo",
363
368
  setup(e) {
364
- const s = re();
365
- return (o, p) => (g(), U("div", At, [
369
+ const n = re();
370
+ return (o, m) => (p(), U("div", At, [
366
371
  c(a(ve), {
367
372
  color: "var(--color-logo)",
368
373
  size: 32,
369
- src: a(s).state.logo,
370
- class: oe({ "mr-2": !a(s).state.collapsed })
374
+ src: a(n).state.logo,
375
+ class: oe({ "mr-2": !a(n).state.collapsed })
371
376
  }, null, 8, ["src", "class"]),
372
- st(m("h1", { class: "font-bold ease-in-out ml-2 logo-size" }, q(a(s).state.title), 513), [
373
- [lt, !a(s).state.collapsed]
377
+ st(_("h1", { class: "font-bold ease-in-out ml-2 logo-size" }, j(a(n).state.title), 513), [
378
+ [lt, !a(n).state.collapsed]
374
379
  ])
375
380
  ]));
376
381
  }
377
- }), V = (e, s) => {
382
+ }), F = (e, n) => {
378
383
  const o = e.__vccOpts || e;
379
- for (const [p, _] of s)
380
- o[p] = _;
384
+ for (const [m, v] of n)
385
+ o[m] = v;
381
386
  return o;
382
- }, Bt = /* @__PURE__ */ V(zt, [["__scopeId", "data-v-e48aeefa"]]), Dt = {
387
+ }, zt = /* @__PURE__ */ F(Mt, [["__scopeId", "data-v-e48aeefa"]]), Bt = {
383
388
  translationApiUrl: "https://translate.zvo.cn/api",
384
389
  defaultLanguage: "chinese",
385
390
  currentLanguage: "",
@@ -387,13 +392,13 @@ const St = { class: "text-lg font-medium" }, $t = { id: "data-content" }, Et = {
387
392
  initLanguages: async () => [],
388
393
  selectLanguage: async (e) => {
389
394
  }
390
- }, Mt = Pe("language", () => {
391
- const e = z(Dt), s = async () => (e.value.options.length === 0 && (e.value.options = await e.value.initLanguages()), e.value.options);
395
+ }, Dt = we("language", () => {
396
+ const e = M(Bt), n = async () => (e.value.options.length === 0 && (e.value.options = await e.value.initLanguages()), e.value.options);
392
397
  return {
393
398
  select: async (r) => {
394
399
  if (e.value.currentLanguage === r)
395
400
  return;
396
- const $ = (await s()).find(
401
+ const $ = (await n()).find(
397
402
  (d) => d.key === r
398
403
  );
399
404
  $ && (e.value.currentLanguage = $.key, e.value.selectLanguage($));
@@ -404,10 +409,10 @@ const St = { class: "text-lg font-medium" }, $t = { id: "data-content" }, Et = {
404
409
  initLanguagesCallback: async (r) => {
405
410
  e.value.initLanguages = r;
406
411
  },
407
- getLanguages: s,
412
+ getLanguages: n,
408
413
  getCurrentLanguage: async () => {
409
414
  if (e.value.currentLanguage)
410
- return (await s()).find(
415
+ return (await n()).find(
411
416
  (r) => r.key === e.value.currentLanguage
412
417
  );
413
418
  },
@@ -420,24 +425,24 @@ const St = { class: "text-lg font-medium" }, $t = { id: "data-content" }, Et = {
420
425
  (r === "Chinese" || r === "chinese") && (r = "chinese_simplified"), e.value.defaultLanguage = r;
421
426
  }
422
427
  };
423
- }), It = { key: 1 }, De = /* @__PURE__ */ H({
428
+ }), It = { key: 1 }, Be = /* @__PURE__ */ H({
424
429
  __name: "PLanguage",
425
430
  setup(e) {
426
431
  const {
427
- select: s,
432
+ select: n,
428
433
  getLanguages: o,
429
- getCurrentLanguage: p,
430
- getDefaultLanguage: _,
434
+ getCurrentLanguage: m,
435
+ getDefaultLanguage: v,
431
436
  getTranslationApiUrl: u
432
- } = Mt(), y = z(), i = z([]), E = async (r) => await s(r), w = async () => {
437
+ } = Dt(), y = M(), i = M([]), E = async (r) => await n(r), P = async () => {
433
438
  const r = window.translate;
434
- r && (r.selectLanguageTag.show = !1, r.selectLanguageTag.languages = (await o()).map(($) => $.key).join(","), r.ignore.class.push("ignore-translate-flag"), r.ignore.id.push("ignore-translation"), r.language.setLocal(_()), r.request.api.translate = "api/v1/translation", r.request.api.connectTest = "api/v1/translation/connect-test", r.request.api.init = "api/v1/translation/init", r.request.api.language = "api/v1/translation/language", r.request.setHost(u()), r.request.listener.start(), r.listener.start(), r.whole.enableAll(), r.execute());
439
+ r && (r.selectLanguageTag.show = !1, r.selectLanguageTag.languages = (await o()).map(($) => $.key).join(","), r.ignore.class.push("ignore-translate-flag"), r.ignore.id.push("ignore-translation"), r.language.setLocal(v()), r.request.api.translate = "api/v1/translation", r.request.api.connectTest = "api/v1/translation/connect-test", r.request.api.init = "api/v1/translation/init", r.request.api.language = "api/v1/translation/language", r.request.setHost(u()), r.request.listener.start(), r.listener.start(), r.whole.enableAll(), r.execute());
435
440
  };
436
441
  return ee(async () => {
437
- await se(), await w(), y.value = await p(), i.value = await o();
442
+ await se(), await P(), y.value = await m(), i.value = await o();
438
443
  }), (r, $) => {
439
- const d = A, x = _e;
440
- return i.value.length > 0 ? (g(), L(a(Q), {
444
+ const d = A, L = _e;
445
+ return i.value.length > 0 ? (p(), C(a(Q), {
441
446
  key: 0,
442
447
  id: "ignore-translation",
443
448
  placement: "bottom-start",
@@ -447,26 +452,26 @@ const St = { class: "text-lg font-medium" }, $t = { id: "data-content" }, Et = {
447
452
  options: i.value
448
453
  }, {
449
454
  default: l(() => [
450
- c(x, {
455
+ c(L, {
451
456
  quaternary: "",
452
457
  type: "info"
453
458
  }, {
454
459
  default: l(() => [
455
- y.value ? (g(), U("label", It, q(y.value?.label), 1)) : (g(), L(d, {
460
+ y.value ? (p(), U("label", It, j(y.value?.label), 1)) : (p(), C(d, {
456
461
  key: 0,
457
462
  size: "18"
458
463
  }, {
459
464
  default: l(() => [...$[0] || ($[0] = [
460
- m("svg", {
465
+ _("svg", {
461
466
  xmlns: "http://www.w3.org/2000/svg",
462
467
  "xmlns:xlink": "http://www.w3.org/1999/xlink",
463
468
  viewBox: "0 0 512 512"
464
469
  }, [
465
- m("path", {
470
+ _("path", {
466
471
  d: "M478.33 433.6l-90-218a22 22 0 0 0-40.67 0l-90 218a22 22 0 1 0 40.67 16.79L316.66 406h102.67l18.33 44.39A22 22 0 0 0 458 464a22 22 0 0 0 20.32-30.4zM334.83 362L368 281.65L401.17 362z",
467
472
  fill: "currentColor"
468
473
  }),
469
- m("path", {
474
+ _("path", {
470
475
  d: "M267.84 342.92a22 22 0 0 0-4.89-30.7c-.2-.15-15-11.13-36.49-34.73c39.65-53.68 62.11-114.75 71.27-143.49H330a22 22 0 0 0 0-44H214V70a22 22 0 0 0-44 0v20H54a22 22 0 0 0 0 44h197.25c-9.52 26.95-27.05 69.5-53.79 108.36c-31.41-41.68-43.08-68.65-43.17-68.87a22 22 0 0 0-40.58 17c.58 1.38 14.55 34.23 52.86 83.93c.92 1.19 1.83 2.35 2.74 3.51c-39.24 44.35-77.74 71.86-93.85 80.74a22 22 0 1 0 21.07 38.63c2.16-1.18 48.6-26.89 101.63-85.59c22.52 24.08 38 35.44 38.93 36.1a22 22 0 0 0 30.75-4.9z",
471
476
  fill: "currentColor"
472
477
  })
@@ -479,7 +484,7 @@ const St = { class: "text-lg font-medium" }, $t = { id: "data-content" }, Et = {
479
484
  })
480
485
  ]),
481
486
  _: 1
482
- }, 8, ["options"])) : M("", !0);
487
+ }, 8, ["options"])) : D("", !0);
483
488
  };
484
489
  }
485
490
  }), Ut = { class: "layout-header" }, Ht = { class: "layout-header-left" }, Wt = { class: "link-text" }, qt = {
@@ -491,33 +496,33 @@ const St = { class: "text-lg font-medium" }, $t = { id: "data-content" }, Et = {
491
496
  }, Ft = { class: "layout-header-trigger layout-header-trigger-min" }, Kt = { class: "layout-header-trigger layout-header-trigger-min" }, Yt = { class: "avatar" }, Xt = /* @__PURE__ */ H({
492
497
  __name: "PHeader",
493
498
  setup(e) {
494
- const s = ce(), o = Ee(), p = re(), _ = le(), u = te(), y = Re("reloadPage"), i = (C) => _.push({ name: C }), E = F(() => w(u.matched)), w = (C) => C.map((n) => {
495
- const v = {
496
- key: n.name,
497
- label: n.meta.title,
498
- icon: n.meta.icon,
499
- meta: n.meta,
500
- disabled: n.path === "/",
499
+ const n = ce(), o = Ee(), m = re(), v = le(), u = te(), y = Re("reloadPage"), i = (T) => v.push({ name: T }), E = K(() => P(u.matched)), P = (T) => T.map((x) => {
500
+ const R = {
501
+ key: x.name,
502
+ label: x.meta.title,
503
+ icon: x.meta.icon,
504
+ meta: x.meta,
505
+ disabled: x.path === "/",
501
506
  children: void 0
502
507
  };
503
- return n.children && n.children.length > 0 && (v.children = w(
504
- n.children
505
- )), v;
506
- }), r = z(!1), $ = () => {
508
+ return x.children && x.children.length > 0 && (R.children = P(
509
+ x.children
510
+ )), R;
511
+ }), r = M(!1), $ = () => {
507
512
  document.fullscreenElement ? document.exitFullscreen && (document.exitFullscreen(), r.value = !1) : (document.documentElement.requestFullscreen(), r.value = !0);
508
- }, d = F(() => {
509
- const C = [];
510
- return C.push({
513
+ }, d = K(() => {
514
+ const T = [];
515
+ return T.push({
511
516
  label: "退出登录",
512
517
  key: "logout"
513
- }), p.state.settingPages && p.state.settingPages.length > 0 && p.state.settingPages.forEach((n) => {
514
- C.push({
515
- label: n.title,
516
- key: n.route
518
+ }), m.state.settingPages && m.state.settingPages.length > 0 && m.state.settingPages.forEach((x) => {
519
+ T.push({
520
+ label: x.title,
521
+ key: x.route
517
522
  });
518
- }), C;
519
- }), x = (C) => {
520
- C === "logout" ? O() : _.push({ name: C });
523
+ }), T;
524
+ }), L = (T) => {
525
+ T === "logout" ? O() : v.push({ name: T });
521
526
  }, O = () => {
522
527
  o.info({
523
528
  title: "提示",
@@ -525,31 +530,31 @@ const St = { class: "text-lg font-medium" }, $t = { id: "data-content" }, Et = {
525
530
  positiveText: "确定",
526
531
  negativeText: "取消",
527
532
  onPositiveClick: async () => {
528
- if (p.state.logout)
533
+ if (m.state.logout)
529
534
  try {
530
- await p.state.logout(), localStorage.removeItem("TABS-ROUTES"), s.error("退出成功");
531
- } catch (C) {
532
- console.error(C), s.error("退出登录失败");
535
+ await m.state.logout(), localStorage.removeItem("TABS-ROUTES"), n.error("退出成功");
536
+ } catch (T) {
537
+ console.error(T), n.error("退出登录失败");
533
538
  } finally {
534
539
  location.reload();
535
540
  }
536
541
  else
537
- s.error("没有配置登出接口, 请配置[usePLayoutStore.logout]方法");
542
+ n.error("没有配置登出接口, 请配置[usePLayoutStore.logout]方法");
538
543
  },
539
544
  onNegativeClick: () => {
540
545
  }
541
546
  });
542
547
  };
543
- return (C, n) => {
544
- const v = Ne, S = He, N = ve;
545
- return g(), U("div", Ut, [
546
- m("div", Ht, [
547
- m("div", {
548
+ return (T, x) => {
549
+ const R = Ne, g = He, h = ve;
550
+ return p(), U("div", Ut, [
551
+ _("div", Ht, [
552
+ _("div", {
548
553
  class: "ml-1 layout-header-trigger layout-header-trigger-min",
549
- onClick: n[0] || (n[0] = //@ts-ignore
550
- (...h) => a(p).collapse && a(p).collapse(...h))
554
+ onClick: x[0] || (x[0] = //@ts-ignore
555
+ (...s) => a(m).collapse && a(m).collapse(...s))
551
556
  }, [
552
- a(p).state.collapsed ? (g(), L(a(A), {
557
+ a(m).state.collapsed ? (p(), C(a(A), {
553
558
  key: 0,
554
559
  size: "18"
555
560
  }, {
@@ -557,7 +562,7 @@ const St = { class: "text-lg font-medium" }, $t = { id: "data-content" }, Et = {
557
562
  c(a(ht))
558
563
  ]),
559
564
  _: 1
560
- })) : (g(), L(a(A), {
565
+ })) : (p(), C(a(A), {
561
566
  key: 1,
562
567
  size: "18"
563
568
  }, {
@@ -567,85 +572,85 @@ const St = { class: "text-lg font-medium" }, $t = { id: "data-content" }, Et = {
567
572
  _: 1
568
573
  }))
569
574
  ]),
570
- m("div", {
575
+ _("div", {
571
576
  class: "mr-1 layout-header-trigger layout-header-trigger-min",
572
- onClick: n[1] || (n[1] = //@ts-ignore
573
- (...h) => a(y) && a(y)(...h))
577
+ onClick: x[1] || (x[1] = //@ts-ignore
578
+ (...s) => a(y) && a(y)(...s))
574
579
  }, [
575
580
  c(a(A), { size: "18" }, {
576
581
  default: l(() => [
577
- c(a(we))
582
+ c(a(Pe))
578
583
  ]),
579
584
  _: 1
580
585
  })
581
586
  ]),
582
587
  c(a(Ie), null, {
583
588
  default: l(() => [
584
- (g(!0), U(Te, null, rt(E.value, (h) => (g(), U(Te, {
585
- key: h.label
589
+ (p(!0), U(Te, null, rt(E.value, (s) => (p(), U(Te, {
590
+ key: s.label
586
591
  }, [
587
- h.label ? (g(), L(a(Ue), { key: 0 }, {
592
+ s.label ? (p(), C(a(Ue), { key: 0 }, {
588
593
  default: l(() => [
589
- h.children && h.children.length ? (g(), L(a(Q), {
594
+ s.children && s.children.length ? (p(), C(a(Q), {
590
595
  key: 0,
591
- options: h.children,
596
+ options: s.children,
592
597
  onSelect: i
593
598
  }, {
594
599
  default: l(() => [
595
- m("span", Wt, [
596
- h.icon ? (g(), L(pe(h.icon), { key: 0 })) : M("", !0),
597
- m("span", null, q(h.label), 1)
600
+ _("span", Wt, [
601
+ s.icon ? (p(), C(pe(s.icon), { key: 0 })) : D("", !0),
602
+ _("span", null, j(s.label), 1)
598
603
  ])
599
604
  ]),
600
605
  _: 2
601
- }, 1032, ["options"])) : (g(), U("span", qt, [
602
- h.icon ? (g(), L(pe(h.icon), { key: 0 })) : M("", !0),
603
- m("span", null, q(h.label), 1)
606
+ }, 1032, ["options"])) : (p(), U("span", qt, [
607
+ s.icon ? (p(), C(pe(s.icon), { key: 0 })) : D("", !0),
608
+ _("span", null, j(s.label), 1)
604
609
  ]))
605
610
  ]),
606
611
  _: 2
607
- }, 1024)) : M("", !0)
612
+ }, 1024)) : D("", !0)
608
613
  ], 64))), 128))
609
614
  ]),
610
615
  _: 1
611
616
  })
612
617
  ]),
613
- m("div", jt, [
614
- a(p).state.enableLanguage ? (g(), U("div", Vt, [
615
- c(De)
616
- ])) : M("", !0),
617
- m("div", Ft, [
618
- c(v, { placement: "bottom" }, {
618
+ _("div", jt, [
619
+ a(m).state.enableLanguage ? (p(), U("div", Vt, [
620
+ c(Be)
621
+ ])) : D("", !0),
622
+ _("div", Ft, [
623
+ c(R, { placement: "bottom" }, {
619
624
  trigger: l(() => [
620
625
  c(a(A), {
621
626
  size: "18",
622
627
  onClick: me($, ["stop"])
623
628
  }, {
624
629
  default: l(() => [
625
- r.value ? (g(), L(a(bt), { key: 1 })) : (g(), L(a(vt), { key: 0 }))
630
+ r.value ? (p(), C(a(bt), { key: 1 })) : (p(), C(a(vt), { key: 0 }))
626
631
  ]),
627
632
  _: 1
628
633
  })
629
634
  ]),
630
635
  default: l(() => [
631
- n[2] || (n[2] = m("span", null, "全屏", -1))
636
+ x[2] || (x[2] = _("span", null, "全屏", -1))
632
637
  ]),
633
638
  _: 1
634
639
  })
635
640
  ]),
636
- m("div", Kt, [
641
+ _("div", Kt, [
637
642
  c(a(Q), {
638
643
  trigger: "hover",
639
- onSelect: x,
644
+ onSelect: L,
640
645
  options: d.value
641
646
  }, {
642
647
  default: l(() => [
643
- m("div", Yt, [
644
- m("span", null, q(a(p).state.uname), 1),
645
- c(S, { vertical: "" }),
646
- c(N, {
648
+ _("div", Yt, [
649
+ _("span", null, j(a(m).state.uname), 1),
650
+ c(g, { vertical: "" }),
651
+ c(h, {
647
652
  round: "",
648
- src: a(p).state.avatar
653
+ src: a(m).state.avatar
649
654
  }, null, 8, ["src"])
650
655
  ])
651
656
  ]),
@@ -656,19 +661,19 @@ const St = { class: "text-lg font-medium" }, $t = { id: "data-content" }, Et = {
656
661
  ]);
657
662
  };
658
663
  }
659
- }), Jt = /* @__PURE__ */ V(Xt, [["__scopeId", "data-v-563e4e55"]]), Zt = { class: "mt-1" }, Gt = /* @__PURE__ */ H({
664
+ }), Jt = /* @__PURE__ */ F(Xt, [["__scopeId", "data-v-563e4e55"]]), Zt = { class: "mt-1" }, Gt = /* @__PURE__ */ H({
660
665
  __name: "PContent",
661
666
  props: {
662
667
  loading: { type: Boolean, default: !1 }
663
668
  },
664
669
  setup(e) {
665
- return (s, o) => {
666
- const p = Ae("RouterView");
667
- return g(), U("div", Zt, [
668
- e.loading ? M("", !0) : (g(), L(p, { key: 0 }, {
669
- default: l(({ Component: _, route: u }) => [
670
- (g(), L(ct, null, [
671
- (g(), L(pe(_), {
670
+ return (n, o) => {
671
+ const m = Ae("RouterView");
672
+ return p(), U("div", Zt, [
673
+ e.loading ? D("", !0) : (p(), C(m, { key: 0 }, {
674
+ default: l(({ Component: v, route: u }) => [
675
+ (p(), C(ct, null, [
676
+ (p(), C(pe(v), {
672
677
  key: u.fullPath
673
678
  }))
674
679
  ], 1024))
@@ -683,9 +688,9 @@ const St = { class: "text-lg font-medium" }, $t = { id: "data-content" }, Et = {
683
688
  setup(e) {
684
689
  it((t) => ({
685
690
  v4f917f8c: o.value,
686
- v1c2fb72a: p.value
691
+ v1c2fb72a: m.value
687
692
  }));
688
- const s = We(), o = F(() => s.value.cardColor), p = F(() => s.value.textColor1), _ = ce(), u = te(), y = le(), i = z(null), E = z(null), w = z(!1), r = re(), $ = F(() => r.state.tabs), d = ye({
693
+ const n = We(), o = K(() => n.value.cardColor), m = K(() => n.value.textColor1), v = ce(), u = te(), y = le(), i = M(null), E = M(null), P = M(!1), r = re(), $ = K(() => r.state.tabs), d = ye({
689
694
  activeKey: u.fullPath,
690
695
  scrollable: !0,
691
696
  dropdownX: 0,
@@ -693,7 +698,7 @@ const St = { class: "text-lg font-medium" }, $t = { id: "data-content" }, Et = {
693
698
  showDropdown: !1,
694
699
  isMultiHeaderFixed: !0,
695
700
  multiTabsSetting: !0
696
- }), x = ["Login", "Redirect", "ErrorPage"], O = (t) => ({
701
+ }), L = ["Login", "Redirect", "ErrorPage"], O = (t) => ({
697
702
  meta: t.meta,
698
703
  name: t.name,
699
704
  fullPath: t.fullPath ?? t.path,
@@ -701,44 +706,44 @@ const St = { class: "text-lg font-medium" }, $t = { id: "data-content" }, Et = {
701
706
  hash: t.hash ?? "",
702
707
  query: t.query ?? {},
703
708
  params: t.params ?? {}
704
- }), C = F(() => {
709
+ }), T = K(() => {
705
710
  const b = r.state.collapsed ? "64px" : "272px";
706
711
  return {
707
712
  left: b,
708
713
  width: `calc(100% - ${b})`
709
714
  };
710
- }), n = F(() => {
715
+ }), x = K(() => {
711
716
  const t = $.value.length <= 1;
712
717
  return [
713
718
  {
714
719
  label: "刷新当前",
715
720
  key: "1",
716
- icon: () => D(A, null, { default: () => D(we) })
721
+ icon: () => B(A, null, { default: () => B(Pe) })
717
722
  },
718
723
  {
719
724
  label: "关闭当前",
720
725
  key: "2",
721
- disabled: w.value || t,
722
- icon: () => D(A, null, { default: () => D($e) })
726
+ disabled: P.value || t,
727
+ icon: () => B(A, null, { default: () => B($e) })
723
728
  },
724
729
  {
725
730
  label: "关闭其他",
726
731
  key: "3",
727
732
  disabled: t,
728
- icon: () => D(A, null, { default: () => D(yt) })
733
+ icon: () => B(A, null, { default: () => B(yt) })
729
734
  },
730
735
  {
731
736
  label: "关闭全部",
732
737
  key: "4",
733
738
  disabled: t,
734
- icon: () => D(A, null, { default: () => D(wt) })
739
+ icon: () => B(A, null, { default: () => B(Pt) })
735
740
  }
736
741
  ];
737
- }), v = () => {
742
+ }), R = () => {
738
743
  let t = [O(u)];
739
744
  y.getRoutes().filter((f) => f.meta.affix).forEach((f) => {
740
745
  const b = O(f);
741
- t.every((B) => B.name !== b.name) && t.push(b);
746
+ t.every((z) => z.name !== b.name) && t.push(b);
742
747
  });
743
748
  try {
744
749
  if (r.state.cacheTabs) {
@@ -748,25 +753,25 @@ const St = { class: "text-lg font-medium" }, $t = { id: "data-content" }, Et = {
748
753
  } finally {
749
754
  return t;
750
755
  }
751
- }, S = (t) => {
756
+ }, g = (t) => {
752
757
  const f = y.getRoutes();
753
758
  t.forEach((b) => {
754
- const B = f.find((Z) => Z.path === b.path);
755
- B && (b.meta = B.meta || b.meta, b.name = B.name || b.name);
759
+ const z = f.find((Z) => Z.path === b.path);
760
+ z && (b.meta = z.meta || b.meta, b.name = z.name || b.name);
756
761
  }), r.state.cacheTabs && localStorage.setItem("TABS_ROUTES", JSON.stringify(t));
757
- }, N = () => {
758
- const t = v();
759
- S(t), r.initTabs(t);
760
- }, h = async (t) => {
762
+ }, h = () => {
763
+ const t = R();
764
+ g(t), r.initTabs(t);
765
+ }, s = async (t) => {
761
766
  if (await se(), !i.value) return;
762
767
  const f = i.value.offsetWidth, b = i.value.scrollWidth;
763
768
  f < b ? (d.scrollable = !0, t && [...i.value.querySelectorAll(".tabs-card-scroll-item") || []].forEach((Z) => {
764
769
  Z.id === `tag${d.activeKey.split("/").join("/")}` && Z.scrollIntoView && Z.scrollIntoView();
765
770
  })) : d.scrollable = !1;
766
- }, Y = (t) => !(t.draggedContext.element.meta.affix || t.relatedContext.element.meta.affix), ae = () => {
771
+ }, q = (t) => !(t.draggedContext.element.meta.affix || t.relatedContext.element.meta.affix), ae = () => {
767
772
  let t;
768
- t = Ct(), t.listenTo(E.value, () => h(!0));
769
- }, P = (t) => {
773
+ t = Ct(), t.listenTo(E.value, () => s(!0));
774
+ }, w = (t) => {
770
775
  if (!t || t.fullPath === u.fullPath) return;
771
776
  if (d.activeKey = t.fullPath, toString.call(t) === "[object String]") {
772
777
  y.replace(t).catch(console.error);
@@ -775,31 +780,31 @@ const St = { class: "text-lg font-medium" }, $t = { id: "data-content" }, Et = {
775
780
  const f = t;
776
781
  y.replace(f).catch(console.error);
777
782
  }, k = (t, f) => {
778
- t.preventDefault(), w.value = f.path === "/home", d.showDropdown = !1, se().then(() => {
783
+ t.preventDefault(), P.value = f.path === "/home", d.showDropdown = !1, se().then(() => {
779
784
  d.showDropdown = !0, d.dropdownX = t.clientX, d.dropdownY = t.clientY;
780
785
  });
781
- }, T = () => {
786
+ }, S = () => {
782
787
  if (u.meta.keepAlive) {
783
788
  var t = y.currentRoute.value.matched.find(
784
789
  (f) => f.name == u.name
785
790
  );
786
791
  t && t.components?.default?.name;
787
792
  }
788
- }, R = (t) => {
793
+ }, N = (t) => {
789
794
  if ($.value.length === 1)
790
- return _.warning("这已经是最后一页,不能再关闭了!");
791
- if (T(), r.closeCurrentTab(t), d.activeKey === t.fullPath) {
795
+ return v.warning("这已经是最后一页,不能再关闭了!");
796
+ if (S(), r.closeCurrentTab(t), d.activeKey === t.fullPath) {
792
797
  const f = $.value[Math.max(0, $.value.length - 1)];
793
798
  d.activeKey = f.fullPath, y.push(f);
794
799
  }
795
- h();
800
+ s();
796
801
  }, I = (t) => {
797
802
  const f = $.value.find((b) => b.fullPath == t.fullPath);
798
- f && R(f);
799
- }, j = (t) => {
800
- r.closeOtherTabs(t), d.activeKey = t.fullPath, h();
803
+ f && N(f);
804
+ }, V = (t) => {
805
+ r.closeOtherTabs(t), d.activeKey = t.fullPath, s();
801
806
  }, G = () => {
802
- r.closeAllTabs(), h();
807
+ r.closeAllTabs(), s();
803
808
  }, X = Re("reloadPage"), ne = (t) => {
804
809
  switch (t) {
805
810
  //刷新
@@ -808,21 +813,21 @@ const St = { class: "text-lg font-medium" }, $t = { id: "data-content" }, Et = {
808
813
  break;
809
814
  //关闭
810
815
  case "2":
811
- R(u);
816
+ N(u);
812
817
  break;
813
818
  //关闭其他
814
819
  case "3":
815
- j(u);
820
+ V(u);
816
821
  break;
817
822
  //关闭所有
818
823
  case "4":
819
824
  G();
820
825
  break;
821
826
  }
822
- h(), d.showDropdown = !1;
827
+ s(), d.showDropdown = !1;
823
828
  }, J = (t, f) => {
824
- const b = i.value.scrollLeft, B = f > 0 && b + f >= t || f < 0 && b + f <= t ? t : b + f;
825
- if (i.value && i.value.scrollTo(B, 0), B !== t)
829
+ const b = i.value.scrollLeft, z = f > 0 && b + f >= t || f < 0 && b + f <= t ? t : b + f;
830
+ if (i.value && i.value.scrollTo(z, 0), z !== t)
826
831
  return window.requestAnimationFrame(() => J(t, f));
827
832
  }, ie = () => {
828
833
  const t = i.value.offsetWidth, f = i.value.scrollLeft;
@@ -832,8 +837,8 @@ const St = { class: "text-lg font-medium" }, $t = { id: "data-content" }, Et = {
832
837
  }, ue = () => {
833
838
  const t = i.value.offsetWidth, f = i.value.scrollWidth, b = i.value.scrollLeft;
834
839
  if (f - b <= t) return;
835
- const B = f - b > t * 2 ? b + t : f - t;
836
- J(B, (B - b) / 20);
840
+ const z = f - b > t * 2 ? b + t : f - t;
841
+ J(z, (z - b) / 20);
837
842
  };
838
843
  return window.addEventListener("beforeunload", () => {
839
844
  r.state.cacheTabs && localStorage.setItem("TABS_ROUTES", JSON.stringify($.value));
@@ -844,23 +849,23 @@ const St = { class: "text-lg font-medium" }, $t = { id: "data-content" }, Et = {
844
849
  d.isMultiHeaderFixed = f >= 64;
845
850
  },
846
851
  !0
847
- ), ze(
852
+ ), Me(
848
853
  () => u.fullPath,
849
854
  (t) => {
850
- x.includes(u.name) || (d.activeKey = t, r.addTab(O(u)), h(!0));
855
+ L.includes(u.name) || (d.activeKey = t, r.addTab(O(u)), s(!0));
851
856
  },
852
857
  { immediate: !0 }
853
- ), N(), ee(() => ae()), (t, f) => (g(), U("div", {
858
+ ), h(), ee(() => ae()), (t, f) => (p(), U("div", {
854
859
  class: "box-border tabs-view tabs-view-fix tabs-view-default-background",
855
- style: Be(C.value)
860
+ style: ze(T.value)
856
861
  }, [
857
- m("div", Qt, [
858
- m("div", {
862
+ _("div", Qt, [
863
+ _("div", {
859
864
  ref_key: "navWrap",
860
865
  ref: E,
861
866
  class: oe(["tabs-card", { "tabs-card-scrollable": d.scrollable }])
862
867
  }, [
863
- m("span", {
868
+ _("span", {
864
869
  class: oe(["tabs-card-prev", { "tabs-card-prev-hide": !d.scrollable }]),
865
870
  onClick: ie
866
871
  }, [
@@ -869,12 +874,12 @@ const St = { class: "text-lg font-medium" }, $t = { id: "data-content" }, Et = {
869
874
  color: "#515a6e"
870
875
  }, {
871
876
  default: l(() => [
872
- c(a(Pt))
877
+ c(a(wt))
873
878
  ]),
874
879
  _: 1
875
880
  })
876
881
  ], 2),
877
- m("span", {
882
+ _("span", {
878
883
  class: oe(["tabs-card-next", { "tabs-card-next-hide": !d.scrollable }]),
879
884
  onClick: ue
880
885
  }, [
@@ -888,7 +893,7 @@ const St = { class: "text-lg font-medium" }, $t = { id: "data-content" }, Et = {
888
893
  _: 1
889
894
  })
890
895
  ], 2),
891
- m("div", {
896
+ _("div", {
892
897
  ref_key: "navScroll",
893
898
  ref: i,
894
899
  class: "tabs-card-scroll"
@@ -898,20 +903,20 @@ const St = { class: "text-lg font-medium" }, $t = { id: "data-content" }, Et = {
898
903
  "item-key": "fullPath",
899
904
  class: "flex",
900
905
  list: $.value,
901
- move: Y
906
+ move: q
902
907
  }, {
903
908
  item: l(({ element: b }) => [
904
- m("div", {
909
+ _("div", {
905
910
  class: oe(["tabs-card-scroll-item", { "active-item": d.activeKey === b.fullPath }]),
906
911
  id: `tag${b.fullPath.split("/").join("/")}`,
907
- onClick: me((B) => P(b), ["stop"]),
908
- onContextmenu: (B) => k(B, b)
912
+ onClick: me((z) => w(b), ["stop"]),
913
+ onContextmenu: (z) => k(z, b)
909
914
  }, [
910
- m("span", null, q(b.meta.title), 1),
911
- b.meta.affix ? M("", !0) : (g(), L(a(A), {
915
+ _("span", null, j(b.meta.title), 1),
916
+ b.meta.affix ? D("", !0) : (p(), C(a(A), {
912
917
  key: 0,
913
918
  size: "14",
914
- onClick: me((B) => I(b), ["stop"])
919
+ onClick: me((z) => I(b), ["stop"])
915
920
  }, {
916
921
  default: l(() => [
917
922
  c(a($e))
@@ -924,15 +929,15 @@ const St = { class: "text-lg font-medium" }, $t = { id: "data-content" }, Et = {
924
929
  }, 8, ["list"])
925
930
  ], 512)
926
931
  ], 2),
927
- m("div", ta, [
932
+ _("div", ta, [
928
933
  c(a(Q), {
929
934
  trigger: "hover",
930
935
  placement: "bottom-end",
931
- options: n.value,
936
+ options: x.value,
932
937
  onSelect: ne
933
938
  }, {
934
939
  default: l(() => [
935
- m("div", aa, [
940
+ _("div", aa, [
936
941
  c(a(A), {
937
942
  size: "16",
938
943
  color: "#515a6e"
@@ -952,27 +957,27 @@ const St = { class: "text-lg font-medium" }, $t = { id: "data-content" }, Et = {
952
957
  show: d.showDropdown,
953
958
  x: d.dropdownX,
954
959
  y: d.dropdownY,
955
- options: n.value,
960
+ options: x.value,
956
961
  onClickoutside: f[0] || (f[0] = (b) => d.showDropdown = !1),
957
962
  onSelect: ne
958
963
  }, null, 8, ["show", "x", "y", "options"])
959
964
  ])
960
965
  ], 4));
961
966
  }
962
- }), oa = /* @__PURE__ */ V(na, [["__scopeId", "data-v-50f5202c"]]), sa = /* @__PURE__ */ H({
967
+ }), oa = /* @__PURE__ */ F(na, [["__scopeId", "data-v-50f5202c"]]), sa = /* @__PURE__ */ H({
963
968
  __name: "PMenus",
964
969
  setup(e) {
965
- const s = z([]), o = te(), p = le(), _ = re(), u = z(o.name), y = z(
966
- o.matched && o.matched.length ? o.matched.map((x) => x.name) : []
967
- ), i = (x) => {
968
- o.name !== x && (/http(s)?:/.test(x) ? window.open(x) : p.push({ name: x }));
969
- }, E = (x) => {
970
- if (!x) return;
971
- const O = x.find((C) => y.value.indexOf(C) === -1);
970
+ const n = M([]), o = te(), m = le(), v = re(), u = M(o.name), y = M(
971
+ o.matched && o.matched.length ? o.matched.map((L) => L.name) : []
972
+ ), i = (L) => {
973
+ o.name !== L && (/http(s)?:/.test(L) ? window.open(L) : m.push({ name: L }));
974
+ }, E = (L) => {
975
+ if (!L) return;
976
+ const O = L.find((T) => y.value.indexOf(T) === -1);
972
977
  y.value = O ? [O] : [];
973
- }, w = () => {
974
- const x = o.matched;
975
- y.value = x.map((C) => C.name);
978
+ }, P = () => {
979
+ const L = o.matched;
980
+ y.value = L.map((T) => T.name);
976
981
  const O = o.meta?.activeMenu || "";
977
982
  u.value = O || o.name;
978
983
  }, r = [
@@ -981,55 +986,55 @@ const St = { class: "text-lg font-medium" }, $t = { id: "data-content" }, Et = {
981
986
  "/redirect/:path(.*)",
982
987
  "/login",
983
988
  "/oidc-callback"
984
- ], $ = (x, O = [], C = !1) => {
985
- const n = [];
986
- if (!x || x.length === 0)
987
- return n;
988
- x = x.sort((v, S) => {
989
- let N = (S.children?.length ? 1 : 0) - (v.children?.length ? 1 : 0);
990
- return N === 0 && (N = Number(v.meta?.sort ?? 0) - Number(S.meta?.sort ?? 0)), N;
989
+ ], $ = (L, O = [], T = !1) => {
990
+ const x = [];
991
+ if (!L || L.length === 0)
992
+ return x;
993
+ L = L.sort((R, g) => {
994
+ let h = (g.children?.length ? 1 : 0) - (R.children?.length ? 1 : 0);
995
+ return h === 0 && (h = Number(R.meta?.sort ?? 0) - Number(g.meta?.sort ?? 0)), h;
991
996
  });
992
- for (const v of x) {
993
- if (C || v.meta?.hidden || r.includes(v.path.toLowerCase())) {
994
- O.push(v.name), $(v.children || [], O, !0);
997
+ for (const R of L) {
998
+ if (T || R.meta?.hidden || r.includes(R.path.toLowerCase())) {
999
+ O.push(R.name), $(R.children || [], O, !0);
995
1000
  continue;
996
1001
  }
997
- const S = v.children?.filter((ae) => !ae.meta?.hidden) || [], N = S.length === 1, h = N ? S[0] : v, Y = {
998
- key: h.name,
999
- label: h.meta?.title,
1000
- affix: h.meta?.affix,
1001
- sort: Number(N ? v.meta?.sort ?? 0 : h.meta?.sort ?? 0),
1002
- path: h.path,
1003
- redirect: h.redirect,
1004
- icon: N ? v.meta?.icon : h.meta?.icon,
1005
- permission: h.meta?.permission,
1006
- meta: h.meta,
1002
+ const g = R.children?.filter((ae) => !ae.meta?.hidden) || [], h = g.length === 1, s = h ? g[0] : R, q = {
1003
+ key: s.name,
1004
+ label: s.meta?.title,
1005
+ affix: s.meta?.affix,
1006
+ sort: Number(h ? R.meta?.sort ?? 0 : s.meta?.sort ?? 0),
1007
+ path: s.path,
1008
+ redirect: s.redirect,
1009
+ icon: h ? R.meta?.icon : s.meta?.icon,
1010
+ permission: s.meta?.permission,
1011
+ meta: s.meta,
1007
1012
  children: void 0
1008
1013
  };
1009
- if (h.children && h.children.length > 0 && (Y.children = $(h.children, O, C), !N && (!Y.children || Y.children.length === 0))) {
1010
- O.push(h.name);
1014
+ if (s.children && s.children.length > 0 && (q.children = $(s.children, O, T), !h && (!q.children || q.children.length === 0))) {
1015
+ O.push(s.name);
1011
1016
  continue;
1012
1017
  }
1013
- O.includes(h.name) || (n.push(Y), O.push(h.name));
1018
+ O.includes(s.name) || (x.push(q), O.push(s.name));
1014
1019
  }
1015
- return n;
1020
+ return x;
1016
1021
  }, d = () => {
1017
- const x = p.getRoutes();
1018
- s.value = $(x);
1022
+ const L = m.getRoutes();
1023
+ n.value = $(L);
1019
1024
  };
1020
- return ze(
1025
+ return Me(
1021
1026
  () => o.fullPath,
1022
1027
  () => {
1023
- w();
1028
+ P();
1024
1029
  }
1025
1030
  ), ee(() => {
1026
- d(), w();
1027
- }), (x, O) => (g(), L(a(qe), {
1031
+ d(), P();
1032
+ }), (L, O) => (p(), C(a(qe), {
1028
1033
  class: "h-full",
1029
1034
  inverted: "",
1030
1035
  mode: "vertical",
1031
- options: s.value,
1032
- collapsed: a(_).state.collapsed,
1036
+ options: n.value,
1037
+ collapsed: a(v).state.collapsed,
1033
1038
  "collapsed-width": 64,
1034
1039
  "collapsed-icon-size": 20,
1035
1040
  indent: 24,
@@ -1042,12 +1047,12 @@ const St = { class: "text-lg font-medium" }, $t = { id: "data-content" }, Et = {
1042
1047
  }), la = { class: "layout-content-main layout-content-main-fix" }, ra = { class: "main-view main-view-fix" }, ca = /* @__PURE__ */ H({
1043
1048
  __name: "PLayout",
1044
1049
  setup(e) {
1045
- const s = re(), o = z(!1);
1050
+ const n = re(), o = M(!1);
1046
1051
  return ut("reloadPage", () => {
1047
1052
  o.value = !0, se(() => o.value = !1);
1048
- }), (_, u) => {
1053
+ }), (v, u) => {
1049
1054
  const y = Ye;
1050
- return g(), L(a(Le), {
1055
+ return p(), C(a(Le), {
1051
1056
  "has-sider": "",
1052
1057
  class: "layout",
1053
1058
  position: "absolute"
@@ -1061,16 +1066,16 @@ const St = { class: "text-lg font-medium" }, $t = { id: "data-content" }, Et = {
1061
1066
  "collapse-mode": "width",
1062
1067
  "trigger-class": "!-right-5",
1063
1068
  "collapsed-trigger-class": "!-right-5",
1064
- collapsed: a(s).state.collapsed,
1069
+ collapsed: a(n).state.collapsed,
1065
1070
  "native-scrollbar": !1,
1066
1071
  "collapsed-width": 64,
1067
- onCollapse: a(s).collapse,
1068
- onExpand: a(s).collapse
1072
+ onCollapse: a(n).collapse,
1073
+ onExpand: a(n).collapse
1069
1074
  }, {
1070
1075
  default: l(() => [
1071
1076
  c(a(Ve), { vertical: "" }, {
1072
1077
  default: l(() => [
1073
- c(Bt),
1078
+ c(zt),
1074
1079
  c(sa)
1075
1080
  ]),
1076
1081
  _: 1
@@ -1088,9 +1093,9 @@ const St = { class: "text-lg font-medium" }, $t = { id: "data-content" }, Et = {
1088
1093
  }),
1089
1094
  c(a(Ke), { class: "layout-content layout-default-background" }, {
1090
1095
  default: l(() => [
1091
- m("div", la, [
1096
+ _("div", la, [
1092
1097
  c(oa),
1093
- m("div", ra, [
1098
+ _("div", ra, [
1094
1099
  c(Gt, { loading: o.value }, null, 8, ["loading"])
1095
1100
  ])
1096
1101
  ])
@@ -1109,12 +1114,12 @@ const St = { class: "text-lg font-medium" }, $t = { id: "data-content" }, Et = {
1109
1114
  });
1110
1115
  };
1111
1116
  }
1112
- }), ia = /* @__PURE__ */ V(ca, [["__scopeId", "data-v-0bac2e7d"]]), ua = {};
1113
- function da(e, s) {
1117
+ }), ia = /* @__PURE__ */ F(ca, [["__scopeId", "data-v-0bac2e7d"]]), ua = {};
1118
+ function da(e, n) {
1114
1119
  const o = Ae("router-view");
1115
- return g(), L(o);
1120
+ return p(), C(o);
1116
1121
  }
1117
- const fa = /* @__PURE__ */ V(ua, [["render", da]]), ga = W(fa), pa = W(ia), ma = /* @__PURE__ */ H({
1122
+ const fa = /* @__PURE__ */ F(ua, [["render", da]]), ga = W("PEmptyLayout", fa), pa = W("PLayout", ia), ma = /* @__PURE__ */ H({
1118
1123
  __name: "PApplication",
1119
1124
  props: {
1120
1125
  theme: {},
@@ -1131,9 +1136,9 @@ const fa = /* @__PURE__ */ V(ua, [["render", da]]), ga = W(fa), pa = W(ia), ma =
1131
1136
  } }
1132
1137
  },
1133
1138
  setup(e) {
1134
- return (s, o) => {
1135
- const p = Xe;
1136
- return g(), L(p, {
1139
+ return (n, o) => {
1140
+ const m = Xe;
1141
+ return p(), C(m, {
1137
1142
  locale: a(Ze),
1138
1143
  theme: e.theme,
1139
1144
  "theme-overrides": e.themeOverrides,
@@ -1146,7 +1151,7 @@ const fa = /* @__PURE__ */ V(ua, [["render", da]]), ga = W(fa), pa = W(ia), ma =
1146
1151
  default: l(() => [
1147
1152
  c(a(et), null, {
1148
1153
  default: l(() => [
1149
- K(s.$slots, "default")
1154
+ Y(n.$slots, "default")
1150
1155
  ]),
1151
1156
  _: 3
1152
1157
  })
@@ -1161,7 +1166,7 @@ const fa = /* @__PURE__ */ V(ua, [["render", da]]), ga = W(fa), pa = W(ia), ma =
1161
1166
  }, 8, ["locale", "theme", "theme-overrides", "date-locale"]);
1162
1167
  };
1163
1168
  }
1164
- }), ha = W(ma), _a = /* @__PURE__ */ H({
1169
+ }), ha = W("PApplication", ma), _a = /* @__PURE__ */ H({
1165
1170
  __name: "PModal",
1166
1171
  props: {
1167
1172
  saveBtnText: { default: "保存" },
@@ -1179,34 +1184,34 @@ const fa = /* @__PURE__ */ V(ua, [["render", da]]), ga = W(fa), pa = W(ia), ma =
1179
1184
  onUpdateVisible: {}
1180
1185
  },
1181
1186
  emits: ["update:visible", "update:loading"],
1182
- setup(e, { expose: s, emit: o }) {
1183
- const p = ce(), _ = z(!1), u = z(!1), y = o, i = e, E = async () => {
1187
+ setup(e, { expose: n, emit: o }) {
1188
+ const m = ce(), v = M(!1), u = M(!1), y = o, i = e, E = async () => {
1184
1189
  try {
1185
- _.value = !0, i.onSave && await i.onSave() && w();
1190
+ v.value = !0, i.onSave && await i.onSave() && P();
1186
1191
  } catch (d) {
1187
- d instanceof Error && window.$message.error(d.message), console.error(d);
1192
+ d instanceof Error && m.error(d.message), console.error(d);
1188
1193
  } finally {
1189
- _.value = !1;
1194
+ v.value = !1;
1190
1195
  }
1191
- }, w = () => {
1192
- _.value = !1, u.value = !1, y("update:visible", !1);
1196
+ }, P = () => {
1197
+ v.value = !1, u.value = !1, y("update:visible", !1);
1193
1198
  }, r = async () => {
1194
1199
  try {
1195
- u.value = !0, i.onClose ? await i.onClose() && w() : w();
1200
+ u.value = !0, i.onClose ? await i.onClose() && P() : P();
1196
1201
  } catch (d) {
1197
- p.error(d.message);
1202
+ m.error(d.message);
1198
1203
  } finally {
1199
1204
  u.value = !1;
1200
1205
  }
1201
1206
  };
1202
- return s({
1207
+ return n({
1203
1208
  open: () => {
1204
- _.value = !1, u.value = !1, y("update:visible", !0);
1209
+ v.value = !1, u.value = !1, y("update:visible", !0);
1205
1210
  },
1206
- close: w
1207
- }), (d, x) => {
1208
- const O = at, C = _e, n = he;
1209
- return g(), L(a(tt), dt({
1211
+ close: P
1212
+ }), (d, L) => {
1213
+ const O = at, T = _e, x = he;
1214
+ return p(), C(a(tt), dt({
1210
1215
  ref: "$modal",
1211
1216
  preset: "card"
1212
1217
  }, d.$attrs, {
@@ -1218,55 +1223,55 @@ const fa = /* @__PURE__ */ V(ua, [["render", da]]), ga = W(fa), pa = W(ia), ma =
1218
1223
  "mask-closable": !1,
1219
1224
  bordered: !1,
1220
1225
  style: { width: `${i.width}px` },
1221
- onClose: w,
1226
+ onClose: P,
1222
1227
  onAfterEnter: i.onAfterEnter,
1223
1228
  onAfterLeave: i.onAfterLeave,
1224
1229
  onUpdateVisible: i.onUpdateVisible
1225
1230
  }), {
1226
1231
  header: l(() => [
1227
- d.$slots.header ? K(d.$slots, "header", { key: 0 }) : i.title ? (g(), L(O, { key: 1 }, {
1232
+ d.$slots.header ? Y(d.$slots, "header", { key: 0 }) : i.title ? (p(), C(O, { key: 1 }, {
1228
1233
  default: l(() => [
1229
- ge(q(e.title), 1)
1234
+ ge(j(e.title), 1)
1230
1235
  ]),
1231
1236
  _: 1
1232
- })) : M("", !0)
1237
+ })) : D("", !0)
1233
1238
  ]),
1234
1239
  "header-extra": l(() => [
1235
- K(d.$slots, "header-extra")
1240
+ Y(d.$slots, "header-extra")
1236
1241
  ]),
1237
1242
  default: l(() => [
1238
- m("div", {
1243
+ _("div", {
1239
1244
  class: "overflow-y-auto overflow-hidden mt-5",
1240
- style: Be({ maxHeight: `${i.height}px` })
1245
+ style: ze({ maxHeight: `${i.height}px` })
1241
1246
  }, [
1242
- K(d.$slots, "default")
1247
+ Y(d.$slots, "default")
1243
1248
  ], 4)
1244
1249
  ]),
1245
1250
  footer: l(() => [
1246
- K(d.$slots, "footer")
1251
+ Y(d.$slots, "footer")
1247
1252
  ]),
1248
1253
  action: l(() => [
1249
- c(n, { justify: "end" }, {
1254
+ c(x, { justify: "end" }, {
1250
1255
  default: l(() => [
1251
- i.hideSaveBtn ? M("", !0) : (g(), L(C, {
1256
+ i.hideSaveBtn ? D("", !0) : (p(), C(T, {
1252
1257
  key: 0,
1253
1258
  type: "primary",
1254
- loading: _.value,
1259
+ loading: v.value,
1255
1260
  onClick: E
1256
1261
  }, {
1257
1262
  default: l(() => [
1258
- ge(q(e.saveBtnText), 1)
1263
+ ge(j(e.saveBtnText), 1)
1259
1264
  ]),
1260
1265
  _: 1
1261
1266
  }, 8, ["loading"])),
1262
- K(d.$slots, "action-extra"),
1263
- i.hideCancelBtn ? M("", !0) : (g(), L(C, {
1267
+ Y(d.$slots, "action-extra"),
1268
+ i.hideCancelBtn ? D("", !0) : (p(), C(T, {
1264
1269
  key: 1,
1265
1270
  loading: u.value,
1266
1271
  onClick: r
1267
1272
  }, {
1268
1273
  default: l(() => [
1269
- ge(q(e.cancelBtnText), 1)
1274
+ ge(j(e.cancelBtnText), 1)
1270
1275
  ]),
1271
1276
  _: 1
1272
1277
  }, 8, ["loading"]))
@@ -1278,29 +1283,29 @@ const fa = /* @__PURE__ */ V(ua, [["render", da]]), ga = W(fa), pa = W(ia), ma =
1278
1283
  }, 16, ["show", "style", "onAfterEnter", "onAfterLeave", "onUpdateVisible"]);
1279
1284
  };
1280
1285
  }
1281
- }), va = W(_a), ba = W(De), ya = H({
1286
+ }), va = W("PModal", _a), ba = W("PLanguage", Be), ya = H({
1282
1287
  name: "Redirect",
1283
1288
  setup() {
1284
- const e = te(), s = le();
1289
+ const e = te(), n = le();
1285
1290
  return ft(() => {
1286
- const { params: o, query: p } = e, { path: _ } = o;
1287
- s.replace({
1288
- path: "/" + (Array.isArray(_) ? _.join("/") : _),
1289
- query: p
1291
+ const { params: o, query: m } = e, { path: v } = o;
1292
+ n.replace({
1293
+ path: "/" + (Array.isArray(v) ? v.join("/") : v),
1294
+ query: m
1290
1295
  });
1291
1296
  }), () => /* @__PURE__ */ React.createElement(nt, null);
1292
1297
  }
1293
- }), wa = W(ya), Pa = { class: "frame" }, ka = ["src"], xa = /* @__PURE__ */ H({
1298
+ }), Pa = W("PRedirect", ya), wa = { class: "frame" }, ka = ["src"], xa = /* @__PURE__ */ H({
1294
1299
  __name: "PIframe",
1295
1300
  setup(e) {
1296
- const s = te(), o = z(!1), p = z(null), _ = z("");
1297
- a(s.meta)?.frameSrc && (_.value = a(s.meta)?.frameSrc);
1301
+ const n = te(), o = M(!1), m = M(null), v = M("");
1302
+ a(n.meta)?.frameSrc && (v.value = a(n.meta)?.frameSrc);
1298
1303
  function u() {
1299
1304
  o.value = !1;
1300
1305
  }
1301
1306
  function y() {
1302
1307
  se(() => {
1303
- const i = a(p);
1308
+ const i = a(m);
1304
1309
  if (!i) return;
1305
1310
  const E = i;
1306
1311
  E.attachEvent ? E.attachEvent("onload", () => {
@@ -1313,15 +1318,15 @@ const fa = /* @__PURE__ */ V(ua, [["render", da]]), ga = W(fa), pa = W(ia), ma =
1313
1318
  return ee(() => {
1314
1319
  o.value = !0, y();
1315
1320
  }), (i, E) => {
1316
- const w = ot;
1317
- return g(), L(w, { show: o.value }, {
1321
+ const P = ot;
1322
+ return p(), C(P, { show: o.value }, {
1318
1323
  default: l(() => [
1319
- m("div", Pa, [
1320
- m("iframe", {
1321
- src: _.value,
1324
+ _("div", wa, [
1325
+ _("iframe", {
1326
+ src: v.value,
1322
1327
  class: "frame-iframe",
1323
1328
  ref_key: "frameRef",
1324
- ref: p
1329
+ ref: m
1325
1330
  }, null, 8, ka)
1326
1331
  ])
1327
1332
  ]),
@@ -1329,7 +1334,7 @@ const fa = /* @__PURE__ */ V(ua, [["render", da]]), ga = W(fa), pa = W(ia), ma =
1329
1334
  }, 8, ["show"]);
1330
1335
  };
1331
1336
  }
1332
- }), La = /* @__PURE__ */ V(xa, [["__scopeId", "data-v-161a378e"]]), Ca = W(La), Ta = { class: "border border-gray-100 rounded-lg" }, Sa = { class: "text-xl font-semibold text-gray-800" }, $a = { class: "text-sm text-gray-500 mt-1" }, Ea = /* @__PURE__ */ H({
1337
+ }), La = /* @__PURE__ */ F(xa, [["__scopeId", "data-v-161a378e"]]), Ca = W("PIframe", La), Ta = { class: "border border-gray-100 rounded-lg" }, Sa = { class: "text-xl font-semibold text-gray-800" }, $a = { class: "text-sm text-gray-500 mt-1" }, Ea = /* @__PURE__ */ H({
1333
1338
  __name: "PPage",
1334
1339
  props: {
1335
1340
  icon: { type: Object, required: !1, default: () => Lt },
@@ -1337,11 +1342,11 @@ const fa = /* @__PURE__ */ V(ua, [["render", da]]), ga = W(fa), pa = W(ia), ma =
1337
1342
  subtitle: { type: String, required: !1 }
1338
1343
  },
1339
1344
  setup(e) {
1340
- const s = e;
1341
- return (o, p) => {
1342
- const _ = A, u = ve, y = he, i = Oe;
1343
- return g(), U("div", Ta, [
1344
- s.title ? (g(), L(i, {
1345
+ const n = e;
1346
+ return (o, m) => {
1347
+ const v = A, u = ve, y = he, i = Oe;
1348
+ return p(), U("div", Ta, [
1349
+ n.title ? (p(), C(i, {
1345
1350
  key: 0,
1346
1351
  class: "mb-4",
1347
1352
  bordered: !1,
@@ -1358,23 +1363,23 @@ const fa = /* @__PURE__ */ V(ua, [["render", da]]), ga = W(fa), pa = W(ia), ma =
1358
1363
  size: 16
1359
1364
  }, {
1360
1365
  default: l(() => [
1361
- s.icon ? (g(), L(u, {
1366
+ n.icon ? (p(), C(u, {
1362
1367
  key: 0,
1363
1368
  size: 48,
1364
1369
  class: "bg-linear-to-br from-blue-500 to-indigo-600"
1365
1370
  }, {
1366
1371
  default: l(() => [
1367
- c(_, {
1372
+ c(v, {
1368
1373
  size: 24,
1369
- component: s.icon,
1374
+ component: n.icon,
1370
1375
  color: "#fff"
1371
1376
  }, null, 8, ["component"])
1372
1377
  ]),
1373
1378
  _: 1
1374
- })) : M("", !0),
1375
- m("div", null, [
1376
- m("div", Sa, q(s.title), 1),
1377
- m("div", $a, q(s.subtitle ?? s.title + "主页"), 1)
1379
+ })) : D("", !0),
1380
+ _("div", null, [
1381
+ _("div", Sa, j(n.title), 1),
1382
+ _("div", $a, j(n.subtitle ?? n.title + "主页"), 1)
1378
1383
  ])
1379
1384
  ]),
1380
1385
  _: 1
@@ -1384,35 +1389,35 @@ const fa = /* @__PURE__ */ V(ua, [["render", da]]), ga = W(fa), pa = W(ia), ma =
1384
1389
  })
1385
1390
  ]),
1386
1391
  _: 1
1387
- })) : M("", !0),
1388
- o.$slots.search ? (g(), L(i, {
1392
+ })) : D("", !0),
1393
+ o.$slots.search ? (p(), C(i, {
1389
1394
  key: 1,
1390
1395
  class: "mb-4",
1391
1396
  "content-class": "flex flex-row gap-2",
1392
1397
  bordered: !1
1393
1398
  }, {
1394
1399
  default: l(() => [
1395
- K(o.$slots, "search")
1400
+ Y(o.$slots, "search")
1396
1401
  ]),
1397
1402
  _: 3
1398
- })) : M("", !0),
1399
- o.$slots.default ? (g(), L(i, {
1403
+ })) : D("", !0),
1404
+ o.$slots.default ? (p(), C(i, {
1400
1405
  key: 2,
1401
1406
  "content-class": "flex flex-row gap-2 p-0!",
1402
1407
  bordered: !1
1403
1408
  }, {
1404
1409
  default: l(() => [
1405
- K(o.$slots, "default")
1410
+ Y(o.$slots, "default")
1406
1411
  ]),
1407
1412
  _: 3
1408
- })) : M("", !0)
1413
+ })) : D("", !0)
1409
1414
  ]);
1410
1415
  };
1411
1416
  }
1412
- }), Oa = W(Ea), Na = {}, Ra = { class: "flex flex-col justify-center page-container" };
1413
- function Aa(e, s) {
1417
+ }), Oa = W("PPage", Ea), Na = {}, Ra = { class: "flex flex-col justify-center page-container" };
1418
+ function Aa(e, n) {
1414
1419
  const o = be;
1415
- return g(), U("div", Ra, [
1420
+ return p(), U("div", Ra, [
1416
1421
  c(o, {
1417
1422
  status: "500",
1418
1423
  title: "服务器错误",
@@ -1420,10 +1425,10 @@ function Aa(e, s) {
1420
1425
  })
1421
1426
  ]);
1422
1427
  }
1423
- const za = /* @__PURE__ */ V(Na, [["render", Aa], ["__scopeId", "data-v-89cb65c7"]]), Ba = {}, Da = { class: "flex flex-col justify-center page-container" };
1424
- function Ma(e, s) {
1428
+ const Ma = /* @__PURE__ */ F(Na, [["render", Aa], ["__scopeId", "data-v-89cb65c7"]]), za = {}, Ba = { class: "flex flex-col justify-center page-container" };
1429
+ function Da(e, n) {
1425
1430
  const o = be;
1426
- return g(), U("div", Da, [
1431
+ return p(), U("div", Ba, [
1427
1432
  c(o, {
1428
1433
  status: "404",
1429
1434
  title: "资源不存在",
@@ -1431,10 +1436,10 @@ function Ma(e, s) {
1431
1436
  })
1432
1437
  ]);
1433
1438
  }
1434
- const Ia = /* @__PURE__ */ V(Ba, [["render", Ma], ["__scopeId", "data-v-99232671"]]), Ua = {}, Ha = { class: "flex flex-col justify-center page-container" };
1435
- function Wa(e, s) {
1439
+ const Ia = /* @__PURE__ */ F(za, [["render", Da], ["__scopeId", "data-v-99232671"]]), Ua = {}, Ha = { class: "flex flex-col justify-center page-container" };
1440
+ function Wa(e, n) {
1436
1441
  const o = be;
1437
- return g(), U("div", Ha, [
1442
+ return p(), U("div", Ha, [
1438
1443
  c(o, {
1439
1444
  status: "403",
1440
1445
  title: "禁止访问",
@@ -1442,7 +1447,7 @@ function Wa(e, s) {
1442
1447
  })
1443
1448
  ]);
1444
1449
  }
1445
- const qa = /* @__PURE__ */ V(Ua, [["render", Wa], ["__scopeId", "data-v-3baa9c16"]]), ja = W(za), Va = W(Ia), Fa = W(qa), Ka = Pe("app-oidc", () => {
1450
+ const qa = /* @__PURE__ */ F(Ua, [["render", Wa], ["__scopeId", "data-v-3baa9c16"]]), ja = W("P500", Ma), Va = W("P404", Ia), Fa = W("P403", qa), Ka = we("app-oidc", () => {
1446
1451
  const e = ye({});
1447
1452
  return {
1448
1453
  setCallback: (u) => e.callback = u,
@@ -1453,22 +1458,22 @@ const qa = /* @__PURE__ */ V(Ua, [["render", Wa], ["__scopeId", "data-v-3baa9c16
1453
1458
  }), Ya = { class: "view-auth-callback" }, Xa = /* @__PURE__ */ H({
1454
1459
  __name: "POidc",
1455
1460
  setup(e) {
1456
- const s = le(), { callCallback: o, callError: p } = Ka();
1461
+ const n = le(), { callCallback: o, callError: m } = Ka();
1457
1462
  return ee(async () => {
1458
1463
  try {
1459
- await o(s);
1460
- } catch (_) {
1461
- await p(s, _);
1464
+ await o(n);
1465
+ } catch (v) {
1466
+ await m(n, v);
1462
1467
  }
1463
- }), (_, u) => (g(), U("div", Ya, [...u[0] || (u[0] = [
1464
- m("div", { class: "view-auth-callback-content" }, [
1465
- m("div", { class: "view-auth-callback-spinner" }, [
1466
- m("span", null, "正在处理登录回调...")
1468
+ }), (v, u) => (p(), U("div", Ya, [...u[0] || (u[0] = [
1469
+ _("div", { class: "view-auth-callback-content" }, [
1470
+ _("div", { class: "view-auth-callback-spinner" }, [
1471
+ _("span", null, "正在处理登录回调...")
1467
1472
  ])
1468
1473
  ], -1)
1469
1474
  ])]));
1470
1475
  }
1471
- }), Ja = /* @__PURE__ */ V(Xa, [["__scopeId", "data-v-167395ae"]]), Za = W(Ja), Ga = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1476
+ }), Ja = /* @__PURE__ */ F(Xa, [["__scopeId", "data-v-167395ae"]]), Za = W("POidc", Ja), Ga = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1472
1477
  __proto__: null,
1473
1478
  P403: Fa,
1474
1479
  P404: Va,
@@ -1481,11 +1486,11 @@ const qa = /* @__PURE__ */ V(Ua, [["render", Wa], ["__scopeId", "data-v-3baa9c16
1481
1486
  PModal: va,
1482
1487
  POidc: Za,
1483
1488
  PPage: Oa,
1484
- PRedirect: wa,
1489
+ PRedirect: Pa,
1485
1490
  PTable: Nt
1486
- }, Symbol.toStringTag, { value: "Module" })), Qa = (e, s) => (Object.values(Ga).forEach((o) => {
1491
+ }, Symbol.toStringTag, { value: "Module" })), Qa = (e, n) => (Object.values(Ga).forEach((o) => {
1487
1492
  o.install && e.use(o);
1488
- }), s?.(), e), rn = {
1493
+ }), n?.(), e), rn = {
1489
1494
  install: Qa
1490
1495
  };
1491
1496
  export {
@@ -1500,11 +1505,11 @@ export {
1500
1505
  va as PModal,
1501
1506
  Za as POidc,
1502
1507
  Oa as PPage,
1503
- wa as PRedirect,
1508
+ Pa as PRedirect,
1504
1509
  Nt as PTable,
1505
1510
  rn as default,
1506
1511
  Qa as install,
1507
- Mt as useLanguageStore,
1512
+ Dt as useLanguageStore,
1508
1513
  re as useLayoutStore,
1509
1514
  Ka as useOidcStore
1510
1515
  };