@skyfox2000/webui 1.4.14 → 1.4.16

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 (30) hide show
  1. package/lib/assets/modules/{baseLayout-BtJNPMBy.js → baseLayout-DQQ-vZCD.js} +3 -3
  2. package/lib/assets/modules/{file-upload-CYNi1NsW.js → file-upload-Dc61Tbof.js} +1 -1
  3. package/lib/assets/modules/{index-BOOirPG2.js → index-CX7vtghj.js} +1 -1
  4. package/lib/assets/modules/{index-DWnhNqJu.js → index-DrGkF0qX.js} +2 -2
  5. package/lib/assets/modules/{index-Cj6QnoC7.js → index-Dz624mC-.js} +2 -2
  6. package/lib/assets/modules/{menuTabs-DDGkYuvg.js → menuTabs-BwAVx2tx.js} +2 -2
  7. package/lib/assets/modules/{toolIcon-DXQt60Ya.js → toolIcon-B2btIpdL.js} +1 -1
  8. package/lib/assets/modules/{upload-template-CaeUt6VI.js → upload-template-BqG06zPn.js} +318 -310
  9. package/lib/assets/modules/{uploadList-D0jw6jNr.js → uploadList-DlbvQOtR.js} +4 -4
  10. package/lib/components/content/search/index.vue.d.ts +5 -3
  11. package/lib/es/AceEditor/index.js +3 -3
  12. package/lib/es/BasicLayout/index.js +2 -2
  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 +5 -5
  16. package/lib/es/MenuLayout/index.js +2 -2
  17. package/lib/es/TemplateFile/index.js +4 -4
  18. package/lib/es/UploadForm/index.js +4 -4
  19. package/lib/webui.css +1 -1
  20. package/lib/webui.es.js +693 -683
  21. package/package.json +1 -1
  22. package/src/components/content/search/index.vue +30 -24
  23. package/src/components/content/table/index.vue +1 -1
  24. package/src/components/form/autoComplete/index.vue +5 -1
  25. package/src/components/form/cascader/index.vue +8 -10
  26. package/src/components/form/checkbox/index.vue +8 -11
  27. package/src/components/form/radio/index.vue +9 -14
  28. package/src/components/form/select/index.vue +4 -1
  29. package/src/components/form/treeSelect/index.vue +5 -1
  30. package/src/utils/export-table.ts +1 -1
package/lib/webui.es.js CHANGED
@@ -1,105 +1,105 @@
1
- import { u as Ee, i as Z, a as me, L as Xe, c as Ze, P as j, o as Pe, b as ea, d as aa, e as Fe, r as ce, f as ta, g as la, h as Ne, j as sa, k as ke, l as ra, _ as oa, m as na, O as Me, n as ia, q as Be, p as ca, s as ua, t as L, v as da, w as pa, x as fa, y as va, z as ma, A as ha, B as Y, C as ga, D as ba, E as xa, F as Re } from "./assets/modules/upload-template-CaeUt6VI.js";
2
- import { ab as Il, R as Dl, ad as El, S as Pl, W as Fl, aa as Nl, a8 as Ml, a9 as Bl, ac as Rl, Z as Ol, U as Al, a6 as Ll, a3 as zl, N as Ul, a5 as Vl, V as Yl, H as Kl, a0 as Wl, a4 as Hl, a7 as jl, Q as Ql, T as ql, ae as Gl, G as Jl, a2 as Xl, af as Zl, Y as es, $ as as, X as ts, ak as ls, aj as ss, ag as rs, I as os, J as ns, ah as is, M as cs, ai as us, K as ds, a1 as ps } from "./assets/modules/upload-template-CaeUt6VI.js";
3
- import { A as vs, U as ms, p as hs } from "./assets/modules/file-upload-CYNi1NsW.js";
4
- import { EnvConfig as we } from "@skyfox2000/microbase";
5
- import { FrontCache as re, httpPost as Oe, ResStatus as Ae, SERVER_HOST as _a, fieldMapping as oe } from "@skyfox2000/fapi";
1
+ import { u as Pe, i as Z, a as me, L as Ze, c as ea, P as j, o as Fe, b as aa, d as ta, e as Ne, r as ue, f as la, g as ra, h as Me, j as sa, k as we, l as oa, _ as na, m as ia, O as Be, n as ua, q as Re, p as ca, s as da, t as L, v as pa, w as fa, x as va, y as ma, z as ha, A as ga, B as Y, C as ba, D as xa, E as _a, F as Oe } from "./assets/modules/upload-template-BqG06zPn.js";
2
+ import { ab as Il, R as Dl, ad as El, S as Pl, W as Fl, aa as Nl, a8 as Ml, a9 as Bl, ac as Rl, Z as Ol, U as Al, a6 as Ll, a3 as zl, N as Ul, a5 as Vl, V as Yl, H as Kl, a0 as Wl, a4 as Hl, a7 as jl, Q as Ql, T as ql, ae as Gl, G as Jl, a2 as Xl, af as Zl, Y as er, $ as ar, X as tr, ak as lr, aj as rr, ag as sr, I as or, J as nr, ah as ir, M as ur, ai as cr, K as dr, a1 as pr } from "./assets/modules/upload-template-BqG06zPn.js";
3
+ import { A as vr, U as mr, p as hr } from "./assets/modules/file-upload-Dc61Tbof.js";
4
+ import { EnvConfig as Ce } from "@skyfox2000/microbase";
5
+ import { FrontCache as se, httpPost as Ae, ResStatus as Le, SERVER_HOST as ya, fieldMapping as oe } from "@skyfox2000/fapi";
6
6
  import he from "vue-m-message";
7
- import { defineComponent as C, createBlock as b, openBlock as m, withModifiers as ae, unref as l, useAttrs as X, withCtx as g, createElementVNode as I, createVNode as w, mergeProps as N, renderSlot as D, normalizeClass as P, toDisplayString as F, createCommentVNode as k, ref as x, provide as ge, watch as T, onMounted as K, createTextVNode as B, inject as ne, resolveDirective as le, withDirectives as Q, computed as J, createElementBlock as S, normalizeStyle as be, createSlots as Le, useSlots as ya, Fragment as O, renderList as z, resolveDynamicComponent as ka, onActivated as wa, shallowRef as Sa, onUnmounted as Ca, withKeys as Se } from "vue";
7
+ import { defineComponent as S, createBlock as b, openBlock as m, withModifiers as ae, unref as l, useAttrs as X, withCtx as g, createElementVNode as I, createVNode as w, mergeProps as M, renderSlot as D, normalizeClass as F, toDisplayString as N, createCommentVNode as k, ref as x, provide as ge, watch as T, onMounted as K, createTextVNode as B, inject as ne, resolveDirective as le, withDirectives as Q, computed as J, createElementBlock as C, normalizeStyle as be, createSlots as ze, useSlots as ka, Fragment as O, renderList as z, resolveDynamicComponent as wa, onActivated as xe, shallowRef as Ca, onUnmounted as Sa, withKeys as Se } from "vue";
8
8
  import "async-validator";
9
9
  import fe from "dayjs";
10
- import { Popover as Ta, theme as ze, Drawer as $a, Space as te, Form as Ue, message as Ia, FormItem as Ve, ConfigProvider as Ce, Popconfirm as Da, Button as Ye, DropdownButton as Ea, Menu as xe, MenuItem as _e, Dropdown as ve, Checkbox as Pa, Table as Ke, Tree as Fa, Cascader as Na, DatePicker as Ma, Input as ee, InputPassword as Ba, InputNumber as Ra, RangePicker as Oa, Textarea as Aa, TimePicker as La, Transfer as za, TreeSelect as Ua, LayoutContent as Va } from "ant-design-vue";
10
+ import { Popover as Ta, theme as Ue, Drawer as $a, Space as te, Form as Ve, message as Ia, FormItem as Ye, ConfigProvider as Te, Popconfirm as Da, Button as Ke, DropdownButton as Ea, Menu as _e, MenuItem as ye, Dropdown as ve, Checkbox as Pa, Table as We, Tree as Fa, Cascader as Na, DatePicker as Ma, Input as ee, InputPassword as Ba, InputNumber as Ra, RangePicker as Oa, Textarea as Aa, TimePicker as La, Transfer as za, TreeSelect as Ua, LayoutContent as Va } from "ant-design-vue";
11
11
  import { VueDraggableNext as Ya } from "vue-draggable-next";
12
- import { d as We } from "./assets/modules/uploadList-D0jw6jNr.js";
13
- import { C as bs, U as xs, a as _s, p as ys } from "./assets/modules/uploadList-D0jw6jNr.js";
14
- import { c as He } from "./assets/modules/index-Cj6QnoC7.js";
15
- import { _ as ws, h as Ss, b as Cs, a as Ts, d as $s, e as Is, g as Ds, f as Es, n as Ps, p as Fs, t as Ns, v as Ms } from "./assets/modules/index-Cj6QnoC7.js";
16
- import { _ as A } from "./assets/modules/index-BOOirPG2.js";
17
- import { _ as U } from "./assets/modules/toolIcon-DXQt60Ya.js";
18
- import { a as Rs } from "./assets/modules/toolIcon-DXQt60Ya.js";
19
- import { _ as As, b as Ls, c as zs, d as Us, e as Vs, I as Ys, f as Ks, g as Ws, a as Hs } from "./assets/modules/menuTabs-DDGkYuvg.js";
20
- import { _ as Qs } from "./assets/modules/index-DWnhNqJu.js";
12
+ import { d as He } from "./assets/modules/uploadList-DlbvQOtR.js";
13
+ import { C as br, U as xr, a as _r, p as yr } from "./assets/modules/uploadList-DlbvQOtR.js";
14
+ import { c as je } from "./assets/modules/index-Dz624mC-.js";
15
+ import { _ as wr, h as Cr, b as Sr, a as Tr, d as $r, e as Ir, g as Dr, f as Er, n as Pr, p as Fr, t as Nr, v as Mr } from "./assets/modules/index-Dz624mC-.js";
16
+ import { _ as A } from "./assets/modules/index-CX7vtghj.js";
17
+ import { _ as U } from "./assets/modules/toolIcon-B2btIpdL.js";
18
+ import { a as Rr } from "./assets/modules/toolIcon-B2btIpdL.js";
19
+ import { _ as Ar, b as Lr, c as zr, d as Ur, e as Vr, I as Yr, f as Kr, g as Wr, a as Hr } from "./assets/modules/menuTabs-BwAVx2tx.js";
20
+ import { _ as Qr } from "./assets/modules/index-DrGkF0qX.js";
21
21
  import { _ as q } from "./assets/modules/_plugin-vue_export-helper-CHgC5LLL.js";
22
- const Te = (s, t, e, a = "remove") => {
22
+ const $e = (r, t, e, a = "remove") => {
23
23
  if (!e)
24
24
  if (a === "disable") {
25
25
  const n = t.component;
26
- n ? n.props.disabled = !0 : (t.el, s.setAttribute("disabled", "disabled"), s.disabled = !0), s.classList.add("disabled");
26
+ n ? n.props.disabled = !0 : (t.el, r.setAttribute("disabled", "disabled"), r.disabled = !0), r.classList.add("disabled");
27
27
  } else {
28
- const n = document.createComment("No Permission"), i = s.parentNode;
28
+ const n = document.createComment("No Permission"), i = r.parentNode;
29
29
  if (i) {
30
- const u = t.component;
31
- u ? u.props.style = { display: "none" } : i.replaceChild(n, s);
30
+ const c = t.component;
31
+ c ? c.props.style = { display: "none" } : i.replaceChild(n, r);
32
32
  }
33
33
  }
34
- }, $e = (s) => {
35
- var u, p;
36
- const t = Ee(), { url: e, role: a, permit: n } = s;
34
+ }, Ie = (r) => {
35
+ var c, p;
36
+ const t = Pe(), { url: e, role: a, permit: n } = r;
37
37
  if (Z(a) && Z(n))
38
38
  return !0;
39
- const i = e ?? ((p = (u = window.location.hash) == null ? void 0 : u.split("#")) == null ? void 0 : p[1]) ?? window.location.pathname;
40
- if (we.VITE_PERMISSION_MODE === "role")
39
+ const i = e ?? ((p = (c = window.location.hash) == null ? void 0 : c.split("#")) == null ? void 0 : p[1]) ?? window.location.pathname;
40
+ if (Ce.VITE_PERMISSION_MODE === "role")
41
41
  return Z(a) ? !0 : t.hasRole(a);
42
- if (we.VITE_PERMISSION_MODE === "permit") {
42
+ if (Ce.VITE_PERMISSION_MODE === "permit") {
43
43
  let d = !1, o = !1;
44
44
  return Z(a) || (d = t.hasRole(a)), t.isAdmin() ? d : (Z(n) || (o = t.hasPermit(i, n)), d || o);
45
45
  }
46
46
  return !1;
47
47
  }, Ka = {
48
- mounted(s, t, e) {
49
- const a = t.value || {}, n = t.arg || "remove", i = a.behavior || n, u = $e(a);
50
- Te(s, e, u, i);
48
+ mounted(r, t, e) {
49
+ const a = t.value || {}, n = t.arg || "remove", i = a.behavior || n, c = Ie(a);
50
+ $e(r, e, c, i);
51
51
  },
52
- updated(s, t, e) {
53
- const a = t.value || {}, n = t.arg || "remove", i = a.behavior || n, u = $e(a);
54
- Te(s, e, u, i);
52
+ updated(r, t, e) {
53
+ const a = t.value || {}, n = t.arg || "remove", i = a.behavior || n, c = Ie(a);
54
+ $e(r, e, c, i);
55
55
  }
56
56
  }, Wa = {
57
- mounted: (s, t) => {
58
- s.addEventListener("keydown", (e) => {
57
+ mounted: (r, t) => {
58
+ r.addEventListener("keydown", (e) => {
59
59
  e.key === "Enter" && t.value();
60
60
  });
61
61
  },
62
- unmounted: (s) => {
63
- s.removeEventListener("keydown", () => {
62
+ unmounted: (r) => {
63
+ r.removeEventListener("keydown", () => {
64
64
  });
65
65
  }
66
66
  }, de = {
67
67
  auth: Ka,
68
68
  submit: Wa
69
- }, Gt = (s, t) => ((t || Object.keys(de)).forEach((a) => {
70
- a in de && s.directive(a, de[a]);
71
- }), s), W = (s, t) => {
72
- const e = s.find((a) => a.key === t);
69
+ }, Gt = (r, t) => ((t || Object.keys(de)).forEach((a) => {
70
+ a in de && r.directive(a, de[a]);
71
+ }), r), W = (r, t) => {
72
+ const e = r.find((a) => a.key === t);
73
73
  if (e)
74
74
  return e;
75
- for (const a of s)
75
+ for (const a of r)
76
76
  if (a.children) {
77
77
  const n = W(a.children, t);
78
78
  if (n)
79
79
  return n;
80
80
  }
81
- }, ye = (s, t, e) => {
81
+ }, ke = (r, t, e) => {
82
82
  const a = [], n = [];
83
- return e || (e = [...s]), e.length && e.forEach((i, u) => {
83
+ return e || (e = [...r]), e.length && e.forEach((i, c) => {
84
84
  let p;
85
85
  if (typeof i == "string") {
86
- const d = W(s, i);
86
+ const d = W(r, i);
87
87
  p = d ? { ...d } : { key: i, label: i };
88
88
  } else {
89
- const d = W(s, i.key);
89
+ const d = W(r, i.key);
90
90
  p = d ? { ...d, ...i } : { ...i };
91
91
  }
92
92
  p.click || (p.click = (d, o, f) => {
93
93
  o && (o.rowData.value = f), p.formVisible ? (p.formVisible.value = !1, setTimeout(() => {
94
94
  p.formVisible.value = !0;
95
95
  }, 1)) : he.warning("未配置点击处理事件!");
96
- }), t === 0 || u < t ? a.push(p) : n.push(p);
96
+ }), t === 0 || c < t ? a.push(p) : n.push(p);
97
97
  }), { buttons: a, menus: n };
98
- }, H = (s, t) => s.disabled && typeof s.disabled == "function" ? s.disabled(t) : s.disabled, G = (s, t) => s.visible && typeof s.visible == "function" ? s.visible(t) : s.visible ?? !0, Ha = (s, t) => {
98
+ }, H = (r, t) => r.disabled && typeof r.disabled == "function" ? r.disabled(t) : r.disabled, G = (r, t) => r.visible && typeof r.visible == "function" ? r.visible(t) : r.visible ?? !0, Ha = (r, t) => {
99
99
  t.reload.value = !0;
100
- }, ja = (s, t) => {
100
+ }, ja = (r, t) => {
101
101
  t.searchBar.value = !t.searchBar.value;
102
- }, Qa = (s, t) => {
102
+ }, Qa = (r, t) => {
103
103
  switch (t.tableSize.value) {
104
104
  case "large":
105
105
  t.tableSize.value = "middle";
@@ -111,24 +111,24 @@ const Te = (s, t, e, a = "remove") => {
111
111
  t.tableSize.value = "large";
112
112
  break;
113
113
  }
114
- }, qa = (s, t) => {
114
+ }, qa = (r, t) => {
115
115
  t.selectable.value = !t.selectable.value, t.selectable.value || (t.selectKeys.value = [], t.selectRows.value = []);
116
- }, Ga = (s, t) => {
116
+ }, Ga = (r, t) => {
117
117
  t.rowExpand.value = !t.rowExpand.value;
118
- }, Ie = (s, t) => {
118
+ }, De = (r, t) => {
119
119
  t.selectable.value = !t.selectable.value;
120
- }, V = (s, t, e, a, n) => {
121
- (!s.confirm || n) && s.click && (t ? s.click(t, e, a) : s.click(null, e, a)), Xa(s);
122
- }, Ja = (s, t) => {
120
+ }, V = (r, t, e, a, n) => {
121
+ (!r.confirm || n) && r.click && (t ? r.click(t, e, a) : r.click(null, e, a)), Xa(r);
122
+ }, Ja = (r, t) => {
123
123
  t.selectable.value = !t.selectable.value;
124
- }, je = () => {
125
- const s = me();
126
- s.setFullscreen(!s.fullscreen);
127
- }, Xa = (s, t) => {
128
- (s.icons || s.labels) && (s.iconStatus = s.iconStatus || 0, s.iconStatus += 1, s.labels && s.labels.length && (s.label = s.labels[s.iconStatus % s.labels.length]), s.icons && s.icons.length && (s.icon = s.icons[s.iconStatus % s.icons.length]));
129
- }, Za = (s, t) => {
130
- t ? delete s.visible : s.visible = !1;
131
- }, De = [
124
+ }, Qe = () => {
125
+ const r = me();
126
+ r.setFullscreen(!r.fullscreen);
127
+ }, Xa = (r, t) => {
128
+ (r.icons || r.labels) && (r.iconStatus = r.iconStatus || 0, r.iconStatus += 1, r.labels && r.labels.length && (r.label = r.labels[r.iconStatus % r.labels.length]), r.icons && r.icons.length && (r.icon = r.icons[r.iconStatus % r.icons.length]));
129
+ }, Za = (r, t) => {
130
+ t ? delete r.visible : r.visible = !1;
131
+ }, Ee = [
132
132
  {
133
133
  key: "Reload",
134
134
  label: "刷新表格",
@@ -173,12 +173,12 @@ const Te = (s, t, e, a = "remove") => {
173
173
  {
174
174
  key: "tool.export.excel.all",
175
175
  label: "全部记录",
176
- click: Ie
176
+ click: De
177
177
  },
178
178
  {
179
179
  key: "tool.export.excel.selected",
180
180
  label: "选中的记录",
181
- click: Ie
181
+ click: De
182
182
  }
183
183
  ]
184
184
  },
@@ -210,19 +210,19 @@ const Te = (s, t, e, a = "remove") => {
210
210
  icon: "icon-fullscreen",
211
211
  iconStatus: 0,
212
212
  icons: ["icon-fullscreen", "icon-exitscreen"],
213
- click: je
213
+ click: Qe
214
214
  }
215
- ], et = (s) => {
216
- if (!s.tools || s.tools.length > 0) {
215
+ ], et = (r) => {
216
+ if (!r.tools || r.tools.length > 0) {
217
217
  const t = [];
218
- return s.tools ? t.push(...s.tools) : t.push(...De), { tools: ye(De, 0, t).buttons };
218
+ return r.tools ? t.push(...r.tools) : t.push(...Ee), { tools: ke(Ee, 0, t).buttons };
219
219
  }
220
220
  return {
221
221
  tools: []
222
222
  };
223
223
  };
224
- var at = /* @__PURE__ */ ((s) => (s.SYS_CONFIG = "SYS_CONFIG_", s.APP_MENU = "APP_MENU_", s.DICT_TYPE = "DICT_TYPE_", s.HOST_INFO = "HOST_INFO_", s.APP_PERMITS = "APP_PERMITS_", s.USER_SETTINGS = "USER_SETTINGS_", s.DICT_DATA = "DICT_DATA_", s.COMMON_OPTIONS = "COMMON_OPTIONS_", s))(at || {});
225
- class Qe {
224
+ var at = /* @__PURE__ */ ((r) => (r.SYS_CONFIG = "SYS_CONFIG_", r.APP_MENU = "APP_MENU_", r.DICT_TYPE = "DICT_TYPE_", r.HOST_INFO = "HOST_INFO_", r.APP_PERMITS = "APP_PERMITS_", r.USER_SETTINGS = "USER_SETTINGS_", r.DICT_DATA = "DICT_DATA_", r.COMMON_OPTIONS = "COMMON_OPTIONS_", r))(at || {});
225
+ class qe {
226
226
  /**
227
227
  * 设置缓存数据(带服务器时间)
228
228
  */
@@ -231,26 +231,26 @@ class Qe {
231
231
  data: e,
232
232
  lastTime: a
233
233
  };
234
- re.set({ key: t, storage: "local" }, n);
234
+ se.set({ key: t, storage: "local" }, n);
235
235
  }
236
236
  /**
237
237
  * 设置缓存数据
238
238
  */
239
239
  static setData(t, e) {
240
- re.set({ key: t, storage: "local" }, e);
240
+ se.set({ key: t, storage: "local" }, e);
241
241
  }
242
242
  /**
243
243
  * 获取缓存数据
244
244
  */
245
245
  static getData(t) {
246
- const e = re.get({ key: t, storage: "local" });
247
- return e && Qe.isTimedData(e) ? e.data : e ?? null;
246
+ const e = se.get({ key: t, storage: "local" });
247
+ return e && qe.isTimedData(e) ? e.data : e ?? null;
248
248
  }
249
249
  /**
250
250
  * 清除缓存
251
251
  */
252
252
  static remove(t) {
253
- re.remove({ key: t, storage: "local" });
253
+ se.remove({ key: t, storage: "local" });
254
254
  }
255
255
  /**
256
256
  * 清理指定前缀的缓存 (基于 localStorage 实现,因为 FrontCache 未提供此方法)
@@ -279,7 +279,7 @@ class Qe {
279
279
  }
280
280
  async function Jt() {
281
281
  try {
282
- const s = await Oe(
282
+ const r = await Ae(
283
283
  {
284
284
  api: "PLATFORM_API",
285
285
  url: "/api/SysCacheSvr/getLastTime",
@@ -287,18 +287,18 @@ async function Jt() {
287
287
  },
288
288
  {}
289
289
  );
290
- if ((s == null ? void 0 : s.status) === Ae.SUCCESS) {
291
- const t = s.data;
290
+ if ((r == null ? void 0 : r.status) === Le.SUCCESS) {
291
+ const t = r.data;
292
292
  Object.keys(t).forEach((e) => {
293
293
  const a = t[e];
294
294
  ["local", "session"].forEach((i) => {
295
- const u = i === "local" ? localStorage : sessionStorage;
296
- for (let p = 0; p < u.length; p++) {
297
- const d = u.key(p);
295
+ const c = i === "local" ? localStorage : sessionStorage;
296
+ for (let p = 0; p < c.length; p++) {
297
+ const d = c.key(p);
298
298
  if (d && d.endsWith(e))
299
299
  try {
300
- const o = JSON.parse(u.getItem(d));
301
- o && typeof o == "object" && "lastTime" in o && typeof o.lastTime == "number" && o.lastTime !== a && u.removeItem(d);
300
+ const o = JSON.parse(c.getItem(d));
301
+ o && typeof o == "object" && "lastTime" in o && typeof o.lastTime == "number" && o.lastTime !== a && c.removeItem(d);
302
302
  } catch {
303
303
  continue;
304
304
  }
@@ -306,12 +306,12 @@ async function Jt() {
306
306
  });
307
307
  });
308
308
  }
309
- } catch (s) {
310
- console.error("检查缓存更新失败", s);
309
+ } catch (r) {
310
+ console.error("检查缓存更新失败", r);
311
311
  }
312
312
  }
313
- const Xt = async (s, t) => {
314
- const e = await He(s, t);
313
+ const Xt = async (r, t) => {
314
+ const e = await je(r, t);
315
315
  if (e.success)
316
316
  return {
317
317
  blobUrl: e.blobUrl,
@@ -320,9 +320,9 @@ const Xt = async (s, t) => {
320
320
  // 不再返回blob对象,使用URL即可
321
321
  };
322
322
  throw new Error(e.error || "CSV转Excel失败");
323
- }, Zt = async (s, t) => {
323
+ }, Zt = async (r, t) => {
324
324
  try {
325
- const a = new TextDecoder("utf-8").decode(s), n = await He(a, t);
325
+ const a = new TextDecoder("utf-8").decode(r), n = await je(a, t);
326
326
  return {
327
327
  success: n.success,
328
328
  blobUrl: n.blobUrl,
@@ -337,63 +337,63 @@ const Xt = async (s, t) => {
337
337
  error: e instanceof Error ? e.message : "未知错误"
338
338
  };
339
339
  }
340
- }, el = async (s, t, e) => {
340
+ }, el = async (r, t, e) => {
341
341
  try {
342
- const n = (await import("@json2csv/plainjs")).Parser, i = qe(s), u = t.filter((v) => v.visible !== !1 && v.export !== !1), p = u.map((v) => ({
342
+ const n = (await import("@json2csv/plainjs")).Parser, i = Ge(r), c = t.filter((v) => v.visible !== !1 && v.export !== !1), p = c.map((v) => ({
343
343
  label: v.title,
344
344
  value: v.dataIndex || v.key || ""
345
345
  })), d = e.map((v) => {
346
- const c = { ...v };
347
- return u.forEach((h) => {
346
+ const u = { ...v };
347
+ return c.forEach((h) => {
348
348
  const y = h.dataIndex || h.key;
349
- y && h.customRender && (c[y] = h.customRender(v[y], v));
350
- }), c;
351
- }), f = new n({ fields: p }).parse(d), r = new Blob([`\uFEFF${f}`], { type: "text/csv" });
352
- We(r, i);
349
+ y && h.customRender && (u[y] = h.customRender(v[y], v));
350
+ }), u;
351
+ }), f = new n({ fields: p }).parse(d), s = new Blob([`\uFEFF${f}`], { type: "text/csv" });
352
+ He(s, i);
353
353
  } catch (a) {
354
354
  console.error("导出失败:", a), he.error("文件导出失败,请稍后重试");
355
355
  }
356
- }, qe = (s) => {
356
+ }, Ge = (r) => {
357
357
  const t = /\{([^}]+)\}/g;
358
- return s.replace(t, (e, a) => fe().format(a));
359
- }, al = async (s, t, e, a) => {
358
+ return r.replace(t, (e, a) => fe().format(a));
359
+ }, al = async (r, t, e, a) => {
360
360
  try {
361
- const i = (await import("@json2csv/plainjs")).Parser, u = qe(s), p = t.filter((r) => r.visible !== !1), d = p.map((r) => ({
362
- label: r.title,
363
- value: r.dataIndex || r.key || ""
361
+ const i = (await import("@json2csv/plainjs")).Parser, c = Ge(r), p = t.filter((s) => s.visible !== !1), d = p.map((s) => ({
362
+ label: s.title,
363
+ value: s.dataIndex || s.key || ""
364
364
  }));
365
365
  let o = e.page, f = e.gridQuery;
366
- return a.api || (a.api = o.api), a.authorize === void 0 && (a.authorize = o.authorize), e.isGridLoading.value = !0, Oe(a, f).then((r) => {
367
- if (e.isGridLoading.value = !1, (r == null ? void 0 : r.status) === Ae.SUCCESS) {
368
- if (r.data) {
369
- const c = r.data.map((M) => {
370
- const _ = { ...M };
371
- return p.forEach((E) => {
372
- const R = E.dataIndex || E.key;
373
- R && E.customRender && (_[R] = E.customRender(M[R], M));
366
+ return a.api || (a.api = o.api), a.authorize === void 0 && (a.authorize = o.authorize), e.isGridLoading.value = !0, Ae(a, f).then((s) => {
367
+ if (e.isGridLoading.value = !1, (s == null ? void 0 : s.status) === Le.SUCCESS) {
368
+ if (s.data) {
369
+ const u = s.data.map((E) => {
370
+ const _ = { ...E };
371
+ return p.forEach((P) => {
372
+ const R = P.dataIndex || P.key;
373
+ R && P.customRender && (_[R] = P.customRender(E[R], E));
374
374
  }), _;
375
- }), y = new i({ fields: d }).parse(c), $ = new Blob([`\uFEFF${y}`], { type: "text/csv" });
376
- We($, u);
375
+ }), y = new i({ fields: d }).parse(u), $ = new Blob([`\uFEFF${y}`], { type: "text/csv" });
376
+ He($, c);
377
377
  }
378
- } else if ((r == null ? void 0 : r.errno) == Xe) {
379
- Ee().logout(!1);
378
+ } else if ((s == null ? void 0 : s.errno) == Ze) {
379
+ Pe().logout(!1);
380
380
  return;
381
381
  }
382
382
  });
383
383
  } catch (n) {
384
384
  console.error("导出失败:", n), he.error("文件导出失败,请稍后重试");
385
385
  }
386
- }, tl = /* @__PURE__ */ C({
386
+ }, tl = /* @__PURE__ */ S({
387
387
  __name: "fullscreen",
388
- setup(s) {
388
+ setup(r) {
389
389
  const t = me();
390
390
  return (e, a) => (m(), b(U, {
391
- onClick: ae(l(je), ["stop"]),
391
+ onClick: ae(l(Qe), ["stop"]),
392
392
  icon: l(t).fullscreen ? "icon-exitscreen" : "icon-fullscreen",
393
393
  class: "w-[17px] h-[17px]"
394
394
  }, null, 8, ["onClick", "icon"]));
395
395
  }
396
- }), tt = { class: "ml-2" }, lt = /* @__PURE__ */ C({
396
+ }), tt = { class: "ml-2" }, lt = /* @__PURE__ */ S({
397
397
  inheritAttrs: !1,
398
398
  __name: "helper",
399
399
  props: {
@@ -402,7 +402,7 @@ const Xt = async (s, t) => {
402
402
  size: {},
403
403
  placement: {}
404
404
  },
405
- setup(s) {
405
+ setup(r) {
406
406
  const t = X();
407
407
  return (e, a) => (m(), b(l(Ta), {
408
408
  placement: e.placement ?? "topRight"
@@ -410,13 +410,13 @@ const Xt = async (s, t) => {
410
410
  content: g(() => [
411
411
  D(e.$slots, "default", {}, () => [
412
412
  I("div", {
413
- class: P(["text-[14px]", [e.maxWidth]])
414
- }, F(e.text), 3)
413
+ class: F(["text-[14px]", [e.maxWidth]])
414
+ }, N(e.text), 3)
415
415
  ])
416
416
  ]),
417
417
  default: g(() => [
418
418
  I("span", tt, [
419
- w(U, N({
419
+ w(U, M({
420
420
  icon: "icon-question-circle",
421
421
  class: ["text-[#888]", [e.size ? "w-" + e.size + " h-" + e.size : "w-5 h-5"]]
422
422
  }, l(t)), null, 16, ["class"])
@@ -425,7 +425,7 @@ const Xt = async (s, t) => {
425
425
  _: 3
426
426
  }, 8, ["placement"]));
427
427
  }
428
- }), ll = /* @__PURE__ */ C({
428
+ }), ll = /* @__PURE__ */ S({
429
429
  __name: "layoutIcon",
430
430
  props: {
431
431
  icon: {
@@ -435,21 +435,21 @@ const Xt = async (s, t) => {
435
435
  type: Array
436
436
  }
437
437
  },
438
- setup(s) {
439
- const t = s, a = Ze({
440
- iconUrl: `${_a.MICROLAYOUT_ICONS}`,
438
+ setup(r) {
439
+ const t = r, a = ea({
440
+ iconUrl: `${ya.MICROLAYOUT_ICONS}`,
441
441
  monoColor: !0,
442
442
  icon: t.icon,
443
443
  icons: t.icons
444
444
  });
445
- return (n, i) => s.icon || s.icons ? (m(), b(l(a), N({
445
+ return (n, i) => r.icon || r.icons ? (m(), b(l(a), M({
446
446
  key: 0,
447
- icon: s.icon,
448
- icons: s.icons,
447
+ icon: r.icon,
448
+ icons: r.icons,
449
449
  class: ["align-middle"]
450
450
  }, n.$attrs), null, 16, ["icon", "icons"])) : k("", !0);
451
451
  }
452
- }), st = { class: "hover:bg-gray-200 w-[24px] h-[24px] rounded-md" }, sl = /* @__PURE__ */ C({
452
+ }), rt = { class: "hover:bg-gray-200 w-[24px] h-[24px] rounded-md" }, rl = /* @__PURE__ */ S({
453
453
  __name: "index",
454
454
  props: {
455
455
  saveText: {},
@@ -459,8 +459,8 @@ const Xt = async (s, t) => {
459
459
  drawerSave: { type: Function },
460
460
  drawerSaveAs: { type: Function }
461
461
  },
462
- setup(s) {
463
- const { useToken: t } = ze, { token: e } = t(), a = x(!1), n = s, i = n.editorCtrl;
462
+ setup(r) {
463
+ const { useToken: t } = Ue, { token: e } = t(), a = x(!1), n = r, i = n.editorCtrl;
464
464
  ge(j.EditorControl, i), T(
465
465
  () => i.visible.value,
466
466
  (o) => {
@@ -469,16 +469,16 @@ const Xt = async (s, t) => {
469
469
  ), K(() => {
470
470
  a.value = i.visible.value ?? !1;
471
471
  });
472
- const u = () => {
473
- n.drawerSave ? n.drawerSave() : i && Pe(i);
472
+ const c = () => {
473
+ n.drawerSave ? n.drawerSave() : i && Fe(i);
474
474
  }, p = () => {
475
- n.drawerSaveAs ? n.drawerSaveAs() : i && ea(i);
475
+ n.drawerSaveAs ? n.drawerSaveAs() : i && aa(i);
476
476
  }, d = () => {
477
- aa(i);
477
+ ta(i);
478
478
  };
479
479
  return (o, f) => (m(), b(l($a), {
480
480
  open: a.value,
481
- "onUpdate:open": f[0] || (f[0] = (r) => a.value = r),
481
+ "onUpdate:open": f[0] || (f[0] = (s) => a.value = s),
482
482
  "get-container": !1,
483
483
  closable: !1,
484
484
  "header-style": {
@@ -501,7 +501,7 @@ const Xt = async (s, t) => {
501
501
  }, {
502
502
  extra: g(() => [
503
503
  D(o.$slots, "extra", {}, () => [
504
- I("div", st, [
504
+ I("div", rt, [
505
505
  w(l(U), {
506
506
  class: "top-[-2px] left-[2px] w-6 h-6",
507
507
  icon: "icon-new",
@@ -527,7 +527,7 @@ const Xt = async (s, t) => {
527
527
  onClick: d
528
528
  }, {
529
529
  default: g(() => [
530
- B(F(o.cancelText ?? "取消"), 1)
530
+ B(N(o.cancelText ?? "取消"), 1)
531
531
  ]),
532
532
  _: 1
533
533
  })) : k("", !0),
@@ -538,18 +538,18 @@ const Xt = async (s, t) => {
538
538
  loading: l(i).isFormSaving.value
539
539
  }, {
540
540
  default: g(() => [
541
- B(F(o.saveAsText ?? "另存为"), 1)
541
+ B(N(o.saveAsText ?? "另存为"), 1)
542
542
  ]),
543
543
  _: 1
544
544
  }, 8, ["loading"])) : k("", !0),
545
545
  o.saveText !== "" && l(i).saveBtnVisible !== !1 ? (m(), b(l(A), {
546
546
  key: 2,
547
- onClick: u,
547
+ onClick: c,
548
548
  type: "primary",
549
549
  loading: l(i).isFormSaving.value
550
550
  }, {
551
551
  default: g(() => [
552
- B(F(o.saveText ?? "保存"), 1)
552
+ B(N(o.saveText ?? "保存"), 1)
553
553
  ]),
554
554
  _: 1
555
555
  }, 8, ["loading"])) : k("", !0)
@@ -561,18 +561,18 @@ const Xt = async (s, t) => {
561
561
  _: 3
562
562
  }, 8, ["open", "header-style"]));
563
563
  }
564
- }), rl = /* @__PURE__ */ C({
564
+ }), sl = /* @__PURE__ */ S({
565
565
  __name: "index",
566
566
  props: {
567
567
  labelWidth: {},
568
568
  wrapperWidth: {},
569
569
  editorCtrl: {}
570
570
  },
571
- setup(s) {
572
- const t = s, e = t.editorCtrl ?? ne(j.EditorControl, void 0);
571
+ setup(r) {
572
+ const t = r, e = t.editorCtrl ?? ne(j.EditorControl, void 0);
573
573
  return ge(j.LabelWidth, t.labelWidth), (a, n) => {
574
574
  const i = le("submit");
575
- return Q((m(), b(l(Ue), {
575
+ return Q((m(), b(l(Ve), {
576
576
  "label-col": { flex: t.labelWidth ?? "85px" },
577
577
  "wrapper-col": {
578
578
  flex: t.wrapperWidth ?? "1 0 280px"
@@ -590,16 +590,16 @@ const Xt = async (s, t) => {
590
590
  [
591
591
  i,
592
592
  () => {
593
- l(e) && l(Pe)(l(e));
593
+ l(e) && l(Fe)(l(e));
594
594
  }
595
595
  ]
596
596
  ]);
597
597
  };
598
598
  }
599
- }), rt = {
599
+ }), st = {
600
600
  key: 0,
601
601
  class: "flex-grow"
602
- }, ot = { class: "w-8 mt-[-2px]" }, ol = /* @__PURE__ */ C({
602
+ }, ot = { class: "w-8 mt-[-2px]" }, ol = /* @__PURE__ */ S({
603
603
  inheritAttrs: !1,
604
604
  __name: "formItem",
605
605
  props: {
@@ -610,19 +610,19 @@ const Xt = async (s, t) => {
610
610
  nextLine: { type: Boolean },
611
611
  bottomMargin: {}
612
612
  },
613
- setup(s) {
614
- const t = s, e = X(), a = ne(j.EditorControl, void 0), n = ne(j.LabelWidth, "85px") ?? "85px", i = Fe(t, a), u = x(!1);
613
+ setup(r) {
614
+ const t = r, e = X(), a = ne(j.EditorControl, void 0), n = ne(j.LabelWidth, "85px") ?? "85px", i = Ne(t, a), c = x(!1);
615
615
  setTimeout(() => {
616
- u.value = !0;
616
+ c.value = !0;
617
617
  }, 30);
618
618
  const p = (o, f) => {
619
619
  if (!f)
620
620
  return;
621
- const [r, ...v] = o;
621
+ const [s, ...v] = o;
622
622
  if (o.length === 1)
623
- return f[r];
624
- if (f[r])
625
- return p(v, f[r].fields);
623
+ return f[s];
624
+ if (f[s])
625
+ return p(v, f[s].fields);
626
626
  }, d = J(() => {
627
627
  var f;
628
628
  if (!t.rule)
@@ -630,24 +630,24 @@ const Xt = async (s, t) => {
630
630
  const o = p(t.rule.split("."), (f = a == null ? void 0 : a.formRules) == null ? void 0 : f.value);
631
631
  return o ? (o.required || (i.value.errClass = "", i.value.msg = ""), o.required ?? !0) : (Ia.error(`"${t.label}" 的验证规则 \`${t.rule}\` 不存在`), i.value.errClass = "text-[#ff4d4f]", i.value.msg = `规则 \`${t.rule}\` 不存在,请检查代码!`, !0);
632
632
  });
633
- return (o, f) => (m(), S("div", {
634
- class: P(["relative", o.bottomMargin ? o.bottomMargin : "mb-1"])
633
+ return (o, f) => (m(), C("div", {
634
+ class: F(["relative", o.bottomMargin ? o.bottomMargin : "mb-1"])
635
635
  }, [
636
- u.value ? (m(), b(l(Ve), N({
636
+ c.value ? (m(), b(l(Ye), M({
637
637
  key: 0,
638
638
  required: d.value,
639
639
  class: ["relative", [o.nextLine ? "mb-0" : o.rule ? "" : "mb-3"]]
640
640
  }, l(e)), {
641
641
  label: g(() => [
642
642
  I("span", {
643
- class: P([l(i).errClass ? "text-[#ff4d4f]" : "", "w-full"])
644
- }, F(o.label), 3)
643
+ class: F([l(i).errClass ? "text-[#ff4d4f]" : "", "w-full"])
644
+ }, N(o.label), 3)
645
645
  ]),
646
646
  default: g(() => [
647
647
  I("div", {
648
- class: P(["flex items-center", o.width ? o.width : "w-full"])
648
+ class: F(["flex items-center", o.width ? o.width : "w-full"])
649
649
  }, [
650
- o.nextLine ? k("", !0) : (m(), S("div", rt, [
650
+ o.nextLine ? k("", !0) : (m(), C("div", st, [
651
651
  D(o.$slots, "default")
652
652
  ])),
653
653
  I("div", ot, [
@@ -662,23 +662,23 @@ const Xt = async (s, t) => {
662
662
  ]),
663
663
  _: 3
664
664
  }, 16, ["required", "class"])) : k("", !0),
665
- o.nextLine ? (m(), S("div", {
665
+ o.nextLine ? (m(), C("div", {
666
666
  key: 1,
667
- class: P(["w-[95%] flex items-center relative", [o.nextLine ? o.rule ? "mb-7" : "mb-3" : ""]])
667
+ class: F(["w-[95%] flex items-center relative", [o.nextLine ? o.rule ? "mb-7" : "mb-3" : ""]])
668
668
  }, [
669
669
  D(o.$slots, "default")
670
670
  ], 2)) : k("", !0),
671
- l(i).errClass ? (m(), S("span", {
671
+ l(i).errClass ? (m(), C("span", {
672
672
  key: 2,
673
673
  style: be({ left: o.nextLine ? "2px" : l(n) }),
674
674
  class: "absolute bottom-[3px] text-[12px] text-[#ff4d4fcc]"
675
- }, F(l(i).msg), 5)) : k("", !0)
675
+ }, N(l(i).msg), 5)) : k("", !0)
676
676
  ], 2));
677
677
  }
678
- }), nt = { class: "w-1/3 relative mb-1" }, it = { class: "flex items-center w-[90%]" }, ct = { class: "flex-grow pl-1" }, ut = {
678
+ }), nt = { class: "w-1/3 relative mb-1" }, it = { class: "flex items-center w-[90%]" }, ut = { class: "flex-grow pl-1" }, ct = {
679
679
  key: 0,
680
680
  class: "absolute bottom-[3px] left-[85px] text-[12px] text-[#ff4d4fcc] block"
681
- }, pe = /* @__PURE__ */ C({
681
+ }, pe = /* @__PURE__ */ S({
682
682
  inheritAttrs: !1,
683
683
  __name: "searchItem",
684
684
  props: {
@@ -686,19 +686,19 @@ const Xt = async (s, t) => {
686
686
  width: {},
687
687
  rule: {}
688
688
  },
689
- setup(s) {
690
- const t = s, e = X(), a = ne(j.EditorControl, void 0), n = Fe(t, a);
691
- return (i, u) => (m(), S("div", nt, [
692
- w(l(Ve), N({
689
+ setup(r) {
690
+ const t = r, e = X(), a = ne(j.EditorControl, void 0), n = Ne(t, a);
691
+ return (i, c) => (m(), C("div", nt, [
692
+ w(l(Ye), M({
693
693
  required: i.rule !== void 0,
694
694
  class: "w-[90%] relative"
695
695
  }, l(e), {
696
696
  class: [i.rule ? "" : "mb-3", i.width],
697
697
  labelCol: { span: 6 }
698
- }), Le({
698
+ }), ze({
699
699
  default: g(() => [
700
700
  I("div", it, [
701
- I("div", ct, [
701
+ I("div", ut, [
702
702
  D(i.$slots, "default")
703
703
  ])
704
704
  ])
@@ -709,34 +709,37 @@ const Xt = async (s, t) => {
709
709
  name: "label",
710
710
  fn: g(() => [
711
711
  I("span", {
712
- class: P([l(n).errClass ? "text-[#ff4d4f]" : "", "w-full"])
713
- }, F(i.label), 3)
712
+ class: F([l(n).errClass ? "text-[#ff4d4f]" : "", "w-full"])
713
+ }, N(i.label), 3)
714
714
  ]),
715
715
  key: "0"
716
716
  } : void 0
717
717
  ]), 1040, ["required", "class"]),
718
- l(n).msg ? (m(), S("span", ut, F(l(n).msg), 1)) : k("", !0)
718
+ l(n).msg ? (m(), C("span", ct, N(l(n).msg), 1)) : k("", !0)
719
719
  ]));
720
720
  }
721
- }), nl = /* @__PURE__ */ C({
721
+ }), nl = /* @__PURE__ */ S({
722
722
  __name: "index",
723
723
  props: {
724
724
  search: {},
725
725
  gridCtrl: {},
726
726
  likeFields: {}
727
727
  },
728
- emits: ["update:search", "reset"],
729
- setup(s, { emit: t }) {
730
- const e = s, a = t, n = x(0), i = x(0), u = x(0), p = (c) => {
728
+ emits: ["update:search", "onsearch", "onreset"],
729
+ setup(r, { emit: t }) {
730
+ const e = r, a = t, n = x(0), i = x(0), c = x(0), p = (u) => {
731
731
  let h = 0;
732
- for (let y = 0; y < c.length; y++)
733
- typeof c[y].type == "object" && h++;
732
+ for (let y = 0; y < u.length; y++)
733
+ typeof u[y].type == "object" && h++;
734
734
  return h;
735
- }, d = ya(), o = () => {
736
- i.value = 0, u.value = 0, d.default && (i.value = p(d.default({}))), e.gridCtrl.searchBar && d.control && (u.value = p(d.control({}))), n.value = 2 - (i.value + u.value) % 3;
735
+ }, d = ka(), o = () => {
736
+ i.value = 0, c.value = 0, d.default && (i.value = p(d.default({}))), e.gridCtrl && e.gridCtrl.searchBar && d.control && (c.value = p(d.control({}))), n.value = 2 - (i.value + c.value) % 3;
737
737
  };
738
738
  T(
739
- () => e.gridCtrl.searchBar,
739
+ () => {
740
+ var u;
741
+ return (u = e.gridCtrl) == null ? void 0 : u.searchBar;
742
+ },
740
743
  () => {
741
744
  o();
742
745
  }
@@ -745,37 +748,37 @@ const Xt = async (s, t) => {
745
748
  K(() => {
746
749
  var h;
747
750
  o();
748
- let c = { ...e.search };
749
- e.gridCtrl.gridQuery = {
751
+ let u = { ...e.search };
752
+ e.gridCtrl && (e.gridCtrl.gridQuery = {
750
753
  ...e.gridCtrl.gridQuery,
751
754
  Query: {
752
755
  ...(h = e.gridCtrl.gridQuery) == null ? void 0 : h.Query,
753
- ...c
756
+ ...u
754
757
  }
755
- };
758
+ });
756
759
  });
757
- const r = () => {
760
+ const s = () => {
758
761
  var h;
759
- let c = { ...e.search };
762
+ let u = { ...e.search };
760
763
  if (e.likeFields)
761
764
  for (const y of e.likeFields)
762
- c[y] && (c[y] = { $like: "%" + c[y] + "%" });
763
- e.gridCtrl.gridQuery = {
765
+ u[y] && (u[y] = { $like: "%" + u[y] + "%" });
766
+ e.gridCtrl && (e.gridCtrl.gridQuery = {
764
767
  ...e.gridCtrl.gridQuery,
765
768
  Query: {
766
769
  ...(h = e.gridCtrl.gridQuery) == null ? void 0 : h.Query,
767
- ...c
770
+ ...u
768
771
  }
769
- }, e.gridCtrl.pageNo.value = 1, e.gridCtrl.reload.value = !0;
772
+ }, e.gridCtrl.pageNo.value = 1, e.gridCtrl.reload.value = !0), a("onsearch", u);
770
773
  }, v = () => {
771
- const c = JSON.parse(JSON.stringify(f));
774
+ const u = JSON.parse(JSON.stringify(f));
772
775
  for (const h in e.search)
773
- c[h] === void 0 && (c[h] = void 0);
774
- a("update:search", c), a("reset");
776
+ u[h] === void 0 && (u[h] = void 0);
777
+ a("update:search", u), a("onreset");
775
778
  };
776
- return (c, h) => {
779
+ return (u, h) => {
777
780
  const y = le("submit");
778
- return i.value + u.value > 0 ? Q((m(), b(l(Ue), {
781
+ return i.value + c.value > 0 ? Q((m(), b(l(Ve), {
779
782
  key: 0,
780
783
  "label-col": { flex: "60px" },
781
784
  style: {
@@ -784,67 +787,70 @@ const Xt = async (s, t) => {
784
787
  },
785
788
  class: "flex mb-[10px]"
786
789
  }, {
787
- default: g(() => [
788
- D(c.$slots, "default"),
789
- c.gridCtrl.searchBar ? D(c.$slots, "control", { key: 0 }) : k("", !0),
790
- n.value >= 1 ? (m(), b(pe, {
791
- key: 1,
792
- class: "w-1/3"
793
- })) : k("", !0),
794
- n.value >= 2 ? (m(), b(pe, {
795
- key: 2,
796
- class: "w-1/3"
797
- })) : k("", !0),
798
- i.value || c.gridCtrl.searchBar ? (m(), b(pe, {
799
- key: 3,
800
- class: "w-1/3 flex justify-end text-right pr-5",
801
- "wrapper-col": { flex: "auto" }
802
- }, {
803
- default: g(() => [
804
- w(l(te), null, {
805
- default: g(() => [
806
- w(l(A), {
807
- type: "primary",
808
- onClick: r,
809
- icon: "icon-search"
810
- }, {
811
- default: g(() => h[0] || (h[0] = [
812
- B("搜索")
813
- ])),
814
- _: 1,
815
- __: [0]
816
- }),
817
- w(l(A), {
818
- onClick: v,
819
- icon: "icon-reset"
820
- }, {
821
- default: g(() => h[1] || (h[1] = [
822
- B("重置")
823
- ])),
824
- _: 1,
825
- __: [1]
826
- })
827
- ]),
828
- _: 1
829
- })
830
- ]),
831
- _: 1
832
- })) : k("", !0)
833
- ]),
790
+ default: g(() => {
791
+ var $, E;
792
+ return [
793
+ D(u.$slots, "default"),
794
+ ($ = u.gridCtrl) != null && $.searchBar ? D(u.$slots, "control", { key: 0 }) : k("", !0),
795
+ n.value >= 1 ? (m(), b(pe, {
796
+ key: 1,
797
+ class: "w-1/3"
798
+ })) : k("", !0),
799
+ n.value >= 2 ? (m(), b(pe, {
800
+ key: 2,
801
+ class: "w-1/3"
802
+ })) : k("", !0),
803
+ i.value || (E = u.gridCtrl) != null && E.searchBar ? (m(), b(pe, {
804
+ key: 3,
805
+ class: "w-1/3 flex justify-end text-right pr-5",
806
+ "wrapper-col": { flex: "auto" }
807
+ }, {
808
+ default: g(() => [
809
+ w(l(te), null, {
810
+ default: g(() => [
811
+ w(l(A), {
812
+ type: "primary",
813
+ onClick: s,
814
+ icon: "icon-search"
815
+ }, {
816
+ default: g(() => h[0] || (h[0] = [
817
+ B("搜索")
818
+ ])),
819
+ _: 1,
820
+ __: [0]
821
+ }),
822
+ w(l(A), {
823
+ onClick: v,
824
+ icon: "icon-reset"
825
+ }, {
826
+ default: g(() => h[1] || (h[1] = [
827
+ B("重置")
828
+ ])),
829
+ _: 1,
830
+ __: [1]
831
+ })
832
+ ]),
833
+ _: 1
834
+ })
835
+ ]),
836
+ _: 1
837
+ })) : k("", !0)
838
+ ];
839
+ }),
834
840
  _: 3
835
841
  })), [
836
- [y, r]
842
+ [y, s]
837
843
  ]) : k("", !0);
838
844
  };
839
845
  }
840
- }), dt = /* @__PURE__ */ C({
846
+ }), dt = /* @__PURE__ */ S({
841
847
  __name: "tableOperate",
842
848
  props: {
843
849
  record: {},
844
850
  gridCtrl: {}
845
851
  },
846
- setup(s) {
847
- const t = s, e = t.gridCtrl, a = J(() => ce.currentRoute.value.path), n = [
852
+ setup(r) {
853
+ const t = r, e = t.gridCtrl, a = J(() => ue.currentRoute.value.path), n = [
848
854
  {
849
855
  key: "Edit",
850
856
  label: "编辑",
@@ -852,7 +858,7 @@ const Xt = async (s, t) => {
852
858
  visible: !0,
853
859
  role: ["Super", "Admin"],
854
860
  permit: ":edit",
855
- click: () => ta(e, t.record)
861
+ click: () => la(e, t.record)
856
862
  },
857
863
  {
858
864
  key: "Delete",
@@ -864,9 +870,9 @@ const Xt = async (s, t) => {
864
870
  permit: ":delete",
865
871
  confirm: !0,
866
872
  confirmText: "是否删除此记录?",
867
- click: () => la(e, t.record)
873
+ click: () => ra(e, t.record)
868
874
  }
869
- ], { buttons: i, menus: u } = ye(n, 0, e.operates), p = (d) => {
875
+ ], { buttons: i, menus: c } = ke(n, 0, e.operates), p = (d) => {
870
876
  if (typeof d.disabled == "boolean")
871
877
  return d.disabled;
872
878
  if (typeof d.disabled == "function")
@@ -882,7 +888,7 @@ const Xt = async (s, t) => {
882
888
  };
883
889
  return (d, o) => {
884
890
  const f = le("auth");
885
- return m(), b(l(Ce), { theme: {
891
+ return m(), b(l(Te), { theme: {
886
892
  token: {
887
893
  fontSize: 13
888
894
  }
@@ -890,68 +896,68 @@ const Xt = async (s, t) => {
890
896
  default: g(() => [
891
897
  w(l(te), null, {
892
898
  default: g(() => [
893
- (m(!0), S(O, null, z(l(i), (r) => (m(), S(O, {
894
- key: r.key
899
+ (m(!0), C(O, null, z(l(i), (s) => (m(), C(O, {
900
+ key: s.key
895
901
  }, [
896
- l(G)(r, t.record) ? (m(), b(l(Da), {
902
+ l(G)(s, t.record) ? (m(), b(l(Da), {
897
903
  key: 0,
898
- disabled: p(r) || !r.confirm,
904
+ disabled: p(s) || !s.confirm,
899
905
  cancelText: "否",
900
906
  okText: "是",
901
- title: r.confirmText,
907
+ title: s.confirmText,
902
908
  okButtonProps: { size: "small" },
903
909
  cancelButtonProps: { size: "small" },
904
- onConfirm: (v) => l(V)(r, l(e).page, l(e), t.record, !0)
910
+ onConfirm: (v) => l(V)(s, l(e).page, l(e), t.record, !0)
905
911
  }, {
906
912
  default: g(() => [
907
- l(G)(r, t.record) ? Q((m(), b(l(Ye), {
908
- key: r.key,
909
- type: r.type ?? "text",
910
- danger: r.danger,
911
- disabled: p(r),
912
- onClick: (v) => l(V)(r, l(e).page, l(e), t.record),
913
+ l(G)(s, t.record) ? Q((m(), b(l(Ke), {
914
+ key: s.key,
915
+ type: s.type ?? "text",
916
+ danger: s.danger,
917
+ disabled: p(s),
918
+ onClick: (v) => l(V)(s, l(e).page, l(e), t.record),
913
919
  size: "small",
914
920
  style: be({
915
- padding: r.type ?? "0px 4px"
921
+ padding: s.type ?? "0px 4px"
916
922
  })
917
923
  }, {
918
924
  default: g(() => [
919
- B(F(r.label), 1)
925
+ B(N(s.label), 1)
920
926
  ]),
921
927
  _: 2
922
928
  }, 1032, ["type", "danger", "disabled", "onClick", "style"])), [
923
- [f, { url: a.value, role: r.role, permit: r.permit }]
929
+ [f, { url: a.value, role: s.role, permit: s.permit }]
924
930
  ]) : k("", !0)
925
931
  ]),
926
932
  _: 2
927
933
  }, 1032, ["disabled", "title", "onConfirm"])) : k("", !0)
928
934
  ], 64))), 128)),
929
- d.record.Enabled == 1 ? (m(), b(l(Ce), {
935
+ d.record.Enabled == 1 ? (m(), b(l(Te), {
930
936
  key: 0,
931
937
  autoInsertSpaceInButton: !1
932
938
  }, {
933
939
  default: g(() => [
934
- l(u).length > 0 ? (m(), b(l(Ea), {
940
+ l(c).length > 0 ? (m(), b(l(Ea), {
935
941
  key: 0,
936
942
  size: "small"
937
943
  }, {
938
944
  overlay: g(() => [
939
- w(l(xe), null, {
945
+ w(l(_e), null, {
940
946
  default: g(() => [
941
- (m(!0), S(O, null, z(l(u), (r) => (m(), S(O, {
942
- key: r.key
947
+ (m(!0), C(O, null, z(l(c), (s) => (m(), C(O, {
948
+ key: s.key
943
949
  }, [
944
- l(G)(r, t.record) ? Q((m(), b(l(_e), {
950
+ l(G)(s, t.record) ? Q((m(), b(l(ye), {
945
951
  key: 0,
946
- disabled: p(r),
947
- onClick: (v) => l(V)(r, l(e).page, l(e), t.record)
952
+ disabled: p(s),
953
+ onClick: (v) => l(V)(s, l(e).page, l(e), t.record)
948
954
  }, {
949
955
  default: g(() => [
950
- B(F(r.label), 1)
956
+ B(N(s.label), 1)
951
957
  ]),
952
958
  _: 2
953
959
  }, 1032, ["disabled", "onClick"])), [
954
- [f, { url: a.value, role: r.role, permit: r.permit }]
960
+ [f, { url: a.value, role: s.role, permit: s.permit }]
955
961
  ]) : k("", !0)
956
962
  ], 64))), 128))
957
963
  ]),
@@ -975,13 +981,13 @@ const Xt = async (s, t) => {
975
981
  });
976
982
  };
977
983
  }
978
- }), pt = { class: "inline-flex [&>div]:ml-[-1px] first:[&>div]:ml-0" }, ft = /* @__PURE__ */ C({
984
+ }), pt = { class: "inline-flex [&>div]:ml-[-1px] first:[&>div]:ml-0" }, ft = /* @__PURE__ */ S({
979
985
  __name: "icontool",
980
986
  props: {
981
987
  gridCtrl: {}
982
988
  },
983
- setup(s) {
984
- const t = s, e = t.gridCtrl, { tools: a } = et(t.gridCtrl), n = me();
989
+ setup(r) {
990
+ const t = r, e = t.gridCtrl, { tools: a } = et(t.gridCtrl), n = me();
985
991
  T(
986
992
  () => e.selectable.value,
987
993
  (p) => {
@@ -992,15 +998,15 @@ const Xt = async (s, t) => {
992
998
  T(
993
999
  () => e.columns.value,
994
1000
  (p) => {
995
- i.value = Ne(p, !0);
1001
+ i.value = Me(p, !0);
996
1002
  },
997
1003
  { deep: !0, immediate: !0 }
998
1004
  );
999
- const u = () => {
1000
- e.columns.value.splice(0, e.columns.value.length, ...i.value), n.setTableColumns(ce.currentRoute.value.path, e.columns.value);
1005
+ const c = () => {
1006
+ e.columns.value.splice(0, e.columns.value.length, ...i.value), n.setTableColumns(ue.currentRoute.value.path, e.columns.value);
1001
1007
  };
1002
- return (p, d) => (m(), S("div", pt, [
1003
- (m(!0), S(O, null, z(l(a), (o, f) => (m(), S(O, {
1008
+ return (p, d) => (m(), C("div", pt, [
1009
+ (m(!0), C(O, null, z(l(a), (o, f) => (m(), C(O, {
1004
1010
  key: o.key
1005
1011
  }, [
1006
1012
  l(G)(o) && o.dropdown ? (m(), b(l(ve), {
@@ -1010,36 +1016,36 @@ const Xt = async (s, t) => {
1010
1016
  }, {
1011
1017
  overlay: g(() => [
1012
1018
  I("div", {
1013
- class: P(["min-w-[100px] bg-white rounded shadow-md p-4", o.dropdownClass])
1019
+ class: F(["min-w-[100px] bg-white rounded shadow-md p-4", o.dropdownClass])
1014
1020
  }, [
1015
1021
  o.dropdown === "headset" ? (m(), b(l(Ya), {
1016
1022
  key: 0,
1017
1023
  modelValue: i.value,
1018
- "onUpdate:modelValue": d[1] || (d[1] = (r) => i.value = r),
1024
+ "onUpdate:modelValue": d[1] || (d[1] = (s) => i.value = s),
1019
1025
  "item-key": "dataIndex",
1020
- onEnd: u,
1026
+ onEnd: c,
1021
1027
  handle: ".drag-handle"
1022
1028
  }, {
1023
1029
  default: g(() => [
1024
- (m(!0), S(O, null, z(i.value, (r) => (m(), S("div", {
1025
- key: r.name,
1030
+ (m(!0), C(O, null, z(i.value, (s) => (m(), C("div", {
1031
+ key: s.name,
1026
1032
  onClick: d[0] || (d[0] = ae(() => {
1027
1033
  }, ["stop"])),
1028
1034
  class: "flex items-center mb-2 last:mb-0 select-none"
1029
1035
  }, [
1030
1036
  d[2] || (d[2] = I("span", { class: "drag-handle mr-2 text-gray-400 hover:text-gray-600 cursor-move" }, "⋮⋮", -1)),
1031
1037
  w(l(Pa), {
1032
- checked: r.visible !== !1,
1038
+ checked: s.visible !== !1,
1033
1039
  onChange: ae(
1034
1040
  (v) => {
1035
- l(Za)(r, v.target.checked);
1041
+ l(Za)(s, v.target.checked);
1036
1042
  },
1037
1043
  ["stop", "prevent"]
1038
1044
  ),
1039
1045
  class: "text-gray-700 hover:text-gray-900 select-none"
1040
1046
  }, {
1041
1047
  default: g(() => [
1042
- B(F(r.title), 1)
1048
+ B(N(s.title), 1)
1043
1049
  ]),
1044
1050
  _: 2
1045
1051
  }, 1032, ["checked", "onChange"])
@@ -1051,14 +1057,14 @@ const Xt = async (s, t) => {
1051
1057
  ]),
1052
1058
  default: g(() => [
1053
1059
  w(l(A), {
1054
- class: P([
1060
+ class: F([
1055
1061
  "px-[8px] py-[2px] relative border-[#ccc] bg-[#fcfcfc] rounded-none text-[#666] hover:z-10",
1056
1062
  f === 0 ? "rounded-l-[5px]" : "",
1057
1063
  f === l(a).length - 1 ? "rounded-r-[5px]" : ""
1058
1064
  ]),
1059
1065
  disabled: l(H)(o),
1060
1066
  tiptext: o.label,
1061
- onClick: (r) => l(V)(o, l(e).page, l(e))
1067
+ onClick: (s) => l(V)(o, l(e).page, l(e))
1062
1068
  }, {
1063
1069
  default: g(() => [
1064
1070
  w(l(U), {
@@ -1073,14 +1079,14 @@ const Xt = async (s, t) => {
1073
1079
  _: 2
1074
1080
  }, 1024)) : !o.children && l(G)(o) ? (m(), b(l(A), {
1075
1081
  key: 1,
1076
- class: P([
1082
+ class: F([
1077
1083
  "px-[8px] py-[2px] relative border-[#ccc] bg-[#fcfcfc] rounded-none text-[#666] hover:z-10",
1078
1084
  f === 0 ? "rounded-l-[5px]" : "",
1079
1085
  f === l(a).length - 1 ? "rounded-r-[5px]" : ""
1080
1086
  ]),
1081
1087
  disabled: l(H)(o),
1082
1088
  tiptext: o.label,
1083
- onClick: (r) => l(V)(o, l(e).page, l(e))
1089
+ onClick: (s) => l(V)(o, l(e).page, l(e))
1084
1090
  }, {
1085
1091
  default: g(() => [
1086
1092
  w(l(U), {
@@ -1096,14 +1102,14 @@ const Xt = async (s, t) => {
1096
1102
  class: "p-0 rounded-none"
1097
1103
  }, {
1098
1104
  overlay: g(() => [
1099
- w(l(xe), null, {
1105
+ w(l(_e), null, {
1100
1106
  default: g(() => [
1101
- (m(!0), S(O, null, z(o.children, (r) => (m(), b(l(_e), {
1102
- key: r.key,
1103
- disabled: l(H)(r)
1107
+ (m(!0), C(O, null, z(o.children, (s) => (m(), b(l(ye), {
1108
+ key: s.key,
1109
+ disabled: l(H)(s)
1104
1110
  }, {
1105
1111
  default: g(() => [
1106
- B(F(r.label), 1)
1112
+ B(N(s.label), 1)
1107
1113
  ]),
1108
1114
  _: 2
1109
1115
  }, 1032, ["disabled"]))), 128))
@@ -1113,7 +1119,7 @@ const Xt = async (s, t) => {
1113
1119
  ]),
1114
1120
  default: g(() => [
1115
1121
  w(l(A), {
1116
- class: P([
1122
+ class: F([
1117
1123
  "!w-[46px] px-[5px] py-[2px] relative border-[#ccc] bg-[#fcfcfc] rounded-none text-[#666] hover:z-10",
1118
1124
  f === 0 ? "rounded-l-[5px]" : ""
1119
1125
  ]),
@@ -1121,7 +1127,7 @@ const Xt = async (s, t) => {
1121
1127
  tiptext: o.label,
1122
1128
  icon: o.icon,
1123
1129
  iconProps: { class: "w-[19px] h-[19px]" },
1124
- onClick: (r) => l(V)(o, l(e).page, l(e))
1130
+ onClick: (s) => l(V)(o, l(e).page, l(e))
1125
1131
  }, {
1126
1132
  default: g(() => [
1127
1133
  w(l(U), {
@@ -1137,14 +1143,14 @@ const Xt = async (s, t) => {
1137
1143
  ], 64))), 128))
1138
1144
  ]));
1139
1145
  }
1140
- }), vt = { class: "flex justify-between mb-[10px]" }, mt = { key: 1 }, ht = 3, gt = /* @__PURE__ */ C({
1146
+ }), vt = { class: "flex justify-between mb-[10px]" }, mt = { key: 1 }, ht = 3, gt = /* @__PURE__ */ S({
1141
1147
  __name: "index",
1142
1148
  props: {
1143
1149
  gridCtrl: {},
1144
1150
  editorCtrl: {}
1145
1151
  },
1146
- setup(s) {
1147
- const t = s, e = t.gridCtrl, a = e.page, n = t.editorCtrl, i = J(() => ce.currentRoute.value.path), u = [
1152
+ setup(r) {
1153
+ const t = r, e = t.gridCtrl, a = e.page, n = t.editorCtrl, i = J(() => ue.currentRoute.value.path), c = [
1148
1154
  {
1149
1155
  key: "New",
1150
1156
  label: "新增",
@@ -1163,11 +1169,11 @@ const Xt = async (s, t) => {
1163
1169
  return (o = e.buttons) == null ? void 0 : o.value;
1164
1170
  },
1165
1171
  () => {
1166
- var r;
1167
- const { buttons: o, menus: f } = ye(
1168
- u,
1172
+ var s;
1173
+ const { buttons: o, menus: f } = ke(
1174
+ c,
1169
1175
  e.flat !== void 0 ? e.flat : ht,
1170
- (r = e.buttons) == null ? void 0 : r.value
1176
+ (s = e.buttons) == null ? void 0 : s.value
1171
1177
  );
1172
1178
  p.value.splice(0, p.value.length, ...o), d.value.splice(0, d.value.length, ...f);
1173
1179
  },
@@ -1176,40 +1182,40 @@ const Xt = async (s, t) => {
1176
1182
  immediate: !0
1177
1183
  }
1178
1184
  ), (o, f) => {
1179
- const r = le("auth");
1180
- return m(), S("div", vt, [
1185
+ const s = le("auth");
1186
+ return m(), C("div", vt, [
1181
1187
  w(l(te), null, {
1182
1188
  default: g(() => [
1183
- (m(!0), S(O, null, z(p.value, (v) => Q((m(), b(l(A), {
1189
+ (m(!0), C(O, null, z(p.value, (v) => Q((m(), b(l(A), {
1184
1190
  key: v.key,
1185
1191
  type: v.type,
1186
1192
  danger: v.danger,
1187
1193
  disabled: l(H)(v),
1188
1194
  icon: v.icon,
1189
- onClick: (c) => l(V)(v, l(a), l(e))
1195
+ onClick: (u) => l(V)(v, l(a), l(e))
1190
1196
  }, {
1191
1197
  default: g(() => [
1192
- B(F(v.label), 1)
1198
+ B(N(v.label), 1)
1193
1199
  ]),
1194
1200
  _: 2
1195
1201
  }, 1032, ["type", "danger", "disabled", "icon", "onClick"])), [
1196
- [r, { url: i.value, role: v.role, permit: v.permit }]
1202
+ [s, { url: i.value, role: v.role, permit: v.permit }]
1197
1203
  ])), 128)),
1198
1204
  d.value.length > 0 ? (m(), b(l(ve), { key: 0 }, {
1199
1205
  overlay: g(() => [
1200
- w(l(xe), null, {
1206
+ w(l(_e), null, {
1201
1207
  default: g(() => [
1202
- (m(!0), S(O, null, z(d.value, (v) => Q((m(), b(l(_e), {
1208
+ (m(!0), C(O, null, z(d.value, (v) => Q((m(), b(l(ye), {
1203
1209
  key: v.key,
1204
1210
  disabled: l(H)(v),
1205
- onClick: (c) => l(V)(v, l(a), l(e))
1211
+ onClick: (u) => l(V)(v, l(a), l(e))
1206
1212
  }, {
1207
1213
  default: g(() => [
1208
- B(F(v.label), 1)
1214
+ B(N(v.label), 1)
1209
1215
  ]),
1210
1216
  _: 2
1211
1217
  }, 1032, ["disabled", "onClick"])), [
1212
- [r, { url: i.value, role: v.role, permit: v.permit }]
1218
+ [s, { url: i.value, role: v.role, permit: v.permit }]
1213
1219
  ])), 128))
1214
1220
  ]),
1215
1221
  _: 1
@@ -1226,20 +1232,20 @@ const Xt = async (s, t) => {
1226
1232
  ]),
1227
1233
  _: 1
1228
1234
  })) : k("", !0),
1229
- p.value.length === 0 && d.value.length === 0 ? (m(), S("span", mt)) : k("", !0)
1235
+ p.value.length === 0 && d.value.length === 0 ? (m(), C("span", mt)) : k("", !0)
1230
1236
  ]),
1231
1237
  _: 1
1232
1238
  }),
1233
1239
  w(l(te), { class: "mr-1" }, {
1234
1240
  default: g(() => [
1235
- (m(), b(ka(ft), { "grid-ctrl": l(e) }, null, 8, ["grid-ctrl"]))
1241
+ (m(), b(wa(ft), { "grid-ctrl": l(e) }, null, 8, ["grid-ctrl"]))
1236
1242
  ]),
1237
1243
  _: 1
1238
1244
  })
1239
1245
  ]);
1240
1246
  };
1241
1247
  }
1242
- }), il = /* @__PURE__ */ C({
1248
+ }), il = /* @__PURE__ */ S({
1243
1249
  inheritAttrs: !1,
1244
1250
  __name: "index",
1245
1251
  props: {
@@ -1251,73 +1257,73 @@ const Xt = async (s, t) => {
1251
1257
  scroll: {},
1252
1258
  statusDisabled: {}
1253
1259
  },
1254
- setup(s) {
1255
- const t = s, e = X(), a = t.gridCtrl, n = J(() => ce.currentRoute.value.path);
1260
+ setup(r) {
1261
+ const t = r, e = X(), a = t.gridCtrl, n = J(() => ue.currentRoute.value.path);
1256
1262
  a && (a.pageNo.value = 1, a.total.value = 0, a.pageSize.value = a.pageSize.value);
1257
- const i = x(a.pageSize.value), u = x(a.pageNo.value), p = x([]), d = x({
1263
+ const i = x(a.pageSize.value), c = x(a.pageNo.value), p = x([]), d = x({
1258
1264
  total: 0,
1259
1265
  current: 1,
1260
1266
  pageSize: i.value,
1261
- showTotal: (c) => `共 ${c} 条记录`,
1262
- onChange: (c, h) => {
1263
- d.value !== !1 && (d.value.current = c, d.value.pageSize = h), i.value = h, u.value = c, a && (a.pageNo.value = c, a.pageSize.value = h, a.remotePage && ke(a));
1267
+ showTotal: (u) => `共 ${u} 条记录`,
1268
+ onChange: (u, h) => {
1269
+ d.value !== !1 && (d.value.current = u, d.value.pageSize = h), i.value = h, c.value = u, a && (a.pageNo.value = u, a.pageSize.value = h, a.remotePage && we(a));
1264
1270
  },
1265
1271
  ...t.pagination === !1 ? {} : t.pagination
1266
1272
  });
1267
1273
  t.pagination === !1 && (d.value = !1), T(
1268
1274
  () => a.tableData.value,
1269
- (c) => {
1270
- c && (p.value = c, d.value !== !1 && (d.value.total = a.total.value ?? 0, d.value.current = a.pageNo.value ?? 1, d.value.pageSize = a.pageSize.value ?? 10));
1275
+ (u) => {
1276
+ u && (p.value = u, d.value !== !1 && (d.value.total = a.total.value ?? 0, d.value.current = a.pageNo.value ?? 1, d.value.pageSize = a.pageSize.value ?? 10));
1271
1277
  },
1272
1278
  { immediate: !0 }
1273
1279
  ), T(
1274
1280
  () => t.tableData,
1275
- (c) => {
1276
- c && (p.value = c, d.value !== !1 && (d.value.total = c.length, d.value.current = a.pageNo.value ?? 1, d.value.pageSize = a.pageSize.value ?? 10));
1281
+ (u) => {
1282
+ u && (p.value = u, d.value !== !1 && (d.value.total = u.length, d.value.current = a.pageNo.value ?? 1, d.value.pageSize = a.pageSize.value ?? 10));
1277
1283
  },
1278
1284
  { immediate: !0 }
1279
1285
  );
1280
1286
  const o = x(a.columns.value), f = {
1281
- onChange: (c, h) => {
1282
- a && (a.selectKeys.value = c, a.selectRows.value = h);
1287
+ onChange: (u, h) => {
1288
+ a && (a.selectKeys.value = u, a.selectRows.value = h);
1283
1289
  },
1284
1290
  columnWidth: "30px",
1285
- getCheckboxProps: (c) => ({
1286
- disabled: c.Enabled === 0
1291
+ getCheckboxProps: (u) => ({
1292
+ disabled: u.Enabled === 0
1287
1293
  }),
1288
1294
  ...t.rowSelection
1289
- }, r = x(f);
1295
+ }, s = x(f);
1290
1296
  T(
1291
1297
  () => a.selectable.value,
1292
- (c) => {
1293
- a && (r.value = c ? f : void 0);
1298
+ (u) => {
1299
+ a && (s.value = u ? f : void 0);
1294
1300
  },
1295
1301
  { immediate: !0 }
1296
1302
  ), T(
1297
1303
  () => a.columns.value,
1298
1304
  () => {
1299
- o.value = Ne(a.columns.value);
1305
+ o.value = Me(a.columns.value);
1300
1306
  },
1301
1307
  { deep: !0, immediate: !0 }
1302
1308
  );
1303
1309
  const v = x(!1);
1304
- return wa(() => {
1305
- v.value && a && (a.reload.value = !0);
1310
+ return xe(() => {
1311
+ v.value && a && a.autoload && (a.reload.value = !0);
1306
1312
  }), K(async () => {
1307
- var c, h, y, $, M;
1308
- ge(j.GridControl, a), a.page && ((c = a.gridUrl) != null && c.url) && (((h = a.gridUrl) == null ? void 0 : h.url) === ((y = a.page.urls.list) == null ? void 0 : y.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 ke(a)).rows : p.value = await ra(a)), setTimeout(() => {
1313
+ var u, h, y, $, E;
1314
+ ge(j.GridControl, a), a.page && ((u = a.gridUrl) != null && u.url) && (((h = a.gridUrl) == null ? void 0 : h.url) === ((y = a.page.urls.list) == null ? void 0 : y.url) && (a.remotePage = !1), (($ = a.gridUrl) == null ? void 0 : $.url) === ((E = a.page.urls.find) == null ? void 0 : E.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 oa(a)), setTimeout(() => {
1309
1315
  v.value = !0;
1310
1316
  }, 50);
1311
- }), (c, h) => {
1312
- var $, M;
1317
+ }), (u, h) => {
1318
+ var $, E;
1313
1319
  const y = le("auth");
1314
- return m(), S(O, null, [
1315
- ($ = l(a).buttons) != null && $.value.length || (M = l(a).tools) != null && M.length ? (m(), b(gt, {
1320
+ return m(), C(O, null, [
1321
+ ($ = l(a).buttons) != null && $.value.length || (E = l(a).tools) != null && E.length ? (m(), b(gt, {
1316
1322
  key: 0,
1317
1323
  "grid-ctrl": l(a),
1318
1324
  "editor-ctrl": l(a).editor
1319
1325
  }, null, 8, ["grid-ctrl", "editor-ctrl"])) : k("", !0),
1320
- v.value ? (m(), b(l(Ke), N({
1326
+ v.value ? (m(), b(l(We), M({
1321
1327
  key: 1,
1322
1328
  class: "w-full min-h-[480px]",
1323
1329
  "row-key": t.primaryKey ?? l(a).primaryKey ?? "Id",
@@ -1325,34 +1331,34 @@ const Xt = async (s, t) => {
1325
1331
  loading: l(a).isGridLoading.value,
1326
1332
  columns: o.value,
1327
1333
  pagination: d.value,
1328
- "row-selection": r.value,
1334
+ "row-selection": s.value,
1329
1335
  scroll: t.scroll || { x: 700 },
1330
1336
  size: l(a).tableSize.value,
1331
1337
  bordered: ""
1332
1338
  }, l(e)), {
1333
1339
  bodyCell: g((_) => {
1334
- var E, R;
1340
+ var P, R;
1335
1341
  return [
1336
- D(c.$slots, "bodyCell", {
1342
+ D(u.$slots, "bodyCell", {
1337
1343
  column: _ == null ? void 0 : _.column,
1338
1344
  record: _ == null ? void 0 : _.record
1339
1345
  }),
1340
- l(a) && ((E = _ == null ? void 0 : _.column) == null ? void 0 : E.dataIndex) === "enabled" ? Q((m(), b(oa, {
1346
+ l(a) && ((P = _ == null ? void 0 : _.column) == null ? void 0 : P.dataIndex) === "enabled" ? Q((m(), b(na, {
1341
1347
  key: 0,
1342
1348
  checked: _.record.Enabled,
1343
- "onUpdate:checked": (se) => _.record.Enabled = se,
1344
- disabled: c.statusDisabled ? c.statusDisabled(_.record) : !1,
1345
- data: l(Me).EnableDisable,
1346
- onClick: (se) => l(na)(l(a), _.record),
1347
- class: P([
1349
+ "onUpdate:checked": (re) => _.record.Enabled = re,
1350
+ disabled: u.statusDisabled ? u.statusDisabled(_.record) : !1,
1351
+ data: l(Be).EnableDisable,
1352
+ onClick: (re) => l(ia)(l(a), _.record),
1353
+ class: F([
1348
1354
  "w-[58px]",
1349
- c.statusDisabled && c.statusDisabled(_.record) ? "cursor-not-allowed disabled" : ""
1355
+ u.statusDisabled && u.statusDisabled(_.record) ? "cursor-not-allowed disabled" : ""
1350
1356
  ]),
1351
1357
  loading: _ == null ? void 0 : _.record.isLoading
1352
1358
  }, null, 8, ["checked", "onUpdate:checked", "disabled", "data", "onClick", "class", "loading"])), [
1353
1359
  [y, { url: n.value, role: ["Super", "Admin"], permit: ":enabled" }, "disable"]
1354
1360
  ]) : k("", !0),
1355
- l(a) && ((R = _ == null ? void 0 : _.column) == null ? void 0 : R.dataIndex) === "operation" ? D(c.$slots, "operate", {
1361
+ l(a) && ((R = _ == null ? void 0 : _.column) == null ? void 0 : R.dataIndex) === "operation" ? D(u.$slots, "operate", {
1356
1362
  key: 1,
1357
1363
  record: _ == null ? void 0 : _.record
1358
1364
  }, () => [
@@ -1368,7 +1374,7 @@ const Xt = async (s, t) => {
1368
1374
  ], 64);
1369
1375
  };
1370
1376
  }
1371
- }), bt = { class: "flex items-center gap-1" }, xt = { class: "text-nowrap" }, cl = /* @__PURE__ */ C({
1377
+ }), bt = { class: "flex items-center gap-1" }, xt = { class: "text-nowrap" }, ul = /* @__PURE__ */ S({
1372
1378
  __name: "index",
1373
1379
  props: {
1374
1380
  treeCtrl: {},
@@ -1376,33 +1382,33 @@ const Xt = async (s, t) => {
1376
1382
  expandedKeys: {}
1377
1383
  },
1378
1384
  emits: ["select", "update:selectedKeys"],
1379
- setup(s, { emit: t }) {
1380
- const e = s, a = X(), n = e.treeCtrl, i = x([]);
1385
+ setup(r, { emit: t }) {
1386
+ const e = r, a = X(), n = e.treeCtrl, i = x([]);
1381
1387
  T(
1382
1388
  () => n.data.value,
1383
1389
  (f) => {
1384
1390
  if (f) {
1385
1391
  i.value = n.fieldMap ? oe(n.fieldMap, f) : f;
1386
- const r = ia(i.value, p.value[0]);
1387
- if (r) {
1392
+ const s = ua(i.value, p.value[0]);
1393
+ if (s) {
1388
1394
  const v = {
1389
1395
  event: "select",
1390
1396
  node: {
1391
1397
  // 根据你的TreeNode结构构建node对象
1392
- key: r.key,
1393
- title: r.title,
1398
+ key: s.key,
1399
+ title: s.title,
1394
1400
  checked: !0,
1395
- dataRef: r
1401
+ dataRef: s
1396
1402
  },
1397
1403
  selected: !0,
1398
- selectedNodes: [r]
1404
+ selectedNodes: [s]
1399
1405
  };
1400
1406
  o(p.value, v);
1401
1407
  }
1402
1408
  }
1403
1409
  }
1404
1410
  );
1405
- const u = t, p = x([]);
1411
+ const c = t, p = x([]);
1406
1412
  T(
1407
1413
  () => e.selectedKeys,
1408
1414
  (f) => {
@@ -1418,8 +1424,8 @@ const Xt = async (s, t) => {
1418
1424
  },
1419
1425
  { immediate: !0 }
1420
1426
  );
1421
- const o = (f, r) => {
1422
- 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);
1427
+ const o = (f, s) => {
1428
+ f.length === 0 && f.push(...p.value), f.length > 0 && (n.node.value = s == null ? void 0 : s.node.dataRef), p.value = f, c("update:selectedKeys", f), c("select", f, s);
1423
1429
  };
1424
1430
  return K(() => {
1425
1431
  n.fieldMap || (n.fieldMap = {
@@ -1427,110 +1433,112 @@ const Xt = async (s, t) => {
1427
1433
  key: "Id",
1428
1434
  value: "Id",
1429
1435
  icon: "Icon"
1430
- }), n.data.value ? i.value = oe(n.fieldMap, n.data.value) : n.autoload && Be(n);
1431
- }), (f, r) => (m(), b(l(Fa), N({
1436
+ }), n.data.value ? i.value = oe(n.fieldMap, n.data.value) : n.autoload && Re(n);
1437
+ }), (f, s) => (m(), b(l(Fa), M({
1432
1438
  class: "w-full",
1433
1439
  "show-line": !0,
1434
1440
  "tree-data": i.value,
1435
1441
  "expanded-keys": d.value,
1436
- "onUpdate:expandedKeys": r[0] || (r[0] = (v) => d.value = v),
1442
+ "onUpdate:expandedKeys": s[0] || (s[0] = (v) => d.value = v),
1437
1443
  "selected-keys": p.value,
1438
1444
  loading: l(n).isTreeLoading,
1439
1445
  onSelect: o
1440
1446
  }, l(a)), {
1441
- title: g(({ key: v, label: c, icon: h }) => [
1447
+ title: g(({ key: v, label: u, icon: h }) => [
1442
1448
  D(f.$slots, "title", {
1443
- label: c,
1449
+ label: u,
1444
1450
  key: v,
1445
1451
  icon: h
1446
1452
  }, () => [
1447
1453
  I("div", bt, [
1448
1454
  w(l(U), { icon: h }, null, 8, ["icon"]),
1449
- I("span", xt, F(c), 1)
1455
+ I("span", xt, N(u), 1)
1450
1456
  ])
1451
1457
  ])
1452
1458
  ]),
1453
1459
  _: 3
1454
1460
  }, 16, ["tree-data", "expanded-keys", "selected-keys", "loading"]));
1455
1461
  }
1456
- }), ul = /* @__PURE__ */ q(ca, [["__scopeId", "data-v-62a24cf4"]]), _t = { class: "relative w-[248px] max-w-[248px]" }, yt = {
1462
+ }), cl = /* @__PURE__ */ q(ca, [["__scopeId", "data-v-87722b44"]]), _t = { class: "relative w-[248px] max-w-[248px]" }, yt = {
1457
1463
  key: 0,
1458
1464
  class: "absolute z-10 mt-[5px] mr-[10px] text-[#999] flex items-center"
1459
- }, kt = /* @__PURE__ */ C({
1465
+ }, kt = /* @__PURE__ */ S({
1460
1466
  inheritAttrs: !1,
1461
1467
  __name: "index",
1462
- props: ua,
1468
+ props: da,
1463
1469
  emits: ["change", "update:labels", "update:value"],
1464
- setup(s, { emit: t }) {
1465
- var y, $, M;
1466
- const e = s, a = X(), n = L(), i = da(e.url, e), u = e.optionCtrl ?? i.optionCtrl;
1467
- u.inputFactory = Sa(n);
1470
+ setup(r, { emit: t }) {
1471
+ var y, $, E;
1472
+ const e = r, a = X(), n = L(), i = pa(e.url, e), c = e.optionCtrl ?? i.optionCtrl;
1473
+ c.inputFactory = Ca(n);
1468
1474
  const p = x({
1469
- ...u == null ? void 0 : u.url,
1470
- url: ((y = u == null ? void 0 : u.url) == null ? void 0 : y.url) || "",
1471
- fieldMap: (u == null ? void 0 : u.fieldMap) || (($ = u == null ? void 0 : u.url) == null ? void 0 : $.fieldMap),
1472
- params: (u == null ? void 0 : u.params) || ((M = u == null ? void 0 : u.url) == null ? void 0 : M.params),
1475
+ ...c == null ? void 0 : c.url,
1476
+ url: ((y = c == null ? void 0 : c.url) == null ? void 0 : y.url) || "",
1477
+ fieldMap: (c == null ? void 0 : c.fieldMap) || (($ = c == null ? void 0 : c.url) == null ? void 0 : $.fieldMap),
1478
+ params: (c == null ? void 0 : c.params) || ((E = c == null ? void 0 : c.url) == null ? void 0 : E.params),
1473
1479
  loadingText: !1
1474
- }), { editorCtrl: d, errInfo: o, labelText: f } = n, r = x(a.placeholder);
1480
+ }), { editorCtrl: d, errInfo: o, labelText: f } = n, s = x(a.placeholder);
1475
1481
  T(
1476
1482
  () => p.value.loading,
1477
1483
  (_) => {
1478
- _ ? r.value = "" : r.value || (r.value = "请选择" + f.value);
1484
+ _ ? s.value = "" : s.value || (s.value = "请选择" + f.value);
1479
1485
  },
1480
1486
  { immediate: !0 }
1481
1487
  );
1482
1488
  const v = t;
1483
1489
  n.inputEmit = v;
1484
- const c = x((u == null ? void 0 : u.options.value) || []);
1485
- u && T(
1486
- () => u.options.value,
1490
+ const u = x((c == null ? void 0 : c.options.value) || []);
1491
+ c && T(
1492
+ () => c.options.value,
1487
1493
  (_) => {
1488
- c.value = _ || [];
1494
+ u.value = _ || [];
1489
1495
  },
1490
1496
  { immediate: !0, deep: !0 }
1491
1497
  );
1492
- const h = (_, E) => {
1493
- if (!E || E.length === 0) {
1498
+ const h = (_, P) => {
1499
+ if (!P || P.length === 0) {
1494
1500
  v("update:labels", []), v("update:value", []);
1495
1501
  return;
1496
1502
  }
1497
- const R = E.map((Je) => Je.value), se = ma(u, e, R), Ge = ha(se);
1498
- v("update:labels", Ge), v("update:value", R), o != null && o.value.errClass && d && Y(d);
1503
+ const R = P.map((Xe) => Xe.value), re = ha(c, e, R), Je = ga(re);
1504
+ v("update:labels", Je), v("update:value", R), o != null && o.value.errClass && d && Y(d);
1499
1505
  };
1500
- return K(() => {
1506
+ return xe(() => {
1507
+ c && c.autoload && (c.reload.value = !0);
1508
+ }), K(() => {
1501
1509
  p.value && !p.value.fieldMap && (p.value.fieldMap = {
1502
1510
  title: "Name",
1503
1511
  label: "Name",
1504
1512
  value: "Id",
1505
1513
  key: "Id"
1506
- }), u && pa(u.autoload, u, e);
1507
- }), Ca(() => {
1508
- u && fa(u, e);
1509
- }), (_, E) => {
1514
+ }), c && fa(c.autoload, c, e);
1515
+ }), Sa(() => {
1516
+ c && va(c, e);
1517
+ }), (_, P) => {
1510
1518
  var R;
1511
- return m(), S("div", _t, [
1512
- c.value.length ? k("", !0) : (m(), S("div", yt, [
1513
- w(l(va), { class: "text-[#555] mx-[5px] !ml-[10px] !w-4 !h-4" }),
1514
- E[0] || (E[0] = I("span", null, "数据加载中...", -1))
1519
+ return m(), C("div", _t, [
1520
+ u.value.length ? k("", !0) : (m(), C("div", yt, [
1521
+ w(l(ma), { class: "text-[#555] mx-[5px] !ml-[10px] !w-4 !h-4" }),
1522
+ P[0] || (P[0] = I("span", null, "数据加载中...", -1))
1515
1523
  ])),
1516
- w(l(Na), N({
1517
- options: c.value,
1524
+ w(l(Na), M({
1525
+ options: u.value,
1518
1526
  class: [(R = l(o)) == null ? void 0 : R.errClass],
1519
1527
  "allow-clear": !0,
1520
- placeholder: c.value.length > 0 ? "请选择" + l(f) : "",
1528
+ placeholder: u.value.length > 0 ? "请选择" + l(f) : "",
1521
1529
  onChange: h
1522
1530
  }, l(a)), null, 16, ["options", "class", "placeholder"])
1523
1531
  ]);
1524
1532
  };
1525
1533
  }
1526
- }), dl = /* @__PURE__ */ q(kt, [["__scopeId", "data-v-7f0def6e"]]), pl = /* @__PURE__ */ q(ga, [["__scopeId", "data-v-64193a41"]]);
1534
+ }), dl = /* @__PURE__ */ q(kt, [["__scopeId", "data-v-51ddfce3"]]), pl = /* @__PURE__ */ q(ba, [["__scopeId", "data-v-249ea772"]]);
1527
1535
  function ie() {
1528
- return ie = Object.assign ? Object.assign.bind() : function(s) {
1536
+ return ie = Object.assign ? Object.assign.bind() : function(r) {
1529
1537
  for (var t = 1; t < arguments.length; t++) {
1530
1538
  var e = arguments[t];
1531
- for (var a in e) ({}).hasOwnProperty.call(e, a) && (s[a] = e[a]);
1539
+ for (var a in e) ({}).hasOwnProperty.call(e, a) && (r[a] = e[a]);
1532
1540
  }
1533
- return s;
1541
+ return r;
1534
1542
  }, ie.apply(null, arguments);
1535
1543
  }
1536
1544
  const wt = {
@@ -1560,10 +1568,10 @@ const wt = {
1560
1568
  nextDecade: "下一年代",
1561
1569
  previousCentury: "上一世纪",
1562
1570
  nextCentury: "下一世纪"
1563
- }, St = {
1571
+ }, Ct = {
1564
1572
  placeholder: "请选择时间",
1565
1573
  rangePlaceholder: ["开始时间", "结束时间"]
1566
- }, ue = {
1574
+ }, ce = {
1567
1575
  lang: ie({
1568
1576
  placeholder: "请选择日期",
1569
1577
  yearPlaceholder: "请选择年份",
@@ -1576,66 +1584,66 @@ const wt = {
1576
1584
  rangeQuarterPlaceholder: ["开始季度", "结束季度"],
1577
1585
  rangeWeekPlaceholder: ["开始周", "结束周"]
1578
1586
  }, wt),
1579
- timePickerLocale: ie({}, St)
1587
+ timePickerLocale: ie({}, Ct)
1580
1588
  };
1581
- ue.lang.ok = "确定";
1582
- const fl = /* @__PURE__ */ C({
1589
+ ce.lang.ok = "确定";
1590
+ const fl = /* @__PURE__ */ S({
1583
1591
  __name: "index",
1584
1592
  props: {
1585
1593
  valueFormat: {}
1586
1594
  },
1587
- setup(s) {
1588
- const t = s, { editorCtrl: e, labelText: a, errInfo: n } = L(), i = () => {
1595
+ setup(r) {
1596
+ const t = r, { editorCtrl: e, labelText: a, errInfo: n } = L(), i = () => {
1589
1597
  n != null && n.value.errClass && e && Y(e);
1590
- }, u = x(t.valueFormat ?? "YYYY-MM-DD");
1598
+ }, c = x(t.valueFormat ?? "YYYY-MM-DD");
1591
1599
  return (p, d) => {
1592
1600
  var o;
1593
1601
  return m(), b(l(Ma), {
1594
- class: P(["w-full", [((o = l(n)) == null ? void 0 : o.errClass) === "error" ? "error !border-red-300 shadow-[0_0_3px_0px_#ff4d4f]" : ""]]),
1602
+ class: F(["w-full", [((o = l(n)) == null ? void 0 : o.errClass) === "error" ? "error !border-red-300 shadow-[0_0_3px_0px_#ff4d4f]" : ""]]),
1595
1603
  placeholder: "请选择" + l(a),
1596
- locale: l(ue),
1597
- valueFormat: u.value,
1604
+ locale: l(ce),
1605
+ valueFormat: c.value,
1598
1606
  onBlur: i
1599
1607
  }, null, 8, ["class", "placeholder", "locale", "valueFormat"]);
1600
1608
  };
1601
1609
  }
1602
- }), Ct = /* @__PURE__ */ C({
1610
+ }), St = /* @__PURE__ */ S({
1603
1611
  __name: "index",
1604
1612
  props: {
1605
1613
  value: {},
1606
1614
  undefValue: { type: Boolean, default: !1 }
1607
1615
  },
1608
1616
  emits: ["update:value"],
1609
- setup(s, { emit: t }) {
1617
+ setup(r, { emit: t }) {
1610
1618
  const { editorCtrl: e, labelText: a, errInfo: n } = L(), i = () => {
1611
1619
  n != null && n.value.errClass && e && Y(e);
1612
- }, u = s, p = u.value === void 0 ? !0 : u.undefValue, d = t, o = x(u.value);
1620
+ }, c = r, p = c.value === void 0 ? !0 : c.undefValue, d = t, o = x(c.value);
1613
1621
  T(
1614
- () => u.value,
1615
- (r) => {
1616
- o.value = r;
1622
+ () => c.value,
1623
+ (s) => {
1624
+ o.value = s;
1617
1625
  },
1618
1626
  { immediate: !0 }
1619
1627
  // 立即同步初始值
1620
1628
  ), T(
1621
1629
  () => o.value,
1622
- (r) => {
1630
+ (s) => {
1623
1631
  if (o.value === "") {
1624
1632
  d("update:value", void 0);
1625
1633
  return;
1626
1634
  }
1627
- d("update:value", r);
1635
+ d("update:value", s);
1628
1636
  }
1629
1637
  );
1630
1638
  const f = () => {
1631
1639
  o.value === "" && (o.value = p ? void 0 : null);
1632
1640
  };
1633
- return (r, v) => {
1634
- var c, h;
1635
- return m(), b(l(ee), N({
1641
+ return (s, v) => {
1642
+ var u, h;
1643
+ return m(), b(l(ee), M({
1636
1644
  class: [
1637
- (c = l(n)) == null ? void 0 : c.errClass,
1638
- ((h = l(n)) == null ? void 0 : h.errClass) === "error" && !r.$slots.addonBefore && !r.$slots.addonAfter ? "!border-red-300 shadow-[0_0_3px_0px_#ff4d4f]" : ""
1645
+ (u = l(n)) == null ? void 0 : u.errClass,
1646
+ ((h = l(n)) == null ? void 0 : h.errClass) === "error" && !s.$slots.addonBefore && !s.$slots.addonAfter ? "!border-red-300 shadow-[0_0_3px_0px_#ff4d4f]" : ""
1639
1647
  ],
1640
1648
  value: o.value,
1641
1649
  "onUpdate:value": v[0] || (v[0] = (y) => o.value = y),
@@ -1644,32 +1652,32 @@ const fl = /* @__PURE__ */ C({
1644
1652
  placeholder: "请输入" + l(a),
1645
1653
  onBlur: i,
1646
1654
  onChange: f
1647
- }, r.$attrs), Le({ _: 2 }, [
1648
- r.$slots.addonBefore ? {
1655
+ }, s.$attrs), ze({ _: 2 }, [
1656
+ s.$slots.addonBefore ? {
1649
1657
  name: "addonBefore",
1650
1658
  fn: g(() => [
1651
- D(r.$slots, "addonBefore")
1659
+ D(s.$slots, "addonBefore")
1652
1660
  ]),
1653
1661
  key: "0"
1654
1662
  } : void 0,
1655
- r.$slots.addonAfter ? {
1663
+ s.$slots.addonAfter ? {
1656
1664
  name: "addonAfter",
1657
1665
  fn: g(() => [
1658
- D(r.$slots, "addonAfter")
1666
+ D(s.$slots, "addonAfter")
1659
1667
  ]),
1660
1668
  key: "1"
1661
1669
  } : void 0
1662
1670
  ]), 1040, ["class", "value", "placeholder"]);
1663
1671
  };
1664
1672
  }
1665
- }), Tt = /* @__PURE__ */ C({
1673
+ }), Tt = /* @__PURE__ */ S({
1666
1674
  __name: "inputIcon",
1667
1675
  props: {
1668
1676
  value: {}
1669
1677
  },
1670
1678
  emits: ["update:value"],
1671
- setup(s, { emit: t }) {
1672
- const e = s, a = t, n = x(void 0);
1679
+ setup(r, { emit: t }) {
1680
+ const e = r, a = t, n = x(void 0);
1673
1681
  return T(
1674
1682
  () => e.value,
1675
1683
  (i) => {
@@ -1681,9 +1689,9 @@ const fl = /* @__PURE__ */ C({
1681
1689
  (i) => {
1682
1690
  a("update:value", i);
1683
1691
  }
1684
- ), (i, u) => (m(), b(Ct, N({
1692
+ ), (i, c) => (m(), b(St, M({
1685
1693
  value: n.value,
1686
- "onUpdate:value": u[0] || (u[0] = (p) => n.value = p)
1694
+ "onUpdate:value": c[0] || (c[0] = (p) => n.value = p)
1687
1695
  }, i.$attrs), {
1688
1696
  addonBefore: g(() => [
1689
1697
  w(l(U), {
@@ -1694,15 +1702,15 @@ const fl = /* @__PURE__ */ C({
1694
1702
  _: 1
1695
1703
  }, 16, ["value"]));
1696
1704
  }
1697
- }), vl = /* @__PURE__ */ q(Tt, [["__scopeId", "data-v-358b82ef"]]), ml = /* @__PURE__ */ C({
1705
+ }), vl = /* @__PURE__ */ q(Tt, [["__scopeId", "data-v-358b82ef"]]), ml = /* @__PURE__ */ S({
1698
1706
  __name: "inputPassword",
1699
- setup(s) {
1707
+ setup(r) {
1700
1708
  const { editorCtrl: t, labelText: e, errInfo: a } = L(), n = () => {
1701
1709
  a != null && a.value.errClass && t && Y(t);
1702
1710
  };
1703
- return (i, u) => {
1711
+ return (i, c) => {
1704
1712
  var p;
1705
- return m(), b(l(Ba), N({
1713
+ return m(), b(l(Ba), M({
1706
1714
  class: ((p = l(a)) == null ? void 0 : p.errClass) === "error" ? ["error", "!border-red-300", "shadow-[0_0_3px_0px_#ff4d4f]"] : "",
1707
1715
  "allow-clear": !0,
1708
1716
  autocomplete: "new-password",
@@ -1711,15 +1719,15 @@ const fl = /* @__PURE__ */ C({
1711
1719
  }, i.$attrs), null, 16, ["class", "placeholder"]);
1712
1720
  };
1713
1721
  }
1714
- }), hl = /* @__PURE__ */ C({
1722
+ }), hl = /* @__PURE__ */ S({
1715
1723
  __name: "inputNumber",
1716
- setup(s) {
1724
+ setup(r) {
1717
1725
  const { editorCtrl: t, labelText: e, errInfo: a } = L(), n = () => {
1718
1726
  a != null && a.value.errClass && t && Y(t);
1719
1727
  };
1720
- return (i, u) => {
1728
+ return (i, c) => {
1721
1729
  var p;
1722
- return m(), b(l(Ra), N({
1730
+ return m(), b(l(Ra), M({
1723
1731
  class: [[((p = l(a)) == null ? void 0 : p.errClass) === "error" ? "error !border-red-300 shadow-[0_0_3px_0px_#ff4d4f]" : ""], "w-[50%]"],
1724
1732
  onBlur: n,
1725
1733
  "allow-clear": !1,
@@ -1727,7 +1735,7 @@ const fl = /* @__PURE__ */ C({
1727
1735
  }, i.$attrs), null, 16, ["class", "placeholder"]);
1728
1736
  };
1729
1737
  }
1730
- }), $t = { class: "flex flex-col gap-2" }, It = { key: 1 }, gl = /* @__PURE__ */ C({
1738
+ }), $t = { class: "flex flex-col gap-2" }, It = { key: 1 }, gl = /* @__PURE__ */ S({
1731
1739
  __name: "index",
1732
1740
  props: {
1733
1741
  value: {},
@@ -1737,37 +1745,37 @@ const fl = /* @__PURE__ */ C({
1737
1745
  valueHolder: {}
1738
1746
  },
1739
1747
  emits: ["update:value"],
1740
- setup(s, { emit: t }) {
1741
- const e = s, a = t, n = x(!(e.selectList && e.selectList.length > 0)), i = x([]);
1742
- let u = !1;
1748
+ setup(r, { emit: t }) {
1749
+ const e = r, a = t, n = x(!(e.selectList && e.selectList.length > 0)), i = x([]);
1750
+ let c = !1;
1743
1751
  const p = () => {
1744
- e.selectList && e.selectList.length > 0 ? i.value = e.selectList.map((r) => ({
1752
+ e.selectList && e.selectList.length > 0 ? i.value = e.selectList.map((s) => ({
1745
1753
  id: Date.now() + Math.random(),
1746
- text: r.text,
1747
- field: r.field,
1754
+ text: s.text,
1755
+ field: s.field,
1748
1756
  // 如果value中有对应的field,使用value中的值,否则使用selectList中的默认值
1749
- value: e.value[r.field] ?? r.value
1750
- })) : e.value && Object.keys(e.value).length > 0 ? i.value = Object.entries(e.value).map(([r, v]) => ({
1757
+ value: e.value[s.field] ?? s.value
1758
+ })) : e.value && Object.keys(e.value).length > 0 ? i.value = Object.entries(e.value).map(([s, v]) => ({
1751
1759
  id: Date.now() + Math.random(),
1752
- field: r,
1760
+ field: s,
1753
1761
  value: v
1754
1762
  })) : i.value = [];
1755
1763
  };
1756
1764
  T(
1757
1765
  () => e.value,
1758
1766
  () => {
1759
- u || p(), u = !1;
1767
+ c || p(), c = !1;
1760
1768
  },
1761
1769
  { immediate: !0 }
1762
1770
  );
1763
1771
  const d = () => {
1764
- let r;
1765
- e.selectList && e.selectList.length > 0 ? (r = { ...e.value }, i.value.forEach((v) => {
1766
- v.field && (r[v.field] = v.value);
1767
- })) : r = i.value.reduce(
1768
- (v, c) => (c.field && (v[c.field] = c.value), v),
1772
+ let s;
1773
+ e.selectList && e.selectList.length > 0 ? (s = { ...e.value }, i.value.forEach((v) => {
1774
+ v.field && (s[v.field] = v.value);
1775
+ })) : s = i.value.reduce(
1776
+ (v, u) => (u.field && (v[u.field] = u.value), v),
1769
1777
  {}
1770
- ), u = !0, a("update:value", r);
1778
+ ), c = !0, a("update:value", s);
1771
1779
  }, o = () => {
1772
1780
  i.value.push({
1773
1781
  id: Date.now() + Math.random(),
@@ -1777,52 +1785,52 @@ const fl = /* @__PURE__ */ C({
1777
1785
  }, f = () => {
1778
1786
  d();
1779
1787
  };
1780
- return (r, v) => (m(), S("div", $t, [
1781
- (m(!0), S(O, null, z(i.value, (c) => (m(), S("div", {
1782
- key: c.id,
1788
+ return (s, v) => (m(), C("div", $t, [
1789
+ (m(!0), C(O, null, z(i.value, (u) => (m(), C("div", {
1790
+ key: u.id,
1783
1791
  class: "flex items-center gap-2"
1784
1792
  }, [
1785
1793
  I("div", {
1786
- class: P([r.fieldWidth ? `w-[${r.fieldWidth}%]` : "w-[33%]"])
1794
+ class: F([s.fieldWidth ? `w-[${s.fieldWidth}%]` : "w-[33%]"])
1787
1795
  }, [
1788
- !r.selectList || r.selectList.length === 0 ? (m(), b(l(ee), {
1796
+ !s.selectList || s.selectList.length === 0 ? (m(), b(l(ee), {
1789
1797
  key: 0,
1790
- value: c.field,
1791
- "onUpdate:value": (h) => c.field = h,
1792
- title: c.text || c.field,
1798
+ value: u.field,
1799
+ "onUpdate:value": (h) => u.field = h,
1800
+ title: u.text || u.field,
1793
1801
  class: "w-full",
1794
- placeholder: c.text || r.labelHolder || "配置名",
1802
+ placeholder: u.text || s.labelHolder || "配置名",
1795
1803
  onInput: f,
1796
1804
  disabled: !n.value
1797
- }, null, 8, ["value", "onUpdate:value", "title", "placeholder", "disabled"])) : (m(), S("div", It, [
1805
+ }, null, 8, ["value", "onUpdate:value", "title", "placeholder", "disabled"])) : (m(), C("div", It, [
1798
1806
  w(l(ee), {
1799
- value: c.text,
1800
- "onUpdate:value": (h) => c.text = h,
1801
- title: c.text,
1807
+ value: u.text,
1808
+ "onUpdate:value": (h) => u.text = h,
1809
+ title: u.text,
1802
1810
  disabled: !0,
1803
1811
  class: "w-[100%]"
1804
1812
  }, null, 8, ["value", "onUpdate:value", "title"]),
1805
1813
  w(l(ee), {
1806
1814
  type: "hidden",
1807
- value: c.field,
1808
- "onUpdate:value": (h) => c.field = h
1815
+ value: u.field,
1816
+ "onUpdate:value": (h) => u.field = h
1809
1817
  }, null, 8, ["value", "onUpdate:value"])
1810
1818
  ]))
1811
1819
  ], 2),
1812
1820
  v[0] || (v[0] = I("div", { class: "w-[3%]" }, "=", -1)),
1813
1821
  I("div", {
1814
- class: P([r.fieldWidth ? `w-[${97 - r.fieldWidth}%]` : "w-[64%]"])
1822
+ class: F([s.fieldWidth ? `w-[${97 - s.fieldWidth}%]` : "w-[64%]"])
1815
1823
  }, [
1816
1824
  w(l(ee), {
1817
- value: c.value,
1818
- "onUpdate:value": (h) => c.value = h,
1819
- placeholder: r.valueHolder || "请输入" + c.text || "请输入配置值",
1825
+ value: u.value,
1826
+ "onUpdate:value": (h) => u.value = h,
1827
+ placeholder: s.valueHolder || "请输入" + u.text || "请输入配置值",
1820
1828
  onInput: f,
1821
- title: c.value
1829
+ title: u.value
1822
1830
  }, null, 8, ["value", "onUpdate:value", "placeholder", "title"])
1823
1831
  ], 2)
1824
1832
  ]))), 128)),
1825
- n.value ? (m(), b(l(Ye), {
1833
+ n.value ? (m(), b(l(Ke), {
1826
1834
  key: 0,
1827
1835
  onClick: o,
1828
1836
  class: "mt-1 w-[80px] !text-[12px] text-[#666] bg-[#e6f7ff] border-[#b3e0ff] hover:bg-[#b3e0ff] hover:border-[#8abeff]",
@@ -1836,7 +1844,7 @@ const fl = /* @__PURE__ */ C({
1836
1844
  })) : k("", !0)
1837
1845
  ]));
1838
1846
  }
1839
- }), Dt = /* @__PURE__ */ q(ba, [["__scopeId", "data-v-a10d18a5"]]), bl = /* @__PURE__ */ C({
1847
+ }), Dt = /* @__PURE__ */ q(xa, [["__scopeId", "data-v-aa237552"]]), bl = /* @__PURE__ */ S({
1840
1848
  __name: "radioStatus",
1841
1849
  props: {
1842
1850
  /**
@@ -1863,14 +1871,14 @@ const fl = /* @__PURE__ */ C({
1863
1871
  required: !1
1864
1872
  }
1865
1873
  },
1866
- setup(s) {
1867
- const t = s, e = x(JSON.parse(JSON.stringify(Me.getOptions(t.dataKey))));
1874
+ setup(r) {
1875
+ const t = r, e = x(JSON.parse(JSON.stringify(Be.getOptions(t.dataKey))));
1868
1876
  return t.all === !0 && e.value.unshift({
1869
1877
  label: "全部",
1870
1878
  value: t.allValue || [0, 1]
1871
1879
  }), (a, n) => (m(), b(Dt, { data: e.value }, null, 8, ["data"]));
1872
1880
  }
1873
- }), xl = /* @__PURE__ */ C({
1881
+ }), xl = /* @__PURE__ */ S({
1874
1882
  __name: "index",
1875
1883
  props: {
1876
1884
  startDate: {},
@@ -1878,13 +1886,13 @@ const fl = /* @__PURE__ */ C({
1878
1886
  valueFormat: { default: "YYYY-MM-DD" }
1879
1887
  },
1880
1888
  emits: ["update:startDate", "update:endDate"],
1881
- setup(s, { emit: t }) {
1882
- const e = s, a = t, n = L(), { errInfo: i } = n, u = J(() => e.valueFormat), p = J(() => {
1889
+ setup(r, { emit: t }) {
1890
+ const e = r, a = t, n = L(), { errInfo: i } = n, c = J(() => e.valueFormat), p = J(() => {
1883
1891
  const o = e.startDate, f = e.endDate;
1884
1892
  if (!(!o || !f))
1885
1893
  try {
1886
- const r = fe(o), v = fe(f);
1887
- return !r.isValid() || !v.isValid() ? void 0 : [r, v];
1894
+ const s = fe(o), v = fe(f);
1895
+ return !s.isValid() || !v.isValid() ? void 0 : [s, v];
1888
1896
  } catch {
1889
1897
  return;
1890
1898
  }
@@ -1896,57 +1904,57 @@ const fl = /* @__PURE__ */ C({
1896
1904
  a("update:startDate", f[0] || null), a("update:endDate", f[1] || null);
1897
1905
  };
1898
1906
  return (o, f) => {
1899
- var r;
1907
+ var s;
1900
1908
  return m(), b(l(Oa), {
1901
- class: P([((r = l(i)) == null ? void 0 : r.errClass) === "error" ? ["error", "!border-red-300", "shadow-[0_0_3px_0px_#ff4d4f]"] : "", "w-full"]),
1902
- locale: l(ue),
1903
- "value-format": u.value,
1909
+ class: F([((s = l(i)) == null ? void 0 : s.errClass) === "error" ? ["error", "!border-red-300", "shadow-[0_0_3px_0px_#ff4d4f]"] : "", "w-full"]),
1910
+ locale: l(ce),
1911
+ "value-format": c.value,
1904
1912
  value: p.value,
1905
1913
  onChange: d
1906
1914
  }, null, 8, ["class", "locale", "value-format", "value"]);
1907
1915
  };
1908
1916
  }
1909
- }), _l = /* @__PURE__ */ q(xa, [["__scopeId", "data-v-a3448c27"]]), yl = /* @__PURE__ */ C({
1917
+ }), _l = /* @__PURE__ */ q(_a, [["__scopeId", "data-v-b33df95f"]]), yl = /* @__PURE__ */ S({
1910
1918
  __name: "index",
1911
- setup(s) {
1919
+ setup(r) {
1912
1920
  const { editorCtrl: t, labelText: e, errInfo: a } = L(), n = () => {
1913
1921
  a != null && a.value.errClass && t && Y(t);
1914
1922
  };
1915
- return (i, u) => {
1923
+ return (i, c) => {
1916
1924
  var p;
1917
- return m(), b(l(Aa), N({
1925
+ return m(), b(l(Aa), M({
1918
1926
  class: ((p = l(a)) == null ? void 0 : p.errClass) === "error" ? ["error", "!border-red-300", "shadow-[0_0_3px_0px_#ff4d4f]"] : "",
1919
1927
  "allow-clear": !0,
1920
1928
  placeholder: "请输入" + l(e),
1921
1929
  onBlur: n,
1922
- onKeyup: u[0] || (u[0] = Se(ae(() => {
1930
+ onKeyup: c[0] || (c[0] = Se(ae(() => {
1923
1931
  }, ["stop"]), ["enter", "native"])),
1924
- onKeydown: u[1] || (u[1] = Se(ae(() => {
1932
+ onKeydown: c[1] || (c[1] = Se(ae(() => {
1925
1933
  }, ["stop"]), ["enter", "native"]))
1926
1934
  }, i.$attrs), null, 16, ["class", "placeholder"]);
1927
1935
  };
1928
1936
  }
1929
- }), kl = /* @__PURE__ */ C({
1937
+ }), kl = /* @__PURE__ */ S({
1930
1938
  __name: "index",
1931
1939
  props: {
1932
1940
  valueFormat: {}
1933
1941
  },
1934
- setup(s) {
1935
- const t = s, { editorCtrl: e, labelText: a, errInfo: n } = L(), i = () => {
1942
+ setup(r) {
1943
+ const t = r, { editorCtrl: e, labelText: a, errInfo: n } = L(), i = () => {
1936
1944
  n != null && n.value.errClass && e && Y(e);
1937
- }, u = x(t.valueFormat ?? "HH:mm");
1945
+ }, c = x(t.valueFormat ?? "HH:mm");
1938
1946
  return (p, d) => {
1939
1947
  var o;
1940
1948
  return m(), b(l(La), {
1941
- class: P(["w-full", [((o = l(n)) == null ? void 0 : o.errClass) === "error" ? "error !border-red-300 shadow-[0_0_3px_0px_#ff4d4f]" : ""]]),
1949
+ class: F(["w-full", [((o = l(n)) == null ? void 0 : o.errClass) === "error" ? "error !border-red-300 shadow-[0_0_3px_0px_#ff4d4f]" : ""]]),
1942
1950
  placeholder: "请选择" + l(a),
1943
- locale: l(ue),
1944
- valueFormat: u.value,
1951
+ locale: l(ce),
1952
+ valueFormat: c.value,
1945
1953
  onBlur: i
1946
1954
  }, null, 8, ["class", "placeholder", "locale", "valueFormat"]);
1947
1955
  };
1948
1956
  }
1949
- }), Et = /* @__PURE__ */ C({
1957
+ }), Et = /* @__PURE__ */ S({
1950
1958
  __name: "index",
1951
1959
  props: {
1952
1960
  autoload: { type: Boolean },
@@ -1955,24 +1963,24 @@ const fl = /* @__PURE__ */ C({
1955
1963
  value: {}
1956
1964
  },
1957
1965
  emits: ["change", "update:value"],
1958
- setup(s, { emit: t }) {
1959
- const e = s, a = x({ ...e.url }), { editorCtrl: n, labelText: i, errInfo: u } = L(), p = t, d = x([]), o = x([]);
1960
- e.value && e.value.every((r) => {
1961
- o.value.push(r.toString());
1966
+ setup(r, { emit: t }) {
1967
+ const e = r, a = x({ ...e.url }), { editorCtrl: n, labelText: i, errInfo: c } = L(), p = t, d = x([]), o = x([]);
1968
+ e.value && e.value.every((s) => {
1969
+ o.value.push(s.toString());
1962
1970
  }), T(
1963
1971
  () => e.value,
1964
- (r) => {
1965
- r && (o.value = r);
1972
+ (s) => {
1973
+ s && (o.value = s);
1966
1974
  }
1967
1975
  );
1968
- const f = (r) => {
1969
- p("update:value", r), p("change", r), o.value = r, u != null && u.value.errClass && n && Y(n);
1976
+ const f = (s) => {
1977
+ p("update:value", s), p("change", s), o.value = s, c != null && c.value.errClass && n && Y(n);
1970
1978
  };
1971
1979
  return K(async () => {
1972
1980
  if (a.value) {
1973
- const r = n == null ? void 0 : n.page;
1974
- if (a.value.api || (a.value.api = r == null ? void 0 : r.api), a.value.authorize === void 0 && (a.value.authorize = r == null ? void 0 : r.authorize), e.autoload) {
1975
- const v = await Re(n, {
1981
+ const s = n == null ? void 0 : n.page;
1982
+ 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) {
1983
+ const v = await Oe(n, {
1976
1984
  urlKey: "list",
1977
1985
  url: { ...a.value, url: a.value.url },
1978
1986
  loadingText: !1,
@@ -1981,29 +1989,29 @@ const fl = /* @__PURE__ */ C({
1981
1989
  d.value = (v == null ? void 0 : v.data) ?? [];
1982
1990
  }
1983
1991
  }
1984
- }), (r, v) => {
1985
- var c;
1986
- return m(), b(l(za), N({
1987
- class: ((c = l(u)) == null ? void 0 : c.errClass) === "error" ? ["error", "!border-red-300", "shadow-[0_0_3px_0px_#ff4d4f]"] : "",
1992
+ }), (s, v) => {
1993
+ var u;
1994
+ return m(), b(l(za), M({
1995
+ class: ((u = l(c)) == null ? void 0 : u.errClass) === "error" ? ["error", "!border-red-300", "shadow-[0_0_3px_0px_#ff4d4f]"] : "",
1988
1996
  placeholder: "请输入" + l(i),
1989
1997
  targetKeys: o.value,
1990
1998
  onChange: f
1991
- }, r.$attrs), {
1992
- children: g(({ direction: h, disabled: y, filteredItems: $, onItemSelectAll: M, onItemSelect: _, selectedKeys: E }) => [
1993
- D(r.$slots, "children", {
1999
+ }, s.$attrs), {
2000
+ children: g(({ direction: h, disabled: y, filteredItems: $, onItemSelectAll: E, onItemSelect: _, selectedKeys: P }) => [
2001
+ D(s.$slots, "children", {
1994
2002
  direction: h,
1995
2003
  disabled: y,
1996
2004
  filteredItems: $,
1997
- onItemSelectAll: M,
2005
+ onItemSelectAll: E,
1998
2006
  onItemSelect: _,
1999
- selectedKeys: E
2007
+ selectedKeys: P
2000
2008
  })
2001
2009
  ]),
2002
2010
  _: 3
2003
2011
  }, 16, ["class", "placeholder", "targetKeys"]);
2004
2012
  };
2005
2013
  }
2006
- }), wl = /* @__PURE__ */ C({
2014
+ }), wl = /* @__PURE__ */ S({
2007
2015
  __name: "transferTable",
2008
2016
  props: {
2009
2017
  /**
@@ -2029,8 +2037,8 @@ const fl = /* @__PURE__ */ C({
2029
2037
  }
2030
2038
  },
2031
2039
  emits: ["update:value"],
2032
- setup(s, { emit: t }) {
2033
- const e = s, a = t, n = x(e.autoload), i = x(e.value), u = x(e.gridCtrl.primaryKey);
2040
+ setup(r, { emit: t }) {
2041
+ const e = r, a = t, n = x(e.autoload), i = x(e.value), c = x(e.gridCtrl.primaryKey);
2034
2042
  T(
2035
2043
  () => i.value,
2036
2044
  (o) => {
@@ -2042,23 +2050,23 @@ const fl = /* @__PURE__ */ C({
2042
2050
  o && (i.value = o);
2043
2051
  }
2044
2052
  ), e.gridCtrl.autoload = !1, e.gridCtrl.remotePage = !1, e.gridCtrl.selectable = x(!0), e.gridCtrl.buttons = x([]), e.gridCtrl.tools = [];
2045
- const p = ({ disabled: o, selectedKeys: f, onItemSelectAll: r, onItemSelect: v }) => ({
2046
- getCheckboxProps: (c) => ({
2053
+ const p = ({ disabled: o, selectedKeys: f, onItemSelectAll: s, onItemSelect: v }) => ({
2054
+ getCheckboxProps: (u) => ({
2047
2055
  // 控制是否禁止
2048
- disabled: o || c.disabled
2056
+ disabled: o || u.disabled
2049
2057
  }),
2050
- onSelectAll(c, h) {
2051
- const y = h.filter(($) => !$.disabled).map(({ [u.value]: $ }) => $);
2052
- r(y, c);
2058
+ onSelectAll(u, h) {
2059
+ const y = h.filter(($) => !$.disabled).map(({ [c.value]: $ }) => $);
2060
+ s(y, u);
2053
2061
  },
2054
- onSelect({ [u.value]: c }, h) {
2055
- v(c, h);
2062
+ onSelect({ [c.value]: u }, h) {
2063
+ v(u, h);
2056
2064
  },
2057
2065
  selectedRowKeys: f
2058
2066
  }), d = x([]);
2059
2067
  return K(async () => {
2060
2068
  if (n.value) {
2061
- const o = await Re(e.gridCtrl, {
2069
+ const o = await Oe(e.gridCtrl, {
2062
2070
  urlKey: "list",
2063
2071
  url: { ...e.gridCtrl.gridUrl, url: e.gridCtrl.gridUrl.url },
2064
2072
  params: e.gridCtrl.gridQuery,
@@ -2066,42 +2074,42 @@ const fl = /* @__PURE__ */ C({
2066
2074
  });
2067
2075
  d.value = (o == null ? void 0 : o.data) ?? [];
2068
2076
  }
2069
- }), (o, f) => (m(), b(Et, N({
2077
+ }), (o, f) => (m(), b(Et, M({
2070
2078
  "data-source": d.value,
2071
- "row-key": (r) => r[u.value],
2079
+ "row-key": (s) => s[c.value],
2072
2080
  value: i.value,
2073
- "onUpdate:value": f[0] || (f[0] = (r) => i.value = r),
2081
+ "onUpdate:value": f[0] || (f[0] = (s) => i.value = s),
2074
2082
  "list-style": {
2075
2083
  width: "300px",
2076
2084
  height: "500px"
2077
2085
  },
2078
2086
  "show-select-all": !1,
2079
2087
  "show-search": !0,
2080
- "filter-option": (r, v) => {
2081
- for (const c of e.gridCtrl.columns.value)
2082
- if (v[c.dataIndex].toString().indexOf(r) !== -1)
2088
+ "filter-option": (s, v) => {
2089
+ for (const u of e.gridCtrl.columns.value)
2090
+ if (v[u.dataIndex].toString().indexOf(s) !== -1)
2083
2091
  return !0;
2084
2092
  return !1;
2085
2093
  }
2086
2094
  }, o.$attrs), {
2087
- children: g(({ filteredItems: r, onItemSelectAll: v, onItemSelect: c, selectedKeys: h }) => [
2088
- w(l(Ke), {
2089
- columns: s.gridCtrl.columns.value,
2090
- "row-key": u.value,
2095
+ children: g(({ filteredItems: s, onItemSelectAll: v, onItemSelect: u, selectedKeys: h }) => [
2096
+ w(l(We), {
2097
+ columns: r.gridCtrl.columns.value,
2098
+ "row-key": c.value,
2091
2099
  "row-selection": p({
2092
2100
  disabled: !1,
2093
2101
  selectedKeys: h,
2094
2102
  onItemSelectAll: v,
2095
- onItemSelect: c
2103
+ onItemSelect: u
2096
2104
  }),
2097
2105
  bordered: !1,
2098
2106
  size: "small",
2099
- "data-source": r,
2107
+ "data-source": s,
2100
2108
  scroll: { x: 300 },
2101
2109
  "custom-row": (y) => ({
2102
2110
  onClick: () => {
2103
- const $ = y[u.value];
2104
- c($, !h.includes($));
2111
+ const $ = y[c.value];
2112
+ u($, !h.includes($));
2105
2113
  }
2106
2114
  })
2107
2115
  }, null, 8, ["columns", "row-key", "row-selection", "data-source", "custom-row"])
@@ -2109,7 +2117,7 @@ const fl = /* @__PURE__ */ C({
2109
2117
  _: 1
2110
2118
  }, 16, ["data-source", "row-key", "value", "filter-option"]));
2111
2119
  }
2112
- }), Pt = /* @__PURE__ */ C({
2120
+ }), Pt = /* @__PURE__ */ S({
2113
2121
  __name: "index",
2114
2122
  props: {
2115
2123
  multiple: {
@@ -2135,68 +2143,70 @@ const fl = /* @__PURE__ */ C({
2135
2143
  }
2136
2144
  },
2137
2145
  emits: ["change", "update:value"],
2138
- setup(s, { emit: t }) {
2139
- const e = s, a = e.value === void 0 ? !0 : e.undefValue, n = e.treeCtrl, i = L(), { errInfo: u, labelText: p } = i, d = t;
2146
+ setup(r, { emit: t }) {
2147
+ const e = r, a = e.value === void 0 ? !0 : e.undefValue, n = e.treeCtrl, i = L(), { errInfo: c, labelText: p } = i, d = t;
2140
2148
  i.inputEmit = d;
2141
2149
  const o = x([]), f = x();
2142
2150
  T(
2143
2151
  () => e.value,
2144
- (c) => {
2145
- f.value = c;
2152
+ (u) => {
2153
+ f.value = u;
2146
2154
  },
2147
2155
  { immediate: !0 }
2148
2156
  ), T(
2149
2157
  () => f.value,
2150
- (c) => {
2151
- d("update:value", c);
2158
+ (u) => {
2159
+ d("update:value", u);
2152
2160
  }
2153
2161
  ), T(
2154
2162
  () => n.data.value,
2155
- (c) => {
2156
- c && (o.value = n.fieldMap ? oe(n.fieldMap, c) : c);
2163
+ (u) => {
2164
+ u && (o.value = n.fieldMap ? oe(n.fieldMap, u) : u);
2157
2165
  },
2158
2166
  { immediate: !0 }
2159
2167
  );
2160
- const r = (c) => {
2161
- e.multiple ? f.value = c ?? [] : c == null ? f.value = a ? void 0 : null : f.value = c, d("change", f.value);
2168
+ const s = (u) => {
2169
+ e.multiple ? f.value = u ?? [] : u == null ? f.value = a ? void 0 : null : f.value = u, d("change", f.value);
2162
2170
  };
2163
- K(() => {
2171
+ xe(() => {
2172
+ e.treeCtrl && e.treeCtrl.autoload && (e.treeCtrl.reload.value = !0);
2173
+ }), K(() => {
2164
2174
  n.fieldMap || (n.fieldMap = {
2165
2175
  label: "Name",
2166
2176
  key: "Id",
2167
2177
  value: "Id"
2168
- }), n.data.value ? o.value = n.fieldMap ? oe(n.fieldMap, n.data.value) : n.data.value : e.treeCtrl.autoload && Be(e.treeCtrl);
2178
+ }), n.data.value ? o.value = n.fieldMap ? oe(n.fieldMap, n.data.value) : n.data.value : e.treeCtrl.autoload && Re(e.treeCtrl);
2169
2179
  });
2170
2180
  const v = () => {
2171
2181
  f.value = a ? void 0 : null;
2172
2182
  };
2173
- return (c, h) => {
2183
+ return (u, h) => {
2174
2184
  var y;
2175
- return m(), b(l(Ua), N({
2176
- class: [[(y = l(u)) == null ? void 0 : y.errClass], "w-full"],
2185
+ return m(), b(l(Ua), M({
2186
+ class: [[(y = l(c)) == null ? void 0 : y.errClass], "w-full"],
2177
2187
  "tree-line": "",
2178
- multiple: s.multiple,
2188
+ multiple: r.multiple,
2179
2189
  "tree-default-expanded-keys": ["-"],
2180
2190
  value: f.value,
2181
2191
  "onUpdate:value": h[0] || (h[0] = ($) => f.value = $),
2182
2192
  "tree-data": o.value,
2183
2193
  placeholder: "请选择" + l(p),
2184
- onChange: r,
2194
+ onChange: s,
2185
2195
  onClear: v
2186
- }, c.$attrs), null, 16, ["class", "multiple", "value", "tree-data", "placeholder"]);
2196
+ }, u.$attrs), null, 16, ["class", "multiple", "value", "tree-data", "placeholder"]);
2187
2197
  };
2188
2198
  }
2189
- }), Sl = /* @__PURE__ */ q(Pt, [["__scopeId", "data-v-a0ed9c4e"]]), Ft = { class: "relative h-[calc(100vh-80px)] overflow-y-auto" }, Nt = { class: "flex w-full h-full min-h-full" }, Mt = {
2199
+ }), Cl = /* @__PURE__ */ q(Pt, [["__scopeId", "data-v-71d50074"]]), Ft = { class: "relative h-[calc(100vh-80px)] overflow-y-auto" }, Nt = { class: "flex w-full h-full min-h-full" }, Mt = {
2190
2200
  key: 0,
2191
2201
  class: "w-1/4 pr-4 min-h-full min-w-[170px] max-w-[200px]"
2192
- }, Bt = { class: "flex-1 h-full overflow-y-auto" }, Cl = /* @__PURE__ */ C({
2202
+ }, Bt = { class: "flex-1 h-full overflow-y-auto" }, Sl = /* @__PURE__ */ S({
2193
2203
  __name: "index",
2194
2204
  props: {
2195
2205
  left: { type: Boolean }
2196
2206
  },
2197
- setup(s) {
2198
- const { useToken: t } = ze, { token: e } = t();
2199
- return (a, n) => (m(), S("div", Ft, [
2207
+ setup(r) {
2208
+ const { useToken: t } = Ue, { token: e } = t();
2209
+ return (a, n) => (m(), C("div", Ft, [
2200
2210
  w(l(Va), {
2201
2211
  class: "m-[10px] p-[10px] h-[calc(100vh-100px)] !min-h-[calc(100vh-100px)]",
2202
2212
  style: be({
@@ -2205,7 +2215,7 @@ const fl = /* @__PURE__ */ C({
2205
2215
  }, {
2206
2216
  default: g(() => [
2207
2217
  I("div", Nt, [
2208
- a.left ? (m(), S("div", Mt, [
2218
+ a.left ? (m(), C("div", Mt, [
2209
2219
  D(a.$slots, "left")
2210
2220
  ])) : k("", !0),
2211
2221
  I("div", Bt, [
@@ -2219,45 +2229,45 @@ const fl = /* @__PURE__ */ C({
2219
2229
  }
2220
2230
  });
2221
2231
  export {
2222
- ws as Alert,
2223
- As as AppIcon,
2224
- ce as AppRouter,
2225
- vs as AsyncUploader,
2226
- ul as AutoComplete,
2227
- Ls as Breadcrumb,
2232
+ wr as Alert,
2233
+ Ar as AppIcon,
2234
+ ue as AppRouter,
2235
+ vr as AsyncUploader,
2236
+ cl as AutoComplete,
2237
+ Lr as Breadcrumb,
2228
2238
  A as Button,
2229
- Qe as Cache,
2239
+ qe as Cache,
2230
2240
  at as CacheKeys,
2231
- bs as CanPreviewFileExt,
2241
+ br as CanPreviewFileExt,
2232
2242
  dl as Cascader,
2233
2243
  pl as Checkbox,
2234
- Cl as Content,
2244
+ Sl as Content,
2235
2245
  fl as DatePicker,
2236
- zs as Datetime,
2237
- Qs as Dialog,
2238
- sl as Drawer,
2246
+ zr as Datetime,
2247
+ Qr as Dialog,
2248
+ rl as Drawer,
2239
2249
  Il as EventPrefix,
2240
- rl as Form,
2250
+ sl as Form,
2241
2251
  ol as FormItem,
2242
2252
  tl as Fullscreen,
2243
- Us as Header,
2244
- Vs as HeaderExits,
2253
+ Ur as Header,
2254
+ Vr as HeaderExits,
2245
2255
  lt as Helper,
2246
2256
  Dl as ICONS_LIB,
2247
- Ys as Icon,
2257
+ Yr as Icon,
2248
2258
  ft as Icontool,
2249
- Ct as Input,
2259
+ St as Input,
2250
2260
  vl as InputIcon,
2251
2261
  hl as InputNumber,
2252
2262
  ml as InputPassword,
2253
2263
  ll as LayoutIcon,
2254
- Ss as Loading,
2255
- Ks as Menu,
2256
- Ws as MenuTabs,
2264
+ Cr as Loading,
2265
+ Kr as Menu,
2266
+ Wr as MenuTabs,
2257
2267
  El as MicroOpenApis,
2258
- Me as OPTIONS,
2259
- ua as OptionCommProps,
2260
- Hs as ProjectIcon,
2268
+ Be as OPTIONS,
2269
+ da as OptionCommProps,
2270
+ Hr as ProjectIcon,
2261
2271
  gl as PropEditor,
2262
2272
  j as ProviderKeys,
2263
2273
  Dt as Radio,
@@ -2266,110 +2276,110 @@ export {
2266
2276
  nl as Search,
2267
2277
  pe as SearchItem,
2268
2278
  _l as Select,
2269
- oa as Switch,
2279
+ na as Switch,
2270
2280
  il as Table,
2271
2281
  dt as TableOperate,
2272
2282
  yl as Textarea,
2273
2283
  kl as TimePicker,
2274
2284
  U as ToolIcon,
2275
2285
  gt as Toolbar,
2276
- Rs as Tooltip,
2286
+ Rr as Tooltip,
2277
2287
  Et as Transfer,
2278
2288
  wl as TransferTable,
2279
- cl as Tree,
2280
- Sl as TreeSelect,
2281
- xs as UploadList,
2282
- ms as UploadStatus,
2283
- Cs as appendExcelData,
2284
- Ts as checkExcelDuplicates,
2289
+ ul as Tree,
2290
+ Cl as TreeSelect,
2291
+ xr as UploadList,
2292
+ mr as UploadStatus,
2293
+ Sr as appendExcelData,
2294
+ Tr as checkExcelDuplicates,
2285
2295
  Pl as checkIconsExpired,
2286
- va as circleLoading,
2287
- Ze as createFromIconfont,
2288
- $s as createMarkedExcelView,
2296
+ ma as circleLoading,
2297
+ ea as createFromIconfont,
2298
+ $r as createMarkedExcelView,
2289
2299
  Fl as crumbs,
2290
2300
  Xt as csvToExcelBlob,
2291
- He as csvToExcelView,
2292
- Is as csvToNormalized,
2293
- De as defaultTools,
2301
+ je as csvToExcelView,
2302
+ Ir as csvToNormalized,
2303
+ Ee as defaultTools,
2294
2304
  Nl as doDelete,
2295
2305
  Ml as doExecute,
2296
- Re as doQuery,
2306
+ Oe as doQuery,
2297
2307
  Bl as doSave,
2298
- _s as donwloadFromMinio,
2299
- We as downloadBlob,
2308
+ _r as donwloadFromMinio,
2309
+ He as downloadBlob,
2300
2310
  Rl as eventBus,
2301
- Ds as excelToExcelView,
2302
- Es as excelToNormalized,
2311
+ Dr as excelToExcelView,
2312
+ Er as excelToNormalized,
2303
2313
  al as exportResults,
2304
2314
  el as exportSelectedRows,
2305
- Ne as filterColumns,
2315
+ Me as filterColumns,
2306
2316
  Y as formValidate,
2307
2317
  Ol as getFormDetail,
2308
2318
  Al as getIconTransform,
2309
2319
  Ll as getRecordDetail,
2310
2320
  zl as getRuleTexts,
2311
- ha as getSelectedLabels,
2321
+ ga as getSelectedLabels,
2312
2322
  Ul as getSelectedValues,
2313
2323
  W as getToolByKey,
2314
- ye as getToolGroup,
2324
+ ke as getToolGroup,
2315
2325
  H as getToolStatus,
2316
2326
  G as getToolVisible,
2317
- ke as gridQueryFind,
2318
- ra as gridQueryList,
2327
+ we as gridQueryFind,
2328
+ oa as gridQueryList,
2319
2329
  Vl as gridRowUpdate,
2320
- na as gridStatusUpdate,
2330
+ ia as gridStatusUpdate,
2321
2331
  Jt as initCacheCheck,
2322
2332
  Gt as initDirective,
2323
2333
  Yl as initMenu,
2324
2334
  Kl as initPageFactory,
2325
2335
  Wl as initValidate,
2326
2336
  Z as isEmpty,
2327
- pa as loadOption,
2337
+ fa as loadOption,
2328
2338
  Hl as mergeColumns,
2329
- Ps as normalizedToExcelView,
2339
+ Pr as normalizedToExcelView,
2330
2340
  Za as onColumnVisibleChanged,
2331
- aa as onFormClose,
2332
- Pe as onFormSave,
2333
- ea as onFormSaveAs,
2334
- je as onFullscreenClick,
2335
- la as onGridRowDelete,
2336
- ta as onGridRowEdit,
2341
+ ta as onFormClose,
2342
+ Fe as onFormSave,
2343
+ aa as onFormSaveAs,
2344
+ Qe as onFullscreenClick,
2345
+ ra as onGridRowDelete,
2346
+ la as onGridRowEdit,
2337
2347
  jl as onGridRowExpand,
2338
- ma as onOptionChanged,
2348
+ ha as onOptionChanged,
2339
2349
  Ha as onReloadClick,
2340
2350
  V as onToolClicked,
2341
2351
  sa as openNewForm,
2342
2352
  Ql as outFormDataFields,
2343
2353
  ql as parseIcons,
2344
- hs as path,
2354
+ hr as path,
2345
2355
  Gl as pendingNavigation,
2346
2356
  Jl as pinia,
2347
- ys as previewFromMinio,
2357
+ yr as previewFromMinio,
2348
2358
  Zt as processCsvFile,
2349
- Fs as processExcelFile,
2350
- Be as queryTree,
2359
+ Fr as processExcelFile,
2360
+ Re as queryTree,
2351
2361
  Xl as resetRules,
2352
2362
  Zl as routes,
2353
- es as saveForm,
2354
- as as setFormData,
2355
- ts as showBreadcrumb,
2356
- Ns as toExcel,
2357
- fa as unloadOption,
2358
- ls as uploadTempBtn,
2359
- ss as uploadTempOpener,
2360
- rs as useAppInfo,
2361
- os as useEditorFactory,
2362
- Fe as useFormItemFactory,
2363
- ns as useGridFactory,
2364
- is as useHostInfo,
2363
+ er as saveForm,
2364
+ ar as setFormData,
2365
+ tr as showBreadcrumb,
2366
+ Nr as toExcel,
2367
+ va as unloadOption,
2368
+ lr as uploadTempBtn,
2369
+ rr as uploadTempOpener,
2370
+ sr as useAppInfo,
2371
+ or as useEditorFactory,
2372
+ Ne as useFormItemFactory,
2373
+ nr as useGridFactory,
2374
+ ir as useHostInfo,
2365
2375
  L as useInputFactory,
2366
- da as useOptionFactory,
2367
- cs as usePageFactory,
2368
- us as usePageInfo,
2376
+ pa as useOptionFactory,
2377
+ ur as usePageFactory,
2378
+ cr as usePageInfo,
2369
2379
  me as useSettingInfo,
2370
2380
  et as useToolFactory,
2371
- ds as useTreeFactory,
2372
- Ee as useUserInfo,
2373
- ps as validateData,
2374
- Ms as validateExcel
2381
+ dr as useTreeFactory,
2382
+ Pe as useUserInfo,
2383
+ pr as validateData,
2384
+ Mr as validateExcel
2375
2385
  };