vue-2024-ui 0.1.27 → 0.1.28

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/dist/index.es.js CHANGED
@@ -1,9 +1,9 @@
1
- import Bt, { ElForm as it, ElButtonGroup as dt, ElButton as Me, ElPopover as vt, ElMessage as Ye, ElMessageBox as Vt, ElDialog as Yt, ElDrawer as Ut } from "element-plus";
2
- import { mergeModels as Pe, useModel as Ne, ref as te, nextTick as et, onMounted as ot, computed as Je, resolveComponent as B, openBlock as u, createElementBlock as F, Fragment as X, createElementVNode as W, createBlock as C, createCommentVNode as me, unref as j, mergeProps as x, withCtx as h, renderSlot as y, renderList as L, createTextVNode as Se, toDisplayString as be, createSlots as ce, createVNode as G, normalizeStyle as Fe, normalizeProps as yt, useSlots as xt, inject as Et, useAttrs as _t, onUnmounted as Rt, withModifiers as ft, resolveDynamicComponent as Be, guardReactiveProps as jt, Transition as Lt, withDirectives as zt, vShow as Ht, h as Ie, onBeforeUnmount as Pt, normalizeClass as St, watchEffect as Nt, getCurrentInstance as Wt, watch as Xt, createApp as Gt } from "vue";
3
- import { Plus as Qt, ZoomIn as Zt, Delete as Jt, DocumentCopy as Kt, FullScreen as el, CopyDocument as tl } from "@element-plus/icons-vue";
4
- import Tt from "sortablejs";
5
- import { Dexie as ll } from "dexie";
6
- var al = {
1
+ import Yt, { ElForm as dt, ElButtonGroup as ft, ElButton as Me, ElPopover as ht, ElMessage as Ue, ElMessageBox as xt, ElDialog as Ut, ElDrawer as Rt } from "element-plus";
2
+ import { mergeModels as Ne, useModel as We, ref as te, nextTick as tt, onMounted as rt, computed as Ke, resolveComponent as I, openBlock as u, createElementBlock as F, Fragment as X, createElementVNode as W, createBlock as D, createCommentVNode as me, unref as j, mergeProps as T, withCtx as h, renderSlot as y, renderList as L, createTextVNode as Te, toDisplayString as be, createSlots as ce, createVNode as G, normalizeStyle as Se, normalizeProps as gt, useSlots as Tt, inject as _t, useAttrs as kt, onUnmounted as jt, withModifiers as ct, resolveDynamicComponent as Ye, guardReactiveProps as Lt, Transition as zt, withDirectives as Ht, vShow as Pt, h as Ae, onBeforeUnmount as Nt, normalizeClass as St, watchEffect as Wt, getCurrentInstance as Xt, onActivated as Gt, watch as Qt, createApp as Zt } from "vue";
3
+ import { Plus as Jt, ZoomIn as Kt, Delete as el, DocumentCopy as tl, FullScreen as ll, CopyDocument as al } from "@element-plus/icons-vue";
4
+ import Ft from "sortablejs";
5
+ import { Dexie as ol } from "dexie";
6
+ var rl = {
7
7
  name: "zh-cn",
8
8
  el: {
9
9
  breadcrumb: {
@@ -181,16 +181,16 @@ var al = {
181
181
  indicator: "幻灯片切换至索引 {index}"
182
182
  }
183
183
  }
184
- }, ol = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
185
- function rl(f) {
184
+ }, ul = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
185
+ function nl(f) {
186
186
  return f && f.__esModule && Object.prototype.hasOwnProperty.call(f, "default") ? f.default : f;
187
187
  }
188
- var Ft = { exports: {} };
188
+ var qt = { exports: {} };
189
189
  (function(f, i) {
190
190
  (function(o, t) {
191
191
  f.exports = t();
192
- })(ol, function() {
193
- var o = 1e3, t = 6e4, e = 36e5, d = "millisecond", k = "second", S = "minute", V = "hour", D = "day", w = "week", H = "month", K = "quarter", U = "year", Y = "date", ie = "Invalid Date", ee = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, re = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, ue = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(p) {
192
+ })(ul, function() {
193
+ var o = 1e3, t = 6e4, e = 36e5, d = "millisecond", k = "second", S = "minute", x = "hour", M = "day", w = "week", z = "month", K = "quarter", U = "year", B = "date", ie = "Invalid Date", ee = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, re = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, ue = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(p) {
194
194
  var s = ["th", "st", "nd", "rd"], a = p % 100;
195
195
  return "[" + p + (s[(a - 20) % 10] || s[a] || s[0]) + "]";
196
196
  } }, we = function(p, s, a) {
@@ -201,17 +201,17 @@ var Ft = { exports: {} };
201
201
  return (s <= 0 ? "+" : "-") + we(_, 2, "0") + ":" + we(n, 2, "0");
202
202
  }, m: function p(s, a) {
203
203
  if (s.date() < a.date()) return -p(a, s);
204
- var _ = 12 * (a.year() - s.year()) + (a.month() - s.month()), n = s.clone().add(_, H), b = a - n < 0, M = s.clone().add(_ + (b ? -1 : 1), H);
205
- return +(-(_ + (a - n) / (b ? n - M : M - n)) || 0);
204
+ var _ = 12 * (a.year() - s.year()) + (a.month() - s.month()), n = s.clone().add(_, z), b = a - n < 0, V = s.clone().add(_ + (b ? -1 : 1), z);
205
+ return +(-(_ + (a - n) / (b ? n - V : V - n)) || 0);
206
206
  }, a: function(p) {
207
207
  return p < 0 ? Math.ceil(p) || 0 : Math.floor(p);
208
208
  }, p: function(p) {
209
- return { M: H, y: U, w, d: D, D: Y, h: V, m: S, s: k, ms: d, Q: K }[p] || String(p || "").toLowerCase().replace(/s$/, "");
209
+ return { M: z, y: U, w, d: M, D: B, h: x, m: S, s: k, ms: d, Q: K }[p] || String(p || "").toLowerCase().replace(/s$/, "");
210
210
  }, u: function(p) {
211
211
  return p === void 0;
212
212
  } }, pe = "en", de = {};
213
213
  de[pe] = ue;
214
- var ne = "$isDayjsObject", le = function(p) {
214
+ var ne = "$isDayjsObject", ae = function(p) {
215
215
  return p instanceof E || !(!p || !p[ne]);
216
216
  }, $e = function p(s, a, _) {
217
217
  var n;
@@ -219,19 +219,19 @@ var Ft = { exports: {} };
219
219
  if (typeof s == "string") {
220
220
  var b = s.toLowerCase();
221
221
  de[b] && (n = b), a && (de[b] = a, n = b);
222
- var M = s.split("-");
223
- if (!n && M.length > 1) return p(M[0]);
222
+ var V = s.split("-");
223
+ if (!n && V.length > 1) return p(V[0]);
224
224
  } else {
225
225
  var q = s.name;
226
226
  de[q] = s, n = q;
227
227
  }
228
228
  return !_ && n && (pe = n), n || !_ && pe;
229
229
  }, se = function(p, s) {
230
- if (le(p)) return p.clone();
230
+ if (ae(p)) return p.clone();
231
231
  var a = typeof s == "object" ? s : {};
232
232
  return a.date = p, a.args = arguments, new E(a);
233
233
  }, g = he;
234
- g.l = $e, g.i = le, g.w = function(p, s) {
234
+ g.l = $e, g.i = ae, g.w = function(p, s) {
235
235
  return se(p, { locale: s.$L, utc: s.$u, x: s.$x, $offset: s.$offset });
236
236
  };
237
237
  var E = function() {
@@ -246,10 +246,10 @@ var Ft = { exports: {} };
246
246
  if (g.u(n)) return /* @__PURE__ */ new Date();
247
247
  if (n instanceof Date) return new Date(n);
248
248
  if (typeof n == "string" && !/Z$/i.test(n)) {
249
- var M = n.match(ee);
250
- if (M) {
251
- var q = M[2] - 1 || 0, ae = (M[7] || "0").substring(0, 3);
252
- return b ? new Date(Date.UTC(M[1], q, M[3] || 1, M[4] || 0, M[5] || 0, M[6] || 0, ae)) : new Date(M[1], q, M[3] || 1, M[4] || 0, M[5] || 0, M[6] || 0, ae);
249
+ var V = n.match(ee);
250
+ if (V) {
251
+ var q = V[2] - 1 || 0, oe = (V[7] || "0").substring(0, 3);
252
+ return b ? new Date(Date.UTC(V[1], q, V[3] || 1, V[4] || 0, V[5] || 0, V[6] || 0, oe)) : new Date(V[1], q, V[3] || 1, V[4] || 0, V[5] || 0, V[6] || 0, oe);
253
253
  }
254
254
  }
255
255
  return new Date(n);
@@ -275,40 +275,40 @@ var Ft = { exports: {} };
275
275
  }, s.valueOf = function() {
276
276
  return this.$d.getTime();
277
277
  }, s.startOf = function(a, _) {
278
- var n = this, b = !!g.u(_) || _, M = g.p(a), q = function(De, ye) {
279
- var qe = g.w(n.$u ? Date.UTC(n.$y, ye, De) : new Date(n.$y, ye, De), n);
280
- return b ? qe : qe.endOf(D);
281
- }, ae = function(De, ye) {
278
+ var n = this, b = !!g.u(_) || _, V = g.p(a), q = function(De, ye) {
279
+ var Fe = g.w(n.$u ? Date.UTC(n.$y, ye, De) : new Date(n.$y, ye, De), n);
280
+ return b ? Fe : Fe.endOf(M);
281
+ }, oe = function(De, ye) {
282
282
  return g.w(n.toDate()[De].apply(n.toDate("s"), (b ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(ye)), n);
283
283
  }, fe = this.$W, R = this.$M, O = this.$D, Ce = "set" + (this.$u ? "UTC" : "");
284
- switch (M) {
284
+ switch (V) {
285
285
  case U:
286
286
  return b ? q(1, 0) : q(31, 11);
287
- case H:
287
+ case z:
288
288
  return b ? q(1, R) : q(0, R + 1);
289
289
  case w:
290
290
  var _e = this.$locale().weekStart || 0, Ve = (fe < _e ? fe + 7 : fe) - _e;
291
291
  return q(b ? O - Ve : O + (6 - Ve), R);
292
- case D:
293
- case Y:
294
- return ae(Ce + "Hours", 0);
295
- case V:
296
- return ae(Ce + "Minutes", 1);
292
+ case M:
293
+ case B:
294
+ return oe(Ce + "Hours", 0);
295
+ case x:
296
+ return oe(Ce + "Minutes", 1);
297
297
  case S:
298
- return ae(Ce + "Seconds", 2);
298
+ return oe(Ce + "Seconds", 2);
299
299
  case k:
300
- return ae(Ce + "Milliseconds", 3);
300
+ return oe(Ce + "Milliseconds", 3);
301
301
  default:
302
302
  return this.clone();
303
303
  }
304
304
  }, s.endOf = function(a) {
305
305
  return this.startOf(a, !1);
306
306
  }, s.$set = function(a, _) {
307
- var n, b = g.p(a), M = "set" + (this.$u ? "UTC" : ""), q = (n = {}, n[D] = M + "Date", n[Y] = M + "Date", n[H] = M + "Month", n[U] = M + "FullYear", n[V] = M + "Hours", n[S] = M + "Minutes", n[k] = M + "Seconds", n[d] = M + "Milliseconds", n)[b], ae = b === D ? this.$D + (_ - this.$W) : _;
308
- if (b === H || b === U) {
309
- var fe = this.clone().set(Y, 1);
310
- fe.$d[q](ae), fe.init(), this.$d = fe.set(Y, Math.min(this.$D, fe.daysInMonth())).$d;
311
- } else q && this.$d[q](ae);
307
+ var n, b = g.p(a), V = "set" + (this.$u ? "UTC" : ""), q = (n = {}, n[M] = V + "Date", n[B] = V + "Date", n[z] = V + "Month", n[U] = V + "FullYear", n[x] = V + "Hours", n[S] = V + "Minutes", n[k] = V + "Seconds", n[d] = V + "Milliseconds", n)[b], oe = b === M ? this.$D + (_ - this.$W) : _;
308
+ if (b === z || b === U) {
309
+ var fe = this.clone().set(B, 1);
310
+ fe.$d[q](oe), fe.init(), this.$d = fe.set(B, Math.min(this.$D, fe.daysInMonth())).$d;
311
+ } else q && this.$d[q](oe);
312
312
  return this.init(), this;
313
313
  }, s.set = function(a, _) {
314
314
  return this.clone().$set(a, _);
@@ -317,32 +317,32 @@ var Ft = { exports: {} };
317
317
  }, s.add = function(a, _) {
318
318
  var n, b = this;
319
319
  a = Number(a);
320
- var M = g.p(_), q = function(R) {
320
+ var V = g.p(_), q = function(R) {
321
321
  var O = se(b);
322
322
  return g.w(O.date(O.date() + Math.round(R * a)), b);
323
323
  };
324
- if (M === H) return this.set(H, this.$M + a);
325
- if (M === U) return this.set(U, this.$y + a);
326
- if (M === D) return q(1);
327
- if (M === w) return q(7);
328
- var ae = (n = {}, n[S] = t, n[V] = e, n[k] = o, n)[M] || 1, fe = this.$d.getTime() + a * ae;
324
+ if (V === z) return this.set(z, this.$M + a);
325
+ if (V === U) return this.set(U, this.$y + a);
326
+ if (V === M) return q(1);
327
+ if (V === w) return q(7);
328
+ var oe = (n = {}, n[S] = t, n[x] = e, n[k] = o, n)[V] || 1, fe = this.$d.getTime() + a * oe;
329
329
  return g.w(fe, this);
330
330
  }, s.subtract = function(a, _) {
331
331
  return this.add(-1 * a, _);
332
332
  }, s.format = function(a) {
333
333
  var _ = this, n = this.$locale();
334
334
  if (!this.isValid()) return n.invalidDate || ie;
335
- var b = a || "YYYY-MM-DDTHH:mm:ssZ", M = g.z(this), q = this.$H, ae = this.$m, fe = this.$M, R = n.weekdays, O = n.months, Ce = n.meridiem, _e = function(ye, qe, Ae, Ue) {
336
- return ye && (ye[qe] || ye(_, b)) || Ae[qe].slice(0, Ue);
335
+ var b = a || "YYYY-MM-DDTHH:mm:ssZ", V = g.z(this), q = this.$H, oe = this.$m, fe = this.$M, R = n.weekdays, O = n.months, Ce = n.meridiem, _e = function(ye, Fe, Ie, Re) {
336
+ return ye && (ye[Fe] || ye(_, b)) || Ie[Fe].slice(0, Re);
337
337
  }, Ve = function(ye) {
338
338
  return g.s(q % 12 || 12, ye, "0");
339
- }, De = Ce || function(ye, qe, Ae) {
340
- var Ue = ye < 12 ? "AM" : "PM";
341
- return Ae ? Ue.toLowerCase() : Ue;
339
+ }, De = Ce || function(ye, Fe, Ie) {
340
+ var Re = ye < 12 ? "AM" : "PM";
341
+ return Ie ? Re.toLowerCase() : Re;
342
342
  };
343
- return b.replace(re, function(ye, qe) {
344
- return qe || function(Ae) {
345
- switch (Ae) {
343
+ return b.replace(re, function(ye, Fe) {
344
+ return Fe || function(Ie) {
345
+ switch (Ie) {
346
346
  case "YY":
347
347
  return String(_.$y).slice(-2);
348
348
  case "YYYY":
@@ -376,13 +376,13 @@ var Ft = { exports: {} };
376
376
  case "hh":
377
377
  return Ve(2);
378
378
  case "a":
379
- return De(q, ae, !0);
379
+ return De(q, oe, !0);
380
380
  case "A":
381
- return De(q, ae, !1);
381
+ return De(q, oe, !1);
382
382
  case "m":
383
- return String(ae);
383
+ return String(oe);
384
384
  case "mm":
385
- return g.s(ae, 2, "0");
385
+ return g.s(oe, 2, "0");
386
386
  case "s":
387
387
  return String(_.$s);
388
388
  case "ss":
@@ -390,22 +390,22 @@ var Ft = { exports: {} };
390
390
  case "SSS":
391
391
  return g.s(_.$ms, 3, "0");
392
392
  case "Z":
393
- return M;
393
+ return V;
394
394
  }
395
395
  return null;
396
- }(ye) || M.replace(":", "");
396
+ }(ye) || V.replace(":", "");
397
397
  });
398
398
  }, s.utcOffset = function() {
399
399
  return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
400
400
  }, s.diff = function(a, _, n) {
401
- var b, M = this, q = g.p(_), ae = se(a), fe = (ae.utcOffset() - this.utcOffset()) * t, R = this - ae, O = function() {
402
- return g.m(M, ae);
401
+ var b, V = this, q = g.p(_), oe = se(a), fe = (oe.utcOffset() - this.utcOffset()) * t, R = this - oe, O = function() {
402
+ return g.m(V, oe);
403
403
  };
404
404
  switch (q) {
405
405
  case U:
406
406
  b = O() / 12;
407
407
  break;
408
- case H:
408
+ case z:
409
409
  b = O();
410
410
  break;
411
411
  case K:
@@ -414,10 +414,10 @@ var Ft = { exports: {} };
414
414
  case w:
415
415
  b = (R - fe) / 6048e5;
416
416
  break;
417
- case D:
417
+ case M:
418
418
  b = (R - fe) / 864e5;
419
419
  break;
420
- case V:
420
+ case x:
421
421
  b = R / e;
422
422
  break;
423
423
  case S:
@@ -431,7 +431,7 @@ var Ft = { exports: {} };
431
431
  }
432
432
  return n ? b : g.a(b);
433
433
  }, s.daysInMonth = function() {
434
- return this.endOf(H).$D;
434
+ return this.endOf(z).$D;
435
435
  }, s.$locale = function() {
436
436
  return de[this.$L];
437
437
  }, s.locale = function(a, _) {
@@ -450,19 +450,19 @@ var Ft = { exports: {} };
450
450
  return this.$d.toUTCString();
451
451
  }, p;
452
452
  }(), v = E.prototype;
453
- return se.prototype = v, [["$ms", d], ["$s", k], ["$m", S], ["$H", V], ["$W", D], ["$M", H], ["$y", U], ["$D", Y]].forEach(function(p) {
453
+ return se.prototype = v, [["$ms", d], ["$s", k], ["$m", S], ["$H", x], ["$W", M], ["$M", z], ["$y", U], ["$D", B]].forEach(function(p) {
454
454
  v[p[1]] = function(s) {
455
455
  return this.$g(s, p[0], p[1]);
456
456
  };
457
457
  }), se.extend = function(p, s) {
458
458
  return p.$i || (p(s, E, se), p.$i = !0), se;
459
- }, se.locale = $e, se.isDayjs = le, se.unix = function(p) {
459
+ }, se.locale = $e, se.isDayjs = ae, se.unix = function(p) {
460
460
  return se(1e3 * p);
461
461
  }, se.en = de[pe], se.Ls = de, se.p = {}, se;
462
462
  });
463
- })(Ft);
464
- var ul = Ft.exports;
465
- const ht = /* @__PURE__ */ rl(ul), qt = {
463
+ })(qt);
464
+ var sl = qt.exports;
465
+ const yt = /* @__PURE__ */ nl(sl), Ot = {
466
466
  inline: !0,
467
467
  type: "hidden",
468
468
  "scroll-to-error": !0,
@@ -504,32 +504,32 @@ const ht = /* @__PURE__ */ rl(ul), qt = {
504
504
  type: "card",
505
505
  editable: !1
506
506
  }
507
- }, We = (f, i) => {
507
+ }, Xe = (f, i) => {
508
508
  const o = f.__vccOpts || f;
509
509
  for (const [t, e] of i)
510
510
  o[t] = e;
511
511
  return o;
512
- }, nl = {
512
+ }, il = {
513
513
  style: { display: "flex", width: "100%" },
514
514
  class: "g-ctrl-container"
515
- }, sl = { style: { width: "var(--up-width)", height: "var(--up-height)", position: "relative", "box-sizing": "border-box" } }, il = {
515
+ }, dl = { style: { width: "var(--up-width)", height: "var(--up-height)", position: "relative", "box-sizing": "border-box" } }, fl = {
516
516
  key: 19,
517
517
  style: { position: "relative" }
518
- }, dl = ["title"], fl = { key: 22 }, cl = ["innerHTML"], ml = ["innerHTML"], pl = ["innerHTML"], vl = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
518
+ }, cl = ["title"], ml = { key: 22 }, pl = ["innerHTML"], vl = ["innerHTML"], hl = ["innerHTML"], yl = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
519
519
  __name: "g-ctrl",
520
- props: /* @__PURE__ */ Pe(["t", "ctrlKey", "item", "model", "ctrlType", "formInfo"], {
520
+ props: /* @__PURE__ */ Ne(["t", "ctrlKey", "item", "model", "ctrlType", "formInfo"], {
521
521
  modelValue: { required: !0 },
522
522
  modelModifiers: {}
523
523
  }),
524
524
  emits: ["update:modelValue"],
525
525
  setup(f) {
526
526
  var $e, se;
527
- const i = Ne(f, "modelValue"), o = f, t = te(o.item || {}), e = te(o.ctrlKey), d = te(o.ctrlType), k = te(o.model), S = te([]), V = te([]), D = te(!1), w = te(!1), H = () => Object.keys(xt()).filter((g) => g.startsWith(`${o.t}-${e}-`)).map((g) => g.replace(`${o.t}-${e}-`, "")), K = te({
527
+ const i = We(f, "modelValue"), o = f, t = te(o.item || {}), e = te(o.ctrlKey), d = te(o.ctrlType), k = te(o.model), S = te([]), x = te([]), M = te(!1), w = te(!1), z = () => Object.keys(Tt()).filter((g) => g.startsWith(`${o.t}-${e}-`)).map((g) => g.replace(`${o.t}-${e}-`, "")), K = te({
528
528
  multiple: !1,
529
529
  "show-file-list": !1,
530
530
  "file-list": [],
531
531
  showDel: ($e = t.value) != null && $e.showDel ? (se = t.value) == null ? void 0 : se.showDel : o.t !== "t"
532
- }), U = te(t.value.innerHtml), Y = (g) => [
532
+ }), U = te(t.value.innerHtml), B = (g) => [
533
533
  "year",
534
534
  "years",
535
535
  "month",
@@ -562,8 +562,8 @@ const ht = /* @__PURE__ */ rl(ul), qt = {
562
562
  ...t.value
563
563
  }), re = te((g) => {
564
564
  t.value["remote-method"](g, (E) => {
565
- et(() => {
566
- V.value = E;
565
+ tt(() => {
566
+ x.value = E;
567
567
  });
568
568
  });
569
569
  }), ue = async (g = "options") => {
@@ -571,14 +571,14 @@ const ht = /* @__PURE__ */ rl(ul), qt = {
571
571
  try {
572
572
  const v = await ((E = t.value) == null ? void 0 : E.getDicts(o.formInfo));
573
573
  if (typeof v == "string")
574
- V.value = [{ label: v, value: i.value }];
574
+ x.value = [{ label: v, value: i.value }];
575
575
  else {
576
576
  const p = v == null ? void 0 : v.map((s, a) => ({
577
577
  ...s,
578
578
  value: s.value ?? s.label ?? a,
579
579
  label: s.label || "未知选项"
580
580
  }));
581
- V.value = p || [];
581
+ x.value = p || [];
582
582
  }
583
583
  } catch (v) {
584
584
  throw console.error("获取选项失败:", v), v;
@@ -589,29 +589,29 @@ const ht = /* @__PURE__ */ rl(ul), qt = {
589
589
  }, he = (g) => {
590
590
  g.preventDefault(), g.stopPropagation(), i.value = "";
591
591
  }, pe = (g) => {
592
- D.value = !0;
592
+ M.value = !0;
593
593
  }, de = (g) => {
594
- g.preventDefault(), g.stopPropagation(), D.value = !0;
594
+ g.preventDefault(), g.stopPropagation(), M.value = !0;
595
595
  }, ne = te(null);
596
- ot(async () => {
596
+ rt(async () => {
597
597
  var v, p, s, a, _;
598
- t.value && t.value["remote-method"] && (ee.value["remote-method"] = re), (p = (v = k.value[e.value]) == null ? void 0 : v.options) != null && p.length && (V.value = k.value[e.value].options);
599
- const g = (n, b = "options", M = k.value[e.value]) => {
598
+ t.value && t.value["remote-method"] && (ee.value["remote-method"] = re), (p = (v = k.value[e.value]) == null ? void 0 : v.options) != null && p.length && (x.value = k.value[e.value].options);
599
+ const g = (n, b = "options", V = k.value[e.value]) => {
600
600
  typeof t.value.getDicts == "function" && ue(b).catch((q) => {
601
601
  console.error(`Failed to load ${b} for ${n}:`, q);
602
602
  });
603
603
  };
604
604
  if (["radio", "radio-button", "checkbox-group", "checkbox-group-button", "select", "cascader"].includes(d.value) && g(d.value), d.value === ge.TREESELECT && await (async () => {
605
605
  try {
606
- typeof t.value.getDicts == "function" ? S.value = await t.value.getDicts(o.formInfo) : S.value = V.value;
606
+ typeof t.value.getDicts == "function" ? S.value = await t.value.getDicts(o.formInfo) : S.value = x.value;
607
607
  } catch (b) {
608
608
  console.error("Failed to load data for tree-select:", b);
609
609
  }
610
610
  })(), o.t == "q") {
611
611
  let n = t.value.type || d.value;
612
612
  (n === void 0 || d.value === "input" || n == ge.NUMBER || n == ge.EMAIL || n == "url" || n == "text") && t.value.onKeyup == null && (t.value.onKeyup = (b) => {
613
- var M, q;
614
- (b.keyCode === 13 || b.key === "Enter") && ((q = (M = k.value) == null ? void 0 : M.table) == null || q.load());
613
+ var V, q;
614
+ (b.keyCode === 13 || b.key === "Enter") && ((q = (V = k.value) == null ? void 0 : V.table) == null || q.load());
615
615
  }), [
616
616
  "radio",
617
617
  "switch",
@@ -629,37 +629,37 @@ const ht = /* @__PURE__ */ rl(ul), qt = {
629
629
  "datetimerange",
630
630
  "week"
631
631
  ].includes(n) && t.value.onChange === void 0 && (t.value.onChange = (b) => {
632
- var M, q;
633
- (q = (M = k.value) == null ? void 0 : M.table) == null || q.load();
632
+ var V, q;
633
+ (q = (V = k.value) == null ? void 0 : V.table) == null || q.load();
634
634
  });
635
635
  }
636
636
  d.value == "image" && (t.value.width && ((s = ne.value) != null && s.$el) && ne.value.$el.style.setProperty("--up-width", typeof t.value.width == "number" ? t.value.width + "px" : t.value.width), t.value.height && ((a = ne.value) != null && a.$el) && ne.value.$el.style.setProperty("--up-height", typeof t.value.height == "number" ? t.value.height + "px" : t.value.height), t.value.fontSize && ((_ = ne.value) != null && _.$el) && ne.value.$el.style.setProperty("--up-font-size", typeof t.value.fontSize == "number" ? t.value.fontSize + "px" : t.value.fontSize));
637
637
  });
638
- const le = Je(() => {
638
+ const ae = Ke(() => {
639
639
  var g;
640
640
  return t.value["file-list"] && t.value["file-list"].length ? (g = t.value["file-list"]) == null ? void 0 : g.map((E) => E == null ? void 0 : E.url) : [i.value];
641
641
  });
642
642
  return (g, E) => {
643
- var N, Z, Ee, ke, Re, je, Le, Xe, lt;
644
- const v = B("el-image-viewer"), p = B("el-radio"), s = B("el-radio-group"), a = B("el-radio-button"), _ = B("el-checkbox"), n = B("el-checkbox-group"), b = B("el-checkbox-button"), M = B("g-select-option"), q = B("el-option"), ae = B("el-select"), fe = B("el-tree-select"), R = B("el-time-picker"), O = B("el-time-select"), Ce = B("el-date-picker"), _e = B("el-color-picker"), Ve = B("el-rate"), De = B("el-slider"), ye = B("el-switch"), qe = B("el-transfer"), Ae = B("el-cascader"), Ue = B("el-icon"), rt = B("el-image"), tt = B("el-tooltip"), ut = B("el-upload"), nt = B("el-autocomplete"), st = B("el-input-number"), l = B("el-input"), r = B("el-link"), c = B("el-text"), T = B("el-avatar"), P = B("el-tag");
643
+ var P, N, Z, Ee, ke, je, Le, ze, Ge;
644
+ const v = I("el-image-viewer"), p = I("el-radio"), s = I("el-radio-group"), a = I("el-radio-button"), _ = I("el-checkbox"), n = I("el-checkbox-group"), b = I("el-checkbox-button"), V = I("g-select-option"), q = I("el-option"), oe = I("el-select"), fe = I("el-tree-select"), R = I("el-time-picker"), O = I("el-time-select"), Ce = I("el-date-picker"), _e = I("el-color-picker"), Ve = I("el-rate"), De = I("el-slider"), ye = I("el-switch"), Fe = I("el-transfer"), Ie = I("el-cascader"), Re = I("el-icon"), ut = I("el-image"), lt = I("el-tooltip"), nt = I("el-upload"), st = I("el-autocomplete"), it = I("el-input-number"), at = I("el-input"), l = I("el-link"), r = I("el-text"), c = I("el-avatar"), C = I("el-tag");
645
645
  return u(), F(X, null, [
646
646
  W("div", null, [
647
- D.value ? (u(), C(v, {
647
+ M.value ? (u(), D(v, {
648
648
  key: 0,
649
649
  teleported: !0,
650
- "url-list": le.value,
651
- onClose: E[0] || (E[0] = (m) => D.value = !1)
650
+ "url-list": ae.value,
651
+ onClose: E[0] || (E[0] = (m) => M.value = !1)
652
652
  }, null, 8, ["url-list"])) : me("", !0)
653
653
  ]),
654
- W("div", nl, [
655
- d.value == j(ge).RADIO ? (u(), C(s, x({
654
+ W("div", il, [
655
+ d.value == j(ge).RADIO ? (u(), D(s, T({
656
656
  key: 0,
657
657
  modelValue: i.value,
658
658
  "onUpdate:modelValue": E[1] || (E[1] = (m) => i.value = m)
659
659
  }, t.value), {
660
660
  default: h(() => [
661
661
  y(g.$slots, `${o.t}-${e.value}`, { data: t.value }, () => [
662
- (u(!0), F(X, null, L(V.value, (m) => (u(), C(p, x({ ref_for: !0 }, m), {
662
+ (u(!0), F(X, null, L(x.value, (m) => (u(), D(p, T({ ref_for: !0 }, m), {
663
663
  default: h(() => [
664
664
  y(g.$slots, `${o.t}-${e.value}-options`, { option: m }, void 0, !0)
665
665
  ]),
@@ -668,14 +668,14 @@ const ht = /* @__PURE__ */ rl(ul), qt = {
668
668
  ], !0)
669
669
  ]),
670
670
  _: 3
671
- }, 16, ["modelValue"])) : d.value == j(ge).RADIOBUTTON ? (u(), C(s, x({
671
+ }, 16, ["modelValue"])) : d.value == j(ge).RADIOBUTTON ? (u(), D(s, T({
672
672
  key: 1,
673
673
  modelValue: i.value,
674
674
  "onUpdate:modelValue": E[2] || (E[2] = (m) => i.value = m)
675
675
  }, t.value), {
676
676
  default: h(() => [
677
677
  y(g.$slots, `${o.t}-${e.value}`, { data: t.value }, () => [
678
- (u(!0), F(X, null, L(V.value, (m) => (u(), C(a, x({ ref_for: !0 }, m), {
678
+ (u(!0), F(X, null, L(x.value, (m) => (u(), D(a, T({ ref_for: !0 }, m), {
679
679
  default: h(() => [
680
680
  y(g.$slots, `${o.t}-${e.value}-options`, { option: m }, void 0, !0)
681
681
  ]),
@@ -684,28 +684,28 @@ const ht = /* @__PURE__ */ rl(ul), qt = {
684
684
  ], !0)
685
685
  ]),
686
686
  _: 3
687
- }, 16, ["modelValue"])) : d.value == j(ge).CHECKBOX ? (u(), C(_, x({
687
+ }, 16, ["modelValue"])) : d.value == j(ge).CHECKBOX ? (u(), D(_, T({
688
688
  key: 2,
689
689
  modelValue: i.value,
690
690
  "onUpdate:modelValue": E[3] || (E[3] = (m) => i.value = m)
691
691
  }, t.value), {
692
692
  default: h(() => [
693
693
  y(g.$slots, `${o.t}-${e.value}`, { data: t.value }, () => [
694
- E[27] || (E[27] = Se(be(" ")))
694
+ E[27] || (E[27] = Te(be(" ")))
695
695
  ], !0)
696
696
  ]),
697
697
  _: 3
698
- }, 16, ["modelValue"])) : d.value == j(ge).CHECKBOXGROUP ? (u(), C(n, x({
698
+ }, 16, ["modelValue"])) : d.value == j(ge).CHECKBOXGROUP ? (u(), D(n, T({
699
699
  key: 3,
700
700
  modelValue: i.value,
701
701
  "onUpdate:modelValue": E[4] || (E[4] = (m) => i.value = m)
702
702
  }, t.value), {
703
703
  default: h(() => [
704
704
  y(g.$slots, `${o.t}-${e.value}`, { data: t.value }, () => [
705
- (u(!0), F(X, null, L(V.value, (m) => (u(), C(_, x({ ref_for: !0 }, m), {
705
+ (u(!0), F(X, null, L(x.value, (m) => (u(), D(_, T({ ref_for: !0 }, m), {
706
706
  default: h(() => [
707
707
  y(g.$slots, `${o.t}-${e.value}-options`, { option: m }, () => [
708
- Se(be(m.label), 1)
708
+ Te(be(m.label), 1)
709
709
  ], !0)
710
710
  ]),
711
711
  _: 2
@@ -713,14 +713,14 @@ const ht = /* @__PURE__ */ rl(ul), qt = {
713
713
  ], !0)
714
714
  ]),
715
715
  _: 3
716
- }, 16, ["modelValue"])) : d.value == j(ge).CHECKBOXGROUPBUTTON ? (u(), C(n, x({
716
+ }, 16, ["modelValue"])) : d.value == j(ge).CHECKBOXGROUPBUTTON ? (u(), D(n, T({
717
717
  key: 4,
718
718
  modelValue: i.value,
719
719
  "onUpdate:modelValue": E[5] || (E[5] = (m) => i.value = m)
720
720
  }, t.value), {
721
721
  default: h(() => [
722
722
  y(g.$slots, `${o.t}-${e.value}`, { data: t.value }, () => [
723
- (u(!0), F(X, null, L(V.value, (m) => (u(), C(b, x({ ref_for: !0 }, m), {
723
+ (u(!0), F(X, null, L(x.value, (m) => (u(), D(b, T({ ref_for: !0 }, m), {
724
724
  default: h(() => [
725
725
  y(g.$slots, `${o.t}-${e.value}-options`, { option: m }, void 0, !0)
726
726
  ]),
@@ -729,7 +729,7 @@ const ht = /* @__PURE__ */ rl(ul), qt = {
729
729
  ], !0)
730
730
  ]),
731
731
  _: 3
732
- }, 16, ["modelValue"])) : d.value === j(ge).SELECT ? (u(), C(ae, x({
732
+ }, 16, ["modelValue"])) : d.value === j(ge).SELECT ? (u(), D(oe, T({
733
733
  key: 5,
734
734
  modelValue: i.value,
735
735
  "onUpdate:modelValue": E[6] || (E[6] = (m) => i.value = m),
@@ -740,11 +740,11 @@ const ht = /* @__PURE__ */ rl(ul), qt = {
740
740
  })
741
741
  }, ee.value), ce({
742
742
  default: h(() => [
743
- y(g.$slots, `${o.t}-${e.value}`, { options: V.value }, () => [
744
- (u(!0), F(X, null, L(V.value, (m) => (u(), F(X, {
743
+ y(g.$slots, `${o.t}-${e.value}`, { options: x.value }, () => [
744
+ (u(!0), F(X, null, L(x.value, (m) => (u(), F(X, {
745
745
  key: m.value
746
746
  }, [
747
- G(q, x({ ref_for: !0 }, j(Te)(m, (Q) => Q != "children"), {
747
+ G(q, T({ ref_for: !0 }, j(qe)(m, (Q) => Q != "children"), {
748
748
  onClick: (Q) => {
749
749
  ee.value.change && ee.value.change(m), we();
750
750
  }
@@ -758,17 +758,17 @@ const ht = /* @__PURE__ */ rl(ul), qt = {
758
758
  }, () => {
759
759
  var ve;
760
760
  return [
761
- G(M, {
761
+ G(V, {
762
762
  columns: (ve = t.value) == null ? void 0 : ve.columns,
763
763
  data: m,
764
764
  t: o.t
765
765
  }, ce({ _: 2 }, [
766
- L(g.$slots, (I, oe) => ({
767
- name: oe,
768
- fn: h(($) => [
769
- y(g.$slots, oe, {
766
+ L(g.$slots, (Be, Y) => ({
767
+ name: Y,
768
+ fn: h((le) => [
769
+ y(g.$slots, Y, {
770
770
  option: m,
771
- data: $
771
+ data: le
772
772
  }, void 0, !0)
773
773
  ])
774
774
  }))
@@ -779,11 +779,11 @@ const ht = /* @__PURE__ */ rl(ul), qt = {
779
779
  }),
780
780
  _: 2
781
781
  }, 1040, ["onClick"]),
782
- m.children && m.children.length ? (u(!0), F(X, { key: 0 }, L(m.children, (Q) => (u(), C(q, x({
782
+ m.children && m.children.length ? (u(!0), F(X, { key: 0 }, L(m.children, (Q) => (u(), D(q, T({
783
783
  style: { "margin-left": "20px" },
784
784
  key: Q.value,
785
785
  ref_for: !0
786
- }, j(Te)(Q, (ve) => ve != "children"), {
786
+ }, j(qe)(Q, (ve) => ve != "children"), {
787
787
  onClick: (ve) => {
788
788
  ee.value.change && ee.value.change(Q), we();
789
789
  }
@@ -795,19 +795,19 @@ const ht = /* @__PURE__ */ rl(ul), qt = {
795
795
  key: 0,
796
796
  option: Q
797
797
  }, () => {
798
- var I;
798
+ var Be;
799
799
  return [
800
- G(M, {
801
- columns: (I = t.value) == null ? void 0 : I.columns,
800
+ G(V, {
801
+ columns: (Be = t.value) == null ? void 0 : Be.columns,
802
802
  data: Q,
803
803
  t: o.t
804
804
  }, ce({ _: 2 }, [
805
- L(g.$slots, (oe, $) => ({
806
- name: $,
807
- fn: h((z) => [
808
- y(g.$slots, $, {
805
+ L(g.$slots, (Y, le) => ({
806
+ name: le,
807
+ fn: h(($) => [
808
+ y(g.$slots, le, {
809
809
  option: Q,
810
- data: z
810
+ data: $
811
811
  }, void 0, !0)
812
812
  ])
813
813
  }))
@@ -823,20 +823,20 @@ const ht = /* @__PURE__ */ rl(ul), qt = {
823
823
  ]),
824
824
  _: 2
825
825
  }, [
826
- (N = t.value) != null && N.columns ? {
826
+ (P = t.value) != null && P.columns ? {
827
827
  name: "header",
828
828
  fn: h(() => {
829
829
  var m;
830
830
  return [
831
- G(M, {
831
+ G(V, {
832
832
  columns: (m = t.value) == null ? void 0 : m.columns,
833
833
  title: !0,
834
834
  t: o.t
835
835
  }, ce({ _: 2 }, [
836
836
  L(g.$slots, (Q, ve) => ({
837
837
  name: ve,
838
- fn: h((I) => [
839
- y(g.$slots, ve, { data: I }, void 0, !0)
838
+ fn: h((Be) => [
839
+ y(g.$slots, ve, { data: Be }, void 0, !0)
840
840
  ])
841
841
  }))
842
842
  ]), 1032, ["columns", "t"])
@@ -844,32 +844,32 @@ const ht = /* @__PURE__ */ rl(ul), qt = {
844
844
  }),
845
845
  key: "0"
846
846
  } : void 0,
847
- L(H(), (m) => ({
847
+ L(z(), (m) => ({
848
848
  name: m,
849
849
  fn: h((Q) => [
850
850
  y(g.$slots, `${o.t}-${e.value}-${m}`, { data: Q }, void 0, !0)
851
851
  ])
852
852
  }))
853
- ]), 1040, ["modelValue", "placeholder"])) : d.value == j(ge).TREESELECT ? (u(), C(fe, x({
853
+ ]), 1040, ["modelValue", "placeholder"])) : d.value == j(ge).TREESELECT ? (u(), D(fe, T({
854
854
  key: 6,
855
855
  modelValue: i.value,
856
856
  "onUpdate:modelValue": E[8] || (E[8] = (m) => i.value = m),
857
857
  placeholder: k.value[e.value].label
858
858
  }, t.value, { data: S.value }), ce({ _: 2 }, [
859
- L(H(), (m) => ({
859
+ L(z(), (m) => ({
860
860
  name: m,
861
861
  fn: h((Q) => [
862
862
  y(g.$slots, `${o.t}-${e.value}-${m}`, { data: Q }, void 0, !0)
863
863
  ])
864
864
  }))
865
- ]), 1040, ["modelValue", "placeholder", "data"])) : d.value == j(ge).TIME ? (u(), C(R, x({
865
+ ]), 1040, ["modelValue", "placeholder", "data"])) : d.value == j(ge).TIME ? (u(), D(R, T({
866
866
  key: 7,
867
867
  modelValue: i.value,
868
868
  "onUpdate:modelValue": E[9] || (E[9] = (m) => i.value = m),
869
869
  "arrow-control": ""
870
870
  }, t.value, {
871
871
  placeholder: k.value[e.value].label
872
- }), null, 16, ["modelValue", "placeholder"])) : d.value == j(ge).TIMESELECT ? (u(), C(O, x({
872
+ }), null, 16, ["modelValue", "placeholder"])) : d.value == j(ge).TIMESELECT ? (u(), D(O, T({
873
873
  key: 8,
874
874
  modelValue: i.value,
875
875
  "onUpdate:modelValue": E[10] || (E[10] = (m) => i.value = m),
@@ -877,7 +877,7 @@ const ht = /* @__PURE__ */ rl(ul), qt = {
877
877
  step: "00:15",
878
878
  end: "23:30",
879
879
  placeholder: k.value[e.value].label
880
- }, t.value), null, 16, ["modelValue", "placeholder"])) : Y(d.value) ? (u(), C(Ce, x({
880
+ }, t.value), null, 16, ["modelValue", "placeholder"])) : B(d.value) ? (u(), D(Ce, T({
881
881
  key: 9,
882
882
  modelValue: i.value,
883
883
  "onUpdate:modelValue": E[11] || (E[11] = (m) => i.value = m),
@@ -885,59 +885,59 @@ const ht = /* @__PURE__ */ rl(ul), qt = {
885
885
  placeholder: k.value[e.value].label,
886
886
  "value-format": ie(d.value)
887
887
  }, t.value), ce({ _: 2 }, [
888
- L(H(), (m) => ({
888
+ L(z(), (m) => ({
889
889
  name: m,
890
890
  fn: h((Q) => [
891
891
  y(g.$slots, `${o.t}-${e.value}-${m}`, { data: Q }, void 0, !0)
892
892
  ])
893
893
  }))
894
- ]), 1040, ["modelValue", "type", "placeholder", "value-format"])) : d.value == j(ge).COLOR ? (u(), C(_e, x({
894
+ ]), 1040, ["modelValue", "type", "placeholder", "value-format"])) : d.value == j(ge).COLOR ? (u(), D(_e, T({
895
895
  key: 10,
896
896
  modelValue: i.value,
897
897
  "onUpdate:modelValue": E[12] || (E[12] = (m) => i.value = m)
898
- }, t.value), null, 16, ["modelValue"])) : d.value == j(ge).RATE ? (u(), C(Ve, x({
898
+ }, t.value), null, 16, ["modelValue"])) : d.value == j(ge).RATE ? (u(), D(Ve, T({
899
899
  key: 11,
900
900
  modelValue: i.value,
901
901
  "onUpdate:modelValue": E[13] || (E[13] = (m) => i.value = m)
902
- }, t.value), null, 16, ["modelValue"])) : d.value == j(ge).SLIDER ? (u(), C(De, x({
902
+ }, t.value), null, 16, ["modelValue"])) : d.value == j(ge).SLIDER ? (u(), D(De, T({
903
903
  key: 12,
904
904
  modelValue: i.value,
905
905
  "onUpdate:modelValue": E[14] || (E[14] = (m) => i.value = m)
906
- }, t.value), null, 16, ["modelValue"])) : d.value == j(ge).SWITCH ? (u(), C(ye, x({
906
+ }, t.value), null, 16, ["modelValue"])) : d.value == j(ge).SWITCH ? (u(), D(ye, T({
907
907
  key: 13,
908
908
  modelValue: i.value,
909
909
  "onUpdate:modelValue": E[15] || (E[15] = (m) => i.value = m),
910
910
  inlinePrompt: !0
911
911
  }, t.value), ce({ _: 2 }, [
912
- L(H(), (m) => ({
912
+ L(z(), (m) => ({
913
913
  name: m,
914
914
  fn: h((Q) => [
915
915
  y(g.$slots, `${o.t}-${e.value}-${m}`, { data: Q }, void 0, !0)
916
916
  ])
917
917
  }))
918
- ]), 1040, ["modelValue"])) : d.value == j(ge).TRANSFER ? (u(), C(qe, x({
918
+ ]), 1040, ["modelValue"])) : d.value == j(ge).TRANSFER ? (u(), D(Fe, T({
919
919
  key: 14,
920
920
  modelValue: i.value,
921
921
  "onUpdate:modelValue": E[16] || (E[16] = (m) => i.value = m)
922
922
  }, t.value), ce({ _: 2 }, [
923
- L(H(), (m) => ({
923
+ L(z(), (m) => ({
924
924
  name: m,
925
925
  fn: h((Q) => [
926
926
  y(g.$slots, `${o.t}-${e.value}-${m}`, { data: Q }, void 0, !0)
927
927
  ])
928
928
  }))
929
- ]), 1040, ["modelValue"])) : d.value == j(ge).CASCADER ? (u(), C(Ae, x({
929
+ ]), 1040, ["modelValue"])) : d.value == j(ge).CASCADER ? (u(), D(Ie, T({
930
930
  key: 15,
931
931
  modelValue: i.value,
932
932
  "onUpdate:modelValue": E[17] || (E[17] = (m) => i.value = m)
933
- }, t.value, { options: V.value }), ce({ _: 2 }, [
934
- L(H(), (m) => ({
933
+ }, t.value, { options: x.value }), ce({ _: 2 }, [
934
+ L(z(), (m) => ({
935
935
  name: m,
936
936
  fn: h((Q) => [
937
937
  y(g.$slots, `${o.t}-${e.value}-${m}`, { data: Q }, void 0, !0)
938
938
  ])
939
939
  }))
940
- ]), 1040, ["modelValue", "options"])) : d.value == j(ge).IMAGE ? (u(), C(ut, x({
940
+ ]), 1040, ["modelValue", "options"])) : d.value == j(ge).IMAGE ? (u(), D(nt, T({
941
941
  key: 16,
942
942
  "file-list": t.value["file-list"],
943
943
  "onUpdate:fileList": E[21] || (E[21] = (m) => t.value["file-list"] = m),
@@ -956,15 +956,15 @@ const ht = /* @__PURE__ */ rl(ul), qt = {
956
956
  onClick: E[20] || (E[20] = (Q) => Q.stopPropagation()),
957
957
  style: { display: "flex", width: "var(--up-width)", height: "var(--up-height)", position: "relative", "align-items": "center", "justify-content": "center", "box-sizing": "border-box" }
958
958
  }, [
959
- W("div", sl, [
960
- G(rt, x({
959
+ W("div", dl, [
960
+ G(ut, T({
961
961
  style: { width: "var(--up-width)", height: "var(--up-height)" },
962
962
  src: i.value
963
963
  }, { fit: "cover", lazy: !0, ...(m = t.value) == null ? void 0 : m.img }), ce({ _: 2 }, [
964
- L(H(), (Q, ve) => ({
964
+ L(z(), (Q, ve) => ({
965
965
  name: Q,
966
- fn: h((I) => [
967
- y(g.$slots, `${o.t}-${e.value}-${Q}`, { data: I }, void 0, !0)
966
+ fn: h((Be) => [
967
+ y(g.$slots, `${o.t}-${e.value}-${Q}`, { data: Be }, void 0, !0)
968
968
  ])
969
969
  }))
970
970
  ]), 1040, ["src"])
@@ -975,13 +975,13 @@ const ht = /* @__PURE__ */ rl(ul), qt = {
975
975
  onMouseleave: E[19] || (E[19] = (Q) => w.value = !1),
976
976
  class: "up-view"
977
977
  }, [
978
- w.value ? (u(), C(tt, {
978
+ w.value ? (u(), D(lt, {
979
979
  key: 0,
980
980
  content: "查看大图",
981
981
  placement: "top"
982
982
  }, {
983
983
  default: h(() => [
984
- G(j(Zt), {
984
+ G(j(Kt), {
985
985
  style: { width: "1.5em", height: "1.5em", "margin-right": "12px" },
986
986
  color: "white",
987
987
  onClick: de
@@ -989,13 +989,13 @@ const ht = /* @__PURE__ */ rl(ul), qt = {
989
989
  ]),
990
990
  _: 1
991
991
  })) : me("", !0),
992
- K.value.showDel && w.value ? (u(), C(tt, {
992
+ K.value.showDel && w.value ? (u(), D(lt, {
993
993
  key: 1,
994
994
  content: "删除",
995
995
  placement: "top"
996
996
  }, {
997
997
  default: h(() => [
998
- G(j(Jt), {
998
+ G(j(el), {
999
999
  style: { width: "1.5em", height: "1.5em" },
1000
1000
  color: "white",
1001
1001
  onClick: he
@@ -1004,9 +1004,9 @@ const ht = /* @__PURE__ */ rl(ul), qt = {
1004
1004
  _: 1
1005
1005
  })) : me("", !0)
1006
1006
  ], 32)
1007
- ])) : (u(), C(Ue, { key: 0 }, {
1007
+ ])) : (u(), D(Re, { key: 0 }, {
1008
1008
  default: h(() => [
1009
- G(j(Qt))
1009
+ G(j(Jt))
1010
1010
  ]),
1011
1011
  _: 1
1012
1012
  }))
@@ -1014,26 +1014,26 @@ const ht = /* @__PURE__ */ rl(ul), qt = {
1014
1014
  }),
1015
1015
  _: 2
1016
1016
  }, [
1017
- L(H(), (m, Q) => ({
1017
+ L(z(), (m, Q) => ({
1018
1018
  name: m,
1019
1019
  fn: h((ve) => [
1020
1020
  y(g.$slots, `${o.t}-${e.value}-${m}`, { data: ve }, void 0, !0)
1021
1021
  ])
1022
1022
  }))
1023
- ]), 1040, ["file-list"])) : d.value == j(ge).AUTOCOMPLETE ? (u(), C(nt, x({
1023
+ ]), 1040, ["file-list"])) : d.value == j(ge).AUTOCOMPLETE ? (u(), D(st, T({
1024
1024
  key: 17,
1025
1025
  modelValue: i.value,
1026
1026
  "onUpdate:modelValue": E[22] || (E[22] = (m) => i.value = m)
1027
1027
  }, t.value, {
1028
1028
  placeholder: k.value[e.value].label
1029
1029
  }), ce({ _: 2 }, [
1030
- L(H(), (m, Q) => ({
1030
+ L(z(), (m, Q) => ({
1031
1031
  name: m,
1032
1032
  fn: h((ve) => [
1033
1033
  y(g.$slots, `${o.t}-${e.value}-${m}`, { data: ve }, void 0, !0)
1034
1034
  ])
1035
1035
  }))
1036
- ]), 1040, ["modelValue", "placeholder"])) : d.value == j(ge).INPUTNUMBER ? (u(), C(st, x({
1036
+ ]), 1040, ["modelValue", "placeholder"])) : d.value == j(ge).INPUTNUMBER ? (u(), D(it, T({
1037
1037
  key: 18,
1038
1038
  modelValue: i.value,
1039
1039
  "onUpdate:modelValue": E[23] || (E[23] = (m) => i.value = m),
@@ -1041,70 +1041,70 @@ const ht = /* @__PURE__ */ rl(ul), qt = {
1041
1041
  max: 1e8,
1042
1042
  placeholder: k.value[e.value].label
1043
1043
  }, t.value), ce({ _: 2 }, [
1044
- L(H(), (m, Q) => ({
1044
+ L(z(), (m, Q) => ({
1045
1045
  name: m,
1046
1046
  fn: h((ve) => [
1047
1047
  y(g.$slots, `${o.t}-${e.value}-${m}`, { data: ve }, void 0, !0)
1048
1048
  ])
1049
1049
  }))
1050
- ]), 1040, ["modelValue", "placeholder"])) : d.value == j(ge).MONEY ? (u(), F("div", il, [
1051
- G(l, x({
1050
+ ]), 1040, ["modelValue", "placeholder"])) : d.value == j(ge).MONEY ? (u(), F("div", fl, [
1051
+ G(at, T({
1052
1052
  modelValue: i.value,
1053
1053
  "onUpdate:modelValue": E[24] || (E[24] = (m) => i.value = m),
1054
1054
  placeholder: k.value[e.value].label,
1055
1055
  type: j(ge).NUMBER,
1056
- maxlength: ((Z = t.value) == null ? void 0 : Z.max) || 25
1056
+ maxlength: ((N = t.value) == null ? void 0 : N.max) || 25
1057
1057
  }, { ...t.value, type: d.value }), ce({
1058
1058
  suffix: h(() => [
1059
1059
  W("div", {
1060
- title: j(wt)(i.value),
1060
+ title: j(Et)(i.value),
1061
1061
  style: { "font-size": "10px", display: "block", width: "80px", "text-align": "right", overflow: "hidden", "text-overflow": "ellipsis" }
1062
- }, be(j(wt)(i.value)), 9, dl)
1062
+ }, be(j(Et)(i.value)), 9, cl)
1063
1063
  ]),
1064
1064
  _: 2
1065
1065
  }, [
1066
- L(H(), (m, Q) => ({
1066
+ L(z(), (m, Q) => ({
1067
1067
  name: m,
1068
1068
  fn: h((ve) => [
1069
1069
  y(g.$slots, `${o.t}-${e.value}-${m}`, { data: ve }, void 0, !0)
1070
1070
  ])
1071
1071
  }))
1072
1072
  ]), 1040, ["modelValue", "placeholder", "type", "maxlength"])
1073
- ])) : (Ee = d.value) != null && Ee.startsWith("link") ? (u(), F("div", {
1073
+ ])) : (Z = d.value) != null && Z.startsWith("link") ? (u(), F("div", {
1074
1074
  key: 20,
1075
- style: Fe([{ display: "flex", flex: "1", "justify-content": "center" }, ((ke = t.value) == null ? void 0 : ke.style) || {}])
1075
+ style: Se([{ display: "flex", flex: "1", "justify-content": "center" }, ((Ee = t.value) == null ? void 0 : Ee.style) || {}])
1076
1076
  }, [
1077
- G(r, x(t.value, {
1077
+ G(l, T(t.value, {
1078
1078
  type: d.value.replace("link-", ""),
1079
1079
  innerHTML: U.value || i.value
1080
1080
  }), null, 16, ["type", "innerHTML"])
1081
- ], 4)) : d.value != "textarea" && ((Re = d.value) != null && Re.startsWith("text")) ? (u(), F("div", {
1081
+ ], 4)) : d.value != "textarea" && ((ke = d.value) != null && ke.startsWith("text")) ? (u(), F("div", {
1082
1082
  key: 21,
1083
- style: Fe([{ display: "flex", flex: "1", "justify-content": "center" }, ((je = t.value) == null ? void 0 : je.style) || {}])
1083
+ style: Se([{ display: "flex", flex: "1", "justify-content": "center" }, ((je = t.value) == null ? void 0 : je.style) || {}])
1084
1084
  }, [
1085
- G(c, x(t.value, {
1085
+ G(r, T(t.value, {
1086
1086
  type: d.value.replace("text-", ""),
1087
1087
  innerHTML: U.value || i.value
1088
1088
  }), null, 16, ["type", "innerHTML"])
1089
- ], 4)) : d.value == "avatar" ? (u(), F("div", fl, [
1090
- U.value ? (u(), C(T, yt(x({ key: 0 }, t.value)), {
1089
+ ], 4)) : d.value == "avatar" ? (u(), F("div", ml, [
1090
+ U.value ? (u(), D(c, gt(T({ key: 0 }, t.value)), {
1091
1091
  default: h(() => [
1092
- W("div", { innerHTML: U.value }, null, 8, cl)
1092
+ W("div", { innerHTML: U.value }, null, 8, pl)
1093
1093
  ]),
1094
1094
  _: 1
1095
- }, 16)) : (u(), C(T, yt(x({ key: 1 }, t.value)), null, 16))
1095
+ }, 16)) : (u(), D(c, gt(T({ key: 1 }, t.value)), null, 16))
1096
1096
  ])) : (Le = d.value) != null && Le.startsWith("tag") ? (u(), F("div", {
1097
1097
  key: 23,
1098
- style: Fe([{ display: "flex", flex: "1", "justify-content": "center" }, ((Xe = t.value) == null ? void 0 : Xe.style) || {}])
1098
+ style: Se([{ display: "flex", flex: "1", "justify-content": "center" }, ((ze = t.value) == null ? void 0 : ze.style) || {}])
1099
1099
  }, [
1100
1100
  Array.isArray(U.value) && U.value.length > 0 ? (u(!0), F(X, { key: 0 }, L(U.value, (m, Q) => (u(), F(X, { key: Q }, [
1101
- typeof m == "object" ? (u(), C(P, x({
1101
+ typeof m == "object" ? (u(), D(C, T({
1102
1102
  key: 0,
1103
1103
  ref_for: !0
1104
1104
  }, m, {
1105
1105
  innerHTML: m == null ? void 0 : m.value,
1106
1106
  style: { "margin-right": "3px" }
1107
- }), null, 16, ["innerHTML"])) : (u(), C(P, x({
1107
+ }), null, 16, ["innerHTML"])) : (u(), D(C, T({
1108
1108
  key: 1,
1109
1109
  ref_for: !0
1110
1110
  }, t.value, {
@@ -1112,26 +1112,26 @@ const ht = /* @__PURE__ */ rl(ul), qt = {
1112
1112
  innerHTML: m,
1113
1113
  style: { "margin-right": "3px" }
1114
1114
  }), null, 16, ["type", "innerHTML"]))
1115
- ], 64))), 128)) : (u(), C(P, x({ key: 1 }, t.value, {
1115
+ ], 64))), 128)) : (u(), D(C, T({ key: 1 }, t.value, {
1116
1116
  type: d.value.replace("tag-", ""),
1117
1117
  innerHTML: U.value || i.value
1118
1118
  }), null, 16, ["type", "innerHTML"]))
1119
- ], 4)) : d.value == "div" ? (u(), F("div", x({ key: 24 }, t.value, {
1119
+ ], 4)) : d.value == "div" ? (u(), F("div", T({ key: 24 }, t.value, {
1120
1120
  innerHTML: U.value || i.value
1121
- }), null, 16, ml)) : d.value == "span" ? (u(), F("span", x({ key: 25 }, t.value, {
1121
+ }), null, 16, vl)) : d.value == "span" ? (u(), F("span", T({ key: 25 }, t.value, {
1122
1122
  innerHTML: U.value || i.value
1123
- }), null, 16, pl)) : (u(), C(l, x({
1123
+ }), null, 16, hl)) : (u(), D(at, T({
1124
1124
  key: 26,
1125
1125
  modelValue: i.value,
1126
1126
  "onUpdate:modelValue": E[25] || (E[25] = (m) => i.value = m),
1127
1127
  placeholder: k.value[e.value].label,
1128
- maxlength: ((lt = t.value) == null ? void 0 : lt.max) || 25,
1128
+ maxlength: ((Ge = t.value) == null ? void 0 : Ge.max) || 25,
1129
1129
  clearable: !0,
1130
1130
  onClear: E[26] || (E[26] = () => {
1131
1131
  o.t == "q" && k.value.table.load();
1132
1132
  })
1133
1133
  }, { ...t.value, type: d.value }), ce({ _: 2 }, [
1134
- L(H(), (m, Q) => ({
1134
+ L(z(), (m, Q) => ({
1135
1135
  name: m,
1136
1136
  fn: h((ve) => [
1137
1137
  y(g.$slots, `${o.t}-${e.value}-${m}`, { data: ve }, void 0, !0)
@@ -1142,31 +1142,31 @@ const ht = /* @__PURE__ */ rl(ul), qt = {
1142
1142
  ], 64);
1143
1143
  };
1144
1144
  }
1145
- }), mt = /* @__PURE__ */ We(vl, [["__scopeId", "data-v-a4d7ef5d"]]), hl = { class: "g-form-container" }, yl = /* @__PURE__ */ Object.assign({
1145
+ }), pt = /* @__PURE__ */ Xe(yl, [["__scopeId", "data-v-a4d7ef5d"]]), gl = { class: "g-form-container" }, bl = /* @__PURE__ */ Object.assign({
1146
1146
  name: "g-form",
1147
1147
  inheritAttrs: !1
1148
1148
  }, {
1149
1149
  __name: "g-form",
1150
- props: /* @__PURE__ */ Pe(["editForm"], {
1150
+ props: /* @__PURE__ */ Ne(["editForm"], {
1151
1151
  modelValue: { required: !0 },
1152
1152
  modelModifiers: {}
1153
1153
  }),
1154
- emits: /* @__PURE__ */ Pe(["submit", "reset"], ["update:modelValue"]),
1154
+ emits: /* @__PURE__ */ Ne(["submit", "reset"], ["update:modelValue"]),
1155
1155
  setup(f, { expose: i, emit: o }) {
1156
- var ne, le, $e, se, g, E;
1157
- const t = Ne(f, "modelValue"), e = o, d = te(null), k = Et("options"), S = te({}), V = te(""), D = f;
1156
+ var ne, ae, $e, se, g, E;
1157
+ const t = We(f, "modelValue"), e = o, d = te(null), k = _t("options"), S = te({}), x = te(""), M = f;
1158
1158
  t.value.form = xe(
1159
- qt,
1159
+ Ot,
1160
1160
  k == null ? void 0 : k.form,
1161
1161
  (ne = t.value) == null ? void 0 : ne.form
1162
1162
  ), t.value.form.style = xe(
1163
- ($e = (le = t.value) == null ? void 0 : le.form) == null ? void 0 : $e.style,
1164
- { ...(se = _t()) == null ? void 0 : se.style }
1163
+ ($e = (ae = t.value) == null ? void 0 : ae.form) == null ? void 0 : $e.style,
1164
+ { ...(se = kt()) == null ? void 0 : se.style }
1165
1165
  );
1166
1166
  const w = async (v, p) => {
1167
1167
  let s = 5;
1168
1168
  for (; s > 0; ) {
1169
- if (await et(), d.value) {
1169
+ if (await tt(), d.value) {
1170
1170
  d.value.validate((a, _) => {
1171
1171
  a ? e("submit", v, p) : console.error("表单验证不通过!", _);
1172
1172
  });
@@ -1175,10 +1175,10 @@ const ht = /* @__PURE__ */ rl(ul), qt = {
1175
1175
  s--, await new Promise((a) => setTimeout(a, 50));
1176
1176
  }
1177
1177
  console.error("表单实例获取失败,请检查组件状态");
1178
- }, H = async () => {
1178
+ }, z = async () => {
1179
1179
  let v = 5;
1180
1180
  for (; v > 0; ) {
1181
- if (await et(), !d.value) {
1181
+ if (await tt(), !d.value) {
1182
1182
  v--, await new Promise((s) => setTimeout(s, 50));
1183
1183
  continue;
1184
1184
  }
@@ -1193,7 +1193,7 @@ const ht = /* @__PURE__ */ rl(ul), qt = {
1193
1193
  }
1194
1194
  console.error("表单实例获取失败,请检查组件状态");
1195
1195
  };
1196
- t.value.form.submit.click = w, t.value.form.reset.click = H;
1196
+ t.value.form.submit.click = w, t.value.form.reset.click = z;
1197
1197
  const K = {
1198
1198
  type: "hidden",
1199
1199
  labelPosition: "right",
@@ -1215,7 +1215,7 @@ const ht = /* @__PURE__ */ rl(ul), qt = {
1215
1215
  (E = k == null ? void 0 : k.form) == null ? void 0 : E.cols,
1216
1216
  t.value.form.cols
1217
1217
  );
1218
- const Y = (v) => {
1218
+ const B = (v) => {
1219
1219
  let p = [];
1220
1220
  if (v.rules)
1221
1221
  p = v.rules;
@@ -1256,16 +1256,16 @@ const ht = /* @__PURE__ */ rl(ul), qt = {
1256
1256
  }), a.min !== void 0 && a.min !== null && a.min !== "" && a.max !== void 0 && a.max !== null && a.max !== "" && p.push({
1257
1257
  validator: (_, n, b) => {
1258
1258
  if (n == null || n === "") return b();
1259
- const M = Number(a.min), q = Number(a.max);
1259
+ const V = Number(a.min), q = Number(a.max);
1260
1260
  a.type !== "number" && a.type !== "input-number" ? Number(a.min) < 1 ? b(
1261
1261
  new Error(
1262
1262
  `${a.label}长度最小值${a.min}设置错误!`
1263
1263
  )
1264
- ) : n.toString().length < M || n.toString().length > q ? b(
1264
+ ) : n.toString().length < V || n.toString().length > q ? b(
1265
1265
  new Error(
1266
- `${a.label}长度必须在${M}-${q}个字符之间!`
1266
+ `${a.label}长度必须在${V}-${q}个字符之间!`
1267
1267
  )
1268
- ) : b() : Number(n) < M || n > q ? b(new Error(`${a.label}必须在${M}-${q}之间!`)) : b();
1268
+ ) : b() : Number(n) < V || n > q ? b(new Error(`${a.label}必须在${V}-${q}之间!`)) : b();
1269
1269
  }
1270
1270
  }), a.type == "email" && p.push({ type: "email", message: "不是一个正确的邮箱地址!" }), a.type == "url" && p.push({ type: "url", message: "不是一个合正确的URL!" }), a.pattern && p.push({
1271
1271
  pattern: a == null ? void 0 : a.pattern,
@@ -1276,15 +1276,15 @@ const ht = /* @__PURE__ */ rl(ul), qt = {
1276
1276
  }
1277
1277
  return p;
1278
1278
  }, ie = (v, p = !1) => {
1279
- var _, n, b, M, q;
1279
+ var _, n, b, V, q;
1280
1280
  const s = p ? v : v == null ? void 0 : v.item, a = typeof (s == null ? void 0 : s.editor) == "function" ? s.editor(S.value, (_ = t.value.form) == null ? void 0 : _.modalState) : (s == null ? void 0 : s.editor) || {};
1281
1281
  if (((n = t.value.form) == null ? void 0 : n.modalState) === "edit") {
1282
- const ae = typeof (s == null ? void 0 : s.editor) == "object" ? (b = s.editor) == null ? void 0 : b.ep : typeof (s == null ? void 0 : s.editor) == "function" ? a == null ? void 0 : a.ep : {};
1283
- return { ...a, ...ae };
1282
+ const oe = typeof (s == null ? void 0 : s.editor) == "object" ? (b = s.editor) == null ? void 0 : b.ep : typeof (s == null ? void 0 : s.editor) == "function" ? a == null ? void 0 : a.ep : {};
1283
+ return { ...a, ...oe };
1284
1284
  }
1285
- if (((M = t.value.form) == null ? void 0 : M.modalState) === "add") {
1286
- const ae = typeof (s == null ? void 0 : s.editor) == "object" ? (q = s.editor) == null ? void 0 : q.ap : typeof (s == null ? void 0 : s.editor) == "function" ? a == null ? void 0 : a.ap : {};
1287
- return { ...a, ...ae };
1285
+ if (((V = t.value.form) == null ? void 0 : V.modalState) === "add") {
1286
+ const oe = typeof (s == null ? void 0 : s.editor) == "object" ? (q = s.editor) == null ? void 0 : q.ap : typeof (s == null ? void 0 : s.editor) == "function" ? a == null ? void 0 : a.ap : {};
1287
+ return { ...a, ...oe };
1288
1288
  }
1289
1289
  return a;
1290
1290
  }, ee = (v) => {
@@ -1292,13 +1292,13 @@ const ht = /* @__PURE__ */ rl(ul), qt = {
1292
1292
  const p = typeof v.editor == "function" ? v.editor(S.value, (s = t.value.form) == null ? void 0 : s.modalState) : v.editor;
1293
1293
  return ((a = t.value.form) == null ? void 0 : a.modalState) === "edit" ? ((_ = p == null ? void 0 : p.ep) == null ? void 0 : _.type) ?? (p == null ? void 0 : p.type) ?? v.type : ((n = t.value.form) == null ? void 0 : n.modalState) === "add" ? ((b = p == null ? void 0 : p.ap) == null ? void 0 : b.type) ?? (p == null ? void 0 : p.type) ?? v.type : (p == null ? void 0 : p.type) ?? v.type;
1294
1294
  };
1295
- ot(() => {
1296
- re(), D != null && D.editForm ? S.value = D.editForm : S.value = we.value;
1297
- }), Rt(() => {
1295
+ rt(() => {
1296
+ re(), M != null && M.editForm ? S.value = M.editForm : S.value = we.value;
1297
+ }), jt(() => {
1298
1298
  d.value = null;
1299
1299
  });
1300
1300
  const re = () => {
1301
- V.value = Math.random().toString(36).substring(2);
1301
+ x.value = Math.random().toString(36).substring(2);
1302
1302
  for (const [v, p] of Object.entries(ue.value))
1303
1303
  t.value[v].formItem = {
1304
1304
  ...t.value[v].formItem,
@@ -1307,7 +1307,7 @@ const ht = /* @__PURE__ */ rl(ul), qt = {
1307
1307
  ...t.value[v].formItem.style,
1308
1308
  ...p.formItem.style
1309
1309
  };
1310
- }, ue = Je(
1310
+ }, ue = Ke(
1311
1311
  () => Object.fromEntries(
1312
1312
  Object.entries(t.value).filter((v) => v[1].type != "hidden").filter((v) => v[1].edit !== !1).filter(
1313
1313
  (v) => !["table", "tableColumns", "query", "queryItems"].includes(v[0])
@@ -1317,11 +1317,11 @@ const ht = /* @__PURE__ */ rl(ul), qt = {
1317
1317
  return t.value.form.modalState === "edit" ? ((a = p == null ? void 0 : p.ep) == null ? void 0 : a.editor) !== !1 : t.value.form.modalState === "add" ? ((_ = p == null ? void 0 : p.ap) == null ? void 0 : _.editor) !== !1 : !0;
1318
1318
  }).map((v) => [v[0], v[1]])
1319
1319
  )
1320
- ), we = Je(
1320
+ ), we = Ke(
1321
1321
  () => Object.fromEntries(
1322
1322
  Object.entries(t.value).filter((v) => v[1].type != "hidden").filter((v) => v[1].type != "control").map((v) => [v[0], v[1].value])
1323
1323
  )
1324
- ), he = Je(() => {
1324
+ ), he = Ke(() => {
1325
1325
  const v = /* @__PURE__ */ new Map();
1326
1326
  return Object.entries(ue.value).forEach(([p, s]) => {
1327
1327
  if (s.groupName) {
@@ -1342,7 +1342,7 @@ const ht = /* @__PURE__ */ rl(ul), qt = {
1342
1342
  label: t.value.form.submit.label,
1343
1343
  click: t.value.form.submit.click,
1344
1344
  hidden: t.value.form.submit.hidden,
1345
- info: Te(t.value.form.submit, (v) => !["click"].includes(v)),
1345
+ info: qe(t.value.form.submit, (v) => !["click"].includes(v)),
1346
1346
  sort: t.value.form.submit.sort ?? 1,
1347
1347
  // 使用空值合并运算符
1348
1348
  originalOrder: 0
@@ -1352,23 +1352,23 @@ const ht = /* @__PURE__ */ rl(ul), qt = {
1352
1352
  name: "f-reset",
1353
1353
  label: t.value.form.reset.label,
1354
1354
  click: t.value.form.reset.click,
1355
- info: Te(t.value.form.reset, (v) => !["click"].includes(v)),
1355
+ info: qe(t.value.form.reset, (v) => !["click"].includes(v)),
1356
1356
  hidden: t.value.form.reset.hidden,
1357
1357
  sort: t.value.form.reset.sort ?? 2,
1358
1358
  // 使用空值合并运算符
1359
1359
  originalOrder: 1
1360
1360
  // 添加原始顺序标识
1361
1361
  }
1362
- ], de = Je(() => pe.filter((v) => !v.hidden).sort((v, p) => v.sort - p.sort || v.originalOrder - p.originalOrder));
1362
+ ], de = Ke(() => pe.filter((v) => !v.hidden).sort((v, p) => v.sort - p.sort || v.originalOrder - p.originalOrder));
1363
1363
  return i({
1364
1364
  submit: w,
1365
- reset: H,
1365
+ reset: z,
1366
1366
  formData: S
1367
1367
  }), (v, p) => {
1368
- var q, ae, fe;
1369
- const s = B("el-form-item"), a = B("el-col"), _ = B("el-tab-pane"), n = B("el-tabs"), b = B("el-form"), M = B("el-button");
1370
- return u(), F("div", hl, [
1371
- G(b, x(
1368
+ var q, oe, fe;
1369
+ const s = I("el-form-item"), a = I("el-col"), _ = I("el-tab-pane"), n = I("el-tabs"), b = I("el-form"), V = I("el-button");
1370
+ return u(), F("div", gl, [
1371
+ G(b, T(
1372
1372
  {
1373
1373
  ref_key: "gform",
1374
1374
  ref: d,
@@ -1380,21 +1380,21 @@ const ht = /* @__PURE__ */ rl(ul), qt = {
1380
1380
  "box-sizing": "border-box"
1381
1381
  }
1382
1382
  },
1383
- j(Te)(
1383
+ j(qe)(
1384
1384
  t.value.form,
1385
1385
  (R) => !["footer", "submit", "reset", "slots", "type", "sort"].includes(R)
1386
1386
  )
1387
1387
  ), {
1388
1388
  default: h(() => [
1389
1389
  he.value.length > 0 ? y(v.$slots, "default", { key: 0 }, () => [
1390
- G(n, x({
1390
+ G(n, T({
1391
1391
  class: "demo-tabs",
1392
1392
  modelValue: he.value[0].groupName,
1393
1393
  "onUpdate:modelValue": p[0] || (p[0] = (R) => he.value[0].groupName = R),
1394
1394
  style: { width: "100%" }
1395
1395
  }, t.value.form.tabs), {
1396
1396
  default: h(() => [
1397
- (u(!0), F(X, null, L(he.value, (R) => (u(), C(_, x({
1397
+ (u(!0), F(X, null, L(he.value, (R) => (u(), D(_, T({
1398
1398
  key: R.groupName,
1399
1399
  label: R.groupName,
1400
1400
  name: R.groupName,
@@ -1402,17 +1402,17 @@ const ht = /* @__PURE__ */ rl(ul), qt = {
1402
1402
  ref_for: !0
1403
1403
  }, R.tabPane), {
1404
1404
  default: h(() => [
1405
- (u(!0), F(X, null, L(R.items, (O, Ce) => (u(), C(a, x({ ref_for: !0 }, { ...t.value.form.cols, ...O == null ? void 0 : O.item.col }, {
1405
+ (u(!0), F(X, null, L(R.items, (O, Ce) => (u(), D(a, T({ ref_for: !0 }, { ...t.value.form.cols, ...O == null ? void 0 : O.item.col }, {
1406
1406
  key: O.key,
1407
1407
  style: { width: "100%" }
1408
1408
  }), {
1409
1409
  default: h(() => {
1410
1410
  var _e, Ve;
1411
1411
  return [
1412
- G(s, x({
1412
+ G(s, T({
1413
1413
  label: O == null ? void 0 : O.item.label,
1414
1414
  prop: O.key,
1415
- rules: Y(O == null ? void 0 : O.item),
1415
+ rules: B(O == null ? void 0 : O.item),
1416
1416
  ref_for: !0
1417
1417
  }, { ...(_e = t.value) == null ? void 0 : _e.formItems, ...(Ve = O == null ? void 0 : O.item) == null ? void 0 : Ve.formItem }, { style: { width: "100%" } }), {
1418
1418
  default: h(() => [
@@ -1421,23 +1421,23 @@ const ht = /* @__PURE__ */ rl(ul), qt = {
1421
1421
  formInfo: S.value,
1422
1422
  model: t.value
1423
1423
  }, () => [
1424
- (u(), C(mt, {
1424
+ (u(), D(pt, {
1425
1425
  modelValue: S.value[O.key],
1426
1426
  "onUpdate:modelValue": (De) => S.value[O.key] = De,
1427
1427
  item: ie(O),
1428
1428
  ctrlKey: O.key,
1429
1429
  ctrlType: ee(O == null ? void 0 : O.item),
1430
1430
  model: t.value,
1431
- key: `${O.key}-${V.value}`,
1431
+ key: `${O.key}-${x.value}`,
1432
1432
  class: "g-ctrl-container",
1433
1433
  t: "f",
1434
1434
  formInfo: S.value
1435
1435
  }, ce({ _: 2 }, [
1436
1436
  L(v.$slots, (De, ye) => ({
1437
1437
  name: ye,
1438
- fn: h((qe) => [
1438
+ fn: h((Fe) => [
1439
1439
  y(v.$slots, ye, {
1440
- data: qe,
1440
+ data: Fe,
1441
1441
  item: O.item,
1442
1442
  model: t.value
1443
1443
  }, void 0, !0)
@@ -1459,17 +1459,17 @@ const ht = /* @__PURE__ */ rl(ul), qt = {
1459
1459
  _: 3
1460
1460
  }, 16, ["modelValue"])
1461
1461
  ], !0) : y(v.$slots, "default", { key: 1 }, () => [
1462
- (u(!0), F(X, null, L(ue.value, (R, O) => (u(), C(a, x({ ref_for: !0 }, { ...t.value.form.cols, ...R.col }, {
1462
+ (u(!0), F(X, null, L(ue.value, (R, O) => (u(), D(a, T({ ref_for: !0 }, { ...t.value.form.cols, ...R.col }, {
1463
1463
  key: O,
1464
1464
  style: { width: "100%" }
1465
1465
  }), {
1466
1466
  default: h(() => {
1467
1467
  var Ce;
1468
1468
  return [
1469
- G(s, x({
1469
+ G(s, T({
1470
1470
  label: R.label,
1471
1471
  prop: O,
1472
- rules: Y(R),
1472
+ rules: B(R),
1473
1473
  ref_for: !0
1474
1474
  }, { ...(Ce = t.value) == null ? void 0 : Ce.formItems, ...R == null ? void 0 : R.formItem }, { style: { width: "100%" } }), {
1475
1475
  label: h((_e) => [
@@ -1478,7 +1478,7 @@ const ht = /* @__PURE__ */ rl(ul), qt = {
1478
1478
  item: R,
1479
1479
  model: t.value
1480
1480
  }, () => [
1481
- Se(be(R.label), 1)
1481
+ Te(be(R.label), 1)
1482
1482
  ], !0)
1483
1483
  ]),
1484
1484
  default: h(() => [
@@ -1487,13 +1487,13 @@ const ht = /* @__PURE__ */ rl(ul), qt = {
1487
1487
  formInfo: S.value,
1488
1488
  model: t.value
1489
1489
  }, () => [
1490
- (u(), C(mt, {
1490
+ (u(), D(pt, {
1491
1491
  modelValue: S.value[O],
1492
1492
  "onUpdate:modelValue": (_e) => S.value[O] = _e,
1493
1493
  item: ie(R, !0),
1494
1494
  ctrlKey: O,
1495
1495
  ctrlType: ee(R),
1496
- key: `${O}-${V.value}`,
1496
+ key: `${O}-${x.value}`,
1497
1497
  model: t.value,
1498
1498
  class: "g-ctrl-container",
1499
1499
  t: "f",
@@ -1522,19 +1522,19 @@ const ht = /* @__PURE__ */ rl(ul), qt = {
1522
1522
  ]),
1523
1523
  _: 3
1524
1524
  }, 16, ["model"]),
1525
- (fe = (ae = (q = t.value) == null ? void 0 : q.form) == null ? void 0 : ae.footer) != null && fe.hidden ? me("", !0) : y(v.$slots, "f-footer", { key: 0 }, () => [
1525
+ (fe = (oe = (q = t.value) == null ? void 0 : q.form) == null ? void 0 : oe.footer) != null && fe.hidden ? me("", !0) : y(v.$slots, "f-footer", { key: 0 }, () => [
1526
1526
  W("div", {
1527
- style: Fe(t.value.form.footer.style)
1527
+ style: Se(t.value.form.footer.style)
1528
1528
  }, [
1529
1529
  y(v.$slots, "f-footer-left", {}, void 0, !0),
1530
1530
  (u(!0), F(X, null, L(de.value, (R) => (u(), F(X, null, [
1531
1531
  y(v.$slots, R.name + "-left", {}, void 0, !0),
1532
1532
  y(v.$slots, R.name, {}, () => [
1533
- G(M, x({ ref_for: !0 }, R.info, {
1534
- onClick: ft((O) => R.click(S.value, t.value), ["stop"])
1533
+ G(V, T({ ref_for: !0 }, R.info, {
1534
+ onClick: ct((O) => R.click(S.value, t.value), ["stop"])
1535
1535
  }), {
1536
1536
  default: h(() => [
1537
- Se(be(R == null ? void 0 : R.label), 1)
1537
+ Te(be(R == null ? void 0 : R.label), 1)
1538
1538
  ]),
1539
1539
  _: 2
1540
1540
  }, 1040, ["onClick"])
@@ -1547,9 +1547,9 @@ const ht = /* @__PURE__ */ rl(ul), qt = {
1547
1547
  ]);
1548
1548
  };
1549
1549
  }
1550
- }), gt = /* @__PURE__ */ We(yl, [["__scopeId", "data-v-82750c6a"]]), Ct = {
1550
+ }), bt = /* @__PURE__ */ Xe(bl, [["__scopeId", "data-v-82750c6a"]]), Dt = {
1551
1551
  __name: "g-query-item",
1552
- props: /* @__PURE__ */ Pe(["more"], {
1552
+ props: /* @__PURE__ */ Ne(["more"], {
1553
1553
  modelValue: { required: !0 },
1554
1554
  modelModifiers: {},
1555
1555
  info: { required: !0 },
@@ -1557,37 +1557,37 @@ const ht = /* @__PURE__ */ rl(ul), qt = {
1557
1557
  }),
1558
1558
  emits: ["update:modelValue", "update:info"],
1559
1559
  setup(f) {
1560
- const i = Ne(f, "modelValue"), o = f, t = Ne(f, "info"), e = (S) => Je(() => Object.fromEntries(Object.entries(i.value).filter((V) => {
1561
- var D;
1562
- return typeof V[1].search == "function" ? V[1].search && ((D = V[1].search(t.value, i.value.table)) == null ? void 0 : D.more) === S : V[1].search && V[1].search.more === S;
1563
- }).map((V) => [V[0], V[1]]))).value, d = (S) => typeof S.search == "function" ? S.search(t.value, i.value.table) : S.search || {}, k = (S) => {
1564
- const V = d(S);
1565
- return (V == null ? void 0 : V.type) || S.type;
1560
+ const i = We(f, "modelValue"), o = f, t = We(f, "info"), e = (S) => Ke(() => Object.fromEntries(Object.entries(i.value).filter((x) => {
1561
+ var M;
1562
+ return typeof x[1].search == "function" ? x[1].search && ((M = x[1].search(t.value, i.value.table)) == null ? void 0 : M.more) === S : x[1].search && x[1].search.more === S;
1563
+ }).map((x) => [x[0], x[1]]))).value, d = (S) => typeof S.search == "function" ? S.search(t.value, i.value.table) : S.search || {}, k = (S) => {
1564
+ const x = d(S);
1565
+ return (x == null ? void 0 : x.type) || S.type;
1566
1566
  };
1567
- return (S, V) => {
1568
- const D = B("el-form-item");
1569
- return u(!0), F(X, null, L(e(o.more), (w, H) => y(S.$slots, `q-${H}`, {
1570
- key: H,
1567
+ return (S, x) => {
1568
+ const M = I("el-form-item");
1569
+ return u(!0), F(X, null, L(e(o.more), (w, z) => y(S.$slots, `q-${z}`, {
1570
+ key: z,
1571
1571
  item: w,
1572
1572
  queryModel: t.value,
1573
1573
  model: i.value
1574
1574
  }, () => [
1575
- G(D, x({
1575
+ G(M, T({
1576
1576
  label: w.label,
1577
1577
  ref_for: !0
1578
1578
  }, { ...i.value.queryItems, ...d(w) }), {
1579
1579
  label: h(() => [
1580
- y(S.$slots, `q-${H}-label`, {
1580
+ y(S.$slots, `q-${z}-label`, {
1581
1581
  item: w,
1582
1582
  model: i.value
1583
1583
  })
1584
1584
  ]),
1585
1585
  default: h(() => [
1586
- G(mt, {
1587
- modelValue: t.value[H],
1588
- "onUpdate:modelValue": (K) => t.value[H] = K,
1586
+ G(pt, {
1587
+ modelValue: t.value[z],
1588
+ "onUpdate:modelValue": (K) => t.value[z] = K,
1589
1589
  item: { ...w == null ? void 0 : w.editor, ...d(w) },
1590
- ctrlKey: H,
1590
+ ctrlKey: z,
1591
1591
  ctrlType: k(w),
1592
1592
  model: i.value,
1593
1593
  t: "q",
@@ -1610,10 +1610,10 @@ const ht = /* @__PURE__ */ rl(ul), qt = {
1610
1610
  ])), 128);
1611
1611
  };
1612
1612
  }
1613
- }, gl = {
1613
+ }, $l = {
1614
1614
  key: 0,
1615
1615
  class: "outer"
1616
- }, bl = { class: "inner" }, $l = {
1616
+ }, wl = { class: "inner" }, El = {
1617
1617
  __name: "g-query",
1618
1618
  props: {
1619
1619
  modelValue: { required: !0 },
@@ -1621,9 +1621,9 @@ const ht = /* @__PURE__ */ rl(ul), qt = {
1621
1621
  info: { required: !0 },
1622
1622
  infoModifiers: {}
1623
1623
  },
1624
- emits: /* @__PURE__ */ Pe(["query", "reset"], ["update:modelValue", "update:info"]),
1624
+ emits: /* @__PURE__ */ Ne(["query", "reset"], ["update:modelValue", "update:info"]),
1625
1625
  setup(f, { emit: i }) {
1626
- const o = Ne(f, "modelValue"), t = i, e = Et("options"), d = te(!1), k = Ne(f, "info"), S = {
1626
+ const o = We(f, "modelValue"), t = i, e = _t("options"), d = te(!1), k = We(f, "info"), S = {
1627
1627
  hidden: !1,
1628
1628
  type: "hidden",
1629
1629
  labelWidth: 100,
@@ -1672,7 +1672,7 @@ const ht = /* @__PURE__ */ rl(ul), qt = {
1672
1672
  }
1673
1673
  };
1674
1674
  o.value.query = xe(S, e == null ? void 0 : e.query, o.value.query);
1675
- const V = {
1675
+ const x = {
1676
1676
  2: {
1677
1677
  title: "更多查询",
1678
1678
  showClose: !1,
@@ -1690,30 +1690,30 @@ const ht = /* @__PURE__ */ rl(ul), qt = {
1690
1690
  }
1691
1691
  };
1692
1692
  o.value.query.more.dialog = xe(
1693
- V[o.value.query.more.mode] || {},
1693
+ x[o.value.query.more.mode] || {},
1694
1694
  o.value.query.more.dialog
1695
1695
  );
1696
- const D = {
1696
+ const M = {
1697
1697
  type: "hidden",
1698
1698
  labelPosition: "right",
1699
1699
  style: {
1700
1700
  width: "280px"
1701
1701
  }
1702
1702
  };
1703
- o.value.queryItems = xe(D, e == null ? void 0 : e.queryItems, o.value.queryItems);
1704
- const w = (U, Y) => {
1703
+ o.value.queryItems = xe(M, e == null ? void 0 : e.queryItems, o.value.queryItems);
1704
+ const w = (U, B) => {
1705
1705
  const ie = Object.keys(U.slots).filter((ee) => ee !== "default").reduce((ee, re) => (ee[re] = (ue) => U.slots[re]({
1706
1706
  model: o.value
1707
1707
  // 传递当前模型数据
1708
1708
  }), ee), {});
1709
- return Ie(Ct, {
1709
+ return Ae(Dt, {
1710
1710
  modelValue: o.value,
1711
1711
  "onUpdate:modelValue": (ee) => o.value = ee,
1712
1712
  info: k.value,
1713
1713
  "onUpdate:info": (ee) => k.value = ee,
1714
- more: Y
1714
+ more: B
1715
1715
  }, ie);
1716
- }, H = xt(), K = () => {
1716
+ }, z = Tt(), K = () => {
1717
1717
  var ie, ee, re, ue, we, he, pe, de, ne;
1718
1718
  const U = [
1719
1719
  {
@@ -1741,65 +1741,65 @@ const ht = /* @__PURE__ */ rl(ul), qt = {
1741
1741
  {
1742
1742
  key: "more",
1743
1743
  hidden: (ne = (de = (pe = o.value) == null ? void 0 : pe.query) == null ? void 0 : de.more) == null ? void 0 : ne.hidden,
1744
- component: o.value.query.more.mode === 3 ? vt : Me,
1744
+ component: o.value.query.more.mode === 3 ? ht : Me,
1745
1745
  props: o.value.query.more.mode === 3 ? { ...o.value.query.more.dialog } : {
1746
1746
  ...o.value.query.more,
1747
1747
  onClick: o.value.query.more.click
1748
1748
  },
1749
1749
  label: o.value.query.more.label,
1750
1750
  sort: o.value.query.more.sort || 0,
1751
- content: o.value.query.more.mode === 3 ? () => Ie(it, {
1751
+ content: o.value.query.more.mode === 3 ? () => Ae(dt, {
1752
1752
  class: "query-form",
1753
- ...Te(o.value.query, (le) => !["query", "more", "reset"].includes(le))
1754
- }, () => w({ slots: H }, !0)) : null
1753
+ ...qe(o.value.query, (ae) => !["query", "more", "reset"].includes(ae))
1754
+ }, () => w({ slots: z }, !0)) : null
1755
1755
  }
1756
1756
  ];
1757
- return U.sort((le, $e) => le.sort - $e.sort), U.filter((le) => !le.hidden).map((le) => le.key === "more" && le.component === vt ? Ie(vt, le.props, {
1758
- reference: () => Ie(Me, o.value.query.more, () => le.label),
1759
- default: le.content
1760
- }) : (le.props.slot = "query-" + le.key, le.label ? Ie(le.component, le.props, () => le.label) : Ie(le.component, le.props)));
1757
+ return U.sort((ae, $e) => ae.sort - $e.sort), U.filter((ae) => !ae.hidden).map((ae) => ae.key === "more" && ae.component === ht ? Ae(ht, ae.props, {
1758
+ reference: () => Ae(Me, o.value.query.more, () => ae.label),
1759
+ default: ae.content
1760
+ }) : (ae.props.slot = "query-" + ae.key, ae.label ? Ae(ae.component, ae.props, () => ae.label) : Ae(ae.component, ae.props)));
1761
1761
  };
1762
- return (U, Y) => {
1763
- var re, ue, we, he, pe, de, ne, le, $e, se, g, E, v, p, s, a, _;
1764
- const ie = B("el-form-item"), ee = B("el-drawer");
1762
+ return (U, B) => {
1763
+ var re, ue, we, he, pe, de, ne, ae, $e, se, g, E, v, p, s, a, _;
1764
+ const ie = I("el-form-item"), ee = I("el-drawer");
1765
1765
  return u(), F(X, null, [
1766
1766
  W("div", {
1767
1767
  class: "g-query-container",
1768
- style: Fe((ue = (re = o.value.query) == null ? void 0 : re.container) == null ? void 0 : ue.style)
1768
+ style: Se((ue = (re = o.value.query) == null ? void 0 : re.container) == null ? void 0 : ue.style)
1769
1769
  }, [
1770
- G(j(it), x({
1771
- onSubmit: Y[0] || (Y[0] = ft(() => {
1770
+ G(j(dt), T({
1771
+ onSubmit: B[0] || (B[0] = ct(() => {
1772
1772
  }, ["prevent"]))
1773
- }, j(Te)(o.value.query, (n) => !["query", "more", "reset", "btns"].includes(n))), {
1773
+ }, j(qe)(o.value.query, (n) => !["query", "more", "reset", "btns"].includes(n))), {
1774
1774
  default: h(() => {
1775
1775
  var n, b;
1776
1776
  return [
1777
- (u(), C(Be(w({ slots: U.$slots }, void 0)))),
1778
- ((b = (n = o.value.query) == null ? void 0 : n.container) == null ? void 0 : b.inline) === !0 ? (u(), C(ie, { key: 0 }, {
1777
+ (u(), D(Ye(w({ slots: U.$slots }, void 0)))),
1778
+ ((b = (n = o.value.query) == null ? void 0 : n.container) == null ? void 0 : b.inline) === !0 ? (u(), D(ie, { key: 0 }, {
1779
1779
  default: h(() => {
1780
- var M, q, ae, fe, R;
1780
+ var V, q, oe, fe, R;
1781
1781
  return [
1782
1782
  W("div", {
1783
- style: Fe((q = (M = o.value.query) == null ? void 0 : M.btns) == null ? void 0 : q.style)
1783
+ style: Se((q = (V = o.value.query) == null ? void 0 : V.btns) == null ? void 0 : q.style)
1784
1784
  }, [
1785
- o.value.query.group ? (u(), C(j(dt), { key: 0 }, {
1785
+ o.value.query.group ? (u(), D(j(ft), { key: 0 }, {
1786
1786
  default: h(() => [
1787
1787
  (u(!0), F(X, null, L(K(), (O) => y(U.$slots, O.props.slot, {}, () => [
1788
- (u(), C(Be(O)))
1788
+ (u(), D(Ye(O)))
1789
1789
  ], !0)), 256)),
1790
1790
  y(U.$slots, "q-btns", {}, void 0, !0)
1791
1791
  ]),
1792
1792
  _: 3
1793
1793
  })) : (u(), F(X, { key: 1 }, [
1794
- (R = (fe = (ae = o.value) == null ? void 0 : ae.query) == null ? void 0 : fe.btns) != null && R.group ? (u(), C(j(dt), { key: 0 }, {
1794
+ (R = (fe = (oe = o.value) == null ? void 0 : oe.query) == null ? void 0 : fe.btns) != null && R.group ? (u(), D(j(ft), { key: 0 }, {
1795
1795
  default: h(() => [
1796
1796
  (u(!0), F(X, null, L(K(), (O) => y(U.$slots, O.props.slot, {}, () => [
1797
- (u(), C(Be(O)))
1797
+ (u(), D(Ye(O)))
1798
1798
  ], !0)), 256))
1799
1799
  ]),
1800
1800
  _: 3
1801
1801
  })) : (u(!0), F(X, { key: 1 }, L(K(), (O) => y(U.$slots, O.props.slot, {}, () => [
1802
- (u(), C(Be(O)))
1802
+ (u(), D(Ye(O)))
1803
1803
  ], !0)), 256)),
1804
1804
  y(U.$slots, "q-btns", {}, void 0, !0)
1805
1805
  ], 64))
@@ -1814,52 +1814,52 @@ const ht = /* @__PURE__ */ rl(ul), qt = {
1814
1814
  }, 16),
1815
1815
  ((pe = (he = (we = o.value) == null ? void 0 : we.query) == null ? void 0 : he.container) == null ? void 0 : pe.inline) === !1 ? (u(), F("div", {
1816
1816
  key: 0,
1817
- style: Fe((ne = (de = o.value.query) == null ? void 0 : de.btns) == null ? void 0 : ne.style)
1817
+ style: Se((ne = (de = o.value.query) == null ? void 0 : de.btns) == null ? void 0 : ne.style)
1818
1818
  }, [
1819
- o.value.query.group ? (u(), C(j(dt), { key: 0 }, {
1819
+ o.value.query.group ? (u(), D(j(ft), { key: 0 }, {
1820
1820
  default: h(() => [
1821
1821
  (u(!0), F(X, null, L(K(), (n) => y(U.$slots, n.props.slot, {}, () => [
1822
- (u(), C(Be(n)))
1822
+ (u(), D(Ye(n)))
1823
1823
  ], !0)), 256)),
1824
1824
  y(U.$slots, "q-btns", {}, void 0, !0)
1825
1825
  ]),
1826
1826
  _: 3
1827
1827
  })) : (u(), F(X, { key: 1 }, [
1828
- ($e = (le = o.value.query) == null ? void 0 : le.btns) != null && $e.group ? (u(), C(j(dt), { key: 0 }, {
1828
+ ($e = (ae = o.value.query) == null ? void 0 : ae.btns) != null && $e.group ? (u(), D(j(ft), { key: 0 }, {
1829
1829
  default: h(() => [
1830
1830
  (u(!0), F(X, null, L(K(), (n) => y(U.$slots, n.props.slot, {}, () => [
1831
- (u(), C(Be(n)))
1831
+ (u(), D(Ye(n)))
1832
1832
  ], !0)), 256))
1833
1833
  ]),
1834
1834
  _: 3
1835
1835
  })) : (u(!0), F(X, { key: 1 }, L(K(), (n) => y(U.$slots, n.props.slot, {}, () => [
1836
- (u(), C(Be(n)))
1836
+ (u(), D(Ye(n)))
1837
1837
  ], !0)), 256)),
1838
1838
  y(U.$slots, "q-btns", {}, void 0, !0)
1839
1839
  ], 64))
1840
1840
  ], 4)) : me("", !0)
1841
1841
  ], 4),
1842
- d.value && !((E = (g = (se = o.value) == null ? void 0 : se.query) == null ? void 0 : g.more) != null && E.hidden) && o.value.query.more.mode == 2 ? (u(), C(ee, x({
1842
+ d.value && !((E = (g = (se = o.value) == null ? void 0 : se.query) == null ? void 0 : g.more) != null && E.hidden) && o.value.query.more.mode == 2 ? (u(), D(ee, T({
1843
1843
  key: 0,
1844
1844
  modelValue: d.value,
1845
- "onUpdate:modelValue": Y[6] || (Y[6] = (n) => d.value = n),
1845
+ "onUpdate:modelValue": B[6] || (B[6] = (n) => d.value = n),
1846
1846
  title: "更多查询",
1847
1847
  "show-close": !1
1848
1848
  }, o.value.query.more.dialog), ce({
1849
1849
  default: h(() => [
1850
- G(j(it), x({
1851
- onSubmit: Y[3] || (Y[3] = ft(() => {
1850
+ G(j(dt), T({
1851
+ onSubmit: B[3] || (B[3] = ct(() => {
1852
1852
  }, ["prevent"]))
1853
- }, j(Te)(o.value.query, (n) => !["query", "more", "reset"].includes(n)), { style: { width: "98%" } }), {
1853
+ }, j(qe)(o.value.query, (n) => !["query", "more", "reset"].includes(n)), { style: { width: "98%" } }), {
1854
1854
  default: h(() => [
1855
- G(Ct, {
1855
+ G(Dt, {
1856
1856
  modelValue: o.value,
1857
- "onUpdate:modelValue": Y[1] || (Y[1] = (n) => o.value = n),
1857
+ "onUpdate:modelValue": B[1] || (B[1] = (n) => o.value = n),
1858
1858
  info: k.value,
1859
- "onUpdate:info": Y[2] || (Y[2] = (n) => k.value = n),
1859
+ "onUpdate:info": B[2] || (B[2] = (n) => k.value = n),
1860
1860
  more: !0
1861
1861
  }, ce({ _: 2 }, [
1862
- L(U.$slots, (n, b, M) => ({
1862
+ L(U.$slots, (n, b, V) => ({
1863
1863
  name: b,
1864
1864
  fn: h((q) => [
1865
1865
  y(U.$slots, b, { model: o.value }, void 0, !0)
@@ -1875,20 +1875,20 @@ const ht = /* @__PURE__ */ rl(ul), qt = {
1875
1875
  (_ = (a = (s = (p = (v = o.value) == null ? void 0 : v.query) == null ? void 0 : p.more) == null ? void 0 : s.dialog) == null ? void 0 : a.footer) != null && _.hidden ? void 0 : {
1876
1876
  name: "footer",
1877
1877
  fn: h(() => [
1878
- W("div", yt(jt(o.value.query.more.dialog.footer)), [
1879
- G(j(Me), x(o.value.query.query, {
1880
- onClick: Y[4] || (Y[4] = (n) => o.value.query.query.click())
1878
+ W("div", gt(Lt(o.value.query.more.dialog.footer)), [
1879
+ G(j(Me), T(o.value.query.query, {
1880
+ onClick: B[4] || (B[4] = (n) => o.value.query.query.click())
1881
1881
  }), {
1882
1882
  default: h(() => [
1883
- Se(be(o.value.query.query.label), 1)
1883
+ Te(be(o.value.query.query.label), 1)
1884
1884
  ]),
1885
1885
  _: 1
1886
1886
  }, 16),
1887
- G(j(Me), x(o.value.query.reset, {
1888
- onClick: Y[5] || (Y[5] = (n) => o.value.query.reset.click())
1887
+ G(j(Me), T(o.value.query.reset, {
1888
+ onClick: B[5] || (B[5] = (n) => o.value.query.reset.click())
1889
1889
  }), {
1890
1890
  default: h(() => [
1891
- Se(be(o.value.query.reset.label), 1)
1891
+ Te(be(o.value.query.reset.label), 1)
1892
1892
  ]),
1893
1893
  _: 1
1894
1894
  }, 16)
@@ -1897,27 +1897,27 @@ const ht = /* @__PURE__ */ rl(ul), qt = {
1897
1897
  key: "0"
1898
1898
  }
1899
1899
  ]), 1040, ["modelValue"])) : me("", !0),
1900
- G(Lt, {
1900
+ G(zt, {
1901
1901
  duration: 300,
1902
1902
  name: "nested",
1903
1903
  style: { padding: "10px" }
1904
1904
  }, {
1905
1905
  default: h(() => {
1906
- var n, b, M;
1906
+ var n, b, V;
1907
1907
  return [
1908
- d.value && !((M = (b = (n = o.value) == null ? void 0 : n.query) == null ? void 0 : b.more) != null && M.hidden) && o.value.query.more.mode == 1 ? (u(), F("div", gl, [
1909
- W("div", bl, [
1910
- o.value.query.more.mode == 1 ? zt((u(), C(j(it), x({
1908
+ d.value && !((V = (b = (n = o.value) == null ? void 0 : n.query) == null ? void 0 : b.more) != null && V.hidden) && o.value.query.more.mode == 1 ? (u(), F("div", $l, [
1909
+ W("div", wl, [
1910
+ o.value.query.more.mode == 1 ? Ht((u(), D(j(dt), T({
1911
1911
  key: 0,
1912
- onSubmit: Y[7] || (Y[7] = ft(() => {
1912
+ onSubmit: B[7] || (B[7] = ct(() => {
1913
1913
  }, ["prevent"]))
1914
- }, j(Te)(o.value.query, (q) => !["query", "more", "reset"].includes(q))), {
1914
+ }, j(qe)(o.value.query, (q) => !["query", "more", "reset"].includes(q))), {
1915
1915
  default: h(() => [
1916
- (u(), C(Be(w({ slots: U.$slots }, !0))))
1916
+ (u(), D(Ye(w({ slots: U.$slots }, !0))))
1917
1917
  ]),
1918
1918
  _: 1
1919
1919
  }, 16)), [
1920
- [Ht, d.value]
1920
+ [Pt, d.value]
1921
1921
  ]) : me("", !0)
1922
1922
  ])
1923
1923
  ])) : me("", !0)
@@ -1928,10 +1928,10 @@ const ht = /* @__PURE__ */ rl(ul), qt = {
1928
1928
  ], 64);
1929
1929
  };
1930
1930
  }
1931
- }, wl = /* @__PURE__ */ We($l, [["__scopeId", "data-v-9adf0bb6"]]), El = { style: { padding: "0", margin: "0", "box-sizing": "border-box" } }, _l = { style: { padding: "10px", "box-sizing": "border-box" } }, kl = { style: { margin: "10px" } }, Cl = {
1931
+ }, _l = /* @__PURE__ */ Xe(El, [["__scopeId", "data-v-9adf0bb6"]]), kl = { style: { padding: "0", margin: "0", "box-sizing": "border-box" } }, Cl = { style: { padding: "10px", "box-sizing": "border-box" } }, Dl = { style: { margin: "10px" } }, Ml = {
1932
1932
  style: { display: "flex", "flex-wrap": "wrap" },
1933
1933
  id: "excelSortEl"
1934
- }, Dl = ["textContent"], Ml = { style: { width: "100%", display: "flex", padding: "10px", "box-sizing": "border-box", "justify-content": "center", "border-top": "1px solid #dcdfe6" } }, Vl = {
1934
+ }, Vl = ["textContent"], xl = { style: { width: "100%", display: "flex", padding: "10px", "box-sizing": "border-box", "justify-content": "center", "border-top": "1px solid #dcdfe6" } }, Tl = {
1935
1935
  __name: "check-excel-item",
1936
1936
  props: {
1937
1937
  items: Array,
@@ -1940,42 +1940,42 @@ const ht = /* @__PURE__ */ rl(ul), qt = {
1940
1940
  emits: ["excel"],
1941
1941
  setup(f, { emit: i }) {
1942
1942
  const o = f, t = i, e = te(o.items), d = () => {
1943
- e.value.forEach((V) => {
1944
- V.value = !0;
1943
+ e.value.forEach((x) => {
1944
+ x.value = !0;
1945
1945
  });
1946
1946
  }, k = () => {
1947
- e.value.forEach((V) => {
1948
- V.value = !1;
1947
+ e.value.forEach((x) => {
1948
+ x.value = !1;
1949
1949
  });
1950
1950
  }, S = () => {
1951
- t("excel", e.value, (V, D = "excel.xls") => {
1952
- if (!V) {
1951
+ t("excel", e.value, (x, M = "excel.xls") => {
1952
+ if (!x) {
1953
1953
  console.error("下载链接无效");
1954
1954
  return;
1955
1955
  }
1956
1956
  try {
1957
1957
  const w = document.createElement("a");
1958
- w.href = V, w.download = D, w.style.display = "none", document.body.appendChild(w), w.click(), document.body.removeChild(w);
1958
+ w.href = x, w.download = M, w.style.display = "none", document.body.appendChild(w), w.click(), document.body.removeChild(w);
1959
1959
  } catch (w) {
1960
1960
  console.error("下载文件时出现错误:", w);
1961
1961
  }
1962
1962
  });
1963
1963
  };
1964
- return ot(() => {
1965
- const V = new Tt(document.getElementById("excelSortEl"), {
1964
+ return rt(() => {
1965
+ const x = new Ft(document.getElementById("excelSortEl"), {
1966
1966
  animation: 150,
1967
1967
  onEnd: () => {
1968
- V.toArray();
1968
+ x.toArray();
1969
1969
  }
1970
- }), D = V;
1971
- Pt(() => {
1972
- D && D.destroy();
1970
+ }), M = x;
1971
+ Nt(() => {
1972
+ M && M.destroy();
1973
1973
  });
1974
- }), (V, D) => {
1975
- const w = B("el-divider"), H = B("el-alert"), K = B("el-checkbox"), U = B("el-button");
1976
- return u(), F("div", El, [
1977
- W("div", _l, [
1978
- W("div", kl, [
1974
+ }), (x, M) => {
1975
+ const w = I("el-divider"), z = I("el-alert"), K = I("el-checkbox"), U = I("el-button");
1976
+ return u(), F("div", kl, [
1977
+ W("div", Cl, [
1978
+ W("div", Dl, [
1979
1979
  W("a", {
1980
1980
  onClick: d,
1981
1981
  style: { cursor: "pointer" }
@@ -1986,42 +1986,42 @@ const ht = /* @__PURE__ */ rl(ul), qt = {
1986
1986
  style: { cursor: "pointer" }
1987
1987
  }, "全不选")
1988
1988
  ]),
1989
- G(H, {
1989
+ G(z, {
1990
1990
  title: "拖动列标题可以改变表格列的生成顺序 !",
1991
1991
  type: "warning",
1992
1992
  "show-icon": "",
1993
1993
  closable: !1,
1994
1994
  style: { "margin-bottom": "10px" }
1995
1995
  }),
1996
- D[0] || (D[0] = W("div", { style: { margin: "1px 0" } }, null, -1)),
1997
- W("div", Cl, [
1998
- (u(!0), F(X, null, L(e.value, (Y) => (u(), C(K, {
1996
+ M[0] || (M[0] = W("div", { style: { margin: "1px 0" } }, null, -1)),
1997
+ W("div", Ml, [
1998
+ (u(!0), F(X, null, L(e.value, (B) => (u(), D(K, {
1999
1999
  class: "check-box-hover",
2000
2000
  style: { width: "120px !important", height: "30px !important", border: "1px solid #dfe6ec", margin: "5px !important", "border-radius": "3px !important", "padding-left": "5px !important", display: "flex !important", "align-items": "center !important" },
2001
- "data-id": Y.key,
2002
- modelValue: Y.value,
2003
- "onUpdate:modelValue": (ie) => Y.value = ie,
2004
- key: Y.key,
2005
- title: Y.label
2001
+ "data-id": B.key,
2002
+ modelValue: B.value,
2003
+ "onUpdate:modelValue": (ie) => B.value = ie,
2004
+ key: B.key,
2005
+ title: B.label
2006
2006
  }, {
2007
2007
  default: h(() => [
2008
2008
  W("span", {
2009
- textContent: be(Y.label),
2009
+ textContent: be(B.label),
2010
2010
  style: { display: "block", "text-overflow": "ellipsis", width: "95px", overflow: "hidden" }
2011
- }, null, 8, Dl)
2011
+ }, null, 8, Vl)
2012
2012
  ]),
2013
2013
  _: 2
2014
2014
  }, 1032, ["data-id", "modelValue", "onUpdate:modelValue", "title"]))), 128))
2015
2015
  ])
2016
2016
  ]),
2017
- W("div", Ml, [
2017
+ W("div", xl, [
2018
2018
  G(U, {
2019
2019
  type: "primary",
2020
2020
  onClick: S,
2021
- disabled: e.value.filter((Y) => Y.value).length < 1
2021
+ disabled: e.value.filter((B) => B.value).length < 1
2022
2022
  }, {
2023
2023
  default: h(() => [
2024
- Se(be(o.commitText), 1)
2024
+ Te(be(o.commitText), 1)
2025
2025
  ]),
2026
2026
  _: 1
2027
2027
  }, 8, ["disabled"])
@@ -2029,45 +2029,45 @@ const ht = /* @__PURE__ */ rl(ul), qt = {
2029
2029
  ]);
2030
2030
  };
2031
2031
  }
2032
- }, xl = /* @__PURE__ */ We(Vl, [["__scopeId", "data-v-04791df1"]]), Ke = new ll("gyc");
2033
- Ke.version(1).stores({
2032
+ }, Sl = /* @__PURE__ */ Xe(Tl, [["__scopeId", "data-v-04791df1"]]), et = new ol("gyc");
2033
+ et.version(1).stores({
2034
2034
  tableInfo: "++id,[page+key],page,key,showCol,width,sort"
2035
2035
  });
2036
- async function pt(f, i, o = {}) {
2037
- if (await Ke.tableInfo.where({ page: f, key: i }).count() > 0) {
2038
- let e = await Ke.tableInfo.where({ page: f, key: i }).first();
2039
- return await Ke.tableInfo.put({ ...e, ...o }), "update success";
2036
+ async function vt(f, i, o = {}) {
2037
+ if (await et.tableInfo.where({ page: f, key: i }).count() > 0) {
2038
+ let e = await et.tableInfo.where({ page: f, key: i }).first();
2039
+ return await et.tableInfo.put({ ...e, ...o }), "update success";
2040
2040
  } else {
2041
2041
  let e = { showCol: !0, width: "auto", sort: 0, ...o };
2042
- return await Ke.tableInfo.add({ page: f, key: i, ...e }), "add success";
2042
+ return await et.tableInfo.add({ page: f, key: i, ...e }), "add success";
2043
2043
  }
2044
2044
  }
2045
- async function Dt(f, i, o = {}) {
2045
+ async function Mt(f, i, o = {}) {
2046
2046
  const t = i.map(
2047
- (e) => pt(f, e.value, { ...e, ...o })
2047
+ (e) => vt(f, e.value, { ...e, ...o })
2048
2048
  );
2049
2049
  return await Promise.all(t), "batch update success";
2050
2050
  }
2051
- async function Sl(f) {
2052
- return await Ke.tableInfo.where({ page: f }).toArray();
2051
+ async function Fl(f) {
2052
+ return await et.tableInfo.where({ page: f }).toArray();
2053
2053
  }
2054
- async function Tl(f) {
2054
+ async function ql(f) {
2055
2055
  try {
2056
- const i = await Ke.tableInfo.where({ page: f }).delete();
2056
+ const i = await et.tableInfo.where({ page: f }).delete();
2057
2057
  return console.log("删除了" + i + "条数据"), i;
2058
2058
  } catch (i) {
2059
2059
  throw console.error("删除表格项设置信息时出错:", i), i;
2060
2060
  }
2061
2061
  }
2062
- const Fl = {
2062
+ const Ol = {
2063
2063
  style: { margin: "10px" },
2064
2064
  class: "allcheck"
2065
- }, ql = {
2065
+ }, Al = {
2066
2066
  id: "cols",
2067
2067
  style: { display: "flex", "flex-wrap": "wrap", margin: "0 !important", padding: "0 !important" }
2068
- }, Ol = ["textContent"], Il = {
2068
+ }, Il = ["textContent"], Bl = {
2069
2069
  __name: "columns-setting",
2070
- props: /* @__PURE__ */ Pe({
2070
+ props: /* @__PURE__ */ Ne({
2071
2071
  tuid: {
2072
2072
  type: String,
2073
2073
  required: !0
@@ -2078,20 +2078,20 @@ const Fl = {
2078
2078
  }),
2079
2079
  emits: ["update:modelValue"],
2080
2080
  setup(f) {
2081
- const i = f, o = te([]), t = Ne(f, "modelValue"), e = async (D, w) => {
2082
- D ? t.value[w].showCol = !0 : t.value[w].showCol = !1;
2081
+ const i = f, o = te([]), t = We(f, "modelValue"), e = async (M, w) => {
2082
+ M ? t.value[w].showCol = !0 : t.value[w].showCol = !1;
2083
2083
  try {
2084
- await pt(i.tuid, w, { showCol: D });
2085
- } catch (H) {
2086
- console.error("列显示状态保存信息时出错:", H), Ye({
2084
+ await vt(i.tuid, w, { showCol: M });
2085
+ } catch (z) {
2086
+ console.error("列显示状态保存信息时出错:", z), Ue({
2087
2087
  type: "error",
2088
2088
  message: "列显示状态保存信息失败!"
2089
2089
  });
2090
2090
  }
2091
2091
  }, d = () => {
2092
- const D = document.getElementById("cols");
2093
- if (D) {
2094
- let w = Tt.create(D, {
2092
+ const M = document.getElementById("cols");
2093
+ if (M) {
2094
+ let w = Ft.create(M, {
2095
2095
  animation: 150,
2096
2096
  filter: ".filtered",
2097
2097
  //
@@ -2099,11 +2099,11 @@ const Fl = {
2099
2099
  onEnd: () => {
2100
2100
  w.toArray().forEach(async (K, U) => {
2101
2101
  t.value[K].sort = U;
2102
- let Y = t.value[K].width || "auto";
2102
+ let B = t.value[K].width || "auto";
2103
2103
  try {
2104
- await pt(i.tuid, K, { sort: U, width: Y });
2104
+ await vt(i.tuid, K, { sort: U, width: B });
2105
2105
  } catch (ie) {
2106
- console.error("列排序和宽度保存信息时出错:", ie), Ye({
2106
+ console.error("列排序和宽度保存信息时出错:", ie), Ue({
2107
2107
  type: "error",
2108
2108
  message: "列排序和宽度保存信息失败!"
2109
2109
  });
@@ -2114,60 +2114,60 @@ const Fl = {
2114
2114
  }
2115
2115
  }, k = async () => {
2116
2116
  try {
2117
- const D = o.value.map((w) => (w.showCol = !0, t.value[w.value].showCol = !0, w));
2118
- await Dt(i.tuid, D, { showCol: !0 });
2119
- } catch (D) {
2120
- console.error("全选列保存信息时出错:", D), Ye({
2117
+ const M = o.value.map((w) => (w.showCol = !0, t.value[w.value].showCol = !0, w));
2118
+ await Mt(i.tuid, M, { showCol: !0 });
2119
+ } catch (M) {
2120
+ console.error("全选列保存信息时出错:", M), Ue({
2121
2121
  type: "error",
2122
2122
  message: "全选列保存信息失败!"
2123
2123
  });
2124
2124
  }
2125
2125
  }, S = async () => {
2126
2126
  try {
2127
- const D = o.value.filter((w) => !w.alwaysShow && w.value != "control");
2128
- D.forEach((w) => {
2127
+ const M = o.value.filter((w) => !w.alwaysShow && w.value != "control");
2128
+ M.forEach((w) => {
2129
2129
  w.showCol = !1, t.value[w.value].showCol = !1;
2130
- }), await Dt(i.tuid, D, { showCol: !1 });
2131
- } catch (D) {
2132
- console.error("清除列保存信息时出错:", D), Ye({
2130
+ }), await Mt(i.tuid, M, { showCol: !1 });
2131
+ } catch (M) {
2132
+ console.error("清除列保存信息时出错:", M), Ue({
2133
2133
  type: "error",
2134
2134
  message: "清除列保存信息失败!"
2135
2135
  });
2136
2136
  }
2137
- }, V = () => {
2138
- Vt.confirm("确定要复位吗?", "提示", {
2137
+ }, x = () => {
2138
+ xt.confirm("确定要复位吗?", "提示", {
2139
2139
  confirmButtonText: "确定",
2140
2140
  cancelButtonText: "取消",
2141
2141
  type: "warning"
2142
2142
  }).then(() => {
2143
- Tl(i.tuid).then((D) => {
2143
+ ql(i.tuid).then((M) => {
2144
2144
  window.location.reload();
2145
- }).catch((D) => {
2146
- console.error("复位操作出错:", D), Ye({
2145
+ }).catch((M) => {
2146
+ console.error("复位操作出错:", M), Ue({
2147
2147
  type: "info",
2148
2148
  message: "复位失败!"
2149
2149
  });
2150
2150
  });
2151
2151
  });
2152
2152
  };
2153
- return ot(async () => {
2154
- o.value = Object.entries(t.value).filter(([, D]) => D.visible !== !1).filter(([, D]) => D.type != "hidden").map(([D, w]) => ({
2153
+ return rt(async () => {
2154
+ o.value = Object.entries(t.value).filter(([, M]) => M.visible !== !1).filter(([, M]) => M.type != "hidden").map(([M, w]) => ({
2155
2155
  label: w.label,
2156
- value: D,
2156
+ value: M,
2157
2157
  alwaysShow: w.alwaysShow,
2158
2158
  showCol: w.showCol !== !1,
2159
2159
  sort: w.sort || 0,
2160
2160
  width: w.width || "auto"
2161
- })).sort((D, w) => D.sort - w.sort), d();
2162
- }), (D, w) => {
2163
- const H = B("el-divider"), K = B("el-alert"), U = B("el-checkbox");
2161
+ })).sort((M, w) => M.sort - w.sort), d();
2162
+ }), (M, w) => {
2163
+ const z = I("el-divider"), K = I("el-alert"), U = I("el-checkbox");
2164
2164
  return u(), F("div", null, [
2165
- W("div", Fl, [
2165
+ W("div", Ol, [
2166
2166
  W("a", { onClick: k }, "全选"),
2167
- G(H, { direction: "vertical" }),
2167
+ G(z, { direction: "vertical" }),
2168
2168
  W("a", { onClick: S }, "全不选"),
2169
- G(H, { direction: "vertical" }),
2170
- W("a", { onClick: V }, "复位")
2169
+ G(z, { direction: "vertical" }),
2170
+ W("a", { onClick: x }, "复位")
2171
2171
  ]),
2172
2172
  G(K, {
2173
2173
  title: "拖动表格列标题可以改变表格列显示顺序 !",
@@ -2177,24 +2177,24 @@ const Fl = {
2177
2177
  style: { "margin-bottom": "10px" }
2178
2178
  }),
2179
2179
  W("div", null, [
2180
- W("div", ql, [
2181
- (u(!0), F(X, null, L(o.value, (Y) => (u(), C(U, {
2182
- modelValue: Y.showCol,
2183
- "onUpdate:modelValue": (ie) => Y.showCol = ie,
2184
- "data-id": Y.value,
2185
- class: St(["check-box-hover", Y.value == "control" ? "filtered" : ""]),
2186
- onChange: (ie) => e(ie, Y.value),
2180
+ W("div", Al, [
2181
+ (u(!0), F(X, null, L(o.value, (B) => (u(), D(U, {
2182
+ modelValue: B.showCol,
2183
+ "onUpdate:modelValue": (ie) => B.showCol = ie,
2184
+ "data-id": B.value,
2185
+ class: St(["check-box-hover", B.value == "control" ? "filtered" : ""]),
2186
+ onChange: (ie) => e(ie, B.value),
2187
2187
  style: { width: "125px !important", height: "30px !important", border: "1px solid #dfe6ec", margin: "5px !important", "border-radius": "2px !important", "padding-left": "5px !important", display: "flex !important", "align-items": "center !important" },
2188
- value: Y.value,
2189
- title: Y.label,
2190
- disabled: Y.alwaysShow,
2191
- key: Y.value
2188
+ value: B.value,
2189
+ title: B.label,
2190
+ disabled: B.alwaysShow,
2191
+ key: B.value
2192
2192
  }, {
2193
2193
  default: h(() => [
2194
2194
  W("span", {
2195
- textContent: be(Y.label),
2195
+ textContent: be(B.label),
2196
2196
  style: { display: "block", "text-overflow": "ellipsis", width: "95px", overflow: "hidden" }
2197
- }, null, 8, Ol)
2197
+ }, null, 8, Il)
2198
2198
  ]),
2199
2199
  _: 2
2200
2200
  }, 1032, ["modelValue", "onUpdate:modelValue", "data-id", "class", "onChange", "value", "title", "disabled"]))), 128))
@@ -2203,7 +2203,7 @@ const Fl = {
2203
2203
  ]);
2204
2204
  };
2205
2205
  }
2206
- }, Al = /* @__PURE__ */ We(Il, [["__scopeId", "data-v-70fe569f"]]), Bl = { class: "title" }, Yl = { class: "content" }, Ul = {
2206
+ }, Yl = /* @__PURE__ */ Xe(Bl, [["__scopeId", "data-v-70fe569f"]]), Ul = { class: "title" }, Rl = { class: "content" }, jl = {
2207
2207
  __name: "g-cell-toopTip",
2208
2208
  props: {
2209
2209
  content: {
@@ -2217,44 +2217,44 @@ const Fl = {
2217
2217
  },
2218
2218
  setup(f) {
2219
2219
  const i = f, o = () => {
2220
- i.content ? (navigator.clipboard.writeText(i.content), Ye.success("复制成功")) : Ye.warning("没有内容可复制");
2220
+ i.content ? (navigator.clipboard.writeText(i.content), Ue.success("复制成功")) : Ue.warning("没有内容可复制");
2221
2221
  };
2222
2222
  return (t, e) => (u(), F("div", {
2223
2223
  class: "g-cell-toopTip",
2224
- style: Fe({ width: i.column.width + "px" })
2224
+ style: Se({ width: i.column.width + "px" })
2225
2225
  }, [
2226
- W("div", Bl, [
2226
+ W("div", Ul, [
2227
2227
  e[0] || (e[0] = W("span", { class: "title-text" }, "内容", -1)),
2228
2228
  W("span", {
2229
2229
  class: "copy-btn",
2230
2230
  onClick: o,
2231
2231
  title: "复制内容"
2232
2232
  }, [
2233
- G(j(Kt))
2233
+ G(j(tl))
2234
2234
  ])
2235
2235
  ]),
2236
- W("div", Yl, be(i.content), 1)
2236
+ W("div", Rl, be(i.content), 1)
2237
2237
  ], 4));
2238
2238
  }
2239
- }, Rl = /* @__PURE__ */ We(Ul, [["__scopeId", "data-v-f28912da"]]), jl = { key: 0 }, Ll = { style: { display: "flex", "margin-top": "-2px" } }, zl = { style: { display: "flex", flex: "1" } }, Hl = {
2239
+ }, Ll = /* @__PURE__ */ Xe(jl, [["__scopeId", "data-v-f28912da"]]), zl = { key: 0 }, Hl = { style: { display: "flex", "margin-top": "-2px" } }, Pl = { style: { display: "flex", flex: "1" } }, Nl = {
2240
2240
  style: { display: "flex", "justify-content": "center", width: "100%", height: "100%" },
2241
2241
  id: "table-form"
2242
- }, Pl = { key: 1 }, Nl = { style: { display: "flex" } }, Wl = { style: { display: "flex", flex: "1" } }, Xl = { class: "g-table-container" }, Gl = {
2242
+ }, Wl = { key: 1 }, Xl = { style: { display: "flex" } }, Gl = { style: { display: "flex", flex: "1" } }, Ql = { class: "g-table-container" }, Zl = {
2243
2243
  key: 0,
2244
2244
  class: "table-query-container"
2245
- }, Ql = { class: "table-container" }, Zl = ["innerHTML"], Jl = /* @__PURE__ */ Object.assign({
2245
+ }, Jl = { class: "table-container" }, Kl = ["innerHTML"], ea = /* @__PURE__ */ Object.assign({
2246
2246
  name: "g-table",
2247
2247
  inheritAttrs: !1
2248
2248
  }, {
2249
2249
  __name: "g-table",
2250
- props: /* @__PURE__ */ Pe({
2250
+ props: /* @__PURE__ */ Ne({
2251
2251
  name: String,
2252
2252
  require: !0
2253
2253
  }, {
2254
2254
  modelValue: { required: !0 },
2255
2255
  modelModifiers: {}
2256
2256
  }),
2257
- emits: /* @__PURE__ */ Pe([
2257
+ emits: /* @__PURE__ */ Ne([
2258
2258
  "load",
2259
2259
  "open",
2260
2260
  "delete",
@@ -2264,10 +2264,10 @@ const Fl = {
2264
2264
  "row-save"
2265
2265
  ], ["update:modelValue"]),
2266
2266
  setup(f, { expose: i, emit: o }) {
2267
- var Ae, Ue, rt, tt, ut, nt, st;
2268
- const t = o, e = Ne(f, "modelValue"), d = Et("options"), k = te({}), S = te(null), V = te(null), D = Object.entries(e.value).filter(([l, r]) => (r == null ? void 0 : r.search) !== void 0).map(([l, r]) => [l, r.value]);
2269
- k.value = Object.fromEntries(D);
2270
- const w = te(!1), H = [
2267
+ var Re, ut, lt, nt, st, it, at;
2268
+ const t = o, e = We(f, "modelValue"), d = _t("options"), k = te({}), S = te(null), x = te(null), M = Object.entries(e.value).filter(([l, r]) => (r == null ? void 0 : r.search) !== void 0).map(([l, r]) => [l, r.value]);
2269
+ k.value = Object.fromEntries(M);
2270
+ const w = te(!1), z = [
2271
2271
  "type",
2272
2272
  "index",
2273
2273
  "label",
@@ -2296,7 +2296,7 @@ const Fl = {
2296
2296
  "filter-multiple",
2297
2297
  "filter-method",
2298
2298
  "filtered-value"
2299
- ], K = te([]), U = _t(), Y = te({}), ie = te([]), ee = te(null), re = te(""), ue = te(null), we = te({
2299
+ ], K = te([]), U = kt(), B = te({}), ie = te([]), ee = te(null), re = te(""), ue = te(null), we = te({
2300
2300
  autoWatch: !1,
2301
2301
  data: [],
2302
2302
  border: !0,
@@ -2310,26 +2310,26 @@ const Fl = {
2310
2310
  t(
2311
2311
  "load",
2312
2312
  { currentPage: l, pageSize: r, ...k.value },
2313
- (c = [], T = 0, { fields: P = [], sums: N = {} } = {}) => {
2313
+ (c = [], C = 0, { fields: P = [], sums: N = {} } = {}) => {
2314
2314
  var Z, Ee;
2315
2315
  if (!Array.isArray(c)) {
2316
- console.error("从 load 事件回调中接收到的数据不是数组格式。"), Ye.error("数据加载失败,请检查数据格式。");
2316
+ console.error("从 load 事件回调中接收到的数据不是数组格式。"), Ue.error("数据加载失败,请检查数据格式。");
2317
2317
  return;
2318
2318
  }
2319
- if (typeof T != "number") {
2320
- console.error("从 load 事件回调中接收到的 total 不是数字格式。"), Ye.error("数据加载失败,请检查数据格式。");
2319
+ if (typeof C != "number") {
2320
+ console.error("从 load 事件回调中接收到的 total 不是数字格式。"), Ue.error("数据加载失败,请检查数据格式。");
2321
2321
  return;
2322
2322
  }
2323
- e.value.table.data = c, ((Ee = (Z = e.value.control) == null ? void 0 : Z.add) == null ? void 0 : Ee.inline) === !0 && e.value.table.data.unshift(ee.value), e.value.table.page.total = T, ie.value = P, Y.value = N, Ve(), re.value = Math.random().toString(36).substring(2);
2323
+ e.value.table.data = c, ((Ee = (Z = e.value.control) == null ? void 0 : Z.add) == null ? void 0 : Ee.inline) === !0 && e.value.table.data.unshift(ee.value), e.value.table.page.total = C, ie.value = P, B.value = N, Ve(), re.value = Math.random().toString(36).substring(2);
2324
2324
  },
2325
2325
  ee.value
2326
2326
  );
2327
2327
  } catch (c) {
2328
- console.error("触发 load 事件时出现错误:", c), Ye.error("数据加载时出现错误,请稍后重试。");
2328
+ console.error("触发 load 事件时出现错误:", c), Ue.error("数据加载时出现错误,请稍后重试。");
2329
2329
  }
2330
2330
  },
2331
2331
  onHeaderDragend: (l, r, c) => {
2332
- pt(ue.value, c.property, {
2332
+ vt(ue.value, c.property, {
2333
2333
  width: l
2334
2334
  });
2335
2335
  },
@@ -2359,7 +2359,7 @@ const Fl = {
2359
2359
  },
2360
2360
  dblclickType: "edit",
2361
2361
  "summary-method": ({ columns: l, data: r }, c) => c,
2362
- onSortChange: ({ column: l, prop: r, order: c }, T) => {
2362
+ onSortChange: ({ column: l, prop: r, order: c }, C) => {
2363
2363
  }
2364
2364
  });
2365
2365
  e.value.table = xe(
@@ -2376,7 +2376,7 @@ const Fl = {
2376
2376
  "min-width": 100,
2377
2377
  width: 160,
2378
2378
  fixed: "right",
2379
- style: { ...(Ue = (Ae = e.value) == null ? void 0 : Ae.control) == null ? void 0 : Ue.style },
2379
+ style: { ...(ut = (Re = e.value) == null ? void 0 : Re.control) == null ? void 0 : ut.style },
2380
2380
  validate: async (l) => await !0,
2381
2381
  add: {
2382
2382
  label: "新增",
@@ -2391,22 +2391,22 @@ const Fl = {
2391
2391
  text: !0,
2392
2392
  type: "success",
2393
2393
  mode: "dialog",
2394
- auth: (l, r, c, T) => !1
2394
+ auth: (l, r, c, C) => !1
2395
2395
  },
2396
2396
  edit: {
2397
2397
  label: "编辑",
2398
2398
  text: !0,
2399
2399
  type: "primary",
2400
2400
  mode: "dialog",
2401
- auth: (l, r, c, T) => !0
2401
+ auth: (l, r, c, C) => !0
2402
2402
  },
2403
2403
  delete: {
2404
2404
  text: !0,
2405
2405
  label: "删除",
2406
2406
  type: "danger",
2407
- auth: (l, r, c, T) => {
2407
+ auth: (l, r, c, C) => {
2408
2408
  var P, N, Z;
2409
- return !(((Z = (N = (P = T.value) == null ? void 0 : P.control) == null ? void 0 : N.add) == null ? void 0 : Z.inline) === !0 && c === 0);
2409
+ return !(((Z = (N = (P = C.value) == null ? void 0 : P.control) == null ? void 0 : N.add) == null ? void 0 : Z.inline) === !0 && c === 0);
2410
2410
  },
2411
2411
  dialog: {
2412
2412
  message: "此操作将永久删除该文件, 是否继续?",
@@ -2444,17 +2444,17 @@ const Fl = {
2444
2444
  return ((c = (r = (l = e.value) == null ? void 0 : l.control) == null ? void 0 : r.add) == null ? void 0 : c.inline) === !0;
2445
2445
  }
2446
2446
  },
2447
- dropdown: (l, r, c, T) => ({
2447
+ dropdown: (l, r, c, C) => ({
2448
2448
  label: "编辑",
2449
2449
  operate: "edit",
2450
2450
  "split-button": !0,
2451
2451
  type: "primary",
2452
2452
  size: "small",
2453
- auth: () => !(T.control.add.inline === !0 && c == 0),
2453
+ auth: () => !(C.control.add.inline === !0 && c == 0),
2454
2454
  onClick: () => {
2455
2455
  var N;
2456
- let P = (N = pe(l, r, c, T)) == null ? void 0 : N.operate;
2457
- P === "edit" ? v(l, r, c, T) : P === "delete" ? p(l, r, c, T) : P === "view" && s(l, r, c, T);
2456
+ let P = (N = pe(l, r, c, C)) == null ? void 0 : N.operate;
2457
+ P === "edit" ? v(l, r, c, C) : P === "delete" ? p(l, r, c, C) : P === "view" && s(l, r, c, C);
2458
2458
  },
2459
2459
  "button-props": { round: !0, plain: !0 }
2460
2460
  })
@@ -2462,29 +2462,29 @@ const Fl = {
2462
2462
  e.value.control = xe(
2463
2463
  he,
2464
2464
  d == null ? void 0 : d.control,
2465
- (rt = e.value) == null ? void 0 : rt.control
2465
+ (lt = e.value) == null ? void 0 : lt.control
2466
2466
  );
2467
- const pe = (l, r, c, T) => {
2468
- var Ee, ke, Re, je, Le, Xe;
2467
+ const pe = (l, r, c, C) => {
2468
+ var Ee, ke, je, Le, ze, Ge;
2469
2469
  if (!l || !r || c == null)
2470
2470
  return console.warn("mergeDropdown: 缺少必要的参数(row, column或index)"), {};
2471
- const P = ((Ee = he.dropdown) == null ? void 0 : Ee.call(he, l, r, c, T)) || {}, N = ((Re = (ke = d == null ? void 0 : d.control) == null ? void 0 : ke.dropdown) == null ? void 0 : Re.call(ke, l, r, c, T)) || {}, Z = ((Xe = (Le = (je = e.value) == null ? void 0 : je.control) == null ? void 0 : Le.dropdown) == null ? void 0 : Xe.call(Le, l, r, c, T)) || {};
2471
+ const P = ((Ee = he.dropdown) == null ? void 0 : Ee.call(he, l, r, c, C)) || {}, N = ((je = (ke = d == null ? void 0 : d.control) == null ? void 0 : ke.dropdown) == null ? void 0 : je.call(ke, l, r, c, C)) || {}, Z = ((Ge = (ze = (Le = e.value) == null ? void 0 : Le.control) == null ? void 0 : ze.dropdown) == null ? void 0 : Ge.call(ze, l, r, c, C)) || {};
2472
2472
  return xe(P, N, Z) || {};
2473
2473
  }, de = {
2474
2474
  type: "hidden",
2475
2475
  "min-width": 100,
2476
2476
  align: "center",
2477
- formatter: (l, r, c, T) => c,
2478
- "tooltip-formatter": ({ row: l, column: r, cellValue: c }) => Ie(Rl, { content: c, column: r })
2477
+ formatter: (l, r, c, C) => c,
2478
+ "tooltip-formatter": ({ row: l, column: r, cellValue: c }) => Ae(Ll, { content: c, column: r })
2479
2479
  };
2480
2480
  e.value.tableColumns = xe(
2481
2481
  de,
2482
2482
  d == null ? void 0 : d.tableColumns,
2483
- (tt = e.value) == null ? void 0 : tt.tableColumns
2483
+ (nt = e.value) == null ? void 0 : nt.tableColumns
2484
2484
  ), e.value.form = xe(
2485
- qt,
2485
+ Ot,
2486
2486
  d == null ? void 0 : d.form,
2487
- (ut = e.value) == null ? void 0 : ut.form
2487
+ (st = e.value) == null ? void 0 : st.form
2488
2488
  );
2489
2489
  const ne = {
2490
2490
  type: "hidden",
@@ -2496,9 +2496,9 @@ const Fl = {
2496
2496
  e.value.formItems = xe(
2497
2497
  ne,
2498
2498
  d == null ? void 0 : d.formItems,
2499
- (nt = e == null ? void 0 : e.value) == null ? void 0 : nt.formItems
2499
+ (it = e == null ? void 0 : e.value) == null ? void 0 : it.formItems
2500
2500
  );
2501
- const le = {
2501
+ const ae = {
2502
2502
  title: "编辑",
2503
2503
  mode: "drawer",
2504
2504
  type: "hidden",
@@ -2511,36 +2511,36 @@ const Fl = {
2511
2511
  overflow: !0,
2512
2512
  max: {
2513
2513
  style: {},
2514
- icon: () => Ie(el)
2514
+ icon: () => Ae(ll)
2515
2515
  },
2516
2516
  min: {
2517
2517
  style: {},
2518
- icon: () => Ie(tl)
2518
+ icon: () => Ae(al)
2519
2519
  // 最小化图标
2520
2520
  }
2521
2521
  };
2522
2522
  e.value.dialog = xe(
2523
- le,
2523
+ ae,
2524
2524
  d == null ? void 0 : d.dialog,
2525
- (st = e.value) == null ? void 0 : st.dialog
2525
+ (at = e.value) == null ? void 0 : at.dialog
2526
2526
  );
2527
2527
  const $e = (l, r) => {
2528
2528
  let c = r;
2529
2529
  if (l.decimals && !isNaN(parseFloat(r)) && (typeof l.decimals == "number" ? c = parseFloat(c).toFixed(l.decimals) : typeof l.decimals == "object" && l.decimals.num && (l.decimals.pad ? c = parseFloat(c).toFixed(l.decimals.num) : c = parseFloat(
2530
2530
  parseFloat(c).toFixed(l.decimals.num)
2531
- ).toString())), ["date", "datetime", "time", "time-select"].includes(l.type) && ht(r).isValid()) {
2531
+ ).toString())), ["date", "datetime", "time", "time-select"].includes(l.type) && yt(r).isValid()) {
2532
2532
  const P = {
2533
2533
  date: "YYYY-MM-DD",
2534
2534
  datetime: "YYYY-MM-DD HH:mm:ss",
2535
2535
  time: "HH:mm:ss"
2536
2536
  };
2537
- c = l.format ? ht(c).format(l.format) : ht(c).format(P[l.type]);
2537
+ c = l.format ? yt(c).format(l.format) : yt(c).format(P[l.type]);
2538
2538
  }
2539
- return l.type === "money" && (l.align = l.align || "right", l.width = l.width || 130, c = `<span title="${wt(
2539
+ return l.type === "money" && (l.align = l.align || "right", l.width = l.width || 130, c = `<span title="${Et(
2540
2540
  parseFloat(c)
2541
- )}">${ma(parseFloat(c))}</span>`), l.prefix && c && (c = `<span>${l.prefix}${c}</span>`), l.suffix && c && (c = `${c}<span>${l.suffix}</span>`), c;
2541
+ )}">${va(parseFloat(c))}</span>`), l.prefix && c && (c = `<span>${l.prefix}${c}</span>`), l.suffix && c && (c = `${c}<span>${l.suffix}</span>`), c;
2542
2542
  }, se = (l) => {
2543
- k.value = Object.fromEntries(D), e.value.table.load();
2543
+ k.value = Object.fromEntries(M), e.value.table.load();
2544
2544
  }, g = (l) => {
2545
2545
  k.value = l, e.value.table.load();
2546
2546
  }, E = async (l) => {
@@ -2548,72 +2548,72 @@ const Fl = {
2548
2548
  e.value.form.modalState = "add";
2549
2549
  try {
2550
2550
  if (!await ((r = e.value.control) == null ? void 0 : r.validate("add", { m: l }))) return;
2551
- } catch (T) {
2552
- console.error("验证失败:", T);
2551
+ } catch (C) {
2552
+ console.error("验证失败:", C);
2553
2553
  return;
2554
2554
  }
2555
- (c = e.value.control.add) != null && c.click ? e.value.control.add.click(l) : e.value.control.add.inline === !0 ? (e.value.table.data.unshift(ee.value), t("open", "row-add", { initFormData: ee.value })) : (e.value.form.disabled = !1, e.value.form.submit.hidden = !1, e.value.form.reset.hidden = !1, e.value.dialog.mode = e.value.control.add.mode, e.value.dialog.title = e.value.control.add.label, Object.keys(ee.value).forEach((T) => {
2556
- e.value[T] && (e.value[T].value = ee.value[T]);
2557
- }), w.value = !0, t("open", "add", { m: l }), ct());
2558
- }, v = async (l, r, c, T) => {
2555
+ (c = e.value.control.add) != null && c.click ? e.value.control.add.click(l) : e.value.control.add.inline === !0 ? (e.value.table.data.unshift(ee.value), t("open", "row-add", { initFormData: ee.value })) : (e.value.form.disabled = !1, e.value.form.submit.hidden = !1, e.value.form.reset.hidden = !1, e.value.dialog.mode = e.value.control.add.mode, e.value.dialog.title = e.value.control.add.label, Object.keys(ee.value).forEach((C) => {
2556
+ e.value[C] && (e.value[C].value = ee.value[C]);
2557
+ }), w.value = !0, t("open", "add", { m: l }), mt());
2558
+ }, v = async (l, r, c, C) => {
2559
2559
  var P, N;
2560
2560
  e.value.form.modalState = "edit";
2561
2561
  try {
2562
- if (!await ((P = e.value.control) == null ? void 0 : P.validate("edit", { row: l, column: r, $index: c, m: T }))) return;
2562
+ if (!await ((P = e.value.control) == null ? void 0 : P.validate("edit", { row: l, column: r, $index: c, m: C }))) return;
2563
2563
  } catch (Z) {
2564
2564
  console.error("验证失败:", Z);
2565
2565
  return;
2566
2566
  }
2567
- (N = e.value.control.edit) != null && N.click ? e.value.control.edit.click(l, r, c, T) : (e.value.form.disabled = !1, e.value.form.submit.hidden = !1, e.value.form.reset.hidden = !1, e.value.dialog.mode = e.value.control.edit.mode, e.value.dialog.title = e.value.control.edit.label, Object.keys(l).forEach((Z) => {
2567
+ (N = e.value.control.edit) != null && N.click ? e.value.control.edit.click(l, r, c, C) : (e.value.form.disabled = !1, e.value.form.submit.hidden = !1, e.value.form.reset.hidden = !1, e.value.dialog.mode = e.value.control.edit.mode, e.value.dialog.title = e.value.control.edit.label, Object.keys(l).forEach((Z) => {
2568
2568
  e.value[Z] && (e.value[Z].value = l[Z]);
2569
- }), w.value = !0, t("open", "edit", { m: T, row: l, column: r, $index: c }), ct());
2570
- }, p = async (l, r, c, T) => {
2569
+ }), w.value = !0, t("open", "edit", { m: C, row: l, column: r, $index: c }), mt());
2570
+ }, p = async (l, r, c, C) => {
2571
2571
  var P, N;
2572
2572
  try {
2573
- if (!await ((P = e.value.control) == null ? void 0 : P.validate("delete", { row: l, column: r, $index: c, m: T }))) return;
2573
+ if (!await ((P = e.value.control) == null ? void 0 : P.validate("delete", { row: l, column: r, $index: c, m: C }))) return;
2574
2574
  } catch (Z) {
2575
2575
  console.error("验证失败:", Z);
2576
2576
  return;
2577
2577
  }
2578
2578
  if ((N = e.value.control.delete) != null && N.click)
2579
- e.value.control.delete.click(l, r, c, T);
2579
+ e.value.control.delete.click(l, r, c, C);
2580
2580
  else {
2581
2581
  let { message: Z, title: Ee, options: ke } = e.value.control.delete.dialog;
2582
- Vt.confirm(Z, Ee, ke).then(() => {
2582
+ xt.confirm(Z, Ee, ke).then(() => {
2583
2583
  t(
2584
2584
  "delete",
2585
- { row: l, column: r, $index: c, m: T },
2586
- (Re = !0, je = !1) => {
2587
- Re && (e.value.table.data.splice(c, 1), e.value.table.page.total--), je && e.value.table.load();
2585
+ { row: l, column: r, $index: c, m: C },
2586
+ (je = !0, Le = !1) => {
2587
+ je && (e.value.table.data.splice(c, 1), e.value.table.page.total--), Le && e.value.table.load();
2588
2588
  }
2589
2589
  );
2590
2590
  }).catch(() => {
2591
2591
  });
2592
2592
  }
2593
- }, s = async (l, r, c, T) => {
2593
+ }, s = async (l, r, c, C) => {
2594
2594
  var P, N;
2595
2595
  e.value.form.modalState = void 0;
2596
2596
  try {
2597
- if (!await ((P = e.value.control) == null ? void 0 : P.validate("view", { row: l, column: r, $index: c, m: T }))) return;
2597
+ if (!await ((P = e.value.control) == null ? void 0 : P.validate("view", { row: l, column: r, $index: c, m: C }))) return;
2598
2598
  } catch (Z) {
2599
2599
  console.error("验证失败:", Z);
2600
2600
  return;
2601
2601
  }
2602
- (N = e.value.control.view) != null && N.click ? e.value.control.view.click(l, r, c, T) : (e.value.form.disabled = !0, e.value.form.submit.hidden = !0, e.value.form.reset.hidden = !0, e.value.dialog.mode = e.value.control.view.mode, e.value.dialog.title = e.value.control.view.label, Object.keys(l).forEach((Z) => {
2602
+ (N = e.value.control.view) != null && N.click ? e.value.control.view.click(l, r, c, C) : (e.value.form.disabled = !0, e.value.form.submit.hidden = !0, e.value.form.reset.hidden = !0, e.value.dialog.mode = e.value.control.view.mode, e.value.dialog.title = e.value.control.view.label, Object.keys(l).forEach((Z) => {
2603
2603
  e.value[Z] && (e.value[Z].value = l[Z]);
2604
- }), w.value = !0, t("open", "view", { m: T, row: l, column: r, $index: c }), ct());
2605
- }, a = (l, r, c, T) => {
2604
+ }), w.value = !0, t("open", "view", { m: C, row: l, column: r, $index: c }), mt());
2605
+ }, a = (l, r, c, C) => {
2606
2606
  var P;
2607
- (P = e.value.control.save) != null && P.click ? e.value.control.save.click(l, r, c, T) : t(
2607
+ (P = e.value.control.save) != null && P.click ? e.value.control.save.click(l, r, c, C) : t(
2608
2608
  "row-save",
2609
2609
  { row: l, column: r, $index: c, data: e.value.table.data },
2610
2610
  (N = !0, Z = !0) => {
2611
- N && e.value.table.load(), Z && et(() => {
2611
+ N && e.value.table.load(), Z && tt(() => {
2612
2612
  ee.value = Object.assign(
2613
2613
  {},
2614
2614
  Object.fromEntries(
2615
2615
  Object.entries(
2616
- Te(e.value, (Ee, ke) => ke.type != "control" && ke.editor !== !1 && ke.type != "hidden")
2616
+ qe(e.value, (Ee, ke) => ke.type != "control" && ke.editor !== !1 && ke.type != "hidden")
2617
2617
  ).map(([Ee, ke]) => [Ee, ke.value])
2618
2618
  )
2619
2619
  );
@@ -2631,17 +2631,17 @@ const Fl = {
2631
2631
  if ((c = l.control.download) != null && c.click)
2632
2632
  l.control.download.click(l, r);
2633
2633
  else {
2634
- let T = $t(
2634
+ let C = wt(
2635
2635
  {
2636
2636
  title: l.control.download.label || l.control.download.title,
2637
2637
  size: l.control.download.size || 480,
2638
2638
  width: l.control.download.width || 600,
2639
2639
  slots: {
2640
- default: () => Ie(xl, {
2640
+ default: () => Ae(Sl, {
2641
2641
  items: r,
2642
2642
  commitText: l.control.download.excelLabel,
2643
2643
  onExcel: (P, N) => {
2644
- t("download", P, k.value, N), T();
2644
+ t("download", P, k.value, N), C();
2645
2645
  }
2646
2646
  })
2647
2647
  }
@@ -2649,15 +2649,15 @@ const Fl = {
2649
2649
  l.control.download.mode
2650
2650
  );
2651
2651
  }
2652
- }, M = (l) => {
2652
+ }, V = (l) => {
2653
2653
  var r;
2654
- (r = l.control.setting) != null && r.click ? l.control.setting.click(l) : $t(
2654
+ (r = l.control.setting) != null && r.click ? l.control.setting.click(l) : wt(
2655
2655
  {
2656
2656
  title: l.control.setting.label || l.control.setting.title,
2657
2657
  size: l.control.setting.size || 470,
2658
2658
  width: l.control.setting.width || 600,
2659
2659
  slots: {
2660
- default: () => Ie(Al, {
2660
+ default: () => Ae(Yl, {
2661
2661
  modelValue: l,
2662
2662
  tuid: ue.value
2663
2663
  })
@@ -2665,34 +2665,34 @@ const Fl = {
2665
2665
  },
2666
2666
  l.control.setting.mode
2667
2667
  );
2668
- }, q = e.value.control, ae = [
2668
+ }, q = e.value.control, oe = [
2669
2669
  { type: "add", func: E },
2670
2670
  { type: "download", func: b },
2671
- { type: "setting", func: M },
2671
+ { type: "setting", func: V },
2672
2672
  { type: "view", func: s },
2673
2673
  { type: "edit", func: v },
2674
2674
  { type: "delete", func: p },
2675
2675
  { type: "save", func: a }
2676
- ], fe = (l) => ae.filter((r) => l.includes(r.type)).map(({ type: r, func: c }) => {
2677
- var T, P, N;
2676
+ ], fe = (l) => oe.filter((r) => l.includes(r.type)).map(({ type: r, func: c }) => {
2677
+ var C, P, N;
2678
2678
  return {
2679
2679
  name: `control-${r}`,
2680
2680
  attr: q == null ? void 0 : q[r],
2681
2681
  func: c,
2682
- label: (T = q == null ? void 0 : q[r]) == null ? void 0 : T.label,
2682
+ label: (C = q == null ? void 0 : q[r]) == null ? void 0 : C.label,
2683
2683
  sort: ((P = q == null ? void 0 : q[r]) == null ? void 0 : P.sort) || 0,
2684
2684
  groupName: ((N = q == null ? void 0 : q[r]) == null ? void 0 : N.groupName) || "default"
2685
2685
  };
2686
2686
  }).sort((r, c) => r.sort - c.sort), R = (l) => fe(l).reduce((r, c) => {
2687
- const T = c.groupName || "default";
2688
- return r[T] || (r[T] = []), r[T].push(c), r;
2689
- }, {}), O = Je(
2687
+ const C = c.groupName || "default";
2688
+ return r[C] || (r[C] = []), r[C].push(c), r;
2689
+ }, {}), O = Ke(
2690
2690
  () => Object.fromEntries(
2691
2691
  Object.entries(e.value).filter(([l, r]) => r.type !== "hidden").filter(([l, r]) => r.visible !== !1).filter(([l, r]) => r.showCol !== !1).map(([l, r]) => (r.sort = typeof r.sort == "number" ? r.sort : 0, [l, r])).sort((l, r) => l[1].sort - r[1].sort)
2692
2692
  )
2693
2693
  ), Ce = te({}), _e = (l, r) => {
2694
- const c = (T, P) => {
2695
- for (const N of T) {
2694
+ const c = (C, P) => {
2695
+ for (const N of C) {
2696
2696
  if (N.value == P) return N.label;
2697
2697
  if (N.children) {
2698
2698
  const Z = c(N.children, P);
@@ -2702,9 +2702,9 @@ const Fl = {
2702
2702
  return null;
2703
2703
  };
2704
2704
  if (l.getDicts) {
2705
- const T = r.toString();
2706
- return Ce.value[T] ? (l.options = Ce.value[T], l.formatter || (l.formatter = (P, N, Z, Ee) => l.options && c(l.options, Z) || Z), Promise.resolve()) : l.getDicts(e.value.table.data).then((P) => {
2707
- Ce.value[T] = P, l.options = P, l.formatter || (l.formatter = (N, Z, Ee, ke) => l.options && c(l.options, Ee) || Ee);
2705
+ const C = r.toString();
2706
+ return Ce.value[C] ? (l.options = Ce.value[C], l.formatter || (l.formatter = (P, N, Z, Ee) => l.options && c(l.options, Z) || Z), Promise.resolve()) : l.getDicts(e.value.table.data).then((P) => {
2707
+ Ce.value[C] = P, l.options = P, l.formatter || (l.formatter = (N, Z, Ee, ke) => l.options && c(l.options, Ee) || Ee);
2708
2708
  });
2709
2709
  }
2710
2710
  return Promise.resolve();
@@ -2713,27 +2713,27 @@ const Fl = {
2713
2713
  Object.keys(e.value).forEach((r) => {
2714
2714
  if (e.value[r].getDicts) {
2715
2715
  const c = _e(e.value[r], r).then(() => {
2716
- e.value.table.data.forEach((T) => {
2716
+ e.value.table.data.forEach((C) => {
2717
2717
  var P;
2718
2718
  if (e.value[r].getDicts && ((P = e.value[r]) == null ? void 0 : P.forceString) !== !1) {
2719
- const N = T[r];
2720
- T[r] = N != null ? N.toString() : N;
2719
+ const N = C[r];
2720
+ C[r] = N != null ? N.toString() : N;
2721
2721
  }
2722
2722
  });
2723
- }).catch((T) => {
2724
- console.error(`加载字典${r}出错:`, T);
2723
+ }).catch((C) => {
2724
+ console.error(`加载字典${r}出错:`, C);
2725
2725
  });
2726
2726
  l.push(c);
2727
2727
  }
2728
2728
  }), Promise.all(l).catch((r) => {
2729
2729
  console.error("字典加载过程中发生错误:", r);
2730
2730
  });
2731
- }, De = (l, r, c, T) => {
2731
+ }, De = (l, r, c, C) => {
2732
2732
  var P, N;
2733
- return l.table ? (P = l.table(r, c, T)) != null && P.auth ? (N = l.table(r, c, T)) == null ? void 0 : N.auth(r, c, T) : !0 : !1;
2734
- }, ye = (l, r) => l.name === "control-save" && r === 0 && e.value.control.add.inline === !0 ? l.attr.addLabel : l.label, qe = () => {
2733
+ return l.table ? (P = l.table(r, c, C)) != null && P.auth ? (N = l.table(r, c, C)) == null ? void 0 : N.auth(r, c, C) : !0 : !1;
2734
+ }, ye = (l, r) => l.name === "control-save" && r === 0 && e.value.control.add.inline === !0 ? l.attr.addLabel : l.label, Fe = () => {
2735
2735
  if (e.value.dialog.mode == "drawer")
2736
- V.value.handleClose();
2736
+ x.value.handleClose();
2737
2737
  else if (e.value.dialog.mode == "dialog")
2738
2738
  try {
2739
2739
  S.value.handleClose();
@@ -2743,90 +2743,94 @@ const Fl = {
2743
2743
  else
2744
2744
  w.value = !1;
2745
2745
  };
2746
- return Nt(() => {
2746
+ Wt(() => {
2747
2747
  e.value.table.autoWatch && e.value.table.load();
2748
- }), ot(async () => {
2748
+ });
2749
+ const Ie = async () => {
2750
+ const l = await Fl(ue.value);
2751
+ l && Array.isArray(l) && l.forEach((r) => {
2752
+ const c = e.value[r.key];
2753
+ c && (c.width = r.width, c.showCol = r.showCol, c.sort = r.sort);
2754
+ });
2755
+ };
2756
+ return rt(async () => {
2749
2757
  var l;
2750
- ue.value = "t-" + ((l = Wt()) == null ? void 0 : l.uid), console.log(ue.value), K.value = Object.entries(e.value).filter(
2758
+ ue.value = "t-" + ((l = Xt()) == null ? void 0 : l.uid), console.log(ue.value), K.value = Object.entries(e.value).filter(
2751
2759
  ([r, c]) => c.type !== "hidden" && c.type !== "control" && c.visible !== !1
2752
2760
  ).map(([r, c]) => ({
2753
2761
  key: r || "",
2754
2762
  label: c.label,
2755
2763
  value: !0
2756
- })), et(() => {
2757
- ee.value = Object.assign(
2758
- {},
2759
- Object.fromEntries(
2760
- Object.entries(
2761
- Te(e.value, (r, c) => c.type != "control" && c.editor !== !1 && c.type != "hidden")
2762
- ).map(([r, c]) => [r, c.value])
2763
- )
2764
- );
2765
- });
2764
+ }));
2766
2765
  try {
2767
- const r = await Sl(ue.value);
2768
- r && r.forEach((c) => {
2769
- e.value[c.key] && (e.value[c.key].width = c.width, e.value[c.key].showCol = c.showCol, e.value[c.key].sort = c.sort);
2770
- });
2766
+ await tt();
2767
+ const r = Object.entries(e.value).filter(
2768
+ ([c, C]) => C.type !== "control" && C.editor !== !1 && C.type !== "hidden"
2769
+ );
2770
+ ee.value = Object.fromEntries(
2771
+ r.map(([c, C]) => [c, C.value])
2772
+ ), await Ie();
2771
2773
  } catch (r) {
2772
- console.error("Error fetching table column settings:", r);
2774
+ console.error("Error during component initialization:", r);
2773
2775
  }
2774
2776
  e.value.table.autoWatch || e.value.table.load();
2775
- }), i({ addRow: E, editRow: v, deleteRow: p, readForm: s, saveRowData: a, closeDialog: qe }), (l, r) => {
2776
- var Xe, lt, m, Q, ve;
2777
- const c = B("el-icon"), T = B("el-dialog"), P = B("el-drawer"), N = B("el-button-group"), Z = B("el-dropdown-item"), Ee = B("el-dropdown-menu"), ke = B("el-dropdown"), Re = B("el-table-column"), je = B("el-table"), Le = B("el-pagination");
2777
+ }), Gt(async () => {
2778
+ await Ie();
2779
+ }), i({ addRow: E, editRow: v, deleteRow: p, readForm: s, saveRowData: a, closeDialog: Fe }), (l, r) => {
2780
+ var Ge, m, Q, ve, Be;
2781
+ const c = I("el-icon"), C = I("el-dialog"), P = I("el-drawer"), N = I("el-button-group"), Z = I("el-dropdown-item"), Ee = I("el-dropdown-menu"), ke = I("el-dropdown"), je = I("el-table-column"), Le = I("el-table"), ze = I("el-pagination");
2778
2782
  return u(), F(X, null, [
2779
- e.value.dialog.mode == "dialog" && w.value ? (u(), F("div", jl, [
2780
- G(T, x(
2783
+ e.value.dialog.mode == "dialog" && w.value ? (u(), F("div", zl, [
2784
+ G(C, T(
2781
2785
  {
2782
2786
  ref_key: "dialogRef",
2783
2787
  ref: S,
2784
2788
  id: "dialogRef",
2785
2789
  modelValue: w.value,
2786
- "onUpdate:modelValue": r[3] || (r[3] = (I) => w.value = I),
2790
+ "onUpdate:modelValue": r[3] || (r[3] = (Y) => w.value = Y),
2787
2791
  fullscreen: e.value.dialog.fullScreen
2788
2792
  },
2789
- j(Te)(e.value.dialog, (I) => !["size", "max", "min"].includes(I)),
2793
+ j(qe)(e.value.dialog, (Y) => !["size", "max", "min"].includes(Y)),
2790
2794
  {
2791
2795
  width: j(It)(e.value.dialog.width) + 35
2792
2796
  }
2793
2797
  ), {
2794
2798
  header: h(() => {
2795
- var I, oe, $, z, J, Ge, Qe, ze, He, at;
2799
+ var Y, le, $, H, J, Qe, Ze, He, Pe, ot;
2796
2800
  return [
2797
- W("div", Ll, [
2798
- W("div", zl, [
2801
+ W("div", Hl, [
2802
+ W("div", Pl, [
2799
2803
  y(l.$slots, "f-header", {}, () => [
2800
2804
  W("div", null, be(e.value.dialog.title), 1)
2801
2805
  ], !0)
2802
2806
  ]),
2803
- ((oe = (I = e.value) == null ? void 0 : I.dialog) == null ? void 0 : oe.fullScreen) === !1 ? (u(), F("div", {
2807
+ ((le = (Y = e.value) == null ? void 0 : Y.dialog) == null ? void 0 : le.fullScreen) === !1 ? (u(), F("div", {
2804
2808
  key: 0,
2805
- style: Fe((J = (z = ($ = e.value) == null ? void 0 : $.dialog) == null ? void 0 : z.max) == null ? void 0 : J.style),
2809
+ style: Se((J = (H = ($ = e.value) == null ? void 0 : $.dialog) == null ? void 0 : H.max) == null ? void 0 : J.style),
2806
2810
  onClick: r[0] || (r[0] = (A) => e.value.dialog.fullScreen = !0),
2807
2811
  class: "max"
2808
2812
  }, [
2809
2813
  G(c, null, {
2810
2814
  default: h(() => {
2811
- var A, Oe, Ze;
2815
+ var A, Oe, Je;
2812
2816
  return [
2813
- (u(), C(Be((Ze = (Oe = (A = e.value) == null ? void 0 : A.dialog) == null ? void 0 : Oe.max) == null ? void 0 : Ze.icon)))
2817
+ (u(), D(Ye((Je = (Oe = (A = e.value) == null ? void 0 : A.dialog) == null ? void 0 : Oe.max) == null ? void 0 : Je.icon)))
2814
2818
  ];
2815
2819
  }),
2816
2820
  _: 1
2817
2821
  })
2818
2822
  ], 4)) : me("", !0),
2819
- ((Qe = (Ge = e.value) == null ? void 0 : Ge.dialog) == null ? void 0 : Qe.fullScreen) === !0 ? (u(), F("div", {
2823
+ ((Ze = (Qe = e.value) == null ? void 0 : Qe.dialog) == null ? void 0 : Ze.fullScreen) === !0 ? (u(), F("div", {
2820
2824
  key: 1,
2821
- style: Fe((at = (He = (ze = e.value) == null ? void 0 : ze.dialog) == null ? void 0 : He.min) == null ? void 0 : at.style),
2825
+ style: Se((ot = (Pe = (He = e.value) == null ? void 0 : He.dialog) == null ? void 0 : Pe.min) == null ? void 0 : ot.style),
2822
2826
  onClick: r[1] || (r[1] = (A) => e.value.dialog.fullScreen = !1),
2823
2827
  class: "max"
2824
2828
  }, [
2825
2829
  G(c, null, {
2826
2830
  default: h(() => {
2827
- var A, Oe, Ze;
2831
+ var A, Oe, Je;
2828
2832
  return [
2829
- (u(), C(Be((Ze = (Oe = (A = e.value) == null ? void 0 : A.dialog) == null ? void 0 : Oe.min) == null ? void 0 : Ze.icon)))
2833
+ (u(), D(Ye((Je = (Oe = (A = e.value) == null ? void 0 : A.dialog) == null ? void 0 : Oe.min) == null ? void 0 : Je.icon)))
2830
2834
  ];
2831
2835
  }),
2832
2836
  _: 1
@@ -2836,18 +2840,18 @@ const Fl = {
2836
2840
  ];
2837
2841
  }),
2838
2842
  default: h(() => [
2839
- W("div", Hl, [
2843
+ W("div", Nl, [
2840
2844
  y(l.$slots, "table-dialog-form", { model: e.value }, () => [
2841
- G(gt, {
2845
+ G(bt, {
2842
2846
  modelValue: e.value,
2843
- "onUpdate:modelValue": r[2] || (r[2] = (I) => e.value = I),
2847
+ "onUpdate:modelValue": r[2] || (r[2] = (Y) => e.value = Y),
2844
2848
  onSubmit: _,
2845
2849
  onReset: n
2846
2850
  }, ce({ _: 2 }, [
2847
- L(l.$slots, (I, oe, $) => ({
2848
- name: oe,
2849
- fn: h((z) => [
2850
- y(l.$slots, oe, { model: z }, void 0, !0)
2851
+ L(l.$slots, (Y, le, $) => ({
2852
+ name: le,
2853
+ fn: h((H) => [
2854
+ y(l.$slots, le, { model: H }, void 0, !0)
2851
2855
  ])
2852
2856
  }))
2853
2857
  ]), 1032, ["modelValue"])
@@ -2857,16 +2861,16 @@ const Fl = {
2857
2861
  _: 3
2858
2862
  }, 16, ["modelValue", "fullscreen", "width"])
2859
2863
  ])) : me("", !0),
2860
- e.value.dialog.mode == "drawer" && w.value ? (u(), F("div", Pl, [
2861
- G(P, x({
2864
+ e.value.dialog.mode == "drawer" && w.value ? (u(), F("div", Wl, [
2865
+ G(P, T({
2862
2866
  ref_key: "drawerRef",
2863
- ref: V,
2867
+ ref: x,
2864
2868
  modelValue: w.value,
2865
- "onUpdate:modelValue": r[5] || (r[5] = (I) => w.value = I)
2866
- }, j(Te)(e.value.dialog, (I) => !["width"].includes(I))), {
2869
+ "onUpdate:modelValue": r[5] || (r[5] = (Y) => w.value = Y)
2870
+ }, j(qe)(e.value.dialog, (Y) => !["width"].includes(Y))), {
2867
2871
  header: h(() => [
2868
- W("div", Nl, [
2869
- W("div", Wl, [
2872
+ W("div", Xl, [
2873
+ W("div", Gl, [
2870
2874
  y(l.$slots, "f-header", {}, () => [
2871
2875
  W("div", null, be(e.value.dialog.title), 1)
2872
2876
  ], !0)
@@ -2875,16 +2879,16 @@ const Fl = {
2875
2879
  ]),
2876
2880
  default: h(() => [
2877
2881
  y(l.$slots, "table-drawer-form", { model: e.value }, () => [
2878
- G(gt, {
2882
+ G(bt, {
2879
2883
  modelValue: e.value,
2880
- "onUpdate:modelValue": r[4] || (r[4] = (I) => e.value = I),
2884
+ "onUpdate:modelValue": r[4] || (r[4] = (Y) => e.value = Y),
2881
2885
  onSubmit: _,
2882
2886
  onReset: n
2883
2887
  }, ce({ _: 2 }, [
2884
- L(l.$slots, (I, oe, $) => ({
2885
- name: oe,
2886
- fn: h((z) => [
2887
- y(l.$slots, oe, { model: z }, void 0, !0)
2888
+ L(l.$slots, (Y, le, $) => ({
2889
+ name: le,
2890
+ fn: h((H) => [
2891
+ y(l.$slots, le, { model: H }, void 0, !0)
2888
2892
  ])
2889
2893
  }))
2890
2894
  ]), 1032, ["modelValue"])
@@ -2893,65 +2897,65 @@ const Fl = {
2893
2897
  _: 3
2894
2898
  }, 16, ["modelValue"])
2895
2899
  ])) : me("", !0),
2896
- W("div", Xl, [
2897
- ((lt = (Xe = e.value) == null ? void 0 : Xe.query) == null ? void 0 : lt.hidden) != !0 ? (u(), F("div", Gl, [
2900
+ W("div", Ql, [
2901
+ ((m = (Ge = e.value) == null ? void 0 : Ge.query) == null ? void 0 : m.hidden) != !0 ? (u(), F("div", Zl, [
2898
2902
  y(l.$slots, "query", {}, () => [
2899
- G(wl, {
2903
+ G(_l, {
2900
2904
  modelValue: e.value,
2901
- "onUpdate:modelValue": r[6] || (r[6] = (I) => e.value = I),
2905
+ "onUpdate:modelValue": r[6] || (r[6] = (Y) => e.value = Y),
2902
2906
  info: k.value,
2903
- "onUpdate:info": r[7] || (r[7] = (I) => k.value = I),
2907
+ "onUpdate:info": r[7] || (r[7] = (Y) => k.value = Y),
2904
2908
  onQuery: g,
2905
2909
  onReset: se
2906
2910
  }, ce({
2907
2911
  "q-btns": h(() => [
2908
2912
  y(l.$slots, "q-btns", {}, () => [
2909
- (u(!0), F(X, null, L(R(["add", "download", "setting"]), (I, oe) => (u(), F(X, null, [
2910
- oe == "default" ? (u(!0), F(X, { key: 0 }, L(I, ($) => (u(), F(X, null, [
2913
+ (u(!0), F(X, null, L(R(["add", "download", "setting"]), (Y, le) => (u(), F(X, null, [
2914
+ le == "default" ? (u(!0), F(X, { key: 0 }, L(Y, ($) => (u(), F(X, null, [
2911
2915
  y(l.$slots, $.name + "-left", {}, void 0, !0),
2912
2916
  ($.name === "control-add" ? $.attr.auth(e.value) && $.attr.inline === !1 : $.attr.auth(e.value)) ? y(l.$slots, $.name, { key: 0 }, () => [
2913
- $.label ? (u(), C(j(Me), x({
2917
+ $.label ? (u(), D(j(Me), T({
2914
2918
  key: 0,
2915
2919
  title: $.label,
2916
2920
  ref_for: !0
2917
2921
  }, $.attr, {
2918
- onClick: (z) => $.func(e.value, K.value)
2922
+ onClick: (H) => $.func(e.value, K.value)
2919
2923
  }), {
2920
2924
  default: h(() => [
2921
- Se(be($.label), 1)
2925
+ Te(be($.label), 1)
2922
2926
  ]),
2923
2927
  _: 2
2924
- }, 1040, ["title", "onClick"])) : (u(), C(j(Me), x({
2928
+ }, 1040, ["title", "onClick"])) : (u(), D(j(Me), T({
2925
2929
  key: 1,
2926
2930
  title: $.label,
2927
2931
  ref_for: !0
2928
2932
  }, $.attr, {
2929
- onClick: (z) => $.func(e.value, K.value)
2933
+ onClick: (H) => $.func(e.value, K.value)
2930
2934
  }), null, 16, ["title", "onClick"]))
2931
2935
  ], !0) : me("", !0),
2932
2936
  y(l.$slots, $.name + "-right", {}, void 0, !0)
2933
- ], 64))), 256)) : (u(), C(N, { key: 1 }, {
2937
+ ], 64))), 256)) : (u(), D(N, { key: 1 }, {
2934
2938
  default: h(() => [
2935
- (u(!0), F(X, null, L(I, ($) => (u(), F(X, null, [
2939
+ (u(!0), F(X, null, L(Y, ($) => (u(), F(X, null, [
2936
2940
  y(l.$slots, $.name + "-left", {}, void 0, !0),
2937
2941
  ($.name === "control-add" ? $.attr.auth(e.value) && $.attr.inline === !1 : $.attr.auth(e.value)) ? y(l.$slots, $.name, { key: 0 }, () => [
2938
- $.label ? (u(), C(j(Me), x({
2942
+ $.label ? (u(), D(j(Me), T({
2939
2943
  key: 0,
2940
2944
  title: $.label,
2941
2945
  ref_for: !0
2942
2946
  }, $.attr, {
2943
- onClick: (z) => $.func(e.value, K.value)
2947
+ onClick: (H) => $.func(e.value, K.value)
2944
2948
  }), {
2945
2949
  default: h(() => [
2946
- Se(be($.label), 1)
2950
+ Te(be($.label), 1)
2947
2951
  ]),
2948
2952
  _: 2
2949
- }, 1040, ["title", "onClick"])) : (u(), C(j(Me), x({
2953
+ }, 1040, ["title", "onClick"])) : (u(), D(j(Me), T({
2950
2954
  key: 1,
2951
2955
  title: $.label,
2952
2956
  ref_for: !0
2953
2957
  }, $.attr, {
2954
- onClick: (z) => $.func(e.value, K.value)
2958
+ onClick: (H) => $.func(e.value, K.value)
2955
2959
  }), null, 16, ["title", "onClick"]))
2956
2960
  ], !0) : me("", !0),
2957
2961
  y(l.$slots, $.name + "-right", {}, void 0, !0)
@@ -2964,27 +2968,27 @@ const Fl = {
2964
2968
  ]),
2965
2969
  _: 2
2966
2970
  }, [
2967
- L(l.$slots, (I, oe, $) => ({
2968
- name: oe,
2969
- fn: h((z) => [
2970
- y(l.$slots, oe, { model: e.value }, void 0, !0)
2971
+ L(l.$slots, (Y, le, $) => ({
2972
+ name: le,
2973
+ fn: h((H) => [
2974
+ y(l.$slots, le, { model: e.value }, void 0, !0)
2971
2975
  ])
2972
2976
  }))
2973
2977
  ]), 1032, ["modelValue", "info"])
2974
2978
  ], !0)
2975
2979
  ])) : me("", !0),
2976
- W("div", Ql, [
2977
- G(je, x({
2980
+ W("div", Jl, [
2981
+ G(Le, T({
2978
2982
  ...l.$attrs,
2979
- ...j(Te)(
2983
+ ...j(qe)(
2980
2984
  e.value.table,
2981
- (I) => !["dblclickType", "page"].includes(I)
2985
+ (Y) => !["dblclickType", "page"].includes(Y)
2982
2986
  )
2983
2987
  }, {
2984
- "summary-method": (I) => e.value.table["summary-method"](I, { fields: ie.value, sums: Y.value }),
2985
- onSortChange: r[8] || (r[8] = (I) => {
2986
- var oe, $;
2987
- e.value.table.onSortChange(I, k.value), ((oe = I == null ? void 0 : I.column) == null ? void 0 : oe.sortable) === "custom" && (($ = e.value.table) == null || $.load());
2988
+ "summary-method": (Y) => e.value.table["summary-method"](Y, { fields: ie.value, sums: B.value }),
2989
+ onSortChange: r[8] || (r[8] = (Y) => {
2990
+ var le, $;
2991
+ e.value.table.onSortChange(Y, k.value), ((le = Y == null ? void 0 : Y.column) == null ? void 0 : le.sortable) === "custom" && (($ = e.value.table) == null || $.load());
2988
2992
  })
2989
2993
  }), {
2990
2994
  append: h(() => [
@@ -2995,143 +2999,143 @@ const Fl = {
2995
2999
  ]),
2996
3000
  default: h(() => [
2997
3001
  y(l.$slots, "default", {}, () => [
2998
- (u(!0), F(X, null, L(O.value, (I, oe) => (u(), C(Re, x({
2999
- prop: oe,
3000
- key: oe,
3002
+ (u(!0), F(X, null, L(O.value, (Y, le) => (u(), D(je, T({
3003
+ prop: le,
3004
+ key: le,
3001
3005
  ref_for: !0
3002
3006
  }, {
3003
3007
  ...e.value.tableColumns,
3004
- ...j(Te)(I, ($) => H.includes($))
3008
+ ...j(qe)(Y, ($) => z.includes($))
3005
3009
  }), ce({
3006
- header: h(({ column: $, $index: z }) => [
3007
- oe == "control" ? y(l.$slots, `${oe}-header`, {
3010
+ header: h(({ column: $, $index: H }) => [
3011
+ le == "control" ? y(l.$slots, `${le}-header`, {
3008
3012
  key: 0,
3009
3013
  column: $,
3010
- $index: z
3014
+ $index: H
3011
3015
  }, () => [
3012
3016
  W("span", null, be($.label), 1)
3013
- ], !0) : y(l.$slots, `${oe}-header`, {
3017
+ ], !0) : y(l.$slots, `${le}-header`, {
3014
3018
  key: 1,
3015
3019
  column: $,
3016
- $index: z
3020
+ $index: H
3017
3021
  }, void 0, !0)
3018
3022
  ]),
3019
3023
  "filter-icon": h(($) => [
3020
- y(l.$slots, `${oe}-filter-icon`, { data: $ }, void 0, !0)
3024
+ y(l.$slots, `${le}-filter-icon`, { data: $ }, void 0, !0)
3021
3025
  ]),
3022
3026
  _: 2
3023
3027
  }, [
3024
- I.type === "expand" ? {
3028
+ Y.type === "expand" ? {
3025
3029
  name: "default",
3026
- fn: h(({ row: $, column: z, $index: J }) => [
3027
- y(l.$slots, `${oe}`, {
3030
+ fn: h(({ row: $, column: H, $index: J }) => [
3031
+ y(l.$slots, `${le}`, {
3028
3032
  row: $,
3029
- column: z,
3033
+ column: H,
3030
3034
  $index: J
3031
3035
  }, void 0, !0)
3032
3036
  ]),
3033
3037
  key: "0"
3034
- } : I.type == "control" ? {
3038
+ } : Y.type == "control" ? {
3035
3039
  name: "default",
3036
- fn: h(({ row: $, column: z, $index: J }) => {
3037
- var Ge, Qe;
3040
+ fn: h(({ row: $, column: H, $index: J }) => {
3041
+ var Qe, Ze;
3038
3042
  return [
3039
3043
  W("div", {
3040
- class: St(["control", (Ge = e.value.control) == null ? void 0 : Ge.class]),
3041
- style: Fe((Qe = e.value.control) == null ? void 0 : Qe.style)
3044
+ class: St(["control", (Qe = e.value.control) == null ? void 0 : Qe.class]),
3045
+ style: Se((Ze = e.value.control) == null ? void 0 : Ze.style)
3042
3046
  }, [
3043
3047
  y(l.$slots, "control", {}, () => [
3044
3048
  y(l.$slots, "control-left", {
3045
3049
  row: $,
3046
- column: z,
3050
+ column: H,
3047
3051
  $index: J
3048
3052
  }, void 0, !0),
3049
- (u(!0), F(X, null, L(R(["view", "edit", "delete", "save"]), (ze, He) => {
3050
- var at;
3053
+ (u(!0), F(X, null, L(R(["view", "edit", "delete", "save"]), (He, Pe) => {
3054
+ var ot;
3051
3055
  return u(), F(X, null, [
3052
- He == "default" ? (u(!0), F(X, { key: 0 }, L(ze, (A) => (u(), F(X, null, [
3056
+ Pe == "default" ? (u(!0), F(X, { key: 0 }, L(He, (A) => (u(), F(X, null, [
3053
3057
  y(l.$slots, A.name + "-left", {
3054
3058
  row: $,
3055
- column: z,
3059
+ column: H,
3056
3060
  $index: J
3057
3061
  }, void 0, !0),
3058
- A.attr.auth($, z, J, e.value) ? y(l.$slots, A.name, {
3062
+ A.attr.auth($, H, J, e.value) ? y(l.$slots, A.name, {
3059
3063
  key: 0,
3060
3064
  row: $,
3061
- column: z,
3065
+ column: H,
3062
3066
  $index: J
3063
3067
  }, () => [
3064
- A.label ? (u(), C(j(Me), x({
3068
+ A.label ? (u(), D(j(Me), T({
3065
3069
  key: 0,
3066
3070
  title: A.label,
3067
3071
  ref_for: !0
3068
3072
  }, A.attr, {
3069
- onClick: (Oe) => A.func($, z, J, e.value)
3073
+ onClick: (Oe) => A.func($, H, J, e.value)
3070
3074
  }), {
3071
3075
  default: h(() => [
3072
- Se(be(ye(A, J)), 1)
3076
+ Te(be(ye(A, J)), 1)
3073
3077
  ]),
3074
3078
  _: 2
3075
- }, 1040, ["title", "onClick"])) : (u(), C(j(Me), x({
3079
+ }, 1040, ["title", "onClick"])) : (u(), D(j(Me), T({
3076
3080
  key: 1,
3077
3081
  title: A.label,
3078
3082
  ref_for: !0
3079
3083
  }, A.attr, {
3080
- onClick: (Oe) => A.func($, z, J, e.value)
3084
+ onClick: (Oe) => A.func($, H, J, e.value)
3081
3085
  }), null, 16, ["title", "onClick"]))
3082
3086
  ], !0) : me("", !0),
3083
3087
  y(l.$slots, A.name + "-right", {
3084
3088
  row: $,
3085
- column: z,
3089
+ column: H,
3086
3090
  $index: J
3087
3091
  }, void 0, !0)
3088
- ], 64))), 256)) : He != null && He.startsWith("dropdown") && ((at = pe($, z, J, e.value)) != null && at.auth()) ? (u(), C(ke, x({
3092
+ ], 64))), 256)) : Pe != null && Pe.startsWith("dropdown") && ((ot = pe($, H, J, e.value)) != null && ot.auth()) ? (u(), D(ke, T({
3089
3093
  key: 1,
3090
3094
  ref_for: !0
3091
- }, pe($, z, J, e.value)), {
3095
+ }, pe($, H, J, e.value)), {
3092
3096
  dropdown: h(() => [
3093
3097
  G(Ee, null, {
3094
3098
  default: h(() => [
3095
- (u(!0), F(X, null, L(ze, (A) => {
3096
- var Oe, Ze, kt;
3099
+ (u(!0), F(X, null, L(He, (A) => {
3100
+ var Oe, Je, Ct;
3097
3101
  return u(), F(X, null, [
3098
3102
  l.$slots[A.name + "-left"] ? y(l.$slots, A.name + "-left", {
3099
3103
  key: 0,
3100
3104
  row: $,
3101
- column: z,
3105
+ column: H,
3102
3106
  $index: J
3103
3107
  }, void 0, !0) : me("", !0),
3104
- A.attr.auth($, z, J, e.value) ? (u(), C(Z, x({
3108
+ A.attr.auth($, H, J, e.value) ? (u(), D(Z, T({
3105
3109
  key: 1,
3106
3110
  ref_for: !0
3107
3111
  }, {
3108
3112
  command: (Oe = A == null ? void 0 : A.attr) == null ? void 0 : Oe.command,
3109
- divided: (Ze = A == null ? void 0 : A.attr) == null ? void 0 : Ze.divided,
3110
- disabled: (kt = A == null ? void 0 : A.attr) == null ? void 0 : kt.disabled
3113
+ divided: (Je = A == null ? void 0 : A.attr) == null ? void 0 : Je.divided,
3114
+ disabled: (Ct = A == null ? void 0 : A.attr) == null ? void 0 : Ct.disabled
3111
3115
  }), {
3112
3116
  default: h(() => [
3113
3117
  y(l.$slots, A.name, {
3114
3118
  row: $,
3115
- column: z,
3119
+ column: H,
3116
3120
  $index: J
3117
3121
  }, () => [
3118
- A.label ? (u(), C(j(Me), x({
3122
+ A.label ? (u(), D(j(Me), T({
3119
3123
  key: 0,
3120
3124
  title: A.label,
3121
3125
  ref_for: !0
3122
3126
  }, A.attr, {
3123
- onClick: (At) => A.func($, z, J, e.value)
3127
+ onClick: (Bt) => A.func($, H, J, e.value)
3124
3128
  }), {
3125
3129
  default: h(() => [
3126
- Se(be(ye(A, J)), 1)
3130
+ Te(be(ye(A, J)), 1)
3127
3131
  ]),
3128
3132
  _: 2
3129
- }, 1040, ["title", "onClick"])) : (u(), C(j(Me), x({
3133
+ }, 1040, ["title", "onClick"])) : (u(), D(j(Me), T({
3130
3134
  key: 1,
3131
3135
  title: A.label,
3132
3136
  ref_for: !0
3133
3137
  }, A.attr, {
3134
- onClick: (At) => A.func($, z, J, e.value)
3138
+ onClick: (Bt) => A.func($, H, J, e.value)
3135
3139
  }), null, 16, ["title", "onClick"]))
3136
3140
  ], !0)
3137
3141
  ]),
@@ -3140,7 +3144,7 @@ const Fl = {
3140
3144
  l.$slots[A.name + "-right"] ? y(l.$slots, A.name + "-right", {
3141
3145
  key: 2,
3142
3146
  row: $,
3143
- column: z,
3147
+ column: H,
3144
3148
  $index: J
3145
3149
  }, void 0, !0) : me("", !0)
3146
3150
  ], 64);
@@ -3152,46 +3156,46 @@ const Fl = {
3152
3156
  default: h(() => {
3153
3157
  var A;
3154
3158
  return [
3155
- Se(be((A = pe($, z, J, e.value)) == null ? void 0 : A.label) + " ", 1)
3159
+ Te(be((A = pe($, H, J, e.value)) == null ? void 0 : A.label) + " ", 1)
3156
3160
  ];
3157
3161
  }),
3158
3162
  _: 2
3159
- }, 1040)) : (u(), C(N, { key: 2 }, {
3163
+ }, 1040)) : (u(), D(N, { key: 2 }, {
3160
3164
  default: h(() => [
3161
- (u(!0), F(X, null, L(ze, (A) => (u(), F(X, null, [
3165
+ (u(!0), F(X, null, L(He, (A) => (u(), F(X, null, [
3162
3166
  y(l.$slots, A.name + "-left", {
3163
3167
  row: $,
3164
- column: z,
3168
+ column: H,
3165
3169
  $index: J
3166
3170
  }, void 0, !0),
3167
- A.attr.auth($, z, J, e.value) ? y(l.$slots, A.name, {
3171
+ A.attr.auth($, H, J, e.value) ? y(l.$slots, A.name, {
3168
3172
  key: 0,
3169
3173
  row: $,
3170
- column: z,
3174
+ column: H,
3171
3175
  $index: J
3172
3176
  }, () => [
3173
- A.label ? (u(), C(j(Me), x({
3177
+ A.label ? (u(), D(j(Me), T({
3174
3178
  key: 0,
3175
3179
  title: A.label,
3176
3180
  ref_for: !0
3177
3181
  }, A.attr, {
3178
- onClick: (Oe) => A.func($, z, J, e.value)
3182
+ onClick: (Oe) => A.func($, H, J, e.value)
3179
3183
  }), {
3180
3184
  default: h(() => [
3181
- Se(be(ye(A, J)), 1)
3185
+ Te(be(ye(A, J)), 1)
3182
3186
  ]),
3183
3187
  _: 2
3184
- }, 1040, ["title", "onClick"])) : (u(), C(j(Me), x({
3188
+ }, 1040, ["title", "onClick"])) : (u(), D(j(Me), T({
3185
3189
  key: 1,
3186
3190
  title: A.label,
3187
3191
  ref_for: !0
3188
3192
  }, A.attr, {
3189
- onClick: (Oe) => A.func($, z, J, e.value)
3193
+ onClick: (Oe) => A.func($, H, J, e.value)
3190
3194
  }), null, 16, ["title", "onClick"]))
3191
3195
  ], !0) : me("", !0),
3192
3196
  y(l.$slots, A.name + "-right", {
3193
3197
  row: $,
3194
- column: z,
3198
+ column: H,
3195
3199
  $index: J
3196
3200
  }, void 0, !0)
3197
3201
  ], 64))), 256))
@@ -3202,7 +3206,7 @@ const Fl = {
3202
3206
  }), 256)),
3203
3207
  y(l.$slots, "control-right", {
3204
3208
  row: $,
3205
- column: z,
3209
+ column: H,
3206
3210
  $index: J
3207
3211
  }, void 0, !0)
3208
3212
  ], !0)
@@ -3210,54 +3214,54 @@ const Fl = {
3210
3214
  ];
3211
3215
  }),
3212
3216
  key: "1"
3213
- } : I.type != "selection" && I.type != "index" ? {
3217
+ } : Y.type != "selection" && Y.type != "index" ? {
3214
3218
  name: "default",
3215
- fn: h(({ row: $, column: z, $index: J }) => [
3216
- De(I, $, z, J) && J != -1 ? y(l.$slots, `${oe}`, {
3219
+ fn: h(({ row: $, column: H, $index: J }) => [
3220
+ De(Y, $, H, J) && J != -1 ? y(l.$slots, `${le}`, {
3217
3221
  key: 0,
3218
3222
  row: $,
3219
- column: z,
3223
+ column: H,
3220
3224
  $index: J
3221
3225
  }, () => {
3222
- var Ge;
3226
+ var Qe;
3223
3227
  return [
3224
- (u(), C(mt, {
3225
- modelValue: $[oe],
3226
- "onUpdate:modelValue": (Qe) => $[oe] = Qe,
3227
- item: I == null ? void 0 : I.table($, z, J),
3228
- ctrlKey: oe,
3229
- key: `${oe}-${J} -${re.value}`,
3230
- ctrlType: (Ge = I.table($, z, J)) != null && Ge.type ? I.table($, z, J).type : I.type,
3228
+ (u(), D(pt, {
3229
+ modelValue: $[le],
3230
+ "onUpdate:modelValue": (Ze) => $[le] = Ze,
3231
+ item: Y == null ? void 0 : Y.table($, H, J),
3232
+ ctrlKey: le,
3233
+ key: `${le}-${J} -${re.value}`,
3234
+ ctrlType: (Qe = Y.table($, H, J)) != null && Qe.type ? Y.table($, H, J).type : Y.type,
3231
3235
  model: e.value,
3232
3236
  class: "g-ctrl-container",
3233
3237
  t: "t",
3234
3238
  formInfo: $
3235
3239
  }, ce({ _: 2 }, [
3236
- L(l.$slots, (Qe, ze) => ({
3237
- name: ze,
3238
- fn: h((He) => [
3239
- y(l.$slots, ze, {
3240
- data: He,
3241
- item: I,
3240
+ L(l.$slots, (Ze, He) => ({
3241
+ name: He,
3242
+ fn: h((Pe) => [
3243
+ y(l.$slots, He, {
3244
+ data: Pe,
3245
+ item: Y,
3242
3246
  model: e.value
3243
3247
  }, void 0, !0)
3244
3248
  ])
3245
3249
  }))
3246
3250
  ]), 1032, ["modelValue", "onUpdate:modelValue", "item", "ctrlKey", "ctrlType", "model", "formInfo"]))
3247
3251
  ];
3248
- }, !0) : y(l.$slots, `${oe}`, {
3252
+ }, !0) : y(l.$slots, `${le}`, {
3249
3253
  key: 1,
3250
3254
  row: $,
3251
- column: z,
3255
+ column: H,
3252
3256
  $index: J
3253
3257
  }, () => [
3254
3258
  W("div", {
3255
- style: Fe([{ width: "100%", "text-overflow": "ellipsis", overflow: "hidden" }, I == null ? void 0 : I.style]),
3259
+ style: Se([{ width: "100%", "text-overflow": "ellipsis", overflow: "hidden" }, Y == null ? void 0 : Y.style]),
3256
3260
  innerHTML: $e(
3257
- I,
3258
- z.formatter($, z, $[oe], J)
3261
+ Y,
3262
+ H.formatter($, H, $[le], J)
3259
3263
  )
3260
- }, null, 12, Zl)
3264
+ }, null, 12, Kl)
3261
3265
  ], !0)
3262
3266
  ]),
3263
3267
  key: "2"
@@ -3267,12 +3271,12 @@ const Fl = {
3267
3271
  ]),
3268
3272
  _: 3
3269
3273
  }, 16, ["summary-method"]),
3270
- (ve = (Q = (m = e.value) == null ? void 0 : m.table) == null ? void 0 : Q.page) != null && ve.hidden ? me("", !0) : y(l.$slots, "page", { key: 0 }, () => [
3271
- G(Le, x({
3274
+ (Be = (ve = (Q = e.value) == null ? void 0 : Q.table) == null ? void 0 : ve.page) != null && Be.hidden ? me("", !0) : y(l.$slots, "page", { key: 0 }, () => [
3275
+ G(ze, T({
3272
3276
  "page-size": e.value.table.page.pageSize,
3273
- "onUpdate:pageSize": r[9] || (r[9] = (I) => e.value.table.page.pageSize = I),
3277
+ "onUpdate:pageSize": r[9] || (r[9] = (Y) => e.value.table.page.pageSize = Y),
3274
3278
  "current-page": e.value.table.page.currentPage,
3275
- "onUpdate:currentPage": r[10] || (r[10] = (I) => e.value.table.page.currentPage = I)
3279
+ "onUpdate:currentPage": r[10] || (r[10] = (Y) => e.value.table.page.currentPage = Y)
3276
3280
  }, e.value.table.page), {
3277
3281
  default: h(() => [
3278
3282
  y(l.$slots, "table-page", {}, void 0, !0)
@@ -3285,7 +3289,7 @@ const Fl = {
3285
3289
  ], 64);
3286
3290
  };
3287
3291
  }
3288
- }), Kl = /* @__PURE__ */ We(Jl, [["__scopeId", "data-v-b9685146"]]), ea = { class: "g-tree-table" }, ta = { class: "g-tree-container" }, la = { class: "g-tree-table-container" }, aa = /* @__PURE__ */ Object.assign({
3292
+ }), ta = /* @__PURE__ */ Xe(ea, [["__scopeId", "data-v-0c3d7925"]]), la = { class: "g-tree-table" }, aa = { class: "g-tree-container" }, oa = { class: "g-tree-table-container" }, ra = /* @__PURE__ */ Object.assign({
3289
3293
  name: "g-tree-table",
3290
3294
  inheritAttrs: !1
3291
3295
  }, {
@@ -3294,45 +3298,45 @@ const Fl = {
3294
3298
  modelValue: { required: !0 },
3295
3299
  modelModifiers: {}
3296
3300
  },
3297
- emits: /* @__PURE__ */ Pe(["load"], ["update:modelValue"]),
3301
+ emits: /* @__PURE__ */ Ne(["load"], ["update:modelValue"]),
3298
3302
  setup(f, { emit: i }) {
3299
- var U, Y, ie, ee;
3300
- const o = i, t = Ne(f, "modelValue"), e = _t(), d = te(
3301
- typeof ((U = e == null ? void 0 : e.tree) == null ? void 0 : U.width) == "number" ? `${e.tree.width}px` : ((Y = e == null ? void 0 : e.tree) == null ? void 0 : Y.width) || "180px"
3302
- ), k = te(((ie = e == null ? void 0 : e.tree) == null ? void 0 : ie.search) === void 0 ? !0 : (ee = e == null ? void 0 : e.tree) == null ? void 0 : ee.search), S = te({}), V = te(""), D = te(null), w = (re, ue) => {
3303
+ var U, B, ie, ee;
3304
+ const o = i, t = We(f, "modelValue"), e = kt(), d = te(
3305
+ typeof ((U = e == null ? void 0 : e.tree) == null ? void 0 : U.width) == "number" ? `${e.tree.width}px` : ((B = e == null ? void 0 : e.tree) == null ? void 0 : B.width) || "180px"
3306
+ ), k = te(((ie = e == null ? void 0 : e.tree) == null ? void 0 : ie.search) === void 0 ? !0 : (ee = e == null ? void 0 : e.tree) == null ? void 0 : ee.search), S = te({}), x = te(""), M = te(null), w = (re, ue) => {
3303
3307
  var he, pe;
3304
3308
  if (!re) return !0;
3305
3309
  const we = ((pe = (he = e.tree) == null ? void 0 : he.props) == null ? void 0 : pe.label) || "label";
3306
3310
  return ue[we].includes(re);
3307
- }, H = (re, ue) => {
3311
+ }, z = (re, ue) => {
3308
3312
  o("load", S.value, re, ue);
3309
3313
  }, K = (re) => {
3310
3314
  S.value = re, t.value.table.load();
3311
3315
  };
3312
- return Xt(V, (re) => {
3313
- D.value.filter(re);
3316
+ return Qt(x, (re) => {
3317
+ M.value.filter(re);
3314
3318
  }), (re, ue) => {
3315
- const we = B("el-input"), he = B("el-tree"), pe = B("g-table");
3316
- return u(), F("div", ea, [
3319
+ const we = I("el-input"), he = I("el-tree"), pe = I("g-table");
3320
+ return u(), F("div", la, [
3317
3321
  W("div", {
3318
3322
  class: "g-tree-left",
3319
- style: Fe({ width: d.value })
3323
+ style: Se({ width: d.value })
3320
3324
  }, [
3321
- k.value ? (u(), C(we, {
3325
+ k.value ? (u(), D(we, {
3322
3326
  key: 0,
3323
- modelValue: V.value,
3324
- "onUpdate:modelValue": ue[0] || (ue[0] = (de) => V.value = de),
3327
+ modelValue: x.value,
3328
+ "onUpdate:modelValue": ue[0] || (ue[0] = (de) => x.value = de),
3325
3329
  style: { width: "100%", padding: "0 10px", "box-sizing": "border-box" },
3326
3330
  placeholder: "输入节点查询",
3327
3331
  clearable: ""
3328
3332
  }, null, 8, ["modelValue"])) : me("", !0),
3329
- W("div", ta, [
3330
- G(he, x({
3333
+ W("div", aa, [
3334
+ G(he, T({
3331
3335
  style: { width: d.value },
3332
3336
  "filter-node-method": w,
3333
3337
  "expand-on-click-node": !1,
3334
3338
  ref_key: "treeRef",
3335
- ref: D,
3339
+ ref: M,
3336
3340
  onNodeClick: K
3337
3341
  }, re.$attrs.tree), ce({
3338
3342
  default: h(({ node: de, data: ne }) => [
@@ -3345,7 +3349,7 @@ const Fl = {
3345
3349
  ]),
3346
3350
  _: 2
3347
3351
  }, [
3348
- L(re.$slots, (de, ne, le) => ({
3352
+ L(re.$slots, (de, ne, ae) => ({
3349
3353
  name: ne,
3350
3354
  fn: h(($e) => [
3351
3355
  y(re.$slots, ne, { data: $e }, void 0, !0)
@@ -3354,12 +3358,12 @@ const Fl = {
3354
3358
  ]), 1040, ["style"])
3355
3359
  ])
3356
3360
  ], 4),
3357
- W("div", la, [
3358
- G(pe, x({
3361
+ W("div", oa, [
3362
+ G(pe, T({
3359
3363
  modelValue: t.value,
3360
3364
  "onUpdate:modelValue": ue[1] || (ue[1] = (de) => t.value = de)
3361
- }, re.$attrs, { onLoad: H }), ce({ _: 2 }, [
3362
- L(re.$slots, (de, ne, le) => ({
3365
+ }, re.$attrs, { onLoad: z }), ce({ _: 2 }, [
3366
+ L(re.$slots, (de, ne, ae) => ({
3363
3367
  name: ne,
3364
3368
  fn: h(($e) => [
3365
3369
  y(re.$slots, ne, { data: $e }, void 0, !0)
@@ -3370,14 +3374,14 @@ const Fl = {
3370
3374
  ]);
3371
3375
  };
3372
3376
  }
3373
- }), oa = /* @__PURE__ */ We(aa, [["__scopeId", "data-v-2d8b16ed"]]), ra = {
3377
+ }), ua = /* @__PURE__ */ Xe(ra, [["__scopeId", "data-v-2d8b16ed"]]), na = {
3374
3378
  key: 0,
3375
3379
  class: "op-group"
3376
- }, ua = {
3380
+ }, sa = {
3377
3381
  key: 1,
3378
3382
  class: "op-items",
3379
3383
  style: { width: "100%", height: "100%" }
3380
- }, na = ["title"], Mt = "100px", sa = /* @__PURE__ */ Object.assign({ name: "g-select-option" }, {
3384
+ }, ia = ["title"], Vt = "100px", da = /* @__PURE__ */ Object.assign({ name: "g-select-option" }, {
3381
3385
  __name: "g-select-option",
3382
3386
  props: {
3383
3387
  columns: {
@@ -3399,53 +3403,53 @@ const Fl = {
3399
3403
  },
3400
3404
  setup(f) {
3401
3405
  const i = f;
3402
- return (o, t) => i.title ? (u(), F("div", ra, [
3406
+ return (o, t) => i.title ? (u(), F("div", na, [
3403
3407
  (u(!0), F(X, null, L(i.columns, (e) => (u(), F("span", {
3404
- style: Fe({ width: (e == null ? void 0 : e.width) || Mt, ...e == null ? void 0 : e.titleStyle, textAlign: (e == null ? void 0 : e.align) || "center" }),
3408
+ style: Se({ width: (e == null ? void 0 : e.width) || Vt, ...e == null ? void 0 : e.titleStyle, textAlign: (e == null ? void 0 : e.align) || "center" }),
3405
3409
  key: e.key
3406
3410
  }, [
3407
3411
  y(o.$slots, `${f.t}-title-${e.key}`, { col: e }, () => [
3408
- Se(be(e.label), 1)
3412
+ Te(be(e.label), 1)
3409
3413
  ], !0)
3410
3414
  ], 4))), 128))
3411
- ])) : (u(), F("div", ua, [
3415
+ ])) : (u(), F("div", sa, [
3412
3416
  (u(!0), F(X, null, L(i.columns, (e) => (u(), F("span", {
3413
- style: Fe({ width: (e == null ? void 0 : e.width) || Mt, textAlign: (e == null ? void 0 : e.align) || "center", ...e == null ? void 0 : e.style }),
3417
+ style: Se({ width: (e == null ? void 0 : e.width) || Vt, textAlign: (e == null ? void 0 : e.align) || "center", ...e == null ? void 0 : e.style }),
3414
3418
  key: e.key,
3415
3419
  title: f.data[e.key]
3416
3420
  }, [
3417
3421
  y(o.$slots, `${f.t}-option-${e.key}`, { col: e }, () => [
3418
- Se(be(f.data[e.key] ?? "-"), 1)
3422
+ Te(be(f.data[e.key] ?? "-"), 1)
3419
3423
  ], !0)
3420
- ], 12, na))), 128))
3424
+ ], 12, ia))), 128))
3421
3425
  ]));
3422
3426
  }
3423
- }), ia = /* @__PURE__ */ We(sa, [["__scopeId", "data-v-c0ac6b77"]]), da = Object.freeze({}), Ot = [Kl, gt, oa, ia];
3424
- let bt = {};
3425
- const Ea = {
3427
+ }), fa = /* @__PURE__ */ Xe(da, [["__scopeId", "data-v-c0ac6b77"]]), ca = Object.freeze({}), At = [ta, bt, ua, fa];
3428
+ let $t = {};
3429
+ const ka = {
3426
3430
  install: (f, i = {}) => {
3427
- bt = Object.freeze({ ...da, ...i }), Ot.forEach((o) => {
3431
+ $t = Object.freeze({ ...ca, ...i }), At.forEach((o) => {
3428
3432
  f.component(o.name, o);
3429
- }), f.provide("options", bt), f.config.globalProperties.$openModal = $t;
3433
+ }), f.provide("options", $t), f.config.globalProperties.$openModal = wt;
3430
3434
  }
3431
- }, fa = (f) => ({ dialog: Yt, drawer: Ut })[f] || null, $t = (f = {}, i = "dialog") => {
3435
+ }, ma = (f) => ({ dialog: Ut, drawer: Rt })[f] || null, wt = (f = {}, i = "dialog") => {
3432
3436
  if (typeof document > "u") return () => {
3433
3437
  };
3434
3438
  const o = document.createElement("div");
3435
3439
  let t = () => {
3436
3440
  };
3437
- const e = fa(i);
3441
+ const e = ma(i);
3438
3442
  if (!e) return () => {
3439
3443
  };
3440
- const d = te(!0), k = Gt({
3444
+ const d = te(!0), k = Zt({
3441
3445
  setup() {
3442
3446
  return t = () => {
3443
3447
  d.value = !1, setTimeout(() => {
3444
3448
  k.unmount(), o.remove();
3445
3449
  }, 300);
3446
3450
  }, () => {
3447
- var S, V, D;
3448
- return Ie(e, {
3451
+ var S, x, M;
3452
+ return Ae(e, {
3449
3453
  modelValue: d.value,
3450
3454
  "onUpdate:modelValue": (w) => d.value = w,
3451
3455
  appendToBody: !0,
@@ -3457,18 +3461,18 @@ const Ea = {
3457
3461
  ...f
3458
3462
  }, {
3459
3463
  default: (S = f.slots) == null ? void 0 : S.default,
3460
- header: (V = f.slots) == null ? void 0 : V.header,
3461
- footer: (D = f.slots) == null ? void 0 : D.footer
3464
+ header: (x = f.slots) == null ? void 0 : x.header,
3465
+ footer: (M = f.slots) == null ? void 0 : M.footer
3462
3466
  });
3463
3467
  };
3464
3468
  },
3465
3469
  mounted: () => {
3466
- ct();
3470
+ mt();
3467
3471
  }
3468
3472
  });
3469
- return Ot.forEach((S) => {
3473
+ return At.forEach((S) => {
3470
3474
  k.component(S.name, S);
3471
- }), k.provide("options", bt), k.use(Bt, { locale: al }), document.body.appendChild(o), k.mount(o), t;
3475
+ }), k.provide("options", $t), k.use(Yt, { locale: rl }), document.body.appendChild(o), k.mount(o), t;
3472
3476
  };
3473
3477
  function It(f, i = window.innerWidth) {
3474
3478
  if (typeof f == "number")
@@ -3492,7 +3496,7 @@ function It(f, i = window.innerWidth) {
3492
3496
  throw new Error("Invalid calc expression");
3493
3497
  };
3494
3498
  const e = f.slice(5, -1).trim();
3495
- return d(e.replace(/([0-9.]+)([a-z%]+)/g, (S, V, D) => It(V + D, i)));
3499
+ return d(e.replace(/([0-9.]+)([a-z%]+)/g, (S, x, M) => It(x + M, i)));
3496
3500
  }
3497
3501
  throw new Error("Unsupported unit in value: " + f);
3498
3502
  }
@@ -3502,25 +3506,25 @@ const xe = (...f) => {
3502
3506
  }), t);
3503
3507
  return f.forEach((t = {}) => o(i, t)), i;
3504
3508
  };
3505
- function Te(f, i = (o, t) => i(o, t)) {
3509
+ function qe(f, i = (o, t) => i(o, t)) {
3506
3510
  const o = {};
3507
3511
  for (const t in f)
3508
3512
  f.hasOwnProperty(t) && i(t, f[t]) && (o[t] = f[t]);
3509
3513
  return o;
3510
3514
  }
3511
- function ca(f, i, o = "value", t = "label", e = "children") {
3515
+ function pa(f, i, o = "value", t = "label", e = "children") {
3512
3516
  for (const d of f) {
3513
3517
  if (d[o] === i)
3514
3518
  return d[t];
3515
3519
  if (d[e] && d[e].length > 0) {
3516
- const k = ca(d[e], i, o, t, e);
3520
+ const k = pa(d[e], i, o, t, e);
3517
3521
  if (k)
3518
3522
  return k;
3519
3523
  }
3520
3524
  }
3521
3525
  return null;
3522
3526
  }
3523
- function wt(f) {
3527
+ function Et(f) {
3524
3528
  if (!f || isNaN(f)) return "零";
3525
3529
  const i = ["角", "分"], o = ["零", "壹", "贰", "叁", "肆", "伍", "陆", "柒", "捌", "玖"], t = [
3526
3530
  ["元", "万", "亿"],
@@ -3533,13 +3537,13 @@ function wt(f) {
3533
3537
  d = d || "整", f = Math.floor(f);
3534
3538
  for (let k = 0; k < t[0].length && f > 0; k++) {
3535
3539
  let S = "";
3536
- for (let V = 0; V < t[1].length && f > 0; V++)
3537
- S = o[f % 10] + t[1][V] + S, f = Math.floor(f / 10);
3540
+ for (let x = 0; x < t[1].length && f > 0; x++)
3541
+ S = o[f % 10] + t[1][x] + S, f = Math.floor(f / 10);
3538
3542
  d = S.replace(/(零.)*零$/, "").replace(/^$/, "零") + t[0][k] + d;
3539
3543
  }
3540
3544
  return e + d.replace(/(零.)*零元/, "元").replace(/(零.)+/g, "零").replace(/^整$/, "零元整");
3541
3545
  }
3542
- function ma(f) {
3546
+ function va(f) {
3543
3547
  if (typeof f != "number" || isNaN(f) || !isFinite(f))
3544
3548
  return "0.00";
3545
3549
  const i = f.toFixed(2), [o, t] = i.split(".");
@@ -3573,15 +3577,15 @@ const ge = {
3573
3577
  PASSWORD: "password",
3574
3578
  TEXTAREA: "textarea",
3575
3579
  TEL: "tel"
3576
- }, ct = () => {
3577
- et(() => {
3580
+ }, mt = () => {
3581
+ tt(() => {
3578
3582
  const f = document.querySelector(".el-dialog");
3579
3583
  if (!f || f.querySelector(".dialog-resize-handle"))
3580
3584
  return;
3581
- const i = pa();
3582
- f.appendChild(i), va(f), ha(f, i);
3585
+ const i = ha();
3586
+ f.appendChild(i), ya(f), ga(f, i);
3583
3587
  });
3584
- }, pa = () => {
3588
+ }, ha = () => {
3585
3589
  const f = document.createElement("div");
3586
3590
  return Object.assign(f.style, {
3587
3591
  position: "absolute",
@@ -3593,7 +3597,7 @@ const ge = {
3593
3597
  cursor: "nwse-resize",
3594
3598
  zIndex: "999999999999"
3595
3599
  }), f.className = "dialog-resize-handle", f;
3596
- }, va = (f) => {
3600
+ }, ya = (f) => {
3597
3601
  Object.assign(f.style, {
3598
3602
  transition: "none",
3599
3603
  minWidth: "300px",
@@ -3601,28 +3605,28 @@ const ge = {
3601
3605
  resize: "none"
3602
3606
  // 防止与原生resize冲突
3603
3607
  });
3604
- }, ha = (f, i) => {
3608
+ }, ga = (f, i) => {
3605
3609
  let o = !1, t, e, d, k;
3606
3610
  const S = (w) => {
3607
- w.preventDefault(), o = !0, t = w.clientX, e = w.clientY, d = parseInt(document.defaultView.getComputedStyle(f).width), k = parseInt(document.defaultView.getComputedStyle(f).height), document.addEventListener("mousemove", V), document.addEventListener("mouseup", D);
3608
- }, V = (w) => {
3611
+ w.preventDefault(), o = !0, t = w.clientX, e = w.clientY, d = parseInt(document.defaultView.getComputedStyle(f).width), k = parseInt(document.defaultView.getComputedStyle(f).height), document.addEventListener("mousemove", x), document.addEventListener("mouseup", M);
3612
+ }, x = (w) => {
3609
3613
  if (!o) return;
3610
- const H = Math.max(300, d + w.clientX - t), K = Math.max(200, k + w.clientY - e);
3611
- f.style.width = `${H}px`, f.style.height = `${K}px`;
3612
- }, D = () => {
3613
- o = !1, document.removeEventListener("mousemove", V), document.removeEventListener("mouseup", D);
3614
+ const z = Math.max(300, d + w.clientX - t), K = Math.max(200, k + w.clientY - e);
3615
+ f.style.width = `${z}px`, f.style.height = `${K}px`;
3616
+ }, M = () => {
3617
+ o = !1, document.removeEventListener("mousemove", x), document.removeEventListener("mouseup", M);
3614
3618
  };
3615
3619
  i.addEventListener("mousedown", S);
3616
3620
  };
3617
3621
  export {
3618
3622
  ge as CT,
3619
- ct as bindResize,
3623
+ mt as bindResize,
3620
3624
  It as convertToPx,
3621
- Ea as default,
3622
- Te as filterObject,
3623
- ca as findTreeLabelByValue,
3624
- ma as formatAmount,
3625
+ ka as default,
3626
+ qe as filterObject,
3627
+ pa as findTreeLabelByValue,
3628
+ va as formatAmount,
3625
3629
  xe as mergeObjects,
3626
- wt as moneyToChinese,
3627
- $t as openModal
3630
+ Et as moneyToChinese,
3631
+ wt as openModal
3628
3632
  };