vue-2024-ui 0.2.24 → 0.2.26

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import ll, { ElForm as gt, ElButtonGroup as bt, ElButton as Be, ElPopover as Ct, ElMessage as et, ElMessageBox as Ut, ElDialog as al, ElDrawer as rl } from "element-plus";
2
- import { h as we, mergeModels as tt, useModel as lt, ref as re, nextTick as dt, onMounted as ft, computed as nt, resolveComponent as L, openBlock as p, createElementBlock as Y, Fragment as te, createElementVNode as X, createBlock as A, createCommentVNode as $e, unref as P, mergeProps as O, withCtx as _, renderSlot as k, renderList as W, createTextVNode as Ve, toDisplayString as Ee, createSlots as be, createVNode as ee, normalizeStyle as qe, normalizeProps as St, useSlots as Yt, inject as qt, useAttrs as At, onUnmounted as ol, withModifiers as wt, resolveDynamicComponent as Ke, guardReactiveProps as nl, Transition as ul, withDirectives as sl, vShow as il, onBeforeUnmount as dl, normalizeClass as Rt, watchEffect as cl, onBeforeMount as fl, watch as vl, createApp as pl } from "vue";
2
+ import { h as we, mergeModels as tt, useModel as lt, ref as re, nextTick as dt, onMounted as ct, computed as nt, resolveComponent as L, openBlock as p, createElementBlock as Y, Fragment as te, createElementVNode as X, createBlock as A, createCommentVNode as $e, unref as P, mergeProps as O, withCtx as _, renderSlot as k, renderList as W, createTextVNode as Ve, toDisplayString as Ee, createSlots as be, createVNode as ee, normalizeStyle as qe, normalizeProps as St, useSlots as Yt, inject as qt, useAttrs as At, onUnmounted as ol, withModifiers as wt, resolveDynamicComponent as Ke, guardReactiveProps as nl, Transition as ul, withDirectives as sl, vShow as il, onBeforeUnmount as dl, normalizeClass as Rt, watchEffect as fl, onBeforeMount as cl, watch as vl, createApp as pl } from "vue";
3
3
  import { CircleCheck as Lt, CircleCheckFilled as ml, Refresh as Ht, Plus as hl, ZoomIn as yl, Delete as zt, More as gl, Search as bl, InfoFilled as Pt, Download as jt, DocumentCopy as $l, View as wl, Edit as _l, CirclePlus as El, Setting as kl, FullScreen as Cl, CopyDocument as Dl } from "@element-plus/icons-vue";
4
4
  import Nt from "sortablejs";
5
5
  import { Dexie as Sl } from "dexie";
@@ -189,15 +189,15 @@ var Gt = { exports: {} };
189
189
  (function(a, t) {
190
190
  n.exports = t();
191
191
  })(Ml, function() {
192
- var a = 1e3, t = 6e4, r = 36e5, e = "millisecond", h = "second", f = "minute", D = "hour", c = "day", v = "week", u = "month", d = "quarter", $ = "year", le = "date", B = "Invalid Date", G = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, S = /\[([^\]]+)]|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, ue = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(w) {
192
+ var a = 1e3, t = 6e4, r = 36e5, e = "millisecond", h = "second", c = "minute", S = "hour", f = "day", v = "week", u = "month", d = "quarter", $ = "year", le = "date", B = "Invalid Date", G = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, D = /\[([^\]]+)]|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, ue = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(w) {
193
193
  var g = ["th", "st", "nd", "rd"], i = w % 100;
194
194
  return "[" + w + (g[(i - 20) % 10] || g[i] || g[0]) + "]";
195
- } }, ce = function(w, g, i) {
195
+ } }, fe = function(w, g, i) {
196
196
  var V = String(w);
197
197
  return !V || V.length >= g ? w : "" + Array(g + 1 - V.length).join(i) + w;
198
- }, pe = { s: ce, z: function(w) {
198
+ }, pe = { s: fe, z: function(w) {
199
199
  var g = -w.utcOffset(), i = Math.abs(g), V = Math.floor(i / 60), E = i % 60;
200
- return (g <= 0 ? "+" : "-") + ce(V, 2, "0") + ":" + ce(E, 2, "0");
200
+ return (g <= 0 ? "+" : "-") + fe(V, 2, "0") + ":" + fe(E, 2, "0");
201
201
  }, m: function w(g, i) {
202
202
  if (g.date() < i.date()) return -w(i, g);
203
203
  var V = 12 * (i.year() - g.year()) + (i.month() - g.month()), E = g.clone().add(V, u), q = i - E < 0, T = g.clone().add(V + (q ? -1 : 1), u);
@@ -205,16 +205,16 @@ var Gt = { exports: {} };
205
205
  }, a: function(w) {
206
206
  return w < 0 ? Math.ceil(w) || 0 : Math.floor(w);
207
207
  }, p: function(w) {
208
- return { M: u, y: $, w: v, d: c, D: le, h: D, m: f, s: h, ms: e, Q: d }[w] || String(w || "").toLowerCase().replace(/s$/, "");
208
+ return { M: u, y: $, w: v, d: f, D: le, h: S, m: c, s: h, ms: e, Q: d }[w] || String(w || "").toLowerCase().replace(/s$/, "");
209
209
  }, u: function(w) {
210
210
  return w === void 0;
211
- } }, fe = "en", ie = {};
212
- ie[fe] = ue;
211
+ } }, ce = "en", ie = {};
212
+ ie[ce] = ue;
213
213
  var ge = "$isDayjsObject", Me = function(w) {
214
214
  return w instanceof Le || !(!w || !w[ge]);
215
215
  }, De = function w(g, i, V) {
216
216
  var E;
217
- if (!g) return fe;
217
+ if (!g) return ce;
218
218
  if (typeof g == "string") {
219
219
  var q = g.toLowerCase();
220
220
  ie[q] && (E = q), i && (ie[q] = i, E = q);
@@ -224,7 +224,7 @@ var Gt = { exports: {} };
224
224
  var Q = g.name;
225
225
  ie[Q] = g, E = Q;
226
226
  }
227
- return !V && E && (fe = E), E || !V && fe;
227
+ return !V && E && (ce = E), E || !V && ce;
228
228
  }, J = function(w, g) {
229
229
  if (Me(w)) return w.clone();
230
230
  var i = typeof g == "object" ? g : {};
@@ -276,7 +276,7 @@ var Gt = { exports: {} };
276
276
  }, g.startOf = function(i, V) {
277
277
  var E = this, q = !!K.u(V) || V, T = K.p(i), Q = function(I, C) {
278
278
  var he = K.w(E.$u ? Date.UTC(E.$y, C, I) : new Date(E.$y, C, I), E);
279
- return q ? he : he.endOf(c);
279
+ return q ? he : he.endOf(f);
280
280
  }, oe = function(I, C) {
281
281
  return K.w(E.toDate()[I].apply(E.toDate("s"), (q ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(C)), E);
282
282
  }, ae = this.$W, H = this.$M, z = this.$D, Se = "set" + (this.$u ? "UTC" : "");
@@ -288,12 +288,12 @@ var Gt = { exports: {} };
288
288
  case v:
289
289
  var me = this.$locale().weekStart || 0, Te = (ae < me ? ae + 7 : ae) - me;
290
290
  return Q(q ? z - Te : z + (6 - Te), H);
291
- case c:
291
+ case f:
292
292
  case le:
293
293
  return oe(Se + "Hours", 0);
294
- case D:
294
+ case S:
295
295
  return oe(Se + "Minutes", 1);
296
- case f:
296
+ case c:
297
297
  return oe(Se + "Seconds", 2);
298
298
  case h:
299
299
  return oe(Se + "Milliseconds", 3);
@@ -303,7 +303,7 @@ var Gt = { exports: {} };
303
303
  }, g.endOf = function(i) {
304
304
  return this.startOf(i, !1);
305
305
  }, g.$set = function(i, V) {
306
- var E, q = K.p(i), T = "set" + (this.$u ? "UTC" : ""), Q = (E = {}, E[c] = T + "Date", E[le] = T + "Date", E[u] = T + "Month", E[$] = T + "FullYear", E[D] = T + "Hours", E[f] = T + "Minutes", E[h] = T + "Seconds", E[e] = T + "Milliseconds", E)[q], oe = q === c ? this.$D + (V - this.$W) : V;
306
+ var E, q = K.p(i), T = "set" + (this.$u ? "UTC" : ""), Q = (E = {}, E[f] = T + "Date", E[le] = T + "Date", E[u] = T + "Month", E[$] = T + "FullYear", E[S] = T + "Hours", E[c] = T + "Minutes", E[h] = T + "Seconds", E[e] = T + "Milliseconds", E)[q], oe = q === f ? this.$D + (V - this.$W) : V;
307
307
  if (q === u || q === $) {
308
308
  var ae = this.clone().set(le, 1);
309
309
  ae.$d[Q](oe), ae.init(), this.$d = ae.set(le, Math.min(this.$D, ae.daysInMonth())).$d;
@@ -322,9 +322,9 @@ var Gt = { exports: {} };
322
322
  };
323
323
  if (T === u) return this.set(u, this.$M + i);
324
324
  if (T === $) return this.set($, this.$y + i);
325
- if (T === c) return Q(1);
325
+ if (T === f) return Q(1);
326
326
  if (T === v) return Q(7);
327
- var oe = (E = {}, E[f] = t, E[D] = r, E[h] = a, E)[T] || 1, ae = this.$d.getTime() + i * oe;
327
+ var oe = (E = {}, E[c] = t, E[S] = r, E[h] = a, E)[T] || 1, ae = this.$d.getTime() + i * oe;
328
328
  return K.w(ae, this);
329
329
  }, g.subtract = function(i, V) {
330
330
  return this.add(-1 * i, V);
@@ -339,7 +339,7 @@ var Gt = { exports: {} };
339
339
  var xe = C < 12 ? "AM" : "PM";
340
340
  return Oe ? xe.toLowerCase() : xe;
341
341
  };
342
- return q.replace(S, function(C, he) {
342
+ return q.replace(D, function(C, he) {
343
343
  return he || function(Oe) {
344
344
  switch (Oe) {
345
345
  case "YY":
@@ -413,13 +413,13 @@ var Gt = { exports: {} };
413
413
  case v:
414
414
  q = (H - ae) / 6048e5;
415
415
  break;
416
- case c:
416
+ case f:
417
417
  q = (H - ae) / 864e5;
418
418
  break;
419
- case D:
419
+ case S:
420
420
  q = H / r;
421
421
  break;
422
- case f:
422
+ case c:
423
423
  q = H / t;
424
424
  break;
425
425
  case h:
@@ -449,7 +449,7 @@ var Gt = { exports: {} };
449
449
  return this.$d.toUTCString();
450
450
  }, w;
451
451
  }(), x = Le.prototype;
452
- return J.prototype = x, [["$ms", e], ["$s", h], ["$m", f], ["$H", D], ["$W", c], ["$M", u], ["$y", $], ["$D", le]].forEach(function(w) {
452
+ return J.prototype = x, [["$ms", e], ["$s", h], ["$m", c], ["$H", S], ["$W", f], ["$M", u], ["$y", $], ["$D", le]].forEach(function(w) {
453
453
  x[w[1]] = function(g) {
454
454
  return this.$g(g, w[0], w[1]);
455
455
  };
@@ -457,7 +457,7 @@ var Gt = { exports: {} };
457
457
  return w.$i || (w(g, Le, J), w.$i = !0), J;
458
458
  }, J.locale = De, J.isDayjs = Me, J.unix = function(w) {
459
459
  return J(1e3 * w);
460
- }, J.en = ie[fe], J.Ls = ie, J.p = {}, J;
460
+ }, J.en = ie[ce], J.Ls = ie, J.p = {}, J;
461
461
  });
462
462
  })(Gt);
463
463
  var Tl = Gt.exports;
@@ -471,7 +471,8 @@ const Dt = /* @__PURE__ */ Wt(Tl), Xt = {
471
471
  "default-placeholder": !0,
472
472
  style: {
473
473
  display: "flex",
474
- flexWrap: "wrap"
474
+ flexWrap: "wrap",
475
+ padding: "20px"
475
476
  },
476
477
  // 表单底部属性
477
478
  footer: {
@@ -532,7 +533,7 @@ const Dt = /* @__PURE__ */ Wt(Tl), Xt = {
532
533
  emits: ["update:modelValue"],
533
534
  setup(n) {
534
535
  var x, w, g, i, V, E, q, T, Q, oe, ae, H, z, Se, me, Te;
535
- const s = lt(n, "modelValue"), a = n, t = re(a.item || {}), r = re(a.ctrlKey), e = re(a.ctrlType), h = re(a.model), f = re([]), D = re([]), c = re(!1), v = re(!1), u = re((w = (x = h == null ? void 0 : h.value) == null ? void 0 : x.form) != null && w["default-placeholder"] ? (i = (g = h == null ? void 0 : h.value) == null ? void 0 : g[r == null ? void 0 : r.value]) == null ? void 0 : i.label : "");
536
+ const s = lt(n, "modelValue"), a = n, t = re(a.item || {}), r = re(a.ctrlKey), e = re(a.ctrlType), h = re(a.model), c = re([]), S = re([]), f = re(!1), v = re(!1), u = re((w = (x = h == null ? void 0 : h.value) == null ? void 0 : x.form) != null && w["default-placeholder"] ? (i = (g = h == null ? void 0 : h.value) == null ? void 0 : g[r == null ? void 0 : r.value]) == null ? void 0 : i.label : "");
536
537
  !((V = e.value) != null && V.startsWith("text")) && !((E = e.value) != null && E.startsWith("link")) && !((q = e.value) != null && q.startsWith("tag")) && !((T = e.value) != null && T.startsWith("div")) && !((Q = e.value) != null && Q.startsWith("span")) && !((oe = e.value) != null && oe.startsWith("avatar")) && ((ae = t.value) != null && ae.style || (t.value.style = { width: ((z = (H = t.value) == null ? void 0 : H.style) == null ? void 0 : z.width) || "100%" }));
537
538
  const d = re({ display: "flex", flex: 1 }), $ = a.t === "t" ? "center" : "flex-start", le = ((Se = t.value) == null ? void 0 : Se.style) || {};
538
539
  d.value = { ...d.value, justifyContent: $, ...le };
@@ -544,7 +545,7 @@ const Dt = /* @__PURE__ */ Wt(Tl), Xt = {
544
545
  "show-file-list": !1,
545
546
  "file-list": [],
546
547
  showDel: (me = t.value) != null && me.showDel ? (Te = t.value) == null ? void 0 : Te.showDel : a.t !== "t"
547
- }), S = re(t.value.innerHtml), ue = (I) => [
548
+ }), D = re(t.value.innerHtml), ue = (I) => [
548
549
  "year",
549
550
  "years",
550
551
  "month",
@@ -557,7 +558,7 @@ const Dt = /* @__PURE__ */ Wt(Tl), Xt = {
557
558
  "daterange",
558
559
  "monthrange",
559
560
  "yearrange"
560
- ].includes(I), ce = (I) => ({
561
+ ].includes(I), fe = (I) => ({
561
562
  year: "YYYY",
562
563
  years: "YYYY",
563
564
  month: "YYYY-MM",
@@ -575,10 +576,10 @@ const Dt = /* @__PURE__ */ Wt(Tl), Xt = {
575
576
  filterable: !0,
576
577
  remote: !!(t.value && t.value["remote-method"]),
577
578
  ...t.value
578
- }), fe = re((I) => {
579
+ }), ce = re((I) => {
579
580
  t.value["remote-method"](I, (C) => {
580
581
  dt(() => {
581
- D.value = C;
582
+ S.value = C;
582
583
  });
583
584
  });
584
585
  }), ie = async (I = "options") => {
@@ -586,14 +587,14 @@ const Dt = /* @__PURE__ */ Wt(Tl), Xt = {
586
587
  try {
587
588
  const he = await ((C = t.value) == null ? void 0 : C.getDicts(a.formInfo));
588
589
  if (typeof he == "string")
589
- D.value = [{ label: he, value: s.value }];
590
+ S.value = [{ label: he, value: s.value }];
590
591
  else {
591
592
  const Oe = he == null ? void 0 : he.map((xe, Ne) => ({
592
593
  ...xe,
593
594
  value: xe.value ?? xe.label ?? Ne,
594
595
  label: xe.label || "未知选项"
595
596
  }));
596
- D.value = Oe || [];
597
+ S.value = Oe || [];
597
598
  }
598
599
  } catch (he) {
599
600
  throw console.error("获取选项失败:", he), he;
@@ -604,13 +605,13 @@ const Dt = /* @__PURE__ */ Wt(Tl), Xt = {
604
605
  }, Me = (I) => {
605
606
  I.preventDefault(), I.stopPropagation(), s.value = "";
606
607
  }, De = (I) => {
607
- c.value = !0;
608
+ f.value = !0;
608
609
  }, J = (I) => {
609
- I.preventDefault(), I.stopPropagation(), c.value = !0;
610
+ I.preventDefault(), I.stopPropagation(), f.value = !0;
610
611
  }, K = re(null);
611
- ft(async () => {
612
+ ct(async () => {
612
613
  var he, Oe, xe, Ne, rt;
613
- t.value && t.value["remote-method"] && (pe.value["remote-method"] = fe), (Oe = (he = h.value[r.value]) == null ? void 0 : he.options) != null && Oe.length && (D.value = h.value[r.value].options);
614
+ t.value && t.value["remote-method"] && (pe.value["remote-method"] = ce), (Oe = (he = h.value[r.value]) == null ? void 0 : he.options) != null && Oe.length && (S.value = h.value[r.value].options);
614
615
  const I = (Ie, He = "options", ze = h.value[r.value]) => {
615
616
  typeof t.value.getDicts == "function" && ie(He).catch((Pe) => {
616
617
  console.error(`Failed to load ${He} for ${Ie}:`, Pe);
@@ -618,7 +619,7 @@ const Dt = /* @__PURE__ */ Wt(Tl), Xt = {
618
619
  };
619
620
  if (["radio", "radio-button", "checkbox-group", "checkbox-group-button", "select", "cascader"].includes(e.value) && I(e.value), e.value === Ce.TREESELECT && await (async () => {
620
621
  try {
621
- typeof t.value.getDicts == "function" ? f.value = await t.value.getDicts(a.formInfo) : f.value = D.value;
622
+ typeof t.value.getDicts == "function" ? c.value = await t.value.getDicts(a.formInfo) : c.value = S.value;
622
623
  } catch (He) {
623
624
  console.error("Failed to load data for tree-select:", He);
624
625
  }
@@ -656,14 +657,14 @@ const Dt = /* @__PURE__ */ Wt(Tl), Xt = {
656
657
  });
657
658
  return (I, C) => {
658
659
  var Z, se, Qe, Ze, Ge, Xe, ot, R, Re, Je;
659
- const he = L("el-image-viewer"), Oe = L("el-radio"), xe = L("el-radio-group"), Ne = L("el-radio-button"), rt = L("el-checkbox"), Ie = L("el-checkbox-group"), He = L("el-checkbox-button"), ze = L("g-select-option"), Pe = L("el-option"), vt = L("el-select"), pt = L("el-tree-select"), l = L("el-time-picker"), o = L("el-time-select"), m = L("el-date-picker"), b = L("el-color-picker"), F = L("el-rate"), U = L("el-slider"), N = L("el-switch"), ye = L("el-transfer"), _e = L("el-cascader"), Ae = L("el-icon"), Ue = L("el-image"), Ye = L("el-tooltip"), We = L("el-upload"), st = L("el-autocomplete"), mt = L("el-input-number"), ct = L("el-input"), ht = L("el-link"), j = L("el-text"), de = L("el-avatar"), M = L("el-tag");
660
+ const he = L("el-image-viewer"), Oe = L("el-radio"), xe = L("el-radio-group"), Ne = L("el-radio-button"), rt = L("el-checkbox"), Ie = L("el-checkbox-group"), He = L("el-checkbox-button"), ze = L("g-select-option"), Pe = L("el-option"), vt = L("el-select"), pt = L("el-tree-select"), l = L("el-time-picker"), o = L("el-time-select"), m = L("el-date-picker"), b = L("el-color-picker"), F = L("el-rate"), U = L("el-slider"), N = L("el-switch"), ye = L("el-transfer"), _e = L("el-cascader"), Ae = L("el-icon"), Ue = L("el-image"), Ye = L("el-tooltip"), We = L("el-upload"), st = L("el-autocomplete"), mt = L("el-input-number"), ft = L("el-input"), ht = L("el-link"), j = L("el-text"), de = L("el-avatar"), M = L("el-tag");
660
661
  return p(), Y(te, null, [
661
662
  X("div", null, [
662
- c.value ? (p(), A(he, {
663
+ f.value ? (p(), A(he, {
663
664
  key: 0,
664
665
  teleported: !0,
665
666
  "url-list": Le.value,
666
- onClose: C[0] || (C[0] = (y) => c.value = !1)
667
+ onClose: C[0] || (C[0] = (y) => f.value = !1)
667
668
  }, null, 8, ["url-list"])) : $e("", !0)
668
669
  ]),
669
670
  X("div", Fl, [
@@ -675,7 +676,7 @@ const Dt = /* @__PURE__ */ Wt(Tl), Xt = {
675
676
  }, t.value), {
676
677
  default: _(() => [
677
678
  k(I.$slots, `${a.t}-${r.value}`, { data: t.value }, () => [
678
- (p(!0), Y(te, null, W(D.value, (y) => (p(), A(Oe, O({ ref_for: !0 }, y), {
679
+ (p(!0), Y(te, null, W(S.value, (y) => (p(), A(Oe, O({ ref_for: !0 }, y), {
679
680
  default: _(() => [
680
681
  k(I.$slots, `${a.t}-${r.value}-options`, { option: y }, void 0, !0)
681
682
  ]),
@@ -692,7 +693,7 @@ const Dt = /* @__PURE__ */ Wt(Tl), Xt = {
692
693
  }, t.value), {
693
694
  default: _(() => [
694
695
  k(I.$slots, `${a.t}-${r.value}`, { data: t.value }, () => [
695
- (p(!0), Y(te, null, W(D.value, (y) => (p(), A(Ne, O({ ref_for: !0 }, y), {
696
+ (p(!0), Y(te, null, W(S.value, (y) => (p(), A(Ne, O({ ref_for: !0 }, y), {
696
697
  default: _(() => [
697
698
  k(I.$slots, `${a.t}-${r.value}-options`, { option: y }, void 0, !0)
698
699
  ]),
@@ -721,7 +722,7 @@ const Dt = /* @__PURE__ */ Wt(Tl), Xt = {
721
722
  }, t.value), {
722
723
  default: _(() => [
723
724
  k(I.$slots, `${a.t}-${r.value}`, { data: t.value }, () => [
724
- (p(!0), Y(te, null, W(D.value, (y) => (p(), A(rt, O({ ref_for: !0 }, y), {
725
+ (p(!0), Y(te, null, W(S.value, (y) => (p(), A(rt, O({ ref_for: !0 }, y), {
725
726
  default: _(() => [
726
727
  k(I.$slots, `${a.t}-${r.value}-options`, { option: y }, () => [
727
728
  Ve(Ee(y.label), 1)
@@ -740,7 +741,7 @@ const Dt = /* @__PURE__ */ Wt(Tl), Xt = {
740
741
  }, t.value), {
741
742
  default: _(() => [
742
743
  k(I.$slots, `${a.t}-${r.value}`, { data: t.value }, () => [
743
- (p(!0), Y(te, null, W(D.value, (y) => (p(), A(He, O({ ref_for: !0 }, y), {
744
+ (p(!0), Y(te, null, W(S.value, (y) => (p(), A(He, O({ ref_for: !0 }, y), {
744
745
  default: _(() => [
745
746
  k(I.$slots, `${a.t}-${r.value}-options`, { option: y }, void 0, !0)
746
747
  ]),
@@ -761,8 +762,8 @@ const Dt = /* @__PURE__ */ Wt(Tl), Xt = {
761
762
  disabled: h.value[r.value].disabled
762
763
  }, pe.value), be({
763
764
  default: _(() => [
764
- k(I.$slots, `${a.t}-${r.value}`, { options: D.value }, () => [
765
- (p(!0), Y(te, null, W(D.value, (y) => (p(), Y(te, {
765
+ k(I.$slots, `${a.t}-${r.value}`, { options: S.value }, () => [
766
+ (p(!0), Y(te, null, W(S.value, (y) => (p(), Y(te, {
766
767
  key: y.value
767
768
  }, [
768
769
  ee(Pe, O({ ref_for: !0 }, P(je)(y, (ne) => ne != "children"), {
@@ -879,7 +880,7 @@ const Dt = /* @__PURE__ */ Wt(Tl), Xt = {
879
880
  "onUpdate:modelValue": C[8] || (C[8] = (y) => s.value = y),
880
881
  placeholder: u.value,
881
882
  disabled: h.value[r.value].disabled
882
- }, t.value, { data: f.value }), be({ _: 2 }, [
883
+ }, t.value, { data: c.value }), be({ _: 2 }, [
883
884
  W(B(), (y) => ({
884
885
  name: y,
885
886
  fn: _((ne) => [
@@ -907,7 +908,7 @@ const Dt = /* @__PURE__ */ Wt(Tl), Xt = {
907
908
  "onUpdate:modelValue": C[11] || (C[11] = (y) => s.value = y),
908
909
  type: e.value,
909
910
  placeholder: u.value,
910
- "value-format": ce(e.value),
911
+ "value-format": fe(e.value),
911
912
  disabled: h.value[r.value].disabled
912
913
  }, t.value), be({ _: 2 }, [
913
914
  W(B(), (y) => ({
@@ -958,7 +959,7 @@ const Dt = /* @__PURE__ */ Wt(Tl), Xt = {
958
959
  key: 15,
959
960
  modelValue: s.value,
960
961
  "onUpdate:modelValue": C[17] || (C[17] = (y) => s.value = y)
961
- }, t.value, { options: D.value }), be({ _: 2 }, [
962
+ }, t.value, { options: S.value }), be({ _: 2 }, [
962
963
  W(B(), (y) => ({
963
964
  name: y,
964
965
  fn: _((ne) => [
@@ -1078,7 +1079,7 @@ const Dt = /* @__PURE__ */ Wt(Tl), Xt = {
1078
1079
  key: 19,
1079
1080
  style: qe([{ position: "relative" }, d.value])
1080
1081
  }, [
1081
- ee(ct, O({
1082
+ ee(ft, O({
1082
1083
  modelValue: s.value,
1083
1084
  "onUpdate:modelValue": C[24] || (C[24] = (y) => s.value = y),
1084
1085
  placeholder: u.value,
@@ -1106,7 +1107,7 @@ const Dt = /* @__PURE__ */ Wt(Tl), Xt = {
1106
1107
  }, [
1107
1108
  ee(ht, O(t.value, {
1108
1109
  type: e.value.replace("link-", ""),
1109
- innerHTML: S.value || s.value
1110
+ innerHTML: D.value || s.value
1110
1111
  }), null, 16, ["type", "innerHTML"])
1111
1112
  ], 4)) : e.value != "textarea" && ((Ze = e.value) != null && Ze.startsWith("text")) ? (p(), Y("div", {
1112
1113
  key: 21,
@@ -1114,15 +1115,15 @@ const Dt = /* @__PURE__ */ Wt(Tl), Xt = {
1114
1115
  }, [
1115
1116
  ee(j, O(t.value, {
1116
1117
  type: e.value.replace("text-", ""),
1117
- innerHTML: S.value || s.value
1118
+ innerHTML: D.value || s.value
1118
1119
  }), null, 16, ["type", "innerHTML"])
1119
1120
  ], 4)) : e.value == "avatar" ? (p(), Y("div", {
1120
1121
  key: 22,
1121
1122
  style: qe(d.value)
1122
1123
  }, [
1123
- S.value ? (p(), A(de, St(O({ key: 0 }, t.value)), {
1124
+ D.value ? (p(), A(de, St(O({ key: 0 }, t.value)), {
1124
1125
  default: _(() => [
1125
- X("div", { innerHTML: S.value }, null, 8, Al)
1126
+ X("div", { innerHTML: D.value }, null, 8, Al)
1126
1127
  ]),
1127
1128
  _: 1
1128
1129
  }, 16)) : (p(), A(de, St(O({ key: 1 }, t.value)), null, 16))
@@ -1130,7 +1131,7 @@ const Dt = /* @__PURE__ */ Wt(Tl), Xt = {
1130
1131
  key: 23,
1131
1132
  style: qe(d.value)
1132
1133
  }, [
1133
- Array.isArray(S.value) && S.value.length > 0 ? (p(!0), Y(te, { key: 0 }, W(S.value, (y, ne) => (p(), Y(te, { key: ne }, [
1134
+ Array.isArray(D.value) && D.value.length > 0 ? (p(!0), Y(te, { key: 0 }, W(D.value, (y, ne) => (p(), Y(te, { key: ne }, [
1134
1135
  typeof y == "object" ? (p(), A(M, O({
1135
1136
  key: 0,
1136
1137
  ref_for: !0
@@ -1147,15 +1148,15 @@ const Dt = /* @__PURE__ */ Wt(Tl), Xt = {
1147
1148
  }), null, 16, ["type", "innerHTML"]))
1148
1149
  ], 64))), 128)) : (p(), A(M, O({ key: 1 }, t.value, {
1149
1150
  type: e.value.replace("tag-", ""),
1150
- innerHTML: S.value || s.value
1151
+ innerHTML: D.value || s.value
1151
1152
  }), null, 16, ["type", "innerHTML"]))
1152
1153
  ], 4)) : e.value == "div" ? (p(), Y("div", O({ key: 24 }, t.value, {
1153
- innerHTML: S.value || s.value,
1154
+ innerHTML: D.value || s.value,
1154
1155
  style: d.value
1155
1156
  }), null, 16, Bl)) : e.value == "span" ? (p(), Y("span", O({ key: 25 }, t.value, {
1156
- innerHTML: S.value || s.value,
1157
+ innerHTML: D.value || s.value,
1157
1158
  style: d.value
1158
- }), null, 16, Ol)) : (p(), A(ct, O({
1159
+ }), null, 16, Ol)) : (p(), A(ft, O({
1159
1160
  key: 26,
1160
1161
  modelValue: s.value,
1161
1162
  "onUpdate:modelValue": C[25] || (C[25] = (y) => s.value = y),
@@ -1241,7 +1242,7 @@ const Dt = /* @__PURE__ */ Wt(Tl), Xt = {
1241
1242
  emits: /* @__PURE__ */ tt(["submit", "reset"], ["update:modelValue"]),
1242
1243
  setup(n, { expose: s, emit: a }) {
1243
1244
  var ge, Me, De, J, K, Le;
1244
- const t = lt(n, "modelValue"), r = a, e = re(null), h = qt("options"), f = re({}), D = re(""), c = n;
1245
+ const t = lt(n, "modelValue"), r = a, e = re(null), h = qt("options"), c = re({}), S = re(""), f = n;
1245
1246
  t.value.form = Fe(
1246
1247
  Xt,
1247
1248
  h == null ? void 0 : h.form,
@@ -1361,7 +1362,7 @@ const Dt = /* @__PURE__ */ Wt(Tl), Xt = {
1361
1362
  return w;
1362
1363
  }, B = (x, w = !1) => {
1363
1364
  var V, E, q, T, Q;
1364
- const g = w ? x : x == null ? void 0 : x.item, i = typeof (g == null ? void 0 : g.editor) == "function" ? g.editor(f.value, (V = t.value.form) == null ? void 0 : V.modalState) : (g == null ? void 0 : g.editor) || {};
1365
+ const g = w ? x : x == null ? void 0 : x.item, i = typeof (g == null ? void 0 : g.editor) == "function" ? g.editor(c.value, (V = t.value.form) == null ? void 0 : V.modalState) : (g == null ? void 0 : g.editor) || {};
1365
1366
  if (((E = t.value.form) == null ? void 0 : E.modalState) === "edit") {
1366
1367
  const oe = typeof (g == null ? void 0 : g.editor) == "object" ? (q = g.editor) == null ? void 0 : q.ep : typeof (g == null ? void 0 : g.editor) == "function" ? i == null ? void 0 : i.ep : {};
1367
1368
  return { ...i, ...oe };
@@ -1373,16 +1374,16 @@ const Dt = /* @__PURE__ */ Wt(Tl), Xt = {
1373
1374
  return i;
1374
1375
  }, G = (x) => {
1375
1376
  var g, i, V, E, q;
1376
- const w = typeof x.editor == "function" ? x.editor(f.value, (g = t.value.form) == null ? void 0 : g.modalState) : x.editor;
1377
+ const w = typeof x.editor == "function" ? x.editor(c.value, (g = t.value.form) == null ? void 0 : g.modalState) : x.editor;
1377
1378
  return ((i = t.value.form) == null ? void 0 : i.modalState) === "edit" ? ((V = w == null ? void 0 : w.ep) == null ? void 0 : V.type) ?? (w == null ? void 0 : w.type) ?? x.type : ((E = t.value.form) == null ? void 0 : E.modalState) === "add" ? ((q = w == null ? void 0 : w.ap) == null ? void 0 : q.type) ?? (w == null ? void 0 : w.type) ?? x.type : (w == null ? void 0 : w.type) ?? x.type;
1378
1379
  };
1379
- ft(() => {
1380
- S(), c != null && c.editForm ? f.value = c.editForm : f.value = ce.value;
1380
+ ct(() => {
1381
+ D(), f != null && f.editForm ? c.value = f.editForm : c.value = fe.value;
1381
1382
  }), ol(() => {
1382
1383
  e.value = null;
1383
1384
  });
1384
- const S = () => {
1385
- D.value = Math.random().toString(36).substring(2);
1385
+ const D = () => {
1386
+ S.value = Math.random().toString(36).substring(2);
1386
1387
  for (const [x, w] of Object.entries(ue.value))
1387
1388
  t.value[x].formItem = {
1388
1389
  ...t.value[x].formItem,
@@ -1395,11 +1396,11 @@ const Dt = /* @__PURE__ */ Wt(Tl), Xt = {
1395
1396
  () => Object.fromEntries(
1396
1397
  Object.entries(t.value).filter((x) => x[1].type != "hidden").filter((x) => x[1].hidden !== !0).filter((x) => x[1].edit !== !1).filter((x) => x[1].editor !== !1).filter((x) => x[1].type !== "control").filter((x) => !["table", "tableColumns", "query", "queryItems", "form", "formItems", "control", "dialog"].includes(x[0])).filter((x) => {
1397
1398
  var g, i, V;
1398
- const w = typeof x[1].editor == "function" ? x[1].editor(f.value, (g = t.value.form) == null ? void 0 : g.modalState) : x[1].editor;
1399
+ const w = typeof x[1].editor == "function" ? x[1].editor(c.value, (g = t.value.form) == null ? void 0 : g.modalState) : x[1].editor;
1399
1400
  return t.value.form.modalState === "edit" ? ((i = w == null ? void 0 : w.ep) == null ? void 0 : i.editor) !== !1 : t.value.form.modalState === "add" ? ((V = w == null ? void 0 : w.ap) == null ? void 0 : V.editor) !== !1 : !0;
1400
1401
  }).map((x) => [x[0], x[1]])
1401
1402
  )
1402
- ), ce = nt(
1403
+ ), fe = nt(
1403
1404
  () => Object.fromEntries(
1404
1405
  Object.entries(t.value).filter((x) => x[1].type != "hidden").filter((x) => x[1].type != "control").map((x) => [x[0], x[1].value])
1405
1406
  )
@@ -1418,12 +1419,12 @@ const Dt = /* @__PURE__ */ Wt(Tl), Xt = {
1418
1419
  ...w.items.map(({ item: g }) => g.tabPane || {})
1419
1420
  );
1420
1421
  }), Array.from(x.values());
1421
- }), fe = re([
1422
+ }), ce = re([
1422
1423
  {
1423
1424
  name: "f-submit",
1424
1425
  label: t.value.form.submit.label,
1425
1426
  click: t.value.form.submit.click,
1426
- hidden: c.flag === "view" ? !0 : t.value.form.submit.hidden,
1427
+ hidden: f.flag === "view" ? !0 : t.value.form.submit.hidden,
1427
1428
  info: t.value.form.submit,
1428
1429
  // filterObject(model.value.form.submit, (k) => !["click"].includes(k)),
1429
1430
  sort: t.value.form.submit.sort ?? 1,
@@ -1436,7 +1437,7 @@ const Dt = /* @__PURE__ */ Wt(Tl), Xt = {
1436
1437
  name: "f-save-submit",
1437
1438
  label: t.value.form.saveSubmit.label,
1438
1439
  click: t.value.form.saveSubmit.click,
1439
- hidden: !(c.flag == "add" && t.value.form.saveSubmit.hidden === !1),
1440
+ hidden: !(f.flag == "add" && t.value.form.saveSubmit.hidden === !1),
1440
1441
  info: t.value.form.saveSubmit,
1441
1442
  // filterObject(model.value.form.saveSubmit, (k) => !["click"].includes(k)),
1442
1443
  sort: t.value.form.saveSubmit.sort ?? 1,
@@ -1451,18 +1452,18 @@ const Dt = /* @__PURE__ */ Wt(Tl), Xt = {
1451
1452
  click: t.value.form.reset.click,
1452
1453
  info: t.value.form.reset,
1453
1454
  // filterObject(model.value.form.reset, (k) => !["click"].includes(k)),
1454
- hidden: !(c.flag === "add" && t.value.form.reset.hidden === !1),
1455
+ hidden: !(f.flag === "add" && t.value.form.reset.hidden === !1),
1455
1456
  sort: t.value.form.reset.sort ?? 2,
1456
1457
  // 使用空值合并运算符
1457
1458
  originalOrder: 1
1458
1459
  // 添加原始顺序标识
1459
1460
  }
1460
- ]), ie = nt(() => fe.value.filter((x) => !x.hidden).sort((x, w) => x.sort - w.sort || x.originalOrder - w.originalOrder));
1461
+ ]), ie = nt(() => ce.value.filter((x) => !x.hidden).sort((x, w) => x.sort - w.sort || x.originalOrder - w.originalOrder));
1461
1462
  return s({
1462
1463
  submit: v,
1463
1464
  saveSubmit: v,
1464
1465
  reset: u,
1465
- formData: f
1466
+ formData: c
1466
1467
  }), (x, w) => {
1467
1468
  var Q, oe, ae;
1468
1469
  const g = L("el-form-item"), i = L("el-col"), V = L("el-tab-pane"), E = L("el-tabs"), q = L("el-form"), T = L("el-button");
@@ -1471,9 +1472,9 @@ const Dt = /* @__PURE__ */ Wt(Tl), Xt = {
1471
1472
  {
1472
1473
  ref_key: "gform",
1473
1474
  ref: e,
1474
- model: f.value,
1475
+ model: c.value,
1475
1476
  style: {
1476
- width: "98%",
1477
+ width: "100%",
1477
1478
  padding: 0,
1478
1479
  margin: 0,
1479
1480
  "box-sizing": "border-box"
@@ -1517,21 +1518,21 @@ const Dt = /* @__PURE__ */ Wt(Tl), Xt = {
1517
1518
  default: _(() => [
1518
1519
  k(x.$slots, "f-" + z.key, {
1519
1520
  item: z == null ? void 0 : z.item,
1520
- formInfo: f.value,
1521
+ formInfo: c.value,
1521
1522
  model: t.value,
1522
- form: f.value
1523
+ form: c.value
1523
1524
  }, () => [
1524
1525
  (p(), A(Et, {
1525
- modelValue: f.value[z.key],
1526
- "onUpdate:modelValue": (I) => f.value[z.key] = I,
1526
+ modelValue: c.value[z.key],
1527
+ "onUpdate:modelValue": (I) => c.value[z.key] = I,
1527
1528
  item: B(z),
1528
1529
  ctrlKey: z.key,
1529
1530
  ctrlType: G(z == null ? void 0 : z.item),
1530
1531
  model: t.value,
1531
- key: `${z.key}-${D.value}`,
1532
+ key: `${z.key}-${S.value}`,
1532
1533
  class: "g-ctrl-container",
1533
1534
  t: "f",
1534
- formInfo: f.value
1535
+ formInfo: c.value
1535
1536
  }, be({ _: 2 }, [
1536
1537
  W(x.$slots, (I, C) => ({
1537
1538
  name: C,
@@ -1584,21 +1585,21 @@ const Dt = /* @__PURE__ */ Wt(Tl), Xt = {
1584
1585
  default: _(() => [
1585
1586
  k(x.$slots, "f-" + z, {
1586
1587
  item: H,
1587
- formInfo: f.value,
1588
+ formInfo: c.value,
1588
1589
  model: t.value,
1589
- form: f.value
1590
+ form: c.value
1590
1591
  }, () => [
1591
1592
  (p(), A(Et, {
1592
- modelValue: f.value[z],
1593
- "onUpdate:modelValue": (me) => f.value[z] = me,
1593
+ modelValue: c.value[z],
1594
+ "onUpdate:modelValue": (me) => c.value[z] = me,
1594
1595
  item: B(H, !0),
1595
1596
  ctrlKey: z,
1596
1597
  ctrlType: G(H),
1597
- key: `${z}-${D.value}`,
1598
+ key: `${z}-${S.value}`,
1598
1599
  model: t.value,
1599
1600
  class: "g-ctrl-container",
1600
1601
  t: "f",
1601
- formInfo: f.value
1602
+ formInfo: c.value
1602
1603
  }, be({ _: 2 }, [
1603
1604
  W(x.$slots, (me, Te) => ({
1604
1605
  name: Te,
@@ -1637,7 +1638,7 @@ const Dt = /* @__PURE__ */ Wt(Tl), Xt = {
1637
1638
  key: 0,
1638
1639
  ref_for: !0
1639
1640
  }, H.info, {
1640
- onClick: wt((Se) => H.click(f.value, t.value, H.flag), ["stop"])
1641
+ onClick: wt((Se) => H.click(c.value, t.value, H.flag), ["stop"])
1641
1642
  }), {
1642
1643
  default: _(() => [
1643
1644
  Ve(Ee(H == null ? void 0 : H.label), 1)
@@ -1654,7 +1655,7 @@ const Dt = /* @__PURE__ */ Wt(Tl), Xt = {
1654
1655
  ]);
1655
1656
  };
1656
1657
  }
1657
- }), xt = /* @__PURE__ */ at(zl, [["__scopeId", "data-v-a28ff0af"]]), Bt = {
1658
+ }), xt = /* @__PURE__ */ at(zl, [["__scopeId", "data-v-3b3ffd4d"]]), Bt = {
1658
1659
  __name: "g-query-item",
1659
1660
  props: /* @__PURE__ */ tt(["more"], {
1660
1661
  modelValue: { required: !0 },
@@ -1664,24 +1665,24 @@ const Dt = /* @__PURE__ */ Wt(Tl), Xt = {
1664
1665
  }),
1665
1666
  emits: ["update:modelValue", "update:info"],
1666
1667
  setup(n) {
1667
- const s = lt(n, "modelValue"), a = n, t = lt(n, "info"), r = (D) => {
1668
- let c = Object.entries(s.value).filter((u) => {
1668
+ const s = lt(n, "modelValue"), a = n, t = lt(n, "info"), r = (S) => {
1669
+ let f = Object.entries(s.value).filter((u) => {
1669
1670
  var d;
1670
- return typeof u[1].search == "function" ? u[1].search && ((d = u[1].search(t.value, s.value.table)) == null ? void 0 : d.more) === D : u[1].search && u[1].search.more === D;
1671
- }).map((u) => [u[0], u[1]]), v = Object.fromEntries(c);
1671
+ return typeof u[1].search == "function" ? u[1].search && ((d = u[1].search(t.value, s.value.table)) == null ? void 0 : d.more) === S : u[1].search && u[1].search.more === S;
1672
+ }).map((u) => [u[0], u[1]]), v = Object.fromEntries(f);
1672
1673
  return nt(() => v).value;
1673
- }, e = (D) => typeof D.search == "function" ? D.search(t.value, s.value.table) : D.search || {}, h = (D) => {
1674
- const c = e(D);
1675
- return (c == null ? void 0 : c.type) || D.type;
1676
- }, f = (D) => {
1674
+ }, e = (S) => typeof S.search == "function" ? S.search(t.value, s.value.table) : S.search || {}, h = (S) => {
1675
+ const f = e(S);
1676
+ return (f == null ? void 0 : f.type) || S.type;
1677
+ }, c = (S) => {
1677
1678
  var u;
1678
- const c = e(D);
1679
- let v = (c == null ? void 0 : c.width) || ((u = s.value.queryItems) == null ? void 0 : u.width) || "100%";
1679
+ const f = e(S);
1680
+ let v = (f == null ? void 0 : f.width) || ((u = s.value.queryItems) == null ? void 0 : u.width) || "100%";
1680
1681
  return isNaN(v) || (v += "px"), v;
1681
1682
  };
1682
- return (D, c) => {
1683
+ return (S, f) => {
1683
1684
  const v = L("el-form-item");
1684
- return p(!0), Y(te, null, W(r(a.more), (u, d) => k(D.$slots, `q-${d}`, {
1685
+ return p(!0), Y(te, null, W(r(a.more), (u, d) => k(S.$slots, `q-${d}`, {
1685
1686
  key: d,
1686
1687
  item: u,
1687
1688
  queryModel: t.value,
@@ -1689,11 +1690,11 @@ const Dt = /* @__PURE__ */ Wt(Tl), Xt = {
1689
1690
  }, () => [
1690
1691
  ee(v, O({
1691
1692
  label: u.label,
1692
- style: { width: f(u) },
1693
+ style: { width: c(u) },
1693
1694
  ref_for: !0
1694
1695
  }, { ...s.value.queryItems, ...e(u) }), {
1695
1696
  label: _(() => [
1696
- k(D.$slots, `q-${d}-label`, {
1697
+ k(S.$slots, `q-${d}-label`, {
1697
1698
  item: u,
1698
1699
  model: s.value
1699
1700
  })
@@ -1709,10 +1710,10 @@ const Dt = /* @__PURE__ */ Wt(Tl), Xt = {
1709
1710
  t: "q",
1710
1711
  formInfo: t.value
1711
1712
  }, be({ _: 2 }, [
1712
- W(Object.keys(D.$slots), ($) => ({
1713
+ W(Object.keys(S.$slots), ($) => ({
1713
1714
  name: $,
1714
1715
  fn: _((le) => [
1715
- k(D.$slots, $, {
1716
+ k(S.$slots, $, {
1716
1717
  data: le,
1717
1718
  item: u,
1718
1719
  model: s.value
@@ -1739,7 +1740,7 @@ const Dt = /* @__PURE__ */ Wt(Tl), Xt = {
1739
1740
  },
1740
1741
  emits: /* @__PURE__ */ tt(["query", "reset"], ["update:modelValue", "update:info"]),
1741
1742
  setup(n, { emit: s }) {
1742
- const a = lt(n, "modelValue"), t = s, r = qt("options"), e = re(!1), h = lt(n, "info"), f = {
1743
+ const a = lt(n, "modelValue"), t = s, r = qt("options"), e = re(!1), h = lt(n, "info"), c = {
1743
1744
  hidden: !1,
1744
1745
  type: "hidden",
1745
1746
  labelWidth: 100,
@@ -1791,8 +1792,8 @@ const Dt = /* @__PURE__ */ Wt(Tl), Xt = {
1791
1792
  }
1792
1793
  }
1793
1794
  };
1794
- a.value.query = Fe(f, r == null ? void 0 : r.query, a.value.query);
1795
- const D = {
1795
+ a.value.query = Fe(c, r == null ? void 0 : r.query, a.value.query);
1796
+ const S = {
1796
1797
  2: {
1797
1798
  title: "更多查询",
1798
1799
  showClose: !1,
@@ -1810,10 +1811,10 @@ const Dt = /* @__PURE__ */ Wt(Tl), Xt = {
1810
1811
  }
1811
1812
  };
1812
1813
  a.value.query.more.dialog = Fe(
1813
- D[a.value.query.more.mode] || {},
1814
+ S[a.value.query.more.mode] || {},
1814
1815
  a.value.query.more.dialog
1815
1816
  );
1816
- const c = {
1817
+ const f = {
1817
1818
  type: "hidden",
1818
1819
  hidden: !1,
1819
1820
  labelPosition: "right",
@@ -1822,9 +1823,9 @@ const Dt = /* @__PURE__ */ Wt(Tl), Xt = {
1822
1823
  // width: "280px"
1823
1824
  }
1824
1825
  };
1825
- a.value.queryItems = Fe(c, r == null ? void 0 : r.queryItems, a.value.queryItems);
1826
+ a.value.queryItems = Fe(f, r == null ? void 0 : r.queryItems, a.value.queryItems);
1826
1827
  const v = (B, G) => {
1827
- const S = Object.keys(B.slots).filter((ue) => ue !== "default").reduce((ue, ce) => (ue[ce] = (pe) => B.slots[ce]({
1828
+ const D = Object.keys(B.slots).filter((ue) => ue !== "default").reduce((ue, fe) => (ue[fe] = (pe) => B.slots[fe]({
1828
1829
  model: a.value
1829
1830
  // 传递当前模型数据
1830
1831
  }), ue), {});
@@ -1834,13 +1835,13 @@ const Dt = /* @__PURE__ */ Wt(Tl), Xt = {
1834
1835
  info: h.value,
1835
1836
  "onUpdate:info": (ue) => h.value = ue,
1836
1837
  more: G
1837
- }, S);
1838
+ }, D);
1838
1839
  }, u = Yt(), d = () => {
1839
- var S, ue, ce, pe, fe, ie, ge, Me, De;
1840
+ var D, ue, fe, pe, ce, ie, ge, Me, De;
1840
1841
  const B = [
1841
1842
  {
1842
1843
  key: "query",
1843
- hidden: (ce = (ue = (S = a.value) == null ? void 0 : S.query) == null ? void 0 : ue.query) == null ? void 0 : ce.hidden,
1844
+ hidden: (fe = (ue = (D = a.value) == null ? void 0 : D.query) == null ? void 0 : ue.query) == null ? void 0 : fe.hidden,
1844
1845
  component: Be,
1845
1846
  props: {
1846
1847
  ...a.value.query.query,
@@ -1851,7 +1852,7 @@ const Dt = /* @__PURE__ */ Wt(Tl), Xt = {
1851
1852
  },
1852
1853
  {
1853
1854
  key: "reset",
1854
- hidden: (ie = (fe = (pe = a.value) == null ? void 0 : pe.query) == null ? void 0 : fe.reset) == null ? void 0 : ie.hidden,
1855
+ hidden: (ie = (ce = (pe = a.value) == null ? void 0 : pe.query) == null ? void 0 : ce.reset) == null ? void 0 : ie.hidden,
1855
1856
  component: Be,
1856
1857
  props: {
1857
1858
  ...a.value.query.reset,
@@ -1887,12 +1888,12 @@ const Dt = /* @__PURE__ */ Wt(Tl), Xt = {
1887
1888
  alert("查询设置,正在开发中......");
1888
1889
  };
1889
1890
  return (B, G) => {
1890
- var ce, pe, fe, ie, ge, Me, De, J, K, Le, x, w, g, i, V, E, q;
1891
- const S = L("el-form-item"), ue = L("el-drawer");
1891
+ var fe, pe, ce, ie, ge, Me, De, J, K, Le, x, w, g, i, V, E, q;
1892
+ const D = L("el-form-item"), ue = L("el-drawer");
1892
1893
  return p(), Y(te, null, [
1893
1894
  X("div", {
1894
1895
  class: "g-query-container",
1895
- style: qe({ ...$.value, ...((pe = (ce = a.value.query) == null ? void 0 : ce.container) == null ? void 0 : pe.style) || {} }),
1896
+ style: qe({ ...$.value, ...((pe = (fe = a.value.query) == null ? void 0 : fe.container) == null ? void 0 : pe.style) || {} }),
1896
1897
  onDblclick: le
1897
1898
  }, [
1898
1899
  ee(P(gt), O({
@@ -1903,7 +1904,7 @@ const Dt = /* @__PURE__ */ Wt(Tl), Xt = {
1903
1904
  var T, Q;
1904
1905
  return [
1905
1906
  (p(), A(Ke(v({ slots: B.$slots }, void 0)))),
1906
- ((Q = (T = a.value.query) == null ? void 0 : T.container) == null ? void 0 : Q.inline) === !0 ? (p(), A(S, { key: 0 }, {
1907
+ ((Q = (T = a.value.query) == null ? void 0 : T.container) == null ? void 0 : Q.inline) === !0 ? (p(), A(D, { key: 0 }, {
1907
1908
  default: _(() => {
1908
1909
  var oe, ae, H, z, Se;
1909
1910
  return [
@@ -1940,7 +1941,7 @@ const Dt = /* @__PURE__ */ Wt(Tl), Xt = {
1940
1941
  }),
1941
1942
  _: 3
1942
1943
  }, 16),
1943
- ((ge = (ie = (fe = a.value) == null ? void 0 : fe.query) == null ? void 0 : ie.container) == null ? void 0 : ge.inline) === !1 ? (p(), Y("div", {
1944
+ ((ge = (ie = (ce = a.value) == null ? void 0 : ce.query) == null ? void 0 : ie.container) == null ? void 0 : ge.inline) === !1 ? (p(), Y("div", {
1944
1945
  key: 0,
1945
1946
  style: qe((De = (Me = a.value.query) == null ? void 0 : Me.btns) == null ? void 0 : De.style)
1946
1947
  }, [
@@ -2056,10 +2057,10 @@ const Dt = /* @__PURE__ */ Wt(Tl), Xt = {
2056
2057
  ], 64);
2057
2058
  };
2058
2059
  }
2059
- }, Wl = /* @__PURE__ */ at(Nl, [["__scopeId", "data-v-fbc339ad"]]), Gl = { style: { padding: "0", margin: "0", "box-sizing": "border-box" } }, Xl = { style: { padding: "5px 10px", "box-sizing": "border-box" } }, Ql = { style: { display: "flex", flex: "1", "align-items": "center", height: "30px" } }, Zl = { style: { display: "flex", flex: "1", "align-items": "center" } }, Jl = {
2060
+ }, Wl = /* @__PURE__ */ at(Nl, [["__scopeId", "data-v-fbc339ad"]]), Gl = { style: { padding: "15px", "box-sizing": "border-box" } }, Xl = { style: { display: "flex", flex: "1", "align-items": "center", height: "30px" } }, Ql = { style: { display: "flex", flex: "1", "align-items": "center" } }, Zl = {
2060
2061
  style: { display: "flex", "flex-wrap": "wrap" },
2061
2062
  id: "excelSortEl"
2062
- }, Kl = ["textContent"], ea = { style: { width: "100%", display: "flex", padding: "10px", "box-sizing": "border-box", "justify-content": "center", "border-top": "1px solid #dcdfe6" } }, ta = {
2063
+ }, Jl = ["textContent"], Kl = { style: { width: "100%", display: "flex", padding: "10px", "box-sizing": "border-box", "justify-content": "center", "border-top": "1px solid #dcdfe6" } }, ea = {
2063
2064
  __name: "check-excel-item",
2064
2065
  props: {
2065
2066
  items: Array,
@@ -2068,43 +2069,43 @@ const Dt = /* @__PURE__ */ Wt(Tl), Xt = {
2068
2069
  emits: ["excel"],
2069
2070
  setup(n, { emit: s }) {
2070
2071
  const a = n, t = s, r = re(a.items), e = () => {
2071
- r.value.forEach((D) => {
2072
- D.value = !0;
2072
+ r.value.forEach((S) => {
2073
+ S.value = !0;
2073
2074
  });
2074
2075
  }, h = () => {
2075
- r.value.forEach((D) => {
2076
- D.value = !1;
2076
+ r.value.forEach((S) => {
2077
+ S.value = !1;
2077
2078
  });
2078
- }, f = () => {
2079
- t("excel", r.value, (D, c = "excel.xls") => {
2080
- if (!D) {
2079
+ }, c = () => {
2080
+ t("excel", r.value, (S, f = "excel.xls") => {
2081
+ if (!S) {
2081
2082
  console.error("下载链接无效");
2082
2083
  return;
2083
2084
  }
2084
2085
  try {
2085
2086
  const v = document.createElement("a");
2086
- v.href = D, v.download = c, v.style.display = "none", document.body.appendChild(v), v.click(), document.body.removeChild(v);
2087
+ v.href = S, v.download = f, v.style.display = "none", document.body.appendChild(v), v.click(), document.body.removeChild(v);
2087
2088
  } catch (v) {
2088
2089
  console.error("下载文件时出现错误:", v);
2089
2090
  }
2090
2091
  });
2091
2092
  };
2092
- return ft(() => {
2093
- const D = new Nt(document.getElementById("excelSortEl"), {
2093
+ return ct(() => {
2094
+ const S = new Nt(document.getElementById("excelSortEl"), {
2094
2095
  animation: 150,
2095
2096
  onEnd: () => {
2096
- D.toArray();
2097
+ S.toArray();
2097
2098
  }
2098
- }), c = D;
2099
+ }), f = S;
2099
2100
  dl(() => {
2100
- c && c.destroy();
2101
+ f && f.destroy();
2101
2102
  });
2102
- }), (D, c) => {
2103
+ }), (S, f) => {
2103
2104
  const v = L("el-divider"), u = L("el-icon"), d = L("el-text"), $ = L("el-checkbox"), le = L("el-button");
2104
2105
  return p(), Y("div", Gl, [
2105
- X("div", Xl, [
2106
- X("div", Ql, [
2107
- X("div", Zl, [
2106
+ X("div", null, [
2107
+ X("div", Xl, [
2108
+ X("div", Ql, [
2108
2109
  X("a", {
2109
2110
  onClick: e,
2110
2111
  style: { cursor: "pointer" }
@@ -2127,14 +2128,14 @@ const Dt = /* @__PURE__ */ Wt(Tl), Xt = {
2127
2128
  ]),
2128
2129
  _: 1
2129
2130
  }),
2130
- c[0] || (c[0] = Ve(" 拖动列标题可以改变表格列的生成顺序 ! "))
2131
+ f[0] || (f[0] = Ve(" 拖动列标题可以改变表格列的生成顺序 ! "))
2131
2132
  ]),
2132
2133
  _: 1
2133
2134
  })
2134
2135
  ])
2135
2136
  ]),
2136
- c[1] || (c[1] = X("div", { style: { margin: "1px 0" } }, null, -1)),
2137
- X("div", Jl, [
2137
+ f[1] || (f[1] = X("div", { style: { margin: "1px 0" } }, null, -1)),
2138
+ X("div", Zl, [
2138
2139
  (p(!0), Y(te, null, W(r.value, (B) => (p(), A($, {
2139
2140
  class: "check-box-hover",
2140
2141
  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" },
@@ -2148,16 +2149,16 @@ const Dt = /* @__PURE__ */ Wt(Tl), Xt = {
2148
2149
  X("span", {
2149
2150
  textContent: Ee(B.label),
2150
2151
  style: { display: "block", "text-overflow": "ellipsis", width: "95px", overflow: "hidden" }
2151
- }, null, 8, Kl)
2152
+ }, null, 8, Jl)
2152
2153
  ]),
2153
2154
  _: 2
2154
2155
  }, 1032, ["data-id", "modelValue", "onUpdate:modelValue", "title"]))), 128))
2155
2156
  ])
2156
2157
  ]),
2157
- X("div", ea, [
2158
+ X("div", Kl, [
2158
2159
  ee(le, {
2159
2160
  type: "primary",
2160
- onClick: f,
2161
+ onClick: c,
2161
2162
  icon: P(jt),
2162
2163
  disabled: r.value.filter((B) => B.value).length < 1
2163
2164
  }, {
@@ -2170,8 +2171,8 @@ const Dt = /* @__PURE__ */ Wt(Tl), Xt = {
2170
2171
  ]);
2171
2172
  };
2172
2173
  }
2173
- }, la = /* @__PURE__ */ at(ta, [["__scopeId", "data-v-69098363"]]), aa = "vue-gyc-ui", ra = 1, ve = new Sl(aa);
2174
- ve.version(ra).stores({
2174
+ }, ta = /* @__PURE__ */ at(ea, [["__scopeId", "data-v-13575747"]]), la = "vue-gyc-ui", aa = 1, ve = new Sl(la);
2175
+ ve.version(aa).stores({
2175
2176
  // 记录表格项设置信息
2176
2177
  tableWidths: "++id, [page+key], page, key,width",
2177
2178
  // 记录表格分页条数
@@ -2193,7 +2194,7 @@ async function $t(n, s, a) {
2193
2194
  throw console.error(`处理表格列状态时出错 (page: ${n}, key: ${s}, state: ${a}):`, t), t;
2194
2195
  }
2195
2196
  }
2196
- async function oa(n, s, a) {
2197
+ async function ra(n, s, a) {
2197
2198
  ut(n);
2198
2199
  try {
2199
2200
  const t = await ve.tableWidths.where({ page: n, key: s }).first();
@@ -2202,7 +2203,7 @@ async function oa(n, s, a) {
2202
2203
  throw console.error(`保存表格项设置信息时出错 (page: ${n}, key: ${s}):`, t), t;
2203
2204
  }
2204
2205
  }
2205
- async function na(n) {
2206
+ async function oa(n) {
2206
2207
  ut(n);
2207
2208
  try {
2208
2209
  return await ve.tableWidths.where({ page: n }).toArray();
@@ -2210,7 +2211,7 @@ async function na(n) {
2210
2211
  throw console.error(`获取表格项设置信息时出错 (page: ${n}):`, s), s;
2211
2212
  }
2212
2213
  }
2213
- async function ua(n) {
2214
+ async function na(n) {
2214
2215
  ut(n);
2215
2216
  try {
2216
2217
  const s = await ve.tableColsState.where({ page: n }).toArray();
@@ -2219,7 +2220,7 @@ async function ua(n) {
2219
2220
  throw console.error(`获取表格列状态时出错 (page: ${n}):`, s), s;
2220
2221
  }
2221
2222
  }
2222
- async function sa(n) {
2223
+ async function ua(n) {
2223
2224
  ut(n);
2224
2225
  try {
2225
2226
  return await ve.transaction("rw", ve.tableWidths, ve.pageInfo, ve.sorts, ve.tableColsState, async () => {
@@ -2234,7 +2235,7 @@ async function sa(n) {
2234
2235
  throw console.error(`删除页面"${n}"的表格设置信息时出错:`, s), s;
2235
2236
  }
2236
2237
  }
2237
- async function ia({ page: n, size: s }) {
2238
+ async function sa({ page: n, size: s }) {
2238
2239
  ut(n);
2239
2240
  try {
2240
2241
  const a = await ve.pageInfo.where({ page: n }).first();
@@ -2243,7 +2244,7 @@ async function ia({ page: n, size: s }) {
2243
2244
  throw console.error(`保存分页条数时出错 (page: ${n}):`, a), a;
2244
2245
  }
2245
2246
  }
2246
- async function da(n) {
2247
+ async function ia(n) {
2247
2248
  ut(n);
2248
2249
  try {
2249
2250
  const s = await ve.pageInfo.where({ page: n }).first();
@@ -2252,7 +2253,7 @@ async function da(n) {
2252
2253
  throw console.error(`获取分页条数时出错 (page: ${n}):`, s), s;
2253
2254
  }
2254
2255
  }
2255
- async function ca(n, s) {
2256
+ async function da(n, s) {
2256
2257
  ut(n);
2257
2258
  try {
2258
2259
  const a = await ve.sorts.where({ page: n }).first();
@@ -2270,7 +2271,7 @@ async function fa(n) {
2270
2271
  throw console.error(`获取表格字段顺序时出错 (page: ${n}):`, s), s;
2271
2272
  }
2272
2273
  }
2273
- const va = { style: { display: "flex", "align-items": "center", padding: "5px 10px", height: "30px" } }, pa = {
2274
+ const ca = { style: { padding: "15px", "box-sizing": "border-box" } }, va = { style: { display: "flex", "align-items": "center", height: "30px" } }, pa = {
2274
2275
  style: { display: "flex", flex: "1", "align-items": "center" },
2275
2276
  class: "allcheck"
2276
2277
  }, ma = {
@@ -2291,7 +2292,7 @@ const va = { style: { display: "flex", "align-items": "center", padding: "5px 10
2291
2292
  setup(n, { emit: s }) {
2292
2293
  const a = n, t = s, r = re([]), e = lt(n, "modelValue"), h = async (u, d) => {
2293
2294
  u ? (e.value[d].showCol = !0, await $t(a.tuid, d, "del")) : (e.value[d].showCol = !1, await $t(a.tuid, d, "add"));
2294
- }, f = () => {
2295
+ }, c = () => {
2295
2296
  const u = document.getElementById("cols");
2296
2297
  if (u) {
2297
2298
  let d = Nt.create(u, {
@@ -2301,7 +2302,7 @@ const va = { style: { display: "flex", "align-items": "center", padding: "5px 10
2301
2302
  onEnd: async () => {
2302
2303
  let $ = d.toArray();
2303
2304
  try {
2304
- ca(a.tuid, $).then((le) => {
2305
+ da(a.tuid, $).then((le) => {
2305
2306
  t("setting-drag-end");
2306
2307
  });
2307
2308
  } catch (le) {
@@ -2313,7 +2314,7 @@ const va = { style: { display: "flex", "align-items": "center", padding: "5px 10
2313
2314
  }
2314
2315
  });
2315
2316
  }
2316
- }, D = async () => {
2317
+ }, S = async () => {
2317
2318
  try {
2318
2319
  r.value.forEach((u) => {
2319
2320
  u.showCol = !0;
@@ -2326,7 +2327,7 @@ const va = { style: { display: "flex", "align-items": "center", padding: "5px 10
2326
2327
  message: "全选列保存信息失败!"
2327
2328
  });
2328
2329
  }
2329
- }, c = async () => {
2330
+ }, f = async () => {
2330
2331
  try {
2331
2332
  let u = r.value.filter((d) => !d.alwaysShow && d.value != "control" && d.value != "hidden");
2332
2333
  u.forEach((d) => {
@@ -2346,7 +2347,7 @@ const va = { style: { display: "flex", "align-items": "center", padding: "5px 10
2346
2347
  cancelButtonText: "取消",
2347
2348
  type: "warning"
2348
2349
  }).then(() => {
2349
- sa(a.tuid).then((u) => {
2350
+ ua(a.tuid).then((u) => {
2350
2351
  window.location.reload();
2351
2352
  }).catch((u) => {
2352
2353
  console.error("复位操作出错:", u), et({
@@ -2356,7 +2357,7 @@ const va = { style: { display: "flex", "align-items": "center", padding: "5px 10
2356
2357
  });
2357
2358
  });
2358
2359
  };
2359
- return ft(async () => {
2360
+ return ct(async () => {
2360
2361
  r.value = Object.entries(e.value).filter(([, u]) => u.visible !== !1).filter(([, u]) => u.type != "hidden").map(([u, d]) => ({
2361
2362
  label: d.label,
2362
2363
  value: u,
@@ -2364,15 +2365,15 @@ const va = { style: { display: "flex", "align-items": "center", padding: "5px 10
2364
2365
  showCol: d.showCol !== !1,
2365
2366
  sort: d.sort || 0,
2366
2367
  width: d == null ? void 0 : d.width
2367
- })).sort((u, d) => u.sort - d.sort), f();
2368
+ })).sort((u, d) => u.sort - d.sort), c();
2368
2369
  }), (u, d) => {
2369
2370
  const $ = L("el-divider"), le = L("el-icon"), B = L("el-text"), G = L("el-checkbox");
2370
- return p(), Y("div", null, [
2371
+ return p(), Y("div", ca, [
2371
2372
  X("div", va, [
2372
2373
  X("div", pa, [
2373
- X("a", { onClick: D }, "全选"),
2374
+ X("a", { onClick: S }, "全选"),
2374
2375
  ee($, { direction: "vertical" }),
2375
- X("a", { onClick: c }, "全不选"),
2376
+ X("a", { onClick: f }, "全不选"),
2376
2377
  ee($, { direction: "vertical" }),
2377
2378
  X("a", { onClick: v }, "复位")
2378
2379
  ]),
@@ -2391,21 +2392,21 @@ const va = { style: { display: "flex", "align-items": "center", padding: "5px 10
2391
2392
  ]),
2392
2393
  X("div", null, [
2393
2394
  X("div", ma, [
2394
- (p(!0), Y(te, null, W(r.value, (S) => (p(), A(G, {
2395
- modelValue: S.showCol,
2396
- "onUpdate:modelValue": (ue) => S.showCol = ue,
2397
- "data-id": S.value,
2398
- class: Rt(["check-box-hover", S.value == "control" ? "filtered" : ""]),
2399
- onChange: (ue) => h(ue, S.value),
2395
+ (p(!0), Y(te, null, W(r.value, (D) => (p(), A(G, {
2396
+ modelValue: D.showCol,
2397
+ "onUpdate:modelValue": (ue) => D.showCol = ue,
2398
+ "data-id": D.value,
2399
+ class: Rt(["check-box-hover", D.value == "control" ? "filtered" : ""]),
2400
+ onChange: (ue) => h(ue, D.value),
2400
2401
  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" },
2401
- value: S.value,
2402
- title: S.label,
2403
- disabled: S.alwaysShow,
2404
- key: S.value
2402
+ value: D.value,
2403
+ title: D.label,
2404
+ disabled: D.alwaysShow,
2405
+ key: D.value
2405
2406
  }, {
2406
2407
  default: _(() => [
2407
2408
  X("span", {
2408
- textContent: Ee(S.label),
2409
+ textContent: Ee(D.label),
2409
2410
  style: { display: "block", "text-overflow": "ellipsis", width: "95px", overflow: "hidden" }
2410
2411
  }, null, 8, ha)
2411
2412
  ]),
@@ -2416,7 +2417,7 @@ const va = { style: { display: "flex", "align-items": "center", padding: "5px 10
2416
2417
  ]);
2417
2418
  };
2418
2419
  }
2419
- }, ga = /* @__PURE__ */ at(ya, [["__scopeId", "data-v-8b3dc588"]]), ba = { class: "title" }, $a = { class: "content" }, wa = {
2420
+ }, ga = /* @__PURE__ */ at(ya, [["__scopeId", "data-v-428381ae"]]), ba = { class: "title" }, $a = { class: "content" }, wa = {
2420
2421
  __name: "g-cell-toopTip",
2421
2422
  props: {
2422
2423
  content: {
@@ -2562,32 +2563,32 @@ function Ca(n) {
2562
2563
  (function() {
2563
2564
  var n = Ea, s = Ot.utf8, a = ka, t = Ot.bin, r = function(e, h) {
2564
2565
  e.constructor == String ? h && h.encoding === "binary" ? e = t.stringToBytes(e) : e = s.stringToBytes(e) : a(e) ? e = Array.prototype.slice.call(e, 0) : !Array.isArray(e) && e.constructor !== Uint8Array && (e = e.toString());
2565
- for (var f = n.bytesToWords(e), D = e.length * 8, c = 1732584193, v = -271733879, u = -1732584194, d = 271733878, $ = 0; $ < f.length; $++)
2566
- f[$] = (f[$] << 8 | f[$] >>> 24) & 16711935 | (f[$] << 24 | f[$] >>> 8) & 4278255360;
2567
- f[D >>> 5] |= 128 << D % 32, f[(D + 64 >>> 9 << 4) + 14] = D;
2568
- for (var le = r._ff, B = r._gg, G = r._hh, S = r._ii, $ = 0; $ < f.length; $ += 16) {
2569
- var ue = c, ce = v, pe = u, fe = d;
2570
- c = le(c, v, u, d, f[$ + 0], 7, -680876936), d = le(d, c, v, u, f[$ + 1], 12, -389564586), u = le(u, d, c, v, f[$ + 2], 17, 606105819), v = le(v, u, d, c, f[$ + 3], 22, -1044525330), c = le(c, v, u, d, f[$ + 4], 7, -176418897), d = le(d, c, v, u, f[$ + 5], 12, 1200080426), u = le(u, d, c, v, f[$ + 6], 17, -1473231341), v = le(v, u, d, c, f[$ + 7], 22, -45705983), c = le(c, v, u, d, f[$ + 8], 7, 1770035416), d = le(d, c, v, u, f[$ + 9], 12, -1958414417), u = le(u, d, c, v, f[$ + 10], 17, -42063), v = le(v, u, d, c, f[$ + 11], 22, -1990404162), c = le(c, v, u, d, f[$ + 12], 7, 1804603682), d = le(d, c, v, u, f[$ + 13], 12, -40341101), u = le(u, d, c, v, f[$ + 14], 17, -1502002290), v = le(v, u, d, c, f[$ + 15], 22, 1236535329), c = B(c, v, u, d, f[$ + 1], 5, -165796510), d = B(d, c, v, u, f[$ + 6], 9, -1069501632), u = B(u, d, c, v, f[$ + 11], 14, 643717713), v = B(v, u, d, c, f[$ + 0], 20, -373897302), c = B(c, v, u, d, f[$ + 5], 5, -701558691), d = B(d, c, v, u, f[$ + 10], 9, 38016083), u = B(u, d, c, v, f[$ + 15], 14, -660478335), v = B(v, u, d, c, f[$ + 4], 20, -405537848), c = B(c, v, u, d, f[$ + 9], 5, 568446438), d = B(d, c, v, u, f[$ + 14], 9, -1019803690), u = B(u, d, c, v, f[$ + 3], 14, -187363961), v = B(v, u, d, c, f[$ + 8], 20, 1163531501), c = B(c, v, u, d, f[$ + 13], 5, -1444681467), d = B(d, c, v, u, f[$ + 2], 9, -51403784), u = B(u, d, c, v, f[$ + 7], 14, 1735328473), v = B(v, u, d, c, f[$ + 12], 20, -1926607734), c = G(c, v, u, d, f[$ + 5], 4, -378558), d = G(d, c, v, u, f[$ + 8], 11, -2022574463), u = G(u, d, c, v, f[$ + 11], 16, 1839030562), v = G(v, u, d, c, f[$ + 14], 23, -35309556), c = G(c, v, u, d, f[$ + 1], 4, -1530992060), d = G(d, c, v, u, f[$ + 4], 11, 1272893353), u = G(u, d, c, v, f[$ + 7], 16, -155497632), v = G(v, u, d, c, f[$ + 10], 23, -1094730640), c = G(c, v, u, d, f[$ + 13], 4, 681279174), d = G(d, c, v, u, f[$ + 0], 11, -358537222), u = G(u, d, c, v, f[$ + 3], 16, -722521979), v = G(v, u, d, c, f[$ + 6], 23, 76029189), c = G(c, v, u, d, f[$ + 9], 4, -640364487), d = G(d, c, v, u, f[$ + 12], 11, -421815835), u = G(u, d, c, v, f[$ + 15], 16, 530742520), v = G(v, u, d, c, f[$ + 2], 23, -995338651), c = S(c, v, u, d, f[$ + 0], 6, -198630844), d = S(d, c, v, u, f[$ + 7], 10, 1126891415), u = S(u, d, c, v, f[$ + 14], 15, -1416354905), v = S(v, u, d, c, f[$ + 5], 21, -57434055), c = S(c, v, u, d, f[$ + 12], 6, 1700485571), d = S(d, c, v, u, f[$ + 3], 10, -1894986606), u = S(u, d, c, v, f[$ + 10], 15, -1051523), v = S(v, u, d, c, f[$ + 1], 21, -2054922799), c = S(c, v, u, d, f[$ + 8], 6, 1873313359), d = S(d, c, v, u, f[$ + 15], 10, -30611744), u = S(u, d, c, v, f[$ + 6], 15, -1560198380), v = S(v, u, d, c, f[$ + 13], 21, 1309151649), c = S(c, v, u, d, f[$ + 4], 6, -145523070), d = S(d, c, v, u, f[$ + 11], 10, -1120210379), u = S(u, d, c, v, f[$ + 2], 15, 718787259), v = S(v, u, d, c, f[$ + 9], 21, -343485551), c = c + ue >>> 0, v = v + ce >>> 0, u = u + pe >>> 0, d = d + fe >>> 0;
2566
+ for (var c = n.bytesToWords(e), S = e.length * 8, f = 1732584193, v = -271733879, u = -1732584194, d = 271733878, $ = 0; $ < c.length; $++)
2567
+ c[$] = (c[$] << 8 | c[$] >>> 24) & 16711935 | (c[$] << 24 | c[$] >>> 8) & 4278255360;
2568
+ c[S >>> 5] |= 128 << S % 32, c[(S + 64 >>> 9 << 4) + 14] = S;
2569
+ for (var le = r._ff, B = r._gg, G = r._hh, D = r._ii, $ = 0; $ < c.length; $ += 16) {
2570
+ var ue = f, fe = v, pe = u, ce = d;
2571
+ f = le(f, v, u, d, c[$ + 0], 7, -680876936), d = le(d, f, v, u, c[$ + 1], 12, -389564586), u = le(u, d, f, v, c[$ + 2], 17, 606105819), v = le(v, u, d, f, c[$ + 3], 22, -1044525330), f = le(f, v, u, d, c[$ + 4], 7, -176418897), d = le(d, f, v, u, c[$ + 5], 12, 1200080426), u = le(u, d, f, v, c[$ + 6], 17, -1473231341), v = le(v, u, d, f, c[$ + 7], 22, -45705983), f = le(f, v, u, d, c[$ + 8], 7, 1770035416), d = le(d, f, v, u, c[$ + 9], 12, -1958414417), u = le(u, d, f, v, c[$ + 10], 17, -42063), v = le(v, u, d, f, c[$ + 11], 22, -1990404162), f = le(f, v, u, d, c[$ + 12], 7, 1804603682), d = le(d, f, v, u, c[$ + 13], 12, -40341101), u = le(u, d, f, v, c[$ + 14], 17, -1502002290), v = le(v, u, d, f, c[$ + 15], 22, 1236535329), f = B(f, v, u, d, c[$ + 1], 5, -165796510), d = B(d, f, v, u, c[$ + 6], 9, -1069501632), u = B(u, d, f, v, c[$ + 11], 14, 643717713), v = B(v, u, d, f, c[$ + 0], 20, -373897302), f = B(f, v, u, d, c[$ + 5], 5, -701558691), d = B(d, f, v, u, c[$ + 10], 9, 38016083), u = B(u, d, f, v, c[$ + 15], 14, -660478335), v = B(v, u, d, f, c[$ + 4], 20, -405537848), f = B(f, v, u, d, c[$ + 9], 5, 568446438), d = B(d, f, v, u, c[$ + 14], 9, -1019803690), u = B(u, d, f, v, c[$ + 3], 14, -187363961), v = B(v, u, d, f, c[$ + 8], 20, 1163531501), f = B(f, v, u, d, c[$ + 13], 5, -1444681467), d = B(d, f, v, u, c[$ + 2], 9, -51403784), u = B(u, d, f, v, c[$ + 7], 14, 1735328473), v = B(v, u, d, f, c[$ + 12], 20, -1926607734), f = G(f, v, u, d, c[$ + 5], 4, -378558), d = G(d, f, v, u, c[$ + 8], 11, -2022574463), u = G(u, d, f, v, c[$ + 11], 16, 1839030562), v = G(v, u, d, f, c[$ + 14], 23, -35309556), f = G(f, v, u, d, c[$ + 1], 4, -1530992060), d = G(d, f, v, u, c[$ + 4], 11, 1272893353), u = G(u, d, f, v, c[$ + 7], 16, -155497632), v = G(v, u, d, f, c[$ + 10], 23, -1094730640), f = G(f, v, u, d, c[$ + 13], 4, 681279174), d = G(d, f, v, u, c[$ + 0], 11, -358537222), u = G(u, d, f, v, c[$ + 3], 16, -722521979), v = G(v, u, d, f, c[$ + 6], 23, 76029189), f = G(f, v, u, d, c[$ + 9], 4, -640364487), d = G(d, f, v, u, c[$ + 12], 11, -421815835), u = G(u, d, f, v, c[$ + 15], 16, 530742520), v = G(v, u, d, f, c[$ + 2], 23, -995338651), f = D(f, v, u, d, c[$ + 0], 6, -198630844), d = D(d, f, v, u, c[$ + 7], 10, 1126891415), u = D(u, d, f, v, c[$ + 14], 15, -1416354905), v = D(v, u, d, f, c[$ + 5], 21, -57434055), f = D(f, v, u, d, c[$ + 12], 6, 1700485571), d = D(d, f, v, u, c[$ + 3], 10, -1894986606), u = D(u, d, f, v, c[$ + 10], 15, -1051523), v = D(v, u, d, f, c[$ + 1], 21, -2054922799), f = D(f, v, u, d, c[$ + 8], 6, 1873313359), d = D(d, f, v, u, c[$ + 15], 10, -30611744), u = D(u, d, f, v, c[$ + 6], 15, -1560198380), v = D(v, u, d, f, c[$ + 13], 21, 1309151649), f = D(f, v, u, d, c[$ + 4], 6, -145523070), d = D(d, f, v, u, c[$ + 11], 10, -1120210379), u = D(u, d, f, v, c[$ + 2], 15, 718787259), v = D(v, u, d, f, c[$ + 9], 21, -343485551), f = f + ue >>> 0, v = v + fe >>> 0, u = u + pe >>> 0, d = d + ce >>> 0;
2571
2572
  }
2572
- return n.endian([c, v, u, d]);
2573
+ return n.endian([f, v, u, d]);
2573
2574
  };
2574
- r._ff = function(e, h, f, D, c, v, u) {
2575
- var d = e + (h & f | ~h & D) + (c >>> 0) + u;
2575
+ r._ff = function(e, h, c, S, f, v, u) {
2576
+ var d = e + (h & c | ~h & S) + (f >>> 0) + u;
2576
2577
  return (d << v | d >>> 32 - v) + h;
2577
- }, r._gg = function(e, h, f, D, c, v, u) {
2578
- var d = e + (h & D | f & ~D) + (c >>> 0) + u;
2578
+ }, r._gg = function(e, h, c, S, f, v, u) {
2579
+ var d = e + (h & S | c & ~S) + (f >>> 0) + u;
2579
2580
  return (d << v | d >>> 32 - v) + h;
2580
- }, r._hh = function(e, h, f, D, c, v, u) {
2581
- var d = e + (h ^ f ^ D) + (c >>> 0) + u;
2581
+ }, r._hh = function(e, h, c, S, f, v, u) {
2582
+ var d = e + (h ^ c ^ S) + (f >>> 0) + u;
2582
2583
  return (d << v | d >>> 32 - v) + h;
2583
- }, r._ii = function(e, h, f, D, c, v, u) {
2584
- var d = e + (f ^ (h | ~D)) + (c >>> 0) + u;
2584
+ }, r._ii = function(e, h, c, S, f, v, u) {
2585
+ var d = e + (c ^ (h | ~S)) + (f >>> 0) + u;
2585
2586
  return (d << v | d >>> 32 - v) + h;
2586
2587
  }, r._blocksize = 16, r._digestsize = 16, Qt.exports = function(e, h) {
2587
2588
  if (e == null)
2588
2589
  throw new Error("Illegal argument " + e);
2589
- var f = n.wordsToBytes(r(e, h));
2590
- return h && h.asBytes ? f : h && h.asString ? t.bytesToString(f) : n.bytesToHex(f);
2590
+ var c = n.wordsToBytes(r(e, h));
2591
+ return h && h.asBytes ? c : h && h.asString ? t.bytesToString(c) : n.bytesToHex(c);
2591
2592
  };
2592
2593
  })();
2593
2594
  var Da = Qt.exports;
@@ -2617,8 +2618,8 @@ const Sa = /* @__PURE__ */ Wt(Da), xa = { key: 0 }, Ma = { style: { display: "fl
2617
2618
  ], ["update:modelValue"]),
2618
2619
  setup(n, { expose: s, emit: a }) {
2619
2620
  var rt, Ie, He, ze, Pe, vt, pt;
2620
- const t = re(""), r = a, e = lt(n, "modelValue"), h = qt("options"), f = re({}), D = re(null), c = re(null), v = Object.entries(e.value).filter(([l, o]) => (o == null ? void 0 : o.search) !== void 0).map(([l, o]) => [l, o.value]);
2621
- f.value = Object.fromEntries(v);
2621
+ const t = re(""), r = a, e = lt(n, "modelValue"), h = qt("options"), c = re({}), S = re(null), f = re(null), v = Object.entries(e.value).filter(([l, o]) => (o == null ? void 0 : o.search) !== void 0).map(([l, o]) => [l, o.value]);
2622
+ c.value = Object.fromEntries(v);
2622
2623
  const u = re(!1), d = [
2623
2624
  "type",
2624
2625
  "index",
@@ -2648,7 +2649,7 @@ const Sa = /* @__PURE__ */ Wt(Da), xa = { key: 0 }, Ma = { style: { display: "fl
2648
2649
  "filter-multiple",
2649
2650
  "filter-method",
2650
2651
  "filtered-value"
2651
- ], $ = re([]), le = At(), B = re({}), G = re([]), S = re(null), ue = re(""), ce = re("/"), pe = re({
2652
+ ], $ = re([]), le = At(), B = re({}), G = re([]), D = re(null), ue = re(""), fe = re("/"), pe = re({
2652
2653
  autoWatch: !1,
2653
2654
  data: [],
2654
2655
  border: !0,
@@ -2657,12 +2658,12 @@ const Sa = /* @__PURE__ */ Wt(Da), xa = { key: 0 }, Ma = { style: { display: "fl
2657
2658
  fit: !1,
2658
2659
  type: "hidden",
2659
2660
  load: async () => {
2660
- e.value.table.page.pageSize = await da(ce.value);
2661
+ e.value.table.page.pageSize = await ia(fe.value);
2661
2662
  let { currentPage: l, pageSize: o } = e.value.table.page;
2662
2663
  try {
2663
2664
  r(
2664
2665
  "load",
2665
- { currentPage: l, pageSize: o, ...f.value },
2666
+ { currentPage: l, pageSize: o, ...c.value },
2666
2667
  (m = [], b = 0, { fields: F = [], sums: U = {} } = {}) => {
2667
2668
  var N;
2668
2669
  if (!Array.isArray(m)) {
@@ -2673,16 +2674,16 @@ const Sa = /* @__PURE__ */ Wt(Da), xa = { key: 0 }, Ma = { style: { display: "fl
2673
2674
  console.error("从 load 事件回调中接收到的 total 不是数字格式。"), et.error("数据加载失败,请检查数据格式。");
2674
2675
  return;
2675
2676
  }
2676
- e.value.table.data = m, ((N = e.value.control) == null ? void 0 : N.add(S.value, e).inline) === !0 && e.value.table.data.unshift(S.value), e.value.table.page.total = b, G.value = F, B.value = U, C(), ue.value = Math.random().toString(36).substring(2);
2677
+ e.value.table.data = m, ((N = e.value.control) == null ? void 0 : N.add(D.value, e).inline) === !0 && e.value.table.data.unshift(D.value), e.value.table.page.total = b, G.value = F, B.value = U, C(), ue.value = Math.random().toString(36).substring(2);
2677
2678
  },
2678
- S.value
2679
+ D.value
2679
2680
  );
2680
2681
  } catch (m) {
2681
2682
  console.error("触发 load 事件时出现错误:", m), et.error("数据加载时出现错误,请稍后重试。");
2682
2683
  }
2683
2684
  },
2684
2685
  onHeaderDragend: (l, o, m) => {
2685
- oa(ce.value, m.property, l);
2686
+ ra(fe.value, m.property, l);
2686
2687
  },
2687
2688
  onRowDblclick: (l, o, m) => {
2688
2689
  e.value.table.dblclickType == "edit" ? g(l, o, m, e) : e.value.table.dblclickType == "view" ? V(l, o, m, e) : e.value.table.dblclickType == "delete" ? i(l, o, m, e) : e.value.table.dblclickType(l, o, m, e);
@@ -2705,7 +2706,7 @@ const Sa = /* @__PURE__ */ Wt(Da), xa = { key: 0 }, Ma = { style: { display: "fl
2705
2706
  e.value.table.page.currentPage = l, e.value.table.load();
2706
2707
  },
2707
2708
  onSizeChange: (l) => {
2708
- ia({ page: ce.value, size: l }).then(() => {
2709
+ sa({ page: fe.value, size: l }).then(() => {
2709
2710
  e.value.table.page.pageSize = l, e.value.table.load();
2710
2711
  });
2711
2712
  }
@@ -2722,7 +2723,7 @@ const Sa = /* @__PURE__ */ Wt(Da), xa = { key: 0 }, Ma = { style: { display: "fl
2722
2723
  le
2723
2724
  // 继承父组件的属性
2724
2725
  );
2725
- const fe = {
2726
+ const ce = {
2726
2727
  type: "control",
2727
2728
  label: "操作",
2728
2729
  align: "center",
@@ -2828,7 +2829,7 @@ const Sa = /* @__PURE__ */ Wt(Da), xa = { key: 0 }, Ma = { style: { display: "fl
2828
2829
  })
2829
2830
  };
2830
2831
  e.value.control = Fe(
2831
- fe,
2832
+ ce,
2832
2833
  h == null ? void 0 : h.control,
2833
2834
  (He = e.value) == null ? void 0 : He.control
2834
2835
  );
@@ -2837,11 +2838,11 @@ const Sa = /* @__PURE__ */ Wt(Da), xa = { key: 0 }, Ma = { style: { display: "fl
2837
2838
  var Ye, We, st;
2838
2839
  if (!F || !U || N == null)
2839
2840
  return console.warn(`merge${l.charAt(0).toUpperCase() + l.slice(1)}: 缺少必要的参数(row, column或index)`), {};
2840
- const _e = ((Ye = fe[l]) == null ? void 0 : Ye.call(fe, F, U, N, ye)) || {}, Ae = ((st = (We = h == null ? void 0 : h.control) == null ? void 0 : We[l]) == null ? void 0 : st.call(We, F, U, N, ye)) || {}, Ue = (m == null ? void 0 : m(F, U, N, ye)) || {};
2841
+ const _e = ((Ye = ce[l]) == null ? void 0 : Ye.call(ce, F, U, N, ye)) || {}, Ae = ((st = (We = h == null ? void 0 : h.control) == null ? void 0 : We[l]) == null ? void 0 : st.call(We, F, U, N, ye)) || {}, Ue = (m == null ? void 0 : m(F, U, N, ye)) || {};
2841
2842
  return Fe(_e, Ae, Ue) || {};
2842
2843
  } : (F, U) => {
2843
2844
  var Ae, Ue, Ye;
2844
- const N = ((Ae = fe[l]) == null ? void 0 : Ae.call(fe, F, U)) || {}, ye = ((Ye = (Ue = h == null ? void 0 : h.control) == null ? void 0 : Ue[l]) == null ? void 0 : Ye.call(Ue, F, U)) || {}, _e = (m == null ? void 0 : m(F, U)) || {};
2845
+ const N = ((Ae = ce[l]) == null ? void 0 : Ae.call(ce, F, U)) || {}, ye = ((Ye = (Ue = h == null ? void 0 : h.control) == null ? void 0 : Ue[l]) == null ? void 0 : Ye.call(Ue, F, U)) || {}, _e = (m == null ? void 0 : m(F, U)) || {};
2845
2846
  return Fe(N, ye, _e) || {};
2846
2847
  };
2847
2848
  e.value.control[l] = b;
@@ -2851,7 +2852,7 @@ const Sa = /* @__PURE__ */ Wt(Da), xa = { key: 0 }, Ma = { style: { display: "fl
2851
2852
  var ye, _e, Ae, Ue, Ye, We;
2852
2853
  if (!l || !o || m == null)
2853
2854
  return console.warn("mergeDropdown: 缺少必要的参数(row, column或index)"), {};
2854
- const F = ((ye = fe.dropdown) == null ? void 0 : ye.call(fe, l, o, m, b)) || {}, U = ((Ae = (_e = h == null ? void 0 : h.control) == null ? void 0 : _e.dropdown) == null ? void 0 : Ae.call(_e, l, o, m, b)) || {}, N = ((We = (Ye = (Ue = e.value) == null ? void 0 : Ue.control) == null ? void 0 : Ye.dropdown) == null ? void 0 : We.call(Ye, l, o, m, b)) || {};
2855
+ const F = ((ye = ce.dropdown) == null ? void 0 : ye.call(ce, l, o, m, b)) || {}, U = ((Ae = (_e = h == null ? void 0 : h.control) == null ? void 0 : _e.dropdown) == null ? void 0 : Ae.call(_e, l, o, m, b)) || {}, N = ((We = (Ye = (Ue = e.value) == null ? void 0 : Ue.control) == null ? void 0 : Ye.dropdown) == null ? void 0 : We.call(Ye, l, o, m, b)) || {};
2855
2856
  return Fe(F, U, N) || {};
2856
2857
  }, Me = {
2857
2858
  type: "hidden",
@@ -2923,21 +2924,21 @@ const Sa = /* @__PURE__ */ Wt(Da), xa = { key: 0 }, Ma = { style: { display: "fl
2923
2924
  parseFloat(m)
2924
2925
  )}">${lr(parseFloat(m))}</span>`), l.prefix && m && (m = `<span>${l.prefix}${m}</span>`), l.suffix && m && (m = `${m}<span>${l.suffix}</span>`), m;
2925
2926
  }, Le = (l) => {
2926
- f.value = Object.fromEntries(v), e.value.table.load();
2927
+ c.value = Object.fromEntries(v), e.value.table.load();
2927
2928
  }, x = (l) => {
2928
- f.value = l, e.value.table.load();
2929
+ c.value = l, e.value.table.load();
2929
2930
  }, w = async (l, o) => {
2930
2931
  var m, b;
2931
2932
  e.value.form.modalState = "add", t.value = "add";
2932
2933
  try {
2933
- if (!await ((m = e.value.control) == null ? void 0 : m.validate("add", { row: S.value, m: o }))) return;
2934
+ if (!await ((m = e.value.control) == null ? void 0 : m.validate("add", { row: D.value, m: o }))) return;
2934
2935
  } catch (F) {
2935
2936
  console.error("验证失败:", F);
2936
2937
  return;
2937
2938
  }
2938
- (b = e.value.control.add(l, o)) != null && b.click ? e.value.control.add(l, o).click(S.value, o) : e.value.control.add(l, o).inline === !0 ? (e.value.table.data.unshift(S.value), r("open", "row-add", { row: S.value })) : (e.value.form.disabled = !1, e.value.dialog.mode = e.value.control.add(l, o).mode, e.value.dialog.title = e.value.control.add(l, o).title || e.value.control.add(l, o).label || "新增", Object.keys(S.value).forEach((F) => {
2939
- e.value[F] && (e.value[F].value = S.value[F]);
2940
- }), u.value = !0, r("open", "add", { row: S.value, m: o }), _t());
2939
+ (b = e.value.control.add(l, o)) != null && b.click ? e.value.control.add(l, o).click(D.value, o) : e.value.control.add(l, o).inline === !0 ? (e.value.table.data.unshift(D.value), r("open", "row-add", { row: D.value })) : (e.value.form.disabled = !1, e.value.dialog.mode = e.value.control.add(l, o).mode, e.value.dialog.title = e.value.control.add(l, o).title || e.value.control.add(l, o).label || "新增", Object.keys(D.value).forEach((F) => {
2940
+ e.value[F] && (e.value[F].value = D.value[F]);
2941
+ }), u.value = !0, r("open", "add", { row: D.value, m: o }), _t());
2941
2942
  }, g = async (l, o, m, b) => {
2942
2943
  var F, U;
2943
2944
  e.value.form.modalState = "edit", t.value = "edit";
@@ -2992,7 +2993,7 @@ const Sa = /* @__PURE__ */ Wt(Da), xa = { key: 0 }, Ma = { style: { display: "fl
2992
2993
  { row: l, column: o, index: m, data: e.value.table.data },
2993
2994
  (U = !0, N = !0) => {
2994
2995
  U && e.value.table.load(), N && dt(() => {
2995
- S.value = Object.assign(
2996
+ D.value = Object.assign(
2996
2997
  {},
2997
2998
  Object.fromEntries(
2998
2999
  Object.entries(
@@ -3005,13 +3006,13 @@ const Sa = /* @__PURE__ */ Wt(Da), xa = { key: 0 }, Ma = { style: { display: "fl
3005
3006
  );
3006
3007
  }, q = (l, o, m) => {
3007
3008
  r("submit", e.value.form.modalState, l, o, (b) => {
3008
- b && (m === 1 && (u.value = !1), Object.keys(S.value).forEach((F) => {
3009
- l[F] = S.value[F];
3009
+ b && (m === 1 && (u.value = !1), Object.keys(D.value).forEach((F) => {
3010
+ l[F] = D.value[F];
3010
3011
  }), o.table.load());
3011
3012
  });
3012
3013
  }, T = (l, o) => {
3013
- Object.keys(S.value).forEach((m) => {
3014
- l[m] = S.value[m];
3014
+ Object.keys(D.value).forEach((m) => {
3015
+ l[m] = D.value[m];
3015
3016
  }), r("reset", l, o);
3016
3017
  }, Q = (l, o, m) => {
3017
3018
  var b;
@@ -3024,11 +3025,11 @@ const Sa = /* @__PURE__ */ Wt(Da), xa = { key: 0 }, Ma = { style: { display: "fl
3024
3025
  size: o.control.download(l, o).size || 480,
3025
3026
  width: o.control.download(l, o).width || 600,
3026
3027
  slots: {
3027
- default: () => we(la, {
3028
+ default: () => we(ta, {
3028
3029
  items: m,
3029
3030
  commitText: o.control.download(l, o).excelLabel,
3030
3031
  onExcel: (U, N) => {
3031
- r("download", U, f.value, N), F();
3032
+ r("download", U, c.value, N), F();
3032
3033
  }
3033
3034
  })
3034
3035
  }
@@ -3046,12 +3047,12 @@ const Sa = /* @__PURE__ */ Wt(Da), xa = { key: 0 }, Ma = { style: { display: "fl
3046
3047
  slots: {
3047
3048
  default: () => we(ga, {
3048
3049
  modelValue: o,
3049
- tuid: ce.value,
3050
+ tuid: fe.value,
3050
3051
  onSettingDragEnd: async () => {
3051
- await xe(ce.value);
3052
+ await xe(fe.value);
3052
3053
  },
3053
3054
  onSelectAll: async (b) => {
3054
- await xe(ce.value);
3055
+ await xe(fe.value);
3055
3056
  }
3056
3057
  })
3057
3058
  }
@@ -3126,25 +3127,25 @@ const Sa = /* @__PURE__ */ Wt(Da), xa = { key: 0 }, Ma = { style: { display: "fl
3126
3127
  return l.table ? (F = l.table(o, m, b)) != null && F.auth ? (U = l.table(o, m, b)) == null ? void 0 : U.auth(o, m, b) : !0 : !1;
3127
3128
  }, Oe = () => {
3128
3129
  if (e.value.dialog.mode == "drawer")
3129
- c.value.handleClose();
3130
+ f.value.handleClose();
3130
3131
  else if (e.value.dialog.mode == "dialog")
3131
3132
  try {
3132
- D.value.handleClose();
3133
+ S.value.handleClose();
3133
3134
  } catch {
3134
3135
  u.value = !1;
3135
3136
  }
3136
3137
  else
3137
3138
  u.value = !1;
3138
3139
  };
3139
- cl(() => {
3140
+ fl(() => {
3140
3141
  e.value.table.autoWatch && e.value.table.load();
3141
3142
  });
3142
3143
  const xe = async () => {
3143
3144
  try {
3144
3145
  const [l, o, m] = await Promise.all([
3145
- na(ce.value),
3146
- fa(ce.value),
3147
- ua(ce.value)
3146
+ oa(fe.value),
3147
+ fa(fe.value),
3148
+ na(fe.value)
3148
3149
  ]);
3149
3150
  l && Array.isArray(l) && l.forEach((b) => {
3150
3151
  const F = e.value[b.key];
@@ -3162,9 +3163,9 @@ const Sa = /* @__PURE__ */ Wt(Da), xa = { key: 0 }, Ma = { style: { display: "fl
3162
3163
  console.error("加载表格信息时出错:", l);
3163
3164
  }
3164
3165
  }, Ne = () => Sa(Object.keys(e.value).toString()).toUpperCase().substring(8, 24);
3165
- return fl(() => {
3166
- ce.value = Ne();
3167
- }), ft(async () => {
3166
+ return cl(() => {
3167
+ fe.value = Ne();
3168
+ }), ct(async () => {
3168
3169
  $.value = Object.entries(e.value).filter(
3169
3170
  ([l, o]) => o.type !== "hidden" && o.type !== "control" && o.visible !== !1
3170
3171
  ).map(([l, o]) => ({
@@ -3177,22 +3178,22 @@ const Sa = /* @__PURE__ */ Wt(Da), xa = { key: 0 }, Ma = { style: { display: "fl
3177
3178
  const l = Object.entries(e.value).filter(
3178
3179
  ([o, m]) => m.type !== "control" && m.editor !== !1 && m.type !== "hidden"
3179
3180
  );
3180
- S.value = Object.fromEntries(
3181
+ D.value = Object.fromEntries(
3181
3182
  l.map(([o, m]) => [o, m.value])
3182
3183
  ), await xe();
3183
3184
  } catch (l) {
3184
3185
  console.error("Error during component initialization:", l);
3185
3186
  }
3186
3187
  e.value.table.autoWatch || e.value.table.load();
3187
- }), s({ addRow: w, editRow: g, deleteRow: i, readForm: V, saveRowData: E, closeDialog: Oe }), (l, o) => {
3188
- var We, st, mt, ct, ht;
3188
+ }), s({ addRow: w, editRow: g, deleteRow: i, readForm: V, saveRowData: E, closeDialog: Oe, formData: D.value }), (l, o) => {
3189
+ var We, st, mt, ft, ht;
3189
3190
  const m = L("el-icon"), b = L("el-dialog"), F = L("el-drawer"), U = L("el-button-group"), N = L("el-dropdown-item"), ye = L("el-dropdown-menu"), _e = L("el-dropdown"), Ae = L("el-table-column"), Ue = L("el-table"), Ye = L("el-pagination");
3190
3191
  return p(), Y(te, null, [
3191
3192
  e.value.dialog.mode == "dialog" && u.value ? (p(), Y("div", xa, [
3192
3193
  ee(b, O(
3193
3194
  {
3194
3195
  ref_key: "dialogRef",
3195
- ref: D,
3196
+ ref: S,
3196
3197
  id: "dialogRef",
3197
3198
  modelValue: u.value,
3198
3199
  "onUpdate:modelValue": o[3] || (o[3] = (j) => u.value = j),
@@ -3273,7 +3274,7 @@ const Sa = /* @__PURE__ */ Wt(Da), xa = { key: 0 }, Ma = { style: { display: "fl
3273
3274
  e.value.dialog.mode == "drawer" && u.value ? (p(), Y("div", qa, [
3274
3275
  ee(F, O({
3275
3276
  ref_key: "drawerRef",
3276
- ref: c,
3277
+ ref: f,
3277
3278
  modelValue: u.value,
3278
3279
  "onUpdate:modelValue": o[5] || (o[5] = (j) => u.value = j)
3279
3280
  }, P(je)(e.value.dialog, (j) => !["width"].includes(j))), {
@@ -3313,14 +3314,14 @@ const Sa = /* @__PURE__ */ Wt(Da), xa = { key: 0 }, Ma = { style: { display: "fl
3313
3314
  ee(Wl, {
3314
3315
  modelValue: e.value,
3315
3316
  "onUpdate:modelValue": o[6] || (o[6] = (j) => e.value = j),
3316
- info: f.value,
3317
- "onUpdate:info": o[7] || (o[7] = (j) => f.value = j),
3317
+ info: c.value,
3318
+ "onUpdate:info": o[7] || (o[7] = (j) => c.value = j),
3318
3319
  onQuery: x,
3319
3320
  onReset: Le
3320
3321
  }, be({
3321
3322
  "q-btns": _(() => [
3322
3323
  k(l.$slots, "q-btns", {}, () => [
3323
- (p(!0), Y(te, null, W(Se(["add", "download", "setting"], S.value, e.value), (j, de) => (p(), Y(te, null, [
3324
+ (p(!0), Y(te, null, W(Se(["add", "download", "setting"], D.value, e.value), (j, de) => (p(), Y(te, null, [
3324
3325
  de == "default" ? (p(!0), Y(te, { key: 0 }, W(j, (M) => (p(), Y(te, null, [
3325
3326
  k(l.$slots, M.name + "-left", {}, void 0, !0),
3326
3327
  (M.name === "control-add" ? M.attr.auth() && M.attr.inline === !1 : M.attr.auth()) ? k(l.$slots, M.name, { key: 0 }, () => [
@@ -3329,7 +3330,7 @@ const Sa = /* @__PURE__ */ Wt(Da), xa = { key: 0 }, Ma = { style: { display: "fl
3329
3330
  title: M.label,
3330
3331
  ref_for: !0
3331
3332
  }, M.attr, {
3332
- onClick: (Z) => M.func(S.value, e.value, $.value)
3333
+ onClick: (Z) => M.func(D.value, e.value, $.value)
3333
3334
  }), {
3334
3335
  default: _(() => [
3335
3336
  Ve(Ee(M.label), 1)
@@ -3340,7 +3341,7 @@ const Sa = /* @__PURE__ */ Wt(Da), xa = { key: 0 }, Ma = { style: { display: "fl
3340
3341
  title: M.label,
3341
3342
  ref_for: !0
3342
3343
  }, M.attr, {
3343
- onClick: (Z) => M.func(S.value, e.value, $.value)
3344
+ onClick: (Z) => M.func(D.value, e.value, $.value)
3344
3345
  }), null, 16, ["title", "onClick"]))
3345
3346
  ], !0) : $e("", !0),
3346
3347
  k(l.$slots, M.name + "-right", {}, void 0, !0)
@@ -3354,7 +3355,7 @@ const Sa = /* @__PURE__ */ Wt(Da), xa = { key: 0 }, Ma = { style: { display: "fl
3354
3355
  title: M.label,
3355
3356
  ref_for: !0
3356
3357
  }, M.attr, {
3357
- onClick: (Z) => M.func(S.value, e.value, $.value)
3358
+ onClick: (Z) => M.func(D.value, e.value, $.value)
3358
3359
  }), {
3359
3360
  default: _(() => [
3360
3361
  Ve(Ee(M.label), 1)
@@ -3365,7 +3366,7 @@ const Sa = /* @__PURE__ */ Wt(Da), xa = { key: 0 }, Ma = { style: { display: "fl
3365
3366
  title: M.label,
3366
3367
  ref_for: !0
3367
3368
  }, M.attr, {
3368
- onClick: (Z) => M.func(S.value, e.value, $.value)
3369
+ onClick: (Z) => M.func(D.value, e.value, $.value)
3369
3370
  }), null, 16, ["title", "onClick"]))
3370
3371
  ], !0) : $e("", !0),
3371
3372
  k(l.$slots, M.name + "-right", {}, void 0, !0)
@@ -3398,7 +3399,7 @@ const Sa = /* @__PURE__ */ Wt(Da), xa = { key: 0 }, Ma = { style: { display: "fl
3398
3399
  "summary-method": (j) => e.value.table["summary-method"](j, { fields: G.value, sums: B.value }),
3399
3400
  onSortChange: o[8] || (o[8] = (j) => {
3400
3401
  var de, M;
3401
- e.value.table.onSortChange(j, f.value), ((de = j == null ? void 0 : j.column) == null ? void 0 : de.sortable) === "custom" && ((M = e.value.table) == null || M.load());
3402
+ e.value.table.onSortChange(j, c.value), ((de = j == null ? void 0 : j.column) == null ? void 0 : de.sortable) === "custom" && ((M = e.value.table) == null || M.load());
3402
3403
  })
3403
3404
  }), {
3404
3405
  append: _(() => [
@@ -3681,7 +3682,7 @@ const Sa = /* @__PURE__ */ Wt(Da), xa = { key: 0 }, Ma = { style: { display: "fl
3681
3682
  ]),
3682
3683
  _: 3
3683
3684
  }, 16, ["summary-method"]),
3684
- (ht = (ct = (mt = e.value) == null ? void 0 : mt.table) == null ? void 0 : ct.page) != null && ht.hidden ? $e("", !0) : k(l.$slots, "page", { key: 0 }, () => [
3685
+ (ht = (ft = (mt = e.value) == null ? void 0 : mt.table) == null ? void 0 : ft.page) != null && ht.hidden ? $e("", !0) : k(l.$slots, "page", { key: 0 }, () => [
3685
3686
  ee(Ye, O({
3686
3687
  "page-size": e.value.table.page.pageSize,
3687
3688
  "onUpdate:pageSize": o[9] || (o[9] = (j) => e.value.table.page.pageSize = j),
@@ -3699,7 +3700,7 @@ const Sa = /* @__PURE__ */ Wt(Da), xa = { key: 0 }, Ma = { style: { display: "fl
3699
3700
  ], 64);
3700
3701
  };
3701
3702
  }
3702
- }), Ha = /* @__PURE__ */ at(La, [["__scopeId", "data-v-fb74c643"]]), za = { class: "g-tree-table" }, Pa = { class: "g-tree-container" }, ja = { class: "g-tree-table-container" }, Na = /* @__PURE__ */ Object.assign({
3703
+ }), Ha = /* @__PURE__ */ at(La, [["__scopeId", "data-v-a16f5918"]]), za = { class: "g-tree-table" }, Pa = { class: "g-tree-container" }, ja = { class: "g-tree-table-container" }, Na = /* @__PURE__ */ Object.assign({
3703
3704
  name: "g-tree-table",
3704
3705
  inheritAttrs: !1
3705
3706
  }, {
@@ -3713,29 +3714,29 @@ const Sa = /* @__PURE__ */ Wt(Da), xa = { key: 0 }, Ma = { style: { display: "fl
3713
3714
  var $, le, B, G;
3714
3715
  const a = s, t = lt(n, "modelValue"), r = At(), e = re(
3715
3716
  typeof (($ = r == null ? void 0 : r.tree) == null ? void 0 : $.width) == "number" ? `${r.tree.width}px` : ((le = r == null ? void 0 : r.tree) == null ? void 0 : le.width) || "180px"
3716
- ), h = re(((B = r == null ? void 0 : r.tree) == null ? void 0 : B.search) === void 0 ? !0 : (G = r == null ? void 0 : r.tree) == null ? void 0 : G.search), f = re({}), D = re(""), c = re(null), v = (S, ue) => {
3717
- var pe, fe;
3718
- if (!S) return !0;
3719
- const ce = ((fe = (pe = r.tree) == null ? void 0 : pe.props) == null ? void 0 : fe.label) || "label";
3720
- return ue[ce].includes(S);
3721
- }, u = (S, ue) => {
3722
- a("load", f.value, S, ue);
3723
- }, d = (S) => {
3724
- f.value = S, t.value.table.load();
3717
+ ), h = re(((B = r == null ? void 0 : r.tree) == null ? void 0 : B.search) === void 0 ? !0 : (G = r == null ? void 0 : r.tree) == null ? void 0 : G.search), c = re({}), S = re(""), f = re(null), v = (D, ue) => {
3718
+ var pe, ce;
3719
+ if (!D) return !0;
3720
+ const fe = ((ce = (pe = r.tree) == null ? void 0 : pe.props) == null ? void 0 : ce.label) || "label";
3721
+ return ue[fe].includes(D);
3722
+ }, u = (D, ue) => {
3723
+ a("load", c.value, D, ue);
3724
+ }, d = (D) => {
3725
+ c.value = D, t.value.table.load();
3725
3726
  };
3726
- return vl(D, (S) => {
3727
- c.value.filter(S);
3728
- }), (S, ue) => {
3729
- const ce = L("el-input"), pe = L("el-tree"), fe = L("g-table");
3727
+ return vl(S, (D) => {
3728
+ f.value.filter(D);
3729
+ }), (D, ue) => {
3730
+ const fe = L("el-input"), pe = L("el-tree"), ce = L("g-table");
3730
3731
  return p(), Y("div", za, [
3731
3732
  X("div", {
3732
3733
  class: "g-tree-left",
3733
3734
  style: qe({ width: e.value })
3734
3735
  }, [
3735
- h.value ? (p(), A(ce, {
3736
+ h.value ? (p(), A(fe, {
3736
3737
  key: 0,
3737
- modelValue: D.value,
3738
- "onUpdate:modelValue": ue[0] || (ue[0] = (ie) => D.value = ie),
3738
+ modelValue: S.value,
3739
+ "onUpdate:modelValue": ue[0] || (ue[0] = (ie) => S.value = ie),
3739
3740
  style: { width: "100%", "box-sizing": "border-box", "margin-bottom": "10px" },
3740
3741
  placeholder: "输入节点查询",
3741
3742
  clearable: ""
@@ -3746,11 +3747,11 @@ const Sa = /* @__PURE__ */ Wt(Da), xa = { key: 0 }, Ma = { style: { display: "fl
3746
3747
  "filter-node-method": v,
3747
3748
  "expand-on-click-node": !1,
3748
3749
  ref_key: "treeRef",
3749
- ref: c,
3750
+ ref: f,
3750
3751
  onNodeClick: d
3751
- }, S.$attrs.tree), be({
3752
+ }, D.$attrs.tree), be({
3752
3753
  default: _(({ node: ie, data: ge }) => [
3753
- k(S.$slots, "tree", {
3754
+ k(D.$slots, "tree", {
3754
3755
  node: ie,
3755
3756
  data: ge
3756
3757
  }, () => [
@@ -3759,24 +3760,24 @@ const Sa = /* @__PURE__ */ Wt(Da), xa = { key: 0 }, Ma = { style: { display: "fl
3759
3760
  ]),
3760
3761
  _: 2
3761
3762
  }, [
3762
- W(S.$slots, (ie, ge, Me) => ({
3763
+ W(D.$slots, (ie, ge, Me) => ({
3763
3764
  name: ge,
3764
3765
  fn: _((De) => [
3765
- k(S.$slots, ge, { data: De }, void 0, !0)
3766
+ k(D.$slots, ge, { data: De }, void 0, !0)
3766
3767
  ])
3767
3768
  }))
3768
3769
  ]), 1040, ["style"])
3769
3770
  ])
3770
3771
  ], 4),
3771
3772
  X("div", ja, [
3772
- ee(fe, O({
3773
+ ee(ce, O({
3773
3774
  modelValue: t.value,
3774
3775
  "onUpdate:modelValue": ue[1] || (ue[1] = (ie) => t.value = ie)
3775
- }, S.$attrs, { onLoad: u }), be({ _: 2 }, [
3776
- W(S.$slots, (ie, ge, Me) => ({
3776
+ }, D.$attrs, { onLoad: u }), be({ _: 2 }, [
3777
+ W(D.$slots, (ie, ge, Me) => ({
3777
3778
  name: ge,
3778
3779
  fn: _((De) => [
3779
- k(S.$slots, ge, { data: De }, void 0, !0)
3780
+ k(D.$slots, ge, { data: De }, void 0, !0)
3780
3781
  ])
3781
3782
  }))
3782
3783
  ]), 1040, ["modelValue"])
@@ -3836,7 +3837,7 @@ const Sa = /* @__PURE__ */ Wt(Da), xa = { key: 0 }, Ma = { style: { display: "fl
3836
3837
  }
3837
3838
  }), Ja = /* @__PURE__ */ at(Za, [["__scopeId", "data-v-c0ac6b77"]]), Ka = Object.freeze({}), Kt = [Ha, xt, Wa, Ja];
3838
3839
  let Tt = {};
3839
- const cr = {
3840
+ const fr = {
3840
3841
  install: (n, s = {}) => {
3841
3842
  Tt = Object.freeze({ ...Ka, ...s }), Kt.forEach((a) => {
3842
3843
  n.component(a.name, a);
@@ -3858,7 +3859,7 @@ const cr = {
3858
3859
  h.unmount(), a.remove();
3859
3860
  }, 300);
3860
3861
  }, () => {
3861
- var f, D, c;
3862
+ var c, S, f;
3862
3863
  return we(r, {
3863
3864
  modelValue: e.value,
3864
3865
  "onUpdate:modelValue": (v) => e.value = v,
@@ -3870,9 +3871,9 @@ const cr = {
3870
3871
  "close-on-click-modal": !1,
3871
3872
  ...n
3872
3873
  }, {
3873
- default: (f = n.slots) == null ? void 0 : f.default,
3874
- header: (D = n.slots) == null ? void 0 : D.header,
3875
- footer: (c = n.slots) == null ? void 0 : c.footer
3874
+ default: (c = n.slots) == null ? void 0 : c.default,
3875
+ header: (S = n.slots) == null ? void 0 : S.header,
3876
+ footer: (f = n.slots) == null ? void 0 : f.footer
3876
3877
  });
3877
3878
  };
3878
3879
  },
@@ -3880,8 +3881,8 @@ const cr = {
3880
3881
  _t();
3881
3882
  }
3882
3883
  });
3883
- return Kt.forEach((f) => {
3884
- h.component(f.name, f);
3884
+ return Kt.forEach((c) => {
3885
+ h.component(c.name, c);
3885
3886
  }), h.provide("options", Tt), h.use(ll, { locale: xl }), document.body.appendChild(a), h.mount(a), t;
3886
3887
  };
3887
3888
  function el(n, s = window.innerWidth) {
@@ -3900,13 +3901,13 @@ function el(n, s = window.innerWidth) {
3900
3901
  return s * parseFloat(n) / 100;
3901
3902
  }
3902
3903
  if (n.startsWith("calc(") && n.endsWith(")")) {
3903
- let e = function(f) {
3904
- if (/[0-9+\-*/().\s]+$/.test(f))
3905
- return new Function("return " + f)();
3904
+ let e = function(c) {
3905
+ if (/[0-9+\-*/().\s]+$/.test(c))
3906
+ return new Function("return " + c)();
3906
3907
  throw new Error("Invalid calc expression");
3907
3908
  };
3908
3909
  const r = n.slice(5, -1).trim();
3909
- return e(r.replace(/([0-9.]+)([a-z%]+)/g, (f, D, c) => el(D + c, s)));
3910
+ return e(r.replace(/([0-9.]+)([a-z%]+)/g, (c, S, f) => el(S + f, s)));
3910
3911
  }
3911
3912
  throw new Error("Unsupported unit in value: " + n);
3912
3913
  }
@@ -3946,10 +3947,10 @@ function Vt(n) {
3946
3947
  e += (a[Math.floor(n * 10 * Math.pow(10, h)) % 10] + s[h]).replace(/零./, "");
3947
3948
  e = e || "整", n = Math.floor(n);
3948
3949
  for (let h = 0; h < t[0].length && n > 0; h++) {
3949
- let f = "";
3950
- for (let D = 0; D < t[1].length && n > 0; D++)
3951
- f = a[n % 10] + t[1][D] + f, n = Math.floor(n / 10);
3952
- e = f.replace(/(零.)*零$/, "").replace(/^$/, "零") + t[0][h] + e;
3950
+ let c = "";
3951
+ for (let S = 0; S < t[1].length && n > 0; S++)
3952
+ c = a[n % 10] + t[1][S] + c, n = Math.floor(n / 10);
3953
+ e = c.replace(/(零.)*零$/, "").replace(/^$/, "零") + t[0][h] + e;
3953
3954
  }
3954
3955
  return r + e.replace(/(零.)*零元/, "元").replace(/(零.)+/g, "零").replace(/^整$/, "零元整");
3955
3956
  }
@@ -4017,22 +4018,22 @@ const Ce = {
4017
4018
  });
4018
4019
  }, or = (n, s) => {
4019
4020
  let a = !1, t, r, e, h;
4020
- const f = (v) => {
4021
- v.preventDefault(), a = !0, t = v.clientX, r = v.clientY, e = parseInt(document.defaultView.getComputedStyle(n).width), h = parseInt(document.defaultView.getComputedStyle(n).height), document.addEventListener("mousemove", D), document.addEventListener("mouseup", c);
4022
- }, D = (v) => {
4021
+ const c = (v) => {
4022
+ v.preventDefault(), a = !0, t = v.clientX, r = v.clientY, e = parseInt(document.defaultView.getComputedStyle(n).width), h = parseInt(document.defaultView.getComputedStyle(n).height), document.addEventListener("mousemove", S), document.addEventListener("mouseup", f);
4023
+ }, S = (v) => {
4023
4024
  if (!a) return;
4024
4025
  const u = Math.max(300, e + v.clientX - t), d = Math.max(200, h + v.clientY - r);
4025
4026
  n.style.width = `${u}px`, n.style.height = `${d}px`;
4026
- }, c = () => {
4027
- a = !1, document.removeEventListener("mousemove", D), document.removeEventListener("mouseup", c);
4027
+ }, f = () => {
4028
+ a = !1, document.removeEventListener("mousemove", S), document.removeEventListener("mouseup", f);
4028
4029
  };
4029
- s.addEventListener("mousedown", f);
4030
+ s.addEventListener("mousedown", c);
4030
4031
  };
4031
4032
  export {
4032
4033
  Ce as CT,
4033
4034
  _t as bindResize,
4034
4035
  el as convertToPx,
4035
- cr as default,
4036
+ fr as default,
4036
4037
  je as filterObject,
4037
4038
  tr as findTreeLabelByValue,
4038
4039
  lr as formatAmount,