vue-2024-ui 0.0.73 → 0.0.76

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
@@ -189,7 +189,7 @@ var $t = { exports: {} };
189
189
  (function(t, e) {
190
190
  c.exports = e();
191
191
  })(It, function() {
192
- var t = 1e3, e = 6e4, r = 36e5, v = "millisecond", T = "second", S = "minute", q = "hour", w = "day", k = "week", L = "month", ne = "quarter", $ = "year", u = "date", N = "Invalid Date", te = /^(\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, K = { 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(x) {
192
+ var t = 1e3, e = 6e4, r = 36e5, v = "millisecond", T = "second", S = "minute", q = "hour", w = "day", k = "week", L = "month", ne = "quarter", $ = "year", u = "date", N = "Invalid Date", le = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, oe = /\[([^\]]+)]|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, K = { 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(x) {
193
193
  var E = ["th", "st", "nd", "rd"], b = x % 100;
194
194
  return "[" + x + (E[(b - 20) % 10] || E[b] || E[0]) + "]";
195
195
  } }, se = function(x, E, b) {
@@ -212,7 +212,7 @@ var $t = { exports: {} };
212
212
  he[fe] = K;
213
213
  var p = "$isDayjsObject", V = function(x) {
214
214
  return x instanceof J || !(!x || !x[p]);
215
- }, C = function x(E, b, _) {
215
+ }, D = function x(E, b, _) {
216
216
  var i;
217
217
  if (!E) return fe;
218
218
  if (typeof E == "string") {
@@ -230,12 +230,12 @@ var $t = { exports: {} };
230
230
  var b = typeof E == "object" ? E : {};
231
231
  return b.date = x, b.args = arguments, new J(b);
232
232
  }, B = ye;
233
- B.l = C, B.i = V, B.w = function(x, E) {
233
+ B.l = D, B.i = V, B.w = function(x, E) {
234
234
  return g(x, { locale: E.$L, utc: E.$u, x: E.$x, $offset: E.$offset });
235
235
  };
236
236
  var J = function() {
237
237
  function x(b) {
238
- this.$L = C(b.locale, null, !0), this.parse(b), this.$x = this.$x || b.x || {}, this[p] = !0;
238
+ this.$L = D(b.locale, null, !0), this.parse(b), this.$x = this.$x || b.x || {}, this[p] = !0;
239
239
  }
240
240
  var E = x.prototype;
241
241
  return E.parse = function(b) {
@@ -245,7 +245,7 @@ var $t = { exports: {} };
245
245
  if (B.u(i)) return /* @__PURE__ */ new Date();
246
246
  if (i instanceof Date) return new Date(i);
247
247
  if (typeof i == "string" && !/Z$/i.test(i)) {
248
- var O = i.match(te);
248
+ var O = i.match(le);
249
249
  if (O) {
250
250
  var P = O[2] - 1 || 0, Y = (O[7] || "0").substring(0, 3);
251
251
  return d ? new Date(Date.UTC(O[1], P, O[3] || 1, O[4] || 0, O[5] || 0, O[6] || 0, Y)) : new Date(O[1], P, O[3] || 1, O[4] || 0, O[5] || 0, O[6] || 0, Y);
@@ -279,14 +279,14 @@ var $t = { exports: {} };
279
279
  return d ? ke : ke.endOf(w);
280
280
  }, Y = function(we, ge) {
281
281
  return B.w(i.toDate()[we].apply(i.toDate("s"), (d ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(ge)), i);
282
- }, re = this.$W, ie = this.$M, pe = this.$D, s = "set" + (this.$u ? "UTC" : "");
282
+ }, ae = this.$W, ie = this.$M, pe = this.$D, s = "set" + (this.$u ? "UTC" : "");
283
283
  switch (O) {
284
284
  case $:
285
285
  return d ? P(1, 0) : P(31, 11);
286
286
  case L:
287
287
  return d ? P(1, ie) : P(0, ie + 1);
288
288
  case k:
289
- var W = this.$locale().weekStart || 0, ue = (re < W ? re + 7 : re) - W;
289
+ var W = this.$locale().weekStart || 0, ue = (ae < W ? ae + 7 : ae) - W;
290
290
  return P(d ? pe - ue : pe + (6 - ue), ie);
291
291
  case w:
292
292
  case u:
@@ -305,8 +305,8 @@ var $t = { exports: {} };
305
305
  }, E.$set = function(b, _) {
306
306
  var i, d = B.p(b), O = "set" + (this.$u ? "UTC" : ""), P = (i = {}, i[w] = O + "Date", i[u] = O + "Date", i[L] = O + "Month", i[$] = O + "FullYear", i[q] = O + "Hours", i[S] = O + "Minutes", i[T] = O + "Seconds", i[v] = O + "Milliseconds", i)[d], Y = d === w ? this.$D + (_ - this.$W) : _;
307
307
  if (d === L || d === $) {
308
- var re = this.clone().set(u, 1);
309
- re.$d[P](Y), re.init(), this.$d = re.set(u, Math.min(this.$D, re.daysInMonth())).$d;
308
+ var ae = this.clone().set(u, 1);
309
+ ae.$d[P](Y), ae.init(), this.$d = ae.set(u, Math.min(this.$D, ae.daysInMonth())).$d;
310
310
  } else P && this.$d[P](Y);
311
311
  return this.init(), this;
312
312
  }, E.set = function(b, _) {
@@ -324,14 +324,14 @@ var $t = { exports: {} };
324
324
  if (O === $) return this.set($, this.$y + b);
325
325
  if (O === w) return P(1);
326
326
  if (O === k) return P(7);
327
- var Y = (i = {}, i[S] = e, i[q] = r, i[T] = t, i)[O] || 1, re = this.$d.getTime() + b * Y;
328
- return B.w(re, this);
327
+ var Y = (i = {}, i[S] = e, i[q] = r, i[T] = t, i)[O] || 1, ae = this.$d.getTime() + b * Y;
328
+ return B.w(ae, this);
329
329
  }, E.subtract = function(b, _) {
330
330
  return this.add(-1 * b, _);
331
331
  }, E.format = function(b) {
332
332
  var _ = this, i = this.$locale();
333
333
  if (!this.isValid()) return i.invalidDate || N;
334
- var d = b || "YYYY-MM-DDTHH:mm:ssZ", O = B.z(this), P = this.$H, Y = this.$m, re = this.$M, ie = i.weekdays, pe = i.months, s = i.meridiem, W = function(ge, ke, Te, l) {
334
+ var d = b || "YYYY-MM-DDTHH:mm:ssZ", O = B.z(this), P = this.$H, Y = this.$m, ae = this.$M, ie = i.weekdays, pe = i.months, s = i.meridiem, W = function(ge, ke, Te, l) {
335
335
  return ge && (ge[ke] || ge(_, d)) || Te[ke].slice(0, l);
336
336
  }, ue = function(ge) {
337
337
  return B.s(P % 12 || 12, ge, "0");
@@ -339,7 +339,7 @@ var $t = { exports: {} };
339
339
  var l = ge < 12 ? "AM" : "PM";
340
340
  return Te ? l.toLowerCase() : l;
341
341
  };
342
- return d.replace(le, function(ge, ke) {
342
+ return d.replace(oe, function(ge, ke) {
343
343
  return ke || function(Te) {
344
344
  switch (Te) {
345
345
  case "YY":
@@ -347,13 +347,13 @@ var $t = { exports: {} };
347
347
  case "YYYY":
348
348
  return B.s(_.$y, 4, "0");
349
349
  case "M":
350
- return re + 1;
350
+ return ae + 1;
351
351
  case "MM":
352
- return B.s(re + 1, 2, "0");
352
+ return B.s(ae + 1, 2, "0");
353
353
  case "MMM":
354
- return W(i.monthsShort, re, pe, 3);
354
+ return W(i.monthsShort, ae, pe, 3);
355
355
  case "MMMM":
356
- return W(pe, re);
356
+ return W(pe, ae);
357
357
  case "D":
358
358
  return _.$D;
359
359
  case "DD":
@@ -397,7 +397,7 @@ var $t = { exports: {} };
397
397
  }, E.utcOffset = function() {
398
398
  return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
399
399
  }, E.diff = function(b, _, i) {
400
- var d, O = this, P = B.p(_), Y = g(b), re = (Y.utcOffset() - this.utcOffset()) * e, ie = this - Y, pe = function() {
400
+ var d, O = this, P = B.p(_), Y = g(b), ae = (Y.utcOffset() - this.utcOffset()) * e, ie = this - Y, pe = function() {
401
401
  return B.m(O, Y);
402
402
  };
403
403
  switch (P) {
@@ -411,10 +411,10 @@ var $t = { exports: {} };
411
411
  d = pe() / 3;
412
412
  break;
413
413
  case k:
414
- d = (ie - re) / 6048e5;
414
+ d = (ie - ae) / 6048e5;
415
415
  break;
416
416
  case w:
417
- d = (ie - re) / 864e5;
417
+ d = (ie - ae) / 864e5;
418
418
  break;
419
419
  case q:
420
420
  d = ie / r;
@@ -435,7 +435,7 @@ var $t = { exports: {} };
435
435
  return he[this.$L];
436
436
  }, E.locale = function(b, _) {
437
437
  if (!b) return this.$L;
438
- var i = this.clone(), d = C(b, _, !0);
438
+ var i = this.clone(), d = D(b, _, !0);
439
439
  return d && (i.$L = d), i;
440
440
  }, E.clone = function() {
441
441
  return B.w(this.$d, this);
@@ -448,14 +448,14 @@ var $t = { exports: {} };
448
448
  }, E.toString = function() {
449
449
  return this.$d.toUTCString();
450
450
  }, x;
451
- }(), oe = J.prototype;
452
- return g.prototype = oe, [["$ms", v], ["$s", T], ["$m", S], ["$H", q], ["$W", w], ["$M", L], ["$y", $], ["$D", u]].forEach(function(x) {
453
- oe[x[1]] = function(E) {
451
+ }(), re = J.prototype;
452
+ return g.prototype = re, [["$ms", v], ["$s", T], ["$m", S], ["$H", q], ["$W", w], ["$M", L], ["$y", $], ["$D", u]].forEach(function(x) {
453
+ re[x[1]] = function(E) {
454
454
  return this.$g(E, x[0], x[1]);
455
455
  };
456
456
  }), g.extend = function(x, E) {
457
457
  return x.$i || (x(E, J, g), x.$i = !0), g;
458
- }, g.locale = C, g.isDayjs = V, g.unix = function(x) {
458
+ }, g.locale = D, g.isDayjs = V, g.unix = function(x) {
459
459
  return g(1e3 * x);
460
460
  }, g.en = he[fe], g.Ls = he, g.p = {}, g;
461
461
  });
@@ -491,10 +491,10 @@ const Ke = /* @__PURE__ */ Ut(jt), Rt = {
491
491
  if (typeof u == "string")
492
492
  q.value = [{ label: u, value: f.value }];
493
493
  else {
494
- const N = u == null ? void 0 : u.map((te, le) => ({
495
- ...te,
496
- value: te.value ?? te.label ?? le,
497
- label: te.label || "未知选项"
494
+ const N = u == null ? void 0 : u.map((le, oe) => ({
495
+ ...le,
496
+ value: le.value ?? le.label ?? oe,
497
+ label: le.label || "未知选项"
498
498
  }));
499
499
  q.value = N || [];
500
500
  }
@@ -503,11 +503,11 @@ const Ke = /* @__PURE__ */ Ut(jt), Rt = {
503
503
  }
504
504
  };
505
505
  return Le(async () => {
506
- var N, te;
507
- e && e["remote-method"] && (k.value["remote-method"] = L), (te = (N = T[r]) == null ? void 0 : N.options) != null && te.length && (q.value = T[r].options);
508
- const $ = (le, K = "options", se = T[r]) => {
506
+ var N, le;
507
+ e && e["remote-method"] && (k.value["remote-method"] = L), (le = (N = T[r]) == null ? void 0 : N.options) != null && le.length && (q.value = T[r].options);
508
+ const $ = (oe, K = "options", se = T[r]) => {
509
509
  typeof e.getDicts == "function" && ne(K).catch((ye) => {
510
- console.error(`Failed to load ${K} for ${le}:`, ye);
510
+ console.error(`Failed to load ${K} for ${oe}:`, ye);
511
511
  });
512
512
  };
513
513
  ["radio", "radio-button", "checkbox-group", "checkbox-group-button", "select", "cascader"].includes(v) && $(v), v === ce.TREESELECT && await (async () => {
@@ -518,10 +518,10 @@ const Ke = /* @__PURE__ */ Ut(jt), Rt = {
518
518
  }
519
519
  })();
520
520
  }), ($, u) => {
521
- var re, ie, pe;
522
- const N = R("el-radio"), te = R("el-radio-group"), le = R("el-radio-button"), K = R("el-checkbox"), se = R("el-checkbox-group"), ye = R("el-checkbox-button"), fe = R("g-select-option"), he = R("el-option"), p = R("el-select"), V = R("el-tree-select"), C = R("el-time-picker"), g = R("el-time-select"), B = R("el-date-picker"), J = R("el-color-picker"), oe = R("el-rate"), x = R("el-slider"), E = R("el-switch"), b = R("el-transfer"), _ = R("el-cascader"), i = R("el-button"), d = R("el-upload"), O = R("el-autocomplete"), P = R("el-input-number"), Y = R("el-input");
521
+ var ae, ie, pe;
522
+ const N = R("el-radio"), le = R("el-radio-group"), oe = R("el-radio-button"), K = R("el-checkbox"), se = R("el-checkbox-group"), ye = R("el-checkbox-button"), fe = R("g-select-option"), he = R("el-option"), p = R("el-select"), V = R("el-tree-select"), D = R("el-time-picker"), g = R("el-time-select"), B = R("el-date-picker"), J = R("el-color-picker"), re = R("el-rate"), x = R("el-slider"), E = R("el-switch"), b = R("el-transfer"), _ = R("el-cascader"), i = R("el-button"), d = R("el-upload"), O = R("el-autocomplete"), P = R("el-input-number"), Y = R("el-input");
523
523
  return n(), A("div", Rt, [
524
- o(v) == o(ce).RADIO ? (n(), F(te, M({
524
+ o(v) == o(ce).RADIO ? (n(), F(le, M({
525
525
  key: 0,
526
526
  modelValue: f.value,
527
527
  "onUpdate:modelValue": u[0] || (u[0] = (s) => f.value = s)
@@ -537,14 +537,14 @@ const Ke = /* @__PURE__ */ Ut(jt), Rt = {
537
537
  ])
538
538
  ]),
539
539
  _: 3
540
- }, 16, ["modelValue"])) : o(v) == o(ce).RADIOBUTTON ? (n(), F(te, M({
540
+ }, 16, ["modelValue"])) : o(v) == o(ce).RADIOBUTTON ? (n(), F(le, M({
541
541
  key: 1,
542
542
  modelValue: f.value,
543
543
  "onUpdate:modelValue": u[1] || (u[1] = (s) => f.value = s)
544
544
  }, o(e)), {
545
545
  default: h(() => [
546
546
  m($.$slots, `${t.t}-${o(r)}`, { data: o(e) }, () => [
547
- (n(!0), A(H, null, I(q.value, (s) => (n(), F(le, M({ ref_for: !0 }, s), {
547
+ (n(!0), A(H, null, I(q.value, (s) => (n(), F(oe, M({ ref_for: !0 }, s), {
548
548
  default: h(() => [
549
549
  m($.$slots, `${t.t}-${o(r)}-options`, { option: s })
550
550
  ]),
@@ -683,7 +683,7 @@ const Ke = /* @__PURE__ */ Ut(jt), Rt = {
683
683
  ]),
684
684
  _: 2
685
685
  }, [
686
- (re = o(e)) != null && re.columns ? {
686
+ (ae = o(e)) != null && ae.columns ? {
687
687
  name: "header",
688
688
  fn: h(() => {
689
689
  var s;
@@ -722,7 +722,7 @@ const Ke = /* @__PURE__ */ Ut(jt), Rt = {
722
722
  m($.$slots, `${t.t}-${o(r)}-${s}`, { data: W })
723
723
  ])
724
724
  }))
725
- ]), 1040, ["modelValue", "placeholder", "data"])) : o(v) == o(ce).TIME ? (n(), F(C, M({
725
+ ]), 1040, ["modelValue", "placeholder", "data"])) : o(v) == o(ce).TIME ? (n(), F(D, M({
726
726
  key: 7,
727
727
  modelValue: f.value,
728
728
  "onUpdate:modelValue": u[7] || (u[7] = (s) => f.value = s),
@@ -769,7 +769,7 @@ const Ke = /* @__PURE__ */ Ut(jt), Rt = {
769
769
  key: 11,
770
770
  modelValue: f.value,
771
771
  "onUpdate:modelValue": u[11] || (u[11] = (s) => f.value = s)
772
- }, o(e)), null, 16, ["modelValue"])) : o(v) == o(ce).RATE ? (n(), F(oe, M({
772
+ }, o(e)), null, 16, ["modelValue"])) : o(v) == o(ce).RATE ? (n(), F(re, M({
773
773
  key: 12,
774
774
  modelValue: f.value,
775
775
  "onUpdate:modelValue": u[12] || (u[12] = (s) => f.value = s)
@@ -964,15 +964,15 @@ const Ke = /* @__PURE__ */ Ut(jt), Rt = {
964
964
  (ye = t.value) == null ? void 0 : ye.form
965
965
  );
966
966
  const S = async (p, V) => {
967
- let C = 5;
968
- for (; C > 0; ) {
967
+ let D = 5;
968
+ for (; D > 0; ) {
969
969
  if (await yt(), r.value) {
970
970
  r.value.validate((g, B) => {
971
971
  g ? e("submit", p, V) : console.log("表单验证不通过!", B);
972
972
  });
973
973
  return;
974
974
  }
975
- C--, await new Promise((g) => setTimeout(g, 50));
975
+ D--, await new Promise((g) => setTimeout(g, 50));
976
976
  }
977
977
  console.error("表单实例获取失败,请检查组件状态");
978
978
  };
@@ -1013,38 +1013,38 @@ const Ke = /* @__PURE__ */ Ut(jt), Rt = {
1013
1013
  validate: void 0
1014
1014
  }, ...p };
1015
1015
  g.required && V.push({ required: !0, message: `${g.label}不能为空!`, trigger: "blur" }), g.max && g.min && V.push({
1016
- validator: (B, J, oe) => {
1017
- J && p.type == "number" && (J < g.min || J > g.max) ? oe(new Error(`${g.label} 必须在 ${g.min} 和 ${g.max} 之间!`)) : J && p.type !== "number" && (J.toString().length < g.min || J.toString().length > g.max) ? oe(new Error(`字符长度必须在 ${g.min} 和 ${g.max} 之间!`)) : oe();
1016
+ validator: (B, J, re) => {
1017
+ J && p.type == "number" && (J < g.min || J > g.max) ? re(new Error(`${g.label} 必须在 ${g.min} 和 ${g.max} 之间!`)) : J && p.type !== "number" && (J.toString().length < g.min || J.toString().length > g.max) ? re(new Error(`字符长度必须在 ${g.min} 和 ${g.max} 之间!`)) : re();
1018
1018
  }
1019
1019
  }), g.max && !g.min && p.type == "number" && V.push({
1020
- validator: (B, J, oe) => {
1021
- J && J > g.max ? oe(new Error(`${g.label}不能大于${g.max}!`)) : oe();
1020
+ validator: (B, J, re) => {
1021
+ J && J > g.max ? re(new Error(`${g.label}不能大于${g.max}!`)) : re();
1022
1022
  }
1023
1023
  }), g.min && !g.max && p.type == "number" && V.push({
1024
- validator: (B, J, oe) => {
1025
- J && J < g.min ? oe(new Error(`${g.label}不能小于${g.min}!`)) : oe();
1024
+ validator: (B, J, re) => {
1025
+ J && J < g.min ? re(new Error(`${g.label}不能小于${g.min}!`)) : re();
1026
1026
  }
1027
1027
  }), g.type == "email" && V.push({ type: "email", message: "不是一个正确的邮箱地址!" }), g.type == "url" && V.push({ type: "url", message: "不是一个合正确的URL!" }), g.pattern && V.push({ pattern: g == null ? void 0 : g.pattern, message: (g == null ? void 0 : g.message) || "格式不正确!" }), g.validate && V.push({
1028
- validator: (B, J, oe) => g.validate(B, J, oe)
1028
+ validator: (B, J, re) => g.validate(B, J, re)
1029
1029
  });
1030
1030
  }
1031
1031
  return V;
1032
1032
  }, L = (p, V = !1) => {
1033
- var B, J, oe, x, E;
1034
- const C = V ? p : p == null ? void 0 : p.item, g = typeof (C == null ? void 0 : C.editor) == "function" ? C.editor(N.value, (B = t.value.form) == null ? void 0 : B.modalState) : (C == null ? void 0 : C.editor) || {};
1033
+ var B, J, re, x, E;
1034
+ const D = V ? p : p == null ? void 0 : p.item, g = typeof (D == null ? void 0 : D.editor) == "function" ? D.editor(N.value, (B = t.value.form) == null ? void 0 : B.modalState) : (D == null ? void 0 : D.editor) || {};
1035
1035
  if (((J = t.value.form) == null ? void 0 : J.modalState) === "edit") {
1036
- const b = typeof (C == null ? void 0 : C.editor) == "object" ? (oe = C.editor) == null ? void 0 : oe.ep : typeof (C == null ? void 0 : C.editor) == "function" ? g == null ? void 0 : g.ep : {};
1036
+ const b = typeof (D == null ? void 0 : D.editor) == "object" ? (re = D.editor) == null ? void 0 : re.ep : typeof (D == null ? void 0 : D.editor) == "function" ? g == null ? void 0 : g.ep : {};
1037
1037
  return { ...g, ...b };
1038
1038
  }
1039
1039
  if (((x = t.value.form) == null ? void 0 : x.modalState) === "add") {
1040
- const b = typeof (C == null ? void 0 : C.editor) == "object" ? (E = C.editor) == null ? void 0 : E.ap : typeof (C == null ? void 0 : C.editor) == "function" ? g == null ? void 0 : g.ap : {};
1040
+ const b = typeof (D == null ? void 0 : D.editor) == "object" ? (E = D.editor) == null ? void 0 : E.ap : typeof (D == null ? void 0 : D.editor) == "function" ? g == null ? void 0 : g.ap : {};
1041
1041
  return { ...g, ...b };
1042
1042
  }
1043
1043
  return g;
1044
1044
  }, ne = (p) => {
1045
- var C, g, B, J, oe;
1046
- const V = typeof p.editor == "function" ? p.editor(N.value, (C = t.value.form) == null ? void 0 : C.modalState) : p.editor;
1047
- return ((g = t.value.form) == null ? void 0 : g.modalState) === "edit" ? ((B = V == null ? void 0 : V.ep) == null ? void 0 : B.type) ?? (V == null ? void 0 : V.type) ?? p.type : ((J = t.value.form) == null ? void 0 : J.modalState) === "add" ? ((oe = V == null ? void 0 : V.ap) == null ? void 0 : oe.type) ?? (V == null ? void 0 : V.type) ?? p.type : (V == null ? void 0 : V.type) ?? p.type;
1045
+ var D, g, B, J, re;
1046
+ const V = typeof p.editor == "function" ? p.editor(N.value, (D = t.value.form) == null ? void 0 : D.modalState) : p.editor;
1047
+ return ((g = t.value.form) == null ? void 0 : g.modalState) === "edit" ? ((B = V == null ? void 0 : V.ep) == null ? void 0 : B.type) ?? (V == null ? void 0 : V.type) ?? p.type : ((J = t.value.form) == null ? void 0 : J.modalState) === "add" ? ((re = V == null ? void 0 : V.ap) == null ? void 0 : re.type) ?? (V == null ? void 0 : V.type) ?? p.type : (V == null ? void 0 : V.type) ?? p.type;
1048
1048
  };
1049
1049
  Le(() => {
1050
1050
  $();
@@ -1055,23 +1055,23 @@ const Ke = /* @__PURE__ */ Ut(jt), Rt = {
1055
1055
  for (const [p, V] of Object.entries(u.value))
1056
1056
  t.value[p].formItem = { ...t.value[p].formItem, ...V.formItem }, t.value[p].formItem.style = { ...t.value[p].formItem.style, ...V.formItem.style };
1057
1057
  }, u = Ie(() => Object.fromEntries(Object.entries(t.value).filter((p) => p[1].type != "hidden").filter((p) => !["table", "tableColumns", "query", "queryItems"].includes(p[0])).filter((p) => p[1].editor !== !1).filter((p) => p[1].type !== "control").filter((p) => {
1058
- var C, g, B;
1059
- const V = typeof p[1].editor == "function" ? p[1].editor(N.value, (C = t.value.form) == null ? void 0 : C.modalState) : p[1].editor;
1058
+ var D, g, B;
1059
+ const V = typeof p[1].editor == "function" ? p[1].editor(N.value, (D = t.value.form) == null ? void 0 : D.modalState) : p[1].editor;
1060
1060
  return t.value.form.modalState === "edit" ? ((g = V == null ? void 0 : V.ep) == null ? void 0 : g.editor) !== !1 : t.value.form.modalState === "add" ? ((B = V == null ? void 0 : V.ap) == null ? void 0 : B.editor) !== !1 : !0;
1061
- }).map((p) => [p[0], p[1]]))), N = Ie(() => Object.fromEntries(Object.entries(t.value).filter((p) => p[1].type != "hidden").filter((p) => p[1].type != "control").map((p) => [p[0], p[1].value]))), te = Ie(() => {
1061
+ }).map((p) => [p[0], p[1]]))), N = Ie(() => Object.fromEntries(Object.entries(t.value).filter((p) => p[1].type != "hidden").filter((p) => p[1].type != "control").map((p) => [p[0], p[1].value]))), le = Ie(() => {
1062
1062
  const p = /* @__PURE__ */ new Map();
1063
- return Object.entries(u.value).forEach(([V, C]) => {
1064
- if (C.groupName) {
1065
- const g = C.groupName;
1063
+ return Object.entries(u.value).forEach(([V, D]) => {
1064
+ if (D.groupName) {
1065
+ const g = D.groupName;
1066
1066
  p.has(g) || p.set(g, {
1067
1067
  groupName: g,
1068
1068
  items: []
1069
- }), p.get(g).items.push({ key: V, item: C });
1069
+ }), p.get(g).items.push({ key: V, item: D });
1070
1070
  }
1071
1071
  }), p.forEach((V) => {
1072
- V.tabPane = De(...V.items.map(({ item: C }) => C.tabPane || {}));
1072
+ V.tabPane = De(...V.items.map(({ item: D }) => D.tabPane || {}));
1073
1073
  }), Array.from(p.values());
1074
- }), le = [
1074
+ }), oe = [
1075
1075
  {
1076
1076
  name: "f-submit",
1077
1077
  label: t.value.form.submit.label,
@@ -1094,9 +1094,9 @@ const Ke = /* @__PURE__ */ Ut(jt), Rt = {
1094
1094
  originalOrder: 1
1095
1095
  // 添加原始顺序标识
1096
1096
  }
1097
- ], K = Ie(() => le.filter((p) => !p.hidden).sort((p, V) => p.sort - V.sort || p.originalOrder - V.originalOrder));
1097
+ ], K = Ie(() => oe.filter((p) => !p.hidden).sort((p, V) => p.sort - V.sort || p.originalOrder - V.originalOrder));
1098
1098
  return (p, V) => {
1099
- const C = R("el-form-item"), g = R("el-col"), B = R("el-tab-pane"), J = R("el-tabs"), oe = R("el-button"), x = R("el-form");
1099
+ const D = R("el-form-item"), g = R("el-col"), B = R("el-tab-pane"), J = R("el-tabs"), re = R("el-button"), x = R("el-form");
1100
1100
  return n(), F(x, M({
1101
1101
  ref_key: "gform",
1102
1102
  ref: r,
@@ -1104,17 +1104,17 @@ const Ke = /* @__PURE__ */ Ut(jt), Rt = {
1104
1104
  style: { width: "98%", padding: 0, margin: 0, "box-sizing": "border-box" }
1105
1105
  }, o(Fe)(t.value.form, (E) => !["footer", "submit", "reset", "slots", "type", "sort"].includes(E)), { class: "g-form-container" }), {
1106
1106
  default: h(() => [
1107
- te.value.length > 0 ? m(p.$slots, "default", { key: 0 }, () => {
1107
+ le.value.length > 0 ? m(p.$slots, "default", { key: 0 }, () => {
1108
1108
  var E, b, _;
1109
1109
  return [
1110
1110
  Q(J, M({
1111
1111
  class: "demo-tabs",
1112
- modelValue: te.value[0].groupName,
1113
- "onUpdate:modelValue": V[0] || (V[0] = (i) => te.value[0].groupName = i),
1112
+ modelValue: le.value[0].groupName,
1113
+ "onUpdate:modelValue": V[0] || (V[0] = (i) => le.value[0].groupName = i),
1114
1114
  style: { width: "100%" }
1115
1115
  }, t.value.form.tabs), {
1116
1116
  default: h(() => [
1117
- (n(!0), A(H, null, I(te.value, (i) => (n(), F(B, M({
1117
+ (n(!0), A(H, null, I(le.value, (i) => (n(), F(B, M({
1118
1118
  key: i.groupName,
1119
1119
  label: i.groupName,
1120
1120
  name: i.groupName,
@@ -1129,7 +1129,7 @@ const Ke = /* @__PURE__ */ Ut(jt), Rt = {
1129
1129
  default: h(() => {
1130
1130
  var P, Y;
1131
1131
  return [
1132
- Q(C, M({
1132
+ Q(D, M({
1133
1133
  label: d == null ? void 0 : d.item.label,
1134
1134
  prop: `${d.key}.value`,
1135
1135
  rules: k(d == null ? void 0 : d.item),
@@ -1142,7 +1142,7 @@ const Ke = /* @__PURE__ */ Ut(jt), Rt = {
1142
1142
  }, () => [
1143
1143
  (n(), F(Qe, {
1144
1144
  modelValue: t.value[d.key].value,
1145
- "onUpdate:modelValue": (re) => t.value[d.key].value = re,
1145
+ "onUpdate:modelValue": (ae) => t.value[d.key].value = ae,
1146
1146
  item: L(d),
1147
1147
  ctrlKey: d.key,
1148
1148
  ctrlType: ne(d == null ? void 0 : d.item),
@@ -1152,7 +1152,7 @@ const Ke = /* @__PURE__ */ Ut(jt), Rt = {
1152
1152
  t: "f",
1153
1153
  formInfo: N.value
1154
1154
  }, de({ _: 2 }, [
1155
- I(p.$slots, (re, ie) => ({
1155
+ I(p.$slots, (ae, ie) => ({
1156
1156
  name: ie,
1157
1157
  fn: h((pe) => [
1158
1158
  m(p.$slots, ie, {
@@ -1185,7 +1185,7 @@ const Ke = /* @__PURE__ */ Ut(jt), Rt = {
1185
1185
  (n(!0), A(H, null, I(K.value, (i) => (n(), A(H, null, [
1186
1186
  m(p.$slots, i.name + "-left"),
1187
1187
  m(p.$slots, i.name, {}, () => [
1188
- Q(oe, M({ ref_for: !0 }, i.info, {
1188
+ Q(re, M({ ref_for: !0 }, i.info, {
1189
1189
  onClick: dt((d) => i.click(N.value, t.value), ["stop"])
1190
1190
  }), {
1191
1191
  default: h(() => [
@@ -1210,7 +1210,7 @@ const Ke = /* @__PURE__ */ Ut(jt), Rt = {
1210
1210
  default: h(() => {
1211
1211
  var O;
1212
1212
  return [
1213
- Q(C, M({
1213
+ Q(D, M({
1214
1214
  label: i.label,
1215
1215
  prop: `${d}.value`,
1216
1216
  rules: k(i),
@@ -1244,9 +1244,9 @@ const Ke = /* @__PURE__ */ Ut(jt), Rt = {
1244
1244
  }, de({ _: 2 }, [
1245
1245
  I(p.$slots, (P, Y) => ({
1246
1246
  name: Y,
1247
- fn: h((re) => [
1247
+ fn: h((ae) => [
1248
1248
  m(p.$slots, Y, {
1249
- data: re,
1249
+ data: ae,
1250
1250
  item: i,
1251
1251
  model: t.value
1252
1252
  })
@@ -1269,7 +1269,7 @@ const Ke = /* @__PURE__ */ Ut(jt), Rt = {
1269
1269
  (n(!0), A(H, null, I(K.value, (i) => (n(), A(H, null, [
1270
1270
  m(p.$slots, i.name + "-left"),
1271
1271
  m(p.$slots, i.name, {}, () => [
1272
- Q(oe, M({ ref_for: !0 }, i.info, {
1272
+ Q(re, M({ ref_for: !0 }, i.info, {
1273
1273
  onClick: dt((d) => i.click(N.value, t.value), ["stop"])
1274
1274
  }), {
1275
1275
  default: h(() => [
@@ -1444,23 +1444,23 @@ const Ke = /* @__PURE__ */ Ut(jt), Rt = {
1444
1444
  };
1445
1445
  t.value.queryItems = De(k, r == null ? void 0 : r.queryItems, t.value.queryItems);
1446
1446
  const L = (u, N) => {
1447
- const te = Object.keys(u.slots).filter((le) => le !== "default").reduce((le, K) => (le[K] = (se) => u.slots[K]({
1447
+ const le = Object.keys(u.slots).filter((oe) => oe !== "default").reduce((oe, K) => (oe[K] = (se) => u.slots[K]({
1448
1448
  model: t.value
1449
1449
  // 传递当前模型数据
1450
- }), le), {});
1450
+ }), oe), {});
1451
1451
  return Se(mt, {
1452
1452
  modelValue: t.value,
1453
- "onUpdate:modelValue": (le) => t.value = le,
1453
+ "onUpdate:modelValue": (oe) => t.value = oe,
1454
1454
  info: S.value,
1455
- "onUpdate:info": (le) => S.value = le,
1455
+ "onUpdate:info": (oe) => S.value = oe,
1456
1456
  more: N
1457
- }, te);
1457
+ }, le);
1458
1458
  }, ne = ht(), $ = () => {
1459
- var te, le, K, se, ye, fe, he, p, V;
1459
+ var le, oe, K, se, ye, fe, he, p, V;
1460
1460
  const u = [
1461
1461
  {
1462
1462
  key: "query",
1463
- hidden: (K = (le = (te = t.value) == null ? void 0 : te.query) == null ? void 0 : le.query) == null ? void 0 : K.hidden,
1463
+ hidden: (K = (oe = (le = t.value) == null ? void 0 : le.query) == null ? void 0 : oe.query) == null ? void 0 : K.hidden,
1464
1464
  component: _e,
1465
1465
  props: {
1466
1466
  ...t.value.query.query,
@@ -1492,18 +1492,18 @@ const Ke = /* @__PURE__ */ Ut(jt), Rt = {
1492
1492
  sort: t.value.query.more.sort || 0,
1493
1493
  content: t.value.query.more.mode === 3 ? () => Se(We, {
1494
1494
  class: "query-form",
1495
- ...Fe(t.value.query, (C) => !["query", "more", "reset"].includes(C))
1495
+ ...Fe(t.value.query, (D) => !["query", "more", "reset"].includes(D))
1496
1496
  }, () => L({ slots: ne }, !0)) : null
1497
1497
  }
1498
1498
  ];
1499
- return u.sort((C, g) => C.sort - g.sort), u.filter((C) => !C.hidden).map((C) => C.key === "more" && C.component === Ze ? Se(Ze, C.props, {
1500
- reference: () => Se(_e, t.value.query.more, () => C.label),
1501
- default: C.content
1502
- }) : (C.props.slot = "query-" + C.key, C.label ? Se(C.component, C.props, () => C.label) : Se(C.component, C.props)));
1499
+ return u.sort((D, g) => D.sort - g.sort), u.filter((D) => !D.hidden).map((D) => D.key === "more" && D.component === Ze ? Se(Ze, D.props, {
1500
+ reference: () => Se(_e, t.value.query.more, () => D.label),
1501
+ default: D.content
1502
+ }) : (D.props.slot = "query-" + D.key, D.label ? Se(D.component, D.props, () => D.label) : Se(D.component, D.props)));
1503
1503
  };
1504
1504
  return (u, N) => {
1505
- var K, se, ye, fe, he, p, V, C, g, B, J, oe, x, E, b, _, i;
1506
- const te = R("el-form-item"), le = R("el-drawer");
1505
+ var K, se, ye, fe, he, p, V, D, g, B, J, re, x, E, b, _, i;
1506
+ const le = R("el-form-item"), oe = R("el-drawer");
1507
1507
  return n(), A("div", {
1508
1508
  class: "g-query-container",
1509
1509
  style: Me((se = (K = t.value.query) == null ? void 0 : K.container) == null ? void 0 : se.style)
@@ -1513,9 +1513,9 @@ const Ke = /* @__PURE__ */ Ut(jt), Rt = {
1513
1513
  var d, O;
1514
1514
  return [
1515
1515
  (n(), F(Ae(L({ slots: u.$slots }, void 0)))),
1516
- ((O = (d = t.value.query) == null ? void 0 : d.container) == null ? void 0 : O.inline) === !0 ? (n(), F(te, { key: 0 }, {
1516
+ ((O = (d = t.value.query) == null ? void 0 : d.container) == null ? void 0 : O.inline) === !0 ? (n(), F(le, { key: 0 }, {
1517
1517
  default: h(() => {
1518
- var P, Y, re, ie, pe;
1518
+ var P, Y, ae, ie, pe;
1519
1519
  return [
1520
1520
  G("div", {
1521
1521
  style: Me((Y = (P = t.value.query) == null ? void 0 : P.btns) == null ? void 0 : Y.style)
@@ -1529,7 +1529,7 @@ const Ke = /* @__PURE__ */ Ut(jt), Rt = {
1529
1529
  ]),
1530
1530
  _: 3
1531
1531
  })) : (n(), A(H, { key: 1 }, [
1532
- (pe = (ie = (re = t.value) == null ? void 0 : re.query) == null ? void 0 : ie.btns) != null && pe.group ? (n(), F(o(Ye), { key: 0 }, {
1532
+ (pe = (ie = (ae = t.value) == null ? void 0 : ae.query) == null ? void 0 : ie.btns) != null && pe.group ? (n(), F(o(Ye), { key: 0 }, {
1533
1533
  default: h(() => [
1534
1534
  (n(!0), A(H, null, I($(), (s) => m(u.$slots, s.props.slot, {}, () => [
1535
1535
  (n(), F(Ae(s)))
@@ -1563,7 +1563,7 @@ const Ke = /* @__PURE__ */ Ut(jt), Rt = {
1563
1563
  ]),
1564
1564
  _: 3
1565
1565
  })) : (n(), A(H, { key: 1 }, [
1566
- (g = (C = t.value.query) == null ? void 0 : C.btns) != null && g.group ? (n(), F(o(Ye), { key: 0 }, {
1566
+ (g = (D = t.value.query) == null ? void 0 : D.btns) != null && g.group ? (n(), F(o(Ye), { key: 0 }, {
1567
1567
  default: h(() => [
1568
1568
  (n(!0), A(H, null, I($(), (d) => m(u.$slots, d.props.slot, {}, () => [
1569
1569
  (n(), F(Ae(d)))
@@ -1599,7 +1599,7 @@ const Ke = /* @__PURE__ */ Ut(jt), Rt = {
1599
1599
  }),
1600
1600
  _: 1
1601
1601
  }),
1602
- v.value && !((oe = (J = (B = t.value) == null ? void 0 : B.query) == null ? void 0 : J.more) != null && oe.hidden) && t.value.query.more.mode == 2 ? (n(), F(le, M({
1602
+ v.value && !((re = (J = (B = t.value) == null ? void 0 : B.query) == null ? void 0 : J.more) != null && re.hidden) && t.value.query.more.mode == 2 ? (n(), F(oe, M({
1603
1603
  key: 1,
1604
1604
  modelValue: v.value,
1605
1605
  "onUpdate:modelValue": N[4] || (N[4] = (d) => v.value = d),
@@ -1987,27 +1987,27 @@ const al = {
1987
1987
  load: () => {
1988
1988
  let { currentPage: l, pageSize: a } = e.value.table.page;
1989
1989
  try {
1990
- t("load", { currentPage: l, pageSize: a, ...v.value }, (y, U, { fields: X, sums: Z }) => {
1990
+ t("load", { currentPage: l, pageSize: a, ...v.value }, (y, j, { fields: X = [], sums: Z = {} } = {}) => {
1991
1991
  if (!Array.isArray(y)) {
1992
1992
  console.error("从 load 事件回调中接收到的数据不是数组格式。"), Ve.error("数据加载失败,请检查数据格式。");
1993
1993
  return;
1994
1994
  }
1995
- if (typeof U != "number") {
1995
+ if (typeof j != "number") {
1996
1996
  console.error("从 load 事件回调中接收到的 total 不是数字格式。"), Ve.error("数据加载失败,请检查数据格式。");
1997
1997
  return;
1998
1998
  }
1999
- e.value.table.data = y, e.value.table.page.total = U, $.value = X, ne.value = Z, ie();
1999
+ e.value.table.data = y, e.value.table.page.total = j, $.value = X, ne.value = Z, ie();
2000
2000
  });
2001
2001
  } catch (y) {
2002
2002
  console.error("触发 load 事件时出现错误:", y), Ve.error("数据加载时出现错误,请稍后重试。");
2003
2003
  }
2004
2004
  },
2005
2005
  onHeaderDragend: (l, a, y) => {
2006
- var U;
2007
- Pe((U = e.value.table) == null ? void 0 : U.user, k.name, y.property, { width: l });
2006
+ var j;
2007
+ Pe((j = e.value.table) == null ? void 0 : j.user, k.name, y.property, { width: l });
2008
2008
  },
2009
2009
  onRowDblclick: (l, a, y) => {
2010
- e.value.table.dblclickType == "edit" ? C(l, a, y, e) : e.value.table.dblclickType == "view" && B(l, a, y, e);
2010
+ e.value.table.dblclickType == "edit" ? D(l, a, y, e) : e.value.table.dblclickType == "view" && B(l, a, y, e);
2011
2011
  },
2012
2012
  style: { "min-height": "100px", backgroundColor: "var(--el-bg-color)" },
2013
2013
  page: {
@@ -2026,8 +2026,7 @@ const al = {
2026
2026
  },
2027
2027
  dblclickType: "edit",
2028
2028
  "summary-method": ({ columns: l, data: a }, y) => y,
2029
- onSortChange: ({ column: l, prop: a, order: y }, U) => {
2030
- console.log(U);
2029
+ onSortChange: ({ column: l, prop: a, order: y }, j) => {
2031
2030
  }
2032
2031
  };
2033
2032
  e.value.table = De(
@@ -2105,25 +2104,25 @@ const al = {
2105
2104
  r == null ? void 0 : r.control,
2106
2105
  (ue = e.value) == null ? void 0 : ue.control
2107
2106
  );
2108
- const te = {
2107
+ const le = {
2109
2108
  type: "hidden",
2110
2109
  minWidth: 120,
2111
2110
  align: "center",
2112
- formatter: (l, a, y, U) => y
2111
+ formatter: (l, a, y, j) => y
2113
2112
  };
2114
2113
  e.value.tableColumns = De(
2115
- te,
2114
+ le,
2116
2115
  r == null ? void 0 : r.tableColumns,
2117
2116
  (we = e.value) == null ? void 0 : we.tableColumns
2118
2117
  );
2119
- const le = {
2118
+ const oe = {
2120
2119
  type: "hidden",
2121
2120
  disabled: void 0,
2122
2121
  footer: { hidden: !1 },
2123
2122
  modalState: void 0
2124
2123
  };
2125
2124
  e.value.form = De(
2126
- le,
2125
+ oe,
2127
2126
  r == null ? void 0 : r.form,
2128
2127
  (ge = e.value) == null ? void 0 : ge.form
2129
2128
  );
@@ -2169,19 +2168,19 @@ const al = {
2169
2168
  v.value = l, e.value.table.load();
2170
2169
  }, V = (l) => {
2171
2170
  var a, y;
2172
- e.value.form.modalState = "add", (a = e.value.control) != null && a.validate("add", { m: l }) && ((y = e.value.control.add) != null && y.click ? e.value.control.add.click(l) : e.value.control.add.inline === !0 ? (e.value.table.data.unshift(ye), S.value = !0, t("open", "row-add", { initFormData: ye, addingRow: S.value })) : (e.value.form.disabled = !1, e.value.dialog.mode = e.value.control.add.mode, e.value.dialog.title = e.value.control.add.label, Object.keys(ye).forEach((U) => {
2173
- e.value[U] && (e.value[U].value = ye[U]);
2171
+ e.value.form.modalState = "add", (a = e.value.control) != null && a.validate("add", { m: l }) && ((y = e.value.control.add) != null && y.click ? e.value.control.add.click(l) : e.value.control.add.inline === !0 ? (e.value.table.data.unshift(ye), S.value = !0, t("open", "row-add", { initFormData: ye, addingRow: S.value })) : (e.value.form.disabled = !1, e.value.dialog.mode = e.value.control.add.mode, e.value.dialog.title = e.value.control.add.label, Object.keys(ye).forEach((j) => {
2172
+ e.value[j] && (e.value[j].value = ye[j]);
2174
2173
  }), T.value = !0, t("open", "add", { m: l })));
2175
- }, C = (l, a, y, U) => {
2174
+ }, D = (l, a, y, j) => {
2176
2175
  var X, Z;
2177
- e.value.form.modalState = "edit", (X = e.value.control) != null && X.validate("edit", { row: l, column: a, $index: y, m: U }) && ((Z = e.value.control.edit) != null && Z.click ? e.value.control.edit.click(l, a, y, U) : (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((Ee) => {
2176
+ e.value.form.modalState = "edit", (X = e.value.control) != null && X.validate("edit", { row: l, column: a, $index: y, m: j }) && ((Z = e.value.control.edit) != null && Z.click ? e.value.control.edit.click(l, a, y, j) : (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((Ee) => {
2178
2177
  e.value[Ee] && (e.value[Ee].value = l[Ee]);
2179
- }), T.value = !0, t("open", "edit", { m: U, row: l, column: a, $index: y })));
2180
- }, g = (l, a, y, U) => {
2178
+ }), T.value = !0, t("open", "edit", { m: j, row: l, column: a, $index: y })));
2179
+ }, g = (l, a, y, j) => {
2181
2180
  var X, Z;
2182
- if ((X = e.value.control) != null && X.validate("delete", { row: l, column: a, $index: y, m: U }))
2181
+ if ((X = e.value.control) != null && X.validate("delete", { row: l, column: a, $index: y, m: j }))
2183
2182
  if ((Z = e.value.control.delete) != null && Z.click)
2184
- e.value.control.delete.click(l, a, y, U);
2183
+ e.value.control.delete.click(l, a, y, j);
2185
2184
  else {
2186
2185
  let { message: Ee, title: Oe, options: ze } = e.value.control.delete.dialog;
2187
2186
  vt.confirm(Ee, Oe, ze).then(() => {
@@ -2191,17 +2190,17 @@ const al = {
2191
2190
  }).catch(() => {
2192
2191
  });
2193
2192
  }
2194
- }, B = (l, a, y, U) => {
2193
+ }, B = (l, a, y, j) => {
2195
2194
  var X, Z;
2196
- e.value.form.modalState = void 0, (X = e.value.control) != null && X.validate("view", { row: l, column: a, $index: y, m: U }) && ((Z = e.value.control.view) != null && Z.click ? e.value.control.view.click(l, a, y, U) : (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((Ee) => {
2195
+ e.value.form.modalState = void 0, (X = e.value.control) != null && X.validate("view", { row: l, column: a, $index: y, m: j }) && ((Z = e.value.control.view) != null && Z.click ? e.value.control.view.click(l, a, y, j) : (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((Ee) => {
2197
2196
  e.value[Ee] && (e.value[Ee].value = l[Ee]);
2198
- }), T.value = !0, t("open", "view", { m: U, row: l, column: a, $index: y })));
2199
- }, J = (l, a, y, U) => {
2197
+ }), T.value = !0, t("open", "view", { m: j, row: l, column: a, $index: y })));
2198
+ }, J = (l, a, y, j) => {
2200
2199
  var X;
2201
- (X = e.value.control.save) != null && X.click ? e.value.control.save.click(l, a, y, U) : t("row-save", { row: l, column: a, $index: y, data: e.value.table.data }, (Z) => {
2200
+ (X = e.value.control.save) != null && X.click ? e.value.control.save.click(l, a, y, j) : t("row-save", { row: l, column: a, $index: y, data: e.value.table.data }, (Z) => {
2202
2201
  Z && (e.value.table.load(), S.value = !1);
2203
2202
  });
2204
- }, oe = (l, a) => {
2203
+ }, re = (l, a) => {
2205
2204
  t("submit", e.value.form.modalState, l, a, (y) => {
2206
2205
  y && (T.value = !1, a.table.load());
2207
2206
  });
@@ -2212,7 +2211,7 @@ const al = {
2212
2211
  if ((y = l.control.download) != null && y.click)
2213
2212
  l.control.download.click(l, a);
2214
2213
  else {
2215
- let U = lt({
2214
+ let j = lt({
2216
2215
  title: l.control.download.label,
2217
2216
  size: 480,
2218
2217
  width: 600,
@@ -2221,7 +2220,7 @@ const al = {
2221
2220
  items: a,
2222
2221
  commitText: l.control.download.excelLabel,
2223
2222
  onExcel: (X, Z) => {
2224
- t("download", X, Z), U();
2223
+ t("download", X, Z), j();
2225
2224
  }
2226
2225
  })
2227
2226
  }
@@ -2245,27 +2244,27 @@ const al = {
2245
2244
  { type: "download", func: E },
2246
2245
  { type: "setting", func: b },
2247
2246
  { type: "view", func: B },
2248
- { type: "edit", func: C },
2247
+ { type: "edit", func: D },
2249
2248
  { type: "delete", func: g },
2250
2249
  { type: "save", func: J }
2251
2250
  ], d = (l) => i.filter((a) => l.includes(a.type)).map(({ type: a, func: y }) => {
2252
- var U, X, Z;
2251
+ var j, X, Z;
2253
2252
  return {
2254
2253
  name: `control-${a}`,
2255
2254
  attr: _ == null ? void 0 : _[a],
2256
2255
  func: y,
2257
- label: (U = _ == null ? void 0 : _[a]) == null ? void 0 : U.label,
2256
+ label: (j = _ == null ? void 0 : _[a]) == null ? void 0 : j.label,
2258
2257
  sort: ((X = _ == null ? void 0 : _[a]) == null ? void 0 : X.sort) || 0,
2259
2258
  groupName: ((Z = _ == null ? void 0 : _[a]) == null ? void 0 : Z.groupName) || "default"
2260
2259
  };
2261
2260
  }).sort((a, y) => a.sort - y.sort), O = (l) => d(l).reduce((a, y) => {
2262
- const U = y.groupName || "default";
2263
- return a[U] || (a[U] = []), a[U].push(y), a;
2261
+ const j = y.groupName || "default";
2262
+ return a[j] || (a[j] = []), a[j].push(y), a;
2264
2263
  }, {}), P = Ie(() => Object.fromEntries(
2265
2264
  Object.entries(e.value).filter(([l, a]) => a.type !== "hidden").filter(([l, a]) => a.visible !== !1).filter(([l, a]) => a.showCol !== !1).map(([l, a]) => (a.sort = typeof a.sort == "number" ? a.sort : 0, [l, a])).sort((l, a) => l[1].sort - a[1].sort)
2266
- )), Y = me({}), re = (l, a) => {
2267
- const y = (U, X) => {
2268
- for (const Z of U) {
2265
+ )), Y = me({}), ae = (l, a) => {
2266
+ const y = (j, X) => {
2267
+ for (const Z of j) {
2269
2268
  if (Z.value == X) return Z.label;
2270
2269
  if (Z.children) {
2271
2270
  const Ee = y(Z.children, X);
@@ -2275,9 +2274,9 @@ const al = {
2275
2274
  return null;
2276
2275
  };
2277
2276
  if (l.getDicts) {
2278
- const U = a.toString();
2279
- return Y.value[U] ? (l.options = Y.value[U], l.formatter || (l.formatter = (X, Z, Ee, Oe) => l.options && y(l.options, Ee) || Ee), Promise.resolve()) : l.getDicts(e.value.table.data).then((X) => {
2280
- Y.value[U] = X, l.options = X, l.formatter || (l.formatter = (Z, Ee, Oe, ze) => l.options && y(l.options, Oe) || Oe);
2277
+ const j = a.toString();
2278
+ return Y.value[j] ? (l.options = Y.value[j], l.formatter || (l.formatter = (X, Z, Ee, Oe) => l.options && y(l.options, Ee) || Ee), Promise.resolve()) : l.getDicts(e.value.table.data).then((X) => {
2279
+ Y.value[j] = X, l.options = X, l.formatter || (l.formatter = (Z, Ee, Oe, ze) => l.options && y(l.options, Oe) || Oe);
2281
2280
  });
2282
2281
  }
2283
2282
  return Promise.resolve();
@@ -2285,25 +2284,25 @@ const al = {
2285
2284
  const l = [];
2286
2285
  Object.keys(e.value).forEach((a) => {
2287
2286
  if (e.value[a].getDicts) {
2288
- const y = re(e.value[a], a).then(() => {
2289
- e.value.table.data.forEach((U) => {
2287
+ const y = ae(e.value[a], a).then(() => {
2288
+ e.value.table.data.forEach((j) => {
2290
2289
  var X;
2291
2290
  if (e.value[a].getDicts && ((X = e.value[a]) == null ? void 0 : X.forceString) !== !1) {
2292
- const Z = U[a];
2293
- U[a] = Z != null ? Z.toString() : Z;
2291
+ const Z = j[a];
2292
+ j[a] = Z != null ? Z.toString() : Z;
2294
2293
  }
2295
2294
  });
2296
- }).catch((U) => {
2297
- console.error(`加载字典${a}出错:`, U);
2295
+ }).catch((j) => {
2296
+ console.error(`加载字典${a}出错:`, j);
2298
2297
  });
2299
2298
  l.push(y);
2300
2299
  }
2301
2300
  }), Promise.all(l).catch((a) => {
2302
2301
  console.error("字典加载过程中发生错误:", a);
2303
2302
  });
2304
- }, pe = (l, a, y, U) => {
2303
+ }, pe = (l, a, y, j) => {
2305
2304
  var X, Z;
2306
- return l.table ? (X = l.table(a, y, U)) != null && X.auth ? (Z = l.table(a, y, U)) == null ? void 0 : Z.auth(a, y, U) : !0 : !1;
2305
+ return l.table ? (X = l.table(a, y, j)) != null && X.auth ? (Z = l.table(a, y, j)) == null ? void 0 : Z.auth(a, y, j) : !0 : !1;
2307
2306
  };
2308
2307
  return ct(() => {
2309
2308
  e.value.table.autoWatch && e.value.table.load();
@@ -2340,64 +2339,64 @@ const al = {
2340
2339
  e.value.table.autoWatch || e.value.table.load();
2341
2340
  }), (l, a) => {
2342
2341
  var He, ut, nt, st, it;
2343
- const y = R("el-button-group"), U = R("el-table-column"), X = R("el-table"), Z = R("el-pagination"), Ee = R("el-icon"), Oe = R("el-dialog"), ze = R("el-drawer");
2342
+ const y = R("el-button-group"), j = R("el-table-column"), X = R("el-table"), Z = R("el-pagination"), Ee = R("el-icon"), Oe = R("el-dialog"), ze = R("el-drawer");
2344
2343
  return n(), A(H, null, [
2345
2344
  G("div", dl, [
2346
2345
  ((ut = (He = e.value) == null ? void 0 : He.query) == null ? void 0 : ut.hidden) != !0 ? (n(), A("div", fl, [
2347
2346
  m(l.$slots, "query", {}, () => [
2348
2347
  Q(Wt, {
2349
2348
  modelValue: e.value,
2350
- "onUpdate:modelValue": a[0] || (a[0] = (j) => e.value = j),
2349
+ "onUpdate:modelValue": a[0] || (a[0] = (U) => e.value = U),
2351
2350
  onQuery: p,
2352
2351
  onReset: he
2353
2352
  }, de({
2354
2353
  "q-btns": h(() => [
2355
2354
  m(l.$slots, "q-btns", {}, () => [
2356
- (n(!0), A(H, null, I(O(["add", "download", "setting"]), (j, ae) => (n(), A(H, null, [
2357
- ae == "default" ? (n(!0), A(H, { key: 0 }, I(j, (D) => (n(), A(H, null, [
2358
- m(l.$slots, D.name + "-left", {}, void 0, !0),
2359
- (D.name === "control-add" ? D.attr.auth() && D.attr.inline === !1 : D.attr.auth()) ? m(l.$slots, D.name, { key: 0 }, () => [
2360
- D.label ? (n(), F(o(_e), M({
2355
+ (n(!0), A(H, null, I(O(["add", "download", "setting"]), (U, ee) => (n(), A(H, null, [
2356
+ ee == "default" ? (n(!0), A(H, { key: 0 }, I(U, (C) => (n(), A(H, null, [
2357
+ m(l.$slots, C.name + "-left", {}, void 0, !0),
2358
+ (C.name === "control-add" ? C.attr.auth() && C.attr.inline === !1 : C.attr.auth()) ? m(l.$slots, C.name, { key: 0 }, () => [
2359
+ C.label ? (n(), F(o(_e), M({
2361
2360
  key: 0,
2362
2361
  ref_for: !0
2363
- }, D.attr, {
2364
- onClick: (z) => D.func(e.value, w.value)
2362
+ }, C.attr, {
2363
+ onClick: (z) => C.func(e.value, w.value)
2365
2364
  }), {
2366
2365
  default: h(() => [
2367
- Ce($e(D.label), 1)
2366
+ Ce($e(C.label), 1)
2368
2367
  ]),
2369
2368
  _: 2
2370
2369
  }, 1040, ["onClick"])) : (n(), F(o(_e), M({
2371
2370
  key: 1,
2372
2371
  ref_for: !0
2373
- }, D.attr, {
2374
- onClick: (z) => D.func(e.value, w.value)
2372
+ }, C.attr, {
2373
+ onClick: (z) => C.func(e.value, w.value)
2375
2374
  }), null, 16, ["onClick"]))
2376
2375
  ], !0) : ve("", !0),
2377
- m(l.$slots, D.name + "-right", {}, void 0, !0)
2376
+ m(l.$slots, C.name + "-right", {}, void 0, !0)
2378
2377
  ], 64))), 256)) : (n(), F(y, { key: 1 }, {
2379
2378
  default: h(() => [
2380
- (n(!0), A(H, null, I(j, (D) => (n(), A(H, null, [
2381
- m(l.$slots, D.name + "-left", {}, void 0, !0),
2382
- (D.name === "control-add" ? D.attr.auth() && D.attr.inline === !1 : D.attr.auth()) ? m(l.$slots, D.name, { key: 0 }, () => [
2383
- D.label ? (n(), F(o(_e), M({
2379
+ (n(!0), A(H, null, I(U, (C) => (n(), A(H, null, [
2380
+ m(l.$slots, C.name + "-left", {}, void 0, !0),
2381
+ (C.name === "control-add" ? C.attr.auth() && C.attr.inline === !1 : C.attr.auth()) ? m(l.$slots, C.name, { key: 0 }, () => [
2382
+ C.label ? (n(), F(o(_e), M({
2384
2383
  key: 0,
2385
2384
  ref_for: !0
2386
- }, D.attr, {
2387
- onClick: (z) => D.func(e.value, w.value)
2385
+ }, C.attr, {
2386
+ onClick: (z) => C.func(e.value, w.value)
2388
2387
  }), {
2389
2388
  default: h(() => [
2390
- Ce($e(D.label), 1)
2389
+ Ce($e(C.label), 1)
2391
2390
  ]),
2392
2391
  _: 2
2393
2392
  }, 1040, ["onClick"])) : (n(), F(o(_e), M({
2394
2393
  key: 1,
2395
2394
  ref_for: !0
2396
- }, D.attr, {
2397
- onClick: (z) => D.func(e.value, w.value)
2395
+ }, C.attr, {
2396
+ onClick: (z) => C.func(e.value, w.value)
2398
2397
  }), null, 16, ["onClick"]))
2399
2398
  ], !0) : ve("", !0),
2400
- m(l.$slots, D.name + "-right", {}, void 0, !0)
2399
+ m(l.$slots, C.name + "-right", {}, void 0, !0)
2401
2400
  ], 64))), 256))
2402
2401
  ]),
2403
2402
  _: 2
@@ -2407,19 +2406,22 @@ const al = {
2407
2406
  ]),
2408
2407
  _: 2
2409
2408
  }, [
2410
- I(l.$slots, (j, ae, D) => ({
2411
- name: ae,
2409
+ I(l.$slots, (U, ee, C) => ({
2410
+ name: ee,
2412
2411
  fn: h((z) => [
2413
- m(l.$slots, ae, { model: e.value }, void 0, !0)
2412
+ m(l.$slots, ee, { model: e.value }, void 0, !0)
2414
2413
  ])
2415
2414
  }))
2416
2415
  ]), 1032, ["modelValue"])
2417
2416
  ], !0)
2418
2417
  ])) : ve("", !0),
2419
2418
  G("div", cl, [
2420
- Q(X, M({ ...l.$attrs, ...o(Fe)(e.value.table, (j) => !["dblclickType", "page"].includes(j)) }, {
2421
- "summary-method": (j) => e.value.table["summary-method"](j, { fields: $.value, sums: ne.value }),
2422
- onSortChange: a[3] || (a[3] = (j) => e.value.table.onSortChange(j, v.value))
2419
+ Q(X, M({ ...l.$attrs, ...o(Fe)(e.value.table, (U) => !["dblclickType", "page"].includes(U)) }, {
2420
+ "summary-method": (U) => e.value.table["summary-method"](U, { fields: $.value, sums: ne.value }),
2421
+ onSortChange: a[3] || (a[3] = (U) => {
2422
+ var ee, C;
2423
+ e.value.table.onSortChange(U, v.value), ((ee = U == null ? void 0 : U.column) == null ? void 0 : ee.sortable) === "custom" && ((C = e.value.table) == null || C.load());
2424
+ })
2423
2425
  }), {
2424
2426
  append: h(() => [
2425
2427
  m(l.$slots, "append", {}, void 0, !0)
@@ -2429,15 +2431,15 @@ const al = {
2429
2431
  ]),
2430
2432
  default: h(() => [
2431
2433
  m(l.$slots, "default", {}, () => [
2432
- (n(!0), A(H, null, I(P.value, (j, ae) => (n(), F(U, M({
2433
- prop: ae,
2434
- key: ae,
2434
+ (n(!0), A(H, null, I(P.value, (U, ee) => (n(), F(j, M({
2435
+ prop: ee,
2436
+ key: ee,
2435
2437
  ref_for: !0
2436
- }, { ...e.value.tableColumns, ...o(Fe)(j, (D) => q.includes(D)) }, { "header-align": "center" }), de({
2437
- header: h(({ column: D, $index: z }) => [
2438
- ae == "control" ? m(l.$slots, `${ae}-header`, {
2438
+ }, { ...e.value.tableColumns, ...o(Fe)(U, (C) => q.includes(C)) }, { "header-align": "center" }), de({
2439
+ header: h(({ column: C, $index: z }) => [
2440
+ ee == "control" ? m(l.$slots, `${ee}-header`, {
2439
2441
  key: 0,
2440
- column: D,
2442
+ column: C,
2441
2443
  $index: z
2442
2444
  }, () => [
2443
2445
  a[12] || (a[12] = G("span", null, "操作", -1)),
@@ -2448,7 +2450,7 @@ const al = {
2448
2450
  size: "small",
2449
2451
  ref_for: !0
2450
2452
  }, e.value.control.add, {
2451
- onClick: a[1] || (a[1] = (ee) => V(e.value))
2453
+ onClick: a[1] || (a[1] = (te) => V(e.value))
2452
2454
  }), {
2453
2455
  default: h(() => [
2454
2456
  Ce($e(e.value.control.add.label), 1)
@@ -2460,49 +2462,49 @@ const al = {
2460
2462
  size: "small",
2461
2463
  ref_for: !0
2462
2464
  }, e.value.control.add, {
2463
- onClick: a[2] || (a[2] = (ee) => V(e.value))
2465
+ onClick: a[2] || (a[2] = (te) => V(e.value))
2464
2466
  }), null, 16))
2465
2467
  ], 64)) : ve("", !0)
2466
- ], !0) : m(l.$slots, `${ae}-header`, {
2468
+ ], !0) : m(l.$slots, `${ee}-header`, {
2467
2469
  key: 1,
2468
- column: D,
2470
+ column: C,
2469
2471
  $index: z
2470
2472
  }, void 0, !0)
2471
2473
  ]),
2472
- "filter-icon": h((D) => [
2473
- m(l.$slots, `${ae}-filter-icon`, { data: D }, void 0, !0)
2474
+ "filter-icon": h((C) => [
2475
+ m(l.$slots, `${ee}-filter-icon`, { data: C }, void 0, !0)
2474
2476
  ]),
2475
2477
  _: 2
2476
2478
  }, [
2477
- j.type === "image" ? {
2479
+ U.type === "image" ? {
2478
2480
  name: "default",
2479
- fn: h(({ row: D, column: z, $index: ee }) => [
2480
- m(l.$slots, `${ae}`, {
2481
- row: D,
2481
+ fn: h(({ row: C, column: z, $index: te }) => [
2482
+ m(l.$slots, `${ee}`, {
2483
+ row: C,
2482
2484
  column: z,
2483
- $index: ee
2485
+ $index: te
2484
2486
  }, () => [
2485
2487
  G("img", M({
2486
2488
  style: { width: "80px", height: "80px", "object-fit": "cover", "border-radius": "3px" },
2487
- src: j.value,
2489
+ src: U.value,
2488
2490
  ref_for: !0
2489
- }, j), null, 16, ml)
2491
+ }, U), null, 16, ml)
2490
2492
  ], !0)
2491
2493
  ]),
2492
2494
  key: "0"
2493
- } : j.type === "expand" ? {
2495
+ } : U.type === "expand" ? {
2494
2496
  name: "default",
2495
- fn: h(({ row: D, column: z, $index: ee }) => [
2496
- m(l.$slots, `${ae}`, {
2497
- row: D,
2497
+ fn: h(({ row: C, column: z, $index: te }) => [
2498
+ m(l.$slots, `${ee}`, {
2499
+ row: C,
2498
2500
  column: z,
2499
- $index: ee
2501
+ $index: te
2500
2502
  }, void 0, !0)
2501
2503
  ]),
2502
2504
  key: "1"
2503
- } : j.type == "control" ? {
2505
+ } : U.type == "control" ? {
2504
2506
  name: "default",
2505
- fn: h(({ row: D, column: z, $index: ee }) => {
2507
+ fn: h(({ row: C, column: z, $index: te }) => {
2506
2508
  var je, Re;
2507
2509
  return [
2508
2510
  G("div", {
@@ -2511,28 +2513,28 @@ const al = {
2511
2513
  }, [
2512
2514
  m(l.$slots, "control", {}, () => [
2513
2515
  m(l.$slots, "control-left", {
2514
- row: D,
2516
+ row: C,
2515
2517
  column: z,
2516
- $index: ee
2518
+ $index: te
2517
2519
  }, void 0, !0),
2518
2520
  (n(!0), A(H, null, I(O(["view", "edit", "delete", "save"]), (Ne, Xe) => (n(), A(H, null, [
2519
2521
  Xe == "default" ? (n(!0), A(H, { key: 0 }, I(Ne, (be) => (n(), A(H, null, [
2520
2522
  m(l.$slots, be.name + "-left", {
2521
- row: D,
2523
+ row: C,
2522
2524
  column: z,
2523
- $index: ee
2525
+ $index: te
2524
2526
  }, void 0, !0),
2525
- be.attr.auth(D, z, ee) ? m(l.$slots, be.name, {
2527
+ be.attr.auth(C, z, te) ? m(l.$slots, be.name, {
2526
2528
  key: 0,
2527
- row: D,
2529
+ row: C,
2528
2530
  column: z,
2529
- $index: ee
2531
+ $index: te
2530
2532
  }, () => [
2531
2533
  be.label ? (n(), F(o(_e), M({
2532
2534
  key: 0,
2533
2535
  ref_for: !0
2534
2536
  }, be.attr, {
2535
- onClick: (Je) => be.func(D, z, ee, e.value)
2537
+ onClick: (Je) => be.func(C, z, te, e.value)
2536
2538
  }), {
2537
2539
  default: h(() => [
2538
2540
  Ce($e(be.label), 1)
@@ -2542,33 +2544,33 @@ const al = {
2542
2544
  key: 1,
2543
2545
  ref_for: !0
2544
2546
  }, be.attr, {
2545
- onClick: (Je) => be.func(D, z, ee, e.value)
2547
+ onClick: (Je) => be.func(C, z, te, e.value)
2546
2548
  }), null, 16, ["onClick"]))
2547
2549
  ], !0) : ve("", !0),
2548
2550
  m(l.$slots, be.name + "-right", {
2549
- row: D,
2551
+ row: C,
2550
2552
  column: z,
2551
- $index: ee
2553
+ $index: te
2552
2554
  }, void 0, !0)
2553
2555
  ], 64))), 256)) : (n(), F(y, { key: 1 }, {
2554
2556
  default: h(() => [
2555
2557
  (n(!0), A(H, null, I(Ne, (be) => (n(), A(H, null, [
2556
2558
  m(l.$slots, be.name + "-left", {
2557
- row: D,
2559
+ row: C,
2558
2560
  column: z,
2559
- $index: ee
2561
+ $index: te
2560
2562
  }, void 0, !0),
2561
- be.attr.auth(D, z, ee) ? m(l.$slots, be.name, {
2563
+ be.attr.auth(C, z, te) ? m(l.$slots, be.name, {
2562
2564
  key: 0,
2563
- row: D,
2565
+ row: C,
2564
2566
  column: z,
2565
- $index: ee
2567
+ $index: te
2566
2568
  }, () => [
2567
2569
  be.label ? (n(), F(o(_e), M({
2568
2570
  key: 0,
2569
2571
  ref_for: !0
2570
2572
  }, be.attr, {
2571
- onClick: (Je) => be.func(D, z, ee, e.value)
2573
+ onClick: (Je) => be.func(C, z, te, e.value)
2572
2574
  }), {
2573
2575
  default: h(() => [
2574
2576
  Ce($e(be.label), 1)
@@ -2578,13 +2580,13 @@ const al = {
2578
2580
  key: 1,
2579
2581
  ref_for: !0
2580
2582
  }, be.attr, {
2581
- onClick: (Je) => be.func(D, z, ee, e.value)
2583
+ onClick: (Je) => be.func(C, z, te, e.value)
2582
2584
  }), null, 16, ["onClick"]))
2583
2585
  ], !0) : ve("", !0),
2584
2586
  m(l.$slots, be.name + "-right", {
2585
- row: D,
2587
+ row: C,
2586
2588
  column: z,
2587
- $index: ee
2589
+ $index: te
2588
2590
  }, void 0, !0)
2589
2591
  ], 64))), 256))
2590
2592
  ]),
@@ -2592,58 +2594,58 @@ const al = {
2592
2594
  }, 1024))
2593
2595
  ], 64))), 256)),
2594
2596
  m(l.$slots, "control-right", {
2595
- row: D,
2597
+ row: C,
2596
2598
  column: z,
2597
- $index: ee
2599
+ $index: te
2598
2600
  }, void 0, !0)
2599
2601
  ], !0)
2600
2602
  ], 6)
2601
2603
  ];
2602
2604
  }),
2603
2605
  key: "2"
2604
- } : j.type != "selection" && j.type != "index" ? {
2606
+ } : U.type != "selection" && U.type != "index" ? {
2605
2607
  name: "default",
2606
- fn: h(({ row: D, column: z, $index: ee }) => [
2607
- pe(j, D, z, ee) && ee != -1 ? m(l.$slots, `${ae}`, {
2608
+ fn: h(({ row: C, column: z, $index: te }) => [
2609
+ pe(U, C, z, te) && te != -1 ? m(l.$slots, `${ee}`, {
2608
2610
  key: 0,
2609
- row: D,
2611
+ row: C,
2610
2612
  column: z,
2611
- $index: ee
2613
+ $index: te
2612
2614
  }, () => {
2613
2615
  var je;
2614
2616
  return [
2615
2617
  (n(), F(Qe, {
2616
- modelValue: D[ae],
2617
- "onUpdate:modelValue": (Re) => D[ae] = Re,
2618
- item: j == null ? void 0 : j.table(D, z, ee, S.value),
2619
- ctrlKey: ae,
2620
- key: ae + "-" + ee,
2621
- ctrlType: (je = j.table(D, z, ee, S.value)) != null && je.type ? j.table(D, z, ee, S.value).type : j.type,
2618
+ modelValue: C[ee],
2619
+ "onUpdate:modelValue": (Re) => C[ee] = Re,
2620
+ item: U == null ? void 0 : U.table(C, z, te, S.value),
2621
+ ctrlKey: ee,
2622
+ key: ee + "-" + te,
2623
+ ctrlType: (je = U.table(C, z, te, S.value)) != null && je.type ? U.table(C, z, te, S.value).type : U.type,
2622
2624
  model: e.value,
2623
2625
  class: "g-ctrl-container",
2624
2626
  t: "t",
2625
- formInfo: D
2627
+ formInfo: C
2626
2628
  }, de({ _: 2 }, [
2627
2629
  I(l.$slots, (Re, Ne) => ({
2628
2630
  name: Ne,
2629
2631
  fn: h((Xe) => [
2630
2632
  m(l.$slots, Ne, {
2631
2633
  data: Xe,
2632
- item: j,
2634
+ item: U,
2633
2635
  model: e.value
2634
2636
  }, void 0, !0)
2635
2637
  ])
2636
2638
  }))
2637
2639
  ]), 1032, ["modelValue", "onUpdate:modelValue", "item", "ctrlKey", "ctrlType", "model", "formInfo"]))
2638
2640
  ];
2639
- }, !0) : m(l.$slots, `${ae}`, {
2641
+ }, !0) : m(l.$slots, `${ee}`, {
2640
2642
  key: 1,
2641
- row: D,
2643
+ row: C,
2642
2644
  column: z,
2643
- $index: ee
2645
+ $index: te
2644
2646
  }, () => [
2645
2647
  G("div", {
2646
- innerHTML: fe(j, z.formatter(D, z, D[ae], ee))
2648
+ innerHTML: fe(U, z.formatter(C, z, C[ee], te))
2647
2649
  }, null, 8, pl)
2648
2650
  ], !0)
2649
2651
  ]),
@@ -2657,9 +2659,9 @@ const al = {
2657
2659
  (it = (st = (nt = e.value) == null ? void 0 : nt.table) == null ? void 0 : st.page) != null && it.hidden ? ve("", !0) : m(l.$slots, "page", { key: 0 }, () => [
2658
2660
  Q(Z, M({
2659
2661
  "page-size": e.value.table.page.pageSize,
2660
- "onUpdate:pageSize": a[4] || (a[4] = (j) => e.value.table.page.pageSize = j),
2662
+ "onUpdate:pageSize": a[4] || (a[4] = (U) => e.value.table.page.pageSize = U),
2661
2663
  "current-page": e.value.table.page.currentPage,
2662
- "onUpdate:currentPage": a[5] || (a[5] = (j) => e.value.table.page.currentPage = j)
2664
+ "onUpdate:currentPage": a[5] || (a[5] = (U) => e.value.table.page.currentPage = U)
2663
2665
  }, e.value.table.page), {
2664
2666
  default: h(() => [
2665
2667
  m(l.$slots, "table-page", {}, void 0, !0)
@@ -2672,13 +2674,13 @@ const al = {
2672
2674
  e.value.dialog.mode == "dialog" && T.value ? (n(), A("div", vl, [
2673
2675
  Q(Oe, M({
2674
2676
  modelValue: T.value,
2675
- "onUpdate:modelValue": a[9] || (a[9] = (j) => T.value = j),
2677
+ "onUpdate:modelValue": a[9] || (a[9] = (U) => T.value = U),
2676
2678
  fullscreen: e.value.dialog.fullScreen
2677
- }, o(Fe)(e.value.dialog, (j) => !["size"].includes(j)), {
2679
+ }, o(Fe)(e.value.dialog, (U) => !["size"].includes(U)), {
2678
2680
  width: o(wt)(e.value.dialog.width) + 35
2679
2681
  }), {
2680
2682
  header: h(() => {
2681
- var j, ae, D, z;
2683
+ var U, ee, C, z;
2682
2684
  return [
2683
2685
  G("div", yl, [
2684
2686
  G("div", hl, [
@@ -2686,9 +2688,9 @@ const al = {
2686
2688
  G("div", null, $e(e.value.dialog.title), 1)
2687
2689
  ], !0)
2688
2690
  ]),
2689
- ((ae = (j = e.value) == null ? void 0 : j.dialog) == null ? void 0 : ae.fullScreen) === !1 ? (n(), A("div", {
2691
+ ((ee = (U = e.value) == null ? void 0 : U.dialog) == null ? void 0 : ee.fullScreen) === !1 ? (n(), A("div", {
2690
2692
  key: 0,
2691
- onClick: a[6] || (a[6] = (ee) => {
2693
+ onClick: a[6] || (a[6] = (te) => {
2692
2694
  e.value.dialog.fullScreen = !0;
2693
2695
  }),
2694
2696
  class: "max"
@@ -2700,9 +2702,9 @@ const al = {
2700
2702
  _: 1
2701
2703
  })
2702
2704
  ])) : ve("", !0),
2703
- ((z = (D = e.value) == null ? void 0 : D.dialog) == null ? void 0 : z.fullScreen) === !0 ? (n(), A("div", {
2705
+ ((z = (C = e.value) == null ? void 0 : C.dialog) == null ? void 0 : z.fullScreen) === !0 ? (n(), A("div", {
2704
2706
  key: 1,
2705
- onClick: a[7] || (a[7] = (ee) => {
2707
+ onClick: a[7] || (a[7] = (te) => {
2706
2708
  e.value.dialog.fullScreen = !1;
2707
2709
  }),
2708
2710
  class: "max"
@@ -2722,14 +2724,14 @@ const al = {
2722
2724
  m(l.$slots, "table-dialog-form", { model: e.value }, () => [
2723
2725
  Q(et, {
2724
2726
  modelValue: e.value,
2725
- "onUpdate:modelValue": a[8] || (a[8] = (j) => e.value = j),
2726
- onSubmit: oe,
2727
+ "onUpdate:modelValue": a[8] || (a[8] = (U) => e.value = U),
2728
+ onSubmit: re,
2727
2729
  onReset: x
2728
2730
  }, de({ _: 2 }, [
2729
- I(l.$slots, (j, ae, D) => ({
2730
- name: ae,
2731
+ I(l.$slots, (U, ee, C) => ({
2732
+ name: ee,
2731
2733
  fn: h((z) => [
2732
- m(l.$slots, ae, { model: z }, void 0, !0)
2734
+ m(l.$slots, ee, { model: z }, void 0, !0)
2733
2735
  ])
2734
2736
  }))
2735
2737
  ]), 1032, ["modelValue"])
@@ -2742,8 +2744,8 @@ const al = {
2742
2744
  e.value.dialog.mode == "drawer" && T.value ? (n(), A("div", bl, [
2743
2745
  Q(ze, M({
2744
2746
  modelValue: T.value,
2745
- "onUpdate:modelValue": a[11] || (a[11] = (j) => T.value = j)
2746
- }, o(Fe)(e.value.dialog, (j) => !["width"].includes(j))), {
2747
+ "onUpdate:modelValue": a[11] || (a[11] = (U) => T.value = U)
2748
+ }, o(Fe)(e.value.dialog, (U) => !["width"].includes(U))), {
2747
2749
  header: h(() => [
2748
2750
  G("div", $l, [
2749
2751
  G("div", El, [
@@ -2757,14 +2759,14 @@ const al = {
2757
2759
  m(l.$slots, "table-drawer-form", { model: e.value }, () => [
2758
2760
  Q(et, {
2759
2761
  modelValue: e.value,
2760
- "onUpdate:modelValue": a[10] || (a[10] = (j) => e.value = j),
2761
- onSubmit: oe,
2762
+ "onUpdate:modelValue": a[10] || (a[10] = (U) => e.value = U),
2763
+ onSubmit: re,
2762
2764
  onReset: x
2763
2765
  }, de({ _: 2 }, [
2764
- I(l.$slots, (j, ae, D) => ({
2765
- name: ae,
2766
+ I(l.$slots, (U, ee, C) => ({
2767
+ name: ee,
2766
2768
  fn: h((z) => [
2767
- m(l.$slots, ae, { model: z }, void 0, !0)
2769
+ m(l.$slots, ee, { model: z }, void 0, !0)
2768
2770
  ])
2769
2771
  }))
2770
2772
  ]), 1032, ["modelValue"])
@@ -2776,7 +2778,7 @@ const al = {
2776
2778
  ], 64);
2777
2779
  };
2778
2780
  }
2779
- }), kl = /* @__PURE__ */ Ue(wl, [["__scopeId", "data-v-2436f025"]]), _l = { class: "g-tree-table" }, Cl = { class: "g-tree-container" }, Dl = { class: "g-tree-table-container" }, Vl = /* @__PURE__ */ Object.assign({
2781
+ }), kl = /* @__PURE__ */ Ue(wl, [["__scopeId", "data-v-52b1e8f2"]]), _l = { class: "g-tree-table" }, Cl = { class: "g-tree-container" }, Dl = { class: "g-tree-table-container" }, Vl = /* @__PURE__ */ Object.assign({
2780
2782
  name: "g-tree-table",
2781
2783
  inheritAttrs: !1
2782
2784
  }, {
@@ -2788,9 +2790,9 @@ const al = {
2788
2790
  emits: /* @__PURE__ */ xe(["load"], ["update:modelValue"]),
2789
2791
  setup(c, { emit: f }) {
2790
2792
  const t = f, e = Be(c, "modelValue"), r = at(), v = me((r == null ? void 0 : r.width) || "180px"), T = me((r == null ? void 0 : r.search) === void 0 ? !0 : r == null ? void 0 : r.search), S = me({}), q = me(""), w = me(null), k = ($, u) => {
2791
- var te, le;
2793
+ var le, oe;
2792
2794
  if (!$) return !0;
2793
- const N = ((le = (te = r.tree) == null ? void 0 : te.props) == null ? void 0 : le.label) || "label";
2795
+ const N = ((oe = (le = r.tree) == null ? void 0 : le.props) == null ? void 0 : oe.label) || "label";
2794
2796
  return u[N].includes($);
2795
2797
  }, L = ($, u) => {
2796
2798
  t("load", S.value, $, u);
@@ -2800,7 +2802,7 @@ const al = {
2800
2802
  return qt(q, ($) => {
2801
2803
  w.value.filter($);
2802
2804
  }), ($, u) => {
2803
- const N = R("el-input"), te = R("el-tree"), le = R("g-table");
2805
+ const N = R("el-input"), le = R("el-tree"), oe = R("g-table");
2804
2806
  return n(), A("div", _l, [
2805
2807
  G("div", {
2806
2808
  class: "g-tree-left",
@@ -2815,7 +2817,7 @@ const al = {
2815
2817
  clearable: ""
2816
2818
  }, null, 8, ["modelValue"])) : ve("", !0),
2817
2819
  G("div", Cl, [
2818
- Q(te, M({
2820
+ Q(le, M({
2819
2821
  style: { width: v.value },
2820
2822
  "filter-node-method": k,
2821
2823
  "expand-on-click-node": !1,
@@ -2843,7 +2845,7 @@ const al = {
2843
2845
  ])
2844
2846
  ], 4),
2845
2847
  G("div", Dl, [
2846
- Q(le, M({
2848
+ Q(oe, M({
2847
2849
  modelValue: e.value,
2848
2850
  "onUpdate:modelValue": u[1] || (u[1] = (K) => e.value = K)
2849
2851
  }, $.$attrs, { onLoad: L }), de({ _: 2 }, [