@skyfox2000/webui 1.4.24 → 1.4.26

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,60 +1,60 @@
1
- import { u as Le, i as ce, a as Ue, L as xt, c as kt, P as ae, o as We, b as wt, d as Ct, e as qe, g as He, r as ue, f as Qe, h as Ge, j as Je, k as St, l as me, m as Xe, _ as Ze, n as et, O as Ne, p as $t, q as tt, s as Tt, t as It, v as q, w as Dt, x as Ft, y as Pt, z as Et, A as Lt, B as Ut, C as le, D as Nt, E as Bt, F as Mt, G as at, M as zt } from "./assets/modules/upload-template-BuaWOXY_.js";
2
- import { ad as fr, T as vr, U as mr, Y as hr, ac as gr, aa as br, ab as yr, ae as _r, a0 as xr, W as kr, a8 as wr, a5 as Cr, R as Sr, a7 as $r, X as Tr, I as Ir, a2 as Dr, a6 as Fr, a9 as Pr, S as Er, V as Lr, af as Ur, H as Nr, a4 as Br, ag as Mr, $ as zr, a1 as Or, Z as Ar, al as Rr, ak as Kr, ah as jr, J as Vr, K as Yr, ai as Wr, Q as qr, aj as Hr, N as Qr, a3 as Gr } from "./assets/modules/upload-template-BuaWOXY_.js";
3
- import { f as Ot, p as Oe } from "./assets/modules/file-upload-CKMd0H11.js";
4
- import { A as Xr, U as Zr } from "./assets/modules/file-upload-CKMd0H11.js";
5
- import { EnvConfig as Ae, isMicroApp as At } from "@skyfox2000/microbase";
6
- import { FrontCache as ve, httpPost as Be, ResStatus as Me, SERVER_HOST as Rt, fieldMapping as he } from "@skyfox2000/fapi";
7
- import G from "vue-m-message";
8
- import { defineComponent as T, createBlock as b, openBlock as v, withModifiers as pe, unref as l, useAttrs as ne, withCtx as h, createElementVNode as D, createVNode as S, mergeProps as B, renderSlot as P, normalizeClass as E, toDisplayString as N, createCommentVNode as x, ref as y, provide as _e, watch as I, onMounted as X, createTextVNode as M, inject as ge, resolveDirective as re, withDirectives as W, computed as R, createElementBlock as w, normalizeStyle as ze, Fragment as L, renderList as V, resolveDynamicComponent as Kt, onActivated as xe, createSlots as lt, useSlots as jt, shallowRef as Vt, onUnmounted as Yt, withKeys as Re } from "vue";
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 rt, Drawer as qt, Space as ie, Form as st, message as Ht, FormItem as ot, ConfigProvider as be, Popconfirm as nt, DropdownButton as it, Menu as ke, MenuItem as we, Dropdown as Ee, Checkbox as Qt, List as Gt, ListItem as Jt, Card as Xt, Button as ut, Table as ct, Tree as Zt, Cascader as ea, DatePicker as ta, Input as de, InputPassword as aa, InputNumber as la, RangePicker as ra, Textarea as sa, TimePicker as oa, Transfer as na, TreeSelect as ia, Upload as ua, Image as ca, LayoutContent as da } from "ant-design-vue";
12
- import { VueDraggableNext as pa } from "vue-draggable-next";
13
- import { d as fa } from "./assets/modules/uploadList-De6KfTAV.js";
14
- import { C as ts, U as as, a as ls, p as rs } from "./assets/modules/uploadList-De6KfTAV.js";
15
- import { c as dt } from "./assets/modules/index-gmbMtZa2.js";
16
- import { _ as os, h as ns, b as is, a as us, d as cs, e as ds, g as ps, f as fs, n as vs, p as ms, t as hs, v as gs } from "./assets/modules/index-gmbMtZa2.js";
17
- import { _ as Q } from "./assets/modules/index-BpsqYPCw.js";
18
- import { _ as K } from "./assets/modules/toolIcon-DWurTPaB.js";
19
- import { a as ys } from "./assets/modules/toolIcon-DWurTPaB.js";
20
- import { _ as xs, b as ks, c as ws, d as Cs, e as Ss, I as $s, f as Ts, g as Is, a as Ds } from "./assets/modules/menuTabs-CvAiSVNW.js";
21
- import { _ as Ps } from "./assets/modules/index-DvozNhVM.js";
22
- import { _ as se } from "./assets/modules/_plugin-vue_export-helper-CHgC5LLL.js";
23
- const Ke = (r, 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, r.setAttribute("disabled", "disabled"), r.disabled = !0), r.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"), n = r.parentNode;
30
- if (n) {
31
- const i = a.component;
32
- i ? i.props.style = { display: "none" } : n.replaceChild(o, r);
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 = (r) => {
36
- var i, p;
37
- const a = Le(), { url: e, role: t, permit: o } = r;
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 n = 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") {
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
44
  let c = !1, u = !1;
45
- return ce(t) || (c = a.hasRole(t)), a.isAdmin() ? c : (ce(o) || (u = a.hasPermit(n, o)), c || u);
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 = {
48
+ }, ha = {
49
49
  mounted(r, a, e) {
50
- const t = a.value || {}, o = a.arg || "remove", n = t.behavior || o, i = je(t);
51
- Ke(r, e, i, n);
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
53
  updated(r, a, e) {
54
- const t = a.value || {}, o = a.arg || "remove", n = t.behavior || o, i = je(t);
55
- Ke(r, e, i, n);
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 = {
57
+ }, ba = {
58
58
  mounted: (r, a) => {
59
59
  r.addEventListener("keydown", (e) => {
60
60
  e.key === "Enter" && a.value();
@@ -64,43 +64,43 @@ const Ke = (r, a, e, t = "remove") => {
64
64
  r.removeEventListener("keydown", () => {
65
65
  });
66
66
  }
67
- }, De = {
68
- auth: va,
69
- submit: ma
70
- }, Ll = (r, a) => ((a || Object.keys(De)).forEach((t) => {
71
- t in De && r.directive(t, De[t]);
72
- }), r), oe = (r, a) => {
67
+ }, Fe = {
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
73
  const e = r.find((t) => t.key === a);
74
74
  if (e)
75
75
  return e;
76
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 = (r, a, e) => {
83
- const t = [], o = [];
84
- return e || (e = [...r]), e.length && e.forEach((n, i) => {
85
- let p;
86
- if (typeof n == "string") {
87
- const c = oe(r, n);
88
- p = c ? { ...c } : { key: n, label: n };
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 c = oe(r, n.key);
91
- p = c ? { ...c, ...n } : { ...n };
90
+ const c = ie(r, i.key);
91
+ f = c ? { ...c, ...i } : { ...i };
92
92
  }
93
- p.click || (p.click = (c, u, f) => {
94
- u && (u.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 = (r, a) => r.disabled && typeof r.disabled == "function" ? r.disabled(a) : r.disabled, J = (r, a) => r.visible && typeof r.visible == "function" ? r.visible(a) : r.visible ?? !0, ha = (r, a) => {
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 = (r, a) => {
101
+ }, xa = (r, a) => {
102
102
  a.searchBar.value = !a.searchBar.value;
103
- }, ba = (r, 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 = (r, a, e, t = "remove") => {
112
112
  a.tableSize.value = "large";
113
113
  break;
114
114
  }
115
- }, ya = (r, a) => {
115
+ }, ka = (r, a) => {
116
116
  a.selectable.value = !a.selectable.value, a.selectable.value || (a.selectKeys.value = [], a.selectRows.value = []);
117
- }, _a = (r, a) => {
117
+ }, wa = (r, a) => {
118
118
  a.rowExpand.value = !a.rowExpand.value;
119
- }, Ve = (r, a) => {
119
+ }, Ge = (r, a) => {
120
120
  a.selectable.value = !a.selectable.value;
121
- }, Y = (r, a, e, t, o) => {
122
- (!r.confirm || o) && r.click && (a ? r.click(a, e, t) : r.click(null, e, t)), ka(r);
123
- }, xa = (r, a) => {
121
+ }, 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
- }, pt = () => {
126
- const r = Ue();
125
+ }, gt = () => {
126
+ const r = Be();
127
127
  r.setFullscreen(!r.fullscreen);
128
- }, ka = (r, a) => {
128
+ }, Sa = (r, a) => {
129
129
  (r.icons || r.labels) && (r.iconStatus = r.iconStatus || 0, r.iconStatus += 1, r.labels && r.labels.length && (r.label = r.labels[r.iconStatus % r.labels.length]), r.icons && r.icons.length && (r.icon = r.icons[r.iconStatus % r.icons.length]));
130
- }, wa = (r, a) => {
130
+ }, $a = (r, a) => {
131
131
  a ? delete r.visible : r.visible = !1;
132
- }, Ye = [
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 = (r, 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 = (r, a, e, t = "remove") => {
164
164
  icon: "icon-row-collapse",
165
165
  iconStatus: 0,
166
166
  icons: ["icon-row-collapse", "icon-row-expand"],
167
- click: _a
167
+ click: wa
168
168
  },
169
169
  {
170
170
  key: "tool.export.excel",
@@ -174,12 +174,12 @@ const Ke = (r, 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 = (r, a, e, t = "remove") => {
191
191
  {
192
192
  key: "tool.export.pdf.selected",
193
193
  label: "选中的记录",
194
- click: xa
194
+ click: Ca
195
195
  }
196
196
  ]
197
197
  },
@@ -211,47 +211,47 @@ const Ke = (r, a, e, t = "remove") => {
211
211
  icon: "icon-fullscreen",
212
212
  iconStatus: 0,
213
213
  icons: ["icon-fullscreen", "icon-exitscreen"],
214
- click: pt
214
+ click: gt
215
215
  }
216
- ], Ca = (r) => {
216
+ ], Ta = (r) => {
217
217
  if (!r.tools || r.tools.length > 0) {
218
218
  const a = [];
219
- return r.tools ? a.push(...r.tools) : a.push(...Ye), { tools: Ce(Ye, 0, a).buttons };
219
+ return 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__ */ ((r) => (r.SYS_CONFIG = "SYS_CONFIG_", r.APP_MENU = "APP_MENU_", r.DICT_TYPE = "DICT_TYPE_", r.HOST_INFO = "HOST_INFO_", r.APP_PERMITS = "APP_PERMITS_", r.USER_SETTINGS = "USER_SETTINGS_", r.DICT_DATA = "DICT_DATA_", r.COMMON_OPTIONS = "COMMON_OPTIONS_", r))(Sa || {});
226
- class ft {
225
+ var 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 && ft.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 ft {
278
278
  return a && typeof a == "object" && "data" in a && "lastTime" in a && typeof a.lastTime == "number";
279
279
  }
280
280
  }
281
- async function Ul() {
281
+ async function sr() {
282
282
  try {
283
- const r = 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 Ul() {
288
288
  },
289
289
  {}
290
290
  );
291
- if ((r == null ? void 0 : r.status) === Me.SUCCESS) {
291
+ if ((r == null ? void 0 : r.status) === Ae.SUCCESS) {
292
292
  const a = r.data;
293
293
  Object.keys(a).forEach((e) => {
294
294
  const t = a[e];
295
- ["local", "session"].forEach((n) => {
296
- const i = n === "local" ? localStorage : sessionStorage;
297
- for (let p = 0; p < i.length; p++) {
298
- const c = i.key(p);
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
299
  if (c && c.endsWith(e))
300
300
  try {
301
- const u = JSON.parse(i.getItem(c));
302
- u && typeof u == "object" && "lastTime" in u && typeof u.lastTime == "number" && u.lastTime !== t && i.removeItem(c);
301
+ const 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
  }
@@ -311,8 +311,8 @@ async function Ul() {
311
311
  console.error("检查缓存更新失败", r);
312
312
  }
313
313
  }
314
- const Nl = async (r, a) => {
315
- const e = await dt(r, 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 Nl = async (r, a) => {
321
321
  // 不再返回blob对象,使用URL即可
322
322
  };
323
323
  throw new Error(e.error || "CSV转Excel失败");
324
- }, Bl = async (r, a) => {
324
+ }, nr = async (r, a) => {
325
325
  try {
326
- const t = new TextDecoder("utf-8").decode(r), o = await dt(t, a);
326
+ const t = new TextDecoder("utf-8").decode(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 Nl = async (r, a) => {
338
338
  error: e instanceof Error ? e.message : "未知错误"
339
339
  };
340
340
  }
341
- }, vt = (r) => r ? Array.isArray(r) ? r.join(".") : r : "", mt = (r) => r.map((a) => ({
341
+ }, ht = (r) => r ? Array.isArray(r) ? r.join(".") : r : "", bt = (r) => r.map((a) => ({
342
342
  label: a.title,
343
- value: vt(a.dataIndex) || a.key || ""
344
- })), ht = (r, a) => r.map((e, t) => {
345
- const o = { ...e };
346
- return a.forEach((n) => {
347
- const i = vt(n.dataIndex) || n.key;
348
- i && n.customRender && (o[i] = n.customRender({
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: n
352
+ column: i
353
353
  }));
354
- }), o;
355
- }), gt = async (r, 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, r);
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
- }, Ml = async (r, a, e) => {
362
+ }, ir = async (r, a, e) => {
363
363
  try {
364
- const t = bt(r), o = a.filter((p) => p.visible !== !1 && p.export !== !1), n = mt(o), i = ht(e, o);
365
- await gt(t, n, i);
364
+ const t = _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
- }, bt = (r) => {
369
+ }, _t = (r) => {
370
370
  const a = /\{([^}]+)\}/g;
371
- return r.replace(a, (e, t) => Pe().format(t));
372
- }, zl = async (r, 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 = bt(r), n = a.filter((u) => u.visible !== !1), i = mt(n);
375
- let p = e.page, c = e.gridQuery;
376
- return t.api || (t.api = p.api), t.authorize === void 0 && (t.authorize = p.authorize), e.isGridLoading.value = !0, Be(t, c).then(async (u) => {
377
- if (e.isGridLoading.value = !1, (u == null ? void 0 : u.status) === Me.SUCCESS) {
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
378
  if (u.data) {
379
- let f = u.data;
380
- const s = ht(f, n);
381
- await gt(o, i, s);
379
+ let v = u.data;
380
+ const s = yt(v, i);
381
+ await xt(n, o, s);
382
382
  }
383
- } else if ((u == null ? void 0 : u.errno) == xt) {
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
- }, Ol = /* @__PURE__ */ T({
391
+ }, cr = /* @__PURE__ */ I({
392
392
  __name: "fullscreen",
393
393
  setup(r) {
394
- const a = Ue();
395
- return (e, t) => (v(), b(K, {
396
- onClick: pe(l(pt), ["stop"]),
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: {
@@ -408,20 +408,20 @@ const Nl = async (r, a) => {
408
408
  placement: {}
409
409
  },
410
410
  setup(r) {
411
- const a = ne();
412
- return (e, t) => (v(), b(l(Wt), {
411
+ const a = ue();
412
+ return (e, t) => (d(), k(l(Ht), {
413
413
  placement: e.placement ?? "topRight"
414
414
  }, {
415
- content: h(() => [
416
- P(e.$slots, "default", {}, () => [
417
- D("div", {
418
- class: E(["text-[14px]", [e.maxWidth]])
419
- }, N(e.text), 3)
415
+ content: x(() => [
416
+ O(e.$slots, "default", {}, () => [
417
+ F("div", {
418
+ class: B(["text-[14px]", [e.maxWidth]])
419
+ }, M(e.text), 3)
420
420
  ])
421
421
  ]),
422
- default: h(() => [
423
- D("span", $a, [
424
- S(K, B({
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 Nl = async (r, a) => {
430
430
  _: 3
431
431
  }, 8, ["placement"]));
432
432
  }
433
- }), Al = /* @__PURE__ */ T({
433
+ }), dr = /* @__PURE__ */ I({
434
434
  __name: "layoutIcon",
435
435
  props: {
436
436
  icon: {
@@ -441,20 +441,20 @@ const Nl = async (r, a) => {
441
441
  }
442
442
  },
443
443
  setup(r) {
444
- const a = r, t = kt({
445
- iconUrl: `${Rt.MICROLAYOUT_ICONS}`,
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, n) => r.icon || r.icons ? (v(), b(l(t), B({
450
+ return (n, i) => r.icon || r.icons ? (d(), k(l(t), U({
451
451
  key: 0,
452
452
  icon: r.icon,
453
453
  icons: r.icons,
454
454
  class: ["align-middle"]
455
- }, o.$attrs), null, 16, ["icon", "icons"])) : x("", !0);
455
+ }, n.$attrs), null, 16, ["icon", "icons"])) : w("", !0);
456
456
  }
457
- }), Ia = { class: "hover:bg-gray-200 w-[24px] h-[24px] rounded-md" }, Rl = /* @__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: {},
@@ -465,25 +465,25 @@ const Nl = async (r, a) => {
465
465
  drawerSaveAs: { type: Function }
466
466
  },
467
467
  setup(r) {
468
- const { useToken: a } = rt, { token: e } = a(), t = y(!1), o = r, n = o.editorCtrl;
469
- _e(ae.EditorControl, n), I(
470
- () => n.visible.value,
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
471
  (u) => {
472
472
  t.value = u ?? !1;
473
473
  }
474
- ), X(() => {
475
- t.value = n.visible.value ?? !1;
474
+ ), ae(() => {
475
+ t.value = i.visible.value ?? !1;
476
476
  });
477
- const i = () => {
478
- o.drawerSave ? o.drawerSave() : n && We(n);
479
- }, p = () => {
480
- o.drawerSaveAs ? o.drawerSaveAs() : n && wt(n);
477
+ const o = () => {
478
+ n.drawerSave ? n.drawerSave() : i && qe(i);
479
+ }, f = () => {
480
+ n.drawerSaveAs ? n.drawerSaveAs() : i && Tt(i);
481
481
  }, c = () => {
482
- Ct(n);
482
+ Dt(i);
483
483
  };
484
- return (u, 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] = (s) => t.value = s),
486
+ "onUpdate:open": v[0] || (v[0] = (s) => t.value = s),
487
487
  "get-container": !1,
488
488
  closable: !1,
489
489
  "header-style": {
@@ -504,10 +504,10 @@ const Nl = async (r, a) => {
504
504
  width: "420px",
505
505
  onClose: c
506
506
  }, {
507
- extra: h(() => [
508
- P(u.$slots, "extra", {}, () => [
509
- D("div", Ia, [
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,
@@ -520,44 +520,44 @@ const Nl = async (r, a) => {
520
520
  ])
521
521
  ])
522
522
  ]),
523
- default: h(() => [
524
- P(u.$slots, "default")
523
+ default: x(() => [
524
+ O(u.$slots, "default")
525
525
  ]),
526
- footer: h(() => [
527
- P(u.$slots, "footer", {}, () => [
528
- S(l(ie), null, {
529
- default: h(() => [
530
- u.cancelText !== "" ? (v(), b(l(Q), {
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
532
  onClick: c
533
533
  }, {
534
- default: h(() => [
535
- M(N(u.cancelText ?? "取消"), 1)
534
+ default: x(() => [
535
+ Y(M(u.cancelText ?? "取消"), 1)
536
536
  ]),
537
537
  _: 1
538
- })) : x("", !0),
539
- u.saveAsText !== "" && l(n).saveAsBtnVisible !== !1 ? (v(), b(l(Q), {
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(n).isFormSaving.value
543
+ loading: l(i).isFormSaving.value
544
544
  }, {
545
- default: h(() => [
546
- M(N(u.saveAsText ?? "另存为"), 1)
545
+ default: x(() => [
546
+ Y(M(u.saveAsText ?? "另存为"), 1)
547
547
  ]),
548
548
  _: 1
549
- }, 8, ["loading"])) : x("", !0),
550
- u.saveText !== "" && l(n).saveBtnVisible !== !1 ? (v(), b(l(Q), {
549
+ }, 8, ["loading"])) : 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(n).isFormSaving.value
554
+ loading: l(i).isFormSaving.value
555
555
  }, {
556
- default: h(() => [
557
- M(N(u.saveText ?? "保存"), 1)
556
+ default: x(() => [
557
+ Y(M(u.saveText ?? "保存"), 1)
558
558
  ]),
559
559
  _: 1
560
- }, 8, ["loading"])) : x("", !0)
560
+ }, 8, ["loading"])) : w("", !0)
561
561
  ]),
562
562
  _: 1
563
563
  })
@@ -566,7 +566,7 @@ const Nl = async (r, a) => {
566
566
  _: 3
567
567
  }, 8, ["open", "header-style"]));
568
568
  }
569
- }), Kl = /* @__PURE__ */ T({
569
+ }), fr = /* @__PURE__ */ I({
570
570
  __name: "index",
571
571
  props: {
572
572
  labelWidth: {},
@@ -574,10 +574,10 @@ const Nl = async (r, a) => {
574
574
  editorCtrl: {}
575
575
  },
576
576
  setup(r) {
577
- const a = r, e = a.editorCtrl ?? ge(ae.EditorControl, void 0);
578
- return _e(ae.LabelWidth, a.labelWidth), (t, o) => {
579
- const n = re("submit");
580
- return W((v(), b(l(st), {
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 Nl = async (r, a) => {
587
587
  flexWrap: "wrap"
588
588
  }
589
589
  }, {
590
- default: h(() => [
591
- P(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
- n,
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
- }), Da = {
604
+ }), Ea = {
605
605
  key: 0,
606
606
  class: "flex-grow"
607
- }, Fa = { class: "w-8 mt-[-2px]" }, jl = /* @__PURE__ */ T({
607
+ }, La = { class: "w-8 mt-[-2px]" }, vr = /* @__PURE__ */ I({
608
608
  inheritAttrs: !1,
609
609
  __name: "formItem",
610
610
  props: {
@@ -616,70 +616,70 @@ const Nl = async (r, a) => {
616
616
  bottomMargin: {}
617
617
  },
618
618
  setup(r) {
619
- const a = r, e = ne(), t = ge(ae.EditorControl, void 0), o = ge(ae.LabelWidth, "85px") ?? "85px", n = qe(a, t), i = y(!1);
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 = R(() => {
623
+ const f = K(() => {
624
624
  var u;
625
625
  if (!a.rule)
626
626
  return !1;
627
- const c = He(a.rule.split("."), (u = t == null ? void 0 : t.formRules) == null ? void 0 : u.value);
628
- return c ? (c.required || (n.value.errClass = "", n.value.msg = ""), c.required ?? !0) : (Ht.error(`"${a.label}" 的验证规则 \`${a.rule}\` 不存在`), n.value.errClass = "text-[#ff4d4f]", n.value.msg = `规则 \`${a.rule}\` 不存在,请检查代码!`, !0);
627
+ const 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 (c, u) => (v(), w("div", {
631
- class: E(["relative", c.bottomMargin ? c.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(ot), B({
633
+ o.value ? (d(), k(l(ut), U({
634
634
  key: 0,
635
- required: p.value,
635
+ required: f.value,
636
636
  class: ["relative", [c.nextLine ? "mb-0" : c.rule ? "" : "mb-3"]]
637
637
  }, l(e)), {
638
- label: h(() => [
639
- D("span", {
640
- class: E([l(n).errClass ? "text-[#ff4d4f]" : "", "w-full"])
641
- }, N(c.label), 3)
638
+ label: x(() => [
639
+ F("span", {
640
+ class: B([l(i).errClass ? "text-[#ff4d4f]" : "", "w-full"])
641
+ }, M(c.label), 3)
642
642
  ]),
643
- default: h(() => [
644
- D("div", {
645
- class: E(["flex items-center", c.width ? c.width : "w-full"])
643
+ default: x(() => [
644
+ F("div", {
645
+ class: B(["flex items-center", c.width ? c.width : "w-full"])
646
646
  }, [
647
- c.nextLine ? x("", !0) : (v(), w("div", Da, [
648
- P(c.$slots, "default")
647
+ c.nextLine ? w("", !0) : (d(), b("div", Ea, [
648
+ O(c.$slots, "default")
649
649
  ])),
650
- D("div", Fa, [
651
- P(c.$slots, "helper", {}, () => [
652
- c.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
654
  text: c.helper
655
- }, null, 8, ["text"])) : x("", !0)
655
+ }, null, 8, ["text"])) : w("", !0)
656
656
  ])
657
657
  ])
658
658
  ], 2)
659
659
  ]),
660
660
  _: 3
661
- }, 16, ["required", "class"])) : x("", !0),
662
- c.nextLine ? (v(), w("div", {
661
+ }, 16, ["required", "class"])) : w("", !0),
662
+ c.nextLine ? (d(), b("div", {
663
663
  key: 1,
664
- class: E(["w-[95%] flex items-center relative", [c.nextLine ? c.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
- P(c.$slots, "default")
667
- ], 2)) : x("", !0),
668
- l(n).errClass ? (v(), w("span", {
666
+ O(c.$slots, "default")
667
+ ], 2)) : w("", !0),
668
+ l(i).errClass ? (d(), b("span", {
669
669
  key: 2,
670
- style: ze({ left: c.nextLine ? "2px" : l(o) }),
670
+ style: Oe({ left: c.nextLine ? "2px" : l(n) }),
671
671
  class: "absolute bottom-[3px] text-[12px] text-[#ff4d4fcc]"
672
- }, N(l(n).msg), 5)) : x("", !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
681
  setup(r) {
682
- const a = r, e = a.gridCtrl, t = R(() => ue.currentRoute.value.path), o = [
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 Nl = async (r, 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,13 +701,13 @@ const Nl = async (r, 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: n, menus: i } = Ce(o, 0, e.operates), p = (c) => {
706
+ ], { buttons: i, menus: o } = Se(n, 0, e.operates), f = (c) => {
707
707
  if (typeof c.disabled == "boolean")
708
708
  return c.disabled;
709
709
  if (typeof c.disabled == "function")
710
- return te(c, a.record) ?? !1;
710
+ return G(c, a.record) ?? !1;
711
711
  if (a.record.hasOwnProperty(e.statusKey))
712
712
  switch (c.key) {
713
713
  case "Edit":
@@ -718,89 +718,89 @@ const Nl = async (r, a) => {
718
718
  return !1;
719
719
  };
720
720
  return (c, u) => {
721
- const f = re("auth");
722
- return v(), b(l(be), { theme: {
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), w(L, null, V(l(n), (s) => (v(), w(L, {
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
731
  key: s.key
732
732
  }, [
733
- l(J)(s, a.record) ? (v(), b(l(nt), {
733
+ l(Q)(s, a.record) ? (d(), k(l(ct), {
734
734
  key: 0,
735
- disabled: p(s) || !s.confirm,
735
+ disabled: f(s) || !s.confirm,
736
736
  cancelText: "否",
737
737
  okText: "是",
738
738
  title: s.confirmText,
739
739
  okButtonProps: { size: "small" },
740
740
  cancelButtonProps: { size: "small" },
741
- onConfirm: (m) => l(Y)(s, l(e).page, l(e), a.record, !0)
741
+ onConfirm: (g) => l(J)(s, l(e).page, l(e), a.record, !0)
742
742
  }, {
743
- default: h(() => [
744
- l(J)(s, a.record) ? W((v(), b(l(K), {
743
+ default: x(() => [
744
+ l(Q)(s, a.record) ? H((d(), k(l(V), {
745
745
  key: s.key,
746
746
  icon: s.icon,
747
747
  danger: s.danger,
748
- disabled: p(s),
749
- onClick: (m) => !p(s) && l(Y)(s, l(e).page, l(e), a.record),
750
- clickable: !p(s),
751
- class: E([
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
753
  s.danger ? "text-red-500" : "text-gray-600",
754
- p(s) ? "opacity-30 cursor-not-allowed" : "hover:text-gray-800"
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: s.role, permit: s.permit }]
758
- ]) : x("", !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"])) : x("", !0)
761
+ }, 1032, ["disabled", "title", "onConfirm"])) : w("", !0)
762
762
  ], 64))), 128)),
763
- c.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(it), {
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), w(L, null, V(l(i), (s) => (v(), w(L, {
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
776
  key: s.key
777
777
  }, [
778
- l(J)(s, a.record) ? W((v(), b(l(we), {
778
+ l(Q)(s, a.record) ? H((d(), k(l(Ce), {
779
779
  key: 0,
780
- disabled: p(s),
781
- onClick: (m) => l(Y)(s, 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
- M(N(s.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: s.role, permit: s.permit }]
789
- ]) : x("", !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
- u[0] || (u[0] = M(" 更多 "))
795
+ default: x(() => [
796
+ u[0] || (u[0] = Y(" 更多 "))
797
797
  ]),
798
798
  _: 1,
799
799
  __: [0]
800
- })) : x("", !0)
800
+ })) : w("", !0)
801
801
  ]),
802
802
  _: 1
803
- })) : x("", !0)
803
+ })) : w("", !0)
804
804
  ]),
805
805
  _: 1
806
806
  })
@@ -809,93 +809,93 @@ const Nl = async (r, 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
817
  setup(r) {
818
- const a = r, e = a.gridCtrl, { tools: t } = Ca(a.gridCtrl), o = Ue();
819
- I(
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 n = y([]);
826
- I(
825
+ const i = C([]);
826
+ L(
827
827
  () => e.columns.value,
828
- (p) => {
829
- n.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, ...n.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, c) => (v(), w("div", Ea, [
837
- (v(!0), w(L, null, V(l(t), (u, f) => (v(), w(L, {
836
+ return (f, c) => (d(), b("div", Ma, [
837
+ (d(!0), b(E, null, j(l(t), (u, v) => (d(), b(E, {
838
838
  key: u.key
839
839
  }, [
840
- l(J)(u) && u.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(() => [
846
- D("div", {
847
- class: E(["min-w-[100px] bg-white rounded shadow-md p-4", u.dropdownClass])
845
+ overlay: x(() => [
846
+ F("div", {
847
+ class: B(["min-w-[100px] bg-white rounded shadow-md p-4", u.dropdownClass])
848
848
  }, [
849
- u.dropdown === "headset" ? (v(), b(l(pa), {
849
+ u.dropdown === "headset" ? (d(), k(l(ga), {
850
850
  key: 0,
851
- modelValue: n.value,
852
- "onUpdate:modelValue": c[1] || (c[1] = (s) => n.value = s),
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), w(L, null, V(n.value, (s) => (v(), w("div", {
857
+ default: x(() => [
858
+ (d(!0), b(E, null, j(i.value, (s) => (d(), b("div", {
859
859
  key: s.name,
860
- onClick: c[0] || (c[0] = pe(() => {
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
- c[2] || (c[2] = D("span", { class: "drag-handle mr-2 text-gray-400 hover:text-gray-600 cursor-move" }, "⋮⋮", -1)),
865
- S(l(Qt), {
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
866
  checked: s.visible !== !1,
867
- onChange: pe(
868
- (m) => {
869
- l(wa)(s, m.target.checked);
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
- M(N(s.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"])) : x("", !0)
883
+ }, 8, ["modelValue"])) : w("", !0)
884
884
  ], 2)
885
885
  ]),
886
- default: h(() => [
887
- S(l(Q), {
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)(u),
893
+ disabled: l(G)(u),
894
894
  tiptext: u.label,
895
- onClick: (s) => l(Y)(u, l(e).page, l(e))
895
+ onClick: (s) => l(J)(u, l(e).page, l(e))
896
896
  }, {
897
- default: h(() => [
898
- S(l(K), {
897
+ default: x(() => [
898
+ D(l(V), {
899
899
  icon: u.icon,
900
900
  class: "w-[18px] h-[18.5px]",
901
901
  clickable: ""
@@ -905,39 +905,39 @@ const Nl = async (r, a) => {
905
905
  }, 1032, ["class", "disabled", "tiptext", "onClick"])
906
906
  ]),
907
907
  _: 2
908
- }, 1024)) : !u.children && l(J)(u) ? (v(), b(l(Q), {
908
+ }, 1024)) : !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)(u),
915
+ disabled: l(G)(u),
916
916
  tiptext: u.label,
917
- onClick: (s) => l(Y)(u, l(e).page, l(e))
917
+ onClick: (s) => l(J)(u, l(e).page, l(e))
918
918
  }, {
919
- default: h(() => [
920
- S(l(K), {
919
+ default: x(() => [
920
+ D(l(V), {
921
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)(u) ? (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), w(L, null, V(u.children, (s) => (v(), b(l(we), {
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
936
  key: s.key,
937
- disabled: l(te)(s)
937
+ disabled: l(G)(s)
938
938
  }, {
939
- default: h(() => [
940
- M(N(s.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 Nl = async (r, a) => {
945
945
  _: 2
946
946
  }, 1024)
947
947
  ]),
948
- default: h(() => [
949
- S(l(Q), {
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)(u),
954
+ disabled: l(G)(u),
955
955
  tiptext: u.label,
956
956
  icon: u.icon,
957
957
  iconProps: { class: "w-[19px] h-[19px]" },
958
- onClick: (s) => l(Y)(u, 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 Nl = async (r, a) => {
967
967
  }, 1032, ["class", "disabled", "tiptext", "icon", "onClick"])
968
968
  ]),
969
969
  _: 2
970
- }, 1024)) : x("", !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, yt = /* @__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
980
  setup(r) {
981
- const a = r, e = a.gridCtrl, t = e.page, o = a.editorCtrl, n = R(() => ue.currentRoute.value.path), i = [
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 Nl = async (r, a) => {
988
988
  role: ["Super", "Admin"],
989
989
  permit: ":new",
990
990
  // 默认仅受权限码控制
991
- click: () => St(o)
991
+ click: () => Pt(n)
992
992
  }
993
- ], p = y([]), c = y([]);
994
- return I(
993
+ ], f = C([]), c = C([]);
994
+ return L(
995
995
  () => {
996
996
  var u;
997
997
  return (u = e.buttons) == null ? void 0 : u.value;
998
998
  },
999
999
  () => {
1000
1000
  var s;
1001
- const { buttons: u, menus: f } = Ce(
1002
- i,
1003
- e.flat !== void 0 ? e.flat : Ba,
1001
+ const { buttons: u, menus: v } = Se(
1002
+ o,
1003
+ e.flat !== void 0 ? e.flat : Aa,
1004
1004
  (s = e.buttons) == null ? void 0 : s.value
1005
1005
  );
1006
- p.value.splice(0, p.value.length, ...u), c.value.splice(0, c.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
- ), (u, f) => {
1013
- const s = re("auth");
1014
- return v(), w("div", Ua, [
1015
- S(l(ie), null, {
1016
- default: h(() => [
1017
- (v(!0), w(L, null, V(p.value, (m) => W((v(), b(l(Q), {
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(Y)(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
- M(N(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
- [s, { url: n.value, role: m.role, permit: m.permit }]
1030
+ [s, { url: i.value, role: g.role, permit: g.permit }]
1031
1031
  ])), 128)),
1032
- c.value.length > 0 ? (v(), b(l(Ee), { key: 0 }, {
1033
- overlay: h(() => [
1034
- S(l(ke), null, {
1035
- default: h(() => [
1036
- (v(!0), w(L, null, V(c.value, (m) => W((v(), b(l(we), {
1037
- key: m.key,
1038
- disabled: l(te)(m),
1039
- onClick: (d) => l(Y)(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
- M(N(m.label), 1)
1041
+ default: x(() => [
1042
+ Y(M(g.label), 1)
1043
1043
  ]),
1044
1044
  _: 2
1045
1045
  }, 1032, ["disabled", "onClick"])), [
1046
- [s, { url: n.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(Q), null, {
1054
- default: h(() => f[0] || (f[0] = [
1055
- M(" 更多操作 ")
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
- })) : x("", !0),
1063
- p.value.length === 0 && c.value.length === 0 ? (v(), w("span", Na)) : x("", !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(Kt(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
- }), Ma = { class: "flex items-center justify-between" }, za = { class: "flex items-center space-x-2" }, Vl = /* @__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: {
@@ -1086,92 +1086,92 @@ const Nl = async (r, a) => {
1086
1086
  statusDisabled: {}
1087
1087
  },
1088
1088
  setup(r) {
1089
- const a = r, e = ne(), t = a.gridCtrl, o = R(() => ue.currentRoute.value.path);
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 n = y(t.pageSize.value), i = y(t.pageNo.value), p = y([]), c = 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: n.value,
1095
- showTotal: (f) => `共 ${f} 条记录`,
1096
- onChange: (f, s) => {
1097
- c.value !== !1 && (c.value.current = f, c.value.pageSize = s), n.value = s, i.value = f, t && (t.pageNo.value = f, t.pageSize.value = s, t.remotePage && me(t));
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 && (c.value = !1), I(
1101
+ a.pagination === !1 && (c.value = !1), L(
1102
1102
  () => t.tableData.value,
1103
- (f) => {
1104
- f && (p.value = f, c.value !== !1 && (c.value.total = t.total.value ?? 0, c.value.current = t.pageNo.value ?? 1, c.value.pageSize = t.pageSize.value ?? 10));
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
- ), I(
1107
+ ), L(
1108
1108
  () => a.listData,
1109
- (f) => {
1110
- f && (p.value = f, c.value !== !1 && (c.value.total = f.length, c.value.current = t.pageNo.value ?? 1, c.value.pageSize = t.pageSize.value ?? 10));
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 u = y(!1);
1115
- return xe(() => {
1114
+ const u = C(!1);
1115
+ return ke(() => {
1116
1116
  u.value && t && t.autoload && (t.reload.value = !0);
1117
- }), X(async () => {
1118
- var f, s, m, d, g;
1119
- _e(ae.GridControl, t), t.page && ((f = t.gridUrl) != null && f.url) && (((s = t.gridUrl) == null ? void 0 : s.url) === ((m = t.page.urls.list) == null ? void 0 : m.url) && (t.remotePage = !1), ((d = t.gridUrl) == null ? void 0 : d.url) === ((g = t.page.urls.find) == null ? void 0 : g.url) && (t.remotePage = !0)), t.tableData.value ? (p.value = t.tableData.value, t.total.value = p.value.length, c.value !== !1 && (c.value.total = t.total.value ?? 0)) : t.autoload !== !1 && (t.remotePage ? p.value = (await me(t)).rows : p.value = await Xe(t)), setTimeout(() => {
1117
+ }), ae(async () => {
1118
+ var v, s, g, p, _;
1119
+ _e(re.GridControl, t), 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
1120
  u.value = !0;
1121
1121
  }, 50);
1122
- }), (f, s) => {
1123
- var d, g;
1124
- const m = re("auth");
1125
- return v(), w(L, null, [
1126
- (d = l(t).buttons) != null && d.value.length || (g = l(t).tools) != null && g.length ? (v(), b(yt, {
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"])) : x("", !0),
1131
- u.value ? (v(), b(l(Gt), B({
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
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
- D("div", Ma, [
1149
- D("span", null, N(C[a.titleField]), 1),
1150
- D("div", za, [
1151
- W(S(Ze, {
1152
- checked: C[l(t).statusKey],
1153
- "onUpdate:checked": (F) => C[l(t).statusKey] = F,
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: (F) => 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
- P(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 Nl = async (r, a) => {
1180
1180
  }, 1024)
1181
1181
  ]),
1182
1182
  _: 3
1183
- }, 16, ["grid", "data-source", "loading", "pagination"])) : x("", !0)
1183
+ }, 16, ["grid", "data-source", "loading", "pagination"])) : 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
- }, Fe = /* @__PURE__ */ T({
1190
+ }, Ie = /* @__PURE__ */ I({
1191
1191
  inheritAttrs: !1,
1192
1192
  __name: "searchItem",
1193
1193
  props: {
@@ -1196,44 +1196,44 @@ const Nl = async (r, a) => {
1196
1196
  rule: {}
1197
1197
  },
1198
1198
  setup(r) {
1199
- const a = r, e = ne(), t = ge(ae.EditorControl, void 0), o = qe(a, t), n = R(() => {
1200
- var p;
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(), w("div", Oa, [
1207
- S(l(ot), B({
1208
- required: n.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
- }), lt({
1214
- default: h(() => [
1215
- D("div", Aa, [
1216
- D("div", Ra, [
1217
- P(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(() => [
1226
- D("span", {
1227
- class: E([l(o).errClass ? "text-[#ff4d4f]" : "", "w-full"])
1228
- }, N(i.label), 3)
1225
+ fn: x(() => [
1226
+ F("span", {
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(), w("span", Ka, N(l(o).msg), 1)) : x("", !0)
1233
+ l(n).msg ? (d(), b("span", Ya, M(l(n).msg), 1)) : w("", !0)
1234
1234
  ]));
1235
1235
  }
1236
- }), Yl = /* @__PURE__ */ T({
1236
+ }), mr = /* @__PURE__ */ I({
1237
1237
  __name: "index",
1238
1238
  props: {
1239
1239
  search: {},
@@ -1242,58 +1242,58 @@ const Nl = async (r, a) => {
1242
1242
  },
1243
1243
  emits: ["update:search", "onsearch", "onreset"],
1244
1244
  setup(r, { emit: a }) {
1245
- const e = r, t = a, o = y(0), n = 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
- }, c = jt(), u = () => {
1251
- n.value = 0, i.value = 0, c.default && (n.value = p(c.default({}))), e.gridCtrl && e.gridCtrl.searchBar && c.control && (i.value = p(c.control({}))), o.value = 2 - (n.value + i.value) % 3;
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
- I(
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
1259
  u();
1260
1260
  }
1261
1261
  );
1262
- const f = JSON.parse(JSON.stringify(e.search));
1263
- X(() => {
1264
- var g;
1262
+ const v = JSON.parse(JSON.stringify(e.search));
1263
+ ae(() => {
1264
+ var _;
1265
1265
  u();
1266
- let d = { ...e.search };
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
1275
  const s = () => {
1276
- var g;
1277
- let d = { ...e.search };
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 n.value + i.value > 0 ? W((v(), b(l(st), {
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 Nl = async (r, a) => {
1302
1302
  },
1303
1303
  class: "flex mb-[10px]"
1304
1304
  }, {
1305
- default: h(() => {
1306
- var F, U;
1305
+ default: x(() => {
1306
+ var y, S;
1307
1307
  return [
1308
- P(d.$slots, "default"),
1309
- (F = d.gridCtrl) != null && F.searchBar ? P(d.$slots, "control", { key: 0 }) : x("", !0),
1310
- o.value >= 1 ? (v(), b(Fe, {
1308
+ 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
- })) : x("", !0),
1314
- o.value >= 2 ? (v(), b(Fe, {
1313
+ })) : w("", !0),
1314
+ n.value >= 2 ? (d(), k(Ie, {
1315
1315
  key: 2,
1316
1316
  class: "w-1/3"
1317
- })) : x("", !0),
1318
- n.value || (U = d.gridCtrl) != null && U.searchBar ? (v(), b(Fe, {
1317
+ })) : 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(Q), {
1323
+ default: x(() => [
1324
+ D(l(ce), null, {
1325
+ default: x(() => [
1326
+ D(l(Z), {
1327
1327
  type: "primary",
1328
1328
  onClick: s,
1329
1329
  icon: "icon-search"
1330
1330
  }, {
1331
- default: h(() => g[0] || (g[0] = [
1332
- M("搜索")
1331
+ default: x(() => _[0] || (_[0] = [
1332
+ Y("搜索")
1333
1333
  ])),
1334
1334
  _: 1,
1335
1335
  __: [0]
1336
1336
  }),
1337
- S(l(Q), {
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
- M("重置")
1341
+ default: x(() => _[1] || (_[1] = [
1342
+ Y("重置")
1343
1343
  ])),
1344
1344
  _: 1,
1345
1345
  __: [1]
@@ -1349,23 +1349,23 @@ const Nl = async (r, a) => {
1349
1349
  })
1350
1350
  ]),
1351
1351
  _: 1
1352
- })) : x("", !0)
1352
+ })) : w("", !0)
1353
1353
  ];
1354
1354
  }),
1355
1355
  _: 3
1356
1356
  })), [
1357
- [C, s]
1358
- ]) : x("", !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
1367
  setup(r) {
1368
- const a = r, e = a.gridCtrl, t = R(() => ue.currentRoute.value.path), o = [
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 Nl = async (r, 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,13 +1385,13 @@ const Nl = async (r, 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: n, menus: i } = Ce(o, 0, e.operates), p = (c) => {
1390
+ ], { buttons: i, menus: o } = Se(n, 0, e.operates), f = (c) => {
1391
1391
  if (typeof c.disabled == "boolean")
1392
1392
  return c.disabled;
1393
1393
  if (typeof c.disabled == "function")
1394
- return te(c, a.record) ?? !1;
1394
+ return G(c, a.record) ?? !1;
1395
1395
  if (a.record.hasOwnProperty(e.statusKey))
1396
1396
  switch (c.key) {
1397
1397
  case "Edit":
@@ -1403,92 +1403,92 @@ const Nl = async (r, a) => {
1403
1403
  return !1;
1404
1404
  };
1405
1405
  return (c, u) => {
1406
- const f = re("auth");
1407
- return v(), b(l(be), { theme: {
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), w(L, null, V(l(n), (s) => (v(), w(L, {
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
1416
  key: s.key
1417
1417
  }, [
1418
- l(J)(s, a.record) ? (v(), b(l(nt), {
1418
+ l(Q)(s, a.record) ? (d(), k(l(ct), {
1419
1419
  key: 0,
1420
- disabled: p(s) || !s.confirm,
1420
+ disabled: f(s) || !s.confirm,
1421
1421
  cancelText: "否",
1422
1422
  okText: "是",
1423
1423
  title: s.confirmText,
1424
1424
  okButtonProps: { size: "small" },
1425
1425
  cancelButtonProps: { size: "small" },
1426
- onConfirm: (m) => l(Y)(s, l(e).page, l(e), a.record, !0)
1426
+ onConfirm: (g) => l(J)(s, l(e).page, l(e), a.record, !0)
1427
1427
  }, {
1428
- default: h(() => [
1429
- l(J)(s, a.record) ? W((v(), b(l(ut), {
1428
+ default: x(() => [
1429
+ l(Q)(s, a.record) ? H((d(), k(l(pt), {
1430
1430
  key: s.key,
1431
1431
  type: s.type ?? "text",
1432
1432
  danger: s.danger,
1433
- disabled: p(s),
1434
- onClick: (m) => l(Y)(s, l(e).page, l(e), a.record),
1433
+ disabled: f(s),
1434
+ onClick: (g) => l(J)(s, l(e).page, l(e), a.record),
1435
1435
  size: "small",
1436
- style: ze({
1436
+ style: Oe({
1437
1437
  padding: s.type ?? "0px 4px"
1438
1438
  })
1439
1439
  }, {
1440
- default: h(() => [
1441
- M(N(s.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: s.role, permit: s.permit }]
1446
- ]) : x("", !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"])) : x("", !0)
1449
+ }, 1032, ["disabled", "title", "onConfirm"])) : w("", !0)
1450
1450
  ], 64))), 128)),
1451
- c.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(it), {
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), w(L, null, V(l(i), (s) => (v(), w(L, {
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
1464
  key: s.key
1465
1465
  }, [
1466
- l(J)(s, a.record) ? W((v(), b(l(we), {
1466
+ l(Q)(s, a.record) ? H((d(), k(l(Ce), {
1467
1467
  key: 0,
1468
- disabled: p(s),
1469
- onClick: (m) => l(Y)(s, 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
- M(N(s.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: s.role, permit: s.permit }]
1477
- ]) : x("", !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
- u[0] || (u[0] = M(" 更多 "))
1483
+ default: x(() => [
1484
+ u[0] || (u[0] = Y(" 更多 "))
1485
1485
  ]),
1486
1486
  _: 1,
1487
1487
  __: [0]
1488
- })) : x("", !0)
1488
+ })) : w("", !0)
1489
1489
  ]),
1490
1490
  _: 1
1491
- })) : x("", !0)
1491
+ })) : w("", !0)
1492
1492
  ]),
1493
1493
  _: 1
1494
1494
  })
@@ -1497,7 +1497,7 @@ const Nl = async (r, a) => {
1497
1497
  });
1498
1498
  };
1499
1499
  }
1500
- }), Wl = /* @__PURE__ */ T({
1500
+ }), hr = /* @__PURE__ */ I({
1501
1501
  inheritAttrs: !1,
1502
1502
  __name: "index",
1503
1503
  props: {
@@ -1510,76 +1510,76 @@ const Nl = async (r, a) => {
1510
1510
  statusDisabled: {}
1511
1511
  },
1512
1512
  setup(r) {
1513
- const a = r, e = ne(), t = a.gridCtrl, o = R(() => ue.currentRoute.value.path);
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 n = y(t.pageSize.value), i = y(t.pageNo.value), p = y([]), c = 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: n.value,
1519
- showTotal: (d) => `共 ${d} 条记录`,
1520
- onChange: (d, g) => {
1521
- c.value !== !1 && (c.value.current = d, c.value.pageSize = g), n.value = g, i.value = d, t && (t.pageNo.value = d, t.pageSize.value = g, t.remotePage && me(t));
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 && (c.value = !1), I(
1525
+ a.pagination === !1 && (c.value = !1), L(
1526
1526
  () => t.tableData.value,
1527
- (d) => {
1528
- d && (p.value = d, c.value !== !1 && (c.value.total = t.total.value ?? 0, c.value.current = t.pageNo.value ?? 1, c.value.pageSize = t.pageSize.value ?? 10));
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
- ), I(
1531
+ ), L(
1532
1532
  () => a.tableData,
1533
- (d) => {
1534
- d && (p.value = d, c.value !== !1 && (c.value.total = d.length, c.value.current = t.pageNo.value ?? 1, c.value.pageSize = t.pageSize.value ?? 10));
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 u = 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
- }, s = y(f);
1548
- I(
1547
+ }, s = C(v);
1548
+ L(
1549
1549
  () => t.selectable.value,
1550
- (d) => {
1551
- t && (s.value = d ? f : void 0);
1550
+ (p) => {
1551
+ t && (s.value = p ? v : void 0);
1552
1552
  },
1553
1553
  { immediate: !0 }
1554
- ), I(
1554
+ ), L(
1555
1555
  () => t.columns.value,
1556
1556
  () => {
1557
- u.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 xe(() => {
1563
- m.value && t && t.autoload && (t.reload.value = !0);
1564
- }), X(async () => {
1565
- var d, g, C, F, U;
1566
- _e(ae.GridControl, t), t.page && ((d = t.gridUrl) != null && d.url) && (((g = t.gridUrl) == null ? void 0 : g.url) === ((C = t.page.urls.list) == null ? void 0 : C.url) && (t.remotePage = !1), ((F = t.gridUrl) == null ? void 0 : F.url) === ((U = t.page.urls.find) == null ? void 0 : U.url) && (t.remotePage = !0)), t.tableData.value ? (p.value = t.tableData.value, t.total.value = p.value.length, c.value !== !1 && (c.value.total = t.total.value ?? 0)) : t.autoload !== !1 && (t.remotePage ? p.value = (await me(t)).rows : p.value = await Xe(t)), setTimeout(() => {
1567
- m.value = !0;
1561
+ const g = C(!1);
1562
+ return ke(() => {
1563
+ g.value && t && t.autoload && (t.reload.value = !0);
1564
+ }), ae(async () => {
1565
+ var p, _, $, y, S;
1566
+ _e(re.GridControl, t), 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 F, U;
1571
- const C = re("auth");
1572
- return v(), w(L, null, [
1573
- (F = l(t).buttons) != null && F.value.length || (U = l(t).tools) != null && U.length ? (v(), b(yt, {
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"])) : x("", !0),
1578
- m.value ? (v(), b(l(ct), B({
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
1584
  columns: u.value,
1585
1585
  pagination: c.value,
@@ -1588,45 +1588,136 @@ const Nl = async (r, a) => {
1588
1588
  size: l(t).tableSize.value,
1589
1589
  bordered: ""
1590
1590
  }, l(e)), {
1591
- bodyCell: h(($) => {
1592
- var A, H;
1591
+ bodyCell: x((m) => {
1592
+ var h, N;
1593
1593
  return [
1594
- P(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" ? W((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
- ]) : x("", !0),
1613
- l(t) && ((H = $ == null ? void 0 : $.column) == null ? void 0 : H.dataIndex) === "operation" ? P(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
- ]) : x("", !0)
1621
+ ]) : w("", !0)
1622
1622
  ];
1623
1623
  }),
1624
1624
  _: 3
1625
- }, 16, ["row-key", "data-source", "loading", "columns", "pagination", "row-selection", "scroll", "size"])) : x("", !0)
1625
+ }, 16, ["row-key", "data-source", "loading", "columns", "pagination", "row-selection", "scroll", "size"])) : w("", !0)
1626
1626
  ], 64);
1627
1627
  };
1628
1628
  }
1629
- }), Va = { class: "flex items-center gap-1" }, Ya = { class: "text-nowrap" }, ql = /* @__PURE__ */ T({
1629
+ }), Wa = { class: "flex items-center" }, qa = ["onClick"], Ha = {
1630
+ key: 1,
1631
+ class: "w-[1px] h-[16px] bg-[#d9d9d9] mx-[8px]"
1632
+ }, Ee = /* @__PURE__ */ I({
1633
+ __name: "groupTools",
1634
+ props: {
1635
+ groupTools: {},
1636
+ groupClass: {}
1637
+ },
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
1656
+ }, [
1657
+ l(Q)(o) && !o.children && !o.component ? (d(), k(l(Z), U({
1658
+ key: 0,
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({
1677
+ key: 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))
1692
+ ]),
1693
+ _: 2
1694
+ }, 1040, ["class", "type", "danger", "disabled", "tiptext", "onClick"])) : o.component ? (d(), b("div", {
1695
+ key: 1,
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)
1711
+ ], 64);
1712
+ }), 128))
1713
+ ], 2)) : n.type === "split" ? (d(), b("div", Ha)) : n.type === "space" ? (d(), b("div", {
1714
+ key: 2,
1715
+ class: B(n.width ? n.width : "flex-1")
1716
+ }, null, 2)) : w("", !0)
1717
+ ], 64))), 128))
1718
+ ]));
1719
+ }
1720
+ }), Qa = { class: "flex items-center gap-1" }, Ja = { class: "text-nowrap" }, br = /* @__PURE__ */ I({
1630
1721
  __name: "index",
1631
1722
  props: {
1632
1723
  treeCtrl: {},
@@ -1635,15 +1726,15 @@ const Nl = async (r, a) => {
1635
1726
  },
1636
1727
  emits: ["select", "update:selectedKeys"],
1637
1728
  setup(r, { emit: a }) {
1638
- const e = r, t = ne(), o = e.treeCtrl, n = y([]);
1639
- I(
1640
- () => o.data.value,
1641
- (f) => {
1642
- if (f) {
1643
- n.value = o.fieldMap ? he(o.fieldMap, f) : f;
1644
- const s = $t(n.value, p.value[0]);
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]);
1645
1736
  if (s) {
1646
- const m = {
1737
+ const g = {
1647
1738
  event: "select",
1648
1739
  node: {
1649
1740
  // 根据你的TreeNode结构构建node对象
@@ -1655,145 +1746,423 @@ const Nl = async (r, a) => {
1655
1746
  selected: !0,
1656
1747
  selectedNodes: [s]
1657
1748
  };
1658
- u(p.value, m);
1749
+ u(f.value, g);
1659
1750
  }
1660
1751
  }
1661
1752
  }
1662
1753
  );
1663
- const i = a, p = y([]);
1664
- I(
1754
+ const o = a, f = C([]);
1755
+ L(
1665
1756
  () => e.selectedKeys,
1666
- (f) => {
1667
- f && (p.value = f);
1757
+ (v) => {
1758
+ v && (f.value = v);
1668
1759
  },
1669
1760
  { immediate: !0 }
1670
1761
  );
1671
- const c = y(["-"]);
1672
- I(
1762
+ const c = C(["-"]);
1763
+ L(
1673
1764
  () => e.expandedKeys,
1674
- (f) => {
1675
- f && (c.value = f);
1765
+ (v) => {
1766
+ v && (c.value = v);
1676
1767
  },
1677
1768
  { immediate: !0 }
1678
1769
  );
1679
- const u = (f, s) => {
1680
- f.length === 0 && f.push(...p.value), f.length > 0 && (o.node.value = s == null ? void 0 : s.node.dataRef), p.value = f, i("update:selectedKeys", f), i("select", f, s);
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);
1681
1772
  };
1682
- return X(() => {
1683
- o.fieldMap || (o.fieldMap = {
1773
+ return ae(() => {
1774
+ n.fieldMap || (n.fieldMap = {
1684
1775
  label: "Name",
1685
1776
  key: "Id",
1686
1777
  value: "Id",
1687
1778
  icon: "Icon"
1688
- }), o.data.value ? n.value = he(o.fieldMap, o.data.value) : o.autoload && tt(o);
1689
- }), (f, s) => (v(), b(l(Zt), B({
1779
+ }), n.data.value ? i.value = he(n.fieldMap, n.data.value) : n.autoload && lt(n);
1780
+ }), (v, s) => (d(), k(l(aa), U({
1690
1781
  class: "w-full",
1691
1782
  "show-line": !0,
1692
- "tree-data": n.value,
1783
+ "tree-data": i.value,
1693
1784
  "expanded-keys": c.value,
1694
- "onUpdate:expandedKeys": s[0] || (s[0] = (m) => c.value = m),
1695
- "selected-keys": p.value,
1696
- loading: l(o).isTreeLoading,
1785
+ "onUpdate:expandedKeys": s[0] || (s[0] = (g) => c.value = g),
1786
+ "selected-keys": f.value,
1787
+ loading: l(n).isTreeLoading,
1697
1788
  onSelect: u
1698
1789
  }, l(t)), {
1699
- title: h(({ key: m, label: d, icon: g }) => [
1700
- P(f.$slots, "title", {
1701
- label: d,
1702
- key: m,
1703
- icon: g
1790
+ title: x(({ key: g, label: p, icon: _ }) => [
1791
+ O(v.$slots, "title", {
1792
+ label: p,
1793
+ key: g,
1794
+ icon: _
1704
1795
  }, () => [
1705
- D("div", Va, [
1706
- S(l(K), { icon: g }, null, 8, ["icon"]),
1707
- D("span", Ya, N(d), 1)
1796
+ F("div", Qa, [
1797
+ D(l(V), { icon: _ }, null, 8, ["icon"]),
1798
+ F("span", Ja, M(p), 1)
1708
1799
  ])
1709
1800
  ])
1710
1801
  ]),
1711
1802
  _: 3
1712
1803
  }, 16, ["tree-data", "expanded-keys", "selected-keys", "loading"]));
1713
1804
  }
1714
- }), Hl = /* @__PURE__ */ se(Tt, [["__scopeId", "data-v-87722b44"]]), Wa = { class: "relative w-[248px] max-w-[248px]" }, qa = {
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 = {
1715
2084
  key: 0,
1716
2085
  class: "absolute z-10 mt-[5px] mr-[10px] text-[#999] flex items-center"
1717
- }, Ha = /* @__PURE__ */ T({
2086
+ }, xl = /* @__PURE__ */ I({
1718
2087
  inheritAttrs: !1,
1719
2088
  __name: "index",
1720
- props: It,
2089
+ props: Et,
1721
2090
  emits: ["change", "update:labels", "update:value"],
1722
2091
  setup(r, { emit: a }) {
1723
- var C, F, U;
1724
- const e = r, t = ne(), o = q(), n = Dt(e.url, e), i = e.optionCtrl ?? n.optionCtrl;
1725
- i.inputFactory = Vt(o);
1726
- const p = y({
1727
- ...i == null ? void 0 : i.url,
1728
- url: ((C = i == null ? void 0 : i.url) == null ? void 0 : C.url) || "",
1729
- fieldMap: (i == null ? void 0 : i.fieldMap) || ((F = i == null ? void 0 : i.url) == null ? void 0 : F.fieldMap),
1730
- params: (i == null ? void 0 : i.params) || ((U = i == null ? void 0 : i.url) == null ? void 0 : U.params),
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),
1731
2100
  loadingText: !1
1732
- }), { editorCtrl: c, errInfo: u, labelText: f } = o, s = y(t.placeholder);
1733
- I(
1734
- () => p.value.loading,
1735
- ($) => {
1736
- $ ? s.value = "" : s.value || (s.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);
1737
2106
  },
1738
2107
  { immediate: !0 }
1739
2108
  );
1740
- const m = a;
1741
- o.inputEmit = m;
1742
- const d = y((i == null ? void 0 : i.options.value) || []);
1743
- i && I(
1744
- () => i.options.value,
1745
- ($) => {
1746
- 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 || [];
1747
2116
  },
1748
2117
  { immediate: !0, deep: !0 }
1749
2118
  );
1750
- const g = ($, A) => {
1751
- if (!A || A.length === 0) {
1752
- m("update:labels", []), m("update:value", []);
2119
+ const _ = (m, h) => {
2120
+ if (!h || h.length === 0) {
2121
+ g("update:labels", []), g("update:value", []);
1753
2122
  return;
1754
2123
  }
1755
- const H = A.map(($e) => $e.value), Z = Lt(i, e, H), fe = Ut(Z);
1756
- m("update:labels", fe), m("update:value", H), u != null && u.value.errClass && c && le(c);
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);
1757
2126
  };
1758
- return xe(() => {
1759
- i && i.autoload && (i.reload.value = !0);
1760
- }), X(() => {
1761
- 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 = {
1762
2131
  title: "Name",
1763
2132
  label: "Name",
1764
2133
  value: "Id",
1765
2134
  key: "Id"
1766
- }), i && Ft(i.autoload, i, e);
1767
- }), Yt(() => {
1768
- i && Pt(i, e);
1769
- }), ($, A) => {
1770
- var H;
1771
- return v(), w("div", Wa, [
1772
- d.value.length ? x("", !0) : (v(), w("div", qa, [
1773
- S(l(Et), { class: "text-[#555] mx-[5px] !ml-[10px] !w-4 !h-4" }),
1774
- A[0] || (A[0] = D("span", null, "数据加载中...", -1))
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))
1775
2144
  ])),
1776
- S(l(ea), B({
1777
- options: d.value,
1778
- class: [(H = l(u)) == null ? void 0 : H.errClass],
2145
+ D(l(la), U({
2146
+ options: p.value,
2147
+ class: [(N = l(u)) == null ? void 0 : N.errClass],
1779
2148
  "allow-clear": !0,
1780
- placeholder: d.value.length > 0 ? "请选择" + l(f) : "",
1781
- onChange: g
2149
+ placeholder: p.value.length > 0 ? "请选择" + l(v) : "",
2150
+ onChange: _
1782
2151
  }, l(t)), null, 16, ["options", "class", "placeholder"])
1783
2152
  ]);
1784
2153
  };
1785
2154
  }
1786
- }), Ql = /* @__PURE__ */ se(Ha, [["__scopeId", "data-v-51ddfce3"]]), Gl = /* @__PURE__ */ se(Nt, [["__scopeId", "data-v-249ea772"]]);
1787
- function ye() {
1788
- return ye = Object.assign ? Object.assign.bind() : function(r) {
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) {
1789
2158
  for (var a = 1; a < arguments.length; a++) {
1790
2159
  var e = arguments[a];
1791
2160
  for (var t in e) ({}).hasOwnProperty.call(e, t) && (r[t] = e[t]);
1792
2161
  }
1793
2162
  return r;
1794
- }, ye.apply(null, arguments);
2163
+ }, xe.apply(null, arguments);
1795
2164
  }
1796
- const Qa = {
2165
+ const _l = {
1797
2166
  locale: "zh_CN",
1798
2167
  today: "今天",
1799
2168
  now: "此刻",
@@ -1820,11 +2189,11 @@ const Qa = {
1820
2189
  nextDecade: "下一年代",
1821
2190
  previousCentury: "上一世纪",
1822
2191
  nextCentury: "下一世纪"
1823
- }, Ga = {
2192
+ }, kl = {
1824
2193
  placeholder: "请选择时间",
1825
2194
  rangePlaceholder: ["开始时间", "结束时间"]
1826
- }, Se = {
1827
- lang: ye({
2195
+ }, $e = {
2196
+ lang: xe({
1828
2197
  placeholder: "请选择日期",
1829
2198
  yearPlaceholder: "请选择年份",
1830
2199
  quarterPlaceholder: "请选择季度",
@@ -1835,31 +2204,31 @@ const Qa = {
1835
2204
  rangeMonthPlaceholder: ["开始月份", "结束月份"],
1836
2205
  rangeQuarterPlaceholder: ["开始季度", "结束季度"],
1837
2206
  rangeWeekPlaceholder: ["开始周", "结束周"]
1838
- }, Qa),
1839
- timePickerLocale: ye({}, Ga)
2207
+ }, _l),
2208
+ timePickerLocale: xe({}, kl)
1840
2209
  };
1841
- Se.lang.ok = "确定";
1842
- const Jl = /* @__PURE__ */ T({
2210
+ $e.lang.ok = "确定";
2211
+ const wr = /* @__PURE__ */ I({
1843
2212
  __name: "index",
1844
2213
  props: {
1845
2214
  valueFormat: {}
1846
2215
  },
1847
2216
  setup(r) {
1848
- const a = r, { editorCtrl: e, labelText: t, errInfo: o } = q(), n = () => {
1849
- o != null && o.value.errClass && e && le(e);
1850
- }, i = y(a.valueFormat ?? "YYYY-MM-DD");
1851
- return (p, c) => {
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) => {
1852
2221
  var u;
1853
- return v(), b(l(ta), {
1854
- class: E(["w-full", [((u = l(o)) == null ? void 0 : u.errClass) === "error" ? "error !border-red-300 shadow-[0_0_3px_0px_#ff4d4f]" : ""]]),
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]" : ""]]),
1855
2224
  placeholder: "请选择" + l(t),
1856
- locale: l(Se),
1857
- valueFormat: i.value,
1858
- onBlur: n
2225
+ locale: l($e),
2226
+ valueFormat: o.value,
2227
+ onBlur: i
1859
2228
  }, null, 8, ["class", "placeholder", "locale", "valueFormat"]);
1860
2229
  };
1861
2230
  }
1862
- }), Ja = /* @__PURE__ */ T({
2231
+ }), wt = /* @__PURE__ */ I({
1863
2232
  __name: "index",
1864
2233
  props: {
1865
2234
  value: {},
@@ -1867,17 +2236,17 @@ const Jl = /* @__PURE__ */ T({
1867
2236
  },
1868
2237
  emits: ["update:value"],
1869
2238
  setup(r, { emit: a }) {
1870
- const { editorCtrl: e, labelText: t, errInfo: o } = q(), n = () => {
1871
- o != null && o.value.errClass && e && le(e);
1872
- }, i = r, p = i.value === void 0 ? !0 : i.undefValue, c = a, u = y(i.value);
1873
- I(
1874
- () => i.value,
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,
1875
2244
  (s) => {
1876
2245
  u.value = s;
1877
2246
  },
1878
2247
  { immediate: !0 }
1879
2248
  // 立即同步初始值
1880
- ), I(
2249
+ ), L(
1881
2250
  () => u.value,
1882
2251
  (s) => {
1883
2252
  if (u.value === "") {
@@ -1887,107 +2256,107 @@ const Jl = /* @__PURE__ */ T({
1887
2256
  c("update:value", s);
1888
2257
  }
1889
2258
  );
1890
- const f = () => {
1891
- u.value === "" && (u.value = p ? void 0 : null);
2259
+ const v = () => {
2260
+ u.value === "" && (u.value = f ? void 0 : null);
1892
2261
  };
1893
- return (s, m) => {
1894
- var d, g;
1895
- return v(), b(l(de), B({
2262
+ return (s, g) => {
2263
+ var p, _;
2264
+ return d(), k(l(fe), U({
1896
2265
  class: [
1897
- (d = l(o)) == null ? void 0 : d.errClass,
1898
- ((g = l(o)) == null ? void 0 : g.errClass) === "error" && !s.$slots.addonBefore && !s.$slots.addonAfter ? "!border-red-300 shadow-[0_0_3px_0px_#ff4d4f]" : ""
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]" : ""
1899
2268
  ],
1900
2269
  value: u.value,
1901
- "onUpdate:value": m[0] || (m[0] = (C) => u.value = C),
2270
+ "onUpdate:value": g[0] || (g[0] = ($) => u.value = $),
1902
2271
  autocomplete: "new-password",
1903
2272
  "allow-clear": !0,
1904
2273
  placeholder: "请输入" + l(t),
1905
- onBlur: n,
1906
- onChange: f
1907
- }, s.$attrs), lt({ _: 2 }, [
2274
+ onBlur: i,
2275
+ onChange: v
2276
+ }, s.$attrs), ot({ _: 2 }, [
1908
2277
  s.$slots.addonBefore ? {
1909
2278
  name: "addonBefore",
1910
- fn: h(() => [
1911
- P(s.$slots, "addonBefore")
2279
+ fn: x(() => [
2280
+ O(s.$slots, "addonBefore")
1912
2281
  ]),
1913
2282
  key: "0"
1914
2283
  } : void 0,
1915
2284
  s.$slots.addonAfter ? {
1916
2285
  name: "addonAfter",
1917
- fn: h(() => [
1918
- P(s.$slots, "addonAfter")
2286
+ fn: x(() => [
2287
+ O(s.$slots, "addonAfter")
1919
2288
  ]),
1920
2289
  key: "1"
1921
2290
  } : void 0
1922
2291
  ]), 1040, ["class", "value", "placeholder"]);
1923
2292
  };
1924
2293
  }
1925
- }), Xa = /* @__PURE__ */ T({
2294
+ }), wl = /* @__PURE__ */ I({
1926
2295
  __name: "inputIcon",
1927
2296
  props: {
1928
2297
  value: {}
1929
2298
  },
1930
2299
  emits: ["update:value"],
1931
2300
  setup(r, { emit: a }) {
1932
- const e = r, t = a, o = y(void 0);
1933
- return I(
2301
+ const e = r, t = a, n = C(void 0);
2302
+ return L(
1934
2303
  () => e.value,
1935
- (n) => {
1936
- o.value = n ?? void 0;
2304
+ (i) => {
2305
+ n.value = i ?? void 0;
1937
2306
  },
1938
2307
  { immediate: !0 }
1939
- ), I(
1940
- () => o.value,
1941
- (n) => {
1942
- t("update:value", n);
2308
+ ), L(
2309
+ () => n.value,
2310
+ (i) => {
2311
+ t("update:value", i);
1943
2312
  }
1944
- ), (n, i) => (v(), b(Ja, B({
1945
- value: o.value,
1946
- "onUpdate:value": i[0] || (i[0] = (p) => o.value = p)
1947
- }, n.$attrs), {
1948
- addonBefore: h(() => [
1949
- 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), {
1950
2319
  class: "!w-4 !h-4",
1951
- icon: o.value
2320
+ icon: n.value
1952
2321
  }, null, 8, ["icon"])
1953
2322
  ]),
1954
2323
  _: 1
1955
2324
  }, 16, ["value"]));
1956
2325
  }
1957
- }), Xl = /* @__PURE__ */ se(Xa, [["__scopeId", "data-v-358b82ef"]]), Zl = /* @__PURE__ */ T({
2326
+ }), Cr = /* @__PURE__ */ ne(wl, [["__scopeId", "data-v-358b82ef"]]), Sr = /* @__PURE__ */ I({
1958
2327
  __name: "inputPassword",
1959
2328
  setup(r) {
1960
- const { editorCtrl: a, labelText: e, errInfo: t } = q(), o = () => {
1961
- t != null && t.value.errClass && a && le(a);
2329
+ const { editorCtrl: a, labelText: e, errInfo: t } = ee(), n = () => {
2330
+ t != null && t.value.errClass && a && se(a);
1962
2331
  };
1963
- return (n, i) => {
1964
- var p;
1965
- return v(), b(l(aa), B({
1966
- 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]"] : "",
1967
2336
  "allow-clear": !0,
1968
2337
  autocomplete: "new-password",
1969
2338
  placeholder: "请输入" + l(e),
1970
- onBlur: o
1971
- }, n.$attrs), null, 16, ["class", "placeholder"]);
2339
+ onBlur: n
2340
+ }, i.$attrs), null, 16, ["class", "placeholder"]);
1972
2341
  };
1973
2342
  }
1974
- }), er = /* @__PURE__ */ T({
2343
+ }), $r = /* @__PURE__ */ I({
1975
2344
  __name: "inputNumber",
1976
2345
  setup(r) {
1977
- const { editorCtrl: a, labelText: e, errInfo: t } = q(), o = () => {
1978
- t != null && t.value.errClass && a && le(a);
2346
+ const { editorCtrl: a, labelText: e, errInfo: t } = ee(), n = () => {
2347
+ t != null && t.value.errClass && a && se(a);
1979
2348
  };
1980
- return (n, i) => {
1981
- var p;
1982
- return v(), b(l(la), B({
1983
- class: [[((p = l(t)) == null ? void 0 : p.errClass) === "error" ? "error !border-red-300 shadow-[0_0_3px_0px_#ff4d4f]" : ""], "w-[50%]"],
1984
- 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,
1985
2354
  "allow-clear": !1,
1986
2355
  placeholder: "请输入" + l(e)
1987
- }, n.$attrs), null, 16, ["class", "placeholder"]);
2356
+ }, i.$attrs), null, 16, ["class", "placeholder"]);
1988
2357
  };
1989
2358
  }
1990
- }), Za = { class: "flex flex-col gap-2" }, el = { key: 1 }, tr = /* @__PURE__ */ T({
2359
+ }), Cl = { class: "flex flex-col gap-2" }, Sl = { key: 1 }, Tr = /* @__PURE__ */ I({
1991
2360
  __name: "index",
1992
2361
  props: {
1993
2362
  value: {},
@@ -1999,107 +2368,107 @@ const Jl = /* @__PURE__ */ T({
1999
2368
  },
2000
2369
  emits: ["update:value"],
2001
2370
  setup(r, { emit: a }) {
2002
- const e = r, t = a, o = y(!(e.selectList && e.selectList.length > 0)), n = y([]);
2003
- let i = !1;
2004
- const p = () => {
2005
- e.selectList && e.selectList.length > 0 ? n.value = e.selectList.map((s) => ({
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) => ({
2006
2375
  id: Date.now() + Math.random(),
2007
2376
  text: s.text,
2008
2377
  field: s.field,
2009
2378
  // 如果value中有对应的field,使用value中的值,否则使用selectList中的默认值
2010
2379
  value: e.value[s.field] ?? s.value
2011
- })) : e.value && Object.keys(e.value).length > 0 ? n.value = Object.entries(e.value).filter(([s]) => !e.ignoreList || !e.ignoreList.includes(s)).map(([s, m]) => ({
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]) => ({
2012
2381
  id: Date.now() + Math.random(),
2013
2382
  field: s,
2014
- value: m
2015
- })) : n.value = [];
2383
+ value: g
2384
+ })) : i.value = [];
2016
2385
  };
2017
- I(
2386
+ L(
2018
2387
  () => e.value,
2019
2388
  () => {
2020
- i || p(), i = !1;
2389
+ o || f(), o = !1;
2021
2390
  },
2022
2391
  { immediate: !0 }
2023
2392
  );
2024
2393
  const c = () => {
2025
2394
  let s;
2026
- e.selectList && e.selectList.length > 0 ? (s = { ...e.value }, n.value.forEach((m) => {
2027
- m.field && (s[m.field] = m.value);
2028
- })) : (s = n.value.reduce(
2029
- (m, d) => (d.field && (m[d.field] = d.value), m),
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),
2030
2399
  {}
2031
- ), e.ignoreList && e.ignoreList.length > 0 && e.ignoreList.forEach((m) => {
2032
- e.value[m] !== void 0 && (s[m] = e.value[m]);
2033
- })), i = !0, t("update:value", s);
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);
2034
2403
  }, u = () => {
2035
- n.value.push({
2404
+ i.value.push({
2036
2405
  id: Date.now() + Math.random(),
2037
2406
  field: "",
2038
2407
  value: ""
2039
2408
  });
2040
- }, f = () => {
2409
+ }, v = () => {
2041
2410
  c();
2042
2411
  };
2043
- return (s, m) => (v(), w("div", Za, [
2044
- (v(!0), w(L, null, V(n.value, (d) => (v(), w("div", {
2045
- 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,
2046
2415
  class: "flex items-center gap-2"
2047
2416
  }, [
2048
- D("div", {
2049
- class: E([s.fieldWidth ? `w-[${s.fieldWidth}%]` : "w-[33%]"])
2417
+ F("div", {
2418
+ class: B([s.fieldWidth ? `w-[${s.fieldWidth}%]` : "w-[33%]"])
2050
2419
  }, [
2051
- !s.selectList || s.selectList.length === 0 ? (v(), b(l(de), {
2420
+ !s.selectList || s.selectList.length === 0 ? (d(), k(l(fe), {
2052
2421
  key: 0,
2053
- value: d.field,
2054
- "onUpdate:value": (g) => d.field = g,
2055
- title: d.text || d.field,
2422
+ value: p.field,
2423
+ "onUpdate:value": (_) => p.field = _,
2424
+ title: p.text || p.field,
2056
2425
  class: "w-full",
2057
- placeholder: d.text || s.labelHolder || "配置名",
2058
- onInput: f,
2059
- disabled: !o.value
2060
- }, null, 8, ["value", "onUpdate:value", "title", "placeholder", "disabled"])) : (v(), w("div", el, [
2061
- S(l(de), {
2062
- value: d.text,
2063
- "onUpdate:value": (g) => d.text = g,
2064
- 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,
2065
2434
  disabled: !0,
2066
2435
  class: "w-[100%]"
2067
2436
  }, null, 8, ["value", "onUpdate:value", "title"]),
2068
- S(l(de), {
2437
+ D(l(fe), {
2069
2438
  type: "hidden",
2070
- value: d.field,
2071
- "onUpdate:value": (g) => d.field = g
2439
+ value: p.field,
2440
+ "onUpdate:value": (_) => p.field = _
2072
2441
  }, null, 8, ["value", "onUpdate:value"])
2073
2442
  ]))
2074
2443
  ], 2),
2075
- m[0] || (m[0] = D("div", { class: "w-[3%]" }, "=", -1)),
2076
- D("div", {
2077
- class: E([s.fieldWidth ? `w-[${97 - s.fieldWidth}%]` : "w-[64%]"])
2444
+ g[0] || (g[0] = F("div", { class: "w-[3%]" }, "=", -1)),
2445
+ F("div", {
2446
+ class: B([s.fieldWidth ? `w-[${97 - s.fieldWidth}%]` : "w-[64%]"])
2078
2447
  }, [
2079
- S(l(de), {
2080
- value: d.value,
2081
- "onUpdate:value": (g) => d.value = g,
2082
- placeholder: s.valueHolder || "请输入" + d.text || "请输入配置值",
2083
- onInput: f,
2084
- 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
2085
2454
  }, null, 8, ["value", "onUpdate:value", "placeholder", "title"])
2086
2455
  ], 2)
2087
2456
  ]))), 128)),
2088
- o.value ? (v(), b(l(ut), {
2457
+ n.value ? (d(), k(l(pt), {
2089
2458
  key: 0,
2090
2459
  onClick: u,
2091
2460
  class: "mt-1 w-[80px] !text-[12px] text-[#666] bg-[#e6f7ff] border-[#b3e0ff] hover:bg-[#b3e0ff] hover:border-[#8abeff]",
2092
2461
  size: "small"
2093
2462
  }, {
2094
- default: h(() => m[1] || (m[1] = [
2095
- M(" 新增配置行 ")
2463
+ default: x(() => g[1] || (g[1] = [
2464
+ Y(" 新增配置行 ")
2096
2465
  ])),
2097
2466
  _: 1,
2098
2467
  __: [1]
2099
- })) : x("", !0)
2468
+ })) : w("", !0)
2100
2469
  ]));
2101
2470
  }
2102
- }), tl = /* @__PURE__ */ se(Bt, [["__scopeId", "data-v-aa237552"]]), ar = /* @__PURE__ */ T({
2471
+ }), $l = /* @__PURE__ */ ne(Ot, [["__scopeId", "data-v-aa237552"]]), Dr = /* @__PURE__ */ I({
2103
2472
  __name: "radioStatus",
2104
2473
  props: {
2105
2474
  /**
@@ -2127,13 +2496,13 @@ const Jl = /* @__PURE__ */ T({
2127
2496
  }
2128
2497
  },
2129
2498
  setup(r) {
2130
- const a = r, e = y(JSON.parse(JSON.stringify(Ne.getOptions(a.dataKey))));
2499
+ const a = r, e = C(JSON.parse(JSON.stringify(Ne.getOptions(a.dataKey))));
2131
2500
  return a.all === !0 && e.value.unshift({
2132
2501
  label: "全部",
2133
2502
  value: a.allValue || [0, 1]
2134
- }), (t, o) => (v(), b(tl, { data: e.value }, null, 8, ["data"]));
2503
+ }), (t, n) => (d(), k($l, { data: e.value }, null, 8, ["data"]));
2135
2504
  }
2136
- }), lr = /* @__PURE__ */ T({
2505
+ }), Pr = /* @__PURE__ */ I({
2137
2506
  __name: "index",
2138
2507
  props: {
2139
2508
  startDate: {},
@@ -2142,74 +2511,74 @@ const Jl = /* @__PURE__ */ T({
2142
2511
  },
2143
2512
  emits: ["update:startDate", "update:endDate"],
2144
2513
  setup(r, { emit: a }) {
2145
- const e = r, t = a, o = q(), { errInfo: n } = o, i = R(() => e.valueFormat), p = R(() => {
2146
- const u = e.startDate, f = e.endDate;
2147
- if (!(!u || !f))
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))
2148
2517
  try {
2149
- const s = Pe(u), m = Pe(f);
2150
- return !s.isValid() || !m.isValid() ? void 0 : [s, m];
2518
+ const s = Le(u), g = Le(v);
2519
+ return !s.isValid() || !g.isValid() ? void 0 : [s, g];
2151
2520
  } catch {
2152
2521
  return;
2153
2522
  }
2154
- }), c = (u, f) => {
2155
- if (!u || !f || f.length !== 2) {
2523
+ }), c = (u, v) => {
2524
+ if (!u || !v || v.length !== 2) {
2156
2525
  t("update:startDate", null), t("update:endDate", null);
2157
2526
  return;
2158
2527
  }
2159
- 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);
2160
2529
  };
2161
- return (u, f) => {
2530
+ return (u, v) => {
2162
2531
  var s;
2163
- return v(), b(l(ra), {
2164
- class: E([((s = l(n)) == null ? void 0 : s.errClass) === "error" ? ["error", "!border-red-300", "shadow-[0_0_3px_0px_#ff4d4f]"] : "", "w-full"]),
2165
- locale: l(Se),
2166
- "value-format": i.value,
2167
- value: p.value,
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,
2168
2537
  onChange: c
2169
2538
  }, null, 8, ["class", "locale", "value-format", "value"]);
2170
2539
  };
2171
2540
  }
2172
- }), rr = /* @__PURE__ */ se(Mt, [["__scopeId", "data-v-b33df95f"]]), sr = /* @__PURE__ */ T({
2541
+ }), Fr = /* @__PURE__ */ ne(Rt, [["__scopeId", "data-v-b33df95f"]]), Ir = /* @__PURE__ */ I({
2173
2542
  __name: "index",
2174
2543
  setup(r) {
2175
- const { editorCtrl: a, labelText: e, errInfo: t } = q(), o = () => {
2176
- t != null && t.value.errClass && a && le(a);
2544
+ const { editorCtrl: a, labelText: e, errInfo: t } = ee(), n = () => {
2545
+ t != null && t.value.errClass && a && se(a);
2177
2546
  };
2178
- return (n, i) => {
2179
- var p;
2180
- return v(), b(l(sa), B({
2181
- 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]"] : "",
2182
2551
  "allow-clear": !0,
2183
2552
  placeholder: "请输入" + l(e),
2184
- onBlur: o,
2185
- onKeyup: i[0] || (i[0] = Re(pe(() => {
2553
+ onBlur: n,
2554
+ onKeyup: o[0] || (o[0] = je(ve(() => {
2186
2555
  }, ["stop"]), ["enter", "native"])),
2187
- onKeydown: i[1] || (i[1] = Re(pe(() => {
2556
+ onKeydown: o[1] || (o[1] = je(ve(() => {
2188
2557
  }, ["stop"]), ["enter", "native"]))
2189
- }, n.$attrs), null, 16, ["class", "placeholder"]);
2558
+ }, i.$attrs), null, 16, ["class", "placeholder"]);
2190
2559
  };
2191
2560
  }
2192
- }), or = /* @__PURE__ */ T({
2561
+ }), Er = /* @__PURE__ */ I({
2193
2562
  __name: "index",
2194
2563
  props: {
2195
2564
  valueFormat: {}
2196
2565
  },
2197
2566
  setup(r) {
2198
- const a = r, { editorCtrl: e, labelText: t, errInfo: o } = q(), n = () => {
2199
- o != null && o.value.errClass && e && le(e);
2200
- }, i = y(a.valueFormat ?? "HH:mm");
2201
- return (p, c) => {
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) => {
2202
2571
  var u;
2203
- return v(), b(l(oa), {
2204
- class: E(["w-full", [((u = l(o)) == null ? void 0 : u.errClass) === "error" ? "error !border-red-300 shadow-[0_0_3px_0px_#ff4d4f]" : ""]]),
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]" : ""]]),
2205
2574
  placeholder: "请选择" + l(t),
2206
- locale: l(Se),
2207
- valueFormat: i.value,
2208
- onBlur: n
2575
+ locale: l($e),
2576
+ valueFormat: o.value,
2577
+ onBlur: i
2209
2578
  }, null, 8, ["class", "placeholder", "locale", "valueFormat"]);
2210
2579
  };
2211
2580
  }
2212
- }), al = /* @__PURE__ */ T({
2581
+ }), Tl = /* @__PURE__ */ I({
2213
2582
  __name: "index",
2214
2583
  props: {
2215
2584
  autoload: { type: Boolean },
@@ -2219,54 +2588,54 @@ const Jl = /* @__PURE__ */ T({
2219
2588
  },
2220
2589
  emits: ["change", "update:value"],
2221
2590
  setup(r, { emit: a }) {
2222
- const e = r, t = y({ ...e.url }), { editorCtrl: o, labelText: n, errInfo: i } = q(), p = a, c = y([]), u = y([]);
2591
+ const e = r, t = C({ ...e.url }), { editorCtrl: n, labelText: i, errInfo: o } = ee(), f = a, c = C([]), u = C([]);
2223
2592
  e.value && e.value.every((s) => {
2224
2593
  u.value.push(s.toString());
2225
- }), I(
2594
+ }), L(
2226
2595
  () => e.value,
2227
2596
  (s) => {
2228
2597
  s && (u.value = s);
2229
2598
  }
2230
2599
  );
2231
- const f = (s) => {
2232
- p("update:value", s), p("change", s), u.value = s, 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);
2233
2602
  };
2234
- return X(async () => {
2603
+ return ae(async () => {
2235
2604
  if (t.value) {
2236
- const s = o == null ? void 0 : o.page;
2605
+ const s = n == null ? void 0 : n.page;
2237
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) {
2238
- const m = await at(o, {
2607
+ const g = await rt(n, {
2239
2608
  urlKey: "list",
2240
2609
  url: { ...t.value, url: t.value.url },
2241
2610
  loadingText: !1,
2242
2611
  params: e.params
2243
2612
  });
2244
- c.value = (m == null ? void 0 : m.data) ?? [];
2613
+ c.value = (g == null ? void 0 : g.data) ?? [];
2245
2614
  }
2246
2615
  }
2247
- }), (s, m) => {
2248
- var d;
2249
- return v(), b(l(na), B({
2250
- class: ((d = l(i)) == null ? void 0 : d.errClass) === "error" ? ["error", "!border-red-300", "shadow-[0_0_3px_0px_#ff4d4f]"] : "",
2251
- placeholder: "请输入" + l(n),
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),
2252
2621
  targetKeys: u.value,
2253
- onChange: f
2622
+ onChange: v
2254
2623
  }, s.$attrs), {
2255
- children: h(({ direction: g, disabled: C, filteredItems: F, onItemSelectAll: U, onItemSelect: $, selectedKeys: A }) => [
2256
- P(s.$slots, "children", {
2257
- direction: g,
2258
- disabled: C,
2259
- filteredItems: F,
2260
- onItemSelectAll: U,
2261
- onItemSelect: $,
2262
- selectedKeys: A
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
2263
2632
  })
2264
2633
  ]),
2265
2634
  _: 3
2266
2635
  }, 16, ["class", "placeholder", "targetKeys"]);
2267
2636
  };
2268
2637
  }
2269
- }), nr = /* @__PURE__ */ T({
2638
+ }), Lr = /* @__PURE__ */ I({
2270
2639
  __name: "transferTable",
2271
2640
  props: {
2272
2641
  /**
@@ -2293,35 +2662,35 @@ const Jl = /* @__PURE__ */ T({
2293
2662
  },
2294
2663
  emits: ["update:value"],
2295
2664
  setup(r, { emit: a }) {
2296
- const e = r, t = a, o = y(e.autoload), n = y(e.value), i = y(e.gridCtrl.primaryKey);
2297
- I(
2298
- () => n.value,
2665
+ const e = r, t = a, n = C(e.autoload), i = C(e.value), o = C(e.gridCtrl.primaryKey);
2666
+ L(
2667
+ () => i.value,
2299
2668
  (u) => {
2300
2669
  t("update:value", u);
2301
2670
  }
2302
- ), I(
2671
+ ), L(
2303
2672
  () => e.value,
2304
2673
  (u) => {
2305
- u && (n.value = u);
2674
+ u && (i.value = u);
2306
2675
  }
2307
- ), e.gridCtrl.autoload = !1, e.gridCtrl.remotePage = !1, e.gridCtrl.selectable = y(!0), e.gridCtrl.buttons = y([]), e.gridCtrl.tools = [];
2308
- const p = ({ disabled: u, selectedKeys: f, onItemSelectAll: s, onItemSelect: m }) => ({
2309
- 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) => ({
2310
2679
  // 控制是否禁止
2311
- disabled: u || d.disabled
2680
+ disabled: u || p.disabled
2312
2681
  }),
2313
- onSelectAll(d, g) {
2314
- const C = g.filter((F) => !F.disabled).map(({ [i.value]: F }) => F);
2315
- s(C, d);
2682
+ onSelectAll(p, _) {
2683
+ const $ = _.filter((y) => !y.disabled).map(({ [o.value]: y }) => y);
2684
+ s($, p);
2316
2685
  },
2317
- onSelect({ [i.value]: d }, g) {
2318
- m(d, g);
2686
+ onSelect({ [o.value]: p }, _) {
2687
+ g(p, _);
2319
2688
  },
2320
- selectedRowKeys: f
2321
- }), c = y([]);
2322
- return X(async () => {
2323
- if (o.value) {
2324
- const u = 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, {
2325
2694
  urlKey: "list",
2326
2695
  url: { ...e.gridCtrl.gridUrl, url: e.gridCtrl.gridUrl.url },
2327
2696
  params: e.gridCtrl.gridQuery,
@@ -2329,42 +2698,42 @@ const Jl = /* @__PURE__ */ T({
2329
2698
  });
2330
2699
  c.value = (u == null ? void 0 : u.data) ?? [];
2331
2700
  }
2332
- }), (u, f) => (v(), b(al, B({
2701
+ }), (u, v) => (d(), k(Tl, U({
2333
2702
  "data-source": c.value,
2334
- "row-key": (s) => s[i.value],
2335
- value: n.value,
2336
- "onUpdate:value": f[0] || (f[0] = (s) => n.value = s),
2703
+ "row-key": (s) => s[o.value],
2704
+ value: i.value,
2705
+ "onUpdate:value": v[0] || (v[0] = (s) => i.value = s),
2337
2706
  "list-style": {
2338
2707
  width: "300px",
2339
2708
  height: "500px"
2340
2709
  },
2341
2710
  "show-select-all": !1,
2342
2711
  "show-search": !0,
2343
- "filter-option": (s, m) => {
2344
- for (const d of e.gridCtrl.columns.value)
2345
- if (m[d.dataIndex].toString().indexOf(s) !== -1)
2712
+ "filter-option": (s, g) => {
2713
+ for (const p of e.gridCtrl.columns.value)
2714
+ if (g[p.dataIndex].toString().indexOf(s) !== -1)
2346
2715
  return !0;
2347
2716
  return !1;
2348
2717
  }
2349
2718
  }, u.$attrs), {
2350
- children: h(({ filteredItems: s, onItemSelectAll: m, onItemSelect: d, selectedKeys: g }) => [
2351
- S(l(ct), {
2719
+ children: x(({ filteredItems: s, onItemSelectAll: g, onItemSelect: p, selectedKeys: _ }) => [
2720
+ D(l(ft), {
2352
2721
  columns: r.gridCtrl.columns.value,
2353
- "row-key": i.value,
2354
- "row-selection": p({
2722
+ "row-key": o.value,
2723
+ "row-selection": f({
2355
2724
  disabled: !1,
2356
- selectedKeys: g,
2357
- onItemSelectAll: m,
2358
- onItemSelect: d
2725
+ selectedKeys: _,
2726
+ onItemSelectAll: g,
2727
+ onItemSelect: p
2359
2728
  }),
2360
2729
  bordered: !1,
2361
2730
  size: "small",
2362
2731
  "data-source": s,
2363
2732
  scroll: { x: 300 },
2364
- "custom-row": (C) => ({
2733
+ "custom-row": ($) => ({
2365
2734
  onClick: () => {
2366
- const F = C[i.value];
2367
- d(F, !g.includes(F));
2735
+ const y = $[o.value];
2736
+ p(y, !_.includes(y));
2368
2737
  }
2369
2738
  })
2370
2739
  }, null, 8, ["columns", "row-key", "row-selection", "data-source", "custom-row"])
@@ -2372,7 +2741,7 @@ const Jl = /* @__PURE__ */ T({
2372
2741
  _: 1
2373
2742
  }, 16, ["data-source", "row-key", "value", "filter-option"]));
2374
2743
  }
2375
- }), ll = /* @__PURE__ */ T({
2744
+ }), Dl = /* @__PURE__ */ I({
2376
2745
  __name: "index",
2377
2746
  props: {
2378
2747
  multiple: {
@@ -2399,65 +2768,65 @@ const Jl = /* @__PURE__ */ T({
2399
2768
  },
2400
2769
  emits: ["change", "update:value"],
2401
2770
  setup(r, { emit: a }) {
2402
- const e = r, t = e.value === void 0 ? !0 : e.undefValue, o = e.treeCtrl, n = q(), { errInfo: i, labelText: p } = n, c = a;
2403
- n.inputEmit = c;
2404
- const u = y([]), f = y();
2405
- I(
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(
2406
2775
  () => e.value,
2407
- (d) => {
2408
- f.value = d;
2776
+ (p) => {
2777
+ v.value = p;
2409
2778
  },
2410
2779
  { immediate: !0 }
2411
- ), I(
2412
- () => f.value,
2413
- (d) => {
2414
- c("update:value", d);
2780
+ ), L(
2781
+ () => v.value,
2782
+ (p) => {
2783
+ c("update:value", p);
2415
2784
  }
2416
- ), I(
2417
- () => o.data.value,
2418
- (d) => {
2419
- d && (u.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);
2420
2789
  },
2421
2790
  { immediate: !0 }
2422
2791
  );
2423
- const s = (d) => {
2424
- e.multiple ? f.value = d ?? [] : d == null ? f.value = t ? void 0 : null : f.value = d, c("change", f.value);
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);
2425
2794
  };
2426
- xe(() => {
2795
+ ke(() => {
2427
2796
  e.treeCtrl && e.treeCtrl.autoload && (e.treeCtrl.reload.value = !0);
2428
- }), X(() => {
2429
- o.fieldMap || (o.fieldMap = {
2797
+ }), ae(() => {
2798
+ n.fieldMap || (n.fieldMap = {
2430
2799
  label: "Name",
2431
2800
  key: "Id",
2432
2801
  value: "Id"
2433
- }), o.data.value ? u.value = o.fieldMap ? he(o.fieldMap, o.data.value) : o.data.value : e.treeCtrl.autoload && tt(e.treeCtrl);
2802
+ }), n.data.value ? u.value = n.fieldMap ? he(n.fieldMap, n.data.value) : n.data.value : e.treeCtrl.autoload && lt(e.treeCtrl);
2434
2803
  });
2435
- const m = () => {
2436
- f.value = t ? void 0 : null;
2804
+ const g = () => {
2805
+ v.value = t ? void 0 : null;
2437
2806
  };
2438
- return (d, g) => {
2439
- var C;
2440
- return v(), b(l(ia), B({
2441
- 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"],
2442
2811
  "tree-line": "",
2443
2812
  multiple: r.multiple,
2444
2813
  "tree-default-expanded-keys": ["-"],
2445
- value: f.value,
2446
- "onUpdate:value": g[0] || (g[0] = (F) => f.value = F),
2814
+ value: v.value,
2815
+ "onUpdate:value": _[0] || (_[0] = (y) => v.value = y),
2447
2816
  "tree-data": u.value,
2448
- placeholder: "请选择" + l(p),
2817
+ placeholder: "请选择" + l(f),
2449
2818
  onChange: s,
2450
- onClear: m
2451
- }, d.$attrs), null, 16, ["class", "multiple", "value", "tree-data", "placeholder"]);
2819
+ onClear: g
2820
+ }, p.$attrs), null, 16, ["class", "multiple", "value", "tree-data", "placeholder"]);
2452
2821
  };
2453
2822
  }
2454
- }), ir = /* @__PURE__ */ se(ll, [["__scopeId", "data-v-71d50074"]]), rl = { class: "w-full mt-1" }, sl = { class: "flex flex-wrap gap-2" }, ol = ["onMouseenter"], nl = { class: "w-16 h-16 border border-solid border-gray-200 rounded overflow-hidden" }, il = ["src"], ul = {
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 = {
2455
2824
  key: 0,
2456
2825
  class: "absolute inset-0 bg-black bg-opacity-50 flex items-center justify-center gap-4 rounded"
2457
- }, cl = ["onClick"], dl = ["onClick"], pl = {
2826
+ }, Ml = ["onClick"], Bl = ["onClick"], Nl = {
2458
2827
  key: 0,
2459
2828
  class: "w-16 h-16"
2460
- }, fl = /* @__PURE__ */ T({
2829
+ }, zl = /* @__PURE__ */ I({
2461
2830
  __name: "imageList",
2462
2831
  props: {
2463
2832
  autoUpload: { type: Boolean, default: !1 },
@@ -2477,171 +2846,171 @@ const Jl = /* @__PURE__ */ T({
2477
2846
  },
2478
2847
  emits: ["update:file-list"],
2479
2848
  setup(r, { emit: a }) {
2480
- const e = r, t = q(), { errInfo: o } = t, n = y(e.fileList), i = y([]), p = y(), c = a, u = R(() => {
2481
- var _;
2482
- return (_ = e.fileExt) != null && _.length ? e.fileExt.map((k) => `.${k}`).join(",") : "";
2483
- }), f = (_) => {
2484
- var k;
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;
2485
2854
  if (e.fileExt && e.fileExt.length > 0) {
2486
- const z = ((k = _.name.split(".").pop()) == null ? void 0 : k.toLowerCase()) || "";
2487
- if (!e.fileExt.includes(z))
2488
- 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;
2489
2858
  }
2490
- return _.size / 1024 / 1024 > e.maxFileSize ? (G.error(`文件大小超过 ${e.maxFileSize}MB 限制`), !1) : !0;
2491
- }, s = () => e.maxCount > 1 && n.value.length >= e.maxCount, m = (_) => {
2492
- const k = _;
2493
- return k.params || (k.params = {}), k.params.FileKey = k.name, e.parentPath && (k.params.FileKey = Oe.join("/", e.parentPath, k.name)), k;
2494
- }, d = (_) => f(_) && e.autoUpload, g = async (_) => {
2495
- if (_.length === 0) return;
2496
- const k = [...n.value];
2497
- let z = !1;
2498
- for (const j of _) {
2499
- if (!f(j)) {
2500
- z = !0;
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;
2501
2870
  continue;
2502
2871
  }
2503
- const O = m(j);
2872
+ const q = g(X);
2504
2873
  if (e.maxCount === 1) {
2505
- k.length = 0, k.push(O);
2874
+ P.length = 0, P.push(q);
2506
2875
  break;
2507
2876
  }
2508
2877
  if (s()) {
2509
- G.error(`最多上传 ${e.maxCount} 个文件`), z = !0;
2878
+ te.error(`最多上传 ${e.maxCount} 个文件`), W = !0;
2510
2879
  break;
2511
2880
  }
2512
- const ee = k.findIndex((Ie) => Ie.name === O.name);
2513
- ee > -1 ? k[ee] = O : k.push(O);
2881
+ const le = P.findIndex((De) => De.name === q.name);
2882
+ le > -1 ? P[le] = q : P.push(q);
2514
2883
  }
2515
- (!z || k.length > 0) && (n.value = k), i.value = [];
2516
- }, C = (_) => {
2517
- i.value = _, g(_);
2518
- }, F = R(() => ({
2884
+ (!W || P.length > 0) && (i.value = P), o.value = [];
2885
+ }, $ = (T) => {
2886
+ o.value = T, _(T);
2887
+ }, y = K(() => ({
2519
2888
  accept: u.value,
2520
2889
  multiple: e.maxCount !== 1,
2521
- fileList: i.value,
2522
- "onUpdate:fileList": C,
2523
- beforeUpload: d,
2890
+ fileList: o.value,
2891
+ "onUpdate:fileList": $,
2892
+ beforeUpload: p,
2524
2893
  listType: "text",
2525
2894
  showUploadList: !1,
2526
2895
  customRequest: async () => {
2527
2896
  if (e.autoUpload && e.uploadUrl)
2528
- for (const _ of n.value)
2529
- _.percent === 0 && await Ot(e.uploadUrl, _);
2897
+ for (const T of i.value)
2898
+ T.percent === 0 && await jt(e.uploadUrl, T);
2530
2899
  }
2531
2900
  }));
2532
- I(
2901
+ L(
2533
2902
  () => e.fileList,
2534
- (_) => {
2535
- n.value = _;
2903
+ (T) => {
2904
+ i.value = T;
2536
2905
  },
2537
2906
  { deep: !0, immediate: !0 }
2538
- ), I(
2539
- () => n.value,
2540
- (_) => {
2541
- c("update:file-list", _);
2907
+ ), L(
2908
+ () => i.value,
2909
+ (T) => {
2910
+ c("update:file-list", T);
2542
2911
  },
2543
2912
  { deep: !0 }
2544
- ), I(
2913
+ ), L(
2545
2914
  () => e.parentPath,
2546
- (_) => {
2547
- _ && n.value.forEach((k) => {
2548
- k.params.FileKey = Oe.join("/", _, k.fileName);
2915
+ (T) => {
2916
+ T && i.value.forEach((P) => {
2917
+ P.params.FileKey = Re.join("/", T, P.fileName);
2549
2918
  });
2550
2919
  }
2551
2920
  );
2552
- const U = y(!1), $ = y(""), A = (_) => {
2553
- const k = n.value[_];
2554
- $.value = fe(k), U.value = !0;
2555
- }, H = (_) => {
2556
- const k = n.value[_];
2557
- e.deleteUrl && k.minioFile && k.minioFile.Key ? Be(e.deleteUrl, {
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, {
2558
2927
  Query: {
2559
- FileKey: k.minioFile.Key
2928
+ FileKey: P.minioFile.Key
2560
2929
  }
2561
- }).then((z) => {
2562
- z && z.status === Me.SUCCESS && (G.success("删除文件成功!"), n.value.splice(_, 1));
2563
- }) : n.value.splice(_, 1);
2564
- }, Z = y(/* @__PURE__ */ new Map()), fe = (_) => {
2565
- if (_.originFileObj)
2566
- return URL.createObjectURL(_.originFileObj);
2567
- if (_.minioFile) {
2568
- const k = _.minioFile.Key;
2569
- return Z.value.has(k) ? Z.value.get(k) : ($e(_), "");
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), "");
2570
2939
  }
2571
2940
  return "";
2572
- }, $e = async (_) => {
2573
- if (!_.minioFile || !e.previewUrl) return;
2574
- const k = _.minioFile.Key;
2941
+ }, A = async (T) => {
2942
+ if (!T.minioFile || !e.previewUrl) return;
2943
+ const P = T.minioFile.Key;
2575
2944
  try {
2576
- const z = `${e.previewUrl.url}?FileKey=${encodeURIComponent(_.minioFile.Key)}`, j = At() ? await zt.getToken() : Le().getToken(), O = await fetch(z, {
2945
+ const W = `${e.previewUrl.url}?FileKey=${encodeURIComponent(T.minioFile.Key)}`, X = Vt() ? await Kt.getToken() : Me().getToken(), q = await fetch(W, {
2577
2946
  method: "GET",
2578
2947
  headers: {
2579
- Authorization: `Bearer ${j}`
2948
+ Authorization: `Bearer ${X}`
2580
2949
  }
2581
2950
  });
2582
- if (O.ok) {
2583
- const ee = await O.blob(), Ie = URL.createObjectURL(ee);
2584
- Z.value.set(k, Ie);
2951
+ if (q.ok) {
2952
+ const le = await q.blob(), De = URL.createObjectURL(le);
2953
+ R.value.set(P, De);
2585
2954
  } else
2586
- console.error("加载图片失败:", O.status);
2587
- } catch (z) {
2588
- console.error("加载图片失败:", z);
2955
+ console.error("加载图片失败:", q.status);
2956
+ } catch (W) {
2957
+ console.error("加载图片失败:", W);
2589
2958
  }
2590
- }, _t = R(() => n.value.length < e.maxCount), Te = y(-1);
2591
- return (_, k) => {
2592
- const z = re("auth");
2593
- return v(), w("div", rl, [
2594
- D("div", sl, [
2595
- (v(!0), w(L, null, V(n.value, (j, O) => (v(), w("div", {
2596
- 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,
2597
2966
  class: "relative image-item",
2598
- onMouseenter: (ee) => Te.value = O,
2599
- onMouseleave: k[0] || (k[0] = (ee) => Te.value = -1)
2967
+ onMouseenter: (le) => Te.value = q,
2968
+ onMouseleave: P[0] || (P[0] = (le) => Te.value = -1)
2600
2969
  }, [
2601
- D("div", nl, [
2602
- D("img", {
2603
- src: fe(j),
2970
+ F("div", El, [
2971
+ F("img", {
2972
+ src: z(X),
2604
2973
  class: "w-full h-full object-cover"
2605
- }, null, 8, il)
2974
+ }, null, 8, Ll)
2606
2975
  ]),
2607
- Te.value === O ? (v(), w("div", ul, [
2608
- _.previewUrl ? (v(), w("div", {
2976
+ Te.value === q ? (d(), b("div", Ul, [
2977
+ T.previewUrl ? (d(), b("div", {
2609
2978
  key: 0,
2610
2979
  class: "flex items-center text-white cursor-pointer hover:text-blue-400",
2611
- onClick: (ee) => A(O)
2980
+ onClick: (le) => h(q)
2612
2981
  }, [
2613
- S(l(K), {
2982
+ D(l(V), {
2614
2983
  icon: "icon-eye",
2615
2984
  clickable: ""
2616
2985
  }),
2617
- k[1] || (k[1] = D("span", { class: "text-sm ml-1" }, "预览", -1))
2618
- ], 8, cl)) : x("", !0),
2619
- _.showDelete !== !1 ? (v(), w("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", {
2620
2989
  key: 1,
2621
2990
  class: "flex items-center text-white cursor-pointer hover:text-red-400",
2622
- onClick: (ee) => H(O)
2991
+ onClick: (le) => N(q)
2623
2992
  }, [
2624
- S(l(K), {
2993
+ D(l(V), {
2625
2994
  icon: "icon-new",
2626
2995
  angle: 45,
2627
2996
  clickable: ""
2628
2997
  }),
2629
- k[2] || (k[2] = D("span", { class: "text-sm ml-1" }, "删除", -1))
2630
- ], 8, dl)) : x("", !0)
2631
- ])) : x("", !0)
2632
- ], 40, ol))), 128)),
2633
- _t.value ? (v(), w("div", pl, [
2634
- W((v(), b(l(ua), B({
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({
2635
3004
  ref_key: "fileUploader",
2636
- ref: p
2637
- }, F.value), {
2638
- default: h(() => {
2639
- var j;
3005
+ ref: f
3006
+ }, y.value), {
3007
+ default: x(() => {
3008
+ var X;
2640
3009
  return [
2641
- D("div", {
2642
- class: E(["w-16 h-16 border border-dashed border-gray-300 rounded flex items-center justify-center cursor-pointer hover:border-blue-500 transition-colors", [(j = l(o)) == null ? void 0 : j.errClass]])
3010
+ F("div", {
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]])
2643
3012
  }, [
2644
- S(l(K), {
3013
+ D(l(V), {
2645
3014
  icon: "icon-new",
2646
3015
  class: "text-gray-400 w-10 h-10"
2647
3016
  })
@@ -2650,42 +3019,42 @@ const Jl = /* @__PURE__ */ T({
2650
3019
  }),
2651
3020
  _: 1
2652
3021
  }, 16)), [
2653
- [z, { role: ["Super", "Admin"], permit: ":imagelist:upload" }]
3022
+ [W, { role: ["Super", "Admin"], permit: ":imagelist:upload" }]
2654
3023
  ])
2655
- ])) : x("", !0)
3024
+ ])) : w("", !0)
2656
3025
  ]),
2657
- S(l(ca), {
2658
- preview: { visible: U.value, onVisibleChange: (j) => U.value = j },
2659
- src: $.value,
3026
+ D(l(fa), {
3027
+ preview: { visible: S.value, onVisibleChange: (X) => S.value = X },
3028
+ src: m.value,
2660
3029
  style: { display: "none" }
2661
3030
  }, null, 8, ["preview", "src"])
2662
3031
  ]);
2663
3032
  };
2664
3033
  }
2665
- }), ur = /* @__PURE__ */ se(fl, [["__scopeId", "data-v-26d707cc"]]), vl = { class: "relative h-[calc(100vh-80px)] overflow-y-auto" }, ml = { class: "flex w-full h-full min-h-full" }, hl = {
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 = {
2666
3035
  key: 0,
2667
3036
  class: "w-1/4 pr-4 min-h-full min-w-[170px] max-w-[200px]"
2668
- }, gl = { class: "flex-1 h-full overflow-y-auto" }, cr = /* @__PURE__ */ T({
3037
+ }, Kl = { class: "flex-1 h-full overflow-y-auto" }, Br = /* @__PURE__ */ I({
2669
3038
  __name: "index",
2670
3039
  props: {
2671
3040
  left: { type: Boolean }
2672
3041
  },
2673
3042
  setup(r) {
2674
- const { useToken: a } = rt, { token: e } = a();
2675
- return (t, o) => (v(), w("div", vl, [
2676
- S(l(da), {
3043
+ const { useToken: a } = nt, { token: e } = a();
3044
+ return (t, n) => (d(), b("div", Al, [
3045
+ D(l(va), {
2677
3046
  class: "m-[10px] p-[10px] h-[calc(100vh-100px)] !min-h-[calc(100vh-100px)]",
2678
- style: ze({
3047
+ style: Oe({
2679
3048
  backgroundColor: l(e).colorBgContainer
2680
3049
  })
2681
3050
  }, {
2682
- default: h(() => [
2683
- D("div", ml, [
2684
- t.left ? (v(), w("div", hl, [
2685
- P(t.$slots, "left")
2686
- ])) : x("", !0),
2687
- D("div", gl, [
2688
- P(t.$slots, "default")
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")
2689
3058
  ])
2690
3059
  ])
2691
3060
  ]),
@@ -2695,160 +3064,162 @@ const Jl = /* @__PURE__ */ T({
2695
3064
  }
2696
3065
  });
2697
3066
  export {
2698
- os as Alert,
2699
- xs as AppIcon,
2700
- ue as AppRouter,
2701
- Xr as AsyncUploader,
2702
- Hl as AutoComplete,
2703
- ks as Breadcrumb,
2704
- Q as Button,
2705
- ft as Cache,
2706
- Sa as CacheKeys,
2707
- ts as CanPreviewFileExt,
2708
- Ql as Cascader,
2709
- Gl as Checkbox,
2710
- cr as Content,
2711
- Jl as DatePicker,
2712
- ws as Datetime,
2713
- Ps as Dialog,
2714
- Rl as Drawer,
2715
- fr as EventPrefix,
2716
- Kl as Form,
2717
- jl as FormItem,
2718
- Ol as Fullscreen,
2719
- Cs as Header,
2720
- Ss as HeaderExits,
2721
- Ta as Helper,
2722
- vr as ICONS_LIB,
2723
- $s as Icon,
2724
- La as Icontool,
2725
- ur as ImageList,
2726
- Ja as Input,
2727
- Xl as InputIcon,
2728
- er as InputNumber,
2729
- Zl as InputPassword,
2730
- Al as LayoutIcon,
2731
- Vl as List,
2732
- Pa as ListOperate,
2733
- ns as Loading,
2734
- Ts as Menu,
2735
- Is as MenuTabs,
2736
- zt 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,
2737
3107
  Ne as OPTIONS,
2738
- It as OptionCommProps,
2739
- Ds as ProjectIcon,
2740
- tr as PropEditor,
2741
- ae as ProviderKeys,
2742
- tl as Radio,
2743
- ar as RadioStatus,
2744
- lr as RangePicker,
2745
- Yl as Search,
2746
- Fe as SearchItem,
2747
- rr as Select,
2748
- Ze as Switch,
2749
- Wl as Table,
2750
- ja as TableOperate,
2751
- sr as Textarea,
2752
- or as TimePicker,
2753
- K as ToolIcon,
2754
- yt as Toolbar,
2755
- ys as Tooltip,
2756
- al as Transfer,
2757
- nr as TransferTable,
2758
- ql as Tree,
2759
- ir as TreeSelect,
2760
- as as UploadList,
2761
- Zr as UploadStatus,
2762
- is as appendExcelData,
2763
- us as checkExcelDuplicates,
2764
- mr as checkIconsExpired,
2765
- Et as circleLoading,
2766
- kt as createFromIconfont,
2767
- cs as createMarkedExcelView,
2768
- hr as crumbs,
2769
- Nl as csvToExcelBlob,
2770
- dt as csvToExcelView,
2771
- ds as csvToNormalized,
2772
- Ye as defaultTools,
2773
- gr as doDelete,
2774
- br as doExecute,
2775
- at as doQuery,
2776
- yr as doSave,
2777
- ls as donwloadFromMinio,
2778
- fa as downloadBlob,
2779
- _r as eventBus,
2780
- ps as excelToExcelView,
2781
- fs as excelToNormalized,
2782
- zl as exportResults,
2783
- Ml as exportSelectedRows,
2784
- Je as filterColumns,
2785
- le as formValidate,
2786
- xr as getFormDetail,
2787
- kr as getIconTransform,
2788
- wr as getRecordDetail,
2789
- Cr as getRuleTexts,
2790
- Ut as getSelectedLabels,
2791
- Sr as getSelectedValues,
2792
- oe as getToolByKey,
2793
- Ce as getToolGroup,
2794
- te as getToolStatus,
2795
- J as getToolVisible,
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,
3116
+ Ie as SearchItem,
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,
2796
3167
  me as gridQueryFind,
2797
- Xe as gridQueryList,
2798
- $r as gridRowUpdate,
2799
- et as gridStatusUpdate,
2800
- Ul as initCacheCheck,
2801
- Ll as initDirective,
2802
- Tr as initMenu,
2803
- Ir as initPageFactory,
2804
- Dr as initValidate,
2805
- ce as isEmpty,
2806
- Ft as loadOption,
2807
- Fr as mergeColumns,
2808
- vs as normalizedToExcelView,
2809
- wa as onColumnVisibleChanged,
2810
- Ct as onFormClose,
2811
- We as onFormSave,
2812
- wt as onFormSaveAs,
2813
- pt as onFullscreenClick,
2814
- Ge as onGridRowDelete,
2815
- Qe as onGridRowEdit,
2816
- Pr as onGridRowExpand,
2817
- Lt as onOptionChanged,
2818
- ha as onReloadClick,
2819
- Y as onToolClicked,
2820
- St as openNewForm,
2821
- Er as outFormDataFields,
2822
- Lr as parseIcons,
2823
- Oe as path,
2824
- Ur as pendingNavigation,
2825
- Nr as pinia,
2826
- rs as previewFromMinio,
2827
- Bl as processCsvFile,
2828
- ms as processExcelFile,
2829
- tt as queryTree,
2830
- Br as resetRules,
2831
- Mr as routes,
2832
- zr as saveForm,
2833
- Or as setFormData,
2834
- Ar as showBreadcrumb,
2835
- hs as toExcel,
2836
- Pt as unloadOption,
2837
- Rr as uploadTempBtn,
2838
- Kr as uploadTempOpener,
2839
- jr as useAppInfo,
2840
- Vr as useEditorFactory,
2841
- qe as useFormItemFactory,
2842
- Yr as useGridFactory,
2843
- Wr as useHostInfo,
2844
- q as useInputFactory,
2845
- Dt as useOptionFactory,
2846
- qr as usePageFactory,
2847
- Hr as usePageInfo,
2848
- Ue as useSettingInfo,
2849
- Ca as useToolFactory,
2850
- Qr as useTreeFactory,
2851
- Le as useUserInfo,
2852
- Gr as validateData,
2853
- gs 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
2854
3225
  };