@skyfox2000/webui 1.4.6 → 1.4.8

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