@skyfox2000/webui 1.4.25 → 1.4.27

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