vue-2024-ui 0.2.105 → 0.2.106

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,7 +1,7 @@
1
1
  import ql, { dayjs as Al, ElForm as Dt, ElButtonGroup as It, ElButton as Ne, ElPopover as Lt, ElIcon as Ht, ElMessage as ft, ElMessageBox as pl } from "element-plus";
2
- import { ref as re, useModel as ot, nextTick as rt, onMounted as xt, computed as Be, resolveComponent as H, openBlock as m, createElementBlock as z, Fragment as se, createElementVNode as J, createBlock as D, createCommentVNode as ke, normalizeStyle as Ue, unref as F, mergeProps as Y, withCtx as $, renderSlot as C, renderList as W, createTextVNode as Le, toDisplayString as Ie, createSlots as $e, createVNode as de, normalizeProps as qt, resolveDynamicComponent as Ze, guardReactiveProps as ml, mergeModels as st, useSlots as hl, inject as jt, withModifiers as yt, Transition as Yl, withDirectives as Fl, vShow as jl, h as Se, useAttrs as zt, onUnmounted as zl, onBeforeUnmount as Ul, normalizeClass as yl, watchEffect as Ll, onBeforeMount as Hl, watch as gl, createApp as Rl } from "vue";
2
+ import { ref as re, useModel as ot, nextTick as rt, onMounted as Ct, computed as Be, resolveComponent as H, openBlock as m, createElementBlock as z, Fragment as se, createElementVNode as K, createBlock as D, createCommentVNode as ke, normalizeStyle as Ue, unref as F, mergeProps as Y, withCtx as $, renderSlot as x, renderList as W, createTextVNode as Le, toDisplayString as Ie, createSlots as $e, createVNode as de, normalizeProps as qt, resolveDynamicComponent as Ze, guardReactiveProps as ml, mergeModels as st, useSlots as hl, inject as jt, withModifiers as yt, Transition as Yl, withDirectives as Fl, vShow as jl, h as Se, useAttrs as zt, onUnmounted as zl, onBeforeUnmount as Ul, normalizeClass as yl, watchEffect as Ll, onBeforeMount as Hl, watch as gl, createApp as Rl } from "vue";
3
3
  import { Plus as bl, ZoomIn as Bl, Delete as Wt, Search as Pl, Refresh as Gt, More as Nl, CircleClose as Wl, CircleCheckFilled as Gl, CircleCheck as Rt, Minus as Xl, Close as Ql, Switch as wl, FullScreen as Zl, InfoFilled as $l, Download as kl, DocumentCopy as Jl, Setting as Kl, CirclePlus as ea, Edit as _l, View as ta, ArrowUp as la, ArrowDown as aa } from "@element-plus/icons-vue";
4
- import xl from "sortablejs";
4
+ import Cl from "sortablejs";
5
5
  import { Dexie as ra } from "dexie";
6
6
  var na = {
7
7
  name: "zh-cn",
@@ -179,7 +179,7 @@ var na = {
179
179
  }
180
180
  }
181
181
  }, oa = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
182
- function Cl(n) {
182
+ function xl(n) {
183
183
  return n && n.__esModule && Object.prototype.hasOwnProperty.call(n, "default") ? n.default : n;
184
184
  }
185
185
  var Ml = { exports: {} };
@@ -206,32 +206,32 @@ var Ml = { exports: {} };
206
206
  return { M: u, y: c, w: h, d: v, D: q, h: S, m: f, s: t, ms: o, Q: r }[B] || String(B || "").toLowerCase().replace(/s$/, "");
207
207
  }, u: function(B) {
208
208
  return B === void 0;
209
- } }, R = "en", K = {};
210
- K[R] = Q;
209
+ } }, R = "en", J = {};
210
+ J[R] = Q;
211
211
  var fe = "$isDayjsObject", Te = function(B) {
212
- return B instanceof Ce || !(!B || !B[fe]);
212
+ return B instanceof xe || !(!B || !B[fe]);
213
213
  }, Ve = function B(A, y, _) {
214
214
  var w;
215
215
  if (!A) return R;
216
216
  if (typeof A == "string") {
217
217
  var p = A.toLowerCase();
218
- K[p] && (w = p), y && (K[p] = y, w = p);
218
+ J[p] && (w = p), y && (J[p] = y, w = p);
219
219
  var T = A.split("-");
220
220
  if (!w && T.length > 1) return B(T[0]);
221
221
  } else {
222
222
  var M = A.name;
223
- K[M] = A, w = M;
223
+ J[M] = A, w = M;
224
224
  }
225
225
  return !_ && w && (R = w), w || !_ && R;
226
226
  }, ve = function(B, A) {
227
227
  if (Te(B)) return B.clone();
228
228
  var y = typeof A == "object" ? A : {};
229
- return y.date = B, y.args = arguments, new Ce(y);
229
+ return y.date = B, y.args = arguments, new xe(y);
230
230
  }, L = le;
231
231
  L.l = Ve, L.i = Te, L.w = function(B, A) {
232
232
  return ve(B, { locale: A.$L, utc: A.$u, x: A.$x, $offset: A.$offset });
233
233
  };
234
- var Ce = function() {
234
+ var xe = function() {
235
235
  function B(y) {
236
236
  this.$L = Ve(y.locale, null, !0), this.parse(y), this.$x = this.$x || y.x || {}, this[fe] = !0;
237
237
  }
@@ -430,7 +430,7 @@ var Ml = { exports: {} };
430
430
  }, A.daysInMonth = function() {
431
431
  return this.endOf(u).$D;
432
432
  }, A.$locale = function() {
433
- return K[this.$L];
433
+ return J[this.$L];
434
434
  }, A.locale = function(y, _) {
435
435
  if (!y) return this.$L;
436
436
  var w = this.clone(), p = Ve(y, _, !0);
@@ -446,20 +446,20 @@ var Ml = { exports: {} };
446
446
  }, A.toString = function() {
447
447
  return this.$d.toUTCString();
448
448
  }, B;
449
- }(), Me = Ce.prototype;
449
+ }(), Me = xe.prototype;
450
450
  return ve.prototype = Me, [["$ms", o], ["$s", t], ["$m", f], ["$H", S], ["$W", v], ["$M", u], ["$y", c], ["$D", q]].forEach(function(B) {
451
451
  Me[B[1]] = function(A) {
452
452
  return this.$g(A, B[0], B[1]);
453
453
  };
454
454
  }), ve.extend = function(B, A) {
455
- return B.$i || (B(A, Ce, ve), B.$i = !0), ve;
455
+ return B.$i || (B(A, xe, ve), B.$i = !0), ve;
456
456
  }, ve.locale = Ve, ve.isDayjs = Te, ve.unix = function(B) {
457
457
  return ve(1e3 * B);
458
- }, ve.en = K[R], ve.Ls = K, ve.p = {}, ve;
458
+ }, ve.en = J[R], ve.Ls = J, ve.p = {}, ve;
459
459
  });
460
460
  })(Ml);
461
461
  var sa = Ml.exports;
462
- const At = /* @__PURE__ */ Cl(sa), nt = (n, d) => {
462
+ const At = /* @__PURE__ */ xl(sa), nt = (n, d) => {
463
463
  const e = n.__vccOpts || n;
464
464
  for (const [l, s] of d)
465
465
  e[l] = s;
@@ -523,7 +523,7 @@ const At = /* @__PURE__ */ Cl(sa), nt = (n, d) => {
523
523
  filterable: !0,
524
524
  remote: !!(e.value && e.value["remote-method"]),
525
525
  ...e.value
526
- }), K = re((j) => {
526
+ }), J = re((j) => {
527
527
  e.value["remote-method"](j, (E) => {
528
528
  rt(() => {
529
529
  S.value = E;
@@ -575,7 +575,7 @@ const At = /* @__PURE__ */ Cl(sa), nt = (n, d) => {
575
575
  } else
576
576
  u.value = 0;
577
577
  v.value = !0;
578
- }, Ce = re(null), Me = (j, E = 2) => {
578
+ }, xe = re(null), Me = (j, E = 2) => {
579
579
  if (j === "") {
580
580
  l.value = "";
581
581
  return;
@@ -591,9 +591,9 @@ const At = /* @__PURE__ */ Cl(sa), nt = (n, d) => {
591
591
  }
592
592
  l.value = X;
593
593
  };
594
- xt(async () => {
594
+ Ct(async () => {
595
595
  var X, Oe, Ae, Re, lt;
596
- e.value && e.value["remote-method"] && (R.value["remote-method"] = K), (Oe = (X = t.value[s.value]) == null ? void 0 : X.options) != null && Oe.length && (S.value = t.value[s.value].options);
596
+ e.value && e.value["remote-method"] && (R.value["remote-method"] = J), (Oe = (X = t.value[s.value]) == null ? void 0 : X.options) != null && Oe.length && (S.value = t.value[s.value].options);
597
597
  const j = (Xe, Je = "options", Ke = t.value[s.value]) => {
598
598
  typeof e.value.getDicts == "function" && fe(Je).catch((et) => {
599
599
  console.error(`Failed to load ${Je} for ${Xe}:`, et);
@@ -631,7 +631,7 @@ const At = /* @__PURE__ */ Cl(sa), nt = (n, d) => {
631
631
  (et = (Ke = t.value) == null ? void 0 : Ke.table) == null || et.load();
632
632
  });
633
633
  }
634
- o.value == "image" && (e.value.width && ((Ae = Ce.value) != null && Ae.$el) && Ce.value.$el.style.setProperty("--up-width", typeof e.value.width == "number" ? e.value.width + "px" : e.value.width), e.value.height && ((Re = Ce.value) != null && Re.$el) && Ce.value.$el.style.setProperty("--up-height", typeof e.value.height == "number" ? e.value.height + "px" : e.value.height), e.value.fontSize && ((lt = Ce.value) != null && lt.$el) && Ce.value.$el.style.setProperty("--up-font-size", typeof e.value.fontSize == "number" ? e.value.fontSize + "px" : e.value.fontSize));
634
+ o.value == "image" && (e.value.width && ((Ae = xe.value) != null && Ae.$el) && xe.value.$el.style.setProperty("--up-width", typeof e.value.width == "number" ? e.value.width + "px" : e.value.width), e.value.height && ((Re = xe.value) != null && Re.$el) && xe.value.$el.style.setProperty("--up-height", typeof e.value.height == "number" ? e.value.height + "px" : e.value.height), e.value.fontSize && ((lt = xe.value) != null && lt.$el) && xe.value.$el.style.setProperty("--up-font-size", typeof e.value.fontSize == "number" ? e.value.fontSize + "px" : e.value.fontSize));
635
635
  });
636
636
  const B = Be(() => {
637
637
  var j;
@@ -639,9 +639,9 @@ const At = /* @__PURE__ */ Cl(sa), nt = (n, d) => {
639
639
  });
640
640
  return (j, E) => {
641
641
  var ut, ne, ce, pe, vt, pt, it, dt, bt, Z, ct, wt, $t, Et, Zt, Jt, Kt, el, tl, ll, al, rl, nl, ol, sl, ul, il, dl;
642
- const X = H("el-image-viewer"), Oe = H("el-radio"), Ae = H("el-radio-group"), Re = H("el-radio-button"), lt = H("el-checkbox"), Xe = H("el-checkbox-group"), Je = H("el-checkbox-button"), Ke = H("g-select-option"), et = H("el-option"), Ct = H("el-select"), Mt = H("el-tree-select"), a = H("el-time-picker"), i = H("el-time-select"), g = H("el-date-picker"), x = H("el-color-picker"), O = H("el-rate"), P = H("el-slider"), N = H("el-switch"), we = H("el-transfer"), Ee = H("el-cascader"), qe = H("el-icon"), je = H("el-image"), Pe = H("el-tooltip"), tt = H("el-upload"), ht = H("el-autocomplete"), St = H("el-input-number"), Tt = H("el-input-tag"), te = H("el-input"), ye = H("el-link"), ue = H("el-text"), He = H("el-avatar"), Qe = H("el-tag");
642
+ const X = H("el-image-viewer"), Oe = H("el-radio"), Ae = H("el-radio-group"), Re = H("el-radio-button"), lt = H("el-checkbox"), Xe = H("el-checkbox-group"), Je = H("el-checkbox-button"), Ke = H("g-select-option"), et = H("el-option"), xt = H("el-select"), Mt = H("el-tree-select"), a = H("el-time-picker"), i = H("el-time-select"), g = H("el-date-picker"), C = H("el-color-picker"), O = H("el-rate"), P = H("el-slider"), N = H("el-switch"), we = H("el-transfer"), Ee = H("el-cascader"), qe = H("el-icon"), je = H("el-image"), Pe = H("el-tooltip"), tt = H("el-upload"), ht = H("el-autocomplete"), St = H("el-input-number"), Tt = H("el-input-tag"), te = H("el-input"), ye = H("el-link"), ue = H("el-text"), He = H("el-avatar"), Qe = H("el-tag");
643
643
  return m(), z(se, null, [
644
- J("div", null, [
644
+ K("div", null, [
645
645
  v.value ? (m(), D(X, {
646
646
  key: 0,
647
647
  teleported: !0,
@@ -650,7 +650,7 @@ const At = /* @__PURE__ */ Cl(sa), nt = (n, d) => {
650
650
  onClose: E[0] || (E[0] = (b) => v.value = !1)
651
651
  }, null, 8, ["initial-index", "url-list"])) : ke("", !0)
652
652
  ]),
653
- J("div", {
653
+ K("div", {
654
654
  style: Ue([{ display: "flex", width: "100%" }, c.value]),
655
655
  class: "g-ctrl-container"
656
656
  }, [
@@ -661,10 +661,10 @@ const At = /* @__PURE__ */ Cl(sa), nt = (n, d) => {
661
661
  disabled: (ut = t.value[s.value]) == null ? void 0 : ut.disabled
662
662
  }, e.value), {
663
663
  default: $(() => [
664
- C(j.$slots, `${d.t}-${s.value}`, { data: e.value }, () => [
664
+ x(j.$slots, `${d.t}-${s.value}`, { data: e.value }, () => [
665
665
  (m(!0), z(se, null, W(S.value, (b) => (m(), D(Oe, Y({ ref_for: !0 }, b), {
666
666
  default: $(() => [
667
- C(j.$slots, `${d.t}-${s.value}-options`, { option: b }, void 0, !0)
667
+ x(j.$slots, `${d.t}-${s.value}-options`, { option: b }, void 0, !0)
668
668
  ]),
669
669
  _: 2
670
670
  }, 1040))), 256))
@@ -678,10 +678,10 @@ const At = /* @__PURE__ */ Cl(sa), nt = (n, d) => {
678
678
  disabled: (ne = t.value[s.value]) == null ? void 0 : ne.disabled
679
679
  }, e.value), {
680
680
  default: $(() => [
681
- C(j.$slots, `${d.t}-${s.value}`, { data: e.value }, () => [
681
+ x(j.$slots, `${d.t}-${s.value}`, { data: e.value }, () => [
682
682
  (m(!0), z(se, null, W(S.value, (b) => (m(), D(Re, Y({ ref_for: !0 }, b), {
683
683
  default: $(() => [
684
- C(j.$slots, `${d.t}-${s.value}-options`, { option: b }, void 0, !0)
684
+ x(j.$slots, `${d.t}-${s.value}-options`, { option: b }, void 0, !0)
685
685
  ]),
686
686
  _: 2
687
687
  }, 1040))), 256))
@@ -695,7 +695,7 @@ const At = /* @__PURE__ */ Cl(sa), nt = (n, d) => {
695
695
  disabled: (ce = t.value[s.value]) == null ? void 0 : ce.disabled
696
696
  }, e.value), {
697
697
  default: $(() => [
698
- C(j.$slots, `${d.t}-${s.value}`, { data: e.value }, () => [
698
+ x(j.$slots, `${d.t}-${s.value}`, { data: e.value }, () => [
699
699
  E[30] || (E[30] = Le(Ie(" "), -1))
700
700
  ], !0)
701
701
  ]),
@@ -707,10 +707,10 @@ const At = /* @__PURE__ */ Cl(sa), nt = (n, d) => {
707
707
  disabled: (pe = t.value[s.value]) == null ? void 0 : pe.disabled
708
708
  }, e.value), {
709
709
  default: $(() => [
710
- C(j.$slots, `${d.t}-${s.value}`, { data: e.value }, () => [
710
+ x(j.$slots, `${d.t}-${s.value}`, { data: e.value }, () => [
711
711
  (m(!0), z(se, null, W(S.value, (b) => (m(), D(lt, Y({ ref_for: !0 }, b), {
712
712
  default: $(() => [
713
- C(j.$slots, `${d.t}-${s.value}-options`, { option: b }, () => [
713
+ x(j.$slots, `${d.t}-${s.value}-options`, { option: b }, () => [
714
714
  Le(Ie(b.label), 1)
715
715
  ], !0)
716
716
  ]),
@@ -726,17 +726,17 @@ const At = /* @__PURE__ */ Cl(sa), nt = (n, d) => {
726
726
  disabled: (vt = t.value[s.value]) == null ? void 0 : vt.disabled
727
727
  }, F(We)(e.value, (b) => b != "type")), {
728
728
  default: $(() => [
729
- C(j.$slots, `${d.t}-${s.value}`, { data: e.value }, () => [
729
+ x(j.$slots, `${d.t}-${s.value}`, { data: e.value }, () => [
730
730
  (m(!0), z(se, null, W(S.value, (b) => (m(), D(Je, Y({ ref_for: !0 }, b), {
731
731
  default: $(() => [
732
- C(j.$slots, `${d.t}-${s.value}-options`, { option: b }, void 0, !0)
732
+ x(j.$slots, `${d.t}-${s.value}-options`, { option: b }, void 0, !0)
733
733
  ]),
734
734
  _: 2
735
735
  }, 1040))), 256))
736
736
  ], !0)
737
737
  ]),
738
738
  _: 3
739
- }, 16, ["modelValue", "disabled"])) : o.value === F(De).SELECT ? (m(), D(Ct, Y({
739
+ }, 16, ["modelValue", "disabled"])) : o.value === F(De).SELECT ? (m(), D(xt, Y({
740
740
  key: 5,
741
741
  modelValue: l.value,
742
742
  "onUpdate:modelValue": E[6] || (E[6] = (b) => l.value = b),
@@ -750,7 +750,7 @@ const At = /* @__PURE__ */ Cl(sa), nt = (n, d) => {
750
750
  default: $(() => {
751
751
  var b;
752
752
  return [
753
- ((b = S.value) == null ? void 0 : b.length) > 0 ? C(j.$slots, `${d.t}-${s.value}`, {
753
+ ((b = S.value) == null ? void 0 : b.length) > 0 ? x(j.$slots, `${d.t}-${s.value}`, {
754
754
  key: 0,
755
755
  options: S.value
756
756
  }, () => [
@@ -765,7 +765,7 @@ const At = /* @__PURE__ */ Cl(sa), nt = (n, d) => {
765
765
  default: $(() => {
766
766
  var ge;
767
767
  return [
768
- (ge = e.value) != null && ge.columns ? C(j.$slots, `${d.t}-${s.value}-options`, {
768
+ (ge = e.value) != null && ge.columns ? x(j.$slots, `${d.t}-${s.value}-options`, {
769
769
  key: 0,
770
770
  option: he
771
771
  }, () => {
@@ -779,7 +779,7 @@ const At = /* @__PURE__ */ Cl(sa), nt = (n, d) => {
779
779
  W(j.$slots, (kt, Ut) => ({
780
780
  name: Ut,
781
781
  fn: $((Vt) => [
782
- C(j.$slots, Ut, {
782
+ x(j.$slots, Ut, {
783
783
  option: he,
784
784
  data: Vt,
785
785
  form: n.formInfo
@@ -804,7 +804,7 @@ const At = /* @__PURE__ */ Cl(sa), nt = (n, d) => {
804
804
  default: $(() => {
805
805
  var at;
806
806
  return [
807
- (at = e.value) != null && at.columns ? C(j.$slots, `${d.t}-${s.value}-options`, {
807
+ (at = e.value) != null && at.columns ? x(j.$slots, `${d.t}-${s.value}-options`, {
808
808
  key: 0,
809
809
  option: ge
810
810
  }, () => {
@@ -818,7 +818,7 @@ const At = /* @__PURE__ */ Cl(sa), nt = (n, d) => {
818
818
  W(j.$slots, (Ut, Vt) => ({
819
819
  name: Vt,
820
820
  fn: $((Ol) => [
821
- C(j.$slots, Vt, {
821
+ x(j.$slots, Vt, {
822
822
  option: ge,
823
823
  data: Ol,
824
824
  form: n.formInfo
@@ -851,7 +851,7 @@ const At = /* @__PURE__ */ Cl(sa), nt = (n, d) => {
851
851
  W(j.$slots, (he, ge) => ({
852
852
  name: ge,
853
853
  fn: $((at) => [
854
- C(j.$slots, ge, { data: at }, void 0, !0)
854
+ x(j.$slots, ge, { data: at }, void 0, !0)
855
855
  ])
856
856
  }))
857
857
  ]), 1032, ["columns", "t"])
@@ -862,7 +862,7 @@ const At = /* @__PURE__ */ Cl(sa), nt = (n, d) => {
862
862
  W(V(), (b) => ({
863
863
  name: b,
864
864
  fn: $((he) => [
865
- C(j.$slots, `${d.t}-${s.value}-${b}`, { form: n.formInfo }, void 0, !0)
865
+ x(j.$slots, `${d.t}-${s.value}-${b}`, { form: n.formInfo }, void 0, !0)
866
866
  ])
867
867
  }))
868
868
  ]), 1040, ["modelValue", "placeholder", "clearable", "disabled"])) : o.value == F(De).TREESELECT ? (m(), D(Mt, Y({
@@ -875,7 +875,7 @@ const At = /* @__PURE__ */ Cl(sa), nt = (n, d) => {
875
875
  W(V(), (b) => ({
876
876
  name: b,
877
877
  fn: $((he) => [
878
- C(j.$slots, `${d.t}-${s.value}-${b}`, { data: he }, void 0, !0)
878
+ x(j.$slots, `${d.t}-${s.value}-${b}`, { data: he }, void 0, !0)
879
879
  ])
880
880
  }))
881
881
  ]), 1040, ["modelValue", "placeholder", "disabled", "data"])) : o.value == F(De).TIME ? (m(), D(a, Y({
@@ -908,10 +908,10 @@ const At = /* @__PURE__ */ Cl(sa), nt = (n, d) => {
908
908
  W(V(), (b) => ({
909
909
  name: b,
910
910
  fn: $((he) => [
911
- C(j.$slots, `${d.t}-${s.value}-${b}`, { data: he }, void 0, !0)
911
+ x(j.$slots, `${d.t}-${s.value}-${b}`, { data: he }, void 0, !0)
912
912
  ])
913
913
  }))
914
- ]), 1040, ["modelValue", "type", "format", "placeholder", "value-format", "disabled"])) : o.value == F(De).COLOR ? (m(), D(x, Y({
914
+ ]), 1040, ["modelValue", "type", "format", "placeholder", "value-format", "disabled"])) : o.value == F(De).COLOR ? (m(), D(C, Y({
915
915
  key: 10,
916
916
  modelValue: l.value,
917
917
  "onUpdate:modelValue": E[12] || (E[12] = (b) => l.value = b)
@@ -935,7 +935,7 @@ const At = /* @__PURE__ */ Cl(sa), nt = (n, d) => {
935
935
  W(V(), (b) => ({
936
936
  name: b,
937
937
  fn: $((he) => [
938
- C(j.$slots, `${d.t}-${s.value}-${b}`, { data: he }, void 0, !0)
938
+ x(j.$slots, `${d.t}-${s.value}-${b}`, { data: he }, void 0, !0)
939
939
  ])
940
940
  }))
941
941
  ]), 1040, ["modelValue", "disabled"])) : o.value == F(De).TRANSFER ? (m(), D(we, Y({
@@ -946,7 +946,7 @@ const At = /* @__PURE__ */ Cl(sa), nt = (n, d) => {
946
946
  W(V(), (b) => ({
947
947
  name: b,
948
948
  fn: $((he) => [
949
- C(j.$slots, `${d.t}-${s.value}-${b}`, { data: he }, void 0, !0)
949
+ x(j.$slots, `${d.t}-${s.value}-${b}`, { data: he }, void 0, !0)
950
950
  ])
951
951
  }))
952
952
  ]), 1040, ["modelValue"])) : o.value == F(De).CASCADER ? (m(), D(Ee, Y({
@@ -957,7 +957,7 @@ const At = /* @__PURE__ */ Cl(sa), nt = (n, d) => {
957
957
  W(V(), (b) => ({
958
958
  name: b,
959
959
  fn: $((he) => [
960
- C(j.$slots, `${d.t}-${s.value}-${b}`, { data: he }, void 0, !0)
960
+ x(j.$slots, `${d.t}-${s.value}-${b}`, { data: he }, void 0, !0)
961
961
  ])
962
962
  }))
963
963
  ]), 1040, ["modelValue", "options"])) : o.value == F(De).IMAGE ? (m(), D(tt, Y({
@@ -969,7 +969,7 @@ const At = /* @__PURE__ */ Cl(sa), nt = (n, d) => {
969
969
  "on-preview": ve
970
970
  }, { ...k.value, ...e.value }, {
971
971
  ref_key: "uploadRef",
972
- ref: Ce
972
+ ref: xe
973
973
  }), $e({
974
974
  default: $(() => {
975
975
  var b, he;
@@ -984,7 +984,7 @@ const At = /* @__PURE__ */ Cl(sa), nt = (n, d) => {
984
984
  onClick: E[20] || (E[20] = (ge) => ge.stopPropagation()),
985
985
  style: { display: "flex", width: "var(--up-width)", height: "var(--up-height)", position: "relative", "align-items": "center", "justify-content": "center", "box-sizing": "border-box" }
986
986
  }, [
987
- J("div", ua, [
987
+ K("div", ua, [
988
988
  de(je, Y({
989
989
  style: { width: "var(--up-width)", height: "var(--up-height)" },
990
990
  src: l.value
@@ -992,12 +992,12 @@ const At = /* @__PURE__ */ Cl(sa), nt = (n, d) => {
992
992
  W(V(), (ge, at) => ({
993
993
  name: ge,
994
994
  fn: $((kt) => [
995
- C(j.$slots, `${d.t}-${s.value}-${ge}`, { data: kt }, void 0, !0)
995
+ x(j.$slots, `${d.t}-${s.value}-${ge}`, { data: kt }, void 0, !0)
996
996
  ])
997
997
  }))
998
998
  ]), 1040, ["src"])
999
999
  ]),
1000
- J("div", {
1000
+ K("div", {
1001
1001
  style: { display: "flex", width: "var(--up-width)", height: "var(--up-height)", position: "absolute", "align-items": "center", "justify-content": "center" },
1002
1002
  onMouseenter: E[18] || (E[18] = (ge) => h.value = !0),
1003
1003
  onMouseleave: E[19] || (E[19] = (ge) => h.value = !1),
@@ -1040,7 +1040,7 @@ const At = /* @__PURE__ */ Cl(sa), nt = (n, d) => {
1040
1040
  W(V(), (b, he) => ({
1041
1041
  name: b,
1042
1042
  fn: $((ge) => [
1043
- C(j.$slots, `${d.t}-${s.value}-${b}`, { data: ge }, void 0, !0)
1043
+ x(j.$slots, `${d.t}-${s.value}-${b}`, { data: ge }, void 0, !0)
1044
1044
  ])
1045
1045
  }))
1046
1046
  ]), 1040, ["file-list"])) : o.value == F(De).AUTOCOMPLETE ? (m(), D(ht, Y({
@@ -1051,7 +1051,7 @@ const At = /* @__PURE__ */ Cl(sa), nt = (n, d) => {
1051
1051
  W(V(), (b, he) => ({
1052
1052
  name: b,
1053
1053
  fn: $((ge) => [
1054
- C(j.$slots, `${d.t}-${s.value}-${b}`, { data: ge }, void 0, !0)
1054
+ x(j.$slots, `${d.t}-${s.value}-${b}`, { data: ge }, void 0, !0)
1055
1055
  ])
1056
1056
  }))
1057
1057
  ]), 1040, ["modelValue", "placeholder"])) : o.value == F(De).INPUTNUMBER ? (m(), D(St, Y({
@@ -1064,7 +1064,7 @@ const At = /* @__PURE__ */ Cl(sa), nt = (n, d) => {
1064
1064
  W(V(), (b, he) => ({
1065
1065
  name: b,
1066
1066
  fn: $((ge) => [
1067
- C(j.$slots, `${d.t}-${s.value}-${b}`, {
1067
+ x(j.$slots, `${d.t}-${s.value}-${b}`, {
1068
1068
  data: ge,
1069
1069
  form: n.formInfo
1070
1070
  }, void 0, !0)
@@ -1083,7 +1083,7 @@ const At = /* @__PURE__ */ Cl(sa), nt = (n, d) => {
1083
1083
  fn: $(() => {
1084
1084
  var b;
1085
1085
  return [
1086
- J("div", {
1086
+ K("div", {
1087
1087
  innerHTML: ((b = e.value) == null ? void 0 : b.suffix) || ""
1088
1088
  }, null, 8, ia)
1089
1089
  ];
@@ -1095,7 +1095,7 @@ const At = /* @__PURE__ */ Cl(sa), nt = (n, d) => {
1095
1095
  fn: $(() => {
1096
1096
  var b;
1097
1097
  return [
1098
- J("div", {
1098
+ K("div", {
1099
1099
  innerHTML: ((b = e.value) == null ? void 0 : b.prefix) || ""
1100
1100
  }, null, 8, da)
1101
1101
  ];
@@ -1105,7 +1105,7 @@ const At = /* @__PURE__ */ Cl(sa), nt = (n, d) => {
1105
1105
  W(V(), (b, he) => ({
1106
1106
  name: b,
1107
1107
  fn: $((ge) => [
1108
- C(j.$slots, `${d.t}-${s.value}-${b}`, {
1108
+ x(j.$slots, `${d.t}-${s.value}-${b}`, {
1109
1109
  data: ge,
1110
1110
  form: n.formInfo
1111
1111
  }, void 0, !0)
@@ -1124,7 +1124,7 @@ const At = /* @__PURE__ */ Cl(sa), nt = (n, d) => {
1124
1124
  maxlength: ((tl = e.value) == null ? void 0 : tl.max) || 25
1125
1125
  }, { ...e.value, type: o.value }), $e({
1126
1126
  suffix: $(() => [
1127
- J("div", {
1127
+ K("div", {
1128
1128
  title: F(Nt)(l.value),
1129
1129
  style: { "font-size": "10px", display: "block", width: "80px", "text-align": "right", overflow: "hidden", "text-overflow": "ellipsis" }
1130
1130
  }, Ie(F(Nt)(l.value)), 9, ca)
@@ -1134,7 +1134,7 @@ const At = /* @__PURE__ */ Cl(sa), nt = (n, d) => {
1134
1134
  W(V(), (b, he) => ({
1135
1135
  name: b,
1136
1136
  fn: $((ge) => [
1137
- C(j.$slots, `${d.t}-${s.value}-${b}`, { data: ge }, void 0, !0)
1137
+ x(j.$slots, `${d.t}-${s.value}-${b}`, { data: ge }, void 0, !0)
1138
1138
  ])
1139
1139
  }))
1140
1140
  ]), 1040, ["modelValue", "placeholder", "maxlength"])
@@ -1160,7 +1160,7 @@ const At = /* @__PURE__ */ Cl(sa), nt = (n, d) => {
1160
1160
  }, [
1161
1161
  Q.value ? (m(), D(He, qt(Y({ key: 0 }, e.value)), {
1162
1162
  default: $(() => [
1163
- J("div", { innerHTML: Q.value }, null, 8, fa)
1163
+ K("div", { innerHTML: Q.value }, null, 8, fa)
1164
1164
  ]),
1165
1165
  _: 1
1166
1166
  }, 16)) : (m(), D(He, qt(Y({ key: 1 }, e.value)), null, 16))
@@ -1222,7 +1222,7 @@ const At = /* @__PURE__ */ Cl(sa), nt = (n, d) => {
1222
1222
  fn: $(() => {
1223
1223
  var b;
1224
1224
  return [
1225
- J("div", {
1225
+ K("div", {
1226
1226
  innerHTML: ((b = e.value) == null ? void 0 : b.suffix) || ""
1227
1227
  }, null, 8, ma)
1228
1228
  ];
@@ -1234,7 +1234,7 @@ const At = /* @__PURE__ */ Cl(sa), nt = (n, d) => {
1234
1234
  fn: $(() => {
1235
1235
  var b;
1236
1236
  return [
1237
- J("div", {
1237
+ K("div", {
1238
1238
  innerHTML: ((b = e.value) == null ? void 0 : b.prefix) || ""
1239
1239
  }, null, 8, ha)
1240
1240
  ];
@@ -1246,7 +1246,7 @@ const At = /* @__PURE__ */ Cl(sa), nt = (n, d) => {
1246
1246
  fn: $(() => {
1247
1247
  var b;
1248
1248
  return [
1249
- J("div", {
1249
+ K("div", {
1250
1250
  innerHTML: ((b = e.value) == null ? void 0 : b.append) || ""
1251
1251
  }, null, 8, ya)
1252
1252
  ];
@@ -1258,7 +1258,7 @@ const At = /* @__PURE__ */ Cl(sa), nt = (n, d) => {
1258
1258
  fn: $(() => {
1259
1259
  var b;
1260
1260
  return [
1261
- J("div", {
1261
+ K("div", {
1262
1262
  innerHTML: ((b = e.value) == null ? void 0 : b.prepend) || ""
1263
1263
  }, null, 8, ga)
1264
1264
  ];
@@ -1268,7 +1268,7 @@ const At = /* @__PURE__ */ Cl(sa), nt = (n, d) => {
1268
1268
  W(V(), (b, he) => ({
1269
1269
  name: b,
1270
1270
  fn: $((ge) => [
1271
- C(j.$slots, `${d.t}-${s.value}-${b}`, {
1271
+ x(j.$slots, `${d.t}-${s.value}-${b}`, {
1272
1272
  data: ge,
1273
1273
  form: n.formInfo
1274
1274
  }, void 0, !0)
@@ -1317,7 +1317,7 @@ const At = /* @__PURE__ */ Cl(sa), nt = (n, d) => {
1317
1317
  };
1318
1318
  return (v, h) => {
1319
1319
  const u = H("el-form-item");
1320
- return m(!0), z(se, null, W(o(e.more), (r, c) => C(v.$slots, `q-${c}`, {
1320
+ return m(!0), z(se, null, W(o(e.more), (r, c) => x(v.$slots, `q-${c}`, {
1321
1321
  key: c,
1322
1322
  item: r,
1323
1323
  queryModel: l.value,
@@ -1328,7 +1328,7 @@ const At = /* @__PURE__ */ Cl(sa), nt = (n, d) => {
1328
1328
  style: { width: S(r) }
1329
1329
  }, { ref_for: !0 }, { ...d.value.queryItems, ...F(We)(t(r), (q) => q != "onClick") }), {
1330
1330
  label: $(() => [
1331
- C(v.$slots, `q-${c}-label`, {
1331
+ x(v.$slots, `q-${c}-label`, {
1332
1332
  item: r,
1333
1333
  model: d.value
1334
1334
  })
@@ -1347,7 +1347,7 @@ const At = /* @__PURE__ */ Cl(sa), nt = (n, d) => {
1347
1347
  W(Object.keys(v.$slots), (q) => ({
1348
1348
  name: q,
1349
1349
  fn: $((U) => [
1350
- C(v.$slots, q, {
1350
+ x(v.$slots, q, {
1351
1351
  data: U,
1352
1352
  item: r,
1353
1353
  model: d.value,
@@ -1480,7 +1480,7 @@ const At = /* @__PURE__ */ Cl(sa), nt = (n, d) => {
1480
1480
  more: k
1481
1481
  }, Q);
1482
1482
  }, r = hl(), c = () => {
1483
- var Q, G, le, R, K, fe, Te, Ve, ve;
1483
+ var Q, G, le, R, J, fe, Te, Ve, ve;
1484
1484
  const V = [
1485
1485
  {
1486
1486
  key: "query",
@@ -1495,7 +1495,7 @@ const At = /* @__PURE__ */ Cl(sa), nt = (n, d) => {
1495
1495
  },
1496
1496
  {
1497
1497
  key: "reset",
1498
- hidden: (fe = (K = (R = e.value) == null ? void 0 : R.query) == null ? void 0 : K.reset) == null ? void 0 : fe.hidden,
1498
+ hidden: (fe = (J = (R = e.value) == null ? void 0 : R.query) == null ? void 0 : J.reset) == null ? void 0 : fe.hidden,
1499
1499
  component: Ne,
1500
1500
  props: {
1501
1501
  ...e.value.query.reset,
@@ -1520,7 +1520,7 @@ const At = /* @__PURE__ */ Cl(sa), nt = (n, d) => {
1520
1520
  }, () => u({ slots: r }, !0)) : null
1521
1521
  }
1522
1522
  ];
1523
- return V.sort((L, Ce) => L.sort - Ce.sort), V.filter((L) => !L.hidden).map((L) => L.key === "more" && L.component === Lt ? Se(Lt, L.props, {
1523
+ return V.sort((L, xe) => L.sort - xe.sort), V.filter((L) => !L.hidden).map((L) => L.key === "more" && L.component === Lt ? Se(Lt, L.props, {
1524
1524
  reference: () => Se(Ne, e.value.query.more, () => L.label),
1525
1525
  default: L.content
1526
1526
  }) : (L.props.slot = "query-" + L.key, L.label ? Se(L.component, L.props, () => L.label) : Se(L.component, L.props)));
@@ -1530,10 +1530,10 @@ const At = /* @__PURE__ */ Cl(sa), nt = (n, d) => {
1530
1530
  })), U = () => {
1531
1531
  };
1532
1532
  return (V, k) => {
1533
- var le, R, K, fe, Te, Ve, ve, L, Ce, Me, B, A, y, _, w, p, T;
1533
+ var le, R, J, fe, Te, Ve, ve, L, xe, Me, B, A, y, _, w, p, T;
1534
1534
  const Q = H("el-form-item"), G = H("el-drawer");
1535
1535
  return m(), z(se, null, [
1536
- J("div", {
1536
+ K("div", {
1537
1537
  class: "g-query-container",
1538
1538
  style: Ue({ ...q.value, ...((R = (le = e.value.query) == null ? void 0 : le.container) == null ? void 0 : R.style) || {} }),
1539
1539
  onDblclick: U
@@ -1550,29 +1550,29 @@ const At = /* @__PURE__ */ Cl(sa), nt = (n, d) => {
1550
1550
  default: $(() => {
1551
1551
  var ee, ae, _e, Ye, oe;
1552
1552
  return [
1553
- J("div", {
1553
+ K("div", {
1554
1554
  style: Ue((ae = (ee = e.value.query) == null ? void 0 : ee.btns) == null ? void 0 : ae.style)
1555
1555
  }, [
1556
1556
  e.value.query.group ? (m(), D(F(It), { key: 0 }, {
1557
1557
  default: $(() => [
1558
- (m(!0), z(se, null, W(c(), (me) => C(V.$slots, me.props.slot, {}, () => [
1558
+ (m(!0), z(se, null, W(c(), (me) => x(V.$slots, me.props.slot, {}, () => [
1559
1559
  (m(), D(Ze(me)))
1560
1560
  ], !0)), 256)),
1561
- C(V.$slots, "q-btns", {}, void 0, !0)
1561
+ x(V.$slots, "q-btns", {}, void 0, !0)
1562
1562
  ]),
1563
1563
  _: 3
1564
1564
  })) : (m(), z(se, { key: 1 }, [
1565
1565
  (oe = (Ye = (_e = e.value) == null ? void 0 : _e.query) == null ? void 0 : Ye.btns) != null && oe.group ? (m(), D(F(It), { key: 0 }, {
1566
1566
  default: $(() => [
1567
- (m(!0), z(se, null, W(c(), (me) => C(V.$slots, me.props.slot, {}, () => [
1567
+ (m(!0), z(se, null, W(c(), (me) => x(V.$slots, me.props.slot, {}, () => [
1568
1568
  (m(), D(Ze(me)))
1569
1569
  ], !0)), 256))
1570
1570
  ]),
1571
1571
  _: 3
1572
- })) : (m(!0), z(se, { key: 1 }, W(c(), (me) => C(V.$slots, me.props.slot, {}, () => [
1572
+ })) : (m(!0), z(se, { key: 1 }, W(c(), (me) => x(V.$slots, me.props.slot, {}, () => [
1573
1573
  (m(), D(Ze(me)))
1574
1574
  ], !0)), 256)),
1575
- C(V.$slots, "q-btns", {}, void 0, !0)
1575
+ x(V.$slots, "q-btns", {}, void 0, !0)
1576
1576
  ], 64))
1577
1577
  ], 4)
1578
1578
  ];
@@ -1583,30 +1583,30 @@ const At = /* @__PURE__ */ Cl(sa), nt = (n, d) => {
1583
1583
  }),
1584
1584
  _: 3
1585
1585
  }, 16),
1586
- ((Te = (fe = (K = e.value) == null ? void 0 : K.query) == null ? void 0 : fe.container) == null ? void 0 : Te.inline) === !1 ? (m(), z("div", {
1586
+ ((Te = (fe = (J = e.value) == null ? void 0 : J.query) == null ? void 0 : fe.container) == null ? void 0 : Te.inline) === !1 ? (m(), z("div", {
1587
1587
  key: 0,
1588
1588
  style: Ue([{ "margin-bottom": "18px" }, (ve = (Ve = e.value.query) == null ? void 0 : Ve.btns) == null ? void 0 : ve.style])
1589
1589
  }, [
1590
1590
  e.value.query.group ? (m(), D(F(It), { key: 0 }, {
1591
1591
  default: $(() => [
1592
- (m(!0), z(se, null, W(c(), (M) => C(V.$slots, M.props.slot, {}, () => [
1592
+ (m(!0), z(se, null, W(c(), (M) => x(V.$slots, M.props.slot, {}, () => [
1593
1593
  (m(), D(Ze(M)))
1594
1594
  ], !0)), 256)),
1595
- C(V.$slots, "q-btns", {}, void 0, !0)
1595
+ x(V.$slots, "q-btns", {}, void 0, !0)
1596
1596
  ]),
1597
1597
  _: 3
1598
1598
  })) : (m(), z(se, { key: 1 }, [
1599
- (Ce = (L = e.value.query) == null ? void 0 : L.btns) != null && Ce.group ? (m(), D(F(It), { key: 0 }, {
1599
+ (xe = (L = e.value.query) == null ? void 0 : L.btns) != null && xe.group ? (m(), D(F(It), { key: 0 }, {
1600
1600
  default: $(() => [
1601
- (m(!0), z(se, null, W(c(), (M) => C(V.$slots, M.props.slot, {}, () => [
1601
+ (m(!0), z(se, null, W(c(), (M) => x(V.$slots, M.props.slot, {}, () => [
1602
1602
  (m(), D(Ze(M)))
1603
1603
  ], !0)), 256))
1604
1604
  ]),
1605
1605
  _: 3
1606
- })) : (m(!0), z(se, { key: 1 }, W(c(), (M) => C(V.$slots, M.props.slot, {}, () => [
1606
+ })) : (m(!0), z(se, { key: 1 }, W(c(), (M) => x(V.$slots, M.props.slot, {}, () => [
1607
1607
  (m(), D(Ze(M)))
1608
1608
  ], !0)), 256)),
1609
- C(V.$slots, "q-btns", {}, void 0, !0)
1609
+ x(V.$slots, "q-btns", {}, void 0, !0)
1610
1610
  ], 64))
1611
1611
  ], 4)) : ke("", !0)
1612
1612
  ], 36),
@@ -1633,7 +1633,7 @@ const At = /* @__PURE__ */ Cl(sa), nt = (n, d) => {
1633
1633
  W(V.$slots, (M, I, ee) => ({
1634
1634
  name: I,
1635
1635
  fn: $((ae) => [
1636
- C(V.$slots, I, { model: e.value }, void 0, !0)
1636
+ x(V.$slots, I, { model: e.value }, void 0, !0)
1637
1637
  ])
1638
1638
  }))
1639
1639
  ]), 1032, ["modelValue", "info"])
@@ -1646,7 +1646,7 @@ const At = /* @__PURE__ */ Cl(sa), nt = (n, d) => {
1646
1646
  (T = (p = (w = (_ = (y = e.value) == null ? void 0 : y.query) == null ? void 0 : _.more) == null ? void 0 : w.dialog) == null ? void 0 : p.footer) != null && T.hidden ? void 0 : {
1647
1647
  name: "footer",
1648
1648
  fn: $(() => [
1649
- J("div", qt(ml(e.value.query.more.dialog.footer)), [
1649
+ K("div", qt(ml(e.value.query.more.dialog.footer)), [
1650
1650
  de(F(Ne), Y(e.value.query.query, {
1651
1651
  onClick: k[4] || (k[4] = (M) => e.value.query.query.click())
1652
1652
  }), {
@@ -1677,7 +1677,7 @@ const At = /* @__PURE__ */ Cl(sa), nt = (n, d) => {
1677
1677
  var M, I, ee;
1678
1678
  return [
1679
1679
  o.value && !((ee = (I = (M = e.value) == null ? void 0 : M.query) == null ? void 0 : I.more) != null && ee.hidden) && e.value.query.more.mode == 1 ? (m(), z("div", wa, [
1680
- J("div", $a, [
1680
+ K("div", $a, [
1681
1681
  e.value.query.more.mode == 1 ? Fl((m(), D(F(Dt), Y({
1682
1682
  key: 0,
1683
1683
  onSubmit: k[7] || (k[7] = yt(() => {
@@ -1763,7 +1763,7 @@ const At = /* @__PURE__ */ Cl(sa), nt = (n, d) => {
1763
1763
  height: "200px",
1764
1764
  style: { minHeight: "200px" }
1765
1765
  }
1766
- }, Xt = ["table", "tableColumns", "query", "queryItems", "form", "formItems", "control", "dialog"], xa = { class: "g-form-container" }, Ca = /* @__PURE__ */ Object.assign({
1766
+ }, Xt = ["table", "tableColumns", "query", "queryItems", "form", "formItems", "control", "dialog"], Ca = { class: "g-form-container" }, xa = /* @__PURE__ */ Object.assign({
1767
1767
  name: "g-form",
1768
1768
  inheritAttrs: !1
1769
1769
  }, {
@@ -1774,7 +1774,7 @@ const At = /* @__PURE__ */ Cl(sa), nt = (n, d) => {
1774
1774
  }),
1775
1775
  emits: /* @__PURE__ */ st(["submit", "reset"], ["update:modelValue"]),
1776
1776
  setup(n, { expose: d, emit: e }) {
1777
- var Ve, ve, L, Ce, Me, B, A;
1777
+ var Ve, ve, L, xe, Me, B, A;
1778
1778
  const l = ot(n, "modelValue"), s = e, o = re(null), t = jt("options"), f = re({}), S = re(""), v = n;
1779
1779
  l.value.form = ze(
1780
1780
  Sl,
@@ -1782,7 +1782,7 @@ const At = /* @__PURE__ */ Cl(sa), nt = (n, d) => {
1782
1782
  (Ve = l.value) == null ? void 0 : Ve.form
1783
1783
  ), l.value.form.style = ze(
1784
1784
  (L = (ve = l.value) == null ? void 0 : ve.form) == null ? void 0 : L.style,
1785
- { ...(Ce = zt()) == null ? void 0 : Ce.style }
1785
+ { ...(xe = zt()) == null ? void 0 : xe.style }
1786
1786
  );
1787
1787
  const h = async (y, _, w) => {
1788
1788
  let p = 5;
@@ -1910,7 +1910,7 @@ const At = /* @__PURE__ */ Cl(sa), nt = (n, d) => {
1910
1910
  const _ = typeof y.editor == "function" ? y.editor(f.value, (w = l.value.form) == null ? void 0 : w.modalState) : y.editor;
1911
1911
  return ((p = l.value.form) == null ? void 0 : p.modalState) === "edit" ? ((T = _ == null ? void 0 : _.ep) == null ? void 0 : T.type) ?? (_ == null ? void 0 : _.type) ?? y.type : ((M = l.value.form) == null ? void 0 : M.modalState) === "add" ? ((I = _ == null ? void 0 : _.ap) == null ? void 0 : I.type) ?? (_ == null ? void 0 : _.type) ?? y.type : (_ == null ? void 0 : _.type) ?? y.type;
1912
1912
  }, k = (y) => y === "left" ? "flex-start" : y === "right" ? "flex-end" : y === "center" ? "center" : "flex-end";
1913
- xt(() => {
1913
+ Ct(() => {
1914
1914
  Q(), v != null && v.editForm ? f.value = v.editForm : f.value = le.value;
1915
1915
  }), zl(() => {
1916
1916
  o.value = null;
@@ -1967,7 +1967,7 @@ const At = /* @__PURE__ */ Cl(sa), nt = (n, d) => {
1967
1967
  ..._.items.map(({ item: w }) => w.tabPane || {})
1968
1968
  );
1969
1969
  }), Array.from(y.values());
1970
- }), K = re(((A = l.value.form.tabs) == null ? void 0 : A.activeTab) || (R.value.length > 0 ? R.value[0].groupName : null)), fe = re([
1970
+ }), J = re(((A = l.value.form.tabs) == null ? void 0 : A.activeTab) || (R.value.length > 0 ? R.value[0].groupName : null)), fe = re([
1971
1971
  {
1972
1972
  name: "f-submit",
1973
1973
  label: l.value.form.submit.label,
@@ -2018,7 +2018,7 @@ const At = /* @__PURE__ */ Cl(sa), nt = (n, d) => {
2018
2018
  }), (y, _) => {
2019
2019
  var ae, _e, Ye;
2020
2020
  const w = H("el-form-item"), p = H("el-col"), T = H("el-tab-pane"), M = H("el-tabs"), I = H("el-form"), ee = H("el-button");
2021
- return m(), z("div", xa, [
2021
+ return m(), z("div", Ca, [
2022
2022
  de(I, Y(
2023
2023
  {
2024
2024
  ref_key: "gform",
@@ -2037,12 +2037,12 @@ const At = /* @__PURE__ */ Cl(sa), nt = (n, d) => {
2037
2037
  )
2038
2038
  ), {
2039
2039
  default: $(() => [
2040
- R.value.length > 0 ? C(y.$slots, "default", { key: 0 }, () => {
2040
+ R.value.length > 0 ? x(y.$slots, "default", { key: 0 }, () => {
2041
2041
  var oe, me, Fe;
2042
2042
  return [
2043
2043
  de(M, Y({
2044
- modelValue: K.value,
2045
- "onUpdate:modelValue": _[0] || (_[0] = (be) => K.value = be),
2044
+ modelValue: J.value,
2045
+ "onUpdate:modelValue": _[0] || (_[0] = (be) => J.value = be),
2046
2046
  style: [{ width: "100%" }, { height: (Fe = (me = (oe = l.value) == null ? void 0 : oe.form) == null ? void 0 : me.tabs) == null ? void 0 : Fe.height }]
2047
2047
  }, l.value.form.tabs), {
2048
2048
  default: $(() => [
@@ -2066,7 +2066,7 @@ const At = /* @__PURE__ */ Cl(sa), nt = (n, d) => {
2066
2066
  rules: q(ie == null ? void 0 : ie.item)
2067
2067
  }, { ref_for: !0 }, { ...(j = l.value) == null ? void 0 : j.formItems, ...(E = ie == null ? void 0 : ie.item) == null ? void 0 : E.formItem }, { style: { width: "100%" } }), {
2068
2068
  default: $(() => [
2069
- C(y.$slots, "f-" + ie.key, {
2069
+ x(y.$slots, "f-" + ie.key, {
2070
2070
  item: ie == null ? void 0 : ie.item,
2071
2071
  formInfo: f.value,
2072
2072
  model: l.value,
@@ -2087,7 +2087,7 @@ const At = /* @__PURE__ */ Cl(sa), nt = (n, d) => {
2087
2087
  W(y.$slots, (X, Oe) => ({
2088
2088
  name: Oe,
2089
2089
  fn: $((Ae) => [
2090
- C(y.$slots, Oe, {
2090
+ x(y.$slots, Oe, {
2091
2091
  data: Ae,
2092
2092
  item: ie.item,
2093
2093
  model: l.value
@@ -2110,7 +2110,7 @@ const At = /* @__PURE__ */ Cl(sa), nt = (n, d) => {
2110
2110
  _: 3
2111
2111
  }, 16, ["modelValue", "style"])
2112
2112
  ];
2113
- }, !0) : C(y.$slots, "default", { key: 1 }, () => [
2113
+ }, !0) : x(y.$slots, "default", { key: 1 }, () => [
2114
2114
  (m(!0), z(se, null, W(G.value, (oe, me) => (m(), D(p, Y({ ref_for: !0 }, { ...l.value.form.cols, ...oe.col }, {
2115
2115
  key: me,
2116
2116
  style: { width: "100%" }
@@ -2124,7 +2124,7 @@ const At = /* @__PURE__ */ Cl(sa), nt = (n, d) => {
2124
2124
  rules: q(oe)
2125
2125
  }, { ref_for: !0 }, { ...(Fe = l.value) == null ? void 0 : Fe.formItems, ...oe == null ? void 0 : oe.formItem }, { style: { width: "100%" } }), {
2126
2126
  label: $((be) => [
2127
- C(y.$slots, `f-${me}-label`, {
2127
+ x(y.$slots, `f-${me}-label`, {
2128
2128
  data: be,
2129
2129
  item: oe,
2130
2130
  model: l.value
@@ -2133,7 +2133,7 @@ const At = /* @__PURE__ */ Cl(sa), nt = (n, d) => {
2133
2133
  ], !0)
2134
2134
  ]),
2135
2135
  default: $(() => [
2136
- C(y.$slots, "f-" + me, {
2136
+ x(y.$slots, "f-" + me, {
2137
2137
  item: oe,
2138
2138
  formInfo: f.value,
2139
2139
  model: l.value,
@@ -2154,7 +2154,7 @@ const At = /* @__PURE__ */ Cl(sa), nt = (n, d) => {
2154
2154
  W(y.$slots, (be, ie) => ({
2155
2155
  name: ie,
2156
2156
  fn: $((Ge) => [
2157
- C(y.$slots, ie, {
2157
+ x(y.$slots, ie, {
2158
2158
  data: Ge,
2159
2159
  item: oe,
2160
2160
  model: l.value
@@ -2174,14 +2174,14 @@ const At = /* @__PURE__ */ Cl(sa), nt = (n, d) => {
2174
2174
  ]),
2175
2175
  _: 3
2176
2176
  }, 16, ["model"]),
2177
- (Ye = (_e = (ae = l.value) == null ? void 0 : ae.form) == null ? void 0 : _e.footer) != null && Ye.hidden ? ke("", !0) : C(y.$slots, "f-footer", { key: 0 }, () => [
2178
- J("div", {
2177
+ (Ye = (_e = (ae = l.value) == null ? void 0 : ae.form) == null ? void 0 : _e.footer) != null && Ye.hidden ? ke("", !0) : x(y.$slots, "f-footer", { key: 0 }, () => [
2178
+ K("div", {
2179
2179
  style: Ue({ justifyContent: k(l.value.form.footer.align), ...l.value.form.footer.style })
2180
2180
  }, [
2181
- C(y.$slots, "f-footer-left", {}, void 0, !0),
2181
+ x(y.$slots, "f-footer-left", {}, void 0, !0),
2182
2182
  (m(!0), z(se, null, W(Te.value, (oe) => (m(), z(se, null, [
2183
- C(y.$slots, oe.name + "-left", {}, void 0, !0),
2184
- C(y.$slots, oe.name, {}, () => {
2183
+ x(y.$slots, oe.name + "-left", {}, void 0, !0),
2184
+ x(y.$slots, oe.name, {}, () => {
2185
2185
  var me;
2186
2186
  return [
2187
2187
  (me = oe == null ? void 0 : oe.info) != null && me.hidden ? ke("", !0) : (m(), D(ee, Y({
@@ -2197,15 +2197,15 @@ const At = /* @__PURE__ */ Cl(sa), nt = (n, d) => {
2197
2197
  }, 1040, ["onClick"]))
2198
2198
  ];
2199
2199
  }, !0),
2200
- C(y.$slots, oe.name + "-right", {}, void 0, !0)
2200
+ x(y.$slots, oe.name + "-right", {}, void 0, !0)
2201
2201
  ], 64))), 256)),
2202
- C(y.$slots, "f-footer-right", {}, void 0, !0)
2202
+ x(y.$slots, "f-footer-right", {}, void 0, !0)
2203
2203
  ], 4)
2204
2204
  ], !0)
2205
2205
  ]);
2206
2206
  };
2207
2207
  }
2208
- }), Ft = /* @__PURE__ */ nt(Ca, [["__scopeId", "data-v-5a0fe2f9"]]), Ma = { class: "dialog-container" }, Sa = {
2208
+ }), Ft = /* @__PURE__ */ nt(xa, [["__scopeId", "data-v-5a0fe2f9"]]), Ma = { class: "dialog-container" }, Sa = {
2209
2209
  key: 1,
2210
2210
  style: { overflow: "hidden" }
2211
2211
  }, Ta = { style: { display: "flex", flex: "1", "margin-left": "10px" } }, Ea = /* @__PURE__ */ Object.assign({
@@ -2310,7 +2310,7 @@ const At = /* @__PURE__ */ Cl(sa), nt = (n, d) => {
2310
2310
  ref_key: "dialogExtend",
2311
2311
  ref: h,
2312
2312
  modelValue: v.value,
2313
- "onUpdate:modelValue": R[1] || (R[1] = (K) => v.value = K),
2313
+ "onUpdate:modelValue": R[1] || (R[1] = (J) => v.value = J),
2314
2314
  onOpen: c,
2315
2315
  onOpened: q,
2316
2316
  "lock-scroll": !0,
@@ -2321,19 +2321,19 @@ const At = /* @__PURE__ */ Cl(sa), nt = (n, d) => {
2321
2321
  fullscreen: t.value,
2322
2322
  "show-close": !1
2323
2323
  }), $e({
2324
- header: $(({ titleClass: K, closeIconClass: fe }) => [
2325
- C(le.$slots, "header", {
2326
- titleClass: K,
2324
+ header: $(({ titleClass: J, closeIconClass: fe }) => [
2325
+ x(le.$slots, "header", {
2326
+ titleClass: J,
2327
2327
  closeIconClass: fe
2328
2328
  }, () => [
2329
- J("div", {
2329
+ K("div", {
2330
2330
  class: "custom-header",
2331
2331
  style: Ue(l.headerStyle)
2332
2332
  }, [
2333
- C(le.$slots, "title", {}, () => [
2334
- J("span", Ta, Ie(n.title), 1)
2333
+ x(le.$slots, "title", {}, () => [
2334
+ K("span", Ta, Ie(n.title), 1)
2335
2335
  ], !0),
2336
- J("div", null, [
2336
+ K("div", null, [
2337
2337
  n.minimize ? (m(), D(F(Ht), {
2338
2338
  key: 0,
2339
2339
  class: "btn-icon",
@@ -2369,21 +2369,21 @@ const At = /* @__PURE__ */ Cl(sa), nt = (n, d) => {
2369
2369
  ], !0)
2370
2370
  ]),
2371
2371
  default: $(() => [
2372
- C(le.$slots, "default", {}, void 0, !0)
2372
+ x(le.$slots, "default", {}, void 0, !0)
2373
2373
  ]),
2374
2374
  _: 2
2375
2375
  }, [
2376
2376
  le.$slots.footer ? {
2377
2377
  name: "footer",
2378
2378
  fn: $(() => [
2379
- C(le.$slots, "footer", {}, void 0, !0)
2379
+ x(le.$slots, "footer", {}, void 0, !0)
2380
2380
  ]),
2381
2381
  key: "0"
2382
2382
  } : void 0,
2383
2383
  l.type === "drawer" ? {
2384
2384
  name: "trigger",
2385
2385
  fn: $(() => [
2386
- C(le.$slots, "trigger", {}, void 0, !0)
2386
+ x(le.$slots, "trigger", {}, void 0, !0)
2387
2387
  ]),
2388
2388
  key: "1"
2389
2389
  } : void 0
@@ -2424,8 +2424,8 @@ const At = /* @__PURE__ */ Cl(sa), nt = (n, d) => {
2424
2424
  }
2425
2425
  });
2426
2426
  };
2427
- return xt(() => {
2428
- const S = new xl(document.getElementById("excelSortEl"), {
2427
+ return Ct(() => {
2428
+ const S = new Cl(document.getElementById("excelSortEl"), {
2429
2429
  animation: 150,
2430
2430
  onEnd: () => {
2431
2431
  S.toArray();
@@ -2437,20 +2437,20 @@ const At = /* @__PURE__ */ Cl(sa), nt = (n, d) => {
2437
2437
  }), (S, v) => {
2438
2438
  const h = H("el-divider"), u = H("el-icon"), r = H("el-text"), c = H("el-checkbox"), q = H("el-button");
2439
2439
  return m(), z("div", Va, [
2440
- J("div", null, [
2441
- J("div", Da, [
2442
- J("div", Ia, [
2443
- J("a", {
2440
+ K("div", null, [
2441
+ K("div", Da, [
2442
+ K("div", Ia, [
2443
+ K("a", {
2444
2444
  onClick: o,
2445
2445
  style: { cursor: "pointer" }
2446
2446
  }, "全选"),
2447
2447
  de(h, { direction: "vertical" }),
2448
- J("a", {
2448
+ K("a", {
2449
2449
  onClick: t,
2450
2450
  style: { cursor: "pointer" }
2451
2451
  }, "全不选")
2452
2452
  ]),
2453
- J("div", null, [
2453
+ K("div", null, [
2454
2454
  de(r, {
2455
2455
  title: "拖动列标题可以改变表格列的生成顺序 !",
2456
2456
  type: "warning"
@@ -2468,8 +2468,8 @@ const At = /* @__PURE__ */ Cl(sa), nt = (n, d) => {
2468
2468
  })
2469
2469
  ])
2470
2470
  ]),
2471
- v[1] || (v[1] = J("div", { style: { margin: "1px 0" } }, null, -1)),
2472
- J("div", Oa, [
2471
+ v[1] || (v[1] = K("div", { style: { margin: "1px 0" } }, null, -1)),
2472
+ K("div", Oa, [
2473
2473
  (m(!0), z(se, null, W(s.value, (U) => (m(), D(c, {
2474
2474
  class: "check-box-hover",
2475
2475
  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" },
@@ -2480,7 +2480,7 @@ const At = /* @__PURE__ */ Cl(sa), nt = (n, d) => {
2480
2480
  title: U.label
2481
2481
  }, {
2482
2482
  default: $(() => [
2483
- J("span", {
2483
+ K("span", {
2484
2484
  textContent: Ie(U.label),
2485
2485
  style: { display: "block", "text-overflow": "ellipsis", width: "95px", overflow: "hidden" }
2486
2486
  }, null, 8, qa)
@@ -2489,7 +2489,7 @@ const At = /* @__PURE__ */ Cl(sa), nt = (n, d) => {
2489
2489
  }, 1032, ["data-id", "modelValue", "onUpdate:modelValue", "title"]))), 128))
2490
2490
  ])
2491
2491
  ]),
2492
- J("div", Aa, [
2492
+ K("div", Aa, [
2493
2493
  de(q, {
2494
2494
  type: "primary",
2495
2495
  onClick: f,
@@ -2505,8 +2505,8 @@ const At = /* @__PURE__ */ Cl(sa), nt = (n, d) => {
2505
2505
  ]);
2506
2506
  };
2507
2507
  }
2508
- }, Fa = /* @__PURE__ */ nt(Ya, [["__scopeId", "data-v-8d7383f9"]]), ja = "vue-gyc-ui", za = 1, xe = new ra(ja);
2509
- xe.version(za).stores({
2508
+ }, Fa = /* @__PURE__ */ nt(Ya, [["__scopeId", "data-v-8d7383f9"]]), ja = "vue-gyc-ui", za = 1, Ce = new ra(ja);
2509
+ Ce.version(za).stores({
2510
2510
  // 记录表格项设置信息
2511
2511
  tableWidths: "++id, [page+key], page, key,width",
2512
2512
  // 记录表格分页条数
@@ -2522,8 +2522,8 @@ const mt = (n, d) => {
2522
2522
  };
2523
2523
  async function Ot(n, d, e) {
2524
2524
  try {
2525
- const l = await xe.tableColsState.where({ page: n }).first();
2526
- l ? e === "add" ? l.keys.includes(d) || (l.keys.push(d), await xe.tableColsState.put(l)) : e === "del" ? (l.keys = l.keys.filter((s) => s !== d), await xe.tableColsState.put(l)) : e === "delAll" ? (l.keys = d, await xe.tableColsState.put(l)) : e === "selectAll" && await xe.tableColsState.where({ page: n }).delete() : e === "add" ? await xe.tableColsState.add({ page: n, keys: [d] }) : e === "delAll" && await xe.tableColsState.add({ page: n, keys: d });
2525
+ const l = await Ce.tableColsState.where({ page: n }).first();
2526
+ l ? e === "add" ? l.keys.includes(d) || (l.keys.push(d), await Ce.tableColsState.put(l)) : e === "del" ? (l.keys = l.keys.filter((s) => s !== d), await Ce.tableColsState.put(l)) : e === "delAll" ? (l.keys = d, await Ce.tableColsState.put(l)) : e === "selectAll" && await Ce.tableColsState.where({ page: n }).delete() : e === "add" ? await Ce.tableColsState.add({ page: n, keys: [d] }) : e === "delAll" && await Ce.tableColsState.add({ page: n, keys: d });
2527
2527
  } catch (l) {
2528
2528
  throw console.error(`处理表格列状态时出错 (page: ${n}, key: ${d}, state: ${e}):`, l), l;
2529
2529
  }
@@ -2531,8 +2531,8 @@ async function Ot(n, d, e) {
2531
2531
  async function Ua(n, d, e) {
2532
2532
  mt(n);
2533
2533
  try {
2534
- const l = await xe.tableWidths.where({ page: n, key: d }).first();
2535
- return l ? (await xe.tableWidths.put({ ...l, width: e }), "update success") : (await xe.tableWidths.add({ page: n, key: d, width: e }), "add success");
2534
+ const l = await Ce.tableWidths.where({ page: n, key: d }).first();
2535
+ return l ? (await Ce.tableWidths.put({ ...l, width: e }), "update success") : (await Ce.tableWidths.add({ page: n, key: d, width: e }), "add success");
2536
2536
  } catch (l) {
2537
2537
  throw console.error(`保存表格项设置信息时出错 (page: ${n}, key: ${d}):`, l), l;
2538
2538
  }
@@ -2540,7 +2540,7 @@ async function Ua(n, d, e) {
2540
2540
  async function La(n) {
2541
2541
  mt(n);
2542
2542
  try {
2543
- return await xe.tableWidths.where({ page: n }).toArray();
2543
+ return await Ce.tableWidths.where({ page: n }).toArray();
2544
2544
  } catch (d) {
2545
2545
  throw console.error(`获取表格项设置信息时出错 (page: ${n}):`, d), d;
2546
2546
  }
@@ -2548,7 +2548,7 @@ async function La(n) {
2548
2548
  async function Ha(n) {
2549
2549
  mt(n);
2550
2550
  try {
2551
- const d = await xe.tableColsState.where({ page: n }).toArray();
2551
+ const d = await Ce.tableColsState.where({ page: n }).toArray();
2552
2552
  return !d || d.length === 0 ? [] : d[0].keys;
2553
2553
  } catch (d) {
2554
2554
  throw console.error(`获取表格列状态时出错 (page: ${n}):`, d), d;
@@ -2557,12 +2557,12 @@ async function Ha(n) {
2557
2557
  async function Ra(n) {
2558
2558
  mt(n);
2559
2559
  try {
2560
- return await xe.transaction("rw", xe.tableWidths, xe.pageInfo, xe.sorts, xe.tableColsState, async () => {
2560
+ return await Ce.transaction("rw", Ce.tableWidths, Ce.pageInfo, Ce.sorts, Ce.tableColsState, async () => {
2561
2561
  await Promise.all([
2562
- xe.tableWidths.where({ page: n }).delete(),
2563
- xe.pageInfo.where({ page: n }).delete(),
2564
- xe.sorts.where({ page: n }).delete(),
2565
- xe.tableColsState.where({ page: n }).delete()
2562
+ Ce.tableWidths.where({ page: n }).delete(),
2563
+ Ce.pageInfo.where({ page: n }).delete(),
2564
+ Ce.sorts.where({ page: n }).delete(),
2565
+ Ce.tableColsState.where({ page: n }).delete()
2566
2566
  ]);
2567
2567
  });
2568
2568
  } catch (d) {
@@ -2572,8 +2572,8 @@ async function Ra(n) {
2572
2572
  async function Ba({ page: n, size: d }) {
2573
2573
  mt(n);
2574
2574
  try {
2575
- const e = await xe.pageInfo.where({ page: n }).first();
2576
- return e ? (await xe.pageInfo.put({ ...e, size: d }), "update success") : (await xe.pageInfo.add({ page: n, size: d }), "add success");
2575
+ const e = await Ce.pageInfo.where({ page: n }).first();
2576
+ return e ? (await Ce.pageInfo.put({ ...e, size: d }), "update success") : (await Ce.pageInfo.add({ page: n, size: d }), "add success");
2577
2577
  } catch (e) {
2578
2578
  throw console.error(`保存分页条数时出错 (page: ${n}):`, e), e;
2579
2579
  }
@@ -2581,7 +2581,7 @@ async function Ba({ page: n, size: d }) {
2581
2581
  async function Pa(n) {
2582
2582
  mt(n);
2583
2583
  try {
2584
- const d = await xe.pageInfo.where({ page: n }).first();
2584
+ const d = await Ce.pageInfo.where({ page: n }).first();
2585
2585
  return d == null ? void 0 : d.size;
2586
2586
  } catch (d) {
2587
2587
  throw console.error(`获取分页条数时出错 (page: ${n}):`, d), d;
@@ -2590,8 +2590,8 @@ async function Pa(n) {
2590
2590
  async function Na(n, d) {
2591
2591
  mt(n);
2592
2592
  try {
2593
- const e = await xe.sorts.where({ page: n }).first();
2594
- return e ? (await xe.sorts.put({ ...e, keys: d }), "update success") : (await xe.sorts.add({ page: n, keys: d }), "add success");
2593
+ const e = await Ce.sorts.where({ page: n }).first();
2594
+ return e ? (await Ce.sorts.put({ ...e, keys: d }), "update success") : (await Ce.sorts.add({ page: n, keys: d }), "add success");
2595
2595
  } catch (e) {
2596
2596
  throw console.error(`保存表格字段顺序时出错 (page: ${n}):`, e), e;
2597
2597
  }
@@ -2599,7 +2599,7 @@ async function Na(n, d) {
2599
2599
  async function Wa(n) {
2600
2600
  mt(n);
2601
2601
  try {
2602
- const d = await xe.sorts.where({ page: n }).first();
2602
+ const d = await Ce.sorts.where({ page: n }).first();
2603
2603
  return (d == null ? void 0 : d.keys) || [];
2604
2604
  } catch (d) {
2605
2605
  throw console.error(`获取表格字段顺序时出错 (page: ${n}):`, d), d;
@@ -2631,7 +2631,7 @@ const Ga = { style: { padding: "15px", "box-sizing": "border-box" } }, Xa = { st
2631
2631
  }, f = () => {
2632
2632
  const u = document.getElementById("cols");
2633
2633
  if (u) {
2634
- let r = xl.create(u, {
2634
+ let r = Cl.create(u, {
2635
2635
  animation: 150,
2636
2636
  filter: ".filtered",
2637
2637
  sort: !0,
@@ -2693,7 +2693,7 @@ const Ga = { style: { padding: "15px", "box-sizing": "border-box" } }, Xa = { st
2693
2693
  });
2694
2694
  });
2695
2695
  };
2696
- return xt(async () => {
2696
+ return Ct(async () => {
2697
2697
  s.value = Object.entries(o.value).filter(([, u]) => u.visible !== !1).filter(([, u]) => !["selection", "index", "expand", "control"].includes(u.type)).filter(([, u]) => u.type != "hidden").map(([u, r]) => ({
2698
2698
  label: r.label,
2699
2699
  value: u,
@@ -2705,13 +2705,13 @@ const Ga = { style: { padding: "15px", "box-sizing": "border-box" } }, Xa = { st
2705
2705
  }), (u, r) => {
2706
2706
  const c = H("el-divider"), q = H("el-icon"), U = H("el-text"), V = H("el-checkbox");
2707
2707
  return m(), z("div", Ga, [
2708
- J("div", Xa, [
2709
- J("div", Qa, [
2710
- J("a", { onClick: S }, "全选"),
2708
+ K("div", Xa, [
2709
+ K("div", Qa, [
2710
+ K("a", { onClick: S }, "全选"),
2711
2711
  de(c, { direction: "vertical" }),
2712
- J("a", { onClick: v }, "全不选"),
2712
+ K("a", { onClick: v }, "全不选"),
2713
2713
  de(c, { direction: "vertical" }),
2714
- J("a", { onClick: h }, "复位")
2714
+ K("a", { onClick: h }, "复位")
2715
2715
  ]),
2716
2716
  de(U, { type: "warning" }, {
2717
2717
  default: $(() => [
@@ -2726,8 +2726,8 @@ const Ga = { style: { padding: "15px", "box-sizing": "border-box" } }, Xa = { st
2726
2726
  _: 1
2727
2727
  })
2728
2728
  ]),
2729
- J("div", null, [
2730
- J("div", Za, [
2729
+ K("div", null, [
2730
+ K("div", Za, [
2731
2731
  (m(!0), z(se, null, W(F(s), (k) => (m(), D(V, {
2732
2732
  modelValue: k.showCol,
2733
2733
  "onUpdate:modelValue": (Q) => k.showCol = Q,
@@ -2741,7 +2741,7 @@ const Ga = { style: { padding: "15px", "box-sizing": "border-box" } }, Xa = { st
2741
2741
  key: k.value
2742
2742
  }, {
2743
2743
  default: $(() => [
2744
- J("span", {
2744
+ K("span", {
2745
2745
  textContent: Ie(k.label),
2746
2746
  style: { display: "block", "text-overflow": "ellipsis", width: "95px", overflow: "hidden" }
2747
2747
  }, null, 8, Ja)
@@ -2773,9 +2773,9 @@ const Ga = { style: { padding: "15px", "box-sizing": "border-box" } }, Xa = { st
2773
2773
  class: "g-cell-toopTip",
2774
2774
  style: Ue({ width: d.column.width + "px" })
2775
2775
  }, [
2776
- J("div", tr, [
2777
- s[0] || (s[0] = J("span", { class: "title-text" }, "内容", -1)),
2778
- J("span", {
2776
+ K("div", tr, [
2777
+ s[0] || (s[0] = K("span", { class: "title-text" }, "内容", -1)),
2778
+ K("span", {
2779
2779
  class: "copy-btn",
2780
2780
  onClick: e,
2781
2781
  title: "复制内容"
@@ -2783,7 +2783,7 @@ const Ga = { style: { padding: "15px", "box-sizing": "border-box" } }, Xa = { st
2783
2783
  de(F(Jl))
2784
2784
  ])
2785
2785
  ]),
2786
- J("div", lr, Ie(d.content), 1)
2786
+ K("div", lr, Ie(d.content), 1)
2787
2787
  ], 4));
2788
2788
  }
2789
2789
  }, rr = /* @__PURE__ */ nt(ar, [["__scopeId", "data-v-f28912da"]]), nr = /* @__PURE__ */ Object.assign({
@@ -2867,7 +2867,7 @@ const Ga = { style: { padding: "15px", "box-sizing": "border-box" } }, Xa = { st
2867
2867
  label: (G = d.m[k]) == null ? void 0 : G.label
2868
2868
  }, { ref_for: !0 }, { ...t.value, ...((le = f(k)) == null ? void 0 : le.item) || {} }, { key: k }), {
2869
2869
  label: $(() => [
2870
- C(r.$slots, `view-${k}-label`, {
2870
+ x(r.$slots, `view-${k}-label`, {
2871
2871
  row: d.row
2872
2872
  }, () => {
2873
2873
  var R;
@@ -2877,7 +2877,7 @@ const Ga = { style: { padding: "15px", "box-sizing": "border-box" } }, Xa = { st
2877
2877
  }, !0)
2878
2878
  ]),
2879
2879
  default: $(() => [
2880
- C(r.$slots, `view-${k}`, {
2880
+ x(r.$slots, `view-${k}`, {
2881
2881
  row: d.row
2882
2882
  }, () => [
2883
2883
  de(_t, {
@@ -2901,7 +2901,7 @@ const Ga = { style: { padding: "15px", "box-sizing": "border-box" } }, Xa = { st
2901
2901
  W(r.$slots, (k, Q, G) => ({
2902
2902
  name: Q,
2903
2903
  fn: $((le) => [
2904
- C(r.$slots, Q, { model: le }, void 0, !0)
2904
+ x(r.$slots, Q, { model: le }, void 0, !0)
2905
2905
  ])
2906
2906
  }))
2907
2907
  ]), 1040)
@@ -3050,7 +3050,7 @@ function ur(n) {
3050
3050
  };
3051
3051
  })();
3052
3052
  var ir = El.exports;
3053
- const dr = /* @__PURE__ */ Cl(ir), cr = { class: "g-table-container" }, fr = {
3053
+ const dr = /* @__PURE__ */ xl(ir), cr = { class: "g-table-container" }, fr = {
3054
3054
  key: 0,
3055
3055
  class: "table-query-container"
3056
3056
  }, vr = { class: "table-container" }, pr = ["innerHTML"], mr = /* @__PURE__ */ Object.assign({
@@ -3082,15 +3082,15 @@ const dr = /* @__PURE__ */ Cl(ir), cr = { class: "g-table-container" }, fr = {
3082
3082
  "node-init"
3083
3083
  ], ["update:modelValue", "update:selectedRows"]),
3084
3084
  setup(n, { expose: d, emit: e }) {
3085
- var lt, Xe, Je, Ke, et, Ct, Mt;
3085
+ var lt, Xe, Je, Ke, et, xt, Mt;
3086
3086
  const l = re(""), s = n, o = e, t = ot(n, "modelValue"), f = jt("options"), S = re({}), v = re(!0), h = Object.entries(t.value).filter(([a, i]) => (i == null ? void 0 : i.search) !== void 0).map(([a, i]) => {
3087
- var x;
3087
+ var C;
3088
3088
  let g;
3089
3089
  if (typeof i.search == "function") {
3090
3090
  const O = i.search(S.value);
3091
3091
  g = (O == null ? void 0 : O.value) ?? i.value;
3092
3092
  } else
3093
- g = ((x = i.search) == null ? void 0 : x.value) ?? i.value;
3093
+ g = ((C = i.search) == null ? void 0 : C.value) ?? i.value;
3094
3094
  return [a, g];
3095
3095
  });
3096
3096
  S.value = Object.fromEntries(h);
@@ -3140,9 +3140,9 @@ const dr = /* @__PURE__ */ Cl(ir), cr = { class: "g-table-container" }, fr = {
3140
3140
  o(
3141
3141
  "load",
3142
3142
  { currentPage: i, pageSize: g, ...S.value },
3143
- (x = [], O = 0, { fields: P = [], sums: N = {} } = {}) => {
3143
+ (C = [], O = 0, { fields: P = [], sums: N = {} } = {}) => {
3144
3144
  var we;
3145
- if (!Array.isArray(x)) {
3145
+ if (!Array.isArray(C)) {
3146
3146
  console.error("从 load 事件回调中接收到的数据不是数组格式。"), ft.error("数据加载失败,请检查数据格式。");
3147
3147
  return;
3148
3148
  }
@@ -3150,12 +3150,12 @@ const dr = /* @__PURE__ */ Cl(ir), cr = { class: "g-table-container" }, fr = {
3150
3150
  console.error("从 load 事件回调中接收到的 total 不是数字格式。"), ft.error("数据加载失败,请检查数据格式。");
3151
3151
  return;
3152
3152
  }
3153
- t.value.table.data = x, ((we = t.value.control) == null ? void 0 : we.add(k.value, t).inline) === !0 && t.value.table.data.unshift(k.value), t.value.table.page.total = O, V.value = P, U.value = N, E(), Q.value = Math.random().toString(36).substring(2);
3153
+ t.value.table.data = C, ((we = t.value.control) == null ? void 0 : we.add(k.value, t).inline) === !0 && t.value.table.data.unshift(k.value), t.value.table.page.total = O, V.value = P, U.value = N, E(), Q.value = Math.random().toString(36).substring(2);
3154
3154
  },
3155
3155
  k.value
3156
3156
  );
3157
- } catch (x) {
3158
- console.error("触发 load 事件时出现错误:", x), ft.error("数据加载时出现错误,请稍后重试。");
3157
+ } catch (C) {
3158
+ console.error("触发 load 事件时出现错误:", C), ft.error("数据加载时出现错误,请稍后重试。");
3159
3159
  }
3160
3160
  },
3161
3161
  onHeaderDragend: (a, i, g) => {
@@ -3189,7 +3189,7 @@ const dr = /* @__PURE__ */ Cl(ir), cr = { class: "g-table-container" }, fr = {
3189
3189
  },
3190
3190
  dblclickType: "edit",
3191
3191
  "summary-method": ({ columns: a, data: i }, g) => g,
3192
- onSortChange: ({ column: a, prop: i, order: g }, x) => {
3192
+ onSortChange: ({ column: a, prop: i, order: g }, C) => {
3193
3193
  },
3194
3194
  onSelectionChange: (a) => {
3195
3195
  le.value = a;
@@ -3202,7 +3202,7 @@ const dr = /* @__PURE__ */ Cl(ir), cr = { class: "g-table-container" }, fr = {
3202
3202
  q
3203
3203
  // 继承父组件的属性
3204
3204
  );
3205
- const K = {
3205
+ const J = {
3206
3206
  type: "control",
3207
3207
  label: "操作",
3208
3208
  align: "center",
@@ -3212,7 +3212,7 @@ const dr = /* @__PURE__ */ Cl(ir), cr = { class: "g-table-container" }, fr = {
3212
3212
  fixed: "right",
3213
3213
  style: { ...(Xe = (lt = t.value) == null ? void 0 : lt.control) == null ? void 0 : Xe.style },
3214
3214
  validate: async (a) => await !0,
3215
- view: (a, i, g, x) => ({
3215
+ view: (a, i, g, C) => ({
3216
3216
  label: "详情",
3217
3217
  text: !0,
3218
3218
  type: "success",
@@ -3222,10 +3222,10 @@ const dr = /* @__PURE__ */ Cl(ir), cr = { class: "g-table-container" }, fr = {
3222
3222
  icon: () => Se(ta),
3223
3223
  auth: () => {
3224
3224
  var O;
3225
- return !(((O = x == null ? void 0 : x.control) == null ? void 0 : O.add(a, x).inline) === !0 && g === 0);
3225
+ return !(((O = C == null ? void 0 : C.control) == null ? void 0 : O.add(a, C).inline) === !0 && g === 0);
3226
3226
  }
3227
3227
  }),
3228
- edit: (a, i, g, x) => ({
3228
+ edit: (a, i, g, C) => ({
3229
3229
  label: "编辑",
3230
3230
  text: !0,
3231
3231
  type: "primary",
@@ -3233,17 +3233,17 @@ const dr = /* @__PURE__ */ Cl(ir), cr = { class: "g-table-container" }, fr = {
3233
3233
  icon: () => Se(_l),
3234
3234
  auth: () => {
3235
3235
  var O;
3236
- return ((O = x == null ? void 0 : x.control) == null ? void 0 : O.add(a, x).inline) !== !0;
3236
+ return ((O = C == null ? void 0 : C.control) == null ? void 0 : O.add(a, C).inline) !== !0;
3237
3237
  }
3238
3238
  }),
3239
- delete: (a, i, g, x) => ({
3239
+ delete: (a, i, g, C) => ({
3240
3240
  text: !0,
3241
3241
  label: "删除",
3242
3242
  type: "danger",
3243
3243
  icon: () => Se(Wt),
3244
3244
  auth: () => {
3245
3245
  var O;
3246
- return !(((O = x.control) == null ? void 0 : O.add(a, x).inline) === !0 && g === 0);
3246
+ return !(((O = C.control) == null ? void 0 : O.add(a, C).inline) === !0 && g === 0);
3247
3247
  },
3248
3248
  dialog: {
3249
3249
  message: "此操作将永久删除该文件, 是否继续?",
@@ -3255,17 +3255,17 @@ const dr = /* @__PURE__ */ Cl(ir), cr = { class: "g-table-container" }, fr = {
3255
3255
  }
3256
3256
  }
3257
3257
  }),
3258
- save: (a, i, g, x) => {
3258
+ save: (a, i, g, C) => {
3259
3259
  var O, P;
3260
3260
  return {
3261
- label: ((O = x.control) == null ? void 0 : O.add(a, x).inline) !== !0 ? "保存" : g === 0 ? "新增" : "保存",
3261
+ label: ((O = C.control) == null ? void 0 : O.add(a, C).inline) !== !0 ? "保存" : g === 0 ? "新增" : "保存",
3262
3262
  text: !0,
3263
3263
  icon: () => Se(Rt),
3264
- type: ((P = x.control) == null ? void 0 : P.add(a, x).inline) !== !0 || g === 0 ? "primary" : "success",
3264
+ type: ((P = C.control) == null ? void 0 : P.add(a, C).inline) !== !0 || g === 0 ? "primary" : "success",
3265
3265
  sort: -1,
3266
3266
  auth: () => {
3267
3267
  var N;
3268
- return ((N = x.control) == null ? void 0 : N.add(a, x).inline) === !0;
3268
+ return ((N = C.control) == null ? void 0 : N.add(a, C).inline) === !0;
3269
3269
  }
3270
3270
  };
3271
3271
  },
@@ -3311,51 +3311,51 @@ const dr = /* @__PURE__ */ Cl(ir), cr = { class: "g-table-container" }, fr = {
3311
3311
  icon: () => Se(Kl),
3312
3312
  auth: () => !0
3313
3313
  }),
3314
- dropdown: (a, i, g, x) => ({
3314
+ dropdown: (a, i, g, C) => ({
3315
3315
  label: "编辑",
3316
3316
  operate: "edit",
3317
3317
  "split-button": !0,
3318
3318
  type: "primary",
3319
- auth: () => !(x.control.add(a, x).inline === !0 && g == 0),
3319
+ auth: () => !(C.control.add(a, C).inline === !0 && g == 0),
3320
3320
  onClick: () => {
3321
3321
  var P;
3322
- let O = (P = Te(a, i, g, x)) == null ? void 0 : P.operate;
3323
- O === "edit" ? w(a, i, g, x) : O === "delete" ? p(a, i, g, x) : O === "view" && T(a, i, g, x);
3322
+ let O = (P = Te(a, i, g, C)) == null ? void 0 : P.operate;
3323
+ O === "edit" ? w(a, i, g, C) : O === "delete" ? p(a, i, g, C) : O === "view" && T(a, i, g, C);
3324
3324
  },
3325
3325
  "button-props": { round: !0, plain: !0 }
3326
3326
  })
3327
3327
  };
3328
3328
  t.value.control = ze(
3329
- K,
3329
+ J,
3330
3330
  f == null ? void 0 : f.control,
3331
3331
  (Je = t.value) == null ? void 0 : Je.control
3332
3332
  );
3333
3333
  const fe = (a, i = !0) => {
3334
- const g = t.value.control[a], x = i ? (O, P, N, we) => {
3334
+ const g = t.value.control[a], C = i ? (O, P, N, we) => {
3335
3335
  var Pe, tt, ht;
3336
3336
  if (!O || !P || N == null)
3337
3337
  return console.warn(`merge${a.charAt(0).toUpperCase() + a.slice(1)}: 缺少必要的参数(row, column或index)`), {};
3338
- const Ee = ((Pe = K[a]) == null ? void 0 : Pe.call(K, O, P, N, we)) || {}, qe = ((ht = (tt = f == null ? void 0 : f.control) == null ? void 0 : tt[a]) == null ? void 0 : ht.call(tt, O, P, N, we)) || {}, je = (g == null ? void 0 : g(O, P, N, we)) || {};
3338
+ const Ee = ((Pe = J[a]) == null ? void 0 : Pe.call(J, O, P, N, we)) || {}, qe = ((ht = (tt = f == null ? void 0 : f.control) == null ? void 0 : tt[a]) == null ? void 0 : ht.call(tt, O, P, N, we)) || {}, je = (g == null ? void 0 : g(O, P, N, we)) || {};
3339
3339
  return ze(Ee, qe, je) || {};
3340
3340
  } : (O, P) => {
3341
3341
  var qe, je, Pe;
3342
- const N = ((qe = K[a]) == null ? void 0 : qe.call(K, O, P)) || {}, we = ((Pe = (je = f == null ? void 0 : f.control) == null ? void 0 : je[a]) == null ? void 0 : Pe.call(je, O, P)) || {}, Ee = (g == null ? void 0 : g(O, P)) || {};
3342
+ const N = ((qe = J[a]) == null ? void 0 : qe.call(J, O, P)) || {}, we = ((Pe = (je = f == null ? void 0 : f.control) == null ? void 0 : je[a]) == null ? void 0 : Pe.call(je, O, P)) || {}, Ee = (g == null ? void 0 : g(O, P)) || {};
3343
3343
  return ze(N, we, Ee) || {};
3344
3344
  };
3345
- t.value.control[a] = x;
3345
+ t.value.control[a] = C;
3346
3346
  };
3347
3347
  fe("edit"), fe("delete"), fe("view"), fe("save"), fe("add", !1), fe("download", !1), fe("setting", !1), fe("batch", !1), fe("toggleExpand", !1);
3348
- const Te = (a, i, g, x) => {
3348
+ const Te = (a, i, g, C) => {
3349
3349
  var we, Ee, qe, je, Pe, tt;
3350
3350
  if (!a || !i || g == null)
3351
3351
  return console.warn("mergeDropdown: 缺少必要的参数(row, column或index)"), {};
3352
- const O = ((we = K.dropdown) == null ? void 0 : we.call(K, a, i, g, x)) || {}, P = ((qe = (Ee = f == null ? void 0 : f.control) == null ? void 0 : Ee.dropdown) == null ? void 0 : qe.call(Ee, a, i, g, x)) || {}, N = ((tt = (Pe = (je = t.value) == null ? void 0 : je.control) == null ? void 0 : Pe.dropdown) == null ? void 0 : tt.call(Pe, a, i, g, x)) || {};
3352
+ const O = ((we = J.dropdown) == null ? void 0 : we.call(J, a, i, g, C)) || {}, P = ((qe = (Ee = f == null ? void 0 : f.control) == null ? void 0 : Ee.dropdown) == null ? void 0 : qe.call(Ee, a, i, g, C)) || {}, N = ((tt = (Pe = (je = t.value) == null ? void 0 : je.control) == null ? void 0 : Pe.dropdown) == null ? void 0 : tt.call(Pe, a, i, g, C)) || {};
3353
3353
  return ze(O, P, N) || {};
3354
3354
  }, Ve = {
3355
3355
  type: "hidden",
3356
3356
  "min-width": 100,
3357
3357
  align: "center",
3358
- formatter: (a, i, g, x) => g,
3358
+ formatter: (a, i, g, C) => g,
3359
3359
  "tooltip-formatter": ({ row: a, column: i, cellValue: g }) => Se(rr, { content: g, column: i })
3360
3360
  };
3361
3361
  t.value.tableColumns = ze(
@@ -3383,7 +3383,7 @@ const dr = /* @__PURE__ */ Cl(ir), cr = { class: "g-table-container" }, fr = {
3383
3383
  t.value.formItems = ze(
3384
3384
  ve,
3385
3385
  f == null ? void 0 : f.formItems,
3386
- (Ct = t == null ? void 0 : t.value) == null ? void 0 : Ct.formItems
3386
+ (xt = t == null ? void 0 : t.value) == null ? void 0 : xt.formItems
3387
3387
  );
3388
3388
  const L = {
3389
3389
  title: "编辑",
@@ -3402,7 +3402,7 @@ const dr = /* @__PURE__ */ Cl(ir), cr = { class: "g-table-container" }, fr = {
3402
3402
  f == null ? void 0 : f.dialog,
3403
3403
  (Mt = t.value) == null ? void 0 : Mt.dialog
3404
3404
  );
3405
- const Ce = (a, i) => {
3405
+ const xe = (a, i) => {
3406
3406
  let g = i;
3407
3407
  if (a.precision && !isNaN(parseFloat(i)) && (typeof a.precision == "number" ? g = parseFloat(g).toFixed(a.precision) : typeof a.precision == "object" && a.precision.num && (a.precision.pad ? g = parseFloat(g).toFixed(a.precision.num) : g = parseFloat(
3408
3408
  parseFloat(g).toFixed(a.precision.num)
@@ -3422,7 +3422,7 @@ const dr = /* @__PURE__ */ Cl(ir), cr = { class: "g-table-container" }, fr = {
3422
3422
  }, B = (a) => {
3423
3423
  S.value = a, t.value.table.load();
3424
3424
  }, A = async (a = k.value, i) => {
3425
- var g, x;
3425
+ var g, C;
3426
3426
  t.value.form.modalState = "add", l.value = "add";
3427
3427
  try {
3428
3428
  if (!await ((g = t.value.control) == null ? void 0 : g.validate("add", { row: k.value, m: i, node: s.node }))) return;
@@ -3430,43 +3430,43 @@ const dr = /* @__PURE__ */ Cl(ir), cr = { class: "g-table-container" }, fr = {
3430
3430
  console.error("验证失败:", O);
3431
3431
  return;
3432
3432
  }
3433
- (x = t.value.control.add(k.value, i)) != null && x.click ? t.value.control.add(k.value, i).click(k.value, i) : (t.value.control.add(k.value, i).inline === !0 ? (t.value.table.data.unshift({ ...k.value }), await rt(), o("open", "row-add", { row: k.value, node: s.node })) : (t.value.form.disabled = !1, t.value.dialog.mode = t.value.control.add(k.value, i).mode, t.value.dialog.title = t.value.control.add(k.value, i).title || t.value.control.add(k.value, i).label || "新增", Object.keys(k.value).forEach((O) => {
3433
+ (C = t.value.control.add(k.value, i)) != null && C.click ? t.value.control.add(k.value, i).click(k.value, i) : (t.value.control.add(k.value, i).inline === !0 ? (t.value.table.data.unshift({ ...k.value }), await rt(), o("open", "row-add", { row: k.value, node: s.node })) : (t.value.form.disabled = !1, t.value.dialog.mode = t.value.control.add(k.value, i).mode, t.value.dialog.title = t.value.control.add(k.value, i).title || t.value.control.add(k.value, i).label || "新增", Object.keys(k.value).forEach((O) => {
3434
3434
  t.value[O] && (t.value[O].value = k.value[O]);
3435
3435
  }), u.value = !0, await rt(), o("open", "add", { row: k.value, node: s.node, m: i }), Yt()), await rt(), o("node-init", { row: k.value, node: s.node, m: i }));
3436
3436
  }, y = () => {
3437
3437
  o("batch", le.value);
3438
3438
  }, _ = (a, i) => {
3439
- o("toggleExpand", a), console.log(t.value.table["default-expand-all"]), v.value = !1, t.value.table["default-expand-all"] = !t.value.table["default-expand-all"], rt(() => {
3439
+ o("toggleExpand", a), v.value = !1, t.value.table["default-expand-all"] = !t.value.table["default-expand-all"], rt(() => {
3440
3440
  v.value = !0;
3441
3441
  });
3442
- }, w = async (a, i, g, x) => {
3442
+ }, w = async (a, i, g, C) => {
3443
3443
  var O, P;
3444
3444
  t.value.form.modalState = "edit", l.value = "edit";
3445
3445
  try {
3446
- if (!await ((O = t.value.control) == null ? void 0 : O.validate("edit", { row: a, column: i, index: g, m: x }))) return;
3446
+ if (!await ((O = t.value.control) == null ? void 0 : O.validate("edit", { row: a, column: i, index: g, m: C }))) return;
3447
3447
  } catch (N) {
3448
3448
  console.error("验证失败:", N);
3449
3449
  return;
3450
3450
  }
3451
- (P = t.value.control.edit(a, i, g, x)) != null && P.click ? t.value.control.edit(a, i, g, x).click(a, i, g, x) : (t.value.form.disabled = !1, t.value.dialog.mode = t.value.control.edit(a, i, g, x).mode, t.value.dialog.title = t.value.control.edit(a, i, g, x).title || t.value.control.edit(a, i, g, x).label || "编辑", Object.keys(a).forEach((N) => {
3451
+ (P = t.value.control.edit(a, i, g, C)) != null && P.click ? t.value.control.edit(a, i, g, C).click(a, i, g, C) : (t.value.form.disabled = !1, t.value.dialog.mode = t.value.control.edit(a, i, g, C).mode, t.value.dialog.title = t.value.control.edit(a, i, g, C).title || t.value.control.edit(a, i, g, C).label || "编辑", Object.keys(a).forEach((N) => {
3452
3452
  t.value[N] && (t.value[N].value = a[N]);
3453
- }), u.value = !0, await rt(), o("open", "edit", { m: x, row: a, column: i, index: g }), Yt());
3454
- }, p = async (a, i, g, x) => {
3453
+ }), u.value = !0, await rt(), o("open", "edit", { m: C, row: a, column: i, index: g }), Yt());
3454
+ }, p = async (a, i, g, C) => {
3455
3455
  var O, P;
3456
3456
  try {
3457
- if (!await ((O = t.value.control) == null ? void 0 : O.validate("delete", { row: a, column: i, index: g, m: x }))) return;
3457
+ if (!await ((O = t.value.control) == null ? void 0 : O.validate("delete", { row: a, column: i, index: g, m: C }))) return;
3458
3458
  } catch (N) {
3459
3459
  console.error("验证失败:", N);
3460
3460
  return;
3461
3461
  }
3462
- if ((P = t.value.control.delete(a, i, g, x)) != null && P.click)
3463
- t.value.control.delete(a, i, g, x).click(a, i, g, x);
3462
+ if ((P = t.value.control.delete(a, i, g, C)) != null && P.click)
3463
+ t.value.control.delete(a, i, g, C).click(a, i, g, C);
3464
3464
  else {
3465
- let { message: N, title: we, options: Ee } = t.value.control.delete(a, i, g, x).dialog;
3465
+ let { message: N, title: we, options: Ee } = t.value.control.delete(a, i, g, C).dialog;
3466
3466
  pl.confirm(N, we, Ee).then(() => {
3467
3467
  o(
3468
3468
  "delete",
3469
- { row: a, column: i, index: g, m: x },
3469
+ { row: a, column: i, index: g, m: C },
3470
3470
  (qe = !0, je = !1) => {
3471
3471
  qe && (t.value.table.data.splice(g, 1), t.value.table.page.total--), je && t.value.table.load();
3472
3472
  }
@@ -3474,18 +3474,18 @@ const dr = /* @__PURE__ */ Cl(ir), cr = { class: "g-table-container" }, fr = {
3474
3474
  }).catch(() => {
3475
3475
  });
3476
3476
  }
3477
- }, T = async (a, i, g, x) => {
3477
+ }, T = async (a, i, g, C) => {
3478
3478
  var O, P, N, we;
3479
3479
  t.value.form.modalState = void 0, l.value = "view";
3480
3480
  try {
3481
- if (!await ((O = t.value.control) == null ? void 0 : O.validate("view", { row: a, column: i, index: g, m: x }))) return;
3481
+ if (!await ((O = t.value.control) == null ? void 0 : O.validate("view", { row: a, column: i, index: g, m: C }))) return;
3482
3482
  } catch (Ee) {
3483
3483
  console.error("验证失败:", Ee);
3484
3484
  return;
3485
3485
  }
3486
- (P = t.value.control.view(a, i, g, x)) != null && P.click ? t.value.control.view(a, i, g, x).click(a, i, g, x) : (t.value.form.disabled = !0, t.value.dialog.mode = t.value.control.view(a, i, g, x).mode, t.value.dialog.title = t.value.control.view(a, i, g, x).title || t.value.control.view(a, i, g, x).label || "详情", Object.keys(a).forEach((Ee) => {
3486
+ (P = t.value.control.view(a, i, g, C)) != null && P.click ? t.value.control.view(a, i, g, C).click(a, i, g, C) : (t.value.form.disabled = !0, t.value.dialog.mode = t.value.control.view(a, i, g, C).mode, t.value.dialog.title = t.value.control.view(a, i, g, C).title || t.value.control.view(a, i, g, C).label || "详情", Object.keys(a).forEach((Ee) => {
3487
3487
  t.value[Ee] && (t.value[Ee].value = a[Ee]);
3488
- }), ((N = t.value.control.view(a, i, g, x)) == null ? void 0 : N["view-mode"]) === "description" ? gt({
3488
+ }), ((N = t.value.control.view(a, i, g, C)) == null ? void 0 : N["view-mode"]) === "description" ? gt({
3489
3489
  ...t.value.dialog,
3490
3490
  type: t.value.dialog.mode,
3491
3491
  slots: {
@@ -3493,17 +3493,17 @@ const dr = /* @__PURE__ */ Cl(ir), cr = { class: "g-table-container" }, fr = {
3493
3493
  var Ee, qe, je;
3494
3494
  return Se(Tl, {
3495
3495
  row: a,
3496
- m: x,
3497
- container: ((Ee = t.value.control.view(a, i, g, x)) == null ? void 0 : Ee.container) || {}
3498
- }, ((je = (qe = t.value.control.view(a, i, g, x)) == null ? void 0 : qe.container) == null ? void 0 : je.slots) || {});
3496
+ m: C,
3497
+ container: ((Ee = t.value.control.view(a, i, g, C)) == null ? void 0 : Ee.container) || {}
3498
+ }, ((je = (qe = t.value.control.view(a, i, g, C)) == null ? void 0 : qe.container) == null ? void 0 : je.slots) || {});
3499
3499
  }
3500
3500
  }
3501
- }) : ((we = t.value.control.view(a, i, g, x)) == null ? void 0 : we["view-mode"]) === "readonly" && (u.value = !0, Yt()), await rt(), o("open", "view", { m: x, row: a, column: i, index: g }));
3501
+ }) : ((we = t.value.control.view(a, i, g, C)) == null ? void 0 : we["view-mode"]) === "readonly" && (u.value = !0, Yt()), await rt(), o("open", "view", { m: C, row: a, column: i, index: g }));
3502
3502
  }, M = (a, i = k.value) => {
3503
3503
  Object.assign(a, i);
3504
- }, I = (a, i, g, x) => {
3505
- const O = t.value.control.save(a, i, g, x);
3506
- O != null && O.click ? O.click(a, i, g, x) : o(
3504
+ }, I = (a, i, g, C) => {
3505
+ const O = t.value.control.save(a, i, g, C);
3506
+ O != null && O.click ? O.click(a, i, g, C) : o(
3507
3507
  "row-save",
3508
3508
  { row: a, column: i, index: g, data: t.value.table.data },
3509
3509
  async (P = !0, N = !0) => {
@@ -3519,14 +3519,14 @@ const dr = /* @__PURE__ */ Cl(ir), cr = { class: "g-table-container" }, fr = {
3519
3519
  }
3520
3520
  );
3521
3521
  }, ee = Or((a, i, g) => {
3522
- o("submit", t.value.form.modalState, a, i, (x) => {
3523
- x && (g === 1 && (u.value = !1), M(a), i.table.load());
3522
+ o("submit", t.value.form.modalState, a, i, (C) => {
3523
+ C && (g === 1 && (u.value = !1), M(a), i.table.load());
3524
3524
  });
3525
3525
  }, 300), ae = (a, i) => {
3526
3526
  M(a), o("reset", a, i);
3527
3527
  }, _e = (a, i, g) => {
3528
- var x;
3529
- if ((x = i.control.download(a, i)) != null && x.click)
3528
+ var C;
3529
+ if ((C = i.control.download(a, i)) != null && C.click)
3530
3530
  i.control.download(a, i).click(a, i, g);
3531
3531
  else {
3532
3532
  let O = gt(
@@ -3564,7 +3564,7 @@ const dr = /* @__PURE__ */ Cl(ir), cr = { class: "g-table-container" }, fr = {
3564
3564
  onSettingDragEnd: async () => {
3565
3565
  await Ae(G.value);
3566
3566
  },
3567
- onSelectAll: async (x) => {
3567
+ onSelectAll: async (C) => {
3568
3568
  await Ae(G.value);
3569
3569
  }
3570
3570
  })
@@ -3581,8 +3581,8 @@ const dr = /* @__PURE__ */ Cl(ir), cr = { class: "g-table-container" }, fr = {
3581
3581
  edit: w,
3582
3582
  delete: p,
3583
3583
  save: I
3584
- }, Fe = (a, i, g, x, O) => a.filter((P) => me[P]).map((P) => {
3585
- const N = oe == null ? void 0 : oe[P](i, g, x, O);
3584
+ }, Fe = (a, i, g, C, O) => a.filter((P) => me[P]).map((P) => {
3585
+ const N = oe == null ? void 0 : oe[P](i, g, C, O);
3586
3586
  return {
3587
3587
  name: `control-${P}`,
3588
3588
  attr: N,
@@ -3591,7 +3591,7 @@ const dr = /* @__PURE__ */ Cl(ir), cr = { class: "g-table-container" }, fr = {
3591
3591
  sort: (N == null ? void 0 : N.sort) || 0,
3592
3592
  groupName: (N == null ? void 0 : N.groupName) || "default"
3593
3593
  };
3594
- }).sort((P, N) => P.sort - N.sort), be = (a, i, g, x, O) => Fe(a, i, g, x, O).reduce((P, N) => {
3594
+ }).sort((P, N) => P.sort - N.sort), be = (a, i, g, C, O) => Fe(a, i, g, C, O).reduce((P, N) => {
3595
3595
  const we = N.groupName || "default";
3596
3596
  return P[we] || (P[we] = []), P[we].push(N), P;
3597
3597
  }, {}), ie = Be(() => Object.fromEntries(
@@ -3599,8 +3599,8 @@ const dr = /* @__PURE__ */ Cl(ir), cr = { class: "g-table-container" }, fr = {
3599
3599
  ([a, i]) => i.type !== "hidden" && i.hidden !== !0 && i.visible !== !1 && i.showCol !== !1
3600
3600
  ).map(([a, i]) => (i.sort = typeof i.sort == "number" ? i.sort : 0, [a, i])).sort((a, i) => a[1].sort - i[1].sort)
3601
3601
  )), Ge = re({}), j = (a, i) => {
3602
- const g = (x, O) => {
3603
- for (const P of x) {
3602
+ const g = (C, O) => {
3603
+ for (const P of C) {
3604
3604
  if (P.value == O) return P.label;
3605
3605
  if (P.children) {
3606
3606
  const N = g(P.children, O);
@@ -3610,9 +3610,9 @@ const dr = /* @__PURE__ */ Cl(ir), cr = { class: "g-table-container" }, fr = {
3610
3610
  return null;
3611
3611
  };
3612
3612
  if (a.getDicts) {
3613
- const x = i.toString();
3614
- return Ge.value[x] ? (a.options = Ge.value[x], a.formatter || (a.formatter = (O, P, N, we) => a.options && g(a.options, N) || N), Promise.resolve()) : a.getDicts(t.value.table.data).then((O) => {
3615
- Ge.value[x] = O, a.options = O, a.formatter || (a.formatter = (P, N, we, Ee) => a.options && g(a.options, we) || we);
3613
+ const C = i.toString();
3614
+ return Ge.value[C] ? (a.options = Ge.value[C], a.formatter || (a.formatter = (O, P, N, we) => a.options && g(a.options, N) || N), Promise.resolve()) : a.getDicts(t.value.table.data).then((O) => {
3615
+ Ge.value[C] = O, a.options = O, a.formatter || (a.formatter = (P, N, we, Ee) => a.options && g(a.options, we) || we);
3616
3616
  });
3617
3617
  }
3618
3618
  return Promise.resolve();
@@ -3625,9 +3625,9 @@ const dr = /* @__PURE__ */ Cl(ir), cr = { class: "g-table-container" }, fr = {
3625
3625
  } catch (a) {
3626
3626
  console.error("字典加载过程中发生错误:", a);
3627
3627
  }
3628
- }, X = (a, i, g, x) => {
3628
+ }, X = (a, i, g, C) => {
3629
3629
  var O, P;
3630
- return a.table ? (O = a.table(i, g, x)) != null && O.auth ? (P = a.table(i, g, x)) == null ? void 0 : P.auth(i, g, x) : !0 : !1;
3630
+ return a.table ? (O = a.table(i, g, C)) != null && O.auth ? (P = a.table(i, g, C)) == null ? void 0 : P.auth(i, g, C) : !0 : !1;
3631
3631
  }, Oe = () => {
3632
3632
  u.value = !1;
3633
3633
  };
@@ -3641,17 +3641,17 @@ const dr = /* @__PURE__ */ Cl(ir), cr = { class: "g-table-container" }, fr = {
3641
3641
  Wa(G.value),
3642
3642
  Ha(G.value)
3643
3643
  ]);
3644
- a && Array.isArray(a) && a.forEach((x) => {
3645
- const O = t.value[x.key];
3646
- O && (O.width = x.width);
3647
- }), i && Array.isArray(i) && i.forEach((x, O) => {
3648
- const P = t.value[x];
3644
+ a && Array.isArray(a) && a.forEach((C) => {
3645
+ const O = t.value[C.key];
3646
+ O && (O.width = C.width);
3647
+ }), i && Array.isArray(i) && i.forEach((C, O) => {
3648
+ const P = t.value[C];
3649
3649
  P && (P.sort = O);
3650
- }), g && Array.isArray(g) && g.length > 0 ? g.forEach((x) => {
3651
- const O = t.value[x];
3650
+ }), g && Array.isArray(g) && g.length > 0 ? g.forEach((C) => {
3651
+ const O = t.value[C];
3652
3652
  O && (O.showCol = !1);
3653
- }) : Object.keys(t.value).filter((x) => t.value[x].type !== "control").forEach((x) => {
3654
- t.value[x].showCol = !0;
3653
+ }) : Object.keys(t.value).filter((C) => t.value[C].type !== "control").forEach((C) => {
3654
+ t.value[C].showCol = !0;
3655
3655
  });
3656
3656
  } catch (a) {
3657
3657
  console.error("加载表格信息时出错:", a), Object.keys(t.value).filter((i) => t.value[i].type !== "control").forEach((i) => {
@@ -3661,7 +3661,7 @@ const dr = /* @__PURE__ */ Cl(ir), cr = { class: "g-table-container" }, fr = {
3661
3661
  }, Re = () => dr(Object.keys(t.value).toString()).toUpperCase().substring(8, 24);
3662
3662
  return Hl(() => {
3663
3663
  G.value = Re();
3664
- }), xt(async () => {
3664
+ }), Ct(async () => {
3665
3665
  try {
3666
3666
  c.value = Object.entries(t.value).filter(
3667
3667
  ([i, g]) => g.type !== "hidden" && g.type !== "control" && g.visible !== !1
@@ -3681,7 +3681,7 @@ const dr = /* @__PURE__ */ Cl(ir), cr = { class: "g-table-container" }, fr = {
3681
3681
  }
3682
3682
  }), d({ addRow: A, editRow: w, deleteRow: p, readForm: T, saveRowData: I, closeDialog: Oe, formData: k }), (a, i) => {
3683
3683
  var qe, je, Pe, tt, ht, St, Tt;
3684
- const g = H("el-button-group"), x = H("el-dropdown-item"), O = H("el-dropdown-menu"), P = H("el-dropdown"), N = H("el-table-column"), we = H("el-table"), Ee = H("el-pagination");
3684
+ const g = H("el-button-group"), C = H("el-dropdown-item"), O = H("el-dropdown-menu"), P = H("el-dropdown"), N = H("el-table-column"), we = H("el-table"), Ee = H("el-pagination");
3685
3685
  return m(), z(se, null, [
3686
3686
  u.value ? (m(), D(Qt, Y({
3687
3687
  key: 0,
@@ -3704,7 +3704,7 @@ const dr = /* @__PURE__ */ Cl(ir), cr = { class: "g-table-container" }, fr = {
3704
3704
  fn: $((He) => {
3705
3705
  var Qe;
3706
3706
  return [
3707
- C(a.$slots, ye, {
3707
+ x(a.$slots, ye, {
3708
3708
  model: He,
3709
3709
  form: (Qe = He == null ? void 0 : He.data) == null ? void 0 : Qe.form
3710
3710
  }, void 0, !0)
@@ -3718,7 +3718,7 @@ const dr = /* @__PURE__ */ Cl(ir), cr = { class: "g-table-container" }, fr = {
3718
3718
  a.$slots.header ? {
3719
3719
  name: "header",
3720
3720
  fn: $(({ titleClass: te, closeIconClass: ye }) => [
3721
- C(a.$slots, "header", {
3721
+ x(a.$slots, "header", {
3722
3722
  titleClass: te,
3723
3723
  closeIconClass: ye
3724
3724
  }, void 0, !0)
@@ -3728,28 +3728,28 @@ const dr = /* @__PURE__ */ Cl(ir), cr = { class: "g-table-container" }, fr = {
3728
3728
  a.$slots.title ? {
3729
3729
  name: "title",
3730
3730
  fn: $(() => [
3731
- C(a.$slots, "title", {}, void 0, !0)
3731
+ x(a.$slots, "title", {}, void 0, !0)
3732
3732
  ]),
3733
3733
  key: "1"
3734
3734
  } : void 0,
3735
3735
  a.$slots.footer ? {
3736
3736
  name: "footer",
3737
3737
  fn: $(() => [
3738
- C(a.$slots, "footer", {}, void 0, !0)
3738
+ x(a.$slots, "footer", {}, void 0, !0)
3739
3739
  ]),
3740
3740
  key: "2"
3741
3741
  } : void 0,
3742
3742
  ((je = (qe = t.value) == null ? void 0 : qe.dialog) == null ? void 0 : je.type) === "drawer" && a.$slots.trigger ? {
3743
3743
  name: "trigger",
3744
3744
  fn: $(() => [
3745
- C(a.$slots, "trigger", {}, void 0, !0)
3745
+ x(a.$slots, "trigger", {}, void 0, !0)
3746
3746
  ]),
3747
3747
  key: "3"
3748
3748
  } : void 0
3749
3749
  ]), 1040, ["modelValue", "type"])) : ke("", !0),
3750
- J("div", cr, [
3750
+ K("div", cr, [
3751
3751
  ((tt = (Pe = t.value) == null ? void 0 : Pe.query) == null ? void 0 : tt.hidden) != !0 ? (m(), z("div", fr, [
3752
- C(a.$slots, "query", {}, () => [
3752
+ x(a.$slots, "query", {}, () => [
3753
3753
  de(_a, {
3754
3754
  modelValue: t.value,
3755
3755
  "onUpdate:modelValue": i[3] || (i[3] = (te) => t.value = te),
@@ -3759,11 +3759,11 @@ const dr = /* @__PURE__ */ Cl(ir), cr = { class: "g-table-container" }, fr = {
3759
3759
  onReset: Me
3760
3760
  }, $e({
3761
3761
  "q-btns": $(() => [
3762
- C(a.$slots, "q-btns", {}, () => [
3762
+ x(a.$slots, "q-btns", {}, () => [
3763
3763
  (m(!0), z(se, null, W(be(["add", "toggleExpand", "batch", "download", "setting"], k.value, t.value), (te, ye) => (m(), z(se, null, [
3764
3764
  ye == "default" ? (m(!0), z(se, { key: 0 }, W(te, (ue) => (m(), z(se, null, [
3765
- C(a.$slots, ue.name + "-left", {}, void 0, !0),
3766
- (ue.name === "control-add" ? ue.attr.auth() && ue.attr.inline === !1 : ue.attr.auth()) ? C(a.$slots, ue.name, { key: 0 }, () => {
3765
+ x(a.$slots, ue.name + "-left", {}, void 0, !0),
3766
+ (ue.name === "control-add" ? ue.attr.auth() && ue.attr.inline === !1 : ue.attr.auth()) ? x(a.$slots, ue.name, { key: 0 }, () => {
3767
3767
  var He, Qe;
3768
3768
  return [
3769
3769
  ue.label ? (m(), D(F(Ne), Y({
@@ -3786,12 +3786,12 @@ const dr = /* @__PURE__ */ Cl(ir), cr = { class: "g-table-container" }, fr = {
3786
3786
  }), null, 16, ["title", "disabled", "onClick"]))
3787
3787
  ];
3788
3788
  }, !0) : ke("", !0),
3789
- C(a.$slots, ue.name + "-right", {}, void 0, !0)
3789
+ x(a.$slots, ue.name + "-right", {}, void 0, !0)
3790
3790
  ], 64))), 256)) : (m(), D(g, { key: 1 }, {
3791
3791
  default: $(() => [
3792
3792
  (m(!0), z(se, null, W(te, (ue) => (m(), z(se, null, [
3793
- C(a.$slots, ue.name + "-left", {}, void 0, !0),
3794
- (ue.name === "control-add" ? ue.attr.auth() && ue.attr.inline === !1 : ue.attr.auth()) ? C(a.$slots, ue.name, { key: 0 }, () => {
3793
+ x(a.$slots, ue.name + "-left", {}, void 0, !0),
3794
+ (ue.name === "control-add" ? ue.attr.auth() && ue.attr.inline === !1 : ue.attr.auth()) ? x(a.$slots, ue.name, { key: 0 }, () => {
3795
3795
  var He, Qe;
3796
3796
  return [
3797
3797
  ue.label ? (m(), D(F(Ne), Y({
@@ -3815,7 +3815,7 @@ const dr = /* @__PURE__ */ Cl(ir), cr = { class: "g-table-container" }, fr = {
3815
3815
  }), null, 16, ["title", "disabled", "onClick"]))
3816
3816
  ];
3817
3817
  }, !0) : ke("", !0),
3818
- C(a.$slots, ue.name + "-right", {}, void 0, !0)
3818
+ x(a.$slots, ue.name + "-right", {}, void 0, !0)
3819
3819
  ], 64))), 256))
3820
3820
  ]),
3821
3821
  _: 2
@@ -3828,7 +3828,7 @@ const dr = /* @__PURE__ */ Cl(ir), cr = { class: "g-table-container" }, fr = {
3828
3828
  W(a.$slots, (te, ye, ue) => ({
3829
3829
  name: ye,
3830
3830
  fn: $((He) => [
3831
- C(a.$slots, ye, {
3831
+ x(a.$slots, ye, {
3832
3832
  model: He,
3833
3833
  form: S.value
3834
3834
  }, void 0, !0)
@@ -3837,11 +3837,11 @@ const dr = /* @__PURE__ */ Cl(ir), cr = { class: "g-table-container" }, fr = {
3837
3837
  ]), 1032, ["modelValue", "info"])
3838
3838
  ], !0)
3839
3839
  ])) : ke("", !0),
3840
- C(a.$slots, "table-title", {
3840
+ x(a.$slots, "table-title", {
3841
3841
  model: t.value,
3842
3842
  queryInfo: S.value
3843
3843
  }, void 0, !0),
3844
- J("div", vr, [
3844
+ K("div", vr, [
3845
3845
  v.value ? (m(), D(we, Y({ key: 0 }, {
3846
3846
  ...a.$attrs,
3847
3847
  ...F(We)(
@@ -3856,13 +3856,13 @@ const dr = /* @__PURE__ */ Cl(ir), cr = { class: "g-table-container" }, fr = {
3856
3856
  })
3857
3857
  }), {
3858
3858
  append: $(() => [
3859
- C(a.$slots, "append", {}, void 0, !0)
3859
+ x(a.$slots, "append", {}, void 0, !0)
3860
3860
  ]),
3861
3861
  empty: $(() => [
3862
- C(a.$slots, "empty", {}, void 0, !0)
3862
+ x(a.$slots, "empty", {}, void 0, !0)
3863
3863
  ]),
3864
3864
  default: $(() => [
3865
- C(a.$slots, "default", {}, () => [
3865
+ x(a.$slots, "default", {}, () => [
3866
3866
  (m(!0), z(se, null, W(ie.value, (te, ye) => {
3867
3867
  var ue, He, Qe, ut;
3868
3868
  return m(), D(N, Y({
@@ -3875,27 +3875,27 @@ const dr = /* @__PURE__ */ Cl(ir), cr = { class: "g-table-container" }, fr = {
3875
3875
  ...F(We)(te, (ne) => r.includes(ne))
3876
3876
  }), $e({
3877
3877
  header: $(({ column: ne, $index: ce }) => [
3878
- ye == "control" ? C(a.$slots, `${ye}-header`, {
3878
+ ye == "control" ? x(a.$slots, `${ye}-header`, {
3879
3879
  key: 0,
3880
3880
  column: ne,
3881
3881
  index: ce
3882
3882
  }, () => [
3883
- J("span", null, Ie(ne.label), 1)
3884
- ], !0) : C(a.$slots, `${ye}-header`, {
3883
+ K("span", null, Ie(ne.label), 1)
3884
+ ], !0) : x(a.$slots, `${ye}-header`, {
3885
3885
  key: 1,
3886
3886
  column: ne,
3887
3887
  index: ce
3888
3888
  }, void 0, !0)
3889
3889
  ]),
3890
3890
  "filter-icon": $((ne) => [
3891
- C(a.$slots, `${ye}-filter-icon`, { data: ne }, void 0, !0)
3891
+ x(a.$slots, `${ye}-filter-icon`, { data: ne }, void 0, !0)
3892
3892
  ]),
3893
3893
  _: 2
3894
3894
  }, [
3895
3895
  te.type === "expand" ? {
3896
3896
  name: "default",
3897
3897
  fn: $(({ row: ne, column: ce, $index: pe }) => [
3898
- C(a.$slots, `${ye}`, {
3898
+ x(a.$slots, `${ye}`, {
3899
3899
  row: ne,
3900
3900
  column: ce,
3901
3901
  index: pe
@@ -3907,12 +3907,12 @@ const dr = /* @__PURE__ */ Cl(ir), cr = { class: "g-table-container" }, fr = {
3907
3907
  fn: $(({ row: ne, column: ce, $index: pe }) => {
3908
3908
  var vt, pt;
3909
3909
  return [
3910
- J("div", {
3910
+ K("div", {
3911
3911
  class: yl(["control", (vt = t.value.control) == null ? void 0 : vt.class]),
3912
3912
  style: Ue((pt = t.value.control) == null ? void 0 : pt.style)
3913
3913
  }, [
3914
- C(a.$slots, "control", {}, () => [
3915
- C(a.$slots, "control-left", {
3914
+ x(a.$slots, "control", {}, () => [
3915
+ x(a.$slots, "control-left", {
3916
3916
  row: ne,
3917
3917
  column: ce,
3918
3918
  index: pe
@@ -3921,12 +3921,12 @@ const dr = /* @__PURE__ */ Cl(ir), cr = { class: "g-table-container" }, fr = {
3921
3921
  var bt;
3922
3922
  return m(), z(se, null, [
3923
3923
  dt == "default" ? (m(!0), z(se, { key: 0 }, W(it, (Z) => (m(), z(se, null, [
3924
- C(a.$slots, Z.name + "-left", {
3924
+ x(a.$slots, Z.name + "-left", {
3925
3925
  row: ne,
3926
3926
  column: ce,
3927
3927
  index: pe
3928
3928
  }, void 0, !0),
3929
- Z.attr.auth() ? C(a.$slots, Z.name, {
3929
+ Z.attr.auth() ? x(a.$slots, Z.name, {
3930
3930
  key: 0,
3931
3931
  row: ne,
3932
3932
  column: ce,
@@ -3949,7 +3949,7 @@ const dr = /* @__PURE__ */ Cl(ir), cr = { class: "g-table-container" }, fr = {
3949
3949
  onClick: (ct) => Z.func(ne, ce, pe, t.value)
3950
3950
  }), null, 16, ["title", "onClick"]))
3951
3951
  ], !0) : ke("", !0),
3952
- C(a.$slots, Z.name + "-right", {
3952
+ x(a.$slots, Z.name + "-right", {
3953
3953
  row: ne,
3954
3954
  column: ce,
3955
3955
  index: pe
@@ -3964,13 +3964,13 @@ const dr = /* @__PURE__ */ Cl(ir), cr = { class: "g-table-container" }, fr = {
3964
3964
  (m(!0), z(se, null, W(it, (Z) => {
3965
3965
  var ct, wt, $t;
3966
3966
  return m(), z(se, null, [
3967
- a.$slots[Z.name + "-left"] ? C(a.$slots, Z.name + "-left", {
3967
+ a.$slots[Z.name + "-left"] ? x(a.$slots, Z.name + "-left", {
3968
3968
  key: 0,
3969
3969
  row: ne,
3970
3970
  column: ce,
3971
3971
  index: pe
3972
3972
  }, void 0, !0) : ke("", !0),
3973
- Z.attr.auth() ? (m(), D(x, Y({
3973
+ Z.attr.auth() ? (m(), D(C, Y({
3974
3974
  key: 1,
3975
3975
  ref_for: !0
3976
3976
  }, {
@@ -3979,7 +3979,7 @@ const dr = /* @__PURE__ */ Cl(ir), cr = { class: "g-table-container" }, fr = {
3979
3979
  disabled: ($t = Z == null ? void 0 : Z.attr) == null ? void 0 : $t.disabled
3980
3980
  }), {
3981
3981
  default: $(() => [
3982
- C(a.$slots, Z.name, {
3982
+ x(a.$slots, Z.name, {
3983
3983
  row: ne,
3984
3984
  column: ce,
3985
3985
  index: pe
@@ -4004,7 +4004,7 @@ const dr = /* @__PURE__ */ Cl(ir), cr = { class: "g-table-container" }, fr = {
4004
4004
  ]),
4005
4005
  _: 2
4006
4006
  }, 1040)) : ke("", !0),
4007
- a.$slots[Z.name + "-right"] ? C(a.$slots, Z.name + "-right", {
4007
+ a.$slots[Z.name + "-right"] ? x(a.$slots, Z.name + "-right", {
4008
4008
  key: 2,
4009
4009
  row: ne,
4010
4010
  column: ce,
@@ -4026,12 +4026,12 @@ const dr = /* @__PURE__ */ Cl(ir), cr = { class: "g-table-container" }, fr = {
4026
4026
  }, 1040)) : (m(), D(g, { key: 2 }, {
4027
4027
  default: $(() => [
4028
4028
  (m(!0), z(se, null, W(it, (Z) => (m(), z(se, null, [
4029
- C(a.$slots, Z.name + "-left", {
4029
+ x(a.$slots, Z.name + "-left", {
4030
4030
  row: ne,
4031
4031
  column: ce,
4032
4032
  index: pe
4033
4033
  }, void 0, !0),
4034
- Z.attr.auth() ? C(a.$slots, Z.name, {
4034
+ Z.attr.auth() ? x(a.$slots, Z.name, {
4035
4035
  key: 0,
4036
4036
  row: ne,
4037
4037
  column: ce,
@@ -4054,7 +4054,7 @@ const dr = /* @__PURE__ */ Cl(ir), cr = { class: "g-table-container" }, fr = {
4054
4054
  onClick: (ct) => Z.func(ne, ce, pe, t.value)
4055
4055
  }), null, 16, ["title", "onClick"]))
4056
4056
  ], !0) : ke("", !0),
4057
- C(a.$slots, Z.name + "-right", {
4057
+ x(a.$slots, Z.name + "-right", {
4058
4058
  row: ne,
4059
4059
  column: ce,
4060
4060
  index: pe
@@ -4065,7 +4065,7 @@ const dr = /* @__PURE__ */ Cl(ir), cr = { class: "g-table-container" }, fr = {
4065
4065
  }, 1024))
4066
4066
  ], 64);
4067
4067
  }), 256)),
4068
- C(a.$slots, "control-right", {
4068
+ x(a.$slots, "control-right", {
4069
4069
  row: ne,
4070
4070
  column: ce,
4071
4071
  index: pe
@@ -4078,7 +4078,7 @@ const dr = /* @__PURE__ */ Cl(ir), cr = { class: "g-table-container" }, fr = {
4078
4078
  } : te.type != "selection" && te.type != "index" && ((ut = (Qe = t.value) == null ? void 0 : Qe.table) == null ? void 0 : ut["row-key"]) != ye ? {
4079
4079
  name: "default",
4080
4080
  fn: $(({ row: ne, column: ce, $index: pe }) => [
4081
- X(te, ne, ce, pe) && pe != -1 ? C(a.$slots, `${ye}`, {
4081
+ X(te, ne, ce, pe) && pe != -1 ? x(a.$slots, `${ye}`, {
4082
4082
  key: 0,
4083
4083
  row: ne,
4084
4084
  column: ce,
@@ -4101,7 +4101,7 @@ const dr = /* @__PURE__ */ Cl(ir), cr = { class: "g-table-container" }, fr = {
4101
4101
  W(a.$slots, (pt, it) => ({
4102
4102
  name: it,
4103
4103
  fn: $((dt) => [
4104
- C(a.$slots, it, {
4104
+ x(a.$slots, it, {
4105
4105
  data: dt,
4106
4106
  item: te,
4107
4107
  model: t.value
@@ -4110,15 +4110,15 @@ const dr = /* @__PURE__ */ Cl(ir), cr = { class: "g-table-container" }, fr = {
4110
4110
  }))
4111
4111
  ]), 1032, ["modelValue", "onUpdate:modelValue", "item", "ctrlKey", "ctrlType", "model", "formInfo"]))
4112
4112
  ];
4113
- }, !0) : C(a.$slots, `${ye}`, {
4113
+ }, !0) : x(a.$slots, `${ye}`, {
4114
4114
  key: 1,
4115
4115
  row: ne,
4116
4116
  column: ce,
4117
4117
  index: pe
4118
4118
  }, () => [
4119
- J("div", {
4119
+ K("div", {
4120
4120
  style: Ue([{ width: "100%", "text-overflow": "ellipsis", overflow: "hidden" }, te == null ? void 0 : te.style]),
4121
- innerHTML: Ce(
4121
+ innerHTML: xe(
4122
4122
  te,
4123
4123
  typeof ce.formatter == "function" ? ce.formatter(ne, ce, ne[ye], pe) : ne[ye]
4124
4124
  )
@@ -4133,7 +4133,7 @@ const dr = /* @__PURE__ */ Cl(ir), cr = { class: "g-table-container" }, fr = {
4133
4133
  ]),
4134
4134
  _: 3
4135
4135
  }, 16, ["summary-method"])) : ke("", !0),
4136
- (Tt = (St = (ht = t.value) == null ? void 0 : ht.table) == null ? void 0 : St.page) != null && Tt.hidden ? ke("", !0) : C(a.$slots, "page", { key: 1 }, () => [
4136
+ (Tt = (St = (ht = t.value) == null ? void 0 : ht.table) == null ? void 0 : St.page) != null && Tt.hidden ? ke("", !0) : x(a.$slots, "page", { key: 1 }, () => [
4137
4137
  de(Ee, Y({
4138
4138
  "page-size": t.value.table.page.pageSize,
4139
4139
  "onUpdate:pageSize": i[6] || (i[6] = (te) => t.value.table.page.pageSize = te),
@@ -4141,7 +4141,7 @@ const dr = /* @__PURE__ */ Cl(ir), cr = { class: "g-table-container" }, fr = {
4141
4141
  "onUpdate:currentPage": i[7] || (i[7] = (te) => t.value.table.page.currentPage = te)
4142
4142
  }, t.value.table.page), {
4143
4143
  default: $(() => [
4144
- C(a.$slots, "table-page", {}, void 0, !0)
4144
+ x(a.$slots, "table-page", {}, void 0, !0)
4145
4145
  ]),
4146
4146
  _: 3
4147
4147
  }, 16, ["page-size", "current-page"])
@@ -4151,7 +4151,7 @@ const dr = /* @__PURE__ */ Cl(ir), cr = { class: "g-table-container" }, fr = {
4151
4151
  ], 64);
4152
4152
  };
4153
4153
  }
4154
- }), hr = /* @__PURE__ */ nt(mr, [["__scopeId", "data-v-eed636b2"]]), yr = {
4154
+ }), hr = /* @__PURE__ */ nt(mr, [["__scopeId", "data-v-2b74b268"]]), yr = {
4155
4155
  __name: "g-context-menu",
4156
4156
  props: {
4157
4157
  nodeInfo: {
@@ -4197,7 +4197,7 @@ const dr = /* @__PURE__ */ Cl(ir), cr = { class: "g-table-container" }, fr = {
4197
4197
  const { data: r, node: c } = e.nodeInfo;
4198
4198
  switch (u) {
4199
4199
  case "add":
4200
- e.processFormData ? S.value = await e.processFormData({ cmd: u, data: f.value, node: c }) : S.value = f.value, console.log(S.value);
4200
+ e.processFormData ? S.value = await e.processFormData({ cmd: u, data: f.value, node: c }) : S.value = f.value;
4201
4201
  const V = gt({
4202
4202
  title: ((q = o == null ? void 0 : o.add) == null ? void 0 : q.label) || "新增子节点",
4203
4203
  width: 450,
@@ -4263,7 +4263,7 @@ const dr = /* @__PURE__ */ Cl(ir), cr = { class: "g-table-container" }, fr = {
4263
4263
  (m(!0), z(se, null, W(t.value, (V, k) => {
4264
4264
  var Q;
4265
4265
  return m(), z(se, { key: k }, [
4266
- C(u.$slots, `menu-${k}-left`, {
4266
+ x(u.$slots, `menu-${k}-left`, {
4267
4267
  nodeInfo: e.nodeInfo
4268
4268
  }),
4269
4269
  de(q, {
@@ -4281,7 +4281,7 @@ const dr = /* @__PURE__ */ Cl(ir), cr = { class: "g-table-container" }, fr = {
4281
4281
  ]),
4282
4282
  _: 2
4283
4283
  }, 1032, ["onClick", "divided"]),
4284
- C(u.$slots, `menu-${k}-right`, {
4284
+ x(u.$slots, `menu-${k}-right`, {
4285
4285
  data: ((Q = e.nodeInfo) == null ? void 0 : Q.data) || {}
4286
4286
  })
4287
4287
  ], 64);
@@ -4305,57 +4305,57 @@ const dr = /* @__PURE__ */ Cl(ir), cr = { class: "g-table-container" }, fr = {
4305
4305
  var k, Q, G, le;
4306
4306
  const e = d, l = ot(n, "modelValue"), s = re(!0), o = zt(), t = re(
4307
4307
  typeof ((k = o == null ? void 0 : o.tree) == null ? void 0 : k.width) == "number" ? `${o.tree.width}px` : ((Q = o == null ? void 0 : o.tree) == null ? void 0 : Q.width) || "180px"
4308
- ), f = re(((G = o == null ? void 0 : o.tree) == null ? void 0 : G.search) === void 0 ? !0 : (le = o == null ? void 0 : o.tree) == null ? void 0 : le.search), S = re({}), v = re(""), h = re(null), u = re({}), r = (R, K) => {
4308
+ ), f = re(((G = o == null ? void 0 : o.tree) == null ? void 0 : G.search) === void 0 ? !0 : (le = o == null ? void 0 : o.tree) == null ? void 0 : le.search), S = re({}), v = re(""), h = re(null), u = re({}), r = (R, J) => {
4309
4309
  var Te, Ve;
4310
4310
  if (!R) return !0;
4311
4311
  const fe = ((Ve = (Te = o == null ? void 0 : o.tree) == null ? void 0 : Te.props) == null ? void 0 : Ve.label) || "label";
4312
- return K[fe].includes(R);
4313
- }, c = (R, K) => {
4314
- e("load", S.value, R, K);
4315
- }, q = (R) => {
4316
- S.value = R, l.value.table.load();
4317
- }, U = async (R, K, fe) => {
4318
- R.preventDefault(), u.value = { data: K, node: fe };
4319
- }, V = async (R, { data: K, node: fe, m: Te }, Ve) => {
4312
+ return J[fe].includes(R);
4313
+ }, c = (R, J) => {
4314
+ e("load", S.value, R, J);
4315
+ }, q = (R, J) => {
4316
+ S.value = { data: R, node: J }, console.log("nodeClick", S.value), l.value.table.load();
4317
+ }, U = async (R, J, fe) => {
4318
+ R.preventDefault(), u.value = { data: J, node: fe };
4319
+ }, V = async (R, { data: J, node: fe, m: Te }, Ve) => {
4320
4320
  var ve;
4321
4321
  if (R === "add") {
4322
- const L = await new Promise((Ce) => {
4323
- e("menu-command", R, { data: K, node: fe, m: Te }, (Me) => {
4324
- Ce(Me);
4322
+ const L = await new Promise((xe) => {
4323
+ e("menu-command", R, { data: J, node: fe, m: Te }, (Me) => {
4324
+ xe(Me);
4325
4325
  });
4326
4326
  });
4327
- L && ((ve = h.value) == null || ve.append(K, fe), fe.expanded = !0, Ve(L));
4327
+ L && ((ve = h.value) == null || ve.append(J, fe), fe.expanded = !0, Ve(L));
4328
4328
  } else if (R === "refresh") {
4329
- const L = await new Promise((Ce) => {
4330
- e("menu-command", R, { data: K, node: fe }, (Me) => {
4331
- Ce(Me);
4329
+ const L = await new Promise((xe) => {
4330
+ e("menu-command", R, { data: J, node: fe }, (Me) => {
4331
+ xe(Me);
4332
4332
  });
4333
4333
  });
4334
4334
  L ? typeof L == "function" && L() : (s.value = !1, setTimeout(() => {
4335
4335
  s.value = !0;
4336
4336
  }, 0));
4337
4337
  } else
4338
- e("menu-command", R, { data: K, node: fe, m: Te }, Ve);
4338
+ e("menu-command", R, { data: J, node: fe, m: Te }, Ve);
4339
4339
  };
4340
4340
  return gl(v, (R) => {
4341
4341
  h.value.filter(R);
4342
- }), (R, K) => {
4343
- var L, Ce;
4342
+ }), (R, J) => {
4343
+ var L, xe;
4344
4344
  const fe = H("el-input"), Te = H("el-dropdown"), Ve = H("el-tree"), ve = H("g-table");
4345
4345
  return m(), z("div", gr, [
4346
- J("div", {
4346
+ K("div", {
4347
4347
  class: "g-tree-left",
4348
4348
  style: Ue({ width: t.value })
4349
4349
  }, [
4350
4350
  f.value ? (m(), D(fe, Y({
4351
4351
  key: 0,
4352
4352
  modelValue: v.value,
4353
- "onUpdate:modelValue": K[0] || (K[0] = (Me) => v.value = Me),
4353
+ "onUpdate:modelValue": J[0] || (J[0] = (Me) => v.value = Me),
4354
4354
  style: { width: "100%", "box-sizing": "border-box", "margin-bottom": "10px" },
4355
4355
  placeholder: "输入节点查询",
4356
4356
  clearable: ""
4357
- }, (Ce = (L = F(o)) == null ? void 0 : L.tree) == null ? void 0 : Ce.search), null, 16, ["modelValue"])) : ke("", !0),
4358
- J("div", br, [
4357
+ }, (xe = (L = F(o)) == null ? void 0 : L.tree) == null ? void 0 : xe.search), null, 16, ["modelValue"])) : ke("", !0),
4358
+ K("div", br, [
4359
4359
  s.value ? (m(), D(Ve, Y({
4360
4360
  key: 0,
4361
4361
  style: { width: t.value },
@@ -4367,7 +4367,7 @@ const dr = /* @__PURE__ */ Cl(ir), cr = { class: "g-table-container" }, fr = {
4367
4367
  onNodeContextmenu: U
4368
4368
  }, R.$attrs.tree), $e({
4369
4369
  default: $(({ node: Me, data: B }) => [
4370
- C(R.$slots, "tree", {
4370
+ x(R.$slots, "tree", {
4371
4371
  node: Me,
4372
4372
  data: B
4373
4373
  }, () => [
@@ -4388,7 +4388,7 @@ const dr = /* @__PURE__ */ Cl(ir), cr = { class: "g-table-container" }, fr = {
4388
4388
  W(R.$slots, (p, T, M) => ({
4389
4389
  name: T,
4390
4390
  fn: $((I) => [
4391
- C(R.$slots, T, {
4391
+ x(R.$slots, T, {
4392
4392
  data: (I == null ? void 0 : I.data) || {}
4393
4393
  }, void 0, !0)
4394
4394
  ])
@@ -4397,9 +4397,9 @@ const dr = /* @__PURE__ */ Cl(ir), cr = { class: "g-table-container" }, fr = {
4397
4397
  ];
4398
4398
  }),
4399
4399
  default: $(() => [
4400
- J("span", wr, [
4401
- J("span", null, Ie(Me.label), 1),
4402
- K[2] || (K[2] = J("i", { class: "el-icon-arrow-down el-icon--right" }, null, -1))
4400
+ K("span", wr, [
4401
+ K("span", null, Ie(Me.label), 1),
4402
+ J[2] || (J[2] = K("i", { class: "el-icon-arrow-down el-icon--right" }, null, -1))
4403
4403
  ])
4404
4404
  ]),
4405
4405
  _: 2
@@ -4411,16 +4411,16 @@ const dr = /* @__PURE__ */ Cl(ir), cr = { class: "g-table-container" }, fr = {
4411
4411
  W(R.$slots, (Me, B, A) => ({
4412
4412
  name: B,
4413
4413
  fn: $((y) => [
4414
- C(R.$slots, B, { data: y }, void 0, !0)
4414
+ x(R.$slots, B, { data: y }, void 0, !0)
4415
4415
  ])
4416
4416
  }))
4417
4417
  ]), 1040, ["style"])) : ke("", !0)
4418
4418
  ])
4419
4419
  ], 4),
4420
- J("div", $r, [
4420
+ K("div", $r, [
4421
4421
  de(ve, Y({
4422
4422
  modelValue: l.value,
4423
- "onUpdate:modelValue": K[1] || (K[1] = (Me) => l.value = Me)
4423
+ "onUpdate:modelValue": J[1] || (J[1] = (Me) => l.value = Me)
4424
4424
  }, F(We)(R.$attrs, (Me) => Me !== "tree"), {
4425
4425
  onLoad: c,
4426
4426
  node: S.value
@@ -4428,7 +4428,7 @@ const dr = /* @__PURE__ */ Cl(ir), cr = { class: "g-table-container" }, fr = {
4428
4428
  W(R.$slots, (Me, B, A) => ({
4429
4429
  name: B,
4430
4430
  fn: $((y) => [
4431
- C(R.$slots, B, { data: y }, void 0, !0)
4431
+ x(R.$slots, B, { data: y }, void 0, !0)
4432
4432
  ])
4433
4433
  }))
4434
4434
  ]), 1040, ["modelValue", "node"])
@@ -4436,10 +4436,10 @@ const dr = /* @__PURE__ */ Cl(ir), cr = { class: "g-table-container" }, fr = {
4436
4436
  ]);
4437
4437
  };
4438
4438
  }
4439
- }), _r = /* @__PURE__ */ nt(kr, [["__scopeId", "data-v-3960b6b6"]]), xr = {
4439
+ }), _r = /* @__PURE__ */ nt(kr, [["__scopeId", "data-v-57383099"]]), Cr = {
4440
4440
  key: 0,
4441
4441
  class: "op-group"
4442
- }, Cr = {
4442
+ }, xr = {
4443
4443
  key: 1,
4444
4444
  class: "op-items",
4445
4445
  style: { width: "100%", height: "100%" }
@@ -4465,22 +4465,22 @@ const dr = /* @__PURE__ */ Cl(ir), cr = { class: "g-table-container" }, fr = {
4465
4465
  },
4466
4466
  setup(n) {
4467
4467
  const d = n;
4468
- return (e, l) => d.title ? (m(), z("div", xr, [
4468
+ return (e, l) => d.title ? (m(), z("div", Cr, [
4469
4469
  (m(!0), z(se, null, W(d.columns, (s) => (m(), z("span", {
4470
4470
  style: Ue({ width: (s == null ? void 0 : s.width) || vl, ...s == null ? void 0 : s.titleStyle, textAlign: (s == null ? void 0 : s.align) || "center" }),
4471
4471
  key: s.key
4472
4472
  }, [
4473
- C(e.$slots, `${n.t}-title-${s.key}`, { col: s }, () => [
4473
+ x(e.$slots, `${n.t}-title-${s.key}`, { col: s }, () => [
4474
4474
  Le(Ie(s.label), 1)
4475
4475
  ], !0)
4476
4476
  ], 4))), 128))
4477
- ])) : (m(), z("div", Cr, [
4477
+ ])) : (m(), z("div", xr, [
4478
4478
  (m(!0), z(se, null, W(d.columns, (s) => (m(), z("span", {
4479
4479
  style: Ue({ width: (s == null ? void 0 : s.width) || vl, textAlign: (s == null ? void 0 : s.align) || "center", ...s == null ? void 0 : s.style }),
4480
4480
  key: s.key,
4481
4481
  title: n.data[s.key]
4482
4482
  }, [
4483
- C(e.$slots, `${n.t}-option-${s.key}`, { col: s }, () => [
4483
+ x(e.$slots, `${n.t}-option-${s.key}`, { col: s }, () => [
4484
4484
  Le(Ie(n.data[s.key] ?? "-"), 1)
4485
4485
  ], !0)
4486
4486
  ], 12, Mr))), 128))