@skyfox2000/webui 1.5.9 → 1.5.11

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.
Files changed (64) hide show
  1. package/lib/assets/modules/{baseLayout-DfTxHOFc.js → baseLayout-CRSIlLKU.js} +9 -9
  2. package/lib/assets/modules/file-upload-CrA5-gqr.js +211 -0
  3. package/lib/assets/modules/{index-BwMaOrJT.js → index-CA_H2eOk.js} +1 -1
  4. package/lib/assets/modules/index-CW7dVG4Z.js +372 -0
  5. package/lib/assets/modules/index-Doi0zREW.js +114 -0
  6. package/lib/assets/modules/{menuTabs-DWaBSRNr.js → menuTabs-DRoP9rnS.js} +65 -58
  7. package/lib/assets/modules/{toolIcon-BYnHhAy-.js → toolIcon-CghIoh0a.js} +1 -1
  8. package/lib/assets/modules/{upload-template-BKm9mFq8.js → upload-template-D6r6X3vP.js} +2093 -2197
  9. package/lib/assets/modules/uploadList-CIGuBEpz.js +468 -0
  10. package/lib/const/options.d.ts +6 -20
  11. package/lib/const/stores.d.ts +11 -0
  12. package/lib/es/AceEditor/index.js +70 -70
  13. package/lib/es/BasicLayout/index.js +6 -6
  14. package/lib/es/Error403/index.js +1 -1
  15. package/lib/es/Error404/index.js +1 -1
  16. package/lib/es/ExcelForm/index.js +197 -197
  17. package/lib/es/MenuLayout/index.js +6 -6
  18. package/lib/es/TemplateFile/index.js +5 -5
  19. package/lib/es/UploadForm/index.js +5 -5
  20. package/lib/index.d.ts +2 -1
  21. package/lib/locales/default.d.ts +152 -115
  22. package/lib/utils/tools.d.ts +1 -0
  23. package/lib/webui.css +1 -1
  24. package/lib/webui.es.js +1710 -1568
  25. package/package.json +3 -3
  26. package/src/components/content/dialog/excelForm.vue +2 -2
  27. package/src/components/content/form/formItem.vue +3 -2
  28. package/src/components/content/search/searchItem.vue +3 -2
  29. package/src/components/form/aceEditor/index.vue +5 -3
  30. package/src/components/form/cascader/index.vue +5 -3
  31. package/src/components/form/checkbox/index.vue +1 -1
  32. package/src/components/form/datePicker/index.vue +2 -1
  33. package/src/components/form/input/inputNumber.vue +3 -1
  34. package/src/components/form/input/inputPassword.vue +3 -1
  35. package/src/components/form/propEditor/index.vue +8 -3
  36. package/src/components/form/radio/index.vue +2 -1
  37. package/src/components/form/radio/radioStatus.vue +2 -1
  38. package/src/components/form/switch/index.vue +3 -1
  39. package/src/components/form/timePicker/index.vue +4 -1
  40. package/src/components/form/treeSelect/index.vue +3 -1
  41. package/src/components/form/upload/imageList.vue +8 -8
  42. package/src/components/form/upload/uploadList.vue +6 -8
  43. package/src/components/layout/datetime/index.vue +15 -4
  44. package/src/components/layout/header/language.vue +2 -0
  45. package/src/const/options.ts +76 -52
  46. package/src/const/stores.ts +58 -0
  47. package/src/index.ts +2 -0
  48. package/src/locales/default.ts +160 -123
  49. package/src/locales/en-US.json +4 -4
  50. package/src/locales/index.ts +109 -39
  51. package/src/stores/hostInfo.ts +2 -19
  52. package/src/stores/userInfo.ts +2 -30
  53. package/src/utils/data.ts +1 -1
  54. package/src/utils/excel-preview.ts +10 -10
  55. package/src/utils/excel-view.ts +6 -4
  56. package/src/utils/file-upload.ts +2 -2
  57. package/src/utils/micro-openapis.ts +4 -3
  58. package/src/utils/options.ts +2 -2
  59. package/src/utils/tools.ts +89 -84
  60. package/src/utils/upload-template.ts +2 -1
  61. package/lib/assets/modules/file-upload-DTOdV5vM.js +0 -211
  62. package/lib/assets/modules/index-DUBY49Au.js +0 -114
  63. package/lib/assets/modules/index-M1qERbea.js +0 -381
  64. package/lib/assets/modules/uploadList-CHvr6Hp1.js +0 -472
@@ -0,0 +1,114 @@
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-CA_H2eOk.js";
3
+ import { Modal as E, Space as M } from "ant-design-vue";
4
+ import "@skyfox2000/fapi";
5
+ import { P, d as K, $ as p, o as U, b as j } from "./upload-template-D6r6X3vP.js";
6
+ import "vue-m-message";
7
+ import "@skyfox2000/microbase";
8
+ import "async-validator";
9
+ import "dayjs";
10
+ import "vue-draggable-next";
11
+ const q = { class: "overflow-y-auto w-full h-full" }, X = /* @__PURE__ */ B({
12
+ __name: "index",
13
+ props: {
14
+ saveText: {},
15
+ saveAsText: {},
16
+ cancelText: {},
17
+ editorCtrl: {},
18
+ dialogSave: { type: Function },
19
+ dialogSaveAs: { type: Function },
20
+ width: {},
21
+ full: { type: Boolean },
22
+ open: { type: Boolean }
23
+ },
24
+ emits: ["update:open"],
25
+ setup(t, { emit: T }) {
26
+ const l = t, e = l.editorCtrl;
27
+ N(P.EditorControl, e);
28
+ const i = A(l.open ?? !1), b = T, h = A(l.width ?? 430);
29
+ m(
30
+ () => e == null ? void 0 : e.visible.value,
31
+ (a) => {
32
+ i.value = a ?? !1;
33
+ }
34
+ ), m(
35
+ () => l.open,
36
+ (a) => {
37
+ i.value = a;
38
+ }
39
+ ), m(
40
+ () => i.value,
41
+ (a) => {
42
+ b("update:open", a), a || g();
43
+ }
44
+ ), V(() => {
45
+ i.value = (e == null ? void 0 : e.visible.value) ?? !1;
46
+ });
47
+ const k = () => {
48
+ l.dialogSave ? l.dialogSave() : e && U(e);
49
+ }, F = () => {
50
+ l.dialogSaveAs ? l.dialogSaveAs() : e && j(e);
51
+ }, g = () => {
52
+ e ? K(e) : i.value = !1;
53
+ };
54
+ return (a, w) => (d(), r(o(E), {
55
+ open: i.value,
56
+ "onUpdate:open": w[0] || (w[0] = (s) => i.value = s),
57
+ wrapClassName: "modal mx-auto min-w-[430px] " + (t.full ? "full-modal w-full" : ""),
58
+ width: h.value
59
+ }, {
60
+ footer: n(() => [
61
+ C(a.$slots, "footer", {}, () => [
62
+ D(o(M), null, {
63
+ default: n(() => {
64
+ var s, S, x, y;
65
+ return [
66
+ t.cancelText !== "" ? (d(), r(o(c), {
67
+ key: 0,
68
+ onClick: g
69
+ }, {
70
+ default: n(() => [
71
+ v(f(t.cancelText ?? o(p)("webui.common.cancel")), 1)
72
+ ]),
73
+ _: 1
74
+ })) : u("", !0),
75
+ t.saveAsText !== "" && ((s = o(e)) == null ? void 0 : s.saveAsBtnVisible) !== !1 ? (d(), r(o(c), {
76
+ key: 1,
77
+ onClick: F,
78
+ type: "primary",
79
+ loading: (S = o(e)) == null ? void 0 : S.isFormSaving.value
80
+ }, {
81
+ default: n(() => [
82
+ v(f(t.saveAsText ?? o(p)("webui.common.saveAs")), 1)
83
+ ]),
84
+ _: 1
85
+ }, 8, ["loading"])) : u("", !0),
86
+ t.saveText !== "" && ((x = o(e)) == null ? void 0 : x.saveBtnVisible) !== !1 ? (d(), r(o(c), {
87
+ key: 2,
88
+ onClick: k,
89
+ type: "primary",
90
+ loading: (y = o(e)) == null ? void 0 : y.isFormSaving.value
91
+ }, {
92
+ default: n(() => [
93
+ v(f(t.saveText ?? o(p)("webui.common.save")), 1)
94
+ ]),
95
+ _: 1
96
+ }, 8, ["loading"])) : u("", !0)
97
+ ];
98
+ }),
99
+ _: 1
100
+ })
101
+ ])
102
+ ]),
103
+ default: n(() => [
104
+ $("div", q, [
105
+ C(a.$slots, "default")
106
+ ])
107
+ ]),
108
+ _: 3
109
+ }, 8, ["open", "wrapClassName", "width"]));
110
+ }
111
+ });
112
+ export {
113
+ X as _
114
+ };
@@ -1,15 +1,15 @@
1
- import { defineComponent as _, createBlock as y, createCommentVNode as b, openBlock as l, unref as t, mergeProps as $, useAttrs as W, computed as j, ref as h, watch as w, withCtx as m, createElementBlock as g, normalizeStyle as T, createElementVNode as f, inject as Y, 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 Z } from "vue";
2
- import { a as A, _ as k } from "./toolIcon-BYnHhAy-.js";
3
- import { c as D, a7 as E, av as O, aa as K, a9 as R, u as F, $ as S, T as ee, aA as H, aB as te, aC as ne, a as V, a8 as oe, r as q, at as B } from "./upload-template-BKm9mFq8.js";
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-CghIoh0a.js";
3
+ import { c as D, Y as E, am as M, a1 as K, a0 as R, as as F, u as H, $ as S, M as te, ar as V, at as ne, a as q, Z as oe, r as J, ak as B } from "./upload-template-D6r6X3vP.js";
4
4
  import { _ as se } from "./_plugin-vue_export-helper-CHgC5LLL.js";
5
- import { theme as M, Breadcrumb as ie, Modal as ae, Flex as ce, Dropdown as le, Menu as J, MenuItem as re, LayoutHeader as ue, Space as pe, Tabs as de, TabPane as me } from "ant-design-vue";
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";
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";
9
9
  import "async-validator";
10
10
  import "dayjs";
11
11
  import "vue-draggable-next";
12
- const ge = /* @__PURE__ */ _({
12
+ const ge = /* @__PURE__ */ x({
13
13
  __name: "appicon",
14
14
  props: {
15
15
  icon: {
@@ -27,7 +27,7 @@ const ge = /* @__PURE__ */ _({
27
27
  class: ["text-2xl", "align-middle", "w-6", "h-6"]
28
28
  }, u.$attrs), null, 16, ["icon"])) : b("", !0);
29
29
  }
30
- }), _e = ["xlink:href"], xe = /* @__PURE__ */ _({
30
+ }), xe = ["xlink:href"], _e = /* @__PURE__ */ x({
31
31
  inheritAttrs: !1,
32
32
  __name: "index",
33
33
  props: {
@@ -272,13 +272,13 @@ const ge = /* @__PURE__ */ _({
272
272
  "update:iconIndex"
273
273
  ],
274
274
  setup(c, { emit: o }) {
275
- const s = W(), e = c, u = o, i = j(() => {
275
+ const s = Y(), e = c, u = o, i = j(() => {
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 = h(e.icon), p = h(e.iconIndex);
281
+ }), n = v(e.icon), p = v(e.iconIndex);
282
282
  w(
283
283
  () => e.icon,
284
284
  (a) => {
@@ -301,15 +301,15 @@ const ge = /* @__PURE__ */ _({
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 v = e.clickEvent.split("#");
305
- v.length === 2 && Y("$" + v[0]).$emit(v[1], e.data);
304
+ const h = e.clickEvent.split("#");
305
+ h.length === 2 && Z("$" + h[0]).$emit(h[1], e.data);
306
306
  }
307
307
  e.autoSwitch && e.icons.length > 0 && (d.value = (d.value + 1) % e.icons.length, n.value = e.icons[p.value]), u("click");
308
- }, x = () => {
308
+ }, _ = () => {
309
309
  let a = "";
310
310
  return e.spin && (a += "rotate"), e.flip && (a += " flip"), a;
311
311
  };
312
- return (a, v) => (l(), y(A, {
312
+ return (a, h) => (l(), y(A, {
313
313
  title: e.tiptext,
314
314
  disabled: e.tiptext ? void 0 : "disabled",
315
315
  color: c.tipcolor,
@@ -328,7 +328,7 @@ const ge = /* @__PURE__ */ _({
328
328
  })
329
329
  }, [
330
330
  (z = n.value) != null && z.startsWith("sym-") ? (l(), g("svg", $({ key: 1 }, t(s), {
331
- class: ["re-icon symbol", [e.clickable ? "clickable" : "", x(), e.className]],
331
+ class: ["re-icon symbol", [e.clickable ? "clickable" : "", _(), e.className]],
332
332
  "aria-hidden": "true",
333
333
  style: {
334
334
  top: e.position ? e.position[1] : 0,
@@ -341,9 +341,9 @@ const ge = /* @__PURE__ */ _({
341
341
  }), [
342
342
  f("use", {
343
343
  "xlink:href": "#icon-" + n.value.replace("sym-", "")
344
- }, null, 8, _e)
344
+ }, null, 8, xe)
345
345
  ], 16)) : (l(), g("i", $({ key: 0 }, t(s), {
346
- class: ["re-icon iconfont fontclass", [e.clickable ? "clickable" : "", "icon-" + n.value, x(), e.className]],
346
+ class: ["re-icon iconfont fontclass", [e.clickable ? "clickable" : "", "icon-" + n.value, _(), e.className]],
347
347
  style: {
348
348
  top: e.position ? e.position[1] : 1,
349
349
  left: e.position ? e.position[0] : 0,
@@ -361,7 +361,7 @@ const ge = /* @__PURE__ */ _({
361
361
  _: 1
362
362
  }, 8, ["title", "disabled", "color", "placement", "size"]));
363
363
  }
364
- }), Je = /* @__PURE__ */ se(xe, [["__scopeId", "data-v-0146f00c"]]), ye = /* @__PURE__ */ _({
364
+ }), Je = /* @__PURE__ */ se(_e, [["__scopeId", "data-v-0146f00c"]]), ye = /* @__PURE__ */ x({
365
365
  __name: "projectIcon",
366
366
  props: {
367
367
  icon: {
@@ -392,13 +392,13 @@ const ge = /* @__PURE__ */ _({
392
392
  class: ["align-middle"]
393
393
  }, u.$attrs), null, 16, ["icon", "icons"])) : b("", !0);
394
394
  }
395
- }), ve = { class: "text-xs leading-[3]" }, he = {
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
- }, be = /* @__PURE__ */ _({
398
+ }, be = /* @__PURE__ */ x({
399
399
  __name: "index",
400
400
  setup(c) {
401
- const { useToken: o } = M, { token: s } = o(), e = O();
401
+ const { useToken: o } = O, { token: s } = o(), e = M();
402
402
  return w(
403
403
  () => e.TabActive,
404
404
  () => K()
@@ -420,33 +420,41 @@ const ge = /* @__PURE__ */ _({
420
420
  separator: ""
421
421
  }, {
422
422
  itemRender: m(({ route: n }) => [
423
- f("span", ve, C(n.breadcrumbName), 1),
423
+ f("span", he, C(n.breadcrumbName), 1),
424
424
  r(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", he, ">")) : b("", !0)
428
+ n.index < t(R).length - 1 ? (l(), g("span", ve, ">")) : b("", !0)
429
429
  ]),
430
430
  _: 1
431
431
  }, 8, ["routes"])
432
432
  ], 4));
433
433
  }
434
- }), ke = { class: "font-['Courier'] text-[#666]" }, Se = /* @__PURE__ */ _({
434
+ }), ke = { class: "font-['Courier'] text-[#666]" }, Se = /* @__PURE__ */ x({
435
435
  __name: "index",
436
436
  setup(c) {
437
- const o = h("");
437
+ const o = v("");
438
438
  return P(() => {
439
439
  setInterval(() => {
440
- const s = /* @__PURE__ */ new Date(), e = { month: "2-digit", day: "2-digit", hour: "2-digit", minute: "2-digit", second: "2-digit" }, u = s.toLocaleString(void 0, e).replace(/\//g, "-").replace(",", "");
441
- o.value = s.getFullYear() + "-" + u;
440
+ const s = /* @__PURE__ */ new Date(), e = F(), u = {
441
+ year: "numeric",
442
+ month: "2-digit",
443
+ day: "2-digit",
444
+ hour: "2-digit",
445
+ minute: "2-digit",
446
+ second: "2-digit",
447
+ hour12: !1
448
+ };
449
+ o.value = s.toLocaleString(e, u);
442
450
  }, 1e3);
443
451
  }), (s, e) => (l(), g("div", ke, C(o.value), 1));
444
452
  }
445
- }), we = { style: { margin: "0 0 0 20px", "font-weight": "400", "font-size": "16px" } }, Ce = /* @__PURE__ */ _({
453
+ }), we = { style: { margin: "0 0 0 20px", "font-weight": "400", "font-size": "16px" } }, Ce = /* @__PURE__ */ x({
446
454
  __name: "headerExits",
447
455
  setup(c) {
448
- const o = F(), s = h(!1), e = () => {
449
- s.value = !1, fe() ? ee.userLogout() : o.logout(!0);
456
+ const o = H(), s = v(!1), e = () => {
457
+ s.value = !1, fe() ? te.userLogout() : o.logout(!0);
450
458
  };
451
459
  return (u, i) => (l(), g(L, null, [
452
460
  r(t(A), {
@@ -493,10 +501,10 @@ const ge = /* @__PURE__ */ _({
493
501
  }, 8, ["open", "title", "ok-text", "cancel-text"])
494
502
  ], 64));
495
503
  }
496
- }), Ie = { class: "flex items-center flex-nowrap" }, $e = { class: "mr-2 text-sm whitespace-nowrap" }, Te = /* @__PURE__ */ _({
504
+ }), Ie = { class: "flex items-center flex-nowrap" }, $e = { class: "mr-2 text-sm whitespace-nowrap" }, Te = /* @__PURE__ */ x({
497
505
  __name: "user",
498
506
  setup(c) {
499
- const o = F().userInfo;
507
+ const o = H().userInfo;
500
508
  return (s, e) => (l(), y(t(A), {
501
509
  title: t(o).Name
502
510
  }, {
@@ -509,12 +517,12 @@ const ge = /* @__PURE__ */ _({
509
517
  _: 1
510
518
  }, 8, ["title"]));
511
519
  }
512
- }), Ae = { class: "flex items-center cursor-pointer" }, ze = /* @__PURE__ */ _({
520
+ }), Ae = { class: "flex items-center cursor-pointer" }, ze = /* @__PURE__ */ x({
513
521
  __name: "language",
514
522
  setup(c) {
515
- const o = H(), s = h(te()), e = o.length > 0, u = async (i) => {
523
+ const o = V(), s = v(F()), e = o.length > 0, u = async (i) => {
516
524
  try {
517
- await ne(i), s.value = i;
525
+ await ne(i), s.value = i, window.location.reload();
518
526
  } catch (n) {
519
527
  console.error("Failed to change language:", n);
520
528
  }
@@ -524,7 +532,7 @@ const ge = /* @__PURE__ */ _({
524
532
  placement: "bottomRight"
525
533
  }, {
526
534
  overlay: m(() => [
527
- r(t(J), null, {
535
+ r(t(W), null, {
528
536
  default: m(() => [
529
537
  (l(!0), g(L, null, U(t(o), (p) => (l(), y(t(re), {
530
538
  key: p.key,
@@ -553,12 +561,12 @@ const ge = /* @__PURE__ */ _({
553
561
  }), Be = { class: "flex items-center" }, Ne = {
554
562
  key: 1,
555
563
  class: "w-[1px] h-[16px] bg-[#d9d9d9] mx-[3px]"
556
- }, We = /* @__PURE__ */ _({
564
+ }, We = /* @__PURE__ */ x({
557
565
  __name: "index",
558
566
  setup(c) {
559
- const { useToken: o } = M, { token: s } = o(), e = V(), u = () => {
567
+ const { useToken: o } = O, { token: s } = o(), e = q(), u = () => {
560
568
  e.setMenuCollapse(!e.menuCollapse);
561
- }, i = H().length > 0;
569
+ }, i = V().length > 0;
562
570
  return (n, p) => (l(), y(t(ue), {
563
571
  class: "w-full relative z-[1] shadow-[0_-3px_6px_#000] py-0 flex items-center justify-between",
564
572
  style: T({
@@ -594,31 +602,30 @@ const ge = /* @__PURE__ */ _({
594
602
  p[1] || (p[1] = f("div", { class: "w-[1px] h-[16px] bg-[#d9d9d9] mx-[3px]" }, null, -1)),
595
603
  r(Ce)
596
604
  ]),
597
- _: 1,
598
- __: [0, 1]
605
+ _: 1
599
606
  })
600
607
  ])
601
608
  ]),
602
609
  _: 1
603
610
  }, 8, ["style"]));
604
611
  }
605
- }), Ye = /* @__PURE__ */ _({
612
+ }), Ye = /* @__PURE__ */ x({
606
613
  __name: "index",
607
614
  props: {
608
615
  routes: {}
609
616
  },
610
617
  setup(c) {
611
- const o = c, s = h([]), e = h([]), u = Q([]), i = O(), n = (x) => {
612
- B().push(x.key.toString());
613
- }, p = V(), d = h([]), I = () => {
614
- let x = i.TabActive;
615
- const a = x.split("/");
616
- a.pop(), s.value = [a.join("/")], p.menuCollapse || (d.value = [a.join("/")]), e.value = [x];
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 = [_];
617
624
  };
618
625
  return w(
619
626
  () => p.menuCollapse,
620
- (x) => {
621
- x || (d.value = [], X(() => {
627
+ (_) => {
628
+ _ || (d.value = [], X(() => {
622
629
  d.value = [...s.value];
623
630
  }));
624
631
  }
@@ -628,24 +635,24 @@ const ge = /* @__PURE__ */ _({
628
635
  I();
629
636
  }
630
637
  ), P(() => {
631
- oe(o.routes, u, ye, { class: "!w-5 !h-5" }), i.setTabActive(q.currentRoute.value.path), I();
632
- }), (x, a) => (l(), y(t(J), {
638
+ oe(o.routes, u, ye, { class: "!w-5 !h-5" }), i.setTabActive(J.currentRoute.value.path), I();
639
+ }), (_, a) => (l(), y(t(W), {
633
640
  openKeys: d.value,
634
- "onUpdate:openKeys": a[0] || (a[0] = (v) => d.value = v),
641
+ "onUpdate:openKeys": a[0] || (a[0] = (h) => d.value = h),
635
642
  selectedKeys: e.value,
636
- "onUpdate:selectedKeys": a[1] || (a[1] = (v) => e.value = v),
643
+ "onUpdate:selectedKeys": a[1] || (a[1] = (h) => e.value = h),
637
644
  mode: "inline",
638
645
  theme: "dark",
639
646
  items: u,
640
647
  onClick: n
641
648
  }, null, 8, ["openKeys", "selectedKeys", "items"]));
642
649
  }
643
- }), Pe = { class: "flex items-center" }, Le = { class: "flex" }, Oe = ["onClick"], Ge = /* @__PURE__ */ _({
650
+ }), Pe = { class: "flex items-center" }, Le = { class: "flex" }, Me = ["onClick"], Ze = /* @__PURE__ */ x({
644
651
  __name: "menuTabs",
645
652
  setup(c) {
646
- const { useToken: o } = M, { token: s } = o(), e = O();
653
+ const { useToken: o } = O, { token: s } = o(), e = M();
647
654
  w(
648
- () => q.currentRoute.value.path,
655
+ () => J.currentRoute.value.path,
649
656
  (n) => {
650
657
  n !== e.TabActive && e.setTabActive(n);
651
658
  }
@@ -681,7 +688,7 @@ const ge = /* @__PURE__ */ _({
681
688
  t(e).TabPanes.length > 1 && d.closable ? (l(), g("div", {
682
689
  key: 0,
683
690
  class: "inline-block mx-auto relative flex items-center",
684
- onClick: Z((I) => i(d.key), ["stop"])
691
+ onClick: ee((I) => i(d.key), ["stop"])
685
692
  }, [
686
693
  r(t(k), {
687
694
  icon: "icon-new",
@@ -690,7 +697,7 @@ const ge = /* @__PURE__ */ _({
690
697
  class: "w-[15px] h-[15px] ml-1",
691
698
  tipcolor: t(s).colorBgSpotlight
692
699
  }, null, 8, ["tipcolor"])
693
- ], 8, Oe)) : b("", !0)
700
+ ], 8, Me)) : b("", !0)
694
701
  ]),
695
702
  _: 2
696
703
  }, 1032, ["title"])
@@ -713,5 +720,5 @@ export {
713
720
  We as d,
714
721
  Ce as e,
715
722
  Ye as f,
716
- Ge as g
723
+ Ze as g
717
724
  };
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as i, createBlock as s, openBlock as l, unref as a, withCtx as p, renderSlot as f, createCommentVNode as u, mergeProps as d } from "vue";
2
2
  import { Tooltip as I } from "ant-design-vue";
3
3
  import { SERVER_HOST as r } from "@skyfox2000/fapi";
4
- import { c as S } from "./upload-template-BKm9mFq8.js";
4
+ import { c as S } from "./upload-template-D6r6X3vP.js";
5
5
  const T = /* @__PURE__ */ i({
6
6
  __name: "index",
7
7
  props: {