@skyfox2000/webui 1.3.2 → 1.3.3

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 (28) hide show
  1. package/lib/assets/modules/{file-upload-BVB9c-eZ.js → file-upload-D4Pqs8h3.js} +1 -1
  2. package/lib/assets/modules/{form-excel-CsQBtfkA.js → form-excel-D1vXB4c4.js} +1 -1
  3. package/lib/assets/modules/{index-k_AnrbPY.js → index-CSnwbbQT.js} +2 -2
  4. package/lib/assets/modules/{index-CaaMz5sz.js → index-V1j9haWy.js} +1 -1
  5. package/lib/assets/modules/{menuTabs-_Ph7P8ES.js → menuTabs-e8XoJN7m.js} +2 -2
  6. package/lib/assets/modules/{toolIcon-QMXCkImG.js → toolIcon-BSF7eiPf.js} +1 -1
  7. package/lib/assets/modules/uploadList-Bcf7g1bf.js +382 -0
  8. package/lib/assets/modules/{uploadList-D-FOtndj.js → uploadList-DA4TRDWR.js} +482 -508
  9. package/lib/components/form/autoComplete/index.vue.d.ts +10 -48
  10. package/lib/components/form/upload/uploadList.vue.d.ts +1 -0
  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/index.d.ts +1 -1
  18. package/lib/utils/download.d.ts +2 -0
  19. package/lib/webui.css +1 -1
  20. package/lib/webui.es.js +207 -205
  21. package/package.json +1 -1
  22. package/src/components/content/table/index.vue +22 -10
  23. package/src/components/form/autoComplete/index.vue +29 -60
  24. package/src/components/form/upload/uploadList.vue +50 -11
  25. package/src/index.ts +1 -1
  26. package/src/utils/download.ts +31 -0
  27. package/src/utils/options.ts +0 -1
  28. package/lib/assets/modules/uploadList-CXa3siDj.js +0 -327
package/lib/webui.es.js CHANGED
@@ -1,22 +1,22 @@
1
- import { u as Qe, i as ee, a as me, c as qe, P as j, o as Pe, b as Ge, d as Je, e as Ee, r as ce, f as Xe, g as Ze, h as Fe, j as et, k as ke, l as tt, _ as at, m as lt, O as Ne, q as Re, n as st, p as rt, s as L, t as ot, v as nt, w as it, x as ct, y as Q, z as ut, A as dt, B as pt, C as Me } from "./assets/modules/uploadList-D-FOtndj.js";
2
- import { a9 as xl, N as yl, Q as kl, U as wl, a8 as Sl, a6 as Cl, a7 as $l, aa as Tl, X as Il, S as Dl, a4 as Pl, a1 as El, M as Fl, J as Nl, a3 as Rl, T as Ml, E as Ol, Z as Al, a2 as Bl, a5 as Ll, L as zl, K as Ul, R as Yl, ab as Wl, D as Kl, a0 as Vl, ac as jl, W as Hl, Y as Ql, V as ql, ad as Gl, F as Jl, G as Xl, ae as Zl, I as es, af as ts, H as as, $ as ls } from "./assets/modules/uploadList-D-FOtndj.js";
3
- import { A as rs, U as os, a as ns, g as is, c as cs, d as us, p as ds, u as ps, b as fs } from "./assets/modules/file-upload-BVB9c-eZ.js";
1
+ import { u as Qe, i as ee, a as me, c as qe, P as j, o as Pe, b as Ge, d as Je, e as Ee, r as ue, f as Xe, g as Ze, h as Fe, j as et, k as ke, l as tt, _ as at, m as lt, O as Ne, q as Re, n as st, p as rt, s as L, t as ot, v as nt, w as it, x as ut, y as Q, z as ct, A as dt, B as pt, C as Me } from "./assets/modules/uploadList-DA4TRDWR.js";
2
+ import { a9 as xl, N as yl, Q as kl, U as wl, a8 as Sl, a6 as Cl, a7 as $l, aa as Tl, X as Il, S as Dl, a4 as Pl, a1 as El, M as Fl, J as Nl, a3 as Rl, T as Ml, E as Ol, Z as Al, a2 as Bl, a5 as Ll, L as zl, K as Ul, R as Yl, ab as Wl, D as Kl, a0 as Vl, ac as jl, W as Hl, Y as Ql, V as ql, ad as Gl, F as Jl, G as Xl, ae as Zl, I as es, af as ts, H as as, $ as ls } from "./assets/modules/uploadList-DA4TRDWR.js";
3
+ import { A as rs, U as os, a as ns, g as is, c as us, d as cs, p as ds, u as ps, b as fs } from "./assets/modules/file-upload-D4Pqs8h3.js";
4
4
  import { EnvConfig as we } from "@skyfox2000/microbase";
5
5
  import { FrontCache as re, httpPost as Oe, ResStatus as Ae, SERVER_HOST as ft, fieldMapping as oe } from "@skyfox2000/fapi";
6
6
  import he from "vue-m-message";
7
- import { defineComponent as S, createBlock as _, openBlock as m, withModifiers as ae, unref as l, useAttrs as q, withCtx as h, createElementVNode as T, createVNode as y, mergeProps as E, renderSlot as D, normalizeStyle as ue, toDisplayString as F, createCommentVNode as k, createElementBlock as w, ref as b, provide as ge, watch as $, onMounted as W, createTextVNode as R, inject as ne, resolveDirective as se, withDirectives as H, computed as Z, normalizeClass as N, createSlots as Be, useSlots as vt, Fragment as M, renderList as z, resolveDynamicComponent as mt, onActivated as ht, shallowRef as gt, onUnmounted as _t, withKeys as Se } from "vue";
7
+ import { defineComponent as S, createBlock as _, openBlock as m, withModifiers as ae, unref as l, useAttrs as q, withCtx as h, createElementVNode as T, createVNode as y, mergeProps as E, renderSlot as D, normalizeStyle as ce, toDisplayString as F, createCommentVNode as k, createElementBlock as w, ref as b, provide as ge, watch as $, onMounted as W, createTextVNode as R, inject as ne, resolveDirective as se, withDirectives as H, computed as Z, normalizeClass as N, createSlots as Be, useSlots as vt, Fragment as M, renderList as z, resolveDynamicComponent as mt, onActivated as ht, shallowRef as gt, onUnmounted as _t, withKeys as Se } from "vue";
8
8
  import "async-validator";
9
9
  import fe from "dayjs";
10
10
  import { Popover as bt, Spin as xt, theme as Le, Drawer as yt, Space as le, Form as ze, message as kt, FormItem as Ue, ConfigProvider as Ce, Popconfirm as wt, Button as Ye, DropdownButton as St, Menu as _e, MenuItem as be, Dropdown as ve, Checkbox as Ct, Table as We, Tree as $t, Cascader as Tt, DatePicker as It, Input as te, InputPassword as Dt, InputNumber as Pt, RangePicker as Et, Textarea as Ft, Transfer as Nt, TreeSelect as Rt, LayoutContent as Mt } from "ant-design-vue";
11
11
  import { VueDraggableNext as Ot } from "vue-draggable-next";
12
- import { d as Ke } from "./assets/modules/uploadList-CXa3siDj.js";
13
- import { U as ms, a as hs } from "./assets/modules/uploadList-CXa3siDj.js";
14
- import { a as _s, c as bs, p as xs, v as ys } from "./assets/modules/form-excel-CsQBtfkA.js";
15
- import { _ as B } from "./assets/modules/index-CaaMz5sz.js";
16
- import { _ as U } from "./assets/modules/toolIcon-QMXCkImG.js";
17
- import { a as ws } from "./assets/modules/toolIcon-QMXCkImG.js";
18
- import { _ as Cs, b as $s, c as Ts, d as Is, e as Ds, I as Ps, f as Es, g as Fs, a as Ns } from "./assets/modules/menuTabs-_Ph7P8ES.js";
19
- import { _ as Ms } from "./assets/modules/index-k_AnrbPY.js";
12
+ import { d as Ke } from "./assets/modules/uploadList-Bcf7g1bf.js";
13
+ import { C as ms, U as hs, a as gs, p as _s } from "./assets/modules/uploadList-Bcf7g1bf.js";
14
+ import { a as xs, c as ys, p as ks, v as ws } from "./assets/modules/form-excel-D1vXB4c4.js";
15
+ import { _ as B } from "./assets/modules/index-V1j9haWy.js";
16
+ import { _ as U } from "./assets/modules/toolIcon-BSF7eiPf.js";
17
+ import { a as Cs } from "./assets/modules/toolIcon-BSF7eiPf.js";
18
+ import { _ as Ts, b as Is, c as Ds, d as Ps, e as Es, I as Fs, f as Ns, g as Rs, a as Ms } from "./assets/modules/menuTabs-e8XoJN7m.js";
19
+ import { _ as As } from "./assets/modules/index-CSnwbbQT.js";
20
20
  import { _ as G } from "./assets/modules/_plugin-vue_export-helper-CHgC5LLL.js";
21
21
  const $e = (s, a, t, e = "remove") => {
22
22
  if (!t)
@@ -26,16 +26,16 @@ const $e = (s, a, t, e = "remove") => {
26
26
  } else {
27
27
  const n = document.createComment("No Permission"), i = s.parentNode;
28
28
  if (i) {
29
- const c = a.component;
30
- c ? c.props.style = { display: "none" } : i.replaceChild(n, s);
29
+ const u = a.component;
30
+ u ? u.props.style = { display: "none" } : i.replaceChild(n, s);
31
31
  }
32
32
  }
33
33
  }, Te = (s) => {
34
- var c, p;
34
+ var u, p;
35
35
  const a = Qe(), { url: t, role: e, permit: n } = s;
36
36
  if (ee(e) && ee(n))
37
37
  return !0;
38
- const i = t ?? ((p = (c = window.location.hash) == null ? void 0 : c.split("#")) == null ? void 0 : p[1]) ?? window.location.pathname;
38
+ const i = t ?? ((p = (u = window.location.hash) == null ? void 0 : u.split("#")) == null ? void 0 : p[1]) ?? window.location.pathname;
39
39
  if (we.VITE_PERMISSION_MODE === "role")
40
40
  return ee(e) ? !0 : a.hasRole(e);
41
41
  if (we.VITE_PERMISSION_MODE === "permit") {
@@ -45,12 +45,12 @@ const $e = (s, a, t, e = "remove") => {
45
45
  return !1;
46
46
  }, At = {
47
47
  mounted(s, a, t) {
48
- const e = a.value || {}, n = a.arg || "remove", i = e.behavior || n, c = Te(e);
49
- $e(s, t, c, i);
48
+ const e = a.value || {}, n = a.arg || "remove", i = e.behavior || n, u = Te(e);
49
+ $e(s, t, u, i);
50
50
  },
51
51
  updated(s, a, t) {
52
- const e = a.value || {}, n = a.arg || "remove", i = e.behavior || n, c = Te(e);
53
- $e(s, t, c, i);
52
+ const e = a.value || {}, n = a.arg || "remove", i = e.behavior || n, u = Te(e);
53
+ $e(s, t, u, i);
54
54
  }
55
55
  }, Bt = {
56
56
  mounted: (s, a) => {
@@ -79,7 +79,7 @@ const $e = (s, a, t, e = "remove") => {
79
79
  }
80
80
  }, xe = (s, a, t) => {
81
81
  const e = [], n = [];
82
- return t || (t = [...s]), t.length && t.forEach((i, c) => {
82
+ return t || (t = [...s]), t.length && t.forEach((i, u) => {
83
83
  let p;
84
84
  if (typeof i == "string") {
85
85
  const d = K(s, i);
@@ -92,7 +92,7 @@ const $e = (s, a, t, e = "remove") => {
92
92
  o && (o.rowData.value = f), p.formVisible ? (p.formVisible.value = !1, setTimeout(() => {
93
93
  p.formVisible.value = !0;
94
94
  }, 1)) : he.warning("未配置点击处理事件!");
95
- }), a === 0 || c < a ? e.push(p) : n.push(p);
95
+ }), a === 0 || u < a ? e.push(p) : n.push(p);
96
96
  }), { buttons: e, menus: n };
97
97
  }, V = (s, a) => s.disabled && typeof s.disabled == "function" ? s.disabled(a) : s.disabled, X = (s, a) => s.visible && typeof s.visible == "function" ? s.visible(a) : s.visible ?? !0, Lt = (s, a) => {
98
98
  a.reload.value = !0;
@@ -291,13 +291,13 @@ async function Va() {
291
291
  Object.keys(a).forEach((t) => {
292
292
  const e = a[t];
293
293
  ["local", "session"].forEach((i) => {
294
- const c = i === "local" ? localStorage : sessionStorage;
295
- for (let p = 0; p < c.length; p++) {
296
- const d = c.key(p);
294
+ const u = i === "local" ? localStorage : sessionStorage;
295
+ for (let p = 0; p < u.length; p++) {
296
+ const d = u.key(p);
297
297
  if (d && d.endsWith(t))
298
298
  try {
299
- const o = JSON.parse(c.getItem(d));
300
- o && typeof o == "object" && "lastTime" in o && typeof o.lastTime == "number" && o.lastTime !== e && c.removeItem(d);
299
+ const o = JSON.parse(u.getItem(d));
300
+ o && typeof o == "object" && "lastTime" in o && typeof o.lastTime == "number" && o.lastTime !== e && u.removeItem(d);
301
301
  } catch {
302
302
  continue;
303
303
  }
@@ -311,15 +311,15 @@ async function Va() {
311
311
  }
312
312
  const ja = async (s, a, t) => {
313
313
  try {
314
- const n = (await import("@json2csv/plainjs")).Parser, i = He(s), c = a.filter((v) => v.visible !== !1 && v.export !== !1), p = c.map((v) => ({
314
+ const n = (await import("@json2csv/plainjs")).Parser, i = He(s), u = a.filter((v) => v.visible !== !1 && v.export !== !1), p = u.map((v) => ({
315
315
  label: v.title,
316
316
  value: v.dataIndex || v.key || ""
317
317
  })), d = t.map((v) => {
318
- const u = { ...v };
319
- return c.forEach((g) => {
318
+ const c = { ...v };
319
+ return u.forEach((g) => {
320
320
  const C = g.dataIndex || g.key;
321
- C && g.customRender && (u[C] = g.customRender(v[C], v));
322
- }), u;
321
+ C && g.customRender && (c[C] = g.customRender(v[C], v));
322
+ }), c;
323
323
  }), f = new n({ fields: p }).parse(d), r = new Blob([`\uFEFF${f}`], { type: "text/csv" });
324
324
  Ke(r, i);
325
325
  } catch (e) {
@@ -330,21 +330,21 @@ const ja = async (s, a, t) => {
330
330
  return s.replace(a, (t, e) => fe().format(e));
331
331
  }, Ha = async (s, a, t, e) => {
332
332
  try {
333
- const i = (await import("@json2csv/plainjs")).Parser, c = He(s), p = a.filter((r) => r.visible !== !1), d = p.map((r) => ({
333
+ const i = (await import("@json2csv/plainjs")).Parser, u = He(s), p = a.filter((r) => r.visible !== !1), d = p.map((r) => ({
334
334
  label: r.title,
335
335
  value: r.dataIndex || r.key || ""
336
336
  }));
337
337
  let o = t.page, f = t.gridQuery;
338
338
  return e.api || (e.api = o.api), e.authorize === void 0 && (e.authorize = o.authorize), t.isGridLoading.value = !0, Oe(e, f).then((r) => {
339
339
  if (t.isGridLoading.value = !1, (r == null ? void 0 : r.status) === Ae.SUCCESS && r.data) {
340
- const u = r.data.map((O) => {
340
+ const c = r.data.map((O) => {
341
341
  const x = { ...O };
342
342
  return p.forEach((I) => {
343
343
  const A = I.dataIndex || I.key;
344
344
  A && I.customRender && (x[A] = I.customRender(O[A], O));
345
345
  }), x;
346
- }), C = new i({ fields: d }).parse(u), P = new Blob([`\uFEFF${C}`], { type: "text/csv" });
347
- Ke(P, c);
346
+ }), C = new i({ fields: d }).parse(c), P = new Blob([`\uFEFF${C}`], { type: "text/csv" });
347
+ Ke(P, u);
348
348
  }
349
349
  });
350
350
  } catch (n) {
@@ -374,7 +374,7 @@ const ja = async (s, a, t) => {
374
374
  D(t.$slots, "default", {}, () => [
375
375
  T("div", {
376
376
  class: "text-[14px]",
377
- style: ue({ maxWidth: t.maxWidth })
377
+ style: ce({ maxWidth: t.maxWidth })
378
378
  }, F(t.text), 5)
379
379
  ])
380
380
  ]),
@@ -441,7 +441,7 @@ const ja = async (s, a, t) => {
441
441
  ), W(() => {
442
442
  e.value = i.visible.value ?? !1;
443
443
  });
444
- const c = () => {
444
+ const u = () => {
445
445
  n.drawerSave ? n.drawerSave() : i && Pe(i);
446
446
  }, p = () => {
447
447
  n.drawerSaveAs ? n.drawerSaveAs() : i && Ge(i);
@@ -513,7 +513,7 @@ const ja = async (s, a, t) => {
513
513
  }, 8, ["loading"])) : k("", !0),
514
514
  o.saveText !== "" && l(i).saveBtnVisible !== !1 ? (m(), _(l(B), {
515
515
  key: 2,
516
- onClick: c,
516
+ onClick: u,
517
517
  type: "primary",
518
518
  loading: l(i).isFormSaving.value
519
519
  }, {
@@ -577,9 +577,9 @@ const ja = async (s, a, t) => {
577
577
  nextLine: { type: Boolean }
578
578
  },
579
579
  setup(s) {
580
- const a = s, t = q(), e = ne(j.EditorControl, void 0), n = ne(j.LabelWidth, "85px") ?? "85px", i = Ee(a, e), c = b(!1);
580
+ const a = s, t = q(), e = ne(j.EditorControl, void 0), n = ne(j.LabelWidth, "85px") ?? "85px", i = Ee(a, e), u = b(!1);
581
581
  setTimeout(() => {
582
- c.value = !0;
582
+ u.value = !0;
583
583
  }, 30);
584
584
  const p = (o, f) => {
585
585
  if (!f)
@@ -594,7 +594,7 @@ const ja = async (s, a, t) => {
594
594
  return o ? o.required ?? !0 : (kt.error(`"${a.label}" 的验证规则 \`${a.rule}\` 不存在`), i.value.errClass = "text-[#ff4d4f]", i.value.msg = `规则 \`${a.rule}\` 不存在,请检查代码!`, !0);
595
595
  });
596
596
  return (o, f) => (m(), w("div", Zt, [
597
- c.value ? (m(), _(l(Ue), E({
597
+ u.value ? (m(), _(l(Ue), E({
598
598
  key: 0,
599
599
  required: d.value,
600
600
  class: "relative"
@@ -634,7 +634,7 @@ const ja = async (s, a, t) => {
634
634
  ], 2)) : k("", !0),
635
635
  l(i).errClass ? (m(), w("span", {
636
636
  key: 2,
637
- style: ue({ left: o.nextLine ? "2px" : l(n) }),
637
+ style: ce({ left: o.nextLine ? "2px" : l(n) }),
638
638
  class: "absolute bottom-[3px] text-[12px] text-[#ff4d4fcc]"
639
639
  }, F(l(i).msg), 5)) : k("", !0)
640
640
  ]));
@@ -652,7 +652,7 @@ const ja = async (s, a, t) => {
652
652
  },
653
653
  setup(s) {
654
654
  const a = s, t = q(), e = ne(j.EditorControl, void 0), n = Ee(a, e);
655
- return (i, c) => (m(), w("div", aa, [
655
+ return (i, u) => (m(), w("div", aa, [
656
656
  y(l(Ue), E({
657
657
  required: i.rule !== void 0,
658
658
  class: "w-[90%] relative"
@@ -691,13 +691,13 @@ const ja = async (s, a, t) => {
691
691
  },
692
692
  emits: ["update:search"],
693
693
  setup(s, { emit: a }) {
694
- const t = s, e = a, n = b(0), i = b(0), c = b(0), p = (u) => {
694
+ const t = s, e = a, n = b(0), i = b(0), u = b(0), p = (c) => {
695
695
  let g = 0;
696
- for (let C = 0; C < u.length; C++)
697
- typeof u[C].type == "object" && g++;
696
+ for (let C = 0; C < c.length; C++)
697
+ typeof c[C].type == "object" && g++;
698
698
  return g;
699
699
  }, d = vt(), o = () => {
700
- i.value = 0, c.value = 0, d.default && (i.value = p(d.default({}))), t.gridCtrl.searchBar && d.control && (c.value = p(d.control({}))), n.value = 2 - (i.value + c.value) % 3;
700
+ i.value = 0, u.value = 0, d.default && (i.value = p(d.default({}))), t.gridCtrl.searchBar && d.control && (u.value = p(d.control({}))), n.value = 2 - (i.value + u.value) % 3;
701
701
  };
702
702
  $(
703
703
  () => t.gridCtrl.searchBar,
@@ -709,37 +709,37 @@ const ja = async (s, a, t) => {
709
709
  W(() => {
710
710
  var g;
711
711
  o();
712
- let u = { ...t.search };
712
+ let c = { ...t.search };
713
713
  t.gridCtrl.gridQuery = {
714
714
  ...t.gridCtrl.gridQuery,
715
715
  Query: {
716
716
  ...(g = t.gridCtrl.gridQuery) == null ? void 0 : g.Query,
717
- ...u
717
+ ...c
718
718
  }
719
719
  };
720
720
  });
721
721
  const r = () => {
722
722
  var g;
723
- let u = { ...t.search };
723
+ let c = { ...t.search };
724
724
  if (t.likeFields)
725
725
  for (const C of t.likeFields)
726
- u[C] && (u[C] = { $like: "%" + u[C] + "%" });
726
+ c[C] && (c[C] = { $like: "%" + c[C] + "%" });
727
727
  t.gridCtrl.gridQuery = {
728
728
  ...t.gridCtrl.gridQuery,
729
729
  Query: {
730
730
  ...(g = t.gridCtrl.gridQuery) == null ? void 0 : g.Query,
731
- ...u
731
+ ...c
732
732
  }
733
733
  }, t.gridCtrl.pageNo.value = 1, t.gridCtrl.reload.value = !0;
734
734
  }, v = () => {
735
- const u = JSON.parse(JSON.stringify(f));
735
+ const c = JSON.parse(JSON.stringify(f));
736
736
  for (const g in t.search)
737
- u[g] === void 0 && (u[g] = void 0);
738
- e("update:search", u);
737
+ c[g] === void 0 && (c[g] = void 0);
738
+ e("update:search", c);
739
739
  };
740
- return (u, g) => {
740
+ return (c, g) => {
741
741
  const C = se("submit");
742
- return i.value + c.value > 0 ? H((m(), _(l(ze), {
742
+ return i.value + u.value > 0 ? H((m(), _(l(ze), {
743
743
  key: 0,
744
744
  "label-col": { flex: "60px" },
745
745
  style: {
@@ -749,8 +749,8 @@ const ja = async (s, a, t) => {
749
749
  class: "flex mb-[10px]"
750
750
  }, {
751
751
  default: h(() => [
752
- D(u.$slots, "default"),
753
- u.gridCtrl.searchBar ? D(u.$slots, "control", { key: 0 }) : k("", !0),
752
+ D(c.$slots, "default"),
753
+ c.gridCtrl.searchBar ? D(c.$slots, "control", { key: 0 }) : k("", !0),
754
754
  n.value >= 1 ? (m(), _(pe, {
755
755
  key: 1,
756
756
  class: "w-1/3"
@@ -759,7 +759,7 @@ const ja = async (s, a, t) => {
759
759
  key: 2,
760
760
  class: "w-1/3"
761
761
  })) : k("", !0),
762
- i.value || u.gridCtrl.searchBar ? (m(), _(pe, {
762
+ i.value || c.gridCtrl.searchBar ? (m(), _(pe, {
763
763
  key: 3,
764
764
  class: "w-1/3 flex justify-end text-right pr-5",
765
765
  "wrapper-col": { flex: "auto" }
@@ -808,7 +808,7 @@ const ja = async (s, a, t) => {
808
808
  gridCtrl: {}
809
809
  },
810
810
  setup(s) {
811
- const a = s, t = a.gridCtrl, e = Z(() => ce.currentRoute.value.path), n = [
811
+ const a = s, t = a.gridCtrl, e = Z(() => ue.currentRoute.value.path), n = [
812
812
  {
813
813
  key: "Edit",
814
814
  label: "编辑",
@@ -830,7 +830,7 @@ const ja = async (s, a, t) => {
830
830
  confirmText: "是否删除此记录?",
831
831
  click: () => Ze(t, a.record)
832
832
  }
833
- ], { buttons: i, menus: c } = xe(n, 0, t.operates), p = (d) => {
833
+ ], { buttons: i, menus: u } = xe(n, 0, t.operates), p = (d) => {
834
834
  if (typeof d.disabled == "boolean")
835
835
  return d.disabled;
836
836
  if (typeof d.disabled == "function")
@@ -875,7 +875,7 @@ const ja = async (s, a, t) => {
875
875
  disabled: p(r),
876
876
  onClick: (v) => l(Y)(r, l(t).page, l(t), a.record),
877
877
  size: "small",
878
- style: ue({
878
+ style: ce({
879
879
  padding: r.type ?? "0px 4px"
880
880
  })
881
881
  }, {
@@ -895,14 +895,14 @@ const ja = async (s, a, t) => {
895
895
  autoInsertSpaceInButton: !1
896
896
  }, {
897
897
  default: h(() => [
898
- l(c).length > 0 ? (m(), _(l(St), {
898
+ l(u).length > 0 ? (m(), _(l(St), {
899
899
  key: 0,
900
900
  size: "small"
901
901
  }, {
902
902
  overlay: h(() => [
903
903
  y(l(_e), null, {
904
904
  default: h(() => [
905
- (m(!0), w(M, null, z(l(c), (r) => (m(), w(M, {
905
+ (m(!0), w(M, null, z(l(u), (r) => (m(), w(M, {
906
906
  key: r.key
907
907
  }, [
908
908
  l(X)(r, a.record) ? H((m(), _(l(be), {
@@ -960,8 +960,8 @@ const ja = async (s, a, t) => {
960
960
  },
961
961
  { deep: !0, immediate: !0 }
962
962
  );
963
- const c = () => {
964
- t.columns.value.splice(0, t.columns.value.length, ...i.value), n.setTableColumns(ce.currentRoute.value.path, t.columns.value);
963
+ const u = () => {
964
+ t.columns.value.splice(0, t.columns.value.length, ...i.value), n.setTableColumns(ue.currentRoute.value.path, t.columns.value);
965
965
  };
966
966
  return (p, d) => (m(), w("div", na, [
967
967
  (m(!0), w(M, null, z(l(e), (o, f) => (m(), w(M, {
@@ -981,7 +981,7 @@ const ja = async (s, a, t) => {
981
981
  modelValue: i.value,
982
982
  "onUpdate:modelValue": d[1] || (d[1] = (r) => i.value = r),
983
983
  "item-key": "dataIndex",
984
- onEnd: c,
984
+ onEnd: u,
985
985
  handle: ".drag-handle"
986
986
  }, {
987
987
  default: h(() => [
@@ -1101,14 +1101,14 @@ const ja = async (s, a, t) => {
1101
1101
  ], 64))), 128))
1102
1102
  ]));
1103
1103
  }
1104
- }), ca = { class: "flex justify-between mb-[10px]" }, ua = { key: 1 }, da = 3, pa = /* @__PURE__ */ S({
1104
+ }), ua = { class: "flex justify-between mb-[10px]" }, ca = { key: 1 }, da = 3, pa = /* @__PURE__ */ S({
1105
1105
  __name: "index",
1106
1106
  props: {
1107
1107
  gridCtrl: {},
1108
1108
  editorCtrl: {}
1109
1109
  },
1110
1110
  setup(s) {
1111
- const a = s, t = a.gridCtrl, e = t.page, n = a.editorCtrl, i = Z(() => ce.currentRoute.value.path), c = [
1111
+ const a = s, t = a.gridCtrl, e = t.page, n = a.editorCtrl, i = Z(() => ue.currentRoute.value.path), u = [
1112
1112
  {
1113
1113
  key: "New",
1114
1114
  label: "新增",
@@ -1129,7 +1129,7 @@ const ja = async (s, a, t) => {
1129
1129
  () => {
1130
1130
  var r;
1131
1131
  const { buttons: o, menus: f } = xe(
1132
- c,
1132
+ u,
1133
1133
  t.flat !== void 0 ? t.flat : da,
1134
1134
  (r = t.buttons) == null ? void 0 : r.value
1135
1135
  );
@@ -1141,7 +1141,7 @@ const ja = async (s, a, t) => {
1141
1141
  }
1142
1142
  ), (o, f) => {
1143
1143
  const r = se("auth");
1144
- return m(), w("div", ca, [
1144
+ return m(), w("div", ua, [
1145
1145
  y(l(le), null, {
1146
1146
  default: h(() => [
1147
1147
  (m(!0), w(M, null, z(p.value, (v) => H((m(), _(l(B), {
@@ -1150,7 +1150,7 @@ const ja = async (s, a, t) => {
1150
1150
  danger: v.danger,
1151
1151
  disabled: l(V)(v),
1152
1152
  icon: v.icon,
1153
- onClick: (u) => l(Y)(v, l(e), l(t))
1153
+ onClick: (c) => l(Y)(v, l(e), l(t))
1154
1154
  }, {
1155
1155
  default: h(() => [
1156
1156
  R(F(v.label), 1)
@@ -1166,7 +1166,7 @@ const ja = async (s, a, t) => {
1166
1166
  (m(!0), w(M, null, z(d.value, (v) => H((m(), _(l(be), {
1167
1167
  key: v.key,
1168
1168
  disabled: l(V)(v),
1169
- onClick: (u) => l(Y)(v, l(e), l(t))
1169
+ onClick: (c) => l(Y)(v, l(e), l(t))
1170
1170
  }, {
1171
1171
  default: h(() => [
1172
1172
  R(F(v.label), 1)
@@ -1190,7 +1190,7 @@ const ja = async (s, a, t) => {
1190
1190
  ]),
1191
1191
  _: 1
1192
1192
  })) : k("", !0),
1193
- p.value.length === 0 && d.value.length === 0 ? (m(), w("span", ua)) : k("", !0)
1193
+ p.value.length === 0 && d.value.length === 0 ? (m(), w("span", ca)) : k("", !0)
1194
1194
  ]),
1195
1195
  _: 1
1196
1196
  }),
@@ -1216,45 +1216,45 @@ const ja = async (s, a, t) => {
1216
1216
  statusDisabled: { type: Function }
1217
1217
  },
1218
1218
  setup(s) {
1219
- const a = s, t = q(), e = a.gridCtrl, n = Z(() => ce.currentRoute.value.path);
1219
+ const a = s, t = q(), e = a.gridCtrl, n = Z(() => ue.currentRoute.value.path);
1220
1220
  e && (e.pageNo.value = 1, e.total.value = 0, e.pageSize.value = e.pageSize.value);
1221
- const i = b(e.pageSize.value), c = b(e.pageNo.value), p = b([]), d = b({
1221
+ const i = b(e.pageSize.value), u = b(e.pageNo.value), p = b([]), d = b({
1222
1222
  total: 0,
1223
1223
  current: 1,
1224
1224
  pageSize: i.value,
1225
- showTotal: (u) => `共 ${u} 条记录`,
1226
- onChange: (u, g) => {
1227
- d.value.current = u, d.value.pageSize = g, i.value = g, c.value = u, e && (e.pageNo.value = u, e.pageSize.value = g, e.remotePage && ke(e));
1225
+ showTotal: (c) => `共 ${c} 条记录`,
1226
+ onChange: (c, g) => {
1227
+ d.value !== !1 && (d.value.current = c, d.value.pageSize = g), i.value = g, u.value = c, e && (e.pageNo.value = c, e.pageSize.value = g, e.remotePage && ke(e));
1228
1228
  },
1229
1229
  ...a.pagination
1230
1230
  });
1231
- $(
1231
+ a.pagination === !1 && (d.value = !1), $(
1232
1232
  () => e.tableData.value,
1233
- (u) => {
1234
- u && (p.value = u, d.value.total = e.total.value ?? 0, d.value.current = e.pageNo.value ?? 1, d.value.pageSize = e.pageSize.value ?? 10);
1233
+ (c) => {
1234
+ c && (p.value = c, d.value !== !1 && (d.value.total = e.total.value ?? 0, d.value.current = e.pageNo.value ?? 1, d.value.pageSize = e.pageSize.value ?? 10));
1235
1235
  },
1236
1236
  { immediate: !0 }
1237
1237
  ), $(
1238
1238
  () => a.tableData,
1239
- (u) => {
1240
- u && (p.value = u, d.value.total = u.length, d.value.current = e.pageNo.value ?? 1, d.value.pageSize = e.pageSize.value ?? 10);
1239
+ (c) => {
1240
+ c && (p.value = c, d.value !== !1 && (d.value.total = c.length, d.value.current = e.pageNo.value ?? 1, d.value.pageSize = e.pageSize.value ?? 10));
1241
1241
  },
1242
1242
  { immediate: !0 }
1243
1243
  );
1244
1244
  const o = b(e.columns.value), f = {
1245
- onChange: (u, g) => {
1246
- e && (e.selectKeys.value = u, e.selectRows.value = g);
1245
+ onChange: (c, g) => {
1246
+ e && (e.selectKeys.value = c, e.selectRows.value = g);
1247
1247
  },
1248
1248
  columnWidth: "30px",
1249
- getCheckboxProps: (u) => ({
1250
- disabled: u.Enabled === 0
1249
+ getCheckboxProps: (c) => ({
1250
+ disabled: c.Enabled === 0
1251
1251
  }),
1252
1252
  ...a.rowSelection
1253
1253
  }, r = b(f);
1254
1254
  $(
1255
1255
  () => e.selectable.value,
1256
- (u) => {
1257
- e && (r.value = u ? f : void 0);
1256
+ (c) => {
1257
+ e && (r.value = c ? f : void 0);
1258
1258
  },
1259
1259
  { immediate: !0 }
1260
1260
  ), $(
@@ -1268,10 +1268,10 @@ const ja = async (s, a, t) => {
1268
1268
  return ht(() => {
1269
1269
  v.value && e && (e.reload.value = !0);
1270
1270
  }), W(async () => {
1271
- ge(j.GridControl, e), e.tableData.value ? (p.value = e.tableData.value, e.total.value = p.value.length, d.value.total = e.total.value ?? 0) : e.autoload !== !1 && (e.remotePage ? p.value = (await ke(e)).rows : p.value = await tt(e)), setTimeout(() => {
1271
+ ge(j.GridControl, e), e.tableData.value ? (p.value = e.tableData.value, e.total.value = p.value.length, d.value !== !1 && (d.value.total = e.total.value ?? 0)) : e.autoload !== !1 && (e.remotePage ? p.value = (await ke(e)).rows : p.value = await tt(e)), setTimeout(() => {
1272
1272
  v.value = !0;
1273
1273
  }, 50);
1274
- }), (u, g) => {
1274
+ }), (c, g) => {
1275
1275
  var P, O;
1276
1276
  const C = se("auth");
1277
1277
  return m(), w(M, null, [
@@ -1296,7 +1296,7 @@ const ja = async (s, a, t) => {
1296
1296
  bodyCell: h((x) => {
1297
1297
  var I, A;
1298
1298
  return [
1299
- D(u.$slots, "bodyCell", {
1299
+ D(c.$slots, "bodyCell", {
1300
1300
  column: x == null ? void 0 : x.column,
1301
1301
  record: x == null ? void 0 : x.record
1302
1302
  }),
@@ -1304,18 +1304,18 @@ const ja = async (s, a, t) => {
1304
1304
  key: 0,
1305
1305
  checked: x.record.Enabled,
1306
1306
  "onUpdate:checked": (J) => x.record.Enabled = J,
1307
- disabled: u.statusDisabled ? u.statusDisabled(x.record) : !1,
1307
+ disabled: c.statusDisabled ? c.statusDisabled(x.record) : !1,
1308
1308
  data: l(Ne).EnableDisable,
1309
1309
  onClick: (J) => l(lt)(l(e), x.record),
1310
1310
  class: N([
1311
1311
  "w-[58px]",
1312
- u.statusDisabled && u.statusDisabled(x.record) ? "cursor-not-allowed disabled" : ""
1312
+ c.statusDisabled && c.statusDisabled(x.record) ? "cursor-not-allowed disabled" : ""
1313
1313
  ]),
1314
1314
  loading: x == null ? void 0 : x.record.isLoading
1315
1315
  }, null, 8, ["checked", "onUpdate:checked", "disabled", "data", "onClick", "class", "loading"])), [
1316
1316
  [C, { url: n.value, role: ["Super", "Admin"], permit: ":enabled" }, "disable"]
1317
1317
  ]) : k("", !0),
1318
- l(e) && ((A = x == null ? void 0 : x.column) == null ? void 0 : A.dataIndex) === "operation" ? D(u.$slots, "operate", {
1318
+ l(e) && ((A = x == null ? void 0 : x.column) == null ? void 0 : A.dataIndex) === "operation" ? D(c.$slots, "operate", {
1319
1319
  key: 1,
1320
1320
  record: x == null ? void 0 : x.record
1321
1321
  }, () => [
@@ -1347,7 +1347,7 @@ const ja = async (s, a, t) => {
1347
1347
  f && (i.value = n.fieldMap ? oe(n.fieldMap, f) : f, o(t.selectedKeys ?? []));
1348
1348
  }
1349
1349
  );
1350
- const c = a, p = b([]);
1350
+ const u = a, p = b([]);
1351
1351
  $(
1352
1352
  () => t.selectedKeys,
1353
1353
  (f) => {
@@ -1364,7 +1364,7 @@ const ja = async (s, a, t) => {
1364
1364
  { immediate: !0 }
1365
1365
  );
1366
1366
  const o = (f, r) => {
1367
- f.length === 0 && f.push(...p.value), f.length > 0 && (n.node.value = r == null ? void 0 : r.node.dataRef), p.value = f, c("update:selectedKeys", f), c("select", f, r);
1367
+ f.length === 0 && f.push(...p.value), f.length > 0 && (n.node.value = r == null ? void 0 : r.node.dataRef), p.value = f, u("update:selectedKeys", f), u("select", f, r);
1368
1368
  };
1369
1369
  return W(() => {
1370
1370
  n.fieldMap || (n.fieldMap = {
@@ -1383,22 +1383,22 @@ const ja = async (s, a, t) => {
1383
1383
  loading: l(n).isTreeLoading,
1384
1384
  onSelect: o
1385
1385
  }, l(e)), {
1386
- title: h(({ key: v, label: u, icon: g }) => [
1386
+ title: h(({ key: v, label: c, icon: g }) => [
1387
1387
  D(f.$slots, "title", {
1388
- label: u,
1388
+ label: c,
1389
1389
  key: v,
1390
1390
  icon: g
1391
1391
  }, () => [
1392
1392
  T("div", fa, [
1393
1393
  y(l(U), { icon: g }, null, 8, ["icon"]),
1394
- T("span", va, F(u), 1)
1394
+ T("span", va, F(c), 1)
1395
1395
  ])
1396
1396
  ])
1397
1397
  ]),
1398
1398
  _: 3
1399
1399
  }, 16, ["tree-data", "expanded-keys", "selected-keys", "loading"]));
1400
1400
  }
1401
- }), ll = /* @__PURE__ */ G(st, [["__scopeId", "data-v-2271173b"]]), ma = { class: "relative w-[248px] max-w-[248px]" }, ha = {
1401
+ }), ll = /* @__PURE__ */ G(st, [["__scopeId", "data-v-7a45a338"]]), ma = { class: "relative w-[248px] max-w-[248px]" }, ha = {
1402
1402
  key: 0,
1403
1403
  class: "absolute z-10 mt-[5px] mr-[10px] text-[#999] flex items-center"
1404
1404
  }, ga = /* @__PURE__ */ S({
@@ -1408,13 +1408,13 @@ const ja = async (s, a, t) => {
1408
1408
  emits: ["change", "update:labels", "update:value"],
1409
1409
  setup(s, { emit: a }) {
1410
1410
  var C, P, O;
1411
- const t = s, e = q(), n = L(), i = ot(t.url, t), c = t.optionCtrl ?? i.optionCtrl;
1412
- c.inputFactory = gt(n);
1411
+ const t = s, e = q(), n = L(), i = ot(t.url, t), u = t.optionCtrl ?? i.optionCtrl;
1412
+ u.inputFactory = gt(n);
1413
1413
  const p = b({
1414
- ...c == null ? void 0 : c.url,
1415
- url: ((C = c == null ? void 0 : c.url) == null ? void 0 : C.url) || "",
1416
- fieldMap: (c == null ? void 0 : c.fieldMap) || ((P = c == null ? void 0 : c.url) == null ? void 0 : P.fieldMap),
1417
- params: (c == null ? void 0 : c.params) || ((O = c == null ? void 0 : c.url) == null ? void 0 : O.params),
1414
+ ...u == null ? void 0 : u.url,
1415
+ url: ((C = u == null ? void 0 : u.url) == null ? void 0 : C.url) || "",
1416
+ fieldMap: (u == null ? void 0 : u.fieldMap) || ((P = u == null ? void 0 : u.url) == null ? void 0 : P.fieldMap),
1417
+ params: (u == null ? void 0 : u.params) || ((O = u == null ? void 0 : u.url) == null ? void 0 : O.params),
1418
1418
  loadingText: !1
1419
1419
  }), { editorCtrl: d, errInfo: o, labelText: f } = n, r = b(e.placeholder);
1420
1420
  $(
@@ -1426,11 +1426,11 @@ const ja = async (s, a, t) => {
1426
1426
  );
1427
1427
  const v = a;
1428
1428
  n.inputEmit = v;
1429
- const u = b((c == null ? void 0 : c.options.value) || []);
1430
- c && $(
1431
- () => c.options.value,
1429
+ const c = b((u == null ? void 0 : u.options.value) || []);
1430
+ u && $(
1431
+ () => u.options.value,
1432
1432
  (x) => {
1433
- u.value = x || [];
1433
+ c.value = x || [];
1434
1434
  },
1435
1435
  { immediate: !0, deep: !0 }
1436
1436
  );
@@ -1451,27 +1451,27 @@ const ja = async (s, a, t) => {
1451
1451
  label: "Name",
1452
1452
  value: "Id",
1453
1453
  key: "Id"
1454
- }), c && nt(c.autoload, c, t);
1454
+ }), u && nt(u.autoload, u, t);
1455
1455
  }), _t(() => {
1456
- c && it(c, t);
1456
+ u && it(u, t);
1457
1457
  }), (x, I) => {
1458
1458
  var A;
1459
1459
  return m(), w("div", ma, [
1460
- u.value.length ? k("", !0) : (m(), w("div", ha, [
1461
- y(l(ct), { class: "text-[#555] mx-[5px] !ml-[10px] !w-4 !h-4" }),
1460
+ c.value.length ? k("", !0) : (m(), w("div", ha, [
1461
+ y(l(ut), { class: "text-[#555] mx-[5px] !ml-[10px] !w-4 !h-4" }),
1462
1462
  I[0] || (I[0] = T("span", null, "数据加载中...", -1))
1463
1463
  ])),
1464
1464
  y(l(Tt), E({
1465
- options: u.value,
1465
+ options: c.value,
1466
1466
  class: [(A = l(o)) == null ? void 0 : A.errClass],
1467
1467
  "allow-clear": !0,
1468
- placeholder: u.value.length > 0 ? "请选择" + l(f) : "",
1468
+ placeholder: c.value.length > 0 ? "请选择" + l(f) : "",
1469
1469
  onChange: g
1470
1470
  }, l(e)), null, 16, ["options", "class", "placeholder"])
1471
1471
  ]);
1472
1472
  };
1473
1473
  }
1474
- }), sl = /* @__PURE__ */ G(ga, [["__scopeId", "data-v-c93fe667"]]), rl = /* @__PURE__ */ G(ut, [["__scopeId", "data-v-64193a41"]]);
1474
+ }), sl = /* @__PURE__ */ G(ga, [["__scopeId", "data-v-c93fe667"]]), rl = /* @__PURE__ */ G(ct, [["__scopeId", "data-v-64193a41"]]);
1475
1475
  function ie() {
1476
1476
  return ie = Object.assign ? Object.assign.bind() : function(s) {
1477
1477
  for (var a = 1; a < arguments.length; a++) {
@@ -1535,14 +1535,14 @@ const ol = /* @__PURE__ */ S({
1535
1535
  setup(s) {
1536
1536
  const a = s, { editorCtrl: t, labelText: e, errInfo: n } = L(), i = () => {
1537
1537
  n != null && n.value.errClass && t && Q(t);
1538
- }, c = b(a.valueFormat ?? "YYYY-MM-DD");
1538
+ }, u = b(a.valueFormat ?? "YYYY-MM-DD");
1539
1539
  return (p, d) => {
1540
1540
  var o;
1541
1541
  return m(), _(l(It), {
1542
1542
  class: N(["w-full", [((o = l(n)) == null ? void 0 : o.errClass) === "error" ? "error !border-red-300 shadow-[0_0_3px_0px_#ff4d4f]" : ""]]),
1543
1543
  placeholder: "请选择" + l(e),
1544
1544
  locale: l(ye),
1545
- valueFormat: c.value,
1545
+ valueFormat: u.value,
1546
1546
  onBlur: i
1547
1547
  }, null, 8, ["class", "placeholder", "locale", "valueFormat"]);
1548
1548
  };
@@ -1556,9 +1556,9 @@ const ol = /* @__PURE__ */ S({
1556
1556
  setup(s, { emit: a }) {
1557
1557
  const { editorCtrl: t, labelText: e, errInfo: n } = L(), i = () => {
1558
1558
  n != null && n.value.errClass && t && Q(t);
1559
- }, c = s, p = a, d = b(c.value);
1559
+ }, u = s, p = a, d = b(u.value);
1560
1560
  $(
1561
- () => c.value,
1561
+ () => u.value,
1562
1562
  (f) => {
1563
1563
  d.value = f;
1564
1564
  },
@@ -1578,11 +1578,11 @@ const ol = /* @__PURE__ */ S({
1578
1578
  d.value === "" && (d.value = void 0);
1579
1579
  };
1580
1580
  return (f, r) => {
1581
- var v, u;
1581
+ var v, c;
1582
1582
  return m(), _(l(te), E({
1583
1583
  class: [
1584
1584
  (v = l(n)) == null ? void 0 : v.errClass,
1585
- ((u = l(n)) == null ? void 0 : u.errClass) === "error" && !f.$slots.addonBefore && !f.$slots.addonAfter ? "!border-red-300 shadow-[0_0_3px_0px_#ff4d4f]" : ""
1585
+ ((c = l(n)) == null ? void 0 : c.errClass) === "error" && !f.$slots.addonBefore && !f.$slots.addonAfter ? "!border-red-300 shadow-[0_0_3px_0px_#ff4d4f]" : ""
1586
1586
  ],
1587
1587
  value: d.value,
1588
1588
  "onUpdate:value": r[0] || (r[0] = (g) => d.value = g),
@@ -1628,9 +1628,9 @@ const ol = /* @__PURE__ */ S({
1628
1628
  (i) => {
1629
1629
  e("update:value", i);
1630
1630
  }
1631
- ), (i, c) => (m(), _(xa, E({
1631
+ ), (i, u) => (m(), _(xa, E({
1632
1632
  value: n.value,
1633
- "onUpdate:value": c[0] || (c[0] = (p) => n.value = p)
1633
+ "onUpdate:value": u[0] || (u[0] = (p) => n.value = p)
1634
1634
  }, i.$attrs), {
1635
1635
  addonBefore: h(() => [
1636
1636
  y(l(U), {
@@ -1647,7 +1647,7 @@ const ol = /* @__PURE__ */ S({
1647
1647
  const { editorCtrl: a, labelText: t, errInfo: e } = L(), n = () => {
1648
1648
  e != null && e.value.errClass && a && Q(a);
1649
1649
  };
1650
- return (i, c) => {
1650
+ return (i, u) => {
1651
1651
  var p;
1652
1652
  return m(), _(l(Dt), E({
1653
1653
  class: ((p = l(e)) == null ? void 0 : p.errClass) === "error" ? ["error", "!border-red-300", "shadow-[0_0_3px_0px_#ff4d4f]"] : "",
@@ -1658,13 +1658,13 @@ const ol = /* @__PURE__ */ S({
1658
1658
  }, i.$attrs), null, 16, ["class", "placeholder"]);
1659
1659
  };
1660
1660
  }
1661
- }), cl = /* @__PURE__ */ S({
1661
+ }), ul = /* @__PURE__ */ S({
1662
1662
  __name: "inputNumber",
1663
1663
  setup(s) {
1664
1664
  const { editorCtrl: a, labelText: t, errInfo: e } = L(), n = () => {
1665
1665
  e != null && e.value.errClass && a && Q(a);
1666
1666
  };
1667
- return (i, c) => {
1667
+ return (i, u) => {
1668
1668
  var p;
1669
1669
  return m(), _(l(Pt), E({
1670
1670
  class: [[((p = l(e)) == null ? void 0 : p.errClass) === "error" ? "error !border-red-300 shadow-[0_0_3px_0px_#ff4d4f]" : ""], "w-[50%]"],
@@ -1674,7 +1674,7 @@ const ol = /* @__PURE__ */ S({
1674
1674
  }, i.$attrs), null, 16, ["class", "placeholder"]);
1675
1675
  };
1676
1676
  }
1677
- }), ka = { class: "flex flex-col gap-2" }, wa = { key: 1 }, ul = /* @__PURE__ */ S({
1677
+ }), ka = { class: "flex flex-col gap-2" }, wa = { key: 1 }, cl = /* @__PURE__ */ S({
1678
1678
  __name: "index",
1679
1679
  props: {
1680
1680
  value: {},
@@ -1686,7 +1686,7 @@ const ol = /* @__PURE__ */ S({
1686
1686
  emits: ["update:value"],
1687
1687
  setup(s, { emit: a }) {
1688
1688
  const t = s, e = a, n = b(!(t.selectList && t.selectList.length > 0)), i = b([]);
1689
- let c = !1;
1689
+ let u = !1;
1690
1690
  const p = () => {
1691
1691
  t.selectList && t.selectList.length > 0 ? i.value = t.selectList.map((r) => ({
1692
1692
  id: Date.now() + Math.random(),
@@ -1703,16 +1703,16 @@ const ol = /* @__PURE__ */ S({
1703
1703
  $(
1704
1704
  () => t.value,
1705
1705
  () => {
1706
- c || p(), c = !1;
1706
+ u || p(), u = !1;
1707
1707
  },
1708
1708
  { immediate: !0 }
1709
1709
  );
1710
1710
  const d = () => {
1711
1711
  const r = i.value.reduce(
1712
- (v, u) => (u.field && (v[u.field] = u.value), v),
1712
+ (v, c) => (c.field && (v[c.field] = c.value), v),
1713
1713
  {}
1714
1714
  );
1715
- c = !0, e("update:value", r);
1715
+ u = !0, e("update:value", r);
1716
1716
  }, o = () => {
1717
1717
  i.value.push({
1718
1718
  id: Date.now() + Math.random(),
@@ -1723,8 +1723,8 @@ const ol = /* @__PURE__ */ S({
1723
1723
  d();
1724
1724
  };
1725
1725
  return (r, v) => (m(), w("div", ka, [
1726
- (m(!0), w(M, null, z(i.value, (u) => (m(), w("div", {
1727
- key: u.id,
1726
+ (m(!0), w(M, null, z(i.value, (c) => (m(), w("div", {
1727
+ key: c.id,
1728
1728
  class: "flex items-center gap-2"
1729
1729
  }, [
1730
1730
  T("div", {
@@ -1732,25 +1732,25 @@ const ol = /* @__PURE__ */ S({
1732
1732
  }, [
1733
1733
  !r.selectList || r.selectList.length === 0 ? (m(), _(l(te), {
1734
1734
  key: 0,
1735
- value: u.field,
1736
- "onUpdate:value": (g) => u.field = g,
1737
- title: u.text || u.field,
1735
+ value: c.field,
1736
+ "onUpdate:value": (g) => c.field = g,
1737
+ title: c.text || c.field,
1738
1738
  class: "w-full",
1739
- placeholder: u.text || r.labelHolder || "配置名",
1739
+ placeholder: c.text || r.labelHolder || "配置名",
1740
1740
  onInput: f,
1741
1741
  disabled: !n.value
1742
1742
  }, null, 8, ["value", "onUpdate:value", "title", "placeholder", "disabled"])) : (m(), w("div", wa, [
1743
1743
  y(l(te), {
1744
- value: u.text,
1745
- "onUpdate:value": (g) => u.text = g,
1746
- title: u.text,
1744
+ value: c.text,
1745
+ "onUpdate:value": (g) => c.text = g,
1746
+ title: c.text,
1747
1747
  disabled: !0,
1748
1748
  class: "w-[100%]"
1749
1749
  }, null, 8, ["value", "onUpdate:value", "title"]),
1750
1750
  y(l(te), {
1751
1751
  type: "hidden",
1752
- value: u.field,
1753
- "onUpdate:value": (g) => u.field = g
1752
+ value: c.field,
1753
+ "onUpdate:value": (g) => c.field = g
1754
1754
  }, null, 8, ["value", "onUpdate:value"])
1755
1755
  ]))
1756
1756
  ], 2),
@@ -1759,11 +1759,11 @@ const ol = /* @__PURE__ */ S({
1759
1759
  class: N([r.fieldWidth ? `w-[${97 - r.fieldWidth}%]` : "w-[64%]"])
1760
1760
  }, [
1761
1761
  y(l(te), {
1762
- value: u.value,
1763
- "onUpdate:value": (g) => u.value = g,
1764
- placeholder: r.valueHolder || "请输入" + u.text || "请输入配置值",
1762
+ value: c.value,
1763
+ "onUpdate:value": (g) => c.value = g,
1764
+ placeholder: r.valueHolder || "请输入" + c.text || "请输入配置值",
1765
1765
  onInput: f,
1766
- title: u.value
1766
+ title: c.value
1767
1767
  }, null, 8, ["value", "onUpdate:value", "placeholder", "title"])
1768
1768
  ], 2)
1769
1769
  ]))), 128)),
@@ -1824,7 +1824,7 @@ const ol = /* @__PURE__ */ S({
1824
1824
  },
1825
1825
  emits: ["update:startDate", "update:endDate"],
1826
1826
  setup(s, { emit: a }) {
1827
- const t = s, e = a, n = L(), { errInfo: i } = n, c = Z(() => t.valueFormat), p = Z(() => {
1827
+ const t = s, e = a, n = L(), { errInfo: i } = n, u = Z(() => t.valueFormat), p = Z(() => {
1828
1828
  const o = t.startDate, f = t.endDate;
1829
1829
  if (!(!o || !f))
1830
1830
  try {
@@ -1845,7 +1845,7 @@ const ol = /* @__PURE__ */ S({
1845
1845
  return m(), _(l(Et), {
1846
1846
  class: N([((r = l(i)) == null ? void 0 : r.errClass) === "error" ? ["error", "!border-red-300", "shadow-[0_0_3px_0px_#ff4d4f]"] : "", "w-full"]),
1847
1847
  locale: l(ye),
1848
- "value-format": c.value,
1848
+ "value-format": u.value,
1849
1849
  value: p.value,
1850
1850
  onChange: d
1851
1851
  }, null, 8, ["class", "locale", "value-format", "value"]);
@@ -1857,16 +1857,16 @@ const ol = /* @__PURE__ */ S({
1857
1857
  const { editorCtrl: a, labelText: t, errInfo: e } = L(), n = () => {
1858
1858
  e != null && e.value.errClass && a && Q(a);
1859
1859
  };
1860
- return (i, c) => {
1860
+ return (i, u) => {
1861
1861
  var p;
1862
1862
  return m(), _(l(Ft), E({
1863
1863
  class: ((p = l(e)) == null ? void 0 : p.errClass) === "error" ? ["error", "!border-red-300", "shadow-[0_0_3px_0px_#ff4d4f]"] : "",
1864
1864
  "allow-clear": !0,
1865
1865
  placeholder: "请输入" + l(t),
1866
1866
  onBlur: n,
1867
- onKeyup: c[0] || (c[0] = Se(ae(() => {
1867
+ onKeyup: u[0] || (u[0] = Se(ae(() => {
1868
1868
  }, ["stop"]), ["enter", "native"])),
1869
- onKeydown: c[1] || (c[1] = Se(ae(() => {
1869
+ onKeydown: u[1] || (u[1] = Se(ae(() => {
1870
1870
  }, ["stop"]), ["enter", "native"]))
1871
1871
  }, i.$attrs), null, 16, ["class", "placeholder"]);
1872
1872
  };
@@ -1881,7 +1881,7 @@ const ol = /* @__PURE__ */ S({
1881
1881
  },
1882
1882
  emits: ["change", "update:value"],
1883
1883
  setup(s, { emit: a }) {
1884
- const t = s, e = b({ ...t.url }), { editorCtrl: n, labelText: i, errInfo: c } = L(), p = a, d = b([]), o = b([]);
1884
+ const t = s, e = b({ ...t.url }), { editorCtrl: n, labelText: i, errInfo: u } = L(), p = a, d = b([]), o = b([]);
1885
1885
  t.value && t.value.every((r) => {
1886
1886
  o.value.push(r.toString());
1887
1887
  }), $(
@@ -1891,7 +1891,7 @@ const ol = /* @__PURE__ */ S({
1891
1891
  }
1892
1892
  );
1893
1893
  const f = (r) => {
1894
- p("update:value", r), p("change", r), o.value = r, c != null && c.value.errClass && n && Q(n);
1894
+ p("update:value", r), p("change", r), o.value = r, u != null && u.value.errClass && n && Q(n);
1895
1895
  };
1896
1896
  return W(async () => {
1897
1897
  if (e.value) {
@@ -1907,9 +1907,9 @@ const ol = /* @__PURE__ */ S({
1907
1907
  }
1908
1908
  }
1909
1909
  }), (r, v) => {
1910
- var u;
1910
+ var c;
1911
1911
  return m(), _(l(Nt), E({
1912
- class: ((u = l(c)) == null ? void 0 : u.errClass) === "error" ? ["error", "!border-red-300", "shadow-[0_0_3px_0px_#ff4d4f]"] : "",
1912
+ class: ((c = l(u)) == null ? void 0 : c.errClass) === "error" ? ["error", "!border-red-300", "shadow-[0_0_3px_0px_#ff4d4f]"] : "",
1913
1913
  placeholder: "请输入" + l(i),
1914
1914
  targetKeys: o.value,
1915
1915
  onChange: f
@@ -1955,7 +1955,7 @@ const ol = /* @__PURE__ */ S({
1955
1955
  },
1956
1956
  emits: ["update:value"],
1957
1957
  setup(s, { emit: a }) {
1958
- const t = s, e = a, n = b(t.autoload), i = b(t.value), c = b(t.gridCtrl.primaryKey);
1958
+ const t = s, e = a, n = b(t.autoload), i = b(t.value), u = b(t.gridCtrl.primaryKey);
1959
1959
  $(
1960
1960
  () => i.value,
1961
1961
  (o) => {
@@ -1968,16 +1968,16 @@ const ol = /* @__PURE__ */ S({
1968
1968
  }
1969
1969
  ), t.gridCtrl.autoload = !1, t.gridCtrl.remotePage = !1, t.gridCtrl.selectable = b(!0), t.gridCtrl.buttons = b([]), t.gridCtrl.tools = [];
1970
1970
  const p = ({ disabled: o, selectedKeys: f, onItemSelectAll: r, onItemSelect: v }) => ({
1971
- getCheckboxProps: (u) => ({
1971
+ getCheckboxProps: (c) => ({
1972
1972
  // 控制是否禁止
1973
- disabled: o || u.disabled
1973
+ disabled: o || c.disabled
1974
1974
  }),
1975
- onSelectAll(u, g) {
1976
- const C = g.filter((P) => !P.disabled).map(({ [c.value]: P }) => P);
1977
- r(C, u);
1975
+ onSelectAll(c, g) {
1976
+ const C = g.filter((P) => !P.disabled).map(({ [u.value]: P }) => P);
1977
+ r(C, c);
1978
1978
  },
1979
- onSelect({ [c.value]: u }, g) {
1980
- v(u, g);
1979
+ onSelect({ [u.value]: c }, g) {
1980
+ v(c, g);
1981
1981
  },
1982
1982
  selectedRowKeys: f
1983
1983
  }), d = b([]);
@@ -1993,7 +1993,7 @@ const ol = /* @__PURE__ */ S({
1993
1993
  }
1994
1994
  }), (o, f) => (m(), _(Ca, E({
1995
1995
  "data-source": d.value,
1996
- "row-key": (r) => r[c.value],
1996
+ "row-key": (r) => r[u.value],
1997
1997
  value: i.value,
1998
1998
  "onUpdate:value": f[0] || (f[0] = (r) => i.value = r),
1999
1999
  "list-style": {
@@ -2003,21 +2003,21 @@ const ol = /* @__PURE__ */ S({
2003
2003
  "show-select-all": !1,
2004
2004
  "show-search": !0,
2005
2005
  "filter-option": (r, v) => {
2006
- for (const u of t.gridCtrl.columns.value)
2007
- if (v[u.dataIndex].toString().indexOf(r) !== -1)
2006
+ for (const c of t.gridCtrl.columns.value)
2007
+ if (v[c.dataIndex].toString().indexOf(r) !== -1)
2008
2008
  return !0;
2009
2009
  return !1;
2010
2010
  }
2011
2011
  }, o.$attrs), {
2012
- children: h(({ filteredItems: r, onItemSelectAll: v, onItemSelect: u, selectedKeys: g }) => [
2012
+ children: h(({ filteredItems: r, onItemSelectAll: v, onItemSelect: c, selectedKeys: g }) => [
2013
2013
  y(l(We), {
2014
2014
  columns: s.gridCtrl.columns.value,
2015
- "row-key": c.value,
2015
+ "row-key": u.value,
2016
2016
  "row-selection": p({
2017
2017
  disabled: !1,
2018
2018
  selectedKeys: g,
2019
2019
  onItemSelectAll: v,
2020
- onItemSelect: u
2020
+ onItemSelect: c
2021
2021
  }),
2022
2022
  bordered: !1,
2023
2023
  size: "small",
@@ -2025,8 +2025,8 @@ const ol = /* @__PURE__ */ S({
2025
2025
  scroll: { x: 300 },
2026
2026
  "custom-row": (C) => ({
2027
2027
  onClick: () => {
2028
- const P = C[c.value];
2029
- u(P, !g.includes(P));
2028
+ const P = C[u.value];
2029
+ c(P, !g.includes(P));
2030
2030
  }
2031
2031
  })
2032
2032
  }, null, 8, ["columns", "row-key", "row-selection", "data-source", "custom-row"])
@@ -2052,7 +2052,7 @@ const ol = /* @__PURE__ */ S({
2052
2052
  },
2053
2053
  emits: ["change", "update:value"],
2054
2054
  setup(s, { emit: a }) {
2055
- const t = s, e = t.treeCtrl, n = L(), { errInfo: i, labelText: c } = n, p = a;
2055
+ const t = s, e = t.treeCtrl, n = L(), { errInfo: i, labelText: u } = n, p = a;
2056
2056
  n.inputEmit = p;
2057
2057
  const d = b([]), o = b();
2058
2058
  $(
@@ -2078,16 +2078,16 @@ const ol = /* @__PURE__ */ S({
2078
2078
  value: "Id"
2079
2079
  }), e.data.value ? d.value = e.fieldMap ? oe(e.fieldMap, e.data.value) : e.data.value : t.treeCtrl.autoload && Re(t.treeCtrl);
2080
2080
  }), (r, v) => {
2081
- var u;
2081
+ var c;
2082
2082
  return m(), _(l(Rt), E({
2083
- class: [[(u = l(i)) == null ? void 0 : u.errClass], "w-full"],
2083
+ class: [[(c = l(i)) == null ? void 0 : c.errClass], "w-full"],
2084
2084
  "tree-line": "",
2085
2085
  multiple: s.multiple,
2086
2086
  "tree-default-expanded-keys": ["-"],
2087
2087
  value: o.value,
2088
2088
  "onUpdate:value": v[0] || (v[0] = (g) => o.value = g),
2089
2089
  "tree-data": d.value,
2090
- placeholder: "请选择" + l(c),
2090
+ placeholder: "请选择" + l(u),
2091
2091
  "allow-clear": !0,
2092
2092
  onChange: f
2093
2093
  }, r.$attrs), null, 16, ["class", "multiple", "value", "tree-data", "placeholder"]);
@@ -2106,7 +2106,7 @@ const ol = /* @__PURE__ */ S({
2106
2106
  return (e, n) => (m(), w("div", Ta, [
2107
2107
  y(l(Mt), {
2108
2108
  class: "m-[10px] p-[10px] h-[calc(100vh-100px)] !min-h-[calc(100vh-100px)]",
2109
- style: ue({
2109
+ style: ce({
2110
2110
  backgroundColor: l(t).colorBgContainer
2111
2111
  })
2112
2112
  }, {
@@ -2126,43 +2126,44 @@ const ol = /* @__PURE__ */ S({
2126
2126
  }
2127
2127
  });
2128
2128
  export {
2129
- Cs as AppIcon,
2130
- ce as AppRouter,
2129
+ Ts as AppIcon,
2130
+ ue as AppRouter,
2131
2131
  rs as AsyncUploader,
2132
2132
  ll as AutoComplete,
2133
- $s as Breadcrumb,
2133
+ Is as Breadcrumb,
2134
2134
  B as Button,
2135
2135
  je as Cache,
2136
2136
  Qt as CacheKeys,
2137
+ ms as CanPreviewFileExt,
2137
2138
  sl as Cascader,
2138
2139
  rl as Checkbox,
2139
2140
  gl as Content,
2140
2141
  ol as DatePicker,
2141
- Ts as Datetime,
2142
- Ms as Dialog,
2142
+ Ds as Datetime,
2143
+ As as Dialog,
2143
2144
  Ja as Drawer,
2144
2145
  xl as EventPrefix,
2145
2146
  Xa as Form,
2146
2147
  Za as FormItem,
2147
2148
  Qa as Fullscreen,
2148
- Is as Header,
2149
- Ds as HeaderExits,
2149
+ Ps as Header,
2150
+ Es as HeaderExits,
2150
2151
  Gt as Helper,
2151
2152
  yl as ICONS_LIB,
2152
- Ps as Icon,
2153
+ Fs as Icon,
2153
2154
  ia as Icontool,
2154
2155
  xa as Input,
2155
2156
  nl as InputIcon,
2156
- cl as InputNumber,
2157
+ ul as InputNumber,
2157
2158
  il as InputPassword,
2158
2159
  qa as LayoutIcon,
2159
2160
  Ga as Loading,
2160
- Es as Menu,
2161
- Fs as MenuTabs,
2161
+ Ns as Menu,
2162
+ Rs as MenuTabs,
2162
2163
  Ne as OPTIONS,
2163
2164
  rt as OptionCommProps,
2164
- Ns as ProjectIcon,
2165
- ul as PropEditor,
2165
+ Ms as ProjectIcon,
2166
+ cl as PropEditor,
2166
2167
  j as ProviderKeys,
2167
2168
  Sa as Radio,
2168
2169
  dl as RadioStatus,
@@ -2176,17 +2177,17 @@ export {
2176
2177
  vl as Textarea,
2177
2178
  U as ToolIcon,
2178
2179
  pa as Toolbar,
2179
- ws as Tooltip,
2180
+ Cs as Tooltip,
2180
2181
  Ca as Transfer,
2181
2182
  ml as TransferTable,
2182
2183
  al as Tree,
2183
2184
  hl as TreeSelect,
2184
- ms as UploadList,
2185
+ hs as UploadList,
2185
2186
  os as UploadStatus,
2186
- _s as appendExcelData,
2187
- bs as checkExcelDuplicates,
2187
+ xs as appendExcelData,
2188
+ ys as checkExcelDuplicates,
2188
2189
  kl as checkIconsExpired,
2189
- ct as circleLoading,
2190
+ ut as circleLoading,
2190
2191
  qe as createFromIconfont,
2191
2192
  wl as crumbs,
2192
2193
  De as defaultTools,
@@ -2194,7 +2195,7 @@ export {
2194
2195
  Cl as doExecute,
2195
2196
  Me as doQuery,
2196
2197
  $l as doSave,
2197
- hs as donwloadFromMinio,
2198
+ gs as donwloadFromMinio,
2198
2199
  Ke as downloadBlob,
2199
2200
  Tl as eventBus,
2200
2201
  Ha as exportResults,
@@ -2209,12 +2210,12 @@ export {
2209
2210
  El as getRuleTexts,
2210
2211
  Fl as getSelectedLabels,
2211
2212
  Nl as getSelectedValues,
2212
- cs as getToken,
2213
+ us as getToken,
2213
2214
  K as getToolByKey,
2214
2215
  xe as getToolGroup,
2215
2216
  V as getToolStatus,
2216
2217
  X as getToolVisible,
2217
- us as getUserInfo,
2218
+ cs as getUserInfo,
2218
2219
  ke as gridQueryFind,
2219
2220
  tt as gridQueryList,
2220
2221
  Rl as gridRowUpdate,
@@ -2244,7 +2245,8 @@ export {
2244
2245
  ds as path,
2245
2246
  Wl as pendingNavigation,
2246
2247
  Kl as pinia,
2247
- xs as processExcelFile,
2248
+ _s as previewFromMinio,
2249
+ ks as processExcelFile,
2248
2250
  Re as queryTree,
2249
2251
  Vl as resetRules,
2250
2252
  jl as routes,
@@ -2268,5 +2270,5 @@ export {
2268
2270
  ps as userLogin,
2269
2271
  fs as userLogout,
2270
2272
  ls as validateData,
2271
- ys as validateExcel
2273
+ ws as validateExcel
2272
2274
  };