@skyfox2000/webui 1.3.3 → 1.3.5

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 (38) hide show
  1. package/lib/assets/modules/{file-upload-D4Pqs8h3.js → file-upload-C0twqMV5.js} +1 -1
  2. package/lib/assets/modules/{index-V1j9haWy.js → index-C4CryM-R.js} +1 -1
  3. package/lib/assets/modules/index-CKJIxasX.js +333 -0
  4. package/lib/assets/modules/{index-CSnwbbQT.js → index-D1XAa1Uo.js} +2 -2
  5. package/lib/assets/modules/{menuTabs-e8XoJN7m.js → menuTabs-BrYQa4UO.js} +2 -2
  6. package/lib/assets/modules/{toolIcon-BSF7eiPf.js → toolIcon-B-g9pyE4.js} +1 -1
  7. package/lib/assets/modules/{uploadList-DA4TRDWR.js → uploadList-0f2FA_5s.js} +490 -455
  8. package/lib/assets/modules/{uploadList-Bcf7g1bf.js → uploadList-DCWRIxPJ.js} +4 -4
  9. package/lib/components/content/table/index.vue.d.ts +95 -4
  10. package/lib/es/AceEditor/index.js +3 -3
  11. package/lib/es/BasicLayout/index.js +3 -3
  12. package/lib/es/Error403/index.js +1 -1
  13. package/lib/es/Error404/index.js +1 -1
  14. package/lib/es/ExcelForm/index.js +339 -202
  15. package/lib/es/UploadForm/index.js +4 -4
  16. package/lib/index.d.ts +3 -2
  17. package/lib/typings/option.d.ts +2 -2
  18. package/lib/utils/excel-view.d.ts +25 -0
  19. package/lib/utils/form-csv.d.ts +18 -0
  20. package/lib/utils/form-excel.d.ts +2 -13
  21. package/lib/utils/options.d.ts +2 -2
  22. package/lib/webui.css +1 -1
  23. package/lib/webui.es.js +897 -871
  24. package/package.json +2 -2
  25. package/src/components/common/loading/index.vue +1 -1
  26. package/src/components/content/dialog/excelForm.vue +386 -107
  27. package/src/components/content/table/index.vue +9 -6
  28. package/src/components/form/autoComplete/index.vue +9 -3
  29. package/src/components/form/cascader/index.vue +8 -6
  30. package/src/index.ts +25 -2
  31. package/src/typings/option.d.ts +2 -2
  32. package/src/utils/excel-view.ts +340 -0
  33. package/src/utils/form-csv.ts +55 -0
  34. package/src/utils/form-excel.ts +59 -192
  35. package/src/utils/options.ts +80 -22
  36. package/src/utils/table.ts +15 -2
  37. package/vite.config.ts +0 -1
  38. package/lib/assets/modules/form-excel-D1vXB4c4.js +0 -235
package/lib/webui.es.js CHANGED
@@ -1,61 +1,62 @@
1
- import { u as Qe, i as ee, a as me, c as qe, P as j, o as Pe, b as Ge, d as Je, e as Ee, r as ue, f as Xe, g as Ze, h as Fe, j as et, k as ke, l as tt, _ as at, m as lt, O as Ne, q as Re, n as st, p as rt, s as L, t as ot, v as nt, w as it, x as ut, y as Q, z as ct, A as dt, B as pt, C as Me } from "./assets/modules/uploadList-DA4TRDWR.js";
2
- import { a9 as xl, N as yl, Q as kl, U as wl, a8 as Sl, a6 as Cl, a7 as $l, aa as Tl, X as Il, S as Dl, a4 as Pl, a1 as El, M as Fl, J as Nl, a3 as Rl, T as Ml, E as Ol, Z as Al, a2 as Bl, a5 as Ll, L as zl, K as Ul, R as Yl, ab as Wl, D as Kl, a0 as Vl, ac as jl, W as Hl, Y as Ql, V as ql, ad as Gl, F as Jl, G as Xl, ae as Zl, I as es, af as ts, H as as, $ as ls } from "./assets/modules/uploadList-DA4TRDWR.js";
3
- import { A as rs, U as os, a as ns, g as is, c as us, d as cs, p as ds, u as ps, b as fs } from "./assets/modules/file-upload-D4Pqs8h3.js";
1
+ import { u as Je, i as Z, a as me, c as Xe, P as j, o as Ee, b as Ze, d as ea, e as Pe, 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 Q, B as ma, C as ha, D as ga, E as Re } from "./assets/modules/uploadList-0f2FA_5s.js";
2
+ import { a9 as Cl, N as Tl, Q as $l, U as Il, a8 as Dl, a6 as El, a7 as Pl, aa as Fl, X as Nl, S as Ml, a4 as Rl, a1 as Ol, L as Al, a3 as Bl, T as Ll, G as Ul, Z as zl, a2 as Yl, a5 as Vl, M as Wl, R as Kl, ab as jl, F as Hl, a0 as Ql, ac as ql, W as Gl, Y as Jl, V as Xl, ad as Zl, H as es, I as as, ae as ts, K as ls, af as ss, J as rs, $ as os } from "./assets/modules/uploadList-0f2FA_5s.js";
3
+ import { A as is, U as cs, a as us, g as ds, c as ps, d as fs, p as vs, u as ms, b as hs } from "./assets/modules/file-upload-C0twqMV5.js";
4
4
  import { EnvConfig as we } from "@skyfox2000/microbase";
5
- import { FrontCache as re, httpPost as Oe, ResStatus as Ae, SERVER_HOST as ft, fieldMapping as oe } from "@skyfox2000/fapi";
5
+ import { FrontCache as re, httpPost as Oe, ResStatus as Ae, SERVER_HOST as ba, fieldMapping as oe } from "@skyfox2000/fapi";
6
6
  import he from "vue-m-message";
7
- import { defineComponent as S, createBlock as _, openBlock as m, withModifiers as ae, unref as l, useAttrs as q, withCtx as h, createElementVNode as T, createVNode as y, mergeProps as E, renderSlot as D, normalizeStyle as ce, toDisplayString as F, createCommentVNode as k, createElementBlock as w, ref as b, provide as ge, watch as $, onMounted as W, createTextVNode as R, inject as ne, resolveDirective as se, withDirectives as H, computed as Z, normalizeClass as N, createSlots as Be, useSlots as vt, Fragment as M, renderList as z, resolveDynamicComponent as mt, onActivated as ht, shallowRef as gt, onUnmounted as _t, withKeys as Se } from "vue";
7
+ import { defineComponent as S, createBlock as b, openBlock as m, withModifiers as ae, unref as l, useAttrs as X, withCtx as h, createElementVNode as $, createVNode as k, mergeProps as F, renderSlot as I, normalizeStyle as ue, toDisplayString as P, createCommentVNode as y, ref as x, provide as ge, watch as T, onMounted as V, createTextVNode as M, inject as ne, resolveDirective as le, withDirectives as H, computed as J, createElementBlock as w, normalizeClass as N, createSlots as Be, useSlots as xa, Fragment as O, renderList as U, resolveDynamicComponent as _a, onActivated as ya, shallowRef as ka, onUnmounted as wa, withKeys as Se } from "vue";
8
8
  import "async-validator";
9
9
  import fe from "dayjs";
10
- import { Popover as bt, Spin as xt, theme as Le, Drawer as yt, Space as le, Form as ze, message as kt, FormItem as Ue, ConfigProvider as Ce, Popconfirm as wt, Button as Ye, DropdownButton as St, Menu as _e, MenuItem as be, Dropdown as ve, Checkbox as Ct, Table as We, Tree as $t, Cascader as Tt, DatePicker as It, Input as te, InputPassword as Dt, InputNumber as Pt, RangePicker as Et, Textarea as Ft, Transfer as Nt, TreeSelect as Rt, LayoutContent as Mt } from "ant-design-vue";
11
- import { VueDraggableNext as Ot } from "vue-draggable-next";
12
- import { d as Ke } from "./assets/modules/uploadList-Bcf7g1bf.js";
13
- import { C as ms, U as hs, a as gs, p as _s } from "./assets/modules/uploadList-Bcf7g1bf.js";
14
- import { a as xs, c as ys, p as ks, v as ws } from "./assets/modules/form-excel-D1vXB4c4.js";
15
- import { _ as B } from "./assets/modules/index-V1j9haWy.js";
16
- import { _ as U } from "./assets/modules/toolIcon-BSF7eiPf.js";
17
- import { a as Cs } from "./assets/modules/toolIcon-BSF7eiPf.js";
18
- import { _ as Ts, b as Is, c as Ds, d as Ps, e as Es, I as Fs, f as Ns, g as Rs, a as Ms } from "./assets/modules/menuTabs-e8XoJN7m.js";
19
- import { _ as As } from "./assets/modules/index-CSnwbbQT.js";
20
- import { _ as G } from "./assets/modules/_plugin-vue_export-helper-CHgC5LLL.js";
21
- const $e = (s, a, t, e = "remove") => {
22
- if (!t)
23
- if (e === "disable") {
24
- const n = a.component;
25
- n ? n.props.disabled = !0 : (a.el, s.setAttribute("disabled", "disabled"), s.disabled = !0), s.classList.add("disabled");
10
+ import { Popover as Sa, theme as Le, Drawer as Ca, Space as te, Form as Ue, message as Ta, FormItem as ze, ConfigProvider as Ce, Popconfirm as $a, Button as Ye, DropdownButton as Ia, Menu as be, MenuItem as xe, Dropdown as ve, Checkbox as Da, Table as Ve, Tree as Ea, Cascader as Pa, DatePicker as Fa, Input as ee, InputPassword as Na, InputNumber as Ma, RangePicker as Ra, Textarea as Oa, Transfer as Aa, TreeSelect as Ba, LayoutContent as La } from "ant-design-vue";
11
+ import { VueDraggableNext as Ua } from "vue-draggable-next";
12
+ import { d as We } from "./assets/modules/uploadList-DCWRIxPJ.js";
13
+ import { C as bs, U as xs, a as _s, p as ys } from "./assets/modules/uploadList-DCWRIxPJ.js";
14
+ import { c as Ke } from "./assets/modules/index-CKJIxasX.js";
15
+ import { _ as ws, b as Ss, a as Cs, d as Ts, e as $s, g as Is, f as Ds, n as Es, p as Ps, t as Fs, v as Ns } from "./assets/modules/index-CKJIxasX.js";
16
+ import { _ as B } from "./assets/modules/index-C4CryM-R.js";
17
+ import { _ as z } from "./assets/modules/toolIcon-B-g9pyE4.js";
18
+ import { a as Rs } from "./assets/modules/toolIcon-B-g9pyE4.js";
19
+ import { _ as As, b as Bs, c as Ls, d as Us, e as zs, I as Ys, f as Vs, g as Ws, a as Ks } from "./assets/modules/menuTabs-BrYQa4UO.js";
20
+ import { _ as Hs } from "./assets/modules/index-D1XAa1Uo.js";
21
+ import { _ as q } from "./assets/modules/_plugin-vue_export-helper-CHgC5LLL.js";
22
+ const Te = (s, t, e, a = "remove") => {
23
+ if (!e)
24
+ if (a === "disable") {
25
+ const n = t.component;
26
+ n ? n.props.disabled = !0 : (t.el, s.setAttribute("disabled", "disabled"), s.disabled = !0), s.classList.add("disabled");
26
27
  } else {
27
28
  const n = document.createComment("No Permission"), i = s.parentNode;
28
29
  if (i) {
29
- const u = a.component;
30
- u ? u.props.style = { display: "none" } : i.replaceChild(n, s);
30
+ const c = t.component;
31
+ c ? c.props.style = { display: "none" } : i.replaceChild(n, s);
31
32
  }
32
33
  }
33
- }, Te = (s) => {
34
- var u, p;
35
- const a = Qe(), { url: t, role: e, permit: n } = s;
36
- if (ee(e) && ee(n))
34
+ }, $e = (s) => {
35
+ var c, p;
36
+ const t = Je(), { url: e, role: a, permit: n } = s;
37
+ if (Z(a) && Z(n))
37
38
  return !0;
38
- const i = t ?? ((p = (u = window.location.hash) == null ? void 0 : u.split("#")) == null ? void 0 : p[1]) ?? window.location.pathname;
39
+ const i = e ?? ((p = (c = window.location.hash) == null ? void 0 : c.split("#")) == null ? void 0 : p[1]) ?? window.location.pathname;
39
40
  if (we.VITE_PERMISSION_MODE === "role")
40
- return ee(e) ? !0 : a.hasRole(e);
41
+ return Z(a) ? !0 : t.hasRole(a);
41
42
  if (we.VITE_PERMISSION_MODE === "permit") {
42
43
  let d = !1, o = !1;
43
- return ee(e) || (d = a.hasRole(e)), a.isAdmin() ? d : (ee(n) || (o = a.hasPermit(i, n)), d || o);
44
+ return Z(a) || (d = t.hasRole(a)), t.isAdmin() ? d : (Z(n) || (o = t.hasPermit(i, n)), d || o);
44
45
  }
45
46
  return !1;
46
- }, At = {
47
- mounted(s, a, t) {
48
- const e = a.value || {}, n = a.arg || "remove", i = e.behavior || n, u = Te(e);
49
- $e(s, t, u, i);
47
+ }, za = {
48
+ mounted(s, t, e) {
49
+ const a = t.value || {}, n = t.arg || "remove", i = a.behavior || n, c = $e(a);
50
+ Te(s, e, c, i);
50
51
  },
51
- updated(s, a, t) {
52
- const e = a.value || {}, n = a.arg || "remove", i = e.behavior || n, u = Te(e);
53
- $e(s, t, u, i);
52
+ updated(s, t, e) {
53
+ const a = t.value || {}, n = t.arg || "remove", i = a.behavior || n, c = $e(a);
54
+ Te(s, e, c, i);
54
55
  }
55
- }, Bt = {
56
- mounted: (s, a) => {
57
- s.addEventListener("keydown", (t) => {
58
- t.key === "Enter" && a.value();
56
+ }, Ya = {
57
+ mounted: (s, t) => {
58
+ s.addEventListener("keydown", (e) => {
59
+ e.key === "Enter" && t.value();
59
60
  });
60
61
  },
61
62
  unmounted: (s) => {
@@ -63,76 +64,76 @@ const $e = (s, a, t, e = "remove") => {
63
64
  });
64
65
  }
65
66
  }, de = {
66
- auth: At,
67
- submit: Bt
68
- }, Ka = (s, a) => ((a || Object.keys(de)).forEach((e) => {
69
- e in de && s.directive(e, de[e]);
70
- }), s), K = (s, a) => {
71
- const t = s.find((e) => e.key === a);
72
- if (t)
73
- return t;
74
- for (const e of s)
75
- if (e.children) {
76
- const n = K(e.children, a);
67
+ auth: za,
68
+ submit: Ya
69
+ }, Qt = (s, t) => ((t || Object.keys(de)).forEach((a) => {
70
+ a in de && s.directive(a, de[a]);
71
+ }), s), W = (s, t) => {
72
+ const e = s.find((a) => a.key === t);
73
+ if (e)
74
+ return e;
75
+ for (const a of s)
76
+ if (a.children) {
77
+ const n = W(a.children, t);
77
78
  if (n)
78
79
  return n;
79
80
  }
80
- }, xe = (s, a, t) => {
81
- const e = [], n = [];
82
- return t || (t = [...s]), t.length && t.forEach((i, u) => {
81
+ }, _e = (s, t, e) => {
82
+ const a = [], n = [];
83
+ return e || (e = [...s]), e.length && e.forEach((i, c) => {
83
84
  let p;
84
85
  if (typeof i == "string") {
85
- const d = K(s, i);
86
+ const d = W(s, i);
86
87
  p = d ? { ...d } : { key: i, label: i };
87
88
  } else {
88
- const d = K(s, i.key);
89
+ const d = W(s, i.key);
89
90
  p = d ? { ...d, ...i } : { ...i };
90
91
  }
91
92
  p.click || (p.click = (d, o, f) => {
92
93
  o && (o.rowData.value = f), p.formVisible ? (p.formVisible.value = !1, setTimeout(() => {
93
94
  p.formVisible.value = !0;
94
95
  }, 1)) : he.warning("未配置点击处理事件!");
95
- }), a === 0 || u < a ? e.push(p) : n.push(p);
96
- }), { buttons: e, menus: n };
97
- }, V = (s, a) => s.disabled && typeof s.disabled == "function" ? s.disabled(a) : s.disabled, X = (s, a) => s.visible && typeof s.visible == "function" ? s.visible(a) : s.visible ?? !0, Lt = (s, a) => {
98
- a.reload.value = !0;
99
- }, zt = (s, a) => {
100
- a.searchBar.value = !a.searchBar.value;
101
- }, Ut = (s, a) => {
102
- switch (a.tableSize.value) {
96
+ }), t === 0 || c < t ? a.push(p) : n.push(p);
97
+ }), { buttons: a, menus: n };
98
+ }, K = (s, t) => s.disabled && typeof s.disabled == "function" ? s.disabled(t) : s.disabled, G = (s, t) => s.visible && typeof s.visible == "function" ? s.visible(t) : s.visible ?? !0, Va = (s, t) => {
99
+ t.reload.value = !0;
100
+ }, Wa = (s, t) => {
101
+ t.searchBar.value = !t.searchBar.value;
102
+ }, Ka = (s, t) => {
103
+ switch (t.tableSize.value) {
103
104
  case "large":
104
- a.tableSize.value = "middle";
105
+ t.tableSize.value = "middle";
105
106
  break;
106
107
  case "middle":
107
- a.tableSize.value = "small";
108
+ t.tableSize.value = "small";
108
109
  break;
109
110
  case "small":
110
- a.tableSize.value = "large";
111
+ t.tableSize.value = "large";
111
112
  break;
112
113
  }
113
- }, Yt = (s, a) => {
114
- a.selectable.value = !a.selectable.value, a.selectable.value || (a.selectKeys.value = [], a.selectRows.value = []);
115
- }, Wt = (s, a) => {
116
- a.rowExpand.value = !a.rowExpand.value;
117
- }, Ie = (s, a) => {
118
- a.selectable.value = !a.selectable.value;
119
- }, Y = (s, a, t, e, n) => {
120
- (!s.confirm || n) && s.click && (a ? s.click(a, t, e) : s.click(null, t, e)), Vt(s);
121
- }, Kt = (s, a) => {
122
- a.selectable.value = !a.selectable.value;
123
- }, Ve = () => {
114
+ }, ja = (s, t) => {
115
+ t.selectable.value = !t.selectable.value, t.selectable.value || (t.selectKeys.value = [], t.selectRows.value = []);
116
+ }, Ha = (s, t) => {
117
+ t.rowExpand.value = !t.rowExpand.value;
118
+ }, Ie = (s, t) => {
119
+ t.selectable.value = !t.selectable.value;
120
+ }, Y = (s, t, e, a, n) => {
121
+ (!s.confirm || n) && s.click && (t ? s.click(t, e, a) : s.click(null, e, a)), qa(s);
122
+ }, Qa = (s, t) => {
123
+ t.selectable.value = !t.selectable.value;
124
+ }, je = () => {
124
125
  const s = me();
125
126
  s.setFullscreen(!s.fullscreen);
126
- }, Vt = (s, a) => {
127
+ }, qa = (s, t) => {
127
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]));
128
- }, jt = (s, a) => {
129
- a ? delete s.visible : s.visible = !1;
129
+ }, Ga = (s, t) => {
130
+ t ? delete s.visible : s.visible = !1;
130
131
  }, De = [
131
132
  {
132
133
  key: "Reload",
133
134
  label: "刷新表格",
134
135
  icon: "icon-reload",
135
- click: Lt
136
+ click: Va
136
137
  },
137
138
  {
138
139
  key: "Query",
@@ -140,20 +141,20 @@ const $e = (s, a, t, e = "remove") => {
140
141
  labels: ["展开搜索栏", "折叠搜索栏"],
141
142
  icon: "icon-search",
142
143
  iconStatus: 0,
143
- click: zt
144
+ click: Wa
144
145
  },
145
146
  {
146
147
  key: "RowHeight",
147
148
  label: "行高调整",
148
149
  icon: "icon-row-height",
149
- click: Ut
150
+ click: Ka
150
151
  },
151
152
  {
152
153
  key: "tool.multiple.checkbox",
153
154
  label: "显示多选框",
154
155
  labels: ["显示多选框", "隐藏多选框"],
155
156
  icon: "icon-checkbox",
156
- click: Yt
157
+ click: ja
157
158
  },
158
159
  {
159
160
  key: "tool.expand.rows",
@@ -162,7 +163,7 @@ const $e = (s, a, t, e = "remove") => {
162
163
  icon: "icon-row-collapse",
163
164
  iconStatus: 0,
164
165
  icons: ["icon-row-collapse", "icon-row-expand"],
165
- click: Wt
166
+ click: Ha
166
167
  },
167
168
  {
168
169
  key: "tool.export.excel",
@@ -189,7 +190,7 @@ const $e = (s, a, t, e = "remove") => {
189
190
  {
190
191
  key: "tool.export.pdf.selected",
191
192
  label: "选中的记录",
192
- click: Kt
193
+ click: Qa
193
194
  }
194
195
  ]
195
196
  },
@@ -209,74 +210,74 @@ const $e = (s, a, t, e = "remove") => {
209
210
  icon: "icon-fullscreen",
210
211
  iconStatus: 0,
211
212
  icons: ["icon-fullscreen", "icon-exitscreen"],
212
- click: Ve
213
+ click: je
213
214
  }
214
- ], Ht = (s) => {
215
+ ], Ja = (s) => {
215
216
  if (!s.tools || s.tools.length > 0) {
216
- const a = [];
217
- return s.tools ? a.push(...s.tools) : a.push(...De), { tools: xe(De, 0, a).buttons };
217
+ const t = [];
218
+ return s.tools ? t.push(...s.tools) : t.push(...De), { tools: _e(De, 0, t).buttons };
218
219
  }
219
220
  return {
220
221
  tools: []
221
222
  };
222
223
  };
223
- var Qt = /* @__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))(Qt || {});
224
- class je {
224
+ var Xa = /* @__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))(Xa || {});
225
+ class He {
225
226
  /**
226
227
  * 设置缓存数据(带服务器时间)
227
228
  */
228
- static setWithServerTime(a, t, e) {
229
+ static setWithServerTime(t, e, a) {
229
230
  const n = {
230
- data: t,
231
- lastTime: e
231
+ data: e,
232
+ lastTime: a
232
233
  };
233
- re.set({ key: a, storage: "local" }, n);
234
+ re.set({ key: t, storage: "local" }, n);
234
235
  }
235
236
  /**
236
237
  * 设置缓存数据
237
238
  */
238
- static setData(a, t) {
239
- re.set({ key: a, storage: "local" }, t);
239
+ static setData(t, e) {
240
+ re.set({ key: t, storage: "local" }, e);
240
241
  }
241
242
  /**
242
243
  * 获取缓存数据
243
244
  */
244
- static getData(a) {
245
- const t = re.get({ key: a, storage: "local" });
246
- return t && je.isTimedData(t) ? t.data : t ?? null;
245
+ static getData(t) {
246
+ const e = re.get({ key: t, storage: "local" });
247
+ return e && He.isTimedData(e) ? e.data : e ?? null;
247
248
  }
248
249
  /**
249
250
  * 清除缓存
250
251
  */
251
- static remove(a) {
252
- re.remove({ key: a, storage: "local" });
252
+ static remove(t) {
253
+ re.remove({ key: t, storage: "local" });
253
254
  }
254
255
  /**
255
256
  * 清理指定前缀的缓存 (基于 localStorage 实现,因为 FrontCache 未提供此方法)
256
257
  */
257
- static clearByPrefix(a) {
258
- for (let t = 0; t < localStorage.length; t++) {
259
- const e = localStorage.key(t);
260
- e && e.startsWith("frontCache::" + a) && localStorage.removeItem(e);
258
+ static clearByPrefix(t) {
259
+ for (let e = 0; e < localStorage.length; e++) {
260
+ const a = localStorage.key(e);
261
+ a && a.startsWith("frontCache::" + t) && localStorage.removeItem(a);
261
262
  }
262
263
  }
263
264
  /**
264
265
  * 清理所有缓存
265
266
  */
266
267
  static clearAll() {
267
- for (let a = localStorage.length - 1; a >= 0; a--) {
268
- const t = localStorage.key(a);
269
- t && t.startsWith("frontCache::") && localStorage.removeItem(t);
268
+ for (let t = localStorage.length - 1; t >= 0; t--) {
269
+ const e = localStorage.key(t);
270
+ e && e.startsWith("frontCache::") && localStorage.removeItem(e);
270
271
  }
271
272
  }
272
273
  /**
273
274
  * 判断是否是带时间戳的数据
274
275
  */
275
- static isTimedData(a) {
276
- return a && typeof a == "object" && "data" in a && "lastTime" in a && typeof a.lastTime == "number";
276
+ static isTimedData(t) {
277
+ return t && typeof t == "object" && "data" in t && "lastTime" in t && typeof t.lastTime == "number";
277
278
  }
278
279
  }
279
- async function Va() {
280
+ async function qt() {
280
281
  try {
281
282
  const s = await Oe(
282
283
  {
@@ -287,17 +288,17 @@ async function Va() {
287
288
  {}
288
289
  );
289
290
  if ((s == null ? void 0 : s.status) === Ae.SUCCESS) {
290
- const a = s.data;
291
- Object.keys(a).forEach((t) => {
292
- const e = a[t];
291
+ const t = s.data;
292
+ Object.keys(t).forEach((e) => {
293
+ const a = t[e];
293
294
  ["local", "session"].forEach((i) => {
294
- const u = i === "local" ? localStorage : sessionStorage;
295
- for (let p = 0; p < u.length; p++) {
296
- const d = u.key(p);
297
- if (d && d.endsWith(t))
295
+ const c = i === "local" ? localStorage : sessionStorage;
296
+ for (let p = 0; p < c.length; p++) {
297
+ const d = c.key(p);
298
+ if (d && d.endsWith(e))
298
299
  try {
299
- const o = JSON.parse(u.getItem(d));
300
- o && typeof o == "object" && "lastTime" in o && typeof o.lastTime == "number" && o.lastTime !== e && u.removeItem(d);
300
+ const o = JSON.parse(c.getItem(d));
301
+ o && typeof o == "object" && "lastTime" in o && typeof o.lastTime == "number" && o.lastTime !== a && c.removeItem(d);
301
302
  } catch {
302
303
  continue;
303
304
  }
@@ -309,58 +310,85 @@ async function Va() {
309
310
  console.error("检查缓存更新失败", s);
310
311
  }
311
312
  }
312
- const ja = async (s, a, t) => {
313
+ const Gt = async (s, t) => {
314
+ const e = await Ke(s, t);
315
+ if (e.success)
316
+ return {
317
+ blobUrl: e.blobUrl,
318
+ fileName: e.fileName,
319
+ blob: null
320
+ // 不再返回blob对象,使用URL即可
321
+ };
322
+ throw new Error(e.error || "CSV转Excel失败");
323
+ }, Jt = async (s, t) => {
324
+ try {
325
+ const a = new TextDecoder("utf-8").decode(s), n = await Ke(a, t);
326
+ return {
327
+ success: n.success,
328
+ blobUrl: n.blobUrl,
329
+ fileName: n.fileName,
330
+ error: n.error,
331
+ csvContent: a
332
+ // 保留原始CSV内容
333
+ };
334
+ } catch (e) {
335
+ return console.error("CSV文件处理失败:", e), {
336
+ success: !1,
337
+ error: e instanceof Error ? e.message : "未知错误"
338
+ };
339
+ }
340
+ }, Xt = async (s, t, e) => {
313
341
  try {
314
- const n = (await import("@json2csv/plainjs")).Parser, i = He(s), u = a.filter((v) => v.visible !== !1 && v.export !== !1), p = u.map((v) => ({
342
+ const n = (await import("@json2csv/plainjs")).Parser, i = Qe(s), c = t.filter((v) => v.visible !== !1 && v.export !== !1), p = c.map((v) => ({
315
343
  label: v.title,
316
344
  value: v.dataIndex || v.key || ""
317
- })), d = t.map((v) => {
318
- const c = { ...v };
319
- return u.forEach((g) => {
345
+ })), d = e.map((v) => {
346
+ const u = { ...v };
347
+ return c.forEach((g) => {
320
348
  const C = g.dataIndex || g.key;
321
- C && g.customRender && (c[C] = g.customRender(v[C], v));
322
- }), c;
349
+ C && g.customRender && (u[C] = g.customRender(v[C], v));
350
+ }), u;
323
351
  }), f = new n({ fields: p }).parse(d), r = new Blob([`\uFEFF${f}`], { type: "text/csv" });
324
- Ke(r, i);
325
- } catch (e) {
326
- console.error("导出失败:", e), he.error("文件导出失败,请稍后重试");
352
+ We(r, i);
353
+ } catch (a) {
354
+ console.error("导出失败:", a), he.error("文件导出失败,请稍后重试");
327
355
  }
328
- }, He = (s) => {
329
- const a = /\{([^}]+)\}/g;
330
- return s.replace(a, (t, e) => fe().format(e));
331
- }, Ha = async (s, a, t, e) => {
356
+ }, Qe = (s) => {
357
+ const t = /\{([^}]+)\}/g;
358
+ return s.replace(t, (e, a) => fe().format(a));
359
+ }, Zt = async (s, t, e, a) => {
332
360
  try {
333
- const i = (await import("@json2csv/plainjs")).Parser, u = He(s), p = a.filter((r) => r.visible !== !1), d = p.map((r) => ({
361
+ const i = (await import("@json2csv/plainjs")).Parser, c = Qe(s), p = t.filter((r) => r.visible !== !1), d = p.map((r) => ({
334
362
  label: r.title,
335
363
  value: r.dataIndex || r.key || ""
336
364
  }));
337
- let o = t.page, f = t.gridQuery;
338
- return e.api || (e.api = o.api), e.authorize === void 0 && (e.authorize = o.authorize), t.isGridLoading.value = !0, Oe(e, f).then((r) => {
339
- if (t.isGridLoading.value = !1, (r == null ? void 0 : r.status) === Ae.SUCCESS && r.data) {
340
- const c = r.data.map((O) => {
341
- const x = { ...O };
342
- return p.forEach((I) => {
343
- const A = I.dataIndex || I.key;
344
- A && I.customRender && (x[A] = I.customRender(O[A], O));
345
- }), x;
346
- }), C = new i({ fields: d }).parse(c), P = new Blob([`\uFEFF${C}`], { type: "text/csv" });
347
- Ke(P, u);
365
+ let o = e.page, f = e.gridQuery;
366
+ return a.api || (a.api = o.api), a.authorize === void 0 && (a.authorize = o.authorize), e.isGridLoading.value = !0, Oe(a, f).then((r) => {
367
+ if (e.isGridLoading.value = !1, (r == null ? void 0 : r.status) === Ae.SUCCESS && r.data) {
368
+ const u = r.data.map((A) => {
369
+ const _ = { ...A };
370
+ return p.forEach((E) => {
371
+ const R = E.dataIndex || E.key;
372
+ R && E.customRender && (_[R] = E.customRender(A[R], A));
373
+ }), _;
374
+ }), C = new i({ fields: d }).parse(u), D = new Blob([`\uFEFF${C}`], { type: "text/csv" });
375
+ We(D, c);
348
376
  }
349
377
  });
350
378
  } catch (n) {
351
379
  console.error("导出失败:", n), he.error("文件导出失败,请稍后重试");
352
380
  }
353
- }, Qa = /* @__PURE__ */ S({
381
+ }, el = /* @__PURE__ */ S({
354
382
  __name: "fullscreen",
355
383
  setup(s) {
356
- const a = me();
357
- return (t, e) => (m(), _(U, {
358
- onClick: ae(l(Ve), ["stop"]),
359
- icon: l(a).fullscreen ? "icon-exitscreen" : "icon-fullscreen",
384
+ const t = me();
385
+ return (e, a) => (m(), b(z, {
386
+ onClick: ae(l(je), ["stop"]),
387
+ icon: l(t).fullscreen ? "icon-exitscreen" : "icon-fullscreen",
360
388
  class: "w-[17px] h-[17px]"
361
389
  }, null, 8, ["onClick", "icon"]));
362
390
  }
363
- }), qt = { class: "ml-2" }, Gt = /* @__PURE__ */ S({
391
+ }), Za = { class: "ml-2" }, et = /* @__PURE__ */ S({
364
392
  inheritAttrs: !1,
365
393
  __name: "helper",
366
394
  props: {
@@ -368,28 +396,28 @@ const ja = async (s, a, t) => {
368
396
  maxWidth: {}
369
397
  },
370
398
  setup(s) {
371
- const a = q();
372
- return (t, e) => (m(), _(l(bt), { placement: "topRight" }, {
399
+ const t = X();
400
+ return (e, a) => (m(), b(l(Sa), { placement: "topRight" }, {
373
401
  content: h(() => [
374
- D(t.$slots, "default", {}, () => [
375
- T("div", {
402
+ I(e.$slots, "default", {}, () => [
403
+ $("div", {
376
404
  class: "text-[14px]",
377
- style: ce({ maxWidth: t.maxWidth })
378
- }, F(t.text), 5)
405
+ style: ue({ maxWidth: e.maxWidth })
406
+ }, P(e.text), 5)
379
407
  ])
380
408
  ]),
381
409
  default: h(() => [
382
- T("span", qt, [
383
- y(U, E({
410
+ $("span", Za, [
411
+ k(z, F({
384
412
  icon: "icon-question-circle",
385
413
  class: "text-[#888] w-4 h-4"
386
- }, l(a)), null, 16)
414
+ }, l(t)), null, 16)
387
415
  ])
388
416
  ]),
389
417
  _: 3
390
418
  }));
391
419
  }
392
- }), qa = /* @__PURE__ */ S({
420
+ }), al = /* @__PURE__ */ S({
393
421
  __name: "layoutIcon",
394
422
  props: {
395
423
  icon: {
@@ -400,28 +428,20 @@ const ja = async (s, a, t) => {
400
428
  }
401
429
  },
402
430
  setup(s) {
403
- const a = s, e = qe({
404
- iconUrl: `${ft.MICROLAYOUT_ICONS}`,
431
+ const t = s, a = Xe({
432
+ iconUrl: `${ba.MICROLAYOUT_ICONS}`,
405
433
  monoColor: !0,
406
- icon: a.icon,
407
- icons: a.icons
434
+ icon: t.icon,
435
+ icons: t.icons
408
436
  });
409
- return (n, i) => s.icon || s.icons ? (m(), _(l(e), E({
437
+ return (n, i) => s.icon || s.icons ? (m(), b(l(a), F({
410
438
  key: 0,
411
439
  icon: s.icon,
412
440
  icons: s.icons,
413
441
  class: ["align-middle"]
414
- }, n.$attrs), null, 16, ["icon", "icons"])) : k("", !0);
415
- }
416
- }), Jt = { class: "absolute z-999 w-full h-full top-0 flex flex-flow row items-center justify-center" }, Ga = /* @__PURE__ */ S({
417
- __name: "index",
418
- setup(s) {
419
- const a = q();
420
- return (t, e) => (m(), w("div", Jt, [
421
- y(l(xt), E({ style: { "margin-top": "-10%" } }, l(a)), null, 16)
422
- ]));
442
+ }, n.$attrs), null, 16, ["icon", "icons"])) : y("", !0);
423
443
  }
424
- }), Xt = { class: "hover:bg-gray-200 w-[24px] h-[24px] rounded-md" }, Ja = /* @__PURE__ */ S({
444
+ }), at = { class: "hover:bg-gray-200 w-[24px] h-[24px] rounded-md" }, tl = /* @__PURE__ */ S({
425
445
  __name: "index",
426
446
  props: {
427
447
  saveText: {},
@@ -432,31 +452,31 @@ const ja = async (s, a, t) => {
432
452
  drawerSaveAs: { type: Function }
433
453
  },
434
454
  setup(s) {
435
- const { useToken: a } = Le, { token: t } = a(), e = b(!1), n = s, i = n.editorCtrl;
436
- ge(j.EditorControl, i), $(
455
+ const { useToken: t } = Le, { token: e } = t(), a = x(!1), n = s, i = n.editorCtrl;
456
+ ge(j.EditorControl, i), T(
437
457
  () => i.visible.value,
438
458
  (o) => {
439
- e.value = o ?? !1;
459
+ a.value = o ?? !1;
440
460
  }
441
- ), W(() => {
442
- e.value = i.visible.value ?? !1;
461
+ ), V(() => {
462
+ a.value = i.visible.value ?? !1;
443
463
  });
444
- const u = () => {
445
- n.drawerSave ? n.drawerSave() : i && Pe(i);
464
+ const c = () => {
465
+ n.drawerSave ? n.drawerSave() : i && Ee(i);
446
466
  }, p = () => {
447
- n.drawerSaveAs ? n.drawerSaveAs() : i && Ge(i);
467
+ n.drawerSaveAs ? n.drawerSaveAs() : i && Ze(i);
448
468
  }, d = () => {
449
- Je(i);
469
+ ea(i);
450
470
  };
451
- return (o, f) => (m(), _(l(yt), {
452
- open: e.value,
453
- "onUpdate:open": f[0] || (f[0] = (r) => e.value = r),
471
+ return (o, f) => (m(), b(l(Ca), {
472
+ open: a.value,
473
+ "onUpdate:open": f[0] || (f[0] = (r) => a.value = r),
454
474
  "get-container": !1,
455
475
  closable: !1,
456
476
  "header-style": {
457
477
  height: "40px",
458
478
  padding: "10px 6px 10px 16px",
459
- backgroundColor: l(t).colorBgLayout
479
+ backgroundColor: l(e).colorBgLayout
460
480
  },
461
481
  "body-style": {
462
482
  padding: "10px 16px"
@@ -472,8 +492,8 @@ const ja = async (s, a, t) => {
472
492
  onClose: d
473
493
  }, {
474
494
  extra: h(() => [
475
- T("div", Xt, [
476
- y(l(U), {
495
+ $("div", at, [
496
+ k(l(z), {
477
497
  class: "top-[-2px] left-[2px] w-6 h-6",
478
498
  icon: "icon-new",
479
499
  angle: 45,
@@ -486,42 +506,42 @@ const ja = async (s, a, t) => {
486
506
  ])
487
507
  ]),
488
508
  default: h(() => [
489
- D(o.$slots, "default")
509
+ I(o.$slots, "default")
490
510
  ]),
491
511
  footer: h(() => [
492
- y(l(le), null, {
512
+ k(l(te), null, {
493
513
  default: h(() => [
494
- o.cancelText !== "" ? (m(), _(l(B), {
514
+ o.cancelText !== "" ? (m(), b(l(B), {
495
515
  key: 0,
496
516
  onClick: d
497
517
  }, {
498
518
  default: h(() => [
499
- R(F(o.cancelText ?? "取消"), 1)
519
+ M(P(o.cancelText ?? "取消"), 1)
500
520
  ]),
501
521
  _: 1
502
- })) : k("", !0),
503
- o.saveAsText !== "" && l(i).saveAsBtnVisible !== !1 ? (m(), _(l(B), {
522
+ })) : y("", !0),
523
+ o.saveAsText !== "" && l(i).saveAsBtnVisible !== !1 ? (m(), b(l(B), {
504
524
  key: 1,
505
525
  onClick: p,
506
526
  type: "primary",
507
527
  loading: l(i).isFormSaving.value
508
528
  }, {
509
529
  default: h(() => [
510
- R(F(o.saveAsText ?? "另存为"), 1)
530
+ M(P(o.saveAsText ?? "另存为"), 1)
511
531
  ]),
512
532
  _: 1
513
- }, 8, ["loading"])) : k("", !0),
514
- o.saveText !== "" && l(i).saveBtnVisible !== !1 ? (m(), _(l(B), {
533
+ }, 8, ["loading"])) : y("", !0),
534
+ o.saveText !== "" && l(i).saveBtnVisible !== !1 ? (m(), b(l(B), {
515
535
  key: 2,
516
- onClick: u,
536
+ onClick: c,
517
537
  type: "primary",
518
538
  loading: l(i).isFormSaving.value
519
539
  }, {
520
540
  default: h(() => [
521
- R(F(o.saveText ?? "保存"), 1)
541
+ M(P(o.saveText ?? "保存"), 1)
522
542
  ]),
523
543
  _: 1
524
- }, 8, ["loading"])) : k("", !0)
544
+ }, 8, ["loading"])) : y("", !0)
525
545
  ]),
526
546
  _: 1
527
547
  })
@@ -529,7 +549,7 @@ const ja = async (s, a, t) => {
529
549
  _: 3
530
550
  }, 8, ["open", "header-style"]));
531
551
  }
532
- }), Xa = /* @__PURE__ */ S({
552
+ }), ll = /* @__PURE__ */ S({
533
553
  __name: "index",
534
554
  props: {
535
555
  labelWidth: {},
@@ -537,13 +557,13 @@ const ja = async (s, a, t) => {
537
557
  editorCtrl: {}
538
558
  },
539
559
  setup(s) {
540
- const a = s, t = a.editorCtrl ?? ne(j.EditorControl, void 0);
541
- return ge(j.LabelWidth, a.labelWidth), (e, n) => {
542
- const i = se("submit");
543
- return H((m(), _(l(ze), {
544
- "label-col": { flex: a.labelWidth ?? "85px" },
560
+ const t = s, e = t.editorCtrl ?? ne(j.EditorControl, void 0);
561
+ return ge(j.LabelWidth, t.labelWidth), (a, n) => {
562
+ const i = le("submit");
563
+ return H((m(), b(l(Ue), {
564
+ "label-col": { flex: t.labelWidth ?? "85px" },
545
565
  "wrapper-col": {
546
- flex: a.wrapperWidth ?? "1 0 280px"
566
+ flex: t.wrapperWidth ?? "1 0 280px"
547
567
  },
548
568
  style: {
549
569
  display: "flex",
@@ -551,22 +571,22 @@ const ja = async (s, a, t) => {
551
571
  }
552
572
  }, {
553
573
  default: h(() => [
554
- D(e.$slots, "default")
574
+ I(a.$slots, "default")
555
575
  ]),
556
576
  _: 3
557
577
  }, 8, ["label-col", "wrapper-col"])), [
558
578
  [
559
579
  i,
560
580
  () => {
561
- l(t) && l(Pe)(l(t));
581
+ l(e) && l(Ee)(l(e));
562
582
  }
563
583
  ]
564
584
  ]);
565
585
  };
566
586
  }
567
- }), Zt = {
587
+ }), tt = {
568
588
  class: /* @__PURE__ */ N(["relative mb-1"])
569
- }, ea = { class: "flex-grow" }, ta = { class: "w-8 mt-[-2px]" }, Za = /* @__PURE__ */ S({
589
+ }, lt = { class: "flex-grow" }, st = { class: "w-8 mt-[-2px]" }, sl = /* @__PURE__ */ S({
570
590
  inheritAttrs: !1,
571
591
  __name: "formItem",
572
592
  props: {
@@ -577,69 +597,69 @@ const ja = async (s, a, t) => {
577
597
  nextLine: { type: Boolean }
578
598
  },
579
599
  setup(s) {
580
- const a = s, t = q(), e = ne(j.EditorControl, void 0), n = ne(j.LabelWidth, "85px") ?? "85px", i = Ee(a, e), u = b(!1);
600
+ const t = s, e = X(), a = ne(j.EditorControl, void 0), n = ne(j.LabelWidth, "85px") ?? "85px", i = Pe(t, a), c = x(!1);
581
601
  setTimeout(() => {
582
- u.value = !0;
602
+ c.value = !0;
583
603
  }, 30);
584
604
  const p = (o, f) => {
585
605
  if (!f)
586
606
  return;
587
607
  const [r, ...v] = o;
588
608
  return o.length === 1 ? f[r] : p(v, f[r].fields);
589
- }, d = Z(() => {
609
+ }, d = J(() => {
590
610
  var f;
591
- if (!a.rule)
611
+ if (!t.rule)
592
612
  return !1;
593
- const o = p(a.rule.split("."), (f = e == null ? void 0 : e.formRules) == null ? void 0 : f.value);
594
- return o ? o.required ?? !0 : (kt.error(`"${a.label}" 的验证规则 \`${a.rule}\` 不存在`), i.value.errClass = "text-[#ff4d4f]", i.value.msg = `规则 \`${a.rule}\` 不存在,请检查代码!`, !0);
613
+ const o = p(t.rule.split("."), (f = a == null ? void 0 : a.formRules) == null ? void 0 : f.value);
614
+ return o ? o.required ?? !0 : (Ta.error(`"${t.label}" 的验证规则 \`${t.rule}\` 不存在`), i.value.errClass = "text-[#ff4d4f]", i.value.msg = `规则 \`${t.rule}\` 不存在,请检查代码!`, !0);
595
615
  });
596
- return (o, f) => (m(), w("div", Zt, [
597
- u.value ? (m(), _(l(Ue), E({
616
+ return (o, f) => (m(), w("div", tt, [
617
+ c.value ? (m(), b(l(ze), F({
598
618
  key: 0,
599
619
  required: d.value,
600
620
  class: "relative"
601
- }, l(t), {
621
+ }, l(e), {
602
622
  class: [o.nextLine ? "mb-0" : o.rule ? "" : "mb-3"]
603
623
  }), {
604
624
  label: h(() => [
605
- T("span", {
625
+ $("span", {
606
626
  class: N([l(i).errClass ? "text-[#ff4d4f]" : "", "w-full"])
607
- }, F(o.label), 3)
627
+ }, P(o.label), 3)
608
628
  ]),
609
629
  default: h(() => [
610
- o.nextLine ? k("", !0) : (m(), w("div", {
630
+ o.nextLine ? y("", !0) : (m(), w("div", {
611
631
  key: 0,
612
632
  class: N(["flex items-center", o.width ? o.width : "w-full"])
613
633
  }, [
614
- T("div", ea, [
615
- D(o.$slots, "default")
634
+ $("div", lt, [
635
+ I(o.$slots, "default")
616
636
  ]),
617
- T("div", ta, [
618
- D(o.$slots, "helper", {}, () => [
619
- o.helper ? (m(), _(l(Gt), {
637
+ $("div", st, [
638
+ I(o.$slots, "helper", {}, () => [
639
+ o.helper ? (m(), b(l(et), {
620
640
  key: 0,
621
641
  text: o.helper
622
- }, null, 8, ["text"])) : k("", !0)
642
+ }, null, 8, ["text"])) : y("", !0)
623
643
  ])
624
644
  ])
625
645
  ], 2))
626
646
  ]),
627
647
  _: 3
628
- }, 16, ["required", "class"])) : k("", !0),
648
+ }, 16, ["required", "class"])) : y("", !0),
629
649
  o.nextLine ? (m(), w("div", {
630
650
  key: 1,
631
651
  class: N(["w-[95%] flex items-center relative", [o.nextLine ? o.rule ? "mb-7" : "mb-3" : ""]])
632
652
  }, [
633
- D(o.$slots, "default")
634
- ], 2)) : k("", !0),
653
+ I(o.$slots, "default")
654
+ ], 2)) : y("", !0),
635
655
  l(i).errClass ? (m(), w("span", {
636
656
  key: 2,
637
- style: ce({ left: o.nextLine ? "2px" : l(n) }),
657
+ style: ue({ left: o.nextLine ? "2px" : l(n) }),
638
658
  class: "absolute bottom-[3px] text-[12px] text-[#ff4d4fcc]"
639
- }, F(l(i).msg), 5)) : k("", !0)
659
+ }, P(l(i).msg), 5)) : y("", !0)
640
660
  ]));
641
661
  }
642
- }), aa = { class: "w-1/3 relative mb-1" }, la = { class: "flex items-center w-[90%]" }, sa = { class: "flex-grow pl-1" }, ra = {
662
+ }), rt = { class: "w-1/3 relative mb-1" }, ot = { class: "flex items-center w-[90%]" }, nt = { class: "flex-grow pl-1" }, it = {
643
663
  key: 0,
644
664
  class: "absolute bottom-[3px] left-[85px] text-[12px] text-[#ff4d4fcc] block"
645
665
  }, pe = /* @__PURE__ */ S({
@@ -651,19 +671,19 @@ const ja = async (s, a, t) => {
651
671
  rule: {}
652
672
  },
653
673
  setup(s) {
654
- const a = s, t = q(), e = ne(j.EditorControl, void 0), n = Ee(a, e);
655
- return (i, u) => (m(), w("div", aa, [
656
- y(l(Ue), E({
674
+ const t = s, e = X(), a = ne(j.EditorControl, void 0), n = Pe(t, a);
675
+ return (i, c) => (m(), w("div", rt, [
676
+ k(l(ze), F({
657
677
  required: i.rule !== void 0,
658
678
  class: "w-[90%] relative"
659
- }, l(t), {
679
+ }, l(e), {
660
680
  class: [i.rule ? "" : "mb-3", i.width],
661
681
  labelCol: { span: 6 }
662
682
  }), Be({
663
683
  default: h(() => [
664
- T("div", la, [
665
- T("div", sa, [
666
- D(i.$slots, "default")
684
+ $("div", ot, [
685
+ $("div", nt, [
686
+ I(i.$slots, "default")
667
687
  ])
668
688
  ])
669
689
  ]),
@@ -672,17 +692,17 @@ const ja = async (s, a, t) => {
672
692
  i.label ? {
673
693
  name: "label",
674
694
  fn: h(() => [
675
- T("span", {
695
+ $("span", {
676
696
  class: N([l(n).errClass ? "text-[#ff4d4f]" : "", "w-full"])
677
- }, F(i.label), 3)
697
+ }, P(i.label), 3)
678
698
  ]),
679
699
  key: "0"
680
700
  } : void 0
681
701
  ]), 1040, ["required", "class"]),
682
- l(n).msg ? (m(), w("span", ra, F(l(n).msg), 1)) : k("", !0)
702
+ l(n).msg ? (m(), w("span", it, P(l(n).msg), 1)) : y("", !0)
683
703
  ]));
684
704
  }
685
- }), el = /* @__PURE__ */ S({
705
+ }), rl = /* @__PURE__ */ S({
686
706
  __name: "index",
687
707
  props: {
688
708
  search: {},
@@ -690,56 +710,56 @@ const ja = async (s, a, t) => {
690
710
  likeFields: {}
691
711
  },
692
712
  emits: ["update:search"],
693
- setup(s, { emit: a }) {
694
- const t = s, e = a, n = b(0), i = b(0), u = b(0), p = (c) => {
713
+ setup(s, { emit: t }) {
714
+ const e = s, a = t, n = x(0), i = x(0), c = x(0), p = (u) => {
695
715
  let g = 0;
696
- for (let C = 0; C < c.length; C++)
697
- typeof c[C].type == "object" && g++;
716
+ for (let C = 0; C < u.length; C++)
717
+ typeof u[C].type == "object" && g++;
698
718
  return g;
699
- }, d = vt(), o = () => {
700
- i.value = 0, u.value = 0, d.default && (i.value = p(d.default({}))), t.gridCtrl.searchBar && d.control && (u.value = p(d.control({}))), n.value = 2 - (i.value + u.value) % 3;
719
+ }, d = xa(), o = () => {
720
+ i.value = 0, c.value = 0, d.default && (i.value = p(d.default({}))), e.gridCtrl.searchBar && d.control && (c.value = p(d.control({}))), n.value = 2 - (i.value + c.value) % 3;
701
721
  };
702
- $(
703
- () => t.gridCtrl.searchBar,
722
+ T(
723
+ () => e.gridCtrl.searchBar,
704
724
  () => {
705
725
  o();
706
726
  }
707
727
  );
708
- const f = JSON.parse(JSON.stringify(t.search));
709
- W(() => {
728
+ const f = JSON.parse(JSON.stringify(e.search));
729
+ V(() => {
710
730
  var g;
711
731
  o();
712
- let c = { ...t.search };
713
- t.gridCtrl.gridQuery = {
714
- ...t.gridCtrl.gridQuery,
732
+ let u = { ...e.search };
733
+ e.gridCtrl.gridQuery = {
734
+ ...e.gridCtrl.gridQuery,
715
735
  Query: {
716
- ...(g = t.gridCtrl.gridQuery) == null ? void 0 : g.Query,
717
- ...c
736
+ ...(g = e.gridCtrl.gridQuery) == null ? void 0 : g.Query,
737
+ ...u
718
738
  }
719
739
  };
720
740
  });
721
741
  const r = () => {
722
742
  var g;
723
- let c = { ...t.search };
724
- if (t.likeFields)
725
- for (const C of t.likeFields)
726
- c[C] && (c[C] = { $like: "%" + c[C] + "%" });
727
- t.gridCtrl.gridQuery = {
728
- ...t.gridCtrl.gridQuery,
743
+ let u = { ...e.search };
744
+ if (e.likeFields)
745
+ for (const C of e.likeFields)
746
+ u[C] && (u[C] = { $like: "%" + u[C] + "%" });
747
+ e.gridCtrl.gridQuery = {
748
+ ...e.gridCtrl.gridQuery,
729
749
  Query: {
730
- ...(g = t.gridCtrl.gridQuery) == null ? void 0 : g.Query,
731
- ...c
750
+ ...(g = e.gridCtrl.gridQuery) == null ? void 0 : g.Query,
751
+ ...u
732
752
  }
733
- }, t.gridCtrl.pageNo.value = 1, t.gridCtrl.reload.value = !0;
753
+ }, e.gridCtrl.pageNo.value = 1, e.gridCtrl.reload.value = !0;
734
754
  }, v = () => {
735
- const c = JSON.parse(JSON.stringify(f));
736
- for (const g in t.search)
737
- c[g] === void 0 && (c[g] = void 0);
738
- e("update:search", c);
755
+ const u = JSON.parse(JSON.stringify(f));
756
+ for (const g in e.search)
757
+ u[g] === void 0 && (u[g] = void 0);
758
+ a("update:search", u);
739
759
  };
740
- return (c, g) => {
741
- const C = se("submit");
742
- return i.value + u.value > 0 ? H((m(), _(l(ze), {
760
+ return (u, g) => {
761
+ const C = le("submit");
762
+ return i.value + c.value > 0 ? H((m(), b(l(Ue), {
743
763
  key: 0,
744
764
  "label-col": { flex: "60px" },
745
765
  style: {
@@ -749,41 +769,41 @@ const ja = async (s, a, t) => {
749
769
  class: "flex mb-[10px]"
750
770
  }, {
751
771
  default: h(() => [
752
- D(c.$slots, "default"),
753
- c.gridCtrl.searchBar ? D(c.$slots, "control", { key: 0 }) : k("", !0),
754
- n.value >= 1 ? (m(), _(pe, {
772
+ I(u.$slots, "default"),
773
+ u.gridCtrl.searchBar ? I(u.$slots, "control", { key: 0 }) : y("", !0),
774
+ n.value >= 1 ? (m(), b(pe, {
755
775
  key: 1,
756
776
  class: "w-1/3"
757
- })) : k("", !0),
758
- n.value >= 2 ? (m(), _(pe, {
777
+ })) : y("", !0),
778
+ n.value >= 2 ? (m(), b(pe, {
759
779
  key: 2,
760
780
  class: "w-1/3"
761
- })) : k("", !0),
762
- i.value || c.gridCtrl.searchBar ? (m(), _(pe, {
781
+ })) : y("", !0),
782
+ i.value || u.gridCtrl.searchBar ? (m(), b(pe, {
763
783
  key: 3,
764
784
  class: "w-1/3 flex justify-end text-right pr-5",
765
785
  "wrapper-col": { flex: "auto" }
766
786
  }, {
767
787
  default: h(() => [
768
- y(l(le), null, {
788
+ k(l(te), null, {
769
789
  default: h(() => [
770
- y(l(B), {
790
+ k(l(B), {
771
791
  type: "primary",
772
792
  onClick: r,
773
793
  icon: "icon-search"
774
794
  }, {
775
795
  default: h(() => g[0] || (g[0] = [
776
- R("搜索")
796
+ M("搜索")
777
797
  ])),
778
798
  _: 1,
779
799
  __: [0]
780
800
  }),
781
- y(l(B), {
801
+ k(l(B), {
782
802
  onClick: v,
783
803
  icon: "icon-reset"
784
804
  }, {
785
805
  default: h(() => g[1] || (g[1] = [
786
- R("重置")
806
+ M("重置")
787
807
  ])),
788
808
  _: 1,
789
809
  __: [1]
@@ -793,22 +813,22 @@ const ja = async (s, a, t) => {
793
813
  })
794
814
  ]),
795
815
  _: 1
796
- })) : k("", !0)
816
+ })) : y("", !0)
797
817
  ]),
798
818
  _: 3
799
819
  })), [
800
820
  [C, r]
801
- ]) : k("", !0);
821
+ ]) : y("", !0);
802
822
  };
803
823
  }
804
- }), oa = /* @__PURE__ */ S({
824
+ }), ct = /* @__PURE__ */ S({
805
825
  __name: "tableOperate",
806
826
  props: {
807
827
  record: {},
808
828
  gridCtrl: {}
809
829
  },
810
830
  setup(s) {
811
- const a = s, t = a.gridCtrl, e = Z(() => ue.currentRoute.value.path), n = [
831
+ const t = s, e = t.gridCtrl, a = J(() => ce.currentRoute.value.path), n = [
812
832
  {
813
833
  key: "Edit",
814
834
  label: "编辑",
@@ -816,7 +836,7 @@ const ja = async (s, a, t) => {
816
836
  visible: !0,
817
837
  role: ["Super", "Admin"],
818
838
  permit: ":edit",
819
- click: () => Xe(t, a.record)
839
+ click: () => aa(e, t.record)
820
840
  },
821
841
  {
822
842
  key: "Delete",
@@ -828,36 +848,36 @@ const ja = async (s, a, t) => {
828
848
  permit: ":delete",
829
849
  confirm: !0,
830
850
  confirmText: "是否删除此记录?",
831
- click: () => Ze(t, a.record)
851
+ click: () => ta(e, t.record)
832
852
  }
833
- ], { buttons: i, menus: u } = xe(n, 0, t.operates), p = (d) => {
853
+ ], { buttons: i, menus: c } = _e(n, 0, e.operates), p = (d) => {
834
854
  if (typeof d.disabled == "boolean")
835
855
  return d.disabled;
836
856
  if (typeof d.disabled == "function")
837
- return V(d, a.record) ?? !1;
838
- if (a.record.hasOwnProperty("Enabled"))
857
+ return K(d, t.record) ?? !1;
858
+ if (t.record.hasOwnProperty("Enabled"))
839
859
  switch (d.key) {
840
860
  case "Edit":
841
- return !a.record.Enabled;
861
+ return !t.record.Enabled;
842
862
  case "Delete":
843
- return !!a.record.Enabled;
863
+ return !!t.record.Enabled;
844
864
  }
845
865
  return !1;
846
866
  };
847
867
  return (d, o) => {
848
- const f = se("auth");
849
- return m(), _(l(Ce), { theme: {
868
+ const f = le("auth");
869
+ return m(), b(l(Ce), { theme: {
850
870
  token: {
851
871
  fontSize: 13
852
872
  }
853
873
  } }, {
854
874
  default: h(() => [
855
- y(l(le), null, {
875
+ k(l(te), null, {
856
876
  default: h(() => [
857
- (m(!0), w(M, null, z(l(i), (r) => (m(), w(M, {
877
+ (m(!0), w(O, null, U(l(i), (r) => (m(), w(O, {
858
878
  key: r.key
859
879
  }, [
860
- l(X)(r, a.record) ? (m(), _(l(wt), {
880
+ l(G)(r, t.record) ? (m(), b(l($a), {
861
881
  key: 0,
862
882
  disabled: p(r) || !r.confirm,
863
883
  cancelText: "否",
@@ -865,72 +885,72 @@ const ja = async (s, a, t) => {
865
885
  title: r.confirmText,
866
886
  okButtonProps: { size: "small" },
867
887
  cancelButtonProps: { size: "small" },
868
- onConfirm: (v) => l(Y)(r, l(t).page, l(t), a.record, !0)
888
+ onConfirm: (v) => l(Y)(r, l(e).page, l(e), t.record, !0)
869
889
  }, {
870
890
  default: h(() => [
871
- l(X)(r, a.record) ? H((m(), _(l(Ye), {
891
+ l(G)(r, t.record) ? H((m(), b(l(Ye), {
872
892
  key: r.key,
873
893
  type: r.type ?? "text",
874
894
  danger: r.danger,
875
895
  disabled: p(r),
876
- onClick: (v) => l(Y)(r, l(t).page, l(t), a.record),
896
+ onClick: (v) => l(Y)(r, l(e).page, l(e), t.record),
877
897
  size: "small",
878
- style: ce({
898
+ style: ue({
879
899
  padding: r.type ?? "0px 4px"
880
900
  })
881
901
  }, {
882
902
  default: h(() => [
883
- R(F(r.label), 1)
903
+ M(P(r.label), 1)
884
904
  ]),
885
905
  _: 2
886
906
  }, 1032, ["type", "danger", "disabled", "onClick", "style"])), [
887
- [f, { url: e.value, role: r.role, permit: r.permit }]
888
- ]) : k("", !0)
907
+ [f, { url: a.value, role: r.role, permit: r.permit }]
908
+ ]) : y("", !0)
889
909
  ]),
890
910
  _: 2
891
- }, 1032, ["disabled", "title", "onConfirm"])) : k("", !0)
911
+ }, 1032, ["disabled", "title", "onConfirm"])) : y("", !0)
892
912
  ], 64))), 128)),
893
- d.record.Enabled == 1 ? (m(), _(l(Ce), {
913
+ d.record.Enabled == 1 ? (m(), b(l(Ce), {
894
914
  key: 0,
895
915
  autoInsertSpaceInButton: !1
896
916
  }, {
897
917
  default: h(() => [
898
- l(u).length > 0 ? (m(), _(l(St), {
918
+ l(c).length > 0 ? (m(), b(l(Ia), {
899
919
  key: 0,
900
920
  size: "small"
901
921
  }, {
902
922
  overlay: h(() => [
903
- y(l(_e), null, {
923
+ k(l(be), null, {
904
924
  default: h(() => [
905
- (m(!0), w(M, null, z(l(u), (r) => (m(), w(M, {
925
+ (m(!0), w(O, null, U(l(c), (r) => (m(), w(O, {
906
926
  key: r.key
907
927
  }, [
908
- l(X)(r, a.record) ? H((m(), _(l(be), {
928
+ l(G)(r, t.record) ? H((m(), b(l(xe), {
909
929
  key: 0,
910
930
  disabled: p(r),
911
- onClick: (v) => l(Y)(r, l(t).page, l(t), a.record)
931
+ onClick: (v) => l(Y)(r, l(e).page, l(e), t.record)
912
932
  }, {
913
933
  default: h(() => [
914
- R(F(r.label), 1)
934
+ M(P(r.label), 1)
915
935
  ]),
916
936
  _: 2
917
937
  }, 1032, ["disabled", "onClick"])), [
918
- [f, { url: e.value, role: r.role, permit: r.permit }]
919
- ]) : k("", !0)
938
+ [f, { url: a.value, role: r.role, permit: r.permit }]
939
+ ]) : y("", !0)
920
940
  ], 64))), 128))
921
941
  ]),
922
942
  _: 1
923
943
  })
924
944
  ]),
925
945
  default: h(() => [
926
- o[0] || (o[0] = R(" 更多 "))
946
+ o[0] || (o[0] = M(" 更多 "))
927
947
  ]),
928
948
  _: 1,
929
949
  __: [0]
930
- })) : k("", !0)
950
+ })) : y("", !0)
931
951
  ]),
932
952
  _: 1
933
- })) : k("", !0)
953
+ })) : y("", !0)
934
954
  ]),
935
955
  _: 1
936
956
  })
@@ -939,93 +959,93 @@ const ja = async (s, a, t) => {
939
959
  });
940
960
  };
941
961
  }
942
- }), na = { class: "inline-flex [&>div]:ml-[-1px] first:[&>div]:ml-0" }, ia = /* @__PURE__ */ S({
962
+ }), ut = { class: "inline-flex [&>div]:ml-[-1px] first:[&>div]:ml-0" }, dt = /* @__PURE__ */ S({
943
963
  __name: "icontool",
944
964
  props: {
945
965
  gridCtrl: {}
946
966
  },
947
967
  setup(s) {
948
- const a = s, t = a.gridCtrl, { tools: e } = Ht(a.gridCtrl), n = me();
949
- $(
950
- () => t.selectable.value,
968
+ const t = s, e = t.gridCtrl, { tools: a } = Ja(t.gridCtrl), n = me();
969
+ T(
970
+ () => e.selectable.value,
951
971
  (p) => {
952
- K(e, "tool.export.excel.selected") && (K(e, "tool.export.excel.selected").disabled = !p), K(e, "tool.export.pdf.selected") && (K(e, "tool.export.pdf.selected").disabled = !p);
972
+ W(a, "tool.export.excel.selected") && (W(a, "tool.export.excel.selected").disabled = !p), W(a, "tool.export.pdf.selected") && (W(a, "tool.export.pdf.selected").disabled = !p);
953
973
  }
954
974
  );
955
- const i = b([]);
956
- $(
957
- () => t.columns.value,
975
+ const i = x([]);
976
+ T(
977
+ () => e.columns.value,
958
978
  (p) => {
959
979
  i.value = Fe(p, !0);
960
980
  },
961
981
  { deep: !0, immediate: !0 }
962
982
  );
963
- const u = () => {
964
- t.columns.value.splice(0, t.columns.value.length, ...i.value), n.setTableColumns(ue.currentRoute.value.path, t.columns.value);
983
+ const c = () => {
984
+ e.columns.value.splice(0, e.columns.value.length, ...i.value), n.setTableColumns(ce.currentRoute.value.path, e.columns.value);
965
985
  };
966
- return (p, d) => (m(), w("div", na, [
967
- (m(!0), w(M, null, z(l(e), (o, f) => (m(), w(M, {
986
+ return (p, d) => (m(), w("div", ut, [
987
+ (m(!0), w(O, null, U(l(a), (o, f) => (m(), w(O, {
968
988
  key: o.key
969
989
  }, [
970
- l(X)(o) && o.dropdown ? (m(), _(l(ve), {
990
+ l(G)(o) && o.dropdown ? (m(), b(l(ve), {
971
991
  key: 0,
972
992
  placement: "bottomRight",
973
993
  class: "p-0 rounded-none"
974
994
  }, {
975
995
  overlay: h(() => [
976
- T("div", {
996
+ $("div", {
977
997
  class: N(["min-w-[100px] bg-white rounded shadow-md p-4", o.dropdownClass])
978
998
  }, [
979
- o.dropdown === "headset" ? (m(), _(l(Ot), {
999
+ o.dropdown === "headset" ? (m(), b(l(Ua), {
980
1000
  key: 0,
981
1001
  modelValue: i.value,
982
1002
  "onUpdate:modelValue": d[1] || (d[1] = (r) => i.value = r),
983
1003
  "item-key": "dataIndex",
984
- onEnd: u,
1004
+ onEnd: c,
985
1005
  handle: ".drag-handle"
986
1006
  }, {
987
1007
  default: h(() => [
988
- (m(!0), w(M, null, z(i.value, (r) => (m(), w("div", {
1008
+ (m(!0), w(O, null, U(i.value, (r) => (m(), w("div", {
989
1009
  key: r.name,
990
1010
  onClick: d[0] || (d[0] = ae(() => {
991
1011
  }, ["stop"])),
992
1012
  class: "flex items-center mb-2 last:mb-0 select-none"
993
1013
  }, [
994
- d[2] || (d[2] = T("span", { class: "drag-handle mr-2 text-gray-400 hover:text-gray-600 cursor-move" }, "⋮⋮", -1)),
995
- y(l(Ct), {
1014
+ d[2] || (d[2] = $("span", { class: "drag-handle mr-2 text-gray-400 hover:text-gray-600 cursor-move" }, "⋮⋮", -1)),
1015
+ k(l(Da), {
996
1016
  checked: r.visible !== !1,
997
1017
  onChange: ae(
998
1018
  (v) => {
999
- l(jt)(r, v.target.checked);
1019
+ l(Ga)(r, v.target.checked);
1000
1020
  },
1001
1021
  ["stop", "prevent"]
1002
1022
  ),
1003
1023
  class: "text-gray-700 hover:text-gray-900 select-none"
1004
1024
  }, {
1005
1025
  default: h(() => [
1006
- R(F(r.title), 1)
1026
+ M(P(r.title), 1)
1007
1027
  ]),
1008
1028
  _: 2
1009
1029
  }, 1032, ["checked", "onChange"])
1010
1030
  ]))), 128))
1011
1031
  ]),
1012
1032
  _: 1
1013
- }, 8, ["modelValue"])) : k("", !0)
1033
+ }, 8, ["modelValue"])) : y("", !0)
1014
1034
  ], 2)
1015
1035
  ]),
1016
1036
  default: h(() => [
1017
- y(l(B), {
1037
+ k(l(B), {
1018
1038
  class: N([
1019
1039
  "px-[8px] py-[2px] relative border-[#ccc] bg-[#fcfcfc] rounded-none text-[#666] hover:z-10",
1020
1040
  f === 0 ? "rounded-l-[5px]" : "",
1021
- f === l(e).length - 1 ? "rounded-r-[5px]" : ""
1041
+ f === l(a).length - 1 ? "rounded-r-[5px]" : ""
1022
1042
  ]),
1023
- disabled: l(V)(o),
1043
+ disabled: l(K)(o),
1024
1044
  tiptext: o.label,
1025
- onClick: (r) => l(Y)(o, l(t).page, l(t))
1045
+ onClick: (r) => l(Y)(o, l(e).page, l(e))
1026
1046
  }, {
1027
1047
  default: h(() => [
1028
- y(l(U), {
1048
+ k(l(z), {
1029
1049
  icon: o.icon,
1030
1050
  class: "w-[18px] h-[18.5px]",
1031
1051
  clickable: ""
@@ -1035,39 +1055,39 @@ const ja = async (s, a, t) => {
1035
1055
  }, 1032, ["class", "disabled", "tiptext", "onClick"])
1036
1056
  ]),
1037
1057
  _: 2
1038
- }, 1024)) : !o.children && l(X)(o) ? (m(), _(l(B), {
1058
+ }, 1024)) : !o.children && l(G)(o) ? (m(), b(l(B), {
1039
1059
  key: 1,
1040
1060
  class: N([
1041
1061
  "px-[8px] py-[2px] relative border-[#ccc] bg-[#fcfcfc] rounded-none text-[#666] hover:z-10",
1042
1062
  f === 0 ? "rounded-l-[5px]" : "",
1043
- f === l(e).length - 1 ? "rounded-r-[5px]" : ""
1063
+ f === l(a).length - 1 ? "rounded-r-[5px]" : ""
1044
1064
  ]),
1045
- disabled: l(V)(o),
1065
+ disabled: l(K)(o),
1046
1066
  tiptext: o.label,
1047
- onClick: (r) => l(Y)(o, l(t).page, l(t))
1067
+ onClick: (r) => l(Y)(o, l(e).page, l(e))
1048
1068
  }, {
1049
1069
  default: h(() => [
1050
- y(l(U), {
1070
+ k(l(z), {
1051
1071
  icon: o.icon,
1052
1072
  class: "w-[18px] h-[18.5px]",
1053
1073
  clickable: ""
1054
1074
  }, null, 8, ["icon"])
1055
1075
  ]),
1056
1076
  _: 2
1057
- }, 1032, ["class", "disabled", "tiptext", "onClick"])) : l(X)(o) ? (m(), _(l(ve), {
1077
+ }, 1032, ["class", "disabled", "tiptext", "onClick"])) : l(G)(o) ? (m(), b(l(ve), {
1058
1078
  key: 2,
1059
1079
  placement: "bottomRight",
1060
1080
  class: "p-0 rounded-none"
1061
1081
  }, {
1062
1082
  overlay: h(() => [
1063
- y(l(_e), null, {
1083
+ k(l(be), null, {
1064
1084
  default: h(() => [
1065
- (m(!0), w(M, null, z(o.children, (r) => (m(), _(l(be), {
1085
+ (m(!0), w(O, null, U(o.children, (r) => (m(), b(l(xe), {
1066
1086
  key: r.key,
1067
- disabled: l(V)(r)
1087
+ disabled: l(K)(r)
1068
1088
  }, {
1069
1089
  default: h(() => [
1070
- R(F(r.label), 1)
1090
+ M(P(r.label), 1)
1071
1091
  ]),
1072
1092
  _: 2
1073
1093
  }, 1032, ["disabled"]))), 128))
@@ -1076,19 +1096,19 @@ const ja = async (s, a, t) => {
1076
1096
  }, 1024)
1077
1097
  ]),
1078
1098
  default: h(() => [
1079
- y(l(B), {
1099
+ k(l(B), {
1080
1100
  class: N([
1081
1101
  "!w-[46px] px-[5px] py-[2px] relative border-[#ccc] bg-[#fcfcfc] rounded-none text-[#666] hover:z-10",
1082
1102
  f === 0 ? "rounded-l-[5px]" : ""
1083
1103
  ]),
1084
- disabled: l(V)(o),
1104
+ disabled: l(K)(o),
1085
1105
  tiptext: o.label,
1086
1106
  icon: o.icon,
1087
1107
  iconProps: { class: "w-[19px] h-[19px]" },
1088
- onClick: (r) => l(Y)(o, l(t).page, l(t))
1108
+ onClick: (r) => l(Y)(o, l(e).page, l(e))
1089
1109
  }, {
1090
1110
  default: h(() => [
1091
- y(l(U), {
1111
+ k(l(z), {
1092
1112
  icon: "icon-down-arrow",
1093
1113
  class: "w-[12px] h-[12px]"
1094
1114
  })
@@ -1097,18 +1117,18 @@ const ja = async (s, a, t) => {
1097
1117
  }, 1032, ["class", "disabled", "tiptext", "icon", "onClick"])
1098
1118
  ]),
1099
1119
  _: 2
1100
- }, 1024)) : k("", !0)
1120
+ }, 1024)) : y("", !0)
1101
1121
  ], 64))), 128))
1102
1122
  ]));
1103
1123
  }
1104
- }), ua = { class: "flex justify-between mb-[10px]" }, ca = { key: 1 }, da = 3, pa = /* @__PURE__ */ S({
1124
+ }), pt = { class: "flex justify-between mb-[10px]" }, ft = { key: 1 }, vt = 3, mt = /* @__PURE__ */ S({
1105
1125
  __name: "index",
1106
1126
  props: {
1107
1127
  gridCtrl: {},
1108
1128
  editorCtrl: {}
1109
1129
  },
1110
1130
  setup(s) {
1111
- const a = s, t = a.gridCtrl, e = t.page, n = a.editorCtrl, i = Z(() => ue.currentRoute.value.path), u = [
1131
+ const t = s, e = t.gridCtrl, a = e.page, n = t.editorCtrl, i = J(() => ce.currentRoute.value.path), c = [
1112
1132
  {
1113
1133
  key: "New",
1114
1134
  label: "新增",
@@ -1118,20 +1138,20 @@ const ja = async (s, a, t) => {
1118
1138
  role: ["Super", "Admin"],
1119
1139
  permit: ":new",
1120
1140
  // 默认仅受权限码控制
1121
- click: () => et(n)
1141
+ click: () => la(n)
1122
1142
  }
1123
- ], p = b([]), d = b([]);
1124
- return $(
1143
+ ], p = x([]), d = x([]);
1144
+ return T(
1125
1145
  () => {
1126
1146
  var o;
1127
- return (o = t.buttons) == null ? void 0 : o.value;
1147
+ return (o = e.buttons) == null ? void 0 : o.value;
1128
1148
  },
1129
1149
  () => {
1130
1150
  var r;
1131
- const { buttons: o, menus: f } = xe(
1132
- u,
1133
- t.flat !== void 0 ? t.flat : da,
1134
- (r = t.buttons) == null ? void 0 : r.value
1151
+ const { buttons: o, menus: f } = _e(
1152
+ c,
1153
+ e.flat !== void 0 ? e.flat : vt,
1154
+ (r = e.buttons) == null ? void 0 : r.value
1135
1155
  );
1136
1156
  p.value.splice(0, p.value.length, ...o), d.value.splice(0, d.value.length, ...f);
1137
1157
  },
@@ -1140,36 +1160,36 @@ const ja = async (s, a, t) => {
1140
1160
  immediate: !0
1141
1161
  }
1142
1162
  ), (o, f) => {
1143
- const r = se("auth");
1144
- return m(), w("div", ua, [
1145
- y(l(le), null, {
1163
+ const r = le("auth");
1164
+ return m(), w("div", pt, [
1165
+ k(l(te), null, {
1146
1166
  default: h(() => [
1147
- (m(!0), w(M, null, z(p.value, (v) => H((m(), _(l(B), {
1167
+ (m(!0), w(O, null, U(p.value, (v) => H((m(), b(l(B), {
1148
1168
  key: v.key,
1149
1169
  type: v.type,
1150
1170
  danger: v.danger,
1151
- disabled: l(V)(v),
1171
+ disabled: l(K)(v),
1152
1172
  icon: v.icon,
1153
- onClick: (c) => l(Y)(v, l(e), l(t))
1173
+ onClick: (u) => l(Y)(v, l(a), l(e))
1154
1174
  }, {
1155
1175
  default: h(() => [
1156
- R(F(v.label), 1)
1176
+ M(P(v.label), 1)
1157
1177
  ]),
1158
1178
  _: 2
1159
1179
  }, 1032, ["type", "danger", "disabled", "icon", "onClick"])), [
1160
1180
  [r, { url: i.value, role: v.role, permit: v.permit }]
1161
1181
  ])), 128)),
1162
- d.value.length > 0 ? (m(), _(l(ve), { key: 0 }, {
1182
+ d.value.length > 0 ? (m(), b(l(ve), { key: 0 }, {
1163
1183
  overlay: h(() => [
1164
- y(l(_e), null, {
1184
+ k(l(be), null, {
1165
1185
  default: h(() => [
1166
- (m(!0), w(M, null, z(d.value, (v) => H((m(), _(l(be), {
1186
+ (m(!0), w(O, null, U(d.value, (v) => H((m(), b(l(xe), {
1167
1187
  key: v.key,
1168
- disabled: l(V)(v),
1169
- onClick: (c) => l(Y)(v, l(e), l(t))
1188
+ disabled: l(K)(v),
1189
+ onClick: (u) => l(Y)(v, l(a), l(e))
1170
1190
  }, {
1171
1191
  default: h(() => [
1172
- R(F(v.label), 1)
1192
+ M(P(v.label), 1)
1173
1193
  ]),
1174
1194
  _: 2
1175
1195
  }, 1032, ["disabled", "onClick"])), [
@@ -1180,30 +1200,30 @@ const ja = async (s, a, t) => {
1180
1200
  })
1181
1201
  ]),
1182
1202
  default: h(() => [
1183
- y(l(B), null, {
1203
+ k(l(B), null, {
1184
1204
  default: h(() => f[0] || (f[0] = [
1185
- R(" 更多操作 ")
1205
+ M(" 更多操作 ")
1186
1206
  ])),
1187
1207
  _: 1,
1188
1208
  __: [0]
1189
1209
  })
1190
1210
  ]),
1191
1211
  _: 1
1192
- })) : k("", !0),
1193
- p.value.length === 0 && d.value.length === 0 ? (m(), w("span", ca)) : k("", !0)
1212
+ })) : y("", !0),
1213
+ p.value.length === 0 && d.value.length === 0 ? (m(), w("span", ft)) : y("", !0)
1194
1214
  ]),
1195
1215
  _: 1
1196
1216
  }),
1197
- y(l(le), { class: "mr-1" }, {
1217
+ k(l(te), { class: "mr-1" }, {
1198
1218
  default: h(() => [
1199
- (m(), _(mt(ia), { "grid-ctrl": l(t) }, null, 8, ["grid-ctrl"]))
1219
+ (m(), b(_a(dt), { "grid-ctrl": l(e) }, null, 8, ["grid-ctrl"]))
1200
1220
  ]),
1201
1221
  _: 1
1202
1222
  })
1203
1223
  ]);
1204
1224
  };
1205
1225
  }
1206
- }), tl = /* @__PURE__ */ S({
1226
+ }), ol = /* @__PURE__ */ S({
1207
1227
  inheritAttrs: !1,
1208
1228
  __name: "index",
1209
1229
  props: {
@@ -1211,127 +1231,127 @@ const ja = async (s, a, t) => {
1211
1231
  primaryKey: {},
1212
1232
  tableData: {},
1213
1233
  rowSelection: {},
1214
- pagination: { type: [Boolean, Object] },
1234
+ pagination: { type: [Boolean, Object], default: void 0 },
1215
1235
  scroll: {},
1216
- statusDisabled: { type: Function }
1236
+ statusDisabled: {}
1217
1237
  },
1218
1238
  setup(s) {
1219
- const a = s, t = q(), e = a.gridCtrl, n = Z(() => ue.currentRoute.value.path);
1220
- e && (e.pageNo.value = 1, e.total.value = 0, e.pageSize.value = e.pageSize.value);
1221
- const i = b(e.pageSize.value), u = b(e.pageNo.value), p = b([]), d = b({
1239
+ const t = s, e = X(), a = t.gridCtrl, n = J(() => ce.currentRoute.value.path);
1240
+ a && (a.pageNo.value = 1, a.total.value = 0, a.pageSize.value = a.pageSize.value);
1241
+ const i = x(a.pageSize.value), c = x(a.pageNo.value), p = x([]), d = x({
1222
1242
  total: 0,
1223
1243
  current: 1,
1224
1244
  pageSize: i.value,
1225
- showTotal: (c) => `共 ${c} 条记录`,
1226
- onChange: (c, g) => {
1227
- d.value !== !1 && (d.value.current = c, d.value.pageSize = g), i.value = g, u.value = c, e && (e.pageNo.value = c, e.pageSize.value = g, e.remotePage && ke(e));
1245
+ showTotal: (u) => `共 ${u} 条记录`,
1246
+ onChange: (u, g) => {
1247
+ d.value !== !1 && (d.value.current = u, d.value.pageSize = g), i.value = g, c.value = u, a && (a.pageNo.value = u, a.pageSize.value = g, a.remotePage && ke(a));
1228
1248
  },
1229
- ...a.pagination
1249
+ ...t.pagination === !1 ? {} : t.pagination
1230
1250
  });
1231
- a.pagination === !1 && (d.value = !1), $(
1232
- () => e.tableData.value,
1233
- (c) => {
1234
- c && (p.value = c, d.value !== !1 && (d.value.total = e.total.value ?? 0, d.value.current = e.pageNo.value ?? 1, d.value.pageSize = e.pageSize.value ?? 10));
1251
+ t.pagination === !1 && (d.value = !1), T(
1252
+ () => a.tableData.value,
1253
+ (u) => {
1254
+ u && (p.value = u, d.value !== !1 && (d.value.total = a.total.value ?? 0, d.value.current = a.pageNo.value ?? 1, d.value.pageSize = a.pageSize.value ?? 10));
1235
1255
  },
1236
1256
  { immediate: !0 }
1237
- ), $(
1238
- () => a.tableData,
1239
- (c) => {
1240
- c && (p.value = c, d.value !== !1 && (d.value.total = c.length, d.value.current = e.pageNo.value ?? 1, d.value.pageSize = e.pageSize.value ?? 10));
1257
+ ), T(
1258
+ () => t.tableData,
1259
+ (u) => {
1260
+ u && (p.value = u, d.value !== !1 && (d.value.total = u.length, d.value.current = a.pageNo.value ?? 1, d.value.pageSize = a.pageSize.value ?? 10));
1241
1261
  },
1242
1262
  { immediate: !0 }
1243
1263
  );
1244
- const o = b(e.columns.value), f = {
1245
- onChange: (c, g) => {
1246
- e && (e.selectKeys.value = c, e.selectRows.value = g);
1264
+ const o = x(a.columns.value), f = {
1265
+ onChange: (u, g) => {
1266
+ a && (a.selectKeys.value = u, a.selectRows.value = g);
1247
1267
  },
1248
1268
  columnWidth: "30px",
1249
- getCheckboxProps: (c) => ({
1250
- disabled: c.Enabled === 0
1269
+ getCheckboxProps: (u) => ({
1270
+ disabled: u.Enabled === 0
1251
1271
  }),
1252
- ...a.rowSelection
1253
- }, r = b(f);
1254
- $(
1255
- () => e.selectable.value,
1256
- (c) => {
1257
- e && (r.value = c ? f : void 0);
1272
+ ...t.rowSelection
1273
+ }, r = x(f);
1274
+ T(
1275
+ () => a.selectable.value,
1276
+ (u) => {
1277
+ a && (r.value = u ? f : void 0);
1258
1278
  },
1259
1279
  { immediate: !0 }
1260
- ), $(
1261
- () => e.columns.value,
1280
+ ), T(
1281
+ () => a.columns.value,
1262
1282
  () => {
1263
- o.value = Fe(e.columns.value);
1283
+ o.value = Fe(a.columns.value);
1264
1284
  },
1265
1285
  { deep: !0, immediate: !0 }
1266
1286
  );
1267
- const v = b(!1);
1268
- return ht(() => {
1269
- v.value && e && (e.reload.value = !0);
1270
- }), W(async () => {
1271
- ge(j.GridControl, e), e.tableData.value ? (p.value = e.tableData.value, e.total.value = p.value.length, d.value !== !1 && (d.value.total = e.total.value ?? 0)) : e.autoload !== !1 && (e.remotePage ? p.value = (await ke(e)).rows : p.value = await tt(e)), setTimeout(() => {
1287
+ const v = x(!1);
1288
+ return ya(() => {
1289
+ v.value && a && (a.reload.value = !0);
1290
+ }), V(async () => {
1291
+ ge(j.GridControl, a), a.tableData.value ? (p.value = a.tableData.value, a.total.value = p.value.length, d.value !== !1 && (d.value.total = a.total.value ?? 0)) : a.autoload !== !1 && (a.remotePage ? p.value = (await ke(a)).rows : p.value = await sa(a)), setTimeout(() => {
1272
1292
  v.value = !0;
1273
1293
  }, 50);
1274
- }), (c, g) => {
1275
- var P, O;
1276
- const C = se("auth");
1277
- return m(), w(M, null, [
1278
- (P = l(e).buttons) != null && P.value.length || (O = l(e).tools) != null && O.length ? (m(), _(pa, {
1294
+ }), (u, g) => {
1295
+ var D, A;
1296
+ const C = le("auth");
1297
+ return m(), w(O, null, [
1298
+ (D = l(a).buttons) != null && D.value.length || (A = l(a).tools) != null && A.length ? (m(), b(mt, {
1279
1299
  key: 0,
1280
- "grid-ctrl": l(e),
1281
- "editor-ctrl": l(e).editor
1282
- }, null, 8, ["grid-ctrl", "editor-ctrl"])) : k("", !0),
1283
- v.value ? (m(), _(l(We), E({
1300
+ "grid-ctrl": l(a),
1301
+ "editor-ctrl": l(a).editor
1302
+ }, null, 8, ["grid-ctrl", "editor-ctrl"])) : y("", !0),
1303
+ v.value ? (m(), b(l(Ve), F({
1284
1304
  key: 1,
1285
1305
  class: "w-full",
1286
- "row-key": a.primaryKey ?? l(e).primaryKey ?? "Id",
1306
+ "row-key": t.primaryKey ?? l(a).primaryKey ?? "Id",
1287
1307
  "data-source": p.value,
1288
- loading: l(e).isGridLoading.value,
1308
+ loading: l(a).isGridLoading.value,
1289
1309
  columns: o.value,
1290
1310
  pagination: d.value,
1291
1311
  "row-selection": r.value,
1292
- scroll: a.scroll || { x: 700, y: 1e3 },
1293
- size: l(e).tableSize.value,
1312
+ scroll: t.scroll || { x: 700, y: 1e3 },
1313
+ size: l(a).tableSize.value,
1294
1314
  bordered: ""
1295
- }, l(t)), {
1296
- bodyCell: h((x) => {
1297
- var I, A;
1315
+ }, l(e)), {
1316
+ bodyCell: h((_) => {
1317
+ var E, R;
1298
1318
  return [
1299
- D(c.$slots, "bodyCell", {
1300
- column: x == null ? void 0 : x.column,
1301
- record: x == null ? void 0 : x.record
1319
+ I(u.$slots, "bodyCell", {
1320
+ column: _ == null ? void 0 : _.column,
1321
+ record: _ == null ? void 0 : _.record
1302
1322
  }),
1303
- l(e) && ((I = x == null ? void 0 : x.column) == null ? void 0 : I.dataIndex) === "enabled" ? H((m(), _(at, {
1323
+ l(a) && ((E = _ == null ? void 0 : _.column) == null ? void 0 : E.dataIndex) === "enabled" ? H((m(), b(ra, {
1304
1324
  key: 0,
1305
- checked: x.record.Enabled,
1306
- "onUpdate:checked": (J) => x.record.Enabled = J,
1307
- disabled: c.statusDisabled ? c.statusDisabled(x.record) : !1,
1325
+ checked: _.record.Enabled,
1326
+ "onUpdate:checked": (se) => _.record.Enabled = se,
1327
+ disabled: u.statusDisabled ? u.statusDisabled(_.record) : !1,
1308
1328
  data: l(Ne).EnableDisable,
1309
- onClick: (J) => l(lt)(l(e), x.record),
1329
+ onClick: (se) => l(oa)(l(a), _.record),
1310
1330
  class: N([
1311
1331
  "w-[58px]",
1312
- c.statusDisabled && c.statusDisabled(x.record) ? "cursor-not-allowed disabled" : ""
1332
+ u.statusDisabled && u.statusDisabled(_.record) ? "cursor-not-allowed disabled" : ""
1313
1333
  ]),
1314
- loading: x == null ? void 0 : x.record.isLoading
1334
+ loading: _ == null ? void 0 : _.record.isLoading
1315
1335
  }, null, 8, ["checked", "onUpdate:checked", "disabled", "data", "onClick", "class", "loading"])), [
1316
1336
  [C, { url: n.value, role: ["Super", "Admin"], permit: ":enabled" }, "disable"]
1317
- ]) : k("", !0),
1318
- l(e) && ((A = x == null ? void 0 : x.column) == null ? void 0 : A.dataIndex) === "operation" ? D(c.$slots, "operate", {
1337
+ ]) : y("", !0),
1338
+ l(a) && ((R = _ == null ? void 0 : _.column) == null ? void 0 : R.dataIndex) === "operation" ? I(u.$slots, "operate", {
1319
1339
  key: 1,
1320
- record: x == null ? void 0 : x.record
1340
+ record: _ == null ? void 0 : _.record
1321
1341
  }, () => [
1322
- y(oa, {
1323
- record: x == null ? void 0 : x.record,
1324
- "grid-ctrl": l(e)
1342
+ k(ct, {
1343
+ record: _ == null ? void 0 : _.record,
1344
+ "grid-ctrl": l(a)
1325
1345
  }, null, 8, ["record", "grid-ctrl"])
1326
- ]) : k("", !0)
1346
+ ]) : y("", !0)
1327
1347
  ];
1328
1348
  }),
1329
1349
  _: 3
1330
- }, 16, ["row-key", "data-source", "loading", "columns", "pagination", "row-selection", "scroll", "size"])) : k("", !0)
1350
+ }, 16, ["row-key", "data-source", "loading", "columns", "pagination", "row-selection", "scroll", "size"])) : y("", !0)
1331
1351
  ], 64);
1332
1352
  };
1333
1353
  }
1334
- }), fa = { class: "flex items-center gap-1" }, va = { class: "text-nowrap" }, al = /* @__PURE__ */ S({
1354
+ }), ht = { class: "flex items-center gap-1" }, gt = { class: "text-nowrap" }, nl = /* @__PURE__ */ S({
1335
1355
  __name: "index",
1336
1356
  props: {
1337
1357
  treeCtrl: {},
@@ -1339,41 +1359,41 @@ const ja = async (s, a, t) => {
1339
1359
  expandedKeys: {}
1340
1360
  },
1341
1361
  emits: ["select", "update:selectedKeys"],
1342
- setup(s, { emit: a }) {
1343
- const t = s, e = q(), n = t.treeCtrl, i = b([]);
1344
- $(
1362
+ setup(s, { emit: t }) {
1363
+ const e = s, a = X(), n = e.treeCtrl, i = x([]);
1364
+ T(
1345
1365
  () => n.data.value,
1346
1366
  (f) => {
1347
- f && (i.value = n.fieldMap ? oe(n.fieldMap, f) : f, o(t.selectedKeys ?? []));
1367
+ f && (i.value = n.fieldMap ? oe(n.fieldMap, f) : f, o(e.selectedKeys ?? []));
1348
1368
  }
1349
1369
  );
1350
- const u = a, p = b([]);
1351
- $(
1352
- () => t.selectedKeys,
1370
+ const c = t, p = x([]);
1371
+ T(
1372
+ () => e.selectedKeys,
1353
1373
  (f) => {
1354
1374
  f && (p.value = f);
1355
1375
  },
1356
1376
  { immediate: !0 }
1357
1377
  );
1358
- const d = b(["-"]);
1359
- $(
1360
- () => t.expandedKeys,
1378
+ const d = x(["-"]);
1379
+ T(
1380
+ () => e.expandedKeys,
1361
1381
  (f) => {
1362
1382
  f && (d.value = f);
1363
1383
  },
1364
1384
  { immediate: !0 }
1365
1385
  );
1366
1386
  const o = (f, r) => {
1367
- f.length === 0 && f.push(...p.value), f.length > 0 && (n.node.value = r == null ? void 0 : r.node.dataRef), p.value = f, u("update:selectedKeys", f), u("select", f, r);
1387
+ f.length === 0 && f.push(...p.value), f.length > 0 && (n.node.value = r == null ? void 0 : r.node.dataRef), p.value = f, c("update:selectedKeys", f), c("select", f, r);
1368
1388
  };
1369
- return W(() => {
1389
+ return V(() => {
1370
1390
  n.fieldMap || (n.fieldMap = {
1371
1391
  label: "Name",
1372
1392
  key: "Id",
1373
1393
  value: "Id",
1374
1394
  icon: "Icon"
1375
- }), n.data.value ? i.value = oe(n.fieldMap, n.data.value) : n.autoload && Re(n);
1376
- }), (f, r) => (m(), _(l($t), E({
1395
+ }), n.data.value ? i.value = oe(n.fieldMap, n.data.value) : n.autoload && Me(n);
1396
+ }), (f, r) => (m(), b(l(Ea), F({
1377
1397
  class: "w-full",
1378
1398
  "show-line": !0,
1379
1399
  "tree-data": i.value,
@@ -1382,106 +1402,103 @@ const ja = async (s, a, t) => {
1382
1402
  "selected-keys": p.value,
1383
1403
  loading: l(n).isTreeLoading,
1384
1404
  onSelect: o
1385
- }, l(e)), {
1386
- title: h(({ key: v, label: c, icon: g }) => [
1387
- D(f.$slots, "title", {
1388
- label: c,
1405
+ }, l(a)), {
1406
+ title: h(({ key: v, label: u, icon: g }) => [
1407
+ I(f.$slots, "title", {
1408
+ label: u,
1389
1409
  key: v,
1390
1410
  icon: g
1391
1411
  }, () => [
1392
- T("div", fa, [
1393
- y(l(U), { icon: g }, null, 8, ["icon"]),
1394
- T("span", va, F(c), 1)
1412
+ $("div", ht, [
1413
+ k(l(z), { icon: g }, null, 8, ["icon"]),
1414
+ $("span", gt, P(u), 1)
1395
1415
  ])
1396
1416
  ])
1397
1417
  ]),
1398
1418
  _: 3
1399
1419
  }, 16, ["tree-data", "expanded-keys", "selected-keys", "loading"]));
1400
1420
  }
1401
- }), ll = /* @__PURE__ */ G(st, [["__scopeId", "data-v-7a45a338"]]), ma = { class: "relative w-[248px] max-w-[248px]" }, ha = {
1421
+ }), il = /* @__PURE__ */ q(na, [["__scopeId", "data-v-668fc090"]]), bt = { class: "relative w-[248px] max-w-[248px]" }, xt = {
1402
1422
  key: 0,
1403
1423
  class: "absolute z-10 mt-[5px] mr-[10px] text-[#999] flex items-center"
1404
- }, ga = /* @__PURE__ */ S({
1424
+ }, _t = /* @__PURE__ */ S({
1405
1425
  inheritAttrs: !1,
1406
1426
  __name: "index",
1407
- props: rt,
1427
+ props: ia,
1408
1428
  emits: ["change", "update:labels", "update:value"],
1409
- setup(s, { emit: a }) {
1410
- var C, P, O;
1411
- const t = s, e = q(), n = L(), i = ot(t.url, t), u = t.optionCtrl ?? i.optionCtrl;
1412
- u.inputFactory = gt(n);
1413
- const p = b({
1414
- ...u == null ? void 0 : u.url,
1415
- url: ((C = u == null ? void 0 : u.url) == null ? void 0 : C.url) || "",
1416
- fieldMap: (u == null ? void 0 : u.fieldMap) || ((P = u == null ? void 0 : u.url) == null ? void 0 : P.fieldMap),
1417
- params: (u == null ? void 0 : u.params) || ((O = u == null ? void 0 : u.url) == null ? void 0 : O.params),
1429
+ setup(s, { emit: t }) {
1430
+ var C, D, A;
1431
+ const e = s, a = X(), n = L(), i = ca(e.url, e), c = e.optionCtrl ?? i.optionCtrl;
1432
+ c.inputFactory = ka(n);
1433
+ const p = x({
1434
+ ...c == null ? void 0 : c.url,
1435
+ url: ((C = c == null ? void 0 : c.url) == null ? void 0 : C.url) || "",
1436
+ fieldMap: (c == null ? void 0 : c.fieldMap) || ((D = c == null ? void 0 : c.url) == null ? void 0 : D.fieldMap),
1437
+ params: (c == null ? void 0 : c.params) || ((A = c == null ? void 0 : c.url) == null ? void 0 : A.params),
1418
1438
  loadingText: !1
1419
- }), { editorCtrl: d, errInfo: o, labelText: f } = n, r = b(e.placeholder);
1420
- $(
1439
+ }), { editorCtrl: d, errInfo: o, labelText: f } = n, r = x(a.placeholder);
1440
+ T(
1421
1441
  () => p.value.loading,
1422
- (x) => {
1423
- x ? r.value = "" : r.value || (r.value = "请选择" + f.value);
1442
+ (_) => {
1443
+ _ ? r.value = "" : r.value || (r.value = "请选择" + f.value);
1424
1444
  },
1425
1445
  { immediate: !0 }
1426
1446
  );
1427
- const v = a;
1447
+ const v = t;
1428
1448
  n.inputEmit = v;
1429
- const c = b((u == null ? void 0 : u.options.value) || []);
1430
- u && $(
1431
- () => u.options.value,
1432
- (x) => {
1433
- c.value = x || [];
1449
+ const u = x((c == null ? void 0 : c.options.value) || []);
1450
+ c && T(
1451
+ () => c.options.value,
1452
+ (_) => {
1453
+ u.value = _ || [];
1434
1454
  },
1435
1455
  { immediate: !0, deep: !0 }
1436
1456
  );
1437
- const g = (x, I) => {
1438
- if (!I || I.length === 0) {
1457
+ const g = (_, E) => {
1458
+ if (!E || E.length === 0) {
1439
1459
  v("update:labels", []), v("update:value", []);
1440
1460
  return;
1441
1461
  }
1442
- const A = I.map((J) => J.label);
1443
- v("update:labels", A), v(
1444
- "update:value",
1445
- I.map((J) => J.value)
1446
- ), o != null && o.value.errClass && d && Q(d);
1462
+ const R = E.map((Ge) => Ge.value), se = fa(c, e, R), qe = va(se);
1463
+ v("update:labels", qe), v("update:value", R), o != null && o.value.errClass && d && Q(d);
1447
1464
  };
1448
- return W(() => {
1465
+ return V(() => {
1449
1466
  p.value && !p.value.fieldMap && (p.value.fieldMap = {
1450
1467
  title: "Name",
1451
1468
  label: "Name",
1452
1469
  value: "Id",
1453
1470
  key: "Id"
1454
- }), u && nt(u.autoload, u, t);
1455
- }), _t(() => {
1456
- u && it(u, t);
1457
- }), (x, I) => {
1458
- var A;
1459
- return m(), w("div", ma, [
1460
- c.value.length ? k("", !0) : (m(), w("div", ha, [
1461
- y(l(ut), { class: "text-[#555] mx-[5px] !ml-[10px] !w-4 !h-4" }),
1462
- I[0] || (I[0] = T("span", null, "数据加载中...", -1))
1471
+ }), c && ua(c.autoload, c, e);
1472
+ }), wa(() => {
1473
+ c && da(c, e);
1474
+ }), (_, E) => {
1475
+ var R;
1476
+ return m(), w("div", bt, [
1477
+ u.value.length ? y("", !0) : (m(), w("div", xt, [
1478
+ k(l(pa), { class: "text-[#555] mx-[5px] !ml-[10px] !w-4 !h-4" }),
1479
+ E[0] || (E[0] = $("span", null, "数据加载中...", -1))
1463
1480
  ])),
1464
- y(l(Tt), E({
1465
- options: c.value,
1466
- class: [(A = l(o)) == null ? void 0 : A.errClass],
1481
+ k(l(Pa), F({
1482
+ options: u.value,
1483
+ class: [(R = l(o)) == null ? void 0 : R.errClass],
1467
1484
  "allow-clear": !0,
1468
- placeholder: c.value.length > 0 ? "请选择" + l(f) : "",
1485
+ placeholder: u.value.length > 0 ? "请选择" + l(f) : "",
1469
1486
  onChange: g
1470
- }, l(e)), null, 16, ["options", "class", "placeholder"])
1487
+ }, l(a)), null, 16, ["options", "class", "placeholder"])
1471
1488
  ]);
1472
1489
  };
1473
1490
  }
1474
- }), sl = /* @__PURE__ */ G(ga, [["__scopeId", "data-v-c93fe667"]]), rl = /* @__PURE__ */ G(ct, [["__scopeId", "data-v-64193a41"]]);
1491
+ }), cl = /* @__PURE__ */ q(_t, [["__scopeId", "data-v-7f0def6e"]]), ul = /* @__PURE__ */ q(ma, [["__scopeId", "data-v-64193a41"]]);
1475
1492
  function ie() {
1476
1493
  return ie = Object.assign ? Object.assign.bind() : function(s) {
1477
- for (var a = 1; a < arguments.length; a++) {
1478
- var t = arguments[a];
1479
- for (var e in t) ({}).hasOwnProperty.call(t, e) && (s[e] = t[e]);
1494
+ for (var t = 1; t < arguments.length; t++) {
1495
+ var e = arguments[t];
1496
+ for (var a in e) ({}).hasOwnProperty.call(e, a) && (s[a] = e[a]);
1480
1497
  }
1481
1498
  return s;
1482
1499
  }, ie.apply(null, arguments);
1483
1500
  }
1484
- const _a = {
1501
+ const yt = {
1485
1502
  locale: "zh_CN",
1486
1503
  today: "今天",
1487
1504
  now: "此刻",
@@ -1508,7 +1525,7 @@ const _a = {
1508
1525
  nextDecade: "下一年代",
1509
1526
  previousCentury: "上一世纪",
1510
1527
  nextCentury: "下一世纪"
1511
- }, ba = {
1528
+ }, kt = {
1512
1529
  placeholder: "请选择时间",
1513
1530
  rangePlaceholder: ["开始时间", "结束时间"]
1514
1531
  }, ye = {
@@ -1523,48 +1540,48 @@ const _a = {
1523
1540
  rangeMonthPlaceholder: ["开始月份", "结束月份"],
1524
1541
  rangeQuarterPlaceholder: ["开始季度", "结束季度"],
1525
1542
  rangeWeekPlaceholder: ["开始周", "结束周"]
1526
- }, _a),
1527
- timePickerLocale: ie({}, ba)
1543
+ }, yt),
1544
+ timePickerLocale: ie({}, kt)
1528
1545
  };
1529
1546
  ye.lang.ok = "确定";
1530
- const ol = /* @__PURE__ */ S({
1547
+ const dl = /* @__PURE__ */ S({
1531
1548
  __name: "index",
1532
1549
  props: {
1533
1550
  valueFormat: {}
1534
1551
  },
1535
1552
  setup(s) {
1536
- const a = s, { editorCtrl: t, labelText: e, errInfo: n } = L(), i = () => {
1537
- n != null && n.value.errClass && t && Q(t);
1538
- }, u = b(a.valueFormat ?? "YYYY-MM-DD");
1553
+ const t = s, { editorCtrl: e, labelText: a, errInfo: n } = L(), i = () => {
1554
+ n != null && n.value.errClass && e && Q(e);
1555
+ }, c = x(t.valueFormat ?? "YYYY-MM-DD");
1539
1556
  return (p, d) => {
1540
1557
  var o;
1541
- return m(), _(l(It), {
1558
+ return m(), b(l(Fa), {
1542
1559
  class: N(["w-full", [((o = l(n)) == null ? void 0 : o.errClass) === "error" ? "error !border-red-300 shadow-[0_0_3px_0px_#ff4d4f]" : ""]]),
1543
- placeholder: "请选择" + l(e),
1560
+ placeholder: "请选择" + l(a),
1544
1561
  locale: l(ye),
1545
- valueFormat: u.value,
1562
+ valueFormat: c.value,
1546
1563
  onBlur: i
1547
1564
  }, null, 8, ["class", "placeholder", "locale", "valueFormat"]);
1548
1565
  };
1549
1566
  }
1550
- }), xa = /* @__PURE__ */ S({
1567
+ }), wt = /* @__PURE__ */ S({
1551
1568
  __name: "index",
1552
1569
  props: {
1553
1570
  value: {}
1554
1571
  },
1555
1572
  emits: ["update:value"],
1556
- setup(s, { emit: a }) {
1557
- const { editorCtrl: t, labelText: e, errInfo: n } = L(), i = () => {
1558
- n != null && n.value.errClass && t && Q(t);
1559
- }, u = s, p = a, d = b(u.value);
1560
- $(
1561
- () => u.value,
1573
+ setup(s, { emit: t }) {
1574
+ const { editorCtrl: e, labelText: a, errInfo: n } = L(), i = () => {
1575
+ n != null && n.value.errClass && e && Q(e);
1576
+ }, c = s, p = t, d = x(c.value);
1577
+ T(
1578
+ () => c.value,
1562
1579
  (f) => {
1563
1580
  d.value = f;
1564
1581
  },
1565
1582
  { immediate: !0 }
1566
1583
  // 立即同步初始值
1567
- ), $(
1584
+ ), T(
1568
1585
  () => d.value,
1569
1586
  (f) => {
1570
1587
  if (d.value === "") {
@@ -1578,62 +1595,62 @@ const ol = /* @__PURE__ */ S({
1578
1595
  d.value === "" && (d.value = void 0);
1579
1596
  };
1580
1597
  return (f, r) => {
1581
- var v, c;
1582
- return m(), _(l(te), E({
1598
+ var v, u;
1599
+ return m(), b(l(ee), F({
1583
1600
  class: [
1584
1601
  (v = l(n)) == null ? void 0 : v.errClass,
1585
- ((c = l(n)) == null ? void 0 : c.errClass) === "error" && !f.$slots.addonBefore && !f.$slots.addonAfter ? "!border-red-300 shadow-[0_0_3px_0px_#ff4d4f]" : ""
1602
+ ((u = l(n)) == null ? void 0 : u.errClass) === "error" && !f.$slots.addonBefore && !f.$slots.addonAfter ? "!border-red-300 shadow-[0_0_3px_0px_#ff4d4f]" : ""
1586
1603
  ],
1587
1604
  value: d.value,
1588
1605
  "onUpdate:value": r[0] || (r[0] = (g) => d.value = g),
1589
1606
  autocomplete: "new-password",
1590
1607
  "allow-clear": !0,
1591
- placeholder: "请输入" + l(e),
1608
+ placeholder: "请输入" + l(a),
1592
1609
  onBlur: i,
1593
1610
  onChange: o
1594
1611
  }, f.$attrs), Be({ _: 2 }, [
1595
1612
  f.$slots.addonBefore ? {
1596
1613
  name: "addonBefore",
1597
1614
  fn: h(() => [
1598
- D(f.$slots, "addonBefore")
1615
+ I(f.$slots, "addonBefore")
1599
1616
  ]),
1600
1617
  key: "0"
1601
1618
  } : void 0,
1602
1619
  f.$slots.addonAfter ? {
1603
1620
  name: "addonAfter",
1604
1621
  fn: h(() => [
1605
- D(f.$slots, "addonAfter")
1622
+ I(f.$slots, "addonAfter")
1606
1623
  ]),
1607
1624
  key: "1"
1608
1625
  } : void 0
1609
1626
  ]), 1040, ["class", "value", "placeholder"]);
1610
1627
  };
1611
1628
  }
1612
- }), ya = /* @__PURE__ */ S({
1629
+ }), St = /* @__PURE__ */ S({
1613
1630
  __name: "inputIcon",
1614
1631
  props: {
1615
1632
  value: {}
1616
1633
  },
1617
1634
  emits: ["update:value"],
1618
- setup(s, { emit: a }) {
1619
- const t = s, e = a, n = b(void 0);
1620
- return $(
1621
- () => t.value,
1635
+ setup(s, { emit: t }) {
1636
+ const e = s, a = t, n = x(void 0);
1637
+ return T(
1638
+ () => e.value,
1622
1639
  (i) => {
1623
1640
  n.value = i ?? void 0;
1624
1641
  },
1625
1642
  { immediate: !0 }
1626
- ), $(
1643
+ ), T(
1627
1644
  () => n.value,
1628
1645
  (i) => {
1629
- e("update:value", i);
1646
+ a("update:value", i);
1630
1647
  }
1631
- ), (i, u) => (m(), _(xa, E({
1648
+ ), (i, c) => (m(), b(wt, F({
1632
1649
  value: n.value,
1633
- "onUpdate:value": u[0] || (u[0] = (p) => n.value = p)
1650
+ "onUpdate:value": c[0] || (c[0] = (p) => n.value = p)
1634
1651
  }, i.$attrs), {
1635
1652
  addonBefore: h(() => [
1636
- y(l(U), {
1653
+ k(l(z), {
1637
1654
  class: "!w-4 !h-4",
1638
1655
  icon: n.value
1639
1656
  }, null, 8, ["icon"])
@@ -1641,40 +1658,40 @@ const ol = /* @__PURE__ */ S({
1641
1658
  _: 1
1642
1659
  }, 16, ["value"]));
1643
1660
  }
1644
- }), nl = /* @__PURE__ */ G(ya, [["__scopeId", "data-v-358b82ef"]]), il = /* @__PURE__ */ S({
1661
+ }), pl = /* @__PURE__ */ q(St, [["__scopeId", "data-v-358b82ef"]]), fl = /* @__PURE__ */ S({
1645
1662
  __name: "inputPassword",
1646
1663
  setup(s) {
1647
- const { editorCtrl: a, labelText: t, errInfo: e } = L(), n = () => {
1648
- e != null && e.value.errClass && a && Q(a);
1664
+ const { editorCtrl: t, labelText: e, errInfo: a } = L(), n = () => {
1665
+ a != null && a.value.errClass && t && Q(t);
1649
1666
  };
1650
- return (i, u) => {
1667
+ return (i, c) => {
1651
1668
  var p;
1652
- return m(), _(l(Dt), E({
1653
- class: ((p = l(e)) == null ? void 0 : p.errClass) === "error" ? ["error", "!border-red-300", "shadow-[0_0_3px_0px_#ff4d4f]"] : "",
1669
+ return m(), b(l(Na), F({
1670
+ class: ((p = l(a)) == null ? void 0 : p.errClass) === "error" ? ["error", "!border-red-300", "shadow-[0_0_3px_0px_#ff4d4f]"] : "",
1654
1671
  "allow-clear": !0,
1655
1672
  autocomplete: "new-password",
1656
- placeholder: "请输入" + l(t),
1673
+ placeholder: "请输入" + l(e),
1657
1674
  onBlur: n
1658
1675
  }, i.$attrs), null, 16, ["class", "placeholder"]);
1659
1676
  };
1660
1677
  }
1661
- }), ul = /* @__PURE__ */ S({
1678
+ }), vl = /* @__PURE__ */ S({
1662
1679
  __name: "inputNumber",
1663
1680
  setup(s) {
1664
- const { editorCtrl: a, labelText: t, errInfo: e } = L(), n = () => {
1665
- e != null && e.value.errClass && a && Q(a);
1681
+ const { editorCtrl: t, labelText: e, errInfo: a } = L(), n = () => {
1682
+ a != null && a.value.errClass && t && Q(t);
1666
1683
  };
1667
- return (i, u) => {
1684
+ return (i, c) => {
1668
1685
  var p;
1669
- return m(), _(l(Pt), E({
1670
- class: [[((p = l(e)) == null ? void 0 : p.errClass) === "error" ? "error !border-red-300 shadow-[0_0_3px_0px_#ff4d4f]" : ""], "w-[50%]"],
1686
+ return m(), b(l(Ma), F({
1687
+ class: [[((p = l(a)) == null ? void 0 : p.errClass) === "error" ? "error !border-red-300 shadow-[0_0_3px_0px_#ff4d4f]" : ""], "w-[50%]"],
1671
1688
  onBlur: n,
1672
1689
  "allow-clear": !1,
1673
- placeholder: "请输入" + l(t)
1690
+ placeholder: "请输入" + l(e)
1674
1691
  }, i.$attrs), null, 16, ["class", "placeholder"]);
1675
1692
  };
1676
1693
  }
1677
- }), ka = { class: "flex flex-col gap-2" }, wa = { key: 1 }, cl = /* @__PURE__ */ S({
1694
+ }), Ct = { class: "flex flex-col gap-2" }, Tt = { key: 1 }, ml = /* @__PURE__ */ S({
1678
1695
  __name: "index",
1679
1696
  props: {
1680
1697
  value: {},
@@ -1684,35 +1701,35 @@ const ol = /* @__PURE__ */ S({
1684
1701
  valueHolder: {}
1685
1702
  },
1686
1703
  emits: ["update:value"],
1687
- setup(s, { emit: a }) {
1688
- const t = s, e = a, n = b(!(t.selectList && t.selectList.length > 0)), i = b([]);
1689
- let u = !1;
1704
+ setup(s, { emit: t }) {
1705
+ const e = s, a = t, n = x(!(e.selectList && e.selectList.length > 0)), i = x([]);
1706
+ let c = !1;
1690
1707
  const p = () => {
1691
- t.selectList && t.selectList.length > 0 ? i.value = t.selectList.map((r) => ({
1708
+ e.selectList && e.selectList.length > 0 ? i.value = e.selectList.map((r) => ({
1692
1709
  id: Date.now() + Math.random(),
1693
1710
  text: r.text,
1694
1711
  field: r.field,
1695
1712
  // 如果value中有对应的field,使用value中的值,否则使用selectList中的默认值
1696
- value: t.value[r.field] ?? r.value
1697
- })) : t.value && Object.keys(t.value).length > 0 ? i.value = Object.entries(t.value).map(([r, v]) => ({
1713
+ value: e.value[r.field] ?? r.value
1714
+ })) : e.value && Object.keys(e.value).length > 0 ? i.value = Object.entries(e.value).map(([r, v]) => ({
1698
1715
  id: Date.now() + Math.random(),
1699
1716
  field: r,
1700
1717
  value: v
1701
1718
  })) : i.value = [];
1702
1719
  };
1703
- $(
1704
- () => t.value,
1720
+ T(
1721
+ () => e.value,
1705
1722
  () => {
1706
- u || p(), u = !1;
1723
+ c || p(), c = !1;
1707
1724
  },
1708
1725
  { immediate: !0 }
1709
1726
  );
1710
1727
  const d = () => {
1711
1728
  const r = i.value.reduce(
1712
- (v, c) => (c.field && (v[c.field] = c.value), v),
1729
+ (v, u) => (u.field && (v[u.field] = u.value), v),
1713
1730
  {}
1714
1731
  );
1715
- u = !0, e("update:value", r);
1732
+ c = !0, a("update:value", r);
1716
1733
  }, o = () => {
1717
1734
  i.value.push({
1718
1735
  id: Date.now() + Math.random(),
@@ -1722,66 +1739,66 @@ const ol = /* @__PURE__ */ S({
1722
1739
  }, f = () => {
1723
1740
  d();
1724
1741
  };
1725
- return (r, v) => (m(), w("div", ka, [
1726
- (m(!0), w(M, null, z(i.value, (c) => (m(), w("div", {
1727
- key: c.id,
1742
+ return (r, v) => (m(), w("div", Ct, [
1743
+ (m(!0), w(O, null, U(i.value, (u) => (m(), w("div", {
1744
+ key: u.id,
1728
1745
  class: "flex items-center gap-2"
1729
1746
  }, [
1730
- T("div", {
1747
+ $("div", {
1731
1748
  class: N([r.fieldWidth ? `w-[${r.fieldWidth}%]` : "w-[33%]"])
1732
1749
  }, [
1733
- !r.selectList || r.selectList.length === 0 ? (m(), _(l(te), {
1750
+ !r.selectList || r.selectList.length === 0 ? (m(), b(l(ee), {
1734
1751
  key: 0,
1735
- value: c.field,
1736
- "onUpdate:value": (g) => c.field = g,
1737
- title: c.text || c.field,
1752
+ value: u.field,
1753
+ "onUpdate:value": (g) => u.field = g,
1754
+ title: u.text || u.field,
1738
1755
  class: "w-full",
1739
- placeholder: c.text || r.labelHolder || "配置名",
1756
+ placeholder: u.text || r.labelHolder || "配置名",
1740
1757
  onInput: f,
1741
1758
  disabled: !n.value
1742
- }, null, 8, ["value", "onUpdate:value", "title", "placeholder", "disabled"])) : (m(), w("div", wa, [
1743
- y(l(te), {
1744
- value: c.text,
1745
- "onUpdate:value": (g) => c.text = g,
1746
- title: c.text,
1759
+ }, null, 8, ["value", "onUpdate:value", "title", "placeholder", "disabled"])) : (m(), w("div", Tt, [
1760
+ k(l(ee), {
1761
+ value: u.text,
1762
+ "onUpdate:value": (g) => u.text = g,
1763
+ title: u.text,
1747
1764
  disabled: !0,
1748
1765
  class: "w-[100%]"
1749
1766
  }, null, 8, ["value", "onUpdate:value", "title"]),
1750
- y(l(te), {
1767
+ k(l(ee), {
1751
1768
  type: "hidden",
1752
- value: c.field,
1753
- "onUpdate:value": (g) => c.field = g
1769
+ value: u.field,
1770
+ "onUpdate:value": (g) => u.field = g
1754
1771
  }, null, 8, ["value", "onUpdate:value"])
1755
1772
  ]))
1756
1773
  ], 2),
1757
- v[0] || (v[0] = T("div", { class: "w-[3%]" }, "=", -1)),
1758
- T("div", {
1774
+ v[0] || (v[0] = $("div", { class: "w-[3%]" }, "=", -1)),
1775
+ $("div", {
1759
1776
  class: N([r.fieldWidth ? `w-[${97 - r.fieldWidth}%]` : "w-[64%]"])
1760
1777
  }, [
1761
- y(l(te), {
1762
- value: c.value,
1763
- "onUpdate:value": (g) => c.value = g,
1764
- placeholder: r.valueHolder || "请输入" + c.text || "请输入配置值",
1778
+ k(l(ee), {
1779
+ value: u.value,
1780
+ "onUpdate:value": (g) => u.value = g,
1781
+ placeholder: r.valueHolder || "请输入" + u.text || "请输入配置值",
1765
1782
  onInput: f,
1766
- title: c.value
1783
+ title: u.value
1767
1784
  }, null, 8, ["value", "onUpdate:value", "placeholder", "title"])
1768
1785
  ], 2)
1769
1786
  ]))), 128)),
1770
- n.value ? (m(), _(l(Ye), {
1787
+ n.value ? (m(), b(l(Ye), {
1771
1788
  key: 0,
1772
1789
  onClick: o,
1773
1790
  class: "mt-1 w-[80px] !text-[12px] text-[#666] bg-[#e6f7ff] border-[#b3e0ff] hover:bg-[#b3e0ff] hover:border-[#8abeff]",
1774
1791
  size: "small"
1775
1792
  }, {
1776
1793
  default: h(() => v[1] || (v[1] = [
1777
- R(" 新增配置行 ")
1794
+ M(" 新增配置行 ")
1778
1795
  ])),
1779
1796
  _: 1,
1780
1797
  __: [1]
1781
- })) : k("", !0)
1798
+ })) : y("", !0)
1782
1799
  ]));
1783
1800
  }
1784
- }), Sa = /* @__PURE__ */ G(dt, [["__scopeId", "data-v-cf2cfa24"]]), dl = /* @__PURE__ */ S({
1801
+ }), $t = /* @__PURE__ */ q(ha, [["__scopeId", "data-v-cf2cfa24"]]), hl = /* @__PURE__ */ S({
1785
1802
  __name: "radioStatus",
1786
1803
  props: {
1787
1804
  /**
@@ -1809,13 +1826,13 @@ const ol = /* @__PURE__ */ S({
1809
1826
  }
1810
1827
  },
1811
1828
  setup(s) {
1812
- const a = s, t = b(JSON.parse(JSON.stringify(Ne.getOptions(a.dataKey))));
1813
- return a.all === !0 && t.value.unshift({
1829
+ const t = s, e = x(JSON.parse(JSON.stringify(Ne.getOptions(t.dataKey))));
1830
+ return t.all === !0 && e.value.unshift({
1814
1831
  label: "全部",
1815
- value: a.allValue || [0, 1]
1816
- }), (e, n) => (m(), _(Sa, { data: t.value }, null, 8, ["data"]));
1832
+ value: t.allValue || [0, 1]
1833
+ }), (a, n) => (m(), b($t, { data: e.value }, null, 8, ["data"]));
1817
1834
  }
1818
- }), pl = /* @__PURE__ */ S({
1835
+ }), gl = /* @__PURE__ */ S({
1819
1836
  __name: "index",
1820
1837
  props: {
1821
1838
  startDate: {},
@@ -1823,9 +1840,9 @@ const ol = /* @__PURE__ */ S({
1823
1840
  valueFormat: { default: "YYYY-MM-DD" }
1824
1841
  },
1825
1842
  emits: ["update:startDate", "update:endDate"],
1826
- setup(s, { emit: a }) {
1827
- const t = s, e = a, n = L(), { errInfo: i } = n, u = Z(() => t.valueFormat), p = Z(() => {
1828
- const o = t.startDate, f = t.endDate;
1843
+ setup(s, { emit: t }) {
1844
+ const e = s, a = t, n = L(), { errInfo: i } = n, c = J(() => e.valueFormat), p = J(() => {
1845
+ const o = e.startDate, f = e.endDate;
1829
1846
  if (!(!o || !f))
1830
1847
  try {
1831
1848
  const r = fe(o), v = fe(f);
@@ -1835,43 +1852,43 @@ const ol = /* @__PURE__ */ S({
1835
1852
  }
1836
1853
  }), d = (o, f) => {
1837
1854
  if (!o || !f || f.length !== 2) {
1838
- e("update:startDate", null), e("update:endDate", null);
1855
+ a("update:startDate", null), a("update:endDate", null);
1839
1856
  return;
1840
1857
  }
1841
- e("update:startDate", f[0] || null), e("update:endDate", f[1] || null);
1858
+ a("update:startDate", f[0] || null), a("update:endDate", f[1] || null);
1842
1859
  };
1843
1860
  return (o, f) => {
1844
1861
  var r;
1845
- return m(), _(l(Et), {
1862
+ return m(), b(l(Ra), {
1846
1863
  class: N([((r = l(i)) == null ? void 0 : r.errClass) === "error" ? ["error", "!border-red-300", "shadow-[0_0_3px_0px_#ff4d4f]"] : "", "w-full"]),
1847
1864
  locale: l(ye),
1848
- "value-format": u.value,
1865
+ "value-format": c.value,
1849
1866
  value: p.value,
1850
1867
  onChange: d
1851
1868
  }, null, 8, ["class", "locale", "value-format", "value"]);
1852
1869
  };
1853
1870
  }
1854
- }), fl = /* @__PURE__ */ G(pt, [["__scopeId", "data-v-8e93cef3"]]), vl = /* @__PURE__ */ S({
1871
+ }), bl = /* @__PURE__ */ q(ga, [["__scopeId", "data-v-8e93cef3"]]), xl = /* @__PURE__ */ S({
1855
1872
  __name: "index",
1856
1873
  setup(s) {
1857
- const { editorCtrl: a, labelText: t, errInfo: e } = L(), n = () => {
1858
- e != null && e.value.errClass && a && Q(a);
1874
+ const { editorCtrl: t, labelText: e, errInfo: a } = L(), n = () => {
1875
+ a != null && a.value.errClass && t && Q(t);
1859
1876
  };
1860
- return (i, u) => {
1877
+ return (i, c) => {
1861
1878
  var p;
1862
- return m(), _(l(Ft), E({
1863
- class: ((p = l(e)) == null ? void 0 : p.errClass) === "error" ? ["error", "!border-red-300", "shadow-[0_0_3px_0px_#ff4d4f]"] : "",
1879
+ return m(), b(l(Oa), F({
1880
+ class: ((p = l(a)) == null ? void 0 : p.errClass) === "error" ? ["error", "!border-red-300", "shadow-[0_0_3px_0px_#ff4d4f]"] : "",
1864
1881
  "allow-clear": !0,
1865
- placeholder: "请输入" + l(t),
1882
+ placeholder: "请输入" + l(e),
1866
1883
  onBlur: n,
1867
- onKeyup: u[0] || (u[0] = Se(ae(() => {
1884
+ onKeyup: c[0] || (c[0] = Se(ae(() => {
1868
1885
  }, ["stop"]), ["enter", "native"])),
1869
- onKeydown: u[1] || (u[1] = Se(ae(() => {
1886
+ onKeydown: c[1] || (c[1] = Se(ae(() => {
1870
1887
  }, ["stop"]), ["enter", "native"]))
1871
1888
  }, i.$attrs), null, 16, ["class", "placeholder"]);
1872
1889
  };
1873
1890
  }
1874
- }), Ca = /* @__PURE__ */ S({
1891
+ }), It = /* @__PURE__ */ S({
1875
1892
  __name: "index",
1876
1893
  props: {
1877
1894
  autoload: { type: Boolean },
@@ -1880,55 +1897,55 @@ const ol = /* @__PURE__ */ S({
1880
1897
  value: {}
1881
1898
  },
1882
1899
  emits: ["change", "update:value"],
1883
- setup(s, { emit: a }) {
1884
- const t = s, e = b({ ...t.url }), { editorCtrl: n, labelText: i, errInfo: u } = L(), p = a, d = b([]), o = b([]);
1885
- t.value && t.value.every((r) => {
1900
+ setup(s, { emit: t }) {
1901
+ const e = s, a = x({ ...e.url }), { editorCtrl: n, labelText: i, errInfo: c } = L(), p = t, d = x([]), o = x([]);
1902
+ e.value && e.value.every((r) => {
1886
1903
  o.value.push(r.toString());
1887
- }), $(
1888
- () => t.value,
1904
+ }), T(
1905
+ () => e.value,
1889
1906
  (r) => {
1890
1907
  r && (o.value = r);
1891
1908
  }
1892
1909
  );
1893
1910
  const f = (r) => {
1894
- p("update:value", r), p("change", r), o.value = r, u != null && u.value.errClass && n && Q(n);
1911
+ p("update:value", r), p("change", r), o.value = r, c != null && c.value.errClass && n && Q(n);
1895
1912
  };
1896
- return W(async () => {
1897
- if (e.value) {
1913
+ return V(async () => {
1914
+ if (a.value) {
1898
1915
  const r = n == null ? void 0 : n.page;
1899
- if (e.value.api || (e.value.api = r == null ? void 0 : r.api), e.value.authorize === void 0 && (e.value.authorize = r == null ? void 0 : r.authorize), t.autoload) {
1900
- const v = await Me(n, {
1916
+ if (a.value.api || (a.value.api = r == null ? void 0 : r.api), a.value.authorize === void 0 && (a.value.authorize = r == null ? void 0 : r.authorize), e.autoload) {
1917
+ const v = await Re(n, {
1901
1918
  urlKey: "list",
1902
- url: { ...e.value, url: e.value.url },
1919
+ url: { ...a.value, url: a.value.url },
1903
1920
  loadingText: !1,
1904
- params: t.params
1921
+ params: e.params
1905
1922
  });
1906
1923
  d.value = (v == null ? void 0 : v.data) ?? [];
1907
1924
  }
1908
1925
  }
1909
1926
  }), (r, v) => {
1910
- var c;
1911
- return m(), _(l(Nt), E({
1912
- class: ((c = l(u)) == null ? void 0 : c.errClass) === "error" ? ["error", "!border-red-300", "shadow-[0_0_3px_0px_#ff4d4f]"] : "",
1927
+ var u;
1928
+ return m(), b(l(Aa), F({
1929
+ class: ((u = l(c)) == null ? void 0 : u.errClass) === "error" ? ["error", "!border-red-300", "shadow-[0_0_3px_0px_#ff4d4f]"] : "",
1913
1930
  placeholder: "请输入" + l(i),
1914
1931
  targetKeys: o.value,
1915
1932
  onChange: f
1916
1933
  }, r.$attrs), {
1917
- children: h(({ direction: g, disabled: C, filteredItems: P, onItemSelectAll: O, onItemSelect: x, selectedKeys: I }) => [
1918
- D(r.$slots, "children", {
1934
+ children: h(({ direction: g, disabled: C, filteredItems: D, onItemSelectAll: A, onItemSelect: _, selectedKeys: E }) => [
1935
+ I(r.$slots, "children", {
1919
1936
  direction: g,
1920
1937
  disabled: C,
1921
- filteredItems: P,
1922
- onItemSelectAll: O,
1923
- onItemSelect: x,
1924
- selectedKeys: I
1938
+ filteredItems: D,
1939
+ onItemSelectAll: A,
1940
+ onItemSelect: _,
1941
+ selectedKeys: E
1925
1942
  })
1926
1943
  ]),
1927
1944
  _: 3
1928
1945
  }, 16, ["class", "placeholder", "targetKeys"]);
1929
1946
  };
1930
1947
  }
1931
- }), ml = /* @__PURE__ */ S({
1948
+ }), _l = /* @__PURE__ */ S({
1932
1949
  __name: "transferTable",
1933
1950
  props: {
1934
1951
  /**
@@ -1954,46 +1971,46 @@ const ol = /* @__PURE__ */ S({
1954
1971
  }
1955
1972
  },
1956
1973
  emits: ["update:value"],
1957
- setup(s, { emit: a }) {
1958
- const t = s, e = a, n = b(t.autoload), i = b(t.value), u = b(t.gridCtrl.primaryKey);
1959
- $(
1974
+ setup(s, { emit: t }) {
1975
+ const e = s, a = t, n = x(e.autoload), i = x(e.value), c = x(e.gridCtrl.primaryKey);
1976
+ T(
1960
1977
  () => i.value,
1961
1978
  (o) => {
1962
- e("update:value", o);
1979
+ a("update:value", o);
1963
1980
  }
1964
- ), $(
1965
- () => t.value,
1981
+ ), T(
1982
+ () => e.value,
1966
1983
  (o) => {
1967
1984
  o && (i.value = o);
1968
1985
  }
1969
- ), t.gridCtrl.autoload = !1, t.gridCtrl.remotePage = !1, t.gridCtrl.selectable = b(!0), t.gridCtrl.buttons = b([]), t.gridCtrl.tools = [];
1986
+ ), e.gridCtrl.autoload = !1, e.gridCtrl.remotePage = !1, e.gridCtrl.selectable = x(!0), e.gridCtrl.buttons = x([]), e.gridCtrl.tools = [];
1970
1987
  const p = ({ disabled: o, selectedKeys: f, onItemSelectAll: r, onItemSelect: v }) => ({
1971
- getCheckboxProps: (c) => ({
1988
+ getCheckboxProps: (u) => ({
1972
1989
  // 控制是否禁止
1973
- disabled: o || c.disabled
1990
+ disabled: o || u.disabled
1974
1991
  }),
1975
- onSelectAll(c, g) {
1976
- const C = g.filter((P) => !P.disabled).map(({ [u.value]: P }) => P);
1977
- r(C, c);
1992
+ onSelectAll(u, g) {
1993
+ const C = g.filter((D) => !D.disabled).map(({ [c.value]: D }) => D);
1994
+ r(C, u);
1978
1995
  },
1979
- onSelect({ [u.value]: c }, g) {
1980
- v(c, g);
1996
+ onSelect({ [c.value]: u }, g) {
1997
+ v(u, g);
1981
1998
  },
1982
1999
  selectedRowKeys: f
1983
- }), d = b([]);
1984
- return W(async () => {
2000
+ }), d = x([]);
2001
+ return V(async () => {
1985
2002
  if (n.value) {
1986
- const o = await Me(t.gridCtrl, {
2003
+ const o = await Re(e.gridCtrl, {
1987
2004
  urlKey: "list",
1988
- url: { ...t.gridCtrl.gridUrl, url: t.gridCtrl.gridUrl.url },
1989
- params: t.gridCtrl.gridQuery,
2005
+ url: { ...e.gridCtrl.gridUrl, url: e.gridCtrl.gridUrl.url },
2006
+ params: e.gridCtrl.gridQuery,
1990
2007
  loadingText: !1
1991
2008
  });
1992
2009
  d.value = (o == null ? void 0 : o.data) ?? [];
1993
2010
  }
1994
- }), (o, f) => (m(), _(Ca, E({
2011
+ }), (o, f) => (m(), b(It, F({
1995
2012
  "data-source": d.value,
1996
- "row-key": (r) => r[u.value],
2013
+ "row-key": (r) => r[c.value],
1997
2014
  value: i.value,
1998
2015
  "onUpdate:value": f[0] || (f[0] = (r) => i.value = r),
1999
2016
  "list-style": {
@@ -2003,21 +2020,21 @@ const ol = /* @__PURE__ */ S({
2003
2020
  "show-select-all": !1,
2004
2021
  "show-search": !0,
2005
2022
  "filter-option": (r, v) => {
2006
- for (const c of t.gridCtrl.columns.value)
2007
- if (v[c.dataIndex].toString().indexOf(r) !== -1)
2023
+ for (const u of e.gridCtrl.columns.value)
2024
+ if (v[u.dataIndex].toString().indexOf(r) !== -1)
2008
2025
  return !0;
2009
2026
  return !1;
2010
2027
  }
2011
2028
  }, o.$attrs), {
2012
- children: h(({ filteredItems: r, onItemSelectAll: v, onItemSelect: c, selectedKeys: g }) => [
2013
- y(l(We), {
2029
+ children: h(({ filteredItems: r, onItemSelectAll: v, onItemSelect: u, selectedKeys: g }) => [
2030
+ k(l(Ve), {
2014
2031
  columns: s.gridCtrl.columns.value,
2015
- "row-key": u.value,
2032
+ "row-key": c.value,
2016
2033
  "row-selection": p({
2017
2034
  disabled: !1,
2018
2035
  selectedKeys: g,
2019
2036
  onItemSelectAll: v,
2020
- onItemSelect: c
2037
+ onItemSelect: u
2021
2038
  }),
2022
2039
  bordered: !1,
2023
2040
  size: "small",
@@ -2025,8 +2042,8 @@ const ol = /* @__PURE__ */ S({
2025
2042
  scroll: { x: 300 },
2026
2043
  "custom-row": (C) => ({
2027
2044
  onClick: () => {
2028
- const P = C[u.value];
2029
- c(P, !g.includes(P));
2045
+ const D = C[c.value];
2046
+ u(D, !g.includes(D));
2030
2047
  }
2031
2048
  })
2032
2049
  }, null, 8, ["columns", "row-key", "row-selection", "data-source", "custom-row"])
@@ -2034,7 +2051,7 @@ const ol = /* @__PURE__ */ S({
2034
2051
  _: 1
2035
2052
  }, 16, ["data-source", "row-key", "value", "filter-option"]));
2036
2053
  }
2037
- }), $a = /* @__PURE__ */ S({
2054
+ }), Dt = /* @__PURE__ */ S({
2038
2055
  __name: "index",
2039
2056
  props: {
2040
2057
  multiple: {
@@ -2051,72 +2068,72 @@ const ol = /* @__PURE__ */ S({
2051
2068
  }
2052
2069
  },
2053
2070
  emits: ["change", "update:value"],
2054
- setup(s, { emit: a }) {
2055
- const t = s, e = t.treeCtrl, n = L(), { errInfo: i, labelText: u } = n, p = a;
2071
+ setup(s, { emit: t }) {
2072
+ const e = s, a = e.treeCtrl, n = L(), { errInfo: i, labelText: c } = n, p = t;
2056
2073
  n.inputEmit = p;
2057
- const d = b([]), o = b();
2058
- $(
2059
- () => t.value,
2074
+ const d = x([]), o = x();
2075
+ T(
2076
+ () => e.value,
2060
2077
  (r) => {
2061
2078
  o.value = r ?? null;
2062
2079
  },
2063
2080
  { immediate: !0 }
2064
- ), $(
2065
- () => e.data.value,
2081
+ ), T(
2082
+ () => a.data.value,
2066
2083
  (r) => {
2067
- r && (d.value = e.fieldMap ? oe(e.fieldMap, r) : r);
2084
+ r && (d.value = a.fieldMap ? oe(a.fieldMap, r) : r);
2068
2085
  },
2069
2086
  { immediate: !0 }
2070
2087
  );
2071
2088
  const f = (r) => {
2072
- t.multiple ? o.value = r ?? [] : o.value = r ?? "", p("change", o.value), p("update:value", o.value);
2089
+ e.multiple ? o.value = r ?? [] : o.value = r ?? "", p("change", o.value), p("update:value", o.value);
2073
2090
  };
2074
- return W(() => {
2075
- e.fieldMap || (e.fieldMap = {
2091
+ return V(() => {
2092
+ a.fieldMap || (a.fieldMap = {
2076
2093
  label: "Name",
2077
2094
  key: "Id",
2078
2095
  value: "Id"
2079
- }), e.data.value ? d.value = e.fieldMap ? oe(e.fieldMap, e.data.value) : e.data.value : t.treeCtrl.autoload && Re(t.treeCtrl);
2096
+ }), a.data.value ? d.value = a.fieldMap ? oe(a.fieldMap, a.data.value) : a.data.value : e.treeCtrl.autoload && Me(e.treeCtrl);
2080
2097
  }), (r, v) => {
2081
- var c;
2082
- return m(), _(l(Rt), E({
2083
- class: [[(c = l(i)) == null ? void 0 : c.errClass], "w-full"],
2098
+ var u;
2099
+ return m(), b(l(Ba), F({
2100
+ class: [[(u = l(i)) == null ? void 0 : u.errClass], "w-full"],
2084
2101
  "tree-line": "",
2085
2102
  multiple: s.multiple,
2086
2103
  "tree-default-expanded-keys": ["-"],
2087
2104
  value: o.value,
2088
2105
  "onUpdate:value": v[0] || (v[0] = (g) => o.value = g),
2089
2106
  "tree-data": d.value,
2090
- placeholder: "请选择" + l(u),
2107
+ placeholder: "请选择" + l(c),
2091
2108
  "allow-clear": !0,
2092
2109
  onChange: f
2093
2110
  }, r.$attrs), null, 16, ["class", "multiple", "value", "tree-data", "placeholder"]);
2094
2111
  };
2095
2112
  }
2096
- }), hl = /* @__PURE__ */ G($a, [["__scopeId", "data-v-f000d1d0"]]), Ta = { class: "relative h-[calc(100vh-80px)] overflow-y-auto" }, Ia = { class: "flex w-full h-full min-h-full" }, Da = {
2113
+ }), yl = /* @__PURE__ */ q(Dt, [["__scopeId", "data-v-f000d1d0"]]), Et = { class: "relative h-[calc(100vh-80px)] overflow-y-auto" }, Pt = { class: "flex w-full h-full min-h-full" }, Ft = {
2097
2114
  key: 0,
2098
2115
  class: "w-1/4 pr-4 min-h-full min-w-[170px] max-w-[200px]"
2099
- }, Pa = { class: "flex-1 h-full overflow-y-auto" }, gl = /* @__PURE__ */ S({
2116
+ }, Nt = { class: "flex-1 h-full overflow-y-auto" }, kl = /* @__PURE__ */ S({
2100
2117
  __name: "index",
2101
2118
  props: {
2102
2119
  left: { type: Boolean }
2103
2120
  },
2104
2121
  setup(s) {
2105
- const { useToken: a } = Le, { token: t } = a();
2106
- return (e, n) => (m(), w("div", Ta, [
2107
- y(l(Mt), {
2122
+ const { useToken: t } = Le, { token: e } = t();
2123
+ return (a, n) => (m(), w("div", Et, [
2124
+ k(l(La), {
2108
2125
  class: "m-[10px] p-[10px] h-[calc(100vh-100px)] !min-h-[calc(100vh-100px)]",
2109
- style: ce({
2110
- backgroundColor: l(t).colorBgContainer
2126
+ style: ue({
2127
+ backgroundColor: l(e).colorBgContainer
2111
2128
  })
2112
2129
  }, {
2113
2130
  default: h(() => [
2114
- T("div", Ia, [
2115
- e.left ? (m(), w("div", Da, [
2116
- D(e.$slots, "left")
2117
- ])) : k("", !0),
2118
- T("div", Pa, [
2119
- D(e.$slots, "default")
2131
+ $("div", Pt, [
2132
+ a.left ? (m(), w("div", Ft, [
2133
+ I(a.$slots, "left")
2134
+ ])) : y("", !0),
2135
+ $("div", Nt, [
2136
+ I(a.$slots, "default")
2120
2137
  ])
2121
2138
  ])
2122
2139
  ]),
@@ -2126,149 +2143,158 @@ const ol = /* @__PURE__ */ S({
2126
2143
  }
2127
2144
  });
2128
2145
  export {
2129
- Ts as AppIcon,
2130
- ue as AppRouter,
2131
- rs as AsyncUploader,
2132
- ll as AutoComplete,
2133
- Is as Breadcrumb,
2146
+ As as AppIcon,
2147
+ ce as AppRouter,
2148
+ is as AsyncUploader,
2149
+ il as AutoComplete,
2150
+ Bs as Breadcrumb,
2134
2151
  B as Button,
2135
- je as Cache,
2136
- Qt as CacheKeys,
2137
- ms as CanPreviewFileExt,
2138
- sl as Cascader,
2139
- rl as Checkbox,
2140
- gl as Content,
2141
- ol as DatePicker,
2142
- Ds as Datetime,
2143
- As as Dialog,
2144
- Ja as Drawer,
2145
- xl as EventPrefix,
2146
- Xa as Form,
2147
- Za as FormItem,
2148
- Qa as Fullscreen,
2149
- Ps as Header,
2150
- Es as HeaderExits,
2151
- Gt as Helper,
2152
- yl as ICONS_LIB,
2153
- Fs as Icon,
2154
- ia as Icontool,
2155
- xa as Input,
2156
- nl as InputIcon,
2157
- ul as InputNumber,
2158
- il as InputPassword,
2159
- qa as LayoutIcon,
2160
- Ga as Loading,
2161
- Ns as Menu,
2162
- Rs as MenuTabs,
2152
+ He as Cache,
2153
+ Xa as CacheKeys,
2154
+ bs as CanPreviewFileExt,
2155
+ cl as Cascader,
2156
+ ul as Checkbox,
2157
+ kl as Content,
2158
+ dl as DatePicker,
2159
+ Ls as Datetime,
2160
+ Hs as Dialog,
2161
+ tl as Drawer,
2162
+ Cl as EventPrefix,
2163
+ ll as Form,
2164
+ sl as FormItem,
2165
+ el as Fullscreen,
2166
+ Us as Header,
2167
+ zs as HeaderExits,
2168
+ et as Helper,
2169
+ Tl as ICONS_LIB,
2170
+ Ys as Icon,
2171
+ dt as Icontool,
2172
+ wt as Input,
2173
+ pl as InputIcon,
2174
+ vl as InputNumber,
2175
+ fl as InputPassword,
2176
+ al as LayoutIcon,
2177
+ ws as Loading,
2178
+ Vs as Menu,
2179
+ Ws as MenuTabs,
2163
2180
  Ne as OPTIONS,
2164
- rt as OptionCommProps,
2165
- Ms as ProjectIcon,
2166
- cl as PropEditor,
2181
+ ia as OptionCommProps,
2182
+ Ks as ProjectIcon,
2183
+ ml as PropEditor,
2167
2184
  j as ProviderKeys,
2168
- Sa as Radio,
2169
- dl as RadioStatus,
2170
- pl as RangePicker,
2171
- el as Search,
2185
+ $t as Radio,
2186
+ hl as RadioStatus,
2187
+ gl as RangePicker,
2188
+ rl as Search,
2172
2189
  pe as SearchItem,
2173
- fl as Select,
2174
- at as Switch,
2175
- tl as Table,
2176
- oa as TableOperate,
2177
- vl as Textarea,
2178
- U as ToolIcon,
2179
- pa as Toolbar,
2180
- Cs as Tooltip,
2181
- Ca as Transfer,
2182
- ml as TransferTable,
2183
- al as Tree,
2184
- hl as TreeSelect,
2185
- hs as UploadList,
2186
- os as UploadStatus,
2187
- xs as appendExcelData,
2188
- ys as checkExcelDuplicates,
2189
- kl as checkIconsExpired,
2190
- ut as circleLoading,
2191
- qe as createFromIconfont,
2192
- wl as crumbs,
2190
+ bl as Select,
2191
+ ra as Switch,
2192
+ ol as Table,
2193
+ ct as TableOperate,
2194
+ xl as Textarea,
2195
+ z as ToolIcon,
2196
+ mt as Toolbar,
2197
+ Rs as Tooltip,
2198
+ It as Transfer,
2199
+ _l as TransferTable,
2200
+ nl as Tree,
2201
+ yl as TreeSelect,
2202
+ xs as UploadList,
2203
+ cs as UploadStatus,
2204
+ Ss as appendExcelData,
2205
+ Cs as checkExcelDuplicates,
2206
+ $l as checkIconsExpired,
2207
+ pa as circleLoading,
2208
+ Xe as createFromIconfont,
2209
+ Ts as createMarkedExcelView,
2210
+ Il as crumbs,
2211
+ Gt as csvToExcelBlob,
2212
+ Ke as csvToExcelView,
2213
+ $s as csvToNormalized,
2193
2214
  De as defaultTools,
2194
- Sl as doDelete,
2195
- Cl as doExecute,
2196
- Me as doQuery,
2197
- $l as doSave,
2198
- gs as donwloadFromMinio,
2199
- Ke as downloadBlob,
2200
- Tl as eventBus,
2201
- Ha as exportResults,
2202
- ja as exportSelectedRows,
2215
+ Dl as doDelete,
2216
+ El as doExecute,
2217
+ Re as doQuery,
2218
+ Pl as doSave,
2219
+ _s as donwloadFromMinio,
2220
+ We as downloadBlob,
2221
+ Fl as eventBus,
2222
+ Is as excelToExcelView,
2223
+ Ds as excelToNormalized,
2224
+ Zt as exportResults,
2225
+ Xt as exportSelectedRows,
2203
2226
  Fe as filterColumns,
2204
2227
  Q as formValidate,
2205
- ns as getAppInfo,
2206
- Il as getFormDetail,
2207
- is as getHostInfo,
2208
- Dl as getIconTransform,
2209
- Pl as getRecordDetail,
2210
- El as getRuleTexts,
2211
- Fl as getSelectedLabels,
2212
- Nl as getSelectedValues,
2213
- us as getToken,
2214
- K as getToolByKey,
2215
- xe as getToolGroup,
2216
- V as getToolStatus,
2217
- X as getToolVisible,
2218
- cs as getUserInfo,
2228
+ us as getAppInfo,
2229
+ Nl as getFormDetail,
2230
+ ds as getHostInfo,
2231
+ Ml as getIconTransform,
2232
+ Rl as getRecordDetail,
2233
+ Ol as getRuleTexts,
2234
+ va as getSelectedLabels,
2235
+ Al as getSelectedValues,
2236
+ ps as getToken,
2237
+ W as getToolByKey,
2238
+ _e as getToolGroup,
2239
+ K as getToolStatus,
2240
+ G as getToolVisible,
2241
+ fs as getUserInfo,
2219
2242
  ke as gridQueryFind,
2220
- tt as gridQueryList,
2221
- Rl as gridRowUpdate,
2222
- lt as gridStatusUpdate,
2223
- Va as initCacheCheck,
2224
- Ka as initDirective,
2225
- Ml as initMenu,
2226
- Ol as initPageFactory,
2227
- Al as initValidate,
2228
- ee as isEmpty,
2229
- nt as loadOption,
2230
- Bl as mergeColumns,
2231
- jt as onColumnVisibleChanged,
2232
- Je as onFormClose,
2233
- Pe as onFormSave,
2234
- Ge as onFormSaveAs,
2235
- Ve as onFullscreenClick,
2236
- Ze as onGridRowDelete,
2237
- Xe as onGridRowEdit,
2238
- Ll as onGridRowExpand,
2239
- zl as onOptionChanged,
2240
- Lt as onReloadClick,
2243
+ sa as gridQueryList,
2244
+ Bl as gridRowUpdate,
2245
+ oa as gridStatusUpdate,
2246
+ qt as initCacheCheck,
2247
+ Qt as initDirective,
2248
+ Ll as initMenu,
2249
+ Ul as initPageFactory,
2250
+ zl as initValidate,
2251
+ Z as isEmpty,
2252
+ ua as loadOption,
2253
+ Yl as mergeColumns,
2254
+ Es as normalizedToExcelView,
2255
+ Ga as onColumnVisibleChanged,
2256
+ ea as onFormClose,
2257
+ Ee as onFormSave,
2258
+ Ze as onFormSaveAs,
2259
+ je as onFullscreenClick,
2260
+ ta as onGridRowDelete,
2261
+ aa as onGridRowEdit,
2262
+ Vl as onGridRowExpand,
2263
+ fa as onOptionChanged,
2264
+ Va as onReloadClick,
2241
2265
  Y as onToolClicked,
2242
- et as openNewForm,
2243
- Ul as outFormDataFields,
2244
- Yl as parseIcons,
2245
- ds as path,
2246
- Wl as pendingNavigation,
2247
- Kl as pinia,
2248
- _s as previewFromMinio,
2249
- ks as processExcelFile,
2250
- Re as queryTree,
2251
- Vl as resetRules,
2252
- jl as routes,
2253
- Hl as saveForm,
2254
- Ql as setFormData,
2255
- ql as showBreadcrumb,
2256
- it as unloadOption,
2257
- Gl as useAppInfo,
2258
- Jl as useEditorFactory,
2259
- Ee as useFormItemFactory,
2260
- Xl as useGridFactory,
2261
- Zl as useHostInfo,
2266
+ la as openNewForm,
2267
+ Wl as outFormDataFields,
2268
+ Kl as parseIcons,
2269
+ vs as path,
2270
+ jl as pendingNavigation,
2271
+ Hl as pinia,
2272
+ ys as previewFromMinio,
2273
+ Jt as processCsvFile,
2274
+ Ps as processExcelFile,
2275
+ Me as queryTree,
2276
+ Ql as resetRules,
2277
+ ql as routes,
2278
+ Gl as saveForm,
2279
+ Jl as setFormData,
2280
+ Xl as showBreadcrumb,
2281
+ Fs as toExcel,
2282
+ da as unloadOption,
2283
+ Zl as useAppInfo,
2284
+ es as useEditorFactory,
2285
+ Pe as useFormItemFactory,
2286
+ as as useGridFactory,
2287
+ ts as useHostInfo,
2262
2288
  L as useInputFactory,
2263
- ot as useOptionFactory,
2264
- es as usePageFactory,
2265
- ts as usePageInfo,
2289
+ ca as useOptionFactory,
2290
+ ls as usePageFactory,
2291
+ ss as usePageInfo,
2266
2292
  me as useSettingInfo,
2267
- Ht as useToolFactory,
2268
- as as useTreeFactory,
2269
- Qe as useUserInfo,
2270
- ps as userLogin,
2271
- fs as userLogout,
2272
- ls as validateData,
2273
- ws as validateExcel
2293
+ Ja as useToolFactory,
2294
+ rs as useTreeFactory,
2295
+ Je as useUserInfo,
2296
+ ms as userLogin,
2297
+ hs as userLogout,
2298
+ os as validateData,
2299
+ Ns as validateExcel
2274
2300
  };