@skyfox2000/webui 1.4.26 → 1.5.0

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 (29) hide show
  1. package/lib/assets/modules/{baseLayout-DiqAUz2h.js → baseLayout-Ck74iWSW.js} +3 -3
  2. package/lib/assets/modules/{file-upload-CKMd0H11.js → file-upload-CYCbA0Go.js} +1 -1
  3. package/lib/assets/modules/{index-BpsqYPCw.js → index-C8QXmnsn.js} +1 -1
  4. package/lib/assets/modules/{index-DvozNhVM.js → index-DGfxQmRW.js} +2 -2
  5. package/lib/assets/modules/{index-gmbMtZa2.js → index-D_-xtDo9.js} +2 -2
  6. package/lib/assets/modules/{menuTabs-CvAiSVNW.js → menuTabs-Dx5VAF5K.js} +108 -111
  7. package/lib/assets/modules/{toolIcon-DWurTPaB.js → toolIcon-BD37QUAw.js} +1 -1
  8. package/lib/assets/modules/upload-template-DPaurj5G.js +6471 -0
  9. package/lib/assets/modules/{uploadList-De6KfTAV.js → uploadList-C0zjgyKg.js} +4 -4
  10. package/lib/es/AceEditor/index.js +3 -3
  11. package/lib/es/BasicLayout/index.js +2 -2
  12. package/lib/es/Error403/index.js +1 -1
  13. package/lib/es/Error404/index.js +1 -1
  14. package/lib/es/ExcelForm/index.js +5 -5
  15. package/lib/es/MenuLayout/index.js +2 -2
  16. package/lib/es/TemplateFile/index.js +4 -4
  17. package/lib/es/UploadForm/index.js +4 -4
  18. package/lib/index.d.ts +1 -0
  19. package/lib/locales/default.d.ts +130 -0
  20. package/lib/locales/index.d.ts +20 -0
  21. package/lib/webui.es.js +90 -84
  22. package/package.json +5 -2
  23. package/src/components/content/list/index.vue +1 -2
  24. package/src/components/content/table/index.vue +2 -2
  25. package/src/components/layout/header/headerExits.vue +8 -4
  26. package/src/index.ts +2 -0
  27. package/src/locales/default.ts +204 -0
  28. package/src/locales/index.ts +290 -0
  29. package/lib/assets/modules/upload-template-BuaWOXY_.js +0 -2584
@@ -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-DWurTPaB.js";
4
- import { I as C, _ as S, f as w, d as $, g as N } from "./menuTabs-CvAiSVNW.js";
5
- import { ah as v, a as B, aj as E } from "./upload-template-BuaWOXY_.js";
3
+ import { a as b } from "./toolIcon-BD37QUAw.js";
4
+ import { I as C, _ as S, f as w, d as $, g as N } from "./menuTabs-Dx5VAF5K.js";
5
+ import { ah as v, a as B, aj as E } from "./upload-template-DPaurj5G.js";
6
6
  import "@skyfox2000/microbase";
7
7
  import "@skyfox2000/fapi";
8
8
  import L from "vue-m-message";
@@ -4,7 +4,7 @@ var d = (n, r, s) => m(n, typeof r != "symbol" ? r + "" : r, s);
4
4
  import { hostUrl as w } from "@skyfox2000/fapi";
5
5
  import y from "dayjs";
6
6
  import f from "vue-m-message";
7
- import { M as b, u as g } from "./upload-template-BuaWOXY_.js";
7
+ import { M as b, u as g } from "./upload-template-DPaurj5G.js";
8
8
  import { isMicroApp as O } from "@skyfox2000/microbase";
9
9
  var i = /* @__PURE__ */ ((n) => (n.Pending = "pending", n.Uploading = "uploading", n.Success = "success", n.Error = "error", n.Online = "online", n.Offline = "offline", n))(i || {});
10
10
  class M {
@@ -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-DWurTPaB.js";
3
+ import { a as P, _ as k } from "./toolIcon-BD37QUAw.js";
4
4
  const C = /* @__PURE__ */ d({
5
5
  inheritAttrs: !1,
6
6
  __name: "index",
@@ -1,8 +1,8 @@
1
1
  import { defineComponent as B, provide as N, ref as w, watch as p, onMounted as _, createBlock as n, openBlock as r, unref as a, withCtx as s, createElementVNode as b, renderSlot as C, createVNode as V, createCommentVNode as d, createTextVNode as u, toDisplayString as v } from "vue";
2
- import { _ as m } from "./index-BpsqYPCw.js";
2
+ import { _ as m } from "./index-C8QXmnsn.js";
3
3
  import { Modal as D, Space as $ } from "ant-design-vue";
4
4
  import "@skyfox2000/fapi";
5
- import { P as E, d as M, o as P, b as K } from "./upload-template-BuaWOXY_.js";
5
+ import { P as E, d as M, o as P, b as K } from "./upload-template-DPaurj5G.js";
6
6
  import "@skyfox2000/microbase";
7
7
  import "vue-m-message";
8
8
  import "async-validator";
@@ -1,10 +1,10 @@
1
1
  import H from "async-validator";
2
2
  import { httpPost as M, ResStatus as V } from "@skyfox2000/fapi";
3
- import { i as T, am as U, L as $, u as z } from "./upload-template-BuaWOXY_.js";
3
+ import { i as T, as as U, L as $, u as z } from "./upload-template-DPaurj5G.js";
4
4
  import m from "vue-m-message";
5
5
  import { defineComponent as _, useAttrs as B, createElementBlock as A, openBlock as b, createVNode as O, unref as v, mergeProps as S, computed as E, createBlock as R, withCtx as L, normalizeStyle as N } from "vue";
6
6
  import { Spin as K, Alert as P } from "ant-design-vue";
7
- import { _ as W } from "./toolIcon-DWurTPaB.js";
7
+ import { _ as W } from "./toolIcon-BD37QUAw.js";
8
8
  const D = (i) => {
9
9
  const e = i.split(`
10
10
  `).filter((l) => l.trim() !== "");
@@ -1,10 +1,10 @@
1
- import { defineComponent as x, createBlock as h, createCommentVNode as I, openBlock as u, unref as t, mergeProps as C, useAttrs as V, computed as j, ref as y, watch as k, withCtx as d, createElementBlock as g, normalizeStyle as T, createElementVNode as m, inject as W, onMounted as N, createVNode as l, toDisplayString as $, Fragment as R, createTextVNode as K, reactive as Y, nextTick as q, renderList as J, withModifiers as X } from "vue";
2
- import { a as w, _ as b } from "./toolIcon-DWurTPaB.js";
3
- import { c as L, W as M, aj as P, Z as E, Y as U, u as D, M as Z, a as F, X as G, r as H, ah as z } from "./upload-template-BuaWOXY_.js";
1
+ import { defineComponent as x, createBlock as h, createCommentVNode as C, openBlock as u, unref as t, mergeProps as $, useAttrs as V, computed as M, ref as v, watch as k, withCtx as d, createElementBlock as _, normalizeStyle as T, createElementVNode as g, inject as W, onMounted as P, createVNode as l, toDisplayString as w, Fragment as R, reactive as Y, nextTick as q, renderList as J, withModifiers as X } from "vue";
2
+ import { a as A, _ as S } from "./toolIcon-BD37QUAw.js";
3
+ import { c as L, W as E, aj as O, Z as K, Y as U, u as D, ao as b, M as Z, a as F, X as G, r as H, ah as B } from "./upload-template-DPaurj5G.js";
4
4
  import { _ as Q } from "./_plugin-vue_export-helper-CHgC5LLL.js";
5
- import { theme as O, Breadcrumb as ee, Modal as te, Flex as ne, LayoutHeader as oe, Space as se, Menu as ie, Tabs as ce, TabPane as ae } from "ant-design-vue";
5
+ import { theme as j, Breadcrumb as ee, Modal as te, Flex as ne, LayoutHeader as oe, Space as se, Menu as ie, Tabs as ce, TabPane as ae } from "ant-design-vue";
6
6
  import { isMicroApp as le } from "@skyfox2000/microbase";
7
- import { SERVER_HOST as B } from "@skyfox2000/fapi";
7
+ import { SERVER_HOST as N } from "@skyfox2000/fapi";
8
8
  import "vue-m-message";
9
9
  import "async-validator";
10
10
  import "dayjs";
@@ -18,14 +18,14 @@ const re = /* @__PURE__ */ x({
18
18
  },
19
19
  setup(c) {
20
20
  const s = c, e = L({
21
- iconUrl: `${B.APP_ICONS}`,
21
+ iconUrl: `${N.APP_ICONS}`,
22
22
  icon: s.icon
23
23
  });
24
- return (r, a) => c.icon ? (u(), h(t(e), C({
24
+ return (r, a) => c.icon ? (u(), h(t(e), $({
25
25
  key: 0,
26
26
  icon: c.icon,
27
27
  class: ["text-2xl", "align-middle", "w-6", "h-6"]
28
- }, r.$attrs), null, 16, ["icon"])) : I("", !0);
28
+ }, r.$attrs), null, 16, ["icon"])) : C("", !0);
29
29
  }
30
30
  }), ue = ["xlink:href"], pe = /* @__PURE__ */ x({
31
31
  inheritAttrs: !1,
@@ -272,13 +272,13 @@ const re = /* @__PURE__ */ x({
272
272
  "update:iconIndex"
273
273
  ],
274
274
  setup(c, { emit: s }) {
275
- const i = V(), e = c, r = s, a = j(() => {
275
+ const i = V(), e = c, r = s, a = M(() => {
276
276
  if (Array.isArray(e.size)) return e.size;
277
277
  {
278
278
  let o = e.size;
279
279
  return [o, o];
280
280
  }
281
- }), n = y(e.icon), f = y(e.iconIndex);
281
+ }), n = v(e.icon), m = v(e.iconIndex);
282
282
  k(
283
283
  () => e.icon,
284
284
  (o) => {
@@ -287,29 +287,29 @@ const re = /* @__PURE__ */ x({
287
287
  ), k(
288
288
  () => e.iconIndex,
289
289
  (o) => {
290
- f.value = o, n.value = e.icons[o];
290
+ m.value = o, n.value = e.icons[o];
291
291
  }
292
292
  );
293
- const p = j({
293
+ const p = M({
294
294
  get() {
295
- return f.value;
295
+ return m.value;
296
296
  },
297
297
  set(o) {
298
- f.value = o, r("update:iconIndex", f.value);
298
+ m.value = o, r("update:iconIndex", m.value);
299
299
  }
300
300
  });
301
- e.icons.length > 0 ? (p.value = p.value >= e.icons.length ? 0 : p.value, n.value = e.icons[f.value]) : n.value = e.icon;
302
- const S = (o) => {
301
+ e.icons.length > 0 ? (p.value = p.value >= e.icons.length ? 0 : p.value, n.value = e.icons[m.value]) : n.value = e.icon;
302
+ const I = (o) => {
303
303
  if (o.stopPropagation(), e.clickEvent) {
304
- const v = e.clickEvent.split("#");
305
- v.length === 2 && W("$" + v[0]).$emit(v[1], e.data);
304
+ const y = e.clickEvent.split("#");
305
+ y.length === 2 && W("$" + y[0]).$emit(y[1], e.data);
306
306
  }
307
- e.autoSwitch && e.icons.length > 0 && (p.value = (p.value + 1) % e.icons.length, n.value = e.icons[f.value]), r("click");
308
- }, _ = () => {
307
+ e.autoSwitch && e.icons.length > 0 && (p.value = (p.value + 1) % e.icons.length, n.value = e.icons[m.value]), r("click");
308
+ }, f = () => {
309
309
  let o = "";
310
310
  return e.spin && (o += "rotate"), e.flip && (o += " flip"), o;
311
311
  };
312
- return (o, v) => (u(), h(w, {
312
+ return (o, y) => (u(), h(A, {
313
313
  title: e.tiptext,
314
314
  disabled: e.tiptext ? void 0 : "disabled",
315
315
  color: c.tipcolor,
@@ -317,9 +317,9 @@ const re = /* @__PURE__ */ x({
317
317
  size: c.tipsize
318
318
  }, {
319
319
  default: d(() => {
320
- var A;
320
+ var z;
321
321
  return [
322
- n.value ? (u(), g("div", {
322
+ n.value ? (u(), _("div", {
323
323
  key: 0,
324
324
  class: "re-icon-container",
325
325
  style: T({
@@ -327,41 +327,41 @@ const re = /* @__PURE__ */ x({
327
327
  height: a.value[1].toString()
328
328
  })
329
329
  }, [
330
- (A = n.value) != null && A.startsWith("sym-") ? (u(), g("svg", C({ key: 1 }, t(i), {
331
- class: ["re-icon symbol", [e.clickable ? "clickable" : "", _(), e.className]],
330
+ (z = n.value) != null && z.startsWith("sym-") ? (u(), _("svg", $({ key: 1 }, t(i), {
331
+ class: ["re-icon symbol", [e.clickable ? "clickable" : "", f(), 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(M)(),
338
+ transform: t(E)(),
339
339
  color: e.color
340
340
  }
341
341
  }), [
342
- m("use", {
342
+ g("use", {
343
343
  "xlink:href": "#icon-" + n.value.replace("sym-", "")
344
344
  }, null, 8, ue)
345
- ], 16)) : (u(), g("i", C({ key: 0 }, t(i), {
346
- class: ["re-icon iconfont fontclass", [e.clickable ? "clickable" : "", "icon-" + n.value, _(), e.className]],
345
+ ], 16)) : (u(), _("i", $({ key: 0 }, t(i), {
346
+ class: ["re-icon iconfont fontclass", [e.clickable ? "clickable" : "", "icon-" + n.value, f(), 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(M)(e.angle, e.flip),
352
+ transform: t(E)(e.angle, e.flip),
353
353
  color: e.color
354
354
  },
355
355
  "aria-hidden": "true",
356
- onClick: S
356
+ onClick: I
357
357
  }), null, 16))
358
- ], 4)) : I("", !0)
358
+ ], 4)) : C("", !0)
359
359
  ];
360
360
  }),
361
361
  _: 1
362
362
  }, 8, ["title", "disabled", "color", "placement", "size"]));
363
363
  }
364
- }), Me = /* @__PURE__ */ Q(pe, [["__scopeId", "data-v-0146f00c"]]), de = /* @__PURE__ */ x({
364
+ }), Ke = /* @__PURE__ */ Q(pe, [["__scopeId", "data-v-0146f00c"]]), de = /* @__PURE__ */ x({
365
365
  __name: "projectIcon",
366
366
  props: {
367
367
  icon: {
@@ -380,17 +380,17 @@ const re = /* @__PURE__ */ x({
380
380
  },
381
381
  setup(c) {
382
382
  const s = c, e = L({
383
- iconUrl: `${s.iconUrl ?? B.PROJECT_ICONS ?? B.TOOL_ICONS}`,
383
+ iconUrl: `${s.iconUrl ?? N.PROJECT_ICONS ?? N.TOOL_ICONS}`,
384
384
  monoColor: s.monoColor,
385
385
  icon: s.icon,
386
386
  icons: s.icons
387
387
  });
388
- return (r, a) => c.icon || c.icons ? (u(), h(t(e), C({
388
+ return (r, a) => c.icon || c.icons ? (u(), h(t(e), $({
389
389
  key: 0,
390
390
  icon: c.icon,
391
391
  icons: c.icons,
392
392
  class: ["align-middle"]
393
- }, r.$attrs), null, 16, ["icon", "icons"])) : I("", !0);
393
+ }, r.$attrs), null, 16, ["icon", "icons"])) : C("", !0);
394
394
  }
395
395
  }), me = { class: "text-xs leading-[3]" }, fe = {
396
396
  key: 0,
@@ -398,34 +398,34 @@ const re = /* @__PURE__ */ x({
398
398
  }, _e = /* @__PURE__ */ x({
399
399
  __name: "index",
400
400
  setup(c) {
401
- const { useToken: s } = O, { token: i } = s(), e = P();
401
+ const { useToken: s } = j, { token: i } = s(), e = O();
402
402
  return k(
403
403
  () => e.TabActive,
404
- () => E()
405
- ), N(() => {
406
- E();
407
- }), (r, a) => (u(), g("div", {
404
+ () => K()
405
+ ), P(() => {
406
+ K();
407
+ }), (r, a) => (u(), _("div", {
408
408
  class: "ml-5 h-fit p-0 flex items-center justify-between",
409
409
  style: T({
410
410
  backgroundColor: t(i).colorBgContainer
411
411
  })
412
412
  }, [
413
- l(t(b), {
413
+ l(t(S), {
414
414
  icon: "icon-home",
415
415
  class: "w-[15px] h-[15px]"
416
416
  }),
417
- a[0] || (a[0] = m("span", { class: "leading-[2.5] mx-[6px] text-[rgba(0,0,0,0.45)]" }, ">", -1)),
417
+ a[0] || (a[0] = g("span", { class: "leading-[2.5] mx-[6px] text-[rgba(0,0,0,0.45)]" }, ">", -1)),
418
418
  l(t(ee), {
419
419
  routes: t(U),
420
420
  separator: ""
421
421
  }, {
422
422
  itemRender: d(({ route: n }) => [
423
- m("span", me, $(n.breadcrumbName), 1),
424
- l(t(b), {
423
+ g("span", me, w(n.breadcrumbName), 1),
424
+ l(t(S), {
425
425
  icon: n.icon,
426
426
  fontsize: "15px"
427
427
  }, null, 8, ["icon"]),
428
- n.index < t(U).length - 1 ? (u(), g("span", fe, ">")) : I("", !0)
428
+ n.index < t(U).length - 1 ? (u(), _("span", fe, ">")) : C("", !0)
429
429
  ]),
430
430
  _: 1
431
431
  }, 8, ["routes"])
@@ -434,39 +434,41 @@ const re = /* @__PURE__ */ x({
434
434
  }), ge = { class: "font-['Courier'] text-[#666]" }, xe = /* @__PURE__ */ x({
435
435
  __name: "index",
436
436
  setup(c) {
437
- const s = y("");
438
- return N(() => {
437
+ const s = v("");
438
+ return P(() => {
439
439
  setInterval(() => {
440
440
  const i = /* @__PURE__ */ new Date(), e = { month: "2-digit", day: "2-digit", hour: "2-digit", minute: "2-digit", second: "2-digit" }, r = i.toLocaleString(void 0, e).replace(/\//g, "-").replace(",", "");
441
441
  s.value = i.getFullYear() + "-" + r;
442
442
  }, 1e3);
443
- }), (i, e) => (u(), g("div", ge, $(s.value), 1));
443
+ }), (i, e) => (u(), _("div", ge, w(s.value), 1));
444
444
  }
445
- }), ve = /* @__PURE__ */ x({
445
+ }), ye = { style: { margin: "0 0 0 20px", "font-weight": "400", "font-size": "16px" } }, ve = /* @__PURE__ */ x({
446
446
  __name: "headerExits",
447
447
  setup(c) {
448
- const s = D(), i = y(!1), e = () => {
448
+ const s = D(), i = v(!1), e = () => {
449
449
  i.value = !1, le() ? Z.userLogout() : s.logout(!0);
450
450
  };
451
- return (r, a) => (u(), g(R, null, [
452
- l(t(w), { title: "退出平台" }, {
451
+ return (r, a) => (u(), _(R, null, [
452
+ l(t(A), {
453
+ title: t(b)("webui.layout.header.exitPlatform")
454
+ }, {
453
455
  default: d(() => [
454
- l(t(b), {
456
+ l(t(S), {
455
457
  icon: "icon-logout",
456
458
  onClick: a[0] || (a[0] = (n) => i.value = !0),
457
459
  clickable: "",
458
460
  class: "w-5 h-5",
459
- title: "退出系统"
460
- })
461
+ title: t(b)("webui.layout.header.exitSystem")
462
+ }, null, 8, ["title"])
461
463
  ]),
462
464
  _: 1
463
- }),
465
+ }, 8, ["title"]),
464
466
  l(t(te), {
465
467
  open: i.value,
466
468
  "onUpdate:open": a[1] || (a[1] = (n) => i.value = n),
467
- title: "确定退出?",
468
- "ok-text": "确定",
469
- "cancel-text": "取消",
469
+ title: t(b)("webui.layout.header.confirmExit"),
470
+ "ok-text": t(b)("webui.common.confirm"),
471
+ "cancel-text": t(b)("webui.common.cancel"),
470
472
  width: 380,
471
473
  onOk: e
472
474
  }, {
@@ -477,45 +479,40 @@ const re = /* @__PURE__ */ x({
477
479
  style: { padding: "0 32px", margin: "20px 0" }
478
480
  }, {
479
481
  default: d(() => [
480
- l(t(b), {
482
+ l(t(S), {
481
483
  icon: "icon-question-circle",
482
484
  color: "orange",
483
485
  class: "w-[60px] h-[60px]"
484
486
  }),
485
- a[2] || (a[2] = m("div", { style: { margin: "0 0 0 20px", "font-weight": "400", "font-size": "16px" } }, [
486
- K("是否退出平台,"),
487
- m("br"),
488
- K("清除用户缓存信息?")
489
- ], -1))
487
+ g("div", ye, w(t(b)("webui.layout.header.exitConfirmMessage")), 1)
490
488
  ]),
491
- _: 1,
492
- __: [2]
489
+ _: 1
493
490
  })
494
491
  ]),
495
492
  _: 1
496
- }, 8, ["open"])
493
+ }, 8, ["open", "title", "ok-text", "cancel-text"])
497
494
  ], 64));
498
495
  }
499
- }), ye = { class: "flex items-center flex-nowrap" }, he = { class: "mr-2 text-sm whitespace-nowrap" }, ke = /* @__PURE__ */ x({
496
+ }), he = { class: "flex items-center flex-nowrap" }, be = { class: "mr-2 text-sm whitespace-nowrap" }, ke = /* @__PURE__ */ x({
500
497
  __name: "user",
501
498
  setup(c) {
502
499
  const s = D().userInfo;
503
- return (i, e) => (u(), h(t(w), {
500
+ return (i, e) => (u(), h(t(A), {
504
501
  title: t(s).Name
505
502
  }, {
506
503
  default: d(() => [
507
- m("div", ye, [
508
- m("span", he, $(t(s).Name), 1),
504
+ g("div", he, [
505
+ g("span", be, w(t(s).Name), 1),
509
506
  l(t(re), { icon: "icon-account" })
510
507
  ])
511
508
  ]),
512
509
  _: 1
513
510
  }, 8, ["title"]));
514
511
  }
515
- }), be = { class: "flex items-center" }, Ee = /* @__PURE__ */ x({
512
+ }), Se = { class: "flex items-center" }, Ue = /* @__PURE__ */ x({
516
513
  __name: "index",
517
514
  setup(c) {
518
- const { useToken: s } = O, { token: i } = s(), e = F(), r = () => {
515
+ const { useToken: s } = j, { token: i } = s(), e = F(), r = () => {
519
516
  e.setMenuCollapse(!e.menuCollapse);
520
517
  };
521
518
  return (a, n) => (u(), h(t(oe), {
@@ -529,8 +526,8 @@ const re = /* @__PURE__ */ x({
529
526
  })
530
527
  }, {
531
528
  default: d(() => [
532
- m("div", be, [
533
- l(t(b), {
529
+ g("div", Se, [
530
+ l(t(S), {
534
531
  icon: "icon-menu",
535
532
  clickable: "",
536
533
  class: "w-[18px] h-[18px]",
@@ -539,7 +536,7 @@ const re = /* @__PURE__ */ x({
539
536
  }, null, 8, ["angle"]),
540
537
  l(_e)
541
538
  ]),
542
- m("div", null, [
539
+ g("div", null, [
543
540
  l(t(se), {
544
541
  size: "middle",
545
542
  class: "flex items-center"
@@ -556,48 +553,48 @@ const re = /* @__PURE__ */ x({
556
553
  _: 1
557
554
  }, 8, ["style"]));
558
555
  }
559
- }), Ue = /* @__PURE__ */ x({
556
+ }), Re = /* @__PURE__ */ x({
560
557
  __name: "index",
561
558
  props: {
562
559
  routes: {}
563
560
  },
564
561
  setup(c) {
565
- const s = c, i = y([]), e = y([]), r = Y([]), a = P(), n = (_) => {
566
- z().push(_.key.toString());
567
- }, f = F(), p = y([]), S = () => {
568
- let _ = a.TabActive;
569
- const o = _.split("/");
570
- o.pop(), i.value = [o.join("/")], f.menuCollapse || (p.value = [o.join("/")]), e.value = [_];
562
+ const s = c, i = v([]), e = v([]), r = Y([]), a = O(), n = (f) => {
563
+ B().push(f.key.toString());
564
+ }, m = F(), p = v([]), I = () => {
565
+ let f = a.TabActive;
566
+ const o = f.split("/");
567
+ o.pop(), i.value = [o.join("/")], m.menuCollapse || (p.value = [o.join("/")]), e.value = [f];
571
568
  };
572
569
  return k(
573
- () => f.menuCollapse,
574
- (_) => {
575
- _ || (p.value = [], q(() => {
570
+ () => m.menuCollapse,
571
+ (f) => {
572
+ f || (p.value = [], q(() => {
576
573
  p.value = [...i.value];
577
574
  }));
578
575
  }
579
576
  ), k(
580
577
  () => a.TabActive,
581
578
  () => {
582
- S();
579
+ I();
583
580
  }
584
- ), N(() => {
585
- G(s.routes, r, de, { class: "!w-5 !h-5" }), a.setTabActive(H.currentRoute.value.path), S();
586
- }), (_, o) => (u(), h(t(ie), {
581
+ ), P(() => {
582
+ G(s.routes, r, de, { class: "!w-5 !h-5" }), a.setTabActive(H.currentRoute.value.path), I();
583
+ }), (f, o) => (u(), h(t(ie), {
587
584
  openKeys: p.value,
588
- "onUpdate:openKeys": o[0] || (o[0] = (v) => p.value = v),
585
+ "onUpdate:openKeys": o[0] || (o[0] = (y) => p.value = y),
589
586
  selectedKeys: e.value,
590
- "onUpdate:selectedKeys": o[1] || (o[1] = (v) => e.value = v),
587
+ "onUpdate:selectedKeys": o[1] || (o[1] = (y) => e.value = y),
591
588
  mode: "inline",
592
589
  theme: "dark",
593
590
  items: r,
594
591
  onClick: n
595
592
  }, null, 8, ["openKeys", "selectedKeys", "items"]));
596
593
  }
597
- }), Se = { class: "flex items-center" }, Ie = { class: "flex" }, Ce = ["onClick"], Re = /* @__PURE__ */ x({
594
+ }), Ie = { class: "flex items-center" }, Ce = { class: "flex" }, we = ["onClick"], Le = /* @__PURE__ */ x({
598
595
  __name: "menuTabs",
599
596
  setup(c) {
600
- const { useToken: s } = O, { token: i } = s(), e = P();
597
+ const { useToken: s } = j, { token: i } = s(), e = O();
601
598
  k(
602
599
  () => H.currentRoute.value.path,
603
600
  (n) => {
@@ -605,11 +602,11 @@ const re = /* @__PURE__ */ x({
605
602
  }
606
603
  );
607
604
  const r = (n) => {
608
- z().push(n);
605
+ B().push(n);
609
606
  }, a = (n) => {
610
- e.removeTabPane(n), z().push(e.TabActive);
607
+ e.removeTabPane(n), B().push(e.TabActive);
611
608
  };
612
- return (n, f) => (u(), g("div", {
609
+ return (n, m) => (u(), _("div", {
613
610
  style: T({ height: "38px", backgroundColor: t(i).colorBgBase })
614
611
  }, [
615
612
  l(t(ce), {
@@ -620,31 +617,31 @@ const re = /* @__PURE__ */ x({
620
617
  onTabClick: r
621
618
  }, {
622
619
  default: d(() => [
623
- (u(!0), g(R, null, J(t(e).TabPanes, (p) => (u(), h(t(ae), {
620
+ (u(!0), _(R, null, J(t(e).TabPanes, (p) => (u(), h(t(ae), {
624
621
  key: p.key
625
622
  }, {
626
623
  tab: d(() => [
627
- m("div", Se, [
628
- m("span", Ie, $(p.title), 1),
629
- l(t(w), {
624
+ g("div", Ie, [
625
+ g("span", Ce, w(p.title), 1),
626
+ l(t(A), {
630
627
  title: "关闭",
631
628
  placement: "top",
632
629
  size: "small"
633
630
  }, {
634
631
  default: d(() => [
635
- t(e).TabPanes.length > 1 && p.closable ? (u(), g("div", {
632
+ t(e).TabPanes.length > 1 && p.closable ? (u(), _("div", {
636
633
  key: 0,
637
634
  class: "inline-block mx-auto relative flex items-center",
638
- onClick: X((S) => a(p.key), ["stop"])
635
+ onClick: X((I) => a(p.key), ["stop"])
639
636
  }, [
640
- l(t(b), {
637
+ l(t(S), {
641
638
  icon: "icon-new",
642
639
  angle: 45,
643
640
  clickable: "",
644
641
  class: "w-[15px] h-[15px] ml-1",
645
642
  tipcolor: t(i).colorBgSpotlight
646
643
  }, null, 8, ["tipcolor"])
647
- ], 8, Ce)) : I("", !0)
644
+ ], 8, we)) : C("", !0)
648
645
  ]),
649
646
  _: 2
650
647
  }, 1024)
@@ -659,13 +656,13 @@ const re = /* @__PURE__ */ x({
659
656
  }
660
657
  });
661
658
  export {
662
- Me as I,
659
+ Ke as I,
663
660
  re as _,
664
661
  de as a,
665
662
  _e as b,
666
663
  xe as c,
667
- Ee as d,
664
+ Ue as d,
668
665
  ve as e,
669
- Ue as f,
670
- Re as g
666
+ Re as f,
667
+ Le as g
671
668
  };
@@ -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-BuaWOXY_.js";
4
+ import { c as S } from "./upload-template-DPaurj5G.js";
5
5
  const T = /* @__PURE__ */ i({
6
6
  __name: "index",
7
7
  props: {