@skyfox2000/webui 1.4.11 → 1.4.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/webui.es.js CHANGED
@@ -1,6 +1,6 @@
1
- import { u as Ee, i as Z, a as me, L as Xe, c as Ze, P as j, o as Pe, b as ea, d as aa, e as Fe, r as ce, f as ta, g as la, h as Ne, j as sa, k as ke, l as ra, _ as oa, m as na, O as Me, n as ia, q as Be, p as ca, s as ua, t as L, v as da, w as pa, x as fa, y as va, z as ma, A as ha, B as Y, C as ga, D as ba, E as xa, F as Re } from "./assets/modules/upload-template-BK8iQQYz.js";
2
- import { ab as Il, R as Dl, ad as El, S as Pl, W as Fl, aa as Nl, a8 as Ml, a9 as Bl, ac as Rl, Z as Ol, U as Al, a6 as Ll, a3 as zl, N as Ul, a5 as Vl, V as Yl, H as Kl, a0 as Wl, a4 as Hl, a7 as jl, Q as Ql, T as ql, ae as Gl, G as Jl, a2 as Xl, af as Zl, Y as es, $ as as, X as ts, ak as ls, aj as ss, ag as rs, I as os, J as ns, ah as is, M as cs, ai as us, K as ds, a1 as ps } from "./assets/modules/upload-template-BK8iQQYz.js";
3
- import { A as vs, U as ms, p as hs } from "./assets/modules/file-upload-T2kmeyGd.js";
1
+ import { u as Ee, i as Z, a as me, L as Xe, c as Ze, P as j, o as Pe, b as ea, d as aa, e as Fe, r as ce, f as ta, g as la, h as Ne, j as sa, k as ke, l as ra, _ as oa, m as na, O as Me, n as ia, q as Be, p as ca, s as ua, t as L, v as da, w as pa, x as fa, y as va, z as ma, A as ha, B as Y, C as ga, D as ba, E as xa, F as Re } from "./assets/modules/upload-template-CaeUt6VI.js";
2
+ import { ab as Il, R as Dl, ad as El, S as Pl, W as Fl, aa as Nl, a8 as Ml, a9 as Bl, ac as Rl, Z as Ol, U as Al, a6 as Ll, a3 as zl, N as Ul, a5 as Vl, V as Yl, H as Kl, a0 as Wl, a4 as Hl, a7 as jl, Q as Ql, T as ql, ae as Gl, G as Jl, a2 as Xl, af as Zl, Y as es, $ as as, X as ts, ak as ls, aj as ss, ag as rs, I as os, J as ns, ah as is, M as cs, ai as us, K as ds, a1 as ps } from "./assets/modules/upload-template-CaeUt6VI.js";
3
+ import { A as vs, U as ms, p as hs } from "./assets/modules/file-upload-CYNi1NsW.js";
4
4
  import { EnvConfig as we } from "@skyfox2000/microbase";
5
5
  import { FrontCache as re, httpPost as Oe, ResStatus as Ae, SERVER_HOST as _a, fieldMapping as oe } from "@skyfox2000/fapi";
6
6
  import he from "vue-m-message";
@@ -9,54 +9,54 @@ import "async-validator";
9
9
  import fe from "dayjs";
10
10
  import { Popover as Ta, theme as ze, Drawer as $a, Space as te, Form as Ue, message as Ia, FormItem as Ve, ConfigProvider as Ce, Popconfirm as Da, Button as Ye, DropdownButton as Ea, Menu as xe, MenuItem as _e, Dropdown as ve, Checkbox as Pa, Table as Ke, Tree as Fa, Cascader as Na, DatePicker as Ma, Input as ee, InputPassword as Ba, InputNumber as Ra, RangePicker as Oa, Textarea as Aa, TimePicker as La, Transfer as za, TreeSelect as Ua, LayoutContent as Va } from "ant-design-vue";
11
11
  import { VueDraggableNext as Ya } from "vue-draggable-next";
12
- import { d as We } from "./assets/modules/uploadList-B8p45yS2.js";
13
- import { C as bs, U as xs, a as _s, p as ys } from "./assets/modules/uploadList-B8p45yS2.js";
14
- import { c as He } from "./assets/modules/index-DkMjvF98.js";
15
- import { _ as ws, h as Ss, b as Cs, a as Ts, d as $s, e as Is, g as Ds, f as Es, n as Ps, p as Fs, t as Ns, v as Ms } from "./assets/modules/index-DkMjvF98.js";
16
- import { _ as A } from "./assets/modules/index-C6BAsERS.js";
17
- import { _ as U } from "./assets/modules/toolIcon-DDp0EFRE.js";
18
- import { a as Rs } from "./assets/modules/toolIcon-DDp0EFRE.js";
19
- import { _ as As, b as Ls, c as zs, d as Us, e as Vs, I as Ys, f as Ks, g as Ws, a as Hs } from "./assets/modules/menuTabs-D99nhxm_.js";
20
- import { _ as Qs } from "./assets/modules/index-Cwr2EDEI.js";
12
+ import { d as We } from "./assets/modules/uploadList-D0jw6jNr.js";
13
+ import { C as bs, U as xs, a as _s, p as ys } from "./assets/modules/uploadList-D0jw6jNr.js";
14
+ import { c as He } from "./assets/modules/index-Cj6QnoC7.js";
15
+ import { _ as ws, h as Ss, b as Cs, a as Ts, d as $s, e as Is, g as Ds, f as Es, n as Ps, p as Fs, t as Ns, v as Ms } from "./assets/modules/index-Cj6QnoC7.js";
16
+ import { _ as A } from "./assets/modules/index-BOOirPG2.js";
17
+ import { _ as U } from "./assets/modules/toolIcon-DXQt60Ya.js";
18
+ import { a as Rs } from "./assets/modules/toolIcon-DXQt60Ya.js";
19
+ import { _ as As, b as Ls, c as zs, d as Us, e as Vs, I as Ys, f as Ks, g as Ws, a as Hs } from "./assets/modules/menuTabs-DDGkYuvg.js";
20
+ import { _ as Qs } from "./assets/modules/index-DWnhNqJu.js";
21
21
  import { _ as q } from "./assets/modules/_plugin-vue_export-helper-CHgC5LLL.js";
22
- const Te = (s, a, e, t = "remove") => {
22
+ const Te = (s, t, e, a = "remove") => {
23
23
  if (!e)
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");
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");
27
27
  } else {
28
28
  const n = document.createComment("No Permission"), i = s.parentNode;
29
29
  if (i) {
30
- const c = a.component;
31
- c ? c.props.style = { display: "none" } : i.replaceChild(n, s);
30
+ const u = t.component;
31
+ u ? u.props.style = { display: "none" } : i.replaceChild(n, s);
32
32
  }
33
33
  }
34
34
  }, $e = (s) => {
35
- var c, p;
36
- const a = Ee(), { url: e, role: t, permit: n } = s;
37
- if (Z(t) && Z(n))
35
+ var u, p;
36
+ const t = Ee(), { url: e, role: a, permit: n } = s;
37
+ if (Z(a) && Z(n))
38
38
  return !0;
39
- const i = e ?? ((p = (c = window.location.hash) == null ? void 0 : c.split("#")) == null ? void 0 : p[1]) ?? window.location.pathname;
39
+ const i = e ?? ((p = (u = window.location.hash) == null ? void 0 : u.split("#")) == null ? void 0 : p[1]) ?? window.location.pathname;
40
40
  if (we.VITE_PERMISSION_MODE === "role")
41
- return Z(t) ? !0 : a.hasRole(t);
41
+ return Z(a) ? !0 : t.hasRole(a);
42
42
  if (we.VITE_PERMISSION_MODE === "permit") {
43
43
  let d = !1, o = !1;
44
- return Z(t) || (d = a.hasRole(t)), a.isAdmin() ? d : (Z(n) || (o = a.hasPermit(i, n)), d || o);
44
+ return Z(a) || (d = t.hasRole(a)), t.isAdmin() ? d : (Z(n) || (o = t.hasPermit(i, n)), d || o);
45
45
  }
46
46
  return !1;
47
47
  }, Ka = {
48
- mounted(s, a, e) {
49
- const t = a.value || {}, n = a.arg || "remove", i = t.behavior || n, c = $e(t);
50
- Te(s, e, c, i);
48
+ mounted(s, t, e) {
49
+ const a = t.value || {}, n = t.arg || "remove", i = a.behavior || n, u = $e(a);
50
+ Te(s, e, u, i);
51
51
  },
52
- updated(s, a, e) {
53
- const t = a.value || {}, n = a.arg || "remove", i = t.behavior || n, c = $e(t);
54
- Te(s, e, c, i);
52
+ updated(s, t, e) {
53
+ const a = t.value || {}, n = t.arg || "remove", i = a.behavior || n, u = $e(a);
54
+ Te(s, e, u, i);
55
55
  }
56
56
  }, Wa = {
57
- mounted: (s, a) => {
57
+ mounted: (s, t) => {
58
58
  s.addEventListener("keydown", (e) => {
59
- e.key === "Enter" && a.value();
59
+ e.key === "Enter" && t.value();
60
60
  });
61
61
  },
62
62
  unmounted: (s) => {
@@ -66,21 +66,21 @@ const Te = (s, a, e, t = "remove") => {
66
66
  }, de = {
67
67
  auth: Ka,
68
68
  submit: Wa
69
- }, Gt = (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);
69
+ }, Gt = (s, t) => ((t || Object.keys(de)).forEach((a) => {
70
+ a in de && s.directive(a, de[a]);
71
+ }), s), W = (s, t) => {
72
+ const e = s.find((a) => a.key === t);
73
73
  if (e)
74
74
  return e;
75
- for (const t of s)
76
- if (t.children) {
77
- const n = W(t.children, a);
75
+ for (const a of s)
76
+ if (a.children) {
77
+ const n = W(a.children, t);
78
78
  if (n)
79
79
  return n;
80
80
  }
81
- }, ye = (s, a, e) => {
82
- const t = [], n = [];
83
- return e || (e = [...s]), e.length && e.forEach((i, c) => {
81
+ }, ye = (s, t, e) => {
82
+ const a = [], n = [];
83
+ return e || (e = [...s]), e.length && e.forEach((i, u) => {
84
84
  let p;
85
85
  if (typeof i == "string") {
86
86
  const d = W(s, i);
@@ -93,41 +93,41 @@ const Te = (s, a, e, t = "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
- }), a === 0 || c < a ? t.push(p) : n.push(p);
97
- }), { buttons: t, menus: n };
98
- }, H = (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, Ha = (s, a) => {
99
- a.reload.value = !0;
100
- }, ja = (s, a) => {
101
- a.searchBar.value = !a.searchBar.value;
102
- }, Qa = (s, a) => {
103
- switch (a.tableSize.value) {
96
+ }), t === 0 || u < t ? a.push(p) : n.push(p);
97
+ }), { buttons: a, menus: n };
98
+ }, H = (s, t) => s.disabled && typeof s.disabled == "function" ? s.disabled(t) : s.disabled, G = (s, t) => s.visible && typeof s.visible == "function" ? s.visible(t) : s.visible ?? !0, Ha = (s, t) => {
99
+ t.reload.value = !0;
100
+ }, ja = (s, t) => {
101
+ t.searchBar.value = !t.searchBar.value;
102
+ }, Qa = (s, t) => {
103
+ switch (t.tableSize.value) {
104
104
  case "large":
105
- a.tableSize.value = "middle";
105
+ t.tableSize.value = "middle";
106
106
  break;
107
107
  case "middle":
108
- a.tableSize.value = "small";
108
+ t.tableSize.value = "small";
109
109
  break;
110
110
  case "small":
111
- a.tableSize.value = "large";
111
+ t.tableSize.value = "large";
112
112
  break;
113
113
  }
114
- }, qa = (s, a) => {
115
- a.selectable.value = !a.selectable.value, a.selectable.value || (a.selectKeys.value = [], a.selectRows.value = []);
116
- }, Ga = (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)), Xa(s);
122
- }, Ja = (s, a) => {
123
- a.selectable.value = !a.selectable.value;
114
+ }, qa = (s, t) => {
115
+ t.selectable.value = !t.selectable.value, t.selectable.value || (t.selectKeys.value = [], t.selectRows.value = []);
116
+ }, Ga = (s, t) => {
117
+ t.rowExpand.value = !t.rowExpand.value;
118
+ }, Ie = (s, t) => {
119
+ t.selectable.value = !t.selectable.value;
120
+ }, V = (s, t, e, a, n) => {
121
+ (!s.confirm || n) && s.click && (t ? s.click(t, e, a) : s.click(null, e, a)), Xa(s);
122
+ }, Ja = (s, t) => {
123
+ t.selectable.value = !t.selectable.value;
124
124
  }, je = () => {
125
125
  const s = me();
126
126
  s.setFullscreen(!s.fullscreen);
127
- }, Xa = (s, a) => {
127
+ }, Xa = (s, t) => {
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
- }, Za = (s, a) => {
130
- a ? delete s.visible : s.visible = !1;
129
+ }, Za = (s, t) => {
130
+ t ? delete s.visible : s.visible = !1;
131
131
  }, De = [
132
132
  {
133
133
  key: "Reload",
@@ -214,8 +214,8 @@ const Te = (s, a, e, t = "remove") => {
214
214
  }
215
215
  ], et = (s) => {
216
216
  if (!s.tools || s.tools.length > 0) {
217
- const a = [];
218
- return s.tools ? a.push(...s.tools) : a.push(...De), { tools: ye(De, 0, a).buttons };
217
+ const t = [];
218
+ return s.tools ? t.push(...s.tools) : t.push(...De), { tools: ye(De, 0, t).buttons };
219
219
  }
220
220
  return {
221
221
  tools: []
@@ -226,55 +226,55 @@ class Qe {
226
226
  /**
227
227
  * 设置缓存数据(带服务器时间)
228
228
  */
229
- static setWithServerTime(a, e, t) {
229
+ static setWithServerTime(t, e, a) {
230
230
  const n = {
231
231
  data: e,
232
- lastTime: t
232
+ lastTime: a
233
233
  };
234
- re.set({ key: a, storage: "local" }, n);
234
+ re.set({ key: t, storage: "local" }, n);
235
235
  }
236
236
  /**
237
237
  * 设置缓存数据
238
238
  */
239
- static setData(a, e) {
240
- re.set({ key: a, storage: "local" }, e);
239
+ static setData(t, e) {
240
+ re.set({ key: t, storage: "local" }, e);
241
241
  }
242
242
  /**
243
243
  * 获取缓存数据
244
244
  */
245
- static getData(a) {
246
- const e = re.get({ key: a, storage: "local" });
245
+ static getData(t) {
246
+ const e = re.get({ key: t, storage: "local" });
247
247
  return e && Qe.isTimedData(e) ? e.data : e ?? null;
248
248
  }
249
249
  /**
250
250
  * 清除缓存
251
251
  */
252
- static remove(a) {
253
- re.remove({ key: a, storage: "local" });
252
+ static remove(t) {
253
+ re.remove({ key: t, storage: "local" });
254
254
  }
255
255
  /**
256
256
  * 清理指定前缀的缓存 (基于 localStorage 实现,因为 FrontCache 未提供此方法)
257
257
  */
258
- static clearByPrefix(a) {
258
+ static clearByPrefix(t) {
259
259
  for (let e = 0; e < localStorage.length; e++) {
260
- const t = localStorage.key(e);
261
- t && t.startsWith("frontCache::" + a) && localStorage.removeItem(t);
260
+ const a = localStorage.key(e);
261
+ a && a.startsWith("frontCache::" + t) && localStorage.removeItem(a);
262
262
  }
263
263
  }
264
264
  /**
265
265
  * 清理所有缓存
266
266
  */
267
267
  static clearAll() {
268
- for (let a = localStorage.length - 1; a >= 0; a--) {
269
- const e = localStorage.key(a);
268
+ for (let t = localStorage.length - 1; t >= 0; t--) {
269
+ const e = localStorage.key(t);
270
270
  e && e.startsWith("frontCache::") && localStorage.removeItem(e);
271
271
  }
272
272
  }
273
273
  /**
274
274
  * 判断是否是带时间戳的数据
275
275
  */
276
- static isTimedData(a) {
277
- return a && typeof a == "object" && "data" in a && "lastTime" in a && typeof a.lastTime == "number";
276
+ static isTimedData(t) {
277
+ return t && typeof t == "object" && "data" in t && "lastTime" in t && typeof t.lastTime == "number";
278
278
  }
279
279
  }
280
280
  async function Jt() {
@@ -288,17 +288,17 @@ async function Jt() {
288
288
  {}
289
289
  );
290
290
  if ((s == null ? void 0 : s.status) === Ae.SUCCESS) {
291
- const a = s.data;
292
- Object.keys(a).forEach((e) => {
293
- const t = a[e];
291
+ const t = s.data;
292
+ Object.keys(t).forEach((e) => {
293
+ const a = t[e];
294
294
  ["local", "session"].forEach((i) => {
295
- const c = i === "local" ? localStorage : sessionStorage;
296
- for (let p = 0; p < c.length; p++) {
297
- const d = c.key(p);
295
+ const u = i === "local" ? localStorage : sessionStorage;
296
+ for (let p = 0; p < u.length; p++) {
297
+ const d = u.key(p);
298
298
  if (d && d.endsWith(e))
299
299
  try {
300
- const o = JSON.parse(c.getItem(d));
301
- o && typeof o == "object" && "lastTime" in o && typeof o.lastTime == "number" && o.lastTime !== t && c.removeItem(d);
300
+ const o = JSON.parse(u.getItem(d));
301
+ o && typeof o == "object" && "lastTime" in o && typeof o.lastTime == "number" && o.lastTime !== a && u.removeItem(d);
302
302
  } catch {
303
303
  continue;
304
304
  }
@@ -310,8 +310,8 @@ async function Jt() {
310
310
  console.error("检查缓存更新失败", s);
311
311
  }
312
312
  }
313
- const Xt = async (s, a) => {
314
- const e = await He(s, a);
313
+ const Xt = async (s, t) => {
314
+ const e = await He(s, t);
315
315
  if (e.success)
316
316
  return {
317
317
  blobUrl: e.blobUrl,
@@ -320,15 +320,15 @@ const Xt = async (s, a) => {
320
320
  // 不再返回blob对象,使用URL即可
321
321
  };
322
322
  throw new Error(e.error || "CSV转Excel失败");
323
- }, Zt = async (s, a) => {
323
+ }, Zt = async (s, t) => {
324
324
  try {
325
- const t = new TextDecoder("utf-8").decode(s), n = await He(t, a);
325
+ const a = new TextDecoder("utf-8").decode(s), n = await He(a, t);
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: t
331
+ csvContent: a
332
332
  // 保留原始CSV内容
333
333
  };
334
334
  } catch (e) {
@@ -337,43 +337,43 @@ const Xt = async (s, a) => {
337
337
  error: e instanceof Error ? e.message : "未知错误"
338
338
  };
339
339
  }
340
- }, el = async (s, a, e) => {
340
+ }, el = async (s, t, e) => {
341
341
  try {
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) => ({
342
+ const n = (await import("@json2csv/plainjs")).Parser, i = qe(s), u = t.filter((v) => v.visible !== !1 && v.export !== !1), p = u.map((v) => ({
343
343
  label: v.title,
344
344
  value: v.dataIndex || v.key || ""
345
345
  })), d = e.map((v) => {
346
- const u = { ...v };
347
- return c.forEach((h) => {
346
+ const c = { ...v };
347
+ return u.forEach((h) => {
348
348
  const y = h.dataIndex || h.key;
349
- y && h.customRender && (u[y] = h.customRender(v[y], v));
350
- }), u;
349
+ y && h.customRender && (c[y] = h.customRender(v[y], v));
350
+ }), c;
351
351
  }), f = new n({ fields: p }).parse(d), r = new Blob([`\uFEFF${f}`], { type: "text/csv" });
352
352
  We(r, i);
353
- } catch (t) {
354
- console.error("导出失败:", t), he.error("文件导出失败,请稍后重试");
353
+ } catch (a) {
354
+ console.error("导出失败:", a), he.error("文件导出失败,请稍后重试");
355
355
  }
356
356
  }, qe = (s) => {
357
- const a = /\{([^}]+)\}/g;
358
- return s.replace(a, (e, t) => fe().format(t));
359
- }, al = async (s, a, e, t) => {
357
+ const t = /\{([^}]+)\}/g;
358
+ return s.replace(t, (e, a) => fe().format(a));
359
+ }, al = async (s, t, e, a) => {
360
360
  try {
361
- const i = (await import("@json2csv/plainjs")).Parser, c = qe(s), p = a.filter((r) => r.visible !== !1), d = p.map((r) => ({
361
+ const i = (await import("@json2csv/plainjs")).Parser, u = qe(s), p = t.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 t.api || (t.api = o.api), t.authorize === void 0 && (t.authorize = o.authorize), e.isGridLoading.value = !0, Oe(t, f).then((r) => {
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
367
  if (e.isGridLoading.value = !1, (r == null ? void 0 : r.status) === Ae.SUCCESS) {
368
368
  if (r.data) {
369
- const u = r.data.map((O) => {
369
+ const c = r.data.map((O) => {
370
370
  const _ = { ...O };
371
371
  return p.forEach((E) => {
372
372
  const B = E.dataIndex || E.key;
373
373
  B && E.customRender && (_[B] = E.customRender(O[B], O));
374
374
  }), _;
375
- }), y = new i({ fields: d }).parse(u), D = new Blob([`\uFEFF${y}`], { type: "text/csv" });
376
- We(D, c);
375
+ }), y = new i({ fields: d }).parse(c), D = new Blob([`\uFEFF${y}`], { type: "text/csv" });
376
+ We(D, u);
377
377
  }
378
378
  } else if ((r == null ? void 0 : r.errno) == Xe) {
379
379
  Ee().logout(!1);
@@ -386,10 +386,10 @@ const Xt = async (s, a) => {
386
386
  }, tl = /* @__PURE__ */ C({
387
387
  __name: "fullscreen",
388
388
  setup(s) {
389
- const a = me();
390
- return (e, t) => (m(), b(U, {
389
+ const t = me();
390
+ return (e, a) => (m(), b(U, {
391
391
  onClick: ae(l(je), ["stop"]),
392
- icon: l(a).fullscreen ? "icon-exitscreen" : "icon-fullscreen",
392
+ icon: l(t).fullscreen ? "icon-exitscreen" : "icon-fullscreen",
393
393
  class: "w-[17px] h-[17px]"
394
394
  }, null, 8, ["onClick", "icon"]));
395
395
  }
@@ -403,8 +403,8 @@ const Xt = async (s, a) => {
403
403
  placement: {}
404
404
  },
405
405
  setup(s) {
406
- const a = X();
407
- return (e, t) => (m(), b(l(Ta), {
406
+ const t = X();
407
+ return (e, a) => (m(), b(l(Ta), {
408
408
  placement: e.placement ?? "topRight"
409
409
  }, {
410
410
  content: g(() => [
@@ -419,7 +419,7 @@ const Xt = async (s, a) => {
419
419
  w(U, N({
420
420
  icon: "icon-question-circle",
421
421
  class: ["text-[#888]", [e.size ? "w-" + e.size + " h-" + e.size : "w-5 h-5"]]
422
- }, l(a)), null, 16, ["class"])
422
+ }, l(t)), null, 16, ["class"])
423
423
  ])
424
424
  ]),
425
425
  _: 3
@@ -436,13 +436,13 @@ const Xt = async (s, a) => {
436
436
  }
437
437
  },
438
438
  setup(s) {
439
- const a = s, t = Ze({
439
+ const t = s, a = Ze({
440
440
  iconUrl: `${_a.MICROLAYOUT_ICONS}`,
441
441
  monoColor: !0,
442
- icon: a.icon,
443
- icons: a.icons
442
+ icon: t.icon,
443
+ icons: t.icons
444
444
  });
445
- return (n, i) => s.icon || s.icons ? (m(), b(l(t), N({
445
+ return (n, i) => s.icon || s.icons ? (m(), b(l(a), N({
446
446
  key: 0,
447
447
  icon: s.icon,
448
448
  icons: s.icons,
@@ -460,16 +460,16 @@ const Xt = async (s, a) => {
460
460
  drawerSaveAs: { type: Function }
461
461
  },
462
462
  setup(s) {
463
- const { useToken: a } = ze, { token: e } = a(), t = x(!1), n = s, i = n.editorCtrl;
463
+ const { useToken: t } = ze, { token: e } = t(), a = x(!1), n = s, i = n.editorCtrl;
464
464
  ge(j.EditorControl, i), T(
465
465
  () => i.visible.value,
466
466
  (o) => {
467
- t.value = o ?? !1;
467
+ a.value = o ?? !1;
468
468
  }
469
469
  ), K(() => {
470
- t.value = i.visible.value ?? !1;
470
+ a.value = i.visible.value ?? !1;
471
471
  });
472
- const c = () => {
472
+ const u = () => {
473
473
  n.drawerSave ? n.drawerSave() : i && Pe(i);
474
474
  }, p = () => {
475
475
  n.drawerSaveAs ? n.drawerSaveAs() : i && ea(i);
@@ -477,8 +477,8 @@ const Xt = async (s, a) => {
477
477
  aa(i);
478
478
  };
479
479
  return (o, f) => (m(), b(l($a), {
480
- open: t.value,
481
- "onUpdate:open": f[0] || (f[0] = (r) => t.value = r),
480
+ open: a.value,
481
+ "onUpdate:open": f[0] || (f[0] = (r) => a.value = r),
482
482
  "get-container": !1,
483
483
  closable: !1,
484
484
  "header-style": {
@@ -544,7 +544,7 @@ const Xt = async (s, a) => {
544
544
  }, 8, ["loading"])) : k("", !0),
545
545
  o.saveText !== "" && l(i).saveBtnVisible !== !1 ? (m(), b(l(A), {
546
546
  key: 2,
547
- onClick: c,
547
+ onClick: u,
548
548
  type: "primary",
549
549
  loading: l(i).isFormSaving.value
550
550
  }, {
@@ -569,13 +569,13 @@ const Xt = async (s, a) => {
569
569
  editorCtrl: {}
570
570
  },
571
571
  setup(s) {
572
- const a = s, e = a.editorCtrl ?? ne(j.EditorControl, void 0);
573
- return ge(j.LabelWidth, a.labelWidth), (t, n) => {
572
+ const t = s, e = t.editorCtrl ?? ne(j.EditorControl, void 0);
573
+ return ge(j.LabelWidth, t.labelWidth), (a, n) => {
574
574
  const i = le("submit");
575
575
  return Q((m(), b(l(Ue), {
576
- "label-col": { flex: a.labelWidth ?? "85px" },
576
+ "label-col": { flex: t.labelWidth ?? "85px" },
577
577
  "wrapper-col": {
578
- flex: a.wrapperWidth ?? "1 0 280px"
578
+ flex: t.wrapperWidth ?? "1 0 280px"
579
579
  },
580
580
  style: {
581
581
  display: "flex",
@@ -583,7 +583,7 @@ const Xt = async (s, a) => {
583
583
  }
584
584
  }, {
585
585
  default: g(() => [
586
- I(t.$slots, "default")
586
+ I(a.$slots, "default")
587
587
  ]),
588
588
  _: 3
589
589
  }, 8, ["label-col", "wrapper-col"])), [
@@ -611,9 +611,9 @@ const Xt = async (s, a) => {
611
611
  bottomMargin: {}
612
612
  },
613
613
  setup(s) {
614
- const a = s, e = X(), t = ne(j.EditorControl, void 0), n = ne(j.LabelWidth, "85px") ?? "85px", i = Fe(a, t), c = x(!1);
614
+ const t = s, e = X(), a = ne(j.EditorControl, void 0), n = ne(j.LabelWidth, "85px") ?? "85px", i = Fe(t, a), u = x(!1);
615
615
  setTimeout(() => {
616
- c.value = !0;
616
+ u.value = !0;
617
617
  }, 30);
618
618
  const p = (o, f) => {
619
619
  if (!f)
@@ -625,15 +625,15 @@ const Xt = async (s, a) => {
625
625
  return p(v, f[r].fields);
626
626
  }, d = J(() => {
627
627
  var f;
628
- if (!a.rule)
628
+ if (!t.rule)
629
629
  return !1;
630
- const o = p(a.rule.split("."), (f = t == null ? void 0 : t.formRules) == null ? void 0 : f.value);
631
- return o ? (o.required || (i.value.errClass = "", i.value.msg = ""), o.required ?? !0) : (Ia.error(`"${a.label}" 的验证规则 \`${a.rule}\` 不存在`), i.value.errClass = "text-[#ff4d4f]", i.value.msg = `规则 \`${a.rule}\` 不存在,请检查代码!`, !0);
630
+ const o = p(t.rule.split("."), (f = a == null ? void 0 : a.formRules) == null ? void 0 : f.value);
631
+ return o ? (o.required || (i.value.errClass = "", i.value.msg = ""), o.required ?? !0) : (Ia.error(`"${t.label}" 的验证规则 \`${t.rule}\` 不存在`), i.value.errClass = "text-[#ff4d4f]", i.value.msg = `规则 \`${t.rule}\` 不存在,请检查代码!`, !0);
632
632
  });
633
633
  return (o, f) => (m(), S("div", {
634
634
  class: P(["relative", o.bottomMargin ? o.bottomMargin : "mb-1"])
635
635
  }, [
636
- c.value ? (m(), b(l(Ve), N({
636
+ u.value ? (m(), b(l(Ve), N({
637
637
  key: 0,
638
638
  required: d.value,
639
639
  class: ["relative", [o.nextLine ? "mb-0" : o.rule ? "" : "mb-3"]]
@@ -687,8 +687,8 @@ const Xt = async (s, a) => {
687
687
  rule: {}
688
688
  },
689
689
  setup(s) {
690
- const a = s, e = X(), t = ne(j.EditorControl, void 0), n = Fe(a, t);
691
- return (i, c) => (m(), S("div", nt, [
690
+ const t = s, e = X(), a = ne(j.EditorControl, void 0), n = Fe(t, a);
691
+ return (i, u) => (m(), S("div", nt, [
692
692
  w(l(Ve), N({
693
693
  required: i.rule !== void 0,
694
694
  class: "w-[90%] relative"
@@ -726,14 +726,14 @@ const Xt = async (s, a) => {
726
726
  likeFields: {}
727
727
  },
728
728
  emits: ["update:search", "reset"],
729
- setup(s, { emit: a }) {
730
- const e = s, t = a, n = x(0), i = x(0), c = x(0), p = (u) => {
729
+ setup(s, { emit: t }) {
730
+ const e = s, a = t, n = x(0), i = x(0), u = x(0), p = (c) => {
731
731
  let h = 0;
732
- for (let y = 0; y < u.length; y++)
733
- typeof u[y].type == "object" && h++;
732
+ for (let y = 0; y < c.length; y++)
733
+ typeof c[y].type == "object" && h++;
734
734
  return h;
735
735
  }, d = ya(), o = () => {
736
- 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;
736
+ i.value = 0, u.value = 0, d.default && (i.value = p(d.default({}))), e.gridCtrl.searchBar && d.control && (u.value = p(d.control({}))), n.value = 2 - (i.value + u.value) % 3;
737
737
  };
738
738
  T(
739
739
  () => e.gridCtrl.searchBar,
@@ -745,37 +745,37 @@ const Xt = async (s, a) => {
745
745
  K(() => {
746
746
  var h;
747
747
  o();
748
- let u = { ...e.search };
748
+ let c = { ...e.search };
749
749
  e.gridCtrl.gridQuery = {
750
750
  ...e.gridCtrl.gridQuery,
751
751
  Query: {
752
752
  ...(h = e.gridCtrl.gridQuery) == null ? void 0 : h.Query,
753
- ...u
753
+ ...c
754
754
  }
755
755
  };
756
756
  });
757
757
  const r = () => {
758
758
  var h;
759
- let u = { ...e.search };
759
+ let c = { ...e.search };
760
760
  if (e.likeFields)
761
761
  for (const y of e.likeFields)
762
- u[y] && (u[y] = { $like: "%" + u[y] + "%" });
762
+ c[y] && (c[y] = { $like: "%" + c[y] + "%" });
763
763
  e.gridCtrl.gridQuery = {
764
764
  ...e.gridCtrl.gridQuery,
765
765
  Query: {
766
766
  ...(h = e.gridCtrl.gridQuery) == null ? void 0 : h.Query,
767
- ...u
767
+ ...c
768
768
  }
769
769
  }, e.gridCtrl.pageNo.value = 1, e.gridCtrl.reload.value = !0;
770
770
  }, v = () => {
771
- const u = JSON.parse(JSON.stringify(f));
771
+ const c = JSON.parse(JSON.stringify(f));
772
772
  for (const h in e.search)
773
- u[h] === void 0 && (u[h] = void 0);
774
- t("update:search", u), t("reset");
773
+ c[h] === void 0 && (c[h] = void 0);
774
+ a("update:search", c), a("reset");
775
775
  };
776
- return (u, h) => {
776
+ return (c, h) => {
777
777
  const y = le("submit");
778
- return i.value + c.value > 0 ? Q((m(), b(l(Ue), {
778
+ return i.value + u.value > 0 ? Q((m(), b(l(Ue), {
779
779
  key: 0,
780
780
  "label-col": { flex: "60px" },
781
781
  style: {
@@ -785,8 +785,8 @@ const Xt = async (s, a) => {
785
785
  class: "flex mb-[10px]"
786
786
  }, {
787
787
  default: g(() => [
788
- I(u.$slots, "default"),
789
- u.gridCtrl.searchBar ? I(u.$slots, "control", { key: 0 }) : k("", !0),
788
+ I(c.$slots, "default"),
789
+ c.gridCtrl.searchBar ? I(c.$slots, "control", { key: 0 }) : k("", !0),
790
790
  n.value >= 1 ? (m(), b(pe, {
791
791
  key: 1,
792
792
  class: "w-1/3"
@@ -795,7 +795,7 @@ const Xt = async (s, a) => {
795
795
  key: 2,
796
796
  class: "w-1/3"
797
797
  })) : k("", !0),
798
- i.value || u.gridCtrl.searchBar ? (m(), b(pe, {
798
+ i.value || c.gridCtrl.searchBar ? (m(), b(pe, {
799
799
  key: 3,
800
800
  class: "w-1/3 flex justify-end text-right pr-5",
801
801
  "wrapper-col": { flex: "auto" }
@@ -844,7 +844,7 @@ const Xt = async (s, a) => {
844
844
  gridCtrl: {}
845
845
  },
846
846
  setup(s) {
847
- const a = s, e = a.gridCtrl, t = J(() => ce.currentRoute.value.path), n = [
847
+ const t = s, e = t.gridCtrl, a = J(() => ce.currentRoute.value.path), n = [
848
848
  {
849
849
  key: "Edit",
850
850
  label: "编辑",
@@ -852,7 +852,7 @@ const Xt = async (s, a) => {
852
852
  visible: !0,
853
853
  role: ["Super", "Admin"],
854
854
  permit: ":edit",
855
- click: () => ta(e, a.record)
855
+ click: () => ta(e, t.record)
856
856
  },
857
857
  {
858
858
  key: "Delete",
@@ -864,19 +864,19 @@ const Xt = async (s, a) => {
864
864
  permit: ":delete",
865
865
  confirm: !0,
866
866
  confirmText: "是否删除此记录?",
867
- click: () => la(e, a.record)
867
+ click: () => la(e, t.record)
868
868
  }
869
- ], { buttons: i, menus: c } = ye(n, 0, e.operates), p = (d) => {
869
+ ], { buttons: i, menus: u } = ye(n, 0, e.operates), p = (d) => {
870
870
  if (typeof d.disabled == "boolean")
871
871
  return d.disabled;
872
872
  if (typeof d.disabled == "function")
873
- return H(d, a.record) ?? !1;
874
- if (a.record.hasOwnProperty("Enabled"))
873
+ return H(d, t.record) ?? !1;
874
+ if (t.record.hasOwnProperty("Enabled"))
875
875
  switch (d.key) {
876
876
  case "Edit":
877
- return !a.record.Enabled;
877
+ return !t.record.Enabled;
878
878
  case "Delete":
879
- return !!a.record.Enabled;
879
+ return !!t.record.Enabled;
880
880
  }
881
881
  return !1;
882
882
  };
@@ -893,7 +893,7 @@ const Xt = async (s, a) => {
893
893
  (m(!0), S(R, null, z(l(i), (r) => (m(), S(R, {
894
894
  key: r.key
895
895
  }, [
896
- l(G)(r, a.record) ? (m(), b(l(Da), {
896
+ l(G)(r, t.record) ? (m(), b(l(Da), {
897
897
  key: 0,
898
898
  disabled: p(r) || !r.confirm,
899
899
  cancelText: "否",
@@ -901,15 +901,15 @@ const Xt = async (s, a) => {
901
901
  title: r.confirmText,
902
902
  okButtonProps: { size: "small" },
903
903
  cancelButtonProps: { size: "small" },
904
- onConfirm: (v) => l(V)(r, l(e).page, l(e), a.record, !0)
904
+ onConfirm: (v) => l(V)(r, l(e).page, l(e), t.record, !0)
905
905
  }, {
906
906
  default: g(() => [
907
- l(G)(r, a.record) ? Q((m(), b(l(Ye), {
907
+ l(G)(r, t.record) ? Q((m(), b(l(Ye), {
908
908
  key: r.key,
909
909
  type: r.type ?? "text",
910
910
  danger: r.danger,
911
911
  disabled: p(r),
912
- onClick: (v) => l(V)(r, l(e).page, l(e), a.record),
912
+ onClick: (v) => l(V)(r, l(e).page, l(e), t.record),
913
913
  size: "small",
914
914
  style: be({
915
915
  padding: r.type ?? "0px 4px"
@@ -920,7 +920,7 @@ const Xt = async (s, a) => {
920
920
  ]),
921
921
  _: 2
922
922
  }, 1032, ["type", "danger", "disabled", "onClick", "style"])), [
923
- [f, { url: t.value, role: r.role, permit: r.permit }]
923
+ [f, { url: a.value, role: r.role, permit: r.permit }]
924
924
  ]) : k("", !0)
925
925
  ]),
926
926
  _: 2
@@ -931,27 +931,27 @@ const Xt = async (s, a) => {
931
931
  autoInsertSpaceInButton: !1
932
932
  }, {
933
933
  default: g(() => [
934
- l(c).length > 0 ? (m(), b(l(Ea), {
934
+ l(u).length > 0 ? (m(), b(l(Ea), {
935
935
  key: 0,
936
936
  size: "small"
937
937
  }, {
938
938
  overlay: g(() => [
939
939
  w(l(xe), null, {
940
940
  default: g(() => [
941
- (m(!0), S(R, null, z(l(c), (r) => (m(), S(R, {
941
+ (m(!0), S(R, null, z(l(u), (r) => (m(), S(R, {
942
942
  key: r.key
943
943
  }, [
944
- l(G)(r, a.record) ? Q((m(), b(l(_e), {
944
+ l(G)(r, t.record) ? Q((m(), b(l(_e), {
945
945
  key: 0,
946
946
  disabled: p(r),
947
- onClick: (v) => l(V)(r, l(e).page, l(e), a.record)
947
+ onClick: (v) => l(V)(r, l(e).page, l(e), t.record)
948
948
  }, {
949
949
  default: g(() => [
950
950
  M(F(r.label), 1)
951
951
  ]),
952
952
  _: 2
953
953
  }, 1032, ["disabled", "onClick"])), [
954
- [f, { url: t.value, role: r.role, permit: r.permit }]
954
+ [f, { url: a.value, role: r.role, permit: r.permit }]
955
955
  ]) : k("", !0)
956
956
  ], 64))), 128))
957
957
  ]),
@@ -981,11 +981,11 @@ const Xt = async (s, a) => {
981
981
  gridCtrl: {}
982
982
  },
983
983
  setup(s) {
984
- const a = s, e = a.gridCtrl, { tools: t } = et(a.gridCtrl), n = me();
984
+ const t = s, e = t.gridCtrl, { tools: a } = et(t.gridCtrl), n = me();
985
985
  T(
986
986
  () => e.selectable.value,
987
987
  (p) => {
988
- W(t, "tool.export.excel.selected") && (W(t, "tool.export.excel.selected").disabled = !p), W(t, "tool.export.pdf.selected") && (W(t, "tool.export.pdf.selected").disabled = !p);
988
+ 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);
989
989
  }
990
990
  );
991
991
  const i = x([]);
@@ -996,11 +996,11 @@ const Xt = async (s, a) => {
996
996
  },
997
997
  { deep: !0, immediate: !0 }
998
998
  );
999
- const c = () => {
999
+ const u = () => {
1000
1000
  e.columns.value.splice(0, e.columns.value.length, ...i.value), n.setTableColumns(ce.currentRoute.value.path, e.columns.value);
1001
1001
  };
1002
1002
  return (p, d) => (m(), S("div", pt, [
1003
- (m(!0), S(R, null, z(l(t), (o, f) => (m(), S(R, {
1003
+ (m(!0), S(R, null, z(l(a), (o, f) => (m(), S(R, {
1004
1004
  key: o.key
1005
1005
  }, [
1006
1006
  l(G)(o) && o.dropdown ? (m(), b(l(ve), {
@@ -1017,7 +1017,7 @@ const Xt = async (s, a) => {
1017
1017
  modelValue: i.value,
1018
1018
  "onUpdate:modelValue": d[1] || (d[1] = (r) => i.value = r),
1019
1019
  "item-key": "dataIndex",
1020
- onEnd: c,
1020
+ onEnd: u,
1021
1021
  handle: ".drag-handle"
1022
1022
  }, {
1023
1023
  default: g(() => [
@@ -1054,7 +1054,7 @@ const Xt = async (s, a) => {
1054
1054
  class: P([
1055
1055
  "px-[8px] py-[2px] relative border-[#ccc] bg-[#fcfcfc] rounded-none text-[#666] hover:z-10",
1056
1056
  f === 0 ? "rounded-l-[5px]" : "",
1057
- f === l(t).length - 1 ? "rounded-r-[5px]" : ""
1057
+ f === l(a).length - 1 ? "rounded-r-[5px]" : ""
1058
1058
  ]),
1059
1059
  disabled: l(H)(o),
1060
1060
  tiptext: o.label,
@@ -1076,7 +1076,7 @@ const Xt = async (s, a) => {
1076
1076
  class: P([
1077
1077
  "px-[8px] py-[2px] relative border-[#ccc] bg-[#fcfcfc] rounded-none text-[#666] hover:z-10",
1078
1078
  f === 0 ? "rounded-l-[5px]" : "",
1079
- f === l(t).length - 1 ? "rounded-r-[5px]" : ""
1079
+ f === l(a).length - 1 ? "rounded-r-[5px]" : ""
1080
1080
  ]),
1081
1081
  disabled: l(H)(o),
1082
1082
  tiptext: o.label,
@@ -1144,7 +1144,7 @@ const Xt = async (s, a) => {
1144
1144
  editorCtrl: {}
1145
1145
  },
1146
1146
  setup(s) {
1147
- const a = s, e = a.gridCtrl, t = e.page, n = a.editorCtrl, i = J(() => ce.currentRoute.value.path), c = [
1147
+ const t = s, e = t.gridCtrl, a = e.page, n = t.editorCtrl, i = J(() => ce.currentRoute.value.path), u = [
1148
1148
  {
1149
1149
  key: "New",
1150
1150
  label: "新增",
@@ -1165,7 +1165,7 @@ const Xt = async (s, a) => {
1165
1165
  () => {
1166
1166
  var r;
1167
1167
  const { buttons: o, menus: f } = ye(
1168
- c,
1168
+ u,
1169
1169
  e.flat !== void 0 ? e.flat : ht,
1170
1170
  (r = e.buttons) == null ? void 0 : r.value
1171
1171
  );
@@ -1186,7 +1186,7 @@ const Xt = async (s, a) => {
1186
1186
  danger: v.danger,
1187
1187
  disabled: l(H)(v),
1188
1188
  icon: v.icon,
1189
- onClick: (u) => l(V)(v, l(t), l(e))
1189
+ onClick: (c) => l(V)(v, l(a), l(e))
1190
1190
  }, {
1191
1191
  default: g(() => [
1192
1192
  M(F(v.label), 1)
@@ -1202,7 +1202,7 @@ const Xt = async (s, a) => {
1202
1202
  (m(!0), S(R, null, z(d.value, (v) => Q((m(), b(l(_e), {
1203
1203
  key: v.key,
1204
1204
  disabled: l(H)(v),
1205
- onClick: (u) => l(V)(v, l(t), l(e))
1205
+ onClick: (c) => l(V)(v, l(a), l(e))
1206
1206
  }, {
1207
1207
  default: g(() => [
1208
1208
  M(F(v.label), 1)
@@ -1252,112 +1252,113 @@ const Xt = async (s, a) => {
1252
1252
  statusDisabled: {}
1253
1253
  },
1254
1254
  setup(s) {
1255
- const a = s, e = X(), t = a.gridCtrl, n = J(() => ce.currentRoute.value.path);
1256
- t && (t.pageNo.value = 1, t.total.value = 0, t.pageSize.value = t.pageSize.value);
1257
- const i = x(t.pageSize.value), c = x(t.pageNo.value), p = x([]), d = x({
1255
+ const t = s, e = X(), a = t.gridCtrl, n = J(() => ce.currentRoute.value.path);
1256
+ a && (a.pageNo.value = 1, a.total.value = 0, a.pageSize.value = a.pageSize.value);
1257
+ const i = x(a.pageSize.value), u = x(a.pageNo.value), p = x([]), d = x({
1258
1258
  total: 0,
1259
1259
  current: 1,
1260
1260
  pageSize: i.value,
1261
- showTotal: (u) => `共 ${u} 条记录`,
1262
- onChange: (u, h) => {
1263
- 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));
1261
+ showTotal: (c) => `共 ${c} 条记录`,
1262
+ onChange: (c, h) => {
1263
+ d.value !== !1 && (d.value.current = c, d.value.pageSize = h), i.value = h, u.value = c, a && (a.pageNo.value = c, a.pageSize.value = h, a.remotePage && ke(a));
1264
1264
  },
1265
- ...a.pagination === !1 ? {} : a.pagination
1265
+ ...t.pagination === !1 ? {} : t.pagination
1266
1266
  });
1267
- a.pagination === !1 && (d.value = !1), T(
1268
- () => t.tableData.value,
1269
- (u) => {
1270
- 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));
1267
+ t.pagination === !1 && (d.value = !1), T(
1268
+ () => a.tableData.value,
1269
+ (c) => {
1270
+ c && (p.value = c, d.value !== !1 && (d.value.total = a.total.value ?? 0, d.value.current = a.pageNo.value ?? 1, d.value.pageSize = a.pageSize.value ?? 10));
1271
1271
  },
1272
1272
  { immediate: !0 }
1273
1273
  ), T(
1274
- () => a.tableData,
1275
- (u) => {
1276
- 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));
1274
+ () => t.tableData,
1275
+ (c) => {
1276
+ c && (p.value = c, d.value !== !1 && (d.value.total = c.length, d.value.current = a.pageNo.value ?? 1, d.value.pageSize = a.pageSize.value ?? 10));
1277
1277
  },
1278
1278
  { immediate: !0 }
1279
1279
  );
1280
- const o = x(t.columns.value), f = {
1281
- onChange: (u, h) => {
1282
- t && (t.selectKeys.value = u, t.selectRows.value = h);
1280
+ const o = x(a.columns.value), f = {
1281
+ onChange: (c, h) => {
1282
+ a && (a.selectKeys.value = c, a.selectRows.value = h);
1283
1283
  },
1284
1284
  columnWidth: "30px",
1285
- getCheckboxProps: (u) => ({
1286
- disabled: u.Enabled === 0
1285
+ getCheckboxProps: (c) => ({
1286
+ disabled: c.Enabled === 0
1287
1287
  }),
1288
- ...a.rowSelection
1288
+ ...t.rowSelection
1289
1289
  }, r = x(f);
1290
1290
  T(
1291
- () => t.selectable.value,
1292
- (u) => {
1293
- t && (r.value = u ? f : void 0);
1291
+ () => a.selectable.value,
1292
+ (c) => {
1293
+ a && (r.value = c ? f : void 0);
1294
1294
  },
1295
1295
  { immediate: !0 }
1296
1296
  ), T(
1297
- () => t.columns.value,
1297
+ () => a.columns.value,
1298
1298
  () => {
1299
- o.value = Ne(t.columns.value);
1299
+ o.value = Ne(a.columns.value);
1300
1300
  },
1301
1301
  { deep: !0, immediate: !0 }
1302
1302
  );
1303
1303
  const v = x(!1);
1304
1304
  return wa(() => {
1305
- v.value && t && (t.reload.value = !0);
1305
+ v.value && a && (a.reload.value = !0);
1306
1306
  }), K(async () => {
1307
- 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 ra(t)), setTimeout(() => {
1307
+ var c, h;
1308
+ 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.page && (((c = a.gridUrl) == null ? void 0 : c.url) === a.page.urls.list && (a.remotePage = !1), ((h = a.gridUrl) == null ? void 0 : h.url) === a.page.urls.find && (a.remotePage = !0)), a.remotePage ? p.value = (await ke(a)).rows : p.value = await ra(a)), setTimeout(() => {
1308
1309
  v.value = !0;
1309
1310
  }, 50);
1310
- }), (u, h) => {
1311
+ }), (c, h) => {
1311
1312
  var D, O;
1312
1313
  const y = le("auth");
1313
1314
  return m(), S(R, null, [
1314
- (D = l(t).buttons) != null && D.value.length || (O = l(t).tools) != null && O.length ? (m(), b(gt, {
1315
+ (D = l(a).buttons) != null && D.value.length || (O = l(a).tools) != null && O.length ? (m(), b(gt, {
1315
1316
  key: 0,
1316
- "grid-ctrl": l(t),
1317
- "editor-ctrl": l(t).editor
1317
+ "grid-ctrl": l(a),
1318
+ "editor-ctrl": l(a).editor
1318
1319
  }, null, 8, ["grid-ctrl", "editor-ctrl"])) : k("", !0),
1319
1320
  v.value ? (m(), b(l(Ke), N({
1320
1321
  key: 1,
1321
1322
  class: "w-full min-h-[480px]",
1322
- "row-key": a.primaryKey ?? l(t).primaryKey ?? "Id",
1323
+ "row-key": t.primaryKey ?? l(a).primaryKey ?? "Id",
1323
1324
  "data-source": p.value,
1324
- loading: l(t).isGridLoading.value,
1325
+ loading: l(a).isGridLoading.value,
1325
1326
  columns: o.value,
1326
1327
  pagination: d.value,
1327
1328
  "row-selection": r.value,
1328
- scroll: a.scroll || { x: 700 },
1329
- size: l(t).tableSize.value,
1329
+ scroll: t.scroll || { x: 700 },
1330
+ size: l(a).tableSize.value,
1330
1331
  bordered: ""
1331
1332
  }, l(e)), {
1332
1333
  bodyCell: g((_) => {
1333
1334
  var E, B;
1334
1335
  return [
1335
- I(u.$slots, "bodyCell", {
1336
+ I(c.$slots, "bodyCell", {
1336
1337
  column: _ == null ? void 0 : _.column,
1337
1338
  record: _ == null ? void 0 : _.record
1338
1339
  }),
1339
- l(t) && ((E = _ == null ? void 0 : _.column) == null ? void 0 : E.dataIndex) === "enabled" ? Q((m(), b(oa, {
1340
+ l(a) && ((E = _ == null ? void 0 : _.column) == null ? void 0 : E.dataIndex) === "enabled" ? Q((m(), b(oa, {
1340
1341
  key: 0,
1341
1342
  checked: _.record.Enabled,
1342
1343
  "onUpdate:checked": (se) => _.record.Enabled = se,
1343
- disabled: u.statusDisabled ? u.statusDisabled(_.record) : !1,
1344
+ disabled: c.statusDisabled ? c.statusDisabled(_.record) : !1,
1344
1345
  data: l(Me).EnableDisable,
1345
- onClick: (se) => l(na)(l(t), _.record),
1346
+ onClick: (se) => l(na)(l(a), _.record),
1346
1347
  class: P([
1347
1348
  "w-[58px]",
1348
- u.statusDisabled && u.statusDisabled(_.record) ? "cursor-not-allowed disabled" : ""
1349
+ c.statusDisabled && c.statusDisabled(_.record) ? "cursor-not-allowed disabled" : ""
1349
1350
  ]),
1350
1351
  loading: _ == null ? void 0 : _.record.isLoading
1351
1352
  }, null, 8, ["checked", "onUpdate:checked", "disabled", "data", "onClick", "class", "loading"])), [
1352
1353
  [y, { url: n.value, role: ["Super", "Admin"], permit: ":enabled" }, "disable"]
1353
1354
  ]) : k("", !0),
1354
- l(t) && ((B = _ == null ? void 0 : _.column) == null ? void 0 : B.dataIndex) === "operation" ? I(u.$slots, "operate", {
1355
+ l(a) && ((B = _ == null ? void 0 : _.column) == null ? void 0 : B.dataIndex) === "operation" ? I(c.$slots, "operate", {
1355
1356
  key: 1,
1356
1357
  record: _ == null ? void 0 : _.record
1357
1358
  }, () => [
1358
1359
  w(dt, {
1359
1360
  record: _ == null ? void 0 : _.record,
1360
- "grid-ctrl": l(t)
1361
+ "grid-ctrl": l(a)
1361
1362
  }, null, 8, ["record", "grid-ctrl"])
1362
1363
  ]) : k("", !0)
1363
1364
  ];
@@ -1375,8 +1376,8 @@ const Xt = async (s, a) => {
1375
1376
  expandedKeys: {}
1376
1377
  },
1377
1378
  emits: ["select", "update:selectedKeys"],
1378
- setup(s, { emit: a }) {
1379
- const e = s, t = X(), n = e.treeCtrl, i = x([]);
1379
+ setup(s, { emit: t }) {
1380
+ const e = s, a = X(), n = e.treeCtrl, i = x([]);
1380
1381
  T(
1381
1382
  () => n.data.value,
1382
1383
  (f) => {
@@ -1401,7 +1402,7 @@ const Xt = async (s, a) => {
1401
1402
  }
1402
1403
  }
1403
1404
  );
1404
- const c = a, p = x([]);
1405
+ const u = t, p = x([]);
1405
1406
  T(
1406
1407
  () => e.selectedKeys,
1407
1408
  (f) => {
@@ -1418,7 +1419,7 @@ const Xt = async (s, a) => {
1418
1419
  { immediate: !0 }
1419
1420
  );
1420
1421
  const o = (f, r) => {
1421
- 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);
1422
+ f.length === 0 && f.push(...p.value), f.length > 0 && (n.node.value = r == null ? void 0 : r.node.dataRef), p.value = f, u("update:selectedKeys", f), u("select", f, r);
1422
1423
  };
1423
1424
  return K(() => {
1424
1425
  n.fieldMap || (n.fieldMap = {
@@ -1436,16 +1437,16 @@ const Xt = async (s, a) => {
1436
1437
  "selected-keys": p.value,
1437
1438
  loading: l(n).isTreeLoading,
1438
1439
  onSelect: o
1439
- }, l(t)), {
1440
- title: g(({ key: v, label: u, icon: h }) => [
1440
+ }, l(a)), {
1441
+ title: g(({ key: v, label: c, icon: h }) => [
1441
1442
  I(f.$slots, "title", {
1442
- label: u,
1443
+ label: c,
1443
1444
  key: v,
1444
1445
  icon: h
1445
1446
  }, () => [
1446
1447
  $("div", bt, [
1447
1448
  w(l(U), { icon: h }, null, 8, ["icon"]),
1448
- $("span", xt, F(u), 1)
1449
+ $("span", xt, F(c), 1)
1449
1450
  ])
1450
1451
  ])
1451
1452
  ]),
@@ -1460,17 +1461,17 @@ const Xt = async (s, a) => {
1460
1461
  __name: "index",
1461
1462
  props: ua,
1462
1463
  emits: ["change", "update:labels", "update:value"],
1463
- setup(s, { emit: a }) {
1464
+ setup(s, { emit: t }) {
1464
1465
  var y, D, O;
1465
- const e = s, t = X(), n = L(), i = da(e.url, e), c = e.optionCtrl ?? i.optionCtrl;
1466
- c.inputFactory = Sa(n);
1466
+ const e = s, a = X(), n = L(), i = da(e.url, e), u = e.optionCtrl ?? i.optionCtrl;
1467
+ u.inputFactory = Sa(n);
1467
1468
  const p = x({
1468
- ...c == null ? void 0 : c.url,
1469
- url: ((y = c == null ? void 0 : c.url) == null ? void 0 : y.url) || "",
1470
- fieldMap: (c == null ? void 0 : c.fieldMap) || ((D = c == null ? void 0 : c.url) == null ? void 0 : D.fieldMap),
1471
- params: (c == null ? void 0 : c.params) || ((O = c == null ? void 0 : c.url) == null ? void 0 : O.params),
1469
+ ...u == null ? void 0 : u.url,
1470
+ url: ((y = u == null ? void 0 : u.url) == null ? void 0 : y.url) || "",
1471
+ fieldMap: (u == null ? void 0 : u.fieldMap) || ((D = u == null ? void 0 : u.url) == null ? void 0 : D.fieldMap),
1472
+ params: (u == null ? void 0 : u.params) || ((O = u == null ? void 0 : u.url) == null ? void 0 : O.params),
1472
1473
  loadingText: !1
1473
- }), { editorCtrl: d, errInfo: o, labelText: f } = n, r = x(t.placeholder);
1474
+ }), { editorCtrl: d, errInfo: o, labelText: f } = n, r = x(a.placeholder);
1474
1475
  T(
1475
1476
  () => p.value.loading,
1476
1477
  (_) => {
@@ -1478,13 +1479,13 @@ const Xt = async (s, a) => {
1478
1479
  },
1479
1480
  { immediate: !0 }
1480
1481
  );
1481
- const v = a;
1482
+ const v = t;
1482
1483
  n.inputEmit = v;
1483
- const u = x((c == null ? void 0 : c.options.value) || []);
1484
- c && T(
1485
- () => c.options.value,
1484
+ const c = x((u == null ? void 0 : u.options.value) || []);
1485
+ u && T(
1486
+ () => u.options.value,
1486
1487
  (_) => {
1487
- u.value = _ || [];
1488
+ c.value = _ || [];
1488
1489
  },
1489
1490
  { immediate: !0, deep: !0 }
1490
1491
  );
@@ -1493,7 +1494,7 @@ const Xt = async (s, a) => {
1493
1494
  v("update:labels", []), v("update:value", []);
1494
1495
  return;
1495
1496
  }
1496
- const B = E.map((Je) => Je.value), se = ma(c, e, B), Ge = ha(se);
1497
+ const B = E.map((Je) => Je.value), se = ma(u, e, B), Ge = ha(se);
1497
1498
  v("update:labels", Ge), v("update:value", B), o != null && o.value.errClass && d && Y(d);
1498
1499
  };
1499
1500
  return K(() => {
@@ -1502,32 +1503,32 @@ const Xt = async (s, a) => {
1502
1503
  label: "Name",
1503
1504
  value: "Id",
1504
1505
  key: "Id"
1505
- }), c && pa(c.autoload, c, e);
1506
+ }), u && pa(u.autoload, u, e);
1506
1507
  }), Ca(() => {
1507
- c && fa(c, e);
1508
+ u && fa(u, e);
1508
1509
  }), (_, E) => {
1509
1510
  var B;
1510
1511
  return m(), S("div", _t, [
1511
- u.value.length ? k("", !0) : (m(), S("div", yt, [
1512
+ c.value.length ? k("", !0) : (m(), S("div", yt, [
1512
1513
  w(l(va), { class: "text-[#555] mx-[5px] !ml-[10px] !w-4 !h-4" }),
1513
1514
  E[0] || (E[0] = $("span", null, "数据加载中...", -1))
1514
1515
  ])),
1515
1516
  w(l(Na), N({
1516
- options: u.value,
1517
+ options: c.value,
1517
1518
  class: [(B = l(o)) == null ? void 0 : B.errClass],
1518
1519
  "allow-clear": !0,
1519
- placeholder: u.value.length > 0 ? "请选择" + l(f) : "",
1520
+ placeholder: c.value.length > 0 ? "请选择" + l(f) : "",
1520
1521
  onChange: h
1521
- }, l(t)), null, 16, ["options", "class", "placeholder"])
1522
+ }, l(a)), null, 16, ["options", "class", "placeholder"])
1522
1523
  ]);
1523
1524
  };
1524
1525
  }
1525
1526
  }), dl = /* @__PURE__ */ q(kt, [["__scopeId", "data-v-7f0def6e"]]), pl = /* @__PURE__ */ q(ga, [["__scopeId", "data-v-64193a41"]]);
1526
1527
  function ie() {
1527
1528
  return ie = Object.assign ? Object.assign.bind() : function(s) {
1528
- for (var a = 1; a < arguments.length; a++) {
1529
- var e = arguments[a];
1530
- for (var t in e) ({}).hasOwnProperty.call(e, t) && (s[t] = e[t]);
1529
+ for (var t = 1; t < arguments.length; t++) {
1530
+ var e = arguments[t];
1531
+ for (var a in e) ({}).hasOwnProperty.call(e, a) && (s[a] = e[a]);
1531
1532
  }
1532
1533
  return s;
1533
1534
  }, ie.apply(null, arguments);
@@ -1584,16 +1585,16 @@ const fl = /* @__PURE__ */ C({
1584
1585
  valueFormat: {}
1585
1586
  },
1586
1587
  setup(s) {
1587
- const a = s, { editorCtrl: e, labelText: t, errInfo: n } = L(), i = () => {
1588
+ const t = s, { editorCtrl: e, labelText: a, errInfo: n } = L(), i = () => {
1588
1589
  n != null && n.value.errClass && e && Y(e);
1589
- }, c = x(a.valueFormat ?? "YYYY-MM-DD");
1590
+ }, u = x(t.valueFormat ?? "YYYY-MM-DD");
1590
1591
  return (p, d) => {
1591
1592
  var o;
1592
1593
  return m(), b(l(Ma), {
1593
1594
  class: P(["w-full", [((o = l(n)) == null ? void 0 : o.errClass) === "error" ? "error !border-red-300 shadow-[0_0_3px_0px_#ff4d4f]" : ""]]),
1594
- placeholder: "请选择" + l(t),
1595
+ placeholder: "请选择" + l(a),
1595
1596
  locale: l(ue),
1596
- valueFormat: c.value,
1597
+ valueFormat: u.value,
1597
1598
  onBlur: i
1598
1599
  }, null, 8, ["class", "placeholder", "locale", "valueFormat"]);
1599
1600
  };
@@ -1605,12 +1606,12 @@ const fl = /* @__PURE__ */ C({
1605
1606
  undefValue: { type: Boolean, default: !1 }
1606
1607
  },
1607
1608
  emits: ["update:value"],
1608
- setup(s, { emit: a }) {
1609
- const { editorCtrl: e, labelText: t, errInfo: n } = L(), i = () => {
1609
+ setup(s, { emit: t }) {
1610
+ const { editorCtrl: e, labelText: a, errInfo: n } = L(), i = () => {
1610
1611
  n != null && n.value.errClass && e && Y(e);
1611
- }, c = s, p = c.value === void 0 ? !0 : c.undefValue, d = a, o = x(c.value);
1612
+ }, u = s, p = u.value === void 0 ? !0 : u.undefValue, d = t, o = x(u.value);
1612
1613
  T(
1613
- () => c.value,
1614
+ () => u.value,
1614
1615
  (r) => {
1615
1616
  o.value = r;
1616
1617
  },
@@ -1630,17 +1631,17 @@ const fl = /* @__PURE__ */ C({
1630
1631
  o.value === "" && (o.value = p ? void 0 : null);
1631
1632
  };
1632
1633
  return (r, v) => {
1633
- var u, h;
1634
+ var c, h;
1634
1635
  return m(), b(l(ee), N({
1635
1636
  class: [
1636
- (u = l(n)) == null ? void 0 : u.errClass,
1637
+ (c = l(n)) == null ? void 0 : c.errClass,
1637
1638
  ((h = l(n)) == null ? void 0 : h.errClass) === "error" && !r.$slots.addonBefore && !r.$slots.addonAfter ? "!border-red-300 shadow-[0_0_3px_0px_#ff4d4f]" : ""
1638
1639
  ],
1639
1640
  value: o.value,
1640
1641
  "onUpdate:value": v[0] || (v[0] = (y) => o.value = y),
1641
1642
  autocomplete: "new-password",
1642
1643
  "allow-clear": !0,
1643
- placeholder: "请输入" + l(t),
1644
+ placeholder: "请输入" + l(a),
1644
1645
  onBlur: i,
1645
1646
  onChange: f
1646
1647
  }, r.$attrs), Le({ _: 2 }, [
@@ -1667,8 +1668,8 @@ const fl = /* @__PURE__ */ C({
1667
1668
  value: {}
1668
1669
  },
1669
1670
  emits: ["update:value"],
1670
- setup(s, { emit: a }) {
1671
- const e = s, t = a, n = x(void 0);
1671
+ setup(s, { emit: t }) {
1672
+ const e = s, a = t, n = x(void 0);
1672
1673
  return T(
1673
1674
  () => e.value,
1674
1675
  (i) => {
@@ -1678,11 +1679,11 @@ const fl = /* @__PURE__ */ C({
1678
1679
  ), T(
1679
1680
  () => n.value,
1680
1681
  (i) => {
1681
- t("update:value", i);
1682
+ a("update:value", i);
1682
1683
  }
1683
- ), (i, c) => (m(), b(Ct, N({
1684
+ ), (i, u) => (m(), b(Ct, N({
1684
1685
  value: n.value,
1685
- "onUpdate:value": c[0] || (c[0] = (p) => n.value = p)
1686
+ "onUpdate:value": u[0] || (u[0] = (p) => n.value = p)
1686
1687
  }, i.$attrs), {
1687
1688
  addonBefore: g(() => [
1688
1689
  w(l(U), {
@@ -1696,13 +1697,13 @@ const fl = /* @__PURE__ */ C({
1696
1697
  }), vl = /* @__PURE__ */ q(Tt, [["__scopeId", "data-v-358b82ef"]]), ml = /* @__PURE__ */ C({
1697
1698
  __name: "inputPassword",
1698
1699
  setup(s) {
1699
- const { editorCtrl: a, labelText: e, errInfo: t } = L(), n = () => {
1700
- t != null && t.value.errClass && a && Y(a);
1700
+ const { editorCtrl: t, labelText: e, errInfo: a } = L(), n = () => {
1701
+ a != null && a.value.errClass && t && Y(t);
1701
1702
  };
1702
- return (i, c) => {
1703
+ return (i, u) => {
1703
1704
  var p;
1704
1705
  return m(), b(l(Ba), N({
1705
- class: ((p = l(t)) == null ? void 0 : p.errClass) === "error" ? ["error", "!border-red-300", "shadow-[0_0_3px_0px_#ff4d4f]"] : "",
1706
+ class: ((p = l(a)) == null ? void 0 : p.errClass) === "error" ? ["error", "!border-red-300", "shadow-[0_0_3px_0px_#ff4d4f]"] : "",
1706
1707
  "allow-clear": !0,
1707
1708
  autocomplete: "new-password",
1708
1709
  placeholder: "请输入" + l(e),
@@ -1713,13 +1714,13 @@ const fl = /* @__PURE__ */ C({
1713
1714
  }), hl = /* @__PURE__ */ C({
1714
1715
  __name: "inputNumber",
1715
1716
  setup(s) {
1716
- const { editorCtrl: a, labelText: e, errInfo: t } = L(), n = () => {
1717
- t != null && t.value.errClass && a && Y(a);
1717
+ const { editorCtrl: t, labelText: e, errInfo: a } = L(), n = () => {
1718
+ a != null && a.value.errClass && t && Y(t);
1718
1719
  };
1719
- return (i, c) => {
1720
+ return (i, u) => {
1720
1721
  var p;
1721
1722
  return m(), b(l(Ra), N({
1722
- class: [[((p = l(t)) == null ? void 0 : p.errClass) === "error" ? "error !border-red-300 shadow-[0_0_3px_0px_#ff4d4f]" : ""], "w-[50%]"],
1723
+ class: [[((p = l(a)) == null ? void 0 : p.errClass) === "error" ? "error !border-red-300 shadow-[0_0_3px_0px_#ff4d4f]" : ""], "w-[50%]"],
1723
1724
  onBlur: n,
1724
1725
  "allow-clear": !1,
1725
1726
  placeholder: "请输入" + l(e)
@@ -1736,9 +1737,9 @@ const fl = /* @__PURE__ */ C({
1736
1737
  valueHolder: {}
1737
1738
  },
1738
1739
  emits: ["update:value"],
1739
- setup(s, { emit: a }) {
1740
- const e = s, t = a, n = x(!(e.selectList && e.selectList.length > 0)), i = x([]);
1741
- let c = !1;
1740
+ setup(s, { emit: t }) {
1741
+ const e = s, a = t, n = x(!(e.selectList && e.selectList.length > 0)), i = x([]);
1742
+ let u = !1;
1742
1743
  const p = () => {
1743
1744
  e.selectList && e.selectList.length > 0 ? i.value = e.selectList.map((r) => ({
1744
1745
  id: Date.now() + Math.random(),
@@ -1755,7 +1756,7 @@ const fl = /* @__PURE__ */ C({
1755
1756
  T(
1756
1757
  () => e.value,
1757
1758
  () => {
1758
- c || p(), c = !1;
1759
+ u || p(), u = !1;
1759
1760
  },
1760
1761
  { immediate: !0 }
1761
1762
  );
@@ -1764,9 +1765,9 @@ const fl = /* @__PURE__ */ C({
1764
1765
  e.selectList && e.selectList.length > 0 ? (r = { ...e.value }, i.value.forEach((v) => {
1765
1766
  v.field && (r[v.field] = v.value);
1766
1767
  })) : r = i.value.reduce(
1767
- (v, u) => (u.field && (v[u.field] = u.value), v),
1768
+ (v, c) => (c.field && (v[c.field] = c.value), v),
1768
1769
  {}
1769
- ), c = !0, t("update:value", r);
1770
+ ), u = !0, a("update:value", r);
1770
1771
  }, o = () => {
1771
1772
  i.value.push({
1772
1773
  id: Date.now() + Math.random(),
@@ -1777,8 +1778,8 @@ const fl = /* @__PURE__ */ C({
1777
1778
  d();
1778
1779
  };
1779
1780
  return (r, v) => (m(), S("div", $t, [
1780
- (m(!0), S(R, null, z(i.value, (u) => (m(), S("div", {
1781
- key: u.id,
1781
+ (m(!0), S(R, null, z(i.value, (c) => (m(), S("div", {
1782
+ key: c.id,
1782
1783
  class: "flex items-center gap-2"
1783
1784
  }, [
1784
1785
  $("div", {
@@ -1786,25 +1787,25 @@ const fl = /* @__PURE__ */ C({
1786
1787
  }, [
1787
1788
  !r.selectList || r.selectList.length === 0 ? (m(), b(l(ee), {
1788
1789
  key: 0,
1789
- value: u.field,
1790
- "onUpdate:value": (h) => u.field = h,
1791
- title: u.text || u.field,
1790
+ value: c.field,
1791
+ "onUpdate:value": (h) => c.field = h,
1792
+ title: c.text || c.field,
1792
1793
  class: "w-full",
1793
- placeholder: u.text || r.labelHolder || "配置名",
1794
+ placeholder: c.text || r.labelHolder || "配置名",
1794
1795
  onInput: f,
1795
1796
  disabled: !n.value
1796
1797
  }, null, 8, ["value", "onUpdate:value", "title", "placeholder", "disabled"])) : (m(), S("div", It, [
1797
1798
  w(l(ee), {
1798
- value: u.text,
1799
- "onUpdate:value": (h) => u.text = h,
1800
- title: u.text,
1799
+ value: c.text,
1800
+ "onUpdate:value": (h) => c.text = h,
1801
+ title: c.text,
1801
1802
  disabled: !0,
1802
1803
  class: "w-[100%]"
1803
1804
  }, null, 8, ["value", "onUpdate:value", "title"]),
1804
1805
  w(l(ee), {
1805
1806
  type: "hidden",
1806
- value: u.field,
1807
- "onUpdate:value": (h) => u.field = h
1807
+ value: c.field,
1808
+ "onUpdate:value": (h) => c.field = h
1808
1809
  }, null, 8, ["value", "onUpdate:value"])
1809
1810
  ]))
1810
1811
  ], 2),
@@ -1813,11 +1814,11 @@ const fl = /* @__PURE__ */ C({
1813
1814
  class: P([r.fieldWidth ? `w-[${97 - r.fieldWidth}%]` : "w-[64%]"])
1814
1815
  }, [
1815
1816
  w(l(ee), {
1816
- value: u.value,
1817
- "onUpdate:value": (h) => u.value = h,
1818
- placeholder: r.valueHolder || "请输入" + u.text || "请输入配置值",
1817
+ value: c.value,
1818
+ "onUpdate:value": (h) => c.value = h,
1819
+ placeholder: r.valueHolder || "请输入" + c.text || "请输入配置值",
1819
1820
  onInput: f,
1820
- title: u.value
1821
+ title: c.value
1821
1822
  }, null, 8, ["value", "onUpdate:value", "placeholder", "title"])
1822
1823
  ], 2)
1823
1824
  ]))), 128)),
@@ -1863,11 +1864,11 @@ const fl = /* @__PURE__ */ C({
1863
1864
  }
1864
1865
  },
1865
1866
  setup(s) {
1866
- const a = s, e = x(JSON.parse(JSON.stringify(Me.getOptions(a.dataKey))));
1867
- return a.all === !0 && e.value.unshift({
1867
+ const t = s, e = x(JSON.parse(JSON.stringify(Me.getOptions(t.dataKey))));
1868
+ return t.all === !0 && e.value.unshift({
1868
1869
  label: "全部",
1869
- value: a.allValue || [0, 1]
1870
- }), (t, n) => (m(), b(Dt, { data: e.value }, null, 8, ["data"]));
1870
+ value: t.allValue || [0, 1]
1871
+ }), (a, n) => (m(), b(Dt, { data: e.value }, null, 8, ["data"]));
1871
1872
  }
1872
1873
  }), xl = /* @__PURE__ */ C({
1873
1874
  __name: "index",
@@ -1877,8 +1878,8 @@ const fl = /* @__PURE__ */ C({
1877
1878
  valueFormat: { default: "YYYY-MM-DD" }
1878
1879
  },
1879
1880
  emits: ["update:startDate", "update:endDate"],
1880
- setup(s, { emit: a }) {
1881
- const e = s, t = a, n = L(), { errInfo: i } = n, c = J(() => e.valueFormat), p = J(() => {
1881
+ setup(s, { emit: t }) {
1882
+ const e = s, a = t, n = L(), { errInfo: i } = n, u = J(() => e.valueFormat), p = J(() => {
1882
1883
  const o = e.startDate, f = e.endDate;
1883
1884
  if (!(!o || !f))
1884
1885
  try {
@@ -1889,17 +1890,17 @@ const fl = /* @__PURE__ */ C({
1889
1890
  }
1890
1891
  }), d = (o, f) => {
1891
1892
  if (!o || !f || f.length !== 2) {
1892
- t("update:startDate", null), t("update:endDate", null);
1893
+ a("update:startDate", null), a("update:endDate", null);
1893
1894
  return;
1894
1895
  }
1895
- t("update:startDate", f[0] || null), t("update:endDate", f[1] || null);
1896
+ a("update:startDate", f[0] || null), a("update:endDate", f[1] || null);
1896
1897
  };
1897
1898
  return (o, f) => {
1898
1899
  var r;
1899
1900
  return m(), b(l(Oa), {
1900
1901
  class: P([((r = l(i)) == null ? void 0 : r.errClass) === "error" ? ["error", "!border-red-300", "shadow-[0_0_3px_0px_#ff4d4f]"] : "", "w-full"]),
1901
1902
  locale: l(ue),
1902
- "value-format": c.value,
1903
+ "value-format": u.value,
1903
1904
  value: p.value,
1904
1905
  onChange: d
1905
1906
  }, null, 8, ["class", "locale", "value-format", "value"]);
@@ -1908,19 +1909,19 @@ const fl = /* @__PURE__ */ C({
1908
1909
  }), _l = /* @__PURE__ */ q(xa, [["__scopeId", "data-v-a3448c27"]]), yl = /* @__PURE__ */ C({
1909
1910
  __name: "index",
1910
1911
  setup(s) {
1911
- const { editorCtrl: a, labelText: e, errInfo: t } = L(), n = () => {
1912
- t != null && t.value.errClass && a && Y(a);
1912
+ const { editorCtrl: t, labelText: e, errInfo: a } = L(), n = () => {
1913
+ a != null && a.value.errClass && t && Y(t);
1913
1914
  };
1914
- return (i, c) => {
1915
+ return (i, u) => {
1915
1916
  var p;
1916
1917
  return m(), b(l(Aa), N({
1917
- class: ((p = l(t)) == null ? void 0 : p.errClass) === "error" ? ["error", "!border-red-300", "shadow-[0_0_3px_0px_#ff4d4f]"] : "",
1918
+ class: ((p = l(a)) == null ? void 0 : p.errClass) === "error" ? ["error", "!border-red-300", "shadow-[0_0_3px_0px_#ff4d4f]"] : "",
1918
1919
  "allow-clear": !0,
1919
1920
  placeholder: "请输入" + l(e),
1920
1921
  onBlur: n,
1921
- onKeyup: c[0] || (c[0] = Se(ae(() => {
1922
+ onKeyup: u[0] || (u[0] = Se(ae(() => {
1922
1923
  }, ["stop"]), ["enter", "native"])),
1923
- onKeydown: c[1] || (c[1] = Se(ae(() => {
1924
+ onKeydown: u[1] || (u[1] = Se(ae(() => {
1924
1925
  }, ["stop"]), ["enter", "native"]))
1925
1926
  }, i.$attrs), null, 16, ["class", "placeholder"]);
1926
1927
  };
@@ -1931,16 +1932,16 @@ const fl = /* @__PURE__ */ C({
1931
1932
  valueFormat: {}
1932
1933
  },
1933
1934
  setup(s) {
1934
- const a = s, { editorCtrl: e, labelText: t, errInfo: n } = L(), i = () => {
1935
+ const t = s, { editorCtrl: e, labelText: a, errInfo: n } = L(), i = () => {
1935
1936
  n != null && n.value.errClass && e && Y(e);
1936
- }, c = x(a.valueFormat ?? "HH:mm");
1937
+ }, u = x(t.valueFormat ?? "HH:mm");
1937
1938
  return (p, d) => {
1938
1939
  var o;
1939
1940
  return m(), b(l(La), {
1940
1941
  class: P(["w-full", [((o = l(n)) == null ? void 0 : o.errClass) === "error" ? "error !border-red-300 shadow-[0_0_3px_0px_#ff4d4f]" : ""]]),
1941
- placeholder: "请选择" + l(t),
1942
+ placeholder: "请选择" + l(a),
1942
1943
  locale: l(ue),
1943
- valueFormat: c.value,
1944
+ valueFormat: u.value,
1944
1945
  onBlur: i
1945
1946
  }, null, 8, ["class", "placeholder", "locale", "valueFormat"]);
1946
1947
  };
@@ -1954,8 +1955,8 @@ const fl = /* @__PURE__ */ C({
1954
1955
  value: {}
1955
1956
  },
1956
1957
  emits: ["change", "update:value"],
1957
- setup(s, { emit: a }) {
1958
- const e = s, t = x({ ...e.url }), { editorCtrl: n, labelText: i, errInfo: c } = L(), p = a, d = x([]), o = x([]);
1958
+ setup(s, { emit: t }) {
1959
+ const e = s, a = x({ ...e.url }), { editorCtrl: n, labelText: i, errInfo: u } = L(), p = t, d = x([]), o = x([]);
1959
1960
  e.value && e.value.every((r) => {
1960
1961
  o.value.push(r.toString());
1961
1962
  }), T(
@@ -1965,15 +1966,15 @@ const fl = /* @__PURE__ */ C({
1965
1966
  }
1966
1967
  );
1967
1968
  const f = (r) => {
1968
- p("update:value", r), p("change", r), o.value = r, c != null && c.value.errClass && n && Y(n);
1969
+ p("update:value", r), p("change", r), o.value = r, u != null && u.value.errClass && n && Y(n);
1969
1970
  };
1970
1971
  return K(async () => {
1971
- if (t.value) {
1972
+ if (a.value) {
1972
1973
  const r = n == null ? void 0 : n.page;
1973
- 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) {
1974
+ if (a.value.api || (a.value.api = r == null ? void 0 : r.api), a.value.authorize === void 0 && (a.value.authorize = r == null ? void 0 : r.authorize), e.autoload) {
1974
1975
  const v = await Re(n, {
1975
1976
  urlKey: "list",
1976
- url: { ...t.value, url: t.value.url },
1977
+ url: { ...a.value, url: a.value.url },
1977
1978
  loadingText: !1,
1978
1979
  params: e.params
1979
1980
  });
@@ -1981,9 +1982,9 @@ const fl = /* @__PURE__ */ C({
1981
1982
  }
1982
1983
  }
1983
1984
  }), (r, v) => {
1984
- var u;
1985
+ var c;
1985
1986
  return m(), b(l(za), N({
1986
- class: ((u = l(c)) == null ? void 0 : u.errClass) === "error" ? ["error", "!border-red-300", "shadow-[0_0_3px_0px_#ff4d4f]"] : "",
1987
+ class: ((c = l(u)) == null ? void 0 : c.errClass) === "error" ? ["error", "!border-red-300", "shadow-[0_0_3px_0px_#ff4d4f]"] : "",
1987
1988
  placeholder: "请输入" + l(i),
1988
1989
  targetKeys: o.value,
1989
1990
  onChange: f
@@ -2028,12 +2029,12 @@ const fl = /* @__PURE__ */ C({
2028
2029
  }
2029
2030
  },
2030
2031
  emits: ["update:value"],
2031
- setup(s, { emit: a }) {
2032
- const e = s, t = a, n = x(e.autoload), i = x(e.value), c = x(e.gridCtrl.primaryKey);
2032
+ setup(s, { emit: t }) {
2033
+ const e = s, a = t, n = x(e.autoload), i = x(e.value), u = x(e.gridCtrl.primaryKey);
2033
2034
  T(
2034
2035
  () => i.value,
2035
2036
  (o) => {
2036
- t("update:value", o);
2037
+ a("update:value", o);
2037
2038
  }
2038
2039
  ), T(
2039
2040
  () => e.value,
@@ -2042,16 +2043,16 @@ const fl = /* @__PURE__ */ C({
2042
2043
  }
2043
2044
  ), e.gridCtrl.autoload = !1, e.gridCtrl.remotePage = !1, e.gridCtrl.selectable = x(!0), e.gridCtrl.buttons = x([]), e.gridCtrl.tools = [];
2044
2045
  const p = ({ disabled: o, selectedKeys: f, onItemSelectAll: r, onItemSelect: v }) => ({
2045
- getCheckboxProps: (u) => ({
2046
+ getCheckboxProps: (c) => ({
2046
2047
  // 控制是否禁止
2047
- disabled: o || u.disabled
2048
+ disabled: o || c.disabled
2048
2049
  }),
2049
- onSelectAll(u, h) {
2050
- const y = h.filter((D) => !D.disabled).map(({ [c.value]: D }) => D);
2051
- r(y, u);
2050
+ onSelectAll(c, h) {
2051
+ const y = h.filter((D) => !D.disabled).map(({ [u.value]: D }) => D);
2052
+ r(y, c);
2052
2053
  },
2053
- onSelect({ [c.value]: u }, h) {
2054
- v(u, h);
2054
+ onSelect({ [u.value]: c }, h) {
2055
+ v(c, h);
2055
2056
  },
2056
2057
  selectedRowKeys: f
2057
2058
  }), d = x([]);
@@ -2067,7 +2068,7 @@ const fl = /* @__PURE__ */ C({
2067
2068
  }
2068
2069
  }), (o, f) => (m(), b(Et, N({
2069
2070
  "data-source": d.value,
2070
- "row-key": (r) => r[c.value],
2071
+ "row-key": (r) => r[u.value],
2071
2072
  value: i.value,
2072
2073
  "onUpdate:value": f[0] || (f[0] = (r) => i.value = r),
2073
2074
  "list-style": {
@@ -2077,21 +2078,21 @@ const fl = /* @__PURE__ */ C({
2077
2078
  "show-select-all": !1,
2078
2079
  "show-search": !0,
2079
2080
  "filter-option": (r, v) => {
2080
- for (const u of e.gridCtrl.columns.value)
2081
- if (v[u.dataIndex].toString().indexOf(r) !== -1)
2081
+ for (const c of e.gridCtrl.columns.value)
2082
+ if (v[c.dataIndex].toString().indexOf(r) !== -1)
2082
2083
  return !0;
2083
2084
  return !1;
2084
2085
  }
2085
2086
  }, o.$attrs), {
2086
- children: g(({ filteredItems: r, onItemSelectAll: v, onItemSelect: u, selectedKeys: h }) => [
2087
+ children: g(({ filteredItems: r, onItemSelectAll: v, onItemSelect: c, selectedKeys: h }) => [
2087
2088
  w(l(Ke), {
2088
2089
  columns: s.gridCtrl.columns.value,
2089
- "row-key": c.value,
2090
+ "row-key": u.value,
2090
2091
  "row-selection": p({
2091
2092
  disabled: !1,
2092
2093
  selectedKeys: h,
2093
2094
  onItemSelectAll: v,
2094
- onItemSelect: u
2095
+ onItemSelect: c
2095
2096
  }),
2096
2097
  bordered: !1,
2097
2098
  size: "small",
@@ -2099,8 +2100,8 @@ const fl = /* @__PURE__ */ C({
2099
2100
  scroll: { x: 300 },
2100
2101
  "custom-row": (y) => ({
2101
2102
  onClick: () => {
2102
- const D = y[c.value];
2103
- u(D, !h.includes(D));
2103
+ const D = y[u.value];
2104
+ c(D, !h.includes(D));
2104
2105
  }
2105
2106
  })
2106
2107
  }, null, 8, ["columns", "row-key", "row-selection", "data-source", "custom-row"])
@@ -2134,30 +2135,30 @@ const fl = /* @__PURE__ */ C({
2134
2135
  }
2135
2136
  },
2136
2137
  emits: ["change", "update:value"],
2137
- setup(s, { emit: a }) {
2138
- const e = s, t = e.value === void 0 ? !0 : e.undefValue, n = e.treeCtrl, i = L(), { errInfo: c, labelText: p } = i, d = a;
2138
+ setup(s, { emit: t }) {
2139
+ const e = s, a = e.value === void 0 ? !0 : e.undefValue, n = e.treeCtrl, i = L(), { errInfo: u, labelText: p } = i, d = t;
2139
2140
  i.inputEmit = d;
2140
2141
  const o = x([]), f = x();
2141
2142
  T(
2142
2143
  () => e.value,
2143
- (u) => {
2144
- f.value = u;
2144
+ (c) => {
2145
+ f.value = c;
2145
2146
  },
2146
2147
  { immediate: !0 }
2147
2148
  ), T(
2148
2149
  () => f.value,
2149
- (u) => {
2150
- d("update:value", u);
2150
+ (c) => {
2151
+ d("update:value", c);
2151
2152
  }
2152
2153
  ), T(
2153
2154
  () => n.data.value,
2154
- (u) => {
2155
- u && (o.value = n.fieldMap ? oe(n.fieldMap, u) : u);
2155
+ (c) => {
2156
+ c && (o.value = n.fieldMap ? oe(n.fieldMap, c) : c);
2156
2157
  },
2157
2158
  { immediate: !0 }
2158
2159
  );
2159
- const r = (u) => {
2160
- e.multiple ? f.value = u ?? [] : u == null ? f.value = t ? void 0 : null : f.value = u, d("change", f.value);
2160
+ const r = (c) => {
2161
+ e.multiple ? f.value = c ?? [] : c == null ? f.value = a ? void 0 : null : f.value = c, d("change", f.value);
2161
2162
  };
2162
2163
  K(() => {
2163
2164
  n.fieldMap || (n.fieldMap = {
@@ -2167,12 +2168,12 @@ const fl = /* @__PURE__ */ C({
2167
2168
  }), n.data.value ? o.value = n.fieldMap ? oe(n.fieldMap, n.data.value) : n.data.value : e.treeCtrl.autoload && Be(e.treeCtrl);
2168
2169
  });
2169
2170
  const v = () => {
2170
- f.value = t ? void 0 : null;
2171
+ f.value = a ? void 0 : null;
2171
2172
  };
2172
- return (u, h) => {
2173
+ return (c, h) => {
2173
2174
  var y;
2174
2175
  return m(), b(l(Ua), N({
2175
- class: [[(y = l(c)) == null ? void 0 : y.errClass], "w-full"],
2176
+ class: [[(y = l(u)) == null ? void 0 : y.errClass], "w-full"],
2176
2177
  "tree-line": "",
2177
2178
  multiple: s.multiple,
2178
2179
  "tree-default-expanded-keys": ["-"],
@@ -2182,7 +2183,7 @@ const fl = /* @__PURE__ */ C({
2182
2183
  placeholder: "请选择" + l(p),
2183
2184
  onChange: r,
2184
2185
  onClear: v
2185
- }, u.$attrs), null, 16, ["class", "multiple", "value", "tree-data", "placeholder"]);
2186
+ }, c.$attrs), null, 16, ["class", "multiple", "value", "tree-data", "placeholder"]);
2186
2187
  };
2187
2188
  }
2188
2189
  }), Sl = /* @__PURE__ */ q(Pt, [["__scopeId", "data-v-a0ed9c4e"]]), Ft = { class: "relative h-[calc(100vh-80px)] overflow-y-auto" }, Nt = { class: "flex w-full h-full min-h-full" }, Mt = {
@@ -2194,8 +2195,8 @@ const fl = /* @__PURE__ */ C({
2194
2195
  left: { type: Boolean }
2195
2196
  },
2196
2197
  setup(s) {
2197
- const { useToken: a } = ze, { token: e } = a();
2198
- return (t, n) => (m(), S("div", Ft, [
2198
+ const { useToken: t } = ze, { token: e } = t();
2199
+ return (a, n) => (m(), S("div", Ft, [
2199
2200
  w(l(Va), {
2200
2201
  class: "m-[10px] p-[10px] h-[calc(100vh-100px)] !min-h-[calc(100vh-100px)]",
2201
2202
  style: be({
@@ -2204,11 +2205,11 @@ const fl = /* @__PURE__ */ C({
2204
2205
  }, {
2205
2206
  default: g(() => [
2206
2207
  $("div", Nt, [
2207
- t.left ? (m(), S("div", Mt, [
2208
- I(t.$slots, "left")
2208
+ a.left ? (m(), S("div", Mt, [
2209
+ I(a.$slots, "left")
2209
2210
  ])) : k("", !0),
2210
2211
  $("div", Bt, [
2211
- I(t.$slots, "default")
2212
+ I(a.$slots, "default")
2212
2213
  ])
2213
2214
  ])
2214
2215
  ]),