@skyfox2000/webui 1.0.0 → 1.0.4

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,29 +1,29 @@
1
- import { _ as La } from "./assets/modules/index-D47Ci-T3.js";
2
- import { _ as O } from "./assets/modules/index-BoKIa2sr.js";
1
+ import { _ as Ra } from "./assets/modules/index-D47Ci-T3.js";
2
+ import { _ as z } from "./assets/modules/index-BoKIa2sr.js";
3
3
  import { _ as Y } from "./assets/modules/index-BEWJ_qAH.js";
4
- import { a as Ua } from "./assets/modules/index-BEWJ_qAH.js";
5
- import { _ as V } from "./assets/modules/menuTabs-JxjPoyCD.js";
6
- import { a as qa, c as Qa, d as Va, e as Ha, I as Wa, f as Ja, g as Ga, b as Xa } from "./assets/modules/menuTabs-JxjPoyCD.js";
7
- import { defineComponent as k, createBlock as h, openBlock as p, withModifiers as J, unref as e, useAttrs as W, withCtx as m, createElementVNode as S, createVNode as b, mergeProps as B, renderSlot as I, normalizeStyle as se, toDisplayString as D, createCommentVNode as C, ref as g, provide as he, watch as $, onMounted as z, createTextVNode as M, inject as ne, resolveDirective as q, withDirectives as Q, createElementBlock as w, normalizeClass as N, createSlots as ge, useSlots as Oe, Fragment as F, renderList as L, resolveDynamicComponent as ze, onUnmounted as xe, onActivated as Ke, computed as pe, withKeys as fe } from "vue";
8
- import { useSettingInfo as ye, onFullscreenClick as Ae, createFromIconfont as Ee, ProviderKeys as X, onFormClose as ae, onFormSaveAs as Ye, onFormSave as be, useFormItemFactory as Ce, getToolGroup as ke, onGridRowEdit as Le, onGridRowDelete as Re, getToolVisible as H, onToolClicked as R, getToolStatus as j, useToolFactory as Ue, getToolByKey as Z, filterColumns as we, onColumnVisibleChanged as je, AppRouter as qe, openNewForm as Qe, useInputFactory as K, loadOption as $e, unloadOption as Se, formValidate as U, gridQueryFind as ve, gridQueryList as Ve, gridStatusUpdate as He, OPTIONS as Te, queryTree as De, OptionCommProps as We, circleLoading as Je, doQuery as Ie } from "@skyfox2000/webbase";
9
- import { Popover as Ge, theme as Be, Drawer as Xe, Space as G, Form as Pe, FormItem as Me, ConfigProvider as me, Popconfirm as Ze, Button as Fe, DropdownButton as et, Menu as ue, MenuItem as ie, Dropdown as re, Checkbox as tt, Switch as at, Table as Ne, Tree as lt, Cascader as rt, DatePicker as ot, Input as oe, InputPassword as st, InputNumber as nt, RangePicker as ut, Textarea as it, Transfer as dt, TreeSelect as ct, LayoutContent as pt } from "ant-design-vue";
10
- import { SERVER_HOST as ft, fieldMapping as ee } from "@skyfox2000/fapi";
11
- import { VueDraggableNext as vt } from "vue-draggable-next";
12
- import mt from "vue-m-message";
13
- import { _ as _t, a as ht, b as gt, c as xt } from "./assets/modules/index-BahGnrAq.js";
4
+ import { a as qa } from "./assets/modules/index-BEWJ_qAH.js";
5
+ import { _ as j } from "./assets/modules/menuTabs-BXdbFZor.js";
6
+ import { a as Va, c as ja, d as Ha, e as Wa, I as Ja, f as Ga, g as Xa, b as Za } from "./assets/modules/menuTabs-BXdbFZor.js";
7
+ import { defineComponent as C, createBlock as h, openBlock as f, withModifiers as J, unref as e, useAttrs as W, withCtx as _, createElementVNode as T, createVNode as b, mergeProps as B, renderSlot as I, normalizeStyle as ne, toDisplayString as D, createCommentVNode as k, ref as g, provide as he, watch as $, onMounted as K, createTextVNode as P, inject as ue, resolveDirective as Q, withDirectives as V, computed as re, createElementBlock as w, normalizeClass as N, createSlots as ge, useSlots as ze, Fragment as M, renderList as L, resolveDynamicComponent as Ke, onUnmounted as xe, onActivated as Oe, withKeys as fe } from "vue";
8
+ import { useSettingInfo as ye, onFullscreenClick as Ae, createFromIconfont as Ee, ProviderKeys as X, onFormClose as ae, onFormSaveAs as Ye, onFormSave as be, useFormItemFactory as ke, getToolGroup as Ce, onGridRowEdit as Le, onGridRowDelete as Re, getToolVisible as H, onToolClicked as R, getToolStatus as q, useToolFactory as Ue, getToolByKey as Z, filterColumns as we, onColumnVisibleChanged as qe, AppRouter as Qe, openNewForm as Ve, useInputFactory as O, loadOption as $e, unloadOption as Se, formValidate as U, gridQueryFind as ve, gridQueryList as je, gridStatusUpdate as He, OPTIONS as Te, queryTree as De, OptionCommProps as We, circleLoading as Je, doQuery as Ie } from "@skyfox2000/webbase";
9
+ import { Popover as Ge, theme as Be, Drawer as Xe, Space as G, Form as Fe, message as Ze, FormItem as Pe, ConfigProvider as me, Popconfirm as et, Button as Me, DropdownButton as tt, Menu as ie, MenuItem as de, Dropdown as oe, Checkbox as at, Switch as lt, Table as Ne, Tree as rt, Cascader as ot, DatePicker as st, Input as se, InputPassword as nt, InputNumber as ut, RangePicker as it, Textarea as dt, Transfer as ct, TreeSelect as pt, LayoutContent as ft } from "ant-design-vue";
10
+ import { SERVER_HOST as vt, fieldMapping as ee } from "@skyfox2000/fapi";
11
+ import { VueDraggableNext as mt } from "vue-draggable-next";
12
+ import _t from "vue-m-message";
13
+ import { _ as ht, a as gt, b as xt, c as yt } from "./assets/modules/index-BahGnrAq.js";
14
14
  import _e from "dayjs";
15
- import { _ as el } from "./assets/modules/uploadList-Dzlg47V0.js";
16
- const ma = /* @__PURE__ */ k({
15
+ import { _ as tl } from "./assets/modules/uploadList-Dzlg47V0.js";
16
+ const _a = /* @__PURE__ */ C({
17
17
  __name: "fullscreen",
18
18
  setup(v) {
19
- const o = ye();
20
- return (a, t) => (p(), h(Y, {
19
+ const r = ye();
20
+ return (a, t) => (f(), h(Y, {
21
21
  onClick: J(e(Ae), ["stop"]),
22
- icon: e(o).fullscreen ? "icon-exitscreen" : "icon-fullscreen",
22
+ icon: e(r).fullscreen ? "icon-exitscreen" : "icon-fullscreen",
23
23
  class: "w-[17px] h-[17px]"
24
24
  }, null, 8, ["onClick", "icon"]));
25
25
  }
26
- }), yt = { class: "ml-2" }, bt = /* @__PURE__ */ k({
26
+ }), bt = { class: "ml-2" }, kt = /* @__PURE__ */ C({
27
27
  inheritAttrs: !1,
28
28
  __name: "helper",
29
29
  props: {
@@ -31,28 +31,28 @@ const ma = /* @__PURE__ */ k({
31
31
  maxWidth: {}
32
32
  },
33
33
  setup(v) {
34
- const o = W();
35
- return (a, t) => (p(), h(e(Ge), { placement: "topRight" }, {
36
- content: m(() => [
34
+ const r = W();
35
+ return (a, t) => (f(), h(e(Ge), { placement: "topRight" }, {
36
+ content: _(() => [
37
37
  I(a.$slots, "default", {}, () => [
38
- S("div", {
38
+ T("div", {
39
39
  class: "text-[14px]",
40
- style: se({ maxWidth: a.maxWidth })
40
+ style: ne({ maxWidth: a.maxWidth })
41
41
  }, D(a.text), 5)
42
42
  ])
43
43
  ]),
44
- default: m(() => [
45
- S("span", yt, [
44
+ default: _(() => [
45
+ T("span", bt, [
46
46
  b(Y, B({
47
47
  icon: "icon-question-circle",
48
48
  class: "text-[#888] w-4 h-4"
49
- }, e(o)), null, 16)
49
+ }, e(r)), null, 16)
50
50
  ])
51
51
  ]),
52
52
  _: 3
53
53
  }));
54
54
  }
55
- }), _a = /* @__PURE__ */ k({
55
+ }), ha = /* @__PURE__ */ C({
56
56
  __name: "layoutIcon",
57
57
  props: {
58
58
  icon: {
@@ -63,20 +63,20 @@ const ma = /* @__PURE__ */ k({
63
63
  }
64
64
  },
65
65
  setup(v) {
66
- const o = v, t = Ee({
67
- iconUrl: `${ft.MICROLAYOUT_ICONS}`,
66
+ const r = v, t = Ee({
67
+ iconUrl: `${vt.MICROLAYOUT_ICONS}`,
68
68
  monoColor: !0,
69
- icon: o.icon,
70
- icons: o.icons
69
+ icon: r.icon,
70
+ icons: r.icons
71
71
  });
72
- return (r, n) => v.icon || v.icons ? (p(), h(e(t), B({
72
+ return (o, n) => v.icon || v.icons ? (f(), h(e(t), B({
73
73
  key: 0,
74
74
  icon: v.icon,
75
75
  icons: v.icons,
76
76
  class: ["align-middle"]
77
- }, r.$attrs), null, 16, ["icon", "icons"])) : C("", !0);
77
+ }, o.$attrs), null, 16, ["icon", "icons"])) : k("", !0);
78
78
  }
79
- }), Ct = { class: "hover:bg-gray-200 w-[24px] h-[24px] rounded-md" }, ha = /* @__PURE__ */ k({
79
+ }), Ct = { class: "hover:bg-gray-200 w-[24px] h-[24px] rounded-md" }, ga = /* @__PURE__ */ C({
80
80
  __name: "index",
81
81
  props: {
82
82
  saveText: {},
@@ -85,21 +85,21 @@ const ma = /* @__PURE__ */ k({
85
85
  editorCtrl: {}
86
86
  },
87
87
  setup(v) {
88
- const { useToken: o } = Be, { token: a } = o(), t = g(!1), n = v.editorCtrl;
88
+ const { useToken: r } = Be, { token: a } = r(), t = g(!1), n = v.editorCtrl;
89
89
  he(X.EditorControl, n), $(
90
90
  () => n.visible.value,
91
91
  (d) => {
92
92
  t.value = d ?? !1;
93
93
  }
94
- ), z(() => {
94
+ ), K(() => {
95
95
  t.value = n.visible.value ?? !1;
96
96
  });
97
- const c = () => {
97
+ const p = () => {
98
98
  ae(n);
99
99
  };
100
- return (d, f) => (p(), h(e(Xe), {
100
+ return (d, c) => (f(), h(e(Xe), {
101
101
  open: t.value,
102
- "onUpdate:open": f[4] || (f[4] = (s) => t.value = s),
102
+ "onUpdate:open": c[4] || (c[4] = (s) => t.value = s),
103
103
  "get-container": !1,
104
104
  closable: !1,
105
105
  "header-style": {
@@ -118,10 +118,10 @@ const ma = /* @__PURE__ */ k({
118
118
  boxShadow: "rgba(0, 0, 0, 0.3) -2px 0px 8px"
119
119
  },
120
120
  width: "420px",
121
- onClose: c
121
+ onClose: p
122
122
  }, {
123
- extra: m(() => [
124
- S("div", Ct, [
123
+ extra: _(() => [
124
+ T("div", Ct, [
125
125
  b(e(Y), {
126
126
  class: "top-[-2px] left-[2px] w-6 h-6",
127
127
  icon: "icon-new",
@@ -130,47 +130,47 @@ const ma = /* @__PURE__ */ k({
130
130
  clickable: "",
131
131
  color: "#666",
132
132
  position: [0, 0],
133
- onClick: f[0] || (f[0] = () => e(ae)(e(n)))
133
+ onClick: c[0] || (c[0] = () => e(ae)(e(n)))
134
134
  })
135
135
  ])
136
136
  ]),
137
- default: m(() => [
137
+ default: _(() => [
138
138
  I(d.$slots, "default")
139
139
  ]),
140
- footer: m(() => [
140
+ footer: _(() => [
141
141
  b(e(G), null, {
142
- default: m(() => [
143
- d.cancelText !== "" ? (p(), h(e(O), {
142
+ default: _(() => [
143
+ d.cancelText !== "" ? (f(), h(e(z), {
144
144
  key: 0,
145
- onClick: f[1] || (f[1] = () => e(ae)(e(n)))
145
+ onClick: c[1] || (c[1] = () => e(ae)(e(n)))
146
146
  }, {
147
- default: m(() => [
148
- M(D(d.cancelText ?? "取消"), 1)
147
+ default: _(() => [
148
+ P(D(d.cancelText ?? "取消"), 1)
149
149
  ]),
150
150
  _: 1
151
- })) : C("", !0),
152
- d.saveAsText !== "" && e(n).saveAsBtnVisible !== !1 ? (p(), h(e(O), {
151
+ })) : k("", !0),
152
+ d.saveAsText !== "" && e(n).saveAsBtnVisible !== !1 ? (f(), h(e(z), {
153
153
  key: 1,
154
- onClick: f[2] || (f[2] = () => e(Ye)(e(n))),
154
+ onClick: c[2] || (c[2] = () => e(Ye)(e(n))),
155
155
  type: "primary",
156
156
  loading: e(n).isFormSaving.value
157
157
  }, {
158
- default: m(() => [
159
- M(D(d.saveAsText ?? "另存为"), 1)
158
+ default: _(() => [
159
+ P(D(d.saveAsText ?? "另存为"), 1)
160
160
  ]),
161
161
  _: 1
162
- }, 8, ["loading"])) : C("", !0),
163
- d.saveText !== "" && e(n).saveBtnVisible !== !1 ? (p(), h(e(O), {
162
+ }, 8, ["loading"])) : k("", !0),
163
+ d.saveText !== "" && e(n).saveBtnVisible !== !1 ? (f(), h(e(z), {
164
164
  key: 2,
165
- onClick: f[3] || (f[3] = () => e(be)(e(n))),
165
+ onClick: c[3] || (c[3] = () => e(be)(e(n))),
166
166
  type: "primary",
167
167
  loading: e(n).isFormSaving.value
168
168
  }, {
169
- default: m(() => [
170
- M(D(d.saveText ?? "保存"), 1)
169
+ default: _(() => [
170
+ P(D(d.saveText ?? "保存"), 1)
171
171
  ]),
172
172
  _: 1
173
- }, 8, ["loading"])) : C("", !0)
173
+ }, 8, ["loading"])) : k("", !0)
174
174
  ]),
175
175
  _: 1
176
176
  })
@@ -178,7 +178,7 @@ const ma = /* @__PURE__ */ k({
178
178
  _: 3
179
179
  }, 8, ["open", "header-style"]));
180
180
  }
181
- }), ga = /* @__PURE__ */ k({
181
+ }), xa = /* @__PURE__ */ C({
182
182
  __name: "index",
183
183
  props: {
184
184
  labelWidth: {},
@@ -186,20 +186,20 @@ const ma = /* @__PURE__ */ k({
186
186
  editorCtrl: {}
187
187
  },
188
188
  setup(v) {
189
- const o = v, a = o.editorCtrl ?? ne(X.EditorControl, void 0);
190
- return (t, r) => {
191
- const n = q("submit");
192
- return Q((p(), h(e(Pe), {
193
- "label-col": { flex: o.labelWidth ?? "85px" },
189
+ const r = v, a = r.editorCtrl ?? ue(X.EditorControl, void 0);
190
+ return (t, o) => {
191
+ const n = Q("submit");
192
+ return V((f(), h(e(Fe), {
193
+ "label-col": { flex: r.labelWidth ?? "85px" },
194
194
  "wrapper-col": {
195
- flex: o.wrapperWidth ?? "1"
195
+ flex: r.wrapperWidth ?? "1"
196
196
  },
197
197
  style: {
198
198
  display: "flex",
199
199
  flexWrap: "wrap"
200
200
  }
201
201
  }, {
202
- default: m(() => [
202
+ default: _(() => [
203
203
  I(t.$slots, "default")
204
204
  ]),
205
205
  _: 3
@@ -213,10 +213,10 @@ const ma = /* @__PURE__ */ k({
213
213
  ]);
214
214
  };
215
215
  }
216
- }), kt = { class: "w-full flex items-center" }, wt = { class: "flex-grow" }, $t = { class: "w-8 mt-[-2px]" }, St = {
216
+ }), wt = { class: "w-full flex items-center" }, $t = { class: "flex-grow" }, St = { class: "w-8 mt-[-2px]" }, Tt = {
217
217
  key: 1,
218
218
  class: "absolute bottom-[3px] left-[85px] text-[12px] text-[#ff4d4fcc] block"
219
- }, xa = /* @__PURE__ */ k({
219
+ }, ya = /* @__PURE__ */ C({
220
220
  inheritAttrs: !1,
221
221
  __name: "formItem",
222
222
  props: {
@@ -226,51 +226,61 @@ const ma = /* @__PURE__ */ k({
226
226
  width: {}
227
227
  },
228
228
  setup(v) {
229
- const o = v, a = W(), t = ne(X.EditorControl, void 0), r = Ce(o, t), n = g(!1);
230
- return setTimeout(() => {
229
+ const r = v, a = W(), t = ue(X.EditorControl, void 0), o = ke(r, t), n = g(!1);
230
+ setTimeout(() => {
231
231
  n.value = !0;
232
- }, 30), (c, d) => {
233
- var f, s, u, l;
234
- return p(), w("div", {
235
- class: N(["w-full relative mb-1", c.width])
236
- }, [
237
- n.value ? (p(), h(e(Me), B({
238
- key: 0,
239
- required: !!c.rule && ((l = (u = (s = (f = e(t)) == null ? void 0 : f.formRules) == null ? void 0 : s.value) == null ? void 0 : u[c.rule]) == null ? void 0 : l.required),
240
- class: "!w-[95%] relative"
241
- }, e(a), {
242
- class: [c.rule ? "" : "mb-3"]
243
- }), {
244
- label: m(() => [
245
- S("span", {
246
- class: N([e(r).errClass ? "text-[#ff4d4f]" : "", "w-full"])
247
- }, D(c.label), 3)
248
- ]),
249
- default: m(() => [
250
- S("div", kt, [
251
- S("div", wt, [
252
- I(c.$slots, "default")
253
- ]),
254
- S("div", $t, [
255
- I(c.$slots, "helper", {}, () => [
256
- c.helper ? (p(), h(e(bt), {
257
- key: 0,
258
- text: c.helper
259
- }, null, 8, ["text"])) : C("", !0)
260
- ])
232
+ }, 30);
233
+ const p = (c, s) => {
234
+ if (!s)
235
+ return;
236
+ const [u, ...l] = c;
237
+ return c.length === 1 ? s[u] : p(l, s[u].fields);
238
+ }, d = re(() => {
239
+ var s;
240
+ if (!r.rule)
241
+ return !1;
242
+ const c = p(r.rule.split("."), (s = t == null ? void 0 : t.formRules) == null ? void 0 : s.value);
243
+ return c ? c.required ?? !0 : (Ze.error(`"${r.label}" 的验证规则 \`${r.rule}\` 不存在`), o.value.errClass = "text-[#ff4d4f]", o.value.msg = `规则 \`${r.rule}\` 不存在,请检查代码!`, !0);
244
+ });
245
+ return (c, s) => (f(), w("div", {
246
+ class: N(["w-full relative mb-1", c.width])
247
+ }, [
248
+ n.value ? (f(), h(e(Pe), B({
249
+ key: 0,
250
+ required: d.value,
251
+ class: "!w-[95%] relative"
252
+ }, e(a), {
253
+ class: [c.rule ? "" : "mb-3"]
254
+ }), {
255
+ label: _(() => [
256
+ T("span", {
257
+ class: N([e(o).errClass ? "text-[#ff4d4f]" : "", "w-full"])
258
+ }, D(c.label), 3)
259
+ ]),
260
+ default: _(() => [
261
+ T("div", wt, [
262
+ T("div", $t, [
263
+ I(c.$slots, "default")
264
+ ]),
265
+ T("div", St, [
266
+ I(c.$slots, "helper", {}, () => [
267
+ c.helper ? (f(), h(e(kt), {
268
+ key: 0,
269
+ text: c.helper
270
+ }, null, 8, ["text"])) : k("", !0)
261
271
  ])
262
272
  ])
263
- ]),
264
- _: 3
265
- }, 16, ["required", "class"])) : C("", !0),
266
- e(r).errClass ? (p(), w("span", St, D(e(r).msg), 1)) : C("", !0)
267
- ], 2);
268
- };
273
+ ])
274
+ ]),
275
+ _: 3
276
+ }, 16, ["required", "class"])) : k("", !0),
277
+ e(o).errClass ? (f(), w("span", Tt, D(e(o).msg), 1)) : k("", !0)
278
+ ], 2));
269
279
  }
270
- }), Tt = { class: "w-1/3 relative mb-1" }, Dt = { class: "flex items-center" }, It = { class: "flex-grow pl-1" }, Bt = {
280
+ }), Dt = { class: "w-1/3 relative mb-1" }, It = { class: "flex items-center" }, Bt = { class: "flex-grow pl-1" }, Ft = {
271
281
  key: 0,
272
282
  class: "absolute bottom-[3px] left-[85px] text-[12px] text-[#ff4d4fcc] block"
273
- }, le = /* @__PURE__ */ k({
283
+ }, le = /* @__PURE__ */ C({
274
284
  inheritAttrs: !1,
275
285
  __name: "searchItem",
276
286
  props: {
@@ -279,18 +289,18 @@ const ma = /* @__PURE__ */ k({
279
289
  rule: {}
280
290
  },
281
291
  setup(v) {
282
- const o = v, a = W(), t = ne(X.EditorControl, void 0), r = Ce(o, t);
283
- return (n, c) => (p(), w("div", Tt, [
284
- b(e(Me), B({
292
+ const r = v, a = W(), t = ue(X.EditorControl, void 0), o = ke(r, t);
293
+ return (n, p) => (f(), w("div", Dt, [
294
+ b(e(Pe), B({
285
295
  required: n.rule !== void 0,
286
296
  class: "w-[90%] relative"
287
297
  }, e(a), {
288
298
  class: [n.rule ? "" : "mb-3", n.width],
289
299
  labelCol: { span: 6 }
290
300
  }), ge({
291
- default: m(() => [
292
- S("div", Dt, [
293
- S("div", It, [
301
+ default: _(() => [
302
+ T("div", It, [
303
+ T("div", Bt, [
294
304
  I(n.$slots, "default")
295
305
  ])
296
306
  ])
@@ -299,32 +309,33 @@ const ma = /* @__PURE__ */ k({
299
309
  }, [
300
310
  n.label ? {
301
311
  name: "label",
302
- fn: m(() => [
303
- S("span", {
304
- class: N([e(r).errClass ? "text-[#ff4d4f]" : "", "w-full"])
312
+ fn: _(() => [
313
+ T("span", {
314
+ class: N([e(o).errClass ? "text-[#ff4d4f]" : "", "w-full"])
305
315
  }, D(n.label), 3)
306
316
  ]),
307
317
  key: "0"
308
318
  } : void 0
309
319
  ]), 1040, ["required", "class"]),
310
- e(r).msg ? (p(), w("span", Bt, D(e(r).msg), 1)) : C("", !0)
320
+ e(o).msg ? (f(), w("span", Ft, D(e(o).msg), 1)) : k("", !0)
311
321
  ]));
312
322
  }
313
- }), ya = /* @__PURE__ */ k({
323
+ }), ba = /* @__PURE__ */ C({
314
324
  __name: "index",
315
325
  props: {
316
326
  search: {},
317
- gridCtrl: {}
327
+ gridCtrl: {},
328
+ likeFields: {}
318
329
  },
319
330
  emits: ["update:search"],
320
- setup(v, { emit: o }) {
321
- const a = v, t = o, r = g(0), n = g(0), c = g(0), d = (_) => {
331
+ setup(v, { emit: r }) {
332
+ const a = v, t = r, o = g(0), n = g(0), p = g(0), d = (m) => {
322
333
  let x = 0;
323
- for (let T = 0; T < _.length; T++)
324
- typeof _[T].type == "object" && x++;
334
+ for (let S = 0; S < m.length; S++)
335
+ typeof m[S].type == "object" && x++;
325
336
  return x;
326
- }, f = Oe(), s = () => {
327
- n.value = 0, c.value = 0, f.default && (n.value = d(f.default({}))), a.gridCtrl.searchBar && f.control && (c.value = d(f.control({}))), r.value = 2 - (n.value + c.value) % 3;
337
+ }, c = ze(), s = () => {
338
+ n.value = 0, p.value = 0, c.default && (n.value = d(c.default({}))), a.gridCtrl.searchBar && c.control && (p.value = d(c.control({}))), o.value = 2 - (n.value + p.value) % 3;
328
339
  };
329
340
  $(
330
341
  () => a.gridCtrl.searchBar,
@@ -333,37 +344,40 @@ const ma = /* @__PURE__ */ k({
333
344
  }
334
345
  );
335
346
  const u = JSON.parse(JSON.stringify(a.search));
336
- z(() => {
347
+ K(() => {
337
348
  var x;
338
349
  s();
339
- let _ = { ...a.search };
350
+ let m = { ...a.search };
340
351
  a.gridCtrl.gridQuery = {
341
352
  ...a.gridCtrl.gridQuery,
342
353
  Query: {
343
354
  ...(x = a.gridCtrl.gridQuery) == null ? void 0 : x.Query,
344
- ..._
355
+ ...m
345
356
  }
346
357
  };
347
358
  });
348
359
  const l = () => {
349
360
  var x;
350
- let _ = { ...a.search };
361
+ let m = { ...a.search };
362
+ if (a.likeFields)
363
+ for (const S of a.likeFields)
364
+ m[S] && (m[S] = { $like: "%" + m[S] + "%" });
351
365
  a.gridCtrl.gridQuery = {
352
366
  ...a.gridCtrl.gridQuery,
353
367
  Query: {
354
368
  ...(x = a.gridCtrl.gridQuery) == null ? void 0 : x.Query,
355
- ..._
369
+ ...m
356
370
  }
357
371
  }, a.gridCtrl.reload.value = !0;
358
372
  }, i = () => {
359
- const _ = JSON.parse(JSON.stringify(u));
373
+ const m = JSON.parse(JSON.stringify(u));
360
374
  for (const x in a.search)
361
- _[x] === void 0 && (_[x] = void 0);
362
- t("update:search", _);
375
+ m[x] === void 0 && (m[x] = void 0);
376
+ t("update:search", m);
363
377
  };
364
- return (_, x) => {
365
- const T = q("submit");
366
- return n.value + c.value > 0 ? Q((p(), h(e(Pe), {
378
+ return (m, x) => {
379
+ const S = Q("submit");
380
+ return n.value + p.value > 0 ? V((f(), h(e(Fe), {
367
381
  key: 0,
368
382
  "label-col": { flex: "60px" },
369
383
  style: {
@@ -372,42 +386,42 @@ const ma = /* @__PURE__ */ k({
372
386
  },
373
387
  class: "flex mb-[10px]"
374
388
  }, {
375
- default: m(() => [
376
- I(_.$slots, "default"),
377
- _.gridCtrl.searchBar ? I(_.$slots, "control", { key: 0 }) : C("", !0),
378
- r.value >= 1 ? (p(), h(le, {
389
+ default: _(() => [
390
+ I(m.$slots, "default"),
391
+ m.gridCtrl.searchBar ? I(m.$slots, "control", { key: 0 }) : k("", !0),
392
+ o.value >= 1 ? (f(), h(le, {
379
393
  key: 1,
380
394
  class: "w-1/3"
381
- })) : C("", !0),
382
- r.value >= 2 ? (p(), h(le, {
395
+ })) : k("", !0),
396
+ o.value >= 2 ? (f(), h(le, {
383
397
  key: 2,
384
398
  class: "w-1/3"
385
- })) : C("", !0),
386
- n.value || _.gridCtrl.searchBar ? (p(), h(le, {
399
+ })) : k("", !0),
400
+ n.value || m.gridCtrl.searchBar ? (f(), h(le, {
387
401
  key: 3,
388
402
  class: "w-1/3 flex justify-end text-right pr-5",
389
403
  "wrapper-col": { flex: "auto" }
390
404
  }, {
391
- default: m(() => [
405
+ default: _(() => [
392
406
  b(e(G), null, {
393
- default: m(() => [
394
- b(e(O), {
407
+ default: _(() => [
408
+ b(e(z), {
395
409
  type: "primary",
396
410
  onClick: l,
397
411
  icon: "icon-search"
398
412
  }, {
399
- default: m(() => x[0] || (x[0] = [
400
- M("搜索")
413
+ default: _(() => x[0] || (x[0] = [
414
+ P("搜索")
401
415
  ])),
402
416
  _: 1,
403
417
  __: [0]
404
418
  }),
405
- b(e(O), {
419
+ b(e(z), {
406
420
  onClick: i,
407
421
  icon: "icon-reset"
408
422
  }, {
409
- default: m(() => x[1] || (x[1] = [
410
- M("重置")
423
+ default: _(() => x[1] || (x[1] = [
424
+ P("重置")
411
425
  ])),
412
426
  _: 1,
413
427
  __: [1]
@@ -417,29 +431,29 @@ const ma = /* @__PURE__ */ k({
417
431
  })
418
432
  ]),
419
433
  _: 1
420
- })) : C("", !0)
434
+ })) : k("", !0)
421
435
  ]),
422
436
  _: 3
423
437
  })), [
424
- [T, l]
425
- ]) : C("", !0);
438
+ [S, l]
439
+ ]) : k("", !0);
426
440
  };
427
441
  }
428
- }), Pt = /* @__PURE__ */ k({
442
+ }), Pt = /* @__PURE__ */ C({
429
443
  __name: "tableOperate",
430
444
  props: {
431
445
  record: {},
432
446
  gridCtrl: {}
433
447
  },
434
448
  setup(v) {
435
- const o = v, a = o.gridCtrl, t = [
449
+ const r = v, a = r.gridCtrl, t = [
436
450
  {
437
451
  key: "Edit",
438
452
  label: "编辑",
439
453
  type: "primary",
440
454
  visible: !0,
441
455
  permit: ":edit",
442
- click: () => Le(a, o.record)
456
+ click: () => Le(a, r.record)
443
457
  },
444
458
  {
445
459
  key: "Delete",
@@ -450,111 +464,111 @@ const ma = /* @__PURE__ */ k({
450
464
  permit: ":delete",
451
465
  confirm: !0,
452
466
  confirmText: "是否删除此记录?",
453
- click: () => Re(a, o.record)
467
+ click: () => Re(a, r.record)
454
468
  }
455
- ], { buttons: r, menus: n } = ke(t, 0, a.operates), c = (d) => {
469
+ ], { buttons: o, menus: n } = Ce(t, 0, a.operates), p = (d) => {
456
470
  if (typeof d.disabled == "boolean")
457
471
  return d.disabled;
458
472
  if (typeof d.disabled == "function")
459
- return j(d, o.record) ?? !1;
460
- if (o.record.hasOwnProperty("Enabled"))
473
+ return q(d, r.record) ?? !1;
474
+ if (r.record.hasOwnProperty("Enabled"))
461
475
  switch (d.key) {
462
476
  case "Edit":
463
- return !o.record.Enabled;
477
+ return !r.record.Enabled;
464
478
  case "Delete":
465
- return !!o.record.Enabled;
479
+ return !!r.record.Enabled;
466
480
  }
467
481
  return !1;
468
482
  };
469
- return (d, f) => {
470
- const s = q("role"), u = q("permit");
471
- return p(), h(e(me), { theme: {
483
+ return (d, c) => {
484
+ const s = Q("role"), u = Q("permit");
485
+ return f(), h(e(me), { theme: {
472
486
  token: {
473
487
  fontSize: 13
474
488
  }
475
489
  } }, {
476
- default: m(() => [
490
+ default: _(() => [
477
491
  b(e(G), null, {
478
- default: m(() => [
479
- (p(!0), w(F, null, L(e(r), (l) => (p(), w(F, {
492
+ default: _(() => [
493
+ (f(!0), w(M, null, L(e(o), (l) => (f(), w(M, {
480
494
  key: l.key
481
495
  }, [
482
- e(H)(l, o.record) ? (p(), h(e(Ze), {
496
+ e(H)(l, r.record) ? (f(), h(e(et), {
483
497
  key: 0,
484
- disabled: c(l) || !l.confirm,
498
+ disabled: p(l) || !l.confirm,
485
499
  cancelText: "否",
486
500
  okText: "是",
487
501
  title: l.confirmText,
488
502
  okButtonProps: { size: "small" },
489
503
  cancelButtonProps: { size: "small" },
490
- onConfirm: (i) => e(R)(l, e(a).page, e(a), o.record, !0)
504
+ onConfirm: (i) => e(R)(l, e(a).page, e(a), r.record, !0)
491
505
  }, {
492
- default: m(() => [
493
- e(H)(l, o.record) ? Q((p(), h(e(Fe), {
506
+ default: _(() => [
507
+ e(H)(l, r.record) ? V((f(), h(e(Me), {
494
508
  key: l.key,
495
509
  type: l.type ?? "text",
496
510
  danger: l.danger,
497
- disabled: c(l),
498
- onClick: (i) => e(R)(l, e(a).page, e(a), o.record),
511
+ disabled: p(l),
512
+ onClick: (i) => e(R)(l, e(a).page, e(a), r.record),
499
513
  size: "small",
500
- style: se({
514
+ style: ne({
501
515
  padding: l.type ?? "0px 4px"
502
516
  })
503
517
  }, {
504
- default: m(() => [
505
- M(D(l.label), 1)
518
+ default: _(() => [
519
+ P(D(l.label), 1)
506
520
  ]),
507
521
  _: 2
508
522
  }, 1032, ["type", "danger", "disabled", "onClick", "style"])), [
509
523
  [s, l.role],
510
524
  [u, l.permit]
511
- ]) : C("", !0)
525
+ ]) : k("", !0)
512
526
  ]),
513
527
  _: 2
514
- }, 1032, ["disabled", "title", "onConfirm"])) : C("", !0)
528
+ }, 1032, ["disabled", "title", "onConfirm"])) : k("", !0)
515
529
  ], 64))), 128)),
516
- d.record.Enabled == 1 ? (p(), h(e(me), {
530
+ d.record.Enabled == 1 ? (f(), h(e(me), {
517
531
  key: 0,
518
532
  autoInsertSpaceInButton: !1
519
533
  }, {
520
- default: m(() => [
521
- e(n).length > 0 ? (p(), h(e(et), {
534
+ default: _(() => [
535
+ e(n).length > 0 ? (f(), h(e(tt), {
522
536
  key: 0,
523
537
  size: "small"
524
538
  }, {
525
- overlay: m(() => [
526
- b(e(ue), null, {
527
- default: m(() => [
528
- (p(!0), w(F, null, L(e(n), (l) => (p(), w(F, {
539
+ overlay: _(() => [
540
+ b(e(ie), null, {
541
+ default: _(() => [
542
+ (f(!0), w(M, null, L(e(n), (l) => (f(), w(M, {
529
543
  key: l.key
530
544
  }, [
531
- e(H)(l, o.record) ? Q((p(), h(e(ie), {
545
+ e(H)(l, r.record) ? V((f(), h(e(de), {
532
546
  key: 0,
533
- disabled: c(l),
534
- onClick: (i) => e(R)(l, e(a).page, e(a), o.record)
547
+ disabled: p(l),
548
+ onClick: (i) => e(R)(l, e(a).page, e(a), r.record)
535
549
  }, {
536
- default: m(() => [
537
- M(D(l.label), 1)
550
+ default: _(() => [
551
+ P(D(l.label), 1)
538
552
  ]),
539
553
  _: 2
540
554
  }, 1032, ["disabled", "onClick"])), [
541
555
  [s, l.role],
542
556
  [u, l.permit]
543
- ]) : C("", !0)
557
+ ]) : k("", !0)
544
558
  ], 64))), 128))
545
559
  ]),
546
560
  _: 1
547
561
  })
548
562
  ]),
549
- default: m(() => [
550
- f[0] || (f[0] = M(" 更多 "))
563
+ default: _(() => [
564
+ c[0] || (c[0] = P(" 更多 "))
551
565
  ]),
552
566
  _: 1,
553
567
  __: [0]
554
- })) : C("", !0)
568
+ })) : k("", !0)
555
569
  ]),
556
570
  _: 1
557
- })) : C("", !0)
571
+ })) : k("", !0)
558
572
  ]),
559
573
  _: 1
560
574
  })
@@ -563,13 +577,13 @@ const ma = /* @__PURE__ */ k({
563
577
  });
564
578
  };
565
579
  }
566
- }), Mt = { class: "inline-flex [&>div]:ml-[-1px] first:[&>div]:ml-0" }, Ft = /* @__PURE__ */ k({
580
+ }), Mt = { class: "inline-flex [&>div]:ml-[-1px] first:[&>div]:ml-0" }, Nt = /* @__PURE__ */ C({
567
581
  __name: "icontool",
568
582
  props: {
569
583
  gridCtrl: {}
570
584
  },
571
585
  setup(v) {
572
- const o = v, a = o.gridCtrl, { tools: t } = Ue(o.gridCtrl), r = ye();
586
+ const r = v, a = r.gridCtrl, { tools: t } = Ue(r.gridCtrl), o = ye();
573
587
  $(
574
588
  () => a.selectable.value,
575
589
  (d) => {
@@ -584,71 +598,71 @@ const ma = /* @__PURE__ */ k({
584
598
  },
585
599
  { deep: !0, immediate: !0 }
586
600
  );
587
- const c = () => {
588
- a.columns.value.splice(0, a.columns.value.length, ...n.value), r.setTableColumns(qe.currentRoute.value.path, a.columns.value);
601
+ const p = () => {
602
+ a.columns.value.splice(0, a.columns.value.length, ...n.value), o.setTableColumns(Qe.currentRoute.value.path, a.columns.value);
589
603
  };
590
- return (d, f) => (p(), w("div", Mt, [
591
- (p(!0), w(F, null, L(e(t), (s, u) => (p(), w(F, {
604
+ return (d, c) => (f(), w("div", Mt, [
605
+ (f(!0), w(M, null, L(e(t), (s, u) => (f(), w(M, {
592
606
  key: s.key
593
607
  }, [
594
- e(H)(s) && s.dropdown ? (p(), h(e(re), {
608
+ e(H)(s) && s.dropdown ? (f(), h(e(oe), {
595
609
  key: 0,
596
610
  placement: "bottomRight",
597
611
  class: "p-0 rounded-none"
598
612
  }, {
599
- overlay: m(() => [
600
- S("div", {
613
+ overlay: _(() => [
614
+ T("div", {
601
615
  class: N(["min-w-[100px] bg-white rounded shadow-md p-4", s.dropdownClass])
602
616
  }, [
603
- s.dropdown === "headset" ? (p(), h(e(vt), {
617
+ s.dropdown === "headset" ? (f(), h(e(mt), {
604
618
  key: 0,
605
619
  modelValue: n.value,
606
- "onUpdate:modelValue": f[1] || (f[1] = (l) => n.value = l),
620
+ "onUpdate:modelValue": c[1] || (c[1] = (l) => n.value = l),
607
621
  "item-key": "dataIndex",
608
- onEnd: c,
622
+ onEnd: p,
609
623
  handle: ".drag-handle"
610
624
  }, {
611
- default: m(() => [
612
- (p(!0), w(F, null, L(n.value, (l) => (p(), w("div", {
625
+ default: _(() => [
626
+ (f(!0), w(M, null, L(n.value, (l) => (f(), w("div", {
613
627
  key: l.name,
614
- onClick: f[0] || (f[0] = J(() => {
628
+ onClick: c[0] || (c[0] = J(() => {
615
629
  }, ["stop"])),
616
630
  class: "flex items-center mb-2 last:mb-0 select-none"
617
631
  }, [
618
- f[2] || (f[2] = S("span", { class: "drag-handle mr-2 text-gray-400 hover:text-gray-600 cursor-move" }, "⋮⋮", -1)),
619
- b(e(tt), {
632
+ c[2] || (c[2] = T("span", { class: "drag-handle mr-2 text-gray-400 hover:text-gray-600 cursor-move" }, "⋮⋮", -1)),
633
+ b(e(at), {
620
634
  checked: l.visible !== !1,
621
635
  onChange: J(
622
636
  (i) => {
623
- e(je)(l, i.target.checked);
637
+ e(qe)(l, i.target.checked);
624
638
  },
625
639
  ["stop", "prevent"]
626
640
  ),
627
641
  class: "text-gray-700 hover:text-gray-900 select-none"
628
642
  }, {
629
- default: m(() => [
630
- M(D(l.title), 1)
643
+ default: _(() => [
644
+ P(D(l.title), 1)
631
645
  ]),
632
646
  _: 2
633
647
  }, 1032, ["checked", "onChange"])
634
648
  ]))), 128))
635
649
  ]),
636
650
  _: 1
637
- }, 8, ["modelValue"])) : C("", !0)
651
+ }, 8, ["modelValue"])) : k("", !0)
638
652
  ], 2)
639
653
  ]),
640
- default: m(() => [
641
- b(e(O), {
654
+ default: _(() => [
655
+ b(e(z), {
642
656
  class: N([
643
657
  "px-[8px] py-[2px] relative border-[#ccc] bg-[#fcfcfc] rounded-none text-[#666] hover:z-10",
644
658
  u === 0 ? "rounded-l-[5px]" : "",
645
659
  u === e(t).length - 1 ? "rounded-r-[5px]" : ""
646
660
  ]),
647
- disabled: e(j)(s),
661
+ disabled: e(q)(s),
648
662
  tiptext: s.label,
649
663
  onClick: (l) => e(R)(s, e(a).page, e(a))
650
664
  }, {
651
- default: m(() => [
665
+ default: _(() => [
652
666
  b(e(Y), {
653
667
  icon: s.icon,
654
668
  class: "w-[18px] h-[18.5px]",
@@ -659,18 +673,18 @@ const ma = /* @__PURE__ */ k({
659
673
  }, 1032, ["class", "disabled", "tiptext", "onClick"])
660
674
  ]),
661
675
  _: 2
662
- }, 1024)) : !s.children && e(H)(s) ? (p(), h(e(O), {
676
+ }, 1024)) : !s.children && e(H)(s) ? (f(), h(e(z), {
663
677
  key: 1,
664
678
  class: N([
665
679
  "px-[8px] py-[2px] relative border-[#ccc] bg-[#fcfcfc] rounded-none text-[#666] hover:z-10",
666
680
  u === 0 ? "rounded-l-[5px]" : "",
667
681
  u === e(t).length - 1 ? "rounded-r-[5px]" : ""
668
682
  ]),
669
- disabled: e(j)(s),
683
+ disabled: e(q)(s),
670
684
  tiptext: s.label,
671
685
  onClick: (l) => e(R)(s, e(a).page, e(a))
672
686
  }, {
673
- default: m(() => [
687
+ default: _(() => [
674
688
  b(e(Y), {
675
689
  icon: s.icon,
676
690
  class: "w-[18px] h-[18.5px]",
@@ -678,20 +692,20 @@ const ma = /* @__PURE__ */ k({
678
692
  }, null, 8, ["icon"])
679
693
  ]),
680
694
  _: 2
681
- }, 1032, ["class", "disabled", "tiptext", "onClick"])) : e(H)(s) ? (p(), h(e(re), {
695
+ }, 1032, ["class", "disabled", "tiptext", "onClick"])) : e(H)(s) ? (f(), h(e(oe), {
682
696
  key: 2,
683
697
  placement: "bottomRight",
684
698
  class: "p-0 rounded-none"
685
699
  }, {
686
- overlay: m(() => [
687
- b(e(ue), null, {
688
- default: m(() => [
689
- (p(!0), w(F, null, L(s.children, (l) => (p(), h(e(ie), {
700
+ overlay: _(() => [
701
+ b(e(ie), null, {
702
+ default: _(() => [
703
+ (f(!0), w(M, null, L(s.children, (l) => (f(), h(e(de), {
690
704
  key: l.key,
691
- disabled: e(j)(l)
705
+ disabled: e(q)(l)
692
706
  }, {
693
- default: m(() => [
694
- M(D(l.label), 1)
707
+ default: _(() => [
708
+ P(D(l.label), 1)
695
709
  ]),
696
710
  _: 2
697
711
  }, 1032, ["disabled"]))), 128))
@@ -699,19 +713,19 @@ const ma = /* @__PURE__ */ k({
699
713
  _: 2
700
714
  }, 1024)
701
715
  ]),
702
- default: m(() => [
703
- b(e(O), {
716
+ default: _(() => [
717
+ b(e(z), {
704
718
  class: N([
705
719
  "!w-[46px] px-[5px] py-[2px] relative border-[#ccc] bg-[#fcfcfc] rounded-none text-[#666] hover:z-10",
706
720
  u === 0 ? "rounded-l-[5px]" : ""
707
721
  ]),
708
- disabled: e(j)(s),
722
+ disabled: e(q)(s),
709
723
  tiptext: s.label,
710
724
  icon: s.icon,
711
725
  iconProps: { class: "w-[19px] h-[19px]" },
712
726
  onClick: (l) => e(R)(s, e(a).page, e(a))
713
727
  }, {
714
- default: m(() => [
728
+ default: _(() => [
715
729
  b(e(Y), {
716
730
  icon: "icon-down-arrow",
717
731
  class: "w-[12px] h-[12px]"
@@ -721,18 +735,18 @@ const ma = /* @__PURE__ */ k({
721
735
  }, 1032, ["class", "disabled", "tiptext", "icon", "onClick"])
722
736
  ]),
723
737
  _: 2
724
- }, 1024)) : C("", !0)
738
+ }, 1024)) : k("", !0)
725
739
  ], 64))), 128))
726
740
  ]));
727
741
  }
728
- }), Nt = { class: "flex justify-between mb-[10px]" }, Ot = { key: 1 }, zt = 3, Kt = /* @__PURE__ */ k({
742
+ }), zt = { class: "flex justify-between mb-[10px]" }, Kt = { key: 1 }, Ot = 3, At = /* @__PURE__ */ C({
729
743
  __name: "index",
730
744
  props: {
731
745
  gridCtrl: {},
732
746
  editorCtrl: {}
733
747
  },
734
748
  setup(v) {
735
- const o = v, a = o.gridCtrl, t = a.page, r = o.editorCtrl, n = [
749
+ const r = v, a = r.gridCtrl, t = a.page, o = r.editorCtrl, n = [
736
750
  {
737
751
  key: "New",
738
752
  label: "新增",
@@ -741,59 +755,59 @@ const ma = /* @__PURE__ */ k({
741
755
  danger: !0,
742
756
  permit: ":new",
743
757
  // 默认仅受权限码控制
744
- click: () => Qe(r)
758
+ click: () => Ve(o)
745
759
  }
746
- ], c = g([]), d = g([]);
760
+ ], p = g([]), d = g([]);
747
761
  return $(
748
762
  () => {
749
- var f;
750
- return (f = a.buttons) == null ? void 0 : f.value;
763
+ var c;
764
+ return (c = a.buttons) == null ? void 0 : c.value;
751
765
  },
752
766
  () => {
753
767
  var u;
754
- const { buttons: f, menus: s } = ke(
768
+ const { buttons: c, menus: s } = Ce(
755
769
  n,
756
- a.flat !== void 0 ? a.flat : zt,
770
+ a.flat !== void 0 ? a.flat : Ot,
757
771
  (u = a.buttons) == null ? void 0 : u.value
758
772
  );
759
- c.value.splice(0, c.value.length, ...f), d.value.splice(0, d.value.length, ...s);
773
+ p.value.splice(0, p.value.length, ...c), d.value.splice(0, d.value.length, ...s);
760
774
  },
761
775
  {
762
776
  deep: !0,
763
777
  immediate: !0
764
778
  }
765
- ), (f, s) => {
766
- const u = q("role"), l = q("permit");
767
- return p(), w("div", Nt, [
779
+ ), (c, s) => {
780
+ const u = Q("role"), l = Q("permit");
781
+ return f(), w("div", zt, [
768
782
  b(e(G), null, {
769
- default: m(() => [
770
- (p(!0), w(F, null, L(c.value, (i) => Q((p(), h(e(O), {
783
+ default: _(() => [
784
+ (f(!0), w(M, null, L(p.value, (i) => V((f(), h(e(z), {
771
785
  key: i.key,
772
786
  type: i.type,
773
787
  danger: i.danger,
774
- disabled: e(j)(i),
788
+ disabled: e(q)(i),
775
789
  icon: i.icon,
776
- onClick: (_) => e(R)(i, e(t), e(a))
790
+ onClick: (m) => e(R)(i, e(t), e(a))
777
791
  }, {
778
- default: m(() => [
779
- M(D(i.label), 1)
792
+ default: _(() => [
793
+ P(D(i.label), 1)
780
794
  ]),
781
795
  _: 2
782
796
  }, 1032, ["type", "danger", "disabled", "icon", "onClick"])), [
783
797
  [u, i.role],
784
798
  [l, i.permit]
785
799
  ])), 128)),
786
- d.value.length > 0 ? (p(), h(e(re), { key: 0 }, {
787
- overlay: m(() => [
788
- b(e(ue), null, {
789
- default: m(() => [
790
- (p(!0), w(F, null, L(d.value, (i) => Q((p(), h(e(ie), {
800
+ d.value.length > 0 ? (f(), h(e(oe), { key: 0 }, {
801
+ overlay: _(() => [
802
+ b(e(ie), null, {
803
+ default: _(() => [
804
+ (f(!0), w(M, null, L(d.value, (i) => V((f(), h(e(de), {
791
805
  key: i.key,
792
- disabled: e(j)(i),
793
- onClick: (_) => e(R)(i, e(t), e(a))
806
+ disabled: e(q)(i),
807
+ onClick: (m) => e(R)(i, e(t), e(a))
794
808
  }, {
795
- default: m(() => [
796
- M(D(i.label), 1)
809
+ default: _(() => [
810
+ P(D(i.label), 1)
797
811
  ]),
798
812
  _: 2
799
813
  }, 1032, ["disabled", "onClick"])), [
@@ -804,31 +818,31 @@ const ma = /* @__PURE__ */ k({
804
818
  _: 1
805
819
  })
806
820
  ]),
807
- default: m(() => [
808
- b(e(O), null, {
809
- default: m(() => s[0] || (s[0] = [
810
- M(" 更多操作 ")
821
+ default: _(() => [
822
+ b(e(z), null, {
823
+ default: _(() => s[0] || (s[0] = [
824
+ P(" 更多操作 ")
811
825
  ])),
812
826
  _: 1,
813
827
  __: [0]
814
828
  })
815
829
  ]),
816
830
  _: 1
817
- })) : C("", !0),
818
- c.value.length === 0 && d.value.length === 0 ? (p(), w("span", Ot)) : C("", !0)
831
+ })) : k("", !0),
832
+ p.value.length === 0 && d.value.length === 0 ? (f(), w("span", Kt)) : k("", !0)
819
833
  ]),
820
834
  _: 1
821
835
  }),
822
836
  b(e(G), { class: "mr-1" }, {
823
- default: m(() => [
824
- (p(), h(ze(Ft), { "grid-ctrl": e(a) }, null, 8, ["grid-ctrl"]))
837
+ default: _(() => [
838
+ (f(), h(Ke(Nt), { "grid-ctrl": e(a) }, null, 8, ["grid-ctrl"]))
825
839
  ]),
826
840
  _: 1
827
841
  })
828
842
  ]);
829
843
  };
830
844
  }
831
- }), At = /* @__PURE__ */ k({
845
+ }), Et = /* @__PURE__ */ C({
832
846
  __name: "index",
833
847
  props: {
834
848
  /**
@@ -840,32 +854,32 @@ const ma = /* @__PURE__ */ k({
840
854
  }
841
855
  },
842
856
  emits: ["change"],
843
- setup(v, { emit: o }) {
844
- const a = v, t = g([]), r = o, { editorCtrl: n, errInfo: c } = K(), d = (f) => {
845
- c != null && c.value.errClass && n && U(n), r("change", f);
857
+ setup(v, { emit: r }) {
858
+ const a = v, t = g([]), o = r, { editorCtrl: n, errInfo: p } = O(), d = (c) => {
859
+ p != null && p.value.errClass && n && U(n), o("change", c);
846
860
  };
847
- return z(() => {
861
+ return K(() => {
848
862
  if (!a.data || a.data.length != 2) {
849
- console.error("Switch组件: ", a.data), mt.error("Switch组件必须有且只有两个选项");
863
+ console.error("Switch组件: ", a.data), _t.error("Switch组件必须有且只有两个选项");
850
864
  return;
851
865
  }
852
866
  $e(!1, a, t);
853
867
  }), xe(() => {
854
868
  Se(a);
855
- }), (f, s) => {
869
+ }), (c, s) => {
856
870
  var u;
857
- return t.value.length === 2 ? (p(), h(e(at), B({
871
+ return t.value.length === 2 ? (f(), h(e(lt), B({
858
872
  key: 0,
859
- class: [((u = e(c)) == null ? void 0 : u.errClass) === "error" ? "error !border-red-300 shadow-[0_0_3px_0px_#ff4d4f]" : "", "bg-blue-300", "w-[58px]"],
873
+ class: [((u = e(p)) == null ? void 0 : u.errClass) === "error" ? "error !border-red-300 shadow-[0_0_3px_0px_#ff4d4f]" : "", "bg-blue-300", "w-[58px]"],
860
874
  checkedChildren: t.value[0].label,
861
875
  checkedValue: t.value[0].value,
862
876
  unCheckedChildren: t.value[1].label,
863
877
  unCheckedValue: t.value[1].value,
864
878
  onChange: d
865
- }, f.$attrs), null, 16, ["class", "checkedChildren", "checkedValue", "unCheckedChildren", "unCheckedValue"])) : C("", !0);
879
+ }, c.$attrs), null, 16, ["class", "checkedChildren", "checkedValue", "unCheckedChildren", "unCheckedValue"])) : k("", !0);
866
880
  };
867
881
  }
868
- }), ba = /* @__PURE__ */ k({
882
+ }), ka = /* @__PURE__ */ C({
869
883
  inheritAttrs: !1,
870
884
  __name: "index",
871
885
  props: {
@@ -878,40 +892,40 @@ const ma = /* @__PURE__ */ k({
878
892
  statusDisabled: { type: Function }
879
893
  },
880
894
  setup(v) {
881
- const o = v, a = W(), t = o.gridCtrl;
895
+ const r = v, a = W(), t = r.gridCtrl;
882
896
  t && (t.pageNo.value = 1, t.total.value = 0, t.pageSize.value = t.pageSize.value);
883
- const r = g(t.pageSize.value), n = g(t.pageNo.value), c = g([]), d = g({
897
+ const o = g(t.pageSize.value), n = g(t.pageNo.value), p = g([]), d = g({
884
898
  total: 0,
885
899
  current: 1,
886
- pageSize: r.value,
900
+ pageSize: o.value,
887
901
  showTotal: (i) => `共 ${i} 条记录`,
888
- onChange: (i, _) => {
889
- d.value.current = i, d.value.pageSize = _, r.value = _, n.value = i, t && (t.pageNo.value = i, t.pageSize.value = _, t.remotePage && ve(t));
902
+ onChange: (i, m) => {
903
+ d.value.current = i, d.value.pageSize = m, o.value = m, n.value = i, t && (t.pageNo.value = i, t.pageSize.value = m, t.remotePage && ve(t));
890
904
  },
891
- ...o.pagination
905
+ ...r.pagination
892
906
  });
893
907
  $(
894
908
  () => t.tableData.value,
895
909
  (i) => {
896
- i && (c.value = i, d.value.total = t.total.value ?? 0);
910
+ i && (p.value = i, d.value.total = t.total.value ?? 0);
897
911
  },
898
912
  { immediate: !0 }
899
913
  ), $(
900
- () => o.tableData,
914
+ () => r.tableData,
901
915
  (i) => {
902
- i && (c.value = i, d.value.total = i.length);
916
+ i && (p.value = i, d.value.total = i.length);
903
917
  },
904
918
  { immediate: !0 }
905
919
  );
906
- const f = g(t.columns.value), s = {
907
- onChange: (i, _) => {
908
- t && (t.selectKeys.value = i, t.selectRows.value = _);
920
+ const c = g(t.columns.value), s = {
921
+ onChange: (i, m) => {
922
+ t && (t.selectKeys.value = i, t.selectRows.value = m);
909
923
  },
910
924
  columnWidth: "30px",
911
925
  getCheckboxProps: (i) => ({
912
926
  disabled: i.Enabled === 0
913
927
  }),
914
- ...o.rowSelection
928
+ ...r.rowSelection
915
929
  }, u = g(s);
916
930
  $(
917
931
  () => t.selectable.value,
@@ -922,53 +936,53 @@ const ma = /* @__PURE__ */ k({
922
936
  ), $(
923
937
  () => t.columns.value,
924
938
  () => {
925
- f.value = we(t.columns.value);
939
+ c.value = we(t.columns.value);
926
940
  },
927
941
  { deep: !0, immediate: !0 }
928
942
  );
929
943
  const l = g(!1);
930
- return Ke(() => {
944
+ return Oe(() => {
931
945
  l.value && t && (t.reload.value = !0);
932
- }), z(async () => {
933
- he(X.GridControl, t), t.tableData.value ? (c.value = t.tableData.value, t.total.value = c.value.length, d.value.total = t.total.value ?? 0) : t.autoload !== !1 && (t.remotePage ? c.value = (await ve(t)).rows : c.value = await Ve(t)), setTimeout(() => {
946
+ }), K(async () => {
947
+ he(X.GridControl, t), t.tableData.value ? (p.value = t.tableData.value, t.total.value = p.value.length, d.value.total = t.total.value ?? 0) : t.autoload !== !1 && (t.remotePage ? p.value = (await ve(t)).rows : p.value = await je(t)), setTimeout(() => {
934
948
  l.value = !0;
935
949
  }, 50);
936
- }), (i, _) => {
937
- var T, P;
938
- const x = q("permit");
939
- return p(), w(F, null, [
940
- (T = e(t).buttons) != null && T.value.length || (P = e(t).tools) != null && P.length ? (p(), h(Kt, {
950
+ }), (i, m) => {
951
+ var S, F;
952
+ const x = Q("permit");
953
+ return f(), w(M, null, [
954
+ (S = e(t).buttons) != null && S.value.length || (F = e(t).tools) != null && F.length ? (f(), h(At, {
941
955
  key: 0,
942
956
  "grid-ctrl": e(t),
943
957
  "editor-ctrl": e(t).editor
944
- }, null, 8, ["grid-ctrl", "editor-ctrl"])) : C("", !0),
945
- l.value ? (p(), h(e(Ne), B({
958
+ }, null, 8, ["grid-ctrl", "editor-ctrl"])) : k("", !0),
959
+ l.value ? (f(), h(e(Ne), B({
946
960
  key: 1,
947
961
  class: "w-full",
948
- "row-key": o.primaryKey ?? e(t).primaryKey ?? "Id",
949
- "data-source": c.value,
962
+ "row-key": r.primaryKey ?? e(t).primaryKey ?? "Id",
963
+ "data-source": p.value,
950
964
  loading: e(t).isGridLoading.value,
951
- columns: f.value,
965
+ columns: c.value,
952
966
  pagination: d.value,
953
967
  "row-selection": u.value,
954
- scroll: o.scroll || { x: 700, y: 1e3 },
968
+ scroll: r.scroll || { x: 700, y: 1e3 },
955
969
  size: e(t).tableSize.value,
956
970
  bordered: ""
957
971
  }, e(a)), {
958
- bodyCell: m((y) => {
972
+ bodyCell: _((y) => {
959
973
  var A, E;
960
974
  return [
961
975
  I(i.$slots, "bodyCell", {
962
976
  column: y == null ? void 0 : y.column,
963
977
  record: y == null ? void 0 : y.record
964
978
  }),
965
- e(t) && ((A = y == null ? void 0 : y.column) == null ? void 0 : A.dataIndex) === "enabled" ? Q((p(), h(At, {
979
+ e(t) && ((A = y == null ? void 0 : y.column) == null ? void 0 : A.dataIndex) === "enabled" ? V((f(), h(Et, {
966
980
  key: 0,
967
981
  checked: y.record.Enabled,
968
- "onUpdate:checked": (ce) => y.record.Enabled = ce,
982
+ "onUpdate:checked": (pe) => y.record.Enabled = pe,
969
983
  disabled: i.statusDisabled ? i.statusDisabled(y.record) : !1,
970
984
  data: e(Te).EnableDisable,
971
- onClick: (ce) => e(He)(e(t), y.record),
985
+ onClick: (pe) => e(He)(e(t), y.record),
972
986
  class: N([
973
987
  "w-[58px]",
974
988
  i.statusDisabled && i.statusDisabled(y.record) ? "cursor-not-allowed disabled" : ""
@@ -976,7 +990,7 @@ const ma = /* @__PURE__ */ k({
976
990
  loading: y == null ? void 0 : y.record.isLoading
977
991
  }, null, 8, ["checked", "onUpdate:checked", "disabled", "data", "onClick", "class", "loading"])), [
978
992
  [x, ":enabled", "disable"]
979
- ]) : C("", !0),
993
+ ]) : k("", !0),
980
994
  e(t) && ((E = y == null ? void 0 : y.column) == null ? void 0 : E.dataIndex) === "operation" ? I(i.$slots, "operate", {
981
995
  key: 1,
982
996
  record: y == null ? void 0 : y.record
@@ -985,15 +999,15 @@ const ma = /* @__PURE__ */ k({
985
999
  record: y == null ? void 0 : y.record,
986
1000
  "grid-ctrl": e(t)
987
1001
  }, null, 8, ["record", "grid-ctrl"])
988
- ]) : C("", !0)
1002
+ ]) : k("", !0)
989
1003
  ];
990
1004
  }),
991
1005
  _: 3
992
- }, 16, ["row-key", "data-source", "loading", "columns", "pagination", "row-selection", "scroll", "size"])) : C("", !0)
1006
+ }, 16, ["row-key", "data-source", "loading", "columns", "pagination", "row-selection", "scroll", "size"])) : k("", !0)
993
1007
  ], 64);
994
1008
  };
995
1009
  }
996
- }), Et = { class: "flex items-center gap-1" }, Yt = { class: "text-nowrap" }, Ca = /* @__PURE__ */ k({
1010
+ }), Yt = { class: "flex items-center gap-1" }, Lt = { class: "text-nowrap" }, Ca = /* @__PURE__ */ C({
997
1011
  __name: "index",
998
1012
  props: {
999
1013
  treeCtrl: {},
@@ -1001,15 +1015,15 @@ const ma = /* @__PURE__ */ k({
1001
1015
  expandedKeys: {}
1002
1016
  },
1003
1017
  emits: ["select", "update:selectedKeys"],
1004
- setup(v, { emit: o }) {
1005
- const a = v, t = W(), r = a.treeCtrl, n = g([]);
1018
+ setup(v, { emit: r }) {
1019
+ const a = v, t = W(), o = a.treeCtrl, n = g([]);
1006
1020
  $(
1007
- () => r.data.value,
1021
+ () => o.data.value,
1008
1022
  (u) => {
1009
- u && (n.value = r.fieldMap ? ee(r.fieldMap, u) : u, s(a.selectedKeys ?? []));
1023
+ u && (n.value = o.fieldMap ? ee(o.fieldMap, u) : u, s(a.selectedKeys ?? []));
1010
1024
  }
1011
1025
  );
1012
- const c = o, d = g([]);
1026
+ const p = r, d = g([]);
1013
1027
  $(
1014
1028
  () => a.selectedKeys,
1015
1029
  (u) => {
@@ -1017,76 +1031,76 @@ const ma = /* @__PURE__ */ k({
1017
1031
  },
1018
1032
  { immediate: !0 }
1019
1033
  );
1020
- const f = g(["-"]);
1034
+ const c = g(["-"]);
1021
1035
  $(
1022
1036
  () => a.expandedKeys,
1023
1037
  (u) => {
1024
- u && (f.value = u);
1038
+ u && (c.value = u);
1025
1039
  },
1026
1040
  { immediate: !0 }
1027
1041
  );
1028
1042
  const s = (u, l) => {
1029
- u.length === 0 && u.push(...d.value), u.length > 0 && (r.node.value = l == null ? void 0 : l.node.dataRef), d.value = u, c("update:selectedKeys", u), c("select", u, l);
1043
+ u.length === 0 && u.push(...d.value), u.length > 0 && (o.node.value = l == null ? void 0 : l.node.dataRef), d.value = u, p("update:selectedKeys", u), p("select", u, l);
1030
1044
  };
1031
- return z(() => {
1032
- r.fieldMap || (r.fieldMap = {
1045
+ return K(() => {
1046
+ o.fieldMap || (o.fieldMap = {
1033
1047
  label: "Name",
1034
1048
  key: "Id",
1035
1049
  value: "Id",
1036
1050
  icon: "Icon"
1037
- }), r.data.value ? n.value = ee(r.fieldMap, r.data.value) : r.autoload && De(r);
1038
- }), (u, l) => (p(), h(e(lt), B({
1051
+ }), o.data.value ? n.value = ee(o.fieldMap, o.data.value) : o.autoload && De(o);
1052
+ }), (u, l) => (f(), h(e(rt), B({
1039
1053
  class: "w-full",
1040
1054
  "show-line": !0,
1041
1055
  "tree-data": n.value,
1042
- "expanded-keys": f.value,
1043
- "onUpdate:expandedKeys": l[0] || (l[0] = (i) => f.value = i),
1056
+ "expanded-keys": c.value,
1057
+ "onUpdate:expandedKeys": l[0] || (l[0] = (i) => c.value = i),
1044
1058
  "selected-keys": d.value,
1045
- loading: e(r).isTreeLoading,
1059
+ loading: e(o).isTreeLoading,
1046
1060
  onSelect: s
1047
1061
  }, e(t)), {
1048
- title: m(({ key: i, label: _, icon: x }) => [
1062
+ title: _(({ key: i, label: m, icon: x }) => [
1049
1063
  I(u.$slots, "title", {
1050
- label: _,
1064
+ label: m,
1051
1065
  key: i,
1052
1066
  icon: x
1053
1067
  }, () => [
1054
- S("div", Et, [
1068
+ T("div", Yt, [
1055
1069
  b(e(Y), { icon: x }, null, 8, ["icon"]),
1056
- S("span", Yt, D(_), 1)
1070
+ T("span", Lt, D(m), 1)
1057
1071
  ])
1058
1072
  ])
1059
1073
  ]),
1060
1074
  _: 3
1061
1075
  }, 16, ["tree-data", "expanded-keys", "selected-keys", "loading"]));
1062
1076
  }
1063
- }), ka = /* @__PURE__ */ V(_t, [["__scopeId", "data-v-1e39ad49"]]), Lt = {
1077
+ }), wa = /* @__PURE__ */ j(ht, [["__scopeId", "data-v-1e39ad49"]]), Rt = {
1064
1078
  key: 0,
1065
1079
  class: "absolute z-10 mt-[5px] mr-[10px] text-[#999] flex items-center"
1066
- }, Rt = /* @__PURE__ */ k({
1080
+ }, Ut = /* @__PURE__ */ C({
1067
1081
  inheritAttrs: !1,
1068
1082
  __name: "index",
1069
1083
  props: We,
1070
1084
  emits: ["change", "update:labels", "update:value"],
1071
- setup(v, { emit: o }) {
1072
- var _, x, T;
1073
- const a = v, t = W(), r = g({
1085
+ setup(v, { emit: r }) {
1086
+ var m, x, S;
1087
+ const a = v, t = W(), o = g({
1074
1088
  ...a.url,
1075
- url: ((_ = a.url) == null ? void 0 : _.url) || "",
1089
+ url: ((m = a.url) == null ? void 0 : m.url) || "",
1076
1090
  fieldMap: a.fieldMap || ((x = a.url) == null ? void 0 : x.fieldMap),
1077
- params: a.params || ((T = a.url) == null ? void 0 : T.params),
1091
+ params: a.params || ((S = a.url) == null ? void 0 : S.params),
1078
1092
  loadingText: !1
1079
- }), n = K(), { editorCtrl: c, errInfo: d, labelText: f } = n, s = g(t.placeholder);
1093
+ }), n = O(), { editorCtrl: p, errInfo: d, labelText: c } = n, s = g(t.placeholder);
1080
1094
  $(
1081
- () => r.value.loading,
1082
- (P) => {
1083
- P ? s.value = "" : s.value || (s.value = "请选择" + f.value);
1095
+ () => o.value.loading,
1096
+ (F) => {
1097
+ F ? s.value = "" : s.value || (s.value = "请选择" + c.value);
1084
1098
  },
1085
1099
  { immediate: !0 }
1086
1100
  );
1087
- const u = o;
1101
+ const u = r;
1088
1102
  n.inputEmit = u;
1089
- const l = g([]), i = (P, y) => {
1103
+ const l = g([]), i = (F, y) => {
1090
1104
  if (!y || y.length === 0) {
1091
1105
  u("update:labels", []), u("update:value", []);
1092
1106
  return;
@@ -1095,45 +1109,45 @@ const ma = /* @__PURE__ */ k({
1095
1109
  u("update:labels", A), u(
1096
1110
  "update:value",
1097
1111
  y.map((E) => E.value)
1098
- ), d != null && d.value.errClass && c && U(c);
1112
+ ), d != null && d.value.errClass && p && U(p);
1099
1113
  };
1100
- return z(() => {
1101
- r.value && !r.value.fieldMap && (r.value.fieldMap = {
1114
+ return K(() => {
1115
+ o.value && !o.value.fieldMap && (o.value.fieldMap = {
1102
1116
  title: "Name",
1103
1117
  label: "Name",
1104
1118
  value: "Id",
1105
1119
  key: "Id"
1106
- }), $e(a.autoload, a, l, n, r.value, r.value.params);
1120
+ }), $e(a.autoload, a, l, n, o.value, o.value.params);
1107
1121
  }), xe(() => {
1108
1122
  Se(a, n);
1109
- }), (P, y) => {
1123
+ }), (F, y) => {
1110
1124
  var A;
1111
- return p(), w("div", null, [
1112
- l.value.length ? C("", !0) : (p(), w("div", Lt, [
1125
+ return f(), w("div", null, [
1126
+ l.value.length ? k("", !0) : (f(), w("div", Rt, [
1113
1127
  b(e(Je), { class: "text-[#555] mx-[5px] !ml-[10px] !w-4 !h-4" }),
1114
- y[0] || (y[0] = S("span", null, "数据加载中...", -1))
1128
+ y[0] || (y[0] = T("span", null, "数据加载中...", -1))
1115
1129
  ])),
1116
- b(e(rt), B({
1130
+ b(e(ot), B({
1117
1131
  options: l.value,
1118
1132
  class: [(A = e(d)) == null ? void 0 : A.errClass],
1119
1133
  "allow-clear": !0,
1120
- placeholder: l.value.length > 0 ? "请选择" + e(f) : "",
1134
+ placeholder: l.value.length > 0 ? "请选择" + e(c) : "",
1121
1135
  onChange: i
1122
1136
  }, e(t)), null, 16, ["options", "class", "placeholder"])
1123
1137
  ]);
1124
1138
  };
1125
1139
  }
1126
- }), wa = /* @__PURE__ */ V(Rt, [["__scopeId", "data-v-05e57a52"]]), $a = /* @__PURE__ */ V(ht, [["__scopeId", "data-v-dc59fe7f"]]);
1140
+ }), $a = /* @__PURE__ */ j(Ut, [["__scopeId", "data-v-05e57a52"]]), Sa = /* @__PURE__ */ j(gt, [["__scopeId", "data-v-dc59fe7f"]]);
1127
1141
  function te() {
1128
1142
  return te = Object.assign ? Object.assign.bind() : function(v) {
1129
- for (var o = 1; o < arguments.length; o++) {
1130
- var a = arguments[o];
1143
+ for (var r = 1; r < arguments.length; r++) {
1144
+ var a = arguments[r];
1131
1145
  for (var t in a) ({}).hasOwnProperty.call(a, t) && (v[t] = a[t]);
1132
1146
  }
1133
1147
  return v;
1134
1148
  }, te.apply(null, arguments);
1135
1149
  }
1136
- const Ut = {
1150
+ const qt = {
1137
1151
  locale: "zh_CN",
1138
1152
  today: "今天",
1139
1153
  now: "此刻",
@@ -1160,10 +1174,10 @@ const Ut = {
1160
1174
  nextDecade: "下一年代",
1161
1175
  previousCentury: "上一世纪",
1162
1176
  nextCentury: "下一世纪"
1163
- }, jt = {
1177
+ }, Qt = {
1164
1178
  placeholder: "请选择时间",
1165
1179
  rangePlaceholder: ["开始时间", "结束时间"]
1166
- }, de = {
1180
+ }, ce = {
1167
1181
  lang: te({
1168
1182
  placeholder: "请选择日期",
1169
1183
  yearPlaceholder: "请选择年份",
@@ -1175,51 +1189,51 @@ const Ut = {
1175
1189
  rangeMonthPlaceholder: ["开始月份", "结束月份"],
1176
1190
  rangeQuarterPlaceholder: ["开始季度", "结束季度"],
1177
1191
  rangeWeekPlaceholder: ["开始周", "结束周"]
1178
- }, Ut),
1179
- timePickerLocale: te({}, jt)
1192
+ }, qt),
1193
+ timePickerLocale: te({}, Qt)
1180
1194
  };
1181
- de.lang.ok = "确定";
1182
- const Sa = /* @__PURE__ */ k({
1195
+ ce.lang.ok = "确定";
1196
+ const Ta = /* @__PURE__ */ C({
1183
1197
  __name: "index",
1184
1198
  props: {
1185
1199
  valueFormat: {}
1186
1200
  },
1187
1201
  setup(v) {
1188
- const o = v, { editorCtrl: a, labelText: t, errInfo: r } = K(), n = () => {
1189
- r != null && r.value.errClass && a && U(a);
1190
- }, c = g(o.valueFormat ?? "YYYY-MM-DD");
1191
- return (d, f) => {
1202
+ const r = v, { editorCtrl: a, labelText: t, errInfo: o } = O(), n = () => {
1203
+ o != null && o.value.errClass && a && U(a);
1204
+ }, p = g(r.valueFormat ?? "YYYY-MM-DD");
1205
+ return (d, c) => {
1192
1206
  var s;
1193
- return p(), h(e(ot), {
1194
- class: N([[((s = e(r)) == null ? void 0 : s.errClass) === "error" ? "error !border-red-300 shadow-[0_0_3px_0px_#ff4d4f]" : ""], "w-full"]),
1207
+ return f(), h(e(st), {
1208
+ class: N([[((s = e(o)) == null ? void 0 : s.errClass) === "error" ? "error !border-red-300 shadow-[0_0_3px_0px_#ff4d4f]" : ""], "w-full"]),
1195
1209
  placeholder: "请选择" + e(t),
1196
- locale: e(de),
1197
- valueFormat: c.value,
1210
+ locale: e(ce),
1211
+ valueFormat: p.value,
1198
1212
  onBlur: n
1199
1213
  }, null, 8, ["class", "placeholder", "locale", "valueFormat"]);
1200
1214
  };
1201
1215
  }
1202
- }), qt = /* @__PURE__ */ k({
1216
+ }), Vt = /* @__PURE__ */ C({
1203
1217
  __name: "index",
1204
1218
  props: {
1205
1219
  value: {}
1206
1220
  },
1207
1221
  emits: ["update:value"],
1208
- setup(v, { emit: o }) {
1209
- const { editorCtrl: a, labelText: t, errInfo: r } = K(), n = () => {
1210
- r != null && r.value.errClass && a && U(a);
1211
- }, c = v, d = o, f = g(c.value);
1222
+ setup(v, { emit: r }) {
1223
+ const { editorCtrl: a, labelText: t, errInfo: o } = O(), n = () => {
1224
+ o != null && o.value.errClass && a && U(a);
1225
+ }, p = v, d = r, c = g(p.value);
1212
1226
  $(
1213
- () => c.value,
1227
+ () => p.value,
1214
1228
  (u) => {
1215
- f.value = u;
1229
+ c.value = u;
1216
1230
  },
1217
1231
  { immediate: !0 }
1218
1232
  // 立即同步初始值
1219
1233
  ), $(
1220
- () => f.value,
1234
+ () => c.value,
1221
1235
  (u) => {
1222
- if (f.value === "") {
1236
+ if (c.value === "") {
1223
1237
  d("update:value", void 0);
1224
1238
  return;
1225
1239
  }
@@ -1227,17 +1241,17 @@ const Sa = /* @__PURE__ */ k({
1227
1241
  }
1228
1242
  );
1229
1243
  const s = () => {
1230
- f.value === "" && (f.value = void 0);
1244
+ c.value === "" && (c.value = void 0);
1231
1245
  };
1232
1246
  return (u, l) => {
1233
- var i, _;
1234
- return p(), h(e(oe), B({
1247
+ var i, m;
1248
+ return f(), h(e(se), B({
1235
1249
  class: [
1236
- (i = e(r)) == null ? void 0 : i.errClass,
1237
- ((_ = e(r)) == null ? void 0 : _.errClass) === "error" && !u.$slots.addonBefore && !u.$slots.addonAfter ? "!border-red-300 shadow-[0_0_3px_0px_#ff4d4f]" : ""
1250
+ (i = e(o)) == null ? void 0 : i.errClass,
1251
+ ((m = e(o)) == null ? void 0 : m.errClass) === "error" && !u.$slots.addonBefore && !u.$slots.addonAfter ? "!border-red-300 shadow-[0_0_3px_0px_#ff4d4f]" : ""
1238
1252
  ],
1239
- value: f.value,
1240
- "onUpdate:value": l[0] || (l[0] = (x) => f.value = x),
1253
+ value: c.value,
1254
+ "onUpdate:value": l[0] || (l[0] = (x) => c.value = x),
1241
1255
  autocomplete: "new-password",
1242
1256
  "allow-clear": !0,
1243
1257
  placeholder: "请输入" + e(t),
@@ -1246,14 +1260,14 @@ const Sa = /* @__PURE__ */ k({
1246
1260
  }, u.$attrs), ge({ _: 2 }, [
1247
1261
  u.$slots.addonBefore ? {
1248
1262
  name: "addonBefore",
1249
- fn: m(() => [
1263
+ fn: _(() => [
1250
1264
  I(u.$slots, "addonBefore")
1251
1265
  ]),
1252
1266
  key: "0"
1253
1267
  } : void 0,
1254
1268
  u.$slots.addonAfter ? {
1255
1269
  name: "addonAfter",
1256
- fn: m(() => [
1270
+ fn: _(() => [
1257
1271
  I(u.$slots, "addonAfter")
1258
1272
  ]),
1259
1273
  key: "1"
@@ -1261,73 +1275,73 @@ const Sa = /* @__PURE__ */ k({
1261
1275
  ]), 1040, ["class", "value", "placeholder"]);
1262
1276
  };
1263
1277
  }
1264
- }), Qt = /* @__PURE__ */ k({
1278
+ }), jt = /* @__PURE__ */ C({
1265
1279
  __name: "inputIcon",
1266
1280
  props: {
1267
1281
  value: {}
1268
1282
  },
1269
1283
  emits: ["update:value"],
1270
- setup(v, { emit: o }) {
1271
- const a = v, t = o, r = g(void 0);
1284
+ setup(v, { emit: r }) {
1285
+ const a = v, t = r, o = g(void 0);
1272
1286
  return $(
1273
1287
  () => a.value,
1274
1288
  (n) => {
1275
- r.value = n ?? void 0;
1289
+ o.value = n ?? void 0;
1276
1290
  },
1277
1291
  { immediate: !0 }
1278
1292
  ), $(
1279
- () => r.value,
1293
+ () => o.value,
1280
1294
  (n) => {
1281
1295
  t("update:value", n);
1282
1296
  }
1283
- ), (n, c) => (p(), h(qt, B({
1297
+ ), (n, p) => (f(), h(Vt, B({
1284
1298
  class: ["w-[80%]"],
1285
- value: r.value,
1286
- "onUpdate:value": c[0] || (c[0] = (d) => r.value = d)
1299
+ value: o.value,
1300
+ "onUpdate:value": p[0] || (p[0] = (d) => o.value = d)
1287
1301
  }, n.$attrs), {
1288
- addonBefore: m(() => [
1302
+ addonBefore: _(() => [
1289
1303
  b(e(Y), {
1290
1304
  class: "!w-4 !h-4",
1291
- icon: r.value
1305
+ icon: o.value
1292
1306
  }, null, 8, ["icon"])
1293
1307
  ]),
1294
1308
  _: 1
1295
1309
  }, 16, ["value"]));
1296
1310
  }
1297
- }), Ta = /* @__PURE__ */ V(Qt, [["__scopeId", "data-v-f7b3ed74"]]), Da = /* @__PURE__ */ k({
1311
+ }), Da = /* @__PURE__ */ j(jt, [["__scopeId", "data-v-f7b3ed74"]]), Ia = /* @__PURE__ */ C({
1298
1312
  __name: "inputPassword",
1299
1313
  setup(v) {
1300
- const { editorCtrl: o, labelText: a, errInfo: t } = K(), r = () => {
1301
- t != null && t.value.errClass && o && U(o);
1314
+ const { editorCtrl: r, labelText: a, errInfo: t } = O(), o = () => {
1315
+ t != null && t.value.errClass && r && U(r);
1302
1316
  };
1303
- return (n, c) => {
1317
+ return (n, p) => {
1304
1318
  var d;
1305
- return p(), h(e(st), B({
1319
+ return f(), h(e(nt), B({
1306
1320
  class: ((d = e(t)) == null ? void 0 : d.errClass) === "error" ? ["error", "!border-red-300", "shadow-[0_0_3px_0px_#ff4d4f]"] : "",
1307
1321
  "allow-clear": !0,
1308
1322
  autocomplete: "new-password",
1309
1323
  placeholder: "请输入" + e(a),
1310
- onBlur: r
1324
+ onBlur: o
1311
1325
  }, n.$attrs), null, 16, ["class", "placeholder"]);
1312
1326
  };
1313
1327
  }
1314
- }), Ia = /* @__PURE__ */ k({
1328
+ }), Ba = /* @__PURE__ */ C({
1315
1329
  __name: "inputNumber",
1316
1330
  setup(v) {
1317
- const { editorCtrl: o, labelText: a, errInfo: t } = K(), r = () => {
1318
- t != null && t.value.errClass && o && U(o);
1331
+ const { editorCtrl: r, labelText: a, errInfo: t } = O(), o = () => {
1332
+ t != null && t.value.errClass && r && U(r);
1319
1333
  };
1320
- return (n, c) => {
1334
+ return (n, p) => {
1321
1335
  var d;
1322
- return p(), h(e(nt), B({
1336
+ return f(), h(e(ut), B({
1323
1337
  class: [[((d = e(t)) == null ? void 0 : d.errClass) === "error" ? "error !border-red-300 shadow-[0_0_3px_0px_#ff4d4f]" : ""], "w-[50%]"],
1324
- onBlur: r,
1338
+ onBlur: o,
1325
1339
  "allow-clear": !1,
1326
1340
  placeholder: "请输入" + e(a)
1327
1341
  }, n.$attrs), null, 16, ["class", "placeholder"]);
1328
1342
  };
1329
1343
  }
1330
- }), Vt = { class: "flex flex-col gap-2" }, Ht = { class: "w-[33%]" }, Wt = { class: "w-[64%]" }, Ba = /* @__PURE__ */ k({
1344
+ }), Ht = { class: "flex flex-col gap-2" }, Wt = { class: "w-[33%]" }, Jt = { class: "w-[64%]" }, Fa = /* @__PURE__ */ C({
1331
1345
  __name: "index",
1332
1346
  props: {
1333
1347
  value: {},
@@ -1335,24 +1349,24 @@ const Sa = /* @__PURE__ */ k({
1335
1349
  valueHolder: {}
1336
1350
  },
1337
1351
  emits: ["update:value"],
1338
- setup(v, { emit: o }) {
1339
- const a = v, t = o, r = g([]);
1352
+ setup(v, { emit: r }) {
1353
+ const a = v, t = r, o = g([]);
1340
1354
  let n = !1;
1341
- const c = () => {
1342
- r.value = Object.entries(a.value).map(([u, l]) => ({
1355
+ const p = () => {
1356
+ o.value = Object.entries(a.value).map(([u, l]) => ({
1343
1357
  id: Date.now() + Math.random(),
1344
1358
  field: u,
1345
1359
  value: l
1346
1360
  }));
1347
1361
  };
1348
1362
  $(() => a.value, () => {
1349
- n || c(), n = !1;
1363
+ n || p(), n = !1;
1350
1364
  }, { immediate: !0 });
1351
1365
  const d = () => {
1352
- const u = r.value.reduce((l, i) => (i.field && (l[i.field] = i.value), l), {});
1366
+ const u = o.value.reduce((l, i) => (i.field && (l[i.field] = i.value), l), {});
1353
1367
  n = !0, t("update:value", u);
1354
- }, f = () => {
1355
- r.value.push({
1368
+ }, c = () => {
1369
+ o.value.push({
1356
1370
  id: Date.now() + Math.random(),
1357
1371
  field: "",
1358
1372
  value: ""
@@ -1360,46 +1374,46 @@ const Sa = /* @__PURE__ */ k({
1360
1374
  }, s = () => {
1361
1375
  d();
1362
1376
  };
1363
- return (u, l) => (p(), w("div", Vt, [
1364
- (p(!0), w(F, null, L(r.value, (i) => (p(), w("div", {
1377
+ return (u, l) => (f(), w("div", Ht, [
1378
+ (f(!0), w(M, null, L(o.value, (i) => (f(), w("div", {
1365
1379
  key: i.id,
1366
1380
  class: "flex items-center gap-2"
1367
1381
  }, [
1368
- S("div", Ht, [
1369
- b(e(oe), {
1382
+ T("div", Wt, [
1383
+ b(e(se), {
1370
1384
  value: i.field,
1371
- "onUpdate:value": (_) => i.field = _,
1385
+ "onUpdate:value": (m) => i.field = m,
1372
1386
  title: i.field,
1373
1387
  class: "w-full",
1374
1388
  placeholder: u.labelHolder || "配置名",
1375
1389
  onInput: s
1376
1390
  }, null, 8, ["value", "onUpdate:value", "title", "placeholder"])
1377
1391
  ]),
1378
- l[0] || (l[0] = S("div", { class: "w-[3%]" }, " = ", -1)),
1379
- S("div", Wt, [
1380
- b(e(oe), {
1392
+ l[0] || (l[0] = T("div", { class: "w-[3%]" }, " = ", -1)),
1393
+ T("div", Jt, [
1394
+ b(e(se), {
1381
1395
  value: i.value,
1382
- "onUpdate:value": (_) => i.value = _,
1396
+ "onUpdate:value": (m) => i.value = m,
1383
1397
  placeholder: u.valueHolder,
1384
1398
  onInput: s,
1385
1399
  title: i.value
1386
1400
  }, null, 8, ["value", "onUpdate:value", "placeholder", "title"])
1387
1401
  ])
1388
1402
  ]))), 128)),
1389
- b(e(Fe), {
1390
- onClick: f,
1403
+ b(e(Me), {
1404
+ onClick: c,
1391
1405
  class: "mt-1 w-[80px] !text-[12px] text-[#666] bg-[#e6f7ff] border-[#b3e0ff] hover:bg-[#b3e0ff] hover:border-[#8abeff]",
1392
1406
  size: "small"
1393
1407
  }, {
1394
- default: m(() => l[1] || (l[1] = [
1395
- M(" 新增配置行 ")
1408
+ default: _(() => l[1] || (l[1] = [
1409
+ P(" 新增配置行 ")
1396
1410
  ])),
1397
1411
  _: 1,
1398
1412
  __: [1]
1399
1413
  })
1400
1414
  ]));
1401
1415
  }
1402
- }), Jt = /* @__PURE__ */ V(gt, [["__scopeId", "data-v-f9b2ac3d"]]), Pa = /* @__PURE__ */ k({
1416
+ }), Gt = /* @__PURE__ */ j(xt, [["__scopeId", "data-v-f9b2ac3d"]]), Pa = /* @__PURE__ */ C({
1403
1417
  __name: "radioStatus",
1404
1418
  props: {
1405
1419
  /**
@@ -1427,13 +1441,13 @@ const Sa = /* @__PURE__ */ k({
1427
1441
  }
1428
1442
  },
1429
1443
  setup(v) {
1430
- const o = v, a = g(JSON.parse(JSON.stringify(Te.getOptions(o.dataKey))));
1431
- return o.all === !0 && a.value.unshift({
1444
+ const r = v, a = g(JSON.parse(JSON.stringify(Te.getOptions(r.dataKey))));
1445
+ return r.all === !0 && a.value.unshift({
1432
1446
  label: "全部",
1433
- value: o.allValue || [0, 1]
1434
- }), (t, r) => (p(), h(Jt, { data: a.value }, null, 8, ["data"]));
1447
+ value: r.allValue || [0, 1]
1448
+ }), (t, o) => (f(), h(Gt, { data: a.value }, null, 8, ["data"]));
1435
1449
  }
1436
- }), Ma = /* @__PURE__ */ k({
1450
+ }), Ma = /* @__PURE__ */ C({
1437
1451
  __name: "index",
1438
1452
  props: {
1439
1453
  startDate: {},
@@ -1441,8 +1455,8 @@ const Sa = /* @__PURE__ */ k({
1441
1455
  valueFormat: { default: "YYYY-MM-DD" }
1442
1456
  },
1443
1457
  emits: ["update:startDate", "update:endDate"],
1444
- setup(v, { emit: o }) {
1445
- const a = v, t = o, r = K(), { errInfo: n } = r, c = pe(() => a.valueFormat), d = pe(() => {
1458
+ setup(v, { emit: r }) {
1459
+ const a = v, t = r, o = O(), { errInfo: n } = o, p = re(() => a.valueFormat), d = re(() => {
1446
1460
  const s = a.startDate, u = a.endDate;
1447
1461
  if (!(!s || !u))
1448
1462
  try {
@@ -1451,7 +1465,7 @@ const Sa = /* @__PURE__ */ k({
1451
1465
  } catch {
1452
1466
  return;
1453
1467
  }
1454
- }), f = (s, u) => {
1468
+ }), c = (s, u) => {
1455
1469
  if (!s || !u || u.length !== 2) {
1456
1470
  t("update:startDate", null), t("update:endDate", null);
1457
1471
  return;
@@ -1460,36 +1474,36 @@ const Sa = /* @__PURE__ */ k({
1460
1474
  };
1461
1475
  return (s, u) => {
1462
1476
  var l;
1463
- return p(), h(e(ut), {
1477
+ return f(), h(e(it), {
1464
1478
  class: N([((l = e(n)) == null ? void 0 : l.errClass) === "error" ? ["error", "!border-red-300", "shadow-[0_0_3px_0px_#ff4d4f]"] : "", "w-full"]),
1465
- locale: e(de),
1466
- "value-format": c.value,
1479
+ locale: e(ce),
1480
+ "value-format": p.value,
1467
1481
  value: d.value,
1468
- onChange: f
1482
+ onChange: c
1469
1483
  }, null, 8, ["class", "locale", "value-format", "value"]);
1470
1484
  };
1471
1485
  }
1472
- }), Fa = /* @__PURE__ */ V(xt, [["__scopeId", "data-v-bf782acb"]]), Na = /* @__PURE__ */ k({
1486
+ }), Na = /* @__PURE__ */ j(yt, [["__scopeId", "data-v-bf782acb"]]), za = /* @__PURE__ */ C({
1473
1487
  __name: "index",
1474
1488
  setup(v) {
1475
- const { editorCtrl: o, labelText: a, errInfo: t } = K(), r = () => {
1476
- t != null && t.value.errClass && o && U(o);
1489
+ const { editorCtrl: r, labelText: a, errInfo: t } = O(), o = () => {
1490
+ t != null && t.value.errClass && r && U(r);
1477
1491
  };
1478
- return (n, c) => {
1492
+ return (n, p) => {
1479
1493
  var d;
1480
- return p(), h(e(it), B({
1494
+ return f(), h(e(dt), B({
1481
1495
  class: ((d = e(t)) == null ? void 0 : d.errClass) === "error" ? ["error", "!border-red-300", "shadow-[0_0_3px_0px_#ff4d4f]"] : "",
1482
1496
  "allow-clear": !0,
1483
1497
  placeholder: "请输入" + e(a),
1484
- onBlur: r,
1485
- onKeyup: c[0] || (c[0] = fe(J(() => {
1498
+ onBlur: o,
1499
+ onKeyup: p[0] || (p[0] = fe(J(() => {
1486
1500
  }, ["stop"]), ["enter", "native"])),
1487
- onKeydown: c[1] || (c[1] = fe(J(() => {
1501
+ onKeydown: p[1] || (p[1] = fe(J(() => {
1488
1502
  }, ["stop"]), ["enter", "native"]))
1489
1503
  }, n.$attrs), null, 16, ["class", "placeholder"]);
1490
1504
  };
1491
1505
  }
1492
- }), Gt = /* @__PURE__ */ k({
1506
+ }), Xt = /* @__PURE__ */ C({
1493
1507
  __name: "index",
1494
1508
  props: {
1495
1509
  autoload: { type: Boolean },
@@ -1498,8 +1512,8 @@ const Sa = /* @__PURE__ */ k({
1498
1512
  value: {}
1499
1513
  },
1500
1514
  emits: ["change", "update:value"],
1501
- setup(v, { emit: o }) {
1502
- const a = v, t = g({ ...a.url }), { editorCtrl: r, labelText: n, errInfo: c } = K(), d = o, f = g([]), s = g([]);
1515
+ setup(v, { emit: r }) {
1516
+ const a = v, t = g({ ...a.url }), { editorCtrl: o, labelText: n, errInfo: p } = O(), d = r, c = g([]), s = g([]);
1503
1517
  a.value && a.value.every((l) => {
1504
1518
  s.value.push(l.toString());
1505
1519
  }), $(
@@ -1509,34 +1523,34 @@ const Sa = /* @__PURE__ */ k({
1509
1523
  }
1510
1524
  );
1511
1525
  const u = (l) => {
1512
- d("update:value", l), d("change", l), s.value = l, c != null && c.value.errClass && r && U(r);
1526
+ d("update:value", l), d("change", l), s.value = l, p != null && p.value.errClass && o && U(o);
1513
1527
  };
1514
- return z(async () => {
1528
+ return K(async () => {
1515
1529
  if (t.value) {
1516
- const l = r == null ? void 0 : r.page;
1530
+ const l = o == null ? void 0 : o.page;
1517
1531
  if (t.value.api || (t.value.api = l == null ? void 0 : l.api), t.value.authorize === void 0 && (t.value.authorize = l == null ? void 0 : l.authorize), a.autoload) {
1518
- const i = await Ie(r, {
1532
+ const i = await Ie(o, {
1519
1533
  urlKey: "list",
1520
1534
  url: { ...t.value, url: t.value.url },
1521
1535
  loadingText: !1,
1522
1536
  params: a.params
1523
1537
  });
1524
- f.value = (i == null ? void 0 : i.data) ?? [];
1538
+ c.value = (i == null ? void 0 : i.data) ?? [];
1525
1539
  }
1526
1540
  }
1527
1541
  }), (l, i) => {
1528
- var _;
1529
- return p(), h(e(dt), B({
1530
- class: ((_ = e(c)) == null ? void 0 : _.errClass) === "error" ? ["error", "!border-red-300", "shadow-[0_0_3px_0px_#ff4d4f]"] : "",
1542
+ var m;
1543
+ return f(), h(e(ct), B({
1544
+ class: ((m = e(p)) == null ? void 0 : m.errClass) === "error" ? ["error", "!border-red-300", "shadow-[0_0_3px_0px_#ff4d4f]"] : "",
1531
1545
  placeholder: "请输入" + e(n),
1532
1546
  targetKeys: s.value,
1533
1547
  onChange: u
1534
1548
  }, l.$attrs), {
1535
- children: m(({ direction: x, disabled: T, filteredItems: P, onItemSelectAll: y, onItemSelect: A, selectedKeys: E }) => [
1549
+ children: _(({ direction: x, disabled: S, filteredItems: F, onItemSelectAll: y, onItemSelect: A, selectedKeys: E }) => [
1536
1550
  I(l.$slots, "children", {
1537
1551
  direction: x,
1538
- disabled: T,
1539
- filteredItems: P,
1552
+ disabled: S,
1553
+ filteredItems: F,
1540
1554
  onItemSelectAll: y,
1541
1555
  onItemSelect: A,
1542
1556
  selectedKeys: E
@@ -1546,7 +1560,7 @@ const Sa = /* @__PURE__ */ k({
1546
1560
  }, 16, ["class", "placeholder", "targetKeys"]);
1547
1561
  };
1548
1562
  }
1549
- }), Oa = /* @__PURE__ */ k({
1563
+ }), Ka = /* @__PURE__ */ C({
1550
1564
  __name: "transferTable",
1551
1565
  props: {
1552
1566
  /**
@@ -1572,8 +1586,8 @@ const Sa = /* @__PURE__ */ k({
1572
1586
  }
1573
1587
  },
1574
1588
  emits: ["update:value"],
1575
- setup(v, { emit: o }) {
1576
- const a = v, t = o, r = g(a.autoload), n = g(a.value), c = g(a.gridCtrl.primaryKey);
1589
+ setup(v, { emit: r }) {
1590
+ const a = v, t = r, o = g(a.autoload), n = g(a.value), p = g(a.gridCtrl.primaryKey);
1577
1591
  $(
1578
1592
  () => n.value,
1579
1593
  (s) => {
@@ -1586,32 +1600,32 @@ const Sa = /* @__PURE__ */ k({
1586
1600
  }
1587
1601
  ), a.gridCtrl.autoload = !1, a.gridCtrl.remotePage = !1, a.gridCtrl.selectable = g(!0), a.gridCtrl.buttons = g([]), a.gridCtrl.tools = [];
1588
1602
  const d = ({ disabled: s, selectedKeys: u, onItemSelectAll: l, onItemSelect: i }) => ({
1589
- getCheckboxProps: (_) => ({
1603
+ getCheckboxProps: (m) => ({
1590
1604
  // 控制是否禁止
1591
- disabled: s || _.disabled
1605
+ disabled: s || m.disabled
1592
1606
  }),
1593
- onSelectAll(_, x) {
1594
- const T = x.filter((P) => !P.disabled).map(({ [c.value]: P }) => P);
1595
- l(T, _);
1607
+ onSelectAll(m, x) {
1608
+ const S = x.filter((F) => !F.disabled).map(({ [p.value]: F }) => F);
1609
+ l(S, m);
1596
1610
  },
1597
- onSelect({ [c.value]: _ }, x) {
1598
- i(_, x);
1611
+ onSelect({ [p.value]: m }, x) {
1612
+ i(m, x);
1599
1613
  },
1600
1614
  selectedRowKeys: u
1601
- }), f = g([]);
1602
- return z(async () => {
1603
- if (r.value) {
1615
+ }), c = g([]);
1616
+ return K(async () => {
1617
+ if (o.value) {
1604
1618
  const s = await Ie(a.gridCtrl, {
1605
1619
  urlKey: "list",
1606
1620
  url: { ...a.gridCtrl.gridUrl, url: a.gridCtrl.gridUrl.url },
1607
1621
  params: a.gridCtrl.gridQuery,
1608
1622
  loadingText: !1
1609
1623
  });
1610
- f.value = (s == null ? void 0 : s.data) ?? [];
1624
+ c.value = (s == null ? void 0 : s.data) ?? [];
1611
1625
  }
1612
- }), (s, u) => (p(), h(Gt, B({
1613
- "data-source": f.value,
1614
- "row-key": (l) => l[c.value],
1626
+ }), (s, u) => (f(), h(Xt, B({
1627
+ "data-source": c.value,
1628
+ "row-key": (l) => l[p.value],
1615
1629
  value: n.value,
1616
1630
  "onUpdate:value": u[0] || (u[0] = (l) => n.value = l),
1617
1631
  "list-style": {
@@ -1621,30 +1635,30 @@ const Sa = /* @__PURE__ */ k({
1621
1635
  "show-select-all": !1,
1622
1636
  "show-search": !0,
1623
1637
  "filter-option": (l, i) => {
1624
- for (const _ of a.gridCtrl.columns.value)
1625
- if (i[_.dataIndex].toString().indexOf(l) !== -1)
1638
+ for (const m of a.gridCtrl.columns.value)
1639
+ if (i[m.dataIndex].toString().indexOf(l) !== -1)
1626
1640
  return !0;
1627
1641
  return !1;
1628
1642
  }
1629
1643
  }, s.$attrs), {
1630
- children: m(({ filteredItems: l, onItemSelectAll: i, onItemSelect: _, selectedKeys: x }) => [
1644
+ children: _(({ filteredItems: l, onItemSelectAll: i, onItemSelect: m, selectedKeys: x }) => [
1631
1645
  b(e(Ne), {
1632
1646
  columns: v.gridCtrl.columns.value,
1633
- "row-key": c.value,
1647
+ "row-key": p.value,
1634
1648
  "row-selection": d({
1635
1649
  disabled: !1,
1636
1650
  selectedKeys: x,
1637
1651
  onItemSelectAll: i,
1638
- onItemSelect: _
1652
+ onItemSelect: m
1639
1653
  }),
1640
1654
  bordered: !1,
1641
1655
  size: "small",
1642
1656
  "data-source": l,
1643
1657
  scroll: { x: 300 },
1644
- "custom-row": (T) => ({
1658
+ "custom-row": (S) => ({
1645
1659
  onClick: () => {
1646
- const P = T[c.value];
1647
- _(P, !x.includes(P));
1660
+ const F = S[p.value];
1661
+ m(F, !x.includes(F));
1648
1662
  }
1649
1663
  })
1650
1664
  }, null, 8, ["columns", "row-key", "row-selection", "data-source", "custom-row"])
@@ -1652,7 +1666,7 @@ const Sa = /* @__PURE__ */ k({
1652
1666
  _: 1
1653
1667
  }, 16, ["data-source", "row-key", "value", "filter-option"]));
1654
1668
  }
1655
- }), Xt = /* @__PURE__ */ k({
1669
+ }), Zt = /* @__PURE__ */ C({
1656
1670
  __name: "index",
1657
1671
  props: {
1658
1672
  multiple: {
@@ -1669,10 +1683,10 @@ const Sa = /* @__PURE__ */ k({
1669
1683
  }
1670
1684
  },
1671
1685
  emits: ["change", "update:value"],
1672
- setup(v, { emit: o }) {
1673
- const a = v, t = a.treeCtrl, r = K(), { errInfo: n, labelText: c } = r, d = o;
1674
- r.inputEmit = d;
1675
- const f = g([]), s = g();
1686
+ setup(v, { emit: r }) {
1687
+ const a = v, t = a.treeCtrl, o = O(), { errInfo: n, labelText: p } = o, d = r;
1688
+ o.inputEmit = d;
1689
+ const c = g([]), s = g();
1676
1690
  $(
1677
1691
  () => a.value,
1678
1692
  (l) => {
@@ -1682,58 +1696,58 @@ const Sa = /* @__PURE__ */ k({
1682
1696
  ), $(
1683
1697
  () => t.data.value,
1684
1698
  (l) => {
1685
- l && (f.value = t.fieldMap ? ee(t.fieldMap, l) : l);
1699
+ l && (c.value = t.fieldMap ? ee(t.fieldMap, l) : l);
1686
1700
  },
1687
1701
  { immediate: !0 }
1688
1702
  );
1689
1703
  const u = (l) => {
1690
1704
  a.multiple ? s.value = l ?? [] : s.value = l ?? "", d("change", s.value), d("update:value", s.value);
1691
1705
  };
1692
- return z(() => {
1706
+ return K(() => {
1693
1707
  t.fieldMap || (t.fieldMap = {
1694
1708
  label: "Name",
1695
1709
  key: "Id",
1696
1710
  value: "Id"
1697
- }), t.data.value ? f.value = t.fieldMap ? ee(t.fieldMap, t.data.value) : t.data.value : a.treeCtrl.autoload && De(a.treeCtrl);
1711
+ }), t.data.value ? c.value = t.fieldMap ? ee(t.fieldMap, t.data.value) : t.data.value : a.treeCtrl.autoload && De(a.treeCtrl);
1698
1712
  }), (l, i) => {
1699
- var _;
1700
- return p(), h(e(ct), B({
1701
- class: [[(_ = e(n)) == null ? void 0 : _.errClass], "w-full"],
1713
+ var m;
1714
+ return f(), h(e(pt), B({
1715
+ class: [[(m = e(n)) == null ? void 0 : m.errClass], "w-full"],
1702
1716
  "tree-line": "",
1703
1717
  multiple: v.multiple,
1704
1718
  "tree-default-expanded-keys": ["-"],
1705
1719
  value: s.value,
1706
1720
  "onUpdate:value": i[0] || (i[0] = (x) => s.value = x),
1707
- "tree-data": f.value,
1708
- placeholder: "请选择" + e(c),
1721
+ "tree-data": c.value,
1722
+ placeholder: "请选择" + e(p),
1709
1723
  "allow-clear": !0,
1710
1724
  onChange: u
1711
1725
  }, l.$attrs), null, 16, ["class", "multiple", "value", "tree-data", "placeholder"]);
1712
1726
  };
1713
1727
  }
1714
- }), za = /* @__PURE__ */ V(Xt, [["__scopeId", "data-v-64be74cc"]]), Zt = { class: "relative h-[calc(100vh-80px)] overflow-y-auto" }, ea = { class: "flex w-full h-full min-h-full" }, ta = {
1728
+ }), Oa = /* @__PURE__ */ j(Zt, [["__scopeId", "data-v-64be74cc"]]), ea = { class: "relative h-[calc(100vh-80px)] overflow-y-auto" }, ta = { class: "flex w-full h-full min-h-full" }, aa = {
1715
1729
  key: 0,
1716
1730
  class: "w-1/4 pr-4 min-h-full min-w-[170px] max-w-[200px]"
1717
- }, aa = { class: "flex-1 h-full overflow-y-auto" }, Ka = /* @__PURE__ */ k({
1731
+ }, la = { class: "flex-1 h-full overflow-y-auto" }, Aa = /* @__PURE__ */ C({
1718
1732
  __name: "index",
1719
1733
  props: {
1720
1734
  left: { type: Boolean }
1721
1735
  },
1722
1736
  setup(v) {
1723
- const { useToken: o } = Be, { token: a } = o();
1724
- return (t, r) => (p(), w("div", Zt, [
1725
- b(e(pt), {
1737
+ const { useToken: r } = Be, { token: a } = r();
1738
+ return (t, o) => (f(), w("div", ea, [
1739
+ b(e(ft), {
1726
1740
  class: "m-[10px] p-[10px] h-[calc(100vh-100px)] !min-h-[calc(100vh-100px)]",
1727
- style: se({
1741
+ style: ne({
1728
1742
  backgroundColor: e(a).colorBgContainer
1729
1743
  })
1730
1744
  }, {
1731
- default: m(() => [
1732
- S("div", ea, [
1733
- t.left ? (p(), w("div", ta, [
1745
+ default: _(() => [
1746
+ T("div", ta, [
1747
+ t.left ? (f(), w("div", aa, [
1734
1748
  I(t.$slots, "left")
1735
- ])) : C("", !0),
1736
- S("div", aa, [
1749
+ ])) : k("", !0),
1750
+ T("div", la, [
1737
1751
  I(t.$slots, "default")
1738
1752
  ])
1739
1753
  ])
@@ -1742,63 +1756,63 @@ const Sa = /* @__PURE__ */ k({
1742
1756
  }, 8, ["style"])
1743
1757
  ]));
1744
1758
  }
1745
- }), la = { class: "font-['Courier'] text-[#666]" }, Aa = /* @__PURE__ */ k({
1759
+ }), ra = { class: "font-['Courier'] text-[#666]" }, Ea = /* @__PURE__ */ C({
1746
1760
  __name: "index",
1747
1761
  setup(v) {
1748
- const o = g("");
1749
- return z(() => {
1762
+ const r = g("");
1763
+ return K(() => {
1750
1764
  setInterval(() => {
1751
- const a = /* @__PURE__ */ new Date(), t = { month: "2-digit", day: "2-digit", hour: "2-digit", minute: "2-digit", second: "2-digit" }, r = a.toLocaleString(void 0, t).replace(/\//g, "-").replace(",", "");
1752
- o.value = a.getFullYear() + "-" + r;
1765
+ const a = /* @__PURE__ */ new Date(), t = { month: "2-digit", day: "2-digit", hour: "2-digit", minute: "2-digit", second: "2-digit" }, o = a.toLocaleString(void 0, t).replace(/\//g, "-").replace(",", "");
1766
+ r.value = a.getFullYear() + "-" + o;
1753
1767
  }, 1e3);
1754
- }), (a, t) => (p(), w("div", la, D(o.value), 1));
1768
+ }), (a, t) => (f(), w("div", ra, D(r.value), 1));
1755
1769
  }
1756
1770
  });
1757
1771
  export {
1758
- qa as AppIcon,
1759
- ka as AutoComplete,
1760
- Qa as Breadcrumb,
1761
- O as Button,
1762
- wa as Cascader,
1763
- $a as Checkbox,
1764
- Ka as Content,
1765
- Sa as DatePicker,
1766
- Aa as Datetime,
1767
- La as Dialog,
1768
- ha as Drawer,
1769
- ga as Form,
1770
- xa as FormItem,
1771
- ma as Fullscreen,
1772
- Va as Header,
1773
- Ha as HeaderExits,
1774
- bt as Helper,
1775
- Wa as Icon,
1776
- Ft as Icontool,
1777
- qt as Input,
1778
- Ta as InputIcon,
1779
- Ia as InputNumber,
1780
- Da as InputPassword,
1781
- _a as LayoutIcon,
1782
- Ja as Menu,
1783
- Ga as MenuTabs,
1784
- Xa as ProjectIcon,
1785
- Ba as PropEditor,
1786
- Jt as Radio,
1772
+ Va as AppIcon,
1773
+ wa as AutoComplete,
1774
+ ja as Breadcrumb,
1775
+ z as Button,
1776
+ $a as Cascader,
1777
+ Sa as Checkbox,
1778
+ Aa as Content,
1779
+ Ta as DatePicker,
1780
+ Ea as Datetime,
1781
+ Ra as Dialog,
1782
+ ga as Drawer,
1783
+ xa as Form,
1784
+ ya as FormItem,
1785
+ _a as Fullscreen,
1786
+ Ha as Header,
1787
+ Wa as HeaderExits,
1788
+ kt as Helper,
1789
+ Ja as Icon,
1790
+ Nt as Icontool,
1791
+ Vt as Input,
1792
+ Da as InputIcon,
1793
+ Ba as InputNumber,
1794
+ Ia as InputPassword,
1795
+ ha as LayoutIcon,
1796
+ Ga as Menu,
1797
+ Xa as MenuTabs,
1798
+ Za as ProjectIcon,
1799
+ Fa as PropEditor,
1800
+ Gt as Radio,
1787
1801
  Pa as RadioStatus,
1788
1802
  Ma as RangePicker,
1789
- ya as Search,
1803
+ ba as Search,
1790
1804
  le as SearchItem,
1791
- Fa as Select,
1792
- At as Switch,
1793
- ba as Table,
1805
+ Na as Select,
1806
+ Et as Switch,
1807
+ ka as Table,
1794
1808
  Pt as TableOperate,
1795
- Na as Textarea,
1809
+ za as Textarea,
1796
1810
  Y as ToolIcon,
1797
- Kt as Toolbar,
1798
- Ua as Tooltip,
1799
- Gt as Transfer,
1800
- Oa as TransferTable,
1811
+ At as Toolbar,
1812
+ qa as Tooltip,
1813
+ Xt as Transfer,
1814
+ Ka as TransferTable,
1801
1815
  Ca as Tree,
1802
- za as TreeSelect,
1803
- el as UploadList
1816
+ Oa as TreeSelect,
1817
+ tl as UploadList
1804
1818
  };