@chewel611/naive-ui-plus 0.0.37 → 0.0.39

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,14 +1,14 @@
1
- import { useDialog as Oe, useMessage as de, NCard as Ee, NDataTable as Me, NSpace as _e, NTooltip as Re, NIcon as R, NDropdown as Q, NButton as ve, NAvatar as be, NBreadcrumb as Ie, NBreadcrumbItem as He, NDivider as We, useThemeVars as Ue, NMenu as je, NLayout as Le, NLayoutSider as qe, NFlex as Fe, NLayoutHeader as Ke, NLayoutContent as Ve, 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 ye } from "naive-ui";
2
- import { defineComponent as W, ref as N, computed as V, unref as a, onMounted as ee, openBlock as g, createBlock as C, withCtx as o, createElementVNode as v, createElementBlock as H, renderSlot as Y, createCommentVNode as A, createVNode as c, toDisplayString as j, h as z, toRaw as Ce, reactive as we, normalizeClass as se, withDirectives as st, vShow as lt, nextTick as le, inject as Ne, Fragment as Se, renderList as ct, resolveDynamicComponent as he, withModifiers as me, resolveComponent as Be, KeepAlive as rt, useCssVars as it, watch as ze, normalizeStyle as De, provide as ut, mergeProps as dt, createTextVNode as pe, onBeforeMount as ft } from "vue";
1
+ import { useDialog as Ee, useMessage as de, NCard as Oe, NDataTable as Me, NSpace as _e, NTooltip as Re, NIcon as R, NDropdown as Q, NButton as ve, NAvatar as be, NBreadcrumb as Ie, NBreadcrumbItem as Ue, NDivider as He, useThemeVars as We, NMenu as je, NLayout as Le, NLayoutSider as qe, NFlex as Fe, NLayoutHeader as Ke, NLayoutContent as Ve, 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 ye } from "naive-ui";
2
+ import { defineComponent as H, ref as A, computed as V, unref as a, onMounted as ee, openBlock as g, createBlock as C, withCtx as o, createElementVNode as v, createElementBlock as U, renderSlot as Y, createCommentVNode as D, createVNode as r, toDisplayString as j, h as B, toRaw as Ce, reactive as we, normalizeClass as se, withDirectives as st, vShow as lt, nextTick as le, inject as Ae, Fragment as Se, renderList as rt, resolveDynamicComponent as he, withModifiers as me, resolveComponent as Ne, KeepAlive as ct, useCssVars as it, watch as Be, normalizeStyle as ze, provide as ut, mergeProps as dt, createTextVNode as pe, onBeforeMount as ft } from "vue";
3
3
  import { PlusSquareOutlined as gt, DeleteOutlined as Te, ReloadOutlined as Pe, MoreOutlined as pt, EditOutlined as ht, MenuUnfoldOutlined as mt, 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
4
  import { defineStore as ke } from "pinia";
5
- import { useRouter as ce, useRoute as re } from "vue-router";
5
+ import { useRouter as re, useRoute as ce } from "vue-router";
6
6
  import Ct from "element-resize-detector";
7
7
  import St from "vuedraggable";
8
- const Tt = { class: "text-lg font-medium" }, $t = { id: "data-content" }, Ot = {
8
+ const Tt = { class: "text-lg font-medium" }, $t = { id: "data-content" }, Et = {
9
9
  key: 0,
10
10
  class: "rounded-lg bg-gray-50 flex flex-row gap-2 items-center justify-end p-4 mb-4"
11
- }, Et = /* @__PURE__ */ W({
11
+ }, Ot = /* @__PURE__ */ H({
12
12
  __name: "PTable",
13
13
  props: {
14
14
  title: {},
@@ -20,29 +20,29 @@ const Tt = { class: "text-lg font-medium" }, $t = { id: "data-content" }, Ot = {
20
20
  onEdit: {}
21
21
  },
22
22
  setup(e, { expose: n }) {
23
- const r = N(null), m = Oe(), d = de(), l = N(!1), k = N([]), h = N([]), T = N({
23
+ const c = A(null), m = Ee(), d = de(), l = A(!1), k = A([]), h = A([]), T = A({
24
24
  page: 1,
25
25
  itemCount: 0,
26
26
  pageSize: 10,
27
27
  pageSizes: [10, 20, 30, 50],
28
28
  showSizePicker: !0,
29
29
  onChange: async (P) => {
30
- T.value.page = P, await B();
30
+ T.value.page = P, await N();
31
31
  },
32
32
  onUpdatePageSize: async (P) => {
33
- T.value.pageSize = P, await B();
33
+ T.value.pageSize = P, await N();
34
34
  }
35
35
  }), L = e, s = (P) => {
36
36
  const x = (S) => {
37
- const O = [];
37
+ const E = [];
38
38
  return P && P.forEach((I) => {
39
- I.key !== "edit" && I.key !== "delete" && O.push({
39
+ I.key !== "edit" && I.key !== "delete" && E.push({
40
40
  label: I.name,
41
41
  key: I.key,
42
- icon: I.icon && (() => z(R, null, { default: () => z(I.icon) })),
42
+ icon: I.icon && (() => B(R, null, { default: () => B(I.icon) })),
43
43
  props: { onClick: () => I.action(S) }
44
44
  });
45
- }), O;
45
+ }), E;
46
46
  };
47
47
  return {
48
48
  title: "操作",
@@ -50,29 +50,29 @@ const Tt = { class: "text-lg font-medium" }, $t = { id: "data-content" }, Ot = {
50
50
  width: 100,
51
51
  fixed: "right",
52
52
  render: (S) => {
53
- let O = [];
54
- if (L.onEdit && O.push({
53
+ let E = [];
54
+ if (L.onEdit && E.push({
55
55
  label: "编辑",
56
56
  key: "edit",
57
- icon: () => z(R, null, { default: () => z(ht) }),
57
+ icon: () => B(R, null, { default: () => B(ht) }),
58
58
  props: { onClick: async () => await L.onEdit(S) }
59
- }), L.onDelete && O.push({
59
+ }), L.onDelete && E.push({
60
60
  label: "删除",
61
61
  key: "delete",
62
- icon: () => z(R, null, { default: () => z(Te) }),
62
+ icon: () => B(R, null, { default: () => B(Te) }),
63
63
  props: { onClick: () => $(S) }
64
- }), O = [...O, ...x(S)], !(O.length <= 0))
65
- return z(
64
+ }), E = [...E, ...x(S)], !(E.length <= 0))
65
+ return B(
66
66
  Q,
67
67
  {
68
- options: O,
68
+ options: E,
69
69
  placement: "bottom-start"
70
70
  },
71
71
  {
72
- default: () => z(
72
+ default: () => B(
73
73
  ve,
74
74
  { size: "small", type: "primary" },
75
- { default: () => ["操作", z(R, () => z(pt))] }
75
+ { default: () => ["操作", B(R, () => B(pt))] }
76
76
  )
77
77
  }
78
78
  );
@@ -87,7 +87,7 @@ const Tt = { class: "text-lg font-medium" }, $t = { id: "data-content" }, Ot = {
87
87
  render: S.render,
88
88
  ellipsis: S.ellipsis ? { tooltip: !0 } : !1
89
89
  })), x = L.columns.reduce(
90
- (S, O) => O.key === "action" ? O : S,
90
+ (S, E) => E.key === "action" ? E : S,
91
91
  void 0
92
92
  )?.action;
93
93
  return x && x?.length > 0 || L.onEdit || L.onDelete ? [
@@ -95,7 +95,7 @@ const Tt = { class: "text-lg font-medium" }, $t = { id: "data-content" }, Ot = {
95
95
  ...P,
96
96
  s(x)
97
97
  ] : [{ type: "selection", fixed: "left" }, ...P];
98
- }), u = async () => await B(), $ = (P) => i([P]), D = () => {
98
+ }), u = async () => await N(), $ = (P) => i([P]), z = () => {
99
99
  const P = _();
100
100
  i(P);
101
101
  }, i = (P) => {
@@ -107,13 +107,13 @@ const Tt = { class: "text-lg font-medium" }, $t = { id: "data-content" }, Ot = {
107
107
  onPositiveClick: async () => {
108
108
  if (L.onDelete)
109
109
  try {
110
- await L.onDelete(P) ? (B(), d.success("删除成功")) : d.error("删除失败");
110
+ await L.onDelete(P) ? (N(), d.success("删除成功")) : d.error("删除失败");
111
111
  } catch (x) {
112
112
  d.error(x.message);
113
113
  }
114
114
  }
115
115
  });
116
- }, _ = () => k.value ? h.value.filter((x) => k.value.includes(x.id)).map((x) => Ce(x)) : [], w = () => _()[0], M = () => Ce(h.value), B = async () => {
116
+ }, _ = () => k.value ? h.value.filter((x) => k.value.includes(x.id)).map((x) => Ce(x)) : [], w = () => _()[0], M = () => Ce(h.value), N = async () => {
117
117
  if (!l.value) {
118
118
  l.value = !0;
119
119
  try {
@@ -131,9 +131,9 @@ const Tt = { class: "text-lg font-medium" }, $t = { id: "data-content" }, Ot = {
131
131
  }
132
132
  }
133
133
  }, b = V(() => {
134
- const P = a(r);
134
+ const P = a(c);
135
135
  if (!P) return;
136
- const x = P?.$el, S = x.querySelector(".n-data-table-thead "), { bottomIncludeBody: O } = te(S), I = 48;
136
+ const x = P?.$el, S = x.querySelector(".n-data-table-thead "), { bottomIncludeBody: E } = te(S), I = 48;
137
137
  let q = 12, G = 25;
138
138
  const X = x.querySelector(
139
139
  ".n-data-table__pagination"
@@ -143,14 +143,14 @@ const Tt = { class: "text-lg font-medium" }, $t = { id: "data-content" }, Ot = {
143
143
  q += J || 0;
144
144
  } else
145
145
  q += 28;
146
- return O - (I + q + G);
146
+ return E - (I + q + G);
147
147
  }), Z = (P) => !P || !P.getBoundingClientRect ? 0 : P.getBoundingClientRect(), te = (P) => {
148
- const x = document.documentElement, S = x.scrollLeft, O = x.scrollTop, I = x.clientLeft, q = x.clientTop, G = window.pageXOffset, X = window.pageYOffset, ae = Z(P), {
148
+ const x = document.documentElement, S = x.scrollLeft, E = x.scrollTop, I = x.clientLeft, q = x.clientTop, G = window.pageXOffset, X = window.pageYOffset, ae = Z(P), {
149
149
  left: J,
150
150
  top: fe,
151
151
  width: ge,
152
152
  height: t
153
- } = ae, f = (G || S) - (I || 0), p = (X || O) - (q || 0), E = J + G, K = fe + X, ne = E - f, oe = K - p, ue = window.document.documentElement.clientWidth, xe = window.document.documentElement.clientHeight;
153
+ } = ae, f = (G || S) - (I || 0), p = (X || E) - (q || 0), O = J + G, K = fe + X, ne = O - f, oe = K - p, ue = window.document.documentElement.clientWidth, xe = window.document.documentElement.clientHeight;
154
154
  return {
155
155
  left: ne,
156
156
  top: oe,
@@ -160,39 +160,39 @@ const Tt = { class: "text-lg font-medium" }, $t = { id: "data-content" }, Ot = {
160
160
  bottomIncludeBody: xe - oe
161
161
  };
162
162
  };
163
- return ee(async () => await B()), n({
163
+ return ee(async () => await N()), n({
164
164
  getData: M,
165
165
  getSelectedRow: w,
166
166
  getSelectedRows: _,
167
- refreshData: B,
167
+ refreshData: N,
168
168
  resetPage: () => {
169
169
  T.value.page = 1;
170
170
  }
171
171
  }), (P, x) => {
172
- const S = Re, O = _e, I = Me;
173
- return g(), C(a(Ee), { bordered: !1 }, {
172
+ const S = Re, E = _e, I = Me;
173
+ return g(), C(a(Oe), { bordered: !1 }, {
174
174
  header: o(() => [
175
- c(O, {
175
+ r(E, {
176
176
  justify: "space-between",
177
177
  align: "center",
178
178
  class: "w-full"
179
179
  }, {
180
180
  default: o(() => [
181
181
  v("span", Tt, j(e.title), 1),
182
- c(O, null, {
182
+ r(E, null, {
183
183
  default: o(() => [
184
184
  L.onAdd ? (g(), C(S, {
185
185
  key: 0,
186
186
  trigger: "hover"
187
187
  }, {
188
188
  trigger: o(() => [
189
- c(a(R), {
189
+ r(a(R), {
190
190
  size: "18",
191
191
  class: "mr-1 cursor-pointer hover:text-blue-600",
192
192
  onClick: L.onAdd
193
193
  }, {
194
194
  default: o(() => [
195
- c(a(gt))
195
+ r(a(gt))
196
196
  ]),
197
197
  _: 1
198
198
  }, 8, ["onClick"])
@@ -201,19 +201,19 @@ const Tt = { class: "text-lg font-medium" }, $t = { id: "data-content" }, Ot = {
201
201
  x[1] || (x[1] = v("span", null, "新增", -1))
202
202
  ]),
203
203
  _: 1
204
- })) : A("", !0),
204
+ })) : D("", !0),
205
205
  L.onDelete ? (g(), C(S, {
206
206
  key: 1,
207
207
  trigger: "hover"
208
208
  }, {
209
209
  trigger: o(() => [
210
- c(a(R), {
210
+ r(a(R), {
211
211
  size: "18",
212
212
  class: "mr-1 cursor-pointer hover:text-blue-600",
213
- onClick: D
213
+ onClick: z
214
214
  }, {
215
215
  default: o(() => [
216
- c(a(Te))
216
+ r(a(Te))
217
217
  ]),
218
218
  _: 1
219
219
  })
@@ -222,16 +222,16 @@ const Tt = { class: "text-lg font-medium" }, $t = { id: "data-content" }, Ot = {
222
222
  x[2] || (x[2] = v("span", null, "删除", -1))
223
223
  ]),
224
224
  _: 1
225
- })) : A("", !0),
226
- c(S, { trigger: "hover" }, {
225
+ })) : D("", !0),
226
+ r(S, { trigger: "hover" }, {
227
227
  trigger: o(() => [
228
- c(a(R), {
228
+ r(a(R), {
229
229
  size: "18",
230
230
  class: "cursor-pointer hover:text-blue-600",
231
231
  onClick: u
232
232
  }, {
233
233
  default: o(() => [
234
- c(a(Pe))
234
+ r(a(Pe))
235
235
  ]),
236
236
  _: 1
237
237
  })
@@ -250,13 +250,13 @@ const Tt = { class: "text-lg font-medium" }, $t = { id: "data-content" }, Ot = {
250
250
  ]),
251
251
  default: o(() => [
252
252
  v("div", $t, [
253
- P.$slots.toolbar ? (g(), H("div", Ot, [
253
+ P.$slots.toolbar ? (g(), U("div", Et, [
254
254
  Y(P.$slots, "toolbar")
255
- ])) : A("", !0),
256
- c(I, {
255
+ ])) : D("", !0),
256
+ r(I, {
257
257
  remote: "",
258
258
  ref_key: "$table",
259
- ref: r,
259
+ ref: c,
260
260
  "checked-row-keys": k.value,
261
261
  "onUpdate:checkedRowKeys": x[0] || (x[0] = (q) => k.value = q),
262
262
  "max-height": b.value,
@@ -274,12 +274,12 @@ const Tt = { class: "text-lg font-medium" }, $t = { id: "data-content" }, Ot = {
274
274
  });
275
275
  };
276
276
  }
277
- }), U = (e) => {
277
+ }), W = (e) => {
278
278
  const n = e;
279
- return n.install = function(r) {
280
- r.component(n.__name, e);
279
+ return n.install = function(c) {
280
+ c.component(n.__name, e);
281
281
  }, e;
282
- }, Rt = U(Et), Nt = ["Redirect", "RedirectSon", "login"], ie = ke("p-layout", () => {
282
+ }, Rt = W(Ot), At = ["Redirect", "RedirectSon", "login"], ie = ke("p-layout", () => {
283
283
  const e = we({
284
284
  collapsed: !1,
285
285
  title: "输入项目名称",
@@ -296,7 +296,7 @@ const Tt = { class: "text-lg font-medium" }, $t = { id: "data-content" }, Ot = {
296
296
  initTabs: (i) => {
297
297
  i.sort((_, w) => (w.meta.affix ? 1 : 0) - (_.meta.affix ? 1 : 0)), e.tabs = i;
298
298
  },
299
- addTab: (i) => Nt.includes(i.name) ? !1 : (e.tabs?.some(
299
+ addTab: (i) => At.includes(i.name) ? !1 : (e.tabs?.some(
300
300
  (w) => w.fullPath == i.fullPath
301
301
  ) || e.tabs?.push(i), !0),
302
302
  closeCurrentTab: (i) => {
@@ -351,12 +351,12 @@ const Tt = { class: "text-lg font-medium" }, $t = { id: "data-content" }, Ot = {
351
351
  e.enableLanguage = i;
352
352
  }
353
353
  };
354
- }), Bt = { class: "logo" }, zt = /* @__PURE__ */ W({
354
+ }), Nt = { class: "logo" }, Bt = /* @__PURE__ */ H({
355
355
  __name: "PLogo",
356
356
  setup(e) {
357
357
  const n = ie();
358
- return (r, m) => (g(), H("div", Bt, [
359
- c(a(be), {
358
+ return (c, m) => (g(), U("div", Nt, [
359
+ r(a(be), {
360
360
  color: "var(--color-logo)",
361
361
  size: 32,
362
362
  src: a(n).state.logo,
@@ -368,11 +368,11 @@ const Tt = { class: "text-lg font-medium" }, $t = { id: "data-content" }, Ot = {
368
368
  ]));
369
369
  }
370
370
  }), F = (e, n) => {
371
- const r = e.__vccOpts || e;
371
+ const c = e.__vccOpts || e;
372
372
  for (const [m, d] of n)
373
- r[m] = d;
374
- return r;
375
- }, Dt = /* @__PURE__ */ F(zt, [["__scopeId", "data-v-e48aeefa"]]), At = {
373
+ c[m] = d;
374
+ return c;
375
+ }, zt = /* @__PURE__ */ F(Bt, [["__scopeId", "data-v-e48aeefa"]]), Dt = {
376
376
  translationApiUrl: "https://translate.zvo.cn/api",
377
377
  defaultLanguage: "chinese",
378
378
  currentLanguage: "",
@@ -381,7 +381,7 @@ const Tt = { class: "text-lg font-medium" }, $t = { id: "data-content" }, Ot = {
381
381
  selectLanguage: async (e) => {
382
382
  }
383
383
  }, Mt = ke("language", () => {
384
- const e = N(At), n = async () => (e.value.options.length === 0 && (e.value.options = await e.value.initLanguages()), e.value.options);
384
+ const e = A(Dt), n = async () => (e.value.options.length === 0 && (e.value.options = await e.value.initLanguages()), e.value.options);
385
385
  return {
386
386
  select: async (s) => {
387
387
  if (e.value.currentLanguage === s)
@@ -413,21 +413,21 @@ const Tt = { class: "text-lg font-medium" }, $t = { id: "data-content" }, Ot = {
413
413
  (s === "Chinese" || s === "chinese") && (s = "chinese_simplified"), e.value.defaultLanguage = s;
414
414
  }
415
415
  };
416
- }), It = { key: 1 }, Ae = /* @__PURE__ */ W({
416
+ }), It = { key: 1 }, De = /* @__PURE__ */ H({
417
417
  __name: "PLanguage",
418
418
  setup(e) {
419
419
  const {
420
420
  select: n,
421
- getLanguages: r,
421
+ getLanguages: c,
422
422
  getCurrentLanguage: m,
423
423
  getDefaultLanguage: d,
424
424
  getTranslationApiUrl: l
425
- } = Mt(), k = N(), h = N([]), T = async (s) => await n(s), L = async () => {
425
+ } = Mt(), k = A(), h = A([]), T = async (s) => await n(s), L = async () => {
426
426
  const s = window.translate;
427
- s && (s.selectLanguageTag.show = !1, s.selectLanguageTag.languages = (await r()).map((y) => y.key).join(","), s.ignore.class.push("ignore-translate-flag"), s.ignore.id.push("ignore-translation"), s.language.setLocal(d()), s.request.api.translate = "api/v1/translation", s.request.api.connectTest = "api/v1/translation/connect-test", s.request.api.init = "api/v1/translation/init", s.request.api.language = "api/v1/translation/language", s.request.setHost(l()), s.request.listener.start(), s.listener.start(), s.whole.enableAll(), s.execute());
427
+ s && (s.selectLanguageTag.show = !1, s.selectLanguageTag.languages = (await c()).map((y) => y.key).join(","), s.ignore.class.push("ignore-translate-flag"), s.ignore.id.push("ignore-translation"), s.language.setLocal(d()), s.request.api.translate = "api/v1/translation", s.request.api.connectTest = "api/v1/translation/connect-test", s.request.api.init = "api/v1/translation/init", s.request.api.language = "api/v1/translation/language", s.request.setHost(l()), s.request.listener.start(), s.listener.start(), s.whole.enableAll(), s.execute());
428
428
  };
429
429
  return ee(async () => {
430
- await le(), await L(), k.value = await m(), h.value = await r();
430
+ await le(), await L(), k.value = await m(), h.value = await c();
431
431
  }), (s, y) => {
432
432
  const u = R, $ = ve;
433
433
  return h.value.length > 0 ? (g(), C(a(Q), {
@@ -440,12 +440,12 @@ const Tt = { class: "text-lg font-medium" }, $t = { id: "data-content" }, Ot = {
440
440
  options: h.value
441
441
  }, {
442
442
  default: o(() => [
443
- c($, {
443
+ r($, {
444
444
  quaternary: "",
445
445
  type: "info"
446
446
  }, {
447
447
  default: o(() => [
448
- k.value ? (g(), H("label", It, j(k.value?.label), 1)) : (g(), C(u, {
448
+ k.value ? (g(), U("label", It, j(k.value?.label), 1)) : (g(), C(u, {
449
449
  key: 0,
450
450
  size: "18"
451
451
  }, {
@@ -472,19 +472,19 @@ const Tt = { class: "text-lg font-medium" }, $t = { id: "data-content" }, Ot = {
472
472
  })
473
473
  ]),
474
474
  _: 1
475
- }, 8, ["options"])) : A("", !0);
475
+ }, 8, ["options"])) : D("", !0);
476
476
  };
477
477
  }
478
- }), Ht = { class: "layout-header" }, Wt = { class: "layout-header-left" }, Ut = { class: "link-text" }, jt = {
478
+ }), Ut = { class: "layout-header" }, Ht = { class: "layout-header-left" }, Wt = { class: "link-text" }, jt = {
479
479
  key: 1,
480
480
  class: "link-text"
481
481
  }, qt = { class: "layout-header-right" }, Ft = {
482
482
  key: 0,
483
483
  class: "layout-header-trigger-min"
484
- }, Kt = { class: "layout-header-trigger layout-header-trigger-min" }, Vt = { class: "layout-header-trigger layout-header-trigger-min" }, Yt = { class: "avatar" }, Xt = /* @__PURE__ */ W({
484
+ }, Kt = { class: "layout-header-trigger layout-header-trigger-min" }, Vt = { class: "layout-header-trigger layout-header-trigger-min" }, Yt = { class: "avatar" }, Xt = /* @__PURE__ */ H({
485
485
  __name: "PHeader",
486
486
  setup(e) {
487
- const n = de(), r = Oe(), m = ie(), d = ce(), l = re(), k = Ne("reloadPage"), h = (i) => d.push({ name: i }), T = V(() => L(l.matched)), L = (i) => i.map((_) => {
487
+ const n = de(), c = Ee(), m = ie(), d = re(), l = ce(), k = Ae("reloadPage"), h = (i) => d.push({ name: i }), T = V(() => L(l.matched)), L = (i) => i.map((_) => {
488
488
  const w = {
489
489
  key: _.name,
490
490
  label: _.meta.title,
@@ -496,7 +496,7 @@ const Tt = { class: "text-lg font-medium" }, $t = { id: "data-content" }, Ot = {
496
496
  return _.children && _.children.length > 0 && (w.children = L(
497
497
  _.children
498
498
  )), w;
499
- }), s = N(!1), y = () => {
499
+ }), s = A(!1), y = () => {
500
500
  document.fullscreenElement ? document.exitFullscreen && (document.exitFullscreen(), s.value = !1) : (document.documentElement.requestFullscreen(), s.value = !0);
501
501
  }, u = V(() => {
502
502
  const i = [];
@@ -510,9 +510,9 @@ const Tt = { class: "text-lg font-medium" }, $t = { id: "data-content" }, Ot = {
510
510
  });
511
511
  }), i;
512
512
  }), $ = (i) => {
513
- i === "logout" ? D() : d.push({ name: i });
514
- }, D = () => {
515
- r.info({
513
+ i === "logout" ? z() : d.push({ name: i });
514
+ }, z = () => {
515
+ c.info({
516
516
  title: "提示",
517
517
  content: "您确定要退出登录吗",
518
518
  positiveText: "确定",
@@ -534,9 +534,9 @@ const Tt = { class: "text-lg font-medium" }, $t = { id: "data-content" }, Ot = {
534
534
  });
535
535
  };
536
536
  return (i, _) => {
537
- const w = Re, M = We, B = be;
538
- return g(), H("div", Ht, [
539
- v("div", Wt, [
537
+ const w = Re, M = He, N = be;
538
+ return g(), U("div", Ut, [
539
+ v("div", Ht, [
540
540
  v("div", {
541
541
  class: "ml-1 layout-header-trigger layout-header-trigger-min",
542
542
  onClick: _[0] || (_[0] = //@ts-ignore
@@ -547,7 +547,7 @@ const Tt = { class: "text-lg font-medium" }, $t = { id: "data-content" }, Ot = {
547
547
  size: "18"
548
548
  }, {
549
549
  default: o(() => [
550
- c(a(mt))
550
+ r(a(mt))
551
551
  ]),
552
552
  _: 1
553
553
  })) : (g(), C(a(R), {
@@ -555,7 +555,7 @@ const Tt = { class: "text-lg font-medium" }, $t = { id: "data-content" }, Ot = {
555
555
  size: "18"
556
556
  }, {
557
557
  default: o(() => [
558
- c(a(_t))
558
+ r(a(_t))
559
559
  ]),
560
560
  _: 1
561
561
  }))
@@ -565,19 +565,19 @@ const Tt = { class: "text-lg font-medium" }, $t = { id: "data-content" }, Ot = {
565
565
  onClick: _[1] || (_[1] = //@ts-ignore
566
566
  (...b) => a(k) && a(k)(...b))
567
567
  }, [
568
- c(a(R), { size: "18" }, {
568
+ r(a(R), { size: "18" }, {
569
569
  default: o(() => [
570
- c(a(Pe))
570
+ r(a(Pe))
571
571
  ]),
572
572
  _: 1
573
573
  })
574
574
  ]),
575
- c(a(Ie), null, {
575
+ r(a(Ie), null, {
576
576
  default: o(() => [
577
- (g(!0), H(Se, null, ct(T.value, (b) => (g(), H(Se, {
577
+ (g(!0), U(Se, null, rt(T.value, (b) => (g(), U(Se, {
578
578
  key: b.label
579
579
  }, [
580
- b.label ? (g(), C(a(He), { key: 0 }, {
580
+ b.label ? (g(), C(a(Ue), { key: 0 }, {
581
581
  default: o(() => [
582
582
  b.children && b.children.length ? (g(), C(a(Q), {
583
583
  key: 0,
@@ -585,32 +585,32 @@ const Tt = { class: "text-lg font-medium" }, $t = { id: "data-content" }, Ot = {
585
585
  onSelect: h
586
586
  }, {
587
587
  default: o(() => [
588
- v("span", Ut, [
589
- b.icon ? (g(), C(he(b.icon), { key: 0 })) : A("", !0),
588
+ v("span", Wt, [
589
+ b.icon ? (g(), C(he(b.icon), { key: 0 })) : D("", !0),
590
590
  v("span", null, j(b.label), 1)
591
591
  ])
592
592
  ]),
593
593
  _: 2
594
- }, 1032, ["options"])) : (g(), H("span", jt, [
595
- b.icon ? (g(), C(he(b.icon), { key: 0 })) : A("", !0),
594
+ }, 1032, ["options"])) : (g(), U("span", jt, [
595
+ b.icon ? (g(), C(he(b.icon), { key: 0 })) : D("", !0),
596
596
  v("span", null, j(b.label), 1)
597
597
  ]))
598
598
  ]),
599
599
  _: 2
600
- }, 1024)) : A("", !0)
600
+ }, 1024)) : D("", !0)
601
601
  ], 64))), 128))
602
602
  ]),
603
603
  _: 1
604
604
  })
605
605
  ]),
606
606
  v("div", qt, [
607
- a(m).state.enableLanguage ? (g(), H("div", Ft, [
608
- c(Ae)
609
- ])) : A("", !0),
607
+ a(m).state.enableLanguage ? (g(), U("div", Ft, [
608
+ r(De)
609
+ ])) : D("", !0),
610
610
  v("div", Kt, [
611
- c(w, { placement: "bottom" }, {
611
+ r(w, { placement: "bottom" }, {
612
612
  trigger: o(() => [
613
- c(a(R), {
613
+ r(a(R), {
614
614
  size: "18",
615
615
  onClick: me(y, ["stop"])
616
616
  }, {
@@ -627,7 +627,7 @@ const Tt = { class: "text-lg font-medium" }, $t = { id: "data-content" }, Ot = {
627
627
  })
628
628
  ]),
629
629
  v("div", Vt, [
630
- c(a(Q), {
630
+ r(a(Q), {
631
631
  trigger: "hover",
632
632
  onSelect: $,
633
633
  options: u.value
@@ -635,8 +635,8 @@ const Tt = { class: "text-lg font-medium" }, $t = { id: "data-content" }, Ot = {
635
635
  default: o(() => [
636
636
  v("div", Yt, [
637
637
  v("span", null, j(a(m).state.uname), 1),
638
- c(M, { vertical: "" }),
639
- c(B, {
638
+ r(M, { vertical: "" }),
639
+ r(N, {
640
640
  round: "",
641
641
  src: a(m).state.avatar
642
642
  }, null, 8, ["src"])
@@ -649,18 +649,18 @@ const Tt = { class: "text-lg font-medium" }, $t = { id: "data-content" }, Ot = {
649
649
  ]);
650
650
  };
651
651
  }
652
- }), Jt = /* @__PURE__ */ F(Xt, [["__scopeId", "data-v-563e4e55"]]), Zt = { class: "mt-1" }, Gt = /* @__PURE__ */ W({
652
+ }), Jt = /* @__PURE__ */ F(Xt, [["__scopeId", "data-v-563e4e55"]]), Zt = { class: "mt-1" }, Gt = /* @__PURE__ */ H({
653
653
  __name: "PContent",
654
654
  props: {
655
655
  loading: { type: Boolean, default: !1 }
656
656
  },
657
657
  setup(e) {
658
- return (n, r) => {
659
- const m = Be("RouterView");
660
- return g(), H("div", Zt, [
661
- e.loading ? A("", !0) : (g(), C(m, { key: 0 }, {
658
+ return (n, c) => {
659
+ const m = Ne("RouterView");
660
+ return g(), U("div", Zt, [
661
+ e.loading ? D("", !0) : (g(), C(m, { key: 0 }, {
662
662
  default: o(({ Component: d, route: l }) => [
663
- (g(), C(rt, null, [
663
+ (g(), C(ct, null, [
664
664
  (g(), C(he(d), {
665
665
  key: l.fullPath
666
666
  }))
@@ -671,14 +671,14 @@ const Tt = { class: "text-lg font-medium" }, $t = { id: "data-content" }, Ot = {
671
671
  ]);
672
672
  };
673
673
  }
674
- }), Qt = { class: "tabs-view-main" }, ea = ["id", "onClick", "onContextmenu"], ta = { class: "tabs-close" }, aa = { class: "tabs-close-btn" }, na = /* @__PURE__ */ W({
674
+ }), Qt = { class: "tabs-view-main" }, ea = ["id", "onClick", "onContextmenu"], ta = { class: "tabs-close" }, aa = { class: "tabs-close-btn" }, na = /* @__PURE__ */ H({
675
675
  __name: "PTabs",
676
676
  setup(e) {
677
677
  it((t) => ({
678
- v4a1a98ea: r.value,
678
+ v4a1a98ea: c.value,
679
679
  v271d846e: m.value
680
680
  }));
681
- const n = Ue(), r = V(() => n.value.cardColor), m = V(() => n.value.textColor1), d = de(), l = re(), k = ce(), h = N(null), T = N(null), L = N(!1), s = ie(), y = V(() => s.state.tabs), u = we({
681
+ const n = We(), c = V(() => n.value.cardColor), m = V(() => n.value.textColor1), d = de(), l = ce(), k = re(), h = A(null), T = A(null), L = A(!1), s = ie(), y = V(() => s.state.tabs), u = we({
682
682
  activeKey: l.fullPath,
683
683
  scrollable: !0,
684
684
  dropdownX: 0,
@@ -686,9 +686,9 @@ const Tt = { class: "text-lg font-medium" }, $t = { id: "data-content" }, Ot = {
686
686
  showDropdown: !1,
687
687
  isMultiHeaderFixed: !0,
688
688
  multiTabsSetting: !0
689
- }), $ = ["Login", "Redirect", "ErrorPage"], D = (t) => {
690
- const { fullPath: f, hash: p, meta: E, name: K, params: ne, path: oe, query: ue } = t;
691
- return { fullPath: f, hash: p, meta: E, name: K, params: ne, path: oe, query: ue };
689
+ }), $ = ["Login", "Redirect", "ErrorPage"], z = (t) => {
690
+ const { fullPath: f, hash: p, meta: O, name: K, params: ne, path: oe, query: ue } = t;
691
+ return { fullPath: f, hash: p, meta: O, name: K, params: ne, path: oe, query: ue };
692
692
  }, i = V(() => {
693
693
  const p = s.state.collapsed ? "64px" : "272px";
694
694
  return {
@@ -701,30 +701,30 @@ const Tt = { class: "text-lg font-medium" }, $t = { id: "data-content" }, Ot = {
701
701
  {
702
702
  label: "刷新当前",
703
703
  key: "1",
704
- icon: () => z(R, null, { default: () => z(Pe) })
704
+ icon: () => B(R, null, { default: () => B(Pe) })
705
705
  },
706
706
  {
707
707
  label: "关闭当前",
708
708
  key: "2",
709
709
  disabled: L.value || t,
710
- icon: () => z(R, null, { default: () => z($e) })
710
+ icon: () => B(R, null, { default: () => B($e) })
711
711
  },
712
712
  {
713
713
  label: "关闭其他",
714
714
  key: "3",
715
715
  disabled: t,
716
- icon: () => z(R, null, { default: () => z(yt) })
716
+ icon: () => B(R, null, { default: () => B(yt) })
717
717
  },
718
718
  {
719
719
  label: "关闭全部",
720
720
  key: "4",
721
721
  disabled: t,
722
- icon: () => z(R, null, { default: () => z(wt) })
722
+ icon: () => B(R, null, { default: () => B(wt) })
723
723
  }
724
724
  ];
725
725
  }), w = () => {
726
726
  let t = [];
727
- const f = D(l);
727
+ const f = z(l);
728
728
  try {
729
729
  if (s.state.cacheTabs) {
730
730
  const p = localStorage.getItem("TABS_ROUTES");
@@ -739,10 +739,10 @@ const Tt = { class: "text-lg font-medium" }, $t = { id: "data-content" }, Ot = {
739
739
  }, M = (t) => {
740
740
  const f = k.getRoutes();
741
741
  t.forEach((p) => {
742
- const E = f.find((K) => K.path === p.path);
743
- E && (p.meta = E.meta || p.meta, p.name = E.name || p.name);
742
+ const O = f.find((K) => K.path === p.path);
743
+ O && (p.meta = O.meta || p.meta, p.name = O.name || p.name);
744
744
  }), s.state.cacheTabs && localStorage.setItem("TABS_ROUTES", JSON.stringify(t));
745
- }, B = () => {
745
+ }, N = () => {
746
746
  const t = w();
747
747
  M(t), s.initTabs(t);
748
748
  }, b = async (t) => {
@@ -771,7 +771,7 @@ const Tt = { class: "text-lg font-medium" }, $t = { id: "data-content" }, Ot = {
771
771
  );
772
772
  t && t.components?.default?.name;
773
773
  }
774
- }, O = (t) => {
774
+ }, E = (t) => {
775
775
  if (y.value.length === 1)
776
776
  return d.warning("这已经是最后一页,不能再关闭了!");
777
777
  if (S(), s.closeCurrentTab(t), u.activeKey === t.fullPath) {
@@ -780,13 +780,13 @@ const Tt = { class: "text-lg font-medium" }, $t = { id: "data-content" }, Ot = {
780
780
  }
781
781
  b();
782
782
  }, I = (t) => {
783
- const { fullPath: f } = t, p = y.value.find((E) => E.fullPath == f);
784
- O(p);
783
+ const { fullPath: f } = t, p = y.value.find((O) => O.fullPath == f);
784
+ E(p);
785
785
  }, q = (t) => {
786
786
  s.closeOtherTabs(t), u.activeKey = t.fullPath, k.replace(t.fullPath), b();
787
787
  }, G = () => {
788
788
  s.closeAllTabs(), b();
789
- }, X = Ne("reloadPage"), ae = (t) => {
789
+ }, X = Ae("reloadPage"), ae = (t) => {
790
790
  switch (t) {
791
791
  //刷新
792
792
  case "1":
@@ -794,7 +794,7 @@ const Tt = { class: "text-lg font-medium" }, $t = { id: "data-content" }, Ot = {
794
794
  break;
795
795
  //关闭
796
796
  case "2":
797
- O(l);
797
+ E(l);
798
798
  break;
799
799
  //关闭其他
800
800
  case "3":
@@ -807,8 +807,8 @@ const Tt = { class: "text-lg font-medium" }, $t = { id: "data-content" }, Ot = {
807
807
  }
808
808
  b(), u.showDropdown = !1;
809
809
  }, J = (t, f) => {
810
- const p = h.value.scrollLeft, E = f > 0 && p + f >= t || f < 0 && p + f <= t ? t : p + f;
811
- if (h.value && h.value.scrollTo(E, 0), E !== t)
810
+ const p = h.value.scrollLeft, O = f > 0 && p + f >= t || f < 0 && p + f <= t ? t : p + f;
811
+ if (h.value && h.value.scrollTo(O, 0), O !== t)
812
812
  return window.requestAnimationFrame(() => J(t, f));
813
813
  }, fe = () => {
814
814
  const t = h.value.offsetWidth, f = h.value.scrollLeft;
@@ -818,8 +818,8 @@ const Tt = { class: "text-lg font-medium" }, $t = { id: "data-content" }, Ot = {
818
818
  }, ge = () => {
819
819
  const t = h.value.offsetWidth, f = h.value.scrollWidth, p = h.value.scrollLeft;
820
820
  if (f - p <= t) return;
821
- const E = f - p > t * 2 ? p + t : f - t;
822
- J(E, (E - p) / 20);
821
+ const O = f - p > t * 2 ? p + t : f - t;
822
+ J(O, (O - p) / 20);
823
823
  };
824
824
  return window.addEventListener("beforeunload", () => {
825
825
  localStorage.setItem("TABS_ROUTES", JSON.stringify(y.value));
@@ -830,15 +830,15 @@ const Tt = { class: "text-lg font-medium" }, $t = { id: "data-content" }, Ot = {
830
830
  u.isMultiHeaderFixed = f >= 64;
831
831
  },
832
832
  !0
833
- ), ze(
833
+ ), Be(
834
834
  () => l.fullPath,
835
835
  (t) => {
836
- $.includes(l.name) || (u.activeKey = t, s.addTab(D(l)), b(!0));
836
+ $.includes(l.name) || (u.activeKey = t, s.addTab(z(l)), b(!0));
837
837
  },
838
838
  { immediate: !0 }
839
- ), B(), ee(() => te()), (t, f) => (g(), H("div", {
839
+ ), N(), ee(() => te()), (t, f) => (g(), U("div", {
840
840
  class: "box-border tabs-view tabs-view-fix tabs-view-default-background",
841
- style: De(i.value)
841
+ style: ze(i.value)
842
842
  }, [
843
843
  v("div", Qt, [
844
844
  v("div", {
@@ -850,12 +850,12 @@ const Tt = { class: "text-lg font-medium" }, $t = { id: "data-content" }, Ot = {
850
850
  class: se(["tabs-card-prev", { "tabs-card-prev-hide": !u.scrollable }]),
851
851
  onClick: fe
852
852
  }, [
853
- c(a(R), {
853
+ r(a(R), {
854
854
  size: "16",
855
855
  color: "#515a6e"
856
856
  }, {
857
857
  default: o(() => [
858
- c(a(Pt))
858
+ r(a(Pt))
859
859
  ]),
860
860
  _: 1
861
861
  })
@@ -864,12 +864,12 @@ const Tt = { class: "text-lg font-medium" }, $t = { id: "data-content" }, Ot = {
864
864
  class: se(["tabs-card-next", { "tabs-card-next-hide": !u.scrollable }]),
865
865
  onClick: ge
866
866
  }, [
867
- c(a(R), {
867
+ r(a(R), {
868
868
  size: "16",
869
869
  color: "#515a6e"
870
870
  }, {
871
871
  default: o(() => [
872
- c(a(kt))
872
+ r(a(kt))
873
873
  ]),
874
874
  _: 1
875
875
  })
@@ -879,7 +879,7 @@ const Tt = { class: "text-lg font-medium" }, $t = { id: "data-content" }, Ot = {
879
879
  ref: h,
880
880
  class: "tabs-card-scroll"
881
881
  }, [
882
- c(a(St), {
882
+ r(a(St), {
883
883
  list: y.value,
884
884
  animation: "300",
885
885
  "item-key": "fullPath",
@@ -890,17 +890,17 @@ const Tt = { class: "text-lg font-medium" }, $t = { id: "data-content" }, Ot = {
890
890
  v("div", {
891
891
  id: `tag${p.fullPath.split("/").join("/")}`,
892
892
  class: se(["tabs-card-scroll-item", { "active-item": u.activeKey === p.fullPath }]),
893
- onClick: me((E) => P(p), ["stop"]),
894
- onContextmenu: (E) => x(E, p)
893
+ onClick: me((O) => P(p), ["stop"]),
894
+ onContextmenu: (O) => x(O, p)
895
895
  }, [
896
896
  v("span", null, j(p.meta.title), 1),
897
- p.meta.affix ? A("", !0) : (g(), C(a(R), {
897
+ p.meta.affix ? D("", !0) : (g(), C(a(R), {
898
898
  key: 0,
899
899
  size: "14",
900
- onClick: me((E) => I(p), ["stop"])
900
+ onClick: me((O) => I(p), ["stop"])
901
901
  }, {
902
902
  default: o(() => [
903
- c(a($e))
903
+ r(a($e))
904
904
  ]),
905
905
  _: 1
906
906
  }, 8, ["onClick"]))
@@ -911,7 +911,7 @@ const Tt = { class: "text-lg font-medium" }, $t = { id: "data-content" }, Ot = {
911
911
  ], 512)
912
912
  ], 2),
913
913
  v("div", ta, [
914
- c(a(Q), {
914
+ r(a(Q), {
915
915
  trigger: "hover",
916
916
  onSelect: ae,
917
917
  placement: "bottom-end",
@@ -919,12 +919,12 @@ const Tt = { class: "text-lg font-medium" }, $t = { id: "data-content" }, Ot = {
919
919
  }, {
920
920
  default: o(() => [
921
921
  v("div", aa, [
922
- c(a(R), {
922
+ r(a(R), {
923
923
  size: "16",
924
924
  color: "#515a6e"
925
925
  }, {
926
926
  default: o(() => [
927
- c(a(xt))
927
+ r(a(xt))
928
928
  ]),
929
929
  _: 1
930
930
  })
@@ -933,7 +933,7 @@ const Tt = { class: "text-lg font-medium" }, $t = { id: "data-content" }, Ot = {
933
933
  _: 1
934
934
  }, 8, ["options"])
935
935
  ]),
936
- c(a(Q), {
936
+ r(a(Q), {
937
937
  show: u.showDropdown,
938
938
  x: u.dropdownX,
939
939
  y: u.dropdownY,
@@ -945,23 +945,23 @@ const Tt = { class: "text-lg font-medium" }, $t = { id: "data-content" }, Ot = {
945
945
  ])
946
946
  ], 4));
947
947
  }
948
- }), oa = /* @__PURE__ */ F(na, [["__scopeId", "data-v-e37d2460"]]), sa = /* @__PURE__ */ W({
948
+ }), oa = /* @__PURE__ */ F(na, [["__scopeId", "data-v-e37d2460"]]), sa = /* @__PURE__ */ H({
949
949
  __name: "PMenus",
950
950
  setup(e) {
951
- const n = re(), r = ce(), m = ie(), d = N(n.name), l = N(
951
+ const n = ce(), c = re(), m = ie(), d = A(n.name), l = A(
952
952
  n.matched && n.matched.length ? n.matched.map((u) => u.name) : []
953
- ), k = N([]), h = (u) => {
954
- /http(s)?:/.test(u) ? window.open(u) : r.push({ name: u });
953
+ ), k = A([]), h = (u) => {
954
+ /http(s)?:/.test(u) ? window.open(u) : c.push({ name: u });
955
955
  }, T = (u) => {
956
956
  if (!u) return;
957
- const $ = u.find((D) => l.value.indexOf(D) === -1);
957
+ const $ = u.find((z) => l.value.indexOf(z) === -1);
958
958
  l.value = $ ? [$] : [];
959
959
  }, L = () => {
960
960
  const u = n.matched;
961
- l.value = u.map((D) => D.name);
961
+ l.value = u.map((z) => z.name);
962
962
  const $ = n.meta?.activeMenu || "";
963
963
  d.value = $ || n.name;
964
- }, s = (u, $ = [], D = !1) => {
964
+ }, s = (u, $ = [], z = !1) => {
965
965
  const i = [], _ = [
966
966
  "/:path(.*)*",
967
967
  "/redirect",
@@ -972,36 +972,36 @@ const Tt = { class: "text-lg font-medium" }, $t = { id: "data-content" }, Ot = {
972
972
  if (!u || u.length === 0)
973
973
  return i;
974
974
  u = u.sort((w, M) => {
975
- let B = (M.children?.length ? 1 : 0) - (w.children?.length ? 1 : 0);
976
- return B === 0 && (B = (w.meta?.sort ?? 0) - (M.meta?.sort ?? 0)), B;
975
+ let N = (M.children?.length ? 1 : 0) - (w.children?.length ? 1 : 0);
976
+ return N === 0 && (N = (w.meta?.sort ?? 0) - (M.meta?.sort ?? 0)), N;
977
977
  });
978
978
  for (const w of u) {
979
- if (D || w.meta?.hidden || _.includes(w.path.toLowerCase())) {
979
+ if (z || w.meta?.hidden || _.includes(w.path.toLowerCase())) {
980
980
  $.push(w.name), s(w.children || [], $, !0);
981
981
  continue;
982
982
  }
983
983
  const M = w.children?.filter(
984
984
  (te) => !te.meta?.hidden
985
- ) || [], B = w.meta?.alwaysShow != !0 && M.length === 1, b = B ? M[0] : w, Z = {
985
+ ) || [], N = w.meta?.alwaysShow != !0 && M.length === 1, b = N ? M[0] : w, Z = {
986
986
  key: b.name,
987
987
  label: b.meta?.title,
988
988
  affix: b.meta?.affix,
989
- sort: B ? w.meta?.sort ?? 0 : b.meta?.sort ?? 0,
989
+ sort: N ? w.meta?.sort ?? 0 : b.meta?.sort ?? 0,
990
990
  path: b.path,
991
991
  redirect: b.redirect,
992
- icon: B ? w.meta?.icon : b.meta?.icon,
992
+ icon: N ? w.meta?.icon : b.meta?.icon,
993
993
  permissions: b.meta?.permissions,
994
994
  meta: b.meta,
995
995
  children: void 0
996
996
  };
997
- $.includes(b.name) || (i.push(Z), $.push(b.name)), b.children?.length > 0 && (Z.children = s(b.children, $, D));
997
+ $.includes(b.name) || (i.push(Z), $.push(b.name)), b.children?.length > 0 && (Z.children = s(b.children, $, z));
998
998
  }
999
999
  return i;
1000
1000
  }, y = () => {
1001
- const u = r.getRoutes();
1001
+ const u = c.getRoutes();
1002
1002
  k.value = s(u);
1003
1003
  };
1004
- return ze(
1004
+ return Be(
1005
1005
  () => n.fullPath,
1006
1006
  () => {
1007
1007
  L();
@@ -1023,12 +1023,12 @@ const Tt = { class: "text-lg font-medium" }, $t = { id: "data-content" }, Ot = {
1023
1023
  "onUpdate:expandedKeys": T
1024
1024
  }, null, 8, ["options", "collapsed", "expanded-keys", "value"]));
1025
1025
  }
1026
- }), la = { class: "layout-content-main layout-content-main-fix" }, ca = { class: "main-view main-view-fix" }, ra = /* @__PURE__ */ W({
1026
+ }), la = { class: "layout-content-main layout-content-main-fix" }, ra = { class: "main-view main-view-fix" }, ca = /* @__PURE__ */ H({
1027
1027
  __name: "PLayout",
1028
1028
  setup(e) {
1029
- const n = ie(), r = N(!1);
1029
+ const n = ie(), c = A(!1);
1030
1030
  return ut("reloadPage", () => {
1031
- r.value = !0, le(() => r.value = !1);
1031
+ c.value = !0, le(() => c.value = !1);
1032
1032
  }), (d, l) => {
1033
1033
  const k = Ye;
1034
1034
  return g(), C(a(Le), {
@@ -1037,7 +1037,7 @@ const Tt = { class: "text-lg font-medium" }, $t = { id: "data-content" }, Ot = {
1037
1037
  position: "absolute"
1038
1038
  }, {
1039
1039
  default: o(() => [
1040
- c(a(qe), {
1040
+ r(a(qe), {
1041
1041
  class: "layout-sider",
1042
1042
  inverted: "",
1043
1043
  "show-trigger": "bar",
@@ -1052,36 +1052,36 @@ const Tt = { class: "text-lg font-medium" }, $t = { id: "data-content" }, Ot = {
1052
1052
  onExpand: a(n).collapse
1053
1053
  }, {
1054
1054
  default: o(() => [
1055
- c(a(Fe), { vertical: "" }, {
1055
+ r(a(Fe), { vertical: "" }, {
1056
1056
  default: o(() => [
1057
- c(Dt),
1058
- c(sa)
1057
+ r(zt),
1058
+ r(sa)
1059
1059
  ]),
1060
1060
  _: 1
1061
1061
  })
1062
1062
  ]),
1063
1063
  _: 1
1064
1064
  }, 8, ["collapsed", "onCollapse", "onExpand"]),
1065
- c(a(Le), null, {
1065
+ r(a(Le), null, {
1066
1066
  default: o(() => [
1067
- c(a(Ke), { position: "absolute" }, {
1067
+ r(a(Ke), { position: "absolute" }, {
1068
1068
  default: o(() => [
1069
- c(Jt)
1069
+ r(Jt)
1070
1070
  ]),
1071
1071
  _: 1
1072
1072
  }),
1073
- c(a(Ve), { class: "layout-content layout-default-background" }, {
1073
+ r(a(Ve), { class: "layout-content layout-default-background" }, {
1074
1074
  default: o(() => [
1075
1075
  v("div", la, [
1076
- c(oa),
1077
- v("div", ca, [
1078
- c(Gt, { loading: r.value }, null, 8, ["loading"])
1076
+ r(oa),
1077
+ v("div", ra, [
1078
+ r(Gt, { loading: c.value }, null, 8, ["loading"])
1079
1079
  ])
1080
1080
  ])
1081
1081
  ]),
1082
1082
  _: 1
1083
1083
  }),
1084
- c(k, {
1084
+ r(k, {
1085
1085
  right: 20,
1086
1086
  class: "z-50"
1087
1087
  })
@@ -1093,12 +1093,12 @@ const Tt = { class: "text-lg font-medium" }, $t = { id: "data-content" }, Ot = {
1093
1093
  });
1094
1094
  };
1095
1095
  }
1096
- }), ia = /* @__PURE__ */ F(ra, [["__scopeId", "data-v-0bac2e7d"]]), ua = {};
1096
+ }), ia = /* @__PURE__ */ F(ca, [["__scopeId", "data-v-0bac2e7d"]]), ua = {};
1097
1097
  function da(e, n) {
1098
- const r = Be("router-view");
1099
- return g(), C(r);
1098
+ const c = Ne("router-view");
1099
+ return g(), C(c);
1100
1100
  }
1101
- const fa = /* @__PURE__ */ F(ua, [["render", da]]), ga = U(fa), pa = U(ia), ha = /* @__PURE__ */ W({
1101
+ const fa = /* @__PURE__ */ F(ua, [["render", da]]), ga = W(fa), pa = W(ia), ha = /* @__PURE__ */ H({
1102
1102
  __name: "PApplication",
1103
1103
  props: {
1104
1104
  theme: {},
@@ -1115,7 +1115,7 @@ const fa = /* @__PURE__ */ F(ua, [["render", da]]), ga = U(fa), pa = U(ia), ha =
1115
1115
  } }
1116
1116
  },
1117
1117
  setup(e) {
1118
- return (n, r) => {
1118
+ return (n, c) => {
1119
1119
  const m = Xe;
1120
1120
  return g(), C(m, {
1121
1121
  locale: a(Ze),
@@ -1124,11 +1124,11 @@ const fa = /* @__PURE__ */ F(ua, [["render", da]]), ga = U(fa), pa = U(ia), ha =
1124
1124
  "date-locale": a(Je)
1125
1125
  }, {
1126
1126
  default: o(() => [
1127
- c(a(Ge), null, {
1127
+ r(a(Ge), null, {
1128
1128
  default: o(() => [
1129
- c(a(Qe), null, {
1129
+ r(a(Qe), null, {
1130
1130
  default: o(() => [
1131
- c(a(et), null, {
1131
+ r(a(et), null, {
1132
1132
  default: o(() => [
1133
1133
  Y(n.$slots, "default")
1134
1134
  ]),
@@ -1145,7 +1145,7 @@ const fa = /* @__PURE__ */ F(ua, [["render", da]]), ga = U(fa), pa = U(ia), ha =
1145
1145
  }, 8, ["locale", "theme", "theme-overrides", "date-locale"]);
1146
1146
  };
1147
1147
  }
1148
- }), ma = U(ha), _a = /* @__PURE__ */ W({
1148
+ }), ma = W(ha), _a = /* @__PURE__ */ H({
1149
1149
  __name: "PModal",
1150
1150
  props: {
1151
1151
  saveBtnText: { default: "保存" },
@@ -1158,11 +1158,14 @@ const fa = /* @__PURE__ */ F(ua, [["render", da]]), ga = U(fa), pa = U(ia), ha =
1158
1158
  visible: { type: Boolean },
1159
1159
  loading: { type: Boolean },
1160
1160
  onSave: {},
1161
- onClose: {}
1161
+ onClose: {},
1162
+ onAfterEnter: {},
1163
+ onAfterLeave: {},
1164
+ onUpdateShow: {}
1162
1165
  },
1163
1166
  emits: ["update:visible", "update:loading"],
1164
- setup(e, { expose: n, emit: r }) {
1165
- const m = de(), d = e, l = r, k = async () => {
1167
+ setup(e, { expose: n, emit: c }) {
1168
+ const m = de(), d = e, l = c, k = async () => {
1166
1169
  l("update:loading", !0);
1167
1170
  try {
1168
1171
  d.onSave && await d.onSave() && h();
@@ -1188,7 +1191,7 @@ const fa = /* @__PURE__ */ F(ua, [["render", da]]), ga = U(fa), pa = U(ia), ha =
1188
1191
  l("update:visible", !1), l("update:loading", !1);
1189
1192
  }
1190
1193
  }), (y, u) => {
1191
- const $ = at, D = ve, i = _e;
1194
+ const $ = at, z = ve, i = _e;
1192
1195
  return g(), C(a(tt), dt({
1193
1196
  ref: "$modal",
1194
1197
  preset: "card"
@@ -1200,8 +1203,11 @@ const fa = /* @__PURE__ */ F(ua, [["render", da]]), ga = U(fa), pa = U(ia), ha =
1200
1203
  "close-on-esc": !1,
1201
1204
  "mask-closable": !1,
1202
1205
  bordered: !1,
1203
- style: { width: `${d.width}px` },
1204
- onClose: h
1206
+ style: { width: `${d.width}px`, height: `${d.height}px` },
1207
+ onClose: h,
1208
+ onAfterEnter: d.onAfterEnter,
1209
+ onAfterLeave: d.onAfterLeave,
1210
+ onUpdateShow: d.onUpdateShow
1205
1211
  }), {
1206
1212
  header: o(() => [
1207
1213
  y.$slots.header ? Y(y.$slots, "header", { key: 0 }) : d.title ? (g(), C($, { key: 1 }, {
@@ -1209,7 +1215,7 @@ const fa = /* @__PURE__ */ F(ua, [["render", da]]), ga = U(fa), pa = U(ia), ha =
1209
1215
  pe(j(e.title), 1)
1210
1216
  ]),
1211
1217
  _: 1
1212
- })) : A("", !0)
1218
+ })) : D("", !0)
1213
1219
  ]),
1214
1220
  "header-extra": o(() => [
1215
1221
  Y(y.$slots, "header-extra")
@@ -1217,7 +1223,7 @@ const fa = /* @__PURE__ */ F(ua, [["render", da]]), ga = U(fa), pa = U(ia), ha =
1217
1223
  default: o(() => [
1218
1224
  v("div", {
1219
1225
  class: "overflow-y-auto overflow-hidden mt-5",
1220
- style: De({ maxHeight: `${d.height}px` })
1226
+ style: ze({ maxHeight: `${d.height}px` })
1221
1227
  }, [
1222
1228
  Y(y.$slots, "default")
1223
1229
  ], 4)
@@ -1226,9 +1232,9 @@ const fa = /* @__PURE__ */ F(ua, [["render", da]]), ga = U(fa), pa = U(ia), ha =
1226
1232
  Y(y.$slots, "footer")
1227
1233
  ]),
1228
1234
  action: o(() => [
1229
- c(i, { justify: "end" }, {
1235
+ r(i, { justify: "end" }, {
1230
1236
  default: o(() => [
1231
- d.hideSaveBtn ? A("", !0) : (g(), C(D, {
1237
+ d.hideSaveBtn ? D("", !0) : (g(), C(z, {
1232
1238
  key: 0,
1233
1239
  type: "primary",
1234
1240
  loading: e.loading,
@@ -1240,7 +1246,7 @@ const fa = /* @__PURE__ */ F(ua, [["render", da]]), ga = U(fa), pa = U(ia), ha =
1240
1246
  _: 1
1241
1247
  }, 8, ["loading"])),
1242
1248
  Y(y.$slots, "action-extra", { loading: e.loading }),
1243
- d.hideCancelBtn ? A("", !0) : (g(), C(D, {
1249
+ d.hideCancelBtn ? D("", !0) : (g(), C(z, {
1244
1250
  key: 1,
1245
1251
  onClick: T,
1246
1252
  loading: e.loading
@@ -1255,28 +1261,28 @@ const fa = /* @__PURE__ */ F(ua, [["render", da]]), ga = U(fa), pa = U(ia), ha =
1255
1261
  })
1256
1262
  ]),
1257
1263
  _: 3
1258
- }, 16, ["show", "style"]);
1264
+ }, 16, ["show", "style", "onAfterEnter", "onAfterLeave", "onUpdateShow"]);
1259
1265
  };
1260
1266
  }
1261
- }), va = U(_a), ba = U(Ae), ya = W({
1267
+ }), va = W(_a), ba = W(De), ya = H({
1262
1268
  name: "Redirect",
1263
1269
  setup() {
1264
- const e = re(), n = ce();
1270
+ const e = ce(), n = re();
1265
1271
  return ft(() => {
1266
- const { params: r, query: m } = e, { path: d } = r;
1272
+ const { params: c, query: m } = e, { path: d } = c;
1267
1273
  n.replace({
1268
1274
  path: "/" + (Array.isArray(d) ? d.join("/") : d),
1269
1275
  query: m
1270
1276
  });
1271
1277
  }), () => /* @__PURE__ */ React.createElement(nt, null);
1272
1278
  }
1273
- }), wa = U(ya), Pa = { class: "frame" }, ka = ["src"], xa = /* @__PURE__ */ W({
1279
+ }), wa = W(ya), Pa = { class: "frame" }, ka = ["src"], xa = /* @__PURE__ */ H({
1274
1280
  __name: "PIframe",
1275
1281
  setup(e) {
1276
- const n = re(), r = N(!1), m = N(null), d = N("");
1282
+ const n = ce(), c = A(!1), m = A(null), d = A("");
1277
1283
  a(n.meta)?.frameSrc && (d.value = a(n.meta)?.frameSrc);
1278
1284
  function l() {
1279
- r.value = !1;
1285
+ c.value = !1;
1280
1286
  }
1281
1287
  function k() {
1282
1288
  le(() => {
@@ -1291,10 +1297,10 @@ const fa = /* @__PURE__ */ F(ua, [["render", da]]), ga = U(fa), pa = U(ia), ha =
1291
1297
  });
1292
1298
  }
1293
1299
  return ee(() => {
1294
- r.value = !0, k();
1300
+ c.value = !0, k();
1295
1301
  }), (h, T) => {
1296
1302
  const L = ot;
1297
- return g(), C(L, { show: r.value }, {
1303
+ return g(), C(L, { show: c.value }, {
1298
1304
  default: o(() => [
1299
1305
  v("div", Pa, [
1300
1306
  v("iframe", {
@@ -1309,7 +1315,7 @@ const fa = /* @__PURE__ */ F(ua, [["render", da]]), ga = U(fa), pa = U(ia), ha =
1309
1315
  }, 8, ["show"]);
1310
1316
  };
1311
1317
  }
1312
- }), La = /* @__PURE__ */ F(xa, [["__scopeId", "data-v-161a378e"]]), Ca = U(La), Sa = { class: "border border-gray-100 rounded-lg" }, Ta = { class: "text-xl font-semibold text-gray-800" }, $a = { class: "text-sm text-gray-500 mt-1" }, Oa = /* @__PURE__ */ W({
1318
+ }), La = /* @__PURE__ */ F(xa, [["__scopeId", "data-v-161a378e"]]), Ca = W(La), Sa = { class: "border border-gray-100 rounded-lg" }, Ta = { class: "text-xl font-semibold text-gray-800" }, $a = { class: "text-sm text-gray-500 mt-1" }, Ea = /* @__PURE__ */ H({
1313
1319
  __name: "PPage",
1314
1320
  props: {
1315
1321
  icon: { type: Object, required: !1, default: () => Lt },
@@ -1318,9 +1324,9 @@ const fa = /* @__PURE__ */ F(ua, [["render", da]]), ga = U(fa), pa = U(ia), ha =
1318
1324
  },
1319
1325
  setup(e) {
1320
1326
  const n = e;
1321
- return (r, m) => {
1322
- const d = R, l = be, k = _e, h = Ee;
1323
- return g(), H("div", Sa, [
1327
+ return (c, m) => {
1328
+ const d = R, l = be, k = _e, h = Oe;
1329
+ return g(), U("div", Sa, [
1324
1330
  n.title ? (g(), C(h, {
1325
1331
  key: 0,
1326
1332
  class: "mb-4",
@@ -1328,12 +1334,12 @@ const fa = /* @__PURE__ */ F(ua, [["render", da]]), ga = U(fa), pa = U(ia), ha =
1328
1334
  "content-class": "py-4"
1329
1335
  }, {
1330
1336
  default: o(() => [
1331
- c(k, {
1337
+ r(k, {
1332
1338
  align: "center",
1333
1339
  justify: "space-between"
1334
1340
  }, {
1335
1341
  default: o(() => [
1336
- c(k, {
1342
+ r(k, {
1337
1343
  align: "center",
1338
1344
  size: 16
1339
1345
  }, {
@@ -1344,14 +1350,14 @@ const fa = /* @__PURE__ */ F(ua, [["render", da]]), ga = U(fa), pa = U(ia), ha =
1344
1350
  class: "bg-linear-to-br from-blue-500 to-indigo-600"
1345
1351
  }, {
1346
1352
  default: o(() => [
1347
- c(d, {
1353
+ r(d, {
1348
1354
  size: 24,
1349
1355
  component: n.icon,
1350
1356
  color: "#fff"
1351
1357
  }, null, 8, ["component"])
1352
1358
  ]),
1353
1359
  _: 1
1354
- })) : A("", !0),
1360
+ })) : D("", !0),
1355
1361
  v("div", null, [
1356
1362
  v("div", Ta, j(n.title), 1),
1357
1363
  v("div", $a, j(n.subtitle ?? n.title + "主页"), 1)
@@ -1364,65 +1370,65 @@ const fa = /* @__PURE__ */ F(ua, [["render", da]]), ga = U(fa), pa = U(ia), ha =
1364
1370
  })
1365
1371
  ]),
1366
1372
  _: 1
1367
- })) : A("", !0),
1368
- r.$slots.search ? (g(), C(h, {
1373
+ })) : D("", !0),
1374
+ c.$slots.search ? (g(), C(h, {
1369
1375
  key: 1,
1370
1376
  class: "mb-4",
1371
1377
  "content-class": "flex flex-row gap-2",
1372
1378
  bordered: !1
1373
1379
  }, {
1374
1380
  default: o(() => [
1375
- Y(r.$slots, "search")
1381
+ Y(c.$slots, "search")
1376
1382
  ]),
1377
1383
  _: 3
1378
- })) : A("", !0),
1379
- r.$slots.default ? (g(), C(h, {
1384
+ })) : D("", !0),
1385
+ c.$slots.default ? (g(), C(h, {
1380
1386
  key: 2,
1381
1387
  "content-class": "flex flex-row gap-2 p-0!",
1382
1388
  bordered: !1
1383
1389
  }, {
1384
1390
  default: o(() => [
1385
- Y(r.$slots, "default")
1391
+ Y(c.$slots, "default")
1386
1392
  ]),
1387
1393
  _: 3
1388
- })) : A("", !0)
1394
+ })) : D("", !0)
1389
1395
  ]);
1390
1396
  };
1391
1397
  }
1392
- }), Ea = U(Oa), Ra = {}, Na = { class: "flex flex-col justify-center page-container" };
1393
- function Ba(e, n) {
1394
- const r = ye;
1395
- return g(), H("div", Na, [
1396
- c(r, {
1398
+ }), Oa = W(Ea), Ra = {}, Aa = { class: "flex flex-col justify-center page-container" };
1399
+ function Na(e, n) {
1400
+ const c = ye;
1401
+ return g(), U("div", Aa, [
1402
+ r(c, {
1397
1403
  status: "500",
1398
1404
  title: "服务器错误",
1399
1405
  description: "抱歉,服务器出错了"
1400
1406
  })
1401
1407
  ]);
1402
1408
  }
1403
- const za = /* @__PURE__ */ F(Ra, [["render", Ba], ["__scopeId", "data-v-89cb65c7"]]), Da = {}, Aa = { class: "flex flex-col justify-center page-container" };
1409
+ const Ba = /* @__PURE__ */ F(Ra, [["render", Na], ["__scopeId", "data-v-89cb65c7"]]), za = {}, Da = { class: "flex flex-col justify-center page-container" };
1404
1410
  function Ma(e, n) {
1405
- const r = ye;
1406
- return g(), H("div", Aa, [
1407
- c(r, {
1411
+ const c = ye;
1412
+ return g(), U("div", Da, [
1413
+ r(c, {
1408
1414
  status: "404",
1409
1415
  title: "资源不存在",
1410
1416
  description: "抱歉,你访问的页面不存在"
1411
1417
  })
1412
1418
  ]);
1413
1419
  }
1414
- const Ia = /* @__PURE__ */ F(Da, [["render", Ma], ["__scopeId", "data-v-99232671"]]), Ha = {}, Wa = { class: "flex flex-col justify-center page-container" };
1415
- function Ua(e, n) {
1416
- const r = ye;
1417
- return g(), H("div", Wa, [
1418
- c(r, {
1420
+ const Ia = /* @__PURE__ */ F(za, [["render", Ma], ["__scopeId", "data-v-99232671"]]), Ua = {}, Ha = { class: "flex flex-col justify-center page-container" };
1421
+ function Wa(e, n) {
1422
+ const c = ye;
1423
+ return g(), U("div", Ha, [
1424
+ r(c, {
1419
1425
  status: "403",
1420
1426
  title: "禁止访问",
1421
1427
  description: "抱歉,你无权访问该页面"
1422
1428
  })
1423
1429
  ]);
1424
1430
  }
1425
- const ja = /* @__PURE__ */ F(Ha, [["render", Ua], ["__scopeId", "data-v-3baa9c16"]]), qa = U(za), Fa = U(Ia), Ka = U(ja), Va = ke("app-oidc", () => {
1431
+ const ja = /* @__PURE__ */ F(Ua, [["render", Wa], ["__scopeId", "data-v-3baa9c16"]]), qa = W(Ba), Fa = W(Ia), Ka = W(ja), Va = ke("app-oidc", () => {
1426
1432
  const e = we({});
1427
1433
  return {
1428
1434
  setCallback: (l) => e.callback = l,
@@ -1430,17 +1436,17 @@ const ja = /* @__PURE__ */ F(Ha, [["render", Ua], ["__scopeId", "data-v-3baa9c16
1430
1436
  setError: (l) => e.error = l,
1431
1437
  callError: async (l, k) => await e.error?.(l, k)
1432
1438
  };
1433
- }), Ya = { class: "view-auth-callback" }, Xa = /* @__PURE__ */ W({
1439
+ }), Ya = { class: "view-auth-callback" }, Xa = /* @__PURE__ */ H({
1434
1440
  __name: "POidc",
1435
1441
  setup(e) {
1436
- const n = ce(), { callCallback: r, callError: m } = Va();
1442
+ const n = re(), { callCallback: c, callError: m } = Va();
1437
1443
  return ee(async () => {
1438
1444
  try {
1439
- await r(n);
1445
+ await c(n);
1440
1446
  } catch (d) {
1441
1447
  await m(n, d);
1442
1448
  }
1443
- }), (d, l) => (g(), H("div", Ya, [...l[0] || (l[0] = [
1449
+ }), (d, l) => (g(), U("div", Ya, [...l[0] || (l[0] = [
1444
1450
  v("div", { class: "view-auth-callback-content" }, [
1445
1451
  v("div", { class: "view-auth-callback-spinner" }, [
1446
1452
  v("span", null, "正在处理登录回调...")
@@ -1448,7 +1454,7 @@ const ja = /* @__PURE__ */ F(Ha, [["render", Ua], ["__scopeId", "data-v-3baa9c16
1448
1454
  ], -1)
1449
1455
  ])]));
1450
1456
  }
1451
- }), Ja = /* @__PURE__ */ F(Xa, [["__scopeId", "data-v-167395ae"]]), Za = U(Ja), Ga = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1457
+ }), Ja = /* @__PURE__ */ F(Xa, [["__scopeId", "data-v-167395ae"]]), Za = W(Ja), Ga = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1452
1458
  __proto__: null,
1453
1459
  P403: Ka,
1454
1460
  P404: Fa,
@@ -1460,12 +1466,12 @@ const ja = /* @__PURE__ */ F(Ha, [["render", Ua], ["__scopeId", "data-v-3baa9c16
1460
1466
  PLayout: pa,
1461
1467
  PModal: va,
1462
1468
  POidc: Za,
1463
- PPage: Ea,
1469
+ PPage: Oa,
1464
1470
  PRedirect: wa,
1465
1471
  PTable: Rt
1466
- }, Symbol.toStringTag, { value: "Module" })), Qa = (e, n) => (Object.values(Ga).forEach((r) => {
1467
- r.install && e.use(r);
1468
- }), n?.(), e), cn = {
1472
+ }, Symbol.toStringTag, { value: "Module" })), Qa = (e, n) => (Object.values(Ga).forEach((c) => {
1473
+ c.install && e.use(c);
1474
+ }), n?.(), e), rn = {
1469
1475
  install: Qa
1470
1476
  };
1471
1477
  export {
@@ -1479,10 +1485,10 @@ export {
1479
1485
  pa as PLayout,
1480
1486
  va as PModal,
1481
1487
  Za as POidc,
1482
- Ea as PPage,
1488
+ Oa as PPage,
1483
1489
  wa as PRedirect,
1484
1490
  Rt as PTable,
1485
- cn as default,
1491
+ rn as default,
1486
1492
  Qa as install,
1487
1493
  Mt as useLanguageStore,
1488
1494
  ie as useLayoutStore,