vue-2024-ui 0.2.4 → 0.2.6

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 Ht, { ElForm as pt, ElButtonGroup as mt, ElButton as qe, ElPopover as $t, ElMessage as Xe, ElMessageBox as Ft, ElDialog as Pt, ElDrawer as Nt } from "element-plus";
2
- import { h as _e, mergeModels as Ge, useModel as Qe, ref as re, nextTick as lt, onMounted as ot, computed as Ke, resolveComponent as A, openBlock as u, createElementBlock as q, Fragment as X, createElementVNode as H, createBlock as V, createCommentVNode as ye, unref as Y, mergeProps as F, withCtx as b, renderSlot as $, renderList as L, createTextVNode as Ae, toDisplayString as Ce, createSlots as ve, createVNode as G, normalizeStyle as Oe, normalizeProps as Et, useSlots as qt, inject as Mt, useAttrs as Vt, onUnmounted as Wt, withModifiers as vt, resolveDynamicComponent as We, guardReactiveProps as Xt, Transition as Gt, withDirectives as Qt, vShow as Zt, onBeforeUnmount as Jt, normalizeClass as Ot, watchEffect as Kt, onBeforeMount as el, getCurrentInstance as tl, watch as ll, createApp as al } from "vue";
3
- import { CircleCheck as It, Refresh as At, Plus as rl, ZoomIn as ol, Delete as Bt, More as ul, Search as nl, Download as Yt, DocumentCopy as sl, View as il, Edit as dl, CirclePlus as cl, Setting as fl, FullScreen as pl, CopyDocument as ml } from "@element-plus/icons-vue";
1
+ import Ht, { ElForm as mt, ElButtonGroup as pt, ElButton as Ae, ElPopover as $t, ElMessage as Xe, ElMessageBox as Ft, ElDialog as Pt, ElDrawer as Nt } from "element-plus";
2
+ import { h as Ee, mergeModels as Ge, useModel as Qe, ref as re, nextTick as lt, onMounted as ot, computed as Ke, resolveComponent as I, openBlock as u, createElementBlock as q, Fragment as X, createElementVNode as H, createBlock as S, createCommentVNode as ge, unref as U, mergeProps as x, withCtx as b, renderSlot as $, renderList as R, createTextVNode as Be, toDisplayString as Ce, createSlots as he, createVNode as G, normalizeStyle as Oe, normalizeProps as _t, useSlots as qt, inject as Mt, useAttrs as St, onUnmounted as Wt, withModifiers as vt, resolveDynamicComponent as We, guardReactiveProps as Xt, Transition as Gt, withDirectives as Qt, vShow as Zt, onBeforeUnmount as Jt, normalizeClass as Ot, watchEffect as Kt, onBeforeMount as el, getCurrentInstance as tl, watch as ll, createApp as al } from "vue";
3
+ import { CircleCheck as At, Refresh as It, Plus as rl, ZoomIn as ol, Delete as Bt, More as ul, Search as nl, Download as Yt, DocumentCopy as sl, View as il, Edit as dl, CirclePlus as cl, Setting as fl, FullScreen as ml, CopyDocument as pl } from "@element-plus/icons-vue";
4
4
  import Ut from "sortablejs";
5
5
  import { Dexie as vl } from "dexie";
6
6
  var hl = {
@@ -187,59 +187,59 @@ function gl(f) {
187
187
  }
188
188
  var Lt = { exports: {} };
189
189
  (function(f, s) {
190
- (function(r, l) {
190
+ (function(o, l) {
191
191
  f.exports = l();
192
192
  })(yl, function() {
193
- var r = 1e3, l = 6e4, e = 36e5, i = "millisecond", M = "second", U = "minute", S = "hour", E = "day", k = "week", R = "month", te = "quarter", se = "year", T = "date", Q = "Invalid Date", fe = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, N = /\[([^\]]+)]|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, pe = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(m) {
194
- var p = ["th", "st", "nd", "rd"], a = m % 100;
195
- return "[" + m + (p[(a - 20) % 10] || p[a] || p[0]) + "]";
196
- } }, de = function(m, p, a) {
197
- var D = String(m);
198
- return !D || D.length >= p ? m : "" + Array(p + 1 - D.length).join(a) + m;
199
- }, De = { s: de, z: function(m) {
200
- var p = -m.utcOffset(), a = Math.abs(p), D = Math.floor(a / 60), g = a % 60;
201
- return (p <= 0 ? "+" : "-") + de(D, 2, "0") + ":" + de(g, 2, "0");
202
- }, m: function m(p, a) {
203
- if (p.date() < a.date()) return -m(a, p);
204
- var D = 12 * (a.year() - p.year()) + (a.month() - p.month()), g = p.clone().add(D, R), h = a - g < 0, O = p.clone().add(D + (h ? -1 : 1), R);
193
+ var o = 1e3, l = 6e4, e = 36e5, i = "millisecond", M = "second", Y = "minute", V = "hour", _ = "day", k = "week", L = "month", te = "quarter", ie = "year", T = "date", Q = "Invalid Date", fe = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, N = /\[([^\]]+)]|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, me = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(p) {
194
+ var m = ["th", "st", "nd", "rd"], a = p % 100;
195
+ return "[" + p + (m[(a - 20) % 10] || m[a] || m[0]) + "]";
196
+ } }, ce = function(p, m, a) {
197
+ var D = String(p);
198
+ return !D || D.length >= m ? p : "" + Array(m + 1 - D.length).join(a) + p;
199
+ }, Me = { s: ce, z: function(p) {
200
+ var m = -p.utcOffset(), a = Math.abs(m), D = Math.floor(a / 60), g = a % 60;
201
+ return (m <= 0 ? "+" : "-") + ce(D, 2, "0") + ":" + ce(g, 2, "0");
202
+ }, m: function p(m, a) {
203
+ if (m.date() < a.date()) return -p(a, m);
204
+ var D = 12 * (a.year() - m.year()) + (a.month() - m.month()), g = m.clone().add(D, L), h = a - g < 0, O = m.clone().add(D + (h ? -1 : 1), L);
205
205
  return +(-(D + (a - g) / (h ? g - O : O - g)) || 0);
206
- }, a: function(m) {
207
- return m < 0 ? Math.ceil(m) || 0 : Math.floor(m);
208
- }, p: function(m) {
209
- return { M: R, y: se, w: k, d: E, D: T, h: S, m: U, s: M, ms: i, Q: te }[m] || String(m || "").toLowerCase().replace(/s$/, "");
210
- }, u: function(m) {
211
- return m === void 0;
212
- } }, ie = "en", ue = {};
213
- ue[ie] = pe;
214
- var he = "$isDayjsObject", Ve = function(m) {
215
- return m instanceof Ie || !(!m || !m[he]);
216
- }, le = function m(p, a, D) {
206
+ }, a: function(p) {
207
+ return p < 0 ? Math.ceil(p) || 0 : Math.floor(p);
208
+ }, p: function(p) {
209
+ return { M: L, y: ie, w: k, d: _, D: T, h: V, m: Y, s: M, ms: i, Q: te }[p] || String(p || "").toLowerCase().replace(/s$/, "");
210
+ }, u: function(p) {
211
+ return p === void 0;
212
+ } }, de = "en", ue = {};
213
+ ue[de] = me;
214
+ var ye = "$isDayjsObject", Te = function(p) {
215
+ return p instanceof Ie || !(!p || !p[ye]);
216
+ }, le = function p(m, a, D) {
217
217
  var g;
218
- if (!p) return ie;
219
- if (typeof p == "string") {
220
- var h = p.toLowerCase();
218
+ if (!m) return de;
219
+ if (typeof m == "string") {
220
+ var h = m.toLowerCase();
221
221
  ue[h] && (g = h), a && (ue[h] = a, g = h);
222
- var O = p.split("-");
223
- if (!g && O.length > 1) return m(O[0]);
222
+ var O = m.split("-");
223
+ if (!g && O.length > 1) return p(O[0]);
224
224
  } else {
225
- var P = p.name;
226
- ue[P] = p, g = P;
225
+ var P = m.name;
226
+ ue[P] = m, g = P;
227
227
  }
228
- return !D && g && (ie = g), g || !D && ie;
229
- }, oe = function(m, p) {
230
- if (Ve(m)) return m.clone();
231
- var a = typeof p == "object" ? p : {};
232
- return a.date = m, a.args = arguments, new Ie(a);
233
- }, ae = De;
234
- ae.l = le, ae.i = Ve, ae.w = function(m, p) {
235
- return oe(m, { locale: p.$L, utc: p.$u, x: p.$x, $offset: p.$offset });
228
+ return !D && g && (de = g), g || !D && de;
229
+ }, oe = function(p, m) {
230
+ if (Te(p)) return p.clone();
231
+ var a = typeof m == "object" ? m : {};
232
+ return a.date = p, a.args = arguments, new Ie(a);
233
+ }, ae = Me;
234
+ ae.l = le, ae.i = Te, ae.w = function(p, m) {
235
+ return oe(p, { locale: m.$L, utc: m.$u, x: m.$x, $offset: m.$offset });
236
236
  };
237
237
  var Ie = function() {
238
- function m(a) {
239
- this.$L = le(a.locale, null, !0), this.parse(a), this.$x = this.$x || a.x || {}, this[he] = !0;
238
+ function p(a) {
239
+ this.$L = le(a.locale, null, !0), this.parse(a), this.$x = this.$x || a.x || {}, this[ye] = !0;
240
240
  }
241
- var p = m.prototype;
242
- return p.parse = function(a) {
241
+ var m = p.prototype;
242
+ return m.parse = function(a) {
243
243
  this.$d = function(D) {
244
244
  var g = D.date, h = D.utc;
245
245
  if (g === null) return /* @__PURE__ */ new Date(NaN);
@@ -254,95 +254,95 @@ var Lt = { exports: {} };
254
254
  }
255
255
  return new Date(g);
256
256
  }(a), this.init();
257
- }, p.init = function() {
257
+ }, m.init = function() {
258
258
  var a = this.$d;
259
259
  this.$y = a.getFullYear(), this.$M = a.getMonth(), this.$D = a.getDate(), this.$W = a.getDay(), this.$H = a.getHours(), this.$m = a.getMinutes(), this.$s = a.getSeconds(), this.$ms = a.getMilliseconds();
260
- }, p.$utils = function() {
260
+ }, m.$utils = function() {
261
261
  return ae;
262
- }, p.isValid = function() {
262
+ }, m.isValid = function() {
263
263
  return this.$d.toString() !== Q;
264
- }, p.isSame = function(a, D) {
264
+ }, m.isSame = function(a, D) {
265
265
  var g = oe(a);
266
266
  return this.startOf(D) <= g && g <= this.endOf(D);
267
- }, p.isAfter = function(a, D) {
267
+ }, m.isAfter = function(a, D) {
268
268
  return oe(a) < this.startOf(D);
269
- }, p.isBefore = function(a, D) {
269
+ }, m.isBefore = function(a, D) {
270
270
  return this.endOf(D) < oe(a);
271
- }, p.$g = function(a, D, g) {
271
+ }, m.$g = function(a, D, g) {
272
272
  return ae.u(a) ? this[D] : this.set(g, a);
273
- }, p.unix = function() {
273
+ }, m.unix = function() {
274
274
  return Math.floor(this.valueOf() / 1e3);
275
- }, p.valueOf = function() {
275
+ }, m.valueOf = function() {
276
276
  return this.$d.getTime();
277
- }, p.startOf = function(a, D) {
278
- var g = this, h = !!ae.u(D) || D, O = ae.p(a), P = function(be, $e) {
279
- var we = ae.w(g.$u ? Date.UTC(g.$y, $e, be) : new Date(g.$y, $e, be), g);
280
- return h ? we : we.endOf(E);
281
- }, J = function(be, $e) {
282
- return ae.w(g.toDate()[be].apply(g.toDate("s"), (h ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice($e)), g);
277
+ }, m.startOf = function(a, D) {
278
+ var g = this, h = !!ae.u(D) || D, O = ae.p(a), P = function($e, we) {
279
+ var _e = ae.w(g.$u ? Date.UTC(g.$y, we, $e) : new Date(g.$y, we, $e), g);
280
+ return h ? _e : _e.endOf(_);
281
+ }, J = function($e, we) {
282
+ return ae.w(g.toDate()[$e].apply(g.toDate("s"), (h ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(we)), g);
283
283
  }, Z = this.$W, v = this.$M, c = this.$D, K = "set" + (this.$u ? "UTC" : "");
284
284
  switch (O) {
285
- case se:
285
+ case ie:
286
286
  return h ? P(1, 0) : P(31, 11);
287
- case R:
287
+ case L:
288
288
  return h ? P(1, v) : P(0, v + 1);
289
289
  case k:
290
- var ge = this.$locale().weekStart || 0, me = (Z < ge ? Z + 7 : Z) - ge;
291
- return P(h ? c - me : c + (6 - me), v);
292
- case E:
290
+ var be = this.$locale().weekStart || 0, ve = (Z < be ? Z + 7 : Z) - be;
291
+ return P(h ? c - ve : c + (6 - ve), v);
292
+ case _:
293
293
  case T:
294
294
  return J(K + "Hours", 0);
295
- case S:
295
+ case V:
296
296
  return J(K + "Minutes", 1);
297
- case U:
297
+ case Y:
298
298
  return J(K + "Seconds", 2);
299
299
  case M:
300
300
  return J(K + "Milliseconds", 3);
301
301
  default:
302
302
  return this.clone();
303
303
  }
304
- }, p.endOf = function(a) {
304
+ }, m.endOf = function(a) {
305
305
  return this.startOf(a, !1);
306
- }, p.$set = function(a, D) {
307
- var g, h = ae.p(a), O = "set" + (this.$u ? "UTC" : ""), P = (g = {}, g[E] = O + "Date", g[T] = O + "Date", g[R] = O + "Month", g[se] = O + "FullYear", g[S] = O + "Hours", g[U] = O + "Minutes", g[M] = O + "Seconds", g[i] = O + "Milliseconds", g)[h], J = h === E ? this.$D + (D - this.$W) : D;
308
- if (h === R || h === se) {
306
+ }, m.$set = function(a, D) {
307
+ var g, h = ae.p(a), O = "set" + (this.$u ? "UTC" : ""), P = (g = {}, g[_] = O + "Date", g[T] = O + "Date", g[L] = O + "Month", g[ie] = O + "FullYear", g[V] = O + "Hours", g[Y] = O + "Minutes", g[M] = O + "Seconds", g[i] = O + "Milliseconds", g)[h], J = h === _ ? this.$D + (D - this.$W) : D;
308
+ if (h === L || h === ie) {
309
309
  var Z = this.clone().set(T, 1);
310
310
  Z.$d[P](J), Z.init(), this.$d = Z.set(T, Math.min(this.$D, Z.daysInMonth())).$d;
311
311
  } else P && this.$d[P](J);
312
312
  return this.init(), this;
313
- }, p.set = function(a, D) {
313
+ }, m.set = function(a, D) {
314
314
  return this.clone().$set(a, D);
315
- }, p.get = function(a) {
315
+ }, m.get = function(a) {
316
316
  return this[ae.p(a)]();
317
- }, p.add = function(a, D) {
317
+ }, m.add = function(a, D) {
318
318
  var g, h = this;
319
319
  a = Number(a);
320
320
  var O = ae.p(D), P = function(v) {
321
321
  var c = oe(h);
322
322
  return ae.w(c.date(c.date() + Math.round(v * a)), h);
323
323
  };
324
- if (O === R) return this.set(R, this.$M + a);
325
- if (O === se) return this.set(se, this.$y + a);
326
- if (O === E) return P(1);
324
+ if (O === L) return this.set(L, this.$M + a);
325
+ if (O === ie) return this.set(ie, this.$y + a);
326
+ if (O === _) return P(1);
327
327
  if (O === k) return P(7);
328
- var J = (g = {}, g[U] = l, g[S] = e, g[M] = r, g)[O] || 1, Z = this.$d.getTime() + a * J;
328
+ var J = (g = {}, g[Y] = l, g[V] = e, g[M] = o, g)[O] || 1, Z = this.$d.getTime() + a * J;
329
329
  return ae.w(Z, this);
330
- }, p.subtract = function(a, D) {
330
+ }, m.subtract = function(a, D) {
331
331
  return this.add(-1 * a, D);
332
- }, p.format = function(a) {
332
+ }, m.format = function(a) {
333
333
  var D = this, g = this.$locale();
334
334
  if (!this.isValid()) return g.invalidDate || Q;
335
- var h = a || "YYYY-MM-DDTHH:mm:ssZ", O = ae.z(this), P = this.$H, J = this.$m, Z = this.$M, v = g.weekdays, c = g.months, K = g.meridiem, ge = function($e, we, Se, xe) {
336
- return $e && ($e[we] || $e(D, h)) || Se[we].slice(0, xe);
337
- }, me = function($e) {
338
- return ae.s(P % 12 || 12, $e, "0");
339
- }, be = K || function($e, we, Se) {
340
- var xe = $e < 12 ? "AM" : "PM";
341
- return Se ? xe.toLowerCase() : xe;
335
+ var h = a || "YYYY-MM-DDTHH:mm:ssZ", O = ae.z(this), P = this.$H, J = this.$m, Z = this.$M, v = g.weekdays, c = g.months, K = g.meridiem, be = function(we, _e, xe, Fe) {
336
+ return we && (we[_e] || we(D, h)) || xe[_e].slice(0, Fe);
337
+ }, ve = function(we) {
338
+ return ae.s(P % 12 || 12, we, "0");
339
+ }, $e = K || function(we, _e, xe) {
340
+ var Fe = we < 12 ? "AM" : "PM";
341
+ return xe ? Fe.toLowerCase() : Fe;
342
342
  };
343
- return h.replace(N, function($e, we) {
344
- return we || function(Se) {
345
- switch (Se) {
343
+ return h.replace(N, function(we, _e) {
344
+ return _e || function(xe) {
345
+ switch (xe) {
346
346
  case "YY":
347
347
  return String(D.$y).slice(-2);
348
348
  case "YYYY":
@@ -352,9 +352,9 @@ var Lt = { exports: {} };
352
352
  case "MM":
353
353
  return ae.s(Z + 1, 2, "0");
354
354
  case "MMM":
355
- return ge(g.monthsShort, Z, c, 3);
355
+ return be(g.monthsShort, Z, c, 3);
356
356
  case "MMMM":
357
- return ge(c, Z);
357
+ return be(c, Z);
358
358
  case "D":
359
359
  return D.$D;
360
360
  case "DD":
@@ -362,9 +362,9 @@ var Lt = { exports: {} };
362
362
  case "d":
363
363
  return String(D.$W);
364
364
  case "dd":
365
- return ge(g.weekdaysMin, D.$W, v, 2);
365
+ return be(g.weekdaysMin, D.$W, v, 2);
366
366
  case "ddd":
367
- return ge(g.weekdaysShort, D.$W, v, 3);
367
+ return be(g.weekdaysShort, D.$W, v, 3);
368
368
  case "dddd":
369
369
  return v[D.$W];
370
370
  case "H":
@@ -372,13 +372,13 @@ var Lt = { exports: {} };
372
372
  case "HH":
373
373
  return ae.s(P, 2, "0");
374
374
  case "h":
375
- return me(1);
375
+ return ve(1);
376
376
  case "hh":
377
- return me(2);
377
+ return ve(2);
378
378
  case "a":
379
- return be(P, J, !0);
379
+ return $e(P, J, !0);
380
380
  case "A":
381
- return be(P, J, !1);
381
+ return $e(P, J, !1);
382
382
  case "m":
383
383
  return String(J);
384
384
  case "mm":
@@ -393,19 +393,19 @@ var Lt = { exports: {} };
393
393
  return O;
394
394
  }
395
395
  return null;
396
- }($e) || O.replace(":", "");
396
+ }(we) || O.replace(":", "");
397
397
  });
398
- }, p.utcOffset = function() {
398
+ }, m.utcOffset = function() {
399
399
  return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
400
- }, p.diff = function(a, D, g) {
400
+ }, m.diff = function(a, D, g) {
401
401
  var h, O = this, P = ae.p(D), J = oe(a), Z = (J.utcOffset() - this.utcOffset()) * l, v = this - J, c = function() {
402
402
  return ae.m(O, J);
403
403
  };
404
404
  switch (P) {
405
- case se:
405
+ case ie:
406
406
  h = c() / 12;
407
407
  break;
408
- case R:
408
+ case L:
409
409
  h = c();
410
410
  break;
411
411
  case te:
@@ -414,55 +414,55 @@ var Lt = { exports: {} };
414
414
  case k:
415
415
  h = (v - Z) / 6048e5;
416
416
  break;
417
- case E:
417
+ case _:
418
418
  h = (v - Z) / 864e5;
419
419
  break;
420
- case S:
420
+ case V:
421
421
  h = v / e;
422
422
  break;
423
- case U:
423
+ case Y:
424
424
  h = v / l;
425
425
  break;
426
426
  case M:
427
- h = v / r;
427
+ h = v / o;
428
428
  break;
429
429
  default:
430
430
  h = v;
431
431
  }
432
432
  return g ? h : ae.a(h);
433
- }, p.daysInMonth = function() {
434
- return this.endOf(R).$D;
435
- }, p.$locale = function() {
433
+ }, m.daysInMonth = function() {
434
+ return this.endOf(L).$D;
435
+ }, m.$locale = function() {
436
436
  return ue[this.$L];
437
- }, p.locale = function(a, D) {
437
+ }, m.locale = function(a, D) {
438
438
  if (!a) return this.$L;
439
439
  var g = this.clone(), h = le(a, D, !0);
440
440
  return h && (g.$L = h), g;
441
- }, p.clone = function() {
441
+ }, m.clone = function() {
442
442
  return ae.w(this.$d, this);
443
- }, p.toDate = function() {
443
+ }, m.toDate = function() {
444
444
  return new Date(this.valueOf());
445
- }, p.toJSON = function() {
445
+ }, m.toJSON = function() {
446
446
  return this.isValid() ? this.toISOString() : null;
447
- }, p.toISOString = function() {
447
+ }, m.toISOString = function() {
448
448
  return this.$d.toISOString();
449
- }, p.toString = function() {
449
+ }, m.toString = function() {
450
450
  return this.$d.toUTCString();
451
- }, m;
451
+ }, p;
452
452
  }(), w = Ie.prototype;
453
- return oe.prototype = w, [["$ms", i], ["$s", M], ["$m", U], ["$H", S], ["$W", E], ["$M", R], ["$y", se], ["$D", T]].forEach(function(m) {
454
- w[m[1]] = function(p) {
455
- return this.$g(p, m[0], m[1]);
453
+ return oe.prototype = w, [["$ms", i], ["$s", M], ["$m", Y], ["$H", V], ["$W", _], ["$M", L], ["$y", ie], ["$D", T]].forEach(function(p) {
454
+ w[p[1]] = function(m) {
455
+ return this.$g(m, p[0], p[1]);
456
456
  };
457
- }), oe.extend = function(m, p) {
458
- return m.$i || (m(p, Ie, oe), m.$i = !0), oe;
459
- }, oe.locale = le, oe.isDayjs = Ve, oe.unix = function(m) {
460
- return oe(1e3 * m);
461
- }, oe.en = ue[ie], oe.Ls = ue, oe.p = {}, oe;
457
+ }), oe.extend = function(p, m) {
458
+ return p.$i || (p(m, Ie, oe), p.$i = !0), oe;
459
+ }, oe.locale = le, oe.isDayjs = Te, oe.unix = function(p) {
460
+ return oe(1e3 * p);
461
+ }, oe.en = ue[de], oe.Ls = ue, oe.p = {}, oe;
462
462
  });
463
463
  })(Lt);
464
464
  var bl = Lt.exports;
465
- const wt = /* @__PURE__ */ gl(bl), Rt = {
465
+ const wt = /* @__PURE__ */ gl(bl), zt = {
466
466
  inline: !0,
467
467
  type: "hidden",
468
468
  "scroll-to-error": !0,
@@ -491,7 +491,7 @@ const wt = /* @__PURE__ */ gl(bl), Rt = {
491
491
  label: "提交",
492
492
  plain: !0,
493
493
  hidden: !1,
494
- icon: () => _e(It)
494
+ icon: () => Ee(At)
495
495
  },
496
496
  //表单重置按钮属性
497
497
  reset: {
@@ -499,7 +499,7 @@ const wt = /* @__PURE__ */ gl(bl), Rt = {
499
499
  label: "重置",
500
500
  hidden: !1,
501
501
  plain: !0,
502
- icon: () => _e(At)
502
+ icon: () => Ee(It)
503
503
  },
504
504
  slots: {},
505
505
  tabs: {
@@ -507,17 +507,14 @@ const wt = /* @__PURE__ */ gl(bl), Rt = {
507
507
  editable: !1
508
508
  }
509
509
  }, Ze = (f, s) => {
510
- const r = f.__vccOpts || f;
510
+ const o = f.__vccOpts || f;
511
511
  for (const [l, e] of s)
512
- r[l] = e;
513
- return r;
512
+ o[l] = e;
513
+ return o;
514
514
  }, $l = {
515
515
  style: { display: "flex", width: "100%" },
516
516
  class: "g-ctrl-container"
517
- }, wl = { style: { width: "var(--up-width)", height: "var(--up-height)", position: "relative", "box-sizing": "border-box" } }, El = {
518
- key: 19,
519
- style: { position: "relative" }
520
- }, _l = ["title"], kl = ["innerHTML"], Cl = ["innerHTML"], Dl = ["innerHTML"], Ml = ["innerHTML"], Vl = ["innerHTML"], Sl = ["innerHTML"], Tl = ["innerHTML"], xl = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
517
+ }, wl = { style: { width: "var(--up-width)", height: "var(--up-height)", position: "relative", "box-sizing": "border-box" } }, _l = ["title"], El = ["innerHTML"], kl = ["innerHTML"], Cl = ["innerHTML"], Dl = ["innerHTML"], Ml = ["innerHTML"], Sl = ["innerHTML"], Vl = ["innerHTML"], Tl = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
521
518
  __name: "g-ctrl",
522
519
  props: /* @__PURE__ */ Ge(["t", "ctrlKey", "item", "model", "ctrlType", "formInfo"], {
523
520
  modelValue: { required: !0 },
@@ -525,19 +522,19 @@ const wt = /* @__PURE__ */ gl(bl), Rt = {
525
522
  }),
526
523
  emits: ["update:modelValue"],
527
524
  setup(f) {
528
- var Ie, w, m, p, a, D, g, h, O, P, J, Z;
529
- const s = Qe(f, "modelValue"), r = f, l = re(r.item || {}), e = re(r.ctrlKey), i = re(r.ctrlType), M = re(r.model), U = re([]), S = re([]), E = re(!1), k = re(!1);
530
- !((Ie = i.value) != null && Ie.startsWith("text")) && !((w = i.value) != null && w.startsWith("link")) && !((m = i.value) != null && m.startsWith("tag")) && !((p = i.value) != null && p.startsWith("div")) && !((a = i.value) != null && a.startsWith("span")) && !((D = i.value) != null && D.startsWith("avatar")) && ((g = l.value) != null && g.style || (l.value.style = { width: ((O = (h = l.value) == null ? void 0 : h.style) == null ? void 0 : O.width) || "100%" }));
531
- const R = re({ display: "flex", flex: 1 }), te = r.t === "t" ? "center" : "flex-start", se = ((P = l.value) == null ? void 0 : P.style) || {};
532
- R.value = { ...R.value, justifyContent: te, ...se };
525
+ var Ie, w, p, m, a, D, g, h, O, P, J, Z;
526
+ const s = Qe(f, "modelValue"), o = f, l = re(o.item || {}), e = re(o.ctrlKey), i = re(o.ctrlType), M = re(o.model), Y = re([]), V = re([]), _ = re(!1), k = re(!1);
527
+ !((Ie = i.value) != null && Ie.startsWith("text")) && !((w = i.value) != null && w.startsWith("link")) && !((p = i.value) != null && p.startsWith("tag")) && !((m = i.value) != null && m.startsWith("div")) && !((a = i.value) != null && a.startsWith("span")) && !((D = i.value) != null && D.startsWith("avatar")) && ((g = l.value) != null && g.style || (l.value.style = { width: ((O = (h = l.value) == null ? void 0 : h.style) == null ? void 0 : O.width) || "100%" }));
528
+ const L = re({ display: "flex", flex: 1 }), te = o.t === "t" ? "center" : "flex-start", ie = ((P = l.value) == null ? void 0 : P.style) || {};
529
+ L.value = { ...L.value, justifyContent: te, ...ie };
533
530
  const T = () => {
534
- const v = qt(), c = Object.keys(v), K = `${r.t}-${e.value}-`;
535
- return c.filter((be) => be.startsWith(K)).map((be) => be.replace(K, ""));
531
+ const v = qt(), c = Object.keys(v), K = `${o.t}-${e.value}-`;
532
+ return c.filter(($e) => $e.startsWith(K)).map(($e) => $e.replace(K, ""));
536
533
  }, Q = re({
537
534
  multiple: !1,
538
535
  "show-file-list": !1,
539
536
  "file-list": [],
540
- showDel: (J = l.value) != null && J.showDel ? (Z = l.value) == null ? void 0 : Z.showDel : r.t !== "t"
537
+ showDel: (J = l.value) != null && J.showDel ? (Z = l.value) == null ? void 0 : Z.showDel : o.t !== "t"
541
538
  }), fe = re(l.value.innerHtml), N = (v) => [
542
539
  "year",
543
540
  "years",
@@ -551,7 +548,7 @@ const wt = /* @__PURE__ */ gl(bl), Rt = {
551
548
  "daterange",
552
549
  "monthrange",
553
550
  "yearrange"
554
- ].includes(v), pe = (v) => ({
551
+ ].includes(v), me = (v) => ({
555
552
  year: "YYYY",
556
553
  years: "YYYY",
557
554
  month: "YYYY-MM",
@@ -565,62 +562,62 @@ const wt = /* @__PURE__ */ gl(bl), Rt = {
565
562
  daterange: "YYYY-MM-DD",
566
563
  monthrange: "YYYY-MM",
567
564
  yearrange: "YYYY"
568
- })[v] || "YYYY-MM-DD", de = re({
565
+ })[v] || "YYYY-MM-DD", ce = re({
569
566
  filterable: !0,
570
567
  remote: !!(l.value && l.value["remote-method"]),
571
568
  ...l.value
572
- }), De = re((v) => {
569
+ }), Me = re((v) => {
573
570
  l.value["remote-method"](v, (c) => {
574
571
  lt(() => {
575
- S.value = c;
572
+ V.value = c;
576
573
  });
577
574
  });
578
- }), ie = async (v = "options") => {
575
+ }), de = async (v = "options") => {
579
576
  var c;
580
577
  try {
581
- const K = await ((c = l.value) == null ? void 0 : c.getDicts(r.formInfo));
578
+ const K = await ((c = l.value) == null ? void 0 : c.getDicts(o.formInfo));
582
579
  if (typeof K == "string")
583
- S.value = [{ label: K, value: s.value }];
580
+ V.value = [{ label: K, value: s.value }];
584
581
  else {
585
- const ge = K == null ? void 0 : K.map((me, be) => ({
586
- ...me,
587
- value: me.value ?? me.label ?? be,
588
- label: me.label || "未知选项"
582
+ const be = K == null ? void 0 : K.map((ve, $e) => ({
583
+ ...ve,
584
+ value: ve.value ?? ve.label ?? $e,
585
+ label: ve.label || "未知选项"
589
586
  }));
590
- S.value = ge || [];
587
+ V.value = be || [];
591
588
  }
592
589
  } catch (K) {
593
590
  throw console.error("获取选项失败:", K), K;
594
591
  }
595
592
  }, ue = () => {
596
593
  var v, c;
597
- l.value.noSearch !== !0 && r.t === "q" && ((c = (v = M.value) == null ? void 0 : v.table) == null || c.load());
598
- }, he = (v) => {
594
+ l.value.noSearch !== !0 && o.t === "q" && ((c = (v = M.value) == null ? void 0 : v.table) == null || c.load());
595
+ }, ye = (v) => {
599
596
  v.preventDefault(), v.stopPropagation(), s.value = "";
600
- }, Ve = (v) => {
601
- E.value = !0;
597
+ }, Te = (v) => {
598
+ _.value = !0;
602
599
  }, le = (v) => {
603
- v.preventDefault(), v.stopPropagation(), E.value = !0;
600
+ v.preventDefault(), v.stopPropagation(), _.value = !0;
604
601
  }, oe = re(null);
605
602
  ot(async () => {
606
- var K, ge, me, be, $e;
607
- l.value && l.value["remote-method"] && (de.value["remote-method"] = De), (ge = (K = M.value[e.value]) == null ? void 0 : K.options) != null && ge.length && (S.value = M.value[e.value].options);
608
- const v = (we, Se = "options", xe = M.value[e.value]) => {
609
- typeof l.value.getDicts == "function" && ie(Se).catch((Ue) => {
610
- console.error(`Failed to load ${Se} for ${we}:`, Ue);
603
+ var K, be, ve, $e, we;
604
+ l.value && l.value["remote-method"] && (ce.value["remote-method"] = Me), (be = (K = M.value[e.value]) == null ? void 0 : K.options) != null && be.length && (V.value = M.value[e.value].options);
605
+ const v = (_e, xe = "options", Fe = M.value[e.value]) => {
606
+ typeof l.value.getDicts == "function" && de(xe).catch((Ue) => {
607
+ console.error(`Failed to load ${xe} for ${_e}:`, Ue);
611
608
  });
612
609
  };
613
- if (["radio", "radio-button", "checkbox-group", "checkbox-group-button", "select", "cascader"].includes(i.value) && v(i.value), i.value === ke.TREESELECT && await (async () => {
610
+ if (["radio", "radio-button", "checkbox-group", "checkbox-group-button", "select", "cascader"].includes(i.value) && v(i.value), i.value === De.TREESELECT && await (async () => {
614
611
  try {
615
- typeof l.value.getDicts == "function" ? U.value = await l.value.getDicts(r.formInfo) : U.value = S.value;
616
- } catch (Se) {
617
- console.error("Failed to load data for tree-select:", Se);
612
+ typeof l.value.getDicts == "function" ? Y.value = await l.value.getDicts(o.formInfo) : Y.value = V.value;
613
+ } catch (xe) {
614
+ console.error("Failed to load data for tree-select:", xe);
618
615
  }
619
- })(), r.t == "q") {
620
- let we = l.value.type || i.value;
621
- (we === void 0 || i.value === "input" || we == ke.NUMBER || we == ke.EMAIL || we == "url" || we == "text") && l.value.onKeyup == null && (l.value.onKeyup = (Se) => {
622
- var xe, Ue;
623
- (Se.keyCode === 13 || Se.key === "Enter") && ((Ue = (xe = M.value) == null ? void 0 : xe.table) == null || Ue.load());
616
+ })(), o.t == "q") {
617
+ let _e = l.value.type || i.value;
618
+ (_e === void 0 || i.value === "input" || _e == De.NUMBER || _e == De.EMAIL || _e == "url" || _e == "text") && l.value.onKeyup == null && (l.value.onKeyup = (xe) => {
619
+ var Fe, Ue;
620
+ (xe.keyCode === 13 || xe.key === "Enter") && ((Ue = (Fe = M.value) == null ? void 0 : Fe.table) == null || Ue.load());
624
621
  }), [
625
622
  "radio",
626
623
  "switch",
@@ -637,84 +634,84 @@ const wt = /* @__PURE__ */ gl(bl), Rt = {
637
634
  "datetime",
638
635
  "datetimerange",
639
636
  "week"
640
- ].includes(we) && l.value.onChange === void 0 && (l.value.onChange = (Se) => {
641
- var xe, Ue;
642
- (Ue = (xe = M.value) == null ? void 0 : xe.table) == null || Ue.load();
637
+ ].includes(_e) && l.value.onChange === void 0 && (l.value.onChange = (xe) => {
638
+ var Fe, Ue;
639
+ (Ue = (Fe = M.value) == null ? void 0 : Fe.table) == null || Ue.load();
643
640
  });
644
641
  }
645
- i.value == "image" && (l.value.width && ((me = oe.value) != null && me.$el) && oe.value.$el.style.setProperty("--up-width", typeof l.value.width == "number" ? l.value.width + "px" : l.value.width), l.value.height && ((be = oe.value) != null && be.$el) && oe.value.$el.style.setProperty("--up-height", typeof l.value.height == "number" ? l.value.height + "px" : l.value.height), l.value.fontSize && (($e = oe.value) != null && $e.$el) && oe.value.$el.style.setProperty("--up-font-size", typeof l.value.fontSize == "number" ? l.value.fontSize + "px" : l.value.fontSize));
642
+ i.value == "image" && (l.value.width && ((ve = oe.value) != null && ve.$el) && oe.value.$el.style.setProperty("--up-width", typeof l.value.width == "number" ? l.value.width + "px" : l.value.width), l.value.height && (($e = oe.value) != null && $e.$el) && oe.value.$el.style.setProperty("--up-height", typeof l.value.height == "number" ? l.value.height + "px" : l.value.height), l.value.fontSize && ((we = oe.value) != null && we.$el) && oe.value.$el.style.setProperty("--up-font-size", typeof l.value.fontSize == "number" ? l.value.fontSize + "px" : l.value.fontSize));
646
643
  });
647
644
  const ae = Ke(() => {
648
645
  var v;
649
646
  return l.value["file-list"] && l.value["file-list"].length ? (v = l.value["file-list"]) == null ? void 0 : v.map((c) => c == null ? void 0 : c.url) : [s.value];
650
647
  });
651
648
  return (v, c) => {
652
- var at, rt, B, ne, _, j, ee, Pe, Ne, Re;
653
- const K = A("el-image-viewer"), ge = A("el-radio"), me = A("el-radio-group"), be = A("el-radio-button"), $e = A("el-checkbox"), we = A("el-checkbox-group"), Se = A("el-checkbox-button"), xe = A("g-select-option"), Ue = A("el-option"), ut = A("el-select"), nt = A("el-tree-select"), st = A("el-time-picker"), it = A("el-time-select"), dt = A("el-date-picker"), ct = A("el-color-picker"), ft = A("el-rate"), t = A("el-slider"), o = A("el-switch"), n = A("el-transfer"), y = A("el-cascader"), x = A("el-icon"), I = A("el-image"), z = A("el-tooltip"), ce = A("el-upload"), Ee = A("el-autocomplete"), Te = A("el-input-number"), Ye = A("el-input"), He = A("el-link"), Le = A("el-text"), Je = A("el-avatar"), tt = A("el-tag");
649
+ var at, rt, B, ne, E, j, ee, Pe, Ne, Re;
650
+ const K = I("el-image-viewer"), be = I("el-radio"), ve = I("el-radio-group"), $e = I("el-radio-button"), we = I("el-checkbox"), _e = I("el-checkbox-group"), xe = I("el-checkbox-button"), Fe = I("g-select-option"), Ue = I("el-option"), ut = I("el-select"), nt = I("el-tree-select"), st = I("el-time-picker"), it = I("el-time-select"), dt = I("el-date-picker"), ct = I("el-color-picker"), ft = I("el-rate"), t = I("el-slider"), r = I("el-switch"), n = I("el-transfer"), y = I("el-cascader"), F = I("el-icon"), A = I("el-image"), z = I("el-tooltip"), se = I("el-upload"), pe = I("el-autocomplete"), Se = I("el-input-number"), ke = I("el-input"), Le = I("el-link"), ze = I("el-text"), Je = I("el-avatar"), tt = I("el-tag");
654
651
  return u(), q(X, null, [
655
652
  H("div", null, [
656
- E.value ? (u(), V(K, {
653
+ _.value ? (u(), S(K, {
657
654
  key: 0,
658
655
  teleported: !0,
659
656
  "url-list": ae.value,
660
- onClose: c[0] || (c[0] = (d) => E.value = !1)
661
- }, null, 8, ["url-list"])) : ye("", !0)
657
+ onClose: c[0] || (c[0] = (d) => _.value = !1)
658
+ }, null, 8, ["url-list"])) : ge("", !0)
662
659
  ]),
663
660
  H("div", $l, [
664
- i.value == Y(ke).RADIO ? (u(), V(me, F({
661
+ i.value == U(De).RADIO ? (u(), S(ve, x({
665
662
  key: 0,
666
663
  modelValue: s.value,
667
664
  "onUpdate:modelValue": c[1] || (c[1] = (d) => s.value = d)
668
665
  }, l.value), {
669
666
  default: b(() => [
670
- $(v.$slots, `${r.t}-${e.value}`, { data: l.value }, () => [
671
- (u(!0), q(X, null, L(S.value, (d) => (u(), V(ge, F({ ref_for: !0 }, d), {
667
+ $(v.$slots, `${o.t}-${e.value}`, { data: l.value }, () => [
668
+ (u(!0), q(X, null, R(V.value, (d) => (u(), S(be, x({ ref_for: !0 }, d), {
672
669
  default: b(() => [
673
- $(v.$slots, `${r.t}-${e.value}-options`, { option: d }, void 0, !0)
670
+ $(v.$slots, `${o.t}-${e.value}-options`, { option: d }, void 0, !0)
674
671
  ]),
675
672
  _: 2
676
673
  }, 1040))), 256))
677
674
  ], !0)
678
675
  ]),
679
676
  _: 3
680
- }, 16, ["modelValue"])) : i.value == Y(ke).RADIOBUTTON ? (u(), V(me, F({
677
+ }, 16, ["modelValue"])) : i.value == U(De).RADIOBUTTON ? (u(), S(ve, x({
681
678
  key: 1,
682
679
  modelValue: s.value,
683
680
  "onUpdate:modelValue": c[2] || (c[2] = (d) => s.value = d)
684
681
  }, l.value), {
685
682
  default: b(() => [
686
- $(v.$slots, `${r.t}-${e.value}`, { data: l.value }, () => [
687
- (u(!0), q(X, null, L(S.value, (d) => (u(), V(be, F({ ref_for: !0 }, d), {
683
+ $(v.$slots, `${o.t}-${e.value}`, { data: l.value }, () => [
684
+ (u(!0), q(X, null, R(V.value, (d) => (u(), S($e, x({ ref_for: !0 }, d), {
688
685
  default: b(() => [
689
- $(v.$slots, `${r.t}-${e.value}-options`, { option: d }, void 0, !0)
686
+ $(v.$slots, `${o.t}-${e.value}-options`, { option: d }, void 0, !0)
690
687
  ]),
691
688
  _: 2
692
689
  }, 1040))), 256))
693
690
  ], !0)
694
691
  ]),
695
692
  _: 3
696
- }, 16, ["modelValue"])) : i.value == Y(ke).CHECKBOX ? (u(), V($e, F({
693
+ }, 16, ["modelValue"])) : i.value == U(De).CHECKBOX ? (u(), S(we, x({
697
694
  key: 2,
698
695
  modelValue: s.value,
699
696
  "onUpdate:modelValue": c[3] || (c[3] = (d) => s.value = d)
700
697
  }, l.value), {
701
698
  default: b(() => [
702
- $(v.$slots, `${r.t}-${e.value}`, { data: l.value }, () => [
703
- c[27] || (c[27] = Ae(Ce(" ")))
699
+ $(v.$slots, `${o.t}-${e.value}`, { data: l.value }, () => [
700
+ c[27] || (c[27] = Be(Ce(" ")))
704
701
  ], !0)
705
702
  ]),
706
703
  _: 3
707
- }, 16, ["modelValue"])) : i.value == Y(ke).CHECKBOXGROUP ? (u(), V(we, F({
704
+ }, 16, ["modelValue"])) : i.value == U(De).CHECKBOXGROUP ? (u(), S(_e, x({
708
705
  key: 3,
709
706
  modelValue: s.value,
710
707
  "onUpdate:modelValue": c[4] || (c[4] = (d) => s.value = d)
711
708
  }, l.value), {
712
709
  default: b(() => [
713
- $(v.$slots, `${r.t}-${e.value}`, { data: l.value }, () => [
714
- (u(!0), q(X, null, L(S.value, (d) => (u(), V($e, F({ ref_for: !0 }, d), {
710
+ $(v.$slots, `${o.t}-${e.value}`, { data: l.value }, () => [
711
+ (u(!0), q(X, null, R(V.value, (d) => (u(), S(we, x({ ref_for: !0 }, d), {
715
712
  default: b(() => [
716
- $(v.$slots, `${r.t}-${e.value}-options`, { option: d }, () => [
717
- Ae(Ce(d.label), 1)
713
+ $(v.$slots, `${o.t}-${e.value}-options`, { option: d }, () => [
714
+ Be(Ce(d.label), 1)
718
715
  ], !0)
719
716
  ]),
720
717
  _: 2
@@ -722,60 +719,60 @@ const wt = /* @__PURE__ */ gl(bl), Rt = {
722
719
  ], !0)
723
720
  ]),
724
721
  _: 3
725
- }, 16, ["modelValue"])) : i.value == Y(ke).CHECKBOXGROUPBUTTON ? (u(), V(we, F({
722
+ }, 16, ["modelValue"])) : i.value == U(De).CHECKBOXGROUPBUTTON ? (u(), S(_e, x({
726
723
  key: 4,
727
724
  modelValue: s.value,
728
725
  "onUpdate:modelValue": c[5] || (c[5] = (d) => s.value = d)
729
726
  }, l.value), {
730
727
  default: b(() => [
731
- $(v.$slots, `${r.t}-${e.value}`, { data: l.value }, () => [
732
- (u(!0), q(X, null, L(S.value, (d) => (u(), V(Se, F({ ref_for: !0 }, d), {
728
+ $(v.$slots, `${o.t}-${e.value}`, { data: l.value }, () => [
729
+ (u(!0), q(X, null, R(V.value, (d) => (u(), S(xe, x({ ref_for: !0 }, d), {
733
730
  default: b(() => [
734
- $(v.$slots, `${r.t}-${e.value}-options`, { option: d }, void 0, !0)
731
+ $(v.$slots, `${o.t}-${e.value}-options`, { option: d }, void 0, !0)
735
732
  ]),
736
733
  _: 2
737
734
  }, 1040))), 256))
738
735
  ], !0)
739
736
  ]),
740
737
  _: 3
741
- }, 16, ["modelValue"])) : i.value === Y(ke).SELECT ? (u(), V(ut, F({
738
+ }, 16, ["modelValue"])) : i.value === U(De).SELECT ? (u(), S(ut, x({
742
739
  key: 5,
743
740
  modelValue: s.value,
744
741
  "onUpdate:modelValue": c[6] || (c[6] = (d) => s.value = d),
745
742
  placeholder: M.value[e.value].label,
746
743
  clearable: !0,
747
744
  onClear: c[7] || (c[7] = () => {
748
- r.t == "q" && M.value.table.load();
745
+ o.t == "q" && M.value.table.load();
749
746
  })
750
- }, de.value), ve({
747
+ }, ce.value), he({
751
748
  default: b(() => [
752
- $(v.$slots, `${r.t}-${e.value}`, { options: S.value }, () => [
753
- (u(!0), q(X, null, L(S.value, (d) => (u(), q(X, {
749
+ $(v.$slots, `${o.t}-${e.value}`, { options: V.value }, () => [
750
+ (u(!0), q(X, null, R(V.value, (d) => (u(), q(X, {
754
751
  key: d.value
755
752
  }, [
756
- G(Ue, F({ ref_for: !0 }, Y(Be)(d, (W) => W != "children"), {
753
+ G(Ue, x({ ref_for: !0 }, U(Ye)(d, (W) => W != "children"), {
757
754
  onClick: (W) => {
758
- de.value.change && de.value.change(d), ue();
755
+ ce.value.change && ce.value.change(d), ue();
759
756
  }
760
757
  }), {
761
758
  default: b(() => {
762
759
  var W;
763
760
  return [
764
- (W = l.value) != null && W.columns ? $(v.$slots, `${r.t}-${e.value}-options`, {
761
+ (W = l.value) != null && W.columns ? $(v.$slots, `${o.t}-${e.value}-options`, {
765
762
  key: 0,
766
763
  option: d
767
764
  }, () => {
768
765
  var C;
769
766
  return [
770
- G(xe, {
767
+ G(Fe, {
771
768
  columns: (C = l.value) == null ? void 0 : C.columns,
772
769
  data: d,
773
- t: r.t
774
- }, ve({ _: 2 }, [
775
- L(v.$slots, (Me, ze) => ({
776
- name: ze,
770
+ t: o.t
771
+ }, he({ _: 2 }, [
772
+ R(v.$slots, (Ve, je) => ({
773
+ name: je,
777
774
  fn: b((et) => [
778
- $(v.$slots, ze, {
775
+ $(v.$slots, je, {
779
776
  option: d,
780
777
  data: et
781
778
  }, void 0, !0)
@@ -783,35 +780,35 @@ const wt = /* @__PURE__ */ gl(bl), Rt = {
783
780
  }))
784
781
  ]), 1032, ["columns", "data", "t"])
785
782
  ];
786
- }, !0) : ye("", !0)
783
+ }, !0) : ge("", !0)
787
784
  ];
788
785
  }),
789
786
  _: 2
790
787
  }, 1040, ["onClick"]),
791
- d.children && d.children.length ? (u(!0), q(X, { key: 0 }, L(d.children, (W) => (u(), V(Ue, F({
788
+ d.children && d.children.length ? (u(!0), q(X, { key: 0 }, R(d.children, (W) => (u(), S(Ue, x({
792
789
  style: { "margin-left": "20px" },
793
790
  key: W.value,
794
791
  ref_for: !0
795
- }, Y(Be)(W, (C) => C != "children"), {
792
+ }, U(Ye)(W, (C) => C != "children"), {
796
793
  onClick: (C) => {
797
- de.value.change && de.value.change(W), ue();
794
+ ce.value.change && ce.value.change(W), ue();
798
795
  }
799
796
  }), {
800
797
  default: b(() => {
801
798
  var C;
802
799
  return [
803
- (C = l.value) != null && C.columns ? $(v.$slots, `${r.t}-${e.value}-options`, {
800
+ (C = l.value) != null && C.columns ? $(v.$slots, `${o.t}-${e.value}-options`, {
804
801
  key: 0,
805
802
  option: W
806
803
  }, () => {
807
- var Me;
804
+ var Ve;
808
805
  return [
809
- G(xe, {
810
- columns: (Me = l.value) == null ? void 0 : Me.columns,
806
+ G(Fe, {
807
+ columns: (Ve = l.value) == null ? void 0 : Ve.columns,
811
808
  data: W,
812
- t: r.t
813
- }, ve({ _: 2 }, [
814
- L(v.$slots, (ze, et) => ({
809
+ t: o.t
810
+ }, he({ _: 2 }, [
811
+ R(v.$slots, (je, et) => ({
815
812
  name: et,
816
813
  fn: b((bt) => [
817
814
  $(v.$slots, et, {
@@ -822,11 +819,11 @@ const wt = /* @__PURE__ */ gl(bl), Rt = {
822
819
  }))
823
820
  ]), 1032, ["columns", "data", "t"])
824
821
  ];
825
- }, !0) : ye("", !0)
822
+ }, !0) : ge("", !0)
826
823
  ];
827
824
  }),
828
825
  _: 2
829
- }, 1040, ["onClick"]))), 128)) : ye("", !0)
826
+ }, 1040, ["onClick"]))), 128)) : ge("", !0)
830
827
  ], 64))), 128))
831
828
  ], !0)
832
829
  ]),
@@ -837,15 +834,15 @@ const wt = /* @__PURE__ */ gl(bl), Rt = {
837
834
  fn: b(() => {
838
835
  var d;
839
836
  return [
840
- G(xe, {
837
+ G(Fe, {
841
838
  columns: (d = l.value) == null ? void 0 : d.columns,
842
839
  title: !0,
843
- t: r.t
844
- }, ve({ _: 2 }, [
845
- L(v.$slots, (W, C) => ({
840
+ t: o.t
841
+ }, he({ _: 2 }, [
842
+ R(v.$slots, (W, C) => ({
846
843
  name: C,
847
- fn: b((Me) => [
848
- $(v.$slots, C, { data: Me }, void 0, !0)
844
+ fn: b((Ve) => [
845
+ $(v.$slots, C, { data: Ve }, void 0, !0)
849
846
  ])
850
847
  }))
851
848
  ]), 1032, ["columns", "t"])
@@ -853,32 +850,32 @@ const wt = /* @__PURE__ */ gl(bl), Rt = {
853
850
  }),
854
851
  key: "0"
855
852
  } : void 0,
856
- L(T(), (d) => ({
853
+ R(T(), (d) => ({
857
854
  name: d,
858
855
  fn: b((W) => [
859
- $(v.$slots, `${r.t}-${e.value}-${d}`, { data: W }, void 0, !0)
856
+ $(v.$slots, `${o.t}-${e.value}-${d}`, { data: W }, void 0, !0)
860
857
  ])
861
858
  }))
862
- ]), 1040, ["modelValue", "placeholder"])) : i.value == Y(ke).TREESELECT ? (u(), V(nt, F({
859
+ ]), 1040, ["modelValue", "placeholder"])) : i.value == U(De).TREESELECT ? (u(), S(nt, x({
863
860
  key: 6,
864
861
  modelValue: s.value,
865
862
  "onUpdate:modelValue": c[8] || (c[8] = (d) => s.value = d),
866
863
  placeholder: M.value[e.value].label
867
- }, l.value, { data: U.value }), ve({ _: 2 }, [
868
- L(T(), (d) => ({
864
+ }, l.value, { data: Y.value }), he({ _: 2 }, [
865
+ R(T(), (d) => ({
869
866
  name: d,
870
867
  fn: b((W) => [
871
- $(v.$slots, `${r.t}-${e.value}-${d}`, { data: W }, void 0, !0)
868
+ $(v.$slots, `${o.t}-${e.value}-${d}`, { data: W }, void 0, !0)
872
869
  ])
873
870
  }))
874
- ]), 1040, ["modelValue", "placeholder", "data"])) : i.value == Y(ke).TIME ? (u(), V(st, F({
871
+ ]), 1040, ["modelValue", "placeholder", "data"])) : i.value == U(De).TIME ? (u(), S(st, x({
875
872
  key: 7,
876
873
  modelValue: s.value,
877
874
  "onUpdate:modelValue": c[9] || (c[9] = (d) => s.value = d),
878
875
  "arrow-control": ""
879
876
  }, l.value, {
880
877
  placeholder: M.value[e.value].label
881
- }), null, 16, ["modelValue", "placeholder"])) : i.value == Y(ke).TIMESELECT ? (u(), V(it, F({
878
+ }), null, 16, ["modelValue", "placeholder"])) : i.value == U(De).TIMESELECT ? (u(), S(it, x({
882
879
  key: 8,
883
880
  modelValue: s.value,
884
881
  "onUpdate:modelValue": c[10] || (c[10] = (d) => s.value = d),
@@ -886,77 +883,77 @@ const wt = /* @__PURE__ */ gl(bl), Rt = {
886
883
  step: "00:15",
887
884
  end: "23:30",
888
885
  placeholder: M.value[e.value].label
889
- }, l.value), null, 16, ["modelValue", "placeholder"])) : N(i.value) ? (u(), V(dt, F({
886
+ }, l.value), null, 16, ["modelValue", "placeholder"])) : N(i.value) ? (u(), S(dt, x({
890
887
  key: 9,
891
888
  modelValue: s.value,
892
889
  "onUpdate:modelValue": c[11] || (c[11] = (d) => s.value = d),
893
890
  type: i.value,
894
891
  placeholder: M.value[e.value].label,
895
- "value-format": pe(i.value)
896
- }, l.value), ve({ _: 2 }, [
897
- L(T(), (d) => ({
892
+ "value-format": me(i.value)
893
+ }, l.value), he({ _: 2 }, [
894
+ R(T(), (d) => ({
898
895
  name: d,
899
896
  fn: b((W) => [
900
- $(v.$slots, `${r.t}-${e.value}-${d}`, { data: W }, void 0, !0)
897
+ $(v.$slots, `${o.t}-${e.value}-${d}`, { data: W }, void 0, !0)
901
898
  ])
902
899
  }))
903
- ]), 1040, ["modelValue", "type", "placeholder", "value-format"])) : i.value == Y(ke).COLOR ? (u(), V(ct, F({
900
+ ]), 1040, ["modelValue", "type", "placeholder", "value-format"])) : i.value == U(De).COLOR ? (u(), S(ct, x({
904
901
  key: 10,
905
902
  modelValue: s.value,
906
903
  "onUpdate:modelValue": c[12] || (c[12] = (d) => s.value = d)
907
- }, l.value), null, 16, ["modelValue"])) : i.value == Y(ke).RATE ? (u(), V(ft, F({
904
+ }, l.value), null, 16, ["modelValue"])) : i.value == U(De).RATE ? (u(), S(ft, x({
908
905
  key: 11,
909
906
  modelValue: s.value,
910
907
  "onUpdate:modelValue": c[13] || (c[13] = (d) => s.value = d)
911
- }, l.value), null, 16, ["modelValue"])) : i.value == Y(ke).SLIDER ? (u(), V(t, F({
908
+ }, l.value), null, 16, ["modelValue"])) : i.value == U(De).SLIDER ? (u(), S(t, x({
912
909
  key: 12,
913
910
  modelValue: s.value,
914
911
  "onUpdate:modelValue": c[14] || (c[14] = (d) => s.value = d)
915
- }, l.value), null, 16, ["modelValue"])) : i.value == Y(ke).SWITCH ? (u(), V(o, F({
912
+ }, l.value), null, 16, ["modelValue"])) : i.value == U(De).SWITCH ? (u(), S(r, x({
916
913
  key: 13,
917
914
  modelValue: s.value,
918
915
  "onUpdate:modelValue": c[15] || (c[15] = (d) => s.value = d),
919
916
  inlinePrompt: !0
920
- }, l.value), ve({ _: 2 }, [
921
- L(T(), (d) => ({
917
+ }, l.value), he({ _: 2 }, [
918
+ R(T(), (d) => ({
922
919
  name: d,
923
920
  fn: b((W) => [
924
- $(v.$slots, `${r.t}-${e.value}-${d}`, { data: W }, void 0, !0)
921
+ $(v.$slots, `${o.t}-${e.value}-${d}`, { data: W }, void 0, !0)
925
922
  ])
926
923
  }))
927
- ]), 1040, ["modelValue"])) : i.value == Y(ke).TRANSFER ? (u(), V(n, F({
924
+ ]), 1040, ["modelValue"])) : i.value == U(De).TRANSFER ? (u(), S(n, x({
928
925
  key: 14,
929
926
  modelValue: s.value,
930
927
  "onUpdate:modelValue": c[16] || (c[16] = (d) => s.value = d)
931
- }, l.value), ve({ _: 2 }, [
932
- L(T(), (d) => ({
928
+ }, l.value), he({ _: 2 }, [
929
+ R(T(), (d) => ({
933
930
  name: d,
934
931
  fn: b((W) => [
935
- $(v.$slots, `${r.t}-${e.value}-${d}`, { data: W }, void 0, !0)
932
+ $(v.$slots, `${o.t}-${e.value}-${d}`, { data: W }, void 0, !0)
936
933
  ])
937
934
  }))
938
- ]), 1040, ["modelValue"])) : i.value == Y(ke).CASCADER ? (u(), V(y, F({
935
+ ]), 1040, ["modelValue"])) : i.value == U(De).CASCADER ? (u(), S(y, x({
939
936
  key: 15,
940
937
  modelValue: s.value,
941
938
  "onUpdate:modelValue": c[17] || (c[17] = (d) => s.value = d)
942
- }, l.value, { options: S.value }), ve({ _: 2 }, [
943
- L(T(), (d) => ({
939
+ }, l.value, { options: V.value }), he({ _: 2 }, [
940
+ R(T(), (d) => ({
944
941
  name: d,
945
942
  fn: b((W) => [
946
- $(v.$slots, `${r.t}-${e.value}-${d}`, { data: W }, void 0, !0)
943
+ $(v.$slots, `${o.t}-${e.value}-${d}`, { data: W }, void 0, !0)
947
944
  ])
948
945
  }))
949
- ]), 1040, ["modelValue", "options"])) : i.value == Y(ke).IMAGE ? (u(), V(ce, F({
946
+ ]), 1040, ["modelValue", "options"])) : i.value == U(De).IMAGE ? (u(), S(se, x({
950
947
  key: 16,
951
948
  "file-list": l.value["file-list"],
952
949
  "onUpdate:fileList": c[21] || (c[21] = (d) => l.value["file-list"] = d),
953
950
  "list-type": "picture-card",
954
951
  class: "custom-upload",
955
- "on-preview": Ve
952
+ "on-preview": Te
956
953
  }, { ...Q.value, ...l.value }, {
957
954
  ref_key: "uploadRef",
958
955
  ref: oe
959
- }), ve({
956
+ }), he({
960
957
  default: b(() => {
961
958
  var d;
962
959
  return [
@@ -966,14 +963,14 @@ const wt = /* @__PURE__ */ gl(bl), Rt = {
966
963
  style: { display: "flex", width: "var(--up-width)", height: "var(--up-height)", position: "relative", "align-items": "center", "justify-content": "center", "box-sizing": "border-box" }
967
964
  }, [
968
965
  H("div", wl, [
969
- G(I, F({
966
+ G(A, x({
970
967
  style: { width: "var(--up-width)", height: "var(--up-height)" },
971
968
  src: s.value
972
- }, { fit: "cover", lazy: !0, ...(d = l.value) == null ? void 0 : d.img }), ve({ _: 2 }, [
973
- L(T(), (W, C) => ({
969
+ }, { fit: "cover", lazy: !0, ...(d = l.value) == null ? void 0 : d.img }), he({ _: 2 }, [
970
+ R(T(), (W, C) => ({
974
971
  name: W,
975
- fn: b((Me) => [
976
- $(v.$slots, `${r.t}-${e.value}-${W}`, { data: Me }, void 0, !0)
972
+ fn: b((Ve) => [
973
+ $(v.$slots, `${o.t}-${e.value}-${W}`, { data: Ve }, void 0, !0)
977
974
  ])
978
975
  }))
979
976
  ]), 1040, ["src"])
@@ -984,38 +981,38 @@ const wt = /* @__PURE__ */ gl(bl), Rt = {
984
981
  onMouseleave: c[19] || (c[19] = (W) => k.value = !1),
985
982
  class: "up-view"
986
983
  }, [
987
- k.value ? (u(), V(z, {
984
+ k.value ? (u(), S(z, {
988
985
  key: 0,
989
986
  content: "查看大图",
990
987
  placement: "top"
991
988
  }, {
992
989
  default: b(() => [
993
- G(Y(ol), {
990
+ G(U(ol), {
994
991
  style: { width: "1.5em", height: "1.5em", "margin-right": "12px" },
995
992
  color: "white",
996
993
  onClick: le
997
994
  })
998
995
  ]),
999
996
  _: 1
1000
- })) : ye("", !0),
1001
- Q.value.showDel && k.value ? (u(), V(z, {
997
+ })) : ge("", !0),
998
+ Q.value.showDel && k.value ? (u(), S(z, {
1002
999
  key: 1,
1003
1000
  content: "删除",
1004
1001
  placement: "top"
1005
1002
  }, {
1006
1003
  default: b(() => [
1007
- G(Y(Bt), {
1004
+ G(U(Bt), {
1008
1005
  style: { width: "1.5em", height: "1.5em" },
1009
1006
  color: "white",
1010
- onClick: he
1007
+ onClick: ye
1011
1008
  })
1012
1009
  ]),
1013
1010
  _: 1
1014
- })) : ye("", !0)
1011
+ })) : ge("", !0)
1015
1012
  ], 32)
1016
- ])) : (u(), V(x, { key: 0 }, {
1013
+ ])) : (u(), S(F, { key: 0 }, {
1017
1014
  default: b(() => [
1018
- G(Y(rl))
1015
+ G(U(rl))
1019
1016
  ]),
1020
1017
  _: 1
1021
1018
  }))
@@ -1023,100 +1020,103 @@ const wt = /* @__PURE__ */ gl(bl), Rt = {
1023
1020
  }),
1024
1021
  _: 2
1025
1022
  }, [
1026
- L(T(), (d, W) => ({
1023
+ R(T(), (d, W) => ({
1027
1024
  name: d,
1028
1025
  fn: b((C) => [
1029
- $(v.$slots, `${r.t}-${e.value}-${d}`, { data: C }, void 0, !0)
1026
+ $(v.$slots, `${o.t}-${e.value}-${d}`, { data: C }, void 0, !0)
1030
1027
  ])
1031
1028
  }))
1032
- ]), 1040, ["file-list"])) : i.value == Y(ke).AUTOCOMPLETE ? (u(), V(Ee, F({
1029
+ ]), 1040, ["file-list"])) : i.value == U(De).AUTOCOMPLETE ? (u(), S(pe, x({
1033
1030
  key: 17,
1034
1031
  modelValue: s.value,
1035
1032
  "onUpdate:modelValue": c[22] || (c[22] = (d) => s.value = d)
1036
1033
  }, l.value, {
1037
1034
  placeholder: M.value[e.value].label
1038
- }), ve({ _: 2 }, [
1039
- L(T(), (d, W) => ({
1035
+ }), he({ _: 2 }, [
1036
+ R(T(), (d, W) => ({
1040
1037
  name: d,
1041
1038
  fn: b((C) => [
1042
- $(v.$slots, `${r.t}-${e.value}-${d}`, { data: C }, void 0, !0)
1039
+ $(v.$slots, `${o.t}-${e.value}-${d}`, { data: C }, void 0, !0)
1043
1040
  ])
1044
1041
  }))
1045
- ]), 1040, ["modelValue", "placeholder"])) : i.value == Y(ke).INPUTNUMBER ? (u(), V(Te, F({
1042
+ ]), 1040, ["modelValue", "placeholder"])) : i.value == U(De).INPUTNUMBER ? (u(), S(Se, x({
1046
1043
  key: 18,
1047
1044
  modelValue: s.value,
1048
1045
  "onUpdate:modelValue": c[23] || (c[23] = (d) => s.value = d),
1049
1046
  min: 0,
1050
1047
  max: 1e8,
1051
1048
  placeholder: M.value[e.value].label
1052
- }, l.value), ve({ _: 2 }, [
1053
- L(T(), (d, W) => ({
1049
+ }, l.value), he({ _: 2 }, [
1050
+ R(T(), (d, W) => ({
1054
1051
  name: d,
1055
1052
  fn: b((C) => [
1056
- $(v.$slots, `${r.t}-${e.value}-${d}`, { data: C }, void 0, !0)
1053
+ $(v.$slots, `${o.t}-${e.value}-${d}`, { data: C }, void 0, !0)
1057
1054
  ])
1058
1055
  }))
1059
- ]), 1040, ["modelValue", "placeholder"])) : i.value == Y(ke).MONEY ? (u(), q("div", El, [
1060
- G(Ye, F({
1056
+ ]), 1040, ["modelValue", "placeholder"])) : i.value == U(De).MONEY ? (u(), q("div", {
1057
+ key: 19,
1058
+ style: Oe([{ position: "relative" }, L.value])
1059
+ }, [
1060
+ G(ke, x({
1061
1061
  modelValue: s.value,
1062
1062
  "onUpdate:modelValue": c[24] || (c[24] = (d) => s.value = d),
1063
1063
  placeholder: M.value[e.value].label,
1064
- type: Y(ke).NUMBER,
1064
+ type: "number",
1065
1065
  maxlength: ((rt = l.value) == null ? void 0 : rt.max) || 25
1066
- }, { ...l.value, type: i.value }), ve({
1066
+ }, { ...l.value, type: i.value }), he({
1067
1067
  suffix: b(() => [
1068
1068
  H("div", {
1069
- title: Y(Dt)(s.value),
1069
+ title: U(Dt)(s.value),
1070
1070
  style: { "font-size": "10px", display: "block", width: "80px", "text-align": "right", overflow: "hidden", "text-overflow": "ellipsis" }
1071
- }, Ce(Y(Dt)(s.value)), 9, _l)
1071
+ }, Ce(U(Dt)(s.value)), 9, _l)
1072
1072
  ]),
1073
1073
  _: 2
1074
1074
  }, [
1075
- L(T(), (d, W) => ({
1075
+ R(T(), (d, W) => ({
1076
1076
  name: d,
1077
1077
  fn: b((C) => [
1078
- $(v.$slots, `${r.t}-${e.value}-${d}`, { data: C }, void 0, !0)
1078
+ $(v.$slots, `${o.t}-${e.value}-${d}`, { data: C }, void 0, !0)
1079
1079
  ])
1080
1080
  }))
1081
- ]), 1040, ["modelValue", "placeholder", "type", "maxlength"])
1082
- ])) : (B = i.value) != null && B.startsWith("link") ? (u(), q("div", {
1081
+ ]), 1040, ["modelValue", "placeholder", "maxlength"])
1082
+ ], 4)) : (B = i.value) != null && B.startsWith("link") ? (u(), q("div", {
1083
1083
  key: 20,
1084
- style: Oe(R.value)
1084
+ style: Oe(L.value)
1085
1085
  }, [
1086
- G(He, F(l.value, {
1086
+ G(Le, x(l.value, {
1087
1087
  type: i.value.replace("link-", ""),
1088
1088
  innerHTML: fe.value || s.value
1089
1089
  }), null, 16, ["type", "innerHTML"])
1090
1090
  ], 4)) : i.value != "textarea" && ((ne = i.value) != null && ne.startsWith("text")) ? (u(), q("div", {
1091
1091
  key: 21,
1092
- style: Oe(R.value)
1092
+ style: Oe(L.value)
1093
1093
  }, [
1094
- G(Le, F(l.value, {
1094
+ G(ze, x(l.value, {
1095
1095
  type: i.value.replace("text-", ""),
1096
1096
  innerHTML: fe.value || s.value
1097
1097
  }), null, 16, ["type", "innerHTML"])
1098
1098
  ], 4)) : i.value == "avatar" ? (u(), q("div", {
1099
1099
  key: 22,
1100
- style: Oe(R.value)
1100
+ style: Oe(L.value)
1101
1101
  }, [
1102
- fe.value ? (u(), V(Je, Et(F({ key: 0 }, l.value)), {
1102
+ fe.value ? (u(), S(Je, _t(x({ key: 0 }, l.value)), {
1103
1103
  default: b(() => [
1104
- H("div", { innerHTML: fe.value }, null, 8, kl)
1104
+ H("div", { innerHTML: fe.value }, null, 8, El)
1105
1105
  ]),
1106
1106
  _: 1
1107
- }, 16)) : (u(), V(Je, Et(F({ key: 1 }, l.value)), null, 16))
1108
- ], 4)) : (_ = i.value) != null && _.startsWith("tag") ? (u(), q("div", {
1107
+ }, 16)) : (u(), S(Je, _t(x({ key: 1 }, l.value)), null, 16))
1108
+ ], 4)) : (E = i.value) != null && E.startsWith("tag") ? (u(), q("div", {
1109
1109
  key: 23,
1110
- style: Oe(R.value)
1110
+ style: Oe(L.value)
1111
1111
  }, [
1112
- Array.isArray(fe.value) && fe.value.length > 0 ? (u(!0), q(X, { key: 0 }, L(fe.value, (d, W) => (u(), q(X, { key: W }, [
1113
- typeof d == "object" ? (u(), V(tt, F({
1112
+ Array.isArray(fe.value) && fe.value.length > 0 ? (u(!0), q(X, { key: 0 }, R(fe.value, (d, W) => (u(), q(X, { key: W }, [
1113
+ typeof d == "object" ? (u(), S(tt, x({
1114
1114
  key: 0,
1115
1115
  ref_for: !0
1116
1116
  }, d, {
1117
1117
  innerHTML: d == null ? void 0 : d.value,
1118
1118
  style: { "margin-right": "3px" }
1119
- }), null, 16, ["innerHTML"])) : (u(), V(tt, F({
1119
+ }), null, 16, ["innerHTML"])) : (u(), S(tt, x({
1120
1120
  key: 1,
1121
1121
  ref_for: !0
1122
1122
  }, l.value, {
@@ -1124,17 +1124,17 @@ const wt = /* @__PURE__ */ gl(bl), Rt = {
1124
1124
  innerHTML: d,
1125
1125
  style: { "margin-right": "3px" }
1126
1126
  }), null, 16, ["type", "innerHTML"]))
1127
- ], 64))), 128)) : (u(), V(tt, F({ key: 1 }, l.value, {
1127
+ ], 64))), 128)) : (u(), S(tt, x({ key: 1 }, l.value, {
1128
1128
  type: i.value.replace("tag-", ""),
1129
1129
  innerHTML: fe.value || s.value
1130
1130
  }), null, 16, ["type", "innerHTML"]))
1131
- ], 4)) : i.value == "div" ? (u(), q("div", F({ key: 24 }, l.value, {
1131
+ ], 4)) : i.value == "div" ? (u(), q("div", x({ key: 24 }, l.value, {
1132
1132
  innerHTML: fe.value || s.value,
1133
- style: R.value
1134
- }), null, 16, Cl)) : i.value == "span" ? (u(), q("span", F({ key: 25 }, l.value, {
1133
+ style: L.value
1134
+ }), null, 16, kl)) : i.value == "span" ? (u(), q("span", x({ key: 25 }, l.value, {
1135
1135
  innerHTML: fe.value || s.value,
1136
- style: R.value
1137
- }), null, 16, Dl)) : (u(), V(Ye, F({
1136
+ style: L.value
1137
+ }), null, 16, Cl)) : (u(), S(ke, x({
1138
1138
  key: 26,
1139
1139
  modelValue: s.value,
1140
1140
  "onUpdate:modelValue": c[25] || (c[25] = (d) => s.value = d),
@@ -1142,9 +1142,9 @@ const wt = /* @__PURE__ */ gl(bl), Rt = {
1142
1142
  maxlength: ((j = l.value) == null ? void 0 : j.max) || 25,
1143
1143
  clearable: !0,
1144
1144
  onClear: c[26] || (c[26] = () => {
1145
- r.t == "q" && M.value.table.load();
1145
+ o.t == "q" && M.value.table.load();
1146
1146
  })
1147
- }, { ...Y(Be)(l.value, (d) => !["suffix", "prefix", "append", "prepend"].includes(d)), type: i.value }), ve({ _: 2 }, [
1147
+ }, { ...U(Ye)(l.value, (d) => !["suffix", "prefix", "append", "prepend"].includes(d)), type: i.value }), he({ _: 2 }, [
1148
1148
  (ee = l.value) != null && ee.suffix ? {
1149
1149
  name: "suffix",
1150
1150
  fn: b(() => {
@@ -1152,7 +1152,7 @@ const wt = /* @__PURE__ */ gl(bl), Rt = {
1152
1152
  return [
1153
1153
  H("div", {
1154
1154
  innerHTML: ((d = l.value) == null ? void 0 : d.suffix) || ""
1155
- }, null, 8, Ml)
1155
+ }, null, 8, Dl)
1156
1156
  ];
1157
1157
  }),
1158
1158
  key: "0"
@@ -1164,7 +1164,7 @@ const wt = /* @__PURE__ */ gl(bl), Rt = {
1164
1164
  return [
1165
1165
  H("div", {
1166
1166
  innerHTML: ((d = l.value) == null ? void 0 : d.prefix) || ""
1167
- }, null, 8, Vl)
1167
+ }, null, 8, Ml)
1168
1168
  ];
1169
1169
  }),
1170
1170
  key: "1"
@@ -1188,15 +1188,15 @@ const wt = /* @__PURE__ */ gl(bl), Rt = {
1188
1188
  return [
1189
1189
  H("div", {
1190
1190
  innerHTML: ((d = l.value) == null ? void 0 : d.prepend) || ""
1191
- }, null, 8, Tl)
1191
+ }, null, 8, Vl)
1192
1192
  ];
1193
1193
  }),
1194
1194
  key: "3"
1195
1195
  } : void 0,
1196
- L(T(), (d, W) => ({
1196
+ R(T(), (d, W) => ({
1197
1197
  name: d,
1198
1198
  fn: b((C) => [
1199
- $(v.$slots, `${r.t}-${e.value}-${d}`, { data: C }, void 0, !0)
1199
+ $(v.$slots, `${o.t}-${e.value}-${d}`, { data: C }, void 0, !0)
1200
1200
  ])
1201
1201
  }))
1202
1202
  ]), 1040, ["modelValue", "placeholder", "maxlength"]))
@@ -1204,7 +1204,7 @@ const wt = /* @__PURE__ */ gl(bl), Rt = {
1204
1204
  ], 64);
1205
1205
  };
1206
1206
  }
1207
- }), yt = /* @__PURE__ */ Ze(xl, [["__scopeId", "data-v-0acc50c8"]]), Fl = { class: "g-form-container" }, ql = /* @__PURE__ */ Object.assign({
1207
+ }), yt = /* @__PURE__ */ Ze(Tl, [["__scopeId", "data-v-667ddbae"]]), xl = { class: "g-form-container" }, Fl = /* @__PURE__ */ Object.assign({
1208
1208
  name: "g-form",
1209
1209
  inheritAttrs: !1
1210
1210
  }, {
@@ -1214,48 +1214,48 @@ const wt = /* @__PURE__ */ gl(bl), Rt = {
1214
1214
  modelModifiers: {}
1215
1215
  }),
1216
1216
  emits: /* @__PURE__ */ Ge(["submit", "reset"], ["update:modelValue"]),
1217
- setup(f, { expose: s, emit: r }) {
1218
- var he, Ve, le, oe, ae, Ie;
1219
- const l = Qe(f, "modelValue"), e = r, i = re(null), M = Mt("options"), U = re({}), S = re(""), E = f;
1220
- l.value.form = Fe(
1221
- Rt,
1217
+ setup(f, { expose: s, emit: o }) {
1218
+ var ye, Te, le, oe, ae, Ie;
1219
+ const l = Qe(f, "modelValue"), e = o, i = re(null), M = Mt("options"), Y = re({}), V = re(""), _ = f;
1220
+ l.value.form = qe(
1221
+ zt,
1222
1222
  M == null ? void 0 : M.form,
1223
- (he = l.value) == null ? void 0 : he.form
1224
- ), l.value.form.style = Fe(
1225
- (le = (Ve = l.value) == null ? void 0 : Ve.form) == null ? void 0 : le.style,
1226
- { ...(oe = Vt()) == null ? void 0 : oe.style }
1223
+ (ye = l.value) == null ? void 0 : ye.form
1224
+ ), l.value.form.style = qe(
1225
+ (le = (Te = l.value) == null ? void 0 : Te.form) == null ? void 0 : le.style,
1226
+ { ...(oe = St()) == null ? void 0 : oe.style }
1227
1227
  );
1228
- const k = async (w, m) => {
1229
- let p = 5;
1230
- for (; p > 0; ) {
1228
+ const k = async (w, p) => {
1229
+ let m = 5;
1230
+ for (; m > 0; ) {
1231
1231
  if (await lt(), i.value) {
1232
1232
  i.value.validate((a, D) => {
1233
- a ? e("submit", w, m) : console.error("表单验证不通过!", D);
1233
+ a ? e("submit", w, p) : console.error("表单验证不通过!", D);
1234
1234
  });
1235
1235
  return;
1236
1236
  }
1237
- p--, await new Promise((a) => setTimeout(a, 50));
1237
+ m--, await new Promise((a) => setTimeout(a, 50));
1238
1238
  }
1239
1239
  console.error("表单实例获取失败,请检查组件状态");
1240
- }, R = async () => {
1240
+ }, L = async () => {
1241
1241
  let w = 5;
1242
1242
  for (; w > 0; ) {
1243
1243
  if (await lt(), !i.value) {
1244
- w--, await new Promise((p) => setTimeout(p, 50));
1244
+ w--, await new Promise((m) => setTimeout(m, 50));
1245
1245
  continue;
1246
1246
  }
1247
- let m = !0;
1248
- if (e("reset", (p) => {
1249
- m = p;
1250
- }), m) {
1247
+ let p = !0;
1248
+ if (e("reset", (m) => {
1249
+ p = m;
1250
+ }), p) {
1251
1251
  i.value.resetFields();
1252
1252
  return;
1253
1253
  }
1254
- w--, await new Promise((p) => setTimeout(p, 50));
1254
+ w--, await new Promise((m) => setTimeout(m, 50));
1255
1255
  }
1256
1256
  console.error("表单实例获取失败,请检查组件状态");
1257
1257
  };
1258
- l.value.form.submit.click = k, l.value.form.reset.click = R;
1258
+ l.value.form.submit.click = k, l.value.form.reset.click = L;
1259
1259
  const te = {
1260
1260
  type: "hidden",
1261
1261
  labelPosition: "right",
@@ -1263,24 +1263,24 @@ const wt = /* @__PURE__ */ gl(bl), Rt = {
1263
1263
  width: "100%"
1264
1264
  }
1265
1265
  };
1266
- l.value.formItems = Fe(
1266
+ l.value.formItems = qe(
1267
1267
  te,
1268
1268
  M == null ? void 0 : M.formItems,
1269
1269
  (ae = l == null ? void 0 : l.value) == null ? void 0 : ae.formItems
1270
1270
  );
1271
- const se = {
1271
+ const ie = {
1272
1272
  span: 12,
1273
1273
  offset: 0
1274
1274
  };
1275
- l.value.form.cols = Fe(
1276
- se,
1275
+ l.value.form.cols = qe(
1276
+ ie,
1277
1277
  (Ie = M == null ? void 0 : M.form) == null ? void 0 : Ie.cols,
1278
1278
  l.value.form.cols
1279
1279
  );
1280
1280
  const T = (w) => {
1281
- let m = [];
1281
+ let p = [];
1282
1282
  if (w.rules)
1283
- m = w.rules;
1283
+ p = w.rules;
1284
1284
  else {
1285
1285
  const a = { ...{
1286
1286
  required: void 0,
@@ -1291,18 +1291,18 @@ const wt = /* @__PURE__ */ gl(bl), Rt = {
1291
1291
  pattern: void 0,
1292
1292
  validate: void 0
1293
1293
  }, ...w };
1294
- a.required && m.push({
1294
+ a.required && p.push({
1295
1295
  required: !0,
1296
1296
  message: `${a.label}不能为空!`,
1297
1297
  trigger: "blur"
1298
- }), a.max !== void 0 && a.max !== null && a.max !== "" && (a.min === void 0 || a.min === null || a.min === "") && m.push({
1298
+ }), a.max !== void 0 && a.max !== null && a.max !== "" && (a.min === void 0 || a.min === null || a.min === "") && p.push({
1299
1299
  validator: (D, g, h) => {
1300
1300
  if (g == null || g === "") return h();
1301
1301
  a.type !== "number" && a.type !== "input-number" ? ((g == null ? void 0 : g.toString()) || "").length > Number(a.max) ? h(
1302
1302
  new Error(`${a.label}长度不能超过${a.max}个字符!`)
1303
1303
  ) : h() : Number(g) > Number(a.max) ? h(new Error(`${a.label}不能大于${a.max}!`)) : h();
1304
1304
  }
1305
- }), a.min !== void 0 && a.min !== null && a.min !== "" && (a.max === void 0 || a.max === null || a.max === "") && m.push({
1305
+ }), a.min !== void 0 && a.min !== null && a.min !== "" && (a.max === void 0 || a.max === null || a.max === "") && p.push({
1306
1306
  validator: (D, g, h) => {
1307
1307
  if (g == null || g === "") return h();
1308
1308
  a.type !== "number" && a.type !== "input-number" ? Number(a.min) < 1 ? h(
@@ -1315,7 +1315,7 @@ const wt = /* @__PURE__ */ gl(bl), Rt = {
1315
1315
  )
1316
1316
  ) : h() : Number(g) < Number(a.min) ? h(new Error(`${a.label}不能小于${a.min}!`)) : h();
1317
1317
  }
1318
- }), a.min !== void 0 && a.min !== null && a.min !== "" && a.max !== void 0 && a.max !== null && a.max !== "" && m.push({
1318
+ }), a.min !== void 0 && a.min !== null && a.min !== "" && a.max !== void 0 && a.max !== null && a.max !== "" && p.push({
1319
1319
  validator: (D, g, h) => {
1320
1320
  if (g == null || g === "") return h();
1321
1321
  const O = Number(a.min), P = Number(a.max);
@@ -1329,80 +1329,80 @@ const wt = /* @__PURE__ */ gl(bl), Rt = {
1329
1329
  )
1330
1330
  ) : h() : Number(g) < O || g > P ? h(new Error(`${a.label}必须在${O}-${P}之间!`)) : h();
1331
1331
  }
1332
- }), a.type == "email" && m.push({ type: "email", message: "不是一个正确的邮箱地址!" }), a.type == "url" && m.push({ type: "url", message: "不是一个合正确的URL!" }), a.pattern && m.push({
1332
+ }), a.type == "email" && p.push({ type: "email", message: "不是一个正确的邮箱地址!" }), a.type == "url" && p.push({ type: "url", message: "不是一个合正确的URL!" }), a.pattern && p.push({
1333
1333
  pattern: a == null ? void 0 : a.pattern,
1334
1334
  message: (a == null ? void 0 : a.message) || "格式不正确!"
1335
- }), a.validate && m.push({
1335
+ }), a.validate && p.push({
1336
1336
  validator: (D, g, h) => a.validate(D, g, h)
1337
1337
  });
1338
1338
  }
1339
- return m;
1340
- }, Q = (w, m = !1) => {
1339
+ return p;
1340
+ }, Q = (w, p = !1) => {
1341
1341
  var D, g, h, O, P;
1342
- const p = m ? w : w == null ? void 0 : w.item, a = typeof (p == null ? void 0 : p.editor) == "function" ? p.editor(U.value, (D = l.value.form) == null ? void 0 : D.modalState) : (p == null ? void 0 : p.editor) || {};
1342
+ const m = p ? w : w == null ? void 0 : w.item, a = typeof (m == null ? void 0 : m.editor) == "function" ? m.editor(Y.value, (D = l.value.form) == null ? void 0 : D.modalState) : (m == null ? void 0 : m.editor) || {};
1343
1343
  if (((g = l.value.form) == null ? void 0 : g.modalState) === "edit") {
1344
- const J = typeof (p == null ? void 0 : p.editor) == "object" ? (h = p.editor) == null ? void 0 : h.ep : typeof (p == null ? void 0 : p.editor) == "function" ? a == null ? void 0 : a.ep : {};
1344
+ const J = typeof (m == null ? void 0 : m.editor) == "object" ? (h = m.editor) == null ? void 0 : h.ep : typeof (m == null ? void 0 : m.editor) == "function" ? a == null ? void 0 : a.ep : {};
1345
1345
  return { ...a, ...J };
1346
1346
  }
1347
1347
  if (((O = l.value.form) == null ? void 0 : O.modalState) === "add") {
1348
- const J = typeof (p == null ? void 0 : p.editor) == "object" ? (P = p.editor) == null ? void 0 : P.ap : typeof (p == null ? void 0 : p.editor) == "function" ? a == null ? void 0 : a.ap : {};
1348
+ const J = typeof (m == null ? void 0 : m.editor) == "object" ? (P = m.editor) == null ? void 0 : P.ap : typeof (m == null ? void 0 : m.editor) == "function" ? a == null ? void 0 : a.ap : {};
1349
1349
  return { ...a, ...J };
1350
1350
  }
1351
1351
  return a;
1352
1352
  }, fe = (w) => {
1353
- var p, a, D, g, h;
1354
- const m = typeof w.editor == "function" ? w.editor(U.value, (p = l.value.form) == null ? void 0 : p.modalState) : w.editor;
1355
- return ((a = l.value.form) == null ? void 0 : a.modalState) === "edit" ? ((D = m == null ? void 0 : m.ep) == null ? void 0 : D.type) ?? (m == null ? void 0 : m.type) ?? w.type : ((g = l.value.form) == null ? void 0 : g.modalState) === "add" ? ((h = m == null ? void 0 : m.ap) == null ? void 0 : h.type) ?? (m == null ? void 0 : m.type) ?? w.type : (m == null ? void 0 : m.type) ?? w.type;
1353
+ var m, a, D, g, h;
1354
+ const p = typeof w.editor == "function" ? w.editor(Y.value, (m = l.value.form) == null ? void 0 : m.modalState) : w.editor;
1355
+ return ((a = l.value.form) == null ? void 0 : a.modalState) === "edit" ? ((D = p == null ? void 0 : p.ep) == null ? void 0 : D.type) ?? (p == null ? void 0 : p.type) ?? w.type : ((g = l.value.form) == null ? void 0 : g.modalState) === "add" ? ((h = p == null ? void 0 : p.ap) == null ? void 0 : h.type) ?? (p == null ? void 0 : p.type) ?? w.type : (p == null ? void 0 : p.type) ?? w.type;
1356
1356
  };
1357
1357
  ot(() => {
1358
- N(), E != null && E.editForm ? U.value = E.editForm : U.value = de.value;
1358
+ N(), _ != null && _.editForm ? Y.value = _.editForm : Y.value = ce.value;
1359
1359
  }), Wt(() => {
1360
1360
  i.value = null;
1361
1361
  });
1362
1362
  const N = () => {
1363
- S.value = Math.random().toString(36).substring(2);
1364
- for (const [w, m] of Object.entries(pe.value))
1363
+ V.value = Math.random().toString(36).substring(2);
1364
+ for (const [w, p] of Object.entries(me.value))
1365
1365
  l.value[w].formItem = {
1366
1366
  ...l.value[w].formItem,
1367
- ...m.formItem
1367
+ ...p.formItem
1368
1368
  }, l.value[w].formItem.style = {
1369
1369
  ...l.value[w].formItem.style,
1370
- ...m.formItem.style
1370
+ ...p.formItem.style
1371
1371
  };
1372
- }, pe = Ke(
1372
+ }, me = Ke(
1373
1373
  () => Object.fromEntries(
1374
- Object.entries(l.value).filter((w) => w[1].type != "hidden").filter((w) => w[1].hidden !== !0).filter((w) => w[1].edit !== !1).filter((w) => w[1].editor !== !1).filter((w) => w[1].type !== "control").filter((w) => {
1375
- var p, a, D;
1376
- const m = typeof w[1].editor == "function" ? w[1].editor(U.value, (p = l.value.form) == null ? void 0 : p.modalState) : w[1].editor;
1377
- return l.value.form.modalState === "edit" ? ((a = m == null ? void 0 : m.ep) == null ? void 0 : a.editor) !== !1 : l.value.form.modalState === "add" ? ((D = m == null ? void 0 : m.ap) == null ? void 0 : D.editor) !== !1 : !0;
1374
+ Object.entries(l.value).filter((w) => w[1].type != "hidden").filter((w) => w[1].hidden !== !0).filter((w) => w[1].edit !== !1).filter((w) => w[1].editor !== !1).filter((w) => w[1].type !== "control").filter((w) => !["table", "tableColumns", "query", "queryItems", "form", "formItems", "control", "dialog"].includes(w[0])).filter((w) => {
1375
+ var m, a, D;
1376
+ const p = typeof w[1].editor == "function" ? w[1].editor(Y.value, (m = l.value.form) == null ? void 0 : m.modalState) : w[1].editor;
1377
+ return l.value.form.modalState === "edit" ? ((a = p == null ? void 0 : p.ep) == null ? void 0 : a.editor) !== !1 : l.value.form.modalState === "add" ? ((D = p == null ? void 0 : p.ap) == null ? void 0 : D.editor) !== !1 : !0;
1378
1378
  }).map((w) => [w[0], w[1]])
1379
1379
  )
1380
- ), de = Ke(
1380
+ ), ce = Ke(
1381
1381
  () => Object.fromEntries(
1382
1382
  Object.entries(l.value).filter((w) => w[1].type != "hidden").filter((w) => w[1].type != "control").map((w) => [w[0], w[1].value])
1383
1383
  )
1384
- ), De = Ke(() => {
1384
+ ), Me = Ke(() => {
1385
1385
  const w = /* @__PURE__ */ new Map();
1386
- return Object.entries(pe.value).forEach(([m, p]) => {
1387
- if (p.groupName) {
1388
- const a = p.groupName;
1386
+ return Object.entries(me.value).forEach(([p, m]) => {
1387
+ if (m.groupName) {
1388
+ const a = m.groupName;
1389
1389
  w.has(a) || w.set(a, {
1390
1390
  groupName: a,
1391
1391
  items: []
1392
- }), w.get(a).items.push({ key: m, item: p });
1392
+ }), w.get(a).items.push({ key: p, item: m });
1393
1393
  }
1394
- }), w.forEach((m) => {
1395
- m.tabPane = Fe(
1396
- ...m.items.map(({ item: p }) => p.tabPane || {})
1394
+ }), w.forEach((p) => {
1395
+ p.tabPane = qe(
1396
+ ...p.items.map(({ item: m }) => m.tabPane || {})
1397
1397
  );
1398
1398
  }), Array.from(w.values());
1399
- }), ie = [
1399
+ }), de = [
1400
1400
  {
1401
1401
  name: "f-submit",
1402
1402
  label: l.value.form.submit.label,
1403
1403
  click: l.value.form.submit.click,
1404
1404
  hidden: l.value.form.submit.hidden,
1405
- info: Be(l.value.form.submit, (w) => !["click"].includes(w)),
1405
+ info: Ye(l.value.form.submit, (w) => !["click"].includes(w)),
1406
1406
  sort: l.value.form.submit.sort ?? 1,
1407
1407
  // 使用空值合并运算符
1408
1408
  originalOrder: 0
@@ -1412,27 +1412,27 @@ const wt = /* @__PURE__ */ gl(bl), Rt = {
1412
1412
  name: "f-reset",
1413
1413
  label: l.value.form.reset.label,
1414
1414
  click: l.value.form.reset.click,
1415
- info: Be(l.value.form.reset, (w) => !["click"].includes(w)),
1415
+ info: Ye(l.value.form.reset, (w) => !["click"].includes(w)),
1416
1416
  hidden: l.value.form.reset.hidden,
1417
1417
  sort: l.value.form.reset.sort ?? 2,
1418
1418
  // 使用空值合并运算符
1419
1419
  originalOrder: 1
1420
1420
  // 添加原始顺序标识
1421
1421
  }
1422
- ], ue = Ke(() => ie.filter((w) => !w.hidden).sort((w, m) => w.sort - m.sort || w.originalOrder - m.originalOrder));
1422
+ ], ue = Ke(() => de.filter((w) => !w.hidden).sort((w, p) => w.sort - p.sort || w.originalOrder - p.originalOrder));
1423
1423
  return s({
1424
1424
  submit: k,
1425
- reset: R,
1426
- formData: U
1427
- }), (w, m) => {
1425
+ reset: L,
1426
+ formData: Y
1427
+ }), (w, p) => {
1428
1428
  var P, J, Z;
1429
- const p = A("el-form-item"), a = A("el-col"), D = A("el-tab-pane"), g = A("el-tabs"), h = A("el-form"), O = A("el-button");
1430
- return u(), q("div", Fl, [
1431
- G(h, F(
1429
+ const m = I("el-form-item"), a = I("el-col"), D = I("el-tab-pane"), g = I("el-tabs"), h = I("el-form"), O = I("el-button");
1430
+ return u(), q("div", xl, [
1431
+ G(h, x(
1432
1432
  {
1433
1433
  ref_key: "gform",
1434
1434
  ref: i,
1435
- model: U.value,
1435
+ model: Y.value,
1436
1436
  style: {
1437
1437
  width: "98%",
1438
1438
  padding: 0,
@@ -1440,21 +1440,21 @@ const wt = /* @__PURE__ */ gl(bl), Rt = {
1440
1440
  "box-sizing": "border-box"
1441
1441
  }
1442
1442
  },
1443
- Y(Be)(
1443
+ U(Ye)(
1444
1444
  l.value.form,
1445
1445
  (v) => !["footer", "submit", "reset", "slots", "type", "sort"].includes(v)
1446
1446
  )
1447
1447
  ), {
1448
1448
  default: b(() => [
1449
- De.value.length > 0 ? $(w.$slots, "default", { key: 0 }, () => [
1450
- G(g, F({
1449
+ Me.value.length > 0 ? $(w.$slots, "default", { key: 0 }, () => [
1450
+ G(g, x({
1451
1451
  class: "demo-tabs",
1452
- modelValue: De.value[0].groupName,
1453
- "onUpdate:modelValue": m[0] || (m[0] = (v) => De.value[0].groupName = v),
1452
+ modelValue: Me.value[0].groupName,
1453
+ "onUpdate:modelValue": p[0] || (p[0] = (v) => Me.value[0].groupName = v),
1454
1454
  style: { width: "100%" }
1455
1455
  }, l.value.form.tabs), {
1456
1456
  default: b(() => [
1457
- (u(!0), q(X, null, L(De.value, (v) => (u(), V(D, F({
1457
+ (u(!0), q(X, null, R(Me.value, (v) => (u(), S(D, x({
1458
1458
  key: v.groupName,
1459
1459
  label: v.groupName,
1460
1460
  name: v.groupName,
@@ -1462,42 +1462,42 @@ const wt = /* @__PURE__ */ gl(bl), Rt = {
1462
1462
  ref_for: !0
1463
1463
  }, v.tabPane), {
1464
1464
  default: b(() => [
1465
- (u(!0), q(X, null, L(v.items, (c, K) => (u(), V(a, F({ ref_for: !0 }, { ...l.value.form.cols, ...c == null ? void 0 : c.item.col }, {
1465
+ (u(!0), q(X, null, R(v.items, (c, K) => (u(), S(a, x({ ref_for: !0 }, { ...l.value.form.cols, ...c == null ? void 0 : c.item.col }, {
1466
1466
  key: c.key,
1467
1467
  style: { width: "100%" }
1468
1468
  }), {
1469
1469
  default: b(() => {
1470
- var ge, me;
1470
+ var be, ve;
1471
1471
  return [
1472
- G(p, F({
1472
+ G(m, x({
1473
1473
  label: c == null ? void 0 : c.item.label,
1474
1474
  prop: c.key,
1475
1475
  rules: T(c == null ? void 0 : c.item),
1476
1476
  ref_for: !0
1477
- }, { ...(ge = l.value) == null ? void 0 : ge.formItems, ...(me = c == null ? void 0 : c.item) == null ? void 0 : me.formItem }, { style: { width: "100%" } }), {
1477
+ }, { ...(be = l.value) == null ? void 0 : be.formItems, ...(ve = c == null ? void 0 : c.item) == null ? void 0 : ve.formItem }, { style: { width: "100%" } }), {
1478
1478
  default: b(() => [
1479
1479
  $(w.$slots, "f-" + c.key, {
1480
1480
  item: c == null ? void 0 : c.item,
1481
- formInfo: U.value,
1481
+ formInfo: Y.value,
1482
1482
  model: l.value
1483
1483
  }, () => [
1484
- (u(), V(yt, {
1485
- modelValue: U.value[c.key],
1486
- "onUpdate:modelValue": (be) => U.value[c.key] = be,
1484
+ (u(), S(yt, {
1485
+ modelValue: Y.value[c.key],
1486
+ "onUpdate:modelValue": ($e) => Y.value[c.key] = $e,
1487
1487
  item: Q(c),
1488
1488
  ctrlKey: c.key,
1489
1489
  ctrlType: fe(c == null ? void 0 : c.item),
1490
1490
  model: l.value,
1491
- key: `${c.key}-${S.value}`,
1491
+ key: `${c.key}-${V.value}`,
1492
1492
  class: "g-ctrl-container",
1493
1493
  t: "f",
1494
- formInfo: U.value
1495
- }, ve({ _: 2 }, [
1496
- L(w.$slots, (be, $e) => ({
1497
- name: $e,
1498
- fn: b((we) => [
1499
- $(w.$slots, $e, {
1500
- data: we,
1494
+ formInfo: Y.value
1495
+ }, he({ _: 2 }, [
1496
+ R(w.$slots, ($e, we) => ({
1497
+ name: we,
1498
+ fn: b((_e) => [
1499
+ $(w.$slots, we, {
1500
+ data: _e,
1501
1501
  item: c.item,
1502
1502
  model: l.value
1503
1503
  }, void 0, !0)
@@ -1519,51 +1519,51 @@ const wt = /* @__PURE__ */ gl(bl), Rt = {
1519
1519
  _: 3
1520
1520
  }, 16, ["modelValue"])
1521
1521
  ], !0) : $(w.$slots, "default", { key: 1 }, () => [
1522
- (u(!0), q(X, null, L(pe.value, (v, c) => (u(), V(a, F({ ref_for: !0 }, { ...l.value.form.cols, ...v.col }, {
1522
+ (u(!0), q(X, null, R(me.value, (v, c) => (u(), S(a, x({ ref_for: !0 }, { ...l.value.form.cols, ...v.col }, {
1523
1523
  key: c,
1524
1524
  style: { width: "100%" }
1525
1525
  }), {
1526
1526
  default: b(() => {
1527
1527
  var K;
1528
1528
  return [
1529
- G(p, F({
1529
+ G(m, x({
1530
1530
  label: v.label,
1531
1531
  prop: c,
1532
1532
  rules: T(v),
1533
1533
  ref_for: !0
1534
1534
  }, { ...(K = l.value) == null ? void 0 : K.formItems, ...v == null ? void 0 : v.formItem }, { style: { width: "100%" } }), {
1535
- label: b((ge) => [
1535
+ label: b((be) => [
1536
1536
  $(w.$slots, `f-${c}-label`, {
1537
- data: ge,
1537
+ data: be,
1538
1538
  item: v,
1539
1539
  model: l.value
1540
1540
  }, () => [
1541
- Ae(Ce(v.label), 1)
1541
+ Be(Ce(v.label), 1)
1542
1542
  ], !0)
1543
1543
  ]),
1544
1544
  default: b(() => [
1545
1545
  $(w.$slots, "f-" + c, {
1546
1546
  item: v,
1547
- formInfo: U.value,
1547
+ formInfo: Y.value,
1548
1548
  model: l.value
1549
1549
  }, () => [
1550
- (u(), V(yt, {
1551
- modelValue: U.value[c],
1552
- "onUpdate:modelValue": (ge) => U.value[c] = ge,
1550
+ (u(), S(yt, {
1551
+ modelValue: Y.value[c],
1552
+ "onUpdate:modelValue": (be) => Y.value[c] = be,
1553
1553
  item: Q(v, !0),
1554
1554
  ctrlKey: c,
1555
1555
  ctrlType: fe(v),
1556
- key: `${c}-${S.value}`,
1556
+ key: `${c}-${V.value}`,
1557
1557
  model: l.value,
1558
1558
  class: "g-ctrl-container",
1559
1559
  t: "f",
1560
- formInfo: U.value
1561
- }, ve({ _: 2 }, [
1562
- L(w.$slots, (ge, me) => ({
1563
- name: me,
1564
- fn: b((be) => [
1565
- $(w.$slots, me, {
1566
- data: be,
1560
+ formInfo: Y.value
1561
+ }, he({ _: 2 }, [
1562
+ R(w.$slots, (be, ve) => ({
1563
+ name: ve,
1564
+ fn: b(($e) => [
1565
+ $(w.$slots, ve, {
1566
+ data: $e,
1567
1567
  item: v,
1568
1568
  model: l.value
1569
1569
  }, void 0, !0)
@@ -1582,19 +1582,19 @@ const wt = /* @__PURE__ */ gl(bl), Rt = {
1582
1582
  ]),
1583
1583
  _: 3
1584
1584
  }, 16, ["model"]),
1585
- (Z = (J = (P = l.value) == null ? void 0 : P.form) == null ? void 0 : J.footer) != null && Z.hidden ? ye("", !0) : $(w.$slots, "f-footer", { key: 0 }, () => [
1585
+ (Z = (J = (P = l.value) == null ? void 0 : P.form) == null ? void 0 : J.footer) != null && Z.hidden ? ge("", !0) : $(w.$slots, "f-footer", { key: 0 }, () => [
1586
1586
  H("div", {
1587
1587
  style: Oe(l.value.form.footer.style)
1588
1588
  }, [
1589
1589
  $(w.$slots, "f-footer-left", {}, void 0, !0),
1590
- (u(!0), q(X, null, L(ue.value, (v) => (u(), q(X, null, [
1590
+ (u(!0), q(X, null, R(ue.value, (v) => (u(), q(X, null, [
1591
1591
  $(w.$slots, v.name + "-left", {}, void 0, !0),
1592
1592
  $(w.$slots, v.name, {}, () => [
1593
- G(O, F({ ref_for: !0 }, v.info, {
1594
- onClick: vt((c) => v.click(U.value, l.value), ["stop"])
1593
+ G(O, x({ ref_for: !0 }, v.info, {
1594
+ onClick: vt((c) => v.click(Y.value, l.value), ["stop"])
1595
1595
  }), {
1596
1596
  default: b(() => [
1597
- Ae(Ce(v == null ? void 0 : v.label), 1)
1597
+ Be(Ce(v == null ? void 0 : v.label), 1)
1598
1598
  ]),
1599
1599
  _: 2
1600
1600
  }, 1040, ["onClick"])
@@ -1607,7 +1607,7 @@ const wt = /* @__PURE__ */ gl(bl), Rt = {
1607
1607
  ]);
1608
1608
  };
1609
1609
  }
1610
- }), _t = /* @__PURE__ */ Ze(ql, [["__scopeId", "data-v-5e3f3a88"]]), St = {
1610
+ }), Et = /* @__PURE__ */ Ze(Fl, [["__scopeId", "data-v-68883be7"]]), Vt = {
1611
1611
  __name: "g-query-item",
1612
1612
  props: /* @__PURE__ */ Ge(["more"], {
1613
1613
  modelValue: { required: !0 },
@@ -1617,54 +1617,54 @@ const wt = /* @__PURE__ */ gl(bl), Rt = {
1617
1617
  }),
1618
1618
  emits: ["update:modelValue", "update:info"],
1619
1619
  setup(f) {
1620
- const s = Qe(f, "modelValue"), r = f, l = Qe(f, "info"), e = (S) => Ke(() => Object.fromEntries(Object.entries(s.value).filter((E) => {
1620
+ const s = Qe(f, "modelValue"), o = f, l = Qe(f, "info"), e = (V) => Ke(() => Object.fromEntries(Object.entries(s.value).filter((_) => {
1621
1621
  var k;
1622
- return typeof E[1].search == "function" ? E[1].search && ((k = E[1].search(l.value, s.value.table)) == null ? void 0 : k.more) === S : E[1].search && E[1].search.more === S;
1623
- }).map((E) => [E[0], E[1]]))).value, i = (S) => typeof S.search == "function" ? S.search(l.value, s.value.table) : S.search || {}, M = (S) => {
1624
- const E = i(S);
1625
- return (E == null ? void 0 : E.type) || S.type;
1626
- }, U = (S) => {
1627
- var R;
1628
- const E = i(S);
1629
- let k = (E == null ? void 0 : E.width) || ((R = s.value.queryItems) == null ? void 0 : R.width) || "100%";
1622
+ return typeof _[1].search == "function" ? _[1].search && ((k = _[1].search(l.value, s.value.table)) == null ? void 0 : k.more) === V : _[1].search && _[1].search.more === V;
1623
+ }).map((_) => [_[0], _[1]]))).value, i = (V) => typeof V.search == "function" ? V.search(l.value, s.value.table) : V.search || {}, M = (V) => {
1624
+ const _ = i(V);
1625
+ return (_ == null ? void 0 : _.type) || V.type;
1626
+ }, Y = (V) => {
1627
+ var L;
1628
+ const _ = i(V);
1629
+ let k = (_ == null ? void 0 : _.width) || ((L = s.value.queryItems) == null ? void 0 : L.width) || "100%";
1630
1630
  return isNaN(k) || (k += "px"), k;
1631
1631
  };
1632
- return (S, E) => {
1633
- const k = A("el-form-item");
1634
- return u(!0), q(X, null, L(e(r.more), (R, te) => $(S.$slots, `q-${te}`, {
1632
+ return (V, _) => {
1633
+ const k = I("el-form-item");
1634
+ return u(!0), q(X, null, R(e(o.more), (L, te) => $(V.$slots, `q-${te}`, {
1635
1635
  key: te,
1636
- item: R,
1636
+ item: L,
1637
1637
  queryModel: l.value,
1638
1638
  model: s.value
1639
1639
  }, () => [
1640
- G(k, F({
1641
- label: R.label,
1642
- style: { width: U(R) },
1640
+ G(k, x({
1641
+ label: L.label,
1642
+ style: { width: Y(L) },
1643
1643
  ref_for: !0
1644
- }, { ...s.value.queryItems, ...i(R) }), {
1644
+ }, { ...s.value.queryItems, ...i(L) }), {
1645
1645
  label: b(() => [
1646
- $(S.$slots, `q-${te}-label`, {
1647
- item: R,
1646
+ $(V.$slots, `q-${te}-label`, {
1647
+ item: L,
1648
1648
  model: s.value
1649
1649
  })
1650
1650
  ]),
1651
1651
  default: b(() => [
1652
1652
  G(yt, {
1653
1653
  modelValue: l.value[te],
1654
- "onUpdate:modelValue": (se) => l.value[te] = se,
1655
- item: { ...R == null ? void 0 : R.editor, ...i(R) },
1654
+ "onUpdate:modelValue": (ie) => l.value[te] = ie,
1655
+ item: { ...L == null ? void 0 : L.editor, ...i(L) },
1656
1656
  ctrlKey: te,
1657
- ctrlType: M(R),
1657
+ ctrlType: M(L),
1658
1658
  model: s.value,
1659
1659
  t: "q",
1660
1660
  formInfo: l.value
1661
- }, ve({ _: 2 }, [
1662
- L(Object.keys(S.$slots), (se) => ({
1663
- name: se,
1661
+ }, he({ _: 2 }, [
1662
+ R(Object.keys(V.$slots), (ie) => ({
1663
+ name: ie,
1664
1664
  fn: b((T) => [
1665
- $(S.$slots, se, {
1665
+ $(V.$slots, ie, {
1666
1666
  data: T,
1667
- item: R,
1667
+ item: L,
1668
1668
  model: s.value
1669
1669
  })
1670
1670
  ])
@@ -1676,10 +1676,10 @@ const wt = /* @__PURE__ */ gl(bl), Rt = {
1676
1676
  ])), 128);
1677
1677
  };
1678
1678
  }
1679
- }, Ol = {
1679
+ }, ql = {
1680
1680
  key: 0,
1681
1681
  class: "outer"
1682
- }, Il = { class: "inner" }, Al = {
1682
+ }, Ol = { class: "inner" }, Al = {
1683
1683
  __name: "g-query",
1684
1684
  props: {
1685
1685
  modelValue: { required: !0 },
@@ -1689,7 +1689,7 @@ const wt = /* @__PURE__ */ gl(bl), Rt = {
1689
1689
  },
1690
1690
  emits: /* @__PURE__ */ Ge(["query", "reset"], ["update:modelValue", "update:info"]),
1691
1691
  setup(f, { emit: s }) {
1692
- const r = Qe(f, "modelValue"), l = s, e = Mt("options"), i = re(!1), M = Qe(f, "info"), U = {
1692
+ const o = Qe(f, "modelValue"), l = s, e = Mt("options"), i = re(!1), M = Qe(f, "info"), Y = {
1693
1693
  hidden: !1,
1694
1694
  type: "hidden",
1695
1695
  labelWidth: 100,
@@ -1706,7 +1706,7 @@ const wt = /* @__PURE__ */ gl(bl), Rt = {
1706
1706
  hidden: !0,
1707
1707
  type: "primary",
1708
1708
  label: "更多",
1709
- icon: () => _e(ul),
1709
+ icon: () => Ee(ul),
1710
1710
  click: () => {
1711
1711
  i.value = !i.value;
1712
1712
  }
@@ -1716,7 +1716,7 @@ const wt = /* @__PURE__ */ gl(bl), Rt = {
1716
1716
  type: "primary",
1717
1717
  hidden: !1,
1718
1718
  plain: !1,
1719
- icon: () => _e(At),
1719
+ icon: () => Ee(It),
1720
1720
  click: () => {
1721
1721
  l("reset", M.value);
1722
1722
  }
@@ -1725,7 +1725,7 @@ const wt = /* @__PURE__ */ gl(bl), Rt = {
1725
1725
  hidden: !1,
1726
1726
  type: "primary",
1727
1727
  label: "查询",
1728
- icon: () => _e(nl),
1728
+ icon: () => Ee(nl),
1729
1729
  click: () => {
1730
1730
  l("query", M.value), i.value = !1;
1731
1731
  }
@@ -1741,8 +1741,8 @@ const wt = /* @__PURE__ */ gl(bl), Rt = {
1741
1741
  }
1742
1742
  }
1743
1743
  };
1744
- r.value.query = Fe(U, e == null ? void 0 : e.query, r.value.query);
1745
- const S = {
1744
+ o.value.query = qe(Y, e == null ? void 0 : e.query, o.value.query);
1745
+ const V = {
1746
1746
  2: {
1747
1747
  title: "更多查询",
1748
1748
  showClose: !1,
@@ -1759,11 +1759,11 @@ const wt = /* @__PURE__ */ gl(bl), Rt = {
1759
1759
  trigger: "click"
1760
1760
  }
1761
1761
  };
1762
- r.value.query.more.dialog = Fe(
1763
- S[r.value.query.more.mode] || {},
1764
- r.value.query.more.dialog
1762
+ o.value.query.more.dialog = qe(
1763
+ V[o.value.query.more.mode] || {},
1764
+ o.value.query.more.dialog
1765
1765
  );
1766
- const E = {
1766
+ const _ = {
1767
1767
  type: "hidden",
1768
1768
  hidden: !1,
1769
1769
  labelPosition: "right",
@@ -1772,109 +1772,109 @@ const wt = /* @__PURE__ */ gl(bl), Rt = {
1772
1772
  // width: "280px"
1773
1773
  }
1774
1774
  };
1775
- r.value.queryItems = Fe(E, e == null ? void 0 : e.queryItems, r.value.queryItems);
1775
+ o.value.queryItems = qe(_, e == null ? void 0 : e.queryItems, o.value.queryItems);
1776
1776
  const k = (T, Q) => {
1777
- const fe = Object.keys(T.slots).filter((N) => N !== "default").reduce((N, pe) => (N[pe] = (de) => T.slots[pe]({
1778
- model: r.value
1777
+ const fe = Object.keys(T.slots).filter((N) => N !== "default").reduce((N, me) => (N[me] = (ce) => T.slots[me]({
1778
+ model: o.value
1779
1779
  // 传递当前模型数据
1780
1780
  }), N), {});
1781
- return _e(St, {
1782
- modelValue: r.value,
1783
- "onUpdate:modelValue": (N) => r.value = N,
1781
+ return Ee(Vt, {
1782
+ modelValue: o.value,
1783
+ "onUpdate:modelValue": (N) => o.value = N,
1784
1784
  info: M.value,
1785
1785
  "onUpdate:info": (N) => M.value = N,
1786
1786
  more: Q
1787
1787
  }, fe);
1788
- }, R = qt(), te = () => {
1789
- var fe, N, pe, de, De, ie, ue, he, Ve;
1788
+ }, L = qt(), te = () => {
1789
+ var fe, N, me, ce, Me, de, ue, ye, Te;
1790
1790
  const T = [
1791
1791
  {
1792
1792
  key: "query",
1793
- hidden: (pe = (N = (fe = r.value) == null ? void 0 : fe.query) == null ? void 0 : N.query) == null ? void 0 : pe.hidden,
1794
- component: qe,
1793
+ hidden: (me = (N = (fe = o.value) == null ? void 0 : fe.query) == null ? void 0 : N.query) == null ? void 0 : me.hidden,
1794
+ component: Ae,
1795
1795
  props: {
1796
- ...r.value.query.query,
1797
- onClick: r.value.query.query.click
1796
+ ...o.value.query.query,
1797
+ onClick: o.value.query.query.click
1798
1798
  },
1799
- label: r.value.query.query.label,
1800
- sort: r.value.query.query.sort || 0
1799
+ label: o.value.query.query.label,
1800
+ sort: o.value.query.query.sort || 0
1801
1801
  },
1802
1802
  {
1803
1803
  key: "reset",
1804
- hidden: (ie = (De = (de = r.value) == null ? void 0 : de.query) == null ? void 0 : De.reset) == null ? void 0 : ie.hidden,
1805
- component: qe,
1804
+ hidden: (de = (Me = (ce = o.value) == null ? void 0 : ce.query) == null ? void 0 : Me.reset) == null ? void 0 : de.hidden,
1805
+ component: Ae,
1806
1806
  props: {
1807
- ...r.value.query.reset,
1808
- onClick: r.value.query.reset.click
1807
+ ...o.value.query.reset,
1808
+ onClick: o.value.query.reset.click
1809
1809
  },
1810
- label: r.value.query.reset.label,
1811
- sort: r.value.query.reset.sort || 0
1810
+ label: o.value.query.reset.label,
1811
+ sort: o.value.query.reset.sort || 0
1812
1812
  },
1813
1813
  {
1814
1814
  key: "more",
1815
- hidden: (Ve = (he = (ue = r.value) == null ? void 0 : ue.query) == null ? void 0 : he.more) == null ? void 0 : Ve.hidden,
1816
- component: r.value.query.more.mode === 3 ? $t : qe,
1817
- props: r.value.query.more.mode === 3 ? { ...r.value.query.more.dialog } : {
1818
- ...r.value.query.more,
1819
- onClick: r.value.query.more.click
1815
+ hidden: (Te = (ye = (ue = o.value) == null ? void 0 : ue.query) == null ? void 0 : ye.more) == null ? void 0 : Te.hidden,
1816
+ component: o.value.query.more.mode === 3 ? $t : Ae,
1817
+ props: o.value.query.more.mode === 3 ? { ...o.value.query.more.dialog } : {
1818
+ ...o.value.query.more,
1819
+ onClick: o.value.query.more.click
1820
1820
  },
1821
- label: r.value.query.more.label,
1822
- sort: r.value.query.more.sort || 0,
1823
- content: r.value.query.more.mode === 3 ? () => _e(pt, {
1821
+ label: o.value.query.more.label,
1822
+ sort: o.value.query.more.sort || 0,
1823
+ content: o.value.query.more.mode === 3 ? () => Ee(mt, {
1824
1824
  class: "query-form",
1825
- ...Be(r.value.query, (le) => !["query", "more", "reset"].includes(le))
1826
- }, () => k({ slots: R }, !0)) : null
1825
+ ...Ye(o.value.query, (le) => !["query", "more", "reset"].includes(le))
1826
+ }, () => k({ slots: L }, !0)) : null
1827
1827
  }
1828
1828
  ];
1829
- return T.sort((le, oe) => le.sort - oe.sort), T.filter((le) => !le.hidden).map((le) => le.key === "more" && le.component === $t ? _e($t, le.props, {
1830
- reference: () => _e(qe, r.value.query.more, () => le.label),
1829
+ return T.sort((le, oe) => le.sort - oe.sort), T.filter((le) => !le.hidden).map((le) => le.key === "more" && le.component === $t ? Ee($t, le.props, {
1830
+ reference: () => Ee(Ae, o.value.query.more, () => le.label),
1831
1831
  default: le.content
1832
- }) : (le.props.slot = "query-" + le.key, le.label ? _e(le.component, le.props, () => le.label) : _e(le.component, le.props)));
1833
- }, se = Ke(() => ({
1832
+ }) : (le.props.slot = "query-" + le.key, le.label ? Ee(le.component, le.props, () => le.label) : Ee(le.component, le.props)));
1833
+ }, ie = Ke(() => ({
1834
1834
  diplay: "flex",
1835
- flexDirection: r.value.query.container.mode === "row" ? "row" : "column"
1835
+ flexDirection: o.value.query.container.mode === "row" ? "row" : "column"
1836
1836
  }));
1837
1837
  return (T, Q) => {
1838
- var pe, de, De, ie, ue, he, Ve, le, oe, ae, Ie, w, m, p, a, D, g;
1839
- const fe = A("el-form-item"), N = A("el-drawer");
1838
+ var me, ce, Me, de, ue, ye, Te, le, oe, ae, Ie, w, p, m, a, D, g;
1839
+ const fe = I("el-form-item"), N = I("el-drawer");
1840
1840
  return u(), q(X, null, [
1841
1841
  H("div", {
1842
1842
  class: "g-query-container",
1843
- style: Oe({ ...se.value, ...((de = (pe = r.value.query) == null ? void 0 : pe.container) == null ? void 0 : de.style) || {} })
1843
+ style: Oe({ ...ie.value, ...((ce = (me = o.value.query) == null ? void 0 : me.container) == null ? void 0 : ce.style) || {} })
1844
1844
  }, [
1845
- G(Y(pt), F({
1845
+ G(U(mt), x({
1846
1846
  onSubmit: Q[0] || (Q[0] = vt(() => {
1847
1847
  }, ["prevent"]))
1848
- }, Y(Be)(r.value.query, (h) => !["query", "more", "reset", "btns"].includes(h))), {
1848
+ }, U(Ye)(o.value.query, (h) => !["query", "more", "reset", "btns"].includes(h))), {
1849
1849
  default: b(() => {
1850
1850
  var h, O;
1851
1851
  return [
1852
- (u(), V(We(k({ slots: T.$slots }, void 0)))),
1853
- ((O = (h = r.value.query) == null ? void 0 : h.container) == null ? void 0 : O.inline) === !0 ? (u(), V(fe, { key: 0 }, {
1852
+ (u(), S(We(k({ slots: T.$slots }, void 0)))),
1853
+ ((O = (h = o.value.query) == null ? void 0 : h.container) == null ? void 0 : O.inline) === !0 ? (u(), S(fe, { key: 0 }, {
1854
1854
  default: b(() => {
1855
1855
  var P, J, Z, v, c;
1856
1856
  return [
1857
1857
  H("div", {
1858
- style: Oe((J = (P = r.value.query) == null ? void 0 : P.btns) == null ? void 0 : J.style)
1858
+ style: Oe((J = (P = o.value.query) == null ? void 0 : P.btns) == null ? void 0 : J.style)
1859
1859
  }, [
1860
- r.value.query.group ? (u(), V(Y(mt), { key: 0 }, {
1860
+ o.value.query.group ? (u(), S(U(pt), { key: 0 }, {
1861
1861
  default: b(() => [
1862
- (u(!0), q(X, null, L(te(), (K) => $(T.$slots, K.props.slot, {}, () => [
1863
- (u(), V(We(K)))
1862
+ (u(!0), q(X, null, R(te(), (K) => $(T.$slots, K.props.slot, {}, () => [
1863
+ (u(), S(We(K)))
1864
1864
  ], !0)), 256)),
1865
1865
  $(T.$slots, "q-btns", {}, void 0, !0)
1866
1866
  ]),
1867
1867
  _: 3
1868
1868
  })) : (u(), q(X, { key: 1 }, [
1869
- (c = (v = (Z = r.value) == null ? void 0 : Z.query) == null ? void 0 : v.btns) != null && c.group ? (u(), V(Y(mt), { key: 0 }, {
1869
+ (c = (v = (Z = o.value) == null ? void 0 : Z.query) == null ? void 0 : v.btns) != null && c.group ? (u(), S(U(pt), { key: 0 }, {
1870
1870
  default: b(() => [
1871
- (u(!0), q(X, null, L(te(), (K) => $(T.$slots, K.props.slot, {}, () => [
1872
- (u(), V(We(K)))
1871
+ (u(!0), q(X, null, R(te(), (K) => $(T.$slots, K.props.slot, {}, () => [
1872
+ (u(), S(We(K)))
1873
1873
  ], !0)), 256))
1874
1874
  ]),
1875
1875
  _: 3
1876
- })) : (u(!0), q(X, { key: 1 }, L(te(), (K) => $(T.$slots, K.props.slot, {}, () => [
1877
- (u(), V(We(K)))
1876
+ })) : (u(!0), q(X, { key: 1 }, R(te(), (K) => $(T.$slots, K.props.slot, {}, () => [
1877
+ (u(), S(We(K)))
1878
1878
  ], !0)), 256)),
1879
1879
  $(T.$slots, "q-btns", {}, void 0, !0)
1880
1880
  ], 64))
@@ -1882,62 +1882,62 @@ const wt = /* @__PURE__ */ gl(bl), Rt = {
1882
1882
  ];
1883
1883
  }),
1884
1884
  _: 3
1885
- })) : ye("", !0)
1885
+ })) : ge("", !0)
1886
1886
  ];
1887
1887
  }),
1888
1888
  _: 3
1889
1889
  }, 16),
1890
- ((ue = (ie = (De = r.value) == null ? void 0 : De.query) == null ? void 0 : ie.container) == null ? void 0 : ue.inline) === !1 ? (u(), q("div", {
1890
+ ((ue = (de = (Me = o.value) == null ? void 0 : Me.query) == null ? void 0 : de.container) == null ? void 0 : ue.inline) === !1 ? (u(), q("div", {
1891
1891
  key: 0,
1892
- style: Oe((Ve = (he = r.value.query) == null ? void 0 : he.btns) == null ? void 0 : Ve.style)
1892
+ style: Oe((Te = (ye = o.value.query) == null ? void 0 : ye.btns) == null ? void 0 : Te.style)
1893
1893
  }, [
1894
- r.value.query.group ? (u(), V(Y(mt), { key: 0 }, {
1894
+ o.value.query.group ? (u(), S(U(pt), { key: 0 }, {
1895
1895
  default: b(() => [
1896
- (u(!0), q(X, null, L(te(), (h) => $(T.$slots, h.props.slot, {}, () => [
1897
- (u(), V(We(h)))
1896
+ (u(!0), q(X, null, R(te(), (h) => $(T.$slots, h.props.slot, {}, () => [
1897
+ (u(), S(We(h)))
1898
1898
  ], !0)), 256)),
1899
1899
  $(T.$slots, "q-btns", {}, void 0, !0)
1900
1900
  ]),
1901
1901
  _: 3
1902
1902
  })) : (u(), q(X, { key: 1 }, [
1903
- (oe = (le = r.value.query) == null ? void 0 : le.btns) != null && oe.group ? (u(), V(Y(mt), { key: 0 }, {
1903
+ (oe = (le = o.value.query) == null ? void 0 : le.btns) != null && oe.group ? (u(), S(U(pt), { key: 0 }, {
1904
1904
  default: b(() => [
1905
- (u(!0), q(X, null, L(te(), (h) => $(T.$slots, h.props.slot, {}, () => [
1906
- (u(), V(We(h)))
1905
+ (u(!0), q(X, null, R(te(), (h) => $(T.$slots, h.props.slot, {}, () => [
1906
+ (u(), S(We(h)))
1907
1907
  ], !0)), 256))
1908
1908
  ]),
1909
1909
  _: 3
1910
- })) : (u(!0), q(X, { key: 1 }, L(te(), (h) => $(T.$slots, h.props.slot, {}, () => [
1911
- (u(), V(We(h)))
1910
+ })) : (u(!0), q(X, { key: 1 }, R(te(), (h) => $(T.$slots, h.props.slot, {}, () => [
1911
+ (u(), S(We(h)))
1912
1912
  ], !0)), 256)),
1913
1913
  $(T.$slots, "q-btns", {}, void 0, !0)
1914
1914
  ], 64))
1915
- ], 4)) : ye("", !0)
1915
+ ], 4)) : ge("", !0)
1916
1916
  ], 4),
1917
- i.value && !((w = (Ie = (ae = r.value) == null ? void 0 : ae.query) == null ? void 0 : Ie.more) != null && w.hidden) && r.value.query.more.mode == 2 ? (u(), V(N, F({
1917
+ i.value && !((w = (Ie = (ae = o.value) == null ? void 0 : ae.query) == null ? void 0 : Ie.more) != null && w.hidden) && o.value.query.more.mode == 2 ? (u(), S(N, x({
1918
1918
  key: 0,
1919
1919
  modelValue: i.value,
1920
1920
  "onUpdate:modelValue": Q[6] || (Q[6] = (h) => i.value = h),
1921
1921
  title: "更多查询",
1922
1922
  "show-close": !1
1923
- }, r.value.query.more.dialog), ve({
1923
+ }, o.value.query.more.dialog), he({
1924
1924
  default: b(() => [
1925
- G(Y(pt), F({
1925
+ G(U(mt), x({
1926
1926
  onSubmit: Q[3] || (Q[3] = vt(() => {
1927
1927
  }, ["prevent"]))
1928
- }, Y(Be)(r.value.query, (h) => !["query", "more", "reset"].includes(h)), { style: { width: "98%" } }), {
1928
+ }, U(Ye)(o.value.query, (h) => !["query", "more", "reset"].includes(h)), { style: { width: "98%" } }), {
1929
1929
  default: b(() => [
1930
- G(St, {
1931
- modelValue: r.value,
1932
- "onUpdate:modelValue": Q[1] || (Q[1] = (h) => r.value = h),
1930
+ G(Vt, {
1931
+ modelValue: o.value,
1932
+ "onUpdate:modelValue": Q[1] || (Q[1] = (h) => o.value = h),
1933
1933
  info: M.value,
1934
1934
  "onUpdate:info": Q[2] || (Q[2] = (h) => M.value = h),
1935
1935
  more: !0
1936
- }, ve({ _: 2 }, [
1937
- L(T.$slots, (h, O, P) => ({
1936
+ }, he({ _: 2 }, [
1937
+ R(T.$slots, (h, O, P) => ({
1938
1938
  name: O,
1939
1939
  fn: b((J) => [
1940
- $(T.$slots, O, { model: r.value }, void 0, !0)
1940
+ $(T.$slots, O, { model: o.value }, void 0, !0)
1941
1941
  ])
1942
1942
  }))
1943
1943
  ]), 1032, ["modelValue", "info"])
@@ -1947,23 +1947,23 @@ const wt = /* @__PURE__ */ gl(bl), Rt = {
1947
1947
  ]),
1948
1948
  _: 2
1949
1949
  }, [
1950
- (g = (D = (a = (p = (m = r.value) == null ? void 0 : m.query) == null ? void 0 : p.more) == null ? void 0 : a.dialog) == null ? void 0 : D.footer) != null && g.hidden ? void 0 : {
1950
+ (g = (D = (a = (m = (p = o.value) == null ? void 0 : p.query) == null ? void 0 : m.more) == null ? void 0 : a.dialog) == null ? void 0 : D.footer) != null && g.hidden ? void 0 : {
1951
1951
  name: "footer",
1952
1952
  fn: b(() => [
1953
- H("div", Et(Xt(r.value.query.more.dialog.footer)), [
1954
- G(Y(qe), F(r.value.query.query, {
1955
- onClick: Q[4] || (Q[4] = (h) => r.value.query.query.click())
1953
+ H("div", _t(Xt(o.value.query.more.dialog.footer)), [
1954
+ G(U(Ae), x(o.value.query.query, {
1955
+ onClick: Q[4] || (Q[4] = (h) => o.value.query.query.click())
1956
1956
  }), {
1957
1957
  default: b(() => [
1958
- Ae(Ce(r.value.query.query.label), 1)
1958
+ Be(Ce(o.value.query.query.label), 1)
1959
1959
  ]),
1960
1960
  _: 1
1961
1961
  }, 16),
1962
- G(Y(qe), F(r.value.query.reset, {
1963
- onClick: Q[5] || (Q[5] = (h) => r.value.query.reset.click())
1962
+ G(U(Ae), x(o.value.query.reset, {
1963
+ onClick: Q[5] || (Q[5] = (h) => o.value.query.reset.click())
1964
1964
  }), {
1965
1965
  default: b(() => [
1966
- Ae(Ce(r.value.query.reset.label), 1)
1966
+ Be(Ce(o.value.query.reset.label), 1)
1967
1967
  ]),
1968
1968
  _: 1
1969
1969
  }, 16)
@@ -1971,7 +1971,7 @@ const wt = /* @__PURE__ */ gl(bl), Rt = {
1971
1971
  ]),
1972
1972
  key: "0"
1973
1973
  }
1974
- ]), 1040, ["modelValue"])) : ye("", !0),
1974
+ ]), 1040, ["modelValue"])) : ge("", !0),
1975
1975
  G(Gt, {
1976
1976
  duration: 300,
1977
1977
  name: "nested",
@@ -1980,22 +1980,22 @@ const wt = /* @__PURE__ */ gl(bl), Rt = {
1980
1980
  default: b(() => {
1981
1981
  var h, O, P;
1982
1982
  return [
1983
- i.value && !((P = (O = (h = r.value) == null ? void 0 : h.query) == null ? void 0 : O.more) != null && P.hidden) && r.value.query.more.mode == 1 ? (u(), q("div", Ol, [
1984
- H("div", Il, [
1985
- r.value.query.more.mode == 1 ? Qt((u(), V(Y(pt), F({
1983
+ i.value && !((P = (O = (h = o.value) == null ? void 0 : h.query) == null ? void 0 : O.more) != null && P.hidden) && o.value.query.more.mode == 1 ? (u(), q("div", ql, [
1984
+ H("div", Ol, [
1985
+ o.value.query.more.mode == 1 ? Qt((u(), S(U(mt), x({
1986
1986
  key: 0,
1987
1987
  onSubmit: Q[7] || (Q[7] = vt(() => {
1988
1988
  }, ["prevent"]))
1989
- }, Y(Be)(r.value.query, (J) => !["query", "more", "reset"].includes(J))), {
1989
+ }, U(Ye)(o.value.query, (J) => !["query", "more", "reset"].includes(J))), {
1990
1990
  default: b(() => [
1991
- (u(), V(We(k({ slots: T.$slots }, !0))))
1991
+ (u(), S(We(k({ slots: T.$slots }, !0))))
1992
1992
  ]),
1993
1993
  _: 1
1994
1994
  }, 16)), [
1995
1995
  [Zt, i.value]
1996
- ]) : ye("", !0)
1996
+ ]) : ge("", !0)
1997
1997
  ])
1998
- ])) : ye("", !0)
1998
+ ])) : ge("", !0)
1999
1999
  ];
2000
2000
  }),
2001
2001
  _: 1
@@ -2003,10 +2003,10 @@ const wt = /* @__PURE__ */ gl(bl), Rt = {
2003
2003
  ], 64);
2004
2004
  };
2005
2005
  }
2006
- }, Bl = /* @__PURE__ */ Ze(Al, [["__scopeId", "data-v-3f2b77d6"]]), Yl = { style: { padding: "0", margin: "0", "box-sizing": "border-box" } }, Ul = { style: { padding: "10px", "box-sizing": "border-box" } }, Ll = { style: { margin: "10px" } }, Rl = {
2006
+ }, Il = /* @__PURE__ */ Ze(Al, [["__scopeId", "data-v-3f2b77d6"]]), Bl = { style: { padding: "0", margin: "0", "box-sizing": "border-box" } }, Yl = { style: { padding: "10px", "box-sizing": "border-box" } }, Ul = { style: { margin: "10px" } }, Ll = {
2007
2007
  style: { display: "flex", "flex-wrap": "wrap" },
2008
2008
  id: "excelSortEl"
2009
- }, zl = ["textContent"], jl = { style: { width: "100%", display: "flex", padding: "10px", "box-sizing": "border-box", "justify-content": "center", "border-top": "1px solid #dcdfe6" } }, Hl = {
2009
+ }, zl = ["textContent"], Rl = { style: { width: "100%", display: "flex", padding: "10px", "box-sizing": "border-box", "justify-content": "center", "border-top": "1px solid #dcdfe6" } }, jl = {
2010
2010
  __name: "check-excel-item",
2011
2011
  props: {
2012
2012
  items: Array,
@@ -2014,43 +2014,43 @@ const wt = /* @__PURE__ */ gl(bl), Rt = {
2014
2014
  },
2015
2015
  emits: ["excel"],
2016
2016
  setup(f, { emit: s }) {
2017
- const r = f, l = s, e = re(r.items), i = () => {
2018
- e.value.forEach((S) => {
2019
- S.value = !0;
2017
+ const o = f, l = s, e = re(o.items), i = () => {
2018
+ e.value.forEach((V) => {
2019
+ V.value = !0;
2020
2020
  });
2021
2021
  }, M = () => {
2022
- e.value.forEach((S) => {
2023
- S.value = !1;
2022
+ e.value.forEach((V) => {
2023
+ V.value = !1;
2024
2024
  });
2025
- }, U = () => {
2026
- l("excel", e.value, (S, E = "excel.xls") => {
2027
- if (!S) {
2025
+ }, Y = () => {
2026
+ l("excel", e.value, (V, _ = "excel.xls") => {
2027
+ if (!V) {
2028
2028
  console.error("下载链接无效");
2029
2029
  return;
2030
2030
  }
2031
2031
  try {
2032
2032
  const k = document.createElement("a");
2033
- k.href = S, k.download = E, k.style.display = "none", document.body.appendChild(k), k.click(), document.body.removeChild(k);
2033
+ k.href = V, k.download = _, k.style.display = "none", document.body.appendChild(k), k.click(), document.body.removeChild(k);
2034
2034
  } catch (k) {
2035
2035
  console.error("下载文件时出现错误:", k);
2036
2036
  }
2037
2037
  });
2038
2038
  };
2039
2039
  return ot(() => {
2040
- const S = new Ut(document.getElementById("excelSortEl"), {
2040
+ const V = new Ut(document.getElementById("excelSortEl"), {
2041
2041
  animation: 150,
2042
2042
  onEnd: () => {
2043
- S.toArray();
2043
+ V.toArray();
2044
2044
  }
2045
- }), E = S;
2045
+ }), _ = V;
2046
2046
  Jt(() => {
2047
- E && E.destroy();
2047
+ _ && _.destroy();
2048
2048
  });
2049
- }), (S, E) => {
2050
- const k = A("el-divider"), R = A("el-alert"), te = A("el-checkbox"), se = A("el-button");
2051
- return u(), q("div", Yl, [
2052
- H("div", Ul, [
2053
- H("div", Ll, [
2049
+ }), (V, _) => {
2050
+ const k = I("el-divider"), L = I("el-alert"), te = I("el-checkbox"), ie = I("el-button");
2051
+ return u(), q("div", Bl, [
2052
+ H("div", Yl, [
2053
+ H("div", Ul, [
2054
2054
  H("a", {
2055
2055
  onClick: i,
2056
2056
  style: { cursor: "pointer" }
@@ -2061,16 +2061,16 @@ const wt = /* @__PURE__ */ gl(bl), Rt = {
2061
2061
  style: { cursor: "pointer" }
2062
2062
  }, "全不选")
2063
2063
  ]),
2064
- G(R, {
2064
+ G(L, {
2065
2065
  title: "拖动列标题可以改变表格列的生成顺序 !",
2066
2066
  type: "warning",
2067
2067
  "show-icon": "",
2068
2068
  closable: !1,
2069
2069
  style: { "margin-bottom": "10px" }
2070
2070
  }),
2071
- E[0] || (E[0] = H("div", { style: { margin: "1px 0" } }, null, -1)),
2072
- H("div", Rl, [
2073
- (u(!0), q(X, null, L(e.value, (T) => (u(), V(te, {
2071
+ _[0] || (_[0] = H("div", { style: { margin: "1px 0" } }, null, -1)),
2072
+ H("div", Ll, [
2073
+ (u(!0), q(X, null, R(e.value, (T) => (u(), S(te, {
2074
2074
  class: "check-box-hover",
2075
2075
  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" },
2076
2076
  "data-id": T.key,
@@ -2089,15 +2089,15 @@ const wt = /* @__PURE__ */ gl(bl), Rt = {
2089
2089
  }, 1032, ["data-id", "modelValue", "onUpdate:modelValue", "title"]))), 128))
2090
2090
  ])
2091
2091
  ]),
2092
- H("div", jl, [
2093
- G(se, {
2092
+ H("div", Rl, [
2093
+ G(ie, {
2094
2094
  type: "primary",
2095
- onClick: U,
2096
- icon: Y(Yt),
2095
+ onClick: Y,
2096
+ icon: U(Yt),
2097
2097
  disabled: e.value.filter((T) => T.value).length < 1
2098
2098
  }, {
2099
2099
  default: b(() => [
2100
- Ae(Ce(r.commitText), 1)
2100
+ Be(Ce(o.commitText), 1)
2101
2101
  ]),
2102
2102
  _: 1
2103
2103
  }, 8, ["icon", "disabled"])
@@ -2105,57 +2105,57 @@ const wt = /* @__PURE__ */ gl(bl), Rt = {
2105
2105
  ]);
2106
2106
  };
2107
2107
  }
2108
- }, Pl = /* @__PURE__ */ Ze(Hl, [["__scopeId", "data-v-630c4ced"]]), je = new vl("gyc");
2109
- je.version(1).stores({
2108
+ }, Hl = /* @__PURE__ */ Ze(jl, [["__scopeId", "data-v-630c4ced"]]), He = new vl("gyc");
2109
+ He.version(1).stores({
2110
2110
  //记录表格项设置信息
2111
2111
  tableInfo: "++id,[page+key],page,key,showCol,width,sort",
2112
2112
  //记录表格分页条数
2113
2113
  pagesize: "++id,page,size"
2114
2114
  });
2115
- async function gt(f, s, r = {}) {
2116
- if (await je.tableInfo.where({ page: f, key: s }).count() > 0) {
2117
- let e = await je.tableInfo.where({ page: f, key: s }).first();
2118
- return await je.tableInfo.put({ ...e, ...r }), "update success";
2115
+ async function gt(f, s, o = {}) {
2116
+ if (await He.tableInfo.where({ page: f, key: s }).count() > 0) {
2117
+ let e = await He.tableInfo.where({ page: f, key: s }).first();
2118
+ return await He.tableInfo.put({ ...e, ...o }), "update success";
2119
2119
  } else {
2120
- let e = { showCol: !0, width: "auto", sort: 0, ...r };
2121
- return await je.tableInfo.add({ page: f, key: s, ...e }), "add success";
2120
+ let e = { showCol: !0, width: "auto", sort: 0, ...o };
2121
+ return await He.tableInfo.add({ page: f, key: s, ...e }), "add success";
2122
2122
  }
2123
2123
  }
2124
- async function Tt(f, s, r = {}) {
2124
+ async function Tt(f, s, o = {}) {
2125
2125
  const l = s.map(
2126
- (e) => gt(f, e.value, { ...e, ...r })
2126
+ (e) => gt(f, e.value, { ...e, ...o })
2127
2127
  );
2128
2128
  return await Promise.all(l), "batch update success";
2129
2129
  }
2130
- async function Nl(f) {
2131
- return await je.tableInfo.where({ page: f }).toArray();
2130
+ async function Pl(f) {
2131
+ return await He.tableInfo.where({ page: f }).toArray();
2132
2132
  }
2133
- async function Wl(f) {
2133
+ async function Nl(f) {
2134
2134
  try {
2135
- const s = await je.tableInfo.where({ page: f }).delete();
2135
+ const s = await He.tableInfo.where({ page: f }).delete();
2136
2136
  return console.log("删除了" + s + "条数据"), s;
2137
2137
  } catch (s) {
2138
2138
  throw console.error("删除表格项设置信息时出错:", s), s;
2139
2139
  }
2140
2140
  }
2141
- async function Xl(f, s) {
2142
- if (await je.pagesize.where({ page: f }).count() > 0) {
2143
- let l = await je.pagesize.where({ page: f }).first();
2144
- return await je.pagesize.put({ ...l, size: s }), "update success";
2141
+ async function Wl(f, s) {
2142
+ if (await He.pagesize.where({ page: f }).count() > 0) {
2143
+ let l = await He.pagesize.where({ page: f }).first();
2144
+ return await He.pagesize.put({ ...l, size: s }), "update success";
2145
2145
  } else
2146
- return await je.pagesize.add({ page: f, size: s }), "add success";
2146
+ return await He.pagesize.add({ page: f, size: s }), "add success";
2147
2147
  }
2148
- async function Gl(f) {
2149
- let s = await je.pagesize.where({ page: f }).first();
2148
+ async function Xl(f) {
2149
+ let s = await He.pagesize.where({ page: f }).first();
2150
2150
  return (s == null ? void 0 : s.size) || 20;
2151
2151
  }
2152
- const Ql = {
2152
+ const Gl = {
2153
2153
  style: { margin: "10px" },
2154
2154
  class: "allcheck"
2155
- }, Zl = {
2155
+ }, Ql = {
2156
2156
  id: "cols",
2157
2157
  style: { display: "flex", "flex-wrap": "wrap", margin: "0 !important", padding: "0 !important" }
2158
- }, Jl = ["textContent"], Kl = {
2158
+ }, Zl = ["textContent"], Jl = {
2159
2159
  __name: "columns-setting",
2160
2160
  props: /* @__PURE__ */ Ge({
2161
2161
  tuid: {
@@ -2168,30 +2168,30 @@ const Ql = {
2168
2168
  }),
2169
2169
  emits: ["update:modelValue"],
2170
2170
  setup(f) {
2171
- const s = f, r = re([]), l = Qe(f, "modelValue"), e = async (E, k) => {
2172
- E ? l.value[k].showCol = !0 : l.value[k].showCol = !1;
2171
+ const s = f, o = re([]), l = Qe(f, "modelValue"), e = async (_, k) => {
2172
+ _ ? l.value[k].showCol = !0 : l.value[k].showCol = !1;
2173
2173
  try {
2174
- await gt(s.tuid, k, { showCol: E });
2175
- } catch (R) {
2176
- console.error("列显示状态保存信息时出错:", R), Xe({
2174
+ await gt(s.tuid, k, { showCol: _ });
2175
+ } catch (L) {
2176
+ console.error("列显示状态保存信息时出错:", L), Xe({
2177
2177
  type: "error",
2178
2178
  message: "列显示状态保存信息失败!"
2179
2179
  });
2180
2180
  }
2181
2181
  }, i = () => {
2182
- const E = document.getElementById("cols");
2183
- if (E) {
2184
- let k = Ut.create(E, {
2182
+ const _ = document.getElementById("cols");
2183
+ if (_) {
2184
+ let k = Ut.create(_, {
2185
2185
  animation: 150,
2186
2186
  filter: ".filtered",
2187
2187
  //
2188
2188
  sort: !0,
2189
2189
  onEnd: () => {
2190
- k.toArray().forEach(async (te, se) => {
2191
- l.value[te].sort = se;
2190
+ k.toArray().forEach(async (te, ie) => {
2191
+ l.value[te].sort = ie;
2192
2192
  let T = l.value[te].width || "auto";
2193
2193
  try {
2194
- await gt(s.tuid, te, { sort: se, width: T });
2194
+ await gt(s.tuid, te, { sort: ie, width: T });
2195
2195
  } catch (Q) {
2196
2196
  console.error("列排序和宽度保存信息时出错:", Q), Xe({
2197
2197
  type: "error",
@@ -2204,36 +2204,36 @@ const Ql = {
2204
2204
  }
2205
2205
  }, M = async () => {
2206
2206
  try {
2207
- const E = r.value.map((k) => (k.showCol = !0, l.value[k.value].showCol = !0, k));
2208
- await Tt(s.tuid, E, { showCol: !0 });
2209
- } catch (E) {
2210
- console.error("全选列保存信息时出错:", E), Xe({
2207
+ const _ = o.value.map((k) => (k.showCol = !0, l.value[k.value].showCol = !0, k));
2208
+ await Tt(s.tuid, _, { showCol: !0 });
2209
+ } catch (_) {
2210
+ console.error("全选列保存信息时出错:", _), Xe({
2211
2211
  type: "error",
2212
2212
  message: "全选列保存信息失败!"
2213
2213
  });
2214
2214
  }
2215
- }, U = async () => {
2215
+ }, Y = async () => {
2216
2216
  try {
2217
- const E = r.value.filter((k) => !k.alwaysShow && k.value != "control");
2218
- E.forEach((k) => {
2217
+ const _ = o.value.filter((k) => !k.alwaysShow && k.value != "control");
2218
+ _.forEach((k) => {
2219
2219
  k.showCol = !1, l.value[k.value].showCol = !1;
2220
- }), await Tt(s.tuid, E, { showCol: !1 });
2221
- } catch (E) {
2222
- console.error("清除列保存信息时出错:", E), Xe({
2220
+ }), await Tt(s.tuid, _, { showCol: !1 });
2221
+ } catch (_) {
2222
+ console.error("清除列保存信息时出错:", _), Xe({
2223
2223
  type: "error",
2224
2224
  message: "清除列保存信息失败!"
2225
2225
  });
2226
2226
  }
2227
- }, S = () => {
2227
+ }, V = () => {
2228
2228
  Ft.confirm("确定要复位吗?", "提示", {
2229
2229
  confirmButtonText: "确定",
2230
2230
  cancelButtonText: "取消",
2231
2231
  type: "warning"
2232
2232
  }).then(() => {
2233
- Wl(s.tuid).then((E) => {
2233
+ Nl(s.tuid).then((_) => {
2234
2234
  window.location.reload();
2235
- }).catch((E) => {
2236
- console.error("复位操作出错:", E), Xe({
2235
+ }).catch((_) => {
2236
+ console.error("复位操作出错:", _), Xe({
2237
2237
  type: "info",
2238
2238
  message: "复位失败!"
2239
2239
  });
@@ -2241,23 +2241,23 @@ const Ql = {
2241
2241
  });
2242
2242
  };
2243
2243
  return ot(async () => {
2244
- r.value = Object.entries(l.value).filter(([, E]) => E.visible !== !1).filter(([, E]) => E.type != "hidden").map(([E, k]) => ({
2244
+ o.value = Object.entries(l.value).filter(([, _]) => _.visible !== !1).filter(([, _]) => _.type != "hidden").map(([_, k]) => ({
2245
2245
  label: k.label,
2246
- value: E,
2246
+ value: _,
2247
2247
  alwaysShow: k.alwaysShow,
2248
2248
  showCol: k.showCol !== !1,
2249
2249
  sort: k.sort || 0,
2250
2250
  width: k.width || "auto"
2251
- })).sort((E, k) => E.sort - k.sort), i();
2252
- }), (E, k) => {
2253
- const R = A("el-divider"), te = A("el-alert"), se = A("el-checkbox");
2251
+ })).sort((_, k) => _.sort - k.sort), i();
2252
+ }), (_, k) => {
2253
+ const L = I("el-divider"), te = I("el-alert"), ie = I("el-checkbox");
2254
2254
  return u(), q("div", null, [
2255
- H("div", Ql, [
2255
+ H("div", Gl, [
2256
2256
  H("a", { onClick: M }, "全选"),
2257
- G(R, { direction: "vertical" }),
2258
- H("a", { onClick: U }, "全不选"),
2259
- G(R, { direction: "vertical" }),
2260
- H("a", { onClick: S }, "复位")
2257
+ G(L, { direction: "vertical" }),
2258
+ H("a", { onClick: Y }, "全不选"),
2259
+ G(L, { direction: "vertical" }),
2260
+ H("a", { onClick: V }, "复位")
2261
2261
  ]),
2262
2262
  G(te, {
2263
2263
  title: "拖动表格列标题可以改变表格列显示顺序 !",
@@ -2267,8 +2267,8 @@ const Ql = {
2267
2267
  style: { "margin-bottom": "10px" }
2268
2268
  }),
2269
2269
  H("div", null, [
2270
- H("div", Zl, [
2271
- (u(!0), q(X, null, L(r.value, (T) => (u(), V(se, {
2270
+ H("div", Ql, [
2271
+ (u(!0), q(X, null, R(o.value, (T) => (u(), S(ie, {
2272
2272
  modelValue: T.showCol,
2273
2273
  "onUpdate:modelValue": (Q) => T.showCol = Q,
2274
2274
  "data-id": T.value,
@@ -2284,7 +2284,7 @@ const Ql = {
2284
2284
  H("span", {
2285
2285
  textContent: Ce(T.label),
2286
2286
  style: { display: "block", "text-overflow": "ellipsis", width: "95px", overflow: "hidden" }
2287
- }, null, 8, Jl)
2287
+ }, null, 8, Zl)
2288
2288
  ]),
2289
2289
  _: 2
2290
2290
  }, 1032, ["modelValue", "onUpdate:modelValue", "data-id", "class", "onChange", "value", "title", "disabled"]))), 128))
@@ -2293,7 +2293,7 @@ const Ql = {
2293
2293
  ]);
2294
2294
  };
2295
2295
  }
2296
- }, ea = /* @__PURE__ */ Ze(Kl, [["__scopeId", "data-v-70fe569f"]]), ta = { class: "title" }, la = { class: "content" }, aa = {
2296
+ }, Kl = /* @__PURE__ */ Ze(Jl, [["__scopeId", "data-v-70fe569f"]]), ea = { class: "title" }, ta = { class: "content" }, la = {
2297
2297
  __name: "g-cell-toopTip",
2298
2298
  props: {
2299
2299
  content: {
@@ -2306,33 +2306,33 @@ const Ql = {
2306
2306
  }
2307
2307
  },
2308
2308
  setup(f) {
2309
- const s = f, r = () => {
2309
+ const s = f, o = () => {
2310
2310
  s.content ? (navigator.clipboard.writeText(s.content), Xe.success("复制成功")) : Xe.warning("没有内容可复制");
2311
2311
  };
2312
2312
  return (l, e) => (u(), q("div", {
2313
2313
  class: "g-cell-toopTip",
2314
2314
  style: Oe({ width: s.column.width + "px" })
2315
2315
  }, [
2316
- H("div", ta, [
2316
+ H("div", ea, [
2317
2317
  e[0] || (e[0] = H("span", { class: "title-text" }, "内容", -1)),
2318
2318
  H("span", {
2319
2319
  class: "copy-btn",
2320
- onClick: r,
2320
+ onClick: o,
2321
2321
  title: "复制内容"
2322
2322
  }, [
2323
- G(Y(sl))
2323
+ G(U(sl))
2324
2324
  ])
2325
2325
  ]),
2326
- H("div", la, Ce(s.content), 1)
2326
+ H("div", ta, Ce(s.content), 1)
2327
2327
  ], 4));
2328
2328
  }
2329
- }, ra = /* @__PURE__ */ Ze(aa, [["__scopeId", "data-v-f28912da"]]), oa = { key: 0 }, ua = { style: { display: "flex", "margin-top": "-2px" } }, na = { style: { display: "flex", flex: "1" } }, sa = {
2329
+ }, aa = /* @__PURE__ */ Ze(la, [["__scopeId", "data-v-f28912da"]]), ra = { key: 0 }, oa = { style: { display: "flex", "margin-top": "-2px" } }, ua = { style: { display: "flex", flex: "1" } }, na = {
2330
2330
  style: { display: "flex", "justify-content": "center", width: "100%", height: "100%" },
2331
2331
  id: "table-form"
2332
- }, ia = { key: 1 }, da = { style: { display: "flex" } }, ca = { style: { display: "flex", flex: "1" } }, fa = { class: "g-table-container" }, pa = {
2332
+ }, sa = { key: 1 }, ia = { style: { display: "flex" } }, da = { style: { display: "flex", flex: "1" } }, ca = { class: "g-table-container" }, fa = {
2333
2333
  key: 0,
2334
2334
  class: "table-query-container"
2335
- }, ma = { class: "table-container" }, va = ["innerHTML"], ha = /* @__PURE__ */ Object.assign({
2335
+ }, ma = { class: "table-container" }, pa = ["innerHTML"], va = /* @__PURE__ */ Object.assign({
2336
2336
  name: "g-table",
2337
2337
  inheritAttrs: !1
2338
2338
  }, {
@@ -2353,11 +2353,11 @@ const Ql = {
2353
2353
  "download",
2354
2354
  "row-save"
2355
2355
  ], ["update:modelValue"]),
2356
- setup(f, { expose: s, emit: r }) {
2356
+ setup(f, { expose: s, emit: o }) {
2357
2357
  var ut, nt, st, it, dt, ct, ft;
2358
- const l = r, e = Qe(f, "modelValue"), i = Mt("options"), M = re({}), U = re(null), S = re(null), E = Object.entries(e.value).filter(([t, o]) => (o == null ? void 0 : o.search) !== void 0).map(([t, o]) => [t, o.value]);
2359
- M.value = Object.fromEntries(E);
2360
- const k = re(!1), R = [
2358
+ const l = o, e = Qe(f, "modelValue"), i = Mt("options"), M = re({}), Y = re(null), V = re(null), _ = Object.entries(e.value).filter(([t, r]) => (r == null ? void 0 : r.search) !== void 0).map(([t, r]) => [t, r.value]);
2359
+ M.value = Object.fromEntries(_);
2360
+ const k = re(!1), L = [
2361
2361
  "type",
2362
2362
  "index",
2363
2363
  "label",
@@ -2386,7 +2386,7 @@ const Ql = {
2386
2386
  "filter-multiple",
2387
2387
  "filter-method",
2388
2388
  "filtered-value"
2389
- ], te = re([]), se = f, T = Vt(), Q = re({}), fe = re([]), N = re(null), pe = re(""), de = re("/"), De = re({
2389
+ ], te = re([]), ie = f, T = St(), Q = re({}), fe = re([]), N = re(null), me = re(""), ce = re("/"), Me = re({
2390
2390
  autoWatch: !1,
2391
2391
  data: [],
2392
2392
  border: !0,
@@ -2395,13 +2395,13 @@ const Ql = {
2395
2395
  fit: !1,
2396
2396
  type: "hidden",
2397
2397
  load: async () => {
2398
- e.value.table.page.pageSize = await Gl(de.value);
2399
- let { currentPage: t, pageSize: o } = e.value.table.page;
2398
+ e.value.table.page.pageSize = await Xl(ce.value);
2399
+ let { currentPage: t, pageSize: r } = e.value.table.page;
2400
2400
  try {
2401
2401
  l(
2402
2402
  "load",
2403
- { currentPage: t, pageSize: o, ...M.value },
2404
- (n = [], y = 0, { fields: x = [], sums: I = {} } = {}) => {
2403
+ { currentPage: t, pageSize: r, ...M.value },
2404
+ (n = [], y = 0, { fields: F = [], sums: A = {} } = {}) => {
2405
2405
  var z;
2406
2406
  if (!Array.isArray(n)) {
2407
2407
  console.error("从 load 事件回调中接收到的数据不是数组格式。"), Xe.error("数据加载失败,请检查数据格式。");
@@ -2411,7 +2411,7 @@ const Ql = {
2411
2411
  console.error("从 load 事件回调中接收到的 total 不是数字格式。"), Xe.error("数据加载失败,请检查数据格式。");
2412
2412
  return;
2413
2413
  }
2414
- e.value.table.data = n, ((z = e.value.control) == null ? void 0 : z.add(e).inline) === !0 && e.value.table.data.unshift(N.value), e.value.table.page.total = y, fe.value = x, Q.value = I, $e(), pe.value = Math.random().toString(36).substring(2);
2414
+ e.value.table.data = n, ((z = e.value.control) == null ? void 0 : z.add(e).inline) === !0 && e.value.table.data.unshift(N.value), e.value.table.page.total = y, fe.value = F, Q.value = A, we(), me.value = Math.random().toString(36).substring(2);
2415
2415
  },
2416
2416
  N.value
2417
2417
  );
@@ -2419,13 +2419,13 @@ const Ql = {
2419
2419
  console.error("触发 load 事件时出现错误:", n), Xe.error("数据加载时出现错误,请稍后重试。");
2420
2420
  }
2421
2421
  },
2422
- onHeaderDragend: (t, o, n) => {
2423
- gt(de.value, n.property, {
2422
+ onHeaderDragend: (t, r, n) => {
2423
+ gt(ce.value, n.property, {
2424
2424
  width: t
2425
2425
  });
2426
2426
  },
2427
- onRowDblclick: (t, o, n) => {
2428
- e.value.table.dblclickType == "edit" ? p(t, o, n, e) : e.value.table.dblclickType == "view" ? D(t, o, n, e) : e.value.table.dblclickType == "delete" ? a(t, o, n, e) : e.value.table.dblclickType(t, o, n, e);
2427
+ onRowDblclick: (t, r, n) => {
2428
+ e.value.table.dblclickType == "edit" ? m(t, r, n, e) : e.value.table.dblclickType == "view" ? D(t, r, n, e) : e.value.table.dblclickType == "delete" ? a(t, r, n, e) : e.value.table.dblclickType(t, r, n, e);
2429
2429
  },
2430
2430
  style: { "min-height": "100px", backgroundColor: "var(--el-bg-color)" },
2431
2431
  page: {
@@ -2445,24 +2445,24 @@ const Ql = {
2445
2445
  e.value.table.page.currentPage = t, e.value.table.load();
2446
2446
  },
2447
2447
  onSizeChange: (t) => {
2448
- Xl(de.value, t).then(() => {
2448
+ Wl(ce.value, t).then(() => {
2449
2449
  e.value.table.page.pageSize = t, e.value.table.load();
2450
2450
  });
2451
2451
  }
2452
2452
  },
2453
2453
  dblclickType: "edit",
2454
- "summary-method": ({ columns: t, data: o }, n) => n,
2455
- onSortChange: ({ column: t, prop: o, order: n }, y) => {
2454
+ "summary-method": ({ columns: t, data: r }, n) => n,
2455
+ onSortChange: ({ column: t, prop: r, order: n }, y) => {
2456
2456
  }
2457
2457
  });
2458
- e.value.table = Fe(
2459
- De.value,
2458
+ e.value.table = qe(
2459
+ Me.value,
2460
2460
  i == null ? void 0 : i.table,
2461
2461
  e.value.table,
2462
2462
  T
2463
2463
  // 继承父组件的属性
2464
2464
  );
2465
- const ie = {
2465
+ const de = {
2466
2466
  type: "control",
2467
2467
  label: "操作",
2468
2468
  align: "center",
@@ -2471,36 +2471,36 @@ const Ql = {
2471
2471
  fixed: "right",
2472
2472
  style: { ...(nt = (ut = e.value) == null ? void 0 : ut.control) == null ? void 0 : nt.style },
2473
2473
  validate: async (t) => await !0,
2474
- view: (t, o, n, y) => ({
2474
+ view: (t, r, n, y) => ({
2475
2475
  label: "查看",
2476
2476
  text: !0,
2477
2477
  type: "success",
2478
2478
  mode: "dialog",
2479
- icon: () => _e(il),
2479
+ icon: () => Ee(il),
2480
2480
  auth: () => {
2481
- var x;
2482
- return !(((x = y == null ? void 0 : y.control) == null ? void 0 : x.add(y).inline) === !0 && n === 0);
2481
+ var F;
2482
+ return !(((F = y == null ? void 0 : y.control) == null ? void 0 : F.add(y).inline) === !0 && n === 0);
2483
2483
  }
2484
2484
  }),
2485
- edit: (t, o, n, y) => ({
2485
+ edit: (t, r, n, y) => ({
2486
2486
  label: "编辑",
2487
2487
  text: !0,
2488
2488
  type: "primary",
2489
2489
  mode: "dialog",
2490
- icon: () => _e(dl),
2490
+ icon: () => Ee(dl),
2491
2491
  auth: () => {
2492
- var x;
2493
- return ((x = y == null ? void 0 : y.control) == null ? void 0 : x.add(y).inline) !== !0;
2492
+ var F;
2493
+ return ((F = y == null ? void 0 : y.control) == null ? void 0 : F.add(y).inline) !== !0;
2494
2494
  }
2495
2495
  }),
2496
- delete: (t, o, n, y) => ({
2496
+ delete: (t, r, n, y) => ({
2497
2497
  text: !0,
2498
2498
  label: "删除",
2499
2499
  type: "danger",
2500
- icon: () => _e(Bt),
2500
+ icon: () => Ee(Bt),
2501
2501
  auth: () => {
2502
- var x;
2503
- return !(((x = y.control) == null ? void 0 : x.add(y).inline) === !0 && n === 0);
2502
+ var F;
2503
+ return !(((F = y.control) == null ? void 0 : F.add(y).inline) === !0 && n === 0);
2504
2504
  },
2505
2505
  dialog: {
2506
2506
  message: "此操作将永久删除该文件, 是否继续?",
@@ -2512,15 +2512,15 @@ const Ql = {
2512
2512
  }
2513
2513
  }
2514
2514
  }),
2515
- save: (t, o, n, y) => ({
2515
+ save: (t, r, n, y) => ({
2516
2516
  label: y.control.add(y).inline !== !0 ? "保存" : n === 0 ? "新增" : "保存",
2517
2517
  text: !0,
2518
- icon: () => _e(It),
2518
+ icon: () => Ee(At),
2519
2519
  type: y.control.add(y).inline !== !0 || n === 0 ? "primary" : "success",
2520
2520
  sort: -1,
2521
2521
  auth: () => {
2522
- var x;
2523
- return ((x = y.control) == null ? void 0 : x.add(y).inline) === !0;
2522
+ var F;
2523
+ return ((F = y.control) == null ? void 0 : F.add(y).inline) === !0;
2524
2524
  }
2525
2525
  }),
2526
2526
  add: (t) => ({
@@ -2529,7 +2529,7 @@ const Ql = {
2529
2529
  type: "primary",
2530
2530
  mode: "dialog",
2531
2531
  inline: !1,
2532
- icon: () => _e(cl),
2532
+ icon: () => Ee(cl),
2533
2533
  auth: () => !0
2534
2534
  }),
2535
2535
  download: (t) => ({
@@ -2537,7 +2537,7 @@ const Ql = {
2537
2537
  text: !1,
2538
2538
  type: "primary",
2539
2539
  mode: "dialog",
2540
- icon: () => _e(Yt),
2540
+ icon: () => Ee(Yt),
2541
2541
  excelLabel: "下载EXCEL",
2542
2542
  auth: () => !0
2543
2543
  }),
@@ -2546,10 +2546,10 @@ const Ql = {
2546
2546
  text: !1,
2547
2547
  type: "primary",
2548
2548
  mode: "dialog",
2549
- icon: () => _e(fl),
2549
+ icon: () => Ee(fl),
2550
2550
  auth: () => !0
2551
2551
  }),
2552
- dropdown: (t, o, n, y) => ({
2552
+ dropdown: (t, r, n, y) => ({
2553
2553
  label: "编辑",
2554
2554
  operate: "edit",
2555
2555
  "split-button": !0,
@@ -2557,52 +2557,52 @@ const Ql = {
2557
2557
  size: "small",
2558
2558
  auth: () => !(y.control.add(y).inline === !0 && n == 0),
2559
2559
  onClick: () => {
2560
- var I;
2561
- let x = (I = he(t, o, n, y)) == null ? void 0 : I.operate;
2562
- x === "edit" ? p(t, o, n, y) : x === "delete" ? a(t, o, n, y) : x === "view" && D(t, o, n, y);
2560
+ var A;
2561
+ let F = (A = ye(t, r, n, y)) == null ? void 0 : A.operate;
2562
+ F === "edit" ? m(t, r, n, y) : F === "delete" ? a(t, r, n, y) : F === "view" && D(t, r, n, y);
2563
2563
  },
2564
2564
  "button-props": { round: !0, plain: !0 }
2565
2565
  })
2566
2566
  };
2567
- e.value.control = Fe(
2568
- ie,
2567
+ e.value.control = qe(
2568
+ de,
2569
2569
  i == null ? void 0 : i.control,
2570
2570
  (st = e.value) == null ? void 0 : st.control
2571
2571
  );
2572
- const ue = (t, o = !0) => {
2573
- const n = e.value.control[t], y = o ? (x, I, z, ce) => {
2574
- var He, Le, Je;
2575
- if (!x || !I || z == null)
2572
+ const ue = (t, r = !0) => {
2573
+ const n = e.value.control[t], y = r ? (F, A, z, se) => {
2574
+ var Le, ze, Je;
2575
+ if (!F || !A || z == null)
2576
2576
  return console.warn(`merge${t.charAt(0).toUpperCase() + t.slice(1)}: 缺少必要的参数(row, column或index)`), {};
2577
- const Ee = ((He = ie[t]) == null ? void 0 : He.call(ie, x, I, z, ce)) || {}, Te = ((Je = (Le = i == null ? void 0 : i.control) == null ? void 0 : Le[t]) == null ? void 0 : Je.call(Le, x, I, z, ce)) || {}, Ye = (n == null ? void 0 : n(x, I, z, ce)) || {};
2578
- return Fe(Ee, Te, Ye) || {};
2579
- } : (x) => {
2580
- var Ee, Te, Ye;
2581
- const I = ((Ee = ie[t]) == null ? void 0 : Ee.call(ie, x)) || {}, z = ((Ye = (Te = i == null ? void 0 : i.control) == null ? void 0 : Te[t]) == null ? void 0 : Ye.call(Te, x)) || {}, ce = (n == null ? void 0 : n(x)) || {};
2582
- return Fe(I, z, ce) || {};
2577
+ const pe = ((Le = de[t]) == null ? void 0 : Le.call(de, F, A, z, se)) || {}, Se = ((Je = (ze = i == null ? void 0 : i.control) == null ? void 0 : ze[t]) == null ? void 0 : Je.call(ze, F, A, z, se)) || {}, ke = (n == null ? void 0 : n(F, A, z, se)) || {};
2578
+ return qe(pe, Se, ke) || {};
2579
+ } : (F) => {
2580
+ var pe, Se, ke;
2581
+ const A = ((pe = de[t]) == null ? void 0 : pe.call(de, F)) || {}, z = ((ke = (Se = i == null ? void 0 : i.control) == null ? void 0 : Se[t]) == null ? void 0 : ke.call(Se, F)) || {}, se = (n == null ? void 0 : n(F)) || {};
2582
+ return qe(A, z, se) || {};
2583
2583
  };
2584
2584
  e.value.control[t] = y;
2585
2585
  };
2586
2586
  ue("edit"), ue("delete"), ue("view"), ue("save"), ue("add", !1), ue("download", !1), ue("setting", !1);
2587
- const he = (t, o, n, y) => {
2588
- var ce, Ee, Te, Ye, He, Le;
2589
- if (!t || !o || n == null)
2587
+ const ye = (t, r, n, y) => {
2588
+ var se, pe, Se, ke, Le, ze;
2589
+ if (!t || !r || n == null)
2590
2590
  return console.warn("mergeDropdown: 缺少必要的参数(row, column或index)"), {};
2591
- const x = ((ce = ie.dropdown) == null ? void 0 : ce.call(ie, t, o, n, y)) || {}, I = ((Te = (Ee = i == null ? void 0 : i.control) == null ? void 0 : Ee.dropdown) == null ? void 0 : Te.call(Ee, t, o, n, y)) || {}, z = ((Le = (He = (Ye = e.value) == null ? void 0 : Ye.control) == null ? void 0 : He.dropdown) == null ? void 0 : Le.call(He, t, o, n, y)) || {};
2592
- return Fe(x, I, z) || {};
2593
- }, Ve = {
2591
+ const F = ((se = de.dropdown) == null ? void 0 : se.call(de, t, r, n, y)) || {}, A = ((Se = (pe = i == null ? void 0 : i.control) == null ? void 0 : pe.dropdown) == null ? void 0 : Se.call(pe, t, r, n, y)) || {}, z = ((ze = (Le = (ke = e.value) == null ? void 0 : ke.control) == null ? void 0 : Le.dropdown) == null ? void 0 : ze.call(Le, t, r, n, y)) || {};
2592
+ return qe(F, A, z) || {};
2593
+ }, Te = {
2594
2594
  type: "hidden",
2595
2595
  "min-width": 100,
2596
2596
  align: "center",
2597
- formatter: (t, o, n, y) => n,
2598
- "tooltip-formatter": ({ row: t, column: o, cellValue: n }) => _e(ra, { content: n, column: o })
2597
+ formatter: (t, r, n, y) => n,
2598
+ "tooltip-formatter": ({ row: t, column: r, cellValue: n }) => Ee(aa, { content: n, column: r })
2599
2599
  };
2600
- e.value.tableColumns = Fe(
2601
- Ve,
2600
+ e.value.tableColumns = qe(
2601
+ Te,
2602
2602
  i == null ? void 0 : i.tableColumns,
2603
2603
  (it = e.value) == null ? void 0 : it.tableColumns
2604
- ), e.value.form = Fe(
2605
- Rt,
2604
+ ), e.value.form = qe(
2605
+ zt,
2606
2606
  i == null ? void 0 : i.form,
2607
2607
  (dt = e.value) == null ? void 0 : dt.form
2608
2608
  );
@@ -2613,7 +2613,7 @@ const Ql = {
2613
2613
  width: "100%"
2614
2614
  }
2615
2615
  };
2616
- e.value.formItems = Fe(
2616
+ e.value.formItems = qe(
2617
2617
  le,
2618
2618
  i == null ? void 0 : i.formItems,
2619
2619
  (ct = e == null ? void 0 : e.value) == null ? void 0 : ct.formItems
@@ -2631,43 +2631,43 @@ const Ql = {
2631
2631
  overflow: !0,
2632
2632
  max: {
2633
2633
  style: {},
2634
- icon: () => _e(pl)
2634
+ icon: () => Ee(ml)
2635
2635
  },
2636
2636
  min: {
2637
2637
  style: {},
2638
- icon: () => _e(ml)
2638
+ icon: () => Ee(pl)
2639
2639
  // 最小化图标
2640
2640
  }
2641
2641
  };
2642
- e.value.dialog = Fe(
2642
+ e.value.dialog = qe(
2643
2643
  oe,
2644
2644
  i == null ? void 0 : i.dialog,
2645
2645
  (ft = e.value) == null ? void 0 : ft.dialog
2646
2646
  );
2647
- const ae = (t, o) => {
2648
- let n = o;
2649
- if (t.decimals && !isNaN(parseFloat(o)) && (typeof t.decimals == "number" ? n = parseFloat(n).toFixed(t.decimals) : typeof t.decimals == "object" && t.decimals.num && (t.decimals.pad ? n = parseFloat(n).toFixed(t.decimals.num) : n = parseFloat(
2647
+ const ae = (t, r) => {
2648
+ let n = r;
2649
+ if (t.decimals && !isNaN(parseFloat(r)) && (typeof t.decimals == "number" ? n = parseFloat(n).toFixed(t.decimals) : typeof t.decimals == "object" && t.decimals.num && (t.decimals.pad ? n = parseFloat(n).toFixed(t.decimals.num) : n = parseFloat(
2650
2650
  parseFloat(n).toFixed(t.decimals.num)
2651
- ).toString())), ["date", "datetime", "time", "time-select"].includes(t.type) && wt(o).isValid()) {
2652
- const x = {
2651
+ ).toString())), ["date", "datetime", "time", "time-select"].includes(t.type) && wt(r).isValid()) {
2652
+ const F = {
2653
2653
  date: "YYYY-MM-DD",
2654
2654
  datetime: "YYYY-MM-DD HH:mm:ss",
2655
2655
  time: "HH:mm:ss"
2656
2656
  };
2657
- n = t.format ? wt(n).format(t.format) : wt(n).format(x[t.type]);
2657
+ n = t.format ? wt(n).format(t.format) : wt(n).format(F[t.type]);
2658
2658
  }
2659
2659
  return t.type === "money" && (t.align = t.align || "right", t.width = t.width || 130, n = `<span title="${Dt(
2660
2660
  parseFloat(n)
2661
- )}">${xa(parseFloat(n))}</span>`), t.prefix && n && (n = `<span>${t.prefix}${n}</span>`), t.suffix && n && (n = `${n}<span>${t.suffix}</span>`), n;
2661
+ )}">${Ta(parseFloat(n))}</span>`), t.prefix && n && (n = `<span>${t.prefix}${n}</span>`), t.suffix && n && (n = `${n}<span>${t.suffix}</span>`), n;
2662
2662
  }, Ie = (t) => {
2663
- M.value = Object.fromEntries(E), e.value.table.load();
2663
+ M.value = Object.fromEntries(_), e.value.table.load();
2664
2664
  }, w = (t) => {
2665
2665
  M.value = t, e.value.table.load();
2666
- }, m = async (t) => {
2667
- var o, n;
2666
+ }, p = async (t) => {
2667
+ var r, n;
2668
2668
  e.value.form.modalState = "add";
2669
2669
  try {
2670
- if (!await ((o = e.value.control) == null ? void 0 : o.validate("add", { m: t }))) return;
2670
+ if (!await ((r = e.value.control) == null ? void 0 : r.validate("add", { m: t }))) return;
2671
2671
  } catch (y) {
2672
2672
  console.error("验证失败:", y);
2673
2673
  return;
@@ -2675,81 +2675,81 @@ const Ql = {
2675
2675
  (n = e.value.control.add(t)) != null && n.click ? e.value.control.add(t).click(t) : e.value.control.add(t).inline === !0 ? (e.value.table.data.unshift(N.value), l("open", "row-add", { initFormData: N.value })) : (e.value.form.disabled = !1, e.value.form.submit.hidden = !1, e.value.form.reset.hidden = !1, e.value.dialog.mode = e.value.control.add(t).mode, e.value.dialog.title = e.value.control.add(t).title || e.value.control.add(t).label || "新增", Object.keys(N.value).forEach((y) => {
2676
2676
  e.value[y] && (e.value[y].value = N.value[y]);
2677
2677
  }), k.value = !0, l("open", "add", { m: t }), ht());
2678
- }, p = async (t, o, n, y) => {
2679
- var x, I;
2678
+ }, m = async (t, r, n, y) => {
2679
+ var F, A;
2680
2680
  e.value.form.modalState = "edit";
2681
2681
  try {
2682
- if (!await ((x = e.value.control) == null ? void 0 : x.validate("edit", { row: t, column: o, index: n, m: y }))) return;
2682
+ if (!await ((F = e.value.control) == null ? void 0 : F.validate("edit", { row: t, column: r, index: n, m: y }))) return;
2683
2683
  } catch (z) {
2684
2684
  console.error("验证失败:", z);
2685
2685
  return;
2686
2686
  }
2687
- (I = e.value.control.edit(t, o, n, y)) != null && I.click ? e.value.control.edit(t, o, n, y).click(t, o, n, y) : (e.value.form.disabled = !1, e.value.form.submit.hidden = !1, e.value.form.reset.hidden = !1, e.value.dialog.mode = e.value.control.edit(t, o, n, y).mode, e.value.dialog.title = e.value.control.edit(t, o, n, y).title || e.value.control.edit(t, o, n, y).label || "编辑", Object.keys(t).forEach((z) => {
2687
+ (A = e.value.control.edit(t, r, n, y)) != null && A.click ? e.value.control.edit(t, r, n, y).click(t, r, n, y) : (e.value.form.disabled = !1, e.value.form.submit.hidden = !1, e.value.form.reset.hidden = !1, e.value.dialog.mode = e.value.control.edit(t, r, n, y).mode, e.value.dialog.title = e.value.control.edit(t, r, n, y).title || e.value.control.edit(t, r, n, y).label || "编辑", Object.keys(t).forEach((z) => {
2688
2688
  e.value[z] && (e.value[z].value = t[z]);
2689
- }), k.value = !0, l("open", "edit", { m: y, row: t, column: o, index: n }), ht());
2690
- }, a = async (t, o, n, y) => {
2691
- var x, I;
2689
+ }), k.value = !0, l("open", "edit", { m: y, row: t, column: r, index: n }), ht());
2690
+ }, a = async (t, r, n, y) => {
2691
+ var F, A;
2692
2692
  try {
2693
- if (!await ((x = e.value.control) == null ? void 0 : x.validate("delete", { row: t, column: o, index: n, m: y }))) return;
2693
+ if (!await ((F = e.value.control) == null ? void 0 : F.validate("delete", { row: t, column: r, index: n, m: y }))) return;
2694
2694
  } catch (z) {
2695
2695
  console.error("验证失败:", z);
2696
2696
  return;
2697
2697
  }
2698
- if ((I = e.value.control.delete(t, o, n, y)) != null && I.click)
2699
- e.value.control.delete(t, o, n, y).click(t, o, n, y);
2698
+ if ((A = e.value.control.delete(t, r, n, y)) != null && A.click)
2699
+ e.value.control.delete(t, r, n, y).click(t, r, n, y);
2700
2700
  else {
2701
- let { message: z, title: ce, options: Ee } = e.value.control.delete(t, o, n, y).dialog;
2702
- Ft.confirm(z, ce, Ee).then(() => {
2701
+ let { message: z, title: se, options: pe } = e.value.control.delete(t, r, n, y).dialog;
2702
+ Ft.confirm(z, se, pe).then(() => {
2703
2703
  l(
2704
2704
  "delete",
2705
- { row: t, column: o, index: n, m: y },
2706
- (Te = !0, Ye = !1) => {
2707
- Te && (e.value.table.data.splice(n, 1), e.value.table.page.total--), Ye && e.value.table.load();
2705
+ { row: t, column: r, index: n, m: y },
2706
+ (Se = !0, ke = !1) => {
2707
+ Se && (e.value.table.data.splice(n, 1), e.value.table.page.total--), ke && e.value.table.load();
2708
2708
  }
2709
2709
  );
2710
2710
  }).catch(() => {
2711
2711
  });
2712
2712
  }
2713
- }, D = async (t, o, n, y) => {
2714
- var x, I;
2713
+ }, D = async (t, r, n, y) => {
2714
+ var F, A;
2715
2715
  e.value.form.modalState = void 0;
2716
2716
  try {
2717
- if (!await ((x = e.value.control) == null ? void 0 : x.validate("view", { row: t, column: o, index: n, m: y }))) return;
2717
+ if (!await ((F = e.value.control) == null ? void 0 : F.validate("view", { row: t, column: r, index: n, m: y }))) return;
2718
2718
  } catch (z) {
2719
2719
  console.error("验证失败:", z);
2720
2720
  return;
2721
2721
  }
2722
- (I = e.value.control.view(t, o, n, y)) != null && I.click ? e.value.control.view(t, o, n, y).click(t, o, n, y) : (e.value.form.disabled = !0, e.value.form.submit.hidden = !0, e.value.form.reset.hidden = !0, e.value.dialog.mode = e.value.control.view(t, o, n, y).mode, e.value.dialog.title = e.value.control.view(t, o, n, y).title || e.value.control.view(t, o, n, y).label || "查看", Object.keys(t).forEach((z) => {
2722
+ (A = e.value.control.view(t, r, n, y)) != null && A.click ? e.value.control.view(t, r, n, y).click(t, r, n, y) : (e.value.form.disabled = !0, e.value.form.submit.hidden = !0, e.value.form.reset.hidden = !0, e.value.dialog.mode = e.value.control.view(t, r, n, y).mode, e.value.dialog.title = e.value.control.view(t, r, n, y).title || e.value.control.view(t, r, n, y).label || "查看", Object.keys(t).forEach((z) => {
2723
2723
  e.value[z] && (e.value[z].value = t[z]);
2724
- }), k.value = !0, l("open", "view", { m: y, row: t, column: o, index: n }), ht());
2725
- }, g = (t, o, n, y) => {
2726
- var x;
2727
- (x = e.value.control.save(t, o, n, y)) != null && x.click ? e.value.control.save(t, o, n, y).click(t, o, n, y) : l(
2724
+ }), k.value = !0, l("open", "view", { m: y, row: t, column: r, index: n }), ht());
2725
+ }, g = (t, r, n, y) => {
2726
+ var F;
2727
+ (F = e.value.control.save(t, r, n, y)) != null && F.click ? e.value.control.save(t, r, n, y).click(t, r, n, y) : l(
2728
2728
  "row-save",
2729
- { row: t, column: o, index: n, data: e.value.table.data },
2730
- (I = !0, z = !0) => {
2731
- I && e.value.table.load(), z && lt(() => {
2729
+ { row: t, column: r, index: n, data: e.value.table.data },
2730
+ (A = !0, z = !0) => {
2731
+ A && e.value.table.load(), z && lt(() => {
2732
2732
  N.value = Object.assign(
2733
2733
  {},
2734
2734
  Object.fromEntries(
2735
2735
  Object.entries(
2736
- Be(e.value, (ce, Ee) => Ee.type != "control" && Ee.editor !== !1 && Ee.type != "hidden")
2737
- ).map(([ce, Ee]) => [ce, Ee.value])
2736
+ Ye(e.value, (se, pe) => pe.type != "control" && pe.editor !== !1 && pe.type != "hidden")
2737
+ ).map(([se, pe]) => [se, pe.value])
2738
2738
  )
2739
2739
  );
2740
2740
  });
2741
2741
  }
2742
2742
  );
2743
- }, h = (t, o) => {
2744
- l("submit", e.value.form.modalState, t, o, (n) => {
2745
- n && (k.value = !1, o.table.load());
2743
+ }, h = (t, r) => {
2744
+ l("submit", e.value.form.modalState, t, r, (n) => {
2745
+ n && (k.value = !1, r.table.load());
2746
2746
  });
2747
2747
  }, O = (t) => {
2748
2748
  l("reset", t);
2749
- }, P = (t, o) => {
2749
+ }, P = (t, r) => {
2750
2750
  var n;
2751
2751
  if ((n = t.control.download(t)) != null && n.click)
2752
- t.control.download(t).click(t, o);
2752
+ t.control.download(t).click(t, r);
2753
2753
  else {
2754
2754
  let y = Ct(
2755
2755
  {
@@ -2757,11 +2757,11 @@ const Ql = {
2757
2757
  size: t.control.download(t).size || 480,
2758
2758
  width: t.control.download(t).width || 600,
2759
2759
  slots: {
2760
- default: () => _e(Pl, {
2761
- items: o,
2760
+ default: () => Ee(Hl, {
2761
+ items: r,
2762
2762
  commitText: t.control.download(t).excelLabel,
2763
- onExcel: (x, I) => {
2764
- l("download", x, M.value, I), y();
2763
+ onExcel: (F, A) => {
2764
+ l("download", F, M.value, A), y();
2765
2765
  }
2766
2766
  })
2767
2767
  }
@@ -2770,93 +2770,93 @@ const Ql = {
2770
2770
  );
2771
2771
  }
2772
2772
  }, J = (t) => {
2773
- var o;
2774
- (o = t.control.setting(t)) != null && o.click ? t.control.setting(t).click(t) : Ct(
2773
+ var r;
2774
+ (r = t.control.setting(t)) != null && r.click ? t.control.setting(t).click(t) : Ct(
2775
2775
  {
2776
2776
  title: t.control.setting(t).title || t.control.setting(t).label || "设置",
2777
2777
  size: t.control.setting(t).size || 470,
2778
2778
  width: t.control.setting(t).width || 600,
2779
2779
  slots: {
2780
- default: () => _e(ea, {
2780
+ default: () => Ee(Kl, {
2781
2781
  modelValue: t,
2782
- tuid: de.value
2782
+ tuid: ce.value
2783
2783
  })
2784
2784
  }
2785
2785
  },
2786
2786
  t.control.setting(t).mode
2787
2787
  );
2788
2788
  }, Z = e.value.control, v = [
2789
- { type: "add", func: m },
2789
+ { type: "add", func: p },
2790
2790
  { type: "download", func: P },
2791
2791
  { type: "setting", func: J },
2792
2792
  { type: "view", func: D },
2793
- { type: "edit", func: p },
2793
+ { type: "edit", func: m },
2794
2794
  { type: "delete", func: a },
2795
2795
  { type: "save", func: g }
2796
- ], c = (t, o, n, y, x) => v.filter((I) => t.includes(I.type)).map(({ type: I, func: z }) => {
2797
- var ce, Ee, Te;
2796
+ ], c = (t, r, n, y, F) => v.filter((A) => t.includes(A.type)).map(({ type: A, func: z }) => {
2797
+ var se, pe, Se;
2798
2798
  return {
2799
- name: `control-${I}`,
2800
- attr: Z == null ? void 0 : Z[I](o, n, y, x),
2799
+ name: `control-${A}`,
2800
+ attr: Z == null ? void 0 : Z[A](r, n, y, F),
2801
2801
  func: z,
2802
- label: (ce = Z == null ? void 0 : Z[I](o, n, y, x)) == null ? void 0 : ce.label,
2803
- sort: ((Ee = Z == null ? void 0 : Z[I](o, n, y, x)) == null ? void 0 : Ee.sort) || 0,
2804
- groupName: ((Te = Z == null ? void 0 : Z[I](o, n, y, x)) == null ? void 0 : Te.groupName) || "default"
2802
+ label: (se = Z == null ? void 0 : Z[A](r, n, y, F)) == null ? void 0 : se.label,
2803
+ sort: ((pe = Z == null ? void 0 : Z[A](r, n, y, F)) == null ? void 0 : pe.sort) || 0,
2804
+ groupName: ((Se = Z == null ? void 0 : Z[A](r, n, y, F)) == null ? void 0 : Se.groupName) || "default"
2805
2805
  };
2806
- }).sort((I, z) => I.sort - z.sort), K = (t, o, n, y, x) => c(t, o, n, y, x).reduce((I, z) => {
2807
- const ce = z.groupName || "default";
2808
- return I[ce] || (I[ce] = []), I[ce].push(z), I;
2809
- }, {}), ge = Ke(
2806
+ }).sort((A, z) => A.sort - z.sort), K = (t, r, n, y, F) => c(t, r, n, y, F).reduce((A, z) => {
2807
+ const se = z.groupName || "default";
2808
+ return A[se] || (A[se] = []), A[se].push(z), A;
2809
+ }, {}), be = Ke(
2810
2810
  () => Object.fromEntries(
2811
- Object.entries(e.value).filter(([t, o]) => o.type !== "hidden").filter(([t, o]) => o.hidden !== !0).filter(([t, o]) => o.visible !== !1).filter(([t, o]) => o.showCol !== !1).map(([t, o]) => (o.sort = typeof o.sort == "number" ? o.sort : 0, [t, o])).sort((t, o) => t[1].sort - o[1].sort)
2811
+ Object.entries(e.value).filter(([t, r]) => r.type !== "hidden").filter(([t, r]) => r.hidden !== !0).filter(([t, r]) => r.visible !== !1).filter(([t, r]) => r.showCol !== !1).map(([t, r]) => (r.sort = typeof r.sort == "number" ? r.sort : 0, [t, r])).sort((t, r) => t[1].sort - r[1].sort)
2812
2812
  )
2813
- ), me = re({}), be = (t, o) => {
2814
- const n = (y, x) => {
2815
- for (const I of y) {
2816
- if (I.value == x) return I.label;
2817
- if (I.children) {
2818
- const z = n(I.children, x);
2813
+ ), ve = re({}), $e = (t, r) => {
2814
+ const n = (y, F) => {
2815
+ for (const A of y) {
2816
+ if (A.value == F) return A.label;
2817
+ if (A.children) {
2818
+ const z = n(A.children, F);
2819
2819
  if (z) return z;
2820
2820
  }
2821
2821
  }
2822
2822
  return null;
2823
2823
  };
2824
2824
  if (t.getDicts) {
2825
- const y = o.toString();
2826
- return me.value[y] ? (t.options = me.value[y], t.formatter || (t.formatter = (x, I, z, ce) => t.options && n(t.options, z) || z), Promise.resolve()) : t.getDicts(e.value.table.data).then((x) => {
2827
- me.value[y] = x, t.options = x, t.formatter || (t.formatter = (I, z, ce, Ee) => t.options && n(t.options, ce) || ce);
2825
+ const y = r.toString();
2826
+ return ve.value[y] ? (t.options = ve.value[y], t.formatter || (t.formatter = (F, A, z, se) => t.options && n(t.options, z) || z), Promise.resolve()) : t.getDicts(e.value.table.data).then((F) => {
2827
+ ve.value[y] = F, t.options = F, t.formatter || (t.formatter = (A, z, se, pe) => t.options && n(t.options, se) || se);
2828
2828
  });
2829
2829
  }
2830
2830
  return Promise.resolve();
2831
- }, $e = () => {
2831
+ }, we = () => {
2832
2832
  const t = [];
2833
- Object.keys(e.value).forEach((o) => {
2834
- if (e.value[o].getDicts) {
2835
- const n = be(e.value[o], o).then(() => {
2833
+ Object.keys(e.value).forEach((r) => {
2834
+ if (e.value[r].getDicts) {
2835
+ const n = $e(e.value[r], r).then(() => {
2836
2836
  e.value.table.data.forEach((y) => {
2837
- var x;
2838
- if (e.value[o].getDicts && ((x = e.value[o]) == null ? void 0 : x.forceString) !== !1) {
2839
- const I = y[o];
2840
- y[o] = I != null ? I.toString() : I;
2837
+ var F;
2838
+ if (e.value[r].getDicts && ((F = e.value[r]) == null ? void 0 : F.forceString) !== !1) {
2839
+ const A = y[r];
2840
+ y[r] = A != null ? A.toString() : A;
2841
2841
  }
2842
2842
  });
2843
2843
  }).catch((y) => {
2844
- console.error(`加载字典${o}出错:`, y);
2844
+ console.error(`加载字典${r}出错:`, y);
2845
2845
  });
2846
2846
  t.push(n);
2847
2847
  }
2848
- }), Promise.all(t).catch((o) => {
2849
- console.error("字典加载过程中发生错误:", o);
2848
+ }), Promise.all(t).catch((r) => {
2849
+ console.error("字典加载过程中发生错误:", r);
2850
2850
  });
2851
- }, we = (t, o, n, y) => {
2852
- var x, I;
2853
- return t.table ? (x = t.table(o, n, y)) != null && x.auth ? (I = t.table(o, n, y)) == null ? void 0 : I.auth(o, n, y) : !0 : !1;
2854
- }, Se = () => {
2851
+ }, _e = (t, r, n, y) => {
2852
+ var F, A;
2853
+ return t.table ? (F = t.table(r, n, y)) != null && F.auth ? (A = t.table(r, n, y)) == null ? void 0 : A.auth(r, n, y) : !0 : !1;
2854
+ }, xe = () => {
2855
2855
  if (e.value.dialog.mode == "drawer")
2856
- S.value.handleClose();
2856
+ V.value.handleClose();
2857
2857
  else if (e.value.dialog.mode == "dialog")
2858
2858
  try {
2859
- U.value.handleClose();
2859
+ Y.value.handleClose();
2860
2860
  } catch {
2861
2861
  k.value = !1;
2862
2862
  }
@@ -2866,124 +2866,133 @@ const Ql = {
2866
2866
  Kt(() => {
2867
2867
  e.value.table.autoWatch && e.value.table.load();
2868
2868
  });
2869
- const xe = async () => {
2870
- const t = await Nl(de.value);
2871
- t && Array.isArray(t) && t.forEach((o) => {
2872
- const n = e.value[o.key];
2873
- n && (n.width = o.width, n.showCol = o.showCol, n.sort = o.sort);
2869
+ const Fe = async () => {
2870
+ const t = await Pl(ce.value);
2871
+ t && Array.isArray(t) && t.forEach((r) => {
2872
+ const n = e.value[r.key];
2873
+ n && (n.width = r.width, n.showCol = r.showCol, n.sort = r.sort);
2874
2874
  });
2875
2875
  }, Ue = () => {
2876
- var y, x;
2876
+ var z, se, pe, Se;
2877
2877
  const t = tl();
2878
2878
  if (!t)
2879
2879
  return console.warn("无法获取组件实例"), "";
2880
- let o = t.parent;
2881
- o && ((y = o.type) == null ? void 0 : y.name) === "g-tree-table" && (o = o.parent);
2882
- const n = (x = o.type) == null ? void 0 : x.__file;
2883
- if (!n)
2884
- return console.warn("无法获取父组件文件路径"), "";
2885
- try {
2886
- const I = n.toLowerCase().indexOf("src");
2887
- return I === -1 ? n.replace(/\//g, "_").replace(".vue", "") : n.substring(I + 3).replace(/\//g, "_").replace(".vue", "");
2888
- } catch (I) {
2889
- return console.error("处理文件路径时出错:", I), "";
2880
+ let r = t.parent;
2881
+ r && ((z = r.type) == null ? void 0 : z.name) === "g-tree-table" && (r = r.parent);
2882
+ const n = (se = r.type) == null ? void 0 : se.__file;
2883
+ if (n)
2884
+ try {
2885
+ const ke = n.toLowerCase().indexOf("src");
2886
+ return ke === -1 ? n.replace(/\//g, "_").replace(".vue", "") : n.substring(ke + 3).replace(/\//g, "_").replace(".vue", "");
2887
+ } catch (ke) {
2888
+ console.error("处理文件路径时出错:", ke);
2889
+ }
2890
+ const y = ((pe = r == null ? void 0 : r.type) == null ? void 0 : pe.name) || ((Se = r == null ? void 0 : r.type) == null ? void 0 : Se.__name);
2891
+ if (y)
2892
+ return y.toLowerCase().replace(/\s+/g, "_");
2893
+ if (typeof window < "u" && window.location) {
2894
+ const ke = window.location.pathname;
2895
+ if (ke && ke !== "/")
2896
+ return ke.replace(/\//g, "_").replace(/^_|_$/g, "");
2890
2897
  }
2898
+ const F = Date.now().toString(36), A = Math.random().toString(36).substring(2, 8);
2899
+ return `table_${F}_${A}`;
2891
2900
  };
2892
2901
  return el(() => {
2893
- de.value = Ue() + (se.suffix || "");
2902
+ ce.value = Ue() + (ie.suffix || "");
2894
2903
  }), ot(async () => {
2895
2904
  te.value = Object.entries(e.value).filter(
2896
- ([t, o]) => o.type !== "hidden" && o.type !== "control" && o.visible !== !1
2897
- ).map(([t, o]) => ({
2905
+ ([t, r]) => r.type !== "hidden" && r.type !== "control" && r.visible !== !1
2906
+ ).map(([t, r]) => ({
2898
2907
  key: t || "",
2899
- label: o.label,
2908
+ label: r.label,
2900
2909
  value: !0
2901
2910
  }));
2902
2911
  try {
2903
2912
  await lt();
2904
2913
  const t = Object.entries(e.value).filter(
2905
- ([o, n]) => n.type !== "control" && n.editor !== !1 && n.type !== "hidden"
2914
+ ([r, n]) => n.type !== "control" && n.editor !== !1 && n.type !== "hidden"
2906
2915
  );
2907
2916
  N.value = Object.fromEntries(
2908
- t.map(([o, n]) => [o, n.value])
2909
- ), await xe();
2917
+ t.map(([r, n]) => [r, n.value])
2918
+ ), await Fe();
2910
2919
  } catch (t) {
2911
2920
  console.error("Error during component initialization:", t);
2912
2921
  }
2913
2922
  e.value.table.autoWatch || e.value.table.load();
2914
- }), s({ addRow: m, editRow: p, deleteRow: a, readForm: D, saveRowData: g, closeDialog: Se }), (t, o) => {
2915
- var Le, Je, tt, at, rt;
2916
- const n = A("el-icon"), y = A("el-dialog"), x = A("el-drawer"), I = A("el-button-group"), z = A("el-dropdown-item"), ce = A("el-dropdown-menu"), Ee = A("el-dropdown"), Te = A("el-table-column"), Ye = A("el-table"), He = A("el-pagination");
2923
+ }), s({ addRow: p, editRow: m, deleteRow: a, readForm: D, saveRowData: g, closeDialog: xe }), (t, r) => {
2924
+ var ze, Je, tt, at, rt;
2925
+ const n = I("el-icon"), y = I("el-dialog"), F = I("el-drawer"), A = I("el-button-group"), z = I("el-dropdown-item"), se = I("el-dropdown-menu"), pe = I("el-dropdown"), Se = I("el-table-column"), ke = I("el-table"), Le = I("el-pagination");
2917
2926
  return u(), q(X, null, [
2918
- e.value.dialog.mode == "dialog" && k.value ? (u(), q("div", oa, [
2919
- G(y, F(
2927
+ e.value.dialog.mode == "dialog" && k.value ? (u(), q("div", ra, [
2928
+ G(y, x(
2920
2929
  {
2921
2930
  ref_key: "dialogRef",
2922
- ref: U,
2931
+ ref: Y,
2923
2932
  id: "dialogRef",
2924
2933
  modelValue: k.value,
2925
- "onUpdate:modelValue": o[3] || (o[3] = (B) => k.value = B),
2934
+ "onUpdate:modelValue": r[3] || (r[3] = (B) => k.value = B),
2926
2935
  fullscreen: e.value.dialog.fullScreen
2927
2936
  },
2928
- Y(Be)(e.value.dialog, (B) => !["size", "max", "min"].includes(B)),
2937
+ U(Ye)(e.value.dialog, (B) => !["size", "max", "min"].includes(B)),
2929
2938
  {
2930
- width: Y(jt)(e.value.dialog.width) + 35
2939
+ width: U(jt)(e.value.dialog.width) + 35
2931
2940
  }
2932
2941
  ), {
2933
2942
  header: b(() => {
2934
- var B, ne, _, j, ee, Pe, Ne, Re, d, W;
2943
+ var B, ne, E, j, ee, Pe, Ne, Re, d, W;
2935
2944
  return [
2936
- H("div", ua, [
2937
- H("div", na, [
2945
+ H("div", oa, [
2946
+ H("div", ua, [
2938
2947
  $(t.$slots, "f-header", {}, () => [
2939
2948
  H("div", null, Ce(e.value.dialog.title), 1)
2940
2949
  ], !0)
2941
2950
  ]),
2942
2951
  ((ne = (B = e.value) == null ? void 0 : B.dialog) == null ? void 0 : ne.fullScreen) === !1 ? (u(), q("div", {
2943
2952
  key: 0,
2944
- style: Oe((ee = (j = (_ = e.value) == null ? void 0 : _.dialog) == null ? void 0 : j.max) == null ? void 0 : ee.style),
2945
- onClick: o[0] || (o[0] = (C) => e.value.dialog.fullScreen = !0),
2953
+ style: Oe((ee = (j = (E = e.value) == null ? void 0 : E.dialog) == null ? void 0 : j.max) == null ? void 0 : ee.style),
2954
+ onClick: r[0] || (r[0] = (C) => e.value.dialog.fullScreen = !0),
2946
2955
  class: "max"
2947
2956
  }, [
2948
2957
  G(n, null, {
2949
2958
  default: b(() => {
2950
- var C, Me, ze;
2959
+ var C, Ve, je;
2951
2960
  return [
2952
- (u(), V(We((ze = (Me = (C = e.value) == null ? void 0 : C.dialog) == null ? void 0 : Me.max) == null ? void 0 : ze.icon)))
2961
+ (u(), S(We((je = (Ve = (C = e.value) == null ? void 0 : C.dialog) == null ? void 0 : Ve.max) == null ? void 0 : je.icon)))
2953
2962
  ];
2954
2963
  }),
2955
2964
  _: 1
2956
2965
  })
2957
- ], 4)) : ye("", !0),
2966
+ ], 4)) : ge("", !0),
2958
2967
  ((Ne = (Pe = e.value) == null ? void 0 : Pe.dialog) == null ? void 0 : Ne.fullScreen) === !0 ? (u(), q("div", {
2959
2968
  key: 1,
2960
2969
  style: Oe((W = (d = (Re = e.value) == null ? void 0 : Re.dialog) == null ? void 0 : d.min) == null ? void 0 : W.style),
2961
- onClick: o[1] || (o[1] = (C) => e.value.dialog.fullScreen = !1),
2970
+ onClick: r[1] || (r[1] = (C) => e.value.dialog.fullScreen = !1),
2962
2971
  class: "max"
2963
2972
  }, [
2964
2973
  G(n, null, {
2965
2974
  default: b(() => {
2966
- var C, Me, ze;
2975
+ var C, Ve, je;
2967
2976
  return [
2968
- (u(), V(We((ze = (Me = (C = e.value) == null ? void 0 : C.dialog) == null ? void 0 : Me.min) == null ? void 0 : ze.icon)))
2977
+ (u(), S(We((je = (Ve = (C = e.value) == null ? void 0 : C.dialog) == null ? void 0 : Ve.min) == null ? void 0 : je.icon)))
2969
2978
  ];
2970
2979
  }),
2971
2980
  _: 1
2972
2981
  })
2973
- ], 4)) : ye("", !0)
2982
+ ], 4)) : ge("", !0)
2974
2983
  ])
2975
2984
  ];
2976
2985
  }),
2977
2986
  default: b(() => [
2978
- H("div", sa, [
2987
+ H("div", na, [
2979
2988
  $(t.$slots, "table-dialog-form", { model: e.value }, () => [
2980
- G(_t, {
2989
+ G(Et, {
2981
2990
  modelValue: e.value,
2982
- "onUpdate:modelValue": o[2] || (o[2] = (B) => e.value = B),
2991
+ "onUpdate:modelValue": r[2] || (r[2] = (B) => e.value = B),
2983
2992
  onSubmit: h,
2984
2993
  onReset: O
2985
- }, ve({ _: 2 }, [
2986
- L(t.$slots, (B, ne, _) => ({
2994
+ }, he({ _: 2 }, [
2995
+ R(t.$slots, (B, ne, E) => ({
2987
2996
  name: ne,
2988
2997
  fn: b((j) => [
2989
2998
  $(t.$slots, ne, { model: j }, void 0, !0)
@@ -2995,17 +3004,17 @@ const Ql = {
2995
3004
  ]),
2996
3005
  _: 3
2997
3006
  }, 16, ["modelValue", "fullscreen", "width"])
2998
- ])) : ye("", !0),
2999
- e.value.dialog.mode == "drawer" && k.value ? (u(), q("div", ia, [
3000
- G(x, F({
3007
+ ])) : ge("", !0),
3008
+ e.value.dialog.mode == "drawer" && k.value ? (u(), q("div", sa, [
3009
+ G(F, x({
3001
3010
  ref_key: "drawerRef",
3002
- ref: S,
3011
+ ref: V,
3003
3012
  modelValue: k.value,
3004
- "onUpdate:modelValue": o[5] || (o[5] = (B) => k.value = B)
3005
- }, Y(Be)(e.value.dialog, (B) => !["width"].includes(B))), {
3013
+ "onUpdate:modelValue": r[5] || (r[5] = (B) => k.value = B)
3014
+ }, U(Ye)(e.value.dialog, (B) => !["width"].includes(B))), {
3006
3015
  header: b(() => [
3007
- H("div", da, [
3008
- H("div", ca, [
3016
+ H("div", ia, [
3017
+ H("div", da, [
3009
3018
  $(t.$slots, "f-header", {}, () => [
3010
3019
  H("div", null, Ce(e.value.dialog.title), 1)
3011
3020
  ], !0)
@@ -3014,13 +3023,13 @@ const Ql = {
3014
3023
  ]),
3015
3024
  default: b(() => [
3016
3025
  $(t.$slots, "table-drawer-form", { model: e.value }, () => [
3017
- G(_t, {
3026
+ G(Et, {
3018
3027
  modelValue: e.value,
3019
- "onUpdate:modelValue": o[4] || (o[4] = (B) => e.value = B),
3028
+ "onUpdate:modelValue": r[4] || (r[4] = (B) => e.value = B),
3020
3029
  onSubmit: h,
3021
3030
  onReset: O
3022
- }, ve({ _: 2 }, [
3023
- L(t.$slots, (B, ne, _) => ({
3031
+ }, he({ _: 2 }, [
3032
+ R(t.$slots, (B, ne, E) => ({
3024
3033
  name: ne,
3025
3034
  fn: b((j) => [
3026
3035
  $(t.$slots, ne, { model: j }, void 0, !0)
@@ -3031,69 +3040,69 @@ const Ql = {
3031
3040
  ]),
3032
3041
  _: 3
3033
3042
  }, 16, ["modelValue"])
3034
- ])) : ye("", !0),
3035
- H("div", fa, [
3036
- ((Je = (Le = e.value) == null ? void 0 : Le.query) == null ? void 0 : Je.hidden) != !0 ? (u(), q("div", pa, [
3043
+ ])) : ge("", !0),
3044
+ H("div", ca, [
3045
+ ((Je = (ze = e.value) == null ? void 0 : ze.query) == null ? void 0 : Je.hidden) != !0 ? (u(), q("div", fa, [
3037
3046
  $(t.$slots, "query", {}, () => [
3038
- G(Bl, {
3047
+ G(Il, {
3039
3048
  modelValue: e.value,
3040
- "onUpdate:modelValue": o[6] || (o[6] = (B) => e.value = B),
3049
+ "onUpdate:modelValue": r[6] || (r[6] = (B) => e.value = B),
3041
3050
  info: M.value,
3042
- "onUpdate:info": o[7] || (o[7] = (B) => M.value = B),
3051
+ "onUpdate:info": r[7] || (r[7] = (B) => M.value = B),
3043
3052
  onQuery: w,
3044
3053
  onReset: Ie
3045
- }, ve({
3054
+ }, he({
3046
3055
  "q-btns": b(() => [
3047
3056
  $(t.$slots, "q-btns", {}, () => [
3048
- (u(!0), q(X, null, L(K(["add", "download", "setting"], e.value), (B, ne) => (u(), q(X, null, [
3049
- ne == "default" ? (u(!0), q(X, { key: 0 }, L(B, (_) => (u(), q(X, null, [
3050
- $(t.$slots, _.name + "-left", {}, void 0, !0),
3051
- (_.name === "control-add" ? _.attr.auth() && _.attr.inline === !1 : _.attr.auth()) ? $(t.$slots, _.name, { key: 0 }, () => [
3052
- _.label ? (u(), V(Y(qe), F({
3057
+ (u(!0), q(X, null, R(K(["add", "download", "setting"], e.value), (B, ne) => (u(), q(X, null, [
3058
+ ne == "default" ? (u(!0), q(X, { key: 0 }, R(B, (E) => (u(), q(X, null, [
3059
+ $(t.$slots, E.name + "-left", {}, void 0, !0),
3060
+ (E.name === "control-add" ? E.attr.auth() && E.attr.inline === !1 : E.attr.auth()) ? $(t.$slots, E.name, { key: 0 }, () => [
3061
+ E.label ? (u(), S(U(Ae), x({
3053
3062
  key: 0,
3054
- title: _.label,
3063
+ title: E.label,
3055
3064
  ref_for: !0
3056
- }, _.attr, {
3057
- onClick: (j) => _.func(e.value, te.value)
3065
+ }, E.attr, {
3066
+ onClick: (j) => E.func(e.value, te.value)
3058
3067
  }), {
3059
3068
  default: b(() => [
3060
- Ae(Ce(_.label), 1)
3069
+ Be(Ce(E.label), 1)
3061
3070
  ]),
3062
3071
  _: 2
3063
- }, 1040, ["title", "onClick"])) : (u(), V(Y(qe), F({
3072
+ }, 1040, ["title", "onClick"])) : (u(), S(U(Ae), x({
3064
3073
  key: 1,
3065
- title: _.label,
3074
+ title: E.label,
3066
3075
  ref_for: !0
3067
- }, _.attr, {
3068
- onClick: (j) => _.func(e.value, te.value)
3076
+ }, E.attr, {
3077
+ onClick: (j) => E.func(e.value, te.value)
3069
3078
  }), null, 16, ["title", "onClick"]))
3070
- ], !0) : ye("", !0),
3071
- $(t.$slots, _.name + "-right", {}, void 0, !0)
3072
- ], 64))), 256)) : (u(), V(I, { key: 1 }, {
3079
+ ], !0) : ge("", !0),
3080
+ $(t.$slots, E.name + "-right", {}, void 0, !0)
3081
+ ], 64))), 256)) : (u(), S(A, { key: 1 }, {
3073
3082
  default: b(() => [
3074
- (u(!0), q(X, null, L(B, (_) => (u(), q(X, null, [
3075
- $(t.$slots, _.name + "-left", {}, void 0, !0),
3076
- (_.name === "control-add" ? _.attr.auth() && _.attr.inline === !1 : _.attr.auth()) ? $(t.$slots, _.name, { key: 0 }, () => [
3077
- _.label ? (u(), V(Y(qe), F({
3083
+ (u(!0), q(X, null, R(B, (E) => (u(), q(X, null, [
3084
+ $(t.$slots, E.name + "-left", {}, void 0, !0),
3085
+ (E.name === "control-add" ? E.attr.auth() && E.attr.inline === !1 : E.attr.auth()) ? $(t.$slots, E.name, { key: 0 }, () => [
3086
+ E.label ? (u(), S(U(Ae), x({
3078
3087
  key: 0,
3079
- title: _.label,
3088
+ title: E.label,
3080
3089
  ref_for: !0
3081
- }, _.attr, {
3082
- onClick: (j) => _.func(e.value, te.value)
3090
+ }, E.attr, {
3091
+ onClick: (j) => E.func(e.value, te.value)
3083
3092
  }), {
3084
3093
  default: b(() => [
3085
- Ae(Ce(_.label), 1)
3094
+ Be(Ce(E.label), 1)
3086
3095
  ]),
3087
3096
  _: 2
3088
- }, 1040, ["title", "onClick"])) : (u(), V(Y(qe), F({
3097
+ }, 1040, ["title", "onClick"])) : (u(), S(U(Ae), x({
3089
3098
  key: 1,
3090
- title: _.label,
3099
+ title: E.label,
3091
3100
  ref_for: !0
3092
- }, _.attr, {
3093
- onClick: (j) => _.func(e.value, te.value)
3101
+ }, E.attr, {
3102
+ onClick: (j) => E.func(e.value, te.value)
3094
3103
  }), null, 16, ["title", "onClick"]))
3095
- ], !0) : ye("", !0),
3096
- $(t.$slots, _.name + "-right", {}, void 0, !0)
3104
+ ], !0) : ge("", !0),
3105
+ $(t.$slots, E.name + "-right", {}, void 0, !0)
3097
3106
  ], 64))), 256))
3098
3107
  ]),
3099
3108
  _: 2
@@ -3103,7 +3112,7 @@ const Ql = {
3103
3112
  ]),
3104
3113
  _: 2
3105
3114
  }, [
3106
- L(t.$slots, (B, ne, _) => ({
3115
+ R(t.$slots, (B, ne, E) => ({
3107
3116
  name: ne,
3108
3117
  fn: b((j) => [
3109
3118
  $(t.$slots, ne, { model: e.value }, void 0, !0)
@@ -3111,19 +3120,19 @@ const Ql = {
3111
3120
  }))
3112
3121
  ]), 1032, ["modelValue", "info"])
3113
3122
  ], !0)
3114
- ])) : ye("", !0),
3123
+ ])) : ge("", !0),
3115
3124
  H("div", ma, [
3116
- G(Ye, F({
3125
+ G(ke, x({
3117
3126
  ...t.$attrs,
3118
- ...Y(Be)(
3127
+ ...U(Ye)(
3119
3128
  e.value.table,
3120
3129
  (B) => !["dblclickType", "page"].includes(B)
3121
3130
  )
3122
3131
  }, {
3123
3132
  "summary-method": (B) => e.value.table["summary-method"](B, { fields: fe.value, sums: Q.value }),
3124
- onSortChange: o[8] || (o[8] = (B) => {
3125
- var ne, _;
3126
- e.value.table.onSortChange(B, M.value), ((ne = B == null ? void 0 : B.column) == null ? void 0 : ne.sortable) === "custom" && ((_ = e.value.table) == null || _.load());
3133
+ onSortChange: r[8] || (r[8] = (B) => {
3134
+ var ne, E;
3135
+ e.value.table.onSortChange(B, M.value), ((ne = B == null ? void 0 : B.column) == null ? void 0 : ne.sortable) === "custom" && ((E = e.value.table) == null || E.load());
3127
3136
  })
3128
3137
  }), {
3129
3138
  append: b(() => [
@@ -3134,37 +3143,37 @@ const Ql = {
3134
3143
  ]),
3135
3144
  default: b(() => [
3136
3145
  $(t.$slots, "default", {}, () => [
3137
- (u(!0), q(X, null, L(ge.value, (B, ne) => (u(), V(Te, F({
3146
+ (u(!0), q(X, null, R(be.value, (B, ne) => (u(), S(Se, x({
3138
3147
  prop: ne,
3139
3148
  key: ne,
3140
3149
  ref_for: !0
3141
3150
  }, {
3142
3151
  ...e.value.tableColumns,
3143
- ...Y(Be)(B, (_) => R.includes(_))
3144
- }), ve({
3145
- header: b(({ column: _, $index: j }) => [
3152
+ ...U(Ye)(B, (E) => L.includes(E))
3153
+ }), he({
3154
+ header: b(({ column: E, $index: j }) => [
3146
3155
  ne == "control" ? $(t.$slots, `${ne}-header`, {
3147
3156
  key: 0,
3148
- column: _,
3157
+ column: E,
3149
3158
  index: j
3150
3159
  }, () => [
3151
- H("span", null, Ce(_.label), 1)
3160
+ H("span", null, Ce(E.label), 1)
3152
3161
  ], !0) : $(t.$slots, `${ne}-header`, {
3153
3162
  key: 1,
3154
- column: _,
3163
+ column: E,
3155
3164
  index: j
3156
3165
  }, void 0, !0)
3157
3166
  ]),
3158
- "filter-icon": b((_) => [
3159
- $(t.$slots, `${ne}-filter-icon`, { data: _ }, void 0, !0)
3167
+ "filter-icon": b((E) => [
3168
+ $(t.$slots, `${ne}-filter-icon`, { data: E }, void 0, !0)
3160
3169
  ]),
3161
3170
  _: 2
3162
3171
  }, [
3163
3172
  B.type === "expand" ? {
3164
3173
  name: "default",
3165
- fn: b(({ row: _, column: j, $index: ee }) => [
3174
+ fn: b(({ row: E, column: j, $index: ee }) => [
3166
3175
  $(t.$slots, `${ne}`, {
3167
- row: _,
3176
+ row: E,
3168
3177
  column: j,
3169
3178
  index: ee
3170
3179
  }, void 0, !0)
@@ -3172,7 +3181,7 @@ const Ql = {
3172
3181
  key: "0"
3173
3182
  } : B.type == "control" ? {
3174
3183
  name: "default",
3175
- fn: b(({ row: _, column: j, $index: ee }) => {
3184
+ fn: b(({ row: E, column: j, $index: ee }) => {
3176
3185
  var Pe, Ne;
3177
3186
  return [
3178
3187
  H("div", {
@@ -3181,107 +3190,107 @@ const Ql = {
3181
3190
  }, [
3182
3191
  $(t.$slots, "control", {}, () => [
3183
3192
  $(t.$slots, "control-left", {
3184
- row: _,
3193
+ row: E,
3185
3194
  column: j,
3186
3195
  index: ee
3187
3196
  }, void 0, !0),
3188
- (u(!0), q(X, null, L(K(["view", "edit", "delete", "save"], _, j, ee, e.value), (Re, d) => {
3197
+ (u(!0), q(X, null, R(K(["view", "edit", "delete", "save"], E, j, ee, e.value), (Re, d) => {
3189
3198
  var W;
3190
3199
  return u(), q(X, null, [
3191
- d == "default" ? (u(!0), q(X, { key: 0 }, L(Re, (C) => (u(), q(X, null, [
3200
+ d == "default" ? (u(!0), q(X, { key: 0 }, R(Re, (C) => (u(), q(X, null, [
3192
3201
  $(t.$slots, C.name + "-left", {
3193
- row: _,
3202
+ row: E,
3194
3203
  column: j,
3195
3204
  index: ee
3196
3205
  }, void 0, !0),
3197
3206
  C.attr.auth() ? $(t.$slots, C.name, {
3198
3207
  key: 0,
3199
- row: _,
3208
+ row: E,
3200
3209
  column: j,
3201
3210
  index: ee
3202
3211
  }, () => [
3203
- C.label ? (u(), V(Y(qe), F({
3212
+ C.label ? (u(), S(U(Ae), x({
3204
3213
  key: 0,
3205
3214
  title: C.label,
3206
3215
  ref_for: !0
3207
3216
  }, C.attr, {
3208
- onClick: (Me) => C.func(_, j, ee, e.value)
3217
+ onClick: (Ve) => C.func(E, j, ee, e.value)
3209
3218
  }), {
3210
3219
  default: b(() => [
3211
- Ae(Ce(C.label), 1)
3220
+ Be(Ce(C.label), 1)
3212
3221
  ]),
3213
3222
  _: 2
3214
- }, 1040, ["title", "onClick"])) : (u(), V(Y(qe), F({
3223
+ }, 1040, ["title", "onClick"])) : (u(), S(U(Ae), x({
3215
3224
  key: 1,
3216
3225
  title: C.label,
3217
3226
  ref_for: !0
3218
3227
  }, C.attr, {
3219
- onClick: (Me) => C.func(_, j, ee, e.value)
3228
+ onClick: (Ve) => C.func(E, j, ee, e.value)
3220
3229
  }), null, 16, ["title", "onClick"]))
3221
- ], !0) : ye("", !0),
3230
+ ], !0) : ge("", !0),
3222
3231
  $(t.$slots, C.name + "-right", {
3223
- row: _,
3232
+ row: E,
3224
3233
  column: j,
3225
3234
  index: ee
3226
3235
  }, void 0, !0)
3227
- ], 64))), 256)) : d != null && d.startsWith("dropdown") && ((W = he(_, j, ee, e.value)) != null && W.auth()) ? (u(), V(Ee, F({
3236
+ ], 64))), 256)) : d != null && d.startsWith("dropdown") && ((W = ye(E, j, ee, e.value)) != null && W.auth()) ? (u(), S(pe, x({
3228
3237
  key: 1,
3229
3238
  ref_for: !0
3230
- }, he(_, j, ee, e.value)), {
3239
+ }, ye(E, j, ee, e.value)), {
3231
3240
  dropdown: b(() => [
3232
- G(ce, null, {
3241
+ G(se, null, {
3233
3242
  default: b(() => [
3234
- (u(!0), q(X, null, L(Re, (C) => {
3235
- var Me, ze, et;
3243
+ (u(!0), q(X, null, R(Re, (C) => {
3244
+ var Ve, je, et;
3236
3245
  return u(), q(X, null, [
3237
3246
  t.$slots[C.name + "-left"] ? $(t.$slots, C.name + "-left", {
3238
3247
  key: 0,
3239
- row: _,
3248
+ row: E,
3240
3249
  column: j,
3241
3250
  index: ee
3242
- }, void 0, !0) : ye("", !0),
3243
- C.attr.auth() ? (u(), V(z, F({
3251
+ }, void 0, !0) : ge("", !0),
3252
+ C.attr.auth() ? (u(), S(z, x({
3244
3253
  key: 1,
3245
3254
  ref_for: !0
3246
3255
  }, {
3247
- command: (Me = C == null ? void 0 : C.attr) == null ? void 0 : Me.command,
3248
- divided: (ze = C == null ? void 0 : C.attr) == null ? void 0 : ze.divided,
3256
+ command: (Ve = C == null ? void 0 : C.attr) == null ? void 0 : Ve.command,
3257
+ divided: (je = C == null ? void 0 : C.attr) == null ? void 0 : je.divided,
3249
3258
  disabled: (et = C == null ? void 0 : C.attr) == null ? void 0 : et.disabled
3250
3259
  }), {
3251
3260
  default: b(() => [
3252
3261
  $(t.$slots, C.name, {
3253
- row: _,
3262
+ row: E,
3254
3263
  column: j,
3255
3264
  index: ee
3256
3265
  }, () => [
3257
- C.label ? (u(), V(Y(qe), F({
3266
+ C.label ? (u(), S(U(Ae), x({
3258
3267
  key: 0,
3259
3268
  title: C.label,
3260
3269
  ref_for: !0
3261
3270
  }, C.attr, {
3262
- onClick: (bt) => C.func(_, j, ee, e.value)
3271
+ onClick: (bt) => C.func(E, j, ee, e.value)
3263
3272
  }), {
3264
3273
  default: b(() => [
3265
- Ae(Ce(C.label), 1)
3274
+ Be(Ce(C.label), 1)
3266
3275
  ]),
3267
3276
  _: 2
3268
- }, 1040, ["title", "onClick"])) : (u(), V(Y(qe), F({
3277
+ }, 1040, ["title", "onClick"])) : (u(), S(U(Ae), x({
3269
3278
  key: 1,
3270
3279
  title: C.label,
3271
3280
  ref_for: !0
3272
3281
  }, C.attr, {
3273
- onClick: (bt) => C.func(_, j, ee, e.value)
3282
+ onClick: (bt) => C.func(E, j, ee, e.value)
3274
3283
  }), null, 16, ["title", "onClick"]))
3275
3284
  ], !0)
3276
3285
  ]),
3277
3286
  _: 2
3278
- }, 1040)) : ye("", !0),
3287
+ }, 1040)) : ge("", !0),
3279
3288
  t.$slots[C.name + "-right"] ? $(t.$slots, C.name + "-right", {
3280
3289
  key: 2,
3281
- row: _,
3290
+ row: E,
3282
3291
  column: j,
3283
3292
  index: ee
3284
- }, void 0, !0) : ye("", !0)
3293
+ }, void 0, !0) : ge("", !0)
3285
3294
  ], 64);
3286
3295
  }), 256))
3287
3296
  ]),
@@ -3291,45 +3300,45 @@ const Ql = {
3291
3300
  default: b(() => {
3292
3301
  var C;
3293
3302
  return [
3294
- Ae(Ce((C = he(_, j, ee, e.value)) == null ? void 0 : C.label) + " ", 1)
3303
+ Be(Ce((C = ye(E, j, ee, e.value)) == null ? void 0 : C.label) + " ", 1)
3295
3304
  ];
3296
3305
  }),
3297
3306
  _: 2
3298
- }, 1040)) : (u(), V(I, { key: 2 }, {
3307
+ }, 1040)) : (u(), S(A, { key: 2 }, {
3299
3308
  default: b(() => [
3300
- (u(!0), q(X, null, L(Re, (C) => (u(), q(X, null, [
3309
+ (u(!0), q(X, null, R(Re, (C) => (u(), q(X, null, [
3301
3310
  $(t.$slots, C.name + "-left", {
3302
- row: _,
3311
+ row: E,
3303
3312
  column: j,
3304
3313
  index: ee
3305
3314
  }, void 0, !0),
3306
3315
  C.attr.auth() ? $(t.$slots, C.name, {
3307
3316
  key: 0,
3308
- row: _,
3317
+ row: E,
3309
3318
  column: j,
3310
3319
  index: ee
3311
3320
  }, () => [
3312
- C.label ? (u(), V(Y(qe), F({
3321
+ C.label ? (u(), S(U(Ae), x({
3313
3322
  key: 0,
3314
3323
  title: C.label,
3315
3324
  ref_for: !0
3316
3325
  }, C.attr, {
3317
- onClick: (Me) => C.func(_, j, ee, e.value)
3326
+ onClick: (Ve) => C.func(E, j, ee, e.value)
3318
3327
  }), {
3319
3328
  default: b(() => [
3320
- Ae(Ce(C.label), 1)
3329
+ Be(Ce(C.label), 1)
3321
3330
  ]),
3322
3331
  _: 2
3323
- }, 1040, ["title", "onClick"])) : (u(), V(Y(qe), F({
3332
+ }, 1040, ["title", "onClick"])) : (u(), S(U(Ae), x({
3324
3333
  key: 1,
3325
3334
  title: C.label,
3326
3335
  ref_for: !0
3327
3336
  }, C.attr, {
3328
- onClick: (Me) => C.func(_, j, ee, e.value)
3337
+ onClick: (Ve) => C.func(E, j, ee, e.value)
3329
3338
  }), null, 16, ["title", "onClick"]))
3330
- ], !0) : ye("", !0),
3339
+ ], !0) : ge("", !0),
3331
3340
  $(t.$slots, C.name + "-right", {
3332
- row: _,
3341
+ row: E,
3333
3342
  column: j,
3334
3343
  index: ee
3335
3344
  }, void 0, !0)
@@ -3340,7 +3349,7 @@ const Ql = {
3340
3349
  ], 64);
3341
3350
  }), 256)),
3342
3351
  $(t.$slots, "control-right", {
3343
- row: _,
3352
+ row: E,
3344
3353
  column: j,
3345
3354
  index: ee
3346
3355
  }, void 0, !0)
@@ -3351,28 +3360,28 @@ const Ql = {
3351
3360
  key: "1"
3352
3361
  } : B.type != "selection" && B.type != "index" ? {
3353
3362
  name: "default",
3354
- fn: b(({ row: _, column: j, $index: ee }) => [
3355
- we(B, _, j, ee) && ee != -1 ? $(t.$slots, `${ne}`, {
3363
+ fn: b(({ row: E, column: j, $index: ee }) => [
3364
+ _e(B, E, j, ee) && ee != -1 ? $(t.$slots, `${ne}`, {
3356
3365
  key: 0,
3357
- row: _,
3366
+ row: E,
3358
3367
  column: j,
3359
3368
  index: ee
3360
3369
  }, () => {
3361
3370
  var Pe;
3362
3371
  return [
3363
- (u(), V(yt, {
3364
- modelValue: _[ne],
3365
- "onUpdate:modelValue": (Ne) => _[ne] = Ne,
3366
- item: B == null ? void 0 : B.table(_, j, ee),
3372
+ (u(), S(yt, {
3373
+ modelValue: E[ne],
3374
+ "onUpdate:modelValue": (Ne) => E[ne] = Ne,
3375
+ item: B == null ? void 0 : B.table(E, j, ee),
3367
3376
  ctrlKey: ne,
3368
- key: `${ne}-${ee} -${pe.value}`,
3369
- ctrlType: (Pe = B.table(_, j, ee)) != null && Pe.type ? B.table(_, j, ee).type : B.type,
3377
+ key: `${ne}-${ee} -${me.value}`,
3378
+ ctrlType: (Pe = B.table(E, j, ee)) != null && Pe.type ? B.table(E, j, ee).type : B.type,
3370
3379
  model: e.value,
3371
3380
  class: "g-ctrl-container",
3372
3381
  t: "t",
3373
- formInfo: _
3374
- }, ve({ _: 2 }, [
3375
- L(t.$slots, (Ne, Re) => ({
3382
+ formInfo: E
3383
+ }, he({ _: 2 }, [
3384
+ R(t.$slots, (Ne, Re) => ({
3376
3385
  name: Re,
3377
3386
  fn: b((d) => [
3378
3387
  $(t.$slots, Re, {
@@ -3386,7 +3395,7 @@ const Ql = {
3386
3395
  ];
3387
3396
  }, !0) : $(t.$slots, `${ne}`, {
3388
3397
  key: 1,
3389
- row: _,
3398
+ row: E,
3390
3399
  column: j,
3391
3400
  index: ee
3392
3401
  }, () => [
@@ -3394,9 +3403,9 @@ const Ql = {
3394
3403
  style: Oe([{ width: "100%", "text-overflow": "ellipsis", overflow: "hidden" }, B == null ? void 0 : B.style]),
3395
3404
  innerHTML: ae(
3396
3405
  B,
3397
- j.formatter(_, j, _[ne], ee)
3406
+ j.formatter(E, j, E[ne], ee)
3398
3407
  )
3399
- }, null, 12, va)
3408
+ }, null, 12, pa)
3400
3409
  ], !0)
3401
3410
  ]),
3402
3411
  key: "2"
@@ -3406,12 +3415,12 @@ const Ql = {
3406
3415
  ]),
3407
3416
  _: 3
3408
3417
  }, 16, ["summary-method"]),
3409
- (rt = (at = (tt = e.value) == null ? void 0 : tt.table) == null ? void 0 : at.page) != null && rt.hidden ? ye("", !0) : $(t.$slots, "page", { key: 0 }, () => [
3410
- G(He, F({
3418
+ (rt = (at = (tt = e.value) == null ? void 0 : tt.table) == null ? void 0 : at.page) != null && rt.hidden ? ge("", !0) : $(t.$slots, "page", { key: 0 }, () => [
3419
+ G(Le, x({
3411
3420
  "page-size": e.value.table.page.pageSize,
3412
- "onUpdate:pageSize": o[9] || (o[9] = (B) => e.value.table.page.pageSize = B),
3421
+ "onUpdate:pageSize": r[9] || (r[9] = (B) => e.value.table.page.pageSize = B),
3413
3422
  "current-page": e.value.table.page.currentPage,
3414
- "onUpdate:currentPage": o[10] || (o[10] = (B) => e.value.table.page.currentPage = B)
3423
+ "onUpdate:currentPage": r[10] || (r[10] = (B) => e.value.table.page.currentPage = B)
3415
3424
  }, e.value.table.page), {
3416
3425
  default: b(() => [
3417
3426
  $(t.$slots, "table-page", {}, void 0, !0)
@@ -3424,7 +3433,7 @@ const Ql = {
3424
3433
  ], 64);
3425
3434
  };
3426
3435
  }
3427
- }), ya = /* @__PURE__ */ Ze(ha, [["__scopeId", "data-v-f6456089"]]), ga = { class: "g-tree-table" }, ba = { class: "g-tree-container" }, $a = { class: "g-tree-table-container" }, wa = /* @__PURE__ */ Object.assign({
3436
+ }), ha = /* @__PURE__ */ Ze(va, [["__scopeId", "data-v-a51987b9"]]), ya = { class: "g-tree-table" }, ga = { class: "g-tree-container" }, ba = { class: "g-tree-table-container" }, $a = /* @__PURE__ */ Object.assign({
3428
3437
  name: "g-tree-table",
3429
3438
  inheritAttrs: !1
3430
3439
  }, {
@@ -3435,73 +3444,73 @@ const Ql = {
3435
3444
  },
3436
3445
  emits: /* @__PURE__ */ Ge(["load"], ["update:modelValue"]),
3437
3446
  setup(f, { emit: s }) {
3438
- var se, T, Q, fe;
3439
- const r = s, l = Qe(f, "modelValue"), e = Vt(), i = re(
3440
- typeof ((se = e == null ? void 0 : e.tree) == null ? void 0 : se.width) == "number" ? `${e.tree.width}px` : ((T = e == null ? void 0 : e.tree) == null ? void 0 : T.width) || "180px"
3441
- ), M = re(((Q = e == null ? void 0 : e.tree) == null ? void 0 : Q.search) === void 0 ? !0 : (fe = e == null ? void 0 : e.tree) == null ? void 0 : fe.search), U = re({}), S = re(""), E = re(null), k = (N, pe) => {
3442
- var De, ie;
3447
+ var ie, T, Q, fe;
3448
+ const o = s, l = Qe(f, "modelValue"), e = St(), i = re(
3449
+ typeof ((ie = e == null ? void 0 : e.tree) == null ? void 0 : ie.width) == "number" ? `${e.tree.width}px` : ((T = e == null ? void 0 : e.tree) == null ? void 0 : T.width) || "180px"
3450
+ ), M = re(((Q = e == null ? void 0 : e.tree) == null ? void 0 : Q.search) === void 0 ? !0 : (fe = e == null ? void 0 : e.tree) == null ? void 0 : fe.search), Y = re({}), V = re(""), _ = re(null), k = (N, me) => {
3451
+ var Me, de;
3443
3452
  if (!N) return !0;
3444
- const de = ((ie = (De = e.tree) == null ? void 0 : De.props) == null ? void 0 : ie.label) || "label";
3445
- return pe[de].includes(N);
3446
- }, R = (N, pe) => {
3447
- r("load", U.value, N, pe);
3453
+ const ce = ((de = (Me = e.tree) == null ? void 0 : Me.props) == null ? void 0 : de.label) || "label";
3454
+ return me[ce].includes(N);
3455
+ }, L = (N, me) => {
3456
+ o("load", Y.value, N, me);
3448
3457
  }, te = (N) => {
3449
- U.value = N, l.value.table.load();
3458
+ Y.value = N, l.value.table.load();
3450
3459
  };
3451
- return ll(S, (N) => {
3452
- E.value.filter(N);
3453
- }), (N, pe) => {
3454
- const de = A("el-input"), De = A("el-tree"), ie = A("g-table");
3455
- return u(), q("div", ga, [
3460
+ return ll(V, (N) => {
3461
+ _.value.filter(N);
3462
+ }), (N, me) => {
3463
+ const ce = I("el-input"), Me = I("el-tree"), de = I("g-table");
3464
+ return u(), q("div", ya, [
3456
3465
  H("div", {
3457
3466
  class: "g-tree-left",
3458
3467
  style: Oe({ width: i.value })
3459
3468
  }, [
3460
- M.value ? (u(), V(de, {
3469
+ M.value ? (u(), S(ce, {
3461
3470
  key: 0,
3462
- modelValue: S.value,
3463
- "onUpdate:modelValue": pe[0] || (pe[0] = (ue) => S.value = ue),
3471
+ modelValue: V.value,
3472
+ "onUpdate:modelValue": me[0] || (me[0] = (ue) => V.value = ue),
3464
3473
  style: { width: "100%", "box-sizing": "border-box", "margin-bottom": "10px" },
3465
3474
  placeholder: "输入节点查询",
3466
3475
  clearable: ""
3467
- }, null, 8, ["modelValue"])) : ye("", !0),
3468
- H("div", ba, [
3469
- G(De, F({
3476
+ }, null, 8, ["modelValue"])) : ge("", !0),
3477
+ H("div", ga, [
3478
+ G(Me, x({
3470
3479
  style: { width: i.value },
3471
3480
  "filter-node-method": k,
3472
3481
  "expand-on-click-node": !1,
3473
3482
  ref_key: "treeRef",
3474
- ref: E,
3483
+ ref: _,
3475
3484
  onNodeClick: te
3476
- }, N.$attrs.tree), ve({
3477
- default: b(({ node: ue, data: he }) => [
3485
+ }, N.$attrs.tree), he({
3486
+ default: b(({ node: ue, data: ye }) => [
3478
3487
  $(N.$slots, "tree", {
3479
3488
  node: ue,
3480
- data: he
3489
+ data: ye
3481
3490
  }, () => [
3482
3491
  H("span", null, Ce(ue.label), 1)
3483
3492
  ], !0)
3484
3493
  ]),
3485
3494
  _: 2
3486
3495
  }, [
3487
- L(N.$slots, (ue, he, Ve) => ({
3488
- name: he,
3496
+ R(N.$slots, (ue, ye, Te) => ({
3497
+ name: ye,
3489
3498
  fn: b((le) => [
3490
- $(N.$slots, he, { data: le }, void 0, !0)
3499
+ $(N.$slots, ye, { data: le }, void 0, !0)
3491
3500
  ])
3492
3501
  }))
3493
3502
  ]), 1040, ["style"])
3494
3503
  ])
3495
3504
  ], 4),
3496
- H("div", $a, [
3497
- G(ie, F({
3505
+ H("div", ba, [
3506
+ G(de, x({
3498
3507
  modelValue: l.value,
3499
- "onUpdate:modelValue": pe[1] || (pe[1] = (ue) => l.value = ue)
3500
- }, N.$attrs, { onLoad: R }), ve({ _: 2 }, [
3501
- L(N.$slots, (ue, he, Ve) => ({
3502
- name: he,
3508
+ "onUpdate:modelValue": me[1] || (me[1] = (ue) => l.value = ue)
3509
+ }, N.$attrs, { onLoad: L }), he({ _: 2 }, [
3510
+ R(N.$slots, (ue, ye, Te) => ({
3511
+ name: ye,
3503
3512
  fn: b((le) => [
3504
- $(N.$slots, he, { data: le }, void 0, !0)
3513
+ $(N.$slots, ye, { data: le }, void 0, !0)
3505
3514
  ])
3506
3515
  }))
3507
3516
  ]), 1040, ["modelValue"])
@@ -3509,14 +3518,14 @@ const Ql = {
3509
3518
  ]);
3510
3519
  };
3511
3520
  }
3512
- }), Ea = /* @__PURE__ */ Ze(wa, [["__scopeId", "data-v-c888e4fc"]]), _a = {
3521
+ }), wa = /* @__PURE__ */ Ze($a, [["__scopeId", "data-v-c888e4fc"]]), _a = {
3513
3522
  key: 0,
3514
3523
  class: "op-group"
3515
- }, ka = {
3524
+ }, Ea = {
3516
3525
  key: 1,
3517
3526
  class: "op-items",
3518
3527
  style: { width: "100%", height: "100%" }
3519
- }, Ca = ["title"], xt = "100px", Da = /* @__PURE__ */ Object.assign({ name: "g-select-option" }, {
3528
+ }, ka = ["title"], xt = "100px", Ca = /* @__PURE__ */ Object.assign({ name: "g-select-option" }, {
3520
3529
  __name: "g-select-option",
3521
3530
  props: {
3522
3531
  columns: {
@@ -3538,39 +3547,39 @@ const Ql = {
3538
3547
  },
3539
3548
  setup(f) {
3540
3549
  const s = f;
3541
- return (r, l) => s.title ? (u(), q("div", _a, [
3542
- (u(!0), q(X, null, L(s.columns, (e) => (u(), q("span", {
3550
+ return (o, l) => s.title ? (u(), q("div", _a, [
3551
+ (u(!0), q(X, null, R(s.columns, (e) => (u(), q("span", {
3543
3552
  style: Oe({ width: (e == null ? void 0 : e.width) || xt, ...e == null ? void 0 : e.titleStyle, textAlign: (e == null ? void 0 : e.align) || "center" }),
3544
3553
  key: e.key
3545
3554
  }, [
3546
- $(r.$slots, `${f.t}-title-${e.key}`, { col: e }, () => [
3547
- Ae(Ce(e.label), 1)
3555
+ $(o.$slots, `${f.t}-title-${e.key}`, { col: e }, () => [
3556
+ Be(Ce(e.label), 1)
3548
3557
  ], !0)
3549
3558
  ], 4))), 128))
3550
- ])) : (u(), q("div", ka, [
3551
- (u(!0), q(X, null, L(s.columns, (e) => (u(), q("span", {
3559
+ ])) : (u(), q("div", Ea, [
3560
+ (u(!0), q(X, null, R(s.columns, (e) => (u(), q("span", {
3552
3561
  style: Oe({ width: (e == null ? void 0 : e.width) || xt, textAlign: (e == null ? void 0 : e.align) || "center", ...e == null ? void 0 : e.style }),
3553
3562
  key: e.key,
3554
3563
  title: f.data[e.key]
3555
3564
  }, [
3556
- $(r.$slots, `${f.t}-option-${e.key}`, { col: e }, () => [
3557
- Ae(Ce(f.data[e.key] ?? "-"), 1)
3565
+ $(o.$slots, `${f.t}-option-${e.key}`, { col: e }, () => [
3566
+ Be(Ce(f.data[e.key] ?? "-"), 1)
3558
3567
  ], !0)
3559
- ], 12, Ca))), 128))
3568
+ ], 12, ka))), 128))
3560
3569
  ]));
3561
3570
  }
3562
- }), Ma = /* @__PURE__ */ Ze(Da, [["__scopeId", "data-v-c0ac6b77"]]), Va = Object.freeze({}), zt = [ya, _t, Ea, Ma];
3571
+ }), Da = /* @__PURE__ */ Ze(Ca, [["__scopeId", "data-v-c0ac6b77"]]), Ma = Object.freeze({}), Rt = [ha, Et, wa, Da];
3563
3572
  let kt = {};
3564
- const La = {
3573
+ const Ua = {
3565
3574
  install: (f, s = {}) => {
3566
- kt = Object.freeze({ ...Va, ...s }), zt.forEach((r) => {
3567
- f.component(r.name, r);
3575
+ kt = Object.freeze({ ...Ma, ...s }), Rt.forEach((o) => {
3576
+ f.component(o.name, o);
3568
3577
  }), f.provide("options", kt), f.config.globalProperties.$openModal = Ct;
3569
3578
  }
3570
3579
  }, Sa = (f) => ({ dialog: Pt, drawer: Nt })[f] || null, Ct = (f = {}, s = "dialog") => {
3571
3580
  if (typeof document > "u") return () => {
3572
3581
  };
3573
- const r = document.createElement("div");
3582
+ const o = document.createElement("div");
3574
3583
  let l = () => {
3575
3584
  };
3576
3585
  const e = Sa(s);
@@ -3580,11 +3589,11 @@ const La = {
3580
3589
  setup() {
3581
3590
  return l = () => {
3582
3591
  i.value = !1, setTimeout(() => {
3583
- M.unmount(), r.remove();
3592
+ M.unmount(), o.remove();
3584
3593
  }, 300);
3585
3594
  }, () => {
3586
- var U, S, E;
3587
- return _e(e, {
3595
+ var Y, V, _;
3596
+ return Ee(e, {
3588
3597
  modelValue: i.value,
3589
3598
  "onUpdate:modelValue": (k) => i.value = k,
3590
3599
  appendToBody: !0,
@@ -3595,9 +3604,9 @@ const La = {
3595
3604
  "close-on-click-modal": !1,
3596
3605
  ...f
3597
3606
  }, {
3598
- default: (U = f.slots) == null ? void 0 : U.default,
3599
- header: (S = f.slots) == null ? void 0 : S.header,
3600
- footer: (E = f.slots) == null ? void 0 : E.footer
3607
+ default: (Y = f.slots) == null ? void 0 : Y.default,
3608
+ header: (V = f.slots) == null ? void 0 : V.header,
3609
+ footer: (_ = f.slots) == null ? void 0 : _.footer
3601
3610
  });
3602
3611
  };
3603
3612
  },
@@ -3605,18 +3614,18 @@ const La = {
3605
3614
  ht();
3606
3615
  }
3607
3616
  });
3608
- return zt.forEach((U) => {
3609
- M.component(U.name, U);
3610
- }), M.provide("options", kt), M.use(Ht, { locale: hl }), document.body.appendChild(r), M.mount(r), l;
3617
+ return Rt.forEach((Y) => {
3618
+ M.component(Y.name, Y);
3619
+ }), M.provide("options", kt), M.use(Ht, { locale: hl }), document.body.appendChild(o), M.mount(o), l;
3611
3620
  };
3612
3621
  function jt(f, s = window.innerWidth) {
3613
3622
  if (typeof f == "number")
3614
3623
  return f;
3615
3624
  if (f.endsWith("px"))
3616
3625
  return parseFloat(f);
3617
- const r = window.innerHeight, l = window.innerWidth;
3626
+ const o = window.innerHeight, l = window.innerWidth;
3618
3627
  if (f.endsWith("vh"))
3619
- return r * parseFloat(f) / 100;
3628
+ return o * parseFloat(f) / 100;
3620
3629
  if (f.endsWith("vw"))
3621
3630
  return l * parseFloat(f) / 100;
3622
3631
  if (f.endsWith("%")) {
@@ -3625,34 +3634,34 @@ function jt(f, s = window.innerWidth) {
3625
3634
  return s * parseFloat(f) / 100;
3626
3635
  }
3627
3636
  if (f.startsWith("calc(") && f.endsWith(")")) {
3628
- let i = function(U) {
3629
- if (/[0-9+\-*/().\s]+$/.test(U))
3630
- return new Function("return " + U)();
3637
+ let i = function(Y) {
3638
+ if (/[0-9+\-*/().\s]+$/.test(Y))
3639
+ return new Function("return " + Y)();
3631
3640
  throw new Error("Invalid calc expression");
3632
3641
  };
3633
3642
  const e = f.slice(5, -1).trim();
3634
- return i(e.replace(/([0-9.]+)([a-z%]+)/g, (U, S, E) => jt(S + E, s)));
3643
+ return i(e.replace(/([0-9.]+)([a-z%]+)/g, (Y, V, _) => jt(V + _, s)));
3635
3644
  }
3636
3645
  throw new Error("Unsupported unit in value: " + f);
3637
3646
  }
3638
- const Fe = (...f) => {
3639
- const s = {}, r = (l, e) => (Object.keys(e).forEach((i) => {
3640
- l[i] = typeof e[i] == "object" && !Array.isArray(e[i]) ? r(l[i] || {}, e[i]) : e[i];
3647
+ const qe = (...f) => {
3648
+ const s = {}, o = (l, e) => (Object.keys(e).forEach((i) => {
3649
+ l[i] = typeof e[i] == "object" && !Array.isArray(e[i]) ? o(l[i] || {}, e[i]) : e[i];
3641
3650
  }), l);
3642
- return f.forEach((l = {}) => r(s, l)), s;
3651
+ return f.forEach((l = {}) => o(s, l)), s;
3643
3652
  };
3644
- function Be(f, s = (r, l) => s(r, l)) {
3645
- const r = {};
3653
+ function Ye(f, s = (o, l) => s(o, l)) {
3654
+ const o = {};
3646
3655
  for (const l in f)
3647
- f.hasOwnProperty(l) && s(l, f[l]) && (r[l] = f[l]);
3648
- return r;
3656
+ f.hasOwnProperty(l) && s(l, f[l]) && (o[l] = f[l]);
3657
+ return o;
3649
3658
  }
3650
- function Ta(f, s, r = "value", l = "label", e = "children") {
3659
+ function Va(f, s, o = "value", l = "label", e = "children") {
3651
3660
  for (const i of f) {
3652
- if (i[r] === s)
3661
+ if (i[o] === s)
3653
3662
  return i[l];
3654
3663
  if (i[e] && i[e].length > 0) {
3655
- const M = Ta(i[e], s, r, l, e);
3664
+ const M = Va(i[e], s, o, l, e);
3656
3665
  if (M)
3657
3666
  return M;
3658
3667
  }
@@ -3661,30 +3670,30 @@ function Ta(f, s, r = "value", l = "label", e = "children") {
3661
3670
  }
3662
3671
  function Dt(f) {
3663
3672
  if (!f || isNaN(f)) return "零";
3664
- const s = ["角", "分"], r = ["零", "壹", "贰", "叁", "肆", "伍", "陆", "柒", "捌", "玖"], l = [
3673
+ const s = ["角", "分"], o = ["零", "壹", "贰", "叁", "肆", "伍", "陆", "柒", "捌", "玖"], l = [
3665
3674
  ["元", "万", "亿"],
3666
3675
  ["", "拾", "佰", "仟"]
3667
3676
  ], e = f < 0 ? "欠" : "";
3668
3677
  f = Math.abs(f);
3669
3678
  let i = "";
3670
3679
  for (let M = 0; M < s.length; M++)
3671
- i += (r[Math.floor(f * 10 * Math.pow(10, M)) % 10] + s[M]).replace(/零./, "");
3680
+ i += (o[Math.floor(f * 10 * Math.pow(10, M)) % 10] + s[M]).replace(/零./, "");
3672
3681
  i = i || "整", f = Math.floor(f);
3673
3682
  for (let M = 0; M < l[0].length && f > 0; M++) {
3674
- let U = "";
3675
- for (let S = 0; S < l[1].length && f > 0; S++)
3676
- U = r[f % 10] + l[1][S] + U, f = Math.floor(f / 10);
3677
- i = U.replace(/(零.)*零$/, "").replace(/^$/, "零") + l[0][M] + i;
3683
+ let Y = "";
3684
+ for (let V = 0; V < l[1].length && f > 0; V++)
3685
+ Y = o[f % 10] + l[1][V] + Y, f = Math.floor(f / 10);
3686
+ i = Y.replace(/(零.)*零$/, "").replace(/^$/, "零") + l[0][M] + i;
3678
3687
  }
3679
3688
  return e + i.replace(/(零.)*零元/, "元").replace(/(零.)+/g, "零").replace(/^整$/, "零元整");
3680
3689
  }
3681
- function xa(f) {
3690
+ function Ta(f) {
3682
3691
  if (typeof f != "number" || isNaN(f) || !isFinite(f))
3683
3692
  return "0.00";
3684
- const s = f.toFixed(2), [r, l] = s.split(".");
3685
- return `${r.replace(/\B(?=(\d{3})+(?!\d))/g, ",")}.${l}`;
3693
+ const s = f.toFixed(2), [o, l] = s.split(".");
3694
+ return `${o.replace(/\B(?=(\d{3})+(?!\d))/g, ",")}.${l}`;
3686
3695
  }
3687
- const ke = {
3696
+ const De = {
3688
3697
  RADIO: "radio",
3689
3698
  RADIOBUTTON: "radio-button",
3690
3699
  CHECKBOX: "checkbox",
@@ -3717,10 +3726,10 @@ const ke = {
3717
3726
  const f = document.querySelector(".el-dialog");
3718
3727
  if (!f || f.querySelector(".dialog-resize-handle"))
3719
3728
  return;
3720
- const s = Fa();
3721
- f.appendChild(s), qa(f), Oa(f, s);
3729
+ const s = xa();
3730
+ f.appendChild(s), Fa(f), qa(f, s);
3722
3731
  });
3723
- }, Fa = () => {
3732
+ }, xa = () => {
3724
3733
  const f = document.createElement("div");
3725
3734
  return Object.assign(f.style, {
3726
3735
  position: "absolute",
@@ -3732,7 +3741,7 @@ const ke = {
3732
3741
  cursor: "nwse-resize",
3733
3742
  zIndex: "999999999999"
3734
3743
  }), f.className = "dialog-resize-handle", f;
3735
- }, qa = (f) => {
3744
+ }, Fa = (f) => {
3736
3745
  Object.assign(f.style, {
3737
3746
  transition: "none",
3738
3747
  minWidth: "300px",
@@ -3740,28 +3749,28 @@ const ke = {
3740
3749
  resize: "none"
3741
3750
  // 防止与原生resize冲突
3742
3751
  });
3743
- }, Oa = (f, s) => {
3744
- let r = !1, l, e, i, M;
3745
- const U = (k) => {
3746
- k.preventDefault(), r = !0, l = k.clientX, e = k.clientY, i = parseInt(document.defaultView.getComputedStyle(f).width), M = parseInt(document.defaultView.getComputedStyle(f).height), document.addEventListener("mousemove", S), document.addEventListener("mouseup", E);
3747
- }, S = (k) => {
3748
- if (!r) return;
3749
- const R = Math.max(300, i + k.clientX - l), te = Math.max(200, M + k.clientY - e);
3750
- f.style.width = `${R}px`, f.style.height = `${te}px`;
3751
- }, E = () => {
3752
- r = !1, document.removeEventListener("mousemove", S), document.removeEventListener("mouseup", E);
3752
+ }, qa = (f, s) => {
3753
+ let o = !1, l, e, i, M;
3754
+ const Y = (k) => {
3755
+ k.preventDefault(), o = !0, l = k.clientX, e = k.clientY, i = parseInt(document.defaultView.getComputedStyle(f).width), M = parseInt(document.defaultView.getComputedStyle(f).height), document.addEventListener("mousemove", V), document.addEventListener("mouseup", _);
3756
+ }, V = (k) => {
3757
+ if (!o) return;
3758
+ const L = Math.max(300, i + k.clientX - l), te = Math.max(200, M + k.clientY - e);
3759
+ f.style.width = `${L}px`, f.style.height = `${te}px`;
3760
+ }, _ = () => {
3761
+ o = !1, document.removeEventListener("mousemove", V), document.removeEventListener("mouseup", _);
3753
3762
  };
3754
- s.addEventListener("mousedown", U);
3763
+ s.addEventListener("mousedown", Y);
3755
3764
  };
3756
3765
  export {
3757
- ke as CT,
3766
+ De as CT,
3758
3767
  ht as bindResize,
3759
3768
  jt as convertToPx,
3760
- La as default,
3761
- Be as filterObject,
3762
- Ta as findTreeLabelByValue,
3763
- xa as formatAmount,
3764
- Fe as mergeObjects,
3769
+ Ua as default,
3770
+ Ye as filterObject,
3771
+ Va as findTreeLabelByValue,
3772
+ Ta as formatAmount,
3773
+ qe as mergeObjects,
3765
3774
  Dt as moneyToChinese,
3766
3775
  Ct as openModal
3767
3776
  };