@skyfox2000/webui 1.2.5 → 1.2.7

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 (31) hide show
  1. package/README.md +441 -91
  2. package/lib/assets/modules/{file-upload-CoDWKNFQ.js → file-upload-D4bA7go8.js} +1 -1
  3. package/lib/assets/modules/{form-excel-DitXm4uj.js → form-excel-DL2_SNiS.js} +1 -1
  4. package/lib/assets/modules/{index-DG2jNBuv.js → index-BZvwPKou.js} +1 -1
  5. package/lib/assets/modules/{index-C4515EtU.js → index-CKMDsqve.js} +749 -735
  6. package/lib/assets/modules/{index-B5NckHoK.js → index-D16E7UbH.js} +2 -2
  7. package/lib/assets/modules/{menuTabs-BwX6S1WN.js → menuTabs-izaFx0kk.js} +196 -175
  8. package/lib/assets/modules/{toolIcon-B5Qojob9.js → toolIcon-66dclHit.js} +1 -1
  9. package/lib/assets/modules/{uploadList-BdeV2JlK.js → uploadList-Dw6eRrJT.js} +3 -3
  10. package/lib/components/common/icon/index.vue.d.ts +1 -1
  11. package/lib/es/AceEditor/index.js +3 -3
  12. package/lib/es/BasicLayout/index.js +3 -3
  13. package/lib/es/Error403/index.js +1 -1
  14. package/lib/es/Error404/index.js +1 -1
  15. package/lib/es/ExcelForm/index.js +4 -4
  16. package/lib/es/UploadForm/index.js +4 -4
  17. package/lib/stores/appInfo.d.ts +2 -5
  18. package/lib/stores/userInfo.d.ts +3 -1
  19. package/lib/webui.css +1 -1
  20. package/lib/webui.es.js +279 -290
  21. package/package.json +2 -2
  22. package/src/components/layout/header/headerExits.vue +5 -4
  23. package/src/components/layout/header/index.vue +4 -2
  24. package/src/components/layout/header/user.vue +4 -1
  25. package/src/directives/permission.ts +6 -2
  26. package/src/router/index.ts +1 -11
  27. package/src/stores/appInfo.ts +87 -58
  28. package/src/stores/pageInfo.ts +1 -0
  29. package/src/stores/settingInfo.ts +1 -7
  30. package/src/stores/userInfo.ts +78 -53
  31. package/src/utils/main-openapis.ts +1 -9
@@ -1,8 +1,8 @@
1
1
  import { defineComponent as A, provide as B, ref as S, watch as p, onMounted as F, createBlock as n, openBlock as r, unref as a, withCtx as t, createElementVNode as N, renderSlot as b, createVNode as V, createCommentVNode as d, createTextVNode as u, toDisplayString as m } from "vue";
2
- import { _ as f } from "./index-DG2jNBuv.js";
2
+ import { _ as f } from "./index-BZvwPKou.js";
3
3
  import { Modal as E, Space as M } from "ant-design-vue";
4
4
  import "@skyfox2000/fapi";
5
- import { P, o as $, d as D, b as K } from "./index-C4515EtU.js";
5
+ import { P, o as $, d as D, b as K } from "./index-CKMDsqve.js";
6
6
  import "@skyfox2000/microbase";
7
7
  import "vue-m-message";
8
8
  import "async-validator";
@@ -1,32 +1,32 @@
1
- import { defineComponent as _, createBlock as y, createCommentVNode as I, openBlock as p, unref as t, mergeProps as C, useAttrs as q, computed as P, ref as h, watch as k, withCtx as f, createElementBlock as g, normalizeStyle as T, createElementVNode as x, inject as J, onMounted as R, createVNode as u, toDisplayString as U, Fragment as L, createTextVNode as O, reactive as Q, nextTick as W, renderList as G, withModifiers as X } from "vue";
2
- import { a as w, _ as b } from "./toolIcon-B5Qojob9.js";
3
- import { c as F, Q as j, ad as B, T as K, S as E, u as H, a as V, R as Y, r as D, ab as A } from "./index-C4515EtU.js";
4
- import { theme as N, 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";
5
- import { mainAppApis as M } from "@skyfox2000/microbase";
6
- import { SERVER_HOST as z } from "@skyfox2000/fapi";
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-66dclHit.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-CKMDsqve.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";
5
+ import { mainAppApis as U } from "@skyfox2000/microbase";
6
+ import { SERVER_HOST as B } from "@skyfox2000/fapi";
7
7
  import "vue-m-message";
8
8
  import "async-validator";
9
9
  import "dayjs";
10
10
  import "vue-draggable-next";
11
- const ae = /* @__PURE__ */ _({
11
+ const ae = /* @__PURE__ */ x({
12
12
  __name: "appicon",
13
13
  props: {
14
14
  icon: {
15
15
  type: String
16
16
  }
17
17
  },
18
- setup(s) {
19
- const c = s, e = F({
20
- iconUrl: `${z.APP_ICONS}`,
21
- icon: c.icon
18
+ setup(i) {
19
+ const s = i, e = D({
20
+ iconUrl: `${B.APP_ICONS}`,
21
+ icon: s.icon
22
22
  });
23
- return (l, a) => s.icon ? (p(), y(t(e), C({
23
+ return (l, a) => i.icon ? (u(), h(t(e), C({
24
24
  key: 0,
25
- icon: s.icon,
25
+ icon: i.icon,
26
26
  class: ["text-2xl", "align-middle", "w-6", "h-6"]
27
27
  }, l.$attrs), null, 16, ["icon"])) : I("", !0);
28
28
  }
29
- }), le = ["xlink:href"], re = /* @__PURE__ */ _({
29
+ }), le = ["xlink:href"], re = /* @__PURE__ */ x({
30
30
  inheritAttrs: !1,
31
31
  __name: "index",
32
32
  props: {
@@ -270,55 +270,55 @@ const ae = /* @__PURE__ */ _({
270
270
  */
271
271
  "update:iconIndex"
272
272
  ],
273
- setup(s, { emit: c }) {
274
- const i = q(), e = s, l = c, a = P(() => {
273
+ setup(i, { emit: s }) {
274
+ const n = q(), e = i, l = s, a = j(() => {
275
275
  if (Array.isArray(e.size)) return e.size;
276
276
  {
277
- let o = e.size;
278
- return [o, o];
277
+ let c = e.size;
278
+ return [c, c];
279
279
  }
280
- }), n = h(e.icon), d = h(e.iconIndex);
280
+ }), o = y(e.icon), f = y(e.iconIndex);
281
281
  k(
282
282
  () => e.icon,
283
- (o) => {
284
- n.value = o;
283
+ (c) => {
284
+ o.value = c;
285
285
  }
286
286
  ), k(
287
287
  () => e.iconIndex,
288
- (o) => {
289
- d.value = o, n.value = e.icons[o];
288
+ (c) => {
289
+ f.value = c, o.value = e.icons[c];
290
290
  }
291
291
  );
292
- const r = P({
292
+ const p = j({
293
293
  get() {
294
- return d.value;
294
+ return f.value;
295
295
  },
296
- set(o) {
297
- d.value = o, l("update:iconIndex", d.value);
296
+ set(c) {
297
+ f.value = c, l("update:iconIndex", f.value);
298
298
  }
299
299
  });
300
- e.icons.length > 0 ? (r.value = r.value >= e.icons.length ? 0 : r.value, n.value = e.icons[d.value]) : n.value = e.icon;
301
- const S = (o) => {
302
- if (o.stopPropagation(), e.clickEvent) {
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) {
303
303
  const v = e.clickEvent.split("#");
304
304
  v.length === 2 && J("$" + v[0]).$emit(v[1], e.data);
305
305
  }
306
- e.autoSwitch && e.icons.length > 0 && (r.value = (r.value + 1) % e.icons.length, n.value = e.icons[d.value]), l("click");
307
- }, m = () => {
308
- let o = "";
309
- return e.spin && (o += "rotate"), e.flip && (o += " flip"), o;
306
+ e.autoSwitch && e.icons.length > 0 && (p.value = (p.value + 1) % e.icons.length, o.value = e.icons[f.value]), l("click");
307
+ }, _ = () => {
308
+ let c = "";
309
+ return e.spin && (c += "rotate"), e.flip && (c += " flip"), c;
310
310
  };
311
- return (o, v) => (p(), y(w, {
311
+ return (c, v) => (u(), h(w, {
312
312
  title: e.tiptext,
313
313
  disabled: e.tiptext ? void 0 : "disabled",
314
- color: s.tipcolor,
315
- placement: s.placement,
316
- size: s.tipsize
314
+ color: i.tipcolor,
315
+ placement: i.placement,
316
+ size: i.tipsize
317
317
  }, {
318
- default: f(() => {
319
- var $;
318
+ default: d(() => {
319
+ var A;
320
320
  return [
321
- n.value ? (p(), g("div", {
321
+ o.value ? (u(), g("div", {
322
322
  key: 0,
323
323
  class: "re-icon-container",
324
324
  style: T({
@@ -326,29 +326,29 @@ const ae = /* @__PURE__ */ _({
326
326
  height: a.value[1].toString()
327
327
  })
328
328
  }, [
329
- ($ = n.value) != null && $.startsWith("sym-") ? (p(), g("svg", C({ key: 1 }, t(i), {
330
- class: ["re-icon symbol", [e.clickable ? "clickable" : "", m(), e.className]],
329
+ (A = o.value) != null && A.startsWith("sym-") ? (u(), g("svg", C({ key: 1 }, t(n), {
330
+ class: ["re-icon symbol", [e.clickable ? "clickable" : "", _(), e.className]],
331
331
  "aria-hidden": "true",
332
332
  style: {
333
333
  top: e.position ? e.position[1] : 0,
334
334
  left: e.position ? e.position[0] : 0,
335
335
  fontSize: e.fontsize,
336
336
  transformOrigin: e.center ?? "center center",
337
- transform: t(j)(),
337
+ transform: t(E)(),
338
338
  color: e.color
339
339
  }
340
340
  }), [
341
- x("use", {
342
- "xlink:href": "#icon-" + n.value.replace("sym-", "")
341
+ m("use", {
342
+ "xlink:href": "#icon-" + o.value.replace("sym-", "")
343
343
  }, null, 8, le)
344
- ], 16)) : (p(), g("i", C({ key: 0 }, t(i), {
345
- class: ["re-icon iconfont fontclass", [e.clickable ? "clickable" : "", "icon-" + n.value, m(), e.className]],
344
+ ], 16)) : (u(), g("i", C({ key: 0 }, t(n), {
345
+ class: ["re-icon iconfont fontclass", [e.clickable ? "clickable" : "", "icon-" + o.value, _(), e.className]],
346
346
  style: {
347
347
  top: e.position ? e.position[1] : 1,
348
348
  left: e.position ? e.position[0] : 0,
349
349
  fontSize: e.fontsize,
350
350
  transformOrigin: e.center ?? "center center",
351
- transform: t(j)(e.angle, e.flip),
351
+ transform: t(E)(e.angle, e.flip),
352
352
  color: e.color
353
353
  },
354
354
  "aria-hidden": "true",
@@ -360,12 +360,12 @@ const ae = /* @__PURE__ */ _({
360
360
  _: 1
361
361
  }, 8, ["title", "disabled", "color", "placement", "size"]));
362
362
  }
363
- }), ue = (s, c) => {
364
- const i = s.__vccOpts || s;
365
- for (const [e, l] of c)
366
- i[e] = l;
367
- return i;
368
- }, Be = /* @__PURE__ */ ue(re, [["__scopeId", "data-v-0146f00c"]]), pe = /* @__PURE__ */ _({
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({
369
369
  __name: "projectIcon",
370
370
  props: {
371
371
  icon: {
@@ -382,98 +382,114 @@ const ae = /* @__PURE__ */ _({
382
382
  default: !0
383
383
  }
384
384
  },
385
- setup(s) {
386
- const c = s, e = F({
387
- iconUrl: `${c.iconUrl ?? z.PROJECT_ICONS ?? z.TOOL_ICONS}`,
388
- monoColor: c.monoColor,
389
- icon: c.icon,
390
- icons: c.icons
385
+ setup(i) {
386
+ const s = i, e = D({
387
+ iconUrl: `${s.iconUrl ?? B.PROJECT_ICONS ?? B.TOOL_ICONS}`,
388
+ monoColor: s.monoColor,
389
+ icon: s.icon,
390
+ icons: s.icons
391
391
  });
392
- return (l, a) => s.icon || s.icons ? (p(), y(t(e), C({
392
+ return (l, a) => i.icon || i.icons ? (u(), h(t(e), C({
393
393
  key: 0,
394
- icon: s.icon,
395
- icons: s.icons,
394
+ icon: i.icon,
395
+ icons: i.icons,
396
396
  class: ["align-middle"]
397
397
  }, l.$attrs), null, 16, ["icon", "icons"])) : I("", !0);
398
398
  }
399
399
  }), de = { class: "text-xs leading-[3]" }, me = {
400
400
  key: 0,
401
401
  class: "leading-[2.5] mx-[6px] text-[rgba(0,0,0,0.45)]"
402
- }, fe = /* @__PURE__ */ _({
402
+ }, fe = /* @__PURE__ */ x({
403
403
  __name: "index",
404
- setup(s) {
405
- const { useToken: c } = N, { token: i } = c(), e = B();
404
+ setup(i) {
405
+ const { useToken: s } = O, { token: n } = s(), e = P();
406
406
  return k(
407
407
  () => e.TabActive,
408
- () => K()
409
- ), R(() => {
410
- K();
411
- }), (l, a) => (p(), g("div", {
408
+ () => M()
409
+ ), N(() => {
410
+ M();
411
+ }), (l, a) => (u(), g("div", {
412
412
  class: "ml-5 h-fit p-0 flex items-center justify-between",
413
413
  style: T({
414
- backgroundColor: t(i).colorBgContainer
414
+ backgroundColor: t(n).colorBgContainer
415
415
  })
416
416
  }, [
417
- u(t(b), {
417
+ r(t(b), {
418
418
  icon: "icon-home",
419
419
  class: "w-[15px] h-[15px]"
420
420
  }),
421
- a[0] || (a[0] = x("span", { class: "leading-[2.5] mx-[6px] text-[rgba(0,0,0,0.45)]" }, ">", -1)),
422
- u(t(Z), {
423
- routes: t(E),
421
+ a[0] || (a[0] = m("span", { class: "leading-[2.5] mx-[6px] text-[rgba(0,0,0,0.45)]" }, ">", -1)),
422
+ r(t(Z), {
423
+ routes: t(R),
424
424
  separator: ""
425
425
  }, {
426
- itemRender: f(({ route: n }) => [
427
- x("span", de, U(n.breadcrumbName), 1),
428
- u(t(b), {
429
- icon: n.icon,
426
+ itemRender: d(({ route: o }) => [
427
+ m("span", de, $(o.breadcrumbName), 1),
428
+ r(t(b), {
429
+ icon: o.icon,
430
430
  fontsize: "15px"
431
431
  }, null, 8, ["icon"]),
432
- n.index < t(E).length - 1 ? (p(), g("span", me, ">")) : I("", !0)
432
+ o.index < t(R).length - 1 ? (u(), g("span", me, ">")) : I("", !0)
433
433
  ]),
434
434
  _: 1
435
435
  }, 8, ["routes"])
436
436
  ], 4));
437
437
  }
438
- }), ge = /* @__PURE__ */ _({
438
+ }), _e = { class: "font-['Courier'] text-[#666]" }, ge = /* @__PURE__ */ x({
439
+ __name: "index",
440
+ setup(i) {
441
+ const s = y("");
442
+ return N(() => {
443
+ 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;
446
+ }, 1e3);
447
+ }), (n, e) => (u(), g("div", _e, $(s.value), 1));
448
+ }
449
+ }), xe = /* @__PURE__ */ x({
439
450
  __name: "headerExits",
440
- setup(s) {
441
- const c = H(), i = h(!1), e = () => {
442
- i.value = !1, M.value ? M.value.userLogout() : c.logout();
451
+ setup(i) {
452
+ const s = F(), n = y(!1), e = () => {
453
+ n.value = !1, U.value ? U.value.userLogout() : s.logout();
443
454
  };
444
- return (l, a) => (p(), g(L, null, [
445
- u(t(b), {
446
- icon: "icon-logout",
447
- onClick: a[0] || (a[0] = (n) => i.value = !0),
448
- clickable: "",
449
- class: "w-5 h-5",
450
- title: "退出系统"
455
+ return (l, a) => (u(), g(L, null, [
456
+ r(t(w), { title: "退出平台" }, {
457
+ default: d(() => [
458
+ r(t(b), {
459
+ icon: "icon-logout",
460
+ onClick: a[0] || (a[0] = (o) => n.value = !0),
461
+ clickable: "",
462
+ class: "w-5 h-5",
463
+ title: "退出系统"
464
+ })
465
+ ]),
466
+ _: 1
451
467
  }),
452
- u(t(ee), {
453
- open: i.value,
454
- "onUpdate:open": a[1] || (a[1] = (n) => i.value = n),
468
+ r(t(ee), {
469
+ open: n.value,
470
+ "onUpdate:open": a[1] || (a[1] = (o) => n.value = o),
455
471
  title: "确定退出?",
456
472
  "ok-text": "确定",
457
473
  "cancel-text": "取消",
458
474
  width: 380,
459
475
  onOk: e
460
476
  }, {
461
- default: f(() => [
462
- u(t(te), {
477
+ default: d(() => [
478
+ r(t(te), {
463
479
  align: "center",
464
480
  justify: "flex-start",
465
481
  style: { padding: "0 32px", margin: "20px 0" }
466
482
  }, {
467
- default: f(() => [
468
- u(t(b), {
483
+ default: d(() => [
484
+ r(t(b), {
469
485
  icon: "icon-question-circle",
470
486
  color: "orange",
471
487
  class: "w-[60px] h-[60px]"
472
488
  }),
473
- a[2] || (a[2] = x("div", { style: { margin: "0 0 0 20px", "font-weight": "400", "font-size": "16px" } }, [
474
- O("是否退出系统,"),
475
- x("br"),
476
- O("清除用户缓存信息?")
489
+ a[2] || (a[2] = m("div", { style: { margin: "0 0 0 20px", "font-weight": "400", "font-size": "16px" } }, [
490
+ K("是否退出平台,"),
491
+ m("br"),
492
+ K("清除用户缓存信息?")
477
493
  ], -1))
478
494
  ]),
479
495
  _: 1,
@@ -484,54 +500,58 @@ const ae = /* @__PURE__ */ _({
484
500
  }, 8, ["open"])
485
501
  ], 64));
486
502
  }
487
- }), xe = /* @__PURE__ */ _({
503
+ }), ve = { class: "flex items-center flex-nowrap" }, ye = { class: "mr-2 text-sm whitespace-nowrap" }, he = /* @__PURE__ */ x({
488
504
  __name: "user",
489
- setup(s) {
490
- const c = H().userInfo;
491
- return (i, e) => (p(), y(t(w), {
492
- title: t(c).Name
505
+ setup(i) {
506
+ const s = F().userInfo;
507
+ return (n, e) => (u(), h(t(w), {
508
+ title: t(s).Name
493
509
  }, {
494
- default: f(() => [
495
- u(t(ae), { icon: "icon-account" })
510
+ default: d(() => [
511
+ m("div", ve, [
512
+ m("span", ye, $(t(s).Name), 1),
513
+ r(t(ae), { icon: "icon-account" })
514
+ ])
496
515
  ]),
497
516
  _: 1
498
517
  }, 8, ["title"]));
499
518
  }
500
- }), _e = { class: "flex items-center" }, Ne = /* @__PURE__ */ _({
519
+ }), ke = { class: "flex items-center" }, Ke = /* @__PURE__ */ x({
501
520
  __name: "index",
502
- setup(s) {
503
- const { useToken: c } = N, { token: i } = c(), e = V(), l = () => {
521
+ setup(i) {
522
+ const { useToken: s } = O, { token: n } = s(), e = H(), l = () => {
504
523
  e.setMenuCollapse(!e.menuCollapse);
505
524
  };
506
- return (a, n) => (p(), y(t(ne), {
525
+ return (a, o) => (u(), h(t(ne), {
507
526
  class: "w-full relative z-[1] shadow-[0_-3px_6px_#000] py-0 flex items-center justify-between",
508
527
  style: T({
509
528
  height: "40px",
510
529
  lineHeight: "1",
511
530
  paddingLeft: "10px",
512
- paddingRight: "10px",
513
- backgroundColor: t(i).colorBgContainer
531
+ paddingRight: "20px",
532
+ backgroundColor: t(n).colorBgContainer
514
533
  })
515
534
  }, {
516
- default: f(() => [
517
- x("div", _e, [
518
- u(t(b), {
535
+ default: d(() => [
536
+ m("div", ke, [
537
+ r(t(b), {
519
538
  icon: "icon-menu",
520
539
  clickable: "",
521
540
  class: "w-[18px] h-[18px]",
522
541
  angle: t(e).menuCollapse ? 90 : 0,
523
542
  onClick: l
524
543
  }, null, 8, ["angle"]),
525
- u(fe)
544
+ r(fe)
526
545
  ]),
527
- x("div", null, [
528
- u(t(oe), {
546
+ m("div", null, [
547
+ r(t(oe), {
529
548
  size: "middle",
530
549
  class: "flex items-center"
531
550
  }, {
532
- default: f(() => [
533
- u(xe, { class: "w-7 h-7" }),
534
- u(ge)
551
+ default: d(() => [
552
+ r(ge),
553
+ r(he),
554
+ r(xe)
535
555
  ]),
536
556
  _: 1
537
557
  })
@@ -540,24 +560,24 @@ const ae = /* @__PURE__ */ _({
540
560
  _: 1
541
561
  }, 8, ["style"]));
542
562
  }
543
- }), Pe = /* @__PURE__ */ _({
563
+ }), Ee = /* @__PURE__ */ x({
544
564
  __name: "index",
545
565
  props: {
546
566
  routes: {}
547
567
  },
548
- setup(s) {
549
- const c = s, i = h([]), e = h([]), l = Q([]), a = B(), n = (m) => {
550
- A().push(m.key.toString());
551
- }, d = V(), r = h([]), S = () => {
552
- let m = a.TabActive;
553
- const o = m.split("/");
554
- o.pop(), i.value = [o.join("/")], d.menuCollapse || (r.value = [o.join("/")]), e.value = [m];
568
+ setup(i) {
569
+ const s = i, n = y([]), e = y([]), l = Q([]), a = P(), o = (_) => {
570
+ z().push(_.key.toString());
571
+ }, f = H(), p = y([]), S = () => {
572
+ let _ = a.TabActive;
573
+ const c = _.split("/");
574
+ c.pop(), n.value = [c.join("/")], f.menuCollapse || (p.value = [c.join("/")]), e.value = [_];
555
575
  };
556
576
  return k(
557
- () => d.menuCollapse,
558
- (m) => {
559
- m || (r.value = [], W(() => {
560
- r.value = [...i.value];
577
+ () => f.menuCollapse,
578
+ (_) => {
579
+ _ || (p.value = [], W(() => {
580
+ p.value = [...n.value];
561
581
  }));
562
582
  }
563
583
  ), k(
@@ -565,70 +585,70 @@ const ae = /* @__PURE__ */ _({
565
585
  () => {
566
586
  S();
567
587
  }
568
- ), R(() => {
569
- Y(c.routes, l, pe, { class: "!w-5 !h-5" }), a.setTabActive(D.currentRoute.value.path), S();
570
- }), (m, o) => (p(), y(t(se), {
571
- openKeys: r.value,
572
- "onUpdate:openKeys": o[0] || (o[0] = (v) => r.value = v),
588
+ ), 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), {
591
+ openKeys: p.value,
592
+ "onUpdate:openKeys": c[0] || (c[0] = (v) => p.value = v),
573
593
  selectedKeys: e.value,
574
- "onUpdate:selectedKeys": o[1] || (o[1] = (v) => e.value = v),
594
+ "onUpdate:selectedKeys": c[1] || (c[1] = (v) => e.value = v),
575
595
  mode: "inline",
576
596
  theme: "dark",
577
597
  items: l,
578
- onClick: n
598
+ onClick: o
579
599
  }, null, 8, ["openKeys", "selectedKeys", "items"]));
580
600
  }
581
- }), ve = { class: "flex items-center" }, ye = { class: "flex" }, he = ["onClick"], Oe = /* @__PURE__ */ _({
601
+ }), be = { class: "flex items-center" }, Se = { class: "flex" }, Ie = ["onClick"], Me = /* @__PURE__ */ x({
582
602
  __name: "menuTabs",
583
- setup(s) {
584
- const { useToken: c } = N, { token: i } = c(), e = B();
603
+ setup(i) {
604
+ const { useToken: s } = O, { token: n } = s(), e = P();
585
605
  k(
586
- () => D.currentRoute.value.path,
587
- (n) => {
588
- n !== e.TabActive && e.setTabActive(n);
606
+ () => V.currentRoute.value.path,
607
+ (o) => {
608
+ o !== e.TabActive && e.setTabActive(o);
589
609
  }
590
610
  );
591
- const l = (n) => {
592
- A().push(n);
593
- }, a = (n) => {
594
- e.removeTabPane(n), A().push(e.TabActive);
611
+ const l = (o) => {
612
+ z().push(o);
613
+ }, a = (o) => {
614
+ e.removeTabPane(o), z().push(e.TabActive);
595
615
  };
596
- return (n, d) => (p(), g("div", {
597
- style: T({ height: "38px", backgroundColor: t(i).colorBgBase })
616
+ return (o, f) => (u(), g("div", {
617
+ style: T({ height: "38px", backgroundColor: t(n).colorBgBase })
598
618
  }, [
599
- u(t(ie), {
619
+ r(t(ie), {
600
620
  activeKey: t(e).TabActive,
601
621
  "hide-add": "",
602
622
  size: "small",
603
623
  tabBarStyle: { padding: "0 20px" },
604
624
  onTabClick: l
605
625
  }, {
606
- default: f(() => [
607
- (p(!0), g(L, null, G(t(e).TabPanes, (r) => (p(), y(t(ce), {
608
- key: r.key
626
+ default: d(() => [
627
+ (u(!0), g(L, null, Y(t(e).TabPanes, (p) => (u(), h(t(ce), {
628
+ key: p.key
609
629
  }, {
610
- tab: f(() => [
611
- x("div", ve, [
612
- x("span", ye, U(r.title), 1),
613
- u(t(w), {
630
+ tab: d(() => [
631
+ m("div", be, [
632
+ m("span", Se, $(p.title), 1),
633
+ r(t(w), {
614
634
  title: "关闭",
615
635
  placement: "top",
616
636
  size: "small"
617
637
  }, {
618
- default: f(() => [
619
- t(e).TabPanes.length > 1 && r.closable ? (p(), g("div", {
638
+ default: d(() => [
639
+ t(e).TabPanes.length > 1 && p.closable ? (u(), g("div", {
620
640
  key: 0,
621
641
  class: "inline-block mx-auto relative flex items-center",
622
- onClick: X((S) => a(r.key), ["stop"])
642
+ onClick: G((S) => a(p.key), ["stop"])
623
643
  }, [
624
- u(t(b), {
644
+ r(t(b), {
625
645
  icon: "icon-new",
626
646
  angle: 45,
627
647
  clickable: "",
628
648
  class: "w-[15px] h-[15px] ml-1",
629
- tipcolor: t(i).colorBgSpotlight
649
+ tipcolor: t(n).colorBgSpotlight
630
650
  }, null, 8, ["tipcolor"])
631
- ], 8, he)) : I("", !0)
651
+ ], 8, Ie)) : I("", !0)
632
652
  ]),
633
653
  _: 2
634
654
  }, 1024)
@@ -643,13 +663,14 @@ const ae = /* @__PURE__ */ _({
643
663
  }
644
664
  });
645
665
  export {
646
- Be as I,
666
+ je as I,
647
667
  ue as _,
648
668
  ae as a,
649
669
  pe as b,
650
670
  fe as c,
651
- Ne as d,
652
- ge as e,
653
- Pe as f,
654
- Oe as g
671
+ ge as d,
672
+ Ke as e,
673
+ xe as f,
674
+ Ee as g,
675
+ Me as h
655
676
  };
@@ -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-C4515EtU.js";
4
+ import { c as S } from "./index-CKMDsqve.js";
5
5
  const T = /* @__PURE__ */ i({
6
6
  __name: "index",
7
7
  props: {
@@ -1,9 +1,9 @@
1
1
  import { defineComponent as $, ref as k, computed as O, watch as j, createElementBlock as p, openBlock as f, createElementVNode as r, createVNode as v, unref as l, mergeProps as B, withCtx as U, createTextVNode as E, toDisplayString as y, Fragment as M, renderList as R, normalizeClass as T, createCommentVNode as F } from "vue";
2
- import { _ as V } from "./index-DG2jNBuv.js";
2
+ import { _ as V } from "./index-BZvwPKou.js";
3
3
  import { Upload as A, Tag as K, Progress as D } from "ant-design-vue";
4
4
  import { httpPost as I, ResStatus as Q } from "@skyfox2000/fapi";
5
- import "./index-C4515EtU.js";
6
- import { U as o, p as q } from "./file-upload-CoDWKNFQ.js";
5
+ import "./index-CKMDsqve.js";
6
+ import { U as o, p as q } from "./file-upload-D4bA7go8.js";
7
7
  import { combineParams as G } from "@skyfox2000/microbase";
8
8
  import h from "vue-m-message";
9
9
  import "async-validator";
@@ -228,9 +228,9 @@ declare const _default: DefineComponent<ExtractPropTypes<{
228
228
  onClick?: ((...args: any[]) => any) | undefined;
229
229
  "onUpdate:iconIndex"?: ((...args: any[]) => any) | undefined;
230
230
  }>, {
231
- fontsize: string;
232
231
  icons: string[];
233
232
  size: string | String[];
233
+ fontsize: string;
234
234
  className: string;
235
235
  iconIndex: number;
236
236
  clickable: boolean;