@skyfox2000/webui 1.4.7 → 1.4.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 (29) hide show
  1. package/lib/assets/modules/{baseLayout-DOrecPPK.js → baseLayout-DIny49tw.js} +3 -3
  2. package/lib/assets/modules/{file-upload-lbkluj3p.js → file-upload-DHUBZlX4.js} +1 -1
  3. package/lib/assets/modules/{index-DQ-VDAr-.js → index-BIAdOoSj.js} +2 -2
  4. package/lib/assets/modules/{index-BLNKcgk-.js → index-CEffEFtI.js} +1 -1
  5. package/lib/assets/modules/index-DyRjXb_O.js +114 -0
  6. package/lib/assets/modules/{menuTabs-DOtYQ9Zu.js → menuTabs-CCrFWIOl.js} +2 -2
  7. package/lib/assets/modules/{toolIcon-CqJWc5B7.js → toolIcon-BGZR_aUI.js} +1 -1
  8. package/lib/assets/modules/{uploadList-DafDrGgh.js → uploadList-CMXuGRWT.js} +20 -20
  9. package/lib/assets/modules/{uploadList-3SuA7du0.js → uploadList-l4q5o65m.js} +4 -4
  10. package/lib/components/common/icon/helper.vue.d.ts +2 -0
  11. package/lib/components/content/dialog/index.vue.d.ts +1 -0
  12. package/lib/components/content/drawer/index.vue.d.ts +2 -0
  13. package/lib/es/AceEditor/index.js +3 -3
  14. package/lib/es/BasicLayout/index.js +2 -2
  15. package/lib/es/Error403/index.js +1 -1
  16. package/lib/es/Error404/index.js +1 -1
  17. package/lib/es/ExcelForm/index.js +5 -5
  18. package/lib/es/MenuLayout/index.js +2 -2
  19. package/lib/es/TemplateFile/index.js +4 -4
  20. package/lib/es/UploadForm/index.js +4 -4
  21. package/lib/webui.css +1 -1
  22. package/lib/webui.es.js +170 -161
  23. package/package.json +1 -1
  24. package/src/components/common/icon/helper.vue +3 -1
  25. package/src/components/content/dialog/index.vue +15 -13
  26. package/src/components/content/drawer/index.vue +29 -51
  27. package/src/components/form/propEditor/index.vue +21 -7
  28. package/src/components/form/select/index.vue +1 -1
  29. package/lib/assets/modules/index-B1MSCuqH.js +0 -112
package/lib/webui.es.js CHANGED
@@ -1,23 +1,23 @@
1
- import { u as Ee, i as Z, a as me, L as Xe, c as Ze, P as j, o as Pe, b as ea, d as aa, e as Fe, r as ce, f as ta, g as la, h as Ne, j as sa, k as ke, l as ra, _ as oa, m as na, O as Me, n as ia, q as Be, p as ca, s as ua, t as L, v as da, w as pa, x as fa, y as va, z as ma, A as ha, B as Y, C as ga, D as ba, E as _a, F as Re } from "./assets/modules/uploadList-DafDrGgh.js";
2
- import { ab as Il, R as Dl, ad as El, S as Pl, W as Fl, aa as Nl, a8 as Ml, a9 as Bl, ac as Rl, Z as Ol, U as Al, a6 as Ll, a3 as zl, N as Ul, a5 as Vl, V as Yl, H as Kl, a0 as Wl, a4 as Hl, a7 as jl, Q as Ql, T as ql, ae as Gl, G as Jl, a2 as Xl, af as Zl, Y as es, $ as as, X as ts, ag as ls, I as ss, J as rs, ah as os, M as ns, ai as is, K as cs, a1 as us } from "./assets/modules/uploadList-DafDrGgh.js";
3
- import { A as ps, U as fs, p as vs } from "./assets/modules/file-upload-lbkluj3p.js";
1
+ import { u as Ee, i as Z, a as me, L as Xe, c as Ze, P as j, o as Pe, b as ea, d as aa, e as Fe, r as ce, f as ta, g as la, h as Ne, j as sa, k as ke, l as ra, _ as oa, m as na, O as Me, n as ia, q as Be, p as ca, s as ua, t as L, v as da, w as pa, x as fa, y as va, z as ma, A as ha, B as Y, C as ga, D as ba, E as xa, F as Re } from "./assets/modules/uploadList-CMXuGRWT.js";
2
+ import { ab as Il, R as Dl, ad as El, S as Pl, W as Fl, aa as Nl, a8 as Ml, a9 as Bl, ac as Rl, Z as Ol, U as Al, a6 as Ll, a3 as zl, N as Ul, a5 as Vl, V as Yl, H as Kl, a0 as Wl, a4 as Hl, a7 as jl, Q as Ql, T as ql, ae as Gl, G as Jl, a2 as Xl, af as Zl, Y as es, $ as as, X as ts, ag as ls, I as ss, J as rs, ah as os, M as ns, ai as is, K as cs, a1 as us } from "./assets/modules/uploadList-CMXuGRWT.js";
3
+ import { A as ps, U as fs, p as vs } from "./assets/modules/file-upload-DHUBZlX4.js";
4
4
  import { EnvConfig as we } from "@skyfox2000/microbase";
5
- import { FrontCache as re, httpPost as Oe, ResStatus as Ae, SERVER_HOST as xa, fieldMapping as oe } from "@skyfox2000/fapi";
5
+ import { FrontCache as re, httpPost as Oe, ResStatus as Ae, SERVER_HOST as _a, fieldMapping as oe } from "@skyfox2000/fapi";
6
6
  import he from "vue-m-message";
7
- import { defineComponent as C, createBlock as b, openBlock as m, withModifiers as ae, unref as l, useAttrs as X, withCtx as g, createElementVNode as $, createVNode as w, mergeProps as N, renderSlot as D, normalizeClass as P, toDisplayString as F, createCommentVNode as k, ref as _, provide as ge, watch as T, onMounted as K, createTextVNode as M, inject as ne, resolveDirective as le, withDirectives as Q, computed as J, createElementBlock as S, normalizeStyle as be, createSlots as Le, useSlots as ya, Fragment as R, renderList as z, resolveDynamicComponent as ka, onActivated as wa, shallowRef as Sa, onUnmounted as Ca, withKeys as Se } from "vue";
7
+ import { defineComponent as C, createBlock as b, openBlock as m, withModifiers as ae, unref as l, useAttrs as X, withCtx as g, createElementVNode as $, createVNode as w, mergeProps as N, renderSlot as I, normalizeClass as P, toDisplayString as F, createCommentVNode as k, ref as x, provide as ge, watch as T, onMounted as K, createTextVNode as M, inject as ne, resolveDirective as le, withDirectives as Q, computed as J, createElementBlock as S, normalizeStyle as be, createSlots as Le, useSlots as ya, Fragment as R, renderList as z, resolveDynamicComponent as ka, onActivated as wa, shallowRef as Sa, onUnmounted as Ca, withKeys as Se } from "vue";
8
8
  import "async-validator";
9
9
  import fe from "dayjs";
10
- import { Popover as Ta, theme as ze, Drawer as $a, Space as te, Form as Ue, message as Ia, FormItem as Ve, ConfigProvider as Ce, Popconfirm as Da, Button as Ye, DropdownButton as Ea, Menu as _e, MenuItem as xe, Dropdown as ve, Checkbox as Pa, Table as Ke, Tree as Fa, Cascader as Na, DatePicker as Ma, Input as ee, InputPassword as Ba, InputNumber as Ra, RangePicker as Oa, Textarea as Aa, TimePicker as La, Transfer as za, TreeSelect as Ua, LayoutContent as Va } from "ant-design-vue";
10
+ import { Popover as Ta, theme as ze, Drawer as $a, Space as te, Form as Ue, message as Ia, FormItem as Ve, ConfigProvider as Ce, Popconfirm as Da, Button as Ye, DropdownButton as Ea, Menu as xe, MenuItem as _e, Dropdown as ve, Checkbox as Pa, Table as Ke, Tree as Fa, Cascader as Na, DatePicker as Ma, Input as ee, InputPassword as Ba, InputNumber as Ra, RangePicker as Oa, Textarea as Aa, TimePicker as La, Transfer as za, TreeSelect as Ua, LayoutContent as Va } from "ant-design-vue";
11
11
  import { VueDraggableNext as Ya } from "vue-draggable-next";
12
- import { d as We } from "./assets/modules/uploadList-3SuA7du0.js";
13
- import { C as hs, U as gs, a as bs, p as _s } from "./assets/modules/uploadList-3SuA7du0.js";
14
- import { c as He } from "./assets/modules/index-DQ-VDAr-.js";
15
- import { _ as ys, h as ks, b as ws, a as Ss, d as Cs, e as Ts, g as $s, f as Is, n as Ds, p as Es, t as Ps, v as Fs } from "./assets/modules/index-DQ-VDAr-.js";
16
- import { _ as A } from "./assets/modules/index-BLNKcgk-.js";
17
- import { _ as U } from "./assets/modules/toolIcon-CqJWc5B7.js";
18
- import { a as Ms } from "./assets/modules/toolIcon-CqJWc5B7.js";
19
- import { _ as Rs, b as Os, c as As, d as Ls, e as zs, I as Us, f as Vs, g as Ys, a as Ks } from "./assets/modules/menuTabs-DOtYQ9Zu.js";
20
- import { _ as Hs } from "./assets/modules/index-B1MSCuqH.js";
12
+ import { d as We } from "./assets/modules/uploadList-l4q5o65m.js";
13
+ import { C as hs, U as gs, a as bs, p as xs } from "./assets/modules/uploadList-l4q5o65m.js";
14
+ import { c as He } from "./assets/modules/index-BIAdOoSj.js";
15
+ import { _ as ys, h as ks, b as ws, a as Ss, d as Cs, e as Ts, g as $s, f as Is, n as Ds, p as Es, t as Ps, v as Fs } from "./assets/modules/index-BIAdOoSj.js";
16
+ import { _ as A } from "./assets/modules/index-CEffEFtI.js";
17
+ import { _ as U } from "./assets/modules/toolIcon-BGZR_aUI.js";
18
+ import { a as Ms } from "./assets/modules/toolIcon-BGZR_aUI.js";
19
+ import { _ as Rs, b as Os, c as As, d as Ls, e as zs, I as Us, f as Vs, g as Ys, a as Ks } from "./assets/modules/menuTabs-CCrFWIOl.js";
20
+ import { _ as Hs } from "./assets/modules/index-DyRjXb_O.js";
21
21
  import { _ as q } from "./assets/modules/_plugin-vue_export-helper-CHgC5LLL.js";
22
22
  const Te = (s, a, e, t = "remove") => {
23
23
  if (!e)
@@ -367,13 +367,13 @@ const Xt = async (s, a) => {
367
367
  if (e.isGridLoading.value = !1, (r == null ? void 0 : r.status) === Ae.SUCCESS) {
368
368
  if (r.data) {
369
369
  const u = r.data.map((O) => {
370
- const x = { ...O };
370
+ const _ = { ...O };
371
371
  return p.forEach((E) => {
372
372
  const B = E.dataIndex || E.key;
373
- B && E.customRender && (x[B] = E.customRender(O[B], O));
374
- }), x;
375
- }), y = new i({ fields: d }).parse(u), I = new Blob([`\uFEFF${y}`], { type: "text/csv" });
376
- We(I, c);
373
+ B && E.customRender && (_[B] = E.customRender(O[B], O));
374
+ }), _;
375
+ }), y = new i({ fields: d }).parse(u), D = new Blob([`\uFEFF${y}`], { type: "text/csv" });
376
+ We(D, c);
377
377
  }
378
378
  } else if ((r == null ? void 0 : r.errno) == Xe) {
379
379
  Ee().logout(!1);
@@ -399,13 +399,16 @@ const Xt = async (s, a) => {
399
399
  props: {
400
400
  text: {},
401
401
  maxWidth: {},
402
- size: {}
402
+ size: {},
403
+ placement: {}
403
404
  },
404
405
  setup(s) {
405
406
  const a = X();
406
- return (e, t) => (m(), b(l(Ta), { placement: "topRight" }, {
407
+ return (e, t) => (m(), b(l(Ta), {
408
+ placement: e.placement ?? "topRight"
409
+ }, {
407
410
  content: g(() => [
408
- D(e.$slots, "default", {}, () => [
411
+ I(e.$slots, "default", {}, () => [
409
412
  $("div", {
410
413
  class: P(["text-[14px]", [e.maxWidth]])
411
414
  }, F(e.text), 3)
@@ -420,7 +423,7 @@ const Xt = async (s, a) => {
420
423
  ])
421
424
  ]),
422
425
  _: 3
423
- }));
426
+ }, 8, ["placement"]));
424
427
  }
425
428
  }), ll = /* @__PURE__ */ C({
426
429
  __name: "layoutIcon",
@@ -434,7 +437,7 @@ const Xt = async (s, a) => {
434
437
  },
435
438
  setup(s) {
436
439
  const a = s, t = Ze({
437
- iconUrl: `${xa.MICROLAYOUT_ICONS}`,
440
+ iconUrl: `${_a.MICROLAYOUT_ICONS}`,
438
441
  monoColor: !0,
439
442
  icon: a.icon,
440
443
  icons: a.icons
@@ -457,7 +460,7 @@ const Xt = async (s, a) => {
457
460
  drawerSaveAs: { type: Function }
458
461
  },
459
462
  setup(s) {
460
- const { useToken: a } = ze, { token: e } = a(), t = _(!1), n = s, i = n.editorCtrl;
463
+ const { useToken: a } = ze, { token: e } = a(), t = x(!1), n = s, i = n.editorCtrl;
461
464
  ge(j.EditorControl, i), T(
462
465
  () => i.visible.value,
463
466
  (o) => {
@@ -497,59 +500,63 @@ const Xt = async (s, a) => {
497
500
  onClose: d
498
501
  }, {
499
502
  extra: g(() => [
500
- $("div", st, [
501
- w(l(U), {
502
- class: "top-[-2px] left-[2px] w-6 h-6",
503
- icon: "icon-new",
504
- angle: 45,
505
- fontsize: "24px",
506
- clickable: "",
507
- color: "#666",
508
- position: [0, 0],
509
- onClick: d
510
- })
503
+ I(o.$slots, "extra", {}, () => [
504
+ $("div", st, [
505
+ w(l(U), {
506
+ class: "top-[-2px] left-[2px] w-6 h-6",
507
+ icon: "icon-new",
508
+ angle: 45,
509
+ fontsize: "24px",
510
+ clickable: "",
511
+ color: "#666",
512
+ position: [0, 0],
513
+ onClick: d
514
+ })
515
+ ])
511
516
  ])
512
517
  ]),
513
518
  default: g(() => [
514
- D(o.$slots, "default")
519
+ I(o.$slots, "default")
515
520
  ]),
516
521
  footer: g(() => [
517
- w(l(te), null, {
518
- default: g(() => [
519
- o.cancelText !== "" ? (m(), b(l(A), {
520
- key: 0,
521
- onClick: d
522
- }, {
523
- default: g(() => [
524
- M(F(o.cancelText ?? "取消"), 1)
525
- ]),
526
- _: 1
527
- })) : k("", !0),
528
- o.saveAsText !== "" && l(i).saveAsBtnVisible !== !1 ? (m(), b(l(A), {
529
- key: 1,
530
- onClick: p,
531
- type: "primary",
532
- loading: l(i).isFormSaving.value
533
- }, {
534
- default: g(() => [
535
- M(F(o.saveAsText ?? "另存为"), 1)
536
- ]),
537
- _: 1
538
- }, 8, ["loading"])) : k("", !0),
539
- o.saveText !== "" && l(i).saveBtnVisible !== !1 ? (m(), b(l(A), {
540
- key: 2,
541
- onClick: c,
542
- type: "primary",
543
- loading: l(i).isFormSaving.value
544
- }, {
545
- default: g(() => [
546
- M(F(o.saveText ?? "保存"), 1)
547
- ]),
548
- _: 1
549
- }, 8, ["loading"])) : k("", !0)
550
- ]),
551
- _: 1
552
- })
522
+ I(o.$slots, "footer", {}, () => [
523
+ w(l(te), null, {
524
+ default: g(() => [
525
+ o.cancelText !== "" ? (m(), b(l(A), {
526
+ key: 0,
527
+ onClick: d
528
+ }, {
529
+ default: g(() => [
530
+ M(F(o.cancelText ?? "取消"), 1)
531
+ ]),
532
+ _: 1
533
+ })) : k("", !0),
534
+ o.saveAsText !== "" && l(i).saveAsBtnVisible !== !1 ? (m(), b(l(A), {
535
+ key: 1,
536
+ onClick: p,
537
+ type: "primary",
538
+ loading: l(i).isFormSaving.value
539
+ }, {
540
+ default: g(() => [
541
+ M(F(o.saveAsText ?? "另存为"), 1)
542
+ ]),
543
+ _: 1
544
+ }, 8, ["loading"])) : k("", !0),
545
+ o.saveText !== "" && l(i).saveBtnVisible !== !1 ? (m(), b(l(A), {
546
+ key: 2,
547
+ onClick: c,
548
+ type: "primary",
549
+ loading: l(i).isFormSaving.value
550
+ }, {
551
+ default: g(() => [
552
+ M(F(o.saveText ?? "保存"), 1)
553
+ ]),
554
+ _: 1
555
+ }, 8, ["loading"])) : k("", !0)
556
+ ]),
557
+ _: 1
558
+ })
559
+ ])
553
560
  ]),
554
561
  _: 3
555
562
  }, 8, ["open", "header-style"]));
@@ -576,7 +583,7 @@ const Xt = async (s, a) => {
576
583
  }
577
584
  }, {
578
585
  default: g(() => [
579
- D(t.$slots, "default")
586
+ I(t.$slots, "default")
580
587
  ]),
581
588
  _: 3
582
589
  }, 8, ["label-col", "wrapper-col"])), [
@@ -604,7 +611,7 @@ const Xt = async (s, a) => {
604
611
  bottomMargin: {}
605
612
  },
606
613
  setup(s) {
607
- const a = s, e = X(), t = ne(j.EditorControl, void 0), n = ne(j.LabelWidth, "85px") ?? "85px", i = Fe(a, t), c = _(!1);
614
+ const a = s, e = X(), t = ne(j.EditorControl, void 0), n = ne(j.LabelWidth, "85px") ?? "85px", i = Fe(a, t), c = x(!1);
608
615
  setTimeout(() => {
609
616
  c.value = !0;
610
617
  }, 30);
@@ -641,10 +648,10 @@ const Xt = async (s, a) => {
641
648
  class: P(["flex items-center", o.width ? o.width : "w-full"])
642
649
  }, [
643
650
  o.nextLine ? k("", !0) : (m(), S("div", rt, [
644
- D(o.$slots, "default")
651
+ I(o.$slots, "default")
645
652
  ])),
646
653
  $("div", ot, [
647
- D(o.$slots, "helper", {}, () => [
654
+ I(o.$slots, "helper", {}, () => [
648
655
  o.helper ? (m(), b(l(lt), {
649
656
  key: 0,
650
657
  text: o.helper
@@ -659,7 +666,7 @@ const Xt = async (s, a) => {
659
666
  key: 1,
660
667
  class: P(["w-[95%] flex items-center relative", [o.nextLine ? o.rule ? "mb-7" : "mb-3" : ""]])
661
668
  }, [
662
- D(o.$slots, "default")
669
+ I(o.$slots, "default")
663
670
  ], 2)) : k("", !0),
664
671
  l(i).errClass ? (m(), S("span", {
665
672
  key: 2,
@@ -692,7 +699,7 @@ const Xt = async (s, a) => {
692
699
  default: g(() => [
693
700
  $("div", it, [
694
701
  $("div", ct, [
695
- D(i.$slots, "default")
702
+ I(i.$slots, "default")
696
703
  ])
697
704
  ])
698
705
  ]),
@@ -720,7 +727,7 @@ const Xt = async (s, a) => {
720
727
  },
721
728
  emits: ["update:search", "reset"],
722
729
  setup(s, { emit: a }) {
723
- const e = s, t = a, n = _(0), i = _(0), c = _(0), p = (u) => {
730
+ const e = s, t = a, n = x(0), i = x(0), c = x(0), p = (u) => {
724
731
  let h = 0;
725
732
  for (let y = 0; y < u.length; y++)
726
733
  typeof u[y].type == "object" && h++;
@@ -778,8 +785,8 @@ const Xt = async (s, a) => {
778
785
  class: "flex mb-[10px]"
779
786
  }, {
780
787
  default: g(() => [
781
- D(u.$slots, "default"),
782
- u.gridCtrl.searchBar ? D(u.$slots, "control", { key: 0 }) : k("", !0),
788
+ I(u.$slots, "default"),
789
+ u.gridCtrl.searchBar ? I(u.$slots, "control", { key: 0 }) : k("", !0),
783
790
  n.value >= 1 ? (m(), b(pe, {
784
791
  key: 1,
785
792
  class: "w-1/3"
@@ -929,12 +936,12 @@ const Xt = async (s, a) => {
929
936
  size: "small"
930
937
  }, {
931
938
  overlay: g(() => [
932
- w(l(_e), null, {
939
+ w(l(xe), null, {
933
940
  default: g(() => [
934
941
  (m(!0), S(R, null, z(l(c), (r) => (m(), S(R, {
935
942
  key: r.key
936
943
  }, [
937
- l(G)(r, a.record) ? Q((m(), b(l(xe), {
944
+ l(G)(r, a.record) ? Q((m(), b(l(_e), {
938
945
  key: 0,
939
946
  disabled: p(r),
940
947
  onClick: (v) => l(V)(r, l(e).page, l(e), a.record)
@@ -981,7 +988,7 @@ const Xt = async (s, a) => {
981
988
  W(t, "tool.export.excel.selected") && (W(t, "tool.export.excel.selected").disabled = !p), W(t, "tool.export.pdf.selected") && (W(t, "tool.export.pdf.selected").disabled = !p);
982
989
  }
983
990
  );
984
- const i = _([]);
991
+ const i = x([]);
985
992
  T(
986
993
  () => e.columns.value,
987
994
  (p) => {
@@ -1089,9 +1096,9 @@ const Xt = async (s, a) => {
1089
1096
  class: "p-0 rounded-none"
1090
1097
  }, {
1091
1098
  overlay: g(() => [
1092
- w(l(_e), null, {
1099
+ w(l(xe), null, {
1093
1100
  default: g(() => [
1094
- (m(!0), S(R, null, z(o.children, (r) => (m(), b(l(xe), {
1101
+ (m(!0), S(R, null, z(o.children, (r) => (m(), b(l(_e), {
1095
1102
  key: r.key,
1096
1103
  disabled: l(H)(r)
1097
1104
  }, {
@@ -1149,7 +1156,7 @@ const Xt = async (s, a) => {
1149
1156
  // 默认仅受权限码控制
1150
1157
  click: () => sa(n)
1151
1158
  }
1152
- ], p = _([]), d = _([]);
1159
+ ], p = x([]), d = x([]);
1153
1160
  return T(
1154
1161
  () => {
1155
1162
  var o;
@@ -1190,9 +1197,9 @@ const Xt = async (s, a) => {
1190
1197
  ])), 128)),
1191
1198
  d.value.length > 0 ? (m(), b(l(ve), { key: 0 }, {
1192
1199
  overlay: g(() => [
1193
- w(l(_e), null, {
1200
+ w(l(xe), null, {
1194
1201
  default: g(() => [
1195
- (m(!0), S(R, null, z(d.value, (v) => Q((m(), b(l(xe), {
1202
+ (m(!0), S(R, null, z(d.value, (v) => Q((m(), b(l(_e), {
1196
1203
  key: v.key,
1197
1204
  disabled: l(H)(v),
1198
1205
  onClick: (u) => l(V)(v, l(t), l(e))
@@ -1247,7 +1254,7 @@ const Xt = async (s, a) => {
1247
1254
  setup(s) {
1248
1255
  const a = s, e = X(), t = a.gridCtrl, n = J(() => ce.currentRoute.value.path);
1249
1256
  t && (t.pageNo.value = 1, t.total.value = 0, t.pageSize.value = t.pageSize.value);
1250
- const i = _(t.pageSize.value), c = _(t.pageNo.value), p = _([]), d = _({
1257
+ const i = x(t.pageSize.value), c = x(t.pageNo.value), p = x([]), d = x({
1251
1258
  total: 0,
1252
1259
  current: 1,
1253
1260
  pageSize: i.value,
@@ -1270,7 +1277,7 @@ const Xt = async (s, a) => {
1270
1277
  },
1271
1278
  { immediate: !0 }
1272
1279
  );
1273
- const o = _(t.columns.value), f = {
1280
+ const o = x(t.columns.value), f = {
1274
1281
  onChange: (u, h) => {
1275
1282
  t && (t.selectKeys.value = u, t.selectRows.value = h);
1276
1283
  },
@@ -1279,7 +1286,7 @@ const Xt = async (s, a) => {
1279
1286
  disabled: u.Enabled === 0
1280
1287
  }),
1281
1288
  ...a.rowSelection
1282
- }, r = _(f);
1289
+ }, r = x(f);
1283
1290
  T(
1284
1291
  () => t.selectable.value,
1285
1292
  (u) => {
@@ -1293,7 +1300,7 @@ const Xt = async (s, a) => {
1293
1300
  },
1294
1301
  { deep: !0, immediate: !0 }
1295
1302
  );
1296
- const v = _(!1);
1303
+ const v = x(!1);
1297
1304
  return wa(() => {
1298
1305
  v.value && t && (t.reload.value = !0);
1299
1306
  }), K(async () => {
@@ -1301,10 +1308,10 @@ const Xt = async (s, a) => {
1301
1308
  v.value = !0;
1302
1309
  }, 50);
1303
1310
  }), (u, h) => {
1304
- var I, O;
1311
+ var D, O;
1305
1312
  const y = le("auth");
1306
1313
  return m(), S(R, null, [
1307
- (I = l(t).buttons) != null && I.value.length || (O = l(t).tools) != null && O.length ? (m(), b(gt, {
1314
+ (D = l(t).buttons) != null && D.value.length || (O = l(t).tools) != null && O.length ? (m(), b(gt, {
1308
1315
  key: 0,
1309
1316
  "grid-ctrl": l(t),
1310
1317
  "editor-ctrl": l(t).editor
@@ -1322,34 +1329,34 @@ const Xt = async (s, a) => {
1322
1329
  size: l(t).tableSize.value,
1323
1330
  bordered: ""
1324
1331
  }, l(e)), {
1325
- bodyCell: g((x) => {
1332
+ bodyCell: g((_) => {
1326
1333
  var E, B;
1327
1334
  return [
1328
- D(u.$slots, "bodyCell", {
1329
- column: x == null ? void 0 : x.column,
1330
- record: x == null ? void 0 : x.record
1335
+ I(u.$slots, "bodyCell", {
1336
+ column: _ == null ? void 0 : _.column,
1337
+ record: _ == null ? void 0 : _.record
1331
1338
  }),
1332
- l(t) && ((E = x == null ? void 0 : x.column) == null ? void 0 : E.dataIndex) === "enabled" ? Q((m(), b(oa, {
1339
+ l(t) && ((E = _ == null ? void 0 : _.column) == null ? void 0 : E.dataIndex) === "enabled" ? Q((m(), b(oa, {
1333
1340
  key: 0,
1334
- checked: x.record.Enabled,
1335
- "onUpdate:checked": (se) => x.record.Enabled = se,
1336
- disabled: u.statusDisabled ? u.statusDisabled(x.record) : !1,
1341
+ checked: _.record.Enabled,
1342
+ "onUpdate:checked": (se) => _.record.Enabled = se,
1343
+ disabled: u.statusDisabled ? u.statusDisabled(_.record) : !1,
1337
1344
  data: l(Me).EnableDisable,
1338
- onClick: (se) => l(na)(l(t), x.record),
1345
+ onClick: (se) => l(na)(l(t), _.record),
1339
1346
  class: P([
1340
1347
  "w-[58px]",
1341
- u.statusDisabled && u.statusDisabled(x.record) ? "cursor-not-allowed disabled" : ""
1348
+ u.statusDisabled && u.statusDisabled(_.record) ? "cursor-not-allowed disabled" : ""
1342
1349
  ]),
1343
- loading: x == null ? void 0 : x.record.isLoading
1350
+ loading: _ == null ? void 0 : _.record.isLoading
1344
1351
  }, null, 8, ["checked", "onUpdate:checked", "disabled", "data", "onClick", "class", "loading"])), [
1345
1352
  [y, { url: n.value, role: ["Super", "Admin"], permit: ":enabled" }, "disable"]
1346
1353
  ]) : k("", !0),
1347
- l(t) && ((B = x == null ? void 0 : x.column) == null ? void 0 : B.dataIndex) === "operation" ? D(u.$slots, "operate", {
1354
+ l(t) && ((B = _ == null ? void 0 : _.column) == null ? void 0 : B.dataIndex) === "operation" ? I(u.$slots, "operate", {
1348
1355
  key: 1,
1349
- record: x == null ? void 0 : x.record
1356
+ record: _ == null ? void 0 : _.record
1350
1357
  }, () => [
1351
1358
  w(dt, {
1352
- record: x == null ? void 0 : x.record,
1359
+ record: _ == null ? void 0 : _.record,
1353
1360
  "grid-ctrl": l(t)
1354
1361
  }, null, 8, ["record", "grid-ctrl"])
1355
1362
  ]) : k("", !0)
@@ -1360,7 +1367,7 @@ const Xt = async (s, a) => {
1360
1367
  ], 64);
1361
1368
  };
1362
1369
  }
1363
- }), bt = { class: "flex items-center gap-1" }, _t = { class: "text-nowrap" }, cl = /* @__PURE__ */ C({
1370
+ }), bt = { class: "flex items-center gap-1" }, xt = { class: "text-nowrap" }, cl = /* @__PURE__ */ C({
1364
1371
  __name: "index",
1365
1372
  props: {
1366
1373
  treeCtrl: {},
@@ -1369,7 +1376,7 @@ const Xt = async (s, a) => {
1369
1376
  },
1370
1377
  emits: ["select", "update:selectedKeys"],
1371
1378
  setup(s, { emit: a }) {
1372
- const e = s, t = X(), n = e.treeCtrl, i = _([]);
1379
+ const e = s, t = X(), n = e.treeCtrl, i = x([]);
1373
1380
  T(
1374
1381
  () => n.data.value,
1375
1382
  (f) => {
@@ -1394,7 +1401,7 @@ const Xt = async (s, a) => {
1394
1401
  }
1395
1402
  }
1396
1403
  );
1397
- const c = a, p = _([]);
1404
+ const c = a, p = x([]);
1398
1405
  T(
1399
1406
  () => e.selectedKeys,
1400
1407
  (f) => {
@@ -1402,7 +1409,7 @@ const Xt = async (s, a) => {
1402
1409
  },
1403
1410
  { immediate: !0 }
1404
1411
  );
1405
- const d = _(["-"]);
1412
+ const d = x(["-"]);
1406
1413
  T(
1407
1414
  () => e.expandedKeys,
1408
1415
  (f) => {
@@ -1431,21 +1438,21 @@ const Xt = async (s, a) => {
1431
1438
  onSelect: o
1432
1439
  }, l(t)), {
1433
1440
  title: g(({ key: v, label: u, icon: h }) => [
1434
- D(f.$slots, "title", {
1441
+ I(f.$slots, "title", {
1435
1442
  label: u,
1436
1443
  key: v,
1437
1444
  icon: h
1438
1445
  }, () => [
1439
1446
  $("div", bt, [
1440
1447
  w(l(U), { icon: h }, null, 8, ["icon"]),
1441
- $("span", _t, F(u), 1)
1448
+ $("span", xt, F(u), 1)
1442
1449
  ])
1443
1450
  ])
1444
1451
  ]),
1445
1452
  _: 3
1446
1453
  }, 16, ["tree-data", "expanded-keys", "selected-keys", "loading"]));
1447
1454
  }
1448
- }), ul = /* @__PURE__ */ q(ca, [["__scopeId", "data-v-62a24cf4"]]), xt = { class: "relative w-[248px] max-w-[248px]" }, yt = {
1455
+ }), ul = /* @__PURE__ */ q(ca, [["__scopeId", "data-v-62a24cf4"]]), _t = { class: "relative w-[248px] max-w-[248px]" }, yt = {
1449
1456
  key: 0,
1450
1457
  class: "absolute z-10 mt-[5px] mr-[10px] text-[#999] flex items-center"
1451
1458
  }, kt = /* @__PURE__ */ C({
@@ -1454,34 +1461,34 @@ const Xt = async (s, a) => {
1454
1461
  props: ua,
1455
1462
  emits: ["change", "update:labels", "update:value"],
1456
1463
  setup(s, { emit: a }) {
1457
- var y, I, O;
1464
+ var y, D, O;
1458
1465
  const e = s, t = X(), n = L(), i = da(e.url, e), c = e.optionCtrl ?? i.optionCtrl;
1459
1466
  c.inputFactory = Sa(n);
1460
- const p = _({
1467
+ const p = x({
1461
1468
  ...c == null ? void 0 : c.url,
1462
1469
  url: ((y = c == null ? void 0 : c.url) == null ? void 0 : y.url) || "",
1463
- fieldMap: (c == null ? void 0 : c.fieldMap) || ((I = c == null ? void 0 : c.url) == null ? void 0 : I.fieldMap),
1470
+ fieldMap: (c == null ? void 0 : c.fieldMap) || ((D = c == null ? void 0 : c.url) == null ? void 0 : D.fieldMap),
1464
1471
  params: (c == null ? void 0 : c.params) || ((O = c == null ? void 0 : c.url) == null ? void 0 : O.params),
1465
1472
  loadingText: !1
1466
- }), { editorCtrl: d, errInfo: o, labelText: f } = n, r = _(t.placeholder);
1473
+ }), { editorCtrl: d, errInfo: o, labelText: f } = n, r = x(t.placeholder);
1467
1474
  T(
1468
1475
  () => p.value.loading,
1469
- (x) => {
1470
- x ? r.value = "" : r.value || (r.value = "请选择" + f.value);
1476
+ (_) => {
1477
+ _ ? r.value = "" : r.value || (r.value = "请选择" + f.value);
1471
1478
  },
1472
1479
  { immediate: !0 }
1473
1480
  );
1474
1481
  const v = a;
1475
1482
  n.inputEmit = v;
1476
- const u = _((c == null ? void 0 : c.options.value) || []);
1483
+ const u = x((c == null ? void 0 : c.options.value) || []);
1477
1484
  c && T(
1478
1485
  () => c.options.value,
1479
- (x) => {
1480
- u.value = x || [];
1486
+ (_) => {
1487
+ u.value = _ || [];
1481
1488
  },
1482
1489
  { immediate: !0, deep: !0 }
1483
1490
  );
1484
- const h = (x, E) => {
1491
+ const h = (_, E) => {
1485
1492
  if (!E || E.length === 0) {
1486
1493
  v("update:labels", []), v("update:value", []);
1487
1494
  return;
@@ -1498,9 +1505,9 @@ const Xt = async (s, a) => {
1498
1505
  }), c && pa(c.autoload, c, e);
1499
1506
  }), Ca(() => {
1500
1507
  c && fa(c, e);
1501
- }), (x, E) => {
1508
+ }), (_, E) => {
1502
1509
  var B;
1503
- return m(), S("div", xt, [
1510
+ return m(), S("div", _t, [
1504
1511
  u.value.length ? k("", !0) : (m(), S("div", yt, [
1505
1512
  w(l(va), { class: "text-[#555] mx-[5px] !ml-[10px] !w-4 !h-4" }),
1506
1513
  E[0] || (E[0] = $("span", null, "数据加载中...", -1))
@@ -1579,7 +1586,7 @@ const fl = /* @__PURE__ */ C({
1579
1586
  setup(s) {
1580
1587
  const a = s, { editorCtrl: e, labelText: t, errInfo: n } = L(), i = () => {
1581
1588
  n != null && n.value.errClass && e && Y(e);
1582
- }, c = _(a.valueFormat ?? "YYYY-MM-DD");
1589
+ }, c = x(a.valueFormat ?? "YYYY-MM-DD");
1583
1590
  return (p, d) => {
1584
1591
  var o;
1585
1592
  return m(), b(l(Ma), {
@@ -1601,7 +1608,7 @@ const fl = /* @__PURE__ */ C({
1601
1608
  setup(s, { emit: a }) {
1602
1609
  const { editorCtrl: e, labelText: t, errInfo: n } = L(), i = () => {
1603
1610
  n != null && n.value.errClass && e && Y(e);
1604
- }, c = s, p = c.value === void 0 ? !0 : c.undefValue, d = a, o = _(c.value);
1611
+ }, c = s, p = c.value === void 0 ? !0 : c.undefValue, d = a, o = x(c.value);
1605
1612
  T(
1606
1613
  () => c.value,
1607
1614
  (r) => {
@@ -1640,14 +1647,14 @@ const fl = /* @__PURE__ */ C({
1640
1647
  r.$slots.addonBefore ? {
1641
1648
  name: "addonBefore",
1642
1649
  fn: g(() => [
1643
- D(r.$slots, "addonBefore")
1650
+ I(r.$slots, "addonBefore")
1644
1651
  ]),
1645
1652
  key: "0"
1646
1653
  } : void 0,
1647
1654
  r.$slots.addonAfter ? {
1648
1655
  name: "addonAfter",
1649
1656
  fn: g(() => [
1650
- D(r.$slots, "addonAfter")
1657
+ I(r.$slots, "addonAfter")
1651
1658
  ]),
1652
1659
  key: "1"
1653
1660
  } : void 0
@@ -1661,7 +1668,7 @@ const fl = /* @__PURE__ */ C({
1661
1668
  },
1662
1669
  emits: ["update:value"],
1663
1670
  setup(s, { emit: a }) {
1664
- const e = s, t = a, n = _(void 0);
1671
+ const e = s, t = a, n = x(void 0);
1665
1672
  return T(
1666
1673
  () => e.value,
1667
1674
  (i) => {
@@ -1730,7 +1737,7 @@ const fl = /* @__PURE__ */ C({
1730
1737
  },
1731
1738
  emits: ["update:value"],
1732
1739
  setup(s, { emit: a }) {
1733
- const e = s, t = a, n = _(!(e.selectList && e.selectList.length > 0)), i = _([]);
1740
+ const e = s, t = a, n = x(!(e.selectList && e.selectList.length > 0)), i = x([]);
1734
1741
  let c = !1;
1735
1742
  const p = () => {
1736
1743
  e.selectList && e.selectList.length > 0 ? i.value = e.selectList.map((r) => ({
@@ -1753,11 +1760,13 @@ const fl = /* @__PURE__ */ C({
1753
1760
  { immediate: !0 }
1754
1761
  );
1755
1762
  const d = () => {
1756
- const r = i.value.reduce(
1763
+ let r;
1764
+ e.selectList && e.selectList.length > 0 ? (r = { ...e.value }, i.value.forEach((v) => {
1765
+ v.field && (r[v.field] = v.value);
1766
+ })) : r = i.value.reduce(
1757
1767
  (v, u) => (u.field && (v[u.field] = u.value), v),
1758
1768
  {}
1759
- );
1760
- c = !0, t("update:value", r);
1769
+ ), c = !0, t("update:value", r);
1761
1770
  }, o = () => {
1762
1771
  i.value.push({
1763
1772
  id: Date.now() + Math.random(),
@@ -1854,13 +1863,13 @@ const fl = /* @__PURE__ */ C({
1854
1863
  }
1855
1864
  },
1856
1865
  setup(s) {
1857
- const a = s, e = _(JSON.parse(JSON.stringify(Me.getOptions(a.dataKey))));
1866
+ const a = s, e = x(JSON.parse(JSON.stringify(Me.getOptions(a.dataKey))));
1858
1867
  return a.all === !0 && e.value.unshift({
1859
1868
  label: "全部",
1860
1869
  value: a.allValue || [0, 1]
1861
1870
  }), (t, n) => (m(), b(Dt, { data: e.value }, null, 8, ["data"]));
1862
1871
  }
1863
- }), _l = /* @__PURE__ */ C({
1872
+ }), xl = /* @__PURE__ */ C({
1864
1873
  __name: "index",
1865
1874
  props: {
1866
1875
  startDate: {},
@@ -1896,7 +1905,7 @@ const fl = /* @__PURE__ */ C({
1896
1905
  }, null, 8, ["class", "locale", "value-format", "value"]);
1897
1906
  };
1898
1907
  }
1899
- }), xl = /* @__PURE__ */ q(_a, [["__scopeId", "data-v-da38e265"]]), yl = /* @__PURE__ */ C({
1908
+ }), _l = /* @__PURE__ */ q(xa, [["__scopeId", "data-v-a3448c27"]]), yl = /* @__PURE__ */ C({
1900
1909
  __name: "index",
1901
1910
  setup(s) {
1902
1911
  const { editorCtrl: a, labelText: e, errInfo: t } = L(), n = () => {
@@ -1924,7 +1933,7 @@ const fl = /* @__PURE__ */ C({
1924
1933
  setup(s) {
1925
1934
  const a = s, { editorCtrl: e, labelText: t, errInfo: n } = L(), i = () => {
1926
1935
  n != null && n.value.errClass && e && Y(e);
1927
- }, c = _(a.valueFormat ?? "HH:mm");
1936
+ }, c = x(a.valueFormat ?? "HH:mm");
1928
1937
  return (p, d) => {
1929
1938
  var o;
1930
1939
  return m(), b(l(La), {
@@ -1946,7 +1955,7 @@ const fl = /* @__PURE__ */ C({
1946
1955
  },
1947
1956
  emits: ["change", "update:value"],
1948
1957
  setup(s, { emit: a }) {
1949
- const e = s, t = _({ ...e.url }), { editorCtrl: n, labelText: i, errInfo: c } = L(), p = a, d = _([]), o = _([]);
1958
+ const e = s, t = x({ ...e.url }), { editorCtrl: n, labelText: i, errInfo: c } = L(), p = a, d = x([]), o = x([]);
1950
1959
  e.value && e.value.every((r) => {
1951
1960
  o.value.push(r.toString());
1952
1961
  }), T(
@@ -1979,13 +1988,13 @@ const fl = /* @__PURE__ */ C({
1979
1988
  targetKeys: o.value,
1980
1989
  onChange: f
1981
1990
  }, r.$attrs), {
1982
- children: g(({ direction: h, disabled: y, filteredItems: I, onItemSelectAll: O, onItemSelect: x, selectedKeys: E }) => [
1983
- D(r.$slots, "children", {
1991
+ children: g(({ direction: h, disabled: y, filteredItems: D, onItemSelectAll: O, onItemSelect: _, selectedKeys: E }) => [
1992
+ I(r.$slots, "children", {
1984
1993
  direction: h,
1985
1994
  disabled: y,
1986
- filteredItems: I,
1995
+ filteredItems: D,
1987
1996
  onItemSelectAll: O,
1988
- onItemSelect: x,
1997
+ onItemSelect: _,
1989
1998
  selectedKeys: E
1990
1999
  })
1991
2000
  ]),
@@ -2020,7 +2029,7 @@ const fl = /* @__PURE__ */ C({
2020
2029
  },
2021
2030
  emits: ["update:value"],
2022
2031
  setup(s, { emit: a }) {
2023
- const e = s, t = a, n = _(e.autoload), i = _(e.value), c = _(e.gridCtrl.primaryKey);
2032
+ const e = s, t = a, n = x(e.autoload), i = x(e.value), c = x(e.gridCtrl.primaryKey);
2024
2033
  T(
2025
2034
  () => i.value,
2026
2035
  (o) => {
@@ -2031,21 +2040,21 @@ const fl = /* @__PURE__ */ C({
2031
2040
  (o) => {
2032
2041
  o && (i.value = o);
2033
2042
  }
2034
- ), e.gridCtrl.autoload = !1, e.gridCtrl.remotePage = !1, e.gridCtrl.selectable = _(!0), e.gridCtrl.buttons = _([]), e.gridCtrl.tools = [];
2043
+ ), e.gridCtrl.autoload = !1, e.gridCtrl.remotePage = !1, e.gridCtrl.selectable = x(!0), e.gridCtrl.buttons = x([]), e.gridCtrl.tools = [];
2035
2044
  const p = ({ disabled: o, selectedKeys: f, onItemSelectAll: r, onItemSelect: v }) => ({
2036
2045
  getCheckboxProps: (u) => ({
2037
2046
  // 控制是否禁止
2038
2047
  disabled: o || u.disabled
2039
2048
  }),
2040
2049
  onSelectAll(u, h) {
2041
- const y = h.filter((I) => !I.disabled).map(({ [c.value]: I }) => I);
2050
+ const y = h.filter((D) => !D.disabled).map(({ [c.value]: D }) => D);
2042
2051
  r(y, u);
2043
2052
  },
2044
2053
  onSelect({ [c.value]: u }, h) {
2045
2054
  v(u, h);
2046
2055
  },
2047
2056
  selectedRowKeys: f
2048
- }), d = _([]);
2057
+ }), d = x([]);
2049
2058
  return K(async () => {
2050
2059
  if (n.value) {
2051
2060
  const o = await Re(e.gridCtrl, {
@@ -2090,8 +2099,8 @@ const fl = /* @__PURE__ */ C({
2090
2099
  scroll: { x: 300 },
2091
2100
  "custom-row": (y) => ({
2092
2101
  onClick: () => {
2093
- const I = y[c.value];
2094
- u(I, !h.includes(I));
2102
+ const D = y[c.value];
2103
+ u(D, !h.includes(D));
2095
2104
  }
2096
2105
  })
2097
2106
  }, null, 8, ["columns", "row-key", "row-selection", "data-source", "custom-row"])
@@ -2128,7 +2137,7 @@ const fl = /* @__PURE__ */ C({
2128
2137
  setup(s, { emit: a }) {
2129
2138
  const e = s, t = e.value === void 0 ? !0 : e.undefValue, n = e.treeCtrl, i = L(), { errInfo: c, labelText: p } = i, d = a;
2130
2139
  i.inputEmit = d;
2131
- const o = _([]), f = _();
2140
+ const o = x([]), f = x();
2132
2141
  T(
2133
2142
  () => e.value,
2134
2143
  (u) => {
@@ -2168,7 +2177,7 @@ const fl = /* @__PURE__ */ C({
2168
2177
  multiple: s.multiple,
2169
2178
  "tree-default-expanded-keys": ["-"],
2170
2179
  value: f.value,
2171
- "onUpdate:value": h[0] || (h[0] = (I) => f.value = I),
2180
+ "onUpdate:value": h[0] || (h[0] = (D) => f.value = D),
2172
2181
  "tree-data": o.value,
2173
2182
  placeholder: "请选择" + l(p),
2174
2183
  onChange: r,
@@ -2196,10 +2205,10 @@ const fl = /* @__PURE__ */ C({
2196
2205
  default: g(() => [
2197
2206
  $("div", Nt, [
2198
2207
  t.left ? (m(), S("div", Mt, [
2199
- D(t.$slots, "left")
2208
+ I(t.$slots, "left")
2200
2209
  ])) : k("", !0),
2201
2210
  $("div", Bt, [
2202
- D(t.$slots, "default")
2211
+ I(t.$slots, "default")
2203
2212
  ])
2204
2213
  ])
2205
2214
  ]),
@@ -2252,10 +2261,10 @@ export {
2252
2261
  j as ProviderKeys,
2253
2262
  Dt as Radio,
2254
2263
  bl as RadioStatus,
2255
- _l as RangePicker,
2264
+ xl as RangePicker,
2256
2265
  nl as Search,
2257
2266
  pe as SearchItem,
2258
- xl as Select,
2267
+ _l as Select,
2259
2268
  oa as Switch,
2260
2269
  il as Table,
2261
2270
  dt as TableOperate,
@@ -2334,7 +2343,7 @@ export {
2334
2343
  vs as path,
2335
2344
  Gl as pendingNavigation,
2336
2345
  Jl as pinia,
2337
- _s as previewFromMinio,
2346
+ xs as previewFromMinio,
2338
2347
  Zt as processCsvFile,
2339
2348
  Es as processExcelFile,
2340
2349
  Be as queryTree,