@skyfox2000/webui 1.6.3 → 1.6.5

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.
@@ -1,8 +1,8 @@
1
1
  import { defineComponent as _, onMounted as I, createBlock as s, openBlock as o, unref as e, withCtx as l, createCommentVNode as r, createVNode as p, createElementVNode as x, createElementBlock as y, toDisplayString as g, renderSlot as h } from "vue";
2
2
  import { Layout as i, LayoutSider as k } from "ant-design-vue";
3
- import { a as b } from "./toolIcon-DTZ86PSe.js";
4
- import { I as C, _ as S, f as w, d as $, g as N } from "./menuTabs-DGAhbfbK.js";
5
- import { al as v, a as B, an as E } from "./upload-template-2YQlEeTh.js";
3
+ import { a as b } from "./toolIcon-BGdGDnFx.js";
4
+ import { I as C, _ as S, f as w, d as $, g as N } from "./menuTabs-VaUjCTnJ.js";
5
+ import { al as v, a as B, an as E } from "./upload-template-CRGikg1L.js";
6
6
  import "@skyfox2000/microbase";
7
7
  import "@skyfox2000/fapi";
8
8
  import L from "vue-m-message";
@@ -4,7 +4,7 @@ var h = (i, e, a) => U(i, typeof e != "symbol" ? e + "" : e, a);
4
4
  import { hostUrl as E } from "@skyfox2000/fapi";
5
5
  import m from "dayjs";
6
6
  import f from "vue-m-message";
7
- import { $ as n, M as y, u as F } from "./upload-template-2YQlEeTh.js";
7
+ import { $ as n, M as y, u as F } from "./upload-template-CRGikg1L.js";
8
8
  import { isMicroApp as g } from "@skyfox2000/microbase";
9
9
  var l = /* @__PURE__ */ ((i) => (i.Pending = "pending", i.Uploading = "uploading", i.Success = "success", i.Error = "error", i.Online = "online", i.Offline = "offline", i))(l || {});
10
10
  class M {
@@ -1,8 +1,8 @@
1
1
  import { defineComponent as B, provide as N, ref as A, watch as m, onMounted as V, createBlock as r, openBlock as d, unref as o, withCtx as n, createElementVNode as $, renderSlot as C, createVNode as D, createCommentVNode as u, createTextVNode as v, toDisplayString as f } from "vue";
2
- import { _ as c } from "./index-DP43BJ_M.js";
2
+ import { _ as c } from "./index-bB6T2Hyg.js";
3
3
  import { Modal as E, Space as M } from "ant-design-vue";
4
4
  import "@skyfox2000/fapi";
5
- import { P, d as K, $ as p, o as U, b as j } from "./upload-template-2YQlEeTh.js";
5
+ import { P, d as K, $ as p, o as U, b as j } from "./upload-template-CRGikg1L.js";
6
6
  import "vue-m-message";
7
7
  import "@skyfox2000/microbase";
8
8
  import "async-validator";
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as d, useAttrs as f, createElementBlock as u, openBlock as x, createVNode as e, withCtx as n, unref as o, mergeProps as r, renderSlot as p } from "vue";
2
2
  import { Button as _ } from "ant-design-vue";
3
- import { a as P, _ as k } from "./toolIcon-DTZ86PSe.js";
3
+ import { a as P, _ as k } from "./toolIcon-BGdGDnFx.js";
4
4
  const C = /* @__PURE__ */ d({
5
5
  inheritAttrs: !1,
6
6
  __name: "index",
@@ -1,10 +1,10 @@
1
1
  import H from "async-validator";
2
2
  import { httpPost as $, ResStatus as M } from "@skyfox2000/fapi";
3
- import { $ as d, i as U, av as V, L as j, u as T } from "./upload-template-2YQlEeTh.js";
3
+ import { $ as d, i as U, av as V, L as j, u as T } from "./upload-template-CRGikg1L.js";
4
4
  import E from "vue-m-message";
5
5
  import { defineComponent as S, useAttrs as B, createElementBlock as P, openBlock as y, createVNode as z, unref as v, mergeProps as _, computed as x, createBlock as D, withCtx as A, normalizeStyle as N } from "vue";
6
6
  import { Spin as L, Alert as O } from "ant-design-vue";
7
- import { _ as K } from "./toolIcon-DTZ86PSe.js";
7
+ import { _ as K } from "./toolIcon-BGdGDnFx.js";
8
8
  const W = (l) => {
9
9
  const e = l.split(`
10
10
  `).filter((i) => i.trim() !== "");
@@ -1,8 +1,8 @@
1
- import { defineComponent as x, createBlock as y, createCommentVNode as b, openBlock as l, unref as t, mergeProps as $, useAttrs as Y, computed as j, ref as v, watch as w, withCtx as m, createElementBlock as g, normalizeStyle as T, createElementVNode as f, inject as Z, onMounted as P, createVNode as r, toDisplayString as C, Fragment as L, renderList as U, createTextVNode as G, reactive as Q, nextTick as X, withModifiers as ee } from "vue";
2
- import { a as A, _ as k } from "./toolIcon-DTZ86PSe.js";
3
- import { c as D, Y as E, an as M, a1 as K, a0 as R, at as F, u as H, $ as S, M as te, as as V, au as ne, a as q, Z as oe, r as J, al as B } from "./upload-template-2YQlEeTh.js";
1
+ import { defineComponent as x, createBlock as _, createCommentVNode as h, openBlock as c, unref as t, mergeProps as $, useAttrs as Y, computed as O, ref as b, watch as S, withCtx as m, createElementBlock as f, normalizeStyle as T, createElementVNode as g, inject as Z, onMounted as P, createVNode as u, toDisplayString as C, Fragment as L, renderList as U, createTextVNode as G, reactive as Q, nextTick as X, withModifiers as ee } from "vue";
2
+ import { a as A, _ as k } from "./toolIcon-BGdGDnFx.js";
3
+ import { c as D, Y as j, an as E, a1 as K, a0 as R, at as F, u as H, $ as w, M as te, as as V, au as ne, a as q, Z as oe, r as J, al as B } from "./upload-template-CRGikg1L.js";
4
4
  import { _ as se } from "./_plugin-vue_export-helper-CHgC5LLL.js";
5
- import { theme as O, Breadcrumb as ie, Modal as ae, Flex as ce, Dropdown as le, Menu as W, MenuItem as re, LayoutHeader as ue, Space as pe, Tabs as de, TabPane as me } from "ant-design-vue";
5
+ import { theme as M, Breadcrumb as ie, Modal as ae, Flex as ce, Dropdown as le, Menu as W, MenuItem as re, LayoutHeader as ue, Space as pe, Tabs as de, TabPane as me } from "ant-design-vue";
6
6
  import { isMicroApp as fe } from "@skyfox2000/microbase";
7
7
  import { SERVER_HOST as N } from "@skyfox2000/fapi";
8
8
  import "vue-m-message";
@@ -16,18 +16,18 @@ const ge = /* @__PURE__ */ x({
16
16
  type: String
17
17
  }
18
18
  },
19
- setup(c) {
20
- const o = c, e = D({
19
+ setup(l) {
20
+ const o = l, e = D({
21
21
  iconUrl: `${N.APP_ICONS}`,
22
22
  icon: o.icon
23
23
  });
24
- return (u, i) => c.icon ? (l(), y(t(e), $({
24
+ return (r, i) => l.icon ? (c(), _(t(e), $({
25
25
  key: 0,
26
- icon: c.icon,
26
+ icon: l.icon,
27
27
  class: ["text-2xl", "align-middle", "w-6", "h-6"]
28
- }, u.$attrs), null, 16, ["icon"])) : b("", !0);
28
+ }, r.$attrs), null, 16, ["icon"])) : h("", !0);
29
29
  }
30
- }), xe = ["xlink:href"], _e = /* @__PURE__ */ x({
30
+ }), _e = ["xlink:href"], xe = /* @__PURE__ */ x({
31
31
  inheritAttrs: !1,
32
32
  __name: "index",
33
33
  props: {
@@ -271,55 +271,55 @@ const ge = /* @__PURE__ */ x({
271
271
  */
272
272
  "update:iconIndex"
273
273
  ],
274
- setup(c, { emit: o }) {
275
- const s = Y(), e = c, u = o, i = j(() => {
274
+ setup(l, { emit: o }) {
275
+ const s = Y(), e = l, r = o, i = O(() => {
276
276
  if (Array.isArray(e.size)) return e.size;
277
277
  {
278
278
  let a = e.size;
279
279
  return [a, a];
280
280
  }
281
- }), n = v(e.icon), p = v(e.iconIndex);
282
- w(
281
+ }), n = b(e.icon), p = b(e.iconIndex);
282
+ S(
283
283
  () => e.icon,
284
284
  (a) => {
285
285
  n.value = a;
286
286
  }
287
- ), w(
287
+ ), S(
288
288
  () => e.iconIndex,
289
289
  (a) => {
290
290
  p.value = a, n.value = e.icons[a];
291
291
  }
292
292
  );
293
- const d = j({
293
+ const d = O({
294
294
  get() {
295
295
  return p.value;
296
296
  },
297
297
  set(a) {
298
- p.value = a, u("update:iconIndex", p.value);
298
+ p.value = a, r("update:iconIndex", p.value);
299
299
  }
300
300
  });
301
301
  e.icons.length > 0 ? (d.value = d.value >= e.icons.length ? 0 : d.value, n.value = e.icons[p.value]) : n.value = e.icon;
302
302
  const I = (a) => {
303
303
  if (a.stopPropagation(), e.clickEvent) {
304
- const h = e.clickEvent.split("#");
305
- h.length === 2 && Z("$" + h[0]).$emit(h[1], e.data);
304
+ const v = e.clickEvent.split("#");
305
+ v.length === 2 && Z("$" + v[0]).$emit(v[1], e.data);
306
306
  }
307
- e.autoSwitch && e.icons.length > 0 && (d.value = (d.value + 1) % e.icons.length, n.value = e.icons[p.value]), u("click");
308
- }, _ = () => {
307
+ e.autoSwitch && e.icons.length > 0 && (d.value = (d.value + 1) % e.icons.length, n.value = e.icons[p.value]), r("click");
308
+ }, y = () => {
309
309
  let a = "";
310
310
  return e.spin && (a += "rotate"), e.flip && (a += " flip"), a;
311
311
  };
312
- return (a, h) => (l(), y(A, {
312
+ return (a, v) => (c(), _(A, {
313
313
  title: e.tiptext,
314
314
  disabled: e.tiptext ? void 0 : "disabled",
315
- color: c.tipcolor,
316
- placement: c.placement,
317
- size: c.tipsize
315
+ color: l.tipcolor,
316
+ placement: l.placement,
317
+ size: l.tipsize
318
318
  }, {
319
319
  default: m(() => {
320
320
  var z;
321
321
  return [
322
- n.value ? (l(), g("div", {
322
+ n.value ? (c(), f("div", {
323
323
  key: 0,
324
324
  class: "re-icon-container",
325
325
  style: T({
@@ -327,41 +327,41 @@ const ge = /* @__PURE__ */ x({
327
327
  height: i.value[1].toString()
328
328
  })
329
329
  }, [
330
- (z = n.value) != null && z.startsWith("sym-") ? (l(), g("svg", $({ key: 1 }, t(s), {
331
- class: ["re-icon symbol", [e.clickable ? "clickable" : "", _(), e.className]],
330
+ (z = n.value) != null && z.startsWith("sym-") ? (c(), f("svg", $({ key: 1 }, t(s), {
331
+ class: ["re-icon symbol", [e.clickable ? "clickable" : "", y(), e.className]],
332
332
  "aria-hidden": "true",
333
333
  style: {
334
334
  top: e.position ? e.position[1] : 0,
335
335
  left: e.position ? e.position[0] : 0,
336
336
  fontSize: e.fontsize,
337
337
  transformOrigin: e.center ?? "center center",
338
- transform: t(E)(),
338
+ transform: t(j)(),
339
339
  color: e.color
340
340
  }
341
341
  }), [
342
- f("use", {
342
+ g("use", {
343
343
  "xlink:href": "#icon-" + n.value.replace("sym-", "")
344
- }, null, 8, xe)
345
- ], 16)) : (l(), g("i", $({ key: 0 }, t(s), {
346
- class: ["re-icon iconfont fontclass", [e.clickable ? "clickable" : "", "icon-" + n.value, _(), e.className]],
344
+ }, null, 8, _e)
345
+ ], 16)) : (c(), f("i", $({ key: 0 }, t(s), {
346
+ class: ["re-icon iconfont fontclass", [e.clickable ? "clickable" : "", "icon-" + n.value, y(), e.className]],
347
347
  style: {
348
348
  top: e.position ? e.position[1] : 1,
349
349
  left: e.position ? e.position[0] : 0,
350
350
  fontSize: e.fontsize,
351
351
  transformOrigin: e.center ?? "center center",
352
- transform: t(E)(e.angle, e.flip),
352
+ transform: t(j)(e.angle, e.flip),
353
353
  color: e.color
354
354
  },
355
355
  "aria-hidden": "true",
356
356
  onClick: I
357
357
  }), null, 16))
358
- ], 4)) : b("", !0)
358
+ ], 4)) : h("", !0)
359
359
  ];
360
360
  }),
361
361
  _: 1
362
362
  }, 8, ["title", "disabled", "color", "placement", "size"]));
363
363
  }
364
- }), Je = /* @__PURE__ */ se(_e, [["__scopeId", "data-v-0146f00c"]]), ye = /* @__PURE__ */ x({
364
+ }), We = /* @__PURE__ */ se(xe, [["__scopeId", "data-v-0146f00c"]]), ye = /* @__PURE__ */ x({
365
365
  __name: "projectIcon",
366
366
  props: {
367
367
  icon: {
@@ -378,66 +378,66 @@ const ge = /* @__PURE__ */ x({
378
378
  default: !0
379
379
  }
380
380
  },
381
- setup(c) {
382
- const o = c, e = D({
381
+ setup(l) {
382
+ const o = l, e = D({
383
383
  iconUrl: `${o.iconUrl ?? N.PROJECT_ICONS ?? N.TOOL_ICONS}`,
384
384
  monoColor: o.monoColor,
385
385
  icon: o.icon,
386
386
  icons: o.icons
387
387
  });
388
- return (u, i) => c.icon || c.icons ? (l(), y(t(e), $({
388
+ return (r, i) => l.icon || l.icons ? (c(), _(t(e), $({
389
389
  key: 0,
390
- icon: c.icon,
391
- icons: c.icons,
390
+ icon: l.icon,
391
+ icons: l.icons,
392
392
  class: ["align-middle"]
393
- }, u.$attrs), null, 16, ["icon", "icons"])) : b("", !0);
393
+ }, r.$attrs), null, 16, ["icon", "icons"])) : h("", !0);
394
394
  }
395
395
  }), he = { class: "text-xs leading-[3]" }, ve = {
396
396
  key: 0,
397
397
  class: "leading-[2.5] mx-[6px] text-[rgba(0,0,0,0.45)]"
398
398
  }, be = /* @__PURE__ */ x({
399
399
  __name: "index",
400
- setup(c) {
401
- const { useToken: o } = O, { token: s } = o(), e = M();
402
- return w(
400
+ setup(l) {
401
+ const { useToken: o } = M, { token: s } = o(), e = E();
402
+ return S(
403
403
  () => e.TabActive,
404
404
  () => K()
405
405
  ), P(() => {
406
406
  K();
407
- }), (u, i) => (l(), g("div", {
407
+ }), (r, i) => (c(), f("div", {
408
408
  class: "ml-5 h-fit p-0 flex items-center justify-between",
409
409
  style: T({
410
410
  backgroundColor: t(s).colorBgContainer
411
411
  })
412
412
  }, [
413
- r(t(k), {
413
+ u(t(k), {
414
414
  icon: "icon-home",
415
415
  class: "w-[15px] h-[15px]"
416
416
  }),
417
- i[0] || (i[0] = f("span", { class: "leading-[2.5] mx-[6px] text-[rgba(0,0,0,0.45)]" }, ">", -1)),
418
- r(t(ie), {
417
+ i[0] || (i[0] = g("span", { class: "leading-[2.5] mx-[6px] text-[rgba(0,0,0,0.45)]" }, ">", -1)),
418
+ u(t(ie), {
419
419
  routes: t(R),
420
420
  separator: ""
421
421
  }, {
422
422
  itemRender: m(({ route: n }) => [
423
- f("span", he, C(n.breadcrumbName), 1),
424
- r(t(k), {
423
+ g("span", he, C(n.breadcrumbName), 1),
424
+ u(t(k), {
425
425
  icon: n.icon,
426
426
  fontsize: "15px"
427
427
  }, null, 8, ["icon"]),
428
- n.index < t(R).length - 1 ? (l(), g("span", ve, ">")) : b("", !0)
428
+ n.index < t(R).length - 1 ? (c(), f("span", ve, ">")) : h("", !0)
429
429
  ]),
430
430
  _: 1
431
431
  }, 8, ["routes"])
432
432
  ], 4));
433
433
  }
434
- }), ke = { class: "font-['Courier'] text-[#666]" }, Se = /* @__PURE__ */ x({
434
+ }), ke = { class: "font-['Courier'] text-[#666]" }, we = /* @__PURE__ */ x({
435
435
  __name: "index",
436
- setup(c) {
437
- const o = v("");
436
+ setup(l) {
437
+ const o = b("");
438
438
  return P(() => {
439
439
  setInterval(() => {
440
- const s = /* @__PURE__ */ new Date(), e = F(), u = {
440
+ const s = /* @__PURE__ */ new Date(), e = F(), r = {
441
441
  year: "numeric",
442
442
  month: "2-digit",
443
443
  day: "2-digit",
@@ -446,53 +446,53 @@ const ge = /* @__PURE__ */ x({
446
446
  second: "2-digit",
447
447
  hour12: !1
448
448
  };
449
- o.value = s.toLocaleString(e, u);
449
+ o.value = s.toLocaleString(e, r);
450
450
  }, 1e3);
451
- }), (s, e) => (l(), g("div", ke, C(o.value), 1));
451
+ }), (s, e) => (c(), f("div", ke, C(o.value), 1));
452
452
  }
453
- }), we = { style: { margin: "0 0 0 20px", "font-weight": "400", "font-size": "16px" } }, Ce = /* @__PURE__ */ x({
453
+ }), Se = { style: { margin: "0 0 0 20px", "font-weight": "400", "font-size": "16px" } }, Ce = /* @__PURE__ */ x({
454
454
  __name: "headerExits",
455
- setup(c) {
456
- const o = H(), s = v(!1), e = () => {
455
+ setup(l) {
456
+ const o = H(), s = b(!1), e = () => {
457
457
  s.value = !1, fe() ? te.userLogout() : o.logout(!0);
458
458
  };
459
- return (u, i) => (l(), g(L, null, [
460
- r(t(A), {
461
- title: t(S)("webui.components.layout.header.exitPlatform")
459
+ return (r, i) => (c(), f(L, null, [
460
+ u(t(A), {
461
+ title: t(w)("webui.components.layout.header.exitPlatform")
462
462
  }, {
463
463
  default: m(() => [
464
- r(t(k), {
464
+ u(t(k), {
465
465
  icon: "icon-logout",
466
466
  onClick: i[0] || (i[0] = (n) => s.value = !0),
467
467
  clickable: "",
468
468
  class: "w-5 h-5",
469
- title: t(S)("webui.components.layout.header.exitSystem")
469
+ title: t(w)("webui.components.layout.header.exitSystem")
470
470
  }, null, 8, ["title"])
471
471
  ]),
472
472
  _: 1
473
473
  }, 8, ["title"]),
474
- r(t(ae), {
474
+ u(t(ae), {
475
475
  open: s.value,
476
476
  "onUpdate:open": i[1] || (i[1] = (n) => s.value = n),
477
- title: t(S)("webui.components.layout.header.confirmExit"),
478
- "ok-text": t(S)("webui.common.confirm"),
479
- "cancel-text": t(S)("webui.common.cancel"),
477
+ title: t(w)("webui.components.layout.header.confirmExit"),
478
+ "ok-text": t(w)("webui.common.confirm"),
479
+ "cancel-text": t(w)("webui.common.cancel"),
480
480
  width: 380,
481
481
  onOk: e
482
482
  }, {
483
483
  default: m(() => [
484
- r(t(ce), {
484
+ u(t(ce), {
485
485
  align: "center",
486
486
  justify: "flex-start",
487
487
  style: { padding: "0 32px", margin: "20px 0" }
488
488
  }, {
489
489
  default: m(() => [
490
- r(t(k), {
490
+ u(t(k), {
491
491
  icon: "icon-question-circle",
492
492
  color: "orange",
493
493
  class: "w-[60px] h-[60px]"
494
494
  }),
495
- f("div", we, C(t(S)("webui.components.layout.header.exitConfirmMessage")), 1)
495
+ g("div", Se, C(t(w)("webui.components.layout.header.exitConfirmMessage")), 1)
496
496
  ]),
497
497
  _: 1
498
498
  })
@@ -503,15 +503,15 @@ const ge = /* @__PURE__ */ x({
503
503
  }
504
504
  }), Ie = { class: "flex items-center flex-nowrap" }, $e = { class: "mr-2 text-sm whitespace-nowrap" }, Te = /* @__PURE__ */ x({
505
505
  __name: "user",
506
- setup(c) {
506
+ setup(l) {
507
507
  const o = H().userInfo;
508
- return (s, e) => (l(), y(t(A), {
508
+ return (s, e) => (c(), _(t(A), {
509
509
  title: t(o).Name
510
510
  }, {
511
511
  default: m(() => [
512
- f("div", Ie, [
513
- f("span", $e, C(t(o).Name), 1),
514
- r(t(ge), { icon: "icon-account" })
512
+ g("div", Ie, [
513
+ g("span", $e, C(t(o).Name), 1),
514
+ u(t(ge), { icon: "icon-account" })
515
515
  ])
516
516
  ]),
517
517
  _: 1
@@ -519,24 +519,24 @@ const ge = /* @__PURE__ */ x({
519
519
  }
520
520
  }), Ae = { class: "flex items-center cursor-pointer" }, ze = /* @__PURE__ */ x({
521
521
  __name: "language",
522
- setup(c) {
523
- const o = V(), s = v(F()), e = o.length > 0, u = async (i) => {
522
+ setup(l) {
523
+ const o = V(), s = b(F()), e = o.length > 0, r = async (i) => {
524
524
  try {
525
525
  await ne(i), s.value = i, window.location.reload();
526
526
  } catch (n) {
527
527
  console.error("Failed to change language:", n);
528
528
  }
529
529
  };
530
- return (i, n) => e ? (l(), y(t(le), {
530
+ return (i, n) => e ? (c(), _(t(le), {
531
531
  key: 0,
532
532
  placement: "bottomRight"
533
533
  }, {
534
534
  overlay: m(() => [
535
- r(t(W), null, {
535
+ u(t(W), null, {
536
536
  default: m(() => [
537
- (l(!0), g(L, null, U(t(o), (p) => (l(), y(t(re), {
537
+ (c(!0), f(L, null, U(t(o), (p) => (c(), _(t(re), {
538
538
  key: p.key,
539
- onClick: (d) => u(p.key)
539
+ onClick: (d) => r(p.key)
540
540
  }, {
541
541
  default: m(() => [
542
542
  G(C(p.label), 1)
@@ -548,26 +548,29 @@ const ge = /* @__PURE__ */ x({
548
548
  })
549
549
  ]),
550
550
  default: m(() => [
551
- f("div", Ae, [
552
- r(t(k), {
551
+ g("div", Ae, [
552
+ u(t(k), {
553
553
  icon: "icon-language",
554
554
  class: "w-[18px] h-[18px]"
555
555
  })
556
556
  ])
557
557
  ]),
558
558
  _: 1
559
- })) : b("", !0);
559
+ })) : h("", !0);
560
560
  }
561
561
  }), Be = { class: "flex items-center" }, Ne = {
562
562
  key: 1,
563
563
  class: "w-[1px] h-[16px] bg-[#d9d9d9] mx-[3px]"
564
- }, We = /* @__PURE__ */ x({
564
+ }, Pe = {
565
+ key: 2,
566
+ class: "w-[1px] h-[16px] bg-[#d9d9d9] mx-[3px]"
567
+ }, Ye = /* @__PURE__ */ x({
565
568
  __name: "index",
566
- setup(c) {
567
- const { useToken: o } = O, { token: s } = o(), e = q(), u = () => {
569
+ setup(l) {
570
+ const { useToken: o } = M, { token: s } = o(), e = q(), r = () => {
568
571
  e.setMenuCollapse(!e.menuCollapse);
569
- }, i = V().length > 1;
570
- return (n, p) => (l(), y(t(ue), {
572
+ }, i = (e.showLanguage ?? !0) && V().length > 1;
573
+ return (n, p) => (c(), _(t(ue), {
571
574
  class: "w-full relative z-[1] shadow-[0_-3px_6px_#000] py-0 flex items-center justify-between",
572
575
  style: T({
573
576
  height: "40px",
@@ -578,29 +581,29 @@ const ge = /* @__PURE__ */ x({
578
581
  })
579
582
  }, {
580
583
  default: m(() => [
581
- f("div", Be, [
582
- r(t(k), {
584
+ g("div", Be, [
585
+ u(t(k), {
583
586
  icon: "icon-menu",
584
587
  clickable: "",
585
588
  class: "w-[18px] h-[18px]",
586
589
  angle: t(e).menuCollapse ? 90 : 0,
587
- onClick: u
590
+ onClick: r
588
591
  }, null, 8, ["angle"]),
589
- r(be)
592
+ u(be)
590
593
  ]),
591
- f("div", null, [
592
- r(t(pe), {
594
+ g("div", null, [
595
+ u(t(pe), {
593
596
  size: "middle",
594
597
  class: "flex items-center"
595
598
  }, {
596
599
  default: m(() => [
597
- r(Se),
598
- p[0] || (p[0] = f("div", { class: "w-[1px] h-[16px] bg-[#d9d9d9] mx-[3px]" }, null, -1)),
599
- i ? (l(), y(ze, { key: 0 })) : b("", !0),
600
- i ? (l(), g("div", Ne)) : b("", !0),
601
- r(Te),
602
- p[1] || (p[1] = f("div", { class: "w-[1px] h-[16px] bg-[#d9d9d9] mx-[3px]" }, null, -1)),
603
- r(Ce)
600
+ u(we),
601
+ p[0] || (p[0] = g("div", { class: "w-[1px] h-[16px] bg-[#d9d9d9] mx-[3px]" }, null, -1)),
602
+ t(i) ? (c(), _(ze, { key: 0 })) : h("", !0),
603
+ t(i) ? (c(), f("div", Ne)) : h("", !0),
604
+ u(Te),
605
+ t(e).showExit ? (c(), f("div", Pe)) : h("", !0),
606
+ t(e).showExit ? (c(), _(Ce, { key: 3 })) : h("", !0)
604
607
  ]),
605
608
  _: 1
606
609
  })
@@ -609,95 +612,95 @@ const ge = /* @__PURE__ */ x({
609
612
  _: 1
610
613
  }, 8, ["style"]));
611
614
  }
612
- }), Ye = /* @__PURE__ */ x({
615
+ }), Ze = /* @__PURE__ */ x({
613
616
  __name: "index",
614
617
  props: {
615
618
  routes: {}
616
619
  },
617
- setup(c) {
618
- const o = c, s = v([]), e = v([]), u = Q([]), i = M(), n = (_) => {
619
- B().push(_.key.toString());
620
- }, p = q(), d = v([]), I = () => {
621
- let _ = i.TabActive;
622
- const a = _.split("/");
623
- a.pop(), s.value = [a.join("/")], p.menuCollapse || (d.value = [a.join("/")]), e.value = [_];
620
+ setup(l) {
621
+ const o = l, s = b([]), e = b([]), r = Q([]), i = E(), n = (y) => {
622
+ B().push(y.key.toString());
623
+ }, p = q(), d = b([]), I = () => {
624
+ let y = i.TabActive;
625
+ const a = y.split("/");
626
+ a.pop(), s.value = [a.join("/")], p.menuCollapse || (d.value = [a.join("/")]), e.value = [y];
624
627
  };
625
- return w(
628
+ return S(
626
629
  () => p.menuCollapse,
627
- (_) => {
628
- _ || (d.value = [], X(() => {
630
+ (y) => {
631
+ y || (d.value = [], X(() => {
629
632
  d.value = [...s.value];
630
633
  }));
631
634
  }
632
- ), w(
635
+ ), S(
633
636
  () => i.TabActive,
634
637
  () => {
635
638
  I();
636
639
  }
637
640
  ), P(() => {
638
- oe(o.routes, u, ye, { class: "!w-5 !h-5" }), i.setTabActive(J.currentRoute.value.path), I();
639
- }), (_, a) => (l(), y(t(W), {
641
+ oe(o.routes, r, ye, { class: "!w-5 !h-5" }), i.setTabActive(J.currentRoute.value.path), I();
642
+ }), (y, a) => (c(), _(t(W), {
640
643
  openKeys: d.value,
641
- "onUpdate:openKeys": a[0] || (a[0] = (h) => d.value = h),
644
+ "onUpdate:openKeys": a[0] || (a[0] = (v) => d.value = v),
642
645
  selectedKeys: e.value,
643
- "onUpdate:selectedKeys": a[1] || (a[1] = (h) => e.value = h),
646
+ "onUpdate:selectedKeys": a[1] || (a[1] = (v) => e.value = v),
644
647
  mode: "inline",
645
648
  theme: "dark",
646
- items: u,
649
+ items: r,
647
650
  onClick: n
648
651
  }, null, 8, ["openKeys", "selectedKeys", "items"]));
649
652
  }
650
- }), Pe = { class: "flex items-center" }, Le = { class: "flex" }, Me = ["onClick"], Ze = /* @__PURE__ */ x({
653
+ }), Le = { class: "flex items-center" }, Ee = { class: "flex" }, Me = ["onClick"], Ge = /* @__PURE__ */ x({
651
654
  __name: "menuTabs",
652
- setup(c) {
653
- const { useToken: o } = O, { token: s } = o(), e = M();
654
- w(
655
+ setup(l) {
656
+ const { useToken: o } = M, { token: s } = o(), e = E();
657
+ S(
655
658
  () => J.currentRoute.value.path,
656
659
  (n) => {
657
660
  n !== e.TabActive && e.setTabActive(n);
658
661
  }
659
662
  );
660
- const u = (n) => {
663
+ const r = (n) => {
661
664
  B().push(n);
662
665
  }, i = (n) => {
663
666
  e.removeTabPane(n), B().push(e.TabActive);
664
667
  };
665
- return (n, p) => (l(), g("div", {
668
+ return (n, p) => (c(), f("div", {
666
669
  style: T({ height: "38px", backgroundColor: t(s).colorBgBase })
667
670
  }, [
668
- r(t(de), {
671
+ u(t(de), {
669
672
  activeKey: t(e).TabActive,
670
673
  "hide-add": "",
671
674
  size: "small",
672
675
  tabBarStyle: { padding: "0 20px" },
673
- onTabClick: u
676
+ onTabClick: r
674
677
  }, {
675
678
  default: m(() => [
676
- (l(!0), g(L, null, U(t(e).TabPanes, (d) => (l(), y(t(me), {
679
+ (c(!0), f(L, null, U(t(e).TabPanes, (d) => (c(), _(t(me), {
677
680
  key: d.key
678
681
  }, {
679
682
  tab: m(() => [
680
- f("div", Pe, [
681
- f("span", Le, C(d.title), 1),
682
- r(t(A), {
683
+ g("div", Le, [
684
+ g("span", Ee, C(d.title), 1),
685
+ u(t(A), {
683
686
  title: n.$t("webui.common.close"),
684
687
  placement: "top",
685
688
  size: "small"
686
689
  }, {
687
690
  default: m(() => [
688
- t(e).TabPanes.length > 1 && d.closable ? (l(), g("div", {
691
+ t(e).TabPanes.length > 1 && d.closable ? (c(), f("div", {
689
692
  key: 0,
690
693
  class: "inline-block mx-auto relative flex items-center",
691
694
  onClick: ee((I) => i(d.key), ["stop"])
692
695
  }, [
693
- r(t(k), {
696
+ u(t(k), {
694
697
  icon: "icon-new",
695
698
  angle: 45,
696
699
  clickable: "",
697
700
  class: "w-[15px] h-[15px] ml-1",
698
701
  tipcolor: t(s).colorBgSpotlight
699
702
  }, null, 8, ["tipcolor"])
700
- ], 8, Me)) : b("", !0)
703
+ ], 8, Me)) : h("", !0)
701
704
  ]),
702
705
  _: 2
703
706
  }, 1032, ["title"])
@@ -712,13 +715,13 @@ const ge = /* @__PURE__ */ x({
712
715
  }
713
716
  });
714
717
  export {
715
- Je as I,
718
+ We as I,
716
719
  ge as _,
717
720
  ye as a,
718
721
  be as b,
719
- Se as c,
720
- We as d,
722
+ we as c,
723
+ Ye as d,
721
724
  Ce as e,
722
- Ye as f,
723
- Ze as g
725
+ Ze as f,
726
+ Ge as g
724
727
  };