@skyfox2000/webui 1.5.3 → 1.5.7

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 (65) hide show
  1. package/lib/assets/modules/{baseLayout-LU1ysAJM.js → baseLayout-DfTxHOFc.js} +7 -7
  2. package/lib/assets/modules/file-upload-DTOdV5vM.js +211 -0
  3. package/lib/assets/modules/index-BDoBUrYA.js +114 -0
  4. package/lib/assets/modules/{index-C6RrxZBR.js → index-BwMaOrJT.js} +1 -1
  5. package/lib/assets/modules/{index-CHG5bbZG.js → index-M1qERbea.js} +99 -99
  6. package/lib/assets/modules/{menuTabs-Bk8A-zzL.js → menuTabs-DWaBSRNr.js} +42 -42
  7. package/lib/assets/modules/{toolIcon-ADz-Bt4_.js → toolIcon-BYnHhAy-.js} +1 -1
  8. package/lib/assets/modules/upload-template-BKm9mFq8.js +6764 -0
  9. package/lib/assets/modules/uploadList-CHvr6Hp1.js +472 -0
  10. package/lib/es/AceEditor/index.js +3 -3
  11. package/lib/es/BasicLayout/index.js +2 -2
  12. package/lib/es/Error403/index.js +14 -15
  13. package/lib/es/Error404/index.js +16 -17
  14. package/lib/es/ExcelForm/index.js +244 -244
  15. package/lib/es/MenuLayout/index.js +5 -5
  16. package/lib/es/TemplateFile/index.js +53 -54
  17. package/lib/es/UploadForm/index.js +61 -63
  18. package/lib/locales/default.d.ts +287 -103
  19. package/lib/webui.css +1 -1
  20. package/lib/webui.es.js +1440 -1586
  21. package/package.json +1 -1
  22. package/src/components/common/icon/fullscreen.vue +1 -1
  23. package/src/components/content/dialog/excelForm.vue +32 -28
  24. package/src/components/content/dialog/index.vue +3 -3
  25. package/src/components/content/dialog/templateFile.vue +3 -2
  26. package/src/components/content/dialog/uploadForm.vue +5 -4
  27. package/src/components/content/drawer/index.vue +5 -3
  28. package/src/components/content/list/index.vue +2 -1
  29. package/src/components/content/list/listOperate.vue +6 -7
  30. package/src/components/content/search/index.vue +2 -2
  31. package/src/components/content/table/index.vue +2 -1
  32. package/src/components/content/table/tableOperate.vue +8 -9
  33. package/src/components/content/toolbar/icontool.vue +1 -5
  34. package/src/components/content/toolbar/index.vue +4 -5
  35. package/src/components/content/toolpanel/index.vue +20 -20
  36. package/src/components/error/error403.vue +2 -2
  37. package/src/components/error/error404.vue +2 -2
  38. package/src/components/form/input/index.vue +3 -1
  39. package/src/components/form/select/index.vue +3 -2
  40. package/src/components/form/textarea/index.vue +3 -1
  41. package/src/components/form/transfer/index.vue +2 -1
  42. package/src/components/form/upload/uploadList.vue +23 -19
  43. package/src/components/layout/header/headerExits.vue +5 -5
  44. package/src/components/layout/menu/menuTabs.vue +1 -1
  45. package/src/const/options.ts +17 -16
  46. package/src/locales/default.ts +297 -176
  47. package/src/locales/index.ts +12 -4
  48. package/src/stores/appInfo.ts +2 -1
  49. package/src/stores/userInfo.ts +6 -5
  50. package/src/utils/data.ts +9 -8
  51. package/src/utils/download.ts +5 -4
  52. package/src/utils/excel-preview.ts +4 -3
  53. package/src/utils/export-table.ts +7 -6
  54. package/src/utils/file-upload.ts +15 -14
  55. package/src/utils/form-csv.ts +4 -3
  56. package/src/utils/form-excel.ts +14 -13
  57. package/src/utils/form-validate.ts +18 -17
  58. package/src/utils/form.ts +6 -5
  59. package/src/utils/icon-loader.ts +3 -2
  60. package/src/utils/options.ts +2 -1
  61. package/src/utils/tools.ts +18 -17
  62. package/lib/assets/modules/file-upload-BvIYPDBD.js +0 -211
  63. package/lib/assets/modules/index-Bi3hR8Gf.js +0 -114
  64. package/lib/assets/modules/upload-template-mzLL4UUU.js +0 -6462
  65. package/lib/assets/modules/uploadList-DRGJEXDH.js +0 -466
package/lib/webui.es.js CHANGED
@@ -1,286 +1,134 @@
1
- import { u as Me, i as pe, a as Be, L as St, c as $t, P as re, o as qe, b as Tt, d as Dt, e as He, g as Qe, r as de, f as Je, h as Xe, j as Ze, k as Pt, l as me, m as et, _ as tt, n as at, O as Ne, p as Ft, q as lt, s as It, t as Et, v as ee, w as Lt, x as Ut, y as Mt, z as Bt, A as Nt, B as zt, C as se, D as At, E as Ot, F as Rt, G as rt, M as Kt } from "./assets/modules/upload-template-mzLL4UUU.js";
2
- import { ao as Ar, ad as Or, T as Rr, U as Kr, Y as jr, ac as Vr, aa as Yr, ab as Gr, ae as Wr, ap as qr, a0 as Hr, W as Qr, aq as Jr, a8 as Xr, a5 as Zr, R as es, a7 as ts, am as as, an as ls, X as rs, I as ss, a2 as os, a6 as ns, a9 as is, S as us, V as cs, af as ds, H as ps, a4 as fs, ag as vs, $ as gs, a1 as ms, ar as hs, Z as bs, al as ys, ak as xs, ah as _s, J as ks, K as ws, ai as Cs, Q as Ss, aj as $s, N as Ts, a3 as Ds } from "./assets/modules/upload-template-mzLL4UUU.js";
3
- import { f as jt, p as Re } from "./assets/modules/file-upload-BvIYPDBD.js";
4
- import { A as Fs, U as Is } from "./assets/modules/file-upload-BvIYPDBD.js";
5
- import { EnvConfig as Ke, isMicroApp as Vt } from "@skyfox2000/microbase";
6
- import { FrontCache as ge, httpPost as ze, ResStatus as Ae, SERVER_HOST as Yt, fieldMapping as he } from "@skyfox2000/fapi";
7
- import te from "vue-m-message";
8
- import { defineComponent as I, createBlock as k, openBlock as d, withModifiers as ve, unref as l, useAttrs as ue, withCtx as x, createElementVNode as F, createVNode as D, mergeProps as U, renderSlot as O, normalizeClass as B, toDisplayString as M, createCommentVNode as w, ref as C, provide as _e, watch as L, onMounted as ae, createTextVNode as Y, inject as be, resolveDirective as oe, withDirectives as H, computed as K, createElementBlock as b, normalizeStyle as Oe, Fragment as E, renderList as j, resolveDynamicComponent as st, onActivated as ke, createSlots as ot, useSlots as Gt, vShow as Pe, shallowRef as Wt, onUnmounted as qt, withKeys as je } from "vue";
1
+ import { u as Me, i as pe, $ as F, L as Ct, a as Ge, o as St, c as $t, P as se, b as We, d as Tt, e as Dt, f as qe, g as He, r as de, h as Qe, j as Je, k as Ae, l as J, m as X, n as W, p as Pt, q as me, s as Xe, t as Ft, v as It, w as he, x as Ze, _ as et, y as tt, O as Be, z as Et, A as at, B as Lt, C as Ut, D as te, E as Mt, F as At, G as Bt, H as Nt, I as zt, J as Ot, K as oe, M as Rt, N as lt, Q as Kt, R as jt, S as rt, T as Yt } from "./assets/modules/upload-template-BKm9mFq8.js";
2
+ import { ap as Er, a4 as Lr, a5 as Ur, a9 as Mr, W as Ar, ao as Br, am as Nr, an as zr, aq as Or, aA as Rr, ac as Kr, a7 as jr, aB as Yr, ak as Vr, ah as Gr, a2 as Wr, aj as qr, ay as Hr, az as Qr, a8 as Jr, X as Xr, ae as Zr, ai as es, al as ts, V as as, a3 as ls, a6 as rs, ar as ss, U as os, ag as ns, as as is, ab as us, ad as cs, aC as ds, aa as ps, ax as fs, aw as vs, at as ms, Y as gs, Z as hs, au as bs, a1 as ys, av as xs, a0 as _s, af as ws } from "./assets/modules/upload-template-BKm9mFq8.js";
3
+ import { f as Vt, p as Re } from "./assets/modules/file-upload-DTOdV5vM.js";
4
+ import { A as Cs, U as Ss } from "./assets/modules/file-upload-DTOdV5vM.js";
5
+ import { EnvConfig as Ke, isMicroApp as Gt } from "@skyfox2000/microbase";
6
+ import { FrontCache as ge, httpPost as Ne, ResStatus as ze, SERVER_HOST as Wt, fieldMapping as be } from "@skyfox2000/fapi";
7
+ import re from "vue-m-message";
8
+ import { defineComponent as E, createBlock as _, openBlock as i, withModifiers as ve, unref as a, useAttrs as ue, withCtx as x, createElementVNode as I, createVNode as D, mergeProps as A, renderSlot as R, normalizeClass as B, toDisplayString as M, createCommentVNode as k, ref as C, provide as we, watch as U, onMounted as ae, createTextVNode as G, inject as ye, resolveDirective as ne, withDirectives as Q, computed as j, createElementBlock as y, normalizeStyle as Oe, Fragment as L, renderList as Y, resolveDynamicComponent as st, onActivated as ke, createSlots as ot, useSlots as qt, vShow as Pe, shallowRef as Ht, onUnmounted as Qt, withKeys as je } from "vue";
9
9
  import "async-validator";
10
10
  import Le from "dayjs";
11
- import { Popover as Ht, theme as nt, Drawer as Qt, Space as ce, Form as it, message as Jt, FormItem as ut, ConfigProvider as ye, Popconfirm as ct, DropdownButton as dt, Menu as we, MenuItem as Ce, Dropdown as Ue, Checkbox as Xt, List as Zt, ListItem as ea, Card as ta, Button as pt, Table as ft, Tree as aa, Cascader as la, DatePicker as ra, Input as fe, InputPassword as sa, InputNumber as oa, RangePicker as na, Textarea as ia, TimePicker as ua, Transfer as ca, TreeSelect as da, Upload as pa, Image as fa, LayoutContent as va } from "ant-design-vue";
12
- import { VueDraggableNext as ga } from "vue-draggable-next";
13
- import { d as ma } from "./assets/modules/uploadList-DRGJEXDH.js";
14
- import { C as Ls, U as Us, a as Ms, p as Bs } from "./assets/modules/uploadList-DRGJEXDH.js";
15
- import { c as vt } from "./assets/modules/index-CHG5bbZG.js";
16
- import { _ as zs, h as As, b as Os, a as Rs, d as Ks, e as js, g as Vs, f as Ys, n as Gs, p as Ws, t as qs, v as Hs } from "./assets/modules/index-CHG5bbZG.js";
17
- import { _ as Z } from "./assets/modules/index-C6RrxZBR.js";
18
- import { _ as V } from "./assets/modules/toolIcon-ADz-Bt4_.js";
19
- import { a as Js } from "./assets/modules/toolIcon-ADz-Bt4_.js";
20
- import { _ as Zs, b as eo, c as to, d as ao, e as lo, I as ro, f as so, g as oo, a as no } from "./assets/modules/menuTabs-Bk8A-zzL.js";
21
- import { _ as uo } from "./assets/modules/index-Bi3hR8Gf.js";
22
- import { _ as ne } from "./assets/modules/_plugin-vue_export-helper-CHgC5LLL.js";
23
- const Ve = (r, a, e, t = "remove") => {
11
+ import { Popover as Jt, theme as nt, Drawer as Xt, Space as ce, Form as it, message as Zt, FormItem as ut, ConfigProvider as xe, Popconfirm as ct, DropdownButton as dt, Menu as Ce, MenuItem as Se, Dropdown as Ue, Checkbox as ea, List as ta, ListItem as aa, Card as la, Button as pt, Table as ft, Tree as ra, Cascader as sa, DatePicker as oa, Input as fe, InputPassword as na, InputNumber as ia, RangePicker as ua, Textarea as ca, TimePicker as da, Transfer as pa, TreeSelect as fa, Upload as va, Image as ma, LayoutContent as ga } from "ant-design-vue";
12
+ import { VueDraggableNext as ha } from "vue-draggable-next";
13
+ import { d as ba } from "./assets/modules/uploadList-CHvr6Hp1.js";
14
+ import { C as Ts, U as Ds, a as Ps, p as Fs } from "./assets/modules/uploadList-CHvr6Hp1.js";
15
+ import { c as vt } from "./assets/modules/index-M1qERbea.js";
16
+ import { _ as Es, h as Ls, b as Us, a as Ms, d as As, e as Bs, g as Ns, f as zs, n as Os, p as Rs, t as Ks, v as js } from "./assets/modules/index-M1qERbea.js";
17
+ import { _ as ee } from "./assets/modules/index-BwMaOrJT.js";
18
+ import { _ as V } from "./assets/modules/toolIcon-BYnHhAy-.js";
19
+ import { a as Vs } from "./assets/modules/toolIcon-BYnHhAy-.js";
20
+ import { _ as Ws, b as qs, c as Hs, d as Qs, e as Js, I as Xs, f as Zs, g as eo, a as to } from "./assets/modules/menuTabs-DWaBSRNr.js";
21
+ import { _ as lo } from "./assets/modules/index-BDoBUrYA.js";
22
+ import { _ as ie } from "./assets/modules/_plugin-vue_export-helper-CHgC5LLL.js";
23
+ const Ye = (d, l, e, t = "remove") => {
24
24
  if (!e)
25
25
  if (t === "disable") {
26
- const n = a.component;
27
- n ? n.props.disabled = !0 : (a.el, r.setAttribute("disabled", "disabled"), r.disabled = !0), r.classList.add("disabled");
26
+ const o = l.component;
27
+ o ? o.props.disabled = !0 : (l.el, d.setAttribute("disabled", "disabled"), d.disabled = !0), d.classList.add("disabled");
28
28
  } else {
29
- const n = document.createComment("No Permission"), i = r.parentNode;
30
- if (i) {
31
- const o = a.component;
32
- o ? o.props.style = { display: "none" } : i.replaceChild(n, r);
29
+ const o = document.createComment("No Permission"), n = d.parentNode;
30
+ if (n) {
31
+ const s = l.component;
32
+ s ? s.props.style = { display: "none" } : n.replaceChild(o, d);
33
33
  }
34
34
  }
35
- }, Ye = (r) => {
36
- var o, f;
37
- const a = Me(), { url: e, role: t, permit: n } = r;
38
- if (pe(t) && pe(n))
35
+ }, Ve = (d) => {
36
+ var s, f;
37
+ const l = Me(), { url: e, role: t, permit: o } = d;
38
+ if (pe(t) && pe(o))
39
39
  return !0;
40
- const i = e ?? ((f = (o = window.location.hash) == null ? void 0 : o.split("#")) == null ? void 0 : f[1]) ?? window.location.pathname;
40
+ const n = e ?? ((f = (s = window.location.hash) == null ? void 0 : s.split("#")) == null ? void 0 : f[1]) ?? window.location.pathname;
41
41
  if (Ke.VITE_PERMISSION_MODE === "role")
42
- return pe(t) ? !0 : a.hasRole(t);
42
+ return pe(t) ? !0 : l.hasRole(t);
43
43
  if (Ke.VITE_PERMISSION_MODE === "permit") {
44
- let c = !1, u = !1;
45
- return pe(t) || (c = a.hasRole(t)), a.isAdmin() ? c : (pe(n) || (u = a.hasPermit(i, n)), c || u);
44
+ let u = !1, c = !1;
45
+ return pe(t) || (u = l.hasRole(t)), l.isAdmin() ? u : (pe(o) || (c = l.hasPermit(n, o)), u || c);
46
46
  }
47
47
  return !1;
48
- }, ha = {
49
- mounted(r, a, e) {
50
- const t = a.value || {}, n = a.arg || "remove", i = t.behavior || n, o = Ye(t);
51
- Ve(r, e, o, i);
48
+ }, ya = {
49
+ mounted(d, l, e) {
50
+ const t = l.value || {}, o = l.arg || "remove", n = t.behavior || o, s = Ve(t);
51
+ Ye(d, e, s, n);
52
52
  },
53
- updated(r, a, e) {
54
- const t = a.value || {}, n = a.arg || "remove", i = t.behavior || n, o = Ye(t);
55
- Ve(r, e, o, i);
53
+ updated(d, l, e) {
54
+ const t = l.value || {}, o = l.arg || "remove", n = t.behavior || o, s = Ve(t);
55
+ Ye(d, e, s, n);
56
56
  }
57
- }, ba = {
58
- mounted: (r, a) => {
59
- r.addEventListener("keydown", (e) => {
60
- e.key === "Enter" && a.value();
57
+ }, xa = {
58
+ mounted: (d, l) => {
59
+ d.addEventListener("keydown", (e) => {
60
+ e.key === "Enter" && l.value();
61
61
  });
62
62
  },
63
- unmounted: (r) => {
64
- r.removeEventListener("keydown", () => {
63
+ unmounted: (d) => {
64
+ d.removeEventListener("keydown", () => {
65
65
  });
66
66
  }
67
67
  }, Fe = {
68
- auth: ha,
69
- submit: ba
70
- }, rr = (r, a) => ((a || Object.keys(Fe)).forEach((t) => {
71
- t in Fe && r.directive(t, Fe[t]);
72
- }), r), ie = (r, a) => {
73
- const e = r.find((t) => t.key === a);
74
- if (e)
75
- return e;
76
- for (const t of r)
77
- if (t.children) {
78
- const n = ie(t.children, a);
79
- if (n)
80
- return n;
81
- }
82
- }, Se = (r, a, e) => {
83
- const t = [], n = [];
84
- return e || (e = [...r]), e.length && e.forEach((i, o) => {
85
- let f;
86
- if (typeof i == "string") {
87
- const c = ie(r, i);
88
- f = c ? { ...c } : { key: i, label: i };
89
- } else {
90
- const c = ie(r, i.key);
91
- f = c ? { ...c, ...i } : { ...i };
92
- }
93
- f.click || (f.click = (c, u, v) => {
94
- u && (u.rowData.value = v), f.formVisible ? (f.formVisible.value = !1, setTimeout(() => {
95
- f.formVisible.value = !0;
96
- }, 1)) : te.warning("未配置点击处理事件!");
97
- }), a === 0 || o < a ? t.push(f) : n.push(f);
98
- }), { buttons: t, menus: n };
99
- }, G = (r, a) => r.disabled && typeof r.disabled == "function" ? r.disabled(a) : r.disabled, Q = (r, a) => r.visible && typeof r.visible == "function" ? r.visible(a) : r.visible ?? !0, ya = (r, a) => {
100
- a.reload.value = !0;
101
- }, xa = (r, a) => {
102
- a.searchBar.value = !a.searchBar.value;
103
- }, _a = (r, a) => {
104
- switch (a.tableSize.value) {
105
- case "large":
106
- a.tableSize.value = "middle";
107
- break;
108
- case "middle":
109
- a.tableSize.value = "small";
110
- break;
111
- case "small":
112
- a.tableSize.value = "large";
113
- break;
114
- }
115
- }, ka = (r, a) => {
116
- a.selectable.value = !a.selectable.value, a.selectable.value || (a.selectKeys.value = [], a.selectRows.value = []);
117
- }, wa = (r, a) => {
118
- a.rowExpand.value = !a.rowExpand.value;
119
- }, Ge = (r, a) => {
120
- a.selectable.value = !a.selectable.value;
121
- }, J = (r, a, e, t, n) => {
122
- (!r.confirm || n) && r.click && (a ? r.click(a, e, t) : r.click(null, e, t)), Sa(r);
123
- }, Ca = (r, a) => {
124
- a.selectable.value = !a.selectable.value;
125
- }, gt = () => {
126
- const r = Be();
127
- r.setFullscreen(!r.fullscreen);
128
- }, Sa = (r, a) => {
129
- (r.icons || r.labels) && (r.iconStatus = r.iconStatus || 0, r.iconStatus += 1, r.labels && r.labels.length && (r.label = r.labels[r.iconStatus % r.labels.length]), r.icons && r.icons.length && (r.icon = r.icons[r.iconStatus % r.icons.length]));
130
- }, $a = (r, a) => {
131
- a ? delete r.visible : r.visible = !1;
132
- }, We = [
133
- {
134
- key: "Reload",
135
- label: "刷新表格",
136
- icon: "icon-reload",
137
- click: ya
138
- },
139
- {
140
- key: "Query",
141
- label: "展开搜索栏",
142
- labels: ["展开搜索栏", "折叠搜索栏"],
143
- icon: "icon-search",
144
- iconStatus: 0,
145
- click: xa
146
- },
147
- {
148
- key: "RowHeight",
149
- label: "行高调整",
150
- icon: "icon-row-height",
151
- click: _a
152
- },
153
- {
154
- key: "tool.multiple.checkbox",
155
- label: "显示多选框",
156
- labels: ["显示多选框", "隐藏多选框"],
157
- icon: "icon-checkbox",
158
- click: ka
159
- },
160
- {
161
- key: "tool.expand.rows",
162
- label: "展开记录行",
163
- labels: ["展开记录行", "折叠记录行"],
164
- icon: "icon-row-collapse",
165
- iconStatus: 0,
166
- icons: ["icon-row-collapse", "icon-row-expand"],
167
- click: wa
168
- },
169
- {
170
- key: "tool.export.excel",
171
- label: "导出Excel",
172
- icon: "icon-export-excel",
173
- children: [
174
- {
175
- key: "tool.export.excel.all",
176
- label: "全部记录",
177
- click: Ge
178
- },
179
- {
180
- key: "tool.export.excel.selected",
181
- label: "选中的记录",
182
- click: Ge
183
- }
184
- ]
185
- },
186
- {
187
- key: "tool.export.pdf",
188
- label: "导出PDF",
189
- icon: "icon-export-pdf",
190
- children: [
191
- {
192
- key: "tool.export.pdf.selected",
193
- label: "选中的记录",
194
- click: Ca
195
- }
196
- ]
197
- },
198
- {
199
- key: "TableHeadset",
200
- label: "表头设置",
201
- icon: "icon-headset",
202
- dropdown: "headset",
203
- click: () => {
204
- }
205
- // 不设置点击事件
206
- },
207
- {
208
- key: "Fullscreen",
209
- label: "设置全屏",
210
- labels: ["设置全屏", "取消全屏"],
211
- icon: "icon-fullscreen",
212
- iconStatus: 0,
213
- icons: ["icon-fullscreen", "icon-exitscreen"],
214
- click: gt
215
- }
216
- ], Ta = (r) => {
217
- if (!r.tools || r.tools.length > 0) {
218
- const a = [];
219
- return r.tools ? a.push(...r.tools) : a.push(...We), { tools: Se(We, 0, a).buttons };
220
- }
221
- return {
222
- tools: []
223
- };
224
- };
225
- var Da = /* @__PURE__ */ ((r) => (r.SYS_CONFIG = "SYS_CONFIG_", r.APP_MENU = "APP_MENU_", r.DICT_TYPE = "DICT_TYPE_", r.HOST_INFO = "HOST_INFO_", r.APP_PERMITS = "APP_PERMITS_", r.USER_SETTINGS = "USER_SETTINGS_", r.DICT_DATA = "DICT_DATA_", r.COMMON_OPTIONS = "COMMON_OPTIONS_", r))(Da || {});
68
+ auth: ya,
69
+ submit: xa
70
+ }, Jl = (d, l) => ((l || Object.keys(Fe)).forEach((t) => {
71
+ t in Fe && d.directive(t, Fe[t]);
72
+ }), d);
73
+ var _a = /* @__PURE__ */ ((d) => (d.SYS_CONFIG = "SYS_CONFIG_", d.APP_MENU = "APP_MENU_", d.DICT_TYPE = "DICT_TYPE_", d.HOST_INFO = "HOST_INFO_", d.APP_PERMITS = "APP_PERMITS_", d.USER_SETTINGS = "USER_SETTINGS_", d.DICT_DATA = "DICT_DATA_", d.COMMON_OPTIONS = "COMMON_OPTIONS_", d))(_a || {});
226
74
  class mt {
227
75
  /**
228
76
  * 设置缓存数据(带服务器时间)
229
77
  */
230
- static setWithServerTime(a, e, t) {
231
- const n = {
78
+ static setWithServerTime(l, e, t) {
79
+ const o = {
232
80
  data: e,
233
81
  lastTime: t
234
82
  };
235
- ge.set({ key: a, storage: "local" }, n);
83
+ ge.set({ key: l, storage: "local" }, o);
236
84
  }
237
85
  /**
238
86
  * 设置缓存数据
239
87
  */
240
- static setData(a, e) {
241
- ge.set({ key: a, storage: "local" }, e);
88
+ static setData(l, e) {
89
+ ge.set({ key: l, storage: "local" }, e);
242
90
  }
243
91
  /**
244
92
  * 获取缓存数据
245
93
  */
246
- static getData(a) {
247
- const e = ge.get({ key: a, storage: "local" });
94
+ static getData(l) {
95
+ const e = ge.get({ key: l, storage: "local" });
248
96
  return e && mt.isTimedData(e) ? e.data : e ?? null;
249
97
  }
250
98
  /**
251
99
  * 清除缓存
252
100
  */
253
- static remove(a) {
254
- ge.remove({ key: a, storage: "local" });
101
+ static remove(l) {
102
+ ge.remove({ key: l, storage: "local" });
255
103
  }
256
104
  /**
257
105
  * 清理指定前缀的缓存 (基于 localStorage 实现,因为 FrontCache 未提供此方法)
258
106
  */
259
- static clearByPrefix(a) {
107
+ static clearByPrefix(l) {
260
108
  for (let e = 0; e < localStorage.length; e++) {
261
109
  const t = localStorage.key(e);
262
- t && t.startsWith("frontCache::" + a) && localStorage.removeItem(t);
110
+ t && t.startsWith("frontCache::" + l) && localStorage.removeItem(t);
263
111
  }
264
112
  }
265
113
  /**
266
114
  * 清理所有缓存
267
115
  */
268
116
  static clearAll() {
269
- for (let a = localStorage.length - 1; a >= 0; a--) {
270
- const e = localStorage.key(a);
117
+ for (let l = localStorage.length - 1; l >= 0; l--) {
118
+ const e = localStorage.key(l);
271
119
  e && e.startsWith("frontCache::") && localStorage.removeItem(e);
272
120
  }
273
121
  }
274
122
  /**
275
123
  * 判断是否是带时间戳的数据
276
124
  */
277
- static isTimedData(a) {
278
- return a && typeof a == "object" && "data" in a && "lastTime" in a && typeof a.lastTime == "number";
125
+ static isTimedData(l) {
126
+ return l && typeof l == "object" && "data" in l && "lastTime" in l && typeof l.lastTime == "number";
279
127
  }
280
128
  }
281
- async function sr() {
129
+ async function Xl() {
282
130
  try {
283
- const r = await ze(
131
+ const d = await Ne(
284
132
  {
285
133
  api: "PLATFORM_API",
286
134
  url: "/api/SysCacheSvr/getLastTime",
@@ -288,18 +136,18 @@ async function sr() {
288
136
  },
289
137
  {}
290
138
  );
291
- if ((r == null ? void 0 : r.status) === Ae.SUCCESS) {
292
- const a = r.data;
293
- Object.keys(a).forEach((e) => {
294
- const t = a[e];
295
- ["local", "session"].forEach((i) => {
296
- const o = i === "local" ? localStorage : sessionStorage;
297
- for (let f = 0; f < o.length; f++) {
298
- const c = o.key(f);
299
- if (c && c.endsWith(e))
139
+ if ((d == null ? void 0 : d.status) === ze.SUCCESS) {
140
+ const l = d.data;
141
+ Object.keys(l).forEach((e) => {
142
+ const t = l[e];
143
+ ["local", "session"].forEach((n) => {
144
+ const s = n === "local" ? localStorage : sessionStorage;
145
+ for (let f = 0; f < s.length; f++) {
146
+ const u = s.key(f);
147
+ if (u && u.endsWith(e))
300
148
  try {
301
- const u = JSON.parse(o.getItem(c));
302
- u && typeof u == "object" && "lastTime" in u && typeof u.lastTime == "number" && u.lastTime !== t && o.removeItem(c);
149
+ const c = JSON.parse(s.getItem(u));
150
+ c && typeof c == "object" && "lastTime" in c && typeof c.lastTime == "number" && c.lastTime !== t && s.removeItem(u);
303
151
  } catch {
304
152
  continue;
305
153
  }
@@ -307,12 +155,12 @@ async function sr() {
307
155
  });
308
156
  });
309
157
  }
310
- } catch (r) {
311
- console.error("检查缓存更新失败", r);
158
+ } catch (d) {
159
+ console.error("检查缓存更新失败", d);
312
160
  }
313
161
  }
314
- const or = async (r, a) => {
315
- const e = await vt(r, a);
162
+ const Zl = async (d, l) => {
163
+ const e = await vt(d, l);
316
164
  if (e.success)
317
165
  return {
318
166
  blobUrl: e.blobUrl,
@@ -320,85 +168,85 @@ const or = async (r, a) => {
320
168
  blob: null
321
169
  // 不再返回blob对象,使用URL即可
322
170
  };
323
- throw new Error(e.error || "CSV转Excel失败");
324
- }, nr = async (r, a) => {
171
+ throw new Error(e.error || F("webui.utils.formCsv.csvToExcelFailed"));
172
+ }, er = async (d, l) => {
325
173
  try {
326
- const t = new TextDecoder("utf-8").decode(r), n = await vt(t, a);
174
+ const t = new TextDecoder("utf-8").decode(d), o = await vt(t, l);
327
175
  return {
328
- success: n.success,
329
- blobUrl: n.blobUrl,
330
- fileName: n.fileName,
331
- error: n.error,
176
+ success: o.success,
177
+ blobUrl: o.blobUrl,
178
+ fileName: o.fileName,
179
+ error: o.error,
332
180
  csvContent: t
333
181
  // 保留原始CSV内容
334
182
  };
335
183
  } catch (e) {
336
- return console.error("CSV文件处理失败:", e), {
184
+ return console.error(F("webui.utils.formCsv.csvProcessFailed") + ":", e), {
337
185
  success: !1,
338
- error: e instanceof Error ? e.message : "未知错误"
186
+ error: e instanceof Error ? e.message : F("webui.utils.formCsv.unknownError")
339
187
  };
340
188
  }
341
- }, ht = (r) => r ? Array.isArray(r) ? r.join(".") : r : "", bt = (r) => r.map((a) => ({
342
- label: a.title,
343
- value: ht(a.dataIndex) || a.key || ""
344
- })), yt = (r, a) => r.map((e, t) => {
345
- const n = { ...e };
346
- return a.forEach((i) => {
347
- const o = ht(i.dataIndex) || i.key;
348
- o && i.customRender && (n[o] = i.customRender({
349
- text: e[o],
189
+ }, gt = (d) => d ? Array.isArray(d) ? d.join(".") : d : "", ht = (d) => d.map((l) => ({
190
+ label: l.title,
191
+ value: gt(l.dataIndex) || l.key || ""
192
+ })), bt = (d, l) => d.map((e, t) => {
193
+ const o = { ...e };
194
+ return l.forEach((n) => {
195
+ const s = gt(n.dataIndex) || n.key;
196
+ s && n.customRender && (o[s] = n.customRender({
197
+ text: e[s],
350
198
  record: e,
351
199
  index: t,
352
- column: i
200
+ column: n
353
201
  }));
354
- }), n;
355
- }), xt = async (r, a, e) => {
202
+ }), o;
203
+ }), yt = async (d, l, e) => {
356
204
  try {
357
- const n = (await import("@json2csv/plainjs")).Parser, o = new n({ fields: a }).parse(e), f = new Blob([`\uFEFF${o}`], { type: "text/csv" });
358
- ma(f, r);
205
+ const o = (await import("@json2csv/plainjs")).Parser, s = new o({ fields: l }).parse(e), f = new Blob([`\uFEFF${s}`], { type: "text/csv" });
206
+ ba(f, d);
359
207
  } catch (t) {
360
- console.error("导出失败:", t), te.error("文件导出失败,请稍后重试");
208
+ console.error(F("webui.utils.exportTable.exportFailed") + ":", t), re.error(F("webui.utils.exportTable.fileExportFailed"));
361
209
  }
362
- }, ir = async (r, a, e) => {
210
+ }, tr = async (d, l, e) => {
363
211
  try {
364
- const t = _t(r), n = a.filter((f) => f.visible !== !1 && f.export !== !1), i = bt(n), o = yt(e, n);
365
- await xt(t, i, o);
212
+ const t = xt(d), o = l.filter((f) => f.visible !== !1 && f.export !== !1), n = ht(o), s = bt(e, o);
213
+ await yt(t, n, s);
366
214
  } catch (t) {
367
- console.error("导出失败:", t), te.error("文件导出失败,请稍后重试");
215
+ console.error(F("webui.utils.exportTable.exportFailed") + ":", t), re.error(F("webui.utils.exportTable.fileExportFailed"));
368
216
  }
369
- }, _t = (r) => {
370
- const a = /\{([^}]+)\}/g;
371
- return r.replace(a, (e, t) => Le().format(t));
372
- }, ur = async (r, a, e, t) => {
217
+ }, xt = (d) => {
218
+ const l = /\{([^}]+)\}/g;
219
+ return d.replace(l, (e, t) => Le().format(t));
220
+ }, ar = async (d, l, e, t) => {
373
221
  try {
374
- const n = _t(r), i = a.filter((u) => u.visible !== !1), o = bt(i);
375
- let f = e.page, c = e.gridQuery;
376
- return t.api || (t.api = f.api), t.authorize === void 0 && (t.authorize = f.authorize), e.isGridLoading.value = !0, ze(t, c).then(async (u) => {
377
- if (e.isGridLoading.value = !1, (u == null ? void 0 : u.status) === Ae.SUCCESS) {
378
- if (u.data) {
379
- let v = u.data;
380
- const s = yt(v, i);
381
- await xt(n, o, s);
222
+ const o = xt(d), n = l.filter((c) => c.visible !== !1), s = ht(n);
223
+ let f = e.page, u = e.gridQuery;
224
+ return t.api || (t.api = f.api), t.authorize === void 0 && (t.authorize = f.authorize), e.isGridLoading.value = !0, Ne(t, u).then(async (c) => {
225
+ if (e.isGridLoading.value = !1, (c == null ? void 0 : c.status) === ze.SUCCESS) {
226
+ if (c.data) {
227
+ let v = c.data;
228
+ const r = bt(v, n);
229
+ await yt(o, s, r);
382
230
  }
383
- } else if ((u == null ? void 0 : u.errno) == St) {
231
+ } else if ((c == null ? void 0 : c.errno) == Ct) {
384
232
  Me().logout(!1);
385
233
  return;
386
234
  }
387
235
  });
388
- } catch (n) {
389
- console.error("导出失败:", n), te.error("文件导出失败,请稍后重试");
236
+ } catch (o) {
237
+ console.error(F("webui.utils.exportTable.exportFailed") + ":", o), re.error(F("webui.utils.exportTable.fileExportFailed"));
390
238
  }
391
- }, cr = /* @__PURE__ */ I({
239
+ }, lr = /* @__PURE__ */ E({
392
240
  __name: "fullscreen",
393
- setup(r) {
394
- const a = Be();
395
- return (e, t) => (d(), k(V, {
396
- onClick: ve(l(gt), ["stop"]),
397
- icon: l(a).fullscreen ? "icon-exitscreen" : "icon-fullscreen",
241
+ setup(d) {
242
+ const l = Ge();
243
+ return (e, t) => (i(), _(V, {
244
+ onClick: ve(a(St), ["stop"]),
245
+ icon: a(l).fullscreen ? "icon-exitscreen" : "icon-fullscreen",
398
246
  class: "w-[17px] h-[17px]"
399
247
  }, null, 8, ["onClick", "icon"]));
400
248
  }
401
- }), Pa = { class: "ml-2" }, Fa = /* @__PURE__ */ I({
249
+ }), wa = { class: "ml-2" }, ka = /* @__PURE__ */ E({
402
250
  inheritAttrs: !1,
403
251
  __name: "helper",
404
252
  props: {
@@ -407,30 +255,30 @@ const or = async (r, a) => {
407
255
  size: {},
408
256
  placement: {}
409
257
  },
410
- setup(r) {
411
- const a = ue();
412
- return (e, t) => (d(), k(l(Ht), {
258
+ setup(d) {
259
+ const l = ue();
260
+ return (e, t) => (i(), _(a(Jt), {
413
261
  placement: e.placement ?? "topRight"
414
262
  }, {
415
263
  content: x(() => [
416
- O(e.$slots, "default", {}, () => [
417
- F("div", {
264
+ R(e.$slots, "default", {}, () => [
265
+ I("div", {
418
266
  class: B(["text-[14px]", [e.maxWidth]])
419
267
  }, M(e.text), 3)
420
268
  ])
421
269
  ]),
422
270
  default: x(() => [
423
- F("span", Pa, [
424
- D(V, U({
271
+ I("span", wa, [
272
+ D(V, A({
425
273
  icon: "icon-question-circle",
426
274
  class: ["text-[#888]", [e.size ? "w-" + e.size + " h-" + e.size : "w-5 h-5"]]
427
- }, l(a)), null, 16, ["class"])
275
+ }, a(l)), null, 16, ["class"])
428
276
  ])
429
277
  ]),
430
278
  _: 3
431
279
  }, 8, ["placement"]));
432
280
  }
433
- }), dr = /* @__PURE__ */ I({
281
+ }), rr = /* @__PURE__ */ E({
434
282
  __name: "layoutIcon",
435
283
  props: {
436
284
  icon: {
@@ -440,21 +288,21 @@ const or = async (r, a) => {
440
288
  type: Array
441
289
  }
442
290
  },
443
- setup(r) {
444
- const a = r, t = $t({
445
- iconUrl: `${Yt.MICROLAYOUT_ICONS}`,
291
+ setup(d) {
292
+ const l = d, t = $t({
293
+ iconUrl: `${Wt.MICROLAYOUT_ICONS}`,
446
294
  monoColor: !0,
447
- icon: a.icon,
448
- icons: a.icons
295
+ icon: l.icon,
296
+ icons: l.icons
449
297
  });
450
- return (n, i) => r.icon || r.icons ? (d(), k(l(t), U({
298
+ return (o, n) => d.icon || d.icons ? (i(), _(a(t), A({
451
299
  key: 0,
452
- icon: r.icon,
453
- icons: r.icons,
300
+ icon: d.icon,
301
+ icons: d.icons,
454
302
  class: ["align-middle"]
455
- }, n.$attrs), null, 16, ["icon", "icons"])) : w("", !0);
303
+ }, o.$attrs), null, 16, ["icon", "icons"])) : k("", !0);
456
304
  }
457
- }), Ia = { class: "hover:bg-gray-200 w-[24px] h-[24px] rounded-md" }, pr = /* @__PURE__ */ I({
305
+ }), Ca = { class: "hover:bg-gray-200 w-[24px] h-[24px] rounded-md" }, sr = /* @__PURE__ */ E({
458
306
  __name: "index",
459
307
  props: {
460
308
  saveText: {},
@@ -464,32 +312,32 @@ const or = async (r, a) => {
464
312
  drawerSave: { type: Function },
465
313
  drawerSaveAs: { type: Function }
466
314
  },
467
- setup(r) {
468
- const { useToken: a } = nt, { token: e } = a(), t = C(!1), n = r, i = n.editorCtrl;
469
- _e(re.EditorControl, i), L(
470
- () => i.visible.value,
471
- (u) => {
472
- t.value = u ?? !1;
315
+ setup(d) {
316
+ const { useToken: l } = nt, { token: e } = l(), t = C(!1), o = d, n = o.editorCtrl;
317
+ we(se.EditorControl, n), U(
318
+ () => n.visible.value,
319
+ (c) => {
320
+ t.value = c ?? !1;
473
321
  }
474
322
  ), ae(() => {
475
- t.value = i.visible.value ?? !1;
323
+ t.value = n.visible.value ?? !1;
476
324
  });
477
- const o = () => {
478
- n.drawerSave ? n.drawerSave() : i && qe(i);
325
+ const s = () => {
326
+ o.drawerSave ? o.drawerSave() : n && We(n);
479
327
  }, f = () => {
480
- n.drawerSaveAs ? n.drawerSaveAs() : i && Tt(i);
481
- }, c = () => {
482
- Dt(i);
328
+ o.drawerSaveAs ? o.drawerSaveAs() : n && Tt(n);
329
+ }, u = () => {
330
+ Dt(n);
483
331
  };
484
- return (u, v) => (d(), k(l(Qt), {
332
+ return (c, v) => (i(), _(a(Xt), {
485
333
  open: t.value,
486
- "onUpdate:open": v[0] || (v[0] = (s) => t.value = s),
334
+ "onUpdate:open": v[0] || (v[0] = (r) => t.value = r),
487
335
  "get-container": !1,
488
336
  closable: !1,
489
337
  "header-style": {
490
338
  height: "40px",
491
339
  padding: "10px 6px 10px 16px",
492
- backgroundColor: l(e).colorBgLayout
340
+ backgroundColor: a(e).colorBgLayout
493
341
  },
494
342
  "body-style": {
495
343
  padding: "10px 16px"
@@ -502,12 +350,12 @@ const or = async (r, a) => {
502
350
  boxShadow: "rgba(0, 0, 0, 0.3) -2px 0px 8px"
503
351
  },
504
352
  width: "420px",
505
- onClose: c
353
+ onClose: u
506
354
  }, {
507
355
  extra: x(() => [
508
- O(u.$slots, "extra", {}, () => [
509
- F("div", Ia, [
510
- D(l(V), {
356
+ R(c.$slots, "extra", {}, () => [
357
+ I("div", Ca, [
358
+ D(a(V), {
511
359
  class: "top-[-2px] left-[2px] w-6 h-6",
512
360
  icon: "icon-new",
513
361
  angle: 45,
@@ -515,49 +363,49 @@ const or = async (r, a) => {
515
363
  clickable: "",
516
364
  color: "#666",
517
365
  position: [0, 0],
518
- onClick: c
366
+ onClick: u
519
367
  })
520
368
  ])
521
369
  ])
522
370
  ]),
523
371
  default: x(() => [
524
- O(u.$slots, "default")
372
+ R(c.$slots, "default")
525
373
  ]),
526
374
  footer: x(() => [
527
- O(u.$slots, "footer", {}, () => [
528
- D(l(ce), null, {
375
+ R(c.$slots, "footer", {}, () => [
376
+ D(a(ce), null, {
529
377
  default: x(() => [
530
- u.cancelText !== "" ? (d(), k(l(Z), {
378
+ c.cancelText !== "" ? (i(), _(a(ee), {
531
379
  key: 0,
532
- onClick: c
380
+ onClick: u
533
381
  }, {
534
382
  default: x(() => [
535
- Y(M(u.cancelText ?? "取消"), 1)
383
+ G(M(c.cancelText ?? a(F)("webui.common.cancel")), 1)
536
384
  ]),
537
385
  _: 1
538
- })) : w("", !0),
539
- u.saveAsText !== "" && l(i).saveAsBtnVisible !== !1 ? (d(), k(l(Z), {
386
+ })) : k("", !0),
387
+ c.saveAsText !== "" && a(n).saveAsBtnVisible !== !1 ? (i(), _(a(ee), {
540
388
  key: 1,
541
389
  onClick: f,
542
390
  type: "primary",
543
- loading: l(i).isFormSaving.value
391
+ loading: a(n).isFormSaving.value
544
392
  }, {
545
393
  default: x(() => [
546
- Y(M(u.saveAsText ?? "另存为"), 1)
394
+ G(M(c.saveAsText ?? a(F)("webui.common.saveAs")), 1)
547
395
  ]),
548
396
  _: 1
549
- }, 8, ["loading"])) : w("", !0),
550
- u.saveText !== "" && l(i).saveBtnVisible !== !1 ? (d(), k(l(Z), {
397
+ }, 8, ["loading"])) : k("", !0),
398
+ c.saveText !== "" && a(n).saveBtnVisible !== !1 ? (i(), _(a(ee), {
551
399
  key: 2,
552
- onClick: o,
400
+ onClick: s,
553
401
  type: "primary",
554
- loading: l(i).isFormSaving.value
402
+ loading: a(n).isFormSaving.value
555
403
  }, {
556
404
  default: x(() => [
557
- Y(M(u.saveText ?? "保存"), 1)
405
+ G(M(c.saveText ?? a(F)("webui.common.save")), 1)
558
406
  ]),
559
407
  _: 1
560
- }, 8, ["loading"])) : w("", !0)
408
+ }, 8, ["loading"])) : k("", !0)
561
409
  ]),
562
410
  _: 1
563
411
  })
@@ -566,21 +414,21 @@ const or = async (r, a) => {
566
414
  _: 3
567
415
  }, 8, ["open", "header-style"]));
568
416
  }
569
- }), fr = /* @__PURE__ */ I({
417
+ }), or = /* @__PURE__ */ E({
570
418
  __name: "index",
571
419
  props: {
572
420
  labelWidth: {},
573
421
  wrapperWidth: {},
574
422
  editorCtrl: {}
575
423
  },
576
- setup(r) {
577
- const a = r, e = a.editorCtrl ?? be(re.EditorControl, void 0);
578
- return _e(re.LabelWidth, a.labelWidth), (t, n) => {
579
- const i = oe("submit");
580
- return H((d(), k(l(it), {
581
- "label-col": { flex: a.labelWidth ?? "85px" },
424
+ setup(d) {
425
+ const l = d, e = l.editorCtrl ?? ye(se.EditorControl, void 0);
426
+ return we(se.LabelWidth, l.labelWidth), (t, o) => {
427
+ const n = ne("submit");
428
+ return Q((i(), _(a(it), {
429
+ "label-col": { flex: l.labelWidth ?? "85px" },
582
430
  "wrapper-col": {
583
- flex: a.wrapperWidth ?? "1 0 280px"
431
+ flex: l.wrapperWidth ?? "1 0 280px"
584
432
  },
585
433
  style: {
586
434
  display: "flex",
@@ -588,23 +436,23 @@ const or = async (r, a) => {
588
436
  }
589
437
  }, {
590
438
  default: x(() => [
591
- O(t.$slots, "default")
439
+ R(t.$slots, "default")
592
440
  ]),
593
441
  _: 3
594
442
  }, 8, ["label-col", "wrapper-col"])), [
595
443
  [
596
- i,
444
+ n,
597
445
  () => {
598
- l(e) && l(qe)(l(e));
446
+ a(e) && a(We)(a(e));
599
447
  }
600
448
  ]
601
449
  ]);
602
450
  };
603
451
  }
604
- }), Ea = {
452
+ }), Sa = {
605
453
  key: 0,
606
454
  class: "flex-grow"
607
- }, La = { class: "w-8 mt-[-2px]" }, vr = /* @__PURE__ */ I({
455
+ }, $a = { class: "w-8 mt-[-2px]" }, nr = /* @__PURE__ */ E({
608
456
  inheritAttrs: !1,
609
457
  __name: "formItem",
610
458
  props: {
@@ -615,71 +463,71 @@ const or = async (r, a) => {
615
463
  nextLine: { type: Boolean },
616
464
  bottomMargin: {}
617
465
  },
618
- setup(r) {
619
- const a = r, e = ue(), t = be(re.EditorControl, void 0), n = be(re.LabelWidth, "85px") ?? "85px", i = He(a, t), o = C(!1);
466
+ setup(d) {
467
+ const l = d, e = ue(), t = ye(se.EditorControl, void 0), o = ye(se.LabelWidth, "85px") ?? "85px", n = qe(l, t), s = C(!1);
620
468
  setTimeout(() => {
621
- o.value = !0;
469
+ s.value = !0;
622
470
  }, 30);
623
- const f = K(() => {
624
- var u;
625
- if (!a.rule)
471
+ const f = j(() => {
472
+ var c;
473
+ if (!l.rule)
626
474
  return !1;
627
- const c = Qe(a.rule.split("."), (u = t == null ? void 0 : t.formRules) == null ? void 0 : u.value);
628
- return c ? (c.required || (i.value.errClass = "", i.value.msg = ""), c.required ?? !0) : (Jt.error(`"${a.label}" 的验证规则 \`${a.rule}\` 不存在`), i.value.errClass = "text-[#ff4d4f]", i.value.msg = `规则 \`${a.rule}\` 不存在,请检查代码!`, !0);
475
+ const u = He(l.rule.split("."), (c = t == null ? void 0 : t.formRules) == null ? void 0 : c.value);
476
+ return u ? (u.required || (n.value.errClass = "", n.value.msg = ""), u.required ?? !0) : (Zt.error(`"${l.label}" 的验证规则 \`${l.rule}\` 不存在`), n.value.errClass = "text-[#ff4d4f]", n.value.msg = `规则 \`${l.rule}\` 不存在,请检查代码!`, !0);
629
477
  });
630
- return (c, u) => (d(), b("div", {
631
- class: B(["relative", c.bottomMargin ? c.bottomMargin : "mb-1"])
478
+ return (u, c) => (i(), y("div", {
479
+ class: B(["relative", u.bottomMargin ? u.bottomMargin : "mb-1"])
632
480
  }, [
633
- o.value ? (d(), k(l(ut), U({
481
+ s.value ? (i(), _(a(ut), A({
634
482
  key: 0,
635
483
  required: f.value,
636
- class: ["relative", [c.nextLine ? "mb-0" : c.rule ? "" : "mb-3"]]
637
- }, l(e)), {
484
+ class: ["relative", [u.nextLine ? "mb-0" : u.rule ? "" : "mb-3"]]
485
+ }, a(e)), {
638
486
  label: x(() => [
639
- F("span", {
640
- class: B([l(i).errClass ? "text-[#ff4d4f]" : "", "w-full"])
641
- }, M(c.label), 3)
487
+ I("span", {
488
+ class: B([a(n).errClass ? "text-[#ff4d4f]" : "", "w-full"])
489
+ }, M(u.label), 3)
642
490
  ]),
643
491
  default: x(() => [
644
- F("div", {
645
- class: B(["flex items-center", c.width ? c.width : "w-full"])
492
+ I("div", {
493
+ class: B(["flex items-center", u.width ? u.width : "w-full"])
646
494
  }, [
647
- c.nextLine ? w("", !0) : (d(), b("div", Ea, [
648
- O(c.$slots, "default")
495
+ u.nextLine ? k("", !0) : (i(), y("div", Sa, [
496
+ R(u.$slots, "default")
649
497
  ])),
650
- F("div", La, [
651
- O(c.$slots, "helper", {}, () => [
652
- c.helper ? (d(), k(l(Fa), {
498
+ I("div", $a, [
499
+ R(u.$slots, "helper", {}, () => [
500
+ u.helper ? (i(), _(a(ka), {
653
501
  key: 0,
654
- text: c.helper
655
- }, null, 8, ["text"])) : w("", !0)
502
+ text: u.helper
503
+ }, null, 8, ["text"])) : k("", !0)
656
504
  ])
657
505
  ])
658
506
  ], 2)
659
507
  ]),
660
508
  _: 3
661
- }, 16, ["required", "class"])) : w("", !0),
662
- c.nextLine ? (d(), b("div", {
509
+ }, 16, ["required", "class"])) : k("", !0),
510
+ u.nextLine ? (i(), y("div", {
663
511
  key: 1,
664
- class: B(["w-[95%] flex items-center relative", [c.nextLine ? c.rule ? "mb-7" : "mb-3" : ""]])
512
+ class: B(["w-[95%] flex items-center relative", [u.nextLine ? u.rule ? "mb-7" : "mb-3" : ""]])
665
513
  }, [
666
- O(c.$slots, "default")
667
- ], 2)) : w("", !0),
668
- l(i).errClass ? (d(), b("span", {
514
+ R(u.$slots, "default")
515
+ ], 2)) : k("", !0),
516
+ a(n).errClass ? (i(), y("span", {
669
517
  key: 2,
670
- style: Oe({ left: c.nextLine ? "2px" : l(n) }),
518
+ style: Oe({ left: u.nextLine ? "2px" : a(o) }),
671
519
  class: "absolute bottom-[3px] text-[12px] text-[#ff4d4fcc]"
672
- }, M(l(i).msg), 5)) : w("", !0)
520
+ }, M(a(n).msg), 5)) : k("", !0)
673
521
  ], 2));
674
522
  }
675
- }), Ua = /* @__PURE__ */ I({
523
+ }), Ta = /* @__PURE__ */ E({
676
524
  __name: "listOperate",
677
525
  props: {
678
526
  record: {},
679
527
  gridCtrl: {}
680
528
  },
681
- setup(r) {
682
- const a = r, e = a.gridCtrl, t = K(() => de.currentRoute.value.path), n = [
529
+ setup(d) {
530
+ const l = d, e = l.gridCtrl, t = j(() => de.currentRoute.value.path), o = [
683
531
  {
684
532
  key: "Edit",
685
533
  label: "",
@@ -688,7 +536,7 @@ const or = async (r, a) => {
688
536
  visible: !0,
689
537
  role: ["Super", "Admin"],
690
538
  permit: ":edit",
691
- click: () => Je(e, a.record)
539
+ click: () => Qe(e, l.record)
692
540
  },
693
541
  {
694
542
  key: "Delete",
@@ -700,107 +548,106 @@ const or = async (r, a) => {
700
548
  role: ["Super", "Admin"],
701
549
  permit: ":delete",
702
550
  confirm: !0,
703
- confirmText: "是否删除此记录?",
704
- click: () => Xe(e, a.record)
551
+ confirmText: F("webui.components.content.table.confirmDelete"),
552
+ click: () => Je(e, l.record)
705
553
  }
706
- ], { buttons: i, menus: o } = Se(n, 0, e.operates), f = (c) => {
707
- if (typeof c.disabled == "boolean")
708
- return c.disabled;
709
- if (typeof c.disabled == "function")
710
- return G(c, a.record) ?? !1;
711
- if (a.record.hasOwnProperty(e.statusKey))
712
- switch (c.key) {
554
+ ], { buttons: n, menus: s } = Ae(o, 0, e.operates), f = (u) => {
555
+ if (typeof u.disabled == "boolean")
556
+ return u.disabled;
557
+ if (typeof u.disabled == "function")
558
+ return W(u, l.record) ?? !1;
559
+ if (l.record.hasOwnProperty(e.statusKey))
560
+ switch (u.key) {
713
561
  case "Edit":
714
- return !a.record[e.statusKey];
562
+ return !l.record[e.statusKey];
715
563
  case "Delete":
716
- return !!a.record[e.statusKey];
564
+ return !!l.record[e.statusKey];
717
565
  }
718
566
  return !1;
719
567
  };
720
- return (c, u) => {
721
- const v = oe("auth");
722
- return d(), k(l(ye), { theme: {
568
+ return (u, c) => {
569
+ const v = ne("auth");
570
+ return i(), _(a(xe), { theme: {
723
571
  token: {
724
572
  fontSize: 13
725
573
  }
726
574
  } }, {
727
575
  default: x(() => [
728
- D(l(ce), null, {
576
+ D(a(ce), null, {
729
577
  default: x(() => [
730
- (d(!0), b(E, null, j(l(i), (s) => (d(), b(E, {
731
- key: s.key
578
+ (i(!0), y(L, null, Y(a(n), (r) => (i(), y(L, {
579
+ key: r.key
732
580
  }, [
733
- l(Q)(s, a.record) ? (d(), k(l(ct), {
581
+ a(J)(r, l.record) ? (i(), _(a(ct), {
734
582
  key: 0,
735
- disabled: f(s) || !s.confirm,
736
- cancelText: "",
737
- okText: "",
738
- title: s.confirmText,
583
+ disabled: f(r) || !r.confirm,
584
+ cancelText: a(F)("webui.common.no"),
585
+ okText: a(F)("webui.common.yes"),
586
+ title: r.confirmText,
739
587
  okButtonProps: { size: "small" },
740
588
  cancelButtonProps: { size: "small" },
741
- onConfirm: (g) => l(J)(s, l(e).page, l(e), a.record, !0)
589
+ onConfirm: (m) => a(X)(r, a(e).page, a(e), l.record, !0)
742
590
  }, {
743
591
  default: x(() => [
744
- l(Q)(s, a.record) ? H((d(), k(l(V), {
745
- key: s.key,
746
- icon: s.icon,
747
- danger: s.danger,
748
- disabled: f(s),
749
- onClick: (g) => !f(s) && l(J)(s, l(e).page, l(e), a.record),
750
- clickable: !f(s),
592
+ a(J)(r, l.record) ? Q((i(), _(a(V), {
593
+ key: r.key,
594
+ icon: r.icon,
595
+ danger: r.danger,
596
+ disabled: f(r),
597
+ onClick: (m) => !f(r) && a(X)(r, a(e).page, a(e), l.record),
598
+ clickable: !f(r),
751
599
  class: B([
752
600
  "w-4 h-4",
753
- s.danger ? "text-red-500" : "text-gray-600",
754
- f(s) ? "opacity-30 cursor-not-allowed" : "hover:text-gray-800"
601
+ r.danger ? "text-red-500" : "text-gray-600",
602
+ f(r) ? "opacity-30 cursor-not-allowed" : "hover:text-gray-800"
755
603
  ])
756
604
  }, null, 8, ["icon", "danger", "disabled", "onClick", "clickable", "class"])), [
757
- [v, { url: t.value, role: s.role, permit: s.permit }]
758
- ]) : w("", !0)
605
+ [v, { url: t.value, role: r.role, permit: r.permit }]
606
+ ]) : k("", !0)
759
607
  ]),
760
608
  _: 2
761
- }, 1032, ["disabled", "title", "onConfirm"])) : w("", !0)
609
+ }, 1032, ["disabled", "cancelText", "okText", "title", "onConfirm"])) : k("", !0)
762
610
  ], 64))), 128)),
763
- c.record[l(e).statusKey] == 1 ? (d(), k(l(ye), {
611
+ u.record[a(e).statusKey] == 1 ? (i(), _(a(xe), {
764
612
  key: 0,
765
613
  autoInsertSpaceInButton: !1
766
614
  }, {
767
615
  default: x(() => [
768
- l(o).length > 0 ? (d(), k(l(dt), {
616
+ a(s).length > 0 ? (i(), _(a(dt), {
769
617
  key: 0,
770
618
  size: "small"
771
619
  }, {
772
620
  overlay: x(() => [
773
- D(l(we), null, {
621
+ D(a(Ce), null, {
774
622
  default: x(() => [
775
- (d(!0), b(E, null, j(l(o), (s) => (d(), b(E, {
776
- key: s.key
623
+ (i(!0), y(L, null, Y(a(s), (r) => (i(), y(L, {
624
+ key: r.key
777
625
  }, [
778
- l(Q)(s, a.record) ? H((d(), k(l(Ce), {
626
+ a(J)(r, l.record) ? Q((i(), _(a(Se), {
779
627
  key: 0,
780
- disabled: f(s),
781
- onClick: (g) => l(J)(s, l(e).page, l(e), a.record)
628
+ disabled: f(r),
629
+ onClick: (m) => a(X)(r, a(e).page, a(e), l.record)
782
630
  }, {
783
631
  default: x(() => [
784
- Y(M(s.label), 1)
632
+ G(M(r.label), 1)
785
633
  ]),
786
634
  _: 2
787
635
  }, 1032, ["disabled", "onClick"])), [
788
- [v, { url: t.value, role: s.role, permit: s.permit }]
789
- ]) : w("", !0)
636
+ [v, { url: t.value, role: r.role, permit: r.permit }]
637
+ ]) : k("", !0)
790
638
  ], 64))), 128))
791
639
  ]),
792
640
  _: 1
793
641
  })
794
642
  ]),
795
643
  default: x(() => [
796
- u[0] || (u[0] = Y(" 更多 "))
644
+ G(M(a(F)("webui.components.content.table.more")) + " ", 1)
797
645
  ]),
798
- _: 1,
799
- __: [0]
800
- })) : w("", !0)
646
+ _: 1
647
+ })) : k("", !0)
801
648
  ]),
802
649
  _: 1
803
- })) : w("", !0)
650
+ })) : k("", !0)
804
651
  ]),
805
652
  _: 1
806
653
  })
@@ -809,94 +656,94 @@ const or = async (r, a) => {
809
656
  });
810
657
  };
811
658
  }
812
- }), Ma = { class: "inline-flex [&>div]:ml-[-1px] first:[&>div]:ml-0" }, Ba = /* @__PURE__ */ I({
659
+ }), Da = { class: "inline-flex [&>div]:ml-[-1px] first:[&>div]:ml-0" }, Pa = /* @__PURE__ */ E({
813
660
  __name: "icontool",
814
661
  props: {
815
662
  gridCtrl: {}
816
663
  },
817
- setup(r) {
818
- const a = r, e = a.gridCtrl, { tools: t } = Ta(a.gridCtrl), n = Be();
819
- L(
664
+ setup(d) {
665
+ const l = d, e = l.gridCtrl, { tools: t } = Pt(l.gridCtrl), o = Ge();
666
+ U(
820
667
  () => e.selectable.value,
821
668
  (f) => {
822
- ie(t, "tool.export.excel.selected") && (ie(t, "tool.export.excel.selected").disabled = !f), ie(t, "tool.export.pdf.selected") && (ie(t, "tool.export.pdf.selected").disabled = !f);
669
+ me(t, "tool.export.excel.selected") && (me(t, "tool.export.excel.selected").disabled = !f), me(t, "tool.export.pdf.selected") && (me(t, "tool.export.pdf.selected").disabled = !f);
823
670
  }
824
671
  );
825
- const i = C([]);
826
- L(
672
+ const n = C([]);
673
+ U(
827
674
  () => e.columns.value,
828
675
  (f) => {
829
- i.value = Ze(f, !0);
676
+ n.value = Xe(f, !0);
830
677
  },
831
678
  { deep: !0, immediate: !0 }
832
679
  );
833
- const o = () => {
834
- e.columns.value.splice(0, e.columns.value.length, ...i.value), n.setTableColumns(de.currentRoute.value.path, e.columns.value);
680
+ const s = () => {
681
+ e.columns.value.splice(0, e.columns.value.length, ...n.value), o.setTableColumns(de.currentRoute.value.path, e.columns.value);
835
682
  };
836
- return (f, c) => (d(), b("div", Ma, [
837
- (d(!0), b(E, null, j(l(t), (u, v) => (d(), b(E, {
838
- key: u.key
683
+ return (f, u) => (i(), y("div", Da, [
684
+ (i(!0), y(L, null, Y(a(t), (c, v) => (i(), y(L, {
685
+ key: c.key
839
686
  }, [
840
- l(Q)(u) && u.dropdown ? (d(), k(l(Ue), {
687
+ a(J)(c) && c.dropdown ? (i(), _(a(Ue), {
841
688
  key: 0,
842
689
  placement: "bottomRight",
843
690
  class: "p-0 rounded-none"
844
691
  }, {
845
692
  overlay: x(() => [
846
- F("div", {
847
- class: B(["min-w-[100px] bg-white rounded shadow-md p-4", u.dropdownClass])
693
+ I("div", {
694
+ class: B(["min-w-[100px] bg-white rounded shadow-md p-4", c.dropdownClass])
848
695
  }, [
849
- u.dropdown === "headset" ? (d(), k(l(ga), {
696
+ c.dropdown === "headset" ? (i(), _(a(ha), {
850
697
  key: 0,
851
- modelValue: i.value,
852
- "onUpdate:modelValue": c[1] || (c[1] = (s) => i.value = s),
698
+ modelValue: n.value,
699
+ "onUpdate:modelValue": u[1] || (u[1] = (r) => n.value = r),
853
700
  "item-key": "dataIndex",
854
- onEnd: o,
701
+ onEnd: s,
855
702
  handle: ".drag-handle"
856
703
  }, {
857
704
  default: x(() => [
858
- (d(!0), b(E, null, j(i.value, (s) => (d(), b("div", {
859
- key: s.name,
860
- onClick: c[0] || (c[0] = ve(() => {
705
+ (i(!0), y(L, null, Y(n.value, (r) => (i(), y("div", {
706
+ key: r.name,
707
+ onClick: u[0] || (u[0] = ve(() => {
861
708
  }, ["stop"])),
862
709
  class: "flex items-center mb-2 last:mb-0 select-none"
863
710
  }, [
864
- c[2] || (c[2] = F("span", { class: "drag-handle mr-2 text-gray-400 hover:text-gray-600 cursor-move" }, "⋮⋮", -1)),
865
- D(l(Xt), {
866
- checked: s.visible !== !1,
711
+ u[2] || (u[2] = I("span", { class: "drag-handle mr-2 text-gray-400 hover:text-gray-600 cursor-move" }, "⋮⋮", -1)),
712
+ D(a(ea), {
713
+ checked: r.visible !== !1,
867
714
  onChange: ve(
868
- (g) => {
869
- l($a)(s, g.target.checked);
715
+ (m) => {
716
+ a(Ft)(r, m.target.checked);
870
717
  },
871
718
  ["stop", "prevent"]
872
719
  ),
873
720
  class: "text-gray-700 hover:text-gray-900 select-none"
874
721
  }, {
875
722
  default: x(() => [
876
- Y(M(s.title), 1)
723
+ G(M(r.title), 1)
877
724
  ]),
878
725
  _: 2
879
726
  }, 1032, ["checked", "onChange"])
880
727
  ]))), 128))
881
728
  ]),
882
729
  _: 1
883
- }, 8, ["modelValue"])) : w("", !0)
730
+ }, 8, ["modelValue"])) : k("", !0)
884
731
  ], 2)
885
732
  ]),
886
733
  default: x(() => [
887
- D(l(Z), {
734
+ D(a(ee), {
888
735
  class: B([
889
736
  "px-[8px] py-[2px] relative border-[#ccc] bg-[#fcfcfc] rounded-none text-[#666] hover:z-10",
890
737
  v === 0 ? "rounded-l-[5px]" : "",
891
- v === l(t).length - 1 ? "rounded-r-[5px]" : ""
738
+ v === a(t).length - 1 ? "rounded-r-[5px]" : ""
892
739
  ]),
893
- disabled: l(G)(u),
894
- tiptext: u.label,
895
- onClick: (s) => l(J)(u, l(e).page, l(e))
740
+ disabled: a(W)(c),
741
+ tiptext: c.label,
742
+ onClick: (r) => a(X)(c, a(e).page, a(e))
896
743
  }, {
897
744
  default: x(() => [
898
- D(l(V), {
899
- icon: u.icon,
745
+ D(a(V), {
746
+ icon: c.icon,
900
747
  class: "w-[18px] h-[18.5px]",
901
748
  clickable: ""
902
749
  }, null, 8, ["icon"])
@@ -905,39 +752,39 @@ const or = async (r, a) => {
905
752
  }, 1032, ["class", "disabled", "tiptext", "onClick"])
906
753
  ]),
907
754
  _: 2
908
- }, 1024)) : !u.children && l(Q)(u) ? (d(), k(l(Z), {
755
+ }, 1024)) : !c.children && a(J)(c) ? (i(), _(a(ee), {
909
756
  key: 1,
910
757
  class: B([
911
758
  "px-[8px] py-[2px] relative border-[#ccc] bg-[#fcfcfc] rounded-none text-[#666] hover:z-10",
912
759
  v === 0 ? "rounded-l-[5px]" : "",
913
- v === l(t).length - 1 ? "rounded-r-[5px]" : ""
760
+ v === a(t).length - 1 ? "rounded-r-[5px]" : ""
914
761
  ]),
915
- disabled: l(G)(u),
916
- tiptext: u.label,
917
- onClick: (s) => l(J)(u, l(e).page, l(e))
762
+ disabled: a(W)(c),
763
+ tiptext: c.label,
764
+ onClick: (r) => a(X)(c, a(e).page, a(e))
918
765
  }, {
919
766
  default: x(() => [
920
- D(l(V), {
921
- icon: u.icon,
767
+ D(a(V), {
768
+ icon: c.icon,
922
769
  class: "w-[18px] h-[18.5px]",
923
770
  clickable: ""
924
771
  }, null, 8, ["icon"])
925
772
  ]),
926
773
  _: 2
927
- }, 1032, ["class", "disabled", "tiptext", "onClick"])) : l(Q)(u) ? (d(), k(l(Ue), {
774
+ }, 1032, ["class", "disabled", "tiptext", "onClick"])) : a(J)(c) ? (i(), _(a(Ue), {
928
775
  key: 2,
929
776
  placement: "bottomRight",
930
777
  class: "p-0 rounded-none"
931
778
  }, {
932
779
  overlay: x(() => [
933
- D(l(we), null, {
780
+ D(a(Ce), null, {
934
781
  default: x(() => [
935
- (d(!0), b(E, null, j(u.children, (s) => (d(), k(l(Ce), {
936
- key: s.key,
937
- disabled: l(G)(s)
782
+ (i(!0), y(L, null, Y(c.children, (r) => (i(), _(a(Se), {
783
+ key: r.key,
784
+ disabled: a(W)(r)
938
785
  }, {
939
786
  default: x(() => [
940
- Y(M(s.label), 1)
787
+ G(M(r.label), 1)
941
788
  ]),
942
789
  _: 2
943
790
  }, 1032, ["disabled"]))), 128))
@@ -946,19 +793,19 @@ const or = async (r, a) => {
946
793
  }, 1024)
947
794
  ]),
948
795
  default: x(() => [
949
- D(l(Z), {
796
+ D(a(ee), {
950
797
  class: B([
951
798
  "!w-[46px] px-[5px] py-[2px] relative border-[#ccc] bg-[#fcfcfc] rounded-none text-[#666] hover:z-10",
952
799
  v === 0 ? "rounded-l-[5px]" : ""
953
800
  ]),
954
- disabled: l(G)(u),
955
- tiptext: u.label,
956
- icon: u.icon,
801
+ disabled: a(W)(c),
802
+ tiptext: c.label,
803
+ icon: c.icon,
957
804
  iconProps: { class: "w-[19px] h-[19px]" },
958
- onClick: (s) => l(J)(u, l(e).page, l(e))
805
+ onClick: (r) => a(X)(c, a(e).page, a(e))
959
806
  }, {
960
807
  default: x(() => [
961
- D(l(V), {
808
+ D(a(V), {
962
809
  icon: "icon-down-arrow",
963
810
  class: "w-[12px] h-[12px]"
964
811
  })
@@ -967,113 +814,112 @@ const or = async (r, a) => {
967
814
  }, 1032, ["class", "disabled", "tiptext", "icon", "onClick"])
968
815
  ]),
969
816
  _: 2
970
- }, 1024)) : w("", !0)
817
+ }, 1024)) : k("", !0)
971
818
  ], 64))), 128))
972
819
  ]));
973
820
  }
974
- }), Na = { class: "flex justify-between mb-[10px]" }, za = { key: 1 }, Aa = 3, kt = /* @__PURE__ */ I({
821
+ }), Fa = { class: "flex justify-between mb-[10px]" }, Ia = { key: 1 }, Ea = 3, _t = /* @__PURE__ */ E({
975
822
  __name: "index",
976
823
  props: {
977
824
  gridCtrl: {},
978
825
  editorCtrl: {}
979
826
  },
980
- setup(r) {
981
- const a = r, e = a.gridCtrl, t = e.page, n = a.editorCtrl, i = K(() => de.currentRoute.value.path), o = [
827
+ setup(d) {
828
+ const l = d, e = l.gridCtrl, t = e.page, o = l.editorCtrl, n = j(() => de.currentRoute.value.path), s = [
982
829
  {
983
830
  key: "New",
984
- label: "新增",
831
+ label: F("webui.common.add"),
985
832
  type: "primary",
986
833
  icon: "icon-new",
987
834
  danger: !0,
988
835
  role: ["Super", "Admin"],
989
836
  permit: ":new",
990
837
  // 默认仅受权限码控制
991
- click: () => Pt(n)
838
+ click: () => It(o)
992
839
  }
993
- ], f = C([]), c = C([]);
994
- return L(
840
+ ], f = C([]), u = C([]);
841
+ return U(
995
842
  () => {
996
- var u;
997
- return (u = e.buttons) == null ? void 0 : u.value;
843
+ var c;
844
+ return (c = e.buttons) == null ? void 0 : c.value;
998
845
  },
999
846
  () => {
1000
- var s;
1001
- const { buttons: u, menus: v } = Se(
1002
- o,
1003
- e.flat !== void 0 ? e.flat : Aa,
1004
- (s = e.buttons) == null ? void 0 : s.value
847
+ var r;
848
+ const { buttons: c, menus: v } = Ae(
849
+ s,
850
+ e.flat !== void 0 ? e.flat : Ea,
851
+ (r = e.buttons) == null ? void 0 : r.value
1005
852
  );
1006
- f.value.splice(0, f.value.length, ...u), c.value.splice(0, c.value.length, ...v);
853
+ f.value.splice(0, f.value.length, ...c), u.value.splice(0, u.value.length, ...v);
1007
854
  },
1008
855
  {
1009
856
  deep: !0,
1010
857
  immediate: !0
1011
858
  }
1012
- ), (u, v) => {
1013
- const s = oe("auth");
1014
- return d(), b("div", Na, [
1015
- D(l(ce), null, {
859
+ ), (c, v) => {
860
+ const r = ne("auth");
861
+ return i(), y("div", Fa, [
862
+ D(a(ce), null, {
1016
863
  default: x(() => [
1017
- (d(!0), b(E, null, j(f.value, (g) => H((d(), k(l(Z), {
1018
- key: g.key,
1019
- type: g.type,
1020
- danger: g.danger,
1021
- disabled: l(G)(g),
1022
- icon: g.icon,
1023
- onClick: (p) => l(J)(g, l(t), l(e))
864
+ (i(!0), y(L, null, Y(f.value, (m) => Q((i(), _(a(ee), {
865
+ key: m.key,
866
+ type: m.type,
867
+ danger: m.danger,
868
+ disabled: a(W)(m),
869
+ icon: m.icon,
870
+ onClick: (p) => a(X)(m, a(t), a(e))
1024
871
  }, {
1025
872
  default: x(() => [
1026
- Y(M(g.label), 1)
873
+ G(M(m.label), 1)
1027
874
  ]),
1028
875
  _: 2
1029
876
  }, 1032, ["type", "danger", "disabled", "icon", "onClick"])), [
1030
- [s, { url: i.value, role: g.role, permit: g.permit }]
877
+ [r, { url: n.value, role: m.role, permit: m.permit }]
1031
878
  ])), 128)),
1032
- c.value.length > 0 ? (d(), k(l(Ue), { key: 0 }, {
879
+ u.value.length > 0 ? (i(), _(a(Ue), { key: 0 }, {
1033
880
  overlay: x(() => [
1034
- D(l(we), null, {
881
+ D(a(Ce), null, {
1035
882
  default: x(() => [
1036
- (d(!0), b(E, null, j(c.value, (g) => H((d(), k(l(Ce), {
1037
- key: g.key,
1038
- disabled: l(G)(g),
1039
- onClick: (p) => l(J)(g, l(t), l(e))
883
+ (i(!0), y(L, null, Y(u.value, (m) => Q((i(), _(a(Se), {
884
+ key: m.key,
885
+ disabled: a(W)(m),
886
+ onClick: (p) => a(X)(m, a(t), a(e))
1040
887
  }, {
1041
888
  default: x(() => [
1042
- Y(M(g.label), 1)
889
+ G(M(m.label), 1)
1043
890
  ]),
1044
891
  _: 2
1045
892
  }, 1032, ["disabled", "onClick"])), [
1046
- [s, { url: i.value, role: g.role, permit: g.permit }]
893
+ [r, { url: n.value, role: m.role, permit: m.permit }]
1047
894
  ])), 128))
1048
895
  ]),
1049
896
  _: 1
1050
897
  })
1051
898
  ]),
1052
899
  default: x(() => [
1053
- D(l(Z), null, {
1054
- default: x(() => v[0] || (v[0] = [
1055
- Y(" 更多操作 ")
1056
- ])),
1057
- _: 1,
1058
- __: [0]
900
+ D(a(ee), null, {
901
+ default: x(() => [
902
+ G(M(a(F)("webui.common.moreActions")), 1)
903
+ ]),
904
+ _: 1
1059
905
  })
1060
906
  ]),
1061
907
  _: 1
1062
- })) : w("", !0),
1063
- f.value.length === 0 && c.value.length === 0 ? (d(), b("span", za)) : w("", !0)
908
+ })) : k("", !0),
909
+ f.value.length === 0 && u.value.length === 0 ? (i(), y("span", Ia)) : k("", !0)
1064
910
  ]),
1065
911
  _: 1
1066
912
  }),
1067
- D(l(ce), { class: "mr-1" }, {
913
+ D(a(ce), { class: "mr-1" }, {
1068
914
  default: x(() => [
1069
- (d(), k(st(Ba), { "grid-ctrl": l(e) }, null, 8, ["grid-ctrl"]))
915
+ (i(), _(st(Pa), { "grid-ctrl": a(e) }, null, 8, ["grid-ctrl"]))
1070
916
  ]),
1071
917
  _: 1
1072
918
  })
1073
919
  ]);
1074
920
  };
1075
921
  }
1076
- }), Oa = { class: "flex items-center justify-between" }, Ra = { class: "flex items-center space-x-2" }, gr = /* @__PURE__ */ I({
922
+ }), La = { class: "flex items-center justify-between" }, Ua = { class: "flex items-center space-x-2" }, ir = /* @__PURE__ */ E({
1077
923
  inheritAttrs: !1,
1078
924
  __name: "index",
1079
925
  props: {
@@ -1085,75 +931,75 @@ const or = async (r, a) => {
1085
931
  titleField: { default: "Title" },
1086
932
  statusDisabled: {}
1087
933
  },
1088
- setup(r) {
1089
- const a = r, e = ue(), t = a.gridCtrl, n = K(() => de.currentRoute.value.path);
934
+ setup(d) {
935
+ const l = d, e = ue(), t = l.gridCtrl, o = j(() => de.currentRoute.value.path);
1090
936
  t && (t.pageNo.value = 1, t.total.value = 0, t.pageSize.value = t.pageSize.value);
1091
- const i = C(t.pageSize.value), o = C(t.pageNo.value), f = C([]), c = C({
937
+ const n = C(t.pageSize.value), s = C(t.pageNo.value), f = C([]), u = C({
1092
938
  total: 0,
1093
939
  current: 1,
1094
- pageSize: i.value,
1095
- showTotal: (v) => `共 ${v} 条记录`,
1096
- onChange: (v, s) => {
1097
- c.value !== !1 && (c.value.current = v, c.value.pageSize = s), i.value = s, o.value = v, t && (t.pageNo.value = v, t.pageSize.value = s, t.remotePage && me(t));
940
+ pageSize: n.value,
941
+ showTotal: (v) => F("webui.common.total", [v]),
942
+ onChange: (v, r) => {
943
+ u.value !== !1 && (u.value.current = v, u.value.pageSize = r), n.value = r, s.value = v, t && (t.pageNo.value = v, t.pageSize.value = r, t.remotePage && he(t));
1098
944
  },
1099
- ...a.pagination === !1 ? {} : a.pagination
945
+ ...l.pagination === !1 ? {} : l.pagination
1100
946
  });
1101
- a.pagination === !1 && (c.value = !1), L(
947
+ l.pagination === !1 && (u.value = !1), U(
1102
948
  () => t.tableData.value,
1103
949
  (v) => {
1104
- v && (f.value = v, c.value !== !1 && (c.value.total = t.total.value ?? 0, c.value.current = t.pageNo.value ?? 1, c.value.pageSize = t.pageSize.value ?? 10));
950
+ v && (f.value = v, u.value !== !1 && (u.value.total = t.total.value ?? 0, u.value.current = t.pageNo.value ?? 1, u.value.pageSize = t.pageSize.value ?? 10));
1105
951
  },
1106
952
  { immediate: !0 }
1107
- ), L(
1108
- () => a.listData,
953
+ ), U(
954
+ () => l.listData,
1109
955
  (v) => {
1110
- v && (f.value = v, c.value !== !1 && (c.value.total = v.length, c.value.current = t.pageNo.value ?? 1, c.value.pageSize = t.pageSize.value ?? 10));
956
+ v && (f.value = v, u.value !== !1 && (u.value.total = v.length, u.value.current = t.pageNo.value ?? 1, u.value.pageSize = t.pageSize.value ?? 10));
1111
957
  },
1112
958
  { immediate: !0 }
1113
959
  );
1114
- const u = C(!1);
960
+ const c = C(!1);
1115
961
  return ke(() => {
1116
- u.value && t && t.autoload && (t.reload.value = !0);
1117
- }), _e(re.GridControl, t), ae(async () => {
1118
- var v, s, g, p, _;
1119
- t.page && ((v = t.gridUrl) != null && v.url) && (((s = t.gridUrl) == null ? void 0 : s.url) === ((g = t.page.urls.list) == null ? void 0 : g.url) && (t.remotePage = !1), ((p = t.gridUrl) == null ? void 0 : p.url) === ((_ = t.page.urls.find) == null ? void 0 : _.url) && (t.remotePage = !0)), t.tableData.value ? (f.value = t.tableData.value, t.total.value = f.value.length, c.value !== !1 && (c.value.total = t.total.value ?? 0)) : t.autoload !== !1 && (t.remotePage ? f.value = (await me(t)).rows : f.value = await et(t)), setTimeout(() => {
1120
- u.value = !0;
962
+ c.value && t && t.autoload && (t.reload.value = !0);
963
+ }), we(se.GridControl, t), ae(async () => {
964
+ var v, r, m, p, w;
965
+ t.page && ((v = t.gridUrl) != null && v.url) && (((r = t.gridUrl) == null ? void 0 : r.url) === ((m = t.page.urls.list) == null ? void 0 : m.url) && (t.remotePage = !1), ((p = t.gridUrl) == null ? void 0 : p.url) === ((w = t.page.urls.find) == null ? void 0 : w.url) && (t.remotePage = !0)), t.tableData.value ? (f.value = t.tableData.value, t.total.value = f.value.length, u.value !== !1 && (u.value.total = t.total.value ?? 0)) : t.autoload !== !1 && (t.remotePage ? f.value = (await he(t)).rows : f.value = await Ze(t)), setTimeout(() => {
966
+ c.value = !0;
1121
967
  }, 50);
1122
- }), (v, s) => {
1123
- var p, _;
1124
- const g = oe("auth");
1125
- return d(), b(E, null, [
1126
- (p = l(t).buttons) != null && p.value.length || (_ = l(t).tools) != null && _.length ? (d(), k(kt, {
968
+ }), (v, r) => {
969
+ var p, w;
970
+ const m = ne("auth");
971
+ return i(), y(L, null, [
972
+ (p = a(t).buttons) != null && p.value.length || (w = a(t).tools) != null && w.length ? (i(), _(_t, {
1127
973
  key: 0,
1128
- "grid-ctrl": l(t),
1129
- "editor-ctrl": l(t).editor
1130
- }, null, 8, ["grid-ctrl", "editor-ctrl"])) : w("", !0),
1131
- u.value ? (d(), k(l(Zt), U({
974
+ "grid-ctrl": a(t),
975
+ "editor-ctrl": a(t).editor
976
+ }, null, 8, ["grid-ctrl", "editor-ctrl"])) : k("", !0),
977
+ c.value ? (i(), _(a(ta), A({
1132
978
  key: 1,
1133
979
  class: "w-full min-h-[480px]",
1134
- grid: a.grid,
980
+ grid: l.grid,
1135
981
  "data-source": f.value,
1136
- loading: l(t).isGridLoading.value,
1137
- pagination: c.value
1138
- }, l(e)), {
982
+ loading: a(t).isGridLoading.value,
983
+ pagination: u.value
984
+ }, a(e)), {
1139
985
  renderItem: x(({ item: $ }) => [
1140
- D(l(ea), { class: "!m-0 !p-0" }, {
986
+ D(a(aa), { class: "!m-0 !p-0" }, {
1141
987
  default: x(() => [
1142
- D(l(ta), {
988
+ D(a(la), {
1143
989
  class: "!m-0",
1144
990
  "head-style": { fontSize: "14px", padding: "8px", minHeight: "36px", height: "36px" },
1145
991
  "body-style": { padding: "4px" }
1146
992
  }, {
1147
993
  title: x(() => [
1148
- F("div", Oa, [
1149
- F("span", null, M($[a.titleField]), 1),
1150
- F("div", Ra, [
1151
- H(D(tt, {
1152
- checked: $[l(t).statusKey],
1153
- "onUpdate:checked": (y) => $[l(t).statusKey] = y,
994
+ I("div", La, [
995
+ I("span", null, M($[l.titleField]), 1),
996
+ I("div", Ua, [
997
+ Q(D(et, {
998
+ checked: $[a(t).statusKey],
999
+ "onUpdate:checked": (b) => $[a(t).statusKey] = b,
1154
1000
  disabled: v.statusDisabled ? v.statusDisabled($) : !1,
1155
- data: l(Ne).EnableDisable,
1156
- onClick: (y) => l(at)(l(t), $),
1001
+ data: a(Be).EnableDisable,
1002
+ onClick: (b) => a(tt)(a(t), $),
1157
1003
  size: "small",
1158
1004
  class: B([
1159
1005
  "relative mt-[3px] transform scale-[1.1]",
@@ -1161,17 +1007,17 @@ const or = async (r, a) => {
1161
1007
  ]),
1162
1008
  loading: $.isLoading
1163
1009
  }, null, 8, ["checked", "onUpdate:checked", "disabled", "data", "onClick", "class", "loading"]), [
1164
- [g, { url: n.value, role: ["Super", "Admin"], permit: ":enabled" }, "disable"]
1010
+ [m, { url: o.value, role: ["Super", "Admin"], permit: ":enabled" }, "disable"]
1165
1011
  ]),
1166
- D(Ua, {
1012
+ D(Ta, {
1167
1013
  record: $,
1168
- "grid-ctrl": l(t)
1014
+ "grid-ctrl": a(t)
1169
1015
  }, null, 8, ["record", "grid-ctrl"])
1170
1016
  ])
1171
1017
  ])
1172
1018
  ]),
1173
1019
  default: x(() => [
1174
- O(v.$slots, "cardContent", { record: $ })
1020
+ R(v.$slots, "cardContent", { record: $ })
1175
1021
  ]),
1176
1022
  _: 2
1177
1023
  }, 1024)
@@ -1180,14 +1026,14 @@ const or = async (r, a) => {
1180
1026
  }, 1024)
1181
1027
  ]),
1182
1028
  _: 3
1183
- }, 16, ["grid", "data-source", "loading", "pagination"])) : w("", !0)
1029
+ }, 16, ["grid", "data-source", "loading", "pagination"])) : k("", !0)
1184
1030
  ], 64);
1185
1031
  };
1186
1032
  }
1187
- }), Ka = { class: "w-1/3 relative mb-1" }, ja = { class: "flex items-center w-[90%]" }, Va = { class: "flex-grow pl-1" }, Ya = {
1033
+ }), Ma = { class: "w-1/3 relative mb-1" }, Aa = { class: "flex items-center w-[90%]" }, Ba = { class: "flex-grow pl-1" }, Na = {
1188
1034
  key: 0,
1189
1035
  class: "absolute bottom-[3px] left-[85px] text-[12px] text-[#ff4d4fcc] block"
1190
- }, Ie = /* @__PURE__ */ I({
1036
+ }, Ie = /* @__PURE__ */ E({
1191
1037
  inheritAttrs: !1,
1192
1038
  __name: "searchItem",
1193
1039
  props: {
@@ -1195,45 +1041,45 @@ const or = async (r, a) => {
1195
1041
  width: {},
1196
1042
  rule: {}
1197
1043
  },
1198
- setup(r) {
1199
- const a = r, e = ue(), t = be(re.EditorControl, void 0), n = He(a, t), i = K(() => {
1044
+ setup(d) {
1045
+ const l = d, e = ue(), t = ye(se.EditorControl, void 0), o = qe(l, t), n = j(() => {
1200
1046
  var f;
1201
- if (!a.rule)
1047
+ if (!l.rule)
1202
1048
  return !1;
1203
- const o = Qe(a.rule.split("."), (f = t == null ? void 0 : t.formRules) == null ? void 0 : f.value);
1204
- return o ? (o.required || (n.value.errClass = "", n.value.msg = ""), o.required ?? !0) : (te.error(`"${a.label}" 的验证规则 \`${a.rule}\` 不存在`), n.value.errClass = "text-[#ff4d4f]", n.value.msg = `规则 \`${a.rule}\` 不存在,请检查代码!`, !0);
1049
+ const s = He(l.rule.split("."), (f = t == null ? void 0 : t.formRules) == null ? void 0 : f.value);
1050
+ return s ? (s.required || (o.value.errClass = "", o.value.msg = ""), s.required ?? !0) : (re.error(`"${l.label}" 的验证规则 \`${l.rule}\` 不存在`), o.value.errClass = "text-[#ff4d4f]", o.value.msg = `规则 \`${l.rule}\` 不存在,请检查代码!`, !0);
1205
1051
  });
1206
- return (o, f) => (d(), b("div", Ka, [
1207
- D(l(ut), U({
1208
- required: i.value,
1052
+ return (s, f) => (i(), y("div", Ma, [
1053
+ D(a(ut), A({
1054
+ required: n.value,
1209
1055
  class: "w-[90%] relative"
1210
- }, l(e), {
1211
- class: [o.rule ? "" : "mb-3", o.width],
1056
+ }, a(e), {
1057
+ class: [s.rule ? "" : "mb-3", s.width],
1212
1058
  labelCol: { span: 6 }
1213
1059
  }), ot({
1214
1060
  default: x(() => [
1215
- F("div", ja, [
1216
- F("div", Va, [
1217
- O(o.$slots, "default")
1061
+ I("div", Aa, [
1062
+ I("div", Ba, [
1063
+ R(s.$slots, "default")
1218
1064
  ])
1219
1065
  ])
1220
1066
  ]),
1221
1067
  _: 2
1222
1068
  }, [
1223
- o.label ? {
1069
+ s.label ? {
1224
1070
  name: "label",
1225
1071
  fn: x(() => [
1226
- F("span", {
1227
- class: B([l(n).errClass ? "text-[#ff4d4f]" : "", "w-full"])
1228
- }, M(o.label), 3)
1072
+ I("span", {
1073
+ class: B([a(o).errClass ? "text-[#ff4d4f]" : "", "w-full"])
1074
+ }, M(s.label), 3)
1229
1075
  ]),
1230
1076
  key: "0"
1231
1077
  } : void 0
1232
1078
  ]), 1040, ["required", "class"]),
1233
- l(n).msg ? (d(), b("span", Ya, M(l(n).msg), 1)) : w("", !0)
1079
+ a(o).msg ? (i(), y("span", Na, M(a(o).msg), 1)) : k("", !0)
1234
1080
  ]));
1235
1081
  }
1236
- }), mr = /* @__PURE__ */ I({
1082
+ }), ur = /* @__PURE__ */ E({
1237
1083
  __name: "index",
1238
1084
  props: {
1239
1085
  search: {},
@@ -1241,39 +1087,39 @@ const or = async (r, a) => {
1241
1087
  likeFields: {}
1242
1088
  },
1243
1089
  emits: ["update:search", "onsearch", "onreset"],
1244
- setup(r, { emit: a }) {
1245
- const e = r, t = a, n = C(0), i = C(0), o = C(0), f = (p) => {
1246
- let _ = 0;
1090
+ setup(d, { emit: l }) {
1091
+ const e = d, t = l, o = C(0), n = C(0), s = C(0), f = (p) => {
1092
+ let w = 0;
1247
1093
  for (let $ = 0; $ < p.length; $++)
1248
- typeof p[$].type == "object" && _++;
1249
- return _;
1250
- }, c = Gt(), u = () => {
1251
- i.value = 0, o.value = 0, c.default && (i.value = f(c.default({}))), e.gridCtrl && e.gridCtrl.searchBar && c.control && (o.value = f(c.control({}))), n.value = 2 - (i.value + o.value) % 3;
1094
+ typeof p[$].type == "object" && w++;
1095
+ return w;
1096
+ }, u = qt(), c = () => {
1097
+ n.value = 0, s.value = 0, u.default && (n.value = f(u.default({}))), e.gridCtrl && e.gridCtrl.searchBar && u.control && (s.value = f(u.control({}))), o.value = 2 - (n.value + s.value) % 3;
1252
1098
  };
1253
- L(
1099
+ U(
1254
1100
  () => {
1255
1101
  var p;
1256
1102
  return (p = e.gridCtrl) == null ? void 0 : p.searchBar;
1257
1103
  },
1258
1104
  () => {
1259
- u();
1105
+ c();
1260
1106
  }
1261
1107
  );
1262
1108
  const v = JSON.parse(JSON.stringify(e.search));
1263
1109
  ae(() => {
1264
- var _;
1265
- u();
1110
+ var w;
1111
+ c();
1266
1112
  let p = { ...e.search };
1267
1113
  e.gridCtrl && (e.gridCtrl.gridQuery = {
1268
1114
  ...e.gridCtrl.gridQuery,
1269
1115
  Query: {
1270
- ...(_ = e.gridCtrl.gridQuery) == null ? void 0 : _.Query,
1116
+ ...(w = e.gridCtrl.gridQuery) == null ? void 0 : w.Query,
1271
1117
  ...p
1272
1118
  }
1273
1119
  });
1274
1120
  });
1275
- const s = () => {
1276
- var _;
1121
+ const r = () => {
1122
+ var w;
1277
1123
  let p = { ...e.search };
1278
1124
  if (e.likeFields)
1279
1125
  for (const $ of e.likeFields)
@@ -1281,19 +1127,19 @@ const or = async (r, a) => {
1281
1127
  e.gridCtrl && (e.gridCtrl.gridQuery = {
1282
1128
  ...e.gridCtrl.gridQuery,
1283
1129
  Query: {
1284
- ...(_ = e.gridCtrl.gridQuery) == null ? void 0 : _.Query,
1130
+ ...(w = e.gridCtrl.gridQuery) == null ? void 0 : w.Query,
1285
1131
  ...p
1286
1132
  }
1287
1133
  }, e.gridCtrl.pageNo.value = 1, e.gridCtrl.reload.value = !0), t("onsearch", p);
1288
- }, g = () => {
1134
+ }, m = () => {
1289
1135
  const p = JSON.parse(JSON.stringify(v));
1290
- for (const _ in e.search)
1291
- p[_] === void 0 && (p[_] = void 0);
1136
+ for (const w in e.search)
1137
+ p[w] === void 0 && (p[w] = void 0);
1292
1138
  t("update:search", p), t("onreset");
1293
1139
  };
1294
- return (p, _) => {
1295
- const $ = oe("submit");
1296
- return i.value + o.value > 0 ? H((d(), k(l(it), {
1140
+ return (p, w) => {
1141
+ const $ = ne("submit");
1142
+ return n.value + s.value > 0 ? Q((i(), _(a(it), {
1297
1143
  key: 0,
1298
1144
  "label-col": { flex: "60px" },
1299
1145
  style: {
@@ -1303,192 +1149,189 @@ const or = async (r, a) => {
1303
1149
  class: "flex mb-[10px]"
1304
1150
  }, {
1305
1151
  default: x(() => {
1306
- var y, S;
1152
+ var b, S;
1307
1153
  return [
1308
- O(p.$slots, "default"),
1309
- (y = p.gridCtrl) != null && y.searchBar ? O(p.$slots, "control", { key: 0 }) : w("", !0),
1310
- n.value >= 1 ? (d(), k(Ie, {
1154
+ R(p.$slots, "default"),
1155
+ (b = p.gridCtrl) != null && b.searchBar ? R(p.$slots, "control", { key: 0 }) : k("", !0),
1156
+ o.value >= 1 ? (i(), _(Ie, {
1311
1157
  key: 1,
1312
1158
  class: "w-1/3"
1313
- })) : w("", !0),
1314
- n.value >= 2 ? (d(), k(Ie, {
1159
+ })) : k("", !0),
1160
+ o.value >= 2 ? (i(), _(Ie, {
1315
1161
  key: 2,
1316
1162
  class: "w-1/3"
1317
- })) : w("", !0),
1318
- i.value || (S = p.gridCtrl) != null && S.searchBar ? (d(), k(Ie, {
1163
+ })) : k("", !0),
1164
+ n.value || (S = p.gridCtrl) != null && S.searchBar ? (i(), _(Ie, {
1319
1165
  key: 3,
1320
1166
  class: "w-1/3 flex justify-end text-right pr-5",
1321
1167
  "wrapper-col": { flex: "auto" }
1322
1168
  }, {
1323
1169
  default: x(() => [
1324
- D(l(ce), null, {
1170
+ D(a(ce), null, {
1325
1171
  default: x(() => [
1326
- D(l(Z), {
1172
+ D(a(ee), {
1327
1173
  type: "primary",
1328
- onClick: s,
1174
+ onClick: r,
1329
1175
  icon: "icon-search"
1330
1176
  }, {
1331
- default: x(() => _[0] || (_[0] = [
1332
- Y("搜索")
1333
- ])),
1334
- _: 1,
1335
- __: [0]
1177
+ default: x(() => [
1178
+ G(M(p.$t("webui.common.search")), 1)
1179
+ ]),
1180
+ _: 1
1336
1181
  }),
1337
- D(l(Z), {
1338
- onClick: g,
1182
+ D(a(ee), {
1183
+ onClick: m,
1339
1184
  icon: "icon-reset"
1340
1185
  }, {
1341
- default: x(() => _[1] || (_[1] = [
1342
- Y("重置")
1343
- ])),
1344
- _: 1,
1345
- __: [1]
1186
+ default: x(() => [
1187
+ G(M(p.$t("webui.common.reset")), 1)
1188
+ ]),
1189
+ _: 1
1346
1190
  })
1347
1191
  ]),
1348
1192
  _: 1
1349
1193
  })
1350
1194
  ]),
1351
1195
  _: 1
1352
- })) : w("", !0)
1196
+ })) : k("", !0)
1353
1197
  ];
1354
1198
  }),
1355
1199
  _: 3
1356
1200
  })), [
1357
- [$, s]
1358
- ]) : w("", !0);
1201
+ [$, r]
1202
+ ]) : k("", !0);
1359
1203
  };
1360
1204
  }
1361
- }), Ga = /* @__PURE__ */ I({
1205
+ }), za = /* @__PURE__ */ E({
1362
1206
  __name: "tableOperate",
1363
1207
  props: {
1364
1208
  record: {},
1365
1209
  gridCtrl: {}
1366
1210
  },
1367
- setup(r) {
1368
- const a = r, e = a.gridCtrl, t = K(() => de.currentRoute.value.path), n = [
1211
+ setup(d) {
1212
+ const l = d, e = l.gridCtrl, t = j(() => de.currentRoute.value.path), o = [
1369
1213
  {
1370
1214
  key: "Edit",
1371
- label: "编辑",
1215
+ label: F("webui.common.edit"),
1372
1216
  type: "primary",
1373
1217
  visible: !0,
1374
1218
  role: ["Super", "Admin"],
1375
1219
  permit: ":edit",
1376
- click: () => Je(e, a.record)
1220
+ click: () => Qe(e, l.record)
1377
1221
  },
1378
1222
  {
1379
1223
  key: "Delete",
1380
- label: "删除",
1224
+ label: F("webui.common.delete"),
1381
1225
  type: "primary",
1382
1226
  visible: !0,
1383
1227
  danger: !0,
1384
1228
  role: ["Super", "Admin"],
1385
1229
  permit: ":delete",
1386
1230
  confirm: !0,
1387
- confirmText: "是否删除此记录?",
1388
- click: () => Xe(e, a.record)
1231
+ confirmText: F("webui.components.content.table.confirmDelete"),
1232
+ click: () => Je(e, l.record)
1389
1233
  }
1390
- ], { buttons: i, menus: o } = Se(n, 0, e.operates), f = (c) => {
1391
- if (typeof c.disabled == "boolean")
1392
- return c.disabled;
1393
- if (typeof c.disabled == "function")
1394
- return G(c, a.record) ?? !1;
1395
- if (a.record.hasOwnProperty(e.statusKey))
1396
- switch (c.key) {
1234
+ ], { buttons: n, menus: s } = Ae(o, 0, e.operates), f = (u) => {
1235
+ if (typeof u.disabled == "boolean")
1236
+ return u.disabled;
1237
+ if (typeof u.disabled == "function")
1238
+ return W(u, l.record) ?? !1;
1239
+ if (l.record.hasOwnProperty(e.statusKey))
1240
+ switch (u.key) {
1397
1241
  case "Edit":
1398
- return !a.record[e.statusKey];
1242
+ return !l.record[e.statusKey];
1399
1243
  // 启用时可编辑,停用时不可编辑
1400
1244
  case "Delete":
1401
- return !!a.record[e.statusKey];
1245
+ return !!l.record[e.statusKey];
1402
1246
  }
1403
1247
  return !1;
1404
1248
  };
1405
- return (c, u) => {
1406
- const v = oe("auth");
1407
- return d(), k(l(ye), { theme: {
1249
+ return (u, c) => {
1250
+ const v = ne("auth");
1251
+ return i(), _(a(xe), { theme: {
1408
1252
  token: {
1409
1253
  fontSize: 13
1410
1254
  }
1411
1255
  } }, {
1412
1256
  default: x(() => [
1413
- D(l(ce), null, {
1257
+ D(a(ce), null, {
1414
1258
  default: x(() => [
1415
- (d(!0), b(E, null, j(l(i), (s) => (d(), b(E, {
1416
- key: s.key
1259
+ (i(!0), y(L, null, Y(a(n), (r) => (i(), y(L, {
1260
+ key: r.key
1417
1261
  }, [
1418
- l(Q)(s, a.record) ? (d(), k(l(ct), {
1262
+ a(J)(r, l.record) ? (i(), _(a(ct), {
1419
1263
  key: 0,
1420
- disabled: f(s) || !s.confirm,
1421
- cancelText: "",
1422
- okText: "",
1423
- title: s.confirmText,
1264
+ disabled: f(r) || !r.confirm,
1265
+ cancelText: a(F)("webui.common.no"),
1266
+ okText: a(F)("webui.common.yes"),
1267
+ title: r.confirmText,
1424
1268
  okButtonProps: { size: "small" },
1425
1269
  cancelButtonProps: { size: "small" },
1426
- onConfirm: (g) => l(J)(s, l(e).page, l(e), a.record, !0)
1270
+ onConfirm: (m) => a(X)(r, a(e).page, a(e), l.record, !0)
1427
1271
  }, {
1428
1272
  default: x(() => [
1429
- l(Q)(s, a.record) ? H((d(), k(l(pt), {
1430
- key: s.key,
1431
- type: s.type ?? "text",
1432
- danger: s.danger,
1433
- disabled: f(s),
1434
- onClick: (g) => l(J)(s, l(e).page, l(e), a.record),
1273
+ a(J)(r, l.record) ? Q((i(), _(a(pt), {
1274
+ key: r.key,
1275
+ type: r.type ?? "text",
1276
+ danger: r.danger,
1277
+ disabled: f(r),
1278
+ onClick: (m) => a(X)(r, a(e).page, a(e), l.record),
1435
1279
  size: "small",
1436
1280
  style: Oe({
1437
- padding: s.type ?? "0px 4px"
1281
+ padding: r.type ?? "0px 4px"
1438
1282
  })
1439
1283
  }, {
1440
1284
  default: x(() => [
1441
- Y(M(s.label), 1)
1285
+ G(M(r.label), 1)
1442
1286
  ]),
1443
1287
  _: 2
1444
1288
  }, 1032, ["type", "danger", "disabled", "onClick", "style"])), [
1445
- [v, { url: t.value, role: s.role, permit: s.permit }]
1446
- ]) : w("", !0)
1289
+ [v, { url: t.value, role: r.role, permit: r.permit }]
1290
+ ]) : k("", !0)
1447
1291
  ]),
1448
1292
  _: 2
1449
- }, 1032, ["disabled", "title", "onConfirm"])) : w("", !0)
1293
+ }, 1032, ["disabled", "cancelText", "okText", "title", "onConfirm"])) : k("", !0)
1450
1294
  ], 64))), 128)),
1451
- c.record[l(e).statusKey] == 1 ? (d(), k(l(ye), {
1295
+ u.record[a(e).statusKey] == 1 ? (i(), _(a(xe), {
1452
1296
  key: 0,
1453
1297
  autoInsertSpaceInButton: !1
1454
1298
  }, {
1455
1299
  default: x(() => [
1456
- l(o).length > 0 ? (d(), k(l(dt), {
1300
+ a(s).length > 0 ? (i(), _(a(dt), {
1457
1301
  key: 0,
1458
1302
  size: "small"
1459
1303
  }, {
1460
1304
  overlay: x(() => [
1461
- D(l(we), null, {
1305
+ D(a(Ce), null, {
1462
1306
  default: x(() => [
1463
- (d(!0), b(E, null, j(l(o), (s) => (d(), b(E, {
1464
- key: s.key
1307
+ (i(!0), y(L, null, Y(a(s), (r) => (i(), y(L, {
1308
+ key: r.key
1465
1309
  }, [
1466
- l(Q)(s, a.record) ? H((d(), k(l(Ce), {
1310
+ a(J)(r, l.record) ? Q((i(), _(a(Se), {
1467
1311
  key: 0,
1468
- disabled: f(s),
1469
- onClick: (g) => l(J)(s, l(e).page, l(e), a.record)
1312
+ disabled: f(r),
1313
+ onClick: (m) => a(X)(r, a(e).page, a(e), l.record)
1470
1314
  }, {
1471
1315
  default: x(() => [
1472
- Y(M(s.label), 1)
1316
+ G(M(r.label), 1)
1473
1317
  ]),
1474
1318
  _: 2
1475
1319
  }, 1032, ["disabled", "onClick"])), [
1476
- [v, { url: t.value, role: s.role, permit: s.permit }]
1477
- ]) : w("", !0)
1320
+ [v, { url: t.value, role: r.role, permit: r.permit }]
1321
+ ]) : k("", !0)
1478
1322
  ], 64))), 128))
1479
1323
  ]),
1480
1324
  _: 1
1481
1325
  })
1482
1326
  ]),
1483
1327
  default: x(() => [
1484
- u[0] || (u[0] = Y(" 更多 "))
1328
+ G(M(a(F)("webui.components.content.table.more")) + " ", 1)
1485
1329
  ]),
1486
- _: 1,
1487
- __: [0]
1488
- })) : w("", !0)
1330
+ _: 1
1331
+ })) : k("", !0)
1489
1332
  ]),
1490
1333
  _: 1
1491
- })) : w("", !0)
1334
+ })) : k("", !0)
1492
1335
  ]),
1493
1336
  _: 1
1494
1337
  })
@@ -1497,7 +1340,7 @@ const or = async (r, a) => {
1497
1340
  });
1498
1341
  };
1499
1342
  }
1500
- }), hr = /* @__PURE__ */ I({
1343
+ }), cr = /* @__PURE__ */ E({
1501
1344
  inheritAttrs: !1,
1502
1345
  __name: "index",
1503
1346
  props: {
@@ -1509,215 +1352,215 @@ const or = async (r, a) => {
1509
1352
  scroll: {},
1510
1353
  statusDisabled: {}
1511
1354
  },
1512
- setup(r) {
1513
- const a = r, e = ue(), t = a.gridCtrl, n = K(() => de.currentRoute.value.path);
1355
+ setup(d) {
1356
+ const l = d, e = ue(), t = l.gridCtrl, o = j(() => de.currentRoute.value.path);
1514
1357
  t && (t.pageNo.value = 1, t.total.value = 0, t.pageSize.value = t.pageSize.value);
1515
- const i = C(t.pageSize.value), o = C(t.pageNo.value), f = C([]), c = C({
1358
+ const n = C(t.pageSize.value), s = C(t.pageNo.value), f = C([]), u = C({
1516
1359
  total: 0,
1517
1360
  current: 1,
1518
- pageSize: i.value,
1519
- showTotal: (p) => `共 ${p} 条记录`,
1520
- onChange: (p, _) => {
1521
- c.value !== !1 && (c.value.current = p, c.value.pageSize = _), i.value = _, o.value = p, t && (t.pageNo.value = p, t.pageSize.value = _, t.remotePage && me(t));
1361
+ pageSize: n.value,
1362
+ showTotal: (p) => F("webui.common.total", [p]),
1363
+ onChange: (p, w) => {
1364
+ u.value !== !1 && (u.value.current = p, u.value.pageSize = w), n.value = w, s.value = p, t && (t.pageNo.value = p, t.pageSize.value = w, t.remotePage && he(t));
1522
1365
  },
1523
- ...a.pagination === !1 ? {} : a.pagination
1366
+ ...l.pagination === !1 ? {} : l.pagination
1524
1367
  });
1525
- a.pagination === !1 && (c.value = !1), L(
1368
+ l.pagination === !1 && (u.value = !1), U(
1526
1369
  () => t.tableData.value,
1527
1370
  (p) => {
1528
- p && (f.value = p, c.value !== !1 && (c.value.total = t.total.value ?? 0, c.value.current = t.pageNo.value ?? 1, c.value.pageSize = t.pageSize.value ?? 10));
1371
+ p && (f.value = p, u.value !== !1 && (u.value.total = t.total.value ?? 0, u.value.current = t.pageNo.value ?? 1, u.value.pageSize = t.pageSize.value ?? 10));
1529
1372
  },
1530
1373
  { immediate: !0 }
1531
- ), L(
1532
- () => a.tableData,
1374
+ ), U(
1375
+ () => l.tableData,
1533
1376
  (p) => {
1534
- p && (f.value = p, c.value !== !1 && (c.value.total = p.length, c.value.current = t.pageNo.value ?? 1, c.value.pageSize = t.pageSize.value ?? 10));
1377
+ p && (f.value = p, u.value !== !1 && (u.value.total = p.length, u.value.current = t.pageNo.value ?? 1, u.value.pageSize = t.pageSize.value ?? 10));
1535
1378
  },
1536
1379
  { immediate: !0 }
1537
1380
  );
1538
- const u = C(t.columns.value), v = {
1539
- onChange: (p, _) => {
1540
- t && (t.selectKeys.value = p, t.selectRows.value = _);
1381
+ const c = C(t.columns.value), v = {
1382
+ onChange: (p, w) => {
1383
+ t && (t.selectKeys.value = p, t.selectRows.value = w);
1541
1384
  },
1542
1385
  columnWidth: "30px",
1543
1386
  getCheckboxProps: (p) => ({
1544
1387
  disabled: p.Enabled === 0
1545
1388
  }),
1546
- ...a.rowSelection
1547
- }, s = C(v);
1548
- L(
1389
+ ...l.rowSelection
1390
+ }, r = C(v);
1391
+ U(
1549
1392
  () => t.selectable.value,
1550
1393
  (p) => {
1551
- t && (s.value = p ? v : void 0);
1394
+ t && (r.value = p ? v : void 0);
1552
1395
  },
1553
1396
  { immediate: !0 }
1554
- ), L(
1397
+ ), U(
1555
1398
  () => t.columns.value,
1556
1399
  () => {
1557
- u.value = Ze(t.columns.value);
1400
+ c.value = Xe(t.columns.value);
1558
1401
  },
1559
1402
  { deep: !0, immediate: !0 }
1560
1403
  );
1561
- const g = C(!1);
1404
+ const m = C(!1);
1562
1405
  return ke(() => {
1563
- g.value && t && t.autoload && (t.reload.value = !0);
1564
- }), _e(re.GridControl, t), ae(async () => {
1565
- var p, _, $, y, S;
1566
- t.page && ((p = t.gridUrl) != null && p.url) && (((_ = t.gridUrl) == null ? void 0 : _.url) === (($ = t.page.urls.list) == null ? void 0 : $.url) && (t.remotePage = !1), ((y = t.gridUrl) == null ? void 0 : y.url) === ((S = t.page.urls.find) == null ? void 0 : S.url) && (t.remotePage = !0)), t.tableData.value ? (f.value = t.tableData.value, t.total.value = f.value.length, c.value !== !1 && (c.value.total = t.total.value ?? 0)) : t.autoload !== !1 && (t.remotePage ? f.value = (await me(t)).rows : f.value = await et(t)), setTimeout(() => {
1567
- g.value = !0;
1406
+ m.value && t && t.autoload && (t.reload.value = !0);
1407
+ }), we(se.GridControl, t), ae(async () => {
1408
+ var p, w, $, b, S;
1409
+ t.page && ((p = t.gridUrl) != null && p.url) && (((w = t.gridUrl) == null ? void 0 : w.url) === (($ = t.page.urls.list) == null ? void 0 : $.url) && (t.remotePage = !1), ((b = t.gridUrl) == null ? void 0 : b.url) === ((S = t.page.urls.find) == null ? void 0 : S.url) && (t.remotePage = !0)), t.tableData.value ? (f.value = t.tableData.value, t.total.value = f.value.length, u.value !== !1 && (u.value.total = t.total.value ?? 0)) : t.autoload !== !1 && (t.remotePage ? f.value = (await he(t)).rows : f.value = await Ze(t)), setTimeout(() => {
1410
+ m.value = !0;
1568
1411
  }, 50);
1569
- }), (p, _) => {
1570
- var y, S;
1571
- const $ = oe("auth");
1572
- return d(), b(E, null, [
1573
- (y = l(t).buttons) != null && y.value.length || (S = l(t).tools) != null && S.length ? (d(), k(kt, {
1412
+ }), (p, w) => {
1413
+ var b, S;
1414
+ const $ = ne("auth");
1415
+ return i(), y(L, null, [
1416
+ (b = a(t).buttons) != null && b.value.length || (S = a(t).tools) != null && S.length ? (i(), _(_t, {
1574
1417
  key: 0,
1575
- "grid-ctrl": l(t),
1576
- "editor-ctrl": l(t).editor
1577
- }, null, 8, ["grid-ctrl", "editor-ctrl"])) : w("", !0),
1578
- g.value ? (d(), k(l(ft), U({
1418
+ "grid-ctrl": a(t),
1419
+ "editor-ctrl": a(t).editor
1420
+ }, null, 8, ["grid-ctrl", "editor-ctrl"])) : k("", !0),
1421
+ m.value ? (i(), _(a(ft), A({
1579
1422
  key: 1,
1580
1423
  class: "w-full min-h-[480px]",
1581
- "row-key": a.primaryKey ?? l(t).primaryKey ?? "Id",
1424
+ "row-key": l.primaryKey ?? a(t).primaryKey ?? "Id",
1582
1425
  "data-source": f.value,
1583
- loading: l(t).isGridLoading.value,
1584
- columns: u.value,
1585
- pagination: c.value,
1586
- "row-selection": s.value,
1587
- scroll: a.scroll || { x: 700 },
1588
- size: l(t).tableSize.value,
1426
+ loading: a(t).isGridLoading.value,
1427
+ columns: c.value,
1428
+ pagination: u.value,
1429
+ "row-selection": r.value,
1430
+ scroll: l.scroll || { x: 700 },
1431
+ size: a(t).tableSize.value,
1589
1432
  bordered: ""
1590
- }, l(e)), {
1591
- bodyCell: x((m) => {
1433
+ }, a(e)), {
1434
+ bodyCell: x((g) => {
1592
1435
  var h, N;
1593
1436
  return [
1594
- O(p.$slots, "bodyCell", {
1595
- column: m == null ? void 0 : m.column,
1596
- record: m == null ? void 0 : m.record
1437
+ R(p.$slots, "bodyCell", {
1438
+ column: g == null ? void 0 : g.column,
1439
+ record: g == null ? void 0 : g.record
1597
1440
  }),
1598
- l(t) && ((h = m == null ? void 0 : m.column) == null ? void 0 : h.dataIndex) === "enabled" ? H((d(), k(tt, {
1441
+ a(t) && ((h = g == null ? void 0 : g.column) == null ? void 0 : h.dataIndex) === "enabled" ? Q((i(), _(et, {
1599
1442
  key: 0,
1600
- checked: m.record[l(t).statusKey],
1601
- "onUpdate:checked": (R) => m.record[l(t).statusKey] = R,
1602
- disabled: p.statusDisabled ? p.statusDisabled(m.record) : !1,
1603
- data: l(Ne).EnableDisable,
1604
- onClick: (R) => l(at)(l(t), m.record),
1443
+ checked: g.record[a(t).statusKey],
1444
+ "onUpdate:checked": (K) => g.record[a(t).statusKey] = K,
1445
+ disabled: p.statusDisabled ? p.statusDisabled(g.record) : !1,
1446
+ data: a(Be).EnableDisable,
1447
+ onClick: (K) => a(tt)(a(t), g.record),
1605
1448
  class: B([
1606
1449
  "w-[58px]",
1607
- p.statusDisabled && p.statusDisabled(m.record) ? "cursor-not-allowed disabled" : ""
1450
+ p.statusDisabled && p.statusDisabled(g.record) ? "cursor-not-allowed disabled" : ""
1608
1451
  ]),
1609
- loading: m == null ? void 0 : m.record.isLoading
1452
+ loading: g == null ? void 0 : g.record.isLoading
1610
1453
  }, null, 8, ["checked", "onUpdate:checked", "disabled", "data", "onClick", "class", "loading"])), [
1611
- [$, { url: n.value, role: ["Super", "Admin"], permit: ":enabled" }, "disable"]
1612
- ]) : w("", !0),
1613
- l(t) && ((N = m == null ? void 0 : m.column) == null ? void 0 : N.dataIndex) === "operation" ? O(p.$slots, "operate", {
1454
+ [$, { url: o.value, role: ["Super", "Admin"], permit: ":enabled" }, "disable"]
1455
+ ]) : k("", !0),
1456
+ a(t) && ((N = g == null ? void 0 : g.column) == null ? void 0 : N.dataIndex) === "operation" ? R(p.$slots, "operate", {
1614
1457
  key: 1,
1615
- record: m == null ? void 0 : m.record
1458
+ record: g == null ? void 0 : g.record
1616
1459
  }, () => [
1617
- D(Ga, {
1618
- record: m == null ? void 0 : m.record,
1619
- "grid-ctrl": l(t)
1460
+ D(za, {
1461
+ record: g == null ? void 0 : g.record,
1462
+ "grid-ctrl": a(t)
1620
1463
  }, null, 8, ["record", "grid-ctrl"])
1621
- ]) : w("", !0)
1464
+ ]) : k("", !0)
1622
1465
  ];
1623
1466
  }),
1624
1467
  _: 3
1625
- }, 16, ["row-key", "data-source", "loading", "columns", "pagination", "row-selection", "scroll", "size"])) : w("", !0)
1468
+ }, 16, ["row-key", "data-source", "loading", "columns", "pagination", "row-selection", "scroll", "size"])) : k("", !0)
1626
1469
  ], 64);
1627
1470
  };
1628
1471
  }
1629
- }), Wa = { class: "flex items-center" }, qa = ["onClick"], Ha = {
1472
+ }), Oa = { class: "flex items-center" }, Ra = ["onClick"], Ka = {
1630
1473
  key: 1,
1631
1474
  class: "w-[1px] h-[16px] bg-[#d9d9d9] mx-[8px]"
1632
- }, Ee = /* @__PURE__ */ I({
1475
+ }, Ee = /* @__PURE__ */ E({
1633
1476
  __name: "groupTools",
1634
1477
  props: {
1635
1478
  groupTools: {},
1636
1479
  groupClass: {}
1637
1480
  },
1638
- setup(r) {
1639
- const a = (e, t) => {
1640
- t.mode === "toggle" && (t.selected = t.selected === e.key ? void 0 : e.key), J(e), e.click && typeof e.click == "function" && e.click(e);
1481
+ setup(d) {
1482
+ const l = (e, t) => {
1483
+ t.mode === "toggle" && (t.selected = t.selected === e.key ? void 0 : e.key), X(e), e.click && typeof e.click == "function" && e.click(e);
1641
1484
  };
1642
- return (e, t) => (d(), b("div", Wa, [
1643
- (d(!0), b(E, null, j(e.groupTools, (n, i) => (d(), b(E, { key: i }, [
1644
- n.type === "tools" ? (d(), b("div", {
1485
+ return (e, t) => (i(), y("div", Oa, [
1486
+ (i(!0), y(L, null, Y(e.groupTools, (o, n) => (i(), y(L, { key: n }, [
1487
+ o.type === "tools" ? (i(), y("div", {
1645
1488
  key: 0,
1646
1489
  class: B([
1647
1490
  "inline-flex",
1648
1491
  e.groupClass || "",
1649
- n.class || ""
1492
+ o.class || ""
1650
1493
  ])
1651
1494
  }, [
1652
- (d(!0), b(E, null, j(n.tools, (o, f) => {
1653
- var c, u;
1654
- return d(), b(E, {
1655
- key: o.key
1495
+ (i(!0), y(L, null, Y(o.tools, (s, f) => {
1496
+ var u, c;
1497
+ return i(), y(L, {
1498
+ key: s.key
1656
1499
  }, [
1657
- l(Q)(o) && !o.children && !o.component ? (d(), k(l(Z), U({
1500
+ a(J)(s) && !s.children && !s.component ? (i(), _(a(ee), A({
1658
1501
  key: 0,
1659
1502
  class: [
1660
- n.mode === "toggle" && n.selected === o.key ? "px-[8px] py-[2px] relative border-[#1890ff] bg-[#1890ff] text-white rounded-none" : "px-[8px] py-[2px] relative border-[#ccc] bg-[#fcfcfc] rounded-none text-[#666]",
1503
+ o.mode === "toggle" && o.selected === s.key ? "px-[8px] py-[2px] relative border-[#1890ff] bg-[#1890ff] text-white rounded-none" : "px-[8px] py-[2px] relative border-[#ccc] bg-[#fcfcfc] rounded-none text-[#666]",
1661
1504
  "hover:z-10 hover:border-[#666]",
1662
1505
  f === 0 ? "rounded-l-[5px] ml-0" : "-ml-[1px]",
1663
- f === (((c = n.tools) == null ? void 0 : c.length) || 0) - 1 ? "rounded-r-[5px]" : "",
1664
- o.class || "",
1665
- o.display === "icon" ? "px-[6px]" : "",
1666
- o.display === "text" ? "px-[8px]" : ""
1506
+ f === (((u = o.tools) == null ? void 0 : u.length) || 0) - 1 ? "rounded-r-[5px]" : "",
1507
+ s.class || "",
1508
+ s.display === "icon" ? "px-[6px]" : "",
1509
+ s.display === "text" ? "px-[8px]" : ""
1667
1510
  ],
1668
- type: o.type,
1669
- danger: o.danger,
1670
- disabled: l(G)(o),
1671
- tiptext: o.label
1672
- }, { ref_for: !0 }, o.props, {
1673
- onClick: (v) => a(o, n)
1511
+ type: s.type,
1512
+ danger: s.danger,
1513
+ disabled: a(W)(s),
1514
+ tiptext: s.label
1515
+ }, { ref_for: !0 }, s.props, {
1516
+ onClick: (v) => l(s, o)
1674
1517
  }), {
1675
1518
  default: x(() => [
1676
- o.display === "icon" && o.icon ? (d(), k(l(V), U({
1519
+ s.display === "icon" && s.icon ? (i(), _(a(V), A({
1677
1520
  key: 0,
1678
- icon: o.icon,
1679
- class: ["w-[18px] h-[18.5px]", o.iconClass]
1680
- }, { ref_for: !0 }, o.iconProps, { clickable: "" }), null, 16, ["icon", "class"])) : o.display === "text" && o.label ? (d(), b(E, { key: 1 }, [
1681
- Y(M(o.label), 1)
1682
- ], 64)) : (d(), b(E, { key: 2 }, [
1683
- o.icon ? (d(), k(l(V), U({
1521
+ icon: s.icon,
1522
+ class: ["w-[18px] h-[18.5px]", s.iconClass]
1523
+ }, { ref_for: !0 }, s.iconProps, { clickable: "" }), null, 16, ["icon", "class"])) : s.display === "text" && s.label ? (i(), y(L, { key: 1 }, [
1524
+ G(M(s.label), 1)
1525
+ ], 64)) : (i(), y(L, { key: 2 }, [
1526
+ s.icon ? (i(), _(a(V), A({
1684
1527
  key: 0,
1685
- icon: o.icon,
1686
- class: ["w-[18px] h-[18.5px] mr-[4px]", o.iconClass]
1687
- }, { ref_for: !0 }, o.iconProps, { clickable: "" }), null, 16, ["icon", "class"])) : w("", !0),
1688
- o.label ? (d(), b(E, { key: 1 }, [
1689
- Y(M(o.label), 1)
1690
- ], 64)) : w("", !0)
1528
+ icon: s.icon,
1529
+ class: ["w-[18px] h-[18.5px] mr-[4px]", s.iconClass]
1530
+ }, { ref_for: !0 }, s.iconProps, { clickable: "" }), null, 16, ["icon", "class"])) : k("", !0),
1531
+ s.label ? (i(), y(L, { key: 1 }, [
1532
+ G(M(s.label), 1)
1533
+ ], 64)) : k("", !0)
1691
1534
  ], 64))
1692
1535
  ]),
1693
1536
  _: 2
1694
- }, 1040, ["class", "type", "danger", "disabled", "tiptext", "onClick"])) : o.component ? (d(), b("div", {
1537
+ }, 1040, ["class", "type", "danger", "disabled", "tiptext", "onClick"])) : s.component ? (i(), y("div", {
1695
1538
  key: 1,
1696
1539
  class: B([
1697
- n.mode === "toggle" && n.selected === o.key ? "p-0 relative border-[#1890ff] bg-[#1890ff] text-white rounded-none flex justify-center items-center" : "p-0 relative border-[#ccc] bg-[#fcfcfc] rounded-none text-[#666] flex justify-center items-center",
1540
+ o.mode === "toggle" && o.selected === s.key ? "p-0 relative border-[#1890ff] bg-[#1890ff] text-white rounded-none flex justify-center items-center" : "p-0 relative border-[#ccc] bg-[#fcfcfc] rounded-none text-[#666] flex justify-center items-center",
1698
1541
  "hover:z-10 hover:border-[#666]",
1699
1542
  f === 0 ? "rounded-l-[5px] ml-0" : "-ml-[1px]",
1700
- f === (((u = n.tools) == null ? void 0 : u.length) || 0) - 1 ? "rounded-r-[5px]" : "",
1701
- o.class || "",
1702
- l(G)(o) ? "opacity-50 cursor-not-allowed" : "cursor-pointer"
1543
+ f === (((c = o.tools) == null ? void 0 : c.length) || 0) - 1 ? "rounded-r-[5px]" : "",
1544
+ s.class || "",
1545
+ a(W)(s) ? "opacity-50 cursor-not-allowed" : "cursor-pointer"
1703
1546
  ]),
1704
- onClick: (v) => !l(G)(o) && a(o, n)
1547
+ onClick: (v) => !a(W)(s) && l(s, o)
1705
1548
  }, [
1706
- (d(), k(st(o.component), U({ ref_for: !0 }, {
1707
- ...o.props,
1708
- disabled: l(G)(o)
1549
+ (i(), _(st(s.component), A({ ref_for: !0 }, {
1550
+ ...s.props,
1551
+ disabled: a(W)(s)
1709
1552
  }), null, 16))
1710
- ], 10, qa)) : w("", !0)
1553
+ ], 10, Ra)) : k("", !0)
1711
1554
  ], 64);
1712
1555
  }), 128))
1713
- ], 2)) : n.type === "split" ? (d(), b("div", Ha)) : n.type === "space" ? (d(), b("div", {
1556
+ ], 2)) : o.type === "split" ? (i(), y("div", Ka)) : o.type === "space" ? (i(), y("div", {
1714
1557
  key: 2,
1715
- class: B(n.width ? n.width : "flex-1")
1716
- }, null, 2)) : w("", !0)
1558
+ class: B(o.width ? o.width : "flex-1")
1559
+ }, null, 2)) : k("", !0)
1717
1560
  ], 64))), 128))
1718
1561
  ]));
1719
1562
  }
1720
- }), Qa = { class: "flex items-center gap-1" }, Ja = { class: "text-nowrap" }, br = /* @__PURE__ */ I({
1563
+ }), ja = { class: "flex items-center gap-1" }, Ya = { class: "text-nowrap" }, dr = /* @__PURE__ */ E({
1721
1564
  __name: "index",
1722
1565
  props: {
1723
1566
  treeCtrl: {},
@@ -1725,105 +1568,105 @@ const or = async (r, a) => {
1725
1568
  expandedKeys: {}
1726
1569
  },
1727
1570
  emits: ["select", "update:selectedKeys"],
1728
- setup(r, { emit: a }) {
1729
- const e = r, t = ue(), n = e.treeCtrl, i = C([]);
1730
- L(
1731
- () => n.data.value,
1571
+ setup(d, { emit: l }) {
1572
+ const e = d, t = ue(), o = e.treeCtrl, n = C([]);
1573
+ U(
1574
+ () => o.data.value,
1732
1575
  (v) => {
1733
1576
  if (v) {
1734
- i.value = n.fieldMap ? he(n.fieldMap, v) : v;
1735
- const s = Ft(i.value, f.value[0]);
1736
- if (s) {
1737
- const g = {
1577
+ n.value = o.fieldMap ? be(o.fieldMap, v) : v;
1578
+ const r = Et(n.value, f.value[0]);
1579
+ if (r) {
1580
+ const m = {
1738
1581
  event: "select",
1739
1582
  node: {
1740
1583
  // 根据你的TreeNode结构构建node对象
1741
- key: s.key,
1742
- title: s.title,
1584
+ key: r.key,
1585
+ title: r.title,
1743
1586
  checked: !0,
1744
- dataRef: s
1587
+ dataRef: r
1745
1588
  },
1746
1589
  selected: !0,
1747
- selectedNodes: [s]
1590
+ selectedNodes: [r]
1748
1591
  };
1749
- u(f.value, g);
1592
+ c(f.value, m);
1750
1593
  }
1751
1594
  }
1752
1595
  }
1753
1596
  );
1754
- const o = a, f = C([]);
1755
- L(
1597
+ const s = l, f = C([]);
1598
+ U(
1756
1599
  () => e.selectedKeys,
1757
1600
  (v) => {
1758
1601
  v && (f.value = v);
1759
1602
  },
1760
1603
  { immediate: !0 }
1761
1604
  );
1762
- const c = C(["-"]);
1763
- L(
1605
+ const u = C(["-"]);
1606
+ U(
1764
1607
  () => e.expandedKeys,
1765
1608
  (v) => {
1766
- v && (c.value = v);
1609
+ v && (u.value = v);
1767
1610
  },
1768
1611
  { immediate: !0 }
1769
1612
  );
1770
- const u = (v, s) => {
1771
- v.length === 0 && v.push(...f.value), v.length > 0 && (n.node.value = s == null ? void 0 : s.node.dataRef), f.value = v, o("update:selectedKeys", v), o("select", v, s);
1613
+ const c = (v, r) => {
1614
+ v.length === 0 && v.push(...f.value), v.length > 0 && (o.node.value = r == null ? void 0 : r.node.dataRef), f.value = v, s("update:selectedKeys", v), s("select", v, r);
1772
1615
  };
1773
1616
  return ae(() => {
1774
- n.fieldMap || (n.fieldMap = {
1617
+ o.fieldMap || (o.fieldMap = {
1775
1618
  label: "Name",
1776
1619
  key: "Id",
1777
1620
  value: "Id",
1778
1621
  icon: "Icon"
1779
- }), n.data.value ? i.value = he(n.fieldMap, n.data.value) : n.autoload && lt(n);
1780
- }), (v, s) => (d(), k(l(aa), U({
1622
+ }), o.data.value ? n.value = be(o.fieldMap, o.data.value) : o.autoload && at(o);
1623
+ }), (v, r) => (i(), _(a(ra), A({
1781
1624
  class: "w-full",
1782
1625
  "show-line": !0,
1783
- "tree-data": i.value,
1784
- "expanded-keys": c.value,
1785
- "onUpdate:expandedKeys": s[0] || (s[0] = (g) => c.value = g),
1626
+ "tree-data": n.value,
1627
+ "expanded-keys": u.value,
1628
+ "onUpdate:expandedKeys": r[0] || (r[0] = (m) => u.value = m),
1786
1629
  "selected-keys": f.value,
1787
- loading: l(n).isTreeLoading,
1788
- onSelect: u
1789
- }, l(t)), {
1790
- title: x(({ key: g, label: p, icon: _ }) => [
1791
- O(v.$slots, "title", {
1630
+ loading: a(o).isTreeLoading,
1631
+ onSelect: c
1632
+ }, a(t)), {
1633
+ title: x(({ key: m, label: p, icon: w }) => [
1634
+ R(v.$slots, "title", {
1792
1635
  label: p,
1793
- key: g,
1794
- icon: _
1636
+ key: m,
1637
+ icon: w
1795
1638
  }, () => [
1796
- F("div", Qa, [
1797
- D(l(V), { icon: _ }, null, 8, ["icon"]),
1798
- F("span", Ja, M(p), 1)
1639
+ I("div", ja, [
1640
+ D(a(V), { icon: w }, null, 8, ["icon"]),
1641
+ I("span", Ya, M(p), 1)
1799
1642
  ])
1800
1643
  ])
1801
1644
  ]),
1802
1645
  _: 3
1803
1646
  }, 16, ["tree-data", "expanded-keys", "selected-keys", "loading"]));
1804
1647
  }
1805
- }), Xa = { class: "relative h-full" }, Za = {
1648
+ }), Va = { class: "relative h-full" }, Ga = {
1806
1649
  key: 0,
1807
1650
  class: "h-full flex flex-col"
1808
- }, el = { class: "px-3 pt-3 pb-2 flex items-center justify-end gap-2" }, tl = {
1651
+ }, Wa = { class: "px-3 pt-3 pb-2 flex items-center justify-end gap-2" }, qa = {
1809
1652
  key: 0,
1810
1653
  class: "px-3 pt-3 pb-2"
1811
- }, al = { class: "flex-1 overflow-y-auto px-4 pb-4" }, ll = ["onClick"], rl = {
1654
+ }, Ha = { class: "flex-1 overflow-y-auto px-4 pb-4" }, Qa = ["onClick"], Ja = {
1812
1655
  key: 1,
1813
1656
  class: "text-xs font-semibold text-gray-700 mb-2 px-3 py-2 bg-gradient-to-r from-gray-50 to-gray-100 rounded-lg"
1814
- }, sl = { key: 2 }, ol = {
1657
+ }, Xa = { key: 2 }, Za = {
1815
1658
  key: 0,
1816
1659
  class: "grid grid-cols-3 gap-1.5 px-1"
1817
- }, nl = ["title", "draggable", "onClick", "onDragstart"], il = { class: "text-xs text-gray-700 font-medium text-center leading-tight truncate w-full group-hover:text-gray-900" }, ul = {
1660
+ }, el = ["title", "draggable", "onClick", "onDragstart"], tl = { class: "text-xs text-gray-700 font-medium text-center leading-tight truncate w-full group-hover:text-gray-900" }, al = {
1818
1661
  key: 1,
1819
1662
  class: "space-y-1.5"
1820
- }, cl = ["title", "draggable", "onClick", "onDragstart"], dl = { class: "flex-1 min-w-0" }, pl = { class: "font-medium text-gray-900 text-sm group-hover:text-gray-950 text-center" }, fl = {
1663
+ }, ll = ["title", "draggable", "onClick", "onDragstart"], rl = { class: "flex-1 min-w-0" }, sl = { class: "font-medium text-gray-900 text-sm group-hover:text-gray-950 text-center" }, ol = {
1821
1664
  key: 0,
1822
1665
  class: "text-xs text-gray-600 mt-0.5 truncate group-hover:text-gray-700 text-center"
1823
- }, vl = {
1666
+ }, nl = {
1824
1667
  key: 1,
1825
1668
  class: "relative h-full"
1826
- }, gl = { class: "pt-4 pb-2 flex justify-center" }, ml = { class: "overflow-y-auto flex flex-col items-center gap-3 pb-4" }, hl = ["title", "draggable", "onClick", "onDragstart"], yr = /* @__PURE__ */ I({
1669
+ }, il = { class: "pt-4 pb-2 flex justify-center" }, ul = { class: "overflow-y-auto flex flex-col items-center gap-3 pb-4" }, cl = ["title", "draggable", "onClick", "onDragstart"], pr = /* @__PURE__ */ E({
1827
1670
  __name: "index",
1828
1671
  props: {
1829
1672
  tools: {},
@@ -1843,326 +1686,337 @@ const or = async (r, a) => {
1843
1686
  onCollapseChange: {},
1844
1687
  dragConfig: {}
1845
1688
  },
1846
- setup(r) {
1847
- const a = r, e = C(""), t = C({}), n = K(() => Array.isArray(a.tools) && a.tools.length > 0 && "tools" in a.tools[0]), i = K(() => !a.tools || !Array.isArray(a.tools) ? [] : n.value ? a.tools : [{
1848
- id: "default-group",
1849
- name: "工具",
1850
- tools: a.tools
1851
- }]), o = K(() => {
1689
+ setup(d) {
1690
+ const l = d, e = C(""), t = C({}), o = j(() => Array.isArray(l.tools) && l.tools.length > 0 && "tools" in l.tools[0]), n = j(() => {
1691
+ if (!l.tools || !Array.isArray(l.tools))
1692
+ return [];
1693
+ if (o.value)
1694
+ return l.tools;
1695
+ const b = l.tools;
1696
+ return [{
1697
+ id: "default-group",
1698
+ name: F("webui.components.content.toolpanel.tool"),
1699
+ tools: b
1700
+ }];
1701
+ }), s = j(() => {
1852
1702
  if (!e.value.trim())
1853
- return i.value;
1854
- const y = e.value.toLowerCase(), S = i.value.map((m) => ({
1855
- ...m,
1856
- tools: m.tools.filter((h) => {
1857
- var z, A;
1858
- const N = (z = h.label) == null ? void 0 : z.toLowerCase().includes(y), R = (A = h.description) == null ? void 0 : A.toLowerCase().includes(y);
1859
- return N || R;
1703
+ return n.value;
1704
+ const b = e.value.toLowerCase(), S = n.value.map((g) => ({
1705
+ ...g,
1706
+ tools: g.tools.filter((h) => {
1707
+ var z, O;
1708
+ const N = (z = h.label) == null ? void 0 : z.toLowerCase().includes(b), K = (O = h.description) == null ? void 0 : O.toLowerCase().includes(b);
1709
+ return N || K;
1860
1710
  })
1861
- })).filter((m) => m.tools.length > 0);
1862
- return e.value.trim() && S.length > 0 ? [{
1863
- id: "search-results",
1864
- name: "搜索结果",
1865
- tools: S.flatMap((h) => h.tools)
1866
- }] : S;
1867
- }), f = K(() => a.collapsed ? a.width.collapsed : a.width.expanded), c = K(() => a.showModeToggle ? [{
1711
+ })).filter((g) => g.tools.length > 0);
1712
+ if (e.value.trim() && S.length > 0) {
1713
+ const g = S.flatMap((h) => h.tools);
1714
+ return [{
1715
+ id: "search-results",
1716
+ name: F("webui.components.content.toolpanel.searchResult"),
1717
+ tools: g
1718
+ }];
1719
+ }
1720
+ return S;
1721
+ }), f = j(() => l.collapsed ? l.width.collapsed : l.width.expanded), u = j(() => l.showModeToggle ? [{
1868
1722
  type: "tools",
1869
1723
  mode: "toggle",
1870
- selected: a.mode,
1724
+ selected: l.mode,
1871
1725
  tools: [
1872
1726
  {
1873
1727
  key: "list",
1874
- label: "列表",
1728
+ label: F("webui.components.content.toolpanel.list"),
1875
1729
  icon: "icon-datalist",
1876
1730
  display: "icon",
1877
- tiptext: "列表视图",
1731
+ tiptext: F("webui.components.content.toolpanel.listView"),
1878
1732
  click: () => {
1879
- var y;
1880
- (y = a.onModeChange) == null || y.call(a, "list");
1733
+ var b;
1734
+ (b = l.onModeChange) == null || b.call(l, "list");
1881
1735
  }
1882
1736
  },
1883
1737
  {
1884
1738
  key: "grid",
1885
- label: "网格",
1739
+ label: F("webui.components.content.toolpanel.grid"),
1886
1740
  icon: "icon-icon-list",
1887
1741
  display: "icon",
1888
- tiptext: "网格视图",
1742
+ tiptext: F("webui.components.content.toolpanel.gridView"),
1889
1743
  click: () => {
1890
- var y;
1891
- (y = a.onModeChange) == null || y.call(a, "grid");
1744
+ var b;
1745
+ (b = l.onModeChange) == null || b.call(l, "grid");
1892
1746
  }
1893
1747
  }
1894
1748
  ]
1895
- }] : []), u = K(() => [{
1749
+ }] : []), c = j(() => [{
1896
1750
  type: "tools",
1897
1751
  mode: "normal",
1898
1752
  tools: [
1899
1753
  {
1900
1754
  key: "collapse",
1901
- label: a.collapsed ? "展开" : "收起",
1755
+ label: l.collapsed ? F("webui.components.content.toolpanel.expand") : F("webui.components.content.toolpanel.collapse"),
1902
1756
  icon: "icon-menu",
1903
1757
  display: "icon",
1904
- tiptext: a.collapsed ? "展开面板" : "收起面板",
1758
+ tiptext: l.collapsed ? F("webui.components.content.toolpanel.expandPanel") : F("webui.components.content.toolpanel.collapsePanel"),
1905
1759
  // 添加特殊的点击处理
1906
1760
  click: () => {
1907
- var y;
1908
- (y = a.onCollapseChange) == null || y.call(a, !a.collapsed);
1761
+ var b;
1762
+ (b = l.onCollapseChange) == null || b.call(l, !l.collapsed);
1909
1763
  }
1910
1764
  }
1911
1765
  ]
1912
- }]), v = (y) => t.value[y] ?? !1, s = (y) => {
1913
- if (!a.allowGroupCollapse) return;
1914
- const S = !t.value[y];
1766
+ }]), v = (b) => t.value[b] ?? !1, r = (b) => {
1767
+ if (!l.allowGroupCollapse) return;
1768
+ const S = !t.value[b];
1915
1769
  t.value = {
1916
1770
  ...t.value,
1917
- [y]: S
1918
- }, console.log("切换分组折叠状态:", y, S);
1919
- }, g = (y, S) => {
1920
- var m;
1921
- G(y) || (J(y), (m = a.onToolClick) == null || m.call(a, y, S));
1922
- }, p = (y) => {
1771
+ [b]: S
1772
+ }, console.log("切换分组折叠状态:", b, S);
1773
+ }, m = (b, S) => {
1774
+ var g;
1775
+ W(b) || (X(b), (g = l.onToolClick) == null || g.call(l, b, S));
1776
+ }, p = (b) => {
1923
1777
  var S;
1924
- e.value = y, (S = a.onSearch) == null || S.call(a, y);
1925
- }, _ = (y, S) => {
1926
- var m, h;
1927
- (h = (m = a.dragConfig) == null ? void 0 : m.onDragStart) == null || h.call(m, y, S);
1928
- }, $ = (y) => {
1929
- var S, m;
1930
- (m = (S = a.dragConfig) == null ? void 0 : S.onDragEnd) == null || m.call(S, y);
1778
+ e.value = b, (S = l.onSearch) == null || S.call(l, b);
1779
+ }, w = (b, S) => {
1780
+ var g, h;
1781
+ (h = (g = l.dragConfig) == null ? void 0 : g.onDragStart) == null || h.call(g, b, S);
1782
+ }, $ = (b) => {
1783
+ var S, g;
1784
+ (g = (S = l.dragConfig) == null ? void 0 : S.onDragEnd) == null || g.call(S, b);
1931
1785
  };
1932
- return (y, S) => (d(), b("div", Xa, [
1933
- F("div", {
1786
+ return (b, S) => (i(), y("div", Va, [
1787
+ I("div", {
1934
1788
  class: B(["h-full bg-white border-r border-gray-200 transition-all duration-300 ease-in-out shadow-sm", f.value])
1935
1789
  }, [
1936
- a.collapsed ? (d(), b("div", vl, [
1937
- F("div", gl, [
1790
+ l.collapsed ? (i(), y("div", nl, [
1791
+ I("div", il, [
1938
1792
  D(Ee, {
1939
- "group-tools": u.value
1793
+ "group-tools": c.value
1940
1794
  }, null, 8, ["group-tools"])
1941
1795
  ]),
1942
- F("div", ml, [
1943
- (d(!0), b(E, null, j(o.value, (m) => (d(), b("div", {
1944
- key: m.id,
1796
+ I("div", ul, [
1797
+ (i(!0), y(L, null, Y(s.value, (g) => (i(), y("div", {
1798
+ key: g.id,
1945
1799
  class: "flex flex-col items-center gap-2"
1946
1800
  }, [
1947
- (d(!0), b(E, null, j(m.tools, (h) => {
1948
- var N, R;
1949
- return H((d(), b("div", U({
1801
+ (i(!0), y(L, null, Y(g.tools, (h) => {
1802
+ var N, K;
1803
+ return Q((i(), y("div", A({
1950
1804
  key: h.key,
1951
1805
  title: `${h.label}${h.description ? ": " + h.description : ""}`,
1952
1806
  class: ["w-12 h-12 flex items-center justify-center bg-gray-50 border border-gray-400 rounded-lg shadow-sm hover:border-blue-500 hover:shadow-md hover:bg-blue-50 transition-all duration-200 cursor-move group", [
1953
- l(G)(h) ? "opacity-50 cursor-not-allowed bg-gray-200" : "hover:scale-110",
1807
+ a(W)(h) ? "opacity-50 cursor-not-allowed bg-gray-200" : "hover:scale-110",
1954
1808
  h.class || "",
1955
- (N = y.dragConfig) != null && N.draggable ? "cursor-move" : ""
1809
+ (N = b.dragConfig) != null && N.draggable ? "cursor-move" : ""
1956
1810
  ]],
1957
- draggable: (R = y.dragConfig) == null ? void 0 : R.draggable,
1958
- onClick: (z) => h.click ? h.click(h, z) : g(h, z),
1959
- onDragstart: (z) => _(z, h),
1811
+ draggable: (K = b.dragConfig) == null ? void 0 : K.draggable,
1812
+ onClick: (z) => h.click ? h.click(h, z) : m(h, z),
1813
+ onDragstart: (z) => w(z, h),
1960
1814
  onDragend: S[5] || (S[5] = (z) => $(z))
1961
- }, { ref_for: !0 }, y.dragConfig), [
1962
- h.icon ? (d(), k(l(V), U({
1815
+ }, { ref_for: !0 }, b.dragConfig), [
1816
+ h.icon ? (i(), _(a(V), A({
1963
1817
  key: 0,
1964
1818
  icon: h.icon,
1965
1819
  class: ["w-7 h-7 text-blue-600 group-hover:text-blue-700 transition-colors", h.iconClass]
1966
- }, { ref_for: !0 }, h.iconProps), null, 16, ["icon", "class"])) : w("", !0)
1967
- ], 16, hl)), [
1968
- [Pe, l(Q)(h)]
1820
+ }, { ref_for: !0 }, h.iconProps), null, 16, ["icon", "class"])) : k("", !0)
1821
+ ], 16, cl)), [
1822
+ [Pe, a(J)(h)]
1969
1823
  ]);
1970
1824
  }), 128))
1971
1825
  ]))), 128))
1972
1826
  ])
1973
- ])) : (d(), b("div", Za, [
1974
- F("div", el, [
1975
- y.showModeToggle ? (d(), k(Ee, {
1827
+ ])) : (i(), y("div", Ga, [
1828
+ I("div", Wa, [
1829
+ b.showModeToggle ? (i(), _(Ee, {
1976
1830
  key: 0,
1977
- "group-tools": c.value
1978
- }, null, 8, ["group-tools"])) : w("", !0),
1979
- D(Ee, {
1980
1831
  "group-tools": u.value
1832
+ }, null, 8, ["group-tools"])) : k("", !0),
1833
+ D(Ee, {
1834
+ "group-tools": c.value
1981
1835
  }, null, 8, ["group-tools"])
1982
1836
  ]),
1983
- y.showSearch ? (d(), b("div", tl, [
1984
- D(l(wt), {
1837
+ b.showSearch ? (i(), y("div", qa, [
1838
+ D(a(wt), {
1985
1839
  value: e.value,
1986
1840
  "onUpdate:value": [
1987
- S[0] || (S[0] = (m) => e.value = m),
1988
- S[1] || (S[1] = (m) => p(m))
1841
+ S[0] || (S[0] = (g) => e.value = g),
1842
+ S[1] || (S[1] = (g) => p(g))
1989
1843
  ],
1990
- placeholder: "搜索工具...",
1844
+ placeholder: a(F)("webui.components.content.toolpanel.searchPlaceholder"),
1991
1845
  "allow-clear": "",
1992
1846
  size: "small",
1993
1847
  class: "w-full",
1994
- onPressEnter: S[2] || (S[2] = (m) => p(m.target.value))
1995
- }, null, 8, ["value"])
1996
- ])) : w("", !0),
1997
- F("div", al, [
1998
- (d(!0), b(E, null, j(o.value, (m) => (d(), b("div", {
1999
- key: m.id,
1848
+ onPressEnter: S[2] || (S[2] = (g) => p(g.target.value))
1849
+ }, null, 8, ["value", "placeholder"])
1850
+ ])) : k("", !0),
1851
+ I("div", Ha, [
1852
+ (i(!0), y(L, null, Y(s.value, (g) => (i(), y("div", {
1853
+ key: g.id,
2000
1854
  class: "mb-4 last:mb-0"
2001
1855
  }, [
2002
- y.allowGroupCollapse && m.id !== "search-results" && m.id !== "default-group" ? (d(), b("div", {
1856
+ b.allowGroupCollapse && g.id !== "search-results" && g.id !== "default-group" ? (i(), y("div", {
2003
1857
  key: 0,
2004
1858
  class: "flex items-center justify-between text-xs font-semibold text-gray-700 mb-2 px-3 py-2 bg-gradient-to-r from-gray-50 to-gray-100 rounded-lg cursor-pointer hover:from-gray-100 hover:to-gray-200 transition-all",
2005
- onClick: (h) => s(m.id)
1859
+ onClick: (h) => r(g.id)
2006
1860
  }, [
2007
- F("span", null, M(m.name), 1),
2008
- D(l(V), {
2009
- icon: v(m.id) ? "icon-chevron-right" : "icon-chevron-down",
1861
+ I("span", null, M(g.name), 1),
1862
+ D(a(V), {
1863
+ icon: v(g.id) ? "icon-chevron-right" : "icon-chevron-down",
2010
1864
  class: "w-3.5 h-3.5 transition-transform duration-200"
2011
1865
  }, null, 8, ["icon"])
2012
- ], 8, ll)) : m.id !== "search-results" && m.id !== "default-group" ? (d(), b("h3", rl, M(m.name), 1)) : w("", !0),
2013
- !v(m.id) || m.id === "search-results" || m.id === "default-group" ? (d(), b("div", sl, [
2014
- a.mode === "grid" ? (d(), b("div", ol, [
2015
- (d(!0), b(E, null, j(m.tools, (h) => {
2016
- var N, R, z;
2017
- return H((d(), b("div", U({
1866
+ ], 8, Qa)) : g.id !== "search-results" && g.id !== "default-group" ? (i(), y("h3", Ja, M(g.name), 1)) : k("", !0),
1867
+ !v(g.id) || g.id === "search-results" || g.id === "default-group" ? (i(), y("div", Xa, [
1868
+ l.mode === "grid" ? (i(), y("div", Za, [
1869
+ (i(!0), y(L, null, Y(g.tools, (h) => {
1870
+ var N, K, z;
1871
+ return Q((i(), y("div", A({
2018
1872
  key: h.key,
2019
1873
  title: `${h.label}${h.description ? ": " + h.description : ""}`,
2020
1874
  class: ["aspect-square flex flex-col items-center justify-center p-1.5 bg-gray-50 border border-solid border-gray-200 rounded-lg shadow-sm hover:border-blue-300 hover:shadow-lg hover:bg-blue-50 transition-all duration-200 cursor-move group", [
2021
- l(G)(h) ? "opacity-50 cursor-not-allowed bg-gray-200" : "hover:scale-105",
1875
+ a(W)(h) ? "opacity-50 cursor-not-allowed bg-gray-200" : "hover:scale-105",
2022
1876
  h.class || "",
2023
- (N = y.dragConfig) != null && N.draggable ? "cursor-move" : ""
1877
+ (N = b.dragConfig) != null && N.draggable ? "cursor-move" : ""
2024
1878
  ]],
2025
- draggable: (R = y.dragConfig) == null ? void 0 : R.draggable,
2026
- onClick: (A) => h.click ? h.click(h, A) : g(h, A),
2027
- onDragstart: (A) => _(A, h),
2028
- onDragend: S[3] || (S[3] = (A) => $(A))
2029
- }, { ref_for: !0 }, y.dragConfig), [
2030
- h.icon ? (d(), k(l(V), U({
1879
+ draggable: (K = b.dragConfig) == null ? void 0 : K.draggable,
1880
+ onClick: (O) => h.click ? h.click(h, O) : m(h, O),
1881
+ onDragstart: (O) => w(O, h),
1882
+ onDragend: S[3] || (S[3] = (O) => $(O))
1883
+ }, { ref_for: !0 }, b.dragConfig), [
1884
+ h.icon ? (i(), _(a(V), A({
2031
1885
  key: 0,
2032
1886
  icon: h.icon,
2033
1887
  class: ["w-9 h-9 mb-1 text-blue-600 group-hover:text-blue-700 transition-colors flex-shrink-0 !cursor-move", [
2034
1888
  h.iconClass,
2035
- (z = y.dragConfig) != null && z.draggable ? "cursor-move" : ""
1889
+ (z = b.dragConfig) != null && z.draggable ? "cursor-move" : ""
2036
1890
  ]]
2037
- }, { ref_for: !0 }, h.iconProps), null, 16, ["icon", "class"])) : w("", !0),
2038
- F("span", il, M(h.label), 1)
2039
- ], 16, nl)), [
2040
- [Pe, l(Q)(h)]
1891
+ }, { ref_for: !0 }, h.iconProps), null, 16, ["icon", "class"])) : k("", !0),
1892
+ I("span", tl, M(h.label), 1)
1893
+ ], 16, el)), [
1894
+ [Pe, a(J)(h)]
2041
1895
  ]);
2042
1896
  }), 128))
2043
- ])) : (d(), b("div", ul, [
2044
- (d(!0), b(E, null, j(m.tools, (h) => {
2045
- var N, R, z;
2046
- return H((d(), b("div", U({
1897
+ ])) : (i(), y("div", al, [
1898
+ (i(!0), y(L, null, Y(g.tools, (h) => {
1899
+ var N, K, z;
1900
+ return Q((i(), y("div", A({
2047
1901
  key: h.key,
2048
1902
  title: `${h.label}${h.description ? ": " + h.description : ""}`,
2049
1903
  class: ["flex items-center px-2.5 py-2 bg-gray-50 border border-gray-200 border-solid rounded-lg shadow-sm hover:border-blue-500 hover:shadow-md hover:bg-blue-50 transition-all duration-200 group", [
2050
- l(G)(h) ? "opacity-50 cursor-not-allowed bg-gray-200" : "hover:scale-[1.02]",
1904
+ a(W)(h) ? "opacity-50 cursor-not-allowed bg-gray-200" : "hover:scale-[1.02]",
2051
1905
  h.class || "",
2052
- (N = y.dragConfig) != null && N.draggable ? "cursor-move" : ""
1906
+ (N = b.dragConfig) != null && N.draggable ? "cursor-move" : ""
2053
1907
  ]],
2054
- draggable: (R = y.dragConfig) == null ? void 0 : R.draggable,
2055
- onClick: (A) => h.click ? h.click(h, A) : g(h, A),
2056
- onDragstart: (A) => _(A, h),
2057
- onDragend: S[4] || (S[4] = (A) => $(A))
2058
- }, { ref_for: !0 }, y.dragConfig), [
2059
- h.icon ? (d(), k(l(V), U({
1908
+ draggable: (K = b.dragConfig) == null ? void 0 : K.draggable,
1909
+ onClick: (O) => h.click ? h.click(h, O) : m(h, O),
1910
+ onDragstart: (O) => w(O, h),
1911
+ onDragend: S[4] || (S[4] = (O) => $(O))
1912
+ }, { ref_for: !0 }, b.dragConfig), [
1913
+ h.icon ? (i(), _(a(V), A({
2060
1914
  key: 0,
2061
1915
  icon: h.icon,
2062
1916
  class: ["w-7 h-7 mr-2.5 flex-shrink-0 text-blue-600 group-hover:text-blue-700 transition-colors", [
2063
1917
  h.iconClass,
2064
- (z = y.dragConfig) != null && z.draggable ? "!cursor-move" : ""
1918
+ (z = b.dragConfig) != null && z.draggable ? "!cursor-move" : ""
2065
1919
  ]]
2066
- }, { ref_for: !0 }, h.iconProps), null, 16, ["icon", "class"])) : w("", !0),
2067
- F("div", dl, [
2068
- F("div", pl, M(h.label), 1),
2069
- h.description ? (d(), b("div", fl, M(h.description), 1)) : w("", !0)
1920
+ }, { ref_for: !0 }, h.iconProps), null, 16, ["icon", "class"])) : k("", !0),
1921
+ I("div", rl, [
1922
+ I("div", sl, M(h.label), 1),
1923
+ h.description ? (i(), y("div", ol, M(h.description), 1)) : k("", !0)
2070
1924
  ])
2071
- ], 16, cl)), [
2072
- [Pe, l(Q)(h)]
1925
+ ], 16, ll)), [
1926
+ [Pe, a(J)(h)]
2073
1927
  ]);
2074
1928
  }), 128))
2075
1929
  ]))
2076
- ])) : w("", !0)
1930
+ ])) : k("", !0)
2077
1931
  ]))), 128))
2078
1932
  ])
2079
1933
  ]))
2080
1934
  ], 2)
2081
1935
  ]));
2082
1936
  }
2083
- }), xr = /* @__PURE__ */ ne(It, [["__scopeId", "data-v-87722b44"]]), bl = { class: "relative w-[248px] max-w-[248px]" }, yl = {
1937
+ }), fr = /* @__PURE__ */ ie(Lt, [["__scopeId", "data-v-87722b44"]]), dl = { class: "relative w-[248px] max-w-[248px]" }, pl = {
2084
1938
  key: 0,
2085
1939
  class: "absolute z-10 mt-[5px] mr-[10px] text-[#999] flex items-center"
2086
- }, xl = /* @__PURE__ */ I({
1940
+ }, fl = /* @__PURE__ */ E({
2087
1941
  inheritAttrs: !1,
2088
1942
  __name: "index",
2089
- props: Et,
1943
+ props: Ut,
2090
1944
  emits: ["change", "update:labels", "update:value"],
2091
- setup(r, { emit: a }) {
2092
- var $, y, S;
2093
- const e = r, t = ue(), n = ee(), i = Lt(e.url, e), o = e.optionCtrl ?? i.optionCtrl;
2094
- o.inputFactory = Wt(n);
1945
+ setup(d, { emit: l }) {
1946
+ var $, b, S;
1947
+ const e = d, t = ue(), o = te(), n = Mt(e.url, e), s = e.optionCtrl ?? n.optionCtrl;
1948
+ s.inputFactory = Ht(o);
2095
1949
  const f = C({
2096
- ...o == null ? void 0 : o.url,
2097
- url: (($ = o == null ? void 0 : o.url) == null ? void 0 : $.url) || "",
2098
- fieldMap: (o == null ? void 0 : o.fieldMap) || ((y = o == null ? void 0 : o.url) == null ? void 0 : y.fieldMap),
2099
- params: (o == null ? void 0 : o.params) || ((S = o == null ? void 0 : o.url) == null ? void 0 : S.params),
1950
+ ...s == null ? void 0 : s.url,
1951
+ url: (($ = s == null ? void 0 : s.url) == null ? void 0 : $.url) || "",
1952
+ fieldMap: (s == null ? void 0 : s.fieldMap) || ((b = s == null ? void 0 : s.url) == null ? void 0 : b.fieldMap),
1953
+ params: (s == null ? void 0 : s.params) || ((S = s == null ? void 0 : s.url) == null ? void 0 : S.params),
2100
1954
  loadingText: !1
2101
- }), { editorCtrl: c, errInfo: u, labelText: v } = n, s = C(t.placeholder);
2102
- L(
1955
+ }), { editorCtrl: u, errInfo: c, labelText: v } = o, r = C(t.placeholder);
1956
+ U(
2103
1957
  () => f.value.loading,
2104
- (m) => {
2105
- m ? s.value = "" : s.value || (s.value = "请选择" + v.value);
1958
+ (g) => {
1959
+ g ? r.value = "" : r.value || (r.value = "请选择" + v.value);
2106
1960
  },
2107
1961
  { immediate: !0 }
2108
1962
  );
2109
- const g = a;
2110
- n.inputEmit = g;
2111
- const p = C((o == null ? void 0 : o.options.value) || []);
2112
- o && L(
2113
- () => o.options.value,
2114
- (m) => {
2115
- p.value = m || [];
1963
+ const m = l;
1964
+ o.inputEmit = m;
1965
+ const p = C((s == null ? void 0 : s.options.value) || []);
1966
+ s && U(
1967
+ () => s.options.value,
1968
+ (g) => {
1969
+ p.value = g || [];
2116
1970
  },
2117
1971
  { immediate: !0, deep: !0 }
2118
1972
  );
2119
- const _ = (m, h) => {
1973
+ const w = (g, h) => {
2120
1974
  if (!h || h.length === 0) {
2121
- g("update:labels", []), g("update:value", []);
1975
+ m("update:labels", []), m("update:value", []);
2122
1976
  return;
2123
1977
  }
2124
- const N = h.map((A) => A.value), R = Nt(o, e, N), z = zt(R);
2125
- g("update:labels", z), g("update:value", N), u != null && u.value.errClass && c && se(c);
1978
+ const N = h.map((O) => O.value), K = zt(s, e, N), z = Ot(K);
1979
+ m("update:labels", z), m("update:value", N), c != null && c.value.errClass && u && oe(u);
2126
1980
  };
2127
1981
  return ke(() => {
2128
- o && o.autoload && (o.reload.value = !0);
1982
+ s && s.autoload && (s.reload.value = !0);
2129
1983
  }), ae(() => {
2130
1984
  f.value && !f.value.fieldMap && (f.value.fieldMap = {
2131
1985
  title: "Name",
2132
1986
  label: "Name",
2133
1987
  value: "Id",
2134
1988
  key: "Id"
2135
- }), o && Ut(o.autoload, o, e);
2136
- }), qt(() => {
2137
- o && Mt(o, e);
2138
- }), (m, h) => {
1989
+ }), s && At(s.autoload, s, e);
1990
+ }), Qt(() => {
1991
+ s && Bt(s, e);
1992
+ }), (g, h) => {
2139
1993
  var N;
2140
- return d(), b("div", bl, [
2141
- p.value.length ? w("", !0) : (d(), b("div", yl, [
2142
- D(l(Bt), { class: "text-[#555] mx-[5px] !ml-[10px] !w-4 !h-4" }),
2143
- h[0] || (h[0] = F("span", null, "数据加载中...", -1))
1994
+ return i(), y("div", dl, [
1995
+ p.value.length ? k("", !0) : (i(), y("div", pl, [
1996
+ D(a(Nt), { class: "text-[#555] mx-[5px] !ml-[10px] !w-4 !h-4" }),
1997
+ h[0] || (h[0] = I("span", null, "数据加载中...", -1))
2144
1998
  ])),
2145
- D(l(la), U({
1999
+ D(a(sa), A({
2146
2000
  options: p.value,
2147
- class: [(N = l(u)) == null ? void 0 : N.errClass],
2001
+ class: [(N = a(c)) == null ? void 0 : N.errClass],
2148
2002
  "allow-clear": !0,
2149
- placeholder: p.value.length > 0 ? "请选择" + l(v) : "",
2150
- onChange: _
2151
- }, l(t)), null, 16, ["options", "class", "placeholder"])
2003
+ placeholder: p.value.length > 0 ? "请选择" + a(v) : "",
2004
+ onChange: w
2005
+ }, a(t)), null, 16, ["options", "class", "placeholder"])
2152
2006
  ]);
2153
2007
  };
2154
2008
  }
2155
- }), _r = /* @__PURE__ */ ne(xl, [["__scopeId", "data-v-51ddfce3"]]), kr = /* @__PURE__ */ ne(At, [["__scopeId", "data-v-249ea772"]]);
2156
- function xe() {
2157
- return xe = Object.assign ? Object.assign.bind() : function(r) {
2158
- for (var a = 1; a < arguments.length; a++) {
2159
- var e = arguments[a];
2160
- for (var t in e) ({}).hasOwnProperty.call(e, t) && (r[t] = e[t]);
2009
+ }), vr = /* @__PURE__ */ ie(fl, [["__scopeId", "data-v-51ddfce3"]]), mr = /* @__PURE__ */ ie(Rt, [["__scopeId", "data-v-249ea772"]]);
2010
+ function _e() {
2011
+ return _e = Object.assign ? Object.assign.bind() : function(d) {
2012
+ for (var l = 1; l < arguments.length; l++) {
2013
+ var e = arguments[l];
2014
+ for (var t in e) ({}).hasOwnProperty.call(e, t) && (d[t] = e[t]);
2161
2015
  }
2162
- return r;
2163
- }, xe.apply(null, arguments);
2016
+ return d;
2017
+ }, _e.apply(null, arguments);
2164
2018
  }
2165
- const _l = {
2019
+ const vl = {
2166
2020
  locale: "zh_CN",
2167
2021
  today: "今天",
2168
2022
  now: "此刻",
@@ -2189,11 +2043,11 @@ const _l = {
2189
2043
  nextDecade: "下一年代",
2190
2044
  previousCentury: "上一世纪",
2191
2045
  nextCentury: "下一世纪"
2192
- }, kl = {
2046
+ }, ml = {
2193
2047
  placeholder: "请选择时间",
2194
2048
  rangePlaceholder: ["开始时间", "结束时间"]
2195
2049
  }, $e = {
2196
- lang: xe({
2050
+ lang: _e({
2197
2051
  placeholder: "请选择日期",
2198
2052
  yearPlaceholder: "请选择年份",
2199
2053
  quarterPlaceholder: "请选择季度",
@@ -2204,159 +2058,159 @@ const _l = {
2204
2058
  rangeMonthPlaceholder: ["开始月份", "结束月份"],
2205
2059
  rangeQuarterPlaceholder: ["开始季度", "结束季度"],
2206
2060
  rangeWeekPlaceholder: ["开始周", "结束周"]
2207
- }, _l),
2208
- timePickerLocale: xe({}, kl)
2061
+ }, vl),
2062
+ timePickerLocale: _e({}, ml)
2209
2063
  };
2210
2064
  $e.lang.ok = "确定";
2211
- const wr = /* @__PURE__ */ I({
2065
+ const gr = /* @__PURE__ */ E({
2212
2066
  __name: "index",
2213
2067
  props: {
2214
2068
  valueFormat: {}
2215
2069
  },
2216
- setup(r) {
2217
- const a = r, { editorCtrl: e, labelText: t, errInfo: n } = ee(), i = () => {
2218
- n != null && n.value.errClass && e && se(e);
2219
- }, o = C(a.valueFormat ?? "YYYY-MM-DD");
2220
- return (f, c) => {
2221
- var u;
2222
- return d(), k(l(ra), {
2223
- class: B(["w-full", [((u = l(n)) == null ? void 0 : u.errClass) === "error" ? "error !border-red-300 shadow-[0_0_3px_0px_#ff4d4f]" : ""]]),
2224
- placeholder: "请选择" + l(t),
2225
- locale: l($e),
2226
- valueFormat: o.value,
2227
- onBlur: i
2070
+ setup(d) {
2071
+ const l = d, { editorCtrl: e, labelText: t, errInfo: o } = te(), n = () => {
2072
+ o != null && o.value.errClass && e && oe(e);
2073
+ }, s = C(l.valueFormat ?? "YYYY-MM-DD");
2074
+ return (f, u) => {
2075
+ var c;
2076
+ return i(), _(a(oa), {
2077
+ class: B(["w-full", [((c = a(o)) == null ? void 0 : c.errClass) === "error" ? "error !border-red-300 shadow-[0_0_3px_0px_#ff4d4f]" : ""]]),
2078
+ placeholder: "请选择" + a(t),
2079
+ locale: a($e),
2080
+ valueFormat: s.value,
2081
+ onBlur: n
2228
2082
  }, null, 8, ["class", "placeholder", "locale", "valueFormat"]);
2229
2083
  };
2230
2084
  }
2231
- }), wt = /* @__PURE__ */ I({
2085
+ }), wt = /* @__PURE__ */ E({
2232
2086
  __name: "index",
2233
2087
  props: {
2234
2088
  value: {},
2235
2089
  undefValue: { type: Boolean, default: !1 }
2236
2090
  },
2237
2091
  emits: ["update:value"],
2238
- setup(r, { emit: a }) {
2239
- const { editorCtrl: e, labelText: t, errInfo: n } = ee(), i = () => {
2240
- n != null && n.value.errClass && e && se(e);
2241
- }, o = r, f = o.value === void 0 ? !0 : o.undefValue, c = a, u = C(o.value);
2242
- L(
2243
- () => o.value,
2244
- (s) => {
2245
- u.value = s;
2092
+ setup(d, { emit: l }) {
2093
+ const { t: e } = lt(), { editorCtrl: t, labelText: o, errInfo: n } = te(), s = () => {
2094
+ n != null && n.value.errClass && t && oe(t);
2095
+ }, f = d, u = f.value === void 0 ? !0 : f.undefValue, c = l, v = C(f.value);
2096
+ U(
2097
+ () => f.value,
2098
+ (m) => {
2099
+ v.value = m;
2246
2100
  },
2247
2101
  { immediate: !0 }
2248
2102
  // 立即同步初始值
2249
- ), L(
2250
- () => u.value,
2251
- (s) => {
2252
- if (u.value === "") {
2103
+ ), U(
2104
+ () => v.value,
2105
+ (m) => {
2106
+ if (v.value === "") {
2253
2107
  c("update:value", void 0);
2254
2108
  return;
2255
2109
  }
2256
- c("update:value", s);
2110
+ c("update:value", m);
2257
2111
  }
2258
2112
  );
2259
- const v = () => {
2260
- u.value === "" && (u.value = f ? void 0 : null);
2113
+ const r = () => {
2114
+ v.value === "" && (v.value = u ? void 0 : null);
2261
2115
  };
2262
- return (s, g) => {
2263
- var p, _;
2264
- return d(), k(l(fe), U({
2116
+ return (m, p) => {
2117
+ var w, $;
2118
+ return i(), _(a(fe), A({
2265
2119
  class: [
2266
- (p = l(n)) == null ? void 0 : p.errClass,
2267
- ((_ = l(n)) == null ? void 0 : _.errClass) === "error" && !s.$slots.addonBefore && !s.$slots.addonAfter ? "!border-red-300 shadow-[0_0_3px_0px_#ff4d4f]" : ""
2120
+ (w = a(n)) == null ? void 0 : w.errClass,
2121
+ (($ = a(n)) == null ? void 0 : $.errClass) === "error" && !m.$slots.addonBefore && !m.$slots.addonAfter ? "!border-red-300 shadow-[0_0_3px_0px_#ff4d4f]" : ""
2268
2122
  ],
2269
- value: u.value,
2270
- "onUpdate:value": g[0] || (g[0] = ($) => u.value = $),
2123
+ value: v.value,
2124
+ "onUpdate:value": p[0] || (p[0] = (b) => v.value = b),
2271
2125
  autocomplete: "new-password",
2272
2126
  "allow-clear": !0,
2273
- placeholder: "请输入" + l(t),
2274
- onBlur: i,
2275
- onChange: v
2276
- }, s.$attrs), ot({ _: 2 }, [
2277
- s.$slots.addonBefore ? {
2127
+ placeholder: a(e)("webui.form.inputPlaceholder", [a(o)]),
2128
+ onBlur: s,
2129
+ onChange: r
2130
+ }, m.$attrs), ot({ _: 2 }, [
2131
+ m.$slots.addonBefore ? {
2278
2132
  name: "addonBefore",
2279
2133
  fn: x(() => [
2280
- O(s.$slots, "addonBefore")
2134
+ R(m.$slots, "addonBefore")
2281
2135
  ]),
2282
2136
  key: "0"
2283
2137
  } : void 0,
2284
- s.$slots.addonAfter ? {
2138
+ m.$slots.addonAfter ? {
2285
2139
  name: "addonAfter",
2286
2140
  fn: x(() => [
2287
- O(s.$slots, "addonAfter")
2141
+ R(m.$slots, "addonAfter")
2288
2142
  ]),
2289
2143
  key: "1"
2290
2144
  } : void 0
2291
2145
  ]), 1040, ["class", "value", "placeholder"]);
2292
2146
  };
2293
2147
  }
2294
- }), wl = /* @__PURE__ */ I({
2148
+ }), gl = /* @__PURE__ */ E({
2295
2149
  __name: "inputIcon",
2296
2150
  props: {
2297
2151
  value: {}
2298
2152
  },
2299
2153
  emits: ["update:value"],
2300
- setup(r, { emit: a }) {
2301
- const e = r, t = a, n = C(void 0);
2302
- return L(
2154
+ setup(d, { emit: l }) {
2155
+ const e = d, t = l, o = C(void 0);
2156
+ return U(
2303
2157
  () => e.value,
2304
- (i) => {
2305
- n.value = i ?? void 0;
2158
+ (n) => {
2159
+ o.value = n ?? void 0;
2306
2160
  },
2307
2161
  { immediate: !0 }
2308
- ), L(
2309
- () => n.value,
2310
- (i) => {
2311
- t("update:value", i);
2162
+ ), U(
2163
+ () => o.value,
2164
+ (n) => {
2165
+ t("update:value", n);
2312
2166
  }
2313
- ), (i, o) => (d(), k(wt, U({
2314
- value: n.value,
2315
- "onUpdate:value": o[0] || (o[0] = (f) => n.value = f)
2316
- }, i.$attrs), {
2167
+ ), (n, s) => (i(), _(wt, A({
2168
+ value: o.value,
2169
+ "onUpdate:value": s[0] || (s[0] = (f) => o.value = f)
2170
+ }, n.$attrs), {
2317
2171
  addonBefore: x(() => [
2318
- D(l(V), {
2172
+ D(a(V), {
2319
2173
  class: "!w-4 !h-4",
2320
- icon: n.value
2174
+ icon: o.value
2321
2175
  }, null, 8, ["icon"])
2322
2176
  ]),
2323
2177
  _: 1
2324
2178
  }, 16, ["value"]));
2325
2179
  }
2326
- }), Cr = /* @__PURE__ */ ne(wl, [["__scopeId", "data-v-358b82ef"]]), Sr = /* @__PURE__ */ I({
2180
+ }), hr = /* @__PURE__ */ ie(gl, [["__scopeId", "data-v-358b82ef"]]), br = /* @__PURE__ */ E({
2327
2181
  __name: "inputPassword",
2328
- setup(r) {
2329
- const { editorCtrl: a, labelText: e, errInfo: t } = ee(), n = () => {
2330
- t != null && t.value.errClass && a && se(a);
2182
+ setup(d) {
2183
+ const { editorCtrl: l, labelText: e, errInfo: t } = te(), o = () => {
2184
+ t != null && t.value.errClass && l && oe(l);
2331
2185
  };
2332
- return (i, o) => {
2186
+ return (n, s) => {
2333
2187
  var f;
2334
- return d(), k(l(sa), U({
2335
- class: ((f = l(t)) == null ? void 0 : f.errClass) === "error" ? ["error", "!border-red-300", "shadow-[0_0_3px_0px_#ff4d4f]"] : "",
2188
+ return i(), _(a(na), A({
2189
+ class: ((f = a(t)) == null ? void 0 : f.errClass) === "error" ? ["error", "!border-red-300", "shadow-[0_0_3px_0px_#ff4d4f]"] : "",
2336
2190
  "allow-clear": !0,
2337
2191
  autocomplete: "new-password",
2338
- placeholder: "请输入" + l(e),
2339
- onBlur: n
2340
- }, i.$attrs), null, 16, ["class", "placeholder"]);
2192
+ placeholder: "请输入" + a(e),
2193
+ onBlur: o
2194
+ }, n.$attrs), null, 16, ["class", "placeholder"]);
2341
2195
  };
2342
2196
  }
2343
- }), $r = /* @__PURE__ */ I({
2197
+ }), yr = /* @__PURE__ */ E({
2344
2198
  __name: "inputNumber",
2345
- setup(r) {
2346
- const { editorCtrl: a, labelText: e, errInfo: t } = ee(), n = () => {
2347
- t != null && t.value.errClass && a && se(a);
2199
+ setup(d) {
2200
+ const { editorCtrl: l, labelText: e, errInfo: t } = te(), o = () => {
2201
+ t != null && t.value.errClass && l && oe(l);
2348
2202
  };
2349
- return (i, o) => {
2203
+ return (n, s) => {
2350
2204
  var f;
2351
- return d(), k(l(oa), U({
2352
- class: [[((f = l(t)) == null ? void 0 : f.errClass) === "error" ? "error !border-red-300 shadow-[0_0_3px_0px_#ff4d4f]" : ""], "w-[50%]"],
2353
- onBlur: n,
2205
+ return i(), _(a(ia), A({
2206
+ class: [[((f = a(t)) == null ? void 0 : f.errClass) === "error" ? "error !border-red-300 shadow-[0_0_3px_0px_#ff4d4f]" : ""], "w-[50%]"],
2207
+ onBlur: o,
2354
2208
  "allow-clear": !1,
2355
- placeholder: "请输入" + l(e)
2356
- }, i.$attrs), null, 16, ["class", "placeholder"]);
2209
+ placeholder: "请输入" + a(e)
2210
+ }, n.$attrs), null, 16, ["class", "placeholder"]);
2357
2211
  };
2358
2212
  }
2359
- }), Cl = { class: "flex flex-col gap-2" }, Sl = { key: 1 }, Tr = /* @__PURE__ */ I({
2213
+ }), hl = { class: "flex flex-col gap-2" }, bl = { key: 1 }, xr = /* @__PURE__ */ E({
2360
2214
  __name: "index",
2361
2215
  props: {
2362
2216
  value: {},
@@ -2367,108 +2221,108 @@ const wr = /* @__PURE__ */ I({
2367
2221
  valueHolder: {}
2368
2222
  },
2369
2223
  emits: ["update:value"],
2370
- setup(r, { emit: a }) {
2371
- const e = r, t = a, n = C(!(e.selectList && e.selectList.length > 0)), i = C([]);
2372
- let o = !1;
2224
+ setup(d, { emit: l }) {
2225
+ const e = d, t = l, o = C(!(e.selectList && e.selectList.length > 0)), n = C([]);
2226
+ let s = !1;
2373
2227
  const f = () => {
2374
- e.selectList && e.selectList.length > 0 ? i.value = e.selectList.map((s) => ({
2228
+ e.selectList && e.selectList.length > 0 ? n.value = e.selectList.map((r) => ({
2375
2229
  id: Date.now() + Math.random(),
2376
- text: s.text,
2377
- field: s.field,
2230
+ text: r.text,
2231
+ field: r.field,
2378
2232
  // 如果value中有对应的field,使用value中的值,否则使用selectList中的默认值
2379
- value: e.value[s.field] ?? s.value
2380
- })) : e.value && Object.keys(e.value).length > 0 ? i.value = Object.entries(e.value).filter(([s]) => !e.ignoreList || !e.ignoreList.includes(s)).map(([s, g]) => ({
2233
+ value: e.value[r.field] ?? r.value
2234
+ })) : e.value && Object.keys(e.value).length > 0 ? n.value = Object.entries(e.value).filter(([r]) => !e.ignoreList || !e.ignoreList.includes(r)).map(([r, m]) => ({
2381
2235
  id: Date.now() + Math.random(),
2382
- field: s,
2383
- value: g
2384
- })) : i.value = [];
2236
+ field: r,
2237
+ value: m
2238
+ })) : n.value = [];
2385
2239
  };
2386
- L(
2240
+ U(
2387
2241
  () => e.value,
2388
2242
  () => {
2389
- o || f(), o = !1;
2243
+ s || f(), s = !1;
2390
2244
  },
2391
2245
  { immediate: !0 }
2392
2246
  );
2393
- const c = () => {
2394
- let s;
2395
- e.selectList && e.selectList.length > 0 ? (s = { ...e.value }, i.value.forEach((g) => {
2396
- g.field && (s[g.field] = g.value);
2397
- })) : (s = i.value.reduce(
2398
- (g, p) => (p.field && (g[p.field] = p.value), g),
2247
+ const u = () => {
2248
+ let r;
2249
+ e.selectList && e.selectList.length > 0 ? (r = { ...e.value }, n.value.forEach((m) => {
2250
+ m.field && (r[m.field] = m.value);
2251
+ })) : (r = n.value.reduce(
2252
+ (m, p) => (p.field && (m[p.field] = p.value), m),
2399
2253
  {}
2400
- ), e.ignoreList && e.ignoreList.length > 0 && e.ignoreList.forEach((g) => {
2401
- e.value[g] !== void 0 && (s[g] = e.value[g]);
2402
- })), o = !0, t("update:value", s);
2403
- }, u = () => {
2404
- i.value.push({
2254
+ ), e.ignoreList && e.ignoreList.length > 0 && e.ignoreList.forEach((m) => {
2255
+ e.value[m] !== void 0 && (r[m] = e.value[m]);
2256
+ })), s = !0, t("update:value", r);
2257
+ }, c = () => {
2258
+ n.value.push({
2405
2259
  id: Date.now() + Math.random(),
2406
2260
  field: "",
2407
2261
  value: ""
2408
2262
  });
2409
2263
  }, v = () => {
2410
- c();
2264
+ u();
2411
2265
  };
2412
- return (s, g) => (d(), b("div", Cl, [
2413
- (d(!0), b(E, null, j(i.value, (p) => (d(), b("div", {
2266
+ return (r, m) => (i(), y("div", hl, [
2267
+ (i(!0), y(L, null, Y(n.value, (p) => (i(), y("div", {
2414
2268
  key: p.id,
2415
2269
  class: "flex items-center gap-2"
2416
2270
  }, [
2417
- F("div", {
2418
- class: B([s.fieldWidth ? `w-[${s.fieldWidth}%]` : "w-[33%]"])
2271
+ I("div", {
2272
+ class: B([r.fieldWidth ? `w-[${r.fieldWidth}%]` : "w-[33%]"])
2419
2273
  }, [
2420
- !s.selectList || s.selectList.length === 0 ? (d(), k(l(fe), {
2274
+ !r.selectList || r.selectList.length === 0 ? (i(), _(a(fe), {
2421
2275
  key: 0,
2422
2276
  value: p.field,
2423
- "onUpdate:value": (_) => p.field = _,
2277
+ "onUpdate:value": (w) => p.field = w,
2424
2278
  title: p.text || p.field,
2425
2279
  class: "w-full",
2426
- placeholder: p.text || s.labelHolder || "配置名",
2280
+ placeholder: p.text || r.labelHolder || "配置名",
2427
2281
  onInput: v,
2428
- disabled: !n.value
2429
- }, null, 8, ["value", "onUpdate:value", "title", "placeholder", "disabled"])) : (d(), b("div", Sl, [
2430
- D(l(fe), {
2282
+ disabled: !o.value
2283
+ }, null, 8, ["value", "onUpdate:value", "title", "placeholder", "disabled"])) : (i(), y("div", bl, [
2284
+ D(a(fe), {
2431
2285
  value: p.text,
2432
- "onUpdate:value": (_) => p.text = _,
2286
+ "onUpdate:value": (w) => p.text = w,
2433
2287
  title: p.text,
2434
2288
  disabled: !0,
2435
2289
  class: "w-[100%]"
2436
2290
  }, null, 8, ["value", "onUpdate:value", "title"]),
2437
- D(l(fe), {
2291
+ D(a(fe), {
2438
2292
  type: "hidden",
2439
2293
  value: p.field,
2440
- "onUpdate:value": (_) => p.field = _
2294
+ "onUpdate:value": (w) => p.field = w
2441
2295
  }, null, 8, ["value", "onUpdate:value"])
2442
2296
  ]))
2443
2297
  ], 2),
2444
- g[0] || (g[0] = F("div", { class: "w-[3%]" }, "=", -1)),
2445
- F("div", {
2446
- class: B([s.fieldWidth ? `w-[${97 - s.fieldWidth}%]` : "w-[64%]"])
2298
+ m[0] || (m[0] = I("div", { class: "w-[3%]" }, "=", -1)),
2299
+ I("div", {
2300
+ class: B([r.fieldWidth ? `w-[${97 - r.fieldWidth}%]` : "w-[64%]"])
2447
2301
  }, [
2448
- D(l(fe), {
2302
+ D(a(fe), {
2449
2303
  value: p.value,
2450
- "onUpdate:value": (_) => p.value = _,
2451
- placeholder: s.valueHolder || "请输入" + p.text || "请输入配置值",
2304
+ "onUpdate:value": (w) => p.value = w,
2305
+ placeholder: r.valueHolder || "请输入" + p.text || "请输入配置值",
2452
2306
  onInput: v,
2453
2307
  title: p.value
2454
2308
  }, null, 8, ["value", "onUpdate:value", "placeholder", "title"])
2455
2309
  ], 2)
2456
2310
  ]))), 128)),
2457
- n.value ? (d(), k(l(pt), {
2311
+ o.value ? (i(), _(a(pt), {
2458
2312
  key: 0,
2459
- onClick: u,
2313
+ onClick: c,
2460
2314
  class: "mt-1 w-[80px] !text-[12px] text-[#666] bg-[#e6f7ff] border-[#b3e0ff] hover:bg-[#b3e0ff] hover:border-[#8abeff]",
2461
2315
  size: "small"
2462
2316
  }, {
2463
- default: x(() => g[1] || (g[1] = [
2464
- Y(" 新增配置行 ")
2317
+ default: x(() => m[1] || (m[1] = [
2318
+ G(" 新增配置行 ")
2465
2319
  ])),
2466
2320
  _: 1,
2467
2321
  __: [1]
2468
- })) : w("", !0)
2322
+ })) : k("", !0)
2469
2323
  ]));
2470
2324
  }
2471
- }), $l = /* @__PURE__ */ ne(Ot, [["__scopeId", "data-v-aa237552"]]), Dr = /* @__PURE__ */ I({
2325
+ }), yl = /* @__PURE__ */ ie(Kt, [["__scopeId", "data-v-aa237552"]]), _r = /* @__PURE__ */ E({
2472
2326
  __name: "radioStatus",
2473
2327
  props: {
2474
2328
  /**
@@ -2495,14 +2349,14 @@ const wr = /* @__PURE__ */ I({
2495
2349
  required: !1
2496
2350
  }
2497
2351
  },
2498
- setup(r) {
2499
- const a = r, e = C(JSON.parse(JSON.stringify(Ne.getOptions(a.dataKey))));
2500
- return a.all === !0 && e.value.unshift({
2352
+ setup(d) {
2353
+ const l = d, e = C(JSON.parse(JSON.stringify(Be.getOptions(l.dataKey))));
2354
+ return l.all === !0 && e.value.unshift({
2501
2355
  label: "全部",
2502
- value: a.allValue || [0, 1]
2503
- }), (t, n) => (d(), k($l, { data: e.value }, null, 8, ["data"]));
2356
+ value: l.allValue || [0, 1]
2357
+ }), (t, o) => (i(), _(yl, { data: e.value }, null, 8, ["data"]));
2504
2358
  }
2505
- }), Pr = /* @__PURE__ */ I({
2359
+ }), wr = /* @__PURE__ */ E({
2506
2360
  __name: "index",
2507
2361
  props: {
2508
2362
  startDate: {},
@@ -2510,75 +2364,75 @@ const wr = /* @__PURE__ */ I({
2510
2364
  valueFormat: { default: "YYYY-MM-DD" }
2511
2365
  },
2512
2366
  emits: ["update:startDate", "update:endDate"],
2513
- setup(r, { emit: a }) {
2514
- const e = r, t = a, n = ee(), { errInfo: i } = n, o = K(() => e.valueFormat), f = K(() => {
2515
- const u = e.startDate, v = e.endDate;
2516
- if (!(!u || !v))
2367
+ setup(d, { emit: l }) {
2368
+ const e = d, t = l, o = te(), { errInfo: n } = o, s = j(() => e.valueFormat), f = j(() => {
2369
+ const c = e.startDate, v = e.endDate;
2370
+ if (!(!c || !v))
2517
2371
  try {
2518
- const s = Le(u), g = Le(v);
2519
- return !s.isValid() || !g.isValid() ? void 0 : [s, g];
2372
+ const r = Le(c), m = Le(v);
2373
+ return !r.isValid() || !m.isValid() ? void 0 : [r, m];
2520
2374
  } catch {
2521
2375
  return;
2522
2376
  }
2523
- }), c = (u, v) => {
2524
- if (!u || !v || v.length !== 2) {
2377
+ }), u = (c, v) => {
2378
+ if (!c || !v || v.length !== 2) {
2525
2379
  t("update:startDate", null), t("update:endDate", null);
2526
2380
  return;
2527
2381
  }
2528
2382
  t("update:startDate", v[0] || null), t("update:endDate", v[1] || null);
2529
2383
  };
2530
- return (u, v) => {
2531
- var s;
2532
- return d(), k(l(na), {
2533
- class: B([((s = l(i)) == null ? void 0 : s.errClass) === "error" ? ["error", "!border-red-300", "shadow-[0_0_3px_0px_#ff4d4f]"] : "", "w-full"]),
2534
- locale: l($e),
2535
- "value-format": o.value,
2384
+ return (c, v) => {
2385
+ var r;
2386
+ return i(), _(a(ua), {
2387
+ class: B([((r = a(n)) == null ? void 0 : r.errClass) === "error" ? ["error", "!border-red-300", "shadow-[0_0_3px_0px_#ff4d4f]"] : "", "w-full"]),
2388
+ locale: a($e),
2389
+ "value-format": s.value,
2536
2390
  value: f.value,
2537
- onChange: c
2391
+ onChange: u
2538
2392
  }, null, 8, ["class", "locale", "value-format", "value"]);
2539
2393
  };
2540
2394
  }
2541
- }), Fr = /* @__PURE__ */ ne(Rt, [["__scopeId", "data-v-b33df95f"]]), Ir = /* @__PURE__ */ I({
2395
+ }), kr = /* @__PURE__ */ ie(jt, [["__scopeId", "data-v-f95d8895"]]), Cr = /* @__PURE__ */ E({
2542
2396
  __name: "index",
2543
- setup(r) {
2544
- const { editorCtrl: a, labelText: e, errInfo: t } = ee(), n = () => {
2545
- t != null && t.value.errClass && a && se(a);
2397
+ setup(d) {
2398
+ const { t: l } = lt(), { editorCtrl: e, labelText: t, errInfo: o } = te(), n = () => {
2399
+ o != null && o.value.errClass && e && oe(e);
2546
2400
  };
2547
- return (i, o) => {
2548
- var f;
2549
- return d(), k(l(ia), U({
2550
- class: ((f = l(t)) == null ? void 0 : f.errClass) === "error" ? ["error", "!border-red-300", "shadow-[0_0_3px_0px_#ff4d4f]"] : "",
2401
+ return (s, f) => {
2402
+ var u;
2403
+ return i(), _(a(ca), A({
2404
+ class: ((u = a(o)) == null ? void 0 : u.errClass) === "error" ? ["error", "!border-red-300", "shadow-[0_0_3px_0px_#ff4d4f]"] : "",
2551
2405
  "allow-clear": !0,
2552
- placeholder: "请输入" + l(e),
2406
+ placeholder: a(l)("webui.form.inputPlaceholder", [a(t)]),
2553
2407
  onBlur: n,
2554
- onKeyup: o[0] || (o[0] = je(ve(() => {
2408
+ onKeyup: f[0] || (f[0] = je(ve(() => {
2555
2409
  }, ["stop"]), ["enter", "native"])),
2556
- onKeydown: o[1] || (o[1] = je(ve(() => {
2410
+ onKeydown: f[1] || (f[1] = je(ve(() => {
2557
2411
  }, ["stop"]), ["enter", "native"]))
2558
- }, i.$attrs), null, 16, ["class", "placeholder"]);
2412
+ }, s.$attrs), null, 16, ["class", "placeholder"]);
2559
2413
  };
2560
2414
  }
2561
- }), Er = /* @__PURE__ */ I({
2415
+ }), Sr = /* @__PURE__ */ E({
2562
2416
  __name: "index",
2563
2417
  props: {
2564
2418
  valueFormat: {}
2565
2419
  },
2566
- setup(r) {
2567
- const a = r, { editorCtrl: e, labelText: t, errInfo: n } = ee(), i = () => {
2568
- n != null && n.value.errClass && e && se(e);
2569
- }, o = C(a.valueFormat ?? "HH:mm");
2570
- return (f, c) => {
2571
- var u;
2572
- return d(), k(l(ua), {
2573
- class: B(["w-full", [((u = l(n)) == null ? void 0 : u.errClass) === "error" ? "error !border-red-300 shadow-[0_0_3px_0px_#ff4d4f]" : ""]]),
2574
- placeholder: "请选择" + l(t),
2575
- locale: l($e),
2576
- valueFormat: o.value,
2577
- onBlur: i
2420
+ setup(d) {
2421
+ const l = d, { editorCtrl: e, labelText: t, errInfo: o } = te(), n = () => {
2422
+ o != null && o.value.errClass && e && oe(e);
2423
+ }, s = C(l.valueFormat ?? "HH:mm");
2424
+ return (f, u) => {
2425
+ var c;
2426
+ return i(), _(a(da), {
2427
+ class: B(["w-full", [((c = a(o)) == null ? void 0 : c.errClass) === "error" ? "error !border-red-300 shadow-[0_0_3px_0px_#ff4d4f]" : ""]]),
2428
+ placeholder: "请选择" + a(t),
2429
+ locale: a($e),
2430
+ valueFormat: s.value,
2431
+ onBlur: n
2578
2432
  }, null, 8, ["class", "placeholder", "locale", "valueFormat"]);
2579
2433
  };
2580
2434
  }
2581
- }), Tl = /* @__PURE__ */ I({
2435
+ }), xl = /* @__PURE__ */ E({
2582
2436
  __name: "index",
2583
2437
  props: {
2584
2438
  autoload: { type: Boolean },
@@ -2587,47 +2441,47 @@ const wr = /* @__PURE__ */ I({
2587
2441
  value: {}
2588
2442
  },
2589
2443
  emits: ["change", "update:value"],
2590
- setup(r, { emit: a }) {
2591
- const e = r, t = C({ ...e.url }), { editorCtrl: n, labelText: i, errInfo: o } = ee(), f = a, c = C([]), u = C([]);
2592
- e.value && e.value.every((s) => {
2593
- u.value.push(s.toString());
2594
- }), L(
2444
+ setup(d, { emit: l }) {
2445
+ const e = d, t = C({ ...e.url }), { editorCtrl: o, labelText: n, errInfo: s } = te(), f = l, u = C([]), c = C([]);
2446
+ e.value && e.value.every((r) => {
2447
+ c.value.push(r.toString());
2448
+ }), U(
2595
2449
  () => e.value,
2596
- (s) => {
2597
- s && (u.value = s);
2450
+ (r) => {
2451
+ r && (c.value = r);
2598
2452
  }
2599
2453
  );
2600
- const v = (s) => {
2601
- f("update:value", s), f("change", s), u.value = s, o != null && o.value.errClass && n && se(n);
2454
+ const v = (r) => {
2455
+ f("update:value", r), f("change", r), c.value = r, s != null && s.value.errClass && o && oe(o);
2602
2456
  };
2603
2457
  return ae(async () => {
2604
2458
  if (t.value) {
2605
- const s = n == null ? void 0 : n.page;
2606
- if (t.value.api || (t.value.api = s == null ? void 0 : s.api), t.value.authorize === void 0 && (t.value.authorize = s == null ? void 0 : s.authorize), e.autoload) {
2607
- const g = await rt(n, {
2459
+ const r = o == null ? void 0 : o.page;
2460
+ 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) {
2461
+ const m = await rt(o, {
2608
2462
  urlKey: "list",
2609
2463
  url: { ...t.value, url: t.value.url },
2610
2464
  loadingText: !1,
2611
2465
  params: e.params
2612
2466
  });
2613
- c.value = (g == null ? void 0 : g.data) ?? [];
2467
+ u.value = (m == null ? void 0 : m.data) ?? [];
2614
2468
  }
2615
2469
  }
2616
- }), (s, g) => {
2470
+ }), (r, m) => {
2617
2471
  var p;
2618
- return d(), k(l(ca), U({
2619
- class: ((p = l(o)) == null ? void 0 : p.errClass) === "error" ? ["error", "!border-red-300", "shadow-[0_0_3px_0px_#ff4d4f]"] : "",
2620
- placeholder: "请输入" + l(i),
2621
- targetKeys: u.value,
2472
+ return i(), _(a(pa), A({
2473
+ class: ((p = a(s)) == null ? void 0 : p.errClass) === "error" ? ["error", "!border-red-300", "shadow-[0_0_3px_0px_#ff4d4f]"] : "",
2474
+ placeholder: a(F)("webui.components.form.transfer.pleaseInput", [a(n)]),
2475
+ targetKeys: c.value,
2622
2476
  onChange: v
2623
- }, s.$attrs), {
2624
- children: x(({ direction: _, disabled: $, filteredItems: y, onItemSelectAll: S, onItemSelect: m, selectedKeys: h }) => [
2625
- O(s.$slots, "children", {
2626
- direction: _,
2477
+ }, r.$attrs), {
2478
+ children: x(({ direction: w, disabled: $, filteredItems: b, onItemSelectAll: S, onItemSelect: g, selectedKeys: h }) => [
2479
+ R(r.$slots, "children", {
2480
+ direction: w,
2627
2481
  disabled: $,
2628
- filteredItems: y,
2482
+ filteredItems: b,
2629
2483
  onItemSelectAll: S,
2630
- onItemSelect: m,
2484
+ onItemSelect: g,
2631
2485
  selectedKeys: h
2632
2486
  })
2633
2487
  ]),
@@ -2635,7 +2489,7 @@ const wr = /* @__PURE__ */ I({
2635
2489
  }, 16, ["class", "placeholder", "targetKeys"]);
2636
2490
  };
2637
2491
  }
2638
- }), Lr = /* @__PURE__ */ I({
2492
+ }), $r = /* @__PURE__ */ E({
2639
2493
  __name: "transferTable",
2640
2494
  props: {
2641
2495
  /**
@@ -2661,79 +2515,79 @@ const wr = /* @__PURE__ */ I({
2661
2515
  }
2662
2516
  },
2663
2517
  emits: ["update:value"],
2664
- setup(r, { emit: a }) {
2665
- const e = r, t = a, n = C(e.autoload), i = C(e.value), o = C(e.gridCtrl.primaryKey);
2666
- L(
2667
- () => i.value,
2668
- (u) => {
2669
- t("update:value", u);
2518
+ setup(d, { emit: l }) {
2519
+ const e = d, t = l, o = C(e.autoload), n = C(e.value), s = C(e.gridCtrl.primaryKey);
2520
+ U(
2521
+ () => n.value,
2522
+ (c) => {
2523
+ t("update:value", c);
2670
2524
  }
2671
- ), L(
2525
+ ), U(
2672
2526
  () => e.value,
2673
- (u) => {
2674
- u && (i.value = u);
2527
+ (c) => {
2528
+ c && (n.value = c);
2675
2529
  }
2676
2530
  ), e.gridCtrl.autoload = !1, e.gridCtrl.remotePage = !1, e.gridCtrl.selectable = C(!0), e.gridCtrl.buttons = C([]), e.gridCtrl.tools = [];
2677
- const f = ({ disabled: u, selectedKeys: v, onItemSelectAll: s, onItemSelect: g }) => ({
2531
+ const f = ({ disabled: c, selectedKeys: v, onItemSelectAll: r, onItemSelect: m }) => ({
2678
2532
  getCheckboxProps: (p) => ({
2679
2533
  // 控制是否禁止
2680
- disabled: u || p.disabled
2534
+ disabled: c || p.disabled
2681
2535
  }),
2682
- onSelectAll(p, _) {
2683
- const $ = _.filter((y) => !y.disabled).map(({ [o.value]: y }) => y);
2684
- s($, p);
2536
+ onSelectAll(p, w) {
2537
+ const $ = w.filter((b) => !b.disabled).map(({ [s.value]: b }) => b);
2538
+ r($, p);
2685
2539
  },
2686
- onSelect({ [o.value]: p }, _) {
2687
- g(p, _);
2540
+ onSelect({ [s.value]: p }, w) {
2541
+ m(p, w);
2688
2542
  },
2689
2543
  selectedRowKeys: v
2690
- }), c = C([]);
2544
+ }), u = C([]);
2691
2545
  return ae(async () => {
2692
- if (n.value) {
2693
- const u = await rt(e.gridCtrl, {
2546
+ if (o.value) {
2547
+ const c = await rt(e.gridCtrl, {
2694
2548
  urlKey: "list",
2695
2549
  url: { ...e.gridCtrl.gridUrl, url: e.gridCtrl.gridUrl.url },
2696
2550
  params: e.gridCtrl.gridQuery,
2697
2551
  loadingText: !1
2698
2552
  });
2699
- c.value = (u == null ? void 0 : u.data) ?? [];
2553
+ u.value = (c == null ? void 0 : c.data) ?? [];
2700
2554
  }
2701
- }), (u, v) => (d(), k(Tl, U({
2702
- "data-source": c.value,
2703
- "row-key": (s) => s[o.value],
2704
- value: i.value,
2705
- "onUpdate:value": v[0] || (v[0] = (s) => i.value = s),
2555
+ }), (c, v) => (i(), _(xl, A({
2556
+ "data-source": u.value,
2557
+ "row-key": (r) => r[s.value],
2558
+ value: n.value,
2559
+ "onUpdate:value": v[0] || (v[0] = (r) => n.value = r),
2706
2560
  "list-style": {
2707
2561
  width: "300px",
2708
2562
  height: "500px"
2709
2563
  },
2710
2564
  "show-select-all": !1,
2711
2565
  "show-search": !0,
2712
- "filter-option": (s, g) => {
2566
+ "filter-option": (r, m) => {
2713
2567
  for (const p of e.gridCtrl.columns.value)
2714
- if (g[p.dataIndex].toString().indexOf(s) !== -1)
2568
+ if (m[p.dataIndex].toString().indexOf(r) !== -1)
2715
2569
  return !0;
2716
2570
  return !1;
2717
2571
  }
2718
- }, u.$attrs), {
2719
- children: x(({ filteredItems: s, onItemSelectAll: g, onItemSelect: p, selectedKeys: _ }) => [
2720
- D(l(ft), {
2721
- columns: r.gridCtrl.columns.value,
2722
- "row-key": o.value,
2572
+ }, c.$attrs), {
2573
+ children: x(({ filteredItems: r, onItemSelectAll: m, onItemSelect: p, selectedKeys: w }) => [
2574
+ D(a(ft), {
2575
+ columns: d.gridCtrl.columns.value,
2576
+ "row-key": s.value,
2723
2577
  "row-selection": f({
2724
2578
  disabled: !1,
2725
- selectedKeys: _,
2726
- onItemSelectAll: g,
2579
+ selectedKeys: w,
2580
+ onItemSelectAll: m,
2727
2581
  onItemSelect: p
2728
2582
  }),
2729
2583
  bordered: !1,
2730
2584
  size: "small",
2731
- "data-source": s,
2585
+ "data-source": r,
2732
2586
  scroll: { x: 300 },
2733
2587
  "custom-row": ($) => ({
2734
2588
  onClick: () => {
2735
- const y = $[o.value];
2736
- p(y, !_.includes(y));
2589
+ const b = $[s.value];
2590
+ p(b, !w.includes(b));
2737
2591
  }
2738
2592
  })
2739
2593
  }, null, 8, ["columns", "row-key", "row-selection", "data-source", "custom-row"])
@@ -2741,7 +2595,7 @@ const wr = /* @__PURE__ */ I({
2741
2595
  _: 1
2742
2596
  }, 16, ["data-source", "row-key", "value", "filter-option"]));
2743
2597
  }
2744
- }), Dl = /* @__PURE__ */ I({
2598
+ }), _l = /* @__PURE__ */ E({
2745
2599
  __name: "index",
2746
2600
  props: {
2747
2601
  multiple: {
@@ -2767,66 +2621,66 @@ const wr = /* @__PURE__ */ I({
2767
2621
  }
2768
2622
  },
2769
2623
  emits: ["change", "update:value"],
2770
- setup(r, { emit: a }) {
2771
- const e = r, t = e.value === void 0 ? !0 : e.undefValue, n = e.treeCtrl, i = ee(), { errInfo: o, labelText: f } = i, c = a;
2772
- i.inputEmit = c;
2773
- const u = C([]), v = C();
2774
- L(
2624
+ setup(d, { emit: l }) {
2625
+ const e = d, t = e.value === void 0 ? !0 : e.undefValue, o = e.treeCtrl, n = te(), { errInfo: s, labelText: f } = n, u = l;
2626
+ n.inputEmit = u;
2627
+ const c = C([]), v = C();
2628
+ U(
2775
2629
  () => e.value,
2776
2630
  (p) => {
2777
2631
  v.value = p;
2778
2632
  },
2779
2633
  { immediate: !0 }
2780
- ), L(
2634
+ ), U(
2781
2635
  () => v.value,
2782
2636
  (p) => {
2783
- c("update:value", p);
2637
+ u("update:value", p);
2784
2638
  }
2785
- ), L(
2786
- () => n.data.value,
2639
+ ), U(
2640
+ () => o.data.value,
2787
2641
  (p) => {
2788
- p && (u.value = n.fieldMap ? he(n.fieldMap, p) : p);
2642
+ p && (c.value = o.fieldMap ? be(o.fieldMap, p) : p);
2789
2643
  },
2790
2644
  { immediate: !0 }
2791
2645
  );
2792
- const s = (p) => {
2793
- e.multiple ? v.value = p ?? [] : p == null ? v.value = t ? void 0 : null : v.value = p, c("change", v.value);
2646
+ const r = (p) => {
2647
+ e.multiple ? v.value = p ?? [] : p == null ? v.value = t ? void 0 : null : v.value = p, u("change", v.value);
2794
2648
  };
2795
2649
  ke(() => {
2796
2650
  e.treeCtrl && e.treeCtrl.autoload && (e.treeCtrl.reload.value = !0);
2797
2651
  }), ae(() => {
2798
- n.fieldMap || (n.fieldMap = {
2652
+ o.fieldMap || (o.fieldMap = {
2799
2653
  label: "Name",
2800
2654
  key: "Id",
2801
2655
  value: "Id"
2802
- }), n.data.value ? u.value = n.fieldMap ? he(n.fieldMap, n.data.value) : n.data.value : e.treeCtrl.autoload && lt(e.treeCtrl);
2656
+ }), o.data.value ? c.value = o.fieldMap ? be(o.fieldMap, o.data.value) : o.data.value : e.treeCtrl.autoload && at(e.treeCtrl);
2803
2657
  });
2804
- const g = () => {
2658
+ const m = () => {
2805
2659
  v.value = t ? void 0 : null;
2806
2660
  };
2807
- return (p, _) => {
2661
+ return (p, w) => {
2808
2662
  var $;
2809
- return d(), k(l(da), U({
2810
- class: [[($ = l(o)) == null ? void 0 : $.errClass], "w-full"],
2663
+ return i(), _(a(fa), A({
2664
+ class: [[($ = a(s)) == null ? void 0 : $.errClass], "w-full"],
2811
2665
  "tree-line": "",
2812
- multiple: r.multiple,
2666
+ multiple: d.multiple,
2813
2667
  "tree-default-expanded-keys": ["-"],
2814
2668
  value: v.value,
2815
- "onUpdate:value": _[0] || (_[0] = (y) => v.value = y),
2816
- "tree-data": u.value,
2817
- placeholder: "请选择" + l(f),
2818
- onChange: s,
2819
- onClear: g
2669
+ "onUpdate:value": w[0] || (w[0] = (b) => v.value = b),
2670
+ "tree-data": c.value,
2671
+ placeholder: "请选择" + a(f),
2672
+ onChange: r,
2673
+ onClear: m
2820
2674
  }, p.$attrs), null, 16, ["class", "multiple", "value", "tree-data", "placeholder"]);
2821
2675
  };
2822
2676
  }
2823
- }), Ur = /* @__PURE__ */ ne(Dl, [["__scopeId", "data-v-71d50074"]]), Pl = { class: "w-full mt-1" }, Fl = { class: "flex flex-wrap gap-2" }, Il = ["onMouseenter"], El = { class: "w-16 h-16 border border-solid border-gray-200 rounded overflow-hidden" }, Ll = ["src"], Ul = {
2677
+ }), Tr = /* @__PURE__ */ ie(_l, [["__scopeId", "data-v-71d50074"]]), wl = { class: "w-full mt-1" }, kl = { class: "flex flex-wrap gap-2" }, Cl = ["onMouseenter"], Sl = { class: "w-16 h-16 border border-solid border-gray-200 rounded overflow-hidden" }, $l = ["src"], Tl = {
2824
2678
  key: 0,
2825
2679
  class: "absolute inset-0 bg-black bg-opacity-50 flex items-center justify-center gap-4 rounded"
2826
- }, Ml = ["onClick"], Bl = ["onClick"], Nl = {
2680
+ }, Dl = ["onClick"], Pl = ["onClick"], Fl = {
2827
2681
  key: 0,
2828
2682
  class: "w-16 h-16"
2829
- }, zl = /* @__PURE__ */ I({
2683
+ }, Il = /* @__PURE__ */ E({
2830
2684
  __name: "imageList",
2831
2685
  props: {
2832
2686
  autoUpload: { type: Boolean, default: !1 },
@@ -2845,172 +2699,172 @@ const wr = /* @__PURE__ */ I({
2845
2699
  showDelete: { type: Boolean, default: !0 }
2846
2700
  },
2847
2701
  emits: ["update:file-list"],
2848
- setup(r, { emit: a }) {
2849
- const e = r, t = ee(), { errInfo: n } = t, i = C(e.fileList), o = C([]), f = C(), c = a, u = K(() => {
2702
+ setup(d, { emit: l }) {
2703
+ const e = d, t = te(), { errInfo: o } = t, n = C(e.fileList), s = C([]), f = C(), u = l, c = j(() => {
2850
2704
  var T;
2851
2705
  return (T = e.fileExt) != null && T.length ? e.fileExt.map((P) => `.${P}`).join(",") : "";
2852
2706
  }), v = (T) => {
2853
2707
  var P;
2854
2708
  if (e.fileExt && e.fileExt.length > 0) {
2855
- const W = ((P = T.name.split(".").pop()) == null ? void 0 : P.toLowerCase()) || "";
2856
- if (!e.fileExt.includes(W))
2857
- return te.error("文件类型不支持"), !1;
2709
+ const q = ((P = T.name.split(".").pop()) == null ? void 0 : P.toLowerCase()) || "";
2710
+ if (!e.fileExt.includes(q))
2711
+ return re.error("文件类型不支持"), !1;
2858
2712
  }
2859
- return T.size / 1024 / 1024 > e.maxFileSize ? (te.error(`文件大小超过 ${e.maxFileSize}MB 限制`), !1) : !0;
2860
- }, s = () => e.maxCount > 1 && i.value.length >= e.maxCount, g = (T) => {
2713
+ return T.size / 1024 / 1024 > e.maxFileSize ? (re.error(`文件大小超过 ${e.maxFileSize}MB 限制`), !1) : !0;
2714
+ }, r = () => e.maxCount > 1 && n.value.length >= e.maxCount, m = (T) => {
2861
2715
  const P = T;
2862
2716
  return P.params || (P.params = {}), P.params.FileKey = P.name, e.parentPath && (P.params.FileKey = Re.join("/", e.parentPath, P.name)), P;
2863
- }, p = (T) => v(T) && e.autoUpload, _ = async (T) => {
2717
+ }, p = (T) => v(T) && e.autoUpload, w = async (T) => {
2864
2718
  if (T.length === 0) return;
2865
- const P = [...i.value];
2866
- let W = !1;
2867
- for (const X of T) {
2868
- if (!v(X)) {
2869
- W = !0;
2719
+ const P = [...n.value];
2720
+ let q = !1;
2721
+ for (const Z of T) {
2722
+ if (!v(Z)) {
2723
+ q = !0;
2870
2724
  continue;
2871
2725
  }
2872
- const q = g(X);
2726
+ const H = m(Z);
2873
2727
  if (e.maxCount === 1) {
2874
- P.length = 0, P.push(q);
2728
+ P.length = 0, P.push(H);
2875
2729
  break;
2876
2730
  }
2877
- if (s()) {
2878
- te.error(`最多上传 ${e.maxCount} 个文件`), W = !0;
2731
+ if (r()) {
2732
+ re.error(`最多上传 ${e.maxCount} 个文件`), q = !0;
2879
2733
  break;
2880
2734
  }
2881
- const le = P.findIndex((De) => De.name === q.name);
2882
- le > -1 ? P[le] = q : P.push(q);
2735
+ const le = P.findIndex((De) => De.name === H.name);
2736
+ le > -1 ? P[le] = H : P.push(H);
2883
2737
  }
2884
- (!W || P.length > 0) && (i.value = P), o.value = [];
2738
+ (!q || P.length > 0) && (n.value = P), s.value = [];
2885
2739
  }, $ = (T) => {
2886
- o.value = T, _(T);
2887
- }, y = K(() => ({
2888
- accept: u.value,
2740
+ s.value = T, w(T);
2741
+ }, b = j(() => ({
2742
+ accept: c.value,
2889
2743
  multiple: e.maxCount !== 1,
2890
- fileList: o.value,
2744
+ fileList: s.value,
2891
2745
  "onUpdate:fileList": $,
2892
2746
  beforeUpload: p,
2893
2747
  listType: "text",
2894
2748
  showUploadList: !1,
2895
2749
  customRequest: async () => {
2896
2750
  if (e.autoUpload && e.uploadUrl)
2897
- for (const T of i.value)
2898
- T.percent === 0 && await jt(e.uploadUrl, T);
2751
+ for (const T of n.value)
2752
+ T.percent === 0 && await Vt(e.uploadUrl, T);
2899
2753
  }
2900
2754
  }));
2901
- L(
2755
+ U(
2902
2756
  () => e.fileList,
2903
2757
  (T) => {
2904
- i.value = T;
2758
+ n.value = T;
2905
2759
  },
2906
2760
  { deep: !0, immediate: !0 }
2907
- ), L(
2908
- () => i.value,
2761
+ ), U(
2762
+ () => n.value,
2909
2763
  (T) => {
2910
- c("update:file-list", T);
2764
+ u("update:file-list", T);
2911
2765
  },
2912
2766
  { deep: !0 }
2913
- ), L(
2767
+ ), U(
2914
2768
  () => e.parentPath,
2915
2769
  (T) => {
2916
- T && i.value.forEach((P) => {
2770
+ T && n.value.forEach((P) => {
2917
2771
  P.params.FileKey = Re.join("/", T, P.fileName);
2918
2772
  });
2919
2773
  }
2920
2774
  );
2921
- const S = C(!1), m = C(""), h = (T) => {
2922
- const P = i.value[T];
2923
- m.value = z(P), S.value = !0;
2775
+ const S = C(!1), g = C(""), h = (T) => {
2776
+ const P = n.value[T];
2777
+ g.value = z(P), S.value = !0;
2924
2778
  }, N = (T) => {
2925
- const P = i.value[T];
2926
- e.deleteUrl && P.minioFile && P.minioFile.Key ? ze(e.deleteUrl, {
2779
+ const P = n.value[T];
2780
+ e.deleteUrl && P.minioFile && P.minioFile.Key ? Ne(e.deleteUrl, {
2927
2781
  Query: {
2928
2782
  FileKey: P.minioFile.Key
2929
2783
  }
2930
- }).then((W) => {
2931
- W && W.status === Ae.SUCCESS && (te.success("删除文件成功!"), i.value.splice(T, 1));
2932
- }) : i.value.splice(T, 1);
2933
- }, R = C(/* @__PURE__ */ new Map()), z = (T) => {
2784
+ }).then((q) => {
2785
+ q && q.status === ze.SUCCESS && (re.success("删除文件成功!"), n.value.splice(T, 1));
2786
+ }) : n.value.splice(T, 1);
2787
+ }, K = C(/* @__PURE__ */ new Map()), z = (T) => {
2934
2788
  if (T.originFileObj)
2935
2789
  return URL.createObjectURL(T.originFileObj);
2936
2790
  if (T.minioFile) {
2937
2791
  const P = T.minioFile.Key;
2938
- return R.value.has(P) ? R.value.get(P) : (A(T), "");
2792
+ return K.value.has(P) ? K.value.get(P) : (O(T), "");
2939
2793
  }
2940
2794
  return "";
2941
- }, A = async (T) => {
2795
+ }, O = async (T) => {
2942
2796
  if (!T.minioFile || !e.previewUrl) return;
2943
2797
  const P = T.minioFile.Key;
2944
2798
  try {
2945
- const W = `${e.previewUrl.url}?FileKey=${encodeURIComponent(T.minioFile.Key)}`, X = Vt() ? await Kt.getToken() : Me().getToken(), q = await fetch(W, {
2799
+ const q = `${e.previewUrl.url}?FileKey=${encodeURIComponent(T.minioFile.Key)}`, Z = Gt() ? await Yt.getToken() : Me().getToken(), H = await fetch(q, {
2946
2800
  method: "GET",
2947
2801
  headers: {
2948
- Authorization: `Bearer ${X}`
2802
+ Authorization: `Bearer ${Z}`
2949
2803
  }
2950
2804
  });
2951
- if (q.ok) {
2952
- const le = await q.blob(), De = URL.createObjectURL(le);
2953
- R.value.set(P, De);
2805
+ if (H.ok) {
2806
+ const le = await H.blob(), De = URL.createObjectURL(le);
2807
+ K.value.set(P, De);
2954
2808
  } else
2955
- console.error("加载图片失败:", q.status);
2956
- } catch (W) {
2957
- console.error("加载图片失败:", W);
2809
+ console.error("加载图片失败:", H.status);
2810
+ } catch (q) {
2811
+ console.error("加载图片失败:", q);
2958
2812
  }
2959
- }, Ct = K(() => i.value.length < e.maxCount), Te = C(-1);
2813
+ }, kt = j(() => n.value.length < e.maxCount), Te = C(-1);
2960
2814
  return (T, P) => {
2961
- const W = oe("auth");
2962
- return d(), b("div", Pl, [
2963
- F("div", Fl, [
2964
- (d(!0), b(E, null, j(i.value, (X, q) => (d(), b("div", {
2965
- key: q,
2815
+ const q = ne("auth");
2816
+ return i(), y("div", wl, [
2817
+ I("div", kl, [
2818
+ (i(!0), y(L, null, Y(n.value, (Z, H) => (i(), y("div", {
2819
+ key: H,
2966
2820
  class: "relative image-item",
2967
- onMouseenter: (le) => Te.value = q,
2821
+ onMouseenter: (le) => Te.value = H,
2968
2822
  onMouseleave: P[0] || (P[0] = (le) => Te.value = -1)
2969
2823
  }, [
2970
- F("div", El, [
2971
- F("img", {
2972
- src: z(X),
2824
+ I("div", Sl, [
2825
+ I("img", {
2826
+ src: z(Z),
2973
2827
  class: "w-full h-full object-cover"
2974
- }, null, 8, Ll)
2828
+ }, null, 8, $l)
2975
2829
  ]),
2976
- Te.value === q ? (d(), b("div", Ul, [
2977
- T.previewUrl ? (d(), b("div", {
2830
+ Te.value === H ? (i(), y("div", Tl, [
2831
+ T.previewUrl ? (i(), y("div", {
2978
2832
  key: 0,
2979
2833
  class: "flex items-center text-white cursor-pointer hover:text-blue-400",
2980
- onClick: (le) => h(q)
2834
+ onClick: (le) => h(H)
2981
2835
  }, [
2982
- D(l(V), {
2836
+ D(a(V), {
2983
2837
  icon: "icon-eye",
2984
2838
  clickable: ""
2985
2839
  }),
2986
- P[1] || (P[1] = F("span", { class: "text-sm ml-1" }, "预览", -1))
2987
- ], 8, Ml)) : w("", !0),
2988
- T.showDelete !== !1 ? (d(), b("div", {
2840
+ P[1] || (P[1] = I("span", { class: "text-sm ml-1" }, "预览", -1))
2841
+ ], 8, Dl)) : k("", !0),
2842
+ T.showDelete !== !1 ? (i(), y("div", {
2989
2843
  key: 1,
2990
2844
  class: "flex items-center text-white cursor-pointer hover:text-red-400",
2991
- onClick: (le) => N(q)
2845
+ onClick: (le) => N(H)
2992
2846
  }, [
2993
- D(l(V), {
2847
+ D(a(V), {
2994
2848
  icon: "icon-new",
2995
2849
  angle: 45,
2996
2850
  clickable: ""
2997
2851
  }),
2998
- P[2] || (P[2] = F("span", { class: "text-sm ml-1" }, "删除", -1))
2999
- ], 8, Bl)) : w("", !0)
3000
- ])) : w("", !0)
3001
- ], 40, Il))), 128)),
3002
- Ct.value ? (d(), b("div", Nl, [
3003
- H((d(), k(l(pa), U({
2852
+ P[2] || (P[2] = I("span", { class: "text-sm ml-1" }, "删除", -1))
2853
+ ], 8, Pl)) : k("", !0)
2854
+ ])) : k("", !0)
2855
+ ], 40, Cl))), 128)),
2856
+ kt.value ? (i(), y("div", Fl, [
2857
+ Q((i(), _(a(va), A({
3004
2858
  ref_key: "fileUploader",
3005
2859
  ref: f
3006
- }, y.value), {
2860
+ }, b.value), {
3007
2861
  default: x(() => {
3008
- var X;
2862
+ var Z;
3009
2863
  return [
3010
- F("div", {
3011
- class: B(["w-16 h-16 border border-dashed border-gray-300 rounded flex items-center justify-center cursor-pointer hover:border-blue-500 transition-colors", [(X = l(n)) == null ? void 0 : X.errClass]])
2864
+ I("div", {
2865
+ class: B(["w-16 h-16 border border-dashed border-gray-300 rounded flex items-center justify-center cursor-pointer hover:border-blue-500 transition-colors", [(Z = a(o)) == null ? void 0 : Z.errClass]])
3012
2866
  }, [
3013
- D(l(V), {
2867
+ D(a(V), {
3014
2868
  icon: "icon-new",
3015
2869
  class: "text-gray-400 w-10 h-10"
3016
2870
  })
@@ -3019,42 +2873,42 @@ const wr = /* @__PURE__ */ I({
3019
2873
  }),
3020
2874
  _: 1
3021
2875
  }, 16)), [
3022
- [W, { role: ["Super", "Admin"], permit: ":imagelist:upload" }]
2876
+ [q, { role: ["Super", "Admin"], permit: ":imagelist:upload" }]
3023
2877
  ])
3024
- ])) : w("", !0)
2878
+ ])) : k("", !0)
3025
2879
  ]),
3026
- D(l(fa), {
3027
- preview: { visible: S.value, onVisibleChange: (X) => S.value = X },
3028
- src: m.value,
2880
+ D(a(ma), {
2881
+ preview: { visible: S.value, onVisibleChange: (Z) => S.value = Z },
2882
+ src: g.value,
3029
2883
  style: { display: "none" }
3030
2884
  }, null, 8, ["preview", "src"])
3031
2885
  ]);
3032
2886
  };
3033
2887
  }
3034
- }), Mr = /* @__PURE__ */ ne(zl, [["__scopeId", "data-v-26d707cc"]]), Al = { class: "relative h-[calc(100vh-80px)] overflow-y-auto" }, Ol = { class: "flex w-full h-full min-h-full" }, Rl = {
2888
+ }), Dr = /* @__PURE__ */ ie(Il, [["__scopeId", "data-v-26d707cc"]]), El = { class: "relative h-[calc(100vh-80px)] overflow-y-auto" }, Ll = { class: "flex w-full h-full min-h-full" }, Ul = {
3035
2889
  key: 0,
3036
2890
  class: "w-1/4 pr-4 min-h-full min-w-[170px] max-w-[200px]"
3037
- }, Kl = { class: "flex-1 h-full overflow-y-auto" }, Br = /* @__PURE__ */ I({
2891
+ }, Ml = { class: "flex-1 h-full overflow-y-auto" }, Pr = /* @__PURE__ */ E({
3038
2892
  __name: "index",
3039
2893
  props: {
3040
2894
  left: { type: Boolean }
3041
2895
  },
3042
- setup(r) {
3043
- const { useToken: a } = nt, { token: e } = a();
3044
- return (t, n) => (d(), b("div", Al, [
3045
- D(l(va), {
2896
+ setup(d) {
2897
+ const { useToken: l } = nt, { token: e } = l();
2898
+ return (t, o) => (i(), y("div", El, [
2899
+ D(a(ga), {
3046
2900
  class: "m-[10px] p-[10px] h-[calc(100vh-100px)] !min-h-[calc(100vh-100px)]",
3047
2901
  style: Oe({
3048
- backgroundColor: l(e).colorBgContainer
2902
+ backgroundColor: a(e).colorBgContainer
3049
2903
  })
3050
2904
  }, {
3051
2905
  default: x(() => [
3052
- F("div", Ol, [
3053
- t.left ? (d(), b("div", Rl, [
3054
- O(t.$slots, "left")
3055
- ])) : w("", !0),
3056
- F("div", Kl, [
3057
- O(t.$slots, "default")
2906
+ I("div", Ll, [
2907
+ t.left ? (i(), y("div", Ul, [
2908
+ R(t.$slots, "left")
2909
+ ])) : k("", !0),
2910
+ I("div", Ml, [
2911
+ R(t.$slots, "default")
3058
2912
  ])
3059
2913
  ])
3060
2914
  ]),
@@ -3064,168 +2918,168 @@ const wr = /* @__PURE__ */ I({
3064
2918
  }
3065
2919
  });
3066
2920
  export {
3067
- Ar as $t,
3068
- zs as Alert,
3069
- Zs as AppIcon,
2921
+ F as $t,
2922
+ Es as Alert,
2923
+ Ws as AppIcon,
3070
2924
  de as AppRouter,
3071
- Fs as AsyncUploader,
3072
- xr as AutoComplete,
3073
- eo as Breadcrumb,
3074
- Z as Button,
2925
+ Cs as AsyncUploader,
2926
+ fr as AutoComplete,
2927
+ qs as Breadcrumb,
2928
+ ee as Button,
3075
2929
  mt as Cache,
3076
- Da as CacheKeys,
3077
- Ls as CanPreviewFileExt,
3078
- _r as Cascader,
3079
- kr as Checkbox,
3080
- Br as Content,
3081
- wr as DatePicker,
3082
- to as Datetime,
3083
- uo as Dialog,
3084
- pr as Drawer,
3085
- Or as EventPrefix,
3086
- fr as Form,
3087
- vr as FormItem,
3088
- cr as Fullscreen,
2930
+ _a as CacheKeys,
2931
+ Ts as CanPreviewFileExt,
2932
+ vr as Cascader,
2933
+ mr as Checkbox,
2934
+ Pr as Content,
2935
+ gr as DatePicker,
2936
+ Hs as Datetime,
2937
+ lo as Dialog,
2938
+ sr as Drawer,
2939
+ Er as EventPrefix,
2940
+ or as Form,
2941
+ nr as FormItem,
2942
+ lr as Fullscreen,
3089
2943
  Ee as GroupTools,
3090
- ao as Header,
3091
- lo as HeaderExits,
3092
- Fa as Helper,
3093
- Rr as ICONS_LIB,
3094
- ro as Icon,
3095
- Ba as Icontool,
3096
- Mr as ImageList,
2944
+ Qs as Header,
2945
+ Js as HeaderExits,
2946
+ ka as Helper,
2947
+ Lr as ICONS_LIB,
2948
+ Xs as Icon,
2949
+ Pa as Icontool,
2950
+ Dr as ImageList,
3097
2951
  wt as Input,
3098
- Cr as InputIcon,
3099
- $r as InputNumber,
3100
- Sr as InputPassword,
3101
- dr as LayoutIcon,
3102
- gr as List,
3103
- Ua as ListOperate,
3104
- As as Loading,
3105
- so as Menu,
3106
- oo as MenuTabs,
3107
- Kt as MicroOpenApis,
3108
- Ne as OPTIONS,
3109
- Et as OptionCommProps,
3110
- no as ProjectIcon,
3111
- Tr as PropEditor,
3112
- re as ProviderKeys,
3113
- $l as Radio,
3114
- Dr as RadioStatus,
3115
- Pr as RangePicker,
3116
- mr as Search,
2952
+ hr as InputIcon,
2953
+ yr as InputNumber,
2954
+ br as InputPassword,
2955
+ rr as LayoutIcon,
2956
+ ir as List,
2957
+ Ta as ListOperate,
2958
+ Ls as Loading,
2959
+ Zs as Menu,
2960
+ eo as MenuTabs,
2961
+ Yt as MicroOpenApis,
2962
+ Be as OPTIONS,
2963
+ Ut as OptionCommProps,
2964
+ to as ProjectIcon,
2965
+ xr as PropEditor,
2966
+ se as ProviderKeys,
2967
+ yl as Radio,
2968
+ _r as RadioStatus,
2969
+ wr as RangePicker,
2970
+ ur as Search,
3117
2971
  Ie as SearchItem,
3118
- Fr as Select,
3119
- tt as Switch,
3120
- hr as Table,
3121
- Ga as TableOperate,
3122
- Ir as Textarea,
3123
- Er as TimePicker,
2972
+ kr as Select,
2973
+ et as Switch,
2974
+ cr as Table,
2975
+ za as TableOperate,
2976
+ Cr as Textarea,
2977
+ Sr as TimePicker,
3124
2978
  V as ToolIcon,
3125
- yr as ToolPanel,
3126
- kt as Toolbar,
3127
- Js as Tooltip,
3128
- Tl as Transfer,
3129
- Lr as TransferTable,
3130
- br as Tree,
3131
- Ur as TreeSelect,
3132
- Us as UploadList,
3133
- Is as UploadStatus,
3134
- Os as appendExcelData,
3135
- Rs as checkExcelDuplicates,
3136
- Kr as checkIconsExpired,
3137
- Bt as circleLoading,
2979
+ pr as ToolPanel,
2980
+ _t as Toolbar,
2981
+ Vs as Tooltip,
2982
+ xl as Transfer,
2983
+ $r as TransferTable,
2984
+ dr as Tree,
2985
+ Tr as TreeSelect,
2986
+ Ds as UploadList,
2987
+ Ss as UploadStatus,
2988
+ Us as appendExcelData,
2989
+ Ms as checkExcelDuplicates,
2990
+ Ur as checkIconsExpired,
2991
+ Nt as circleLoading,
3138
2992
  $t as createFromIconfont,
3139
- Ks as createMarkedExcelView,
3140
- jr as crumbs,
3141
- or as csvToExcelBlob,
2993
+ As as createMarkedExcelView,
2994
+ Mr as crumbs,
2995
+ Zl as csvToExcelBlob,
3142
2996
  vt as csvToExcelView,
3143
- js as csvToNormalized,
3144
- We as defaultTools,
3145
- Vr as doDelete,
3146
- Yr as doExecute,
2997
+ Bs as csvToNormalized,
2998
+ Ar as defaultTools,
2999
+ Br as doDelete,
3000
+ Nr as doExecute,
3147
3001
  rt as doQuery,
3148
- Gr as doSave,
3149
- Ms as donwloadFromMinio,
3150
- ma as downloadBlob,
3151
- Wr as eventBus,
3152
- Vs as excelToExcelView,
3153
- Ys as excelToNormalized,
3154
- ur as exportResults,
3155
- ir as exportSelectedRows,
3156
- Ze as filterColumns,
3157
- se as formValidate,
3158
- qr as getAvailableLanguages,
3159
- Hr as getFormDetail,
3160
- Qr as getIconTransform,
3161
- Jr as getLang,
3162
- Xr as getRecordDetail,
3163
- Zr as getRuleTexts,
3164
- zt as getSelectedLabels,
3165
- es as getSelectedValues,
3166
- ie as getToolByKey,
3167
- Se as getToolGroup,
3168
- G as getToolStatus,
3169
- Q as getToolVisible,
3170
- me as gridQueryFind,
3171
- et as gridQueryList,
3172
- ts as gridRowUpdate,
3173
- at as gridStatusUpdate,
3174
- as as i18n,
3175
- sr as initCacheCheck,
3176
- rr as initDirective,
3177
- ls as initLang,
3178
- rs as initMenu,
3179
- ss as initPageFactory,
3180
- os as initValidate,
3002
+ zr as doSave,
3003
+ Ps as donwloadFromMinio,
3004
+ ba as downloadBlob,
3005
+ Or as eventBus,
3006
+ Ns as excelToExcelView,
3007
+ zs as excelToNormalized,
3008
+ ar as exportResults,
3009
+ tr as exportSelectedRows,
3010
+ Xe as filterColumns,
3011
+ oe as formValidate,
3012
+ Rr as getAvailableLanguages,
3013
+ Kr as getFormDetail,
3014
+ jr as getIconTransform,
3015
+ Yr as getLang,
3016
+ Vr as getRecordDetail,
3017
+ Gr as getRuleTexts,
3018
+ Ot as getSelectedLabels,
3019
+ Wr as getSelectedValues,
3020
+ me as getToolByKey,
3021
+ Ae as getToolGroup,
3022
+ W as getToolStatus,
3023
+ J as getToolVisible,
3024
+ he as gridQueryFind,
3025
+ Ze as gridQueryList,
3026
+ qr as gridRowUpdate,
3027
+ tt as gridStatusUpdate,
3028
+ Hr as i18n,
3029
+ Xl as initCacheCheck,
3030
+ Jl as initDirective,
3031
+ Qr as initLang,
3032
+ Jr as initMenu,
3033
+ Xr as initPageFactory,
3034
+ Zr as initValidate,
3181
3035
  pe as isEmpty,
3182
- Ut as loadOption,
3183
- ns as mergeColumns,
3184
- Gs as normalizedToExcelView,
3185
- $a as onColumnVisibleChanged,
3036
+ At as loadOption,
3037
+ es as mergeColumns,
3038
+ Os as normalizedToExcelView,
3039
+ Ft as onColumnVisibleChanged,
3186
3040
  Dt as onFormClose,
3187
- qe as onFormSave,
3041
+ We as onFormSave,
3188
3042
  Tt as onFormSaveAs,
3189
- gt as onFullscreenClick,
3190
- Xe as onGridRowDelete,
3191
- Je as onGridRowEdit,
3192
- is as onGridRowExpand,
3193
- Nt as onOptionChanged,
3194
- ya as onReloadClick,
3195
- J as onToolClicked,
3196
- Pt as openNewForm,
3197
- us as outFormDataFields,
3198
- cs as parseIcons,
3043
+ St as onFullscreenClick,
3044
+ Je as onGridRowDelete,
3045
+ Qe as onGridRowEdit,
3046
+ ts as onGridRowExpand,
3047
+ zt as onOptionChanged,
3048
+ as as onReloadClick,
3049
+ X as onToolClicked,
3050
+ It as openNewForm,
3051
+ ls as outFormDataFields,
3052
+ rs as parseIcons,
3199
3053
  Re as path,
3200
- ds as pendingNavigation,
3201
- ps as pinia,
3202
- Bs as previewFromMinio,
3203
- nr as processCsvFile,
3204
- Ws as processExcelFile,
3205
- lt as queryTree,
3206
- fs as resetRules,
3207
- vs as routes,
3208
- gs as saveForm,
3209
- ms as setFormData,
3210
- hs as setLang,
3211
- bs as showBreadcrumb,
3212
- qs as toExcel,
3213
- Mt as unloadOption,
3214
- ys as uploadTempBtn,
3215
- xs as uploadTempOpener,
3216
- _s as useAppInfo,
3217
- ks as useEditorFactory,
3218
- He as useFormItemFactory,
3219
- ws as useGridFactory,
3220
- Cs as useHostInfo,
3221
- ee as useInputFactory,
3222
- Lt as useOptionFactory,
3223
- Ss as usePageFactory,
3224
- $s as usePageInfo,
3225
- Be as useSettingInfo,
3226
- Ta as useToolFactory,
3227
- Ts as useTreeFactory,
3054
+ ss as pendingNavigation,
3055
+ os as pinia,
3056
+ Fs as previewFromMinio,
3057
+ er as processCsvFile,
3058
+ Rs as processExcelFile,
3059
+ at as queryTree,
3060
+ ns as resetRules,
3061
+ is as routes,
3062
+ us as saveForm,
3063
+ cs as setFormData,
3064
+ ds as setLang,
3065
+ ps as showBreadcrumb,
3066
+ Ks as toExcel,
3067
+ Bt as unloadOption,
3068
+ fs as uploadTempBtn,
3069
+ vs as uploadTempOpener,
3070
+ ms as useAppInfo,
3071
+ gs as useEditorFactory,
3072
+ qe as useFormItemFactory,
3073
+ hs as useGridFactory,
3074
+ bs as useHostInfo,
3075
+ te as useInputFactory,
3076
+ Mt as useOptionFactory,
3077
+ ys as usePageFactory,
3078
+ xs as usePageInfo,
3079
+ Ge as useSettingInfo,
3080
+ Pt as useToolFactory,
3081
+ _s as useTreeFactory,
3228
3082
  Me as useUserInfo,
3229
- Ds as validateData,
3230
- Hs as validateExcel
3083
+ ws as validateData,
3084
+ js as validateExcel
3231
3085
  };