el-plus-crud 0.1.113 → 0.1.114

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/CHANGELOG.md CHANGED
@@ -2,6 +2,14 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ ### [0.1.114](https://github.com/KDJack/el-plus-crud/compare/v0.1.113...v0.1.114) (2026-08-11)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * **form:** daterange 支持 monthrange/yearrange 的起止时间与显示格式 ([d1a588d](https://github.com/KDJack/el-plus-crud/commit/d1a588daf64ad4b3dfc29621b0a43fb7126105e3))
11
+ * **form:** 修复上传组件图片预览与 base64 data URL 判定 ([7907779](https://github.com/KDJack/el-plus-crud/commit/79077793623169f64eaf7495eb35e5333c9461c8))
12
+
5
13
  ### [0.1.113](https://github.com/KDJack/el-plus-crud/compare/v0.1.112...v0.1.113) (2026-08-09)
6
14
 
7
15
  ### [0.1.112](https://github.com/KDJack/el-plus-crud/compare/v0.1.111...v0.1.112) (2026-08-08)
@@ -1,6 +1,6 @@
1
1
  import { nextTick as Le, defineComponent as X, inject as Ne, ref as p, watch as Me, onBeforeMount as De, useAttrs as je, onMounted as jt, resolveComponent as C, openBlock as M, createBlock as S, mergeProps as le, toHandlers as ve, unref as ae, isRef as Be, createCommentVNode as Q, useSlots as He, createSlots as at, withCtx as x, renderSlot as Ie, renderList as ge, createElementBlock as D, createElementVNode as te, computed as J, Fragment as se, createVNode as q, createTextVNode as ze, toDisplayString as de, normalizeStyle as Oe, reactive as ke, normalizeClass as rt, onUnmounted as In, withModifiers as ht, withDirectives as dl, vShow as xl, triggerRef as Nl, withKeys as ro, resolveDynamicComponent as el, provide as co, resolveDirective as Mo } from "vue";
2
2
  import { useVModel as Ae } from "@vueuse/core";
3
- import { ElMessageBox as _l, ElMessage as lt } from "element-plus";
3
+ import { ElMessageBox as _l, ElMessage as Je } from "element-plus";
4
4
  const Ye = async (e, t) => {
5
5
  var n, u, r, a, o, f;
6
6
  const l = Object.assign({}, t, (n = e.desc) == null ? void 0 : n._attrs, e.desc, (u = e.desc) == null ? void 0 : u.attrs, fo(e.desc));
@@ -568,7 +568,7 @@ const Fo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
568
568
  }) : await f(s);
569
569
  },
570
570
  onError: () => {
571
- lt.error("文件上传出错,请检查文件格式及内容是否正确!"), l.value = !1;
571
+ Je.error("文件上传出错,请检查文件格式及内容是否正确!"), l.value = !1;
572
572
  }
573
573
  }, o = J(() => t.desc.btnLabel ? typeof t.desc.btnLabel == "function" ? t.desc.btnLabel(t.formData || {}) : t.desc.btnLabel : t.desc.label ? typeof t.desc.label == "function" ? t.desc.label(t.formData || {}) : t.desc.label : "");
574
574
  function f(s) {
@@ -576,9 +576,9 @@ const Fo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
576
576
  l.value = !0;
577
577
  const g = s.name.substring(s.name.lastIndexOf(".")), N = t.desc.accept || t.desc.attrs.accept || [".xlsx", ".xls"];
578
578
  if (N.indexOf(g) < 0)
579
- return lt.warning(`请上传后缀为${N.join(",")}格式的文件!`), l.value = !1, d(!1), !1;
579
+ return Je.warning(`请上传后缀为${N.join(",")}格式的文件!`), l.value = !1, d(!1), !1;
580
580
  if (s.size > 20 * 1024 * 1024)
581
- return lt.warning("超出文件大小限制(最大为20M)!"), l.value = !1, d(!1), !1;
581
+ return Je.warning("超出文件大小限制(最大为20M)!"), l.value = !1, d(!1), !1;
582
582
  i(!0);
583
583
  });
584
584
  }
@@ -2361,9 +2361,9 @@ const Tu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2361
2361
  } : f.value.change = k;
2362
2362
  function k(b, P) {
2363
2363
  var U, R;
2364
- s.value = !0, b !== P && (b < N.value.min ? (lt.warning(`${((U = n.desc) == null ? void 0 : U._label) || ""}最少不能低于${N.value.min}`), Le(() => {
2364
+ s.value = !0, b !== P && (b < N.value.min ? (Je.warning(`${((U = n.desc) == null ? void 0 : U._label) || ""}最少不能低于${N.value.min}`), Le(() => {
2365
2365
  r.value = N.value.min, v && v();
2366
- })) : b > N.value.max ? (lt.warning(`${((R = n.desc) == null ? void 0 : R._label) || ""}最多不能大于${N.value.max}`), Le(() => {
2366
+ })) : b > N.value.max ? (Je.warning(`${((R = n.desc) == null ? void 0 : R._label) || ""}最多不能大于${N.value.max}`), Le(() => {
2367
2367
  r.value = N.value.max, v && v();
2368
2368
  })) : v && v()), B();
2369
2369
  }
@@ -2467,9 +2467,9 @@ const Wn = /* @__PURE__ */ Ce(hu, [["__scopeId", "data-v-12af7f1a"]]), xu = /* @
2467
2467
  });
2468
2468
  function v(B, b) {
2469
2469
  var P, U;
2470
- f.value = !0, B !== b && (B < N.value.min ? (lt.warning(`${((P = n.desc) == null ? void 0 : P._label) || ""}最少不能低于${N.value.min}`), Le(() => {
2470
+ f.value = !0, B !== b && (B < N.value.min ? (Je.warning(`${((P = n.desc) == null ? void 0 : P._label) || ""}最少不能低于${N.value.min}`), Le(() => {
2471
2471
  s.value = N.value.min, i.value = +(s.value / 100).toFixed(N.value.precision), u("change", i.value);
2472
- })) : B > N.value.max ? (lt.warning(`${((U = n.desc) == null ? void 0 : U._label) || ""}最多不能大于${N.value.max}`), Le(() => {
2472
+ })) : B > N.value.max ? (Je.warning(`${((U = n.desc) == null ? void 0 : U._label) || ""}最多不能大于${N.value.max}`), Le(() => {
2473
2473
  s.value = N.value.max, i.value = +(s.value / 100).toFixed(N.value.precision), u("change", i.value);
2474
2474
  })) : (B.indexOf(".") > 0 && B.length - B.indexOf(".") > N.value.precision - 2 ? s.value = (+B).toFixed(N.value.precision - 2) : s.value = B, i.value = +(B / 100).toFixed(N.value.precision), u("change", i.value)));
2475
2475
  }
@@ -2754,7 +2754,7 @@ const Xn = /* @__PURE__ */ Ce(Qu, [["__scopeId", "data-v-45863775"]]), Fu = /* @
2754
2754
  s.value.allowCreate && T && Array.isArray(T) && T.some((V) => {
2755
2755
  var m, w;
2756
2756
  return typeof V == "string" && V.length > (((w = (m = u.form) == null ? void 0 : m.leng) == null ? void 0 : w.input) || 20);
2757
- }) && (lt.warning("最大长度为: " + (((A = (E = u.form) == null ? void 0 : E.leng) == null ? void 0 : A.input) || 20)), f.value = T.filter((V) => {
2757
+ }) && (Je.warning("最大长度为: " + (((A = (E = u.form) == null ? void 0 : E.leng) == null ? void 0 : A.input) || 20)), f.value = T.filter((V) => {
2758
2758
  var m, w;
2759
2759
  return typeof V != "string" || V.length <= (((w = (m = u.form) == null ? void 0 : m.leng) == null ? void 0 : w.input) || 20);
2760
2760
  })), U();
@@ -3061,8 +3061,8 @@ const oa = /* @__PURE__ */ Ce(ii, [["__scopeId", "data-v-fdef0989"]]), ri = /* @
3061
3061
  setup(e, { emit: t }) {
3062
3062
  const l = Ne("defaultConf"), n = e, u = t, r = p({}), a = p(!1), o = p(he(n)), f = Ae(n, "modelValue", u), s = J(() => {
3063
3063
  var g;
3064
- const d = (g = n.desc) == null ? void 0 : g.quickFill;
3065
- return !Array.isArray(d) || !d.length ? [] : d.map((N) => N == null ? "" : typeof N == "string" ? N : String(N.label ?? N.l ?? N.value ?? N.v ?? N));
3064
+ let d = (g = n.desc) == null ? void 0 : g.quickFill;
3065
+ return typeof d == "function" && (d = d(n.formData || {}, n.field)), !Array.isArray(d) || !d.length ? [] : d.map((N) => N == null ? "" : typeof N == "string" ? N : String(N.label ?? N.l ?? N.value ?? N.v ?? N));
3066
3066
  });
3067
3067
  function i(d) {
3068
3068
  var B, b;
@@ -3070,13 +3070,13 @@ const oa = /* @__PURE__ */ Ce(ii, [["__scopeId", "data-v-fdef0989"]]), ri = /* @
3070
3070
  return;
3071
3071
  const g = f.value || "", N = (B = r.value) == null ? void 0 : B.maxlength;
3072
3072
  if (N && g.length >= N) {
3073
- lt.warning("已达字数上限");
3073
+ Je.warning("已达字数上限");
3074
3074
  return;
3075
3075
  }
3076
3076
  const v = ((b = n.desc) == null ? void 0 : b.quickFillSeparator) ?? ",";
3077
3077
  let k = g;
3078
3078
  if (k && !/[,,。.]$/.test(k) && (k += v), k += d, N && k.length > N && (k = k.substring(0, N), v && k.endsWith(v) && (k = k.slice(0, -v.length))), k === g) {
3079
- lt.warning("剩余空间不足,无法追加");
3079
+ Je.warning("剩余空间不足,无法追加");
3080
3080
  return;
3081
3081
  }
3082
3082
  f.value = k, u("validateThis");
@@ -3336,7 +3336,7 @@ const hi = /* @__PURE__ */ Ce(Ai, [["__scopeId", "data-v-30cbb7dc"]]), xi = { cl
3336
3336
  typeName: "tree",
3337
3337
  customOptions: {}
3338
3338
  };
3339
- function Je(e, t) {
3339
+ function Xe(e, t) {
3340
3340
  return String(e[t.idKey] ?? "");
3341
3341
  }
3342
3342
  function qe(e, t) {
@@ -3346,7 +3346,7 @@ function il(e, t) {
3346
3346
  return qe(e, t).length > 0;
3347
3347
  }
3348
3348
  function zt(e, t) {
3349
- const l = Je(e, t);
3349
+ const l = Xe(e, t);
3350
3350
  return t.fsIds.includes(l) || t.nsIds.includes(l);
3351
3351
  }
3352
3352
  function wl(e, t, l) {
@@ -3359,14 +3359,14 @@ function wl(e, t, l) {
3359
3359
  function ll(e, t, l, n) {
3360
3360
  for (const u of e) {
3361
3361
  const r = qe(u, n);
3362
- r.length && ll(r, t, l, n), !r.length && Je(u, n) === t && !zt(u, n) && (u._checked = l);
3362
+ r.length && ll(r, t, l, n), !r.length && Xe(u, n) === t && !zt(u, n) && (u._checked = l);
3363
3363
  }
3364
3364
  }
3365
3365
  function ca(e, t, l, n) {
3366
3366
  const u = qe(e, n);
3367
3367
  if (u.length)
3368
3368
  for (const r of u)
3369
- il(r, n) ? ca(r, t, l, n) : zt(r, n) || (t ? (l.has(Je(r, n)) || l.size < n.maxCount) && (r._checked = !0, l.add(Je(r, n))) : r._checked = !1);
3369
+ il(r, n) ? ca(r, t, l, n) : zt(r, n) || (t ? (l.has(Xe(r, n)) || l.size < n.maxCount) && (r._checked = !0, l.add(Xe(r, n))) : r._checked = !1);
3370
3370
  }
3371
3371
  function Tt(e, t) {
3372
3372
  for (const l of e) {
@@ -3424,7 +3424,7 @@ function Kt(e, t) {
3424
3424
  function n(u) {
3425
3425
  for (const r of u) {
3426
3426
  const a = qe(r, t);
3427
- a.length ? n(a) : r._checked && l.add(Je(r, t));
3427
+ a.length ? n(a) : r._checked && l.add(Xe(r, t));
3428
3428
  }
3429
3429
  }
3430
3430
  return n(e), [...l];
@@ -3433,7 +3433,7 @@ function Ei(e, t) {
3433
3433
  const l = /* @__PURE__ */ new Set();
3434
3434
  function n(u) {
3435
3435
  for (const r of u) {
3436
- r._checked && l.add(Je(r, t));
3436
+ r._checked && l.add(Xe(r, t));
3437
3437
  const a = qe(r, t);
3438
3438
  a.length && n(a);
3439
3439
  }
@@ -3445,7 +3445,7 @@ function Zl(e, t) {
3445
3445
  function n(u) {
3446
3446
  for (const r of u) {
3447
3447
  const a = qe(r, t);
3448
- a.length ? n(a) : l.push(Je(r, t));
3448
+ a.length ? n(a) : l.push(Xe(r, t));
3449
3449
  }
3450
3450
  }
3451
3451
  return n(e), l;
@@ -3457,14 +3457,14 @@ function Hl(e, t) {
3457
3457
  if (r._visible === !1)
3458
3458
  continue;
3459
3459
  const a = qe(r, t);
3460
- a.length ? n(a) : l.push(Je(r, t));
3460
+ a.length ? n(a) : l.push(Xe(r, t));
3461
3461
  }
3462
3462
  }
3463
3463
  return n(e), l;
3464
3464
  }
3465
3465
  function Ma(e, t, l) {
3466
3466
  for (const n of e) {
3467
- const u = Je(n, l);
3467
+ const u = Xe(n, l);
3468
3468
  t.has(u) && !zt(n, l) && (n._checked = !0);
3469
3469
  const r = qe(n, l);
3470
3470
  r.length && Ma(r, t, l);
@@ -3480,22 +3480,22 @@ function fa(e, t) {
3480
3480
  function bl(e, t, l) {
3481
3481
  for (const n of e) {
3482
3482
  const u = qe(n, l);
3483
- u.length ? bl(u, t, l) : t.has(Je(n, l)) && !zt(n, l) && (n._checked = !0);
3483
+ u.length ? bl(u, t, l) : t.has(Xe(n, l)) && !zt(n, l) && (n._checked = !0);
3484
3484
  }
3485
3485
  }
3486
3486
  function ga(e, t, l) {
3487
3487
  for (const n of e) {
3488
3488
  const u = qe(n, l);
3489
- u.length ? ga(u, t, l) : t.has(Je(n, l)) && !zt(n, l) && (n._checked = !1);
3489
+ u.length ? ga(u, t, l) : t.has(Xe(n, l)) && !zt(n, l) && (n._checked = !1);
3490
3490
  }
3491
3491
  }
3492
3492
  function Na(e, t, l) {
3493
- const n = Je(t, l);
3493
+ const n = Xe(t, l);
3494
3494
  for (const u of e) {
3495
3495
  const r = qe(u, l);
3496
- if (r.some((a) => Je(a, l) === n)) {
3496
+ if (r.some((a) => Xe(a, l) === n)) {
3497
3497
  for (const a of r)
3498
- Je(a, l) !== n && (a._expanded = !1);
3498
+ Xe(a, l) !== n && (a._expanded = !1);
3499
3499
  return;
3500
3500
  }
3501
3501
  r.length && Na(r, t, l);
@@ -3552,10 +3552,10 @@ const Oi = /* @__PURE__ */ X({
3552
3552
  return il(y, U());
3553
3553
  }
3554
3554
  function I(y) {
3555
- return Je(y, U());
3555
+ return Xe(y, U());
3556
3556
  }
3557
3557
  function Y(y, c) {
3558
- const z = U(), h = Je(y, z);
3558
+ const z = U(), h = Xe(y, z);
3559
3559
  if (!il(y, z)) {
3560
3560
  if (c && z.maxCount < 1 / 0 && B.value >= z.maxCount)
3561
3561
  return !1;
@@ -3902,7 +3902,7 @@ const pa = /* @__PURE__ */ Ce(Oi, [["__scopeId", "data-v-06d3d089"]]), Si = /* @
3902
3902
  c.suffix = `${c.name.substring(c.name.lastIndexOf("."))}`.split("?")[0];
3903
3903
  const z = y(c, ql[`${u.desc.upType || "image"}Suffixes`], o.value.maxSize);
3904
3904
  if (z !== !0)
3905
- return lt.warning(z), !1;
3905
+ return Je.warning(z), !1;
3906
3906
  try {
3907
3907
  c.url = URL.createObjectURL(c);
3908
3908
  let ie = {};
@@ -3988,7 +3988,7 @@ const pa = /* @__PURE__ */ Ce(Oi, [["__scopeId", "data-v-06d3d089"]]), Si = /* @
3988
3988
  U.value = R.value.findIndex((_) => _ === h), U.value < 0 && (U.value = 0), P.value = !0;
3989
3989
  } else {
3990
3990
  const h = ((z = c.raw) == null ? void 0 : z.previewUrl) || c.previewUrl;
3991
- h && window.open(h, "_blank");
3991
+ h ? window.open(h, "_blank") : Je.warning("暂无预览地址");
3992
3992
  }
3993
3993
  }
3994
3994
  const F = {
@@ -4052,7 +4052,7 @@ const pa = /* @__PURE__ */ Ce(Oi, [["__scopeId", "data-v-06d3d089"]]), Si = /* @
4052
4052
  }
4053
4053
  }
4054
4054
  function j() {
4055
- lt.error("数量最多只能上传" + o.value.limit + "个图片/文件!!!");
4055
+ Je.error("数量最多只能上传" + o.value.limit + "个图片/文件!!!");
4056
4056
  }
4057
4057
  function L(c) {
4058
4058
  var h, _;
@@ -5024,7 +5024,7 @@ const qr = {
5024
5024
  ...u.formGroup,
5025
5025
  success: (V) => {
5026
5026
  var m, w;
5027
- u.success ? u.success(V) : A ? A(V) : (u.tableRef && (lt.success(typeof u.successTip == "function" ? u.successTip() : u.successTip), typeof ((m = u.tableRef) == null ? void 0 : m.reload) == "function" && ((w = u.tableRef) == null || w.reload())), a.value = !1, setTimeout(() => {
5027
+ u.success ? u.success(V) : A ? A(V) : (u.tableRef && (Je.success(typeof u.successTip == "function" ? u.successTip() : u.successTip), typeof ((m = u.tableRef) == null ? void 0 : m.reload) == "function" && ((w = u.tableRef) == null || w.reload())), a.value = !1, setTimeout(() => {
5028
5028
  V.callBack();
5029
5029
  }, 200));
5030
5030
  }
@@ -5032,7 +5032,7 @@ const qr = {
5032
5032
  });
5033
5033
  function U(A) {
5034
5034
  var V, m;
5035
- u.success ? u.success(A) : u.tableRef && (lt.success(typeof u.successTip == "function" ? u.successTip() : u.successTip), typeof ((V = u.tableRef) == null ? void 0 : V.reload) == "function" && ((m = u.tableRef) == null || m.reload()), a.value = !1, setTimeout(() => {
5035
+ u.success ? u.success(A) : u.tableRef && (Je.success(typeof u.successTip == "function" ? u.successTip() : u.successTip), typeof ((V = u.tableRef) == null ? void 0 : V.reload) == "function" && ((m = u.tableRef) == null || m.reload()), a.value = !1, setTimeout(() => {
5036
5036
  A.callBack();
5037
5037
  }, 200));
5038
5038
  }
@@ -5170,7 +5170,7 @@ const qr = {
5170
5170
  }
5171
5171
  function k() {
5172
5172
  if (o.value.length === s.value.length)
5173
- return lt.warning("请至少选择一列!"), !1;
5173
+ return Je.warning("请至少选择一列!"), !1;
5174
5174
  v(n.column), s.value.length > 0 ? localStorage.setItem(l.storagePrefix + "hideColumnsList_" + n.tbName, s.value.join("__")) : localStorage.removeItem(l.storagePrefix + "hideColumnsList_" + n.tbName), u.value = !1;
5175
5175
  }
5176
5176
  function B() {
@@ -5807,18 +5807,18 @@ const dc = /* @__PURE__ */ Ce(cc, [["__scopeId", "data-v-fcbc33ca"]]), Mc = {
5807
5807
  total: 0,
5808
5808
  size: !o.isDialog && m.size ? parseInt(m.size) : o.pageSize
5809
5809
  }), re = ((bt = (Ve = o.tableConfig) == null ? void 0 : Ve.explan) == null ? void 0 : bt.treeProps) || { children: "children", hasChildren: "hasChildren" }, xe = J(() => {
5810
- var Ke, Xe, et;
5811
- const O = _n(n.cloneDeep((Ke = o.tableConfig) == null ? void 0 : Ke.column), u, ((Xe = o.tableConfig) == null ? void 0 : Xe.tbName) || "", o.headerAlign, o.colMinWidth || "auto"), Z = we(O);
5810
+ var Ke, et, tt;
5811
+ const O = _n(n.cloneDeep((Ke = o.tableConfig) == null ? void 0 : Ke.column), u, ((et = o.tableConfig) == null ? void 0 : et.tbName) || "", o.headerAlign, o.colMinWidth || "auto"), Z = we(O);
5812
5812
  d.value = [];
5813
5813
  let ee, fe = 0, me = 1, $e = "";
5814
5814
  const Re = Z.map((Te, We) => {
5815
5815
  var Ue;
5816
- return Te.isRowSpan && (d.value.push(We), ee = void 0, fe = 0, me = 1, (Ue = w.value) == null || Ue.map((Ee, tt) => {
5816
+ return Te.isRowSpan && (d.value.push(We), ee = void 0, fe = 0, me = 1, (Ue = w.value) == null || Ue.map((Ee, lt) => {
5817
5817
  var ot;
5818
- $e = (ot = Te.rsProps) != null && ot.length ? oe(Ee, Te.rsProps) : "", ee !== $e + Ee[Te.prop] ? (me > 1 && tt > 0 && (w.value[fe]["rowSpan_" + We] = me), fe = tt, me = 1, ee = $e + Ee[Te.prop]) : (me += 1, Ee["rowSpan_" + We] = 0), tt === w.value.length - 1 && (w.value[fe]["rowSpan_" + We] = me);
5818
+ $e = (ot = Te.rsProps) != null && ot.length ? oe(Ee, Te.rsProps) : "", ee !== $e + Ee[Te.prop] ? (me > 1 && lt > 0 && (w.value[fe]["rowSpan_" + We] = me), fe = lt, me = 1, ee = $e + Ee[Te.prop]) : (me += 1, Ee["rowSpan_" + We] = 0), lt === w.value.length - 1 && (w.value[fe]["rowSpan_" + We] = me);
5819
5819
  })), Te.isColSpan ? We : null;
5820
5820
  }).filter((Te) => Te !== null);
5821
- return Re.length && ((et = w.value) == null || et.map((Te, We) => {
5821
+ return Re.length && ((tt = w.value) == null || tt.map((Te, We) => {
5822
5822
  ee = void 0, fe = 0, me = 1, Re.map((Ue, Ee) => {
5823
5823
  d.value.includes(Ue) || d.value.push(Ue), ee !== Te[Z[Ue].prop] || Ee > 0 && Ue - 1 !== Re[Ee - 1] ? (me > 1 && (Te["colSpan_" + fe] = me), fe = Ue, me = 1, ee = Te[Z[Ue].prop]) : (me += 1, Te["colSpan_" + Ue] = 0), Ee === Re.length - 1 && (Te["colSpan_" + fe] = me);
5824
5824
  });
@@ -5842,11 +5842,11 @@ const dc = /* @__PURE__ */ Ce(cc, [["__scopeId", "data-v-fcbc33ca"]]), Mc = {
5842
5842
  return O;
5843
5843
  }
5844
5844
  if (($e = o.tableConfig.summaryConf) != null && $e.prop) {
5845
- const Xe = o.tableConfig.summaryConf.prop.split(","), et = ((Ke = (Re = o.tableConfig.summaryConf) == null ? void 0 : Re.label) == null ? void 0 : Ke.split(",")) || [];
5845
+ const et = o.tableConfig.summaryConf.prop.split(","), tt = ((Ke = (Re = o.tableConfig.summaryConf) == null ? void 0 : Re.label) == null ? void 0 : Ke.split(",")) || [];
5846
5846
  let Te = "";
5847
- Xe.map((We, Ue) => {
5848
- var Ee, tt;
5849
- Te = "", (Ee = o.tableConfig.summaryConf) != null && Ee.sumFn ? Te = (tt = o.tableConfig.summaryConf) == null ? void 0 : tt.sumFn(w.value, Y) : Te = r.yuan(w.value.reduce((ot, It) => ot += It[We], 0)), O.push({ label: et[Ue], value: Te });
5847
+ et.map((We, Ue) => {
5848
+ var Ee, lt;
5849
+ Te = "", (Ee = o.tableConfig.summaryConf) != null && Ee.sumFn ? Te = (lt = o.tableConfig.summaryConf) == null ? void 0 : lt.sumFn(w.value, Y) : Te = r.yuan(w.value.reduce((ot, It) => ot += It[We], 0)), O.push({ label: tt[Ue], value: Te });
5850
5850
  });
5851
5851
  }
5852
5852
  return O;
@@ -5874,8 +5874,8 @@ const dc = /* @__PURE__ */ Ce(cc, [["__scopeId", "data-v-fcbc33ca"]]), Mc = {
5874
5874
  var me, $e;
5875
5875
  const fe = await z();
5876
5876
  fe[(($e = (me = o.tableConfig) == null ? void 0 : me.explan) == null ? void 0 : $e.idName) || "parentId"] = O.id, o.tableConfig.fetch && o.tableConfig.fetch(fe).then((Re) => {
5877
- var Ke, Xe, et;
5878
- ee(Re == null ? void 0 : Re[((Ke = u.table) == null ? void 0 : Ke.list) || ((et = (Xe = o.tableConfig) == null ? void 0 : Xe.fetchMap) == null ? void 0 : et.list) || "records"]);
5877
+ var Ke, et, tt;
5878
+ ee(Re == null ? void 0 : Re[((Ke = u.table) == null ? void 0 : Ke.list) || ((tt = (et = o.tableConfig) == null ? void 0 : et.fetchMap) == null ? void 0 : tt.list) || "records"]);
5879
5879
  });
5880
5880
  }
5881
5881
  function Mt(O, Z) {
@@ -5906,7 +5906,7 @@ const dc = /* @__PURE__ */ Ce(cc, [["__scopeId", "data-v-fcbc33ca"]]), Mc = {
5906
5906
  Y.splice(0, Y.length, ...o.selectList);
5907
5907
  }
5908
5908
  async function z() {
5909
- var Z, ee, fe, me, $e, Re, Ke, Xe, et, Te, We, Ue, Ee, tt, ot;
5909
+ var Z, ee, fe, me, $e, Re, Ke, et, tt, Te, We, Ue, Ee, lt, ot;
5910
5910
  let O = {
5911
5911
  // 封装查询条件
5912
5912
  // ...route.query,
@@ -5915,7 +5915,7 @@ const dc = /* @__PURE__ */ Ce(cc, [["__scopeId", "data-v-fcbc33ca"]]), Mc = {
5915
5915
  ...typeof o.tableConfig.queryMap == "function" ? await o.tableConfig.queryMap() : o.tableConfig.queryMap,
5916
5916
  t_: (/* @__PURE__ */ new Date()).getTime()
5917
5917
  };
5918
- return o.isPager && (O[((fe = (ee = u.table) == null ? void 0 : ee.page) == null ? void 0 : fe.current) || ((Re = ($e = (me = o.tableConfig) == null ? void 0 : me.fetchMap) == null ? void 0 : $e.page) == null ? void 0 : Re.current) || "current"] = $.current, O[((Xe = (Ke = u.table) == null ? void 0 : Ke.page) == null ? void 0 : Xe.pageSize) || ((We = (Te = (et = o.tableConfig) == null ? void 0 : et.fetchMap) == null ? void 0 : Te.page) == null ? void 0 : We.pageSize) || "size"] = $.size), (Ue = o.tableConfig) != null && Ue.tabConf && ((tt = (Ee = o.tableConfig) == null ? void 0 : Ee.tabConf) != null && tt.prop) && (O[(ot = o.tableConfig) == null ? void 0 : ot.tabConf.prop] = k.value), O = h(O), o.isDialog, O;
5918
+ return o.isPager && (O[((fe = (ee = u.table) == null ? void 0 : ee.page) == null ? void 0 : fe.current) || ((Re = ($e = (me = o.tableConfig) == null ? void 0 : me.fetchMap) == null ? void 0 : $e.page) == null ? void 0 : Re.current) || "current"] = $.current, O[((et = (Ke = u.table) == null ? void 0 : Ke.page) == null ? void 0 : et.pageSize) || ((We = (Te = (tt = o.tableConfig) == null ? void 0 : tt.fetchMap) == null ? void 0 : Te.page) == null ? void 0 : We.pageSize) || "size"] = $.size), (Ue = o.tableConfig) != null && Ue.tabConf && ((lt = (Ee = o.tableConfig) == null ? void 0 : Ee.tabConf) != null && lt.prop) && (O[(ot = o.tableConfig) == null ? void 0 : ot.tabConf.prop] = k.value), O = h(O), o.isDialog, O;
5919
5919
  }
5920
5920
  function h(O) {
5921
5921
  if (!O)
@@ -5938,7 +5938,7 @@ const dc = /* @__PURE__ */ Ce(cc, [["__scopeId", "data-v-fcbc33ca"]]), Mc = {
5938
5938
  });
5939
5939
  }
5940
5940
  async function ye(O) {
5941
- var ee, fe, me, $e, Re, Ke, Xe, et, Te, We, Ue, Ee, tt, ot, It, Rt, $t, Gt, Ze, st, Ct, Ul, Ql, Fl, Rl;
5941
+ var ee, fe, me, $e, Re, Ke, et, tt, Te, We, Ue, Ee, lt, ot, It, Rt, $t, Gt, Ze, st, Ct, Ul, Ql, Fl, Rl;
5942
5942
  if (!o.tableConfig.fetch)
5943
5943
  return I.value = 2, !1;
5944
5944
  if (I.value === 1 || R.value)
@@ -5948,10 +5948,10 @@ const dc = /* @__PURE__ */ Ce(cc, [["__scopeId", "data-v-fcbc33ca"]]), Mc = {
5948
5948
  (me = (fe = (ee = o.tableConfig) == null ? void 0 : ee.toolbar) == null ? void 0 : fe.formConfig) != null && me.beforeRequest && (Z = ((Ke = (Re = ($e = o.tableConfig) == null ? void 0 : $e.toolbar) == null ? void 0 : Re.formConfig) == null ? void 0 : Ke.beforeRequest(n.cloneDeep(Z))) || Z);
5949
5949
  try {
5950
5950
  let Nt = await o.tableConfig.fetch(Z) || {};
5951
- a("loadDataEnd", Nt), Array.isArray(Nt) && (Nt = { [((Xe = u.table) == null ? void 0 : Xe.list) || ((Te = (et = o.tableConfig) == null ? void 0 : et.fetchMap) == null ? void 0 : Te.list) || "records"]: Nt });
5951
+ a("loadDataEnd", Nt), Array.isArray(Nt) && (Nt = { [((et = u.table) == null ? void 0 : et.list) || ((Te = (tt = o.tableConfig) == null ? void 0 : tt.fetchMap) == null ? void 0 : Te.list) || "records"]: Nt });
5952
5952
  try {
5953
5953
  let Yt = [];
5954
- if (o.isPager ? ($.total = Nt[((Ue = (We = u.table) == null ? void 0 : We.page) == null ? void 0 : Ue.total) || ((ot = (tt = (Ee = o.tableConfig) == null ? void 0 : Ee.fetchMap) == null ? void 0 : tt.page) == null ? void 0 : ot.total) || "total"] * 1 || 0, $.current = Nt[((Rt = (It = u.table) == null ? void 0 : It.page) == null ? void 0 : Rt.current) || ((Ze = (Gt = ($t = o.tableConfig) == null ? void 0 : $t.fetchMap) == null ? void 0 : Gt.page) == null ? void 0 : Ze.current) || "current"] || 1, Yt = Nt[((st = u.table) == null ? void 0 : st.list) || ((Ul = (Ct = o.tableConfig) == null ? void 0 : Ct.fetchMap) == null ? void 0 : Ul.list) || "records"] || null) : Yt = Nt[((Ql = u.table) == null ? void 0 : Ql.list) || ((Rl = (Fl = o.tableConfig) == null ? void 0 : Fl.fetchMap) == null ? void 0 : Rl.list) || "records"] || null, o.type !== "expand" && o.isTempId && Array.isArray(Yt)) {
5954
+ if (o.isPager ? ($.total = Nt[((Ue = (We = u.table) == null ? void 0 : We.page) == null ? void 0 : Ue.total) || ((ot = (lt = (Ee = o.tableConfig) == null ? void 0 : Ee.fetchMap) == null ? void 0 : lt.page) == null ? void 0 : ot.total) || "total"] * 1 || 0, $.current = Nt[((Rt = (It = u.table) == null ? void 0 : It.page) == null ? void 0 : Rt.current) || ((Ze = (Gt = ($t = o.tableConfig) == null ? void 0 : $t.fetchMap) == null ? void 0 : Gt.page) == null ? void 0 : Ze.current) || "current"] || 1, Yt = Nt[((st = u.table) == null ? void 0 : st.list) || ((Ul = (Ct = o.tableConfig) == null ? void 0 : Ct.fetchMap) == null ? void 0 : Ul.list) || "records"] || null) : Yt = Nt[((Ql = u.table) == null ? void 0 : Ql.list) || ((Rl = (Fl = o.tableConfig) == null ? void 0 : Fl.fetchMap) == null ? void 0 : Rl.list) || "records"] || null, o.type !== "expand" && o.isTempId && Array.isArray(Yt)) {
5955
5955
  const so = (/* @__PURE__ */ new Date()).getTime();
5956
5956
  i.value = "tempId", Yt.map((uo, io) => {
5957
5957
  uo.tempId = `${so + io}`;
@@ -6032,8 +6032,8 @@ const dc = /* @__PURE__ */ Ce(cc, [["__scopeId", "data-v-fcbc33ca"]]), Mc = {
6032
6032
  var O, Z, ee;
6033
6033
  Object.keys(((Z = (O = o.tableConfig) == null ? void 0 : O.toolbar) == null ? void 0 : Z.formConfig) || {}).length || (ee = o.tableConfig) != null && ee.tbName || o.initLoad && K();
6034
6034
  }), t({ tableRef: N, reload: K, tableData: w, changeSelect: y, resetSelect: c, initCol: _e, resetQuery: be, nextPage: ut, hasNextPage: vt }), (O, Z) => {
6035
- var Te, We, Ue, Ee, tt, ot, It, Rt, $t, Gt;
6036
- const ee = C("el-icon"), fe = C("el-radio-button"), me = C("el-radio-group"), $e = C("el-table-column"), Re = C("el-empty"), Ke = C("el-table"), Xe = C("el-pagination"), et = Mo("loading");
6035
+ var Te, We, Ue, Ee, lt, ot, It, Rt, $t, Gt;
6036
+ const ee = C("el-icon"), fe = C("el-radio-button"), me = C("el-radio-group"), $e = C("el-table-column"), Re = C("el-empty"), Ke = C("el-table"), et = C("el-pagination"), tt = Mo("loading");
6037
6037
  return M(), D("div", gc, [
6038
6038
  Object.keys(((Te = e.tableConfig) == null ? void 0 : Te.toolbar) || {}).length || e.tableConfig.tbName ? (M(), S(rc, {
6039
6039
  key: 0,
@@ -6057,7 +6057,7 @@ const dc = /* @__PURE__ */ Ce(cc, [["__scopeId", "data-v-fcbc33ca"]]), Mc = {
6057
6057
  isInitLoad: f.value
6058
6058
  }, null, 8, ["modelValue", "tbName", "column", "size", "isShowRefresh", "loading", "toolbar", "isDialog", "layoutSelect", "initLoad", "isInitLoad"])) : Q("", !0),
6059
6059
  He().tabTop ? Ie(O.$slots, "tabTop", { key: 1 }) : Q("", !0),
6060
- (It = (ot = (tt = e.tableConfig) == null ? void 0 : tt.tabConf) == null ? void 0 : ot.tabs) != null && It.length ? (M(), D("div", Nc, [
6060
+ (It = (ot = (lt = e.tableConfig) == null ? void 0 : lt.tabConf) == null ? void 0 : ot.tabs) != null && It.length ? (M(), D("div", Nc, [
6061
6061
  q(me, {
6062
6062
  modelValue: k.value,
6063
6063
  "onUpdate:modelValue": Z[1] || (Z[1] = (Ze) => k.value = Ze),
@@ -6181,10 +6181,10 @@ const dc = /* @__PURE__ */ Ce(cc, [["__scopeId", "data-v-fcbc33ca"]]), Mc = {
6181
6181
  } : void 0
6182
6182
  ]), 1040, ["maxHeight", "class", "data", "row-key", "size", "treeProps", "span-method"]))
6183
6183
  ])), [
6184
- [et, V.value]
6184
+ [tt, V.value]
6185
6185
  ]),
6186
6186
  e.isPager || e.tableConfig.statistic ? (M(), D("div", yc, [
6187
- q(Xe, {
6187
+ q(et, {
6188
6188
  class: "page-info",
6189
6189
  onSizeChange: _,
6190
6190
  onCurrentChange: ue,