@skyfox2000/webui 1.4.18 → 1.4.19

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.
package/lib/webui.es.js CHANGED
@@ -1,18 +1,18 @@
1
- import { u as Pe, i as Z, a as he, L as la, c as ra, P as q, o as Fe, b as sa, d as oa, e as Ne, g as Me, r as ce, f as na, h as ia, j as Oe, k as ua, l as we, m as ca, _ as da, n as pa, O as Be, p as fa, q as Ae, s as va, t as ma, v as R, w as ha, x as ga, y as ba, z as _a, A as xa, B as ya, C as Y, D as ka, E as wa, F as Ca, G as Re } from "./assets/modules/upload-template-KI-IFzyp.js";
2
- import { ac as Nl, S as Ml, ae as Ol, T as Bl, X as Al, ab as Rl, a9 as Ll, aa as zl, ad as Ul, $ as Vl, V as Yl, a7 as Kl, a4 as Wl, Q as jl, a6 as ql, W as Hl, I as Ql, a1 as Gl, a5 as Jl, a8 as Xl, R as Zl, U as er, af as ar, H as tr, a3 as lr, ag as rr, Z as sr, a0 as or, Y as nr, al as ir, ak as ur, ah as cr, J as dr, K as pr, ai as fr, N as vr, aj as mr, M as hr, a2 as gr } from "./assets/modules/upload-template-KI-IFzyp.js";
1
+ import { u as Pe, i as Z, a as he, L as la, c as ra, P as q, o as Fe, b as sa, d as oa, e as Ne, g as Me, r as ce, f as na, h as ia, j as Oe, k as ua, l as we, m as ca, _ as da, n as pa, O as Be, p as fa, q as Ae, s as va, t as ma, v as L, w as ha, x as ga, y as ba, z as _a, A as xa, B as ya, C as Y, D as ka, E as wa, F as Ca, G as Le } from "./assets/modules/upload-template-KI-IFzyp.js";
2
+ import { ac as Nl, S as Ml, ae as Ol, T as Bl, X as Al, ab as Ll, a9 as Rl, aa as zl, ad as Ul, $ as Vl, V as Yl, a7 as Kl, a4 as Wl, Q as jl, a6 as ql, W as Hl, I as Ql, a1 as Gl, a5 as Jl, a8 as Xl, R as Zl, U as er, af as ar, H as tr, a3 as lr, ag as rr, Z as sr, a0 as or, Y as nr, al as ir, ak as ur, ah as cr, J as dr, K as pr, ai as fr, N as vr, aj as mr, M as hr, a2 as gr } from "./assets/modules/upload-template-KI-IFzyp.js";
3
3
  import { A as _r, U as xr, p as yr } from "./assets/modules/file-upload-CNBcbAAZ.js";
4
4
  import { EnvConfig as Ce } from "@skyfox2000/microbase";
5
- import { FrontCache as oe, httpPost as Le, ResStatus as ze, SERVER_HOST as Sa, fieldMapping as ne } from "@skyfox2000/fapi";
5
+ import { FrontCache as oe, httpPost as Re, ResStatus as ze, SERVER_HOST as Sa, fieldMapping as ne } from "@skyfox2000/fapi";
6
6
  import le from "vue-m-message";
7
- import { defineComponent as S, createBlock as b, openBlock as v, withModifiers as ae, unref as r, useAttrs as X, withCtx as h, createElementVNode as D, createVNode as k, mergeProps as F, renderSlot as I, normalizeClass as E, toDisplayString as P, createCommentVNode as y, ref as _, provide as ge, watch as T, onMounted as K, createTextVNode as N, inject as ie, resolveDirective as re, withDirectives as H, computed as Q, createElementBlock as w, normalizeStyle as be, createSlots as Ue, useSlots as Ta, Fragment as O, renderList as z, resolveDynamicComponent as $a, onActivated as _e, shallowRef as Da, onUnmounted as Ia, withKeys as Se } from "vue";
7
+ import { defineComponent as S, createBlock as b, openBlock as m, withModifiers as ae, unref as r, useAttrs as X, withCtx as h, createElementVNode as D, createVNode as k, mergeProps as F, renderSlot as I, normalizeClass as E, toDisplayString as P, createCommentVNode as y, ref as _, provide as ge, watch as T, onMounted as K, createTextVNode as N, inject as ie, resolveDirective as re, withDirectives as H, computed as Q, createElementBlock as w, normalizeStyle as be, createSlots as Ue, useSlots as Ta, Fragment as O, renderList as z, resolveDynamicComponent as $a, onActivated as _e, shallowRef as Da, onUnmounted as Ia, withKeys as Se } from "vue";
8
8
  import "async-validator";
9
9
  import ve from "dayjs";
10
- import { Popover as Ea, theme as Ve, Drawer as Pa, Space as te, Form as Ye, message as Fa, FormItem as Ke, ConfigProvider as Te, Popconfirm as Na, Button as We, DropdownButton as Ma, Menu as xe, MenuItem as ye, Dropdown as me, Checkbox as Oa, Table as je, Tree as Ba, Cascader as Aa, DatePicker as Ra, Input as ee, InputPassword as La, InputNumber as za, RangePicker as Ua, Textarea as Va, TimePicker as Ya, Transfer as Ka, TreeSelect as Wa, LayoutContent as ja } from "ant-design-vue";
10
+ import { Popover as Ea, theme as Ve, Drawer as Pa, Space as te, Form as Ye, message as Fa, FormItem as Ke, ConfigProvider as Te, Popconfirm as Na, Button as We, DropdownButton as Ma, Menu as xe, MenuItem as ye, Dropdown as me, Checkbox as Oa, Table as je, Tree as Ba, Cascader as Aa, DatePicker as La, Input as ee, InputPassword as Ra, InputNumber as za, RangePicker as Ua, Textarea as Va, TimePicker as Ya, Transfer as Ka, TreeSelect as Wa, LayoutContent as ja } from "ant-design-vue";
11
11
  import { VueDraggableNext as qa } from "vue-draggable-next";
12
12
  import { d as Ha } from "./assets/modules/uploadList-DnFXg_B3.js";
13
13
  import { C as wr, U as Cr, a as Sr, p as Tr } from "./assets/modules/uploadList-DnFXg_B3.js";
14
14
  import { c as qe } from "./assets/modules/index-DOlO_4KL.js";
15
- import { _ as Dr, h as Ir, b as Er, a as Pr, d as Fr, e as Nr, g as Mr, f as Or, n as Br, p as Ar, t as Rr, v as Lr } from "./assets/modules/index-DOlO_4KL.js";
15
+ import { _ as Dr, h as Ir, b as Er, a as Pr, d as Fr, e as Nr, g as Mr, f as Or, n as Br, p as Ar, t as Lr, v as Rr } from "./assets/modules/index-DOlO_4KL.js";
16
16
  import { _ as A } from "./assets/modules/index-D14BsF7C.js";
17
17
  import { _ as U } from "./assets/modules/toolIcon-BnkqBipR.js";
18
18
  import { a as Ur } from "./assets/modules/toolIcon-BnkqBipR.js";
@@ -22,35 +22,35 @@ import { _ as G } from "./assets/modules/_plugin-vue_export-helper-CHgC5LLL.js";
22
22
  const $e = (l, t, e, a = "remove") => {
23
23
  if (!e)
24
24
  if (a === "disable") {
25
- const s = t.component;
26
- s ? s.props.disabled = !0 : (t.el, l.setAttribute("disabled", "disabled"), l.disabled = !0), l.classList.add("disabled");
25
+ const o = t.component;
26
+ o ? o.props.disabled = !0 : (t.el, l.setAttribute("disabled", "disabled"), l.disabled = !0), l.classList.add("disabled");
27
27
  } else {
28
- const s = document.createComment("No Permission"), u = l.parentNode;
28
+ const o = document.createComment("No Permission"), u = l.parentNode;
29
29
  if (u) {
30
30
  const n = t.component;
31
- n ? n.props.style = { display: "none" } : u.replaceChild(s, l);
31
+ n ? n.props.style = { display: "none" } : u.replaceChild(o, l);
32
32
  }
33
33
  }
34
34
  }, De = (l) => {
35
35
  var n, p;
36
- const t = Pe(), { url: e, role: a, permit: s } = l;
37
- if (Z(a) && Z(s))
36
+ const t = Pe(), { url: e, role: a, permit: o } = l;
37
+ if (Z(a) && Z(o))
38
38
  return !0;
39
39
  const u = e ?? ((p = (n = window.location.hash) == null ? void 0 : n.split("#")) == null ? void 0 : p[1]) ?? window.location.pathname;
40
40
  if (Ce.VITE_PERMISSION_MODE === "role")
41
41
  return Z(a) ? !0 : t.hasRole(a);
42
42
  if (Ce.VITE_PERMISSION_MODE === "permit") {
43
43
  let d = !1, i = !1;
44
- return Z(a) || (d = t.hasRole(a)), t.isAdmin() ? d : (Z(s) || (i = t.hasPermit(u, s)), d || i);
44
+ return Z(a) || (d = t.hasRole(a)), t.isAdmin() ? d : (Z(o) || (i = t.hasPermit(u, o)), d || i);
45
45
  }
46
46
  return !1;
47
47
  }, Qa = {
48
48
  mounted(l, t, e) {
49
- const a = t.value || {}, s = t.arg || "remove", u = a.behavior || s, n = De(a);
49
+ const a = t.value || {}, o = t.arg || "remove", u = a.behavior || o, n = De(a);
50
50
  $e(l, e, n, u);
51
51
  },
52
52
  updated(l, t, e) {
53
- const a = t.value || {}, s = t.arg || "remove", u = a.behavior || s, n = De(a);
53
+ const a = t.value || {}, o = t.arg || "remove", u = a.behavior || o, n = De(a);
54
54
  $e(l, e, n, u);
55
55
  }
56
56
  }, Ga = {
@@ -74,12 +74,12 @@ const $e = (l, t, e, a = "remove") => {
74
74
  return e;
75
75
  for (const a of l)
76
76
  if (a.children) {
77
- const s = W(a.children, t);
78
- if (s)
79
- return s;
77
+ const o = W(a.children, t);
78
+ if (o)
79
+ return o;
80
80
  }
81
81
  }, ke = (l, t, e) => {
82
- const a = [], s = [];
82
+ const a = [], o = [];
83
83
  return e || (e = [...l]), e.length && e.forEach((u, n) => {
84
84
  let p;
85
85
  if (typeof u == "string") {
@@ -93,8 +93,8 @@ const $e = (l, t, e, a = "remove") => {
93
93
  i && (i.rowData.value = f), p.formVisible ? (p.formVisible.value = !1, setTimeout(() => {
94
94
  p.formVisible.value = !0;
95
95
  }, 1)) : le.warning("未配置点击处理事件!");
96
- }), t === 0 || n < t ? a.push(p) : s.push(p);
97
- }), { buttons: a, menus: s };
96
+ }), t === 0 || n < t ? a.push(p) : o.push(p);
97
+ }), { buttons: a, menus: o };
98
98
  }, j = (l, t) => l.disabled && typeof l.disabled == "function" ? l.disabled(t) : l.disabled, J = (l, t) => l.visible && typeof l.visible == "function" ? l.visible(t) : l.visible ?? !0, Ja = (l, t) => {
99
99
  t.reload.value = !0;
100
100
  }, Xa = (l, t) => {
@@ -117,8 +117,8 @@ const $e = (l, t, e, a = "remove") => {
117
117
  t.rowExpand.value = !t.rowExpand.value;
118
118
  }, Ie = (l, t) => {
119
119
  t.selectable.value = !t.selectable.value;
120
- }, V = (l, t, e, a, s) => {
121
- (!l.confirm || s) && l.click && (t ? l.click(t, e, a) : l.click(null, e, a)), lt(l);
120
+ }, V = (l, t, e, a, o) => {
121
+ (!l.confirm || o) && l.click && (t ? l.click(t, e, a) : l.click(null, e, a)), lt(l);
122
122
  }, tt = (l, t) => {
123
123
  t.selectable.value = !t.selectable.value;
124
124
  }, He = () => {
@@ -227,11 +227,11 @@ class Qe {
227
227
  * 设置缓存数据(带服务器时间)
228
228
  */
229
229
  static setWithServerTime(t, e, a) {
230
- const s = {
230
+ const o = {
231
231
  data: e,
232
232
  lastTime: a
233
233
  };
234
- oe.set({ key: t, storage: "local" }, s);
234
+ oe.set({ key: t, storage: "local" }, o);
235
235
  }
236
236
  /**
237
237
  * 设置缓存数据
@@ -279,7 +279,7 @@ class Qe {
279
279
  }
280
280
  async function tl() {
281
281
  try {
282
- const l = await Le(
282
+ const l = await Re(
283
283
  {
284
284
  api: "PLATFORM_API",
285
285
  url: "/api/SysCacheSvr/getLastTime",
@@ -322,12 +322,12 @@ const ll = async (l, t) => {
322
322
  throw new Error(e.error || "CSV转Excel失败");
323
323
  }, rl = async (l, t) => {
324
324
  try {
325
- const a = new TextDecoder("utf-8").decode(l), s = await qe(a, t);
325
+ const a = new TextDecoder("utf-8").decode(l), o = await qe(a, t);
326
326
  return {
327
- success: s.success,
328
- blobUrl: s.blobUrl,
329
- fileName: s.fileName,
330
- error: s.error,
327
+ success: o.success,
328
+ blobUrl: o.blobUrl,
329
+ fileName: o.fileName,
330
+ error: o.error,
331
331
  csvContent: a
332
332
  // 保留原始CSV内容
333
333
  };
@@ -341,26 +341,26 @@ const ll = async (l, t) => {
341
341
  label: t.title,
342
342
  value: Ge(t.dataIndex) || t.key || ""
343
343
  })), Xe = (l, t) => l.map((e, a) => {
344
- const s = { ...e };
344
+ const o = { ...e };
345
345
  return t.forEach((u) => {
346
346
  const n = Ge(u.dataIndex) || u.key;
347
- n && u.customRender && (s[n] = u.customRender({
347
+ n && u.customRender && (o[n] = u.customRender({
348
348
  text: e[n],
349
349
  record: e,
350
350
  index: a,
351
351
  column: u
352
352
  }));
353
- }), s;
353
+ }), o;
354
354
  }), Ze = async (l, t, e) => {
355
355
  try {
356
- const s = (await import("@json2csv/plainjs")).Parser, n = new s({ fields: t }).parse(e), p = new Blob([`\uFEFF${n}`], { type: "text/csv" });
356
+ const o = (await import("@json2csv/plainjs")).Parser, n = new o({ fields: t }).parse(e), p = new Blob([`\uFEFF${n}`], { type: "text/csv" });
357
357
  Ha(p, l);
358
358
  } catch (a) {
359
359
  console.error("导出失败:", a), le.error("文件导出失败,请稍后重试");
360
360
  }
361
361
  }, sl = async (l, t, e) => {
362
362
  try {
363
- const a = ea(l), s = t.filter((p) => p.visible !== !1 && p.export !== !1), u = Je(s), n = Xe(e, s);
363
+ const a = ea(l), o = t.filter((p) => p.visible !== !1 && p.export !== !1), u = Je(o), n = Xe(e, o);
364
364
  await Ze(a, u, n);
365
365
  } catch (a) {
366
366
  console.error("导出失败:", a), le.error("文件导出失败,请稍后重试");
@@ -370,28 +370,28 @@ const ll = async (l, t) => {
370
370
  return l.replace(t, (e, a) => ve().format(a));
371
371
  }, ol = async (l, t, e, a) => {
372
372
  try {
373
- const s = ea(l), u = t.filter((i) => i.visible !== !1), n = Je(u);
373
+ const o = ea(l), u = t.filter((i) => i.visible !== !1), n = Je(u);
374
374
  let p = e.page, d = e.gridQuery;
375
- return a.api || (a.api = p.api), a.authorize === void 0 && (a.authorize = p.authorize), e.isGridLoading.value = !0, Le(a, d).then(async (i) => {
375
+ return a.api || (a.api = p.api), a.authorize === void 0 && (a.authorize = p.authorize), e.isGridLoading.value = !0, Re(a, d).then(async (i) => {
376
376
  if (e.isGridLoading.value = !1, (i == null ? void 0 : i.status) === ze.SUCCESS) {
377
377
  if (i.data) {
378
378
  let f = i.data;
379
- const o = Xe(f, u);
380
- await Ze(s, n, o);
379
+ const s = Xe(f, u);
380
+ await Ze(o, n, s);
381
381
  }
382
382
  } else if ((i == null ? void 0 : i.errno) == la) {
383
383
  Pe().logout(!1);
384
384
  return;
385
385
  }
386
386
  });
387
- } catch (s) {
388
- console.error("导出失败:", s), le.error("文件导出失败,请稍后重试");
387
+ } catch (o) {
388
+ console.error("导出失败:", o), le.error("文件导出失败,请稍后重试");
389
389
  }
390
390
  }, nl = /* @__PURE__ */ S({
391
391
  __name: "fullscreen",
392
392
  setup(l) {
393
393
  const t = he();
394
- return (e, a) => (v(), b(U, {
394
+ return (e, a) => (m(), b(U, {
395
395
  onClick: ae(r(He), ["stop"]),
396
396
  icon: r(t).fullscreen ? "icon-exitscreen" : "icon-fullscreen",
397
397
  class: "w-[17px] h-[17px]"
@@ -408,7 +408,7 @@ const ll = async (l, t) => {
408
408
  },
409
409
  setup(l) {
410
410
  const t = X();
411
- return (e, a) => (v(), b(r(Ea), {
411
+ return (e, a) => (m(), b(r(Ea), {
412
412
  placement: e.placement ?? "topRight"
413
413
  }, {
414
414
  content: h(() => [
@@ -446,12 +446,12 @@ const ll = async (l, t) => {
446
446
  icon: t.icon,
447
447
  icons: t.icons
448
448
  });
449
- return (s, u) => l.icon || l.icons ? (v(), b(r(a), F({
449
+ return (o, u) => l.icon || l.icons ? (m(), b(r(a), F({
450
450
  key: 0,
451
451
  icon: l.icon,
452
452
  icons: l.icons,
453
453
  class: ["align-middle"]
454
- }, s.$attrs), null, 16, ["icon", "icons"])) : y("", !0);
454
+ }, o.$attrs), null, 16, ["icon", "icons"])) : y("", !0);
455
455
  }
456
456
  }), ut = { class: "hover:bg-gray-200 w-[24px] h-[24px] rounded-md" }, ul = /* @__PURE__ */ S({
457
457
  __name: "index",
@@ -464,7 +464,7 @@ const ll = async (l, t) => {
464
464
  drawerSaveAs: { type: Function }
465
465
  },
466
466
  setup(l) {
467
- const { useToken: t } = Ve, { token: e } = t(), a = _(!1), s = l, u = s.editorCtrl;
467
+ const { useToken: t } = Ve, { token: e } = t(), a = _(!1), o = l, u = o.editorCtrl;
468
468
  ge(q.EditorControl, u), T(
469
469
  () => u.visible.value,
470
470
  (i) => {
@@ -474,15 +474,15 @@ const ll = async (l, t) => {
474
474
  a.value = u.visible.value ?? !1;
475
475
  });
476
476
  const n = () => {
477
- s.drawerSave ? s.drawerSave() : u && Fe(u);
477
+ o.drawerSave ? o.drawerSave() : u && Fe(u);
478
478
  }, p = () => {
479
- s.drawerSaveAs ? s.drawerSaveAs() : u && sa(u);
479
+ o.drawerSaveAs ? o.drawerSaveAs() : u && sa(u);
480
480
  }, d = () => {
481
481
  oa(u);
482
482
  };
483
- return (i, f) => (v(), b(r(Pa), {
483
+ return (i, f) => (m(), b(r(Pa), {
484
484
  open: a.value,
485
- "onUpdate:open": f[0] || (f[0] = (o) => a.value = o),
485
+ "onUpdate:open": f[0] || (f[0] = (s) => a.value = s),
486
486
  "get-container": !1,
487
487
  closable: !1,
488
488
  "header-style": {
@@ -526,7 +526,7 @@ const ll = async (l, t) => {
526
526
  I(i.$slots, "footer", {}, () => [
527
527
  k(r(te), null, {
528
528
  default: h(() => [
529
- i.cancelText !== "" ? (v(), b(r(A), {
529
+ i.cancelText !== "" ? (m(), b(r(A), {
530
530
  key: 0,
531
531
  onClick: d
532
532
  }, {
@@ -535,7 +535,7 @@ const ll = async (l, t) => {
535
535
  ]),
536
536
  _: 1
537
537
  })) : y("", !0),
538
- i.saveAsText !== "" && r(u).saveAsBtnVisible !== !1 ? (v(), b(r(A), {
538
+ i.saveAsText !== "" && r(u).saveAsBtnVisible !== !1 ? (m(), b(r(A), {
539
539
  key: 1,
540
540
  onClick: p,
541
541
  type: "primary",
@@ -546,7 +546,7 @@ const ll = async (l, t) => {
546
546
  ]),
547
547
  _: 1
548
548
  }, 8, ["loading"])) : y("", !0),
549
- i.saveText !== "" && r(u).saveBtnVisible !== !1 ? (v(), b(r(A), {
549
+ i.saveText !== "" && r(u).saveBtnVisible !== !1 ? (m(), b(r(A), {
550
550
  key: 2,
551
551
  onClick: n,
552
552
  type: "primary",
@@ -574,9 +574,9 @@ const ll = async (l, t) => {
574
574
  },
575
575
  setup(l) {
576
576
  const t = l, e = t.editorCtrl ?? ie(q.EditorControl, void 0);
577
- return ge(q.LabelWidth, t.labelWidth), (a, s) => {
577
+ return ge(q.LabelWidth, t.labelWidth), (a, o) => {
578
578
  const u = re("submit");
579
- return H((v(), b(r(Ye), {
579
+ return H((m(), b(r(Ye), {
580
580
  "label-col": { flex: t.labelWidth ?? "85px" },
581
581
  "wrapper-col": {
582
582
  flex: t.wrapperWidth ?? "1 0 280px"
@@ -615,7 +615,7 @@ const ll = async (l, t) => {
615
615
  bottomMargin: {}
616
616
  },
617
617
  setup(l) {
618
- const t = l, e = X(), a = ie(q.EditorControl, void 0), s = ie(q.LabelWidth, "85px") ?? "85px", u = Ne(t, a), n = _(!1);
618
+ const t = l, e = X(), a = ie(q.EditorControl, void 0), o = ie(q.LabelWidth, "85px") ?? "85px", u = Ne(t, a), n = _(!1);
619
619
  setTimeout(() => {
620
620
  n.value = !0;
621
621
  }, 30);
@@ -626,10 +626,10 @@ const ll = async (l, t) => {
626
626
  const d = Me(t.rule.split("."), (i = a == null ? void 0 : a.formRules) == null ? void 0 : i.value);
627
627
  return d ? (d.required || (u.value.errClass = "", u.value.msg = ""), d.required ?? !0) : (Fa.error(`"${t.label}" 的验证规则 \`${t.rule}\` 不存在`), u.value.errClass = "text-[#ff4d4f]", u.value.msg = `规则 \`${t.rule}\` 不存在,请检查代码!`, !0);
628
628
  });
629
- return (d, i) => (v(), w("div", {
629
+ return (d, i) => (m(), w("div", {
630
630
  class: E(["relative", d.bottomMargin ? d.bottomMargin : "mb-1"])
631
631
  }, [
632
- n.value ? (v(), b(r(Ke), F({
632
+ n.value ? (m(), b(r(Ke), F({
633
633
  key: 0,
634
634
  required: p.value,
635
635
  class: ["relative", [d.nextLine ? "mb-0" : d.rule ? "" : "mb-3"]]
@@ -643,12 +643,12 @@ const ll = async (l, t) => {
643
643
  D("div", {
644
644
  class: E(["flex items-center", d.width ? d.width : "w-full"])
645
645
  }, [
646
- d.nextLine ? y("", !0) : (v(), w("div", ct, [
646
+ d.nextLine ? y("", !0) : (m(), w("div", ct, [
647
647
  I(d.$slots, "default")
648
648
  ])),
649
649
  D("div", dt, [
650
650
  I(d.$slots, "helper", {}, () => [
651
- d.helper ? (v(), b(r(it), {
651
+ d.helper ? (m(), b(r(it), {
652
652
  key: 0,
653
653
  text: d.helper
654
654
  }, null, 8, ["text"])) : y("", !0)
@@ -658,15 +658,15 @@ const ll = async (l, t) => {
658
658
  ]),
659
659
  _: 3
660
660
  }, 16, ["required", "class"])) : y("", !0),
661
- d.nextLine ? (v(), w("div", {
661
+ d.nextLine ? (m(), w("div", {
662
662
  key: 1,
663
663
  class: E(["w-[95%] flex items-center relative", [d.nextLine ? d.rule ? "mb-7" : "mb-3" : ""]])
664
664
  }, [
665
665
  I(d.$slots, "default")
666
666
  ], 2)) : y("", !0),
667
- r(u).errClass ? (v(), w("span", {
667
+ r(u).errClass ? (m(), w("span", {
668
668
  key: 2,
669
- style: be({ left: d.nextLine ? "2px" : r(s) }),
669
+ style: be({ left: d.nextLine ? "2px" : r(o) }),
670
670
  class: "absolute bottom-[3px] text-[12px] text-[#ff4d4fcc]"
671
671
  }, P(r(u).msg), 5)) : y("", !0)
672
672
  ], 2));
@@ -683,14 +683,14 @@ const ll = async (l, t) => {
683
683
  rule: {}
684
684
  },
685
685
  setup(l) {
686
- const t = l, e = X(), a = ie(q.EditorControl, void 0), s = Ne(t, a), u = Q(() => {
686
+ const t = l, e = X(), a = ie(q.EditorControl, void 0), o = Ne(t, a), u = Q(() => {
687
687
  var p;
688
688
  if (!t.rule)
689
689
  return !1;
690
690
  const n = Me(t.rule.split("."), (p = a == null ? void 0 : a.formRules) == null ? void 0 : p.value);
691
- return n ? (n.required || (s.value.errClass = "", s.value.msg = ""), n.required ?? !0) : (le.error(`"${t.label}" 的验证规则 \`${t.rule}\` 不存在`), s.value.errClass = "text-[#ff4d4f]", s.value.msg = `规则 \`${t.rule}\` 不存在,请检查代码!`, !0);
691
+ return n ? (n.required || (o.value.errClass = "", o.value.msg = ""), n.required ?? !0) : (le.error(`"${t.label}" 的验证规则 \`${t.rule}\` 不存在`), o.value.errClass = "text-[#ff4d4f]", o.value.msg = `规则 \`${t.rule}\` 不存在,请检查代码!`, !0);
692
692
  });
693
- return (n, p) => (v(), w("div", pt, [
693
+ return (n, p) => (m(), w("div", pt, [
694
694
  k(r(Ke), F({
695
695
  required: u.value,
696
696
  class: "w-[90%] relative"
@@ -711,13 +711,13 @@ const ll = async (l, t) => {
711
711
  name: "label",
712
712
  fn: h(() => [
713
713
  D("span", {
714
- class: E([r(s).errClass ? "text-[#ff4d4f]" : "", "w-full"])
714
+ class: E([r(o).errClass ? "text-[#ff4d4f]" : "", "w-full"])
715
715
  }, P(n.label), 3)
716
716
  ]),
717
717
  key: "0"
718
718
  } : void 0
719
719
  ]), 1040, ["required", "class"]),
720
- r(s).msg ? (v(), w("span", mt, P(r(s).msg), 1)) : y("", !0)
720
+ r(o).msg ? (m(), w("span", mt, P(r(o).msg), 1)) : y("", !0)
721
721
  ]));
722
722
  }
723
723
  }), pl = /* @__PURE__ */ S({
@@ -729,13 +729,13 @@ const ll = async (l, t) => {
729
729
  },
730
730
  emits: ["update:search", "onsearch", "onreset"],
731
731
  setup(l, { emit: t }) {
732
- const e = l, a = t, s = _(0), u = _(0), n = _(0), p = (c) => {
732
+ const e = l, a = t, o = _(0), u = _(0), n = _(0), p = (c) => {
733
733
  let g = 0;
734
734
  for (let C = 0; C < c.length; C++)
735
735
  typeof c[C].type == "object" && g++;
736
736
  return g;
737
737
  }, d = Ta(), i = () => {
738
- u.value = 0, n.value = 0, d.default && (u.value = p(d.default({}))), e.gridCtrl && e.gridCtrl.searchBar && d.control && (n.value = p(d.control({}))), s.value = 2 - (u.value + n.value) % 3;
738
+ u.value = 0, n.value = 0, d.default && (u.value = p(d.default({}))), e.gridCtrl && e.gridCtrl.searchBar && d.control && (n.value = p(d.control({}))), o.value = 2 - (u.value + n.value) % 3;
739
739
  };
740
740
  T(
741
741
  () => {
@@ -759,7 +759,7 @@ const ll = async (l, t) => {
759
759
  }
760
760
  });
761
761
  });
762
- const o = () => {
762
+ const s = () => {
763
763
  var g;
764
764
  let c = { ...e.search };
765
765
  if (e.likeFields)
@@ -772,7 +772,7 @@ const ll = async (l, t) => {
772
772
  ...c
773
773
  }
774
774
  }, e.gridCtrl.pageNo.value = 1, e.gridCtrl.reload.value = !0), a("onsearch", c);
775
- }, m = () => {
775
+ }, v = () => {
776
776
  const c = JSON.parse(JSON.stringify(f));
777
777
  for (const g in e.search)
778
778
  c[g] === void 0 && (c[g] = void 0);
@@ -780,7 +780,7 @@ const ll = async (l, t) => {
780
780
  };
781
781
  return (c, g) => {
782
782
  const C = re("submit");
783
- return u.value + n.value > 0 ? H((v(), b(r(Ye), {
783
+ return u.value + n.value > 0 ? H((m(), b(r(Ye), {
784
784
  key: 0,
785
785
  "label-col": { flex: "60px" },
786
786
  style: {
@@ -794,15 +794,15 @@ const ll = async (l, t) => {
794
794
  return [
795
795
  I(c.$slots, "default"),
796
796
  ($ = c.gridCtrl) != null && $.searchBar ? I(c.$slots, "control", { key: 0 }) : y("", !0),
797
- s.value >= 1 ? (v(), b(fe, {
797
+ o.value >= 1 ? (m(), b(fe, {
798
798
  key: 1,
799
799
  class: "w-1/3"
800
800
  })) : y("", !0),
801
- s.value >= 2 ? (v(), b(fe, {
801
+ o.value >= 2 ? (m(), b(fe, {
802
802
  key: 2,
803
803
  class: "w-1/3"
804
804
  })) : y("", !0),
805
- u.value || (M = c.gridCtrl) != null && M.searchBar ? (v(), b(fe, {
805
+ u.value || (M = c.gridCtrl) != null && M.searchBar ? (m(), b(fe, {
806
806
  key: 3,
807
807
  class: "w-1/3 flex justify-end text-right pr-5",
808
808
  "wrapper-col": { flex: "auto" }
@@ -812,7 +812,7 @@ const ll = async (l, t) => {
812
812
  default: h(() => [
813
813
  k(r(A), {
814
814
  type: "primary",
815
- onClick: o,
815
+ onClick: s,
816
816
  icon: "icon-search"
817
817
  }, {
818
818
  default: h(() => g[0] || (g[0] = [
@@ -822,7 +822,7 @@ const ll = async (l, t) => {
822
822
  __: [0]
823
823
  }),
824
824
  k(r(A), {
825
- onClick: m,
825
+ onClick: v,
826
826
  icon: "icon-reset"
827
827
  }, {
828
828
  default: h(() => g[1] || (g[1] = [
@@ -841,7 +841,7 @@ const ll = async (l, t) => {
841
841
  }),
842
842
  _: 3
843
843
  })), [
844
- [C, o]
844
+ [C, s]
845
845
  ]) : y("", !0);
846
846
  };
847
847
  }
@@ -852,7 +852,7 @@ const ll = async (l, t) => {
852
852
  gridCtrl: {}
853
853
  },
854
854
  setup(l) {
855
- const t = l, e = t.gridCtrl, a = Q(() => ce.currentRoute.value.path), s = [
855
+ const t = l, e = t.gridCtrl, a = Q(() => ce.currentRoute.value.path), o = [
856
856
  {
857
857
  key: "Edit",
858
858
  label: "编辑",
@@ -874,7 +874,7 @@ const ll = async (l, t) => {
874
874
  confirmText: "是否删除此记录?",
875
875
  click: () => ia(e, t.record)
876
876
  }
877
- ], { buttons: u, menus: n } = ke(s, 0, e.operates), p = (d) => {
877
+ ], { buttons: u, menus: n } = ke(o, 0, e.operates), p = (d) => {
878
878
  if (typeof d.disabled == "boolean")
879
879
  return d.disabled;
880
880
  if (typeof d.disabled == "function")
@@ -890,7 +890,7 @@ const ll = async (l, t) => {
890
890
  };
891
891
  return (d, i) => {
892
892
  const f = re("auth");
893
- return v(), b(r(Te), { theme: {
893
+ return m(), b(r(Te), { theme: {
894
894
  token: {
895
895
  fontSize: 13
896
896
  }
@@ -898,68 +898,68 @@ const ll = async (l, t) => {
898
898
  default: h(() => [
899
899
  k(r(te), null, {
900
900
  default: h(() => [
901
- (v(!0), w(O, null, z(r(u), (o) => (v(), w(O, {
902
- key: o.key
901
+ (m(!0), w(O, null, z(r(u), (s) => (m(), w(O, {
902
+ key: s.key
903
903
  }, [
904
- r(J)(o, t.record) ? (v(), b(r(Na), {
904
+ r(J)(s, t.record) ? (m(), b(r(Na), {
905
905
  key: 0,
906
- disabled: p(o) || !o.confirm,
906
+ disabled: p(s) || !s.confirm,
907
907
  cancelText: "否",
908
908
  okText: "是",
909
- title: o.confirmText,
909
+ title: s.confirmText,
910
910
  okButtonProps: { size: "small" },
911
911
  cancelButtonProps: { size: "small" },
912
- onConfirm: (m) => r(V)(o, r(e).page, r(e), t.record, !0)
912
+ onConfirm: (v) => r(V)(s, r(e).page, r(e), t.record, !0)
913
913
  }, {
914
914
  default: h(() => [
915
- r(J)(o, t.record) ? H((v(), b(r(We), {
916
- key: o.key,
917
- type: o.type ?? "text",
918
- danger: o.danger,
919
- disabled: p(o),
920
- onClick: (m) => r(V)(o, r(e).page, r(e), t.record),
915
+ r(J)(s, t.record) ? H((m(), b(r(We), {
916
+ key: s.key,
917
+ type: s.type ?? "text",
918
+ danger: s.danger,
919
+ disabled: p(s),
920
+ onClick: (v) => r(V)(s, r(e).page, r(e), t.record),
921
921
  size: "small",
922
922
  style: be({
923
- padding: o.type ?? "0px 4px"
923
+ padding: s.type ?? "0px 4px"
924
924
  })
925
925
  }, {
926
926
  default: h(() => [
927
- N(P(o.label), 1)
927
+ N(P(s.label), 1)
928
928
  ]),
929
929
  _: 2
930
930
  }, 1032, ["type", "danger", "disabled", "onClick", "style"])), [
931
- [f, { url: a.value, role: o.role, permit: o.permit }]
931
+ [f, { url: a.value, role: s.role, permit: s.permit }]
932
932
  ]) : y("", !0)
933
933
  ]),
934
934
  _: 2
935
935
  }, 1032, ["disabled", "title", "onConfirm"])) : y("", !0)
936
936
  ], 64))), 128)),
937
- d.record.Enabled == 1 ? (v(), b(r(Te), {
937
+ d.record.Enabled == 1 ? (m(), b(r(Te), {
938
938
  key: 0,
939
939
  autoInsertSpaceInButton: !1
940
940
  }, {
941
941
  default: h(() => [
942
- r(n).length > 0 ? (v(), b(r(Ma), {
942
+ r(n).length > 0 ? (m(), b(r(Ma), {
943
943
  key: 0,
944
944
  size: "small"
945
945
  }, {
946
946
  overlay: h(() => [
947
947
  k(r(xe), null, {
948
948
  default: h(() => [
949
- (v(!0), w(O, null, z(r(n), (o) => (v(), w(O, {
950
- key: o.key
949
+ (m(!0), w(O, null, z(r(n), (s) => (m(), w(O, {
950
+ key: s.key
951
951
  }, [
952
- r(J)(o, t.record) ? H((v(), b(r(ye), {
952
+ r(J)(s, t.record) ? H((m(), b(r(ye), {
953
953
  key: 0,
954
- disabled: p(o),
955
- onClick: (m) => r(V)(o, r(e).page, r(e), t.record)
954
+ disabled: p(s),
955
+ onClick: (v) => r(V)(s, r(e).page, r(e), t.record)
956
956
  }, {
957
957
  default: h(() => [
958
- N(P(o.label), 1)
958
+ N(P(s.label), 1)
959
959
  ]),
960
960
  _: 2
961
961
  }, 1032, ["disabled", "onClick"])), [
962
- [f, { url: a.value, role: o.role, permit: o.permit }]
962
+ [f, { url: a.value, role: s.role, permit: s.permit }]
963
963
  ]) : y("", !0)
964
964
  ], 64))), 128))
965
965
  ]),
@@ -989,7 +989,7 @@ const ll = async (l, t) => {
989
989
  gridCtrl: {}
990
990
  },
991
991
  setup(l) {
992
- const t = l, e = t.gridCtrl, { tools: a } = st(t.gridCtrl), s = he();
992
+ const t = l, e = t.gridCtrl, { tools: a } = st(t.gridCtrl), o = he();
993
993
  T(
994
994
  () => e.selectable.value,
995
995
  (p) => {
@@ -1005,13 +1005,13 @@ const ll = async (l, t) => {
1005
1005
  { deep: !0, immediate: !0 }
1006
1006
  );
1007
1007
  const n = () => {
1008
- e.columns.value.splice(0, e.columns.value.length, ...u.value), s.setTableColumns(ce.currentRoute.value.path, e.columns.value);
1008
+ e.columns.value.splice(0, e.columns.value.length, ...u.value), o.setTableColumns(ce.currentRoute.value.path, e.columns.value);
1009
1009
  };
1010
- return (p, d) => (v(), w("div", gt, [
1011
- (v(!0), w(O, null, z(r(a), (i, f) => (v(), w(O, {
1010
+ return (p, d) => (m(), w("div", gt, [
1011
+ (m(!0), w(O, null, z(r(a), (i, f) => (m(), w(O, {
1012
1012
  key: i.key
1013
1013
  }, [
1014
- r(J)(i) && i.dropdown ? (v(), b(r(me), {
1014
+ r(J)(i) && i.dropdown ? (m(), b(r(me), {
1015
1015
  key: 0,
1016
1016
  placement: "bottomRight",
1017
1017
  class: "p-0 rounded-none"
@@ -1020,34 +1020,34 @@ const ll = async (l, t) => {
1020
1020
  D("div", {
1021
1021
  class: E(["min-w-[100px] bg-white rounded shadow-md p-4", i.dropdownClass])
1022
1022
  }, [
1023
- i.dropdown === "headset" ? (v(), b(r(qa), {
1023
+ i.dropdown === "headset" ? (m(), b(r(qa), {
1024
1024
  key: 0,
1025
1025
  modelValue: u.value,
1026
- "onUpdate:modelValue": d[1] || (d[1] = (o) => u.value = o),
1026
+ "onUpdate:modelValue": d[1] || (d[1] = (s) => u.value = s),
1027
1027
  "item-key": "dataIndex",
1028
1028
  onEnd: n,
1029
1029
  handle: ".drag-handle"
1030
1030
  }, {
1031
1031
  default: h(() => [
1032
- (v(!0), w(O, null, z(u.value, (o) => (v(), w("div", {
1033
- key: o.name,
1032
+ (m(!0), w(O, null, z(u.value, (s) => (m(), w("div", {
1033
+ key: s.name,
1034
1034
  onClick: d[0] || (d[0] = ae(() => {
1035
1035
  }, ["stop"])),
1036
1036
  class: "flex items-center mb-2 last:mb-0 select-none"
1037
1037
  }, [
1038
1038
  d[2] || (d[2] = D("span", { class: "drag-handle mr-2 text-gray-400 hover:text-gray-600 cursor-move" }, "⋮⋮", -1)),
1039
1039
  k(r(Oa), {
1040
- checked: o.visible !== !1,
1040
+ checked: s.visible !== !1,
1041
1041
  onChange: ae(
1042
- (m) => {
1043
- r(rt)(o, m.target.checked);
1042
+ (v) => {
1043
+ r(rt)(s, v.target.checked);
1044
1044
  },
1045
1045
  ["stop", "prevent"]
1046
1046
  ),
1047
1047
  class: "text-gray-700 hover:text-gray-900 select-none"
1048
1048
  }, {
1049
1049
  default: h(() => [
1050
- N(P(o.title), 1)
1050
+ N(P(s.title), 1)
1051
1051
  ]),
1052
1052
  _: 2
1053
1053
  }, 1032, ["checked", "onChange"])
@@ -1066,7 +1066,7 @@ const ll = async (l, t) => {
1066
1066
  ]),
1067
1067
  disabled: r(j)(i),
1068
1068
  tiptext: i.label,
1069
- onClick: (o) => r(V)(i, r(e).page, r(e))
1069
+ onClick: (s) => r(V)(i, r(e).page, r(e))
1070
1070
  }, {
1071
1071
  default: h(() => [
1072
1072
  k(r(U), {
@@ -1079,7 +1079,7 @@ const ll = async (l, t) => {
1079
1079
  }, 1032, ["class", "disabled", "tiptext", "onClick"])
1080
1080
  ]),
1081
1081
  _: 2
1082
- }, 1024)) : !i.children && r(J)(i) ? (v(), b(r(A), {
1082
+ }, 1024)) : !i.children && r(J)(i) ? (m(), b(r(A), {
1083
1083
  key: 1,
1084
1084
  class: E([
1085
1085
  "px-[8px] py-[2px] relative border-[#ccc] bg-[#fcfcfc] rounded-none text-[#666] hover:z-10",
@@ -1088,7 +1088,7 @@ const ll = async (l, t) => {
1088
1088
  ]),
1089
1089
  disabled: r(j)(i),
1090
1090
  tiptext: i.label,
1091
- onClick: (o) => r(V)(i, r(e).page, r(e))
1091
+ onClick: (s) => r(V)(i, r(e).page, r(e))
1092
1092
  }, {
1093
1093
  default: h(() => [
1094
1094
  k(r(U), {
@@ -1098,7 +1098,7 @@ const ll = async (l, t) => {
1098
1098
  }, null, 8, ["icon"])
1099
1099
  ]),
1100
1100
  _: 2
1101
- }, 1032, ["class", "disabled", "tiptext", "onClick"])) : r(J)(i) ? (v(), b(r(me), {
1101
+ }, 1032, ["class", "disabled", "tiptext", "onClick"])) : r(J)(i) ? (m(), b(r(me), {
1102
1102
  key: 2,
1103
1103
  placement: "bottomRight",
1104
1104
  class: "p-0 rounded-none"
@@ -1106,12 +1106,12 @@ const ll = async (l, t) => {
1106
1106
  overlay: h(() => [
1107
1107
  k(r(xe), null, {
1108
1108
  default: h(() => [
1109
- (v(!0), w(O, null, z(i.children, (o) => (v(), b(r(ye), {
1110
- key: o.key,
1111
- disabled: r(j)(o)
1109
+ (m(!0), w(O, null, z(i.children, (s) => (m(), b(r(ye), {
1110
+ key: s.key,
1111
+ disabled: r(j)(s)
1112
1112
  }, {
1113
1113
  default: h(() => [
1114
- N(P(o.label), 1)
1114
+ N(P(s.label), 1)
1115
1115
  ]),
1116
1116
  _: 2
1117
1117
  }, 1032, ["disabled"]))), 128))
@@ -1129,7 +1129,7 @@ const ll = async (l, t) => {
1129
1129
  tiptext: i.label,
1130
1130
  icon: i.icon,
1131
1131
  iconProps: { class: "w-[19px] h-[19px]" },
1132
- onClick: (o) => r(V)(i, r(e).page, r(e))
1132
+ onClick: (s) => r(V)(i, r(e).page, r(e))
1133
1133
  }, {
1134
1134
  default: h(() => [
1135
1135
  k(r(U), {
@@ -1152,7 +1152,7 @@ const ll = async (l, t) => {
1152
1152
  editorCtrl: {}
1153
1153
  },
1154
1154
  setup(l) {
1155
- const t = l, e = t.gridCtrl, a = e.page, s = t.editorCtrl, u = Q(() => ce.currentRoute.value.path), n = [
1155
+ const t = l, e = t.gridCtrl, a = e.page, o = t.editorCtrl, u = Q(() => ce.currentRoute.value.path), n = [
1156
1156
  {
1157
1157
  key: "New",
1158
1158
  label: "新增",
@@ -1162,7 +1162,7 @@ const ll = async (l, t) => {
1162
1162
  role: ["Super", "Admin"],
1163
1163
  permit: ":new",
1164
1164
  // 默认仅受权限码控制
1165
- click: () => ua(s)
1165
+ click: () => ua(o)
1166
1166
  }
1167
1167
  ], p = _([]), d = _([]);
1168
1168
  return T(
@@ -1171,11 +1171,11 @@ const ll = async (l, t) => {
1171
1171
  return (i = e.buttons) == null ? void 0 : i.value;
1172
1172
  },
1173
1173
  () => {
1174
- var o;
1174
+ var s;
1175
1175
  const { buttons: i, menus: f } = ke(
1176
1176
  n,
1177
1177
  e.flat !== void 0 ? e.flat : yt,
1178
- (o = e.buttons) == null ? void 0 : o.value
1178
+ (s = e.buttons) == null ? void 0 : s.value
1179
1179
  );
1180
1180
  p.value.splice(0, p.value.length, ...i), d.value.splice(0, d.value.length, ...f);
1181
1181
  },
@@ -1184,40 +1184,40 @@ const ll = async (l, t) => {
1184
1184
  immediate: !0
1185
1185
  }
1186
1186
  ), (i, f) => {
1187
- const o = re("auth");
1188
- return v(), w("div", _t, [
1187
+ const s = re("auth");
1188
+ return m(), w("div", _t, [
1189
1189
  k(r(te), null, {
1190
1190
  default: h(() => [
1191
- (v(!0), w(O, null, z(p.value, (m) => H((v(), b(r(A), {
1192
- key: m.key,
1193
- type: m.type,
1194
- danger: m.danger,
1195
- disabled: r(j)(m),
1196
- icon: m.icon,
1197
- onClick: (c) => r(V)(m, r(a), r(e))
1191
+ (m(!0), w(O, null, z(p.value, (v) => H((m(), b(r(A), {
1192
+ key: v.key,
1193
+ type: v.type,
1194
+ danger: v.danger,
1195
+ disabled: r(j)(v),
1196
+ icon: v.icon,
1197
+ onClick: (c) => r(V)(v, r(a), r(e))
1198
1198
  }, {
1199
1199
  default: h(() => [
1200
- N(P(m.label), 1)
1200
+ N(P(v.label), 1)
1201
1201
  ]),
1202
1202
  _: 2
1203
1203
  }, 1032, ["type", "danger", "disabled", "icon", "onClick"])), [
1204
- [o, { url: u.value, role: m.role, permit: m.permit }]
1204
+ [s, { url: u.value, role: v.role, permit: v.permit }]
1205
1205
  ])), 128)),
1206
- d.value.length > 0 ? (v(), b(r(me), { key: 0 }, {
1206
+ d.value.length > 0 ? (m(), b(r(me), { key: 0 }, {
1207
1207
  overlay: h(() => [
1208
1208
  k(r(xe), null, {
1209
1209
  default: h(() => [
1210
- (v(!0), w(O, null, z(d.value, (m) => H((v(), b(r(ye), {
1211
- key: m.key,
1212
- disabled: r(j)(m),
1213
- onClick: (c) => r(V)(m, r(a), r(e))
1210
+ (m(!0), w(O, null, z(d.value, (v) => H((m(), b(r(ye), {
1211
+ key: v.key,
1212
+ disabled: r(j)(v),
1213
+ onClick: (c) => r(V)(v, r(a), r(e))
1214
1214
  }, {
1215
1215
  default: h(() => [
1216
- N(P(m.label), 1)
1216
+ N(P(v.label), 1)
1217
1217
  ]),
1218
1218
  _: 2
1219
1219
  }, 1032, ["disabled", "onClick"])), [
1220
- [o, { url: u.value, role: m.role, permit: m.permit }]
1220
+ [s, { url: u.value, role: v.role, permit: v.permit }]
1221
1221
  ])), 128))
1222
1222
  ]),
1223
1223
  _: 1
@@ -1234,13 +1234,13 @@ const ll = async (l, t) => {
1234
1234
  ]),
1235
1235
  _: 1
1236
1236
  })) : y("", !0),
1237
- p.value.length === 0 && d.value.length === 0 ? (v(), w("span", xt)) : y("", !0)
1237
+ p.value.length === 0 && d.value.length === 0 ? (m(), w("span", xt)) : y("", !0)
1238
1238
  ]),
1239
1239
  _: 1
1240
1240
  }),
1241
1241
  k(r(te), { class: "mr-1" }, {
1242
1242
  default: h(() => [
1243
- (v(), b($a(bt), { "grid-ctrl": r(e) }, null, 8, ["grid-ctrl"]))
1243
+ (m(), b($a(bt), { "grid-ctrl": r(e) }, null, 8, ["grid-ctrl"]))
1244
1244
  ]),
1245
1245
  _: 1
1246
1246
  })
@@ -1260,7 +1260,7 @@ const ll = async (l, t) => {
1260
1260
  statusDisabled: {}
1261
1261
  },
1262
1262
  setup(l) {
1263
- const t = l, e = X(), a = t.gridCtrl, s = Q(() => ce.currentRoute.value.path);
1263
+ const t = l, e = X(), a = t.gridCtrl, o = Q(() => ce.currentRoute.value.path);
1264
1264
  a && (a.pageNo.value = 1, a.total.value = 0, a.pageSize.value = a.pageSize.value);
1265
1265
  const u = _(a.pageSize.value), n = _(a.pageNo.value), p = _([]), d = _({
1266
1266
  total: 0,
@@ -1294,11 +1294,11 @@ const ll = async (l, t) => {
1294
1294
  disabled: c.Enabled === 0
1295
1295
  }),
1296
1296
  ...t.rowSelection
1297
- }, o = _(f);
1297
+ }, s = _(f);
1298
1298
  T(
1299
1299
  () => a.selectable.value,
1300
1300
  (c) => {
1301
- a && (o.value = c ? f : void 0);
1301
+ a && (s.value = c ? f : void 0);
1302
1302
  },
1303
1303
  { immediate: !0 }
1304
1304
  ), T(
@@ -1308,24 +1308,24 @@ const ll = async (l, t) => {
1308
1308
  },
1309
1309
  { deep: !0, immediate: !0 }
1310
1310
  );
1311
- const m = _(!1);
1311
+ const v = _(!1);
1312
1312
  return _e(() => {
1313
- m.value && a && a.autoload && (a.reload.value = !0);
1313
+ v.value && a && a.autoload && (a.reload.value = !0);
1314
1314
  }), K(async () => {
1315
1315
  var c, g, C, $, M;
1316
1316
  ge(q.GridControl, a), a.page && ((c = a.gridUrl) != null && c.url) && (((g = a.gridUrl) == null ? void 0 : g.url) === ((C = a.page.urls.list) == null ? void 0 : C.url) && (a.remotePage = !1), (($ = a.gridUrl) == null ? void 0 : $.url) === ((M = a.page.urls.find) == null ? void 0 : M.url) && (a.remotePage = !0)), a.tableData.value ? (p.value = a.tableData.value, a.total.value = p.value.length, d.value !== !1 && (d.value.total = a.total.value ?? 0)) : a.autoload !== !1 && (a.remotePage ? p.value = (await we(a)).rows : p.value = await ca(a)), setTimeout(() => {
1317
- m.value = !0;
1317
+ v.value = !0;
1318
1318
  }, 50);
1319
1319
  }), (c, g) => {
1320
1320
  var $, M;
1321
1321
  const C = re("auth");
1322
- return v(), w(O, null, [
1323
- ($ = r(a).buttons) != null && $.value.length || (M = r(a).tools) != null && M.length ? (v(), b(kt, {
1322
+ return m(), w(O, null, [
1323
+ ($ = r(a).buttons) != null && $.value.length || (M = r(a).tools) != null && M.length ? (m(), b(kt, {
1324
1324
  key: 0,
1325
1325
  "grid-ctrl": r(a),
1326
1326
  "editor-ctrl": r(a).editor
1327
1327
  }, null, 8, ["grid-ctrl", "editor-ctrl"])) : y("", !0),
1328
- m.value ? (v(), b(r(je), F({
1328
+ v.value ? (m(), b(r(je), F({
1329
1329
  key: 1,
1330
1330
  class: "w-full min-h-[480px]",
1331
1331
  "row-key": t.primaryKey ?? r(a).primaryKey ?? "Id",
@@ -1333,19 +1333,19 @@ const ll = async (l, t) => {
1333
1333
  loading: r(a).isGridLoading.value,
1334
1334
  columns: i.value,
1335
1335
  pagination: d.value,
1336
- "row-selection": o.value,
1336
+ "row-selection": s.value,
1337
1337
  scroll: t.scroll || { x: 700 },
1338
1338
  size: r(a).tableSize.value,
1339
1339
  bordered: ""
1340
1340
  }, r(e)), {
1341
1341
  bodyCell: h((x) => {
1342
- var B, L;
1342
+ var B, R;
1343
1343
  return [
1344
1344
  I(c.$slots, "bodyCell", {
1345
1345
  column: x == null ? void 0 : x.column,
1346
1346
  record: x == null ? void 0 : x.record
1347
1347
  }),
1348
- r(a) && ((B = x == null ? void 0 : x.column) == null ? void 0 : B.dataIndex) === "enabled" ? H((v(), b(da, {
1348
+ r(a) && ((B = x == null ? void 0 : x.column) == null ? void 0 : B.dataIndex) === "enabled" ? H((m(), b(da, {
1349
1349
  key: 0,
1350
1350
  checked: x.record.Enabled,
1351
1351
  "onUpdate:checked": (se) => x.record.Enabled = se,
@@ -1358,9 +1358,9 @@ const ll = async (l, t) => {
1358
1358
  ]),
1359
1359
  loading: x == null ? void 0 : x.record.isLoading
1360
1360
  }, null, 8, ["checked", "onUpdate:checked", "disabled", "data", "onClick", "class", "loading"])), [
1361
- [C, { url: s.value, role: ["Super", "Admin"], permit: ":enabled" }, "disable"]
1361
+ [C, { url: o.value, role: ["Super", "Admin"], permit: ":enabled" }, "disable"]
1362
1362
  ]) : y("", !0),
1363
- r(a) && ((L = x == null ? void 0 : x.column) == null ? void 0 : L.dataIndex) === "operation" ? I(c.$slots, "operate", {
1363
+ r(a) && ((R = x == null ? void 0 : x.column) == null ? void 0 : R.dataIndex) === "operation" ? I(c.$slots, "operate", {
1364
1364
  key: 1,
1365
1365
  record: x == null ? void 0 : x.record
1366
1366
  }, () => [
@@ -1385,27 +1385,27 @@ const ll = async (l, t) => {
1385
1385
  },
1386
1386
  emits: ["select", "update:selectedKeys"],
1387
1387
  setup(l, { emit: t }) {
1388
- const e = l, a = X(), s = e.treeCtrl, u = _([]);
1388
+ const e = l, a = X(), o = e.treeCtrl, u = _([]);
1389
1389
  T(
1390
- () => s.data.value,
1390
+ () => o.data.value,
1391
1391
  (f) => {
1392
1392
  if (f) {
1393
- u.value = s.fieldMap ? ne(s.fieldMap, f) : f;
1394
- const o = fa(u.value, p.value[0]);
1395
- if (o) {
1396
- const m = {
1393
+ u.value = o.fieldMap ? ne(o.fieldMap, f) : f;
1394
+ const s = fa(u.value, p.value[0]);
1395
+ if (s) {
1396
+ const v = {
1397
1397
  event: "select",
1398
1398
  node: {
1399
1399
  // 根据你的TreeNode结构构建node对象
1400
- key: o.key,
1401
- title: o.title,
1400
+ key: s.key,
1401
+ title: s.title,
1402
1402
  checked: !0,
1403
- dataRef: o
1403
+ dataRef: s
1404
1404
  },
1405
1405
  selected: !0,
1406
- selectedNodes: [o]
1406
+ selectedNodes: [s]
1407
1407
  };
1408
- i(p.value, m);
1408
+ i(p.value, v);
1409
1409
  }
1410
1410
  }
1411
1411
  }
@@ -1426,30 +1426,30 @@ const ll = async (l, t) => {
1426
1426
  },
1427
1427
  { immediate: !0 }
1428
1428
  );
1429
- const i = (f, o) => {
1430
- f.length === 0 && f.push(...p.value), f.length > 0 && (s.node.value = o == null ? void 0 : o.node.dataRef), p.value = f, n("update:selectedKeys", f), n("select", f, o);
1429
+ const i = (f, s) => {
1430
+ f.length === 0 && f.push(...p.value), f.length > 0 && (o.node.value = s == null ? void 0 : s.node.dataRef), p.value = f, n("update:selectedKeys", f), n("select", f, s);
1431
1431
  };
1432
1432
  return K(() => {
1433
- s.fieldMap || (s.fieldMap = {
1433
+ o.fieldMap || (o.fieldMap = {
1434
1434
  label: "Name",
1435
1435
  key: "Id",
1436
1436
  value: "Id",
1437
1437
  icon: "Icon"
1438
- }), s.data.value ? u.value = ne(s.fieldMap, s.data.value) : s.autoload && Ae(s);
1439
- }), (f, o) => (v(), b(r(Ba), F({
1438
+ }), o.data.value ? u.value = ne(o.fieldMap, o.data.value) : o.autoload && Ae(o);
1439
+ }), (f, s) => (m(), b(r(Ba), F({
1440
1440
  class: "w-full",
1441
1441
  "show-line": !0,
1442
1442
  "tree-data": u.value,
1443
1443
  "expanded-keys": d.value,
1444
- "onUpdate:expandedKeys": o[0] || (o[0] = (m) => d.value = m),
1444
+ "onUpdate:expandedKeys": s[0] || (s[0] = (v) => d.value = v),
1445
1445
  "selected-keys": p.value,
1446
- loading: r(s).isTreeLoading,
1446
+ loading: r(o).isTreeLoading,
1447
1447
  onSelect: i
1448
1448
  }, r(a)), {
1449
- title: h(({ key: m, label: c, icon: g }) => [
1449
+ title: h(({ key: v, label: c, icon: g }) => [
1450
1450
  I(f.$slots, "title", {
1451
1451
  label: c,
1452
- key: m,
1452
+ key: v,
1453
1453
  icon: g
1454
1454
  }, () => [
1455
1455
  D("div", wt, [
@@ -1471,24 +1471,24 @@ const ll = async (l, t) => {
1471
1471
  emits: ["change", "update:labels", "update:value"],
1472
1472
  setup(l, { emit: t }) {
1473
1473
  var C, $, M;
1474
- const e = l, a = X(), s = R(), u = ha(e.url, e), n = e.optionCtrl ?? u.optionCtrl;
1475
- n.inputFactory = Da(s);
1474
+ const e = l, a = X(), o = L(), u = ha(e.url, e), n = e.optionCtrl ?? u.optionCtrl;
1475
+ n.inputFactory = Da(o);
1476
1476
  const p = _({
1477
1477
  ...n == null ? void 0 : n.url,
1478
1478
  url: ((C = n == null ? void 0 : n.url) == null ? void 0 : C.url) || "",
1479
1479
  fieldMap: (n == null ? void 0 : n.fieldMap) || (($ = n == null ? void 0 : n.url) == null ? void 0 : $.fieldMap),
1480
1480
  params: (n == null ? void 0 : n.params) || ((M = n == null ? void 0 : n.url) == null ? void 0 : M.params),
1481
1481
  loadingText: !1
1482
- }), { editorCtrl: d, errInfo: i, labelText: f } = s, o = _(a.placeholder);
1482
+ }), { editorCtrl: d, errInfo: i, labelText: f } = o, s = _(a.placeholder);
1483
1483
  T(
1484
1484
  () => p.value.loading,
1485
1485
  (x) => {
1486
- x ? o.value = "" : o.value || (o.value = "请选择" + f.value);
1486
+ x ? s.value = "" : s.value || (s.value = "请选择" + f.value);
1487
1487
  },
1488
1488
  { immediate: !0 }
1489
1489
  );
1490
- const m = t;
1491
- s.inputEmit = m;
1490
+ const v = t;
1491
+ o.inputEmit = v;
1492
1492
  const c = _((n == null ? void 0 : n.options.value) || []);
1493
1493
  n && T(
1494
1494
  () => n.options.value,
@@ -1499,11 +1499,11 @@ const ll = async (l, t) => {
1499
1499
  );
1500
1500
  const g = (x, B) => {
1501
1501
  if (!B || B.length === 0) {
1502
- m("update:labels", []), m("update:value", []);
1502
+ v("update:labels", []), v("update:value", []);
1503
1503
  return;
1504
1504
  }
1505
- const L = B.map((ta) => ta.value), se = xa(n, e, L), aa = ya(se);
1506
- m("update:labels", aa), m("update:value", L), i != null && i.value.errClass && d && Y(d);
1505
+ const R = B.map((ta) => ta.value), se = xa(n, e, R), aa = ya(se);
1506
+ v("update:labels", aa), v("update:value", R), i != null && i.value.errClass && d && Y(d);
1507
1507
  };
1508
1508
  return _e(() => {
1509
1509
  n && n.autoload && (n.reload.value = !0);
@@ -1517,15 +1517,15 @@ const ll = async (l, t) => {
1517
1517
  }), Ia(() => {
1518
1518
  n && ba(n, e);
1519
1519
  }), (x, B) => {
1520
- var L;
1521
- return v(), w("div", St, [
1522
- c.value.length ? y("", !0) : (v(), w("div", Tt, [
1520
+ var R;
1521
+ return m(), w("div", St, [
1522
+ c.value.length ? y("", !0) : (m(), w("div", Tt, [
1523
1523
  k(r(_a), { class: "text-[#555] mx-[5px] !ml-[10px] !w-4 !h-4" }),
1524
1524
  B[0] || (B[0] = D("span", null, "数据加载中...", -1))
1525
1525
  ])),
1526
1526
  k(r(Aa), F({
1527
1527
  options: c.value,
1528
- class: [(L = r(i)) == null ? void 0 : L.errClass],
1528
+ class: [(R = r(i)) == null ? void 0 : R.errClass],
1529
1529
  "allow-clear": !0,
1530
1530
  placeholder: c.value.length > 0 ? "请选择" + r(f) : "",
1531
1531
  onChange: g
@@ -1595,13 +1595,13 @@ const bl = /* @__PURE__ */ S({
1595
1595
  valueFormat: {}
1596
1596
  },
1597
1597
  setup(l) {
1598
- const t = l, { editorCtrl: e, labelText: a, errInfo: s } = R(), u = () => {
1599
- s != null && s.value.errClass && e && Y(e);
1598
+ const t = l, { editorCtrl: e, labelText: a, errInfo: o } = L(), u = () => {
1599
+ o != null && o.value.errClass && e && Y(e);
1600
1600
  }, n = _(t.valueFormat ?? "YYYY-MM-DD");
1601
1601
  return (p, d) => {
1602
1602
  var i;
1603
- return v(), b(r(Ra), {
1604
- class: E(["w-full", [((i = r(s)) == null ? void 0 : i.errClass) === "error" ? "error !border-red-300 shadow-[0_0_3px_0px_#ff4d4f]" : ""]]),
1603
+ return m(), b(r(La), {
1604
+ class: E(["w-full", [((i = r(o)) == null ? void 0 : i.errClass) === "error" ? "error !border-red-300 shadow-[0_0_3px_0px_#ff4d4f]" : ""]]),
1605
1605
  placeholder: "请选择" + r(a),
1606
1606
  locale: r(de),
1607
1607
  valueFormat: n.value,
@@ -1617,55 +1617,55 @@ const bl = /* @__PURE__ */ S({
1617
1617
  },
1618
1618
  emits: ["update:value"],
1619
1619
  setup(l, { emit: t }) {
1620
- const { editorCtrl: e, labelText: a, errInfo: s } = R(), u = () => {
1621
- s != null && s.value.errClass && e && Y(e);
1620
+ const { editorCtrl: e, labelText: a, errInfo: o } = L(), u = () => {
1621
+ o != null && o.value.errClass && e && Y(e);
1622
1622
  }, n = l, p = n.value === void 0 ? !0 : n.undefValue, d = t, i = _(n.value);
1623
1623
  T(
1624
1624
  () => n.value,
1625
- (o) => {
1626
- i.value = o;
1625
+ (s) => {
1626
+ i.value = s;
1627
1627
  },
1628
1628
  { immediate: !0 }
1629
1629
  // 立即同步初始值
1630
1630
  ), T(
1631
1631
  () => i.value,
1632
- (o) => {
1632
+ (s) => {
1633
1633
  if (i.value === "") {
1634
1634
  d("update:value", void 0);
1635
1635
  return;
1636
1636
  }
1637
- d("update:value", o);
1637
+ d("update:value", s);
1638
1638
  }
1639
1639
  );
1640
1640
  const f = () => {
1641
1641
  i.value === "" && (i.value = p ? void 0 : null);
1642
1642
  };
1643
- return (o, m) => {
1643
+ return (s, v) => {
1644
1644
  var c, g;
1645
- return v(), b(r(ee), F({
1645
+ return m(), b(r(ee), F({
1646
1646
  class: [
1647
- (c = r(s)) == null ? void 0 : c.errClass,
1648
- ((g = r(s)) == null ? void 0 : g.errClass) === "error" && !o.$slots.addonBefore && !o.$slots.addonAfter ? "!border-red-300 shadow-[0_0_3px_0px_#ff4d4f]" : ""
1647
+ (c = r(o)) == null ? void 0 : c.errClass,
1648
+ ((g = r(o)) == null ? void 0 : g.errClass) === "error" && !s.$slots.addonBefore && !s.$slots.addonAfter ? "!border-red-300 shadow-[0_0_3px_0px_#ff4d4f]" : ""
1649
1649
  ],
1650
1650
  value: i.value,
1651
- "onUpdate:value": m[0] || (m[0] = (C) => i.value = C),
1651
+ "onUpdate:value": v[0] || (v[0] = (C) => i.value = C),
1652
1652
  autocomplete: "new-password",
1653
1653
  "allow-clear": !0,
1654
1654
  placeholder: "请输入" + r(a),
1655
1655
  onBlur: u,
1656
1656
  onChange: f
1657
- }, o.$attrs), Ue({ _: 2 }, [
1658
- o.$slots.addonBefore ? {
1657
+ }, s.$attrs), Ue({ _: 2 }, [
1658
+ s.$slots.addonBefore ? {
1659
1659
  name: "addonBefore",
1660
1660
  fn: h(() => [
1661
- I(o.$slots, "addonBefore")
1661
+ I(s.$slots, "addonBefore")
1662
1662
  ]),
1663
1663
  key: "0"
1664
1664
  } : void 0,
1665
- o.$slots.addonAfter ? {
1665
+ s.$slots.addonAfter ? {
1666
1666
  name: "addonAfter",
1667
1667
  fn: h(() => [
1668
- I(o.$slots, "addonAfter")
1668
+ I(s.$slots, "addonAfter")
1669
1669
  ]),
1670
1670
  key: "1"
1671
1671
  } : void 0
@@ -1679,26 +1679,26 @@ const bl = /* @__PURE__ */ S({
1679
1679
  },
1680
1680
  emits: ["update:value"],
1681
1681
  setup(l, { emit: t }) {
1682
- const e = l, a = t, s = _(void 0);
1682
+ const e = l, a = t, o = _(void 0);
1683
1683
  return T(
1684
1684
  () => e.value,
1685
1685
  (u) => {
1686
- s.value = u ?? void 0;
1686
+ o.value = u ?? void 0;
1687
1687
  },
1688
1688
  { immediate: !0 }
1689
1689
  ), T(
1690
- () => s.value,
1690
+ () => o.value,
1691
1691
  (u) => {
1692
1692
  a("update:value", u);
1693
1693
  }
1694
- ), (u, n) => (v(), b(Et, F({
1695
- value: s.value,
1696
- "onUpdate:value": n[0] || (n[0] = (p) => s.value = p)
1694
+ ), (u, n) => (m(), b(Et, F({
1695
+ value: o.value,
1696
+ "onUpdate:value": n[0] || (n[0] = (p) => o.value = p)
1697
1697
  }, u.$attrs), {
1698
1698
  addonBefore: h(() => [
1699
1699
  k(r(U), {
1700
1700
  class: "!w-4 !h-4",
1701
- icon: s.value
1701
+ icon: o.value
1702
1702
  }, null, 8, ["icon"])
1703
1703
  ]),
1704
1704
  _: 1
@@ -1707,31 +1707,31 @@ const bl = /* @__PURE__ */ S({
1707
1707
  }), _l = /* @__PURE__ */ G(Pt, [["__scopeId", "data-v-358b82ef"]]), xl = /* @__PURE__ */ S({
1708
1708
  __name: "inputPassword",
1709
1709
  setup(l) {
1710
- const { editorCtrl: t, labelText: e, errInfo: a } = R(), s = () => {
1710
+ const { editorCtrl: t, labelText: e, errInfo: a } = L(), o = () => {
1711
1711
  a != null && a.value.errClass && t && Y(t);
1712
1712
  };
1713
1713
  return (u, n) => {
1714
1714
  var p;
1715
- return v(), b(r(La), F({
1715
+ return m(), b(r(Ra), F({
1716
1716
  class: ((p = r(a)) == null ? void 0 : p.errClass) === "error" ? ["error", "!border-red-300", "shadow-[0_0_3px_0px_#ff4d4f]"] : "",
1717
1717
  "allow-clear": !0,
1718
1718
  autocomplete: "new-password",
1719
1719
  placeholder: "请输入" + r(e),
1720
- onBlur: s
1720
+ onBlur: o
1721
1721
  }, u.$attrs), null, 16, ["class", "placeholder"]);
1722
1722
  };
1723
1723
  }
1724
1724
  }), yl = /* @__PURE__ */ S({
1725
1725
  __name: "inputNumber",
1726
1726
  setup(l) {
1727
- const { editorCtrl: t, labelText: e, errInfo: a } = R(), s = () => {
1727
+ const { editorCtrl: t, labelText: e, errInfo: a } = L(), o = () => {
1728
1728
  a != null && a.value.errClass && t && Y(t);
1729
1729
  };
1730
1730
  return (u, n) => {
1731
1731
  var p;
1732
- return v(), b(r(za), F({
1732
+ return m(), b(r(za), F({
1733
1733
  class: [[((p = r(a)) == null ? void 0 : p.errClass) === "error" ? "error !border-red-300 shadow-[0_0_3px_0px_#ff4d4f]" : ""], "w-[50%]"],
1734
- onBlur: s,
1734
+ onBlur: o,
1735
1735
  "allow-clear": !1,
1736
1736
  placeholder: "请输入" + r(e)
1737
1737
  }, u.$attrs), null, 16, ["class", "placeholder"]);
@@ -1742,25 +1742,26 @@ const bl = /* @__PURE__ */ S({
1742
1742
  props: {
1743
1743
  value: {},
1744
1744
  selectList: {},
1745
+ ignoreList: {},
1745
1746
  fieldWidth: {},
1746
1747
  labelHolder: {},
1747
1748
  valueHolder: {}
1748
1749
  },
1749
1750
  emits: ["update:value"],
1750
1751
  setup(l, { emit: t }) {
1751
- const e = l, a = t, s = _(!(e.selectList && e.selectList.length > 0)), u = _([]);
1752
+ const e = l, a = t, o = _(!(e.selectList && e.selectList.length > 0)), u = _([]);
1752
1753
  let n = !1;
1753
1754
  const p = () => {
1754
- e.selectList && e.selectList.length > 0 ? u.value = e.selectList.map((o) => ({
1755
+ e.selectList && e.selectList.length > 0 ? u.value = e.selectList.map((s) => ({
1755
1756
  id: Date.now() + Math.random(),
1756
- text: o.text,
1757
- field: o.field,
1757
+ text: s.text,
1758
+ field: s.field,
1758
1759
  // 如果value中有对应的field,使用value中的值,否则使用selectList中的默认值
1759
- value: e.value[o.field] ?? o.value
1760
- })) : e.value && Object.keys(e.value).length > 0 ? u.value = Object.entries(e.value).map(([o, m]) => ({
1760
+ value: e.value[s.field] ?? s.value
1761
+ })) : e.value && Object.keys(e.value).length > 0 ? u.value = Object.entries(e.value).filter(([s]) => !e.ignoreList || !e.ignoreList.includes(s)).map(([s, v]) => ({
1761
1762
  id: Date.now() + Math.random(),
1762
- field: o,
1763
- value: m
1763
+ field: s,
1764
+ value: v
1764
1765
  })) : u.value = [];
1765
1766
  };
1766
1767
  T(
@@ -1771,13 +1772,15 @@ const bl = /* @__PURE__ */ S({
1771
1772
  { immediate: !0 }
1772
1773
  );
1773
1774
  const d = () => {
1774
- let o;
1775
- e.selectList && e.selectList.length > 0 ? (o = { ...e.value }, u.value.forEach((m) => {
1776
- m.field && (o[m.field] = m.value);
1777
- })) : o = u.value.reduce(
1778
- (m, c) => (c.field && (m[c.field] = c.value), m),
1775
+ let s;
1776
+ e.selectList && e.selectList.length > 0 ? (s = { ...e.value }, u.value.forEach((v) => {
1777
+ v.field && (s[v.field] = v.value);
1778
+ })) : (s = u.value.reduce(
1779
+ (v, c) => (c.field && (v[c.field] = c.value), v),
1779
1780
  {}
1780
- ), n = !0, a("update:value", o);
1781
+ ), e.ignoreList && e.ignoreList.length > 0 && e.ignoreList.forEach((v) => {
1782
+ e.value[v] !== void 0 && (s[v] = e.value[v]);
1783
+ })), n = !0, a("update:value", s);
1781
1784
  }, i = () => {
1782
1785
  u.value.push({
1783
1786
  id: Date.now() + Math.random(),
@@ -1787,24 +1790,24 @@ const bl = /* @__PURE__ */ S({
1787
1790
  }, f = () => {
1788
1791
  d();
1789
1792
  };
1790
- return (o, m) => (v(), w("div", Ft, [
1791
- (v(!0), w(O, null, z(u.value, (c) => (v(), w("div", {
1793
+ return (s, v) => (m(), w("div", Ft, [
1794
+ (m(!0), w(O, null, z(u.value, (c) => (m(), w("div", {
1792
1795
  key: c.id,
1793
1796
  class: "flex items-center gap-2"
1794
1797
  }, [
1795
1798
  D("div", {
1796
- class: E([o.fieldWidth ? `w-[${o.fieldWidth}%]` : "w-[33%]"])
1799
+ class: E([s.fieldWidth ? `w-[${s.fieldWidth}%]` : "w-[33%]"])
1797
1800
  }, [
1798
- !o.selectList || o.selectList.length === 0 ? (v(), b(r(ee), {
1801
+ !s.selectList || s.selectList.length === 0 ? (m(), b(r(ee), {
1799
1802
  key: 0,
1800
1803
  value: c.field,
1801
1804
  "onUpdate:value": (g) => c.field = g,
1802
1805
  title: c.text || c.field,
1803
1806
  class: "w-full",
1804
- placeholder: c.text || o.labelHolder || "配置名",
1807
+ placeholder: c.text || s.labelHolder || "配置名",
1805
1808
  onInput: f,
1806
- disabled: !s.value
1807
- }, null, 8, ["value", "onUpdate:value", "title", "placeholder", "disabled"])) : (v(), w("div", Nt, [
1809
+ disabled: !o.value
1810
+ }, null, 8, ["value", "onUpdate:value", "title", "placeholder", "disabled"])) : (m(), w("div", Nt, [
1808
1811
  k(r(ee), {
1809
1812
  value: c.text,
1810
1813
  "onUpdate:value": (g) => c.text = g,
@@ -1819,26 +1822,26 @@ const bl = /* @__PURE__ */ S({
1819
1822
  }, null, 8, ["value", "onUpdate:value"])
1820
1823
  ]))
1821
1824
  ], 2),
1822
- m[0] || (m[0] = D("div", { class: "w-[3%]" }, "=", -1)),
1825
+ v[0] || (v[0] = D("div", { class: "w-[3%]" }, "=", -1)),
1823
1826
  D("div", {
1824
- class: E([o.fieldWidth ? `w-[${97 - o.fieldWidth}%]` : "w-[64%]"])
1827
+ class: E([s.fieldWidth ? `w-[${97 - s.fieldWidth}%]` : "w-[64%]"])
1825
1828
  }, [
1826
1829
  k(r(ee), {
1827
1830
  value: c.value,
1828
1831
  "onUpdate:value": (g) => c.value = g,
1829
- placeholder: o.valueHolder || "请输入" + c.text || "请输入配置值",
1832
+ placeholder: s.valueHolder || "请输入" + c.text || "请输入配置值",
1830
1833
  onInput: f,
1831
1834
  title: c.value
1832
1835
  }, null, 8, ["value", "onUpdate:value", "placeholder", "title"])
1833
1836
  ], 2)
1834
1837
  ]))), 128)),
1835
- s.value ? (v(), b(r(We), {
1838
+ o.value ? (m(), b(r(We), {
1836
1839
  key: 0,
1837
1840
  onClick: i,
1838
1841
  class: "mt-1 w-[80px] !text-[12px] text-[#666] bg-[#e6f7ff] border-[#b3e0ff] hover:bg-[#b3e0ff] hover:border-[#8abeff]",
1839
1842
  size: "small"
1840
1843
  }, {
1841
- default: h(() => m[1] || (m[1] = [
1844
+ default: h(() => v[1] || (v[1] = [
1842
1845
  N(" 新增配置行 ")
1843
1846
  ])),
1844
1847
  _: 1,
@@ -1878,7 +1881,7 @@ const bl = /* @__PURE__ */ S({
1878
1881
  return t.all === !0 && e.value.unshift({
1879
1882
  label: "全部",
1880
1883
  value: t.allValue || [0, 1]
1881
- }), (a, s) => (v(), b(Mt, { data: e.value }, null, 8, ["data"]));
1884
+ }), (a, o) => (m(), b(Mt, { data: e.value }, null, 8, ["data"]));
1882
1885
  }
1883
1886
  }), Cl = /* @__PURE__ */ S({
1884
1887
  __name: "index",
@@ -1889,12 +1892,12 @@ const bl = /* @__PURE__ */ S({
1889
1892
  },
1890
1893
  emits: ["update:startDate", "update:endDate"],
1891
1894
  setup(l, { emit: t }) {
1892
- const e = l, a = t, s = R(), { errInfo: u } = s, n = Q(() => e.valueFormat), p = Q(() => {
1895
+ const e = l, a = t, o = L(), { errInfo: u } = o, n = Q(() => e.valueFormat), p = Q(() => {
1893
1896
  const i = e.startDate, f = e.endDate;
1894
1897
  if (!(!i || !f))
1895
1898
  try {
1896
- const o = ve(i), m = ve(f);
1897
- return !o.isValid() || !m.isValid() ? void 0 : [o, m];
1899
+ const s = ve(i), v = ve(f);
1900
+ return !s.isValid() || !v.isValid() ? void 0 : [s, v];
1898
1901
  } catch {
1899
1902
  return;
1900
1903
  }
@@ -1906,9 +1909,9 @@ const bl = /* @__PURE__ */ S({
1906
1909
  a("update:startDate", f[0] || null), a("update:endDate", f[1] || null);
1907
1910
  };
1908
1911
  return (i, f) => {
1909
- var o;
1910
- return v(), b(r(Ua), {
1911
- class: E([((o = r(u)) == null ? void 0 : o.errClass) === "error" ? ["error", "!border-red-300", "shadow-[0_0_3px_0px_#ff4d4f]"] : "", "w-full"]),
1912
+ var s;
1913
+ return m(), b(r(Ua), {
1914
+ class: E([((s = r(u)) == null ? void 0 : s.errClass) === "error" ? ["error", "!border-red-300", "shadow-[0_0_3px_0px_#ff4d4f]"] : "", "w-full"]),
1912
1915
  locale: r(de),
1913
1916
  "value-format": n.value,
1914
1917
  value: p.value,
@@ -1919,16 +1922,16 @@ const bl = /* @__PURE__ */ S({
1919
1922
  }), Sl = /* @__PURE__ */ G(Ca, [["__scopeId", "data-v-b33df95f"]]), Tl = /* @__PURE__ */ S({
1920
1923
  __name: "index",
1921
1924
  setup(l) {
1922
- const { editorCtrl: t, labelText: e, errInfo: a } = R(), s = () => {
1925
+ const { editorCtrl: t, labelText: e, errInfo: a } = L(), o = () => {
1923
1926
  a != null && a.value.errClass && t && Y(t);
1924
1927
  };
1925
1928
  return (u, n) => {
1926
1929
  var p;
1927
- return v(), b(r(Va), F({
1930
+ return m(), b(r(Va), F({
1928
1931
  class: ((p = r(a)) == null ? void 0 : p.errClass) === "error" ? ["error", "!border-red-300", "shadow-[0_0_3px_0px_#ff4d4f]"] : "",
1929
1932
  "allow-clear": !0,
1930
1933
  placeholder: "请输入" + r(e),
1931
- onBlur: s,
1934
+ onBlur: o,
1932
1935
  onKeyup: n[0] || (n[0] = Se(ae(() => {
1933
1936
  }, ["stop"]), ["enter", "native"])),
1934
1937
  onKeydown: n[1] || (n[1] = Se(ae(() => {
@@ -1942,13 +1945,13 @@ const bl = /* @__PURE__ */ S({
1942
1945
  valueFormat: {}
1943
1946
  },
1944
1947
  setup(l) {
1945
- const t = l, { editorCtrl: e, labelText: a, errInfo: s } = R(), u = () => {
1946
- s != null && s.value.errClass && e && Y(e);
1948
+ const t = l, { editorCtrl: e, labelText: a, errInfo: o } = L(), u = () => {
1949
+ o != null && o.value.errClass && e && Y(e);
1947
1950
  }, n = _(t.valueFormat ?? "HH:mm");
1948
1951
  return (p, d) => {
1949
1952
  var i;
1950
- return v(), b(r(Ya), {
1951
- class: E(["w-full", [((i = r(s)) == null ? void 0 : i.errClass) === "error" ? "error !border-red-300 shadow-[0_0_3px_0px_#ff4d4f]" : ""]]),
1953
+ return m(), b(r(Ya), {
1954
+ class: E(["w-full", [((i = r(o)) == null ? void 0 : i.errClass) === "error" ? "error !border-red-300 shadow-[0_0_3px_0px_#ff4d4f]" : ""]]),
1952
1955
  placeholder: "请选择" + r(a),
1953
1956
  locale: r(de),
1954
1957
  valueFormat: n.value,
@@ -1966,41 +1969,41 @@ const bl = /* @__PURE__ */ S({
1966
1969
  },
1967
1970
  emits: ["change", "update:value"],
1968
1971
  setup(l, { emit: t }) {
1969
- const e = l, a = _({ ...e.url }), { editorCtrl: s, labelText: u, errInfo: n } = R(), p = t, d = _([]), i = _([]);
1970
- e.value && e.value.every((o) => {
1971
- i.value.push(o.toString());
1972
+ const e = l, a = _({ ...e.url }), { editorCtrl: o, labelText: u, errInfo: n } = L(), p = t, d = _([]), i = _([]);
1973
+ e.value && e.value.every((s) => {
1974
+ i.value.push(s.toString());
1972
1975
  }), T(
1973
1976
  () => e.value,
1974
- (o) => {
1975
- o && (i.value = o);
1977
+ (s) => {
1978
+ s && (i.value = s);
1976
1979
  }
1977
1980
  );
1978
- const f = (o) => {
1979
- p("update:value", o), p("change", o), i.value = o, n != null && n.value.errClass && s && Y(s);
1981
+ const f = (s) => {
1982
+ p("update:value", s), p("change", s), i.value = s, n != null && n.value.errClass && o && Y(o);
1980
1983
  };
1981
1984
  return K(async () => {
1982
1985
  if (a.value) {
1983
- const o = s == null ? void 0 : s.page;
1984
- if (a.value.api || (a.value.api = o == null ? void 0 : o.api), a.value.authorize === void 0 && (a.value.authorize = o == null ? void 0 : o.authorize), e.autoload) {
1985
- const m = await Re(s, {
1986
+ const s = o == null ? void 0 : o.page;
1987
+ if (a.value.api || (a.value.api = s == null ? void 0 : s.api), a.value.authorize === void 0 && (a.value.authorize = s == null ? void 0 : s.authorize), e.autoload) {
1988
+ const v = await Le(o, {
1986
1989
  urlKey: "list",
1987
1990
  url: { ...a.value, url: a.value.url },
1988
1991
  loadingText: !1,
1989
1992
  params: e.params
1990
1993
  });
1991
- d.value = (m == null ? void 0 : m.data) ?? [];
1994
+ d.value = (v == null ? void 0 : v.data) ?? [];
1992
1995
  }
1993
1996
  }
1994
- }), (o, m) => {
1997
+ }), (s, v) => {
1995
1998
  var c;
1996
- return v(), b(r(Ka), F({
1999
+ return m(), b(r(Ka), F({
1997
2000
  class: ((c = r(n)) == null ? void 0 : c.errClass) === "error" ? ["error", "!border-red-300", "shadow-[0_0_3px_0px_#ff4d4f]"] : "",
1998
2001
  placeholder: "请输入" + r(u),
1999
2002
  targetKeys: i.value,
2000
2003
  onChange: f
2001
- }, o.$attrs), {
2004
+ }, s.$attrs), {
2002
2005
  children: h(({ direction: g, disabled: C, filteredItems: $, onItemSelectAll: M, onItemSelect: x, selectedKeys: B }) => [
2003
- I(o.$slots, "children", {
2006
+ I(s.$slots, "children", {
2004
2007
  direction: g,
2005
2008
  disabled: C,
2006
2009
  filteredItems: $,
@@ -2040,7 +2043,7 @@ const bl = /* @__PURE__ */ S({
2040
2043
  },
2041
2044
  emits: ["update:value"],
2042
2045
  setup(l, { emit: t }) {
2043
- const e = l, a = t, s = _(e.autoload), u = _(e.value), n = _(e.gridCtrl.primaryKey);
2046
+ const e = l, a = t, o = _(e.autoload), u = _(e.value), n = _(e.gridCtrl.primaryKey);
2044
2047
  T(
2045
2048
  () => u.value,
2046
2049
  (i) => {
@@ -2052,23 +2055,23 @@ const bl = /* @__PURE__ */ S({
2052
2055
  i && (u.value = i);
2053
2056
  }
2054
2057
  ), e.gridCtrl.autoload = !1, e.gridCtrl.remotePage = !1, e.gridCtrl.selectable = _(!0), e.gridCtrl.buttons = _([]), e.gridCtrl.tools = [];
2055
- const p = ({ disabled: i, selectedKeys: f, onItemSelectAll: o, onItemSelect: m }) => ({
2058
+ const p = ({ disabled: i, selectedKeys: f, onItemSelectAll: s, onItemSelect: v }) => ({
2056
2059
  getCheckboxProps: (c) => ({
2057
2060
  // 控制是否禁止
2058
2061
  disabled: i || c.disabled
2059
2062
  }),
2060
2063
  onSelectAll(c, g) {
2061
2064
  const C = g.filter(($) => !$.disabled).map(({ [n.value]: $ }) => $);
2062
- o(C, c);
2065
+ s(C, c);
2063
2066
  },
2064
2067
  onSelect({ [n.value]: c }, g) {
2065
- m(c, g);
2068
+ v(c, g);
2066
2069
  },
2067
2070
  selectedRowKeys: f
2068
2071
  }), d = _([]);
2069
2072
  return K(async () => {
2070
- if (s.value) {
2071
- const i = await Re(e.gridCtrl, {
2073
+ if (o.value) {
2074
+ const i = await Le(e.gridCtrl, {
2072
2075
  urlKey: "list",
2073
2076
  url: { ...e.gridCtrl.gridUrl, url: e.gridCtrl.gridUrl.url },
2074
2077
  params: e.gridCtrl.gridQuery,
@@ -2076,37 +2079,37 @@ const bl = /* @__PURE__ */ S({
2076
2079
  });
2077
2080
  d.value = (i == null ? void 0 : i.data) ?? [];
2078
2081
  }
2079
- }), (i, f) => (v(), b(Ot, F({
2082
+ }), (i, f) => (m(), b(Ot, F({
2080
2083
  "data-source": d.value,
2081
- "row-key": (o) => o[n.value],
2084
+ "row-key": (s) => s[n.value],
2082
2085
  value: u.value,
2083
- "onUpdate:value": f[0] || (f[0] = (o) => u.value = o),
2086
+ "onUpdate:value": f[0] || (f[0] = (s) => u.value = s),
2084
2087
  "list-style": {
2085
2088
  width: "300px",
2086
2089
  height: "500px"
2087
2090
  },
2088
2091
  "show-select-all": !1,
2089
2092
  "show-search": !0,
2090
- "filter-option": (o, m) => {
2093
+ "filter-option": (s, v) => {
2091
2094
  for (const c of e.gridCtrl.columns.value)
2092
- if (m[c.dataIndex].toString().indexOf(o) !== -1)
2095
+ if (v[c.dataIndex].toString().indexOf(s) !== -1)
2093
2096
  return !0;
2094
2097
  return !1;
2095
2098
  }
2096
2099
  }, i.$attrs), {
2097
- children: h(({ filteredItems: o, onItemSelectAll: m, onItemSelect: c, selectedKeys: g }) => [
2100
+ children: h(({ filteredItems: s, onItemSelectAll: v, onItemSelect: c, selectedKeys: g }) => [
2098
2101
  k(r(je), {
2099
2102
  columns: l.gridCtrl.columns.value,
2100
2103
  "row-key": n.value,
2101
2104
  "row-selection": p({
2102
2105
  disabled: !1,
2103
2106
  selectedKeys: g,
2104
- onItemSelectAll: m,
2107
+ onItemSelectAll: v,
2105
2108
  onItemSelect: c
2106
2109
  }),
2107
2110
  bordered: !1,
2108
2111
  size: "small",
2109
- "data-source": o,
2112
+ "data-source": s,
2110
2113
  scroll: { x: 300 },
2111
2114
  "custom-row": (C) => ({
2112
2115
  onClick: () => {
@@ -2146,7 +2149,7 @@ const bl = /* @__PURE__ */ S({
2146
2149
  },
2147
2150
  emits: ["change", "update:value"],
2148
2151
  setup(l, { emit: t }) {
2149
- const e = l, a = e.value === void 0 ? !0 : e.undefValue, s = e.treeCtrl, u = R(), { errInfo: n, labelText: p } = u, d = t;
2152
+ const e = l, a = e.value === void 0 ? !0 : e.undefValue, o = e.treeCtrl, u = L(), { errInfo: n, labelText: p } = u, d = t;
2150
2153
  u.inputEmit = d;
2151
2154
  const i = _([]), f = _();
2152
2155
  T(
@@ -2161,30 +2164,30 @@ const bl = /* @__PURE__ */ S({
2161
2164
  d("update:value", c);
2162
2165
  }
2163
2166
  ), T(
2164
- () => s.data.value,
2167
+ () => o.data.value,
2165
2168
  (c) => {
2166
- c && (i.value = s.fieldMap ? ne(s.fieldMap, c) : c);
2169
+ c && (i.value = o.fieldMap ? ne(o.fieldMap, c) : c);
2167
2170
  },
2168
2171
  { immediate: !0 }
2169
2172
  );
2170
- const o = (c) => {
2173
+ const s = (c) => {
2171
2174
  e.multiple ? f.value = c ?? [] : c == null ? f.value = a ? void 0 : null : f.value = c, d("change", f.value);
2172
2175
  };
2173
2176
  _e(() => {
2174
2177
  e.treeCtrl && e.treeCtrl.autoload && (e.treeCtrl.reload.value = !0);
2175
2178
  }), K(() => {
2176
- s.fieldMap || (s.fieldMap = {
2179
+ o.fieldMap || (o.fieldMap = {
2177
2180
  label: "Name",
2178
2181
  key: "Id",
2179
2182
  value: "Id"
2180
- }), s.data.value ? i.value = s.fieldMap ? ne(s.fieldMap, s.data.value) : s.data.value : e.treeCtrl.autoload && Ae(e.treeCtrl);
2183
+ }), o.data.value ? i.value = o.fieldMap ? ne(o.fieldMap, o.data.value) : o.data.value : e.treeCtrl.autoload && Ae(e.treeCtrl);
2181
2184
  });
2182
- const m = () => {
2185
+ const v = () => {
2183
2186
  f.value = a ? void 0 : null;
2184
2187
  };
2185
2188
  return (c, g) => {
2186
2189
  var C;
2187
- return v(), b(r(Wa), F({
2190
+ return m(), b(r(Wa), F({
2188
2191
  class: [[(C = r(n)) == null ? void 0 : C.errClass], "w-full"],
2189
2192
  "tree-line": "",
2190
2193
  multiple: l.multiple,
@@ -2193,12 +2196,12 @@ const bl = /* @__PURE__ */ S({
2193
2196
  "onUpdate:value": g[0] || (g[0] = ($) => f.value = $),
2194
2197
  "tree-data": i.value,
2195
2198
  placeholder: "请选择" + r(p),
2196
- onChange: o,
2197
- onClear: m
2199
+ onChange: s,
2200
+ onClear: v
2198
2201
  }, c.$attrs), null, 16, ["class", "multiple", "value", "tree-data", "placeholder"]);
2199
2202
  };
2200
2203
  }
2201
- }), Il = /* @__PURE__ */ G(Bt, [["__scopeId", "data-v-71d50074"]]), At = { class: "relative h-[calc(100vh-80px)] overflow-y-auto" }, Rt = { class: "flex w-full h-full min-h-full" }, Lt = {
2204
+ }), Il = /* @__PURE__ */ G(Bt, [["__scopeId", "data-v-71d50074"]]), At = { class: "relative h-[calc(100vh-80px)] overflow-y-auto" }, Lt = { class: "flex w-full h-full min-h-full" }, Rt = {
2202
2205
  key: 0,
2203
2206
  class: "w-1/4 pr-4 min-h-full min-w-[170px] max-w-[200px]"
2204
2207
  }, zt = { class: "flex-1 h-full overflow-y-auto" }, El = /* @__PURE__ */ S({
@@ -2208,7 +2211,7 @@ const bl = /* @__PURE__ */ S({
2208
2211
  },
2209
2212
  setup(l) {
2210
2213
  const { useToken: t } = Ve, { token: e } = t();
2211
- return (a, s) => (v(), w("div", At, [
2214
+ return (a, o) => (m(), w("div", At, [
2212
2215
  k(r(ja), {
2213
2216
  class: "m-[10px] p-[10px] h-[calc(100vh-100px)] !min-h-[calc(100vh-100px)]",
2214
2217
  style: be({
@@ -2216,8 +2219,8 @@ const bl = /* @__PURE__ */ S({
2216
2219
  })
2217
2220
  }, {
2218
2221
  default: h(() => [
2219
- D("div", Rt, [
2220
- a.left ? (v(), w("div", Lt, [
2222
+ D("div", Lt, [
2223
+ a.left ? (m(), w("div", Rt, [
2221
2224
  I(a.$slots, "left")
2222
2225
  ])) : y("", !0),
2223
2226
  D("div", zt, [
@@ -2303,9 +2306,9 @@ export {
2303
2306
  qe as csvToExcelView,
2304
2307
  Nr as csvToNormalized,
2305
2308
  Ee as defaultTools,
2306
- Rl as doDelete,
2307
- Ll as doExecute,
2308
- Re as doQuery,
2309
+ Ll as doDelete,
2310
+ Rl as doExecute,
2311
+ Le as doQuery,
2309
2312
  zl as doSave,
2310
2313
  Sr as donwloadFromMinio,
2311
2314
  Ha as downloadBlob,
@@ -2365,7 +2368,7 @@ export {
2365
2368
  sr as saveForm,
2366
2369
  or as setFormData,
2367
2370
  nr as showBreadcrumb,
2368
- Rr as toExcel,
2371
+ Lr as toExcel,
2369
2372
  ba as unloadOption,
2370
2373
  ir as uploadTempBtn,
2371
2374
  ur as uploadTempOpener,
@@ -2374,7 +2377,7 @@ export {
2374
2377
  Ne as useFormItemFactory,
2375
2378
  pr as useGridFactory,
2376
2379
  fr as useHostInfo,
2377
- R as useInputFactory,
2380
+ L as useInputFactory,
2378
2381
  ha as useOptionFactory,
2379
2382
  vr as usePageFactory,
2380
2383
  mr as usePageInfo,
@@ -2383,5 +2386,5 @@ export {
2383
2386
  hr as useTreeFactory,
2384
2387
  Pe as useUserInfo,
2385
2388
  gr as validateData,
2386
- Lr as validateExcel
2389
+ Rr as validateExcel
2387
2390
  };