@skyfox2000/webui 1.4.18 → 1.4.21

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 (31) hide show
  1. package/lib/assets/modules/{baseLayout-D3_NxEzk.js → baseLayout-Da4Ox7Lj.js} +3 -3
  2. package/lib/assets/modules/{file-upload-CNBcbAAZ.js → file-upload-Bu6FkNjZ.js} +5 -5
  3. package/lib/assets/modules/{index-CDr74akE.js → index-BYVerdEw.js} +2 -2
  4. package/lib/assets/modules/{index-DOlO_4KL.js → index-BysCt107.js} +2 -2
  5. package/lib/assets/modules/{index-D14BsF7C.js → index-Ch3meKe4.js} +1 -1
  6. package/lib/assets/modules/{menuTabs-CqAhoF--.js → menuTabs-BqLT-YbD.js} +16 -16
  7. package/lib/assets/modules/{toolIcon-BnkqBipR.js → toolIcon-Dd58W0UM.js} +1 -1
  8. package/lib/assets/modules/{upload-template-KI-IFzyp.js → upload-template-Csccple9.js} +28 -28
  9. package/lib/assets/modules/{uploadList-DnFXg_B3.js → uploadList-D8scq04c.js} +4 -4
  10. package/lib/components/form/index.d.ts +2 -0
  11. package/lib/components/form/propEditor/index.vue.d.ts +1 -0
  12. package/lib/components/form/upload/imageList.vue.d.ts +486 -0
  13. package/lib/components/form/upload/uploadList.vue.d.ts +1 -1
  14. package/lib/components/index.d.ts +1 -1
  15. package/lib/es/AceEditor/index.js +3 -3
  16. package/lib/es/BasicLayout/index.js +2 -2
  17. package/lib/es/Error403/index.js +1 -1
  18. package/lib/es/Error404/index.js +1 -1
  19. package/lib/es/ExcelForm/index.js +5 -5
  20. package/lib/es/MenuLayout/index.js +2 -2
  21. package/lib/es/TemplateFile/index.js +4 -4
  22. package/lib/es/UploadForm/index.js +4 -4
  23. package/lib/index.d.ts +1 -1
  24. package/lib/webui.css +1 -1
  25. package/lib/webui.es.js +1275 -1059
  26. package/package.json +1 -1
  27. package/src/components/form/index.ts +3 -0
  28. package/src/components/form/propEditor/index.vue +30 -28
  29. package/src/components/form/upload/imageList.vue +386 -0
  30. package/src/components/index.ts +1 -0
  31. package/src/index.ts +1 -0
package/lib/webui.es.js CHANGED
@@ -1,139 +1,140 @@
1
- import { u as Pe, i as Z, a as he, L as la, c as ra, P as q, o as Fe, b as sa, d as oa, e as Ne, g as Me, r as ce, f as na, h as ia, j as Oe, k as ua, l as we, m as ca, _ as da, n as pa, O as Be, p as fa, q as Ae, s as va, t as ma, v as R, w as ha, x as ga, y as ba, z as _a, A as xa, B as ya, C as Y, D as ka, E as wa, F as Ca, G as Re } from "./assets/modules/upload-template-KI-IFzyp.js";
2
- import { ac as Nl, S as Ml, ae as Ol, T as Bl, X as Al, ab as Rl, a9 as Ll, aa as zl, ad as Ul, $ as Vl, V as Yl, a7 as Kl, a4 as Wl, Q as jl, a6 as ql, W as Hl, I as Ql, a1 as Gl, a5 as Jl, a8 as Xl, R as Zl, U as er, af as ar, H as tr, a3 as lr, ag as rr, Z as sr, a0 as or, Y as nr, al as ir, ak as ur, ah as cr, J as dr, K as pr, ai as fr, N as vr, aj as mr, M as hr, a2 as gr } from "./assets/modules/upload-template-KI-IFzyp.js";
3
- import { A as _r, U as xr, p as yr } from "./assets/modules/file-upload-CNBcbAAZ.js";
4
- import { EnvConfig as Ce } from "@skyfox2000/microbase";
5
- import { FrontCache as oe, httpPost as Le, ResStatus as ze, SERVER_HOST as Sa, fieldMapping as ne } from "@skyfox2000/fapi";
6
- import le from "vue-m-message";
7
- import { defineComponent as S, createBlock as b, openBlock as v, withModifiers as ae, unref as r, useAttrs as X, withCtx as h, createElementVNode as D, createVNode as k, mergeProps as F, renderSlot as I, normalizeClass as E, toDisplayString as P, createCommentVNode as y, ref as _, provide as ge, watch as T, onMounted as K, createTextVNode as N, inject as ie, resolveDirective as re, withDirectives as H, computed as Q, createElementBlock as w, normalizeStyle as be, createSlots as Ue, useSlots as Ta, Fragment as O, renderList as z, resolveDynamicComponent as $a, onActivated as _e, shallowRef as Da, onUnmounted as Ia, withKeys as Se } from "vue";
1
+ import { u as $e, i as ie, a as Te, L as ft, c as vt, P as re, o as Ye, b as mt, d as ht, e as We, g as qe, r as ge, f as gt, h as bt, j as He, k as yt, l as Be, m as xt, _ as _t, n as kt, O as Qe, p as wt, q as Ge, s as Ct, t as St, v as V, w as $t, x as Tt, y as Ft, z as It, A as Et, B as Dt, C as Z, D as Pt, E as Ut, F as Lt, G as Je, M as Mt } from "./assets/modules/upload-template-Csccple9.js";
2
+ import { ad as or, T as nr, U as ir, Y as ur, ac as cr, aa as dr, ab as pr, ae as fr, a0 as vr, W as mr, a8 as hr, a5 as gr, R as br, a7 as yr, X as xr, I as _r, a2 as kr, a6 as wr, a9 as Cr, S as Sr, V as $r, af as Tr, H as Fr, a4 as Ir, ag as Er, $ as Dr, a1 as Pr, Z as Ur, al as Lr, ak as Mr, ah as Br, J as Nr, K as Or, ai as Rr, Q as Ar, aj as zr, N as Kr, a3 as Vr } from "./assets/modules/upload-template-Csccple9.js";
3
+ import { f as Bt, p as Ne } from "./assets/modules/file-upload-Bu6FkNjZ.js";
4
+ import { A as Yr, U as Wr } from "./assets/modules/file-upload-Bu6FkNjZ.js";
5
+ import { EnvConfig as Oe, isMicroApp as Nt } from "@skyfox2000/microbase";
6
+ import { FrontCache as fe, httpPost as Fe, ResStatus as Ie, SERVER_HOST as Ot, fieldMapping as ve } from "@skyfox2000/fapi";
7
+ import q from "vue-m-message";
8
+ import { defineComponent as T, createBlock as b, openBlock as f, withModifiers as ce, unref as r, useAttrs as oe, withCtx as h, createElementVNode as I, createVNode as S, mergeProps as L, renderSlot as D, normalizeClass as U, toDisplayString as M, createCommentVNode as C, ref as y, provide as Ee, watch as F, onMounted as ee, createTextVNode as O, inject as me, resolveDirective as ne, withDirectives as X, computed as Y, createElementBlock as w, normalizeStyle as De, createSlots as Xe, useSlots as Rt, Fragment as A, renderList as H, resolveDynamicComponent as At, onActivated as Pe, shallowRef as zt, onUnmounted as Kt, withKeys as Re } from "vue";
8
9
  import "async-validator";
9
- import ve from "dayjs";
10
- import { Popover as Ea, theme as Ve, Drawer as Pa, Space as te, Form as Ye, message as Fa, FormItem as Ke, ConfigProvider as Te, Popconfirm as Na, Button as We, DropdownButton as Ma, Menu as xe, MenuItem as ye, Dropdown as me, Checkbox as Oa, Table as je, Tree as Ba, Cascader as Aa, DatePicker as Ra, Input as ee, InputPassword as La, InputNumber as za, RangePicker as Ua, Textarea as Va, TimePicker as Ya, Transfer as Ka, TreeSelect as Wa, LayoutContent as ja } from "ant-design-vue";
11
- import { VueDraggableNext as qa } from "vue-draggable-next";
12
- import { d as Ha } from "./assets/modules/uploadList-DnFXg_B3.js";
13
- import { C as wr, U as Cr, a as Sr, p as Tr } from "./assets/modules/uploadList-DnFXg_B3.js";
14
- import { c as qe } from "./assets/modules/index-DOlO_4KL.js";
15
- import { _ as Dr, h as Ir, b as Er, a as Pr, d as Fr, e as Nr, g as Mr, f as Or, n as Br, p as Ar, t as Rr, v as Lr } from "./assets/modules/index-DOlO_4KL.js";
16
- import { _ as A } from "./assets/modules/index-D14BsF7C.js";
17
- import { _ as U } from "./assets/modules/toolIcon-BnkqBipR.js";
18
- import { a as Ur } from "./assets/modules/toolIcon-BnkqBipR.js";
19
- import { _ as Yr, b as Kr, c as Wr, d as jr, e as qr, I as Hr, f as Qr, g as Gr, a as Jr } from "./assets/modules/menuTabs-CqAhoF--.js";
20
- import { _ as Zr } from "./assets/modules/index-CDr74akE.js";
21
- import { _ as G } from "./assets/modules/_plugin-vue_export-helper-CHgC5LLL.js";
22
- const $e = (l, t, e, a = "remove") => {
10
+ import Ce from "dayjs";
11
+ import { Popover as Vt, theme as Ze, Drawer as jt, Space as de, Form as et, message as Yt, FormItem as tt, ConfigProvider as Ae, Popconfirm as Wt, Button as at, DropdownButton as qt, Menu as Ue, MenuItem as Le, Dropdown as Se, Checkbox as Ht, Table as lt, Tree as Qt, Cascader as Gt, DatePicker as Jt, Input as ue, InputPassword as Xt, InputNumber as Zt, RangePicker as ea, Textarea as ta, TimePicker as aa, Transfer as la, TreeSelect as ra, Upload as sa, Image as oa, LayoutContent as na } from "ant-design-vue";
12
+ import { VueDraggableNext as ia } from "vue-draggable-next";
13
+ import { d as ua } from "./assets/modules/uploadList-D8scq04c.js";
14
+ import { C as Hr, U as Qr, a as Gr, p as Jr } from "./assets/modules/uploadList-D8scq04c.js";
15
+ import { c as rt } from "./assets/modules/index-BysCt107.js";
16
+ import { _ as Zr, h as es, b as ts, a as as, d as ls, e as rs, g as ss, f as os, n as ns, p as is, t as us, v as cs } from "./assets/modules/index-BysCt107.js";
17
+ import { _ as W } from "./assets/modules/index-Ch3meKe4.js";
18
+ import { _ as K } from "./assets/modules/toolIcon-Dd58W0UM.js";
19
+ import { a as ps } from "./assets/modules/toolIcon-Dd58W0UM.js";
20
+ import { _ as vs, b as ms, c as hs, d as gs, e as bs, I as ys, f as xs, g as _s, a as ks } from "./assets/modules/menuTabs-BqLT-YbD.js";
21
+ import { _ as Cs } from "./assets/modules/index-BYVerdEw.js";
22
+ import { _ as te } from "./assets/modules/_plugin-vue_export-helper-CHgC5LLL.js";
23
+ const ze = (l, a, e, t = "remove") => {
23
24
  if (!e)
24
- if (a === "disable") {
25
- const s = t.component;
26
- s ? s.props.disabled = !0 : (t.el, l.setAttribute("disabled", "disabled"), l.disabled = !0), l.classList.add("disabled");
25
+ if (t === "disable") {
26
+ const o = a.component;
27
+ o ? o.props.disabled = !0 : (a.el, l.setAttribute("disabled", "disabled"), l.disabled = !0), l.classList.add("disabled");
27
28
  } else {
28
- const s = document.createComment("No Permission"), u = l.parentNode;
29
- if (u) {
30
- const n = t.component;
31
- n ? n.props.style = { display: "none" } : u.replaceChild(s, l);
29
+ const o = document.createComment("No Permission"), n = l.parentNode;
30
+ if (n) {
31
+ const i = a.component;
32
+ i ? i.props.style = { display: "none" } : n.replaceChild(o, l);
32
33
  }
33
34
  }
34
- }, De = (l) => {
35
- var n, p;
36
- const t = Pe(), { url: e, role: a, permit: s } = l;
37
- if (Z(a) && Z(s))
35
+ }, Ke = (l) => {
36
+ var i, p;
37
+ const a = $e(), { url: e, role: t, permit: o } = l;
38
+ if (ie(t) && ie(o))
38
39
  return !0;
39
- const u = e ?? ((p = (n = window.location.hash) == null ? void 0 : n.split("#")) == null ? void 0 : p[1]) ?? window.location.pathname;
40
- if (Ce.VITE_PERMISSION_MODE === "role")
41
- return Z(a) ? !0 : t.hasRole(a);
42
- if (Ce.VITE_PERMISSION_MODE === "permit") {
43
- let d = !1, i = !1;
44
- return Z(a) || (d = t.hasRole(a)), t.isAdmin() ? d : (Z(s) || (i = t.hasPermit(u, s)), d || i);
40
+ const n = e ?? ((p = (i = window.location.hash) == null ? void 0 : i.split("#")) == null ? void 0 : p[1]) ?? window.location.pathname;
41
+ if (Oe.VITE_PERMISSION_MODE === "role")
42
+ return ie(t) ? !0 : a.hasRole(t);
43
+ if (Oe.VITE_PERMISSION_MODE === "permit") {
44
+ let d = !1, u = !1;
45
+ return ie(t) || (d = a.hasRole(t)), a.isAdmin() ? d : (ie(o) || (u = a.hasPermit(n, o)), d || u);
45
46
  }
46
47
  return !1;
47
- }, Qa = {
48
- mounted(l, t, e) {
49
- const a = t.value || {}, s = t.arg || "remove", u = a.behavior || s, n = De(a);
50
- $e(l, e, n, u);
48
+ }, ca = {
49
+ mounted(l, a, e) {
50
+ const t = a.value || {}, o = a.arg || "remove", n = t.behavior || o, i = Ke(t);
51
+ ze(l, e, i, n);
51
52
  },
52
- updated(l, t, e) {
53
- const a = t.value || {}, s = t.arg || "remove", u = a.behavior || s, n = De(a);
54
- $e(l, e, n, u);
53
+ updated(l, a, e) {
54
+ const t = a.value || {}, o = a.arg || "remove", n = t.behavior || o, i = Ke(t);
55
+ ze(l, e, i, n);
55
56
  }
56
- }, Ga = {
57
- mounted: (l, t) => {
57
+ }, da = {
58
+ mounted: (l, a) => {
58
59
  l.addEventListener("keydown", (e) => {
59
- e.key === "Enter" && t.value();
60
+ e.key === "Enter" && a.value();
60
61
  });
61
62
  },
62
63
  unmounted: (l) => {
63
64
  l.removeEventListener("keydown", () => {
64
65
  });
65
66
  }
66
- }, pe = {
67
- auth: Qa,
68
- submit: Ga
69
- }, al = (l, t) => ((t || Object.keys(pe)).forEach((a) => {
70
- a in pe && l.directive(a, pe[a]);
71
- }), l), W = (l, t) => {
72
- const e = l.find((a) => a.key === t);
67
+ }, ke = {
68
+ auth: ca,
69
+ submit: da
70
+ }, Tl = (l, a) => ((a || Object.keys(ke)).forEach((t) => {
71
+ t in ke && l.directive(t, ke[t]);
72
+ }), l), ae = (l, a) => {
73
+ const e = l.find((t) => t.key === a);
73
74
  if (e)
74
75
  return e;
75
- for (const a of l)
76
- if (a.children) {
77
- const s = W(a.children, t);
78
- if (s)
79
- return s;
76
+ for (const t of l)
77
+ if (t.children) {
78
+ const o = ae(t.children, a);
79
+ if (o)
80
+ return o;
80
81
  }
81
- }, ke = (l, t, e) => {
82
- const a = [], s = [];
83
- return e || (e = [...l]), e.length && e.forEach((u, n) => {
82
+ }, Me = (l, a, e) => {
83
+ const t = [], o = [];
84
+ return e || (e = [...l]), e.length && e.forEach((n, i) => {
84
85
  let p;
85
- if (typeof u == "string") {
86
- const d = W(l, u);
87
- p = d ? { ...d } : { key: u, label: u };
86
+ if (typeof n == "string") {
87
+ const d = ae(l, n);
88
+ p = d ? { ...d } : { key: n, label: n };
88
89
  } else {
89
- const d = W(l, u.key);
90
- p = d ? { ...d, ...u } : { ...u };
90
+ const d = ae(l, n.key);
91
+ p = d ? { ...d, ...n } : { ...n };
91
92
  }
92
- p.click || (p.click = (d, i, f) => {
93
- i && (i.rowData.value = f), p.formVisible ? (p.formVisible.value = !1, setTimeout(() => {
93
+ p.click || (p.click = (d, u, v) => {
94
+ u && (u.rowData.value = v), p.formVisible ? (p.formVisible.value = !1, setTimeout(() => {
94
95
  p.formVisible.value = !0;
95
- }, 1)) : le.warning("未配置点击处理事件!");
96
- }), t === 0 || n < t ? a.push(p) : s.push(p);
97
- }), { buttons: a, menus: s };
98
- }, j = (l, t) => l.disabled && typeof l.disabled == "function" ? l.disabled(t) : l.disabled, J = (l, t) => l.visible && typeof l.visible == "function" ? l.visible(t) : l.visible ?? !0, Ja = (l, t) => {
99
- t.reload.value = !0;
100
- }, Xa = (l, t) => {
101
- t.searchBar.value = !t.searchBar.value;
102
- }, Za = (l, t) => {
103
- switch (t.tableSize.value) {
96
+ }, 1)) : q.warning("未配置点击处理事件!");
97
+ }), a === 0 || i < a ? t.push(p) : o.push(p);
98
+ }), { buttons: t, menus: o };
99
+ }, le = (l, a) => l.disabled && typeof l.disabled == "function" ? l.disabled(a) : l.disabled, se = (l, a) => l.visible && typeof l.visible == "function" ? l.visible(a) : l.visible ?? !0, pa = (l, a) => {
100
+ a.reload.value = !0;
101
+ }, fa = (l, a) => {
102
+ a.searchBar.value = !a.searchBar.value;
103
+ }, va = (l, a) => {
104
+ switch (a.tableSize.value) {
104
105
  case "large":
105
- t.tableSize.value = "middle";
106
+ a.tableSize.value = "middle";
106
107
  break;
107
108
  case "middle":
108
- t.tableSize.value = "small";
109
+ a.tableSize.value = "small";
109
110
  break;
110
111
  case "small":
111
- t.tableSize.value = "large";
112
+ a.tableSize.value = "large";
112
113
  break;
113
114
  }
114
- }, et = (l, t) => {
115
- t.selectable.value = !t.selectable.value, t.selectable.value || (t.selectKeys.value = [], t.selectRows.value = []);
116
- }, at = (l, t) => {
117
- t.rowExpand.value = !t.rowExpand.value;
118
- }, Ie = (l, t) => {
119
- t.selectable.value = !t.selectable.value;
120
- }, V = (l, t, e, a, s) => {
121
- (!l.confirm || s) && l.click && (t ? l.click(t, e, a) : l.click(null, e, a)), lt(l);
122
- }, tt = (l, t) => {
123
- t.selectable.value = !t.selectable.value;
124
- }, He = () => {
125
- const l = he();
115
+ }, ma = (l, a) => {
116
+ a.selectable.value = !a.selectable.value, a.selectable.value || (a.selectKeys.value = [], a.selectRows.value = []);
117
+ }, ha = (l, a) => {
118
+ a.rowExpand.value = !a.rowExpand.value;
119
+ }, Ve = (l, a) => {
120
+ a.selectable.value = !a.selectable.value;
121
+ }, J = (l, a, e, t, o) => {
122
+ (!l.confirm || o) && l.click && (a ? l.click(a, e, t) : l.click(null, e, t)), ba(l);
123
+ }, ga = (l, a) => {
124
+ a.selectable.value = !a.selectable.value;
125
+ }, st = () => {
126
+ const l = Te();
126
127
  l.setFullscreen(!l.fullscreen);
127
- }, lt = (l, t) => {
128
+ }, ba = (l, a) => {
128
129
  (l.icons || l.labels) && (l.iconStatus = l.iconStatus || 0, l.iconStatus += 1, l.labels && l.labels.length && (l.label = l.labels[l.iconStatus % l.labels.length]), l.icons && l.icons.length && (l.icon = l.icons[l.iconStatus % l.icons.length]));
129
- }, rt = (l, t) => {
130
- t ? delete l.visible : l.visible = !1;
131
- }, Ee = [
130
+ }, ya = (l, a) => {
131
+ a ? delete l.visible : l.visible = !1;
132
+ }, je = [
132
133
  {
133
134
  key: "Reload",
134
135
  label: "刷新表格",
135
136
  icon: "icon-reload",
136
- click: Ja
137
+ click: pa
137
138
  },
138
139
  {
139
140
  key: "Query",
@@ -141,20 +142,20 @@ const $e = (l, t, e, a = "remove") => {
141
142
  labels: ["展开搜索栏", "折叠搜索栏"],
142
143
  icon: "icon-search",
143
144
  iconStatus: 0,
144
- click: Xa
145
+ click: fa
145
146
  },
146
147
  {
147
148
  key: "RowHeight",
148
149
  label: "行高调整",
149
150
  icon: "icon-row-height",
150
- click: Za
151
+ click: va
151
152
  },
152
153
  {
153
154
  key: "tool.multiple.checkbox",
154
155
  label: "显示多选框",
155
156
  labels: ["显示多选框", "隐藏多选框"],
156
157
  icon: "icon-checkbox",
157
- click: et
158
+ click: ma
158
159
  },
159
160
  {
160
161
  key: "tool.expand.rows",
@@ -163,7 +164,7 @@ const $e = (l, t, e, a = "remove") => {
163
164
  icon: "icon-row-collapse",
164
165
  iconStatus: 0,
165
166
  icons: ["icon-row-collapse", "icon-row-expand"],
166
- click: at
167
+ click: ha
167
168
  },
168
169
  {
169
170
  key: "tool.export.excel",
@@ -173,12 +174,12 @@ const $e = (l, t, e, a = "remove") => {
173
174
  {
174
175
  key: "tool.export.excel.all",
175
176
  label: "全部记录",
176
- click: Ie
177
+ click: Ve
177
178
  },
178
179
  {
179
180
  key: "tool.export.excel.selected",
180
181
  label: "选中的记录",
181
- click: Ie
182
+ click: Ve
182
183
  }
183
184
  ]
184
185
  },
@@ -190,7 +191,7 @@ const $e = (l, t, e, a = "remove") => {
190
191
  {
191
192
  key: "tool.export.pdf.selected",
192
193
  label: "选中的记录",
193
- click: tt
194
+ click: ga
194
195
  }
195
196
  ]
196
197
  },
@@ -210,76 +211,76 @@ const $e = (l, t, e, a = "remove") => {
210
211
  icon: "icon-fullscreen",
211
212
  iconStatus: 0,
212
213
  icons: ["icon-fullscreen", "icon-exitscreen"],
213
- click: He
214
+ click: st
214
215
  }
215
- ], st = (l) => {
216
+ ], xa = (l) => {
216
217
  if (!l.tools || l.tools.length > 0) {
217
- const t = [];
218
- return l.tools ? t.push(...l.tools) : t.push(...Ee), { tools: ke(Ee, 0, t).buttons };
218
+ const a = [];
219
+ return l.tools ? a.push(...l.tools) : a.push(...je), { tools: Me(je, 0, a).buttons };
219
220
  }
220
221
  return {
221
222
  tools: []
222
223
  };
223
224
  };
224
- var ot = /* @__PURE__ */ ((l) => (l.SYS_CONFIG = "SYS_CONFIG_", l.APP_MENU = "APP_MENU_", l.DICT_TYPE = "DICT_TYPE_", l.HOST_INFO = "HOST_INFO_", l.APP_PERMITS = "APP_PERMITS_", l.USER_SETTINGS = "USER_SETTINGS_", l.DICT_DATA = "DICT_DATA_", l.COMMON_OPTIONS = "COMMON_OPTIONS_", l))(ot || {});
225
- class Qe {
225
+ var _a = /* @__PURE__ */ ((l) => (l.SYS_CONFIG = "SYS_CONFIG_", l.APP_MENU = "APP_MENU_", l.DICT_TYPE = "DICT_TYPE_", l.HOST_INFO = "HOST_INFO_", l.APP_PERMITS = "APP_PERMITS_", l.USER_SETTINGS = "USER_SETTINGS_", l.DICT_DATA = "DICT_DATA_", l.COMMON_OPTIONS = "COMMON_OPTIONS_", l))(_a || {});
226
+ class ot {
226
227
  /**
227
228
  * 设置缓存数据(带服务器时间)
228
229
  */
229
- static setWithServerTime(t, e, a) {
230
- const s = {
230
+ static setWithServerTime(a, e, t) {
231
+ const o = {
231
232
  data: e,
232
- lastTime: a
233
+ lastTime: t
233
234
  };
234
- oe.set({ key: t, storage: "local" }, s);
235
+ fe.set({ key: a, storage: "local" }, o);
235
236
  }
236
237
  /**
237
238
  * 设置缓存数据
238
239
  */
239
- static setData(t, e) {
240
- oe.set({ key: t, storage: "local" }, e);
240
+ static setData(a, e) {
241
+ fe.set({ key: a, storage: "local" }, e);
241
242
  }
242
243
  /**
243
244
  * 获取缓存数据
244
245
  */
245
- static getData(t) {
246
- const e = oe.get({ key: t, storage: "local" });
247
- return e && Qe.isTimedData(e) ? e.data : e ?? null;
246
+ static getData(a) {
247
+ const e = fe.get({ key: a, storage: "local" });
248
+ return e && ot.isTimedData(e) ? e.data : e ?? null;
248
249
  }
249
250
  /**
250
251
  * 清除缓存
251
252
  */
252
- static remove(t) {
253
- oe.remove({ key: t, storage: "local" });
253
+ static remove(a) {
254
+ fe.remove({ key: a, storage: "local" });
254
255
  }
255
256
  /**
256
257
  * 清理指定前缀的缓存 (基于 localStorage 实现,因为 FrontCache 未提供此方法)
257
258
  */
258
- static clearByPrefix(t) {
259
+ static clearByPrefix(a) {
259
260
  for (let e = 0; e < localStorage.length; e++) {
260
- const a = localStorage.key(e);
261
- a && a.startsWith("frontCache::" + t) && localStorage.removeItem(a);
261
+ const t = localStorage.key(e);
262
+ t && t.startsWith("frontCache::" + a) && localStorage.removeItem(t);
262
263
  }
263
264
  }
264
265
  /**
265
266
  * 清理所有缓存
266
267
  */
267
268
  static clearAll() {
268
- for (let t = localStorage.length - 1; t >= 0; t--) {
269
- const e = localStorage.key(t);
269
+ for (let a = localStorage.length - 1; a >= 0; a--) {
270
+ const e = localStorage.key(a);
270
271
  e && e.startsWith("frontCache::") && localStorage.removeItem(e);
271
272
  }
272
273
  }
273
274
  /**
274
275
  * 判断是否是带时间戳的数据
275
276
  */
276
- static isTimedData(t) {
277
- return t && typeof t == "object" && "data" in t && "lastTime" in t && typeof t.lastTime == "number";
277
+ static isTimedData(a) {
278
+ return a && typeof a == "object" && "data" in a && "lastTime" in a && typeof a.lastTime == "number";
278
279
  }
279
280
  }
280
- async function tl() {
281
+ async function Fl() {
281
282
  try {
282
- const l = await Le(
283
+ const l = await Fe(
283
284
  {
284
285
  api: "PLATFORM_API",
285
286
  url: "/api/SysCacheSvr/getLastTime",
@@ -287,18 +288,18 @@ async function tl() {
287
288
  },
288
289
  {}
289
290
  );
290
- if ((l == null ? void 0 : l.status) === ze.SUCCESS) {
291
- const t = l.data;
292
- Object.keys(t).forEach((e) => {
293
- const a = t[e];
294
- ["local", "session"].forEach((u) => {
295
- const n = u === "local" ? localStorage : sessionStorage;
296
- for (let p = 0; p < n.length; p++) {
297
- const d = n.key(p);
291
+ if ((l == null ? void 0 : l.status) === Ie.SUCCESS) {
292
+ const a = l.data;
293
+ Object.keys(a).forEach((e) => {
294
+ const t = a[e];
295
+ ["local", "session"].forEach((n) => {
296
+ const i = n === "local" ? localStorage : sessionStorage;
297
+ for (let p = 0; p < i.length; p++) {
298
+ const d = i.key(p);
298
299
  if (d && d.endsWith(e))
299
300
  try {
300
- const i = JSON.parse(n.getItem(d));
301
- i && typeof i == "object" && "lastTime" in i && typeof i.lastTime == "number" && i.lastTime !== a && n.removeItem(d);
301
+ const u = JSON.parse(i.getItem(d));
302
+ u && typeof u == "object" && "lastTime" in u && typeof u.lastTime == "number" && u.lastTime !== t && i.removeItem(d);
302
303
  } catch {
303
304
  continue;
304
305
  }
@@ -310,8 +311,8 @@ async function tl() {
310
311
  console.error("检查缓存更新失败", l);
311
312
  }
312
313
  }
313
- const ll = async (l, t) => {
314
- const e = await qe(l, t);
314
+ const Il = async (l, a) => {
315
+ const e = await rt(l, a);
315
316
  if (e.success)
316
317
  return {
317
318
  blobUrl: e.blobUrl,
@@ -320,15 +321,15 @@ const ll = async (l, t) => {
320
321
  // 不再返回blob对象,使用URL即可
321
322
  };
322
323
  throw new Error(e.error || "CSV转Excel失败");
323
- }, rl = async (l, t) => {
324
+ }, El = async (l, a) => {
324
325
  try {
325
- const a = new TextDecoder("utf-8").decode(l), s = await qe(a, t);
326
+ const t = new TextDecoder("utf-8").decode(l), o = await rt(t, a);
326
327
  return {
327
- success: s.success,
328
- blobUrl: s.blobUrl,
329
- fileName: s.fileName,
330
- error: s.error,
331
- csvContent: a
328
+ success: o.success,
329
+ blobUrl: o.blobUrl,
330
+ fileName: o.fileName,
331
+ error: o.error,
332
+ csvContent: t
332
333
  // 保留原始CSV内容
333
334
  };
334
335
  } catch (e) {
@@ -337,67 +338,67 @@ const ll = async (l, t) => {
337
338
  error: e instanceof Error ? e.message : "未知错误"
338
339
  };
339
340
  }
340
- }, Ge = (l) => l ? Array.isArray(l) ? l.join(".") : l : "", Je = (l) => l.map((t) => ({
341
- label: t.title,
342
- value: Ge(t.dataIndex) || t.key || ""
343
- })), Xe = (l, t) => l.map((e, a) => {
344
- const s = { ...e };
345
- return t.forEach((u) => {
346
- const n = Ge(u.dataIndex) || u.key;
347
- n && u.customRender && (s[n] = u.customRender({
348
- text: e[n],
341
+ }, nt = (l) => l ? Array.isArray(l) ? l.join(".") : l : "", it = (l) => l.map((a) => ({
342
+ label: a.title,
343
+ value: nt(a.dataIndex) || a.key || ""
344
+ })), ut = (l, a) => l.map((e, t) => {
345
+ const o = { ...e };
346
+ return a.forEach((n) => {
347
+ const i = nt(n.dataIndex) || n.key;
348
+ i && n.customRender && (o[i] = n.customRender({
349
+ text: e[i],
349
350
  record: e,
350
- index: a,
351
- column: u
351
+ index: t,
352
+ column: n
352
353
  }));
353
- }), s;
354
- }), Ze = async (l, t, e) => {
354
+ }), o;
355
+ }), ct = async (l, a, e) => {
355
356
  try {
356
- const s = (await import("@json2csv/plainjs")).Parser, n = new s({ fields: t }).parse(e), p = new Blob([`\uFEFF${n}`], { type: "text/csv" });
357
- Ha(p, l);
358
- } catch (a) {
359
- console.error("导出失败:", a), le.error("文件导出失败,请稍后重试");
357
+ const o = (await import("@json2csv/plainjs")).Parser, i = new o({ fields: a }).parse(e), p = new Blob([`\uFEFF${i}`], { type: "text/csv" });
358
+ ua(p, l);
359
+ } catch (t) {
360
+ console.error("导出失败:", t), q.error("文件导出失败,请稍后重试");
360
361
  }
361
- }, sl = async (l, t, e) => {
362
+ }, Dl = async (l, a, e) => {
362
363
  try {
363
- const a = ea(l), s = t.filter((p) => p.visible !== !1 && p.export !== !1), u = Je(s), n = Xe(e, s);
364
- await Ze(a, u, n);
365
- } catch (a) {
366
- console.error("导出失败:", a), le.error("文件导出失败,请稍后重试");
364
+ const t = dt(l), o = a.filter((p) => p.visible !== !1 && p.export !== !1), n = it(o), i = ut(e, o);
365
+ await ct(t, n, i);
366
+ } catch (t) {
367
+ console.error("导出失败:", t), q.error("文件导出失败,请稍后重试");
367
368
  }
368
- }, ea = (l) => {
369
- const t = /\{([^}]+)\}/g;
370
- return l.replace(t, (e, a) => ve().format(a));
371
- }, ol = async (l, t, e, a) => {
369
+ }, dt = (l) => {
370
+ const a = /\{([^}]+)\}/g;
371
+ return l.replace(a, (e, t) => Ce().format(t));
372
+ }, Pl = async (l, a, e, t) => {
372
373
  try {
373
- const s = ea(l), u = t.filter((i) => i.visible !== !1), n = Je(u);
374
+ const o = dt(l), n = a.filter((u) => u.visible !== !1), i = it(n);
374
375
  let p = e.page, d = e.gridQuery;
375
- return a.api || (a.api = p.api), a.authorize === void 0 && (a.authorize = p.authorize), e.isGridLoading.value = !0, Le(a, d).then(async (i) => {
376
- if (e.isGridLoading.value = !1, (i == null ? void 0 : i.status) === ze.SUCCESS) {
377
- if (i.data) {
378
- let f = i.data;
379
- const o = Xe(f, u);
380
- await Ze(s, n, o);
376
+ return t.api || (t.api = p.api), t.authorize === void 0 && (t.authorize = p.authorize), e.isGridLoading.value = !0, Fe(t, d).then(async (u) => {
377
+ if (e.isGridLoading.value = !1, (u == null ? void 0 : u.status) === Ie.SUCCESS) {
378
+ if (u.data) {
379
+ let v = u.data;
380
+ const s = ut(v, n);
381
+ await ct(o, i, s);
381
382
  }
382
- } else if ((i == null ? void 0 : i.errno) == la) {
383
- Pe().logout(!1);
383
+ } else if ((u == null ? void 0 : u.errno) == ft) {
384
+ $e().logout(!1);
384
385
  return;
385
386
  }
386
387
  });
387
- } catch (s) {
388
- console.error("导出失败:", s), le.error("文件导出失败,请稍后重试");
388
+ } catch (o) {
389
+ console.error("导出失败:", o), q.error("文件导出失败,请稍后重试");
389
390
  }
390
- }, nl = /* @__PURE__ */ S({
391
+ }, Ul = /* @__PURE__ */ T({
391
392
  __name: "fullscreen",
392
393
  setup(l) {
393
- const t = he();
394
- return (e, a) => (v(), b(U, {
395
- onClick: ae(r(He), ["stop"]),
396
- icon: r(t).fullscreen ? "icon-exitscreen" : "icon-fullscreen",
394
+ const a = Te();
395
+ return (e, t) => (f(), b(K, {
396
+ onClick: ce(r(st), ["stop"]),
397
+ icon: r(a).fullscreen ? "icon-exitscreen" : "icon-fullscreen",
397
398
  class: "w-[17px] h-[17px]"
398
399
  }, null, 8, ["onClick", "icon"]));
399
400
  }
400
- }), nt = { class: "ml-2" }, it = /* @__PURE__ */ S({
401
+ }), ka = { class: "ml-2" }, wa = /* @__PURE__ */ T({
401
402
  inheritAttrs: !1,
402
403
  __name: "helper",
403
404
  props: {
@@ -407,29 +408,29 @@ const ll = async (l, t) => {
407
408
  placement: {}
408
409
  },
409
410
  setup(l) {
410
- const t = X();
411
- return (e, a) => (v(), b(r(Ea), {
411
+ const a = oe();
412
+ return (e, t) => (f(), b(r(Vt), {
412
413
  placement: e.placement ?? "topRight"
413
414
  }, {
414
415
  content: h(() => [
415
- I(e.$slots, "default", {}, () => [
416
- D("div", {
417
- class: E(["text-[14px]", [e.maxWidth]])
418
- }, P(e.text), 3)
416
+ D(e.$slots, "default", {}, () => [
417
+ I("div", {
418
+ class: U(["text-[14px]", [e.maxWidth]])
419
+ }, M(e.text), 3)
419
420
  ])
420
421
  ]),
421
422
  default: h(() => [
422
- D("span", nt, [
423
- k(U, F({
423
+ I("span", ka, [
424
+ S(K, L({
424
425
  icon: "icon-question-circle",
425
426
  class: ["text-[#888]", [e.size ? "w-" + e.size + " h-" + e.size : "w-5 h-5"]]
426
- }, r(t)), null, 16, ["class"])
427
+ }, r(a)), null, 16, ["class"])
427
428
  ])
428
429
  ]),
429
430
  _: 3
430
431
  }, 8, ["placement"]));
431
432
  }
432
- }), il = /* @__PURE__ */ S({
433
+ }), Ll = /* @__PURE__ */ T({
433
434
  __name: "layoutIcon",
434
435
  props: {
435
436
  icon: {
@@ -440,20 +441,20 @@ const ll = async (l, t) => {
440
441
  }
441
442
  },
442
443
  setup(l) {
443
- const t = l, a = ra({
444
- iconUrl: `${Sa.MICROLAYOUT_ICONS}`,
444
+ const a = l, t = vt({
445
+ iconUrl: `${Ot.MICROLAYOUT_ICONS}`,
445
446
  monoColor: !0,
446
- icon: t.icon,
447
- icons: t.icons
447
+ icon: a.icon,
448
+ icons: a.icons
448
449
  });
449
- return (s, u) => l.icon || l.icons ? (v(), b(r(a), F({
450
+ return (o, n) => l.icon || l.icons ? (f(), b(r(t), L({
450
451
  key: 0,
451
452
  icon: l.icon,
452
453
  icons: l.icons,
453
454
  class: ["align-middle"]
454
- }, s.$attrs), null, 16, ["icon", "icons"])) : y("", !0);
455
+ }, o.$attrs), null, 16, ["icon", "icons"])) : C("", !0);
455
456
  }
456
- }), ut = { class: "hover:bg-gray-200 w-[24px] h-[24px] rounded-md" }, ul = /* @__PURE__ */ S({
457
+ }), Ca = { class: "hover:bg-gray-200 w-[24px] h-[24px] rounded-md" }, Ml = /* @__PURE__ */ T({
457
458
  __name: "index",
458
459
  props: {
459
460
  saveText: {},
@@ -464,25 +465,25 @@ const ll = async (l, t) => {
464
465
  drawerSaveAs: { type: Function }
465
466
  },
466
467
  setup(l) {
467
- const { useToken: t } = Ve, { token: e } = t(), a = _(!1), s = l, u = s.editorCtrl;
468
- ge(q.EditorControl, u), T(
469
- () => u.visible.value,
470
- (i) => {
471
- a.value = i ?? !1;
468
+ const { useToken: a } = Ze, { token: e } = a(), t = y(!1), o = l, n = o.editorCtrl;
469
+ Ee(re.EditorControl, n), F(
470
+ () => n.visible.value,
471
+ (u) => {
472
+ t.value = u ?? !1;
472
473
  }
473
- ), K(() => {
474
- a.value = u.visible.value ?? !1;
474
+ ), ee(() => {
475
+ t.value = n.visible.value ?? !1;
475
476
  });
476
- const n = () => {
477
- s.drawerSave ? s.drawerSave() : u && Fe(u);
477
+ const i = () => {
478
+ o.drawerSave ? o.drawerSave() : n && Ye(n);
478
479
  }, p = () => {
479
- s.drawerSaveAs ? s.drawerSaveAs() : u && sa(u);
480
+ o.drawerSaveAs ? o.drawerSaveAs() : n && mt(n);
480
481
  }, d = () => {
481
- oa(u);
482
+ ht(n);
482
483
  };
483
- return (i, f) => (v(), b(r(Pa), {
484
- open: a.value,
485
- "onUpdate:open": f[0] || (f[0] = (o) => a.value = o),
484
+ return (u, v) => (f(), b(r(jt), {
485
+ open: t.value,
486
+ "onUpdate:open": v[0] || (v[0] = (s) => t.value = s),
486
487
  "get-container": !1,
487
488
  closable: !1,
488
489
  "header-style": {
@@ -504,9 +505,9 @@ const ll = async (l, t) => {
504
505
  onClose: d
505
506
  }, {
506
507
  extra: h(() => [
507
- I(i.$slots, "extra", {}, () => [
508
- D("div", ut, [
509
- k(r(U), {
508
+ D(u.$slots, "extra", {}, () => [
509
+ I("div", Ca, [
510
+ S(r(K), {
510
511
  class: "top-[-2px] left-[2px] w-6 h-6",
511
512
  icon: "icon-new",
512
513
  angle: 45,
@@ -520,43 +521,43 @@ const ll = async (l, t) => {
520
521
  ])
521
522
  ]),
522
523
  default: h(() => [
523
- I(i.$slots, "default")
524
+ D(u.$slots, "default")
524
525
  ]),
525
526
  footer: h(() => [
526
- I(i.$slots, "footer", {}, () => [
527
- k(r(te), null, {
527
+ D(u.$slots, "footer", {}, () => [
528
+ S(r(de), null, {
528
529
  default: h(() => [
529
- i.cancelText !== "" ? (v(), b(r(A), {
530
+ u.cancelText !== "" ? (f(), b(r(W), {
530
531
  key: 0,
531
532
  onClick: d
532
533
  }, {
533
534
  default: h(() => [
534
- N(P(i.cancelText ?? "取消"), 1)
535
+ O(M(u.cancelText ?? "取消"), 1)
535
536
  ]),
536
537
  _: 1
537
- })) : y("", !0),
538
- i.saveAsText !== "" && r(u).saveAsBtnVisible !== !1 ? (v(), b(r(A), {
538
+ })) : C("", !0),
539
+ u.saveAsText !== "" && r(n).saveAsBtnVisible !== !1 ? (f(), b(r(W), {
539
540
  key: 1,
540
541
  onClick: p,
541
542
  type: "primary",
542
- loading: r(u).isFormSaving.value
543
+ loading: r(n).isFormSaving.value
543
544
  }, {
544
545
  default: h(() => [
545
- N(P(i.saveAsText ?? "另存为"), 1)
546
+ O(M(u.saveAsText ?? "另存为"), 1)
546
547
  ]),
547
548
  _: 1
548
- }, 8, ["loading"])) : y("", !0),
549
- i.saveText !== "" && r(u).saveBtnVisible !== !1 ? (v(), b(r(A), {
549
+ }, 8, ["loading"])) : C("", !0),
550
+ u.saveText !== "" && r(n).saveBtnVisible !== !1 ? (f(), b(r(W), {
550
551
  key: 2,
551
- onClick: n,
552
+ onClick: i,
552
553
  type: "primary",
553
- loading: r(u).isFormSaving.value
554
+ loading: r(n).isFormSaving.value
554
555
  }, {
555
556
  default: h(() => [
556
- N(P(i.saveText ?? "保存"), 1)
557
+ O(M(u.saveText ?? "保存"), 1)
557
558
  ]),
558
559
  _: 1
559
- }, 8, ["loading"])) : y("", !0)
560
+ }, 8, ["loading"])) : C("", !0)
560
561
  ]),
561
562
  _: 1
562
563
  })
@@ -565,7 +566,7 @@ const ll = async (l, t) => {
565
566
  _: 3
566
567
  }, 8, ["open", "header-style"]));
567
568
  }
568
- }), cl = /* @__PURE__ */ S({
569
+ }), Bl = /* @__PURE__ */ T({
569
570
  __name: "index",
570
571
  props: {
571
572
  labelWidth: {},
@@ -573,13 +574,13 @@ const ll = async (l, t) => {
573
574
  editorCtrl: {}
574
575
  },
575
576
  setup(l) {
576
- const t = l, e = t.editorCtrl ?? ie(q.EditorControl, void 0);
577
- return ge(q.LabelWidth, t.labelWidth), (a, s) => {
578
- const u = re("submit");
579
- return H((v(), b(r(Ye), {
580
- "label-col": { flex: t.labelWidth ?? "85px" },
577
+ const a = l, e = a.editorCtrl ?? me(re.EditorControl, void 0);
578
+ return Ee(re.LabelWidth, a.labelWidth), (t, o) => {
579
+ const n = ne("submit");
580
+ return X((f(), b(r(et), {
581
+ "label-col": { flex: a.labelWidth ?? "85px" },
581
582
  "wrapper-col": {
582
- flex: t.wrapperWidth ?? "1 0 280px"
583
+ flex: a.wrapperWidth ?? "1 0 280px"
583
584
  },
584
585
  style: {
585
586
  display: "flex",
@@ -587,23 +588,23 @@ const ll = async (l, t) => {
587
588
  }
588
589
  }, {
589
590
  default: h(() => [
590
- I(a.$slots, "default")
591
+ D(t.$slots, "default")
591
592
  ]),
592
593
  _: 3
593
594
  }, 8, ["label-col", "wrapper-col"])), [
594
595
  [
595
- u,
596
+ n,
596
597
  () => {
597
- r(e) && r(Fe)(r(e));
598
+ r(e) && r(Ye)(r(e));
598
599
  }
599
600
  ]
600
601
  ]);
601
602
  };
602
603
  }
603
- }), ct = {
604
+ }), Sa = {
604
605
  key: 0,
605
606
  class: "flex-grow"
606
- }, dt = { class: "w-8 mt-[-2px]" }, dl = /* @__PURE__ */ S({
607
+ }, $a = { class: "w-8 mt-[-2px]" }, Nl = /* @__PURE__ */ T({
607
608
  inheritAttrs: !1,
608
609
  __name: "formItem",
609
610
  props: {
@@ -615,66 +616,66 @@ const ll = async (l, t) => {
615
616
  bottomMargin: {}
616
617
  },
617
618
  setup(l) {
618
- const t = l, e = X(), a = ie(q.EditorControl, void 0), s = ie(q.LabelWidth, "85px") ?? "85px", u = Ne(t, a), n = _(!1);
619
+ const a = l, e = oe(), t = me(re.EditorControl, void 0), o = me(re.LabelWidth, "85px") ?? "85px", n = We(a, t), i = y(!1);
619
620
  setTimeout(() => {
620
- n.value = !0;
621
+ i.value = !0;
621
622
  }, 30);
622
- const p = Q(() => {
623
- var i;
624
- if (!t.rule)
623
+ const p = Y(() => {
624
+ var u;
625
+ if (!a.rule)
625
626
  return !1;
626
- const d = Me(t.rule.split("."), (i = a == null ? void 0 : a.formRules) == null ? void 0 : i.value);
627
- return d ? (d.required || (u.value.errClass = "", u.value.msg = ""), d.required ?? !0) : (Fa.error(`"${t.label}" 的验证规则 \`${t.rule}\` 不存在`), u.value.errClass = "text-[#ff4d4f]", u.value.msg = `规则 \`${t.rule}\` 不存在,请检查代码!`, !0);
627
+ const d = qe(a.rule.split("."), (u = t == null ? void 0 : t.formRules) == null ? void 0 : u.value);
628
+ return d ? (d.required || (n.value.errClass = "", n.value.msg = ""), d.required ?? !0) : (Yt.error(`"${a.label}" 的验证规则 \`${a.rule}\` 不存在`), n.value.errClass = "text-[#ff4d4f]", n.value.msg = `规则 \`${a.rule}\` 不存在,请检查代码!`, !0);
628
629
  });
629
- return (d, i) => (v(), w("div", {
630
- class: E(["relative", d.bottomMargin ? d.bottomMargin : "mb-1"])
630
+ return (d, u) => (f(), w("div", {
631
+ class: U(["relative", d.bottomMargin ? d.bottomMargin : "mb-1"])
631
632
  }, [
632
- n.value ? (v(), b(r(Ke), F({
633
+ i.value ? (f(), b(r(tt), L({
633
634
  key: 0,
634
635
  required: p.value,
635
636
  class: ["relative", [d.nextLine ? "mb-0" : d.rule ? "" : "mb-3"]]
636
637
  }, r(e)), {
637
638
  label: h(() => [
638
- D("span", {
639
- class: E([r(u).errClass ? "text-[#ff4d4f]" : "", "w-full"])
640
- }, P(d.label), 3)
639
+ I("span", {
640
+ class: U([r(n).errClass ? "text-[#ff4d4f]" : "", "w-full"])
641
+ }, M(d.label), 3)
641
642
  ]),
642
643
  default: h(() => [
643
- D("div", {
644
- class: E(["flex items-center", d.width ? d.width : "w-full"])
644
+ I("div", {
645
+ class: U(["flex items-center", d.width ? d.width : "w-full"])
645
646
  }, [
646
- d.nextLine ? y("", !0) : (v(), w("div", ct, [
647
- I(d.$slots, "default")
647
+ d.nextLine ? C("", !0) : (f(), w("div", Sa, [
648
+ D(d.$slots, "default")
648
649
  ])),
649
- D("div", dt, [
650
- I(d.$slots, "helper", {}, () => [
651
- d.helper ? (v(), b(r(it), {
650
+ I("div", $a, [
651
+ D(d.$slots, "helper", {}, () => [
652
+ d.helper ? (f(), b(r(wa), {
652
653
  key: 0,
653
654
  text: d.helper
654
- }, null, 8, ["text"])) : y("", !0)
655
+ }, null, 8, ["text"])) : C("", !0)
655
656
  ])
656
657
  ])
657
658
  ], 2)
658
659
  ]),
659
660
  _: 3
660
- }, 16, ["required", "class"])) : y("", !0),
661
- d.nextLine ? (v(), w("div", {
661
+ }, 16, ["required", "class"])) : C("", !0),
662
+ d.nextLine ? (f(), w("div", {
662
663
  key: 1,
663
- class: E(["w-[95%] flex items-center relative", [d.nextLine ? d.rule ? "mb-7" : "mb-3" : ""]])
664
+ class: U(["w-[95%] flex items-center relative", [d.nextLine ? d.rule ? "mb-7" : "mb-3" : ""]])
664
665
  }, [
665
- I(d.$slots, "default")
666
- ], 2)) : y("", !0),
667
- r(u).errClass ? (v(), w("span", {
666
+ D(d.$slots, "default")
667
+ ], 2)) : C("", !0),
668
+ r(n).errClass ? (f(), w("span", {
668
669
  key: 2,
669
- style: be({ left: d.nextLine ? "2px" : r(s) }),
670
+ style: De({ left: d.nextLine ? "2px" : r(o) }),
670
671
  class: "absolute bottom-[3px] text-[12px] text-[#ff4d4fcc]"
671
- }, P(r(u).msg), 5)) : y("", !0)
672
+ }, M(r(n).msg), 5)) : C("", !0)
672
673
  ], 2));
673
674
  }
674
- }), pt = { class: "w-1/3 relative mb-1" }, ft = { class: "flex items-center w-[90%]" }, vt = { class: "flex-grow pl-1" }, mt = {
675
+ }), Ta = { class: "w-1/3 relative mb-1" }, Fa = { class: "flex items-center w-[90%]" }, Ia = { class: "flex-grow pl-1" }, Ea = {
675
676
  key: 0,
676
677
  class: "absolute bottom-[3px] left-[85px] text-[12px] text-[#ff4d4fcc] block"
677
- }, fe = /* @__PURE__ */ S({
678
+ }, we = /* @__PURE__ */ T({
678
679
  inheritAttrs: !1,
679
680
  __name: "searchItem",
680
681
  props: {
@@ -683,44 +684,44 @@ const ll = async (l, t) => {
683
684
  rule: {}
684
685
  },
685
686
  setup(l) {
686
- const t = l, e = X(), a = ie(q.EditorControl, void 0), s = Ne(t, a), u = Q(() => {
687
+ const a = l, e = oe(), t = me(re.EditorControl, void 0), o = We(a, t), n = Y(() => {
687
688
  var p;
688
- if (!t.rule)
689
+ if (!a.rule)
689
690
  return !1;
690
- const n = Me(t.rule.split("."), (p = a == null ? void 0 : a.formRules) == null ? void 0 : p.value);
691
- return n ? (n.required || (s.value.errClass = "", s.value.msg = ""), n.required ?? !0) : (le.error(`"${t.label}" 的验证规则 \`${t.rule}\` 不存在`), s.value.errClass = "text-[#ff4d4f]", s.value.msg = `规则 \`${t.rule}\` 不存在,请检查代码!`, !0);
691
+ const i = qe(a.rule.split("."), (p = t == null ? void 0 : t.formRules) == null ? void 0 : p.value);
692
+ return i ? (i.required || (o.value.errClass = "", o.value.msg = ""), i.required ?? !0) : (q.error(`"${a.label}" 的验证规则 \`${a.rule}\` 不存在`), o.value.errClass = "text-[#ff4d4f]", o.value.msg = `规则 \`${a.rule}\` 不存在,请检查代码!`, !0);
692
693
  });
693
- return (n, p) => (v(), w("div", pt, [
694
- k(r(Ke), F({
695
- required: u.value,
694
+ return (i, p) => (f(), w("div", Ta, [
695
+ S(r(tt), L({
696
+ required: n.value,
696
697
  class: "w-[90%] relative"
697
698
  }, r(e), {
698
- class: [n.rule ? "" : "mb-3", n.width],
699
+ class: [i.rule ? "" : "mb-3", i.width],
699
700
  labelCol: { span: 6 }
700
- }), Ue({
701
+ }), Xe({
701
702
  default: h(() => [
702
- D("div", ft, [
703
- D("div", vt, [
704
- I(n.$slots, "default")
703
+ I("div", Fa, [
704
+ I("div", Ia, [
705
+ D(i.$slots, "default")
705
706
  ])
706
707
  ])
707
708
  ]),
708
709
  _: 2
709
710
  }, [
710
- n.label ? {
711
+ i.label ? {
711
712
  name: "label",
712
713
  fn: h(() => [
713
- D("span", {
714
- class: E([r(s).errClass ? "text-[#ff4d4f]" : "", "w-full"])
715
- }, P(n.label), 3)
714
+ I("span", {
715
+ class: U([r(o).errClass ? "text-[#ff4d4f]" : "", "w-full"])
716
+ }, M(i.label), 3)
716
717
  ]),
717
718
  key: "0"
718
719
  } : void 0
719
720
  ]), 1040, ["required", "class"]),
720
- r(s).msg ? (v(), w("span", mt, P(r(s).msg), 1)) : y("", !0)
721
+ r(o).msg ? (f(), w("span", Ea, M(r(o).msg), 1)) : C("", !0)
721
722
  ]));
722
723
  }
723
- }), pl = /* @__PURE__ */ S({
724
+ }), Ol = /* @__PURE__ */ T({
724
725
  __name: "index",
725
726
  props: {
726
727
  search: {},
@@ -728,28 +729,28 @@ const ll = async (l, t) => {
728
729
  likeFields: {}
729
730
  },
730
731
  emits: ["update:search", "onsearch", "onreset"],
731
- setup(l, { emit: t }) {
732
- const e = l, a = t, s = _(0), u = _(0), n = _(0), p = (c) => {
732
+ setup(l, { emit: a }) {
733
+ const e = l, t = a, o = y(0), n = y(0), i = y(0), p = (c) => {
733
734
  let g = 0;
734
- for (let C = 0; C < c.length; C++)
735
- typeof c[C].type == "object" && g++;
735
+ for (let $ = 0; $ < c.length; $++)
736
+ typeof c[$].type == "object" && g++;
736
737
  return g;
737
- }, d = Ta(), i = () => {
738
- u.value = 0, n.value = 0, d.default && (u.value = p(d.default({}))), e.gridCtrl && e.gridCtrl.searchBar && d.control && (n.value = p(d.control({}))), s.value = 2 - (u.value + n.value) % 3;
738
+ }, d = Rt(), u = () => {
739
+ n.value = 0, i.value = 0, d.default && (n.value = p(d.default({}))), e.gridCtrl && e.gridCtrl.searchBar && d.control && (i.value = p(d.control({}))), o.value = 2 - (n.value + i.value) % 3;
739
740
  };
740
- T(
741
+ F(
741
742
  () => {
742
743
  var c;
743
744
  return (c = e.gridCtrl) == null ? void 0 : c.searchBar;
744
745
  },
745
746
  () => {
746
- i();
747
+ u();
747
748
  }
748
749
  );
749
- const f = JSON.parse(JSON.stringify(e.search));
750
- K(() => {
750
+ const v = JSON.parse(JSON.stringify(e.search));
751
+ ee(() => {
751
752
  var g;
752
- i();
753
+ u();
753
754
  let c = { ...e.search };
754
755
  e.gridCtrl && (e.gridCtrl.gridQuery = {
755
756
  ...e.gridCtrl.gridQuery,
@@ -759,28 +760,28 @@ const ll = async (l, t) => {
759
760
  }
760
761
  });
761
762
  });
762
- const o = () => {
763
+ const s = () => {
763
764
  var g;
764
765
  let c = { ...e.search };
765
766
  if (e.likeFields)
766
- for (const C of e.likeFields)
767
- c[C] && (c[C] = { $like: "%" + c[C] + "%" });
767
+ for (const $ of e.likeFields)
768
+ c[$] && (c[$] = { $like: "%" + c[$] + "%" });
768
769
  e.gridCtrl && (e.gridCtrl.gridQuery = {
769
770
  ...e.gridCtrl.gridQuery,
770
771
  Query: {
771
772
  ...(g = e.gridCtrl.gridQuery) == null ? void 0 : g.Query,
772
773
  ...c
773
774
  }
774
- }, e.gridCtrl.pageNo.value = 1, e.gridCtrl.reload.value = !0), a("onsearch", c);
775
+ }, e.gridCtrl.pageNo.value = 1, e.gridCtrl.reload.value = !0), t("onsearch", c);
775
776
  }, m = () => {
776
- const c = JSON.parse(JSON.stringify(f));
777
+ const c = JSON.parse(JSON.stringify(v));
777
778
  for (const g in e.search)
778
779
  c[g] === void 0 && (c[g] = void 0);
779
- a("update:search", c), a("onreset");
780
+ t("update:search", c), t("onreset");
780
781
  };
781
782
  return (c, g) => {
782
- const C = re("submit");
783
- return u.value + n.value > 0 ? H((v(), b(r(Ye), {
783
+ const $ = ne("submit");
784
+ return n.value + i.value > 0 ? X((f(), b(r(et), {
784
785
  key: 0,
785
786
  "label-col": { flex: "60px" },
786
787
  style: {
@@ -790,43 +791,43 @@ const ll = async (l, t) => {
790
791
  class: "flex mb-[10px]"
791
792
  }, {
792
793
  default: h(() => {
793
- var $, M;
794
+ var E, P;
794
795
  return [
795
- I(c.$slots, "default"),
796
- ($ = c.gridCtrl) != null && $.searchBar ? I(c.$slots, "control", { key: 0 }) : y("", !0),
797
- s.value >= 1 ? (v(), b(fe, {
796
+ D(c.$slots, "default"),
797
+ (E = c.gridCtrl) != null && E.searchBar ? D(c.$slots, "control", { key: 0 }) : C("", !0),
798
+ o.value >= 1 ? (f(), b(we, {
798
799
  key: 1,
799
800
  class: "w-1/3"
800
- })) : y("", !0),
801
- s.value >= 2 ? (v(), b(fe, {
801
+ })) : C("", !0),
802
+ o.value >= 2 ? (f(), b(we, {
802
803
  key: 2,
803
804
  class: "w-1/3"
804
- })) : y("", !0),
805
- u.value || (M = c.gridCtrl) != null && M.searchBar ? (v(), b(fe, {
805
+ })) : C("", !0),
806
+ n.value || (P = c.gridCtrl) != null && P.searchBar ? (f(), b(we, {
806
807
  key: 3,
807
808
  class: "w-1/3 flex justify-end text-right pr-5",
808
809
  "wrapper-col": { flex: "auto" }
809
810
  }, {
810
811
  default: h(() => [
811
- k(r(te), null, {
812
+ S(r(de), null, {
812
813
  default: h(() => [
813
- k(r(A), {
814
+ S(r(W), {
814
815
  type: "primary",
815
- onClick: o,
816
+ onClick: s,
816
817
  icon: "icon-search"
817
818
  }, {
818
819
  default: h(() => g[0] || (g[0] = [
819
- N("搜索")
820
+ O("搜索")
820
821
  ])),
821
822
  _: 1,
822
823
  __: [0]
823
824
  }),
824
- k(r(A), {
825
+ S(r(W), {
825
826
  onClick: m,
826
827
  icon: "icon-reset"
827
828
  }, {
828
829
  default: h(() => g[1] || (g[1] = [
829
- N("重置")
830
+ O("重置")
830
831
  ])),
831
832
  _: 1,
832
833
  __: [1]
@@ -836,23 +837,23 @@ const ll = async (l, t) => {
836
837
  })
837
838
  ]),
838
839
  _: 1
839
- })) : y("", !0)
840
+ })) : C("", !0)
840
841
  ];
841
842
  }),
842
843
  _: 3
843
844
  })), [
844
- [C, o]
845
- ]) : y("", !0);
845
+ [$, s]
846
+ ]) : C("", !0);
846
847
  };
847
848
  }
848
- }), ht = /* @__PURE__ */ S({
849
+ }), Da = /* @__PURE__ */ T({
849
850
  __name: "tableOperate",
850
851
  props: {
851
852
  record: {},
852
853
  gridCtrl: {}
853
854
  },
854
855
  setup(l) {
855
- const t = l, e = t.gridCtrl, a = Q(() => ce.currentRoute.value.path), s = [
856
+ const a = l, e = a.gridCtrl, t = Y(() => ge.currentRoute.value.path), o = [
856
857
  {
857
858
  key: "Edit",
858
859
  label: "编辑",
@@ -860,7 +861,7 @@ const ll = async (l, t) => {
860
861
  visible: !0,
861
862
  role: ["Super", "Admin"],
862
863
  permit: ":edit",
863
- click: () => na(e, t.record)
864
+ click: () => gt(e, a.record)
864
865
  },
865
866
  {
866
867
  key: "Delete",
@@ -872,109 +873,109 @@ const ll = async (l, t) => {
872
873
  permit: ":delete",
873
874
  confirm: !0,
874
875
  confirmText: "是否删除此记录?",
875
- click: () => ia(e, t.record)
876
+ click: () => bt(e, a.record)
876
877
  }
877
- ], { buttons: u, menus: n } = ke(s, 0, e.operates), p = (d) => {
878
+ ], { buttons: n, menus: i } = Me(o, 0, e.operates), p = (d) => {
878
879
  if (typeof d.disabled == "boolean")
879
880
  return d.disabled;
880
881
  if (typeof d.disabled == "function")
881
- return j(d, t.record) ?? !1;
882
- if (t.record.hasOwnProperty("Enabled"))
882
+ return le(d, a.record) ?? !1;
883
+ if (a.record.hasOwnProperty("Enabled"))
883
884
  switch (d.key) {
884
885
  case "Edit":
885
- return !t.record.Enabled;
886
+ return !a.record.Enabled;
886
887
  case "Delete":
887
- return !!t.record.Enabled;
888
+ return !!a.record.Enabled;
888
889
  }
889
890
  return !1;
890
891
  };
891
- return (d, i) => {
892
- const f = re("auth");
893
- return v(), b(r(Te), { theme: {
892
+ return (d, u) => {
893
+ const v = ne("auth");
894
+ return f(), b(r(Ae), { theme: {
894
895
  token: {
895
896
  fontSize: 13
896
897
  }
897
898
  } }, {
898
899
  default: h(() => [
899
- k(r(te), null, {
900
+ S(r(de), null, {
900
901
  default: h(() => [
901
- (v(!0), w(O, null, z(r(u), (o) => (v(), w(O, {
902
- key: o.key
902
+ (f(!0), w(A, null, H(r(n), (s) => (f(), w(A, {
903
+ key: s.key
903
904
  }, [
904
- r(J)(o, t.record) ? (v(), b(r(Na), {
905
+ r(se)(s, a.record) ? (f(), b(r(Wt), {
905
906
  key: 0,
906
- disabled: p(o) || !o.confirm,
907
+ disabled: p(s) || !s.confirm,
907
908
  cancelText: "否",
908
909
  okText: "是",
909
- title: o.confirmText,
910
+ title: s.confirmText,
910
911
  okButtonProps: { size: "small" },
911
912
  cancelButtonProps: { size: "small" },
912
- onConfirm: (m) => r(V)(o, r(e).page, r(e), t.record, !0)
913
+ onConfirm: (m) => r(J)(s, r(e).page, r(e), a.record, !0)
913
914
  }, {
914
915
  default: h(() => [
915
- r(J)(o, t.record) ? H((v(), b(r(We), {
916
- key: o.key,
917
- type: o.type ?? "text",
918
- danger: o.danger,
919
- disabled: p(o),
920
- onClick: (m) => r(V)(o, r(e).page, r(e), t.record),
916
+ r(se)(s, a.record) ? X((f(), b(r(at), {
917
+ key: s.key,
918
+ type: s.type ?? "text",
919
+ danger: s.danger,
920
+ disabled: p(s),
921
+ onClick: (m) => r(J)(s, r(e).page, r(e), a.record),
921
922
  size: "small",
922
- style: be({
923
- padding: o.type ?? "0px 4px"
923
+ style: De({
924
+ padding: s.type ?? "0px 4px"
924
925
  })
925
926
  }, {
926
927
  default: h(() => [
927
- N(P(o.label), 1)
928
+ O(M(s.label), 1)
928
929
  ]),
929
930
  _: 2
930
931
  }, 1032, ["type", "danger", "disabled", "onClick", "style"])), [
931
- [f, { url: a.value, role: o.role, permit: o.permit }]
932
- ]) : y("", !0)
932
+ [v, { url: t.value, role: s.role, permit: s.permit }]
933
+ ]) : C("", !0)
933
934
  ]),
934
935
  _: 2
935
- }, 1032, ["disabled", "title", "onConfirm"])) : y("", !0)
936
+ }, 1032, ["disabled", "title", "onConfirm"])) : C("", !0)
936
937
  ], 64))), 128)),
937
- d.record.Enabled == 1 ? (v(), b(r(Te), {
938
+ d.record.Enabled == 1 ? (f(), b(r(Ae), {
938
939
  key: 0,
939
940
  autoInsertSpaceInButton: !1
940
941
  }, {
941
942
  default: h(() => [
942
- r(n).length > 0 ? (v(), b(r(Ma), {
943
+ r(i).length > 0 ? (f(), b(r(qt), {
943
944
  key: 0,
944
945
  size: "small"
945
946
  }, {
946
947
  overlay: h(() => [
947
- k(r(xe), null, {
948
+ S(r(Ue), null, {
948
949
  default: h(() => [
949
- (v(!0), w(O, null, z(r(n), (o) => (v(), w(O, {
950
- key: o.key
950
+ (f(!0), w(A, null, H(r(i), (s) => (f(), w(A, {
951
+ key: s.key
951
952
  }, [
952
- r(J)(o, t.record) ? H((v(), b(r(ye), {
953
+ r(se)(s, a.record) ? X((f(), b(r(Le), {
953
954
  key: 0,
954
- disabled: p(o),
955
- onClick: (m) => r(V)(o, r(e).page, r(e), t.record)
955
+ disabled: p(s),
956
+ onClick: (m) => r(J)(s, r(e).page, r(e), a.record)
956
957
  }, {
957
958
  default: h(() => [
958
- N(P(o.label), 1)
959
+ O(M(s.label), 1)
959
960
  ]),
960
961
  _: 2
961
962
  }, 1032, ["disabled", "onClick"])), [
962
- [f, { url: a.value, role: o.role, permit: o.permit }]
963
- ]) : y("", !0)
963
+ [v, { url: t.value, role: s.role, permit: s.permit }]
964
+ ]) : C("", !0)
964
965
  ], 64))), 128))
965
966
  ]),
966
967
  _: 1
967
968
  })
968
969
  ]),
969
970
  default: h(() => [
970
- i[0] || (i[0] = N(" 更多 "))
971
+ u[0] || (u[0] = O(" 更多 "))
971
972
  ]),
972
973
  _: 1,
973
974
  __: [0]
974
- })) : y("", !0)
975
+ })) : C("", !0)
975
976
  ]),
976
977
  _: 1
977
- })) : y("", !0)
978
+ })) : C("", !0)
978
979
  ]),
979
980
  _: 1
980
981
  })
@@ -983,94 +984,94 @@ const ll = async (l, t) => {
983
984
  });
984
985
  };
985
986
  }
986
- }), gt = { class: "inline-flex [&>div]:ml-[-1px] first:[&>div]:ml-0" }, bt = /* @__PURE__ */ S({
987
+ }), Pa = { class: "inline-flex [&>div]:ml-[-1px] first:[&>div]:ml-0" }, Ua = /* @__PURE__ */ T({
987
988
  __name: "icontool",
988
989
  props: {
989
990
  gridCtrl: {}
990
991
  },
991
992
  setup(l) {
992
- const t = l, e = t.gridCtrl, { tools: a } = st(t.gridCtrl), s = he();
993
- T(
993
+ const a = l, e = a.gridCtrl, { tools: t } = xa(a.gridCtrl), o = Te();
994
+ F(
994
995
  () => e.selectable.value,
995
996
  (p) => {
996
- W(a, "tool.export.excel.selected") && (W(a, "tool.export.excel.selected").disabled = !p), W(a, "tool.export.pdf.selected") && (W(a, "tool.export.pdf.selected").disabled = !p);
997
+ ae(t, "tool.export.excel.selected") && (ae(t, "tool.export.excel.selected").disabled = !p), ae(t, "tool.export.pdf.selected") && (ae(t, "tool.export.pdf.selected").disabled = !p);
997
998
  }
998
999
  );
999
- const u = _([]);
1000
- T(
1000
+ const n = y([]);
1001
+ F(
1001
1002
  () => e.columns.value,
1002
1003
  (p) => {
1003
- u.value = Oe(p, !0);
1004
+ n.value = He(p, !0);
1004
1005
  },
1005
1006
  { deep: !0, immediate: !0 }
1006
1007
  );
1007
- const n = () => {
1008
- e.columns.value.splice(0, e.columns.value.length, ...u.value), s.setTableColumns(ce.currentRoute.value.path, e.columns.value);
1008
+ const i = () => {
1009
+ e.columns.value.splice(0, e.columns.value.length, ...n.value), o.setTableColumns(ge.currentRoute.value.path, e.columns.value);
1009
1010
  };
1010
- return (p, d) => (v(), w("div", gt, [
1011
- (v(!0), w(O, null, z(r(a), (i, f) => (v(), w(O, {
1012
- key: i.key
1011
+ return (p, d) => (f(), w("div", Pa, [
1012
+ (f(!0), w(A, null, H(r(t), (u, v) => (f(), w(A, {
1013
+ key: u.key
1013
1014
  }, [
1014
- r(J)(i) && i.dropdown ? (v(), b(r(me), {
1015
+ r(se)(u) && u.dropdown ? (f(), b(r(Se), {
1015
1016
  key: 0,
1016
1017
  placement: "bottomRight",
1017
1018
  class: "p-0 rounded-none"
1018
1019
  }, {
1019
1020
  overlay: h(() => [
1020
- D("div", {
1021
- class: E(["min-w-[100px] bg-white rounded shadow-md p-4", i.dropdownClass])
1021
+ I("div", {
1022
+ class: U(["min-w-[100px] bg-white rounded shadow-md p-4", u.dropdownClass])
1022
1023
  }, [
1023
- i.dropdown === "headset" ? (v(), b(r(qa), {
1024
+ u.dropdown === "headset" ? (f(), b(r(ia), {
1024
1025
  key: 0,
1025
- modelValue: u.value,
1026
- "onUpdate:modelValue": d[1] || (d[1] = (o) => u.value = o),
1026
+ modelValue: n.value,
1027
+ "onUpdate:modelValue": d[1] || (d[1] = (s) => n.value = s),
1027
1028
  "item-key": "dataIndex",
1028
- onEnd: n,
1029
+ onEnd: i,
1029
1030
  handle: ".drag-handle"
1030
1031
  }, {
1031
1032
  default: h(() => [
1032
- (v(!0), w(O, null, z(u.value, (o) => (v(), w("div", {
1033
- key: o.name,
1034
- onClick: d[0] || (d[0] = ae(() => {
1033
+ (f(!0), w(A, null, H(n.value, (s) => (f(), w("div", {
1034
+ key: s.name,
1035
+ onClick: d[0] || (d[0] = ce(() => {
1035
1036
  }, ["stop"])),
1036
1037
  class: "flex items-center mb-2 last:mb-0 select-none"
1037
1038
  }, [
1038
- d[2] || (d[2] = D("span", { class: "drag-handle mr-2 text-gray-400 hover:text-gray-600 cursor-move" }, "⋮⋮", -1)),
1039
- k(r(Oa), {
1040
- checked: o.visible !== !1,
1041
- onChange: ae(
1039
+ d[2] || (d[2] = I("span", { class: "drag-handle mr-2 text-gray-400 hover:text-gray-600 cursor-move" }, "⋮⋮", -1)),
1040
+ S(r(Ht), {
1041
+ checked: s.visible !== !1,
1042
+ onChange: ce(
1042
1043
  (m) => {
1043
- r(rt)(o, m.target.checked);
1044
+ r(ya)(s, m.target.checked);
1044
1045
  },
1045
1046
  ["stop", "prevent"]
1046
1047
  ),
1047
1048
  class: "text-gray-700 hover:text-gray-900 select-none"
1048
1049
  }, {
1049
1050
  default: h(() => [
1050
- N(P(o.title), 1)
1051
+ O(M(s.title), 1)
1051
1052
  ]),
1052
1053
  _: 2
1053
1054
  }, 1032, ["checked", "onChange"])
1054
1055
  ]))), 128))
1055
1056
  ]),
1056
1057
  _: 1
1057
- }, 8, ["modelValue"])) : y("", !0)
1058
+ }, 8, ["modelValue"])) : C("", !0)
1058
1059
  ], 2)
1059
1060
  ]),
1060
1061
  default: h(() => [
1061
- k(r(A), {
1062
- class: E([
1062
+ S(r(W), {
1063
+ class: U([
1063
1064
  "px-[8px] py-[2px] relative border-[#ccc] bg-[#fcfcfc] rounded-none text-[#666] hover:z-10",
1064
- f === 0 ? "rounded-l-[5px]" : "",
1065
- f === r(a).length - 1 ? "rounded-r-[5px]" : ""
1065
+ v === 0 ? "rounded-l-[5px]" : "",
1066
+ v === r(t).length - 1 ? "rounded-r-[5px]" : ""
1066
1067
  ]),
1067
- disabled: r(j)(i),
1068
- tiptext: i.label,
1069
- onClick: (o) => r(V)(i, r(e).page, r(e))
1068
+ disabled: r(le)(u),
1069
+ tiptext: u.label,
1070
+ onClick: (s) => r(J)(u, r(e).page, r(e))
1070
1071
  }, {
1071
1072
  default: h(() => [
1072
- k(r(U), {
1073
- icon: i.icon,
1073
+ S(r(K), {
1074
+ icon: u.icon,
1074
1075
  class: "w-[18px] h-[18.5px]",
1075
1076
  clickable: ""
1076
1077
  }, null, 8, ["icon"])
@@ -1079,39 +1080,39 @@ const ll = async (l, t) => {
1079
1080
  }, 1032, ["class", "disabled", "tiptext", "onClick"])
1080
1081
  ]),
1081
1082
  _: 2
1082
- }, 1024)) : !i.children && r(J)(i) ? (v(), b(r(A), {
1083
+ }, 1024)) : !u.children && r(se)(u) ? (f(), b(r(W), {
1083
1084
  key: 1,
1084
- class: E([
1085
+ class: U([
1085
1086
  "px-[8px] py-[2px] relative border-[#ccc] bg-[#fcfcfc] rounded-none text-[#666] hover:z-10",
1086
- f === 0 ? "rounded-l-[5px]" : "",
1087
- f === r(a).length - 1 ? "rounded-r-[5px]" : ""
1087
+ v === 0 ? "rounded-l-[5px]" : "",
1088
+ v === r(t).length - 1 ? "rounded-r-[5px]" : ""
1088
1089
  ]),
1089
- disabled: r(j)(i),
1090
- tiptext: i.label,
1091
- onClick: (o) => r(V)(i, r(e).page, r(e))
1090
+ disabled: r(le)(u),
1091
+ tiptext: u.label,
1092
+ onClick: (s) => r(J)(u, r(e).page, r(e))
1092
1093
  }, {
1093
1094
  default: h(() => [
1094
- k(r(U), {
1095
- icon: i.icon,
1095
+ S(r(K), {
1096
+ icon: u.icon,
1096
1097
  class: "w-[18px] h-[18.5px]",
1097
1098
  clickable: ""
1098
1099
  }, null, 8, ["icon"])
1099
1100
  ]),
1100
1101
  _: 2
1101
- }, 1032, ["class", "disabled", "tiptext", "onClick"])) : r(J)(i) ? (v(), b(r(me), {
1102
+ }, 1032, ["class", "disabled", "tiptext", "onClick"])) : r(se)(u) ? (f(), b(r(Se), {
1102
1103
  key: 2,
1103
1104
  placement: "bottomRight",
1104
1105
  class: "p-0 rounded-none"
1105
1106
  }, {
1106
1107
  overlay: h(() => [
1107
- k(r(xe), null, {
1108
+ S(r(Ue), null, {
1108
1109
  default: h(() => [
1109
- (v(!0), w(O, null, z(i.children, (o) => (v(), b(r(ye), {
1110
- key: o.key,
1111
- disabled: r(j)(o)
1110
+ (f(!0), w(A, null, H(u.children, (s) => (f(), b(r(Le), {
1111
+ key: s.key,
1112
+ disabled: r(le)(s)
1112
1113
  }, {
1113
1114
  default: h(() => [
1114
- N(P(o.label), 1)
1115
+ O(M(s.label), 1)
1115
1116
  ]),
1116
1117
  _: 2
1117
1118
  }, 1032, ["disabled"]))), 128))
@@ -1120,19 +1121,19 @@ const ll = async (l, t) => {
1120
1121
  }, 1024)
1121
1122
  ]),
1122
1123
  default: h(() => [
1123
- k(r(A), {
1124
- class: E([
1124
+ S(r(W), {
1125
+ class: U([
1125
1126
  "!w-[46px] px-[5px] py-[2px] relative border-[#ccc] bg-[#fcfcfc] rounded-none text-[#666] hover:z-10",
1126
- f === 0 ? "rounded-l-[5px]" : ""
1127
+ v === 0 ? "rounded-l-[5px]" : ""
1127
1128
  ]),
1128
- disabled: r(j)(i),
1129
- tiptext: i.label,
1130
- icon: i.icon,
1129
+ disabled: r(le)(u),
1130
+ tiptext: u.label,
1131
+ icon: u.icon,
1131
1132
  iconProps: { class: "w-[19px] h-[19px]" },
1132
- onClick: (o) => r(V)(i, r(e).page, r(e))
1133
+ onClick: (s) => r(J)(u, r(e).page, r(e))
1133
1134
  }, {
1134
1135
  default: h(() => [
1135
- k(r(U), {
1136
+ S(r(K), {
1136
1137
  icon: "icon-down-arrow",
1137
1138
  class: "w-[12px] h-[12px]"
1138
1139
  })
@@ -1141,18 +1142,18 @@ const ll = async (l, t) => {
1141
1142
  }, 1032, ["class", "disabled", "tiptext", "icon", "onClick"])
1142
1143
  ]),
1143
1144
  _: 2
1144
- }, 1024)) : y("", !0)
1145
+ }, 1024)) : C("", !0)
1145
1146
  ], 64))), 128))
1146
1147
  ]));
1147
1148
  }
1148
- }), _t = { class: "flex justify-between mb-[10px]" }, xt = { key: 1 }, yt = 3, kt = /* @__PURE__ */ S({
1149
+ }), La = { class: "flex justify-between mb-[10px]" }, Ma = { key: 1 }, Ba = 3, Na = /* @__PURE__ */ T({
1149
1150
  __name: "index",
1150
1151
  props: {
1151
1152
  gridCtrl: {},
1152
1153
  editorCtrl: {}
1153
1154
  },
1154
1155
  setup(l) {
1155
- const t = l, e = t.gridCtrl, a = e.page, s = t.editorCtrl, u = Q(() => ce.currentRoute.value.path), n = [
1156
+ const a = l, e = a.gridCtrl, t = e.page, o = a.editorCtrl, n = Y(() => ge.currentRoute.value.path), i = [
1156
1157
  {
1157
1158
  key: "New",
1158
1159
  label: "新增",
@@ -1162,92 +1163,92 @@ const ll = async (l, t) => {
1162
1163
  role: ["Super", "Admin"],
1163
1164
  permit: ":new",
1164
1165
  // 默认仅受权限码控制
1165
- click: () => ua(s)
1166
+ click: () => yt(o)
1166
1167
  }
1167
- ], p = _([]), d = _([]);
1168
- return T(
1168
+ ], p = y([]), d = y([]);
1169
+ return F(
1169
1170
  () => {
1170
- var i;
1171
- return (i = e.buttons) == null ? void 0 : i.value;
1171
+ var u;
1172
+ return (u = e.buttons) == null ? void 0 : u.value;
1172
1173
  },
1173
1174
  () => {
1174
- var o;
1175
- const { buttons: i, menus: f } = ke(
1176
- n,
1177
- e.flat !== void 0 ? e.flat : yt,
1178
- (o = e.buttons) == null ? void 0 : o.value
1175
+ var s;
1176
+ const { buttons: u, menus: v } = Me(
1177
+ i,
1178
+ e.flat !== void 0 ? e.flat : Ba,
1179
+ (s = e.buttons) == null ? void 0 : s.value
1179
1180
  );
1180
- p.value.splice(0, p.value.length, ...i), d.value.splice(0, d.value.length, ...f);
1181
+ p.value.splice(0, p.value.length, ...u), d.value.splice(0, d.value.length, ...v);
1181
1182
  },
1182
1183
  {
1183
1184
  deep: !0,
1184
1185
  immediate: !0
1185
1186
  }
1186
- ), (i, f) => {
1187
- const o = re("auth");
1188
- return v(), w("div", _t, [
1189
- k(r(te), null, {
1187
+ ), (u, v) => {
1188
+ const s = ne("auth");
1189
+ return f(), w("div", La, [
1190
+ S(r(de), null, {
1190
1191
  default: h(() => [
1191
- (v(!0), w(O, null, z(p.value, (m) => H((v(), b(r(A), {
1192
+ (f(!0), w(A, null, H(p.value, (m) => X((f(), b(r(W), {
1192
1193
  key: m.key,
1193
1194
  type: m.type,
1194
1195
  danger: m.danger,
1195
- disabled: r(j)(m),
1196
+ disabled: r(le)(m),
1196
1197
  icon: m.icon,
1197
- onClick: (c) => r(V)(m, r(a), r(e))
1198
+ onClick: (c) => r(J)(m, r(t), r(e))
1198
1199
  }, {
1199
1200
  default: h(() => [
1200
- N(P(m.label), 1)
1201
+ O(M(m.label), 1)
1201
1202
  ]),
1202
1203
  _: 2
1203
1204
  }, 1032, ["type", "danger", "disabled", "icon", "onClick"])), [
1204
- [o, { url: u.value, role: m.role, permit: m.permit }]
1205
+ [s, { url: n.value, role: m.role, permit: m.permit }]
1205
1206
  ])), 128)),
1206
- d.value.length > 0 ? (v(), b(r(me), { key: 0 }, {
1207
+ d.value.length > 0 ? (f(), b(r(Se), { key: 0 }, {
1207
1208
  overlay: h(() => [
1208
- k(r(xe), null, {
1209
+ S(r(Ue), null, {
1209
1210
  default: h(() => [
1210
- (v(!0), w(O, null, z(d.value, (m) => H((v(), b(r(ye), {
1211
+ (f(!0), w(A, null, H(d.value, (m) => X((f(), b(r(Le), {
1211
1212
  key: m.key,
1212
- disabled: r(j)(m),
1213
- onClick: (c) => r(V)(m, r(a), r(e))
1213
+ disabled: r(le)(m),
1214
+ onClick: (c) => r(J)(m, r(t), r(e))
1214
1215
  }, {
1215
1216
  default: h(() => [
1216
- N(P(m.label), 1)
1217
+ O(M(m.label), 1)
1217
1218
  ]),
1218
1219
  _: 2
1219
1220
  }, 1032, ["disabled", "onClick"])), [
1220
- [o, { url: u.value, role: m.role, permit: m.permit }]
1221
+ [s, { url: n.value, role: m.role, permit: m.permit }]
1221
1222
  ])), 128))
1222
1223
  ]),
1223
1224
  _: 1
1224
1225
  })
1225
1226
  ]),
1226
1227
  default: h(() => [
1227
- k(r(A), null, {
1228
- default: h(() => f[0] || (f[0] = [
1229
- N(" 更多操作 ")
1228
+ S(r(W), null, {
1229
+ default: h(() => v[0] || (v[0] = [
1230
+ O(" 更多操作 ")
1230
1231
  ])),
1231
1232
  _: 1,
1232
1233
  __: [0]
1233
1234
  })
1234
1235
  ]),
1235
1236
  _: 1
1236
- })) : y("", !0),
1237
- p.value.length === 0 && d.value.length === 0 ? (v(), w("span", xt)) : y("", !0)
1237
+ })) : C("", !0),
1238
+ p.value.length === 0 && d.value.length === 0 ? (f(), w("span", Ma)) : C("", !0)
1238
1239
  ]),
1239
1240
  _: 1
1240
1241
  }),
1241
- k(r(te), { class: "mr-1" }, {
1242
+ S(r(de), { class: "mr-1" }, {
1242
1243
  default: h(() => [
1243
- (v(), b($a(bt), { "grid-ctrl": r(e) }, null, 8, ["grid-ctrl"]))
1244
+ (f(), b(At(Ua), { "grid-ctrl": r(e) }, null, 8, ["grid-ctrl"]))
1244
1245
  ]),
1245
1246
  _: 1
1246
1247
  })
1247
1248
  ]);
1248
1249
  };
1249
1250
  }
1250
- }), fl = /* @__PURE__ */ S({
1251
+ }), Rl = /* @__PURE__ */ T({
1251
1252
  inheritAttrs: !1,
1252
1253
  __name: "index",
1253
1254
  props: {
@@ -1260,123 +1261,123 @@ const ll = async (l, t) => {
1260
1261
  statusDisabled: {}
1261
1262
  },
1262
1263
  setup(l) {
1263
- const t = l, e = X(), a = t.gridCtrl, s = Q(() => ce.currentRoute.value.path);
1264
- a && (a.pageNo.value = 1, a.total.value = 0, a.pageSize.value = a.pageSize.value);
1265
- const u = _(a.pageSize.value), n = _(a.pageNo.value), p = _([]), d = _({
1264
+ const a = l, e = oe(), t = a.gridCtrl, o = Y(() => ge.currentRoute.value.path);
1265
+ t && (t.pageNo.value = 1, t.total.value = 0, t.pageSize.value = t.pageSize.value);
1266
+ const n = y(t.pageSize.value), i = y(t.pageNo.value), p = y([]), d = y({
1266
1267
  total: 0,
1267
1268
  current: 1,
1268
- pageSize: u.value,
1269
+ pageSize: n.value,
1269
1270
  showTotal: (c) => `共 ${c} 条记录`,
1270
1271
  onChange: (c, g) => {
1271
- d.value !== !1 && (d.value.current = c, d.value.pageSize = g), u.value = g, n.value = c, a && (a.pageNo.value = c, a.pageSize.value = g, a.remotePage && we(a));
1272
+ d.value !== !1 && (d.value.current = c, d.value.pageSize = g), n.value = g, i.value = c, t && (t.pageNo.value = c, t.pageSize.value = g, t.remotePage && Be(t));
1272
1273
  },
1273
- ...t.pagination === !1 ? {} : t.pagination
1274
+ ...a.pagination === !1 ? {} : a.pagination
1274
1275
  });
1275
- t.pagination === !1 && (d.value = !1), T(
1276
- () => a.tableData.value,
1276
+ a.pagination === !1 && (d.value = !1), F(
1277
+ () => t.tableData.value,
1277
1278
  (c) => {
1278
- c && (p.value = c, d.value !== !1 && (d.value.total = a.total.value ?? 0, d.value.current = a.pageNo.value ?? 1, d.value.pageSize = a.pageSize.value ?? 10));
1279
+ c && (p.value = c, d.value !== !1 && (d.value.total = t.total.value ?? 0, d.value.current = t.pageNo.value ?? 1, d.value.pageSize = t.pageSize.value ?? 10));
1279
1280
  },
1280
1281
  { immediate: !0 }
1281
- ), T(
1282
- () => t.tableData,
1282
+ ), F(
1283
+ () => a.tableData,
1283
1284
  (c) => {
1284
- c && (p.value = c, d.value !== !1 && (d.value.total = c.length, d.value.current = a.pageNo.value ?? 1, d.value.pageSize = a.pageSize.value ?? 10));
1285
+ c && (p.value = c, d.value !== !1 && (d.value.total = c.length, d.value.current = t.pageNo.value ?? 1, d.value.pageSize = t.pageSize.value ?? 10));
1285
1286
  },
1286
1287
  { immediate: !0 }
1287
1288
  );
1288
- const i = _(a.columns.value), f = {
1289
+ const u = y(t.columns.value), v = {
1289
1290
  onChange: (c, g) => {
1290
- a && (a.selectKeys.value = c, a.selectRows.value = g);
1291
+ t && (t.selectKeys.value = c, t.selectRows.value = g);
1291
1292
  },
1292
1293
  columnWidth: "30px",
1293
1294
  getCheckboxProps: (c) => ({
1294
1295
  disabled: c.Enabled === 0
1295
1296
  }),
1296
- ...t.rowSelection
1297
- }, o = _(f);
1298
- T(
1299
- () => a.selectable.value,
1297
+ ...a.rowSelection
1298
+ }, s = y(v);
1299
+ F(
1300
+ () => t.selectable.value,
1300
1301
  (c) => {
1301
- a && (o.value = c ? f : void 0);
1302
+ t && (s.value = c ? v : void 0);
1302
1303
  },
1303
1304
  { immediate: !0 }
1304
- ), T(
1305
- () => a.columns.value,
1305
+ ), F(
1306
+ () => t.columns.value,
1306
1307
  () => {
1307
- i.value = Oe(a.columns.value);
1308
+ u.value = He(t.columns.value);
1308
1309
  },
1309
1310
  { deep: !0, immediate: !0 }
1310
1311
  );
1311
- const m = _(!1);
1312
- return _e(() => {
1313
- m.value && a && a.autoload && (a.reload.value = !0);
1314
- }), K(async () => {
1315
- var c, g, C, $, M;
1316
- ge(q.GridControl, a), a.page && ((c = a.gridUrl) != null && c.url) && (((g = a.gridUrl) == null ? void 0 : g.url) === ((C = a.page.urls.list) == null ? void 0 : C.url) && (a.remotePage = !1), (($ = a.gridUrl) == null ? void 0 : $.url) === ((M = a.page.urls.find) == null ? void 0 : M.url) && (a.remotePage = !0)), a.tableData.value ? (p.value = a.tableData.value, a.total.value = p.value.length, d.value !== !1 && (d.value.total = a.total.value ?? 0)) : a.autoload !== !1 && (a.remotePage ? p.value = (await we(a)).rows : p.value = await ca(a)), setTimeout(() => {
1312
+ const m = y(!1);
1313
+ return Pe(() => {
1314
+ m.value && t && t.autoload && (t.reload.value = !0);
1315
+ }), ee(async () => {
1316
+ var c, g, $, E, P;
1317
+ Ee(re.GridControl, t), t.page && ((c = t.gridUrl) != null && c.url) && (((g = t.gridUrl) == null ? void 0 : g.url) === (($ = t.page.urls.list) == null ? void 0 : $.url) && (t.remotePage = !1), ((E = t.gridUrl) == null ? void 0 : E.url) === ((P = t.page.urls.find) == null ? void 0 : P.url) && (t.remotePage = !0)), t.tableData.value ? (p.value = t.tableData.value, t.total.value = p.value.length, d.value !== !1 && (d.value.total = t.total.value ?? 0)) : t.autoload !== !1 && (t.remotePage ? p.value = (await Be(t)).rows : p.value = await xt(t)), setTimeout(() => {
1317
1318
  m.value = !0;
1318
1319
  }, 50);
1319
1320
  }), (c, g) => {
1320
- var $, M;
1321
- const C = re("auth");
1322
- return v(), w(O, null, [
1323
- ($ = r(a).buttons) != null && $.value.length || (M = r(a).tools) != null && M.length ? (v(), b(kt, {
1321
+ var E, P;
1322
+ const $ = ne("auth");
1323
+ return f(), w(A, null, [
1324
+ (E = r(t).buttons) != null && E.value.length || (P = r(t).tools) != null && P.length ? (f(), b(Na, {
1324
1325
  key: 0,
1325
- "grid-ctrl": r(a),
1326
- "editor-ctrl": r(a).editor
1327
- }, null, 8, ["grid-ctrl", "editor-ctrl"])) : y("", !0),
1328
- m.value ? (v(), b(r(je), F({
1326
+ "grid-ctrl": r(t),
1327
+ "editor-ctrl": r(t).editor
1328
+ }, null, 8, ["grid-ctrl", "editor-ctrl"])) : C("", !0),
1329
+ m.value ? (f(), b(r(lt), L({
1329
1330
  key: 1,
1330
1331
  class: "w-full min-h-[480px]",
1331
- "row-key": t.primaryKey ?? r(a).primaryKey ?? "Id",
1332
+ "row-key": a.primaryKey ?? r(t).primaryKey ?? "Id",
1332
1333
  "data-source": p.value,
1333
- loading: r(a).isGridLoading.value,
1334
- columns: i.value,
1334
+ loading: r(t).isGridLoading.value,
1335
+ columns: u.value,
1335
1336
  pagination: d.value,
1336
- "row-selection": o.value,
1337
- scroll: t.scroll || { x: 700 },
1338
- size: r(a).tableSize.value,
1337
+ "row-selection": s.value,
1338
+ scroll: a.scroll || { x: 700 },
1339
+ size: r(t).tableSize.value,
1339
1340
  bordered: ""
1340
1341
  }, r(e)), {
1341
- bodyCell: h((x) => {
1342
- var B, L;
1342
+ bodyCell: h((k) => {
1343
+ var R, j;
1343
1344
  return [
1344
- I(c.$slots, "bodyCell", {
1345
- column: x == null ? void 0 : x.column,
1346
- record: x == null ? void 0 : x.record
1345
+ D(c.$slots, "bodyCell", {
1346
+ column: k == null ? void 0 : k.column,
1347
+ record: k == null ? void 0 : k.record
1347
1348
  }),
1348
- r(a) && ((B = x == null ? void 0 : x.column) == null ? void 0 : B.dataIndex) === "enabled" ? H((v(), b(da, {
1349
+ r(t) && ((R = k == null ? void 0 : k.column) == null ? void 0 : R.dataIndex) === "enabled" ? X((f(), b(_t, {
1349
1350
  key: 0,
1350
- checked: x.record.Enabled,
1351
- "onUpdate:checked": (se) => x.record.Enabled = se,
1352
- disabled: c.statusDisabled ? c.statusDisabled(x.record) : !1,
1353
- data: r(Be).EnableDisable,
1354
- onClick: (se) => r(pa)(r(a), x.record),
1355
- class: E([
1351
+ checked: k.record.Enabled,
1352
+ "onUpdate:checked": (Q) => k.record.Enabled = Q,
1353
+ disabled: c.statusDisabled ? c.statusDisabled(k.record) : !1,
1354
+ data: r(Qe).EnableDisable,
1355
+ onClick: (Q) => r(kt)(r(t), k.record),
1356
+ class: U([
1356
1357
  "w-[58px]",
1357
- c.statusDisabled && c.statusDisabled(x.record) ? "cursor-not-allowed disabled" : ""
1358
+ c.statusDisabled && c.statusDisabled(k.record) ? "cursor-not-allowed disabled" : ""
1358
1359
  ]),
1359
- loading: x == null ? void 0 : x.record.isLoading
1360
+ loading: k == null ? void 0 : k.record.isLoading
1360
1361
  }, null, 8, ["checked", "onUpdate:checked", "disabled", "data", "onClick", "class", "loading"])), [
1361
- [C, { url: s.value, role: ["Super", "Admin"], permit: ":enabled" }, "disable"]
1362
- ]) : y("", !0),
1363
- r(a) && ((L = x == null ? void 0 : x.column) == null ? void 0 : L.dataIndex) === "operation" ? I(c.$slots, "operate", {
1362
+ [$, { url: o.value, role: ["Super", "Admin"], permit: ":enabled" }, "disable"]
1363
+ ]) : C("", !0),
1364
+ r(t) && ((j = k == null ? void 0 : k.column) == null ? void 0 : j.dataIndex) === "operation" ? D(c.$slots, "operate", {
1364
1365
  key: 1,
1365
- record: x == null ? void 0 : x.record
1366
+ record: k == null ? void 0 : k.record
1366
1367
  }, () => [
1367
- k(ht, {
1368
- record: x == null ? void 0 : x.record,
1369
- "grid-ctrl": r(a)
1368
+ S(Da, {
1369
+ record: k == null ? void 0 : k.record,
1370
+ "grid-ctrl": r(t)
1370
1371
  }, null, 8, ["record", "grid-ctrl"])
1371
- ]) : y("", !0)
1372
+ ]) : C("", !0)
1372
1373
  ];
1373
1374
  }),
1374
1375
  _: 3
1375
- }, 16, ["row-key", "data-source", "loading", "columns", "pagination", "row-selection", "scroll", "size"])) : y("", !0)
1376
+ }, 16, ["row-key", "data-source", "loading", "columns", "pagination", "row-selection", "scroll", "size"])) : C("", !0)
1376
1377
  ], 64);
1377
1378
  };
1378
1379
  }
1379
- }), wt = { class: "flex items-center gap-1" }, Ct = { class: "text-nowrap" }, vl = /* @__PURE__ */ S({
1380
+ }), Oa = { class: "flex items-center gap-1" }, Ra = { class: "text-nowrap" }, Al = /* @__PURE__ */ T({
1380
1381
  __name: "index",
1381
1382
  props: {
1382
1383
  treeCtrl: {},
@@ -1384,166 +1385,166 @@ const ll = async (l, t) => {
1384
1385
  expandedKeys: {}
1385
1386
  },
1386
1387
  emits: ["select", "update:selectedKeys"],
1387
- setup(l, { emit: t }) {
1388
- const e = l, a = X(), s = e.treeCtrl, u = _([]);
1389
- T(
1390
- () => s.data.value,
1391
- (f) => {
1392
- if (f) {
1393
- u.value = s.fieldMap ? ne(s.fieldMap, f) : f;
1394
- const o = fa(u.value, p.value[0]);
1395
- if (o) {
1388
+ setup(l, { emit: a }) {
1389
+ const e = l, t = oe(), o = e.treeCtrl, n = y([]);
1390
+ F(
1391
+ () => o.data.value,
1392
+ (v) => {
1393
+ if (v) {
1394
+ n.value = o.fieldMap ? ve(o.fieldMap, v) : v;
1395
+ const s = wt(n.value, p.value[0]);
1396
+ if (s) {
1396
1397
  const m = {
1397
1398
  event: "select",
1398
1399
  node: {
1399
1400
  // 根据你的TreeNode结构构建node对象
1400
- key: o.key,
1401
- title: o.title,
1401
+ key: s.key,
1402
+ title: s.title,
1402
1403
  checked: !0,
1403
- dataRef: o
1404
+ dataRef: s
1404
1405
  },
1405
1406
  selected: !0,
1406
- selectedNodes: [o]
1407
+ selectedNodes: [s]
1407
1408
  };
1408
- i(p.value, m);
1409
+ u(p.value, m);
1409
1410
  }
1410
1411
  }
1411
1412
  }
1412
1413
  );
1413
- const n = t, p = _([]);
1414
- T(
1414
+ const i = a, p = y([]);
1415
+ F(
1415
1416
  () => e.selectedKeys,
1416
- (f) => {
1417
- f && (p.value = f);
1417
+ (v) => {
1418
+ v && (p.value = v);
1418
1419
  },
1419
1420
  { immediate: !0 }
1420
1421
  );
1421
- const d = _(["-"]);
1422
- T(
1422
+ const d = y(["-"]);
1423
+ F(
1423
1424
  () => e.expandedKeys,
1424
- (f) => {
1425
- f && (d.value = f);
1425
+ (v) => {
1426
+ v && (d.value = v);
1426
1427
  },
1427
1428
  { immediate: !0 }
1428
1429
  );
1429
- const i = (f, o) => {
1430
- f.length === 0 && f.push(...p.value), f.length > 0 && (s.node.value = o == null ? void 0 : o.node.dataRef), p.value = f, n("update:selectedKeys", f), n("select", f, o);
1430
+ const u = (v, s) => {
1431
+ v.length === 0 && v.push(...p.value), v.length > 0 && (o.node.value = s == null ? void 0 : s.node.dataRef), p.value = v, i("update:selectedKeys", v), i("select", v, s);
1431
1432
  };
1432
- return K(() => {
1433
- s.fieldMap || (s.fieldMap = {
1433
+ return ee(() => {
1434
+ o.fieldMap || (o.fieldMap = {
1434
1435
  label: "Name",
1435
1436
  key: "Id",
1436
1437
  value: "Id",
1437
1438
  icon: "Icon"
1438
- }), s.data.value ? u.value = ne(s.fieldMap, s.data.value) : s.autoload && Ae(s);
1439
- }), (f, o) => (v(), b(r(Ba), F({
1439
+ }), o.data.value ? n.value = ve(o.fieldMap, o.data.value) : o.autoload && Ge(o);
1440
+ }), (v, s) => (f(), b(r(Qt), L({
1440
1441
  class: "w-full",
1441
1442
  "show-line": !0,
1442
- "tree-data": u.value,
1443
+ "tree-data": n.value,
1443
1444
  "expanded-keys": d.value,
1444
- "onUpdate:expandedKeys": o[0] || (o[0] = (m) => d.value = m),
1445
+ "onUpdate:expandedKeys": s[0] || (s[0] = (m) => d.value = m),
1445
1446
  "selected-keys": p.value,
1446
- loading: r(s).isTreeLoading,
1447
- onSelect: i
1448
- }, r(a)), {
1447
+ loading: r(o).isTreeLoading,
1448
+ onSelect: u
1449
+ }, r(t)), {
1449
1450
  title: h(({ key: m, label: c, icon: g }) => [
1450
- I(f.$slots, "title", {
1451
+ D(v.$slots, "title", {
1451
1452
  label: c,
1452
1453
  key: m,
1453
1454
  icon: g
1454
1455
  }, () => [
1455
- D("div", wt, [
1456
- k(r(U), { icon: g }, null, 8, ["icon"]),
1457
- D("span", Ct, P(c), 1)
1456
+ I("div", Oa, [
1457
+ S(r(K), { icon: g }, null, 8, ["icon"]),
1458
+ I("span", Ra, M(c), 1)
1458
1459
  ])
1459
1460
  ])
1460
1461
  ]),
1461
1462
  _: 3
1462
1463
  }, 16, ["tree-data", "expanded-keys", "selected-keys", "loading"]));
1463
1464
  }
1464
- }), ml = /* @__PURE__ */ G(va, [["__scopeId", "data-v-87722b44"]]), St = { class: "relative w-[248px] max-w-[248px]" }, Tt = {
1465
+ }), zl = /* @__PURE__ */ te(Ct, [["__scopeId", "data-v-87722b44"]]), Aa = { class: "relative w-[248px] max-w-[248px]" }, za = {
1465
1466
  key: 0,
1466
1467
  class: "absolute z-10 mt-[5px] mr-[10px] text-[#999] flex items-center"
1467
- }, $t = /* @__PURE__ */ S({
1468
+ }, Ka = /* @__PURE__ */ T({
1468
1469
  inheritAttrs: !1,
1469
1470
  __name: "index",
1470
- props: ma,
1471
+ props: St,
1471
1472
  emits: ["change", "update:labels", "update:value"],
1472
- setup(l, { emit: t }) {
1473
- var C, $, M;
1474
- const e = l, a = X(), s = R(), u = ha(e.url, e), n = e.optionCtrl ?? u.optionCtrl;
1475
- n.inputFactory = Da(s);
1476
- const p = _({
1477
- ...n == null ? void 0 : n.url,
1478
- url: ((C = n == null ? void 0 : n.url) == null ? void 0 : C.url) || "",
1479
- fieldMap: (n == null ? void 0 : n.fieldMap) || (($ = n == null ? void 0 : n.url) == null ? void 0 : $.fieldMap),
1480
- params: (n == null ? void 0 : n.params) || ((M = n == null ? void 0 : n.url) == null ? void 0 : M.params),
1473
+ setup(l, { emit: a }) {
1474
+ var $, E, P;
1475
+ const e = l, t = oe(), o = V(), n = $t(e.url, e), i = e.optionCtrl ?? n.optionCtrl;
1476
+ i.inputFactory = zt(o);
1477
+ const p = y({
1478
+ ...i == null ? void 0 : i.url,
1479
+ url: (($ = i == null ? void 0 : i.url) == null ? void 0 : $.url) || "",
1480
+ fieldMap: (i == null ? void 0 : i.fieldMap) || ((E = i == null ? void 0 : i.url) == null ? void 0 : E.fieldMap),
1481
+ params: (i == null ? void 0 : i.params) || ((P = i == null ? void 0 : i.url) == null ? void 0 : P.params),
1481
1482
  loadingText: !1
1482
- }), { editorCtrl: d, errInfo: i, labelText: f } = s, o = _(a.placeholder);
1483
- T(
1483
+ }), { editorCtrl: d, errInfo: u, labelText: v } = o, s = y(t.placeholder);
1484
+ F(
1484
1485
  () => p.value.loading,
1485
- (x) => {
1486
- x ? o.value = "" : o.value || (o.value = "请选择" + f.value);
1486
+ (k) => {
1487
+ k ? s.value = "" : s.value || (s.value = "请选择" + v.value);
1487
1488
  },
1488
1489
  { immediate: !0 }
1489
1490
  );
1490
- const m = t;
1491
- s.inputEmit = m;
1492
- const c = _((n == null ? void 0 : n.options.value) || []);
1493
- n && T(
1494
- () => n.options.value,
1495
- (x) => {
1496
- c.value = x || [];
1491
+ const m = a;
1492
+ o.inputEmit = m;
1493
+ const c = y((i == null ? void 0 : i.options.value) || []);
1494
+ i && F(
1495
+ () => i.options.value,
1496
+ (k) => {
1497
+ c.value = k || [];
1497
1498
  },
1498
1499
  { immediate: !0, deep: !0 }
1499
1500
  );
1500
- const g = (x, B) => {
1501
- if (!B || B.length === 0) {
1501
+ const g = (k, R) => {
1502
+ if (!R || R.length === 0) {
1502
1503
  m("update:labels", []), m("update:value", []);
1503
1504
  return;
1504
1505
  }
1505
- const L = B.map((ta) => ta.value), se = xa(n, e, L), aa = ya(se);
1506
- m("update:labels", aa), m("update:value", L), i != null && i.value.errClass && d && Y(d);
1506
+ const j = R.map((ye) => ye.value), Q = Et(i, e, j), pe = Dt(Q);
1507
+ m("update:labels", pe), m("update:value", j), u != null && u.value.errClass && d && Z(d);
1507
1508
  };
1508
- return _e(() => {
1509
- n && n.autoload && (n.reload.value = !0);
1510
- }), K(() => {
1509
+ return Pe(() => {
1510
+ i && i.autoload && (i.reload.value = !0);
1511
+ }), ee(() => {
1511
1512
  p.value && !p.value.fieldMap && (p.value.fieldMap = {
1512
1513
  title: "Name",
1513
1514
  label: "Name",
1514
1515
  value: "Id",
1515
1516
  key: "Id"
1516
- }), n && ga(n.autoload, n, e);
1517
- }), Ia(() => {
1518
- n && ba(n, e);
1519
- }), (x, B) => {
1520
- var L;
1521
- return v(), w("div", St, [
1522
- c.value.length ? y("", !0) : (v(), w("div", Tt, [
1523
- k(r(_a), { class: "text-[#555] mx-[5px] !ml-[10px] !w-4 !h-4" }),
1524
- B[0] || (B[0] = D("span", null, "数据加载中...", -1))
1517
+ }), i && Tt(i.autoload, i, e);
1518
+ }), Kt(() => {
1519
+ i && Ft(i, e);
1520
+ }), (k, R) => {
1521
+ var j;
1522
+ return f(), w("div", Aa, [
1523
+ c.value.length ? C("", !0) : (f(), w("div", za, [
1524
+ S(r(It), { class: "text-[#555] mx-[5px] !ml-[10px] !w-4 !h-4" }),
1525
+ R[0] || (R[0] = I("span", null, "数据加载中...", -1))
1525
1526
  ])),
1526
- k(r(Aa), F({
1527
+ S(r(Gt), L({
1527
1528
  options: c.value,
1528
- class: [(L = r(i)) == null ? void 0 : L.errClass],
1529
+ class: [(j = r(u)) == null ? void 0 : j.errClass],
1529
1530
  "allow-clear": !0,
1530
- placeholder: c.value.length > 0 ? "请选择" + r(f) : "",
1531
+ placeholder: c.value.length > 0 ? "请选择" + r(v) : "",
1531
1532
  onChange: g
1532
- }, r(a)), null, 16, ["options", "class", "placeholder"])
1533
+ }, r(t)), null, 16, ["options", "class", "placeholder"])
1533
1534
  ]);
1534
1535
  };
1535
1536
  }
1536
- }), hl = /* @__PURE__ */ G($t, [["__scopeId", "data-v-51ddfce3"]]), gl = /* @__PURE__ */ G(ka, [["__scopeId", "data-v-249ea772"]]);
1537
- function ue() {
1538
- return ue = Object.assign ? Object.assign.bind() : function(l) {
1539
- for (var t = 1; t < arguments.length; t++) {
1540
- var e = arguments[t];
1541
- for (var a in e) ({}).hasOwnProperty.call(e, a) && (l[a] = e[a]);
1537
+ }), Kl = /* @__PURE__ */ te(Ka, [["__scopeId", "data-v-51ddfce3"]]), Vl = /* @__PURE__ */ te(Pt, [["__scopeId", "data-v-249ea772"]]);
1538
+ function he() {
1539
+ return he = Object.assign ? Object.assign.bind() : function(l) {
1540
+ for (var a = 1; a < arguments.length; a++) {
1541
+ var e = arguments[a];
1542
+ for (var t in e) ({}).hasOwnProperty.call(e, t) && (l[t] = e[t]);
1542
1543
  }
1543
1544
  return l;
1544
- }, ue.apply(null, arguments);
1545
+ }, he.apply(null, arguments);
1545
1546
  }
1546
- const Dt = {
1547
+ const Va = {
1547
1548
  locale: "zh_CN",
1548
1549
  today: "今天",
1549
1550
  now: "此刻",
@@ -1570,11 +1571,11 @@ const Dt = {
1570
1571
  nextDecade: "下一年代",
1571
1572
  previousCentury: "上一世纪",
1572
1573
  nextCentury: "下一世纪"
1573
- }, It = {
1574
+ }, ja = {
1574
1575
  placeholder: "请选择时间",
1575
1576
  rangePlaceholder: ["开始时间", "结束时间"]
1576
- }, de = {
1577
- lang: ue({
1577
+ }, be = {
1578
+ lang: he({
1578
1579
  placeholder: "请选择日期",
1579
1580
  yearPlaceholder: "请选择年份",
1580
1581
  quarterPlaceholder: "请选择季度",
@@ -1585,268 +1586,271 @@ const Dt = {
1585
1586
  rangeMonthPlaceholder: ["开始月份", "结束月份"],
1586
1587
  rangeQuarterPlaceholder: ["开始季度", "结束季度"],
1587
1588
  rangeWeekPlaceholder: ["开始周", "结束周"]
1588
- }, Dt),
1589
- timePickerLocale: ue({}, It)
1589
+ }, Va),
1590
+ timePickerLocale: he({}, ja)
1590
1591
  };
1591
- de.lang.ok = "确定";
1592
- const bl = /* @__PURE__ */ S({
1592
+ be.lang.ok = "确定";
1593
+ const jl = /* @__PURE__ */ T({
1593
1594
  __name: "index",
1594
1595
  props: {
1595
1596
  valueFormat: {}
1596
1597
  },
1597
1598
  setup(l) {
1598
- const t = l, { editorCtrl: e, labelText: a, errInfo: s } = R(), u = () => {
1599
- s != null && s.value.errClass && e && Y(e);
1600
- }, n = _(t.valueFormat ?? "YYYY-MM-DD");
1599
+ const a = l, { editorCtrl: e, labelText: t, errInfo: o } = V(), n = () => {
1600
+ o != null && o.value.errClass && e && Z(e);
1601
+ }, i = y(a.valueFormat ?? "YYYY-MM-DD");
1601
1602
  return (p, d) => {
1602
- var i;
1603
- return v(), b(r(Ra), {
1604
- class: E(["w-full", [((i = r(s)) == null ? void 0 : i.errClass) === "error" ? "error !border-red-300 shadow-[0_0_3px_0px_#ff4d4f]" : ""]]),
1605
- placeholder: "请选择" + r(a),
1606
- locale: r(de),
1607
- valueFormat: n.value,
1608
- onBlur: u
1603
+ var u;
1604
+ return f(), b(r(Jt), {
1605
+ class: U(["w-full", [((u = r(o)) == null ? void 0 : u.errClass) === "error" ? "error !border-red-300 shadow-[0_0_3px_0px_#ff4d4f]" : ""]]),
1606
+ placeholder: "请选择" + r(t),
1607
+ locale: r(be),
1608
+ valueFormat: i.value,
1609
+ onBlur: n
1609
1610
  }, null, 8, ["class", "placeholder", "locale", "valueFormat"]);
1610
1611
  };
1611
1612
  }
1612
- }), Et = /* @__PURE__ */ S({
1613
+ }), Ya = /* @__PURE__ */ T({
1613
1614
  __name: "index",
1614
1615
  props: {
1615
1616
  value: {},
1616
1617
  undefValue: { type: Boolean, default: !1 }
1617
1618
  },
1618
1619
  emits: ["update:value"],
1619
- setup(l, { emit: t }) {
1620
- const { editorCtrl: e, labelText: a, errInfo: s } = R(), u = () => {
1621
- s != null && s.value.errClass && e && Y(e);
1622
- }, n = l, p = n.value === void 0 ? !0 : n.undefValue, d = t, i = _(n.value);
1623
- T(
1624
- () => n.value,
1625
- (o) => {
1626
- i.value = o;
1620
+ setup(l, { emit: a }) {
1621
+ const { editorCtrl: e, labelText: t, errInfo: o } = V(), n = () => {
1622
+ o != null && o.value.errClass && e && Z(e);
1623
+ }, i = l, p = i.value === void 0 ? !0 : i.undefValue, d = a, u = y(i.value);
1624
+ F(
1625
+ () => i.value,
1626
+ (s) => {
1627
+ u.value = s;
1627
1628
  },
1628
1629
  { immediate: !0 }
1629
1630
  // 立即同步初始值
1630
- ), T(
1631
- () => i.value,
1632
- (o) => {
1633
- if (i.value === "") {
1631
+ ), F(
1632
+ () => u.value,
1633
+ (s) => {
1634
+ if (u.value === "") {
1634
1635
  d("update:value", void 0);
1635
1636
  return;
1636
1637
  }
1637
- d("update:value", o);
1638
+ d("update:value", s);
1638
1639
  }
1639
1640
  );
1640
- const f = () => {
1641
- i.value === "" && (i.value = p ? void 0 : null);
1641
+ const v = () => {
1642
+ u.value === "" && (u.value = p ? void 0 : null);
1642
1643
  };
1643
- return (o, m) => {
1644
+ return (s, m) => {
1644
1645
  var c, g;
1645
- return v(), b(r(ee), F({
1646
+ return f(), b(r(ue), L({
1646
1647
  class: [
1647
- (c = r(s)) == null ? void 0 : c.errClass,
1648
- ((g = r(s)) == null ? void 0 : g.errClass) === "error" && !o.$slots.addonBefore && !o.$slots.addonAfter ? "!border-red-300 shadow-[0_0_3px_0px_#ff4d4f]" : ""
1648
+ (c = r(o)) == null ? void 0 : c.errClass,
1649
+ ((g = r(o)) == null ? void 0 : g.errClass) === "error" && !s.$slots.addonBefore && !s.$slots.addonAfter ? "!border-red-300 shadow-[0_0_3px_0px_#ff4d4f]" : ""
1649
1650
  ],
1650
- value: i.value,
1651
- "onUpdate:value": m[0] || (m[0] = (C) => i.value = C),
1651
+ value: u.value,
1652
+ "onUpdate:value": m[0] || (m[0] = ($) => u.value = $),
1652
1653
  autocomplete: "new-password",
1653
1654
  "allow-clear": !0,
1654
- placeholder: "请输入" + r(a),
1655
- onBlur: u,
1656
- onChange: f
1657
- }, o.$attrs), Ue({ _: 2 }, [
1658
- o.$slots.addonBefore ? {
1655
+ placeholder: "请输入" + r(t),
1656
+ onBlur: n,
1657
+ onChange: v
1658
+ }, s.$attrs), Xe({ _: 2 }, [
1659
+ s.$slots.addonBefore ? {
1659
1660
  name: "addonBefore",
1660
1661
  fn: h(() => [
1661
- I(o.$slots, "addonBefore")
1662
+ D(s.$slots, "addonBefore")
1662
1663
  ]),
1663
1664
  key: "0"
1664
1665
  } : void 0,
1665
- o.$slots.addonAfter ? {
1666
+ s.$slots.addonAfter ? {
1666
1667
  name: "addonAfter",
1667
1668
  fn: h(() => [
1668
- I(o.$slots, "addonAfter")
1669
+ D(s.$slots, "addonAfter")
1669
1670
  ]),
1670
1671
  key: "1"
1671
1672
  } : void 0
1672
1673
  ]), 1040, ["class", "value", "placeholder"]);
1673
1674
  };
1674
1675
  }
1675
- }), Pt = /* @__PURE__ */ S({
1676
+ }), Wa = /* @__PURE__ */ T({
1676
1677
  __name: "inputIcon",
1677
1678
  props: {
1678
1679
  value: {}
1679
1680
  },
1680
1681
  emits: ["update:value"],
1681
- setup(l, { emit: t }) {
1682
- const e = l, a = t, s = _(void 0);
1683
- return T(
1682
+ setup(l, { emit: a }) {
1683
+ const e = l, t = a, o = y(void 0);
1684
+ return F(
1684
1685
  () => e.value,
1685
- (u) => {
1686
- s.value = u ?? void 0;
1686
+ (n) => {
1687
+ o.value = n ?? void 0;
1687
1688
  },
1688
1689
  { immediate: !0 }
1689
- ), T(
1690
- () => s.value,
1691
- (u) => {
1692
- a("update:value", u);
1690
+ ), F(
1691
+ () => o.value,
1692
+ (n) => {
1693
+ t("update:value", n);
1693
1694
  }
1694
- ), (u, n) => (v(), b(Et, F({
1695
- value: s.value,
1696
- "onUpdate:value": n[0] || (n[0] = (p) => s.value = p)
1697
- }, u.$attrs), {
1695
+ ), (n, i) => (f(), b(Ya, L({
1696
+ value: o.value,
1697
+ "onUpdate:value": i[0] || (i[0] = (p) => o.value = p)
1698
+ }, n.$attrs), {
1698
1699
  addonBefore: h(() => [
1699
- k(r(U), {
1700
+ S(r(K), {
1700
1701
  class: "!w-4 !h-4",
1701
- icon: s.value
1702
+ icon: o.value
1702
1703
  }, null, 8, ["icon"])
1703
1704
  ]),
1704
1705
  _: 1
1705
1706
  }, 16, ["value"]));
1706
1707
  }
1707
- }), _l = /* @__PURE__ */ G(Pt, [["__scopeId", "data-v-358b82ef"]]), xl = /* @__PURE__ */ S({
1708
+ }), Yl = /* @__PURE__ */ te(Wa, [["__scopeId", "data-v-358b82ef"]]), Wl = /* @__PURE__ */ T({
1708
1709
  __name: "inputPassword",
1709
1710
  setup(l) {
1710
- const { editorCtrl: t, labelText: e, errInfo: a } = R(), s = () => {
1711
- a != null && a.value.errClass && t && Y(t);
1711
+ const { editorCtrl: a, labelText: e, errInfo: t } = V(), o = () => {
1712
+ t != null && t.value.errClass && a && Z(a);
1712
1713
  };
1713
- return (u, n) => {
1714
+ return (n, i) => {
1714
1715
  var p;
1715
- return v(), b(r(La), F({
1716
- class: ((p = r(a)) == null ? void 0 : p.errClass) === "error" ? ["error", "!border-red-300", "shadow-[0_0_3px_0px_#ff4d4f]"] : "",
1716
+ return f(), b(r(Xt), L({
1717
+ class: ((p = r(t)) == null ? void 0 : p.errClass) === "error" ? ["error", "!border-red-300", "shadow-[0_0_3px_0px_#ff4d4f]"] : "",
1717
1718
  "allow-clear": !0,
1718
1719
  autocomplete: "new-password",
1719
1720
  placeholder: "请输入" + r(e),
1720
- onBlur: s
1721
- }, u.$attrs), null, 16, ["class", "placeholder"]);
1721
+ onBlur: o
1722
+ }, n.$attrs), null, 16, ["class", "placeholder"]);
1722
1723
  };
1723
1724
  }
1724
- }), yl = /* @__PURE__ */ S({
1725
+ }), ql = /* @__PURE__ */ T({
1725
1726
  __name: "inputNumber",
1726
1727
  setup(l) {
1727
- const { editorCtrl: t, labelText: e, errInfo: a } = R(), s = () => {
1728
- a != null && a.value.errClass && t && Y(t);
1728
+ const { editorCtrl: a, labelText: e, errInfo: t } = V(), o = () => {
1729
+ t != null && t.value.errClass && a && Z(a);
1729
1730
  };
1730
- return (u, n) => {
1731
+ return (n, i) => {
1731
1732
  var p;
1732
- return v(), b(r(za), F({
1733
- class: [[((p = r(a)) == null ? void 0 : p.errClass) === "error" ? "error !border-red-300 shadow-[0_0_3px_0px_#ff4d4f]" : ""], "w-[50%]"],
1734
- onBlur: s,
1733
+ return f(), b(r(Zt), L({
1734
+ class: [[((p = r(t)) == null ? void 0 : p.errClass) === "error" ? "error !border-red-300 shadow-[0_0_3px_0px_#ff4d4f]" : ""], "w-[50%]"],
1735
+ onBlur: o,
1735
1736
  "allow-clear": !1,
1736
1737
  placeholder: "请输入" + r(e)
1737
- }, u.$attrs), null, 16, ["class", "placeholder"]);
1738
+ }, n.$attrs), null, 16, ["class", "placeholder"]);
1738
1739
  };
1739
1740
  }
1740
- }), Ft = { class: "flex flex-col gap-2" }, Nt = { key: 1 }, kl = /* @__PURE__ */ S({
1741
+ }), qa = { class: "flex flex-col gap-2" }, Ha = { key: 1 }, Hl = /* @__PURE__ */ T({
1741
1742
  __name: "index",
1742
1743
  props: {
1743
1744
  value: {},
1744
1745
  selectList: {},
1746
+ ignoreList: {},
1745
1747
  fieldWidth: {},
1746
1748
  labelHolder: {},
1747
1749
  valueHolder: {}
1748
1750
  },
1749
1751
  emits: ["update:value"],
1750
- setup(l, { emit: t }) {
1751
- const e = l, a = t, s = _(!(e.selectList && e.selectList.length > 0)), u = _([]);
1752
- let n = !1;
1752
+ setup(l, { emit: a }) {
1753
+ const e = l, t = a, o = y(!(e.selectList && e.selectList.length > 0)), n = y([]);
1754
+ let i = !1;
1753
1755
  const p = () => {
1754
- e.selectList && e.selectList.length > 0 ? u.value = e.selectList.map((o) => ({
1756
+ e.selectList && e.selectList.length > 0 ? n.value = e.selectList.map((s) => ({
1755
1757
  id: Date.now() + Math.random(),
1756
- text: o.text,
1757
- field: o.field,
1758
+ text: s.text,
1759
+ field: s.field,
1758
1760
  // 如果value中有对应的field,使用value中的值,否则使用selectList中的默认值
1759
- value: e.value[o.field] ?? o.value
1760
- })) : e.value && Object.keys(e.value).length > 0 ? u.value = Object.entries(e.value).map(([o, m]) => ({
1761
+ value: e.value[s.field] ?? s.value
1762
+ })) : e.value && Object.keys(e.value).length > 0 ? n.value = Object.entries(e.value).filter(([s]) => !e.ignoreList || !e.ignoreList.includes(s)).map(([s, m]) => ({
1761
1763
  id: Date.now() + Math.random(),
1762
- field: o,
1764
+ field: s,
1763
1765
  value: m
1764
- })) : u.value = [];
1766
+ })) : n.value = [];
1765
1767
  };
1766
- T(
1768
+ F(
1767
1769
  () => e.value,
1768
1770
  () => {
1769
- n || p(), n = !1;
1771
+ i || p(), i = !1;
1770
1772
  },
1771
1773
  { immediate: !0 }
1772
1774
  );
1773
1775
  const d = () => {
1774
- let o;
1775
- e.selectList && e.selectList.length > 0 ? (o = { ...e.value }, u.value.forEach((m) => {
1776
- m.field && (o[m.field] = m.value);
1777
- })) : o = u.value.reduce(
1776
+ let s;
1777
+ e.selectList && e.selectList.length > 0 ? (s = { ...e.value }, n.value.forEach((m) => {
1778
+ m.field && (s[m.field] = m.value);
1779
+ })) : (s = n.value.reduce(
1778
1780
  (m, c) => (c.field && (m[c.field] = c.value), m),
1779
1781
  {}
1780
- ), n = !0, a("update:value", o);
1781
- }, i = () => {
1782
- u.value.push({
1782
+ ), e.ignoreList && e.ignoreList.length > 0 && e.ignoreList.forEach((m) => {
1783
+ e.value[m] !== void 0 && (s[m] = e.value[m]);
1784
+ })), i = !0, t("update:value", s);
1785
+ }, u = () => {
1786
+ n.value.push({
1783
1787
  id: Date.now() + Math.random(),
1784
1788
  field: "",
1785
1789
  value: ""
1786
1790
  });
1787
- }, f = () => {
1791
+ }, v = () => {
1788
1792
  d();
1789
1793
  };
1790
- return (o, m) => (v(), w("div", Ft, [
1791
- (v(!0), w(O, null, z(u.value, (c) => (v(), w("div", {
1794
+ return (s, m) => (f(), w("div", qa, [
1795
+ (f(!0), w(A, null, H(n.value, (c) => (f(), w("div", {
1792
1796
  key: c.id,
1793
1797
  class: "flex items-center gap-2"
1794
1798
  }, [
1795
- D("div", {
1796
- class: E([o.fieldWidth ? `w-[${o.fieldWidth}%]` : "w-[33%]"])
1799
+ I("div", {
1800
+ class: U([s.fieldWidth ? `w-[${s.fieldWidth}%]` : "w-[33%]"])
1797
1801
  }, [
1798
- !o.selectList || o.selectList.length === 0 ? (v(), b(r(ee), {
1802
+ !s.selectList || s.selectList.length === 0 ? (f(), b(r(ue), {
1799
1803
  key: 0,
1800
1804
  value: c.field,
1801
1805
  "onUpdate:value": (g) => c.field = g,
1802
1806
  title: c.text || c.field,
1803
1807
  class: "w-full",
1804
- placeholder: c.text || o.labelHolder || "配置名",
1805
- onInput: f,
1806
- disabled: !s.value
1807
- }, null, 8, ["value", "onUpdate:value", "title", "placeholder", "disabled"])) : (v(), w("div", Nt, [
1808
- k(r(ee), {
1808
+ placeholder: c.text || s.labelHolder || "配置名",
1809
+ onInput: v,
1810
+ disabled: !o.value
1811
+ }, null, 8, ["value", "onUpdate:value", "title", "placeholder", "disabled"])) : (f(), w("div", Ha, [
1812
+ S(r(ue), {
1809
1813
  value: c.text,
1810
1814
  "onUpdate:value": (g) => c.text = g,
1811
1815
  title: c.text,
1812
1816
  disabled: !0,
1813
1817
  class: "w-[100%]"
1814
1818
  }, null, 8, ["value", "onUpdate:value", "title"]),
1815
- k(r(ee), {
1819
+ S(r(ue), {
1816
1820
  type: "hidden",
1817
1821
  value: c.field,
1818
1822
  "onUpdate:value": (g) => c.field = g
1819
1823
  }, null, 8, ["value", "onUpdate:value"])
1820
1824
  ]))
1821
1825
  ], 2),
1822
- m[0] || (m[0] = D("div", { class: "w-[3%]" }, "=", -1)),
1823
- D("div", {
1824
- class: E([o.fieldWidth ? `w-[${97 - o.fieldWidth}%]` : "w-[64%]"])
1826
+ m[0] || (m[0] = I("div", { class: "w-[3%]" }, "=", -1)),
1827
+ I("div", {
1828
+ class: U([s.fieldWidth ? `w-[${97 - s.fieldWidth}%]` : "w-[64%]"])
1825
1829
  }, [
1826
- k(r(ee), {
1830
+ S(r(ue), {
1827
1831
  value: c.value,
1828
1832
  "onUpdate:value": (g) => c.value = g,
1829
- placeholder: o.valueHolder || "请输入" + c.text || "请输入配置值",
1830
- onInput: f,
1833
+ placeholder: s.valueHolder || "请输入" + c.text || "请输入配置值",
1834
+ onInput: v,
1831
1835
  title: c.value
1832
1836
  }, null, 8, ["value", "onUpdate:value", "placeholder", "title"])
1833
1837
  ], 2)
1834
1838
  ]))), 128)),
1835
- s.value ? (v(), b(r(We), {
1839
+ o.value ? (f(), b(r(at), {
1836
1840
  key: 0,
1837
- onClick: i,
1841
+ onClick: u,
1838
1842
  class: "mt-1 w-[80px] !text-[12px] text-[#666] bg-[#e6f7ff] border-[#b3e0ff] hover:bg-[#b3e0ff] hover:border-[#8abeff]",
1839
1843
  size: "small"
1840
1844
  }, {
1841
1845
  default: h(() => m[1] || (m[1] = [
1842
- N(" 新增配置行 ")
1846
+ O(" 新增配置行 ")
1843
1847
  ])),
1844
1848
  _: 1,
1845
1849
  __: [1]
1846
- })) : y("", !0)
1850
+ })) : C("", !0)
1847
1851
  ]));
1848
1852
  }
1849
- }), Mt = /* @__PURE__ */ G(wa, [["__scopeId", "data-v-aa237552"]]), wl = /* @__PURE__ */ S({
1853
+ }), Qa = /* @__PURE__ */ te(Ut, [["__scopeId", "data-v-aa237552"]]), Ql = /* @__PURE__ */ T({
1850
1854
  __name: "radioStatus",
1851
1855
  props: {
1852
1856
  /**
@@ -1874,13 +1878,13 @@ const bl = /* @__PURE__ */ S({
1874
1878
  }
1875
1879
  },
1876
1880
  setup(l) {
1877
- const t = l, e = _(JSON.parse(JSON.stringify(Be.getOptions(t.dataKey))));
1878
- return t.all === !0 && e.value.unshift({
1881
+ const a = l, e = y(JSON.parse(JSON.stringify(Qe.getOptions(a.dataKey))));
1882
+ return a.all === !0 && e.value.unshift({
1879
1883
  label: "全部",
1880
- value: t.allValue || [0, 1]
1881
- }), (a, s) => (v(), b(Mt, { data: e.value }, null, 8, ["data"]));
1884
+ value: a.allValue || [0, 1]
1885
+ }), (t, o) => (f(), b(Qa, { data: e.value }, null, 8, ["data"]));
1882
1886
  }
1883
- }), Cl = /* @__PURE__ */ S({
1887
+ }), Gl = /* @__PURE__ */ T({
1884
1888
  __name: "index",
1885
1889
  props: {
1886
1890
  startDate: {},
@@ -1888,75 +1892,75 @@ const bl = /* @__PURE__ */ S({
1888
1892
  valueFormat: { default: "YYYY-MM-DD" }
1889
1893
  },
1890
1894
  emits: ["update:startDate", "update:endDate"],
1891
- setup(l, { emit: t }) {
1892
- const e = l, a = t, s = R(), { errInfo: u } = s, n = Q(() => e.valueFormat), p = Q(() => {
1893
- const i = e.startDate, f = e.endDate;
1894
- if (!(!i || !f))
1895
+ setup(l, { emit: a }) {
1896
+ const e = l, t = a, o = V(), { errInfo: n } = o, i = Y(() => e.valueFormat), p = Y(() => {
1897
+ const u = e.startDate, v = e.endDate;
1898
+ if (!(!u || !v))
1895
1899
  try {
1896
- const o = ve(i), m = ve(f);
1897
- return !o.isValid() || !m.isValid() ? void 0 : [o, m];
1900
+ const s = Ce(u), m = Ce(v);
1901
+ return !s.isValid() || !m.isValid() ? void 0 : [s, m];
1898
1902
  } catch {
1899
1903
  return;
1900
1904
  }
1901
- }), d = (i, f) => {
1902
- if (!i || !f || f.length !== 2) {
1903
- a("update:startDate", null), a("update:endDate", null);
1905
+ }), d = (u, v) => {
1906
+ if (!u || !v || v.length !== 2) {
1907
+ t("update:startDate", null), t("update:endDate", null);
1904
1908
  return;
1905
1909
  }
1906
- a("update:startDate", f[0] || null), a("update:endDate", f[1] || null);
1910
+ t("update:startDate", v[0] || null), t("update:endDate", v[1] || null);
1907
1911
  };
1908
- return (i, f) => {
1909
- var o;
1910
- return v(), b(r(Ua), {
1911
- class: E([((o = r(u)) == null ? void 0 : o.errClass) === "error" ? ["error", "!border-red-300", "shadow-[0_0_3px_0px_#ff4d4f]"] : "", "w-full"]),
1912
- locale: r(de),
1913
- "value-format": n.value,
1912
+ return (u, v) => {
1913
+ var s;
1914
+ return f(), b(r(ea), {
1915
+ class: U([((s = r(n)) == null ? void 0 : s.errClass) === "error" ? ["error", "!border-red-300", "shadow-[0_0_3px_0px_#ff4d4f]"] : "", "w-full"]),
1916
+ locale: r(be),
1917
+ "value-format": i.value,
1914
1918
  value: p.value,
1915
1919
  onChange: d
1916
1920
  }, null, 8, ["class", "locale", "value-format", "value"]);
1917
1921
  };
1918
1922
  }
1919
- }), Sl = /* @__PURE__ */ G(Ca, [["__scopeId", "data-v-b33df95f"]]), Tl = /* @__PURE__ */ S({
1923
+ }), Jl = /* @__PURE__ */ te(Lt, [["__scopeId", "data-v-b33df95f"]]), Xl = /* @__PURE__ */ T({
1920
1924
  __name: "index",
1921
1925
  setup(l) {
1922
- const { editorCtrl: t, labelText: e, errInfo: a } = R(), s = () => {
1923
- a != null && a.value.errClass && t && Y(t);
1926
+ const { editorCtrl: a, labelText: e, errInfo: t } = V(), o = () => {
1927
+ t != null && t.value.errClass && a && Z(a);
1924
1928
  };
1925
- return (u, n) => {
1929
+ return (n, i) => {
1926
1930
  var p;
1927
- return v(), b(r(Va), F({
1928
- class: ((p = r(a)) == null ? void 0 : p.errClass) === "error" ? ["error", "!border-red-300", "shadow-[0_0_3px_0px_#ff4d4f]"] : "",
1931
+ return f(), b(r(ta), L({
1932
+ class: ((p = r(t)) == null ? void 0 : p.errClass) === "error" ? ["error", "!border-red-300", "shadow-[0_0_3px_0px_#ff4d4f]"] : "",
1929
1933
  "allow-clear": !0,
1930
1934
  placeholder: "请输入" + r(e),
1931
- onBlur: s,
1932
- onKeyup: n[0] || (n[0] = Se(ae(() => {
1935
+ onBlur: o,
1936
+ onKeyup: i[0] || (i[0] = Re(ce(() => {
1933
1937
  }, ["stop"]), ["enter", "native"])),
1934
- onKeydown: n[1] || (n[1] = Se(ae(() => {
1938
+ onKeydown: i[1] || (i[1] = Re(ce(() => {
1935
1939
  }, ["stop"]), ["enter", "native"]))
1936
- }, u.$attrs), null, 16, ["class", "placeholder"]);
1940
+ }, n.$attrs), null, 16, ["class", "placeholder"]);
1937
1941
  };
1938
1942
  }
1939
- }), $l = /* @__PURE__ */ S({
1943
+ }), Zl = /* @__PURE__ */ T({
1940
1944
  __name: "index",
1941
1945
  props: {
1942
1946
  valueFormat: {}
1943
1947
  },
1944
1948
  setup(l) {
1945
- const t = l, { editorCtrl: e, labelText: a, errInfo: s } = R(), u = () => {
1946
- s != null && s.value.errClass && e && Y(e);
1947
- }, n = _(t.valueFormat ?? "HH:mm");
1949
+ const a = l, { editorCtrl: e, labelText: t, errInfo: o } = V(), n = () => {
1950
+ o != null && o.value.errClass && e && Z(e);
1951
+ }, i = y(a.valueFormat ?? "HH:mm");
1948
1952
  return (p, d) => {
1949
- var i;
1950
- return v(), b(r(Ya), {
1951
- class: E(["w-full", [((i = r(s)) == null ? void 0 : i.errClass) === "error" ? "error !border-red-300 shadow-[0_0_3px_0px_#ff4d4f]" : ""]]),
1952
- placeholder: "请选择" + r(a),
1953
- locale: r(de),
1954
- valueFormat: n.value,
1955
- onBlur: u
1953
+ var u;
1954
+ return f(), b(r(aa), {
1955
+ class: U(["w-full", [((u = r(o)) == null ? void 0 : u.errClass) === "error" ? "error !border-red-300 shadow-[0_0_3px_0px_#ff4d4f]" : ""]]),
1956
+ placeholder: "请选择" + r(t),
1957
+ locale: r(be),
1958
+ valueFormat: i.value,
1959
+ onBlur: n
1956
1960
  }, null, 8, ["class", "placeholder", "locale", "valueFormat"]);
1957
1961
  };
1958
1962
  }
1959
- }), Ot = /* @__PURE__ */ S({
1963
+ }), Ga = /* @__PURE__ */ T({
1960
1964
  __name: "index",
1961
1965
  props: {
1962
1966
  autoload: { type: Boolean },
@@ -1965,55 +1969,55 @@ const bl = /* @__PURE__ */ S({
1965
1969
  value: {}
1966
1970
  },
1967
1971
  emits: ["change", "update:value"],
1968
- setup(l, { emit: t }) {
1969
- const e = l, a = _({ ...e.url }), { editorCtrl: s, labelText: u, errInfo: n } = R(), p = t, d = _([]), i = _([]);
1970
- e.value && e.value.every((o) => {
1971
- i.value.push(o.toString());
1972
- }), T(
1972
+ setup(l, { emit: a }) {
1973
+ const e = l, t = y({ ...e.url }), { editorCtrl: o, labelText: n, errInfo: i } = V(), p = a, d = y([]), u = y([]);
1974
+ e.value && e.value.every((s) => {
1975
+ u.value.push(s.toString());
1976
+ }), F(
1973
1977
  () => e.value,
1974
- (o) => {
1975
- o && (i.value = o);
1978
+ (s) => {
1979
+ s && (u.value = s);
1976
1980
  }
1977
1981
  );
1978
- const f = (o) => {
1979
- p("update:value", o), p("change", o), i.value = o, n != null && n.value.errClass && s && Y(s);
1982
+ const v = (s) => {
1983
+ p("update:value", s), p("change", s), u.value = s, i != null && i.value.errClass && o && Z(o);
1980
1984
  };
1981
- return K(async () => {
1982
- if (a.value) {
1983
- const o = s == null ? void 0 : s.page;
1984
- if (a.value.api || (a.value.api = o == null ? void 0 : o.api), a.value.authorize === void 0 && (a.value.authorize = o == null ? void 0 : o.authorize), e.autoload) {
1985
- const m = await Re(s, {
1985
+ return ee(async () => {
1986
+ if (t.value) {
1987
+ const s = o == null ? void 0 : o.page;
1988
+ if (t.value.api || (t.value.api = s == null ? void 0 : s.api), t.value.authorize === void 0 && (t.value.authorize = s == null ? void 0 : s.authorize), e.autoload) {
1989
+ const m = await Je(o, {
1986
1990
  urlKey: "list",
1987
- url: { ...a.value, url: a.value.url },
1991
+ url: { ...t.value, url: t.value.url },
1988
1992
  loadingText: !1,
1989
1993
  params: e.params
1990
1994
  });
1991
1995
  d.value = (m == null ? void 0 : m.data) ?? [];
1992
1996
  }
1993
1997
  }
1994
- }), (o, m) => {
1998
+ }), (s, m) => {
1995
1999
  var c;
1996
- return v(), b(r(Ka), F({
1997
- class: ((c = r(n)) == null ? void 0 : c.errClass) === "error" ? ["error", "!border-red-300", "shadow-[0_0_3px_0px_#ff4d4f]"] : "",
1998
- placeholder: "请输入" + r(u),
1999
- targetKeys: i.value,
2000
- onChange: f
2001
- }, o.$attrs), {
2002
- children: h(({ direction: g, disabled: C, filteredItems: $, onItemSelectAll: M, onItemSelect: x, selectedKeys: B }) => [
2003
- I(o.$slots, "children", {
2000
+ return f(), b(r(la), L({
2001
+ class: ((c = r(i)) == null ? void 0 : c.errClass) === "error" ? ["error", "!border-red-300", "shadow-[0_0_3px_0px_#ff4d4f]"] : "",
2002
+ placeholder: "请输入" + r(n),
2003
+ targetKeys: u.value,
2004
+ onChange: v
2005
+ }, s.$attrs), {
2006
+ children: h(({ direction: g, disabled: $, filteredItems: E, onItemSelectAll: P, onItemSelect: k, selectedKeys: R }) => [
2007
+ D(s.$slots, "children", {
2004
2008
  direction: g,
2005
- disabled: C,
2006
- filteredItems: $,
2007
- onItemSelectAll: M,
2008
- onItemSelect: x,
2009
- selectedKeys: B
2009
+ disabled: $,
2010
+ filteredItems: E,
2011
+ onItemSelectAll: P,
2012
+ onItemSelect: k,
2013
+ selectedKeys: R
2010
2014
  })
2011
2015
  ]),
2012
2016
  _: 3
2013
2017
  }, 16, ["class", "placeholder", "targetKeys"]);
2014
2018
  };
2015
2019
  }
2016
- }), Dl = /* @__PURE__ */ S({
2020
+ }), er = /* @__PURE__ */ T({
2017
2021
  __name: "transferTable",
2018
2022
  props: {
2019
2023
  /**
@@ -2039,65 +2043,65 @@ const bl = /* @__PURE__ */ S({
2039
2043
  }
2040
2044
  },
2041
2045
  emits: ["update:value"],
2042
- setup(l, { emit: t }) {
2043
- const e = l, a = t, s = _(e.autoload), u = _(e.value), n = _(e.gridCtrl.primaryKey);
2044
- T(
2045
- () => u.value,
2046
- (i) => {
2047
- a("update:value", i);
2046
+ setup(l, { emit: a }) {
2047
+ const e = l, t = a, o = y(e.autoload), n = y(e.value), i = y(e.gridCtrl.primaryKey);
2048
+ F(
2049
+ () => n.value,
2050
+ (u) => {
2051
+ t("update:value", u);
2048
2052
  }
2049
- ), T(
2053
+ ), F(
2050
2054
  () => e.value,
2051
- (i) => {
2052
- i && (u.value = i);
2055
+ (u) => {
2056
+ u && (n.value = u);
2053
2057
  }
2054
- ), e.gridCtrl.autoload = !1, e.gridCtrl.remotePage = !1, e.gridCtrl.selectable = _(!0), e.gridCtrl.buttons = _([]), e.gridCtrl.tools = [];
2055
- const p = ({ disabled: i, selectedKeys: f, onItemSelectAll: o, onItemSelect: m }) => ({
2058
+ ), e.gridCtrl.autoload = !1, e.gridCtrl.remotePage = !1, e.gridCtrl.selectable = y(!0), e.gridCtrl.buttons = y([]), e.gridCtrl.tools = [];
2059
+ const p = ({ disabled: u, selectedKeys: v, onItemSelectAll: s, onItemSelect: m }) => ({
2056
2060
  getCheckboxProps: (c) => ({
2057
2061
  // 控制是否禁止
2058
- disabled: i || c.disabled
2062
+ disabled: u || c.disabled
2059
2063
  }),
2060
2064
  onSelectAll(c, g) {
2061
- const C = g.filter(($) => !$.disabled).map(({ [n.value]: $ }) => $);
2062
- o(C, c);
2065
+ const $ = g.filter((E) => !E.disabled).map(({ [i.value]: E }) => E);
2066
+ s($, c);
2063
2067
  },
2064
- onSelect({ [n.value]: c }, g) {
2068
+ onSelect({ [i.value]: c }, g) {
2065
2069
  m(c, g);
2066
2070
  },
2067
- selectedRowKeys: f
2068
- }), d = _([]);
2069
- return K(async () => {
2070
- if (s.value) {
2071
- const i = await Re(e.gridCtrl, {
2071
+ selectedRowKeys: v
2072
+ }), d = y([]);
2073
+ return ee(async () => {
2074
+ if (o.value) {
2075
+ const u = await Je(e.gridCtrl, {
2072
2076
  urlKey: "list",
2073
2077
  url: { ...e.gridCtrl.gridUrl, url: e.gridCtrl.gridUrl.url },
2074
2078
  params: e.gridCtrl.gridQuery,
2075
2079
  loadingText: !1
2076
2080
  });
2077
- d.value = (i == null ? void 0 : i.data) ?? [];
2081
+ d.value = (u == null ? void 0 : u.data) ?? [];
2078
2082
  }
2079
- }), (i, f) => (v(), b(Ot, F({
2083
+ }), (u, v) => (f(), b(Ga, L({
2080
2084
  "data-source": d.value,
2081
- "row-key": (o) => o[n.value],
2082
- value: u.value,
2083
- "onUpdate:value": f[0] || (f[0] = (o) => u.value = o),
2085
+ "row-key": (s) => s[i.value],
2086
+ value: n.value,
2087
+ "onUpdate:value": v[0] || (v[0] = (s) => n.value = s),
2084
2088
  "list-style": {
2085
2089
  width: "300px",
2086
2090
  height: "500px"
2087
2091
  },
2088
2092
  "show-select-all": !1,
2089
2093
  "show-search": !0,
2090
- "filter-option": (o, m) => {
2094
+ "filter-option": (s, m) => {
2091
2095
  for (const c of e.gridCtrl.columns.value)
2092
- if (m[c.dataIndex].toString().indexOf(o) !== -1)
2096
+ if (m[c.dataIndex].toString().indexOf(s) !== -1)
2093
2097
  return !0;
2094
2098
  return !1;
2095
2099
  }
2096
- }, i.$attrs), {
2097
- children: h(({ filteredItems: o, onItemSelectAll: m, onItemSelect: c, selectedKeys: g }) => [
2098
- k(r(je), {
2100
+ }, u.$attrs), {
2101
+ children: h(({ filteredItems: s, onItemSelectAll: m, onItemSelect: c, selectedKeys: g }) => [
2102
+ S(r(lt), {
2099
2103
  columns: l.gridCtrl.columns.value,
2100
- "row-key": n.value,
2104
+ "row-key": i.value,
2101
2105
  "row-selection": p({
2102
2106
  disabled: !1,
2103
2107
  selectedKeys: g,
@@ -2106,12 +2110,12 @@ const bl = /* @__PURE__ */ S({
2106
2110
  }),
2107
2111
  bordered: !1,
2108
2112
  size: "small",
2109
- "data-source": o,
2113
+ "data-source": s,
2110
2114
  scroll: { x: 300 },
2111
- "custom-row": (C) => ({
2115
+ "custom-row": ($) => ({
2112
2116
  onClick: () => {
2113
- const $ = C[n.value];
2114
- c($, !g.includes($));
2117
+ const E = $[i.value];
2118
+ c(E, !g.includes(E));
2115
2119
  }
2116
2120
  })
2117
2121
  }, null, 8, ["columns", "row-key", "row-selection", "data-source", "custom-row"])
@@ -2119,7 +2123,7 @@ const bl = /* @__PURE__ */ S({
2119
2123
  _: 1
2120
2124
  }, 16, ["data-source", "row-key", "value", "filter-option"]));
2121
2125
  }
2122
- }), Bt = /* @__PURE__ */ S({
2126
+ }), Ja = /* @__PURE__ */ T({
2123
2127
  __name: "index",
2124
2128
  props: {
2125
2129
  multiple: {
@@ -2145,83 +2149,294 @@ const bl = /* @__PURE__ */ S({
2145
2149
  }
2146
2150
  },
2147
2151
  emits: ["change", "update:value"],
2148
- setup(l, { emit: t }) {
2149
- const e = l, a = e.value === void 0 ? !0 : e.undefValue, s = e.treeCtrl, u = R(), { errInfo: n, labelText: p } = u, d = t;
2150
- u.inputEmit = d;
2151
- const i = _([]), f = _();
2152
- T(
2152
+ setup(l, { emit: a }) {
2153
+ const e = l, t = e.value === void 0 ? !0 : e.undefValue, o = e.treeCtrl, n = V(), { errInfo: i, labelText: p } = n, d = a;
2154
+ n.inputEmit = d;
2155
+ const u = y([]), v = y();
2156
+ F(
2153
2157
  () => e.value,
2154
2158
  (c) => {
2155
- f.value = c;
2159
+ v.value = c;
2156
2160
  },
2157
2161
  { immediate: !0 }
2158
- ), T(
2159
- () => f.value,
2162
+ ), F(
2163
+ () => v.value,
2160
2164
  (c) => {
2161
2165
  d("update:value", c);
2162
2166
  }
2163
- ), T(
2164
- () => s.data.value,
2167
+ ), F(
2168
+ () => o.data.value,
2165
2169
  (c) => {
2166
- c && (i.value = s.fieldMap ? ne(s.fieldMap, c) : c);
2170
+ c && (u.value = o.fieldMap ? ve(o.fieldMap, c) : c);
2167
2171
  },
2168
2172
  { immediate: !0 }
2169
2173
  );
2170
- const o = (c) => {
2171
- e.multiple ? f.value = c ?? [] : c == null ? f.value = a ? void 0 : null : f.value = c, d("change", f.value);
2174
+ const s = (c) => {
2175
+ e.multiple ? v.value = c ?? [] : c == null ? v.value = t ? void 0 : null : v.value = c, d("change", v.value);
2172
2176
  };
2173
- _e(() => {
2177
+ Pe(() => {
2174
2178
  e.treeCtrl && e.treeCtrl.autoload && (e.treeCtrl.reload.value = !0);
2175
- }), K(() => {
2176
- s.fieldMap || (s.fieldMap = {
2179
+ }), ee(() => {
2180
+ o.fieldMap || (o.fieldMap = {
2177
2181
  label: "Name",
2178
2182
  key: "Id",
2179
2183
  value: "Id"
2180
- }), s.data.value ? i.value = s.fieldMap ? ne(s.fieldMap, s.data.value) : s.data.value : e.treeCtrl.autoload && Ae(e.treeCtrl);
2184
+ }), o.data.value ? u.value = o.fieldMap ? ve(o.fieldMap, o.data.value) : o.data.value : e.treeCtrl.autoload && Ge(e.treeCtrl);
2181
2185
  });
2182
2186
  const m = () => {
2183
- f.value = a ? void 0 : null;
2187
+ v.value = t ? void 0 : null;
2184
2188
  };
2185
2189
  return (c, g) => {
2186
- var C;
2187
- return v(), b(r(Wa), F({
2188
- class: [[(C = r(n)) == null ? void 0 : C.errClass], "w-full"],
2190
+ var $;
2191
+ return f(), b(r(ra), L({
2192
+ class: [[($ = r(i)) == null ? void 0 : $.errClass], "w-full"],
2189
2193
  "tree-line": "",
2190
2194
  multiple: l.multiple,
2191
2195
  "tree-default-expanded-keys": ["-"],
2192
- value: f.value,
2193
- "onUpdate:value": g[0] || (g[0] = ($) => f.value = $),
2194
- "tree-data": i.value,
2196
+ value: v.value,
2197
+ "onUpdate:value": g[0] || (g[0] = (E) => v.value = E),
2198
+ "tree-data": u.value,
2195
2199
  placeholder: "请选择" + r(p),
2196
- onChange: o,
2200
+ onChange: s,
2197
2201
  onClear: m
2198
2202
  }, c.$attrs), null, 16, ["class", "multiple", "value", "tree-data", "placeholder"]);
2199
2203
  };
2200
2204
  }
2201
- }), Il = /* @__PURE__ */ G(Bt, [["__scopeId", "data-v-71d50074"]]), At = { class: "relative h-[calc(100vh-80px)] overflow-y-auto" }, Rt = { class: "flex w-full h-full min-h-full" }, Lt = {
2205
+ }), tr = /* @__PURE__ */ te(Ja, [["__scopeId", "data-v-71d50074"]]), Xa = { class: "w-full mt-1" }, Za = { class: "flex flex-wrap gap-2" }, el = ["onMouseenter"], tl = { class: "w-16 h-16 border border-solid border-gray-200 rounded overflow-hidden" }, al = ["src"], ll = {
2206
+ key: 0,
2207
+ class: "absolute inset-0 bg-black bg-opacity-50 flex items-center justify-center gap-4 rounded"
2208
+ }, rl = ["onClick"], sl = ["onClick"], ol = {
2209
+ key: 0,
2210
+ class: "w-16 h-16"
2211
+ }, nl = /* @__PURE__ */ T({
2212
+ __name: "imageList",
2213
+ props: {
2214
+ autoUpload: { type: Boolean, default: !1 },
2215
+ uploadUrl: {},
2216
+ previewUrl: {},
2217
+ deleteUrl: {},
2218
+ fileList: { default: () => [] },
2219
+ placeholder: { default: "" },
2220
+ fileExt: {},
2221
+ maxFileSize: { default: 20 },
2222
+ maxCount: { default: 5 },
2223
+ maxCountTip: { type: Boolean, default: !1 },
2224
+ maxFileSizeTip: { type: Boolean, default: !0 },
2225
+ fileExtTip: { type: Boolean, default: !0 },
2226
+ parentPath: {},
2227
+ showDelete: { type: Boolean, default: !0 }
2228
+ },
2229
+ emits: ["update:file-list"],
2230
+ setup(l, { emit: a }) {
2231
+ const e = l, t = V(), { errInfo: o } = t, n = y(e.fileList), i = y([]), p = y(), d = a, u = Y(() => {
2232
+ var x;
2233
+ return (x = e.fileExt) != null && x.length ? e.fileExt.map((_) => `.${_}`).join(",") : "";
2234
+ }), v = (x) => {
2235
+ var _;
2236
+ if (e.fileExt && e.fileExt.length > 0) {
2237
+ const B = ((_ = x.name.split(".").pop()) == null ? void 0 : _.toLowerCase()) || "";
2238
+ if (!e.fileExt.includes(B))
2239
+ return q.error("文件类型不支持"), !1;
2240
+ }
2241
+ return x.size / 1024 / 1024 > e.maxFileSize ? (q.error(`文件大小超过 ${e.maxFileSize}MB 限制`), !1) : !0;
2242
+ }, s = () => e.maxCount > 1 && n.value.length >= e.maxCount, m = (x) => {
2243
+ const _ = x;
2244
+ return _.params || (_.params = {}), _.params.FileKey = _.name, e.parentPath && (_.params.FileKey = Ne.join("/", e.parentPath, _.name)), _;
2245
+ }, c = (x) => v(x) && e.autoUpload, g = async (x) => {
2246
+ if (x.length === 0) return;
2247
+ const _ = [...n.value];
2248
+ let B = !1;
2249
+ for (const z of x) {
2250
+ if (!v(z)) {
2251
+ B = !0;
2252
+ continue;
2253
+ }
2254
+ const N = m(z);
2255
+ if (e.maxCount === 1) {
2256
+ _.length = 0, _.push(N);
2257
+ break;
2258
+ }
2259
+ if (s()) {
2260
+ q.error(`最多上传 ${e.maxCount} 个文件`), B = !0;
2261
+ break;
2262
+ }
2263
+ const G = _.findIndex((_e) => _e.name === N.name);
2264
+ G > -1 ? _[G] = N : _.push(N);
2265
+ }
2266
+ (!B || _.length > 0) && (n.value = _), i.value = [];
2267
+ }, $ = (x) => {
2268
+ i.value = x, g(x);
2269
+ }, E = Y(() => ({
2270
+ accept: u.value,
2271
+ multiple: e.maxCount !== 1,
2272
+ fileList: i.value,
2273
+ "onUpdate:fileList": $,
2274
+ beforeUpload: c,
2275
+ listType: "text",
2276
+ showUploadList: !1,
2277
+ customRequest: async () => {
2278
+ if (e.autoUpload && e.uploadUrl)
2279
+ for (const x of n.value)
2280
+ x.percent === 0 && await Bt(e.uploadUrl, x);
2281
+ }
2282
+ }));
2283
+ F(
2284
+ () => e.fileList,
2285
+ (x) => {
2286
+ n.value = x;
2287
+ },
2288
+ { deep: !0, immediate: !0 }
2289
+ ), F(
2290
+ () => n.value,
2291
+ (x) => {
2292
+ d("update:file-list", x);
2293
+ },
2294
+ { deep: !0 }
2295
+ ), F(
2296
+ () => e.parentPath,
2297
+ (x) => {
2298
+ x && n.value.forEach((_) => {
2299
+ _.params.FileKey = Ne.join("/", x, _.fileName);
2300
+ });
2301
+ }
2302
+ );
2303
+ const P = y(!1), k = y(""), R = (x) => {
2304
+ const _ = n.value[x];
2305
+ k.value = pe(_), P.value = !0;
2306
+ }, j = (x) => {
2307
+ const _ = n.value[x];
2308
+ e.deleteUrl && _.minioFile && _.minioFile.Key ? Fe(e.deleteUrl, {
2309
+ Query: {
2310
+ FileKey: _.minioFile.Key
2311
+ }
2312
+ }).then((B) => {
2313
+ B && B.status === Ie.SUCCESS && (q.success("删除文件成功!"), n.value.splice(x, 1));
2314
+ }) : n.value.splice(x, 1);
2315
+ }, Q = y(/* @__PURE__ */ new Map()), pe = (x) => {
2316
+ if (x.originFileObj)
2317
+ return URL.createObjectURL(x.originFileObj);
2318
+ if (x.minioFile) {
2319
+ const _ = x.minioFile.Key;
2320
+ return Q.value.has(_) ? Q.value.get(_) : (ye(x), "");
2321
+ }
2322
+ return "";
2323
+ }, ye = async (x) => {
2324
+ if (!x.minioFile || !e.previewUrl) return;
2325
+ const _ = x.minioFile.Key;
2326
+ try {
2327
+ const B = `${e.previewUrl.url}?FileKey=${encodeURIComponent(x.minioFile.Key)}`, z = Nt() ? await Mt.getToken() : $e().getToken(), N = await fetch(B, {
2328
+ method: "GET",
2329
+ headers: {
2330
+ Authorization: `Bearer ${z}`
2331
+ }
2332
+ });
2333
+ if (N.ok) {
2334
+ const G = await N.blob(), _e = URL.createObjectURL(G);
2335
+ Q.value.set(_, _e);
2336
+ } else
2337
+ console.error("加载图片失败:", N.status);
2338
+ } catch (B) {
2339
+ console.error("加载图片失败:", B);
2340
+ }
2341
+ }, pt = Y(() => n.value.length < e.maxCount), xe = y(-1);
2342
+ return (x, _) => {
2343
+ const B = ne("auth");
2344
+ return f(), w("div", Xa, [
2345
+ I("div", Za, [
2346
+ (f(!0), w(A, null, H(n.value, (z, N) => (f(), w("div", {
2347
+ key: N,
2348
+ class: "relative image-item",
2349
+ onMouseenter: (G) => xe.value = N,
2350
+ onMouseleave: _[0] || (_[0] = (G) => xe.value = -1)
2351
+ }, [
2352
+ I("div", tl, [
2353
+ I("img", {
2354
+ src: pe(z),
2355
+ class: "w-full h-full object-cover"
2356
+ }, null, 8, al)
2357
+ ]),
2358
+ xe.value === N ? (f(), w("div", ll, [
2359
+ x.previewUrl ? (f(), w("div", {
2360
+ key: 0,
2361
+ class: "flex items-center text-white cursor-pointer hover:text-blue-400",
2362
+ onClick: (G) => R(N)
2363
+ }, [
2364
+ S(r(K), {
2365
+ icon: "icon-eye",
2366
+ clickable: ""
2367
+ }),
2368
+ _[1] || (_[1] = I("span", { class: "text-sm ml-1" }, "预览", -1))
2369
+ ], 8, rl)) : C("", !0),
2370
+ x.showDelete !== !1 ? (f(), w("div", {
2371
+ key: 1,
2372
+ class: "flex items-center text-white cursor-pointer hover:text-red-400",
2373
+ onClick: (G) => j(N)
2374
+ }, [
2375
+ S(r(K), {
2376
+ icon: "icon-new",
2377
+ angle: 45,
2378
+ clickable: ""
2379
+ }),
2380
+ _[2] || (_[2] = I("span", { class: "text-sm ml-1" }, "删除", -1))
2381
+ ], 8, sl)) : C("", !0)
2382
+ ])) : C("", !0)
2383
+ ], 40, el))), 128)),
2384
+ pt.value ? (f(), w("div", ol, [
2385
+ X((f(), b(r(sa), L({
2386
+ ref_key: "fileUploader",
2387
+ ref: p
2388
+ }, E.value), {
2389
+ default: h(() => {
2390
+ var z;
2391
+ return [
2392
+ I("div", {
2393
+ class: U(["w-16 h-16 border border-dashed border-gray-300 rounded flex items-center justify-center cursor-pointer hover:border-blue-500 transition-colors", [(z = r(o)) == null ? void 0 : z.errClass]])
2394
+ }, [
2395
+ S(r(K), {
2396
+ icon: "icon-new",
2397
+ class: "text-gray-400 w-10 h-10"
2398
+ })
2399
+ ], 2)
2400
+ ];
2401
+ }),
2402
+ _: 1
2403
+ }, 16)), [
2404
+ [B, { role: ["Super", "Admin"], permit: ":imagelist:upload" }]
2405
+ ])
2406
+ ])) : C("", !0)
2407
+ ]),
2408
+ S(r(oa), {
2409
+ preview: { visible: P.value, onVisibleChange: (z) => P.value = z },
2410
+ src: k.value,
2411
+ style: { display: "none" }
2412
+ }, null, 8, ["preview", "src"])
2413
+ ]);
2414
+ };
2415
+ }
2416
+ }), ar = /* @__PURE__ */ te(nl, [["__scopeId", "data-v-26d707cc"]]), il = { class: "relative h-[calc(100vh-80px)] overflow-y-auto" }, ul = { class: "flex w-full h-full min-h-full" }, cl = {
2202
2417
  key: 0,
2203
2418
  class: "w-1/4 pr-4 min-h-full min-w-[170px] max-w-[200px]"
2204
- }, zt = { class: "flex-1 h-full overflow-y-auto" }, El = /* @__PURE__ */ S({
2419
+ }, dl = { class: "flex-1 h-full overflow-y-auto" }, lr = /* @__PURE__ */ T({
2205
2420
  __name: "index",
2206
2421
  props: {
2207
2422
  left: { type: Boolean }
2208
2423
  },
2209
2424
  setup(l) {
2210
- const { useToken: t } = Ve, { token: e } = t();
2211
- return (a, s) => (v(), w("div", At, [
2212
- k(r(ja), {
2425
+ const { useToken: a } = Ze, { token: e } = a();
2426
+ return (t, o) => (f(), w("div", il, [
2427
+ S(r(na), {
2213
2428
  class: "m-[10px] p-[10px] h-[calc(100vh-100px)] !min-h-[calc(100vh-100px)]",
2214
- style: be({
2429
+ style: De({
2215
2430
  backgroundColor: r(e).colorBgContainer
2216
2431
  })
2217
2432
  }, {
2218
2433
  default: h(() => [
2219
- D("div", Rt, [
2220
- a.left ? (v(), w("div", Lt, [
2221
- I(a.$slots, "left")
2222
- ])) : y("", !0),
2223
- D("div", zt, [
2224
- I(a.$slots, "default")
2434
+ I("div", ul, [
2435
+ t.left ? (f(), w("div", cl, [
2436
+ D(t.$slots, "left")
2437
+ ])) : C("", !0),
2438
+ I("div", dl, [
2439
+ D(t.$slots, "default")
2225
2440
  ])
2226
2441
  ])
2227
2442
  ]),
@@ -2231,157 +2446,158 @@ const bl = /* @__PURE__ */ S({
2231
2446
  }
2232
2447
  });
2233
2448
  export {
2234
- Dr as Alert,
2235
- Yr as AppIcon,
2236
- ce as AppRouter,
2237
- _r as AsyncUploader,
2238
- ml as AutoComplete,
2239
- Kr as Breadcrumb,
2240
- A as Button,
2241
- Qe as Cache,
2242
- ot as CacheKeys,
2243
- wr as CanPreviewFileExt,
2244
- hl as Cascader,
2245
- gl as Checkbox,
2246
- El as Content,
2247
- bl as DatePicker,
2248
- Wr as Datetime,
2249
- Zr as Dialog,
2250
- ul as Drawer,
2251
- Nl as EventPrefix,
2252
- cl as Form,
2253
- dl as FormItem,
2254
- nl as Fullscreen,
2255
- jr as Header,
2256
- qr as HeaderExits,
2257
- it as Helper,
2258
- Ml as ICONS_LIB,
2259
- Hr as Icon,
2260
- bt as Icontool,
2261
- Et as Input,
2262
- _l as InputIcon,
2263
- yl as InputNumber,
2264
- xl as InputPassword,
2265
- il as LayoutIcon,
2266
- Ir as Loading,
2267
- Qr as Menu,
2268
- Gr as MenuTabs,
2269
- Ol as MicroOpenApis,
2270
- Be as OPTIONS,
2271
- ma as OptionCommProps,
2272
- Jr as ProjectIcon,
2273
- kl as PropEditor,
2274
- q as ProviderKeys,
2275
- Mt as Radio,
2276
- wl as RadioStatus,
2277
- Cl as RangePicker,
2278
- pl as Search,
2279
- fe as SearchItem,
2280
- Sl as Select,
2281
- da as Switch,
2282
- fl as Table,
2283
- ht as TableOperate,
2284
- Tl as Textarea,
2285
- $l as TimePicker,
2286
- U as ToolIcon,
2287
- kt as Toolbar,
2288
- Ur as Tooltip,
2289
- Ot as Transfer,
2290
- Dl as TransferTable,
2291
- vl as Tree,
2292
- Il as TreeSelect,
2293
- Cr as UploadList,
2294
- xr as UploadStatus,
2295
- Er as appendExcelData,
2296
- Pr as checkExcelDuplicates,
2297
- Bl as checkIconsExpired,
2298
- _a as circleLoading,
2299
- ra as createFromIconfont,
2300
- Fr as createMarkedExcelView,
2301
- Al as crumbs,
2302
- ll as csvToExcelBlob,
2303
- qe as csvToExcelView,
2304
- Nr as csvToNormalized,
2305
- Ee as defaultTools,
2306
- Rl as doDelete,
2307
- Ll as doExecute,
2308
- Re as doQuery,
2309
- zl as doSave,
2310
- Sr as donwloadFromMinio,
2311
- Ha as downloadBlob,
2312
- Ul as eventBus,
2313
- Mr as excelToExcelView,
2314
- Or as excelToNormalized,
2315
- ol as exportResults,
2316
- sl as exportSelectedRows,
2317
- Oe as filterColumns,
2318
- Y as formValidate,
2319
- Vl as getFormDetail,
2320
- Yl as getIconTransform,
2321
- Kl as getRecordDetail,
2322
- Wl as getRuleTexts,
2323
- ya as getSelectedLabels,
2324
- jl as getSelectedValues,
2325
- W as getToolByKey,
2326
- ke as getToolGroup,
2327
- j as getToolStatus,
2328
- J as getToolVisible,
2329
- we as gridQueryFind,
2330
- ca as gridQueryList,
2331
- ql as gridRowUpdate,
2332
- pa as gridStatusUpdate,
2333
- tl as initCacheCheck,
2334
- al as initDirective,
2335
- Hl as initMenu,
2336
- Ql as initPageFactory,
2337
- Gl as initValidate,
2338
- Z as isEmpty,
2339
- ga as loadOption,
2340
- Jl as mergeColumns,
2341
- Br as normalizedToExcelView,
2342
- rt as onColumnVisibleChanged,
2343
- oa as onFormClose,
2344
- Fe as onFormSave,
2345
- sa as onFormSaveAs,
2346
- He as onFullscreenClick,
2347
- ia as onGridRowDelete,
2348
- na as onGridRowEdit,
2349
- Xl as onGridRowExpand,
2350
- xa as onOptionChanged,
2351
- Ja as onReloadClick,
2352
- V as onToolClicked,
2353
- ua as openNewForm,
2354
- Zl as outFormDataFields,
2355
- er as parseIcons,
2356
- yr as path,
2357
- ar as pendingNavigation,
2358
- tr as pinia,
2359
- Tr as previewFromMinio,
2360
- rl as processCsvFile,
2361
- Ar as processExcelFile,
2362
- Ae as queryTree,
2363
- lr as resetRules,
2364
- rr as routes,
2365
- sr as saveForm,
2366
- or as setFormData,
2367
- nr as showBreadcrumb,
2368
- Rr as toExcel,
2369
- ba as unloadOption,
2370
- ir as uploadTempBtn,
2371
- ur as uploadTempOpener,
2372
- cr as useAppInfo,
2373
- dr as useEditorFactory,
2374
- Ne as useFormItemFactory,
2375
- pr as useGridFactory,
2376
- fr as useHostInfo,
2377
- R as useInputFactory,
2378
- ha as useOptionFactory,
2379
- vr as usePageFactory,
2380
- mr as usePageInfo,
2381
- he as useSettingInfo,
2382
- st as useToolFactory,
2383
- hr as useTreeFactory,
2384
- Pe as useUserInfo,
2385
- gr as validateData,
2386
- Lr as validateExcel
2449
+ Zr as Alert,
2450
+ vs as AppIcon,
2451
+ ge as AppRouter,
2452
+ Yr as AsyncUploader,
2453
+ zl as AutoComplete,
2454
+ ms as Breadcrumb,
2455
+ W as Button,
2456
+ ot as Cache,
2457
+ _a as CacheKeys,
2458
+ Hr as CanPreviewFileExt,
2459
+ Kl as Cascader,
2460
+ Vl as Checkbox,
2461
+ lr as Content,
2462
+ jl as DatePicker,
2463
+ hs as Datetime,
2464
+ Cs as Dialog,
2465
+ Ml as Drawer,
2466
+ or as EventPrefix,
2467
+ Bl as Form,
2468
+ Nl as FormItem,
2469
+ Ul as Fullscreen,
2470
+ gs as Header,
2471
+ bs as HeaderExits,
2472
+ wa as Helper,
2473
+ nr as ICONS_LIB,
2474
+ ys as Icon,
2475
+ Ua as Icontool,
2476
+ ar as ImageList,
2477
+ Ya as Input,
2478
+ Yl as InputIcon,
2479
+ ql as InputNumber,
2480
+ Wl as InputPassword,
2481
+ Ll as LayoutIcon,
2482
+ es as Loading,
2483
+ xs as Menu,
2484
+ _s as MenuTabs,
2485
+ Mt as MicroOpenApis,
2486
+ Qe as OPTIONS,
2487
+ St as OptionCommProps,
2488
+ ks as ProjectIcon,
2489
+ Hl as PropEditor,
2490
+ re as ProviderKeys,
2491
+ Qa as Radio,
2492
+ Ql as RadioStatus,
2493
+ Gl as RangePicker,
2494
+ Ol as Search,
2495
+ we as SearchItem,
2496
+ Jl as Select,
2497
+ _t as Switch,
2498
+ Rl as Table,
2499
+ Da as TableOperate,
2500
+ Xl as Textarea,
2501
+ Zl as TimePicker,
2502
+ K as ToolIcon,
2503
+ Na as Toolbar,
2504
+ ps as Tooltip,
2505
+ Ga as Transfer,
2506
+ er as TransferTable,
2507
+ Al as Tree,
2508
+ tr as TreeSelect,
2509
+ Qr as UploadList,
2510
+ Wr as UploadStatus,
2511
+ ts as appendExcelData,
2512
+ as as checkExcelDuplicates,
2513
+ ir as checkIconsExpired,
2514
+ It as circleLoading,
2515
+ vt as createFromIconfont,
2516
+ ls as createMarkedExcelView,
2517
+ ur as crumbs,
2518
+ Il as csvToExcelBlob,
2519
+ rt as csvToExcelView,
2520
+ rs as csvToNormalized,
2521
+ je as defaultTools,
2522
+ cr as doDelete,
2523
+ dr as doExecute,
2524
+ Je as doQuery,
2525
+ pr as doSave,
2526
+ Gr as donwloadFromMinio,
2527
+ ua as downloadBlob,
2528
+ fr as eventBus,
2529
+ ss as excelToExcelView,
2530
+ os as excelToNormalized,
2531
+ Pl as exportResults,
2532
+ Dl as exportSelectedRows,
2533
+ He as filterColumns,
2534
+ Z as formValidate,
2535
+ vr as getFormDetail,
2536
+ mr as getIconTransform,
2537
+ hr as getRecordDetail,
2538
+ gr as getRuleTexts,
2539
+ Dt as getSelectedLabels,
2540
+ br as getSelectedValues,
2541
+ ae as getToolByKey,
2542
+ Me as getToolGroup,
2543
+ le as getToolStatus,
2544
+ se as getToolVisible,
2545
+ Be as gridQueryFind,
2546
+ xt as gridQueryList,
2547
+ yr as gridRowUpdate,
2548
+ kt as gridStatusUpdate,
2549
+ Fl as initCacheCheck,
2550
+ Tl as initDirective,
2551
+ xr as initMenu,
2552
+ _r as initPageFactory,
2553
+ kr as initValidate,
2554
+ ie as isEmpty,
2555
+ Tt as loadOption,
2556
+ wr as mergeColumns,
2557
+ ns as normalizedToExcelView,
2558
+ ya as onColumnVisibleChanged,
2559
+ ht as onFormClose,
2560
+ Ye as onFormSave,
2561
+ mt as onFormSaveAs,
2562
+ st as onFullscreenClick,
2563
+ bt as onGridRowDelete,
2564
+ gt as onGridRowEdit,
2565
+ Cr as onGridRowExpand,
2566
+ Et as onOptionChanged,
2567
+ pa as onReloadClick,
2568
+ J as onToolClicked,
2569
+ yt as openNewForm,
2570
+ Sr as outFormDataFields,
2571
+ $r as parseIcons,
2572
+ Ne as path,
2573
+ Tr as pendingNavigation,
2574
+ Fr as pinia,
2575
+ Jr as previewFromMinio,
2576
+ El as processCsvFile,
2577
+ is as processExcelFile,
2578
+ Ge as queryTree,
2579
+ Ir as resetRules,
2580
+ Er as routes,
2581
+ Dr as saveForm,
2582
+ Pr as setFormData,
2583
+ Ur as showBreadcrumb,
2584
+ us as toExcel,
2585
+ Ft as unloadOption,
2586
+ Lr as uploadTempBtn,
2587
+ Mr as uploadTempOpener,
2588
+ Br as useAppInfo,
2589
+ Nr as useEditorFactory,
2590
+ We as useFormItemFactory,
2591
+ Or as useGridFactory,
2592
+ Rr as useHostInfo,
2593
+ V as useInputFactory,
2594
+ $t as useOptionFactory,
2595
+ Ar as usePageFactory,
2596
+ zr as usePageInfo,
2597
+ Te as useSettingInfo,
2598
+ xa as useToolFactory,
2599
+ Kr as useTreeFactory,
2600
+ $e as useUserInfo,
2601
+ Vr as validateData,
2602
+ cs as validateExcel
2387
2603
  };