vue-2024-ui 0.2.11 → 0.2.13

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,5 +1,5 @@
1
1
  import Qt, { ElForm as pt, ElButtonGroup as mt, ElButton as Be, ElPopover as $t, ElMessage as Ge, ElMessageBox as qt, ElDialog as Zt, ElDrawer as Jt } from "element-plus";
2
- import { h as ke, mergeModels as Xe, useModel as Qe, ref as oe, nextTick as at, onMounted as ut, computed as Je, resolveComponent as H, openBlock as p, createElementBlock as I, Fragment as J, createElementVNode as Q, createBlock as B, createCommentVNode as ge, unref as P, mergeProps as O, withCtx as D, renderSlot as M, renderList as N, createTextVNode as Ie, toDisplayString as De, createSlots as ye, createVNode as K, normalizeStyle as qe, normalizeProps as Et, useSlots as At, inject as Mt, useAttrs as Tt, onUnmounted as Kt, withModifiers as yt, resolveDynamicComponent as We, guardReactiveProps as el, Transition as tl, withDirectives as ll, vShow as rl, onBeforeUnmount as al, normalizeClass as Bt, watchEffect as ol, onBeforeMount as nl, watch as ul, createApp as sl } from "vue";
2
+ import { h as ke, mergeModels as Xe, useModel as Qe, ref as oe, nextTick as rt, onMounted as ut, computed as Je, resolveComponent as H, openBlock as p, createElementBlock as I, Fragment as J, createElementVNode as Q, createBlock as B, createCommentVNode as ge, unref as P, mergeProps as O, withCtx as D, renderSlot as M, renderList as N, createTextVNode as Ie, toDisplayString as De, createSlots as ye, createVNode as K, normalizeStyle as qe, normalizeProps as Et, useSlots as At, inject as Mt, useAttrs as Tt, onUnmounted as Kt, withModifiers as yt, resolveDynamicComponent as We, guardReactiveProps as el, Transition as tl, withDirectives as ll, vShow as al, onBeforeUnmount as rl, normalizeClass as Bt, watchEffect as ol, onBeforeMount as nl, watch as ul, createApp as sl } from "vue";
3
3
  import { CircleCheck as Ot, Refresh as It, Plus as il, ZoomIn as dl, Delete as Ut, More as cl, Search as fl, Download as Yt, DocumentCopy as vl, View as pl, Edit as ml, CirclePlus as hl, Setting as yl, FullScreen as gl, CopyDocument as bl } from "@element-plus/icons-vue";
4
4
  import Rt from "sortablejs";
5
5
  import { Dexie as $l } from "dexie";
@@ -181,68 +181,68 @@ var wl = {
181
181
  }
182
182
  }
183
183
  }, El = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
184
- function Lt(a) {
185
- return a && a.__esModule && Object.prototype.hasOwnProperty.call(a, "default") ? a.default : a;
184
+ function Lt(r) {
185
+ return r && r.__esModule && Object.prototype.hasOwnProperty.call(r, "default") ? r.default : r;
186
186
  }
187
187
  var Ht = { exports: {} };
188
- (function(a, n) {
189
- (function(r, t) {
190
- a.exports = t();
188
+ (function(r, n) {
189
+ (function(a, t) {
190
+ r.exports = t();
191
191
  })(El, function() {
192
- var r = 1e3, t = 6e4, e = 36e5, o = "millisecond", E = "second", v = "minute", F = "hour", f = "day", i = "week", s = "month", c = "quarter", _ = "year", V = "date", j = "Invalid Date", R = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, L = /\[([^\]]+)]|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, te = { 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($) {
193
- var g = ["th", "st", "nd", "rd"], u = $ % 100;
194
- return "[" + $ + (g[(u - 20) % 10] || g[u] || g[0]) + "]";
195
- } }, me = function($, g, u) {
196
- var q = String($);
197
- return !q || q.length >= g ? $ : "" + Array(g + 1 - q.length).join(u) + $;
198
- }, ie = { s: me, z: function($) {
199
- var g = -$.utcOffset(), u = Math.abs(g), q = Math.floor(u / 60), C = u % 60;
200
- return (g <= 0 ? "+" : "-") + me(q, 2, "0") + ":" + me(C, 2, "0");
201
- }, m: function $(g, u) {
202
- if (g.date() < u.date()) return -$(u, g);
203
- var q = 12 * (u.year() - g.year()) + (u.month() - g.month()), C = g.clone().add(q, s), k = u - C < 0, U = g.clone().add(q + (k ? -1 : 1), s);
192
+ var a = 1e3, t = 6e4, e = 36e5, o = "millisecond", g = "second", v = "minute", F = "hour", f = "day", i = "week", s = "month", c = "quarter", _ = "year", V = "date", j = "Invalid Date", R = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, L = /\[([^\]]+)]|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, te = { 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(w) {
193
+ var b = ["th", "st", "nd", "rd"], u = w % 100;
194
+ return "[" + w + (b[(u - 20) % 10] || b[u] || b[0]) + "]";
195
+ } }, me = function(w, b, u) {
196
+ var q = String(w);
197
+ return !q || q.length >= b ? w : "" + Array(b + 1 - q.length).join(u) + w;
198
+ }, ie = { s: me, z: function(w) {
199
+ var b = -w.utcOffset(), u = Math.abs(b), q = Math.floor(u / 60), C = u % 60;
200
+ return (b <= 0 ? "+" : "-") + me(q, 2, "0") + ":" + me(C, 2, "0");
201
+ }, m: function w(b, u) {
202
+ if (b.date() < u.date()) return -w(u, b);
203
+ var q = 12 * (u.year() - b.year()) + (u.month() - b.month()), C = b.clone().add(q, s), k = u - C < 0, U = b.clone().add(q + (k ? -1 : 1), s);
204
204
  return +(-(q + (u - C) / (k ? C - U : U - C)) || 0);
205
- }, a: function($) {
206
- return $ < 0 ? Math.ceil($) || 0 : Math.floor($);
207
- }, p: function($) {
208
- return { M: s, y: _, w: i, d: f, D: V, h: F, m: v, s: E, ms: o, Q: c }[$] || String($ || "").toLowerCase().replace(/s$/, "");
209
- }, u: function($) {
210
- return $ === void 0;
205
+ }, a: function(w) {
206
+ return w < 0 ? Math.ceil(w) || 0 : Math.floor(w);
207
+ }, p: function(w) {
208
+ return { M: s, y: _, w: i, d: f, D: V, h: F, m: v, s: g, ms: o, Q: c }[w] || String(w || "").toLowerCase().replace(/s$/, "");
209
+ }, u: function(w) {
210
+ return w === void 0;
211
211
  } }, ce = "en", de = {};
212
212
  de[ce] = te;
213
- var Ce = "$isDayjsObject", Te = function($) {
214
- return $ instanceof Oe || !(!$ || !$[Ce]);
215
- }, le = function $(g, u, q) {
213
+ var Ce = "$isDayjsObject", Te = function(w) {
214
+ return w instanceof Oe || !(!w || !w[Ce]);
215
+ }, le = function w(b, u, q) {
216
216
  var C;
217
- if (!g) return ce;
218
- if (typeof g == "string") {
219
- var k = g.toLowerCase();
217
+ if (!b) return ce;
218
+ if (typeof b == "string") {
219
+ var k = b.toLowerCase();
220
220
  de[k] && (C = k), u && (de[k] = u, C = k);
221
- var U = g.split("-");
222
- if (!C && U.length > 1) return $(U[0]);
221
+ var U = b.split("-");
222
+ if (!C && U.length > 1) return w(U[0]);
223
223
  } else {
224
- var Z = g.name;
225
- de[Z] = g, C = Z;
224
+ var Z = b.name;
225
+ de[Z] = b, C = Z;
226
226
  }
227
227
  return !q && C && (ce = C), C || !q && ce;
228
- }, ne = function($, g) {
229
- if (Te($)) return $.clone();
230
- var u = typeof g == "object" ? g : {};
231
- return u.date = $, u.args = arguments, new Oe(u);
232
- }, re = ie;
233
- re.l = le, re.i = Te, re.w = function($, g) {
234
- return ne($, { locale: g.$L, utc: g.$u, x: g.$x, $offset: g.$offset });
228
+ }, ne = function(w, b) {
229
+ if (Te(w)) return w.clone();
230
+ var u = typeof b == "object" ? b : {};
231
+ return u.date = w, u.args = arguments, new Oe(u);
232
+ }, ae = ie;
233
+ ae.l = le, ae.i = Te, ae.w = function(w, b) {
234
+ return ne(w, { locale: b.$L, utc: b.$u, x: b.$x, $offset: b.$offset });
235
235
  };
236
236
  var Oe = function() {
237
- function $(u) {
237
+ function w(u) {
238
238
  this.$L = le(u.locale, null, !0), this.parse(u), this.$x = this.$x || u.x || {}, this[Ce] = !0;
239
239
  }
240
- var g = $.prototype;
241
- return g.parse = function(u) {
240
+ var b = w.prototype;
241
+ return b.parse = function(u) {
242
242
  this.$d = function(q) {
243
243
  var C = q.date, k = q.utc;
244
244
  if (C === null) return /* @__PURE__ */ new Date(NaN);
245
- if (re.u(C)) return /* @__PURE__ */ new Date();
245
+ if (ae.u(C)) return /* @__PURE__ */ new Date();
246
246
  if (C instanceof Date) return new Date(C);
247
247
  if (typeof C == "string" && !/Z$/i.test(C)) {
248
248
  var U = C.match(R);
@@ -253,89 +253,89 @@ var Ht = { exports: {} };
253
253
  }
254
254
  return new Date(C);
255
255
  }(u), this.init();
256
- }, g.init = function() {
256
+ }, b.init = function() {
257
257
  var u = this.$d;
258
258
  this.$y = u.getFullYear(), this.$M = u.getMonth(), this.$D = u.getDate(), this.$W = u.getDay(), this.$H = u.getHours(), this.$m = u.getMinutes(), this.$s = u.getSeconds(), this.$ms = u.getMilliseconds();
259
- }, g.$utils = function() {
260
- return re;
261
- }, g.isValid = function() {
259
+ }, b.$utils = function() {
260
+ return ae;
261
+ }, b.isValid = function() {
262
262
  return this.$d.toString() !== j;
263
- }, g.isSame = function(u, q) {
263
+ }, b.isSame = function(u, q) {
264
264
  var C = ne(u);
265
265
  return this.startOf(q) <= C && C <= this.endOf(q);
266
- }, g.isAfter = function(u, q) {
266
+ }, b.isAfter = function(u, q) {
267
267
  return ne(u) < this.startOf(q);
268
- }, g.isBefore = function(u, q) {
268
+ }, b.isBefore = function(u, q) {
269
269
  return this.endOf(q) < ne(u);
270
- }, g.$g = function(u, q, C) {
271
- return re.u(u) ? this[q] : this.set(C, u);
272
- }, g.unix = function() {
270
+ }, b.$g = function(u, q, C) {
271
+ return ae.u(u) ? this[q] : this.set(C, u);
272
+ }, b.unix = function() {
273
273
  return Math.floor(this.valueOf() / 1e3);
274
- }, g.valueOf = function() {
274
+ }, b.valueOf = function() {
275
275
  return this.$d.getTime();
276
- }, g.startOf = function(u, q) {
277
- var C = this, k = !!re.u(q) || q, U = re.p(u), Z = function($e, we) {
278
- var Ee = re.w(C.$u ? Date.UTC(C.$y, we, $e) : new Date(C.$y, we, $e), C);
276
+ }, b.startOf = function(u, q) {
277
+ var C = this, k = !!ae.u(q) || q, U = ae.p(u), Z = function($e, we) {
278
+ var Ee = ae.w(C.$u ? Date.UTC(C.$y, we, $e) : new Date(C.$y, we, $e), C);
279
279
  return k ? Ee : Ee.endOf(f);
280
280
  }, G = function($e, we) {
281
- return re.w(C.toDate()[$e].apply(C.toDate("s"), (k ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(we)), C);
282
- }, pe = this.$W, w = this.$M, y = this.$D, ae = "set" + (this.$u ? "UTC" : "");
281
+ return ae.w(C.toDate()[$e].apply(C.toDate("s"), (k ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(we)), C);
282
+ }, pe = this.$W, E = this.$M, y = this.$D, re = "set" + (this.$u ? "UTC" : "");
283
283
  switch (U) {
284
284
  case _:
285
285
  return k ? Z(1, 0) : Z(31, 11);
286
286
  case s:
287
- return k ? Z(1, w) : Z(0, w + 1);
287
+ return k ? Z(1, E) : Z(0, E + 1);
288
288
  case i:
289
289
  var he = this.$locale().weekStart || 0, be = (pe < he ? pe + 7 : pe) - he;
290
- return Z(k ? y - be : y + (6 - be), w);
290
+ return Z(k ? y - be : y + (6 - be), E);
291
291
  case f:
292
292
  case V:
293
- return G(ae + "Hours", 0);
293
+ return G(re + "Hours", 0);
294
294
  case F:
295
- return G(ae + "Minutes", 1);
295
+ return G(re + "Minutes", 1);
296
296
  case v:
297
- return G(ae + "Seconds", 2);
298
- case E:
299
- return G(ae + "Milliseconds", 3);
297
+ return G(re + "Seconds", 2);
298
+ case g:
299
+ return G(re + "Milliseconds", 3);
300
300
  default:
301
301
  return this.clone();
302
302
  }
303
- }, g.endOf = function(u) {
303
+ }, b.endOf = function(u) {
304
304
  return this.startOf(u, !1);
305
- }, g.$set = function(u, q) {
306
- var C, k = re.p(u), U = "set" + (this.$u ? "UTC" : ""), Z = (C = {}, C[f] = U + "Date", C[V] = U + "Date", C[s] = U + "Month", C[_] = U + "FullYear", C[F] = U + "Hours", C[v] = U + "Minutes", C[E] = U + "Seconds", C[o] = U + "Milliseconds", C)[k], G = k === f ? this.$D + (q - this.$W) : q;
305
+ }, b.$set = function(u, q) {
306
+ var C, k = ae.p(u), U = "set" + (this.$u ? "UTC" : ""), Z = (C = {}, C[f] = U + "Date", C[V] = U + "Date", C[s] = U + "Month", C[_] = U + "FullYear", C[F] = U + "Hours", C[v] = U + "Minutes", C[g] = U + "Seconds", C[o] = U + "Milliseconds", C)[k], G = k === f ? this.$D + (q - this.$W) : q;
307
307
  if (k === s || k === _) {
308
308
  var pe = this.clone().set(V, 1);
309
309
  pe.$d[Z](G), pe.init(), this.$d = pe.set(V, Math.min(this.$D, pe.daysInMonth())).$d;
310
310
  } else Z && this.$d[Z](G);
311
311
  return this.init(), this;
312
- }, g.set = function(u, q) {
312
+ }, b.set = function(u, q) {
313
313
  return this.clone().$set(u, q);
314
- }, g.get = function(u) {
315
- return this[re.p(u)]();
316
- }, g.add = function(u, q) {
314
+ }, b.get = function(u) {
315
+ return this[ae.p(u)]();
316
+ }, b.add = function(u, q) {
317
317
  var C, k = this;
318
318
  u = Number(u);
319
- var U = re.p(q), Z = function(w) {
319
+ var U = ae.p(q), Z = function(E) {
320
320
  var y = ne(k);
321
- return re.w(y.date(y.date() + Math.round(w * u)), k);
321
+ return ae.w(y.date(y.date() + Math.round(E * u)), k);
322
322
  };
323
323
  if (U === s) return this.set(s, this.$M + u);
324
324
  if (U === _) return this.set(_, this.$y + u);
325
325
  if (U === f) return Z(1);
326
326
  if (U === i) return Z(7);
327
- var G = (C = {}, C[v] = t, C[F] = e, C[E] = r, C)[U] || 1, pe = this.$d.getTime() + u * G;
328
- return re.w(pe, this);
329
- }, g.subtract = function(u, q) {
327
+ var G = (C = {}, C[v] = t, C[F] = e, C[g] = a, C)[U] || 1, pe = this.$d.getTime() + u * G;
328
+ return ae.w(pe, this);
329
+ }, b.subtract = function(u, q) {
330
330
  return this.add(-1 * u, q);
331
- }, g.format = function(u) {
331
+ }, b.format = function(u) {
332
332
  var q = this, C = this.$locale();
333
333
  if (!this.isValid()) return C.invalidDate || j;
334
- var k = u || "YYYY-MM-DDTHH:mm:ssZ", U = re.z(this), Z = this.$H, G = this.$m, pe = this.$M, w = C.weekdays, y = C.months, ae = C.meridiem, he = function(we, Ee, Me, xe) {
334
+ var k = u || "YYYY-MM-DDTHH:mm:ssZ", U = ae.z(this), Z = this.$H, G = this.$m, pe = this.$M, E = C.weekdays, y = C.months, re = C.meridiem, he = function(we, Ee, Me, xe) {
335
335
  return we && (we[Ee] || we(q, k)) || Me[Ee].slice(0, xe);
336
336
  }, be = function(we) {
337
- return re.s(Z % 12 || 12, we, "0");
338
- }, $e = ae || function(we, Ee, Me) {
337
+ return ae.s(Z % 12 || 12, we, "0");
338
+ }, $e = re || function(we, Ee, Me) {
339
339
  var xe = we < 12 ? "AM" : "PM";
340
340
  return Me ? xe.toLowerCase() : xe;
341
341
  };
@@ -345,11 +345,11 @@ var Ht = { exports: {} };
345
345
  case "YY":
346
346
  return String(q.$y).slice(-2);
347
347
  case "YYYY":
348
- return re.s(q.$y, 4, "0");
348
+ return ae.s(q.$y, 4, "0");
349
349
  case "M":
350
350
  return pe + 1;
351
351
  case "MM":
352
- return re.s(pe + 1, 2, "0");
352
+ return ae.s(pe + 1, 2, "0");
353
353
  case "MMM":
354
354
  return he(C.monthsShort, pe, y, 3);
355
355
  case "MMMM":
@@ -357,19 +357,19 @@ var Ht = { exports: {} };
357
357
  case "D":
358
358
  return q.$D;
359
359
  case "DD":
360
- return re.s(q.$D, 2, "0");
360
+ return ae.s(q.$D, 2, "0");
361
361
  case "d":
362
362
  return String(q.$W);
363
363
  case "dd":
364
- return he(C.weekdaysMin, q.$W, w, 2);
364
+ return he(C.weekdaysMin, q.$W, E, 2);
365
365
  case "ddd":
366
- return he(C.weekdaysShort, q.$W, w, 3);
366
+ return he(C.weekdaysShort, q.$W, E, 3);
367
367
  case "dddd":
368
- return w[q.$W];
368
+ return E[q.$W];
369
369
  case "H":
370
370
  return String(Z);
371
371
  case "HH":
372
- return re.s(Z, 2, "0");
372
+ return ae.s(Z, 2, "0");
373
373
  case "h":
374
374
  return be(1);
375
375
  case "hh":
@@ -381,24 +381,24 @@ var Ht = { exports: {} };
381
381
  case "m":
382
382
  return String(G);
383
383
  case "mm":
384
- return re.s(G, 2, "0");
384
+ return ae.s(G, 2, "0");
385
385
  case "s":
386
386
  return String(q.$s);
387
387
  case "ss":
388
- return re.s(q.$s, 2, "0");
388
+ return ae.s(q.$s, 2, "0");
389
389
  case "SSS":
390
- return re.s(q.$ms, 3, "0");
390
+ return ae.s(q.$ms, 3, "0");
391
391
  case "Z":
392
392
  return U;
393
393
  }
394
394
  return null;
395
395
  }(we) || U.replace(":", "");
396
396
  });
397
- }, g.utcOffset = function() {
397
+ }, b.utcOffset = function() {
398
398
  return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
399
- }, g.diff = function(u, q, C) {
400
- var k, U = this, Z = re.p(q), G = ne(u), pe = (G.utcOffset() - this.utcOffset()) * t, w = this - G, y = function() {
401
- return re.m(U, G);
399
+ }, b.diff = function(u, q, C) {
400
+ var k, U = this, Z = ae.p(q), G = ne(u), pe = (G.utcOffset() - this.utcOffset()) * t, E = this - G, y = function() {
401
+ return ae.m(U, G);
402
402
  };
403
403
  switch (Z) {
404
404
  case _:
@@ -411,52 +411,52 @@ var Ht = { exports: {} };
411
411
  k = y() / 3;
412
412
  break;
413
413
  case i:
414
- k = (w - pe) / 6048e5;
414
+ k = (E - pe) / 6048e5;
415
415
  break;
416
416
  case f:
417
- k = (w - pe) / 864e5;
417
+ k = (E - pe) / 864e5;
418
418
  break;
419
419
  case F:
420
- k = w / e;
420
+ k = E / e;
421
421
  break;
422
422
  case v:
423
- k = w / t;
423
+ k = E / t;
424
424
  break;
425
- case E:
426
- k = w / r;
425
+ case g:
426
+ k = E / a;
427
427
  break;
428
428
  default:
429
- k = w;
429
+ k = E;
430
430
  }
431
- return C ? k : re.a(k);
432
- }, g.daysInMonth = function() {
431
+ return C ? k : ae.a(k);
432
+ }, b.daysInMonth = function() {
433
433
  return this.endOf(s).$D;
434
- }, g.$locale = function() {
434
+ }, b.$locale = function() {
435
435
  return de[this.$L];
436
- }, g.locale = function(u, q) {
436
+ }, b.locale = function(u, q) {
437
437
  if (!u) return this.$L;
438
438
  var C = this.clone(), k = le(u, q, !0);
439
439
  return k && (C.$L = k), C;
440
- }, g.clone = function() {
441
- return re.w(this.$d, this);
442
- }, g.toDate = function() {
440
+ }, b.clone = function() {
441
+ return ae.w(this.$d, this);
442
+ }, b.toDate = function() {
443
443
  return new Date(this.valueOf());
444
- }, g.toJSON = function() {
444
+ }, b.toJSON = function() {
445
445
  return this.isValid() ? this.toISOString() : null;
446
- }, g.toISOString = function() {
446
+ }, b.toISOString = function() {
447
447
  return this.$d.toISOString();
448
- }, g.toString = function() {
448
+ }, b.toString = function() {
449
449
  return this.$d.toUTCString();
450
- }, $;
450
+ }, w;
451
451
  }(), T = Oe.prototype;
452
- return ne.prototype = T, [["$ms", o], ["$s", E], ["$m", v], ["$H", F], ["$W", f], ["$M", s], ["$y", _], ["$D", V]].forEach(function($) {
453
- T[$[1]] = function(g) {
454
- return this.$g(g, $[0], $[1]);
452
+ return ne.prototype = T, [["$ms", o], ["$s", g], ["$m", v], ["$H", F], ["$W", f], ["$M", s], ["$y", _], ["$D", V]].forEach(function(w) {
453
+ T[w[1]] = function(b) {
454
+ return this.$g(b, w[0], w[1]);
455
455
  };
456
- }), ne.extend = function($, g) {
457
- return $.$i || ($(g, Oe, ne), $.$i = !0), ne;
458
- }, ne.locale = le, ne.isDayjs = Te, ne.unix = function($) {
459
- return ne(1e3 * $);
456
+ }), ne.extend = function(w, b) {
457
+ return w.$i || (w(b, Oe, ne), w.$i = !0), ne;
458
+ }, ne.locale = le, ne.isDayjs = Te, ne.unix = function(w) {
459
+ return ne(1e3 * w);
460
460
  }, ne.en = de[ce], ne.Ls = de, ne.p = {}, ne;
461
461
  });
462
462
  })(Ht);
@@ -505,11 +505,11 @@ const wt = /* @__PURE__ */ Lt(_l), zt = {
505
505
  type: "card",
506
506
  editable: !1
507
507
  }
508
- }, Ze = (a, n) => {
509
- const r = a.__vccOpts || a;
508
+ }, Ze = (r, n) => {
509
+ const a = r.__vccOpts || r;
510
510
  for (const [t, e] of n)
511
- r[t] = e;
512
- return r;
511
+ a[t] = e;
512
+ return a;
513
513
  }, kl = {
514
514
  style: { display: "flex", width: "100%" },
515
515
  class: "g-ctrl-container"
@@ -520,21 +520,21 @@ const wt = /* @__PURE__ */ Lt(_l), zt = {
520
520
  modelModifiers: {}
521
521
  }),
522
522
  emits: ["update:modelValue"],
523
- setup(a) {
524
- var Oe, T, $, g, u, q, C, k, U, Z, G, pe;
525
- const n = Qe(a, "modelValue"), r = a, t = oe(r.item || {}), e = oe(r.ctrlKey), o = oe(r.ctrlType), E = oe(r.model), v = oe([]), F = oe([]), f = oe(!1), i = oe(!1);
526
- !((Oe = o.value) != null && Oe.startsWith("text")) && !((T = o.value) != null && T.startsWith("link")) && !(($ = o.value) != null && $.startsWith("tag")) && !((g = o.value) != null && g.startsWith("div")) && !((u = o.value) != null && u.startsWith("span")) && !((q = o.value) != null && q.startsWith("avatar")) && ((C = t.value) != null && C.style || (t.value.style = { width: ((U = (k = t.value) == null ? void 0 : k.style) == null ? void 0 : U.width) || "100%" }));
527
- const s = oe({ display: "flex", flex: 1 }), c = r.t === "t" ? "center" : "flex-start", _ = ((Z = t.value) == null ? void 0 : Z.style) || {};
523
+ setup(r) {
524
+ var Oe, T, w, b, u, q, C, k, U, Z, G, pe;
525
+ const n = Qe(r, "modelValue"), a = r, t = oe(a.item || {}), e = oe(a.ctrlKey), o = oe(a.ctrlType), g = oe(a.model), v = oe([]), F = oe([]), f = oe(!1), i = oe(!1);
526
+ !((Oe = o.value) != null && Oe.startsWith("text")) && !((T = o.value) != null && T.startsWith("link")) && !((w = o.value) != null && w.startsWith("tag")) && !((b = o.value) != null && b.startsWith("div")) && !((u = o.value) != null && u.startsWith("span")) && !((q = o.value) != null && q.startsWith("avatar")) && ((C = t.value) != null && C.style || (t.value.style = { width: ((U = (k = t.value) == null ? void 0 : k.style) == null ? void 0 : U.width) || "100%" }));
527
+ const s = oe({ display: "flex", flex: 1 }), c = a.t === "t" ? "center" : "flex-start", _ = ((Z = t.value) == null ? void 0 : Z.style) || {};
528
528
  s.value = { ...s.value, justifyContent: c, ..._ };
529
529
  const V = () => {
530
- const w = At(), y = Object.keys(w), ae = `${r.t}-${e.value}-`;
531
- return y.filter(($e) => $e.startsWith(ae)).map(($e) => $e.replace(ae, ""));
530
+ const E = At(), y = Object.keys(E), re = `${a.t}-${e.value}-`;
531
+ return y.filter(($e) => $e.startsWith(re)).map(($e) => $e.replace(re, ""));
532
532
  }, j = oe({
533
533
  multiple: !1,
534
534
  "show-file-list": !1,
535
535
  "file-list": [],
536
- showDel: (G = t.value) != null && G.showDel ? (pe = t.value) == null ? void 0 : pe.showDel : r.t !== "t"
537
- }), R = oe(t.value.innerHtml), L = (w) => [
536
+ showDel: (G = t.value) != null && G.showDel ? (pe = t.value) == null ? void 0 : pe.showDel : a.t !== "t"
537
+ }), R = oe(t.value.innerHtml), L = (E) => [
538
538
  "year",
539
539
  "years",
540
540
  "month",
@@ -547,7 +547,7 @@ const wt = /* @__PURE__ */ Lt(_l), zt = {
547
547
  "daterange",
548
548
  "monthrange",
549
549
  "yearrange"
550
- ].includes(w), te = (w) => ({
550
+ ].includes(E), te = (E) => ({
551
551
  year: "YYYY",
552
552
  years: "YYYY",
553
553
  month: "YYYY-MM",
@@ -561,62 +561,62 @@ const wt = /* @__PURE__ */ Lt(_l), zt = {
561
561
  daterange: "YYYY-MM-DD",
562
562
  monthrange: "YYYY-MM",
563
563
  yearrange: "YYYY"
564
- })[w] || "YYYY-MM-DD", me = oe({
564
+ })[E] || "YYYY-MM-DD", me = oe({
565
565
  filterable: !0,
566
566
  remote: !!(t.value && t.value["remote-method"]),
567
567
  ...t.value
568
- }), ie = oe((w) => {
569
- t.value["remote-method"](w, (y) => {
570
- at(() => {
568
+ }), ie = oe((E) => {
569
+ t.value["remote-method"](E, (y) => {
570
+ rt(() => {
571
571
  F.value = y;
572
572
  });
573
573
  });
574
- }), ce = async (w = "options") => {
574
+ }), ce = async (E = "options") => {
575
575
  var y;
576
576
  try {
577
- const ae = await ((y = t.value) == null ? void 0 : y.getDicts(r.formInfo));
578
- if (typeof ae == "string")
579
- F.value = [{ label: ae, value: n.value }];
577
+ const re = await ((y = t.value) == null ? void 0 : y.getDicts(a.formInfo));
578
+ if (typeof re == "string")
579
+ F.value = [{ label: re, value: n.value }];
580
580
  else {
581
- const he = ae == null ? void 0 : ae.map((be, $e) => ({
581
+ const he = re == null ? void 0 : re.map((be, $e) => ({
582
582
  ...be,
583
583
  value: be.value ?? be.label ?? $e,
584
584
  label: be.label || "未知选项"
585
585
  }));
586
586
  F.value = he || [];
587
587
  }
588
- } catch (ae) {
589
- throw console.error("获取选项失败:", ae), ae;
588
+ } catch (re) {
589
+ throw console.error("获取选项失败:", re), re;
590
590
  }
591
591
  }, de = () => {
592
- var w, y;
593
- t.value.noSearch !== !0 && r.t === "q" && ((y = (w = E.value) == null ? void 0 : w.table) == null || y.load());
594
- }, Ce = (w) => {
595
- w.preventDefault(), w.stopPropagation(), n.value = "";
596
- }, Te = (w) => {
592
+ var E, y;
593
+ t.value.noSearch !== !0 && a.t === "q" && ((y = (E = g.value) == null ? void 0 : E.table) == null || y.load());
594
+ }, Ce = (E) => {
595
+ E.preventDefault(), E.stopPropagation(), n.value = "";
596
+ }, Te = (E) => {
597
597
  f.value = !0;
598
- }, le = (w) => {
599
- w.preventDefault(), w.stopPropagation(), f.value = !0;
598
+ }, le = (E) => {
599
+ E.preventDefault(), E.stopPropagation(), f.value = !0;
600
600
  }, ne = oe(null);
601
601
  ut(async () => {
602
- var ae, he, be, $e, we;
603
- t.value && t.value["remote-method"] && (me.value["remote-method"] = ie), (he = (ae = E.value[e.value]) == null ? void 0 : ae.options) != null && he.length && (F.value = E.value[e.value].options);
604
- const w = (Ee, Me = "options", xe = E.value[e.value]) => {
602
+ var re, he, be, $e, we;
603
+ t.value && t.value["remote-method"] && (me.value["remote-method"] = ie), (he = (re = g.value[e.value]) == null ? void 0 : re.options) != null && he.length && (F.value = g.value[e.value].options);
604
+ const E = (Ee, Me = "options", xe = g.value[e.value]) => {
605
605
  typeof t.value.getDicts == "function" && ce(Me).catch((Ye) => {
606
606
  console.error(`Failed to load ${Me} for ${Ee}:`, Ye);
607
607
  });
608
608
  };
609
- if (["radio", "radio-button", "checkbox-group", "checkbox-group-button", "select", "cascader"].includes(o.value) && w(o.value), o.value === Se.TREESELECT && await (async () => {
609
+ if (["radio", "radio-button", "checkbox-group", "checkbox-group-button", "select", "cascader"].includes(o.value) && E(o.value), o.value === Se.TREESELECT && await (async () => {
610
610
  try {
611
- typeof t.value.getDicts == "function" ? v.value = await t.value.getDicts(r.formInfo) : v.value = F.value;
611
+ typeof t.value.getDicts == "function" ? v.value = await t.value.getDicts(a.formInfo) : v.value = F.value;
612
612
  } catch (Me) {
613
613
  console.error("Failed to load data for tree-select:", Me);
614
614
  }
615
- })(), r.t == "q") {
615
+ })(), a.t == "q") {
616
616
  let Ee = t.value.type || o.value;
617
617
  (Ee === void 0 || o.value === "input" || Ee == Se.NUMBER || Ee == Se.EMAIL || Ee == "url" || Ee == "text") && t.value.onKeyup == null && (t.value.onKeyup = (Me) => {
618
618
  var xe, Ye;
619
- (Me.keyCode === 13 || Me.key === "Enter") && ((Ye = (xe = E.value) == null ? void 0 : xe.table) == null || Ye.load());
619
+ (Me.keyCode === 13 || Me.key === "Enter") && ((Ye = (xe = g.value) == null ? void 0 : xe.table) == null || Ye.load());
620
620
  }), [
621
621
  "radio",
622
622
  "switch",
@@ -635,24 +635,24 @@ const wt = /* @__PURE__ */ Lt(_l), zt = {
635
635
  "week"
636
636
  ].includes(Ee) && t.value.onChange === void 0 && (t.value.onChange = (Me) => {
637
637
  var xe, Ye;
638
- (Ye = (xe = E.value) == null ? void 0 : xe.table) == null || Ye.load();
638
+ (Ye = (xe = g.value) == null ? void 0 : xe.table) == null || Ye.load();
639
639
  });
640
640
  }
641
641
  o.value == "image" && (t.value.width && ((be = ne.value) != null && be.$el) && ne.value.$el.style.setProperty("--up-width", typeof t.value.width == "number" ? t.value.width + "px" : t.value.width), t.value.height && (($e = ne.value) != null && $e.$el) && ne.value.$el.style.setProperty("--up-height", typeof t.value.height == "number" ? t.value.height + "px" : t.value.height), t.value.fontSize && ((we = ne.value) != null && we.$el) && ne.value.$el.style.setProperty("--up-font-size", typeof t.value.fontSize == "number" ? t.value.fontSize + "px" : t.value.fontSize));
642
642
  });
643
- const re = Je(() => {
644
- var w;
645
- return t.value["file-list"] && t.value["file-list"].length ? (w = t.value["file-list"]) == null ? void 0 : w.map((y) => y == null ? void 0 : y.url) : [n.value];
643
+ const ae = Je(() => {
644
+ var E;
645
+ return t.value["file-list"] && t.value["file-list"].length ? (E = t.value["file-list"]) == null ? void 0 : E.map((y) => y == null ? void 0 : y.url) : [n.value];
646
646
  });
647
- return (w, y) => {
647
+ return (E, y) => {
648
648
  var nt, z, se, x, X, ee, je, Ne, ze, Pe;
649
- const ae = H("el-image-viewer"), he = H("el-radio"), be = H("el-radio-group"), $e = H("el-radio-button"), we = H("el-checkbox"), Ee = H("el-checkbox-group"), Me = H("el-checkbox-button"), xe = H("g-select-option"), Ye = H("el-option"), st = H("el-select"), it = H("el-tree-select"), dt = H("el-time-picker"), ct = H("el-time-select"), ft = H("el-date-picker"), vt = H("el-color-picker"), l = H("el-rate"), d = H("el-slider"), m = H("el-switch"), b = H("el-transfer"), A = H("el-cascader"), Y = H("el-icon"), W = H("el-image"), fe = H("el-tooltip"), _e = H("el-upload"), Fe = H("el-autocomplete"), Re = H("el-input-number"), Le = H("el-input"), He = H("el-link"), et = H("el-text"), ot = H("el-avatar"), tt = H("el-tag");
649
+ const re = H("el-image-viewer"), he = H("el-radio"), be = H("el-radio-group"), $e = H("el-radio-button"), we = H("el-checkbox"), Ee = H("el-checkbox-group"), Me = H("el-checkbox-button"), xe = H("g-select-option"), Ye = H("el-option"), st = H("el-select"), it = H("el-tree-select"), dt = H("el-time-picker"), ct = H("el-time-select"), ft = H("el-date-picker"), vt = H("el-color-picker"), l = H("el-rate"), d = H("el-slider"), m = H("el-switch"), $ = H("el-transfer"), A = H("el-cascader"), Y = H("el-icon"), W = H("el-image"), fe = H("el-tooltip"), _e = H("el-upload"), Fe = H("el-autocomplete"), Re = H("el-input-number"), Le = H("el-input"), He = H("el-link"), et = H("el-text"), ot = H("el-avatar"), tt = H("el-tag");
650
650
  return p(), I(J, null, [
651
651
  Q("div", null, [
652
- f.value ? (p(), B(ae, {
652
+ f.value ? (p(), B(re, {
653
653
  key: 0,
654
654
  teleported: !0,
655
- "url-list": re.value,
655
+ "url-list": ae.value,
656
656
  onClose: y[0] || (y[0] = (h) => f.value = !1)
657
657
  }, null, 8, ["url-list"])) : ge("", !0)
658
658
  ]),
@@ -660,56 +660,60 @@ const wt = /* @__PURE__ */ Lt(_l), zt = {
660
660
  o.value == P(Se).RADIO ? (p(), B(be, O({
661
661
  key: 0,
662
662
  modelValue: n.value,
663
- "onUpdate:modelValue": y[1] || (y[1] = (h) => n.value = h)
663
+ "onUpdate:modelValue": y[1] || (y[1] = (h) => n.value = h),
664
+ disabled: g.value[e.value].disabled
664
665
  }, t.value), {
665
666
  default: D(() => [
666
- M(w.$slots, `${r.t}-${e.value}`, { data: t.value }, () => [
667
+ M(E.$slots, `${a.t}-${e.value}`, { data: t.value }, () => [
667
668
  (p(!0), I(J, null, N(F.value, (h) => (p(), B(he, O({ ref_for: !0 }, h), {
668
669
  default: D(() => [
669
- M(w.$slots, `${r.t}-${e.value}-options`, { option: h }, void 0, !0)
670
+ M(E.$slots, `${a.t}-${e.value}-options`, { option: h }, void 0, !0)
670
671
  ]),
671
672
  _: 2
672
673
  }, 1040))), 256))
673
674
  ], !0)
674
675
  ]),
675
676
  _: 3
676
- }, 16, ["modelValue"])) : o.value == P(Se).RADIOBUTTON ? (p(), B(be, O({
677
+ }, 16, ["modelValue", "disabled"])) : o.value == P(Se).RADIOBUTTON ? (p(), B(be, O({
677
678
  key: 1,
678
679
  modelValue: n.value,
679
- "onUpdate:modelValue": y[2] || (y[2] = (h) => n.value = h)
680
+ "onUpdate:modelValue": y[2] || (y[2] = (h) => n.value = h),
681
+ disabled: g.value[e.value].disabled
680
682
  }, t.value), {
681
683
  default: D(() => [
682
- M(w.$slots, `${r.t}-${e.value}`, { data: t.value }, () => [
684
+ M(E.$slots, `${a.t}-${e.value}`, { data: t.value }, () => [
683
685
  (p(!0), I(J, null, N(F.value, (h) => (p(), B($e, O({ ref_for: !0 }, h), {
684
686
  default: D(() => [
685
- M(w.$slots, `${r.t}-${e.value}-options`, { option: h }, void 0, !0)
687
+ M(E.$slots, `${a.t}-${e.value}-options`, { option: h }, void 0, !0)
686
688
  ]),
687
689
  _: 2
688
690
  }, 1040))), 256))
689
691
  ], !0)
690
692
  ]),
691
693
  _: 3
692
- }, 16, ["modelValue"])) : o.value == P(Se).CHECKBOX ? (p(), B(we, O({
694
+ }, 16, ["modelValue", "disabled"])) : o.value == P(Se).CHECKBOX ? (p(), B(we, O({
693
695
  key: 2,
694
696
  modelValue: n.value,
695
- "onUpdate:modelValue": y[3] || (y[3] = (h) => n.value = h)
697
+ "onUpdate:modelValue": y[3] || (y[3] = (h) => n.value = h),
698
+ disabled: g.value[e.value].disabled
696
699
  }, t.value), {
697
700
  default: D(() => [
698
- M(w.$slots, `${r.t}-${e.value}`, { data: t.value }, () => [
701
+ M(E.$slots, `${a.t}-${e.value}`, { data: t.value }, () => [
699
702
  y[27] || (y[27] = Ie(De(" ")))
700
703
  ], !0)
701
704
  ]),
702
705
  _: 3
703
- }, 16, ["modelValue"])) : o.value == P(Se).CHECKBOXGROUP ? (p(), B(Ee, O({
706
+ }, 16, ["modelValue", "disabled"])) : o.value == P(Se).CHECKBOXGROUP ? (p(), B(Ee, O({
704
707
  key: 3,
705
708
  modelValue: n.value,
706
- "onUpdate:modelValue": y[4] || (y[4] = (h) => n.value = h)
709
+ "onUpdate:modelValue": y[4] || (y[4] = (h) => n.value = h),
710
+ disabled: g.value[e.value].disabled
707
711
  }, t.value), {
708
712
  default: D(() => [
709
- M(w.$slots, `${r.t}-${e.value}`, { data: t.value }, () => [
713
+ M(E.$slots, `${a.t}-${e.value}`, { data: t.value }, () => [
710
714
  (p(!0), I(J, null, N(F.value, (h) => (p(), B(we, O({ ref_for: !0 }, h), {
711
715
  default: D(() => [
712
- M(w.$slots, `${r.t}-${e.value}-options`, { option: h }, () => [
716
+ M(E.$slots, `${a.t}-${e.value}-options`, { option: h }, () => [
713
717
  Ie(De(h.label), 1)
714
718
  ], !0)
715
719
  ]),
@@ -718,34 +722,36 @@ const wt = /* @__PURE__ */ Lt(_l), zt = {
718
722
  ], !0)
719
723
  ]),
720
724
  _: 3
721
- }, 16, ["modelValue"])) : o.value == P(Se).CHECKBOXGROUPBUTTON ? (p(), B(Ee, O({
725
+ }, 16, ["modelValue", "disabled"])) : o.value == P(Se).CHECKBOXGROUPBUTTON ? (p(), B(Ee, O({
722
726
  key: 4,
723
727
  modelValue: n.value,
724
- "onUpdate:modelValue": y[5] || (y[5] = (h) => n.value = h)
728
+ "onUpdate:modelValue": y[5] || (y[5] = (h) => n.value = h),
729
+ disabled: g.value[e.value].disabled
725
730
  }, t.value), {
726
731
  default: D(() => [
727
- M(w.$slots, `${r.t}-${e.value}`, { data: t.value }, () => [
732
+ M(E.$slots, `${a.t}-${e.value}`, { data: t.value }, () => [
728
733
  (p(!0), I(J, null, N(F.value, (h) => (p(), B(Me, O({ ref_for: !0 }, h), {
729
734
  default: D(() => [
730
- M(w.$slots, `${r.t}-${e.value}-options`, { option: h }, void 0, !0)
735
+ M(E.$slots, `${a.t}-${e.value}-options`, { option: h }, void 0, !0)
731
736
  ]),
732
737
  _: 2
733
738
  }, 1040))), 256))
734
739
  ], !0)
735
740
  ]),
736
741
  _: 3
737
- }, 16, ["modelValue"])) : o.value === P(Se).SELECT ? (p(), B(st, O({
742
+ }, 16, ["modelValue", "disabled"])) : o.value === P(Se).SELECT ? (p(), B(st, O({
738
743
  key: 5,
739
744
  modelValue: n.value,
740
745
  "onUpdate:modelValue": y[6] || (y[6] = (h) => n.value = h),
741
- placeholder: E.value[e.value].label,
746
+ placeholder: g.value[e.value].label,
742
747
  clearable: !0,
743
748
  onClear: y[7] || (y[7] = () => {
744
- r.t == "q" && E.value.table.load();
745
- })
749
+ a.t == "q" && g.value.table.load();
750
+ }),
751
+ disabled: g.value[e.value].disabled
746
752
  }, me.value), ye({
747
753
  default: D(() => [
748
- M(w.$slots, `${r.t}-${e.value}`, { options: F.value }, () => [
754
+ M(E.$slots, `${a.t}-${e.value}`, { options: F.value }, () => [
749
755
  (p(!0), I(J, null, N(F.value, (h) => (p(), I(J, {
750
756
  key: h.value
751
757
  }, [
@@ -757,7 +763,7 @@ const wt = /* @__PURE__ */ Lt(_l), zt = {
757
763
  default: D(() => {
758
764
  var S;
759
765
  return [
760
- (S = t.value) != null && S.columns ? M(w.$slots, `${r.t}-${e.value}-options`, {
766
+ (S = t.value) != null && S.columns ? M(E.$slots, `${a.t}-${e.value}-options`, {
761
767
  key: 0,
762
768
  option: h
763
769
  }, () => {
@@ -766,15 +772,15 @@ const wt = /* @__PURE__ */ Lt(_l), zt = {
766
772
  K(xe, {
767
773
  columns: (ue = t.value) == null ? void 0 : ue.columns,
768
774
  data: h,
769
- t: r.t
775
+ t: a.t
770
776
  }, ye({ _: 2 }, [
771
- N(w.$slots, (Ae, lt) => ({
777
+ N(E.$slots, (Ae, lt) => ({
772
778
  name: lt,
773
- fn: D((rt) => [
774
- M(w.$slots, lt, {
779
+ fn: D((at) => [
780
+ M(E.$slots, lt, {
775
781
  option: h,
776
- data: rt,
777
- form: a.formInfo
782
+ data: at,
783
+ form: r.formInfo
778
784
  }, void 0, !0)
779
785
  ])
780
786
  }))
@@ -797,7 +803,7 @@ const wt = /* @__PURE__ */ Lt(_l), zt = {
797
803
  default: D(() => {
798
804
  var ue;
799
805
  return [
800
- (ue = t.value) != null && ue.columns ? M(w.$slots, `${r.t}-${e.value}-options`, {
806
+ (ue = t.value) != null && ue.columns ? M(E.$slots, `${a.t}-${e.value}-options`, {
801
807
  key: 0,
802
808
  option: S
803
809
  }, () => {
@@ -806,15 +812,15 @@ const wt = /* @__PURE__ */ Lt(_l), zt = {
806
812
  K(xe, {
807
813
  columns: (Ae = t.value) == null ? void 0 : Ae.columns,
808
814
  data: S,
809
- t: r.t
815
+ t: a.t
810
816
  }, ye({ _: 2 }, [
811
- N(w.$slots, (lt, rt) => ({
812
- name: rt,
817
+ N(E.$slots, (lt, at) => ({
818
+ name: at,
813
819
  fn: D((Xt) => [
814
- M(w.$slots, rt, {
820
+ M(E.$slots, at, {
815
821
  option: S,
816
822
  data: Xt,
817
- form: a.formInfo
823
+ form: r.formInfo
818
824
  }, void 0, !0)
819
825
  ])
820
826
  }))
@@ -838,12 +844,12 @@ const wt = /* @__PURE__ */ Lt(_l), zt = {
838
844
  K(xe, {
839
845
  columns: (h = t.value) == null ? void 0 : h.columns,
840
846
  title: !0,
841
- t: r.t
847
+ t: a.t
842
848
  }, ye({ _: 2 }, [
843
- N(w.$slots, (S, ue) => ({
849
+ N(E.$slots, (S, ue) => ({
844
850
  name: ue,
845
851
  fn: D((Ae) => [
846
- M(w.$slots, ue, { data: Ae }, void 0, !0)
852
+ M(E.$slots, ue, { data: Ae }, void 0, !0)
847
853
  ])
848
854
  }))
849
855
  ]), 1032, ["columns", "t"])
@@ -854,75 +860,82 @@ const wt = /* @__PURE__ */ Lt(_l), zt = {
854
860
  N(V(), (h) => ({
855
861
  name: h,
856
862
  fn: D((S) => [
857
- M(w.$slots, `${r.t}-${e.value}-${h}`, { form: a.formInfo }, void 0, !0)
863
+ M(E.$slots, `${a.t}-${e.value}-${h}`, { form: r.formInfo }, void 0, !0)
858
864
  ])
859
865
  }))
860
- ]), 1040, ["modelValue", "placeholder"])) : o.value == P(Se).TREESELECT ? (p(), B(it, O({
866
+ ]), 1040, ["modelValue", "placeholder", "disabled"])) : o.value == P(Se).TREESELECT ? (p(), B(it, O({
861
867
  key: 6,
862
868
  modelValue: n.value,
863
869
  "onUpdate:modelValue": y[8] || (y[8] = (h) => n.value = h),
864
- placeholder: E.value[e.value].label
870
+ placeholder: g.value[e.value].label,
871
+ disabled: g.value[e.value].disabled
865
872
  }, t.value, { data: v.value }), ye({ _: 2 }, [
866
873
  N(V(), (h) => ({
867
874
  name: h,
868
875
  fn: D((S) => [
869
- M(w.$slots, `${r.t}-${e.value}-${h}`, { data: S }, void 0, !0)
876
+ M(E.$slots, `${a.t}-${e.value}-${h}`, { data: S }, void 0, !0)
870
877
  ])
871
878
  }))
872
- ]), 1040, ["modelValue", "placeholder", "data"])) : o.value == P(Se).TIME ? (p(), B(dt, O({
879
+ ]), 1040, ["modelValue", "placeholder", "disabled", "data"])) : o.value == P(Se).TIME ? (p(), B(dt, O({
873
880
  key: 7,
874
881
  modelValue: n.value,
875
882
  "onUpdate:modelValue": y[9] || (y[9] = (h) => n.value = h),
876
- "arrow-control": ""
883
+ "arrow-control": "",
884
+ disabled: g.value[e.value].disabled
877
885
  }, t.value, {
878
- placeholder: E.value[e.value].label
879
- }), null, 16, ["modelValue", "placeholder"])) : o.value == P(Se).TIMESELECT ? (p(), B(ct, O({
886
+ placeholder: g.value[e.value].label
887
+ }), null, 16, ["modelValue", "disabled", "placeholder"])) : o.value == P(Se).TIMESELECT ? (p(), B(ct, O({
880
888
  key: 8,
881
889
  modelValue: n.value,
882
890
  "onUpdate:modelValue": y[10] || (y[10] = (h) => n.value = h),
883
891
  start: "06:30",
884
892
  step: "00:15",
885
893
  end: "23:30",
886
- placeholder: E.value[e.value].label
887
- }, t.value), null, 16, ["modelValue", "placeholder"])) : L(o.value) ? (p(), B(ft, O({
894
+ placeholder: g.value[e.value].label,
895
+ disabled: g.value[e.value].disabled
896
+ }, t.value), null, 16, ["modelValue", "placeholder", "disabled"])) : L(o.value) ? (p(), B(ft, O({
888
897
  key: 9,
889
898
  modelValue: n.value,
890
899
  "onUpdate:modelValue": y[11] || (y[11] = (h) => n.value = h),
891
900
  type: o.value,
892
- placeholder: E.value[e.value].label,
893
- "value-format": te(o.value)
901
+ placeholder: g.value[e.value].label,
902
+ "value-format": te(o.value),
903
+ disabled: g.value[e.value].disabled
894
904
  }, t.value), ye({ _: 2 }, [
895
905
  N(V(), (h) => ({
896
906
  name: h,
897
907
  fn: D((S) => [
898
- M(w.$slots, `${r.t}-${e.value}-${h}`, { data: S }, void 0, !0)
908
+ M(E.$slots, `${a.t}-${e.value}-${h}`, { data: S }, void 0, !0)
899
909
  ])
900
910
  }))
901
- ]), 1040, ["modelValue", "type", "placeholder", "value-format"])) : o.value == P(Se).COLOR ? (p(), B(vt, O({
911
+ ]), 1040, ["modelValue", "type", "placeholder", "value-format", "disabled"])) : o.value == P(Se).COLOR ? (p(), B(vt, O({
902
912
  key: 10,
903
913
  modelValue: n.value,
904
914
  "onUpdate:modelValue": y[12] || (y[12] = (h) => n.value = h)
905
915
  }, t.value), null, 16, ["modelValue"])) : o.value == P(Se).RATE ? (p(), B(l, O({
906
916
  key: 11,
907
917
  modelValue: n.value,
908
- "onUpdate:modelValue": y[13] || (y[13] = (h) => n.value = h)
909
- }, t.value), null, 16, ["modelValue"])) : o.value == P(Se).SLIDER ? (p(), B(d, O({
918
+ "onUpdate:modelValue": y[13] || (y[13] = (h) => n.value = h),
919
+ disabled: g.value[e.value].disabled
920
+ }, t.value), null, 16, ["modelValue", "disabled"])) : o.value == P(Se).SLIDER ? (p(), B(d, O({
910
921
  key: 12,
911
922
  modelValue: n.value,
912
- "onUpdate:modelValue": y[14] || (y[14] = (h) => n.value = h)
913
- }, t.value), null, 16, ["modelValue"])) : o.value == P(Se).SWITCH ? (p(), B(m, O({
923
+ "onUpdate:modelValue": y[14] || (y[14] = (h) => n.value = h),
924
+ disabled: g.value[e.value].disabled
925
+ }, t.value), null, 16, ["modelValue", "disabled"])) : o.value == P(Se).SWITCH ? (p(), B(m, O({
914
926
  key: 13,
915
927
  modelValue: n.value,
916
928
  "onUpdate:modelValue": y[15] || (y[15] = (h) => n.value = h),
917
- inlinePrompt: !0
929
+ inlinePrompt: !0,
930
+ disabled: g.value[e.value].disabled
918
931
  }, t.value), ye({ _: 2 }, [
919
932
  N(V(), (h) => ({
920
933
  name: h,
921
934
  fn: D((S) => [
922
- M(w.$slots, `${r.t}-${e.value}-${h}`, { data: S }, void 0, !0)
935
+ M(E.$slots, `${a.t}-${e.value}-${h}`, { data: S }, void 0, !0)
923
936
  ])
924
937
  }))
925
- ]), 1040, ["modelValue"])) : o.value == P(Se).TRANSFER ? (p(), B(b, O({
938
+ ]), 1040, ["modelValue", "disabled"])) : o.value == P(Se).TRANSFER ? (p(), B($, O({
926
939
  key: 14,
927
940
  modelValue: n.value,
928
941
  "onUpdate:modelValue": y[16] || (y[16] = (h) => n.value = h)
@@ -930,7 +943,7 @@ const wt = /* @__PURE__ */ Lt(_l), zt = {
930
943
  N(V(), (h) => ({
931
944
  name: h,
932
945
  fn: D((S) => [
933
- M(w.$slots, `${r.t}-${e.value}-${h}`, { data: S }, void 0, !0)
946
+ M(E.$slots, `${a.t}-${e.value}-${h}`, { data: S }, void 0, !0)
934
947
  ])
935
948
  }))
936
949
  ]), 1040, ["modelValue"])) : o.value == P(Se).CASCADER ? (p(), B(A, O({
@@ -941,7 +954,7 @@ const wt = /* @__PURE__ */ Lt(_l), zt = {
941
954
  N(V(), (h) => ({
942
955
  name: h,
943
956
  fn: D((S) => [
944
- M(w.$slots, `${r.t}-${e.value}-${h}`, { data: S }, void 0, !0)
957
+ M(E.$slots, `${a.t}-${e.value}-${h}`, { data: S }, void 0, !0)
945
958
  ])
946
959
  }))
947
960
  ]), 1040, ["modelValue", "options"])) : o.value == P(Se).IMAGE ? (p(), B(_e, O({
@@ -971,7 +984,7 @@ const wt = /* @__PURE__ */ Lt(_l), zt = {
971
984
  N(V(), (S, ue) => ({
972
985
  name: S,
973
986
  fn: D((Ae) => [
974
- M(w.$slots, `${r.t}-${e.value}-${S}`, { data: Ae }, void 0, !0)
987
+ M(E.$slots, `${a.t}-${e.value}-${S}`, { data: Ae }, void 0, !0)
975
988
  ])
976
989
  }))
977
990
  ]), 1040, ["src"])
@@ -1024,7 +1037,7 @@ const wt = /* @__PURE__ */ Lt(_l), zt = {
1024
1037
  N(V(), (h, S) => ({
1025
1038
  name: h,
1026
1039
  fn: D((ue) => [
1027
- M(w.$slots, `${r.t}-${e.value}-${h}`, { data: ue }, void 0, !0)
1040
+ M(E.$slots, `${a.t}-${e.value}-${h}`, { data: ue }, void 0, !0)
1028
1041
  ])
1029
1042
  }))
1030
1043
  ]), 1040, ["file-list"])) : o.value == P(Se).AUTOCOMPLETE ? (p(), B(Fe, O({
@@ -1032,12 +1045,12 @@ const wt = /* @__PURE__ */ Lt(_l), zt = {
1032
1045
  modelValue: n.value,
1033
1046
  "onUpdate:modelValue": y[22] || (y[22] = (h) => n.value = h)
1034
1047
  }, t.value, {
1035
- placeholder: E.value[e.value].label
1048
+ placeholder: g.value[e.value].label
1036
1049
  }), ye({ _: 2 }, [
1037
1050
  N(V(), (h, S) => ({
1038
1051
  name: h,
1039
1052
  fn: D((ue) => [
1040
- M(w.$slots, `${r.t}-${e.value}-${h}`, { data: ue }, void 0, !0)
1053
+ M(E.$slots, `${a.t}-${e.value}-${h}`, { data: ue }, void 0, !0)
1041
1054
  ])
1042
1055
  }))
1043
1056
  ]), 1040, ["modelValue", "placeholder"])) : o.value == P(Se).INPUTNUMBER ? (p(), B(Re, O({
@@ -1046,22 +1059,23 @@ const wt = /* @__PURE__ */ Lt(_l), zt = {
1046
1059
  "onUpdate:modelValue": y[23] || (y[23] = (h) => n.value = h),
1047
1060
  min: 0,
1048
1061
  max: 1e8,
1049
- placeholder: E.value[e.value].label
1062
+ placeholder: g.value[e.value].label,
1063
+ disabled: g.value[e.value].disabled
1050
1064
  }, t.value), ye({ _: 2 }, [
1051
1065
  N(V(), (h, S) => ({
1052
1066
  name: h,
1053
1067
  fn: D((ue) => [
1054
- M(w.$slots, `${r.t}-${e.value}-${h}`, { data: ue }, void 0, !0)
1068
+ M(E.$slots, `${a.t}-${e.value}-${h}`, { data: ue }, void 0, !0)
1055
1069
  ])
1056
1070
  }))
1057
- ]), 1040, ["modelValue", "placeholder"])) : o.value == P(Se).MONEY ? (p(), I("div", {
1071
+ ]), 1040, ["modelValue", "placeholder", "disabled"])) : o.value == P(Se).MONEY ? (p(), I("div", {
1058
1072
  key: 19,
1059
1073
  style: qe([{ position: "relative" }, s.value])
1060
1074
  }, [
1061
1075
  K(Le, O({
1062
1076
  modelValue: n.value,
1063
1077
  "onUpdate:modelValue": y[24] || (y[24] = (h) => n.value = h),
1064
- placeholder: E.value[e.value].label,
1078
+ placeholder: g.value[e.value].label,
1065
1079
  type: "number",
1066
1080
  maxlength: ((z = t.value) == null ? void 0 : z.max) || 25
1067
1081
  }, { ...t.value, type: o.value }), ye({
@@ -1076,7 +1090,7 @@ const wt = /* @__PURE__ */ Lt(_l), zt = {
1076
1090
  N(V(), (h, S) => ({
1077
1091
  name: h,
1078
1092
  fn: D((ue) => [
1079
- M(w.$slots, `${r.t}-${e.value}-${h}`, { data: ue }, void 0, !0)
1093
+ M(E.$slots, `${a.t}-${e.value}-${h}`, { data: ue }, void 0, !0)
1080
1094
  ])
1081
1095
  }))
1082
1096
  ]), 1040, ["modelValue", "placeholder", "maxlength"])
@@ -1139,12 +1153,13 @@ const wt = /* @__PURE__ */ Lt(_l), zt = {
1139
1153
  key: 26,
1140
1154
  modelValue: n.value,
1141
1155
  "onUpdate:modelValue": y[25] || (y[25] = (h) => n.value = h),
1142
- placeholder: E.value[e.value].label,
1156
+ placeholder: g.value[e.value].label,
1143
1157
  maxlength: ((ee = t.value) == null ? void 0 : ee.max) || 25,
1144
1158
  clearable: !0,
1145
1159
  onClear: y[26] || (y[26] = () => {
1146
- r.t == "q" && E.value.table.load();
1147
- })
1160
+ a.t == "q" && g.value.table.load();
1161
+ }),
1162
+ disabled: g.value[e.value].disabled
1148
1163
  }, { ...P(Ue)(t.value, (h) => !["suffix", "prefix", "append", "prepend"].includes(h)), type: o.value }), ye({ _: 2 }, [
1149
1164
  (je = t.value) != null && je.suffix ? {
1150
1165
  name: "suffix",
@@ -1197,18 +1212,18 @@ const wt = /* @__PURE__ */ Lt(_l), zt = {
1197
1212
  N(V(), (h, S) => ({
1198
1213
  name: h,
1199
1214
  fn: D((ue) => [
1200
- M(w.$slots, `${r.t}-${e.value}-${h}`, {
1215
+ M(E.$slots, `${a.t}-${e.value}-${h}`, {
1201
1216
  data: ue,
1202
- form: a.formInfo
1217
+ form: r.formInfo
1203
1218
  }, void 0, !0)
1204
1219
  ])
1205
1220
  }))
1206
- ]), 1040, ["modelValue", "placeholder", "maxlength"]))
1221
+ ]), 1040, ["modelValue", "placeholder", "maxlength", "disabled"]))
1207
1222
  ])
1208
1223
  ], 64);
1209
1224
  };
1210
1225
  }
1211
- }), bt = /* @__PURE__ */ Ze(Al, [["__scopeId", "data-v-5ca81db3"]]), Bl = { class: "g-form-container" }, Ol = /* @__PURE__ */ Object.assign({
1226
+ }), bt = /* @__PURE__ */ Ze(Al, [["__scopeId", "data-v-83528f03"]]), Bl = { class: "g-form-container" }, Ol = /* @__PURE__ */ Object.assign({
1212
1227
  name: "g-form",
1213
1228
  inheritAttrs: !1
1214
1229
  }, {
@@ -1218,44 +1233,44 @@ const wt = /* @__PURE__ */ Lt(_l), zt = {
1218
1233
  modelModifiers: {}
1219
1234
  }),
1220
1235
  emits: /* @__PURE__ */ Xe(["submit", "reset"], ["update:modelValue"]),
1221
- setup(a, { expose: n, emit: r }) {
1222
- var Ce, Te, le, ne, re, Oe;
1223
- const t = Qe(a, "modelValue"), e = r, o = oe(null), E = Mt("options"), v = oe({}), F = oe(""), f = a;
1236
+ setup(r, { expose: n, emit: a }) {
1237
+ var Ce, Te, le, ne, ae, Oe;
1238
+ const t = Qe(r, "modelValue"), e = a, o = oe(null), g = Mt("options"), v = oe({}), F = oe(""), f = r;
1224
1239
  t.value.form = Ve(
1225
1240
  zt,
1226
- E == null ? void 0 : E.form,
1241
+ g == null ? void 0 : g.form,
1227
1242
  (Ce = t.value) == null ? void 0 : Ce.form
1228
1243
  ), t.value.form.style = Ve(
1229
1244
  (le = (Te = t.value) == null ? void 0 : Te.form) == null ? void 0 : le.style,
1230
1245
  { ...(ne = Tt()) == null ? void 0 : ne.style }
1231
1246
  );
1232
- const i = async (T, $) => {
1233
- let g = 5;
1234
- for (; g > 0; ) {
1235
- if (await at(), o.value) {
1247
+ const i = async (T, w) => {
1248
+ let b = 5;
1249
+ for (; b > 0; ) {
1250
+ if (await rt(), o.value) {
1236
1251
  o.value.validate((u, q) => {
1237
- u ? e("submit", T, $) : console.error("表单验证不通过!", q);
1252
+ u ? e("submit", T, w) : console.error("表单验证不通过!", q);
1238
1253
  });
1239
1254
  return;
1240
1255
  }
1241
- g--, await new Promise((u) => setTimeout(u, 50));
1256
+ b--, await new Promise((u) => setTimeout(u, 50));
1242
1257
  }
1243
1258
  console.error("表单实例获取失败,请检查组件状态");
1244
1259
  }, s = async () => {
1245
1260
  let T = 5;
1246
1261
  for (; T > 0; ) {
1247
- if (await at(), !o.value) {
1248
- T--, await new Promise((g) => setTimeout(g, 50));
1262
+ if (await rt(), !o.value) {
1263
+ T--, await new Promise((b) => setTimeout(b, 50));
1249
1264
  continue;
1250
1265
  }
1251
- let $ = !0;
1252
- if (e("reset", (g) => {
1253
- $ = g;
1254
- }), $) {
1266
+ let w = !0;
1267
+ if (e("reset", (b) => {
1268
+ w = b;
1269
+ }), w) {
1255
1270
  o.value.resetFields();
1256
1271
  return;
1257
1272
  }
1258
- T--, await new Promise((g) => setTimeout(g, 50));
1273
+ T--, await new Promise((b) => setTimeout(b, 50));
1259
1274
  }
1260
1275
  console.error("表单实例获取失败,请检查组件状态");
1261
1276
  };
@@ -1269,8 +1284,8 @@ const wt = /* @__PURE__ */ Lt(_l), zt = {
1269
1284
  };
1270
1285
  t.value.formItems = Ve(
1271
1286
  c,
1272
- E == null ? void 0 : E.formItems,
1273
- (re = t == null ? void 0 : t.value) == null ? void 0 : re.formItems
1287
+ g == null ? void 0 : g.formItems,
1288
+ (ae = t == null ? void 0 : t.value) == null ? void 0 : ae.formItems
1274
1289
  );
1275
1290
  const _ = {
1276
1291
  span: 12,
@@ -1278,13 +1293,13 @@ const wt = /* @__PURE__ */ Lt(_l), zt = {
1278
1293
  };
1279
1294
  t.value.form.cols = Ve(
1280
1295
  _,
1281
- (Oe = E == null ? void 0 : E.form) == null ? void 0 : Oe.cols,
1296
+ (Oe = g == null ? void 0 : g.form) == null ? void 0 : Oe.cols,
1282
1297
  t.value.form.cols
1283
1298
  );
1284
1299
  const V = (T) => {
1285
- let $ = [];
1300
+ let w = [];
1286
1301
  if (T.rules)
1287
- $ = T.rules;
1302
+ w = T.rules;
1288
1303
  else {
1289
1304
  const u = { ...{
1290
1305
  required: void 0,
@@ -1295,18 +1310,18 @@ const wt = /* @__PURE__ */ Lt(_l), zt = {
1295
1310
  pattern: void 0,
1296
1311
  validate: void 0
1297
1312
  }, ...T };
1298
- u.required && $.push({
1313
+ u.required && w.push({
1299
1314
  required: !0,
1300
1315
  message: `${u.label}不能为空!`,
1301
1316
  trigger: "blur"
1302
- }), u.max !== void 0 && u.max !== null && u.max !== "" && (u.min === void 0 || u.min === null || u.min === "") && $.push({
1317
+ }), u.max !== void 0 && u.max !== null && u.max !== "" && (u.min === void 0 || u.min === null || u.min === "") && w.push({
1303
1318
  validator: (q, C, k) => {
1304
1319
  if (C == null || C === "") return k();
1305
1320
  u.type !== "number" && u.type !== "input-number" ? ((C == null ? void 0 : C.toString()) || "").length > Number(u.max) ? k(
1306
1321
  new Error(`${u.label}长度不能超过${u.max}个字符!`)
1307
1322
  ) : k() : Number(C) > Number(u.max) ? k(new Error(`${u.label}不能大于${u.max}!`)) : k();
1308
1323
  }
1309
- }), u.min !== void 0 && u.min !== null && u.min !== "" && (u.max === void 0 || u.max === null || u.max === "") && $.push({
1324
+ }), u.min !== void 0 && u.min !== null && u.min !== "" && (u.max === void 0 || u.max === null || u.max === "") && w.push({
1310
1325
  validator: (q, C, k) => {
1311
1326
  if (C == null || C === "") return k();
1312
1327
  u.type !== "number" && u.type !== "input-number" ? Number(u.min) < 1 ? k(
@@ -1319,7 +1334,7 @@ const wt = /* @__PURE__ */ Lt(_l), zt = {
1319
1334
  )
1320
1335
  ) : k() : Number(C) < Number(u.min) ? k(new Error(`${u.label}不能小于${u.min}!`)) : k();
1321
1336
  }
1322
- }), u.min !== void 0 && u.min !== null && u.min !== "" && u.max !== void 0 && u.max !== null && u.max !== "" && $.push({
1337
+ }), u.min !== void 0 && u.min !== null && u.min !== "" && u.max !== void 0 && u.max !== null && u.max !== "" && w.push({
1323
1338
  validator: (q, C, k) => {
1324
1339
  if (C == null || C === "") return k();
1325
1340
  const U = Number(u.min), Z = Number(u.max);
@@ -1333,30 +1348,30 @@ const wt = /* @__PURE__ */ Lt(_l), zt = {
1333
1348
  )
1334
1349
  ) : k() : Number(C) < U || C > Z ? k(new Error(`${u.label}必须在${U}-${Z}之间!`)) : k();
1335
1350
  }
1336
- }), u.type == "email" && $.push({ type: "email", message: "不是一个正确的邮箱地址!" }), u.type == "url" && $.push({ type: "url", message: "不是一个合正确的URL!" }), u.pattern && $.push({
1351
+ }), u.type == "email" && w.push({ type: "email", message: "不是一个正确的邮箱地址!" }), u.type == "url" && w.push({ type: "url", message: "不是一个合正确的URL!" }), u.pattern && w.push({
1337
1352
  pattern: u == null ? void 0 : u.pattern,
1338
1353
  message: (u == null ? void 0 : u.message) || "格式不正确!"
1339
- }), u.validate && $.push({
1354
+ }), u.validate && w.push({
1340
1355
  validator: (q, C, k) => u.validate(q, C, k)
1341
1356
  });
1342
1357
  }
1343
- return $;
1344
- }, j = (T, $ = !1) => {
1358
+ return w;
1359
+ }, j = (T, w = !1) => {
1345
1360
  var q, C, k, U, Z;
1346
- const g = $ ? T : T == null ? void 0 : T.item, u = typeof (g == null ? void 0 : g.editor) == "function" ? g.editor(v.value, (q = t.value.form) == null ? void 0 : q.modalState) : (g == null ? void 0 : g.editor) || {};
1361
+ const b = w ? T : T == null ? void 0 : T.item, u = typeof (b == null ? void 0 : b.editor) == "function" ? b.editor(v.value, (q = t.value.form) == null ? void 0 : q.modalState) : (b == null ? void 0 : b.editor) || {};
1347
1362
  if (((C = t.value.form) == null ? void 0 : C.modalState) === "edit") {
1348
- const G = typeof (g == null ? void 0 : g.editor) == "object" ? (k = g.editor) == null ? void 0 : k.ep : typeof (g == null ? void 0 : g.editor) == "function" ? u == null ? void 0 : u.ep : {};
1363
+ const G = typeof (b == null ? void 0 : b.editor) == "object" ? (k = b.editor) == null ? void 0 : k.ep : typeof (b == null ? void 0 : b.editor) == "function" ? u == null ? void 0 : u.ep : {};
1349
1364
  return { ...u, ...G };
1350
1365
  }
1351
1366
  if (((U = t.value.form) == null ? void 0 : U.modalState) === "add") {
1352
- const G = typeof (g == null ? void 0 : g.editor) == "object" ? (Z = g.editor) == null ? void 0 : Z.ap : typeof (g == null ? void 0 : g.editor) == "function" ? u == null ? void 0 : u.ap : {};
1367
+ const G = typeof (b == null ? void 0 : b.editor) == "object" ? (Z = b.editor) == null ? void 0 : Z.ap : typeof (b == null ? void 0 : b.editor) == "function" ? u == null ? void 0 : u.ap : {};
1353
1368
  return { ...u, ...G };
1354
1369
  }
1355
1370
  return u;
1356
1371
  }, R = (T) => {
1357
- var g, u, q, C, k;
1358
- const $ = typeof T.editor == "function" ? T.editor(v.value, (g = t.value.form) == null ? void 0 : g.modalState) : T.editor;
1359
- return ((u = t.value.form) == null ? void 0 : u.modalState) === "edit" ? ((q = $ == null ? void 0 : $.ep) == null ? void 0 : q.type) ?? ($ == null ? void 0 : $.type) ?? T.type : ((C = t.value.form) == null ? void 0 : C.modalState) === "add" ? ((k = $ == null ? void 0 : $.ap) == null ? void 0 : k.type) ?? ($ == null ? void 0 : $.type) ?? T.type : ($ == null ? void 0 : $.type) ?? T.type;
1372
+ var b, u, q, C, k;
1373
+ const w = typeof T.editor == "function" ? T.editor(v.value, (b = t.value.form) == null ? void 0 : b.modalState) : T.editor;
1374
+ return ((u = t.value.form) == null ? void 0 : u.modalState) === "edit" ? ((q = w == null ? void 0 : w.ep) == null ? void 0 : q.type) ?? (w == null ? void 0 : w.type) ?? T.type : ((C = t.value.form) == null ? void 0 : C.modalState) === "add" ? ((k = w == null ? void 0 : w.ap) == null ? void 0 : k.type) ?? (w == null ? void 0 : w.type) ?? T.type : (w == null ? void 0 : w.type) ?? T.type;
1360
1375
  };
1361
1376
  ut(() => {
1362
1377
  L(), f != null && f.editForm ? v.value = f.editForm : v.value = me.value;
@@ -1365,20 +1380,20 @@ const wt = /* @__PURE__ */ Lt(_l), zt = {
1365
1380
  });
1366
1381
  const L = () => {
1367
1382
  F.value = Math.random().toString(36).substring(2);
1368
- for (const [T, $] of Object.entries(te.value))
1383
+ for (const [T, w] of Object.entries(te.value))
1369
1384
  t.value[T].formItem = {
1370
1385
  ...t.value[T].formItem,
1371
- ...$.formItem
1386
+ ...w.formItem
1372
1387
  }, t.value[T].formItem.style = {
1373
1388
  ...t.value[T].formItem.style,
1374
- ...$.formItem.style
1389
+ ...w.formItem.style
1375
1390
  };
1376
1391
  }, te = Je(
1377
1392
  () => Object.fromEntries(
1378
1393
  Object.entries(t.value).filter((T) => T[1].type != "hidden").filter((T) => T[1].hidden !== !0).filter((T) => T[1].edit !== !1).filter((T) => T[1].editor !== !1).filter((T) => T[1].type !== "control").filter((T) => !["table", "tableColumns", "query", "queryItems", "form", "formItems", "control", "dialog"].includes(T[0])).filter((T) => {
1379
- var g, u, q;
1380
- const $ = typeof T[1].editor == "function" ? T[1].editor(v.value, (g = t.value.form) == null ? void 0 : g.modalState) : T[1].editor;
1381
- return t.value.form.modalState === "edit" ? ((u = $ == null ? void 0 : $.ep) == null ? void 0 : u.editor) !== !1 : t.value.form.modalState === "add" ? ((q = $ == null ? void 0 : $.ap) == null ? void 0 : q.editor) !== !1 : !0;
1394
+ var b, u, q;
1395
+ const w = typeof T[1].editor == "function" ? T[1].editor(v.value, (b = t.value.form) == null ? void 0 : b.modalState) : T[1].editor;
1396
+ return t.value.form.modalState === "edit" ? ((u = w == null ? void 0 : w.ep) == null ? void 0 : u.editor) !== !1 : t.value.form.modalState === "add" ? ((q = w == null ? void 0 : w.ap) == null ? void 0 : q.editor) !== !1 : !0;
1382
1397
  }).map((T) => [T[0], T[1]])
1383
1398
  )
1384
1399
  ), me = Je(
@@ -1387,17 +1402,17 @@ const wt = /* @__PURE__ */ Lt(_l), zt = {
1387
1402
  )
1388
1403
  ), ie = Je(() => {
1389
1404
  const T = /* @__PURE__ */ new Map();
1390
- return Object.entries(te.value).forEach(([$, g]) => {
1391
- if (g.groupName) {
1392
- const u = g.groupName;
1405
+ return Object.entries(te.value).forEach(([w, b]) => {
1406
+ if (b.groupName) {
1407
+ const u = b.groupName;
1393
1408
  T.has(u) || T.set(u, {
1394
1409
  groupName: u,
1395
1410
  items: []
1396
- }), T.get(u).items.push({ key: $, item: g });
1411
+ }), T.get(u).items.push({ key: w, item: b });
1397
1412
  }
1398
- }), T.forEach(($) => {
1399
- $.tabPane = Ve(
1400
- ...$.items.map(({ item: g }) => g.tabPane || {})
1413
+ }), T.forEach((w) => {
1414
+ w.tabPane = Ve(
1415
+ ...w.items.map(({ item: b }) => b.tabPane || {})
1401
1416
  );
1402
1417
  }), Array.from(T.values());
1403
1418
  }), ce = [
@@ -1423,14 +1438,14 @@ const wt = /* @__PURE__ */ Lt(_l), zt = {
1423
1438
  originalOrder: 1
1424
1439
  // 添加原始顺序标识
1425
1440
  }
1426
- ], de = Je(() => ce.filter((T) => !T.hidden).sort((T, $) => T.sort - $.sort || T.originalOrder - $.originalOrder));
1441
+ ], de = Je(() => ce.filter((T) => !T.hidden).sort((T, w) => T.sort - w.sort || T.originalOrder - w.originalOrder));
1427
1442
  return n({
1428
1443
  submit: i,
1429
1444
  reset: s,
1430
1445
  formData: v
1431
- }), (T, $) => {
1446
+ }), (T, w) => {
1432
1447
  var Z, G, pe;
1433
- const g = H("el-form-item"), u = H("el-col"), q = H("el-tab-pane"), C = H("el-tabs"), k = H("el-form"), U = H("el-button");
1448
+ const b = H("el-form-item"), u = H("el-col"), q = H("el-tab-pane"), C = H("el-tabs"), k = H("el-form"), U = H("el-button");
1434
1449
  return p(), I("div", Bl, [
1435
1450
  K(k, O(
1436
1451
  {
@@ -1446,7 +1461,7 @@ const wt = /* @__PURE__ */ Lt(_l), zt = {
1446
1461
  },
1447
1462
  P(Ue)(
1448
1463
  t.value.form,
1449
- (w) => !["footer", "submit", "reset", "slots", "type", "sort"].includes(w)
1464
+ (E) => !["footer", "submit", "reset", "slots", "type", "sort"].includes(E)
1450
1465
  )
1451
1466
  ), {
1452
1467
  default: D(() => [
@@ -1454,26 +1469,26 @@ const wt = /* @__PURE__ */ Lt(_l), zt = {
1454
1469
  K(C, O({
1455
1470
  class: "demo-tabs",
1456
1471
  modelValue: ie.value[0].groupName,
1457
- "onUpdate:modelValue": $[0] || ($[0] = (w) => ie.value[0].groupName = w),
1472
+ "onUpdate:modelValue": w[0] || (w[0] = (E) => ie.value[0].groupName = E),
1458
1473
  style: { width: "100%" }
1459
1474
  }, t.value.form.tabs), {
1460
1475
  default: D(() => [
1461
- (p(!0), I(J, null, N(ie.value, (w) => (p(), B(q, O({
1462
- key: w.groupName,
1463
- label: w.groupName,
1464
- name: w.groupName,
1476
+ (p(!0), I(J, null, N(ie.value, (E) => (p(), B(q, O({
1477
+ key: E.groupName,
1478
+ label: E.groupName,
1479
+ name: E.groupName,
1465
1480
  style: { width: "100%", display: "flex", "flex-wrap": "wrap" },
1466
1481
  ref_for: !0
1467
- }, w.tabPane), {
1482
+ }, E.tabPane), {
1468
1483
  default: D(() => [
1469
- (p(!0), I(J, null, N(w.items, (y, ae) => (p(), B(u, O({ ref_for: !0 }, { ...t.value.form.cols, ...y == null ? void 0 : y.item.col }, {
1484
+ (p(!0), I(J, null, N(E.items, (y, re) => (p(), B(u, O({ ref_for: !0 }, { ...t.value.form.cols, ...y == null ? void 0 : y.item.col }, {
1470
1485
  key: y.key,
1471
1486
  style: { width: "100%" }
1472
1487
  }), {
1473
1488
  default: D(() => {
1474
1489
  var he, be;
1475
1490
  return [
1476
- K(g, O({
1491
+ K(b, O({
1477
1492
  label: y == null ? void 0 : y.item.label,
1478
1493
  prop: y.key,
1479
1494
  rules: V(y == null ? void 0 : y.item),
@@ -1524,31 +1539,31 @@ const wt = /* @__PURE__ */ Lt(_l), zt = {
1524
1539
  _: 3
1525
1540
  }, 16, ["modelValue"])
1526
1541
  ], !0) : M(T.$slots, "default", { key: 1 }, () => [
1527
- (p(!0), I(J, null, N(te.value, (w, y) => (p(), B(u, O({ ref_for: !0 }, { ...t.value.form.cols, ...w.col }, {
1542
+ (p(!0), I(J, null, N(te.value, (E, y) => (p(), B(u, O({ ref_for: !0 }, { ...t.value.form.cols, ...E.col }, {
1528
1543
  key: y,
1529
1544
  style: { width: "100%" }
1530
1545
  }), {
1531
1546
  default: D(() => {
1532
- var ae;
1547
+ var re;
1533
1548
  return [
1534
- K(g, O({
1535
- label: w.label,
1549
+ K(b, O({
1550
+ label: E.label,
1536
1551
  prop: y,
1537
- rules: V(w),
1552
+ rules: V(E),
1538
1553
  ref_for: !0
1539
- }, { ...(ae = t.value) == null ? void 0 : ae.formItems, ...w == null ? void 0 : w.formItem }, { style: { width: "100%" } }), {
1554
+ }, { ...(re = t.value) == null ? void 0 : re.formItems, ...E == null ? void 0 : E.formItem }, { style: { width: "100%" } }), {
1540
1555
  label: D((he) => [
1541
1556
  M(T.$slots, `f-${y}-label`, {
1542
1557
  data: he,
1543
- item: w,
1558
+ item: E,
1544
1559
  model: t.value
1545
1560
  }, () => [
1546
- Ie(De(w.label), 1)
1561
+ Ie(De(E.label), 1)
1547
1562
  ], !0)
1548
1563
  ]),
1549
1564
  default: D(() => [
1550
1565
  M(T.$slots, "f-" + y, {
1551
- item: w,
1566
+ item: E,
1552
1567
  formInfo: v.value,
1553
1568
  model: t.value,
1554
1569
  form: v.value
@@ -1556,9 +1571,9 @@ const wt = /* @__PURE__ */ Lt(_l), zt = {
1556
1571
  (p(), B(bt, {
1557
1572
  modelValue: v.value[y],
1558
1573
  "onUpdate:modelValue": (he) => v.value[y] = he,
1559
- item: j(w, !0),
1574
+ item: j(E, !0),
1560
1575
  ctrlKey: y,
1561
- ctrlType: R(w),
1576
+ ctrlType: R(E),
1562
1577
  key: `${y}-${F.value}`,
1563
1578
  model: t.value,
1564
1579
  class: "g-ctrl-container",
@@ -1570,7 +1585,7 @@ const wt = /* @__PURE__ */ Lt(_l), zt = {
1570
1585
  fn: D(($e) => [
1571
1586
  M(T.$slots, be, {
1572
1587
  data: $e,
1573
- item: w,
1588
+ item: E,
1574
1589
  model: t.value
1575
1590
  }, void 0, !0)
1576
1591
  ])
@@ -1593,19 +1608,19 @@ const wt = /* @__PURE__ */ Lt(_l), zt = {
1593
1608
  style: qe(t.value.form.footer.style)
1594
1609
  }, [
1595
1610
  M(T.$slots, "f-footer-left", {}, void 0, !0),
1596
- (p(!0), I(J, null, N(de.value, (w) => (p(), I(J, null, [
1597
- M(T.$slots, w.name + "-left", {}, void 0, !0),
1598
- M(T.$slots, w.name, {}, () => [
1599
- K(U, O({ ref_for: !0 }, w.info, {
1600
- onClick: yt((y) => w.click(v.value, t.value), ["stop"])
1611
+ (p(!0), I(J, null, N(de.value, (E) => (p(), I(J, null, [
1612
+ M(T.$slots, E.name + "-left", {}, void 0, !0),
1613
+ M(T.$slots, E.name, {}, () => [
1614
+ K(U, O({ ref_for: !0 }, E.info, {
1615
+ onClick: yt((y) => E.click(v.value, t.value), ["stop"])
1601
1616
  }), {
1602
1617
  default: D(() => [
1603
- Ie(De(w == null ? void 0 : w.label), 1)
1618
+ Ie(De(E == null ? void 0 : E.label), 1)
1604
1619
  ]),
1605
1620
  _: 2
1606
1621
  }, 1040, ["onClick"])
1607
1622
  ], !0),
1608
- M(T.$slots, w.name + "-right", {}, void 0, !0)
1623
+ M(T.$slots, E.name + "-right", {}, void 0, !0)
1609
1624
  ], 64))), 256)),
1610
1625
  M(T.$slots, "f-footer-right", {}, void 0, !0)
1611
1626
  ], 4)
@@ -1622,11 +1637,11 @@ const wt = /* @__PURE__ */ Lt(_l), zt = {
1622
1637
  infoModifiers: {}
1623
1638
  }),
1624
1639
  emits: ["update:modelValue", "update:info"],
1625
- setup(a) {
1626
- const n = Qe(a, "modelValue"), r = a, t = Qe(a, "info"), e = (F) => Je(() => Object.fromEntries(Object.entries(n.value).filter((f) => {
1640
+ setup(r) {
1641
+ const n = Qe(r, "modelValue"), a = r, t = Qe(r, "info"), e = (F) => Je(() => Object.fromEntries(Object.entries(n.value).filter((f) => {
1627
1642
  var i;
1628
1643
  return typeof f[1].search == "function" ? f[1].search && ((i = f[1].search(t.value, n.value.table)) == null ? void 0 : i.more) === F : f[1].search && f[1].search.more === F;
1629
- }).map((f) => [f[0], f[1]]))).value, o = (F) => typeof F.search == "function" ? F.search(t.value, n.value.table) : F.search || {}, E = (F) => {
1644
+ }).map((f) => [f[0], f[1]]))).value, o = (F) => typeof F.search == "function" ? F.search(t.value, n.value.table) : F.search || {}, g = (F) => {
1630
1645
  const f = o(F);
1631
1646
  return (f == null ? void 0 : f.type) || F.type;
1632
1647
  }, v = (F) => {
@@ -1637,7 +1652,7 @@ const wt = /* @__PURE__ */ Lt(_l), zt = {
1637
1652
  };
1638
1653
  return (F, f) => {
1639
1654
  const i = H("el-form-item");
1640
- return p(!0), I(J, null, N(e(r.more), (s, c) => M(F.$slots, `q-${c}`, {
1655
+ return p(!0), I(J, null, N(e(a.more), (s, c) => M(F.$slots, `q-${c}`, {
1641
1656
  key: c,
1642
1657
  item: s,
1643
1658
  queryModel: t.value,
@@ -1660,7 +1675,7 @@ const wt = /* @__PURE__ */ Lt(_l), zt = {
1660
1675
  "onUpdate:modelValue": (_) => t.value[c] = _,
1661
1676
  item: { ...s == null ? void 0 : s.editor, ...o(s) },
1662
1677
  ctrlKey: c,
1663
- ctrlType: E(s),
1678
+ ctrlType: g(s),
1664
1679
  model: n.value,
1665
1680
  t: "q",
1666
1681
  formInfo: t.value
@@ -1694,8 +1709,8 @@ const wt = /* @__PURE__ */ Lt(_l), zt = {
1694
1709
  infoModifiers: {}
1695
1710
  },
1696
1711
  emits: /* @__PURE__ */ Xe(["query", "reset"], ["update:modelValue", "update:info"]),
1697
- setup(a, { emit: n }) {
1698
- const r = Qe(a, "modelValue"), t = n, e = Mt("options"), o = oe(!1), E = Qe(a, "info"), v = {
1712
+ setup(r, { emit: n }) {
1713
+ const a = Qe(r, "modelValue"), t = n, e = Mt("options"), o = oe(!1), g = Qe(r, "info"), v = {
1699
1714
  hidden: !1,
1700
1715
  type: "hidden",
1701
1716
  labelWidth: 100,
@@ -1724,7 +1739,7 @@ const wt = /* @__PURE__ */ Lt(_l), zt = {
1724
1739
  plain: !1,
1725
1740
  icon: () => ke(It),
1726
1741
  click: () => {
1727
- t("reset", E.value);
1742
+ t("reset", g.value);
1728
1743
  }
1729
1744
  },
1730
1745
  query: {
@@ -1733,7 +1748,7 @@ const wt = /* @__PURE__ */ Lt(_l), zt = {
1733
1748
  label: "查询",
1734
1749
  icon: () => ke(fl),
1735
1750
  click: () => {
1736
- t("query", E.value), o.value = !1;
1751
+ t("query", g.value), o.value = !1;
1737
1752
  }
1738
1753
  },
1739
1754
  btns: {
@@ -1747,7 +1762,7 @@ const wt = /* @__PURE__ */ Lt(_l), zt = {
1747
1762
  }
1748
1763
  }
1749
1764
  };
1750
- r.value.query = Ve(v, e == null ? void 0 : e.query, r.value.query);
1765
+ a.value.query = Ve(v, e == null ? void 0 : e.query, a.value.query);
1751
1766
  const F = {
1752
1767
  2: {
1753
1768
  title: "更多查询",
@@ -1765,9 +1780,9 @@ const wt = /* @__PURE__ */ Lt(_l), zt = {
1765
1780
  trigger: "click"
1766
1781
  }
1767
1782
  };
1768
- r.value.query.more.dialog = Ve(
1769
- F[r.value.query.more.mode] || {},
1770
- r.value.query.more.dialog
1783
+ a.value.query.more.dialog = Ve(
1784
+ F[a.value.query.more.mode] || {},
1785
+ a.value.query.more.dialog
1771
1786
  );
1772
1787
  const f = {
1773
1788
  type: "hidden",
@@ -1778,17 +1793,17 @@ const wt = /* @__PURE__ */ Lt(_l), zt = {
1778
1793
  // width: "280px"
1779
1794
  }
1780
1795
  };
1781
- r.value.queryItems = Ve(f, e == null ? void 0 : e.queryItems, r.value.queryItems);
1796
+ a.value.queryItems = Ve(f, e == null ? void 0 : e.queryItems, a.value.queryItems);
1782
1797
  const i = (V, j) => {
1783
1798
  const R = Object.keys(V.slots).filter((L) => L !== "default").reduce((L, te) => (L[te] = (me) => V.slots[te]({
1784
- model: r.value
1799
+ model: a.value
1785
1800
  // 传递当前模型数据
1786
1801
  }), L), {});
1787
1802
  return ke(Ft, {
1788
- modelValue: r.value,
1789
- "onUpdate:modelValue": (L) => r.value = L,
1790
- info: E.value,
1791
- "onUpdate:info": (L) => E.value = L,
1803
+ modelValue: a.value,
1804
+ "onUpdate:modelValue": (L) => a.value = L,
1805
+ info: g.value,
1806
+ "onUpdate:info": (L) => g.value = L,
1792
1807
  more: j
1793
1808
  }, R);
1794
1809
  }, s = At(), c = () => {
@@ -1796,91 +1811,91 @@ const wt = /* @__PURE__ */ Lt(_l), zt = {
1796
1811
  const V = [
1797
1812
  {
1798
1813
  key: "query",
1799
- hidden: (te = (L = (R = r.value) == null ? void 0 : R.query) == null ? void 0 : L.query) == null ? void 0 : te.hidden,
1814
+ hidden: (te = (L = (R = a.value) == null ? void 0 : R.query) == null ? void 0 : L.query) == null ? void 0 : te.hidden,
1800
1815
  component: Be,
1801
1816
  props: {
1802
- ...r.value.query.query,
1803
- onClick: r.value.query.query.click
1817
+ ...a.value.query.query,
1818
+ onClick: a.value.query.query.click
1804
1819
  },
1805
- label: r.value.query.query.label,
1806
- sort: r.value.query.query.sort || 0
1820
+ label: a.value.query.query.label,
1821
+ sort: a.value.query.query.sort || 0
1807
1822
  },
1808
1823
  {
1809
1824
  key: "reset",
1810
- hidden: (ce = (ie = (me = r.value) == null ? void 0 : me.query) == null ? void 0 : ie.reset) == null ? void 0 : ce.hidden,
1825
+ hidden: (ce = (ie = (me = a.value) == null ? void 0 : me.query) == null ? void 0 : ie.reset) == null ? void 0 : ce.hidden,
1811
1826
  component: Be,
1812
1827
  props: {
1813
- ...r.value.query.reset,
1814
- onClick: r.value.query.reset.click
1828
+ ...a.value.query.reset,
1829
+ onClick: a.value.query.reset.click
1815
1830
  },
1816
- label: r.value.query.reset.label,
1817
- sort: r.value.query.reset.sort || 0
1831
+ label: a.value.query.reset.label,
1832
+ sort: a.value.query.reset.sort || 0
1818
1833
  },
1819
1834
  {
1820
1835
  key: "more",
1821
- hidden: (Te = (Ce = (de = r.value) == null ? void 0 : de.query) == null ? void 0 : Ce.more) == null ? void 0 : Te.hidden,
1822
- component: r.value.query.more.mode === 3 ? $t : Be,
1823
- props: r.value.query.more.mode === 3 ? { ...r.value.query.more.dialog } : {
1824
- ...r.value.query.more,
1825
- onClick: r.value.query.more.click
1836
+ hidden: (Te = (Ce = (de = a.value) == null ? void 0 : de.query) == null ? void 0 : Ce.more) == null ? void 0 : Te.hidden,
1837
+ component: a.value.query.more.mode === 3 ? $t : Be,
1838
+ props: a.value.query.more.mode === 3 ? { ...a.value.query.more.dialog } : {
1839
+ ...a.value.query.more,
1840
+ onClick: a.value.query.more.click
1826
1841
  },
1827
- label: r.value.query.more.label,
1828
- sort: r.value.query.more.sort || 0,
1829
- content: r.value.query.more.mode === 3 ? () => ke(pt, {
1842
+ label: a.value.query.more.label,
1843
+ sort: a.value.query.more.sort || 0,
1844
+ content: a.value.query.more.mode === 3 ? () => ke(pt, {
1830
1845
  class: "query-form",
1831
- ...Ue(r.value.query, (le) => !["query", "more", "reset"].includes(le))
1846
+ ...Ue(a.value.query, (le) => !["query", "more", "reset"].includes(le))
1832
1847
  }, () => i({ slots: s }, !0)) : null
1833
1848
  }
1834
1849
  ];
1835
1850
  return V.sort((le, ne) => le.sort - ne.sort), V.filter((le) => !le.hidden).map((le) => le.key === "more" && le.component === $t ? ke($t, le.props, {
1836
- reference: () => ke(Be, r.value.query.more, () => le.label),
1851
+ reference: () => ke(Be, a.value.query.more, () => le.label),
1837
1852
  default: le.content
1838
1853
  }) : (le.props.slot = "query-" + le.key, le.label ? ke(le.component, le.props, () => le.label) : ke(le.component, le.props)));
1839
1854
  }, _ = Je(() => ({
1840
1855
  diplay: "flex",
1841
- flexDirection: r.value.query.container.mode === "row" ? "row" : "column"
1856
+ flexDirection: a.value.query.container.mode === "row" ? "row" : "column"
1842
1857
  }));
1843
1858
  return (V, j) => {
1844
- var te, me, ie, ce, de, Ce, Te, le, ne, re, Oe, T, $, g, u, q, C;
1859
+ var te, me, ie, ce, de, Ce, Te, le, ne, ae, Oe, T, w, b, u, q, C;
1845
1860
  const R = H("el-form-item"), L = H("el-drawer");
1846
1861
  return p(), I(J, null, [
1847
1862
  Q("div", {
1848
1863
  class: "g-query-container",
1849
- style: qe({ ..._.value, ...((me = (te = r.value.query) == null ? void 0 : te.container) == null ? void 0 : me.style) || {} })
1864
+ style: qe({ ..._.value, ...((me = (te = a.value.query) == null ? void 0 : te.container) == null ? void 0 : me.style) || {} })
1850
1865
  }, [
1851
1866
  K(P(pt), O({
1852
1867
  onSubmit: j[0] || (j[0] = yt(() => {
1853
1868
  }, ["prevent"]))
1854
- }, P(Ue)(r.value.query, (k) => !["query", "more", "reset", "btns"].includes(k))), {
1869
+ }, P(Ue)(a.value.query, (k) => !["query", "more", "reset", "btns"].includes(k))), {
1855
1870
  default: D(() => {
1856
1871
  var k, U;
1857
1872
  return [
1858
1873
  (p(), B(We(i({ slots: V.$slots }, void 0)))),
1859
- ((U = (k = r.value.query) == null ? void 0 : k.container) == null ? void 0 : U.inline) === !0 ? (p(), B(R, { key: 0 }, {
1874
+ ((U = (k = a.value.query) == null ? void 0 : k.container) == null ? void 0 : U.inline) === !0 ? (p(), B(R, { key: 0 }, {
1860
1875
  default: D(() => {
1861
- var Z, G, pe, w, y;
1876
+ var Z, G, pe, E, y;
1862
1877
  return [
1863
1878
  Q("div", {
1864
- style: qe((G = (Z = r.value.query) == null ? void 0 : Z.btns) == null ? void 0 : G.style)
1879
+ style: qe((G = (Z = a.value.query) == null ? void 0 : Z.btns) == null ? void 0 : G.style)
1865
1880
  }, [
1866
- r.value.query.group ? (p(), B(P(mt), { key: 0 }, {
1881
+ a.value.query.group ? (p(), B(P(mt), { key: 0 }, {
1867
1882
  default: D(() => [
1868
- (p(!0), I(J, null, N(c(), (ae) => M(V.$slots, ae.props.slot, {}, () => [
1869
- (p(), B(We(ae)))
1883
+ (p(!0), I(J, null, N(c(), (re) => M(V.$slots, re.props.slot, {}, () => [
1884
+ (p(), B(We(re)))
1870
1885
  ], !0)), 256)),
1871
1886
  M(V.$slots, "q-btns", {}, void 0, !0)
1872
1887
  ]),
1873
1888
  _: 3
1874
1889
  })) : (p(), I(J, { key: 1 }, [
1875
- (y = (w = (pe = r.value) == null ? void 0 : pe.query) == null ? void 0 : w.btns) != null && y.group ? (p(), B(P(mt), { key: 0 }, {
1890
+ (y = (E = (pe = a.value) == null ? void 0 : pe.query) == null ? void 0 : E.btns) != null && y.group ? (p(), B(P(mt), { key: 0 }, {
1876
1891
  default: D(() => [
1877
- (p(!0), I(J, null, N(c(), (ae) => M(V.$slots, ae.props.slot, {}, () => [
1878
- (p(), B(We(ae)))
1892
+ (p(!0), I(J, null, N(c(), (re) => M(V.$slots, re.props.slot, {}, () => [
1893
+ (p(), B(We(re)))
1879
1894
  ], !0)), 256))
1880
1895
  ]),
1881
1896
  _: 3
1882
- })) : (p(!0), I(J, { key: 1 }, N(c(), (ae) => M(V.$slots, ae.props.slot, {}, () => [
1883
- (p(), B(We(ae)))
1897
+ })) : (p(!0), I(J, { key: 1 }, N(c(), (re) => M(V.$slots, re.props.slot, {}, () => [
1898
+ (p(), B(We(re)))
1884
1899
  ], !0)), 256)),
1885
1900
  M(V.$slots, "q-btns", {}, void 0, !0)
1886
1901
  ], 64))
@@ -1893,11 +1908,11 @@ const wt = /* @__PURE__ */ Lt(_l), zt = {
1893
1908
  }),
1894
1909
  _: 3
1895
1910
  }, 16),
1896
- ((de = (ce = (ie = r.value) == null ? void 0 : ie.query) == null ? void 0 : ce.container) == null ? void 0 : de.inline) === !1 ? (p(), I("div", {
1911
+ ((de = (ce = (ie = a.value) == null ? void 0 : ie.query) == null ? void 0 : ce.container) == null ? void 0 : de.inline) === !1 ? (p(), I("div", {
1897
1912
  key: 0,
1898
- style: qe((Te = (Ce = r.value.query) == null ? void 0 : Ce.btns) == null ? void 0 : Te.style)
1913
+ style: qe((Te = (Ce = a.value.query) == null ? void 0 : Ce.btns) == null ? void 0 : Te.style)
1899
1914
  }, [
1900
- r.value.query.group ? (p(), B(P(mt), { key: 0 }, {
1915
+ a.value.query.group ? (p(), B(P(mt), { key: 0 }, {
1901
1916
  default: D(() => [
1902
1917
  (p(!0), I(J, null, N(c(), (k) => M(V.$slots, k.props.slot, {}, () => [
1903
1918
  (p(), B(We(k)))
@@ -1906,7 +1921,7 @@ const wt = /* @__PURE__ */ Lt(_l), zt = {
1906
1921
  ]),
1907
1922
  _: 3
1908
1923
  })) : (p(), I(J, { key: 1 }, [
1909
- (ne = (le = r.value.query) == null ? void 0 : le.btns) != null && ne.group ? (p(), B(P(mt), { key: 0 }, {
1924
+ (ne = (le = a.value.query) == null ? void 0 : le.btns) != null && ne.group ? (p(), B(P(mt), { key: 0 }, {
1910
1925
  default: D(() => [
1911
1926
  (p(!0), I(J, null, N(c(), (k) => M(V.$slots, k.props.slot, {}, () => [
1912
1927
  (p(), B(We(k)))
@@ -1920,30 +1935,30 @@ const wt = /* @__PURE__ */ Lt(_l), zt = {
1920
1935
  ], 64))
1921
1936
  ], 4)) : ge("", !0)
1922
1937
  ], 4),
1923
- o.value && !((T = (Oe = (re = r.value) == null ? void 0 : re.query) == null ? void 0 : Oe.more) != null && T.hidden) && r.value.query.more.mode == 2 ? (p(), B(L, O({
1938
+ o.value && !((T = (Oe = (ae = a.value) == null ? void 0 : ae.query) == null ? void 0 : Oe.more) != null && T.hidden) && a.value.query.more.mode == 2 ? (p(), B(L, O({
1924
1939
  key: 0,
1925
1940
  modelValue: o.value,
1926
1941
  "onUpdate:modelValue": j[6] || (j[6] = (k) => o.value = k),
1927
1942
  title: "更多查询",
1928
1943
  "show-close": !1
1929
- }, r.value.query.more.dialog), ye({
1944
+ }, a.value.query.more.dialog), ye({
1930
1945
  default: D(() => [
1931
1946
  K(P(pt), O({
1932
1947
  onSubmit: j[3] || (j[3] = yt(() => {
1933
1948
  }, ["prevent"]))
1934
- }, P(Ue)(r.value.query, (k) => !["query", "more", "reset"].includes(k)), { style: { width: "98%" } }), {
1949
+ }, P(Ue)(a.value.query, (k) => !["query", "more", "reset"].includes(k)), { style: { width: "98%" } }), {
1935
1950
  default: D(() => [
1936
1951
  K(Ft, {
1937
- modelValue: r.value,
1938
- "onUpdate:modelValue": j[1] || (j[1] = (k) => r.value = k),
1939
- info: E.value,
1940
- "onUpdate:info": j[2] || (j[2] = (k) => E.value = k),
1952
+ modelValue: a.value,
1953
+ "onUpdate:modelValue": j[1] || (j[1] = (k) => a.value = k),
1954
+ info: g.value,
1955
+ "onUpdate:info": j[2] || (j[2] = (k) => g.value = k),
1941
1956
  more: !0
1942
1957
  }, ye({ _: 2 }, [
1943
1958
  N(V.$slots, (k, U, Z) => ({
1944
1959
  name: U,
1945
1960
  fn: D((G) => [
1946
- M(V.$slots, U, { model: r.value }, void 0, !0)
1961
+ M(V.$slots, U, { model: a.value }, void 0, !0)
1947
1962
  ])
1948
1963
  }))
1949
1964
  ]), 1032, ["modelValue", "info"])
@@ -1953,23 +1968,23 @@ const wt = /* @__PURE__ */ Lt(_l), zt = {
1953
1968
  ]),
1954
1969
  _: 2
1955
1970
  }, [
1956
- (C = (q = (u = (g = ($ = r.value) == null ? void 0 : $.query) == null ? void 0 : g.more) == null ? void 0 : u.dialog) == null ? void 0 : q.footer) != null && C.hidden ? void 0 : {
1971
+ (C = (q = (u = (b = (w = a.value) == null ? void 0 : w.query) == null ? void 0 : b.more) == null ? void 0 : u.dialog) == null ? void 0 : q.footer) != null && C.hidden ? void 0 : {
1957
1972
  name: "footer",
1958
1973
  fn: D(() => [
1959
- Q("div", Et(el(r.value.query.more.dialog.footer)), [
1960
- K(P(Be), O(r.value.query.query, {
1961
- onClick: j[4] || (j[4] = (k) => r.value.query.query.click())
1974
+ Q("div", Et(el(a.value.query.more.dialog.footer)), [
1975
+ K(P(Be), O(a.value.query.query, {
1976
+ onClick: j[4] || (j[4] = (k) => a.value.query.query.click())
1962
1977
  }), {
1963
1978
  default: D(() => [
1964
- Ie(De(r.value.query.query.label), 1)
1979
+ Ie(De(a.value.query.query.label), 1)
1965
1980
  ]),
1966
1981
  _: 1
1967
1982
  }, 16),
1968
- K(P(Be), O(r.value.query.reset, {
1969
- onClick: j[5] || (j[5] = (k) => r.value.query.reset.click())
1983
+ K(P(Be), O(a.value.query.reset, {
1984
+ onClick: j[5] || (j[5] = (k) => a.value.query.reset.click())
1970
1985
  }), {
1971
1986
  default: D(() => [
1972
- Ie(De(r.value.query.reset.label), 1)
1987
+ Ie(De(a.value.query.reset.label), 1)
1973
1988
  ]),
1974
1989
  _: 1
1975
1990
  }, 16)
@@ -1986,19 +2001,19 @@ const wt = /* @__PURE__ */ Lt(_l), zt = {
1986
2001
  default: D(() => {
1987
2002
  var k, U, Z;
1988
2003
  return [
1989
- o.value && !((Z = (U = (k = r.value) == null ? void 0 : k.query) == null ? void 0 : U.more) != null && Z.hidden) && r.value.query.more.mode == 1 ? (p(), I("div", Il, [
2004
+ o.value && !((Z = (U = (k = a.value) == null ? void 0 : k.query) == null ? void 0 : U.more) != null && Z.hidden) && a.value.query.more.mode == 1 ? (p(), I("div", Il, [
1990
2005
  Q("div", Ul, [
1991
- r.value.query.more.mode == 1 ? ll((p(), B(P(pt), O({
2006
+ a.value.query.more.mode == 1 ? ll((p(), B(P(pt), O({
1992
2007
  key: 0,
1993
2008
  onSubmit: j[7] || (j[7] = yt(() => {
1994
2009
  }, ["prevent"]))
1995
- }, P(Ue)(r.value.query, (G) => !["query", "more", "reset"].includes(G))), {
2010
+ }, P(Ue)(a.value.query, (G) => !["query", "more", "reset"].includes(G))), {
1996
2011
  default: D(() => [
1997
2012
  (p(), B(We(i({ slots: V.$slots }, !0))))
1998
2013
  ]),
1999
2014
  _: 1
2000
2015
  }, 16)), [
2001
- [rl, o.value]
2016
+ [al, o.value]
2002
2017
  ]) : ge("", !0)
2003
2018
  ])
2004
2019
  ])) : ge("", !0)
@@ -2019,12 +2034,12 @@ const wt = /* @__PURE__ */ Lt(_l), zt = {
2019
2034
  commitText: String
2020
2035
  },
2021
2036
  emits: ["excel"],
2022
- setup(a, { emit: n }) {
2023
- const r = a, t = n, e = oe(r.items), o = () => {
2037
+ setup(r, { emit: n }) {
2038
+ const a = r, t = n, e = oe(a.items), o = () => {
2024
2039
  e.value.forEach((F) => {
2025
2040
  F.value = !0;
2026
2041
  });
2027
- }, E = () => {
2042
+ }, g = () => {
2028
2043
  e.value.forEach((F) => {
2029
2044
  F.value = !1;
2030
2045
  });
@@ -2049,7 +2064,7 @@ const wt = /* @__PURE__ */ Lt(_l), zt = {
2049
2064
  F.toArray();
2050
2065
  }
2051
2066
  }), f = F;
2052
- al(() => {
2067
+ rl(() => {
2053
2068
  f && f.destroy();
2054
2069
  });
2055
2070
  }), (F, f) => {
@@ -2063,7 +2078,7 @@ const wt = /* @__PURE__ */ Lt(_l), zt = {
2063
2078
  }, "全选"),
2064
2079
  K(i, { direction: "vertical" }),
2065
2080
  Q("a", {
2066
- onClick: E,
2081
+ onClick: g,
2067
2082
  style: { cursor: "pointer" }
2068
2083
  }, "全不选")
2069
2084
  ]),
@@ -2103,7 +2118,7 @@ const wt = /* @__PURE__ */ Lt(_l), zt = {
2103
2118
  disabled: e.value.filter((V) => V.value).length < 1
2104
2119
  }, {
2105
2120
  default: D(() => [
2106
- Ie(De(r.commitText), 1)
2121
+ Ie(De(a.commitText), 1)
2107
2122
  ]),
2108
2123
  _: 1
2109
2124
  }, 8, ["icon", "disabled"])
@@ -2122,102 +2137,102 @@ ve.version(Ql).stores({
2122
2137
  // 记录表格列显示状态
2123
2138
  tableColsState: "++id,[page+key], page, key"
2124
2139
  });
2125
- const Ke = (a, n) => {
2126
- if (!a || typeof a != "string")
2140
+ const Ke = (r, n) => {
2141
+ if (!r || typeof r != "string")
2127
2142
  throw new Error("page参数必须是非空字符串");
2128
2143
  };
2129
- async function ht(a, n, r) {
2144
+ async function ht(r, n, a) {
2130
2145
  try {
2131
- const t = await ve.tableColsState.where({ page: a }).first();
2132
- t ? r === "add" ? t.keys.includes(n) || (t.keys.push(n), await ve.tableColsState.put(t)) : r === "del" ? (t.keys = t.keys.filter((e) => e !== n), await ve.tableColsState.put(t)) : r === "delAll" ? (t.keys = n, await ve.tableColsState.put(t)) : r === "selectAll" && await ve.tableColsState.where({ page: a }).delete() : r === "add" ? await ve.tableColsState.add({ page: a, keys: [n] }) : r === "delAll" && await ve.tableColsState.add({ page: a, keys: n });
2146
+ const t = await ve.tableColsState.where({ page: r }).first();
2147
+ t ? a === "add" ? t.keys.includes(n) || (t.keys.push(n), await ve.tableColsState.put(t)) : a === "del" ? (t.keys = t.keys.filter((e) => e !== n), await ve.tableColsState.put(t)) : a === "delAll" ? (t.keys = n, await ve.tableColsState.put(t)) : a === "selectAll" && await ve.tableColsState.where({ page: r }).delete() : a === "add" ? await ve.tableColsState.add({ page: r, keys: [n] }) : a === "delAll" && await ve.tableColsState.add({ page: r, keys: n });
2133
2148
  } catch (t) {
2134
- throw console.error(`处理表格列状态时出错 (page: ${a}, key: ${n}, state: ${r}):`, t), t;
2149
+ throw console.error(`处理表格列状态时出错 (page: ${r}, key: ${n}, state: ${a}):`, t), t;
2135
2150
  }
2136
2151
  }
2137
- async function Zl(a, n, r) {
2138
- Ke(a);
2152
+ async function Zl(r, n, a) {
2153
+ Ke(r);
2139
2154
  try {
2140
- const t = await ve.tableWidths.where({ page: a, key: n }).first();
2141
- return t ? (await ve.tableWidths.put({ ...t, width: r }), "update success") : (await ve.tableWidths.add({ page: a, key: n, width: r }), "add success");
2155
+ const t = await ve.tableWidths.where({ page: r, key: n }).first();
2156
+ return t ? (await ve.tableWidths.put({ ...t, width: a }), "update success") : (await ve.tableWidths.add({ page: r, key: n, width: a }), "add success");
2142
2157
  } catch (t) {
2143
- throw console.error(`保存表格项设置信息时出错 (page: ${a}, key: ${n}):`, t), t;
2158
+ throw console.error(`保存表格项设置信息时出错 (page: ${r}, key: ${n}):`, t), t;
2144
2159
  }
2145
2160
  }
2146
- async function Jl(a) {
2147
- Ke(a);
2161
+ async function Jl(r) {
2162
+ Ke(r);
2148
2163
  try {
2149
- return await ve.tableWidths.where({ page: a }).toArray();
2164
+ return await ve.tableWidths.where({ page: r }).toArray();
2150
2165
  } catch (n) {
2151
- throw console.error(`获取表格项设置信息时出错 (page: ${a}):`, n), n;
2166
+ throw console.error(`获取表格项设置信息时出错 (page: ${r}):`, n), n;
2152
2167
  }
2153
2168
  }
2154
- async function Kl(a) {
2155
- Ke(a);
2169
+ async function Kl(r) {
2170
+ Ke(r);
2156
2171
  try {
2157
- const n = await ve.tableColsState.where({ page: a }).toArray();
2172
+ const n = await ve.tableColsState.where({ page: r }).toArray();
2158
2173
  return !n || n.length === 0 ? [] : n[0].keys;
2159
2174
  } catch (n) {
2160
- throw console.error(`获取表格列状态时出错 (page: ${a}):`, n), n;
2175
+ throw console.error(`获取表格列状态时出错 (page: ${r}):`, n), n;
2161
2176
  }
2162
2177
  }
2163
- async function er(a) {
2164
- Ke(a);
2178
+ async function ea(r) {
2179
+ Ke(r);
2165
2180
  try {
2166
2181
  return await ve.transaction("rw", ve.tableWidths, ve.pageInfo, ve.sorts, ve.tableColsState, async () => {
2167
2182
  await Promise.all([
2168
- ve.tableWidths.where({ page: a }).delete(),
2169
- ve.pageInfo.where({ page: a }).delete(),
2170
- ve.sorts.where({ page: a }).delete(),
2171
- ve.tableColsState.where({ page: a }).delete()
2183
+ ve.tableWidths.where({ page: r }).delete(),
2184
+ ve.pageInfo.where({ page: r }).delete(),
2185
+ ve.sorts.where({ page: r }).delete(),
2186
+ ve.tableColsState.where({ page: r }).delete()
2172
2187
  ]);
2173
2188
  });
2174
2189
  } catch (n) {
2175
- throw console.error(`删除页面"${a}"的表格设置信息时出错:`, n), n;
2190
+ throw console.error(`删除页面"${r}"的表格设置信息时出错:`, n), n;
2176
2191
  }
2177
2192
  }
2178
- async function tr({ page: a, size: n }) {
2179
- Ke(a);
2193
+ async function ta({ page: r, size: n }) {
2194
+ Ke(r);
2180
2195
  try {
2181
- const r = await ve.pageInfo.where({ page: a }).first();
2182
- return r ? (await ve.pageInfo.put({ ...r, size: n }), "update success") : (await ve.pageInfo.add({ page: a, size: n }), "add success");
2183
- } catch (r) {
2184
- throw console.error(`保存分页条数时出错 (page: ${a}):`, r), r;
2196
+ const a = await ve.pageInfo.where({ page: r }).first();
2197
+ return a ? (await ve.pageInfo.put({ ...a, size: n }), "update success") : (await ve.pageInfo.add({ page: r, size: n }), "add success");
2198
+ } catch (a) {
2199
+ throw console.error(`保存分页条数时出错 (page: ${r}):`, a), a;
2185
2200
  }
2186
2201
  }
2187
- async function lr(a) {
2188
- Ke(a);
2202
+ async function la(r) {
2203
+ Ke(r);
2189
2204
  try {
2190
- const n = await ve.pageInfo.where({ page: a }).first();
2205
+ const n = await ve.pageInfo.where({ page: r }).first();
2191
2206
  return (n == null ? void 0 : n.size) || 20;
2192
2207
  } catch (n) {
2193
- throw console.error(`获取分页条数时出错 (page: ${a}):`, n), n;
2208
+ throw console.error(`获取分页条数时出错 (page: ${r}):`, n), n;
2194
2209
  }
2195
2210
  }
2196
- async function rr(a, n) {
2197
- Ke(a);
2211
+ async function aa(r, n) {
2212
+ Ke(r);
2198
2213
  try {
2199
- const r = await ve.sorts.where({ page: a }).first();
2200
- return r ? (await ve.sorts.put({ ...r, keys: n }), "update success") : (await ve.sorts.add({ page: a, keys: n }), "add success");
2201
- } catch (r) {
2202
- throw console.error(`保存表格字段顺序时出错 (page: ${a}):`, r), r;
2214
+ const a = await ve.sorts.where({ page: r }).first();
2215
+ return a ? (await ve.sorts.put({ ...a, keys: n }), "update success") : (await ve.sorts.add({ page: r, keys: n }), "add success");
2216
+ } catch (a) {
2217
+ throw console.error(`保存表格字段顺序时出错 (page: ${r}):`, a), a;
2203
2218
  }
2204
2219
  }
2205
- async function ar(a) {
2206
- Ke(a);
2220
+ async function ra(r) {
2221
+ Ke(r);
2207
2222
  try {
2208
- const n = await ve.sorts.where({ page: a }).first();
2223
+ const n = await ve.sorts.where({ page: r }).first();
2209
2224
  return (n == null ? void 0 : n.keys) || [];
2210
2225
  } catch (n) {
2211
- throw console.error(`获取表格字段顺序时出错 (page: ${a}):`, n), n;
2226
+ throw console.error(`获取表格字段顺序时出错 (page: ${r}):`, n), n;
2212
2227
  }
2213
2228
  }
2214
- const or = {
2229
+ const oa = {
2215
2230
  style: { margin: "10px" },
2216
2231
  class: "allcheck"
2217
- }, nr = {
2232
+ }, na = {
2218
2233
  id: "cols",
2219
2234
  style: { display: "flex", "flex-wrap": "wrap", margin: "0 !important", padding: "0 !important" }
2220
- }, ur = ["textContent"], sr = {
2235
+ }, ua = ["textContent"], sa = {
2221
2236
  __name: "columns-setting",
2222
2237
  props: /* @__PURE__ */ Xe({
2223
2238
  tuid: {
@@ -2229,9 +2244,9 @@ const or = {
2229
2244
  modelModifiers: {}
2230
2245
  }),
2231
2246
  emits: /* @__PURE__ */ Xe(["setting-drag-end", "select-all"], ["update:modelValue"]),
2232
- setup(a, { emit: n }) {
2233
- const r = a, t = n, e = oe([]), o = Qe(a, "modelValue"), E = async (s, c) => {
2234
- s ? (o.value[c].showCol = !0, await ht(r.tuid, c, "del")) : (o.value[c].showCol = !1, await ht(r.tuid, c, "add"));
2247
+ setup(r, { emit: n }) {
2248
+ const a = r, t = n, e = oe([]), o = Qe(r, "modelValue"), g = async (s, c) => {
2249
+ s ? (o.value[c].showCol = !0, await ht(a.tuid, c, "del")) : (o.value[c].showCol = !1, await ht(a.tuid, c, "add"));
2235
2250
  }, v = () => {
2236
2251
  const s = document.getElementById("cols");
2237
2252
  if (s) {
@@ -2242,7 +2257,7 @@ const or = {
2242
2257
  onEnd: async () => {
2243
2258
  let _ = c.toArray();
2244
2259
  try {
2245
- rr(r.tuid, _).then((V) => {
2260
+ aa(a.tuid, _).then((V) => {
2246
2261
  t("setting-drag-end");
2247
2262
  });
2248
2263
  } catch (V) {
@@ -2258,7 +2273,7 @@ const or = {
2258
2273
  try {
2259
2274
  e.value.forEach((s) => {
2260
2275
  s.showCol = !0;
2261
- }), ht(r.tuid, [], "selectAll").then((s) => {
2276
+ }), ht(a.tuid, [], "selectAll").then((s) => {
2262
2277
  t("select-all");
2263
2278
  });
2264
2279
  } catch (s) {
@@ -2272,7 +2287,7 @@ const or = {
2272
2287
  let s = e.value.filter((c) => !c.alwaysShow && c.value != "control" && c.value != "hidden");
2273
2288
  s.forEach((c) => {
2274
2289
  c.showCol = !1;
2275
- }), ht(r.tuid, s.map((c) => c.value), "delAll").then((c) => {
2290
+ }), ht(a.tuid, s.map((c) => c.value), "delAll").then((c) => {
2276
2291
  t("select-all");
2277
2292
  });
2278
2293
  } catch (s) {
@@ -2287,7 +2302,7 @@ const or = {
2287
2302
  cancelButtonText: "取消",
2288
2303
  type: "warning"
2289
2304
  }).then(() => {
2290
- er(r.tuid).then((s) => {
2305
+ ea(a.tuid).then((s) => {
2291
2306
  window.location.reload();
2292
2307
  }).catch((s) => {
2293
2308
  console.error("复位操作出错:", s), Ge({
@@ -2309,7 +2324,7 @@ const or = {
2309
2324
  }), (s, c) => {
2310
2325
  const _ = H("el-divider"), V = H("el-alert"), j = H("el-checkbox");
2311
2326
  return p(), I("div", null, [
2312
- Q("div", or, [
2327
+ Q("div", oa, [
2313
2328
  Q("a", { onClick: F }, "全选"),
2314
2329
  K(_, { direction: "vertical" }),
2315
2330
  Q("a", { onClick: f }, "全不选"),
@@ -2324,13 +2339,13 @@ const or = {
2324
2339
  style: { "margin-bottom": "10px" }
2325
2340
  }),
2326
2341
  Q("div", null, [
2327
- Q("div", nr, [
2342
+ Q("div", na, [
2328
2343
  (p(!0), I(J, null, N(e.value, (R) => (p(), B(j, {
2329
2344
  modelValue: R.showCol,
2330
2345
  "onUpdate:modelValue": (L) => R.showCol = L,
2331
2346
  "data-id": R.value,
2332
2347
  class: Bt(["check-box-hover", R.value == "control" ? "filtered" : ""]),
2333
- onChange: (L) => E(L, R.value),
2348
+ onChange: (L) => g(L, R.value),
2334
2349
  style: { width: "125px !important", height: "30px !important", border: "1px solid #dfe6ec", margin: "5px !important", "border-radius": "2px !important", "padding-left": "5px !important", display: "flex !important", "align-items": "center !important" },
2335
2350
  value: R.value,
2336
2351
  title: R.label,
@@ -2341,7 +2356,7 @@ const or = {
2341
2356
  Q("span", {
2342
2357
  textContent: De(R.label),
2343
2358
  style: { display: "block", "text-overflow": "ellipsis", width: "95px", overflow: "hidden" }
2344
- }, null, 8, ur)
2359
+ }, null, 8, ua)
2345
2360
  ]),
2346
2361
  _: 2
2347
2362
  }, 1032, ["modelValue", "onUpdate:modelValue", "data-id", "class", "onChange", "value", "title", "disabled"]))), 128))
@@ -2350,7 +2365,7 @@ const or = {
2350
2365
  ]);
2351
2366
  };
2352
2367
  }
2353
- }, ir = /* @__PURE__ */ Ze(sr, [["__scopeId", "data-v-adb08f30"]]), dr = { class: "title" }, cr = { class: "content" }, fr = {
2368
+ }, ia = /* @__PURE__ */ Ze(sa, [["__scopeId", "data-v-adb08f30"]]), da = { class: "title" }, ca = { class: "content" }, fa = {
2354
2369
  __name: "g-cell-toopTip",
2355
2370
  props: {
2356
2371
  content: {
@@ -2362,118 +2377,118 @@ const or = {
2362
2377
  default: () => ({})
2363
2378
  }
2364
2379
  },
2365
- setup(a) {
2366
- const n = a, r = () => {
2380
+ setup(r) {
2381
+ const n = r, a = () => {
2367
2382
  n.content ? (navigator.clipboard.writeText(n.content), Ge.success("复制成功")) : Ge.warning("没有内容可复制");
2368
2383
  };
2369
2384
  return (t, e) => (p(), I("div", {
2370
2385
  class: "g-cell-toopTip",
2371
2386
  style: qe({ width: n.column.width + "px" })
2372
2387
  }, [
2373
- Q("div", dr, [
2388
+ Q("div", da, [
2374
2389
  e[0] || (e[0] = Q("span", { class: "title-text" }, "内容", -1)),
2375
2390
  Q("span", {
2376
2391
  class: "copy-btn",
2377
- onClick: r,
2392
+ onClick: a,
2378
2393
  title: "复制内容"
2379
2394
  }, [
2380
2395
  K(P(vl))
2381
2396
  ])
2382
2397
  ]),
2383
- Q("div", cr, De(n.content), 1)
2398
+ Q("div", ca, De(n.content), 1)
2384
2399
  ], 4));
2385
2400
  }
2386
- }, vr = /* @__PURE__ */ Ze(fr, [["__scopeId", "data-v-f28912da"]]);
2401
+ }, va = /* @__PURE__ */ Ze(fa, [["__scopeId", "data-v-f28912da"]]);
2387
2402
  var Pt = { exports: {} }, jt = { exports: {} };
2388
2403
  (function() {
2389
- var a = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", n = {
2404
+ var r = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", n = {
2390
2405
  // Bit-wise rotation left
2391
- rotl: function(r, t) {
2392
- return r << t | r >>> 32 - t;
2406
+ rotl: function(a, t) {
2407
+ return a << t | a >>> 32 - t;
2393
2408
  },
2394
2409
  // Bit-wise rotation right
2395
- rotr: function(r, t) {
2396
- return r << 32 - t | r >>> t;
2410
+ rotr: function(a, t) {
2411
+ return a << 32 - t | a >>> t;
2397
2412
  },
2398
2413
  // Swap big-endian to little-endian and vice versa
2399
- endian: function(r) {
2400
- if (r.constructor == Number)
2401
- return n.rotl(r, 8) & 16711935 | n.rotl(r, 24) & 4278255360;
2402
- for (var t = 0; t < r.length; t++)
2403
- r[t] = n.endian(r[t]);
2404
- return r;
2414
+ endian: function(a) {
2415
+ if (a.constructor == Number)
2416
+ return n.rotl(a, 8) & 16711935 | n.rotl(a, 24) & 4278255360;
2417
+ for (var t = 0; t < a.length; t++)
2418
+ a[t] = n.endian(a[t]);
2419
+ return a;
2405
2420
  },
2406
2421
  // Generate an array of any length of random bytes
2407
- randomBytes: function(r) {
2408
- for (var t = []; r > 0; r--)
2422
+ randomBytes: function(a) {
2423
+ for (var t = []; a > 0; a--)
2409
2424
  t.push(Math.floor(Math.random() * 256));
2410
2425
  return t;
2411
2426
  },
2412
2427
  // Convert a byte array to big-endian 32-bit words
2413
- bytesToWords: function(r) {
2414
- for (var t = [], e = 0, o = 0; e < r.length; e++, o += 8)
2415
- t[o >>> 5] |= r[e] << 24 - o % 32;
2428
+ bytesToWords: function(a) {
2429
+ for (var t = [], e = 0, o = 0; e < a.length; e++, o += 8)
2430
+ t[o >>> 5] |= a[e] << 24 - o % 32;
2416
2431
  return t;
2417
2432
  },
2418
2433
  // Convert big-endian 32-bit words to a byte array
2419
- wordsToBytes: function(r) {
2420
- for (var t = [], e = 0; e < r.length * 32; e += 8)
2421
- t.push(r[e >>> 5] >>> 24 - e % 32 & 255);
2434
+ wordsToBytes: function(a) {
2435
+ for (var t = [], e = 0; e < a.length * 32; e += 8)
2436
+ t.push(a[e >>> 5] >>> 24 - e % 32 & 255);
2422
2437
  return t;
2423
2438
  },
2424
2439
  // Convert a byte array to a hex string
2425
- bytesToHex: function(r) {
2426
- for (var t = [], e = 0; e < r.length; e++)
2427
- t.push((r[e] >>> 4).toString(16)), t.push((r[e] & 15).toString(16));
2440
+ bytesToHex: function(a) {
2441
+ for (var t = [], e = 0; e < a.length; e++)
2442
+ t.push((a[e] >>> 4).toString(16)), t.push((a[e] & 15).toString(16));
2428
2443
  return t.join("");
2429
2444
  },
2430
2445
  // Convert a hex string to a byte array
2431
- hexToBytes: function(r) {
2432
- for (var t = [], e = 0; e < r.length; e += 2)
2433
- t.push(parseInt(r.substr(e, 2), 16));
2446
+ hexToBytes: function(a) {
2447
+ for (var t = [], e = 0; e < a.length; e += 2)
2448
+ t.push(parseInt(a.substr(e, 2), 16));
2434
2449
  return t;
2435
2450
  },
2436
2451
  // Convert a byte array to a base-64 string
2437
- bytesToBase64: function(r) {
2438
- for (var t = [], e = 0; e < r.length; e += 3)
2439
- for (var o = r[e] << 16 | r[e + 1] << 8 | r[e + 2], E = 0; E < 4; E++)
2440
- e * 8 + E * 6 <= r.length * 8 ? t.push(a.charAt(o >>> 6 * (3 - E) & 63)) : t.push("=");
2452
+ bytesToBase64: function(a) {
2453
+ for (var t = [], e = 0; e < a.length; e += 3)
2454
+ for (var o = a[e] << 16 | a[e + 1] << 8 | a[e + 2], g = 0; g < 4; g++)
2455
+ e * 8 + g * 6 <= a.length * 8 ? t.push(r.charAt(o >>> 6 * (3 - g) & 63)) : t.push("=");
2441
2456
  return t.join("");
2442
2457
  },
2443
2458
  // Convert a base-64 string to a byte array
2444
- base64ToBytes: function(r) {
2445
- r = r.replace(/[^A-Z0-9+\/]/ig, "");
2446
- for (var t = [], e = 0, o = 0; e < r.length; o = ++e % 4)
2447
- o != 0 && t.push((a.indexOf(r.charAt(e - 1)) & Math.pow(2, -2 * o + 8) - 1) << o * 2 | a.indexOf(r.charAt(e)) >>> 6 - o * 2);
2459
+ base64ToBytes: function(a) {
2460
+ a = a.replace(/[^A-Z0-9+\/]/ig, "");
2461
+ for (var t = [], e = 0, o = 0; e < a.length; o = ++e % 4)
2462
+ o != 0 && t.push((r.indexOf(a.charAt(e - 1)) & Math.pow(2, -2 * o + 8) - 1) << o * 2 | r.indexOf(a.charAt(e)) >>> 6 - o * 2);
2448
2463
  return t;
2449
2464
  }
2450
2465
  };
2451
2466
  jt.exports = n;
2452
2467
  })();
2453
- var pr = jt.exports, kt = {
2468
+ var pa = jt.exports, kt = {
2454
2469
  // UTF-8 encoding
2455
2470
  utf8: {
2456
2471
  // Convert a string to a byte array
2457
- stringToBytes: function(a) {
2458
- return kt.bin.stringToBytes(unescape(encodeURIComponent(a)));
2472
+ stringToBytes: function(r) {
2473
+ return kt.bin.stringToBytes(unescape(encodeURIComponent(r)));
2459
2474
  },
2460
2475
  // Convert a byte array to a string
2461
- bytesToString: function(a) {
2462
- return decodeURIComponent(escape(kt.bin.bytesToString(a)));
2476
+ bytesToString: function(r) {
2477
+ return decodeURIComponent(escape(kt.bin.bytesToString(r)));
2463
2478
  }
2464
2479
  },
2465
2480
  // Binary encoding
2466
2481
  bin: {
2467
2482
  // Convert a string to a byte array
2468
- stringToBytes: function(a) {
2469
- for (var n = [], r = 0; r < a.length; r++)
2470
- n.push(a.charCodeAt(r) & 255);
2483
+ stringToBytes: function(r) {
2484
+ for (var n = [], a = 0; a < r.length; a++)
2485
+ n.push(r.charCodeAt(a) & 255);
2471
2486
  return n;
2472
2487
  },
2473
2488
  // Convert a byte array to a string
2474
- bytesToString: function(a) {
2475
- for (var n = [], r = 0; r < a.length; r++)
2476
- n.push(String.fromCharCode(a[r]));
2489
+ bytesToString: function(r) {
2490
+ for (var n = [], a = 0; a < r.length; a++)
2491
+ n.push(String.fromCharCode(r[a]));
2477
2492
  return n.join("");
2478
2493
  }
2479
2494
  }
@@ -2484,54 +2499,54 @@ var pr = jt.exports, kt = {
2484
2499
  * @author Feross Aboukhadijeh <https://feross.org>
2485
2500
  * @license MIT
2486
2501
  */
2487
- var mr = function(a) {
2488
- return a != null && (Nt(a) || hr(a) || !!a._isBuffer);
2502
+ var ma = function(r) {
2503
+ return r != null && (Nt(r) || ha(r) || !!r._isBuffer);
2489
2504
  };
2490
- function Nt(a) {
2491
- return !!a.constructor && typeof a.constructor.isBuffer == "function" && a.constructor.isBuffer(a);
2505
+ function Nt(r) {
2506
+ return !!r.constructor && typeof r.constructor.isBuffer == "function" && r.constructor.isBuffer(r);
2492
2507
  }
2493
- function hr(a) {
2494
- return typeof a.readFloatLE == "function" && typeof a.slice == "function" && Nt(a.slice(0, 0));
2508
+ function ha(r) {
2509
+ return typeof r.readFloatLE == "function" && typeof r.slice == "function" && Nt(r.slice(0, 0));
2495
2510
  }
2496
2511
  (function() {
2497
- var a = pr, n = xt.utf8, r = mr, t = xt.bin, e = function(o, E) {
2498
- o.constructor == String ? E && E.encoding === "binary" ? o = t.stringToBytes(o) : o = n.stringToBytes(o) : r(o) ? o = Array.prototype.slice.call(o, 0) : !Array.isArray(o) && o.constructor !== Uint8Array && (o = o.toString());
2499
- for (var v = a.bytesToWords(o), F = o.length * 8, f = 1732584193, i = -271733879, s = -1732584194, c = 271733878, _ = 0; _ < v.length; _++)
2512
+ var r = pa, n = xt.utf8, a = ma, t = xt.bin, e = function(o, g) {
2513
+ o.constructor == String ? g && g.encoding === "binary" ? o = t.stringToBytes(o) : o = n.stringToBytes(o) : a(o) ? o = Array.prototype.slice.call(o, 0) : !Array.isArray(o) && o.constructor !== Uint8Array && (o = o.toString());
2514
+ for (var v = r.bytesToWords(o), F = o.length * 8, f = 1732584193, i = -271733879, s = -1732584194, c = 271733878, _ = 0; _ < v.length; _++)
2500
2515
  v[_] = (v[_] << 8 | v[_] >>> 24) & 16711935 | (v[_] << 24 | v[_] >>> 8) & 4278255360;
2501
2516
  v[F >>> 5] |= 128 << F % 32, v[(F + 64 >>> 9 << 4) + 14] = F;
2502
2517
  for (var V = e._ff, j = e._gg, R = e._hh, L = e._ii, _ = 0; _ < v.length; _ += 16) {
2503
2518
  var te = f, me = i, ie = s, ce = c;
2504
2519
  f = V(f, i, s, c, v[_ + 0], 7, -680876936), c = V(c, f, i, s, v[_ + 1], 12, -389564586), s = V(s, c, f, i, v[_ + 2], 17, 606105819), i = V(i, s, c, f, v[_ + 3], 22, -1044525330), f = V(f, i, s, c, v[_ + 4], 7, -176418897), c = V(c, f, i, s, v[_ + 5], 12, 1200080426), s = V(s, c, f, i, v[_ + 6], 17, -1473231341), i = V(i, s, c, f, v[_ + 7], 22, -45705983), f = V(f, i, s, c, v[_ + 8], 7, 1770035416), c = V(c, f, i, s, v[_ + 9], 12, -1958414417), s = V(s, c, f, i, v[_ + 10], 17, -42063), i = V(i, s, c, f, v[_ + 11], 22, -1990404162), f = V(f, i, s, c, v[_ + 12], 7, 1804603682), c = V(c, f, i, s, v[_ + 13], 12, -40341101), s = V(s, c, f, i, v[_ + 14], 17, -1502002290), i = V(i, s, c, f, v[_ + 15], 22, 1236535329), f = j(f, i, s, c, v[_ + 1], 5, -165796510), c = j(c, f, i, s, v[_ + 6], 9, -1069501632), s = j(s, c, f, i, v[_ + 11], 14, 643717713), i = j(i, s, c, f, v[_ + 0], 20, -373897302), f = j(f, i, s, c, v[_ + 5], 5, -701558691), c = j(c, f, i, s, v[_ + 10], 9, 38016083), s = j(s, c, f, i, v[_ + 15], 14, -660478335), i = j(i, s, c, f, v[_ + 4], 20, -405537848), f = j(f, i, s, c, v[_ + 9], 5, 568446438), c = j(c, f, i, s, v[_ + 14], 9, -1019803690), s = j(s, c, f, i, v[_ + 3], 14, -187363961), i = j(i, s, c, f, v[_ + 8], 20, 1163531501), f = j(f, i, s, c, v[_ + 13], 5, -1444681467), c = j(c, f, i, s, v[_ + 2], 9, -51403784), s = j(s, c, f, i, v[_ + 7], 14, 1735328473), i = j(i, s, c, f, v[_ + 12], 20, -1926607734), f = R(f, i, s, c, v[_ + 5], 4, -378558), c = R(c, f, i, s, v[_ + 8], 11, -2022574463), s = R(s, c, f, i, v[_ + 11], 16, 1839030562), i = R(i, s, c, f, v[_ + 14], 23, -35309556), f = R(f, i, s, c, v[_ + 1], 4, -1530992060), c = R(c, f, i, s, v[_ + 4], 11, 1272893353), s = R(s, c, f, i, v[_ + 7], 16, -155497632), i = R(i, s, c, f, v[_ + 10], 23, -1094730640), f = R(f, i, s, c, v[_ + 13], 4, 681279174), c = R(c, f, i, s, v[_ + 0], 11, -358537222), s = R(s, c, f, i, v[_ + 3], 16, -722521979), i = R(i, s, c, f, v[_ + 6], 23, 76029189), f = R(f, i, s, c, v[_ + 9], 4, -640364487), c = R(c, f, i, s, v[_ + 12], 11, -421815835), s = R(s, c, f, i, v[_ + 15], 16, 530742520), i = R(i, s, c, f, v[_ + 2], 23, -995338651), f = L(f, i, s, c, v[_ + 0], 6, -198630844), c = L(c, f, i, s, v[_ + 7], 10, 1126891415), s = L(s, c, f, i, v[_ + 14], 15, -1416354905), i = L(i, s, c, f, v[_ + 5], 21, -57434055), f = L(f, i, s, c, v[_ + 12], 6, 1700485571), c = L(c, f, i, s, v[_ + 3], 10, -1894986606), s = L(s, c, f, i, v[_ + 10], 15, -1051523), i = L(i, s, c, f, v[_ + 1], 21, -2054922799), f = L(f, i, s, c, v[_ + 8], 6, 1873313359), c = L(c, f, i, s, v[_ + 15], 10, -30611744), s = L(s, c, f, i, v[_ + 6], 15, -1560198380), i = L(i, s, c, f, v[_ + 13], 21, 1309151649), f = L(f, i, s, c, v[_ + 4], 6, -145523070), c = L(c, f, i, s, v[_ + 11], 10, -1120210379), s = L(s, c, f, i, v[_ + 2], 15, 718787259), i = L(i, s, c, f, v[_ + 9], 21, -343485551), f = f + te >>> 0, i = i + me >>> 0, s = s + ie >>> 0, c = c + ce >>> 0;
2505
2520
  }
2506
- return a.endian([f, i, s, c]);
2521
+ return r.endian([f, i, s, c]);
2507
2522
  };
2508
- e._ff = function(o, E, v, F, f, i, s) {
2509
- var c = o + (E & v | ~E & F) + (f >>> 0) + s;
2510
- return (c << i | c >>> 32 - i) + E;
2511
- }, e._gg = function(o, E, v, F, f, i, s) {
2512
- var c = o + (E & F | v & ~F) + (f >>> 0) + s;
2513
- return (c << i | c >>> 32 - i) + E;
2514
- }, e._hh = function(o, E, v, F, f, i, s) {
2515
- var c = o + (E ^ v ^ F) + (f >>> 0) + s;
2516
- return (c << i | c >>> 32 - i) + E;
2517
- }, e._ii = function(o, E, v, F, f, i, s) {
2518
- var c = o + (v ^ (E | ~F)) + (f >>> 0) + s;
2519
- return (c << i | c >>> 32 - i) + E;
2520
- }, e._blocksize = 16, e._digestsize = 16, Pt.exports = function(o, E) {
2523
+ e._ff = function(o, g, v, F, f, i, s) {
2524
+ var c = o + (g & v | ~g & F) + (f >>> 0) + s;
2525
+ return (c << i | c >>> 32 - i) + g;
2526
+ }, e._gg = function(o, g, v, F, f, i, s) {
2527
+ var c = o + (g & F | v & ~F) + (f >>> 0) + s;
2528
+ return (c << i | c >>> 32 - i) + g;
2529
+ }, e._hh = function(o, g, v, F, f, i, s) {
2530
+ var c = o + (g ^ v ^ F) + (f >>> 0) + s;
2531
+ return (c << i | c >>> 32 - i) + g;
2532
+ }, e._ii = function(o, g, v, F, f, i, s) {
2533
+ var c = o + (v ^ (g | ~F)) + (f >>> 0) + s;
2534
+ return (c << i | c >>> 32 - i) + g;
2535
+ }, e._blocksize = 16, e._digestsize = 16, Pt.exports = function(o, g) {
2521
2536
  if (o == null)
2522
2537
  throw new Error("Illegal argument " + o);
2523
- var v = a.wordsToBytes(e(o, E));
2524
- return E && E.asBytes ? v : E && E.asString ? t.bytesToString(v) : a.bytesToHex(v);
2538
+ var v = r.wordsToBytes(e(o, g));
2539
+ return g && g.asBytes ? v : g && g.asString ? t.bytesToString(v) : r.bytesToHex(v);
2525
2540
  };
2526
2541
  })();
2527
- var yr = Pt.exports;
2528
- const gr = /* @__PURE__ */ Lt(yr), br = { key: 0 }, $r = { style: { display: "flex", "margin-top": "-2px" } }, wr = { style: { display: "flex", flex: "1" } }, Er = {
2542
+ var ya = Pt.exports;
2543
+ const ga = /* @__PURE__ */ Lt(ya), ba = { key: 0 }, $a = { style: { display: "flex", "margin-top": "-2px" } }, wa = { style: { display: "flex", flex: "1" } }, Ea = {
2529
2544
  style: { display: "flex", "justify-content": "center", width: "100%", height: "100%" },
2530
2545
  id: "table-form"
2531
- }, _r = { key: 1 }, kr = { style: { display: "flex" } }, Cr = { style: { display: "flex", flex: "1" } }, Dr = { class: "g-table-container" }, Sr = {
2546
+ }, _a = { key: 1 }, ka = { style: { display: "flex" } }, Ca = { style: { display: "flex", flex: "1" } }, Da = { class: "g-table-container" }, Sa = {
2532
2547
  key: 0,
2533
2548
  class: "table-query-container"
2534
- }, Mr = { class: "table-container" }, Tr = ["innerHTML"], Fr = /* @__PURE__ */ Object.assign({
2549
+ }, Ma = { class: "table-container" }, Ta = ["innerHTML"], Fa = /* @__PURE__ */ Object.assign({
2535
2550
  name: "g-table",
2536
2551
  inheritAttrs: !1
2537
2552
  }, {
@@ -2549,10 +2564,10 @@ const gr = /* @__PURE__ */ Lt(yr), br = { key: 0 }, $r = { style: { display: "fl
2549
2564
  "download",
2550
2565
  "row-save"
2551
2566
  ], ["update:modelValue"]),
2552
- setup(a, { expose: n, emit: r }) {
2567
+ setup(r, { expose: n, emit: a }) {
2553
2568
  var Ye, st, it, dt, ct, ft, vt;
2554
- const t = r, e = Qe(a, "modelValue"), o = Mt("options"), E = oe({}), v = oe(null), F = oe(null), f = Object.entries(e.value).filter(([l, d]) => (d == null ? void 0 : d.search) !== void 0).map(([l, d]) => [l, d.value]);
2555
- E.value = Object.fromEntries(f);
2569
+ const t = a, e = Qe(r, "modelValue"), o = Mt("options"), g = oe({}), v = oe(null), F = oe(null), f = Object.entries(e.value).filter(([l, d]) => (d == null ? void 0 : d.search) !== void 0).map(([l, d]) => [l, d.value]);
2570
+ g.value = Object.fromEntries(f);
2556
2571
  const i = oe(!1), s = [
2557
2572
  "type",
2558
2573
  "index",
@@ -2591,23 +2606,23 @@ const gr = /* @__PURE__ */ Lt(yr), br = { key: 0 }, $r = { style: { display: "fl
2591
2606
  fit: !1,
2592
2607
  type: "hidden",
2593
2608
  load: async () => {
2594
- e.value.table.page.pageSize = await lr(te.value);
2609
+ e.value.table.page.pageSize = await la(te.value);
2595
2610
  let { currentPage: l, pageSize: d } = e.value.table.page;
2596
2611
  try {
2597
2612
  t(
2598
2613
  "load",
2599
- { currentPage: l, pageSize: d, ...E.value },
2600
- (m = [], b = 0, { fields: A = [], sums: Y = {} } = {}) => {
2614
+ { currentPage: l, pageSize: d, ...g.value },
2615
+ (m = [], $ = 0, { fields: A = [], sums: Y = {} } = {}) => {
2601
2616
  var W;
2602
2617
  if (!Array.isArray(m)) {
2603
2618
  console.error("从 load 事件回调中接收到的数据不是数组格式。"), Ge.error("数据加载失败,请检查数据格式。");
2604
2619
  return;
2605
2620
  }
2606
- if (typeof b != "number") {
2621
+ if (typeof $ != "number") {
2607
2622
  console.error("从 load 事件回调中接收到的 total 不是数字格式。"), Ge.error("数据加载失败,请检查数据格式。");
2608
2623
  return;
2609
2624
  }
2610
- e.value.table.data = m, ((W = e.value.control) == null ? void 0 : W.add(e).inline) === !0 && e.value.table.data.unshift(R.value), e.value.table.page.total = b, j.value = A, V.value = Y, $e(), L.value = Math.random().toString(36).substring(2);
2625
+ e.value.table.data = m, ((W = e.value.control) == null ? void 0 : W.add(e).inline) === !0 && e.value.table.data.unshift(R.value), e.value.table.page.total = $, j.value = A, V.value = Y, $e(), L.value = Math.random().toString(36).substring(2);
2611
2626
  },
2612
2627
  R.value
2613
2628
  );
@@ -2619,7 +2634,7 @@ const gr = /* @__PURE__ */ Lt(yr), br = { key: 0 }, $r = { style: { display: "fl
2619
2634
  Zl(te.value, m.property, l);
2620
2635
  },
2621
2636
  onRowDblclick: (l, d, m) => {
2622
- e.value.table.dblclickType == "edit" ? $(l, d, m, e) : e.value.table.dblclickType == "view" ? u(l, d, m, e) : e.value.table.dblclickType == "delete" ? g(l, d, m, e) : e.value.table.dblclickType(l, d, m, e);
2637
+ e.value.table.dblclickType == "edit" ? w(l, d, m, e) : e.value.table.dblclickType == "view" ? u(l, d, m, e) : e.value.table.dblclickType == "delete" ? b(l, d, m, e) : e.value.table.dblclickType(l, d, m, e);
2623
2638
  },
2624
2639
  style: { "min-height": "100px", backgroundColor: "var(--el-bg-color)" },
2625
2640
  page: {
@@ -2639,14 +2654,14 @@ const gr = /* @__PURE__ */ Lt(yr), br = { key: 0 }, $r = { style: { display: "fl
2639
2654
  e.value.table.page.currentPage = l, e.value.table.load();
2640
2655
  },
2641
2656
  onSizeChange: (l) => {
2642
- tr({ page: te.value, size: l }).then(() => {
2657
+ ta({ page: te.value, size: l }).then(() => {
2643
2658
  e.value.table.page.pageSize = l, e.value.table.load();
2644
2659
  });
2645
2660
  }
2646
2661
  },
2647
2662
  dblclickType: "edit",
2648
2663
  "summary-method": ({ columns: l, data: d }, m) => m,
2649
- onSortChange: ({ column: l, prop: d, order: m }, b) => {
2664
+ onSortChange: ({ column: l, prop: d, order: m }, $) => {
2650
2665
  }
2651
2666
  });
2652
2667
  e.value.table = Ve(
@@ -2665,7 +2680,7 @@ const gr = /* @__PURE__ */ Lt(yr), br = { key: 0 }, $r = { style: { display: "fl
2665
2680
  fixed: "right",
2666
2681
  style: { ...(st = (Ye = e.value) == null ? void 0 : Ye.control) == null ? void 0 : st.style },
2667
2682
  validate: async (l) => await !0,
2668
- view: (l, d, m, b) => ({
2683
+ view: (l, d, m, $) => ({
2669
2684
  label: "查看",
2670
2685
  text: !0,
2671
2686
  type: "success",
@@ -2673,10 +2688,10 @@ const gr = /* @__PURE__ */ Lt(yr), br = { key: 0 }, $r = { style: { display: "fl
2673
2688
  icon: () => ke(pl),
2674
2689
  auth: () => {
2675
2690
  var A;
2676
- return !(((A = b == null ? void 0 : b.control) == null ? void 0 : A.add(b).inline) === !0 && m === 0);
2691
+ return !(((A = $ == null ? void 0 : $.control) == null ? void 0 : A.add($).inline) === !0 && m === 0);
2677
2692
  }
2678
2693
  }),
2679
- edit: (l, d, m, b) => ({
2694
+ edit: (l, d, m, $) => ({
2680
2695
  label: "编辑",
2681
2696
  text: !0,
2682
2697
  type: "primary",
@@ -2684,17 +2699,17 @@ const gr = /* @__PURE__ */ Lt(yr), br = { key: 0 }, $r = { style: { display: "fl
2684
2699
  icon: () => ke(ml),
2685
2700
  auth: () => {
2686
2701
  var A;
2687
- return ((A = b == null ? void 0 : b.control) == null ? void 0 : A.add(b).inline) !== !0;
2702
+ return ((A = $ == null ? void 0 : $.control) == null ? void 0 : A.add($).inline) !== !0;
2688
2703
  }
2689
2704
  }),
2690
- delete: (l, d, m, b) => ({
2705
+ delete: (l, d, m, $) => ({
2691
2706
  text: !0,
2692
2707
  label: "删除",
2693
2708
  type: "danger",
2694
2709
  icon: () => ke(Ut),
2695
2710
  auth: () => {
2696
2711
  var A;
2697
- return !(((A = b.control) == null ? void 0 : A.add(b).inline) === !0 && m === 0);
2712
+ return !(((A = $.control) == null ? void 0 : A.add($).inline) === !0 && m === 0);
2698
2713
  },
2699
2714
  dialog: {
2700
2715
  message: "此操作将永久删除该文件, 是否继续?",
@@ -2706,15 +2721,15 @@ const gr = /* @__PURE__ */ Lt(yr), br = { key: 0 }, $r = { style: { display: "fl
2706
2721
  }
2707
2722
  }
2708
2723
  }),
2709
- save: (l, d, m, b) => ({
2710
- label: b.control.add(b).inline !== !0 ? "保存" : m === 0 ? "新增" : "保存",
2724
+ save: (l, d, m, $) => ({
2725
+ label: $.control.add($).inline !== !0 ? "保存" : m === 0 ? "新增" : "保存",
2711
2726
  text: !0,
2712
2727
  icon: () => ke(Ot),
2713
- type: b.control.add(b).inline !== !0 || m === 0 ? "primary" : "success",
2728
+ type: $.control.add($).inline !== !0 || m === 0 ? "primary" : "success",
2714
2729
  sort: -1,
2715
2730
  auth: () => {
2716
2731
  var A;
2717
- return ((A = b.control) == null ? void 0 : A.add(b).inline) === !0;
2732
+ return ((A = $.control) == null ? void 0 : A.add($).inline) === !0;
2718
2733
  }
2719
2734
  }),
2720
2735
  add: (l) => ({
@@ -2743,17 +2758,17 @@ const gr = /* @__PURE__ */ Lt(yr), br = { key: 0 }, $r = { style: { display: "fl
2743
2758
  icon: () => ke(yl),
2744
2759
  auth: () => !0
2745
2760
  }),
2746
- dropdown: (l, d, m, b) => ({
2761
+ dropdown: (l, d, m, $) => ({
2747
2762
  label: "编辑",
2748
2763
  operate: "edit",
2749
2764
  "split-button": !0,
2750
2765
  type: "primary",
2751
2766
  size: "small",
2752
- auth: () => !(b.control.add(b).inline === !0 && m == 0),
2767
+ auth: () => !($.control.add($).inline === !0 && m == 0),
2753
2768
  onClick: () => {
2754
2769
  var Y;
2755
- let A = (Y = de(l, d, m, b)) == null ? void 0 : Y.operate;
2756
- A === "edit" ? $(l, d, m, b) : A === "delete" ? g(l, d, m, b) : A === "view" && u(l, d, m, b);
2770
+ let A = (Y = de(l, d, m, $)) == null ? void 0 : Y.operate;
2771
+ A === "edit" ? w(l, d, m, $) : A === "delete" ? b(l, d, m, $) : A === "view" && u(l, d, m, $);
2757
2772
  },
2758
2773
  "button-props": { round: !0, plain: !0 }
2759
2774
  })
@@ -2764,7 +2779,7 @@ const gr = /* @__PURE__ */ Lt(yr), br = { key: 0 }, $r = { style: { display: "fl
2764
2779
  (it = e.value) == null ? void 0 : it.control
2765
2780
  );
2766
2781
  const ce = (l, d = !0) => {
2767
- const m = e.value.control[l], b = d ? (A, Y, W, fe) => {
2782
+ const m = e.value.control[l], $ = d ? (A, Y, W, fe) => {
2768
2783
  var Le, He, et;
2769
2784
  if (!A || !Y || W == null)
2770
2785
  return console.warn(`merge${l.charAt(0).toUpperCase() + l.slice(1)}: 缺少必要的参数(row, column或index)`), {};
@@ -2775,21 +2790,21 @@ const gr = /* @__PURE__ */ Lt(yr), br = { key: 0 }, $r = { style: { display: "fl
2775
2790
  const Y = ((_e = ie[l]) == null ? void 0 : _e.call(ie, A)) || {}, W = ((Re = (Fe = o == null ? void 0 : o.control) == null ? void 0 : Fe[l]) == null ? void 0 : Re.call(Fe, A)) || {}, fe = (m == null ? void 0 : m(A)) || {};
2776
2791
  return Ve(Y, W, fe) || {};
2777
2792
  };
2778
- e.value.control[l] = b;
2793
+ e.value.control[l] = $;
2779
2794
  };
2780
2795
  ce("edit"), ce("delete"), ce("view"), ce("save"), ce("add", !1), ce("download", !1), ce("setting", !1);
2781
- const de = (l, d, m, b) => {
2796
+ const de = (l, d, m, $) => {
2782
2797
  var fe, _e, Fe, Re, Le, He;
2783
2798
  if (!l || !d || m == null)
2784
2799
  return console.warn("mergeDropdown: 缺少必要的参数(row, column或index)"), {};
2785
- const A = ((fe = ie.dropdown) == null ? void 0 : fe.call(ie, l, d, m, b)) || {}, Y = ((Fe = (_e = o == null ? void 0 : o.control) == null ? void 0 : _e.dropdown) == null ? void 0 : Fe.call(_e, l, d, m, b)) || {}, W = ((He = (Le = (Re = e.value) == null ? void 0 : Re.control) == null ? void 0 : Le.dropdown) == null ? void 0 : He.call(Le, l, d, m, b)) || {};
2800
+ const A = ((fe = ie.dropdown) == null ? void 0 : fe.call(ie, l, d, m, $)) || {}, Y = ((Fe = (_e = o == null ? void 0 : o.control) == null ? void 0 : _e.dropdown) == null ? void 0 : Fe.call(_e, l, d, m, $)) || {}, W = ((He = (Le = (Re = e.value) == null ? void 0 : Re.control) == null ? void 0 : Le.dropdown) == null ? void 0 : He.call(Le, l, d, m, $)) || {};
2786
2801
  return Ve(A, Y, W) || {};
2787
2802
  }, Ce = {
2788
2803
  type: "hidden",
2789
2804
  "min-width": 100,
2790
2805
  align: "center",
2791
- formatter: (l, d, m, b) => m,
2792
- "tooltip-formatter": ({ row: l, column: d, cellValue: m }) => ke(vr, { content: m, column: d })
2806
+ formatter: (l, d, m, $) => m,
2807
+ "tooltip-formatter": ({ row: l, column: d, cellValue: m }) => ke(va, { content: m, column: d })
2793
2808
  };
2794
2809
  e.value.tableColumns = Ve(
2795
2810
  Ce,
@@ -2852,51 +2867,51 @@ const gr = /* @__PURE__ */ Lt(yr), br = { key: 0 }, $r = { style: { display: "fl
2852
2867
  }
2853
2868
  return l.type === "money" && (l.align = l.align || "right", l.width = l.width || 130, m = `<span title="${St(
2854
2869
  parseFloat(m)
2855
- )}">${jr(parseFloat(m))}</span>`), l.prefix && m && (m = `<span>${l.prefix}${m}</span>`), l.suffix && m && (m = `${m}<span>${l.suffix}</span>`), m;
2856
- }, re = (l) => {
2857
- E.value = Object.fromEntries(f), e.value.table.load();
2870
+ )}">${ja(parseFloat(m))}</span>`), l.prefix && m && (m = `<span>${l.prefix}${m}</span>`), l.suffix && m && (m = `${m}<span>${l.suffix}</span>`), m;
2871
+ }, ae = (l) => {
2872
+ g.value = Object.fromEntries(f), e.value.table.load();
2858
2873
  }, Oe = (l) => {
2859
- E.value = l, e.value.table.load();
2874
+ g.value = l, e.value.table.load();
2860
2875
  }, T = async (l) => {
2861
2876
  var d, m;
2862
2877
  e.value.form.modalState = "add";
2863
2878
  try {
2864
- if (!await ((d = e.value.control) == null ? void 0 : d.validate("add", { m: l }))) return;
2865
- } catch (b) {
2866
- console.error("验证失败:", b);
2879
+ if (!await ((d = e.value.control) == null ? void 0 : d.validate("add", { initFormData: R.value, m: l }))) return;
2880
+ } catch ($) {
2881
+ console.error("验证失败:", $);
2867
2882
  return;
2868
2883
  }
2869
- (m = e.value.control.add(l)) != null && m.click ? e.value.control.add(l).click(l) : e.value.control.add(l).inline === !0 ? (e.value.table.data.unshift(R.value), t("open", "row-add", { initFormData: R.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(l).mode, e.value.dialog.title = e.value.control.add(l).title || e.value.control.add(l).label || "新增", Object.keys(R.value).forEach((b) => {
2870
- e.value[b] && (e.value[b].value = R.value[b]);
2884
+ (m = e.value.control.add(l)) != null && m.click ? e.value.control.add(l).click(l) : e.value.control.add(l).inline === !0 ? (e.value.table.data.unshift(R.value), t("open", "row-add", { initFormData: R.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(l).mode, e.value.dialog.title = e.value.control.add(l).title || e.value.control.add(l).label || "新增", Object.keys(R.value).forEach(($) => {
2885
+ e.value[$] && (e.value[$].value = R.value[$]);
2871
2886
  }), i.value = !0, t("open", "add", { m: l }), gt());
2872
- }, $ = async (l, d, m, b) => {
2887
+ }, w = async (l, d, m, $) => {
2873
2888
  var A, Y;
2874
2889
  e.value.form.modalState = "edit";
2875
2890
  try {
2876
- if (!await ((A = e.value.control) == null ? void 0 : A.validate("edit", { row: l, column: d, index: m, m: b }))) return;
2891
+ if (!await ((A = e.value.control) == null ? void 0 : A.validate("edit", { row: l, column: d, index: m, m: $ }))) return;
2877
2892
  } catch (W) {
2878
2893
  console.error("验证失败:", W);
2879
2894
  return;
2880
2895
  }
2881
- (Y = e.value.control.edit(l, d, m, b)) != null && Y.click ? e.value.control.edit(l, d, m, b).click(l, d, m, b) : (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(l, d, m, b).mode, e.value.dialog.title = e.value.control.edit(l, d, m, b).title || e.value.control.edit(l, d, m, b).label || "编辑", Object.keys(l).forEach((W) => {
2896
+ (Y = e.value.control.edit(l, d, m, $)) != null && Y.click ? e.value.control.edit(l, d, m, $).click(l, d, m, $) : (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(l, d, m, $).mode, e.value.dialog.title = e.value.control.edit(l, d, m, $).title || e.value.control.edit(l, d, m, $).label || "编辑", Object.keys(l).forEach((W) => {
2882
2897
  e.value[W] && (e.value[W].value = l[W]);
2883
- }), i.value = !0, t("open", "edit", { m: b, row: l, column: d, index: m }), gt());
2884
- }, g = async (l, d, m, b) => {
2898
+ }), i.value = !0, t("open", "edit", { m: $, row: l, column: d, index: m }), gt());
2899
+ }, b = async (l, d, m, $) => {
2885
2900
  var A, Y;
2886
2901
  try {
2887
- if (!await ((A = e.value.control) == null ? void 0 : A.validate("delete", { row: l, column: d, index: m, m: b }))) return;
2902
+ if (!await ((A = e.value.control) == null ? void 0 : A.validate("delete", { row: l, column: d, index: m, m: $ }))) return;
2888
2903
  } catch (W) {
2889
2904
  console.error("验证失败:", W);
2890
2905
  return;
2891
2906
  }
2892
- if ((Y = e.value.control.delete(l, d, m, b)) != null && Y.click)
2893
- e.value.control.delete(l, d, m, b).click(l, d, m, b);
2907
+ if ((Y = e.value.control.delete(l, d, m, $)) != null && Y.click)
2908
+ e.value.control.delete(l, d, m, $).click(l, d, m, $);
2894
2909
  else {
2895
- let { message: W, title: fe, options: _e } = e.value.control.delete(l, d, m, b).dialog;
2910
+ let { message: W, title: fe, options: _e } = e.value.control.delete(l, d, m, $).dialog;
2896
2911
  qt.confirm(W, fe, _e).then(() => {
2897
2912
  t(
2898
2913
  "delete",
2899
- { row: l, column: d, index: m, m: b },
2914
+ { row: l, column: d, index: m, m: $ },
2900
2915
  (Fe = !0, Re = !1) => {
2901
2916
  Fe && (e.value.table.data.splice(m, 1), e.value.table.page.total--), Re && e.value.table.load();
2902
2917
  }
@@ -2904,25 +2919,25 @@ const gr = /* @__PURE__ */ Lt(yr), br = { key: 0 }, $r = { style: { display: "fl
2904
2919
  }).catch(() => {
2905
2920
  });
2906
2921
  }
2907
- }, u = async (l, d, m, b) => {
2922
+ }, u = async (l, d, m, $) => {
2908
2923
  var A, Y;
2909
2924
  e.value.form.modalState = void 0;
2910
2925
  try {
2911
- if (!await ((A = e.value.control) == null ? void 0 : A.validate("view", { row: l, column: d, index: m, m: b }))) return;
2926
+ if (!await ((A = e.value.control) == null ? void 0 : A.validate("view", { row: l, column: d, index: m, m: $ }))) return;
2912
2927
  } catch (W) {
2913
2928
  console.error("验证失败:", W);
2914
2929
  return;
2915
2930
  }
2916
- (Y = e.value.control.view(l, d, m, b)) != null && Y.click ? e.value.control.view(l, d, m, b).click(l, d, m, b) : (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(l, d, m, b).mode, e.value.dialog.title = e.value.control.view(l, d, m, b).title || e.value.control.view(l, d, m, b).label || "查看", Object.keys(l).forEach((W) => {
2931
+ (Y = e.value.control.view(l, d, m, $)) != null && Y.click ? e.value.control.view(l, d, m, $).click(l, d, m, $) : (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(l, d, m, $).mode, e.value.dialog.title = e.value.control.view(l, d, m, $).title || e.value.control.view(l, d, m, $).label || "查看", Object.keys(l).forEach((W) => {
2917
2932
  e.value[W] && (e.value[W].value = l[W]);
2918
- }), i.value = !0, t("open", "view", { m: b, row: l, column: d, index: m }), gt());
2919
- }, q = (l, d, m, b) => {
2933
+ }), i.value = !0, t("open", "view", { m: $, row: l, column: d, index: m }), gt());
2934
+ }, q = (l, d, m, $) => {
2920
2935
  var A;
2921
- (A = e.value.control.save(l, d, m, b)) != null && A.click ? e.value.control.save(l, d, m, b).click(l, d, m, b) : t(
2936
+ (A = e.value.control.save(l, d, m, $)) != null && A.click ? e.value.control.save(l, d, m, $).click(l, d, m, $) : t(
2922
2937
  "row-save",
2923
2938
  { row: l, column: d, index: m, data: e.value.table.data },
2924
2939
  (Y = !0, W = !0) => {
2925
- Y && e.value.table.load(), W && at(() => {
2940
+ Y && e.value.table.load(), W && rt(() => {
2926
2941
  R.value = Object.assign(
2927
2942
  {},
2928
2943
  Object.fromEntries(
@@ -2945,7 +2960,7 @@ const gr = /* @__PURE__ */ Lt(yr), br = { key: 0 }, $r = { style: { display: "fl
2945
2960
  if ((m = l.control.download(l)) != null && m.click)
2946
2961
  l.control.download(l).click(l, d);
2947
2962
  else {
2948
- let b = Dt(
2963
+ let $ = Dt(
2949
2964
  {
2950
2965
  title: l.control.download(l).title || l.control.download(l).label || "下载",
2951
2966
  size: l.control.download(l).size || 480,
@@ -2955,7 +2970,7 @@ const gr = /* @__PURE__ */ Lt(yr), br = { key: 0 }, $r = { style: { display: "fl
2955
2970
  items: d,
2956
2971
  commitText: l.control.download(l).excelLabel,
2957
2972
  onExcel: (A, Y) => {
2958
- t("download", A, E.value, Y), b();
2973
+ t("download", A, g.value, Y), $();
2959
2974
  }
2960
2975
  })
2961
2976
  }
@@ -2971,7 +2986,7 @@ const gr = /* @__PURE__ */ Lt(yr), br = { key: 0 }, $r = { style: { display: "fl
2971
2986
  size: l.control.setting(l).size || 470,
2972
2987
  width: l.control.setting(l).width || 600,
2973
2988
  slots: {
2974
- default: () => ke(ir, {
2989
+ default: () => ke(ia, {
2975
2990
  modelValue: l,
2976
2991
  tuid: te.value,
2977
2992
  onSettingDragEnd: async () => {
@@ -2990,29 +3005,29 @@ const gr = /* @__PURE__ */ Lt(yr), br = { key: 0 }, $r = { style: { display: "fl
2990
3005
  { type: "download", func: U },
2991
3006
  { type: "setting", func: Z },
2992
3007
  { type: "view", func: u },
2993
- { type: "edit", func: $ },
2994
- { type: "delete", func: g },
3008
+ { type: "edit", func: w },
3009
+ { type: "delete", func: b },
2995
3010
  { type: "save", func: q }
2996
- ], w = (l, d, m, b, A) => pe.filter((Y) => l.includes(Y.type)).map(({ type: Y, func: W }) => {
3011
+ ], E = (l, d, m, $, A) => pe.filter((Y) => l.includes(Y.type)).map(({ type: Y, func: W }) => {
2997
3012
  var fe, _e, Fe;
2998
3013
  return {
2999
3014
  name: `control-${Y}`,
3000
- attr: G == null ? void 0 : G[Y](d, m, b, A),
3015
+ attr: G == null ? void 0 : G[Y](d, m, $, A),
3001
3016
  func: W,
3002
- label: (fe = G == null ? void 0 : G[Y](d, m, b, A)) == null ? void 0 : fe.label,
3003
- sort: ((_e = G == null ? void 0 : G[Y](d, m, b, A)) == null ? void 0 : _e.sort) || 0,
3004
- groupName: ((Fe = G == null ? void 0 : G[Y](d, m, b, A)) == null ? void 0 : Fe.groupName) || "default"
3017
+ label: (fe = G == null ? void 0 : G[Y](d, m, $, A)) == null ? void 0 : fe.label,
3018
+ sort: ((_e = G == null ? void 0 : G[Y](d, m, $, A)) == null ? void 0 : _e.sort) || 0,
3019
+ groupName: ((Fe = G == null ? void 0 : G[Y](d, m, $, A)) == null ? void 0 : Fe.groupName) || "default"
3005
3020
  };
3006
- }).sort((Y, W) => Y.sort - W.sort), y = (l, d, m, b, A) => w(l, d, m, b, A).reduce((Y, W) => {
3021
+ }).sort((Y, W) => Y.sort - W.sort), y = (l, d, m, $, A) => E(l, d, m, $, A).reduce((Y, W) => {
3007
3022
  const fe = W.groupName || "default";
3008
3023
  return Y[fe] || (Y[fe] = []), Y[fe].push(W), Y;
3009
- }, {}), ae = Je(
3024
+ }, {}), re = Je(
3010
3025
  () => Object.fromEntries(
3011
3026
  Object.entries(e.value).filter(([l, d]) => d.type !== "hidden").filter(([l, d]) => d.hidden !== !0).filter(([l, d]) => d.visible !== !1).filter(([l, d]) => d.showCol !== !1).map(([l, d]) => (d.sort = typeof d.sort == "number" ? d.sort : 0, [l, d])).sort((l, d) => l[1].sort - d[1].sort)
3012
3027
  )
3013
3028
  ), he = oe({}), be = (l, d) => {
3014
- const m = (b, A) => {
3015
- for (const Y of b) {
3029
+ const m = ($, A) => {
3030
+ for (const Y of $) {
3016
3031
  if (Y.value == A) return Y.label;
3017
3032
  if (Y.children) {
3018
3033
  const W = m(Y.children, A);
@@ -3022,9 +3037,9 @@ const gr = /* @__PURE__ */ Lt(yr), br = { key: 0 }, $r = { style: { display: "fl
3022
3037
  return null;
3023
3038
  };
3024
3039
  if (l.getDicts) {
3025
- const b = d.toString();
3026
- return he.value[b] ? (l.options = he.value[b], l.formatter || (l.formatter = (A, Y, W, fe) => l.options && m(l.options, W) || W), Promise.resolve()) : l.getDicts(e.value.table.data).then((A) => {
3027
- he.value[b] = A, l.options = A, l.formatter || (l.formatter = (Y, W, fe, _e) => l.options && m(l.options, fe) || fe);
3040
+ const $ = d.toString();
3041
+ return he.value[$] ? (l.options = he.value[$], l.formatter || (l.formatter = (A, Y, W, fe) => l.options && m(l.options, W) || W), Promise.resolve()) : l.getDicts(e.value.table.data).then((A) => {
3042
+ he.value[$] = A, l.options = A, l.formatter || (l.formatter = (Y, W, fe, _e) => l.options && m(l.options, fe) || fe);
3028
3043
  });
3029
3044
  }
3030
3045
  return Promise.resolve();
@@ -3033,24 +3048,24 @@ const gr = /* @__PURE__ */ Lt(yr), br = { key: 0 }, $r = { style: { display: "fl
3033
3048
  Object.keys(e.value).forEach((d) => {
3034
3049
  if (e.value[d].getDicts) {
3035
3050
  const m = be(e.value[d], d).then(() => {
3036
- e.value.table.data.forEach((b) => {
3051
+ e.value.table.data.forEach(($) => {
3037
3052
  var A;
3038
3053
  if (e.value[d].getDicts && ((A = e.value[d]) == null ? void 0 : A.forceString) !== !1) {
3039
- const Y = b[d];
3040
- b[d] = Y != null ? Y.toString() : Y;
3054
+ const Y = $[d];
3055
+ $[d] = Y != null ? Y.toString() : Y;
3041
3056
  }
3042
3057
  });
3043
- }).catch((b) => {
3044
- console.error(`加载字典${d}出错:`, b);
3058
+ }).catch(($) => {
3059
+ console.error(`加载字典${d}出错:`, $);
3045
3060
  });
3046
3061
  l.push(m);
3047
3062
  }
3048
3063
  }), Promise.all(l).catch((d) => {
3049
3064
  console.error("字典加载过程中发生错误:", d);
3050
3065
  });
3051
- }, we = (l, d, m, b) => {
3066
+ }, we = (l, d, m, $) => {
3052
3067
  var A, Y;
3053
- return l.table ? (A = l.table(d, m, b)) != null && A.auth ? (Y = l.table(d, m, b)) == null ? void 0 : Y.auth(d, m, b) : !0 : !1;
3068
+ return l.table ? (A = l.table(d, m, $)) != null && A.auth ? (Y = l.table(d, m, $)) == null ? void 0 : Y.auth(d, m, $) : !0 : !1;
3054
3069
  }, Ee = () => {
3055
3070
  if (e.value.dialog.mode == "drawer")
3056
3071
  F.value.handleClose();
@@ -3070,25 +3085,25 @@ const gr = /* @__PURE__ */ Lt(yr), br = { key: 0 }, $r = { style: { display: "fl
3070
3085
  try {
3071
3086
  const [l, d, m] = await Promise.all([
3072
3087
  Jl(te.value),
3073
- ar(te.value),
3088
+ ra(te.value),
3074
3089
  Kl(te.value)
3075
3090
  ]);
3076
- l && Array.isArray(l) && l.forEach((b) => {
3077
- const A = e.value[b.key];
3078
- A && (A.width = b.width);
3079
- }), d && Array.isArray(d) && d.forEach((b, A) => {
3080
- const Y = e.value[b];
3091
+ l && Array.isArray(l) && l.forEach(($) => {
3092
+ const A = e.value[$.key];
3093
+ A && (A.width = $.width);
3094
+ }), d && Array.isArray(d) && d.forEach(($, A) => {
3095
+ const Y = e.value[$];
3081
3096
  Y && (Y.sort = A);
3082
- }), m && Array.isArray(m) && m.length > 0 ? m.forEach((b) => {
3083
- const A = e.value[b];
3097
+ }), m && Array.isArray(m) && m.length > 0 ? m.forEach(($) => {
3098
+ const A = e.value[$];
3084
3099
  A && (A.showCol = !1);
3085
- }) : Object.keys(e.value).filter((b) => e.value[b].type !== "control").forEach((b) => {
3086
- e.value[b].showCol = !0;
3100
+ }) : Object.keys(e.value).filter(($) => e.value[$].type !== "control").forEach(($) => {
3101
+ e.value[$].showCol = !0;
3087
3102
  });
3088
3103
  } catch (l) {
3089
3104
  console.error("加载表格信息时出错:", l);
3090
3105
  }
3091
- }, xe = () => gr(Object.keys(e.value).toString()).toUpperCase().substring(8, 24);
3106
+ }, xe = () => ga(Object.keys(e.value).toString()).toUpperCase().substring(8, 24);
3092
3107
  return nl(() => {
3093
3108
  te.value = xe();
3094
3109
  }), ut(async () => {
@@ -3100,7 +3115,7 @@ const gr = /* @__PURE__ */ Lt(yr), br = { key: 0 }, $r = { style: { display: "fl
3100
3115
  value: !0
3101
3116
  }));
3102
3117
  try {
3103
- await at();
3118
+ await rt();
3104
3119
  const l = Object.entries(e.value).filter(
3105
3120
  ([d, m]) => m.type !== "control" && m.editor !== !1 && m.type !== "hidden"
3106
3121
  );
@@ -3111,12 +3126,12 @@ const gr = /* @__PURE__ */ Lt(yr), br = { key: 0 }, $r = { style: { display: "fl
3111
3126
  console.error("Error during component initialization:", l);
3112
3127
  }
3113
3128
  e.value.table.autoWatch || e.value.table.load();
3114
- }), n({ addRow: T, editRow: $, deleteRow: g, readForm: u, saveRowData: q, closeDialog: Ee }), (l, d) => {
3129
+ }), n({ addRow: T, editRow: w, deleteRow: b, readForm: u, saveRowData: q, closeDialog: Ee }), (l, d) => {
3115
3130
  var He, et, ot, tt, nt;
3116
- const m = H("el-icon"), b = H("el-dialog"), A = H("el-drawer"), Y = H("el-button-group"), W = H("el-dropdown-item"), fe = H("el-dropdown-menu"), _e = H("el-dropdown"), Fe = H("el-table-column"), Re = H("el-table"), Le = H("el-pagination");
3131
+ const m = H("el-icon"), $ = H("el-dialog"), A = H("el-drawer"), Y = H("el-button-group"), W = H("el-dropdown-item"), fe = H("el-dropdown-menu"), _e = H("el-dropdown"), Fe = H("el-table-column"), Re = H("el-table"), Le = H("el-pagination");
3117
3132
  return p(), I(J, null, [
3118
- e.value.dialog.mode == "dialog" && i.value ? (p(), I("div", br, [
3119
- K(b, O(
3133
+ e.value.dialog.mode == "dialog" && i.value ? (p(), I("div", ba, [
3134
+ K($, O(
3120
3135
  {
3121
3136
  ref_key: "dialogRef",
3122
3137
  ref: v,
@@ -3133,8 +3148,8 @@ const gr = /* @__PURE__ */ Lt(yr), br = { key: 0 }, $r = { style: { display: "fl
3133
3148
  header: D(() => {
3134
3149
  var z, se, x, X, ee, je, Ne, ze, Pe, h;
3135
3150
  return [
3136
- Q("div", $r, [
3137
- Q("div", wr, [
3151
+ Q("div", $a, [
3152
+ Q("div", wa, [
3138
3153
  M(l.$slots, "f-header", {}, () => [
3139
3154
  Q("div", null, De(e.value.dialog.title), 1)
3140
3155
  ], !0)
@@ -3175,7 +3190,7 @@ const gr = /* @__PURE__ */ Lt(yr), br = { key: 0 }, $r = { style: { display: "fl
3175
3190
  ];
3176
3191
  }),
3177
3192
  default: D(() => [
3178
- Q("div", Er, [
3193
+ Q("div", Ea, [
3179
3194
  M(l.$slots, "table-dialog-form", { model: e.value }, () => [
3180
3195
  K(_t, {
3181
3196
  modelValue: e.value,
@@ -3196,7 +3211,7 @@ const gr = /* @__PURE__ */ Lt(yr), br = { key: 0 }, $r = { style: { display: "fl
3196
3211
  _: 3
3197
3212
  }, 16, ["modelValue", "fullscreen", "width"])
3198
3213
  ])) : ge("", !0),
3199
- e.value.dialog.mode == "drawer" && i.value ? (p(), I("div", _r, [
3214
+ e.value.dialog.mode == "drawer" && i.value ? (p(), I("div", _a, [
3200
3215
  K(A, O({
3201
3216
  ref_key: "drawerRef",
3202
3217
  ref: F,
@@ -3204,8 +3219,8 @@ const gr = /* @__PURE__ */ Lt(yr), br = { key: 0 }, $r = { style: { display: "fl
3204
3219
  "onUpdate:modelValue": d[5] || (d[5] = (z) => i.value = z)
3205
3220
  }, P(Ue)(e.value.dialog, (z) => !["width"].includes(z))), {
3206
3221
  header: D(() => [
3207
- Q("div", kr, [
3208
- Q("div", Cr, [
3222
+ Q("div", ka, [
3223
+ Q("div", Ca, [
3209
3224
  M(l.$slots, "f-header", {}, () => [
3210
3225
  Q("div", null, De(e.value.dialog.title), 1)
3211
3226
  ], !0)
@@ -3232,16 +3247,16 @@ const gr = /* @__PURE__ */ Lt(yr), br = { key: 0 }, $r = { style: { display: "fl
3232
3247
  _: 3
3233
3248
  }, 16, ["modelValue"])
3234
3249
  ])) : ge("", !0),
3235
- Q("div", Dr, [
3236
- ((et = (He = e.value) == null ? void 0 : He.query) == null ? void 0 : et.hidden) != !0 ? (p(), I("div", Sr, [
3250
+ Q("div", Da, [
3251
+ ((et = (He = e.value) == null ? void 0 : He.query) == null ? void 0 : et.hidden) != !0 ? (p(), I("div", Sa, [
3237
3252
  M(l.$slots, "query", {}, () => [
3238
3253
  K(Rl, {
3239
3254
  modelValue: e.value,
3240
3255
  "onUpdate:modelValue": d[6] || (d[6] = (z) => e.value = z),
3241
- info: E.value,
3242
- "onUpdate:info": d[7] || (d[7] = (z) => E.value = z),
3256
+ info: g.value,
3257
+ "onUpdate:info": d[7] || (d[7] = (z) => g.value = z),
3243
3258
  onQuery: Oe,
3244
- onReset: re
3259
+ onReset: ae
3245
3260
  }, ye({
3246
3261
  "q-btns": D(() => [
3247
3262
  M(l.$slots, "q-btns", {}, () => [
@@ -3312,7 +3327,7 @@ const gr = /* @__PURE__ */ Lt(yr), br = { key: 0 }, $r = { style: { display: "fl
3312
3327
  ]), 1032, ["modelValue", "info"])
3313
3328
  ], !0)
3314
3329
  ])) : ge("", !0),
3315
- Q("div", Mr, [
3330
+ Q("div", Ma, [
3316
3331
  K(Re, O({
3317
3332
  ...l.$attrs,
3318
3333
  ...P(Ue)(
@@ -3323,7 +3338,7 @@ const gr = /* @__PURE__ */ Lt(yr), br = { key: 0 }, $r = { style: { display: "fl
3323
3338
  "summary-method": (z) => e.value.table["summary-method"](z, { fields: j.value, sums: V.value }),
3324
3339
  onSortChange: d[8] || (d[8] = (z) => {
3325
3340
  var se, x;
3326
- e.value.table.onSortChange(z, E.value), ((se = z == null ? void 0 : z.column) == null ? void 0 : se.sortable) === "custom" && ((x = e.value.table) == null || x.load());
3341
+ e.value.table.onSortChange(z, g.value), ((se = z == null ? void 0 : z.column) == null ? void 0 : se.sortable) === "custom" && ((x = e.value.table) == null || x.load());
3327
3342
  })
3328
3343
  }), {
3329
3344
  append: D(() => [
@@ -3334,7 +3349,7 @@ const gr = /* @__PURE__ */ Lt(yr), br = { key: 0 }, $r = { style: { display: "fl
3334
3349
  ]),
3335
3350
  default: D(() => [
3336
3351
  M(l.$slots, "default", {}, () => [
3337
- (p(!0), I(J, null, N(ae.value, (z, se) => (p(), B(Fe, O({
3352
+ (p(!0), I(J, null, N(re.value, (z, se) => (p(), B(Fe, O({
3338
3353
  prop: se,
3339
3354
  key: se,
3340
3355
  ref_for: !0
@@ -3459,7 +3474,7 @@ const gr = /* @__PURE__ */ Lt(yr), br = { key: 0 }, $r = { style: { display: "fl
3459
3474
  title: S.label,
3460
3475
  ref_for: !0
3461
3476
  }, S.attr, {
3462
- onClick: (rt) => S.func(x, X, ee, e.value)
3477
+ onClick: (at) => S.func(x, X, ee, e.value)
3463
3478
  }), {
3464
3479
  default: D(() => [
3465
3480
  Ie(De(S.label), 1)
@@ -3470,7 +3485,7 @@ const gr = /* @__PURE__ */ Lt(yr), br = { key: 0 }, $r = { style: { display: "fl
3470
3485
  title: S.label,
3471
3486
  ref_for: !0
3472
3487
  }, S.attr, {
3473
- onClick: (rt) => S.func(x, X, ee, e.value)
3488
+ onClick: (at) => S.func(x, X, ee, e.value)
3474
3489
  }), null, 16, ["title", "onClick"]))
3475
3490
  ], !0)
3476
3491
  ]),
@@ -3596,7 +3611,7 @@ const gr = /* @__PURE__ */ Lt(yr), br = { key: 0 }, $r = { style: { display: "fl
3596
3611
  z,
3597
3612
  X.formatter(x, X, x[se], ee)
3598
3613
  )
3599
- }, null, 12, Tr)
3614
+ }, null, 12, Ta)
3600
3615
  ], !0)
3601
3616
  ]),
3602
3617
  key: "2"
@@ -3624,7 +3639,7 @@ const gr = /* @__PURE__ */ Lt(yr), br = { key: 0 }, $r = { style: { display: "fl
3624
3639
  ], 64);
3625
3640
  };
3626
3641
  }
3627
- }), xr = /* @__PURE__ */ Ze(Fr, [["__scopeId", "data-v-de570478"]]), Vr = { class: "g-tree-table" }, qr = { class: "g-tree-container" }, Ar = { class: "g-tree-table-container" }, Br = /* @__PURE__ */ Object.assign({
3642
+ }), xa = /* @__PURE__ */ Ze(Fa, [["__scopeId", "data-v-f7c375af"]]), Va = { class: "g-tree-table" }, qa = { class: "g-tree-container" }, Aa = { class: "g-tree-table-container" }, Ba = /* @__PURE__ */ Object.assign({
3628
3643
  name: "g-tree-table",
3629
3644
  inheritAttrs: !1
3630
3645
  }, {
@@ -3634,17 +3649,17 @@ const gr = /* @__PURE__ */ Lt(yr), br = { key: 0 }, $r = { style: { display: "fl
3634
3649
  modelModifiers: {}
3635
3650
  },
3636
3651
  emits: /* @__PURE__ */ Xe(["load"], ["update:modelValue"]),
3637
- setup(a, { emit: n }) {
3652
+ setup(r, { emit: n }) {
3638
3653
  var _, V, j, R;
3639
- const r = n, t = Qe(a, "modelValue"), e = Tt(), o = oe(
3654
+ const a = n, t = Qe(r, "modelValue"), e = Tt(), o = oe(
3640
3655
  typeof ((_ = e == null ? void 0 : e.tree) == null ? void 0 : _.width) == "number" ? `${e.tree.width}px` : ((V = e == null ? void 0 : e.tree) == null ? void 0 : V.width) || "180px"
3641
- ), E = oe(((j = e == null ? void 0 : e.tree) == null ? void 0 : j.search) === void 0 ? !0 : (R = e == null ? void 0 : e.tree) == null ? void 0 : R.search), v = oe({}), F = oe(""), f = oe(null), i = (L, te) => {
3656
+ ), g = oe(((j = e == null ? void 0 : e.tree) == null ? void 0 : j.search) === void 0 ? !0 : (R = e == null ? void 0 : e.tree) == null ? void 0 : R.search), v = oe({}), F = oe(""), f = oe(null), i = (L, te) => {
3642
3657
  var ie, ce;
3643
3658
  if (!L) return !0;
3644
3659
  const me = ((ce = (ie = e.tree) == null ? void 0 : ie.props) == null ? void 0 : ce.label) || "label";
3645
3660
  return te[me].includes(L);
3646
3661
  }, s = (L, te) => {
3647
- r("load", v.value, L, te);
3662
+ a("load", v.value, L, te);
3648
3663
  }, c = (L) => {
3649
3664
  v.value = L, t.value.table.load();
3650
3665
  };
@@ -3652,12 +3667,12 @@ const gr = /* @__PURE__ */ Lt(yr), br = { key: 0 }, $r = { style: { display: "fl
3652
3667
  f.value.filter(L);
3653
3668
  }), (L, te) => {
3654
3669
  const me = H("el-input"), ie = H("el-tree"), ce = H("g-table");
3655
- return p(), I("div", Vr, [
3670
+ return p(), I("div", Va, [
3656
3671
  Q("div", {
3657
3672
  class: "g-tree-left",
3658
3673
  style: qe({ width: o.value })
3659
3674
  }, [
3660
- E.value ? (p(), B(me, {
3675
+ g.value ? (p(), B(me, {
3661
3676
  key: 0,
3662
3677
  modelValue: F.value,
3663
3678
  "onUpdate:modelValue": te[0] || (te[0] = (de) => F.value = de),
@@ -3665,7 +3680,7 @@ const gr = /* @__PURE__ */ Lt(yr), br = { key: 0 }, $r = { style: { display: "fl
3665
3680
  placeholder: "输入节点查询",
3666
3681
  clearable: ""
3667
3682
  }, null, 8, ["modelValue"])) : ge("", !0),
3668
- Q("div", qr, [
3683
+ Q("div", qa, [
3669
3684
  K(ie, O({
3670
3685
  style: { width: o.value },
3671
3686
  "filter-node-method": i,
@@ -3693,7 +3708,7 @@ const gr = /* @__PURE__ */ Lt(yr), br = { key: 0 }, $r = { style: { display: "fl
3693
3708
  ]), 1040, ["style"])
3694
3709
  ])
3695
3710
  ], 4),
3696
- Q("div", Ar, [
3711
+ Q("div", Aa, [
3697
3712
  K(ce, O({
3698
3713
  modelValue: t.value,
3699
3714
  "onUpdate:modelValue": te[1] || (te[1] = (de) => t.value = de)
@@ -3709,14 +3724,14 @@ const gr = /* @__PURE__ */ Lt(yr), br = { key: 0 }, $r = { style: { display: "fl
3709
3724
  ]);
3710
3725
  };
3711
3726
  }
3712
- }), Or = /* @__PURE__ */ Ze(Br, [["__scopeId", "data-v-c888e4fc"]]), Ir = {
3727
+ }), Oa = /* @__PURE__ */ Ze(Ba, [["__scopeId", "data-v-c888e4fc"]]), Ia = {
3713
3728
  key: 0,
3714
3729
  class: "op-group"
3715
- }, Ur = {
3730
+ }, Ua = {
3716
3731
  key: 1,
3717
3732
  class: "op-items",
3718
3733
  style: { width: "100%", height: "100%" }
3719
- }, Yr = ["title"], Vt = "100px", Rr = /* @__PURE__ */ Object.assign({ name: "g-select-option" }, {
3734
+ }, Ya = ["title"], Vt = "100px", Ra = /* @__PURE__ */ Object.assign({ name: "g-select-option" }, {
3720
3735
  __name: "g-select-option",
3721
3736
  props: {
3722
3737
  columns: {
@@ -3736,51 +3751,51 @@ const gr = /* @__PURE__ */ Lt(yr), br = { key: 0 }, $r = { style: { display: "fl
3736
3751
  default: ""
3737
3752
  }
3738
3753
  },
3739
- setup(a) {
3740
- const n = a;
3741
- return (r, t) => n.title ? (p(), I("div", Ir, [
3754
+ setup(r) {
3755
+ const n = r;
3756
+ return (a, t) => n.title ? (p(), I("div", Ia, [
3742
3757
  (p(!0), I(J, null, N(n.columns, (e) => (p(), I("span", {
3743
3758
  style: qe({ width: (e == null ? void 0 : e.width) || Vt, ...e == null ? void 0 : e.titleStyle, textAlign: (e == null ? void 0 : e.align) || "center" }),
3744
3759
  key: e.key
3745
3760
  }, [
3746
- M(r.$slots, `${a.t}-title-${e.key}`, { col: e }, () => [
3761
+ M(a.$slots, `${r.t}-title-${e.key}`, { col: e }, () => [
3747
3762
  Ie(De(e.label), 1)
3748
3763
  ], !0)
3749
3764
  ], 4))), 128))
3750
- ])) : (p(), I("div", Ur, [
3765
+ ])) : (p(), I("div", Ua, [
3751
3766
  (p(!0), I(J, null, N(n.columns, (e) => (p(), I("span", {
3752
3767
  style: qe({ width: (e == null ? void 0 : e.width) || Vt, textAlign: (e == null ? void 0 : e.align) || "center", ...e == null ? void 0 : e.style }),
3753
3768
  key: e.key,
3754
- title: a.data[e.key]
3769
+ title: r.data[e.key]
3755
3770
  }, [
3756
- M(r.$slots, `${a.t}-option-${e.key}`, { col: e }, () => [
3757
- Ie(De(a.data[e.key] ?? "-"), 1)
3771
+ M(a.$slots, `${r.t}-option-${e.key}`, { col: e }, () => [
3772
+ Ie(De(r.data[e.key] ?? "-"), 1)
3758
3773
  ], !0)
3759
- ], 12, Yr))), 128))
3774
+ ], 12, Ya))), 128))
3760
3775
  ]));
3761
3776
  }
3762
- }), Lr = /* @__PURE__ */ Ze(Rr, [["__scopeId", "data-v-c0ac6b77"]]), Hr = Object.freeze({}), Wt = [xr, _t, Or, Lr];
3777
+ }), La = /* @__PURE__ */ Ze(Ra, [["__scopeId", "data-v-c0ac6b77"]]), Ha = Object.freeze({}), Wt = [xa, _t, Oa, La];
3763
3778
  let Ct = {};
3764
- const ea = {
3765
- install: (a, n = {}) => {
3766
- Ct = Object.freeze({ ...Hr, ...n }), Wt.forEach((r) => {
3767
- a.component(r.name, r);
3768
- }), a.provide("options", Ct), a.config.globalProperties.$openModal = Dt;
3779
+ const er = {
3780
+ install: (r, n = {}) => {
3781
+ Ct = Object.freeze({ ...Ha, ...n }), Wt.forEach((a) => {
3782
+ r.component(a.name, a);
3783
+ }), r.provide("options", Ct), r.config.globalProperties.$openModal = Dt;
3769
3784
  }
3770
- }, zr = (a) => ({ dialog: Zt, drawer: Jt })[a] || null, Dt = (a = {}, n = "dialog") => {
3785
+ }, za = (r) => ({ dialog: Zt, drawer: Jt })[r] || null, Dt = (r = {}, n = "dialog") => {
3771
3786
  if (typeof document > "u") return () => {
3772
3787
  };
3773
- const r = document.createElement("div");
3788
+ const a = document.createElement("div");
3774
3789
  let t = () => {
3775
3790
  };
3776
- const e = zr(n);
3791
+ const e = za(n);
3777
3792
  if (!e) return () => {
3778
3793
  };
3779
- const o = oe(!0), E = sl({
3794
+ const o = oe(!0), g = sl({
3780
3795
  setup() {
3781
3796
  return t = () => {
3782
3797
  o.value = !1, setTimeout(() => {
3783
- E.unmount(), r.remove();
3798
+ g.unmount(), a.remove();
3784
3799
  }, 300);
3785
3800
  }, () => {
3786
3801
  var v, F, f;
@@ -3793,11 +3808,11 @@ const ea = {
3793
3808
  overflow: !0,
3794
3809
  destroyOnClose: !0,
3795
3810
  "close-on-click-modal": !1,
3796
- ...a
3811
+ ...r
3797
3812
  }, {
3798
- default: (v = a.slots) == null ? void 0 : v.default,
3799
- header: (F = a.slots) == null ? void 0 : F.header,
3800
- footer: (f = a.slots) == null ? void 0 : f.footer
3813
+ default: (v = r.slots) == null ? void 0 : v.default,
3814
+ header: (F = r.slots) == null ? void 0 : F.header,
3815
+ footer: (f = r.slots) == null ? void 0 : f.footer
3801
3816
  });
3802
3817
  };
3803
3818
  },
@@ -3806,83 +3821,83 @@ const ea = {
3806
3821
  }
3807
3822
  });
3808
3823
  return Wt.forEach((v) => {
3809
- E.component(v.name, v);
3810
- }), E.provide("options", Ct), E.use(Qt, { locale: wl }), document.body.appendChild(r), E.mount(r), t;
3824
+ g.component(v.name, v);
3825
+ }), g.provide("options", Ct), g.use(Qt, { locale: wl }), document.body.appendChild(a), g.mount(a), t;
3811
3826
  };
3812
- function Gt(a, n = window.innerWidth) {
3813
- if (typeof a == "number")
3814
- return a;
3815
- if (a.endsWith("px"))
3816
- return parseFloat(a);
3817
- const r = window.innerHeight, t = window.innerWidth;
3818
- if (a.endsWith("vh"))
3819
- return r * parseFloat(a) / 100;
3820
- if (a.endsWith("vw"))
3821
- return t * parseFloat(a) / 100;
3822
- if (a.endsWith("%")) {
3827
+ function Gt(r, n = window.innerWidth) {
3828
+ if (typeof r == "number")
3829
+ return r;
3830
+ if (r.endsWith("px"))
3831
+ return parseFloat(r);
3832
+ const a = window.innerHeight, t = window.innerWidth;
3833
+ if (r.endsWith("vh"))
3834
+ return a * parseFloat(r) / 100;
3835
+ if (r.endsWith("vw"))
3836
+ return t * parseFloat(r) / 100;
3837
+ if (r.endsWith("%")) {
3823
3838
  if (typeof n != "number")
3824
3839
  throw new Error("Reference size is required to convert % to px");
3825
- return n * parseFloat(a) / 100;
3840
+ return n * parseFloat(r) / 100;
3826
3841
  }
3827
- if (a.startsWith("calc(") && a.endsWith(")")) {
3842
+ if (r.startsWith("calc(") && r.endsWith(")")) {
3828
3843
  let o = function(v) {
3829
3844
  if (/[0-9+\-*/().\s]+$/.test(v))
3830
3845
  return new Function("return " + v)();
3831
3846
  throw new Error("Invalid calc expression");
3832
3847
  };
3833
- const e = a.slice(5, -1).trim();
3848
+ const e = r.slice(5, -1).trim();
3834
3849
  return o(e.replace(/([0-9.]+)([a-z%]+)/g, (v, F, f) => Gt(F + f, n)));
3835
3850
  }
3836
- throw new Error("Unsupported unit in value: " + a);
3851
+ throw new Error("Unsupported unit in value: " + r);
3837
3852
  }
3838
- const Ve = (...a) => {
3839
- const n = {}, r = (t, e) => (Object.keys(e).forEach((o) => {
3840
- t[o] = typeof e[o] == "object" && !Array.isArray(e[o]) ? r(t[o] || {}, e[o]) : e[o];
3853
+ const Ve = (...r) => {
3854
+ const n = {}, a = (t, e) => (Object.keys(e).forEach((o) => {
3855
+ t[o] = typeof e[o] == "object" && !Array.isArray(e[o]) ? a(t[o] || {}, e[o]) : e[o];
3841
3856
  }), t);
3842
- return a.forEach((t = {}) => r(n, t)), n;
3857
+ return r.forEach((t = {}) => a(n, t)), n;
3843
3858
  };
3844
- function Ue(a, n = (r, t) => n(r, t)) {
3845
- const r = {};
3846
- for (const t in a)
3847
- a.hasOwnProperty(t) && n(t, a[t]) && (r[t] = a[t]);
3848
- return r;
3859
+ function Ue(r, n = (a, t) => n(a, t)) {
3860
+ const a = {};
3861
+ for (const t in r)
3862
+ r.hasOwnProperty(t) && n(t, r[t]) && (a[t] = r[t]);
3863
+ return a;
3849
3864
  }
3850
- function Pr(a, n, r = "value", t = "label", e = "children") {
3851
- for (const o of a) {
3852
- if (o[r] === n)
3865
+ function Pa(r, n, a = "value", t = "label", e = "children") {
3866
+ for (const o of r) {
3867
+ if (o[a] === n)
3853
3868
  return o[t];
3854
3869
  if (o[e] && o[e].length > 0) {
3855
- const E = Pr(o[e], n, r, t, e);
3856
- if (E)
3857
- return E;
3870
+ const g = Pa(o[e], n, a, t, e);
3871
+ if (g)
3872
+ return g;
3858
3873
  }
3859
3874
  }
3860
3875
  return null;
3861
3876
  }
3862
- function St(a) {
3863
- if (!a || isNaN(a)) return "零";
3864
- const n = ["角", "分"], r = ["零", "壹", "贰", "叁", "肆", "伍", "陆", "柒", "捌", "玖"], t = [
3877
+ function St(r) {
3878
+ if (!r || isNaN(r)) return "零";
3879
+ const n = ["角", "分"], a = ["零", "壹", "贰", "叁", "肆", "伍", "陆", "柒", "捌", "玖"], t = [
3865
3880
  ["元", "万", "亿"],
3866
3881
  ["", "拾", "佰", "仟"]
3867
- ], e = a < 0 ? "欠" : "";
3868
- a = Math.abs(a);
3882
+ ], e = r < 0 ? "欠" : "";
3883
+ r = Math.abs(r);
3869
3884
  let o = "";
3870
- for (let E = 0; E < n.length; E++)
3871
- o += (r[Math.floor(a * 10 * Math.pow(10, E)) % 10] + n[E]).replace(/零./, "");
3872
- o = o || "整", a = Math.floor(a);
3873
- for (let E = 0; E < t[0].length && a > 0; E++) {
3885
+ for (let g = 0; g < n.length; g++)
3886
+ o += (a[Math.floor(r * 10 * Math.pow(10, g)) % 10] + n[g]).replace(/零./, "");
3887
+ o = o || "整", r = Math.floor(r);
3888
+ for (let g = 0; g < t[0].length && r > 0; g++) {
3874
3889
  let v = "";
3875
- for (let F = 0; F < t[1].length && a > 0; F++)
3876
- v = r[a % 10] + t[1][F] + v, a = Math.floor(a / 10);
3877
- o = v.replace(/(零.)*零$/, "").replace(/^$/, "零") + t[0][E] + o;
3890
+ for (let F = 0; F < t[1].length && r > 0; F++)
3891
+ v = a[r % 10] + t[1][F] + v, r = Math.floor(r / 10);
3892
+ o = v.replace(/(零.)*零$/, "").replace(/^$/, "零") + t[0][g] + o;
3878
3893
  }
3879
3894
  return e + o.replace(/(零.)*零元/, "元").replace(/(零.)+/g, "零").replace(/^整$/, "零元整");
3880
3895
  }
3881
- function jr(a) {
3882
- if (typeof a != "number" || isNaN(a) || !isFinite(a))
3896
+ function ja(r) {
3897
+ if (typeof r != "number" || isNaN(r) || !isFinite(r))
3883
3898
  return "0.00";
3884
- const n = a.toFixed(2), [r, t] = n.split(".");
3885
- return `${r.replace(/\B(?=(\d{3})+(?!\d))/g, ",")}.${t}`;
3899
+ const n = r.toFixed(2), [a, t] = n.split(".");
3900
+ return `${a.replace(/\B(?=(\d{3})+(?!\d))/g, ",")}.${t}`;
3886
3901
  }
3887
3902
  const Se = {
3888
3903
  RADIO: "radio",
@@ -3913,16 +3928,16 @@ const Se = {
3913
3928
  TEXTAREA: "textarea",
3914
3929
  TEL: "tel"
3915
3930
  }, gt = () => {
3916
- at(() => {
3917
- const a = document.querySelector(".el-dialog");
3918
- if (!a || a.querySelector(".dialog-resize-handle"))
3931
+ rt(() => {
3932
+ const r = document.querySelector(".el-dialog");
3933
+ if (!r || r.querySelector(".dialog-resize-handle"))
3919
3934
  return;
3920
- const n = Nr();
3921
- a.appendChild(n), Wr(a), Gr(a, n);
3935
+ const n = Na();
3936
+ r.appendChild(n), Wa(r), Ga(r, n);
3922
3937
  });
3923
- }, Nr = () => {
3924
- const a = document.createElement("div");
3925
- return Object.assign(a.style, {
3938
+ }, Na = () => {
3939
+ const r = document.createElement("div");
3940
+ return Object.assign(r.style, {
3926
3941
  position: "absolute",
3927
3942
  right: "0",
3928
3943
  bottom: "0",
@@ -3931,25 +3946,25 @@ const Se = {
3931
3946
  background: "transparent",
3932
3947
  cursor: "nwse-resize",
3933
3948
  zIndex: "999999999999"
3934
- }), a.className = "dialog-resize-handle", a;
3935
- }, Wr = (a) => {
3936
- Object.assign(a.style, {
3949
+ }), r.className = "dialog-resize-handle", r;
3950
+ }, Wa = (r) => {
3951
+ Object.assign(r.style, {
3937
3952
  transition: "none",
3938
3953
  minWidth: "300px",
3939
3954
  minHeight: "200px",
3940
3955
  resize: "none"
3941
3956
  // 防止与原生resize冲突
3942
3957
  });
3943
- }, Gr = (a, n) => {
3944
- let r = !1, t, e, o, E;
3958
+ }, Ga = (r, n) => {
3959
+ let a = !1, t, e, o, g;
3945
3960
  const v = (i) => {
3946
- i.preventDefault(), r = !0, t = i.clientX, e = i.clientY, o = parseInt(document.defaultView.getComputedStyle(a).width), E = parseInt(document.defaultView.getComputedStyle(a).height), document.addEventListener("mousemove", F), document.addEventListener("mouseup", f);
3961
+ i.preventDefault(), a = !0, t = i.clientX, e = i.clientY, o = parseInt(document.defaultView.getComputedStyle(r).width), g = parseInt(document.defaultView.getComputedStyle(r).height), document.addEventListener("mousemove", F), document.addEventListener("mouseup", f);
3947
3962
  }, F = (i) => {
3948
- if (!r) return;
3949
- const s = Math.max(300, o + i.clientX - t), c = Math.max(200, E + i.clientY - e);
3950
- a.style.width = `${s}px`, a.style.height = `${c}px`;
3963
+ if (!a) return;
3964
+ const s = Math.max(300, o + i.clientX - t), c = Math.max(200, g + i.clientY - e);
3965
+ r.style.width = `${s}px`, r.style.height = `${c}px`;
3951
3966
  }, f = () => {
3952
- r = !1, document.removeEventListener("mousemove", F), document.removeEventListener("mouseup", f);
3967
+ a = !1, document.removeEventListener("mousemove", F), document.removeEventListener("mouseup", f);
3953
3968
  };
3954
3969
  n.addEventListener("mousedown", v);
3955
3970
  };
@@ -3957,10 +3972,10 @@ export {
3957
3972
  Se as CT,
3958
3973
  gt as bindResize,
3959
3974
  Gt as convertToPx,
3960
- ea as default,
3975
+ er as default,
3961
3976
  Ue as filterObject,
3962
- Pr as findTreeLabelByValue,
3963
- jr as formatAmount,
3977
+ Pa as findTreeLabelByValue,
3978
+ ja as formatAmount,
3964
3979
  Ve as mergeObjects,
3965
3980
  St as moneyToChinese,
3966
3981
  Dt as openModal