vue-2024-ui 0.1.27 → 0.1.29

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 Ie, ElMessageBox as xt, ElDialog as Ut, ElDrawer as Rt } from "element-plus";
2
+ import { mergeModels as Ne, useModel as We, ref as le, 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 C, createCommentVNode as me, unref as j, mergeProps as x, withCtx as h, renderSlot as y, renderList as L, createTextVNode as Te, toDisplayString as be, createSlots as fe, 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 Ue, guardReactiveProps as Lt, Transition as zt, withDirectives as Ht, vShow as Pt, h as Ae, onBeforeUnmount as Nt, normalizeClass as St, watchEffect as Wt, onActivated as Xt, watch as Gt, createApp as Qt } from "vue";
3
+ import { Plus as Zt, ZoomIn as Jt, Delete as Kt, DocumentCopy as el, FullScreen as tl, CopyDocument as ll } from "@element-plus/icons-vue";
4
+ import Ft from "sortablejs";
5
+ import { Dexie as al } from "dexie";
6
+ var ol = {
7
7
  name: "zh-cn",
8
8
  el: {
9
9
  breadcrumb: {
@@ -181,64 +181,64 @@ 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
+ }, rl = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
185
+ function ul(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) {
194
- var s = ["th", "st", "nd", "rd"], a = p % 100;
195
- return "[" + p + (s[(a - 20) % 10] || s[a] || s[0]) + "]";
196
- } }, we = function(p, s, a) {
197
- var _ = String(p);
198
- return !_ || _.length >= s ? p : "" + Array(s + 1 - _.length).join(a) + p;
199
- }, he = { s: we, z: function(p) {
200
- var s = -p.utcOffset(), a = Math.abs(s), _ = Math.floor(a / 60), n = a % 60;
192
+ })(rl, function() {
193
+ var o = 1e3, t = 6e4, e = 36e5, d = "millisecond", k = "second", T = "minute", V = "hour", D = "day", w = "week", z = "month", ee = "quarter", B = "year", U = "date", se = "Invalid Date", re = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, K = /\[([^\]]+)]|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, ce = { 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(m) {
194
+ var s = ["th", "st", "nd", "rd"], a = m % 100;
195
+ return "[" + m + (s[(a - 20) % 10] || s[a] || s[0]) + "]";
196
+ } }, we = function(m, s, a) {
197
+ var _ = String(m);
198
+ return !_ || _.length >= s ? m : "" + Array(s + 1 - _.length).join(a) + m;
199
+ }, he = { s: we, z: function(m) {
200
+ var s = -m.utcOffset(), a = Math.abs(s), _ = Math.floor(a / 60), n = a % 60;
201
201
  return (s <= 0 ? "+" : "-") + we(_, 2, "0") + ":" + we(n, 2, "0");
202
- }, m: function p(s, a) {
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);
202
+ }, m: function m(s, a) {
203
+ if (s.date() < a.date()) return -m(a, s);
204
+ var _ = 12 * (a.year() - s.year()) + (a.month() - s.month()), n = s.clone().add(_, z), b = a - n < 0, M = s.clone().add(_ + (b ? -1 : 1), z);
205
205
  return +(-(_ + (a - n) / (b ? n - M : M - n)) || 0);
206
- }, a: function(p) {
207
- return p < 0 ? Math.ceil(p) || 0 : Math.floor(p);
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$/, "");
210
- }, u: function(p) {
211
- return p === void 0;
212
- } }, pe = "en", de = {};
213
- de[pe] = ue;
214
- var ne = "$isDayjsObject", le = function(p) {
215
- return p instanceof E || !(!p || !p[ne]);
216
- }, $e = function p(s, a, _) {
206
+ }, a: function(m) {
207
+ return m < 0 ? Math.ceil(m) || 0 : Math.floor(m);
208
+ }, p: function(m) {
209
+ return { M: z, y: B, w, d: D, D: U, h: V, m: T, s: k, ms: d, Q: ee }[m] || String(m || "").toLowerCase().replace(/s$/, "");
210
+ }, u: function(m) {
211
+ return m === void 0;
212
+ } }, pe = "en", ie = {};
213
+ ie[pe] = ce;
214
+ var ue = "$isDayjsObject", ae = function(m) {
215
+ return m instanceof E || !(!m || !m[ue]);
216
+ }, $e = function m(s, a, _) {
217
217
  var n;
218
218
  if (!s) return pe;
219
219
  if (typeof s == "string") {
220
220
  var b = s.toLowerCase();
221
- de[b] && (n = b), a && (de[b] = a, n = b);
221
+ ie[b] && (n = b), a && (ie[b] = a, n = b);
222
222
  var M = s.split("-");
223
- if (!n && M.length > 1) return p(M[0]);
223
+ if (!n && M.length > 1) return m(M[0]);
224
224
  } else {
225
225
  var q = s.name;
226
- de[q] = s, n = q;
226
+ ie[q] = s, n = q;
227
227
  }
228
228
  return !_ && n && (pe = n), n || !_ && pe;
229
- }, se = function(p, s) {
230
- if (le(p)) return p.clone();
229
+ }, ne = function(m, s) {
230
+ if (ae(m)) return m.clone();
231
231
  var a = typeof s == "object" ? s : {};
232
- return a.date = p, a.args = arguments, new E(a);
232
+ return a.date = m, a.args = arguments, new E(a);
233
233
  }, g = he;
234
- g.l = $e, g.i = le, g.w = function(p, s) {
235
- return se(p, { locale: s.$L, utc: s.$u, x: s.$x, $offset: s.$offset });
234
+ g.l = $e, g.i = ae, g.w = function(m, s) {
235
+ return ne(m, { locale: s.$L, utc: s.$u, x: s.$x, $offset: s.$offset });
236
236
  };
237
237
  var E = function() {
238
- function p(a) {
239
- this.$L = $e(a.locale, null, !0), this.parse(a), this.$x = this.$x || a.x || {}, this[ne] = !0;
238
+ function m(a) {
239
+ this.$L = $e(a.locale, null, !0), this.parse(a), this.$x = this.$x || a.x || {}, this[ue] = !0;
240
240
  }
241
- var s = p.prototype;
241
+ var s = m.prototype;
242
242
  return s.parse = function(a) {
243
243
  this.$d = function(_) {
244
244
  var n = _.date, b = _.utc;
@@ -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);
249
+ var M = n.match(re);
250
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);
251
+ var q = M[2] - 1 || 0, oe = (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, oe)) : new Date(M[1], q, M[3] || 1, M[4] || 0, M[5] || 0, M[6] || 0, oe);
253
253
  }
254
254
  }
255
255
  return new Date(n);
@@ -260,14 +260,14 @@ var Ft = { exports: {} };
260
260
  }, s.$utils = function() {
261
261
  return g;
262
262
  }, s.isValid = function() {
263
- return this.$d.toString() !== ie;
263
+ return this.$d.toString() !== se;
264
264
  }, s.isSame = function(a, _) {
265
- var n = se(a);
265
+ var n = ne(a);
266
266
  return this.startOf(_) <= n && n <= this.endOf(_);
267
267
  }, s.isAfter = function(a, _) {
268
- return se(a) < this.startOf(_);
268
+ return ne(a) < this.startOf(_);
269
269
  }, s.isBefore = function(a, _) {
270
- return this.endOf(_) < se(a);
270
+ return this.endOf(_) < ne(a);
271
271
  }, s.$g = function(a, _, n) {
272
272
  return g.u(a) ? this[_] : this.set(n, a);
273
273
  }, s.unix = function() {
@@ -276,39 +276,39 @@ var Ft = { exports: {} };
276
276
  return this.$d.getTime();
277
277
  }, s.startOf = function(a, _) {
278
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) {
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(D);
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
- }, fe = this.$W, R = this.$M, O = this.$D, Ce = "set" + (this.$u ? "UTC" : "");
283
+ }, de = this.$W, R = this.$M, O = this.$D, Ce = "set" + (this.$u ? "UTC" : "");
284
284
  switch (M) {
285
- case U:
285
+ case B:
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
- var _e = this.$locale().weekStart || 0, Ve = (fe < _e ? fe + 7 : fe) - _e;
290
+ var _e = this.$locale().weekStart || 0, Ve = (de < _e ? de + 7 : de) - _e;
291
291
  return q(b ? O - Ve : O + (6 - Ve), R);
292
292
  case D:
293
- case Y:
294
- return ae(Ce + "Hours", 0);
293
+ case U:
294
+ return oe(Ce + "Hours", 0);
295
295
  case V:
296
- return ae(Ce + "Minutes", 1);
297
- case S:
298
- return ae(Ce + "Seconds", 2);
296
+ return oe(Ce + "Minutes", 1);
297
+ case T:
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), M = "set" + (this.$u ? "UTC" : ""), q = (n = {}, n[D] = M + "Date", n[U] = M + "Date", n[z] = M + "Month", n[B] = M + "FullYear", n[V] = M + "Hours", n[T] = M + "Minutes", n[k] = M + "Seconds", n[d] = M + "Milliseconds", n)[b], oe = b === D ? this.$D + (_ - this.$W) : _;
308
+ if (b === z || b === B) {
309
+ var de = this.clone().set(U, 1);
310
+ de.$d[q](oe), de.init(), this.$d = de.set(U, Math.min(this.$D, de.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, _);
@@ -318,43 +318,43 @@ var Ft = { exports: {} };
318
318
  var n, b = this;
319
319
  a = Number(a);
320
320
  var M = g.p(_), q = function(R) {
321
- var O = se(b);
321
+ var O = ne(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);
324
+ if (M === z) return this.set(z, this.$M + a);
325
+ if (M === B) return this.set(B, this.$y + a);
326
326
  if (M === D) return q(1);
327
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;
329
- return g.w(fe, this);
328
+ var oe = (n = {}, n[T] = t, n[V] = e, n[k] = o, n)[M] || 1, de = this.$d.getTime() + a * oe;
329
+ return g.w(de, 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
- 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);
334
+ if (!this.isValid()) return n.invalidDate || se;
335
+ var b = a || "YYYY-MM-DDTHH:mm:ssZ", M = g.z(this), q = this.$H, oe = this.$m, de = this.$M, R = n.weekdays, O = n.months, Ce = n.meridiem, _e = function(ye, Fe, Be, Re) {
336
+ return ye && (ye[Fe] || ye(_, b)) || Be[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, Be) {
340
+ var Re = ye < 12 ? "AM" : "PM";
341
+ return Be ? 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(K, function(ye, Fe) {
344
+ return Fe || function(Be) {
345
+ switch (Be) {
346
346
  case "YY":
347
347
  return String(_.$y).slice(-2);
348
348
  case "YYYY":
349
349
  return g.s(_.$y, 4, "0");
350
350
  case "M":
351
- return fe + 1;
351
+ return de + 1;
352
352
  case "MM":
353
- return g.s(fe + 1, 2, "0");
353
+ return g.s(de + 1, 2, "0");
354
354
  case "MMM":
355
- return _e(n.monthsShort, fe, O, 3);
355
+ return _e(n.monthsShort, de, O, 3);
356
356
  case "MMMM":
357
- return _e(O, fe);
357
+ return _e(O, de);
358
358
  case "D":
359
359
  return _.$D;
360
360
  case "DD":
@@ -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":
@@ -398,29 +398,29 @@ var Ft = { exports: {} };
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, M = this, q = g.p(_), oe = ne(a), de = (oe.utcOffset() - this.utcOffset()) * t, R = this - oe, O = function() {
402
+ return g.m(M, oe);
403
403
  };
404
404
  switch (q) {
405
- case U:
405
+ case B:
406
406
  b = O() / 12;
407
407
  break;
408
- case H:
408
+ case z:
409
409
  b = O();
410
410
  break;
411
- case K:
411
+ case ee:
412
412
  b = O() / 3;
413
413
  break;
414
414
  case w:
415
- b = (R - fe) / 6048e5;
415
+ b = (R - de) / 6048e5;
416
416
  break;
417
417
  case D:
418
- b = (R - fe) / 864e5;
418
+ b = (R - de) / 864e5;
419
419
  break;
420
420
  case V:
421
421
  b = R / e;
422
422
  break;
423
- case S:
423
+ case T:
424
424
  b = R / t;
425
425
  break;
426
426
  case k:
@@ -431,9 +431,9 @@ 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
- return de[this.$L];
436
+ return ie[this.$L];
437
437
  }, s.locale = function(a, _) {
438
438
  if (!a) return this.$L;
439
439
  var n = this.clone(), b = $e(a, _, !0);
@@ -448,21 +448,21 @@ var Ft = { exports: {} };
448
448
  return this.$d.toISOString();
449
449
  }, s.toString = function() {
450
450
  return this.$d.toUTCString();
451
- }, p;
451
+ }, m;
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) {
454
- v[p[1]] = function(s) {
455
- return this.$g(s, p[0], p[1]);
453
+ return ne.prototype = v, [["$ms", d], ["$s", k], ["$m", T], ["$H", V], ["$W", D], ["$M", z], ["$y", B], ["$D", U]].forEach(function(m) {
454
+ v[m[1]] = function(s) {
455
+ return this.$g(s, m[0], m[1]);
456
456
  };
457
- }), se.extend = function(p, s) {
458
- return p.$i || (p(s, E, se), p.$i = !0), se;
459
- }, se.locale = $e, se.isDayjs = le, se.unix = function(p) {
460
- return se(1e3 * p);
461
- }, se.en = de[pe], se.Ls = de, se.p = {}, se;
457
+ }), ne.extend = function(m, s) {
458
+ return m.$i || (m(s, E, ne), m.$i = !0), ne;
459
+ }, ne.locale = $e, ne.isDayjs = ae, ne.unix = function(m) {
460
+ return ne(1e3 * m);
461
+ }, ne.en = ie[pe], ne.Ls = ie, ne.p = {}, ne;
462
462
  });
463
- })(Ft);
464
- var ul = Ft.exports;
465
- const ht = /* @__PURE__ */ rl(ul), qt = {
463
+ })(qt);
464
+ var nl = qt.exports;
465
+ const yt = /* @__PURE__ */ ul(nl), 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
+ }, sl = {
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
+ }, il = { style: { width: "var(--up-width)", height: "var(--up-height)", position: "relative", "box-sizing": "border-box" } }, dl = {
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
+ }, fl = ["title"], cl = { key: 22 }, ml = ["innerHTML"], pl = ["innerHTML"], vl = ["innerHTML"], hl = /* @__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
- 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({
526
+ var $e, ne;
527
+ const i = We(f, "modelValue"), o = f, t = le(o.item || {}), e = le(o.ctrlKey), d = le(o.ctrlType), k = le(o.model), T = le([]), V = le([]), D = le(!1), w = le(!1), z = () => Object.keys(Tt()).filter((g) => g.startsWith(`${o.t}-${e}-`)).map((g) => g.replace(`${o.t}-${e}-`, "")), ee = le({
528
528
  multiple: !1,
529
529
  "show-file-list": !1,
530
530
  "file-list": [],
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) => [
531
+ showDel: ($e = t.value) != null && $e.showDel ? (ne = t.value) == null ? void 0 : ne.showDel : o.t !== "t"
532
+ }), B = le(t.value.innerHtml), U = (g) => [
533
533
  "year",
534
534
  "years",
535
535
  "month",
@@ -542,7 +542,7 @@ const ht = /* @__PURE__ */ rl(ul), qt = {
542
542
  "daterange",
543
543
  "monthrange",
544
544
  "yearrange"
545
- ].includes(g), ie = (g) => ({
545
+ ].includes(g), se = (g) => ({
546
546
  year: "YYYY",
547
547
  years: "YYYY",
548
548
  month: "YYYY-MM",
@@ -556,29 +556,29 @@ const ht = /* @__PURE__ */ rl(ul), qt = {
556
556
  daterange: "YYYY-MM-DD",
557
557
  monthrange: "YYYY-MM",
558
558
  yearrange: "YYYY"
559
- })[g] || "YYYY-MM-DD", ee = te({
559
+ })[g] || "YYYY-MM-DD", re = le({
560
560
  filterable: !0,
561
561
  remote: !!(t.value && t.value["remote-method"]),
562
562
  ...t.value
563
- }), re = te((g) => {
563
+ }), K = le((g) => {
564
564
  t.value["remote-method"](g, (E) => {
565
- et(() => {
565
+ tt(() => {
566
566
  V.value = E;
567
567
  });
568
568
  });
569
- }), ue = async (g = "options") => {
569
+ }), ce = async (g = "options") => {
570
570
  var E;
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
574
  V.value = [{ label: v, value: i.value }];
575
575
  else {
576
- const p = v == null ? void 0 : v.map((s, a) => ({
576
+ const m = 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
+ V.value = m || [];
582
582
  }
583
583
  } catch (v) {
584
584
  throw console.error("获取选项失败:", v), v;
@@ -590,20 +590,20 @@ const ht = /* @__PURE__ */ rl(ul), qt = {
590
590
  g.preventDefault(), g.stopPropagation(), i.value = "";
591
591
  }, pe = (g) => {
592
592
  D.value = !0;
593
- }, de = (g) => {
593
+ }, ie = (g) => {
594
594
  g.preventDefault(), g.stopPropagation(), D.value = !0;
595
- }, ne = te(null);
596
- ot(async () => {
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);
595
+ }, ue = le(null);
596
+ rt(async () => {
597
+ var v, m, s, a, _;
598
+ t.value && t.value["remote-method"] && (re.value["remote-method"] = K), (m = (v = k.value[e.value]) == null ? void 0 : v.options) != null && m.length && (V.value = k.value[e.value].options);
599
599
  const g = (n, b = "options", M = k.value[e.value]) => {
600
- typeof t.value.getDicts == "function" && ue(b).catch((q) => {
600
+ typeof t.value.getDicts == "function" && ce(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" ? T.value = await t.value.getDicts(o.formInfo) : T.value = V.value;
607
607
  } catch (b) {
608
608
  console.error("Failed to load data for tree-select:", b);
609
609
  }
@@ -633,35 +633,35 @@ const ht = /* @__PURE__ */ rl(ul), qt = {
633
633
  (q = (M = k.value) == null ? void 0 : M.table) == null || q.load();
634
634
  });
635
635
  }
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));
636
+ d.value == "image" && (t.value.width && ((s = ue.value) != null && s.$el) && ue.value.$el.style.setProperty("--up-width", typeof t.value.width == "number" ? t.value.width + "px" : t.value.width), t.value.height && ((a = ue.value) != null && a.$el) && ue.value.$el.style.setProperty("--up-height", typeof t.value.height == "number" ? t.value.height + "px" : t.value.height), t.value.fontSize && ((_ = ue.value) != null && _.$el) && ue.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"), m = 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"), M = I("g-select-option"), q = I("el-option"), oe = I("el-select"), de = 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"), Be = 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"), p = I("el-avatar"), S = I("el-tag");
645
645
  return u(), F(X, null, [
646
646
  W("div", null, [
647
647
  D.value ? (u(), C(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] = (c) => D.value = !1)
652
652
  }, null, 8, ["url-list"])) : me("", !0)
653
653
  ]),
654
- W("div", nl, [
654
+ W("div", sl, [
655
655
  d.value == j(ge).RADIO ? (u(), C(s, x({
656
656
  key: 0,
657
657
  modelValue: i.value,
658
- "onUpdate:modelValue": E[1] || (E[1] = (m) => i.value = m)
658
+ "onUpdate:modelValue": E[1] || (E[1] = (c) => i.value = c)
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(V.value, (c) => (u(), C(m, x({ ref_for: !0 }, c), {
663
663
  default: h(() => [
664
- y(g.$slots, `${o.t}-${e.value}-options`, { option: m }, void 0, !0)
664
+ y(g.$slots, `${o.t}-${e.value}-options`, { option: c }, void 0, !0)
665
665
  ]),
666
666
  _: 2
667
667
  }, 1040))), 256))
@@ -671,13 +671,13 @@ const ht = /* @__PURE__ */ rl(ul), qt = {
671
671
  }, 16, ["modelValue"])) : d.value == j(ge).RADIOBUTTON ? (u(), C(s, x({
672
672
  key: 1,
673
673
  modelValue: i.value,
674
- "onUpdate:modelValue": E[2] || (E[2] = (m) => i.value = m)
674
+ "onUpdate:modelValue": E[2] || (E[2] = (c) => i.value = c)
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(V.value, (c) => (u(), C(a, x({ ref_for: !0 }, c), {
679
679
  default: h(() => [
680
- y(g.$slots, `${o.t}-${e.value}-options`, { option: m }, void 0, !0)
680
+ y(g.$slots, `${o.t}-${e.value}-options`, { option: c }, void 0, !0)
681
681
  ]),
682
682
  _: 2
683
683
  }, 1040))), 256))
@@ -687,25 +687,25 @@ const ht = /* @__PURE__ */ rl(ul), qt = {
687
687
  }, 16, ["modelValue"])) : d.value == j(ge).CHECKBOX ? (u(), C(_, x({
688
688
  key: 2,
689
689
  modelValue: i.value,
690
- "onUpdate:modelValue": E[3] || (E[3] = (m) => i.value = m)
690
+ "onUpdate:modelValue": E[3] || (E[3] = (c) => i.value = c)
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
698
  }, 16, ["modelValue"])) : d.value == j(ge).CHECKBOXGROUP ? (u(), C(n, x({
699
699
  key: 3,
700
700
  modelValue: i.value,
701
- "onUpdate:modelValue": E[4] || (E[4] = (m) => i.value = m)
701
+ "onUpdate:modelValue": E[4] || (E[4] = (c) => i.value = c)
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(V.value, (c) => (u(), C(_, x({ ref_for: !0 }, c), {
706
706
  default: h(() => [
707
- y(g.$slots, `${o.t}-${e.value}-options`, { option: m }, () => [
708
- Se(be(m.label), 1)
707
+ y(g.$slots, `${o.t}-${e.value}-options`, { option: c }, () => [
708
+ Te(be(c.label), 1)
709
709
  ], !0)
710
710
  ]),
711
711
  _: 2
@@ -716,37 +716,37 @@ const ht = /* @__PURE__ */ rl(ul), qt = {
716
716
  }, 16, ["modelValue"])) : d.value == j(ge).CHECKBOXGROUPBUTTON ? (u(), C(n, x({
717
717
  key: 4,
718
718
  modelValue: i.value,
719
- "onUpdate:modelValue": E[5] || (E[5] = (m) => i.value = m)
719
+ "onUpdate:modelValue": E[5] || (E[5] = (c) => i.value = c)
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(V.value, (c) => (u(), C(b, x({ ref_for: !0 }, c), {
724
724
  default: h(() => [
725
- y(g.$slots, `${o.t}-${e.value}-options`, { option: m }, void 0, !0)
725
+ y(g.$slots, `${o.t}-${e.value}-options`, { option: c }, void 0, !0)
726
726
  ]),
727
727
  _: 2
728
728
  }, 1040))), 256))
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(), C(oe, x({
733
733
  key: 5,
734
734
  modelValue: i.value,
735
- "onUpdate:modelValue": E[6] || (E[6] = (m) => i.value = m),
735
+ "onUpdate:modelValue": E[6] || (E[6] = (c) => i.value = c),
736
736
  placeholder: k.value[e.value].label,
737
737
  clearable: !0,
738
738
  onClear: E[7] || (E[7] = () => {
739
739
  o.t == "q" && k.value.table.load();
740
740
  })
741
- }, ee.value), ce({
741
+ }, re.value), fe({
742
742
  default: h(() => [
743
743
  y(g.$slots, `${o.t}-${e.value}`, { options: V.value }, () => [
744
- (u(!0), F(X, null, L(V.value, (m) => (u(), F(X, {
745
- key: m.value
744
+ (u(!0), F(X, null, L(V.value, (c) => (u(), F(X, {
745
+ key: c.value
746
746
  }, [
747
- G(q, x({ ref_for: !0 }, j(Te)(m, (Q) => Q != "children"), {
747
+ G(q, x({ ref_for: !0 }, j(qe)(c, (Q) => Q != "children"), {
748
748
  onClick: (Q) => {
749
- ee.value.change && ee.value.change(m), we();
749
+ re.value.change && re.value.change(c), we();
750
750
  }
751
751
  }), {
752
752
  default: h(() => {
@@ -754,21 +754,21 @@ const ht = /* @__PURE__ */ rl(ul), qt = {
754
754
  return [
755
755
  (Q = t.value) != null && Q.columns ? y(g.$slots, `${o.t}-${e.value}-options`, {
756
756
  key: 0,
757
- option: m
757
+ option: c
758
758
  }, () => {
759
759
  var ve;
760
760
  return [
761
761
  G(M, {
762
762
  columns: (ve = t.value) == null ? void 0 : ve.columns,
763
- data: m,
763
+ data: c,
764
764
  t: o.t
765
- }, ce({ _: 2 }, [
766
- L(g.$slots, (I, oe) => ({
767
- name: oe,
768
- fn: h(($) => [
769
- y(g.$slots, oe, {
770
- option: m,
771
- data: $
765
+ }, fe({ _: 2 }, [
766
+ L(g.$slots, (Ye, Y) => ({
767
+ name: Y,
768
+ fn: h((te) => [
769
+ y(g.$slots, Y, {
770
+ option: c,
771
+ data: te
772
772
  }, void 0, !0)
773
773
  ])
774
774
  }))
@@ -779,13 +779,13 @@ 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
+ c.children && c.children.length ? (u(!0), F(X, { key: 0 }, L(c.children, (Q) => (u(), C(q, x({
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
- ee.value.change && ee.value.change(Q), we();
788
+ re.value.change && re.value.change(Q), we();
789
789
  }
790
790
  }), {
791
791
  default: h(() => {
@@ -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 Ye;
799
799
  return [
800
800
  G(M, {
801
- columns: (I = t.value) == null ? void 0 : I.columns,
801
+ columns: (Ye = t.value) == null ? void 0 : Ye.columns,
802
802
  data: Q,
803
803
  t: o.t
804
- }, ce({ _: 2 }, [
805
- L(g.$slots, (oe, $) => ({
806
- name: $,
807
- fn: h((z) => [
808
- y(g.$slots, $, {
804
+ }, fe({ _: 2 }, [
805
+ L(g.$slots, (Y, te) => ({
806
+ name: te,
807
+ fn: h(($) => [
808
+ y(g.$slots, te, {
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
- var m;
829
+ var c;
830
830
  return [
831
831
  G(M, {
832
- columns: (m = t.value) == null ? void 0 : m.columns,
832
+ columns: (c = t.value) == null ? void 0 : c.columns,
833
833
  title: !0,
834
834
  t: o.t
835
- }, ce({ _: 2 }, [
835
+ }, fe({ _: 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((Ye) => [
839
+ y(g.$slots, ve, { data: Ye }, void 0, !0)
840
840
  ])
841
841
  }))
842
842
  ]), 1032, ["columns", "t"])
@@ -844,127 +844,127 @@ const ht = /* @__PURE__ */ rl(ul), qt = {
844
844
  }),
845
845
  key: "0"
846
846
  } : void 0,
847
- L(H(), (m) => ({
848
- name: m,
847
+ L(z(), (c) => ({
848
+ name: c,
849
849
  fn: h((Q) => [
850
- y(g.$slots, `${o.t}-${e.value}-${m}`, { data: Q }, void 0, !0)
850
+ y(g.$slots, `${o.t}-${e.value}-${c}`, { 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(), C(de, x({
854
854
  key: 6,
855
855
  modelValue: i.value,
856
- "onUpdate:modelValue": E[8] || (E[8] = (m) => i.value = m),
856
+ "onUpdate:modelValue": E[8] || (E[8] = (c) => i.value = c),
857
857
  placeholder: k.value[e.value].label
858
- }, t.value, { data: S.value }), ce({ _: 2 }, [
859
- L(H(), (m) => ({
860
- name: m,
858
+ }, t.value, { data: T.value }), fe({ _: 2 }, [
859
+ L(z(), (c) => ({
860
+ name: c,
861
861
  fn: h((Q) => [
862
- y(g.$slots, `${o.t}-${e.value}-${m}`, { data: Q }, void 0, !0)
862
+ y(g.$slots, `${o.t}-${e.value}-${c}`, { data: Q }, void 0, !0)
863
863
  ])
864
864
  }))
865
865
  ]), 1040, ["modelValue", "placeholder", "data"])) : d.value == j(ge).TIME ? (u(), C(R, x({
866
866
  key: 7,
867
867
  modelValue: i.value,
868
- "onUpdate:modelValue": E[9] || (E[9] = (m) => i.value = m),
868
+ "onUpdate:modelValue": E[9] || (E[9] = (c) => i.value = c),
869
869
  "arrow-control": ""
870
870
  }, t.value, {
871
871
  placeholder: k.value[e.value].label
872
872
  }), null, 16, ["modelValue", "placeholder"])) : d.value == j(ge).TIMESELECT ? (u(), C(O, x({
873
873
  key: 8,
874
874
  modelValue: i.value,
875
- "onUpdate:modelValue": E[10] || (E[10] = (m) => i.value = m),
875
+ "onUpdate:modelValue": E[10] || (E[10] = (c) => i.value = c),
876
876
  start: "06:30",
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"])) : U(d.value) ? (u(), C(Ce, x({
881
881
  key: 9,
882
882
  modelValue: i.value,
883
- "onUpdate:modelValue": E[11] || (E[11] = (m) => i.value = m),
883
+ "onUpdate:modelValue": E[11] || (E[11] = (c) => i.value = c),
884
884
  type: d.value,
885
885
  placeholder: k.value[e.value].label,
886
- "value-format": ie(d.value)
887
- }, t.value), ce({ _: 2 }, [
888
- L(H(), (m) => ({
889
- name: m,
886
+ "value-format": se(d.value)
887
+ }, t.value), fe({ _: 2 }, [
888
+ L(z(), (c) => ({
889
+ name: c,
890
890
  fn: h((Q) => [
891
- y(g.$slots, `${o.t}-${e.value}-${m}`, { data: Q }, void 0, !0)
891
+ y(g.$slots, `${o.t}-${e.value}-${c}`, { data: Q }, void 0, !0)
892
892
  ])
893
893
  }))
894
894
  ]), 1040, ["modelValue", "type", "placeholder", "value-format"])) : d.value == j(ge).COLOR ? (u(), C(_e, x({
895
895
  key: 10,
896
896
  modelValue: i.value,
897
- "onUpdate:modelValue": E[12] || (E[12] = (m) => i.value = m)
897
+ "onUpdate:modelValue": E[12] || (E[12] = (c) => i.value = c)
898
898
  }, t.value), null, 16, ["modelValue"])) : d.value == j(ge).RATE ? (u(), C(Ve, x({
899
899
  key: 11,
900
900
  modelValue: i.value,
901
- "onUpdate:modelValue": E[13] || (E[13] = (m) => i.value = m)
901
+ "onUpdate:modelValue": E[13] || (E[13] = (c) => i.value = c)
902
902
  }, t.value), null, 16, ["modelValue"])) : d.value == j(ge).SLIDER ? (u(), C(De, x({
903
903
  key: 12,
904
904
  modelValue: i.value,
905
- "onUpdate:modelValue": E[14] || (E[14] = (m) => i.value = m)
905
+ "onUpdate:modelValue": E[14] || (E[14] = (c) => i.value = c)
906
906
  }, t.value), null, 16, ["modelValue"])) : d.value == j(ge).SWITCH ? (u(), C(ye, x({
907
907
  key: 13,
908
908
  modelValue: i.value,
909
- "onUpdate:modelValue": E[15] || (E[15] = (m) => i.value = m),
909
+ "onUpdate:modelValue": E[15] || (E[15] = (c) => i.value = c),
910
910
  inlinePrompt: !0
911
- }, t.value), ce({ _: 2 }, [
912
- L(H(), (m) => ({
913
- name: m,
911
+ }, t.value), fe({ _: 2 }, [
912
+ L(z(), (c) => ({
913
+ name: c,
914
914
  fn: h((Q) => [
915
- y(g.$slots, `${o.t}-${e.value}-${m}`, { data: Q }, void 0, !0)
915
+ y(g.$slots, `${o.t}-${e.value}-${c}`, { 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(), C(Fe, x({
919
919
  key: 14,
920
920
  modelValue: i.value,
921
- "onUpdate:modelValue": E[16] || (E[16] = (m) => i.value = m)
922
- }, t.value), ce({ _: 2 }, [
923
- L(H(), (m) => ({
924
- name: m,
921
+ "onUpdate:modelValue": E[16] || (E[16] = (c) => i.value = c)
922
+ }, t.value), fe({ _: 2 }, [
923
+ L(z(), (c) => ({
924
+ name: c,
925
925
  fn: h((Q) => [
926
- y(g.$slots, `${o.t}-${e.value}-${m}`, { data: Q }, void 0, !0)
926
+ y(g.$slots, `${o.t}-${e.value}-${c}`, { 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(), C(Be, x({
930
930
  key: 15,
931
931
  modelValue: i.value,
932
- "onUpdate:modelValue": E[17] || (E[17] = (m) => i.value = m)
933
- }, t.value, { options: V.value }), ce({ _: 2 }, [
934
- L(H(), (m) => ({
935
- name: m,
932
+ "onUpdate:modelValue": E[17] || (E[17] = (c) => i.value = c)
933
+ }, t.value, { options: V.value }), fe({ _: 2 }, [
934
+ L(z(), (c) => ({
935
+ name: c,
936
936
  fn: h((Q) => [
937
- y(g.$slots, `${o.t}-${e.value}-${m}`, { data: Q }, void 0, !0)
937
+ y(g.$slots, `${o.t}-${e.value}-${c}`, { 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(), C(nt, x({
941
941
  key: 16,
942
942
  "file-list": t.value["file-list"],
943
- "onUpdate:fileList": E[21] || (E[21] = (m) => t.value["file-list"] = m),
943
+ "onUpdate:fileList": E[21] || (E[21] = (c) => t.value["file-list"] = c),
944
944
  "list-type": "picture-card",
945
945
  class: "custom-upload",
946
946
  "on-preview": pe
947
- }, { ...K.value, ...t.value }, {
947
+ }, { ...ee.value, ...t.value }, {
948
948
  ref_key: "uploadRef",
949
- ref: ne
950
- }), ce({
949
+ ref: ue
950
+ }), fe({
951
951
  default: h(() => {
952
- var m;
952
+ var c;
953
953
  return [
954
954
  i.value ? (u(), F("div", {
955
955
  key: 1,
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", il, [
960
+ G(ut, x({
961
961
  style: { width: "var(--up-width)", height: "var(--up-height)" },
962
962
  src: i.value
963
- }, { fit: "cover", lazy: !0, ...(m = t.value) == null ? void 0 : m.img }), ce({ _: 2 }, [
964
- L(H(), (Q, ve) => ({
963
+ }, { fit: "cover", lazy: !0, ...(c = t.value) == null ? void 0 : c.img }), fe({ _: 2 }, [
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((Ye) => [
967
+ y(g.$slots, `${o.t}-${e.value}-${Q}`, { data: Ye }, void 0, !0)
968
968
  ])
969
969
  }))
970
970
  ]), 1040, ["src"])
@@ -975,27 +975,27 @@ 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(), C(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(Jt), {
985
985
  style: { width: "1.5em", height: "1.5em", "margin-right": "12px" },
986
986
  color: "white",
987
- onClick: de
987
+ onClick: ie
988
988
  })
989
989
  ]),
990
990
  _: 1
991
991
  })) : me("", !0),
992
- K.value.showDel && w.value ? (u(), C(tt, {
992
+ ee.value.showDel && w.value ? (u(), C(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(Kt), {
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(), C(Re, { key: 0 }, {
1008
1008
  default: h(() => [
1009
- G(j(Qt))
1009
+ G(j(Zt))
1010
1010
  ]),
1011
1011
  _: 1
1012
1012
  }))
@@ -1014,127 +1014,127 @@ const ht = /* @__PURE__ */ rl(ul), qt = {
1014
1014
  }),
1015
1015
  _: 2
1016
1016
  }, [
1017
- L(H(), (m, Q) => ({
1018
- name: m,
1017
+ L(z(), (c, Q) => ({
1018
+ name: c,
1019
1019
  fn: h((ve) => [
1020
- y(g.$slots, `${o.t}-${e.value}-${m}`, { data: ve }, void 0, !0)
1020
+ y(g.$slots, `${o.t}-${e.value}-${c}`, { 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(), C(st, x({
1024
1024
  key: 17,
1025
1025
  modelValue: i.value,
1026
- "onUpdate:modelValue": E[22] || (E[22] = (m) => i.value = m)
1026
+ "onUpdate:modelValue": E[22] || (E[22] = (c) => i.value = c)
1027
1027
  }, t.value, {
1028
1028
  placeholder: k.value[e.value].label
1029
- }), ce({ _: 2 }, [
1030
- L(H(), (m, Q) => ({
1031
- name: m,
1029
+ }), fe({ _: 2 }, [
1030
+ L(z(), (c, Q) => ({
1031
+ name: c,
1032
1032
  fn: h((ve) => [
1033
- y(g.$slots, `${o.t}-${e.value}-${m}`, { data: ve }, void 0, !0)
1033
+ y(g.$slots, `${o.t}-${e.value}-${c}`, { 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(), C(it, x({
1037
1037
  key: 18,
1038
1038
  modelValue: i.value,
1039
- "onUpdate:modelValue": E[23] || (E[23] = (m) => i.value = m),
1039
+ "onUpdate:modelValue": E[23] || (E[23] = (c) => i.value = c),
1040
1040
  min: 0,
1041
1041
  max: 1e8,
1042
1042
  placeholder: k.value[e.value].label
1043
- }, t.value), ce({ _: 2 }, [
1044
- L(H(), (m, Q) => ({
1045
- name: m,
1043
+ }, t.value), fe({ _: 2 }, [
1044
+ L(z(), (c, Q) => ({
1045
+ name: c,
1046
1046
  fn: h((ve) => [
1047
- y(g.$slots, `${o.t}-${e.value}-${m}`, { data: ve }, void 0, !0)
1047
+ y(g.$slots, `${o.t}-${e.value}-${c}`, { 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", dl, [
1051
+ G(at, x({
1052
1052
  modelValue: i.value,
1053
- "onUpdate:modelValue": E[24] || (E[24] = (m) => i.value = m),
1053
+ "onUpdate:modelValue": E[24] || (E[24] = (c) => i.value = c),
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
1057
- }, { ...t.value, type: d.value }), ce({
1056
+ maxlength: ((N = t.value) == null ? void 0 : N.max) || 25
1057
+ }, { ...t.value, type: d.value }), fe({
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, fl)
1063
1063
  ]),
1064
1064
  _: 2
1065
1065
  }, [
1066
- L(H(), (m, Q) => ({
1067
- name: m,
1066
+ L(z(), (c, Q) => ({
1067
+ name: c,
1068
1068
  fn: h((ve) => [
1069
- y(g.$slots, `${o.t}-${e.value}-${m}`, { data: ve }, void 0, !0)
1069
+ y(g.$slots, `${o.t}-${e.value}-${c}`, { 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, x(t.value, {
1078
1078
  type: d.value.replace("link-", ""),
1079
- innerHTML: U.value || i.value
1079
+ innerHTML: B.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, x(t.value, {
1086
1086
  type: d.value.replace("text-", ""),
1087
- innerHTML: U.value || i.value
1087
+ innerHTML: B.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", cl, [
1090
+ B.value ? (u(), C(p, gt(x({ key: 0 }, t.value)), {
1091
1091
  default: h(() => [
1092
- W("div", { innerHTML: U.value }, null, 8, cl)
1092
+ W("div", { innerHTML: B.value }, null, 8, ml)
1093
1093
  ]),
1094
1094
  _: 1
1095
- }, 16)) : (u(), C(T, yt(x({ key: 1 }, t.value)), null, 16))
1095
+ }, 16)) : (u(), C(p, gt(x({ 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
- 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({
1100
+ Array.isArray(B.value) && B.value.length > 0 ? (u(!0), F(X, { key: 0 }, L(B.value, (c, Q) => (u(), F(X, { key: Q }, [
1101
+ typeof c == "object" ? (u(), C(S, x({
1102
1102
  key: 0,
1103
1103
  ref_for: !0
1104
- }, m, {
1105
- innerHTML: m == null ? void 0 : m.value,
1104
+ }, c, {
1105
+ innerHTML: c == null ? void 0 : c.value,
1106
1106
  style: { "margin-right": "3px" }
1107
- }), null, 16, ["innerHTML"])) : (u(), C(P, x({
1107
+ }), null, 16, ["innerHTML"])) : (u(), C(S, x({
1108
1108
  key: 1,
1109
1109
  ref_for: !0
1110
1110
  }, t.value, {
1111
1111
  type: d.value.replace("tag-", ""),
1112
- innerHTML: m,
1112
+ innerHTML: c,
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(), C(S, x({ key: 1 }, t.value, {
1116
1116
  type: d.value.replace("tag-", ""),
1117
- innerHTML: U.value || i.value
1117
+ innerHTML: B.value || i.value
1118
1118
  }), null, 16, ["type", "innerHTML"]))
1119
1119
  ], 4)) : d.value == "div" ? (u(), F("div", x({ key: 24 }, t.value, {
1120
- innerHTML: U.value || i.value
1121
- }), null, 16, ml)) : d.value == "span" ? (u(), F("span", x({ key: 25 }, t.value, {
1122
- innerHTML: U.value || i.value
1123
- }), null, 16, pl)) : (u(), C(l, x({
1120
+ innerHTML: B.value || i.value
1121
+ }), null, 16, pl)) : d.value == "span" ? (u(), F("span", x({ key: 25 }, t.value, {
1122
+ innerHTML: B.value || i.value
1123
+ }), null, 16, vl)) : (u(), C(at, x({
1124
1124
  key: 26,
1125
1125
  modelValue: i.value,
1126
- "onUpdate:modelValue": E[25] || (E[25] = (m) => i.value = m),
1126
+ "onUpdate:modelValue": E[25] || (E[25] = (c) => i.value = c),
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
- }, { ...t.value, type: d.value }), ce({ _: 2 }, [
1134
- L(H(), (m, Q) => ({
1135
- name: m,
1133
+ }, { ...t.value, type: d.value }), fe({ _: 2 }, [
1134
+ L(z(), (c, Q) => ({
1135
+ name: c,
1136
1136
  fn: h((ve) => [
1137
- y(g.$slots, `${o.t}-${e.value}-${m}`, { data: ve }, void 0, !0)
1137
+ y(g.$slots, `${o.t}-${e.value}-${c}`, { data: ve }, void 0, !0)
1138
1138
  ])
1139
1139
  }))
1140
1140
  ]), 1040, ["modelValue", "placeholder", "maxlength"]))
@@ -1142,50 +1142,50 @@ 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(hl, [["__scopeId", "data-v-a4d7ef5d"]]), yl = { class: "g-form-container" }, gl = /* @__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 ue, ae, $e, ne, g, E;
1157
+ const t = We(f, "modelValue"), e = o, d = le(null), k = _t("options"), T = le({}), V = le(""), D = f;
1158
1158
  t.value.form = xe(
1159
- qt,
1159
+ Ot,
1160
1160
  k == null ? void 0 : k.form,
1161
- (ne = t.value) == null ? void 0 : ne.form
1161
+ (ue = t.value) == null ? void 0 : ue.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
+ { ...(ne = kt()) == null ? void 0 : ne.style }
1165
1165
  );
1166
- const w = async (v, p) => {
1166
+ const w = async (v, m) => {
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
- a ? e("submit", v, p) : console.error("表单验证不通过!", _);
1171
+ a ? e("submit", v, m) : console.error("表单验证不通过!", _);
1172
1172
  });
1173
1173
  return;
1174
1174
  }
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
  }
1185
- let p = !0;
1185
+ let m = !0;
1186
1186
  if (e("reset", (s) => {
1187
- p = s;
1188
- }), p) {
1187
+ m = s;
1188
+ }), m) {
1189
1189
  d.value.resetFields();
1190
1190
  return;
1191
1191
  }
@@ -1193,8 +1193,8 @@ 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;
1197
- const K = {
1196
+ t.value.form.submit.click = w, t.value.form.reset.click = z;
1197
+ const ee = {
1198
1198
  type: "hidden",
1199
1199
  labelPosition: "right",
1200
1200
  style: {
@@ -1202,23 +1202,23 @@ const ht = /* @__PURE__ */ rl(ul), qt = {
1202
1202
  }
1203
1203
  };
1204
1204
  t.value.formItems = xe(
1205
- K,
1205
+ ee,
1206
1206
  k == null ? void 0 : k.formItems,
1207
1207
  (g = t == null ? void 0 : t.value) == null ? void 0 : g.formItems
1208
1208
  );
1209
- const U = {
1209
+ const B = {
1210
1210
  span: 12,
1211
1211
  offset: 0
1212
1212
  };
1213
1213
  t.value.form.cols = xe(
1214
- U,
1214
+ B,
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) => {
1219
- let p = [];
1218
+ const U = (v) => {
1219
+ let m = [];
1220
1220
  if (v.rules)
1221
- p = v.rules;
1221
+ m = v.rules;
1222
1222
  else {
1223
1223
  const a = { ...{
1224
1224
  required: void 0,
@@ -1229,18 +1229,18 @@ const ht = /* @__PURE__ */ rl(ul), qt = {
1229
1229
  pattern: void 0,
1230
1230
  validate: void 0
1231
1231
  }, ...v };
1232
- a.required && p.push({
1232
+ a.required && m.push({
1233
1233
  required: !0,
1234
1234
  message: `${a.label}不能为空!`,
1235
1235
  trigger: "blur"
1236
- }), a.max !== void 0 && a.max !== null && a.max !== "" && (a.min === void 0 || a.min === null || a.min === "") && p.push({
1236
+ }), a.max !== void 0 && a.max !== null && a.max !== "" && (a.min === void 0 || a.min === null || a.min === "") && m.push({
1237
1237
  validator: (_, n, b) => {
1238
1238
  if (n == null || n === "") return b();
1239
1239
  a.type !== "number" && a.type !== "input-number" ? ((n == null ? void 0 : n.toString()) || "").length > Number(a.max) ? b(
1240
1240
  new Error(`${a.label}长度不能超过${a.max}个字符!`)
1241
1241
  ) : b() : Number(n) > Number(a.max) ? b(new Error(`${a.label}不能大于${a.max}!`)) : b();
1242
1242
  }
1243
- }), a.min !== void 0 && a.min !== null && a.min !== "" && (a.max === void 0 || a.max === null || a.max === "") && p.push({
1243
+ }), a.min !== void 0 && a.min !== null && a.min !== "" && (a.max === void 0 || a.max === null || a.max === "") && m.push({
1244
1244
  validator: (_, n, b) => {
1245
1245
  if (n == null || n === "") return b();
1246
1246
  a.type !== "number" && a.type !== "input-number" ? Number(a.min) < 1 ? b(
@@ -1253,7 +1253,7 @@ const ht = /* @__PURE__ */ rl(ul), qt = {
1253
1253
  )
1254
1254
  ) : b() : Number(n) < Number(a.min) ? b(new Error(`${a.label}不能小于${a.min}!`)) : b();
1255
1255
  }
1256
- }), a.min !== void 0 && a.min !== null && a.min !== "" && a.max !== void 0 && a.max !== null && a.max !== "" && p.push({
1256
+ }), a.min !== void 0 && a.min !== null && a.min !== "" && a.max !== void 0 && a.max !== null && a.max !== "" && m.push({
1257
1257
  validator: (_, n, b) => {
1258
1258
  if (n == null || n === "") return b();
1259
1259
  const M = Number(a.min), q = Number(a.max);
@@ -1267,73 +1267,73 @@ const ht = /* @__PURE__ */ rl(ul), qt = {
1267
1267
  )
1268
1268
  ) : b() : Number(n) < M || n > q ? b(new Error(`${a.label}必须在${M}-${q}之间!`)) : b();
1269
1269
  }
1270
- }), a.type == "email" && p.push({ type: "email", message: "不是一个正确的邮箱地址!" }), a.type == "url" && p.push({ type: "url", message: "不是一个合正确的URL!" }), a.pattern && p.push({
1270
+ }), a.type == "email" && m.push({ type: "email", message: "不是一个正确的邮箱地址!" }), a.type == "url" && m.push({ type: "url", message: "不是一个合正确的URL!" }), a.pattern && m.push({
1271
1271
  pattern: a == null ? void 0 : a.pattern,
1272
1272
  message: (a == null ? void 0 : a.message) || "格式不正确!"
1273
- }), a.validate && p.push({
1273
+ }), a.validate && m.push({
1274
1274
  validator: (_, n, b) => a.validate(_, n, b)
1275
1275
  });
1276
1276
  }
1277
- return p;
1278
- }, ie = (v, p = !1) => {
1277
+ return m;
1278
+ }, se = (v, m = !1) => {
1279
1279
  var _, n, b, M, q;
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) || {};
1280
+ const s = m ? v : v == null ? void 0 : v.item, a = typeof (s == null ? void 0 : s.editor) == "function" ? s.editor(T.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
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 };
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
- }, ee = (v) => {
1290
+ }, re = (v) => {
1291
1291
  var s, a, _, n, b;
1292
- const p = typeof v.editor == "function" ? v.editor(S.value, (s = t.value.form) == null ? void 0 : s.modalState) : v.editor;
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;
1292
+ const m = typeof v.editor == "function" ? v.editor(T.value, (s = t.value.form) == null ? void 0 : s.modalState) : v.editor;
1293
+ return ((a = t.value.form) == null ? void 0 : a.modalState) === "edit" ? ((_ = m == null ? void 0 : m.ep) == null ? void 0 : _.type) ?? (m == null ? void 0 : m.type) ?? v.type : ((n = t.value.form) == null ? void 0 : n.modalState) === "add" ? ((b = m == null ? void 0 : m.ap) == null ? void 0 : b.type) ?? (m == null ? void 0 : m.type) ?? v.type : (m == null ? void 0 : m.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
+ K(), D != null && D.editForm ? T.value = D.editForm : T.value = we.value;
1297
+ }), jt(() => {
1298
1298
  d.value = null;
1299
1299
  });
1300
- const re = () => {
1300
+ const K = () => {
1301
1301
  V.value = Math.random().toString(36).substring(2);
1302
- for (const [v, p] of Object.entries(ue.value))
1302
+ for (const [v, m] of Object.entries(ce.value))
1303
1303
  t.value[v].formItem = {
1304
1304
  ...t.value[v].formItem,
1305
- ...p.formItem
1305
+ ...m.formItem
1306
1306
  }, t.value[v].formItem.style = {
1307
1307
  ...t.value[v].formItem.style,
1308
- ...p.formItem.style
1308
+ ...m.formItem.style
1309
1309
  };
1310
- }, ue = Je(
1310
+ }, ce = 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])
1314
1314
  ).filter((v) => v[1].editor !== !1).filter((v) => v[1].type !== "control").filter((v) => {
1315
1315
  var s, a, _;
1316
- const p = typeof v[1].editor == "function" ? v[1].editor(S.value, (s = t.value.form) == null ? void 0 : s.modalState) : v[1].editor;
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;
1316
+ const m = typeof v[1].editor == "function" ? v[1].editor(T.value, (s = t.value.form) == null ? void 0 : s.modalState) : v[1].editor;
1317
+ return t.value.form.modalState === "edit" ? ((a = m == null ? void 0 : m.ep) == null ? void 0 : a.editor) !== !1 : t.value.form.modalState === "add" ? ((_ = m == null ? void 0 : m.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
- return Object.entries(ue.value).forEach(([p, s]) => {
1326
+ return Object.entries(ce.value).forEach(([m, s]) => {
1327
1327
  if (s.groupName) {
1328
1328
  const a = s.groupName;
1329
1329
  v.has(a) || v.set(a, {
1330
1330
  groupName: a,
1331
1331
  items: []
1332
- }), v.get(a).items.push({ key: p, item: s });
1332
+ }), v.get(a).items.push({ key: m, item: s });
1333
1333
  }
1334
- }), v.forEach((p) => {
1335
- p.tabPane = xe(
1336
- ...p.items.map(({ item: s }) => s.tabPane || {})
1334
+ }), v.forEach((m) => {
1335
+ m.tabPane = xe(
1336
+ ...m.items.map(({ item: s }) => s.tabPane || {})
1337
1337
  );
1338
1338
  }), Array.from(v.values());
1339
1339
  }), pe = [
@@ -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,27 +1352,27 @@ 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
+ ], ie = Ke(() => pe.filter((v) => !v.hidden).sort((v, m) => v.sort - m.sort || v.originalOrder - m.originalOrder));
1363
1363
  return i({
1364
1364
  submit: w,
1365
- reset: H,
1366
- formData: S
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, [
1365
+ reset: z,
1366
+ formData: T
1367
+ }), (v, m) => {
1368
+ var q, oe, de;
1369
+ const s = I("el-form-item"), a = I("el-col"), _ = I("el-tab-pane"), n = I("el-tabs"), b = I("el-form"), M = I("el-button");
1370
+ return u(), F("div", yl, [
1371
1371
  G(b, x(
1372
1372
  {
1373
1373
  ref_key: "gform",
1374
1374
  ref: d,
1375
- model: S.value,
1375
+ model: T.value,
1376
1376
  style: {
1377
1377
  width: "98%",
1378
1378
  padding: 0,
@@ -1380,7 +1380,7 @@ 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
  )
@@ -1390,7 +1390,7 @@ const ht = /* @__PURE__ */ rl(ul), qt = {
1390
1390
  G(n, x({
1391
1391
  class: "demo-tabs",
1392
1392
  modelValue: he.value[0].groupName,
1393
- "onUpdate:modelValue": p[0] || (p[0] = (R) => he.value[0].groupName = R),
1393
+ "onUpdate:modelValue": m[0] || (m[0] = (R) => he.value[0].groupName = R),
1394
1394
  style: { width: "100%" }
1395
1395
  }, t.value.form.tabs), {
1396
1396
  default: h(() => [
@@ -1412,32 +1412,32 @@ const ht = /* @__PURE__ */ rl(ul), qt = {
1412
1412
  G(s, x({
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: U(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(() => [
1419
1419
  y(v.$slots, "f-" + O.key, {
1420
1420
  item: O == null ? void 0 : O.item,
1421
- formInfo: S.value,
1421
+ formInfo: T.value,
1422
1422
  model: t.value
1423
1423
  }, () => [
1424
- (u(), C(mt, {
1425
- modelValue: S.value[O.key],
1426
- "onUpdate:modelValue": (De) => S.value[O.key] = De,
1427
- item: ie(O),
1424
+ (u(), C(pt, {
1425
+ modelValue: T.value[O.key],
1426
+ "onUpdate:modelValue": (De) => T.value[O.key] = De,
1427
+ item: se(O),
1428
1428
  ctrlKey: O.key,
1429
- ctrlType: ee(O == null ? void 0 : O.item),
1429
+ ctrlType: re(O == null ? void 0 : O.item),
1430
1430
  model: t.value,
1431
1431
  key: `${O.key}-${V.value}`,
1432
1432
  class: "g-ctrl-container",
1433
1433
  t: "f",
1434
- formInfo: S.value
1435
- }, ce({ _: 2 }, [
1434
+ formInfo: T.value
1435
+ }, fe({ _: 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,7 +1459,7 @@ 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(ce.value, (R, O) => (u(), C(a, x({ ref_for: !0 }, { ...t.value.form.cols, ...R.col }, {
1463
1463
  key: O,
1464
1464
  style: { width: "100%" }
1465
1465
  }), {
@@ -1469,7 +1469,7 @@ const ht = /* @__PURE__ */ rl(ul), qt = {
1469
1469
  G(s, x({
1470
1470
  label: R.label,
1471
1471
  prop: O,
1472
- rules: Y(R),
1472
+ rules: U(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,27 +1478,27 @@ 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(() => [
1485
1485
  y(v.$slots, "f-" + O, {
1486
1486
  item: R,
1487
- formInfo: S.value,
1487
+ formInfo: T.value,
1488
1488
  model: t.value
1489
1489
  }, () => [
1490
- (u(), C(mt, {
1491
- modelValue: S.value[O],
1492
- "onUpdate:modelValue": (_e) => S.value[O] = _e,
1493
- item: ie(R, !0),
1490
+ (u(), C(pt, {
1491
+ modelValue: T.value[O],
1492
+ "onUpdate:modelValue": (_e) => T.value[O] = _e,
1493
+ item: se(R, !0),
1494
1494
  ctrlKey: O,
1495
- ctrlType: ee(R),
1495
+ ctrlType: re(R),
1496
1496
  key: `${O}-${V.value}`,
1497
1497
  model: t.value,
1498
1498
  class: "g-ctrl-container",
1499
1499
  t: "f",
1500
- formInfo: S.value
1501
- }, ce({ _: 2 }, [
1500
+ formInfo: T.value
1501
+ }, fe({ _: 2 }, [
1502
1502
  L(v.$slots, (_e, Ve) => ({
1503
1503
  name: Ve,
1504
1504
  fn: h((De) => [
@@ -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
+ (de = (oe = (q = t.value) == null ? void 0 : q.form) == null ? void 0 : oe.footer) != null && de.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
- (u(!0), F(X, null, L(de.value, (R) => (u(), F(X, null, [
1530
+ (u(!0), F(X, null, L(ie.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
1533
  G(M, x({ ref_for: !0 }, R.info, {
1534
- onClick: ft((O) => R.click(S.value, t.value), ["stop"])
1534
+ onClick: ct((O) => R.click(T.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(gl, [["__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,17 +1557,17 @@ 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) => {
1560
+ const i = We(f, "modelValue"), o = f, t = We(f, "info"), e = (T) => Ke(() => Object.fromEntries(Object.entries(i.value).filter((V) => {
1561
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;
1562
+ return typeof V[1].search == "function" ? V[1].search && ((D = V[1].search(t.value, i.value.table)) == null ? void 0 : D.more) === T : V[1].search && V[1].search.more === T;
1563
+ }).map((V) => [V[0], V[1]]))).value, d = (T) => typeof T.search == "function" ? T.search(t.value, i.value.table) : T.search || {}, k = (T) => {
1564
+ const V = d(T);
1565
+ return (V == null ? void 0 : V.type) || T.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 (T, V) => {
1568
+ const D = I("el-form-item");
1569
+ return u(!0), F(X, null, L(e(o.more), (w, z) => y(T.$slots, `q-${z}`, {
1570
+ key: z,
1571
1571
  item: w,
1572
1572
  queryModel: t.value,
1573
1573
  model: i.value
@@ -1577,27 +1577,27 @@ const ht = /* @__PURE__ */ rl(ul), qt = {
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(T.$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": (ee) => t.value[z] = ee,
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",
1594
1594
  formInfo: t.value
1595
- }, ce({ _: 2 }, [
1596
- L(Object.keys(S.$slots), (K) => ({
1597
- name: K,
1598
- fn: h((U) => [
1599
- y(S.$slots, K, {
1600
- data: U,
1595
+ }, fe({ _: 2 }, [
1596
+ L(Object.keys(T.$slots), (ee) => ({
1597
+ name: ee,
1598
+ fn: h((B) => [
1599
+ y(T.$slots, ee, {
1600
+ data: B,
1601
1601
  item: w,
1602
1602
  model: i.value
1603
1603
  })
@@ -1610,10 +1610,10 @@ const ht = /* @__PURE__ */ rl(ul), qt = {
1610
1610
  ])), 128);
1611
1611
  };
1612
1612
  }
1613
- }, gl = {
1613
+ }, bl = {
1614
1614
  key: 0,
1615
1615
  class: "outer"
1616
- }, bl = { class: "inner" }, $l = {
1616
+ }, $l = { class: "inner" }, wl = {
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 = le(!1), k = We(f, "info"), T = {
1627
1627
  hidden: !1,
1628
1628
  type: "hidden",
1629
1629
  labelWidth: 100,
@@ -1671,7 +1671,7 @@ const ht = /* @__PURE__ */ rl(ul), qt = {
1671
1671
  }
1672
1672
  }
1673
1673
  };
1674
- o.value.query = xe(S, e == null ? void 0 : e.query, o.value.query);
1674
+ o.value.query = xe(T, e == null ? void 0 : e.query, o.value.query);
1675
1675
  const V = {
1676
1676
  2: {
1677
1677
  title: "更多查询",
@@ -1701,24 +1701,24 @@ const ht = /* @__PURE__ */ rl(ul), qt = {
1701
1701
  }
1702
1702
  };
1703
1703
  o.value.queryItems = xe(D, e == null ? void 0 : e.queryItems, o.value.queryItems);
1704
- const w = (U, Y) => {
1705
- const ie = Object.keys(U.slots).filter((ee) => ee !== "default").reduce((ee, re) => (ee[re] = (ue) => U.slots[re]({
1704
+ const w = (B, U) => {
1705
+ const se = Object.keys(B.slots).filter((re) => re !== "default").reduce((re, K) => (re[K] = (ce) => B.slots[K]({
1706
1706
  model: o.value
1707
1707
  // 传递当前模型数据
1708
- }), ee), {});
1709
- return Ie(Ct, {
1708
+ }), re), {});
1709
+ return Ae(Dt, {
1710
1710
  modelValue: o.value,
1711
- "onUpdate:modelValue": (ee) => o.value = ee,
1711
+ "onUpdate:modelValue": (re) => o.value = re,
1712
1712
  info: k.value,
1713
- "onUpdate:info": (ee) => k.value = ee,
1714
- more: Y
1715
- }, ie);
1716
- }, H = xt(), K = () => {
1717
- var ie, ee, re, ue, we, he, pe, de, ne;
1718
- const U = [
1713
+ "onUpdate:info": (re) => k.value = re,
1714
+ more: U
1715
+ }, se);
1716
+ }, z = Tt(), ee = () => {
1717
+ var se, re, K, ce, we, he, pe, ie, ue;
1718
+ const B = [
1719
1719
  {
1720
1720
  key: "query",
1721
- hidden: (re = (ee = (ie = o.value) == null ? void 0 : ie.query) == null ? void 0 : ee.query) == null ? void 0 : re.hidden,
1721
+ hidden: (K = (re = (se = o.value) == null ? void 0 : se.query) == null ? void 0 : re.query) == null ? void 0 : K.hidden,
1722
1722
  component: Me,
1723
1723
  props: {
1724
1724
  ...o.value.query.query,
@@ -1729,7 +1729,7 @@ const ht = /* @__PURE__ */ rl(ul), qt = {
1729
1729
  },
1730
1730
  {
1731
1731
  key: "reset",
1732
- hidden: (he = (we = (ue = o.value) == null ? void 0 : ue.query) == null ? void 0 : we.reset) == null ? void 0 : he.hidden,
1732
+ hidden: (he = (we = (ce = o.value) == null ? void 0 : ce.query) == null ? void 0 : we.reset) == null ? void 0 : he.hidden,
1733
1733
  component: Me,
1734
1734
  props: {
1735
1735
  ...o.value.query.reset,
@@ -1740,68 +1740,68 @@ const ht = /* @__PURE__ */ rl(ul), qt = {
1740
1740
  },
1741
1741
  {
1742
1742
  key: "more",
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,
1743
+ hidden: (ue = (ie = (pe = o.value) == null ? void 0 : pe.query) == null ? void 0 : ie.more) == null ? void 0 : ue.hidden,
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 B.sort((ae, $e) => ae.sort - $e.sort), B.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 (B, U) => {
1763
+ var K, ce, we, he, pe, ie, ue, ae, $e, ne, g, E, v, m, s, a, _;
1764
+ const se = I("el-form-item"), re = 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((ce = (K = o.value.query) == null ? void 0 : K.container) == null ? void 0 : ce.style)
1769
1769
  }, [
1770
- G(j(it), x({
1771
- onSubmit: Y[0] || (Y[0] = ft(() => {
1770
+ G(j(dt), x({
1771
+ onSubmit: U[0] || (U[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(), C(Ue(w({ slots: B.$slots }, void 0)))),
1778
+ ((b = (n = o.value.query) == null ? void 0 : n.container) == null ? void 0 : b.inline) === !0 ? (u(), C(se, { key: 0 }, {
1779
1779
  default: h(() => {
1780
- var M, q, ae, fe, R;
1780
+ var M, q, oe, de, 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 = (M = o.value.query) == null ? void 0 : M.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(), C(j(ft), { key: 0 }, {
1786
1786
  default: h(() => [
1787
- (u(!0), F(X, null, L(K(), (O) => y(U.$slots, O.props.slot, {}, () => [
1788
- (u(), C(Be(O)))
1787
+ (u(!0), F(X, null, L(ee(), (O) => y(B.$slots, O.props.slot, {}, () => [
1788
+ (u(), C(Ue(O)))
1789
1789
  ], !0)), 256)),
1790
- y(U.$slots, "q-btns", {}, void 0, !0)
1790
+ y(B.$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 = (de = (oe = o.value) == null ? void 0 : oe.query) == null ? void 0 : de.btns) != null && R.group ? (u(), C(j(ft), { key: 0 }, {
1795
1795
  default: h(() => [
1796
- (u(!0), F(X, null, L(K(), (O) => y(U.$slots, O.props.slot, {}, () => [
1797
- (u(), C(Be(O)))
1796
+ (u(!0), F(X, null, L(ee(), (O) => y(B.$slots, O.props.slot, {}, () => [
1797
+ (u(), C(Ue(O)))
1798
1798
  ], !0)), 256))
1799
1799
  ]),
1800
1800
  _: 3
1801
- })) : (u(!0), F(X, { key: 1 }, L(K(), (O) => y(U.$slots, O.props.slot, {}, () => [
1802
- (u(), C(Be(O)))
1801
+ })) : (u(!0), F(X, { key: 1 }, L(ee(), (O) => y(B.$slots, O.props.slot, {}, () => [
1802
+ (u(), C(Ue(O)))
1803
1803
  ], !0)), 256)),
1804
- y(U.$slots, "q-btns", {}, void 0, !0)
1804
+ y(B.$slots, "q-btns", {}, void 0, !0)
1805
1805
  ], 64))
1806
1806
  ], 4)
1807
1807
  ];
@@ -1814,55 +1814,55 @@ 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((ue = (ie = o.value.query) == null ? void 0 : ie.btns) == null ? void 0 : ue.style)
1818
1818
  }, [
1819
- o.value.query.group ? (u(), C(j(dt), { key: 0 }, {
1819
+ o.value.query.group ? (u(), C(j(ft), { key: 0 }, {
1820
1820
  default: h(() => [
1821
- (u(!0), F(X, null, L(K(), (n) => y(U.$slots, n.props.slot, {}, () => [
1822
- (u(), C(Be(n)))
1821
+ (u(!0), F(X, null, L(ee(), (n) => y(B.$slots, n.props.slot, {}, () => [
1822
+ (u(), C(Ue(n)))
1823
1823
  ], !0)), 256)),
1824
- y(U.$slots, "q-btns", {}, void 0, !0)
1824
+ y(B.$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(), C(j(ft), { key: 0 }, {
1829
1829
  default: h(() => [
1830
- (u(!0), F(X, null, L(K(), (n) => y(U.$slots, n.props.slot, {}, () => [
1831
- (u(), C(Be(n)))
1830
+ (u(!0), F(X, null, L(ee(), (n) => y(B.$slots, n.props.slot, {}, () => [
1831
+ (u(), C(Ue(n)))
1832
1832
  ], !0)), 256))
1833
1833
  ]),
1834
1834
  _: 3
1835
- })) : (u(!0), F(X, { key: 1 }, L(K(), (n) => y(U.$slots, n.props.slot, {}, () => [
1836
- (u(), C(Be(n)))
1835
+ })) : (u(!0), F(X, { key: 1 }, L(ee(), (n) => y(B.$slots, n.props.slot, {}, () => [
1836
+ (u(), C(Ue(n)))
1837
1837
  ], !0)), 256)),
1838
- y(U.$slots, "q-btns", {}, void 0, !0)
1838
+ y(B.$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 = (ne = o.value) == null ? void 0 : ne.query) == null ? void 0 : g.more) != null && E.hidden) && o.value.query.more.mode == 2 ? (u(), C(re, x({
1843
1843
  key: 0,
1844
1844
  modelValue: d.value,
1845
- "onUpdate:modelValue": Y[6] || (Y[6] = (n) => d.value = n),
1845
+ "onUpdate:modelValue": U[6] || (U[6] = (n) => d.value = n),
1846
1846
  title: "更多查询",
1847
1847
  "show-close": !1
1848
- }, o.value.query.more.dialog), ce({
1848
+ }, o.value.query.more.dialog), fe({
1849
1849
  default: h(() => [
1850
- G(j(it), x({
1851
- onSubmit: Y[3] || (Y[3] = ft(() => {
1850
+ G(j(dt), x({
1851
+ onSubmit: U[3] || (U[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": U[1] || (U[1] = (n) => o.value = n),
1858
1858
  info: k.value,
1859
- "onUpdate:info": Y[2] || (Y[2] = (n) => k.value = n),
1859
+ "onUpdate:info": U[2] || (U[2] = (n) => k.value = n),
1860
1860
  more: !0
1861
- }, ce({ _: 2 }, [
1862
- L(U.$slots, (n, b, M) => ({
1861
+ }, fe({ _: 2 }, [
1862
+ L(B.$slots, (n, b, M) => ({
1863
1863
  name: b,
1864
1864
  fn: h((q) => [
1865
- y(U.$slots, b, { model: o.value }, void 0, !0)
1865
+ y(B.$slots, b, { model: o.value }, void 0, !0)
1866
1866
  ])
1867
1867
  }))
1868
1868
  ]), 1032, ["modelValue", "info"])
@@ -1872,23 +1872,23 @@ const ht = /* @__PURE__ */ rl(ul), qt = {
1872
1872
  ]),
1873
1873
  _: 2
1874
1874
  }, [
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 : {
1875
+ (_ = (a = (s = (m = (v = o.value) == null ? void 0 : v.query) == null ? void 0 : m.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)), [
1878
+ W("div", gt(Lt(o.value.query.more.dialog.footer)), [
1879
1879
  G(j(Me), x(o.value.query.query, {
1880
- onClick: Y[4] || (Y[4] = (n) => o.value.query.query.click())
1880
+ onClick: U[4] || (U[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
1887
  G(j(Me), x(o.value.query.reset, {
1888
- onClick: Y[5] || (Y[5] = (n) => o.value.query.reset.click())
1888
+ onClick: U[5] || (U[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,7 +1897,7 @@ 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" }
@@ -1905,19 +1905,19 @@ const ht = /* @__PURE__ */ rl(ul), qt = {
1905
1905
  default: h(() => {
1906
1906
  var n, b, M;
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 && !((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", bl, [
1909
+ W("div", $l, [
1910
+ o.value.query.more.mode == 1 ? Ht((u(), C(j(dt), x({
1911
1911
  key: 0,
1912
- onSubmit: Y[7] || (Y[7] = ft(() => {
1912
+ onSubmit: U[7] || (U[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(), C(Ue(w({ slots: B.$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
+ }, El = /* @__PURE__ */ Xe(wl, [["__scopeId", "data-v-9adf0bb6"]]), _l = { style: { padding: "0", margin: "0", "box-sizing": "border-box" } }, kl = { style: { padding: "10px", "box-sizing": "border-box" } }, Cl = { style: { margin: "10px" } }, Dl = {
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
+ }, Ml = ["textContent"], Vl = { style: { width: "100%", display: "flex", padding: "10px", "box-sizing": "border-box", "justify-content": "center", "border-top": "1px solid #dcdfe6" } }, xl = {
1935
1935
  __name: "check-excel-item",
1936
1936
  props: {
1937
1937
  items: Array,
@@ -1939,7 +1939,7 @@ const ht = /* @__PURE__ */ rl(ul), qt = {
1939
1939
  },
1940
1940
  emits: ["excel"],
1941
1941
  setup(f, { emit: i }) {
1942
- const o = f, t = i, e = te(o.items), d = () => {
1942
+ const o = f, t = i, e = le(o.items), d = () => {
1943
1943
  e.value.forEach((V) => {
1944
1944
  V.value = !0;
1945
1945
  });
@@ -1947,7 +1947,7 @@ const ht = /* @__PURE__ */ rl(ul), qt = {
1947
1947
  e.value.forEach((V) => {
1948
1948
  V.value = !1;
1949
1949
  });
1950
- }, S = () => {
1950
+ }, T = () => {
1951
1951
  t("excel", e.value, (V, D = "excel.xls") => {
1952
1952
  if (!V) {
1953
1953
  console.error("下载链接无效");
@@ -1961,21 +1961,21 @@ const ht = /* @__PURE__ */ rl(ul), qt = {
1961
1961
  }
1962
1962
  });
1963
1963
  };
1964
- return ot(() => {
1965
- const V = new Tt(document.getElementById("excelSortEl"), {
1964
+ return rt(() => {
1965
+ const V = new Ft(document.getElementById("excelSortEl"), {
1966
1966
  animation: 150,
1967
1967
  onEnd: () => {
1968
1968
  V.toArray();
1969
1969
  }
1970
1970
  }), D = V;
1971
- Pt(() => {
1971
+ Nt(() => {
1972
1972
  D && D.destroy();
1973
1973
  });
1974
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, [
1975
+ const w = I("el-divider"), z = I("el-alert"), ee = I("el-checkbox"), B = I("el-button");
1976
+ return u(), F("div", _l, [
1977
+ W("div", kl, [
1978
+ W("div", Cl, [
1979
1979
  W("a", {
1980
1980
  onClick: d,
1981
1981
  style: { cursor: "pointer" }
@@ -1986,7 +1986,7 @@ 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": "",
@@ -1994,34 +1994,34 @@ const ht = /* @__PURE__ */ rl(ul), qt = {
1994
1994
  style: { "margin-bottom": "10px" }
1995
1995
  }),
1996
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, {
1997
+ W("div", Dl, [
1998
+ (u(!0), F(X, null, L(e.value, (U) => (u(), C(ee, {
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": U.key,
2002
+ modelValue: U.value,
2003
+ "onUpdate:modelValue": (se) => U.value = se,
2004
+ key: U.key,
2005
+ title: U.label
2006
2006
  }, {
2007
2007
  default: h(() => [
2008
2008
  W("span", {
2009
- textContent: be(Y.label),
2009
+ textContent: be(U.label),
2010
2010
  style: { display: "block", "text-overflow": "ellipsis", width: "95px", overflow: "hidden" }
2011
- }, null, 8, Dl)
2011
+ }, null, 8, Ml)
2012
2012
  ]),
2013
2013
  _: 2
2014
2014
  }, 1032, ["data-id", "modelValue", "onUpdate:modelValue", "title"]))), 128))
2015
2015
  ])
2016
2016
  ]),
2017
- W("div", Ml, [
2018
- G(U, {
2017
+ W("div", Vl, [
2018
+ G(B, {
2019
2019
  type: "primary",
2020
- onClick: S,
2021
- disabled: e.value.filter((Y) => Y.value).length < 1
2020
+ onClick: T,
2021
+ disabled: e.value.filter((U) => U.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
+ }, Tl = /* @__PURE__ */ Xe(xl, [["__scopeId", "data-v-04791df1"]]), et = new al("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
2051
  async function Sl(f) {
2052
- return await Ke.tableInfo.where({ page: f }).toArray();
2052
+ return await et.tableInfo.where({ page: f }).toArray();
2053
2053
  }
2054
- async function Tl(f) {
2054
+ async function Fl(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 ql = {
2063
2063
  style: { margin: "10px" },
2064
2064
  class: "allcheck"
2065
- }, ql = {
2065
+ }, Ol = {
2066
2066
  id: "cols",
2067
2067
  style: { display: "flex", "flex-wrap": "wrap", margin: "0 !important", padding: "0 !important" }
2068
- }, Ol = ["textContent"], Il = {
2068
+ }, Al = ["textContent"], Il = {
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,12 +2078,12 @@ 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) => {
2081
+ const i = f, o = le([]), t = We(f, "modelValue"), e = async (D, w) => {
2082
2082
  D ? 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: D });
2085
+ } catch (z) {
2086
+ console.error("列显示状态保存信息时出错:", z), Ie({
2087
2087
  type: "error",
2088
2088
  message: "列显示状态保存信息失败!"
2089
2089
  });
@@ -2091,19 +2091,19 @@ const Fl = {
2091
2091
  }, d = () => {
2092
2092
  const D = document.getElementById("cols");
2093
2093
  if (D) {
2094
- let w = Tt.create(D, {
2094
+ let w = Ft.create(D, {
2095
2095
  animation: 150,
2096
2096
  filter: ".filtered",
2097
2097
  //
2098
2098
  sort: !0,
2099
2099
  onEnd: () => {
2100
- w.toArray().forEach(async (K, U) => {
2101
- t.value[K].sort = U;
2102
- let Y = t.value[K].width || "auto";
2100
+ w.toArray().forEach(async (ee, B) => {
2101
+ t.value[ee].sort = B;
2102
+ let U = t.value[ee].width || "auto";
2103
2103
  try {
2104
- await pt(i.tuid, K, { sort: U, width: Y });
2105
- } catch (ie) {
2106
- console.error("列排序和宽度保存信息时出错:", ie), Ye({
2104
+ await vt(i.tuid, ee, { sort: B, width: U });
2105
+ } catch (se) {
2106
+ console.error("列排序和宽度保存信息时出错:", se), Ie({
2107
2107
  type: "error",
2108
2108
  message: "列排序和宽度保存信息失败!"
2109
2109
  });
@@ -2115,42 +2115,42 @@ const Fl = {
2115
2115
  }, k = async () => {
2116
2116
  try {
2117
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 });
2118
+ await Mt(i.tuid, D, { showCol: !0 });
2119
2119
  } catch (D) {
2120
- console.error("全选列保存信息时出错:", D), Ye({
2120
+ console.error("全选列保存信息时出错:", D), Ie({
2121
2121
  type: "error",
2122
2122
  message: "全选列保存信息失败!"
2123
2123
  });
2124
2124
  }
2125
- }, S = async () => {
2125
+ }, T = async () => {
2126
2126
  try {
2127
2127
  const D = o.value.filter((w) => !w.alwaysShow && w.value != "control");
2128
2128
  D.forEach((w) => {
2129
2129
  w.showCol = !1, t.value[w.value].showCol = !1;
2130
- }), await Dt(i.tuid, D, { showCol: !1 });
2130
+ }), await Mt(i.tuid, D, { showCol: !1 });
2131
2131
  } catch (D) {
2132
- console.error("清除列保存信息时出错:", D), Ye({
2132
+ console.error("清除列保存信息时出错:", D), Ie({
2133
2133
  type: "error",
2134
2134
  message: "清除列保存信息失败!"
2135
2135
  });
2136
2136
  }
2137
2137
  }, V = () => {
2138
- Vt.confirm("确定要复位吗?", "提示", {
2138
+ xt.confirm("确定要复位吗?", "提示", {
2139
2139
  confirmButtonText: "确定",
2140
2140
  cancelButtonText: "取消",
2141
2141
  type: "warning"
2142
2142
  }).then(() => {
2143
- Tl(i.tuid).then((D) => {
2143
+ Fl(i.tuid).then((D) => {
2144
2144
  window.location.reload();
2145
2145
  }).catch((D) => {
2146
- console.error("复位操作出错:", D), Ye({
2146
+ console.error("复位操作出错:", D), Ie({
2147
2147
  type: "info",
2148
2148
  message: "复位失败!"
2149
2149
  });
2150
2150
  });
2151
2151
  });
2152
2152
  };
2153
- return ot(async () => {
2153
+ return rt(async () => {
2154
2154
  o.value = Object.entries(t.value).filter(([, D]) => D.visible !== !1).filter(([, D]) => D.type != "hidden").map(([D, w]) => ({
2155
2155
  label: w.label,
2156
2156
  value: D,
@@ -2160,16 +2160,16 @@ const Fl = {
2160
2160
  width: w.width || "auto"
2161
2161
  })).sort((D, w) => D.sort - w.sort), d();
2162
2162
  }), (D, w) => {
2163
- const H = B("el-divider"), K = B("el-alert"), U = B("el-checkbox");
2163
+ const z = I("el-divider"), ee = I("el-alert"), B = I("el-checkbox");
2164
2164
  return u(), F("div", null, [
2165
- W("div", Fl, [
2165
+ W("div", ql, [
2166
2166
  W("a", { onClick: k }, "全选"),
2167
- G(H, { direction: "vertical" }),
2168
- W("a", { onClick: S }, "全不选"),
2169
- G(H, { direction: "vertical" }),
2167
+ G(z, { direction: "vertical" }),
2168
+ W("a", { onClick: T }, "全不选"),
2169
+ G(z, { direction: "vertical" }),
2170
2170
  W("a", { onClick: V }, "复位")
2171
2171
  ]),
2172
- G(K, {
2172
+ G(ee, {
2173
2173
  title: "拖动表格列标题可以改变表格列显示顺序 !",
2174
2174
  type: "warning",
2175
2175
  "show-icon": "",
@@ -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", Ol, [
2181
+ (u(!0), F(X, null, L(o.value, (U) => (u(), C(B, {
2182
+ modelValue: U.showCol,
2183
+ "onUpdate:modelValue": (se) => U.showCol = se,
2184
+ "data-id": U.value,
2185
+ class: St(["check-box-hover", U.value == "control" ? "filtered" : ""]),
2186
+ onChange: (se) => e(se, U.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: U.value,
2189
+ title: U.label,
2190
+ disabled: U.alwaysShow,
2191
+ key: U.value
2192
2192
  }, {
2193
2193
  default: h(() => [
2194
2194
  W("span", {
2195
- textContent: be(Y.label),
2195
+ textContent: be(U.label),
2196
2196
  style: { display: "block", "text-overflow": "ellipsis", width: "95px", overflow: "hidden" }
2197
- }, null, 8, Ol)
2197
+ }, null, 8, Al)
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
+ }, Bl = /* @__PURE__ */ Xe(Il, [["__scopeId", "data-v-70fe569f"]]), Yl = { class: "title" }, Ul = { class: "content" }, Rl = {
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), Ie.success("复制成功")) : Ie.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", Yl, [
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(el))
2234
2234
  ])
2235
2235
  ]),
2236
- W("div", Yl, be(i.content), 1)
2236
+ W("div", Ul, 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
+ }, jl = /* @__PURE__ */ Xe(Rl, [["__scopeId", "data-v-f28912da"]]), Ll = { key: 0 }, zl = { style: { display: "flex", "margin-top": "-2px" } }, Hl = { style: { display: "flex", flex: "1" } }, Pl = {
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
+ }, Nl = { key: 1 }, Wl = { style: { display: "flex" } }, Xl = { style: { display: "flex", flex: "1" } }, Gl = { class: "g-table-container" }, Ql = {
2243
2243
  key: 0,
2244
2244
  class: "table-query-container"
2245
- }, Ql = { class: "table-container" }, Zl = ["innerHTML"], Jl = /* @__PURE__ */ Object.assign({
2245
+ }, Zl = { class: "table-container" }, Jl = ["innerHTML"], Kl = /* @__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]);
2267
+ var Re, ut, lt, nt, st, it, at;
2268
+ const t = o, e = We(f, "modelValue"), d = _t("options"), k = le({}), T = le(null), V = le(null), D = Object.entries(e.value).filter(([l, r]) => (r == null ? void 0 : r.search) !== void 0).map(([l, r]) => [l, r.value]);
2269
2269
  k.value = Object.fromEntries(D);
2270
- const w = te(!1), H = [
2270
+ const w = le(!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
+ ], ee = le([]), B = f, U = kt(), se = le({}), re = le([]), K = le(null), ce = le(""), we = le({
2300
2300
  autoWatch: !1,
2301
2301
  data: [],
2302
2302
  border: !0,
@@ -2310,31 +2310,31 @@ 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
+ (p = [], S = 0, { fields: P = [], sums: N = {} } = {}) => {
2314
2314
  var Z, Ee;
2315
- if (!Array.isArray(c)) {
2316
- console.error("从 load 事件回调中接收到的数据不是数组格式。"), Ye.error("数据加载失败,请检查数据格式。");
2315
+ if (!Array.isArray(p)) {
2316
+ console.error("从 load 事件回调中接收到的数据不是数组格式。"), Ie.error("数据加载失败,请检查数据格式。");
2317
2317
  return;
2318
2318
  }
2319
- if (typeof T != "number") {
2320
- console.error("从 load 事件回调中接收到的 total 不是数字格式。"), Ye.error("数据加载失败,请检查数据格式。");
2319
+ if (typeof S != "number") {
2320
+ console.error("从 load 事件回调中接收到的 total 不是数字格式。"), Ie.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 = p, ((Ee = (Z = e.value.control) == null ? void 0 : Z.add) == null ? void 0 : Ee.inline) === !0 && e.value.table.data.unshift(K.value), e.value.table.page.total = S, re.value = P, se.value = N, Ve(), ce.value = Math.random().toString(36).substring(2);
2324
2324
  },
2325
- ee.value
2325
+ K.value
2326
2326
  );
2327
- } catch (c) {
2328
- console.error("触发 load 事件时出现错误:", c), Ye.error("数据加载时出现错误,请稍后重试。");
2327
+ } catch (p) {
2328
+ console.error("触发 load 事件时出现错误:", p), Ie.error("数据加载时出现错误,请稍后重试。");
2329
2329
  }
2330
2330
  },
2331
- onHeaderDragend: (l, r, c) => {
2332
- pt(ue.value, c.property, {
2331
+ onHeaderDragend: (l, r, p) => {
2332
+ vt(B.name, p.property, {
2333
2333
  width: l
2334
2334
  });
2335
2335
  },
2336
- onRowDblclick: (l, r, c) => {
2337
- e.value.table.dblclickType == "edit" ? v(l, r, c, e) : e.value.table.dblclickType == "view" && s(l, r, c, e);
2336
+ onRowDblclick: (l, r, p) => {
2337
+ e.value.table.dblclickType == "edit" ? v(l, r, p, e) : e.value.table.dblclickType == "view" && s(l, r, p, e);
2338
2338
  },
2339
2339
  style: { "min-height": "100px", backgroundColor: "var(--el-bg-color)" },
2340
2340
  page: {
@@ -2358,8 +2358,8 @@ const Fl = {
2358
2358
  }
2359
2359
  },
2360
2360
  dblclickType: "edit",
2361
- "summary-method": ({ columns: l, data: r }, c) => c,
2362
- onSortChange: ({ column: l, prop: r, order: c }, T) => {
2361
+ "summary-method": ({ columns: l, data: r }, p) => p,
2362
+ onSortChange: ({ column: l, prop: r, order: p }, S) => {
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, p, S) => !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, p, S) => !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, p, S) => {
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 = S.value) == null ? void 0 : P.control) == null ? void 0 : N.add) == null ? void 0 : Z.inline) === !0 && p === 0);
2410
2410
  },
2411
2411
  dialog: {
2412
2412
  message: "此操作将永久删除该文件, 是否继续?",
@@ -2440,21 +2440,21 @@ const Fl = {
2440
2440
  sort: -1,
2441
2441
  addLabel: "新增",
2442
2442
  auth: () => {
2443
- var l, r, c;
2444
- return ((c = (r = (l = e.value) == null ? void 0 : l.control) == null ? void 0 : r.add) == null ? void 0 : c.inline) === !0;
2443
+ var l, r, p;
2444
+ return ((p = (r = (l = e.value) == null ? void 0 : l.control) == null ? void 0 : r.add) == null ? void 0 : p.inline) === !0;
2445
2445
  }
2446
2446
  },
2447
- dropdown: (l, r, c, T) => ({
2447
+ dropdown: (l, r, p, S) => ({
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: () => !(S.control.add.inline === !0 && p == 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, p, S)) == null ? void 0 : N.operate;
2457
+ P === "edit" ? v(l, r, p, S) : P === "delete" ? m(l, r, p, S) : P === "view" && s(l, r, p, S);
2458
2458
  },
2459
2459
  "button-props": { round: !0, plain: !0 }
2460
2460
  })
@@ -2462,31 +2462,31 @@ 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;
2469
- if (!l || !r || c == null)
2467
+ const pe = (l, r, p, S) => {
2468
+ var Ee, ke, je, Le, ze, Ge;
2469
+ if (!l || !r || p == 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, p, S)) || {}, N = ((je = (ke = d == null ? void 0 : d.control) == null ? void 0 : ke.dropdown) == null ? void 0 : je.call(ke, l, r, p, S)) || {}, Z = ((Ge = (ze = (Le = e.value) == null ? void 0 : Le.control) == null ? void 0 : ze.dropdown) == null ? void 0 : Ge.call(ze, l, r, p, S)) || {};
2472
2472
  return xe(P, N, Z) || {};
2473
- }, de = {
2473
+ }, ie = {
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, p, S) => p,
2478
+ "tooltip-formatter": ({ row: l, column: r, cellValue: p }) => Ae(jl, { content: p, column: r })
2479
2479
  };
2480
2480
  e.value.tableColumns = xe(
2481
- de,
2481
+ ie,
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
- const ne = {
2489
+ const ue = {
2490
2490
  type: "hidden",
2491
2491
  labelPosition: "right",
2492
2492
  style: {
@@ -2494,11 +2494,11 @@ const Fl = {
2494
2494
  }
2495
2495
  };
2496
2496
  e.value.formItems = xe(
2497
- ne,
2497
+ ue,
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,109 +2511,109 @@ const Fl = {
2511
2511
  overflow: !0,
2512
2512
  max: {
2513
2513
  style: {},
2514
- icon: () => Ie(el)
2514
+ icon: () => Ae(tl)
2515
2515
  },
2516
2516
  min: {
2517
2517
  style: {},
2518
- icon: () => Ie(tl)
2518
+ icon: () => Ae(ll)
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
- let c = r;
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
- parseFloat(c).toFixed(l.decimals.num)
2531
- ).toString())), ["date", "datetime", "time", "time-select"].includes(l.type) && ht(r).isValid()) {
2528
+ let p = r;
2529
+ if (l.decimals && !isNaN(parseFloat(r)) && (typeof l.decimals == "number" ? p = parseFloat(p).toFixed(l.decimals) : typeof l.decimals == "object" && l.decimals.num && (l.decimals.pad ? p = parseFloat(p).toFixed(l.decimals.num) : p = parseFloat(
2530
+ parseFloat(p).toFixed(l.decimals.num)
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
+ p = l.format ? yt(p).format(l.format) : yt(p).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(
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;
2542
- }, se = (l) => {
2539
+ return l.type === "money" && (l.align = l.align || "right", l.width = l.width || 130, p = `<span title="${Et(
2540
+ parseFloat(p)
2541
+ )}">${pa(parseFloat(p))}</span>`), l.prefix && p && (p = `<span>${l.prefix}${p}</span>`), l.suffix && p && (p = `${p}<span>${l.suffix}</span>`), p;
2542
+ }, ne = (l) => {
2543
2543
  k.value = Object.fromEntries(D), e.value.table.load();
2544
2544
  }, g = (l) => {
2545
2545
  k.value = l, e.value.table.load();
2546
2546
  }, E = async (l) => {
2547
- var r, c;
2547
+ var r, p;
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 (S) {
2552
+ console.error("验证失败:", S);
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
+ (p = e.value.control.add) != null && p.click ? e.value.control.add.click(l) : e.value.control.add.inline === !0 ? (e.value.table.data.unshift(K.value), t("open", "row-add", { initFormData: K.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(K.value).forEach((S) => {
2556
+ e.value[S] && (e.value[S].value = K.value[S]);
2557
+ }), w.value = !0, t("open", "add", { m: l }), mt());
2558
+ }, v = async (l, r, p, S) => {
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: p, m: S }))) 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, p, S) : (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: S, row: l, column: r, $index: p }), mt());
2570
+ }, m = async (l, r, p, S) => {
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: p, m: S }))) 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, p, S);
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: p, m: S },
2586
+ (je = !0, Le = !1) => {
2587
+ je && (e.value.table.data.splice(p, 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, p, S) => {
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: p, m: S }))) 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, p, S) : (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: S, row: l, column: r, $index: p }), mt());
2605
+ }, a = (l, r, p, S) => {
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, p, S) : t(
2608
2608
  "row-save",
2609
- { row: l, column: r, $index: c, data: e.value.table.data },
2609
+ { row: l, column: r, $index: p, data: e.value.table.data },
2610
2610
  (N = !0, Z = !0) => {
2611
- N && e.value.table.load(), Z && et(() => {
2612
- ee.value = Object.assign(
2611
+ N && e.value.table.load(), Z && tt(() => {
2612
+ K.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
  );
@@ -2621,27 +2621,27 @@ const Fl = {
2621
2621
  }
2622
2622
  );
2623
2623
  }, _ = (l, r) => {
2624
- t("submit", e.value.form.modalState, l, r, (c) => {
2625
- c && (w.value = !1, r.table.load());
2624
+ t("submit", e.value.form.modalState, l, r, (p) => {
2625
+ p && (w.value = !1, r.table.load());
2626
2626
  });
2627
2627
  }, n = (l) => {
2628
2628
  t("reset", l);
2629
2629
  }, b = (l, r) => {
2630
- var c;
2631
- if ((c = l.control.download) != null && c.click)
2630
+ var p;
2631
+ if ((p = l.control.download) != null && p.click)
2632
2632
  l.control.download.click(l, r);
2633
2633
  else {
2634
- let T = $t(
2634
+ let S = 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(Tl, {
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), S();
2645
2645
  }
2646
2646
  })
2647
2647
  }
@@ -2651,60 +2651,60 @@ const Fl = {
2651
2651
  }
2652
2652
  }, M = (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(Bl, {
2661
2661
  modelValue: l,
2662
- tuid: ue.value
2662
+ tuid: B.name
2663
2663
  })
2664
2664
  }
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
2671
  { type: "setting", func: M },
2672
2672
  { type: "view", func: s },
2673
2673
  { type: "edit", func: v },
2674
- { type: "delete", func: p },
2674
+ { type: "delete", func: m },
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
+ ], de = (l) => oe.filter((r) => l.includes(r.type)).map(({ type: r, func: p }) => {
2677
+ var S, P, N;
2678
2678
  return {
2679
2679
  name: `control-${r}`,
2680
2680
  attr: q == null ? void 0 : q[r],
2681
- func: c,
2682
- label: (T = q == null ? void 0 : q[r]) == null ? void 0 : T.label,
2681
+ func: p,
2682
+ label: (S = q == null ? void 0 : q[r]) == null ? void 0 : S.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
- }).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(
2686
+ }).sort((r, p) => r.sort - p.sort), R = (l) => de(l).reduce((r, p) => {
2687
+ const S = p.groupName || "default";
2688
+ return r[S] || (r[S] = []), r[S].push(p), 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
- ), Ce = te({}), _e = (l, r) => {
2694
- const c = (T, P) => {
2695
- for (const N of T) {
2693
+ ), Ce = le({}), _e = (l, r) => {
2694
+ const p = (S, P) => {
2695
+ for (const N of S) {
2696
2696
  if (N.value == P) return N.label;
2697
2697
  if (N.children) {
2698
- const Z = c(N.children, P);
2698
+ const Z = p(N.children, P);
2699
2699
  if (Z) return Z;
2700
2700
  }
2701
2701
  }
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 S = r.toString();
2706
+ return Ce.value[S] ? (l.options = Ce.value[S], l.formatter || (l.formatter = (P, N, Z, Ee) => l.options && p(l.options, Z) || Z), Promise.resolve()) : l.getDicts(e.value.table.data).then((P) => {
2707
+ Ce.value[S] = P, l.options = P, l.formatter || (l.formatter = (N, Z, Ee, ke) => l.options && p(l.options, Ee) || Ee);
2708
2708
  });
2709
2709
  }
2710
2710
  return Promise.resolve();
@@ -2712,121 +2712,128 @@ const Fl = {
2712
2712
  const l = [];
2713
2713
  Object.keys(e.value).forEach((r) => {
2714
2714
  if (e.value[r].getDicts) {
2715
- const c = _e(e.value[r], r).then(() => {
2716
- e.value.table.data.forEach((T) => {
2715
+ const p = _e(e.value[r], r).then(() => {
2716
+ e.value.table.data.forEach((S) => {
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 = S[r];
2720
+ S[r] = N != null ? N.toString() : N;
2721
2721
  }
2722
2722
  });
2723
- }).catch((T) => {
2724
- console.error(`加载字典${r}出错:`, T);
2723
+ }).catch((S) => {
2724
+ console.error(`加载字典${r}出错:`, S);
2725
2725
  });
2726
- l.push(c);
2726
+ l.push(p);
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, p, S) => {
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, p, S)) != null && P.auth ? (N = l.table(r, p, S)) == null ? void 0 : N.auth(r, p, S) : !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
2736
  V.value.handleClose();
2737
2737
  else if (e.value.dialog.mode == "dialog")
2738
2738
  try {
2739
- S.value.handleClose();
2739
+ T.value.handleClose();
2740
2740
  } catch {
2741
2741
  w.value = !1;
2742
2742
  }
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 () => {
2749
- var l;
2750
- ue.value = "t-" + ((l = Wt()) == null ? void 0 : l.uid), console.log(ue.value), K.value = Object.entries(e.value).filter(
2751
- ([r, c]) => c.type !== "hidden" && c.type !== "control" && c.visible !== !1
2752
- ).map(([r, c]) => ({
2753
- key: r || "",
2754
- label: c.label,
2755
- 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
- );
2748
+ });
2749
+ const Be = async () => {
2750
+ if (!B.name) {
2751
+ Ie.error("请指定表格名称");
2752
+ return;
2753
+ }
2754
+ const l = await Sl(B.name);
2755
+ l && Array.isArray(l) && l.forEach((r) => {
2756
+ const p = e.value[r.key];
2757
+ p && (p.width = r.width, p.showCol = r.showCol, p.sort = r.sort);
2765
2758
  });
2759
+ };
2760
+ return rt(async () => {
2761
+ ee.value = Object.entries(e.value).filter(
2762
+ ([l, r]) => r.type !== "hidden" && r.type !== "control" && r.visible !== !1
2763
+ ).map(([l, r]) => ({
2764
+ key: l || "",
2765
+ label: r.label,
2766
+ value: !0
2767
+ }));
2766
2768
  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
- });
2771
- } catch (r) {
2772
- console.error("Error fetching table column settings:", r);
2769
+ await tt();
2770
+ const l = Object.entries(e.value).filter(
2771
+ ([r, p]) => p.type !== "control" && p.editor !== !1 && p.type !== "hidden"
2772
+ );
2773
+ K.value = Object.fromEntries(
2774
+ l.map(([r, p]) => [r, p.value])
2775
+ ), await Be();
2776
+ } catch (l) {
2777
+ console.error("Error during component initialization:", l);
2773
2778
  }
2774
2779
  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");
2780
+ }), Xt(async () => {
2781
+ await Be();
2782
+ }), i({ addRow: E, editRow: v, deleteRow: m, readForm: s, saveRowData: a, closeDialog: Fe }), (l, r) => {
2783
+ var Ge, c, Q, ve, Ye;
2784
+ const p = I("el-icon"), S = 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
2785
  return u(), F(X, null, [
2779
- e.value.dialog.mode == "dialog" && w.value ? (u(), F("div", jl, [
2780
- G(T, x(
2786
+ e.value.dialog.mode == "dialog" && w.value ? (u(), F("div", Ll, [
2787
+ G(S, x(
2781
2788
  {
2782
2789
  ref_key: "dialogRef",
2783
- ref: S,
2790
+ ref: T,
2784
2791
  id: "dialogRef",
2785
2792
  modelValue: w.value,
2786
- "onUpdate:modelValue": r[3] || (r[3] = (I) => w.value = I),
2793
+ "onUpdate:modelValue": r[3] || (r[3] = (Y) => w.value = Y),
2787
2794
  fullscreen: e.value.dialog.fullScreen
2788
2795
  },
2789
- j(Te)(e.value.dialog, (I) => !["size", "max", "min"].includes(I)),
2796
+ j(qe)(e.value.dialog, (Y) => !["size", "max", "min"].includes(Y)),
2790
2797
  {
2791
2798
  width: j(It)(e.value.dialog.width) + 35
2792
2799
  }
2793
2800
  ), {
2794
2801
  header: h(() => {
2795
- var I, oe, $, z, J, Ge, Qe, ze, He, at;
2802
+ var Y, te, $, H, J, Qe, Ze, He, Pe, ot;
2796
2803
  return [
2797
- W("div", Ll, [
2798
- W("div", zl, [
2804
+ W("div", zl, [
2805
+ W("div", Hl, [
2799
2806
  y(l.$slots, "f-header", {}, () => [
2800
2807
  W("div", null, be(e.value.dialog.title), 1)
2801
2808
  ], !0)
2802
2809
  ]),
2803
- ((oe = (I = e.value) == null ? void 0 : I.dialog) == null ? void 0 : oe.fullScreen) === !1 ? (u(), F("div", {
2810
+ ((te = (Y = e.value) == null ? void 0 : Y.dialog) == null ? void 0 : te.fullScreen) === !1 ? (u(), F("div", {
2804
2811
  key: 0,
2805
- style: Fe((J = (z = ($ = e.value) == null ? void 0 : $.dialog) == null ? void 0 : z.max) == null ? void 0 : J.style),
2812
+ style: Se((J = (H = ($ = e.value) == null ? void 0 : $.dialog) == null ? void 0 : H.max) == null ? void 0 : J.style),
2806
2813
  onClick: r[0] || (r[0] = (A) => e.value.dialog.fullScreen = !0),
2807
2814
  class: "max"
2808
2815
  }, [
2809
- G(c, null, {
2816
+ G(p, null, {
2810
2817
  default: h(() => {
2811
- var A, Oe, Ze;
2818
+ var A, Oe, Je;
2812
2819
  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)))
2820
+ (u(), C(Ue((Je = (Oe = (A = e.value) == null ? void 0 : A.dialog) == null ? void 0 : Oe.max) == null ? void 0 : Je.icon)))
2814
2821
  ];
2815
2822
  }),
2816
2823
  _: 1
2817
2824
  })
2818
2825
  ], 4)) : me("", !0),
2819
- ((Qe = (Ge = e.value) == null ? void 0 : Ge.dialog) == null ? void 0 : Qe.fullScreen) === !0 ? (u(), F("div", {
2826
+ ((Ze = (Qe = e.value) == null ? void 0 : Qe.dialog) == null ? void 0 : Ze.fullScreen) === !0 ? (u(), F("div", {
2820
2827
  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),
2828
+ style: Se((ot = (Pe = (He = e.value) == null ? void 0 : He.dialog) == null ? void 0 : Pe.min) == null ? void 0 : ot.style),
2822
2829
  onClick: r[1] || (r[1] = (A) => e.value.dialog.fullScreen = !1),
2823
2830
  class: "max"
2824
2831
  }, [
2825
- G(c, null, {
2832
+ G(p, null, {
2826
2833
  default: h(() => {
2827
- var A, Oe, Ze;
2834
+ var A, Oe, Je;
2828
2835
  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)))
2836
+ (u(), C(Ue((Je = (Oe = (A = e.value) == null ? void 0 : A.dialog) == null ? void 0 : Oe.min) == null ? void 0 : Je.icon)))
2830
2837
  ];
2831
2838
  }),
2832
2839
  _: 1
@@ -2836,18 +2843,18 @@ const Fl = {
2836
2843
  ];
2837
2844
  }),
2838
2845
  default: h(() => [
2839
- W("div", Hl, [
2846
+ W("div", Pl, [
2840
2847
  y(l.$slots, "table-dialog-form", { model: e.value }, () => [
2841
- G(gt, {
2848
+ G(bt, {
2842
2849
  modelValue: e.value,
2843
- "onUpdate:modelValue": r[2] || (r[2] = (I) => e.value = I),
2850
+ "onUpdate:modelValue": r[2] || (r[2] = (Y) => e.value = Y),
2844
2851
  onSubmit: _,
2845
2852
  onReset: n
2846
- }, 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)
2853
+ }, fe({ _: 2 }, [
2854
+ L(l.$slots, (Y, te, $) => ({
2855
+ name: te,
2856
+ fn: h((H) => [
2857
+ y(l.$slots, te, { model: H }, void 0, !0)
2851
2858
  ])
2852
2859
  }))
2853
2860
  ]), 1032, ["modelValue"])
@@ -2857,16 +2864,16 @@ const Fl = {
2857
2864
  _: 3
2858
2865
  }, 16, ["modelValue", "fullscreen", "width"])
2859
2866
  ])) : me("", !0),
2860
- e.value.dialog.mode == "drawer" && w.value ? (u(), F("div", Pl, [
2867
+ e.value.dialog.mode == "drawer" && w.value ? (u(), F("div", Nl, [
2861
2868
  G(P, x({
2862
2869
  ref_key: "drawerRef",
2863
2870
  ref: V,
2864
2871
  modelValue: w.value,
2865
- "onUpdate:modelValue": r[5] || (r[5] = (I) => w.value = I)
2866
- }, j(Te)(e.value.dialog, (I) => !["width"].includes(I))), {
2872
+ "onUpdate:modelValue": r[5] || (r[5] = (Y) => w.value = Y)
2873
+ }, j(qe)(e.value.dialog, (Y) => !["width"].includes(Y))), {
2867
2874
  header: h(() => [
2868
- W("div", Nl, [
2869
- W("div", Wl, [
2875
+ W("div", Wl, [
2876
+ W("div", Xl, [
2870
2877
  y(l.$slots, "f-header", {}, () => [
2871
2878
  W("div", null, be(e.value.dialog.title), 1)
2872
2879
  ], !0)
@@ -2875,16 +2882,16 @@ const Fl = {
2875
2882
  ]),
2876
2883
  default: h(() => [
2877
2884
  y(l.$slots, "table-drawer-form", { model: e.value }, () => [
2878
- G(gt, {
2885
+ G(bt, {
2879
2886
  modelValue: e.value,
2880
- "onUpdate:modelValue": r[4] || (r[4] = (I) => e.value = I),
2887
+ "onUpdate:modelValue": r[4] || (r[4] = (Y) => e.value = Y),
2881
2888
  onSubmit: _,
2882
2889
  onReset: n
2883
- }, 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)
2890
+ }, fe({ _: 2 }, [
2891
+ L(l.$slots, (Y, te, $) => ({
2892
+ name: te,
2893
+ fn: h((H) => [
2894
+ y(l.$slots, te, { model: H }, void 0, !0)
2888
2895
  ])
2889
2896
  }))
2890
2897
  ]), 1032, ["modelValue"])
@@ -2893,21 +2900,21 @@ const Fl = {
2893
2900
  _: 3
2894
2901
  }, 16, ["modelValue"])
2895
2902
  ])) : 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, [
2903
+ W("div", Gl, [
2904
+ ((c = (Ge = e.value) == null ? void 0 : Ge.query) == null ? void 0 : c.hidden) != !0 ? (u(), F("div", Ql, [
2898
2905
  y(l.$slots, "query", {}, () => [
2899
- G(wl, {
2906
+ G(El, {
2900
2907
  modelValue: e.value,
2901
- "onUpdate:modelValue": r[6] || (r[6] = (I) => e.value = I),
2908
+ "onUpdate:modelValue": r[6] || (r[6] = (Y) => e.value = Y),
2902
2909
  info: k.value,
2903
- "onUpdate:info": r[7] || (r[7] = (I) => k.value = I),
2910
+ "onUpdate:info": r[7] || (r[7] = (Y) => k.value = Y),
2904
2911
  onQuery: g,
2905
- onReset: se
2906
- }, ce({
2912
+ onReset: ne
2913
+ }, fe({
2907
2914
  "q-btns": h(() => [
2908
2915
  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, [
2916
+ (u(!0), F(X, null, L(R(["add", "download", "setting"]), (Y, te) => (u(), F(X, null, [
2917
+ te == "default" ? (u(!0), F(X, { key: 0 }, L(Y, ($) => (u(), F(X, null, [
2911
2918
  y(l.$slots, $.name + "-left", {}, void 0, !0),
2912
2919
  ($.name === "control-add" ? $.attr.auth(e.value) && $.attr.inline === !1 : $.attr.auth(e.value)) ? y(l.$slots, $.name, { key: 0 }, () => [
2913
2920
  $.label ? (u(), C(j(Me), x({
@@ -2915,10 +2922,10 @@ const Fl = {
2915
2922
  title: $.label,
2916
2923
  ref_for: !0
2917
2924
  }, $.attr, {
2918
- onClick: (z) => $.func(e.value, K.value)
2925
+ onClick: (H) => $.func(e.value, ee.value)
2919
2926
  }), {
2920
2927
  default: h(() => [
2921
- Se(be($.label), 1)
2928
+ Te(be($.label), 1)
2922
2929
  ]),
2923
2930
  _: 2
2924
2931
  }, 1040, ["title", "onClick"])) : (u(), C(j(Me), x({
@@ -2926,13 +2933,13 @@ const Fl = {
2926
2933
  title: $.label,
2927
2934
  ref_for: !0
2928
2935
  }, $.attr, {
2929
- onClick: (z) => $.func(e.value, K.value)
2936
+ onClick: (H) => $.func(e.value, ee.value)
2930
2937
  }), null, 16, ["title", "onClick"]))
2931
2938
  ], !0) : me("", !0),
2932
2939
  y(l.$slots, $.name + "-right", {}, void 0, !0)
2933
2940
  ], 64))), 256)) : (u(), C(N, { key: 1 }, {
2934
2941
  default: h(() => [
2935
- (u(!0), F(X, null, L(I, ($) => (u(), F(X, null, [
2942
+ (u(!0), F(X, null, L(Y, ($) => (u(), F(X, null, [
2936
2943
  y(l.$slots, $.name + "-left", {}, void 0, !0),
2937
2944
  ($.name === "control-add" ? $.attr.auth(e.value) && $.attr.inline === !1 : $.attr.auth(e.value)) ? y(l.$slots, $.name, { key: 0 }, () => [
2938
2945
  $.label ? (u(), C(j(Me), x({
@@ -2940,10 +2947,10 @@ const Fl = {
2940
2947
  title: $.label,
2941
2948
  ref_for: !0
2942
2949
  }, $.attr, {
2943
- onClick: (z) => $.func(e.value, K.value)
2950
+ onClick: (H) => $.func(e.value, ee.value)
2944
2951
  }), {
2945
2952
  default: h(() => [
2946
- Se(be($.label), 1)
2953
+ Te(be($.label), 1)
2947
2954
  ]),
2948
2955
  _: 2
2949
2956
  }, 1040, ["title", "onClick"])) : (u(), C(j(Me), x({
@@ -2951,7 +2958,7 @@ const Fl = {
2951
2958
  title: $.label,
2952
2959
  ref_for: !0
2953
2960
  }, $.attr, {
2954
- onClick: (z) => $.func(e.value, K.value)
2961
+ onClick: (H) => $.func(e.value, ee.value)
2955
2962
  }), null, 16, ["title", "onClick"]))
2956
2963
  ], !0) : me("", !0),
2957
2964
  y(l.$slots, $.name + "-right", {}, void 0, !0)
@@ -2964,27 +2971,27 @@ const Fl = {
2964
2971
  ]),
2965
2972
  _: 2
2966
2973
  }, [
2967
- L(l.$slots, (I, oe, $) => ({
2968
- name: oe,
2969
- fn: h((z) => [
2970
- y(l.$slots, oe, { model: e.value }, void 0, !0)
2974
+ L(l.$slots, (Y, te, $) => ({
2975
+ name: te,
2976
+ fn: h((H) => [
2977
+ y(l.$slots, te, { model: e.value }, void 0, !0)
2971
2978
  ])
2972
2979
  }))
2973
2980
  ]), 1032, ["modelValue", "info"])
2974
2981
  ], !0)
2975
2982
  ])) : me("", !0),
2976
- W("div", Ql, [
2977
- G(je, x({
2983
+ W("div", Zl, [
2984
+ G(Le, x({
2978
2985
  ...l.$attrs,
2979
- ...j(Te)(
2986
+ ...j(qe)(
2980
2987
  e.value.table,
2981
- (I) => !["dblclickType", "page"].includes(I)
2988
+ (Y) => !["dblclickType", "page"].includes(Y)
2982
2989
  )
2983
2990
  }, {
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());
2991
+ "summary-method": (Y) => e.value.table["summary-method"](Y, { fields: re.value, sums: se.value }),
2992
+ onSortChange: r[8] || (r[8] = (Y) => {
2993
+ var te, $;
2994
+ e.value.table.onSortChange(Y, k.value), ((te = Y == null ? void 0 : Y.column) == null ? void 0 : te.sortable) === "custom" && (($ = e.value.table) == null || $.load());
2988
2995
  })
2989
2996
  }), {
2990
2997
  append: h(() => [
@@ -2995,70 +3002,70 @@ const Fl = {
2995
3002
  ]),
2996
3003
  default: h(() => [
2997
3004
  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,
3005
+ (u(!0), F(X, null, L(O.value, (Y, te) => (u(), C(je, x({
3006
+ prop: te,
3007
+ key: te,
3001
3008
  ref_for: !0
3002
3009
  }, {
3003
3010
  ...e.value.tableColumns,
3004
- ...j(Te)(I, ($) => H.includes($))
3005
- }), ce({
3006
- header: h(({ column: $, $index: z }) => [
3007
- oe == "control" ? y(l.$slots, `${oe}-header`, {
3011
+ ...j(qe)(Y, ($) => z.includes($))
3012
+ }), fe({
3013
+ header: h(({ column: $, $index: H }) => [
3014
+ te == "control" ? y(l.$slots, `${te}-header`, {
3008
3015
  key: 0,
3009
3016
  column: $,
3010
- $index: z
3017
+ $index: H
3011
3018
  }, () => [
3012
3019
  W("span", null, be($.label), 1)
3013
- ], !0) : y(l.$slots, `${oe}-header`, {
3020
+ ], !0) : y(l.$slots, `${te}-header`, {
3014
3021
  key: 1,
3015
3022
  column: $,
3016
- $index: z
3023
+ $index: H
3017
3024
  }, void 0, !0)
3018
3025
  ]),
3019
3026
  "filter-icon": h(($) => [
3020
- y(l.$slots, `${oe}-filter-icon`, { data: $ }, void 0, !0)
3027
+ y(l.$slots, `${te}-filter-icon`, { data: $ }, void 0, !0)
3021
3028
  ]),
3022
3029
  _: 2
3023
3030
  }, [
3024
- I.type === "expand" ? {
3031
+ Y.type === "expand" ? {
3025
3032
  name: "default",
3026
- fn: h(({ row: $, column: z, $index: J }) => [
3027
- y(l.$slots, `${oe}`, {
3033
+ fn: h(({ row: $, column: H, $index: J }) => [
3034
+ y(l.$slots, `${te}`, {
3028
3035
  row: $,
3029
- column: z,
3036
+ column: H,
3030
3037
  $index: J
3031
3038
  }, void 0, !0)
3032
3039
  ]),
3033
3040
  key: "0"
3034
- } : I.type == "control" ? {
3041
+ } : Y.type == "control" ? {
3035
3042
  name: "default",
3036
- fn: h(({ row: $, column: z, $index: J }) => {
3037
- var Ge, Qe;
3043
+ fn: h(({ row: $, column: H, $index: J }) => {
3044
+ var Qe, Ze;
3038
3045
  return [
3039
3046
  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)
3047
+ class: St(["control", (Qe = e.value.control) == null ? void 0 : Qe.class]),
3048
+ style: Se((Ze = e.value.control) == null ? void 0 : Ze.style)
3042
3049
  }, [
3043
3050
  y(l.$slots, "control", {}, () => [
3044
3051
  y(l.$slots, "control-left", {
3045
3052
  row: $,
3046
- column: z,
3053
+ column: H,
3047
3054
  $index: J
3048
3055
  }, void 0, !0),
3049
- (u(!0), F(X, null, L(R(["view", "edit", "delete", "save"]), (ze, He) => {
3050
- var at;
3056
+ (u(!0), F(X, null, L(R(["view", "edit", "delete", "save"]), (He, Pe) => {
3057
+ var ot;
3051
3058
  return u(), F(X, null, [
3052
- He == "default" ? (u(!0), F(X, { key: 0 }, L(ze, (A) => (u(), F(X, null, [
3059
+ Pe == "default" ? (u(!0), F(X, { key: 0 }, L(He, (A) => (u(), F(X, null, [
3053
3060
  y(l.$slots, A.name + "-left", {
3054
3061
  row: $,
3055
- column: z,
3062
+ column: H,
3056
3063
  $index: J
3057
3064
  }, void 0, !0),
3058
- A.attr.auth($, z, J, e.value) ? y(l.$slots, A.name, {
3065
+ A.attr.auth($, H, J, e.value) ? y(l.$slots, A.name, {
3059
3066
  key: 0,
3060
3067
  row: $,
3061
- column: z,
3068
+ column: H,
3062
3069
  $index: J
3063
3070
  }, () => [
3064
3071
  A.label ? (u(), C(j(Me), x({
@@ -3066,10 +3073,10 @@ const Fl = {
3066
3073
  title: A.label,
3067
3074
  ref_for: !0
3068
3075
  }, A.attr, {
3069
- onClick: (Oe) => A.func($, z, J, e.value)
3076
+ onClick: (Oe) => A.func($, H, J, e.value)
3070
3077
  }), {
3071
3078
  default: h(() => [
3072
- Se(be(ye(A, J)), 1)
3079
+ Te(be(ye(A, J)), 1)
3073
3080
  ]),
3074
3081
  _: 2
3075
3082
  }, 1040, ["title", "onClick"])) : (u(), C(j(Me), x({
@@ -3077,42 +3084,42 @@ const Fl = {
3077
3084
  title: A.label,
3078
3085
  ref_for: !0
3079
3086
  }, A.attr, {
3080
- onClick: (Oe) => A.func($, z, J, e.value)
3087
+ onClick: (Oe) => A.func($, H, J, e.value)
3081
3088
  }), null, 16, ["title", "onClick"]))
3082
3089
  ], !0) : me("", !0),
3083
3090
  y(l.$slots, A.name + "-right", {
3084
3091
  row: $,
3085
- column: z,
3092
+ column: H,
3086
3093
  $index: J
3087
3094
  }, void 0, !0)
3088
- ], 64))), 256)) : He != null && He.startsWith("dropdown") && ((at = pe($, z, J, e.value)) != null && at.auth()) ? (u(), C(ke, x({
3095
+ ], 64))), 256)) : Pe != null && Pe.startsWith("dropdown") && ((ot = pe($, H, J, e.value)) != null && ot.auth()) ? (u(), C(ke, x({
3089
3096
  key: 1,
3090
3097
  ref_for: !0
3091
- }, pe($, z, J, e.value)), {
3098
+ }, pe($, H, J, e.value)), {
3092
3099
  dropdown: h(() => [
3093
3100
  G(Ee, null, {
3094
3101
  default: h(() => [
3095
- (u(!0), F(X, null, L(ze, (A) => {
3096
- var Oe, Ze, kt;
3102
+ (u(!0), F(X, null, L(He, (A) => {
3103
+ var Oe, Je, Ct;
3097
3104
  return u(), F(X, null, [
3098
3105
  l.$slots[A.name + "-left"] ? y(l.$slots, A.name + "-left", {
3099
3106
  key: 0,
3100
3107
  row: $,
3101
- column: z,
3108
+ column: H,
3102
3109
  $index: J
3103
3110
  }, void 0, !0) : me("", !0),
3104
- A.attr.auth($, z, J, e.value) ? (u(), C(Z, x({
3111
+ A.attr.auth($, H, J, e.value) ? (u(), C(Z, x({
3105
3112
  key: 1,
3106
3113
  ref_for: !0
3107
3114
  }, {
3108
3115
  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
3116
+ divided: (Je = A == null ? void 0 : A.attr) == null ? void 0 : Je.divided,
3117
+ disabled: (Ct = A == null ? void 0 : A.attr) == null ? void 0 : Ct.disabled
3111
3118
  }), {
3112
3119
  default: h(() => [
3113
3120
  y(l.$slots, A.name, {
3114
3121
  row: $,
3115
- column: z,
3122
+ column: H,
3116
3123
  $index: J
3117
3124
  }, () => [
3118
3125
  A.label ? (u(), C(j(Me), x({
@@ -3120,10 +3127,10 @@ const Fl = {
3120
3127
  title: A.label,
3121
3128
  ref_for: !0
3122
3129
  }, A.attr, {
3123
- onClick: (At) => A.func($, z, J, e.value)
3130
+ onClick: (Bt) => A.func($, H, J, e.value)
3124
3131
  }), {
3125
3132
  default: h(() => [
3126
- Se(be(ye(A, J)), 1)
3133
+ Te(be(ye(A, J)), 1)
3127
3134
  ]),
3128
3135
  _: 2
3129
3136
  }, 1040, ["title", "onClick"])) : (u(), C(j(Me), x({
@@ -3131,7 +3138,7 @@ const Fl = {
3131
3138
  title: A.label,
3132
3139
  ref_for: !0
3133
3140
  }, A.attr, {
3134
- onClick: (At) => A.func($, z, J, e.value)
3141
+ onClick: (Bt) => A.func($, H, J, e.value)
3135
3142
  }), null, 16, ["title", "onClick"]))
3136
3143
  ], !0)
3137
3144
  ]),
@@ -3140,7 +3147,7 @@ const Fl = {
3140
3147
  l.$slots[A.name + "-right"] ? y(l.$slots, A.name + "-right", {
3141
3148
  key: 2,
3142
3149
  row: $,
3143
- column: z,
3150
+ column: H,
3144
3151
  $index: J
3145
3152
  }, void 0, !0) : me("", !0)
3146
3153
  ], 64);
@@ -3152,22 +3159,22 @@ const Fl = {
3152
3159
  default: h(() => {
3153
3160
  var A;
3154
3161
  return [
3155
- Se(be((A = pe($, z, J, e.value)) == null ? void 0 : A.label) + " ", 1)
3162
+ Te(be((A = pe($, H, J, e.value)) == null ? void 0 : A.label) + " ", 1)
3156
3163
  ];
3157
3164
  }),
3158
3165
  _: 2
3159
3166
  }, 1040)) : (u(), C(N, { key: 2 }, {
3160
3167
  default: h(() => [
3161
- (u(!0), F(X, null, L(ze, (A) => (u(), F(X, null, [
3168
+ (u(!0), F(X, null, L(He, (A) => (u(), F(X, null, [
3162
3169
  y(l.$slots, A.name + "-left", {
3163
3170
  row: $,
3164
- column: z,
3171
+ column: H,
3165
3172
  $index: J
3166
3173
  }, void 0, !0),
3167
- A.attr.auth($, z, J, e.value) ? y(l.$slots, A.name, {
3174
+ A.attr.auth($, H, J, e.value) ? y(l.$slots, A.name, {
3168
3175
  key: 0,
3169
3176
  row: $,
3170
- column: z,
3177
+ column: H,
3171
3178
  $index: J
3172
3179
  }, () => [
3173
3180
  A.label ? (u(), C(j(Me), x({
@@ -3175,10 +3182,10 @@ const Fl = {
3175
3182
  title: A.label,
3176
3183
  ref_for: !0
3177
3184
  }, A.attr, {
3178
- onClick: (Oe) => A.func($, z, J, e.value)
3185
+ onClick: (Oe) => A.func($, H, J, e.value)
3179
3186
  }), {
3180
3187
  default: h(() => [
3181
- Se(be(ye(A, J)), 1)
3188
+ Te(be(ye(A, J)), 1)
3182
3189
  ]),
3183
3190
  _: 2
3184
3191
  }, 1040, ["title", "onClick"])) : (u(), C(j(Me), x({
@@ -3186,12 +3193,12 @@ const Fl = {
3186
3193
  title: A.label,
3187
3194
  ref_for: !0
3188
3195
  }, A.attr, {
3189
- onClick: (Oe) => A.func($, z, J, e.value)
3196
+ onClick: (Oe) => A.func($, H, J, e.value)
3190
3197
  }), null, 16, ["title", "onClick"]))
3191
3198
  ], !0) : me("", !0),
3192
3199
  y(l.$slots, A.name + "-right", {
3193
3200
  row: $,
3194
- column: z,
3201
+ column: H,
3195
3202
  $index: J
3196
3203
  }, void 0, !0)
3197
3204
  ], 64))), 256))
@@ -3202,7 +3209,7 @@ const Fl = {
3202
3209
  }), 256)),
3203
3210
  y(l.$slots, "control-right", {
3204
3211
  row: $,
3205
- column: z,
3212
+ column: H,
3206
3213
  $index: J
3207
3214
  }, void 0, !0)
3208
3215
  ], !0)
@@ -3210,54 +3217,54 @@ const Fl = {
3210
3217
  ];
3211
3218
  }),
3212
3219
  key: "1"
3213
- } : I.type != "selection" && I.type != "index" ? {
3220
+ } : Y.type != "selection" && Y.type != "index" ? {
3214
3221
  name: "default",
3215
- fn: h(({ row: $, column: z, $index: J }) => [
3216
- De(I, $, z, J) && J != -1 ? y(l.$slots, `${oe}`, {
3222
+ fn: h(({ row: $, column: H, $index: J }) => [
3223
+ De(Y, $, H, J) && J != -1 ? y(l.$slots, `${te}`, {
3217
3224
  key: 0,
3218
3225
  row: $,
3219
- column: z,
3226
+ column: H,
3220
3227
  $index: J
3221
3228
  }, () => {
3222
- var Ge;
3229
+ var Qe;
3223
3230
  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,
3231
+ (u(), C(pt, {
3232
+ modelValue: $[te],
3233
+ "onUpdate:modelValue": (Ze) => $[te] = Ze,
3234
+ item: Y == null ? void 0 : Y.table($, H, J),
3235
+ ctrlKey: te,
3236
+ key: `${te}-${J} -${ce.value}`,
3237
+ ctrlType: (Qe = Y.table($, H, J)) != null && Qe.type ? Y.table($, H, J).type : Y.type,
3231
3238
  model: e.value,
3232
3239
  class: "g-ctrl-container",
3233
3240
  t: "t",
3234
3241
  formInfo: $
3235
- }, 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,
3242
+ }, fe({ _: 2 }, [
3243
+ L(l.$slots, (Ze, He) => ({
3244
+ name: He,
3245
+ fn: h((Pe) => [
3246
+ y(l.$slots, He, {
3247
+ data: Pe,
3248
+ item: Y,
3242
3249
  model: e.value
3243
3250
  }, void 0, !0)
3244
3251
  ])
3245
3252
  }))
3246
3253
  ]), 1032, ["modelValue", "onUpdate:modelValue", "item", "ctrlKey", "ctrlType", "model", "formInfo"]))
3247
3254
  ];
3248
- }, !0) : y(l.$slots, `${oe}`, {
3255
+ }, !0) : y(l.$slots, `${te}`, {
3249
3256
  key: 1,
3250
3257
  row: $,
3251
- column: z,
3258
+ column: H,
3252
3259
  $index: J
3253
3260
  }, () => [
3254
3261
  W("div", {
3255
- style: Fe([{ width: "100%", "text-overflow": "ellipsis", overflow: "hidden" }, I == null ? void 0 : I.style]),
3262
+ style: Se([{ width: "100%", "text-overflow": "ellipsis", overflow: "hidden" }, Y == null ? void 0 : Y.style]),
3256
3263
  innerHTML: $e(
3257
- I,
3258
- z.formatter($, z, $[oe], J)
3264
+ Y,
3265
+ H.formatter($, H, $[te], J)
3259
3266
  )
3260
- }, null, 12, Zl)
3267
+ }, null, 12, Jl)
3261
3268
  ], !0)
3262
3269
  ]),
3263
3270
  key: "2"
@@ -3267,12 +3274,12 @@ const Fl = {
3267
3274
  ]),
3268
3275
  _: 3
3269
3276
  }, 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({
3277
+ (Ye = (ve = (Q = e.value) == null ? void 0 : Q.table) == null ? void 0 : ve.page) != null && Ye.hidden ? me("", !0) : y(l.$slots, "page", { key: 0 }, () => [
3278
+ G(ze, x({
3272
3279
  "page-size": e.value.table.page.pageSize,
3273
- "onUpdate:pageSize": r[9] || (r[9] = (I) => e.value.table.page.pageSize = I),
3280
+ "onUpdate:pageSize": r[9] || (r[9] = (Y) => e.value.table.page.pageSize = Y),
3274
3281
  "current-page": e.value.table.page.currentPage,
3275
- "onUpdate:currentPage": r[10] || (r[10] = (I) => e.value.table.page.currentPage = I)
3282
+ "onUpdate:currentPage": r[10] || (r[10] = (Y) => e.value.table.page.currentPage = Y)
3276
3283
  }, e.value.table.page), {
3277
3284
  default: h(() => [
3278
3285
  y(l.$slots, "table-page", {}, void 0, !0)
@@ -3285,7 +3292,7 @@ const Fl = {
3285
3292
  ], 64);
3286
3293
  };
3287
3294
  }
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({
3295
+ }), ea = /* @__PURE__ */ Xe(Kl, [["__scopeId", "data-v-f987e370"]]), ta = { class: "g-tree-table" }, la = { class: "g-tree-container" }, aa = { class: "g-tree-table-container" }, oa = /* @__PURE__ */ Object.assign({
3289
3296
  name: "g-tree-table",
3290
3297
  inheritAttrs: !1
3291
3298
  }, {
@@ -3294,75 +3301,75 @@ const Fl = {
3294
3301
  modelValue: { required: !0 },
3295
3302
  modelModifiers: {}
3296
3303
  },
3297
- emits: /* @__PURE__ */ Pe(["load"], ["update:modelValue"]),
3304
+ emits: /* @__PURE__ */ Ne(["load"], ["update:modelValue"]),
3298
3305
  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) => {
3306
+ var B, U, se, re;
3307
+ const o = i, t = We(f, "modelValue"), e = kt(), d = le(
3308
+ typeof ((B = e == null ? void 0 : e.tree) == null ? void 0 : B.width) == "number" ? `${e.tree.width}px` : ((U = e == null ? void 0 : e.tree) == null ? void 0 : U.width) || "180px"
3309
+ ), k = le(((se = e == null ? void 0 : e.tree) == null ? void 0 : se.search) === void 0 ? !0 : (re = e == null ? void 0 : e.tree) == null ? void 0 : re.search), T = le({}), V = le(""), D = le(null), w = (K, ce) => {
3303
3310
  var he, pe;
3304
- if (!re) return !0;
3311
+ if (!K) return !0;
3305
3312
  const we = ((pe = (he = e.tree) == null ? void 0 : he.props) == null ? void 0 : pe.label) || "label";
3306
- return ue[we].includes(re);
3307
- }, H = (re, ue) => {
3308
- o("load", S.value, re, ue);
3309
- }, K = (re) => {
3310
- S.value = re, t.value.table.load();
3313
+ return ce[we].includes(K);
3314
+ }, z = (K, ce) => {
3315
+ o("load", T.value, K, ce);
3316
+ }, ee = (K) => {
3317
+ T.value = K, t.value.table.load();
3311
3318
  };
3312
- return Xt(V, (re) => {
3313
- D.value.filter(re);
3314
- }), (re, ue) => {
3315
- const we = B("el-input"), he = B("el-tree"), pe = B("g-table");
3316
- return u(), F("div", ea, [
3319
+ return Gt(V, (K) => {
3320
+ D.value.filter(K);
3321
+ }), (K, ce) => {
3322
+ const we = I("el-input"), he = I("el-tree"), pe = I("g-table");
3323
+ return u(), F("div", ta, [
3317
3324
  W("div", {
3318
3325
  class: "g-tree-left",
3319
- style: Fe({ width: d.value })
3326
+ style: Se({ width: d.value })
3320
3327
  }, [
3321
3328
  k.value ? (u(), C(we, {
3322
3329
  key: 0,
3323
3330
  modelValue: V.value,
3324
- "onUpdate:modelValue": ue[0] || (ue[0] = (de) => V.value = de),
3331
+ "onUpdate:modelValue": ce[0] || (ce[0] = (ie) => V.value = ie),
3325
3332
  style: { width: "100%", padding: "0 10px", "box-sizing": "border-box" },
3326
3333
  placeholder: "输入节点查询",
3327
3334
  clearable: ""
3328
3335
  }, null, 8, ["modelValue"])) : me("", !0),
3329
- W("div", ta, [
3336
+ W("div", la, [
3330
3337
  G(he, x({
3331
3338
  style: { width: d.value },
3332
3339
  "filter-node-method": w,
3333
3340
  "expand-on-click-node": !1,
3334
3341
  ref_key: "treeRef",
3335
3342
  ref: D,
3336
- onNodeClick: K
3337
- }, re.$attrs.tree), ce({
3338
- default: h(({ node: de, data: ne }) => [
3339
- y(re.$slots, "tree", {
3340
- node: de,
3341
- data: ne
3343
+ onNodeClick: ee
3344
+ }, K.$attrs.tree), fe({
3345
+ default: h(({ node: ie, data: ue }) => [
3346
+ y(K.$slots, "tree", {
3347
+ node: ie,
3348
+ data: ue
3342
3349
  }, () => [
3343
- W("span", null, be(de.label), 1)
3350
+ W("span", null, be(ie.label), 1)
3344
3351
  ], !0)
3345
3352
  ]),
3346
3353
  _: 2
3347
3354
  }, [
3348
- L(re.$slots, (de, ne, le) => ({
3349
- name: ne,
3355
+ L(K.$slots, (ie, ue, ae) => ({
3356
+ name: ue,
3350
3357
  fn: h(($e) => [
3351
- y(re.$slots, ne, { data: $e }, void 0, !0)
3358
+ y(K.$slots, ue, { data: $e }, void 0, !0)
3352
3359
  ])
3353
3360
  }))
3354
3361
  ]), 1040, ["style"])
3355
3362
  ])
3356
3363
  ], 4),
3357
- W("div", la, [
3364
+ W("div", aa, [
3358
3365
  G(pe, x({
3359
3366
  modelValue: t.value,
3360
- "onUpdate:modelValue": ue[1] || (ue[1] = (de) => t.value = de)
3361
- }, re.$attrs, { onLoad: H }), ce({ _: 2 }, [
3362
- L(re.$slots, (de, ne, le) => ({
3363
- name: ne,
3367
+ "onUpdate:modelValue": ce[1] || (ce[1] = (ie) => t.value = ie)
3368
+ }, K.$attrs, { onLoad: z }), fe({ _: 2 }, [
3369
+ L(K.$slots, (ie, ue, ae) => ({
3370
+ name: ue,
3364
3371
  fn: h(($e) => [
3365
- y(re.$slots, ne, { data: $e }, void 0, !0)
3372
+ y(K.$slots, ue, { data: $e }, void 0, !0)
3366
3373
  ])
3367
3374
  }))
3368
3375
  ]), 1040, ["modelValue"])
@@ -3370,14 +3377,14 @@ const Fl = {
3370
3377
  ]);
3371
3378
  };
3372
3379
  }
3373
- }), oa = /* @__PURE__ */ We(aa, [["__scopeId", "data-v-2d8b16ed"]]), ra = {
3380
+ }), ra = /* @__PURE__ */ Xe(oa, [["__scopeId", "data-v-2d8b16ed"]]), ua = {
3374
3381
  key: 0,
3375
3382
  class: "op-group"
3376
- }, ua = {
3383
+ }, na = {
3377
3384
  key: 1,
3378
3385
  class: "op-items",
3379
3386
  style: { width: "100%", height: "100%" }
3380
- }, na = ["title"], Mt = "100px", sa = /* @__PURE__ */ Object.assign({ name: "g-select-option" }, {
3387
+ }, sa = ["title"], Vt = "100px", ia = /* @__PURE__ */ Object.assign({ name: "g-select-option" }, {
3381
3388
  __name: "g-select-option",
3382
3389
  props: {
3383
3390
  columns: {
@@ -3399,53 +3406,53 @@ const Fl = {
3399
3406
  },
3400
3407
  setup(f) {
3401
3408
  const i = f;
3402
- return (o, t) => i.title ? (u(), F("div", ra, [
3409
+ return (o, t) => i.title ? (u(), F("div", ua, [
3403
3410
  (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" }),
3411
+ 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
3412
  key: e.key
3406
3413
  }, [
3407
3414
  y(o.$slots, `${f.t}-title-${e.key}`, { col: e }, () => [
3408
- Se(be(e.label), 1)
3415
+ Te(be(e.label), 1)
3409
3416
  ], !0)
3410
3417
  ], 4))), 128))
3411
- ])) : (u(), F("div", ua, [
3418
+ ])) : (u(), F("div", na, [
3412
3419
  (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 }),
3420
+ 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
3421
  key: e.key,
3415
3422
  title: f.data[e.key]
3416
3423
  }, [
3417
3424
  y(o.$slots, `${f.t}-option-${e.key}`, { col: e }, () => [
3418
- Se(be(f.data[e.key] ?? "-"), 1)
3425
+ Te(be(f.data[e.key] ?? "-"), 1)
3419
3426
  ], !0)
3420
- ], 12, na))), 128))
3427
+ ], 12, sa))), 128))
3421
3428
  ]));
3422
3429
  }
3423
- }), ia = /* @__PURE__ */ We(sa, [["__scopeId", "data-v-c0ac6b77"]]), da = Object.freeze({}), Ot = [Kl, gt, oa, ia];
3424
- let bt = {};
3425
- const Ea = {
3430
+ }), da = /* @__PURE__ */ Xe(ia, [["__scopeId", "data-v-c0ac6b77"]]), fa = Object.freeze({}), At = [ea, bt, ra, da];
3431
+ let $t = {};
3432
+ const _a = {
3426
3433
  install: (f, i = {}) => {
3427
- bt = Object.freeze({ ...da, ...i }), Ot.forEach((o) => {
3434
+ $t = Object.freeze({ ...fa, ...i }), At.forEach((o) => {
3428
3435
  f.component(o.name, o);
3429
- }), f.provide("options", bt), f.config.globalProperties.$openModal = $t;
3436
+ }), f.provide("options", $t), f.config.globalProperties.$openModal = wt;
3430
3437
  }
3431
- }, fa = (f) => ({ dialog: Yt, drawer: Ut })[f] || null, $t = (f = {}, i = "dialog") => {
3438
+ }, ca = (f) => ({ dialog: Ut, drawer: Rt })[f] || null, wt = (f = {}, i = "dialog") => {
3432
3439
  if (typeof document > "u") return () => {
3433
3440
  };
3434
3441
  const o = document.createElement("div");
3435
3442
  let t = () => {
3436
3443
  };
3437
- const e = fa(i);
3444
+ const e = ca(i);
3438
3445
  if (!e) return () => {
3439
3446
  };
3440
- const d = te(!0), k = Gt({
3447
+ const d = le(!0), k = Qt({
3441
3448
  setup() {
3442
3449
  return t = () => {
3443
3450
  d.value = !1, setTimeout(() => {
3444
3451
  k.unmount(), o.remove();
3445
3452
  }, 300);
3446
3453
  }, () => {
3447
- var S, V, D;
3448
- return Ie(e, {
3454
+ var T, V, D;
3455
+ return Ae(e, {
3449
3456
  modelValue: d.value,
3450
3457
  "onUpdate:modelValue": (w) => d.value = w,
3451
3458
  appendToBody: !0,
@@ -3456,19 +3463,19 @@ const Ea = {
3456
3463
  "close-on-click-modal": !1,
3457
3464
  ...f
3458
3465
  }, {
3459
- default: (S = f.slots) == null ? void 0 : S.default,
3466
+ default: (T = f.slots) == null ? void 0 : T.default,
3460
3467
  header: (V = f.slots) == null ? void 0 : V.header,
3461
3468
  footer: (D = f.slots) == null ? void 0 : D.footer
3462
3469
  });
3463
3470
  };
3464
3471
  },
3465
3472
  mounted: () => {
3466
- ct();
3473
+ mt();
3467
3474
  }
3468
3475
  });
3469
- return Ot.forEach((S) => {
3470
- k.component(S.name, S);
3471
- }), k.provide("options", bt), k.use(Bt, { locale: al }), document.body.appendChild(o), k.mount(o), t;
3476
+ return At.forEach((T) => {
3477
+ k.component(T.name, T);
3478
+ }), k.provide("options", $t), k.use(Yt, { locale: ol }), document.body.appendChild(o), k.mount(o), t;
3472
3479
  };
3473
3480
  function It(f, i = window.innerWidth) {
3474
3481
  if (typeof f == "number")
@@ -3486,13 +3493,13 @@ function It(f, i = window.innerWidth) {
3486
3493
  return i * parseFloat(f) / 100;
3487
3494
  }
3488
3495
  if (f.startsWith("calc(") && f.endsWith(")")) {
3489
- let d = function(S) {
3490
- if (/[0-9+\-*/().\s]+$/.test(S))
3491
- return new Function("return " + S)();
3496
+ let d = function(T) {
3497
+ if (/[0-9+\-*/().\s]+$/.test(T))
3498
+ return new Function("return " + T)();
3492
3499
  throw new Error("Invalid calc expression");
3493
3500
  };
3494
3501
  const e = f.slice(5, -1).trim();
3495
- return d(e.replace(/([0-9.]+)([a-z%]+)/g, (S, V, D) => It(V + D, i)));
3502
+ return d(e.replace(/([0-9.]+)([a-z%]+)/g, (T, V, D) => It(V + D, i)));
3496
3503
  }
3497
3504
  throw new Error("Unsupported unit in value: " + f);
3498
3505
  }
@@ -3502,25 +3509,25 @@ const xe = (...f) => {
3502
3509
  }), t);
3503
3510
  return f.forEach((t = {}) => o(i, t)), i;
3504
3511
  };
3505
- function Te(f, i = (o, t) => i(o, t)) {
3512
+ function qe(f, i = (o, t) => i(o, t)) {
3506
3513
  const o = {};
3507
3514
  for (const t in f)
3508
3515
  f.hasOwnProperty(t) && i(t, f[t]) && (o[t] = f[t]);
3509
3516
  return o;
3510
3517
  }
3511
- function ca(f, i, o = "value", t = "label", e = "children") {
3518
+ function ma(f, i, o = "value", t = "label", e = "children") {
3512
3519
  for (const d of f) {
3513
3520
  if (d[o] === i)
3514
3521
  return d[t];
3515
3522
  if (d[e] && d[e].length > 0) {
3516
- const k = ca(d[e], i, o, t, e);
3523
+ const k = ma(d[e], i, o, t, e);
3517
3524
  if (k)
3518
3525
  return k;
3519
3526
  }
3520
3527
  }
3521
3528
  return null;
3522
3529
  }
3523
- function wt(f) {
3530
+ function Et(f) {
3524
3531
  if (!f || isNaN(f)) return "零";
3525
3532
  const i = ["角", "分"], o = ["零", "壹", "贰", "叁", "肆", "伍", "陆", "柒", "捌", "玖"], t = [
3526
3533
  ["元", "万", "亿"],
@@ -3532,14 +3539,14 @@ function wt(f) {
3532
3539
  d += (o[Math.floor(f * 10 * Math.pow(10, k)) % 10] + i[k]).replace(/零./, "");
3533
3540
  d = d || "整", f = Math.floor(f);
3534
3541
  for (let k = 0; k < t[0].length && f > 0; k++) {
3535
- let S = "";
3542
+ let T = "";
3536
3543
  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);
3538
- d = S.replace(/(零.)*零$/, "").replace(/^$/, "零") + t[0][k] + d;
3544
+ T = o[f % 10] + t[1][V] + T, f = Math.floor(f / 10);
3545
+ d = T.replace(/(零.)*零$/, "").replace(/^$/, "零") + t[0][k] + d;
3539
3546
  }
3540
3547
  return e + d.replace(/(零.)*零元/, "元").replace(/(零.)+/g, "零").replace(/^整$/, "零元整");
3541
3548
  }
3542
- function ma(f) {
3549
+ function pa(f) {
3543
3550
  if (typeof f != "number" || isNaN(f) || !isFinite(f))
3544
3551
  return "0.00";
3545
3552
  const i = f.toFixed(2), [o, t] = i.split(".");
@@ -3573,15 +3580,15 @@ const ge = {
3573
3580
  PASSWORD: "password",
3574
3581
  TEXTAREA: "textarea",
3575
3582
  TEL: "tel"
3576
- }, ct = () => {
3577
- et(() => {
3583
+ }, mt = () => {
3584
+ tt(() => {
3578
3585
  const f = document.querySelector(".el-dialog");
3579
3586
  if (!f || f.querySelector(".dialog-resize-handle"))
3580
3587
  return;
3581
- const i = pa();
3582
- f.appendChild(i), va(f), ha(f, i);
3588
+ const i = va();
3589
+ f.appendChild(i), ha(f), ya(f, i);
3583
3590
  });
3584
- }, pa = () => {
3591
+ }, va = () => {
3585
3592
  const f = document.createElement("div");
3586
3593
  return Object.assign(f.style, {
3587
3594
  position: "absolute",
@@ -3593,7 +3600,7 @@ const ge = {
3593
3600
  cursor: "nwse-resize",
3594
3601
  zIndex: "999999999999"
3595
3602
  }), f.className = "dialog-resize-handle", f;
3596
- }, va = (f) => {
3603
+ }, ha = (f) => {
3597
3604
  Object.assign(f.style, {
3598
3605
  transition: "none",
3599
3606
  minWidth: "300px",
@@ -3601,28 +3608,28 @@ const ge = {
3601
3608
  resize: "none"
3602
3609
  // 防止与原生resize冲突
3603
3610
  });
3604
- }, ha = (f, i) => {
3611
+ }, ya = (f, i) => {
3605
3612
  let o = !1, t, e, d, k;
3606
- const S = (w) => {
3613
+ const T = (w) => {
3607
3614
  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
3615
  }, V = (w) => {
3609
3616
  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`;
3617
+ const z = Math.max(300, d + w.clientX - t), ee = Math.max(200, k + w.clientY - e);
3618
+ f.style.width = `${z}px`, f.style.height = `${ee}px`;
3612
3619
  }, D = () => {
3613
3620
  o = !1, document.removeEventListener("mousemove", V), document.removeEventListener("mouseup", D);
3614
3621
  };
3615
- i.addEventListener("mousedown", S);
3622
+ i.addEventListener("mousedown", T);
3616
3623
  };
3617
3624
  export {
3618
3625
  ge as CT,
3619
- ct as bindResize,
3626
+ mt as bindResize,
3620
3627
  It as convertToPx,
3621
- Ea as default,
3622
- Te as filterObject,
3623
- ca as findTreeLabelByValue,
3624
- ma as formatAmount,
3628
+ _a as default,
3629
+ qe as filterObject,
3630
+ ma as findTreeLabelByValue,
3631
+ pa as formatAmount,
3625
3632
  xe as mergeObjects,
3626
- wt as moneyToChinese,
3627
- $t as openModal
3633
+ Et as moneyToChinese,
3634
+ wt as openModal
3628
3635
  };