@skyfox2000/webui 1.3.4 → 1.3.6

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