@skyfox2000/webui 1.2.8 → 1.2.9

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