@skyfox2000/webui 1.6.14 → 1.6.15

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 (34) hide show
  1. package/lib/assets/modules/{baseLayout-C3MLMXao.js → baseLayout-Cia1cG5l.js} +3 -3
  2. package/lib/assets/modules/{file-upload-CUtR0hOH.js → file-upload-D1gRZv8j.js} +1 -1
  3. package/lib/assets/modules/{index-hkaalxUK.js → index-MgDOEHr_.js} +2 -2
  4. package/lib/assets/modules/{index-DZBPuIFH.js → index-Ye0JfNsM.js} +1 -1
  5. package/lib/assets/modules/{index-DnOFwC7U.js → index-xnHQyu3E.js} +2 -2
  6. package/lib/assets/modules/{menuTabs-De95t73j.js → menuTabs-C3imgUBh.js} +36 -36
  7. package/lib/assets/modules/{toolIcon-N4IrlKKJ.js → toolIcon-DFf-Ttkx.js} +1 -1
  8. package/lib/assets/modules/{upload-template-BdldosL5.js → upload-template-BDrBVe4E.js} +1060 -1057
  9. package/lib/assets/modules/{uploadList-DbCnFWuZ.js → uploadList-BreC8S8m.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 +52 -52
  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/locales/default.en-US.d.ts +1 -3
  19. package/lib/locales/default.zh-CN.d.ts +1 -3
  20. package/lib/webui.css +1 -1
  21. package/lib/webui.es.js +1300 -1297
  22. package/package.json +1 -1
  23. package/src/components/content/table/index.vue +3 -0
  24. package/src/components/form/input/index.vue +3 -3
  25. package/src/components/form/input/inputNumber.vue +2 -3
  26. package/src/components/form/input/inputPassword.vue +2 -3
  27. package/src/components/form/propEditor/index.vue +4 -6
  28. package/src/components/form/radio/index.vue +1 -1
  29. package/src/components/form/switch/index.vue +20 -8
  30. package/src/components/form/textarea/index.vue +2 -4
  31. package/src/components/form/timePicker/index.vue +2 -3
  32. package/src/components/form/upload/imageList.vue +7 -9
  33. package/src/locales/default.en-US.ts +4 -6
  34. package/src/locales/default.zh-CN.ts +4 -6
@@ -1,8 +1,8 @@
1
1
  import { defineComponent as _, onMounted as I, openBlock as o, createBlock as s, unref as e, withCtx as l, createElementVNode as x, createVNode as p, createElementBlock as y, toDisplayString as g, createCommentVNode as r, 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-N4IrlKKJ.js";
4
- import { I as C, _ as S, e as w, c as $, f as N } from "./menuTabs-De95t73j.js";
5
- import { an as v, a as B, as as E } from "./upload-template-BdldosL5.js";
3
+ import { a as b } from "./toolIcon-DFf-Ttkx.js";
4
+ import { I as C, _ as S, e as w, c as $, f as N } from "./menuTabs-C3imgUBh.js";
5
+ import { am as v, a as B, ar as E } from "./upload-template-BDrBVe4E.js";
6
6
  import "@skyfox2000/microbase";
7
7
  import "@skyfox2000/fapi";
8
8
  import L from "vue-m-message";
@@ -4,7 +4,7 @@ var h = (i, e, a) => U(i, typeof e != "symbol" ? e + "" : e, a);
4
4
  import { hostUrl as E } from "@skyfox2000/fapi";
5
5
  import m from "dayjs";
6
6
  import f from "vue-m-message";
7
- import { $ as n, M as y, u as F } from "./upload-template-BdldosL5.js";
7
+ import { $ as n, M as y, u as F } from "./upload-template-BDrBVe4E.js";
8
8
  import { isMicroApp as g } from "@skyfox2000/microbase";
9
9
  var l = /* @__PURE__ */ ((i) => (i.Pending = "pending", i.Uploading = "uploading", i.Success = "success", i.Error = "error", i.Online = "online", i.Offline = "offline", i))(l || {});
10
10
  class M {
@@ -1,10 +1,10 @@
1
1
  import H from "async-validator";
2
2
  import { httpPost as $, ResStatus as M } from "@skyfox2000/fapi";
3
- import { $ as d, L as U, u as V, i as j, av as T } from "./upload-template-BdldosL5.js";
3
+ import { $ as d, L as U, u as V, i as j, au as T } from "./upload-template-BDrBVe4E.js";
4
4
  import E from "vue-m-message";
5
5
  import { defineComponent as S, useAttrs as B, openBlock as y, createElementBlock as P, createVNode as z, unref as v, mergeProps as _, computed as x, createBlock as D, withCtx as A, normalizeStyle as L } from "vue";
6
6
  import { Spin as N, Alert as O } from "ant-design-vue";
7
- import { _ as K } from "./toolIcon-N4IrlKKJ.js";
7
+ import { _ as K } from "./toolIcon-DFf-Ttkx.js";
8
8
  const W = (l) => {
9
9
  const e = l.split(`
10
10
  `).filter((i) => i.trim() !== "");
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as d, useAttrs as f, openBlock as u, createElementBlock 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-N4IrlKKJ.js";
3
+ import { a as P, _ as k } from "./toolIcon-DFf-Ttkx.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 A, watch as m, onMounted as V, openBlock as r, createBlock as d, unref as o, withCtx as n, createElementVNode as $, renderSlot as C, createVNode as D, createTextVNode as u, toDisplayString as v, createCommentVNode as f } from "vue";
2
- import { _ as c } from "./index-DZBPuIFH.js";
2
+ import { _ as c } from "./index-Ye0JfNsM.js";
3
3
  import { Modal as E, Space as M } from "ant-design-vue";
4
4
  import "@skyfox2000/fapi";
5
- import { P, d as K, $ as p, o as U, b as j } from "./upload-template-BdldosL5.js";
5
+ import { P, d as K, $ as p, o as U, b as j } from "./upload-template-BDrBVe4E.js";
6
6
  import "vue-m-message";
7
7
  import "@skyfox2000/microbase";
8
8
  import "async-validator";
@@ -1,6 +1,6 @@
1
- import { defineComponent as x, openBlock as c, createBlock as _, unref as t, mergeProps as $, createCommentVNode as h, useAttrs as X, computed as O, ref as k, watch as S, withCtx as m, createElementBlock as f, normalizeStyle as T, createElementVNode as g, inject as G, onMounted as P, createVNode as u, toDisplayString as C, Fragment as L, renderList as R, createTextVNode as Q, reactive as Y, nextTick as Z, withModifiers as ee } from "vue";
2
- import { a as A, _ as b } from "./toolIcon-N4IrlKKJ.js";
3
- import { c as D, W as j, as as E, ak as K, N as U, X as F, u as H, $ as w, M as te, U as V, aj as ne, a as W, a5 as oe, r as q, an as B } from "./upload-template-BdldosL5.js";
1
+ import { defineComponent as x, openBlock as c, createBlock as _, unref as t, mergeProps as $, createCommentVNode as h, useAttrs as G, computed as O, ref as b, watch as S, withCtx as m, createElementBlock as f, normalizeStyle as T, createElementVNode as g, inject as Q, onMounted as P, createVNode as u, toDisplayString as C, Fragment as L, renderList as U, createTextVNode as X, reactive as Y, nextTick as Z, withModifiers as ee } from "vue";
2
+ import { a as A, _ as k } from "./toolIcon-DFf-Ttkx.js";
3
+ import { c as D, V as j, ar as E, aj as K, K as R, W as F, u as V, $ as w, M as te, T as H, ai as ne, a as W, a4 as oe, r as q, am as B } from "./upload-template-BDrBVe4E.js";
4
4
  import { _ as se } from "./_plugin-vue_export-helper-CHgC5LLL.js";
5
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";
6
6
  import { isMicroApp as fe } from "@skyfox2000/microbase";
@@ -272,13 +272,13 @@ const ge = /* @__PURE__ */ x({
272
272
  "update:iconIndex"
273
273
  ],
274
274
  setup(l, { emit: o }) {
275
- const s = X(), e = l, r = o, i = O(() => {
275
+ const s = G(), e = l, r = o, i = O(() => {
276
276
  if (Array.isArray(e.size)) return e.size;
277
277
  {
278
278
  let a = e.size;
279
279
  return [a, a];
280
280
  }
281
- }), n = k(e.icon), p = k(e.iconIndex);
281
+ }), n = b(e.icon), p = b(e.iconIndex);
282
282
  S(
283
283
  () => e.icon,
284
284
  (a) => {
@@ -302,7 +302,7 @@ const ge = /* @__PURE__ */ x({
302
302
  const I = (a) => {
303
303
  if (a.stopPropagation(), e.clickEvent) {
304
304
  const v = e.clickEvent.split("#");
305
- v.length === 2 && G("$" + v[0]).$emit(v[1], e.data);
305
+ v.length === 2 && Q("$" + v[0]).$emit(v[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]), r("click");
308
308
  }, y = () => {
@@ -395,7 +395,7 @@ const ge = /* @__PURE__ */ x({
395
395
  }), he = { class: "text-xs leading-[3]" }, ve = {
396
396
  key: 0,
397
397
  class: "leading-[2.5] mx-[6px] text-[rgba(0,0,0,0.45)]"
398
- }, ke = /* @__PURE__ */ x({
398
+ }, be = /* @__PURE__ */ x({
399
399
  __name: "index",
400
400
  setup(l) {
401
401
  const { useToken: o } = M, { token: s } = o(), e = E();
@@ -410,31 +410,31 @@ const ge = /* @__PURE__ */ x({
410
410
  backgroundColor: t(s).colorBgContainer
411
411
  })
412
412
  }, [
413
- u(t(b), {
413
+ u(t(k), {
414
414
  icon: "icon-home",
415
415
  class: "w-[15px] h-[15px]"
416
416
  }),
417
417
  i[0] || (i[0] = g("span", { class: "leading-[2.5] mx-[6px] text-[rgba(0,0,0,0.45)]" }, ">", -1)),
418
418
  u(t(ie), {
419
- routes: t(U),
419
+ routes: t(R),
420
420
  separator: ""
421
421
  }, {
422
422
  itemRender: m(({ route: n }) => [
423
423
  g("span", he, C(n.breadcrumbName), 1),
424
- u(t(b), {
424
+ u(t(k), {
425
425
  icon: n.icon,
426
426
  fontsize: "15px"
427
427
  }, null, 8, ["icon"]),
428
- n.index < t(U).length - 1 ? (c(), f("span", ve, ">")) : h("", !0)
428
+ n.index < t(R).length - 1 ? (c(), f("span", ve, ">")) : h("", !0)
429
429
  ]),
430
430
  _: 1
431
431
  }, 8, ["routes"])
432
432
  ], 4));
433
433
  }
434
- }), be = { class: "font-['Courier'] text-[#666]" }, we = /* @__PURE__ */ x({
434
+ }), ke = { class: "font-['Courier'] text-[#666]" }, we = /* @__PURE__ */ x({
435
435
  __name: "index",
436
436
  setup(l) {
437
- const o = k("");
437
+ const o = b("");
438
438
  return P(() => {
439
439
  setInterval(() => {
440
440
  const s = /* @__PURE__ */ new Date(), e = F(), r = {
@@ -448,12 +448,12 @@ const ge = /* @__PURE__ */ x({
448
448
  };
449
449
  o.value = s.toLocaleString(e, r);
450
450
  }, 1e3);
451
- }), (s, e) => (c(), f("div", be, C(o.value), 1));
451
+ }), (s, e) => (c(), f("div", ke, C(o.value), 1));
452
452
  }
453
453
  }), Se = { style: { margin: "0 0 0 20px", "font-weight": "400", "font-size": "16px" } }, Ce = /* @__PURE__ */ x({
454
454
  __name: "headerExits",
455
455
  setup(l) {
456
- const o = H(), s = k(!1), e = () => {
456
+ const o = V(), s = b(!1), e = () => {
457
457
  s.value = !1, fe() ? te.userLogout() : o.logout(!0);
458
458
  };
459
459
  return (r, i) => (c(), f(L, null, [
@@ -461,7 +461,7 @@ const ge = /* @__PURE__ */ x({
461
461
  title: t(w)("webui.components.layout.header.exitPlatform")
462
462
  }, {
463
463
  default: m(() => [
464
- u(t(b), {
464
+ u(t(k), {
465
465
  icon: "icon-logout",
466
466
  onClick: i[0] || (i[0] = (n) => s.value = !0),
467
467
  clickable: "",
@@ -487,7 +487,7 @@ const ge = /* @__PURE__ */ x({
487
487
  style: { padding: "0 32px", margin: "20px 0" }
488
488
  }, {
489
489
  default: m(() => [
490
- u(t(b), {
490
+ u(t(k), {
491
491
  icon: "icon-question-circle",
492
492
  color: "orange",
493
493
  class: "w-[60px] h-[60px]"
@@ -504,7 +504,7 @@ const ge = /* @__PURE__ */ x({
504
504
  }), Ie = { class: "flex items-center flex-nowrap" }, $e = { class: "mr-2 text-sm whitespace-nowrap" }, Te = /* @__PURE__ */ x({
505
505
  __name: "user",
506
506
  setup(l) {
507
- const o = H().userInfo;
507
+ const o = V().userInfo;
508
508
  return (s, e) => (c(), _(t(A), {
509
509
  title: t(o).Name
510
510
  }, {
@@ -520,7 +520,7 @@ const ge = /* @__PURE__ */ x({
520
520
  }), Ae = { class: "flex items-center cursor-pointer" }, ze = /* @__PURE__ */ x({
521
521
  __name: "language",
522
522
  setup(l) {
523
- const o = V(), s = k(F()), e = o.length > 0, r = async (i) => {
523
+ const o = H(), s = b(F()), e = o.length > 0, r = async (i) => {
524
524
  try {
525
525
  await ne(i), s.value = i, window.location.reload();
526
526
  } catch (n) {
@@ -534,12 +534,12 @@ const ge = /* @__PURE__ */ x({
534
534
  overlay: m(() => [
535
535
  u(t(J), null, {
536
536
  default: m(() => [
537
- (c(!0), f(L, null, R(t(o), (p) => (c(), _(t(re), {
537
+ (c(!0), f(L, null, U(t(o), (p) => (c(), _(t(re), {
538
538
  key: p.key,
539
539
  onClick: (d) => r(p.key)
540
540
  }, {
541
541
  default: m(() => [
542
- Q(C(p.label), 1)
542
+ X(C(p.label), 1)
543
543
  ]),
544
544
  _: 2
545
545
  }, 1032, ["onClick"]))), 128))
@@ -549,7 +549,7 @@ const ge = /* @__PURE__ */ x({
549
549
  ]),
550
550
  default: m(() => [
551
551
  g("div", Ae, [
552
- u(t(b), {
552
+ u(t(k), {
553
553
  icon: "icon-language",
554
554
  class: "w-[18px] h-[18px]"
555
555
  })
@@ -564,12 +564,12 @@ const ge = /* @__PURE__ */ x({
564
564
  }, Pe = {
565
565
  key: 2,
566
566
  class: "w-[1px] h-[16px] bg-[#d9d9d9] mx-[3px]"
567
- }, Xe = /* @__PURE__ */ x({
567
+ }, Ge = /* @__PURE__ */ x({
568
568
  __name: "index",
569
569
  setup(l) {
570
570
  const { useToken: o } = M, { token: s } = o(), e = W(), r = () => {
571
571
  e.setMenuCollapse(!e.menuCollapse);
572
- }, i = (e.showLanguage ?? !0) && V().length > 1;
572
+ }, i = (e.showLanguage ?? !0) && H().length > 1;
573
573
  return (n, p) => (c(), _(t(ue), {
574
574
  class: "w-full relative z-[1] shadow-[0_-3px_6px_#000] py-0 flex items-center justify-between",
575
575
  style: T({
@@ -582,14 +582,14 @@ const ge = /* @__PURE__ */ x({
582
582
  }, {
583
583
  default: m(() => [
584
584
  g("div", Be, [
585
- u(t(b), {
585
+ u(t(k), {
586
586
  icon: "icon-menu",
587
587
  clickable: "",
588
588
  class: "w-[18px] h-[18px]",
589
589
  angle: t(e).menuCollapse ? 90 : 0,
590
590
  onClick: r
591
591
  }, null, 8, ["angle"]),
592
- u(ke)
592
+ u(be)
593
593
  ]),
594
594
  g("div", null, [
595
595
  u(t(pe), {
@@ -612,15 +612,15 @@ const ge = /* @__PURE__ */ x({
612
612
  _: 1
613
613
  }, 8, ["style"]));
614
614
  }
615
- }), Ge = /* @__PURE__ */ x({
615
+ }), Qe = /* @__PURE__ */ x({
616
616
  __name: "index",
617
617
  props: {
618
618
  routes: {}
619
619
  },
620
620
  setup(l) {
621
- const o = l, s = k([]), e = k([]), r = Y([]), i = E(), n = (y) => {
621
+ const o = l, s = b([]), e = b([]), r = Y([]), i = E(), n = (y) => {
622
622
  B().push(y.key.toString());
623
- }, p = W(), d = k([]), I = () => {
623
+ }, p = W(), d = b([]), I = () => {
624
624
  let y = i.TabActive;
625
625
  const a = y.split("/");
626
626
  a.pop(), s.value = [a.join("/")], p.menuCollapse || (d.value = [a.join("/")]), e.value = [y];
@@ -650,7 +650,7 @@ const ge = /* @__PURE__ */ x({
650
650
  onClick: n
651
651
  }, null, 8, ["openKeys", "selectedKeys", "items"]));
652
652
  }
653
- }), Le = { class: "flex items-center" }, Ee = { class: "flex" }, Me = ["onClick"], Qe = /* @__PURE__ */ x({
653
+ }), Le = { class: "flex items-center" }, Ee = { class: "flex" }, Me = ["onClick"], Xe = /* @__PURE__ */ x({
654
654
  __name: "menuTabs",
655
655
  setup(l) {
656
656
  const { useToken: o } = M, { token: s } = o(), e = E();
@@ -676,7 +676,7 @@ const ge = /* @__PURE__ */ x({
676
676
  onTabClick: r
677
677
  }, {
678
678
  default: m(() => [
679
- (c(!0), f(L, null, R(t(e).TabPanes, (d) => (c(), _(t(me), {
679
+ (c(!0), f(L, null, U(t(e).TabPanes, (d) => (c(), _(t(me), {
680
680
  key: d.key
681
681
  }, {
682
682
  tab: m(() => [
@@ -693,7 +693,7 @@ const ge = /* @__PURE__ */ x({
693
693
  class: "inline-block mx-auto relative flex items-center",
694
694
  onClick: ee((I) => i(d.key), ["stop"])
695
695
  }, [
696
- u(t(b), {
696
+ u(t(k), {
697
697
  icon: "icon-new",
698
698
  angle: 45,
699
699
  clickable: "",
@@ -717,11 +717,11 @@ const ge = /* @__PURE__ */ x({
717
717
  export {
718
718
  Je as I,
719
719
  ge as _,
720
- ke as a,
720
+ be as a,
721
721
  we as b,
722
- Xe as c,
722
+ Ge as c,
723
723
  Ce as d,
724
- Ge as e,
725
- Qe as f,
724
+ Qe as e,
725
+ Xe as f,
726
726
  ye as g
727
727
  };
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as i, openBlock as s, createBlock as l, unref as a, withCtx as p, renderSlot as f, mergeProps as u, createCommentVNode 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-BdldosL5.js";
4
+ import { c as S } from "./upload-template-BDrBVe4E.js";
5
5
  const T = /* @__PURE__ */ i({
6
6
  __name: "index",
7
7
  props: {