@skyfox2000/webui 1.3.20 → 1.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (40) hide show
  1. package/lib/assets/modules/{baseLayout-B9dSxkYo.js → baseLayout-DIEq13qJ.js} +6 -6
  2. package/lib/assets/modules/{file-upload-JBIvw5Xx.js → file-upload-DGuLxYSu.js} +2 -2
  3. package/lib/assets/modules/{index-BMkaOjBS.js → index-BPufvr-r.js} +134 -133
  4. package/lib/assets/modules/{index-BOYtm8ib.js → index-CAtotNY6.js} +2 -2
  5. package/lib/assets/modules/{index-BkChvyed.js → index-DVzBH6zL.js} +1 -1
  6. package/lib/assets/modules/{menuTabs-BFPjaQRI.js → menuTabs-DKvoic5x.js} +7 -7
  7. package/lib/assets/modules/{toolIcon-XOgjdQdO.js → toolIcon-Y7Lpx2Hb.js} +1 -1
  8. package/lib/assets/modules/{uploadList-BedljASx.js → uploadList-Bh2SzZzX.js} +710 -701
  9. package/lib/assets/modules/{uploadList-CW7OIDS3.js → uploadList-DG33cpFl.js} +152 -146
  10. package/lib/components/common/icon/index.vue.d.ts +1 -1
  11. package/lib/es/AceEditor/index.js +3 -3
  12. package/lib/es/BasicLayout/index.js +2 -2
  13. package/lib/es/Error403/index.js +1 -1
  14. package/lib/es/Error404/index.js +1 -1
  15. package/lib/es/ExcelForm/index.js +38 -38
  16. package/lib/es/MenuLayout/index.js +2 -2
  17. package/lib/es/UploadForm/index.js +4 -4
  18. package/lib/stores/userInfo.d.ts +3 -1
  19. package/lib/typings/form.d.ts +1 -1
  20. package/lib/typings/tree.d.ts +4 -0
  21. package/lib/utils/micro-openapis.d.ts +35 -0
  22. package/lib/webui.es.js +358 -353
  23. package/package.json +1 -2
  24. package/src/components/content/dialog/excelForm.vue +1 -1
  25. package/src/components/content/form/formItem.vue +5 -0
  26. package/src/components/layout/header/headerExits.vue +1 -1
  27. package/src/stores/appInfo.ts +7 -8
  28. package/src/stores/userInfo.ts +21 -63
  29. package/src/typings/form.d.ts +1 -1
  30. package/src/typings/tree.d.ts +4 -0
  31. package/src/utils/data.ts +6 -0
  32. package/src/utils/download.ts +10 -1
  33. package/src/utils/export-table.ts +5 -0
  34. package/src/utils/form-excel.ts +14 -9
  35. package/src/utils/form.ts +7 -1
  36. package/src/utils/main-openapis.ts +2 -2
  37. package/src/utils/micro-openapis.ts +146 -0
  38. package/src/utils/options.ts +5 -0
  39. package/src/utils/table.ts +7 -2
  40. package/src/utils/tree.ts +4 -2
package/lib/webui.es.js CHANGED
@@ -1,23 +1,23 @@
1
- import { u as Je, i as Z, a as me, c as Xe, P as j, o as Pe, b as Ze, d as ea, e as Ee, r as ce, f as aa, g as ta, h as Fe, j as la, k as ke, l as sa, _ as ra, m as oa, O as Ne, q as Me, n as na, p as ia, s as L, t as ca, v as ua, w as da, x as pa, y as fa, z as va, A as Y, B as ma, C as ha, D as ga, E as Be } from "./assets/modules/uploadList-BedljASx.js";
2
- import { a9 as Tl, N as $l, Q as Il, U as Dl, a8 as Pl, a6 as El, a7 as Fl, aa as Nl, X as Ml, S as Bl, a4 as Rl, a1 as Al, L as Ol, a3 as Ll, T as zl, G as Ul, Z as Vl, a2 as Yl, a5 as Kl, M as Wl, R as Hl, ab as jl, F as Ql, a0 as ql, ac as Gl, W as Jl, Y as Xl, V as Zl, ad as es, H as as, I as ts, ae as ls, K as ss, af as rs, J as os, $ as ns } from "./assets/modules/uploadList-BedljASx.js";
3
- import { A as cs, U as us, a as ds, g as ps, c as fs, d as vs, p as ms, u as hs, b as gs } from "./assets/modules/file-upload-JBIvw5Xx.js";
1
+ import { u as Ee, i as Z, a as me, L as Xe, c as Ze, P as j, o as Pe, b as ea, d as aa, e as Fe, r as ce, f as ta, g as la, h as Ne, j as sa, k as ke, l as ra, _ as oa, m as na, O as Me, q as Be, n as ia, p as ca, s as L, t as ua, v as da, w as pa, x as fa, y as va, z as ma, A as Y, B as ha, C as ga, D as ba, E as Re } from "./assets/modules/uploadList-Bh2SzZzX.js";
2
+ import { aa as $l, Q as Il, R as Dl, V as El, a9 as Pl, a7 as Fl, a8 as Nl, ab as Ml, Y as Bl, T as Rl, a5 as Al, a2 as Ol, M as Ll, a4 as zl, U as Ul, G as Vl, $ as Yl, a3 as Kl, a6 as Wl, N as Hl, S as jl, ac as Ql, F as ql, a1 as Gl, ad as Jl, X as Xl, Z as Zl, W as es, ae as as, H as ts, I as ls, af as ss, K as rs, ag as os, J as ns, a0 as is } from "./assets/modules/uploadList-Bh2SzZzX.js";
3
+ import { A as us, U as ds, a as ps, g as fs, c as vs, d as ms, p as hs, u as gs, b as bs } from "./assets/modules/file-upload-DGuLxYSu.js";
4
4
  import { EnvConfig as we } from "@skyfox2000/microbase";
5
- import { FrontCache as re, httpPost as Re, ResStatus as Ae, SERVER_HOST as ba, fieldMapping as oe } from "@skyfox2000/fapi";
5
+ import { FrontCache as re, httpPost as Ae, ResStatus as Oe, SERVER_HOST as _a, fieldMapping as oe } from "@skyfox2000/fapi";
6
6
  import he from "vue-m-message";
7
- import { defineComponent as C, createBlock as b, openBlock as m, withModifiers as ae, unref as l, useAttrs as X, withCtx as g, createElementVNode as $, createVNode as w, mergeProps as N, renderSlot as D, normalizeClass as E, toDisplayString as F, createCommentVNode as k, ref as _, provide as ge, watch as T, onMounted as K, createTextVNode as M, inject as ne, resolveDirective as le, withDirectives as Q, computed as J, createElementBlock as S, normalizeStyle as be, createSlots as Oe, useSlots as _a, Fragment as R, renderList as z, resolveDynamicComponent as xa, onActivated as ya, shallowRef as ka, onUnmounted as wa, withKeys as Se } from "vue";
7
+ import { defineComponent as C, createBlock as b, openBlock as m, withModifiers as ae, unref as l, useAttrs as X, withCtx as g, createElementVNode as $, createVNode as w, mergeProps as N, renderSlot as D, normalizeClass as P, toDisplayString as F, createCommentVNode as k, ref as _, provide as ge, watch as T, onMounted as K, createTextVNode as M, inject as ne, resolveDirective as le, withDirectives as Q, computed as J, createElementBlock as S, normalizeStyle as be, createSlots as Le, useSlots as xa, Fragment as R, renderList as z, resolveDynamicComponent as ya, onActivated as ka, shallowRef as wa, onUnmounted as Sa, withKeys as Se } from "vue";
8
8
  import "async-validator";
9
9
  import fe from "dayjs";
10
- import { Popover as Sa, theme as Le, Drawer as Ca, Space as te, Form as ze, message as Ta, FormItem as Ue, ConfigProvider as Ce, Popconfirm as $a, Button as Ve, DropdownButton as Ia, Menu as _e, MenuItem as xe, Dropdown as ve, Checkbox as Da, Table as Ye, Tree as Pa, Cascader as Ea, DatePicker as Fa, Input as ee, InputPassword as Na, InputNumber as Ma, RangePicker as Ba, Textarea as Ra, TimePicker as Aa, Transfer as Oa, TreeSelect as La, LayoutContent as za } from "ant-design-vue";
11
- import { VueDraggableNext as Ua } from "vue-draggable-next";
12
- import { d as Ke } from "./assets/modules/uploadList-CW7OIDS3.js";
13
- import { C as _s, U as xs, a as ys, p as ks } from "./assets/modules/uploadList-CW7OIDS3.js";
14
- import { c as We } from "./assets/modules/index-BMkaOjBS.js";
15
- import { _ as Ss, h as Cs, b as Ts, a as $s, d as Is, e as Ds, g as Ps, f as Es, n as Fs, p as Ns, t as Ms, v as Bs } from "./assets/modules/index-BMkaOjBS.js";
16
- import { _ as O } from "./assets/modules/index-BkChvyed.js";
17
- import { _ as U } from "./assets/modules/toolIcon-XOgjdQdO.js";
18
- import { a as As } from "./assets/modules/toolIcon-XOgjdQdO.js";
19
- import { _ as Ls, b as zs, c as Us, d as Vs, e as Ys, I as Ks, f as Ws, g as Hs, a as js } from "./assets/modules/menuTabs-BFPjaQRI.js";
20
- import { _ as qs } from "./assets/modules/index-BOYtm8ib.js";
10
+ import { Popover as Ca, theme as ze, Drawer as Ta, Space as te, Form as Ue, message as $a, FormItem as Ve, ConfigProvider as Ce, Popconfirm as Ia, Button as Ye, DropdownButton as Da, Menu as _e, MenuItem as xe, Dropdown as ve, Checkbox as Ea, Table as Ke, Tree as Pa, Cascader as Fa, DatePicker as Na, Input as ee, InputPassword as Ma, InputNumber as Ba, RangePicker as Ra, Textarea as Aa, TimePicker as Oa, Transfer as La, TreeSelect as za, LayoutContent as Ua } from "ant-design-vue";
11
+ import { VueDraggableNext as Va } from "vue-draggable-next";
12
+ import { d as We } from "./assets/modules/uploadList-DG33cpFl.js";
13
+ import { C as xs, U as ys, a as ks, p as ws } from "./assets/modules/uploadList-DG33cpFl.js";
14
+ import { c as He } from "./assets/modules/index-BPufvr-r.js";
15
+ import { _ as Cs, h as Ts, b as $s, a as Is, d as Ds, e as Es, g as Ps, f as Fs, n as Ns, p as Ms, t as Bs, v as Rs } from "./assets/modules/index-BPufvr-r.js";
16
+ import { _ as O } from "./assets/modules/index-DVzBH6zL.js";
17
+ import { _ as U } from "./assets/modules/toolIcon-Y7Lpx2Hb.js";
18
+ import { a as Os } from "./assets/modules/toolIcon-Y7Lpx2Hb.js";
19
+ import { _ as zs, b as Us, c as Vs, d as Ys, e as Ks, I as Ws, f as Hs, g as js, a as Qs } from "./assets/modules/menuTabs-DKvoic5x.js";
20
+ import { _ as Gs } from "./assets/modules/index-CAtotNY6.js";
21
21
  import { _ as q } from "./assets/modules/_plugin-vue_export-helper-CHgC5LLL.js";
22
22
  const Te = (s, a, e, t = "remove") => {
23
23
  if (!e)
@@ -33,7 +33,7 @@ const Te = (s, a, e, t = "remove") => {
33
33
  }
34
34
  }, $e = (s) => {
35
35
  var c, f;
36
- const a = Je(), { url: e, role: t, permit: n } = s;
36
+ const a = Ee(), { url: e, role: t, permit: n } = s;
37
37
  if (Z(t) && Z(n))
38
38
  return !0;
39
39
  const i = e ?? ((f = (c = window.location.hash) == null ? void 0 : c.split("#")) == null ? void 0 : f[1]) ?? window.location.pathname;
@@ -44,7 +44,7 @@ const Te = (s, a, e, t = "remove") => {
44
44
  return Z(t) || (d = a.hasRole(t)), a.isAdmin() ? d : (Z(n) || (o = a.hasPermit(i, n)), d || o);
45
45
  }
46
46
  return !1;
47
- }, Va = {
47
+ }, Ya = {
48
48
  mounted(s, a, e) {
49
49
  const t = a.value || {}, n = a.arg || "remove", i = t.behavior || n, c = $e(t);
50
50
  Te(s, e, c, i);
@@ -53,7 +53,7 @@ const Te = (s, a, e, t = "remove") => {
53
53
  const t = a.value || {}, n = a.arg || "remove", i = t.behavior || n, c = $e(t);
54
54
  Te(s, e, c, i);
55
55
  }
56
- }, Ya = {
56
+ }, Ka = {
57
57
  mounted: (s, a) => {
58
58
  s.addEventListener("keydown", (e) => {
59
59
  e.key === "Enter" && a.value();
@@ -64,9 +64,9 @@ const Te = (s, a, e, t = "remove") => {
64
64
  });
65
65
  }
66
66
  }, de = {
67
- auth: Va,
68
- submit: Ya
69
- }, Qt = (s, a) => ((a || Object.keys(de)).forEach((t) => {
67
+ auth: Ya,
68
+ submit: Ka
69
+ }, qt = (s, a) => ((a || Object.keys(de)).forEach((t) => {
70
70
  t in de && s.directive(t, de[t]);
71
71
  }), s), W = (s, a) => {
72
72
  const e = s.find((t) => t.key === a);
@@ -95,11 +95,11 @@ const Te = (s, a, e, t = "remove") => {
95
95
  }, 1)) : he.warning("未配置点击处理事件!");
96
96
  }), a === 0 || c < a ? t.push(f) : n.push(f);
97
97
  }), { buttons: t, menus: n };
98
- }, H = (s, a) => s.disabled && typeof s.disabled == "function" ? s.disabled(a) : s.disabled, G = (s, a) => s.visible && typeof s.visible == "function" ? s.visible(a) : s.visible ?? !0, Ka = (s, a) => {
98
+ }, H = (s, a) => s.disabled && typeof s.disabled == "function" ? s.disabled(a) : s.disabled, G = (s, a) => s.visible && typeof s.visible == "function" ? s.visible(a) : s.visible ?? !0, Wa = (s, a) => {
99
99
  a.reload.value = !0;
100
- }, Wa = (s, a) => {
101
- a.searchBar.value = !a.searchBar.value;
102
100
  }, Ha = (s, a) => {
101
+ a.searchBar.value = !a.searchBar.value;
102
+ }, ja = (s, a) => {
103
103
  switch (a.tableSize.value) {
104
104
  case "large":
105
105
  a.tableSize.value = "middle";
@@ -111,29 +111,29 @@ const Te = (s, a, e, t = "remove") => {
111
111
  a.tableSize.value = "large";
112
112
  break;
113
113
  }
114
- }, ja = (s, a) => {
115
- a.selectable.value = !a.selectable.value, a.selectable.value || (a.selectKeys.value = [], a.selectRows.value = []);
116
114
  }, Qa = (s, a) => {
115
+ a.selectable.value = !a.selectable.value, a.selectable.value || (a.selectKeys.value = [], a.selectRows.value = []);
116
+ }, qa = (s, a) => {
117
117
  a.rowExpand.value = !a.rowExpand.value;
118
118
  }, Ie = (s, a) => {
119
119
  a.selectable.value = !a.selectable.value;
120
120
  }, V = (s, a, e, t, n) => {
121
- (!s.confirm || n) && s.click && (a ? s.click(a, e, t) : s.click(null, e, t)), Ga(s);
122
- }, qa = (s, a) => {
121
+ (!s.confirm || n) && s.click && (a ? s.click(a, e, t) : s.click(null, e, t)), Ja(s);
122
+ }, Ga = (s, a) => {
123
123
  a.selectable.value = !a.selectable.value;
124
- }, He = () => {
124
+ }, je = () => {
125
125
  const s = me();
126
126
  s.setFullscreen(!s.fullscreen);
127
- }, Ga = (s, a) => {
128
- (s.icons || s.labels) && (s.iconStatus = s.iconStatus || 0, s.iconStatus += 1, s.labels && s.labels.length && (s.label = s.labels[s.iconStatus % s.labels.length]), s.icons && s.icons.length && (s.icon = s.icons[s.iconStatus % s.icons.length]));
129
127
  }, Ja = (s, a) => {
128
+ (s.icons || s.labels) && (s.iconStatus = s.iconStatus || 0, s.iconStatus += 1, s.labels && s.labels.length && (s.label = s.labels[s.iconStatus % s.labels.length]), s.icons && s.icons.length && (s.icon = s.icons[s.iconStatus % s.icons.length]));
129
+ }, Xa = (s, a) => {
130
130
  a ? delete s.visible : s.visible = !1;
131
131
  }, De = [
132
132
  {
133
133
  key: "Reload",
134
134
  label: "刷新表格",
135
135
  icon: "icon-reload",
136
- click: Ka
136
+ click: Wa
137
137
  },
138
138
  {
139
139
  key: "Query",
@@ -141,20 +141,20 @@ const Te = (s, a, e, t = "remove") => {
141
141
  labels: ["展开搜索栏", "折叠搜索栏"],
142
142
  icon: "icon-search",
143
143
  iconStatus: 0,
144
- click: Wa
144
+ click: Ha
145
145
  },
146
146
  {
147
147
  key: "RowHeight",
148
148
  label: "行高调整",
149
149
  icon: "icon-row-height",
150
- click: Ha
150
+ click: ja
151
151
  },
152
152
  {
153
153
  key: "tool.multiple.checkbox",
154
154
  label: "显示多选框",
155
155
  labels: ["显示多选框", "隐藏多选框"],
156
156
  icon: "icon-checkbox",
157
- click: ja
157
+ click: Qa
158
158
  },
159
159
  {
160
160
  key: "tool.expand.rows",
@@ -163,7 +163,7 @@ const Te = (s, a, e, t = "remove") => {
163
163
  icon: "icon-row-collapse",
164
164
  iconStatus: 0,
165
165
  icons: ["icon-row-collapse", "icon-row-expand"],
166
- click: Qa
166
+ click: qa
167
167
  },
168
168
  {
169
169
  key: "tool.export.excel",
@@ -190,7 +190,7 @@ const Te = (s, a, e, t = "remove") => {
190
190
  {
191
191
  key: "tool.export.pdf.selected",
192
192
  label: "选中的记录",
193
- click: qa
193
+ click: Ga
194
194
  }
195
195
  ]
196
196
  },
@@ -210,9 +210,9 @@ const Te = (s, a, e, t = "remove") => {
210
210
  icon: "icon-fullscreen",
211
211
  iconStatus: 0,
212
212
  icons: ["icon-fullscreen", "icon-exitscreen"],
213
- click: He
213
+ click: je
214
214
  }
215
- ], Xa = (s) => {
215
+ ], Za = (s) => {
216
216
  if (!s.tools || s.tools.length > 0) {
217
217
  const a = [];
218
218
  return s.tools ? a.push(...s.tools) : a.push(...De), { tools: ye(De, 0, a).buttons };
@@ -221,8 +221,8 @@ const Te = (s, a, e, t = "remove") => {
221
221
  tools: []
222
222
  };
223
223
  };
224
- var Za = /* @__PURE__ */ ((s) => (s.SYS_CONFIG = "SYS_CONFIG_", s.APP_MENU = "APP_MENU_", s.DICT_TYPE = "DICT_TYPE_", s.HOST_INFO = "HOST_INFO_", s.APP_PERMITS = "APP_PERMITS_", s.USER_SETTINGS = "USER_SETTINGS_", s.DICT_DATA = "DICT_DATA_", s.COMMON_OPTIONS = "COMMON_OPTIONS_", s))(Za || {});
225
- class je {
224
+ var et = /* @__PURE__ */ ((s) => (s.SYS_CONFIG = "SYS_CONFIG_", s.APP_MENU = "APP_MENU_", s.DICT_TYPE = "DICT_TYPE_", s.HOST_INFO = "HOST_INFO_", s.APP_PERMITS = "APP_PERMITS_", s.USER_SETTINGS = "USER_SETTINGS_", s.DICT_DATA = "DICT_DATA_", s.COMMON_OPTIONS = "COMMON_OPTIONS_", s))(et || {});
225
+ class Qe {
226
226
  /**
227
227
  * 设置缓存数据(带服务器时间)
228
228
  */
@@ -244,7 +244,7 @@ class je {
244
244
  */
245
245
  static getData(a) {
246
246
  const e = re.get({ key: a, storage: "local" });
247
- return e && je.isTimedData(e) ? e.data : e ?? null;
247
+ return e && Qe.isTimedData(e) ? e.data : e ?? null;
248
248
  }
249
249
  /**
250
250
  * 清除缓存
@@ -277,9 +277,9 @@ class je {
277
277
  return a && typeof a == "object" && "data" in a && "lastTime" in a && typeof a.lastTime == "number";
278
278
  }
279
279
  }
280
- async function qt() {
280
+ async function Gt() {
281
281
  try {
282
- const s = await Re(
282
+ const s = await Ae(
283
283
  {
284
284
  api: "PLATFORM_API",
285
285
  url: "/api/SysCacheSvr/getLastTime",
@@ -287,7 +287,7 @@ async function qt() {
287
287
  },
288
288
  {}
289
289
  );
290
- if ((s == null ? void 0 : s.status) === Ae.SUCCESS) {
290
+ if ((s == null ? void 0 : s.status) === Oe.SUCCESS) {
291
291
  const a = s.data;
292
292
  Object.keys(a).forEach((e) => {
293
293
  const t = a[e];
@@ -310,8 +310,8 @@ async function qt() {
310
310
  console.error("检查缓存更新失败", s);
311
311
  }
312
312
  }
313
- const Gt = async (s, a) => {
314
- const e = await We(s, a);
313
+ const Jt = async (s, a) => {
314
+ const e = await He(s, a);
315
315
  if (e.success)
316
316
  return {
317
317
  blobUrl: e.blobUrl,
@@ -320,9 +320,9 @@ const Gt = async (s, a) => {
320
320
  // 不再返回blob对象,使用URL即可
321
321
  };
322
322
  throw new Error(e.error || "CSV转Excel失败");
323
- }, Jt = async (s, a) => {
323
+ }, Xt = async (s, a) => {
324
324
  try {
325
- const t = new TextDecoder("utf-8").decode(s), n = await We(t, a);
325
+ const t = new TextDecoder("utf-8").decode(s), n = await He(t, a);
326
326
  return {
327
327
  success: n.success,
328
328
  blobUrl: n.blobUrl,
@@ -337,9 +337,9 @@ const Gt = async (s, a) => {
337
337
  error: e instanceof Error ? e.message : "未知错误"
338
338
  };
339
339
  }
340
- }, Xt = async (s, a, e) => {
340
+ }, Zt = async (s, a, e) => {
341
341
  try {
342
- const n = (await import("@json2csv/plainjs")).Parser, i = Qe(s), c = a.filter((v) => v.visible !== !1 && v.export !== !1), f = c.map((v) => ({
342
+ const n = (await import("@json2csv/plainjs")).Parser, i = qe(s), c = a.filter((v) => v.visible !== !1 && v.export !== !1), f = c.map((v) => ({
343
343
  label: v.title,
344
344
  value: v.dataIndex || v.key || ""
345
345
  })), d = e.map((v) => {
@@ -349,46 +349,51 @@ const Gt = async (s, a) => {
349
349
  y && h.customRender && (u[y] = h.customRender(v[y], v));
350
350
  }), u;
351
351
  }), p = new n({ fields: f }).parse(d), r = new Blob([`\uFEFF${p}`], { type: "text/csv" });
352
- Ke(r, i);
352
+ We(r, i);
353
353
  } catch (t) {
354
354
  console.error("导出失败:", t), he.error("文件导出失败,请稍后重试");
355
355
  }
356
- }, Qe = (s) => {
356
+ }, qe = (s) => {
357
357
  const a = /\{([^}]+)\}/g;
358
358
  return s.replace(a, (e, t) => fe().format(t));
359
- }, Zt = async (s, a, e, t) => {
359
+ }, el = async (s, a, e, t) => {
360
360
  try {
361
- const i = (await import("@json2csv/plainjs")).Parser, c = Qe(s), f = a.filter((r) => r.visible !== !1), d = f.map((r) => ({
361
+ const i = (await import("@json2csv/plainjs")).Parser, c = qe(s), f = a.filter((r) => r.visible !== !1), d = f.map((r) => ({
362
362
  label: r.title,
363
363
  value: r.dataIndex || r.key || ""
364
364
  }));
365
365
  let o = e.page, p = e.gridQuery;
366
- return t.api || (t.api = o.api), t.authorize === void 0 && (t.authorize = o.authorize), e.isGridLoading.value = !0, Re(t, p).then((r) => {
367
- if (e.isGridLoading.value = !1, (r == null ? void 0 : r.status) === Ae.SUCCESS && r.data) {
368
- const u = r.data.map((A) => {
369
- const x = { ...A };
370
- return f.forEach((P) => {
371
- const B = P.dataIndex || P.key;
372
- B && P.customRender && (x[B] = P.customRender(A[B], A));
373
- }), x;
374
- }), y = new i({ fields: d }).parse(u), I = new Blob([`\uFEFF${y}`], { type: "text/csv" });
375
- Ke(I, c);
366
+ return t.api || (t.api = o.api), t.authorize === void 0 && (t.authorize = o.authorize), e.isGridLoading.value = !0, Ae(t, p).then((r) => {
367
+ if (e.isGridLoading.value = !1, (r == null ? void 0 : r.status) === Oe.SUCCESS) {
368
+ if (r.data) {
369
+ const u = r.data.map((A) => {
370
+ const x = { ...A };
371
+ return f.forEach((E) => {
372
+ const B = E.dataIndex || E.key;
373
+ B && E.customRender && (x[B] = E.customRender(A[B], A));
374
+ }), x;
375
+ }), y = new i({ fields: d }).parse(u), I = new Blob([`\uFEFF${y}`], { type: "text/csv" });
376
+ We(I, c);
377
+ }
378
+ } else if ((r == null ? void 0 : r.errno) == Xe) {
379
+ Ee().logout(!1);
380
+ return;
376
381
  }
377
382
  });
378
383
  } catch (n) {
379
384
  console.error("导出失败:", n), he.error("文件导出失败,请稍后重试");
380
385
  }
381
- }, el = /* @__PURE__ */ C({
386
+ }, al = /* @__PURE__ */ C({
382
387
  __name: "fullscreen",
383
388
  setup(s) {
384
389
  const a = me();
385
390
  return (e, t) => (m(), b(U, {
386
- onClick: ae(l(He), ["stop"]),
391
+ onClick: ae(l(je), ["stop"]),
387
392
  icon: l(a).fullscreen ? "icon-exitscreen" : "icon-fullscreen",
388
393
  class: "w-[17px] h-[17px]"
389
394
  }, null, 8, ["onClick", "icon"]));
390
395
  }
391
- }), et = { class: "ml-2" }, at = /* @__PURE__ */ C({
396
+ }), at = { class: "ml-2" }, tt = /* @__PURE__ */ C({
392
397
  inheritAttrs: !1,
393
398
  __name: "helper",
394
399
  props: {
@@ -398,16 +403,16 @@ const Gt = async (s, a) => {
398
403
  },
399
404
  setup(s) {
400
405
  const a = X();
401
- return (e, t) => (m(), b(l(Sa), { placement: "topRight" }, {
406
+ return (e, t) => (m(), b(l(Ca), { placement: "topRight" }, {
402
407
  content: g(() => [
403
408
  D(e.$slots, "default", {}, () => [
404
409
  $("div", {
405
- class: E(["text-[14px]", [e.maxWidth]])
410
+ class: P(["text-[14px]", [e.maxWidth]])
406
411
  }, F(e.text), 3)
407
412
  ])
408
413
  ]),
409
414
  default: g(() => [
410
- $("span", et, [
415
+ $("span", at, [
411
416
  w(U, N({
412
417
  icon: "icon-question-circle",
413
418
  class: ["text-[#888]", [e.size ? "w-" + e.size + " h-" + e.size : "w-5 h-5"]]
@@ -417,7 +422,7 @@ const Gt = async (s, a) => {
417
422
  _: 3
418
423
  }));
419
424
  }
420
- }), al = /* @__PURE__ */ C({
425
+ }), tl = /* @__PURE__ */ C({
421
426
  __name: "layoutIcon",
422
427
  props: {
423
428
  icon: {
@@ -428,8 +433,8 @@ const Gt = async (s, a) => {
428
433
  }
429
434
  },
430
435
  setup(s) {
431
- const a = s, t = Xe({
432
- iconUrl: `${ba.MICROLAYOUT_ICONS}`,
436
+ const a = s, t = Ze({
437
+ iconUrl: `${_a.MICROLAYOUT_ICONS}`,
433
438
  monoColor: !0,
434
439
  icon: a.icon,
435
440
  icons: a.icons
@@ -441,7 +446,7 @@ const Gt = async (s, a) => {
441
446
  class: ["align-middle"]
442
447
  }, n.$attrs), null, 16, ["icon", "icons"])) : k("", !0);
443
448
  }
444
- }), tt = { class: "hover:bg-gray-200 w-[24px] h-[24px] rounded-md" }, tl = /* @__PURE__ */ C({
449
+ }), lt = { class: "hover:bg-gray-200 w-[24px] h-[24px] rounded-md" }, ll = /* @__PURE__ */ C({
445
450
  __name: "index",
446
451
  props: {
447
452
  saveText: {},
@@ -452,7 +457,7 @@ const Gt = async (s, a) => {
452
457
  drawerSaveAs: { type: Function }
453
458
  },
454
459
  setup(s) {
455
- const { useToken: a } = Le, { token: e } = a(), t = _(!1), n = s, i = n.editorCtrl;
460
+ const { useToken: a } = ze, { token: e } = a(), t = _(!1), n = s, i = n.editorCtrl;
456
461
  ge(j.EditorControl, i), T(
457
462
  () => i.visible.value,
458
463
  (o) => {
@@ -464,11 +469,11 @@ const Gt = async (s, a) => {
464
469
  const c = () => {
465
470
  n.drawerSave ? n.drawerSave() : i && Pe(i);
466
471
  }, f = () => {
467
- n.drawerSaveAs ? n.drawerSaveAs() : i && Ze(i);
472
+ n.drawerSaveAs ? n.drawerSaveAs() : i && ea(i);
468
473
  }, d = () => {
469
- ea(i);
474
+ aa(i);
470
475
  };
471
- return (o, p) => (m(), b(l(Ca), {
476
+ return (o, p) => (m(), b(l(Ta), {
472
477
  open: t.value,
473
478
  "onUpdate:open": p[0] || (p[0] = (r) => t.value = r),
474
479
  "get-container": !1,
@@ -492,7 +497,7 @@ const Gt = async (s, a) => {
492
497
  onClose: d
493
498
  }, {
494
499
  extra: g(() => [
495
- $("div", tt, [
500
+ $("div", lt, [
496
501
  w(l(U), {
497
502
  class: "top-[-2px] left-[2px] w-6 h-6",
498
503
  icon: "icon-new",
@@ -549,7 +554,7 @@ const Gt = async (s, a) => {
549
554
  _: 3
550
555
  }, 8, ["open", "header-style"]));
551
556
  }
552
- }), ll = /* @__PURE__ */ C({
557
+ }), sl = /* @__PURE__ */ C({
553
558
  __name: "index",
554
559
  props: {
555
560
  labelWidth: {},
@@ -560,7 +565,7 @@ const Gt = async (s, a) => {
560
565
  const a = s, e = a.editorCtrl ?? ne(j.EditorControl, void 0);
561
566
  return ge(j.LabelWidth, a.labelWidth), (t, n) => {
562
567
  const i = le("submit");
563
- return Q((m(), b(l(ze), {
568
+ return Q((m(), b(l(Ue), {
564
569
  "label-col": { flex: a.labelWidth ?? "85px" },
565
570
  "wrapper-col": {
566
571
  flex: a.wrapperWidth ?? "1 0 280px"
@@ -584,10 +589,10 @@ const Gt = async (s, a) => {
584
589
  ]);
585
590
  };
586
591
  }
587
- }), lt = {
592
+ }), st = {
588
593
  key: 0,
589
594
  class: "flex-grow"
590
- }, st = { class: "w-8 mt-[-2px]" }, sl = /* @__PURE__ */ C({
595
+ }, rt = { class: "w-8 mt-[-2px]" }, rl = /* @__PURE__ */ C({
591
596
  inheritAttrs: !1,
592
597
  __name: "formItem",
593
598
  props: {
@@ -599,7 +604,7 @@ const Gt = async (s, a) => {
599
604
  bottomMargin: {}
600
605
  },
601
606
  setup(s) {
602
- const a = s, e = X(), t = ne(j.EditorControl, void 0), n = ne(j.LabelWidth, "85px") ?? "85px", i = Ee(a, t), c = _(!1);
607
+ const a = s, e = X(), t = ne(j.EditorControl, void 0), n = ne(j.LabelWidth, "85px") ?? "85px", i = Fe(a, t), c = _(!1);
603
608
  setTimeout(() => {
604
609
  c.value = !0;
605
610
  }, 30);
@@ -616,31 +621,31 @@ const Gt = async (s, a) => {
616
621
  if (!a.rule)
617
622
  return !1;
618
623
  const o = f(a.rule.split("."), (p = t == null ? void 0 : t.formRules) == null ? void 0 : p.value);
619
- return o ? o.required ?? !0 : (Ta.error(`"${a.label}" 的验证规则 \`${a.rule}\` 不存在`), i.value.errClass = "text-[#ff4d4f]", i.value.msg = `规则 \`${a.rule}\` 不存在,请检查代码!`, !0);
624
+ return o ? (o.required || (i.value.errClass = "", i.value.msg = ""), o.required ?? !0) : ($a.error(`"${a.label}" 的验证规则 \`${a.rule}\` 不存在`), i.value.errClass = "text-[#ff4d4f]", i.value.msg = `规则 \`${a.rule}\` 不存在,请检查代码!`, !0);
620
625
  });
621
626
  return (o, p) => (m(), S("div", {
622
- class: E(["relative", o.bottomMargin ? o.bottomMargin : "mb-1"])
627
+ class: P(["relative", o.bottomMargin ? o.bottomMargin : "mb-1"])
623
628
  }, [
624
- c.value ? (m(), b(l(Ue), N({
629
+ c.value ? (m(), b(l(Ve), N({
625
630
  key: 0,
626
631
  required: d.value,
627
632
  class: ["relative", [o.nextLine ? "mb-0" : o.rule ? "" : "mb-3"]]
628
633
  }, l(e)), {
629
634
  label: g(() => [
630
635
  $("span", {
631
- class: E([l(i).errClass ? "text-[#ff4d4f]" : "", "w-full"])
636
+ class: P([l(i).errClass ? "text-[#ff4d4f]" : "", "w-full"])
632
637
  }, F(o.label), 3)
633
638
  ]),
634
639
  default: g(() => [
635
640
  $("div", {
636
- class: E(["flex items-center", o.width ? o.width : "w-full"])
641
+ class: P(["flex items-center", o.width ? o.width : "w-full"])
637
642
  }, [
638
- o.nextLine ? k("", !0) : (m(), S("div", lt, [
643
+ o.nextLine ? k("", !0) : (m(), S("div", st, [
639
644
  D(o.$slots, "default")
640
645
  ])),
641
- $("div", st, [
646
+ $("div", rt, [
642
647
  D(o.$slots, "helper", {}, () => [
643
- o.helper ? (m(), b(l(at), {
648
+ o.helper ? (m(), b(l(tt), {
644
649
  key: 0,
645
650
  text: o.helper
646
651
  }, null, 8, ["text"])) : k("", !0)
@@ -652,7 +657,7 @@ const Gt = async (s, a) => {
652
657
  }, 16, ["required", "class"])) : k("", !0),
653
658
  o.nextLine ? (m(), S("div", {
654
659
  key: 1,
655
- class: E(["w-[95%] flex items-center relative", [o.nextLine ? o.rule ? "mb-7" : "mb-3" : ""]])
660
+ class: P(["w-[95%] flex items-center relative", [o.nextLine ? o.rule ? "mb-7" : "mb-3" : ""]])
656
661
  }, [
657
662
  D(o.$slots, "default")
658
663
  ], 2)) : k("", !0),
@@ -663,7 +668,7 @@ const Gt = async (s, a) => {
663
668
  }, F(l(i).msg), 5)) : k("", !0)
664
669
  ], 2));
665
670
  }
666
- }), rt = { class: "w-1/3 relative mb-1" }, ot = { class: "flex items-center w-[90%]" }, nt = { class: "flex-grow pl-1" }, it = {
671
+ }), ot = { class: "w-1/3 relative mb-1" }, nt = { class: "flex items-center w-[90%]" }, it = { class: "flex-grow pl-1" }, ct = {
667
672
  key: 0,
668
673
  class: "absolute bottom-[3px] left-[85px] text-[12px] text-[#ff4d4fcc] block"
669
674
  }, pe = /* @__PURE__ */ C({
@@ -675,18 +680,18 @@ const Gt = async (s, a) => {
675
680
  rule: {}
676
681
  },
677
682
  setup(s) {
678
- const a = s, e = X(), t = ne(j.EditorControl, void 0), n = Ee(a, t);
679
- return (i, c) => (m(), S("div", rt, [
680
- w(l(Ue), N({
683
+ const a = s, e = X(), t = ne(j.EditorControl, void 0), n = Fe(a, t);
684
+ return (i, c) => (m(), S("div", ot, [
685
+ w(l(Ve), N({
681
686
  required: i.rule !== void 0,
682
687
  class: "w-[90%] relative"
683
688
  }, l(e), {
684
689
  class: [i.rule ? "" : "mb-3", i.width],
685
690
  labelCol: { span: 6 }
686
- }), Oe({
691
+ }), Le({
687
692
  default: g(() => [
688
- $("div", ot, [
689
- $("div", nt, [
693
+ $("div", nt, [
694
+ $("div", it, [
690
695
  D(i.$slots, "default")
691
696
  ])
692
697
  ])
@@ -697,16 +702,16 @@ const Gt = async (s, a) => {
697
702
  name: "label",
698
703
  fn: g(() => [
699
704
  $("span", {
700
- class: E([l(n).errClass ? "text-[#ff4d4f]" : "", "w-full"])
705
+ class: P([l(n).errClass ? "text-[#ff4d4f]" : "", "w-full"])
701
706
  }, F(i.label), 3)
702
707
  ]),
703
708
  key: "0"
704
709
  } : void 0
705
710
  ]), 1040, ["required", "class"]),
706
- l(n).msg ? (m(), S("span", it, F(l(n).msg), 1)) : k("", !0)
711
+ l(n).msg ? (m(), S("span", ct, F(l(n).msg), 1)) : k("", !0)
707
712
  ]));
708
713
  }
709
- }), rl = /* @__PURE__ */ C({
714
+ }), ol = /* @__PURE__ */ C({
710
715
  __name: "index",
711
716
  props: {
712
717
  search: {},
@@ -720,7 +725,7 @@ const Gt = async (s, a) => {
720
725
  for (let y = 0; y < u.length; y++)
721
726
  typeof u[y].type == "object" && h++;
722
727
  return h;
723
- }, d = _a(), o = () => {
728
+ }, d = xa(), o = () => {
724
729
  i.value = 0, c.value = 0, d.default && (i.value = f(d.default({}))), e.gridCtrl.searchBar && d.control && (c.value = f(d.control({}))), n.value = 2 - (i.value + c.value) % 3;
725
730
  };
726
731
  T(
@@ -763,7 +768,7 @@ const Gt = async (s, a) => {
763
768
  };
764
769
  return (u, h) => {
765
770
  const y = le("submit");
766
- return i.value + c.value > 0 ? Q((m(), b(l(ze), {
771
+ return i.value + c.value > 0 ? Q((m(), b(l(Ue), {
767
772
  key: 0,
768
773
  "label-col": { flex: "60px" },
769
774
  style: {
@@ -825,7 +830,7 @@ const Gt = async (s, a) => {
825
830
  ]) : k("", !0);
826
831
  };
827
832
  }
828
- }), ct = /* @__PURE__ */ C({
833
+ }), ut = /* @__PURE__ */ C({
829
834
  __name: "tableOperate",
830
835
  props: {
831
836
  record: {},
@@ -840,7 +845,7 @@ const Gt = async (s, a) => {
840
845
  visible: !0,
841
846
  role: ["Super", "Admin"],
842
847
  permit: ":edit",
843
- click: () => aa(e, a.record)
848
+ click: () => ta(e, a.record)
844
849
  },
845
850
  {
846
851
  key: "Delete",
@@ -852,7 +857,7 @@ const Gt = async (s, a) => {
852
857
  permit: ":delete",
853
858
  confirm: !0,
854
859
  confirmText: "是否删除此记录?",
855
- click: () => ta(e, a.record)
860
+ click: () => la(e, a.record)
856
861
  }
857
862
  ], { buttons: i, menus: c } = ye(n, 0, e.operates), f = (d) => {
858
863
  if (typeof d.disabled == "boolean")
@@ -881,7 +886,7 @@ const Gt = async (s, a) => {
881
886
  (m(!0), S(R, null, z(l(i), (r) => (m(), S(R, {
882
887
  key: r.key
883
888
  }, [
884
- l(G)(r, a.record) ? (m(), b(l($a), {
889
+ l(G)(r, a.record) ? (m(), b(l(Ia), {
885
890
  key: 0,
886
891
  disabled: f(r) || !r.confirm,
887
892
  cancelText: "否",
@@ -892,7 +897,7 @@ const Gt = async (s, a) => {
892
897
  onConfirm: (v) => l(V)(r, l(e).page, l(e), a.record, !0)
893
898
  }, {
894
899
  default: g(() => [
895
- l(G)(r, a.record) ? Q((m(), b(l(Ve), {
900
+ l(G)(r, a.record) ? Q((m(), b(l(Ye), {
896
901
  key: r.key,
897
902
  type: r.type ?? "text",
898
903
  danger: r.danger,
@@ -919,7 +924,7 @@ const Gt = async (s, a) => {
919
924
  autoInsertSpaceInButton: !1
920
925
  }, {
921
926
  default: g(() => [
922
- l(c).length > 0 ? (m(), b(l(Ia), {
927
+ l(c).length > 0 ? (m(), b(l(Da), {
923
928
  key: 0,
924
929
  size: "small"
925
930
  }, {
@@ -963,13 +968,13 @@ const Gt = async (s, a) => {
963
968
  });
964
969
  };
965
970
  }
966
- }), ut = { class: "inline-flex [&>div]:ml-[-1px] first:[&>div]:ml-0" }, dt = /* @__PURE__ */ C({
971
+ }), dt = { class: "inline-flex [&>div]:ml-[-1px] first:[&>div]:ml-0" }, pt = /* @__PURE__ */ C({
967
972
  __name: "icontool",
968
973
  props: {
969
974
  gridCtrl: {}
970
975
  },
971
976
  setup(s) {
972
- const a = s, e = a.gridCtrl, { tools: t } = Xa(a.gridCtrl), n = me();
977
+ const a = s, e = a.gridCtrl, { tools: t } = Za(a.gridCtrl), n = me();
973
978
  T(
974
979
  () => e.selectable.value,
975
980
  (f) => {
@@ -980,14 +985,14 @@ const Gt = async (s, a) => {
980
985
  T(
981
986
  () => e.columns.value,
982
987
  (f) => {
983
- i.value = Fe(f, !0);
988
+ i.value = Ne(f, !0);
984
989
  },
985
990
  { deep: !0, immediate: !0 }
986
991
  );
987
992
  const c = () => {
988
993
  e.columns.value.splice(0, e.columns.value.length, ...i.value), n.setTableColumns(ce.currentRoute.value.path, e.columns.value);
989
994
  };
990
- return (f, d) => (m(), S("div", ut, [
995
+ return (f, d) => (m(), S("div", dt, [
991
996
  (m(!0), S(R, null, z(l(t), (o, p) => (m(), S(R, {
992
997
  key: o.key
993
998
  }, [
@@ -998,9 +1003,9 @@ const Gt = async (s, a) => {
998
1003
  }, {
999
1004
  overlay: g(() => [
1000
1005
  $("div", {
1001
- class: E(["min-w-[100px] bg-white rounded shadow-md p-4", o.dropdownClass])
1006
+ class: P(["min-w-[100px] bg-white rounded shadow-md p-4", o.dropdownClass])
1002
1007
  }, [
1003
- o.dropdown === "headset" ? (m(), b(l(Ua), {
1008
+ o.dropdown === "headset" ? (m(), b(l(Va), {
1004
1009
  key: 0,
1005
1010
  modelValue: i.value,
1006
1011
  "onUpdate:modelValue": d[1] || (d[1] = (r) => i.value = r),
@@ -1016,11 +1021,11 @@ const Gt = async (s, a) => {
1016
1021
  class: "flex items-center mb-2 last:mb-0 select-none"
1017
1022
  }, [
1018
1023
  d[2] || (d[2] = $("span", { class: "drag-handle mr-2 text-gray-400 hover:text-gray-600 cursor-move" }, "⋮⋮", -1)),
1019
- w(l(Da), {
1024
+ w(l(Ea), {
1020
1025
  checked: r.visible !== !1,
1021
1026
  onChange: ae(
1022
1027
  (v) => {
1023
- l(Ja)(r, v.target.checked);
1028
+ l(Xa)(r, v.target.checked);
1024
1029
  },
1025
1030
  ["stop", "prevent"]
1026
1031
  ),
@@ -1039,7 +1044,7 @@ const Gt = async (s, a) => {
1039
1044
  ]),
1040
1045
  default: g(() => [
1041
1046
  w(l(O), {
1042
- class: E([
1047
+ class: P([
1043
1048
  "px-[8px] py-[2px] relative border-[#ccc] bg-[#fcfcfc] rounded-none text-[#666] hover:z-10",
1044
1049
  p === 0 ? "rounded-l-[5px]" : "",
1045
1050
  p === l(t).length - 1 ? "rounded-r-[5px]" : ""
@@ -1061,7 +1066,7 @@ const Gt = async (s, a) => {
1061
1066
  _: 2
1062
1067
  }, 1024)) : !o.children && l(G)(o) ? (m(), b(l(O), {
1063
1068
  key: 1,
1064
- class: E([
1069
+ class: P([
1065
1070
  "px-[8px] py-[2px] relative border-[#ccc] bg-[#fcfcfc] rounded-none text-[#666] hover:z-10",
1066
1071
  p === 0 ? "rounded-l-[5px]" : "",
1067
1072
  p === l(t).length - 1 ? "rounded-r-[5px]" : ""
@@ -1101,7 +1106,7 @@ const Gt = async (s, a) => {
1101
1106
  ]),
1102
1107
  default: g(() => [
1103
1108
  w(l(O), {
1104
- class: E([
1109
+ class: P([
1105
1110
  "!w-[46px] px-[5px] py-[2px] relative border-[#ccc] bg-[#fcfcfc] rounded-none text-[#666] hover:z-10",
1106
1111
  p === 0 ? "rounded-l-[5px]" : ""
1107
1112
  ]),
@@ -1125,7 +1130,7 @@ const Gt = async (s, a) => {
1125
1130
  ], 64))), 128))
1126
1131
  ]));
1127
1132
  }
1128
- }), pt = { class: "flex justify-between mb-[10px]" }, ft = { key: 1 }, vt = 3, mt = /* @__PURE__ */ C({
1133
+ }), ft = { class: "flex justify-between mb-[10px]" }, vt = { key: 1 }, mt = 3, ht = /* @__PURE__ */ C({
1129
1134
  __name: "index",
1130
1135
  props: {
1131
1136
  gridCtrl: {},
@@ -1142,7 +1147,7 @@ const Gt = async (s, a) => {
1142
1147
  role: ["Super", "Admin"],
1143
1148
  permit: ":new",
1144
1149
  // 默认仅受权限码控制
1145
- click: () => la(n)
1150
+ click: () => sa(n)
1146
1151
  }
1147
1152
  ], f = _([]), d = _([]);
1148
1153
  return T(
@@ -1154,7 +1159,7 @@ const Gt = async (s, a) => {
1154
1159
  var r;
1155
1160
  const { buttons: o, menus: p } = ye(
1156
1161
  c,
1157
- e.flat !== void 0 ? e.flat : vt,
1162
+ e.flat !== void 0 ? e.flat : mt,
1158
1163
  (r = e.buttons) == null ? void 0 : r.value
1159
1164
  );
1160
1165
  f.value.splice(0, f.value.length, ...o), d.value.splice(0, d.value.length, ...p);
@@ -1165,7 +1170,7 @@ const Gt = async (s, a) => {
1165
1170
  }
1166
1171
  ), (o, p) => {
1167
1172
  const r = le("auth");
1168
- return m(), S("div", pt, [
1173
+ return m(), S("div", ft, [
1169
1174
  w(l(te), null, {
1170
1175
  default: g(() => [
1171
1176
  (m(!0), S(R, null, z(f.value, (v) => Q((m(), b(l(O), {
@@ -1214,20 +1219,20 @@ const Gt = async (s, a) => {
1214
1219
  ]),
1215
1220
  _: 1
1216
1221
  })) : k("", !0),
1217
- f.value.length === 0 && d.value.length === 0 ? (m(), S("span", ft)) : k("", !0)
1222
+ f.value.length === 0 && d.value.length === 0 ? (m(), S("span", vt)) : k("", !0)
1218
1223
  ]),
1219
1224
  _: 1
1220
1225
  }),
1221
1226
  w(l(te), { class: "mr-1" }, {
1222
1227
  default: g(() => [
1223
- (m(), b(xa(dt), { "grid-ctrl": l(e) }, null, 8, ["grid-ctrl"]))
1228
+ (m(), b(ya(pt), { "grid-ctrl": l(e) }, null, 8, ["grid-ctrl"]))
1224
1229
  ]),
1225
1230
  _: 1
1226
1231
  })
1227
1232
  ]);
1228
1233
  };
1229
1234
  }
1230
- }), ol = /* @__PURE__ */ C({
1235
+ }), nl = /* @__PURE__ */ C({
1231
1236
  inheritAttrs: !1,
1232
1237
  __name: "index",
1233
1238
  props: {
@@ -1284,27 +1289,27 @@ const Gt = async (s, a) => {
1284
1289
  ), T(
1285
1290
  () => t.columns.value,
1286
1291
  () => {
1287
- o.value = Fe(t.columns.value);
1292
+ o.value = Ne(t.columns.value);
1288
1293
  },
1289
1294
  { deep: !0, immediate: !0 }
1290
1295
  );
1291
1296
  const v = _(!1);
1292
- return ya(() => {
1297
+ return ka(() => {
1293
1298
  v.value && t && (t.reload.value = !0);
1294
1299
  }), K(async () => {
1295
- ge(j.GridControl, t), t.tableData.value ? (f.value = t.tableData.value, t.total.value = f.value.length, d.value !== !1 && (d.value.total = t.total.value ?? 0)) : t.autoload !== !1 && (t.remotePage ? f.value = (await ke(t)).rows : f.value = await sa(t)), setTimeout(() => {
1300
+ ge(j.GridControl, t), t.tableData.value ? (f.value = t.tableData.value, t.total.value = f.value.length, d.value !== !1 && (d.value.total = t.total.value ?? 0)) : t.autoload !== !1 && (t.remotePage ? f.value = (await ke(t)).rows : f.value = await ra(t)), setTimeout(() => {
1296
1301
  v.value = !0;
1297
1302
  }, 50);
1298
1303
  }), (u, h) => {
1299
1304
  var I, A;
1300
1305
  const y = le("auth");
1301
1306
  return m(), S(R, null, [
1302
- (I = l(t).buttons) != null && I.value.length || (A = l(t).tools) != null && A.length ? (m(), b(mt, {
1307
+ (I = l(t).buttons) != null && I.value.length || (A = l(t).tools) != null && A.length ? (m(), b(ht, {
1303
1308
  key: 0,
1304
1309
  "grid-ctrl": l(t),
1305
1310
  "editor-ctrl": l(t).editor
1306
1311
  }, null, 8, ["grid-ctrl", "editor-ctrl"])) : k("", !0),
1307
- v.value ? (m(), b(l(Ye), N({
1312
+ v.value ? (m(), b(l(Ke), N({
1308
1313
  key: 1,
1309
1314
  class: "w-full min-h-[480px]",
1310
1315
  "row-key": a.primaryKey ?? l(t).primaryKey ?? "Id",
@@ -1318,20 +1323,20 @@ const Gt = async (s, a) => {
1318
1323
  bordered: ""
1319
1324
  }, l(e)), {
1320
1325
  bodyCell: g((x) => {
1321
- var P, B;
1326
+ var E, B;
1322
1327
  return [
1323
1328
  D(u.$slots, "bodyCell", {
1324
1329
  column: x == null ? void 0 : x.column,
1325
1330
  record: x == null ? void 0 : x.record
1326
1331
  }),
1327
- l(t) && ((P = x == null ? void 0 : x.column) == null ? void 0 : P.dataIndex) === "enabled" ? Q((m(), b(ra, {
1332
+ l(t) && ((E = x == null ? void 0 : x.column) == null ? void 0 : E.dataIndex) === "enabled" ? Q((m(), b(oa, {
1328
1333
  key: 0,
1329
1334
  checked: x.record.Enabled,
1330
1335
  "onUpdate:checked": (se) => x.record.Enabled = se,
1331
1336
  disabled: u.statusDisabled ? u.statusDisabled(x.record) : !1,
1332
- data: l(Ne).EnableDisable,
1333
- onClick: (se) => l(oa)(l(t), x.record),
1334
- class: E([
1337
+ data: l(Me).EnableDisable,
1338
+ onClick: (se) => l(na)(l(t), x.record),
1339
+ class: P([
1335
1340
  "w-[58px]",
1336
1341
  u.statusDisabled && u.statusDisabled(x.record) ? "cursor-not-allowed disabled" : ""
1337
1342
  ]),
@@ -1343,7 +1348,7 @@ const Gt = async (s, a) => {
1343
1348
  key: 1,
1344
1349
  record: x == null ? void 0 : x.record
1345
1350
  }, () => [
1346
- w(ct, {
1351
+ w(ut, {
1347
1352
  record: x == null ? void 0 : x.record,
1348
1353
  "grid-ctrl": l(t)
1349
1354
  }, null, 8, ["record", "grid-ctrl"])
@@ -1355,7 +1360,7 @@ const Gt = async (s, a) => {
1355
1360
  ], 64);
1356
1361
  };
1357
1362
  }
1358
- }), ht = { class: "flex items-center gap-1" }, gt = { class: "text-nowrap" }, nl = /* @__PURE__ */ C({
1363
+ }), gt = { class: "flex items-center gap-1" }, bt = { class: "text-nowrap" }, il = /* @__PURE__ */ C({
1359
1364
  __name: "index",
1360
1365
  props: {
1361
1366
  treeCtrl: {},
@@ -1396,7 +1401,7 @@ const Gt = async (s, a) => {
1396
1401
  key: "Id",
1397
1402
  value: "Id",
1398
1403
  icon: "Icon"
1399
- }), n.data.value ? i.value = oe(n.fieldMap, n.data.value) : n.autoload && Me(n);
1404
+ }), n.data.value ? i.value = oe(n.fieldMap, n.data.value) : n.autoload && Be(n);
1400
1405
  }), (p, r) => (m(), b(l(Pa), N({
1401
1406
  class: "w-full",
1402
1407
  "show-line": !0,
@@ -1413,27 +1418,27 @@ const Gt = async (s, a) => {
1413
1418
  key: v,
1414
1419
  icon: h
1415
1420
  }, () => [
1416
- $("div", ht, [
1421
+ $("div", gt, [
1417
1422
  w(l(U), { icon: h }, null, 8, ["icon"]),
1418
- $("span", gt, F(u), 1)
1423
+ $("span", bt, F(u), 1)
1419
1424
  ])
1420
1425
  ])
1421
1426
  ]),
1422
1427
  _: 3
1423
1428
  }, 16, ["tree-data", "expanded-keys", "selected-keys", "loading"]));
1424
1429
  }
1425
- }), il = /* @__PURE__ */ q(na, [["__scopeId", "data-v-62a24cf4"]]), bt = { class: "relative w-[248px] max-w-[248px]" }, _t = {
1430
+ }), cl = /* @__PURE__ */ q(ia, [["__scopeId", "data-v-62a24cf4"]]), _t = { class: "relative w-[248px] max-w-[248px]" }, xt = {
1426
1431
  key: 0,
1427
1432
  class: "absolute z-10 mt-[5px] mr-[10px] text-[#999] flex items-center"
1428
- }, xt = /* @__PURE__ */ C({
1433
+ }, yt = /* @__PURE__ */ C({
1429
1434
  inheritAttrs: !1,
1430
1435
  __name: "index",
1431
- props: ia,
1436
+ props: ca,
1432
1437
  emits: ["change", "update:labels", "update:value"],
1433
1438
  setup(s, { emit: a }) {
1434
1439
  var y, I, A;
1435
- const e = s, t = X(), n = L(), i = ca(e.url, e), c = e.optionCtrl ?? i.optionCtrl;
1436
- c.inputFactory = ka(n);
1440
+ const e = s, t = X(), n = L(), i = ua(e.url, e), c = e.optionCtrl ?? i.optionCtrl;
1441
+ c.inputFactory = wa(n);
1437
1442
  const f = _({
1438
1443
  ...c == null ? void 0 : c.url,
1439
1444
  url: ((y = c == null ? void 0 : c.url) == null ? void 0 : y.url) || "",
@@ -1458,13 +1463,13 @@ const Gt = async (s, a) => {
1458
1463
  },
1459
1464
  { immediate: !0, deep: !0 }
1460
1465
  );
1461
- const h = (x, P) => {
1462
- if (!P || P.length === 0) {
1466
+ const h = (x, E) => {
1467
+ if (!E || E.length === 0) {
1463
1468
  v("update:labels", []), v("update:value", []);
1464
1469
  return;
1465
1470
  }
1466
- const B = P.map((Ge) => Ge.value), se = fa(c, e, B), qe = va(se);
1467
- v("update:labels", qe), v("update:value", B), o != null && o.value.errClass && d && Y(d);
1471
+ const B = E.map((Je) => Je.value), se = va(c, e, B), Ge = ma(se);
1472
+ v("update:labels", Ge), v("update:value", B), o != null && o.value.errClass && d && Y(d);
1468
1473
  };
1469
1474
  return K(() => {
1470
1475
  f.value && !f.value.fieldMap && (f.value.fieldMap = {
@@ -1472,17 +1477,17 @@ const Gt = async (s, a) => {
1472
1477
  label: "Name",
1473
1478
  value: "Id",
1474
1479
  key: "Id"
1475
- }), c && ua(c.autoload, c, e);
1476
- }), wa(() => {
1477
- c && da(c, e);
1478
- }), (x, P) => {
1480
+ }), c && da(c.autoload, c, e);
1481
+ }), Sa(() => {
1482
+ c && pa(c, e);
1483
+ }), (x, E) => {
1479
1484
  var B;
1480
- return m(), S("div", bt, [
1481
- u.value.length ? k("", !0) : (m(), S("div", _t, [
1482
- w(l(pa), { class: "text-[#555] mx-[5px] !ml-[10px] !w-4 !h-4" }),
1483
- P[0] || (P[0] = $("span", null, "数据加载中...", -1))
1485
+ return m(), S("div", _t, [
1486
+ u.value.length ? k("", !0) : (m(), S("div", xt, [
1487
+ w(l(fa), { class: "text-[#555] mx-[5px] !ml-[10px] !w-4 !h-4" }),
1488
+ E[0] || (E[0] = $("span", null, "数据加载中...", -1))
1484
1489
  ])),
1485
- w(l(Ea), N({
1490
+ w(l(Fa), N({
1486
1491
  options: u.value,
1487
1492
  class: [(B = l(o)) == null ? void 0 : B.errClass],
1488
1493
  "allow-clear": !0,
@@ -1492,7 +1497,7 @@ const Gt = async (s, a) => {
1492
1497
  ]);
1493
1498
  };
1494
1499
  }
1495
- }), cl = /* @__PURE__ */ q(xt, [["__scopeId", "data-v-7f0def6e"]]), ul = /* @__PURE__ */ q(ma, [["__scopeId", "data-v-64193a41"]]);
1500
+ }), ul = /* @__PURE__ */ q(yt, [["__scopeId", "data-v-7f0def6e"]]), dl = /* @__PURE__ */ q(ha, [["__scopeId", "data-v-64193a41"]]);
1496
1501
  function ie() {
1497
1502
  return ie = Object.assign ? Object.assign.bind() : function(s) {
1498
1503
  for (var a = 1; a < arguments.length; a++) {
@@ -1502,7 +1507,7 @@ function ie() {
1502
1507
  return s;
1503
1508
  }, ie.apply(null, arguments);
1504
1509
  }
1505
- const yt = {
1510
+ const kt = {
1506
1511
  locale: "zh_CN",
1507
1512
  today: "今天",
1508
1513
  now: "此刻",
@@ -1529,7 +1534,7 @@ const yt = {
1529
1534
  nextDecade: "下一年代",
1530
1535
  previousCentury: "上一世纪",
1531
1536
  nextCentury: "下一世纪"
1532
- }, kt = {
1537
+ }, wt = {
1533
1538
  placeholder: "请选择时间",
1534
1539
  rangePlaceholder: ["开始时间", "结束时间"]
1535
1540
  }, ue = {
@@ -1544,11 +1549,11 @@ const yt = {
1544
1549
  rangeMonthPlaceholder: ["开始月份", "结束月份"],
1545
1550
  rangeQuarterPlaceholder: ["开始季度", "结束季度"],
1546
1551
  rangeWeekPlaceholder: ["开始周", "结束周"]
1547
- }, yt),
1548
- timePickerLocale: ie({}, kt)
1552
+ }, kt),
1553
+ timePickerLocale: ie({}, wt)
1549
1554
  };
1550
1555
  ue.lang.ok = "确定";
1551
- const dl = /* @__PURE__ */ C({
1556
+ const pl = /* @__PURE__ */ C({
1552
1557
  __name: "index",
1553
1558
  props: {
1554
1559
  valueFormat: {}
@@ -1559,8 +1564,8 @@ const dl = /* @__PURE__ */ C({
1559
1564
  }, c = _(a.valueFormat ?? "YYYY-MM-DD");
1560
1565
  return (f, d) => {
1561
1566
  var o;
1562
- return m(), b(l(Fa), {
1563
- class: E(["w-full", [((o = l(n)) == null ? void 0 : o.errClass) === "error" ? "error !border-red-300 shadow-[0_0_3px_0px_#ff4d4f]" : ""]]),
1567
+ return m(), b(l(Na), {
1568
+ class: P(["w-full", [((o = l(n)) == null ? void 0 : o.errClass) === "error" ? "error !border-red-300 shadow-[0_0_3px_0px_#ff4d4f]" : ""]]),
1564
1569
  placeholder: "请选择" + l(t),
1565
1570
  locale: l(ue),
1566
1571
  valueFormat: c.value,
@@ -1568,7 +1573,7 @@ const dl = /* @__PURE__ */ C({
1568
1573
  }, null, 8, ["class", "placeholder", "locale", "valueFormat"]);
1569
1574
  };
1570
1575
  }
1571
- }), wt = /* @__PURE__ */ C({
1576
+ }), St = /* @__PURE__ */ C({
1572
1577
  __name: "index",
1573
1578
  props: {
1574
1579
  value: {},
@@ -1613,7 +1618,7 @@ const dl = /* @__PURE__ */ C({
1613
1618
  placeholder: "请输入" + l(t),
1614
1619
  onBlur: i,
1615
1620
  onChange: p
1616
- }, r.$attrs), Oe({ _: 2 }, [
1621
+ }, r.$attrs), Le({ _: 2 }, [
1617
1622
  r.$slots.addonBefore ? {
1618
1623
  name: "addonBefore",
1619
1624
  fn: g(() => [
@@ -1631,7 +1636,7 @@ const dl = /* @__PURE__ */ C({
1631
1636
  ]), 1040, ["class", "value", "placeholder"]);
1632
1637
  };
1633
1638
  }
1634
- }), St = /* @__PURE__ */ C({
1639
+ }), Ct = /* @__PURE__ */ C({
1635
1640
  __name: "inputIcon",
1636
1641
  props: {
1637
1642
  value: {}
@@ -1650,7 +1655,7 @@ const dl = /* @__PURE__ */ C({
1650
1655
  (i) => {
1651
1656
  t("update:value", i);
1652
1657
  }
1653
- ), (i, c) => (m(), b(wt, N({
1658
+ ), (i, c) => (m(), b(St, N({
1654
1659
  value: n.value,
1655
1660
  "onUpdate:value": c[0] || (c[0] = (f) => n.value = f)
1656
1661
  }, i.$attrs), {
@@ -1663,7 +1668,7 @@ const dl = /* @__PURE__ */ C({
1663
1668
  _: 1
1664
1669
  }, 16, ["value"]));
1665
1670
  }
1666
- }), pl = /* @__PURE__ */ q(St, [["__scopeId", "data-v-358b82ef"]]), fl = /* @__PURE__ */ C({
1671
+ }), fl = /* @__PURE__ */ q(Ct, [["__scopeId", "data-v-358b82ef"]]), vl = /* @__PURE__ */ C({
1667
1672
  __name: "inputPassword",
1668
1673
  setup(s) {
1669
1674
  const { editorCtrl: a, labelText: e, errInfo: t } = L(), n = () => {
@@ -1671,7 +1676,7 @@ const dl = /* @__PURE__ */ C({
1671
1676
  };
1672
1677
  return (i, c) => {
1673
1678
  var f;
1674
- return m(), b(l(Na), N({
1679
+ return m(), b(l(Ma), N({
1675
1680
  class: ((f = l(t)) == null ? void 0 : f.errClass) === "error" ? ["error", "!border-red-300", "shadow-[0_0_3px_0px_#ff4d4f]"] : "",
1676
1681
  "allow-clear": !0,
1677
1682
  autocomplete: "new-password",
@@ -1680,7 +1685,7 @@ const dl = /* @__PURE__ */ C({
1680
1685
  }, i.$attrs), null, 16, ["class", "placeholder"]);
1681
1686
  };
1682
1687
  }
1683
- }), vl = /* @__PURE__ */ C({
1688
+ }), ml = /* @__PURE__ */ C({
1684
1689
  __name: "inputNumber",
1685
1690
  setup(s) {
1686
1691
  const { editorCtrl: a, labelText: e, errInfo: t } = L(), n = () => {
@@ -1688,7 +1693,7 @@ const dl = /* @__PURE__ */ C({
1688
1693
  };
1689
1694
  return (i, c) => {
1690
1695
  var f;
1691
- return m(), b(l(Ma), N({
1696
+ return m(), b(l(Ba), N({
1692
1697
  class: [[((f = l(t)) == null ? void 0 : f.errClass) === "error" ? "error !border-red-300 shadow-[0_0_3px_0px_#ff4d4f]" : ""], "w-[50%]"],
1693
1698
  onBlur: n,
1694
1699
  "allow-clear": !1,
@@ -1696,7 +1701,7 @@ const dl = /* @__PURE__ */ C({
1696
1701
  }, i.$attrs), null, 16, ["class", "placeholder"]);
1697
1702
  };
1698
1703
  }
1699
- }), Ct = { class: "flex flex-col gap-2" }, Tt = { key: 1 }, ml = /* @__PURE__ */ C({
1704
+ }), Tt = { class: "flex flex-col gap-2" }, $t = { key: 1 }, hl = /* @__PURE__ */ C({
1700
1705
  __name: "index",
1701
1706
  props: {
1702
1707
  value: {},
@@ -1744,13 +1749,13 @@ const dl = /* @__PURE__ */ C({
1744
1749
  }, p = () => {
1745
1750
  d();
1746
1751
  };
1747
- return (r, v) => (m(), S("div", Ct, [
1752
+ return (r, v) => (m(), S("div", Tt, [
1748
1753
  (m(!0), S(R, null, z(i.value, (u) => (m(), S("div", {
1749
1754
  key: u.id,
1750
1755
  class: "flex items-center gap-2"
1751
1756
  }, [
1752
1757
  $("div", {
1753
- class: E([r.fieldWidth ? `w-[${r.fieldWidth}%]` : "w-[33%]"])
1758
+ class: P([r.fieldWidth ? `w-[${r.fieldWidth}%]` : "w-[33%]"])
1754
1759
  }, [
1755
1760
  !r.selectList || r.selectList.length === 0 ? (m(), b(l(ee), {
1756
1761
  key: 0,
@@ -1761,7 +1766,7 @@ const dl = /* @__PURE__ */ C({
1761
1766
  placeholder: u.text || r.labelHolder || "配置名",
1762
1767
  onInput: p,
1763
1768
  disabled: !n.value
1764
- }, null, 8, ["value", "onUpdate:value", "title", "placeholder", "disabled"])) : (m(), S("div", Tt, [
1769
+ }, null, 8, ["value", "onUpdate:value", "title", "placeholder", "disabled"])) : (m(), S("div", $t, [
1765
1770
  w(l(ee), {
1766
1771
  value: u.text,
1767
1772
  "onUpdate:value": (h) => u.text = h,
@@ -1778,7 +1783,7 @@ const dl = /* @__PURE__ */ C({
1778
1783
  ], 2),
1779
1784
  v[0] || (v[0] = $("div", { class: "w-[3%]" }, "=", -1)),
1780
1785
  $("div", {
1781
- class: E([r.fieldWidth ? `w-[${97 - r.fieldWidth}%]` : "w-[64%]"])
1786
+ class: P([r.fieldWidth ? `w-[${97 - r.fieldWidth}%]` : "w-[64%]"])
1782
1787
  }, [
1783
1788
  w(l(ee), {
1784
1789
  value: u.value,
@@ -1789,7 +1794,7 @@ const dl = /* @__PURE__ */ C({
1789
1794
  }, null, 8, ["value", "onUpdate:value", "placeholder", "title"])
1790
1795
  ], 2)
1791
1796
  ]))), 128)),
1792
- n.value ? (m(), b(l(Ve), {
1797
+ n.value ? (m(), b(l(Ye), {
1793
1798
  key: 0,
1794
1799
  onClick: o,
1795
1800
  class: "mt-1 w-[80px] !text-[12px] text-[#666] bg-[#e6f7ff] border-[#b3e0ff] hover:bg-[#b3e0ff] hover:border-[#8abeff]",
@@ -1803,7 +1808,7 @@ const dl = /* @__PURE__ */ C({
1803
1808
  })) : k("", !0)
1804
1809
  ]));
1805
1810
  }
1806
- }), $t = /* @__PURE__ */ q(ha, [["__scopeId", "data-v-a10d18a5"]]), hl = /* @__PURE__ */ C({
1811
+ }), It = /* @__PURE__ */ q(ga, [["__scopeId", "data-v-a10d18a5"]]), gl = /* @__PURE__ */ C({
1807
1812
  __name: "radioStatus",
1808
1813
  props: {
1809
1814
  /**
@@ -1831,13 +1836,13 @@ const dl = /* @__PURE__ */ C({
1831
1836
  }
1832
1837
  },
1833
1838
  setup(s) {
1834
- const a = s, e = _(JSON.parse(JSON.stringify(Ne.getOptions(a.dataKey))));
1839
+ const a = s, e = _(JSON.parse(JSON.stringify(Me.getOptions(a.dataKey))));
1835
1840
  return a.all === !0 && e.value.unshift({
1836
1841
  label: "全部",
1837
1842
  value: a.allValue || [0, 1]
1838
- }), (t, n) => (m(), b($t, { data: e.value }, null, 8, ["data"]));
1843
+ }), (t, n) => (m(), b(It, { data: e.value }, null, 8, ["data"]));
1839
1844
  }
1840
- }), gl = /* @__PURE__ */ C({
1845
+ }), bl = /* @__PURE__ */ C({
1841
1846
  __name: "index",
1842
1847
  props: {
1843
1848
  startDate: {},
@@ -1864,8 +1869,8 @@ const dl = /* @__PURE__ */ C({
1864
1869
  };
1865
1870
  return (o, p) => {
1866
1871
  var r;
1867
- return m(), b(l(Ba), {
1868
- class: E([((r = l(i)) == null ? void 0 : r.errClass) === "error" ? ["error", "!border-red-300", "shadow-[0_0_3px_0px_#ff4d4f]"] : "", "w-full"]),
1872
+ return m(), b(l(Ra), {
1873
+ class: P([((r = l(i)) == null ? void 0 : r.errClass) === "error" ? ["error", "!border-red-300", "shadow-[0_0_3px_0px_#ff4d4f]"] : "", "w-full"]),
1869
1874
  locale: l(ue),
1870
1875
  "value-format": c.value,
1871
1876
  value: f.value,
@@ -1873,7 +1878,7 @@ const dl = /* @__PURE__ */ C({
1873
1878
  }, null, 8, ["class", "locale", "value-format", "value"]);
1874
1879
  };
1875
1880
  }
1876
- }), bl = /* @__PURE__ */ q(ga, [["__scopeId", "data-v-da38e265"]]), _l = /* @__PURE__ */ C({
1881
+ }), _l = /* @__PURE__ */ q(ba, [["__scopeId", "data-v-da38e265"]]), xl = /* @__PURE__ */ C({
1877
1882
  __name: "index",
1878
1883
  setup(s) {
1879
1884
  const { editorCtrl: a, labelText: e, errInfo: t } = L(), n = () => {
@@ -1881,7 +1886,7 @@ const dl = /* @__PURE__ */ C({
1881
1886
  };
1882
1887
  return (i, c) => {
1883
1888
  var f;
1884
- return m(), b(l(Ra), N({
1889
+ return m(), b(l(Aa), N({
1885
1890
  class: ((f = l(t)) == null ? void 0 : f.errClass) === "error" ? ["error", "!border-red-300", "shadow-[0_0_3px_0px_#ff4d4f]"] : "",
1886
1891
  "allow-clear": !0,
1887
1892
  placeholder: "请输入" + l(e),
@@ -1893,7 +1898,7 @@ const dl = /* @__PURE__ */ C({
1893
1898
  }, i.$attrs), null, 16, ["class", "placeholder"]);
1894
1899
  };
1895
1900
  }
1896
- }), xl = /* @__PURE__ */ C({
1901
+ }), yl = /* @__PURE__ */ C({
1897
1902
  __name: "index",
1898
1903
  props: {
1899
1904
  valueFormat: {}
@@ -1904,8 +1909,8 @@ const dl = /* @__PURE__ */ C({
1904
1909
  }, c = _(a.valueFormat ?? "HH:mm");
1905
1910
  return (f, d) => {
1906
1911
  var o;
1907
- return m(), b(l(Aa), {
1908
- class: E(["w-full", [((o = l(n)) == null ? void 0 : o.errClass) === "error" ? "error !border-red-300 shadow-[0_0_3px_0px_#ff4d4f]" : ""]]),
1912
+ return m(), b(l(Oa), {
1913
+ class: P(["w-full", [((o = l(n)) == null ? void 0 : o.errClass) === "error" ? "error !border-red-300 shadow-[0_0_3px_0px_#ff4d4f]" : ""]]),
1909
1914
  placeholder: "请选择" + l(t),
1910
1915
  locale: l(ue),
1911
1916
  valueFormat: c.value,
@@ -1913,7 +1918,7 @@ const dl = /* @__PURE__ */ C({
1913
1918
  }, null, 8, ["class", "placeholder", "locale", "valueFormat"]);
1914
1919
  };
1915
1920
  }
1916
- }), It = /* @__PURE__ */ C({
1921
+ }), Dt = /* @__PURE__ */ C({
1917
1922
  __name: "index",
1918
1923
  props: {
1919
1924
  autoload: { type: Boolean },
@@ -1939,7 +1944,7 @@ const dl = /* @__PURE__ */ C({
1939
1944
  if (t.value) {
1940
1945
  const r = n == null ? void 0 : n.page;
1941
1946
  if (t.value.api || (t.value.api = r == null ? void 0 : r.api), t.value.authorize === void 0 && (t.value.authorize = r == null ? void 0 : r.authorize), e.autoload) {
1942
- const v = await Be(n, {
1947
+ const v = await Re(n, {
1943
1948
  urlKey: "list",
1944
1949
  url: { ...t.value, url: t.value.url },
1945
1950
  loadingText: !1,
@@ -1950,27 +1955,27 @@ const dl = /* @__PURE__ */ C({
1950
1955
  }
1951
1956
  }), (r, v) => {
1952
1957
  var u;
1953
- return m(), b(l(Oa), N({
1958
+ return m(), b(l(La), N({
1954
1959
  class: ((u = l(c)) == null ? void 0 : u.errClass) === "error" ? ["error", "!border-red-300", "shadow-[0_0_3px_0px_#ff4d4f]"] : "",
1955
1960
  placeholder: "请输入" + l(i),
1956
1961
  targetKeys: o.value,
1957
1962
  onChange: p
1958
1963
  }, r.$attrs), {
1959
- children: g(({ direction: h, disabled: y, filteredItems: I, onItemSelectAll: A, onItemSelect: x, selectedKeys: P }) => [
1964
+ children: g(({ direction: h, disabled: y, filteredItems: I, onItemSelectAll: A, onItemSelect: x, selectedKeys: E }) => [
1960
1965
  D(r.$slots, "children", {
1961
1966
  direction: h,
1962
1967
  disabled: y,
1963
1968
  filteredItems: I,
1964
1969
  onItemSelectAll: A,
1965
1970
  onItemSelect: x,
1966
- selectedKeys: P
1971
+ selectedKeys: E
1967
1972
  })
1968
1973
  ]),
1969
1974
  _: 3
1970
1975
  }, 16, ["class", "placeholder", "targetKeys"]);
1971
1976
  };
1972
1977
  }
1973
- }), yl = /* @__PURE__ */ C({
1978
+ }), kl = /* @__PURE__ */ C({
1974
1979
  __name: "transferTable",
1975
1980
  props: {
1976
1981
  /**
@@ -2025,7 +2030,7 @@ const dl = /* @__PURE__ */ C({
2025
2030
  }), d = _([]);
2026
2031
  return K(async () => {
2027
2032
  if (n.value) {
2028
- const o = await Be(e.gridCtrl, {
2033
+ const o = await Re(e.gridCtrl, {
2029
2034
  urlKey: "list",
2030
2035
  url: { ...e.gridCtrl.gridUrl, url: e.gridCtrl.gridUrl.url },
2031
2036
  params: e.gridCtrl.gridQuery,
@@ -2033,7 +2038,7 @@ const dl = /* @__PURE__ */ C({
2033
2038
  });
2034
2039
  d.value = (o == null ? void 0 : o.data) ?? [];
2035
2040
  }
2036
- }), (o, p) => (m(), b(It, N({
2041
+ }), (o, p) => (m(), b(Dt, N({
2037
2042
  "data-source": d.value,
2038
2043
  "row-key": (r) => r[c.value],
2039
2044
  value: i.value,
@@ -2052,7 +2057,7 @@ const dl = /* @__PURE__ */ C({
2052
2057
  }
2053
2058
  }, o.$attrs), {
2054
2059
  children: g(({ filteredItems: r, onItemSelectAll: v, onItemSelect: u, selectedKeys: h }) => [
2055
- w(l(Ye), {
2060
+ w(l(Ke), {
2056
2061
  columns: s.gridCtrl.columns.value,
2057
2062
  "row-key": c.value,
2058
2063
  "row-selection": f({
@@ -2076,7 +2081,7 @@ const dl = /* @__PURE__ */ C({
2076
2081
  _: 1
2077
2082
  }, 16, ["data-source", "row-key", "value", "filter-option"]));
2078
2083
  }
2079
- }), Dt = /* @__PURE__ */ C({
2084
+ }), Et = /* @__PURE__ */ C({
2080
2085
  __name: "index",
2081
2086
  props: {
2082
2087
  multiple: {
@@ -2132,14 +2137,14 @@ const dl = /* @__PURE__ */ C({
2132
2137
  label: "Name",
2133
2138
  key: "Id",
2134
2139
  value: "Id"
2135
- }), n.data.value ? o.value = n.fieldMap ? oe(n.fieldMap, n.data.value) : n.data.value : e.treeCtrl.autoload && Me(e.treeCtrl);
2140
+ }), n.data.value ? o.value = n.fieldMap ? oe(n.fieldMap, n.data.value) : n.data.value : e.treeCtrl.autoload && Be(e.treeCtrl);
2136
2141
  });
2137
2142
  const v = () => {
2138
2143
  p.value = t ? void 0 : null;
2139
2144
  };
2140
2145
  return (u, h) => {
2141
2146
  var y;
2142
- return m(), b(l(La), N({
2147
+ return m(), b(l(za), N({
2143
2148
  class: [[(y = l(c)) == null ? void 0 : y.errClass], "w-full"],
2144
2149
  "tree-line": "",
2145
2150
  multiple: s.multiple,
@@ -2153,29 +2158,29 @@ const dl = /* @__PURE__ */ C({
2153
2158
  }, u.$attrs), null, 16, ["class", "multiple", "value", "tree-data", "placeholder"]);
2154
2159
  };
2155
2160
  }
2156
- }), kl = /* @__PURE__ */ q(Dt, [["__scopeId", "data-v-a0ed9c4e"]]), Pt = { class: "relative h-[calc(100vh-80px)] overflow-y-auto" }, Et = { class: "flex w-full h-full min-h-full" }, Ft = {
2161
+ }), wl = /* @__PURE__ */ q(Et, [["__scopeId", "data-v-a0ed9c4e"]]), Pt = { class: "relative h-[calc(100vh-80px)] overflow-y-auto" }, Ft = { class: "flex w-full h-full min-h-full" }, Nt = {
2157
2162
  key: 0,
2158
2163
  class: "w-1/4 pr-4 min-h-full min-w-[170px] max-w-[200px]"
2159
- }, Nt = { class: "flex-1 h-full overflow-y-auto" }, wl = /* @__PURE__ */ C({
2164
+ }, Mt = { class: "flex-1 h-full overflow-y-auto" }, Sl = /* @__PURE__ */ C({
2160
2165
  __name: "index",
2161
2166
  props: {
2162
2167
  left: { type: Boolean }
2163
2168
  },
2164
2169
  setup(s) {
2165
- const { useToken: a } = Le, { token: e } = a();
2170
+ const { useToken: a } = ze, { token: e } = a();
2166
2171
  return (t, n) => (m(), S("div", Pt, [
2167
- w(l(za), {
2172
+ w(l(Ua), {
2168
2173
  class: "m-[10px] p-[10px] h-[calc(100vh-100px)] !min-h-[calc(100vh-100px)]",
2169
2174
  style: be({
2170
2175
  backgroundColor: l(e).colorBgContainer
2171
2176
  })
2172
2177
  }, {
2173
2178
  default: g(() => [
2174
- $("div", Et, [
2175
- t.left ? (m(), S("div", Ft, [
2179
+ $("div", Ft, [
2180
+ t.left ? (m(), S("div", Nt, [
2176
2181
  D(t.$slots, "left")
2177
2182
  ])) : k("", !0),
2178
- $("div", Nt, [
2183
+ $("div", Mt, [
2179
2184
  D(t.$slots, "default")
2180
2185
  ])
2181
2186
  ])
@@ -2186,160 +2191,160 @@ const dl = /* @__PURE__ */ C({
2186
2191
  }
2187
2192
  });
2188
2193
  export {
2189
- Ss as Alert,
2190
- Ls as AppIcon,
2194
+ Cs as Alert,
2195
+ zs as AppIcon,
2191
2196
  ce as AppRouter,
2192
- cs as AsyncUploader,
2193
- il as AutoComplete,
2194
- zs as Breadcrumb,
2197
+ us as AsyncUploader,
2198
+ cl as AutoComplete,
2199
+ Us as Breadcrumb,
2195
2200
  O as Button,
2196
- je as Cache,
2197
- Za as CacheKeys,
2198
- _s as CanPreviewFileExt,
2199
- cl as Cascader,
2200
- ul as Checkbox,
2201
- wl as Content,
2202
- dl as DatePicker,
2203
- Us as Datetime,
2204
- qs as Dialog,
2205
- tl as Drawer,
2206
- Tl as EventPrefix,
2207
- ll as Form,
2208
- sl as FormItem,
2209
- el as Fullscreen,
2210
- Vs as Header,
2211
- Ys as HeaderExits,
2212
- at as Helper,
2213
- $l as ICONS_LIB,
2214
- Ks as Icon,
2215
- dt as Icontool,
2216
- wt as Input,
2217
- pl as InputIcon,
2218
- vl as InputNumber,
2219
- fl as InputPassword,
2220
- al as LayoutIcon,
2221
- Cs as Loading,
2222
- Ws as Menu,
2223
- Hs as MenuTabs,
2224
- Ne as OPTIONS,
2225
- ia as OptionCommProps,
2226
- js as ProjectIcon,
2227
- ml as PropEditor,
2201
+ Qe as Cache,
2202
+ et as CacheKeys,
2203
+ xs as CanPreviewFileExt,
2204
+ ul as Cascader,
2205
+ dl as Checkbox,
2206
+ Sl as Content,
2207
+ pl as DatePicker,
2208
+ Vs as Datetime,
2209
+ Gs as Dialog,
2210
+ ll as Drawer,
2211
+ $l as EventPrefix,
2212
+ sl as Form,
2213
+ rl as FormItem,
2214
+ al as Fullscreen,
2215
+ Ys as Header,
2216
+ Ks as HeaderExits,
2217
+ tt as Helper,
2218
+ Il as ICONS_LIB,
2219
+ Ws as Icon,
2220
+ pt as Icontool,
2221
+ St as Input,
2222
+ fl as InputIcon,
2223
+ ml as InputNumber,
2224
+ vl as InputPassword,
2225
+ tl as LayoutIcon,
2226
+ Ts as Loading,
2227
+ Hs as Menu,
2228
+ js as MenuTabs,
2229
+ Me as OPTIONS,
2230
+ ca as OptionCommProps,
2231
+ Qs as ProjectIcon,
2232
+ hl as PropEditor,
2228
2233
  j as ProviderKeys,
2229
- $t as Radio,
2230
- hl as RadioStatus,
2231
- gl as RangePicker,
2232
- rl as Search,
2234
+ It as Radio,
2235
+ gl as RadioStatus,
2236
+ bl as RangePicker,
2237
+ ol as Search,
2233
2238
  pe as SearchItem,
2234
- bl as Select,
2235
- ra as Switch,
2236
- ol as Table,
2237
- ct as TableOperate,
2238
- _l as Textarea,
2239
- xl as TimePicker,
2239
+ _l as Select,
2240
+ oa as Switch,
2241
+ nl as Table,
2242
+ ut as TableOperate,
2243
+ xl as Textarea,
2244
+ yl as TimePicker,
2240
2245
  U as ToolIcon,
2241
- mt as Toolbar,
2242
- As as Tooltip,
2243
- It as Transfer,
2244
- yl as TransferTable,
2245
- nl as Tree,
2246
- kl as TreeSelect,
2247
- xs as UploadList,
2248
- us as UploadStatus,
2249
- Ts as appendExcelData,
2250
- $s as checkExcelDuplicates,
2251
- Il as checkIconsExpired,
2252
- pa as circleLoading,
2253
- Xe as createFromIconfont,
2254
- Is as createMarkedExcelView,
2255
- Dl as crumbs,
2256
- Gt as csvToExcelBlob,
2257
- We as csvToExcelView,
2258
- Ds as csvToNormalized,
2246
+ ht as Toolbar,
2247
+ Os as Tooltip,
2248
+ Dt as Transfer,
2249
+ kl as TransferTable,
2250
+ il as Tree,
2251
+ wl as TreeSelect,
2252
+ ys as UploadList,
2253
+ ds as UploadStatus,
2254
+ $s as appendExcelData,
2255
+ Is as checkExcelDuplicates,
2256
+ Dl as checkIconsExpired,
2257
+ fa as circleLoading,
2258
+ Ze as createFromIconfont,
2259
+ Ds as createMarkedExcelView,
2260
+ El as crumbs,
2261
+ Jt as csvToExcelBlob,
2262
+ He as csvToExcelView,
2263
+ Es as csvToNormalized,
2259
2264
  De as defaultTools,
2260
2265
  Pl as doDelete,
2261
- El as doExecute,
2262
- Be as doQuery,
2263
- Fl as doSave,
2264
- ys as donwloadFromMinio,
2265
- Ke as downloadBlob,
2266
- Nl as eventBus,
2266
+ Fl as doExecute,
2267
+ Re as doQuery,
2268
+ Nl as doSave,
2269
+ ks as donwloadFromMinio,
2270
+ We as downloadBlob,
2271
+ Ml as eventBus,
2267
2272
  Ps as excelToExcelView,
2268
- Es as excelToNormalized,
2269
- Zt as exportResults,
2270
- Xt as exportSelectedRows,
2271
- Fe as filterColumns,
2273
+ Fs as excelToNormalized,
2274
+ el as exportResults,
2275
+ Zt as exportSelectedRows,
2276
+ Ne as filterColumns,
2272
2277
  Y as formValidate,
2273
- ds as getAppInfo,
2274
- Ml as getFormDetail,
2275
- ps as getHostInfo,
2276
- Bl as getIconTransform,
2277
- Rl as getRecordDetail,
2278
- Al as getRuleTexts,
2279
- va as getSelectedLabels,
2280
- Ol as getSelectedValues,
2281
- fs as getToken,
2278
+ ps as getAppInfo,
2279
+ Bl as getFormDetail,
2280
+ fs as getHostInfo,
2281
+ Rl as getIconTransform,
2282
+ Al as getRecordDetail,
2283
+ Ol as getRuleTexts,
2284
+ ma as getSelectedLabels,
2285
+ Ll as getSelectedValues,
2286
+ vs as getToken,
2282
2287
  W as getToolByKey,
2283
2288
  ye as getToolGroup,
2284
2289
  H as getToolStatus,
2285
2290
  G as getToolVisible,
2286
- vs as getUserInfo,
2291
+ ms as getUserInfo,
2287
2292
  ke as gridQueryFind,
2288
- sa as gridQueryList,
2289
- Ll as gridRowUpdate,
2290
- oa as gridStatusUpdate,
2291
- qt as initCacheCheck,
2292
- Qt as initDirective,
2293
- zl as initMenu,
2294
- Ul as initPageFactory,
2295
- Vl as initValidate,
2293
+ ra as gridQueryList,
2294
+ zl as gridRowUpdate,
2295
+ na as gridStatusUpdate,
2296
+ Gt as initCacheCheck,
2297
+ qt as initDirective,
2298
+ Ul as initMenu,
2299
+ Vl as initPageFactory,
2300
+ Yl as initValidate,
2296
2301
  Z as isEmpty,
2297
- ua as loadOption,
2298
- Yl as mergeColumns,
2299
- Fs as normalizedToExcelView,
2300
- Ja as onColumnVisibleChanged,
2301
- ea as onFormClose,
2302
+ da as loadOption,
2303
+ Kl as mergeColumns,
2304
+ Ns as normalizedToExcelView,
2305
+ Xa as onColumnVisibleChanged,
2306
+ aa as onFormClose,
2302
2307
  Pe as onFormSave,
2303
- Ze as onFormSaveAs,
2304
- He as onFullscreenClick,
2305
- ta as onGridRowDelete,
2306
- aa as onGridRowEdit,
2307
- Kl as onGridRowExpand,
2308
- fa as onOptionChanged,
2309
- Ka as onReloadClick,
2308
+ ea as onFormSaveAs,
2309
+ je as onFullscreenClick,
2310
+ la as onGridRowDelete,
2311
+ ta as onGridRowEdit,
2312
+ Wl as onGridRowExpand,
2313
+ va as onOptionChanged,
2314
+ Wa as onReloadClick,
2310
2315
  V as onToolClicked,
2311
- la as openNewForm,
2312
- Wl as outFormDataFields,
2313
- Hl as parseIcons,
2314
- ms as path,
2315
- jl as pendingNavigation,
2316
- Ql as pinia,
2317
- ks as previewFromMinio,
2318
- Jt as processCsvFile,
2319
- Ns as processExcelFile,
2320
- Me as queryTree,
2321
- ql as resetRules,
2322
- Gl as routes,
2323
- Jl as saveForm,
2324
- Xl as setFormData,
2325
- Zl as showBreadcrumb,
2326
- Ms as toExcel,
2327
- da as unloadOption,
2328
- es as useAppInfo,
2329
- as as useEditorFactory,
2330
- Ee as useFormItemFactory,
2331
- ts as useGridFactory,
2332
- ls as useHostInfo,
2316
+ sa as openNewForm,
2317
+ Hl as outFormDataFields,
2318
+ jl as parseIcons,
2319
+ hs as path,
2320
+ Ql as pendingNavigation,
2321
+ ql as pinia,
2322
+ ws as previewFromMinio,
2323
+ Xt as processCsvFile,
2324
+ Ms as processExcelFile,
2325
+ Be as queryTree,
2326
+ Gl as resetRules,
2327
+ Jl as routes,
2328
+ Xl as saveForm,
2329
+ Zl as setFormData,
2330
+ es as showBreadcrumb,
2331
+ Bs as toExcel,
2332
+ pa as unloadOption,
2333
+ as as useAppInfo,
2334
+ ts as useEditorFactory,
2335
+ Fe as useFormItemFactory,
2336
+ ls as useGridFactory,
2337
+ ss as useHostInfo,
2333
2338
  L as useInputFactory,
2334
- ca as useOptionFactory,
2335
- ss as usePageFactory,
2336
- rs as usePageInfo,
2339
+ ua as useOptionFactory,
2340
+ rs as usePageFactory,
2341
+ os as usePageInfo,
2337
2342
  me as useSettingInfo,
2338
- Xa as useToolFactory,
2339
- os as useTreeFactory,
2340
- Je as useUserInfo,
2341
- hs as userLogin,
2342
- gs as userLogout,
2343
- ns as validateData,
2344
- Bs as validateExcel
2343
+ Za as useToolFactory,
2344
+ ns as useTreeFactory,
2345
+ Ee as useUserInfo,
2346
+ gs as userLogin,
2347
+ bs as userLogout,
2348
+ is as validateData,
2349
+ Rs as validateExcel
2345
2350
  };