vue-2024-ui 0.0.86 → 0.0.87

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js CHANGED
@@ -1,5 +1,5 @@
1
- import kt, { ElForm as Ge, ElButtonGroup as Qe, ElButton as _e, ElPopover as et, ElMessage as Te, ElMessageBox as yt, ElDialog as Ct, ElDrawer as Dt } from "element-plus";
2
- import { mergeModels as Be, useModel as Ie, ref as de, nextTick as ht, onMounted as Pe, resolveComponent as j, openBlock as r, createElementBlock as q, unref as L, createBlock as S, mergeProps as F, withCtx as v, renderSlot as m, Fragment as P, renderList as B, createTextVNode as we, toDisplayString as Ee, createSlots as fe, createVNode as J, createCommentVNode as $e, normalizeProps as Xe, createElementVNode as X, useSlots as gt, inject as ut, useAttrs as nt, onUnmounted as Vt, computed as Ue, normalizeStyle as xe, withModifiers as ft, guardReactiveProps as mt, resolveDynamicComponent as Ae, Transition as Mt, withDirectives as Tt, vShow as Ft, h as qe, onBeforeUnmount as St, normalizeClass as bt, watchEffect as qt, watch as Ot, createApp as xt } from "vue";
1
+ import kt, { ElForm as Ge, ElButtonGroup as Qe, ElButton as Ce, ElPopover as tt, ElMessage as Fe, ElMessageBox as ht, ElDialog as Ct, ElDrawer as Dt } from "element-plus";
2
+ import { mergeModels as Be, useModel as Ie, ref as de, nextTick as Je, onMounted as Pe, resolveComponent as j, openBlock as r, createElementBlock as q, unref as L, createBlock as S, mergeProps as F, withCtx as v, renderSlot as m, Fragment as P, renderList as B, createTextVNode as ke, toDisplayString as Ee, createSlots as fe, createVNode as J, createCommentVNode as $e, normalizeProps as Xe, createElementVNode as X, useSlots as gt, inject as nt, useAttrs as st, onUnmounted as Vt, computed as Ue, normalizeStyle as xe, withModifiers as mt, guardReactiveProps as pt, resolveDynamicComponent as Ae, Transition as Mt, withDirectives as Tt, vShow as Ft, h as qe, onBeforeUnmount as St, normalizeClass as bt, watchEffect as qt, watch as Ot, createApp as xt } from "vue";
3
3
  import { FullScreen as At, Remove as Bt } from "@element-plus/icons-vue";
4
4
  import $t from "sortablejs";
5
5
  import { Dexie as It } from "dexie";
@@ -189,15 +189,15 @@ var Et = { exports: {} };
189
189
  (function(t, e) {
190
190
  c.exports = e();
191
191
  })(Ut, function() {
192
- var t = 1e3, e = 6e4, o = 36e5, i = "millisecond", I = "second", V = "minute", T = "hour", $ = "day", k = "week", z = "month", ae = "quarter", R = "year", E = "date", h = "Invalid Date", _ = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, Z = /\[([^\]]+)]|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, oe = { 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(A) {
192
+ var t = 1e3, e = 6e4, a = 36e5, i = "millisecond", I = "second", V = "minute", T = "hour", $ = "day", k = "week", z = "month", oe = "quarter", R = "year", E = "date", h = "Invalid Date", _ = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, Z = /\[([^\]]+)]|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, re = { 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(A) {
193
193
  var b = ["th", "st", "nd", "rd"], g = A % 100;
194
194
  return "[" + A + (b[(g - 20) % 10] || b[g] || b[0]) + "]";
195
- } }, te = function(A, b, g) {
195
+ } }, le = function(A, b, g) {
196
196
  var M = String(A);
197
197
  return !M || M.length >= b ? A : "" + Array(b + 1 - M.length).join(g) + A;
198
- }, me = { s: te, z: function(A) {
198
+ }, me = { s: le, z: function(A) {
199
199
  var b = -A.utcOffset(), g = Math.abs(b), M = Math.floor(g / 60), u = g % 60;
200
- return (b <= 0 ? "+" : "-") + te(M, 2, "0") + ":" + te(u, 2, "0");
200
+ return (b <= 0 ? "+" : "-") + le(M, 2, "0") + ":" + le(u, 2, "0");
201
201
  }, m: function A(b, g) {
202
202
  if (b.date() < g.date()) return -A(g, b);
203
203
  var M = 12 * (g.year() - b.year()) + (g.month() - b.month()), u = b.clone().add(M, z), s = g - u < 0, x = b.clone().add(M + (s ? -1 : 1), z);
@@ -205,11 +205,11 @@ var Et = { exports: {} };
205
205
  }, a: function(A) {
206
206
  return A < 0 ? Math.ceil(A) || 0 : Math.floor(A);
207
207
  }, p: function(A) {
208
- return { M: z, y: R, w: k, d: $, D: E, h: T, m: V, s: I, ms: i, Q: ae }[A] || String(A || "").toLowerCase().replace(/s$/, "");
208
+ return { M: z, y: R, w: k, d: $, D: E, h: T, m: V, s: I, ms: i, Q: oe }[A] || String(A || "").toLowerCase().replace(/s$/, "");
209
209
  }, u: function(A) {
210
210
  return A === void 0;
211
211
  } }, pe = "en", ve = {};
212
- ve[pe] = oe;
212
+ ve[pe] = re;
213
213
  var f = "$isDayjsObject", D = function(A) {
214
214
  return A instanceof ee || !(!A || !A[f]);
215
215
  }, C = function A(b, g, M) {
@@ -274,20 +274,20 @@ var Et = { exports: {} };
274
274
  }, b.valueOf = function() {
275
275
  return this.$d.getTime();
276
276
  }, b.startOf = function(g, M) {
277
- var u = this, s = !!Y.u(M) || M, x = Y.p(g), H = function(De, n) {
278
- var N = Y.w(u.$u ? Date.UTC(u.$y, n, De) : new Date(u.$y, n, De), u);
277
+ var u = this, s = !!Y.u(M) || M, x = Y.p(g), H = function(Ve, n) {
278
+ var N = Y.w(u.$u ? Date.UTC(u.$y, n, Ve) : new Date(u.$y, n, Ve), u);
279
279
  return s ? N : N.endOf($);
280
- }, K = function(De, n) {
281
- return Y.w(u.toDate()[De].apply(u.toDate("s"), (s ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(n)), u);
282
- }, re = this.$W, ce = this.$M, ye = this.$D, he = "set" + (this.$u ? "UTC" : "");
280
+ }, K = function(Ve, n) {
281
+ return Y.w(u.toDate()[Ve].apply(u.toDate("s"), (s ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(n)), u);
282
+ }, ue = this.$W, ce = this.$M, ye = this.$D, he = "set" + (this.$u ? "UTC" : "");
283
283
  switch (x) {
284
284
  case R:
285
285
  return s ? H(1, 0) : H(31, 11);
286
286
  case z:
287
287
  return s ? H(1, ce) : H(0, ce + 1);
288
288
  case k:
289
- var Ce = this.$locale().weekStart || 0, Fe = (re < Ce ? re + 7 : re) - Ce;
290
- return H(s ? ye - Fe : ye + (6 - Fe), ce);
289
+ var De = this.$locale().weekStart || 0, Se = (ue < De ? ue + 7 : ue) - De;
290
+ return H(s ? ye - Se : ye + (6 - Se), ce);
291
291
  case $:
292
292
  case E:
293
293
  return K(he + "Hours", 0);
@@ -305,8 +305,8 @@ var Et = { exports: {} };
305
305
  }, b.$set = function(g, M) {
306
306
  var u, s = Y.p(g), x = "set" + (this.$u ? "UTC" : ""), H = (u = {}, u[$] = x + "Date", u[E] = x + "Date", u[z] = x + "Month", u[R] = x + "FullYear", u[T] = x + "Hours", u[V] = x + "Minutes", u[I] = x + "Seconds", u[i] = x + "Milliseconds", u)[s], K = s === $ ? this.$D + (M - this.$W) : M;
307
307
  if (s === z || s === R) {
308
- var re = this.clone().set(E, 1);
309
- re.$d[H](K), re.init(), this.$d = re.set(E, Math.min(this.$D, re.daysInMonth())).$d;
308
+ var ue = this.clone().set(E, 1);
309
+ ue.$d[H](K), ue.init(), this.$d = ue.set(E, Math.min(this.$D, ue.daysInMonth())).$d;
310
310
  } else H && this.$d[H](K);
311
311
  return this.init(), this;
312
312
  }, b.set = function(g, M) {
@@ -324,20 +324,20 @@ var Et = { exports: {} };
324
324
  if (x === R) return this.set(R, this.$y + g);
325
325
  if (x === $) return H(1);
326
326
  if (x === k) return H(7);
327
- var K = (u = {}, u[V] = e, u[T] = o, u[I] = t, u)[x] || 1, re = this.$d.getTime() + g * K;
328
- return Y.w(re, this);
327
+ var K = (u = {}, u[V] = e, u[T] = a, u[I] = t, u)[x] || 1, ue = this.$d.getTime() + g * K;
328
+ return Y.w(ue, this);
329
329
  }, b.subtract = function(g, M) {
330
330
  return this.add(-1 * g, M);
331
331
  }, b.format = function(g) {
332
332
  var M = this, u = this.$locale();
333
333
  if (!this.isValid()) return u.invalidDate || h;
334
- var s = g || "YYYY-MM-DDTHH:mm:ssZ", x = Y.z(this), H = this.$H, K = this.$m, re = this.$M, ce = u.weekdays, ye = u.months, he = u.meridiem, Ce = function(n, N, ie, Ve) {
335
- return n && (n[N] || n(M, s)) || ie[N].slice(0, Ve);
336
- }, Fe = function(n) {
334
+ var s = g || "YYYY-MM-DDTHH:mm:ssZ", x = Y.z(this), H = this.$H, K = this.$m, ue = this.$M, ce = u.weekdays, ye = u.months, he = u.meridiem, De = function(n, N, ie, Me) {
335
+ return n && (n[N] || n(M, s)) || ie[N].slice(0, Me);
336
+ }, Se = function(n) {
337
337
  return Y.s(H % 12 || 12, n, "0");
338
- }, De = he || function(n, N, ie) {
339
- var Ve = n < 12 ? "AM" : "PM";
340
- return ie ? Ve.toLowerCase() : Ve;
338
+ }, Ve = he || function(n, N, ie) {
339
+ var Me = n < 12 ? "AM" : "PM";
340
+ return ie ? Me.toLowerCase() : Me;
341
341
  };
342
342
  return s.replace(Z, function(n, N) {
343
343
  return N || function(ie) {
@@ -347,13 +347,13 @@ var Et = { exports: {} };
347
347
  case "YYYY":
348
348
  return Y.s(M.$y, 4, "0");
349
349
  case "M":
350
- return re + 1;
350
+ return ue + 1;
351
351
  case "MM":
352
- return Y.s(re + 1, 2, "0");
352
+ return Y.s(ue + 1, 2, "0");
353
353
  case "MMM":
354
- return Ce(u.monthsShort, re, ye, 3);
354
+ return De(u.monthsShort, ue, ye, 3);
355
355
  case "MMMM":
356
- return Ce(ye, re);
356
+ return De(ye, ue);
357
357
  case "D":
358
358
  return M.$D;
359
359
  case "DD":
@@ -361,9 +361,9 @@ var Et = { exports: {} };
361
361
  case "d":
362
362
  return String(M.$W);
363
363
  case "dd":
364
- return Ce(u.weekdaysMin, M.$W, ce, 2);
364
+ return De(u.weekdaysMin, M.$W, ce, 2);
365
365
  case "ddd":
366
- return Ce(u.weekdaysShort, M.$W, ce, 3);
366
+ return De(u.weekdaysShort, M.$W, ce, 3);
367
367
  case "dddd":
368
368
  return ce[M.$W];
369
369
  case "H":
@@ -371,13 +371,13 @@ var Et = { exports: {} };
371
371
  case "HH":
372
372
  return Y.s(H, 2, "0");
373
373
  case "h":
374
- return Fe(1);
374
+ return Se(1);
375
375
  case "hh":
376
- return Fe(2);
376
+ return Se(2);
377
377
  case "a":
378
- return De(H, K, !0);
378
+ return Ve(H, K, !0);
379
379
  case "A":
380
- return De(H, K, !1);
380
+ return Ve(H, K, !1);
381
381
  case "m":
382
382
  return String(K);
383
383
  case "mm":
@@ -397,7 +397,7 @@ var Et = { exports: {} };
397
397
  }, b.utcOffset = function() {
398
398
  return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
399
399
  }, b.diff = function(g, M, u) {
400
- var s, x = this, H = Y.p(M), K = y(g), re = (K.utcOffset() - this.utcOffset()) * e, ce = this - K, ye = function() {
400
+ var s, x = this, H = Y.p(M), K = y(g), ue = (K.utcOffset() - this.utcOffset()) * e, ce = this - K, ye = function() {
401
401
  return Y.m(x, K);
402
402
  };
403
403
  switch (H) {
@@ -407,17 +407,17 @@ var Et = { exports: {} };
407
407
  case z:
408
408
  s = ye();
409
409
  break;
410
- case ae:
410
+ case oe:
411
411
  s = ye() / 3;
412
412
  break;
413
413
  case k:
414
- s = (ce - re) / 6048e5;
414
+ s = (ce - ue) / 6048e5;
415
415
  break;
416
416
  case $:
417
- s = (ce - re) / 864e5;
417
+ s = (ce - ue) / 864e5;
418
418
  break;
419
419
  case T:
420
- s = ce / o;
420
+ s = ce / a;
421
421
  break;
422
422
  case V:
423
423
  s = ce / e;
@@ -461,13 +461,13 @@ var Et = { exports: {} };
461
461
  });
462
462
  })(Et);
463
463
  var Lt = Et.exports;
464
- const tt = /* @__PURE__ */ jt(Lt), Rt = {
464
+ const lt = /* @__PURE__ */ jt(Lt), Rt = {
465
465
  style: { display: "flex", width: "100%" },
466
466
  class: "g-ctrl-container"
467
467
  }, Ht = {
468
468
  key: 19,
469
469
  style: { position: "relative" }
470
- }, Nt = ["title"], Pt = { key: 20 }, zt = { key: 21 }, Wt = ["innerHTML"], Gt = ["innerHTML"], Je = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
470
+ }, Nt = ["title"], Pt = { key: 20 }, zt = { key: 21 }, Wt = ["innerHTML"], Gt = ["innerHTML"], Ze = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
471
471
  __name: "g-ctrl",
472
472
  props: /* @__PURE__ */ Be(["t", "ctrlKey", "item", "model", "ctrlType", "formInfo"], {
473
473
  modelValue: { required: !0 },
@@ -475,7 +475,7 @@ const tt = /* @__PURE__ */ jt(Lt), Rt = {
475
475
  }),
476
476
  emits: ["update:modelValue"],
477
477
  setup(c) {
478
- const d = Ie(c, "modelValue"), t = c, e = de(t.item || {}), o = de(t.ctrlKey), i = de(t.ctrlType), I = de(t.model), V = de([]), T = de([]), $ = () => Object.keys(gt()).filter((h) => h.startsWith(`${t.t}-${o}-`)).map((h) => h.replace(`${t.t}-${o}-`, "")), k = (h) => [
478
+ const d = Ie(c, "modelValue"), t = c, e = de(t.item || {}), a = de(t.ctrlKey), i = de(t.ctrlType), I = de(t.model), V = de([]), T = de([]), $ = () => Object.keys(gt()).filter((h) => h.startsWith(`${t.t}-${a}-`)).map((h) => h.replace(`${t.t}-${a}-`, "")), k = (h) => [
479
479
  "year",
480
480
  "years",
481
481
  "month",
@@ -502,13 +502,13 @@ const tt = /* @__PURE__ */ jt(Lt), Rt = {
502
502
  daterange: "YYYY-MM-DD",
503
503
  monthrange: "YYYY-MM",
504
504
  yearrange: "YYYY"
505
- })[h] || "YYYY-MM-DD", ae = de({
505
+ })[h] || "YYYY-MM-DD", oe = de({
506
506
  filterable: !0,
507
507
  remote: !!(e.value && e.value["remote-method"]),
508
508
  ...e.value
509
509
  }), R = de((h) => {
510
510
  e.value["remote-method"](h, (_) => {
511
- ht(() => {
511
+ Je(() => {
512
512
  T.value = _;
513
513
  });
514
514
  });
@@ -519,23 +519,23 @@ const tt = /* @__PURE__ */ jt(Lt), Rt = {
519
519
  if (typeof Z == "string")
520
520
  T.value = [{ label: Z, value: d.value }];
521
521
  else {
522
- const oe = Z == null ? void 0 : Z.map((te, me) => ({
523
- ...te,
524
- value: te.value ?? te.label ?? me,
525
- label: te.label || "未知选项"
522
+ const re = Z == null ? void 0 : Z.map((le, me) => ({
523
+ ...le,
524
+ value: le.value ?? le.label ?? me,
525
+ label: le.label || "未知选项"
526
526
  }));
527
- T.value = oe || [];
527
+ T.value = re || [];
528
528
  }
529
529
  } catch (Z) {
530
530
  throw console.error("获取选项失败:", Z), Z;
531
531
  }
532
532
  };
533
533
  return Pe(async () => {
534
- var Z, oe;
535
- e.value && e.value["remote-method"] && (ae.value["remote-method"] = R), (oe = (Z = I.value[o.value]) == null ? void 0 : Z.options) != null && oe.length && (T.value = I.value[o.value].options);
536
- const h = (te, me = "options", pe = I.value[o.value]) => {
534
+ var Z, re;
535
+ e.value && e.value["remote-method"] && (oe.value["remote-method"] = R), (re = (Z = I.value[a.value]) == null ? void 0 : Z.options) != null && re.length && (T.value = I.value[a.value].options);
536
+ const h = (le, me = "options", pe = I.value[a.value]) => {
537
537
  typeof e.value.getDicts == "function" && E(me).catch((ve) => {
538
- console.error(`Failed to load ${me} for ${te}:`, ve);
538
+ console.error(`Failed to load ${me} for ${le}:`, ve);
539
539
  });
540
540
  };
541
541
  ["radio", "radio-button", "checkbox-group", "checkbox-group-button", "select", "cascader"].includes(i.value) && h(i.value), i.value === be.TREESELECT && await (async () => {
@@ -546,35 +546,35 @@ const tt = /* @__PURE__ */ jt(Lt), Rt = {
546
546
  }
547
547
  })();
548
548
  }), (h, _) => {
549
- var Ce, Fe, De;
550
- const Z = j("el-radio"), oe = j("el-radio-group"), te = j("el-radio-button"), me = j("el-checkbox"), pe = j("el-checkbox-group"), ve = j("el-checkbox-button"), f = j("g-select-option"), D = j("el-option"), C = j("el-select"), y = j("el-tree-select"), Y = j("el-time-picker"), ee = j("el-time-select"), se = j("el-date-picker"), A = j("el-color-picker"), b = j("el-rate"), g = j("el-slider"), M = j("el-switch"), u = j("el-transfer"), s = j("el-cascader"), x = j("el-button"), H = j("el-upload"), K = j("el-autocomplete"), re = j("el-input-number"), ce = j("el-input"), ye = j("el-link"), he = j("el-tag");
549
+ var De, Se, Ve;
550
+ const Z = j("el-radio"), re = j("el-radio-group"), le = j("el-radio-button"), me = j("el-checkbox"), pe = j("el-checkbox-group"), ve = j("el-checkbox-button"), f = j("g-select-option"), D = j("el-option"), C = j("el-select"), y = j("el-tree-select"), Y = j("el-time-picker"), ee = j("el-time-select"), se = j("el-date-picker"), A = j("el-color-picker"), b = j("el-rate"), g = j("el-slider"), M = j("el-switch"), u = j("el-transfer"), s = j("el-cascader"), x = j("el-button"), H = j("el-upload"), K = j("el-autocomplete"), ue = j("el-input-number"), ce = j("el-input"), ye = j("el-link"), he = j("el-tag");
551
551
  return r(), q("div", Rt, [
552
- i.value == L(be).RADIO ? (r(), S(oe, F({
552
+ i.value == L(be).RADIO ? (r(), S(re, F({
553
553
  key: 0,
554
554
  modelValue: d.value,
555
555
  "onUpdate:modelValue": _[0] || (_[0] = (n) => d.value = n)
556
556
  }, e.value), {
557
557
  default: v(() => [
558
- m(h.$slots, `${t.t}-${o.value}`, { data: e.value }, () => [
558
+ m(h.$slots, `${t.t}-${a.value}`, { data: e.value }, () => [
559
559
  (r(!0), q(P, null, B(T.value, (n) => (r(), S(Z, F({ ref_for: !0 }, n), {
560
560
  default: v(() => [
561
- m(h.$slots, `${t.t}-${o.value}-options`, { option: n })
561
+ m(h.$slots, `${t.t}-${a.value}-options`, { option: n })
562
562
  ]),
563
563
  _: 2
564
564
  }, 1040))), 256))
565
565
  ])
566
566
  ]),
567
567
  _: 3
568
- }, 16, ["modelValue"])) : i.value == L(be).RADIOBUTTON ? (r(), S(oe, F({
568
+ }, 16, ["modelValue"])) : i.value == L(be).RADIOBUTTON ? (r(), S(re, F({
569
569
  key: 1,
570
570
  modelValue: d.value,
571
571
  "onUpdate:modelValue": _[1] || (_[1] = (n) => d.value = n)
572
572
  }, e.value), {
573
573
  default: v(() => [
574
- m(h.$slots, `${t.t}-${o.value}`, { data: e.value }, () => [
575
- (r(!0), q(P, null, B(T.value, (n) => (r(), S(te, F({ ref_for: !0 }, n), {
574
+ m(h.$slots, `${t.t}-${a.value}`, { data: e.value }, () => [
575
+ (r(!0), q(P, null, B(T.value, (n) => (r(), S(le, F({ ref_for: !0 }, n), {
576
576
  default: v(() => [
577
- m(h.$slots, `${t.t}-${o.value}-options`, { option: n })
577
+ m(h.$slots, `${t.t}-${a.value}-options`, { option: n })
578
578
  ]),
579
579
  _: 2
580
580
  }, 1040))), 256))
@@ -587,8 +587,8 @@ const tt = /* @__PURE__ */ jt(Lt), Rt = {
587
587
  "onUpdate:modelValue": _[2] || (_[2] = (n) => d.value = n)
588
588
  }, e.value), {
589
589
  default: v(() => [
590
- m(h.$slots, `${t.t}-${o.value}`, { data: e.value }, () => [
591
- _[20] || (_[20] = we(Ee(" ")))
590
+ m(h.$slots, `${t.t}-${a.value}`, { data: e.value }, () => [
591
+ _[20] || (_[20] = ke(Ee(" ")))
592
592
  ])
593
593
  ]),
594
594
  _: 3
@@ -598,11 +598,11 @@ const tt = /* @__PURE__ */ jt(Lt), Rt = {
598
598
  "onUpdate:modelValue": _[3] || (_[3] = (n) => d.value = n)
599
599
  }, e.value), {
600
600
  default: v(() => [
601
- m(h.$slots, `${t.t}-${o.value}`, { data: e.value }, () => [
601
+ m(h.$slots, `${t.t}-${a.value}`, { data: e.value }, () => [
602
602
  (r(!0), q(P, null, B(T.value, (n) => (r(), S(me, F({ ref_for: !0 }, n), {
603
603
  default: v(() => [
604
- m(h.$slots, `${t.t}-${o.value}-options`, { option: n }, () => [
605
- we(Ee(n.label), 1)
604
+ m(h.$slots, `${t.t}-${a.value}-options`, { option: n }, () => [
605
+ ke(Ee(n.label), 1)
606
606
  ])
607
607
  ]),
608
608
  _: 2
@@ -616,10 +616,10 @@ const tt = /* @__PURE__ */ jt(Lt), Rt = {
616
616
  "onUpdate:modelValue": _[4] || (_[4] = (n) => d.value = n)
617
617
  }, e.value), {
618
618
  default: v(() => [
619
- m(h.$slots, `${t.t}-${o.value}`, { data: e.value }, () => [
619
+ m(h.$slots, `${t.t}-${a.value}`, { data: e.value }, () => [
620
620
  (r(!0), q(P, null, B(T.value, (n) => (r(), S(ve, F({ ref_for: !0 }, n), {
621
621
  default: v(() => [
622
- m(h.$slots, `${t.t}-${o.value}-options`, { option: n })
622
+ m(h.$slots, `${t.t}-${a.value}-options`, { option: n })
623
623
  ]),
624
624
  _: 2
625
625
  }, 1040))), 256))
@@ -630,20 +630,20 @@ const tt = /* @__PURE__ */ jt(Lt), Rt = {
630
630
  key: 5,
631
631
  modelValue: d.value,
632
632
  "onUpdate:modelValue": _[5] || (_[5] = (n) => d.value = n),
633
- placeholder: I.value[o.value].label
634
- }, ae.value), fe({
633
+ placeholder: I.value[a.value].label
634
+ }, oe.value), fe({
635
635
  default: v(() => [
636
- m(h.$slots, `${t.t}-${o.value}`, { options: T.value }, () => [
636
+ m(h.$slots, `${t.t}-${a.value}`, { options: T.value }, () => [
637
637
  (r(!0), q(P, null, B(T.value, (n) => (r(), q(P, {
638
638
  key: n.value
639
639
  }, [
640
- J(D, F({ ref_for: !0 }, L(ke)(n, (N) => N != "children"), {
641
- onClick: (N) => ae.value.change && ae.value.change(n)
640
+ J(D, F({ ref_for: !0 }, L(_e)(n, (N) => N != "children"), {
641
+ onClick: (N) => oe.value.change && oe.value.change(n)
642
642
  }), {
643
643
  default: v(() => {
644
644
  var N;
645
645
  return [
646
- (N = e.value) != null && N.columns ? m(h.$slots, `${t.t}-${o.value}-options`, {
646
+ (N = e.value) != null && N.columns ? m(h.$slots, `${t.t}-${a.value}-options`, {
647
647
  key: 0,
648
648
  option: n
649
649
  }, () => {
@@ -654,7 +654,7 @@ const tt = /* @__PURE__ */ jt(Lt), Rt = {
654
654
  data: n,
655
655
  t: t.t
656
656
  }, fe({ _: 2 }, [
657
- B(h.$slots, (Ve, Ye) => ({
657
+ B(h.$slots, (Me, Ye) => ({
658
658
  name: Ye,
659
659
  fn: v((l) => [
660
660
  m(h.$slots, Ye, {
@@ -674,29 +674,29 @@ const tt = /* @__PURE__ */ jt(Lt), Rt = {
674
674
  style: { "margin-left": "20px" },
675
675
  key: N.value,
676
676
  ref_for: !0
677
- }, L(ke)(N, (ie) => ie != "children"), {
678
- onClick: (ie) => ae.value.change && ae.value.change(N)
677
+ }, L(_e)(N, (ie) => ie != "children"), {
678
+ onClick: (ie) => oe.value.change && oe.value.change(N)
679
679
  }), {
680
680
  default: v(() => {
681
681
  var ie;
682
682
  return [
683
- (ie = e.value) != null && ie.columns ? m(h.$slots, `${t.t}-${o.value}-options`, {
683
+ (ie = e.value) != null && ie.columns ? m(h.$slots, `${t.t}-${a.value}-options`, {
684
684
  key: 0,
685
685
  option: N
686
686
  }, () => {
687
- var Ve;
687
+ var Me;
688
688
  return [
689
689
  J(f, {
690
- columns: (Ve = e.value) == null ? void 0 : Ve.columns,
690
+ columns: (Me = e.value) == null ? void 0 : Me.columns,
691
691
  data: N,
692
692
  t: t.t
693
693
  }, fe({ _: 2 }, [
694
694
  B(h.$slots, (Ye, l) => ({
695
695
  name: l,
696
- fn: v((a) => [
696
+ fn: v((o) => [
697
697
  m(h.$slots, l, {
698
698
  option: N,
699
- data: a
699
+ data: o
700
700
  })
701
701
  ])
702
702
  }))
@@ -712,7 +712,7 @@ const tt = /* @__PURE__ */ jt(Lt), Rt = {
712
712
  ]),
713
713
  _: 2
714
714
  }, [
715
- (Ce = e.value) != null && Ce.columns ? {
715
+ (De = e.value) != null && De.columns ? {
716
716
  name: "header",
717
717
  fn: v(() => {
718
718
  var n;
@@ -724,8 +724,8 @@ const tt = /* @__PURE__ */ jt(Lt), Rt = {
724
724
  }, fe({ _: 2 }, [
725
725
  B(h.$slots, (N, ie) => ({
726
726
  name: ie,
727
- fn: v((Ve) => [
728
- m(h.$slots, ie, { data: Ve })
727
+ fn: v((Me) => [
728
+ m(h.$slots, ie, { data: Me })
729
729
  ])
730
730
  }))
731
731
  ]), 1032, ["columns", "t"])
@@ -736,19 +736,19 @@ const tt = /* @__PURE__ */ jt(Lt), Rt = {
736
736
  B($(), (n) => ({
737
737
  name: n,
738
738
  fn: v((N) => [
739
- m(h.$slots, `${t.t}-${o.value}-${n}`, { data: N })
739
+ m(h.$slots, `${t.t}-${a.value}-${n}`, { data: N })
740
740
  ])
741
741
  }))
742
742
  ]), 1040, ["modelValue", "placeholder"])) : i.value == L(be).TREESELECT ? (r(), S(y, F({
743
743
  key: 6,
744
744
  modelValue: d.value,
745
745
  "onUpdate:modelValue": _[6] || (_[6] = (n) => d.value = n),
746
- placeholder: I.value[o.value].label
746
+ placeholder: I.value[a.value].label
747
747
  }, e.value, { data: V.value }), fe({ _: 2 }, [
748
748
  B($(), (n) => ({
749
749
  name: n,
750
750
  fn: v((N) => [
751
- m(h.$slots, `${t.t}-${o.value}-${n}`, { data: N })
751
+ m(h.$slots, `${t.t}-${a.value}-${n}`, { data: N })
752
752
  ])
753
753
  }))
754
754
  ]), 1040, ["modelValue", "placeholder", "data"])) : i.value == L(be).TIME ? (r(), S(Y, F({
@@ -757,7 +757,7 @@ const tt = /* @__PURE__ */ jt(Lt), Rt = {
757
757
  "onUpdate:modelValue": _[7] || (_[7] = (n) => d.value = n),
758
758
  "arrow-control": ""
759
759
  }, e.value, {
760
- placeholder: I.value[o.value].label
760
+ placeholder: I.value[a.value].label
761
761
  }), null, 16, ["modelValue", "placeholder"])) : i.value == L(be).TIMESELECT ? (r(), S(ee, F({
762
762
  key: 8,
763
763
  modelValue: d.value,
@@ -765,19 +765,19 @@ const tt = /* @__PURE__ */ jt(Lt), Rt = {
765
765
  start: "06:30",
766
766
  step: "00:15",
767
767
  end: "23:30",
768
- placeholder: I.value[o.value].label
768
+ placeholder: I.value[a.value].label
769
769
  }, e.value), null, 16, ["modelValue", "placeholder"])) : k(i.value) ? (r(), S(se, F({
770
770
  key: 9,
771
771
  modelValue: d.value,
772
772
  "onUpdate:modelValue": _[9] || (_[9] = (n) => d.value = n),
773
773
  type: i.value,
774
- placeholder: I.value[o.value].label,
774
+ placeholder: I.value[a.value].label,
775
775
  "value-format": z(i.value)
776
776
  }, e.value), fe({ _: 2 }, [
777
777
  B($(), (n) => ({
778
778
  name: n,
779
779
  fn: v((N) => [
780
- m(h.$slots, `${t.t}-${o.value}-${n}`, { data: N })
780
+ m(h.$slots, `${t.t}-${a.value}-${n}`, { data: N })
781
781
  ])
782
782
  }))
783
783
  ]), 1040, ["modelValue", "type", "placeholder", "value-format"])) : i.value == L(be).COLOR ? (r(), S(A, F({
@@ -800,7 +800,7 @@ const tt = /* @__PURE__ */ jt(Lt), Rt = {
800
800
  B($(), (n) => ({
801
801
  name: n,
802
802
  fn: v((N) => [
803
- m(h.$slots, `${t.t}-${o.value}-${n}`, { data: N })
803
+ m(h.$slots, `${t.t}-${a.value}-${n}`, { data: N })
804
804
  ])
805
805
  }))
806
806
  ]), 1040, ["modelValue"])) : i.value == L(be).TRANSFER ? (r(), S(u, F({
@@ -811,7 +811,7 @@ const tt = /* @__PURE__ */ jt(Lt), Rt = {
811
811
  B($(), (n) => ({
812
812
  name: n,
813
813
  fn: v((N) => [
814
- m(h.$slots, `${t.t}-${o.value}-${n}`, { data: N })
814
+ m(h.$slots, `${t.t}-${a.value}-${n}`, { data: N })
815
815
  ])
816
816
  }))
817
817
  ]), 1040, ["modelValue"])) : i.value == L(be).CASCADER ? (r(), S(s, F({
@@ -822,14 +822,14 @@ const tt = /* @__PURE__ */ jt(Lt), Rt = {
822
822
  B($(), (n) => ({
823
823
  name: n,
824
824
  fn: v((N) => [
825
- m(h.$slots, `${t.t}-${o.value}-${n}`, { data: N })
825
+ m(h.$slots, `${t.t}-${a.value}-${n}`, { data: N })
826
826
  ])
827
827
  }))
828
828
  ]), 1040, ["modelValue", "options"])) : i.value == L(be).IMAGE ? (r(), S(H, Xe(F({ key: 16 }, e.value)), fe({
829
829
  default: v(() => [
830
830
  J(x, { type: "primary" }, {
831
831
  default: v(() => _[21] || (_[21] = [
832
- we("点击上传")
832
+ ke("点击上传")
833
833
  ])),
834
834
  _: 1
835
835
  })
@@ -839,7 +839,7 @@ const tt = /* @__PURE__ */ jt(Lt), Rt = {
839
839
  B($(), (n, N) => ({
840
840
  name: n,
841
841
  fn: v((ie) => [
842
- m(h.$slots, `${t.t}-${o.value}-${n}`, { data: ie })
842
+ m(h.$slots, `${t.t}-${a.value}-${n}`, { data: ie })
843
843
  ])
844
844
  }))
845
845
  ]), 1040)) : i.value == L(be).AUTOCOMPLETE ? (r(), S(K, F({
@@ -847,48 +847,48 @@ const tt = /* @__PURE__ */ jt(Lt), Rt = {
847
847
  modelValue: d.value,
848
848
  "onUpdate:modelValue": _[16] || (_[16] = (n) => d.value = n)
849
849
  }, e.value, {
850
- placeholder: I.value[o.value].label
850
+ placeholder: I.value[a.value].label
851
851
  }), fe({ _: 2 }, [
852
852
  B($(), (n, N) => ({
853
853
  name: n,
854
854
  fn: v((ie) => [
855
- m(h.$slots, `${t.t}-${o.value}-${n}`, { data: ie })
855
+ m(h.$slots, `${t.t}-${a.value}-${n}`, { data: ie })
856
856
  ])
857
857
  }))
858
- ]), 1040, ["modelValue", "placeholder"])) : i.value == L(be).INPUTNUMBER ? (r(), S(re, F({
858
+ ]), 1040, ["modelValue", "placeholder"])) : i.value == L(be).INPUTNUMBER ? (r(), S(ue, F({
859
859
  key: 18,
860
860
  modelValue: d.value,
861
861
  "onUpdate:modelValue": _[17] || (_[17] = (n) => d.value = n),
862
862
  min: 0,
863
863
  max: 1e8,
864
- placeholder: I.value[o.value].label
864
+ placeholder: I.value[a.value].label
865
865
  }, e.value), fe({ _: 2 }, [
866
866
  B($(), (n, N) => ({
867
867
  name: n,
868
868
  fn: v((ie) => [
869
- m(h.$slots, `${t.t}-${o.value}-${n}`, { data: ie })
869
+ m(h.$slots, `${t.t}-${a.value}-${n}`, { data: ie })
870
870
  ])
871
871
  }))
872
872
  ]), 1040, ["modelValue", "placeholder"])) : i.value == L(be).MONEY ? (r(), q("div", Ht, [
873
873
  J(ce, F({
874
874
  modelValue: d.value,
875
875
  "onUpdate:modelValue": _[18] || (_[18] = (n) => d.value = n),
876
- placeholder: I.value[o.value].label,
876
+ placeholder: I.value[a.value].label,
877
877
  type: L(be).NUMBER,
878
- maxlength: ((Fe = e.value) == null ? void 0 : Fe.max) || 25
878
+ maxlength: ((Se = e.value) == null ? void 0 : Se.max) || 25
879
879
  }, { ...e.value, type: i.value }), fe({
880
880
  suffix: v(() => [
881
881
  X("div", {
882
- title: L(rt)(d.value),
882
+ title: L(ut)(d.value),
883
883
  style: { "font-size": "10px", display: "block", width: "80px", "text-align": "right", overflow: "hidden", "text-overflow": "ellipsis" }
884
- }, Ee(L(rt)(d.value)), 9, Nt)
884
+ }, Ee(L(ut)(d.value)), 9, Nt)
885
885
  ]),
886
886
  _: 2
887
887
  }, [
888
888
  B($(), (n, N) => ({
889
889
  name: n,
890
890
  fn: v((ie) => [
891
- m(h.$slots, `${t.t}-${o.value}-${n}`, { data: ie })
891
+ m(h.$slots, `${t.t}-${a.value}-${n}`, { data: ie })
892
892
  ])
893
893
  }))
894
894
  ]), 1040, ["modelValue", "placeholder", "type", "maxlength"])
@@ -922,21 +922,21 @@ const tt = /* @__PURE__ */ jt(Lt), Rt = {
922
922
  key: 24,
923
923
  modelValue: d.value,
924
924
  "onUpdate:modelValue": _[19] || (_[19] = (n) => d.value = n),
925
- placeholder: I.value[o.value].label,
926
- maxlength: ((De = e.value) == null ? void 0 : De.max) || 25,
925
+ placeholder: I.value[a.value].label,
926
+ maxlength: ((Ve = e.value) == null ? void 0 : Ve.max) || 25,
927
927
  clearable: !0
928
928
  }, { ...e.value, type: i.value }), fe({ _: 2 }, [
929
929
  B($(), (n, N) => ({
930
930
  name: n,
931
931
  fn: v((ie) => [
932
- m(h.$slots, `${t.t}-${o.value}-${n}`, { data: ie })
932
+ m(h.$slots, `${t.t}-${a.value}-${n}`, { data: ie })
933
933
  ])
934
934
  }))
935
935
  ]), 1040, ["modelValue", "placeholder", "maxlength"]))
936
936
  ]);
937
937
  };
938
938
  }
939
- }), lt = /* @__PURE__ */ Object.assign({
939
+ }), at = /* @__PURE__ */ Object.assign({
940
940
  name: "g-form",
941
941
  inheritAttrs: !1
942
942
  }, {
@@ -947,8 +947,8 @@ const tt = /* @__PURE__ */ jt(Lt), Rt = {
947
947
  },
948
948
  emits: /* @__PURE__ */ Be(["submit", "reset"], ["update:modelValue"]),
949
949
  setup(c, { emit: d }) {
950
- var te, me, pe, ve;
951
- const t = Ie(c, "modelValue"), e = d, o = de(null), i = ut("options"), I = {
950
+ var le, me, pe, ve;
951
+ const t = Ie(c, "modelValue"), e = d, a = de(null), i = nt("options"), I = {
952
952
  inline: !0,
953
953
  type: "hidden",
954
954
  "scroll-to-error": !0,
@@ -958,7 +958,7 @@ const tt = /* @__PURE__ */ jt(Lt), Rt = {
958
958
  style: {
959
959
  display: "flex",
960
960
  flexWrap: "wrap",
961
- ...(te = nt()) == null ? void 0 : te.style
961
+ ...(le = st()) == null ? void 0 : le.style
962
962
  },
963
963
  // 表单底部属性
964
964
  footer: {
@@ -986,11 +986,11 @@ const tt = /* @__PURE__ */ jt(Lt), Rt = {
986
986
  hidden: !1,
987
987
  plain: !0,
988
988
  click: () => {
989
- if (!o.value) return;
989
+ if (!a.value) return;
990
990
  let f = !0;
991
991
  e("reset", (D) => {
992
992
  f = D;
993
- }), f && o.value.resetFields();
993
+ }), f && a.value.resetFields();
994
994
  }
995
995
  },
996
996
  slots: {},
@@ -999,7 +999,7 @@ const tt = /* @__PURE__ */ jt(Lt), Rt = {
999
999
  editable: !1
1000
1000
  }
1001
1001
  };
1002
- t.value.form = Me(
1002
+ t.value.form = Te(
1003
1003
  I,
1004
1004
  i == null ? void 0 : i.form,
1005
1005
  (me = t.value) == null ? void 0 : me.form
@@ -1007,8 +1007,8 @@ const tt = /* @__PURE__ */ jt(Lt), Rt = {
1007
1007
  const V = async (f, D) => {
1008
1008
  let C = 5;
1009
1009
  for (; C > 0; ) {
1010
- if (await ht(), o.value) {
1011
- o.value.validate((y, Y) => {
1010
+ if (await Je(), a.value) {
1011
+ a.value.validate((y, Y) => {
1012
1012
  y ? e("submit", f, D) : console.log("表单验证不通过!", Y);
1013
1013
  });
1014
1014
  return;
@@ -1025,7 +1025,7 @@ const tt = /* @__PURE__ */ jt(Lt), Rt = {
1025
1025
  width: "100%"
1026
1026
  }
1027
1027
  };
1028
- t.value.formItems = Me(
1028
+ t.value.formItems = Te(
1029
1029
  T,
1030
1030
  i == null ? void 0 : i.formItems,
1031
1031
  (pe = t == null ? void 0 : t.value) == null ? void 0 : pe.formItems
@@ -1034,7 +1034,7 @@ const tt = /* @__PURE__ */ jt(Lt), Rt = {
1034
1034
  span: 12,
1035
1035
  offset: 0
1036
1036
  };
1037
- t.value.form.cols = Me(
1037
+ t.value.form.cols = Te(
1038
1038
  $,
1039
1039
  (ve = i == null ? void 0 : i.form) == null ? void 0 : ve.cols,
1040
1040
  t.value.form.cols
@@ -1082,7 +1082,7 @@ const tt = /* @__PURE__ */ jt(Lt), Rt = {
1082
1082
  return { ...y, ...g };
1083
1083
  }
1084
1084
  return y;
1085
- }, ae = (f) => {
1085
+ }, oe = (f) => {
1086
1086
  var C, y, Y, ee, se;
1087
1087
  const D = typeof f.editor == "function" ? f.editor(h.value, (C = t.value.form) == null ? void 0 : C.modalState) : f.editor;
1088
1088
  return ((y = t.value.form) == null ? void 0 : y.modalState) === "edit" ? ((Y = D == null ? void 0 : D.ep) == null ? void 0 : Y.type) ?? (D == null ? void 0 : D.type) ?? f.type : ((ee = t.value.form) == null ? void 0 : ee.modalState) === "add" ? ((se = D == null ? void 0 : D.ap) == null ? void 0 : se.type) ?? (D == null ? void 0 : D.type) ?? f.type : (D == null ? void 0 : D.type) ?? f.type;
@@ -1090,7 +1090,7 @@ const tt = /* @__PURE__ */ jt(Lt), Rt = {
1090
1090
  Pe(() => {
1091
1091
  R();
1092
1092
  }), Vt(() => {
1093
- o.value = null;
1093
+ a.value = null;
1094
1094
  });
1095
1095
  const R = () => {
1096
1096
  for (const [f, D] of Object.entries(E.value))
@@ -1110,7 +1110,7 @@ const tt = /* @__PURE__ */ jt(Lt), Rt = {
1110
1110
  }), f.get(y).items.push({ key: D, item: C });
1111
1111
  }
1112
1112
  }), f.forEach((D) => {
1113
- D.tabPane = Me(...D.items.map(({ item: C }) => C.tabPane || {}));
1113
+ D.tabPane = Te(...D.items.map(({ item: C }) => C.tabPane || {}));
1114
1114
  }), Array.from(f.values());
1115
1115
  }), Z = [
1116
1116
  {
@@ -1118,7 +1118,7 @@ const tt = /* @__PURE__ */ jt(Lt), Rt = {
1118
1118
  label: t.value.form.submit.label,
1119
1119
  click: t.value.form.submit.click,
1120
1120
  hidden: t.value.form.submit.hidden,
1121
- info: ke(t.value.form.submit, (f) => !["click"].includes(f)),
1121
+ info: _e(t.value.form.submit, (f) => !["click"].includes(f)),
1122
1122
  sort: t.value.form.submit.sort ?? 1,
1123
1123
  // 使用空值合并运算符
1124
1124
  originalOrder: 0
@@ -1128,22 +1128,22 @@ const tt = /* @__PURE__ */ jt(Lt), Rt = {
1128
1128
  name: "f-reset",
1129
1129
  label: t.value.form.reset.label,
1130
1130
  click: t.value.form.reset.click,
1131
- info: ke(t.value.form.reset, (f) => !["click"].includes(f)),
1131
+ info: _e(t.value.form.reset, (f) => !["click"].includes(f)),
1132
1132
  hidden: t.value.form.reset.hidden,
1133
1133
  sort: t.value.form.reset.sort ?? 2,
1134
1134
  // 使用空值合并运算符
1135
1135
  originalOrder: 1
1136
1136
  // 添加原始顺序标识
1137
1137
  }
1138
- ], oe = Ue(() => Z.filter((f) => !f.hidden).sort((f, D) => f.sort - D.sort || f.originalOrder - D.originalOrder));
1138
+ ], re = Ue(() => Z.filter((f) => !f.hidden).sort((f, D) => f.sort - D.sort || f.originalOrder - D.originalOrder));
1139
1139
  return (f, D) => {
1140
1140
  const C = j("el-form-item"), y = j("el-col"), Y = j("el-tab-pane"), ee = j("el-tabs"), se = j("el-button"), A = j("el-form");
1141
1141
  return r(), S(A, F({
1142
1142
  ref_key: "gform",
1143
- ref: o,
1143
+ ref: a,
1144
1144
  model: t.value,
1145
1145
  style: { width: "98%", padding: 0, margin: 0, "box-sizing": "border-box" }
1146
- }, L(ke)(t.value.form, (b) => !["footer", "submit", "reset", "slots", "type", "sort"].includes(b)), { class: "g-form-container" }), {
1146
+ }, L(_e)(t.value.form, (b) => !["footer", "submit", "reset", "slots", "type", "sort"].includes(b)), { class: "g-form-container" }), {
1147
1147
  default: v(() => [
1148
1148
  _.value.length > 0 ? m(f.$slots, "default", { key: 0 }, () => {
1149
1149
  var b, g, M;
@@ -1182,19 +1182,19 @@ const tt = /* @__PURE__ */ jt(Lt), Rt = {
1182
1182
  formInfo: h.value,
1183
1183
  model: t.value
1184
1184
  }, () => [
1185
- (r(), S(Je, {
1185
+ (r(), S(Ze, {
1186
1186
  modelValue: t.value[s.key].value,
1187
- "onUpdate:modelValue": (re) => t.value[s.key].value = re,
1187
+ "onUpdate:modelValue": (ue) => t.value[s.key].value = ue,
1188
1188
  item: z(s),
1189
1189
  ctrlKey: s.key,
1190
- ctrlType: ae(s == null ? void 0 : s.item),
1190
+ ctrlType: oe(s == null ? void 0 : s.item),
1191
1191
  model: t.value,
1192
1192
  key: s.key,
1193
1193
  class: "g-ctrl-container",
1194
1194
  t: "f",
1195
1195
  formInfo: h.value
1196
1196
  }, fe({ _: 2 }, [
1197
- B(f.$slots, (re, ce) => ({
1197
+ B(f.$slots, (ue, ce) => ({
1198
1198
  name: ce,
1199
1199
  fn: v((ye) => [
1200
1200
  m(f.$slots, ce, {
@@ -1224,14 +1224,14 @@ const tt = /* @__PURE__ */ jt(Lt), Rt = {
1224
1224
  style: xe(t.value.form.footer.style)
1225
1225
  }, [
1226
1226
  m(f.$slots, "f-footer-left"),
1227
- (r(!0), q(P, null, B(oe.value, (u) => (r(), q(P, null, [
1227
+ (r(!0), q(P, null, B(re.value, (u) => (r(), q(P, null, [
1228
1228
  m(f.$slots, u.name + "-left"),
1229
1229
  m(f.$slots, u.name, {}, () => [
1230
1230
  J(se, F({ ref_for: !0 }, u.info, {
1231
- onClick: ft((s) => u.click(h.value, t.value), ["stop"])
1231
+ onClick: mt((s) => u.click(h.value, t.value), ["stop"])
1232
1232
  }), {
1233
1233
  default: v(() => [
1234
- we(Ee(u == null ? void 0 : u.label), 1)
1234
+ ke(Ee(u == null ? void 0 : u.label), 1)
1235
1235
  ]),
1236
1236
  _: 2
1237
1237
  }, 1040, ["onClick"])
@@ -1264,7 +1264,7 @@ const tt = /* @__PURE__ */ jt(Lt), Rt = {
1264
1264
  item: u,
1265
1265
  model: t.value
1266
1266
  }, () => [
1267
- we(Ee(u.label), 1)
1267
+ ke(Ee(u.label), 1)
1268
1268
  ])
1269
1269
  ]),
1270
1270
  default: v(() => [
@@ -1273,12 +1273,12 @@ const tt = /* @__PURE__ */ jt(Lt), Rt = {
1273
1273
  formInfo: h.value,
1274
1274
  model: t.value
1275
1275
  }, () => [
1276
- (r(), S(Je, {
1276
+ (r(), S(Ze, {
1277
1277
  modelValue: t.value[s].value,
1278
1278
  "onUpdate:modelValue": (H) => t.value[s].value = H,
1279
1279
  item: z(u, !0),
1280
1280
  ctrlKey: s,
1281
- ctrlType: ae(u),
1281
+ ctrlType: oe(u),
1282
1282
  key: s,
1283
1283
  model: t.value,
1284
1284
  class: "g-ctrl-container",
@@ -1287,9 +1287,9 @@ const tt = /* @__PURE__ */ jt(Lt), Rt = {
1287
1287
  }, fe({ _: 2 }, [
1288
1288
  B(f.$slots, (H, K) => ({
1289
1289
  name: K,
1290
- fn: v((re) => [
1290
+ fn: v((ue) => [
1291
1291
  m(f.$slots, K, {
1292
- data: re,
1292
+ data: ue,
1293
1293
  item: u,
1294
1294
  model: t.value
1295
1295
  })
@@ -1309,14 +1309,14 @@ const tt = /* @__PURE__ */ jt(Lt), Rt = {
1309
1309
  style: xe(t.value.form.footer.style)
1310
1310
  }, [
1311
1311
  m(f.$slots, "f-footer-left"),
1312
- (r(!0), q(P, null, B(oe.value, (u) => (r(), q(P, null, [
1312
+ (r(!0), q(P, null, B(re.value, (u) => (r(), q(P, null, [
1313
1313
  m(f.$slots, u.name + "-left"),
1314
1314
  m(f.$slots, u.name, {}, () => [
1315
1315
  J(se, F({ ref_for: !0 }, u.info, {
1316
- onClick: ft((s) => u.click(h.value, t.value), ["stop"])
1316
+ onClick: mt((s) => u.click(h.value, t.value), ["stop"])
1317
1317
  }), {
1318
1318
  default: v(() => [
1319
- we(Ee(u == null ? void 0 : u.label), 1)
1319
+ ke(Ee(u == null ? void 0 : u.label), 1)
1320
1320
  ]),
1321
1321
  _: 2
1322
1322
  }, 1040, ["onClick"])
@@ -1333,7 +1333,7 @@ const tt = /* @__PURE__ */ jt(Lt), Rt = {
1333
1333
  }, 16, ["model"]);
1334
1334
  };
1335
1335
  }
1336
- }), pt = {
1336
+ }), vt = {
1337
1337
  __name: "g-query-item",
1338
1338
  props: /* @__PURE__ */ Be(["more"], {
1339
1339
  modelValue: { required: !0 },
@@ -1343,13 +1343,13 @@ const tt = /* @__PURE__ */ jt(Lt), Rt = {
1343
1343
  }),
1344
1344
  emits: ["update:modelValue", "update:info"],
1345
1345
  setup(c) {
1346
- const d = Ie(c, "modelValue"), t = c, e = Ie(c, "info"), o = (V) => Ue(() => Object.fromEntries(Object.entries(d.value).filter((T) => typeof T[1].search == "function" ? T[1].search && T[1].search(e.value).more === V : T[1].search && T[1].search.more === V).map((T) => [T[0], T[1]]))).value, i = (V) => typeof V.search == "function" ? V.search(e.value) : V.search || {}, I = (V) => {
1346
+ const d = Ie(c, "modelValue"), t = c, e = Ie(c, "info"), a = (V) => Ue(() => Object.fromEntries(Object.entries(d.value).filter((T) => typeof T[1].search == "function" ? T[1].search && T[1].search(e.value).more === V : T[1].search && T[1].search.more === V).map((T) => [T[0], T[1]]))).value, i = (V) => typeof V.search == "function" ? V.search(e.value) : V.search || {}, I = (V) => {
1347
1347
  const T = i(V);
1348
1348
  return (T == null ? void 0 : T.type) || V.type;
1349
1349
  };
1350
1350
  return (V, T) => {
1351
1351
  const $ = j("el-form-item");
1352
- return r(!0), q(P, null, B(o(t.more), (k, z) => m(V.$slots, `q-${z}`, {
1352
+ return r(!0), q(P, null, B(a(t.more), (k, z) => m(V.$slots, `q-${z}`, {
1353
1353
  key: z,
1354
1354
  item: k,
1355
1355
  queryModel: e.value,
@@ -1366,9 +1366,9 @@ const tt = /* @__PURE__ */ jt(Lt), Rt = {
1366
1366
  })
1367
1367
  ]),
1368
1368
  default: v(() => [
1369
- J(Je, {
1369
+ J(Ze, {
1370
1370
  modelValue: e.value[z],
1371
- "onUpdate:modelValue": (ae) => e.value[z] = ae,
1371
+ "onUpdate:modelValue": (oe) => e.value[z] = oe,
1372
1372
  item: { ...k == null ? void 0 : k.editor, ...i(k) },
1373
1373
  ctrlKey: z,
1374
1374
  ctrlType: I(k),
@@ -1376,10 +1376,10 @@ const tt = /* @__PURE__ */ jt(Lt), Rt = {
1376
1376
  t: "q",
1377
1377
  formInfo: e.value
1378
1378
  }, fe({ _: 2 }, [
1379
- B(Object.keys(V.$slots), (ae) => ({
1380
- name: ae,
1379
+ B(Object.keys(V.$slots), (oe) => ({
1380
+ name: oe,
1381
1381
  fn: v((R) => [
1382
- m(V.$slots, ae, {
1382
+ m(V.$slots, oe, {
1383
1383
  data: R,
1384
1384
  item: k,
1385
1385
  model: d.value
@@ -1395,8 +1395,8 @@ const tt = /* @__PURE__ */ jt(Lt), Rt = {
1395
1395
  }
1396
1396
  }, je = (c, d) => {
1397
1397
  const t = c.__vccOpts || c;
1398
- for (const [e, o] of d)
1399
- t[e] = o;
1398
+ for (const [e, a] of d)
1399
+ t[e] = a;
1400
1400
  return t;
1401
1401
  }, Qt = {
1402
1402
  key: 0,
@@ -1409,7 +1409,7 @@ const tt = /* @__PURE__ */ jt(Lt), Rt = {
1409
1409
  },
1410
1410
  emits: /* @__PURE__ */ Be(["query", "reset"], ["update:modelValue"]),
1411
1411
  setup(c, { emit: d }) {
1412
- const t = Ie(c, "modelValue"), e = d, o = ut("options"), i = de(!1);
1412
+ const t = Ie(c, "modelValue"), e = d, a = nt("options"), i = de(!1);
1413
1413
  let I = Object.fromEntries(Object.entries(t.value).filter((E) => E[1].search).map(([E, h]) => [E, h.value]));
1414
1414
  const V = de(I), T = {
1415
1415
  hidden: !1,
@@ -1459,7 +1459,7 @@ const tt = /* @__PURE__ */ jt(Lt), Rt = {
1459
1459
  }
1460
1460
  }
1461
1461
  };
1462
- t.value.query = Me(T, o == null ? void 0 : o.query, t.value.query);
1462
+ t.value.query = Te(T, a == null ? void 0 : a.query, t.value.query);
1463
1463
  const $ = {
1464
1464
  2: {
1465
1465
  title: "更多查询",
@@ -1477,7 +1477,7 @@ const tt = /* @__PURE__ */ jt(Lt), Rt = {
1477
1477
  trigger: "click"
1478
1478
  }
1479
1479
  };
1480
- t.value.query.more.dialog = Me(
1480
+ t.value.query.more.dialog = Te(
1481
1481
  $[t.value.query.more.mode] || {},
1482
1482
  t.value.query.more.dialog
1483
1483
  );
@@ -1488,26 +1488,26 @@ const tt = /* @__PURE__ */ jt(Lt), Rt = {
1488
1488
  width: "280px"
1489
1489
  }
1490
1490
  };
1491
- t.value.queryItems = Me(k, o == null ? void 0 : o.queryItems, t.value.queryItems);
1491
+ t.value.queryItems = Te(k, a == null ? void 0 : a.queryItems, t.value.queryItems);
1492
1492
  const z = (E, h) => {
1493
- const _ = Object.keys(E.slots).filter((Z) => Z !== "default").reduce((Z, oe) => (Z[oe] = (te) => E.slots[oe]({
1493
+ const _ = Object.keys(E.slots).filter((Z) => Z !== "default").reduce((Z, re) => (Z[re] = (le) => E.slots[re]({
1494
1494
  model: t.value
1495
1495
  // 传递当前模型数据
1496
1496
  }), Z), {});
1497
- return qe(pt, {
1497
+ return qe(vt, {
1498
1498
  modelValue: t.value,
1499
1499
  "onUpdate:modelValue": (Z) => t.value = Z,
1500
1500
  info: V.value,
1501
1501
  "onUpdate:info": (Z) => V.value = Z,
1502
1502
  more: h
1503
1503
  }, _);
1504
- }, ae = gt(), R = () => {
1505
- var _, Z, oe, te, me, pe, ve, f, D;
1504
+ }, oe = gt(), R = () => {
1505
+ var _, Z, re, le, me, pe, ve, f, D;
1506
1506
  const E = [
1507
1507
  {
1508
1508
  key: "query",
1509
- hidden: (oe = (Z = (_ = t.value) == null ? void 0 : _.query) == null ? void 0 : Z.query) == null ? void 0 : oe.hidden,
1510
- component: _e,
1509
+ hidden: (re = (Z = (_ = t.value) == null ? void 0 : _.query) == null ? void 0 : Z.query) == null ? void 0 : re.hidden,
1510
+ component: Ce,
1511
1511
  props: {
1512
1512
  ...t.value.query.query,
1513
1513
  onClick: t.value.query.query.click
@@ -1517,8 +1517,8 @@ const tt = /* @__PURE__ */ jt(Lt), Rt = {
1517
1517
  },
1518
1518
  {
1519
1519
  key: "reset",
1520
- hidden: (pe = (me = (te = t.value) == null ? void 0 : te.query) == null ? void 0 : me.reset) == null ? void 0 : pe.hidden,
1521
- component: _e,
1520
+ hidden: (pe = (me = (le = t.value) == null ? void 0 : le.query) == null ? void 0 : me.reset) == null ? void 0 : pe.hidden,
1521
+ component: Ce,
1522
1522
  props: {
1523
1523
  ...t.value.query.reset,
1524
1524
  onClick: t.value.query.reset.click
@@ -1529,7 +1529,7 @@ const tt = /* @__PURE__ */ jt(Lt), Rt = {
1529
1529
  {
1530
1530
  key: "more",
1531
1531
  hidden: (D = (f = (ve = t.value) == null ? void 0 : ve.query) == null ? void 0 : f.more) == null ? void 0 : D.hidden,
1532
- component: t.value.query.more.mode === 3 ? et : _e,
1532
+ component: t.value.query.more.mode === 3 ? tt : Ce,
1533
1533
  props: t.value.query.more.mode === 3 ? { ...t.value.query.more.dialog } : {
1534
1534
  ...t.value.query.more,
1535
1535
  onClick: t.value.query.more.click
@@ -1538,31 +1538,31 @@ const tt = /* @__PURE__ */ jt(Lt), Rt = {
1538
1538
  sort: t.value.query.more.sort || 0,
1539
1539
  content: t.value.query.more.mode === 3 ? () => qe(Ge, {
1540
1540
  class: "query-form",
1541
- ...ke(t.value.query, (C) => !["query", "more", "reset"].includes(C))
1542
- }, () => z({ slots: ae }, !0)) : null
1541
+ ..._e(t.value.query, (C) => !["query", "more", "reset"].includes(C))
1542
+ }, () => z({ slots: oe }, !0)) : null
1543
1543
  }
1544
1544
  ];
1545
- return E.sort((C, y) => C.sort - y.sort), E.filter((C) => !C.hidden).map((C) => C.key === "more" && C.component === et ? qe(et, C.props, {
1546
- reference: () => qe(_e, t.value.query.more, () => C.label),
1545
+ return E.sort((C, y) => C.sort - y.sort), E.filter((C) => !C.hidden).map((C) => C.key === "more" && C.component === tt ? qe(tt, C.props, {
1546
+ reference: () => qe(Ce, t.value.query.more, () => C.label),
1547
1547
  default: C.content
1548
1548
  }) : (C.props.slot = "query-" + C.key, C.label ? qe(C.component, C.props, () => C.label) : qe(C.component, C.props)));
1549
1549
  };
1550
1550
  return (E, h) => {
1551
- var oe, te, me, pe, ve, f, D, C, y, Y, ee, se, A, b, g, M, u;
1551
+ var re, le, me, pe, ve, f, D, C, y, Y, ee, se, A, b, g, M, u;
1552
1552
  const _ = j("el-form-item"), Z = j("el-drawer");
1553
1553
  return r(), q(P, null, [
1554
1554
  X("div", {
1555
1555
  class: "g-query-container",
1556
- style: xe((te = (oe = t.value.query) == null ? void 0 : oe.container) == null ? void 0 : te.style)
1556
+ style: xe((le = (re = t.value.query) == null ? void 0 : re.container) == null ? void 0 : le.style)
1557
1557
  }, [
1558
- J(L(Ge), Xe(mt(L(ke)(t.value.query, (s) => !["query", "more", "reset", "btns"].includes(s)))), {
1558
+ J(L(Ge), Xe(pt(L(_e)(t.value.query, (s) => !["query", "more", "reset", "btns"].includes(s)))), {
1559
1559
  default: v(() => {
1560
1560
  var s, x;
1561
1561
  return [
1562
1562
  (r(), S(Ae(z({ slots: E.$slots }, void 0)))),
1563
1563
  ((x = (s = t.value.query) == null ? void 0 : s.container) == null ? void 0 : x.inline) === !0 ? (r(), S(_, { key: 0 }, {
1564
1564
  default: v(() => {
1565
- var H, K, re, ce, ye;
1565
+ var H, K, ue, ce, ye;
1566
1566
  return [
1567
1567
  X("div", {
1568
1568
  style: xe((K = (H = t.value.query) == null ? void 0 : H.btns) == null ? void 0 : K.style)
@@ -1576,7 +1576,7 @@ const tt = /* @__PURE__ */ jt(Lt), Rt = {
1576
1576
  ]),
1577
1577
  _: 3
1578
1578
  })) : (r(), q(P, { key: 1 }, [
1579
- (ye = (ce = (re = t.value) == null ? void 0 : re.query) == null ? void 0 : ce.btns) != null && ye.group ? (r(), S(L(Qe), { key: 0 }, {
1579
+ (ye = (ce = (ue = t.value) == null ? void 0 : ue.query) == null ? void 0 : ce.btns) != null && ye.group ? (r(), S(L(Qe), { key: 0 }, {
1580
1580
  default: v(() => [
1581
1581
  (r(!0), q(P, null, B(R(), (he) => m(E.$slots, he.props.slot, {}, () => [
1582
1582
  (r(), S(Ae(he)))
@@ -1632,9 +1632,9 @@ const tt = /* @__PURE__ */ jt(Lt), Rt = {
1632
1632
  "show-close": !1
1633
1633
  }, t.value.query.more.dialog), fe({
1634
1634
  default: v(() => [
1635
- J(L(Ge), F(L(ke)(t.value.query, (s) => !["query", "more", "reset"].includes(s)), { style: { width: "98%" } }), {
1635
+ J(L(Ge), F(L(_e)(t.value.query, (s) => !["query", "more", "reset"].includes(s)), { style: { width: "98%" } }), {
1636
1636
  default: v(() => [
1637
- J(pt, {
1637
+ J(vt, {
1638
1638
  modelValue: t.value,
1639
1639
  "onUpdate:modelValue": h[0] || (h[0] = (s) => t.value = s),
1640
1640
  info: V.value,
@@ -1657,20 +1657,20 @@ const tt = /* @__PURE__ */ jt(Lt), Rt = {
1657
1657
  (u = (M = (g = (b = (A = t.value) == null ? void 0 : A.query) == null ? void 0 : b.more) == null ? void 0 : g.dialog) == null ? void 0 : M.footer) != null && u.hidden ? void 0 : {
1658
1658
  name: "footer",
1659
1659
  fn: v(() => [
1660
- X("div", Xe(mt(t.value.query.more.dialog.footer)), [
1661
- J(L(_e), F(t.value.query.query, {
1660
+ X("div", Xe(pt(t.value.query.more.dialog.footer)), [
1661
+ J(L(Ce), F(t.value.query.query, {
1662
1662
  onClick: h[2] || (h[2] = (s) => t.value.query.query.click())
1663
1663
  }), {
1664
1664
  default: v(() => [
1665
- we(Ee(t.value.query.query.label), 1)
1665
+ ke(Ee(t.value.query.query.label), 1)
1666
1666
  ]),
1667
1667
  _: 1
1668
1668
  }, 16),
1669
- J(L(_e), F(t.value.query.reset, {
1669
+ J(L(Ce), F(t.value.query.reset, {
1670
1670
  onClick: h[3] || (h[3] = (s) => t.value.query.reset.click())
1671
1671
  }), {
1672
1672
  default: v(() => [
1673
- we(Ee(t.value.query.reset.label), 1)
1673
+ ke(Ee(t.value.query.reset.label), 1)
1674
1674
  ]),
1675
1675
  _: 1
1676
1676
  }, 16)
@@ -1689,7 +1689,7 @@ const tt = /* @__PURE__ */ jt(Lt), Rt = {
1689
1689
  return [
1690
1690
  i.value && !((H = (x = (s = t.value) == null ? void 0 : s.query) == null ? void 0 : x.more) != null && H.hidden) && t.value.query.more.mode == 1 ? (r(), q("div", Qt, [
1691
1691
  X("div", Xt, [
1692
- t.value.query.more.mode == 1 ? Tt((r(), S(L(Ge), Xe(F({ key: 0 }, L(ke)(t.value.query, (K) => !["query", "more", "reset"].includes(K)))), {
1692
+ t.value.query.more.mode == 1 ? Tt((r(), S(L(Ge), Xe(F({ key: 0 }, L(_e)(t.value.query, (K) => !["query", "more", "reset"].includes(K)))), {
1693
1693
  default: v(() => [
1694
1694
  (r(), S(Ae(z({ slots: E.$slots }, !0))))
1695
1695
  ]),
@@ -1717,16 +1717,16 @@ const tt = /* @__PURE__ */ jt(Lt), Rt = {
1717
1717
  },
1718
1718
  emits: ["excel"],
1719
1719
  setup(c, { emit: d }) {
1720
- const t = c, e = d, o = de(t.items), i = () => {
1721
- o.value.forEach((T) => {
1720
+ const t = c, e = d, a = de(t.items), i = () => {
1721
+ a.value.forEach((T) => {
1722
1722
  T.value = !0;
1723
1723
  });
1724
1724
  }, I = () => {
1725
- o.value.forEach((T) => {
1725
+ a.value.forEach((T) => {
1726
1726
  T.value = !1;
1727
1727
  });
1728
1728
  }, V = () => {
1729
- e("excel", o.value, (T, $ = "excel.xls") => {
1729
+ e("excel", a.value, (T, $ = "excel.xls") => {
1730
1730
  if (!T) {
1731
1731
  console.error("下载链接无效");
1732
1732
  return;
@@ -1751,7 +1751,7 @@ const tt = /* @__PURE__ */ jt(Lt), Rt = {
1751
1751
  $ && $.destroy();
1752
1752
  });
1753
1753
  }), (T, $) => {
1754
- const k = j("el-divider"), z = j("el-alert"), ae = j("el-checkbox"), R = j("el-button");
1754
+ const k = j("el-divider"), z = j("el-alert"), oe = j("el-checkbox"), R = j("el-button");
1755
1755
  return r(), q("div", Kt, [
1756
1756
  X("div", el, [
1757
1757
  X("div", tl, [
@@ -1774,7 +1774,7 @@ const tt = /* @__PURE__ */ jt(Lt), Rt = {
1774
1774
  }),
1775
1775
  $[0] || ($[0] = X("div", { style: { margin: "1px 0" } }, null, -1)),
1776
1776
  X("div", ll, [
1777
- (r(!0), q(P, null, B(o.value, (E) => (r(), S(ae, {
1777
+ (r(!0), q(P, null, B(a.value, (E) => (r(), S(oe, {
1778
1778
  class: "check-box-hover",
1779
1779
  style: { width: "120px !important", height: "30px !important", border: "1px solid #dfe6ec", margin: "5px !important", "border-radius": "3px !important", "padding-left": "5px !important", display: "flex !important", "align-items": "center !important" },
1780
1780
  "data-id": E.key,
@@ -1797,10 +1797,10 @@ const tt = /* @__PURE__ */ jt(Lt), Rt = {
1797
1797
  J(R, {
1798
1798
  type: "primary",
1799
1799
  onClick: V,
1800
- disabled: o.value.filter((E) => E.value).length < 1
1800
+ disabled: a.value.filter((E) => E.value).length < 1
1801
1801
  }, {
1802
1802
  default: v(() => [
1803
- we(Ee(t.commitText), 1)
1803
+ ke(Ee(t.commitText), 1)
1804
1804
  ]),
1805
1805
  _: 1
1806
1806
  }, 8, ["disabled"])
@@ -1858,13 +1858,13 @@ const cl = {
1858
1858
  }),
1859
1859
  emits: ["update:modelValue"],
1860
1860
  setup(c) {
1861
- const d = c, t = de([]), e = Ie(c, "modelValue"), o = async ($, k) => {
1861
+ const d = c, t = de([]), e = Ie(c, "modelValue"), a = async ($, k) => {
1862
1862
  $ ? e.value[k].showCol = !0 : e.value[k].showCol = !1;
1863
1863
  try {
1864
1864
  const z = await Ne(e.value.table.user, d.name, k, { showCol: $ });
1865
1865
  console.log(z);
1866
1866
  } catch (z) {
1867
- console.error("列显示状态保存信息时出错:", z), Te({
1867
+ console.error("列显示状态保存信息时出错:", z), Fe({
1868
1868
  type: "error",
1869
1869
  message: "列显示状态保存信息失败!"
1870
1870
  });
@@ -1878,14 +1878,14 @@ const cl = {
1878
1878
  //
1879
1879
  sort: !0,
1880
1880
  onEnd: () => {
1881
- k.toArray().forEach(async (ae, R) => {
1882
- e.value[ae].sort = R;
1883
- let E = e.value[ae].width || "auto";
1881
+ k.toArray().forEach(async (oe, R) => {
1882
+ e.value[oe].sort = R;
1883
+ let E = e.value[oe].width || "auto";
1884
1884
  try {
1885
- const h = await Ne(e.value.table.user, d.name, ae, { sort: R, width: E });
1885
+ const h = await Ne(e.value.table.user, d.name, oe, { sort: R, width: E });
1886
1886
  console.log(h);
1887
1887
  } catch (h) {
1888
- console.error("列排序和宽度保存信息时出错:", h), Te({
1888
+ console.error("列排序和宽度保存信息时出错:", h), Fe({
1889
1889
  type: "error",
1890
1890
  message: "列排序和宽度保存信息失败!"
1891
1891
  });
@@ -1906,7 +1906,7 @@ const cl = {
1906
1906
  console.log(k);
1907
1907
  }
1908
1908
  } catch ($) {
1909
- console.error("全选列保存信息时出错:", $), Te({
1909
+ console.error("全选列保存信息时出错:", $), Fe({
1910
1910
  type: "error",
1911
1911
  message: "全选列保存信息失败!"
1912
1912
  });
@@ -1924,13 +1924,13 @@ const cl = {
1924
1924
  console.log(z);
1925
1925
  }
1926
1926
  } catch ($) {
1927
- console.error("清除列保存信息时出错:", $), Te({
1927
+ console.error("清除列保存信息时出错:", $), Fe({
1928
1928
  type: "error",
1929
1929
  message: "清除列保存信息失败!"
1930
1930
  });
1931
1931
  }
1932
1932
  }, T = () => {
1933
- yt.confirm("确定要复位吗?", "提示", {
1933
+ ht.confirm("确定要复位吗?", "提示", {
1934
1934
  confirmButtonText: "确定",
1935
1935
  cancelButtonText: "取消",
1936
1936
  type: "warning"
@@ -1938,7 +1938,7 @@ const cl = {
1938
1938
  sl(e.value.table.user, d.name).then(($) => {
1939
1939
  console.log($), window.location.reload();
1940
1940
  }).catch(($) => {
1941
- console.error("复位操作出错:", $), Te({
1941
+ console.error("复位操作出错:", $), Fe({
1942
1942
  type: "info",
1943
1943
  message: "复位失败!"
1944
1944
  });
@@ -1955,7 +1955,7 @@ const cl = {
1955
1955
  width: k.width || "auto"
1956
1956
  })).sort(($, k) => $.sort - k.sort), i();
1957
1957
  }), ($, k) => {
1958
- const z = j("el-divider"), ae = j("el-alert"), R = j("el-checkbox");
1958
+ const z = j("el-divider"), oe = j("el-alert"), R = j("el-checkbox");
1959
1959
  return r(), q("div", null, [
1960
1960
  X("div", cl, [
1961
1961
  X("a", { onClick: I }, "全选"),
@@ -1964,7 +1964,7 @@ const cl = {
1964
1964
  J(z, { direction: "vertical" }),
1965
1965
  X("a", { onClick: T }, "复位")
1966
1966
  ]),
1967
- J(ae, {
1967
+ J(oe, {
1968
1968
  title: "拖动表格列标题可以改变表格列显示顺序 !",
1969
1969
  type: "warning",
1970
1970
  "show-icon": "",
@@ -1978,7 +1978,7 @@ const cl = {
1978
1978
  "onUpdate:modelValue": (h) => E.showCol = h,
1979
1979
  "data-id": E.value,
1980
1980
  class: bt(["check-box-hover", E.value == "control" ? "filtered" : ""]),
1981
- onChange: (h) => o(h, E.value),
1981
+ onChange: (h) => a(h, E.value),
1982
1982
  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" },
1983
1983
  value: E.value,
1984
1984
  title: E.label,
@@ -2018,12 +2018,10 @@ const cl = {
2018
2018
  }),
2019
2019
  emits: /* @__PURE__ */ Be(["load", "open", "delete", "submit", "reset", "download", "row-save"], ["update:modelValue"]),
2020
2020
  setup(c, { emit: d }) {
2021
- var Fe, De, n, N, ie, Ve, Ye;
2022
- const t = d, e = Ie(c, "modelValue"), o = ut("options"), i = de({}), I = Object.entries(e.value).filter(([l, a]) => (a == null ? void 0 : a.search) !== void 0).map(([l, a]) => [l, a.value]);
2021
+ var Se, Ve, n, N, ie, Me, Ye;
2022
+ const t = d, e = Ie(c, "modelValue"), a = nt("options"), i = de({}), I = Object.entries(e.value).filter(([l, o]) => (o == null ? void 0 : o.search) !== void 0).map(([l, o]) => [l, o.value]);
2023
2023
  i.value = Object.fromEntries(I);
2024
- const V = de(!1), T = ["type", "index", "label", "column-key", "prop", "width", "min-width", "fixed", "render-header", "sortable", "sort-method", "sort-by", "sort-orders", "resizable", "formatter", "show-overflow-tooltip", "align", "header-align", "class-name", "label-class-name", "selectable", "reserve-selection", "filters", "filter-placement", "filter-class-name", "filter-multiple", "filter-method", "filtered-value"], $ = de([]), k = c, z = nt(), ae = de({}), R = de([]), E = de(null), h = de("");
2025
- E.value = Object.assign({}, Object.fromEntries(Object.entries(ke(e.value, (l, a) => a.type != "control" && a.editor !== !1 && a.type != "hidden")).map(([l, a]) => [l, a.value])));
2026
- const _ = {
2024
+ const V = de(!1), T = ["type", "index", "label", "column-key", "prop", "width", "min-width", "fixed", "render-header", "sortable", "sort-method", "sort-by", "sort-orders", "resizable", "formatter", "show-overflow-tooltip", "align", "header-align", "class-name", "label-class-name", "selectable", "reserve-selection", "filters", "filter-placement", "filter-class-name", "filter-multiple", "filter-method", "filtered-value"], $ = de([]), k = c, z = st(), oe = de({}), R = de([]), E = de(null), h = de(""), _ = {
2027
2025
  autoWatch: !1,
2028
2026
  data: [],
2029
2027
  border: !0,
@@ -2032,30 +2030,30 @@ const cl = {
2032
2030
  fit: !1,
2033
2031
  type: "hidden",
2034
2032
  load: () => {
2035
- let { currentPage: l, pageSize: a } = e.value.table.page;
2033
+ let { currentPage: l, pageSize: o } = e.value.table.page;
2036
2034
  try {
2037
- t("load", { currentPage: l, pageSize: a, ...i.value }, (p, O, { fields: G = [], sums: Q = {} } = {}) => {
2038
- var ue, Se;
2035
+ t("load", { currentPage: l, pageSize: o, ...i.value }, (p, O, { fields: G = [], sums: Q = {} } = {}) => {
2036
+ var te, we;
2039
2037
  if (h.value = Math.random().toString(36).substring(2), !Array.isArray(p)) {
2040
- console.error("从 load 事件回调中接收到的数据不是数组格式。"), Te.error("数据加载失败,请检查数据格式。");
2038
+ console.error("从 load 事件回调中接收到的数据不是数组格式。"), Fe.error("数据加载失败,请检查数据格式。");
2041
2039
  return;
2042
2040
  }
2043
2041
  if (typeof O != "number") {
2044
- console.error("从 load 事件回调中接收到的 total 不是数字格式。"), Te.error("数据加载失败,请检查数据格式。");
2042
+ console.error("从 load 事件回调中接收到的 total 不是数字格式。"), Fe.error("数据加载失败,请检查数据格式。");
2045
2043
  return;
2046
2044
  }
2047
- e.value.table.data = p, ((Se = (ue = e.value.control) == null ? void 0 : ue.add) == null ? void 0 : Se.inline) === !0 && e.value.table.data.unshift(E.value), e.value.table.page.total = O, R.value = G, ae.value = Q, ye();
2045
+ e.value.table.data = p, ((we = (te = e.value.control) == null ? void 0 : te.add) == null ? void 0 : we.inline) === !0 && e.value.table.data.unshift(E.value), e.value.table.page.total = O, R.value = G, oe.value = Q, ye();
2048
2046
  }, E.value);
2049
2047
  } catch (p) {
2050
- console.error("触发 load 事件时出现错误:", p), Te.error("数据加载时出现错误,请稍后重试。");
2048
+ console.error("触发 load 事件时出现错误:", p), Fe.error("数据加载时出现错误,请稍后重试。");
2051
2049
  }
2052
2050
  },
2053
- onHeaderDragend: (l, a, p) => {
2051
+ onHeaderDragend: (l, o, p) => {
2054
2052
  var O;
2055
2053
  Ne((O = e.value.table) == null ? void 0 : O.user, k.name, p.property, { width: l });
2056
2054
  },
2057
- onRowDblclick: (l, a, p) => {
2058
- e.value.table.dblclickType == "edit" ? y(l, a, p, e) : e.value.table.dblclickType == "view" && ee(l, a, p, e);
2055
+ onRowDblclick: (l, o, p) => {
2056
+ e.value.table.dblclickType == "edit" ? y(l, o, p, e) : e.value.table.dblclickType == "view" && ee(l, o, p, e);
2059
2057
  },
2060
2058
  style: { "min-height": "100px", backgroundColor: "var(--el-bg-color)" },
2061
2059
  page: {
@@ -2079,13 +2077,13 @@ const cl = {
2079
2077
  }
2080
2078
  },
2081
2079
  dblclickType: "edit",
2082
- "summary-method": ({ columns: l, data: a }, p) => p,
2083
- onSortChange: ({ column: l, prop: a, order: p }, O) => {
2080
+ "summary-method": ({ columns: l, data: o }, p) => p,
2081
+ onSortChange: ({ column: l, prop: o, order: p }, O) => {
2084
2082
  }
2085
2083
  };
2086
- e.value.table = Me(
2084
+ e.value.table = Te(
2087
2085
  _,
2088
- o == null ? void 0 : o.table,
2086
+ a == null ? void 0 : a.table,
2089
2087
  e.value.table,
2090
2088
  z
2091
2089
  // 继承父组件的属性
@@ -2095,7 +2093,7 @@ const cl = {
2095
2093
  label: "操作",
2096
2094
  width: 250,
2097
2095
  fixed: "right",
2098
- style: { ...(De = (Fe = e.value) == null ? void 0 : Fe.control) == null ? void 0 : De.style },
2096
+ style: { ...(Ve = (Se = e.value) == null ? void 0 : Se.control) == null ? void 0 : Ve.style },
2099
2097
  validate: async (l) => await !0,
2100
2098
  add: {
2101
2099
  label: "新增",
@@ -2110,14 +2108,14 @@ const cl = {
2110
2108
  text: !0,
2111
2109
  type: "success",
2112
2110
  mode: "dialog",
2113
- auth: (l, a, p) => !1
2111
+ auth: (l, o, p) => !1
2114
2112
  },
2115
2113
  edit: {
2116
2114
  label: "编辑",
2117
2115
  text: !0,
2118
2116
  type: "primary",
2119
2117
  mode: "dialog",
2120
- auth: (l, a, p) => {
2118
+ auth: (l, o, p) => {
2121
2119
  var O, G, Q;
2122
2120
  return ((Q = (G = (O = e.value) == null ? void 0 : O.control) == null ? void 0 : G.add) == null ? void 0 : Q.inline) === !1;
2123
2121
  }
@@ -2126,7 +2124,7 @@ const cl = {
2126
2124
  text: !0,
2127
2125
  label: "删除",
2128
2126
  type: "danger",
2129
- auth: (l, a, p) => {
2127
+ auth: (l, o, p) => {
2130
2128
  var O, G, Q;
2131
2129
  return !(((Q = (G = (O = e.value) == null ? void 0 : O.control) == null ? void 0 : G.add) == null ? void 0 : Q.inline) === !0 && p === 0);
2132
2130
  },
@@ -2158,36 +2156,36 @@ const cl = {
2158
2156
  sort: -1,
2159
2157
  addLabel: "新增",
2160
2158
  auth: () => {
2161
- var l, a, p;
2162
- return ((p = (a = (l = e.value) == null ? void 0 : l.control) == null ? void 0 : a.add) == null ? void 0 : p.inline) === !0;
2159
+ var l, o, p;
2160
+ return ((p = (o = (l = e.value) == null ? void 0 : l.control) == null ? void 0 : o.add) == null ? void 0 : p.inline) === !0;
2163
2161
  }
2164
2162
  }
2165
2163
  };
2166
- e.value.control = Me(
2164
+ e.value.control = Te(
2167
2165
  Z,
2168
- o == null ? void 0 : o.control,
2166
+ a == null ? void 0 : a.control,
2169
2167
  (n = e.value) == null ? void 0 : n.control
2170
2168
  );
2171
- const oe = {
2169
+ const re = {
2172
2170
  type: "hidden",
2173
2171
  minWidth: 120,
2174
2172
  align: "center",
2175
- formatter: (l, a, p, O) => p
2173
+ formatter: (l, o, p, O) => p
2176
2174
  };
2177
- e.value.tableColumns = Me(
2178
- oe,
2179
- o == null ? void 0 : o.tableColumns,
2175
+ e.value.tableColumns = Te(
2176
+ re,
2177
+ a == null ? void 0 : a.tableColumns,
2180
2178
  (N = e.value) == null ? void 0 : N.tableColumns
2181
2179
  );
2182
- const te = {
2180
+ const le = {
2183
2181
  type: "hidden",
2184
2182
  disabled: void 0,
2185
2183
  footer: { hidden: !1 },
2186
2184
  modalState: void 0
2187
2185
  };
2188
- e.value.form = Me(
2189
- te,
2190
- o == null ? void 0 : o.form,
2186
+ e.value.form = Te(
2187
+ le,
2188
+ a == null ? void 0 : a.form,
2191
2189
  (ie = e.value) == null ? void 0 : ie.form
2192
2190
  );
2193
2191
  const me = {
@@ -2197,10 +2195,10 @@ const cl = {
2197
2195
  width: "100%"
2198
2196
  }
2199
2197
  };
2200
- e.value.formItems = Me(
2198
+ e.value.formItems = Te(
2201
2199
  me,
2202
- o == null ? void 0 : o.formItems,
2203
- (Ve = e == null ? void 0 : e.value) == null ? void 0 : Ve.formItems
2200
+ a == null ? void 0 : a.formItems,
2201
+ (Me = e == null ? void 0 : e.value) == null ? void 0 : Me.formItems
2204
2202
  );
2205
2203
  const pe = {
2206
2204
  title: "编辑",
@@ -2210,31 +2208,31 @@ const cl = {
2210
2208
  size: 700,
2211
2209
  fullScreen: !1
2212
2210
  };
2213
- e.value.dialog = Me(
2211
+ e.value.dialog = Te(
2214
2212
  pe,
2215
- o == null ? void 0 : o.dialog,
2213
+ a == null ? void 0 : a.dialog,
2216
2214
  (Ye = e.value) == null ? void 0 : Ye.dialog
2217
2215
  );
2218
- const ve = (l, a) => {
2219
- let p = a;
2220
- if (l.decimals && !isNaN(parseFloat(a)) && (typeof l.decimals == "number" ? p = parseFloat(p).toFixed(l.decimals) : typeof l.decimals == "object" && l.decimals.num && (l.decimals.pad ? p = parseFloat(p).toFixed(l.decimals.num) : p = parseFloat(parseFloat(p).toFixed(l.decimals.num)).toString())), ["date", "datetime", "time", "time-select"].includes(l.type) && tt(a).isValid()) {
2216
+ const ve = (l, o) => {
2217
+ let p = o;
2218
+ if (l.decimals && !isNaN(parseFloat(o)) && (typeof l.decimals == "number" ? p = parseFloat(p).toFixed(l.decimals) : typeof l.decimals == "object" && l.decimals.num && (l.decimals.pad ? p = parseFloat(p).toFixed(l.decimals.num) : p = parseFloat(parseFloat(p).toFixed(l.decimals.num)).toString())), ["date", "datetime", "time", "time-select"].includes(l.type) && lt(o).isValid()) {
2221
2219
  const G = {
2222
2220
  date: "YYYY-MM-DD",
2223
2221
  datetime: "YYYY-MM-DD HH:mm:ss",
2224
2222
  time: "HH:mm:ss"
2225
2223
  };
2226
- p = l.format ? tt(p).format(l.format) : tt(p).format(G[l.type]);
2224
+ p = l.format ? lt(p).format(l.format) : lt(p).format(G[l.type]);
2227
2225
  }
2228
- return l.type === "money" && (l.align = l.align || "right", l.width = l.width || 130, p = `<span title="${rt(parseFloat(p))}">${Hl(parseFloat(p))}</span>`), l.prefix && p && (p = `<span>${l.prefix}${p}</span>`), l.suffix && p && (p = `${p}<span>${l.suffix}</span>`), p;
2226
+ return l.type === "money" && (l.align = l.align || "right", l.width = l.width || 130, p = `<span title="${ut(parseFloat(p))}">${Hl(parseFloat(p))}</span>`), l.prefix && p && (p = `<span>${l.prefix}${p}</span>`), l.suffix && p && (p = `${p}<span>${l.suffix}</span>`), p;
2229
2227
  }, f = (l) => {
2230
2228
  i.value = l.value;
2231
2229
  }, D = (l) => {
2232
2230
  i.value = l, e.value.table.load();
2233
2231
  }, C = async (l) => {
2234
- var a, p;
2232
+ var o, p;
2235
2233
  e.value.form.modalState = "add";
2236
2234
  try {
2237
- if (!await ((a = e.value.control) == null ? void 0 : a.validate("add", { m: l }))) return;
2235
+ if (!await ((o = e.value.control) == null ? void 0 : o.validate("add", { m: l }))) return;
2238
2236
  } catch (O) {
2239
2237
  console.error("验证失败:", O);
2240
2238
  return;
@@ -2242,72 +2240,74 @@ const cl = {
2242
2240
  (p = e.value.control.add) != null && p.click ? e.value.control.add.click(l) : e.value.control.add.inline === !0 ? (e.value.table.data.unshift(E.value), t("open", "row-add", { initFormData: E.value })) : (e.value.form.disabled = !1, e.value.dialog.mode = e.value.control.add.mode, e.value.dialog.title = e.value.control.add.label, Object.keys(E.value).forEach((O) => {
2243
2241
  e.value[O] && (e.value[O].value = E.value[O]);
2244
2242
  }), V.value = !0, t("open", "add", { m: l }));
2245
- }, y = async (l, a, p, O) => {
2243
+ }, y = async (l, o, p, O) => {
2246
2244
  var G, Q;
2247
2245
  e.value.form.modalState = "edit";
2248
2246
  try {
2249
- if (!await ((G = e.value.control) == null ? void 0 : G.validate("edit", { row: l, column: a, $index: p, m: O }))) return;
2250
- } catch (ue) {
2251
- console.error("验证失败:", ue);
2247
+ if (!await ((G = e.value.control) == null ? void 0 : G.validate("edit", { row: l, column: o, $index: p, m: O }))) return;
2248
+ } catch (te) {
2249
+ console.error("验证失败:", te);
2252
2250
  return;
2253
2251
  }
2254
- (Q = e.value.control.edit) != null && Q.click ? e.value.control.edit.click(l, a, p, O) : (e.value.form.disabled = !1, e.value.dialog.mode = e.value.control.edit.mode, e.value.dialog.title = e.value.control.edit.label, Object.keys(l).forEach((ue) => {
2255
- e.value[ue] && (e.value[ue].value = l[ue]);
2256
- }), V.value = !0, t("open", "edit", { m: O, row: l, column: a, $index: p }));
2257
- }, Y = async (l, a, p, O) => {
2252
+ (Q = e.value.control.edit) != null && Q.click ? e.value.control.edit.click(l, o, p, O) : (e.value.form.disabled = !1, e.value.dialog.mode = e.value.control.edit.mode, e.value.dialog.title = e.value.control.edit.label, Object.keys(l).forEach((te) => {
2253
+ e.value[te] && (e.value[te].value = l[te]);
2254
+ }), V.value = !0, t("open", "edit", { m: O, row: l, column: o, $index: p }));
2255
+ }, Y = async (l, o, p, O) => {
2258
2256
  var G, Q;
2259
2257
  try {
2260
- if (!await ((G = e.value.control) == null ? void 0 : G.validate("delete", { row: l, column: a, $index: p, m: O }))) return;
2261
- } catch (ue) {
2262
- console.error("验证失败:", ue);
2258
+ if (!await ((G = e.value.control) == null ? void 0 : G.validate("delete", { row: l, column: o, $index: p, m: O }))) return;
2259
+ } catch (te) {
2260
+ console.error("验证失败:", te);
2263
2261
  return;
2264
2262
  }
2265
2263
  if ((Q = e.value.control.delete) != null && Q.click)
2266
- e.value.control.delete.click(l, a, p, O);
2264
+ e.value.control.delete.click(l, o, p, O);
2267
2265
  else {
2268
- let { message: ue, title: Se, options: ze } = e.value.control.delete.dialog;
2269
- yt.confirm(ue, Se, ze).then(() => {
2270
- t("delete", { row: l, column: a, $index: p }, (We) => {
2266
+ let { message: te, title: we, options: ze } = e.value.control.delete.dialog;
2267
+ ht.confirm(te, we, ze).then(() => {
2268
+ t("delete", { row: l, column: o, $index: p }, (We) => {
2271
2269
  We && (e.value.table.data.splice(p, 1), e.value.table.page.total--);
2272
2270
  });
2273
2271
  }).catch(() => {
2274
2272
  });
2275
2273
  }
2276
- }, ee = async (l, a, p, O) => {
2274
+ }, ee = async (l, o, p, O) => {
2277
2275
  var G, Q;
2278
2276
  e.value.form.modalState = void 0;
2279
2277
  try {
2280
- if (!await ((G = e.value.control) == null ? void 0 : G.validate("view", { row: l, column: a, $index: p, m: O }))) return;
2281
- } catch (ue) {
2282
- console.error("验证失败:", ue);
2278
+ if (!await ((G = e.value.control) == null ? void 0 : G.validate("view", { row: l, column: o, $index: p, m: O }))) return;
2279
+ } catch (te) {
2280
+ console.error("验证失败:", te);
2283
2281
  return;
2284
2282
  }
2285
- (Q = e.value.control.view) != null && Q.click ? e.value.control.view.click(l, a, p, O) : (e.value.form.disabled = !0, e.value.dialog.mode = e.value.control.view.mode, e.value.dialog.title = e.value.control.view.label, Object.keys(l).forEach((ue) => {
2286
- e.value[ue] && (e.value[ue].value = l[ue]);
2287
- }), V.value = !0, t("open", "view", { m: O, row: l, column: a, $index: p }));
2288
- }, se = (l, a, p, O) => {
2283
+ (Q = e.value.control.view) != null && Q.click ? e.value.control.view.click(l, o, p, O) : (e.value.form.disabled = !0, e.value.dialog.mode = e.value.control.view.mode, e.value.dialog.title = e.value.control.view.label, Object.keys(l).forEach((te) => {
2284
+ e.value[te] && (e.value[te].value = l[te]);
2285
+ }), V.value = !0, t("open", "view", { m: O, row: l, column: o, $index: p }));
2286
+ }, se = (l, o, p, O) => {
2289
2287
  var G;
2290
- (G = e.value.control.save) != null && G.click ? e.value.control.save.click(l, a, p, O) : t("row-save", { row: l, column: a, $index: p, data: e.value.table.data }, (Q) => {
2291
- Q && e.value.table.load();
2288
+ (G = e.value.control.save) != null && G.click ? e.value.control.save.click(l, o, p, O) : t("row-save", { row: l, column: o, $index: p, data: e.value.table.data }, (Q) => {
2289
+ Q && (e.value.table.load(), Je(() => {
2290
+ E.value = Object.assign({}, Object.fromEntries(Object.entries(_e(e.value, (te, we) => we.type != "control" && we.editor !== !1 && we.type != "hidden")).map(([te, we]) => [te, we.value])));
2291
+ }));
2292
2292
  });
2293
- }, A = (l, a) => {
2294
- t("submit", e.value.form.modalState, l, a, (p) => {
2295
- p && (V.value = !1, a.table.load());
2293
+ }, A = (l, o) => {
2294
+ t("submit", e.value.form.modalState, l, o, (p) => {
2295
+ p && (V.value = !1, o.table.load());
2296
2296
  });
2297
2297
  }, b = (l) => {
2298
2298
  t("reset", l);
2299
- }, g = (l, a) => {
2299
+ }, g = (l, o) => {
2300
2300
  var p;
2301
2301
  if ((p = l.control.download) != null && p.click)
2302
- l.control.download.click(l, a);
2302
+ l.control.download.click(l, o);
2303
2303
  else {
2304
- let O = ot({
2304
+ let O = rt({
2305
2305
  title: l.control.download.label,
2306
2306
  size: 480,
2307
2307
  width: 600,
2308
2308
  slots: {
2309
2309
  default: () => qe(ul, {
2310
- items: a,
2310
+ items: o,
2311
2311
  commitText: l.control.download.excelLabel,
2312
2312
  onExcel: (G, Q) => {
2313
2313
  t("download", G, Q), O();
@@ -2317,8 +2317,8 @@ const cl = {
2317
2317
  }, l.control.download.mode);
2318
2318
  }
2319
2319
  }, M = (l) => {
2320
- var a;
2321
- (a = l.control.setting) != null && a.click ? l.control.setting.click(l) : ot({
2320
+ var o;
2321
+ (o = l.control.setting) != null && o.click ? l.control.setting.click(l) : rt({
2322
2322
  title: l.control.setting.label,
2323
2323
  size: 470,
2324
2324
  width: 600,
@@ -2337,126 +2337,130 @@ const cl = {
2337
2337
  { type: "edit", func: y },
2338
2338
  { type: "delete", func: Y },
2339
2339
  { type: "save", func: se }
2340
- ], x = (l) => s.filter((a) => l.includes(a.type)).map(({ type: a, func: p }) => {
2340
+ ], x = (l) => s.filter((o) => l.includes(o.type)).map(({ type: o, func: p }) => {
2341
2341
  var O, G, Q;
2342
2342
  return {
2343
- name: `control-${a}`,
2344
- attr: u == null ? void 0 : u[a],
2343
+ name: `control-${o}`,
2344
+ attr: u == null ? void 0 : u[o],
2345
2345
  func: p,
2346
- label: (O = u == null ? void 0 : u[a]) == null ? void 0 : O.label,
2347
- sort: ((G = u == null ? void 0 : u[a]) == null ? void 0 : G.sort) || 0,
2348
- groupName: ((Q = u == null ? void 0 : u[a]) == null ? void 0 : Q.groupName) || "default"
2346
+ label: (O = u == null ? void 0 : u[o]) == null ? void 0 : O.label,
2347
+ sort: ((G = u == null ? void 0 : u[o]) == null ? void 0 : G.sort) || 0,
2348
+ groupName: ((Q = u == null ? void 0 : u[o]) == null ? void 0 : Q.groupName) || "default"
2349
2349
  };
2350
- }).sort((a, p) => a.sort - p.sort), H = (l) => x(l).reduce((a, p) => {
2350
+ }).sort((o, p) => o.sort - p.sort), H = (l) => x(l).reduce((o, p) => {
2351
2351
  const O = p.groupName || "default";
2352
- return a[O] || (a[O] = []), a[O].push(p), a;
2352
+ return o[O] || (o[O] = []), o[O].push(p), o;
2353
2353
  }, {}), K = Ue(() => Object.fromEntries(
2354
- Object.entries(e.value).filter(([l, a]) => a.type !== "hidden").filter(([l, a]) => a.visible !== !1).filter(([l, a]) => a.showCol !== !1).map(([l, a]) => (a.sort = typeof a.sort == "number" ? a.sort : 0, [l, a])).sort((l, a) => l[1].sort - a[1].sort)
2355
- )), re = de({}), ce = (l, a) => {
2354
+ Object.entries(e.value).filter(([l, o]) => o.type !== "hidden").filter(([l, o]) => o.visible !== !1).filter(([l, o]) => o.showCol !== !1).map(([l, o]) => (o.sort = typeof o.sort == "number" ? o.sort : 0, [l, o])).sort((l, o) => l[1].sort - o[1].sort)
2355
+ )), ue = de({}), ce = (l, o) => {
2356
2356
  const p = (O, G) => {
2357
2357
  for (const Q of O) {
2358
2358
  if (Q.value == G) return Q.label;
2359
2359
  if (Q.children) {
2360
- const ue = p(Q.children, G);
2361
- if (ue) return ue;
2360
+ const te = p(Q.children, G);
2361
+ if (te) return te;
2362
2362
  }
2363
2363
  }
2364
2364
  return null;
2365
2365
  };
2366
2366
  if (l.getDicts) {
2367
- const O = a.toString();
2368
- return re.value[O] ? (l.options = re.value[O], l.formatter || (l.formatter = (G, Q, ue, Se) => l.options && p(l.options, ue) || ue), Promise.resolve()) : l.getDicts(e.value.table.data).then((G) => {
2369
- re.value[O] = G, l.options = G, l.formatter || (l.formatter = (Q, ue, Se, ze) => l.options && p(l.options, Se) || Se);
2367
+ const O = o.toString();
2368
+ return ue.value[O] ? (l.options = ue.value[O], l.formatter || (l.formatter = (G, Q, te, we) => l.options && p(l.options, te) || te), Promise.resolve()) : l.getDicts(e.value.table.data).then((G) => {
2369
+ ue.value[O] = G, l.options = G, l.formatter || (l.formatter = (Q, te, we, ze) => l.options && p(l.options, we) || we);
2370
2370
  });
2371
2371
  }
2372
2372
  return Promise.resolve();
2373
2373
  }, ye = () => {
2374
2374
  const l = [];
2375
- Object.keys(e.value).forEach((a) => {
2376
- if (e.value[a].getDicts) {
2377
- const p = ce(e.value[a], a).then(() => {
2375
+ Object.keys(e.value).forEach((o) => {
2376
+ if (e.value[o].getDicts) {
2377
+ const p = ce(e.value[o], o).then(() => {
2378
2378
  e.value.table.data.forEach((O) => {
2379
2379
  var G;
2380
- if (e.value[a].getDicts && ((G = e.value[a]) == null ? void 0 : G.forceString) !== !1) {
2381
- const Q = O[a];
2382
- O[a] = Q != null ? Q.toString() : Q;
2380
+ if (e.value[o].getDicts && ((G = e.value[o]) == null ? void 0 : G.forceString) !== !1) {
2381
+ const Q = O[o];
2382
+ O[o] = Q != null ? Q.toString() : Q;
2383
2383
  }
2384
2384
  });
2385
2385
  }).catch((O) => {
2386
- console.error(`加载字典${a}出错:`, O);
2386
+ console.error(`加载字典${o}出错:`, O);
2387
2387
  });
2388
2388
  l.push(p);
2389
2389
  }
2390
- }), Promise.all(l).catch((a) => {
2391
- console.error("字典加载过程中发生错误:", a);
2390
+ }), Promise.all(l).catch((o) => {
2391
+ console.error("字典加载过程中发生错误:", o);
2392
2392
  });
2393
- }, he = (l, a, p, O) => {
2393
+ }, he = (l, o, p, O) => {
2394
2394
  var G, Q;
2395
- return l.table ? (G = l.table(a, p, O)) != null && G.auth ? (Q = l.table(a, p, O)) == null ? void 0 : Q.auth(a, p, O) : !0 : !1;
2396
- }, Ce = (l, a) => l.name === "control-save" && a === 0 && e.value.control.add.inline === !0 ? l.attr.addLabel : l.label;
2395
+ return l.table ? (G = l.table(o, p, O)) != null && G.auth ? (Q = l.table(o, p, O)) == null ? void 0 : Q.auth(o, p, O) : !0 : !1;
2396
+ }, De = (l, o) => l.name === "control-save" && o === 0 && e.value.control.add.inline === !0 ? l.attr.addLabel : l.label;
2397
2397
  return qt(() => {
2398
2398
  e.value.table.autoWatch && e.value.table.load();
2399
2399
  }), Pe(async () => {
2400
2400
  var l;
2401
- if ($.value = Object.values(e.value).filter((a) => a.type !== "hidden").filter((a) => a.type !== "control").filter((a) => a.visible !== !1).map((a) => ({ key: a.key || "", label: a.label, value: !0 })), !((l = e.value.table) != null && l.user)) {
2402
- Te.error("必须给使用此表格的用户一个名字!");
2401
+ if ($.value = Object.values(e.value).filter((o) => o.type !== "hidden").filter((o) => o.type !== "control").filter((o) => o.visible !== !1).map((o) => ({ key: o.key || "", label: o.label, value: !0 })), Je(() => {
2402
+ E.value = Object.assign({}, Object.fromEntries(
2403
+ Object.entries(_e(e.value, (o, p) => p.type != "control" && p.editor !== !1 && p.type != "hidden")).map(([o, p]) => [o, p.value])
2404
+ ));
2405
+ }), !((l = e.value.table) != null && l.user)) {
2406
+ Fe.error("必须给使用此表格的用户一个名字!");
2403
2407
  return;
2404
2408
  }
2405
2409
  if (!k.name) {
2406
- Te.error("必须给表格一个唯一的name属性");
2410
+ Fe.error("必须给表格一个唯一的name属性");
2407
2411
  return;
2408
2412
  }
2409
2413
  try {
2410
- let a = await il(k.name);
2411
- if (a) {
2412
- if (k.name !== a.name) {
2413
- Te.error("此表格已经存在,请换一个名字!");
2414
+ let o = await il(k.name);
2415
+ if (o) {
2416
+ if (k.name !== o.name) {
2417
+ Fe.error("此表格已经存在,请换一个名字!");
2414
2418
  return;
2415
2419
  }
2416
2420
  } else
2417
2421
  await dl({ name: k.name });
2418
- } catch (a) {
2419
- console.error("检查表格名称时出现错误:", a), Te.error("检查表格名称时出现错误,请稍后重试。");
2422
+ } catch (o) {
2423
+ console.error("检查表格名称时出现错误:", o), Fe.error("检查表格名称时出现错误,请稍后重试。");
2420
2424
  }
2421
2425
  try {
2422
- const a = await nl(e.value.table.user, k.name);
2423
- a && a.forEach((p) => {
2426
+ const o = await nl(e.value.table.user, k.name);
2427
+ o && o.forEach((p) => {
2424
2428
  e.value[p.key] && (e.value[p.key].width = p.width, e.value[p.key].showCol = p.showCol, e.value[p.key].sort = p.sort);
2425
2429
  });
2426
- } catch (a) {
2427
- console.error("Error fetching table column settings:", a);
2430
+ } catch (o) {
2431
+ console.error("Error fetching table column settings:", o);
2428
2432
  }
2429
2433
  e.value.table.autoWatch || e.value.table.load();
2430
- }), (l, a) => {
2431
- var We, st, it, dt, ct;
2432
- const p = j("el-button-group"), O = j("el-table-column"), G = j("el-table"), Q = j("el-pagination"), ue = j("el-icon"), Se = j("el-dialog"), ze = j("el-drawer");
2434
+ }), (l, o) => {
2435
+ var We, it, dt, ct, ft;
2436
+ const p = j("el-button-group"), O = j("el-table-column"), G = j("el-table"), Q = j("el-pagination"), te = j("el-icon"), we = j("el-dialog"), ze = j("el-drawer");
2433
2437
  return r(), q(P, null, [
2434
2438
  X("div", yl, [
2435
- ((st = (We = e.value) == null ? void 0 : We.query) == null ? void 0 : st.hidden) != !0 ? (r(), q("div", hl, [
2439
+ ((it = (We = e.value) == null ? void 0 : We.query) == null ? void 0 : it.hidden) != !0 ? (r(), q("div", hl, [
2436
2440
  m(l.$slots, "query", {}, () => [
2437
2441
  J(Zt, {
2438
2442
  modelValue: e.value,
2439
- "onUpdate:modelValue": a[0] || (a[0] = (U) => e.value = U),
2443
+ "onUpdate:modelValue": o[0] || (o[0] = (U) => e.value = U),
2440
2444
  onQuery: D,
2441
2445
  onReset: f
2442
2446
  }, fe({
2443
2447
  "q-btns": v(() => [
2444
2448
  m(l.$slots, "q-btns", {}, () => [
2445
- (r(!0), q(P, null, B(H(["add", "download", "setting"]), (U, le) => (r(), q(P, null, [
2446
- le == "default" ? (r(!0), q(P, { key: 0 }, B(U, (w) => (r(), q(P, null, [
2449
+ (r(!0), q(P, null, B(H(["add", "download", "setting"]), (U, ae) => (r(), q(P, null, [
2450
+ ae == "default" ? (r(!0), q(P, { key: 0 }, B(U, (w) => (r(), q(P, null, [
2447
2451
  m(l.$slots, w.name + "-left", {}, void 0, !0),
2448
2452
  (w.name === "control-add" ? w.attr.auth() && w.attr.inline === !1 : w.attr.auth()) ? m(l.$slots, w.name, { key: 0 }, () => [
2449
- w.label ? (r(), S(L(_e), F({
2453
+ w.label ? (r(), S(L(Ce), F({
2450
2454
  key: 0,
2451
2455
  ref_for: !0
2452
2456
  }, w.attr, {
2453
2457
  onClick: (W) => w.func(e.value, $.value)
2454
2458
  }), {
2455
2459
  default: v(() => [
2456
- we(Ee(w.label), 1)
2460
+ ke(Ee(w.label), 1)
2457
2461
  ]),
2458
2462
  _: 2
2459
- }, 1040, ["onClick"])) : (r(), S(L(_e), F({
2463
+ }, 1040, ["onClick"])) : (r(), S(L(Ce), F({
2460
2464
  key: 1,
2461
2465
  ref_for: !0
2462
2466
  }, w.attr, {
@@ -2469,17 +2473,17 @@ const cl = {
2469
2473
  (r(!0), q(P, null, B(U, (w) => (r(), q(P, null, [
2470
2474
  m(l.$slots, w.name + "-left", {}, void 0, !0),
2471
2475
  (w.name === "control-add" ? w.attr.auth() && w.attr.inline === !1 : w.attr.auth()) ? m(l.$slots, w.name, { key: 0 }, () => [
2472
- w.label ? (r(), S(L(_e), F({
2476
+ w.label ? (r(), S(L(Ce), F({
2473
2477
  key: 0,
2474
2478
  ref_for: !0
2475
2479
  }, w.attr, {
2476
2480
  onClick: (W) => w.func(e.value, $.value)
2477
2481
  }), {
2478
2482
  default: v(() => [
2479
- we(Ee(w.label), 1)
2483
+ ke(Ee(w.label), 1)
2480
2484
  ]),
2481
2485
  _: 2
2482
- }, 1040, ["onClick"])) : (r(), S(L(_e), F({
2486
+ }, 1040, ["onClick"])) : (r(), S(L(Ce), F({
2483
2487
  key: 1,
2484
2488
  ref_for: !0
2485
2489
  }, w.attr, {
@@ -2496,21 +2500,21 @@ const cl = {
2496
2500
  ]),
2497
2501
  _: 2
2498
2502
  }, [
2499
- B(l.$slots, (U, le, w) => ({
2500
- name: le,
2503
+ B(l.$slots, (U, ae, w) => ({
2504
+ name: ae,
2501
2505
  fn: v((W) => [
2502
- m(l.$slots, le, { model: e.value }, void 0, !0)
2506
+ m(l.$slots, ae, { model: e.value }, void 0, !0)
2503
2507
  ])
2504
2508
  }))
2505
2509
  ]), 1032, ["modelValue"])
2506
2510
  ], !0)
2507
2511
  ])) : $e("", !0),
2508
2512
  X("div", gl, [
2509
- J(G, F({ ...l.$attrs, ...L(ke)(e.value.table, (U) => !["dblclickType", "page"].includes(U)) }, {
2510
- "summary-method": (U) => e.value.table["summary-method"](U, { fields: R.value, sums: ae.value }),
2511
- onSortChange: a[1] || (a[1] = (U) => {
2512
- var le, w;
2513
- e.value.table.onSortChange(U, i.value), ((le = U == null ? void 0 : U.column) == null ? void 0 : le.sortable) === "custom" && ((w = e.value.table) == null || w.load());
2513
+ J(G, F({ ...l.$attrs, ...L(_e)(e.value.table, (U) => !["dblclickType", "page"].includes(U)) }, {
2514
+ "summary-method": (U) => e.value.table["summary-method"](U, { fields: R.value, sums: oe.value }),
2515
+ onSortChange: o[1] || (o[1] = (U) => {
2516
+ var ae, w;
2517
+ e.value.table.onSortChange(U, i.value), ((ae = U == null ? void 0 : U.column) == null ? void 0 : ae.sortable) === "custom" && ((w = e.value.table) == null || w.load());
2514
2518
  })
2515
2519
  }), {
2516
2520
  append: v(() => [
@@ -2521,40 +2525,40 @@ const cl = {
2521
2525
  ]),
2522
2526
  default: v(() => [
2523
2527
  m(l.$slots, "default", {}, () => [
2524
- (r(!0), q(P, null, B(K.value, (U, le) => (r(), S(O, F({
2525
- prop: le,
2526
- key: le,
2528
+ (r(!0), q(P, null, B(K.value, (U, ae) => (r(), S(O, F({
2529
+ prop: ae,
2530
+ key: ae,
2527
2531
  ref_for: !0
2528
- }, { ...e.value.tableColumns, ...L(ke)(U, (w) => T.includes(w)) }, { "header-align": "center" }), fe({
2532
+ }, { ...e.value.tableColumns, ...L(_e)(U, (w) => T.includes(w)) }, { "header-align": "center" }), fe({
2529
2533
  header: v(({ column: w, $index: W }) => [
2530
- le == "control" ? m(l.$slots, `${le}-header`, {
2534
+ ae == "control" ? m(l.$slots, `${ae}-header`, {
2531
2535
  key: 0,
2532
2536
  column: w,
2533
2537
  $index: W
2534
2538
  }, () => [
2535
- a[10] || (a[10] = X("span", null, "操作", -1))
2536
- ], !0) : m(l.$slots, `${le}-header`, {
2539
+ o[10] || (o[10] = X("span", null, "操作", -1))
2540
+ ], !0) : m(l.$slots, `${ae}-header`, {
2537
2541
  key: 1,
2538
2542
  column: w,
2539
2543
  $index: W
2540
2544
  }, void 0, !0)
2541
2545
  ]),
2542
2546
  "filter-icon": v((w) => [
2543
- m(l.$slots, `${le}-filter-icon`, { data: w }, void 0, !0)
2547
+ m(l.$slots, `${ae}-filter-icon`, { data: w }, void 0, !0)
2544
2548
  ]),
2545
2549
  _: 2
2546
2550
  }, [
2547
2551
  U.type === "image" ? {
2548
2552
  name: "default",
2549
2553
  fn: v(({ row: w, column: W, $index: ne }) => [
2550
- m(l.$slots, `${le}`, {
2554
+ m(l.$slots, `${ae}`, {
2551
2555
  row: w,
2552
2556
  column: W,
2553
2557
  $index: ne
2554
2558
  }, () => [
2555
2559
  X("img", F({
2556
2560
  style: { width: "80px", height: "80px", "object-fit": "cover", "border-radius": "3px" },
2557
- src: w[le],
2561
+ src: w[ae],
2558
2562
  ref_for: !0
2559
2563
  }, U), null, 16, bl)
2560
2564
  ], !0)
@@ -2563,7 +2567,7 @@ const cl = {
2563
2567
  } : U.type === "expand" ? {
2564
2568
  name: "default",
2565
2569
  fn: v(({ row: w, column: W, $index: ne }) => [
2566
- m(l.$slots, `${le}`, {
2570
+ m(l.$slots, `${ae}`, {
2567
2571
  row: w,
2568
2572
  column: W,
2569
2573
  $index: ne
@@ -2585,8 +2589,8 @@ const cl = {
2585
2589
  column: W,
2586
2590
  $index: ne
2587
2591
  }, void 0, !0),
2588
- (r(!0), q(P, null, B(H(["view", "edit", "delete", "save"]), (He, Ze) => (r(), q(P, null, [
2589
- Ze == "default" ? (r(!0), q(P, { key: 0 }, B(He, (ge) => (r(), q(P, null, [
2592
+ (r(!0), q(P, null, B(H(["view", "edit", "delete", "save"]), (He, Ke) => (r(), q(P, null, [
2593
+ Ke == "default" ? (r(!0), q(P, { key: 0 }, B(He, (ge) => (r(), q(P, null, [
2590
2594
  m(l.$slots, ge.name + "-left", {
2591
2595
  row: w,
2592
2596
  column: W,
@@ -2598,21 +2602,21 @@ const cl = {
2598
2602
  column: W,
2599
2603
  $index: ne
2600
2604
  }, () => [
2601
- ge.label ? (r(), S(L(_e), F({
2605
+ ge.label ? (r(), S(L(Ce), F({
2602
2606
  key: 0,
2603
2607
  ref_for: !0
2604
2608
  }, ge.attr, {
2605
- onClick: (Ke) => ge.func(w, W, ne, e.value)
2609
+ onClick: (et) => ge.func(w, W, ne, e.value)
2606
2610
  }), {
2607
2611
  default: v(() => [
2608
- we(Ee(Ce(ge, ne)), 1)
2612
+ ke(Ee(De(ge, ne)), 1)
2609
2613
  ]),
2610
2614
  _: 2
2611
- }, 1040, ["onClick"])) : (r(), S(L(_e), F({
2615
+ }, 1040, ["onClick"])) : (r(), S(L(Ce), F({
2612
2616
  key: 1,
2613
2617
  ref_for: !0
2614
2618
  }, ge.attr, {
2615
- onClick: (Ke) => ge.func(w, W, ne, e.value)
2619
+ onClick: (et) => ge.func(w, W, ne, e.value)
2616
2620
  }), null, 16, ["onClick"]))
2617
2621
  ], !0) : $e("", !0),
2618
2622
  m(l.$slots, ge.name + "-right", {
@@ -2634,21 +2638,21 @@ const cl = {
2634
2638
  column: W,
2635
2639
  $index: ne
2636
2640
  }, () => [
2637
- ge.label ? (r(), S(L(_e), F({
2641
+ ge.label ? (r(), S(L(Ce), F({
2638
2642
  key: 0,
2639
2643
  ref_for: !0
2640
2644
  }, ge.attr, {
2641
- onClick: (Ke) => ge.func(w, W, ne, e.value)
2645
+ onClick: (et) => ge.func(w, W, ne, e.value)
2642
2646
  }), {
2643
2647
  default: v(() => [
2644
- we(Ee(Ce(ge, ne)), 1)
2648
+ ke(Ee(De(ge, ne)), 1)
2645
2649
  ]),
2646
2650
  _: 2
2647
- }, 1040, ["onClick"])) : (r(), S(L(_e), F({
2651
+ }, 1040, ["onClick"])) : (r(), S(L(Ce), F({
2648
2652
  key: 1,
2649
2653
  ref_for: !0
2650
2654
  }, ge.attr, {
2651
- onClick: (Ke) => ge.func(w, W, ne, e.value)
2655
+ onClick: (et) => ge.func(w, W, ne, e.value)
2652
2656
  }), null, 16, ["onClick"]))
2653
2657
  ], !0) : $e("", !0),
2654
2658
  m(l.$slots, ge.name + "-right", {
@@ -2674,7 +2678,7 @@ const cl = {
2674
2678
  } : U.type != "selection" && U.type != "index" ? {
2675
2679
  name: "default",
2676
2680
  fn: v(({ row: w, column: W, $index: ne }) => [
2677
- he(U, w, W, ne) && ne != -1 ? m(l.$slots, `${le}`, {
2681
+ he(U, w, W, ne) && ne != -1 ? m(l.$slots, `${ae}`, {
2678
2682
  key: 0,
2679
2683
  row: w,
2680
2684
  column: W,
@@ -2682,12 +2686,12 @@ const cl = {
2682
2686
  }, () => {
2683
2687
  var Le;
2684
2688
  return [
2685
- (r(), S(Je, {
2686
- modelValue: w[le],
2687
- "onUpdate:modelValue": (Re) => w[le] = Re,
2689
+ (r(), S(Ze, {
2690
+ modelValue: w[ae],
2691
+ "onUpdate:modelValue": (Re) => w[ae] = Re,
2688
2692
  item: U == null ? void 0 : U.table(w, W, ne),
2689
- ctrlKey: le,
2690
- key: `${le}-${ne} -${h.value}`,
2693
+ ctrlKey: ae,
2694
+ key: `${ae}-${ne} -${h.value}`,
2691
2695
  ctrlType: (Le = U.table(w, W, ne)) != null && Le.type ? U.table(w, W, ne).type : U.type,
2692
2696
  model: e.value,
2693
2697
  class: "g-ctrl-container",
@@ -2696,9 +2700,9 @@ const cl = {
2696
2700
  }, fe({ _: 2 }, [
2697
2701
  B(l.$slots, (Re, He) => ({
2698
2702
  name: He,
2699
- fn: v((Ze) => [
2703
+ fn: v((Ke) => [
2700
2704
  m(l.$slots, He, {
2701
- data: Ze,
2705
+ data: Ke,
2702
2706
  item: U,
2703
2707
  model: e.value
2704
2708
  }, void 0, !0)
@@ -2706,14 +2710,14 @@ const cl = {
2706
2710
  }))
2707
2711
  ]), 1032, ["modelValue", "onUpdate:modelValue", "item", "ctrlKey", "ctrlType", "model", "formInfo"]))
2708
2712
  ];
2709
- }, !0) : m(l.$slots, `${le}`, {
2713
+ }, !0) : m(l.$slots, `${ae}`, {
2710
2714
  key: 1,
2711
2715
  row: w,
2712
2716
  column: W,
2713
2717
  $index: ne
2714
2718
  }, () => [
2715
2719
  X("div", {
2716
- innerHTML: ve(U, W.formatter(w, W, w[le], ne))
2720
+ innerHTML: ve(U, W.formatter(w, W, w[ae], ne))
2717
2721
  }, null, 8, $l)
2718
2722
  ], !0)
2719
2723
  ]),
@@ -2724,12 +2728,12 @@ const cl = {
2724
2728
  ]),
2725
2729
  _: 3
2726
2730
  }, 16, ["summary-method"]),
2727
- (ct = (dt = (it = e.value) == null ? void 0 : it.table) == null ? void 0 : dt.page) != null && ct.hidden ? $e("", !0) : m(l.$slots, "page", { key: 0 }, () => [
2731
+ (ft = (ct = (dt = e.value) == null ? void 0 : dt.table) == null ? void 0 : ct.page) != null && ft.hidden ? $e("", !0) : m(l.$slots, "page", { key: 0 }, () => [
2728
2732
  J(Q, F({
2729
2733
  "page-size": e.value.table.page.pageSize,
2730
- "onUpdate:pageSize": a[2] || (a[2] = (U) => e.value.table.page.pageSize = U),
2734
+ "onUpdate:pageSize": o[2] || (o[2] = (U) => e.value.table.page.pageSize = U),
2731
2735
  "current-page": e.value.table.page.currentPage,
2732
- "onUpdate:currentPage": a[3] || (a[3] = (U) => e.value.table.page.currentPage = U)
2736
+ "onUpdate:currentPage": o[3] || (o[3] = (U) => e.value.table.page.currentPage = U)
2733
2737
  }, e.value.table.page), {
2734
2738
  default: v(() => [
2735
2739
  m(l.$slots, "table-page", {}, void 0, !0)
@@ -2740,15 +2744,15 @@ const cl = {
2740
2744
  ])
2741
2745
  ]),
2742
2746
  e.value.dialog.mode == "dialog" && V.value ? (r(), q("div", El, [
2743
- J(Se, F({
2747
+ J(we, F({
2744
2748
  modelValue: V.value,
2745
- "onUpdate:modelValue": a[7] || (a[7] = (U) => V.value = U),
2749
+ "onUpdate:modelValue": o[7] || (o[7] = (U) => V.value = U),
2746
2750
  fullscreen: e.value.dialog.fullScreen
2747
- }, L(ke)(e.value.dialog, (U) => !["size"].includes(U)), {
2751
+ }, L(_e)(e.value.dialog, (U) => !["size"].includes(U)), {
2748
2752
  width: L(_t)(e.value.dialog.width) + 35
2749
2753
  }), {
2750
2754
  header: v(() => {
2751
- var U, le, w, W;
2755
+ var U, ae, w, W;
2752
2756
  return [
2753
2757
  X("div", wl, [
2754
2758
  X("div", _l, [
@@ -2756,14 +2760,14 @@ const cl = {
2756
2760
  X("div", null, Ee(e.value.dialog.title), 1)
2757
2761
  ], !0)
2758
2762
  ]),
2759
- ((le = (U = e.value) == null ? void 0 : U.dialog) == null ? void 0 : le.fullScreen) === !1 ? (r(), q("div", {
2763
+ ((ae = (U = e.value) == null ? void 0 : U.dialog) == null ? void 0 : ae.fullScreen) === !1 ? (r(), q("div", {
2760
2764
  key: 0,
2761
- onClick: a[4] || (a[4] = (ne) => {
2765
+ onClick: o[4] || (o[4] = (ne) => {
2762
2766
  e.value.dialog.fullScreen = !0;
2763
2767
  }),
2764
2768
  class: "max"
2765
2769
  }, [
2766
- J(ue, null, {
2770
+ J(te, null, {
2767
2771
  default: v(() => [
2768
2772
  J(L(At))
2769
2773
  ]),
@@ -2772,12 +2776,12 @@ const cl = {
2772
2776
  ])) : $e("", !0),
2773
2777
  ((W = (w = e.value) == null ? void 0 : w.dialog) == null ? void 0 : W.fullScreen) === !0 ? (r(), q("div", {
2774
2778
  key: 1,
2775
- onClick: a[5] || (a[5] = (ne) => {
2779
+ onClick: o[5] || (o[5] = (ne) => {
2776
2780
  e.value.dialog.fullScreen = !1;
2777
2781
  }),
2778
2782
  class: "max"
2779
2783
  }, [
2780
- J(ue, null, {
2784
+ J(te, null, {
2781
2785
  default: v(() => [
2782
2786
  J(L(Bt))
2783
2787
  ]),
@@ -2790,16 +2794,16 @@ const cl = {
2790
2794
  default: v(() => [
2791
2795
  X("div", kl, [
2792
2796
  m(l.$slots, "table-dialog-form", { model: e.value }, () => [
2793
- J(lt, {
2797
+ J(at, {
2794
2798
  modelValue: e.value,
2795
- "onUpdate:modelValue": a[6] || (a[6] = (U) => e.value = U),
2799
+ "onUpdate:modelValue": o[6] || (o[6] = (U) => e.value = U),
2796
2800
  onSubmit: A,
2797
2801
  onReset: b
2798
2802
  }, fe({ _: 2 }, [
2799
- B(l.$slots, (U, le, w) => ({
2800
- name: le,
2803
+ B(l.$slots, (U, ae, w) => ({
2804
+ name: ae,
2801
2805
  fn: v((W) => [
2802
- m(l.$slots, le, { model: W }, void 0, !0)
2806
+ m(l.$slots, ae, { model: W }, void 0, !0)
2803
2807
  ])
2804
2808
  }))
2805
2809
  ]), 1032, ["modelValue"])
@@ -2812,8 +2816,8 @@ const cl = {
2812
2816
  e.value.dialog.mode == "drawer" && V.value ? (r(), q("div", Cl, [
2813
2817
  J(ze, F({
2814
2818
  modelValue: V.value,
2815
- "onUpdate:modelValue": a[9] || (a[9] = (U) => V.value = U)
2816
- }, L(ke)(e.value.dialog, (U) => !["width"].includes(U))), {
2819
+ "onUpdate:modelValue": o[9] || (o[9] = (U) => V.value = U)
2820
+ }, L(_e)(e.value.dialog, (U) => !["width"].includes(U))), {
2817
2821
  header: v(() => [
2818
2822
  X("div", Dl, [
2819
2823
  X("div", Vl, [
@@ -2825,16 +2829,16 @@ const cl = {
2825
2829
  ]),
2826
2830
  default: v(() => [
2827
2831
  m(l.$slots, "table-drawer-form", { model: e.value }, () => [
2828
- J(lt, {
2832
+ J(at, {
2829
2833
  modelValue: e.value,
2830
- "onUpdate:modelValue": a[8] || (a[8] = (U) => e.value = U),
2834
+ "onUpdate:modelValue": o[8] || (o[8] = (U) => e.value = U),
2831
2835
  onSubmit: A,
2832
2836
  onReset: b
2833
2837
  }, fe({ _: 2 }, [
2834
- B(l.$slots, (U, le, w) => ({
2835
- name: le,
2838
+ B(l.$slots, (U, ae, w) => ({
2839
+ name: ae,
2836
2840
  fn: v((W) => [
2837
- m(l.$slots, le, { model: W }, void 0, !0)
2841
+ m(l.$slots, ae, { model: W }, void 0, !0)
2838
2842
  ])
2839
2843
  }))
2840
2844
  ]), 1032, ["modelValue"])
@@ -2846,7 +2850,7 @@ const cl = {
2846
2850
  ], 64);
2847
2851
  };
2848
2852
  }
2849
- }), Tl = /* @__PURE__ */ je(Ml, [["__scopeId", "data-v-c6b5b882"]]), Fl = { class: "g-tree-table" }, Sl = { class: "g-tree-container" }, ql = { class: "g-tree-table-container" }, Ol = /* @__PURE__ */ Object.assign({
2853
+ }), Tl = /* @__PURE__ */ je(Ml, [["__scopeId", "data-v-b46ebd81"]]), Fl = { class: "g-tree-table" }, Sl = { class: "g-tree-container" }, ql = { class: "g-tree-table-container" }, Ol = /* @__PURE__ */ Object.assign({
2850
2854
  name: "g-tree-table",
2851
2855
  inheritAttrs: !1
2852
2856
  }, {
@@ -2857,14 +2861,14 @@ const cl = {
2857
2861
  },
2858
2862
  emits: /* @__PURE__ */ Be(["load"], ["update:modelValue"]),
2859
2863
  setup(c, { emit: d }) {
2860
- const t = d, e = Ie(c, "modelValue"), o = nt(), i = de((o == null ? void 0 : o.width) || "180px"), I = de((o == null ? void 0 : o.search) === void 0 ? !0 : o == null ? void 0 : o.search), V = de({}), T = de(""), $ = de(null), k = (R, E) => {
2864
+ const t = d, e = Ie(c, "modelValue"), a = st(), i = de((a == null ? void 0 : a.width) || "180px"), I = de((a == null ? void 0 : a.search) === void 0 ? !0 : a == null ? void 0 : a.search), V = de({}), T = de(""), $ = de(null), k = (R, E) => {
2861
2865
  var _, Z;
2862
2866
  if (!R) return !0;
2863
- const h = ((Z = (_ = o.tree) == null ? void 0 : _.props) == null ? void 0 : Z.label) || "label";
2867
+ const h = ((Z = (_ = a.tree) == null ? void 0 : _.props) == null ? void 0 : Z.label) || "label";
2864
2868
  return E[h].includes(R);
2865
2869
  }, z = (R, E) => {
2866
2870
  t("load", V.value, R, E);
2867
- }, ae = (R) => {
2871
+ }, oe = (R) => {
2868
2872
  V.value = R, e.value.table.load();
2869
2873
  };
2870
2874
  return Ot(T, (R) => {
@@ -2879,7 +2883,7 @@ const cl = {
2879
2883
  I.value ? (r(), S(h, {
2880
2884
  key: 0,
2881
2885
  modelValue: T.value,
2882
- "onUpdate:modelValue": E[0] || (E[0] = (oe) => T.value = oe),
2886
+ "onUpdate:modelValue": E[0] || (E[0] = (re) => T.value = re),
2883
2887
  style: { width: "100%", padding: "0 10px", "box-sizing": "border-box" },
2884
2888
  placeholder: "输入节点查询",
2885
2889
  clearable: ""
@@ -2891,22 +2895,22 @@ const cl = {
2891
2895
  "expand-on-click-node": !1,
2892
2896
  ref_key: "treeRef",
2893
2897
  ref: $,
2894
- onNodeClick: ae
2898
+ onNodeClick: oe
2895
2899
  }, R.$attrs.tree), fe({
2896
- default: v(({ node: oe, data: te }) => [
2900
+ default: v(({ node: re, data: le }) => [
2897
2901
  m(R.$slots, "tree", {
2898
- node: oe,
2899
- data: te
2902
+ node: re,
2903
+ data: le
2900
2904
  }, () => [
2901
- X("span", null, Ee(oe.label), 1)
2905
+ X("span", null, Ee(re.label), 1)
2902
2906
  ], !0)
2903
2907
  ]),
2904
2908
  _: 2
2905
2909
  }, [
2906
- B(R.$slots, (oe, te, me) => ({
2907
- name: te,
2910
+ B(R.$slots, (re, le, me) => ({
2911
+ name: le,
2908
2912
  fn: v((pe) => [
2909
- m(R.$slots, te, { data: pe }, void 0, !0)
2913
+ m(R.$slots, le, { data: pe }, void 0, !0)
2910
2914
  ])
2911
2915
  }))
2912
2916
  ]), 1040, ["style"])
@@ -2915,12 +2919,12 @@ const cl = {
2915
2919
  X("div", ql, [
2916
2920
  J(Z, F({
2917
2921
  modelValue: e.value,
2918
- "onUpdate:modelValue": E[1] || (E[1] = (oe) => e.value = oe)
2922
+ "onUpdate:modelValue": E[1] || (E[1] = (re) => e.value = re)
2919
2923
  }, R.$attrs, { onLoad: z }), fe({ _: 2 }, [
2920
- B(R.$slots, (oe, te, me) => ({
2921
- name: te,
2924
+ B(R.$slots, (re, le, me) => ({
2925
+ name: le,
2922
2926
  fn: v((pe) => [
2923
- m(R.$slots, te, { data: pe }, void 0, !0)
2927
+ m(R.$slots, le, { data: pe }, void 0, !0)
2924
2928
  ])
2925
2929
  }))
2926
2930
  ]), 1040, ["modelValue"])
@@ -2933,8 +2937,9 @@ const cl = {
2933
2937
  class: "op-group"
2934
2938
  }, Bl = {
2935
2939
  key: 1,
2936
- class: "op-items"
2937
- }, Il = ["title"], vt = "100px", Yl = /* @__PURE__ */ Object.assign({ name: "g-select-option" }, {
2940
+ class: "op-items",
2941
+ style: { width: "100%", height: "100%" }
2942
+ }, Il = ["title"], yt = "100px", Yl = /* @__PURE__ */ Object.assign({ name: "g-select-option" }, {
2938
2943
  __name: "g-select-option",
2939
2944
  props: {
2940
2945
  columns: {
@@ -2957,42 +2962,42 @@ const cl = {
2957
2962
  setup(c) {
2958
2963
  const d = c;
2959
2964
  return (t, e) => d.title ? (r(), q("div", Al, [
2960
- (r(!0), q(P, null, B(d.columns, (o) => (r(), q("span", {
2961
- style: xe({ width: (o == null ? void 0 : o.width) || vt, ...o == null ? void 0 : o.titleStyle, textAlign: (o == null ? void 0 : o.align) || "center" }),
2962
- key: o.key
2965
+ (r(!0), q(P, null, B(d.columns, (a) => (r(), q("span", {
2966
+ style: xe({ width: (a == null ? void 0 : a.width) || yt, ...a == null ? void 0 : a.titleStyle, textAlign: (a == null ? void 0 : a.align) || "center" }),
2967
+ key: a.key
2963
2968
  }, [
2964
- m(t.$slots, `${c.t}-title-${o.key}`, { col: o }, () => [
2965
- we(Ee(o.label), 1)
2969
+ m(t.$slots, `${c.t}-title-${a.key}`, { col: a }, () => [
2970
+ ke(Ee(a.label), 1)
2966
2971
  ], !0)
2967
2972
  ], 4))), 128))
2968
2973
  ])) : (r(), q("div", Bl, [
2969
- (r(!0), q(P, null, B(d.columns, (o) => (r(), q("span", {
2970
- style: xe({ width: (o == null ? void 0 : o.width) || vt, textAlign: (o == null ? void 0 : o.align) || "center", ...o == null ? void 0 : o.style }),
2971
- key: o.key,
2972
- title: c.data[o.key]
2974
+ (r(!0), q(P, null, B(d.columns, (a) => (r(), q("span", {
2975
+ style: xe({ width: (a == null ? void 0 : a.width) || yt, textAlign: (a == null ? void 0 : a.align) || "center", ...a == null ? void 0 : a.style }),
2976
+ key: a.key,
2977
+ title: c.data[a.key]
2973
2978
  }, [
2974
- m(t.$slots, `${c.t}-option-${o.key}`, { col: o }, () => [
2975
- we(Ee(c.data[o.key]), 1)
2979
+ m(t.$slots, `${c.t}-option-${a.key}`, { col: a }, () => [
2980
+ ke(Ee(c.data[a.key] ?? "-"), 1)
2976
2981
  ], !0)
2977
2982
  ], 12, Il))), 128))
2978
2983
  ]));
2979
2984
  }
2980
- }), Ul = /* @__PURE__ */ je(Yl, [["__scopeId", "data-v-ba0fcda6"]]), jl = Object.freeze({}), wt = [Tl, lt, xl, Ul];
2981
- let at = {};
2985
+ }), Ul = /* @__PURE__ */ je(Yl, [["__scopeId", "data-v-c0ac6b77"]]), jl = Object.freeze({}), wt = [Tl, at, xl, Ul];
2986
+ let ot = {};
2982
2987
  const Ql = {
2983
2988
  install: (c, d = {}) => {
2984
- at = Object.freeze({ ...jl, ...d }), wt.forEach((t) => {
2989
+ ot = Object.freeze({ ...jl, ...d }), wt.forEach((t) => {
2985
2990
  c.component(t.name, t);
2986
- }), c.provide("options", at), c.config.globalProperties.$openModal = ot;
2991
+ }), c.provide("options", ot), c.config.globalProperties.$openModal = rt;
2987
2992
  }
2988
- }, Ll = (c) => ({ dialog: Ct, drawer: Dt })[c] || null, ot = (c = {}, d = "dialog") => {
2993
+ }, Ll = (c) => ({ dialog: Ct, drawer: Dt })[c] || null, rt = (c = {}, d = "dialog") => {
2989
2994
  if (typeof document > "u") return () => {
2990
2995
  };
2991
2996
  const t = document.createElement("div");
2992
2997
  let e = () => {
2993
2998
  };
2994
- const o = Ll(d);
2995
- if (!o) return () => {
2999
+ const a = Ll(d);
3000
+ if (!a) return () => {
2996
3001
  };
2997
3002
  const i = de(!0), I = xt({
2998
3003
  setup() {
@@ -3002,7 +3007,7 @@ const Ql = {
3002
3007
  }, 300);
3003
3008
  }, () => {
3004
3009
  var V, T, $;
3005
- return qe(o, {
3010
+ return qe(a, {
3006
3011
  modelValue: i.value,
3007
3012
  "onUpdate:modelValue": (k) => i.value = k,
3008
3013
  ...c,
@@ -3018,7 +3023,7 @@ const Ql = {
3018
3023
  });
3019
3024
  return wt.forEach((V) => {
3020
3025
  I.component(V.name, V);
3021
- }), I.provide("options", at), I.use(kt, { locale: Yt }), document.body.appendChild(t), I.mount(t), e;
3026
+ }), I.provide("options", ot), I.use(kt, { locale: Yt }), document.body.appendChild(t), I.mount(t), e;
3022
3027
  };
3023
3028
  function _t(c, d = window.innerWidth) {
3024
3029
  if (typeof c == "number")
@@ -3041,41 +3046,41 @@ function _t(c, d = window.innerWidth) {
3041
3046
  return new Function("return " + V)();
3042
3047
  throw new Error("Invalid calc expression");
3043
3048
  };
3044
- const o = c.slice(5, -1).trim();
3045
- return i(o.replace(/([0-9.]+)([a-z%]+)/g, (V, T, $) => _t(T + $, d)));
3049
+ const a = c.slice(5, -1).trim();
3050
+ return i(a.replace(/([0-9.]+)([a-z%]+)/g, (V, T, $) => _t(T + $, d)));
3046
3051
  }
3047
3052
  throw new Error("Unsupported unit in value: " + c);
3048
3053
  }
3049
- const Me = (...c) => {
3050
- const d = {}, t = (e, o) => (Object.keys(o).forEach((i) => {
3051
- e[i] = typeof o[i] == "object" && !Array.isArray(o[i]) ? t(e[i] || {}, o[i]) : o[i];
3054
+ const Te = (...c) => {
3055
+ const d = {}, t = (e, a) => (Object.keys(a).forEach((i) => {
3056
+ e[i] = typeof a[i] == "object" && !Array.isArray(a[i]) ? t(e[i] || {}, a[i]) : a[i];
3052
3057
  }), e);
3053
3058
  return c.forEach((e = {}) => t(d, e)), d;
3054
3059
  };
3055
- function ke(c, d = (t, e) => d(t, e)) {
3060
+ function _e(c, d = (t, e) => d(t, e)) {
3056
3061
  const t = {};
3057
3062
  for (const e in c)
3058
3063
  c.hasOwnProperty(e) && d(e, c[e]) && (t[e] = c[e]);
3059
3064
  return t;
3060
3065
  }
3061
- function Rl(c, d, t = "value", e = "label", o = "children") {
3066
+ function Rl(c, d, t = "value", e = "label", a = "children") {
3062
3067
  for (const i of c) {
3063
3068
  if (i[t] === d)
3064
3069
  return i[e];
3065
- if (i[o] && i[o].length > 0) {
3066
- const I = Rl(i[o], d, t, e, o);
3070
+ if (i[a] && i[a].length > 0) {
3071
+ const I = Rl(i[a], d, t, e, a);
3067
3072
  if (I)
3068
3073
  return I;
3069
3074
  }
3070
3075
  }
3071
3076
  return null;
3072
3077
  }
3073
- function rt(c) {
3078
+ function ut(c) {
3074
3079
  if (!c || isNaN(c)) return "零";
3075
3080
  const d = ["角", "分"], t = ["零", "壹", "贰", "叁", "肆", "伍", "陆", "柒", "捌", "玖"], e = [
3076
3081
  ["元", "万", "亿"],
3077
3082
  ["", "拾", "佰", "仟"]
3078
- ], o = c < 0 ? "欠" : "";
3083
+ ], a = c < 0 ? "欠" : "";
3079
3084
  c = Math.abs(c);
3080
3085
  let i = "";
3081
3086
  for (let I = 0; I < d.length; I++)
@@ -3087,7 +3092,7 @@ function rt(c) {
3087
3092
  V = t[c % 10] + e[1][T] + V, c = Math.floor(c / 10);
3088
3093
  i = V.replace(/(零.)*零$/, "").replace(/^$/, "零") + e[0][I] + i;
3089
3094
  }
3090
- return o + i.replace(/(零.)*零元/, "元").replace(/(零.)+/g, "零").replace(/^整$/, "零元整");
3095
+ return a + i.replace(/(零.)*零元/, "元").replace(/(零.)+/g, "零").replace(/^整$/, "零元整");
3091
3096
  }
3092
3097
  function Hl(c) {
3093
3098
  if (typeof c != "number" || isNaN(c) || !isFinite(c))
@@ -3128,10 +3133,10 @@ export {
3128
3133
  be as CT,
3129
3134
  _t as convertToPx,
3130
3135
  Ql as default,
3131
- ke as filterObject,
3136
+ _e as filterObject,
3132
3137
  Rl as findTreeLabelByValue,
3133
3138
  Hl as formatAmount,
3134
- Me as mergeObjects,
3135
- rt as moneyToChinese,
3136
- ot as openModal
3139
+ Te as mergeObjects,
3140
+ ut as moneyToChinese,
3141
+ rt as openModal
3137
3142
  };