@chewel611/naive-ui-plus 0.0.26 → 0.0.28

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