vue-2024-ui 0.2.10 → 0.2.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js CHANGED
@@ -1,6 +1,6 @@
1
- import Qt, { ElForm as vt, 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";
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 pl, View as vl, Edit as ml, CirclePlus as hl, Setting as yl, FullScreen as gl, CopyDocument as bl } from "@element-plus/icons-vue";
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 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
+ 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";
6
6
  var wl = {
@@ -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
- }, ve = 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
- var he = this.$locale().weekStart || 0, be = (ve < he ? ve + 7 : ve) - he;
290
- return Z(k ? y - be : y + (6 - be), w);
289
+ var he = this.$locale().weekStart || 0, be = (pe < he ? pe + 7 : pe) - he;
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
- var ve = this.clone().set(V, 1);
309
- ve.$d[Z](G), ve.init(), this.$d = ve.set(V, Math.min(this.$D, ve.daysInMonth())).$d;
308
+ var pe = this.clone().set(V, 1);
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, ve = this.$d.getTime() + u * G;
328
- return re.w(ve, 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, ve = 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,31 +345,31 @@ 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
- return ve + 1;
350
+ return pe + 1;
351
351
  case "MM":
352
- return re.s(ve + 1, 2, "0");
352
+ return ae.s(pe + 1, 2, "0");
353
353
  case "MMM":
354
- return he(C.monthsShort, ve, y, 3);
354
+ return he(C.monthsShort, pe, y, 3);
355
355
  case "MMMM":
356
- return he(y, ve);
356
+ return he(y, pe);
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), ve = (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 - ve) / 6048e5;
414
+ k = (E - pe) / 6048e5;
415
415
  break;
416
416
  case f:
417
- k = (w - ve) / 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, ve;
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 ? (ve = t.value) == null ? void 0 : ve.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"), pt = 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,14 +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
782
+ data: at,
783
+ form: r.formInfo
777
784
  }, void 0, !0)
778
785
  ])
779
786
  }))
@@ -796,7 +803,7 @@ const wt = /* @__PURE__ */ Lt(_l), zt = {
796
803
  default: D(() => {
797
804
  var ue;
798
805
  return [
799
- (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`, {
800
807
  key: 0,
801
808
  option: S
802
809
  }, () => {
@@ -805,14 +812,15 @@ const wt = /* @__PURE__ */ Lt(_l), zt = {
805
812
  K(xe, {
806
813
  columns: (Ae = t.value) == null ? void 0 : Ae.columns,
807
814
  data: S,
808
- t: r.t
815
+ t: a.t
809
816
  }, ye({ _: 2 }, [
810
- N(w.$slots, (lt, rt) => ({
811
- name: rt,
817
+ N(E.$slots, (lt, at) => ({
818
+ name: at,
812
819
  fn: D((Xt) => [
813
- M(w.$slots, rt, {
820
+ M(E.$slots, at, {
814
821
  option: S,
815
- data: Xt
822
+ data: Xt,
823
+ form: r.formInfo
816
824
  }, void 0, !0)
817
825
  ])
818
826
  }))
@@ -836,12 +844,12 @@ const wt = /* @__PURE__ */ Lt(_l), zt = {
836
844
  K(xe, {
837
845
  columns: (h = t.value) == null ? void 0 : h.columns,
838
846
  title: !0,
839
- t: r.t
847
+ t: a.t
840
848
  }, ye({ _: 2 }, [
841
- N(w.$slots, (S, ue) => ({
849
+ N(E.$slots, (S, ue) => ({
842
850
  name: ue,
843
851
  fn: D((Ae) => [
844
- M(w.$slots, ue, { data: Ae }, void 0, !0)
852
+ M(E.$slots, ue, { data: Ae }, void 0, !0)
845
853
  ])
846
854
  }))
847
855
  ]), 1032, ["columns", "t"])
@@ -852,75 +860,82 @@ const wt = /* @__PURE__ */ Lt(_l), zt = {
852
860
  N(V(), (h) => ({
853
861
  name: h,
854
862
  fn: D((S) => [
855
- M(w.$slots, `${r.t}-${e.value}-${h}`, { data: S }, void 0, !0)
863
+ M(E.$slots, `${a.t}-${e.value}-${h}`, { form: r.formInfo }, void 0, !0)
856
864
  ])
857
865
  }))
858
- ]), 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({
859
867
  key: 6,
860
868
  modelValue: n.value,
861
869
  "onUpdate:modelValue": y[8] || (y[8] = (h) => n.value = h),
862
- placeholder: E.value[e.value].label
870
+ placeholder: g.value[e.value].label,
871
+ disabled: g.value[e.value].disabled
863
872
  }, t.value, { data: v.value }), ye({ _: 2 }, [
864
873
  N(V(), (h) => ({
865
874
  name: h,
866
875
  fn: D((S) => [
867
- 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)
868
877
  ])
869
878
  }))
870
- ]), 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({
871
880
  key: 7,
872
881
  modelValue: n.value,
873
882
  "onUpdate:modelValue": y[9] || (y[9] = (h) => n.value = h),
874
- "arrow-control": ""
883
+ "arrow-control": "",
884
+ disabled: g.value[e.value].disabled
875
885
  }, t.value, {
876
- placeholder: E.value[e.value].label
877
- }), 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({
878
888
  key: 8,
879
889
  modelValue: n.value,
880
890
  "onUpdate:modelValue": y[10] || (y[10] = (h) => n.value = h),
881
891
  start: "06:30",
882
892
  step: "00:15",
883
893
  end: "23:30",
884
- placeholder: E.value[e.value].label
885
- }, 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({
886
897
  key: 9,
887
898
  modelValue: n.value,
888
899
  "onUpdate:modelValue": y[11] || (y[11] = (h) => n.value = h),
889
900
  type: o.value,
890
- placeholder: E.value[e.value].label,
891
- "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
892
904
  }, t.value), ye({ _: 2 }, [
893
905
  N(V(), (h) => ({
894
906
  name: h,
895
907
  fn: D((S) => [
896
- 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)
897
909
  ])
898
910
  }))
899
- ]), 1040, ["modelValue", "type", "placeholder", "value-format"])) : o.value == P(Se).COLOR ? (p(), B(pt, O({
911
+ ]), 1040, ["modelValue", "type", "placeholder", "value-format", "disabled"])) : o.value == P(Se).COLOR ? (p(), B(vt, O({
900
912
  key: 10,
901
913
  modelValue: n.value,
902
914
  "onUpdate:modelValue": y[12] || (y[12] = (h) => n.value = h)
903
915
  }, t.value), null, 16, ["modelValue"])) : o.value == P(Se).RATE ? (p(), B(l, O({
904
916
  key: 11,
905
917
  modelValue: n.value,
906
- "onUpdate:modelValue": y[13] || (y[13] = (h) => n.value = h)
907
- }, 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({
908
921
  key: 12,
909
922
  modelValue: n.value,
910
- "onUpdate:modelValue": y[14] || (y[14] = (h) => n.value = h)
911
- }, 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({
912
926
  key: 13,
913
927
  modelValue: n.value,
914
928
  "onUpdate:modelValue": y[15] || (y[15] = (h) => n.value = h),
915
- inlinePrompt: !0
929
+ inlinePrompt: !0,
930
+ disabled: g.value[e.value].disabled
916
931
  }, t.value), ye({ _: 2 }, [
917
932
  N(V(), (h) => ({
918
933
  name: h,
919
934
  fn: D((S) => [
920
- 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)
921
936
  ])
922
937
  }))
923
- ]), 1040, ["modelValue"])) : o.value == P(Se).TRANSFER ? (p(), B(b, O({
938
+ ]), 1040, ["modelValue", "disabled"])) : o.value == P(Se).TRANSFER ? (p(), B($, O({
924
939
  key: 14,
925
940
  modelValue: n.value,
926
941
  "onUpdate:modelValue": y[16] || (y[16] = (h) => n.value = h)
@@ -928,7 +943,7 @@ const wt = /* @__PURE__ */ Lt(_l), zt = {
928
943
  N(V(), (h) => ({
929
944
  name: h,
930
945
  fn: D((S) => [
931
- 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)
932
947
  ])
933
948
  }))
934
949
  ]), 1040, ["modelValue"])) : o.value == P(Se).CASCADER ? (p(), B(A, O({
@@ -939,7 +954,7 @@ const wt = /* @__PURE__ */ Lt(_l), zt = {
939
954
  N(V(), (h) => ({
940
955
  name: h,
941
956
  fn: D((S) => [
942
- 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)
943
958
  ])
944
959
  }))
945
960
  ]), 1040, ["modelValue", "options"])) : o.value == P(Se).IMAGE ? (p(), B(_e, O({
@@ -969,7 +984,7 @@ const wt = /* @__PURE__ */ Lt(_l), zt = {
969
984
  N(V(), (S, ue) => ({
970
985
  name: S,
971
986
  fn: D((Ae) => [
972
- 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)
973
988
  ])
974
989
  }))
975
990
  ]), 1040, ["src"])
@@ -1022,7 +1037,7 @@ const wt = /* @__PURE__ */ Lt(_l), zt = {
1022
1037
  N(V(), (h, S) => ({
1023
1038
  name: h,
1024
1039
  fn: D((ue) => [
1025
- 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)
1026
1041
  ])
1027
1042
  }))
1028
1043
  ]), 1040, ["file-list"])) : o.value == P(Se).AUTOCOMPLETE ? (p(), B(Fe, O({
@@ -1030,12 +1045,12 @@ const wt = /* @__PURE__ */ Lt(_l), zt = {
1030
1045
  modelValue: n.value,
1031
1046
  "onUpdate:modelValue": y[22] || (y[22] = (h) => n.value = h)
1032
1047
  }, t.value, {
1033
- placeholder: E.value[e.value].label
1048
+ placeholder: g.value[e.value].label
1034
1049
  }), ye({ _: 2 }, [
1035
1050
  N(V(), (h, S) => ({
1036
1051
  name: h,
1037
1052
  fn: D((ue) => [
1038
- 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)
1039
1054
  ])
1040
1055
  }))
1041
1056
  ]), 1040, ["modelValue", "placeholder"])) : o.value == P(Se).INPUTNUMBER ? (p(), B(Re, O({
@@ -1044,22 +1059,23 @@ const wt = /* @__PURE__ */ Lt(_l), zt = {
1044
1059
  "onUpdate:modelValue": y[23] || (y[23] = (h) => n.value = h),
1045
1060
  min: 0,
1046
1061
  max: 1e8,
1047
- placeholder: E.value[e.value].label
1062
+ placeholder: g.value[e.value].label,
1063
+ disabled: g.value[e.value].disabled
1048
1064
  }, t.value), ye({ _: 2 }, [
1049
1065
  N(V(), (h, S) => ({
1050
1066
  name: h,
1051
1067
  fn: D((ue) => [
1052
- 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)
1053
1069
  ])
1054
1070
  }))
1055
- ]), 1040, ["modelValue", "placeholder"])) : o.value == P(Se).MONEY ? (p(), I("div", {
1071
+ ]), 1040, ["modelValue", "placeholder", "disabled"])) : o.value == P(Se).MONEY ? (p(), I("div", {
1056
1072
  key: 19,
1057
1073
  style: qe([{ position: "relative" }, s.value])
1058
1074
  }, [
1059
1075
  K(Le, O({
1060
1076
  modelValue: n.value,
1061
1077
  "onUpdate:modelValue": y[24] || (y[24] = (h) => n.value = h),
1062
- placeholder: E.value[e.value].label,
1078
+ placeholder: g.value[e.value].label,
1063
1079
  type: "number",
1064
1080
  maxlength: ((z = t.value) == null ? void 0 : z.max) || 25
1065
1081
  }, { ...t.value, type: o.value }), ye({
@@ -1074,7 +1090,7 @@ const wt = /* @__PURE__ */ Lt(_l), zt = {
1074
1090
  N(V(), (h, S) => ({
1075
1091
  name: h,
1076
1092
  fn: D((ue) => [
1077
- 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)
1078
1094
  ])
1079
1095
  }))
1080
1096
  ]), 1040, ["modelValue", "placeholder", "maxlength"])
@@ -1137,12 +1153,13 @@ const wt = /* @__PURE__ */ Lt(_l), zt = {
1137
1153
  key: 26,
1138
1154
  modelValue: n.value,
1139
1155
  "onUpdate:modelValue": y[25] || (y[25] = (h) => n.value = h),
1140
- placeholder: E.value[e.value].label,
1156
+ placeholder: g.value[e.value].label,
1141
1157
  maxlength: ((ee = t.value) == null ? void 0 : ee.max) || 25,
1142
1158
  clearable: !0,
1143
1159
  onClear: y[26] || (y[26] = () => {
1144
- r.t == "q" && E.value.table.load();
1145
- })
1160
+ a.t == "q" && g.value.table.load();
1161
+ }),
1162
+ disabled: g.value[e.value].disabled
1146
1163
  }, { ...P(Ue)(t.value, (h) => !["suffix", "prefix", "append", "prepend"].includes(h)), type: o.value }), ye({ _: 2 }, [
1147
1164
  (je = t.value) != null && je.suffix ? {
1148
1165
  name: "suffix",
@@ -1195,15 +1212,18 @@ const wt = /* @__PURE__ */ Lt(_l), zt = {
1195
1212
  N(V(), (h, S) => ({
1196
1213
  name: h,
1197
1214
  fn: D((ue) => [
1198
- M(w.$slots, `${r.t}-${e.value}-${h}`, { data: ue }, void 0, !0)
1215
+ M(E.$slots, `${a.t}-${e.value}-${h}`, {
1216
+ data: ue,
1217
+ form: r.formInfo
1218
+ }, void 0, !0)
1199
1219
  ])
1200
1220
  }))
1201
- ]), 1040, ["modelValue", "placeholder", "maxlength"]))
1221
+ ]), 1040, ["modelValue", "placeholder", "maxlength", "disabled"]))
1202
1222
  ])
1203
1223
  ], 64);
1204
1224
  };
1205
1225
  }
1206
- }), bt = /* @__PURE__ */ Ze(Al, [["__scopeId", "data-v-667ddbae"]]), 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({
1207
1227
  name: "g-form",
1208
1228
  inheritAttrs: !1
1209
1229
  }, {
@@ -1213,44 +1233,44 @@ const wt = /* @__PURE__ */ Lt(_l), zt = {
1213
1233
  modelModifiers: {}
1214
1234
  }),
1215
1235
  emits: /* @__PURE__ */ Xe(["submit", "reset"], ["update:modelValue"]),
1216
- setup(a, { expose: n, emit: r }) {
1217
- var Ce, Te, le, ne, re, Oe;
1218
- 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;
1219
1239
  t.value.form = Ve(
1220
1240
  zt,
1221
- E == null ? void 0 : E.form,
1241
+ g == null ? void 0 : g.form,
1222
1242
  (Ce = t.value) == null ? void 0 : Ce.form
1223
1243
  ), t.value.form.style = Ve(
1224
1244
  (le = (Te = t.value) == null ? void 0 : Te.form) == null ? void 0 : le.style,
1225
1245
  { ...(ne = Tt()) == null ? void 0 : ne.style }
1226
1246
  );
1227
- const i = async (T, $) => {
1228
- let g = 5;
1229
- for (; g > 0; ) {
1230
- 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) {
1231
1251
  o.value.validate((u, q) => {
1232
- u ? e("submit", T, $) : console.error("表单验证不通过!", q);
1252
+ u ? e("submit", T, w) : console.error("表单验证不通过!", q);
1233
1253
  });
1234
1254
  return;
1235
1255
  }
1236
- g--, await new Promise((u) => setTimeout(u, 50));
1256
+ b--, await new Promise((u) => setTimeout(u, 50));
1237
1257
  }
1238
1258
  console.error("表单实例获取失败,请检查组件状态");
1239
1259
  }, s = async () => {
1240
1260
  let T = 5;
1241
1261
  for (; T > 0; ) {
1242
- if (await at(), !o.value) {
1243
- T--, await new Promise((g) => setTimeout(g, 50));
1262
+ if (await rt(), !o.value) {
1263
+ T--, await new Promise((b) => setTimeout(b, 50));
1244
1264
  continue;
1245
1265
  }
1246
- let $ = !0;
1247
- if (e("reset", (g) => {
1248
- $ = g;
1249
- }), $) {
1266
+ let w = !0;
1267
+ if (e("reset", (b) => {
1268
+ w = b;
1269
+ }), w) {
1250
1270
  o.value.resetFields();
1251
1271
  return;
1252
1272
  }
1253
- T--, await new Promise((g) => setTimeout(g, 50));
1273
+ T--, await new Promise((b) => setTimeout(b, 50));
1254
1274
  }
1255
1275
  console.error("表单实例获取失败,请检查组件状态");
1256
1276
  };
@@ -1264,8 +1284,8 @@ const wt = /* @__PURE__ */ Lt(_l), zt = {
1264
1284
  };
1265
1285
  t.value.formItems = Ve(
1266
1286
  c,
1267
- E == null ? void 0 : E.formItems,
1268
- (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
1269
1289
  );
1270
1290
  const _ = {
1271
1291
  span: 12,
@@ -1273,13 +1293,13 @@ const wt = /* @__PURE__ */ Lt(_l), zt = {
1273
1293
  };
1274
1294
  t.value.form.cols = Ve(
1275
1295
  _,
1276
- (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,
1277
1297
  t.value.form.cols
1278
1298
  );
1279
1299
  const V = (T) => {
1280
- let $ = [];
1300
+ let w = [];
1281
1301
  if (T.rules)
1282
- $ = T.rules;
1302
+ w = T.rules;
1283
1303
  else {
1284
1304
  const u = { ...{
1285
1305
  required: void 0,
@@ -1290,18 +1310,18 @@ const wt = /* @__PURE__ */ Lt(_l), zt = {
1290
1310
  pattern: void 0,
1291
1311
  validate: void 0
1292
1312
  }, ...T };
1293
- u.required && $.push({
1313
+ u.required && w.push({
1294
1314
  required: !0,
1295
1315
  message: `${u.label}不能为空!`,
1296
1316
  trigger: "blur"
1297
- }), 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({
1298
1318
  validator: (q, C, k) => {
1299
1319
  if (C == null || C === "") return k();
1300
1320
  u.type !== "number" && u.type !== "input-number" ? ((C == null ? void 0 : C.toString()) || "").length > Number(u.max) ? k(
1301
1321
  new Error(`${u.label}长度不能超过${u.max}个字符!`)
1302
1322
  ) : k() : Number(C) > Number(u.max) ? k(new Error(`${u.label}不能大于${u.max}!`)) : k();
1303
1323
  }
1304
- }), 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({
1305
1325
  validator: (q, C, k) => {
1306
1326
  if (C == null || C === "") return k();
1307
1327
  u.type !== "number" && u.type !== "input-number" ? Number(u.min) < 1 ? k(
@@ -1314,7 +1334,7 @@ const wt = /* @__PURE__ */ Lt(_l), zt = {
1314
1334
  )
1315
1335
  ) : k() : Number(C) < Number(u.min) ? k(new Error(`${u.label}不能小于${u.min}!`)) : k();
1316
1336
  }
1317
- }), 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({
1318
1338
  validator: (q, C, k) => {
1319
1339
  if (C == null || C === "") return k();
1320
1340
  const U = Number(u.min), Z = Number(u.max);
@@ -1328,30 +1348,30 @@ const wt = /* @__PURE__ */ Lt(_l), zt = {
1328
1348
  )
1329
1349
  ) : k() : Number(C) < U || C > Z ? k(new Error(`${u.label}必须在${U}-${Z}之间!`)) : k();
1330
1350
  }
1331
- }), 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({
1332
1352
  pattern: u == null ? void 0 : u.pattern,
1333
1353
  message: (u == null ? void 0 : u.message) || "格式不正确!"
1334
- }), u.validate && $.push({
1354
+ }), u.validate && w.push({
1335
1355
  validator: (q, C, k) => u.validate(q, C, k)
1336
1356
  });
1337
1357
  }
1338
- return $;
1339
- }, j = (T, $ = !1) => {
1358
+ return w;
1359
+ }, j = (T, w = !1) => {
1340
1360
  var q, C, k, U, Z;
1341
- 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) || {};
1342
1362
  if (((C = t.value.form) == null ? void 0 : C.modalState) === "edit") {
1343
- 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 : {};
1344
1364
  return { ...u, ...G };
1345
1365
  }
1346
1366
  if (((U = t.value.form) == null ? void 0 : U.modalState) === "add") {
1347
- 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 : {};
1348
1368
  return { ...u, ...G };
1349
1369
  }
1350
1370
  return u;
1351
1371
  }, R = (T) => {
1352
- var g, u, q, C, k;
1353
- const $ = typeof T.editor == "function" ? T.editor(v.value, (g = t.value.form) == null ? void 0 : g.modalState) : T.editor;
1354
- 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;
1355
1375
  };
1356
1376
  ut(() => {
1357
1377
  L(), f != null && f.editForm ? v.value = f.editForm : v.value = me.value;
@@ -1360,20 +1380,20 @@ const wt = /* @__PURE__ */ Lt(_l), zt = {
1360
1380
  });
1361
1381
  const L = () => {
1362
1382
  F.value = Math.random().toString(36).substring(2);
1363
- for (const [T, $] of Object.entries(te.value))
1383
+ for (const [T, w] of Object.entries(te.value))
1364
1384
  t.value[T].formItem = {
1365
1385
  ...t.value[T].formItem,
1366
- ...$.formItem
1386
+ ...w.formItem
1367
1387
  }, t.value[T].formItem.style = {
1368
1388
  ...t.value[T].formItem.style,
1369
- ...$.formItem.style
1389
+ ...w.formItem.style
1370
1390
  };
1371
1391
  }, te = Je(
1372
1392
  () => Object.fromEntries(
1373
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) => {
1374
- var g, u, q;
1375
- const $ = typeof T[1].editor == "function" ? T[1].editor(v.value, (g = t.value.form) == null ? void 0 : g.modalState) : T[1].editor;
1376
- 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;
1377
1397
  }).map((T) => [T[0], T[1]])
1378
1398
  )
1379
1399
  ), me = Je(
@@ -1382,17 +1402,17 @@ const wt = /* @__PURE__ */ Lt(_l), zt = {
1382
1402
  )
1383
1403
  ), ie = Je(() => {
1384
1404
  const T = /* @__PURE__ */ new Map();
1385
- return Object.entries(te.value).forEach(([$, g]) => {
1386
- if (g.groupName) {
1387
- const u = g.groupName;
1405
+ return Object.entries(te.value).forEach(([w, b]) => {
1406
+ if (b.groupName) {
1407
+ const u = b.groupName;
1388
1408
  T.has(u) || T.set(u, {
1389
1409
  groupName: u,
1390
1410
  items: []
1391
- }), T.get(u).items.push({ key: $, item: g });
1411
+ }), T.get(u).items.push({ key: w, item: b });
1392
1412
  }
1393
- }), T.forEach(($) => {
1394
- $.tabPane = Ve(
1395
- ...$.items.map(({ item: g }) => g.tabPane || {})
1413
+ }), T.forEach((w) => {
1414
+ w.tabPane = Ve(
1415
+ ...w.items.map(({ item: b }) => b.tabPane || {})
1396
1416
  );
1397
1417
  }), Array.from(T.values());
1398
1418
  }), ce = [
@@ -1418,14 +1438,14 @@ const wt = /* @__PURE__ */ Lt(_l), zt = {
1418
1438
  originalOrder: 1
1419
1439
  // 添加原始顺序标识
1420
1440
  }
1421
- ], 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));
1422
1442
  return n({
1423
1443
  submit: i,
1424
1444
  reset: s,
1425
1445
  formData: v
1426
- }), (T, $) => {
1427
- var Z, G, ve;
1428
- 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");
1446
+ }), (T, w) => {
1447
+ var Z, G, pe;
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");
1429
1449
  return p(), I("div", Bl, [
1430
1450
  K(k, O(
1431
1451
  {
@@ -1441,7 +1461,7 @@ const wt = /* @__PURE__ */ Lt(_l), zt = {
1441
1461
  },
1442
1462
  P(Ue)(
1443
1463
  t.value.form,
1444
- (w) => !["footer", "submit", "reset", "slots", "type", "sort"].includes(w)
1464
+ (E) => !["footer", "submit", "reset", "slots", "type", "sort"].includes(E)
1445
1465
  )
1446
1466
  ), {
1447
1467
  default: D(() => [
@@ -1449,26 +1469,26 @@ const wt = /* @__PURE__ */ Lt(_l), zt = {
1449
1469
  K(C, O({
1450
1470
  class: "demo-tabs",
1451
1471
  modelValue: ie.value[0].groupName,
1452
- "onUpdate:modelValue": $[0] || ($[0] = (w) => ie.value[0].groupName = w),
1472
+ "onUpdate:modelValue": w[0] || (w[0] = (E) => ie.value[0].groupName = E),
1453
1473
  style: { width: "100%" }
1454
1474
  }, t.value.form.tabs), {
1455
1475
  default: D(() => [
1456
- (p(!0), I(J, null, N(ie.value, (w) => (p(), B(q, O({
1457
- key: w.groupName,
1458
- label: w.groupName,
1459
- 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,
1460
1480
  style: { width: "100%", display: "flex", "flex-wrap": "wrap" },
1461
1481
  ref_for: !0
1462
- }, w.tabPane), {
1482
+ }, E.tabPane), {
1463
1483
  default: D(() => [
1464
- (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 }, {
1465
1485
  key: y.key,
1466
1486
  style: { width: "100%" }
1467
1487
  }), {
1468
1488
  default: D(() => {
1469
1489
  var he, be;
1470
1490
  return [
1471
- K(g, O({
1491
+ K(b, O({
1472
1492
  label: y == null ? void 0 : y.item.label,
1473
1493
  prop: y.key,
1474
1494
  rules: V(y == null ? void 0 : y.item),
@@ -1478,7 +1498,8 @@ const wt = /* @__PURE__ */ Lt(_l), zt = {
1478
1498
  M(T.$slots, "f-" + y.key, {
1479
1499
  item: y == null ? void 0 : y.item,
1480
1500
  formInfo: v.value,
1481
- model: t.value
1501
+ model: t.value,
1502
+ form: v.value
1482
1503
  }, () => [
1483
1504
  (p(), B(bt, {
1484
1505
  modelValue: v.value[y.key],
@@ -1518,40 +1539,41 @@ const wt = /* @__PURE__ */ Lt(_l), zt = {
1518
1539
  _: 3
1519
1540
  }, 16, ["modelValue"])
1520
1541
  ], !0) : M(T.$slots, "default", { key: 1 }, () => [
1521
- (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 }, {
1522
1543
  key: y,
1523
1544
  style: { width: "100%" }
1524
1545
  }), {
1525
1546
  default: D(() => {
1526
- var ae;
1547
+ var re;
1527
1548
  return [
1528
- K(g, O({
1529
- label: w.label,
1549
+ K(b, O({
1550
+ label: E.label,
1530
1551
  prop: y,
1531
- rules: V(w),
1552
+ rules: V(E),
1532
1553
  ref_for: !0
1533
- }, { ...(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%" } }), {
1534
1555
  label: D((he) => [
1535
1556
  M(T.$slots, `f-${y}-label`, {
1536
1557
  data: he,
1537
- item: w,
1558
+ item: E,
1538
1559
  model: t.value
1539
1560
  }, () => [
1540
- Ie(De(w.label), 1)
1561
+ Ie(De(E.label), 1)
1541
1562
  ], !0)
1542
1563
  ]),
1543
1564
  default: D(() => [
1544
1565
  M(T.$slots, "f-" + y, {
1545
- item: w,
1566
+ item: E,
1546
1567
  formInfo: v.value,
1547
- model: t.value
1568
+ model: t.value,
1569
+ form: v.value
1548
1570
  }, () => [
1549
1571
  (p(), B(bt, {
1550
1572
  modelValue: v.value[y],
1551
1573
  "onUpdate:modelValue": (he) => v.value[y] = he,
1552
- item: j(w, !0),
1574
+ item: j(E, !0),
1553
1575
  ctrlKey: y,
1554
- ctrlType: R(w),
1576
+ ctrlType: R(E),
1555
1577
  key: `${y}-${F.value}`,
1556
1578
  model: t.value,
1557
1579
  class: "g-ctrl-container",
@@ -1563,7 +1585,7 @@ const wt = /* @__PURE__ */ Lt(_l), zt = {
1563
1585
  fn: D(($e) => [
1564
1586
  M(T.$slots, be, {
1565
1587
  data: $e,
1566
- item: w,
1588
+ item: E,
1567
1589
  model: t.value
1568
1590
  }, void 0, !0)
1569
1591
  ])
@@ -1581,24 +1603,24 @@ const wt = /* @__PURE__ */ Lt(_l), zt = {
1581
1603
  ]),
1582
1604
  _: 3
1583
1605
  }, 16, ["model"]),
1584
- (ve = (G = (Z = t.value) == null ? void 0 : Z.form) == null ? void 0 : G.footer) != null && ve.hidden ? ge("", !0) : M(T.$slots, "f-footer", { key: 0 }, () => [
1606
+ (pe = (G = (Z = t.value) == null ? void 0 : Z.form) == null ? void 0 : G.footer) != null && pe.hidden ? ge("", !0) : M(T.$slots, "f-footer", { key: 0 }, () => [
1585
1607
  Q("div", {
1586
1608
  style: qe(t.value.form.footer.style)
1587
1609
  }, [
1588
1610
  M(T.$slots, "f-footer-left", {}, void 0, !0),
1589
- (p(!0), I(J, null, N(de.value, (w) => (p(), I(J, null, [
1590
- M(T.$slots, w.name + "-left", {}, void 0, !0),
1591
- M(T.$slots, w.name, {}, () => [
1592
- K(U, O({ ref_for: !0 }, w.info, {
1593
- 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"])
1594
1616
  }), {
1595
1617
  default: D(() => [
1596
- Ie(De(w == null ? void 0 : w.label), 1)
1618
+ Ie(De(E == null ? void 0 : E.label), 1)
1597
1619
  ]),
1598
1620
  _: 2
1599
1621
  }, 1040, ["onClick"])
1600
1622
  ], !0),
1601
- M(T.$slots, w.name + "-right", {}, void 0, !0)
1623
+ M(T.$slots, E.name + "-right", {}, void 0, !0)
1602
1624
  ], 64))), 256)),
1603
1625
  M(T.$slots, "f-footer-right", {}, void 0, !0)
1604
1626
  ], 4)
@@ -1606,7 +1628,7 @@ const wt = /* @__PURE__ */ Lt(_l), zt = {
1606
1628
  ]);
1607
1629
  };
1608
1630
  }
1609
- }), _t = /* @__PURE__ */ Ze(Ol, [["__scopeId", "data-v-68883be7"]]), Ft = {
1631
+ }), _t = /* @__PURE__ */ Ze(Ol, [["__scopeId", "data-v-d68f3861"]]), Ft = {
1610
1632
  __name: "g-query-item",
1611
1633
  props: /* @__PURE__ */ Xe(["more"], {
1612
1634
  modelValue: { required: !0 },
@@ -1615,11 +1637,11 @@ const wt = /* @__PURE__ */ Lt(_l), zt = {
1615
1637
  infoModifiers: {}
1616
1638
  }),
1617
1639
  emits: ["update:modelValue", "update:info"],
1618
- setup(a) {
1619
- 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) => {
1620
1642
  var i;
1621
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;
1622
- }).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) => {
1623
1645
  const f = o(F);
1624
1646
  return (f == null ? void 0 : f.type) || F.type;
1625
1647
  }, v = (F) => {
@@ -1630,7 +1652,7 @@ const wt = /* @__PURE__ */ Lt(_l), zt = {
1630
1652
  };
1631
1653
  return (F, f) => {
1632
1654
  const i = H("el-form-item");
1633
- 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}`, {
1634
1656
  key: c,
1635
1657
  item: s,
1636
1658
  queryModel: t.value,
@@ -1653,7 +1675,7 @@ const wt = /* @__PURE__ */ Lt(_l), zt = {
1653
1675
  "onUpdate:modelValue": (_) => t.value[c] = _,
1654
1676
  item: { ...s == null ? void 0 : s.editor, ...o(s) },
1655
1677
  ctrlKey: c,
1656
- ctrlType: E(s),
1678
+ ctrlType: g(s),
1657
1679
  model: n.value,
1658
1680
  t: "q",
1659
1681
  formInfo: t.value
@@ -1687,8 +1709,8 @@ const wt = /* @__PURE__ */ Lt(_l), zt = {
1687
1709
  infoModifiers: {}
1688
1710
  },
1689
1711
  emits: /* @__PURE__ */ Xe(["query", "reset"], ["update:modelValue", "update:info"]),
1690
- setup(a, { emit: n }) {
1691
- 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 = {
1692
1714
  hidden: !1,
1693
1715
  type: "hidden",
1694
1716
  labelWidth: 100,
@@ -1717,7 +1739,7 @@ const wt = /* @__PURE__ */ Lt(_l), zt = {
1717
1739
  plain: !1,
1718
1740
  icon: () => ke(It),
1719
1741
  click: () => {
1720
- t("reset", E.value);
1742
+ t("reset", g.value);
1721
1743
  }
1722
1744
  },
1723
1745
  query: {
@@ -1726,7 +1748,7 @@ const wt = /* @__PURE__ */ Lt(_l), zt = {
1726
1748
  label: "查询",
1727
1749
  icon: () => ke(fl),
1728
1750
  click: () => {
1729
- t("query", E.value), o.value = !1;
1751
+ t("query", g.value), o.value = !1;
1730
1752
  }
1731
1753
  },
1732
1754
  btns: {
@@ -1740,7 +1762,7 @@ const wt = /* @__PURE__ */ Lt(_l), zt = {
1740
1762
  }
1741
1763
  }
1742
1764
  };
1743
- 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);
1744
1766
  const F = {
1745
1767
  2: {
1746
1768
  title: "更多查询",
@@ -1758,9 +1780,9 @@ const wt = /* @__PURE__ */ Lt(_l), zt = {
1758
1780
  trigger: "click"
1759
1781
  }
1760
1782
  };
1761
- r.value.query.more.dialog = Ve(
1762
- F[r.value.query.more.mode] || {},
1763
- 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
1764
1786
  );
1765
1787
  const f = {
1766
1788
  type: "hidden",
@@ -1771,17 +1793,17 @@ const wt = /* @__PURE__ */ Lt(_l), zt = {
1771
1793
  // width: "280px"
1772
1794
  }
1773
1795
  };
1774
- 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);
1775
1797
  const i = (V, j) => {
1776
1798
  const R = Object.keys(V.slots).filter((L) => L !== "default").reduce((L, te) => (L[te] = (me) => V.slots[te]({
1777
- model: r.value
1799
+ model: a.value
1778
1800
  // 传递当前模型数据
1779
1801
  }), L), {});
1780
1802
  return ke(Ft, {
1781
- modelValue: r.value,
1782
- "onUpdate:modelValue": (L) => r.value = L,
1783
- info: E.value,
1784
- "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,
1785
1807
  more: j
1786
1808
  }, R);
1787
1809
  }, s = At(), c = () => {
@@ -1789,91 +1811,91 @@ const wt = /* @__PURE__ */ Lt(_l), zt = {
1789
1811
  const V = [
1790
1812
  {
1791
1813
  key: "query",
1792
- 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,
1793
1815
  component: Be,
1794
1816
  props: {
1795
- ...r.value.query.query,
1796
- onClick: r.value.query.query.click
1817
+ ...a.value.query.query,
1818
+ onClick: a.value.query.query.click
1797
1819
  },
1798
- label: r.value.query.query.label,
1799
- sort: r.value.query.query.sort || 0
1820
+ label: a.value.query.query.label,
1821
+ sort: a.value.query.query.sort || 0
1800
1822
  },
1801
1823
  {
1802
1824
  key: "reset",
1803
- 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,
1804
1826
  component: Be,
1805
1827
  props: {
1806
- ...r.value.query.reset,
1807
- onClick: r.value.query.reset.click
1828
+ ...a.value.query.reset,
1829
+ onClick: a.value.query.reset.click
1808
1830
  },
1809
- label: r.value.query.reset.label,
1810
- sort: r.value.query.reset.sort || 0
1831
+ label: a.value.query.reset.label,
1832
+ sort: a.value.query.reset.sort || 0
1811
1833
  },
1812
1834
  {
1813
1835
  key: "more",
1814
- hidden: (Te = (Ce = (de = r.value) == null ? void 0 : de.query) == null ? void 0 : Ce.more) == null ? void 0 : Te.hidden,
1815
- component: r.value.query.more.mode === 3 ? $t : Be,
1816
- props: r.value.query.more.mode === 3 ? { ...r.value.query.more.dialog } : {
1817
- ...r.value.query.more,
1818
- 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
1819
1841
  },
1820
- label: r.value.query.more.label,
1821
- sort: r.value.query.more.sort || 0,
1822
- content: r.value.query.more.mode === 3 ? () => ke(vt, {
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, {
1823
1845
  class: "query-form",
1824
- ...Ue(r.value.query, (le) => !["query", "more", "reset"].includes(le))
1846
+ ...Ue(a.value.query, (le) => !["query", "more", "reset"].includes(le))
1825
1847
  }, () => i({ slots: s }, !0)) : null
1826
1848
  }
1827
1849
  ];
1828
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, {
1829
- reference: () => ke(Be, r.value.query.more, () => le.label),
1851
+ reference: () => ke(Be, a.value.query.more, () => le.label),
1830
1852
  default: le.content
1831
1853
  }) : (le.props.slot = "query-" + le.key, le.label ? ke(le.component, le.props, () => le.label) : ke(le.component, le.props)));
1832
1854
  }, _ = Je(() => ({
1833
1855
  diplay: "flex",
1834
- flexDirection: r.value.query.container.mode === "row" ? "row" : "column"
1856
+ flexDirection: a.value.query.container.mode === "row" ? "row" : "column"
1835
1857
  }));
1836
1858
  return (V, j) => {
1837
- 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;
1838
1860
  const R = H("el-form-item"), L = H("el-drawer");
1839
1861
  return p(), I(J, null, [
1840
1862
  Q("div", {
1841
1863
  class: "g-query-container",
1842
- 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) || {} })
1843
1865
  }, [
1844
- K(P(vt), O({
1866
+ K(P(pt), O({
1845
1867
  onSubmit: j[0] || (j[0] = yt(() => {
1846
1868
  }, ["prevent"]))
1847
- }, 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))), {
1848
1870
  default: D(() => {
1849
1871
  var k, U;
1850
1872
  return [
1851
1873
  (p(), B(We(i({ slots: V.$slots }, void 0)))),
1852
- ((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 }, {
1853
1875
  default: D(() => {
1854
- var Z, G, ve, w, y;
1876
+ var Z, G, pe, E, y;
1855
1877
  return [
1856
1878
  Q("div", {
1857
- 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)
1858
1880
  }, [
1859
- r.value.query.group ? (p(), B(P(mt), { key: 0 }, {
1881
+ a.value.query.group ? (p(), B(P(mt), { key: 0 }, {
1860
1882
  default: D(() => [
1861
- (p(!0), I(J, null, N(c(), (ae) => M(V.$slots, ae.props.slot, {}, () => [
1862
- (p(), B(We(ae)))
1883
+ (p(!0), I(J, null, N(c(), (re) => M(V.$slots, re.props.slot, {}, () => [
1884
+ (p(), B(We(re)))
1863
1885
  ], !0)), 256)),
1864
1886
  M(V.$slots, "q-btns", {}, void 0, !0)
1865
1887
  ]),
1866
1888
  _: 3
1867
1889
  })) : (p(), I(J, { key: 1 }, [
1868
- (y = (w = (ve = r.value) == null ? void 0 : ve.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 }, {
1869
1891
  default: D(() => [
1870
- (p(!0), I(J, null, N(c(), (ae) => M(V.$slots, ae.props.slot, {}, () => [
1871
- (p(), B(We(ae)))
1892
+ (p(!0), I(J, null, N(c(), (re) => M(V.$slots, re.props.slot, {}, () => [
1893
+ (p(), B(We(re)))
1872
1894
  ], !0)), 256))
1873
1895
  ]),
1874
1896
  _: 3
1875
- })) : (p(!0), I(J, { key: 1 }, N(c(), (ae) => M(V.$slots, ae.props.slot, {}, () => [
1876
- (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)))
1877
1899
  ], !0)), 256)),
1878
1900
  M(V.$slots, "q-btns", {}, void 0, !0)
1879
1901
  ], 64))
@@ -1886,11 +1908,11 @@ const wt = /* @__PURE__ */ Lt(_l), zt = {
1886
1908
  }),
1887
1909
  _: 3
1888
1910
  }, 16),
1889
- ((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", {
1890
1912
  key: 0,
1891
- 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)
1892
1914
  }, [
1893
- r.value.query.group ? (p(), B(P(mt), { key: 0 }, {
1915
+ a.value.query.group ? (p(), B(P(mt), { key: 0 }, {
1894
1916
  default: D(() => [
1895
1917
  (p(!0), I(J, null, N(c(), (k) => M(V.$slots, k.props.slot, {}, () => [
1896
1918
  (p(), B(We(k)))
@@ -1899,7 +1921,7 @@ const wt = /* @__PURE__ */ Lt(_l), zt = {
1899
1921
  ]),
1900
1922
  _: 3
1901
1923
  })) : (p(), I(J, { key: 1 }, [
1902
- (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 }, {
1903
1925
  default: D(() => [
1904
1926
  (p(!0), I(J, null, N(c(), (k) => M(V.$slots, k.props.slot, {}, () => [
1905
1927
  (p(), B(We(k)))
@@ -1913,30 +1935,30 @@ const wt = /* @__PURE__ */ Lt(_l), zt = {
1913
1935
  ], 64))
1914
1936
  ], 4)) : ge("", !0)
1915
1937
  ], 4),
1916
- 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({
1917
1939
  key: 0,
1918
1940
  modelValue: o.value,
1919
1941
  "onUpdate:modelValue": j[6] || (j[6] = (k) => o.value = k),
1920
1942
  title: "更多查询",
1921
1943
  "show-close": !1
1922
- }, r.value.query.more.dialog), ye({
1944
+ }, a.value.query.more.dialog), ye({
1923
1945
  default: D(() => [
1924
- K(P(vt), O({
1946
+ K(P(pt), O({
1925
1947
  onSubmit: j[3] || (j[3] = yt(() => {
1926
1948
  }, ["prevent"]))
1927
- }, 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%" } }), {
1928
1950
  default: D(() => [
1929
1951
  K(Ft, {
1930
- modelValue: r.value,
1931
- "onUpdate:modelValue": j[1] || (j[1] = (k) => r.value = k),
1932
- info: E.value,
1933
- "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),
1934
1956
  more: !0
1935
1957
  }, ye({ _: 2 }, [
1936
1958
  N(V.$slots, (k, U, Z) => ({
1937
1959
  name: U,
1938
1960
  fn: D((G) => [
1939
- M(V.$slots, U, { model: r.value }, void 0, !0)
1961
+ M(V.$slots, U, { model: a.value }, void 0, !0)
1940
1962
  ])
1941
1963
  }))
1942
1964
  ]), 1032, ["modelValue", "info"])
@@ -1946,23 +1968,23 @@ const wt = /* @__PURE__ */ Lt(_l), zt = {
1946
1968
  ]),
1947
1969
  _: 2
1948
1970
  }, [
1949
- (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 : {
1950
1972
  name: "footer",
1951
1973
  fn: D(() => [
1952
- Q("div", Et(el(r.value.query.more.dialog.footer)), [
1953
- K(P(Be), O(r.value.query.query, {
1954
- 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())
1955
1977
  }), {
1956
1978
  default: D(() => [
1957
- Ie(De(r.value.query.query.label), 1)
1979
+ Ie(De(a.value.query.query.label), 1)
1958
1980
  ]),
1959
1981
  _: 1
1960
1982
  }, 16),
1961
- K(P(Be), O(r.value.query.reset, {
1962
- 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())
1963
1985
  }), {
1964
1986
  default: D(() => [
1965
- Ie(De(r.value.query.reset.label), 1)
1987
+ Ie(De(a.value.query.reset.label), 1)
1966
1988
  ]),
1967
1989
  _: 1
1968
1990
  }, 16)
@@ -1979,19 +2001,19 @@ const wt = /* @__PURE__ */ Lt(_l), zt = {
1979
2001
  default: D(() => {
1980
2002
  var k, U, Z;
1981
2003
  return [
1982
- 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, [
1983
2005
  Q("div", Ul, [
1984
- r.value.query.more.mode == 1 ? ll((p(), B(P(vt), O({
2006
+ a.value.query.more.mode == 1 ? ll((p(), B(P(pt), O({
1985
2007
  key: 0,
1986
2008
  onSubmit: j[7] || (j[7] = yt(() => {
1987
2009
  }, ["prevent"]))
1988
- }, P(Ue)(r.value.query, (G) => !["query", "more", "reset"].includes(G))), {
2010
+ }, P(Ue)(a.value.query, (G) => !["query", "more", "reset"].includes(G))), {
1989
2011
  default: D(() => [
1990
2012
  (p(), B(We(i({ slots: V.$slots }, !0))))
1991
2013
  ]),
1992
2014
  _: 1
1993
2015
  }, 16)), [
1994
- [rl, o.value]
2016
+ [al, o.value]
1995
2017
  ]) : ge("", !0)
1996
2018
  ])
1997
2019
  ])) : ge("", !0)
@@ -2012,12 +2034,12 @@ const wt = /* @__PURE__ */ Lt(_l), zt = {
2012
2034
  commitText: String
2013
2035
  },
2014
2036
  emits: ["excel"],
2015
- setup(a, { emit: n }) {
2016
- 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 = () => {
2017
2039
  e.value.forEach((F) => {
2018
2040
  F.value = !0;
2019
2041
  });
2020
- }, E = () => {
2042
+ }, g = () => {
2021
2043
  e.value.forEach((F) => {
2022
2044
  F.value = !1;
2023
2045
  });
@@ -2042,7 +2064,7 @@ const wt = /* @__PURE__ */ Lt(_l), zt = {
2042
2064
  F.toArray();
2043
2065
  }
2044
2066
  }), f = F;
2045
- al(() => {
2067
+ rl(() => {
2046
2068
  f && f.destroy();
2047
2069
  });
2048
2070
  }), (F, f) => {
@@ -2056,7 +2078,7 @@ const wt = /* @__PURE__ */ Lt(_l), zt = {
2056
2078
  }, "全选"),
2057
2079
  K(i, { direction: "vertical" }),
2058
2080
  Q("a", {
2059
- onClick: E,
2081
+ onClick: g,
2060
2082
  style: { cursor: "pointer" }
2061
2083
  }, "全不选")
2062
2084
  ]),
@@ -2096,7 +2118,7 @@ const wt = /* @__PURE__ */ Lt(_l), zt = {
2096
2118
  disabled: e.value.filter((V) => V.value).length < 1
2097
2119
  }, {
2098
2120
  default: D(() => [
2099
- Ie(De(r.commitText), 1)
2121
+ Ie(De(a.commitText), 1)
2100
2122
  ]),
2101
2123
  _: 1
2102
2124
  }, 8, ["icon", "disabled"])
@@ -2104,8 +2126,8 @@ const wt = /* @__PURE__ */ Lt(_l), zt = {
2104
2126
  ]);
2105
2127
  };
2106
2128
  }
2107
- }, Gl = /* @__PURE__ */ Ze(Wl, [["__scopeId", "data-v-630c4ced"]]), Xl = "vue-gyc-ui", Ql = 1, pe = new $l(Xl);
2108
- pe.version(Ql).stores({
2129
+ }, Gl = /* @__PURE__ */ Ze(Wl, [["__scopeId", "data-v-630c4ced"]]), Xl = "vue-gyc-ui", Ql = 1, ve = new $l(Xl);
2130
+ ve.version(Ql).stores({
2109
2131
  // 记录表格项设置信息
2110
2132
  tableWidths: "++id, [page+key], page, key,width",
2111
2133
  // 记录表格分页条数
@@ -2115,102 +2137,102 @@ pe.version(Ql).stores({
2115
2137
  // 记录表格列显示状态
2116
2138
  tableColsState: "++id,[page+key], page, key"
2117
2139
  });
2118
- const Ke = (a, n) => {
2119
- if (!a || typeof a != "string")
2140
+ const Ke = (r, n) => {
2141
+ if (!r || typeof r != "string")
2120
2142
  throw new Error("page参数必须是非空字符串");
2121
2143
  };
2122
- async function ht(a, n, r) {
2144
+ async function ht(r, n, a) {
2123
2145
  try {
2124
- const t = await pe.tableColsState.where({ page: a }).first();
2125
- t ? r === "add" ? t.keys.includes(n) || (t.keys.push(n), await pe.tableColsState.put(t)) : r === "del" ? (t.keys = t.keys.filter((e) => e !== n), await pe.tableColsState.put(t)) : r === "delAll" ? (t.keys = n, await pe.tableColsState.put(t)) : r === "selectAll" && await pe.tableColsState.where({ page: a }).delete() : r === "add" ? await pe.tableColsState.add({ page: a, keys: [n] }) : r === "delAll" && await pe.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 });
2126
2148
  } catch (t) {
2127
- throw console.error(`处理表格列状态时出错 (page: ${a}, key: ${n}, state: ${r}):`, t), t;
2149
+ throw console.error(`处理表格列状态时出错 (page: ${r}, key: ${n}, state: ${a}):`, t), t;
2128
2150
  }
2129
2151
  }
2130
- async function Zl(a, n, r) {
2131
- Ke(a);
2152
+ async function Zl(r, n, a) {
2153
+ Ke(r);
2132
2154
  try {
2133
- const t = await pe.tableWidths.where({ page: a, key: n }).first();
2134
- return t ? (await pe.tableWidths.put({ ...t, width: r }), "update success") : (await pe.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");
2135
2157
  } catch (t) {
2136
- throw console.error(`保存表格项设置信息时出错 (page: ${a}, key: ${n}):`, t), t;
2158
+ throw console.error(`保存表格项设置信息时出错 (page: ${r}, key: ${n}):`, t), t;
2137
2159
  }
2138
2160
  }
2139
- async function Jl(a) {
2140
- Ke(a);
2161
+ async function Jl(r) {
2162
+ Ke(r);
2141
2163
  try {
2142
- return await pe.tableWidths.where({ page: a }).toArray();
2164
+ return await ve.tableWidths.where({ page: r }).toArray();
2143
2165
  } catch (n) {
2144
- throw console.error(`获取表格项设置信息时出错 (page: ${a}):`, n), n;
2166
+ throw console.error(`获取表格项设置信息时出错 (page: ${r}):`, n), n;
2145
2167
  }
2146
2168
  }
2147
- async function Kl(a) {
2148
- Ke(a);
2169
+ async function Kl(r) {
2170
+ Ke(r);
2149
2171
  try {
2150
- const n = await pe.tableColsState.where({ page: a }).toArray();
2172
+ const n = await ve.tableColsState.where({ page: r }).toArray();
2151
2173
  return !n || n.length === 0 ? [] : n[0].keys;
2152
2174
  } catch (n) {
2153
- throw console.error(`获取表格列状态时出错 (page: ${a}):`, n), n;
2175
+ throw console.error(`获取表格列状态时出错 (page: ${r}):`, n), n;
2154
2176
  }
2155
2177
  }
2156
- async function er(a) {
2157
- Ke(a);
2178
+ async function ea(r) {
2179
+ Ke(r);
2158
2180
  try {
2159
- return await pe.transaction("rw", pe.tableWidths, pe.pageInfo, pe.sorts, pe.tableColsState, async () => {
2181
+ return await ve.transaction("rw", ve.tableWidths, ve.pageInfo, ve.sorts, ve.tableColsState, async () => {
2160
2182
  await Promise.all([
2161
- pe.tableWidths.where({ page: a }).delete(),
2162
- pe.pageInfo.where({ page: a }).delete(),
2163
- pe.sorts.where({ page: a }).delete(),
2164
- pe.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()
2165
2187
  ]);
2166
2188
  });
2167
2189
  } catch (n) {
2168
- throw console.error(`删除页面"${a}"的表格设置信息时出错:`, n), n;
2190
+ throw console.error(`删除页面"${r}"的表格设置信息时出错:`, n), n;
2169
2191
  }
2170
2192
  }
2171
- async function tr({ page: a, size: n }) {
2172
- Ke(a);
2193
+ async function ta({ page: r, size: n }) {
2194
+ Ke(r);
2173
2195
  try {
2174
- const r = await pe.pageInfo.where({ page: a }).first();
2175
- return r ? (await pe.pageInfo.put({ ...r, size: n }), "update success") : (await pe.pageInfo.add({ page: a, size: n }), "add success");
2176
- } catch (r) {
2177
- 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;
2178
2200
  }
2179
2201
  }
2180
- async function lr(a) {
2181
- Ke(a);
2202
+ async function la(r) {
2203
+ Ke(r);
2182
2204
  try {
2183
- const n = await pe.pageInfo.where({ page: a }).first();
2205
+ const n = await ve.pageInfo.where({ page: r }).first();
2184
2206
  return (n == null ? void 0 : n.size) || 20;
2185
2207
  } catch (n) {
2186
- throw console.error(`获取分页条数时出错 (page: ${a}):`, n), n;
2208
+ throw console.error(`获取分页条数时出错 (page: ${r}):`, n), n;
2187
2209
  }
2188
2210
  }
2189
- async function rr(a, n) {
2190
- Ke(a);
2211
+ async function aa(r, n) {
2212
+ Ke(r);
2191
2213
  try {
2192
- const r = await pe.sorts.where({ page: a }).first();
2193
- return r ? (await pe.sorts.put({ ...r, keys: n }), "update success") : (await pe.sorts.add({ page: a, keys: n }), "add success");
2194
- } catch (r) {
2195
- 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;
2196
2218
  }
2197
2219
  }
2198
- async function ar(a) {
2199
- Ke(a);
2220
+ async function ra(r) {
2221
+ Ke(r);
2200
2222
  try {
2201
- const n = await pe.sorts.where({ page: a }).first();
2223
+ const n = await ve.sorts.where({ page: r }).first();
2202
2224
  return (n == null ? void 0 : n.keys) || [];
2203
2225
  } catch (n) {
2204
- throw console.error(`获取表格字段顺序时出错 (page: ${a}):`, n), n;
2226
+ throw console.error(`获取表格字段顺序时出错 (page: ${r}):`, n), n;
2205
2227
  }
2206
2228
  }
2207
- const or = {
2229
+ const oa = {
2208
2230
  style: { margin: "10px" },
2209
2231
  class: "allcheck"
2210
- }, nr = {
2232
+ }, na = {
2211
2233
  id: "cols",
2212
2234
  style: { display: "flex", "flex-wrap": "wrap", margin: "0 !important", padding: "0 !important" }
2213
- }, ur = ["textContent"], sr = {
2235
+ }, ua = ["textContent"], sa = {
2214
2236
  __name: "columns-setting",
2215
2237
  props: /* @__PURE__ */ Xe({
2216
2238
  tuid: {
@@ -2222,9 +2244,9 @@ const or = {
2222
2244
  modelModifiers: {}
2223
2245
  }),
2224
2246
  emits: /* @__PURE__ */ Xe(["setting-drag-end", "select-all"], ["update:modelValue"]),
2225
- setup(a, { emit: n }) {
2226
- const r = a, t = n, e = oe([]), o = Qe(a, "modelValue"), E = async (s, c) => {
2227
- 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"));
2228
2250
  }, v = () => {
2229
2251
  const s = document.getElementById("cols");
2230
2252
  if (s) {
@@ -2235,7 +2257,7 @@ const or = {
2235
2257
  onEnd: async () => {
2236
2258
  let _ = c.toArray();
2237
2259
  try {
2238
- rr(r.tuid, _).then((V) => {
2260
+ aa(a.tuid, _).then((V) => {
2239
2261
  t("setting-drag-end");
2240
2262
  });
2241
2263
  } catch (V) {
@@ -2251,7 +2273,7 @@ const or = {
2251
2273
  try {
2252
2274
  e.value.forEach((s) => {
2253
2275
  s.showCol = !0;
2254
- }), ht(r.tuid, [], "selectAll").then((s) => {
2276
+ }), ht(a.tuid, [], "selectAll").then((s) => {
2255
2277
  t("select-all");
2256
2278
  });
2257
2279
  } catch (s) {
@@ -2265,7 +2287,7 @@ const or = {
2265
2287
  let s = e.value.filter((c) => !c.alwaysShow && c.value != "control" && c.value != "hidden");
2266
2288
  s.forEach((c) => {
2267
2289
  c.showCol = !1;
2268
- }), ht(r.tuid, s.map((c) => c.value), "delAll").then((c) => {
2290
+ }), ht(a.tuid, s.map((c) => c.value), "delAll").then((c) => {
2269
2291
  t("select-all");
2270
2292
  });
2271
2293
  } catch (s) {
@@ -2280,7 +2302,7 @@ const or = {
2280
2302
  cancelButtonText: "取消",
2281
2303
  type: "warning"
2282
2304
  }).then(() => {
2283
- er(r.tuid).then((s) => {
2305
+ ea(a.tuid).then((s) => {
2284
2306
  window.location.reload();
2285
2307
  }).catch((s) => {
2286
2308
  console.error("复位操作出错:", s), Ge({
@@ -2302,7 +2324,7 @@ const or = {
2302
2324
  }), (s, c) => {
2303
2325
  const _ = H("el-divider"), V = H("el-alert"), j = H("el-checkbox");
2304
2326
  return p(), I("div", null, [
2305
- Q("div", or, [
2327
+ Q("div", oa, [
2306
2328
  Q("a", { onClick: F }, "全选"),
2307
2329
  K(_, { direction: "vertical" }),
2308
2330
  Q("a", { onClick: f }, "全不选"),
@@ -2317,13 +2339,13 @@ const or = {
2317
2339
  style: { "margin-bottom": "10px" }
2318
2340
  }),
2319
2341
  Q("div", null, [
2320
- Q("div", nr, [
2342
+ Q("div", na, [
2321
2343
  (p(!0), I(J, null, N(e.value, (R) => (p(), B(j, {
2322
2344
  modelValue: R.showCol,
2323
2345
  "onUpdate:modelValue": (L) => R.showCol = L,
2324
2346
  "data-id": R.value,
2325
2347
  class: Bt(["check-box-hover", R.value == "control" ? "filtered" : ""]),
2326
- onChange: (L) => E(L, R.value),
2348
+ onChange: (L) => g(L, R.value),
2327
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" },
2328
2350
  value: R.value,
2329
2351
  title: R.label,
@@ -2334,7 +2356,7 @@ const or = {
2334
2356
  Q("span", {
2335
2357
  textContent: De(R.label),
2336
2358
  style: { display: "block", "text-overflow": "ellipsis", width: "95px", overflow: "hidden" }
2337
- }, null, 8, ur)
2359
+ }, null, 8, ua)
2338
2360
  ]),
2339
2361
  _: 2
2340
2362
  }, 1032, ["modelValue", "onUpdate:modelValue", "data-id", "class", "onChange", "value", "title", "disabled"]))), 128))
@@ -2343,7 +2365,7 @@ const or = {
2343
2365
  ]);
2344
2366
  };
2345
2367
  }
2346
- }, 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 = {
2347
2369
  __name: "g-cell-toopTip",
2348
2370
  props: {
2349
2371
  content: {
@@ -2355,118 +2377,118 @@ const or = {
2355
2377
  default: () => ({})
2356
2378
  }
2357
2379
  },
2358
- setup(a) {
2359
- const n = a, r = () => {
2380
+ setup(r) {
2381
+ const n = r, a = () => {
2360
2382
  n.content ? (navigator.clipboard.writeText(n.content), Ge.success("复制成功")) : Ge.warning("没有内容可复制");
2361
2383
  };
2362
2384
  return (t, e) => (p(), I("div", {
2363
2385
  class: "g-cell-toopTip",
2364
2386
  style: qe({ width: n.column.width + "px" })
2365
2387
  }, [
2366
- Q("div", dr, [
2388
+ Q("div", da, [
2367
2389
  e[0] || (e[0] = Q("span", { class: "title-text" }, "内容", -1)),
2368
2390
  Q("span", {
2369
2391
  class: "copy-btn",
2370
- onClick: r,
2392
+ onClick: a,
2371
2393
  title: "复制内容"
2372
2394
  }, [
2373
- K(P(pl))
2395
+ K(P(vl))
2374
2396
  ])
2375
2397
  ]),
2376
- Q("div", cr, De(n.content), 1)
2398
+ Q("div", ca, De(n.content), 1)
2377
2399
  ], 4));
2378
2400
  }
2379
- }, pr = /* @__PURE__ */ Ze(fr, [["__scopeId", "data-v-f28912da"]]);
2401
+ }, va = /* @__PURE__ */ Ze(fa, [["__scopeId", "data-v-f28912da"]]);
2380
2402
  var Pt = { exports: {} }, jt = { exports: {} };
2381
2403
  (function() {
2382
- var a = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", n = {
2404
+ var r = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", n = {
2383
2405
  // Bit-wise rotation left
2384
- rotl: function(r, t) {
2385
- return r << t | r >>> 32 - t;
2406
+ rotl: function(a, t) {
2407
+ return a << t | a >>> 32 - t;
2386
2408
  },
2387
2409
  // Bit-wise rotation right
2388
- rotr: function(r, t) {
2389
- return r << 32 - t | r >>> t;
2410
+ rotr: function(a, t) {
2411
+ return a << 32 - t | a >>> t;
2390
2412
  },
2391
2413
  // Swap big-endian to little-endian and vice versa
2392
- endian: function(r) {
2393
- if (r.constructor == Number)
2394
- return n.rotl(r, 8) & 16711935 | n.rotl(r, 24) & 4278255360;
2395
- for (var t = 0; t < r.length; t++)
2396
- r[t] = n.endian(r[t]);
2397
- 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;
2398
2420
  },
2399
2421
  // Generate an array of any length of random bytes
2400
- randomBytes: function(r) {
2401
- for (var t = []; r > 0; r--)
2422
+ randomBytes: function(a) {
2423
+ for (var t = []; a > 0; a--)
2402
2424
  t.push(Math.floor(Math.random() * 256));
2403
2425
  return t;
2404
2426
  },
2405
2427
  // Convert a byte array to big-endian 32-bit words
2406
- bytesToWords: function(r) {
2407
- for (var t = [], e = 0, o = 0; e < r.length; e++, o += 8)
2408
- 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;
2409
2431
  return t;
2410
2432
  },
2411
2433
  // Convert big-endian 32-bit words to a byte array
2412
- wordsToBytes: function(r) {
2413
- for (var t = [], e = 0; e < r.length * 32; e += 8)
2414
- 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);
2415
2437
  return t;
2416
2438
  },
2417
2439
  // Convert a byte array to a hex string
2418
- bytesToHex: function(r) {
2419
- for (var t = [], e = 0; e < r.length; e++)
2420
- 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));
2421
2443
  return t.join("");
2422
2444
  },
2423
2445
  // Convert a hex string to a byte array
2424
- hexToBytes: function(r) {
2425
- for (var t = [], e = 0; e < r.length; e += 2)
2426
- 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));
2427
2449
  return t;
2428
2450
  },
2429
2451
  // Convert a byte array to a base-64 string
2430
- bytesToBase64: function(r) {
2431
- for (var t = [], e = 0; e < r.length; e += 3)
2432
- for (var o = r[e] << 16 | r[e + 1] << 8 | r[e + 2], E = 0; E < 4; E++)
2433
- 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("=");
2434
2456
  return t.join("");
2435
2457
  },
2436
2458
  // Convert a base-64 string to a byte array
2437
- base64ToBytes: function(r) {
2438
- r = r.replace(/[^A-Z0-9+\/]/ig, "");
2439
- for (var t = [], e = 0, o = 0; e < r.length; o = ++e % 4)
2440
- 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);
2441
2463
  return t;
2442
2464
  }
2443
2465
  };
2444
2466
  jt.exports = n;
2445
2467
  })();
2446
- var vr = jt.exports, kt = {
2468
+ var pa = jt.exports, kt = {
2447
2469
  // UTF-8 encoding
2448
2470
  utf8: {
2449
2471
  // Convert a string to a byte array
2450
- stringToBytes: function(a) {
2451
- return kt.bin.stringToBytes(unescape(encodeURIComponent(a)));
2472
+ stringToBytes: function(r) {
2473
+ return kt.bin.stringToBytes(unescape(encodeURIComponent(r)));
2452
2474
  },
2453
2475
  // Convert a byte array to a string
2454
- bytesToString: function(a) {
2455
- return decodeURIComponent(escape(kt.bin.bytesToString(a)));
2476
+ bytesToString: function(r) {
2477
+ return decodeURIComponent(escape(kt.bin.bytesToString(r)));
2456
2478
  }
2457
2479
  },
2458
2480
  // Binary encoding
2459
2481
  bin: {
2460
2482
  // Convert a string to a byte array
2461
- stringToBytes: function(a) {
2462
- for (var n = [], r = 0; r < a.length; r++)
2463
- 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);
2464
2486
  return n;
2465
2487
  },
2466
2488
  // Convert a byte array to a string
2467
- bytesToString: function(a) {
2468
- for (var n = [], r = 0; r < a.length; r++)
2469
- 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]));
2470
2492
  return n.join("");
2471
2493
  }
2472
2494
  }
@@ -2477,54 +2499,54 @@ var vr = jt.exports, kt = {
2477
2499
  * @author Feross Aboukhadijeh <https://feross.org>
2478
2500
  * @license MIT
2479
2501
  */
2480
- var mr = function(a) {
2481
- return a != null && (Nt(a) || hr(a) || !!a._isBuffer);
2502
+ var ma = function(r) {
2503
+ return r != null && (Nt(r) || ha(r) || !!r._isBuffer);
2482
2504
  };
2483
- function Nt(a) {
2484
- 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);
2485
2507
  }
2486
- function hr(a) {
2487
- 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));
2488
2510
  }
2489
2511
  (function() {
2490
- var a = vr, n = xt.utf8, r = mr, t = xt.bin, e = function(o, E) {
2491
- 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());
2492
- 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; _++)
2493
2515
  v[_] = (v[_] << 8 | v[_] >>> 24) & 16711935 | (v[_] << 24 | v[_] >>> 8) & 4278255360;
2494
2516
  v[F >>> 5] |= 128 << F % 32, v[(F + 64 >>> 9 << 4) + 14] = F;
2495
2517
  for (var V = e._ff, j = e._gg, R = e._hh, L = e._ii, _ = 0; _ < v.length; _ += 16) {
2496
2518
  var te = f, me = i, ie = s, ce = c;
2497
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;
2498
2520
  }
2499
- return a.endian([f, i, s, c]);
2521
+ return r.endian([f, i, s, c]);
2500
2522
  };
2501
- e._ff = function(o, E, v, F, f, i, s) {
2502
- var c = o + (E & v | ~E & F) + (f >>> 0) + s;
2503
- return (c << i | c >>> 32 - i) + E;
2504
- }, e._gg = function(o, E, v, F, f, i, s) {
2505
- var c = o + (E & F | v & ~F) + (f >>> 0) + s;
2506
- return (c << i | c >>> 32 - i) + E;
2507
- }, e._hh = function(o, E, v, F, f, i, s) {
2508
- var c = o + (E ^ v ^ F) + (f >>> 0) + s;
2509
- return (c << i | c >>> 32 - i) + E;
2510
- }, e._ii = function(o, E, v, F, f, i, s) {
2511
- var c = o + (v ^ (E | ~F)) + (f >>> 0) + s;
2512
- return (c << i | c >>> 32 - i) + E;
2513
- }, 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) {
2514
2536
  if (o == null)
2515
2537
  throw new Error("Illegal argument " + o);
2516
- var v = a.wordsToBytes(e(o, E));
2517
- 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);
2518
2540
  };
2519
2541
  })();
2520
- var yr = Pt.exports;
2521
- 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 = {
2522
2544
  style: { display: "flex", "justify-content": "center", width: "100%", height: "100%" },
2523
2545
  id: "table-form"
2524
- }, _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 = {
2525
2547
  key: 0,
2526
2548
  class: "table-query-container"
2527
- }, Mr = { class: "table-container" }, Tr = ["innerHTML"], Fr = /* @__PURE__ */ Object.assign({
2549
+ }, Ma = { class: "table-container" }, Ta = ["innerHTML"], Fa = /* @__PURE__ */ Object.assign({
2528
2550
  name: "g-table",
2529
2551
  inheritAttrs: !1
2530
2552
  }, {
@@ -2542,10 +2564,10 @@ const gr = /* @__PURE__ */ Lt(yr), br = { key: 0 }, $r = { style: { display: "fl
2542
2564
  "download",
2543
2565
  "row-save"
2544
2566
  ], ["update:modelValue"]),
2545
- setup(a, { expose: n, emit: r }) {
2546
- var Ye, st, it, dt, ct, ft, pt;
2547
- 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]);
2548
- E.value = Object.fromEntries(f);
2567
+ setup(r, { expose: n, emit: a }) {
2568
+ var Ye, st, it, dt, ct, ft, vt;
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);
2549
2571
  const i = oe(!1), s = [
2550
2572
  "type",
2551
2573
  "index",
@@ -2584,23 +2606,23 @@ const gr = /* @__PURE__ */ Lt(yr), br = { key: 0 }, $r = { style: { display: "fl
2584
2606
  fit: !1,
2585
2607
  type: "hidden",
2586
2608
  load: async () => {
2587
- e.value.table.page.pageSize = await lr(te.value);
2609
+ e.value.table.page.pageSize = await la(te.value);
2588
2610
  let { currentPage: l, pageSize: d } = e.value.table.page;
2589
2611
  try {
2590
2612
  t(
2591
2613
  "load",
2592
- { currentPage: l, pageSize: d, ...E.value },
2593
- (m = [], b = 0, { fields: A = [], sums: Y = {} } = {}) => {
2614
+ { currentPage: l, pageSize: d, ...g.value },
2615
+ (m = [], $ = 0, { fields: A = [], sums: Y = {} } = {}) => {
2594
2616
  var W;
2595
2617
  if (!Array.isArray(m)) {
2596
2618
  console.error("从 load 事件回调中接收到的数据不是数组格式。"), Ge.error("数据加载失败,请检查数据格式。");
2597
2619
  return;
2598
2620
  }
2599
- if (typeof b != "number") {
2621
+ if (typeof $ != "number") {
2600
2622
  console.error("从 load 事件回调中接收到的 total 不是数字格式。"), Ge.error("数据加载失败,请检查数据格式。");
2601
2623
  return;
2602
2624
  }
2603
- 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);
2604
2626
  },
2605
2627
  R.value
2606
2628
  );
@@ -2612,7 +2634,7 @@ const gr = /* @__PURE__ */ Lt(yr), br = { key: 0 }, $r = { style: { display: "fl
2612
2634
  Zl(te.value, m.property, l);
2613
2635
  },
2614
2636
  onRowDblclick: (l, d, m) => {
2615
- 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);
2616
2638
  },
2617
2639
  style: { "min-height": "100px", backgroundColor: "var(--el-bg-color)" },
2618
2640
  page: {
@@ -2632,14 +2654,14 @@ const gr = /* @__PURE__ */ Lt(yr), br = { key: 0 }, $r = { style: { display: "fl
2632
2654
  e.value.table.page.currentPage = l, e.value.table.load();
2633
2655
  },
2634
2656
  onSizeChange: (l) => {
2635
- tr({ page: te.value, size: l }).then(() => {
2657
+ ta({ page: te.value, size: l }).then(() => {
2636
2658
  e.value.table.page.pageSize = l, e.value.table.load();
2637
2659
  });
2638
2660
  }
2639
2661
  },
2640
2662
  dblclickType: "edit",
2641
2663
  "summary-method": ({ columns: l, data: d }, m) => m,
2642
- onSortChange: ({ column: l, prop: d, order: m }, b) => {
2664
+ onSortChange: ({ column: l, prop: d, order: m }, $) => {
2643
2665
  }
2644
2666
  });
2645
2667
  e.value.table = Ve(
@@ -2658,18 +2680,18 @@ const gr = /* @__PURE__ */ Lt(yr), br = { key: 0 }, $r = { style: { display: "fl
2658
2680
  fixed: "right",
2659
2681
  style: { ...(st = (Ye = e.value) == null ? void 0 : Ye.control) == null ? void 0 : st.style },
2660
2682
  validate: async (l) => await !0,
2661
- view: (l, d, m, b) => ({
2683
+ view: (l, d, m, $) => ({
2662
2684
  label: "查看",
2663
2685
  text: !0,
2664
2686
  type: "success",
2665
2687
  mode: "dialog",
2666
- icon: () => ke(vl),
2688
+ icon: () => ke(pl),
2667
2689
  auth: () => {
2668
2690
  var A;
2669
- 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);
2670
2692
  }
2671
2693
  }),
2672
- edit: (l, d, m, b) => ({
2694
+ edit: (l, d, m, $) => ({
2673
2695
  label: "编辑",
2674
2696
  text: !0,
2675
2697
  type: "primary",
@@ -2677,17 +2699,17 @@ const gr = /* @__PURE__ */ Lt(yr), br = { key: 0 }, $r = { style: { display: "fl
2677
2699
  icon: () => ke(ml),
2678
2700
  auth: () => {
2679
2701
  var A;
2680
- 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;
2681
2703
  }
2682
2704
  }),
2683
- delete: (l, d, m, b) => ({
2705
+ delete: (l, d, m, $) => ({
2684
2706
  text: !0,
2685
2707
  label: "删除",
2686
2708
  type: "danger",
2687
2709
  icon: () => ke(Ut),
2688
2710
  auth: () => {
2689
2711
  var A;
2690
- 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);
2691
2713
  },
2692
2714
  dialog: {
2693
2715
  message: "此操作将永久删除该文件, 是否继续?",
@@ -2699,15 +2721,15 @@ const gr = /* @__PURE__ */ Lt(yr), br = { key: 0 }, $r = { style: { display: "fl
2699
2721
  }
2700
2722
  }
2701
2723
  }),
2702
- save: (l, d, m, b) => ({
2703
- label: b.control.add(b).inline !== !0 ? "保存" : m === 0 ? "新增" : "保存",
2724
+ save: (l, d, m, $) => ({
2725
+ label: $.control.add($).inline !== !0 ? "保存" : m === 0 ? "新增" : "保存",
2704
2726
  text: !0,
2705
2727
  icon: () => ke(Ot),
2706
- type: b.control.add(b).inline !== !0 || m === 0 ? "primary" : "success",
2728
+ type: $.control.add($).inline !== !0 || m === 0 ? "primary" : "success",
2707
2729
  sort: -1,
2708
2730
  auth: () => {
2709
2731
  var A;
2710
- return ((A = b.control) == null ? void 0 : A.add(b).inline) === !0;
2732
+ return ((A = $.control) == null ? void 0 : A.add($).inline) === !0;
2711
2733
  }
2712
2734
  }),
2713
2735
  add: (l) => ({
@@ -2736,17 +2758,17 @@ const gr = /* @__PURE__ */ Lt(yr), br = { key: 0 }, $r = { style: { display: "fl
2736
2758
  icon: () => ke(yl),
2737
2759
  auth: () => !0
2738
2760
  }),
2739
- dropdown: (l, d, m, b) => ({
2761
+ dropdown: (l, d, m, $) => ({
2740
2762
  label: "编辑",
2741
2763
  operate: "edit",
2742
2764
  "split-button": !0,
2743
2765
  type: "primary",
2744
2766
  size: "small",
2745
- auth: () => !(b.control.add(b).inline === !0 && m == 0),
2767
+ auth: () => !($.control.add($).inline === !0 && m == 0),
2746
2768
  onClick: () => {
2747
2769
  var Y;
2748
- let A = (Y = de(l, d, m, b)) == null ? void 0 : Y.operate;
2749
- 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, $);
2750
2772
  },
2751
2773
  "button-props": { round: !0, plain: !0 }
2752
2774
  })
@@ -2757,7 +2779,7 @@ const gr = /* @__PURE__ */ Lt(yr), br = { key: 0 }, $r = { style: { display: "fl
2757
2779
  (it = e.value) == null ? void 0 : it.control
2758
2780
  );
2759
2781
  const ce = (l, d = !0) => {
2760
- const m = e.value.control[l], b = d ? (A, Y, W, fe) => {
2782
+ const m = e.value.control[l], $ = d ? (A, Y, W, fe) => {
2761
2783
  var Le, He, et;
2762
2784
  if (!A || !Y || W == null)
2763
2785
  return console.warn(`merge${l.charAt(0).toUpperCase() + l.slice(1)}: 缺少必要的参数(row, column或index)`), {};
@@ -2768,21 +2790,21 @@ const gr = /* @__PURE__ */ Lt(yr), br = { key: 0 }, $r = { style: { display: "fl
2768
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)) || {};
2769
2791
  return Ve(Y, W, fe) || {};
2770
2792
  };
2771
- e.value.control[l] = b;
2793
+ e.value.control[l] = $;
2772
2794
  };
2773
2795
  ce("edit"), ce("delete"), ce("view"), ce("save"), ce("add", !1), ce("download", !1), ce("setting", !1);
2774
- const de = (l, d, m, b) => {
2796
+ const de = (l, d, m, $) => {
2775
2797
  var fe, _e, Fe, Re, Le, He;
2776
2798
  if (!l || !d || m == null)
2777
2799
  return console.warn("mergeDropdown: 缺少必要的参数(row, column或index)"), {};
2778
- 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, $)) || {};
2779
2801
  return Ve(A, Y, W) || {};
2780
2802
  }, Ce = {
2781
2803
  type: "hidden",
2782
2804
  "min-width": 100,
2783
2805
  align: "center",
2784
- formatter: (l, d, m, b) => m,
2785
- "tooltip-formatter": ({ row: l, column: d, cellValue: m }) => ke(pr, { 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 })
2786
2808
  };
2787
2809
  e.value.tableColumns = Ve(
2788
2810
  Ce,
@@ -2829,7 +2851,7 @@ const gr = /* @__PURE__ */ Lt(yr), br = { key: 0 }, $r = { style: { display: "fl
2829
2851
  e.value.dialog = Ve(
2830
2852
  le,
2831
2853
  o == null ? void 0 : o.dialog,
2832
- (pt = e.value) == null ? void 0 : pt.dialog
2854
+ (vt = e.value) == null ? void 0 : vt.dialog
2833
2855
  );
2834
2856
  const ne = (l, d) => {
2835
2857
  let m = d;
@@ -2845,51 +2867,51 @@ const gr = /* @__PURE__ */ Lt(yr), br = { key: 0 }, $r = { style: { display: "fl
2845
2867
  }
2846
2868
  return l.type === "money" && (l.align = l.align || "right", l.width = l.width || 130, m = `<span title="${St(
2847
2869
  parseFloat(m)
2848
- )}">${jr(parseFloat(m))}</span>`), l.prefix && m && (m = `<span>${l.prefix}${m}</span>`), l.suffix && m && (m = `${m}<span>${l.suffix}</span>`), m;
2849
- }, re = (l) => {
2850
- 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();
2851
2873
  }, Oe = (l) => {
2852
- E.value = l, e.value.table.load();
2874
+ g.value = l, e.value.table.load();
2853
2875
  }, T = async (l) => {
2854
2876
  var d, m;
2855
2877
  e.value.form.modalState = "add";
2856
2878
  try {
2857
2879
  if (!await ((d = e.value.control) == null ? void 0 : d.validate("add", { m: l }))) return;
2858
- } catch (b) {
2859
- console.error("验证失败:", b);
2880
+ } catch ($) {
2881
+ console.error("验证失败:", $);
2860
2882
  return;
2861
2883
  }
2862
- (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) => {
2863
- 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[$]);
2864
2886
  }), i.value = !0, t("open", "add", { m: l }), gt());
2865
- }, $ = async (l, d, m, b) => {
2887
+ }, w = async (l, d, m, $) => {
2866
2888
  var A, Y;
2867
2889
  e.value.form.modalState = "edit";
2868
2890
  try {
2869
- 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;
2870
2892
  } catch (W) {
2871
2893
  console.error("验证失败:", W);
2872
2894
  return;
2873
2895
  }
2874
- (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) => {
2875
2897
  e.value[W] && (e.value[W].value = l[W]);
2876
- }), i.value = !0, t("open", "edit", { m: b, row: l, column: d, index: m }), gt());
2877
- }, 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, $) => {
2878
2900
  var A, Y;
2879
2901
  try {
2880
- 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;
2881
2903
  } catch (W) {
2882
2904
  console.error("验证失败:", W);
2883
2905
  return;
2884
2906
  }
2885
- if ((Y = e.value.control.delete(l, d, m, b)) != null && Y.click)
2886
- 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, $);
2887
2909
  else {
2888
- 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;
2889
2911
  qt.confirm(W, fe, _e).then(() => {
2890
2912
  t(
2891
2913
  "delete",
2892
- { row: l, column: d, index: m, m: b },
2914
+ { row: l, column: d, index: m, m: $ },
2893
2915
  (Fe = !0, Re = !1) => {
2894
2916
  Fe && (e.value.table.data.splice(m, 1), e.value.table.page.total--), Re && e.value.table.load();
2895
2917
  }
@@ -2897,25 +2919,25 @@ const gr = /* @__PURE__ */ Lt(yr), br = { key: 0 }, $r = { style: { display: "fl
2897
2919
  }).catch(() => {
2898
2920
  });
2899
2921
  }
2900
- }, u = async (l, d, m, b) => {
2922
+ }, u = async (l, d, m, $) => {
2901
2923
  var A, Y;
2902
2924
  e.value.form.modalState = void 0;
2903
2925
  try {
2904
- 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;
2905
2927
  } catch (W) {
2906
2928
  console.error("验证失败:", W);
2907
2929
  return;
2908
2930
  }
2909
- (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) => {
2910
2932
  e.value[W] && (e.value[W].value = l[W]);
2911
- }), i.value = !0, t("open", "view", { m: b, row: l, column: d, index: m }), gt());
2912
- }, 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, $) => {
2913
2935
  var A;
2914
- (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(
2915
2937
  "row-save",
2916
2938
  { row: l, column: d, index: m, data: e.value.table.data },
2917
2939
  (Y = !0, W = !0) => {
2918
- Y && e.value.table.load(), W && at(() => {
2940
+ Y && e.value.table.load(), W && rt(() => {
2919
2941
  R.value = Object.assign(
2920
2942
  {},
2921
2943
  Object.fromEntries(
@@ -2938,7 +2960,7 @@ const gr = /* @__PURE__ */ Lt(yr), br = { key: 0 }, $r = { style: { display: "fl
2938
2960
  if ((m = l.control.download(l)) != null && m.click)
2939
2961
  l.control.download(l).click(l, d);
2940
2962
  else {
2941
- let b = Dt(
2963
+ let $ = Dt(
2942
2964
  {
2943
2965
  title: l.control.download(l).title || l.control.download(l).label || "下载",
2944
2966
  size: l.control.download(l).size || 480,
@@ -2948,7 +2970,7 @@ const gr = /* @__PURE__ */ Lt(yr), br = { key: 0 }, $r = { style: { display: "fl
2948
2970
  items: d,
2949
2971
  commitText: l.control.download(l).excelLabel,
2950
2972
  onExcel: (A, Y) => {
2951
- t("download", A, E.value, Y), b();
2973
+ t("download", A, g.value, Y), $();
2952
2974
  }
2953
2975
  })
2954
2976
  }
@@ -2964,7 +2986,7 @@ const gr = /* @__PURE__ */ Lt(yr), br = { key: 0 }, $r = { style: { display: "fl
2964
2986
  size: l.control.setting(l).size || 470,
2965
2987
  width: l.control.setting(l).width || 600,
2966
2988
  slots: {
2967
- default: () => ke(ir, {
2989
+ default: () => ke(ia, {
2968
2990
  modelValue: l,
2969
2991
  tuid: te.value,
2970
2992
  onSettingDragEnd: async () => {
@@ -2978,34 +3000,34 @@ const gr = /* @__PURE__ */ Lt(yr), br = { key: 0 }, $r = { style: { display: "fl
2978
3000
  },
2979
3001
  l.control.setting(l).mode
2980
3002
  );
2981
- }, G = e.value.control, ve = [
3003
+ }, G = e.value.control, pe = [
2982
3004
  { type: "add", func: T },
2983
3005
  { type: "download", func: U },
2984
3006
  { type: "setting", func: Z },
2985
3007
  { type: "view", func: u },
2986
- { type: "edit", func: $ },
2987
- { type: "delete", func: g },
3008
+ { type: "edit", func: w },
3009
+ { type: "delete", func: b },
2988
3010
  { type: "save", func: q }
2989
- ], w = (l, d, m, b, A) => ve.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 }) => {
2990
3012
  var fe, _e, Fe;
2991
3013
  return {
2992
3014
  name: `control-${Y}`,
2993
- attr: G == null ? void 0 : G[Y](d, m, b, A),
3015
+ attr: G == null ? void 0 : G[Y](d, m, $, A),
2994
3016
  func: W,
2995
- label: (fe = G == null ? void 0 : G[Y](d, m, b, A)) == null ? void 0 : fe.label,
2996
- sort: ((_e = G == null ? void 0 : G[Y](d, m, b, A)) == null ? void 0 : _e.sort) || 0,
2997
- 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"
2998
3020
  };
2999
- }).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) => {
3000
3022
  const fe = W.groupName || "default";
3001
3023
  return Y[fe] || (Y[fe] = []), Y[fe].push(W), Y;
3002
- }, {}), ae = Je(
3024
+ }, {}), re = Je(
3003
3025
  () => Object.fromEntries(
3004
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)
3005
3027
  )
3006
3028
  ), he = oe({}), be = (l, d) => {
3007
- const m = (b, A) => {
3008
- for (const Y of b) {
3029
+ const m = ($, A) => {
3030
+ for (const Y of $) {
3009
3031
  if (Y.value == A) return Y.label;
3010
3032
  if (Y.children) {
3011
3033
  const W = m(Y.children, A);
@@ -3015,9 +3037,9 @@ const gr = /* @__PURE__ */ Lt(yr), br = { key: 0 }, $r = { style: { display: "fl
3015
3037
  return null;
3016
3038
  };
3017
3039
  if (l.getDicts) {
3018
- const b = d.toString();
3019
- 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) => {
3020
- 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);
3021
3043
  });
3022
3044
  }
3023
3045
  return Promise.resolve();
@@ -3026,24 +3048,24 @@ const gr = /* @__PURE__ */ Lt(yr), br = { key: 0 }, $r = { style: { display: "fl
3026
3048
  Object.keys(e.value).forEach((d) => {
3027
3049
  if (e.value[d].getDicts) {
3028
3050
  const m = be(e.value[d], d).then(() => {
3029
- e.value.table.data.forEach((b) => {
3051
+ e.value.table.data.forEach(($) => {
3030
3052
  var A;
3031
3053
  if (e.value[d].getDicts && ((A = e.value[d]) == null ? void 0 : A.forceString) !== !1) {
3032
- const Y = b[d];
3033
- b[d] = Y != null ? Y.toString() : Y;
3054
+ const Y = $[d];
3055
+ $[d] = Y != null ? Y.toString() : Y;
3034
3056
  }
3035
3057
  });
3036
- }).catch((b) => {
3037
- console.error(`加载字典${d}出错:`, b);
3058
+ }).catch(($) => {
3059
+ console.error(`加载字典${d}出错:`, $);
3038
3060
  });
3039
3061
  l.push(m);
3040
3062
  }
3041
3063
  }), Promise.all(l).catch((d) => {
3042
3064
  console.error("字典加载过程中发生错误:", d);
3043
3065
  });
3044
- }, we = (l, d, m, b) => {
3066
+ }, we = (l, d, m, $) => {
3045
3067
  var A, Y;
3046
- 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;
3047
3069
  }, Ee = () => {
3048
3070
  if (e.value.dialog.mode == "drawer")
3049
3071
  F.value.handleClose();
@@ -3063,25 +3085,25 @@ const gr = /* @__PURE__ */ Lt(yr), br = { key: 0 }, $r = { style: { display: "fl
3063
3085
  try {
3064
3086
  const [l, d, m] = await Promise.all([
3065
3087
  Jl(te.value),
3066
- ar(te.value),
3088
+ ra(te.value),
3067
3089
  Kl(te.value)
3068
3090
  ]);
3069
- l && Array.isArray(l) && l.forEach((b) => {
3070
- const A = e.value[b.key];
3071
- A && (A.width = b.width);
3072
- }), d && Array.isArray(d) && d.forEach((b, A) => {
3073
- 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[$];
3074
3096
  Y && (Y.sort = A);
3075
- }), m && Array.isArray(m) && m.length > 0 ? m.forEach((b) => {
3076
- const A = e.value[b];
3097
+ }), m && Array.isArray(m) && m.length > 0 ? m.forEach(($) => {
3098
+ const A = e.value[$];
3077
3099
  A && (A.showCol = !1);
3078
- }) : Object.keys(e.value).filter((b) => e.value[b].type !== "control").forEach((b) => {
3079
- e.value[b].showCol = !0;
3100
+ }) : Object.keys(e.value).filter(($) => e.value[$].type !== "control").forEach(($) => {
3101
+ e.value[$].showCol = !0;
3080
3102
  });
3081
3103
  } catch (l) {
3082
3104
  console.error("加载表格信息时出错:", l);
3083
3105
  }
3084
- }, xe = () => gr(Object.keys(e.value).toString()).toUpperCase().substring(8, 24);
3106
+ }, xe = () => ga(Object.keys(e.value).toString()).toUpperCase().substring(8, 24);
3085
3107
  return nl(() => {
3086
3108
  te.value = xe();
3087
3109
  }), ut(async () => {
@@ -3093,7 +3115,7 @@ const gr = /* @__PURE__ */ Lt(yr), br = { key: 0 }, $r = { style: { display: "fl
3093
3115
  value: !0
3094
3116
  }));
3095
3117
  try {
3096
- await at();
3118
+ await rt();
3097
3119
  const l = Object.entries(e.value).filter(
3098
3120
  ([d, m]) => m.type !== "control" && m.editor !== !1 && m.type !== "hidden"
3099
3121
  );
@@ -3104,12 +3126,12 @@ const gr = /* @__PURE__ */ Lt(yr), br = { key: 0 }, $r = { style: { display: "fl
3104
3126
  console.error("Error during component initialization:", l);
3105
3127
  }
3106
3128
  e.value.table.autoWatch || e.value.table.load();
3107
- }), 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) => {
3108
3130
  var He, et, ot, tt, nt;
3109
- 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");
3110
3132
  return p(), I(J, null, [
3111
- e.value.dialog.mode == "dialog" && i.value ? (p(), I("div", br, [
3112
- K(b, O(
3133
+ e.value.dialog.mode == "dialog" && i.value ? (p(), I("div", ba, [
3134
+ K($, O(
3113
3135
  {
3114
3136
  ref_key: "dialogRef",
3115
3137
  ref: v,
@@ -3126,8 +3148,8 @@ const gr = /* @__PURE__ */ Lt(yr), br = { key: 0 }, $r = { style: { display: "fl
3126
3148
  header: D(() => {
3127
3149
  var z, se, x, X, ee, je, Ne, ze, Pe, h;
3128
3150
  return [
3129
- Q("div", $r, [
3130
- Q("div", wr, [
3151
+ Q("div", $a, [
3152
+ Q("div", wa, [
3131
3153
  M(l.$slots, "f-header", {}, () => [
3132
3154
  Q("div", null, De(e.value.dialog.title), 1)
3133
3155
  ], !0)
@@ -3168,7 +3190,7 @@ const gr = /* @__PURE__ */ Lt(yr), br = { key: 0 }, $r = { style: { display: "fl
3168
3190
  ];
3169
3191
  }),
3170
3192
  default: D(() => [
3171
- Q("div", Er, [
3193
+ Q("div", Ea, [
3172
3194
  M(l.$slots, "table-dialog-form", { model: e.value }, () => [
3173
3195
  K(_t, {
3174
3196
  modelValue: e.value,
@@ -3189,7 +3211,7 @@ const gr = /* @__PURE__ */ Lt(yr), br = { key: 0 }, $r = { style: { display: "fl
3189
3211
  _: 3
3190
3212
  }, 16, ["modelValue", "fullscreen", "width"])
3191
3213
  ])) : ge("", !0),
3192
- e.value.dialog.mode == "drawer" && i.value ? (p(), I("div", _r, [
3214
+ e.value.dialog.mode == "drawer" && i.value ? (p(), I("div", _a, [
3193
3215
  K(A, O({
3194
3216
  ref_key: "drawerRef",
3195
3217
  ref: F,
@@ -3197,8 +3219,8 @@ const gr = /* @__PURE__ */ Lt(yr), br = { key: 0 }, $r = { style: { display: "fl
3197
3219
  "onUpdate:modelValue": d[5] || (d[5] = (z) => i.value = z)
3198
3220
  }, P(Ue)(e.value.dialog, (z) => !["width"].includes(z))), {
3199
3221
  header: D(() => [
3200
- Q("div", kr, [
3201
- Q("div", Cr, [
3222
+ Q("div", ka, [
3223
+ Q("div", Ca, [
3202
3224
  M(l.$slots, "f-header", {}, () => [
3203
3225
  Q("div", null, De(e.value.dialog.title), 1)
3204
3226
  ], !0)
@@ -3225,16 +3247,16 @@ const gr = /* @__PURE__ */ Lt(yr), br = { key: 0 }, $r = { style: { display: "fl
3225
3247
  _: 3
3226
3248
  }, 16, ["modelValue"])
3227
3249
  ])) : ge("", !0),
3228
- Q("div", Dr, [
3229
- ((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, [
3230
3252
  M(l.$slots, "query", {}, () => [
3231
3253
  K(Rl, {
3232
3254
  modelValue: e.value,
3233
3255
  "onUpdate:modelValue": d[6] || (d[6] = (z) => e.value = z),
3234
- info: E.value,
3235
- "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),
3236
3258
  onQuery: Oe,
3237
- onReset: re
3259
+ onReset: ae
3238
3260
  }, ye({
3239
3261
  "q-btns": D(() => [
3240
3262
  M(l.$slots, "q-btns", {}, () => [
@@ -3305,7 +3327,7 @@ const gr = /* @__PURE__ */ Lt(yr), br = { key: 0 }, $r = { style: { display: "fl
3305
3327
  ]), 1032, ["modelValue", "info"])
3306
3328
  ], !0)
3307
3329
  ])) : ge("", !0),
3308
- Q("div", Mr, [
3330
+ Q("div", Ma, [
3309
3331
  K(Re, O({
3310
3332
  ...l.$attrs,
3311
3333
  ...P(Ue)(
@@ -3316,7 +3338,7 @@ const gr = /* @__PURE__ */ Lt(yr), br = { key: 0 }, $r = { style: { display: "fl
3316
3338
  "summary-method": (z) => e.value.table["summary-method"](z, { fields: j.value, sums: V.value }),
3317
3339
  onSortChange: d[8] || (d[8] = (z) => {
3318
3340
  var se, x;
3319
- 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());
3320
3342
  })
3321
3343
  }), {
3322
3344
  append: D(() => [
@@ -3327,7 +3349,7 @@ const gr = /* @__PURE__ */ Lt(yr), br = { key: 0 }, $r = { style: { display: "fl
3327
3349
  ]),
3328
3350
  default: D(() => [
3329
3351
  M(l.$slots, "default", {}, () => [
3330
- (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({
3331
3353
  prop: se,
3332
3354
  key: se,
3333
3355
  ref_for: !0
@@ -3452,7 +3474,7 @@ const gr = /* @__PURE__ */ Lt(yr), br = { key: 0 }, $r = { style: { display: "fl
3452
3474
  title: S.label,
3453
3475
  ref_for: !0
3454
3476
  }, S.attr, {
3455
- onClick: (rt) => S.func(x, X, ee, e.value)
3477
+ onClick: (at) => S.func(x, X, ee, e.value)
3456
3478
  }), {
3457
3479
  default: D(() => [
3458
3480
  Ie(De(S.label), 1)
@@ -3463,7 +3485,7 @@ const gr = /* @__PURE__ */ Lt(yr), br = { key: 0 }, $r = { style: { display: "fl
3463
3485
  title: S.label,
3464
3486
  ref_for: !0
3465
3487
  }, S.attr, {
3466
- onClick: (rt) => S.func(x, X, ee, e.value)
3488
+ onClick: (at) => S.func(x, X, ee, e.value)
3467
3489
  }), null, 16, ["title", "onClick"]))
3468
3490
  ], !0)
3469
3491
  ]),
@@ -3589,7 +3611,7 @@ const gr = /* @__PURE__ */ Lt(yr), br = { key: 0 }, $r = { style: { display: "fl
3589
3611
  z,
3590
3612
  X.formatter(x, X, x[se], ee)
3591
3613
  )
3592
- }, null, 12, Tr)
3614
+ }, null, 12, Ta)
3593
3615
  ], !0)
3594
3616
  ]),
3595
3617
  key: "2"
@@ -3617,7 +3639,7 @@ const gr = /* @__PURE__ */ Lt(yr), br = { key: 0 }, $r = { style: { display: "fl
3617
3639
  ], 64);
3618
3640
  };
3619
3641
  }
3620
- }), 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-de570478"]]), Va = { class: "g-tree-table" }, qa = { class: "g-tree-container" }, Aa = { class: "g-tree-table-container" }, Ba = /* @__PURE__ */ Object.assign({
3621
3643
  name: "g-tree-table",
3622
3644
  inheritAttrs: !1
3623
3645
  }, {
@@ -3627,17 +3649,17 @@ const gr = /* @__PURE__ */ Lt(yr), br = { key: 0 }, $r = { style: { display: "fl
3627
3649
  modelModifiers: {}
3628
3650
  },
3629
3651
  emits: /* @__PURE__ */ Xe(["load"], ["update:modelValue"]),
3630
- setup(a, { emit: n }) {
3652
+ setup(r, { emit: n }) {
3631
3653
  var _, V, j, R;
3632
- const r = n, t = Qe(a, "modelValue"), e = Tt(), o = oe(
3654
+ const a = n, t = Qe(r, "modelValue"), e = Tt(), o = oe(
3633
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"
3634
- ), 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) => {
3635
3657
  var ie, ce;
3636
3658
  if (!L) return !0;
3637
3659
  const me = ((ce = (ie = e.tree) == null ? void 0 : ie.props) == null ? void 0 : ce.label) || "label";
3638
3660
  return te[me].includes(L);
3639
3661
  }, s = (L, te) => {
3640
- r("load", v.value, L, te);
3662
+ a("load", v.value, L, te);
3641
3663
  }, c = (L) => {
3642
3664
  v.value = L, t.value.table.load();
3643
3665
  };
@@ -3645,12 +3667,12 @@ const gr = /* @__PURE__ */ Lt(yr), br = { key: 0 }, $r = { style: { display: "fl
3645
3667
  f.value.filter(L);
3646
3668
  }), (L, te) => {
3647
3669
  const me = H("el-input"), ie = H("el-tree"), ce = H("g-table");
3648
- return p(), I("div", Vr, [
3670
+ return p(), I("div", Va, [
3649
3671
  Q("div", {
3650
3672
  class: "g-tree-left",
3651
3673
  style: qe({ width: o.value })
3652
3674
  }, [
3653
- E.value ? (p(), B(me, {
3675
+ g.value ? (p(), B(me, {
3654
3676
  key: 0,
3655
3677
  modelValue: F.value,
3656
3678
  "onUpdate:modelValue": te[0] || (te[0] = (de) => F.value = de),
@@ -3658,7 +3680,7 @@ const gr = /* @__PURE__ */ Lt(yr), br = { key: 0 }, $r = { style: { display: "fl
3658
3680
  placeholder: "输入节点查询",
3659
3681
  clearable: ""
3660
3682
  }, null, 8, ["modelValue"])) : ge("", !0),
3661
- Q("div", qr, [
3683
+ Q("div", qa, [
3662
3684
  K(ie, O({
3663
3685
  style: { width: o.value },
3664
3686
  "filter-node-method": i,
@@ -3686,7 +3708,7 @@ const gr = /* @__PURE__ */ Lt(yr), br = { key: 0 }, $r = { style: { display: "fl
3686
3708
  ]), 1040, ["style"])
3687
3709
  ])
3688
3710
  ], 4),
3689
- Q("div", Ar, [
3711
+ Q("div", Aa, [
3690
3712
  K(ce, O({
3691
3713
  modelValue: t.value,
3692
3714
  "onUpdate:modelValue": te[1] || (te[1] = (de) => t.value = de)
@@ -3702,14 +3724,14 @@ const gr = /* @__PURE__ */ Lt(yr), br = { key: 0 }, $r = { style: { display: "fl
3702
3724
  ]);
3703
3725
  };
3704
3726
  }
3705
- }), Or = /* @__PURE__ */ Ze(Br, [["__scopeId", "data-v-c888e4fc"]]), Ir = {
3727
+ }), Oa = /* @__PURE__ */ Ze(Ba, [["__scopeId", "data-v-c888e4fc"]]), Ia = {
3706
3728
  key: 0,
3707
3729
  class: "op-group"
3708
- }, Ur = {
3730
+ }, Ua = {
3709
3731
  key: 1,
3710
3732
  class: "op-items",
3711
3733
  style: { width: "100%", height: "100%" }
3712
- }, 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" }, {
3713
3735
  __name: "g-select-option",
3714
3736
  props: {
3715
3737
  columns: {
@@ -3729,51 +3751,51 @@ const gr = /* @__PURE__ */ Lt(yr), br = { key: 0 }, $r = { style: { display: "fl
3729
3751
  default: ""
3730
3752
  }
3731
3753
  },
3732
- setup(a) {
3733
- const n = a;
3734
- 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, [
3735
3757
  (p(!0), I(J, null, N(n.columns, (e) => (p(), I("span", {
3736
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" }),
3737
3759
  key: e.key
3738
3760
  }, [
3739
- M(r.$slots, `${a.t}-title-${e.key}`, { col: e }, () => [
3761
+ M(a.$slots, `${r.t}-title-${e.key}`, { col: e }, () => [
3740
3762
  Ie(De(e.label), 1)
3741
3763
  ], !0)
3742
3764
  ], 4))), 128))
3743
- ])) : (p(), I("div", Ur, [
3765
+ ])) : (p(), I("div", Ua, [
3744
3766
  (p(!0), I(J, null, N(n.columns, (e) => (p(), I("span", {
3745
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 }),
3746
3768
  key: e.key,
3747
- title: a.data[e.key]
3769
+ title: r.data[e.key]
3748
3770
  }, [
3749
- M(r.$slots, `${a.t}-option-${e.key}`, { col: e }, () => [
3750
- 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)
3751
3773
  ], !0)
3752
- ], 12, Yr))), 128))
3774
+ ], 12, Ya))), 128))
3753
3775
  ]));
3754
3776
  }
3755
- }), 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];
3756
3778
  let Ct = {};
3757
- const ea = {
3758
- install: (a, n = {}) => {
3759
- Ct = Object.freeze({ ...Hr, ...n }), Wt.forEach((r) => {
3760
- a.component(r.name, r);
3761
- }), 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;
3762
3784
  }
3763
- }, 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") => {
3764
3786
  if (typeof document > "u") return () => {
3765
3787
  };
3766
- const r = document.createElement("div");
3788
+ const a = document.createElement("div");
3767
3789
  let t = () => {
3768
3790
  };
3769
- const e = zr(n);
3791
+ const e = za(n);
3770
3792
  if (!e) return () => {
3771
3793
  };
3772
- const o = oe(!0), E = sl({
3794
+ const o = oe(!0), g = sl({
3773
3795
  setup() {
3774
3796
  return t = () => {
3775
3797
  o.value = !1, setTimeout(() => {
3776
- E.unmount(), r.remove();
3798
+ g.unmount(), a.remove();
3777
3799
  }, 300);
3778
3800
  }, () => {
3779
3801
  var v, F, f;
@@ -3786,11 +3808,11 @@ const ea = {
3786
3808
  overflow: !0,
3787
3809
  destroyOnClose: !0,
3788
3810
  "close-on-click-modal": !1,
3789
- ...a
3811
+ ...r
3790
3812
  }, {
3791
- default: (v = a.slots) == null ? void 0 : v.default,
3792
- header: (F = a.slots) == null ? void 0 : F.header,
3793
- 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
3794
3816
  });
3795
3817
  };
3796
3818
  },
@@ -3799,83 +3821,83 @@ const ea = {
3799
3821
  }
3800
3822
  });
3801
3823
  return Wt.forEach((v) => {
3802
- E.component(v.name, v);
3803
- }), 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;
3804
3826
  };
3805
- function Gt(a, n = window.innerWidth) {
3806
- if (typeof a == "number")
3807
- return a;
3808
- if (a.endsWith("px"))
3809
- return parseFloat(a);
3810
- const r = window.innerHeight, t = window.innerWidth;
3811
- if (a.endsWith("vh"))
3812
- return r * parseFloat(a) / 100;
3813
- if (a.endsWith("vw"))
3814
- return t * parseFloat(a) / 100;
3815
- 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("%")) {
3816
3838
  if (typeof n != "number")
3817
3839
  throw new Error("Reference size is required to convert % to px");
3818
- return n * parseFloat(a) / 100;
3840
+ return n * parseFloat(r) / 100;
3819
3841
  }
3820
- if (a.startsWith("calc(") && a.endsWith(")")) {
3842
+ if (r.startsWith("calc(") && r.endsWith(")")) {
3821
3843
  let o = function(v) {
3822
3844
  if (/[0-9+\-*/().\s]+$/.test(v))
3823
3845
  return new Function("return " + v)();
3824
3846
  throw new Error("Invalid calc expression");
3825
3847
  };
3826
- const e = a.slice(5, -1).trim();
3848
+ const e = r.slice(5, -1).trim();
3827
3849
  return o(e.replace(/([0-9.]+)([a-z%]+)/g, (v, F, f) => Gt(F + f, n)));
3828
3850
  }
3829
- throw new Error("Unsupported unit in value: " + a);
3851
+ throw new Error("Unsupported unit in value: " + r);
3830
3852
  }
3831
- const Ve = (...a) => {
3832
- const n = {}, r = (t, e) => (Object.keys(e).forEach((o) => {
3833
- 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];
3834
3856
  }), t);
3835
- return a.forEach((t = {}) => r(n, t)), n;
3857
+ return r.forEach((t = {}) => a(n, t)), n;
3836
3858
  };
3837
- function Ue(a, n = (r, t) => n(r, t)) {
3838
- const r = {};
3839
- for (const t in a)
3840
- a.hasOwnProperty(t) && n(t, a[t]) && (r[t] = a[t]);
3841
- 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;
3842
3864
  }
3843
- function Pr(a, n, r = "value", t = "label", e = "children") {
3844
- for (const o of a) {
3845
- 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)
3846
3868
  return o[t];
3847
3869
  if (o[e] && o[e].length > 0) {
3848
- const E = Pr(o[e], n, r, t, e);
3849
- if (E)
3850
- return E;
3870
+ const g = Pa(o[e], n, a, t, e);
3871
+ if (g)
3872
+ return g;
3851
3873
  }
3852
3874
  }
3853
3875
  return null;
3854
3876
  }
3855
- function St(a) {
3856
- if (!a || isNaN(a)) return "零";
3857
- const n = ["角", "分"], r = ["零", "壹", "贰", "叁", "肆", "伍", "陆", "柒", "捌", "玖"], t = [
3877
+ function St(r) {
3878
+ if (!r || isNaN(r)) return "零";
3879
+ const n = ["角", "分"], a = ["零", "壹", "贰", "叁", "肆", "伍", "陆", "柒", "捌", "玖"], t = [
3858
3880
  ["元", "万", "亿"],
3859
3881
  ["", "拾", "佰", "仟"]
3860
- ], e = a < 0 ? "欠" : "";
3861
- a = Math.abs(a);
3882
+ ], e = r < 0 ? "欠" : "";
3883
+ r = Math.abs(r);
3862
3884
  let o = "";
3863
- for (let E = 0; E < n.length; E++)
3864
- o += (r[Math.floor(a * 10 * Math.pow(10, E)) % 10] + n[E]).replace(/零./, "");
3865
- o = o || "整", a = Math.floor(a);
3866
- 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++) {
3867
3889
  let v = "";
3868
- for (let F = 0; F < t[1].length && a > 0; F++)
3869
- v = r[a % 10] + t[1][F] + v, a = Math.floor(a / 10);
3870
- 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;
3871
3893
  }
3872
3894
  return e + o.replace(/(零.)*零元/, "元").replace(/(零.)+/g, "零").replace(/^整$/, "零元整");
3873
3895
  }
3874
- function jr(a) {
3875
- if (typeof a != "number" || isNaN(a) || !isFinite(a))
3896
+ function ja(r) {
3897
+ if (typeof r != "number" || isNaN(r) || !isFinite(r))
3876
3898
  return "0.00";
3877
- const n = a.toFixed(2), [r, t] = n.split(".");
3878
- 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}`;
3879
3901
  }
3880
3902
  const Se = {
3881
3903
  RADIO: "radio",
@@ -3906,16 +3928,16 @@ const Se = {
3906
3928
  TEXTAREA: "textarea",
3907
3929
  TEL: "tel"
3908
3930
  }, gt = () => {
3909
- at(() => {
3910
- const a = document.querySelector(".el-dialog");
3911
- if (!a || a.querySelector(".dialog-resize-handle"))
3931
+ rt(() => {
3932
+ const r = document.querySelector(".el-dialog");
3933
+ if (!r || r.querySelector(".dialog-resize-handle"))
3912
3934
  return;
3913
- const n = Nr();
3914
- a.appendChild(n), Wr(a), Gr(a, n);
3935
+ const n = Na();
3936
+ r.appendChild(n), Wa(r), Ga(r, n);
3915
3937
  });
3916
- }, Nr = () => {
3917
- const a = document.createElement("div");
3918
- return Object.assign(a.style, {
3938
+ }, Na = () => {
3939
+ const r = document.createElement("div");
3940
+ return Object.assign(r.style, {
3919
3941
  position: "absolute",
3920
3942
  right: "0",
3921
3943
  bottom: "0",
@@ -3924,25 +3946,25 @@ const Se = {
3924
3946
  background: "transparent",
3925
3947
  cursor: "nwse-resize",
3926
3948
  zIndex: "999999999999"
3927
- }), a.className = "dialog-resize-handle", a;
3928
- }, Wr = (a) => {
3929
- Object.assign(a.style, {
3949
+ }), r.className = "dialog-resize-handle", r;
3950
+ }, Wa = (r) => {
3951
+ Object.assign(r.style, {
3930
3952
  transition: "none",
3931
3953
  minWidth: "300px",
3932
3954
  minHeight: "200px",
3933
3955
  resize: "none"
3934
3956
  // 防止与原生resize冲突
3935
3957
  });
3936
- }, Gr = (a, n) => {
3937
- let r = !1, t, e, o, E;
3958
+ }, Ga = (r, n) => {
3959
+ let a = !1, t, e, o, g;
3938
3960
  const v = (i) => {
3939
- 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);
3940
3962
  }, F = (i) => {
3941
- if (!r) return;
3942
- const s = Math.max(300, o + i.clientX - t), c = Math.max(200, E + i.clientY - e);
3943
- 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`;
3944
3966
  }, f = () => {
3945
- r = !1, document.removeEventListener("mousemove", F), document.removeEventListener("mouseup", f);
3967
+ a = !1, document.removeEventListener("mousemove", F), document.removeEventListener("mouseup", f);
3946
3968
  };
3947
3969
  n.addEventListener("mousedown", v);
3948
3970
  };
@@ -3950,10 +3972,10 @@ export {
3950
3972
  Se as CT,
3951
3973
  gt as bindResize,
3952
3974
  Gt as convertToPx,
3953
- ea as default,
3975
+ er as default,
3954
3976
  Ue as filterObject,
3955
- Pr as findTreeLabelByValue,
3956
- jr as formatAmount,
3977
+ Pa as findTreeLabelByValue,
3978
+ ja as formatAmount,
3957
3979
  Ve as mergeObjects,
3958
3980
  St as moneyToChinese,
3959
3981
  Dt as openModal