@skyfox2000/webui 1.2.8 → 1.2.9

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 (72) hide show
  1. package/lib/assets/modules/_plugin-vue_export-helper-CHgC5LLL.js +9 -0
  2. package/lib/assets/modules/file-upload-BYIvmkmy.js +204 -0
  3. package/lib/assets/modules/form-excel-BUX2QW11.js +235 -0
  4. package/lib/assets/modules/{index-CTVMLeDF.js → index-DcRkhkn2.js} +1 -1
  5. package/lib/assets/modules/index-jl5Ie2tZ.js +112 -0
  6. package/lib/assets/modules/{menuTabs-BtOiocOC.js → menuTabs-DY1XBq16.js} +134 -139
  7. package/lib/assets/modules/{toolIcon-B9Mw9Ktm.js → toolIcon-BDIOj_3l.js} +1 -1
  8. package/lib/assets/modules/uploadList-BPG5whz7.js +369 -0
  9. package/lib/assets/modules/{index-D9kzQ23e.js → uploadList-D2Ux4h1N.js} +553 -513
  10. package/lib/components/common/index.d.ts +2 -0
  11. package/lib/components/common/loading/index.vue.d.ts +3 -0
  12. package/lib/components/content/dialog/index.vue.d.ts +1 -0
  13. package/lib/components/content/drawer/index.vue.d.ts +2 -0
  14. package/lib/components/content/form/formItem.vue.d.ts +2 -0
  15. package/lib/components/form/autoComplete/index.vue.d.ts +41 -4
  16. package/lib/components/form/cascader/index.vue.d.ts +13 -2
  17. package/lib/components/form/checkbox/index.vue.d.ts +13 -2
  18. package/lib/components/form/index.d.ts +1 -0
  19. package/lib/components/form/propEditor/index.vue.d.ts +10 -1
  20. package/lib/components/form/radio/index.vue.d.ts +13 -2
  21. package/lib/components/form/select/index.vue.d.ts +13 -2
  22. package/lib/components/form/upload/uploadList.vue.d.ts +14 -3
  23. package/lib/components/index.d.ts +2 -2
  24. package/lib/es/AceEditor/index.js +3 -3
  25. package/lib/es/BasicLayout/index.js +15 -15
  26. package/lib/es/Error403/index.js +1 -1
  27. package/lib/es/Error404/index.js +1 -1
  28. package/lib/es/ExcelForm/index.js +4 -4
  29. package/lib/es/UploadForm/index.js +60 -87
  30. package/lib/index.d.ts +2 -2
  31. package/lib/typings/form.d.ts +18 -2
  32. package/lib/typings/option.d.ts +16 -2
  33. package/lib/typings/page.d.ts +1 -0
  34. package/lib/utils/file-upload.d.ts +4 -2
  35. package/lib/utils/form-excel.d.ts +3 -0
  36. package/lib/webui.css +1 -1
  37. package/lib/webui.es.js +1085 -1063
  38. package/package.json +1 -1
  39. package/scripts/userInput.py +2 -0
  40. package/src/components/common/index.ts +3 -0
  41. package/src/components/common/loading/index.vue +11 -0
  42. package/src/components/content/dialog/index.vue +15 -8
  43. package/src/components/content/dialog/uploadForm.vue +38 -79
  44. package/src/components/content/drawer/index.vue +26 -6
  45. package/src/components/content/form/formItem.vue +21 -5
  46. package/src/components/content/form/index.vue +4 -2
  47. package/src/components/content/search/searchItem.vue +1 -1
  48. package/src/components/form/autoComplete/index.vue +12 -4
  49. package/src/components/form/cascader/index.vue +1 -1
  50. package/src/components/form/datePicker/index.vue +1 -1
  51. package/src/components/form/index.ts +1 -0
  52. package/src/components/form/input/inputIcon.vue +1 -1
  53. package/src/components/form/propEditor/index.vue +113 -33
  54. package/src/components/form/select/index.vue +27 -17
  55. package/src/components/form/upload/uploadList.vue +174 -34
  56. package/src/components/index.ts +13 -1
  57. package/src/directives/permission.ts +2 -2
  58. package/src/index.ts +3 -1
  59. package/src/typings/form.d.ts +18 -2
  60. package/src/typings/option.d.ts +16 -2
  61. package/src/typings/page.d.ts +1 -0
  62. package/src/utils/download.ts +1 -1
  63. package/src/utils/eventbus.ts +1 -1
  64. package/src/utils/file-upload.ts +75 -14
  65. package/src/utils/form-excel.ts +50 -1
  66. package/src/utils/form-validate.ts +18 -1
  67. package/src/utils/form.ts +3 -1
  68. package/src/utils/options.ts +38 -12
  69. package/lib/assets/modules/file-upload-CZO-pMJd.js +0 -176
  70. package/lib/assets/modules/form-excel-N-2OYqKv.js +0 -211
  71. package/lib/assets/modules/index-BnHnS9ug.js +0 -111
  72. package/lib/assets/modules/uploadList-B4LxzsC6.js +0 -210
@@ -1,32 +1,33 @@
1
- import { defineComponent as x, createBlock as h, createCommentVNode as I, openBlock as u, unref as t, mergeProps as C, useAttrs as q, computed as j, ref as y, watch as k, withCtx as d, createElementBlock as g, normalizeStyle as T, createElementVNode as m, inject as J, onMounted as N, createVNode as r, toDisplayString as $, Fragment as L, createTextVNode as K, reactive as Q, nextTick as W, renderList as Y, withModifiers as G } from "vue";
2
- import { a as w, _ as b } from "./toolIcon-B9Mw9Ktm.js";
3
- import { c as D, Q as E, ad as P, T as M, S as R, u as F, a as H, R as X, r as V, ab as z } from "./index-D9kzQ23e.js";
4
- import { theme as O, Breadcrumb as Z, Modal as ee, Flex as te, LayoutHeader as ne, Space as oe, Menu as se, Tabs as ie, TabPane as ce } from "ant-design-vue";
1
+ import { defineComponent as x, createBlock as h, createCommentVNode as I, openBlock as u, unref as t, mergeProps as C, useAttrs as q, computed as j, ref as y, watch as b, withCtx as d, createElementBlock as g, normalizeStyle as T, createElementVNode as m, inject as J, onMounted as N, createVNode as l, toDisplayString as $, Fragment as L, createTextVNode as K, reactive as Q, nextTick as W, renderList as Y, withModifiers as G } from "vue";
2
+ import { a as w, _ as k } from "./toolIcon-BDIOj_3l.js";
3
+ import { c as D, Q as E, ad as P, T as M, S as R, u as F, a as H, R as X, r as V, ab as z } from "./uploadList-D2Ux4h1N.js";
4
+ import { _ as Z } 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
6
  import { mainAppApis as U } from "@skyfox2000/microbase";
6
7
  import { SERVER_HOST as B } from "@skyfox2000/fapi";
7
8
  import "vue-m-message";
8
9
  import "async-validator";
9
10
  import "dayjs";
10
11
  import "vue-draggable-next";
11
- const ae = /* @__PURE__ */ x({
12
+ const le = /* @__PURE__ */ x({
12
13
  __name: "appicon",
13
14
  props: {
14
15
  icon: {
15
16
  type: String
16
17
  }
17
18
  },
18
- setup(i) {
19
- const s = i, e = D({
19
+ setup(c) {
20
+ const s = c, e = D({
20
21
  iconUrl: `${B.APP_ICONS}`,
21
22
  icon: s.icon
22
23
  });
23
- return (l, a) => i.icon ? (u(), h(t(e), C({
24
+ return (r, a) => c.icon ? (u(), h(t(e), C({
24
25
  key: 0,
25
- icon: i.icon,
26
+ icon: c.icon,
26
27
  class: ["text-2xl", "align-middle", "w-6", "h-6"]
27
- }, l.$attrs), null, 16, ["icon"])) : I("", !0);
28
+ }, r.$attrs), null, 16, ["icon"])) : I("", !0);
28
29
  }
29
- }), le = ["xlink:href"], re = /* @__PURE__ */ x({
30
+ }), re = ["xlink:href"], ue = /* @__PURE__ */ x({
30
31
  inheritAttrs: !1,
31
32
  __name: "index",
32
33
  props: {
@@ -270,55 +271,55 @@ const ae = /* @__PURE__ */ x({
270
271
  */
271
272
  "update:iconIndex"
272
273
  ],
273
- setup(i, { emit: s }) {
274
- const n = q(), e = i, l = s, a = j(() => {
274
+ setup(c, { emit: s }) {
275
+ const i = q(), e = c, r = s, a = j(() => {
275
276
  if (Array.isArray(e.size)) return e.size;
276
277
  {
277
- let c = e.size;
278
- return [c, c];
278
+ let o = e.size;
279
+ return [o, o];
279
280
  }
280
- }), o = y(e.icon), f = y(e.iconIndex);
281
- k(
281
+ }), n = y(e.icon), f = y(e.iconIndex);
282
+ b(
282
283
  () => e.icon,
283
- (c) => {
284
- o.value = c;
284
+ (o) => {
285
+ n.value = o;
285
286
  }
286
- ), k(
287
+ ), b(
287
288
  () => e.iconIndex,
288
- (c) => {
289
- f.value = c, o.value = e.icons[c];
289
+ (o) => {
290
+ f.value = o, n.value = e.icons[o];
290
291
  }
291
292
  );
292
293
  const p = j({
293
294
  get() {
294
295
  return f.value;
295
296
  },
296
- set(c) {
297
- f.value = c, l("update:iconIndex", f.value);
297
+ set(o) {
298
+ f.value = o, r("update:iconIndex", f.value);
298
299
  }
299
300
  });
300
- e.icons.length > 0 ? (p.value = p.value >= e.icons.length ? 0 : p.value, o.value = e.icons[f.value]) : o.value = e.icon;
301
- const S = (c) => {
302
- if (c.stopPropagation(), e.clickEvent) {
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) => {
303
+ if (o.stopPropagation(), e.clickEvent) {
303
304
  const v = e.clickEvent.split("#");
304
305
  v.length === 2 && J("$" + v[0]).$emit(v[1], e.data);
305
306
  }
306
- e.autoSwitch && e.icons.length > 0 && (p.value = (p.value + 1) % e.icons.length, o.value = e.icons[f.value]), l("click");
307
+ e.autoSwitch && e.icons.length > 0 && (p.value = (p.value + 1) % e.icons.length, n.value = e.icons[f.value]), r("click");
307
308
  }, _ = () => {
308
- let c = "";
309
- return e.spin && (c += "rotate"), e.flip && (c += " flip"), c;
309
+ let o = "";
310
+ return e.spin && (o += "rotate"), e.flip && (o += " flip"), o;
310
311
  };
311
- return (c, v) => (u(), h(w, {
312
+ return (o, v) => (u(), h(w, {
312
313
  title: e.tiptext,
313
314
  disabled: e.tiptext ? void 0 : "disabled",
314
- color: i.tipcolor,
315
- placement: i.placement,
316
- size: i.tipsize
315
+ color: c.tipcolor,
316
+ placement: c.placement,
317
+ size: c.tipsize
317
318
  }, {
318
319
  default: d(() => {
319
320
  var A;
320
321
  return [
321
- o.value ? (u(), g("div", {
322
+ n.value ? (u(), g("div", {
322
323
  key: 0,
323
324
  class: "re-icon-container",
324
325
  style: T({
@@ -326,7 +327,7 @@ const ae = /* @__PURE__ */ x({
326
327
  height: a.value[1].toString()
327
328
  })
328
329
  }, [
329
- (A = o.value) != null && A.startsWith("sym-") ? (u(), g("svg", C({ key: 1 }, t(n), {
330
+ (A = n.value) != null && A.startsWith("sym-") ? (u(), g("svg", C({ key: 1 }, t(i), {
330
331
  class: ["re-icon symbol", [e.clickable ? "clickable" : "", _(), e.className]],
331
332
  "aria-hidden": "true",
332
333
  style: {
@@ -339,10 +340,10 @@ const ae = /* @__PURE__ */ x({
339
340
  }
340
341
  }), [
341
342
  m("use", {
342
- "xlink:href": "#icon-" + o.value.replace("sym-", "")
343
- }, null, 8, le)
344
- ], 16)) : (u(), g("i", C({ key: 0 }, t(n), {
345
- class: ["re-icon iconfont fontclass", [e.clickable ? "clickable" : "", "icon-" + o.value, _(), e.className]],
343
+ "xlink:href": "#icon-" + n.value.replace("sym-", "")
344
+ }, null, 8, re)
345
+ ], 16)) : (u(), g("i", C({ key: 0 }, t(i), {
346
+ class: ["re-icon iconfont fontclass", [e.clickable ? "clickable" : "", "icon-" + n.value, _(), e.className]],
346
347
  style: {
347
348
  top: e.position ? e.position[1] : 1,
348
349
  left: e.position ? e.position[0] : 0,
@@ -360,12 +361,7 @@ const ae = /* @__PURE__ */ x({
360
361
  _: 1
361
362
  }, 8, ["title", "disabled", "color", "placement", "size"]));
362
363
  }
363
- }), ue = (i, s) => {
364
- const n = i.__vccOpts || i;
365
- for (const [e, l] of s)
366
- n[e] = l;
367
- return n;
368
- }, je = /* @__PURE__ */ ue(re, [["__scopeId", "data-v-0146f00c"]]), pe = /* @__PURE__ */ x({
364
+ }), Ke = /* @__PURE__ */ Z(ue, [["__scopeId", "data-v-0146f00c"]]), pe = /* @__PURE__ */ x({
369
365
  __name: "projectIcon",
370
366
  props: {
371
367
  icon: {
@@ -382,54 +378,54 @@ const ae = /* @__PURE__ */ x({
382
378
  default: !0
383
379
  }
384
380
  },
385
- setup(i) {
386
- const s = i, e = D({
381
+ setup(c) {
382
+ const s = c, e = D({
387
383
  iconUrl: `${s.iconUrl ?? B.PROJECT_ICONS ?? B.TOOL_ICONS}`,
388
384
  monoColor: s.monoColor,
389
385
  icon: s.icon,
390
386
  icons: s.icons
391
387
  });
392
- return (l, a) => i.icon || i.icons ? (u(), h(t(e), C({
388
+ return (r, a) => c.icon || c.icons ? (u(), h(t(e), C({
393
389
  key: 0,
394
- icon: i.icon,
395
- icons: i.icons,
390
+ icon: c.icon,
391
+ icons: c.icons,
396
392
  class: ["align-middle"]
397
- }, l.$attrs), null, 16, ["icon", "icons"])) : I("", !0);
393
+ }, r.$attrs), null, 16, ["icon", "icons"])) : I("", !0);
398
394
  }
399
395
  }), de = { class: "text-xs leading-[3]" }, me = {
400
396
  key: 0,
401
397
  class: "leading-[2.5] mx-[6px] text-[rgba(0,0,0,0.45)]"
402
398
  }, fe = /* @__PURE__ */ x({
403
399
  __name: "index",
404
- setup(i) {
405
- const { useToken: s } = O, { token: n } = s(), e = P();
406
- return k(
400
+ setup(c) {
401
+ const { useToken: s } = O, { token: i } = s(), e = P();
402
+ return b(
407
403
  () => e.TabActive,
408
404
  () => M()
409
405
  ), N(() => {
410
406
  M();
411
- }), (l, a) => (u(), g("div", {
407
+ }), (r, a) => (u(), g("div", {
412
408
  class: "ml-5 h-fit p-0 flex items-center justify-between",
413
409
  style: T({
414
- backgroundColor: t(n).colorBgContainer
410
+ backgroundColor: t(i).colorBgContainer
415
411
  })
416
412
  }, [
417
- r(t(b), {
413
+ l(t(k), {
418
414
  icon: "icon-home",
419
415
  class: "w-[15px] h-[15px]"
420
416
  }),
421
417
  a[0] || (a[0] = m("span", { class: "leading-[2.5] mx-[6px] text-[rgba(0,0,0,0.45)]" }, ">", -1)),
422
- r(t(Z), {
418
+ l(t(ee), {
423
419
  routes: t(R),
424
420
  separator: ""
425
421
  }, {
426
- itemRender: d(({ route: o }) => [
427
- m("span", de, $(o.breadcrumbName), 1),
428
- r(t(b), {
429
- icon: o.icon,
422
+ itemRender: d(({ route: n }) => [
423
+ m("span", de, $(n.breadcrumbName), 1),
424
+ l(t(k), {
425
+ icon: n.icon,
430
426
  fontsize: "15px"
431
427
  }, null, 8, ["icon"]),
432
- o.index < t(R).length - 1 ? (u(), g("span", me, ">")) : I("", !0)
428
+ n.index < t(R).length - 1 ? (u(), g("span", me, ">")) : I("", !0)
433
429
  ]),
434
430
  _: 1
435
431
  }, 8, ["routes"])
@@ -437,27 +433,27 @@ const ae = /* @__PURE__ */ x({
437
433
  }
438
434
  }), _e = { class: "font-['Courier'] text-[#666]" }, ge = /* @__PURE__ */ x({
439
435
  __name: "index",
440
- setup(i) {
436
+ setup(c) {
441
437
  const s = y("");
442
438
  return N(() => {
443
439
  setInterval(() => {
444
- const n = /* @__PURE__ */ new Date(), e = { month: "2-digit", day: "2-digit", hour: "2-digit", minute: "2-digit", second: "2-digit" }, l = n.toLocaleString(void 0, e).replace(/\//g, "-").replace(",", "");
445
- s.value = n.getFullYear() + "-" + l;
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
+ s.value = i.getFullYear() + "-" + r;
446
442
  }, 1e3);
447
- }), (n, e) => (u(), g("div", _e, $(s.value), 1));
443
+ }), (i, e) => (u(), g("div", _e, $(s.value), 1));
448
444
  }
449
445
  }), xe = /* @__PURE__ */ x({
450
446
  __name: "headerExits",
451
- setup(i) {
452
- const s = F(), n = y(!1), e = () => {
453
- n.value = !1, U.value ? U.value.userLogout() : s.logout();
447
+ setup(c) {
448
+ const s = F(), i = y(!1), e = () => {
449
+ i.value = !1, U.value ? U.value.userLogout() : s.logout();
454
450
  };
455
- return (l, a) => (u(), g(L, null, [
456
- r(t(w), { title: "退出平台" }, {
451
+ return (r, a) => (u(), g(L, null, [
452
+ l(t(w), { title: "退出平台" }, {
457
453
  default: d(() => [
458
- r(t(b), {
454
+ l(t(k), {
459
455
  icon: "icon-logout",
460
- onClick: a[0] || (a[0] = (o) => n.value = !0),
456
+ onClick: a[0] || (a[0] = (n) => i.value = !0),
461
457
  clickable: "",
462
458
  class: "w-5 h-5",
463
459
  title: "退出系统"
@@ -465,9 +461,9 @@ const ae = /* @__PURE__ */ x({
465
461
  ]),
466
462
  _: 1
467
463
  }),
468
- r(t(ee), {
469
- open: n.value,
470
- "onUpdate:open": a[1] || (a[1] = (o) => n.value = o),
464
+ l(t(te), {
465
+ open: i.value,
466
+ "onUpdate:open": a[1] || (a[1] = (n) => i.value = n),
471
467
  title: "确定退出?",
472
468
  "ok-text": "确定",
473
469
  "cancel-text": "取消",
@@ -475,13 +471,13 @@ const ae = /* @__PURE__ */ x({
475
471
  onOk: e
476
472
  }, {
477
473
  default: d(() => [
478
- r(t(te), {
474
+ l(t(ne), {
479
475
  align: "center",
480
476
  justify: "flex-start",
481
477
  style: { padding: "0 32px", margin: "20px 0" }
482
478
  }, {
483
479
  default: d(() => [
484
- r(t(b), {
480
+ l(t(k), {
485
481
  icon: "icon-question-circle",
486
482
  color: "orange",
487
483
  class: "w-[60px] h-[60px]"
@@ -502,56 +498,56 @@ const ae = /* @__PURE__ */ x({
502
498
  }
503
499
  }), ve = { class: "flex items-center flex-nowrap" }, ye = { class: "mr-2 text-sm whitespace-nowrap" }, he = /* @__PURE__ */ x({
504
500
  __name: "user",
505
- setup(i) {
501
+ setup(c) {
506
502
  const s = F().userInfo;
507
- return (n, e) => (u(), h(t(w), {
503
+ return (i, e) => (u(), h(t(w), {
508
504
  title: t(s).Name
509
505
  }, {
510
506
  default: d(() => [
511
507
  m("div", ve, [
512
508
  m("span", ye, $(t(s).Name), 1),
513
- r(t(ae), { icon: "icon-account" })
509
+ l(t(le), { icon: "icon-account" })
514
510
  ])
515
511
  ]),
516
512
  _: 1
517
513
  }, 8, ["title"]));
518
514
  }
519
- }), ke = { class: "flex items-center" }, Ke = /* @__PURE__ */ x({
515
+ }), be = { class: "flex items-center" }, Ee = /* @__PURE__ */ x({
520
516
  __name: "index",
521
- setup(i) {
522
- const { useToken: s } = O, { token: n } = s(), e = H(), l = () => {
517
+ setup(c) {
518
+ const { useToken: s } = O, { token: i } = s(), e = H(), r = () => {
523
519
  e.setMenuCollapse(!e.menuCollapse);
524
520
  };
525
- return (a, o) => (u(), h(t(ne), {
521
+ return (a, n) => (u(), h(t(oe), {
526
522
  class: "w-full relative z-[1] shadow-[0_-3px_6px_#000] py-0 flex items-center justify-between",
527
523
  style: T({
528
524
  height: "40px",
529
525
  lineHeight: "1",
530
526
  paddingLeft: "10px",
531
527
  paddingRight: "20px",
532
- backgroundColor: t(n).colorBgContainer
528
+ backgroundColor: t(i).colorBgContainer
533
529
  })
534
530
  }, {
535
531
  default: d(() => [
536
- m("div", ke, [
537
- r(t(b), {
532
+ m("div", be, [
533
+ l(t(k), {
538
534
  icon: "icon-menu",
539
535
  clickable: "",
540
536
  class: "w-[18px] h-[18px]",
541
537
  angle: t(e).menuCollapse ? 90 : 0,
542
- onClick: l
538
+ onClick: r
543
539
  }, null, 8, ["angle"]),
544
- r(fe)
540
+ l(fe)
545
541
  ]),
546
542
  m("div", null, [
547
- r(t(oe), {
543
+ l(t(se), {
548
544
  size: "middle",
549
545
  class: "flex items-center"
550
546
  }, {
551
547
  default: d(() => [
552
- r(ge),
553
- r(he),
554
- r(xe)
548
+ l(ge),
549
+ l(he),
550
+ l(xe)
555
551
  ]),
556
552
  _: 1
557
553
  })
@@ -560,77 +556,77 @@ const ae = /* @__PURE__ */ x({
560
556
  _: 1
561
557
  }, 8, ["style"]));
562
558
  }
563
- }), Ee = /* @__PURE__ */ x({
559
+ }), Me = /* @__PURE__ */ x({
564
560
  __name: "index",
565
561
  props: {
566
562
  routes: {}
567
563
  },
568
- setup(i) {
569
- const s = i, n = y([]), e = y([]), l = Q([]), a = P(), o = (_) => {
564
+ setup(c) {
565
+ const s = c, i = y([]), e = y([]), r = Q([]), a = P(), n = (_) => {
570
566
  z().push(_.key.toString());
571
567
  }, f = H(), p = y([]), S = () => {
572
568
  let _ = a.TabActive;
573
- const c = _.split("/");
574
- c.pop(), n.value = [c.join("/")], f.menuCollapse || (p.value = [c.join("/")]), e.value = [_];
569
+ const o = _.split("/");
570
+ o.pop(), i.value = [o.join("/")], f.menuCollapse || (p.value = [o.join("/")]), e.value = [_];
575
571
  };
576
- return k(
572
+ return b(
577
573
  () => f.menuCollapse,
578
574
  (_) => {
579
575
  _ || (p.value = [], W(() => {
580
- p.value = [...n.value];
576
+ p.value = [...i.value];
581
577
  }));
582
578
  }
583
- ), k(
579
+ ), b(
584
580
  () => a.TabActive,
585
581
  () => {
586
582
  S();
587
583
  }
588
584
  ), N(() => {
589
- X(s.routes, l, pe, { class: "!w-5 !h-5" }), a.setTabActive(V.currentRoute.value.path), S();
590
- }), (_, c) => (u(), h(t(se), {
585
+ X(s.routes, r, pe, { class: "!w-5 !h-5" }), a.setTabActive(V.currentRoute.value.path), S();
586
+ }), (_, o) => (u(), h(t(ie), {
591
587
  openKeys: p.value,
592
- "onUpdate:openKeys": c[0] || (c[0] = (v) => p.value = v),
588
+ "onUpdate:openKeys": o[0] || (o[0] = (v) => p.value = v),
593
589
  selectedKeys: e.value,
594
- "onUpdate:selectedKeys": c[1] || (c[1] = (v) => e.value = v),
590
+ "onUpdate:selectedKeys": o[1] || (o[1] = (v) => e.value = v),
595
591
  mode: "inline",
596
592
  theme: "dark",
597
- items: l,
598
- onClick: o
593
+ items: r,
594
+ onClick: n
599
595
  }, null, 8, ["openKeys", "selectedKeys", "items"]));
600
596
  }
601
- }), be = { class: "flex items-center" }, Se = { class: "flex" }, Ie = ["onClick"], Me = /* @__PURE__ */ x({
597
+ }), ke = { class: "flex items-center" }, Se = { class: "flex" }, Ie = ["onClick"], Re = /* @__PURE__ */ x({
602
598
  __name: "menuTabs",
603
- setup(i) {
604
- const { useToken: s } = O, { token: n } = s(), e = P();
605
- k(
599
+ setup(c) {
600
+ const { useToken: s } = O, { token: i } = s(), e = P();
601
+ b(
606
602
  () => V.currentRoute.value.path,
607
- (o) => {
608
- o !== e.TabActive && e.setTabActive(o);
603
+ (n) => {
604
+ n !== e.TabActive && e.setTabActive(n);
609
605
  }
610
606
  );
611
- const l = (o) => {
612
- z().push(o);
613
- }, a = (o) => {
614
- e.removeTabPane(o), z().push(e.TabActive);
607
+ const r = (n) => {
608
+ z().push(n);
609
+ }, a = (n) => {
610
+ e.removeTabPane(n), z().push(e.TabActive);
615
611
  };
616
- return (o, f) => (u(), g("div", {
617
- style: T({ height: "38px", backgroundColor: t(n).colorBgBase })
612
+ return (n, f) => (u(), g("div", {
613
+ style: T({ height: "38px", backgroundColor: t(i).colorBgBase })
618
614
  }, [
619
- r(t(ie), {
615
+ l(t(ce), {
620
616
  activeKey: t(e).TabActive,
621
617
  "hide-add": "",
622
618
  size: "small",
623
619
  tabBarStyle: { padding: "0 20px" },
624
- onTabClick: l
620
+ onTabClick: r
625
621
  }, {
626
622
  default: d(() => [
627
- (u(!0), g(L, null, Y(t(e).TabPanes, (p) => (u(), h(t(ce), {
623
+ (u(!0), g(L, null, Y(t(e).TabPanes, (p) => (u(), h(t(ae), {
628
624
  key: p.key
629
625
  }, {
630
626
  tab: d(() => [
631
- m("div", be, [
627
+ m("div", ke, [
632
628
  m("span", Se, $(p.title), 1),
633
- r(t(w), {
629
+ l(t(w), {
634
630
  title: "关闭",
635
631
  placement: "top",
636
632
  size: "small"
@@ -641,12 +637,12 @@ const ae = /* @__PURE__ */ x({
641
637
  class: "inline-block mx-auto relative flex items-center",
642
638
  onClick: G((S) => a(p.key), ["stop"])
643
639
  }, [
644
- r(t(b), {
640
+ l(t(k), {
645
641
  icon: "icon-new",
646
642
  angle: 45,
647
643
  clickable: "",
648
644
  class: "w-[15px] h-[15px] ml-1",
649
- tipcolor: t(n).colorBgSpotlight
645
+ tipcolor: t(i).colorBgSpotlight
650
646
  }, null, 8, ["tipcolor"])
651
647
  ], 8, Ie)) : I("", !0)
652
648
  ]),
@@ -663,14 +659,13 @@ const ae = /* @__PURE__ */ x({
663
659
  }
664
660
  });
665
661
  export {
666
- je as I,
667
- ue as _,
668
- ae as a,
669
- pe as b,
670
- fe as c,
671
- ge as d,
672
- Ke as e,
673
- xe as f,
674
- Ee as g,
675
- Me as h
662
+ Ke as I,
663
+ le as _,
664
+ pe as a,
665
+ fe as b,
666
+ ge as c,
667
+ Ee as d,
668
+ xe as e,
669
+ Me as f,
670
+ Re as g
676
671
  };
@@ -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 "./index-D9kzQ23e.js";
4
+ import { c as S } from "./uploadList-D2Ux4h1N.js";
5
5
  const T = /* @__PURE__ */ i({
6
6
  __name: "index",
7
7
  props: {