vue-2024-ui 0.0.80 → 0.0.82

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,6 +1,6 @@
1
- import _t, { ElForm as ze, ElButtonGroup as Ge, ElButton as _e, ElPopover as Ke, ElMessage as Fe, ElMessageBox as vt, ElDialog as kt, ElDrawer as Ct } from "element-plus";
2
- import { mergeModels as Be, useModel as Ie, ref as ve, nextTick as ht, onMounted as Ne, resolveComponent as R, openBlock as n, createElementBlock as q, unref as o, createBlock as O, mergeProps as S, withCtx as h, renderSlot as p, Fragment as G, renderList as j, createTextVNode as we, toDisplayString as Ee, createSlots as ce, createVNode as X, createCommentVNode as be, normalizeProps as Qe, createElementVNode as Z, useSlots as yt, inject as rt, useAttrs as nt, onUnmounted as Dt, computed as Ye, normalizeStyle as Ae, withModifiers as ct, guardReactiveProps as ft, resolveDynamicComponent as xe, Transition as Vt, withDirectives as Mt, vShow as Ft, h as qe, onBeforeUnmount as Tt, normalizeClass as gt, watchEffect as St, watch as qt, createApp as Ot } from "vue";
3
- import { FullScreen as At, Remove as xt } from "@element-plus/icons-vue";
1
+ import _t, { ElForm as We, ElButtonGroup as Ge, ElButton as _e, ElPopover as Ke, ElMessage as Te, ElMessageBox as vt, ElDialog as kt, ElDrawer as Ct } from "element-plus";
2
+ import { mergeModels as Be, useModel as Ie, ref as ye, nextTick as yt, onMounted as Ne, resolveComponent as L, openBlock as n, createElementBlock as x, unref as o, createBlock as q, mergeProps as S, withCtx as y, renderSlot as p, Fragment as P, renderList as Y, createTextVNode as we, toDisplayString as Ee, createSlots as fe, createVNode as Z, createCommentVNode as $e, normalizeProps as Qe, createElementVNode as J, useSlots as ht, inject as at, useAttrs as nt, onUnmounted as Dt, computed as Ye, normalizeStyle as Oe, withModifiers as ct, guardReactiveProps as ft, resolveDynamicComponent as Ae, Transition as Vt, withDirectives as Mt, vShow as Tt, h as qe, onBeforeUnmount as Ft, normalizeClass as gt, watchEffect as St, watch as qt, createApp as xt } from "vue";
3
+ import { FullScreen as Ot, Remove as At } from "@element-plus/icons-vue";
4
4
  import bt from "sortablejs";
5
5
  import { Dexie as Bt } from "dexie";
6
6
  var It = {
@@ -189,55 +189,55 @@ var $t = { exports: {} };
189
189
  (function(t, e) {
190
190
  f.exports = e();
191
191
  })(Yt, function() {
192
- var t = 1e3, e = 6e4, r = 36e5, d = "millisecond", Y = "second", F = "minute", T = "hour", E = "day", D = "week", N = "month", te = "quarter", L = "year", V = "date", b = "Invalid Date", w = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, ae = /\[([^\]]+)]|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, K = { 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(x) {
193
- var $ = ["th", "st", "nd", "rd"], g = x % 100;
194
- return "[" + x + ($[(g - 20) % 10] || $[g] || $[0]) + "]";
195
- } }, ne = function(x, $, g) {
196
- var _ = String(x);
197
- return !_ || _.length >= $ ? x : "" + Array($ + 1 - _.length).join(g) + x;
198
- }, ie = { s: ne, z: function(x) {
199
- var $ = -x.utcOffset(), g = Math.abs($), _ = Math.floor(g / 60), s = g % 60;
200
- return ($ <= 0 ? "+" : "-") + ne(_, 2, "0") + ":" + ne(s, 2, "0");
201
- }, m: function x($, g) {
202
- if ($.date() < g.date()) return -x(g, $);
203
- var _ = 12 * (g.year() - $.year()) + (g.month() - $.month()), s = $.clone().add(_, N), i = g - s < 0, A = $.clone().add(_ + (i ? -1 : 1), N);
192
+ var t = 1e3, e = 6e4, a = 36e5, d = "millisecond", U = "second", T = "minute", F = "hour", E = "day", D = "week", z = "month", te = "quarter", R = "year", V = "date", b = "Invalid Date", w = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, ae = /\[([^\]]+)]|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, K = { 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(B) {
193
+ var $ = ["th", "st", "nd", "rd"], g = B % 100;
194
+ return "[" + B + ($[(g - 20) % 10] || $[g] || $[0]) + "]";
195
+ } }, ue = function(B, $, g) {
196
+ var _ = String(B);
197
+ return !_ || _.length >= $ ? B : "" + Array($ + 1 - _.length).join(g) + B;
198
+ }, de = { s: ue, z: function(B) {
199
+ var $ = -B.utcOffset(), g = Math.abs($), _ = Math.floor(g / 60), s = g % 60;
200
+ return ($ <= 0 ? "+" : "-") + ue(_, 2, "0") + ":" + ue(s, 2, "0");
201
+ }, m: function B($, g) {
202
+ if ($.date() < g.date()) return -B(g, $);
203
+ var _ = 12 * (g.year() - $.year()) + (g.month() - $.month()), s = $.clone().add(_, z), i = g - s < 0, A = $.clone().add(_ + (i ? -1 : 1), z);
204
204
  return +(-(_ + (g - s) / (i ? s - A : A - s)) || 0);
205
- }, a: function(x) {
206
- return x < 0 ? Math.ceil(x) || 0 : Math.floor(x);
207
- }, p: function(x) {
208
- return { M: N, y: L, w: D, d: E, D: V, h: T, m: F, s: Y, ms: d, Q: te }[x] || String(x || "").toLowerCase().replace(/s$/, "");
209
- }, u: function(x) {
210
- return x === void 0;
211
- } }, fe = "en", pe = {};
212
- pe[fe] = K;
213
- var m = "$isDayjsObject", M = function(x) {
214
- return x instanceof ee || !(!x || !x[m]);
215
- }, C = function x($, g, _) {
205
+ }, a: function(B) {
206
+ return B < 0 ? Math.ceil(B) || 0 : Math.floor(B);
207
+ }, p: function(B) {
208
+ return { M: z, y: R, w: D, d: E, D: V, h: F, m: T, s: U, ms: d, Q: te }[B] || String(B || "").toLowerCase().replace(/s$/, "");
209
+ }, u: function(B) {
210
+ return B === void 0;
211
+ } }, me = "en", pe = {};
212
+ pe[me] = K;
213
+ var m = "$isDayjsObject", M = function(B) {
214
+ return B instanceof ee || !(!B || !B[m]);
215
+ }, C = function B($, g, _) {
216
216
  var s;
217
- if (!$) return fe;
217
+ if (!$) return me;
218
218
  if (typeof $ == "string") {
219
219
  var i = $.toLowerCase();
220
220
  pe[i] && (s = i), g && (pe[i] = g, s = i);
221
221
  var A = $.split("-");
222
- if (!s && A.length > 1) return x(A[0]);
222
+ if (!s && A.length > 1) return B(A[0]);
223
223
  } else {
224
224
  var H = $.name;
225
225
  pe[H] = $, s = H;
226
226
  }
227
- return !_ && s && (fe = s), s || !_ && fe;
228
- }, y = function(x, $) {
229
- if (M(x)) return x.clone();
227
+ return !_ && s && (me = s), s || !_ && me;
228
+ }, h = function(B, $) {
229
+ if (M(B)) return B.clone();
230
230
  var g = typeof $ == "object" ? $ : {};
231
- return g.date = x, g.args = arguments, new ee(g);
232
- }, I = ie;
233
- I.l = C, I.i = M, I.w = function(x, $) {
234
- return y(x, { locale: $.$L, utc: $.$u, x: $.$x, $offset: $.$offset });
231
+ return g.date = B, g.args = arguments, new ee(g);
232
+ }, I = de;
233
+ I.l = C, I.i = M, I.w = function(B, $) {
234
+ return h(B, { locale: $.$L, utc: $.$u, x: $.$x, $offset: $.$offset });
235
235
  };
236
236
  var ee = function() {
237
- function x(g) {
237
+ function B(g) {
238
238
  this.$L = C(g.locale, null, !0), this.parse(g), this.$x = this.$x || g.x || {}, this[m] = !0;
239
239
  }
240
- var $ = x.prototype;
240
+ var $ = B.prototype;
241
241
  return $.parse = function(g) {
242
242
  this.$d = function(_) {
243
243
  var s = _.date, i = _.utc;
@@ -247,8 +247,8 @@ var $t = { exports: {} };
247
247
  if (typeof s == "string" && !/Z$/i.test(s)) {
248
248
  var A = s.match(w);
249
249
  if (A) {
250
- var H = A[2] - 1 || 0, J = (A[7] || "0").substring(0, 3);
251
- return i ? new Date(Date.UTC(A[1], H, A[3] || 1, A[4] || 0, A[5] || 0, A[6] || 0, J)) : new Date(A[1], H, A[3] || 1, A[4] || 0, A[5] || 0, A[6] || 0, J);
250
+ var H = A[2] - 1 || 0, X = (A[7] || "0").substring(0, 3);
251
+ return i ? new Date(Date.UTC(A[1], H, A[3] || 1, A[4] || 0, A[5] || 0, A[6] || 0, X)) : new Date(A[1], H, A[3] || 1, A[4] || 0, A[5] || 0, A[6] || 0, X);
252
252
  }
253
253
  }
254
254
  return new Date(s);
@@ -261,12 +261,12 @@ var $t = { exports: {} };
261
261
  }, $.isValid = function() {
262
262
  return this.$d.toString() !== b;
263
263
  }, $.isSame = function(g, _) {
264
- var s = y(g);
264
+ var s = h(g);
265
265
  return this.startOf(_) <= s && s <= this.endOf(_);
266
266
  }, $.isAfter = function(g, _) {
267
- return y(g) < this.startOf(_);
267
+ return h(g) < this.startOf(_);
268
268
  }, $.isBefore = function(g, _) {
269
- return this.endOf(_) < y(g);
269
+ return this.endOf(_) < h(g);
270
270
  }, $.$g = function(g, _, s) {
271
271
  return I.u(g) ? this[_] : this.set(s, g);
272
272
  }, $.unix = function() {
@@ -275,39 +275,39 @@ var $t = { exports: {} };
275
275
  return this.$d.getTime();
276
276
  }, $.startOf = function(g, _) {
277
277
  var s = this, i = !!I.u(_) || _, A = I.p(g), H = function(De, u) {
278
- var P = I.w(s.$u ? Date.UTC(s.$y, u, De) : new Date(s.$y, u, De), s);
279
- return i ? P : P.endOf(E);
280
- }, J = function(De, u) {
278
+ var N = I.w(s.$u ? Date.UTC(s.$y, u, De) : new Date(s.$y, u, De), s);
279
+ return i ? N : N.endOf(E);
280
+ }, X = function(De, u) {
281
281
  return I.w(s.toDate()[De].apply(s.toDate("s"), (i ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(u)), s);
282
- }, ue = this.$W, de = this.$M, he = this.$D, $e = "set" + (this.$u ? "UTC" : "");
282
+ }, se = this.$W, ce = this.$M, he = this.$D, ve = "set" + (this.$u ? "UTC" : "");
283
283
  switch (A) {
284
- case L:
284
+ case R:
285
285
  return i ? H(1, 0) : H(31, 11);
286
- case N:
287
- return i ? H(1, de) : H(0, de + 1);
286
+ case z:
287
+ return i ? H(1, ce) : H(0, ce + 1);
288
288
  case D:
289
- var Ce = this.$locale().weekStart || 0, Te = (ue < Ce ? ue + 7 : ue) - Ce;
290
- return H(i ? he - Te : he + (6 - Te), de);
289
+ var Ce = this.$locale().weekStart || 0, Fe = (se < Ce ? se + 7 : se) - Ce;
290
+ return H(i ? he - Fe : he + (6 - Fe), ce);
291
291
  case E:
292
292
  case V:
293
- return J($e + "Hours", 0);
294
- case T:
295
- return J($e + "Minutes", 1);
293
+ return X(ve + "Hours", 0);
296
294
  case F:
297
- return J($e + "Seconds", 2);
298
- case Y:
299
- return J($e + "Milliseconds", 3);
295
+ return X(ve + "Minutes", 1);
296
+ case T:
297
+ return X(ve + "Seconds", 2);
298
+ case U:
299
+ return X(ve + "Milliseconds", 3);
300
300
  default:
301
301
  return this.clone();
302
302
  }
303
303
  }, $.endOf = function(g) {
304
304
  return this.startOf(g, !1);
305
305
  }, $.$set = function(g, _) {
306
- var s, i = I.p(g), A = "set" + (this.$u ? "UTC" : ""), H = (s = {}, s[E] = A + "Date", s[V] = A + "Date", s[N] = A + "Month", s[L] = A + "FullYear", s[T] = A + "Hours", s[F] = A + "Minutes", s[Y] = A + "Seconds", s[d] = A + "Milliseconds", s)[i], J = i === E ? this.$D + (_ - this.$W) : _;
307
- if (i === N || i === L) {
308
- var ue = this.clone().set(V, 1);
309
- ue.$d[H](J), ue.init(), this.$d = ue.set(V, Math.min(this.$D, ue.daysInMonth())).$d;
310
- } else H && this.$d[H](J);
306
+ var s, i = I.p(g), A = "set" + (this.$u ? "UTC" : ""), H = (s = {}, s[E] = A + "Date", s[V] = A + "Date", s[z] = A + "Month", s[R] = A + "FullYear", s[F] = A + "Hours", s[T] = A + "Minutes", s[U] = A + "Seconds", s[d] = A + "Milliseconds", s)[i], X = i === E ? this.$D + (_ - this.$W) : _;
307
+ if (i === z || i === R) {
308
+ var se = this.clone().set(V, 1);
309
+ se.$d[H](X), se.init(), this.$d = se.set(V, Math.min(this.$D, se.daysInMonth())).$d;
310
+ } else H && this.$d[H](X);
311
311
  return this.init(), this;
312
312
  }, $.set = function(g, _) {
313
313
  return this.clone().$set(g, _);
@@ -316,44 +316,44 @@ var $t = { exports: {} };
316
316
  }, $.add = function(g, _) {
317
317
  var s, i = this;
318
318
  g = Number(g);
319
- var A = I.p(_), H = function(de) {
320
- var he = y(i);
321
- return I.w(he.date(he.date() + Math.round(de * g)), i);
319
+ var A = I.p(_), H = function(ce) {
320
+ var he = h(i);
321
+ return I.w(he.date(he.date() + Math.round(ce * g)), i);
322
322
  };
323
- if (A === N) return this.set(N, this.$M + g);
324
- if (A === L) return this.set(L, this.$y + g);
323
+ if (A === z) return this.set(z, this.$M + g);
324
+ if (A === R) return this.set(R, this.$y + g);
325
325
  if (A === E) return H(1);
326
326
  if (A === D) return H(7);
327
- var J = (s = {}, s[F] = e, s[T] = r, s[Y] = t, s)[A] || 1, ue = this.$d.getTime() + g * J;
328
- return I.w(ue, this);
327
+ var X = (s = {}, s[T] = e, s[F] = a, s[U] = t, s)[A] || 1, se = this.$d.getTime() + g * X;
328
+ return I.w(se, this);
329
329
  }, $.subtract = function(g, _) {
330
330
  return this.add(-1 * g, _);
331
331
  }, $.format = function(g) {
332
332
  var _ = this, s = this.$locale();
333
333
  if (!this.isValid()) return s.invalidDate || b;
334
- var i = g || "YYYY-MM-DDTHH:mm:ssZ", A = I.z(this), H = this.$H, J = this.$m, ue = this.$M, de = s.weekdays, he = s.months, $e = s.meridiem, Ce = function(u, P, se, Ve) {
335
- return u && (u[P] || u(_, i)) || se[P].slice(0, Ve);
336
- }, Te = function(u) {
334
+ var i = g || "YYYY-MM-DDTHH:mm:ssZ", A = I.z(this), H = this.$H, X = this.$m, se = this.$M, ce = s.weekdays, he = s.months, ve = s.meridiem, Ce = function(u, N, ie, Ve) {
335
+ return u && (u[N] || u(_, i)) || ie[N].slice(0, Ve);
336
+ }, Fe = function(u) {
337
337
  return I.s(H % 12 || 12, u, "0");
338
- }, De = $e || function(u, P, se) {
338
+ }, De = ve || function(u, N, ie) {
339
339
  var Ve = u < 12 ? "AM" : "PM";
340
- return se ? Ve.toLowerCase() : Ve;
340
+ return ie ? Ve.toLowerCase() : Ve;
341
341
  };
342
- return i.replace(ae, function(u, P) {
343
- return P || function(se) {
344
- switch (se) {
342
+ return i.replace(ae, function(u, N) {
343
+ return N || function(ie) {
344
+ switch (ie) {
345
345
  case "YY":
346
346
  return String(_.$y).slice(-2);
347
347
  case "YYYY":
348
348
  return I.s(_.$y, 4, "0");
349
349
  case "M":
350
- return ue + 1;
350
+ return se + 1;
351
351
  case "MM":
352
- return I.s(ue + 1, 2, "0");
352
+ return I.s(se + 1, 2, "0");
353
353
  case "MMM":
354
- return Ce(s.monthsShort, ue, he, 3);
354
+ return Ce(s.monthsShort, se, he, 3);
355
355
  case "MMMM":
356
- return Ce(he, ue);
356
+ return Ce(he, se);
357
357
  case "D":
358
358
  return _.$D;
359
359
  case "DD":
@@ -361,27 +361,27 @@ var $t = { exports: {} };
361
361
  case "d":
362
362
  return String(_.$W);
363
363
  case "dd":
364
- return Ce(s.weekdaysMin, _.$W, de, 2);
364
+ return Ce(s.weekdaysMin, _.$W, ce, 2);
365
365
  case "ddd":
366
- return Ce(s.weekdaysShort, _.$W, de, 3);
366
+ return Ce(s.weekdaysShort, _.$W, ce, 3);
367
367
  case "dddd":
368
- return de[_.$W];
368
+ return ce[_.$W];
369
369
  case "H":
370
370
  return String(H);
371
371
  case "HH":
372
372
  return I.s(H, 2, "0");
373
373
  case "h":
374
- return Te(1);
374
+ return Fe(1);
375
375
  case "hh":
376
- return Te(2);
376
+ return Fe(2);
377
377
  case "a":
378
- return De(H, J, !0);
378
+ return De(H, X, !0);
379
379
  case "A":
380
- return De(H, J, !1);
380
+ return De(H, X, !1);
381
381
  case "m":
382
- return String(J);
382
+ return String(X);
383
383
  case "mm":
384
- return I.s(J, 2, "0");
384
+ return I.s(X, 2, "0");
385
385
  case "s":
386
386
  return String(_.$s);
387
387
  case "ss":
@@ -397,40 +397,40 @@ var $t = { exports: {} };
397
397
  }, $.utcOffset = function() {
398
398
  return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
399
399
  }, $.diff = function(g, _, s) {
400
- var i, A = this, H = I.p(_), J = y(g), ue = (J.utcOffset() - this.utcOffset()) * e, de = this - J, he = function() {
401
- return I.m(A, J);
400
+ var i, A = this, H = I.p(_), X = h(g), se = (X.utcOffset() - this.utcOffset()) * e, ce = this - X, he = function() {
401
+ return I.m(A, X);
402
402
  };
403
403
  switch (H) {
404
- case L:
404
+ case R:
405
405
  i = he() / 12;
406
406
  break;
407
- case N:
407
+ case z:
408
408
  i = he();
409
409
  break;
410
410
  case te:
411
411
  i = he() / 3;
412
412
  break;
413
413
  case D:
414
- i = (de - ue) / 6048e5;
414
+ i = (ce - se) / 6048e5;
415
415
  break;
416
416
  case E:
417
- i = (de - ue) / 864e5;
418
- break;
419
- case T:
420
- i = de / r;
417
+ i = (ce - se) / 864e5;
421
418
  break;
422
419
  case F:
423
- i = de / e;
420
+ i = ce / a;
421
+ break;
422
+ case T:
423
+ i = ce / e;
424
424
  break;
425
- case Y:
426
- i = de / t;
425
+ case U:
426
+ i = ce / t;
427
427
  break;
428
428
  default:
429
- i = de;
429
+ i = ce;
430
430
  }
431
431
  return s ? i : I.a(i);
432
432
  }, $.daysInMonth = function() {
433
- return this.endOf(N).$D;
433
+ return this.endOf(z).$D;
434
434
  }, $.$locale = function() {
435
435
  return pe[this.$L];
436
436
  }, $.locale = function(g, _) {
@@ -447,27 +447,27 @@ var $t = { exports: {} };
447
447
  return this.$d.toISOString();
448
448
  }, $.toString = function() {
449
449
  return this.$d.toUTCString();
450
- }, x;
451
- }(), re = ee.prototype;
452
- return y.prototype = re, [["$ms", d], ["$s", Y], ["$m", F], ["$H", T], ["$W", E], ["$M", N], ["$y", L], ["$D", V]].forEach(function(x) {
453
- re[x[1]] = function($) {
454
- return this.$g($, x[0], x[1]);
450
+ }, B;
451
+ }(), ne = ee.prototype;
452
+ return h.prototype = ne, [["$ms", d], ["$s", U], ["$m", T], ["$H", F], ["$W", E], ["$M", z], ["$y", R], ["$D", V]].forEach(function(B) {
453
+ ne[B[1]] = function($) {
454
+ return this.$g($, B[0], B[1]);
455
455
  };
456
- }), y.extend = function(x, $) {
457
- return x.$i || (x($, ee, y), x.$i = !0), y;
458
- }, y.locale = C, y.isDayjs = M, y.unix = function(x) {
459
- return y(1e3 * x);
460
- }, y.en = pe[fe], y.Ls = pe, y.p = {}, y;
456
+ }), h.extend = function(B, $) {
457
+ return B.$i || (B($, ee, h), B.$i = !0), h;
458
+ }, h.locale = C, h.isDayjs = M, h.unix = function(B) {
459
+ return h(1e3 * B);
460
+ }, h.en = pe[me], h.Ls = pe, h.p = {}, h;
461
461
  });
462
462
  })($t);
463
463
  var jt = $t.exports;
464
- const et = /* @__PURE__ */ Ut(jt), Rt = {
464
+ const et = /* @__PURE__ */ Ut(jt), Lt = {
465
465
  style: { display: "flex", width: "100%" },
466
466
  class: "g-ctrl-container"
467
- }, Lt = {
467
+ }, Rt = {
468
468
  key: 19,
469
469
  style: { position: "relative" }
470
- }, Ht = ["title"], Nt = { key: 20 }, Pt = { key: 21 }, Wt = ["innerHTML"], zt = ["innerHTML"], Xe = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
470
+ }, Ht = ["title"], Nt = { key: 20 }, Pt = { key: 21 }, zt = ["innerHTML"], Wt = ["innerHTML"], Xe = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
471
471
  __name: "g-ctrl",
472
472
  props: /* @__PURE__ */ Be(["t", "ctrlKey", "item", "model", "ctrlType", "formInfo"], {
473
473
  modelValue: { required: !0 },
@@ -475,7 +475,7 @@ const et = /* @__PURE__ */ Ut(jt), Rt = {
475
475
  }),
476
476
  emits: ["update:modelValue"],
477
477
  setup(f) {
478
- const c = Ie(f, "modelValue"), t = f, e = t.item || {}, r = t.ctrlKey, d = t.ctrlType, Y = t.model, F = ve([]), T = ve([]), E = () => Object.keys(yt()).filter((b) => b.startsWith(`${t.t}-${r}-`)).map((b) => b.replace(`${t.t}-${r}-`, "")), D = (b) => [
478
+ const c = Ie(f, "modelValue"), t = f, e = t.item || {}, a = t.ctrlKey, d = t.ctrlType, U = t.model, T = ye([]), F = ye([]), E = () => Object.keys(ht()).filter((b) => b.startsWith(`${t.t}-${a}-`)).map((b) => b.replace(`${t.t}-${a}-`, "")), D = (b) => [
479
479
  "year",
480
480
  "years",
481
481
  "month",
@@ -488,7 +488,7 @@ const et = /* @__PURE__ */ Ut(jt), Rt = {
488
488
  "daterange",
489
489
  "monthrange",
490
490
  "yearrange"
491
- ].includes(b), N = (b) => ({
491
+ ].includes(b), z = (b) => ({
492
492
  year: "YYYY",
493
493
  years: "YYYY",
494
494
  month: "YYYY-MM",
@@ -502,28 +502,28 @@ const et = /* @__PURE__ */ Ut(jt), Rt = {
502
502
  daterange: "YYYY-MM-DD",
503
503
  monthrange: "YYYY-MM",
504
504
  yearrange: "YYYY"
505
- })[b] || "YYYY-MM-DD", te = ve({
505
+ })[b] || "YYYY-MM-DD", te = ye({
506
506
  filterable: !0,
507
507
  remote: !!(e && e["remote-method"]),
508
508
  ...e
509
- }), L = ve((b) => {
509
+ }), R = ye((b) => {
510
510
  e["remote-method"](b, (w) => {
511
- ht(() => {
512
- T.value = w;
511
+ yt(() => {
512
+ F.value = w;
513
513
  });
514
514
  });
515
515
  }), V = async (b = "options") => {
516
516
  try {
517
517
  const w = await (e == null ? void 0 : e.getDicts(t.formInfo));
518
518
  if (typeof w == "string")
519
- T.value = [{ label: w, value: c.value }];
519
+ F.value = [{ label: w, value: c.value }];
520
520
  else {
521
- const ae = w == null ? void 0 : w.map((K, ne) => ({
521
+ const ae = w == null ? void 0 : w.map((K, ue) => ({
522
522
  ...K,
523
- value: K.value ?? K.label ?? ne,
523
+ value: K.value ?? K.label ?? ue,
524
524
  label: K.label || "未知选项"
525
525
  }));
526
- T.value = ae || [];
526
+ F.value = ae || [];
527
527
  }
528
528
  } catch (w) {
529
529
  throw console.error("获取选项失败:", w), w;
@@ -531,76 +531,76 @@ const et = /* @__PURE__ */ Ut(jt), Rt = {
531
531
  };
532
532
  return Ne(async () => {
533
533
  var ae, K;
534
- e && e["remote-method"] && (te.value["remote-method"] = L), (K = (ae = Y[r]) == null ? void 0 : ae.options) != null && K.length && (T.value = Y[r].options);
535
- const b = (ne, ie = "options", fe = Y[r]) => {
536
- typeof e.getDicts == "function" && V(ie).catch((pe) => {
537
- console.error(`Failed to load ${ie} for ${ne}:`, pe);
534
+ e && e["remote-method"] && (te.value["remote-method"] = R), (K = (ae = U[a]) == null ? void 0 : ae.options) != null && K.length && (F.value = U[a].options);
535
+ const b = (ue, de = "options", me = U[a]) => {
536
+ typeof e.getDicts == "function" && V(de).catch((pe) => {
537
+ console.error(`Failed to load ${de} for ${ue}:`, pe);
538
538
  });
539
539
  };
540
- ["radio", "radio-button", "checkbox-group", "checkbox-group-button", "select", "cascader"].includes(d) && b(d), d === ge.TREESELECT && await (async () => {
540
+ ["radio", "radio-button", "checkbox-group", "checkbox-group-button", "select", "cascader"].includes(d) && b(d), d === be.TREESELECT && await (async () => {
541
541
  try {
542
- typeof e.getDicts == "function" ? F.value = await e.getDicts(t.formInfo) : F.value = T.value;
543
- } catch (ie) {
544
- console.error("Failed to load data for tree-select:", ie);
542
+ typeof e.getDicts == "function" ? T.value = await e.getDicts(t.formInfo) : T.value = F.value;
543
+ } catch (de) {
544
+ console.error("Failed to load data for tree-select:", de);
545
545
  }
546
546
  })();
547
547
  }), (b, w) => {
548
- var Ce, Te, De;
549
- const ae = R("el-radio"), K = R("el-radio-group"), ne = R("el-radio-button"), ie = R("el-checkbox"), fe = R("el-checkbox-group"), pe = R("el-checkbox-button"), m = R("g-select-option"), M = R("el-option"), C = R("el-select"), y = R("el-tree-select"), I = R("el-time-picker"), ee = R("el-time-select"), re = R("el-date-picker"), x = R("el-color-picker"), $ = R("el-rate"), g = R("el-slider"), _ = R("el-switch"), s = R("el-transfer"), i = R("el-cascader"), A = R("el-button"), H = R("el-upload"), J = R("el-autocomplete"), ue = R("el-input-number"), de = R("el-input"), he = R("el-link"), $e = R("el-tag");
550
- return n(), q("div", Rt, [
551
- o(d) == o(ge).RADIO ? (n(), O(K, S({
548
+ var Ce, Fe, De;
549
+ const ae = L("el-radio"), K = L("el-radio-group"), ue = L("el-radio-button"), de = L("el-checkbox"), me = L("el-checkbox-group"), pe = L("el-checkbox-button"), m = L("g-select-option"), M = L("el-option"), C = L("el-select"), h = L("el-tree-select"), I = L("el-time-picker"), ee = L("el-time-select"), ne = L("el-date-picker"), B = L("el-color-picker"), $ = L("el-rate"), g = L("el-slider"), _ = L("el-switch"), s = L("el-transfer"), i = L("el-cascader"), A = L("el-button"), H = L("el-upload"), X = L("el-autocomplete"), se = L("el-input-number"), ce = L("el-input"), he = L("el-link"), ve = L("el-tag");
550
+ return n(), x("div", Lt, [
551
+ o(d) == o(be).RADIO ? (n(), q(K, S({
552
552
  key: 0,
553
553
  modelValue: c.value,
554
554
  "onUpdate:modelValue": w[0] || (w[0] = (u) => c.value = u)
555
555
  }, o(e)), {
556
- default: h(() => [
557
- p(b.$slots, `${t.t}-${o(r)}`, { data: o(e) }, () => [
558
- (n(!0), q(G, null, j(T.value, (u) => (n(), O(ae, S({ ref_for: !0 }, u), {
559
- default: h(() => [
560
- p(b.$slots, `${t.t}-${o(r)}-options`, { option: u })
556
+ default: y(() => [
557
+ p(b.$slots, `${t.t}-${o(a)}`, { data: o(e) }, () => [
558
+ (n(!0), x(P, null, Y(F.value, (u) => (n(), q(ae, S({ ref_for: !0 }, u), {
559
+ default: y(() => [
560
+ p(b.$slots, `${t.t}-${o(a)}-options`, { option: u })
561
561
  ]),
562
562
  _: 2
563
563
  }, 1040))), 256))
564
564
  ])
565
565
  ]),
566
566
  _: 3
567
- }, 16, ["modelValue"])) : o(d) == o(ge).RADIOBUTTON ? (n(), O(K, S({
567
+ }, 16, ["modelValue"])) : o(d) == o(be).RADIOBUTTON ? (n(), q(K, S({
568
568
  key: 1,
569
569
  modelValue: c.value,
570
570
  "onUpdate:modelValue": w[1] || (w[1] = (u) => c.value = u)
571
571
  }, o(e)), {
572
- default: h(() => [
573
- p(b.$slots, `${t.t}-${o(r)}`, { data: o(e) }, () => [
574
- (n(!0), q(G, null, j(T.value, (u) => (n(), O(ne, S({ ref_for: !0 }, u), {
575
- default: h(() => [
576
- p(b.$slots, `${t.t}-${o(r)}-options`, { option: u })
572
+ default: y(() => [
573
+ p(b.$slots, `${t.t}-${o(a)}`, { data: o(e) }, () => [
574
+ (n(!0), x(P, null, Y(F.value, (u) => (n(), q(ue, S({ ref_for: !0 }, u), {
575
+ default: y(() => [
576
+ p(b.$slots, `${t.t}-${o(a)}-options`, { option: u })
577
577
  ]),
578
578
  _: 2
579
579
  }, 1040))), 256))
580
580
  ])
581
581
  ]),
582
582
  _: 3
583
- }, 16, ["modelValue"])) : o(d) == o(ge).CHECKBOX ? (n(), O(ie, S({
583
+ }, 16, ["modelValue"])) : o(d) == o(be).CHECKBOX ? (n(), q(de, S({
584
584
  key: 2,
585
585
  modelValue: c.value,
586
586
  "onUpdate:modelValue": w[2] || (w[2] = (u) => c.value = u)
587
587
  }, o(e)), {
588
- default: h(() => [
589
- p(b.$slots, `${t.t}-${o(r)}`, { data: o(e) }, () => [
588
+ default: y(() => [
589
+ p(b.$slots, `${t.t}-${o(a)}`, { data: o(e) }, () => [
590
590
  w[20] || (w[20] = we(Ee(" ")))
591
591
  ])
592
592
  ]),
593
593
  _: 3
594
- }, 16, ["modelValue"])) : o(d) == o(ge).CHECKBOXGROUP ? (n(), O(fe, S({
594
+ }, 16, ["modelValue"])) : o(d) == o(be).CHECKBOXGROUP ? (n(), q(me, S({
595
595
  key: 3,
596
596
  modelValue: c.value,
597
597
  "onUpdate:modelValue": w[3] || (w[3] = (u) => c.value = u)
598
598
  }, o(e)), {
599
- default: h(() => [
600
- p(b.$slots, `${t.t}-${o(r)}`, { data: o(e) }, () => [
601
- (n(!0), q(G, null, j(T.value, (u) => (n(), O(ie, S({ ref_for: !0 }, u), {
602
- default: h(() => [
603
- p(b.$slots, `${t.t}-${o(r)}-options`, { option: u }, () => [
599
+ default: y(() => [
600
+ p(b.$slots, `${t.t}-${o(a)}`, { data: o(e) }, () => [
601
+ (n(!0), x(P, null, Y(F.value, (u) => (n(), q(de, S({ ref_for: !0 }, u), {
602
+ default: y(() => [
603
+ p(b.$slots, `${t.t}-${o(a)}-options`, { option: u }, () => [
604
604
  we(Ee(u.label), 1)
605
605
  ])
606
606
  ]),
@@ -609,103 +609,103 @@ const et = /* @__PURE__ */ Ut(jt), Rt = {
609
609
  ])
610
610
  ]),
611
611
  _: 3
612
- }, 16, ["modelValue"])) : o(d) == o(ge).CHECKBOXGROUPBUTTON ? (n(), O(fe, S({
612
+ }, 16, ["modelValue"])) : o(d) == o(be).CHECKBOXGROUPBUTTON ? (n(), q(me, S({
613
613
  key: 4,
614
614
  modelValue: c.value,
615
615
  "onUpdate:modelValue": w[4] || (w[4] = (u) => c.value = u)
616
616
  }, o(e)), {
617
- default: h(() => [
618
- p(b.$slots, `${t.t}-${o(r)}`, { data: o(e) }, () => [
619
- (n(!0), q(G, null, j(T.value, (u) => (n(), O(pe, S({ ref_for: !0 }, u), {
620
- default: h(() => [
621
- p(b.$slots, `${t.t}-${o(r)}-options`, { option: u })
617
+ default: y(() => [
618
+ p(b.$slots, `${t.t}-${o(a)}`, { data: o(e) }, () => [
619
+ (n(!0), x(P, null, Y(F.value, (u) => (n(), q(pe, S({ ref_for: !0 }, u), {
620
+ default: y(() => [
621
+ p(b.$slots, `${t.t}-${o(a)}-options`, { option: u })
622
622
  ]),
623
623
  _: 2
624
624
  }, 1040))), 256))
625
625
  ])
626
626
  ]),
627
627
  _: 3
628
- }, 16, ["modelValue"])) : o(d) === o(ge).SELECT ? (n(), O(C, S({
628
+ }, 16, ["modelValue"])) : o(d) === o(be).SELECT ? (n(), q(C, S({
629
629
  key: 5,
630
630
  modelValue: c.value,
631
631
  "onUpdate:modelValue": w[5] || (w[5] = (u) => c.value = u),
632
- placeholder: o(Y)[o(r)].label
633
- }, te.value), ce({
634
- default: h(() => [
635
- p(b.$slots, `${t.t}-${o(r)}`, { options: T.value }, () => [
636
- (n(!0), q(G, null, j(T.value, (u) => (n(), q(G, {
632
+ placeholder: o(U)[o(a)].label
633
+ }, te.value), fe({
634
+ default: y(() => [
635
+ p(b.$slots, `${t.t}-${o(a)}`, { options: F.value }, () => [
636
+ (n(!0), x(P, null, Y(F.value, (u) => (n(), x(P, {
637
637
  key: u.value
638
638
  }, [
639
- X(M, S({ ref_for: !0 }, o(ke)(u, (P) => P != "children"), {
640
- onClick: (P) => te.value.change && te.value.change(u)
639
+ Z(M, S({ ref_for: !0 }, o(ke)(u, (N) => N != "children"), {
640
+ onClick: (N) => te.value.change && te.value.change(u)
641
641
  }), {
642
- default: h(() => {
643
- var P;
642
+ default: y(() => {
643
+ var N;
644
644
  return [
645
- (P = o(e)) != null && P.columns ? p(b.$slots, `${t.t}-${o(r)}-options`, {
645
+ (N = o(e)) != null && N.columns ? p(b.$slots, `${t.t}-${o(a)}-options`, {
646
646
  key: 0,
647
647
  option: u
648
648
  }, () => {
649
- var se;
649
+ var ie;
650
650
  return [
651
- X(m, {
652
- columns: (se = o(e)) == null ? void 0 : se.columns,
651
+ Z(m, {
652
+ columns: (ie = o(e)) == null ? void 0 : ie.columns,
653
653
  data: u,
654
654
  t: t.t
655
- }, ce({ _: 2 }, [
656
- j(b.$slots, (Ve, l) => ({
655
+ }, fe({ _: 2 }, [
656
+ Y(b.$slots, (Ve, l) => ({
657
657
  name: l,
658
- fn: h((a) => [
658
+ fn: y((r) => [
659
659
  p(b.$slots, l, {
660
660
  option: u,
661
- data: a
661
+ data: r
662
662
  })
663
663
  ])
664
664
  }))
665
665
  ]), 1032, ["columns", "data", "t"])
666
666
  ];
667
- }) : be("", !0)
667
+ }) : $e("", !0)
668
668
  ];
669
669
  }),
670
670
  _: 2
671
671
  }, 1040, ["onClick"]),
672
- u.children && u.children.length ? (n(!0), q(G, { key: 0 }, j(u.children, (P) => (n(), O(M, S({
672
+ u.children && u.children.length ? (n(!0), x(P, { key: 0 }, Y(u.children, (N) => (n(), q(M, S({
673
673
  style: { "margin-left": "20px" },
674
- key: P.value,
674
+ key: N.value,
675
675
  ref_for: !0
676
- }, o(ke)(P, (se) => se != "children"), {
677
- onClick: (se) => te.value.change && te.value.change(P)
676
+ }, o(ke)(N, (ie) => ie != "children"), {
677
+ onClick: (ie) => te.value.change && te.value.change(N)
678
678
  }), {
679
- default: h(() => {
680
- var se;
679
+ default: y(() => {
680
+ var ie;
681
681
  return [
682
- (se = o(e)) != null && se.columns ? p(b.$slots, `${t.t}-${o(r)}-options`, {
682
+ (ie = o(e)) != null && ie.columns ? p(b.$slots, `${t.t}-${o(a)}-options`, {
683
683
  key: 0,
684
- option: P
684
+ option: N
685
685
  }, () => {
686
686
  var Ve;
687
687
  return [
688
- X(m, {
688
+ Z(m, {
689
689
  columns: (Ve = o(e)) == null ? void 0 : Ve.columns,
690
- data: P,
690
+ data: N,
691
691
  t: t.t
692
- }, ce({ _: 2 }, [
693
- j(b.$slots, (l, a) => ({
694
- name: a,
695
- fn: h((v) => [
696
- p(b.$slots, a, {
697
- option: P,
692
+ }, fe({ _: 2 }, [
693
+ Y(b.$slots, (l, r) => ({
694
+ name: r,
695
+ fn: y((v) => [
696
+ p(b.$slots, r, {
697
+ option: N,
698
698
  data: v
699
699
  })
700
700
  ])
701
701
  }))
702
702
  ]), 1032, ["columns", "data", "t"])
703
703
  ];
704
- }) : be("", !0)
704
+ }) : $e("", !0)
705
705
  ];
706
706
  }),
707
707
  _: 2
708
- }, 1040, ["onClick"]))), 128)) : be("", !0)
708
+ }, 1040, ["onClick"]))), 128)) : $e("", !0)
709
709
  ], 64))), 128))
710
710
  ])
711
711
  ]),
@@ -713,18 +713,18 @@ const et = /* @__PURE__ */ Ut(jt), Rt = {
713
713
  }, [
714
714
  (Ce = o(e)) != null && Ce.columns ? {
715
715
  name: "header",
716
- fn: h(() => {
716
+ fn: y(() => {
717
717
  var u;
718
718
  return [
719
- X(m, {
719
+ Z(m, {
720
720
  columns: (u = o(e)) == null ? void 0 : u.columns,
721
721
  title: !0,
722
722
  t: t.t
723
- }, ce({ _: 2 }, [
724
- j(b.$slots, (P, se) => ({
725
- name: se,
726
- fn: h((Ve) => [
727
- p(b.$slots, se, { data: Ve })
723
+ }, fe({ _: 2 }, [
724
+ Y(b.$slots, (N, ie) => ({
725
+ name: ie,
726
+ fn: y((Ve) => [
727
+ p(b.$slots, ie, { data: Ve })
728
728
  ])
729
729
  }))
730
730
  ]), 1032, ["columns", "t"])
@@ -732,102 +732,102 @@ const et = /* @__PURE__ */ Ut(jt), Rt = {
732
732
  }),
733
733
  key: "0"
734
734
  } : void 0,
735
- j(E(), (u) => ({
735
+ Y(E(), (u) => ({
736
736
  name: u,
737
- fn: h((P) => [
738
- p(b.$slots, `${t.t}-${o(r)}-${u}`, { data: P })
737
+ fn: y((N) => [
738
+ p(b.$slots, `${t.t}-${o(a)}-${u}`, { data: N })
739
739
  ])
740
740
  }))
741
- ]), 1040, ["modelValue", "placeholder"])) : o(d) == o(ge).TREESELECT ? (n(), O(y, S({
741
+ ]), 1040, ["modelValue", "placeholder"])) : o(d) == o(be).TREESELECT ? (n(), q(h, S({
742
742
  key: 6,
743
743
  modelValue: c.value,
744
744
  "onUpdate:modelValue": w[6] || (w[6] = (u) => c.value = u),
745
- placeholder: o(Y)[o(r)].label
746
- }, o(e), { data: F.value }), ce({ _: 2 }, [
747
- j(E(), (u) => ({
745
+ placeholder: o(U)[o(a)].label
746
+ }, o(e), { data: T.value }), fe({ _: 2 }, [
747
+ Y(E(), (u) => ({
748
748
  name: u,
749
- fn: h((P) => [
750
- p(b.$slots, `${t.t}-${o(r)}-${u}`, { data: P })
749
+ fn: y((N) => [
750
+ p(b.$slots, `${t.t}-${o(a)}-${u}`, { data: N })
751
751
  ])
752
752
  }))
753
- ]), 1040, ["modelValue", "placeholder", "data"])) : o(d) == o(ge).TIME ? (n(), O(I, S({
753
+ ]), 1040, ["modelValue", "placeholder", "data"])) : o(d) == o(be).TIME ? (n(), q(I, S({
754
754
  key: 7,
755
755
  modelValue: c.value,
756
756
  "onUpdate:modelValue": w[7] || (w[7] = (u) => c.value = u),
757
757
  "arrow-control": ""
758
758
  }, o(e), {
759
- placeholder: o(Y)[o(r)].label
760
- }), null, 16, ["modelValue", "placeholder"])) : o(d) == o(ge).TIMESELECT ? (n(), O(ee, S({
759
+ placeholder: o(U)[o(a)].label
760
+ }), null, 16, ["modelValue", "placeholder"])) : o(d) == o(be).TIMESELECT ? (n(), q(ee, S({
761
761
  key: 8,
762
762
  modelValue: c.value,
763
763
  "onUpdate:modelValue": w[8] || (w[8] = (u) => c.value = u),
764
764
  start: "06:30",
765
765
  step: "00:15",
766
766
  end: "23:30",
767
- placeholder: o(Y)[o(r)].label
768
- }, o(e)), null, 16, ["modelValue", "placeholder"])) : D(o(d)) ? (n(), O(re, S({
767
+ placeholder: o(U)[o(a)].label
768
+ }, o(e)), null, 16, ["modelValue", "placeholder"])) : D(o(d)) ? (n(), q(ne, S({
769
769
  key: 9,
770
770
  modelValue: c.value,
771
771
  "onUpdate:modelValue": w[9] || (w[9] = (u) => c.value = u),
772
- type: "date",
773
- placeholder: o(Y)[o(r)].label,
774
- "value-format": N(o(d))
775
- }, o(e)), ce({ _: 2 }, [
776
- j(E(), (u) => ({
772
+ type: o(d),
773
+ placeholder: o(U)[o(a)].label,
774
+ "value-format": z(o(d))
775
+ }, o(e)), fe({ _: 2 }, [
776
+ Y(E(), (u) => ({
777
777
  name: u,
778
- fn: h((P) => [
779
- p(b.$slots, `${t.t}-${o(r)}-${u}`, { data: P })
778
+ fn: y((N) => [
779
+ p(b.$slots, `${t.t}-${o(a)}-${u}`, { data: N })
780
780
  ])
781
781
  }))
782
- ]), 1040, ["modelValue", "placeholder", "value-format"])) : o(d) == o(ge).COLOR ? (n(), O(x, S({
782
+ ]), 1040, ["modelValue", "type", "placeholder", "value-format"])) : o(d) == o(be).COLOR ? (n(), q(B, S({
783
783
  key: 10,
784
784
  modelValue: c.value,
785
785
  "onUpdate:modelValue": w[10] || (w[10] = (u) => c.value = u)
786
- }, o(e)), null, 16, ["modelValue"])) : o(d) == o(ge).RATE ? (n(), O($, S({
786
+ }, o(e)), null, 16, ["modelValue"])) : o(d) == o(be).RATE ? (n(), q($, S({
787
787
  key: 11,
788
788
  modelValue: c.value,
789
789
  "onUpdate:modelValue": w[11] || (w[11] = (u) => c.value = u)
790
- }, o(e)), null, 16, ["modelValue"])) : o(d) == o(ge).SLIDER ? (n(), O(g, S({
790
+ }, o(e)), null, 16, ["modelValue"])) : o(d) == o(be).SLIDER ? (n(), q(g, S({
791
791
  key: 12,
792
792
  modelValue: c.value,
793
793
  "onUpdate:modelValue": w[12] || (w[12] = (u) => c.value = u)
794
- }, o(e)), null, 16, ["modelValue"])) : o(d) == o(ge).SWITCH ? (n(), O(_, S({
794
+ }, o(e)), null, 16, ["modelValue"])) : o(d) == o(be).SWITCH ? (n(), q(_, S({
795
795
  key: 13,
796
796
  modelValue: c.value,
797
797
  "onUpdate:modelValue": w[13] || (w[13] = (u) => c.value = u)
798
- }, o(e)), ce({ _: 2 }, [
799
- j(E(), (u) => ({
798
+ }, o(e)), fe({ _: 2 }, [
799
+ Y(E(), (u) => ({
800
800
  name: u,
801
- fn: h((P) => [
802
- p(b.$slots, `${t.t}-${o(r)}-${u}`, { data: P })
801
+ fn: y((N) => [
802
+ p(b.$slots, `${t.t}-${o(a)}-${u}`, { data: N })
803
803
  ])
804
804
  }))
805
- ]), 1040, ["modelValue"])) : o(d) == o(ge).TRANSFER ? (n(), O(s, S({
805
+ ]), 1040, ["modelValue"])) : o(d) == o(be).TRANSFER ? (n(), q(s, S({
806
806
  key: 14,
807
807
  modelValue: c.value,
808
808
  "onUpdate:modelValue": w[14] || (w[14] = (u) => c.value = u)
809
- }, o(e)), ce({ _: 2 }, [
810
- j(E(), (u) => ({
809
+ }, o(e)), fe({ _: 2 }, [
810
+ Y(E(), (u) => ({
811
811
  name: u,
812
- fn: h((P) => [
813
- p(b.$slots, `${t.t}-${o(r)}-${u}`, { data: P })
812
+ fn: y((N) => [
813
+ p(b.$slots, `${t.t}-${o(a)}-${u}`, { data: N })
814
814
  ])
815
815
  }))
816
- ]), 1040, ["modelValue"])) : o(d) == o(ge).CASCADER ? (n(), O(i, S({
816
+ ]), 1040, ["modelValue"])) : o(d) == o(be).CASCADER ? (n(), q(i, S({
817
817
  key: 15,
818
818
  modelValue: c.value,
819
819
  "onUpdate:modelValue": w[15] || (w[15] = (u) => c.value = u)
820
- }, o(e), { options: T.value }), ce({ _: 2 }, [
821
- j(E(), (u) => ({
820
+ }, o(e), { options: F.value }), fe({ _: 2 }, [
821
+ Y(E(), (u) => ({
822
822
  name: u,
823
- fn: h((P) => [
824
- p(b.$slots, `${t.t}-${o(r)}-${u}`, { data: P })
823
+ fn: y((N) => [
824
+ p(b.$slots, `${t.t}-${o(a)}-${u}`, { data: N })
825
825
  ])
826
826
  }))
827
- ]), 1040, ["modelValue", "options"])) : o(d) == o(ge).IMAGE ? (n(), O(H, Qe(S({ key: 16 }, o(e))), ce({
828
- default: h(() => [
829
- X(A, { type: "primary" }, {
830
- default: h(() => w[21] || (w[21] = [
827
+ ]), 1040, ["modelValue", "options"])) : o(d) == o(be).IMAGE ? (n(), q(H, Qe(S({ key: 16 }, o(e))), fe({
828
+ default: y(() => [
829
+ Z(A, { type: "primary" }, {
830
+ default: y(() => w[21] || (w[21] = [
831
831
  we("点击上传")
832
832
  ])),
833
833
  _: 1
@@ -835,86 +835,100 @@ const et = /* @__PURE__ */ Ut(jt), Rt = {
835
835
  ]),
836
836
  _: 2
837
837
  }, [
838
- j(E(), (u, P) => ({
838
+ Y(E(), (u, N) => ({
839
839
  name: u,
840
- fn: h((se) => [
841
- p(b.$slots, `${t.t}-${o(r)}-${u}`, { data: se })
840
+ fn: y((ie) => [
841
+ p(b.$slots, `${t.t}-${o(a)}-${u}`, { data: ie })
842
842
  ])
843
843
  }))
844
- ]), 1040)) : o(d) == o(ge).AUTOCOMPLETE ? (n(), O(J, S({
844
+ ]), 1040)) : o(d) == o(be).AUTOCOMPLETE ? (n(), q(X, S({
845
845
  key: 17,
846
846
  modelValue: c.value,
847
847
  "onUpdate:modelValue": w[16] || (w[16] = (u) => c.value = u)
848
848
  }, o(e), {
849
- placeholder: o(Y)[o(r)].label
850
- }), ce({ _: 2 }, [
851
- j(E(), (u, P) => ({
849
+ placeholder: o(U)[o(a)].label
850
+ }), fe({ _: 2 }, [
851
+ Y(E(), (u, N) => ({
852
852
  name: u,
853
- fn: h((se) => [
854
- p(b.$slots, `${t.t}-${o(r)}-${u}`, { data: se })
853
+ fn: y((ie) => [
854
+ p(b.$slots, `${t.t}-${o(a)}-${u}`, { data: ie })
855
855
  ])
856
856
  }))
857
- ]), 1040, ["modelValue", "placeholder"])) : o(d) == o(ge).INPUTNUMBER ? (n(), O(ue, S({
857
+ ]), 1040, ["modelValue", "placeholder"])) : o(d) == o(be).INPUTNUMBER ? (n(), q(se, S({
858
858
  key: 18,
859
859
  modelValue: c.value,
860
860
  "onUpdate:modelValue": w[17] || (w[17] = (u) => c.value = u),
861
861
  min: 0,
862
862
  max: 1e8,
863
- placeholder: o(Y)[o(r)].label
864
- }, o(e)), ce({ _: 2 }, [
865
- j(E(), (u, P) => ({
863
+ placeholder: o(U)[o(a)].label
864
+ }, o(e)), fe({ _: 2 }, [
865
+ Y(E(), (u, N) => ({
866
866
  name: u,
867
- fn: h((se) => [
868
- p(b.$slots, `${t.t}-${o(r)}-${u}`, { data: se })
867
+ fn: y((ie) => [
868
+ p(b.$slots, `${t.t}-${o(a)}-${u}`, { data: ie })
869
869
  ])
870
870
  }))
871
- ]), 1040, ["modelValue", "placeholder"])) : o(d) == o(ge).MONEY ? (n(), q("div", Lt, [
872
- X(de, S({
871
+ ]), 1040, ["modelValue", "placeholder"])) : o(d) == o(be).MONEY ? (n(), x("div", Rt, [
872
+ Z(ce, S({
873
873
  modelValue: c.value,
874
874
  "onUpdate:modelValue": w[18] || (w[18] = (u) => c.value = u),
875
- placeholder: o(Y)[o(r)].label,
876
- type: o(ge).NUMBER,
877
- maxlength: ((Te = o(e)) == null ? void 0 : Te.max) || 25
878
- }, { ...o(e), type: o(d) }), ce({
879
- suffix: h(() => [
880
- Z("div", {
881
- title: o(at)(c.value),
875
+ placeholder: o(U)[o(a)].label,
876
+ type: o(be).NUMBER,
877
+ maxlength: ((Fe = o(e)) == null ? void 0 : Fe.max) || 25
878
+ }, { ...o(e), type: o(d) }), fe({
879
+ suffix: y(() => [
880
+ J("div", {
881
+ title: o(rt)(c.value),
882
882
  style: { "font-size": "10px", display: "block", width: "80px", "text-align": "right", overflow: "hidden", "text-overflow": "ellipsis" }
883
- }, Ee(o(at)(c.value)), 9, Ht)
883
+ }, Ee(o(rt)(c.value)), 9, Ht)
884
884
  ]),
885
885
  _: 2
886
886
  }, [
887
- j(E(), (u, P) => ({
887
+ Y(E(), (u, N) => ({
888
888
  name: u,
889
- fn: h((se) => [
890
- p(b.$slots, `${t.t}-${o(r)}-${u}`, { data: se })
889
+ fn: y((ie) => [
890
+ p(b.$slots, `${t.t}-${o(a)}-${u}`, { data: ie })
891
891
  ])
892
892
  }))
893
893
  ]), 1040, ["modelValue", "placeholder", "type", "maxlength"])
894
- ])) : (o(d) === "primary" || o(d) === "success" || o(d) === "warning" || o(d) == "danger" || o(d) === "info" || o(d) == "default") && o(e).isLink === !0 ? (n(), q("div", Nt, [
895
- X(he, S(o(e), {
894
+ ])) : (o(d) === "primary" || o(d) === "success" || o(d) === "warning" || o(d) == "danger" || o(d) === "info" || o(d) == "default") && o(e).isLink === !0 ? (n(), x("div", Nt, [
895
+ Z(he, S(o(e), {
896
896
  innerHTML: o(e).innerHtml || c.value
897
897
  }), null, 16, ["innerHTML"])
898
- ])) : (o(d) === "primary" || o(d) === "success" || o(d) === "warning" || o(d) == "danger" || o(d) === "info") && o(e).isTag === !0 ? (n(), q("div", Pt, [
899
- X($e, S(o(e), {
898
+ ])) : (o(d) === "primary" || o(d) === "success" || o(d) === "warning" || o(d) == "danger" || o(d) === "info") && o(e).isTag === !0 ? (n(), x("div", Pt, [
899
+ Array.isArray(o(e).innerHtml) && o(e).innerHtml.length > 1 ? (n(!0), x(P, { key: 0 }, Y(o(e).innerHtml, (u, N) => (n(), x(P, { key: N }, [
900
+ typeof u == "object" ? (n(), q(ve, S({
901
+ key: 0,
902
+ ref_for: !0
903
+ }, u, {
904
+ innerHTML: u == null ? void 0 : u.value,
905
+ style: { "margin-right": "3px" }
906
+ }), null, 16, ["innerHTML"])) : (n(), q(ve, S({
907
+ key: 1,
908
+ ref_for: !0
909
+ }, o(e), {
910
+ innerHTML: u,
911
+ style: { "margin-right": "3px" }
912
+ }), null, 16, ["innerHTML"]))
913
+ ], 64))), 128)) : (n(), q(ve, S({ key: 1 }, o(e), {
900
914
  innerHTML: o(e).innerHtml || c.value
901
- }), null, 16, ["innerHTML"])
902
- ])) : o(d) == "div" ? (n(), q("div", S({ key: 22 }, o(e), {
915
+ }), null, 16, ["innerHTML"]))
916
+ ])) : o(d) == "div" ? (n(), x("div", S({ key: 22 }, o(e), {
903
917
  innerHTML: o(e).innerHtml || c.value
904
- }), null, 16, Wt)) : o(d) == "span" ? (n(), q("span", S({ key: 23 }, o(e), {
918
+ }), null, 16, zt)) : o(d) == "span" ? (n(), x("span", S({ key: 23 }, o(e), {
905
919
  innerHTML: o(e).innerHtml || c.value
906
- }), null, 16, zt)) : (n(), O(de, S({
920
+ }), null, 16, Wt)) : (n(), q(ce, S({
907
921
  key: 24,
908
922
  modelValue: c.value,
909
923
  "onUpdate:modelValue": w[19] || (w[19] = (u) => c.value = u),
910
- placeholder: o(Y)[o(r)].label,
924
+ placeholder: o(U)[o(a)].label,
911
925
  maxlength: ((De = o(e)) == null ? void 0 : De.max) || 25,
912
926
  clearable: !0
913
- }, { ...o(e), type: o(d) }), ce({ _: 2 }, [
914
- j(E(), (u, P) => ({
927
+ }, { ...o(e), type: o(d) }), fe({ _: 2 }, [
928
+ Y(E(), (u, N) => ({
915
929
  name: u,
916
- fn: h((se) => [
917
- p(b.$slots, `${t.t}-${o(r)}-${u}`, { data: se })
930
+ fn: y((ie) => [
931
+ p(b.$slots, `${t.t}-${o(a)}-${u}`, { data: ie })
918
932
  ])
919
933
  }))
920
934
  ]), 1040, ["modelValue", "placeholder", "maxlength"]))
@@ -932,8 +946,8 @@ const et = /* @__PURE__ */ Ut(jt), Rt = {
932
946
  },
933
947
  emits: /* @__PURE__ */ Be(["submit", "reset"], ["update:modelValue"]),
934
948
  setup(f, { emit: c }) {
935
- var ne, ie, fe, pe;
936
- const t = Ie(f, "modelValue"), e = c, r = ve(null), d = rt("options"), Y = {
949
+ var ue, de, me, pe;
950
+ const t = Ie(f, "modelValue"), e = c, a = ye(null), d = at("options"), U = {
937
951
  inline: !0,
938
952
  type: "hidden",
939
953
  "scroll-to-error": !0,
@@ -943,7 +957,7 @@ const et = /* @__PURE__ */ Ut(jt), Rt = {
943
957
  style: {
944
958
  display: "flex",
945
959
  flexWrap: "wrap",
946
- ...(ne = nt()) == null ? void 0 : ne.style
960
+ ...(ue = nt()) == null ? void 0 : ue.style
947
961
  },
948
962
  // 表单底部属性
949
963
  footer: {
@@ -971,11 +985,11 @@ const et = /* @__PURE__ */ Ut(jt), Rt = {
971
985
  hidden: !1,
972
986
  plain: !0,
973
987
  click: () => {
974
- if (!r.value) return;
988
+ if (!a.value) return;
975
989
  let m = !0;
976
990
  e("reset", (M) => {
977
991
  m = M;
978
- }), m && r.value.resetFields();
992
+ }), m && a.value.resetFields();
979
993
  }
980
994
  },
981
995
  slots: {},
@@ -985,25 +999,25 @@ const et = /* @__PURE__ */ Ut(jt), Rt = {
985
999
  }
986
1000
  };
987
1001
  t.value.form = Me(
988
- Y,
1002
+ U,
989
1003
  d == null ? void 0 : d.form,
990
- (ie = t.value) == null ? void 0 : ie.form
1004
+ (de = t.value) == null ? void 0 : de.form
991
1005
  );
992
- const F = async (m, M) => {
1006
+ const T = async (m, M) => {
993
1007
  let C = 5;
994
1008
  for (; C > 0; ) {
995
- if (await ht(), r.value) {
996
- r.value.validate((y, I) => {
997
- y ? e("submit", m, M) : console.log("表单验证不通过!", I);
1009
+ if (await yt(), a.value) {
1010
+ a.value.validate((h, I) => {
1011
+ h ? e("submit", m, M) : console.log("表单验证不通过!", I);
998
1012
  });
999
1013
  return;
1000
1014
  }
1001
- C--, await new Promise((y) => setTimeout(y, 50));
1015
+ C--, await new Promise((h) => setTimeout(h, 50));
1002
1016
  }
1003
1017
  console.error("表单实例获取失败,请检查组件状态");
1004
1018
  };
1005
- t.value.form.submit.click = F;
1006
- const T = {
1019
+ t.value.form.submit.click = T;
1020
+ const F = {
1007
1021
  type: "hidden",
1008
1022
  labelPosition: "right",
1009
1023
  style: {
@@ -1011,9 +1025,9 @@ const et = /* @__PURE__ */ Ut(jt), Rt = {
1011
1025
  }
1012
1026
  };
1013
1027
  t.value.formItems = Me(
1014
- T,
1028
+ F,
1015
1029
  d == null ? void 0 : d.formItems,
1016
- (fe = t == null ? void 0 : t.value) == null ? void 0 : fe.formItems
1030
+ (me = t == null ? void 0 : t.value) == null ? void 0 : me.formItems
1017
1031
  );
1018
1032
  const E = {
1019
1033
  span: 12,
@@ -1029,7 +1043,7 @@ const et = /* @__PURE__ */ Ut(jt), Rt = {
1029
1043
  if (m.rules)
1030
1044
  M = m.rules;
1031
1045
  else {
1032
- const y = { ...{
1046
+ const h = { ...{
1033
1047
  required: void 0,
1034
1048
  max: void 0,
1035
1049
  min: void 0,
@@ -1038,61 +1052,61 @@ const et = /* @__PURE__ */ Ut(jt), Rt = {
1038
1052
  pattern: void 0,
1039
1053
  validate: void 0
1040
1054
  }, ...m };
1041
- y.required && M.push({ required: !0, message: `${y.label}不能为空!`, trigger: "blur" }), y.max && y.min && M.push({
1042
- validator: (I, ee, re) => {
1043
- ee && m.type == "number" && (ee < y.min || ee > y.max) ? re(new Error(`${y.label} 必须在 ${y.min} 和 ${y.max} 之间!`)) : ee && m.type !== "number" && (ee.toString().length < y.min || ee.toString().length > y.max) ? re(new Error(`字符长度必须在 ${y.min} 和 ${y.max} 之间!`)) : re();
1055
+ h.required && M.push({ required: !0, message: `${h.label}不能为空!`, trigger: "blur" }), h.max && h.min && M.push({
1056
+ validator: (I, ee, ne) => {
1057
+ ee && m.type == "number" && (ee < h.min || ee > h.max) ? ne(new Error(`${h.label} 必须在 ${h.min} 和 ${h.max} 之间!`)) : ee && m.type !== "number" && (ee.toString().length < h.min || ee.toString().length > h.max) ? ne(new Error(`字符长度必须在 ${h.min} 和 ${h.max} 之间!`)) : ne();
1044
1058
  }
1045
- }), y.max && !y.min && m.type == "number" && M.push({
1046
- validator: (I, ee, re) => {
1047
- ee && ee > y.max ? re(new Error(`${y.label}不能大于${y.max}!`)) : re();
1059
+ }), h.max && !h.min && m.type == "number" && M.push({
1060
+ validator: (I, ee, ne) => {
1061
+ ee && ee > h.max ? ne(new Error(`${h.label}不能大于${h.max}!`)) : ne();
1048
1062
  }
1049
- }), y.min && !y.max && m.type == "number" && M.push({
1050
- validator: (I, ee, re) => {
1051
- ee && ee < y.min ? re(new Error(`${y.label}不能小于${y.min}!`)) : re();
1063
+ }), h.min && !h.max && m.type == "number" && M.push({
1064
+ validator: (I, ee, ne) => {
1065
+ ee && ee < h.min ? ne(new Error(`${h.label}不能小于${h.min}!`)) : ne();
1052
1066
  }
1053
- }), y.type == "email" && M.push({ type: "email", message: "不是一个正确的邮箱地址!" }), y.type == "url" && M.push({ type: "url", message: "不是一个合正确的URL!" }), y.pattern && M.push({ pattern: y == null ? void 0 : y.pattern, message: (y == null ? void 0 : y.message) || "格式不正确!" }), y.validate && M.push({
1054
- validator: (I, ee, re) => y.validate(I, ee, re)
1067
+ }), h.type == "email" && M.push({ type: "email", message: "不是一个正确的邮箱地址!" }), h.type == "url" && M.push({ type: "url", message: "不是一个合正确的URL!" }), h.pattern && M.push({ pattern: h == null ? void 0 : h.pattern, message: (h == null ? void 0 : h.message) || "格式不正确!" }), h.validate && M.push({
1068
+ validator: (I, ee, ne) => h.validate(I, ee, ne)
1055
1069
  });
1056
1070
  }
1057
1071
  return M;
1058
- }, N = (m, M = !1) => {
1059
- var I, ee, re, x, $;
1060
- const C = M ? m : m == null ? void 0 : m.item, y = typeof (C == null ? void 0 : C.editor) == "function" ? C.editor(b.value, (I = t.value.form) == null ? void 0 : I.modalState) : (C == null ? void 0 : C.editor) || {};
1072
+ }, z = (m, M = !1) => {
1073
+ var I, ee, ne, B, $;
1074
+ const C = M ? m : m == null ? void 0 : m.item, h = typeof (C == null ? void 0 : C.editor) == "function" ? C.editor(b.value, (I = t.value.form) == null ? void 0 : I.modalState) : (C == null ? void 0 : C.editor) || {};
1061
1075
  if (((ee = t.value.form) == null ? void 0 : ee.modalState) === "edit") {
1062
- const g = typeof (C == null ? void 0 : C.editor) == "object" ? (re = C.editor) == null ? void 0 : re.ep : typeof (C == null ? void 0 : C.editor) == "function" ? y == null ? void 0 : y.ep : {};
1063
- return { ...y, ...g };
1076
+ const g = typeof (C == null ? void 0 : C.editor) == "object" ? (ne = C.editor) == null ? void 0 : ne.ep : typeof (C == null ? void 0 : C.editor) == "function" ? h == null ? void 0 : h.ep : {};
1077
+ return { ...h, ...g };
1064
1078
  }
1065
- if (((x = t.value.form) == null ? void 0 : x.modalState) === "add") {
1066
- const g = typeof (C == null ? void 0 : C.editor) == "object" ? ($ = C.editor) == null ? void 0 : $.ap : typeof (C == null ? void 0 : C.editor) == "function" ? y == null ? void 0 : y.ap : {};
1067
- return { ...y, ...g };
1079
+ if (((B = t.value.form) == null ? void 0 : B.modalState) === "add") {
1080
+ const g = typeof (C == null ? void 0 : C.editor) == "object" ? ($ = C.editor) == null ? void 0 : $.ap : typeof (C == null ? void 0 : C.editor) == "function" ? h == null ? void 0 : h.ap : {};
1081
+ return { ...h, ...g };
1068
1082
  }
1069
- return y;
1083
+ return h;
1070
1084
  }, te = (m) => {
1071
- var C, y, I, ee, re;
1085
+ var C, h, I, ee, ne;
1072
1086
  const M = typeof m.editor == "function" ? m.editor(b.value, (C = t.value.form) == null ? void 0 : C.modalState) : m.editor;
1073
- return ((y = t.value.form) == null ? void 0 : y.modalState) === "edit" ? ((I = M == null ? void 0 : M.ep) == null ? void 0 : I.type) ?? (M == null ? void 0 : M.type) ?? m.type : ((ee = t.value.form) == null ? void 0 : ee.modalState) === "add" ? ((re = M == null ? void 0 : M.ap) == null ? void 0 : re.type) ?? (M == null ? void 0 : M.type) ?? m.type : (M == null ? void 0 : M.type) ?? m.type;
1087
+ return ((h = t.value.form) == null ? void 0 : h.modalState) === "edit" ? ((I = M == null ? void 0 : M.ep) == null ? void 0 : I.type) ?? (M == null ? void 0 : M.type) ?? m.type : ((ee = t.value.form) == null ? void 0 : ee.modalState) === "add" ? ((ne = M == null ? void 0 : M.ap) == null ? void 0 : ne.type) ?? (M == null ? void 0 : M.type) ?? m.type : (M == null ? void 0 : M.type) ?? m.type;
1074
1088
  };
1075
1089
  Ne(() => {
1076
- L();
1090
+ R();
1077
1091
  }), Dt(() => {
1078
- r.value = null;
1092
+ a.value = null;
1079
1093
  });
1080
- const L = () => {
1094
+ const R = () => {
1081
1095
  for (const [m, M] of Object.entries(V.value))
1082
1096
  t.value[m].formItem = { ...t.value[m].formItem, ...M.formItem }, t.value[m].formItem.style = { ...t.value[m].formItem.style, ...M.formItem.style };
1083
1097
  }, V = Ye(() => Object.fromEntries(Object.entries(t.value).filter((m) => m[1].type != "hidden").filter((m) => !["table", "tableColumns", "query", "queryItems"].includes(m[0])).filter((m) => m[1].editor !== !1).filter((m) => m[1].type !== "control").filter((m) => {
1084
- var C, y, I;
1098
+ var C, h, I;
1085
1099
  const M = typeof m[1].editor == "function" ? m[1].editor(b.value, (C = t.value.form) == null ? void 0 : C.modalState) : m[1].editor;
1086
- return t.value.form.modalState === "edit" ? ((y = M == null ? void 0 : M.ep) == null ? void 0 : y.editor) !== !1 : t.value.form.modalState === "add" ? ((I = M == null ? void 0 : M.ap) == null ? void 0 : I.editor) !== !1 : !0;
1100
+ return t.value.form.modalState === "edit" ? ((h = M == null ? void 0 : M.ep) == null ? void 0 : h.editor) !== !1 : t.value.form.modalState === "add" ? ((I = M == null ? void 0 : M.ap) == null ? void 0 : I.editor) !== !1 : !0;
1087
1101
  }).map((m) => [m[0], m[1]]))), b = Ye(() => Object.fromEntries(Object.entries(t.value).filter((m) => m[1].type != "hidden").filter((m) => m[1].type != "control").map((m) => [m[0], m[1].value]))), w = Ye(() => {
1088
1102
  const m = /* @__PURE__ */ new Map();
1089
1103
  return Object.entries(V.value).forEach(([M, C]) => {
1090
1104
  if (C.groupName) {
1091
- const y = C.groupName;
1092
- m.has(y) || m.set(y, {
1093
- groupName: y,
1105
+ const h = C.groupName;
1106
+ m.has(h) || m.set(h, {
1107
+ groupName: h,
1094
1108
  items: []
1095
- }), m.get(y).items.push({ key: M, item: C });
1109
+ }), m.get(h).items.push({ key: M, item: C });
1096
1110
  }
1097
1111
  }), m.forEach((M) => {
1098
1112
  M.tabPane = Me(...M.items.map(({ item: C }) => C.tabPane || {}));
@@ -1122,54 +1136,55 @@ const et = /* @__PURE__ */ Ut(jt), Rt = {
1122
1136
  }
1123
1137
  ], K = Ye(() => ae.filter((m) => !m.hidden).sort((m, M) => m.sort - M.sort || m.originalOrder - M.originalOrder));
1124
1138
  return (m, M) => {
1125
- const C = R("el-form-item"), y = R("el-col"), I = R("el-tab-pane"), ee = R("el-tabs"), re = R("el-button"), x = R("el-form");
1126
- return n(), O(x, S({
1139
+ const C = L("el-form-item"), h = L("el-col"), I = L("el-tab-pane"), ee = L("el-tabs"), ne = L("el-button"), B = L("el-form");
1140
+ return n(), q(B, S({
1127
1141
  ref_key: "gform",
1128
- ref: r,
1142
+ ref: a,
1129
1143
  model: t.value,
1130
1144
  style: { width: "98%", padding: 0, margin: 0, "box-sizing": "border-box" }
1131
1145
  }, o(ke)(t.value.form, ($) => !["footer", "submit", "reset", "slots", "type", "sort"].includes($)), { class: "g-form-container" }), {
1132
- default: h(() => [
1146
+ default: y(() => [
1133
1147
  w.value.length > 0 ? p(m.$slots, "default", { key: 0 }, () => {
1134
1148
  var $, g, _;
1135
1149
  return [
1136
- X(ee, S({
1150
+ Z(ee, S({
1137
1151
  class: "demo-tabs",
1138
1152
  modelValue: w.value[0].groupName,
1139
1153
  "onUpdate:modelValue": M[0] || (M[0] = (s) => w.value[0].groupName = s),
1140
1154
  style: { width: "100%" }
1141
1155
  }, t.value.form.tabs), {
1142
- default: h(() => [
1143
- (n(!0), q(G, null, j(w.value, (s) => (n(), O(I, S({
1156
+ default: y(() => [
1157
+ (n(!0), x(P, null, Y(w.value, (s) => (n(), q(I, S({
1144
1158
  key: s.groupName,
1145
1159
  label: s.groupName,
1146
1160
  name: s.groupName,
1147
1161
  style: { width: "100%", display: "flex", "flex-wrap": "wrap" },
1148
1162
  ref_for: !0
1149
1163
  }, s.tabPane), {
1150
- default: h(() => [
1151
- (n(!0), q(G, null, j(s.items, (i, A) => (n(), O(y, S({ ref_for: !0 }, { ...t.value.form.cols, ...i == null ? void 0 : i.item.col }, {
1164
+ default: y(() => [
1165
+ (n(!0), x(P, null, Y(s.items, (i, A) => (n(), q(h, S({ ref_for: !0 }, { ...t.value.form.cols, ...i == null ? void 0 : i.item.col }, {
1152
1166
  key: i.key,
1153
1167
  style: { width: "100%" }
1154
1168
  }), {
1155
- default: h(() => {
1156
- var H, J;
1169
+ default: y(() => {
1170
+ var H, X;
1157
1171
  return [
1158
- X(C, S({
1172
+ Z(C, S({
1159
1173
  label: i == null ? void 0 : i.item.label,
1160
1174
  prop: `${i.key}.value`,
1161
1175
  rules: D(i == null ? void 0 : i.item),
1162
1176
  ref_for: !0
1163
- }, { ...(H = t.value) == null ? void 0 : H.formItems, ...(J = i == null ? void 0 : i.item) == null ? void 0 : J.formItem }, { style: { width: "100%" } }), {
1164
- default: h(() => [
1177
+ }, { ...(H = t.value) == null ? void 0 : H.formItems, ...(X = i == null ? void 0 : i.item) == null ? void 0 : X.formItem }, { style: { width: "100%" } }), {
1178
+ default: y(() => [
1165
1179
  p(m.$slots, "f-" + i.key, {
1166
1180
  item: i == null ? void 0 : i.item,
1181
+ formInfo: b.value,
1167
1182
  model: t.value
1168
1183
  }, () => [
1169
- (n(), O(Xe, {
1184
+ (n(), q(Xe, {
1170
1185
  modelValue: t.value[i.key].value,
1171
- "onUpdate:modelValue": (ue) => t.value[i.key].value = ue,
1172
- item: N(i),
1186
+ "onUpdate:modelValue": (se) => t.value[i.key].value = se,
1187
+ item: z(i),
1173
1188
  ctrlKey: i.key,
1174
1189
  ctrlType: te(i == null ? void 0 : i.item),
1175
1190
  model: t.value,
@@ -1177,11 +1192,11 @@ const et = /* @__PURE__ */ Ut(jt), Rt = {
1177
1192
  class: "g-ctrl-container",
1178
1193
  t: "f",
1179
1194
  formInfo: b.value
1180
- }, ce({ _: 2 }, [
1181
- j(m.$slots, (ue, de) => ({
1182
- name: de,
1183
- fn: h((he) => [
1184
- p(m.$slots, de, {
1195
+ }, fe({ _: 2 }, [
1196
+ Y(m.$slots, (se, ce) => ({
1197
+ name: ce,
1198
+ fn: y((he) => [
1199
+ p(m.$slots, ce, {
1185
1200
  data: he,
1186
1201
  item: i.item,
1187
1202
  model: t.value
@@ -1203,18 +1218,18 @@ const et = /* @__PURE__ */ Ut(jt), Rt = {
1203
1218
  ]),
1204
1219
  _: 3
1205
1220
  }, 16, ["modelValue"]),
1206
- (_ = (g = ($ = t.value) == null ? void 0 : $.form) == null ? void 0 : g.footer) != null && _.hidden ? be("", !0) : p(m.$slots, "f-footer", { key: 0 }, () => [
1207
- Z("div", {
1208
- style: Ae(t.value.form.footer.style)
1221
+ (_ = (g = ($ = t.value) == null ? void 0 : $.form) == null ? void 0 : g.footer) != null && _.hidden ? $e("", !0) : p(m.$slots, "f-footer", { key: 0 }, () => [
1222
+ J("div", {
1223
+ style: Oe(t.value.form.footer.style)
1209
1224
  }, [
1210
1225
  p(m.$slots, "f-footer-left"),
1211
- (n(!0), q(G, null, j(K.value, (s) => (n(), q(G, null, [
1226
+ (n(!0), x(P, null, Y(K.value, (s) => (n(), x(P, null, [
1212
1227
  p(m.$slots, s.name + "-left"),
1213
1228
  p(m.$slots, s.name, {}, () => [
1214
- X(re, S({ ref_for: !0 }, s.info, {
1229
+ Z(ne, S({ ref_for: !0 }, s.info, {
1215
1230
  onClick: ct((i) => s.click(b.value, t.value), ["stop"])
1216
1231
  }), {
1217
- default: h(() => [
1232
+ default: y(() => [
1218
1233
  we(Ee(s == null ? void 0 : s.label), 1)
1219
1234
  ]),
1220
1235
  _: 2
@@ -1229,20 +1244,20 @@ const et = /* @__PURE__ */ Ut(jt), Rt = {
1229
1244
  }) : p(m.$slots, "default", { key: 1 }, () => {
1230
1245
  var $, g, _;
1231
1246
  return [
1232
- (n(!0), q(G, null, j(V.value, (s, i) => (n(), O(y, S({ ref_for: !0 }, { ...t.value.form.cols, ...s.col }, {
1247
+ (n(!0), x(P, null, Y(V.value, (s, i) => (n(), q(h, S({ ref_for: !0 }, { ...t.value.form.cols, ...s.col }, {
1233
1248
  key: i,
1234
1249
  style: { width: "100%" }
1235
1250
  }), {
1236
- default: h(() => {
1251
+ default: y(() => {
1237
1252
  var A;
1238
1253
  return [
1239
- X(C, S({
1254
+ Z(C, S({
1240
1255
  label: s.label,
1241
1256
  prop: `${i}.value`,
1242
1257
  rules: D(s),
1243
1258
  ref_for: !0
1244
1259
  }, { ...(A = t.value) == null ? void 0 : A.formItems, ...s == null ? void 0 : s.formItem }, { style: { width: "100%" } }), {
1245
- label: h((H) => [
1260
+ label: y((H) => [
1246
1261
  p(m.$slots, `f-${i}-label`, {
1247
1262
  data: H,
1248
1263
  item: s,
@@ -1251,15 +1266,16 @@ const et = /* @__PURE__ */ Ut(jt), Rt = {
1251
1266
  we(Ee(s.label), 1)
1252
1267
  ])
1253
1268
  ]),
1254
- default: h(() => [
1269
+ default: y(() => [
1255
1270
  p(m.$slots, "f-" + i, {
1256
1271
  item: s,
1272
+ formInfo: b.value,
1257
1273
  model: t.value
1258
1274
  }, () => [
1259
- (n(), O(Xe, {
1275
+ (n(), q(Xe, {
1260
1276
  modelValue: t.value[i].value,
1261
1277
  "onUpdate:modelValue": (H) => t.value[i].value = H,
1262
- item: N(s, !0),
1278
+ item: z(s, !0),
1263
1279
  ctrlKey: i,
1264
1280
  ctrlType: te(s),
1265
1281
  key: i,
@@ -1267,12 +1283,12 @@ const et = /* @__PURE__ */ Ut(jt), Rt = {
1267
1283
  class: "g-ctrl-container",
1268
1284
  t: "f",
1269
1285
  formInfo: b.value
1270
- }, ce({ _: 2 }, [
1271
- j(m.$slots, (H, J) => ({
1272
- name: J,
1273
- fn: h((ue) => [
1274
- p(m.$slots, J, {
1275
- data: ue,
1286
+ }, fe({ _: 2 }, [
1287
+ Y(m.$slots, (H, X) => ({
1288
+ name: X,
1289
+ fn: y((se) => [
1290
+ p(m.$slots, X, {
1291
+ data: se,
1276
1292
  item: s,
1277
1293
  model: t.value
1278
1294
  })
@@ -1287,18 +1303,18 @@ const et = /* @__PURE__ */ Ut(jt), Rt = {
1287
1303
  }),
1288
1304
  _: 2
1289
1305
  }, 1040))), 128)),
1290
- (_ = (g = ($ = t.value) == null ? void 0 : $.form) == null ? void 0 : g.footer) != null && _.hidden ? be("", !0) : p(m.$slots, "f-footer", { key: 0 }, () => [
1291
- Z("div", {
1292
- style: Ae(t.value.form.footer.style)
1306
+ (_ = (g = ($ = t.value) == null ? void 0 : $.form) == null ? void 0 : g.footer) != null && _.hidden ? $e("", !0) : p(m.$slots, "f-footer", { key: 0 }, () => [
1307
+ J("div", {
1308
+ style: Oe(t.value.form.footer.style)
1293
1309
  }, [
1294
1310
  p(m.$slots, "f-footer-left"),
1295
- (n(!0), q(G, null, j(K.value, (s) => (n(), q(G, null, [
1311
+ (n(!0), x(P, null, Y(K.value, (s) => (n(), x(P, null, [
1296
1312
  p(m.$slots, s.name + "-left"),
1297
1313
  p(m.$slots, s.name, {}, () => [
1298
- X(re, S({ ref_for: !0 }, s.info, {
1314
+ Z(ne, S({ ref_for: !0 }, s.info, {
1299
1315
  onClick: ct((i) => s.click(b.value, t.value), ["stop"])
1300
1316
  }), {
1301
- default: h(() => [
1317
+ default: y(() => [
1302
1318
  we(Ee(s == null ? void 0 : s.label), 1)
1303
1319
  ]),
1304
1320
  _: 2
@@ -1326,43 +1342,44 @@ const et = /* @__PURE__ */ Ut(jt), Rt = {
1326
1342
  }),
1327
1343
  emits: ["update:modelValue", "update:info"],
1328
1344
  setup(f) {
1329
- const c = Ie(f, "modelValue"), t = f, e = Ie(f, "info"), r = (F) => Ye(() => Object.fromEntries(Object.entries(c.value).filter((T) => T[1].search && T[1].search.more === F).map((T) => [T[0], T[1]]))).value, d = (F) => typeof F.search == "function" ? F.search(e.value) : F.search || {}, Y = (F) => {
1330
- const T = d(F);
1331
- return (T == null ? void 0 : T.type) || F.type;
1345
+ const c = Ie(f, "modelValue"), t = f, e = Ie(f, "info"), a = (T) => Ye(() => Object.fromEntries(Object.entries(c.value).filter((F) => typeof F[1].search == "function" ? F[1].search && F[1].search(e.value).more === T : F[1].search && F[1].search.more === T).map((F) => [F[0], F[1]]))).value, d = (T) => typeof T.search == "function" ? T.search(e.value) : T.search || {}, U = (T) => {
1346
+ const F = d(T);
1347
+ return (F == null ? void 0 : F.type) || T.type;
1332
1348
  };
1333
- return (F, T) => {
1334
- const E = R("el-form-item");
1335
- return n(!0), q(G, null, j(r(t.more), (D, N) => p(F.$slots, `q-${N}`, {
1336
- key: N,
1349
+ return (T, F) => {
1350
+ const E = L("el-form-item");
1351
+ return n(!0), x(P, null, Y(a(t.more), (D, z) => p(T.$slots, `q-${z}`, {
1352
+ key: z,
1337
1353
  item: D,
1354
+ queryModel: e.value,
1338
1355
  model: c.value
1339
1356
  }, () => [
1340
- X(E, S({
1357
+ Z(E, S({
1341
1358
  label: D.label,
1342
1359
  ref_for: !0
1343
1360
  }, { ...c.value.queryItems, ...d(D) }), {
1344
- label: h(() => [
1345
- p(F.$slots, `q-${N}-label`, {
1361
+ label: y(() => [
1362
+ p(T.$slots, `q-${z}-label`, {
1346
1363
  item: D,
1347
1364
  model: c.value
1348
1365
  })
1349
1366
  ]),
1350
- default: h(() => [
1351
- X(Xe, {
1352
- modelValue: e.value[N],
1353
- "onUpdate:modelValue": (te) => e.value[N] = te,
1367
+ default: y(() => [
1368
+ Z(Xe, {
1369
+ modelValue: e.value[z],
1370
+ "onUpdate:modelValue": (te) => e.value[z] = te,
1354
1371
  item: { ...D == null ? void 0 : D.editor, ...d(D) },
1355
- ctrlKey: N,
1356
- ctrlType: Y(D),
1372
+ ctrlKey: z,
1373
+ ctrlType: U(D),
1357
1374
  model: c.value,
1358
1375
  t: "q",
1359
1376
  formInfo: e.value
1360
- }, ce({ _: 2 }, [
1361
- j(Object.keys(F.$slots), (te) => ({
1377
+ }, fe({ _: 2 }, [
1378
+ Y(Object.keys(T.$slots), (te) => ({
1362
1379
  name: te,
1363
- fn: h((L) => [
1364
- p(F.$slots, te, {
1365
- data: L,
1380
+ fn: y((R) => [
1381
+ p(T.$slots, te, {
1382
+ data: R,
1366
1383
  item: D,
1367
1384
  model: c.value
1368
1385
  })
@@ -1377,8 +1394,8 @@ const et = /* @__PURE__ */ Ut(jt), Rt = {
1377
1394
  }
1378
1395
  }, Ue = (f, c) => {
1379
1396
  const t = f.__vccOpts || f;
1380
- for (const [e, r] of c)
1381
- t[e] = r;
1397
+ for (const [e, a] of c)
1398
+ t[e] = a;
1382
1399
  return t;
1383
1400
  }, Gt = {
1384
1401
  key: 0,
@@ -1391,9 +1408,9 @@ const et = /* @__PURE__ */ Ut(jt), Rt = {
1391
1408
  },
1392
1409
  emits: /* @__PURE__ */ Be(["query", "reset"], ["update:modelValue"]),
1393
1410
  setup(f, { emit: c }) {
1394
- const t = Ie(f, "modelValue"), e = c, r = rt("options"), d = ve(!1);
1395
- let Y = Object.fromEntries(Object.entries(t.value).filter((V) => V[1].search).map(([V, b]) => [V, b.value]));
1396
- const F = ve(Y), T = {
1411
+ const t = Ie(f, "modelValue"), e = c, a = at("options"), d = ye(!1);
1412
+ let U = Object.fromEntries(Object.entries(t.value).filter((V) => V[1].search).map(([V, b]) => [V, b.value]));
1413
+ const T = ye(U), F = {
1397
1414
  hidden: !1,
1398
1415
  type: "hidden",
1399
1416
  labelWidth: 100,
@@ -1402,7 +1419,7 @@ const et = /* @__PURE__ */ Ut(jt), Rt = {
1402
1419
  style: { display: "flex", flex: 1, "flex-wrap": "wrap" },
1403
1420
  container: {
1404
1421
  inline: !1,
1405
- style: { flexDirection: "column" }
1422
+ style: { flexDirection: "column", paddingBottom: "0px", paddingTop: "18px", boxSizing: "border-box" }
1406
1423
  },
1407
1424
  more: {
1408
1425
  mode: 1,
@@ -1419,7 +1436,7 @@ const et = /* @__PURE__ */ Ut(jt), Rt = {
1419
1436
  hidden: !1,
1420
1437
  plain: !1,
1421
1438
  click: () => {
1422
- F.value = ve(Y), e("reset", F.value);
1439
+ T.value = ye(U), e("reset", T.value);
1423
1440
  }
1424
1441
  },
1425
1442
  query: {
@@ -1427,7 +1444,7 @@ const et = /* @__PURE__ */ Ut(jt), Rt = {
1427
1444
  type: "primary",
1428
1445
  label: "查询",
1429
1446
  click: () => {
1430
- e("query", F.value), d.value = !1;
1447
+ e("query", T.value), d.value = !1;
1431
1448
  }
1432
1449
  },
1433
1450
  btns: {
@@ -1435,11 +1452,13 @@ const et = /* @__PURE__ */ Ut(jt), Rt = {
1435
1452
  style: {
1436
1453
  display: "flex",
1437
1454
  flexWrap: "wrap",
1438
- justifyContent: "flex-end"
1455
+ justifyContent: "flex-end",
1456
+ paddingBottom: "18px",
1457
+ boxSizing: "border-box"
1439
1458
  }
1440
1459
  }
1441
1460
  };
1442
- t.value.query = Me(T, r == null ? void 0 : r.query, t.value.query);
1461
+ t.value.query = Me(F, a == null ? void 0 : a.query, t.value.query);
1443
1462
  const E = {
1444
1463
  2: {
1445
1464
  title: "更多查询",
@@ -1468,21 +1487,21 @@ const et = /* @__PURE__ */ Ut(jt), Rt = {
1468
1487
  width: "280px"
1469
1488
  }
1470
1489
  };
1471
- t.value.queryItems = Me(D, r == null ? void 0 : r.queryItems, t.value.queryItems);
1472
- const N = (V, b) => {
1473
- const w = Object.keys(V.slots).filter((ae) => ae !== "default").reduce((ae, K) => (ae[K] = (ne) => V.slots[K]({
1490
+ t.value.queryItems = Me(D, a == null ? void 0 : a.queryItems, t.value.queryItems);
1491
+ const z = (V, b) => {
1492
+ const w = Object.keys(V.slots).filter((ae) => ae !== "default").reduce((ae, K) => (ae[K] = (ue) => V.slots[K]({
1474
1493
  model: t.value
1475
1494
  // 传递当前模型数据
1476
1495
  }), ae), {});
1477
1496
  return qe(mt, {
1478
1497
  modelValue: t.value,
1479
1498
  "onUpdate:modelValue": (ae) => t.value = ae,
1480
- info: F.value,
1481
- "onUpdate:info": (ae) => F.value = ae,
1499
+ info: T.value,
1500
+ "onUpdate:info": (ae) => T.value = ae,
1482
1501
  more: b
1483
1502
  }, w);
1484
- }, te = yt(), L = () => {
1485
- var w, ae, K, ne, ie, fe, pe, m, M;
1503
+ }, te = ht(), R = () => {
1504
+ var w, ae, K, ue, de, me, pe, m, M;
1486
1505
  const V = [
1487
1506
  {
1488
1507
  key: "query",
@@ -1497,7 +1516,7 @@ const et = /* @__PURE__ */ Ut(jt), Rt = {
1497
1516
  },
1498
1517
  {
1499
1518
  key: "reset",
1500
- hidden: (fe = (ie = (ne = t.value) == null ? void 0 : ne.query) == null ? void 0 : ie.reset) == null ? void 0 : fe.hidden,
1519
+ hidden: (me = (de = (ue = t.value) == null ? void 0 : ue.query) == null ? void 0 : de.reset) == null ? void 0 : me.hidden,
1501
1520
  component: _e,
1502
1521
  props: {
1503
1522
  ...t.value.query.reset,
@@ -1516,135 +1535,114 @@ const et = /* @__PURE__ */ Ut(jt), Rt = {
1516
1535
  },
1517
1536
  label: t.value.query.more.label,
1518
1537
  sort: t.value.query.more.sort || 0,
1519
- content: t.value.query.more.mode === 3 ? () => qe(ze, {
1538
+ content: t.value.query.more.mode === 3 ? () => qe(We, {
1520
1539
  class: "query-form",
1521
1540
  ...ke(t.value.query, (C) => !["query", "more", "reset"].includes(C))
1522
- }, () => N({ slots: te }, !0)) : null
1541
+ }, () => z({ slots: te }, !0)) : null
1523
1542
  }
1524
1543
  ];
1525
- return V.sort((C, y) => C.sort - y.sort), V.filter((C) => !C.hidden).map((C) => C.key === "more" && C.component === Ke ? qe(Ke, C.props, {
1544
+ return V.sort((C, h) => C.sort - h.sort), V.filter((C) => !C.hidden).map((C) => C.key === "more" && C.component === Ke ? qe(Ke, C.props, {
1526
1545
  reference: () => qe(_e, t.value.query.more, () => C.label),
1527
1546
  default: C.content
1528
1547
  }) : (C.props.slot = "query-" + C.key, C.label ? qe(C.component, C.props, () => C.label) : qe(C.component, C.props)));
1529
1548
  };
1530
1549
  return (V, b) => {
1531
- var K, ne, ie, fe, pe, m, M, C, y, I, ee, re, x, $, g, _, s;
1532
- const w = R("el-form-item"), ae = R("el-drawer");
1533
- return n(), q("div", {
1534
- class: "g-query-container",
1535
- style: Ae((ne = (K = t.value.query) == null ? void 0 : K.container) == null ? void 0 : ne.style)
1536
- }, [
1537
- X(o(ze), Qe(ft(o(ke)(t.value.query, (i) => !["query", "more", "reset", "btns"].includes(i)))), {
1538
- default: h(() => {
1539
- var i, A;
1540
- return [
1541
- (n(), O(xe(N({ slots: V.$slots }, void 0)))),
1542
- ((A = (i = t.value.query) == null ? void 0 : i.container) == null ? void 0 : A.inline) === !0 ? (n(), O(w, { key: 0 }, {
1543
- default: h(() => {
1544
- var H, J, ue, de, he;
1545
- return [
1546
- Z("div", {
1547
- style: Ae((J = (H = t.value.query) == null ? void 0 : H.btns) == null ? void 0 : J.style)
1548
- }, [
1549
- t.value.query.group ? (n(), O(o(Ge), { key: 0 }, {
1550
- default: h(() => [
1551
- (n(!0), q(G, null, j(L(), ($e) => p(V.$slots, $e.props.slot, {}, () => [
1552
- (n(), O(xe($e)))
1553
- ], !0)), 256)),
1554
- p(V.$slots, "q-btns", {}, void 0, !0)
1555
- ]),
1556
- _: 3
1557
- })) : (n(), q(G, { key: 1 }, [
1558
- (he = (de = (ue = t.value) == null ? void 0 : ue.query) == null ? void 0 : de.btns) != null && he.group ? (n(), O(o(Ge), { key: 0 }, {
1559
- default: h(() => [
1560
- (n(!0), q(G, null, j(L(), ($e) => p(V.$slots, $e.props.slot, {}, () => [
1561
- (n(), O(xe($e)))
1562
- ], !0)), 256))
1550
+ var K, ue, de, me, pe, m, M, C, h, I, ee, ne, B, $, g, _, s;
1551
+ const w = L("el-form-item"), ae = L("el-drawer");
1552
+ return n(), x(P, null, [
1553
+ J("div", {
1554
+ class: "g-query-container",
1555
+ style: Oe((ue = (K = t.value.query) == null ? void 0 : K.container) == null ? void 0 : ue.style)
1556
+ }, [
1557
+ Z(o(We), Qe(ft(o(ke)(t.value.query, (i) => !["query", "more", "reset", "btns"].includes(i)))), {
1558
+ default: y(() => {
1559
+ var i, A;
1560
+ return [
1561
+ (n(), q(Ae(z({ slots: V.$slots }, void 0)))),
1562
+ ((A = (i = t.value.query) == null ? void 0 : i.container) == null ? void 0 : A.inline) === !0 ? (n(), q(w, { key: 0 }, {
1563
+ default: y(() => {
1564
+ var H, X, se, ce, he;
1565
+ return [
1566
+ J("div", {
1567
+ style: Oe((X = (H = t.value.query) == null ? void 0 : H.btns) == null ? void 0 : X.style)
1568
+ }, [
1569
+ t.value.query.group ? (n(), q(o(Ge), { key: 0 }, {
1570
+ default: y(() => [
1571
+ (n(!0), x(P, null, Y(R(), (ve) => p(V.$slots, ve.props.slot, {}, () => [
1572
+ (n(), q(Ae(ve)))
1573
+ ], !0)), 256)),
1574
+ p(V.$slots, "q-btns", {}, void 0, !0)
1563
1575
  ]),
1564
1576
  _: 3
1565
- })) : (n(!0), q(G, { key: 1 }, j(L(), ($e) => p(V.$slots, $e.props.slot, {}, () => [
1566
- (n(), O(xe($e)))
1567
- ], !0)), 256)),
1568
- p(V.$slots, "q-btns", {}, void 0, !0)
1569
- ], 64))
1570
- ], 4)
1571
- ];
1572
- }),
1573
- _: 3
1574
- })) : be("", !0)
1575
- ];
1576
- }),
1577
- _: 3
1578
- }, 16),
1579
- ((pe = (fe = (ie = t.value) == null ? void 0 : ie.query) == null ? void 0 : fe.container) == null ? void 0 : pe.inline) === !1 ? (n(), q("div", {
1580
- key: 0,
1581
- style: Ae((M = (m = t.value.query) == null ? void 0 : m.btns) == null ? void 0 : M.style)
1582
- }, [
1583
- t.value.query.group ? (n(), O(o(Ge), { key: 0 }, {
1584
- default: h(() => [
1585
- (n(!0), q(G, null, j(L(), (i) => p(V.$slots, i.props.slot, {}, () => [
1586
- (n(), O(xe(i)))
1587
- ], !0)), 256)),
1588
- p(V.$slots, "q-btns", {}, void 0, !0)
1589
- ]),
1577
+ })) : (n(), x(P, { key: 1 }, [
1578
+ (he = (ce = (se = t.value) == null ? void 0 : se.query) == null ? void 0 : ce.btns) != null && he.group ? (n(), q(o(Ge), { key: 0 }, {
1579
+ default: y(() => [
1580
+ (n(!0), x(P, null, Y(R(), (ve) => p(V.$slots, ve.props.slot, {}, () => [
1581
+ (n(), q(Ae(ve)))
1582
+ ], !0)), 256))
1583
+ ]),
1584
+ _: 3
1585
+ })) : (n(!0), x(P, { key: 1 }, Y(R(), (ve) => p(V.$slots, ve.props.slot, {}, () => [
1586
+ (n(), q(Ae(ve)))
1587
+ ], !0)), 256)),
1588
+ p(V.$slots, "q-btns", {}, void 0, !0)
1589
+ ], 64))
1590
+ ], 4)
1591
+ ];
1592
+ }),
1593
+ _: 3
1594
+ })) : $e("", !0)
1595
+ ];
1596
+ }),
1590
1597
  _: 3
1591
- })) : (n(), q(G, { key: 1 }, [
1592
- (y = (C = t.value.query) == null ? void 0 : C.btns) != null && y.group ? (n(), O(o(Ge), { key: 0 }, {
1593
- default: h(() => [
1594
- (n(!0), q(G, null, j(L(), (i) => p(V.$slots, i.props.slot, {}, () => [
1595
- (n(), O(xe(i)))
1596
- ], !0)), 256))
1598
+ }, 16),
1599
+ ((pe = (me = (de = t.value) == null ? void 0 : de.query) == null ? void 0 : me.container) == null ? void 0 : pe.inline) === !1 ? (n(), x("div", {
1600
+ key: 0,
1601
+ style: Oe((M = (m = t.value.query) == null ? void 0 : m.btns) == null ? void 0 : M.style)
1602
+ }, [
1603
+ t.value.query.group ? (n(), q(o(Ge), { key: 0 }, {
1604
+ default: y(() => [
1605
+ (n(!0), x(P, null, Y(R(), (i) => p(V.$slots, i.props.slot, {}, () => [
1606
+ (n(), q(Ae(i)))
1607
+ ], !0)), 256)),
1608
+ p(V.$slots, "q-btns", {}, void 0, !0)
1597
1609
  ]),
1598
1610
  _: 3
1599
- })) : (n(!0), q(G, { key: 1 }, j(L(), (i) => p(V.$slots, i.props.slot, {}, () => [
1600
- (n(), O(xe(i)))
1601
- ], !0)), 256)),
1602
- p(V.$slots, "q-btns", {}, void 0, !0)
1603
- ], 64))
1604
- ], 4)) : be("", !0),
1605
- X(Vt, {
1606
- duration: 300,
1607
- name: "nested"
1608
- }, {
1609
- default: h(() => {
1610
- var i, A, H;
1611
- return [
1612
- d.value && !((H = (A = (i = t.value) == null ? void 0 : i.query) == null ? void 0 : A.more) != null && H.hidden) && t.value.query.more.mode == 1 ? (n(), q("div", Gt, [
1613
- Z("div", Qt, [
1614
- t.value.query.more.mode == 1 ? Mt((n(), O(o(ze), Qe(S({ key: 0 }, o(ke)(t.value.query, (J) => !["query", "more", "reset"].includes(J)))), {
1615
- default: h(() => [
1616
- (n(), O(xe(N({ slots: V.$slots }, !0))))
1617
- ]),
1618
- _: 1
1619
- }, 16)), [
1620
- [Ft, d.value]
1621
- ]) : be("", !0)
1622
- ])
1623
- ])) : be("", !0)
1624
- ];
1625
- }),
1626
- _: 1
1627
- }),
1628
- d.value && !((re = (ee = (I = t.value) == null ? void 0 : I.query) == null ? void 0 : ee.more) != null && re.hidden) && t.value.query.more.mode == 2 ? (n(), O(ae, S({
1629
- key: 1,
1611
+ })) : (n(), x(P, { key: 1 }, [
1612
+ (h = (C = t.value.query) == null ? void 0 : C.btns) != null && h.group ? (n(), q(o(Ge), { key: 0 }, {
1613
+ default: y(() => [
1614
+ (n(!0), x(P, null, Y(R(), (i) => p(V.$slots, i.props.slot, {}, () => [
1615
+ (n(), q(Ae(i)))
1616
+ ], !0)), 256))
1617
+ ]),
1618
+ _: 3
1619
+ })) : (n(!0), x(P, { key: 1 }, Y(R(), (i) => p(V.$slots, i.props.slot, {}, () => [
1620
+ (n(), q(Ae(i)))
1621
+ ], !0)), 256)),
1622
+ p(V.$slots, "q-btns", {}, void 0, !0)
1623
+ ], 64))
1624
+ ], 4)) : $e("", !0)
1625
+ ], 4),
1626
+ d.value && !((ne = (ee = (I = t.value) == null ? void 0 : I.query) == null ? void 0 : ee.more) != null && ne.hidden) && t.value.query.more.mode == 2 ? (n(), q(ae, S({
1627
+ key: 0,
1630
1628
  modelValue: d.value,
1631
1629
  "onUpdate:modelValue": b[4] || (b[4] = (i) => d.value = i),
1632
1630
  title: "更多查询",
1633
1631
  "show-close": !1
1634
- }, t.value.query.more.dialog), ce({
1635
- default: h(() => [
1636
- X(o(ze), S(o(ke)(t.value.query, (i) => !["query", "more", "reset"].includes(i)), { style: { width: "98%" } }), {
1637
- default: h(() => [
1638
- X(mt, {
1632
+ }, t.value.query.more.dialog), fe({
1633
+ default: y(() => [
1634
+ Z(o(We), S(o(ke)(t.value.query, (i) => !["query", "more", "reset"].includes(i)), { style: { width: "98%" } }), {
1635
+ default: y(() => [
1636
+ Z(mt, {
1639
1637
  modelValue: t.value,
1640
1638
  "onUpdate:modelValue": b[0] || (b[0] = (i) => t.value = i),
1641
- info: F.value,
1642
- "onUpdate:info": b[1] || (b[1] = (i) => F.value = i),
1639
+ info: T.value,
1640
+ "onUpdate:info": b[1] || (b[1] = (i) => T.value = i),
1643
1641
  more: !0
1644
- }, ce({ _: 2 }, [
1645
- j(V.$slots, (i, A, H) => ({
1642
+ }, fe({ _: 2 }, [
1643
+ Y(V.$slots, (i, A, H) => ({
1646
1644
  name: A,
1647
- fn: h((J) => [
1645
+ fn: y((X) => [
1648
1646
  p(V.$slots, A, { model: t.value }, void 0, !0)
1649
1647
  ])
1650
1648
  }))
@@ -1655,22 +1653,22 @@ const et = /* @__PURE__ */ Ut(jt), Rt = {
1655
1653
  ]),
1656
1654
  _: 2
1657
1655
  }, [
1658
- (s = (_ = (g = ($ = (x = t.value) == null ? void 0 : x.query) == null ? void 0 : $.more) == null ? void 0 : g.dialog) == null ? void 0 : _.footer) != null && s.hidden ? void 0 : {
1656
+ (s = (_ = (g = ($ = (B = t.value) == null ? void 0 : B.query) == null ? void 0 : $.more) == null ? void 0 : g.dialog) == null ? void 0 : _.footer) != null && s.hidden ? void 0 : {
1659
1657
  name: "footer",
1660
- fn: h(() => [
1661
- Z("div", Qe(ft(t.value.query.more.dialog.footer)), [
1662
- X(o(_e), S(t.value.query.query, {
1658
+ fn: y(() => [
1659
+ J("div", Qe(ft(t.value.query.more.dialog.footer)), [
1660
+ Z(o(_e), S(t.value.query.query, {
1663
1661
  onClick: b[2] || (b[2] = (i) => t.value.query.query.click())
1664
1662
  }), {
1665
- default: h(() => [
1663
+ default: y(() => [
1666
1664
  we(Ee(t.value.query.query.label), 1)
1667
1665
  ]),
1668
1666
  _: 1
1669
1667
  }, 16),
1670
- X(o(_e), S(t.value.query.reset, {
1668
+ Z(o(_e), S(t.value.query.reset, {
1671
1669
  onClick: b[3] || (b[3] = (i) => t.value.query.reset.click())
1672
1670
  }), {
1673
- default: h(() => [
1671
+ default: y(() => [
1674
1672
  we(Ee(t.value.query.reset.label), 1)
1675
1673
  ]),
1676
1674
  _: 1
@@ -1679,14 +1677,38 @@ const et = /* @__PURE__ */ Ut(jt), Rt = {
1679
1677
  ]),
1680
1678
  key: "0"
1681
1679
  }
1682
- ]), 1040, ["modelValue"])) : be("", !0)
1683
- ], 4);
1680
+ ]), 1040, ["modelValue"])) : $e("", !0),
1681
+ Z(Vt, {
1682
+ duration: 300,
1683
+ name: "nested",
1684
+ style: { padding: "10px" }
1685
+ }, {
1686
+ default: y(() => {
1687
+ var i, A, H;
1688
+ return [
1689
+ d.value && !((H = (A = (i = t.value) == null ? void 0 : i.query) == null ? void 0 : A.more) != null && H.hidden) && t.value.query.more.mode == 1 ? (n(), x("div", Gt, [
1690
+ J("div", Qt, [
1691
+ t.value.query.more.mode == 1 ? Mt((n(), q(o(We), Qe(S({ key: 0 }, o(ke)(t.value.query, (X) => !["query", "more", "reset"].includes(X)))), {
1692
+ default: y(() => [
1693
+ (n(), q(Ae(z({ slots: V.$slots }, !0))))
1694
+ ]),
1695
+ _: 1
1696
+ }, 16)), [
1697
+ [Tt, d.value]
1698
+ ]) : $e("", !0)
1699
+ ])
1700
+ ])) : $e("", !0)
1701
+ ];
1702
+ }),
1703
+ _: 1
1704
+ })
1705
+ ], 64);
1684
1706
  };
1685
1707
  }
1686
- }, Jt = /* @__PURE__ */ Ue(Xt, [["__scopeId", "data-v-ff97bb8a"]]), Zt = { style: { padding: "0", margin: "0", "box-sizing": "border-box" } }, Kt = { style: { padding: "10px", "box-sizing": "border-box" } }, el = { style: { margin: "10px" } }, tl = {
1708
+ }, Jt = /* @__PURE__ */ Ue(Xt, [["__scopeId", "data-v-2a0af9cc"]]), Zt = { style: { padding: "0", margin: "0", "box-sizing": "border-box" } }, Kt = { style: { padding: "10px", "box-sizing": "border-box" } }, el = { style: { margin: "10px" } }, tl = {
1687
1709
  style: { display: "flex", "flex-wrap": "wrap" },
1688
1710
  id: "excelSortEl"
1689
- }, ll = ["textContent"], ol = { style: { width: "100%", display: "flex", padding: "10px", "box-sizing": "border-box", "justify-content": "center", "border-top": "1px solid #dcdfe6" } }, al = {
1711
+ }, ll = ["textContent"], ol = { style: { width: "100%", display: "flex", padding: "10px", "box-sizing": "border-box", "justify-content": "center", "border-top": "1px solid #dcdfe6" } }, rl = {
1690
1712
  __name: "check-excel-item",
1691
1713
  props: {
1692
1714
  items: Array,
@@ -1694,64 +1716,64 @@ const et = /* @__PURE__ */ Ut(jt), Rt = {
1694
1716
  },
1695
1717
  emits: ["excel"],
1696
1718
  setup(f, { emit: c }) {
1697
- const t = f, e = c, r = ve(t.items), d = () => {
1698
- r.value.forEach((T) => {
1699
- T.value = !0;
1719
+ const t = f, e = c, a = ye(t.items), d = () => {
1720
+ a.value.forEach((F) => {
1721
+ F.value = !0;
1700
1722
  });
1701
- }, Y = () => {
1702
- r.value.forEach((T) => {
1703
- T.value = !1;
1723
+ }, U = () => {
1724
+ a.value.forEach((F) => {
1725
+ F.value = !1;
1704
1726
  });
1705
- }, F = () => {
1706
- e("excel", r.value, (T, E = "excel.xls") => {
1707
- if (!T) {
1727
+ }, T = () => {
1728
+ e("excel", a.value, (F, E = "excel.xls") => {
1729
+ if (!F) {
1708
1730
  console.error("下载链接无效");
1709
1731
  return;
1710
1732
  }
1711
1733
  try {
1712
1734
  const D = document.createElement("a");
1713
- D.href = T, D.download = E, D.style.display = "none", document.body.appendChild(D), D.click(), document.body.removeChild(D);
1735
+ D.href = F, D.download = E, D.style.display = "none", document.body.appendChild(D), D.click(), document.body.removeChild(D);
1714
1736
  } catch (D) {
1715
1737
  console.error("下载文件时出现错误:", D);
1716
1738
  }
1717
1739
  });
1718
1740
  };
1719
1741
  return Ne(() => {
1720
- const T = new bt(document.getElementById("excelSortEl"), {
1742
+ const F = new bt(document.getElementById("excelSortEl"), {
1721
1743
  animation: 150,
1722
1744
  onEnd: () => {
1723
- let D = T.toArray();
1745
+ let D = F.toArray();
1724
1746
  console.log(D);
1725
1747
  }
1726
- }), E = T;
1727
- Tt(() => {
1748
+ }), E = F;
1749
+ Ft(() => {
1728
1750
  E && E.destroy();
1729
1751
  });
1730
- }), (T, E) => {
1731
- const D = R("el-divider"), N = R("el-alert"), te = R("el-checkbox"), L = R("el-button");
1732
- return n(), q("div", Zt, [
1733
- Z("div", Kt, [
1734
- Z("div", el, [
1735
- Z("a", {
1752
+ }), (F, E) => {
1753
+ const D = L("el-divider"), z = L("el-alert"), te = L("el-checkbox"), R = L("el-button");
1754
+ return n(), x("div", Zt, [
1755
+ J("div", Kt, [
1756
+ J("div", el, [
1757
+ J("a", {
1736
1758
  onClick: d,
1737
1759
  style: { cursor: "pointer" }
1738
1760
  }, "全选"),
1739
- X(D, { direction: "vertical" }),
1740
- Z("a", {
1741
- onClick: Y,
1761
+ Z(D, { direction: "vertical" }),
1762
+ J("a", {
1763
+ onClick: U,
1742
1764
  style: { cursor: "pointer" }
1743
1765
  }, "全不选")
1744
1766
  ]),
1745
- X(N, {
1767
+ Z(z, {
1746
1768
  title: "拖动列标题可以改变表格列的生成顺序 !",
1747
1769
  type: "warning",
1748
1770
  "show-icon": "",
1749
1771
  closable: !1,
1750
1772
  style: { "margin-bottom": "10px" }
1751
1773
  }),
1752
- E[0] || (E[0] = Z("div", { style: { margin: "1px 0" } }, null, -1)),
1753
- Z("div", tl, [
1754
- (n(!0), q(G, null, j(r.value, (V) => (n(), O(te, {
1774
+ E[0] || (E[0] = J("div", { style: { margin: "1px 0" } }, null, -1)),
1775
+ J("div", tl, [
1776
+ (n(!0), x(P, null, Y(a.value, (V) => (n(), q(te, {
1755
1777
  class: "check-box-hover",
1756
1778
  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" },
1757
1779
  "data-id": V.key,
@@ -1760,8 +1782,8 @@ const et = /* @__PURE__ */ Ut(jt), Rt = {
1760
1782
  key: V.key,
1761
1783
  title: V.label
1762
1784
  }, {
1763
- default: h(() => [
1764
- Z("span", {
1785
+ default: y(() => [
1786
+ J("span", {
1765
1787
  textContent: Ee(V.label),
1766
1788
  style: { display: "block", "text-overflow": "ellipsis", width: "95px", overflow: "hidden" }
1767
1789
  }, null, 8, ll)
@@ -1770,13 +1792,13 @@ const et = /* @__PURE__ */ Ut(jt), Rt = {
1770
1792
  }, 1032, ["data-id", "modelValue", "onUpdate:modelValue", "title"]))), 128))
1771
1793
  ])
1772
1794
  ]),
1773
- Z("div", ol, [
1774
- X(L, {
1795
+ J("div", ol, [
1796
+ Z(R, {
1775
1797
  type: "primary",
1776
- onClick: F,
1777
- disabled: r.value.filter((V) => V.value).length < 1
1798
+ onClick: T,
1799
+ disabled: a.value.filter((V) => V.value).length < 1
1778
1800
  }, {
1779
- default: h(() => [
1801
+ default: y(() => [
1780
1802
  we(Ee(t.commitText), 1)
1781
1803
  ]),
1782
1804
  _: 1
@@ -1785,36 +1807,36 @@ const et = /* @__PURE__ */ Ut(jt), Rt = {
1785
1807
  ]);
1786
1808
  };
1787
1809
  }
1788
- }, rl = /* @__PURE__ */ Ue(al, [["__scopeId", "data-v-51dfb7ef"]]), Oe = new Bt("gyc");
1789
- Oe.version(1).stores({
1810
+ }, al = /* @__PURE__ */ Ue(rl, [["__scopeId", "data-v-51dfb7ef"]]), xe = new Bt("gyc");
1811
+ xe.version(1).stores({
1790
1812
  tableInfo: "++id,[user+page+key],user,page,key,showCol,width,sort",
1791
1813
  tableList: "++id,name"
1792
1814
  });
1793
1815
  async function He(f, c, t, e = {}) {
1794
- if (await Oe.tableInfo.where({ user: f, page: c, key: t }).count() > 0) {
1795
- let d = await Oe.tableInfo.where({ user: f, page: c, key: t }).first();
1796
- return await Oe.tableInfo.put({ ...d, ...e }), "update success";
1816
+ if (await xe.tableInfo.where({ user: f, page: c, key: t }).count() > 0) {
1817
+ let d = await xe.tableInfo.where({ user: f, page: c, key: t }).first();
1818
+ return await xe.tableInfo.put({ ...d, ...e }), "update success";
1797
1819
  } else {
1798
1820
  let d = { showCol: !0, width: "auto", sort: 0, ...e };
1799
- return await Oe.tableInfo.add({ user: f, page: c, key: t, ...d }), "add success";
1821
+ return await xe.tableInfo.add({ user: f, page: c, key: t, ...d }), "add success";
1800
1822
  }
1801
1823
  }
1802
1824
  async function nl(f, c) {
1803
- return await Oe.tableInfo.where({ user: f, page: c }).toArray();
1825
+ return await xe.tableInfo.where({ user: f, page: c }).toArray();
1804
1826
  }
1805
1827
  async function ul(f, c) {
1806
1828
  try {
1807
- const t = await Oe.tableInfo.where({ user: f, page: c }).delete();
1829
+ const t = await xe.tableInfo.where({ user: f, page: c }).delete();
1808
1830
  return console.log("删除了" + t + "条数据"), t;
1809
1831
  } catch (t) {
1810
1832
  throw console.error("删除表格项设置信息时出错:", t), t;
1811
1833
  }
1812
1834
  }
1813
1835
  async function sl(f) {
1814
- return await Oe.tableList.where({ name: f }).first();
1836
+ return await xe.tableList.where({ name: f }).first();
1815
1837
  }
1816
1838
  async function il(f) {
1817
- return typeof f == "string" && (f = { name: f }), await Oe.tableList.add(f), "add success";
1839
+ return typeof f == "string" && (f = { name: f }), await xe.tableList.add(f), "add success";
1818
1840
  }
1819
1841
  const dl = {
1820
1842
  style: { margin: "10px" },
@@ -1835,13 +1857,13 @@ const dl = {
1835
1857
  }),
1836
1858
  emits: ["update:modelValue"],
1837
1859
  setup(f) {
1838
- const c = f, t = ve([]), e = Ie(f, "modelValue"), r = async (E, D) => {
1860
+ const c = f, t = ye([]), e = Ie(f, "modelValue"), a = async (E, D) => {
1839
1861
  E ? e.value[D].showCol = !0 : e.value[D].showCol = !1;
1840
1862
  try {
1841
- const N = await He(e.value.table.user, c.name, D, { showCol: E });
1842
- console.log(N);
1843
- } catch (N) {
1844
- console.error("列显示状态保存信息时出错:", N), Fe({
1863
+ const z = await He(e.value.table.user, c.name, D, { showCol: E });
1864
+ console.log(z);
1865
+ } catch (z) {
1866
+ console.error("列显示状态保存信息时出错:", z), Te({
1845
1867
  type: "error",
1846
1868
  message: "列显示状态保存信息失败!"
1847
1869
  });
@@ -1855,14 +1877,14 @@ const dl = {
1855
1877
  //
1856
1878
  sort: !0,
1857
1879
  onEnd: () => {
1858
- D.toArray().forEach(async (te, L) => {
1859
- e.value[te].sort = L;
1880
+ D.toArray().forEach(async (te, R) => {
1881
+ e.value[te].sort = R;
1860
1882
  let V = e.value[te].width || "auto";
1861
1883
  try {
1862
- const b = await He(e.value.table.user, c.name, te, { sort: L, width: V });
1884
+ const b = await He(e.value.table.user, c.name, te, { sort: R, width: V });
1863
1885
  console.log(b);
1864
1886
  } catch (b) {
1865
- console.error("列排序和宽度保存信息时出错:", b), Fe({
1887
+ console.error("列排序和宽度保存信息时出错:", b), Te({
1866
1888
  type: "error",
1867
1889
  message: "列排序和宽度保存信息失败!"
1868
1890
  });
@@ -1871,7 +1893,7 @@ const dl = {
1871
1893
  }
1872
1894
  });
1873
1895
  }
1874
- }, Y = async () => {
1896
+ }, U = async () => {
1875
1897
  try {
1876
1898
  for (const E of t.value) {
1877
1899
  E.showCol = !0, e.value[E.value].showCol = !0;
@@ -1883,30 +1905,30 @@ const dl = {
1883
1905
  console.log(D);
1884
1906
  }
1885
1907
  } catch (E) {
1886
- console.error("全选列保存信息时出错:", E), Fe({
1908
+ console.error("全选列保存信息时出错:", E), Te({
1887
1909
  type: "error",
1888
1910
  message: "全选列保存信息失败!"
1889
1911
  });
1890
1912
  }
1891
- }, F = async () => {
1913
+ }, T = async () => {
1892
1914
  try {
1893
1915
  const E = t.value.filter((D) => !D.alwaysShow);
1894
1916
  for (const D of E) {
1895
1917
  D.showCol = !1, e.value[D.value].showCol = !1;
1896
- const N = await He(e.value.table.user, c.name, D.value, {
1918
+ const z = await He(e.value.table.user, c.name, D.value, {
1897
1919
  showCol: !1,
1898
1920
  width: D.width,
1899
1921
  sort: D.sort
1900
1922
  });
1901
- console.log(N);
1923
+ console.log(z);
1902
1924
  }
1903
1925
  } catch (E) {
1904
- console.error("清除列保存信息时出错:", E), Fe({
1926
+ console.error("清除列保存信息时出错:", E), Te({
1905
1927
  type: "error",
1906
1928
  message: "清除列保存信息失败!"
1907
1929
  });
1908
1930
  }
1909
- }, T = () => {
1931
+ }, F = () => {
1910
1932
  vt.confirm("确定要复位吗?", "提示", {
1911
1933
  confirmButtonText: "确定",
1912
1934
  cancelButtonText: "取消",
@@ -1915,7 +1937,7 @@ const dl = {
1915
1937
  ul(e.value.table.user, c.name).then((E) => {
1916
1938
  console.log(E), window.location.reload();
1917
1939
  }).catch((E) => {
1918
- console.error("复位操作出错:", E), Fe({
1940
+ console.error("复位操作出错:", E), Te({
1919
1941
  type: "info",
1920
1942
  message: "复位失败!"
1921
1943
  });
@@ -1932,38 +1954,38 @@ const dl = {
1932
1954
  width: D.width || "auto"
1933
1955
  })).sort((E, D) => E.sort - D.sort), d();
1934
1956
  }), (E, D) => {
1935
- const N = R("el-divider"), te = R("el-alert"), L = R("el-checkbox");
1936
- return n(), q("div", null, [
1937
- Z("div", dl, [
1938
- Z("a", { onClick: Y }, "全选"),
1939
- X(N, { direction: "vertical" }),
1940
- Z("a", { onClick: F }, "全不选"),
1941
- X(N, { direction: "vertical" }),
1942
- Z("a", { onClick: T }, "复位")
1957
+ const z = L("el-divider"), te = L("el-alert"), R = L("el-checkbox");
1958
+ return n(), x("div", null, [
1959
+ J("div", dl, [
1960
+ J("a", { onClick: U }, "全选"),
1961
+ Z(z, { direction: "vertical" }),
1962
+ J("a", { onClick: T }, "全不选"),
1963
+ Z(z, { direction: "vertical" }),
1964
+ J("a", { onClick: F }, "复位")
1943
1965
  ]),
1944
- X(te, {
1966
+ Z(te, {
1945
1967
  title: "拖动表格列标题可以改变表格列显示顺序 !",
1946
1968
  type: "warning",
1947
1969
  "show-icon": "",
1948
1970
  closable: !1,
1949
1971
  style: { "margin-bottom": "10px" }
1950
1972
  }),
1951
- Z("div", null, [
1952
- Z("div", cl, [
1953
- (n(!0), q(G, null, j(t.value, (V) => (n(), O(L, {
1973
+ J("div", null, [
1974
+ J("div", cl, [
1975
+ (n(!0), x(P, null, Y(t.value, (V) => (n(), q(R, {
1954
1976
  modelValue: V.showCol,
1955
1977
  "onUpdate:modelValue": (b) => V.showCol = b,
1956
1978
  "data-id": V.value,
1957
1979
  class: gt(["check-box-hover", V.value == "control" ? "filtered" : ""]),
1958
- onChange: (b) => r(b, V.value),
1980
+ onChange: (b) => a(b, V.value),
1959
1981
  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" },
1960
1982
  value: V.value,
1961
1983
  title: V.label,
1962
1984
  disabled: V.alwaysShow,
1963
1985
  key: V.value
1964
1986
  }, {
1965
- default: h(() => [
1966
- Z("span", {
1987
+ default: y(() => [
1988
+ J("span", {
1967
1989
  textContent: Ee(V.label),
1968
1990
  style: { display: "block", "text-overflow": "ellipsis", width: "95px", overflow: "hidden" }
1969
1991
  }, null, 8, fl)
@@ -1975,10 +1997,10 @@ const dl = {
1975
1997
  ]);
1976
1998
  };
1977
1999
  }
1978
- }, pl = /* @__PURE__ */ Ue(ml, [["__scopeId", "data-v-c423ede0"]]), vl = { class: "g-table-container" }, hl = {
2000
+ }, pl = /* @__PURE__ */ Ue(ml, [["__scopeId", "data-v-c423ede0"]]), vl = { class: "g-table-container" }, yl = {
1979
2001
  key: 0,
1980
2002
  class: "table-query-container"
1981
- }, yl = { class: "table-container" }, gl = ["src"], bl = ["innerHTML"], $l = { key: 0 }, El = { style: { display: "flex", "margin-top": "-2px" } }, wl = { style: { display: "flex", flex: "1" } }, _l = {
2003
+ }, hl = { class: "table-container" }, gl = ["src"], bl = ["innerHTML"], $l = { key: 0 }, El = { style: { display: "flex", "margin-top": "-2px" } }, wl = { style: { display: "flex", flex: "1" } }, _l = {
1982
2004
  style: { display: "flex", "justify-content": "center", width: "100%", height: "100%" },
1983
2005
  id: "table-form"
1984
2006
  }, kl = { key: 1 }, Cl = { style: { display: "flex" } }, Dl = { style: { display: "flex", flex: "1" } }, Vl = /* @__PURE__ */ Object.assign({
@@ -1995,10 +2017,10 @@ const dl = {
1995
2017
  }),
1996
2018
  emits: /* @__PURE__ */ Be(["load", "open", "delete", "submit", "reset", "download", "row-save"], ["update:modelValue"]),
1997
2019
  setup(f, { emit: c }) {
1998
- var Ce, Te, De, u, P, se, Ve;
1999
- const t = c, e = Ie(f, "modelValue"), r = rt("options"), d = ve({}), Y = Object.entries(e.value).filter(([l, a]) => (a == null ? void 0 : a.search) !== void 0).map(([l, a]) => [l, a.value]);
2000
- d.value = Object.fromEntries(Y);
2001
- const F = ve(!1), T = ["type", "index", "label", "column-key", "prop", "width", "min-width", "fixed", "render-header", "sortable", "sort-method", "sort-by", "sort-orders", "resizable", "formatter", "show-overflow-tooltip", "align", "header-align", "class-name", "label-class-name", "selectable", "reserve-selection", "filters", "filter-placement", "filter-class-name", "filter-multiple", "filter-method", "filtered-value"], E = ve([]), D = f, N = nt(), te = ve({}), L = ve([]), V = {
2020
+ var Ce, Fe, De, u, N, ie, Ve;
2021
+ const t = c, e = Ie(f, "modelValue"), a = at("options"), d = ye({}), U = Object.entries(e.value).filter(([l, r]) => (r == null ? void 0 : r.search) !== void 0).map(([l, r]) => [l, r.value]);
2022
+ d.value = Object.fromEntries(U);
2023
+ const T = ye(!1), F = ["type", "index", "label", "column-key", "prop", "width", "min-width", "fixed", "render-header", "sortable", "sort-method", "sort-by", "sort-orders", "resizable", "formatter", "show-overflow-tooltip", "align", "header-align", "class-name", "label-class-name", "selectable", "reserve-selection", "filters", "filter-placement", "filter-class-name", "filter-multiple", "filter-method", "filtered-value"], E = ye([]), D = f, z = nt(), te = ye({}), R = ye([]), V = {
2002
2024
  autoWatch: !1,
2003
2025
  data: [],
2004
2026
  border: !0,
@@ -2007,30 +2029,30 @@ const dl = {
2007
2029
  fit: !1,
2008
2030
  type: "hidden",
2009
2031
  load: () => {
2010
- let { currentPage: l, pageSize: a } = e.value.table.page;
2032
+ let { currentPage: l, pageSize: r } = e.value.table.page;
2011
2033
  try {
2012
- t("load", { currentPage: l, pageSize: a, ...d.value }, (v, B, { fields: z = [], sums: Q = {} } = {}) => {
2013
- var me, Se;
2034
+ t("load", { currentPage: l, pageSize: r, ...d.value }, (v, O, { fields: G = [], sums: Q = {} } = {}) => {
2035
+ var le, Se;
2014
2036
  if (!Array.isArray(v)) {
2015
- console.error("从 load 事件回调中接收到的数据不是数组格式。"), Fe.error("数据加载失败,请检查数据格式。");
2037
+ console.error("从 load 事件回调中接收到的数据不是数组格式。"), Te.error("数据加载失败,请检查数据格式。");
2016
2038
  return;
2017
2039
  }
2018
- if (typeof B != "number") {
2019
- console.error("从 load 事件回调中接收到的 total 不是数字格式。"), Fe.error("数据加载失败,请检查数据格式。");
2040
+ if (typeof O != "number") {
2041
+ console.error("从 load 事件回调中接收到的 total 不是数字格式。"), Te.error("数据加载失败,请检查数据格式。");
2020
2042
  return;
2021
2043
  }
2022
- e.value.table.data = v, ((Se = (me = e.value.control) == null ? void 0 : me.add) == null ? void 0 : Se.inline) === !0 && e.value.table.data.unshift(ie), e.value.table.page.total = B, L.value = z, te.value = Q, de();
2044
+ e.value.table.data = v, ((Se = (le = e.value.control) == null ? void 0 : le.add) == null ? void 0 : Se.inline) === !0 && e.value.table.data.unshift(de), e.value.table.page.total = O, R.value = G, te.value = Q, ce();
2023
2045
  });
2024
2046
  } catch (v) {
2025
- console.error("触发 load 事件时出现错误:", v), Fe.error("数据加载时出现错误,请稍后重试。");
2047
+ console.error("触发 load 事件时出现错误:", v), Te.error("数据加载时出现错误,请稍后重试。");
2026
2048
  }
2027
2049
  },
2028
- onHeaderDragend: (l, a, v) => {
2029
- var B;
2030
- He((B = e.value.table) == null ? void 0 : B.user, D.name, v.property, { width: l });
2050
+ onHeaderDragend: (l, r, v) => {
2051
+ var O;
2052
+ He((O = e.value.table) == null ? void 0 : O.user, D.name, v.property, { width: l });
2031
2053
  },
2032
- onRowDblclick: (l, a, v) => {
2033
- e.value.table.dblclickType == "edit" ? C(l, a, v, e) : e.value.table.dblclickType == "view" && I(l, a, v, e);
2054
+ onRowDblclick: (l, r, v) => {
2055
+ e.value.table.dblclickType == "edit" ? C(l, r, v, e) : e.value.table.dblclickType == "view" && I(l, r, v, e);
2034
2056
  },
2035
2057
  style: { "min-height": "100px", backgroundColor: "var(--el-bg-color)" },
2036
2058
  page: {
@@ -2054,15 +2076,15 @@ const dl = {
2054
2076
  }
2055
2077
  },
2056
2078
  dblclickType: "edit",
2057
- "summary-method": ({ columns: l, data: a }, v) => v,
2058
- onSortChange: ({ column: l, prop: a, order: v }, B) => {
2079
+ "summary-method": ({ columns: l, data: r }, v) => v,
2080
+ onSortChange: ({ column: l, prop: r, order: v }, O) => {
2059
2081
  }
2060
2082
  };
2061
2083
  e.value.table = Me(
2062
2084
  V,
2063
- r == null ? void 0 : r.table,
2085
+ a == null ? void 0 : a.table,
2064
2086
  e.value.table,
2065
- N
2087
+ z
2066
2088
  // 继承父组件的属性
2067
2089
  );
2068
2090
  const b = {
@@ -2070,15 +2092,14 @@ const dl = {
2070
2092
  label: "操作",
2071
2093
  width: 250,
2072
2094
  fixed: "right",
2073
- style: { ...(Te = (Ce = e.value) == null ? void 0 : Ce.control) == null ? void 0 : Te.style },
2074
- validate: (l) => !0,
2095
+ style: { ...(Fe = (Ce = e.value) == null ? void 0 : Ce.control) == null ? void 0 : Fe.style },
2096
+ validate: async (l) => await !0,
2075
2097
  add: {
2076
2098
  label: "新增",
2077
2099
  text: !1,
2078
2100
  type: "primary",
2079
2101
  mode: "dialog",
2080
2102
  inline: !1,
2081
- adding: !1,
2082
2103
  auth: () => !0
2083
2104
  },
2084
2105
  view: {
@@ -2086,25 +2107,25 @@ const dl = {
2086
2107
  text: !0,
2087
2108
  type: "success",
2088
2109
  mode: "dialog",
2089
- auth: (l, a, v) => !1
2110
+ auth: (l, r, v) => !1
2090
2111
  },
2091
2112
  edit: {
2092
2113
  label: "编辑",
2093
2114
  text: !0,
2094
2115
  type: "primary",
2095
2116
  mode: "dialog",
2096
- auth: (l, a, v) => {
2097
- var B, z, Q;
2098
- return ((Q = (z = (B = e.value) == null ? void 0 : B.control) == null ? void 0 : z.add) == null ? void 0 : Q.inline) === !1;
2117
+ auth: (l, r, v) => {
2118
+ var O, G, Q;
2119
+ return ((Q = (G = (O = e.value) == null ? void 0 : O.control) == null ? void 0 : G.add) == null ? void 0 : Q.inline) === !1;
2099
2120
  }
2100
2121
  },
2101
2122
  delete: {
2102
2123
  text: !0,
2103
2124
  label: "删除",
2104
2125
  type: "danger",
2105
- auth: (l, a, v) => {
2106
- var B, z, Q;
2107
- return !(((Q = (z = (B = e.value) == null ? void 0 : B.control) == null ? void 0 : z.add) == null ? void 0 : Q.inline) === !0 && v === 0);
2126
+ auth: (l, r, v) => {
2127
+ var O, G, Q;
2128
+ return !(((Q = (G = (O = e.value) == null ? void 0 : O.control) == null ? void 0 : G.add) == null ? void 0 : Q.inline) === !0 && v === 0);
2108
2129
  },
2109
2130
  dialog: {
2110
2131
  message: "此操作将永久删除该文件, 是否继续?",
@@ -2134,25 +2155,25 @@ const dl = {
2134
2155
  sort: -1,
2135
2156
  addLabel: "新增",
2136
2157
  auth: () => {
2137
- var l, a, v;
2138
- return ((v = (a = (l = e.value) == null ? void 0 : l.control) == null ? void 0 : a.add) == null ? void 0 : v.inline) === !0;
2158
+ var l, r, v;
2159
+ return ((v = (r = (l = e.value) == null ? void 0 : l.control) == null ? void 0 : r.add) == null ? void 0 : v.inline) === !0;
2139
2160
  }
2140
2161
  }
2141
2162
  };
2142
2163
  e.value.control = Me(
2143
2164
  b,
2144
- r == null ? void 0 : r.control,
2165
+ a == null ? void 0 : a.control,
2145
2166
  (De = e.value) == null ? void 0 : De.control
2146
2167
  );
2147
2168
  const w = {
2148
2169
  type: "hidden",
2149
2170
  minWidth: 120,
2150
2171
  align: "center",
2151
- formatter: (l, a, v, B) => v
2172
+ formatter: (l, r, v, O) => v
2152
2173
  };
2153
2174
  e.value.tableColumns = Me(
2154
2175
  w,
2155
- r == null ? void 0 : r.tableColumns,
2176
+ a == null ? void 0 : a.tableColumns,
2156
2177
  (u = e.value) == null ? void 0 : u.tableColumns
2157
2178
  );
2158
2179
  const ae = {
@@ -2163,8 +2184,8 @@ const dl = {
2163
2184
  };
2164
2185
  e.value.form = Me(
2165
2186
  ae,
2166
- r == null ? void 0 : r.form,
2167
- (P = e.value) == null ? void 0 : P.form
2187
+ a == null ? void 0 : a.form,
2188
+ (N = e.value) == null ? void 0 : N.form
2168
2189
  );
2169
2190
  const K = {
2170
2191
  type: "hidden",
@@ -2175,10 +2196,10 @@ const dl = {
2175
2196
  };
2176
2197
  e.value.formItems = Me(
2177
2198
  K,
2178
- r == null ? void 0 : r.formItems,
2179
- (se = e == null ? void 0 : e.value) == null ? void 0 : se.formItems
2199
+ a == null ? void 0 : a.formItems,
2200
+ (ie = e == null ? void 0 : e.value) == null ? void 0 : ie.formItems
2180
2201
  );
2181
- const ne = {
2202
+ const ue = {
2182
2203
  title: "编辑",
2183
2204
  mode: "drawer",
2184
2205
  type: "hidden",
@@ -2187,88 +2208,114 @@ const dl = {
2187
2208
  fullScreen: !1
2188
2209
  };
2189
2210
  e.value.dialog = Me(
2190
- ne,
2191
- r == null ? void 0 : r.dialog,
2211
+ ue,
2212
+ a == null ? void 0 : a.dialog,
2192
2213
  (Ve = e.value) == null ? void 0 : Ve.dialog
2193
2214
  );
2194
- const ie = Object.fromEntries(Object.entries(ke(e.value, (l, a) => a.type != "control" && a.editor !== !1 && a.type != "hidden")).map(([l, a]) => [l, a.value])), fe = (l, a) => {
2195
- let v = a;
2196
- if (l.decimals && !isNaN(parseFloat(a)) && (typeof l.decimals == "number" ? v = parseFloat(v).toFixed(l.decimals) : typeof l.decimals == "object" && l.decimals.num && (l.decimals.pad ? v = parseFloat(v).toFixed(l.decimals.num) : v = parseFloat(parseFloat(v).toFixed(l.decimals.num)).toString())), ["date", "datetime", "time", "time-select"].includes(l.type) && et(a).isValid()) {
2197
- const z = {
2215
+ const de = Object.fromEntries(Object.entries(ke(e.value, (l, r) => r.type != "control" && r.editor !== !1 && r.type != "hidden")).map(([l, r]) => [l, r.value])), me = (l, r) => {
2216
+ let v = r;
2217
+ if (l.decimals && !isNaN(parseFloat(r)) && (typeof l.decimals == "number" ? v = parseFloat(v).toFixed(l.decimals) : typeof l.decimals == "object" && l.decimals.num && (l.decimals.pad ? v = parseFloat(v).toFixed(l.decimals.num) : v = parseFloat(parseFloat(v).toFixed(l.decimals.num)).toString())), ["date", "datetime", "time", "time-select"].includes(l.type) && et(r).isValid()) {
2218
+ const G = {
2198
2219
  date: "YYYY-MM-DD",
2199
2220
  datetime: "YYYY-MM-DD HH:mm:ss",
2200
2221
  time: "HH:mm:ss"
2201
2222
  };
2202
- v = l.format ? et(v).format(l.format) : et(v).format(z[l.type]);
2223
+ v = l.format ? et(v).format(l.format) : et(v).format(G[l.type]);
2203
2224
  }
2204
- return l.type === "money" && (l.align = l.align || "right", l.width = l.width || 130, v = `<span title="${at(parseFloat(v))}">${Ll(parseFloat(v))}</span>`), l.prefix && v && (v = `<span>${l.prefix}${v}</span>`), l.suffix && v && (v = `${v}<span>${l.suffix}</span>`), v;
2225
+ return l.type === "money" && (l.align = l.align || "right", l.width = l.width || 130, v = `<span title="${rt(parseFloat(v))}">${Rl(parseFloat(v))}</span>`), l.prefix && v && (v = `<span>${l.prefix}${v}</span>`), l.suffix && v && (v = `${v}<span>${l.suffix}</span>`), v;
2205
2226
  }, pe = (l) => {
2206
2227
  d.value = l.value;
2207
2228
  }, m = (l) => {
2208
2229
  d.value = l, e.value.table.load();
2209
- }, M = (l) => {
2210
- var a, v;
2211
- e.value.form.modalState = "add", (a = e.value.control) != null && a.validate("add", { m: l }) && ((v = e.value.control.add) != null && v.click ? e.value.control.add.click(l) : e.value.control.add.inline === !0 ? (console.log(ie), e.value.table.data.unshift(ie), t("open", "row-add", { initFormData: ie })) : (e.value.form.disabled = !1, e.value.dialog.mode = e.value.control.add.mode, e.value.dialog.title = e.value.control.add.label, Object.keys(ie).forEach((B) => {
2212
- e.value[B] && (e.value[B].value = ie[B]);
2213
- }), F.value = !0, t("open", "add", { m: l })));
2214
- }, C = (l, a, v, B) => {
2215
- var z, Q;
2216
- e.value.form.modalState = "edit", (z = e.value.control) != null && z.validate("edit", { row: l, column: a, $index: v, m: B }) && ((Q = e.value.control.edit) != null && Q.click ? e.value.control.edit.click(l, a, v, B) : (e.value.form.disabled = !1, e.value.dialog.mode = e.value.control.edit.mode, e.value.dialog.title = e.value.control.edit.label, Object.keys(l).forEach((me) => {
2217
- e.value[me] && (e.value[me].value = l[me]);
2218
- }), F.value = !0, t("open", "edit", { m: B, row: l, column: a, $index: v })));
2219
- }, y = (l, a, v, B) => {
2220
- var z, Q;
2221
- if ((z = e.value.control) != null && z.validate("delete", { row: l, column: a, $index: v, m: B }))
2222
- if ((Q = e.value.control.delete) != null && Q.click)
2223
- e.value.control.delete.click(l, a, v, B);
2224
- else {
2225
- let { message: me, title: Se, options: Pe } = e.value.control.delete.dialog;
2226
- vt.confirm(me, Se, Pe).then(() => {
2227
- t("delete", { row: l, column: a, $index: v }, (We) => {
2228
- We && (e.value.table.data.splice(v, 1), e.value.table.page.total--);
2229
- });
2230
- }).catch(() => {
2230
+ }, M = async (l) => {
2231
+ var r, v;
2232
+ e.value.form.modalState = "add";
2233
+ try {
2234
+ if (!await ((r = e.value.control) == null ? void 0 : r.validate("add", { m: l }))) return;
2235
+ } catch (O) {
2236
+ console.error("验证失败:", O);
2237
+ return;
2238
+ }
2239
+ (v = e.value.control.add) != null && v.click ? e.value.control.add.click(l) : e.value.control.add.inline === !0 ? (console.log(de), e.value.table.data.unshift(de), t("open", "row-add", { initFormData: de })) : (e.value.form.disabled = !1, e.value.dialog.mode = e.value.control.add.mode, e.value.dialog.title = e.value.control.add.label, Object.keys(de).forEach((O) => {
2240
+ e.value[O] && (e.value[O].value = de[O]);
2241
+ }), T.value = !0, t("open", "add", { m: l }));
2242
+ }, C = async (l, r, v, O) => {
2243
+ var G, Q;
2244
+ e.value.form.modalState = "edit";
2245
+ try {
2246
+ if (!await ((G = e.value.control) == null ? void 0 : G.validate("edit", { row: l, column: r, $index: v, m: O }))) return;
2247
+ } catch (le) {
2248
+ console.error("验证失败:", le);
2249
+ return;
2250
+ }
2251
+ (Q = e.value.control.edit) != null && Q.click ? e.value.control.edit.click(l, r, v, O) : (e.value.form.disabled = !1, e.value.dialog.mode = e.value.control.edit.mode, e.value.dialog.title = e.value.control.edit.label, Object.keys(l).forEach((le) => {
2252
+ e.value[le] && (e.value[le].value = l[le]);
2253
+ }), T.value = !0, t("open", "edit", { m: O, row: l, column: r, $index: v }));
2254
+ }, h = async (l, r, v, O) => {
2255
+ var G, Q;
2256
+ try {
2257
+ if (!await ((G = e.value.control) == null ? void 0 : G.validate("delete", { row: l, column: r, $index: v, m: O }))) return;
2258
+ } catch (le) {
2259
+ console.error("验证失败:", le);
2260
+ return;
2261
+ }
2262
+ if ((Q = e.value.control.delete) != null && Q.click)
2263
+ e.value.control.delete.click(l, r, v, O);
2264
+ else {
2265
+ let { message: le, title: Se, options: Pe } = e.value.control.delete.dialog;
2266
+ vt.confirm(le, Se, Pe).then(() => {
2267
+ t("delete", { row: l, column: r, $index: v }, (ze) => {
2268
+ ze && (e.value.table.data.splice(v, 1), e.value.table.page.total--);
2231
2269
  });
2232
- }
2233
- }, I = (l, a, v, B) => {
2234
- var z, Q;
2235
- e.value.form.modalState = void 0, (z = e.value.control) != null && z.validate("view", { row: l, column: a, $index: v, m: B }) && ((Q = e.value.control.view) != null && Q.click ? e.value.control.view.click(l, a, v, B) : (e.value.form.disabled = !0, e.value.dialog.mode = e.value.control.view.mode, e.value.dialog.title = e.value.control.view.label, Object.keys(l).forEach((me) => {
2236
- e.value[me] && (e.value[me].value = l[me]);
2237
- }), F.value = !0, t("open", "view", { m: B, row: l, column: a, $index: v })));
2238
- }, ee = (l, a, v, B) => {
2239
- var z;
2240
- (z = e.value.control.save) != null && z.click ? e.value.control.save.click(l, a, v, B) : t("row-save", { row: l, column: a, $index: v, data: e.value.table.data }, (Q) => {
2270
+ }).catch(() => {
2271
+ });
2272
+ }
2273
+ }, I = async (l, r, v, O) => {
2274
+ var G, Q;
2275
+ e.value.form.modalState = void 0;
2276
+ try {
2277
+ if (!await ((G = e.value.control) == null ? void 0 : G.validate("view", { row: l, column: r, $index: v, m: O }))) return;
2278
+ } catch (le) {
2279
+ console.error("验证失败:", le);
2280
+ return;
2281
+ }
2282
+ (Q = e.value.control.view) != null && Q.click ? e.value.control.view.click(l, r, v, O) : (e.value.form.disabled = !0, e.value.dialog.mode = e.value.control.view.mode, e.value.dialog.title = e.value.control.view.label, Object.keys(l).forEach((le) => {
2283
+ e.value[le] && (e.value[le].value = l[le]);
2284
+ }), T.value = !0, t("open", "view", { m: O, row: l, column: r, $index: v }));
2285
+ }, ee = (l, r, v, O) => {
2286
+ var G;
2287
+ (G = e.value.control.save) != null && G.click ? e.value.control.save.click(l, r, v, O) : t("row-save", { row: l, column: r, $index: v, data: e.value.table.data }, (Q) => {
2241
2288
  Q && e.value.table.load();
2242
2289
  });
2243
- }, re = (l, a) => {
2244
- t("submit", e.value.form.modalState, l, a, (v) => {
2245
- v && (F.value = !1, a.table.load());
2290
+ }, ne = (l, r) => {
2291
+ t("submit", e.value.form.modalState, l, r, (v) => {
2292
+ v && (T.value = !1, r.table.load());
2246
2293
  });
2247
- }, x = (l) => {
2294
+ }, B = (l) => {
2248
2295
  t("reset", l);
2249
- }, $ = (l, a) => {
2296
+ }, $ = (l, r) => {
2250
2297
  var v;
2251
2298
  if ((v = l.control.download) != null && v.click)
2252
- l.control.download.click(l, a);
2299
+ l.control.download.click(l, r);
2253
2300
  else {
2254
- let B = ot({
2301
+ let O = ot({
2255
2302
  title: l.control.download.label,
2256
2303
  size: 480,
2257
2304
  width: 600,
2258
2305
  slots: {
2259
- default: () => qe(rl, {
2260
- items: a,
2306
+ default: () => qe(al, {
2307
+ items: r,
2261
2308
  commitText: l.control.download.excelLabel,
2262
- onExcel: (z, Q) => {
2263
- t("download", z, Q), B();
2309
+ onExcel: (G, Q) => {
2310
+ t("download", G, Q), O();
2264
2311
  }
2265
2312
  })
2266
2313
  }
2267
2314
  }, l.control.download.mode);
2268
2315
  }
2269
2316
  }, g = (l) => {
2270
- var a;
2271
- (a = l.control.setting) != null && a.click ? l.control.setting.click(l) : ot({
2317
+ var r;
2318
+ (r = l.control.setting) != null && r.click ? l.control.setting.click(l) : ot({
2272
2319
  title: l.control.setting.label,
2273
2320
  size: 470,
2274
2321
  width: 600,
@@ -2285,157 +2332,157 @@ const dl = {
2285
2332
  { type: "setting", func: g },
2286
2333
  { type: "view", func: I },
2287
2334
  { type: "edit", func: C },
2288
- { type: "delete", func: y },
2335
+ { type: "delete", func: h },
2289
2336
  { type: "save", func: ee }
2290
- ], i = (l) => s.filter((a) => l.includes(a.type)).map(({ type: a, func: v }) => {
2291
- var B, z, Q;
2337
+ ], i = (l) => s.filter((r) => l.includes(r.type)).map(({ type: r, func: v }) => {
2338
+ var O, G, Q;
2292
2339
  return {
2293
- name: `control-${a}`,
2294
- attr: _ == null ? void 0 : _[a],
2340
+ name: `control-${r}`,
2341
+ attr: _ == null ? void 0 : _[r],
2295
2342
  func: v,
2296
- label: (B = _ == null ? void 0 : _[a]) == null ? void 0 : B.label,
2297
- sort: ((z = _ == null ? void 0 : _[a]) == null ? void 0 : z.sort) || 0,
2298
- groupName: ((Q = _ == null ? void 0 : _[a]) == null ? void 0 : Q.groupName) || "default"
2343
+ label: (O = _ == null ? void 0 : _[r]) == null ? void 0 : O.label,
2344
+ sort: ((G = _ == null ? void 0 : _[r]) == null ? void 0 : G.sort) || 0,
2345
+ groupName: ((Q = _ == null ? void 0 : _[r]) == null ? void 0 : Q.groupName) || "default"
2299
2346
  };
2300
- }).sort((a, v) => a.sort - v.sort), A = (l) => i(l).reduce((a, v) => {
2301
- const B = v.groupName || "default";
2302
- return a[B] || (a[B] = []), a[B].push(v), a;
2347
+ }).sort((r, v) => r.sort - v.sort), A = (l) => i(l).reduce((r, v) => {
2348
+ const O = v.groupName || "default";
2349
+ return r[O] || (r[O] = []), r[O].push(v), r;
2303
2350
  }, {}), H = Ye(() => Object.fromEntries(
2304
- Object.entries(e.value).filter(([l, a]) => a.type !== "hidden").filter(([l, a]) => a.visible !== !1).filter(([l, a]) => a.showCol !== !1).map(([l, a]) => (a.sort = typeof a.sort == "number" ? a.sort : 0, [l, a])).sort((l, a) => l[1].sort - a[1].sort)
2305
- )), J = ve({}), ue = (l, a) => {
2306
- const v = (B, z) => {
2307
- for (const Q of B) {
2308
- if (Q.value == z) return Q.label;
2351
+ 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)
2352
+ )), X = ye({}), se = (l, r) => {
2353
+ const v = (O, G) => {
2354
+ for (const Q of O) {
2355
+ if (Q.value == G) return Q.label;
2309
2356
  if (Q.children) {
2310
- const me = v(Q.children, z);
2311
- if (me) return me;
2357
+ const le = v(Q.children, G);
2358
+ if (le) return le;
2312
2359
  }
2313
2360
  }
2314
2361
  return null;
2315
2362
  };
2316
2363
  if (l.getDicts) {
2317
- const B = a.toString();
2318
- return J.value[B] ? (l.options = J.value[B], l.formatter || (l.formatter = (z, Q, me, Se) => l.options && v(l.options, me) || me), Promise.resolve()) : l.getDicts(e.value.table.data).then((z) => {
2319
- J.value[B] = z, l.options = z, l.formatter || (l.formatter = (Q, me, Se, Pe) => l.options && v(l.options, Se) || Se);
2364
+ const O = r.toString();
2365
+ return X.value[O] ? (l.options = X.value[O], l.formatter || (l.formatter = (G, Q, le, Se) => l.options && v(l.options, le) || le), Promise.resolve()) : l.getDicts(e.value.table.data).then((G) => {
2366
+ X.value[O] = G, l.options = G, l.formatter || (l.formatter = (Q, le, Se, Pe) => l.options && v(l.options, Se) || Se);
2320
2367
  });
2321
2368
  }
2322
2369
  return Promise.resolve();
2323
- }, de = () => {
2370
+ }, ce = () => {
2324
2371
  const l = [];
2325
- Object.keys(e.value).forEach((a) => {
2326
- if (e.value[a].getDicts) {
2327
- const v = ue(e.value[a], a).then(() => {
2328
- e.value.table.data.forEach((B) => {
2329
- var z;
2330
- if (e.value[a].getDicts && ((z = e.value[a]) == null ? void 0 : z.forceString) !== !1) {
2331
- const Q = B[a];
2332
- B[a] = Q != null ? Q.toString() : Q;
2372
+ Object.keys(e.value).forEach((r) => {
2373
+ if (e.value[r].getDicts) {
2374
+ const v = se(e.value[r], r).then(() => {
2375
+ e.value.table.data.forEach((O) => {
2376
+ var G;
2377
+ if (e.value[r].getDicts && ((G = e.value[r]) == null ? void 0 : G.forceString) !== !1) {
2378
+ const Q = O[r];
2379
+ O[r] = Q != null ? Q.toString() : Q;
2333
2380
  }
2334
2381
  });
2335
- }).catch((B) => {
2336
- console.error(`加载字典${a}出错:`, B);
2382
+ }).catch((O) => {
2383
+ console.error(`加载字典${r}出错:`, O);
2337
2384
  });
2338
2385
  l.push(v);
2339
2386
  }
2340
- }), Promise.all(l).catch((a) => {
2341
- console.error("字典加载过程中发生错误:", a);
2387
+ }), Promise.all(l).catch((r) => {
2388
+ console.error("字典加载过程中发生错误:", r);
2342
2389
  });
2343
- }, he = (l, a, v, B) => {
2344
- var z, Q;
2345
- return l.table ? (z = l.table(a, v, B)) != null && z.auth ? (Q = l.table(a, v, B)) == null ? void 0 : Q.auth(a, v, B) : !0 : !1;
2346
- }, $e = (l, a) => l.name === "control-save" && a === 0 && e.value.control.add.inline === !0 ? l.attr.addLabel : l.label;
2390
+ }, he = (l, r, v, O) => {
2391
+ var G, Q;
2392
+ return l.table ? (G = l.table(r, v, O)) != null && G.auth ? (Q = l.table(r, v, O)) == null ? void 0 : Q.auth(r, v, O) : !0 : !1;
2393
+ }, ve = (l, r) => l.name === "control-save" && r === 0 && e.value.control.add.inline === !0 ? l.attr.addLabel : l.label;
2347
2394
  return St(() => {
2348
2395
  e.value.table.autoWatch && e.value.table.load();
2349
2396
  }), Ne(async () => {
2350
2397
  var l;
2351
- if (E.value = Object.values(e.value).filter((a) => a.type !== "hidden").filter((a) => a.type !== "control").filter((a) => a.visible !== !1).map((a) => ({ key: a.key || "", label: a.label, value: !0 })), !((l = e.value.table) != null && l.user)) {
2352
- Fe.error("必须给使用此表格的用户一个名字!");
2398
+ if (E.value = Object.values(e.value).filter((r) => r.type !== "hidden").filter((r) => r.type !== "control").filter((r) => r.visible !== !1).map((r) => ({ key: r.key || "", label: r.label, value: !0 })), !((l = e.value.table) != null && l.user)) {
2399
+ Te.error("必须给使用此表格的用户一个名字!");
2353
2400
  return;
2354
2401
  }
2355
2402
  if (!D.name) {
2356
- Fe.error("必须给表格一个唯一的name属性");
2403
+ Te.error("必须给表格一个唯一的name属性");
2357
2404
  return;
2358
2405
  }
2359
2406
  try {
2360
- let a = await sl(D.name);
2361
- if (a) {
2362
- if (D.name !== a.name) {
2363
- Fe.error("此表格已经存在,请换一个名字!");
2407
+ let r = await sl(D.name);
2408
+ if (r) {
2409
+ if (D.name !== r.name) {
2410
+ Te.error("此表格已经存在,请换一个名字!");
2364
2411
  return;
2365
2412
  }
2366
2413
  } else
2367
2414
  await il({ name: D.name });
2368
- } catch (a) {
2369
- console.error("检查表格名称时出现错误:", a), Fe.error("检查表格名称时出现错误,请稍后重试。");
2415
+ } catch (r) {
2416
+ console.error("检查表格名称时出现错误:", r), Te.error("检查表格名称时出现错误,请稍后重试。");
2370
2417
  }
2371
2418
  try {
2372
- const a = await nl(e.value.table.user, D.name);
2373
- a && a.forEach((v) => {
2419
+ const r = await nl(e.value.table.user, D.name);
2420
+ r && r.forEach((v) => {
2374
2421
  e.value[v.key] && (e.value[v.key].width = v.width, e.value[v.key].showCol = v.showCol, e.value[v.key].sort = v.sort);
2375
2422
  });
2376
- } catch (a) {
2377
- console.error("Error fetching table column settings:", a);
2423
+ } catch (r) {
2424
+ console.error("Error fetching table column settings:", r);
2378
2425
  }
2379
2426
  e.value.table.autoWatch || e.value.table.load();
2380
- }), (l, a) => {
2381
- var We, ut, st, it, dt;
2382
- const v = R("el-button-group"), B = R("el-table-column"), z = R("el-table"), Q = R("el-pagination"), me = R("el-icon"), Se = R("el-dialog"), Pe = R("el-drawer");
2383
- return n(), q(G, null, [
2384
- Z("div", vl, [
2385
- ((ut = (We = e.value) == null ? void 0 : We.query) == null ? void 0 : ut.hidden) != !0 ? (n(), q("div", hl, [
2427
+ }), (l, r) => {
2428
+ var ze, ut, st, it, dt;
2429
+ const v = L("el-button-group"), O = L("el-table-column"), G = L("el-table"), Q = L("el-pagination"), le = L("el-icon"), Se = L("el-dialog"), Pe = L("el-drawer");
2430
+ return n(), x(P, null, [
2431
+ J("div", vl, [
2432
+ ((ut = (ze = e.value) == null ? void 0 : ze.query) == null ? void 0 : ut.hidden) != !0 ? (n(), x("div", yl, [
2386
2433
  p(l.$slots, "query", {}, () => [
2387
- X(Jt, {
2434
+ Z(Jt, {
2388
2435
  modelValue: e.value,
2389
- "onUpdate:modelValue": a[0] || (a[0] = (U) => e.value = U),
2436
+ "onUpdate:modelValue": r[0] || (r[0] = (j) => e.value = j),
2390
2437
  onQuery: m,
2391
2438
  onReset: pe
2392
- }, ce({
2393
- "q-btns": h(() => [
2439
+ }, fe({
2440
+ "q-btns": y(() => [
2394
2441
  p(l.$slots, "q-btns", {}, () => [
2395
- (n(!0), q(G, null, j(A(["add", "download", "setting"]), (U, le) => (n(), q(G, null, [
2396
- le == "default" ? (n(!0), q(G, { key: 0 }, j(U, (k) => (n(), q(G, null, [
2442
+ (n(!0), x(P, null, Y(A(["add", "download", "setting"]), (j, oe) => (n(), x(P, null, [
2443
+ oe == "default" ? (n(!0), x(P, { key: 0 }, Y(j, (k) => (n(), x(P, null, [
2397
2444
  p(l.$slots, k.name + "-left", {}, void 0, !0),
2398
2445
  (k.name === "control-add" ? k.attr.auth() && k.attr.inline === !1 : k.attr.auth()) ? p(l.$slots, k.name, { key: 0 }, () => [
2399
- k.label ? (n(), O(o(_e), S({
2446
+ k.label ? (n(), q(o(_e), S({
2400
2447
  key: 0,
2401
2448
  ref_for: !0
2402
2449
  }, k.attr, {
2403
2450
  onClick: (W) => k.func(e.value, E.value)
2404
2451
  }), {
2405
- default: h(() => [
2452
+ default: y(() => [
2406
2453
  we(Ee(k.label), 1)
2407
2454
  ]),
2408
2455
  _: 2
2409
- }, 1040, ["onClick"])) : (n(), O(o(_e), S({
2456
+ }, 1040, ["onClick"])) : (n(), q(o(_e), S({
2410
2457
  key: 1,
2411
2458
  ref_for: !0
2412
2459
  }, k.attr, {
2413
2460
  onClick: (W) => k.func(e.value, E.value)
2414
2461
  }), null, 16, ["onClick"]))
2415
- ], !0) : be("", !0),
2462
+ ], !0) : $e("", !0),
2416
2463
  p(l.$slots, k.name + "-right", {}, void 0, !0)
2417
- ], 64))), 256)) : (n(), O(v, { key: 1 }, {
2418
- default: h(() => [
2419
- (n(!0), q(G, null, j(U, (k) => (n(), q(G, null, [
2464
+ ], 64))), 256)) : (n(), q(v, { key: 1 }, {
2465
+ default: y(() => [
2466
+ (n(!0), x(P, null, Y(j, (k) => (n(), x(P, null, [
2420
2467
  p(l.$slots, k.name + "-left", {}, void 0, !0),
2421
2468
  (k.name === "control-add" ? k.attr.auth() && k.attr.inline === !1 : k.attr.auth()) ? p(l.$slots, k.name, { key: 0 }, () => [
2422
- k.label ? (n(), O(o(_e), S({
2469
+ k.label ? (n(), q(o(_e), S({
2423
2470
  key: 0,
2424
2471
  ref_for: !0
2425
2472
  }, k.attr, {
2426
2473
  onClick: (W) => k.func(e.value, E.value)
2427
2474
  }), {
2428
- default: h(() => [
2475
+ default: y(() => [
2429
2476
  we(Ee(k.label), 1)
2430
2477
  ]),
2431
2478
  _: 2
2432
- }, 1040, ["onClick"])) : (n(), O(o(_e), S({
2479
+ }, 1040, ["onClick"])) : (n(), q(o(_e), S({
2433
2480
  key: 1,
2434
2481
  ref_for: !0
2435
2482
  }, k.attr, {
2436
2483
  onClick: (W) => k.func(e.value, E.value)
2437
2484
  }), null, 16, ["onClick"]))
2438
- ], !0) : be("", !0),
2485
+ ], !0) : $e("", !0),
2439
2486
  p(l.$slots, k.name + "-right", {}, void 0, !0)
2440
2487
  ], 64))), 256))
2441
2488
  ]),
@@ -2446,165 +2493,165 @@ const dl = {
2446
2493
  ]),
2447
2494
  _: 2
2448
2495
  }, [
2449
- j(l.$slots, (U, le, k) => ({
2450
- name: le,
2451
- fn: h((W) => [
2452
- p(l.$slots, le, { model: e.value }, void 0, !0)
2496
+ Y(l.$slots, (j, oe, k) => ({
2497
+ name: oe,
2498
+ fn: y((W) => [
2499
+ p(l.$slots, oe, { model: e.value }, void 0, !0)
2453
2500
  ])
2454
2501
  }))
2455
2502
  ]), 1032, ["modelValue"])
2456
2503
  ], !0)
2457
- ])) : be("", !0),
2458
- Z("div", yl, [
2459
- X(z, S({ ...l.$attrs, ...o(ke)(e.value.table, (U) => !["dblclickType", "page"].includes(U)) }, {
2460
- "summary-method": (U) => e.value.table["summary-method"](U, { fields: L.value, sums: te.value }),
2461
- onSortChange: a[1] || (a[1] = (U) => {
2462
- var le, k;
2463
- e.value.table.onSortChange(U, d.value), ((le = U == null ? void 0 : U.column) == null ? void 0 : le.sortable) === "custom" && ((k = e.value.table) == null || k.load());
2504
+ ])) : $e("", !0),
2505
+ J("div", hl, [
2506
+ Z(G, S({ ...l.$attrs, ...o(ke)(e.value.table, (j) => !["dblclickType", "page"].includes(j)) }, {
2507
+ "summary-method": (j) => e.value.table["summary-method"](j, { fields: R.value, sums: te.value }),
2508
+ onSortChange: r[1] || (r[1] = (j) => {
2509
+ var oe, k;
2510
+ e.value.table.onSortChange(j, d.value), ((oe = j == null ? void 0 : j.column) == null ? void 0 : oe.sortable) === "custom" && ((k = e.value.table) == null || k.load());
2464
2511
  })
2465
2512
  }), {
2466
- append: h(() => [
2513
+ append: y(() => [
2467
2514
  p(l.$slots, "append", {}, void 0, !0)
2468
2515
  ]),
2469
- empty: h(() => [
2516
+ empty: y(() => [
2470
2517
  p(l.$slots, "empty", {}, void 0, !0)
2471
2518
  ]),
2472
- default: h(() => [
2519
+ default: y(() => [
2473
2520
  p(l.$slots, "default", {}, () => [
2474
- (n(!0), q(G, null, j(H.value, (U, le) => (n(), O(B, S({
2475
- prop: le,
2476
- key: le,
2521
+ (n(!0), x(P, null, Y(H.value, (j, oe) => (n(), q(O, S({
2522
+ prop: oe,
2523
+ key: oe,
2477
2524
  ref_for: !0
2478
- }, { ...e.value.tableColumns, ...o(ke)(U, (k) => T.includes(k)) }, { "header-align": "center" }), ce({
2479
- header: h(({ column: k, $index: W }) => [
2480
- le == "control" ? p(l.$slots, `${le}-header`, {
2525
+ }, { ...e.value.tableColumns, ...o(ke)(j, (k) => F.includes(k)) }, { "header-align": "center" }), fe({
2526
+ header: y(({ column: k, $index: W }) => [
2527
+ oe == "control" ? p(l.$slots, `${oe}-header`, {
2481
2528
  key: 0,
2482
2529
  column: k,
2483
2530
  $index: W
2484
2531
  }, () => [
2485
- a[10] || (a[10] = Z("span", null, "操作", -1))
2486
- ], !0) : p(l.$slots, `${le}-header`, {
2532
+ r[10] || (r[10] = J("span", null, "操作", -1))
2533
+ ], !0) : p(l.$slots, `${oe}-header`, {
2487
2534
  key: 1,
2488
2535
  column: k,
2489
2536
  $index: W
2490
2537
  }, void 0, !0)
2491
2538
  ]),
2492
- "filter-icon": h((k) => [
2493
- p(l.$slots, `${le}-filter-icon`, { data: k }, void 0, !0)
2539
+ "filter-icon": y((k) => [
2540
+ p(l.$slots, `${oe}-filter-icon`, { data: k }, void 0, !0)
2494
2541
  ]),
2495
2542
  _: 2
2496
2543
  }, [
2497
- U.type === "image" ? {
2544
+ j.type === "image" ? {
2498
2545
  name: "default",
2499
- fn: h(({ row: k, column: W, $index: oe }) => [
2500
- p(l.$slots, `${le}`, {
2546
+ fn: y(({ row: k, column: W, $index: re }) => [
2547
+ p(l.$slots, `${oe}`, {
2501
2548
  row: k,
2502
2549
  column: W,
2503
- $index: oe
2550
+ $index: re
2504
2551
  }, () => [
2505
- Z("img", S({
2552
+ J("img", S({
2506
2553
  style: { width: "80px", height: "80px", "object-fit": "cover", "border-radius": "3px" },
2507
- src: U.value,
2554
+ src: j.value,
2508
2555
  ref_for: !0
2509
- }, U), null, 16, gl)
2556
+ }, j), null, 16, gl)
2510
2557
  ], !0)
2511
2558
  ]),
2512
2559
  key: "0"
2513
- } : U.type === "expand" ? {
2560
+ } : j.type === "expand" ? {
2514
2561
  name: "default",
2515
- fn: h(({ row: k, column: W, $index: oe }) => [
2516
- p(l.$slots, `${le}`, {
2562
+ fn: y(({ row: k, column: W, $index: re }) => [
2563
+ p(l.$slots, `${oe}`, {
2517
2564
  row: k,
2518
2565
  column: W,
2519
- $index: oe
2566
+ $index: re
2520
2567
  }, void 0, !0)
2521
2568
  ]),
2522
2569
  key: "1"
2523
- } : U.type == "control" ? {
2570
+ } : j.type == "control" ? {
2524
2571
  name: "default",
2525
- fn: h(({ row: k, column: W, $index: oe }) => {
2526
- var je, Re;
2572
+ fn: y(({ row: k, column: W, $index: re }) => {
2573
+ var je, Le;
2527
2574
  return [
2528
- Z("div", {
2575
+ J("div", {
2529
2576
  class: gt(["control", (je = e.value.control) == null ? void 0 : je.class]),
2530
- style: Ae((Re = e.value.control) == null ? void 0 : Re.style)
2577
+ style: Oe((Le = e.value.control) == null ? void 0 : Le.style)
2531
2578
  }, [
2532
2579
  p(l.$slots, "control", {}, () => [
2533
2580
  p(l.$slots, "control-left", {
2534
2581
  row: k,
2535
2582
  column: W,
2536
- $index: oe
2583
+ $index: re
2537
2584
  }, void 0, !0),
2538
- (n(!0), q(G, null, j(A(["view", "edit", "delete", "save"]), (Le, Je) => (n(), q(G, null, [
2539
- Je == "default" ? (n(!0), q(G, { key: 0 }, j(Le, (ye) => (n(), q(G, null, [
2540
- p(l.$slots, ye.name + "-left", {
2585
+ (n(!0), x(P, null, Y(A(["view", "edit", "delete", "save"]), (Re, Je) => (n(), x(P, null, [
2586
+ Je == "default" ? (n(!0), x(P, { key: 0 }, Y(Re, (ge) => (n(), x(P, null, [
2587
+ p(l.$slots, ge.name + "-left", {
2541
2588
  row: k,
2542
2589
  column: W,
2543
- $index: oe
2590
+ $index: re
2544
2591
  }, void 0, !0),
2545
- ye.attr.auth(k, W, oe) ? p(l.$slots, ye.name, {
2592
+ ge.attr.auth(k, W, re) ? p(l.$slots, ge.name, {
2546
2593
  key: 0,
2547
2594
  row: k,
2548
2595
  column: W,
2549
- $index: oe
2596
+ $index: re
2550
2597
  }, () => [
2551
- ye.label ? (n(), O(o(_e), S({
2598
+ ge.label ? (n(), q(o(_e), S({
2552
2599
  key: 0,
2553
2600
  ref_for: !0
2554
- }, ye.attr, {
2555
- onClick: (Ze) => ye.func(k, W, oe, e.value)
2601
+ }, ge.attr, {
2602
+ onClick: (Ze) => ge.func(k, W, re, e.value)
2556
2603
  }), {
2557
- default: h(() => [
2558
- we(Ee($e(ye, oe)), 1)
2604
+ default: y(() => [
2605
+ we(Ee(ve(ge, re)), 1)
2559
2606
  ]),
2560
2607
  _: 2
2561
- }, 1040, ["onClick"])) : (n(), O(o(_e), S({
2608
+ }, 1040, ["onClick"])) : (n(), q(o(_e), S({
2562
2609
  key: 1,
2563
2610
  ref_for: !0
2564
- }, ye.attr, {
2565
- onClick: (Ze) => ye.func(k, W, oe, e.value)
2611
+ }, ge.attr, {
2612
+ onClick: (Ze) => ge.func(k, W, re, e.value)
2566
2613
  }), null, 16, ["onClick"]))
2567
- ], !0) : be("", !0),
2568
- p(l.$slots, ye.name + "-right", {
2614
+ ], !0) : $e("", !0),
2615
+ p(l.$slots, ge.name + "-right", {
2569
2616
  row: k,
2570
2617
  column: W,
2571
- $index: oe
2618
+ $index: re
2572
2619
  }, void 0, !0)
2573
- ], 64))), 256)) : (n(), O(v, { key: 1 }, {
2574
- default: h(() => [
2575
- (n(!0), q(G, null, j(Le, (ye) => (n(), q(G, null, [
2576
- p(l.$slots, ye.name + "-left", {
2620
+ ], 64))), 256)) : (n(), q(v, { key: 1 }, {
2621
+ default: y(() => [
2622
+ (n(!0), x(P, null, Y(Re, (ge) => (n(), x(P, null, [
2623
+ p(l.$slots, ge.name + "-left", {
2577
2624
  row: k,
2578
2625
  column: W,
2579
- $index: oe
2626
+ $index: re
2580
2627
  }, void 0, !0),
2581
- ye.attr.auth(k, W, oe) ? p(l.$slots, ye.name, {
2628
+ ge.attr.auth(k, W, re) ? p(l.$slots, ge.name, {
2582
2629
  key: 0,
2583
2630
  row: k,
2584
2631
  column: W,
2585
- $index: oe
2632
+ $index: re
2586
2633
  }, () => [
2587
- ye.label ? (n(), O(o(_e), S({
2634
+ ge.label ? (n(), q(o(_e), S({
2588
2635
  key: 0,
2589
2636
  ref_for: !0
2590
- }, ye.attr, {
2591
- onClick: (Ze) => ye.func(k, W, oe, e.value)
2637
+ }, ge.attr, {
2638
+ onClick: (Ze) => ge.func(k, W, re, e.value)
2592
2639
  }), {
2593
- default: h(() => [
2594
- we(Ee($e(ye, oe)), 1)
2640
+ default: y(() => [
2641
+ we(Ee(ve(ge, re)), 1)
2595
2642
  ]),
2596
2643
  _: 2
2597
- }, 1040, ["onClick"])) : (n(), O(o(_e), S({
2644
+ }, 1040, ["onClick"])) : (n(), q(o(_e), S({
2598
2645
  key: 1,
2599
2646
  ref_for: !0
2600
- }, ye.attr, {
2601
- onClick: (Ze) => ye.func(k, W, oe, e.value)
2647
+ }, ge.attr, {
2648
+ onClick: (Ze) => ge.func(k, W, re, e.value)
2602
2649
  }), null, 16, ["onClick"]))
2603
- ], !0) : be("", !0),
2604
- p(l.$slots, ye.name + "-right", {
2650
+ ], !0) : $e("", !0),
2651
+ p(l.$slots, ge.name + "-right", {
2605
2652
  row: k,
2606
2653
  column: W,
2607
- $index: oe
2654
+ $index: re
2608
2655
  }, void 0, !0)
2609
2656
  ], 64))), 256))
2610
2657
  ]),
@@ -2614,56 +2661,56 @@ const dl = {
2614
2661
  p(l.$slots, "control-right", {
2615
2662
  row: k,
2616
2663
  column: W,
2617
- $index: oe
2664
+ $index: re
2618
2665
  }, void 0, !0)
2619
2666
  ], !0)
2620
2667
  ], 6)
2621
2668
  ];
2622
2669
  }),
2623
2670
  key: "2"
2624
- } : U.type != "selection" && U.type != "index" ? {
2671
+ } : j.type != "selection" && j.type != "index" ? {
2625
2672
  name: "default",
2626
- fn: h(({ row: k, column: W, $index: oe }) => [
2627
- he(U, k, W, oe) && oe != -1 ? p(l.$slots, `${le}`, {
2673
+ fn: y(({ row: k, column: W, $index: re }) => [
2674
+ he(j, k, W, re) && re != -1 ? p(l.$slots, `${oe}`, {
2628
2675
  key: 0,
2629
2676
  row: k,
2630
2677
  column: W,
2631
- $index: oe
2678
+ $index: re
2632
2679
  }, () => {
2633
2680
  var je;
2634
2681
  return [
2635
- (n(), O(Xe, {
2636
- modelValue: k[le],
2637
- "onUpdate:modelValue": (Re) => k[le] = Re,
2638
- item: U == null ? void 0 : U.table(k, W, oe),
2639
- ctrlKey: le,
2640
- key: le + "-" + oe,
2641
- ctrlType: (je = U.table(k, W, oe)) != null && je.type ? U.table(k, W, oe).type : U.type,
2682
+ (n(), q(Xe, {
2683
+ modelValue: k[oe],
2684
+ "onUpdate:modelValue": (Le) => k[oe] = Le,
2685
+ item: j == null ? void 0 : j.table(k, W, re),
2686
+ ctrlKey: oe,
2687
+ key: oe + "-" + re,
2688
+ ctrlType: (je = j.table(k, W, re)) != null && je.type ? j.table(k, W, re).type : j.type,
2642
2689
  model: e.value,
2643
2690
  class: "g-ctrl-container",
2644
2691
  t: "t",
2645
2692
  formInfo: k
2646
- }, ce({ _: 2 }, [
2647
- j(l.$slots, (Re, Le) => ({
2648
- name: Le,
2649
- fn: h((Je) => [
2650
- p(l.$slots, Le, {
2693
+ }, fe({ _: 2 }, [
2694
+ Y(l.$slots, (Le, Re) => ({
2695
+ name: Re,
2696
+ fn: y((Je) => [
2697
+ p(l.$slots, Re, {
2651
2698
  data: Je,
2652
- item: U,
2699
+ item: j,
2653
2700
  model: e.value
2654
2701
  }, void 0, !0)
2655
2702
  ])
2656
2703
  }))
2657
2704
  ]), 1032, ["modelValue", "onUpdate:modelValue", "item", "ctrlKey", "ctrlType", "model", "formInfo"]))
2658
2705
  ];
2659
- }, !0) : p(l.$slots, `${le}`, {
2706
+ }, !0) : p(l.$slots, `${oe}`, {
2660
2707
  key: 1,
2661
2708
  row: k,
2662
2709
  column: W,
2663
- $index: oe
2710
+ $index: re
2664
2711
  }, () => [
2665
- Z("div", {
2666
- innerHTML: fe(U, W.formatter(k, W, k[le], oe))
2712
+ J("div", {
2713
+ innerHTML: me(j, W.formatter(k, W, k[oe], re))
2667
2714
  }, null, 8, bl)
2668
2715
  ], !0)
2669
2716
  ]),
@@ -2674,14 +2721,14 @@ const dl = {
2674
2721
  ]),
2675
2722
  _: 3
2676
2723
  }, 16, ["summary-method"]),
2677
- (dt = (it = (st = e.value) == null ? void 0 : st.table) == null ? void 0 : it.page) != null && dt.hidden ? be("", !0) : p(l.$slots, "page", { key: 0 }, () => [
2678
- X(Q, S({
2724
+ (dt = (it = (st = e.value) == null ? void 0 : st.table) == null ? void 0 : it.page) != null && dt.hidden ? $e("", !0) : p(l.$slots, "page", { key: 0 }, () => [
2725
+ Z(Q, S({
2679
2726
  "page-size": e.value.table.page.pageSize,
2680
- "onUpdate:pageSize": a[2] || (a[2] = (U) => e.value.table.page.pageSize = U),
2727
+ "onUpdate:pageSize": r[2] || (r[2] = (j) => e.value.table.page.pageSize = j),
2681
2728
  "current-page": e.value.table.page.currentPage,
2682
- "onUpdate:currentPage": a[3] || (a[3] = (U) => e.value.table.page.currentPage = U)
2729
+ "onUpdate:currentPage": r[3] || (r[3] = (j) => e.value.table.page.currentPage = j)
2683
2730
  }, e.value.table.page), {
2684
- default: h(() => [
2731
+ default: y(() => [
2685
2732
  p(l.$slots, "table-page", {}, void 0, !0)
2686
2733
  ]),
2687
2734
  _: 3
@@ -2689,67 +2736,67 @@ const dl = {
2689
2736
  ], !0)
2690
2737
  ])
2691
2738
  ]),
2692
- e.value.dialog.mode == "dialog" && F.value ? (n(), q("div", $l, [
2693
- X(Se, S({
2694
- modelValue: F.value,
2695
- "onUpdate:modelValue": a[7] || (a[7] = (U) => F.value = U),
2739
+ e.value.dialog.mode == "dialog" && T.value ? (n(), x("div", $l, [
2740
+ Z(Se, S({
2741
+ modelValue: T.value,
2742
+ "onUpdate:modelValue": r[7] || (r[7] = (j) => T.value = j),
2696
2743
  fullscreen: e.value.dialog.fullScreen
2697
- }, o(ke)(e.value.dialog, (U) => !["size"].includes(U)), {
2744
+ }, o(ke)(e.value.dialog, (j) => !["size"].includes(j)), {
2698
2745
  width: o(wt)(e.value.dialog.width) + 35
2699
2746
  }), {
2700
- header: h(() => {
2701
- var U, le, k, W;
2747
+ header: y(() => {
2748
+ var j, oe, k, W;
2702
2749
  return [
2703
- Z("div", El, [
2704
- Z("div", wl, [
2750
+ J("div", El, [
2751
+ J("div", wl, [
2705
2752
  p(l.$slots, "f-header", {}, () => [
2706
- Z("div", null, Ee(e.value.dialog.title), 1)
2753
+ J("div", null, Ee(e.value.dialog.title), 1)
2707
2754
  ], !0)
2708
2755
  ]),
2709
- ((le = (U = e.value) == null ? void 0 : U.dialog) == null ? void 0 : le.fullScreen) === !1 ? (n(), q("div", {
2756
+ ((oe = (j = e.value) == null ? void 0 : j.dialog) == null ? void 0 : oe.fullScreen) === !1 ? (n(), x("div", {
2710
2757
  key: 0,
2711
- onClick: a[4] || (a[4] = (oe) => {
2758
+ onClick: r[4] || (r[4] = (re) => {
2712
2759
  e.value.dialog.fullScreen = !0;
2713
2760
  }),
2714
2761
  class: "max"
2715
2762
  }, [
2716
- X(me, null, {
2717
- default: h(() => [
2718
- X(o(At))
2763
+ Z(le, null, {
2764
+ default: y(() => [
2765
+ Z(o(Ot))
2719
2766
  ]),
2720
2767
  _: 1
2721
2768
  })
2722
- ])) : be("", !0),
2723
- ((W = (k = e.value) == null ? void 0 : k.dialog) == null ? void 0 : W.fullScreen) === !0 ? (n(), q("div", {
2769
+ ])) : $e("", !0),
2770
+ ((W = (k = e.value) == null ? void 0 : k.dialog) == null ? void 0 : W.fullScreen) === !0 ? (n(), x("div", {
2724
2771
  key: 1,
2725
- onClick: a[5] || (a[5] = (oe) => {
2772
+ onClick: r[5] || (r[5] = (re) => {
2726
2773
  e.value.dialog.fullScreen = !1;
2727
2774
  }),
2728
2775
  class: "max"
2729
2776
  }, [
2730
- X(me, null, {
2731
- default: h(() => [
2732
- X(o(xt))
2777
+ Z(le, null, {
2778
+ default: y(() => [
2779
+ Z(o(At))
2733
2780
  ]),
2734
2781
  _: 1
2735
2782
  })
2736
- ])) : be("", !0)
2783
+ ])) : $e("", !0)
2737
2784
  ])
2738
2785
  ];
2739
2786
  }),
2740
- default: h(() => [
2741
- Z("div", _l, [
2787
+ default: y(() => [
2788
+ J("div", _l, [
2742
2789
  p(l.$slots, "table-dialog-form", { model: e.value }, () => [
2743
- X(tt, {
2790
+ Z(tt, {
2744
2791
  modelValue: e.value,
2745
- "onUpdate:modelValue": a[6] || (a[6] = (U) => e.value = U),
2746
- onSubmit: re,
2747
- onReset: x
2748
- }, ce({ _: 2 }, [
2749
- j(l.$slots, (U, le, k) => ({
2750
- name: le,
2751
- fn: h((W) => [
2752
- p(l.$slots, le, { model: W }, void 0, !0)
2792
+ "onUpdate:modelValue": r[6] || (r[6] = (j) => e.value = j),
2793
+ onSubmit: ne,
2794
+ onReset: B
2795
+ }, fe({ _: 2 }, [
2796
+ Y(l.$slots, (j, oe, k) => ({
2797
+ name: oe,
2798
+ fn: y((W) => [
2799
+ p(l.$slots, oe, { model: W }, void 0, !0)
2753
2800
  ])
2754
2801
  }))
2755
2802
  ]), 1032, ["modelValue"])
@@ -2758,33 +2805,33 @@ const dl = {
2758
2805
  ]),
2759
2806
  _: 3
2760
2807
  }, 16, ["modelValue", "fullscreen", "width"])
2761
- ])) : be("", !0),
2762
- e.value.dialog.mode == "drawer" && F.value ? (n(), q("div", kl, [
2763
- X(Pe, S({
2764
- modelValue: F.value,
2765
- "onUpdate:modelValue": a[9] || (a[9] = (U) => F.value = U)
2766
- }, o(ke)(e.value.dialog, (U) => !["width"].includes(U))), {
2767
- header: h(() => [
2768
- Z("div", Cl, [
2769
- Z("div", Dl, [
2808
+ ])) : $e("", !0),
2809
+ e.value.dialog.mode == "drawer" && T.value ? (n(), x("div", kl, [
2810
+ Z(Pe, S({
2811
+ modelValue: T.value,
2812
+ "onUpdate:modelValue": r[9] || (r[9] = (j) => T.value = j)
2813
+ }, o(ke)(e.value.dialog, (j) => !["width"].includes(j))), {
2814
+ header: y(() => [
2815
+ J("div", Cl, [
2816
+ J("div", Dl, [
2770
2817
  p(l.$slots, "f-header", {}, () => [
2771
- Z("div", null, Ee(e.value.dialog.title), 1)
2818
+ J("div", null, Ee(e.value.dialog.title), 1)
2772
2819
  ], !0)
2773
2820
  ])
2774
2821
  ])
2775
2822
  ]),
2776
- default: h(() => [
2823
+ default: y(() => [
2777
2824
  p(l.$slots, "table-drawer-form", { model: e.value }, () => [
2778
- X(tt, {
2825
+ Z(tt, {
2779
2826
  modelValue: e.value,
2780
- "onUpdate:modelValue": a[8] || (a[8] = (U) => e.value = U),
2781
- onSubmit: re,
2782
- onReset: x
2783
- }, ce({ _: 2 }, [
2784
- j(l.$slots, (U, le, k) => ({
2785
- name: le,
2786
- fn: h((W) => [
2787
- p(l.$slots, le, { model: W }, void 0, !0)
2827
+ "onUpdate:modelValue": r[8] || (r[8] = (j) => e.value = j),
2828
+ onSubmit: ne,
2829
+ onReset: B
2830
+ }, fe({ _: 2 }, [
2831
+ Y(l.$slots, (j, oe, k) => ({
2832
+ name: oe,
2833
+ fn: y((W) => [
2834
+ p(l.$slots, oe, { model: W }, void 0, !0)
2788
2835
  ])
2789
2836
  }))
2790
2837
  ]), 1032, ["modelValue"])
@@ -2792,11 +2839,11 @@ const dl = {
2792
2839
  ]),
2793
2840
  _: 3
2794
2841
  }, 16, ["modelValue"])
2795
- ])) : be("", !0)
2842
+ ])) : $e("", !0)
2796
2843
  ], 64);
2797
2844
  };
2798
2845
  }
2799
- }), Ml = /* @__PURE__ */ Ue(Vl, [["__scopeId", "data-v-243728e0"]]), Fl = { class: "g-tree-table" }, Tl = { class: "g-tree-container" }, Sl = { class: "g-tree-table-container" }, ql = /* @__PURE__ */ Object.assign({
2846
+ }), Ml = /* @__PURE__ */ Ue(Vl, [["__scopeId", "data-v-66a3cf08"]]), Tl = { class: "g-tree-table" }, Fl = { class: "g-tree-container" }, Sl = { class: "g-tree-table-container" }, ql = /* @__PURE__ */ Object.assign({
2800
2847
  name: "g-tree-table",
2801
2848
  inheritAttrs: !1
2802
2849
  }, {
@@ -2807,70 +2854,70 @@ const dl = {
2807
2854
  },
2808
2855
  emits: /* @__PURE__ */ Be(["load"], ["update:modelValue"]),
2809
2856
  setup(f, { emit: c }) {
2810
- const t = c, e = Ie(f, "modelValue"), r = nt(), d = ve((r == null ? void 0 : r.width) || "180px"), Y = ve((r == null ? void 0 : r.search) === void 0 ? !0 : r == null ? void 0 : r.search), F = ve({}), T = ve(""), E = ve(null), D = (L, V) => {
2857
+ const t = c, e = Ie(f, "modelValue"), a = nt(), d = ye((a == null ? void 0 : a.width) || "180px"), U = ye((a == null ? void 0 : a.search) === void 0 ? !0 : a == null ? void 0 : a.search), T = ye({}), F = ye(""), E = ye(null), D = (R, V) => {
2811
2858
  var w, ae;
2812
- if (!L) return !0;
2813
- const b = ((ae = (w = r.tree) == null ? void 0 : w.props) == null ? void 0 : ae.label) || "label";
2814
- return V[b].includes(L);
2815
- }, N = (L, V) => {
2816
- t("load", F.value, L, V);
2817
- }, te = (L) => {
2818
- F.value = L, e.value.table.load();
2859
+ if (!R) return !0;
2860
+ const b = ((ae = (w = a.tree) == null ? void 0 : w.props) == null ? void 0 : ae.label) || "label";
2861
+ return V[b].includes(R);
2862
+ }, z = (R, V) => {
2863
+ t("load", T.value, R, V);
2864
+ }, te = (R) => {
2865
+ T.value = R, e.value.table.load();
2819
2866
  };
2820
- return qt(T, (L) => {
2821
- E.value.filter(L);
2822
- }), (L, V) => {
2823
- const b = R("el-input"), w = R("el-tree"), ae = R("g-table");
2824
- return n(), q("div", Fl, [
2825
- Z("div", {
2867
+ return qt(F, (R) => {
2868
+ E.value.filter(R);
2869
+ }), (R, V) => {
2870
+ const b = L("el-input"), w = L("el-tree"), ae = L("g-table");
2871
+ return n(), x("div", Tl, [
2872
+ J("div", {
2826
2873
  class: "g-tree-left",
2827
- style: Ae({ width: d.value })
2874
+ style: Oe({ width: d.value })
2828
2875
  }, [
2829
- Y.value ? (n(), O(b, {
2876
+ U.value ? (n(), q(b, {
2830
2877
  key: 0,
2831
- modelValue: T.value,
2832
- "onUpdate:modelValue": V[0] || (V[0] = (K) => T.value = K),
2878
+ modelValue: F.value,
2879
+ "onUpdate:modelValue": V[0] || (V[0] = (K) => F.value = K),
2833
2880
  style: { width: "100%", padding: "0 10px", "box-sizing": "border-box" },
2834
2881
  placeholder: "输入节点查询",
2835
2882
  clearable: ""
2836
- }, null, 8, ["modelValue"])) : be("", !0),
2837
- Z("div", Tl, [
2838
- X(w, S({
2883
+ }, null, 8, ["modelValue"])) : $e("", !0),
2884
+ J("div", Fl, [
2885
+ Z(w, S({
2839
2886
  style: { width: d.value },
2840
2887
  "filter-node-method": D,
2841
2888
  "expand-on-click-node": !1,
2842
2889
  ref_key: "treeRef",
2843
2890
  ref: E,
2844
2891
  onNodeClick: te
2845
- }, L.$attrs.tree), ce({
2846
- default: h(({ node: K, data: ne }) => [
2847
- p(L.$slots, "tree", {
2892
+ }, R.$attrs.tree), fe({
2893
+ default: y(({ node: K, data: ue }) => [
2894
+ p(R.$slots, "tree", {
2848
2895
  node: K,
2849
- data: ne
2896
+ data: ue
2850
2897
  }, () => [
2851
- Z("span", null, Ee(K.label), 1)
2898
+ J("span", null, Ee(K.label), 1)
2852
2899
  ], !0)
2853
2900
  ]),
2854
2901
  _: 2
2855
2902
  }, [
2856
- j(L.$slots, (K, ne, ie) => ({
2857
- name: ne,
2858
- fn: h((fe) => [
2859
- p(L.$slots, ne, { data: fe }, void 0, !0)
2903
+ Y(R.$slots, (K, ue, de) => ({
2904
+ name: ue,
2905
+ fn: y((me) => [
2906
+ p(R.$slots, ue, { data: me }, void 0, !0)
2860
2907
  ])
2861
2908
  }))
2862
2909
  ]), 1040, ["style"])
2863
2910
  ])
2864
2911
  ], 4),
2865
- Z("div", Sl, [
2866
- X(ae, S({
2912
+ J("div", Sl, [
2913
+ Z(ae, S({
2867
2914
  modelValue: e.value,
2868
2915
  "onUpdate:modelValue": V[1] || (V[1] = (K) => e.value = K)
2869
- }, L.$attrs, { onLoad: N }), ce({ _: 2 }, [
2870
- j(L.$slots, (K, ne, ie) => ({
2871
- name: ne,
2872
- fn: h((fe) => [
2873
- p(L.$slots, ne, { data: fe }, void 0, !0)
2916
+ }, R.$attrs, { onLoad: z }), fe({ _: 2 }, [
2917
+ Y(R.$slots, (K, ue, de) => ({
2918
+ name: ue,
2919
+ fn: y((me) => [
2920
+ p(R.$slots, ue, { data: me }, void 0, !0)
2874
2921
  ])
2875
2922
  }))
2876
2923
  ]), 1040, ["modelValue"])
@@ -2878,10 +2925,10 @@ const dl = {
2878
2925
  ]);
2879
2926
  };
2880
2927
  }
2881
- }), Ol = /* @__PURE__ */ Ue(ql, [["__scopeId", "data-v-5fb88c8a"]]), Al = {
2928
+ }), xl = /* @__PURE__ */ Ue(ql, [["__scopeId", "data-v-5fb88c8a"]]), Ol = {
2882
2929
  key: 0,
2883
2930
  class: "op-group"
2884
- }, xl = {
2931
+ }, Al = {
2885
2932
  key: 1,
2886
2933
  class: "op-items"
2887
2934
  }, Bl = ["title"], pt = "100px", Il = /* @__PURE__ */ Object.assign({ name: "g-select-option" }, {
@@ -2906,28 +2953,28 @@ const dl = {
2906
2953
  },
2907
2954
  setup(f) {
2908
2955
  const c = f;
2909
- return (t, e) => c.title ? (n(), q("div", Al, [
2910
- (n(!0), q(G, null, j(c.columns, (r) => (n(), q("span", {
2911
- style: Ae({ width: (r == null ? void 0 : r.width) || pt, ...r == null ? void 0 : r.titleStyle, textAlign: (r == null ? void 0 : r.align) || "center" }),
2912
- key: r.key
2956
+ return (t, e) => c.title ? (n(), x("div", Ol, [
2957
+ (n(!0), x(P, null, Y(c.columns, (a) => (n(), x("span", {
2958
+ style: Oe({ width: (a == null ? void 0 : a.width) || pt, ...a == null ? void 0 : a.titleStyle, textAlign: (a == null ? void 0 : a.align) || "center" }),
2959
+ key: a.key
2913
2960
  }, [
2914
- p(t.$slots, `${f.t}-title-${r.key}`, { col: r }, () => [
2915
- we(Ee(r.label), 1)
2961
+ p(t.$slots, `${f.t}-title-${a.key}`, { col: a }, () => [
2962
+ we(Ee(a.label), 1)
2916
2963
  ], !0)
2917
2964
  ], 4))), 128))
2918
- ])) : (n(), q("div", xl, [
2919
- (n(!0), q(G, null, j(c.columns, (r) => (n(), q("span", {
2920
- style: Ae({ width: (r == null ? void 0 : r.width) || pt, textAlign: (r == null ? void 0 : r.align) || "center", ...r == null ? void 0 : r.style }),
2921
- key: r.key,
2922
- title: f.data[r.key]
2965
+ ])) : (n(), x("div", Al, [
2966
+ (n(!0), x(P, null, Y(c.columns, (a) => (n(), x("span", {
2967
+ style: Oe({ width: (a == null ? void 0 : a.width) || pt, textAlign: (a == null ? void 0 : a.align) || "center", ...a == null ? void 0 : a.style }),
2968
+ key: a.key,
2969
+ title: f.data[a.key]
2923
2970
  }, [
2924
- p(t.$slots, `${f.t}-option-${r.key}`, { col: r }, () => [
2925
- we(Ee(f.data[r.key]), 1)
2971
+ p(t.$slots, `${f.t}-option-${a.key}`, { col: a }, () => [
2972
+ we(Ee(f.data[a.key]), 1)
2926
2973
  ], !0)
2927
2974
  ], 12, Bl))), 128))
2928
2975
  ]));
2929
2976
  }
2930
- }), Yl = /* @__PURE__ */ Ue(Il, [["__scopeId", "data-v-ba0fcda6"]]), Ul = Object.freeze({}), Et = [Ml, tt, Ol, Yl];
2977
+ }), Yl = /* @__PURE__ */ Ue(Il, [["__scopeId", "data-v-ba0fcda6"]]), Ul = Object.freeze({}), Et = [Ml, tt, xl, Yl];
2931
2978
  let lt = {};
2932
2979
  const Gl = {
2933
2980
  install: (f, c = {}) => {
@@ -2941,34 +2988,34 @@ const Gl = {
2941
2988
  const t = document.createElement("div");
2942
2989
  let e = () => {
2943
2990
  };
2944
- const r = jl(c);
2945
- if (!r) return () => {
2991
+ const a = jl(c);
2992
+ if (!a) return () => {
2946
2993
  };
2947
- const d = ve(!0), Y = Ot({
2994
+ const d = ye(!0), U = xt({
2948
2995
  setup() {
2949
2996
  return e = () => {
2950
2997
  d.value = !1, setTimeout(() => {
2951
- Y.unmount(), t.remove();
2998
+ U.unmount(), t.remove();
2952
2999
  }, 300);
2953
3000
  }, () => {
2954
- var F, T, E;
2955
- return qe(r, {
3001
+ var T, F, E;
3002
+ return qe(a, {
2956
3003
  modelValue: d.value,
2957
3004
  "onUpdate:modelValue": (D) => d.value = D,
2958
3005
  ...f,
2959
3006
  appendToBody: !0,
2960
3007
  destroyOnClose: !0
2961
3008
  }, {
2962
- default: (F = f.slots) == null ? void 0 : F.default,
2963
- header: (T = f.slots) == null ? void 0 : T.header,
3009
+ default: (T = f.slots) == null ? void 0 : T.default,
3010
+ header: (F = f.slots) == null ? void 0 : F.header,
2964
3011
  footer: (E = f.slots) == null ? void 0 : E.footer
2965
3012
  });
2966
3013
  };
2967
3014
  }
2968
3015
  });
2969
- return Et.forEach((F) => {
2970
- Y.component(F.name, F);
2971
- }), Y.provide("options", lt), Y.use(_t, { locale: It }), document.body.appendChild(t), Y.mount(t), e;
3016
+ return Et.forEach((T) => {
3017
+ U.component(T.name, T);
3018
+ }), U.provide("options", lt), U.use(_t, { locale: It }), document.body.appendChild(t), U.mount(t), e;
2972
3019
  };
2973
3020
  function wt(f, c = window.innerWidth) {
2974
3021
  if (typeof f == "number")
@@ -2986,19 +3033,19 @@ function wt(f, c = window.innerWidth) {
2986
3033
  return c * parseFloat(f) / 100;
2987
3034
  }
2988
3035
  if (f.startsWith("calc(") && f.endsWith(")")) {
2989
- let d = function(F) {
2990
- if (/[0-9+\-*/().\s]+$/.test(F))
2991
- return new Function("return " + F)();
3036
+ let d = function(T) {
3037
+ if (/[0-9+\-*/().\s]+$/.test(T))
3038
+ return new Function("return " + T)();
2992
3039
  throw new Error("Invalid calc expression");
2993
3040
  };
2994
- const r = f.slice(5, -1).trim();
2995
- return d(r.replace(/([0-9.]+)([a-z%]+)/g, (F, T, E) => wt(T + E, c)));
3041
+ const a = f.slice(5, -1).trim();
3042
+ return d(a.replace(/([0-9.]+)([a-z%]+)/g, (T, F, E) => wt(F + E, c)));
2996
3043
  }
2997
3044
  throw new Error("Unsupported unit in value: " + f);
2998
3045
  }
2999
3046
  const Me = (...f) => {
3000
- const c = {}, t = (e, r) => (Object.keys(r).forEach((d) => {
3001
- e[d] = typeof r[d] == "object" && !Array.isArray(r[d]) ? t(e[d] || {}, r[d]) : r[d];
3047
+ const c = {}, t = (e, a) => (Object.keys(a).forEach((d) => {
3048
+ e[d] = typeof a[d] == "object" && !Array.isArray(a[d]) ? t(e[d] || {}, a[d]) : a[d];
3002
3049
  }), e);
3003
3050
  return f.forEach((e = {}) => t(c, e)), c;
3004
3051
  };
@@ -3008,44 +3055,44 @@ function ke(f, c = (t, e) => c(t, e)) {
3008
3055
  f.hasOwnProperty(e) && c(e, f[e]) && (t[e] = f[e]);
3009
3056
  return t;
3010
3057
  }
3011
- function Rl(f, c, t = "value", e = "label", r = "children") {
3058
+ function Ll(f, c, t = "value", e = "label", a = "children") {
3012
3059
  for (const d of f) {
3013
3060
  if (d[t] === c)
3014
3061
  return d[e];
3015
- if (d[r] && d[r].length > 0) {
3016
- const Y = Rl(d[r], c, t, e, r);
3017
- if (Y)
3018
- return Y;
3062
+ if (d[a] && d[a].length > 0) {
3063
+ const U = Ll(d[a], c, t, e, a);
3064
+ if (U)
3065
+ return U;
3019
3066
  }
3020
3067
  }
3021
3068
  return null;
3022
3069
  }
3023
- function at(f) {
3070
+ function rt(f) {
3024
3071
  if (!f || isNaN(f)) return "零";
3025
3072
  const c = ["角", "分"], t = ["零", "壹", "贰", "叁", "肆", "伍", "陆", "柒", "捌", "玖"], e = [
3026
3073
  ["元", "万", "亿"],
3027
3074
  ["", "拾", "佰", "仟"]
3028
- ], r = f < 0 ? "欠" : "";
3075
+ ], a = f < 0 ? "欠" : "";
3029
3076
  f = Math.abs(f);
3030
3077
  let d = "";
3031
- for (let Y = 0; Y < c.length; Y++)
3032
- d += (t[Math.floor(f * 10 * Math.pow(10, Y)) % 10] + c[Y]).replace(/零./, "");
3078
+ for (let U = 0; U < c.length; U++)
3079
+ d += (t[Math.floor(f * 10 * Math.pow(10, U)) % 10] + c[U]).replace(/零./, "");
3033
3080
  d = d || "整", f = Math.floor(f);
3034
- for (let Y = 0; Y < e[0].length && f > 0; Y++) {
3035
- let F = "";
3036
- for (let T = 0; T < e[1].length && f > 0; T++)
3037
- F = t[f % 10] + e[1][T] + F, f = Math.floor(f / 10);
3038
- d = F.replace(/(零.)*零$/, "").replace(/^$/, "零") + e[0][Y] + d;
3081
+ for (let U = 0; U < e[0].length && f > 0; U++) {
3082
+ let T = "";
3083
+ for (let F = 0; F < e[1].length && f > 0; F++)
3084
+ T = t[f % 10] + e[1][F] + T, f = Math.floor(f / 10);
3085
+ d = T.replace(/(零.)*零$/, "").replace(/^$/, "零") + e[0][U] + d;
3039
3086
  }
3040
- return r + d.replace(/(零.)*零元/, "元").replace(/(零.)+/g, "零").replace(/^整$/, "零元整");
3087
+ return a + d.replace(/(零.)*零元/, "元").replace(/(零.)+/g, "零").replace(/^整$/, "零元整");
3041
3088
  }
3042
- function Ll(f) {
3089
+ function Rl(f) {
3043
3090
  if (typeof f != "number" || isNaN(f) || !isFinite(f))
3044
3091
  return "0.00";
3045
3092
  const c = f.toFixed(2), [t, e] = c.split(".");
3046
3093
  return `${t.replace(/\B(?=(\d{3})+(?!\d))/g, ",")}.${e}`;
3047
3094
  }
3048
- const ge = {
3095
+ const be = {
3049
3096
  RADIO: "radio",
3050
3097
  RADIOBUTTON: "radio-button",
3051
3098
  CHECKBOX: "checkbox",
@@ -3075,13 +3122,13 @@ const ge = {
3075
3122
  TEL: "tel"
3076
3123
  };
3077
3124
  export {
3078
- ge as CT,
3125
+ be as CT,
3079
3126
  wt as convertToPx,
3080
3127
  Gl as default,
3081
3128
  ke as filterObject,
3082
- Rl as findTreeLabelByValue,
3083
- Ll as formatAmount,
3129
+ Ll as findTreeLabelByValue,
3130
+ Rl as formatAmount,
3084
3131
  Me as mergeObjects,
3085
- at as moneyToChinese,
3132
+ rt as moneyToChinese,
3086
3133
  ot as openModal
3087
3134
  };