@skyfox2000/webui 1.4.24 → 1.4.25

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,106 +1,106 @@
1
- import { u as Le, i as ce, a as Ue, L as xt, c as kt, P as ae, o as We, b as wt, d as Ct, e as qe, g as He, r as ue, f as Qe, h as Ge, j as Je, k as St, l as me, m as Xe, _ as Ze, n as et, O as Ne, p as $t, q as tt, s as Tt, t as It, v as q, w as Dt, x as Ft, y as Pt, z as Et, A as Lt, B as Ut, C as le, D as Nt, E as Bt, F as Mt, G as at, M as zt } from "./assets/modules/upload-template-BuaWOXY_.js";
2
- import { ad as fr, T as vr, U as mr, Y as hr, ac as gr, aa as br, ab as yr, ae as _r, a0 as xr, W as kr, a8 as wr, a5 as Cr, R as Sr, a7 as $r, X as Tr, I as Ir, a2 as Dr, a6 as Fr, a9 as Pr, S as Er, V as Lr, af as Ur, H as Nr, a4 as Br, ag as Mr, $ as zr, a1 as Or, Z as Ar, al as Rr, ak as Kr, ah as jr, J as Vr, K as Yr, ai as Wr, Q as qr, aj as Hr, N as Qr, a3 as Gr } from "./assets/modules/upload-template-BuaWOXY_.js";
3
- import { f as Ot, p as Oe } from "./assets/modules/file-upload-CKMd0H11.js";
4
- import { A as Xr, U as Zr } from "./assets/modules/file-upload-CKMd0H11.js";
5
- import { EnvConfig as Ae, isMicroApp as At } from "@skyfox2000/microbase";
6
- import { FrontCache as ve, httpPost as Be, ResStatus as Me, SERVER_HOST as Rt, fieldMapping as he } from "@skyfox2000/fapi";
1
+ import { u as Le, i as ce, a as Ue, L as kt, c as wt, P as ae, o as We, b as Ct, d as St, e as qe, g as He, r as ue, f as Qe, h as Ge, j as Je, k as $t, l as me, m as Xe, _ as Ze, n as et, O as Ne, p as Tt, q as tt, s as Dt, t as Ft, v as H, w as It, x as Pt, y as Et, z as Lt, A as Ut, B as Nt, C as le, D as Bt, E as zt, F as Mt, G as at, M as Ot } from "./assets/modules/upload-template-BuaWOXY_.js";
2
+ import { ad as gr, T as br, U as yr, Y as xr, ac as _r, aa as kr, ab as wr, ae as Cr, a0 as Sr, W as $r, a8 as Tr, a5 as Dr, R as Fr, a7 as Ir, X as Pr, I as Er, a2 as Lr, a6 as Ur, a9 as Nr, S as Br, V as zr, af as Mr, H as Or, a4 as Ar, ag as Rr, $ as Kr, a1 as jr, Z as Vr, al as Yr, ak as Wr, ah as qr, J as Hr, K as Qr, ai as Gr, Q as Jr, aj as Xr, N as Zr, a3 as es } from "./assets/modules/upload-template-BuaWOXY_.js";
3
+ import { f as At, p as Oe } from "./assets/modules/file-upload-CKMd0H11.js";
4
+ import { A as as, U as ls } from "./assets/modules/file-upload-CKMd0H11.js";
5
+ import { EnvConfig as Ae, isMicroApp as Rt } from "@skyfox2000/microbase";
6
+ import { FrontCache as ve, httpPost as Be, ResStatus as ze, SERVER_HOST as Kt, fieldMapping as he } from "@skyfox2000/fapi";
7
7
  import G from "vue-m-message";
8
- import { defineComponent as T, createBlock as b, openBlock as v, withModifiers as pe, unref as l, useAttrs as ne, withCtx as h, createElementVNode as D, createVNode as S, mergeProps as B, renderSlot as P, normalizeClass as E, toDisplayString as N, createCommentVNode as x, ref as y, provide as _e, watch as I, onMounted as X, createTextVNode as M, inject as ge, resolveDirective as re, withDirectives as W, computed as R, createElementBlock as w, normalizeStyle as ze, Fragment as L, renderList as V, resolveDynamicComponent as Kt, onActivated as xe, createSlots as lt, useSlots as jt, shallowRef as Vt, onUnmounted as Yt, withKeys as Re } from "vue";
8
+ import { defineComponent as T, createBlock as b, openBlock as v, withModifiers as pe, unref as l, useAttrs as ne, withCtx as h, createElementVNode as F, createVNode as S, mergeProps as N, renderSlot as L, normalizeClass as E, toDisplayString as U, createCommentVNode as _, ref as y, provide as xe, watch as D, onMounted as X, createTextVNode as z, inject as ge, resolveDirective as re, withDirectives as q, computed as j, createElementBlock as x, normalizeStyle as Me, Fragment as P, renderList as R, resolveDynamicComponent as lt, onActivated as _e, createSlots as rt, useSlots as jt, shallowRef as Vt, onUnmounted as Yt, withKeys as Re } from "vue";
9
9
  import "async-validator";
10
10
  import Pe from "dayjs";
11
- import { Popover as Wt, theme as rt, Drawer as qt, Space as ie, Form as st, message as Ht, FormItem as ot, ConfigProvider as be, Popconfirm as nt, DropdownButton as it, Menu as ke, MenuItem as we, Dropdown as Ee, Checkbox as Qt, List as Gt, ListItem as Jt, Card as Xt, Button as ut, Table as ct, Tree as Zt, Cascader as ea, DatePicker as ta, Input as de, InputPassword as aa, InputNumber as la, RangePicker as ra, Textarea as sa, TimePicker as oa, Transfer as na, TreeSelect as ia, Upload as ua, Image as ca, LayoutContent as da } from "ant-design-vue";
11
+ import { Popover as Wt, theme as st, Drawer as qt, Space as ie, Form as ot, message as Ht, FormItem as nt, ConfigProvider as be, Popconfirm as it, DropdownButton as ut, Menu as ke, MenuItem as we, Dropdown as Ee, Checkbox as Qt, List as Gt, ListItem as Jt, Card as Xt, Button as ct, Table as dt, Tree as Zt, Cascader as ea, DatePicker as ta, Input as de, InputPassword as aa, InputNumber as la, RangePicker as ra, Textarea as sa, TimePicker as oa, Transfer as na, TreeSelect as ia, Upload as ua, Image as ca, LayoutContent as da } from "ant-design-vue";
12
12
  import { VueDraggableNext as pa } from "vue-draggable-next";
13
13
  import { d as fa } from "./assets/modules/uploadList-De6KfTAV.js";
14
- import { C as ts, U as as, a as ls, p as rs } from "./assets/modules/uploadList-De6KfTAV.js";
15
- import { c as dt } from "./assets/modules/index-gmbMtZa2.js";
16
- import { _ as os, h as ns, b as is, a as us, d as cs, e as ds, g as ps, f as fs, n as vs, p as ms, t as hs, v as gs } from "./assets/modules/index-gmbMtZa2.js";
17
- import { _ as Q } from "./assets/modules/index-BpsqYPCw.js";
14
+ import { C as ss, U as os, a as ns, p as is } from "./assets/modules/uploadList-De6KfTAV.js";
15
+ import { c as pt } from "./assets/modules/index-gmbMtZa2.js";
16
+ import { _ as cs, h as ds, b as ps, a as fs, d as vs, e as ms, g as hs, f as gs, n as bs, p as ys, t as xs, v as _s } from "./assets/modules/index-gmbMtZa2.js";
17
+ import { _ as Y } from "./assets/modules/index-BpsqYPCw.js";
18
18
  import { _ as K } from "./assets/modules/toolIcon-DWurTPaB.js";
19
- import { a as ys } from "./assets/modules/toolIcon-DWurTPaB.js";
20
- import { _ as xs, b as ks, c as ws, d as Cs, e as Ss, I as $s, f as Ts, g as Is, a as Ds } from "./assets/modules/menuTabs-CvAiSVNW.js";
21
- import { _ as Ps } from "./assets/modules/index-DvozNhVM.js";
19
+ import { a as ws } from "./assets/modules/toolIcon-DWurTPaB.js";
20
+ import { _ as Ss, b as $s, c as Ts, d as Ds, e as Fs, I as Is, f as Ps, g as Es, a as Ls } from "./assets/modules/menuTabs-CvAiSVNW.js";
21
+ import { _ as Ns } from "./assets/modules/index-DvozNhVM.js";
22
22
  import { _ as se } from "./assets/modules/_plugin-vue_export-helper-CHgC5LLL.js";
23
- const Ke = (r, a, e, t = "remove") => {
23
+ const Ke = (s, a, e, t = "remove") => {
24
24
  if (!e)
25
25
  if (t === "disable") {
26
26
  const o = a.component;
27
- o ? o.props.disabled = !0 : (a.el, r.setAttribute("disabled", "disabled"), r.disabled = !0), r.classList.add("disabled");
27
+ o ? o.props.disabled = !0 : (a.el, s.setAttribute("disabled", "disabled"), s.disabled = !0), s.classList.add("disabled");
28
28
  } else {
29
- const o = document.createComment("No Permission"), n = r.parentNode;
30
- if (n) {
29
+ const o = document.createComment("No Permission"), u = s.parentNode;
30
+ if (u) {
31
31
  const i = a.component;
32
- i ? i.props.style = { display: "none" } : n.replaceChild(o, r);
32
+ i ? i.props.style = { display: "none" } : u.replaceChild(o, s);
33
33
  }
34
34
  }
35
- }, je = (r) => {
35
+ }, je = (s) => {
36
36
  var i, p;
37
- const a = Le(), { url: e, role: t, permit: o } = r;
37
+ const a = Le(), { url: e, role: t, permit: o } = s;
38
38
  if (ce(t) && ce(o))
39
39
  return !0;
40
- const n = e ?? ((p = (i = window.location.hash) == null ? void 0 : i.split("#")) == null ? void 0 : p[1]) ?? window.location.pathname;
40
+ const u = e ?? ((p = (i = window.location.hash) == null ? void 0 : i.split("#")) == null ? void 0 : p[1]) ?? window.location.pathname;
41
41
  if (Ae.VITE_PERMISSION_MODE === "role")
42
42
  return ce(t) ? !0 : a.hasRole(t);
43
43
  if (Ae.VITE_PERMISSION_MODE === "permit") {
44
- let c = !1, u = !1;
45
- return ce(t) || (c = a.hasRole(t)), a.isAdmin() ? c : (ce(o) || (u = a.hasPermit(n, o)), c || u);
44
+ let n = !1, c = !1;
45
+ return ce(t) || (n = a.hasRole(t)), a.isAdmin() ? n : (ce(o) || (c = a.hasPermit(u, o)), n || c);
46
46
  }
47
47
  return !1;
48
48
  }, va = {
49
- mounted(r, a, e) {
50
- const t = a.value || {}, o = a.arg || "remove", n = t.behavior || o, i = je(t);
51
- Ke(r, e, i, n);
49
+ mounted(s, a, e) {
50
+ const t = a.value || {}, o = a.arg || "remove", u = t.behavior || o, i = je(t);
51
+ Ke(s, e, i, u);
52
52
  },
53
- updated(r, a, e) {
54
- const t = a.value || {}, o = a.arg || "remove", n = t.behavior || o, i = je(t);
55
- Ke(r, e, i, n);
53
+ updated(s, a, e) {
54
+ const t = a.value || {}, o = a.arg || "remove", u = t.behavior || o, i = je(t);
55
+ Ke(s, e, i, u);
56
56
  }
57
57
  }, ma = {
58
- mounted: (r, a) => {
59
- r.addEventListener("keydown", (e) => {
58
+ mounted: (s, a) => {
59
+ s.addEventListener("keydown", (e) => {
60
60
  e.key === "Enter" && a.value();
61
61
  });
62
62
  },
63
- unmounted: (r) => {
64
- r.removeEventListener("keydown", () => {
63
+ unmounted: (s) => {
64
+ s.removeEventListener("keydown", () => {
65
65
  });
66
66
  }
67
- }, De = {
67
+ }, Fe = {
68
68
  auth: va,
69
69
  submit: ma
70
- }, Ll = (r, a) => ((a || Object.keys(De)).forEach((t) => {
71
- t in De && r.directive(t, De[t]);
72
- }), r), oe = (r, a) => {
73
- const e = r.find((t) => t.key === a);
70
+ }, Bl = (s, a) => ((a || Object.keys(Fe)).forEach((t) => {
71
+ t in Fe && s.directive(t, Fe[t]);
72
+ }), s), oe = (s, a) => {
73
+ const e = s.find((t) => t.key === a);
74
74
  if (e)
75
75
  return e;
76
- for (const t of r)
76
+ for (const t of s)
77
77
  if (t.children) {
78
78
  const o = oe(t.children, a);
79
79
  if (o)
80
80
  return o;
81
81
  }
82
- }, Ce = (r, a, e) => {
82
+ }, Ce = (s, a, e) => {
83
83
  const t = [], o = [];
84
- return e || (e = [...r]), e.length && e.forEach((n, i) => {
84
+ return e || (e = [...s]), e.length && e.forEach((u, i) => {
85
85
  let p;
86
- if (typeof n == "string") {
87
- const c = oe(r, n);
88
- p = c ? { ...c } : { key: n, label: n };
86
+ if (typeof u == "string") {
87
+ const n = oe(s, u);
88
+ p = n ? { ...n } : { key: u, label: u };
89
89
  } else {
90
- const c = oe(r, n.key);
91
- p = c ? { ...c, ...n } : { ...n };
90
+ const n = oe(s, u.key);
91
+ p = n ? { ...n, ...u } : { ...u };
92
92
  }
93
- p.click || (p.click = (c, u, f) => {
94
- u && (u.rowData.value = f), p.formVisible ? (p.formVisible.value = !1, setTimeout(() => {
93
+ p.click || (p.click = (n, c, f) => {
94
+ c && (c.rowData.value = f), p.formVisible ? (p.formVisible.value = !1, setTimeout(() => {
95
95
  p.formVisible.value = !0;
96
96
  }, 1)) : G.warning("未配置点击处理事件!");
97
97
  }), a === 0 || i < a ? t.push(p) : o.push(p);
98
98
  }), { buttons: t, menus: o };
99
- }, te = (r, a) => r.disabled && typeof r.disabled == "function" ? r.disabled(a) : r.disabled, J = (r, a) => r.visible && typeof r.visible == "function" ? r.visible(a) : r.visible ?? !0, ha = (r, a) => {
99
+ }, te = (s, a) => s.disabled && typeof s.disabled == "function" ? s.disabled(a) : s.disabled, J = (s, a) => s.visible && typeof s.visible == "function" ? s.visible(a) : s.visible ?? !0, ha = (s, a) => {
100
100
  a.reload.value = !0;
101
- }, ga = (r, a) => {
101
+ }, ga = (s, a) => {
102
102
  a.searchBar.value = !a.searchBar.value;
103
- }, ba = (r, a) => {
103
+ }, ba = (s, a) => {
104
104
  switch (a.tableSize.value) {
105
105
  case "large":
106
106
  a.tableSize.value = "middle";
@@ -112,23 +112,23 @@ const Ke = (r, a, e, t = "remove") => {
112
112
  a.tableSize.value = "large";
113
113
  break;
114
114
  }
115
- }, ya = (r, a) => {
115
+ }, ya = (s, a) => {
116
116
  a.selectable.value = !a.selectable.value, a.selectable.value || (a.selectKeys.value = [], a.selectRows.value = []);
117
- }, _a = (r, a) => {
117
+ }, xa = (s, a) => {
118
118
  a.rowExpand.value = !a.rowExpand.value;
119
- }, Ve = (r, a) => {
119
+ }, Ve = (s, a) => {
120
120
  a.selectable.value = !a.selectable.value;
121
- }, Y = (r, a, e, t, o) => {
122
- (!r.confirm || o) && r.click && (a ? r.click(a, e, t) : r.click(null, e, t)), ka(r);
123
- }, xa = (r, a) => {
121
+ }, W = (s, a, e, t, o) => {
122
+ (!s.confirm || o) && s.click && (a ? s.click(a, e, t) : s.click(null, e, t)), ka(s);
123
+ }, _a = (s, a) => {
124
124
  a.selectable.value = !a.selectable.value;
125
- }, pt = () => {
126
- const r = Ue();
127
- r.setFullscreen(!r.fullscreen);
128
- }, ka = (r, a) => {
129
- (r.icons || r.labels) && (r.iconStatus = r.iconStatus || 0, r.iconStatus += 1, r.labels && r.labels.length && (r.label = r.labels[r.iconStatus % r.labels.length]), r.icons && r.icons.length && (r.icon = r.icons[r.iconStatus % r.icons.length]));
130
- }, wa = (r, a) => {
131
- a ? delete r.visible : r.visible = !1;
125
+ }, ft = () => {
126
+ const s = Ue();
127
+ s.setFullscreen(!s.fullscreen);
128
+ }, ka = (s, a) => {
129
+ (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]));
130
+ }, wa = (s, a) => {
131
+ a ? delete s.visible : s.visible = !1;
132
132
  }, Ye = [
133
133
  {
134
134
  key: "Reload",
@@ -164,7 +164,7 @@ const Ke = (r, a, e, t = "remove") => {
164
164
  icon: "icon-row-collapse",
165
165
  iconStatus: 0,
166
166
  icons: ["icon-row-collapse", "icon-row-expand"],
167
- click: _a
167
+ click: xa
168
168
  },
169
169
  {
170
170
  key: "tool.export.excel",
@@ -191,7 +191,7 @@ const Ke = (r, a, e, t = "remove") => {
191
191
  {
192
192
  key: "tool.export.pdf.selected",
193
193
  label: "选中的记录",
194
- click: xa
194
+ click: _a
195
195
  }
196
196
  ]
197
197
  },
@@ -211,19 +211,19 @@ const Ke = (r, a, e, t = "remove") => {
211
211
  icon: "icon-fullscreen",
212
212
  iconStatus: 0,
213
213
  icons: ["icon-fullscreen", "icon-exitscreen"],
214
- click: pt
214
+ click: ft
215
215
  }
216
- ], Ca = (r) => {
217
- if (!r.tools || r.tools.length > 0) {
216
+ ], Ca = (s) => {
217
+ if (!s.tools || s.tools.length > 0) {
218
218
  const a = [];
219
- return r.tools ? a.push(...r.tools) : a.push(...Ye), { tools: Ce(Ye, 0, a).buttons };
219
+ return s.tools ? a.push(...s.tools) : a.push(...Ye), { tools: Ce(Ye, 0, a).buttons };
220
220
  }
221
221
  return {
222
222
  tools: []
223
223
  };
224
224
  };
225
- var Sa = /* @__PURE__ */ ((r) => (r.SYS_CONFIG = "SYS_CONFIG_", r.APP_MENU = "APP_MENU_", r.DICT_TYPE = "DICT_TYPE_", r.HOST_INFO = "HOST_INFO_", r.APP_PERMITS = "APP_PERMITS_", r.USER_SETTINGS = "USER_SETTINGS_", r.DICT_DATA = "DICT_DATA_", r.COMMON_OPTIONS = "COMMON_OPTIONS_", r))(Sa || {});
226
- class ft {
225
+ var Sa = /* @__PURE__ */ ((s) => (s.SYS_CONFIG = "SYS_CONFIG_", s.APP_MENU = "APP_MENU_", s.DICT_TYPE = "DICT_TYPE_", s.HOST_INFO = "HOST_INFO_", s.APP_PERMITS = "APP_PERMITS_", s.USER_SETTINGS = "USER_SETTINGS_", s.DICT_DATA = "DICT_DATA_", s.COMMON_OPTIONS = "COMMON_OPTIONS_", s))(Sa || {});
226
+ class vt {
227
227
  /**
228
228
  * 设置缓存数据(带服务器时间)
229
229
  */
@@ -245,7 +245,7 @@ class ft {
245
245
  */
246
246
  static getData(a) {
247
247
  const e = ve.get({ key: a, storage: "local" });
248
- return e && ft.isTimedData(e) ? e.data : e ?? null;
248
+ return e && vt.isTimedData(e) ? e.data : e ?? null;
249
249
  }
250
250
  /**
251
251
  * 清除缓存
@@ -278,9 +278,9 @@ class ft {
278
278
  return a && typeof a == "object" && "data" in a && "lastTime" in a && typeof a.lastTime == "number";
279
279
  }
280
280
  }
281
- async function Ul() {
281
+ async function zl() {
282
282
  try {
283
- const r = await Be(
283
+ const s = await Be(
284
284
  {
285
285
  api: "PLATFORM_API",
286
286
  url: "/api/SysCacheSvr/getLastTime",
@@ -288,18 +288,18 @@ async function Ul() {
288
288
  },
289
289
  {}
290
290
  );
291
- if ((r == null ? void 0 : r.status) === Me.SUCCESS) {
292
- const a = r.data;
291
+ if ((s == null ? void 0 : s.status) === ze.SUCCESS) {
292
+ const a = s.data;
293
293
  Object.keys(a).forEach((e) => {
294
294
  const t = a[e];
295
- ["local", "session"].forEach((n) => {
296
- const i = n === "local" ? localStorage : sessionStorage;
295
+ ["local", "session"].forEach((u) => {
296
+ const i = u === "local" ? localStorage : sessionStorage;
297
297
  for (let p = 0; p < i.length; p++) {
298
- const c = i.key(p);
299
- if (c && c.endsWith(e))
298
+ const n = i.key(p);
299
+ if (n && n.endsWith(e))
300
300
  try {
301
- const u = JSON.parse(i.getItem(c));
302
- u && typeof u == "object" && "lastTime" in u && typeof u.lastTime == "number" && u.lastTime !== t && i.removeItem(c);
301
+ const c = JSON.parse(i.getItem(n));
302
+ c && typeof c == "object" && "lastTime" in c && typeof c.lastTime == "number" && c.lastTime !== t && i.removeItem(n);
303
303
  } catch {
304
304
  continue;
305
305
  }
@@ -307,12 +307,12 @@ async function Ul() {
307
307
  });
308
308
  });
309
309
  }
310
- } catch (r) {
311
- console.error("检查缓存更新失败", r);
310
+ } catch (s) {
311
+ console.error("检查缓存更新失败", s);
312
312
  }
313
313
  }
314
- const Nl = async (r, a) => {
315
- const e = await dt(r, a);
314
+ const Ml = async (s, a) => {
315
+ const e = await pt(s, a);
316
316
  if (e.success)
317
317
  return {
318
318
  blobUrl: e.blobUrl,
@@ -321,9 +321,9 @@ const Nl = async (r, a) => {
321
321
  // 不再返回blob对象,使用URL即可
322
322
  };
323
323
  throw new Error(e.error || "CSV转Excel失败");
324
- }, Bl = async (r, a) => {
324
+ }, Ol = async (s, a) => {
325
325
  try {
326
- const t = new TextDecoder("utf-8").decode(r), o = await dt(t, a);
326
+ const t = new TextDecoder("utf-8").decode(s), o = await pt(t, a);
327
327
  return {
328
328
  success: o.success,
329
329
  blobUrl: o.blobUrl,
@@ -338,49 +338,49 @@ const Nl = async (r, a) => {
338
338
  error: e instanceof Error ? e.message : "未知错误"
339
339
  };
340
340
  }
341
- }, vt = (r) => r ? Array.isArray(r) ? r.join(".") : r : "", mt = (r) => r.map((a) => ({
341
+ }, mt = (s) => s ? Array.isArray(s) ? s.join(".") : s : "", ht = (s) => s.map((a) => ({
342
342
  label: a.title,
343
- value: vt(a.dataIndex) || a.key || ""
344
- })), ht = (r, a) => r.map((e, t) => {
343
+ value: mt(a.dataIndex) || a.key || ""
344
+ })), gt = (s, a) => s.map((e, t) => {
345
345
  const o = { ...e };
346
- return a.forEach((n) => {
347
- const i = vt(n.dataIndex) || n.key;
348
- i && n.customRender && (o[i] = n.customRender({
346
+ return a.forEach((u) => {
347
+ const i = mt(u.dataIndex) || u.key;
348
+ i && u.customRender && (o[i] = u.customRender({
349
349
  text: e[i],
350
350
  record: e,
351
351
  index: t,
352
- column: n
352
+ column: u
353
353
  }));
354
354
  }), o;
355
- }), gt = async (r, a, e) => {
355
+ }), bt = async (s, a, e) => {
356
356
  try {
357
357
  const o = (await import("@json2csv/plainjs")).Parser, i = new o({ fields: a }).parse(e), p = new Blob([`\uFEFF${i}`], { type: "text/csv" });
358
- fa(p, r);
358
+ fa(p, s);
359
359
  } catch (t) {
360
360
  console.error("导出失败:", t), G.error("文件导出失败,请稍后重试");
361
361
  }
362
- }, Ml = async (r, a, e) => {
362
+ }, Al = async (s, a, e) => {
363
363
  try {
364
- const t = bt(r), o = a.filter((p) => p.visible !== !1 && p.export !== !1), n = mt(o), i = ht(e, o);
365
- await gt(t, n, i);
364
+ const t = yt(s), o = a.filter((p) => p.visible !== !1 && p.export !== !1), u = ht(o), i = gt(e, o);
365
+ await bt(t, u, i);
366
366
  } catch (t) {
367
367
  console.error("导出失败:", t), G.error("文件导出失败,请稍后重试");
368
368
  }
369
- }, bt = (r) => {
369
+ }, yt = (s) => {
370
370
  const a = /\{([^}]+)\}/g;
371
- return r.replace(a, (e, t) => Pe().format(t));
372
- }, zl = async (r, a, e, t) => {
371
+ return s.replace(a, (e, t) => Pe().format(t));
372
+ }, Rl = async (s, a, e, t) => {
373
373
  try {
374
- const o = bt(r), n = a.filter((u) => u.visible !== !1), i = mt(n);
375
- let p = e.page, c = e.gridQuery;
376
- return t.api || (t.api = p.api), t.authorize === void 0 && (t.authorize = p.authorize), e.isGridLoading.value = !0, Be(t, c).then(async (u) => {
377
- if (e.isGridLoading.value = !1, (u == null ? void 0 : u.status) === Me.SUCCESS) {
378
- if (u.data) {
379
- let f = u.data;
380
- const s = ht(f, n);
381
- await gt(o, i, s);
374
+ const o = yt(s), u = a.filter((c) => c.visible !== !1), i = ht(u);
375
+ let p = e.page, n = e.gridQuery;
376
+ return t.api || (t.api = p.api), t.authorize === void 0 && (t.authorize = p.authorize), e.isGridLoading.value = !0, Be(t, n).then(async (c) => {
377
+ if (e.isGridLoading.value = !1, (c == null ? void 0 : c.status) === ze.SUCCESS) {
378
+ if (c.data) {
379
+ let f = c.data;
380
+ const r = gt(f, u);
381
+ await bt(o, i, r);
382
382
  }
383
- } else if ((u == null ? void 0 : u.errno) == xt) {
383
+ } else if ((c == null ? void 0 : c.errno) == kt) {
384
384
  Le().logout(!1);
385
385
  return;
386
386
  }
@@ -388,12 +388,12 @@ const Nl = async (r, a) => {
388
388
  } catch (o) {
389
389
  console.error("导出失败:", o), G.error("文件导出失败,请稍后重试");
390
390
  }
391
- }, Ol = /* @__PURE__ */ T({
391
+ }, Kl = /* @__PURE__ */ T({
392
392
  __name: "fullscreen",
393
- setup(r) {
393
+ setup(s) {
394
394
  const a = Ue();
395
395
  return (e, t) => (v(), b(K, {
396
- onClick: pe(l(pt), ["stop"]),
396
+ onClick: pe(l(ft), ["stop"]),
397
397
  icon: l(a).fullscreen ? "icon-exitscreen" : "icon-fullscreen",
398
398
  class: "w-[17px] h-[17px]"
399
399
  }, null, 8, ["onClick", "icon"]));
@@ -407,21 +407,21 @@ const Nl = async (r, a) => {
407
407
  size: {},
408
408
  placement: {}
409
409
  },
410
- setup(r) {
410
+ setup(s) {
411
411
  const a = ne();
412
412
  return (e, t) => (v(), b(l(Wt), {
413
413
  placement: e.placement ?? "topRight"
414
414
  }, {
415
415
  content: h(() => [
416
- P(e.$slots, "default", {}, () => [
417
- D("div", {
416
+ L(e.$slots, "default", {}, () => [
417
+ F("div", {
418
418
  class: E(["text-[14px]", [e.maxWidth]])
419
- }, N(e.text), 3)
419
+ }, U(e.text), 3)
420
420
  ])
421
421
  ]),
422
422
  default: h(() => [
423
- D("span", $a, [
424
- S(K, B({
423
+ F("span", $a, [
424
+ S(K, N({
425
425
  icon: "icon-question-circle",
426
426
  class: ["text-[#888]", [e.size ? "w-" + e.size + " h-" + e.size : "w-5 h-5"]]
427
427
  }, l(a)), null, 16, ["class"])
@@ -430,7 +430,7 @@ const Nl = async (r, a) => {
430
430
  _: 3
431
431
  }, 8, ["placement"]));
432
432
  }
433
- }), Al = /* @__PURE__ */ T({
433
+ }), jl = /* @__PURE__ */ T({
434
434
  __name: "layoutIcon",
435
435
  props: {
436
436
  icon: {
@@ -440,21 +440,21 @@ const Nl = async (r, a) => {
440
440
  type: Array
441
441
  }
442
442
  },
443
- setup(r) {
444
- const a = r, t = kt({
445
- iconUrl: `${Rt.MICROLAYOUT_ICONS}`,
443
+ setup(s) {
444
+ const a = s, t = wt({
445
+ iconUrl: `${Kt.MICROLAYOUT_ICONS}`,
446
446
  monoColor: !0,
447
447
  icon: a.icon,
448
448
  icons: a.icons
449
449
  });
450
- return (o, n) => r.icon || r.icons ? (v(), b(l(t), B({
450
+ return (o, u) => s.icon || s.icons ? (v(), b(l(t), N({
451
451
  key: 0,
452
- icon: r.icon,
453
- icons: r.icons,
452
+ icon: s.icon,
453
+ icons: s.icons,
454
454
  class: ["align-middle"]
455
- }, o.$attrs), null, 16, ["icon", "icons"])) : x("", !0);
455
+ }, o.$attrs), null, 16, ["icon", "icons"])) : _("", !0);
456
456
  }
457
- }), Ia = { class: "hover:bg-gray-200 w-[24px] h-[24px] rounded-md" }, Rl = /* @__PURE__ */ T({
457
+ }), Da = { class: "hover:bg-gray-200 w-[24px] h-[24px] rounded-md" }, Vl = /* @__PURE__ */ T({
458
458
  __name: "index",
459
459
  props: {
460
460
  saveText: {},
@@ -464,26 +464,26 @@ const Nl = async (r, a) => {
464
464
  drawerSave: { type: Function },
465
465
  drawerSaveAs: { type: Function }
466
466
  },
467
- setup(r) {
468
- const { useToken: a } = rt, { token: e } = a(), t = y(!1), o = r, n = o.editorCtrl;
469
- _e(ae.EditorControl, n), I(
470
- () => n.visible.value,
471
- (u) => {
472
- t.value = u ?? !1;
467
+ setup(s) {
468
+ const { useToken: a } = st, { token: e } = a(), t = y(!1), o = s, u = o.editorCtrl;
469
+ xe(ae.EditorControl, u), D(
470
+ () => u.visible.value,
471
+ (c) => {
472
+ t.value = c ?? !1;
473
473
  }
474
474
  ), X(() => {
475
- t.value = n.visible.value ?? !1;
475
+ t.value = u.visible.value ?? !1;
476
476
  });
477
477
  const i = () => {
478
- o.drawerSave ? o.drawerSave() : n && We(n);
478
+ o.drawerSave ? o.drawerSave() : u && We(u);
479
479
  }, p = () => {
480
- o.drawerSaveAs ? o.drawerSaveAs() : n && wt(n);
481
- }, c = () => {
482
- Ct(n);
480
+ o.drawerSaveAs ? o.drawerSaveAs() : u && Ct(u);
481
+ }, n = () => {
482
+ St(u);
483
483
  };
484
- return (u, f) => (v(), b(l(qt), {
484
+ return (c, f) => (v(), b(l(qt), {
485
485
  open: t.value,
486
- "onUpdate:open": f[0] || (f[0] = (s) => t.value = s),
486
+ "onUpdate:open": f[0] || (f[0] = (r) => t.value = r),
487
487
  "get-container": !1,
488
488
  closable: !1,
489
489
  "header-style": {
@@ -502,11 +502,11 @@ const Nl = async (r, a) => {
502
502
  boxShadow: "rgba(0, 0, 0, 0.3) -2px 0px 8px"
503
503
  },
504
504
  width: "420px",
505
- onClose: c
505
+ onClose: n
506
506
  }, {
507
507
  extra: h(() => [
508
- P(u.$slots, "extra", {}, () => [
509
- D("div", Ia, [
508
+ L(c.$slots, "extra", {}, () => [
509
+ F("div", Da, [
510
510
  S(l(K), {
511
511
  class: "top-[-2px] left-[2px] w-6 h-6",
512
512
  icon: "icon-new",
@@ -515,49 +515,49 @@ const Nl = async (r, a) => {
515
515
  clickable: "",
516
516
  color: "#666",
517
517
  position: [0, 0],
518
- onClick: c
518
+ onClick: n
519
519
  })
520
520
  ])
521
521
  ])
522
522
  ]),
523
523
  default: h(() => [
524
- P(u.$slots, "default")
524
+ L(c.$slots, "default")
525
525
  ]),
526
526
  footer: h(() => [
527
- P(u.$slots, "footer", {}, () => [
527
+ L(c.$slots, "footer", {}, () => [
528
528
  S(l(ie), null, {
529
529
  default: h(() => [
530
- u.cancelText !== "" ? (v(), b(l(Q), {
530
+ c.cancelText !== "" ? (v(), b(l(Y), {
531
531
  key: 0,
532
- onClick: c
532
+ onClick: n
533
533
  }, {
534
534
  default: h(() => [
535
- M(N(u.cancelText ?? "取消"), 1)
535
+ z(U(c.cancelText ?? "取消"), 1)
536
536
  ]),
537
537
  _: 1
538
- })) : x("", !0),
539
- u.saveAsText !== "" && l(n).saveAsBtnVisible !== !1 ? (v(), b(l(Q), {
538
+ })) : _("", !0),
539
+ c.saveAsText !== "" && l(u).saveAsBtnVisible !== !1 ? (v(), b(l(Y), {
540
540
  key: 1,
541
541
  onClick: p,
542
542
  type: "primary",
543
- loading: l(n).isFormSaving.value
543
+ loading: l(u).isFormSaving.value
544
544
  }, {
545
545
  default: h(() => [
546
- M(N(u.saveAsText ?? "另存为"), 1)
546
+ z(U(c.saveAsText ?? "另存为"), 1)
547
547
  ]),
548
548
  _: 1
549
- }, 8, ["loading"])) : x("", !0),
550
- u.saveText !== "" && l(n).saveBtnVisible !== !1 ? (v(), b(l(Q), {
549
+ }, 8, ["loading"])) : _("", !0),
550
+ c.saveText !== "" && l(u).saveBtnVisible !== !1 ? (v(), b(l(Y), {
551
551
  key: 2,
552
552
  onClick: i,
553
553
  type: "primary",
554
- loading: l(n).isFormSaving.value
554
+ loading: l(u).isFormSaving.value
555
555
  }, {
556
556
  default: h(() => [
557
- M(N(u.saveText ?? "保存"), 1)
557
+ z(U(c.saveText ?? "保存"), 1)
558
558
  ]),
559
559
  _: 1
560
- }, 8, ["loading"])) : x("", !0)
560
+ }, 8, ["loading"])) : _("", !0)
561
561
  ]),
562
562
  _: 1
563
563
  })
@@ -566,18 +566,18 @@ const Nl = async (r, a) => {
566
566
  _: 3
567
567
  }, 8, ["open", "header-style"]));
568
568
  }
569
- }), Kl = /* @__PURE__ */ T({
569
+ }), Yl = /* @__PURE__ */ T({
570
570
  __name: "index",
571
571
  props: {
572
572
  labelWidth: {},
573
573
  wrapperWidth: {},
574
574
  editorCtrl: {}
575
575
  },
576
- setup(r) {
577
- const a = r, e = a.editorCtrl ?? ge(ae.EditorControl, void 0);
578
- return _e(ae.LabelWidth, a.labelWidth), (t, o) => {
579
- const n = re("submit");
580
- return W((v(), b(l(st), {
576
+ setup(s) {
577
+ const a = s, e = a.editorCtrl ?? ge(ae.EditorControl, void 0);
578
+ return xe(ae.LabelWidth, a.labelWidth), (t, o) => {
579
+ const u = re("submit");
580
+ return q((v(), b(l(ot), {
581
581
  "label-col": { flex: a.labelWidth ?? "85px" },
582
582
  "wrapper-col": {
583
583
  flex: a.wrapperWidth ?? "1 0 280px"
@@ -588,12 +588,12 @@ const Nl = async (r, a) => {
588
588
  }
589
589
  }, {
590
590
  default: h(() => [
591
- P(t.$slots, "default")
591
+ L(t.$slots, "default")
592
592
  ]),
593
593
  _: 3
594
594
  }, 8, ["label-col", "wrapper-col"])), [
595
595
  [
596
- n,
596
+ u,
597
597
  () => {
598
598
  l(e) && l(We)(l(e));
599
599
  }
@@ -601,10 +601,10 @@ const Nl = async (r, a) => {
601
601
  ]);
602
602
  };
603
603
  }
604
- }), Da = {
604
+ }), Fa = {
605
605
  key: 0,
606
606
  class: "flex-grow"
607
- }, Fa = { class: "w-8 mt-[-2px]" }, jl = /* @__PURE__ */ T({
607
+ }, Ia = { class: "w-8 mt-[-2px]" }, Wl = /* @__PURE__ */ T({
608
608
  inheritAttrs: !1,
609
609
  __name: "formItem",
610
610
  props: {
@@ -615,61 +615,61 @@ const Nl = async (r, a) => {
615
615
  nextLine: { type: Boolean },
616
616
  bottomMargin: {}
617
617
  },
618
- setup(r) {
619
- const a = r, e = ne(), t = ge(ae.EditorControl, void 0), o = ge(ae.LabelWidth, "85px") ?? "85px", n = qe(a, t), i = y(!1);
618
+ setup(s) {
619
+ const a = s, e = ne(), t = ge(ae.EditorControl, void 0), o = ge(ae.LabelWidth, "85px") ?? "85px", u = qe(a, t), i = y(!1);
620
620
  setTimeout(() => {
621
621
  i.value = !0;
622
622
  }, 30);
623
- const p = R(() => {
624
- var u;
623
+ const p = j(() => {
624
+ var c;
625
625
  if (!a.rule)
626
626
  return !1;
627
- const c = He(a.rule.split("."), (u = t == null ? void 0 : t.formRules) == null ? void 0 : u.value);
628
- return c ? (c.required || (n.value.errClass = "", n.value.msg = ""), c.required ?? !0) : (Ht.error(`"${a.label}" 的验证规则 \`${a.rule}\` 不存在`), n.value.errClass = "text-[#ff4d4f]", n.value.msg = `规则 \`${a.rule}\` 不存在,请检查代码!`, !0);
627
+ const n = He(a.rule.split("."), (c = t == null ? void 0 : t.formRules) == null ? void 0 : c.value);
628
+ return n ? (n.required || (u.value.errClass = "", u.value.msg = ""), n.required ?? !0) : (Ht.error(`"${a.label}" 的验证规则 \`${a.rule}\` 不存在`), u.value.errClass = "text-[#ff4d4f]", u.value.msg = `规则 \`${a.rule}\` 不存在,请检查代码!`, !0);
629
629
  });
630
- return (c, u) => (v(), w("div", {
631
- class: E(["relative", c.bottomMargin ? c.bottomMargin : "mb-1"])
630
+ return (n, c) => (v(), x("div", {
631
+ class: E(["relative", n.bottomMargin ? n.bottomMargin : "mb-1"])
632
632
  }, [
633
- i.value ? (v(), b(l(ot), B({
633
+ i.value ? (v(), b(l(nt), N({
634
634
  key: 0,
635
635
  required: p.value,
636
- class: ["relative", [c.nextLine ? "mb-0" : c.rule ? "" : "mb-3"]]
636
+ class: ["relative", [n.nextLine ? "mb-0" : n.rule ? "" : "mb-3"]]
637
637
  }, l(e)), {
638
638
  label: h(() => [
639
- D("span", {
640
- class: E([l(n).errClass ? "text-[#ff4d4f]" : "", "w-full"])
641
- }, N(c.label), 3)
639
+ F("span", {
640
+ class: E([l(u).errClass ? "text-[#ff4d4f]" : "", "w-full"])
641
+ }, U(n.label), 3)
642
642
  ]),
643
643
  default: h(() => [
644
- D("div", {
645
- class: E(["flex items-center", c.width ? c.width : "w-full"])
644
+ F("div", {
645
+ class: E(["flex items-center", n.width ? n.width : "w-full"])
646
646
  }, [
647
- c.nextLine ? x("", !0) : (v(), w("div", Da, [
648
- P(c.$slots, "default")
647
+ n.nextLine ? _("", !0) : (v(), x("div", Fa, [
648
+ L(n.$slots, "default")
649
649
  ])),
650
- D("div", Fa, [
651
- P(c.$slots, "helper", {}, () => [
652
- c.helper ? (v(), b(l(Ta), {
650
+ F("div", Ia, [
651
+ L(n.$slots, "helper", {}, () => [
652
+ n.helper ? (v(), b(l(Ta), {
653
653
  key: 0,
654
- text: c.helper
655
- }, null, 8, ["text"])) : x("", !0)
654
+ text: n.helper
655
+ }, null, 8, ["text"])) : _("", !0)
656
656
  ])
657
657
  ])
658
658
  ], 2)
659
659
  ]),
660
660
  _: 3
661
- }, 16, ["required", "class"])) : x("", !0),
662
- c.nextLine ? (v(), w("div", {
661
+ }, 16, ["required", "class"])) : _("", !0),
662
+ n.nextLine ? (v(), x("div", {
663
663
  key: 1,
664
- class: E(["w-[95%] flex items-center relative", [c.nextLine ? c.rule ? "mb-7" : "mb-3" : ""]])
664
+ class: E(["w-[95%] flex items-center relative", [n.nextLine ? n.rule ? "mb-7" : "mb-3" : ""]])
665
665
  }, [
666
- P(c.$slots, "default")
667
- ], 2)) : x("", !0),
668
- l(n).errClass ? (v(), w("span", {
666
+ L(n.$slots, "default")
667
+ ], 2)) : _("", !0),
668
+ l(u).errClass ? (v(), x("span", {
669
669
  key: 2,
670
- style: ze({ left: c.nextLine ? "2px" : l(o) }),
670
+ style: Me({ left: n.nextLine ? "2px" : l(o) }),
671
671
  class: "absolute bottom-[3px] text-[12px] text-[#ff4d4fcc]"
672
- }, N(l(n).msg), 5)) : x("", !0)
672
+ }, U(l(u).msg), 5)) : _("", !0)
673
673
  ], 2));
674
674
  }
675
675
  }), Pa = /* @__PURE__ */ T({
@@ -678,8 +678,8 @@ const Nl = async (r, a) => {
678
678
  record: {},
679
679
  gridCtrl: {}
680
680
  },
681
- setup(r) {
682
- const a = r, e = a.gridCtrl, t = R(() => ue.currentRoute.value.path), o = [
681
+ setup(s) {
682
+ const a = s, e = a.gridCtrl, t = j(() => ue.currentRoute.value.path), o = [
683
683
  {
684
684
  key: "Edit",
685
685
  label: "",
@@ -703,13 +703,13 @@ const Nl = async (r, a) => {
703
703
  confirmText: "是否删除此记录?",
704
704
  click: () => Ge(e, a.record)
705
705
  }
706
- ], { buttons: n, menus: i } = Ce(o, 0, e.operates), p = (c) => {
707
- if (typeof c.disabled == "boolean")
708
- return c.disabled;
709
- if (typeof c.disabled == "function")
710
- return te(c, a.record) ?? !1;
706
+ ], { buttons: u, menus: i } = Ce(o, 0, e.operates), p = (n) => {
707
+ if (typeof n.disabled == "boolean")
708
+ return n.disabled;
709
+ if (typeof n.disabled == "function")
710
+ return te(n, a.record) ?? !1;
711
711
  if (a.record.hasOwnProperty(e.statusKey))
712
- switch (c.key) {
712
+ switch (n.key) {
713
713
  case "Edit":
714
714
  return !a.record[e.statusKey];
715
715
  case "Delete":
@@ -717,7 +717,7 @@ const Nl = async (r, a) => {
717
717
  }
718
718
  return !1;
719
719
  };
720
- return (c, u) => {
720
+ return (n, c) => {
721
721
  const f = re("auth");
722
722
  return v(), b(l(be), { theme: {
723
723
  token: {
@@ -727,80 +727,80 @@ const Nl = async (r, a) => {
727
727
  default: h(() => [
728
728
  S(l(ie), null, {
729
729
  default: h(() => [
730
- (v(!0), w(L, null, V(l(n), (s) => (v(), w(L, {
731
- key: s.key
730
+ (v(!0), x(P, null, R(l(u), (r) => (v(), x(P, {
731
+ key: r.key
732
732
  }, [
733
- l(J)(s, a.record) ? (v(), b(l(nt), {
733
+ l(J)(r, a.record) ? (v(), b(l(it), {
734
734
  key: 0,
735
- disabled: p(s) || !s.confirm,
735
+ disabled: p(r) || !r.confirm,
736
736
  cancelText: "否",
737
737
  okText: "是",
738
- title: s.confirmText,
738
+ title: r.confirmText,
739
739
  okButtonProps: { size: "small" },
740
740
  cancelButtonProps: { size: "small" },
741
- onConfirm: (m) => l(Y)(s, l(e).page, l(e), a.record, !0)
741
+ onConfirm: (m) => l(W)(r, l(e).page, l(e), a.record, !0)
742
742
  }, {
743
743
  default: h(() => [
744
- l(J)(s, a.record) ? W((v(), b(l(K), {
745
- key: s.key,
746
- icon: s.icon,
747
- danger: s.danger,
748
- disabled: p(s),
749
- onClick: (m) => !p(s) && l(Y)(s, l(e).page, l(e), a.record),
750
- clickable: !p(s),
744
+ l(J)(r, a.record) ? q((v(), b(l(K), {
745
+ key: r.key,
746
+ icon: r.icon,
747
+ danger: r.danger,
748
+ disabled: p(r),
749
+ onClick: (m) => !p(r) && l(W)(r, l(e).page, l(e), a.record),
750
+ clickable: !p(r),
751
751
  class: E([
752
752
  "w-4 h-4",
753
- s.danger ? "text-red-500" : "text-gray-600",
754
- p(s) ? "opacity-30 cursor-not-allowed" : "hover:text-gray-800"
753
+ r.danger ? "text-red-500" : "text-gray-600",
754
+ p(r) ? "opacity-30 cursor-not-allowed" : "hover:text-gray-800"
755
755
  ])
756
756
  }, null, 8, ["icon", "danger", "disabled", "onClick", "clickable", "class"])), [
757
- [f, { url: t.value, role: s.role, permit: s.permit }]
758
- ]) : x("", !0)
757
+ [f, { url: t.value, role: r.role, permit: r.permit }]
758
+ ]) : _("", !0)
759
759
  ]),
760
760
  _: 2
761
- }, 1032, ["disabled", "title", "onConfirm"])) : x("", !0)
761
+ }, 1032, ["disabled", "title", "onConfirm"])) : _("", !0)
762
762
  ], 64))), 128)),
763
- c.record[l(e).statusKey] == 1 ? (v(), b(l(be), {
763
+ n.record[l(e).statusKey] == 1 ? (v(), b(l(be), {
764
764
  key: 0,
765
765
  autoInsertSpaceInButton: !1
766
766
  }, {
767
767
  default: h(() => [
768
- l(i).length > 0 ? (v(), b(l(it), {
768
+ l(i).length > 0 ? (v(), b(l(ut), {
769
769
  key: 0,
770
770
  size: "small"
771
771
  }, {
772
772
  overlay: h(() => [
773
773
  S(l(ke), null, {
774
774
  default: h(() => [
775
- (v(!0), w(L, null, V(l(i), (s) => (v(), w(L, {
776
- key: s.key
775
+ (v(!0), x(P, null, R(l(i), (r) => (v(), x(P, {
776
+ key: r.key
777
777
  }, [
778
- l(J)(s, a.record) ? W((v(), b(l(we), {
778
+ l(J)(r, a.record) ? q((v(), b(l(we), {
779
779
  key: 0,
780
- disabled: p(s),
781
- onClick: (m) => l(Y)(s, l(e).page, l(e), a.record)
780
+ disabled: p(r),
781
+ onClick: (m) => l(W)(r, l(e).page, l(e), a.record)
782
782
  }, {
783
783
  default: h(() => [
784
- M(N(s.label), 1)
784
+ z(U(r.label), 1)
785
785
  ]),
786
786
  _: 2
787
787
  }, 1032, ["disabled", "onClick"])), [
788
- [f, { url: t.value, role: s.role, permit: s.permit }]
789
- ]) : x("", !0)
788
+ [f, { url: t.value, role: r.role, permit: r.permit }]
789
+ ]) : _("", !0)
790
790
  ], 64))), 128))
791
791
  ]),
792
792
  _: 1
793
793
  })
794
794
  ]),
795
795
  default: h(() => [
796
- u[0] || (u[0] = M(" 更多 "))
796
+ c[0] || (c[0] = z(" 更多 "))
797
797
  ]),
798
798
  _: 1,
799
799
  __: [0]
800
- })) : x("", !0)
800
+ })) : _("", !0)
801
801
  ]),
802
802
  _: 1
803
- })) : x("", !0)
803
+ })) : _("", !0)
804
804
  ]),
805
805
  _: 1
806
806
  })
@@ -814,89 +814,89 @@ const Nl = async (r, a) => {
814
814
  props: {
815
815
  gridCtrl: {}
816
816
  },
817
- setup(r) {
818
- const a = r, e = a.gridCtrl, { tools: t } = Ca(a.gridCtrl), o = Ue();
819
- I(
817
+ setup(s) {
818
+ const a = s, e = a.gridCtrl, { tools: t } = Ca(a.gridCtrl), o = Ue();
819
+ D(
820
820
  () => e.selectable.value,
821
821
  (p) => {
822
822
  oe(t, "tool.export.excel.selected") && (oe(t, "tool.export.excel.selected").disabled = !p), oe(t, "tool.export.pdf.selected") && (oe(t, "tool.export.pdf.selected").disabled = !p);
823
823
  }
824
824
  );
825
- const n = y([]);
826
- I(
825
+ const u = y([]);
826
+ D(
827
827
  () => e.columns.value,
828
828
  (p) => {
829
- n.value = Je(p, !0);
829
+ u.value = Je(p, !0);
830
830
  },
831
831
  { deep: !0, immediate: !0 }
832
832
  );
833
833
  const i = () => {
834
- e.columns.value.splice(0, e.columns.value.length, ...n.value), o.setTableColumns(ue.currentRoute.value.path, e.columns.value);
834
+ e.columns.value.splice(0, e.columns.value.length, ...u.value), o.setTableColumns(ue.currentRoute.value.path, e.columns.value);
835
835
  };
836
- return (p, c) => (v(), w("div", Ea, [
837
- (v(!0), w(L, null, V(l(t), (u, f) => (v(), w(L, {
838
- key: u.key
836
+ return (p, n) => (v(), x("div", Ea, [
837
+ (v(!0), x(P, null, R(l(t), (c, f) => (v(), x(P, {
838
+ key: c.key
839
839
  }, [
840
- l(J)(u) && u.dropdown ? (v(), b(l(Ee), {
840
+ l(J)(c) && c.dropdown ? (v(), b(l(Ee), {
841
841
  key: 0,
842
842
  placement: "bottomRight",
843
843
  class: "p-0 rounded-none"
844
844
  }, {
845
845
  overlay: h(() => [
846
- D("div", {
847
- class: E(["min-w-[100px] bg-white rounded shadow-md p-4", u.dropdownClass])
846
+ F("div", {
847
+ class: E(["min-w-[100px] bg-white rounded shadow-md p-4", c.dropdownClass])
848
848
  }, [
849
- u.dropdown === "headset" ? (v(), b(l(pa), {
849
+ c.dropdown === "headset" ? (v(), b(l(pa), {
850
850
  key: 0,
851
- modelValue: n.value,
852
- "onUpdate:modelValue": c[1] || (c[1] = (s) => n.value = s),
851
+ modelValue: u.value,
852
+ "onUpdate:modelValue": n[1] || (n[1] = (r) => u.value = r),
853
853
  "item-key": "dataIndex",
854
854
  onEnd: i,
855
855
  handle: ".drag-handle"
856
856
  }, {
857
857
  default: h(() => [
858
- (v(!0), w(L, null, V(n.value, (s) => (v(), w("div", {
859
- key: s.name,
860
- onClick: c[0] || (c[0] = pe(() => {
858
+ (v(!0), x(P, null, R(u.value, (r) => (v(), x("div", {
859
+ key: r.name,
860
+ onClick: n[0] || (n[0] = pe(() => {
861
861
  }, ["stop"])),
862
862
  class: "flex items-center mb-2 last:mb-0 select-none"
863
863
  }, [
864
- c[2] || (c[2] = D("span", { class: "drag-handle mr-2 text-gray-400 hover:text-gray-600 cursor-move" }, "⋮⋮", -1)),
864
+ n[2] || (n[2] = F("span", { class: "drag-handle mr-2 text-gray-400 hover:text-gray-600 cursor-move" }, "⋮⋮", -1)),
865
865
  S(l(Qt), {
866
- checked: s.visible !== !1,
866
+ checked: r.visible !== !1,
867
867
  onChange: pe(
868
868
  (m) => {
869
- l(wa)(s, m.target.checked);
869
+ l(wa)(r, m.target.checked);
870
870
  },
871
871
  ["stop", "prevent"]
872
872
  ),
873
873
  class: "text-gray-700 hover:text-gray-900 select-none"
874
874
  }, {
875
875
  default: h(() => [
876
- M(N(s.title), 1)
876
+ z(U(r.title), 1)
877
877
  ]),
878
878
  _: 2
879
879
  }, 1032, ["checked", "onChange"])
880
880
  ]))), 128))
881
881
  ]),
882
882
  _: 1
883
- }, 8, ["modelValue"])) : x("", !0)
883
+ }, 8, ["modelValue"])) : _("", !0)
884
884
  ], 2)
885
885
  ]),
886
886
  default: h(() => [
887
- S(l(Q), {
887
+ S(l(Y), {
888
888
  class: E([
889
889
  "px-[8px] py-[2px] relative border-[#ccc] bg-[#fcfcfc] rounded-none text-[#666] hover:z-10",
890
890
  f === 0 ? "rounded-l-[5px]" : "",
891
891
  f === l(t).length - 1 ? "rounded-r-[5px]" : ""
892
892
  ]),
893
- disabled: l(te)(u),
894
- tiptext: u.label,
895
- onClick: (s) => l(Y)(u, l(e).page, l(e))
893
+ disabled: l(te)(c),
894
+ tiptext: c.label,
895
+ onClick: (r) => l(W)(c, l(e).page, l(e))
896
896
  }, {
897
897
  default: h(() => [
898
898
  S(l(K), {
899
- icon: u.icon,
899
+ icon: c.icon,
900
900
  class: "w-[18px] h-[18.5px]",
901
901
  clickable: ""
902
902
  }, null, 8, ["icon"])
@@ -905,26 +905,26 @@ const Nl = async (r, a) => {
905
905
  }, 1032, ["class", "disabled", "tiptext", "onClick"])
906
906
  ]),
907
907
  _: 2
908
- }, 1024)) : !u.children && l(J)(u) ? (v(), b(l(Q), {
908
+ }, 1024)) : !c.children && l(J)(c) ? (v(), b(l(Y), {
909
909
  key: 1,
910
910
  class: E([
911
911
  "px-[8px] py-[2px] relative border-[#ccc] bg-[#fcfcfc] rounded-none text-[#666] hover:z-10",
912
912
  f === 0 ? "rounded-l-[5px]" : "",
913
913
  f === l(t).length - 1 ? "rounded-r-[5px]" : ""
914
914
  ]),
915
- disabled: l(te)(u),
916
- tiptext: u.label,
917
- onClick: (s) => l(Y)(u, l(e).page, l(e))
915
+ disabled: l(te)(c),
916
+ tiptext: c.label,
917
+ onClick: (r) => l(W)(c, l(e).page, l(e))
918
918
  }, {
919
919
  default: h(() => [
920
920
  S(l(K), {
921
- icon: u.icon,
921
+ icon: c.icon,
922
922
  class: "w-[18px] h-[18.5px]",
923
923
  clickable: ""
924
924
  }, null, 8, ["icon"])
925
925
  ]),
926
926
  _: 2
927
- }, 1032, ["class", "disabled", "tiptext", "onClick"])) : l(J)(u) ? (v(), b(l(Ee), {
927
+ }, 1032, ["class", "disabled", "tiptext", "onClick"])) : l(J)(c) ? (v(), b(l(Ee), {
928
928
  key: 2,
929
929
  placement: "bottomRight",
930
930
  class: "p-0 rounded-none"
@@ -932,12 +932,12 @@ const Nl = async (r, a) => {
932
932
  overlay: h(() => [
933
933
  S(l(ke), null, {
934
934
  default: h(() => [
935
- (v(!0), w(L, null, V(u.children, (s) => (v(), b(l(we), {
936
- key: s.key,
937
- disabled: l(te)(s)
935
+ (v(!0), x(P, null, R(c.children, (r) => (v(), b(l(we), {
936
+ key: r.key,
937
+ disabled: l(te)(r)
938
938
  }, {
939
939
  default: h(() => [
940
- M(N(s.label), 1)
940
+ z(U(r.label), 1)
941
941
  ]),
942
942
  _: 2
943
943
  }, 1032, ["disabled"]))), 128))
@@ -946,16 +946,16 @@ const Nl = async (r, a) => {
946
946
  }, 1024)
947
947
  ]),
948
948
  default: h(() => [
949
- S(l(Q), {
949
+ S(l(Y), {
950
950
  class: E([
951
951
  "!w-[46px] px-[5px] py-[2px] relative border-[#ccc] bg-[#fcfcfc] rounded-none text-[#666] hover:z-10",
952
952
  f === 0 ? "rounded-l-[5px]" : ""
953
953
  ]),
954
- disabled: l(te)(u),
955
- tiptext: u.label,
956
- icon: u.icon,
954
+ disabled: l(te)(c),
955
+ tiptext: c.label,
956
+ icon: c.icon,
957
957
  iconProps: { class: "w-[19px] h-[19px]" },
958
- onClick: (s) => l(Y)(u, l(e).page, l(e))
958
+ onClick: (r) => l(W)(c, l(e).page, l(e))
959
959
  }, {
960
960
  default: h(() => [
961
961
  S(l(K), {
@@ -967,18 +967,18 @@ const Nl = async (r, a) => {
967
967
  }, 1032, ["class", "disabled", "tiptext", "icon", "onClick"])
968
968
  ]),
969
969
  _: 2
970
- }, 1024)) : x("", !0)
970
+ }, 1024)) : _("", !0)
971
971
  ], 64))), 128))
972
972
  ]));
973
973
  }
974
- }), Ua = { class: "flex justify-between mb-[10px]" }, Na = { key: 1 }, Ba = 3, yt = /* @__PURE__ */ T({
974
+ }), Ua = { class: "flex justify-between mb-[10px]" }, Na = { key: 1 }, Ba = 3, xt = /* @__PURE__ */ T({
975
975
  __name: "index",
976
976
  props: {
977
977
  gridCtrl: {},
978
978
  editorCtrl: {}
979
979
  },
980
- setup(r) {
981
- const a = r, e = a.gridCtrl, t = e.page, o = a.editorCtrl, n = R(() => ue.currentRoute.value.path), i = [
980
+ setup(s) {
981
+ const a = s, e = a.gridCtrl, t = e.page, o = a.editorCtrl, u = j(() => ue.currentRoute.value.path), i = [
982
982
  {
983
983
  key: "New",
984
984
  label: "新增",
@@ -988,92 +988,92 @@ const Nl = async (r, a) => {
988
988
  role: ["Super", "Admin"],
989
989
  permit: ":new",
990
990
  // 默认仅受权限码控制
991
- click: () => St(o)
991
+ click: () => $t(o)
992
992
  }
993
- ], p = y([]), c = y([]);
994
- return I(
993
+ ], p = y([]), n = y([]);
994
+ return D(
995
995
  () => {
996
- var u;
997
- return (u = e.buttons) == null ? void 0 : u.value;
996
+ var c;
997
+ return (c = e.buttons) == null ? void 0 : c.value;
998
998
  },
999
999
  () => {
1000
- var s;
1001
- const { buttons: u, menus: f } = Ce(
1000
+ var r;
1001
+ const { buttons: c, menus: f } = Ce(
1002
1002
  i,
1003
1003
  e.flat !== void 0 ? e.flat : Ba,
1004
- (s = e.buttons) == null ? void 0 : s.value
1004
+ (r = e.buttons) == null ? void 0 : r.value
1005
1005
  );
1006
- p.value.splice(0, p.value.length, ...u), c.value.splice(0, c.value.length, ...f);
1006
+ p.value.splice(0, p.value.length, ...c), n.value.splice(0, n.value.length, ...f);
1007
1007
  },
1008
1008
  {
1009
1009
  deep: !0,
1010
1010
  immediate: !0
1011
1011
  }
1012
- ), (u, f) => {
1013
- const s = re("auth");
1014
- return v(), w("div", Ua, [
1012
+ ), (c, f) => {
1013
+ const r = re("auth");
1014
+ return v(), x("div", Ua, [
1015
1015
  S(l(ie), null, {
1016
1016
  default: h(() => [
1017
- (v(!0), w(L, null, V(p.value, (m) => W((v(), b(l(Q), {
1017
+ (v(!0), x(P, null, R(p.value, (m) => q((v(), b(l(Y), {
1018
1018
  key: m.key,
1019
1019
  type: m.type,
1020
1020
  danger: m.danger,
1021
1021
  disabled: l(te)(m),
1022
1022
  icon: m.icon,
1023
- onClick: (d) => l(Y)(m, l(t), l(e))
1023
+ onClick: (d) => l(W)(m, l(t), l(e))
1024
1024
  }, {
1025
1025
  default: h(() => [
1026
- M(N(m.label), 1)
1026
+ z(U(m.label), 1)
1027
1027
  ]),
1028
1028
  _: 2
1029
1029
  }, 1032, ["type", "danger", "disabled", "icon", "onClick"])), [
1030
- [s, { url: n.value, role: m.role, permit: m.permit }]
1030
+ [r, { url: u.value, role: m.role, permit: m.permit }]
1031
1031
  ])), 128)),
1032
- c.value.length > 0 ? (v(), b(l(Ee), { key: 0 }, {
1032
+ n.value.length > 0 ? (v(), b(l(Ee), { key: 0 }, {
1033
1033
  overlay: h(() => [
1034
1034
  S(l(ke), null, {
1035
1035
  default: h(() => [
1036
- (v(!0), w(L, null, V(c.value, (m) => W((v(), b(l(we), {
1036
+ (v(!0), x(P, null, R(n.value, (m) => q((v(), b(l(we), {
1037
1037
  key: m.key,
1038
1038
  disabled: l(te)(m),
1039
- onClick: (d) => l(Y)(m, l(t), l(e))
1039
+ onClick: (d) => l(W)(m, l(t), l(e))
1040
1040
  }, {
1041
1041
  default: h(() => [
1042
- M(N(m.label), 1)
1042
+ z(U(m.label), 1)
1043
1043
  ]),
1044
1044
  _: 2
1045
1045
  }, 1032, ["disabled", "onClick"])), [
1046
- [s, { url: n.value, role: m.role, permit: m.permit }]
1046
+ [r, { url: u.value, role: m.role, permit: m.permit }]
1047
1047
  ])), 128))
1048
1048
  ]),
1049
1049
  _: 1
1050
1050
  })
1051
1051
  ]),
1052
1052
  default: h(() => [
1053
- S(l(Q), null, {
1053
+ S(l(Y), null, {
1054
1054
  default: h(() => f[0] || (f[0] = [
1055
- M(" 更多操作 ")
1055
+ z(" 更多操作 ")
1056
1056
  ])),
1057
1057
  _: 1,
1058
1058
  __: [0]
1059
1059
  })
1060
1060
  ]),
1061
1061
  _: 1
1062
- })) : x("", !0),
1063
- p.value.length === 0 && c.value.length === 0 ? (v(), w("span", Na)) : x("", !0)
1062
+ })) : _("", !0),
1063
+ p.value.length === 0 && n.value.length === 0 ? (v(), x("span", Na)) : _("", !0)
1064
1064
  ]),
1065
1065
  _: 1
1066
1066
  }),
1067
1067
  S(l(ie), { class: "mr-1" }, {
1068
1068
  default: h(() => [
1069
- (v(), b(Kt(La), { "grid-ctrl": l(e) }, null, 8, ["grid-ctrl"]))
1069
+ (v(), b(lt(La), { "grid-ctrl": l(e) }, null, 8, ["grid-ctrl"]))
1070
1070
  ]),
1071
1071
  _: 1
1072
1072
  })
1073
1073
  ]);
1074
1074
  };
1075
1075
  }
1076
- }), Ma = { class: "flex items-center justify-between" }, za = { class: "flex items-center space-x-2" }, Vl = /* @__PURE__ */ T({
1076
+ }), za = { class: "flex items-center justify-between" }, Ma = { class: "flex items-center space-x-2" }, ql = /* @__PURE__ */ T({
1077
1077
  inheritAttrs: !1,
1078
1078
  __name: "index",
1079
1079
  props: {
@@ -1085,56 +1085,56 @@ const Nl = async (r, a) => {
1085
1085
  titleField: { default: "Title" },
1086
1086
  statusDisabled: {}
1087
1087
  },
1088
- setup(r) {
1089
- const a = r, e = ne(), t = a.gridCtrl, o = R(() => ue.currentRoute.value.path);
1088
+ setup(s) {
1089
+ const a = s, e = ne(), t = a.gridCtrl, o = j(() => ue.currentRoute.value.path);
1090
1090
  t && (t.pageNo.value = 1, t.total.value = 0, t.pageSize.value = t.pageSize.value);
1091
- const n = y(t.pageSize.value), i = y(t.pageNo.value), p = y([]), c = y({
1091
+ const u = y(t.pageSize.value), i = y(t.pageNo.value), p = y([]), n = y({
1092
1092
  total: 0,
1093
1093
  current: 1,
1094
- pageSize: n.value,
1094
+ pageSize: u.value,
1095
1095
  showTotal: (f) => `共 ${f} 条记录`,
1096
- onChange: (f, s) => {
1097
- c.value !== !1 && (c.value.current = f, c.value.pageSize = s), n.value = s, i.value = f, t && (t.pageNo.value = f, t.pageSize.value = s, t.remotePage && me(t));
1096
+ onChange: (f, r) => {
1097
+ n.value !== !1 && (n.value.current = f, n.value.pageSize = r), u.value = r, i.value = f, t && (t.pageNo.value = f, t.pageSize.value = r, t.remotePage && me(t));
1098
1098
  },
1099
1099
  ...a.pagination === !1 ? {} : a.pagination
1100
1100
  });
1101
- a.pagination === !1 && (c.value = !1), I(
1101
+ a.pagination === !1 && (n.value = !1), D(
1102
1102
  () => t.tableData.value,
1103
1103
  (f) => {
1104
- f && (p.value = f, c.value !== !1 && (c.value.total = t.total.value ?? 0, c.value.current = t.pageNo.value ?? 1, c.value.pageSize = t.pageSize.value ?? 10));
1104
+ f && (p.value = f, n.value !== !1 && (n.value.total = t.total.value ?? 0, n.value.current = t.pageNo.value ?? 1, n.value.pageSize = t.pageSize.value ?? 10));
1105
1105
  },
1106
1106
  { immediate: !0 }
1107
- ), I(
1107
+ ), D(
1108
1108
  () => a.listData,
1109
1109
  (f) => {
1110
- f && (p.value = f, c.value !== !1 && (c.value.total = f.length, c.value.current = t.pageNo.value ?? 1, c.value.pageSize = t.pageSize.value ?? 10));
1110
+ f && (p.value = f, n.value !== !1 && (n.value.total = f.length, n.value.current = t.pageNo.value ?? 1, n.value.pageSize = t.pageSize.value ?? 10));
1111
1111
  },
1112
1112
  { immediate: !0 }
1113
1113
  );
1114
- const u = y(!1);
1115
- return xe(() => {
1116
- u.value && t && t.autoload && (t.reload.value = !0);
1114
+ const c = y(!1);
1115
+ return _e(() => {
1116
+ c.value && t && t.autoload && (t.reload.value = !0);
1117
1117
  }), X(async () => {
1118
- var f, s, m, d, g;
1119
- _e(ae.GridControl, t), t.page && ((f = t.gridUrl) != null && f.url) && (((s = t.gridUrl) == null ? void 0 : s.url) === ((m = t.page.urls.list) == null ? void 0 : m.url) && (t.remotePage = !1), ((d = t.gridUrl) == null ? void 0 : d.url) === ((g = t.page.urls.find) == null ? void 0 : g.url) && (t.remotePage = !0)), t.tableData.value ? (p.value = t.tableData.value, t.total.value = p.value.length, c.value !== !1 && (c.value.total = t.total.value ?? 0)) : t.autoload !== !1 && (t.remotePage ? p.value = (await me(t)).rows : p.value = await Xe(t)), setTimeout(() => {
1120
- u.value = !0;
1118
+ var f, r, m, d, g;
1119
+ xe(ae.GridControl, t), t.page && ((f = t.gridUrl) != null && f.url) && (((r = t.gridUrl) == null ? void 0 : r.url) === ((m = t.page.urls.list) == null ? void 0 : m.url) && (t.remotePage = !1), ((d = t.gridUrl) == null ? void 0 : d.url) === ((g = t.page.urls.find) == null ? void 0 : g.url) && (t.remotePage = !0)), t.tableData.value ? (p.value = t.tableData.value, t.total.value = p.value.length, n.value !== !1 && (n.value.total = t.total.value ?? 0)) : t.autoload !== !1 && (t.remotePage ? p.value = (await me(t)).rows : p.value = await Xe(t)), setTimeout(() => {
1120
+ c.value = !0;
1121
1121
  }, 50);
1122
- }), (f, s) => {
1122
+ }), (f, r) => {
1123
1123
  var d, g;
1124
1124
  const m = re("auth");
1125
- return v(), w(L, null, [
1126
- (d = l(t).buttons) != null && d.value.length || (g = l(t).tools) != null && g.length ? (v(), b(yt, {
1125
+ return v(), x(P, null, [
1126
+ (d = l(t).buttons) != null && d.value.length || (g = l(t).tools) != null && g.length ? (v(), b(xt, {
1127
1127
  key: 0,
1128
1128
  "grid-ctrl": l(t),
1129
1129
  "editor-ctrl": l(t).editor
1130
- }, null, 8, ["grid-ctrl", "editor-ctrl"])) : x("", !0),
1131
- u.value ? (v(), b(l(Gt), B({
1130
+ }, null, 8, ["grid-ctrl", "editor-ctrl"])) : _("", !0),
1131
+ c.value ? (v(), b(l(Gt), N({
1132
1132
  key: 1,
1133
1133
  class: "w-full min-h-[480px]",
1134
1134
  grid: a.grid,
1135
1135
  "data-source": p.value,
1136
1136
  loading: l(t).isGridLoading.value,
1137
- pagination: c.value
1137
+ pagination: n.value
1138
1138
  }, l(e)), {
1139
1139
  renderItem: h(({ item: C }) => [
1140
1140
  S(l(Jt), { class: "!m-0 !p-0" }, {
@@ -1145,15 +1145,15 @@ const Nl = async (r, a) => {
1145
1145
  "body-style": { padding: "4px" }
1146
1146
  }, {
1147
1147
  title: h(() => [
1148
- D("div", Ma, [
1149
- D("span", null, N(C[a.titleField]), 1),
1150
- D("div", za, [
1151
- W(S(Ze, {
1148
+ F("div", za, [
1149
+ F("span", null, U(C[a.titleField]), 1),
1150
+ F("div", Ma, [
1151
+ q(S(Ze, {
1152
1152
  checked: C[l(t).statusKey],
1153
- "onUpdate:checked": (F) => C[l(t).statusKey] = F,
1153
+ "onUpdate:checked": (I) => C[l(t).statusKey] = I,
1154
1154
  disabled: f.statusDisabled ? f.statusDisabled(C) : !1,
1155
1155
  data: l(Ne).EnableDisable,
1156
- onClick: (F) => l(et)(l(t), C),
1156
+ onClick: (I) => l(et)(l(t), C),
1157
1157
  size: "small",
1158
1158
  class: E([
1159
1159
  "relative mt-[3px] transform scale-[1.1]",
@@ -1171,7 +1171,7 @@ const Nl = async (r, a) => {
1171
1171
  ])
1172
1172
  ]),
1173
1173
  default: h(() => [
1174
- P(f.$slots, "cardContent", { record: C })
1174
+ L(f.$slots, "cardContent", { record: C })
1175
1175
  ]),
1176
1176
  _: 2
1177
1177
  }, 1024)
@@ -1180,14 +1180,14 @@ const Nl = async (r, a) => {
1180
1180
  }, 1024)
1181
1181
  ]),
1182
1182
  _: 3
1183
- }, 16, ["grid", "data-source", "loading", "pagination"])) : x("", !0)
1183
+ }, 16, ["grid", "data-source", "loading", "pagination"])) : _("", !0)
1184
1184
  ], 64);
1185
1185
  };
1186
1186
  }
1187
1187
  }), Oa = { class: "w-1/3 relative mb-1" }, Aa = { class: "flex items-center w-[90%]" }, Ra = { class: "flex-grow pl-1" }, Ka = {
1188
1188
  key: 0,
1189
1189
  class: "absolute bottom-[3px] left-[85px] text-[12px] text-[#ff4d4fcc] block"
1190
- }, Fe = /* @__PURE__ */ T({
1190
+ }, Ie = /* @__PURE__ */ T({
1191
1191
  inheritAttrs: !1,
1192
1192
  __name: "searchItem",
1193
1193
  props: {
@@ -1195,26 +1195,26 @@ const Nl = async (r, a) => {
1195
1195
  width: {},
1196
1196
  rule: {}
1197
1197
  },
1198
- setup(r) {
1199
- const a = r, e = ne(), t = ge(ae.EditorControl, void 0), o = qe(a, t), n = R(() => {
1198
+ setup(s) {
1199
+ const a = s, e = ne(), t = ge(ae.EditorControl, void 0), o = qe(a, t), u = j(() => {
1200
1200
  var p;
1201
1201
  if (!a.rule)
1202
1202
  return !1;
1203
1203
  const i = He(a.rule.split("."), (p = t == null ? void 0 : t.formRules) == null ? void 0 : p.value);
1204
1204
  return i ? (i.required || (o.value.errClass = "", o.value.msg = ""), i.required ?? !0) : (G.error(`"${a.label}" 的验证规则 \`${a.rule}\` 不存在`), o.value.errClass = "text-[#ff4d4f]", o.value.msg = `规则 \`${a.rule}\` 不存在,请检查代码!`, !0);
1205
1205
  });
1206
- return (i, p) => (v(), w("div", Oa, [
1207
- S(l(ot), B({
1208
- required: n.value,
1206
+ return (i, p) => (v(), x("div", Oa, [
1207
+ S(l(nt), N({
1208
+ required: u.value,
1209
1209
  class: "w-[90%] relative"
1210
1210
  }, l(e), {
1211
1211
  class: [i.rule ? "" : "mb-3", i.width],
1212
1212
  labelCol: { span: 6 }
1213
- }), lt({
1213
+ }), rt({
1214
1214
  default: h(() => [
1215
- D("div", Aa, [
1216
- D("div", Ra, [
1217
- P(i.$slots, "default")
1215
+ F("div", Aa, [
1216
+ F("div", Ra, [
1217
+ L(i.$slots, "default")
1218
1218
  ])
1219
1219
  ])
1220
1220
  ]),
@@ -1223,17 +1223,17 @@ const Nl = async (r, a) => {
1223
1223
  i.label ? {
1224
1224
  name: "label",
1225
1225
  fn: h(() => [
1226
- D("span", {
1226
+ F("span", {
1227
1227
  class: E([l(o).errClass ? "text-[#ff4d4f]" : "", "w-full"])
1228
- }, N(i.label), 3)
1228
+ }, U(i.label), 3)
1229
1229
  ]),
1230
1230
  key: "0"
1231
1231
  } : void 0
1232
1232
  ]), 1040, ["required", "class"]),
1233
- l(o).msg ? (v(), w("span", Ka, N(l(o).msg), 1)) : x("", !0)
1233
+ l(o).msg ? (v(), x("span", Ka, U(l(o).msg), 1)) : _("", !0)
1234
1234
  ]));
1235
1235
  }
1236
- }), Yl = /* @__PURE__ */ T({
1236
+ }), Hl = /* @__PURE__ */ T({
1237
1237
  __name: "index",
1238
1238
  props: {
1239
1239
  search: {},
@@ -1241,28 +1241,28 @@ const Nl = async (r, a) => {
1241
1241
  likeFields: {}
1242
1242
  },
1243
1243
  emits: ["update:search", "onsearch", "onreset"],
1244
- setup(r, { emit: a }) {
1245
- const e = r, t = a, o = y(0), n = y(0), i = y(0), p = (d) => {
1244
+ setup(s, { emit: a }) {
1245
+ const e = s, t = a, o = y(0), u = y(0), i = y(0), p = (d) => {
1246
1246
  let g = 0;
1247
1247
  for (let C = 0; C < d.length; C++)
1248
1248
  typeof d[C].type == "object" && g++;
1249
1249
  return g;
1250
- }, c = jt(), u = () => {
1251
- n.value = 0, i.value = 0, c.default && (n.value = p(c.default({}))), e.gridCtrl && e.gridCtrl.searchBar && c.control && (i.value = p(c.control({}))), o.value = 2 - (n.value + i.value) % 3;
1250
+ }, n = jt(), c = () => {
1251
+ u.value = 0, i.value = 0, n.default && (u.value = p(n.default({}))), e.gridCtrl && e.gridCtrl.searchBar && n.control && (i.value = p(n.control({}))), o.value = 2 - (u.value + i.value) % 3;
1252
1252
  };
1253
- I(
1253
+ D(
1254
1254
  () => {
1255
1255
  var d;
1256
1256
  return (d = e.gridCtrl) == null ? void 0 : d.searchBar;
1257
1257
  },
1258
1258
  () => {
1259
- u();
1259
+ c();
1260
1260
  }
1261
1261
  );
1262
1262
  const f = JSON.parse(JSON.stringify(e.search));
1263
1263
  X(() => {
1264
1264
  var g;
1265
- u();
1265
+ c();
1266
1266
  let d = { ...e.search };
1267
1267
  e.gridCtrl && (e.gridCtrl.gridQuery = {
1268
1268
  ...e.gridCtrl.gridQuery,
@@ -1272,7 +1272,7 @@ const Nl = async (r, a) => {
1272
1272
  }
1273
1273
  });
1274
1274
  });
1275
- const s = () => {
1275
+ const r = () => {
1276
1276
  var g;
1277
1277
  let d = { ...e.search };
1278
1278
  if (e.likeFields)
@@ -1293,7 +1293,7 @@ const Nl = async (r, a) => {
1293
1293
  };
1294
1294
  return (d, g) => {
1295
1295
  const C = re("submit");
1296
- return n.value + i.value > 0 ? W((v(), b(l(st), {
1296
+ return u.value + i.value > 0 ? q((v(), b(l(ot), {
1297
1297
  key: 0,
1298
1298
  "label-col": { flex: "60px" },
1299
1299
  style: {
@@ -1303,19 +1303,19 @@ const Nl = async (r, a) => {
1303
1303
  class: "flex mb-[10px]"
1304
1304
  }, {
1305
1305
  default: h(() => {
1306
- var F, U;
1306
+ var I, B;
1307
1307
  return [
1308
- P(d.$slots, "default"),
1309
- (F = d.gridCtrl) != null && F.searchBar ? P(d.$slots, "control", { key: 0 }) : x("", !0),
1310
- o.value >= 1 ? (v(), b(Fe, {
1308
+ L(d.$slots, "default"),
1309
+ (I = d.gridCtrl) != null && I.searchBar ? L(d.$slots, "control", { key: 0 }) : _("", !0),
1310
+ o.value >= 1 ? (v(), b(Ie, {
1311
1311
  key: 1,
1312
1312
  class: "w-1/3"
1313
- })) : x("", !0),
1314
- o.value >= 2 ? (v(), b(Fe, {
1313
+ })) : _("", !0),
1314
+ o.value >= 2 ? (v(), b(Ie, {
1315
1315
  key: 2,
1316
1316
  class: "w-1/3"
1317
- })) : x("", !0),
1318
- n.value || (U = d.gridCtrl) != null && U.searchBar ? (v(), b(Fe, {
1317
+ })) : _("", !0),
1318
+ u.value || (B = d.gridCtrl) != null && B.searchBar ? (v(), b(Ie, {
1319
1319
  key: 3,
1320
1320
  class: "w-1/3 flex justify-end text-right pr-5",
1321
1321
  "wrapper-col": { flex: "auto" }
@@ -1323,23 +1323,23 @@ const Nl = async (r, a) => {
1323
1323
  default: h(() => [
1324
1324
  S(l(ie), null, {
1325
1325
  default: h(() => [
1326
- S(l(Q), {
1326
+ S(l(Y), {
1327
1327
  type: "primary",
1328
- onClick: s,
1328
+ onClick: r,
1329
1329
  icon: "icon-search"
1330
1330
  }, {
1331
1331
  default: h(() => g[0] || (g[0] = [
1332
- M("搜索")
1332
+ z("搜索")
1333
1333
  ])),
1334
1334
  _: 1,
1335
1335
  __: [0]
1336
1336
  }),
1337
- S(l(Q), {
1337
+ S(l(Y), {
1338
1338
  onClick: m,
1339
1339
  icon: "icon-reset"
1340
1340
  }, {
1341
1341
  default: h(() => g[1] || (g[1] = [
1342
- M("重置")
1342
+ z("重置")
1343
1343
  ])),
1344
1344
  _: 1,
1345
1345
  __: [1]
@@ -1349,13 +1349,13 @@ const Nl = async (r, a) => {
1349
1349
  })
1350
1350
  ]),
1351
1351
  _: 1
1352
- })) : x("", !0)
1352
+ })) : _("", !0)
1353
1353
  ];
1354
1354
  }),
1355
1355
  _: 3
1356
1356
  })), [
1357
- [C, s]
1358
- ]) : x("", !0);
1357
+ [C, r]
1358
+ ]) : _("", !0);
1359
1359
  };
1360
1360
  }
1361
1361
  }), ja = /* @__PURE__ */ T({
@@ -1364,8 +1364,8 @@ const Nl = async (r, a) => {
1364
1364
  record: {},
1365
1365
  gridCtrl: {}
1366
1366
  },
1367
- setup(r) {
1368
- const a = r, e = a.gridCtrl, t = R(() => ue.currentRoute.value.path), o = [
1367
+ setup(s) {
1368
+ const a = s, e = a.gridCtrl, t = j(() => ue.currentRoute.value.path), o = [
1369
1369
  {
1370
1370
  key: "Edit",
1371
1371
  label: "编辑",
@@ -1387,13 +1387,13 @@ const Nl = async (r, a) => {
1387
1387
  confirmText: "是否删除此记录?",
1388
1388
  click: () => Ge(e, a.record)
1389
1389
  }
1390
- ], { buttons: n, menus: i } = Ce(o, 0, e.operates), p = (c) => {
1391
- if (typeof c.disabled == "boolean")
1392
- return c.disabled;
1393
- if (typeof c.disabled == "function")
1394
- return te(c, a.record) ?? !1;
1390
+ ], { buttons: u, menus: i } = Ce(o, 0, e.operates), p = (n) => {
1391
+ if (typeof n.disabled == "boolean")
1392
+ return n.disabled;
1393
+ if (typeof n.disabled == "function")
1394
+ return te(n, a.record) ?? !1;
1395
1395
  if (a.record.hasOwnProperty(e.statusKey))
1396
- switch (c.key) {
1396
+ switch (n.key) {
1397
1397
  case "Edit":
1398
1398
  return !a.record[e.statusKey];
1399
1399
  // 启用时可编辑,停用时不可编辑
@@ -1402,7 +1402,7 @@ const Nl = async (r, a) => {
1402
1402
  }
1403
1403
  return !1;
1404
1404
  };
1405
- return (c, u) => {
1405
+ return (n, c) => {
1406
1406
  const f = re("auth");
1407
1407
  return v(), b(l(be), { theme: {
1408
1408
  token: {
@@ -1412,83 +1412,83 @@ const Nl = async (r, a) => {
1412
1412
  default: h(() => [
1413
1413
  S(l(ie), null, {
1414
1414
  default: h(() => [
1415
- (v(!0), w(L, null, V(l(n), (s) => (v(), w(L, {
1416
- key: s.key
1415
+ (v(!0), x(P, null, R(l(u), (r) => (v(), x(P, {
1416
+ key: r.key
1417
1417
  }, [
1418
- l(J)(s, a.record) ? (v(), b(l(nt), {
1418
+ l(J)(r, a.record) ? (v(), b(l(it), {
1419
1419
  key: 0,
1420
- disabled: p(s) || !s.confirm,
1420
+ disabled: p(r) || !r.confirm,
1421
1421
  cancelText: "否",
1422
1422
  okText: "是",
1423
- title: s.confirmText,
1423
+ title: r.confirmText,
1424
1424
  okButtonProps: { size: "small" },
1425
1425
  cancelButtonProps: { size: "small" },
1426
- onConfirm: (m) => l(Y)(s, l(e).page, l(e), a.record, !0)
1426
+ onConfirm: (m) => l(W)(r, l(e).page, l(e), a.record, !0)
1427
1427
  }, {
1428
1428
  default: h(() => [
1429
- l(J)(s, a.record) ? W((v(), b(l(ut), {
1430
- key: s.key,
1431
- type: s.type ?? "text",
1432
- danger: s.danger,
1433
- disabled: p(s),
1434
- onClick: (m) => l(Y)(s, l(e).page, l(e), a.record),
1429
+ l(J)(r, a.record) ? q((v(), b(l(ct), {
1430
+ key: r.key,
1431
+ type: r.type ?? "text",
1432
+ danger: r.danger,
1433
+ disabled: p(r),
1434
+ onClick: (m) => l(W)(r, l(e).page, l(e), a.record),
1435
1435
  size: "small",
1436
- style: ze({
1437
- padding: s.type ?? "0px 4px"
1436
+ style: Me({
1437
+ padding: r.type ?? "0px 4px"
1438
1438
  })
1439
1439
  }, {
1440
1440
  default: h(() => [
1441
- M(N(s.label), 1)
1441
+ z(U(r.label), 1)
1442
1442
  ]),
1443
1443
  _: 2
1444
1444
  }, 1032, ["type", "danger", "disabled", "onClick", "style"])), [
1445
- [f, { url: t.value, role: s.role, permit: s.permit }]
1446
- ]) : x("", !0)
1445
+ [f, { url: t.value, role: r.role, permit: r.permit }]
1446
+ ]) : _("", !0)
1447
1447
  ]),
1448
1448
  _: 2
1449
- }, 1032, ["disabled", "title", "onConfirm"])) : x("", !0)
1449
+ }, 1032, ["disabled", "title", "onConfirm"])) : _("", !0)
1450
1450
  ], 64))), 128)),
1451
- c.record[l(e).statusKey] == 1 ? (v(), b(l(be), {
1451
+ n.record[l(e).statusKey] == 1 ? (v(), b(l(be), {
1452
1452
  key: 0,
1453
1453
  autoInsertSpaceInButton: !1
1454
1454
  }, {
1455
1455
  default: h(() => [
1456
- l(i).length > 0 ? (v(), b(l(it), {
1456
+ l(i).length > 0 ? (v(), b(l(ut), {
1457
1457
  key: 0,
1458
1458
  size: "small"
1459
1459
  }, {
1460
1460
  overlay: h(() => [
1461
1461
  S(l(ke), null, {
1462
1462
  default: h(() => [
1463
- (v(!0), w(L, null, V(l(i), (s) => (v(), w(L, {
1464
- key: s.key
1463
+ (v(!0), x(P, null, R(l(i), (r) => (v(), x(P, {
1464
+ key: r.key
1465
1465
  }, [
1466
- l(J)(s, a.record) ? W((v(), b(l(we), {
1466
+ l(J)(r, a.record) ? q((v(), b(l(we), {
1467
1467
  key: 0,
1468
- disabled: p(s),
1469
- onClick: (m) => l(Y)(s, l(e).page, l(e), a.record)
1468
+ disabled: p(r),
1469
+ onClick: (m) => l(W)(r, l(e).page, l(e), a.record)
1470
1470
  }, {
1471
1471
  default: h(() => [
1472
- M(N(s.label), 1)
1472
+ z(U(r.label), 1)
1473
1473
  ]),
1474
1474
  _: 2
1475
1475
  }, 1032, ["disabled", "onClick"])), [
1476
- [f, { url: t.value, role: s.role, permit: s.permit }]
1477
- ]) : x("", !0)
1476
+ [f, { url: t.value, role: r.role, permit: r.permit }]
1477
+ ]) : _("", !0)
1478
1478
  ], 64))), 128))
1479
1479
  ]),
1480
1480
  _: 1
1481
1481
  })
1482
1482
  ]),
1483
1483
  default: h(() => [
1484
- u[0] || (u[0] = M(" 更多 "))
1484
+ c[0] || (c[0] = z(" 更多 "))
1485
1485
  ]),
1486
1486
  _: 1,
1487
1487
  __: [0]
1488
- })) : x("", !0)
1488
+ })) : _("", !0)
1489
1489
  ]),
1490
1490
  _: 1
1491
- })) : x("", !0)
1491
+ })) : _("", !0)
1492
1492
  ]),
1493
1493
  _: 1
1494
1494
  })
@@ -1497,7 +1497,7 @@ const Nl = async (r, a) => {
1497
1497
  });
1498
1498
  };
1499
1499
  }
1500
- }), Wl = /* @__PURE__ */ T({
1500
+ }), Ql = /* @__PURE__ */ T({
1501
1501
  inheritAttrs: !1,
1502
1502
  __name: "index",
1503
1503
  props: {
@@ -1509,33 +1509,33 @@ const Nl = async (r, a) => {
1509
1509
  scroll: {},
1510
1510
  statusDisabled: {}
1511
1511
  },
1512
- setup(r) {
1513
- const a = r, e = ne(), t = a.gridCtrl, o = R(() => ue.currentRoute.value.path);
1512
+ setup(s) {
1513
+ const a = s, e = ne(), t = a.gridCtrl, o = j(() => ue.currentRoute.value.path);
1514
1514
  t && (t.pageNo.value = 1, t.total.value = 0, t.pageSize.value = t.pageSize.value);
1515
- const n = y(t.pageSize.value), i = y(t.pageNo.value), p = y([]), c = y({
1515
+ const u = y(t.pageSize.value), i = y(t.pageNo.value), p = y([]), n = y({
1516
1516
  total: 0,
1517
1517
  current: 1,
1518
- pageSize: n.value,
1518
+ pageSize: u.value,
1519
1519
  showTotal: (d) => `共 ${d} 条记录`,
1520
1520
  onChange: (d, g) => {
1521
- c.value !== !1 && (c.value.current = d, c.value.pageSize = g), n.value = g, i.value = d, t && (t.pageNo.value = d, t.pageSize.value = g, t.remotePage && me(t));
1521
+ n.value !== !1 && (n.value.current = d, n.value.pageSize = g), u.value = g, i.value = d, t && (t.pageNo.value = d, t.pageSize.value = g, t.remotePage && me(t));
1522
1522
  },
1523
1523
  ...a.pagination === !1 ? {} : a.pagination
1524
1524
  });
1525
- a.pagination === !1 && (c.value = !1), I(
1525
+ a.pagination === !1 && (n.value = !1), D(
1526
1526
  () => t.tableData.value,
1527
1527
  (d) => {
1528
- d && (p.value = d, c.value !== !1 && (c.value.total = t.total.value ?? 0, c.value.current = t.pageNo.value ?? 1, c.value.pageSize = t.pageSize.value ?? 10));
1528
+ d && (p.value = d, n.value !== !1 && (n.value.total = t.total.value ?? 0, n.value.current = t.pageNo.value ?? 1, n.value.pageSize = t.pageSize.value ?? 10));
1529
1529
  },
1530
1530
  { immediate: !0 }
1531
- ), I(
1531
+ ), D(
1532
1532
  () => a.tableData,
1533
1533
  (d) => {
1534
- d && (p.value = d, c.value !== !1 && (c.value.total = d.length, c.value.current = t.pageNo.value ?? 1, c.value.pageSize = t.pageSize.value ?? 10));
1534
+ d && (p.value = d, n.value !== !1 && (n.value.total = d.length, n.value.current = t.pageNo.value ?? 1, n.value.pageSize = t.pageSize.value ?? 10));
1535
1535
  },
1536
1536
  { immediate: !0 }
1537
1537
  );
1538
- const u = y(t.columns.value), f = {
1538
+ const c = y(t.columns.value), f = {
1539
1539
  onChange: (d, g) => {
1540
1540
  t && (t.selectKeys.value = d, t.selectRows.value = g);
1541
1541
  },
@@ -1544,58 +1544,58 @@ const Nl = async (r, a) => {
1544
1544
  disabled: d.Enabled === 0
1545
1545
  }),
1546
1546
  ...a.rowSelection
1547
- }, s = y(f);
1548
- I(
1547
+ }, r = y(f);
1548
+ D(
1549
1549
  () => t.selectable.value,
1550
1550
  (d) => {
1551
- t && (s.value = d ? f : void 0);
1551
+ t && (r.value = d ? f : void 0);
1552
1552
  },
1553
1553
  { immediate: !0 }
1554
- ), I(
1554
+ ), D(
1555
1555
  () => t.columns.value,
1556
1556
  () => {
1557
- u.value = Je(t.columns.value);
1557
+ c.value = Je(t.columns.value);
1558
1558
  },
1559
1559
  { deep: !0, immediate: !0 }
1560
1560
  );
1561
1561
  const m = y(!1);
1562
- return xe(() => {
1562
+ return _e(() => {
1563
1563
  m.value && t && t.autoload && (t.reload.value = !0);
1564
1564
  }), X(async () => {
1565
- var d, g, C, F, U;
1566
- _e(ae.GridControl, t), t.page && ((d = t.gridUrl) != null && d.url) && (((g = t.gridUrl) == null ? void 0 : g.url) === ((C = t.page.urls.list) == null ? void 0 : C.url) && (t.remotePage = !1), ((F = t.gridUrl) == null ? void 0 : F.url) === ((U = t.page.urls.find) == null ? void 0 : U.url) && (t.remotePage = !0)), t.tableData.value ? (p.value = t.tableData.value, t.total.value = p.value.length, c.value !== !1 && (c.value.total = t.total.value ?? 0)) : t.autoload !== !1 && (t.remotePage ? p.value = (await me(t)).rows : p.value = await Xe(t)), setTimeout(() => {
1565
+ var d, g, C, I, B;
1566
+ xe(ae.GridControl, t), t.page && ((d = t.gridUrl) != null && d.url) && (((g = t.gridUrl) == null ? void 0 : g.url) === ((C = t.page.urls.list) == null ? void 0 : C.url) && (t.remotePage = !1), ((I = t.gridUrl) == null ? void 0 : I.url) === ((B = t.page.urls.find) == null ? void 0 : B.url) && (t.remotePage = !0)), t.tableData.value ? (p.value = t.tableData.value, t.total.value = p.value.length, n.value !== !1 && (n.value.total = t.total.value ?? 0)) : t.autoload !== !1 && (t.remotePage ? p.value = (await me(t)).rows : p.value = await Xe(t)), setTimeout(() => {
1567
1567
  m.value = !0;
1568
1568
  }, 50);
1569
1569
  }), (d, g) => {
1570
- var F, U;
1570
+ var I, B;
1571
1571
  const C = re("auth");
1572
- return v(), w(L, null, [
1573
- (F = l(t).buttons) != null && F.value.length || (U = l(t).tools) != null && U.length ? (v(), b(yt, {
1572
+ return v(), x(P, null, [
1573
+ (I = l(t).buttons) != null && I.value.length || (B = l(t).tools) != null && B.length ? (v(), b(xt, {
1574
1574
  key: 0,
1575
1575
  "grid-ctrl": l(t),
1576
1576
  "editor-ctrl": l(t).editor
1577
- }, null, 8, ["grid-ctrl", "editor-ctrl"])) : x("", !0),
1578
- m.value ? (v(), b(l(ct), B({
1577
+ }, null, 8, ["grid-ctrl", "editor-ctrl"])) : _("", !0),
1578
+ m.value ? (v(), b(l(dt), N({
1579
1579
  key: 1,
1580
1580
  class: "w-full min-h-[480px]",
1581
1581
  "row-key": a.primaryKey ?? l(t).primaryKey ?? "Id",
1582
1582
  "data-source": p.value,
1583
1583
  loading: l(t).isGridLoading.value,
1584
- columns: u.value,
1585
- pagination: c.value,
1586
- "row-selection": s.value,
1584
+ columns: c.value,
1585
+ pagination: n.value,
1586
+ "row-selection": r.value,
1587
1587
  scroll: a.scroll || { x: 700 },
1588
1588
  size: l(t).tableSize.value,
1589
1589
  bordered: ""
1590
1590
  }, l(e)), {
1591
1591
  bodyCell: h(($) => {
1592
- var A, H;
1592
+ var A, Q;
1593
1593
  return [
1594
- P(d.$slots, "bodyCell", {
1594
+ L(d.$slots, "bodyCell", {
1595
1595
  column: $ == null ? void 0 : $.column,
1596
1596
  record: $ == null ? void 0 : $.record
1597
1597
  }),
1598
- l(t) && ((A = $ == null ? void 0 : $.column) == null ? void 0 : A.dataIndex) === "enabled" ? W((v(), b(Ze, {
1598
+ l(t) && ((A = $ == null ? void 0 : $.column) == null ? void 0 : A.dataIndex) === "enabled" ? q((v(), b(Ze, {
1599
1599
  key: 0,
1600
1600
  checked: $.record[l(t).statusKey],
1601
1601
  "onUpdate:checked": (Z) => $.record[l(t).statusKey] = Z,
@@ -1609,8 +1609,8 @@ const Nl = async (r, a) => {
1609
1609
  loading: $ == null ? void 0 : $.record.isLoading
1610
1610
  }, null, 8, ["checked", "onUpdate:checked", "disabled", "data", "onClick", "class", "loading"])), [
1611
1611
  [C, { url: o.value, role: ["Super", "Admin"], permit: ":enabled" }, "disable"]
1612
- ]) : x("", !0),
1613
- l(t) && ((H = $ == null ? void 0 : $.column) == null ? void 0 : H.dataIndex) === "operation" ? P(d.$slots, "operate", {
1612
+ ]) : _("", !0),
1613
+ l(t) && ((Q = $ == null ? void 0 : $.column) == null ? void 0 : Q.dataIndex) === "operation" ? L(d.$slots, "operate", {
1614
1614
  key: 1,
1615
1615
  record: $ == null ? void 0 : $.record
1616
1616
  }, () => [
@@ -1618,15 +1618,79 @@ const Nl = async (r, a) => {
1618
1618
  record: $ == null ? void 0 : $.record,
1619
1619
  "grid-ctrl": l(t)
1620
1620
  }, null, 8, ["record", "grid-ctrl"])
1621
- ]) : x("", !0)
1621
+ ]) : _("", !0)
1622
1622
  ];
1623
1623
  }),
1624
1624
  _: 3
1625
- }, 16, ["row-key", "data-source", "loading", "columns", "pagination", "row-selection", "scroll", "size"])) : x("", !0)
1625
+ }, 16, ["row-key", "data-source", "loading", "columns", "pagination", "row-selection", "scroll", "size"])) : _("", !0)
1626
1626
  ], 64);
1627
1627
  };
1628
1628
  }
1629
- }), Va = { class: "flex items-center gap-1" }, Ya = { class: "text-nowrap" }, ql = /* @__PURE__ */ T({
1629
+ }), Va = { class: "flex items-center" }, Ya = {
1630
+ key: 0,
1631
+ class: "inline-flex [&>button]:ml-[-1px] first:[&>button]:ml-0"
1632
+ }, Wa = {
1633
+ key: 1,
1634
+ class: "w-[1px] h-[16px] bg-[#d9d9d9] mx-[8px]"
1635
+ }, Gl = /* @__PURE__ */ T({
1636
+ __name: "groupTools",
1637
+ props: {
1638
+ groupTools: {}
1639
+ },
1640
+ setup(s) {
1641
+ const a = (o) => {
1642
+ o.click && o.click({}, void 0, void 0);
1643
+ }, e = (o) => typeof o.visible == "boolean" ? o.visible : typeof o.visible == "function" ? o.visible({}) : !0, t = (o) => typeof o.disabled == "boolean" ? o.disabled : typeof o.disabled == "function" ? o.disabled({}) : !1;
1644
+ return (o, u) => (v(), x("div", Va, [
1645
+ (v(!0), x(P, null, R(o.groupTools, (i, p) => (v(), x(P, { key: p }, [
1646
+ i.type === "tools" ? (v(), x("div", Ya, [
1647
+ (v(!0), x(P, null, R(i.tools, (n, c) => {
1648
+ var f;
1649
+ return v(), x(P, {
1650
+ key: n.key
1651
+ }, [
1652
+ e(n) && !n.children ? (v(), b(l(Y), {
1653
+ key: 0,
1654
+ class: E([
1655
+ "px-[8px] py-[2px] relative border-[#ccc] bg-[#fcfcfc] rounded-none text-[#666] hover:z-10",
1656
+ c === 0 ? "rounded-l-[5px]" : "",
1657
+ c === (((f = i.tools) == null ? void 0 : f.length) || 0) - 1 ? "rounded-r-[5px]" : "",
1658
+ n.class || ""
1659
+ ]),
1660
+ type: n.type,
1661
+ danger: n.danger,
1662
+ disabled: t(n),
1663
+ tiptext: n.label,
1664
+ onClick: (r) => a(n)
1665
+ }, {
1666
+ default: h(() => [
1667
+ n.icon ? (v(), b(l(K), {
1668
+ key: 0,
1669
+ icon: n.icon,
1670
+ class: "w-[18px] h-[18.5px]",
1671
+ clickable: ""
1672
+ }, null, 8, ["icon"])) : _("", !0),
1673
+ n.label ? (v(), x(P, { key: 1 }, [
1674
+ z(U(n.label), 1)
1675
+ ], 64)) : _("", !0)
1676
+ ]),
1677
+ _: 2
1678
+ }, 1032, ["class", "type", "danger", "disabled", "tiptext", "onClick"])) : n.component ? (v(), b(lt(n.component), N({
1679
+ key: 1,
1680
+ ref_for: !0
1681
+ }, n.props, {
1682
+ onClick: (r) => a(n)
1683
+ }), null, 16, ["onClick"])) : _("", !0)
1684
+ ], 64);
1685
+ }), 128))
1686
+ ])) : i.type === "split" ? (v(), x("div", Wa)) : i.type === "space" ? (v(), x("div", {
1687
+ key: 2,
1688
+ class: E(i.width ? i.width : "flex-1")
1689
+ }, null, 2)) : _("", !0)
1690
+ ], 64))), 128))
1691
+ ]));
1692
+ }
1693
+ }), qa = { class: "flex items-center gap-1" }, Ha = { class: "text-nowrap" }, Jl = /* @__PURE__ */ T({
1630
1694
  __name: "index",
1631
1695
  props: {
1632
1696
  treeCtrl: {},
@@ -1634,50 +1698,50 @@ const Nl = async (r, a) => {
1634
1698
  expandedKeys: {}
1635
1699
  },
1636
1700
  emits: ["select", "update:selectedKeys"],
1637
- setup(r, { emit: a }) {
1638
- const e = r, t = ne(), o = e.treeCtrl, n = y([]);
1639
- I(
1701
+ setup(s, { emit: a }) {
1702
+ const e = s, t = ne(), o = e.treeCtrl, u = y([]);
1703
+ D(
1640
1704
  () => o.data.value,
1641
1705
  (f) => {
1642
1706
  if (f) {
1643
- n.value = o.fieldMap ? he(o.fieldMap, f) : f;
1644
- const s = $t(n.value, p.value[0]);
1645
- if (s) {
1707
+ u.value = o.fieldMap ? he(o.fieldMap, f) : f;
1708
+ const r = Tt(u.value, p.value[0]);
1709
+ if (r) {
1646
1710
  const m = {
1647
1711
  event: "select",
1648
1712
  node: {
1649
1713
  // 根据你的TreeNode结构构建node对象
1650
- key: s.key,
1651
- title: s.title,
1714
+ key: r.key,
1715
+ title: r.title,
1652
1716
  checked: !0,
1653
- dataRef: s
1717
+ dataRef: r
1654
1718
  },
1655
1719
  selected: !0,
1656
- selectedNodes: [s]
1720
+ selectedNodes: [r]
1657
1721
  };
1658
- u(p.value, m);
1722
+ c(p.value, m);
1659
1723
  }
1660
1724
  }
1661
1725
  }
1662
1726
  );
1663
1727
  const i = a, p = y([]);
1664
- I(
1728
+ D(
1665
1729
  () => e.selectedKeys,
1666
1730
  (f) => {
1667
1731
  f && (p.value = f);
1668
1732
  },
1669
1733
  { immediate: !0 }
1670
1734
  );
1671
- const c = y(["-"]);
1672
- I(
1735
+ const n = y(["-"]);
1736
+ D(
1673
1737
  () => e.expandedKeys,
1674
1738
  (f) => {
1675
- f && (c.value = f);
1739
+ f && (n.value = f);
1676
1740
  },
1677
1741
  { immediate: !0 }
1678
1742
  );
1679
- const u = (f, s) => {
1680
- f.length === 0 && f.push(...p.value), f.length > 0 && (o.node.value = s == null ? void 0 : s.node.dataRef), p.value = f, i("update:selectedKeys", f), i("select", f, s);
1743
+ const c = (f, r) => {
1744
+ f.length === 0 && f.push(...p.value), f.length > 0 && (o.node.value = r == null ? void 0 : r.node.dataRef), p.value = f, i("update:selectedKeys", f), i("select", f, r);
1681
1745
  };
1682
1746
  return X(() => {
1683
1747
  o.fieldMap || (o.fieldMap = {
@@ -1685,62 +1749,62 @@ const Nl = async (r, a) => {
1685
1749
  key: "Id",
1686
1750
  value: "Id",
1687
1751
  icon: "Icon"
1688
- }), o.data.value ? n.value = he(o.fieldMap, o.data.value) : o.autoload && tt(o);
1689
- }), (f, s) => (v(), b(l(Zt), B({
1752
+ }), o.data.value ? u.value = he(o.fieldMap, o.data.value) : o.autoload && tt(o);
1753
+ }), (f, r) => (v(), b(l(Zt), N({
1690
1754
  class: "w-full",
1691
1755
  "show-line": !0,
1692
- "tree-data": n.value,
1693
- "expanded-keys": c.value,
1694
- "onUpdate:expandedKeys": s[0] || (s[0] = (m) => c.value = m),
1756
+ "tree-data": u.value,
1757
+ "expanded-keys": n.value,
1758
+ "onUpdate:expandedKeys": r[0] || (r[0] = (m) => n.value = m),
1695
1759
  "selected-keys": p.value,
1696
1760
  loading: l(o).isTreeLoading,
1697
- onSelect: u
1761
+ onSelect: c
1698
1762
  }, l(t)), {
1699
1763
  title: h(({ key: m, label: d, icon: g }) => [
1700
- P(f.$slots, "title", {
1764
+ L(f.$slots, "title", {
1701
1765
  label: d,
1702
1766
  key: m,
1703
1767
  icon: g
1704
1768
  }, () => [
1705
- D("div", Va, [
1769
+ F("div", qa, [
1706
1770
  S(l(K), { icon: g }, null, 8, ["icon"]),
1707
- D("span", Ya, N(d), 1)
1771
+ F("span", Ha, U(d), 1)
1708
1772
  ])
1709
1773
  ])
1710
1774
  ]),
1711
1775
  _: 3
1712
1776
  }, 16, ["tree-data", "expanded-keys", "selected-keys", "loading"]));
1713
1777
  }
1714
- }), Hl = /* @__PURE__ */ se(Tt, [["__scopeId", "data-v-87722b44"]]), Wa = { class: "relative w-[248px] max-w-[248px]" }, qa = {
1778
+ }), Xl = /* @__PURE__ */ se(Dt, [["__scopeId", "data-v-87722b44"]]), Qa = { class: "relative w-[248px] max-w-[248px]" }, Ga = {
1715
1779
  key: 0,
1716
1780
  class: "absolute z-10 mt-[5px] mr-[10px] text-[#999] flex items-center"
1717
- }, Ha = /* @__PURE__ */ T({
1781
+ }, Ja = /* @__PURE__ */ T({
1718
1782
  inheritAttrs: !1,
1719
1783
  __name: "index",
1720
- props: It,
1784
+ props: Ft,
1721
1785
  emits: ["change", "update:labels", "update:value"],
1722
- setup(r, { emit: a }) {
1723
- var C, F, U;
1724
- const e = r, t = ne(), o = q(), n = Dt(e.url, e), i = e.optionCtrl ?? n.optionCtrl;
1786
+ setup(s, { emit: a }) {
1787
+ var C, I, B;
1788
+ const e = s, t = ne(), o = H(), u = It(e.url, e), i = e.optionCtrl ?? u.optionCtrl;
1725
1789
  i.inputFactory = Vt(o);
1726
1790
  const p = y({
1727
1791
  ...i == null ? void 0 : i.url,
1728
1792
  url: ((C = i == null ? void 0 : i.url) == null ? void 0 : C.url) || "",
1729
- fieldMap: (i == null ? void 0 : i.fieldMap) || ((F = i == null ? void 0 : i.url) == null ? void 0 : F.fieldMap),
1730
- params: (i == null ? void 0 : i.params) || ((U = i == null ? void 0 : i.url) == null ? void 0 : U.params),
1793
+ fieldMap: (i == null ? void 0 : i.fieldMap) || ((I = i == null ? void 0 : i.url) == null ? void 0 : I.fieldMap),
1794
+ params: (i == null ? void 0 : i.params) || ((B = i == null ? void 0 : i.url) == null ? void 0 : B.params),
1731
1795
  loadingText: !1
1732
- }), { editorCtrl: c, errInfo: u, labelText: f } = o, s = y(t.placeholder);
1733
- I(
1796
+ }), { editorCtrl: n, errInfo: c, labelText: f } = o, r = y(t.placeholder);
1797
+ D(
1734
1798
  () => p.value.loading,
1735
1799
  ($) => {
1736
- $ ? s.value = "" : s.value || (s.value = "请选择" + f.value);
1800
+ $ ? r.value = "" : r.value || (r.value = "请选择" + f.value);
1737
1801
  },
1738
1802
  { immediate: !0 }
1739
1803
  );
1740
1804
  const m = a;
1741
1805
  o.inputEmit = m;
1742
1806
  const d = y((i == null ? void 0 : i.options.value) || []);
1743
- i && I(
1807
+ i && D(
1744
1808
  () => i.options.value,
1745
1809
  ($) => {
1746
1810
  d.value = $ || [];
@@ -1752,10 +1816,10 @@ const Nl = async (r, a) => {
1752
1816
  m("update:labels", []), m("update:value", []);
1753
1817
  return;
1754
1818
  }
1755
- const H = A.map(($e) => $e.value), Z = Lt(i, e, H), fe = Ut(Z);
1756
- m("update:labels", fe), m("update:value", H), u != null && u.value.errClass && c && le(c);
1819
+ const Q = A.map(($e) => $e.value), Z = Ut(i, e, Q), fe = Nt(Z);
1820
+ m("update:labels", fe), m("update:value", Q), c != null && c.value.errClass && n && le(n);
1757
1821
  };
1758
- return xe(() => {
1822
+ return _e(() => {
1759
1823
  i && i.autoload && (i.reload.value = !0);
1760
1824
  }), X(() => {
1761
1825
  p.value && !p.value.fieldMap && (p.value.fieldMap = {
@@ -1763,19 +1827,19 @@ const Nl = async (r, a) => {
1763
1827
  label: "Name",
1764
1828
  value: "Id",
1765
1829
  key: "Id"
1766
- }), i && Ft(i.autoload, i, e);
1830
+ }), i && Pt(i.autoload, i, e);
1767
1831
  }), Yt(() => {
1768
- i && Pt(i, e);
1832
+ i && Et(i, e);
1769
1833
  }), ($, A) => {
1770
- var H;
1771
- return v(), w("div", Wa, [
1772
- d.value.length ? x("", !0) : (v(), w("div", qa, [
1773
- S(l(Et), { class: "text-[#555] mx-[5px] !ml-[10px] !w-4 !h-4" }),
1774
- A[0] || (A[0] = D("span", null, "数据加载中...", -1))
1834
+ var Q;
1835
+ return v(), x("div", Qa, [
1836
+ d.value.length ? _("", !0) : (v(), x("div", Ga, [
1837
+ S(l(Lt), { class: "text-[#555] mx-[5px] !ml-[10px] !w-4 !h-4" }),
1838
+ A[0] || (A[0] = F("span", null, "数据加载中...", -1))
1775
1839
  ])),
1776
- S(l(ea), B({
1840
+ S(l(ea), N({
1777
1841
  options: d.value,
1778
- class: [(H = l(u)) == null ? void 0 : H.errClass],
1842
+ class: [(Q = l(c)) == null ? void 0 : Q.errClass],
1779
1843
  "allow-clear": !0,
1780
1844
  placeholder: d.value.length > 0 ? "请选择" + l(f) : "",
1781
1845
  onChange: g
@@ -1783,17 +1847,17 @@ const Nl = async (r, a) => {
1783
1847
  ]);
1784
1848
  };
1785
1849
  }
1786
- }), Ql = /* @__PURE__ */ se(Ha, [["__scopeId", "data-v-51ddfce3"]]), Gl = /* @__PURE__ */ se(Nt, [["__scopeId", "data-v-249ea772"]]);
1850
+ }), Zl = /* @__PURE__ */ se(Ja, [["__scopeId", "data-v-51ddfce3"]]), er = /* @__PURE__ */ se(Bt, [["__scopeId", "data-v-249ea772"]]);
1787
1851
  function ye() {
1788
- return ye = Object.assign ? Object.assign.bind() : function(r) {
1852
+ return ye = Object.assign ? Object.assign.bind() : function(s) {
1789
1853
  for (var a = 1; a < arguments.length; a++) {
1790
1854
  var e = arguments[a];
1791
- for (var t in e) ({}).hasOwnProperty.call(e, t) && (r[t] = e[t]);
1855
+ for (var t in e) ({}).hasOwnProperty.call(e, t) && (s[t] = e[t]);
1792
1856
  }
1793
- return r;
1857
+ return s;
1794
1858
  }, ye.apply(null, arguments);
1795
1859
  }
1796
- const Qa = {
1860
+ const Xa = {
1797
1861
  locale: "zh_CN",
1798
1862
  today: "今天",
1799
1863
  now: "此刻",
@@ -1820,7 +1884,7 @@ const Qa = {
1820
1884
  nextDecade: "下一年代",
1821
1885
  previousCentury: "上一世纪",
1822
1886
  nextCentury: "下一世纪"
1823
- }, Ga = {
1887
+ }, Za = {
1824
1888
  placeholder: "请选择时间",
1825
1889
  rangePlaceholder: ["开始时间", "结束时间"]
1826
1890
  }, Se = {
@@ -1835,116 +1899,116 @@ const Qa = {
1835
1899
  rangeMonthPlaceholder: ["开始月份", "结束月份"],
1836
1900
  rangeQuarterPlaceholder: ["开始季度", "结束季度"],
1837
1901
  rangeWeekPlaceholder: ["开始周", "结束周"]
1838
- }, Qa),
1839
- timePickerLocale: ye({}, Ga)
1902
+ }, Xa),
1903
+ timePickerLocale: ye({}, Za)
1840
1904
  };
1841
1905
  Se.lang.ok = "确定";
1842
- const Jl = /* @__PURE__ */ T({
1906
+ const tr = /* @__PURE__ */ T({
1843
1907
  __name: "index",
1844
1908
  props: {
1845
1909
  valueFormat: {}
1846
1910
  },
1847
- setup(r) {
1848
- const a = r, { editorCtrl: e, labelText: t, errInfo: o } = q(), n = () => {
1911
+ setup(s) {
1912
+ const a = s, { editorCtrl: e, labelText: t, errInfo: o } = H(), u = () => {
1849
1913
  o != null && o.value.errClass && e && le(e);
1850
1914
  }, i = y(a.valueFormat ?? "YYYY-MM-DD");
1851
- return (p, c) => {
1852
- var u;
1915
+ return (p, n) => {
1916
+ var c;
1853
1917
  return v(), b(l(ta), {
1854
- class: E(["w-full", [((u = l(o)) == null ? void 0 : u.errClass) === "error" ? "error !border-red-300 shadow-[0_0_3px_0px_#ff4d4f]" : ""]]),
1918
+ class: E(["w-full", [((c = l(o)) == null ? void 0 : c.errClass) === "error" ? "error !border-red-300 shadow-[0_0_3px_0px_#ff4d4f]" : ""]]),
1855
1919
  placeholder: "请选择" + l(t),
1856
1920
  locale: l(Se),
1857
1921
  valueFormat: i.value,
1858
- onBlur: n
1922
+ onBlur: u
1859
1923
  }, null, 8, ["class", "placeholder", "locale", "valueFormat"]);
1860
1924
  };
1861
1925
  }
1862
- }), Ja = /* @__PURE__ */ T({
1926
+ }), el = /* @__PURE__ */ T({
1863
1927
  __name: "index",
1864
1928
  props: {
1865
1929
  value: {},
1866
1930
  undefValue: { type: Boolean, default: !1 }
1867
1931
  },
1868
1932
  emits: ["update:value"],
1869
- setup(r, { emit: a }) {
1870
- const { editorCtrl: e, labelText: t, errInfo: o } = q(), n = () => {
1933
+ setup(s, { emit: a }) {
1934
+ const { editorCtrl: e, labelText: t, errInfo: o } = H(), u = () => {
1871
1935
  o != null && o.value.errClass && e && le(e);
1872
- }, i = r, p = i.value === void 0 ? !0 : i.undefValue, c = a, u = y(i.value);
1873
- I(
1936
+ }, i = s, p = i.value === void 0 ? !0 : i.undefValue, n = a, c = y(i.value);
1937
+ D(
1874
1938
  () => i.value,
1875
- (s) => {
1876
- u.value = s;
1939
+ (r) => {
1940
+ c.value = r;
1877
1941
  },
1878
1942
  { immediate: !0 }
1879
1943
  // 立即同步初始值
1880
- ), I(
1881
- () => u.value,
1882
- (s) => {
1883
- if (u.value === "") {
1884
- c("update:value", void 0);
1944
+ ), D(
1945
+ () => c.value,
1946
+ (r) => {
1947
+ if (c.value === "") {
1948
+ n("update:value", void 0);
1885
1949
  return;
1886
1950
  }
1887
- c("update:value", s);
1951
+ n("update:value", r);
1888
1952
  }
1889
1953
  );
1890
1954
  const f = () => {
1891
- u.value === "" && (u.value = p ? void 0 : null);
1955
+ c.value === "" && (c.value = p ? void 0 : null);
1892
1956
  };
1893
- return (s, m) => {
1957
+ return (r, m) => {
1894
1958
  var d, g;
1895
- return v(), b(l(de), B({
1959
+ return v(), b(l(de), N({
1896
1960
  class: [
1897
1961
  (d = l(o)) == null ? void 0 : d.errClass,
1898
- ((g = l(o)) == null ? void 0 : g.errClass) === "error" && !s.$slots.addonBefore && !s.$slots.addonAfter ? "!border-red-300 shadow-[0_0_3px_0px_#ff4d4f]" : ""
1962
+ ((g = l(o)) == null ? void 0 : g.errClass) === "error" && !r.$slots.addonBefore && !r.$slots.addonAfter ? "!border-red-300 shadow-[0_0_3px_0px_#ff4d4f]" : ""
1899
1963
  ],
1900
- value: u.value,
1901
- "onUpdate:value": m[0] || (m[0] = (C) => u.value = C),
1964
+ value: c.value,
1965
+ "onUpdate:value": m[0] || (m[0] = (C) => c.value = C),
1902
1966
  autocomplete: "new-password",
1903
1967
  "allow-clear": !0,
1904
1968
  placeholder: "请输入" + l(t),
1905
- onBlur: n,
1969
+ onBlur: u,
1906
1970
  onChange: f
1907
- }, s.$attrs), lt({ _: 2 }, [
1908
- s.$slots.addonBefore ? {
1971
+ }, r.$attrs), rt({ _: 2 }, [
1972
+ r.$slots.addonBefore ? {
1909
1973
  name: "addonBefore",
1910
1974
  fn: h(() => [
1911
- P(s.$slots, "addonBefore")
1975
+ L(r.$slots, "addonBefore")
1912
1976
  ]),
1913
1977
  key: "0"
1914
1978
  } : void 0,
1915
- s.$slots.addonAfter ? {
1979
+ r.$slots.addonAfter ? {
1916
1980
  name: "addonAfter",
1917
1981
  fn: h(() => [
1918
- P(s.$slots, "addonAfter")
1982
+ L(r.$slots, "addonAfter")
1919
1983
  ]),
1920
1984
  key: "1"
1921
1985
  } : void 0
1922
1986
  ]), 1040, ["class", "value", "placeholder"]);
1923
1987
  };
1924
1988
  }
1925
- }), Xa = /* @__PURE__ */ T({
1989
+ }), tl = /* @__PURE__ */ T({
1926
1990
  __name: "inputIcon",
1927
1991
  props: {
1928
1992
  value: {}
1929
1993
  },
1930
1994
  emits: ["update:value"],
1931
- setup(r, { emit: a }) {
1932
- const e = r, t = a, o = y(void 0);
1933
- return I(
1995
+ setup(s, { emit: a }) {
1996
+ const e = s, t = a, o = y(void 0);
1997
+ return D(
1934
1998
  () => e.value,
1935
- (n) => {
1936
- o.value = n ?? void 0;
1999
+ (u) => {
2000
+ o.value = u ?? void 0;
1937
2001
  },
1938
2002
  { immediate: !0 }
1939
- ), I(
2003
+ ), D(
1940
2004
  () => o.value,
1941
- (n) => {
1942
- t("update:value", n);
2005
+ (u) => {
2006
+ t("update:value", u);
1943
2007
  }
1944
- ), (n, i) => (v(), b(Ja, B({
2008
+ ), (u, i) => (v(), b(el, N({
1945
2009
  value: o.value,
1946
2010
  "onUpdate:value": i[0] || (i[0] = (p) => o.value = p)
1947
- }, n.$attrs), {
2011
+ }, u.$attrs), {
1948
2012
  addonBefore: h(() => [
1949
2013
  S(l(K), {
1950
2014
  class: "!w-4 !h-4",
@@ -1954,40 +2018,40 @@ const Jl = /* @__PURE__ */ T({
1954
2018
  _: 1
1955
2019
  }, 16, ["value"]));
1956
2020
  }
1957
- }), Xl = /* @__PURE__ */ se(Xa, [["__scopeId", "data-v-358b82ef"]]), Zl = /* @__PURE__ */ T({
2021
+ }), ar = /* @__PURE__ */ se(tl, [["__scopeId", "data-v-358b82ef"]]), lr = /* @__PURE__ */ T({
1958
2022
  __name: "inputPassword",
1959
- setup(r) {
1960
- const { editorCtrl: a, labelText: e, errInfo: t } = q(), o = () => {
2023
+ setup(s) {
2024
+ const { editorCtrl: a, labelText: e, errInfo: t } = H(), o = () => {
1961
2025
  t != null && t.value.errClass && a && le(a);
1962
2026
  };
1963
- return (n, i) => {
2027
+ return (u, i) => {
1964
2028
  var p;
1965
- return v(), b(l(aa), B({
2029
+ return v(), b(l(aa), N({
1966
2030
  class: ((p = l(t)) == null ? void 0 : p.errClass) === "error" ? ["error", "!border-red-300", "shadow-[0_0_3px_0px_#ff4d4f]"] : "",
1967
2031
  "allow-clear": !0,
1968
2032
  autocomplete: "new-password",
1969
2033
  placeholder: "请输入" + l(e),
1970
2034
  onBlur: o
1971
- }, n.$attrs), null, 16, ["class", "placeholder"]);
2035
+ }, u.$attrs), null, 16, ["class", "placeholder"]);
1972
2036
  };
1973
2037
  }
1974
- }), er = /* @__PURE__ */ T({
2038
+ }), rr = /* @__PURE__ */ T({
1975
2039
  __name: "inputNumber",
1976
- setup(r) {
1977
- const { editorCtrl: a, labelText: e, errInfo: t } = q(), o = () => {
2040
+ setup(s) {
2041
+ const { editorCtrl: a, labelText: e, errInfo: t } = H(), o = () => {
1978
2042
  t != null && t.value.errClass && a && le(a);
1979
2043
  };
1980
- return (n, i) => {
2044
+ return (u, i) => {
1981
2045
  var p;
1982
- return v(), b(l(la), B({
2046
+ return v(), b(l(la), N({
1983
2047
  class: [[((p = l(t)) == null ? void 0 : p.errClass) === "error" ? "error !border-red-300 shadow-[0_0_3px_0px_#ff4d4f]" : ""], "w-[50%]"],
1984
2048
  onBlur: o,
1985
2049
  "allow-clear": !1,
1986
2050
  placeholder: "请输入" + l(e)
1987
- }, n.$attrs), null, 16, ["class", "placeholder"]);
2051
+ }, u.$attrs), null, 16, ["class", "placeholder"]);
1988
2052
  };
1989
2053
  }
1990
- }), Za = { class: "flex flex-col gap-2" }, el = { key: 1 }, tr = /* @__PURE__ */ T({
2054
+ }), al = { class: "flex flex-col gap-2" }, ll = { key: 1 }, sr = /* @__PURE__ */ T({
1991
2055
  __name: "index",
1992
2056
  props: {
1993
2057
  value: {},
@@ -1998,66 +2062,66 @@ const Jl = /* @__PURE__ */ T({
1998
2062
  valueHolder: {}
1999
2063
  },
2000
2064
  emits: ["update:value"],
2001
- setup(r, { emit: a }) {
2002
- const e = r, t = a, o = y(!(e.selectList && e.selectList.length > 0)), n = y([]);
2065
+ setup(s, { emit: a }) {
2066
+ const e = s, t = a, o = y(!(e.selectList && e.selectList.length > 0)), u = y([]);
2003
2067
  let i = !1;
2004
2068
  const p = () => {
2005
- e.selectList && e.selectList.length > 0 ? n.value = e.selectList.map((s) => ({
2069
+ e.selectList && e.selectList.length > 0 ? u.value = e.selectList.map((r) => ({
2006
2070
  id: Date.now() + Math.random(),
2007
- text: s.text,
2008
- field: s.field,
2071
+ text: r.text,
2072
+ field: r.field,
2009
2073
  // 如果value中有对应的field,使用value中的值,否则使用selectList中的默认值
2010
- value: e.value[s.field] ?? s.value
2011
- })) : e.value && Object.keys(e.value).length > 0 ? n.value = Object.entries(e.value).filter(([s]) => !e.ignoreList || !e.ignoreList.includes(s)).map(([s, m]) => ({
2074
+ value: e.value[r.field] ?? r.value
2075
+ })) : e.value && Object.keys(e.value).length > 0 ? u.value = Object.entries(e.value).filter(([r]) => !e.ignoreList || !e.ignoreList.includes(r)).map(([r, m]) => ({
2012
2076
  id: Date.now() + Math.random(),
2013
- field: s,
2077
+ field: r,
2014
2078
  value: m
2015
- })) : n.value = [];
2079
+ })) : u.value = [];
2016
2080
  };
2017
- I(
2081
+ D(
2018
2082
  () => e.value,
2019
2083
  () => {
2020
2084
  i || p(), i = !1;
2021
2085
  },
2022
2086
  { immediate: !0 }
2023
2087
  );
2024
- const c = () => {
2025
- let s;
2026
- e.selectList && e.selectList.length > 0 ? (s = { ...e.value }, n.value.forEach((m) => {
2027
- m.field && (s[m.field] = m.value);
2028
- })) : (s = n.value.reduce(
2088
+ const n = () => {
2089
+ let r;
2090
+ e.selectList && e.selectList.length > 0 ? (r = { ...e.value }, u.value.forEach((m) => {
2091
+ m.field && (r[m.field] = m.value);
2092
+ })) : (r = u.value.reduce(
2029
2093
  (m, d) => (d.field && (m[d.field] = d.value), m),
2030
2094
  {}
2031
2095
  ), e.ignoreList && e.ignoreList.length > 0 && e.ignoreList.forEach((m) => {
2032
- e.value[m] !== void 0 && (s[m] = e.value[m]);
2033
- })), i = !0, t("update:value", s);
2034
- }, u = () => {
2035
- n.value.push({
2096
+ e.value[m] !== void 0 && (r[m] = e.value[m]);
2097
+ })), i = !0, t("update:value", r);
2098
+ }, c = () => {
2099
+ u.value.push({
2036
2100
  id: Date.now() + Math.random(),
2037
2101
  field: "",
2038
2102
  value: ""
2039
2103
  });
2040
2104
  }, f = () => {
2041
- c();
2105
+ n();
2042
2106
  };
2043
- return (s, m) => (v(), w("div", Za, [
2044
- (v(!0), w(L, null, V(n.value, (d) => (v(), w("div", {
2107
+ return (r, m) => (v(), x("div", al, [
2108
+ (v(!0), x(P, null, R(u.value, (d) => (v(), x("div", {
2045
2109
  key: d.id,
2046
2110
  class: "flex items-center gap-2"
2047
2111
  }, [
2048
- D("div", {
2049
- class: E([s.fieldWidth ? `w-[${s.fieldWidth}%]` : "w-[33%]"])
2112
+ F("div", {
2113
+ class: E([r.fieldWidth ? `w-[${r.fieldWidth}%]` : "w-[33%]"])
2050
2114
  }, [
2051
- !s.selectList || s.selectList.length === 0 ? (v(), b(l(de), {
2115
+ !r.selectList || r.selectList.length === 0 ? (v(), b(l(de), {
2052
2116
  key: 0,
2053
2117
  value: d.field,
2054
2118
  "onUpdate:value": (g) => d.field = g,
2055
2119
  title: d.text || d.field,
2056
2120
  class: "w-full",
2057
- placeholder: d.text || s.labelHolder || "配置名",
2121
+ placeholder: d.text || r.labelHolder || "配置名",
2058
2122
  onInput: f,
2059
2123
  disabled: !o.value
2060
- }, null, 8, ["value", "onUpdate:value", "title", "placeholder", "disabled"])) : (v(), w("div", el, [
2124
+ }, null, 8, ["value", "onUpdate:value", "title", "placeholder", "disabled"])) : (v(), x("div", ll, [
2061
2125
  S(l(de), {
2062
2126
  value: d.text,
2063
2127
  "onUpdate:value": (g) => d.text = g,
@@ -2072,34 +2136,34 @@ const Jl = /* @__PURE__ */ T({
2072
2136
  }, null, 8, ["value", "onUpdate:value"])
2073
2137
  ]))
2074
2138
  ], 2),
2075
- m[0] || (m[0] = D("div", { class: "w-[3%]" }, "=", -1)),
2076
- D("div", {
2077
- class: E([s.fieldWidth ? `w-[${97 - s.fieldWidth}%]` : "w-[64%]"])
2139
+ m[0] || (m[0] = F("div", { class: "w-[3%]" }, "=", -1)),
2140
+ F("div", {
2141
+ class: E([r.fieldWidth ? `w-[${97 - r.fieldWidth}%]` : "w-[64%]"])
2078
2142
  }, [
2079
2143
  S(l(de), {
2080
2144
  value: d.value,
2081
2145
  "onUpdate:value": (g) => d.value = g,
2082
- placeholder: s.valueHolder || "请输入" + d.text || "请输入配置值",
2146
+ placeholder: r.valueHolder || "请输入" + d.text || "请输入配置值",
2083
2147
  onInput: f,
2084
2148
  title: d.value
2085
2149
  }, null, 8, ["value", "onUpdate:value", "placeholder", "title"])
2086
2150
  ], 2)
2087
2151
  ]))), 128)),
2088
- o.value ? (v(), b(l(ut), {
2152
+ o.value ? (v(), b(l(ct), {
2089
2153
  key: 0,
2090
- onClick: u,
2154
+ onClick: c,
2091
2155
  class: "mt-1 w-[80px] !text-[12px] text-[#666] bg-[#e6f7ff] border-[#b3e0ff] hover:bg-[#b3e0ff] hover:border-[#8abeff]",
2092
2156
  size: "small"
2093
2157
  }, {
2094
2158
  default: h(() => m[1] || (m[1] = [
2095
- M(" 新增配置行 ")
2159
+ z(" 新增配置行 ")
2096
2160
  ])),
2097
2161
  _: 1,
2098
2162
  __: [1]
2099
- })) : x("", !0)
2163
+ })) : _("", !0)
2100
2164
  ]));
2101
2165
  }
2102
- }), tl = /* @__PURE__ */ se(Bt, [["__scopeId", "data-v-aa237552"]]), ar = /* @__PURE__ */ T({
2166
+ }), rl = /* @__PURE__ */ se(zt, [["__scopeId", "data-v-aa237552"]]), or = /* @__PURE__ */ T({
2103
2167
  __name: "radioStatus",
2104
2168
  props: {
2105
2169
  /**
@@ -2126,14 +2190,14 @@ const Jl = /* @__PURE__ */ T({
2126
2190
  required: !1
2127
2191
  }
2128
2192
  },
2129
- setup(r) {
2130
- const a = r, e = y(JSON.parse(JSON.stringify(Ne.getOptions(a.dataKey))));
2193
+ setup(s) {
2194
+ const a = s, e = y(JSON.parse(JSON.stringify(Ne.getOptions(a.dataKey))));
2131
2195
  return a.all === !0 && e.value.unshift({
2132
2196
  label: "全部",
2133
2197
  value: a.allValue || [0, 1]
2134
- }), (t, o) => (v(), b(tl, { data: e.value }, null, 8, ["data"]));
2198
+ }), (t, o) => (v(), b(rl, { data: e.value }, null, 8, ["data"]));
2135
2199
  }
2136
- }), lr = /* @__PURE__ */ T({
2200
+ }), nr = /* @__PURE__ */ T({
2137
2201
  __name: "index",
2138
2202
  props: {
2139
2203
  startDate: {},
@@ -2141,43 +2205,43 @@ const Jl = /* @__PURE__ */ T({
2141
2205
  valueFormat: { default: "YYYY-MM-DD" }
2142
2206
  },
2143
2207
  emits: ["update:startDate", "update:endDate"],
2144
- setup(r, { emit: a }) {
2145
- const e = r, t = a, o = q(), { errInfo: n } = o, i = R(() => e.valueFormat), p = R(() => {
2146
- const u = e.startDate, f = e.endDate;
2147
- if (!(!u || !f))
2208
+ setup(s, { emit: a }) {
2209
+ const e = s, t = a, o = H(), { errInfo: u } = o, i = j(() => e.valueFormat), p = j(() => {
2210
+ const c = e.startDate, f = e.endDate;
2211
+ if (!(!c || !f))
2148
2212
  try {
2149
- const s = Pe(u), m = Pe(f);
2150
- return !s.isValid() || !m.isValid() ? void 0 : [s, m];
2213
+ const r = Pe(c), m = Pe(f);
2214
+ return !r.isValid() || !m.isValid() ? void 0 : [r, m];
2151
2215
  } catch {
2152
2216
  return;
2153
2217
  }
2154
- }), c = (u, f) => {
2155
- if (!u || !f || f.length !== 2) {
2218
+ }), n = (c, f) => {
2219
+ if (!c || !f || f.length !== 2) {
2156
2220
  t("update:startDate", null), t("update:endDate", null);
2157
2221
  return;
2158
2222
  }
2159
2223
  t("update:startDate", f[0] || null), t("update:endDate", f[1] || null);
2160
2224
  };
2161
- return (u, f) => {
2162
- var s;
2225
+ return (c, f) => {
2226
+ var r;
2163
2227
  return v(), b(l(ra), {
2164
- class: E([((s = l(n)) == null ? void 0 : s.errClass) === "error" ? ["error", "!border-red-300", "shadow-[0_0_3px_0px_#ff4d4f]"] : "", "w-full"]),
2228
+ class: E([((r = l(u)) == null ? void 0 : r.errClass) === "error" ? ["error", "!border-red-300", "shadow-[0_0_3px_0px_#ff4d4f]"] : "", "w-full"]),
2165
2229
  locale: l(Se),
2166
2230
  "value-format": i.value,
2167
2231
  value: p.value,
2168
- onChange: c
2232
+ onChange: n
2169
2233
  }, null, 8, ["class", "locale", "value-format", "value"]);
2170
2234
  };
2171
2235
  }
2172
- }), rr = /* @__PURE__ */ se(Mt, [["__scopeId", "data-v-b33df95f"]]), sr = /* @__PURE__ */ T({
2236
+ }), ir = /* @__PURE__ */ se(Mt, [["__scopeId", "data-v-b33df95f"]]), ur = /* @__PURE__ */ T({
2173
2237
  __name: "index",
2174
- setup(r) {
2175
- const { editorCtrl: a, labelText: e, errInfo: t } = q(), o = () => {
2238
+ setup(s) {
2239
+ const { editorCtrl: a, labelText: e, errInfo: t } = H(), o = () => {
2176
2240
  t != null && t.value.errClass && a && le(a);
2177
2241
  };
2178
- return (n, i) => {
2242
+ return (u, i) => {
2179
2243
  var p;
2180
- return v(), b(l(sa), B({
2244
+ return v(), b(l(sa), N({
2181
2245
  class: ((p = l(t)) == null ? void 0 : p.errClass) === "error" ? ["error", "!border-red-300", "shadow-[0_0_3px_0px_#ff4d4f]"] : "",
2182
2246
  "allow-clear": !0,
2183
2247
  placeholder: "请输入" + l(e),
@@ -2186,30 +2250,30 @@ const Jl = /* @__PURE__ */ T({
2186
2250
  }, ["stop"]), ["enter", "native"])),
2187
2251
  onKeydown: i[1] || (i[1] = Re(pe(() => {
2188
2252
  }, ["stop"]), ["enter", "native"]))
2189
- }, n.$attrs), null, 16, ["class", "placeholder"]);
2253
+ }, u.$attrs), null, 16, ["class", "placeholder"]);
2190
2254
  };
2191
2255
  }
2192
- }), or = /* @__PURE__ */ T({
2256
+ }), cr = /* @__PURE__ */ T({
2193
2257
  __name: "index",
2194
2258
  props: {
2195
2259
  valueFormat: {}
2196
2260
  },
2197
- setup(r) {
2198
- const a = r, { editorCtrl: e, labelText: t, errInfo: o } = q(), n = () => {
2261
+ setup(s) {
2262
+ const a = s, { editorCtrl: e, labelText: t, errInfo: o } = H(), u = () => {
2199
2263
  o != null && o.value.errClass && e && le(e);
2200
2264
  }, i = y(a.valueFormat ?? "HH:mm");
2201
- return (p, c) => {
2202
- var u;
2265
+ return (p, n) => {
2266
+ var c;
2203
2267
  return v(), b(l(oa), {
2204
- class: E(["w-full", [((u = l(o)) == null ? void 0 : u.errClass) === "error" ? "error !border-red-300 shadow-[0_0_3px_0px_#ff4d4f]" : ""]]),
2268
+ class: E(["w-full", [((c = l(o)) == null ? void 0 : c.errClass) === "error" ? "error !border-red-300 shadow-[0_0_3px_0px_#ff4d4f]" : ""]]),
2205
2269
  placeholder: "请选择" + l(t),
2206
2270
  locale: l(Se),
2207
2271
  valueFormat: i.value,
2208
- onBlur: n
2272
+ onBlur: u
2209
2273
  }, null, 8, ["class", "placeholder", "locale", "valueFormat"]);
2210
2274
  };
2211
2275
  }
2212
- }), al = /* @__PURE__ */ T({
2276
+ }), sl = /* @__PURE__ */ T({
2213
2277
  __name: "index",
2214
2278
  props: {
2215
2279
  autoload: { type: Boolean },
@@ -2218,46 +2282,46 @@ const Jl = /* @__PURE__ */ T({
2218
2282
  value: {}
2219
2283
  },
2220
2284
  emits: ["change", "update:value"],
2221
- setup(r, { emit: a }) {
2222
- const e = r, t = y({ ...e.url }), { editorCtrl: o, labelText: n, errInfo: i } = q(), p = a, c = y([]), u = y([]);
2223
- e.value && e.value.every((s) => {
2224
- u.value.push(s.toString());
2225
- }), I(
2285
+ setup(s, { emit: a }) {
2286
+ const e = s, t = y({ ...e.url }), { editorCtrl: o, labelText: u, errInfo: i } = H(), p = a, n = y([]), c = y([]);
2287
+ e.value && e.value.every((r) => {
2288
+ c.value.push(r.toString());
2289
+ }), D(
2226
2290
  () => e.value,
2227
- (s) => {
2228
- s && (u.value = s);
2291
+ (r) => {
2292
+ r && (c.value = r);
2229
2293
  }
2230
2294
  );
2231
- const f = (s) => {
2232
- p("update:value", s), p("change", s), u.value = s, i != null && i.value.errClass && o && le(o);
2295
+ const f = (r) => {
2296
+ p("update:value", r), p("change", r), c.value = r, i != null && i.value.errClass && o && le(o);
2233
2297
  };
2234
2298
  return X(async () => {
2235
2299
  if (t.value) {
2236
- const s = o == null ? void 0 : o.page;
2237
- if (t.value.api || (t.value.api = s == null ? void 0 : s.api), t.value.authorize === void 0 && (t.value.authorize = s == null ? void 0 : s.authorize), e.autoload) {
2300
+ const r = o == null ? void 0 : o.page;
2301
+ 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) {
2238
2302
  const m = await at(o, {
2239
2303
  urlKey: "list",
2240
2304
  url: { ...t.value, url: t.value.url },
2241
2305
  loadingText: !1,
2242
2306
  params: e.params
2243
2307
  });
2244
- c.value = (m == null ? void 0 : m.data) ?? [];
2308
+ n.value = (m == null ? void 0 : m.data) ?? [];
2245
2309
  }
2246
2310
  }
2247
- }), (s, m) => {
2311
+ }), (r, m) => {
2248
2312
  var d;
2249
- return v(), b(l(na), B({
2313
+ return v(), b(l(na), N({
2250
2314
  class: ((d = l(i)) == null ? void 0 : d.errClass) === "error" ? ["error", "!border-red-300", "shadow-[0_0_3px_0px_#ff4d4f]"] : "",
2251
- placeholder: "请输入" + l(n),
2252
- targetKeys: u.value,
2315
+ placeholder: "请输入" + l(u),
2316
+ targetKeys: c.value,
2253
2317
  onChange: f
2254
- }, s.$attrs), {
2255
- children: h(({ direction: g, disabled: C, filteredItems: F, onItemSelectAll: U, onItemSelect: $, selectedKeys: A }) => [
2256
- P(s.$slots, "children", {
2318
+ }, r.$attrs), {
2319
+ children: h(({ direction: g, disabled: C, filteredItems: I, onItemSelectAll: B, onItemSelect: $, selectedKeys: A }) => [
2320
+ L(r.$slots, "children", {
2257
2321
  direction: g,
2258
2322
  disabled: C,
2259
- filteredItems: F,
2260
- onItemSelectAll: U,
2323
+ filteredItems: I,
2324
+ onItemSelectAll: B,
2261
2325
  onItemSelect: $,
2262
2326
  selectedKeys: A
2263
2327
  })
@@ -2266,7 +2330,7 @@ const Jl = /* @__PURE__ */ T({
2266
2330
  }, 16, ["class", "placeholder", "targetKeys"]);
2267
2331
  };
2268
2332
  }
2269
- }), nr = /* @__PURE__ */ T({
2333
+ }), dr = /* @__PURE__ */ T({
2270
2334
  __name: "transferTable",
2271
2335
  props: {
2272
2336
  /**
@@ -2292,64 +2356,64 @@ const Jl = /* @__PURE__ */ T({
2292
2356
  }
2293
2357
  },
2294
2358
  emits: ["update:value"],
2295
- setup(r, { emit: a }) {
2296
- const e = r, t = a, o = y(e.autoload), n = y(e.value), i = y(e.gridCtrl.primaryKey);
2297
- I(
2298
- () => n.value,
2299
- (u) => {
2300
- t("update:value", u);
2359
+ setup(s, { emit: a }) {
2360
+ const e = s, t = a, o = y(e.autoload), u = y(e.value), i = y(e.gridCtrl.primaryKey);
2361
+ D(
2362
+ () => u.value,
2363
+ (c) => {
2364
+ t("update:value", c);
2301
2365
  }
2302
- ), I(
2366
+ ), D(
2303
2367
  () => e.value,
2304
- (u) => {
2305
- u && (n.value = u);
2368
+ (c) => {
2369
+ c && (u.value = c);
2306
2370
  }
2307
2371
  ), e.gridCtrl.autoload = !1, e.gridCtrl.remotePage = !1, e.gridCtrl.selectable = y(!0), e.gridCtrl.buttons = y([]), e.gridCtrl.tools = [];
2308
- const p = ({ disabled: u, selectedKeys: f, onItemSelectAll: s, onItemSelect: m }) => ({
2372
+ const p = ({ disabled: c, selectedKeys: f, onItemSelectAll: r, onItemSelect: m }) => ({
2309
2373
  getCheckboxProps: (d) => ({
2310
2374
  // 控制是否禁止
2311
- disabled: u || d.disabled
2375
+ disabled: c || d.disabled
2312
2376
  }),
2313
2377
  onSelectAll(d, g) {
2314
- const C = g.filter((F) => !F.disabled).map(({ [i.value]: F }) => F);
2315
- s(C, d);
2378
+ const C = g.filter((I) => !I.disabled).map(({ [i.value]: I }) => I);
2379
+ r(C, d);
2316
2380
  },
2317
2381
  onSelect({ [i.value]: d }, g) {
2318
2382
  m(d, g);
2319
2383
  },
2320
2384
  selectedRowKeys: f
2321
- }), c = y([]);
2385
+ }), n = y([]);
2322
2386
  return X(async () => {
2323
2387
  if (o.value) {
2324
- const u = await at(e.gridCtrl, {
2388
+ const c = await at(e.gridCtrl, {
2325
2389
  urlKey: "list",
2326
2390
  url: { ...e.gridCtrl.gridUrl, url: e.gridCtrl.gridUrl.url },
2327
2391
  params: e.gridCtrl.gridQuery,
2328
2392
  loadingText: !1
2329
2393
  });
2330
- c.value = (u == null ? void 0 : u.data) ?? [];
2394
+ n.value = (c == null ? void 0 : c.data) ?? [];
2331
2395
  }
2332
- }), (u, f) => (v(), b(al, B({
2333
- "data-source": c.value,
2334
- "row-key": (s) => s[i.value],
2335
- value: n.value,
2336
- "onUpdate:value": f[0] || (f[0] = (s) => n.value = s),
2396
+ }), (c, f) => (v(), b(sl, N({
2397
+ "data-source": n.value,
2398
+ "row-key": (r) => r[i.value],
2399
+ value: u.value,
2400
+ "onUpdate:value": f[0] || (f[0] = (r) => u.value = r),
2337
2401
  "list-style": {
2338
2402
  width: "300px",
2339
2403
  height: "500px"
2340
2404
  },
2341
2405
  "show-select-all": !1,
2342
2406
  "show-search": !0,
2343
- "filter-option": (s, m) => {
2407
+ "filter-option": (r, m) => {
2344
2408
  for (const d of e.gridCtrl.columns.value)
2345
- if (m[d.dataIndex].toString().indexOf(s) !== -1)
2409
+ if (m[d.dataIndex].toString().indexOf(r) !== -1)
2346
2410
  return !0;
2347
2411
  return !1;
2348
2412
  }
2349
- }, u.$attrs), {
2350
- children: h(({ filteredItems: s, onItemSelectAll: m, onItemSelect: d, selectedKeys: g }) => [
2351
- S(l(ct), {
2352
- columns: r.gridCtrl.columns.value,
2413
+ }, c.$attrs), {
2414
+ children: h(({ filteredItems: r, onItemSelectAll: m, onItemSelect: d, selectedKeys: g }) => [
2415
+ S(l(dt), {
2416
+ columns: s.gridCtrl.columns.value,
2353
2417
  "row-key": i.value,
2354
2418
  "row-selection": p({
2355
2419
  disabled: !1,
@@ -2359,12 +2423,12 @@ const Jl = /* @__PURE__ */ T({
2359
2423
  }),
2360
2424
  bordered: !1,
2361
2425
  size: "small",
2362
- "data-source": s,
2426
+ "data-source": r,
2363
2427
  scroll: { x: 300 },
2364
2428
  "custom-row": (C) => ({
2365
2429
  onClick: () => {
2366
- const F = C[i.value];
2367
- d(F, !g.includes(F));
2430
+ const I = C[i.value];
2431
+ d(I, !g.includes(I));
2368
2432
  }
2369
2433
  })
2370
2434
  }, null, 8, ["columns", "row-key", "row-selection", "data-source", "custom-row"])
@@ -2372,7 +2436,7 @@ const Jl = /* @__PURE__ */ T({
2372
2436
  _: 1
2373
2437
  }, 16, ["data-source", "row-key", "value", "filter-option"]));
2374
2438
  }
2375
- }), ll = /* @__PURE__ */ T({
2439
+ }), ol = /* @__PURE__ */ T({
2376
2440
  __name: "index",
2377
2441
  props: {
2378
2442
  multiple: {
@@ -2398,66 +2462,66 @@ const Jl = /* @__PURE__ */ T({
2398
2462
  }
2399
2463
  },
2400
2464
  emits: ["change", "update:value"],
2401
- setup(r, { emit: a }) {
2402
- const e = r, t = e.value === void 0 ? !0 : e.undefValue, o = e.treeCtrl, n = q(), { errInfo: i, labelText: p } = n, c = a;
2403
- n.inputEmit = c;
2404
- const u = y([]), f = y();
2405
- I(
2465
+ setup(s, { emit: a }) {
2466
+ const e = s, t = e.value === void 0 ? !0 : e.undefValue, o = e.treeCtrl, u = H(), { errInfo: i, labelText: p } = u, n = a;
2467
+ u.inputEmit = n;
2468
+ const c = y([]), f = y();
2469
+ D(
2406
2470
  () => e.value,
2407
2471
  (d) => {
2408
2472
  f.value = d;
2409
2473
  },
2410
2474
  { immediate: !0 }
2411
- ), I(
2475
+ ), D(
2412
2476
  () => f.value,
2413
2477
  (d) => {
2414
- c("update:value", d);
2478
+ n("update:value", d);
2415
2479
  }
2416
- ), I(
2480
+ ), D(
2417
2481
  () => o.data.value,
2418
2482
  (d) => {
2419
- d && (u.value = o.fieldMap ? he(o.fieldMap, d) : d);
2483
+ d && (c.value = o.fieldMap ? he(o.fieldMap, d) : d);
2420
2484
  },
2421
2485
  { immediate: !0 }
2422
2486
  );
2423
- const s = (d) => {
2424
- e.multiple ? f.value = d ?? [] : d == null ? f.value = t ? void 0 : null : f.value = d, c("change", f.value);
2487
+ const r = (d) => {
2488
+ e.multiple ? f.value = d ?? [] : d == null ? f.value = t ? void 0 : null : f.value = d, n("change", f.value);
2425
2489
  };
2426
- xe(() => {
2490
+ _e(() => {
2427
2491
  e.treeCtrl && e.treeCtrl.autoload && (e.treeCtrl.reload.value = !0);
2428
2492
  }), X(() => {
2429
2493
  o.fieldMap || (o.fieldMap = {
2430
2494
  label: "Name",
2431
2495
  key: "Id",
2432
2496
  value: "Id"
2433
- }), o.data.value ? u.value = o.fieldMap ? he(o.fieldMap, o.data.value) : o.data.value : e.treeCtrl.autoload && tt(e.treeCtrl);
2497
+ }), o.data.value ? c.value = o.fieldMap ? he(o.fieldMap, o.data.value) : o.data.value : e.treeCtrl.autoload && tt(e.treeCtrl);
2434
2498
  });
2435
2499
  const m = () => {
2436
2500
  f.value = t ? void 0 : null;
2437
2501
  };
2438
2502
  return (d, g) => {
2439
2503
  var C;
2440
- return v(), b(l(ia), B({
2504
+ return v(), b(l(ia), N({
2441
2505
  class: [[(C = l(i)) == null ? void 0 : C.errClass], "w-full"],
2442
2506
  "tree-line": "",
2443
- multiple: r.multiple,
2507
+ multiple: s.multiple,
2444
2508
  "tree-default-expanded-keys": ["-"],
2445
2509
  value: f.value,
2446
- "onUpdate:value": g[0] || (g[0] = (F) => f.value = F),
2447
- "tree-data": u.value,
2510
+ "onUpdate:value": g[0] || (g[0] = (I) => f.value = I),
2511
+ "tree-data": c.value,
2448
2512
  placeholder: "请选择" + l(p),
2449
- onChange: s,
2513
+ onChange: r,
2450
2514
  onClear: m
2451
2515
  }, d.$attrs), null, 16, ["class", "multiple", "value", "tree-data", "placeholder"]);
2452
2516
  };
2453
2517
  }
2454
- }), ir = /* @__PURE__ */ se(ll, [["__scopeId", "data-v-71d50074"]]), rl = { class: "w-full mt-1" }, sl = { class: "flex flex-wrap gap-2" }, ol = ["onMouseenter"], nl = { class: "w-16 h-16 border border-solid border-gray-200 rounded overflow-hidden" }, il = ["src"], ul = {
2518
+ }), pr = /* @__PURE__ */ se(ol, [["__scopeId", "data-v-71d50074"]]), nl = { class: "w-full mt-1" }, il = { class: "flex flex-wrap gap-2" }, ul = ["onMouseenter"], cl = { class: "w-16 h-16 border border-solid border-gray-200 rounded overflow-hidden" }, dl = ["src"], pl = {
2455
2519
  key: 0,
2456
2520
  class: "absolute inset-0 bg-black bg-opacity-50 flex items-center justify-center gap-4 rounded"
2457
- }, cl = ["onClick"], dl = ["onClick"], pl = {
2521
+ }, fl = ["onClick"], vl = ["onClick"], ml = {
2458
2522
  key: 0,
2459
2523
  class: "w-16 h-16"
2460
- }, fl = /* @__PURE__ */ T({
2524
+ }, hl = /* @__PURE__ */ T({
2461
2525
  __name: "imageList",
2462
2526
  props: {
2463
2527
  autoUpload: { type: Boolean, default: !1 },
@@ -2476,47 +2540,47 @@ const Jl = /* @__PURE__ */ T({
2476
2540
  showDelete: { type: Boolean, default: !0 }
2477
2541
  },
2478
2542
  emits: ["update:file-list"],
2479
- setup(r, { emit: a }) {
2480
- const e = r, t = q(), { errInfo: o } = t, n = y(e.fileList), i = y([]), p = y(), c = a, u = R(() => {
2481
- var _;
2482
- return (_ = e.fileExt) != null && _.length ? e.fileExt.map((k) => `.${k}`).join(",") : "";
2483
- }), f = (_) => {
2543
+ setup(s, { emit: a }) {
2544
+ const e = s, t = H(), { errInfo: o } = t, u = y(e.fileList), i = y([]), p = y(), n = a, c = j(() => {
2484
2545
  var k;
2546
+ return (k = e.fileExt) != null && k.length ? e.fileExt.map((w) => `.${w}`).join(",") : "";
2547
+ }), f = (k) => {
2548
+ var w;
2485
2549
  if (e.fileExt && e.fileExt.length > 0) {
2486
- const z = ((k = _.name.split(".").pop()) == null ? void 0 : k.toLowerCase()) || "";
2487
- if (!e.fileExt.includes(z))
2550
+ const M = ((w = k.name.split(".").pop()) == null ? void 0 : w.toLowerCase()) || "";
2551
+ if (!e.fileExt.includes(M))
2488
2552
  return G.error("文件类型不支持"), !1;
2489
2553
  }
2490
- return _.size / 1024 / 1024 > e.maxFileSize ? (G.error(`文件大小超过 ${e.maxFileSize}MB 限制`), !1) : !0;
2491
- }, s = () => e.maxCount > 1 && n.value.length >= e.maxCount, m = (_) => {
2492
- const k = _;
2493
- return k.params || (k.params = {}), k.params.FileKey = k.name, e.parentPath && (k.params.FileKey = Oe.join("/", e.parentPath, k.name)), k;
2494
- }, d = (_) => f(_) && e.autoUpload, g = async (_) => {
2495
- if (_.length === 0) return;
2496
- const k = [...n.value];
2497
- let z = !1;
2498
- for (const j of _) {
2499
- if (!f(j)) {
2500
- z = !0;
2554
+ return k.size / 1024 / 1024 > e.maxFileSize ? (G.error(`文件大小超过 ${e.maxFileSize}MB 限制`), !1) : !0;
2555
+ }, r = () => e.maxCount > 1 && u.value.length >= e.maxCount, m = (k) => {
2556
+ const w = k;
2557
+ return w.params || (w.params = {}), w.params.FileKey = w.name, e.parentPath && (w.params.FileKey = Oe.join("/", e.parentPath, w.name)), w;
2558
+ }, d = (k) => f(k) && e.autoUpload, g = async (k) => {
2559
+ if (k.length === 0) return;
2560
+ const w = [...u.value];
2561
+ let M = !1;
2562
+ for (const V of k) {
2563
+ if (!f(V)) {
2564
+ M = !0;
2501
2565
  continue;
2502
2566
  }
2503
- const O = m(j);
2567
+ const O = m(V);
2504
2568
  if (e.maxCount === 1) {
2505
- k.length = 0, k.push(O);
2569
+ w.length = 0, w.push(O);
2506
2570
  break;
2507
2571
  }
2508
- if (s()) {
2509
- G.error(`最多上传 ${e.maxCount} 个文件`), z = !0;
2572
+ if (r()) {
2573
+ G.error(`最多上传 ${e.maxCount} 个文件`), M = !0;
2510
2574
  break;
2511
2575
  }
2512
- const ee = k.findIndex((Ie) => Ie.name === O.name);
2513
- ee > -1 ? k[ee] = O : k.push(O);
2576
+ const ee = w.findIndex((De) => De.name === O.name);
2577
+ ee > -1 ? w[ee] = O : w.push(O);
2514
2578
  }
2515
- (!z || k.length > 0) && (n.value = k), i.value = [];
2516
- }, C = (_) => {
2517
- i.value = _, g(_);
2518
- }, F = R(() => ({
2519
- accept: u.value,
2579
+ (!M || w.length > 0) && (u.value = w), i.value = [];
2580
+ }, C = (k) => {
2581
+ i.value = k, g(k);
2582
+ }, I = j(() => ({
2583
+ accept: c.value,
2520
2584
  multiple: e.maxCount !== 1,
2521
2585
  fileList: i.value,
2522
2586
  "onUpdate:fileList": C,
@@ -2525,87 +2589,87 @@ const Jl = /* @__PURE__ */ T({
2525
2589
  showUploadList: !1,
2526
2590
  customRequest: async () => {
2527
2591
  if (e.autoUpload && e.uploadUrl)
2528
- for (const _ of n.value)
2529
- _.percent === 0 && await Ot(e.uploadUrl, _);
2592
+ for (const k of u.value)
2593
+ k.percent === 0 && await At(e.uploadUrl, k);
2530
2594
  }
2531
2595
  }));
2532
- I(
2596
+ D(
2533
2597
  () => e.fileList,
2534
- (_) => {
2535
- n.value = _;
2598
+ (k) => {
2599
+ u.value = k;
2536
2600
  },
2537
2601
  { deep: !0, immediate: !0 }
2538
- ), I(
2539
- () => n.value,
2540
- (_) => {
2541
- c("update:file-list", _);
2602
+ ), D(
2603
+ () => u.value,
2604
+ (k) => {
2605
+ n("update:file-list", k);
2542
2606
  },
2543
2607
  { deep: !0 }
2544
- ), I(
2608
+ ), D(
2545
2609
  () => e.parentPath,
2546
- (_) => {
2547
- _ && n.value.forEach((k) => {
2548
- k.params.FileKey = Oe.join("/", _, k.fileName);
2610
+ (k) => {
2611
+ k && u.value.forEach((w) => {
2612
+ w.params.FileKey = Oe.join("/", k, w.fileName);
2549
2613
  });
2550
2614
  }
2551
2615
  );
2552
- const U = y(!1), $ = y(""), A = (_) => {
2553
- const k = n.value[_];
2554
- $.value = fe(k), U.value = !0;
2555
- }, H = (_) => {
2556
- const k = n.value[_];
2557
- e.deleteUrl && k.minioFile && k.minioFile.Key ? Be(e.deleteUrl, {
2616
+ const B = y(!1), $ = y(""), A = (k) => {
2617
+ const w = u.value[k];
2618
+ $.value = fe(w), B.value = !0;
2619
+ }, Q = (k) => {
2620
+ const w = u.value[k];
2621
+ e.deleteUrl && w.minioFile && w.minioFile.Key ? Be(e.deleteUrl, {
2558
2622
  Query: {
2559
- FileKey: k.minioFile.Key
2623
+ FileKey: w.minioFile.Key
2560
2624
  }
2561
- }).then((z) => {
2562
- z && z.status === Me.SUCCESS && (G.success("删除文件成功!"), n.value.splice(_, 1));
2563
- }) : n.value.splice(_, 1);
2564
- }, Z = y(/* @__PURE__ */ new Map()), fe = (_) => {
2565
- if (_.originFileObj)
2566
- return URL.createObjectURL(_.originFileObj);
2567
- if (_.minioFile) {
2568
- const k = _.minioFile.Key;
2569
- return Z.value.has(k) ? Z.value.get(k) : ($e(_), "");
2625
+ }).then((M) => {
2626
+ M && M.status === ze.SUCCESS && (G.success("删除文件成功!"), u.value.splice(k, 1));
2627
+ }) : u.value.splice(k, 1);
2628
+ }, Z = y(/* @__PURE__ */ new Map()), fe = (k) => {
2629
+ if (k.originFileObj)
2630
+ return URL.createObjectURL(k.originFileObj);
2631
+ if (k.minioFile) {
2632
+ const w = k.minioFile.Key;
2633
+ return Z.value.has(w) ? Z.value.get(w) : ($e(k), "");
2570
2634
  }
2571
2635
  return "";
2572
- }, $e = async (_) => {
2573
- if (!_.minioFile || !e.previewUrl) return;
2574
- const k = _.minioFile.Key;
2636
+ }, $e = async (k) => {
2637
+ if (!k.minioFile || !e.previewUrl) return;
2638
+ const w = k.minioFile.Key;
2575
2639
  try {
2576
- const z = `${e.previewUrl.url}?FileKey=${encodeURIComponent(_.minioFile.Key)}`, j = At() ? await zt.getToken() : Le().getToken(), O = await fetch(z, {
2640
+ const M = `${e.previewUrl.url}?FileKey=${encodeURIComponent(k.minioFile.Key)}`, V = Rt() ? await Ot.getToken() : Le().getToken(), O = await fetch(M, {
2577
2641
  method: "GET",
2578
2642
  headers: {
2579
- Authorization: `Bearer ${j}`
2643
+ Authorization: `Bearer ${V}`
2580
2644
  }
2581
2645
  });
2582
2646
  if (O.ok) {
2583
- const ee = await O.blob(), Ie = URL.createObjectURL(ee);
2584
- Z.value.set(k, Ie);
2647
+ const ee = await O.blob(), De = URL.createObjectURL(ee);
2648
+ Z.value.set(w, De);
2585
2649
  } else
2586
2650
  console.error("加载图片失败:", O.status);
2587
- } catch (z) {
2588
- console.error("加载图片失败:", z);
2651
+ } catch (M) {
2652
+ console.error("加载图片失败:", M);
2589
2653
  }
2590
- }, _t = R(() => n.value.length < e.maxCount), Te = y(-1);
2591
- return (_, k) => {
2592
- const z = re("auth");
2593
- return v(), w("div", rl, [
2594
- D("div", sl, [
2595
- (v(!0), w(L, null, V(n.value, (j, O) => (v(), w("div", {
2654
+ }, _t = j(() => u.value.length < e.maxCount), Te = y(-1);
2655
+ return (k, w) => {
2656
+ const M = re("auth");
2657
+ return v(), x("div", nl, [
2658
+ F("div", il, [
2659
+ (v(!0), x(P, null, R(u.value, (V, O) => (v(), x("div", {
2596
2660
  key: O,
2597
2661
  class: "relative image-item",
2598
2662
  onMouseenter: (ee) => Te.value = O,
2599
- onMouseleave: k[0] || (k[0] = (ee) => Te.value = -1)
2663
+ onMouseleave: w[0] || (w[0] = (ee) => Te.value = -1)
2600
2664
  }, [
2601
- D("div", nl, [
2602
- D("img", {
2603
- src: fe(j),
2665
+ F("div", cl, [
2666
+ F("img", {
2667
+ src: fe(V),
2604
2668
  class: "w-full h-full object-cover"
2605
- }, null, 8, il)
2669
+ }, null, 8, dl)
2606
2670
  ]),
2607
- Te.value === O ? (v(), w("div", ul, [
2608
- _.previewUrl ? (v(), w("div", {
2671
+ Te.value === O ? (v(), x("div", pl, [
2672
+ k.previewUrl ? (v(), x("div", {
2609
2673
  key: 0,
2610
2674
  class: "flex items-center text-white cursor-pointer hover:text-blue-400",
2611
2675
  onClick: (ee) => A(O)
@@ -2614,32 +2678,32 @@ const Jl = /* @__PURE__ */ T({
2614
2678
  icon: "icon-eye",
2615
2679
  clickable: ""
2616
2680
  }),
2617
- k[1] || (k[1] = D("span", { class: "text-sm ml-1" }, "预览", -1))
2618
- ], 8, cl)) : x("", !0),
2619
- _.showDelete !== !1 ? (v(), w("div", {
2681
+ w[1] || (w[1] = F("span", { class: "text-sm ml-1" }, "预览", -1))
2682
+ ], 8, fl)) : _("", !0),
2683
+ k.showDelete !== !1 ? (v(), x("div", {
2620
2684
  key: 1,
2621
2685
  class: "flex items-center text-white cursor-pointer hover:text-red-400",
2622
- onClick: (ee) => H(O)
2686
+ onClick: (ee) => Q(O)
2623
2687
  }, [
2624
2688
  S(l(K), {
2625
2689
  icon: "icon-new",
2626
2690
  angle: 45,
2627
2691
  clickable: ""
2628
2692
  }),
2629
- k[2] || (k[2] = D("span", { class: "text-sm ml-1" }, "删除", -1))
2630
- ], 8, dl)) : x("", !0)
2631
- ])) : x("", !0)
2632
- ], 40, ol))), 128)),
2633
- _t.value ? (v(), w("div", pl, [
2634
- W((v(), b(l(ua), B({
2693
+ w[2] || (w[2] = F("span", { class: "text-sm ml-1" }, "删除", -1))
2694
+ ], 8, vl)) : _("", !0)
2695
+ ])) : _("", !0)
2696
+ ], 40, ul))), 128)),
2697
+ _t.value ? (v(), x("div", ml, [
2698
+ q((v(), b(l(ua), N({
2635
2699
  ref_key: "fileUploader",
2636
2700
  ref: p
2637
- }, F.value), {
2701
+ }, I.value), {
2638
2702
  default: h(() => {
2639
- var j;
2703
+ var V;
2640
2704
  return [
2641
- D("div", {
2642
- class: E(["w-16 h-16 border border-dashed border-gray-300 rounded flex items-center justify-center cursor-pointer hover:border-blue-500 transition-colors", [(j = l(o)) == null ? void 0 : j.errClass]])
2705
+ F("div", {
2706
+ class: E(["w-16 h-16 border border-dashed border-gray-300 rounded flex items-center justify-center cursor-pointer hover:border-blue-500 transition-colors", [(V = l(o)) == null ? void 0 : V.errClass]])
2643
2707
  }, [
2644
2708
  S(l(K), {
2645
2709
  icon: "icon-new",
@@ -2650,42 +2714,42 @@ const Jl = /* @__PURE__ */ T({
2650
2714
  }),
2651
2715
  _: 1
2652
2716
  }, 16)), [
2653
- [z, { role: ["Super", "Admin"], permit: ":imagelist:upload" }]
2717
+ [M, { role: ["Super", "Admin"], permit: ":imagelist:upload" }]
2654
2718
  ])
2655
- ])) : x("", !0)
2719
+ ])) : _("", !0)
2656
2720
  ]),
2657
2721
  S(l(ca), {
2658
- preview: { visible: U.value, onVisibleChange: (j) => U.value = j },
2722
+ preview: { visible: B.value, onVisibleChange: (V) => B.value = V },
2659
2723
  src: $.value,
2660
2724
  style: { display: "none" }
2661
2725
  }, null, 8, ["preview", "src"])
2662
2726
  ]);
2663
2727
  };
2664
2728
  }
2665
- }), ur = /* @__PURE__ */ se(fl, [["__scopeId", "data-v-26d707cc"]]), vl = { class: "relative h-[calc(100vh-80px)] overflow-y-auto" }, ml = { class: "flex w-full h-full min-h-full" }, hl = {
2729
+ }), fr = /* @__PURE__ */ se(hl, [["__scopeId", "data-v-26d707cc"]]), gl = { class: "relative h-[calc(100vh-80px)] overflow-y-auto" }, bl = { class: "flex w-full h-full min-h-full" }, yl = {
2666
2730
  key: 0,
2667
2731
  class: "w-1/4 pr-4 min-h-full min-w-[170px] max-w-[200px]"
2668
- }, gl = { class: "flex-1 h-full overflow-y-auto" }, cr = /* @__PURE__ */ T({
2732
+ }, xl = { class: "flex-1 h-full overflow-y-auto" }, vr = /* @__PURE__ */ T({
2669
2733
  __name: "index",
2670
2734
  props: {
2671
2735
  left: { type: Boolean }
2672
2736
  },
2673
- setup(r) {
2674
- const { useToken: a } = rt, { token: e } = a();
2675
- return (t, o) => (v(), w("div", vl, [
2737
+ setup(s) {
2738
+ const { useToken: a } = st, { token: e } = a();
2739
+ return (t, o) => (v(), x("div", gl, [
2676
2740
  S(l(da), {
2677
2741
  class: "m-[10px] p-[10px] h-[calc(100vh-100px)] !min-h-[calc(100vh-100px)]",
2678
- style: ze({
2742
+ style: Me({
2679
2743
  backgroundColor: l(e).colorBgContainer
2680
2744
  })
2681
2745
  }, {
2682
2746
  default: h(() => [
2683
- D("div", ml, [
2684
- t.left ? (v(), w("div", hl, [
2685
- P(t.$slots, "left")
2686
- ])) : x("", !0),
2687
- D("div", gl, [
2688
- P(t.$slots, "default")
2747
+ F("div", bl, [
2748
+ t.left ? (v(), x("div", yl, [
2749
+ L(t.$slots, "left")
2750
+ ])) : _("", !0),
2751
+ F("div", xl, [
2752
+ L(t.$slots, "default")
2689
2753
  ])
2690
2754
  ])
2691
2755
  ]),
@@ -2695,160 +2759,161 @@ const Jl = /* @__PURE__ */ T({
2695
2759
  }
2696
2760
  });
2697
2761
  export {
2698
- os as Alert,
2699
- xs as AppIcon,
2762
+ cs as Alert,
2763
+ Ss as AppIcon,
2700
2764
  ue as AppRouter,
2701
- Xr as AsyncUploader,
2702
- Hl as AutoComplete,
2703
- ks as Breadcrumb,
2704
- Q as Button,
2705
- ft as Cache,
2765
+ as as AsyncUploader,
2766
+ Xl as AutoComplete,
2767
+ $s as Breadcrumb,
2768
+ Y as Button,
2769
+ vt as Cache,
2706
2770
  Sa as CacheKeys,
2707
- ts as CanPreviewFileExt,
2708
- Ql as Cascader,
2709
- Gl as Checkbox,
2710
- cr as Content,
2711
- Jl as DatePicker,
2712
- ws as Datetime,
2713
- Ps as Dialog,
2714
- Rl as Drawer,
2715
- fr as EventPrefix,
2716
- Kl as Form,
2717
- jl as FormItem,
2718
- Ol as Fullscreen,
2719
- Cs as Header,
2720
- Ss as HeaderExits,
2771
+ ss as CanPreviewFileExt,
2772
+ Zl as Cascader,
2773
+ er as Checkbox,
2774
+ vr as Content,
2775
+ tr as DatePicker,
2776
+ Ts as Datetime,
2777
+ Ns as Dialog,
2778
+ Vl as Drawer,
2779
+ gr as EventPrefix,
2780
+ Yl as Form,
2781
+ Wl as FormItem,
2782
+ Kl as Fullscreen,
2783
+ Gl as GroupTools,
2784
+ Ds as Header,
2785
+ Fs as HeaderExits,
2721
2786
  Ta as Helper,
2722
- vr as ICONS_LIB,
2723
- $s as Icon,
2787
+ br as ICONS_LIB,
2788
+ Is as Icon,
2724
2789
  La as Icontool,
2725
- ur as ImageList,
2726
- Ja as Input,
2727
- Xl as InputIcon,
2728
- er as InputNumber,
2729
- Zl as InputPassword,
2730
- Al as LayoutIcon,
2731
- Vl as List,
2790
+ fr as ImageList,
2791
+ el as Input,
2792
+ ar as InputIcon,
2793
+ rr as InputNumber,
2794
+ lr as InputPassword,
2795
+ jl as LayoutIcon,
2796
+ ql as List,
2732
2797
  Pa as ListOperate,
2733
- ns as Loading,
2734
- Ts as Menu,
2735
- Is as MenuTabs,
2736
- zt as MicroOpenApis,
2798
+ ds as Loading,
2799
+ Ps as Menu,
2800
+ Es as MenuTabs,
2801
+ Ot as MicroOpenApis,
2737
2802
  Ne as OPTIONS,
2738
- It as OptionCommProps,
2739
- Ds as ProjectIcon,
2740
- tr as PropEditor,
2803
+ Ft as OptionCommProps,
2804
+ Ls as ProjectIcon,
2805
+ sr as PropEditor,
2741
2806
  ae as ProviderKeys,
2742
- tl as Radio,
2743
- ar as RadioStatus,
2744
- lr as RangePicker,
2745
- Yl as Search,
2746
- Fe as SearchItem,
2747
- rr as Select,
2807
+ rl as Radio,
2808
+ or as RadioStatus,
2809
+ nr as RangePicker,
2810
+ Hl as Search,
2811
+ Ie as SearchItem,
2812
+ ir as Select,
2748
2813
  Ze as Switch,
2749
- Wl as Table,
2814
+ Ql as Table,
2750
2815
  ja as TableOperate,
2751
- sr as Textarea,
2752
- or as TimePicker,
2816
+ ur as Textarea,
2817
+ cr as TimePicker,
2753
2818
  K as ToolIcon,
2754
- yt as Toolbar,
2755
- ys as Tooltip,
2756
- al as Transfer,
2757
- nr as TransferTable,
2758
- ql as Tree,
2759
- ir as TreeSelect,
2760
- as as UploadList,
2761
- Zr as UploadStatus,
2762
- is as appendExcelData,
2763
- us as checkExcelDuplicates,
2764
- mr as checkIconsExpired,
2765
- Et as circleLoading,
2766
- kt as createFromIconfont,
2767
- cs as createMarkedExcelView,
2768
- hr as crumbs,
2769
- Nl as csvToExcelBlob,
2770
- dt as csvToExcelView,
2771
- ds as csvToNormalized,
2819
+ xt as Toolbar,
2820
+ ws as Tooltip,
2821
+ sl as Transfer,
2822
+ dr as TransferTable,
2823
+ Jl as Tree,
2824
+ pr as TreeSelect,
2825
+ os as UploadList,
2826
+ ls as UploadStatus,
2827
+ ps as appendExcelData,
2828
+ fs as checkExcelDuplicates,
2829
+ yr as checkIconsExpired,
2830
+ Lt as circleLoading,
2831
+ wt as createFromIconfont,
2832
+ vs as createMarkedExcelView,
2833
+ xr as crumbs,
2834
+ Ml as csvToExcelBlob,
2835
+ pt as csvToExcelView,
2836
+ ms as csvToNormalized,
2772
2837
  Ye as defaultTools,
2773
- gr as doDelete,
2774
- br as doExecute,
2838
+ _r as doDelete,
2839
+ kr as doExecute,
2775
2840
  at as doQuery,
2776
- yr as doSave,
2777
- ls as donwloadFromMinio,
2841
+ wr as doSave,
2842
+ ns as donwloadFromMinio,
2778
2843
  fa as downloadBlob,
2779
- _r as eventBus,
2780
- ps as excelToExcelView,
2781
- fs as excelToNormalized,
2782
- zl as exportResults,
2783
- Ml as exportSelectedRows,
2844
+ Cr as eventBus,
2845
+ hs as excelToExcelView,
2846
+ gs as excelToNormalized,
2847
+ Rl as exportResults,
2848
+ Al as exportSelectedRows,
2784
2849
  Je as filterColumns,
2785
2850
  le as formValidate,
2786
- xr as getFormDetail,
2787
- kr as getIconTransform,
2788
- wr as getRecordDetail,
2789
- Cr as getRuleTexts,
2790
- Ut as getSelectedLabels,
2791
- Sr as getSelectedValues,
2851
+ Sr as getFormDetail,
2852
+ $r as getIconTransform,
2853
+ Tr as getRecordDetail,
2854
+ Dr as getRuleTexts,
2855
+ Nt as getSelectedLabels,
2856
+ Fr as getSelectedValues,
2792
2857
  oe as getToolByKey,
2793
2858
  Ce as getToolGroup,
2794
2859
  te as getToolStatus,
2795
2860
  J as getToolVisible,
2796
2861
  me as gridQueryFind,
2797
2862
  Xe as gridQueryList,
2798
- $r as gridRowUpdate,
2863
+ Ir as gridRowUpdate,
2799
2864
  et as gridStatusUpdate,
2800
- Ul as initCacheCheck,
2801
- Ll as initDirective,
2802
- Tr as initMenu,
2803
- Ir as initPageFactory,
2804
- Dr as initValidate,
2865
+ zl as initCacheCheck,
2866
+ Bl as initDirective,
2867
+ Pr as initMenu,
2868
+ Er as initPageFactory,
2869
+ Lr as initValidate,
2805
2870
  ce as isEmpty,
2806
- Ft as loadOption,
2807
- Fr as mergeColumns,
2808
- vs as normalizedToExcelView,
2871
+ Pt as loadOption,
2872
+ Ur as mergeColumns,
2873
+ bs as normalizedToExcelView,
2809
2874
  wa as onColumnVisibleChanged,
2810
- Ct as onFormClose,
2875
+ St as onFormClose,
2811
2876
  We as onFormSave,
2812
- wt as onFormSaveAs,
2813
- pt as onFullscreenClick,
2877
+ Ct as onFormSaveAs,
2878
+ ft as onFullscreenClick,
2814
2879
  Ge as onGridRowDelete,
2815
2880
  Qe as onGridRowEdit,
2816
- Pr as onGridRowExpand,
2817
- Lt as onOptionChanged,
2881
+ Nr as onGridRowExpand,
2882
+ Ut as onOptionChanged,
2818
2883
  ha as onReloadClick,
2819
- Y as onToolClicked,
2820
- St as openNewForm,
2821
- Er as outFormDataFields,
2822
- Lr as parseIcons,
2884
+ W as onToolClicked,
2885
+ $t as openNewForm,
2886
+ Br as outFormDataFields,
2887
+ zr as parseIcons,
2823
2888
  Oe as path,
2824
- Ur as pendingNavigation,
2825
- Nr as pinia,
2826
- rs as previewFromMinio,
2827
- Bl as processCsvFile,
2828
- ms as processExcelFile,
2889
+ Mr as pendingNavigation,
2890
+ Or as pinia,
2891
+ is as previewFromMinio,
2892
+ Ol as processCsvFile,
2893
+ ys as processExcelFile,
2829
2894
  tt as queryTree,
2830
- Br as resetRules,
2831
- Mr as routes,
2832
- zr as saveForm,
2833
- Or as setFormData,
2834
- Ar as showBreadcrumb,
2835
- hs as toExcel,
2836
- Pt as unloadOption,
2837
- Rr as uploadTempBtn,
2838
- Kr as uploadTempOpener,
2839
- jr as useAppInfo,
2840
- Vr as useEditorFactory,
2895
+ Ar as resetRules,
2896
+ Rr as routes,
2897
+ Kr as saveForm,
2898
+ jr as setFormData,
2899
+ Vr as showBreadcrumb,
2900
+ xs as toExcel,
2901
+ Et as unloadOption,
2902
+ Yr as uploadTempBtn,
2903
+ Wr as uploadTempOpener,
2904
+ qr as useAppInfo,
2905
+ Hr as useEditorFactory,
2841
2906
  qe as useFormItemFactory,
2842
- Yr as useGridFactory,
2843
- Wr as useHostInfo,
2844
- q as useInputFactory,
2845
- Dt as useOptionFactory,
2846
- qr as usePageFactory,
2847
- Hr as usePageInfo,
2907
+ Qr as useGridFactory,
2908
+ Gr as useHostInfo,
2909
+ H as useInputFactory,
2910
+ It as useOptionFactory,
2911
+ Jr as usePageFactory,
2912
+ Xr as usePageInfo,
2848
2913
  Ue as useSettingInfo,
2849
2914
  Ca as useToolFactory,
2850
- Qr as useTreeFactory,
2915
+ Zr as useTreeFactory,
2851
2916
  Le as useUserInfo,
2852
- Gr as validateData,
2853
- gs as validateExcel
2917
+ es as validateData,
2918
+ _s as validateExcel
2854
2919
  };