vue-2024-ui 0.0.65 → 0.0.66

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
- import Et, { ElForm as He, ElButtonGroup as Ye, ElButton as ge, ElPopover as Je, ElMessage as _e, ElMessageBox as ct, ElDialog as wt, ElDrawer as _t } from "element-plus";
2
- import { mergeModels as Oe, useModel as xe, ref as ye, onMounted as Pe, resolveComponent as R, openBlock as s, createElementBlock as B, unref as o, createBlock as S, mergeProps as x, withCtx as g, renderSlot as p, Fragment as W, renderList as U, createTextVNode as be, toDisplayString as pe, createSlots as fe, createVNode as G, createCommentVNode as ve, normalizeProps as Le, createElementVNode as Q, useSlots as mt, nextTick as kt, inject as ot, useAttrs as Ne, onUnmounted as Ct, computed as Ae, normalizeStyle as Te, withModifiers as it, guardReactiveProps as Ke, resolveDynamicComponent as Se, Transition as Dt, withDirectives as pt, vShow as vt, h as Ve, onBeforeUnmount as Vt, normalizeClass as yt, watchEffect as Ft, watch as Tt, createApp as Mt } from "vue";
1
+ import wt, { ElForm as We, ElButtonGroup as He, ElButton as ge, ElPopover as Je, ElMessage as _e, ElMessageBox as ct, ElDialog as _t, ElDrawer as kt } from "element-plus";
2
+ import { mergeModels as Oe, useModel as xe, ref as ye, onMounted as Pe, watch as mt, resolveComponent as R, openBlock as s, createElementBlock as B, unref as o, createBlock as S, mergeProps as x, withCtx as g, renderSlot as p, Fragment as Y, renderList as U, createTextVNode as be, toDisplayString as pe, createSlots as fe, createVNode as G, createCommentVNode as ve, normalizeProps as Le, createElementVNode as Q, useSlots as pt, nextTick as Ct, inject as ot, useAttrs as Ne, onUnmounted as Dt, computed as Ae, normalizeStyle as Te, withModifiers as it, guardReactiveProps as Ke, resolveDynamicComponent as Se, Transition as Vt, withDirectives as vt, vShow as yt, h as Ve, onBeforeUnmount as Ft, normalizeClass as ht, watchEffect as Tt, createApp as Mt } from "vue";
3
3
  import { FullScreen as qt, Remove as St } from "@element-plus/icons-vue";
4
- import ht from "sortablejs";
4
+ import gt from "sortablejs";
5
5
  import { Dexie as Ot } from "dexie";
6
6
  var xt = {
7
7
  name: "zh-cn",
@@ -184,12 +184,12 @@ var xt = {
184
184
  function Bt(c) {
185
185
  return c && c.__esModule && Object.prototype.hasOwnProperty.call(c, "default") ? c.default : c;
186
186
  }
187
- var gt = { exports: {} };
187
+ var bt = { exports: {} };
188
188
  (function(c, f) {
189
189
  (function(t, e) {
190
190
  c.exports = e();
191
191
  })(At, function() {
192
- var t = 1e3, e = 6e4, a = 36e5, v = "millisecond", V = "second", F = "minute", q = "hour", E = "day", w = "week", P = "month", se = "quarter", D = "year", u = "date", A = "Invalid Date", ee = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, le = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, ae = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(M) {
192
+ var t = 1e3, e = 6e4, a = 36e5, v = "millisecond", V = "second", F = "minute", q = "hour", E = "day", w = "week", P = "month", ne = "quarter", D = "year", u = "date", A = "Invalid Date", ee = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, le = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, ae = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(M) {
193
193
  var h = ["th", "st", "nd", "rd"], $ = M % 100;
194
194
  return "[" + M + (h[($ - 20) % 10] || h[$] || h[0]) + "]";
195
195
  } }, ce = function(M, h, $) {
@@ -205,16 +205,16 @@ var gt = { exports: {} };
205
205
  }, a: function(M) {
206
206
  return M < 0 ? Math.ceil(M) || 0 : Math.floor(M);
207
207
  }, p: function(M) {
208
- return { M: P, y: D, w, d: E, D: u, h: q, m: F, s: V, ms: v, Q: se }[M] || String(M || "").toLowerCase().replace(/s$/, "");
208
+ return { M: P, y: D, w, d: E, D: u, h: q, m: F, s: V, ms: v, Q: ne }[M] || String(M || "").toLowerCase().replace(/s$/, "");
209
209
  }, u: function(M) {
210
210
  return M === void 0;
211
- } }, ne = "en", d = {};
212
- d[ne] = ae;
211
+ } }, se = "en", d = {};
212
+ d[se] = ae;
213
213
  var k = "$isDayjsObject", I = function(M) {
214
214
  return M instanceof J || !(!M || !M[k]);
215
215
  }, y = function M(h, $, m) {
216
216
  var i;
217
- if (!h) return ne;
217
+ if (!h) return se;
218
218
  if (typeof h == "string") {
219
219
  var _ = h.toLowerCase();
220
220
  d[_] && (i = _), $ && (d[_] = $, i = _);
@@ -224,7 +224,7 @@ var gt = { exports: {} };
224
224
  var N = h.name;
225
225
  d[N] = h, i = N;
226
226
  }
227
- return !m && i && (ne = i), i || !m && ne;
227
+ return !m && i && (se = i), i || !m && se;
228
228
  }, L = function(M, h) {
229
229
  if (I(M)) return M.clone();
230
230
  var $ = typeof h == "object" ? h : {};
@@ -407,7 +407,7 @@ var gt = { exports: {} };
407
407
  case P:
408
408
  _ = z();
409
409
  break;
410
- case se:
410
+ case ne:
411
411
  _ = z() / 3;
412
412
  break;
413
413
  case w:
@@ -457,10 +457,10 @@ var gt = { exports: {} };
457
457
  return M.$i || (M(h, J, L), M.$i = !0), L;
458
458
  }, L.locale = y, L.isDayjs = I, L.unix = function(M) {
459
459
  return L(1e3 * M);
460
- }, L.en = d[ne], L.Ls = d, L.p = {}, L;
460
+ }, L.en = d[se], L.Ls = d, L.p = {}, L;
461
461
  });
462
- })(gt);
463
- var It = gt.exports;
462
+ })(bt);
463
+ var It = bt.exports;
464
464
  const Ze = /* @__PURE__ */ Bt(It), Ut = {
465
465
  style: { display: "flex", width: "100%" },
466
466
  class: "g-ctrl-container"
@@ -475,17 +475,17 @@ const Ze = /* @__PURE__ */ Bt(It), Ut = {
475
475
  }),
476
476
  emits: ["update:modelValue"],
477
477
  setup(c) {
478
- const f = xe(c, "modelValue"), t = c, e = t.item || {}, a = t.ctrlKey, v = t.ctrlType, V = t.model, F = ye([]), q = ye([]), E = () => Object.keys(mt()).filter((D) => D.startsWith(`${t.t}-${a}-`)).map((D) => D.replace(`${t.t}-${a}-`, "")), w = {
478
+ const f = xe(c, "modelValue"), t = c, e = t.item || {}, a = t.ctrlKey, v = t.ctrlType, V = t.model, F = ye([]), q = ye([]), E = () => Object.keys(pt()).filter((D) => D.startsWith(`${t.t}-${a}-`)).map((D) => D.replace(`${t.t}-${a}-`, "")), w = {
479
479
  filterable: !0,
480
480
  remote: !!(e && e["remote-method"]),
481
481
  ...e
482
482
  }, P = (D) => {
483
483
  e["remote-method"](D, (u) => {
484
- kt(() => {
484
+ Ct(() => {
485
485
  q.value = u;
486
486
  });
487
487
  });
488
- }, se = async (D = "options") => {
488
+ }, ne = async (D = "options") => {
489
489
  try {
490
490
  const u = await (e == null ? void 0 : e.getDicts(t.formInfo));
491
491
  if (typeof u == "string")
@@ -506,7 +506,7 @@ const Ze = /* @__PURE__ */ Bt(It), Ut = {
506
506
  var A, ee;
507
507
  e && e["remote-method"] && (w["remote-method"] = P), (ee = (A = V[a]) == null ? void 0 : A.options) != null && ee.length && (q.value = V[a].options);
508
508
  const D = (le, ae = "options", ce = V[a]) => {
509
- typeof e.getDicts == "function" && se(ae).catch((ie) => {
509
+ typeof e.getDicts == "function" && ne(ae).catch((ie) => {
510
510
  console.error(`Failed to load ${ae} for ${le}:`, ie);
511
511
  });
512
512
  };
@@ -517,9 +517,14 @@ const Ze = /* @__PURE__ */ Bt(It), Ut = {
517
517
  console.error("Failed to load data for tree-select:", ae);
518
518
  }
519
519
  })();
520
- }), (D, u) => {
520
+ }), mt(() => V.table.data.length, (D, u) => {
521
+ if (D !== u && typeof e.getDicts == "function") {
522
+ if (e != null && e.multiple) return;
523
+ ne();
524
+ }
525
+ }, { deep: !0 }), (D, u) => {
521
526
  var X, oe;
522
- const A = R("el-radio"), ee = R("el-radio-group"), le = R("el-radio-button"), ae = R("el-checkbox"), ce = R("el-checkbox-group"), ie = R("el-checkbox-button"), ne = R("el-option"), d = R("el-select"), k = R("el-tree-select"), I = R("el-time-picker"), y = R("el-time-select"), L = R("el-date-picker"), O = R("el-color-picker"), J = R("el-rate"), $e = R("el-slider"), M = R("el-switch"), h = R("el-transfer"), $ = R("el-cascader"), m = R("el-button"), i = R("el-upload"), _ = R("el-autocomplete"), T = R("el-input-number"), N = R("el-input");
527
+ const A = R("el-radio"), ee = R("el-radio-group"), le = R("el-radio-button"), ae = R("el-checkbox"), ce = R("el-checkbox-group"), ie = R("el-checkbox-button"), se = R("el-option"), d = R("el-select"), k = R("el-tree-select"), I = R("el-time-picker"), y = R("el-time-select"), L = R("el-date-picker"), O = R("el-color-picker"), J = R("el-rate"), $e = R("el-slider"), M = R("el-switch"), h = R("el-transfer"), $ = R("el-cascader"), m = R("el-button"), i = R("el-upload"), _ = R("el-autocomplete"), T = R("el-input-number"), N = R("el-input");
523
528
  return s(), B("div", Ut, [
524
529
  o(v) == o(de).RADIO ? (s(), S(ee, x({
525
530
  key: 0,
@@ -528,7 +533,7 @@ const Ze = /* @__PURE__ */ Bt(It), Ut = {
528
533
  }, o(e)), {
529
534
  default: g(() => [
530
535
  p(D.$slots, `${t.t}-${o(a)}`, { data: o(e) }, () => [
531
- (s(!0), B(W, null, U(q.value, (n) => (s(), S(A, x({ ref_for: !0 }, n), {
536
+ (s(!0), B(Y, null, U(q.value, (n) => (s(), S(A, x({ ref_for: !0 }, n), {
532
537
  default: g(() => [
533
538
  p(D.$slots, `${t.t}-${o(a)}-options`, { option: n })
534
539
  ]),
@@ -544,7 +549,7 @@ const Ze = /* @__PURE__ */ Bt(It), Ut = {
544
549
  }, o(e)), {
545
550
  default: g(() => [
546
551
  p(D.$slots, `${t.t}-${o(a)}`, { data: o(e) }, () => [
547
- (s(!0), B(W, null, U(q.value, (n) => (s(), S(le, x({ ref_for: !0 }, n), {
552
+ (s(!0), B(Y, null, U(q.value, (n) => (s(), S(le, x({ ref_for: !0 }, n), {
548
553
  default: g(() => [
549
554
  p(D.$slots, `${t.t}-${o(a)}-options`, { option: n })
550
555
  ]),
@@ -571,7 +576,7 @@ const Ze = /* @__PURE__ */ Bt(It), Ut = {
571
576
  }, o(e)), {
572
577
  default: g(() => [
573
578
  p(D.$slots, `${t.t}-${o(a)}`, { data: o(e) }, () => [
574
- (s(!0), B(W, null, U(q.value, (n) => (s(), S(ae, x({ ref_for: !0 }, n), {
579
+ (s(!0), B(Y, null, U(q.value, (n) => (s(), S(ae, x({ ref_for: !0 }, n), {
575
580
  default: g(() => [
576
581
  p(D.$slots, `${t.t}-${o(a)}-options`, { option: n }, () => [
577
582
  be(pe(n.label), 1)
@@ -589,7 +594,7 @@ const Ze = /* @__PURE__ */ Bt(It), Ut = {
589
594
  }, o(e)), {
590
595
  default: g(() => [
591
596
  p(D.$slots, `${t.t}-${o(a)}`, { data: o(e) }, () => [
592
- (s(!0), B(W, null, U(q.value, (n) => (s(), S(ie, x({ ref_for: !0 }, n), {
597
+ (s(!0), B(Y, null, U(q.value, (n) => (s(), S(ie, x({ ref_for: !0 }, n), {
593
598
  default: g(() => [
594
599
  p(D.$slots, `${t.t}-${o(a)}-options`, { option: n })
595
600
  ]),
@@ -606,10 +611,10 @@ const Ze = /* @__PURE__ */ Bt(It), Ut = {
606
611
  }, w), fe({
607
612
  default: g(() => [
608
613
  p(D.$slots, `${t.t}-${o(a)}`, { options: q.value }, () => [
609
- (s(!0), B(W, null, U(q.value, (n) => (s(), B(W, {
614
+ (s(!0), B(Y, null, U(q.value, (n) => (s(), B(Y, {
610
615
  key: n.value
611
616
  }, [
612
- G(ne, x({ ref_for: !0 }, n, {
617
+ G(se, x({ ref_for: !0 }, n, {
613
618
  onClick: (z) => w.change && w.change(n)
614
619
  }), {
615
620
  default: g(() => [
@@ -617,7 +622,7 @@ const Ze = /* @__PURE__ */ Bt(It), Ut = {
617
622
  ]),
618
623
  _: 2
619
624
  }, 1040, ["onClick"]),
620
- n.children && n.children.length ? (s(!0), B(W, { key: 0 }, U(n.children, (z) => (s(), S(ne, x({
625
+ n.children && n.children.length ? (s(!0), B(Y, { key: 0 }, U(n.children, (z) => (s(), S(se, x({
621
626
  key: z.value,
622
627
  ref_for: !0
623
628
  }, z, {
@@ -826,7 +831,7 @@ const Ze = /* @__PURE__ */ Bt(It), Ut = {
826
831
  ]);
827
832
  };
828
833
  }
829
- }), We = /* @__PURE__ */ Object.assign({
834
+ }), Ye = /* @__PURE__ */ Object.assign({
830
835
  name: "g-form",
831
836
  inheritAttrs: !1
832
837
  }, {
@@ -837,7 +842,7 @@ const Ze = /* @__PURE__ */ Bt(It), Ut = {
837
842
  },
838
843
  emits: /* @__PURE__ */ Oe(["submit", "reset"], ["update:modelValue"]),
839
844
  setup(c, { emit: f }) {
840
- var ae, ce, ie, ne;
845
+ var ae, ce, ie, se;
841
846
  const t = xe(c, "modelValue"), e = f, a = ye(null), v = ot("options"), V = {
842
847
  inline: !0,
843
848
  type: "hidden",
@@ -917,7 +922,7 @@ const Ze = /* @__PURE__ */ Bt(It), Ut = {
917
922
  };
918
923
  t.value.form.cols = Ee(
919
924
  q,
920
- (ne = v == null ? void 0 : v.form) == null ? void 0 : ne.cols,
925
+ (se = v == null ? void 0 : v.form) == null ? void 0 : se.cols,
921
926
  t.value.form.cols
922
927
  );
923
928
  const E = (d) => {
@@ -969,11 +974,11 @@ const Ze = /* @__PURE__ */ Bt(It), Ut = {
969
974
  return ((y = t.value.form) == null ? void 0 : y.modalState) === "edit" ? ((L = k == null ? void 0 : k.ep) == null ? void 0 : L.type) ?? (k == null ? void 0 : k.type) ?? d.type : ((O = t.value.form) == null ? void 0 : O.modalState) === "add" ? ((J = k == null ? void 0 : k.ap) == null ? void 0 : J.type) ?? (k == null ? void 0 : k.type) ?? d.type : (k == null ? void 0 : k.type) ?? d.type;
970
975
  };
971
976
  Pe(() => {
972
- se();
973
- }), Ct(() => {
977
+ ne();
978
+ }), Dt(() => {
974
979
  a.value = null;
975
980
  });
976
- const se = () => {
981
+ const ne = () => {
977
982
  for (const [d, k] of Object.entries(D.value))
978
983
  t.value[d].formItem = { ...t.value[d].formItem, ...k.formItem }, t.value[d].formItem.style = { ...t.value[d].formItem.style, ...k.formItem.style };
979
984
  }, D = Ae(() => Object.fromEntries(Object.entries(t.value).filter((d) => d[1].type != "hidden").filter((d) => !["table", "tableColumns", "query", "queryItems"].includes(d[0])).filter((d) => d[1].editor !== !1).filter((d) => d[1].type !== "control").filter((d) => {
@@ -1036,7 +1041,7 @@ const Ze = /* @__PURE__ */ Bt(It), Ut = {
1036
1041
  style: { width: "100%" }
1037
1042
  }, t.value.form.tabs), {
1038
1043
  default: g(() => [
1039
- (s(!0), B(W, null, U(A.value, (m) => (s(), S(L, x({
1044
+ (s(!0), B(Y, null, U(A.value, (m) => (s(), S(L, x({
1040
1045
  key: m.groupName,
1041
1046
  label: m.groupName,
1042
1047
  name: m.groupName,
@@ -1044,7 +1049,7 @@ const Ze = /* @__PURE__ */ Bt(It), Ut = {
1044
1049
  ref_for: !0
1045
1050
  }, m.tabPane), {
1046
1051
  default: g(() => [
1047
- (s(!0), B(W, null, U(m.items, (i, _) => (s(), S(y, x({ ref_for: !0 }, { ...t.value.form.cols, ...i == null ? void 0 : i.item.col }, {
1052
+ (s(!0), B(Y, null, U(m.items, (i, _) => (s(), S(y, x({ ref_for: !0 }, { ...t.value.form.cols, ...i == null ? void 0 : i.item.col }, {
1048
1053
  key: i.key,
1049
1054
  style: { width: "100%" }
1050
1055
  }), {
@@ -1103,7 +1108,7 @@ const Ze = /* @__PURE__ */ Bt(It), Ut = {
1103
1108
  style: Te(t.value.form.footer.style)
1104
1109
  }, [
1105
1110
  p(d.$slots, "f-footer-left"),
1106
- (s(!0), B(W, null, U(le.value, (m) => (s(), B(W, null, [
1111
+ (s(!0), B(Y, null, U(le.value, (m) => (s(), B(Y, null, [
1107
1112
  p(d.$slots, m.name + "-left"),
1108
1113
  p(d.$slots, m.name, {}, () => [
1109
1114
  G(J, x({ ref_for: !0 }, m.info, {
@@ -1124,7 +1129,7 @@ const Ze = /* @__PURE__ */ Bt(It), Ut = {
1124
1129
  }) : p(d.$slots, "default", { key: 1 }, () => {
1125
1130
  var M, h, $;
1126
1131
  return [
1127
- (s(!0), B(W, null, U(D.value, (m, i) => (s(), S(y, x({ ref_for: !0 }, { ...t.value.form.cols, ...m.col }, {
1132
+ (s(!0), B(Y, null, U(D.value, (m, i) => (s(), S(y, x({ ref_for: !0 }, { ...t.value.form.cols, ...m.col }, {
1128
1133
  key: i,
1129
1134
  style: { width: "100%" }
1130
1135
  }), {
@@ -1186,7 +1191,7 @@ const Ze = /* @__PURE__ */ Bt(It), Ut = {
1186
1191
  style: Te(t.value.form.footer.style)
1187
1192
  }, [
1188
1193
  p(d.$slots, "f-footer-left"),
1189
- (s(!0), B(W, null, U(le.value, (m) => (s(), B(W, null, [
1194
+ (s(!0), B(Y, null, U(le.value, (m) => (s(), B(Y, null, [
1190
1195
  p(d.$slots, m.name + "-left"),
1191
1196
  p(d.$slots, m.name, {}, () => [
1192
1197
  G(J, x({ ref_for: !0 }, m.info, {
@@ -1226,7 +1231,7 @@ const Ze = /* @__PURE__ */ Bt(It), Ut = {
1226
1231
  };
1227
1232
  return (F, q) => {
1228
1233
  const E = R("el-form-item");
1229
- return s(!0), B(W, null, U(a(t.more), (w, P) => p(F.$slots, `q-${P}`, {
1234
+ return s(!0), B(Y, null, U(a(t.more), (w, P) => p(F.$slots, `q-${P}`, {
1230
1235
  key: P,
1231
1236
  item: w,
1232
1237
  model: f.value
@@ -1244,7 +1249,7 @@ const Ze = /* @__PURE__ */ Bt(It), Ut = {
1244
1249
  default: g(() => [
1245
1250
  G(Ge, {
1246
1251
  modelValue: e.value[P],
1247
- "onUpdate:modelValue": (se) => e.value[P] = se,
1252
+ "onUpdate:modelValue": (ne) => e.value[P] = ne,
1248
1253
  item: { ...w == null ? void 0 : w.editor, ...v(w) },
1249
1254
  ctrlKey: P,
1250
1255
  ctrlType: V(w),
@@ -1252,10 +1257,10 @@ const Ze = /* @__PURE__ */ Bt(It), Ut = {
1252
1257
  t: "q",
1253
1258
  formInfo: e.value
1254
1259
  }, fe({ _: 2 }, [
1255
- U(Object.keys(F.$slots), (se) => ({
1256
- name: se,
1260
+ U(Object.keys(F.$slots), (ne) => ({
1261
+ name: ne,
1257
1262
  fn: g((D) => [
1258
- p(F.$slots, se, {
1263
+ p(F.$slots, ne, {
1259
1264
  data: D,
1260
1265
  item: w,
1261
1266
  model: f.value
@@ -1375,8 +1380,8 @@ const Ze = /* @__PURE__ */ Bt(It), Ut = {
1375
1380
  "onUpdate:info": (le) => F.value = le,
1376
1381
  more: A
1377
1382
  }, ee);
1378
- }, se = mt(), D = () => {
1379
- var ee, le, ae, ce, ie, ne, d, k, I;
1383
+ }, ne = pt(), D = () => {
1384
+ var ee, le, ae, ce, ie, se, d, k, I;
1380
1385
  const u = [
1381
1386
  {
1382
1387
  key: "query",
@@ -1391,7 +1396,7 @@ const Ze = /* @__PURE__ */ Bt(It), Ut = {
1391
1396
  },
1392
1397
  {
1393
1398
  key: "reset",
1394
- hidden: (ne = (ie = (ce = t.value) == null ? void 0 : ce.query) == null ? void 0 : ie.reset) == null ? void 0 : ne.hidden,
1399
+ hidden: (se = (ie = (ce = t.value) == null ? void 0 : ce.query) == null ? void 0 : ie.reset) == null ? void 0 : se.hidden,
1395
1400
  component: ge,
1396
1401
  props: {
1397
1402
  ...t.value.query.reset,
@@ -1410,10 +1415,10 @@ const Ze = /* @__PURE__ */ Bt(It), Ut = {
1410
1415
  },
1411
1416
  label: t.value.query.more.label,
1412
1417
  sort: t.value.query.more.sort || 0,
1413
- content: t.value.query.more.mode === 3 ? () => Ve(He, {
1418
+ content: t.value.query.more.mode === 3 ? () => Ve(We, {
1414
1419
  class: "query-form",
1415
1420
  ...ke(t.value.query, (y) => !["query", "more", "reset"].includes(y))
1416
- }, () => P({ slots: se }, !0)) : null
1421
+ }, () => P({ slots: ne }, !0)) : null
1417
1422
  }
1418
1423
  ];
1419
1424
  return u.sort((y, L) => y.sort - L.sort), u.filter((y) => !y.hidden).map((y) => y.key === "more" && y.component === Je ? Ve(Je, y.props, {
@@ -1422,13 +1427,13 @@ const Ze = /* @__PURE__ */ Bt(It), Ut = {
1422
1427
  }) : (y.props.slot = "query-" + y.key, y.label ? Ve(y.component, y.props, () => y.label) : Ve(y.component, y.props)));
1423
1428
  };
1424
1429
  return (u, A) => {
1425
- var ae, ce, ie, ne, d, k, I, y, L, O, J, $e, M, h, $, m, i;
1430
+ var ae, ce, ie, se, d, k, I, y, L, O, J, $e, M, h, $, m, i;
1426
1431
  const ee = R("el-form-item"), le = R("el-drawer");
1427
1432
  return s(), B("div", {
1428
1433
  class: "g-query-container",
1429
1434
  style: Te((ce = (ae = t.value.query) == null ? void 0 : ae.container) == null ? void 0 : ce.style)
1430
1435
  }, [
1431
- G(o(He), Le(Ke(o(ke)(t.value.query, (_) => !["query", "more", "reset", "btns"].includes(_)))), {
1436
+ G(o(We), Le(Ke(o(ke)(t.value.query, (_) => !["query", "more", "reset", "btns"].includes(_)))), {
1432
1437
  default: g(() => {
1433
1438
  var _, T;
1434
1439
  return [
@@ -1440,23 +1445,23 @@ const Ze = /* @__PURE__ */ Bt(It), Ut = {
1440
1445
  Q("div", {
1441
1446
  style: Te((X = (N = t.value.query) == null ? void 0 : N.btns) == null ? void 0 : X.style)
1442
1447
  }, [
1443
- t.value.query.group ? (s(), S(o(Ye), { key: 0 }, {
1448
+ t.value.query.group ? (s(), S(o(He), { key: 0 }, {
1444
1449
  default: g(() => [
1445
- (s(!0), B(W, null, U(D(), (re) => p(u.$slots, re.props.slot, {}, () => [
1450
+ (s(!0), B(Y, null, U(D(), (re) => p(u.$slots, re.props.slot, {}, () => [
1446
1451
  (s(), S(Se(re)))
1447
1452
  ], !0)), 256)),
1448
1453
  p(u.$slots, "q-btns", {}, void 0, !0)
1449
1454
  ]),
1450
1455
  _: 3
1451
- })) : (s(), B(W, { key: 1 }, [
1452
- (z = (n = (oe = t.value) == null ? void 0 : oe.query) == null ? void 0 : n.btns) != null && z.group ? (s(), S(o(Ye), { key: 0 }, {
1456
+ })) : (s(), B(Y, { key: 1 }, [
1457
+ (z = (n = (oe = t.value) == null ? void 0 : oe.query) == null ? void 0 : n.btns) != null && z.group ? (s(), S(o(He), { key: 0 }, {
1453
1458
  default: g(() => [
1454
- (s(!0), B(W, null, U(D(), (re) => p(u.$slots, re.props.slot, {}, () => [
1459
+ (s(!0), B(Y, null, U(D(), (re) => p(u.$slots, re.props.slot, {}, () => [
1455
1460
  (s(), S(Se(re)))
1456
1461
  ], !0)), 256))
1457
1462
  ]),
1458
1463
  _: 3
1459
- })) : (s(!0), B(W, { key: 1 }, U(D(), (re) => p(u.$slots, re.props.slot, {}, () => [
1464
+ })) : (s(!0), B(Y, { key: 1 }, U(D(), (re) => p(u.$slots, re.props.slot, {}, () => [
1460
1465
  (s(), S(Se(re)))
1461
1466
  ], !0)), 256)),
1462
1467
  p(u.$slots, "q-btns", {}, void 0, !0)
@@ -1470,33 +1475,33 @@ const Ze = /* @__PURE__ */ Bt(It), Ut = {
1470
1475
  }),
1471
1476
  _: 3
1472
1477
  }, 16),
1473
- ((d = (ne = (ie = t.value) == null ? void 0 : ie.query) == null ? void 0 : ne.container) == null ? void 0 : d.inline) === !1 ? (s(), B("div", {
1478
+ ((d = (se = (ie = t.value) == null ? void 0 : ie.query) == null ? void 0 : se.container) == null ? void 0 : d.inline) === !1 ? (s(), B("div", {
1474
1479
  key: 0,
1475
1480
  style: Te((I = (k = t.value.query) == null ? void 0 : k.btns) == null ? void 0 : I.style)
1476
1481
  }, [
1477
- t.value.query.group ? (s(), S(o(Ye), { key: 0 }, {
1482
+ t.value.query.group ? (s(), S(o(He), { key: 0 }, {
1478
1483
  default: g(() => [
1479
- (s(!0), B(W, null, U(D(), (_) => p(u.$slots, _.props.slot, {}, () => [
1484
+ (s(!0), B(Y, null, U(D(), (_) => p(u.$slots, _.props.slot, {}, () => [
1480
1485
  (s(), S(Se(_)))
1481
1486
  ], !0)), 256)),
1482
1487
  p(u.$slots, "q-btns", {}, void 0, !0)
1483
1488
  ]),
1484
1489
  _: 3
1485
- })) : (s(), B(W, { key: 1 }, [
1486
- (L = (y = t.value.query) == null ? void 0 : y.btns) != null && L.group ? (s(), S(o(Ye), { key: 0 }, {
1490
+ })) : (s(), B(Y, { key: 1 }, [
1491
+ (L = (y = t.value.query) == null ? void 0 : y.btns) != null && L.group ? (s(), S(o(He), { key: 0 }, {
1487
1492
  default: g(() => [
1488
- (s(!0), B(W, null, U(D(), (_) => p(u.$slots, _.props.slot, {}, () => [
1493
+ (s(!0), B(Y, null, U(D(), (_) => p(u.$slots, _.props.slot, {}, () => [
1489
1494
  (s(), S(Se(_)))
1490
1495
  ], !0)), 256))
1491
1496
  ]),
1492
1497
  _: 3
1493
- })) : (s(!0), B(W, { key: 1 }, U(D(), (_) => p(u.$slots, _.props.slot, {}, () => [
1498
+ })) : (s(!0), B(Y, { key: 1 }, U(D(), (_) => p(u.$slots, _.props.slot, {}, () => [
1494
1499
  (s(), S(Se(_)))
1495
1500
  ], !0)), 256)),
1496
1501
  p(u.$slots, "q-btns", {}, void 0, !0)
1497
1502
  ], 64))
1498
1503
  ], 4)) : ve("", !0),
1499
- G(Dt, {
1504
+ G(Vt, {
1500
1505
  duration: 300,
1501
1506
  name: "nested"
1502
1507
  }, {
@@ -1505,13 +1510,13 @@ const Ze = /* @__PURE__ */ Bt(It), Ut = {
1505
1510
  return [
1506
1511
  v.value && !((N = (T = (_ = t.value) == null ? void 0 : _.query) == null ? void 0 : T.more) != null && N.hidden) && t.value.query.more.mode == 1 ? (s(), B("div", Lt, [
1507
1512
  Q("div", Nt, [
1508
- t.value.query.more.mode == 1 ? pt((s(), S(o(He), Le(x({ key: 0 }, o(ke)(t.value.query, (X) => !["query", "more", "reset"].includes(X)))), {
1513
+ t.value.query.more.mode == 1 ? vt((s(), S(o(We), Le(x({ key: 0 }, o(ke)(t.value.query, (X) => !["query", "more", "reset"].includes(X)))), {
1509
1514
  default: g(() => [
1510
1515
  (s(), S(Se(P({ slots: u.$slots }, !0))))
1511
1516
  ]),
1512
1517
  _: 1
1513
1518
  }, 16)), [
1514
- [vt, v.value]
1519
+ [yt, v.value]
1515
1520
  ]) : ve("", !0)
1516
1521
  ])
1517
1522
  ])) : ve("", !0)
@@ -1527,7 +1532,7 @@ const Ze = /* @__PURE__ */ Bt(It), Ut = {
1527
1532
  "show-close": !1
1528
1533
  }, t.value.query.more.dialog), fe({
1529
1534
  default: g(() => [
1530
- G(o(He), x(o(ke)(t.value.query, (_) => !["query", "more", "reset"].includes(_)), { style: { width: "98%" } }), {
1535
+ G(o(We), x(o(ke)(t.value.query, (_) => !["query", "more", "reset"].includes(_)), { style: { width: "98%" } }), {
1531
1536
  default: g(() => [
1532
1537
  G(dt, {
1533
1538
  modelValue: t.value,
@@ -1577,7 +1582,7 @@ const Ze = /* @__PURE__ */ Bt(It), Ut = {
1577
1582
  ], 4);
1578
1583
  };
1579
1584
  }
1580
- }, zt = /* @__PURE__ */ Be(Pt, [["__scopeId", "data-v-561bb961"]]), Ht = { style: { padding: "0", margin: "0", "box-sizing": "border-box" } }, Yt = { style: { padding: "10px", "box-sizing": "border-box" } }, Wt = { style: { margin: "10px" } }, Gt = {
1585
+ }, zt = /* @__PURE__ */ Be(Pt, [["__scopeId", "data-v-561bb961"]]), Wt = { style: { padding: "0", margin: "0", "box-sizing": "border-box" } }, Ht = { style: { padding: "10px", "box-sizing": "border-box" } }, Yt = { style: { margin: "10px" } }, Gt = {
1581
1586
  style: { display: "flex", "flex-wrap": "wrap" },
1582
1587
  id: "excelSortEl"
1583
1588
  }, Qt = ["textContent"], Xt = { style: { width: "100%", display: "flex", padding: "10px", "box-sizing": "border-box", "justify-content": "center", "border-top": "1px solid #dcdfe6" } }, Jt = {
@@ -1611,21 +1616,21 @@ const Ze = /* @__PURE__ */ Bt(It), Ut = {
1611
1616
  });
1612
1617
  };
1613
1618
  return Pe(() => {
1614
- const q = new ht(document.getElementById("excelSortEl"), {
1619
+ const q = new gt(document.getElementById("excelSortEl"), {
1615
1620
  animation: 150,
1616
1621
  onEnd: () => {
1617
1622
  let w = q.toArray();
1618
1623
  console.log(w);
1619
1624
  }
1620
1625
  }), E = q;
1621
- Vt(() => {
1626
+ Ft(() => {
1622
1627
  E && E.destroy();
1623
1628
  });
1624
1629
  }), (q, E) => {
1625
- const w = R("el-divider"), P = R("el-alert"), se = R("el-checkbox"), D = R("el-button");
1626
- return s(), B("div", Ht, [
1627
- Q("div", Yt, [
1628
- Q("div", Wt, [
1630
+ const w = R("el-divider"), P = R("el-alert"), ne = R("el-checkbox"), D = R("el-button");
1631
+ return s(), B("div", Wt, [
1632
+ Q("div", Ht, [
1633
+ Q("div", Yt, [
1629
1634
  Q("a", {
1630
1635
  onClick: v,
1631
1636
  style: { cursor: "pointer" }
@@ -1645,7 +1650,7 @@ const Ze = /* @__PURE__ */ Bt(It), Ut = {
1645
1650
  }),
1646
1651
  E[0] || (E[0] = Q("div", { style: { margin: "1px 0" } }, null, -1)),
1647
1652
  Q("div", Gt, [
1648
- (s(!0), B(W, null, U(a.value, (u) => (s(), S(se, {
1653
+ (s(!0), B(Y, null, U(a.value, (u) => (s(), S(ne, {
1649
1654
  class: "check-box-hover",
1650
1655
  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" },
1651
1656
  "data-id": u.key,
@@ -1743,17 +1748,17 @@ const ol = {
1743
1748
  }, v = () => {
1744
1749
  const E = document.getElementById("cols");
1745
1750
  if (E) {
1746
- let w = ht.create(E, {
1751
+ let w = gt.create(E, {
1747
1752
  animation: 150,
1748
1753
  filter: ".filtered",
1749
1754
  //
1750
1755
  sort: !0,
1751
1756
  onEnd: () => {
1752
- w.toArray().forEach(async (se, D) => {
1753
- e.value[se].sort = D;
1754
- let u = e.value[se].width || "auto";
1757
+ w.toArray().forEach(async (ne, D) => {
1758
+ e.value[ne].sort = D;
1759
+ let u = e.value[ne].width || "auto";
1755
1760
  try {
1756
- const A = await je(e.value.table.user, f.name, se, { sort: D, width: u });
1761
+ const A = await je(e.value.table.user, f.name, ne, { sort: D, width: u });
1757
1762
  console.log(A);
1758
1763
  } catch (A) {
1759
1764
  console.error("列排序和宽度保存信息时出错:", A), _e({
@@ -1826,7 +1831,7 @@ const ol = {
1826
1831
  width: w.width || "auto"
1827
1832
  })).sort((E, w) => E.sort - w.sort), v();
1828
1833
  }), (E, w) => {
1829
- const P = R("el-divider"), se = R("el-alert"), D = R("el-checkbox");
1834
+ const P = R("el-divider"), ne = R("el-alert"), D = R("el-checkbox");
1830
1835
  return s(), B("div", null, [
1831
1836
  Q("div", ol, [
1832
1837
  Q("a", { onClick: V }, "全选"),
@@ -1835,7 +1840,7 @@ const ol = {
1835
1840
  G(P, { direction: "vertical" }),
1836
1841
  Q("a", { onClick: q }, "复位")
1837
1842
  ]),
1838
- G(se, {
1843
+ G(ne, {
1839
1844
  title: "拖动表格列标题可以改变表格列显示顺序 !",
1840
1845
  type: "warning",
1841
1846
  "show-icon": "",
@@ -1844,11 +1849,11 @@ const ol = {
1844
1849
  }),
1845
1850
  Q("div", null, [
1846
1851
  Q("div", rl, [
1847
- (s(!0), B(W, null, U(t.value, (u) => (s(), S(D, {
1852
+ (s(!0), B(Y, null, U(t.value, (u) => (s(), S(D, {
1848
1853
  modelValue: u.showCol,
1849
1854
  "onUpdate:modelValue": (A) => u.showCol = A,
1850
1855
  "data-id": u.value,
1851
- class: yt(["check-box-hover", u.value == "control" ? "filtered" : ""]),
1856
+ class: ht(["check-box-hover", u.value == "control" ? "filtered" : ""]),
1852
1857
  onChange: (A) => a(A, u.value),
1853
1858
  style: { width: "125px !important", height: "30px !important", border: "1px solid #dfe6ec", margin: "5px !important", "border-radius": "2px !important", "padding-left": "5px !important", display: "flex !important", "align-items": "center !important" },
1854
1859
  value: u.value,
@@ -1890,7 +1895,8 @@ const ol = {
1890
1895
  emits: /* @__PURE__ */ Oe(["load", "open", "delete", "submit", "reset", "download", "row-save"], ["update:modelValue"]),
1891
1896
  setup(c, { emit: f }) {
1892
1897
  var n, z, re, Ce, Me, De, he;
1893
- const t = f, e = xe(c, "modelValue"), a = ot("options"), v = ye({}), V = ye(!1), F = ye(!1), q = ["type", "index", "label", "column-key", "prop", "width", "min-width", "fixed", "render-header", "sortable", "sort-method", "sort-by", "sort-orders", "resizable", "formatter", "show-overflow-tooltip", "align", "header-align", "class-name", "label-class-name", "selectable", "reserve-selection", "filters", "filter-placement", "filter-class-name", "filter-multiple", "filter-method", "filtered-value"], E = ye([]), w = c, P = Ne(), se = {
1898
+ const t = f, e = xe(c, "modelValue"), a = ot("options"), v = ye({}), V = ye(!1), F = ye(!1), q = ["type", "index", "label", "column-key", "prop", "width", "min-width", "fixed", "render-header", "sortable", "sort-method", "sort-by", "sort-orders", "resizable", "formatter", "show-overflow-tooltip", "align", "header-align", "class-name", "label-class-name", "selectable", "reserve-selection", "filters", "filter-placement", "filter-class-name", "filter-multiple", "filter-method", "filtered-value"], E = ye([]), w = c, P = Ne(), ne = {
1899
+ autoWatch: !0,
1894
1900
  data: [],
1895
1901
  border: !0,
1896
1902
  stripe: !0,
@@ -1900,24 +1906,25 @@ const ol = {
1900
1906
  load: () => {
1901
1907
  let { currentPage: l, pageSize: r } = e.value.table.page;
1902
1908
  try {
1903
- t("load", { currentPage: l, pageSize: r, ...v.value }, (b, H) => {
1909
+ t("load", { currentPage: l, pageSize: r, ...v.value }, (b, W) => {
1904
1910
  if (!Array.isArray(b)) {
1905
1911
  console.error("从 load 事件回调中接收到的数据不是数组格式。"), _e.error("数据加载失败,请检查数据格式。");
1906
1912
  return;
1907
1913
  }
1908
- if (typeof H != "number") {
1914
+ if (typeof W != "number") {
1909
1915
  console.error("从 load 事件回调中接收到的 total 不是数字格式。"), _e.error("数据加载失败,请检查数据格式。");
1910
1916
  return;
1911
1917
  }
1912
- e.value.table.data = b, e.value.table.page.total = H, X();
1918
+ e.value.table.data = b, e.value.table.page.total = W, X();
1913
1919
  });
1914
1920
  } catch (b) {
1915
1921
  console.error("触发 load 事件时出现错误:", b), _e.error("数据加载时出现错误,请稍后重试。");
1916
1922
  }
1923
+ console.log("---");
1917
1924
  },
1918
1925
  onHeaderDragend: (l, r, b) => {
1919
- var H;
1920
- je((H = e.value.table) == null ? void 0 : H.user, w.name, b.property, { width: l });
1926
+ var W;
1927
+ je((W = e.value.table) == null ? void 0 : W.user, w.name, b.property, { width: l });
1921
1928
  },
1922
1929
  onRowDblclick: (l, r, b) => {
1923
1930
  e.value.table.dblclickType == "edit" ? k(l, r, b, e) : e.value.table.dblclickType == "view" && y(l, r, b, e);
@@ -1940,7 +1947,7 @@ const ol = {
1940
1947
  dblclickType: "edit"
1941
1948
  };
1942
1949
  e.value.table = Ee(
1943
- se,
1950
+ ne,
1944
1951
  a == null ? void 0 : a.table,
1945
1952
  e.value.table,
1946
1953
  P
@@ -2017,7 +2024,7 @@ const ol = {
2017
2024
  type: "hidden",
2018
2025
  minWidth: 120,
2019
2026
  align: "center",
2020
- formatter: (l, r, b, H) => b
2027
+ formatter: (l, r, b, W) => b
2021
2028
  };
2022
2029
  e.value.tableColumns = Ee(
2023
2030
  u,
@@ -2073,22 +2080,22 @@ const ol = {
2073
2080
  return l.type === "money" && (l.align = l.align || "right", l.width = l.width || 130, b = `<span title="${lt(parseFloat(b))}">${xl(parseFloat(b))}</span>`), l.prefix && b && (b = `<span>${l.prefix}${b}</span>`), l.suffix && b && (b = `${b}<span>${l.suffix}</span>`), b;
2074
2081
  }, ie = (l) => {
2075
2082
  v.value = l.value;
2076
- }, ne = (l) => {
2083
+ }, se = (l) => {
2077
2084
  console.log(l), v.value = l, e.value.table.load();
2078
2085
  }, d = (l) => {
2079
2086
  var r;
2080
2087
  e.value.form.modalState = "add", (r = e.value.control.add) != null && r.click ? e.value.control.add.click(l) : e.value.control.add.inline === !0 ? (e.value.table.data.unshift(ae), F.value = !0, t("open", ae, F.value, "row-add")) : (e.value.form.disabled = !1, e.value.dialog.mode = e.value.control.add.mode, e.value.dialog.title = e.value.control.add.label, Object.keys(ae).forEach((b) => {
2081
2088
  e.value[b] && (e.value[b].value = ae[b]);
2082
2089
  }), V.value = !0, t("open", l, "add"));
2083
- }, k = (l, r, b, H) => {
2090
+ }, k = (l, r, b, W) => {
2084
2091
  var Z;
2085
- e.value.form.modalState = "edit", (Z = e.value.control.edit) != null && Z.click ? e.value.control.edit.click(l, r, b, H) : (e.value.form.disabled = !1, e.value.dialog.mode = e.value.control.edit.mode, e.value.dialog.title = e.value.control.edit.label, Object.keys(l).forEach((K) => {
2092
+ e.value.form.modalState = "edit", (Z = e.value.control.edit) != null && Z.click ? e.value.control.edit.click(l, r, b, W) : (e.value.form.disabled = !1, e.value.dialog.mode = e.value.control.edit.mode, e.value.dialog.title = e.value.control.edit.label, Object.keys(l).forEach((K) => {
2086
2093
  e.value[K] && (e.value[K].value = l[K]);
2087
- }), V.value = !0, t("open", H, "edit", l, r, b));
2088
- }, I = (l, r, b, H) => {
2094
+ }), V.value = !0, t("open", W, "edit", l, r, b));
2095
+ }, I = (l, r, b, W) => {
2089
2096
  var Z;
2090
2097
  if ((Z = e.value.control.delete) != null && Z.click)
2091
- e.value.control.delete.click(l, r, b, H);
2098
+ e.value.control.delete.click(l, r, b, W);
2092
2099
  else {
2093
2100
  let { message: K, title: we, options: qe } = e.value.control.delete.dialog;
2094
2101
  ct.confirm(K, we, qe).then(() => {
@@ -2098,14 +2105,14 @@ const ol = {
2098
2105
  }).catch(() => {
2099
2106
  });
2100
2107
  }
2101
- }, y = (l, r, b, H) => {
2108
+ }, y = (l, r, b, W) => {
2102
2109
  var Z;
2103
- e.value.form.modalState = void 0, (Z = e.value.control.view) != null && Z.click ? e.value.control.view.click(l, r, b, H) : (e.value.form.disabled = !0, e.value.dialog.mode = e.value.control.view.mode, e.value.dialog.title = e.value.control.view.label, Object.keys(l).forEach((K) => {
2110
+ e.value.form.modalState = void 0, (Z = e.value.control.view) != null && Z.click ? e.value.control.view.click(l, r, b, W) : (e.value.form.disabled = !0, e.value.dialog.mode = e.value.control.view.mode, e.value.dialog.title = e.value.control.view.label, Object.keys(l).forEach((K) => {
2104
2111
  e.value[K] && (e.value[K].value = l[K]);
2105
- }), V.value = !0, t("open", H, "view", l, r, b));
2106
- }, L = (l, r, b, H) => {
2112
+ }), V.value = !0, t("open", W, "view", l, r, b));
2113
+ }, L = (l, r, b, W) => {
2107
2114
  var Z;
2108
- (Z = e.value.control.save) != null && Z.click ? e.value.control.save.click(l, r, b, H) : t("row-save", { row: l, column: r, $index: b, data: e.value.table.data }, (K) => {
2115
+ (Z = e.value.control.save) != null && Z.click ? e.value.control.save.click(l, r, b, W) : t("row-save", { row: l, column: r, $index: b, data: e.value.table.data }, (K) => {
2109
2116
  K && (e.value.table.load(), F.value = !1);
2110
2117
  });
2111
2118
  }, O = (l, r) => {
@@ -2119,7 +2126,7 @@ const ol = {
2119
2126
  if ((b = l.control.download) != null && b.click)
2120
2127
  l.control.download.click(l, r);
2121
2128
  else {
2122
- let H = tt({
2129
+ let W = tt({
2123
2130
  title: l.control.download.label,
2124
2131
  size: 480,
2125
2132
  width: 600,
@@ -2128,7 +2135,7 @@ const ol = {
2128
2135
  items: r,
2129
2136
  commitText: l.control.download.excelLabel,
2130
2137
  onExcel: (Z, K) => {
2131
- t("download", Z, K), H();
2138
+ t("download", Z, K), W();
2132
2139
  }
2133
2140
  })
2134
2141
  }
@@ -2156,23 +2163,23 @@ const ol = {
2156
2163
  { type: "delete", func: I },
2157
2164
  { type: "save", func: L }
2158
2165
  ], m = (l) => $.filter((r) => l.includes(r.type)).map(({ type: r, func: b }) => {
2159
- var H, Z, K;
2166
+ var W, Z, K;
2160
2167
  return {
2161
2168
  name: `control-${r}`,
2162
2169
  attr: h == null ? void 0 : h[r],
2163
2170
  func: b,
2164
- label: (H = h == null ? void 0 : h[r]) == null ? void 0 : H.label,
2171
+ label: (W = h == null ? void 0 : h[r]) == null ? void 0 : W.label,
2165
2172
  sort: ((Z = h == null ? void 0 : h[r]) == null ? void 0 : Z.sort) || 0,
2166
2173
  groupName: ((K = h == null ? void 0 : h[r]) == null ? void 0 : K.groupName) || "default"
2167
2174
  };
2168
2175
  }).sort((r, b) => r.sort - b.sort), i = (l) => m(l).reduce((r, b) => {
2169
- const H = b.groupName || "default";
2170
- return r[H] || (r[H] = []), r[H].push(b), r;
2176
+ const W = b.groupName || "default";
2177
+ return r[W] || (r[W] = []), r[W].push(b), r;
2171
2178
  }, {}), _ = Ae(() => Object.fromEntries(
2172
2179
  Object.entries(e.value).filter(([l, r]) => r.type !== "hidden").filter(([l, r]) => r.visible !== !1).filter(([l, r]) => r.showCol !== !1).map(([l, r]) => (r.sort = typeof r.sort == "number" ? r.sort : 0, [l, r])).sort((l, r) => l[1].sort - r[1].sort)
2173
2180
  )), T = ye({}), N = (l, r) => {
2174
- const b = (H, Z) => {
2175
- for (const K of H) {
2181
+ const b = (W, Z) => {
2182
+ for (const K of W) {
2176
2183
  if (K.value == Z) return K.label;
2177
2184
  if (K.children) {
2178
2185
  const we = b(K.children, Z);
@@ -2182,9 +2189,9 @@ const ol = {
2182
2189
  return null;
2183
2190
  };
2184
2191
  if (l.getDicts) {
2185
- const H = r.toString();
2186
- return T.value[H] ? (l.options = T.value[H], l.formatter || (l.formatter = (Z, K, we, qe) => l.options && b(l.options, we) || we), Promise.resolve()) : l.getDicts(e.value.table.data).then((Z) => {
2187
- T.value[H] = Z, l.options = Z, l.formatter || (l.formatter = (K, we, qe, ze) => l.options && b(l.options, qe) || qe);
2192
+ const W = r.toString();
2193
+ return T.value[W] ? (l.options = T.value[W], l.formatter || (l.formatter = (Z, K, we, qe) => l.options && b(l.options, we) || we), Promise.resolve()) : l.getDicts(e.value.table.data).then((Z) => {
2194
+ T.value[W] = Z, l.options = Z, l.formatter || (l.formatter = (K, we, qe, ze) => l.options && b(l.options, qe) || qe);
2188
2195
  });
2189
2196
  }
2190
2197
  return Promise.resolve();
@@ -2193,27 +2200,27 @@ const ol = {
2193
2200
  Object.keys(e.value).forEach((r) => {
2194
2201
  if (e.value[r].getDicts) {
2195
2202
  const b = N(e.value[r], r).then(() => {
2196
- e.value.table.data.forEach((H) => {
2203
+ e.value.table.data.forEach((W) => {
2197
2204
  var Z;
2198
2205
  if (e.value[r].getDicts && ((Z = e.value[r]) == null ? void 0 : Z.forceString) !== !1) {
2199
- const K = H[r];
2200
- H[r] = K != null ? K.toString() : K;
2206
+ const K = W[r];
2207
+ W[r] = K != null ? K.toString() : K;
2201
2208
  }
2202
2209
  });
2203
- }).catch((H) => {
2204
- console.error(`加载字典${r}出错:`, H);
2210
+ }).catch((W) => {
2211
+ console.error(`加载字典${r}出错:`, W);
2205
2212
  });
2206
2213
  l.push(b);
2207
2214
  }
2208
2215
  }), Promise.all(l).catch((r) => {
2209
2216
  console.error("字典加载过程中发生错误:", r);
2210
2217
  });
2211
- }, oe = (l, r, b, H) => {
2218
+ }, oe = (l, r, b, W) => {
2212
2219
  var Z, K;
2213
- return l.table ? (Z = l.table(r, b, H)) != null && Z.auth ? (K = l.table(r, b, H)) == null ? void 0 : K.auth(r, b, H) : !0 : !1;
2220
+ return l.table ? (Z = l.table(r, b, W)) != null && Z.auth ? (K = l.table(r, b, W)) == null ? void 0 : K.auth(r, b, W) : !0 : !1;
2214
2221
  };
2215
- return Ft(() => {
2216
- e.value.table.load();
2222
+ return Tt(() => {
2223
+ e.value.table.autoWatch && e.value.table.load();
2217
2224
  }), Pe(async () => {
2218
2225
  var l;
2219
2226
  if (E.value = Object.values(e.value).filter((r) => r.type !== "hidden").filter((r) => r.type !== "control").filter((r) => r.visible !== !1).map((r) => ({ key: r.key || "", label: r.label, value: !0 })), !((l = e.value.table) != null && l.user)) {
@@ -2244,30 +2251,31 @@ const ol = {
2244
2251
  } catch (r) {
2245
2252
  console.error("Error fetching table column settings:", r);
2246
2253
  }
2254
+ e.value.table.autoWatch || e.value.table.load();
2247
2255
  }), (l, r) => {
2248
2256
  var rt, at, ut, nt, st;
2249
- const b = R("el-button-group"), H = R("el-table-column"), Z = R("el-table"), K = R("el-pagination"), we = R("el-icon"), qe = R("el-dialog"), ze = R("el-drawer");
2250
- return s(), B(W, null, [
2257
+ const b = R("el-button-group"), W = R("el-table-column"), Z = R("el-table"), K = R("el-pagination"), we = R("el-icon"), qe = R("el-dialog"), ze = R("el-drawer");
2258
+ return s(), B(Y, null, [
2251
2259
  Q("div", sl, [
2252
2260
  ((at = (rt = e.value) == null ? void 0 : rt.query) == null ? void 0 : at.hidden) != !0 ? (s(), B("div", il, [
2253
2261
  p(l.$slots, "query", {}, () => [
2254
2262
  G(zt, {
2255
2263
  modelValue: e.value,
2256
2264
  "onUpdate:modelValue": r[0] || (r[0] = (j) => e.value = j),
2257
- onQuery: ne,
2265
+ onQuery: se,
2258
2266
  onReset: ie
2259
2267
  }, fe({
2260
2268
  "q-btns": g(() => [
2261
2269
  p(l.$slots, "q-btns", {}, () => [
2262
- (s(!0), B(W, null, U(i(["add", "download", "setting"]), (j, ue) => (s(), B(W, null, [
2263
- ue == "default" ? (s(!0), B(W, { key: 0 }, U(j, (C) => (s(), B(W, null, [
2270
+ (s(!0), B(Y, null, U(i(["add", "download", "setting"]), (j, ue) => (s(), B(Y, null, [
2271
+ ue == "default" ? (s(!0), B(Y, { key: 0 }, U(j, (C) => (s(), B(Y, null, [
2264
2272
  p(l.$slots, C.name + "-left", {}, void 0, !0),
2265
2273
  (C.name === "control-add" ? C.attr.auth() && C.attr.inline === !1 : C.attr.auth()) ? p(l.$slots, C.name, { key: 0 }, () => [
2266
2274
  C.label ? (s(), S(o(ge), x({
2267
2275
  key: 0,
2268
2276
  ref_for: !0
2269
2277
  }, C.attr, {
2270
- onClick: (Y) => C.func(e.value, E.value)
2278
+ onClick: (H) => C.func(e.value, E.value)
2271
2279
  }), {
2272
2280
  default: g(() => [
2273
2281
  be(pe(C.label), 1)
@@ -2277,20 +2285,20 @@ const ol = {
2277
2285
  key: 1,
2278
2286
  ref_for: !0
2279
2287
  }, C.attr, {
2280
- onClick: (Y) => C.func(e.value, E.value)
2288
+ onClick: (H) => C.func(e.value, E.value)
2281
2289
  }), null, 16, ["onClick"]))
2282
2290
  ], !0) : ve("", !0),
2283
2291
  p(l.$slots, C.name + "-right", {}, void 0, !0)
2284
2292
  ], 64))), 256)) : (s(), S(b, { key: 1 }, {
2285
2293
  default: g(() => [
2286
- (s(!0), B(W, null, U(j, (C) => (s(), B(W, null, [
2294
+ (s(!0), B(Y, null, U(j, (C) => (s(), B(Y, null, [
2287
2295
  p(l.$slots, C.name + "-left", {}, void 0, !0),
2288
2296
  (C.name === "control-add" ? C.attr.auth() && C.attr.inline === !1 : C.attr.auth()) ? p(l.$slots, C.name, { key: 0 }, () => [
2289
2297
  C.label ? (s(), S(o(ge), x({
2290
2298
  key: 0,
2291
2299
  ref_for: !0
2292
2300
  }, C.attr, {
2293
- onClick: (Y) => C.func(e.value, E.value)
2301
+ onClick: (H) => C.func(e.value, E.value)
2294
2302
  }), {
2295
2303
  default: g(() => [
2296
2304
  be(pe(C.label), 1)
@@ -2300,7 +2308,7 @@ const ol = {
2300
2308
  key: 1,
2301
2309
  ref_for: !0
2302
2310
  }, C.attr, {
2303
- onClick: (Y) => C.func(e.value, E.value)
2311
+ onClick: (H) => C.func(e.value, E.value)
2304
2312
  }), null, 16, ["onClick"]))
2305
2313
  ], !0) : ve("", !0),
2306
2314
  p(l.$slots, C.name + "-right", {}, void 0, !0)
@@ -2315,7 +2323,7 @@ const ol = {
2315
2323
  }, [
2316
2324
  U(l.$slots, (j, ue, C) => ({
2317
2325
  name: ue,
2318
- fn: g((Y) => [
2326
+ fn: g((H) => [
2319
2327
  p(l.$slots, ue, { model: e.value }, void 0, !0)
2320
2328
  ])
2321
2329
  }))
@@ -2332,19 +2340,19 @@ const ol = {
2332
2340
  ]),
2333
2341
  default: g(() => [
2334
2342
  p(l.$slots, "default", {}, () => [
2335
- (s(!0), B(W, null, U(_.value, (j, ue) => (s(), S(H, x({
2343
+ (s(!0), B(Y, null, U(_.value, (j, ue) => (s(), S(W, x({
2336
2344
  prop: ue,
2337
2345
  key: ue,
2338
2346
  ref_for: !0
2339
2347
  }, { ...e.value.tableColumns, ...o(ke)(j, (C) => q.includes(C)) }, { "header-align": "center" }), fe({
2340
- header: g(({ column: C, $index: Y }) => [
2348
+ header: g(({ column: C, $index: H }) => [
2341
2349
  ue == "control" ? p(l.$slots, `${ue}-header`, {
2342
2350
  key: 0,
2343
2351
  column: C,
2344
- $index: Y
2352
+ $index: H
2345
2353
  }, () => [
2346
2354
  r[12] || (r[12] = Q("span", null, "操作", -1)),
2347
- e.value.control.add.inline === !0 && !F.value ? (s(), B(W, { key: 0 }, [
2355
+ e.value.control.add.inline === !0 && !F.value ? (s(), B(Y, { key: 0 }, [
2348
2356
  e.value.control.add.label ? (s(), S(o(ge), x({
2349
2357
  key: 0,
2350
2358
  title: "新增",
@@ -2369,7 +2377,7 @@ const ol = {
2369
2377
  ], !0) : p(l.$slots, `${ue}-header`, {
2370
2378
  key: 1,
2371
2379
  column: C,
2372
- $index: Y
2380
+ $index: H
2373
2381
  }, void 0, !0)
2374
2382
  ]),
2375
2383
  "filter-icon": g((C) => [
@@ -2379,10 +2387,10 @@ const ol = {
2379
2387
  }, [
2380
2388
  j.type === "image" ? {
2381
2389
  name: "default",
2382
- fn: g(({ row: C, column: Y, $index: te }) => [
2390
+ fn: g(({ row: C, column: H, $index: te }) => [
2383
2391
  p(l.$slots, `${ue}`, {
2384
2392
  row: C,
2385
- column: Y,
2393
+ column: H,
2386
2394
  $index: te
2387
2395
  }, () => [
2388
2396
  Q("img", x({
@@ -2395,47 +2403,47 @@ const ol = {
2395
2403
  key: "0"
2396
2404
  } : j.type === "expand" ? {
2397
2405
  name: "default",
2398
- fn: g(({ row: C, column: Y, $index: te }) => [
2406
+ fn: g(({ row: C, column: H, $index: te }) => [
2399
2407
  p(l.$slots, `${ue}`, {
2400
2408
  row: C,
2401
- column: Y,
2409
+ column: H,
2402
2410
  $index: te
2403
2411
  }, void 0, !0)
2404
2412
  ]),
2405
2413
  key: "1"
2406
2414
  } : j.type == "control" ? {
2407
2415
  name: "default",
2408
- fn: g(({ row: C, column: Y, $index: te }) => {
2416
+ fn: g(({ row: C, column: H, $index: te }) => {
2409
2417
  var Ie, Ue;
2410
2418
  return [
2411
2419
  Q("div", {
2412
- class: yt(["control", (Ie = e.value.control) == null ? void 0 : Ie.class]),
2420
+ class: ht(["control", (Ie = e.value.control) == null ? void 0 : Ie.class]),
2413
2421
  style: Te((Ue = e.value.control) == null ? void 0 : Ue.style)
2414
2422
  }, [
2415
2423
  p(l.$slots, "control", {}, () => [
2416
2424
  p(l.$slots, "control-left", {
2417
2425
  row: C,
2418
- column: Y,
2426
+ column: H,
2419
2427
  $index: te
2420
2428
  }, void 0, !0),
2421
- (s(!0), B(W, null, U(i(["view", "edit", "delete", "save"]), (Re, Qe) => (s(), B(W, null, [
2422
- Qe == "default" ? (s(!0), B(W, { key: 0 }, U(Re, (me) => (s(), B(W, null, [
2429
+ (s(!0), B(Y, null, U(i(["view", "edit", "delete", "save"]), (Re, Qe) => (s(), B(Y, null, [
2430
+ Qe == "default" ? (s(!0), B(Y, { key: 0 }, U(Re, (me) => (s(), B(Y, null, [
2423
2431
  p(l.$slots, me.name + "-left", {
2424
2432
  row: C,
2425
- column: Y,
2433
+ column: H,
2426
2434
  $index: te
2427
2435
  }, void 0, !0),
2428
- me.attr.auth(C, Y, te) ? p(l.$slots, me.name, {
2436
+ me.attr.auth(C, H, te) ? p(l.$slots, me.name, {
2429
2437
  key: 0,
2430
2438
  row: C,
2431
- column: Y,
2439
+ column: H,
2432
2440
  $index: te
2433
2441
  }, () => [
2434
2442
  me.label ? (s(), S(o(ge), x({
2435
2443
  key: 0,
2436
2444
  ref_for: !0
2437
2445
  }, me.attr, {
2438
- onClick: (Xe) => me.func(C, Y, te, e.value)
2446
+ onClick: (Xe) => me.func(C, H, te, e.value)
2439
2447
  }), {
2440
2448
  default: g(() => [
2441
2449
  be(pe(me.label), 1)
@@ -2445,33 +2453,33 @@ const ol = {
2445
2453
  key: 1,
2446
2454
  ref_for: !0
2447
2455
  }, me.attr, {
2448
- onClick: (Xe) => me.func(C, Y, te, e.value)
2456
+ onClick: (Xe) => me.func(C, H, te, e.value)
2449
2457
  }), null, 16, ["onClick"]))
2450
2458
  ], !0) : ve("", !0),
2451
2459
  p(l.$slots, me.name + "-right", {
2452
2460
  row: C,
2453
- column: Y,
2461
+ column: H,
2454
2462
  $index: te
2455
2463
  }, void 0, !0)
2456
2464
  ], 64))), 256)) : (s(), S(b, { key: 1 }, {
2457
2465
  default: g(() => [
2458
- (s(!0), B(W, null, U(Re, (me) => (s(), B(W, null, [
2466
+ (s(!0), B(Y, null, U(Re, (me) => (s(), B(Y, null, [
2459
2467
  p(l.$slots, me.name + "-left", {
2460
2468
  row: C,
2461
- column: Y,
2469
+ column: H,
2462
2470
  $index: te
2463
2471
  }, void 0, !0),
2464
- me.attr.auth(C, Y, te) ? p(l.$slots, me.name, {
2472
+ me.attr.auth(C, H, te) ? p(l.$slots, me.name, {
2465
2473
  key: 0,
2466
2474
  row: C,
2467
- column: Y,
2475
+ column: H,
2468
2476
  $index: te
2469
2477
  }, () => [
2470
2478
  me.label ? (s(), S(o(ge), x({
2471
2479
  key: 0,
2472
2480
  ref_for: !0
2473
2481
  }, me.attr, {
2474
- onClick: (Xe) => me.func(C, Y, te, e.value)
2482
+ onClick: (Xe) => me.func(C, H, te, e.value)
2475
2483
  }), {
2476
2484
  default: g(() => [
2477
2485
  be(pe(me.label), 1)
@@ -2481,12 +2489,12 @@ const ol = {
2481
2489
  key: 1,
2482
2490
  ref_for: !0
2483
2491
  }, me.attr, {
2484
- onClick: (Xe) => me.func(C, Y, te, e.value)
2492
+ onClick: (Xe) => me.func(C, H, te, e.value)
2485
2493
  }), null, 16, ["onClick"]))
2486
2494
  ], !0) : ve("", !0),
2487
2495
  p(l.$slots, me.name + "-right", {
2488
2496
  row: C,
2489
- column: Y,
2497
+ column: H,
2490
2498
  $index: te
2491
2499
  }, void 0, !0)
2492
2500
  ], 64))), 256))
@@ -2496,7 +2504,7 @@ const ol = {
2496
2504
  ], 64))), 256)),
2497
2505
  p(l.$slots, "control-right", {
2498
2506
  row: C,
2499
- column: Y,
2507
+ column: H,
2500
2508
  $index: te
2501
2509
  }, void 0, !0)
2502
2510
  ], !0)
@@ -2506,11 +2514,11 @@ const ol = {
2506
2514
  key: "2"
2507
2515
  } : j.type != "selection" && j.type != "index" ? {
2508
2516
  name: "default",
2509
- fn: g(({ row: C, column: Y, $index: te }) => [
2510
- oe(j, C, Y, te) && te != -1 ? p(l.$slots, `${ue}`, {
2517
+ fn: g(({ row: C, column: H, $index: te }) => [
2518
+ oe(j, C, H, te) && te != -1 ? p(l.$slots, `${ue}`, {
2511
2519
  key: 0,
2512
2520
  row: C,
2513
- column: Y,
2521
+ column: H,
2514
2522
  $index: te
2515
2523
  }, () => {
2516
2524
  var Ie;
@@ -2518,9 +2526,9 @@ const ol = {
2518
2526
  G(Ge, {
2519
2527
  modelValue: C[ue],
2520
2528
  "onUpdate:modelValue": (Ue) => C[ue] = Ue,
2521
- item: j == null ? void 0 : j.table(C, Y, te, F.value),
2529
+ item: j == null ? void 0 : j.table(C, H, te, F.value),
2522
2530
  ctrlKey: ue,
2523
- ctrlType: (Ie = j.table(C, Y, te, F.value)) != null && Ie.type ? j.table(C, Y, te, F.value).type : j.type,
2531
+ ctrlType: (Ie = j.table(C, H, te, F.value)) != null && Ie.type ? j.table(C, H, te, F.value).type : j.type,
2524
2532
  model: e.value,
2525
2533
  class: "g-ctrl-container",
2526
2534
  t: "t",
@@ -2541,11 +2549,11 @@ const ol = {
2541
2549
  }, !0) : p(l.$slots, `${ue}`, {
2542
2550
  key: 1,
2543
2551
  row: C,
2544
- column: Y,
2552
+ column: H,
2545
2553
  $index: te
2546
2554
  }, () => [
2547
2555
  Q("div", {
2548
- innerHTML: ce(j, Y.formatter(C, Y, C[ue], te))
2556
+ innerHTML: ce(j, H.formatter(C, H, C[ue], te))
2549
2557
  }, null, 8, cl)
2550
2558
  ], !0)
2551
2559
  ]),
@@ -2577,10 +2585,10 @@ const ol = {
2577
2585
  "onUpdate:modelValue": r[8] || (r[8] = (j) => V.value = j),
2578
2586
  fullscreen: e.value.dialog.fullScreen
2579
2587
  }, o(ke)(e.value.dialog, (j) => !["size"].includes(j)), {
2580
- width: o($t)(e.value.dialog.width) + 35
2588
+ width: o(Et)(e.value.dialog.width) + 35
2581
2589
  }), {
2582
2590
  header: g(() => {
2583
- var j, ue, C, Y;
2591
+ var j, ue, C, H;
2584
2592
  return [
2585
2593
  Q("div", pl, [
2586
2594
  Q("div", vl, [
@@ -2602,7 +2610,7 @@ const ol = {
2602
2610
  _: 1
2603
2611
  })
2604
2612
  ])) : ve("", !0),
2605
- ((Y = (C = e.value) == null ? void 0 : C.dialog) == null ? void 0 : Y.fullScreen) === !0 ? (s(), B("div", {
2613
+ ((H = (C = e.value) == null ? void 0 : C.dialog) == null ? void 0 : H.fullScreen) === !0 ? (s(), B("div", {
2606
2614
  key: 1,
2607
2615
  onClick: r[6] || (r[6] = (te) => {
2608
2616
  e.value.dialog.fullScreen = !1;
@@ -2622,7 +2630,7 @@ const ol = {
2622
2630
  default: g(() => [
2623
2631
  Q("div", yl, [
2624
2632
  p(l.$slots, "table-dialog-form", { model: e.value }, () => [
2625
- G(We, {
2633
+ G(Ye, {
2626
2634
  modelValue: e.value,
2627
2635
  "onUpdate:modelValue": r[7] || (r[7] = (j) => e.value = j),
2628
2636
  onSubmit: O,
@@ -2630,8 +2638,8 @@ const ol = {
2630
2638
  }, fe({ _: 2 }, [
2631
2639
  U(l.$slots, (j, ue, C) => ({
2632
2640
  name: ue,
2633
- fn: g((Y) => [
2634
- p(l.$slots, ue, { model: Y }, void 0, !0)
2641
+ fn: g((H) => [
2642
+ p(l.$slots, ue, { model: H }, void 0, !0)
2635
2643
  ])
2636
2644
  }))
2637
2645
  ]), 1032, ["modelValue"])
@@ -2657,7 +2665,7 @@ const ol = {
2657
2665
  ]),
2658
2666
  default: g(() => [
2659
2667
  p(l.$slots, "table-drawer-form", { model: e.value }, () => [
2660
- G(We, {
2668
+ G(Ye, {
2661
2669
  modelValue: e.value,
2662
2670
  "onUpdate:modelValue": r[9] || (r[9] = (j) => e.value = j),
2663
2671
  onSubmit: O,
@@ -2665,8 +2673,8 @@ const ol = {
2665
2673
  }, fe({ _: 2 }, [
2666
2674
  U(l.$slots, (j, ue, C) => ({
2667
2675
  name: ue,
2668
- fn: g((Y) => [
2669
- p(l.$slots, ue, { model: Y }, void 0, !0)
2676
+ fn: g((H) => [
2677
+ p(l.$slots, ue, { model: H }, void 0, !0)
2670
2678
  ])
2671
2679
  }))
2672
2680
  ]), 1032, ["modelValue"])
@@ -2675,18 +2683,18 @@ const ol = {
2675
2683
  _: 3
2676
2684
  }, 16, ["modelValue"])
2677
2685
  ])) : ve("", !0),
2678
- pt(G(We, {
2686
+ vt(G(Ye, {
2679
2687
  modelValue: e.value,
2680
2688
  "onUpdate:modelValue": r[11] || (r[11] = (j) => e.value = j),
2681
2689
  onSubmit: O,
2682
2690
  onReset: J
2683
2691
  }, null, 8, ["modelValue"]), [
2684
- [vt, !1]
2692
+ [yt, !1]
2685
2693
  ])
2686
2694
  ], 64);
2687
2695
  };
2688
2696
  }
2689
- }), El = /* @__PURE__ */ Be($l, [["__scopeId", "data-v-3c74e18b"]]), wl = { class: "g-tree-table" }, _l = { class: "g-tree-container" }, kl = { class: "g-tree-table-container" }, Cl = /* @__PURE__ */ Object.assign({
2697
+ }), El = /* @__PURE__ */ Be($l, [["__scopeId", "data-v-f228da13"]]), wl = { class: "g-tree-table" }, _l = { class: "g-tree-container" }, kl = { class: "g-tree-table-container" }, Cl = /* @__PURE__ */ Object.assign({
2690
2698
  name: "g-tree-table",
2691
2699
  inheritAttrs: !1
2692
2700
  }, {
@@ -2697,13 +2705,13 @@ const ol = {
2697
2705
  },
2698
2706
  emits: /* @__PURE__ */ Oe(["load"], ["update:modelValue"]),
2699
2707
  setup(c, { emit: f }) {
2700
- var se, D, u;
2701
- const t = f, e = xe(c, "modelValue"), a = ye(((se = Ne()) == null ? void 0 : se.width) || "180px"), v = ye(((D = Ne()) == null ? void 0 : D.search) === void 0 ? !0 : (u = Ne()) == null ? void 0 : u.search), V = ye({}), F = ye(""), q = ye(null), E = (A, ee) => A ? ee.label.includes(A) : !0, w = (A, ee) => {
2708
+ var ne, D, u;
2709
+ const t = f, e = xe(c, "modelValue"), a = ye(((ne = Ne()) == null ? void 0 : ne.width) || "180px"), v = ye(((D = Ne()) == null ? void 0 : D.search) === void 0 ? !0 : (u = Ne()) == null ? void 0 : u.search), V = ye({}), F = ye(""), q = ye(null), E = (A, ee) => A ? ee.label.includes(A) : !0, w = (A, ee) => {
2702
2710
  t("load", V.value, A, ee);
2703
2711
  }, P = (A) => {
2704
2712
  V.value = A, e.value.table.load();
2705
2713
  };
2706
- return Tt(F, (A) => {
2714
+ return mt(F, (A) => {
2707
2715
  q.value.filter(A);
2708
2716
  }), (A, ee) => {
2709
2717
  const le = R("el-input"), ae = R("el-tree"), ce = R("g-table");
@@ -2729,20 +2737,20 @@ const ol = {
2729
2737
  ref: q,
2730
2738
  onNodeClick: P
2731
2739
  }, A.$attrs), fe({
2732
- default: g(({ node: ie, data: ne }) => [
2740
+ default: g(({ node: ie, data: se }) => [
2733
2741
  p(A.$slots, "tree", {
2734
2742
  node: ie,
2735
- data: ne
2743
+ data: se
2736
2744
  }, () => [
2737
2745
  Q("span", null, pe(ie.label), 1)
2738
2746
  ], !0)
2739
2747
  ]),
2740
2748
  _: 2
2741
2749
  }, [
2742
- U(A.$slots, (ie, ne, d) => ({
2743
- name: ne,
2750
+ U(A.$slots, (ie, se, d) => ({
2751
+ name: se,
2744
2752
  fn: g((k) => [
2745
- p(A.$slots, ne, { data: k }, void 0, !0)
2753
+ p(A.$slots, se, { data: k }, void 0, !0)
2746
2754
  ])
2747
2755
  }))
2748
2756
  ]), 1040, ["style"])
@@ -2753,10 +2761,10 @@ const ol = {
2753
2761
  modelValue: e.value,
2754
2762
  "onUpdate:modelValue": ee[1] || (ee[1] = (ie) => e.value = ie)
2755
2763
  }, A.$attrs, { onLoad: w }), fe({ _: 2 }, [
2756
- U(A.$slots, (ie, ne, d) => ({
2757
- name: ne,
2764
+ U(A.$slots, (ie, se, d) => ({
2765
+ name: se,
2758
2766
  fn: g((k) => [
2759
- p(A.$slots, ne, { data: k }, void 0, !0)
2767
+ p(A.$slots, se, { data: k }, void 0, !0)
2760
2768
  ])
2761
2769
  }))
2762
2770
  ]), 1040, ["modelValue"])
@@ -2789,7 +2797,7 @@ const ol = {
2789
2797
  setup(c) {
2790
2798
  const f = c;
2791
2799
  return (t, e) => f.title ? (s(), B("div", Vl, [
2792
- (s(!0), B(W, null, U(f.columns, (a) => (s(), B("span", {
2800
+ (s(!0), B(Y, null, U(f.columns, (a) => (s(), B("span", {
2793
2801
  style: Te({ width: (a == null ? void 0 : a.width) || ft, ...a == null ? void 0 : a.titleStyle }),
2794
2802
  key: a.key
2795
2803
  }, [
@@ -2798,7 +2806,7 @@ const ol = {
2798
2806
  ], !0)
2799
2807
  ], 4))), 128))
2800
2808
  ])) : (s(), B("div", Fl, [
2801
- (s(!0), B(W, null, U(f.columns, (a) => (s(), B("span", {
2809
+ (s(!0), B(Y, null, U(f.columns, (a) => (s(), B("span", {
2802
2810
  style: Te({ width: (a == null ? void 0 : a.width) || ft, textAlign: (a == null ? void 0 : a.align) || "center", ...a == null ? void 0 : a.style }),
2803
2811
  key: a.key
2804
2812
  }, [
@@ -2808,15 +2816,15 @@ const ol = {
2808
2816
  ], 4))), 128))
2809
2817
  ]));
2810
2818
  }
2811
- }), Ml = /* @__PURE__ */ Be(Tl, [["__scopeId", "data-v-422d5210"]]), ql = Object.freeze({}), bt = [El, We, Dl, Ml];
2819
+ }), Ml = /* @__PURE__ */ Be(Tl, [["__scopeId", "data-v-422d5210"]]), ql = Object.freeze({}), $t = [El, Ye, Dl, Ml];
2812
2820
  let et = {};
2813
2821
  const jl = {
2814
2822
  install: (c, f = {}) => {
2815
- et = Object.freeze({ ...ql, ...f }), bt.forEach((t) => {
2823
+ et = Object.freeze({ ...ql, ...f }), $t.forEach((t) => {
2816
2824
  c.component(t.name, t);
2817
2825
  }), c.provide("options", et), c.config.globalProperties.$openModal = tt;
2818
2826
  }
2819
- }, Sl = (c) => ({ dialog: wt, drawer: _t })[c] || null, tt = (c = {}, f = "dialog") => {
2827
+ }, Sl = (c) => ({ dialog: _t, drawer: kt })[c] || null, tt = (c = {}, f = "dialog") => {
2820
2828
  if (typeof document > "u") return () => {
2821
2829
  };
2822
2830
  const t = document.createElement("div");
@@ -2847,11 +2855,11 @@ const jl = {
2847
2855
  };
2848
2856
  }
2849
2857
  });
2850
- return bt.forEach((F) => {
2858
+ return $t.forEach((F) => {
2851
2859
  V.component(F.name, F);
2852
- }), V.provide("options", et), V.use(Et, { locale: xt }), document.body.appendChild(t), V.mount(t), e;
2860
+ }), V.provide("options", et), V.use(wt, { locale: xt }), document.body.appendChild(t), V.mount(t), e;
2853
2861
  };
2854
- function $t(c, f = window.innerWidth) {
2862
+ function Et(c, f = window.innerWidth) {
2855
2863
  if (typeof c == "number")
2856
2864
  return c;
2857
2865
  if (c.endsWith("px"))
@@ -2873,7 +2881,7 @@ function $t(c, f = window.innerWidth) {
2873
2881
  throw new Error("Invalid calc expression");
2874
2882
  };
2875
2883
  const a = c.slice(5, -1).trim();
2876
- return v(a.replace(/([0-9.]+)([a-z%]+)/g, (F, q, E) => $t(q + E, f)));
2884
+ return v(a.replace(/([0-9.]+)([a-z%]+)/g, (F, q, E) => Et(q + E, f)));
2877
2885
  }
2878
2886
  throw new Error("Unsupported unit in value: " + c);
2879
2887
  }
@@ -2956,7 +2964,7 @@ const de = {
2956
2964
  };
2957
2965
  export {
2958
2966
  de as CT,
2959
- $t as convertToPx,
2967
+ Et as convertToPx,
2960
2968
  jl as default,
2961
2969
  ke as filterObject,
2962
2970
  Ol as findTreeLabelByValue,
package/dist/style.css CHANGED
@@ -1 +1 @@
1
- .g-query-container[data-v-561bb961]{position:relative;display:flex;flex:1;flex-direction:column;padding:10px;box-sizing:border-box}.outer[data-v-561bb961]{min-height:100px;border-radius:4px;background-color:var(--el-bg-color);top:60px;padding-top:10px;width:100%;box-sizing:border-box}.inner[data-v-561bb961]{border-radius:4px;min-height:100px;border:1px solid var(--el-border-color);padding:20px;box-sizing:border-box;width:100%;background-color:var(--el-bg-color)}.nested-enter-active[data-v-561bb961],.nested-leave-active[data-v-561bb961]{transition:all .3s ease-in-out}.nested-leave-active[data-v-561bb961]{transition-delay:.25s}.nested-enter-from[data-v-561bb961],.nested-leave-to[data-v-561bb961]{transform:translateY(-100px);opacity:0}.nested-enter-active .inner[data-v-561bb961],.nested-leave-active .inner[data-v-561bb961]{transition:all .3s ease-in-out}.nested-enter-active .inner[data-v-561bb961]{transition-delay:.25s}.nested-enter-from .inner[data-v-561bb961],.nested-leave-to .inner[data-v-561bb961]{transform:translateY(-100px);opacity:.001}.query-form[data-v-561bb961]{padding:20px;background-color:var(--el-bg-color);border:1px solid var(--el-border-color);margin:5px;border-radius:4px}.check-box-hover[data-v-51dfb7ef]:hover,.check-box-hover[data-v-c423ede0]:hover{background:var(--el-border-color)}.allcheck a[data-v-c423ede0]{cursor:pointer}.filtered[data-v-c423ede0]{pointer-events:none}.g-table-container[data-v-3c74e18b]{margin:0;padding:0;width:100%;height:100%}.table-query-container[data-v-3c74e18b]{background-color:var(--el-bg-color);border-radius:4px;margin-bottom:10px;border:1px solid var(--el-border-color)}.table-container[data-v-3c74e18b]{padding:16px;box-sizing:border-box;background-color:var(--el-bg-color);border-radius:4px;border:1px solid var(--el-border-color)}.max[data-v-3c74e18b]{cursor:pointer;color:var(--el-text-color)}.max[data-v-3c74e18b]:hover{color:var(--el-color-primary)}.btns[data-v-3c74e18b]{display:flex}.g-tree-table[data-v-c07fe107]{width:100%;display:flex;box-sizing:border-box}.g-tree-container[data-v-c07fe107]{display:flex;width:100%;padding:10px;box-sizing:border-box;border-radius:4px;overflow:auto;height:100%}.g-tree-table-container[data-v-c07fe107]{display:flex;flex:1;overflow:auto;border-radius:4px}.g-tree-left[data-v-c07fe107]{display:flex;flex-direction:column;padding:10px;box-sizing:border-box;margin-right:10px;border-radius:4px;border:1px solid var(--el-border-color);overflow:auto}.op-group[data-v-422d5210]{display:flex;justify-content:space-between;align-items:center;padding:5px 0 5px 20px;font-weight:700;color:#fff;margin:0 10px;background-color:var(--el-color-primary-light-3)}.op-items[data-v-422d5210]{display:flex;justify-content:space-between;align-items:center;padding:5px -20px;margin:0;color:#666}.op-items span[data-v-422d5210]{background-color:var(--el-color-primary-light-9);margin:2px;border-radius:3px;padding:0 5px;display:block;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}
1
+ .g-query-container[data-v-561bb961]{position:relative;display:flex;flex:1;flex-direction:column;padding:10px;box-sizing:border-box}.outer[data-v-561bb961]{min-height:100px;border-radius:4px;background-color:var(--el-bg-color);top:60px;padding-top:10px;width:100%;box-sizing:border-box}.inner[data-v-561bb961]{border-radius:4px;min-height:100px;border:1px solid var(--el-border-color);padding:20px;box-sizing:border-box;width:100%;background-color:var(--el-bg-color)}.nested-enter-active[data-v-561bb961],.nested-leave-active[data-v-561bb961]{transition:all .3s ease-in-out}.nested-leave-active[data-v-561bb961]{transition-delay:.25s}.nested-enter-from[data-v-561bb961],.nested-leave-to[data-v-561bb961]{transform:translateY(-100px);opacity:0}.nested-enter-active .inner[data-v-561bb961],.nested-leave-active .inner[data-v-561bb961]{transition:all .3s ease-in-out}.nested-enter-active .inner[data-v-561bb961]{transition-delay:.25s}.nested-enter-from .inner[data-v-561bb961],.nested-leave-to .inner[data-v-561bb961]{transform:translateY(-100px);opacity:.001}.query-form[data-v-561bb961]{padding:20px;background-color:var(--el-bg-color);border:1px solid var(--el-border-color);margin:5px;border-radius:4px}.check-box-hover[data-v-51dfb7ef]:hover,.check-box-hover[data-v-c423ede0]:hover{background:var(--el-border-color)}.allcheck a[data-v-c423ede0]{cursor:pointer}.filtered[data-v-c423ede0]{pointer-events:none}.g-table-container[data-v-f228da13]{margin:0;padding:0;width:100%;height:100%}.table-query-container[data-v-f228da13]{background-color:var(--el-bg-color);border-radius:4px;margin-bottom:10px;border:1px solid var(--el-border-color)}.table-container[data-v-f228da13]{padding:16px;box-sizing:border-box;background-color:var(--el-bg-color);border-radius:4px;border:1px solid var(--el-border-color)}.max[data-v-f228da13]{cursor:pointer;color:var(--el-text-color)}.max[data-v-f228da13]:hover{color:var(--el-color-primary)}.btns[data-v-f228da13]{display:flex}.g-tree-table[data-v-c07fe107]{width:100%;display:flex;box-sizing:border-box}.g-tree-container[data-v-c07fe107]{display:flex;width:100%;padding:10px;box-sizing:border-box;border-radius:4px;overflow:auto;height:100%}.g-tree-table-container[data-v-c07fe107]{display:flex;flex:1;overflow:auto;border-radius:4px}.g-tree-left[data-v-c07fe107]{display:flex;flex-direction:column;padding:10px;box-sizing:border-box;margin-right:10px;border-radius:4px;border:1px solid var(--el-border-color);overflow:auto}.op-group[data-v-422d5210]{display:flex;justify-content:space-between;align-items:center;padding:5px 0 5px 20px;font-weight:700;color:#fff;margin:0 10px;background-color:var(--el-color-primary-light-3)}.op-items[data-v-422d5210]{display:flex;justify-content:space-between;align-items:center;padding:5px -20px;margin:0;color:#666}.op-items span[data-v-422d5210]{background-color:var(--el-color-primary-light-9);margin:2px;border-radius:3px;padding:0 5px;display:block;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vue-2024-ui",
3
- "version": "0.0.65",
3
+ "version": "0.0.66",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "description": "A Vue 3 and Element Plus based plugin",