@chewel611/naive-ui-plus 0.0.22 → 0.0.24

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,5 +1,5 @@
1
1
  import { useDialog as Me, useMessage as fe, NCard as Xe, NDataTable as Ge, NModal as Re, NSpace as Ne, NButton as K, NTooltip as De, NIcon as M, NDropdown as Q, NAvatar as Ae, NBreadcrumb as Je, NBreadcrumbItem as Ze, NDivider as Qe, useThemeVars as et, NMenu as tt, NLayout as $e, NLayoutSider as at, NFlex as ot, NLayoutHeader as nt, NLayoutContent as lt, NBackTop as st, NConfigProvider as rt, dateZhCN as it, zhCN as ct, NDialogProvider as dt, NNotificationProvider as ut, NMessageProvider as ft, NText as pt, NEmpty as gt, NSpin as ht, NResult as ke } from "naive-ui";
2
- import { defineComponent as A, ref as O, computed as U, unref as a, onMounted as X, openBlock as b, createBlock as $, withCtx as s, createElementVNode as y, createElementBlock as N, renderSlot as F, createCommentVNode as B, createVNode as i, normalizeStyle as ue, createTextVNode as Y, h as z, toRaw as Z, reactive as Ce, normalizeClass as ae, withDirectives as mt, toDisplayString as q, vShow as vt, nextTick as oe, inject as Ie, Fragment as Oe, renderList as _t, resolveDynamicComponent as we, withModifiers as Pe, resolveComponent as ze, KeepAlive as bt, useCssVars as yt, watch as Be, provide as wt, mergeProps as Pt, onBeforeMount as kt } from "vue";
2
+ import { defineComponent as A, ref as O, computed as U, unref as a, onMounted as X, openBlock as y, createBlock as $, withCtx as s, createElementVNode as b, createElementBlock as N, renderSlot as F, createCommentVNode as B, createVNode as i, normalizeStyle as ue, createTextVNode as Y, h as z, toRaw as Z, reactive as Ce, normalizeClass as ae, withDirectives as mt, toDisplayString as q, vShow as vt, nextTick as oe, inject as Ie, Fragment as Oe, renderList as _t, resolveDynamicComponent as we, withModifiers as Pe, resolveComponent as ze, KeepAlive as yt, useCssVars as bt, watch as Be, provide as wt, mergeProps as Pt, onBeforeMount as kt } from "vue";
3
3
  import { PlusSquareOutlined as Ct, DeleteOutlined as xt, ReloadOutlined as xe, MoreOutlined as St, MenuUnfoldOutlined as Lt, MenuFoldOutlined as Tt, FullscreenOutlined as $t, FullscreenExitOutlined as Ot, CloseOutlined as Ee, ColumnWidthOutlined as Et, MinusOutlined as Mt, LeftOutlined as Rt, RightOutlined as Nt, DownOutlined as Dt } from "@vicons/antd";
4
4
  import { cloneDeep as At } from "lodash";
5
5
  import { defineStore as Se } from "pinia";
@@ -8,8 +8,8 @@ import It from "element-resize-detector";
8
8
  import zt from "vuedraggable";
9
9
  const We = (t) => {
10
10
  Object.keys(t).forEach((r) => {
11
- const c = t[r];
12
- Array.isArray(c) ? t[r] = [] : c !== null && typeof c == "object" ? We(c) : t[r] = void 0;
11
+ const d = t[r];
12
+ Array.isArray(d) ? t[r] = [] : d !== null && typeof d == "object" ? We(d) : t[r] = void 0;
13
13
  });
14
14
  }, Bt = { id: "data-content" }, Wt = {
15
15
  key: 0,
@@ -32,7 +32,7 @@ const We = (t) => {
32
32
  onDelete: {}
33
33
  },
34
34
  setup(t, { expose: r }) {
35
- const c = O(null), h = Me(), p = fe(), u = O(!1), x = O([]), w = O([]), m = O(null), T = O(!1), g = O(!1), v = O(!1), d = O({}), S = O({
35
+ const d = O(null), h = Me(), g = fe(), c = O(!1), x = O([]), w = O([]), m = O(null), T = O(!1), p = O(!1), v = O(!1), u = O({}), S = O({
36
36
  page: 1,
37
37
  itemCount: 0,
38
38
  pageSize: 10,
@@ -120,9 +120,9 @@ const We = (t) => {
120
120
  onPositiveClick: async () => {
121
121
  if (o.onDelete)
122
122
  try {
123
- await o.onDelete(f) ? (j(), p.success("删除成功")) : p.error("删除失败");
123
+ await o.onDelete(f) ? (j(), g.success("删除成功")) : g.error("删除失败");
124
124
  } catch (e) {
125
- p.error(e.message);
125
+ g.error(e.message);
126
126
  }
127
127
  }
128
128
  });
@@ -137,17 +137,17 @@ const We = (t) => {
137
137
  try {
138
138
  v.value = !0, (T.value ? await o.onSave(void 0, Z(o.item)) : await o.onSave(m.value[o.idField], Z(o.item))) && (G(), await j());
139
139
  } catch (f) {
140
- p.error(f.message);
140
+ g.error(f.message);
141
141
  } finally {
142
142
  v.value = !1;
143
143
  }
144
144
  }, ie = async (f, e) => {
145
- o.onOpenModal?.(f), await e?.(), f ? (T.value = !1, g.value = !0) : (g.value = !1, T.value = !0);
145
+ o.onOpenModal?.(f), await e?.(), f ? (T.value = !1, p.value = !0) : (p.value = !1, T.value = !0);
146
146
  }, G = () => {
147
- m.value = null, We(o.item), Object.assign(o.item, { ...Z(d.value) }), o.onCloseModal?.(o.item), T.value = !1, g.value = !1;
147
+ m.value = null, We(o.item), Object.assign(o.item, { ...Z(u.value) }), o.onCloseModal?.(o.item), T.value = !1, p.value = !1;
148
148
  }, J = () => x.value ? w.value.filter((e) => x.value.includes(e.id)).map((e) => Z(e)) : [], ge = () => J()[0], he = () => Z(w.value), j = async () => {
149
- if (!u.value) {
150
- u.value = !0;
149
+ if (!c.value) {
150
+ c.value = !0;
151
151
  try {
152
152
  if (o.onLoad) {
153
153
  var { data: f, total: e } = await o.onLoad(
@@ -157,13 +157,13 @@ const We = (t) => {
157
157
  w.value = f, S.value.itemCount = e;
158
158
  }
159
159
  } catch (n) {
160
- p.error(n.message);
160
+ g.error(n.message);
161
161
  } finally {
162
- u.value = !1;
162
+ c.value = !1;
163
163
  }
164
164
  }
165
165
  }, me = U(() => {
166
- const f = a(c);
166
+ const f = a(d);
167
167
  if (!f) return;
168
168
  const e = f?.$el, n = e.querySelector(".n-data-table-thead "), { bottomIncludeBody: l } = te(n), C = 64;
169
169
  let R = 2, D = 24;
@@ -182,17 +182,17 @@ const We = (t) => {
182
182
  top: je,
183
183
  width: Ue,
184
184
  height: Fe
185
- } = de, qe = (D || n) - (C || 0), Ve = (V || l) - (R || 0), Ke = _e + D, Ye = je + V, be = Ke - qe, ye = Ye - Ve, Le = window.document.documentElement.clientWidth, Te = window.document.documentElement.clientHeight;
185
+ } = de, qe = (D || n) - (C || 0), Ve = (V || l) - (R || 0), Ke = _e + D, Ye = je + V, ye = Ke - qe, be = Ye - Ve, Le = window.document.documentElement.clientWidth, Te = window.document.documentElement.clientHeight;
186
186
  return {
187
- left: be,
188
- top: ye,
189
- right: Le - Ue - be,
190
- bottom: Te - Fe - ye,
191
- rightIncludeBody: Le - be,
192
- bottomIncludeBody: Te - ye
187
+ left: ye,
188
+ top: be,
189
+ right: Le - Ue - ye,
190
+ bottom: Te - Fe - be,
191
+ rightIncludeBody: Le - ye,
192
+ bottomIncludeBody: Te - be
193
193
  };
194
194
  }, ve = () => {
195
- d.value = { ...Z(o.item) };
195
+ u.value = { ...Z(o.item) };
196
196
  };
197
197
  return X(async () => {
198
198
  ve(), await j();
@@ -207,14 +207,14 @@ const We = (t) => {
207
207
  }
208
208
  }), (f, e) => {
209
209
  const n = De, l = Ge, C = Ne, R = Re;
210
- return b(), $(a(Xe), {
210
+ return y(), $(a(Xe), {
211
211
  title: " ",
212
212
  "header-class": "p-4",
213
213
  "content-class": "pl-4 pr-4",
214
214
  bordered: !1
215
215
  }, {
216
216
  "header-extra": s(() => [
217
- t.hiddenAdd ? B("", !0) : (b(), $(n, {
217
+ t.hiddenAdd ? B("", !0) : (y(), $(n, {
218
218
  key: 0,
219
219
  trigger: "hover"
220
220
  }, {
@@ -231,11 +231,11 @@ const We = (t) => {
231
231
  })
232
232
  ]),
233
233
  default: s(() => [
234
- e[3] || (e[3] = y("span", null, "新增", -1))
234
+ e[3] || (e[3] = b("span", null, "新增", -1))
235
235
  ]),
236
236
  _: 1
237
237
  })),
238
- t.hiddenDelete ? B("", !0) : (b(), $(n, {
238
+ t.hiddenDelete ? B("", !0) : (y(), $(n, {
239
239
  key: 1,
240
240
  trigger: "hover"
241
241
  }, {
@@ -252,7 +252,7 @@ const We = (t) => {
252
252
  })
253
253
  ]),
254
254
  default: s(() => [
255
- e[4] || (e[4] = y("span", null, "删除", -1))
255
+ e[4] || (e[4] = b("span", null, "删除", -1))
256
256
  ]),
257
257
  _: 1
258
258
  })),
@@ -270,24 +270,24 @@ const We = (t) => {
270
270
  })
271
271
  ]),
272
272
  default: s(() => [
273
- e[5] || (e[5] = y("span", null, "刷新", -1))
273
+ e[5] || (e[5] = b("span", null, "刷新", -1))
274
274
  ]),
275
275
  _: 1
276
276
  })
277
277
  ]),
278
278
  default: s(() => [
279
- y("div", Bt, [
280
- f.$slots.toolbar ? (b(), N("div", Wt, [
279
+ b("div", Bt, [
280
+ f.$slots.toolbar ? (y(), N("div", Wt, [
281
281
  F(f.$slots, "toolbar")
282
282
  ])) : B("", !0),
283
283
  i(l, {
284
284
  remote: "",
285
285
  ref_key: "$table",
286
- ref: c,
286
+ ref: d,
287
287
  "checked-row-keys": x.value,
288
288
  "onUpdate:checkedRowKeys": e[0] || (e[0] = (D) => x.value = D),
289
289
  "max-height": me.value,
290
- loading: u.value,
290
+ loading: c.value,
291
291
  bordered: !1,
292
292
  "single-line": !1,
293
293
  columns: _.value,
@@ -295,7 +295,7 @@ const We = (t) => {
295
295
  pagination: S.value,
296
296
  "row-key": (D) => D[t.idField]
297
297
  }, null, 8, ["checked-row-keys", "max-height", "loading", "columns", "data", "pagination", "row-key"]),
298
- f.$slots.addModal ? (b(), N("div", Ht, [
298
+ f.$slots.addModal ? (y(), N("div", Ht, [
299
299
  i(R, {
300
300
  title: "新增",
301
301
  preset: "card",
@@ -337,11 +337,11 @@ const We = (t) => {
337
337
  _: 3
338
338
  }, 8, ["show", "style"])
339
339
  ])) : B("", !0),
340
- f.$slots.editModal ? (b(), N("div", jt, [
340
+ f.$slots.editModal ? (y(), N("div", jt, [
341
341
  i(R, {
342
342
  title: "编辑",
343
- show: g.value,
344
- "onUpdate:show": e[2] || (e[2] = (D) => g.value = D),
343
+ show: p.value,
344
+ "onUpdate:show": e[2] || (e[2] = (D) => p.value = D),
345
345
  preset: "card",
346
346
  "header-class": "bg-gray-50",
347
347
  closable: !1,
@@ -387,8 +387,8 @@ const We = (t) => {
387
387
  }
388
388
  }), W = (t) => {
389
389
  const r = t;
390
- return r.install = function(c) {
391
- c.component(r.__name, t);
390
+ return r.install = function(d) {
391
+ d.component(r.__name, t);
392
392
  }, t;
393
393
  }, Ft = W(Ut), qt = ["Redirect", "RedirectSon", "login"], se = Se("p-layout", () => {
394
394
  const t = Ce({
@@ -462,23 +462,23 @@ const We = (t) => {
462
462
  __name: "PLogo",
463
463
  setup(t) {
464
464
  const r = se();
465
- return (c, h) => (b(), N("div", Vt, [
465
+ return (d, h) => (y(), N("div", Vt, [
466
466
  i(a(Ae), {
467
467
  color: "var(--color-logo)",
468
468
  size: 32,
469
469
  src: a(r).state.logo,
470
470
  class: ae({ "mr-2": !a(r).state.collapsed })
471
471
  }, null, 8, ["src", "class"]),
472
- mt(y("h1", { class: "font-bold ease-in-out ml-2 logo-size" }, q(a(r).state.title), 513), [
472
+ mt(b("h1", { class: "font-bold ease-in-out ml-2 logo-size" }, q(a(r).state.title), 513), [
473
473
  [vt, !a(r).state.collapsed]
474
474
  ])
475
475
  ]));
476
476
  }
477
477
  }), H = (t, r) => {
478
- const c = t.__vccOpts || t;
479
- for (const [h, p] of r)
480
- c[h] = p;
481
- return c;
478
+ const d = t.__vccOpts || t;
479
+ for (const [h, g] of r)
480
+ d[h] = g;
481
+ return d;
482
482
  }, Yt = /* @__PURE__ */ H(Kt, [["__scopeId", "data-v-e48aeefa"]]), Xt = {
483
483
  translationApiUrl: "https://translate.zvo.cn/api",
484
484
  defaultLanguage: "chinese",
@@ -489,28 +489,28 @@ const We = (t) => {
489
489
  initLanguage: (t) => {
490
490
  }
491
491
  }, Gt = Se("language", () => {
492
- const t = O(Xt), r = (g) => {
493
- g.forEach((v) => {
492
+ const t = O(Xt), r = (p) => {
493
+ p.forEach((v) => {
494
494
  (v.key === "Chinese" || v.key === "chinese") && (v.key = "chinese_simplified");
495
- }), t.value.options = [...g];
496
- }, c = () => t.value.options, h = (g) => {
497
- if (t.value.currentLanguage === g)
495
+ }), t.value.options = [...p];
496
+ }, d = () => t.value.options, h = (p) => {
497
+ if (t.value.currentLanguage === p)
498
498
  return;
499
499
  const v = t.value.options.find(
500
- (d) => d.key === g
500
+ (u) => u.key === p
501
501
  );
502
502
  v && (t.value.currentLanguage = v.key, t.value.selectCallback(v));
503
- }, p = () => {
503
+ }, g = () => {
504
504
  if (t.value.currentLanguage)
505
505
  return t.value.options.find(
506
- (g) => g.key === t.value.currentLanguage
506
+ (p) => p.key === t.value.currentLanguage
507
507
  );
508
- }, u = (g) => {
509
- t.value.selectCallback = g;
510
- }, x = () => t.value.translationApiUrl, w = (g) => {
511
- t.value.translationApiUrl = g;
512
- }, m = (g) => {
513
- (g === "Chinese" || g === "chinese") && (g = "chinese_simplified"), t.value.defaultLanguage = g;
508
+ }, c = (p) => {
509
+ t.value.selectCallback = p;
510
+ }, x = () => t.value.translationApiUrl, w = (p) => {
511
+ t.value.translationApiUrl = p;
512
+ }, m = (p) => {
513
+ (p === "Chinese" || p === "chinese") && (p = "chinese_simplified"), t.value.defaultLanguage = p;
514
514
  }, T = () => t.value.defaultLanguage ? t.value.defaultLanguage : "chinese_simplified";
515
515
  return X(() => {
516
516
  t.value.initLanguage(t.value);
@@ -518,9 +518,9 @@ const We = (t) => {
518
518
  state: t,
519
519
  select: h,
520
520
  setLanguages: r,
521
- getLanguages: c,
522
- getCurrentLanguage: p,
523
- setSelectCallback: u,
521
+ getLanguages: d,
522
+ getCurrentLanguage: g,
523
+ setSelectCallback: c,
524
524
  setTranslationApiUrl: w,
525
525
  getTranslationApiUrl: x,
526
526
  setDefaultLanguage: m,
@@ -529,19 +529,19 @@ const We = (t) => {
529
529
  }), Jt = { key: 1 }, He = /* @__PURE__ */ A({
530
530
  __name: "PLanguage",
531
531
  setup(t) {
532
- const r = (m) => c(m), {
533
- select: c,
532
+ const r = (m) => d(m), {
533
+ select: d,
534
534
  getLanguages: h,
535
- getCurrentLanguage: p,
536
- getDefaultLanguage: u,
535
+ getCurrentLanguage: g,
536
+ getDefaultLanguage: c,
537
537
  getTranslationApiUrl: x
538
538
  } = Gt(), w = () => {
539
539
  const m = window.translate;
540
- m && (m.selectLanguageTag.show = !1, m.selectLanguageTag.languages = h().map((T) => T.key).join(","), m.ignore.class.push("ignore-translate-flag"), m.ignore.id.push("ignore-translation"), m.language.setLocal(u()), m.request.api.translate = "api/v1/translation", m.request.api.connectTest = "api/v1/translation/connect-test", m.request.api.init = "api/v1/translation/init", m.request.api.language = "api/v1/translation/language", m.request.setHost(x()), m.request.listener.start(), m.listener.start(), m.whole.enableAll(), m.execute());
540
+ m && (m.selectLanguageTag.show = !1, m.selectLanguageTag.languages = h().map((T) => T.key).join(","), m.ignore.class.push("ignore-translate-flag"), m.ignore.id.push("ignore-translation"), m.language.setLocal(c()), m.request.api.translate = "api/v1/translation", m.request.api.connectTest = "api/v1/translation/connect-test", m.request.api.init = "api/v1/translation/init", m.request.api.language = "api/v1/translation/language", m.request.setHost(x()), m.request.listener.start(), m.listener.start(), m.whole.enableAll(), m.execute());
541
541
  };
542
542
  return X(async () => await oe(() => w())), (m, T) => {
543
- const g = M, v = K;
544
- return a(h)().length > 0 ? (b(), $(a(Q), {
543
+ const p = M, v = K;
544
+ return a(h)().length > 0 ? (y(), $(a(Q), {
545
545
  key: 0,
546
546
  id: "ignore-translation",
547
547
  placement: "bottom-start",
@@ -556,21 +556,21 @@ const We = (t) => {
556
556
  type: "info"
557
557
  }, {
558
558
  default: s(() => [
559
- a(p)() ? (b(), N("label", Jt, q(a(p)()?.label), 1)) : (b(), $(g, {
559
+ a(g)() ? (y(), N("label", Jt, q(a(g)()?.label), 1)) : (y(), $(p, {
560
560
  key: 0,
561
561
  size: "18"
562
562
  }, {
563
563
  default: s(() => [...T[0] || (T[0] = [
564
- y("svg", {
564
+ b("svg", {
565
565
  xmlns: "http://www.w3.org/2000/svg",
566
566
  "xmlns:xlink": "http://www.w3.org/1999/xlink",
567
567
  viewBox: "0 0 512 512"
568
568
  }, [
569
- y("path", {
569
+ b("path", {
570
570
  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",
571
571
  fill: "currentColor"
572
572
  }),
573
- y("path", {
573
+ b("path", {
574
574
  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",
575
575
  fill: "currentColor"
576
576
  })
@@ -592,7 +592,7 @@ const We = (t) => {
592
592
  }, aa = { class: "layout-header-right" }, oa = { class: "layout-header-trigger-min" }, na = { class: "layout-header-trigger layout-header-trigger-min" }, la = { class: "layout-header-trigger layout-header-trigger-min" }, sa = { class: "avatar" }, ra = /* @__PURE__ */ A({
593
593
  __name: "PHeader",
594
594
  setup(t) {
595
- const r = fe(), c = Me(), h = se(), p = ne(), u = le(), x = Ie("reloadPage"), w = (P) => p.push({ name: P }), m = U(() => T(u.matched)), T = (P) => P.map((_) => {
595
+ const r = fe(), d = Me(), h = se(), g = ne(), c = le(), x = Ie("reloadPage"), w = (P) => g.push({ name: P }), m = U(() => T(c.matched)), T = (P) => P.map((_) => {
596
596
  const k = {
597
597
  key: _.name,
598
598
  label: _.meta.title,
@@ -604,9 +604,9 @@ const We = (t) => {
604
604
  return _.children && _.children.length > 0 && (k.children = T(
605
605
  _.children
606
606
  )), k;
607
- }), g = O(!1), v = () => {
608
- document.fullscreenElement ? document.exitFullscreen && (document.exitFullscreen(), g.value = !1) : (document.documentElement.requestFullscreen(), g.value = !0);
609
- }, d = U(() => {
607
+ }), p = O(!1), v = () => {
608
+ document.fullscreenElement ? document.exitFullscreen && (document.exitFullscreen(), p.value = !1) : (document.documentElement.requestFullscreen(), p.value = !0);
609
+ }, u = U(() => {
610
610
  const P = [];
611
611
  return P.push({
612
612
  label: "退出登录",
@@ -618,9 +618,9 @@ const We = (t) => {
618
618
  });
619
619
  }), P;
620
620
  }), S = (P) => {
621
- P === "logout" ? o() : p.push({ name: P });
621
+ P === "logout" ? o() : g.push({ name: P });
622
622
  }, o = () => {
623
- c.info({
623
+ d.info({
624
624
  title: "提示",
625
625
  content: "您确定要退出登录吗",
626
626
  positiveText: "确定",
@@ -643,14 +643,14 @@ const We = (t) => {
643
643
  };
644
644
  return (P, _) => {
645
645
  const k = De, I = Qe, E = Ae;
646
- return b(), N("div", Zt, [
647
- y("div", Qt, [
648
- y("div", {
646
+ return y(), N("div", Zt, [
647
+ b("div", Qt, [
648
+ b("div", {
649
649
  class: "ml-1 layout-header-trigger layout-header-trigger-min",
650
650
  onClick: _[0] || (_[0] = //@ts-ignore
651
651
  (...L) => a(h).collapse && a(h).collapse(...L))
652
652
  }, [
653
- a(h).state.collapsed ? (b(), $(a(M), {
653
+ a(h).state.collapsed ? (y(), $(a(M), {
654
654
  key: 0,
655
655
  size: "18"
656
656
  }, {
@@ -658,7 +658,7 @@ const We = (t) => {
658
658
  i(a(Lt))
659
659
  ]),
660
660
  _: 1
661
- })) : (b(), $(a(M), {
661
+ })) : (y(), $(a(M), {
662
662
  key: 1,
663
663
  size: "18"
664
664
  }, {
@@ -668,7 +668,7 @@ const We = (t) => {
668
668
  _: 1
669
669
  }))
670
670
  ]),
671
- y("div", {
671
+ b("div", {
672
672
  class: "mr-1 layout-header-trigger layout-header-trigger-min",
673
673
  onClick: _[1] || (_[1] = //@ts-ignore
674
674
  (...L) => a(x) && a(x)(...L))
@@ -682,26 +682,26 @@ const We = (t) => {
682
682
  ]),
683
683
  i(a(Je), null, {
684
684
  default: s(() => [
685
- (b(!0), N(Oe, null, _t(m.value, (L) => (b(), N(Oe, {
685
+ (y(!0), N(Oe, null, _t(m.value, (L) => (y(), N(Oe, {
686
686
  key: L.label
687
687
  }, [
688
- L.label ? (b(), $(a(Ze), { key: 0 }, {
688
+ L.label ? (y(), $(a(Ze), { key: 0 }, {
689
689
  default: s(() => [
690
- L.children && L.children.length ? (b(), $(a(Q), {
690
+ L.children && L.children.length ? (y(), $(a(Q), {
691
691
  key: 0,
692
692
  options: L.children,
693
693
  onSelect: w
694
694
  }, {
695
695
  default: s(() => [
696
- y("span", ea, [
697
- L.icon ? (b(), $(we(L.icon), { key: 0 })) : B("", !0),
698
- y("span", null, q(L.label), 1)
696
+ b("span", ea, [
697
+ L.icon ? (y(), $(we(L.icon), { key: 0 })) : B("", !0),
698
+ b("span", null, q(L.label), 1)
699
699
  ])
700
700
  ]),
701
701
  _: 2
702
- }, 1032, ["options"])) : (b(), N("span", ta, [
703
- L.icon ? (b(), $(we(L.icon), { key: 0 })) : B("", !0),
704
- y("span", null, q(L.label), 1)
702
+ }, 1032, ["options"])) : (y(), N("span", ta, [
703
+ L.icon ? (y(), $(we(L.icon), { key: 0 })) : B("", !0),
704
+ b("span", null, q(L.label), 1)
705
705
  ]))
706
706
  ]),
707
707
  _: 2
@@ -711,11 +711,11 @@ const We = (t) => {
711
711
  _: 1
712
712
  })
713
713
  ]),
714
- y("div", aa, [
715
- y("div", oa, [
714
+ b("div", aa, [
715
+ b("div", oa, [
716
716
  i(He)
717
717
  ]),
718
- y("div", na, [
718
+ b("div", na, [
719
719
  i(k, { placement: "bottom" }, {
720
720
  trigger: s(() => [
721
721
  i(a(M), {
@@ -723,26 +723,26 @@ const We = (t) => {
723
723
  onClick: Pe(v, ["stop"])
724
724
  }, {
725
725
  default: s(() => [
726
- g.value ? (b(), $(a(Ot), { key: 1 })) : (b(), $(a($t), { key: 0 }))
726
+ p.value ? (y(), $(a(Ot), { key: 1 })) : (y(), $(a($t), { key: 0 }))
727
727
  ]),
728
728
  _: 1
729
729
  })
730
730
  ]),
731
731
  default: s(() => [
732
- _[2] || (_[2] = y("span", null, "全屏", -1))
732
+ _[2] || (_[2] = b("span", null, "全屏", -1))
733
733
  ]),
734
734
  _: 1
735
735
  })
736
736
  ]),
737
- y("div", la, [
737
+ b("div", la, [
738
738
  i(a(Q), {
739
739
  trigger: "hover",
740
740
  onSelect: S,
741
- options: d.value
741
+ options: u.value
742
742
  }, {
743
743
  default: s(() => [
744
- y("div", sa, [
745
- y("span", null, q(a(h).state.uname), 1),
744
+ b("div", sa, [
745
+ b("span", null, q(a(h).state.uname), 1),
746
746
  i(I, { vertical: "" }),
747
747
  i(E, {
748
748
  round: "",
@@ -763,14 +763,14 @@ const We = (t) => {
763
763
  loading: { type: Boolean, default: !1 }
764
764
  },
765
765
  setup(t) {
766
- return (r, c) => {
766
+ return (r, d) => {
767
767
  const h = ze("RouterView");
768
- return b(), N("div", ca, [
769
- t.loading ? B("", !0) : (b(), $(h, { key: 0 }, {
770
- default: s(({ Component: p, route: u }) => [
771
- (b(), $(bt, null, [
772
- (b(), $(we(p), {
773
- key: u.fullPath
768
+ return y(), N("div", ca, [
769
+ t.loading ? B("", !0) : (y(), $(h, { key: 0 }, {
770
+ default: s(({ Component: g, route: c }) => [
771
+ (y(), $(yt, null, [
772
+ (y(), $(we(g), {
773
+ key: c.fullPath
774
774
  }))
775
775
  ], 1024))
776
776
  ]),
@@ -782,12 +782,12 @@ const We = (t) => {
782
782
  }), ua = { class: "tabs-view-main" }, fa = ["id", "onClick", "onContextmenu"], pa = { class: "tabs-close" }, ga = { class: "tabs-close-btn" }, ha = /* @__PURE__ */ A({
783
783
  __name: "PTabs",
784
784
  setup(t) {
785
- yt((e) => ({
786
- v141ddb06: c.value,
785
+ bt((e) => ({
786
+ v141ddb06: d.value,
787
787
  cf709148: h.value
788
788
  }));
789
- const r = et(), c = U(() => r.value.cardColor), h = U(() => r.value.textColor1), p = fe(), u = le(), x = ne(), w = O(null), m = O(null), T = O(!1), g = se(), v = U(() => g.state.tabs), d = Ce({
790
- activeKey: u.fullPath,
789
+ const r = et(), d = U(() => r.value.cardColor), h = U(() => r.value.textColor1), g = fe(), c = le(), x = ne(), w = O(null), m = O(null), T = O(!1), p = se(), v = U(() => p.state.tabs), u = Ce({
790
+ activeKey: c.fullPath,
791
791
  scrollable: !0,
792
792
  dropdownX: 0,
793
793
  dropdownY: 0,
@@ -798,7 +798,7 @@ const We = (t) => {
798
798
  const { fullPath: n, hash: l, meta: C, name: R, params: D, path: V, query: de } = e;
799
799
  return { fullPath: n, hash: l, meta: C, name: R, params: D, path: V, query: de };
800
800
  }, P = U(() => {
801
- const l = g.state.collapsed ? "64px" : "272px";
801
+ const l = p.state.collapsed ? "64px" : "272px";
802
802
  return {
803
803
  left: l,
804
804
  width: `calc(100% - ${l})`
@@ -832,9 +832,9 @@ const We = (t) => {
832
832
  ];
833
833
  }), k = () => {
834
834
  let e = [];
835
- const n = o(u);
835
+ const n = o(c);
836
836
  try {
837
- if (g.state.cacheTabs) {
837
+ if (p.state.cacheTabs) {
838
838
  const l = localStorage.getItem("TABS_ROUTES");
839
839
  e = l ? JSON.parse(l) : [n];
840
840
  }
@@ -848,51 +848,51 @@ const We = (t) => {
848
848
  e.forEach((l) => {
849
849
  const C = n.find((R) => R.path === l.path);
850
850
  C && (l.meta = C.meta || l.meta, l.name = C.name || l.name);
851
- }), g.state.cacheTabs && localStorage.setItem("TABS_ROUTES", JSON.stringify(e));
851
+ }), p.state.cacheTabs && localStorage.setItem("TABS_ROUTES", JSON.stringify(e));
852
852
  }, E = () => {
853
853
  const e = k();
854
- I(e), g.initTabs(e);
854
+ I(e), p.initTabs(e);
855
855
  }, L = async (e) => {
856
856
  if (await oe(), !w.value) return;
857
857
  const n = w.value.offsetWidth, l = w.value.scrollWidth;
858
- n < l ? (d.scrollable = !0, e && [...w.value.querySelectorAll(".tabs-card-scroll-item") || []].forEach((R) => {
859
- R.id === `tag${d.activeKey.split("/").join("/")}` && R.scrollIntoView && R.scrollIntoView();
860
- })) : d.scrollable = !1;
858
+ n < l ? (u.scrollable = !0, e && [...w.value.querySelectorAll(".tabs-card-scroll-item") || []].forEach((R) => {
859
+ R.id === `tag${u.activeKey.split("/").join("/")}` && R.scrollIntoView && R.scrollIntoView();
860
+ })) : u.scrollable = !1;
861
861
  }, ee = (e) => !(e.draggedContext.element.meta.affix || e.relatedContext.element.meta.affix), pe = () => {
862
862
  let e;
863
863
  e = It(), e.listenTo(m.value, () => L(!0));
864
864
  }, re = (e) => {
865
865
  const { fullPath: n } = e;
866
- if (n === u.fullPath || (d.activeKey = n, !e))
866
+ if (n === c.fullPath || (u.activeKey = n, !e))
867
867
  return;
868
868
  const { replace: l } = x;
869
869
  toString.call(e), l(e).catch(console.error);
870
870
  }, ie = (e, n) => {
871
- e.preventDefault(), T.value = n.path === "/home", d.showDropdown = !1, oe().then(() => {
872
- d.showDropdown = !0, d.dropdownX = e.clientX, d.dropdownY = e.clientY;
871
+ e.preventDefault(), T.value = n.path === "/home", u.showDropdown = !1, oe().then(() => {
872
+ u.showDropdown = !0, u.dropdownX = e.clientX, u.dropdownY = e.clientY;
873
873
  });
874
874
  }, G = () => {
875
- if (u.meta.keepAlive) {
875
+ if (c.meta.keepAlive) {
876
876
  var e = x.currentRoute.value.matched.find(
877
- (n) => n.name == u.name
877
+ (n) => n.name == c.name
878
878
  );
879
879
  e && e.components?.default?.name;
880
880
  }
881
881
  }, J = (e) => {
882
882
  if (v.value.length === 1)
883
- return p.warning("这已经是最后一页,不能再关闭了!");
884
- if (G(), g.closeCurrentTab(e), d.activeKey === e.fullPath) {
883
+ return g.warning("这已经是最后一页,不能再关闭了!");
884
+ if (G(), p.closeCurrentTab(e), u.activeKey === e.fullPath) {
885
885
  const n = v.value[Math.max(0, v.value.length - 1)];
886
- d.activeKey = n.fullPath, x.push(n);
886
+ u.activeKey = n.fullPath, x.push(n);
887
887
  }
888
888
  L();
889
889
  }, ge = (e) => {
890
890
  const { fullPath: n } = e, l = v.value.find((C) => C.fullPath == n);
891
891
  J(l);
892
892
  }, he = (e) => {
893
- g.closeOtherTabs(e), d.activeKey = e.fullPath, x.replace(e.fullPath), L();
893
+ p.closeOtherTabs(e), u.activeKey = e.fullPath, x.replace(e.fullPath), L();
894
894
  }, j = () => {
895
- g.closeAllTabs(), L();
895
+ p.closeAllTabs(), L();
896
896
  }, me = Ie("reloadPage"), ce = (e) => {
897
897
  switch (e) {
898
898
  //刷新
@@ -901,18 +901,18 @@ const We = (t) => {
901
901
  break;
902
902
  //关闭
903
903
  case "2":
904
- J(u);
904
+ J(c);
905
905
  break;
906
906
  //关闭其他
907
907
  case "3":
908
- he(u);
908
+ he(c);
909
909
  break;
910
910
  //关闭所有
911
911
  case "4":
912
912
  j();
913
913
  break;
914
914
  }
915
- L(), d.showDropdown = !1;
915
+ L(), u.showDropdown = !1;
916
916
  }, te = (e, n) => {
917
917
  const l = w.value.scrollLeft, C = n > 0 && l + n >= e || n < 0 && l + n <= e ? e : l + n;
918
918
  if (w.value && w.value.scrollTo(C, 0), C !== e)
@@ -934,27 +934,27 @@ const We = (t) => {
934
934
  "scroll",
935
935
  (e) => {
936
936
  let n = e.target.scrollTop || document.documentElement.scrollTop || window.pageYOffset || document.body.scrollTop;
937
- d.isMultiHeaderFixed = n >= 64;
937
+ u.isMultiHeaderFixed = n >= 64;
938
938
  },
939
939
  !0
940
940
  ), Be(
941
- () => u.fullPath,
941
+ () => c.fullPath,
942
942
  (e) => {
943
- S.includes(u.name) || (d.activeKey = e, g.addTab(o(u)), L(!0));
943
+ S.includes(c.name) || (u.activeKey = e, p.addTab(o(c)), L(!0));
944
944
  },
945
945
  { immediate: !0 }
946
- ), E(), X(() => pe()), (e, n) => (b(), N("div", {
946
+ ), E(), X(() => pe()), (e, n) => (y(), N("div", {
947
947
  class: "box-border tabs-view tabs-view-fix tabs-view-default-background",
948
948
  style: ue(P.value)
949
949
  }, [
950
- y("div", ua, [
951
- y("div", {
950
+ b("div", ua, [
951
+ b("div", {
952
952
  ref_key: "navWrap",
953
953
  ref: m,
954
- class: ae(["tabs-card", { "tabs-card-scrollable": d.scrollable }])
954
+ class: ae(["tabs-card", { "tabs-card-scrollable": u.scrollable }])
955
955
  }, [
956
- y("span", {
957
- class: ae(["tabs-card-prev", { "tabs-card-prev-hide": !d.scrollable }]),
956
+ b("span", {
957
+ class: ae(["tabs-card-prev", { "tabs-card-prev-hide": !u.scrollable }]),
958
958
  onClick: ve
959
959
  }, [
960
960
  i(a(M), {
@@ -967,8 +967,8 @@ const We = (t) => {
967
967
  _: 1
968
968
  })
969
969
  ], 2),
970
- y("span", {
971
- class: ae(["tabs-card-next", { "tabs-card-next-hide": !d.scrollable }]),
970
+ b("span", {
971
+ class: ae(["tabs-card-next", { "tabs-card-next-hide": !u.scrollable }]),
972
972
  onClick: f
973
973
  }, [
974
974
  i(a(M), {
@@ -981,7 +981,7 @@ const We = (t) => {
981
981
  _: 1
982
982
  })
983
983
  ], 2),
984
- y("div", {
984
+ b("div", {
985
985
  ref_key: "navScroll",
986
986
  ref: w,
987
987
  class: "tabs-card-scroll"
@@ -994,14 +994,14 @@ const We = (t) => {
994
994
  move: ee
995
995
  }, {
996
996
  item: s(({ element: l }) => [
997
- y("div", {
997
+ b("div", {
998
998
  id: `tag${l.fullPath.split("/").join("/")}`,
999
- class: ae(["tabs-card-scroll-item", { "active-item": d.activeKey === l.fullPath }]),
999
+ class: ae(["tabs-card-scroll-item", { "active-item": u.activeKey === l.fullPath }]),
1000
1000
  onClick: Pe((C) => re(l), ["stop"]),
1001
1001
  onContextmenu: (C) => ie(C, l)
1002
1002
  }, [
1003
- y("span", null, q(l.meta.title), 1),
1004
- l.meta.affix ? B("", !0) : (b(), $(a(M), {
1003
+ b("span", null, q(l.meta.title), 1),
1004
+ l.meta.affix ? B("", !0) : (y(), $(a(M), {
1005
1005
  key: 0,
1006
1006
  size: "14",
1007
1007
  onClick: Pe((C) => ge(l), ["stop"])
@@ -1017,7 +1017,7 @@ const We = (t) => {
1017
1017
  }, 8, ["list"])
1018
1018
  ], 512)
1019
1019
  ], 2),
1020
- y("div", pa, [
1020
+ b("div", pa, [
1021
1021
  i(a(Q), {
1022
1022
  trigger: "hover",
1023
1023
  onSelect: ce,
@@ -1025,7 +1025,7 @@ const We = (t) => {
1025
1025
  options: _.value
1026
1026
  }, {
1027
1027
  default: s(() => [
1028
- y("div", ga, [
1028
+ b("div", ga, [
1029
1029
  i(a(M), {
1030
1030
  size: "16",
1031
1031
  color: "#515a6e"
@@ -1041,10 +1041,10 @@ const We = (t) => {
1041
1041
  }, 8, ["options"])
1042
1042
  ]),
1043
1043
  i(a(Q), {
1044
- show: d.showDropdown,
1045
- x: d.dropdownX,
1046
- y: d.dropdownY,
1047
- onClickoutside: n[0] || (n[0] = (l) => d.showDropdown = !1),
1044
+ show: u.showDropdown,
1045
+ x: u.dropdownX,
1046
+ y: u.dropdownY,
1047
+ onClickoutside: n[0] || (n[0] = (l) => u.showDropdown = !1),
1048
1048
  placement: "bottom-start",
1049
1049
  onSelect: ce,
1050
1050
  options: _.value
@@ -1055,20 +1055,20 @@ const We = (t) => {
1055
1055
  }), ma = /* @__PURE__ */ H(ha, [["__scopeId", "data-v-48b3be2d"]]), va = /* @__PURE__ */ A({
1056
1056
  __name: "PMenus",
1057
1057
  setup(t) {
1058
- const r = le(), c = ne(), h = se(), p = O(r.name), u = O(
1059
- r.matched && r.matched.length ? r.matched.map((d) => d.name) : []
1060
- ), x = O([]), w = (d) => {
1061
- /http(s)?:/.test(d) ? window.open(d) : c.push({ name: d });
1062
- }, m = (d) => {
1063
- if (!d) return;
1064
- const S = d.find((o) => u.value.indexOf(o) === -1);
1065
- u.value = S ? [S] : [];
1058
+ const r = le(), d = ne(), h = se(), g = O(r.name), c = O(
1059
+ r.matched && r.matched.length ? r.matched.map((u) => u.name) : []
1060
+ ), x = O([]), w = (u) => {
1061
+ /http(s)?:/.test(u) ? window.open(u) : d.push({ name: u });
1062
+ }, m = (u) => {
1063
+ if (!u) return;
1064
+ const S = u.find((o) => c.value.indexOf(o) === -1);
1065
+ c.value = S ? [S] : [];
1066
1066
  }, T = () => {
1067
- const d = r.matched;
1068
- u.value = d.map((o) => o.name);
1067
+ const u = r.matched;
1068
+ c.value = u.map((o) => o.name);
1069
1069
  const S = r.meta?.activeMenu || "";
1070
- p.value = S || r.name;
1071
- }, g = (d, S = [], o = !1) => {
1070
+ g.value = S || r.name;
1071
+ }, p = (u, S = [], o = !1) => {
1072
1072
  const P = [], _ = [
1073
1073
  "/:path(.*)*",
1074
1074
  "/redirect",
@@ -1076,15 +1076,15 @@ const We = (t) => {
1076
1076
  "/login",
1077
1077
  "/oidc-callback"
1078
1078
  ];
1079
- if (!d || d.length === 0)
1079
+ if (!u || u.length === 0)
1080
1080
  return P;
1081
- d = d.sort((k, I) => {
1081
+ u = u.sort((k, I) => {
1082
1082
  let E = (I.children?.length ? 1 : 0) - (k.children?.length ? 1 : 0);
1083
1083
  return E === 0 && (E = (k.meta?.sort ?? 0) - (I.meta?.sort ?? 0)), E;
1084
1084
  });
1085
- for (const k of d) {
1085
+ for (const k of u) {
1086
1086
  if (o || (k.meta?.hidden || !1) == !0 || _.includes(k.path)) {
1087
- S.push(k.name), k.children && k.children.length > 0 && g(k.children, S, !0);
1087
+ S.push(k.name), k.children && k.children.length > 0 && p(k.children, S, !0);
1088
1088
  continue;
1089
1089
  }
1090
1090
  const I = k.meta?.alwaysShow != !0 && k?.children?.filter((ee) => !ee?.meta?.hidden)?.length === 1, E = I ? k.children[0] : k, L = {
@@ -1101,16 +1101,16 @@ const We = (t) => {
1101
1101
  };
1102
1102
  if (!S.includes(k.name)) {
1103
1103
  if (P.push(L), S.push(k.name), I) {
1104
- g(k.children, S, o);
1104
+ p(k.children, S, o);
1105
1105
  continue;
1106
1106
  }
1107
- k.children && k.children.length > 0 && (L.children = g(k.children, S, o));
1107
+ k.children && k.children.length > 0 && (L.children = p(k.children, S, o));
1108
1108
  }
1109
1109
  }
1110
1110
  return P;
1111
1111
  }, v = () => {
1112
- const d = c.getRoutes();
1113
- x.value = g(d);
1112
+ const u = d.getRoutes();
1113
+ x.value = p(u);
1114
1114
  };
1115
1115
  return Be(
1116
1116
  () => r.fullPath,
@@ -1119,7 +1119,7 @@ const We = (t) => {
1119
1119
  }
1120
1120
  ), X(() => {
1121
1121
  v(), T();
1122
- }), (d, S) => (b(), $(a(tt), {
1122
+ }), (u, S) => (y(), $(a(tt), {
1123
1123
  class: "h-full",
1124
1124
  inverted: "",
1125
1125
  mode: "vertical",
@@ -1128,21 +1128,21 @@ const We = (t) => {
1128
1128
  "collapsed-width": 64,
1129
1129
  "collapsed-icon-size": 20,
1130
1130
  indent: 24,
1131
- "expanded-keys": u.value,
1132
- value: p.value,
1131
+ "expanded-keys": c.value,
1132
+ value: g.value,
1133
1133
  "onUpdate:value": w,
1134
1134
  "onUpdate:expandedKeys": m
1135
1135
  }, null, 8, ["options", "collapsed", "expanded-keys", "value"]));
1136
1136
  }
1137
- }), _a = { class: "layout-content-main layout-content-main-fix" }, ba = { class: "main-view main-view-fix" }, ya = /* @__PURE__ */ A({
1137
+ }), _a = { class: "layout-content-main layout-content-main-fix" }, ya = { class: "main-view main-view-fix" }, ba = /* @__PURE__ */ A({
1138
1138
  __name: "PLayout",
1139
1139
  setup(t) {
1140
- const r = se(), c = O(!1);
1140
+ const r = se(), d = O(!1);
1141
1141
  return wt("reloadPage", () => {
1142
- c.value = !0, oe(() => c.value = !1);
1143
- }), (p, u) => {
1142
+ d.value = !0, oe(() => d.value = !1);
1143
+ }), (g, c) => {
1144
1144
  const x = st;
1145
- return b(), $(a($e), {
1145
+ return y(), $(a($e), {
1146
1146
  "has-sider": "",
1147
1147
  class: "layout",
1148
1148
  position: "absolute"
@@ -1181,10 +1181,10 @@ const We = (t) => {
1181
1181
  }),
1182
1182
  i(a(lt), { class: "layout-content layout-default-background" }, {
1183
1183
  default: s(() => [
1184
- y("div", _a, [
1184
+ b("div", _a, [
1185
1185
  i(ma),
1186
- y("div", ba, [
1187
- i(da, { loading: c.value }, null, 8, ["loading"])
1186
+ b("div", ya, [
1187
+ i(da, { loading: d.value }, null, 8, ["loading"])
1188
1188
  ])
1189
1189
  ])
1190
1190
  ]),
@@ -1202,10 +1202,10 @@ const We = (t) => {
1202
1202
  });
1203
1203
  };
1204
1204
  }
1205
- }), wa = /* @__PURE__ */ H(ya, [["__scopeId", "data-v-8d20e006"]]), Pa = {};
1205
+ }), wa = /* @__PURE__ */ H(ba, [["__scopeId", "data-v-8d20e006"]]), Pa = {};
1206
1206
  function ka(t, r) {
1207
- const c = ze("router-view");
1208
- return b(), $(c);
1207
+ const d = ze("router-view");
1208
+ return y(), $(d);
1209
1209
  }
1210
1210
  const Ca = /* @__PURE__ */ H(Pa, [["render", ka]]), xa = W(Ca), Sa = W(wa), La = /* @__PURE__ */ A({
1211
1211
  __name: "PApplication",
@@ -1224,9 +1224,9 @@ const Ca = /* @__PURE__ */ H(Pa, [["render", ka]]), xa = W(Ca), Sa = W(wa), La =
1224
1224
  } }
1225
1225
  },
1226
1226
  setup(t) {
1227
- return (r, c) => {
1227
+ return (r, d) => {
1228
1228
  const h = rt;
1229
- return b(), $(h, {
1229
+ return y(), $(h, {
1230
1230
  locale: a(ct),
1231
1231
  theme: t.theme,
1232
1232
  "theme-overrides": t.themeOverrides,
@@ -1268,50 +1268,50 @@ const Ca = /* @__PURE__ */ H(Pa, [["render", ka]]), xa = W(Ca), Sa = W(wa), La =
1268
1268
  onClose: {}
1269
1269
  },
1270
1270
  emits: ["update:visible", "update:loading"],
1271
- setup(t, { expose: r, emit: c }) {
1272
- const h = fe(), p = t, u = c, x = async () => {
1273
- u("update:loading", !0);
1271
+ setup(t, { expose: r, emit: d }) {
1272
+ const h = fe(), g = t, c = d, x = async () => {
1273
+ c("update:loading", !0);
1274
1274
  try {
1275
- p.onSave && await p.onSave() && w();
1275
+ g.onSave && await g.onSave() && w();
1276
1276
  } catch (v) {
1277
1277
  h.error(v.message);
1278
1278
  } finally {
1279
- u("update:loading", !1);
1279
+ c("update:loading", !1);
1280
1280
  }
1281
1281
  }, w = () => {
1282
- u("update:visible", !1), u("update:loading", !1);
1282
+ c("update:visible", !1), c("update:loading", !1);
1283
1283
  }, m = async () => {
1284
1284
  try {
1285
- p.onClose ? await p.onClose() && w() : w();
1285
+ g.onClose ? await g.onClose() && w() : w();
1286
1286
  } catch (v) {
1287
- h.error(v.message), u("update:loading", !1);
1287
+ h.error(v.message), c("update:loading", !1);
1288
1288
  }
1289
1289
  };
1290
1290
  return r({
1291
1291
  open: () => {
1292
- u("update:visible", !0), u("update:loading", !1);
1292
+ c("update:visible", !0), c("update:loading", !1);
1293
1293
  },
1294
1294
  close: () => {
1295
- u("update:visible", !1), u("update:loading", !1);
1295
+ c("update:visible", !1), c("update:loading", !1);
1296
1296
  }
1297
- }), (v, d) => {
1297
+ }), (v, u) => {
1298
1298
  const S = pt, o = K, P = Ne;
1299
- return b(), $(a(Re), Pt({
1299
+ return y(), $(a(Re), Pt({
1300
1300
  ref: "$modal",
1301
1301
  preset: "card"
1302
1302
  }, v.$attrs, {
1303
1303
  "header-class": "bg-gray-50",
1304
- show: p.visible,
1304
+ show: g.visible,
1305
1305
  draggable: !0,
1306
1306
  closable: !1,
1307
1307
  "close-on-esc": !1,
1308
1308
  "mask-closable": !1,
1309
1309
  bordered: !1,
1310
- style: { width: `${p.width}px` },
1310
+ style: { width: `${g.width}px` },
1311
1311
  onClose: w
1312
1312
  }), {
1313
1313
  header: s(() => [
1314
- v.$slots.header ? F(v.$slots, "header", { key: 0 }) : p.title ? (b(), $(S, { key: 1 }, {
1314
+ v.$slots.header ? F(v.$slots, "header", { key: 0 }) : g.title ? (y(), $(S, { key: 1 }, {
1315
1315
  default: s(() => [
1316
1316
  Y(q(t.title), 1)
1317
1317
  ]),
@@ -1322,9 +1322,9 @@ const Ca = /* @__PURE__ */ H(Pa, [["render", ka]]), xa = W(Ca), Sa = W(wa), La =
1322
1322
  F(v.$slots, "header-extra")
1323
1323
  ]),
1324
1324
  default: s(() => [
1325
- y("div", {
1325
+ b("div", {
1326
1326
  class: "overflow-y-auto overflow-hidden mt-5",
1327
- style: ue({ maxHeight: `${p.height}px` })
1327
+ style: ue({ maxHeight: `${g.height}px` })
1328
1328
  }, [
1329
1329
  F(v.$slots, "default")
1330
1330
  ], 4)
@@ -1350,7 +1350,7 @@ const Ca = /* @__PURE__ */ H(Pa, [["render", ka]]), xa = W(Ca), Sa = W(wa), La =
1350
1350
  onClick: m,
1351
1351
  loading: t.loading
1352
1352
  }, {
1353
- default: s(() => [...d[0] || (d[0] = [
1353
+ default: s(() => [...u[0] || (u[0] = [
1354
1354
  Y("取消", -1)
1355
1355
  ])]),
1356
1356
  _: 1
@@ -1368,9 +1368,9 @@ const Ca = /* @__PURE__ */ H(Pa, [["render", ka]]), xa = W(Ca), Sa = W(wa), La =
1368
1368
  setup() {
1369
1369
  const t = le(), r = ne();
1370
1370
  return kt(() => {
1371
- const { params: c, query: h } = t, { path: p } = c;
1371
+ const { params: d, query: h } = t, { path: g } = d;
1372
1372
  r.replace({
1373
- path: "/" + (Array.isArray(p) ? p.join("/") : p),
1373
+ path: "/" + (Array.isArray(g) ? g.join("/") : g),
1374
1374
  query: h
1375
1375
  });
1376
1376
  }), () => /* @__PURE__ */ React.createElement(gt, null);
@@ -1378,10 +1378,10 @@ const Ca = /* @__PURE__ */ H(Pa, [["render", ka]]), xa = W(Ca), Sa = W(wa), La =
1378
1378
  }), Ra = W(Ma), Na = { class: "frame" }, Da = ["src"], Aa = /* @__PURE__ */ A({
1379
1379
  __name: "PIframe",
1380
1380
  setup(t) {
1381
- const r = le(), c = O(!1), h = O(null), p = O("");
1382
- a(r.meta)?.frameSrc && (p.value = a(r.meta)?.frameSrc);
1383
- function u() {
1384
- c.value = !1;
1381
+ const r = le(), d = O(!1), h = O(null), g = O("");
1382
+ a(r.meta)?.frameSrc && (g.value = a(r.meta)?.frameSrc);
1383
+ function c() {
1384
+ d.value = !1;
1385
1385
  }
1386
1386
  function x() {
1387
1387
  oe(() => {
@@ -1389,21 +1389,21 @@ const Ca = /* @__PURE__ */ H(Pa, [["render", ka]]), xa = W(Ca), Sa = W(wa), La =
1389
1389
  if (!w) return;
1390
1390
  const m = w;
1391
1391
  m.attachEvent ? m.attachEvent("onload", () => {
1392
- u();
1392
+ c();
1393
1393
  }) : w.onload = () => {
1394
- u();
1394
+ c();
1395
1395
  };
1396
1396
  });
1397
1397
  }
1398
1398
  return X(() => {
1399
- c.value = !0, x();
1399
+ d.value = !0, x();
1400
1400
  }), (w, m) => {
1401
1401
  const T = ht;
1402
- return b(), $(T, { show: c.value }, {
1402
+ return y(), $(T, { show: d.value }, {
1403
1403
  default: s(() => [
1404
- y("div", Na, [
1405
- y("iframe", {
1406
- src: p.value,
1404
+ b("div", Na, [
1405
+ b("iframe", {
1406
+ src: g.value,
1407
1407
  class: "frame-iframe",
1408
1408
  ref_key: "frameRef",
1409
1409
  ref: h
@@ -1416,74 +1416,64 @@ const Ca = /* @__PURE__ */ H(Pa, [["render", ka]]), xa = W(Ca), Sa = W(wa), La =
1416
1416
  }
1417
1417
  }), Ia = /* @__PURE__ */ H(Aa, [["__scopeId", "data-v-161a378e"]]), za = W(Ia), Ba = {}, Wa = { class: "flex flex-col justify-center page-container" };
1418
1418
  function Ha(t, r) {
1419
- const c = ke;
1420
- return b(), N("div", Wa, [
1421
- i(c, {
1419
+ const d = ke;
1420
+ return y(), N("div", Wa, [
1421
+ i(d, {
1422
1422
  status: "500",
1423
1423
  title: "服务器错误",
1424
1424
  description: "抱歉,服务器出错了"
1425
1425
  })
1426
1426
  ]);
1427
1427
  }
1428
- const ja = /* @__PURE__ */ H(Ba, [["render", Ha], ["__scopeId", "data-v-4586b61a"]]), Ua = {}, Fa = { class: "flex flex-col justify-center page-container" };
1428
+ const ja = /* @__PURE__ */ H(Ba, [["render", Ha], ["__scopeId", "data-v-89cb65c7"]]), Ua = {}, Fa = { class: "flex flex-col justify-center page-container" };
1429
1429
  function qa(t, r) {
1430
- const c = ke;
1431
- return b(), N("div", Fa, [
1432
- i(c, {
1430
+ const d = ke;
1431
+ return y(), N("div", Fa, [
1432
+ i(d, {
1433
1433
  status: "404",
1434
1434
  title: "资源不存在",
1435
1435
  description: "抱歉,你访问的页面不存在"
1436
1436
  })
1437
1437
  ]);
1438
1438
  }
1439
- const Va = /* @__PURE__ */ H(Ua, [["render", qa], ["__scopeId", "data-v-52d560c4"]]), Ka = {}, Ya = { class: "flex flex-col justify-center page-container" };
1439
+ const Va = /* @__PURE__ */ H(Ua, [["render", qa], ["__scopeId", "data-v-99232671"]]), Ka = {}, Ya = { class: "flex flex-col justify-center page-container" };
1440
1440
  function Xa(t, r) {
1441
- const c = ke;
1442
- return b(), N("div", Ya, [
1443
- i(c, {
1441
+ const d = ke;
1442
+ return y(), N("div", Ya, [
1443
+ i(d, {
1444
1444
  status: "403",
1445
1445
  title: "禁止访问",
1446
1446
  description: "抱歉,你无权访问该页面"
1447
1447
  })
1448
1448
  ]);
1449
1449
  }
1450
- const Ga = /* @__PURE__ */ H(Ka, [["render", Xa], ["__scopeId", "data-v-3a660eda"]]), Ja = W(ja), Za = W(Va), Qa = W(Ga), eo = Se("oidc", () => {
1451
- const t = Ce({
1452
- callback: void 0
1453
- });
1450
+ const Ga = /* @__PURE__ */ H(Ka, [["render", Xa], ["__scopeId", "data-v-3baa9c16"]]), Ja = W(ja), Za = W(Va), Qa = W(Ga), eo = Se("app-oidc", () => {
1451
+ const t = Ce({});
1454
1452
  return {
1455
- setCallback: (u) => {
1456
- t.callback = u;
1457
- },
1458
- callCallback: async () => {
1459
- t.callback && await t.callback();
1460
- },
1461
- setError: (u) => {
1462
- t.error = u;
1463
- },
1464
- callError: async (u, x) => {
1465
- t.error && await t.error(u, x);
1466
- }
1453
+ setCallback: (c) => t.callback = c,
1454
+ callCallback: async (c) => await t.callback?.(c),
1455
+ setError: (c) => t.error = c,
1456
+ callError: async (c, x) => await t.error?.(c, x)
1467
1457
  };
1468
1458
  }), to = { class: "view-auth-callback" }, ao = /* @__PURE__ */ A({
1469
1459
  __name: "POidc",
1470
1460
  setup(t) {
1471
- const r = ne(), { callCallback: c, callError: h } = eo();
1461
+ const r = ne(), { callCallback: d, callError: h } = eo();
1472
1462
  return X(async () => {
1473
1463
  try {
1474
- await c();
1475
- } catch (p) {
1476
- console.error("OIDC回调处理失败:", p), await h(r, p);
1464
+ await d(r);
1465
+ } catch (g) {
1466
+ await h(r, g);
1477
1467
  }
1478
- }), (p, u) => (b(), N("div", to, [...u[0] || (u[0] = [
1479
- y("div", { class: "view-auth-callback-content" }, [
1480
- y("div", { class: "view-auth-callback-spinner" }, [
1481
- y("span", null, "正在处理登录回调...")
1468
+ }), (g, c) => (y(), N("div", to, [...c[0] || (c[0] = [
1469
+ b("div", { class: "view-auth-callback-content" }, [
1470
+ b("div", { class: "view-auth-callback-spinner" }, [
1471
+ b("span", null, "正在处理登录回调...")
1482
1472
  ])
1483
1473
  ], -1)
1484
1474
  ])]));
1485
1475
  }
1486
- }), oo = /* @__PURE__ */ H(ao, [["__scopeId", "data-v-9af221fc"]]), no = W(oo), lo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1476
+ }), oo = /* @__PURE__ */ H(ao, [["__scopeId", "data-v-167395ae"]]), no = W(oo), lo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1487
1477
  __proto__: null,
1488
1478
  P403: Qa,
1489
1479
  P404: Za,
@@ -1497,8 +1487,8 @@ const Ga = /* @__PURE__ */ H(Ka, [["render", Xa], ["__scopeId", "data-v-3a660eda
1497
1487
  POidc: no,
1498
1488
  PRedirect: Ra,
1499
1489
  PTable: Ft
1500
- }, Symbol.toStringTag, { value: "Module" })), so = (t, r) => (Object.values(lo).forEach((c) => {
1501
- c.install && t.use(c);
1490
+ }, Symbol.toStringTag, { value: "Module" })), so = (t, r) => (Object.values(lo).forEach((d) => {
1491
+ d.install && t.use(d);
1502
1492
  }), r?.(), t), mo = {
1503
1493
  install: so
1504
1494
  };