@skyfox2000/webui 1.3.2 → 1.3.4

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-BVB9c-eZ.js → file-upload-BBlFaIXB.js} +1 -1
  2. package/lib/assets/modules/index-4kDAt8nS.js +333 -0
  3. package/lib/assets/modules/{index-CaaMz5sz.js → index-BG1SqSVl.js} +1 -1
  4. package/lib/assets/modules/{index-k_AnrbPY.js → index-m5rogIyM.js} +2 -2
  5. package/lib/assets/modules/{menuTabs-_Ph7P8ES.js → menuTabs-tPIz4a89.js} +2 -2
  6. package/lib/assets/modules/{toolIcon-QMXCkImG.js → toolIcon-DwWoD9TN.js} +1 -1
  7. package/lib/assets/modules/{uploadList-D-FOtndj.js → uploadList-D_Z-Y2tw.js} +482 -508
  8. package/lib/assets/modules/uploadList-Da7mQUNK.js +382 -0
  9. package/lib/components/form/autoComplete/index.vue.d.ts +10 -48
  10. package/lib/components/form/upload/uploadList.vue.d.ts +1 -0
  11. package/lib/es/AceEditor/index.js +3 -3
  12. package/lib/es/BasicLayout/index.js +3 -3
  13. package/lib/es/Error403/index.js +1 -1
  14. package/lib/es/Error404/index.js +1 -1
  15. package/lib/es/ExcelForm/index.js +332 -202
  16. package/lib/es/UploadForm/index.js +4 -4
  17. package/lib/index.d.ts +4 -3
  18. package/lib/utils/download.d.ts +2 -0
  19. package/lib/utils/excel-view.d.ts +25 -0
  20. package/lib/utils/form-csv.d.ts +18 -0
  21. package/lib/utils/form-excel.d.ts +2 -13
  22. package/lib/webui.css +1 -1
  23. package/lib/webui.es.js +773 -742
  24. package/package.json +2 -2
  25. package/src/components/common/loading/index.vue +1 -1
  26. package/src/components/content/dialog/excelForm.vue +384 -106
  27. package/src/components/content/table/index.vue +22 -10
  28. package/src/components/form/autoComplete/index.vue +29 -60
  29. package/src/components/form/upload/uploadList.vue +50 -11
  30. package/src/index.ts +26 -3
  31. package/src/utils/download.ts +31 -0
  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 +0 -1
  36. package/vite.config.ts +0 -1
  37. package/lib/assets/modules/form-excel-CsQBtfkA.js +0 -235
  38. package/lib/assets/modules/uploadList-CXa3siDj.js +0 -327
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 ce, 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 ct, y as Q, z as ut, A as dt, B as pt, C as Me } from "./assets/modules/uploadList-D-FOtndj.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-D-FOtndj.js";
3
- import { A as rs, U as os, a as ns, g as is, c as cs, d as us, p as ds, u as ps, b as fs } from "./assets/modules/file-upload-BVB9c-eZ.js";
1
+ import { u as qe, i as ee, a as me, c as Ge, P as j, o as Ee, b as Je, d as Xe, e as Pe, r as ce, f as Ze, g as ea, h as Fe, j as aa, k as ke, l as ta, _ as la, m as sa, O as Ne, q as Me, n as ra, p as oa, s as L, t as na, v as ia, w as ca, x as ua, y as Q, z as da, A as pa, B as fa, C as Re } from "./assets/modules/uploadList-D_Z-Y2tw.js";
2
+ import { a9 as yl, N as kl, Q as wl, U as Sl, a8 as Cl, a6 as Tl, a7 as $l, aa as Il, X as Dl, S as El, a4 as Pl, a1 as Fl, M as Nl, J as Ml, a3 as Rl, T as Ol, E as Al, Z as Bl, a2 as Ll, a5 as Ul, L as zl, K as Yl, R as Vl, ab as Wl, D as Kl, a0 as jl, ac as Hl, W as Ql, Y as ql, V as Gl, ad as Jl, F as Xl, G as Zl, ae as es, I as as, af as ts, H as ls, $ as ss } from "./assets/modules/uploadList-D_Z-Y2tw.js";
3
+ import { A as os, U as ns, a as is, g as cs, c as us, d as ds, p as ps, u as fs, b as vs } from "./assets/modules/file-upload-BBlFaIXB.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 va, 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 ue, 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 te, unref as l, useAttrs as Z, withCtx as h, createElementVNode as $, createVNode as k, mergeProps as F, renderSlot as D, 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 se, withDirectives as H, computed as X, createElementBlock as w, normalizeClass as N, createSlots as Be, useSlots as ma, Fragment as R, renderList as U, resolveDynamicComponent as ha, onActivated as ga, shallowRef as ba, onUnmounted as xa, 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-CXa3siDj.js";
13
- import { U as ms, a as hs } from "./assets/modules/uploadList-CXa3siDj.js";
14
- import { a as _s, c as bs, p as xs, v as ys } from "./assets/modules/form-excel-CsQBtfkA.js";
15
- import { _ as B } from "./assets/modules/index-CaaMz5sz.js";
16
- import { _ as U } from "./assets/modules/toolIcon-QMXCkImG.js";
17
- import { a as ws } from "./assets/modules/toolIcon-QMXCkImG.js";
18
- import { _ as Cs, b as $s, c as Ts, d as Is, e as Ds, I as Ps, f as Es, g as Fs, a as Ns } from "./assets/modules/menuTabs-_Ph7P8ES.js";
19
- import { _ as Ms } from "./assets/modules/index-k_AnrbPY.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 _a, theme as Le, Drawer as ya, Space as le, Form as Ue, message as ka, FormItem as ze, ConfigProvider as Ce, Popconfirm as wa, Button as Ye, DropdownButton as Sa, Menu as be, MenuItem as xe, Dropdown as ve, Checkbox as Ca, Table as Ve, Tree as Ta, Cascader as $a, DatePicker as Ia, Input as ae, InputPassword as Da, InputNumber as Ea, RangePicker as Pa, Textarea as Fa, Transfer as Na, TreeSelect as Ma, LayoutContent as Ra } from "ant-design-vue";
11
+ import { VueDraggableNext as Oa } from "vue-draggable-next";
12
+ import { d as We } from "./assets/modules/uploadList-Da7mQUNK.js";
13
+ import { C as hs, U as gs, a as bs, p as xs } from "./assets/modules/uploadList-Da7mQUNK.js";
14
+ import { c as Ke } from "./assets/modules/index-4kDAt8nS.js";
15
+ import { _ as ys, b as ks, a as ws, d as Ss, e as Cs, g as Ts, f as $s, n as Is, p as Ds, t as Es, v as Ps } from "./assets/modules/index-4kDAt8nS.js";
16
+ import { _ as B } from "./assets/modules/index-BG1SqSVl.js";
17
+ import { _ as z } from "./assets/modules/toolIcon-DwWoD9TN.js";
18
+ import { a as Ns } from "./assets/modules/toolIcon-DwWoD9TN.js";
19
+ import { _ as Rs, b as Os, c as As, d as Bs, e as Ls, I as Us, f as zs, g as Ys, a as Vs } from "./assets/modules/menuTabs-tPIz4a89.js";
20
+ import { _ as Ks } from "./assets/modules/index-m5rogIyM.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 c = a.component;
30
+ const c = t.component;
30
31
  c ? c.props.style = { display: "none" } : i.replaceChild(n, s);
31
32
  }
32
33
  }
33
- }, Te = (s) => {
34
+ }, $e = (s) => {
34
35
  var c, p;
35
- const a = Qe(), { url: t, role: e, permit: n } = s;
36
- if (ee(e) && ee(n))
36
+ const t = qe(), { url: e, role: a, permit: n } = s;
37
+ if (ee(a) && ee(n))
37
38
  return !0;
38
- const i = t ?? ((p = (c = window.location.hash) == null ? void 0 : c.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 ee(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 ee(a) || (d = t.hasRole(a)), t.isAdmin() ? d : (ee(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, c = Te(e);
49
- $e(s, t, c, i);
47
+ }, Aa = {
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, c = Te(e);
53
- $e(s, t, c, 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
+ }, Ba = {
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: Aa,
68
+ submit: Ba
69
+ }, Wt = (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, c) => {
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 || c < 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, J = (s, t) => s.visible && typeof s.visible == "function" ? s.visible(t) : s.visible ?? !0, La = (s, t) => {
99
+ t.reload.value = !0;
100
+ }, Ua = (s, t) => {
101
+ t.searchBar.value = !t.searchBar.value;
102
+ }, za = (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
+ }, Ya = (s, t) => {
115
+ t.selectable.value = !t.selectable.value, t.selectable.value || (t.selectKeys.value = [], t.selectRows.value = []);
116
+ }, Va = (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)), Ka(s);
122
+ }, Wa = (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
+ }, Ka = (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
+ }, ja = (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: La
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: Ua
144
145
  },
145
146
  {
146
147
  key: "RowHeight",
147
148
  label: "行高调整",
148
149
  icon: "icon-row-height",
149
- click: Ut
150
+ click: za
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: Ya
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: Va
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: Wa
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
+ ], Ha = (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 Qa = /* @__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))(Qa || {});
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 Kt() {
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
295
  const c = i === "local" ? localStorage : sessionStorage;
295
296
  for (let p = 0; p < c.length; p++) {
296
297
  const d = c.key(p);
297
- if (d && d.endsWith(t))
298
+ if (d && d.endsWith(e))
298
299
  try {
299
300
  const o = JSON.parse(c.getItem(d));
300
- o && typeof o == "object" && "lastTime" in o && typeof o.lastTime == "number" && o.lastTime !== e && c.removeItem(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 jt = 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
+ }, Ht = 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
+ }, Qt = async (s, t, e) => {
313
341
  try {
314
- const n = (await import("@json2csv/plainjs")).Parser, i = He(s), c = a.filter((v) => v.visible !== !1 && v.export !== !1), p = c.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) => {
345
+ })), d = e.map((v) => {
318
346
  const u = { ...v };
319
347
  return c.forEach((g) => {
320
348
  const C = g.dataIndex || g.key;
321
349
  C && g.customRender && (u[C] = g.customRender(v[C], v));
322
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
+ }, qt = async (s, t, e, a) => {
332
360
  try {
333
- const i = (await import("@json2csv/plainjs")).Parser, c = 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) {
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) {
340
368
  const u = r.data.map((O) => {
341
- const x = { ...O };
369
+ const _ = { ...O };
342
370
  return p.forEach((I) => {
343
371
  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(u), P = new Blob([`\uFEFF${C}`], { type: "text/csv" });
347
- Ke(P, c);
372
+ A && I.customRender && (_[A] = I.customRender(O[A], O));
373
+ }), _;
374
+ }), C = new i({ fields: d }).parse(u), E = new Blob([`\uFEFF${C}`], { type: "text/csv" });
375
+ We(E, c);
348
376
  }
349
377
  });
350
378
  } catch (n) {
351
379
  console.error("导出失败:", n), he.error("文件导出失败,请稍后重试");
352
380
  }
353
- }, Qa = /* @__PURE__ */ S({
381
+ }, Gt = /* @__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: te(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
+ }), qa = { class: "ml-2" }, Ga = /* @__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 = Z();
400
+ return (e, a) => (m(), b(l(_a), { placement: "topRight" }, {
373
401
  content: h(() => [
374
- D(t.$slots, "default", {}, () => [
375
- T("div", {
402
+ D(e.$slots, "default", {}, () => [
403
+ $("div", {
376
404
  class: "text-[14px]",
377
- style: ue({ 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", qa, [
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
+ }), Jt = /* @__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 = Ge({
432
+ iconUrl: `${va.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
+ }), Ja = { class: "hover:bg-gray-200 w-[24px] h-[24px] rounded-md" }, Xt = /* @__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
464
  const c = () => {
445
- n.drawerSave ? n.drawerSave() : i && Pe(i);
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 && Je(i);
448
468
  }, d = () => {
449
- Je(i);
469
+ Xe(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(ya), {
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", Ja, [
496
+ k(l(z), {
477
497
  class: "top-[-2px] left-[2px] w-6 h-6",
478
498
  icon: "icon-new",
479
499
  angle: 45,
@@ -489,39 +509,39 @@ const ja = async (s, a, t) => {
489
509
  D(o.$slots, "default")
490
510
  ]),
491
511
  footer: h(() => [
492
- y(l(le), null, {
512
+ k(l(le), 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
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
+ }), Zt = /* @__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) => {
560
+ const t = s, e = t.editorCtrl ?? ne(j.EditorControl, void 0);
561
+ return ge(j.LabelWidth, t.labelWidth), (a, n) => {
542
562
  const i = se("submit");
543
- return H((m(), _(l(ze), {
544
- "label-col": { flex: a.labelWidth ?? "85px" },
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
+ D(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
+ }), Xa = {
568
588
  class: /* @__PURE__ */ N(["relative mb-1"])
569
- }, ea = { class: "flex-grow" }, ta = { class: "w-8 mt-[-2px]" }, Za = /* @__PURE__ */ S({
589
+ }, Za = { class: "flex-grow" }, et = { class: "w-8 mt-[-2px]" }, el = /* @__PURE__ */ S({
570
590
  inheritAttrs: !1,
571
591
  __name: "formItem",
572
592
  props: {
@@ -577,7 +597,7 @@ 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), c = b(!1);
600
+ const t = s, e = Z(), a = ne(j.EditorControl, void 0), n = ne(j.LabelWidth, "85px") ?? "85px", i = Pe(t, a), c = x(!1);
581
601
  setTimeout(() => {
582
602
  c.value = !0;
583
603
  }, 30);
@@ -586,60 +606,60 @@ const ja = async (s, a, t) => {
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 = X(() => {
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 : (ka.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
- c.value ? (m(), _(l(Ue), E({
616
+ return (o, f) => (m(), w("div", Xa, [
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, [
634
+ $("div", Za, [
615
635
  D(o.$slots, "default")
616
636
  ]),
617
- T("div", ta, [
637
+ $("div", et, [
618
638
  D(o.$slots, "helper", {}, () => [
619
- o.helper ? (m(), _(l(Gt), {
639
+ o.helper ? (m(), b(l(Ga), {
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
653
  D(o.$slots, "default")
634
- ], 2)) : k("", !0),
654
+ ], 2)) : y("", !0),
635
655
  l(i).errClass ? (m(), w("span", {
636
656
  key: 2,
637
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
+ }), at = { class: "w-1/3 relative mb-1" }, tt = { class: "flex items-center w-[90%]" }, lt = { class: "flex-grow pl-1" }, st = {
643
663
  key: 0,
644
664
  class: "absolute bottom-[3px] left-[85px] text-[12px] text-[#ff4d4fcc] block"
645
665
  }, pe = /* @__PURE__ */ S({
@@ -651,18 +671,18 @@ 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, c) => (m(), w("div", aa, [
656
- y(l(Ue), E({
674
+ const t = s, e = Z(), a = ne(j.EditorControl, void 0), n = Pe(t, a);
675
+ return (i, c) => (m(), w("div", at, [
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, [
684
+ $("div", tt, [
685
+ $("div", lt, [
666
686
  D(i.$slots, "default")
667
687
  ])
668
688
  ])
@@ -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", st, P(l(n).msg), 1)) : y("", !0)
683
703
  ]));
684
704
  }
685
- }), el = /* @__PURE__ */ S({
705
+ }), al = /* @__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), c = b(0), p = (u) => {
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
716
  for (let C = 0; C < u.length; C++)
697
717
  typeof u[C].type == "object" && g++;
698
718
  return g;
699
- }, d = vt(), o = () => {
700
- i.value = 0, c.value = 0, d.default && (i.value = p(d.default({}))), t.gridCtrl.searchBar && d.control && (c.value = p(d.control({}))), n.value = 2 - (i.value + c.value) % 3;
719
+ }, d = ma(), 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 u = { ...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,
736
+ ...(g = e.gridCtrl.gridQuery) == null ? void 0 : g.Query,
717
737
  ...u
718
738
  }
719
739
  };
720
740
  });
721
741
  const r = () => {
722
742
  var g;
723
- let u = { ...t.search };
724
- if (t.likeFields)
725
- for (const C of t.likeFields)
743
+ let u = { ...e.search };
744
+ if (e.likeFields)
745
+ for (const C of e.likeFields)
726
746
  u[C] && (u[C] = { $like: "%" + u[C] + "%" });
727
- t.gridCtrl.gridQuery = {
728
- ...t.gridCtrl.gridQuery,
747
+ e.gridCtrl.gridQuery = {
748
+ ...e.gridCtrl.gridQuery,
729
749
  Query: {
730
- ...(g = t.gridCtrl.gridQuery) == null ? void 0 : g.Query,
750
+ ...(g = e.gridCtrl.gridQuery) == null ? void 0 : g.Query,
731
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
755
  const u = JSON.parse(JSON.stringify(f));
736
- for (const g in t.search)
756
+ for (const g in e.search)
737
757
  u[g] === void 0 && (u[g] = void 0);
738
- e("update:search", u);
758
+ a("update:search", u);
739
759
  };
740
760
  return (u, g) => {
741
761
  const C = se("submit");
742
- return i.value + c.value > 0 ? H((m(), _(l(ze), {
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: {
@@ -750,40 +770,40 @@ const ja = async (s, a, t) => {
750
770
  }, {
751
771
  default: h(() => [
752
772
  D(u.$slots, "default"),
753
- u.gridCtrl.searchBar ? D(u.$slots, "control", { key: 0 }) : k("", !0),
754
- n.value >= 1 ? (m(), _(pe, {
773
+ u.gridCtrl.searchBar ? D(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 || u.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(le), 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
+ }), rt = /* @__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(() => ce.currentRoute.value.path), n = [
831
+ const t = s, e = t.gridCtrl, a = X(() => 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: () => Ze(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: () => ea(e, t.record)
832
852
  }
833
- ], { buttons: i, menus: c } = 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
868
  const f = se("auth");
849
- return m(), _(l(Ce), { theme: {
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(le), null, {
856
876
  default: h(() => [
857
- (m(!0), w(M, null, z(l(i), (r) => (m(), w(M, {
877
+ (m(!0), w(R, null, U(l(i), (r) => (m(), w(R, {
858
878
  key: r.key
859
879
  }, [
860
- l(X)(r, a.record) ? (m(), _(l(wt), {
880
+ l(J)(r, t.record) ? (m(), b(l(wa), {
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(J)(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
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(c).length > 0 ? (m(), _(l(St), {
918
+ l(c).length > 0 ? (m(), b(l(Sa), {
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(c), (r) => (m(), w(M, {
925
+ (m(!0), w(R, null, U(l(c), (r) => (m(), w(R, {
906
926
  key: r.key
907
927
  }, [
908
- l(X)(r, a.record) ? H((m(), _(l(be), {
928
+ l(J)(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,44 +959,44 @@ 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
+ }), ot = { class: "inline-flex [&>div]:ml-[-1px] first:[&>div]:ml-0" }, nt = /* @__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 } = Ha(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
983
  const c = () => {
964
- t.columns.value.splice(0, t.columns.value.length, ...i.value), n.setTableColumns(ce.currentRoute.value.path, t.columns.value);
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", ot, [
987
+ (m(!0), w(R, null, U(l(a), (o, f) => (m(), w(R, {
968
988
  key: o.key
969
989
  }, [
970
- l(X)(o) && o.dropdown ? (m(), _(l(ve), {
990
+ l(J)(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(Oa), {
980
1000
  key: 0,
981
1001
  modelValue: i.value,
982
1002
  "onUpdate:modelValue": d[1] || (d[1] = (r) => i.value = r),
@@ -985,47 +1005,47 @@ const ja = async (s, a, t) => {
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(R, null, U(i.value, (r) => (m(), w("div", {
989
1009
  key: r.name,
990
- onClick: d[0] || (d[0] = ae(() => {
1010
+ onClick: d[0] || (d[0] = te(() => {
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(Ca), {
996
1016
  checked: r.visible !== !1,
997
- onChange: ae(
1017
+ onChange: te(
998
1018
  (v) => {
999
- l(jt)(r, v.target.checked);
1019
+ l(ja)(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(J)(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(J)(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(R, 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
- }), ca = { class: "flex justify-between mb-[10px]" }, ua = { key: 1 }, da = 3, pa = /* @__PURE__ */ S({
1124
+ }), it = { class: "flex justify-between mb-[10px]" }, ct = { key: 1 }, ut = 3, dt = /* @__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(() => ce.currentRoute.value.path), c = [
1131
+ const t = s, e = t.gridCtrl, a = e.page, n = t.editorCtrl, i = X(() => 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: () => aa(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(
1151
+ const { buttons: o, menus: f } = _e(
1132
1152
  c,
1133
- t.flat !== void 0 ? t.flat : da,
1134
- (r = t.buttons) == null ? void 0 : r.value
1153
+ e.flat !== void 0 ? e.flat : ut,
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
  },
@@ -1141,35 +1161,35 @@ const ja = async (s, a, t) => {
1141
1161
  }
1142
1162
  ), (o, f) => {
1143
1163
  const r = se("auth");
1144
- return m(), w("div", ca, [
1145
- y(l(le), null, {
1164
+ return m(), w("div", it, [
1165
+ k(l(le), null, {
1146
1166
  default: h(() => [
1147
- (m(!0), w(M, null, z(p.value, (v) => H((m(), _(l(B), {
1167
+ (m(!0), w(R, 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: (u) => 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(R, null, U(d.value, (v) => H((m(), b(l(xe), {
1167
1187
  key: v.key,
1168
- disabled: l(V)(v),
1169
- onClick: (u) => 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,23 +1200,23 @@ 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", ua)) : k("", !0)
1212
+ })) : y("", !0),
1213
+ p.value.length === 0 && d.value.length === 0 ? (m(), w("span", ct)) : y("", !0)
1194
1214
  ]),
1195
1215
  _: 1
1196
1216
  }),
1197
- y(l(le), { class: "mr-1" }, {
1217
+ k(l(le), { class: "mr-1" }, {
1198
1218
  default: h(() => [
1199
- (m(), _(mt(ia), { "grid-ctrl": l(t) }, null, 8, ["grid-ctrl"]))
1219
+ (m(), b(ha(nt), { "grid-ctrl": l(e) }, null, 8, ["grid-ctrl"]))
1200
1220
  ]),
1201
1221
  _: 1
1202
1222
  })
@@ -1216,122 +1236,122 @@ const ja = async (s, a, t) => {
1216
1236
  statusDisabled: { type: Function }
1217
1237
  },
1218
1238
  setup(s) {
1219
- const a = s, t = q(), e = a.gridCtrl, n = Z(() => ce.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), c = b(e.pageNo.value), p = b([]), d = b({
1239
+ const t = s, e = Z(), a = t.gridCtrl, n = X(() => 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
1245
  showTotal: (u) => `共 ${u} 条记录`,
1226
1246
  onChange: (u, g) => {
1227
- d.value.current = u, d.value.pageSize = g, i.value = g, c.value = u, e && (e.pageNo.value = u, e.pageSize.value = g, e.remotePage && ke(e));
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
1230
1250
  });
1231
- $(
1232
- () => e.tableData.value,
1251
+ t.pagination === !1 && (d.value = !1), T(
1252
+ () => a.tableData.value,
1233
1253
  (u) => {
1234
- u && (p.value = u, d.value.total = e.total.value ?? 0, d.value.current = e.pageNo.value ?? 1, d.value.pageSize = e.pageSize.value ?? 10);
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,
1257
+ ), T(
1258
+ () => t.tableData,
1239
1259
  (u) => {
1240
- u && (p.value = u, d.value.total = u.length, d.value.current = e.pageNo.value ?? 1, d.value.pageSize = e.pageSize.value ?? 10);
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 = {
1264
+ const o = x(a.columns.value), f = {
1245
1265
  onChange: (u, g) => {
1246
- e && (e.selectKeys.value = u, e.selectRows.value = g);
1266
+ a && (a.selectKeys.value = u, a.selectRows.value = g);
1247
1267
  },
1248
1268
  columnWidth: "30px",
1249
1269
  getCheckboxProps: (u) => ({
1250
1270
  disabled: u.Enabled === 0
1251
1271
  }),
1252
- ...a.rowSelection
1253
- }, r = b(f);
1254
- $(
1255
- () => e.selectable.value,
1272
+ ...t.rowSelection
1273
+ }, r = x(f);
1274
+ T(
1275
+ () => a.selectable.value,
1256
1276
  (u) => {
1257
- e && (r.value = u ? f : void 0);
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.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 ga(() => {
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 ta(a)), setTimeout(() => {
1272
1292
  v.value = !0;
1273
1293
  }, 50);
1274
1294
  }), (u, g) => {
1275
- var P, O;
1295
+ var E, O;
1276
1296
  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, {
1297
+ return m(), w(R, null, [
1298
+ (E = l(a).buttons) != null && E.value.length || (O = l(a).tools) != null && O.length ? (m(), b(dt, {
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) => {
1315
+ }, l(e)), {
1316
+ bodyCell: h((_) => {
1297
1317
  var I, A;
1298
1318
  return [
1299
1319
  D(u.$slots, "bodyCell", {
1300
- column: x == null ? void 0 : x.column,
1301
- record: x == null ? void 0 : x.record
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) && ((I = _ == null ? void 0 : _.column) == null ? void 0 : I.dataIndex) === "enabled" ? H((m(), b(la, {
1304
1324
  key: 0,
1305
- checked: x.record.Enabled,
1306
- "onUpdate:checked": (J) => x.record.Enabled = J,
1307
- disabled: u.statusDisabled ? u.statusDisabled(x.record) : !1,
1325
+ checked: _.record.Enabled,
1326
+ "onUpdate:checked": (G) => _.record.Enabled = G,
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: (G) => l(sa)(l(a), _.record),
1310
1330
  class: N([
1311
1331
  "w-[58px]",
1312
- u.statusDisabled && u.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(u.$slots, "operate", {
1337
+ ]) : y("", !0),
1338
+ l(a) && ((A = _ == null ? void 0 : _.column) == null ? void 0 : A.dataIndex) === "operation" ? D(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(rt, {
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
+ }), pt = { class: "flex items-center gap-1" }, ft = { class: "text-nowrap" }, ll = /* @__PURE__ */ S({
1335
1355
  __name: "index",
1336
1356
  props: {
1337
1357
  treeCtrl: {},
@@ -1339,25 +1359,25 @@ 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 = Z(), 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 c = 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
  },
@@ -1366,14 +1386,14 @@ const ja = async (s, a, t) => {
1366
1386
  const o = (f, r) => {
1367
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(Ta), F({
1377
1397
  class: "w-full",
1378
1398
  "show-line": !0,
1379
1399
  "tree-data": i.value,
@@ -1382,106 +1402,106 @@ 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)), {
1405
+ }, l(a)), {
1386
1406
  title: h(({ key: v, label: u, icon: g }) => [
1387
1407
  D(f.$slots, "title", {
1388
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(u), 1)
1412
+ $("div", pt, [
1413
+ k(l(z), { icon: g }, null, 8, ["icon"]),
1414
+ $("span", ft, 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-2271173b"]]), ma = { class: "relative w-[248px] max-w-[248px]" }, ha = {
1421
+ }), sl = /* @__PURE__ */ q(ra, [["__scopeId", "data-v-8daac909"]]), vt = { class: "relative w-[248px] max-w-[248px]" }, mt = {
1402
1422
  key: 0,
1403
1423
  class: "absolute z-10 mt-[5px] mr-[10px] text-[#999] flex items-center"
1404
- }, ga = /* @__PURE__ */ S({
1424
+ }, ht = /* @__PURE__ */ S({
1405
1425
  inheritAttrs: !1,
1406
1426
  __name: "index",
1407
- props: rt,
1427
+ props: oa,
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), c = t.optionCtrl ?? i.optionCtrl;
1412
- c.inputFactory = gt(n);
1413
- const p = b({
1429
+ setup(s, { emit: t }) {
1430
+ var C, E, O;
1431
+ const e = s, a = Z(), n = L(), i = na(e.url, e), c = e.optionCtrl ?? i.optionCtrl;
1432
+ c.inputFactory = ba(n);
1433
+ const p = x({
1414
1434
  ...c == null ? void 0 : c.url,
1415
1435
  url: ((C = c == null ? void 0 : c.url) == null ? void 0 : C.url) || "",
1416
- fieldMap: (c == null ? void 0 : c.fieldMap) || ((P = c == null ? void 0 : c.url) == null ? void 0 : P.fieldMap),
1436
+ fieldMap: (c == null ? void 0 : c.fieldMap) || ((E = c == null ? void 0 : c.url) == null ? void 0 : E.fieldMap),
1417
1437
  params: (c == null ? void 0 : c.params) || ((O = c == null ? void 0 : c.url) == null ? void 0 : O.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 u = b((c == null ? void 0 : c.options.value) || []);
1430
- c && $(
1449
+ const u = x((c == null ? void 0 : c.options.value) || []);
1450
+ c && T(
1431
1451
  () => c.options.value,
1432
- (x) => {
1433
- u.value = x || [];
1452
+ (_) => {
1453
+ u.value = _ || [];
1434
1454
  },
1435
1455
  { immediate: !0, deep: !0 }
1436
1456
  );
1437
- const g = (x, I) => {
1457
+ const g = (_, I) => {
1438
1458
  if (!I || I.length === 0) {
1439
1459
  v("update:labels", []), v("update:value", []);
1440
1460
  return;
1441
1461
  }
1442
- const A = I.map((J) => J.label);
1462
+ const A = I.map((G) => G.label);
1443
1463
  v("update:labels", A), v(
1444
1464
  "update:value",
1445
- I.map((J) => J.value)
1465
+ I.map((G) => G.value)
1446
1466
  ), o != null && o.value.errClass && d && Q(d);
1447
1467
  };
1448
- return W(() => {
1468
+ return V(() => {
1449
1469
  p.value && !p.value.fieldMap && (p.value.fieldMap = {
1450
1470
  title: "Name",
1451
1471
  label: "Name",
1452
1472
  value: "Id",
1453
1473
  key: "Id"
1454
- }), c && nt(c.autoload, c, t);
1455
- }), _t(() => {
1456
- c && it(c, t);
1457
- }), (x, I) => {
1474
+ }), c && ia(c.autoload, c, e);
1475
+ }), xa(() => {
1476
+ c && ca(c, e);
1477
+ }), (_, I) => {
1458
1478
  var A;
1459
- return m(), w("div", ma, [
1460
- u.value.length ? k("", !0) : (m(), w("div", ha, [
1461
- y(l(ct), { class: "text-[#555] mx-[5px] !ml-[10px] !w-4 !h-4" }),
1462
- I[0] || (I[0] = T("span", null, "数据加载中...", -1))
1479
+ return m(), w("div", vt, [
1480
+ u.value.length ? y("", !0) : (m(), w("div", mt, [
1481
+ k(l(ua), { class: "text-[#555] mx-[5px] !ml-[10px] !w-4 !h-4" }),
1482
+ I[0] || (I[0] = $("span", null, "数据加载中...", -1))
1463
1483
  ])),
1464
- y(l(Tt), E({
1484
+ k(l($a), F({
1465
1485
  options: u.value,
1466
1486
  class: [(A = l(o)) == null ? void 0 : A.errClass],
1467
1487
  "allow-clear": !0,
1468
1488
  placeholder: u.value.length > 0 ? "请选择" + l(f) : "",
1469
1489
  onChange: g
1470
- }, l(e)), null, 16, ["options", "class", "placeholder"])
1490
+ }, l(a)), null, 16, ["options", "class", "placeholder"])
1471
1491
  ]);
1472
1492
  };
1473
1493
  }
1474
- }), sl = /* @__PURE__ */ G(ga, [["__scopeId", "data-v-c93fe667"]]), rl = /* @__PURE__ */ G(ut, [["__scopeId", "data-v-64193a41"]]);
1494
+ }), rl = /* @__PURE__ */ q(ht, [["__scopeId", "data-v-c93fe667"]]), ol = /* @__PURE__ */ q(da, [["__scopeId", "data-v-64193a41"]]);
1475
1495
  function ie() {
1476
1496
  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]);
1497
+ for (var t = 1; t < arguments.length; t++) {
1498
+ var e = arguments[t];
1499
+ for (var a in e) ({}).hasOwnProperty.call(e, a) && (s[a] = e[a]);
1480
1500
  }
1481
1501
  return s;
1482
1502
  }, ie.apply(null, arguments);
1483
1503
  }
1484
- const _a = {
1504
+ const gt = {
1485
1505
  locale: "zh_CN",
1486
1506
  today: "今天",
1487
1507
  now: "此刻",
@@ -1508,7 +1528,7 @@ const _a = {
1508
1528
  nextDecade: "下一年代",
1509
1529
  previousCentury: "上一世纪",
1510
1530
  nextCentury: "下一世纪"
1511
- }, ba = {
1531
+ }, bt = {
1512
1532
  placeholder: "请选择时间",
1513
1533
  rangePlaceholder: ["开始时间", "结束时间"]
1514
1534
  }, ye = {
@@ -1523,48 +1543,48 @@ const _a = {
1523
1543
  rangeMonthPlaceholder: ["开始月份", "结束月份"],
1524
1544
  rangeQuarterPlaceholder: ["开始季度", "结束季度"],
1525
1545
  rangeWeekPlaceholder: ["开始周", "结束周"]
1526
- }, _a),
1527
- timePickerLocale: ie({}, ba)
1546
+ }, gt),
1547
+ timePickerLocale: ie({}, bt)
1528
1548
  };
1529
1549
  ye.lang.ok = "确定";
1530
- const ol = /* @__PURE__ */ S({
1550
+ const nl = /* @__PURE__ */ S({
1531
1551
  __name: "index",
1532
1552
  props: {
1533
1553
  valueFormat: {}
1534
1554
  },
1535
1555
  setup(s) {
1536
- const a = s, { editorCtrl: t, labelText: e, errInfo: n } = L(), i = () => {
1537
- n != null && n.value.errClass && t && Q(t);
1538
- }, c = b(a.valueFormat ?? "YYYY-MM-DD");
1556
+ const t = s, { editorCtrl: e, labelText: a, errInfo: n } = L(), i = () => {
1557
+ n != null && n.value.errClass && e && Q(e);
1558
+ }, c = x(t.valueFormat ?? "YYYY-MM-DD");
1539
1559
  return (p, d) => {
1540
1560
  var o;
1541
- return m(), _(l(It), {
1561
+ return m(), b(l(Ia), {
1542
1562
  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),
1563
+ placeholder: "请选择" + l(a),
1544
1564
  locale: l(ye),
1545
1565
  valueFormat: c.value,
1546
1566
  onBlur: i
1547
1567
  }, null, 8, ["class", "placeholder", "locale", "valueFormat"]);
1548
1568
  };
1549
1569
  }
1550
- }), xa = /* @__PURE__ */ S({
1570
+ }), xt = /* @__PURE__ */ S({
1551
1571
  __name: "index",
1552
1572
  props: {
1553
1573
  value: {}
1554
1574
  },
1555
1575
  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
- }, c = s, p = a, d = b(c.value);
1560
- $(
1576
+ setup(s, { emit: t }) {
1577
+ const { editorCtrl: e, labelText: a, errInfo: n } = L(), i = () => {
1578
+ n != null && n.value.errClass && e && Q(e);
1579
+ }, c = s, p = t, d = x(c.value);
1580
+ T(
1561
1581
  () => c.value,
1562
1582
  (f) => {
1563
1583
  d.value = f;
1564
1584
  },
1565
1585
  { immediate: !0 }
1566
1586
  // 立即同步初始值
1567
- ), $(
1587
+ ), T(
1568
1588
  () => d.value,
1569
1589
  (f) => {
1570
1590
  if (d.value === "") {
@@ -1579,7 +1599,7 @@ const ol = /* @__PURE__ */ S({
1579
1599
  };
1580
1600
  return (f, r) => {
1581
1601
  var v, u;
1582
- return m(), _(l(te), E({
1602
+ return m(), b(l(ae), F({
1583
1603
  class: [
1584
1604
  (v = l(n)) == null ? void 0 : v.errClass,
1585
1605
  ((u = l(n)) == null ? void 0 : u.errClass) === "error" && !f.$slots.addonBefore && !f.$slots.addonAfter ? "!border-red-300 shadow-[0_0_3px_0px_#ff4d4f]" : ""
@@ -1588,7 +1608,7 @@ const ol = /* @__PURE__ */ S({
1588
1608
  "onUpdate:value": r[0] || (r[0] = (g) => d.value = g),
1589
1609
  autocomplete: "new-password",
1590
1610
  "allow-clear": !0,
1591
- placeholder: "请输入" + l(e),
1611
+ placeholder: "请输入" + l(a),
1592
1612
  onBlur: i,
1593
1613
  onChange: o
1594
1614
  }, f.$attrs), Be({ _: 2 }, [
@@ -1609,31 +1629,31 @@ const ol = /* @__PURE__ */ S({
1609
1629
  ]), 1040, ["class", "value", "placeholder"]);
1610
1630
  };
1611
1631
  }
1612
- }), ya = /* @__PURE__ */ S({
1632
+ }), _t = /* @__PURE__ */ S({
1613
1633
  __name: "inputIcon",
1614
1634
  props: {
1615
1635
  value: {}
1616
1636
  },
1617
1637
  emits: ["update:value"],
1618
- setup(s, { emit: a }) {
1619
- const t = s, e = a, n = b(void 0);
1620
- return $(
1621
- () => t.value,
1638
+ setup(s, { emit: t }) {
1639
+ const e = s, a = t, n = x(void 0);
1640
+ return T(
1641
+ () => e.value,
1622
1642
  (i) => {
1623
1643
  n.value = i ?? void 0;
1624
1644
  },
1625
1645
  { immediate: !0 }
1626
- ), $(
1646
+ ), T(
1627
1647
  () => n.value,
1628
1648
  (i) => {
1629
- e("update:value", i);
1649
+ a("update:value", i);
1630
1650
  }
1631
- ), (i, c) => (m(), _(xa, E({
1651
+ ), (i, c) => (m(), b(xt, F({
1632
1652
  value: n.value,
1633
1653
  "onUpdate:value": c[0] || (c[0] = (p) => n.value = p)
1634
1654
  }, i.$attrs), {
1635
1655
  addonBefore: h(() => [
1636
- y(l(U), {
1656
+ k(l(z), {
1637
1657
  class: "!w-4 !h-4",
1638
1658
  icon: n.value
1639
1659
  }, null, 8, ["icon"])
@@ -1641,40 +1661,40 @@ const ol = /* @__PURE__ */ S({
1641
1661
  _: 1
1642
1662
  }, 16, ["value"]));
1643
1663
  }
1644
- }), nl = /* @__PURE__ */ G(ya, [["__scopeId", "data-v-358b82ef"]]), il = /* @__PURE__ */ S({
1664
+ }), il = /* @__PURE__ */ q(_t, [["__scopeId", "data-v-358b82ef"]]), cl = /* @__PURE__ */ S({
1645
1665
  __name: "inputPassword",
1646
1666
  setup(s) {
1647
- const { editorCtrl: a, labelText: t, errInfo: e } = L(), n = () => {
1648
- e != null && e.value.errClass && a && Q(a);
1667
+ const { editorCtrl: t, labelText: e, errInfo: a } = L(), n = () => {
1668
+ a != null && a.value.errClass && t && Q(t);
1649
1669
  };
1650
1670
  return (i, c) => {
1651
1671
  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]"] : "",
1672
+ return m(), b(l(Da), F({
1673
+ class: ((p = l(a)) == null ? void 0 : p.errClass) === "error" ? ["error", "!border-red-300", "shadow-[0_0_3px_0px_#ff4d4f]"] : "",
1654
1674
  "allow-clear": !0,
1655
1675
  autocomplete: "new-password",
1656
- placeholder: "请输入" + l(t),
1676
+ placeholder: "请输入" + l(e),
1657
1677
  onBlur: n
1658
1678
  }, i.$attrs), null, 16, ["class", "placeholder"]);
1659
1679
  };
1660
1680
  }
1661
- }), cl = /* @__PURE__ */ S({
1681
+ }), ul = /* @__PURE__ */ S({
1662
1682
  __name: "inputNumber",
1663
1683
  setup(s) {
1664
- const { editorCtrl: a, labelText: t, errInfo: e } = L(), n = () => {
1665
- e != null && e.value.errClass && a && Q(a);
1684
+ const { editorCtrl: t, labelText: e, errInfo: a } = L(), n = () => {
1685
+ a != null && a.value.errClass && t && Q(t);
1666
1686
  };
1667
1687
  return (i, c) => {
1668
1688
  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%]"],
1689
+ return m(), b(l(Ea), F({
1690
+ class: [[((p = l(a)) == null ? void 0 : p.errClass) === "error" ? "error !border-red-300 shadow-[0_0_3px_0px_#ff4d4f]" : ""], "w-[50%]"],
1671
1691
  onBlur: n,
1672
1692
  "allow-clear": !1,
1673
- placeholder: "请输入" + l(t)
1693
+ placeholder: "请输入" + l(e)
1674
1694
  }, i.$attrs), null, 16, ["class", "placeholder"]);
1675
1695
  };
1676
1696
  }
1677
- }), ka = { class: "flex flex-col gap-2" }, wa = { key: 1 }, ul = /* @__PURE__ */ S({
1697
+ }), yt = { class: "flex flex-col gap-2" }, kt = { key: 1 }, dl = /* @__PURE__ */ S({
1678
1698
  __name: "index",
1679
1699
  props: {
1680
1700
  value: {},
@@ -1684,24 +1704,24 @@ const ol = /* @__PURE__ */ S({
1684
1704
  valueHolder: {}
1685
1705
  },
1686
1706
  emits: ["update:value"],
1687
- setup(s, { emit: a }) {
1688
- const t = s, e = a, n = b(!(t.selectList && t.selectList.length > 0)), i = b([]);
1707
+ setup(s, { emit: t }) {
1708
+ const e = s, a = t, n = x(!(e.selectList && e.selectList.length > 0)), i = x([]);
1689
1709
  let c = !1;
1690
1710
  const p = () => {
1691
- t.selectList && t.selectList.length > 0 ? i.value = t.selectList.map((r) => ({
1711
+ e.selectList && e.selectList.length > 0 ? i.value = e.selectList.map((r) => ({
1692
1712
  id: Date.now() + Math.random(),
1693
1713
  text: r.text,
1694
1714
  field: r.field,
1695
1715
  // 如果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]) => ({
1716
+ value: e.value[r.field] ?? r.value
1717
+ })) : e.value && Object.keys(e.value).length > 0 ? i.value = Object.entries(e.value).map(([r, v]) => ({
1698
1718
  id: Date.now() + Math.random(),
1699
1719
  field: r,
1700
1720
  value: v
1701
1721
  })) : i.value = [];
1702
1722
  };
1703
- $(
1704
- () => t.value,
1723
+ T(
1724
+ () => e.value,
1705
1725
  () => {
1706
1726
  c || p(), c = !1;
1707
1727
  },
@@ -1712,7 +1732,7 @@ const ol = /* @__PURE__ */ S({
1712
1732
  (v, u) => (u.field && (v[u.field] = u.value), v),
1713
1733
  {}
1714
1734
  );
1715
- c = !0, e("update:value", r);
1735
+ c = !0, a("update:value", r);
1716
1736
  }, o = () => {
1717
1737
  i.value.push({
1718
1738
  id: Date.now() + Math.random(),
@@ -1722,15 +1742,15 @@ const ol = /* @__PURE__ */ S({
1722
1742
  }, f = () => {
1723
1743
  d();
1724
1744
  };
1725
- return (r, v) => (m(), w("div", ka, [
1726
- (m(!0), w(M, null, z(i.value, (u) => (m(), w("div", {
1745
+ return (r, v) => (m(), w("div", yt, [
1746
+ (m(!0), w(R, null, U(i.value, (u) => (m(), w("div", {
1727
1747
  key: u.id,
1728
1748
  class: "flex items-center gap-2"
1729
1749
  }, [
1730
- T("div", {
1750
+ $("div", {
1731
1751
  class: N([r.fieldWidth ? `w-[${r.fieldWidth}%]` : "w-[33%]"])
1732
1752
  }, [
1733
- !r.selectList || r.selectList.length === 0 ? (m(), _(l(te), {
1753
+ !r.selectList || r.selectList.length === 0 ? (m(), b(l(ae), {
1734
1754
  key: 0,
1735
1755
  value: u.field,
1736
1756
  "onUpdate:value": (g) => u.field = g,
@@ -1739,26 +1759,26 @@ const ol = /* @__PURE__ */ S({
1739
1759
  placeholder: u.text || r.labelHolder || "配置名",
1740
1760
  onInput: f,
1741
1761
  disabled: !n.value
1742
- }, null, 8, ["value", "onUpdate:value", "title", "placeholder", "disabled"])) : (m(), w("div", wa, [
1743
- y(l(te), {
1762
+ }, null, 8, ["value", "onUpdate:value", "title", "placeholder", "disabled"])) : (m(), w("div", kt, [
1763
+ k(l(ae), {
1744
1764
  value: u.text,
1745
1765
  "onUpdate:value": (g) => u.text = g,
1746
1766
  title: u.text,
1747
1767
  disabled: !0,
1748
1768
  class: "w-[100%]"
1749
1769
  }, null, 8, ["value", "onUpdate:value", "title"]),
1750
- y(l(te), {
1770
+ k(l(ae), {
1751
1771
  type: "hidden",
1752
1772
  value: u.field,
1753
1773
  "onUpdate:value": (g) => u.field = g
1754
1774
  }, null, 8, ["value", "onUpdate:value"])
1755
1775
  ]))
1756
1776
  ], 2),
1757
- v[0] || (v[0] = T("div", { class: "w-[3%]" }, "=", -1)),
1758
- T("div", {
1777
+ v[0] || (v[0] = $("div", { class: "w-[3%]" }, "=", -1)),
1778
+ $("div", {
1759
1779
  class: N([r.fieldWidth ? `w-[${97 - r.fieldWidth}%]` : "w-[64%]"])
1760
1780
  }, [
1761
- y(l(te), {
1781
+ k(l(ae), {
1762
1782
  value: u.value,
1763
1783
  "onUpdate:value": (g) => u.value = g,
1764
1784
  placeholder: r.valueHolder || "请输入" + u.text || "请输入配置值",
@@ -1767,21 +1787,21 @@ const ol = /* @__PURE__ */ S({
1767
1787
  }, null, 8, ["value", "onUpdate:value", "placeholder", "title"])
1768
1788
  ], 2)
1769
1789
  ]))), 128)),
1770
- n.value ? (m(), _(l(Ye), {
1790
+ n.value ? (m(), b(l(Ye), {
1771
1791
  key: 0,
1772
1792
  onClick: o,
1773
1793
  class: "mt-1 w-[80px] !text-[12px] text-[#666] bg-[#e6f7ff] border-[#b3e0ff] hover:bg-[#b3e0ff] hover:border-[#8abeff]",
1774
1794
  size: "small"
1775
1795
  }, {
1776
1796
  default: h(() => v[1] || (v[1] = [
1777
- R(" 新增配置行 ")
1797
+ M(" 新增配置行 ")
1778
1798
  ])),
1779
1799
  _: 1,
1780
1800
  __: [1]
1781
- })) : k("", !0)
1801
+ })) : y("", !0)
1782
1802
  ]));
1783
1803
  }
1784
- }), Sa = /* @__PURE__ */ G(dt, [["__scopeId", "data-v-cf2cfa24"]]), dl = /* @__PURE__ */ S({
1804
+ }), wt = /* @__PURE__ */ q(pa, [["__scopeId", "data-v-cf2cfa24"]]), pl = /* @__PURE__ */ S({
1785
1805
  __name: "radioStatus",
1786
1806
  props: {
1787
1807
  /**
@@ -1809,13 +1829,13 @@ const ol = /* @__PURE__ */ S({
1809
1829
  }
1810
1830
  },
1811
1831
  setup(s) {
1812
- const a = s, t = b(JSON.parse(JSON.stringify(Ne.getOptions(a.dataKey))));
1813
- return a.all === !0 && t.value.unshift({
1832
+ const t = s, e = x(JSON.parse(JSON.stringify(Ne.getOptions(t.dataKey))));
1833
+ return t.all === !0 && e.value.unshift({
1814
1834
  label: "全部",
1815
- value: a.allValue || [0, 1]
1816
- }), (e, n) => (m(), _(Sa, { data: t.value }, null, 8, ["data"]));
1835
+ value: t.allValue || [0, 1]
1836
+ }), (a, n) => (m(), b(wt, { data: e.value }, null, 8, ["data"]));
1817
1837
  }
1818
- }), pl = /* @__PURE__ */ S({
1838
+ }), fl = /* @__PURE__ */ S({
1819
1839
  __name: "index",
1820
1840
  props: {
1821
1841
  startDate: {},
@@ -1823,9 +1843,9 @@ const ol = /* @__PURE__ */ S({
1823
1843
  valueFormat: { default: "YYYY-MM-DD" }
1824
1844
  },
1825
1845
  emits: ["update:startDate", "update:endDate"],
1826
- setup(s, { emit: a }) {
1827
- const t = s, e = a, n = L(), { errInfo: i } = n, c = Z(() => t.valueFormat), p = Z(() => {
1828
- const o = t.startDate, f = t.endDate;
1846
+ setup(s, { emit: t }) {
1847
+ const e = s, a = t, n = L(), { errInfo: i } = n, c = X(() => e.valueFormat), p = X(() => {
1848
+ const o = e.startDate, f = e.endDate;
1829
1849
  if (!(!o || !f))
1830
1850
  try {
1831
1851
  const r = fe(o), v = fe(f);
@@ -1835,14 +1855,14 @@ const ol = /* @__PURE__ */ S({
1835
1855
  }
1836
1856
  }), d = (o, f) => {
1837
1857
  if (!o || !f || f.length !== 2) {
1838
- e("update:startDate", null), e("update:endDate", null);
1858
+ a("update:startDate", null), a("update:endDate", null);
1839
1859
  return;
1840
1860
  }
1841
- e("update:startDate", f[0] || null), e("update:endDate", f[1] || null);
1861
+ a("update:startDate", f[0] || null), a("update:endDate", f[1] || null);
1842
1862
  };
1843
1863
  return (o, f) => {
1844
1864
  var r;
1845
- return m(), _(l(Et), {
1865
+ return m(), b(l(Pa), {
1846
1866
  class: N([((r = l(i)) == null ? void 0 : r.errClass) === "error" ? ["error", "!border-red-300", "shadow-[0_0_3px_0px_#ff4d4f]"] : "", "w-full"]),
1847
1867
  locale: l(ye),
1848
1868
  "value-format": c.value,
@@ -1851,27 +1871,27 @@ const ol = /* @__PURE__ */ S({
1851
1871
  }, null, 8, ["class", "locale", "value-format", "value"]);
1852
1872
  };
1853
1873
  }
1854
- }), fl = /* @__PURE__ */ G(pt, [["__scopeId", "data-v-8e93cef3"]]), vl = /* @__PURE__ */ S({
1874
+ }), vl = /* @__PURE__ */ q(fa, [["__scopeId", "data-v-8e93cef3"]]), ml = /* @__PURE__ */ S({
1855
1875
  __name: "index",
1856
1876
  setup(s) {
1857
- const { editorCtrl: a, labelText: t, errInfo: e } = L(), n = () => {
1858
- e != null && e.value.errClass && a && Q(a);
1877
+ const { editorCtrl: t, labelText: e, errInfo: a } = L(), n = () => {
1878
+ a != null && a.value.errClass && t && Q(t);
1859
1879
  };
1860
1880
  return (i, c) => {
1861
1881
  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]"] : "",
1882
+ return m(), b(l(Fa), F({
1883
+ class: ((p = l(a)) == null ? void 0 : p.errClass) === "error" ? ["error", "!border-red-300", "shadow-[0_0_3px_0px_#ff4d4f]"] : "",
1864
1884
  "allow-clear": !0,
1865
- placeholder: "请输入" + l(t),
1885
+ placeholder: "请输入" + l(e),
1866
1886
  onBlur: n,
1867
- onKeyup: c[0] || (c[0] = Se(ae(() => {
1887
+ onKeyup: c[0] || (c[0] = Se(te(() => {
1868
1888
  }, ["stop"]), ["enter", "native"])),
1869
- onKeydown: c[1] || (c[1] = Se(ae(() => {
1889
+ onKeydown: c[1] || (c[1] = Se(te(() => {
1870
1890
  }, ["stop"]), ["enter", "native"]))
1871
1891
  }, i.$attrs), null, 16, ["class", "placeholder"]);
1872
1892
  };
1873
1893
  }
1874
- }), Ca = /* @__PURE__ */ S({
1894
+ }), St = /* @__PURE__ */ S({
1875
1895
  __name: "index",
1876
1896
  props: {
1877
1897
  autoload: { type: Boolean },
@@ -1880,12 +1900,12 @@ const ol = /* @__PURE__ */ S({
1880
1900
  value: {}
1881
1901
  },
1882
1902
  emits: ["change", "update:value"],
1883
- setup(s, { emit: a }) {
1884
- const t = s, e = b({ ...t.url }), { editorCtrl: n, labelText: i, errInfo: c } = L(), p = a, d = b([]), o = b([]);
1885
- t.value && t.value.every((r) => {
1903
+ setup(s, { emit: t }) {
1904
+ const e = s, a = x({ ...e.url }), { editorCtrl: n, labelText: i, errInfo: c } = L(), p = t, d = x([]), o = x([]);
1905
+ e.value && e.value.every((r) => {
1886
1906
  o.value.push(r.toString());
1887
- }), $(
1888
- () => t.value,
1907
+ }), T(
1908
+ () => e.value,
1889
1909
  (r) => {
1890
1910
  r && (o.value = r);
1891
1911
  }
@@ -1893,34 +1913,34 @@ const ol = /* @__PURE__ */ S({
1893
1913
  const f = (r) => {
1894
1914
  p("update:value", r), p("change", r), o.value = r, c != null && c.value.errClass && n && Q(n);
1895
1915
  };
1896
- return W(async () => {
1897
- if (e.value) {
1916
+ return V(async () => {
1917
+ if (a.value) {
1898
1918
  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, {
1919
+ 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) {
1920
+ const v = await Re(n, {
1901
1921
  urlKey: "list",
1902
- url: { ...e.value, url: e.value.url },
1922
+ url: { ...a.value, url: a.value.url },
1903
1923
  loadingText: !1,
1904
- params: t.params
1924
+ params: e.params
1905
1925
  });
1906
1926
  d.value = (v == null ? void 0 : v.data) ?? [];
1907
1927
  }
1908
1928
  }
1909
1929
  }), (r, v) => {
1910
1930
  var u;
1911
- return m(), _(l(Nt), E({
1931
+ return m(), b(l(Na), F({
1912
1932
  class: ((u = l(c)) == null ? void 0 : u.errClass) === "error" ? ["error", "!border-red-300", "shadow-[0_0_3px_0px_#ff4d4f]"] : "",
1913
1933
  placeholder: "请输入" + l(i),
1914
1934
  targetKeys: o.value,
1915
1935
  onChange: f
1916
1936
  }, r.$attrs), {
1917
- children: h(({ direction: g, disabled: C, filteredItems: P, onItemSelectAll: O, onItemSelect: x, selectedKeys: I }) => [
1937
+ children: h(({ direction: g, disabled: C, filteredItems: E, onItemSelectAll: O, onItemSelect: _, selectedKeys: I }) => [
1918
1938
  D(r.$slots, "children", {
1919
1939
  direction: g,
1920
1940
  disabled: C,
1921
- filteredItems: P,
1941
+ filteredItems: E,
1922
1942
  onItemSelectAll: O,
1923
- onItemSelect: x,
1943
+ onItemSelect: _,
1924
1944
  selectedKeys: I
1925
1945
  })
1926
1946
  ]),
@@ -1928,7 +1948,7 @@ const ol = /* @__PURE__ */ S({
1928
1948
  }, 16, ["class", "placeholder", "targetKeys"]);
1929
1949
  };
1930
1950
  }
1931
- }), ml = /* @__PURE__ */ S({
1951
+ }), hl = /* @__PURE__ */ S({
1932
1952
  __name: "transferTable",
1933
1953
  props: {
1934
1954
  /**
@@ -1954,44 +1974,44 @@ const ol = /* @__PURE__ */ S({
1954
1974
  }
1955
1975
  },
1956
1976
  emits: ["update:value"],
1957
- setup(s, { emit: a }) {
1958
- const t = s, e = a, n = b(t.autoload), i = b(t.value), c = b(t.gridCtrl.primaryKey);
1959
- $(
1977
+ setup(s, { emit: t }) {
1978
+ const e = s, a = t, n = x(e.autoload), i = x(e.value), c = x(e.gridCtrl.primaryKey);
1979
+ T(
1960
1980
  () => i.value,
1961
1981
  (o) => {
1962
- e("update:value", o);
1982
+ a("update:value", o);
1963
1983
  }
1964
- ), $(
1965
- () => t.value,
1984
+ ), T(
1985
+ () => e.value,
1966
1986
  (o) => {
1967
1987
  o && (i.value = o);
1968
1988
  }
1969
- ), t.gridCtrl.autoload = !1, t.gridCtrl.remotePage = !1, t.gridCtrl.selectable = b(!0), t.gridCtrl.buttons = b([]), t.gridCtrl.tools = [];
1989
+ ), e.gridCtrl.autoload = !1, e.gridCtrl.remotePage = !1, e.gridCtrl.selectable = x(!0), e.gridCtrl.buttons = x([]), e.gridCtrl.tools = [];
1970
1990
  const p = ({ disabled: o, selectedKeys: f, onItemSelectAll: r, onItemSelect: v }) => ({
1971
1991
  getCheckboxProps: (u) => ({
1972
1992
  // 控制是否禁止
1973
1993
  disabled: o || u.disabled
1974
1994
  }),
1975
1995
  onSelectAll(u, g) {
1976
- const C = g.filter((P) => !P.disabled).map(({ [c.value]: P }) => P);
1996
+ const C = g.filter((E) => !E.disabled).map(({ [c.value]: E }) => E);
1977
1997
  r(C, u);
1978
1998
  },
1979
1999
  onSelect({ [c.value]: u }, g) {
1980
2000
  v(u, g);
1981
2001
  },
1982
2002
  selectedRowKeys: f
1983
- }), d = b([]);
1984
- return W(async () => {
2003
+ }), d = x([]);
2004
+ return V(async () => {
1985
2005
  if (n.value) {
1986
- const o = await Me(t.gridCtrl, {
2006
+ const o = await Re(e.gridCtrl, {
1987
2007
  urlKey: "list",
1988
- url: { ...t.gridCtrl.gridUrl, url: t.gridCtrl.gridUrl.url },
1989
- params: t.gridCtrl.gridQuery,
2008
+ url: { ...e.gridCtrl.gridUrl, url: e.gridCtrl.gridUrl.url },
2009
+ params: e.gridCtrl.gridQuery,
1990
2010
  loadingText: !1
1991
2011
  });
1992
2012
  d.value = (o == null ? void 0 : o.data) ?? [];
1993
2013
  }
1994
- }), (o, f) => (m(), _(Ca, E({
2014
+ }), (o, f) => (m(), b(St, F({
1995
2015
  "data-source": d.value,
1996
2016
  "row-key": (r) => r[c.value],
1997
2017
  value: i.value,
@@ -2003,14 +2023,14 @@ const ol = /* @__PURE__ */ S({
2003
2023
  "show-select-all": !1,
2004
2024
  "show-search": !0,
2005
2025
  "filter-option": (r, v) => {
2006
- for (const u of t.gridCtrl.columns.value)
2026
+ for (const u of e.gridCtrl.columns.value)
2007
2027
  if (v[u.dataIndex].toString().indexOf(r) !== -1)
2008
2028
  return !0;
2009
2029
  return !1;
2010
2030
  }
2011
2031
  }, o.$attrs), {
2012
2032
  children: h(({ filteredItems: r, onItemSelectAll: v, onItemSelect: u, selectedKeys: g }) => [
2013
- y(l(We), {
2033
+ k(l(Ve), {
2014
2034
  columns: s.gridCtrl.columns.value,
2015
2035
  "row-key": c.value,
2016
2036
  "row-selection": p({
@@ -2025,8 +2045,8 @@ const ol = /* @__PURE__ */ S({
2025
2045
  scroll: { x: 300 },
2026
2046
  "custom-row": (C) => ({
2027
2047
  onClick: () => {
2028
- const P = C[c.value];
2029
- u(P, !g.includes(P));
2048
+ const E = C[c.value];
2049
+ u(E, !g.includes(E));
2030
2050
  }
2031
2051
  })
2032
2052
  }, null, 8, ["columns", "row-key", "row-selection", "data-source", "custom-row"])
@@ -2034,7 +2054,7 @@ const ol = /* @__PURE__ */ S({
2034
2054
  _: 1
2035
2055
  }, 16, ["data-source", "row-key", "value", "filter-option"]));
2036
2056
  }
2037
- }), $a = /* @__PURE__ */ S({
2057
+ }), Ct = /* @__PURE__ */ S({
2038
2058
  __name: "index",
2039
2059
  props: {
2040
2060
  multiple: {
@@ -2051,35 +2071,35 @@ const ol = /* @__PURE__ */ S({
2051
2071
  }
2052
2072
  },
2053
2073
  emits: ["change", "update:value"],
2054
- setup(s, { emit: a }) {
2055
- const t = s, e = t.treeCtrl, n = L(), { errInfo: i, labelText: c } = n, p = a;
2074
+ setup(s, { emit: t }) {
2075
+ const e = s, a = e.treeCtrl, n = L(), { errInfo: i, labelText: c } = n, p = t;
2056
2076
  n.inputEmit = p;
2057
- const d = b([]), o = b();
2058
- $(
2059
- () => t.value,
2077
+ const d = x([]), o = x();
2078
+ T(
2079
+ () => e.value,
2060
2080
  (r) => {
2061
2081
  o.value = r ?? null;
2062
2082
  },
2063
2083
  { immediate: !0 }
2064
- ), $(
2065
- () => e.data.value,
2084
+ ), T(
2085
+ () => a.data.value,
2066
2086
  (r) => {
2067
- r && (d.value = e.fieldMap ? oe(e.fieldMap, r) : r);
2087
+ r && (d.value = a.fieldMap ? oe(a.fieldMap, r) : r);
2068
2088
  },
2069
2089
  { immediate: !0 }
2070
2090
  );
2071
2091
  const f = (r) => {
2072
- t.multiple ? o.value = r ?? [] : o.value = r ?? "", p("change", o.value), p("update:value", o.value);
2092
+ e.multiple ? o.value = r ?? [] : o.value = r ?? "", p("change", o.value), p("update:value", o.value);
2073
2093
  };
2074
- return W(() => {
2075
- e.fieldMap || (e.fieldMap = {
2094
+ return V(() => {
2095
+ a.fieldMap || (a.fieldMap = {
2076
2096
  label: "Name",
2077
2097
  key: "Id",
2078
2098
  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);
2099
+ }), a.data.value ? d.value = a.fieldMap ? oe(a.fieldMap, a.data.value) : a.data.value : e.treeCtrl.autoload && Me(e.treeCtrl);
2080
2100
  }), (r, v) => {
2081
2101
  var u;
2082
- return m(), _(l(Rt), E({
2102
+ return m(), b(l(Ma), F({
2083
2103
  class: [[(u = l(i)) == null ? void 0 : u.errClass], "w-full"],
2084
2104
  "tree-line": "",
2085
2105
  multiple: s.multiple,
@@ -2093,30 +2113,30 @@ const ol = /* @__PURE__ */ S({
2093
2113
  }, r.$attrs), null, 16, ["class", "multiple", "value", "tree-data", "placeholder"]);
2094
2114
  };
2095
2115
  }
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 = {
2116
+ }), gl = /* @__PURE__ */ q(Ct, [["__scopeId", "data-v-f000d1d0"]]), Tt = { class: "relative h-[calc(100vh-80px)] overflow-y-auto" }, $t = { class: "flex w-full h-full min-h-full" }, It = {
2097
2117
  key: 0,
2098
2118
  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({
2119
+ }, Dt = { class: "flex-1 h-full overflow-y-auto" }, bl = /* @__PURE__ */ S({
2100
2120
  __name: "index",
2101
2121
  props: {
2102
2122
  left: { type: Boolean }
2103
2123
  },
2104
2124
  setup(s) {
2105
- const { useToken: a } = Le, { token: t } = a();
2106
- return (e, n) => (m(), w("div", Ta, [
2107
- y(l(Mt), {
2125
+ const { useToken: t } = Le, { token: e } = t();
2126
+ return (a, n) => (m(), w("div", Tt, [
2127
+ k(l(Ra), {
2108
2128
  class: "m-[10px] p-[10px] h-[calc(100vh-100px)] !min-h-[calc(100vh-100px)]",
2109
2129
  style: ue({
2110
- backgroundColor: l(t).colorBgContainer
2130
+ backgroundColor: l(e).colorBgContainer
2111
2131
  })
2112
2132
  }, {
2113
2133
  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")
2134
+ $("div", $t, [
2135
+ a.left ? (m(), w("div", It, [
2136
+ D(a.$slots, "left")
2137
+ ])) : y("", !0),
2138
+ $("div", Dt, [
2139
+ D(a.$slots, "default")
2120
2140
  ])
2121
2141
  ])
2122
2142
  ]),
@@ -2126,147 +2146,158 @@ const ol = /* @__PURE__ */ S({
2126
2146
  }
2127
2147
  });
2128
2148
  export {
2129
- Cs as AppIcon,
2149
+ Rs as AppIcon,
2130
2150
  ce as AppRouter,
2131
- rs as AsyncUploader,
2132
- ll as AutoComplete,
2133
- $s as Breadcrumb,
2151
+ os as AsyncUploader,
2152
+ sl as AutoComplete,
2153
+ Os as Breadcrumb,
2134
2154
  B as Button,
2135
- je as Cache,
2136
- Qt as CacheKeys,
2137
- sl as Cascader,
2138
- rl as Checkbox,
2139
- gl as Content,
2140
- ol as DatePicker,
2141
- Ts as Datetime,
2142
- Ms as Dialog,
2143
- Ja as Drawer,
2144
- xl as EventPrefix,
2145
- Xa as Form,
2146
- Za as FormItem,
2147
- Qa as Fullscreen,
2148
- Is as Header,
2149
- Ds as HeaderExits,
2150
- Gt as Helper,
2151
- yl as ICONS_LIB,
2152
- Ps as Icon,
2153
- ia as Icontool,
2154
- xa as Input,
2155
- nl as InputIcon,
2156
- cl as InputNumber,
2157
- il as InputPassword,
2158
- qa as LayoutIcon,
2159
- Ga as Loading,
2160
- Es as Menu,
2161
- Fs as MenuTabs,
2155
+ He as Cache,
2156
+ Qa as CacheKeys,
2157
+ hs as CanPreviewFileExt,
2158
+ rl as Cascader,
2159
+ ol as Checkbox,
2160
+ bl as Content,
2161
+ nl as DatePicker,
2162
+ As as Datetime,
2163
+ Ks as Dialog,
2164
+ Xt as Drawer,
2165
+ yl as EventPrefix,
2166
+ Zt as Form,
2167
+ el as FormItem,
2168
+ Gt as Fullscreen,
2169
+ Bs as Header,
2170
+ Ls as HeaderExits,
2171
+ Ga as Helper,
2172
+ kl as ICONS_LIB,
2173
+ Us as Icon,
2174
+ nt as Icontool,
2175
+ xt as Input,
2176
+ il as InputIcon,
2177
+ ul as InputNumber,
2178
+ cl as InputPassword,
2179
+ Jt as LayoutIcon,
2180
+ ys as Loading,
2181
+ zs as Menu,
2182
+ Ys as MenuTabs,
2162
2183
  Ne as OPTIONS,
2163
- rt as OptionCommProps,
2164
- Ns as ProjectIcon,
2165
- ul as PropEditor,
2184
+ oa as OptionCommProps,
2185
+ Vs as ProjectIcon,
2186
+ dl as PropEditor,
2166
2187
  j as ProviderKeys,
2167
- Sa as Radio,
2168
- dl as RadioStatus,
2169
- pl as RangePicker,
2170
- el as Search,
2188
+ wt as Radio,
2189
+ pl as RadioStatus,
2190
+ fl as RangePicker,
2191
+ al as Search,
2171
2192
  pe as SearchItem,
2172
- fl as Select,
2173
- at as Switch,
2193
+ vl as Select,
2194
+ la as Switch,
2174
2195
  tl as Table,
2175
- oa as TableOperate,
2176
- vl as Textarea,
2177
- U as ToolIcon,
2178
- pa as Toolbar,
2179
- ws as Tooltip,
2180
- Ca as Transfer,
2181
- ml as TransferTable,
2182
- al as Tree,
2183
- hl as TreeSelect,
2184
- ms as UploadList,
2185
- os as UploadStatus,
2186
- _s as appendExcelData,
2187
- bs as checkExcelDuplicates,
2188
- kl as checkIconsExpired,
2189
- ct as circleLoading,
2190
- qe as createFromIconfont,
2191
- wl as crumbs,
2196
+ rt as TableOperate,
2197
+ ml as Textarea,
2198
+ z as ToolIcon,
2199
+ dt as Toolbar,
2200
+ Ns as Tooltip,
2201
+ St as Transfer,
2202
+ hl as TransferTable,
2203
+ ll as Tree,
2204
+ gl as TreeSelect,
2205
+ gs as UploadList,
2206
+ ns as UploadStatus,
2207
+ ks as appendExcelData,
2208
+ ws as checkExcelDuplicates,
2209
+ wl as checkIconsExpired,
2210
+ ua as circleLoading,
2211
+ Ge as createFromIconfont,
2212
+ Ss as createMarkedExcelView,
2213
+ Sl as crumbs,
2214
+ jt as csvToExcelBlob,
2215
+ Ke as csvToExcelView,
2216
+ Cs as csvToNormalized,
2192
2217
  De as defaultTools,
2193
- Sl as doDelete,
2194
- Cl as doExecute,
2195
- Me as doQuery,
2218
+ Cl as doDelete,
2219
+ Tl as doExecute,
2220
+ Re as doQuery,
2196
2221
  $l as doSave,
2197
- hs as donwloadFromMinio,
2198
- Ke as downloadBlob,
2199
- Tl as eventBus,
2200
- Ha as exportResults,
2201
- ja as exportSelectedRows,
2222
+ bs as donwloadFromMinio,
2223
+ We as downloadBlob,
2224
+ Il as eventBus,
2225
+ Ts as excelToExcelView,
2226
+ $s as excelToNormalized,
2227
+ qt as exportResults,
2228
+ Qt as exportSelectedRows,
2202
2229
  Fe as filterColumns,
2203
2230
  Q as formValidate,
2204
- ns as getAppInfo,
2205
- Il as getFormDetail,
2206
- is as getHostInfo,
2207
- Dl as getIconTransform,
2231
+ is as getAppInfo,
2232
+ Dl as getFormDetail,
2233
+ cs as getHostInfo,
2234
+ El as getIconTransform,
2208
2235
  Pl as getRecordDetail,
2209
- El as getRuleTexts,
2210
- Fl as getSelectedLabels,
2211
- Nl as getSelectedValues,
2212
- cs as getToken,
2213
- K as getToolByKey,
2214
- xe as getToolGroup,
2215
- V as getToolStatus,
2216
- X as getToolVisible,
2217
- us as getUserInfo,
2236
+ Fl as getRuleTexts,
2237
+ Nl as getSelectedLabels,
2238
+ Ml as getSelectedValues,
2239
+ us as getToken,
2240
+ W as getToolByKey,
2241
+ _e as getToolGroup,
2242
+ K as getToolStatus,
2243
+ J as getToolVisible,
2244
+ ds as getUserInfo,
2218
2245
  ke as gridQueryFind,
2219
- tt as gridQueryList,
2246
+ ta as gridQueryList,
2220
2247
  Rl as gridRowUpdate,
2221
- lt as gridStatusUpdate,
2222
- Va as initCacheCheck,
2223
- Ka as initDirective,
2224
- Ml as initMenu,
2225
- Ol as initPageFactory,
2226
- Al as initValidate,
2248
+ sa as gridStatusUpdate,
2249
+ Kt as initCacheCheck,
2250
+ Wt as initDirective,
2251
+ Ol as initMenu,
2252
+ Al as initPageFactory,
2253
+ Bl as initValidate,
2227
2254
  ee as isEmpty,
2228
- nt as loadOption,
2229
- Bl as mergeColumns,
2230
- jt as onColumnVisibleChanged,
2231
- Je as onFormClose,
2232
- Pe as onFormSave,
2233
- Ge as onFormSaveAs,
2234
- Ve as onFullscreenClick,
2235
- Ze as onGridRowDelete,
2236
- Xe as onGridRowEdit,
2237
- Ll as onGridRowExpand,
2255
+ ia as loadOption,
2256
+ Ll as mergeColumns,
2257
+ Is as normalizedToExcelView,
2258
+ ja as onColumnVisibleChanged,
2259
+ Xe as onFormClose,
2260
+ Ee as onFormSave,
2261
+ Je as onFormSaveAs,
2262
+ je as onFullscreenClick,
2263
+ ea as onGridRowDelete,
2264
+ Ze as onGridRowEdit,
2265
+ Ul as onGridRowExpand,
2238
2266
  zl as onOptionChanged,
2239
- Lt as onReloadClick,
2267
+ La as onReloadClick,
2240
2268
  Y as onToolClicked,
2241
- et as openNewForm,
2242
- Ul as outFormDataFields,
2243
- Yl as parseIcons,
2244
- ds as path,
2269
+ aa as openNewForm,
2270
+ Yl as outFormDataFields,
2271
+ Vl as parseIcons,
2272
+ ps as path,
2245
2273
  Wl as pendingNavigation,
2246
2274
  Kl as pinia,
2247
- xs as processExcelFile,
2248
- Re as queryTree,
2249
- Vl as resetRules,
2250
- jl as routes,
2251
- Hl as saveForm,
2252
- Ql as setFormData,
2253
- ql as showBreadcrumb,
2254
- it as unloadOption,
2255
- Gl as useAppInfo,
2256
- Jl as useEditorFactory,
2257
- Ee as useFormItemFactory,
2258
- Xl as useGridFactory,
2259
- Zl as useHostInfo,
2275
+ xs as previewFromMinio,
2276
+ Ht as processCsvFile,
2277
+ Ds as processExcelFile,
2278
+ Me as queryTree,
2279
+ jl as resetRules,
2280
+ Hl as routes,
2281
+ Ql as saveForm,
2282
+ ql as setFormData,
2283
+ Gl as showBreadcrumb,
2284
+ Es as toExcel,
2285
+ ca as unloadOption,
2286
+ Jl as useAppInfo,
2287
+ Xl as useEditorFactory,
2288
+ Pe as useFormItemFactory,
2289
+ Zl as useGridFactory,
2290
+ es as useHostInfo,
2260
2291
  L as useInputFactory,
2261
- ot as useOptionFactory,
2262
- es as usePageFactory,
2292
+ na as useOptionFactory,
2293
+ as as usePageFactory,
2263
2294
  ts as usePageInfo,
2264
2295
  me as useSettingInfo,
2265
- Ht as useToolFactory,
2266
- as as useTreeFactory,
2267
- Qe as useUserInfo,
2268
- ps as userLogin,
2269
- fs as userLogout,
2270
- ls as validateData,
2271
- ys as validateExcel
2296
+ Ha as useToolFactory,
2297
+ ls as useTreeFactory,
2298
+ qe as useUserInfo,
2299
+ fs as userLogin,
2300
+ vs as userLogout,
2301
+ ss as validateData,
2302
+ Ps as validateExcel
2272
2303
  };