@skyfox2000/webui 1.2.12 → 1.3.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 (45) hide show
  1. package/lib/assets/modules/{file-upload-CGyzCx7I.js → file-upload-C4GVmWjB.js} +1 -1
  2. package/lib/assets/modules/{form-excel-DWirWVPA.js → form-excel-Cr2hcL1s.js} +3 -3
  3. package/lib/assets/modules/{index-Czk7DDWM.js → index-D5onbqkl.js} +2 -2
  4. package/lib/assets/modules/{index-C1zkNPmi.js → index-DjBruVH-.js} +1 -1
  5. package/lib/assets/modules/{menuTabs-BOax-dro.js → menuTabs-B9fCWfN1.js} +36 -36
  6. package/lib/assets/modules/{toolIcon-vJF7OgP6.js → toolIcon-DKTf30Tq.js} +1 -1
  7. package/lib/assets/modules/{uploadList-DaUjVXLU.js → uploadList-CY57np42.js} +980 -923
  8. package/lib/assets/modules/uploadList-D2lisNHt.js +327 -0
  9. package/lib/components/form/autoComplete/index.vue.d.ts +15 -52
  10. package/lib/components/form/cascader/index.vue.d.ts +16 -56
  11. package/lib/components/form/checkbox/index.vue.d.ts +15 -54
  12. package/lib/components/form/index.d.ts +1 -1
  13. package/lib/components/form/propEditor/index.vue.d.ts +1 -7
  14. package/lib/components/form/radio/index.vue.d.ts +15 -54
  15. package/lib/components/form/select/index.vue.d.ts +15 -60
  16. package/lib/components/form/switch/index.vue.d.ts +62 -29
  17. package/lib/es/AceEditor/index.js +3 -3
  18. package/lib/es/BasicLayout/index.js +6 -6
  19. package/lib/es/Error403/index.js +1 -1
  20. package/lib/es/Error404/index.js +1 -1
  21. package/lib/es/ExcelForm/index.js +37 -37
  22. package/lib/es/UploadForm/index.js +4 -4
  23. package/lib/index.d.ts +1 -1
  24. package/lib/typings/form.d.ts +19 -0
  25. package/lib/typings/option.d.ts +93 -74
  26. package/lib/utils/options.d.ts +4 -7
  27. package/lib/utils/page.d.ts +5 -0
  28. package/lib/webui.css +1 -1
  29. package/lib/webui.es.js +861 -851
  30. package/package.json +14 -14
  31. package/src/components/form/autoComplete/index.vue +29 -16
  32. package/src/components/form/cascader/index.vue +25 -9
  33. package/src/components/form/checkbox/index.vue +26 -10
  34. package/src/components/form/index.ts +1 -1
  35. package/src/components/form/propEditor/index.vue +6 -21
  36. package/src/components/form/radio/index.vue +26 -10
  37. package/src/components/form/select/index.vue +38 -40
  38. package/src/components/form/switch/index.vue +23 -5
  39. package/src/index.ts +8 -1
  40. package/src/typings/form.d.ts +19 -0
  41. package/src/typings/option.d.ts +93 -73
  42. package/src/utils/form-excel.ts +2 -2
  43. package/src/utils/options.ts +58 -62
  44. package/src/utils/page.ts +41 -0
  45. package/lib/assets/modules/uploadList-BW23uSvi.js +0 -369
@@ -2,7 +2,7 @@ var m = Object.defineProperty;
2
2
  var E = (t, r, n) => r in t ? m(t, r, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[r] = n;
3
3
  var d = (t, r, n) => E(t, typeof r != "symbol" ? r + "" : r, n);
4
4
  import { hostUrl as v } from "@skyfox2000/fapi";
5
- import { ac as S, ab as w, u as g } from "./uploadList-DaUjVXLU.js";
5
+ import { ae as S, ad as w, u as g } from "./uploadList-CY57np42.js";
6
6
  import { mainAppApis as a } from "@skyfox2000/microbase";
7
7
  import y from "dayjs";
8
8
  import p from "vue-m-message";
@@ -1,9 +1,9 @@
1
1
  import k from "async-validator";
2
2
  import { httpPost as J, ResStatus as C } from "@skyfox2000/fapi";
3
- import { i as N, ae as R } from "./uploadList-DaUjVXLU.js";
3
+ import { i as N, ag as R } from "./uploadList-CY57np42.js";
4
4
  import E from "vue-m-message";
5
5
  const F = async (d) => {
6
- const o = await import("exceljs"), g = new o.Workbook();
6
+ const o = await import("exceljs"), g = new o.default.Workbook();
7
7
  await g.xlsx.load(d);
8
8
  const c = g.worksheets[0];
9
9
  if (!c)
@@ -49,7 +49,7 @@ const F = async (d) => {
49
49
  e && e.length > 0 && e.forEach((f) => {
50
50
  r.includes(f) || r.push(f);
51
51
  });
52
- const a = new g.Workbook(), n = a.addWorksheet("Sheet1"), l = 15, y = /* @__PURE__ */ new Map();
52
+ const a = new g.default.Workbook(), n = a.addWorksheet("Sheet1"), l = 15, y = /* @__PURE__ */ new Map();
53
53
  i.forEach(({ row: f, col: p, color: u }) => {
54
54
  const v = `${f}-${p}`;
55
55
  y.set(v, u || "FFFF0000");
@@ -1,8 +1,8 @@
1
1
  import { defineComponent as F, provide as _, ref as w, watch as p, onMounted as B, createBlock as n, openBlock as r, unref as a, withCtx as i, createElementVNode as N, renderSlot as b, createVNode as V, createCommentVNode as d, createTextVNode as u, toDisplayString as v } from "vue";
2
- import { _ as m } from "./index-C1zkNPmi.js";
2
+ import { _ as m } from "./index-DjBruVH-.js";
3
3
  import { Modal as D, Space as E } from "ant-design-vue";
4
4
  import "@skyfox2000/fapi";
5
- import { P as M, d as P, o as $, b as K } from "./uploadList-DaUjVXLU.js";
5
+ import { P as M, d as P, o as $, b as K } from "./uploadList-CY57np42.js";
6
6
  import "@skyfox2000/microbase";
7
7
  import "vue-m-message";
8
8
  import "async-validator";
@@ -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-vJF7OgP6.js";
3
+ import { a as P, _ as k } from "./toolIcon-DKTf30Tq.js";
4
4
  const C = /* @__PURE__ */ d({
5
5
  inheritAttrs: !1,
6
6
  __name: "index",
@@ -1,9 +1,9 @@
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-vJF7OgP6.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-DaUjVXLU.js";
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 l, toDisplayString as $, Fragment as L, createTextVNode as K, reactive as W, nextTick as Y, renderList as G, withModifiers as Q } from "vue";
2
+ import { a as w, _ as b } from "./toolIcon-DKTf30Tq.js";
3
+ import { c as D, S as E, af as P, V as U, U as M, u as F, a as V, T as X, r as H, ad as z } from "./uploadList-CY57np42.js";
4
4
  import { _ as Z } from "./_plugin-vue_export-helper-CHgC5LLL.js";
5
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";
6
- import { mainAppApis as U } from "@skyfox2000/microbase";
6
+ import { mainAppApis as R } from "@skyfox2000/microbase";
7
7
  import { SERVER_HOST as B } from "@skyfox2000/fapi";
8
8
  import "vue-m-message";
9
9
  import "async-validator";
@@ -279,12 +279,12 @@ const le = /* @__PURE__ */ x({
279
279
  return [o, o];
280
280
  }
281
281
  }), n = y(e.icon), f = y(e.iconIndex);
282
- b(
282
+ k(
283
283
  () => e.icon,
284
284
  (o) => {
285
285
  n.value = o;
286
286
  }
287
- ), b(
287
+ ), k(
288
288
  () => e.iconIndex,
289
289
  (o) => {
290
290
  f.value = o, n.value = e.icons[o];
@@ -399,33 +399,33 @@ const le = /* @__PURE__ */ x({
399
399
  __name: "index",
400
400
  setup(c) {
401
401
  const { useToken: s } = O, { token: i } = s(), e = P();
402
- return b(
402
+ return k(
403
403
  () => e.TabActive,
404
- () => M()
404
+ () => U()
405
405
  ), N(() => {
406
- M();
406
+ U();
407
407
  }), (r, a) => (u(), g("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(k), {
413
+ l(t(b), {
414
414
  icon: "icon-home",
415
415
  class: "w-[15px] h-[15px]"
416
416
  }),
417
417
  a[0] || (a[0] = m("span", { class: "leading-[2.5] mx-[6px] text-[rgba(0,0,0,0.45)]" }, ">", -1)),
418
418
  l(t(ee), {
419
- routes: t(R),
419
+ routes: t(M),
420
420
  separator: ""
421
421
  }, {
422
422
  itemRender: d(({ route: n }) => [
423
423
  m("span", de, $(n.breadcrumbName), 1),
424
- l(t(k), {
424
+ l(t(b), {
425
425
  icon: n.icon,
426
426
  fontsize: "15px"
427
427
  }, null, 8, ["icon"]),
428
- n.index < t(R).length - 1 ? (u(), g("span", me, ">")) : I("", !0)
428
+ n.index < t(M).length - 1 ? (u(), g("span", me, ">")) : I("", !0)
429
429
  ]),
430
430
  _: 1
431
431
  }, 8, ["routes"])
@@ -446,12 +446,12 @@ const le = /* @__PURE__ */ x({
446
446
  __name: "headerExits",
447
447
  setup(c) {
448
448
  const s = F(), i = y(!1), e = () => {
449
- i.value = !1, U.value ? U.value.userLogout() : s.logout();
449
+ i.value = !1, R.value ? R.value.userLogout() : s.logout();
450
450
  };
451
451
  return (r, a) => (u(), g(L, null, [
452
452
  l(t(w), { title: "退出平台" }, {
453
453
  default: d(() => [
454
- l(t(k), {
454
+ l(t(b), {
455
455
  icon: "icon-logout",
456
456
  onClick: a[0] || (a[0] = (n) => i.value = !0),
457
457
  clickable: "",
@@ -477,7 +477,7 @@ const le = /* @__PURE__ */ x({
477
477
  style: { padding: "0 32px", margin: "20px 0" }
478
478
  }, {
479
479
  default: d(() => [
480
- l(t(k), {
480
+ l(t(b), {
481
481
  icon: "icon-question-circle",
482
482
  color: "orange",
483
483
  class: "w-[60px] h-[60px]"
@@ -512,10 +512,10 @@ const le = /* @__PURE__ */ x({
512
512
  _: 1
513
513
  }, 8, ["title"]));
514
514
  }
515
- }), be = { class: "flex items-center" }, Ee = /* @__PURE__ */ x({
515
+ }), ke = { class: "flex items-center" }, Ee = /* @__PURE__ */ x({
516
516
  __name: "index",
517
517
  setup(c) {
518
- const { useToken: s } = O, { token: i } = s(), e = H(), r = () => {
518
+ const { useToken: s } = O, { token: i } = s(), e = V(), r = () => {
519
519
  e.setMenuCollapse(!e.menuCollapse);
520
520
  };
521
521
  return (a, n) => (u(), h(t(oe), {
@@ -529,8 +529,8 @@ const le = /* @__PURE__ */ x({
529
529
  })
530
530
  }, {
531
531
  default: d(() => [
532
- m("div", be, [
533
- l(t(k), {
532
+ m("div", ke, [
533
+ l(t(b), {
534
534
  icon: "icon-menu",
535
535
  clickable: "",
536
536
  class: "w-[18px] h-[18px]",
@@ -556,33 +556,33 @@ const le = /* @__PURE__ */ x({
556
556
  _: 1
557
557
  }, 8, ["style"]));
558
558
  }
559
- }), Me = /* @__PURE__ */ x({
559
+ }), Ue = /* @__PURE__ */ x({
560
560
  __name: "index",
561
561
  props: {
562
562
  routes: {}
563
563
  },
564
564
  setup(c) {
565
- const s = c, i = y([]), e = y([]), r = Q([]), a = P(), n = (_) => {
565
+ const s = c, i = y([]), e = y([]), r = W([]), a = P(), n = (_) => {
566
566
  z().push(_.key.toString());
567
- }, f = H(), p = y([]), S = () => {
567
+ }, f = V(), p = y([]), S = () => {
568
568
  let _ = a.TabActive;
569
569
  const o = _.split("/");
570
570
  o.pop(), i.value = [o.join("/")], f.menuCollapse || (p.value = [o.join("/")]), e.value = [_];
571
571
  };
572
- return b(
572
+ return k(
573
573
  () => f.menuCollapse,
574
574
  (_) => {
575
- _ || (p.value = [], W(() => {
575
+ _ || (p.value = [], Y(() => {
576
576
  p.value = [...i.value];
577
577
  }));
578
578
  }
579
- ), b(
579
+ ), k(
580
580
  () => a.TabActive,
581
581
  () => {
582
582
  S();
583
583
  }
584
584
  ), N(() => {
585
- X(s.routes, r, pe, { class: "!w-5 !h-5" }), a.setTabActive(V.currentRoute.value.path), S();
585
+ X(s.routes, r, pe, { class: "!w-5 !h-5" }), a.setTabActive(H.currentRoute.value.path), S();
586
586
  }), (_, o) => (u(), h(t(ie), {
587
587
  openKeys: p.value,
588
588
  "onUpdate:openKeys": o[0] || (o[0] = (v) => p.value = v),
@@ -594,12 +594,12 @@ const le = /* @__PURE__ */ x({
594
594
  onClick: n
595
595
  }, null, 8, ["openKeys", "selectedKeys", "items"]));
596
596
  }
597
- }), ke = { class: "flex items-center" }, Se = { class: "flex" }, Ie = ["onClick"], Re = /* @__PURE__ */ x({
597
+ }), be = { class: "flex items-center" }, Se = { class: "flex" }, Ie = ["onClick"], Me = /* @__PURE__ */ x({
598
598
  __name: "menuTabs",
599
599
  setup(c) {
600
600
  const { useToken: s } = O, { token: i } = s(), e = P();
601
- b(
602
- () => V.currentRoute.value.path,
601
+ k(
602
+ () => H.currentRoute.value.path,
603
603
  (n) => {
604
604
  n !== e.TabActive && e.setTabActive(n);
605
605
  }
@@ -620,11 +620,11 @@ const le = /* @__PURE__ */ x({
620
620
  onTabClick: r
621
621
  }, {
622
622
  default: d(() => [
623
- (u(!0), g(L, null, Y(t(e).TabPanes, (p) => (u(), h(t(ae), {
623
+ (u(!0), g(L, null, G(t(e).TabPanes, (p) => (u(), h(t(ae), {
624
624
  key: p.key
625
625
  }, {
626
626
  tab: d(() => [
627
- m("div", ke, [
627
+ m("div", be, [
628
628
  m("span", Se, $(p.title), 1),
629
629
  l(t(w), {
630
630
  title: "关闭",
@@ -635,9 +635,9 @@ const le = /* @__PURE__ */ x({
635
635
  t(e).TabPanes.length > 1 && p.closable ? (u(), g("div", {
636
636
  key: 0,
637
637
  class: "inline-block mx-auto relative flex items-center",
638
- onClick: G((S) => a(p.key), ["stop"])
638
+ onClick: Q((S) => a(p.key), ["stop"])
639
639
  }, [
640
- l(t(k), {
640
+ l(t(b), {
641
641
  icon: "icon-new",
642
642
  angle: 45,
643
643
  clickable: "",
@@ -666,6 +666,6 @@ export {
666
666
  ge as c,
667
667
  Ee as d,
668
668
  xe as e,
669
- Me as f,
670
- Re as g
669
+ Ue as f,
670
+ Me as g
671
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 "./uploadList-DaUjVXLU.js";
4
+ import { c as S } from "./uploadList-CY57np42.js";
5
5
  const T = /* @__PURE__ */ i({
6
6
  __name: "index",
7
7
  props: {