@skyfox2000/webui 1.3.5 → 1.3.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (45) hide show
  1. package/.vscode/settings.json +1 -1
  2. package/lib/assets/modules/{file-upload-C0twqMV5.js → file-upload-DhPgqGdk.js} +50 -50
  3. package/lib/assets/modules/index-02J2AYth.js +377 -0
  4. package/lib/assets/modules/{index-D1XAa1Uo.js → index-C31q4LHC.js} +2 -2
  5. package/lib/assets/modules/{index-C4CryM-R.js → index-CCpTizF9.js} +1 -1
  6. package/lib/assets/modules/{menuTabs-BrYQa4UO.js → menuTabs-DyhSKN9r.js} +2 -2
  7. package/lib/assets/modules/{toolIcon-B-g9pyE4.js → toolIcon-CqM4gBIc.js} +1 -1
  8. package/lib/assets/modules/{uploadList-0f2FA_5s.js → uploadList-DAVjJkqz.js} +127 -127
  9. package/lib/assets/modules/{uploadList-DCWRIxPJ.js → uploadList-ZajZKqaS.js} +4 -4
  10. package/lib/components/common/alert/index.vue.d.ts +13 -0
  11. package/lib/components/common/icon/helper.vue.d.ts +1 -0
  12. package/lib/components/common/index.d.ts +2 -0
  13. package/lib/components/content/form/formItem.vue.d.ts +1 -0
  14. package/lib/components/form/input/index.vue.d.ts +4 -1
  15. package/lib/components/form/select/index.vue.d.ts +2 -0
  16. package/lib/components/form/treeSelect/index.vue.d.ts +11 -2
  17. package/lib/components/index.d.ts +1 -1
  18. package/lib/es/AceEditor/index.js +3 -3
  19. package/lib/es/BasicLayout/index.js +3 -3
  20. package/lib/es/Error403/index.js +1 -1
  21. package/lib/es/Error404/index.js +1 -1
  22. package/lib/es/ExcelForm/index.js +311 -275
  23. package/lib/es/UploadForm/index.js +4 -4
  24. package/lib/index.d.ts +1 -1
  25. package/lib/typings/form.d.ts +2 -2
  26. package/lib/utils/excel-preview.d.ts +24 -0
  27. package/lib/utils/form-excel.d.ts +17 -4
  28. package/lib/webui.css +1 -1
  29. package/lib/webui.es.js +677 -662
  30. package/package.json +1 -1
  31. package/src/components/common/alert/index.vue +76 -0
  32. package/src/components/common/icon/helper.vue +7 -1
  33. package/src/components/common/index.ts +4 -1
  34. package/src/components/content/dialog/excelForm.vue +337 -308
  35. package/src/components/content/form/formItem.vue +6 -2
  36. package/src/components/form/input/index.vue +16 -3
  37. package/src/components/form/select/index.vue +5 -11
  38. package/src/components/form/treeSelect/index.vue +22 -17
  39. package/src/components/index.ts +1 -0
  40. package/src/index.ts +1 -0
  41. package/src/typings/form.d.ts +2 -2
  42. package/src/utils/excel-preview.ts +188 -0
  43. package/src/utils/file-upload.ts +0 -2
  44. package/src/utils/form-excel.ts +132 -126
  45. package/lib/assets/modules/index-CKJIxasX.js +0 -333
package/lib/webui.es.js CHANGED
@@ -1,62 +1,62 @@
1
- import { u as Je, i as Z, a as me, c as Xe, P as j, o as Ee, b as Ze, d as ea, e as Pe, r as ce, f as aa, g as ta, h as Fe, j as la, k as ke, l as sa, _ as ra, m as oa, O as Ne, q as Me, n as na, p as ia, s as L, t as ca, v as ua, w as da, x as pa, y as fa, z as va, A as Q, B as ma, C as ha, D as ga, E as Re } from "./assets/modules/uploadList-0f2FA_5s.js";
2
- import { a9 as Cl, N as Tl, Q as $l, U as Il, a8 as Dl, a6 as El, a7 as Pl, aa as Fl, X as Nl, S as Ml, a4 as Rl, a1 as Ol, L as Al, a3 as Bl, T as Ll, G as Ul, Z as zl, a2 as Yl, a5 as Vl, M as Wl, R as Kl, ab as jl, F as Hl, a0 as Ql, ac as ql, W as Gl, Y as Jl, V as Xl, ad as Zl, H as es, I as as, ae as ts, K as ls, af as ss, J as rs, $ as os } from "./assets/modules/uploadList-0f2FA_5s.js";
3
- import { A as is, U as cs, a as us, g as ds, c as ps, d as fs, p as vs, u as ms, b as hs } from "./assets/modules/file-upload-C0twqMV5.js";
1
+ import { u as Je, i as Z, a as me, c as Xe, P as j, o as Ee, b as Ze, d as ea, e as Pe, r as ce, f as aa, g as ta, h as Fe, j as la, k as ke, l as sa, _ as ra, m as oa, O as Ne, q as Me, n as na, p as ia, s as L, t as ca, v as ua, w as da, x as pa, y as fa, z as va, A as Q, B as ma, C as ha, D as ga, E as Re } from "./assets/modules/uploadList-DAVjJkqz.js";
2
+ import { a9 as Sl, N as Cl, Q as Tl, U as $l, a8 as Il, a6 as Dl, a7 as El, aa as Pl, X as Fl, S as Nl, a4 as Ml, a1 as Rl, L as Bl, a3 as Ol, T as Al, G as Ll, Z as zl, a2 as Ul, a5 as Vl, M as Yl, R as Wl, ab as Kl, F as jl, a0 as Hl, ac as Ql, W as ql, Y as Gl, V as Jl, ad as Xl, H as Zl, I as es, ae as as, K as ts, af as ls, J as ss, $ as rs } from "./assets/modules/uploadList-DAVjJkqz.js";
3
+ import { A as ns, U as is, a as cs, g as us, c as ds, d as ps, p as fs, u as vs, b as ms } from "./assets/modules/file-upload-DhPgqGdk.js";
4
4
  import { EnvConfig as we } from "@skyfox2000/microbase";
5
- import { FrontCache as re, httpPost as Oe, ResStatus as Ae, SERVER_HOST as ba, fieldMapping as oe } from "@skyfox2000/fapi";
5
+ import { FrontCache as re, httpPost as Be, ResStatus as Oe, SERVER_HOST as ba, fieldMapping as oe } from "@skyfox2000/fapi";
6
6
  import he from "vue-m-message";
7
- import { defineComponent as S, createBlock as b, openBlock as m, withModifiers as ae, unref as l, useAttrs as X, withCtx as h, createElementVNode as $, createVNode as k, mergeProps as F, renderSlot as I, normalizeStyle as ue, toDisplayString as P, createCommentVNode as y, ref as x, provide as ge, watch as T, onMounted as V, createTextVNode as M, inject as ne, resolveDirective as le, withDirectives as H, computed as J, createElementBlock as w, normalizeClass as N, createSlots as Be, useSlots as xa, Fragment as O, renderList as U, resolveDynamicComponent as _a, onActivated as ya, shallowRef as ka, onUnmounted as wa, withKeys as Se } from "vue";
7
+ import { defineComponent as C, createBlock as b, openBlock as m, withModifiers as ae, unref as l, useAttrs as X, withCtx as g, createElementVNode as $, createVNode as w, mergeProps as F, renderSlot as D, normalizeStyle as ue, toDisplayString as P, createCommentVNode as k, ref as x, provide as ge, watch as T, onMounted as Y, createTextVNode as M, inject as ne, resolveDirective as le, withDirectives as H, computed as J, createElementBlock as S, normalizeClass as N, createSlots as Ae, useSlots as xa, Fragment as B, renderList as z, resolveDynamicComponent as _a, onActivated as ya, shallowRef as ka, onUnmounted as wa, withKeys as Se } from "vue";
8
8
  import "async-validator";
9
9
  import fe from "dayjs";
10
- import { Popover as Sa, theme as Le, Drawer as Ca, Space as te, Form as Ue, message as Ta, FormItem as ze, ConfigProvider as Ce, Popconfirm as $a, Button as Ye, DropdownButton as Ia, Menu as be, MenuItem as xe, Dropdown as ve, Checkbox as Da, Table as Ve, Tree as Ea, Cascader as Pa, DatePicker as Fa, Input as ee, InputPassword as Na, InputNumber as Ma, RangePicker as Ra, Textarea as Oa, Transfer as Aa, TreeSelect as Ba, LayoutContent as La } from "ant-design-vue";
11
- import { VueDraggableNext as Ua } from "vue-draggable-next";
12
- import { d as We } from "./assets/modules/uploadList-DCWRIxPJ.js";
13
- import { C as bs, U as xs, a as _s, p as ys } from "./assets/modules/uploadList-DCWRIxPJ.js";
14
- import { c as Ke } from "./assets/modules/index-CKJIxasX.js";
15
- import { _ as ws, b as Ss, a as Cs, d as Ts, e as $s, g as Is, f as Ds, n as Es, p as Ps, t as Fs, v as Ns } from "./assets/modules/index-CKJIxasX.js";
16
- import { _ as B } from "./assets/modules/index-C4CryM-R.js";
17
- import { _ as z } from "./assets/modules/toolIcon-B-g9pyE4.js";
18
- import { a as Rs } from "./assets/modules/toolIcon-B-g9pyE4.js";
19
- import { _ as As, b as Bs, c as Ls, d as Us, e as zs, I as Ys, f as Vs, g as Ws, a as Ks } from "./assets/modules/menuTabs-BrYQa4UO.js";
20
- import { _ as Hs } from "./assets/modules/index-D1XAa1Uo.js";
10
+ import { Popover as Sa, theme as Le, Drawer as Ca, Space as te, Form as ze, message as Ta, FormItem as Ue, ConfigProvider as Ce, Popconfirm as $a, Button as Ve, DropdownButton as Ia, Menu as be, MenuItem as xe, Dropdown as ve, Checkbox as Da, Table as Ye, Tree as Ea, Cascader as Pa, DatePicker as Fa, Input as ee, InputPassword as Na, InputNumber as Ma, RangePicker as Ra, Textarea as Ba, Transfer as Oa, TreeSelect as Aa, LayoutContent as La } from "ant-design-vue";
11
+ import { VueDraggableNext as za } from "vue-draggable-next";
12
+ import { d as We } from "./assets/modules/uploadList-ZajZKqaS.js";
13
+ import { C as gs, U as bs, a as xs, p as _s } from "./assets/modules/uploadList-ZajZKqaS.js";
14
+ import { c as Ke } from "./assets/modules/index-02J2AYth.js";
15
+ import { _ as ks, h as ws, b as Ss, a as Cs, d as Ts, e as $s, g as Is, f as Ds, n as Es, p as Ps, t as Fs, v as Ns } from "./assets/modules/index-02J2AYth.js";
16
+ import { _ as A } from "./assets/modules/index-CCpTizF9.js";
17
+ import { _ as U } from "./assets/modules/toolIcon-CqM4gBIc.js";
18
+ import { a as Rs } from "./assets/modules/toolIcon-CqM4gBIc.js";
19
+ import { _ as Os, b as As, c as Ls, d as zs, e as Us, I as Vs, f as Ys, g as Ws, a as Ks } from "./assets/modules/menuTabs-DyhSKN9r.js";
20
+ import { _ as Hs } from "./assets/modules/index-C31q4LHC.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 Te = (s, a, e, t = "remove") => {
23
23
  if (!e)
24
- if (a === "disable") {
25
- const n = t.component;
26
- n ? n.props.disabled = !0 : (t.el, s.setAttribute("disabled", "disabled"), s.disabled = !0), s.classList.add("disabled");
24
+ if (t === "disable") {
25
+ const n = a.component;
26
+ n ? n.props.disabled = !0 : (a.el, s.setAttribute("disabled", "disabled"), s.disabled = !0), s.classList.add("disabled");
27
27
  } else {
28
28
  const n = document.createComment("No Permission"), i = s.parentNode;
29
29
  if (i) {
30
- const c = t.component;
30
+ const c = a.component;
31
31
  c ? c.props.style = { display: "none" } : i.replaceChild(n, s);
32
32
  }
33
33
  }
34
34
  }, $e = (s) => {
35
35
  var c, p;
36
- const t = Je(), { url: e, role: a, permit: n } = s;
37
- if (Z(a) && Z(n))
36
+ const a = Je(), { url: e, role: t, permit: n } = s;
37
+ if (Z(t) && Z(n))
38
38
  return !0;
39
39
  const i = e ?? ((p = (c = window.location.hash) == null ? void 0 : c.split("#")) == null ? void 0 : p[1]) ?? window.location.pathname;
40
40
  if (we.VITE_PERMISSION_MODE === "role")
41
- return Z(a) ? !0 : t.hasRole(a);
41
+ return Z(t) ? !0 : a.hasRole(t);
42
42
  if (we.VITE_PERMISSION_MODE === "permit") {
43
43
  let d = !1, o = !1;
44
- return Z(a) || (d = t.hasRole(a)), t.isAdmin() ? d : (Z(n) || (o = t.hasPermit(i, n)), d || o);
44
+ return Z(t) || (d = a.hasRole(t)), a.isAdmin() ? d : (Z(n) || (o = a.hasPermit(i, n)), d || o);
45
45
  }
46
46
  return !1;
47
- }, za = {
48
- mounted(s, t, e) {
49
- const a = t.value || {}, n = t.arg || "remove", i = a.behavior || n, c = $e(a);
47
+ }, Ua = {
48
+ mounted(s, a, e) {
49
+ const t = a.value || {}, n = a.arg || "remove", i = t.behavior || n, c = $e(t);
50
50
  Te(s, e, c, i);
51
51
  },
52
- updated(s, t, e) {
53
- const a = t.value || {}, n = t.arg || "remove", i = a.behavior || n, c = $e(a);
52
+ updated(s, a, e) {
53
+ const t = a.value || {}, n = a.arg || "remove", i = t.behavior || n, c = $e(t);
54
54
  Te(s, e, c, i);
55
55
  }
56
- }, Ya = {
57
- mounted: (s, t) => {
56
+ }, Va = {
57
+ mounted: (s, a) => {
58
58
  s.addEventListener("keydown", (e) => {
59
- e.key === "Enter" && t.value();
59
+ e.key === "Enter" && a.value();
60
60
  });
61
61
  },
62
62
  unmounted: (s) => {
@@ -64,22 +64,22 @@ const Te = (s, t, e, a = "remove") => {
64
64
  });
65
65
  }
66
66
  }, de = {
67
- auth: za,
68
- submit: Ya
69
- }, Qt = (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);
67
+ auth: Ua,
68
+ submit: Va
69
+ }, Ht = (s, a) => ((a || Object.keys(de)).forEach((t) => {
70
+ t in de && s.directive(t, de[t]);
71
+ }), s), W = (s, a) => {
72
+ const e = s.find((t) => t.key === a);
73
73
  if (e)
74
74
  return e;
75
- for (const a of s)
76
- if (a.children) {
77
- const n = W(a.children, t);
75
+ for (const t of s)
76
+ if (t.children) {
77
+ const n = W(t.children, a);
78
78
  if (n)
79
79
  return n;
80
80
  }
81
- }, _e = (s, t, e) => {
82
- const a = [], n = [];
81
+ }, _e = (s, a, e) => {
82
+ const t = [], n = [];
83
83
  return e || (e = [...s]), e.length && e.forEach((i, c) => {
84
84
  let p;
85
85
  if (typeof i == "string") {
@@ -93,47 +93,47 @@ const Te = (s, t, e, a = "remove") => {
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 || c < t ? a.push(p) : n.push(p);
97
- }), { buttons: a, menus: n };
98
- }, K = (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, Va = (s, t) => {
99
- t.reload.value = !0;
100
- }, Wa = (s, t) => {
101
- t.searchBar.value = !t.searchBar.value;
102
- }, Ka = (s, t) => {
103
- switch (t.tableSize.value) {
96
+ }), a === 0 || c < a ? t.push(p) : n.push(p);
97
+ }), { buttons: t, menus: n };
98
+ }, K = (s, a) => s.disabled && typeof s.disabled == "function" ? s.disabled(a) : s.disabled, G = (s, a) => s.visible && typeof s.visible == "function" ? s.visible(a) : s.visible ?? !0, Ya = (s, a) => {
99
+ a.reload.value = !0;
100
+ }, Wa = (s, a) => {
101
+ a.searchBar.value = !a.searchBar.value;
102
+ }, Ka = (s, a) => {
103
+ switch (a.tableSize.value) {
104
104
  case "large":
105
- t.tableSize.value = "middle";
105
+ a.tableSize.value = "middle";
106
106
  break;
107
107
  case "middle":
108
- t.tableSize.value = "small";
108
+ a.tableSize.value = "small";
109
109
  break;
110
110
  case "small":
111
- t.tableSize.value = "large";
111
+ a.tableSize.value = "large";
112
112
  break;
113
113
  }
114
- }, ja = (s, t) => {
115
- t.selectable.value = !t.selectable.value, t.selectable.value || (t.selectKeys.value = [], t.selectRows.value = []);
116
- }, Ha = (s, t) => {
117
- t.rowExpand.value = !t.rowExpand.value;
118
- }, Ie = (s, t) => {
119
- t.selectable.value = !t.selectable.value;
120
- }, Y = (s, t, e, a, n) => {
121
- (!s.confirm || n) && s.click && (t ? s.click(t, e, a) : s.click(null, e, a)), qa(s);
122
- }, Qa = (s, t) => {
123
- t.selectable.value = !t.selectable.value;
114
+ }, ja = (s, a) => {
115
+ a.selectable.value = !a.selectable.value, a.selectable.value || (a.selectKeys.value = [], a.selectRows.value = []);
116
+ }, Ha = (s, a) => {
117
+ a.rowExpand.value = !a.rowExpand.value;
118
+ }, Ie = (s, a) => {
119
+ a.selectable.value = !a.selectable.value;
120
+ }, V = (s, a, e, t, n) => {
121
+ (!s.confirm || n) && s.click && (a ? s.click(a, e, t) : s.click(null, e, t)), qa(s);
122
+ }, Qa = (s, a) => {
123
+ a.selectable.value = !a.selectable.value;
124
124
  }, je = () => {
125
125
  const s = me();
126
126
  s.setFullscreen(!s.fullscreen);
127
- }, qa = (s, t) => {
127
+ }, qa = (s, a) => {
128
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
- }, Ga = (s, t) => {
130
- t ? delete s.visible : s.visible = !1;
129
+ }, Ga = (s, a) => {
130
+ a ? delete s.visible : s.visible = !1;
131
131
  }, De = [
132
132
  {
133
133
  key: "Reload",
134
134
  label: "刷新表格",
135
135
  icon: "icon-reload",
136
- click: Va
136
+ click: Ya
137
137
  },
138
138
  {
139
139
  key: "Query",
@@ -214,8 +214,8 @@ const Te = (s, t, e, a = "remove") => {
214
214
  }
215
215
  ], Ja = (s) => {
216
216
  if (!s.tools || s.tools.length > 0) {
217
- const t = [];
218
- return s.tools ? t.push(...s.tools) : t.push(...De), { tools: _e(De, 0, t).buttons };
217
+ const a = [];
218
+ return s.tools ? a.push(...s.tools) : a.push(...De), { tools: _e(De, 0, a).buttons };
219
219
  }
220
220
  return {
221
221
  tools: []
@@ -226,60 +226,60 @@ class He {
226
226
  /**
227
227
  * 设置缓存数据(带服务器时间)
228
228
  */
229
- static setWithServerTime(t, e, a) {
229
+ static setWithServerTime(a, e, t) {
230
230
  const n = {
231
231
  data: e,
232
- lastTime: a
232
+ lastTime: t
233
233
  };
234
- re.set({ key: t, storage: "local" }, n);
234
+ re.set({ key: a, storage: "local" }, n);
235
235
  }
236
236
  /**
237
237
  * 设置缓存数据
238
238
  */
239
- static setData(t, e) {
240
- re.set({ key: t, storage: "local" }, e);
239
+ static setData(a, e) {
240
+ re.set({ key: a, storage: "local" }, e);
241
241
  }
242
242
  /**
243
243
  * 获取缓存数据
244
244
  */
245
- static getData(t) {
246
- const e = re.get({ key: t, storage: "local" });
245
+ static getData(a) {
246
+ const e = re.get({ key: a, storage: "local" });
247
247
  return e && He.isTimedData(e) ? e.data : e ?? null;
248
248
  }
249
249
  /**
250
250
  * 清除缓存
251
251
  */
252
- static remove(t) {
253
- re.remove({ key: t, storage: "local" });
252
+ static remove(a) {
253
+ re.remove({ key: a, storage: "local" });
254
254
  }
255
255
  /**
256
256
  * 清理指定前缀的缓存 (基于 localStorage 实现,因为 FrontCache 未提供此方法)
257
257
  */
258
- static clearByPrefix(t) {
258
+ static clearByPrefix(a) {
259
259
  for (let e = 0; e < localStorage.length; e++) {
260
- const a = localStorage.key(e);
261
- a && a.startsWith("frontCache::" + t) && localStorage.removeItem(a);
260
+ const t = localStorage.key(e);
261
+ t && t.startsWith("frontCache::" + a) && localStorage.removeItem(t);
262
262
  }
263
263
  }
264
264
  /**
265
265
  * 清理所有缓存
266
266
  */
267
267
  static clearAll() {
268
- for (let t = localStorage.length - 1; t >= 0; t--) {
269
- const e = localStorage.key(t);
268
+ for (let a = localStorage.length - 1; a >= 0; a--) {
269
+ const e = localStorage.key(a);
270
270
  e && e.startsWith("frontCache::") && localStorage.removeItem(e);
271
271
  }
272
272
  }
273
273
  /**
274
274
  * 判断是否是带时间戳的数据
275
275
  */
276
- static isTimedData(t) {
277
- return t && typeof t == "object" && "data" in t && "lastTime" in t && typeof t.lastTime == "number";
276
+ static isTimedData(a) {
277
+ return a && typeof a == "object" && "data" in a && "lastTime" in a && typeof a.lastTime == "number";
278
278
  }
279
279
  }
280
- async function qt() {
280
+ async function Qt() {
281
281
  try {
282
- const s = await Oe(
282
+ const s = await Be(
283
283
  {
284
284
  api: "PLATFORM_API",
285
285
  url: "/api/SysCacheSvr/getLastTime",
@@ -287,10 +287,10 @@ async function qt() {
287
287
  },
288
288
  {}
289
289
  );
290
- if ((s == null ? void 0 : s.status) === Ae.SUCCESS) {
291
- const t = s.data;
292
- Object.keys(t).forEach((e) => {
293
- const a = t[e];
290
+ if ((s == null ? void 0 : s.status) === Oe.SUCCESS) {
291
+ const a = s.data;
292
+ Object.keys(a).forEach((e) => {
293
+ const t = a[e];
294
294
  ["local", "session"].forEach((i) => {
295
295
  const c = i === "local" ? localStorage : sessionStorage;
296
296
  for (let p = 0; p < c.length; p++) {
@@ -298,7 +298,7 @@ async function qt() {
298
298
  if (d && d.endsWith(e))
299
299
  try {
300
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);
301
+ o && typeof o == "object" && "lastTime" in o && typeof o.lastTime == "number" && o.lastTime !== t && c.removeItem(d);
302
302
  } catch {
303
303
  continue;
304
304
  }
@@ -310,8 +310,8 @@ async function qt() {
310
310
  console.error("检查缓存更新失败", s);
311
311
  }
312
312
  }
313
- const Gt = async (s, t) => {
314
- const e = await Ke(s, t);
313
+ const qt = async (s, a) => {
314
+ const e = await Ke(s, a);
315
315
  if (e.success)
316
316
  return {
317
317
  blobUrl: e.blobUrl,
@@ -320,15 +320,15 @@ const Gt = async (s, t) => {
320
320
  // 不再返回blob对象,使用URL即可
321
321
  };
322
322
  throw new Error(e.error || "CSV转Excel失败");
323
- }, Jt = async (s, t) => {
323
+ }, Gt = async (s, a) => {
324
324
  try {
325
- const a = new TextDecoder("utf-8").decode(s), n = await Ke(a, t);
325
+ const t = new TextDecoder("utf-8").decode(s), n = await Ke(t, a);
326
326
  return {
327
327
  success: n.success,
328
328
  blobUrl: n.blobUrl,
329
329
  fileName: n.fileName,
330
330
  error: n.error,
331
- csvContent: a
331
+ csvContent: t
332
332
  // 保留原始CSV内容
333
333
  };
334
334
  } catch (e) {
@@ -337,87 +337,88 @@ const Gt = async (s, t) => {
337
337
  error: e instanceof Error ? e.message : "未知错误"
338
338
  };
339
339
  }
340
- }, Xt = async (s, t, e) => {
340
+ }, Jt = async (s, a, e) => {
341
341
  try {
342
- const n = (await import("@json2csv/plainjs")).Parser, i = Qe(s), c = t.filter((v) => v.visible !== !1 && v.export !== !1), p = c.map((v) => ({
342
+ const n = (await import("@json2csv/plainjs")).Parser, i = Qe(s), c = a.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
346
  const u = { ...v };
347
- return c.forEach((g) => {
348
- const C = g.dataIndex || g.key;
349
- C && g.customRender && (u[C] = g.customRender(v[C], v));
347
+ return c.forEach((h) => {
348
+ const y = h.dataIndex || h.key;
349
+ y && h.customRender && (u[y] = h.customRender(v[y], v));
350
350
  }), u;
351
351
  }), f = new n({ fields: p }).parse(d), r = new Blob([`\uFEFF${f}`], { type: "text/csv" });
352
352
  We(r, i);
353
- } catch (a) {
354
- console.error("导出失败:", a), he.error("文件导出失败,请稍后重试");
353
+ } catch (t) {
354
+ console.error("导出失败:", t), he.error("文件导出失败,请稍后重试");
355
355
  }
356
356
  }, Qe = (s) => {
357
- const t = /\{([^}]+)\}/g;
358
- return s.replace(t, (e, a) => fe().format(a));
359
- }, Zt = async (s, t, e, a) => {
357
+ const a = /\{([^}]+)\}/g;
358
+ return s.replace(a, (e, t) => fe().format(t));
359
+ }, Xt = async (s, a, e, t) => {
360
360
  try {
361
- const i = (await import("@json2csv/plainjs")).Parser, c = Qe(s), p = t.filter((r) => r.visible !== !1), d = p.map((r) => ({
361
+ const i = (await import("@json2csv/plainjs")).Parser, c = Qe(s), p = a.filter((r) => r.visible !== !1), d = p.map((r) => ({
362
362
  label: r.title,
363
363
  value: r.dataIndex || r.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 && r.data) {
368
- const u = r.data.map((A) => {
369
- const _ = { ...A };
366
+ return t.api || (t.api = o.api), t.authorize === void 0 && (t.authorize = o.authorize), e.isGridLoading.value = !0, Be(t, f).then((r) => {
367
+ if (e.isGridLoading.value = !1, (r == null ? void 0 : r.status) === Oe.SUCCESS && r.data) {
368
+ const u = r.data.map((O) => {
369
+ const _ = { ...O };
370
370
  return p.forEach((E) => {
371
371
  const R = E.dataIndex || E.key;
372
- R && E.customRender && (_[R] = E.customRender(A[R], A));
372
+ R && E.customRender && (_[R] = E.customRender(O[R], O));
373
373
  }), _;
374
- }), C = new i({ fields: d }).parse(u), D = new Blob([`\uFEFF${C}`], { type: "text/csv" });
375
- We(D, c);
374
+ }), y = new i({ fields: d }).parse(u), I = new Blob([`\uFEFF${y}`], { type: "text/csv" });
375
+ We(I, c);
376
376
  }
377
377
  });
378
378
  } catch (n) {
379
379
  console.error("导出失败:", n), he.error("文件导出失败,请稍后重试");
380
380
  }
381
- }, el = /* @__PURE__ */ S({
381
+ }, Zt = /* @__PURE__ */ C({
382
382
  __name: "fullscreen",
383
383
  setup(s) {
384
- const t = me();
385
- return (e, a) => (m(), b(z, {
384
+ const a = me();
385
+ return (e, t) => (m(), b(U, {
386
386
  onClick: ae(l(je), ["stop"]),
387
- icon: l(t).fullscreen ? "icon-exitscreen" : "icon-fullscreen",
387
+ icon: l(a).fullscreen ? "icon-exitscreen" : "icon-fullscreen",
388
388
  class: "w-[17px] h-[17px]"
389
389
  }, null, 8, ["onClick", "icon"]));
390
390
  }
391
- }), Za = { class: "ml-2" }, et = /* @__PURE__ */ S({
391
+ }), Za = { class: "ml-2" }, et = /* @__PURE__ */ C({
392
392
  inheritAttrs: !1,
393
393
  __name: "helper",
394
394
  props: {
395
395
  text: {},
396
- maxWidth: {}
396
+ maxWidth: {},
397
+ size: {}
397
398
  },
398
399
  setup(s) {
399
- const t = X();
400
- return (e, a) => (m(), b(l(Sa), { placement: "topRight" }, {
401
- content: h(() => [
402
- I(e.$slots, "default", {}, () => [
400
+ const a = X();
401
+ return (e, t) => (m(), b(l(Sa), { placement: "topRight" }, {
402
+ content: g(() => [
403
+ D(e.$slots, "default", {}, () => [
403
404
  $("div", {
404
405
  class: "text-[14px]",
405
406
  style: ue({ maxWidth: e.maxWidth })
406
407
  }, P(e.text), 5)
407
408
  ])
408
409
  ]),
409
- default: h(() => [
410
+ default: g(() => [
410
411
  $("span", Za, [
411
- k(z, F({
412
+ w(U, F({
412
413
  icon: "icon-question-circle",
413
- class: "text-[#888] w-4 h-4"
414
- }, l(t)), null, 16)
414
+ class: ["text-[#888]", [e.size ? "w-" + e.size + " h-" + e.size : "w-5 h-5"]]
415
+ }, l(a)), null, 16, ["class"])
415
416
  ])
416
417
  ]),
417
418
  _: 3
418
419
  }));
419
420
  }
420
- }), al = /* @__PURE__ */ S({
421
+ }), el = /* @__PURE__ */ C({
421
422
  __name: "layoutIcon",
422
423
  props: {
423
424
  icon: {
@@ -428,20 +429,20 @@ const Gt = async (s, t) => {
428
429
  }
429
430
  },
430
431
  setup(s) {
431
- const t = s, a = Xe({
432
+ const a = s, t = Xe({
432
433
  iconUrl: `${ba.MICROLAYOUT_ICONS}`,
433
434
  monoColor: !0,
434
- icon: t.icon,
435
- icons: t.icons
435
+ icon: a.icon,
436
+ icons: a.icons
436
437
  });
437
- return (n, i) => s.icon || s.icons ? (m(), b(l(a), F({
438
+ return (n, i) => s.icon || s.icons ? (m(), b(l(t), F({
438
439
  key: 0,
439
440
  icon: s.icon,
440
441
  icons: s.icons,
441
442
  class: ["align-middle"]
442
- }, n.$attrs), null, 16, ["icon", "icons"])) : y("", !0);
443
+ }, n.$attrs), null, 16, ["icon", "icons"])) : k("", !0);
443
444
  }
444
- }), at = { class: "hover:bg-gray-200 w-[24px] h-[24px] rounded-md" }, tl = /* @__PURE__ */ S({
445
+ }), at = { class: "hover:bg-gray-200 w-[24px] h-[24px] rounded-md" }, al = /* @__PURE__ */ C({
445
446
  __name: "index",
446
447
  props: {
447
448
  saveText: {},
@@ -452,14 +453,14 @@ const Gt = async (s, t) => {
452
453
  drawerSaveAs: { type: Function }
453
454
  },
454
455
  setup(s) {
455
- const { useToken: t } = Le, { token: e } = t(), a = x(!1), n = s, i = n.editorCtrl;
456
+ const { useToken: a } = Le, { token: e } = a(), t = x(!1), n = s, i = n.editorCtrl;
456
457
  ge(j.EditorControl, i), T(
457
458
  () => i.visible.value,
458
459
  (o) => {
459
- a.value = o ?? !1;
460
+ t.value = o ?? !1;
460
461
  }
461
- ), V(() => {
462
- a.value = i.visible.value ?? !1;
462
+ ), Y(() => {
463
+ t.value = i.visible.value ?? !1;
463
464
  });
464
465
  const c = () => {
465
466
  n.drawerSave ? n.drawerSave() : i && Ee(i);
@@ -469,8 +470,8 @@ const Gt = async (s, t) => {
469
470
  ea(i);
470
471
  };
471
472
  return (o, f) => (m(), b(l(Ca), {
472
- open: a.value,
473
- "onUpdate:open": f[0] || (f[0] = (r) => a.value = r),
473
+ open: t.value,
474
+ "onUpdate:open": f[0] || (f[0] = (r) => t.value = r),
474
475
  "get-container": !1,
475
476
  closable: !1,
476
477
  "header-style": {
@@ -491,9 +492,9 @@ const Gt = async (s, t) => {
491
492
  width: "420px",
492
493
  onClose: d
493
494
  }, {
494
- extra: h(() => [
495
+ extra: g(() => [
495
496
  $("div", at, [
496
- k(l(z), {
497
+ w(l(U), {
497
498
  class: "top-[-2px] left-[2px] w-6 h-6",
498
499
  icon: "icon-new",
499
500
  angle: 45,
@@ -505,43 +506,43 @@ const Gt = async (s, t) => {
505
506
  })
506
507
  ])
507
508
  ]),
508
- default: h(() => [
509
- I(o.$slots, "default")
509
+ default: g(() => [
510
+ D(o.$slots, "default")
510
511
  ]),
511
- footer: h(() => [
512
- k(l(te), null, {
513
- default: h(() => [
514
- o.cancelText !== "" ? (m(), b(l(B), {
512
+ footer: g(() => [
513
+ w(l(te), null, {
514
+ default: g(() => [
515
+ o.cancelText !== "" ? (m(), b(l(A), {
515
516
  key: 0,
516
517
  onClick: d
517
518
  }, {
518
- default: h(() => [
519
+ default: g(() => [
519
520
  M(P(o.cancelText ?? "取消"), 1)
520
521
  ]),
521
522
  _: 1
522
- })) : y("", !0),
523
- o.saveAsText !== "" && l(i).saveAsBtnVisible !== !1 ? (m(), b(l(B), {
523
+ })) : k("", !0),
524
+ o.saveAsText !== "" && l(i).saveAsBtnVisible !== !1 ? (m(), b(l(A), {
524
525
  key: 1,
525
526
  onClick: p,
526
527
  type: "primary",
527
528
  loading: l(i).isFormSaving.value
528
529
  }, {
529
- default: h(() => [
530
+ default: g(() => [
530
531
  M(P(o.saveAsText ?? "另存为"), 1)
531
532
  ]),
532
533
  _: 1
533
- }, 8, ["loading"])) : y("", !0),
534
- o.saveText !== "" && l(i).saveBtnVisible !== !1 ? (m(), b(l(B), {
534
+ }, 8, ["loading"])) : k("", !0),
535
+ o.saveText !== "" && l(i).saveBtnVisible !== !1 ? (m(), b(l(A), {
535
536
  key: 2,
536
537
  onClick: c,
537
538
  type: "primary",
538
539
  loading: l(i).isFormSaving.value
539
540
  }, {
540
- default: h(() => [
541
+ default: g(() => [
541
542
  M(P(o.saveText ?? "保存"), 1)
542
543
  ]),
543
544
  _: 1
544
- }, 8, ["loading"])) : y("", !0)
545
+ }, 8, ["loading"])) : k("", !0)
545
546
  ]),
546
547
  _: 1
547
548
  })
@@ -549,7 +550,7 @@ const Gt = async (s, t) => {
549
550
  _: 3
550
551
  }, 8, ["open", "header-style"]));
551
552
  }
552
- }), ll = /* @__PURE__ */ S({
553
+ }), tl = /* @__PURE__ */ C({
553
554
  __name: "index",
554
555
  props: {
555
556
  labelWidth: {},
@@ -557,21 +558,21 @@ const Gt = async (s, t) => {
557
558
  editorCtrl: {}
558
559
  },
559
560
  setup(s) {
560
- const t = s, e = t.editorCtrl ?? ne(j.EditorControl, void 0);
561
- return ge(j.LabelWidth, t.labelWidth), (a, n) => {
561
+ const a = s, e = a.editorCtrl ?? ne(j.EditorControl, void 0);
562
+ return ge(j.LabelWidth, a.labelWidth), (t, n) => {
562
563
  const i = le("submit");
563
- return H((m(), b(l(Ue), {
564
- "label-col": { flex: t.labelWidth ?? "85px" },
564
+ return H((m(), b(l(ze), {
565
+ "label-col": { flex: a.labelWidth ?? "85px" },
565
566
  "wrapper-col": {
566
- flex: t.wrapperWidth ?? "1 0 280px"
567
+ flex: a.wrapperWidth ?? "1 0 280px"
567
568
  },
568
569
  style: {
569
570
  display: "flex",
570
571
  flexWrap: "wrap"
571
572
  }
572
573
  }, {
573
- default: h(() => [
574
- I(a.$slots, "default")
574
+ default: g(() => [
575
+ D(t.$slots, "default")
575
576
  ]),
576
577
  _: 3
577
578
  }, 8, ["label-col", "wrapper-col"])), [
@@ -584,9 +585,7 @@ const Gt = async (s, t) => {
584
585
  ]);
585
586
  };
586
587
  }
587
- }), tt = {
588
- class: /* @__PURE__ */ N(["relative mb-1"])
589
- }, lt = { class: "flex-grow" }, st = { class: "w-8 mt-[-2px]" }, sl = /* @__PURE__ */ S({
588
+ }), tt = { class: "flex-grow" }, lt = { class: "w-8 mt-[-2px]" }, ll = /* @__PURE__ */ C({
590
589
  inheritAttrs: !1,
591
590
  __name: "formItem",
592
591
  props: {
@@ -594,10 +593,11 @@ const Gt = async (s, t) => {
594
593
  rule: {},
595
594
  helper: {},
596
595
  width: {},
597
- nextLine: { type: Boolean }
596
+ nextLine: { type: Boolean },
597
+ bottomMargin: {}
598
598
  },
599
599
  setup(s) {
600
- const t = s, e = X(), a = ne(j.EditorControl, void 0), n = ne(j.LabelWidth, "85px") ?? "85px", i = Pe(t, a), c = x(!1);
600
+ const a = s, e = X(), t = ne(j.EditorControl, void 0), n = ne(j.LabelWidth, "85px") ?? "85px", i = Pe(a, t), c = x(!1);
601
601
  setTimeout(() => {
602
602
  c.value = !0;
603
603
  }, 30);
@@ -608,61 +608,61 @@ const Gt = async (s, t) => {
608
608
  return o.length === 1 ? f[r] : p(v, f[r].fields);
609
609
  }, d = J(() => {
610
610
  var f;
611
- if (!t.rule)
611
+ if (!a.rule)
612
612
  return !1;
613
- const o = p(t.rule.split("."), (f = a == null ? void 0 : a.formRules) == null ? void 0 : f.value);
614
- return o ? o.required ?? !0 : (Ta.error(`"${t.label}" 的验证规则 \`${t.rule}\` 不存在`), i.value.errClass = "text-[#ff4d4f]", i.value.msg = `规则 \`${t.rule}\` 不存在,请检查代码!`, !0);
613
+ const o = p(a.rule.split("."), (f = t == null ? void 0 : t.formRules) == null ? void 0 : f.value);
614
+ return o ? o.required ?? !0 : (Ta.error(`"${a.label}" 的验证规则 \`${a.rule}\` 不存在`), i.value.errClass = "text-[#ff4d4f]", i.value.msg = `规则 \`${a.rule}\` 不存在,请检查代码!`, !0);
615
615
  });
616
- return (o, f) => (m(), w("div", tt, [
617
- c.value ? (m(), b(l(ze), F({
616
+ return (o, f) => (m(), S("div", {
617
+ class: N(["relative", o.bottomMargin ? o.bottomMargin : "mb-1"])
618
+ }, [
619
+ c.value ? (m(), b(l(Ue), F({
618
620
  key: 0,
619
621
  required: d.value,
620
- class: "relative"
621
- }, l(e), {
622
- class: [o.nextLine ? "mb-0" : o.rule ? "" : "mb-3"]
623
- }), {
624
- label: h(() => [
622
+ class: ["relative", [o.nextLine ? "mb-0" : o.rule ? "" : "mb-3"]]
623
+ }, l(e)), {
624
+ label: g(() => [
625
625
  $("span", {
626
626
  class: N([l(i).errClass ? "text-[#ff4d4f]" : "", "w-full"])
627
627
  }, P(o.label), 3)
628
628
  ]),
629
- default: h(() => [
630
- o.nextLine ? y("", !0) : (m(), w("div", {
629
+ default: g(() => [
630
+ o.nextLine ? k("", !0) : (m(), S("div", {
631
631
  key: 0,
632
632
  class: N(["flex items-center", o.width ? o.width : "w-full"])
633
633
  }, [
634
- $("div", lt, [
635
- I(o.$slots, "default")
634
+ $("div", tt, [
635
+ D(o.$slots, "default")
636
636
  ]),
637
- $("div", st, [
638
- I(o.$slots, "helper", {}, () => [
637
+ $("div", lt, [
638
+ D(o.$slots, "helper", {}, () => [
639
639
  o.helper ? (m(), b(l(et), {
640
640
  key: 0,
641
641
  text: o.helper
642
- }, null, 8, ["text"])) : y("", !0)
642
+ }, null, 8, ["text"])) : k("", !0)
643
643
  ])
644
644
  ])
645
645
  ], 2))
646
646
  ]),
647
647
  _: 3
648
- }, 16, ["required", "class"])) : y("", !0),
649
- o.nextLine ? (m(), w("div", {
648
+ }, 16, ["required", "class"])) : k("", !0),
649
+ o.nextLine ? (m(), S("div", {
650
650
  key: 1,
651
651
  class: N(["w-[95%] flex items-center relative", [o.nextLine ? o.rule ? "mb-7" : "mb-3" : ""]])
652
652
  }, [
653
- I(o.$slots, "default")
654
- ], 2)) : y("", !0),
655
- l(i).errClass ? (m(), w("span", {
653
+ D(o.$slots, "default")
654
+ ], 2)) : k("", !0),
655
+ l(i).errClass ? (m(), S("span", {
656
656
  key: 2,
657
657
  style: ue({ left: o.nextLine ? "2px" : l(n) }),
658
658
  class: "absolute bottom-[3px] text-[12px] text-[#ff4d4fcc]"
659
- }, P(l(i).msg), 5)) : y("", !0)
660
- ]));
659
+ }, P(l(i).msg), 5)) : k("", !0)
660
+ ], 2));
661
661
  }
662
- }), rt = { class: "w-1/3 relative mb-1" }, ot = { class: "flex items-center w-[90%]" }, nt = { class: "flex-grow pl-1" }, it = {
662
+ }), st = { class: "w-1/3 relative mb-1" }, rt = { class: "flex items-center w-[90%]" }, ot = { class: "flex-grow pl-1" }, nt = {
663
663
  key: 0,
664
664
  class: "absolute bottom-[3px] left-[85px] text-[12px] text-[#ff4d4fcc] block"
665
- }, pe = /* @__PURE__ */ S({
665
+ }, pe = /* @__PURE__ */ C({
666
666
  inheritAttrs: !1,
667
667
  __name: "searchItem",
668
668
  props: {
@@ -671,19 +671,19 @@ const Gt = async (s, t) => {
671
671
  rule: {}
672
672
  },
673
673
  setup(s) {
674
- const t = s, e = X(), a = ne(j.EditorControl, void 0), n = Pe(t, a);
675
- return (i, c) => (m(), w("div", rt, [
676
- k(l(ze), F({
674
+ const a = s, e = X(), t = ne(j.EditorControl, void 0), n = Pe(a, t);
675
+ return (i, c) => (m(), S("div", st, [
676
+ w(l(Ue), F({
677
677
  required: i.rule !== void 0,
678
678
  class: "w-[90%] relative"
679
679
  }, l(e), {
680
680
  class: [i.rule ? "" : "mb-3", i.width],
681
681
  labelCol: { span: 6 }
682
- }), Be({
683
- default: h(() => [
684
- $("div", ot, [
685
- $("div", nt, [
686
- I(i.$slots, "default")
682
+ }), Ae({
683
+ default: g(() => [
684
+ $("div", rt, [
685
+ $("div", ot, [
686
+ D(i.$slots, "default")
687
687
  ])
688
688
  ])
689
689
  ]),
@@ -691,7 +691,7 @@ const Gt = async (s, t) => {
691
691
  }, [
692
692
  i.label ? {
693
693
  name: "label",
694
- fn: h(() => [
694
+ fn: g(() => [
695
695
  $("span", {
696
696
  class: N([l(n).errClass ? "text-[#ff4d4f]" : "", "w-full"])
697
697
  }, P(i.label), 3)
@@ -699,10 +699,10 @@ const Gt = async (s, t) => {
699
699
  key: "0"
700
700
  } : void 0
701
701
  ]), 1040, ["required", "class"]),
702
- l(n).msg ? (m(), w("span", it, P(l(n).msg), 1)) : y("", !0)
702
+ l(n).msg ? (m(), S("span", nt, P(l(n).msg), 1)) : k("", !0)
703
703
  ]));
704
704
  }
705
- }), rl = /* @__PURE__ */ S({
705
+ }), sl = /* @__PURE__ */ C({
706
706
  __name: "index",
707
707
  props: {
708
708
  search: {},
@@ -710,12 +710,12 @@ const Gt = async (s, t) => {
710
710
  likeFields: {}
711
711
  },
712
712
  emits: ["update:search"],
713
- setup(s, { emit: t }) {
714
- const e = s, a = t, n = x(0), i = x(0), c = x(0), p = (u) => {
715
- let g = 0;
716
- for (let C = 0; C < u.length; C++)
717
- typeof u[C].type == "object" && g++;
718
- return g;
713
+ setup(s, { emit: a }) {
714
+ const e = s, t = a, n = x(0), i = x(0), c = x(0), p = (u) => {
715
+ let h = 0;
716
+ for (let y = 0; y < u.length; y++)
717
+ typeof u[y].type == "object" && h++;
718
+ return h;
719
719
  }, d = xa(), o = () => {
720
720
  i.value = 0, c.value = 0, d.default && (i.value = p(d.default({}))), e.gridCtrl.searchBar && d.control && (c.value = p(d.control({}))), n.value = 2 - (i.value + c.value) % 3;
721
721
  };
@@ -726,40 +726,40 @@ const Gt = async (s, t) => {
726
726
  }
727
727
  );
728
728
  const f = JSON.parse(JSON.stringify(e.search));
729
- V(() => {
730
- var g;
729
+ Y(() => {
730
+ var h;
731
731
  o();
732
732
  let u = { ...e.search };
733
733
  e.gridCtrl.gridQuery = {
734
734
  ...e.gridCtrl.gridQuery,
735
735
  Query: {
736
- ...(g = e.gridCtrl.gridQuery) == null ? void 0 : g.Query,
736
+ ...(h = e.gridCtrl.gridQuery) == null ? void 0 : h.Query,
737
737
  ...u
738
738
  }
739
739
  };
740
740
  });
741
741
  const r = () => {
742
- var g;
742
+ var h;
743
743
  let u = { ...e.search };
744
744
  if (e.likeFields)
745
- for (const C of e.likeFields)
746
- u[C] && (u[C] = { $like: "%" + u[C] + "%" });
745
+ for (const y of e.likeFields)
746
+ u[y] && (u[y] = { $like: "%" + u[y] + "%" });
747
747
  e.gridCtrl.gridQuery = {
748
748
  ...e.gridCtrl.gridQuery,
749
749
  Query: {
750
- ...(g = e.gridCtrl.gridQuery) == null ? void 0 : g.Query,
750
+ ...(h = e.gridCtrl.gridQuery) == null ? void 0 : h.Query,
751
751
  ...u
752
752
  }
753
753
  }, e.gridCtrl.pageNo.value = 1, e.gridCtrl.reload.value = !0;
754
754
  }, v = () => {
755
755
  const u = JSON.parse(JSON.stringify(f));
756
- for (const g in e.search)
757
- u[g] === void 0 && (u[g] = void 0);
758
- a("update:search", u);
756
+ for (const h in e.search)
757
+ u[h] === void 0 && (u[h] = void 0);
758
+ t("update:search", u);
759
759
  };
760
- return (u, g) => {
761
- const C = le("submit");
762
- return i.value + c.value > 0 ? H((m(), b(l(Ue), {
760
+ return (u, h) => {
761
+ const y = le("submit");
762
+ return i.value + c.value > 0 ? H((m(), b(l(ze), {
763
763
  key: 0,
764
764
  "label-col": { flex: "60px" },
765
765
  style: {
@@ -768,41 +768,41 @@ const Gt = async (s, t) => {
768
768
  },
769
769
  class: "flex mb-[10px]"
770
770
  }, {
771
- default: h(() => [
772
- I(u.$slots, "default"),
773
- u.gridCtrl.searchBar ? I(u.$slots, "control", { key: 0 }) : y("", !0),
771
+ default: g(() => [
772
+ D(u.$slots, "default"),
773
+ u.gridCtrl.searchBar ? D(u.$slots, "control", { key: 0 }) : k("", !0),
774
774
  n.value >= 1 ? (m(), b(pe, {
775
775
  key: 1,
776
776
  class: "w-1/3"
777
- })) : y("", !0),
777
+ })) : k("", !0),
778
778
  n.value >= 2 ? (m(), b(pe, {
779
779
  key: 2,
780
780
  class: "w-1/3"
781
- })) : y("", !0),
781
+ })) : k("", !0),
782
782
  i.value || u.gridCtrl.searchBar ? (m(), b(pe, {
783
783
  key: 3,
784
784
  class: "w-1/3 flex justify-end text-right pr-5",
785
785
  "wrapper-col": { flex: "auto" }
786
786
  }, {
787
- default: h(() => [
788
- k(l(te), null, {
789
- default: h(() => [
790
- k(l(B), {
787
+ default: g(() => [
788
+ w(l(te), null, {
789
+ default: g(() => [
790
+ w(l(A), {
791
791
  type: "primary",
792
792
  onClick: r,
793
793
  icon: "icon-search"
794
794
  }, {
795
- default: h(() => g[0] || (g[0] = [
795
+ default: g(() => h[0] || (h[0] = [
796
796
  M("搜索")
797
797
  ])),
798
798
  _: 1,
799
799
  __: [0]
800
800
  }),
801
- k(l(B), {
801
+ w(l(A), {
802
802
  onClick: v,
803
803
  icon: "icon-reset"
804
804
  }, {
805
- default: h(() => g[1] || (g[1] = [
805
+ default: g(() => h[1] || (h[1] = [
806
806
  M("重置")
807
807
  ])),
808
808
  _: 1,
@@ -813,22 +813,22 @@ const Gt = async (s, t) => {
813
813
  })
814
814
  ]),
815
815
  _: 1
816
- })) : y("", !0)
816
+ })) : k("", !0)
817
817
  ]),
818
818
  _: 3
819
819
  })), [
820
- [C, r]
821
- ]) : y("", !0);
820
+ [y, r]
821
+ ]) : k("", !0);
822
822
  };
823
823
  }
824
- }), ct = /* @__PURE__ */ S({
824
+ }), it = /* @__PURE__ */ C({
825
825
  __name: "tableOperate",
826
826
  props: {
827
827
  record: {},
828
828
  gridCtrl: {}
829
829
  },
830
830
  setup(s) {
831
- const t = s, e = t.gridCtrl, a = J(() => ce.currentRoute.value.path), n = [
831
+ const a = s, e = a.gridCtrl, t = J(() => ce.currentRoute.value.path), n = [
832
832
  {
833
833
  key: "Edit",
834
834
  label: "编辑",
@@ -836,7 +836,7 @@ const Gt = async (s, t) => {
836
836
  visible: !0,
837
837
  role: ["Super", "Admin"],
838
838
  permit: ":edit",
839
- click: () => aa(e, t.record)
839
+ click: () => aa(e, a.record)
840
840
  },
841
841
  {
842
842
  key: "Delete",
@@ -848,19 +848,19 @@ const Gt = async (s, t) => {
848
848
  permit: ":delete",
849
849
  confirm: !0,
850
850
  confirmText: "是否删除此记录?",
851
- click: () => ta(e, t.record)
851
+ click: () => ta(e, a.record)
852
852
  }
853
853
  ], { buttons: i, menus: c } = _e(n, 0, e.operates), p = (d) => {
854
854
  if (typeof d.disabled == "boolean")
855
855
  return d.disabled;
856
856
  if (typeof d.disabled == "function")
857
- return K(d, t.record) ?? !1;
858
- if (t.record.hasOwnProperty("Enabled"))
857
+ return K(d, a.record) ?? !1;
858
+ if (a.record.hasOwnProperty("Enabled"))
859
859
  switch (d.key) {
860
860
  case "Edit":
861
- return !t.record.Enabled;
861
+ return !a.record.Enabled;
862
862
  case "Delete":
863
- return !!t.record.Enabled;
863
+ return !!a.record.Enabled;
864
864
  }
865
865
  return !1;
866
866
  };
@@ -871,13 +871,13 @@ const Gt = async (s, t) => {
871
871
  fontSize: 13
872
872
  }
873
873
  } }, {
874
- default: h(() => [
875
- k(l(te), null, {
876
- default: h(() => [
877
- (m(!0), w(O, null, U(l(i), (r) => (m(), w(O, {
874
+ default: g(() => [
875
+ w(l(te), null, {
876
+ default: g(() => [
877
+ (m(!0), S(B, null, z(l(i), (r) => (m(), S(B, {
878
878
  key: r.key
879
879
  }, [
880
- l(G)(r, t.record) ? (m(), b(l($a), {
880
+ l(G)(r, a.record) ? (m(), b(l($a), {
881
881
  key: 0,
882
882
  disabled: p(r) || !r.confirm,
883
883
  cancelText: "否",
@@ -885,72 +885,72 @@ const Gt = async (s, t) => {
885
885
  title: r.confirmText,
886
886
  okButtonProps: { size: "small" },
887
887
  cancelButtonProps: { size: "small" },
888
- onConfirm: (v) => l(Y)(r, l(e).page, l(e), t.record, !0)
888
+ onConfirm: (v) => l(V)(r, l(e).page, l(e), a.record, !0)
889
889
  }, {
890
- default: h(() => [
891
- l(G)(r, t.record) ? H((m(), b(l(Ye), {
890
+ default: g(() => [
891
+ l(G)(r, a.record) ? H((m(), b(l(Ve), {
892
892
  key: r.key,
893
893
  type: r.type ?? "text",
894
894
  danger: r.danger,
895
895
  disabled: p(r),
896
- onClick: (v) => l(Y)(r, l(e).page, l(e), t.record),
896
+ onClick: (v) => l(V)(r, l(e).page, l(e), a.record),
897
897
  size: "small",
898
898
  style: ue({
899
899
  padding: r.type ?? "0px 4px"
900
900
  })
901
901
  }, {
902
- default: h(() => [
902
+ default: g(() => [
903
903
  M(P(r.label), 1)
904
904
  ]),
905
905
  _: 2
906
906
  }, 1032, ["type", "danger", "disabled", "onClick", "style"])), [
907
- [f, { url: a.value, role: r.role, permit: r.permit }]
908
- ]) : y("", !0)
907
+ [f, { url: t.value, role: r.role, permit: r.permit }]
908
+ ]) : k("", !0)
909
909
  ]),
910
910
  _: 2
911
- }, 1032, ["disabled", "title", "onConfirm"])) : y("", !0)
911
+ }, 1032, ["disabled", "title", "onConfirm"])) : k("", !0)
912
912
  ], 64))), 128)),
913
913
  d.record.Enabled == 1 ? (m(), b(l(Ce), {
914
914
  key: 0,
915
915
  autoInsertSpaceInButton: !1
916
916
  }, {
917
- default: h(() => [
917
+ default: g(() => [
918
918
  l(c).length > 0 ? (m(), b(l(Ia), {
919
919
  key: 0,
920
920
  size: "small"
921
921
  }, {
922
- overlay: h(() => [
923
- k(l(be), null, {
924
- default: h(() => [
925
- (m(!0), w(O, null, U(l(c), (r) => (m(), w(O, {
922
+ overlay: g(() => [
923
+ w(l(be), null, {
924
+ default: g(() => [
925
+ (m(!0), S(B, null, z(l(c), (r) => (m(), S(B, {
926
926
  key: r.key
927
927
  }, [
928
- l(G)(r, t.record) ? H((m(), b(l(xe), {
928
+ l(G)(r, a.record) ? H((m(), b(l(xe), {
929
929
  key: 0,
930
930
  disabled: p(r),
931
- onClick: (v) => l(Y)(r, l(e).page, l(e), t.record)
931
+ onClick: (v) => l(V)(r, l(e).page, l(e), a.record)
932
932
  }, {
933
- default: h(() => [
933
+ default: g(() => [
934
934
  M(P(r.label), 1)
935
935
  ]),
936
936
  _: 2
937
937
  }, 1032, ["disabled", "onClick"])), [
938
- [f, { url: a.value, role: r.role, permit: r.permit }]
939
- ]) : y("", !0)
938
+ [f, { url: t.value, role: r.role, permit: r.permit }]
939
+ ]) : k("", !0)
940
940
  ], 64))), 128))
941
941
  ]),
942
942
  _: 1
943
943
  })
944
944
  ]),
945
- default: h(() => [
945
+ default: g(() => [
946
946
  o[0] || (o[0] = M(" 更多 "))
947
947
  ]),
948
948
  _: 1,
949
949
  __: [0]
950
- })) : y("", !0)
950
+ })) : k("", !0)
951
951
  ]),
952
952
  _: 1
953
- })) : y("", !0)
953
+ })) : k("", !0)
954
954
  ]),
955
955
  _: 1
956
956
  })
@@ -959,17 +959,17 @@ const Gt = async (s, t) => {
959
959
  });
960
960
  };
961
961
  }
962
- }), ut = { class: "inline-flex [&>div]:ml-[-1px] first:[&>div]:ml-0" }, dt = /* @__PURE__ */ S({
962
+ }), ct = { class: "inline-flex [&>div]:ml-[-1px] first:[&>div]:ml-0" }, ut = /* @__PURE__ */ C({
963
963
  __name: "icontool",
964
964
  props: {
965
965
  gridCtrl: {}
966
966
  },
967
967
  setup(s) {
968
- const t = s, e = t.gridCtrl, { tools: a } = Ja(t.gridCtrl), n = me();
968
+ const a = s, e = a.gridCtrl, { tools: t } = Ja(a.gridCtrl), n = me();
969
969
  T(
970
970
  () => e.selectable.value,
971
971
  (p) => {
972
- W(a, "tool.export.excel.selected") && (W(a, "tool.export.excel.selected").disabled = !p), W(a, "tool.export.pdf.selected") && (W(a, "tool.export.pdf.selected").disabled = !p);
972
+ W(t, "tool.export.excel.selected") && (W(t, "tool.export.excel.selected").disabled = !p), W(t, "tool.export.pdf.selected") && (W(t, "tool.export.pdf.selected").disabled = !p);
973
973
  }
974
974
  );
975
975
  const i = x([]);
@@ -983,8 +983,8 @@ const Gt = async (s, t) => {
983
983
  const c = () => {
984
984
  e.columns.value.splice(0, e.columns.value.length, ...i.value), n.setTableColumns(ce.currentRoute.value.path, e.columns.value);
985
985
  };
986
- return (p, d) => (m(), w("div", ut, [
987
- (m(!0), w(O, null, U(l(a), (o, f) => (m(), w(O, {
986
+ return (p, d) => (m(), S("div", ct, [
987
+ (m(!0), S(B, null, z(l(t), (o, f) => (m(), S(B, {
988
988
  key: o.key
989
989
  }, [
990
990
  l(G)(o) && o.dropdown ? (m(), b(l(ve), {
@@ -992,11 +992,11 @@ const Gt = async (s, t) => {
992
992
  placement: "bottomRight",
993
993
  class: "p-0 rounded-none"
994
994
  }, {
995
- overlay: h(() => [
995
+ overlay: g(() => [
996
996
  $("div", {
997
997
  class: N(["min-w-[100px] bg-white rounded shadow-md p-4", o.dropdownClass])
998
998
  }, [
999
- o.dropdown === "headset" ? (m(), b(l(Ua), {
999
+ o.dropdown === "headset" ? (m(), b(l(za), {
1000
1000
  key: 0,
1001
1001
  modelValue: i.value,
1002
1002
  "onUpdate:modelValue": d[1] || (d[1] = (r) => i.value = r),
@@ -1004,15 +1004,15 @@ const Gt = async (s, t) => {
1004
1004
  onEnd: c,
1005
1005
  handle: ".drag-handle"
1006
1006
  }, {
1007
- default: h(() => [
1008
- (m(!0), w(O, null, U(i.value, (r) => (m(), w("div", {
1007
+ default: g(() => [
1008
+ (m(!0), S(B, null, z(i.value, (r) => (m(), S("div", {
1009
1009
  key: r.name,
1010
1010
  onClick: d[0] || (d[0] = ae(() => {
1011
1011
  }, ["stop"])),
1012
1012
  class: "flex items-center mb-2 last:mb-0 select-none"
1013
1013
  }, [
1014
1014
  d[2] || (d[2] = $("span", { class: "drag-handle mr-2 text-gray-400 hover:text-gray-600 cursor-move" }, "⋮⋮", -1)),
1015
- k(l(Da), {
1015
+ w(l(Da), {
1016
1016
  checked: r.visible !== !1,
1017
1017
  onChange: ae(
1018
1018
  (v) => {
@@ -1022,7 +1022,7 @@ const Gt = async (s, t) => {
1022
1022
  ),
1023
1023
  class: "text-gray-700 hover:text-gray-900 select-none"
1024
1024
  }, {
1025
- default: h(() => [
1025
+ default: g(() => [
1026
1026
  M(P(r.title), 1)
1027
1027
  ]),
1028
1028
  _: 2
@@ -1030,22 +1030,22 @@ const Gt = async (s, t) => {
1030
1030
  ]))), 128))
1031
1031
  ]),
1032
1032
  _: 1
1033
- }, 8, ["modelValue"])) : y("", !0)
1033
+ }, 8, ["modelValue"])) : k("", !0)
1034
1034
  ], 2)
1035
1035
  ]),
1036
- default: h(() => [
1037
- k(l(B), {
1036
+ default: g(() => [
1037
+ w(l(A), {
1038
1038
  class: N([
1039
1039
  "px-[8px] py-[2px] relative border-[#ccc] bg-[#fcfcfc] rounded-none text-[#666] hover:z-10",
1040
1040
  f === 0 ? "rounded-l-[5px]" : "",
1041
- f === l(a).length - 1 ? "rounded-r-[5px]" : ""
1041
+ f === l(t).length - 1 ? "rounded-r-[5px]" : ""
1042
1042
  ]),
1043
1043
  disabled: l(K)(o),
1044
1044
  tiptext: o.label,
1045
- onClick: (r) => l(Y)(o, l(e).page, l(e))
1045
+ onClick: (r) => l(V)(o, l(e).page, l(e))
1046
1046
  }, {
1047
- default: h(() => [
1048
- k(l(z), {
1047
+ default: g(() => [
1048
+ w(l(U), {
1049
1049
  icon: o.icon,
1050
1050
  class: "w-[18px] h-[18.5px]",
1051
1051
  clickable: ""
@@ -1055,19 +1055,19 @@ const Gt = async (s, t) => {
1055
1055
  }, 1032, ["class", "disabled", "tiptext", "onClick"])
1056
1056
  ]),
1057
1057
  _: 2
1058
- }, 1024)) : !o.children && l(G)(o) ? (m(), b(l(B), {
1058
+ }, 1024)) : !o.children && l(G)(o) ? (m(), b(l(A), {
1059
1059
  key: 1,
1060
1060
  class: N([
1061
1061
  "px-[8px] py-[2px] relative border-[#ccc] bg-[#fcfcfc] rounded-none text-[#666] hover:z-10",
1062
1062
  f === 0 ? "rounded-l-[5px]" : "",
1063
- f === l(a).length - 1 ? "rounded-r-[5px]" : ""
1063
+ f === l(t).length - 1 ? "rounded-r-[5px]" : ""
1064
1064
  ]),
1065
1065
  disabled: l(K)(o),
1066
1066
  tiptext: o.label,
1067
- onClick: (r) => l(Y)(o, l(e).page, l(e))
1067
+ onClick: (r) => l(V)(o, l(e).page, l(e))
1068
1068
  }, {
1069
- default: h(() => [
1070
- k(l(z), {
1069
+ default: g(() => [
1070
+ w(l(U), {
1071
1071
  icon: o.icon,
1072
1072
  class: "w-[18px] h-[18.5px]",
1073
1073
  clickable: ""
@@ -1079,14 +1079,14 @@ const Gt = async (s, t) => {
1079
1079
  placement: "bottomRight",
1080
1080
  class: "p-0 rounded-none"
1081
1081
  }, {
1082
- overlay: h(() => [
1083
- k(l(be), null, {
1084
- default: h(() => [
1085
- (m(!0), w(O, null, U(o.children, (r) => (m(), b(l(xe), {
1082
+ overlay: g(() => [
1083
+ w(l(be), null, {
1084
+ default: g(() => [
1085
+ (m(!0), S(B, null, z(o.children, (r) => (m(), b(l(xe), {
1086
1086
  key: r.key,
1087
1087
  disabled: l(K)(r)
1088
1088
  }, {
1089
- default: h(() => [
1089
+ default: g(() => [
1090
1090
  M(P(r.label), 1)
1091
1091
  ]),
1092
1092
  _: 2
@@ -1095,8 +1095,8 @@ const Gt = async (s, t) => {
1095
1095
  _: 2
1096
1096
  }, 1024)
1097
1097
  ]),
1098
- default: h(() => [
1099
- k(l(B), {
1098
+ default: g(() => [
1099
+ w(l(A), {
1100
1100
  class: N([
1101
1101
  "!w-[46px] px-[5px] py-[2px] relative border-[#ccc] bg-[#fcfcfc] rounded-none text-[#666] hover:z-10",
1102
1102
  f === 0 ? "rounded-l-[5px]" : ""
@@ -1105,10 +1105,10 @@ const Gt = async (s, t) => {
1105
1105
  tiptext: o.label,
1106
1106
  icon: o.icon,
1107
1107
  iconProps: { class: "w-[19px] h-[19px]" },
1108
- onClick: (r) => l(Y)(o, l(e).page, l(e))
1108
+ onClick: (r) => l(V)(o, l(e).page, l(e))
1109
1109
  }, {
1110
- default: h(() => [
1111
- k(l(z), {
1110
+ default: g(() => [
1111
+ w(l(U), {
1112
1112
  icon: "icon-down-arrow",
1113
1113
  class: "w-[12px] h-[12px]"
1114
1114
  })
@@ -1117,18 +1117,18 @@ const Gt = async (s, t) => {
1117
1117
  }, 1032, ["class", "disabled", "tiptext", "icon", "onClick"])
1118
1118
  ]),
1119
1119
  _: 2
1120
- }, 1024)) : y("", !0)
1120
+ }, 1024)) : k("", !0)
1121
1121
  ], 64))), 128))
1122
1122
  ]));
1123
1123
  }
1124
- }), pt = { class: "flex justify-between mb-[10px]" }, ft = { key: 1 }, vt = 3, mt = /* @__PURE__ */ S({
1124
+ }), dt = { class: "flex justify-between mb-[10px]" }, pt = { key: 1 }, ft = 3, vt = /* @__PURE__ */ C({
1125
1125
  __name: "index",
1126
1126
  props: {
1127
1127
  gridCtrl: {},
1128
1128
  editorCtrl: {}
1129
1129
  },
1130
1130
  setup(s) {
1131
- const t = s, e = t.gridCtrl, a = e.page, n = t.editorCtrl, i = J(() => ce.currentRoute.value.path), c = [
1131
+ const a = s, e = a.gridCtrl, t = e.page, n = a.editorCtrl, i = J(() => ce.currentRoute.value.path), c = [
1132
1132
  {
1133
1133
  key: "New",
1134
1134
  label: "新增",
@@ -1150,7 +1150,7 @@ const Gt = async (s, t) => {
1150
1150
  var r;
1151
1151
  const { buttons: o, menus: f } = _e(
1152
1152
  c,
1153
- e.flat !== void 0 ? e.flat : vt,
1153
+ e.flat !== void 0 ? e.flat : ft,
1154
1154
  (r = e.buttons) == null ? void 0 : r.value
1155
1155
  );
1156
1156
  p.value.splice(0, p.value.length, ...o), d.value.splice(0, d.value.length, ...f);
@@ -1161,18 +1161,18 @@ const Gt = async (s, t) => {
1161
1161
  }
1162
1162
  ), (o, f) => {
1163
1163
  const r = le("auth");
1164
- return m(), w("div", pt, [
1165
- k(l(te), null, {
1166
- default: h(() => [
1167
- (m(!0), w(O, null, U(p.value, (v) => H((m(), b(l(B), {
1164
+ return m(), S("div", dt, [
1165
+ w(l(te), null, {
1166
+ default: g(() => [
1167
+ (m(!0), S(B, null, z(p.value, (v) => H((m(), b(l(A), {
1168
1168
  key: v.key,
1169
1169
  type: v.type,
1170
1170
  danger: v.danger,
1171
1171
  disabled: l(K)(v),
1172
1172
  icon: v.icon,
1173
- onClick: (u) => l(Y)(v, l(a), l(e))
1173
+ onClick: (u) => l(V)(v, l(t), l(e))
1174
1174
  }, {
1175
- default: h(() => [
1175
+ default: g(() => [
1176
1176
  M(P(v.label), 1)
1177
1177
  ]),
1178
1178
  _: 2
@@ -1180,15 +1180,15 @@ const Gt = async (s, t) => {
1180
1180
  [r, { url: i.value, role: v.role, permit: v.permit }]
1181
1181
  ])), 128)),
1182
1182
  d.value.length > 0 ? (m(), b(l(ve), { key: 0 }, {
1183
- overlay: h(() => [
1184
- k(l(be), null, {
1185
- default: h(() => [
1186
- (m(!0), w(O, null, U(d.value, (v) => H((m(), b(l(xe), {
1183
+ overlay: g(() => [
1184
+ w(l(be), null, {
1185
+ default: g(() => [
1186
+ (m(!0), S(B, null, z(d.value, (v) => H((m(), b(l(xe), {
1187
1187
  key: v.key,
1188
1188
  disabled: l(K)(v),
1189
- onClick: (u) => l(Y)(v, l(a), l(e))
1189
+ onClick: (u) => l(V)(v, l(t), l(e))
1190
1190
  }, {
1191
- default: h(() => [
1191
+ default: g(() => [
1192
1192
  M(P(v.label), 1)
1193
1193
  ]),
1194
1194
  _: 2
@@ -1199,9 +1199,9 @@ const Gt = async (s, t) => {
1199
1199
  _: 1
1200
1200
  })
1201
1201
  ]),
1202
- default: h(() => [
1203
- k(l(B), null, {
1204
- default: h(() => f[0] || (f[0] = [
1202
+ default: g(() => [
1203
+ w(l(A), null, {
1204
+ default: g(() => f[0] || (f[0] = [
1205
1205
  M(" 更多操作 ")
1206
1206
  ])),
1207
1207
  _: 1,
@@ -1209,21 +1209,21 @@ const Gt = async (s, t) => {
1209
1209
  })
1210
1210
  ]),
1211
1211
  _: 1
1212
- })) : y("", !0),
1213
- p.value.length === 0 && d.value.length === 0 ? (m(), w("span", ft)) : y("", !0)
1212
+ })) : k("", !0),
1213
+ p.value.length === 0 && d.value.length === 0 ? (m(), S("span", pt)) : k("", !0)
1214
1214
  ]),
1215
1215
  _: 1
1216
1216
  }),
1217
- k(l(te), { class: "mr-1" }, {
1218
- default: h(() => [
1219
- (m(), b(_a(dt), { "grid-ctrl": l(e) }, null, 8, ["grid-ctrl"]))
1217
+ w(l(te), { class: "mr-1" }, {
1218
+ default: g(() => [
1219
+ (m(), b(_a(ut), { "grid-ctrl": l(e) }, null, 8, ["grid-ctrl"]))
1220
1220
  ]),
1221
1221
  _: 1
1222
1222
  })
1223
1223
  ]);
1224
1224
  };
1225
1225
  }
1226
- }), ol = /* @__PURE__ */ S({
1226
+ }), rl = /* @__PURE__ */ C({
1227
1227
  inheritAttrs: !1,
1228
1228
  __name: "index",
1229
1229
  props: {
@@ -1236,122 +1236,122 @@ const Gt = async (s, t) => {
1236
1236
  statusDisabled: {}
1237
1237
  },
1238
1238
  setup(s) {
1239
- const t = s, e = X(), a = t.gridCtrl, n = J(() => ce.currentRoute.value.path);
1240
- a && (a.pageNo.value = 1, a.total.value = 0, a.pageSize.value = a.pageSize.value);
1241
- const i = x(a.pageSize.value), c = x(a.pageNo.value), p = x([]), d = x({
1239
+ const a = s, e = X(), t = a.gridCtrl, n = J(() => ce.currentRoute.value.path);
1240
+ t && (t.pageNo.value = 1, t.total.value = 0, t.pageSize.value = t.pageSize.value);
1241
+ const i = x(t.pageSize.value), c = x(t.pageNo.value), p = x([]), d = x({
1242
1242
  total: 0,
1243
1243
  current: 1,
1244
1244
  pageSize: i.value,
1245
1245
  showTotal: (u) => `共 ${u} 条记录`,
1246
- onChange: (u, g) => {
1247
- d.value !== !1 && (d.value.current = u, d.value.pageSize = g), i.value = g, c.value = u, a && (a.pageNo.value = u, a.pageSize.value = g, a.remotePage && ke(a));
1246
+ onChange: (u, h) => {
1247
+ d.value !== !1 && (d.value.current = u, d.value.pageSize = h), i.value = h, c.value = u, t && (t.pageNo.value = u, t.pageSize.value = h, t.remotePage && ke(t));
1248
1248
  },
1249
- ...t.pagination === !1 ? {} : t.pagination
1249
+ ...a.pagination === !1 ? {} : a.pagination
1250
1250
  });
1251
- t.pagination === !1 && (d.value = !1), T(
1252
- () => a.tableData.value,
1251
+ a.pagination === !1 && (d.value = !1), T(
1252
+ () => t.tableData.value,
1253
1253
  (u) => {
1254
- 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));
1254
+ u && (p.value = u, d.value !== !1 && (d.value.total = t.total.value ?? 0, d.value.current = t.pageNo.value ?? 1, d.value.pageSize = t.pageSize.value ?? 10));
1255
1255
  },
1256
1256
  { immediate: !0 }
1257
1257
  ), T(
1258
- () => t.tableData,
1258
+ () => a.tableData,
1259
1259
  (u) => {
1260
- 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));
1260
+ u && (p.value = u, d.value !== !1 && (d.value.total = u.length, d.value.current = t.pageNo.value ?? 1, d.value.pageSize = t.pageSize.value ?? 10));
1261
1261
  },
1262
1262
  { immediate: !0 }
1263
1263
  );
1264
- const o = x(a.columns.value), f = {
1265
- onChange: (u, g) => {
1266
- a && (a.selectKeys.value = u, a.selectRows.value = g);
1264
+ const o = x(t.columns.value), f = {
1265
+ onChange: (u, h) => {
1266
+ t && (t.selectKeys.value = u, t.selectRows.value = h);
1267
1267
  },
1268
1268
  columnWidth: "30px",
1269
1269
  getCheckboxProps: (u) => ({
1270
1270
  disabled: u.Enabled === 0
1271
1271
  }),
1272
- ...t.rowSelection
1272
+ ...a.rowSelection
1273
1273
  }, r = x(f);
1274
1274
  T(
1275
- () => a.selectable.value,
1275
+ () => t.selectable.value,
1276
1276
  (u) => {
1277
- a && (r.value = u ? f : void 0);
1277
+ t && (r.value = u ? f : void 0);
1278
1278
  },
1279
1279
  { immediate: !0 }
1280
1280
  ), T(
1281
- () => a.columns.value,
1281
+ () => t.columns.value,
1282
1282
  () => {
1283
- o.value = Fe(a.columns.value);
1283
+ o.value = Fe(t.columns.value);
1284
1284
  },
1285
1285
  { deep: !0, immediate: !0 }
1286
1286
  );
1287
1287
  const v = x(!1);
1288
1288
  return ya(() => {
1289
- v.value && a && (a.reload.value = !0);
1290
- }), V(async () => {
1291
- ge(j.GridControl, a), 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 sa(a)), setTimeout(() => {
1289
+ v.value && t && (t.reload.value = !0);
1290
+ }), Y(async () => {
1291
+ ge(j.GridControl, t), t.tableData.value ? (p.value = t.tableData.value, t.total.value = p.value.length, d.value !== !1 && (d.value.total = t.total.value ?? 0)) : t.autoload !== !1 && (t.remotePage ? p.value = (await ke(t)).rows : p.value = await sa(t)), setTimeout(() => {
1292
1292
  v.value = !0;
1293
1293
  }, 50);
1294
- }), (u, g) => {
1295
- var D, A;
1296
- const C = le("auth");
1297
- return m(), w(O, null, [
1298
- (D = l(a).buttons) != null && D.value.length || (A = l(a).tools) != null && A.length ? (m(), b(mt, {
1294
+ }), (u, h) => {
1295
+ var I, O;
1296
+ const y = le("auth");
1297
+ return m(), S(B, null, [
1298
+ (I = l(t).buttons) != null && I.value.length || (O = l(t).tools) != null && O.length ? (m(), b(vt, {
1299
1299
  key: 0,
1300
- "grid-ctrl": l(a),
1301
- "editor-ctrl": l(a).editor
1302
- }, null, 8, ["grid-ctrl", "editor-ctrl"])) : y("", !0),
1303
- v.value ? (m(), b(l(Ve), F({
1300
+ "grid-ctrl": l(t),
1301
+ "editor-ctrl": l(t).editor
1302
+ }, null, 8, ["grid-ctrl", "editor-ctrl"])) : k("", !0),
1303
+ v.value ? (m(), b(l(Ye), F({
1304
1304
  key: 1,
1305
1305
  class: "w-full",
1306
- "row-key": t.primaryKey ?? l(a).primaryKey ?? "Id",
1306
+ "row-key": a.primaryKey ?? l(t).primaryKey ?? "Id",
1307
1307
  "data-source": p.value,
1308
- loading: l(a).isGridLoading.value,
1308
+ loading: l(t).isGridLoading.value,
1309
1309
  columns: o.value,
1310
1310
  pagination: d.value,
1311
1311
  "row-selection": r.value,
1312
- scroll: t.scroll || { x: 700, y: 1e3 },
1313
- size: l(a).tableSize.value,
1312
+ scroll: a.scroll || { x: 700, y: 1e3 },
1313
+ size: l(t).tableSize.value,
1314
1314
  bordered: ""
1315
1315
  }, l(e)), {
1316
- bodyCell: h((_) => {
1316
+ bodyCell: g((_) => {
1317
1317
  var E, R;
1318
1318
  return [
1319
- I(u.$slots, "bodyCell", {
1319
+ D(u.$slots, "bodyCell", {
1320
1320
  column: _ == null ? void 0 : _.column,
1321
1321
  record: _ == null ? void 0 : _.record
1322
1322
  }),
1323
- l(a) && ((E = _ == null ? void 0 : _.column) == null ? void 0 : E.dataIndex) === "enabled" ? H((m(), b(ra, {
1323
+ l(t) && ((E = _ == null ? void 0 : _.column) == null ? void 0 : E.dataIndex) === "enabled" ? H((m(), b(ra, {
1324
1324
  key: 0,
1325
1325
  checked: _.record.Enabled,
1326
1326
  "onUpdate:checked": (se) => _.record.Enabled = se,
1327
1327
  disabled: u.statusDisabled ? u.statusDisabled(_.record) : !1,
1328
1328
  data: l(Ne).EnableDisable,
1329
- onClick: (se) => l(oa)(l(a), _.record),
1329
+ onClick: (se) => l(oa)(l(t), _.record),
1330
1330
  class: N([
1331
1331
  "w-[58px]",
1332
1332
  u.statusDisabled && u.statusDisabled(_.record) ? "cursor-not-allowed disabled" : ""
1333
1333
  ]),
1334
1334
  loading: _ == null ? void 0 : _.record.isLoading
1335
1335
  }, null, 8, ["checked", "onUpdate:checked", "disabled", "data", "onClick", "class", "loading"])), [
1336
- [C, { url: n.value, role: ["Super", "Admin"], permit: ":enabled" }, "disable"]
1337
- ]) : y("", !0),
1338
- l(a) && ((R = _ == null ? void 0 : _.column) == null ? void 0 : R.dataIndex) === "operation" ? I(u.$slots, "operate", {
1336
+ [y, { url: n.value, role: ["Super", "Admin"], permit: ":enabled" }, "disable"]
1337
+ ]) : k("", !0),
1338
+ l(t) && ((R = _ == null ? void 0 : _.column) == null ? void 0 : R.dataIndex) === "operation" ? D(u.$slots, "operate", {
1339
1339
  key: 1,
1340
1340
  record: _ == null ? void 0 : _.record
1341
1341
  }, () => [
1342
- k(ct, {
1342
+ w(it, {
1343
1343
  record: _ == null ? void 0 : _.record,
1344
- "grid-ctrl": l(a)
1344
+ "grid-ctrl": l(t)
1345
1345
  }, null, 8, ["record", "grid-ctrl"])
1346
- ]) : y("", !0)
1346
+ ]) : k("", !0)
1347
1347
  ];
1348
1348
  }),
1349
1349
  _: 3
1350
- }, 16, ["row-key", "data-source", "loading", "columns", "pagination", "row-selection", "scroll", "size"])) : y("", !0)
1350
+ }, 16, ["row-key", "data-source", "loading", "columns", "pagination", "row-selection", "scroll", "size"])) : k("", !0)
1351
1351
  ], 64);
1352
1352
  };
1353
1353
  }
1354
- }), ht = { class: "flex items-center gap-1" }, gt = { class: "text-nowrap" }, nl = /* @__PURE__ */ S({
1354
+ }), mt = { class: "flex items-center gap-1" }, ht = { class: "text-nowrap" }, ol = /* @__PURE__ */ C({
1355
1355
  __name: "index",
1356
1356
  props: {
1357
1357
  treeCtrl: {},
@@ -1359,15 +1359,15 @@ const Gt = async (s, t) => {
1359
1359
  expandedKeys: {}
1360
1360
  },
1361
1361
  emits: ["select", "update:selectedKeys"],
1362
- setup(s, { emit: t }) {
1363
- const e = s, a = X(), n = e.treeCtrl, i = x([]);
1362
+ setup(s, { emit: a }) {
1363
+ const e = s, t = X(), n = e.treeCtrl, i = x([]);
1364
1364
  T(
1365
1365
  () => n.data.value,
1366
1366
  (f) => {
1367
1367
  f && (i.value = n.fieldMap ? oe(n.fieldMap, f) : f, o(e.selectedKeys ?? []));
1368
1368
  }
1369
1369
  );
1370
- const c = t, p = x([]);
1370
+ const c = a, p = x([]);
1371
1371
  T(
1372
1372
  () => e.selectedKeys,
1373
1373
  (f) => {
@@ -1386,7 +1386,7 @@ const Gt = async (s, t) => {
1386
1386
  const o = (f, r) => {
1387
1387
  f.length === 0 && f.push(...p.value), f.length > 0 && (n.node.value = r == null ? void 0 : r.node.dataRef), p.value = f, c("update:selectedKeys", f), c("select", f, r);
1388
1388
  };
1389
- return V(() => {
1389
+ return Y(() => {
1390
1390
  n.fieldMap || (n.fieldMap = {
1391
1391
  label: "Name",
1392
1392
  key: "Id",
@@ -1402,41 +1402,41 @@ const Gt = async (s, t) => {
1402
1402
  "selected-keys": p.value,
1403
1403
  loading: l(n).isTreeLoading,
1404
1404
  onSelect: o
1405
- }, l(a)), {
1406
- title: h(({ key: v, label: u, icon: g }) => [
1407
- I(f.$slots, "title", {
1405
+ }, l(t)), {
1406
+ title: g(({ key: v, label: u, icon: h }) => [
1407
+ D(f.$slots, "title", {
1408
1408
  label: u,
1409
1409
  key: v,
1410
- icon: g
1410
+ icon: h
1411
1411
  }, () => [
1412
- $("div", ht, [
1413
- k(l(z), { icon: g }, null, 8, ["icon"]),
1414
- $("span", gt, P(u), 1)
1412
+ $("div", mt, [
1413
+ w(l(U), { icon: h }, null, 8, ["icon"]),
1414
+ $("span", ht, P(u), 1)
1415
1415
  ])
1416
1416
  ])
1417
1417
  ]),
1418
1418
  _: 3
1419
1419
  }, 16, ["tree-data", "expanded-keys", "selected-keys", "loading"]));
1420
1420
  }
1421
- }), il = /* @__PURE__ */ q(na, [["__scopeId", "data-v-668fc090"]]), bt = { class: "relative w-[248px] max-w-[248px]" }, xt = {
1421
+ }), nl = /* @__PURE__ */ q(na, [["__scopeId", "data-v-668fc090"]]), gt = { class: "relative w-[248px] max-w-[248px]" }, bt = {
1422
1422
  key: 0,
1423
1423
  class: "absolute z-10 mt-[5px] mr-[10px] text-[#999] flex items-center"
1424
- }, _t = /* @__PURE__ */ S({
1424
+ }, xt = /* @__PURE__ */ C({
1425
1425
  inheritAttrs: !1,
1426
1426
  __name: "index",
1427
1427
  props: ia,
1428
1428
  emits: ["change", "update:labels", "update:value"],
1429
- setup(s, { emit: t }) {
1430
- var C, D, A;
1431
- const e = s, a = X(), n = L(), i = ca(e.url, e), c = e.optionCtrl ?? i.optionCtrl;
1429
+ setup(s, { emit: a }) {
1430
+ var y, I, O;
1431
+ const e = s, t = X(), n = L(), i = ca(e.url, e), c = e.optionCtrl ?? i.optionCtrl;
1432
1432
  c.inputFactory = ka(n);
1433
1433
  const p = x({
1434
1434
  ...c == null ? void 0 : c.url,
1435
- url: ((C = c == null ? void 0 : c.url) == null ? void 0 : C.url) || "",
1436
- fieldMap: (c == null ? void 0 : c.fieldMap) || ((D = c == null ? void 0 : c.url) == null ? void 0 : D.fieldMap),
1437
- params: (c == null ? void 0 : c.params) || ((A = c == null ? void 0 : c.url) == null ? void 0 : A.params),
1435
+ url: ((y = c == null ? void 0 : c.url) == null ? void 0 : y.url) || "",
1436
+ fieldMap: (c == null ? void 0 : c.fieldMap) || ((I = c == null ? void 0 : c.url) == null ? void 0 : I.fieldMap),
1437
+ params: (c == null ? void 0 : c.params) || ((O = c == null ? void 0 : c.url) == null ? void 0 : O.params),
1438
1438
  loadingText: !1
1439
- }), { editorCtrl: d, errInfo: o, labelText: f } = n, r = x(a.placeholder);
1439
+ }), { editorCtrl: d, errInfo: o, labelText: f } = n, r = x(t.placeholder);
1440
1440
  T(
1441
1441
  () => p.value.loading,
1442
1442
  (_) => {
@@ -1444,7 +1444,7 @@ const Gt = async (s, t) => {
1444
1444
  },
1445
1445
  { immediate: !0 }
1446
1446
  );
1447
- const v = t;
1447
+ const v = a;
1448
1448
  n.inputEmit = v;
1449
1449
  const u = x((c == null ? void 0 : c.options.value) || []);
1450
1450
  c && T(
@@ -1454,7 +1454,7 @@ const Gt = async (s, t) => {
1454
1454
  },
1455
1455
  { immediate: !0, deep: !0 }
1456
1456
  );
1457
- const g = (_, E) => {
1457
+ const h = (_, E) => {
1458
1458
  if (!E || E.length === 0) {
1459
1459
  v("update:labels", []), v("update:value", []);
1460
1460
  return;
@@ -1462,7 +1462,7 @@ const Gt = async (s, t) => {
1462
1462
  const R = E.map((Ge) => Ge.value), se = fa(c, e, R), qe = va(se);
1463
1463
  v("update:labels", qe), v("update:value", R), o != null && o.value.errClass && d && Q(d);
1464
1464
  };
1465
- return V(() => {
1465
+ return Y(() => {
1466
1466
  p.value && !p.value.fieldMap && (p.value.fieldMap = {
1467
1467
  title: "Name",
1468
1468
  label: "Name",
@@ -1473,32 +1473,32 @@ const Gt = async (s, t) => {
1473
1473
  c && da(c, e);
1474
1474
  }), (_, E) => {
1475
1475
  var R;
1476
- return m(), w("div", bt, [
1477
- u.value.length ? y("", !0) : (m(), w("div", xt, [
1478
- k(l(pa), { class: "text-[#555] mx-[5px] !ml-[10px] !w-4 !h-4" }),
1476
+ return m(), S("div", gt, [
1477
+ u.value.length ? k("", !0) : (m(), S("div", bt, [
1478
+ w(l(pa), { class: "text-[#555] mx-[5px] !ml-[10px] !w-4 !h-4" }),
1479
1479
  E[0] || (E[0] = $("span", null, "数据加载中...", -1))
1480
1480
  ])),
1481
- k(l(Pa), F({
1481
+ w(l(Pa), F({
1482
1482
  options: u.value,
1483
1483
  class: [(R = l(o)) == null ? void 0 : R.errClass],
1484
1484
  "allow-clear": !0,
1485
1485
  placeholder: u.value.length > 0 ? "请选择" + l(f) : "",
1486
- onChange: g
1487
- }, l(a)), null, 16, ["options", "class", "placeholder"])
1486
+ onChange: h
1487
+ }, l(t)), null, 16, ["options", "class", "placeholder"])
1488
1488
  ]);
1489
1489
  };
1490
1490
  }
1491
- }), cl = /* @__PURE__ */ q(_t, [["__scopeId", "data-v-7f0def6e"]]), ul = /* @__PURE__ */ q(ma, [["__scopeId", "data-v-64193a41"]]);
1491
+ }), il = /* @__PURE__ */ q(xt, [["__scopeId", "data-v-7f0def6e"]]), cl = /* @__PURE__ */ q(ma, [["__scopeId", "data-v-64193a41"]]);
1492
1492
  function ie() {
1493
1493
  return ie = Object.assign ? Object.assign.bind() : function(s) {
1494
- for (var t = 1; t < arguments.length; t++) {
1495
- var e = arguments[t];
1496
- for (var a in e) ({}).hasOwnProperty.call(e, a) && (s[a] = e[a]);
1494
+ for (var a = 1; a < arguments.length; a++) {
1495
+ var e = arguments[a];
1496
+ for (var t in e) ({}).hasOwnProperty.call(e, t) && (s[t] = e[t]);
1497
1497
  }
1498
1498
  return s;
1499
1499
  }, ie.apply(null, arguments);
1500
1500
  }
1501
- const yt = {
1501
+ const _t = {
1502
1502
  locale: "zh_CN",
1503
1503
  today: "今天",
1504
1504
  now: "此刻",
@@ -1525,7 +1525,7 @@ const yt = {
1525
1525
  nextDecade: "下一年代",
1526
1526
  previousCentury: "上一世纪",
1527
1527
  nextCentury: "下一世纪"
1528
- }, kt = {
1528
+ }, yt = {
1529
1529
  placeholder: "请选择时间",
1530
1530
  rangePlaceholder: ["开始时间", "结束时间"]
1531
1531
  }, ye = {
@@ -1540,100 +1540,101 @@ const yt = {
1540
1540
  rangeMonthPlaceholder: ["开始月份", "结束月份"],
1541
1541
  rangeQuarterPlaceholder: ["开始季度", "结束季度"],
1542
1542
  rangeWeekPlaceholder: ["开始周", "结束周"]
1543
- }, yt),
1544
- timePickerLocale: ie({}, kt)
1543
+ }, _t),
1544
+ timePickerLocale: ie({}, yt)
1545
1545
  };
1546
1546
  ye.lang.ok = "确定";
1547
- const dl = /* @__PURE__ */ S({
1547
+ const ul = /* @__PURE__ */ C({
1548
1548
  __name: "index",
1549
1549
  props: {
1550
1550
  valueFormat: {}
1551
1551
  },
1552
1552
  setup(s) {
1553
- const t = s, { editorCtrl: e, labelText: a, errInfo: n } = L(), i = () => {
1553
+ const a = s, { editorCtrl: e, labelText: t, errInfo: n } = L(), i = () => {
1554
1554
  n != null && n.value.errClass && e && Q(e);
1555
- }, c = x(t.valueFormat ?? "YYYY-MM-DD");
1555
+ }, c = x(a.valueFormat ?? "YYYY-MM-DD");
1556
1556
  return (p, d) => {
1557
1557
  var o;
1558
1558
  return m(), b(l(Fa), {
1559
1559
  class: N(["w-full", [((o = l(n)) == null ? void 0 : o.errClass) === "error" ? "error !border-red-300 shadow-[0_0_3px_0px_#ff4d4f]" : ""]]),
1560
- placeholder: "请选择" + l(a),
1560
+ placeholder: "请选择" + l(t),
1561
1561
  locale: l(ye),
1562
1562
  valueFormat: c.value,
1563
1563
  onBlur: i
1564
1564
  }, null, 8, ["class", "placeholder", "locale", "valueFormat"]);
1565
1565
  };
1566
1566
  }
1567
- }), wt = /* @__PURE__ */ S({
1567
+ }), kt = /* @__PURE__ */ C({
1568
1568
  __name: "index",
1569
1569
  props: {
1570
- value: {}
1570
+ value: {},
1571
+ undefValue: { type: Boolean, default: !1 }
1571
1572
  },
1572
1573
  emits: ["update:value"],
1573
- setup(s, { emit: t }) {
1574
- const { editorCtrl: e, labelText: a, errInfo: n } = L(), i = () => {
1574
+ setup(s, { emit: a }) {
1575
+ const { editorCtrl: e, labelText: t, errInfo: n } = L(), i = () => {
1575
1576
  n != null && n.value.errClass && e && Q(e);
1576
- }, c = s, p = t, d = x(c.value);
1577
+ }, c = s, p = c.value === void 0 ? !0 : c.undefValue, d = a, o = x(c.value);
1577
1578
  T(
1578
1579
  () => c.value,
1579
- (f) => {
1580
- d.value = f;
1580
+ (r) => {
1581
+ o.value = r;
1581
1582
  },
1582
1583
  { immediate: !0 }
1583
1584
  // 立即同步初始值
1584
1585
  ), T(
1585
- () => d.value,
1586
- (f) => {
1587
- if (d.value === "") {
1588
- p("update:value", void 0);
1586
+ () => o.value,
1587
+ (r) => {
1588
+ if (o.value === "") {
1589
+ d("update:value", void 0);
1589
1590
  return;
1590
1591
  }
1591
- p("update:value", f);
1592
+ d("update:value", r);
1592
1593
  }
1593
1594
  );
1594
- const o = () => {
1595
- d.value === "" && (d.value = void 0);
1595
+ const f = () => {
1596
+ o.value === "" && (o.value = p ? void 0 : null);
1596
1597
  };
1597
- return (f, r) => {
1598
- var v, u;
1598
+ return (r, v) => {
1599
+ var u, h;
1599
1600
  return m(), b(l(ee), F({
1600
1601
  class: [
1601
- (v = l(n)) == null ? void 0 : v.errClass,
1602
- ((u = l(n)) == null ? void 0 : u.errClass) === "error" && !f.$slots.addonBefore && !f.$slots.addonAfter ? "!border-red-300 shadow-[0_0_3px_0px_#ff4d4f]" : ""
1602
+ (u = l(n)) == null ? void 0 : u.errClass,
1603
+ ((h = l(n)) == null ? void 0 : h.errClass) === "error" && !r.$slots.addonBefore && !r.$slots.addonAfter ? "!border-red-300 shadow-[0_0_3px_0px_#ff4d4f]" : ""
1603
1604
  ],
1604
- value: d.value,
1605
- "onUpdate:value": r[0] || (r[0] = (g) => d.value = g),
1605
+ value: o.value,
1606
+ "onUpdate:value": v[0] || (v[0] = (y) => o.value = y),
1606
1607
  autocomplete: "new-password",
1607
1608
  "allow-clear": !0,
1608
- placeholder: "请输入" + l(a),
1609
+ placeholder: "请输入" + l(t),
1609
1610
  onBlur: i,
1610
- onChange: o
1611
- }, f.$attrs), Be({ _: 2 }, [
1612
- f.$slots.addonBefore ? {
1611
+ onChange: f
1612
+ }, r.$attrs), Ae({ _: 2 }, [
1613
+ r.$slots.addonBefore ? {
1613
1614
  name: "addonBefore",
1614
- fn: h(() => [
1615
- I(f.$slots, "addonBefore")
1615
+ fn: g(() => [
1616
+ D(r.$slots, "addonBefore")
1616
1617
  ]),
1617
1618
  key: "0"
1618
1619
  } : void 0,
1619
- f.$slots.addonAfter ? {
1620
+ r.$slots.addonAfter ? {
1620
1621
  name: "addonAfter",
1621
- fn: h(() => [
1622
- I(f.$slots, "addonAfter")
1622
+ fn: g(() => [
1623
+ D(r.$slots, "addonAfter")
1623
1624
  ]),
1624
1625
  key: "1"
1625
1626
  } : void 0
1626
1627
  ]), 1040, ["class", "value", "placeholder"]);
1627
1628
  };
1628
1629
  }
1629
- }), St = /* @__PURE__ */ S({
1630
+ }), wt = /* @__PURE__ */ C({
1630
1631
  __name: "inputIcon",
1631
1632
  props: {
1632
1633
  value: {}
1633
1634
  },
1634
1635
  emits: ["update:value"],
1635
- setup(s, { emit: t }) {
1636
- const e = s, a = t, n = x(void 0);
1636
+ setup(s, { emit: a }) {
1637
+ const e = s, t = a, n = x(void 0);
1637
1638
  return T(
1638
1639
  () => e.value,
1639
1640
  (i) => {
@@ -1643,14 +1644,14 @@ const dl = /* @__PURE__ */ S({
1643
1644
  ), T(
1644
1645
  () => n.value,
1645
1646
  (i) => {
1646
- a("update:value", i);
1647
+ t("update:value", i);
1647
1648
  }
1648
- ), (i, c) => (m(), b(wt, F({
1649
+ ), (i, c) => (m(), b(kt, F({
1649
1650
  value: n.value,
1650
1651
  "onUpdate:value": c[0] || (c[0] = (p) => n.value = p)
1651
1652
  }, i.$attrs), {
1652
- addonBefore: h(() => [
1653
- k(l(z), {
1653
+ addonBefore: g(() => [
1654
+ w(l(U), {
1654
1655
  class: "!w-4 !h-4",
1655
1656
  icon: n.value
1656
1657
  }, null, 8, ["icon"])
@@ -1658,16 +1659,16 @@ const dl = /* @__PURE__ */ S({
1658
1659
  _: 1
1659
1660
  }, 16, ["value"]));
1660
1661
  }
1661
- }), pl = /* @__PURE__ */ q(St, [["__scopeId", "data-v-358b82ef"]]), fl = /* @__PURE__ */ S({
1662
+ }), dl = /* @__PURE__ */ q(wt, [["__scopeId", "data-v-358b82ef"]]), pl = /* @__PURE__ */ C({
1662
1663
  __name: "inputPassword",
1663
1664
  setup(s) {
1664
- const { editorCtrl: t, labelText: e, errInfo: a } = L(), n = () => {
1665
- a != null && a.value.errClass && t && Q(t);
1665
+ const { editorCtrl: a, labelText: e, errInfo: t } = L(), n = () => {
1666
+ t != null && t.value.errClass && a && Q(a);
1666
1667
  };
1667
1668
  return (i, c) => {
1668
1669
  var p;
1669
1670
  return m(), b(l(Na), F({
1670
- class: ((p = l(a)) == null ? void 0 : p.errClass) === "error" ? ["error", "!border-red-300", "shadow-[0_0_3px_0px_#ff4d4f]"] : "",
1671
+ class: ((p = l(t)) == null ? void 0 : p.errClass) === "error" ? ["error", "!border-red-300", "shadow-[0_0_3px_0px_#ff4d4f]"] : "",
1671
1672
  "allow-clear": !0,
1672
1673
  autocomplete: "new-password",
1673
1674
  placeholder: "请输入" + l(e),
@@ -1675,23 +1676,23 @@ const dl = /* @__PURE__ */ S({
1675
1676
  }, i.$attrs), null, 16, ["class", "placeholder"]);
1676
1677
  };
1677
1678
  }
1678
- }), vl = /* @__PURE__ */ S({
1679
+ }), fl = /* @__PURE__ */ C({
1679
1680
  __name: "inputNumber",
1680
1681
  setup(s) {
1681
- const { editorCtrl: t, labelText: e, errInfo: a } = L(), n = () => {
1682
- a != null && a.value.errClass && t && Q(t);
1682
+ const { editorCtrl: a, labelText: e, errInfo: t } = L(), n = () => {
1683
+ t != null && t.value.errClass && a && Q(a);
1683
1684
  };
1684
1685
  return (i, c) => {
1685
1686
  var p;
1686
1687
  return m(), b(l(Ma), F({
1687
- class: [[((p = l(a)) == null ? void 0 : p.errClass) === "error" ? "error !border-red-300 shadow-[0_0_3px_0px_#ff4d4f]" : ""], "w-[50%]"],
1688
+ class: [[((p = l(t)) == null ? void 0 : p.errClass) === "error" ? "error !border-red-300 shadow-[0_0_3px_0px_#ff4d4f]" : ""], "w-[50%]"],
1688
1689
  onBlur: n,
1689
1690
  "allow-clear": !1,
1690
1691
  placeholder: "请输入" + l(e)
1691
1692
  }, i.$attrs), null, 16, ["class", "placeholder"]);
1692
1693
  };
1693
1694
  }
1694
- }), Ct = { class: "flex flex-col gap-2" }, Tt = { key: 1 }, ml = /* @__PURE__ */ S({
1695
+ }), St = { class: "flex flex-col gap-2" }, Ct = { key: 1 }, vl = /* @__PURE__ */ C({
1695
1696
  __name: "index",
1696
1697
  props: {
1697
1698
  value: {},
@@ -1701,8 +1702,8 @@ const dl = /* @__PURE__ */ S({
1701
1702
  valueHolder: {}
1702
1703
  },
1703
1704
  emits: ["update:value"],
1704
- setup(s, { emit: t }) {
1705
- const e = s, a = t, n = x(!(e.selectList && e.selectList.length > 0)), i = x([]);
1705
+ setup(s, { emit: a }) {
1706
+ const e = s, t = a, n = x(!(e.selectList && e.selectList.length > 0)), i = x([]);
1706
1707
  let c = !1;
1707
1708
  const p = () => {
1708
1709
  e.selectList && e.selectList.length > 0 ? i.value = e.selectList.map((r) => ({
@@ -1729,7 +1730,7 @@ const dl = /* @__PURE__ */ S({
1729
1730
  (v, u) => (u.field && (v[u.field] = u.value), v),
1730
1731
  {}
1731
1732
  );
1732
- c = !0, a("update:value", r);
1733
+ c = !0, t("update:value", r);
1733
1734
  }, o = () => {
1734
1735
  i.value.push({
1735
1736
  id: Date.now() + Math.random(),
@@ -1739,8 +1740,8 @@ const dl = /* @__PURE__ */ S({
1739
1740
  }, f = () => {
1740
1741
  d();
1741
1742
  };
1742
- return (r, v) => (m(), w("div", Ct, [
1743
- (m(!0), w(O, null, U(i.value, (u) => (m(), w("div", {
1743
+ return (r, v) => (m(), S("div", St, [
1744
+ (m(!0), S(B, null, z(i.value, (u) => (m(), S("div", {
1744
1745
  key: u.id,
1745
1746
  class: "flex items-center gap-2"
1746
1747
  }, [
@@ -1750,24 +1751,24 @@ const dl = /* @__PURE__ */ S({
1750
1751
  !r.selectList || r.selectList.length === 0 ? (m(), b(l(ee), {
1751
1752
  key: 0,
1752
1753
  value: u.field,
1753
- "onUpdate:value": (g) => u.field = g,
1754
+ "onUpdate:value": (h) => u.field = h,
1754
1755
  title: u.text || u.field,
1755
1756
  class: "w-full",
1756
1757
  placeholder: u.text || r.labelHolder || "配置名",
1757
1758
  onInput: f,
1758
1759
  disabled: !n.value
1759
- }, null, 8, ["value", "onUpdate:value", "title", "placeholder", "disabled"])) : (m(), w("div", Tt, [
1760
- k(l(ee), {
1760
+ }, null, 8, ["value", "onUpdate:value", "title", "placeholder", "disabled"])) : (m(), S("div", Ct, [
1761
+ w(l(ee), {
1761
1762
  value: u.text,
1762
- "onUpdate:value": (g) => u.text = g,
1763
+ "onUpdate:value": (h) => u.text = h,
1763
1764
  title: u.text,
1764
1765
  disabled: !0,
1765
1766
  class: "w-[100%]"
1766
1767
  }, null, 8, ["value", "onUpdate:value", "title"]),
1767
- k(l(ee), {
1768
+ w(l(ee), {
1768
1769
  type: "hidden",
1769
1770
  value: u.field,
1770
- "onUpdate:value": (g) => u.field = g
1771
+ "onUpdate:value": (h) => u.field = h
1771
1772
  }, null, 8, ["value", "onUpdate:value"])
1772
1773
  ]))
1773
1774
  ], 2),
@@ -1775,30 +1776,30 @@ const dl = /* @__PURE__ */ S({
1775
1776
  $("div", {
1776
1777
  class: N([r.fieldWidth ? `w-[${97 - r.fieldWidth}%]` : "w-[64%]"])
1777
1778
  }, [
1778
- k(l(ee), {
1779
+ w(l(ee), {
1779
1780
  value: u.value,
1780
- "onUpdate:value": (g) => u.value = g,
1781
+ "onUpdate:value": (h) => u.value = h,
1781
1782
  placeholder: r.valueHolder || "请输入" + u.text || "请输入配置值",
1782
1783
  onInput: f,
1783
1784
  title: u.value
1784
1785
  }, null, 8, ["value", "onUpdate:value", "placeholder", "title"])
1785
1786
  ], 2)
1786
1787
  ]))), 128)),
1787
- n.value ? (m(), b(l(Ye), {
1788
+ n.value ? (m(), b(l(Ve), {
1788
1789
  key: 0,
1789
1790
  onClick: o,
1790
1791
  class: "mt-1 w-[80px] !text-[12px] text-[#666] bg-[#e6f7ff] border-[#b3e0ff] hover:bg-[#b3e0ff] hover:border-[#8abeff]",
1791
1792
  size: "small"
1792
1793
  }, {
1793
- default: h(() => v[1] || (v[1] = [
1794
+ default: g(() => v[1] || (v[1] = [
1794
1795
  M(" 新增配置行 ")
1795
1796
  ])),
1796
1797
  _: 1,
1797
1798
  __: [1]
1798
- })) : y("", !0)
1799
+ })) : k("", !0)
1799
1800
  ]));
1800
1801
  }
1801
- }), $t = /* @__PURE__ */ q(ha, [["__scopeId", "data-v-cf2cfa24"]]), hl = /* @__PURE__ */ S({
1802
+ }), Tt = /* @__PURE__ */ q(ha, [["__scopeId", "data-v-cf2cfa24"]]), ml = /* @__PURE__ */ C({
1802
1803
  __name: "radioStatus",
1803
1804
  props: {
1804
1805
  /**
@@ -1826,13 +1827,13 @@ const dl = /* @__PURE__ */ S({
1826
1827
  }
1827
1828
  },
1828
1829
  setup(s) {
1829
- const t = s, e = x(JSON.parse(JSON.stringify(Ne.getOptions(t.dataKey))));
1830
- return t.all === !0 && e.value.unshift({
1830
+ const a = s, e = x(JSON.parse(JSON.stringify(Ne.getOptions(a.dataKey))));
1831
+ return a.all === !0 && e.value.unshift({
1831
1832
  label: "全部",
1832
- value: t.allValue || [0, 1]
1833
- }), (a, n) => (m(), b($t, { data: e.value }, null, 8, ["data"]));
1833
+ value: a.allValue || [0, 1]
1834
+ }), (t, n) => (m(), b(Tt, { data: e.value }, null, 8, ["data"]));
1834
1835
  }
1835
- }), gl = /* @__PURE__ */ S({
1836
+ }), hl = /* @__PURE__ */ C({
1836
1837
  __name: "index",
1837
1838
  props: {
1838
1839
  startDate: {},
@@ -1840,8 +1841,8 @@ const dl = /* @__PURE__ */ S({
1840
1841
  valueFormat: { default: "YYYY-MM-DD" }
1841
1842
  },
1842
1843
  emits: ["update:startDate", "update:endDate"],
1843
- setup(s, { emit: t }) {
1844
- const e = s, a = t, n = L(), { errInfo: i } = n, c = J(() => e.valueFormat), p = J(() => {
1844
+ setup(s, { emit: a }) {
1845
+ const e = s, t = a, n = L(), { errInfo: i } = n, c = J(() => e.valueFormat), p = J(() => {
1845
1846
  const o = e.startDate, f = e.endDate;
1846
1847
  if (!(!o || !f))
1847
1848
  try {
@@ -1852,10 +1853,10 @@ const dl = /* @__PURE__ */ S({
1852
1853
  }
1853
1854
  }), d = (o, f) => {
1854
1855
  if (!o || !f || f.length !== 2) {
1855
- a("update:startDate", null), a("update:endDate", null);
1856
+ t("update:startDate", null), t("update:endDate", null);
1856
1857
  return;
1857
1858
  }
1858
- a("update:startDate", f[0] || null), a("update:endDate", f[1] || null);
1859
+ t("update:startDate", f[0] || null), t("update:endDate", f[1] || null);
1859
1860
  };
1860
1861
  return (o, f) => {
1861
1862
  var r;
@@ -1868,16 +1869,16 @@ const dl = /* @__PURE__ */ S({
1868
1869
  }, null, 8, ["class", "locale", "value-format", "value"]);
1869
1870
  };
1870
1871
  }
1871
- }), bl = /* @__PURE__ */ q(ga, [["__scopeId", "data-v-8e93cef3"]]), xl = /* @__PURE__ */ S({
1872
+ }), gl = /* @__PURE__ */ q(ga, [["__scopeId", "data-v-8875a979"]]), bl = /* @__PURE__ */ C({
1872
1873
  __name: "index",
1873
1874
  setup(s) {
1874
- const { editorCtrl: t, labelText: e, errInfo: a } = L(), n = () => {
1875
- a != null && a.value.errClass && t && Q(t);
1875
+ const { editorCtrl: a, labelText: e, errInfo: t } = L(), n = () => {
1876
+ t != null && t.value.errClass && a && Q(a);
1876
1877
  };
1877
1878
  return (i, c) => {
1878
1879
  var p;
1879
- return m(), b(l(Oa), F({
1880
- class: ((p = l(a)) == null ? void 0 : p.errClass) === "error" ? ["error", "!border-red-300", "shadow-[0_0_3px_0px_#ff4d4f]"] : "",
1880
+ return m(), b(l(Ba), F({
1881
+ class: ((p = l(t)) == null ? void 0 : p.errClass) === "error" ? ["error", "!border-red-300", "shadow-[0_0_3px_0px_#ff4d4f]"] : "",
1881
1882
  "allow-clear": !0,
1882
1883
  placeholder: "请输入" + l(e),
1883
1884
  onBlur: n,
@@ -1888,7 +1889,7 @@ const dl = /* @__PURE__ */ S({
1888
1889
  }, i.$attrs), null, 16, ["class", "placeholder"]);
1889
1890
  };
1890
1891
  }
1891
- }), It = /* @__PURE__ */ S({
1892
+ }), $t = /* @__PURE__ */ C({
1892
1893
  __name: "index",
1893
1894
  props: {
1894
1895
  autoload: { type: Boolean },
@@ -1897,8 +1898,8 @@ const dl = /* @__PURE__ */ S({
1897
1898
  value: {}
1898
1899
  },
1899
1900
  emits: ["change", "update:value"],
1900
- setup(s, { emit: t }) {
1901
- const e = s, a = x({ ...e.url }), { editorCtrl: n, labelText: i, errInfo: c } = L(), p = t, d = x([]), o = x([]);
1901
+ setup(s, { emit: a }) {
1902
+ const e = s, t = x({ ...e.url }), { editorCtrl: n, labelText: i, errInfo: c } = L(), p = a, d = x([]), o = x([]);
1902
1903
  e.value && e.value.every((r) => {
1903
1904
  o.value.push(r.toString());
1904
1905
  }), T(
@@ -1910,13 +1911,13 @@ const dl = /* @__PURE__ */ S({
1910
1911
  const f = (r) => {
1911
1912
  p("update:value", r), p("change", r), o.value = r, c != null && c.value.errClass && n && Q(n);
1912
1913
  };
1913
- return V(async () => {
1914
- if (a.value) {
1914
+ return Y(async () => {
1915
+ if (t.value) {
1915
1916
  const r = n == null ? void 0 : n.page;
1916
- 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) {
1917
+ if (t.value.api || (t.value.api = r == null ? void 0 : r.api), t.value.authorize === void 0 && (t.value.authorize = r == null ? void 0 : r.authorize), e.autoload) {
1917
1918
  const v = await Re(n, {
1918
1919
  urlKey: "list",
1919
- url: { ...a.value, url: a.value.url },
1920
+ url: { ...t.value, url: t.value.url },
1920
1921
  loadingText: !1,
1921
1922
  params: e.params
1922
1923
  });
@@ -1925,18 +1926,18 @@ const dl = /* @__PURE__ */ S({
1925
1926
  }
1926
1927
  }), (r, v) => {
1927
1928
  var u;
1928
- return m(), b(l(Aa), F({
1929
+ return m(), b(l(Oa), F({
1929
1930
  class: ((u = l(c)) == null ? void 0 : u.errClass) === "error" ? ["error", "!border-red-300", "shadow-[0_0_3px_0px_#ff4d4f]"] : "",
1930
1931
  placeholder: "请输入" + l(i),
1931
1932
  targetKeys: o.value,
1932
1933
  onChange: f
1933
1934
  }, r.$attrs), {
1934
- children: h(({ direction: g, disabled: C, filteredItems: D, onItemSelectAll: A, onItemSelect: _, selectedKeys: E }) => [
1935
- I(r.$slots, "children", {
1936
- direction: g,
1937
- disabled: C,
1938
- filteredItems: D,
1939
- onItemSelectAll: A,
1935
+ children: g(({ direction: h, disabled: y, filteredItems: I, onItemSelectAll: O, onItemSelect: _, selectedKeys: E }) => [
1936
+ D(r.$slots, "children", {
1937
+ direction: h,
1938
+ disabled: y,
1939
+ filteredItems: I,
1940
+ onItemSelectAll: O,
1940
1941
  onItemSelect: _,
1941
1942
  selectedKeys: E
1942
1943
  })
@@ -1945,7 +1946,7 @@ const dl = /* @__PURE__ */ S({
1945
1946
  }, 16, ["class", "placeholder", "targetKeys"]);
1946
1947
  };
1947
1948
  }
1948
- }), _l = /* @__PURE__ */ S({
1949
+ }), xl = /* @__PURE__ */ C({
1949
1950
  __name: "transferTable",
1950
1951
  props: {
1951
1952
  /**
@@ -1971,12 +1972,12 @@ const dl = /* @__PURE__ */ S({
1971
1972
  }
1972
1973
  },
1973
1974
  emits: ["update:value"],
1974
- setup(s, { emit: t }) {
1975
- const e = s, a = t, n = x(e.autoload), i = x(e.value), c = x(e.gridCtrl.primaryKey);
1975
+ setup(s, { emit: a }) {
1976
+ const e = s, t = a, n = x(e.autoload), i = x(e.value), c = x(e.gridCtrl.primaryKey);
1976
1977
  T(
1977
1978
  () => i.value,
1978
1979
  (o) => {
1979
- a("update:value", o);
1980
+ t("update:value", o);
1980
1981
  }
1981
1982
  ), T(
1982
1983
  () => e.value,
@@ -1989,16 +1990,16 @@ const dl = /* @__PURE__ */ S({
1989
1990
  // 控制是否禁止
1990
1991
  disabled: o || u.disabled
1991
1992
  }),
1992
- onSelectAll(u, g) {
1993
- const C = g.filter((D) => !D.disabled).map(({ [c.value]: D }) => D);
1994
- r(C, u);
1993
+ onSelectAll(u, h) {
1994
+ const y = h.filter((I) => !I.disabled).map(({ [c.value]: I }) => I);
1995
+ r(y, u);
1995
1996
  },
1996
- onSelect({ [c.value]: u }, g) {
1997
- v(u, g);
1997
+ onSelect({ [c.value]: u }, h) {
1998
+ v(u, h);
1998
1999
  },
1999
2000
  selectedRowKeys: f
2000
2001
  }), d = x([]);
2001
- return V(async () => {
2002
+ return Y(async () => {
2002
2003
  if (n.value) {
2003
2004
  const o = await Re(e.gridCtrl, {
2004
2005
  urlKey: "list",
@@ -2008,7 +2009,7 @@ const dl = /* @__PURE__ */ S({
2008
2009
  });
2009
2010
  d.value = (o == null ? void 0 : o.data) ?? [];
2010
2011
  }
2011
- }), (o, f) => (m(), b(It, F({
2012
+ }), (o, f) => (m(), b($t, F({
2012
2013
  "data-source": d.value,
2013
2014
  "row-key": (r) => r[c.value],
2014
2015
  value: i.value,
@@ -2026,13 +2027,13 @@ const dl = /* @__PURE__ */ S({
2026
2027
  return !1;
2027
2028
  }
2028
2029
  }, o.$attrs), {
2029
- children: h(({ filteredItems: r, onItemSelectAll: v, onItemSelect: u, selectedKeys: g }) => [
2030
- k(l(Ve), {
2030
+ children: g(({ filteredItems: r, onItemSelectAll: v, onItemSelect: u, selectedKeys: h }) => [
2031
+ w(l(Ye), {
2031
2032
  columns: s.gridCtrl.columns.value,
2032
2033
  "row-key": c.value,
2033
2034
  "row-selection": p({
2034
2035
  disabled: !1,
2035
- selectedKeys: g,
2036
+ selectedKeys: h,
2036
2037
  onItemSelectAll: v,
2037
2038
  onItemSelect: u
2038
2039
  }),
@@ -2040,10 +2041,10 @@ const dl = /* @__PURE__ */ S({
2040
2041
  size: "small",
2041
2042
  "data-source": r,
2042
2043
  scroll: { x: 300 },
2043
- "custom-row": (C) => ({
2044
+ "custom-row": (y) => ({
2044
2045
  onClick: () => {
2045
- const D = C[c.value];
2046
- u(D, !g.includes(D));
2046
+ const I = y[c.value];
2047
+ u(I, !h.includes(I));
2047
2048
  }
2048
2049
  })
2049
2050
  }, null, 8, ["columns", "row-key", "row-selection", "data-source", "custom-row"])
@@ -2051,7 +2052,7 @@ const dl = /* @__PURE__ */ S({
2051
2052
  _: 1
2052
2053
  }, 16, ["data-source", "row-key", "value", "filter-option"]));
2053
2054
  }
2054
- }), Dt = /* @__PURE__ */ S({
2055
+ }), It = /* @__PURE__ */ C({
2055
2056
  __name: "index",
2056
2057
  props: {
2057
2058
  multiple: {
@@ -2064,76 +2065,89 @@ const dl = /* @__PURE__ */ S({
2064
2065
  },
2065
2066
  value: {
2066
2067
  type: [String, Number, Array],
2067
- required: !0
2068
+ required: !1
2069
+ },
2070
+ /**
2071
+ * 清空时设置的值
2072
+ * - false,则清空时设置为 null
2073
+ * - true,则清空时设置为 undefined
2074
+ */
2075
+ undefValue: {
2076
+ type: Boolean,
2077
+ default: !1
2068
2078
  }
2069
2079
  },
2070
2080
  emits: ["change", "update:value"],
2071
- setup(s, { emit: t }) {
2072
- const e = s, a = e.treeCtrl, n = L(), { errInfo: i, labelText: c } = n, p = t;
2073
- n.inputEmit = p;
2074
- const d = x([]), o = x();
2081
+ setup(s, { emit: a }) {
2082
+ const e = s, t = e.value === void 0 ? !0 : e.undefValue, n = e.treeCtrl, i = L(), { errInfo: c, labelText: p } = i, d = a;
2083
+ i.inputEmit = d;
2084
+ const o = x([]), f = x();
2075
2085
  T(
2076
2086
  () => e.value,
2077
- (r) => {
2078
- o.value = r ?? null;
2087
+ (u) => {
2088
+ f.value = u;
2079
2089
  },
2080
2090
  { immediate: !0 }
2081
2091
  ), T(
2082
- () => a.data.value,
2083
- (r) => {
2084
- r && (d.value = a.fieldMap ? oe(a.fieldMap, r) : r);
2092
+ () => n.data.value,
2093
+ (u) => {
2094
+ u && (o.value = n.fieldMap ? oe(n.fieldMap, u) : u);
2085
2095
  },
2086
2096
  { immediate: !0 }
2087
2097
  );
2088
- const f = (r) => {
2089
- e.multiple ? o.value = r ?? [] : o.value = r ?? "", p("change", o.value), p("update:value", o.value);
2098
+ const r = (u) => {
2099
+ e.multiple ? f.value = u ?? [] : f.value = u ?? t ? void 0 : null, d("change", f.value), d("update:value", f.value);
2090
2100
  };
2091
- return V(() => {
2092
- a.fieldMap || (a.fieldMap = {
2101
+ Y(() => {
2102
+ n.fieldMap || (n.fieldMap = {
2093
2103
  label: "Name",
2094
2104
  key: "Id",
2095
2105
  value: "Id"
2096
- }), a.data.value ? d.value = a.fieldMap ? oe(a.fieldMap, a.data.value) : a.data.value : e.treeCtrl.autoload && Me(e.treeCtrl);
2097
- }), (r, v) => {
2098
- var u;
2099
- return m(), b(l(Ba), F({
2100
- class: [[(u = l(i)) == null ? void 0 : u.errClass], "w-full"],
2106
+ }), n.data.value ? o.value = n.fieldMap ? oe(n.fieldMap, n.data.value) : n.data.value : e.treeCtrl.autoload && Me(e.treeCtrl);
2107
+ });
2108
+ const v = () => {
2109
+ f.value = t ? void 0 : null;
2110
+ };
2111
+ return (u, h) => {
2112
+ var y;
2113
+ return m(), b(l(Aa), F({
2114
+ class: [[(y = l(c)) == null ? void 0 : y.errClass], "w-full"],
2101
2115
  "tree-line": "",
2102
2116
  multiple: s.multiple,
2103
2117
  "tree-default-expanded-keys": ["-"],
2104
- value: o.value,
2105
- "onUpdate:value": v[0] || (v[0] = (g) => o.value = g),
2106
- "tree-data": d.value,
2107
- placeholder: "请选择" + l(c),
2108
- "allow-clear": !0,
2109
- onChange: f
2110
- }, r.$attrs), null, 16, ["class", "multiple", "value", "tree-data", "placeholder"]);
2118
+ value: f.value,
2119
+ "onUpdate:value": h[0] || (h[0] = (I) => f.value = I),
2120
+ "tree-data": o.value,
2121
+ placeholder: "请选择" + l(p),
2122
+ onChange: r,
2123
+ onClear: v
2124
+ }, u.$attrs), null, 16, ["class", "multiple", "value", "tree-data", "placeholder"]);
2111
2125
  };
2112
2126
  }
2113
- }), yl = /* @__PURE__ */ q(Dt, [["__scopeId", "data-v-f000d1d0"]]), Et = { class: "relative h-[calc(100vh-80px)] overflow-y-auto" }, Pt = { class: "flex w-full h-full min-h-full" }, Ft = {
2127
+ }), _l = /* @__PURE__ */ q(It, [["__scopeId", "data-v-a38b77ec"]]), Dt = { class: "relative h-[calc(100vh-80px)] overflow-y-auto" }, Et = { class: "flex w-full h-full min-h-full" }, Pt = {
2114
2128
  key: 0,
2115
2129
  class: "w-1/4 pr-4 min-h-full min-w-[170px] max-w-[200px]"
2116
- }, Nt = { class: "flex-1 h-full overflow-y-auto" }, kl = /* @__PURE__ */ S({
2130
+ }, Ft = { class: "flex-1 h-full overflow-y-auto" }, yl = /* @__PURE__ */ C({
2117
2131
  __name: "index",
2118
2132
  props: {
2119
2133
  left: { type: Boolean }
2120
2134
  },
2121
2135
  setup(s) {
2122
- const { useToken: t } = Le, { token: e } = t();
2123
- return (a, n) => (m(), w("div", Et, [
2124
- k(l(La), {
2136
+ const { useToken: a } = Le, { token: e } = a();
2137
+ return (t, n) => (m(), S("div", Dt, [
2138
+ w(l(La), {
2125
2139
  class: "m-[10px] p-[10px] h-[calc(100vh-100px)] !min-h-[calc(100vh-100px)]",
2126
2140
  style: ue({
2127
2141
  backgroundColor: l(e).colorBgContainer
2128
2142
  })
2129
2143
  }, {
2130
- default: h(() => [
2131
- $("div", Pt, [
2132
- a.left ? (m(), w("div", Ft, [
2133
- I(a.$slots, "left")
2134
- ])) : y("", !0),
2135
- $("div", Nt, [
2136
- I(a.$slots, "default")
2144
+ default: g(() => [
2145
+ $("div", Et, [
2146
+ t.left ? (m(), S("div", Pt, [
2147
+ D(t.$slots, "left")
2148
+ ])) : k("", !0),
2149
+ $("div", Ft, [
2150
+ D(t.$slots, "default")
2137
2151
  ])
2138
2152
  ])
2139
2153
  ]),
@@ -2143,114 +2157,115 @@ const dl = /* @__PURE__ */ S({
2143
2157
  }
2144
2158
  });
2145
2159
  export {
2146
- As as AppIcon,
2160
+ ks as Alert,
2161
+ Os as AppIcon,
2147
2162
  ce as AppRouter,
2148
- is as AsyncUploader,
2149
- il as AutoComplete,
2150
- Bs as Breadcrumb,
2151
- B as Button,
2163
+ ns as AsyncUploader,
2164
+ nl as AutoComplete,
2165
+ As as Breadcrumb,
2166
+ A as Button,
2152
2167
  He as Cache,
2153
2168
  Xa as CacheKeys,
2154
- bs as CanPreviewFileExt,
2155
- cl as Cascader,
2156
- ul as Checkbox,
2157
- kl as Content,
2158
- dl as DatePicker,
2169
+ gs as CanPreviewFileExt,
2170
+ il as Cascader,
2171
+ cl as Checkbox,
2172
+ yl as Content,
2173
+ ul as DatePicker,
2159
2174
  Ls as Datetime,
2160
2175
  Hs as Dialog,
2161
- tl as Drawer,
2162
- Cl as EventPrefix,
2163
- ll as Form,
2164
- sl as FormItem,
2165
- el as Fullscreen,
2166
- Us as Header,
2167
- zs as HeaderExits,
2176
+ al as Drawer,
2177
+ Sl as EventPrefix,
2178
+ tl as Form,
2179
+ ll as FormItem,
2180
+ Zt as Fullscreen,
2181
+ zs as Header,
2182
+ Us as HeaderExits,
2168
2183
  et as Helper,
2169
- Tl as ICONS_LIB,
2170
- Ys as Icon,
2171
- dt as Icontool,
2172
- wt as Input,
2173
- pl as InputIcon,
2174
- vl as InputNumber,
2175
- fl as InputPassword,
2176
- al as LayoutIcon,
2184
+ Cl as ICONS_LIB,
2185
+ Vs as Icon,
2186
+ ut as Icontool,
2187
+ kt as Input,
2188
+ dl as InputIcon,
2189
+ fl as InputNumber,
2190
+ pl as InputPassword,
2191
+ el as LayoutIcon,
2177
2192
  ws as Loading,
2178
- Vs as Menu,
2193
+ Ys as Menu,
2179
2194
  Ws as MenuTabs,
2180
2195
  Ne as OPTIONS,
2181
2196
  ia as OptionCommProps,
2182
2197
  Ks as ProjectIcon,
2183
- ml as PropEditor,
2198
+ vl as PropEditor,
2184
2199
  j as ProviderKeys,
2185
- $t as Radio,
2186
- hl as RadioStatus,
2187
- gl as RangePicker,
2188
- rl as Search,
2200
+ Tt as Radio,
2201
+ ml as RadioStatus,
2202
+ hl as RangePicker,
2203
+ sl as Search,
2189
2204
  pe as SearchItem,
2190
- bl as Select,
2205
+ gl as Select,
2191
2206
  ra as Switch,
2192
- ol as Table,
2193
- ct as TableOperate,
2194
- xl as Textarea,
2195
- z as ToolIcon,
2196
- mt as Toolbar,
2207
+ rl as Table,
2208
+ it as TableOperate,
2209
+ bl as Textarea,
2210
+ U as ToolIcon,
2211
+ vt as Toolbar,
2197
2212
  Rs as Tooltip,
2198
- It as Transfer,
2199
- _l as TransferTable,
2200
- nl as Tree,
2201
- yl as TreeSelect,
2202
- xs as UploadList,
2203
- cs as UploadStatus,
2213
+ $t as Transfer,
2214
+ xl as TransferTable,
2215
+ ol as Tree,
2216
+ _l as TreeSelect,
2217
+ bs as UploadList,
2218
+ is as UploadStatus,
2204
2219
  Ss as appendExcelData,
2205
2220
  Cs as checkExcelDuplicates,
2206
- $l as checkIconsExpired,
2221
+ Tl as checkIconsExpired,
2207
2222
  pa as circleLoading,
2208
2223
  Xe as createFromIconfont,
2209
2224
  Ts as createMarkedExcelView,
2210
- Il as crumbs,
2211
- Gt as csvToExcelBlob,
2225
+ $l as crumbs,
2226
+ qt as csvToExcelBlob,
2212
2227
  Ke as csvToExcelView,
2213
2228
  $s as csvToNormalized,
2214
2229
  De as defaultTools,
2215
- Dl as doDelete,
2216
- El as doExecute,
2230
+ Il as doDelete,
2231
+ Dl as doExecute,
2217
2232
  Re as doQuery,
2218
- Pl as doSave,
2219
- _s as donwloadFromMinio,
2233
+ El as doSave,
2234
+ xs as donwloadFromMinio,
2220
2235
  We as downloadBlob,
2221
- Fl as eventBus,
2236
+ Pl as eventBus,
2222
2237
  Is as excelToExcelView,
2223
2238
  Ds as excelToNormalized,
2224
- Zt as exportResults,
2225
- Xt as exportSelectedRows,
2239
+ Xt as exportResults,
2240
+ Jt as exportSelectedRows,
2226
2241
  Fe as filterColumns,
2227
2242
  Q as formValidate,
2228
- us as getAppInfo,
2229
- Nl as getFormDetail,
2230
- ds as getHostInfo,
2231
- Ml as getIconTransform,
2232
- Rl as getRecordDetail,
2233
- Ol as getRuleTexts,
2243
+ cs as getAppInfo,
2244
+ Fl as getFormDetail,
2245
+ us as getHostInfo,
2246
+ Nl as getIconTransform,
2247
+ Ml as getRecordDetail,
2248
+ Rl as getRuleTexts,
2234
2249
  va as getSelectedLabels,
2235
- Al as getSelectedValues,
2236
- ps as getToken,
2250
+ Bl as getSelectedValues,
2251
+ ds as getToken,
2237
2252
  W as getToolByKey,
2238
2253
  _e as getToolGroup,
2239
2254
  K as getToolStatus,
2240
2255
  G as getToolVisible,
2241
- fs as getUserInfo,
2256
+ ps as getUserInfo,
2242
2257
  ke as gridQueryFind,
2243
2258
  sa as gridQueryList,
2244
- Bl as gridRowUpdate,
2259
+ Ol as gridRowUpdate,
2245
2260
  oa as gridStatusUpdate,
2246
- qt as initCacheCheck,
2247
- Qt as initDirective,
2248
- Ll as initMenu,
2249
- Ul as initPageFactory,
2261
+ Qt as initCacheCheck,
2262
+ Ht as initDirective,
2263
+ Al as initMenu,
2264
+ Ll as initPageFactory,
2250
2265
  zl as initValidate,
2251
2266
  Z as isEmpty,
2252
2267
  ua as loadOption,
2253
- Yl as mergeColumns,
2268
+ Ul as mergeColumns,
2254
2269
  Es as normalizedToExcelView,
2255
2270
  Ga as onColumnVisibleChanged,
2256
2271
  ea as onFormClose,
@@ -2261,40 +2276,40 @@ export {
2261
2276
  aa as onGridRowEdit,
2262
2277
  Vl as onGridRowExpand,
2263
2278
  fa as onOptionChanged,
2264
- Va as onReloadClick,
2265
- Y as onToolClicked,
2279
+ Ya as onReloadClick,
2280
+ V as onToolClicked,
2266
2281
  la as openNewForm,
2267
- Wl as outFormDataFields,
2268
- Kl as parseIcons,
2269
- vs as path,
2270
- jl as pendingNavigation,
2271
- Hl as pinia,
2272
- ys as previewFromMinio,
2273
- Jt as processCsvFile,
2282
+ Yl as outFormDataFields,
2283
+ Wl as parseIcons,
2284
+ fs as path,
2285
+ Kl as pendingNavigation,
2286
+ jl as pinia,
2287
+ _s as previewFromMinio,
2288
+ Gt as processCsvFile,
2274
2289
  Ps as processExcelFile,
2275
2290
  Me as queryTree,
2276
- Ql as resetRules,
2277
- ql as routes,
2278
- Gl as saveForm,
2279
- Jl as setFormData,
2280
- Xl as showBreadcrumb,
2291
+ Hl as resetRules,
2292
+ Ql as routes,
2293
+ ql as saveForm,
2294
+ Gl as setFormData,
2295
+ Jl as showBreadcrumb,
2281
2296
  Fs as toExcel,
2282
2297
  da as unloadOption,
2283
- Zl as useAppInfo,
2284
- es as useEditorFactory,
2298
+ Xl as useAppInfo,
2299
+ Zl as useEditorFactory,
2285
2300
  Pe as useFormItemFactory,
2286
- as as useGridFactory,
2287
- ts as useHostInfo,
2301
+ es as useGridFactory,
2302
+ as as useHostInfo,
2288
2303
  L as useInputFactory,
2289
2304
  ca as useOptionFactory,
2290
- ls as usePageFactory,
2291
- ss as usePageInfo,
2305
+ ts as usePageFactory,
2306
+ ls as usePageInfo,
2292
2307
  me as useSettingInfo,
2293
2308
  Ja as useToolFactory,
2294
- rs as useTreeFactory,
2309
+ ss as useTreeFactory,
2295
2310
  Je as useUserInfo,
2296
- ms as userLogin,
2297
- hs as userLogout,
2298
- os as validateData,
2311
+ vs as userLogin,
2312
+ ms as userLogout,
2313
+ rs as validateData,
2299
2314
  Ns as validateExcel
2300
2315
  };