@skyfox2000/webui 1.4.16 → 1.4.18

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