@aspire-ui/element-component-pro 1.0.23 → 1.0.25

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.
@@ -1,4 +1,4 @@
1
- import { reactive as et, defineComponent as ne, h as de, useSlots as he, ref as D, computed as w, onMounted as me, nextTick as Le, onUnmounted as Be, watch as U, unref as pe } from "vue";
1
+ import { reactive as et, defineComponent as ne, h as de, useSlots as he, ref as D, computed as w, onMounted as me, nextTick as Le, onUnmounted as Be, watch as J, unref as pe } from "vue";
2
2
  import { MessageBox as tt } from "element-ui";
3
3
  const fe = et({});
4
4
  function Te(s, e) {
@@ -7,14 +7,14 @@ function Te(s, e) {
7
7
  for (const n in e)
8
8
  if (Object.prototype.hasOwnProperty.call(e, n)) {
9
9
  const t = s[n], o = e[n];
10
- Oe(o) ? Oe(t) ? s[n] = Te(
10
+ n === "components" ? s[n] = { ...t, ...o } : Ie(o) ? Ie(t) ? s[n] = Te(
11
11
  t,
12
12
  o
13
13
  ) : s[n] = { ...o } : s[n] = o;
14
14
  }
15
15
  return s;
16
16
  }
17
- function Oe(s) {
17
+ function Ie(s) {
18
18
  if (!s || typeof s != "object")
19
19
  return !1;
20
20
  const e = Object.getPrototypeOf(s);
@@ -22,7 +22,7 @@ function Oe(s) {
22
22
  }
23
23
  function Re() {
24
24
  return {
25
- getSetting: (t) => JSON.parse(JSON.stringify(t === void 0 ? fe : fe[t] ?? {})),
25
+ getSetting: (t) => t === void 0 ? { ...fe } : { ...fe[t] ?? {} },
26
26
  setSetting: (t, o) => {
27
27
  const r = fe[t];
28
28
  r ? fe[t] = Te({ ...r }, o) : fe[t] = { ...o };
@@ -212,7 +212,7 @@ const st = at.exports, rt = /* @__PURE__ */ ne({
212
212
  var c, b;
213
213
  let l = 0;
214
214
  return F.value.rowSelection && (l += Number(F.value.rowSelection.width) || 48), F.value.showIndexColumn && (l += Number((c = F.value.indexColumnProps) == null ? void 0 : c.width) || 60), F.value.actionColumn && (l += Number((b = F.value.actionColumn) == null ? void 0 : b.width) || 150), l;
215
- }), Z = (l) => typeof l == "number" && l > 0, Y = w(() => G.value.filter((c) => O(c) && Z(c.width)).reduce((c, b) => c + (typeof b.width == "number" ? b.width : 0), 0)), te = w(() => G.value.filter((c) => O(c) && typeof c.width == "string").reduce((c, b) => c + (Number(g(b)) || 80), 0)), J = (l) => l == null ? null : typeof l == "number" ? l : parseInt(String(l).replace(/px$/i, ""), 10) || null, le = (l) => {
215
+ }), Z = (l) => typeof l == "number" && l > 0, Y = w(() => G.value.filter((c) => I(c) && Z(c.width)).reduce((c, b) => c + (typeof b.width == "number" ? b.width : 0), 0)), te = w(() => G.value.filter((c) => I(c) && typeof c.width == "string").reduce((c, b) => c + (Number(g(b)) || 80), 0)), U = (l) => l == null ? null : typeof l == "number" ? l : parseInt(String(l).replace(/px$/i, ""), 10) || null, le = (l) => {
216
216
  if (!F.value.spanMethod)
217
217
  return [1, 1];
218
218
  const c = X.value.get(l.column.property);
@@ -225,16 +225,16 @@ const st = at.exports, rt = /* @__PURE__ */ ne({
225
225
  if (Z(c) && Y.value > 0 && f.value > 0 && typeof c == "number") {
226
226
  const b = f.value - ee.value - te.value;
227
227
  let C = Math.floor(b * c / Y.value);
228
- const H = J(l.minWidth) ?? 60, I = J(l.maxWidth);
229
- return C = Math.max(H, C), I != null && (C = Math.min(I, C)), C;
228
+ const H = U(l.minWidth) ?? 60, O = U(l.maxWidth);
229
+ return C = Math.max(H, C), O != null && (C = Math.min(O, C)), C;
230
230
  }
231
231
  if (typeof c == "string") {
232
- const b = J(c) ?? 80, C = J(l.minWidth), H = J(l.maxWidth);
233
- let I = b;
234
- return C != null && (I = Math.max(C, I)), H != null && (I = Math.min(H, I)), I;
232
+ const b = U(c) ?? 80, C = U(l.minWidth), H = U(l.maxWidth);
233
+ let O = b;
234
+ return C != null && (O = Math.max(C, O)), H != null && (O = Math.min(H, O)), O;
235
235
  }
236
236
  return l.minWidth;
237
- }, O = (l) => l.ifShow === !1 ? !1 : typeof l.ifShow == "function" ? l.ifShow({ column: l }) : !0, $ = w(() => {
237
+ }, I = (l) => l.ifShow === !1 ? !1 : typeof l.ifShow == "function" ? l.ifShow({ column: l }) : !0, $ = w(() => {
238
238
  var c;
239
239
  const l = (c = F.value.rowSelection) == null ? void 0 : c.getCheckboxProps;
240
240
  return l ? z.value.filter((b) => {
@@ -276,7 +276,7 @@ const st = at.exports, rt = /* @__PURE__ */ ne({
276
276
  }
277
277
  m.value = !0;
278
278
  try {
279
- const c = F.value.fetchSetting ?? {}, b = c.pageField ?? "page", C = c.sizeField ?? "pageSize", H = c.listField ?? "list", I = c.totalField ?? "total", oe = {
279
+ const c = F.value.fetchSetting ?? {}, b = c.pageField ?? "page", C = c.sizeField ?? "pageSize", H = c.listField ?? "list", O = c.totalField ?? "total", oe = {
280
280
  [b]: (l == null ? void 0 : l.page) ?? E.value.page,
281
281
  [C]: (l == null ? void 0 : l.pageSize) ?? E.value.pageSize,
282
282
  ...t.searchInfo,
@@ -285,7 +285,7 @@ const st = at.exports, rt = /* @__PURE__ */ ne({
285
285
  (l == null ? void 0 : l.page) != null && (E.value.page = l.page), (l == null ? void 0 : l.pageSize) != null && (E.value.pageSize = l.pageSize);
286
286
  const ie = t.beforeFetch ? t.beforeFetch(oe) : oe, $e = await t.api(ie);
287
287
  S.value = $e || {};
288
- const Fe = t.afterFetch ? t.afterFetch($e) : $e, ze = Fe[H] ?? Fe.items ?? Fe.list ?? [], Ee = Fe[I] ?? 0;
288
+ const Fe = t.afterFetch ? t.afterFetch($e) : $e, ze = Fe[H] ?? Fe.items ?? Fe.list ?? [], Ee = Fe[O] ?? 0;
289
289
  _.value = ze, E.value.total = Ee, n("fetch-success", { items: ze, total: Ee });
290
290
  } catch (c) {
291
291
  _.value = [], n("fetch-error", c);
@@ -318,7 +318,7 @@ const st = at.exports, rt = /* @__PURE__ */ ne({
318
318
  getColumns: () => x.value,
319
319
  setColumns: (l) => {
320
320
  if (Array.isArray(l) && l.length > 0 && typeof l[0] == "string") {
321
- const c = l, b = (t.columns ?? []).filter((H) => c.includes(H.key ?? H.dataIndex)), C = c.map((H) => b.find((I) => (I.key ?? I.dataIndex) === H)).filter(Boolean);
321
+ const c = l, b = (t.columns ?? []).filter((H) => c.includes(H.key ?? H.dataIndex)), C = c.map((H) => b.find((O) => (O.key ?? O.dataIndex) === H)).filter(Boolean);
322
322
  C.length && (x.value = C);
323
323
  } else
324
324
  x.value = l ?? [];
@@ -342,8 +342,8 @@ const st = at.exports, rt = /* @__PURE__ */ ne({
342
342
  },
343
343
  /** index 为当前页索引,自动转换为全量索引 */
344
344
  updateTableData: (l, c, b) => {
345
- const { page: C, pageSize: H } = E.value, I = (C - 1) * H + l;
346
- I < 0 || I >= _.value.length || (_.value = [..._.value], _.value[I] = { ..._.value[I], [c]: b });
345
+ const { page: C, pageSize: H } = E.value, O = (C - 1) * H + l;
346
+ O < 0 || O >= _.value.length || (_.value = [..._.value], _.value[O] = { ..._.value[O], [c]: b });
347
347
  },
348
348
  updateTableDataRecord: (l, c) => {
349
349
  const b = _.value.findIndex((C) => C[y.value] === l);
@@ -367,42 +367,42 @@ const st = at.exports, rt = /* @__PURE__ */ ne({
367
367
  expandAll: () => {
368
368
  var C;
369
369
  const l = ((C = F.value.treeProps) == null ? void 0 : C.children) ?? "children", c = (H) => {
370
- const I = [];
370
+ const O = [];
371
371
  return H.forEach((oe) => {
372
- I.push(oe);
372
+ O.push(oe);
373
373
  const ie = oe[l];
374
- Array.isArray(ie) && ie.length > 0 && I.push(...c(ie));
375
- }), I;
374
+ Array.isArray(ie) && ie.length > 0 && O.push(...c(ie));
375
+ }), O;
376
376
  };
377
377
  c(_.value).forEach((H) => {
378
- var I, oe;
379
- return (oe = (I = r.value) == null ? void 0 : I.toggleRowExpansion) == null ? void 0 : oe.call(I, H, !0);
378
+ var O, oe;
379
+ return (oe = (O = r.value) == null ? void 0 : O.toggleRowExpansion) == null ? void 0 : oe.call(O, H, !0);
380
380
  });
381
381
  },
382
382
  collapseAll: () => {
383
383
  var C;
384
384
  const l = ((C = F.value.treeProps) == null ? void 0 : C.children) ?? "children", c = (H) => {
385
- const I = [];
385
+ const O = [];
386
386
  return H.forEach((oe) => {
387
- I.push(oe);
387
+ O.push(oe);
388
388
  const ie = oe[l];
389
- Array.isArray(ie) && ie.length > 0 && I.push(...c(ie));
390
- }), I;
389
+ Array.isArray(ie) && ie.length > 0 && O.push(...c(ie));
390
+ }), O;
391
391
  };
392
392
  c(_.value).forEach((H) => {
393
- var I, oe;
394
- return (oe = (I = r.value) == null ? void 0 : I.toggleRowExpansion) == null ? void 0 : oe.call(I, H, !1);
393
+ var O, oe;
394
+ return (oe = (O = r.value) == null ? void 0 : O.toggleRowExpansion) == null ? void 0 : oe.call(O, H, !1);
395
395
  });
396
396
  }
397
397
  };
398
398
  e(ce);
399
399
  const ue = () => {
400
400
  const l = (c, b = "") => c.map((C, H) => {
401
- const I = `${C.dataIndex}`;
401
+ const O = `${C.dataIndex}`;
402
402
  return {
403
403
  ...C,
404
- dataIndex: I,
405
- children: C.children ? l(C.children, I) : void 0
404
+ dataIndex: O,
405
+ children: C.children ? l(C.children, O) : void 0
406
406
  };
407
407
  });
408
408
  x.value = l(t.columns ?? []);
@@ -418,11 +418,11 @@ const st = at.exports, rt = /* @__PURE__ */ ne({
418
418
  }));
419
419
  }), Be(() => {
420
420
  typeof window < "u" && (window.removeEventListener("resize", P), R && T && (R.unobserve(T), T = null));
421
- }), U(() => t.columns, ue, { deep: !0 }), U(() => t.dataSource, () => {
421
+ }), J(() => t.columns, ue, { deep: !0 }), J(() => t.dataSource, () => {
422
422
  !t.api && t.dataSource && (_.value = [...t.dataSource], t.pagination !== !1 && (E.value.total = t.dataSource.length));
423
- }, { deep: !0 }), U(() => t.loading, (l) => {
423
+ }, { deep: !0 }), J(() => t.loading, (l) => {
424
424
  m.value = l ?? !1;
425
- }), { __sfc: !0, props: t, emit: n, slots: o, tableRef: r, tableWrapRef: a, containerWidth: f, loading: m, localFullData: _, innerData: z, rawDataSource: S, innerColumns: x, innerProps: p, selectedRows: v, showPaginationRef: B, mergeSettings: V, effectiveProps: F, defaultPagination: A, pagination: E, showTitleBar: N, showPagination: k, paginationSmall: u, paginationBackground: W, rowKeyField: y, selectedKeysSet: j, displayColumns: q, flatColumnsMap: X, allFlatColumns: G, fixedColumnsWidth: ee, isRatioWidth: Z, totalRatio: Y, fixedDataColumnsWidth: te, parseWidthPx: J, spanMethodAdapter: le, getColumnWidth: g, shouldShowColumn: O, selectableRows: $, hasSelectableRows: i, isAllCurrentPageSelected: h, isIndeterminate: M, isRowSelected: K, getCheckboxDisabled: L, getRadioDisabled: Q, emitSelectionChange: ae, handleCheckboxChange: _e, handleRadioSelect: ge, handleSelectAll: be, fetchData: re, handleReload: ye, handleSizeChange: we, handleCurrentChange: xe, handleRowClick: Ce, handleRowDblclick: Pe, handleSortChange: Se, handleExpandChange: ve, tableAction: ce, syncColumns: ue, loadData: d, updateContainerWidth: P, resizeObserver: R, observedEl: T, TableColumnGroup: st, BodyCellRenderer: qe };
425
+ }), { __sfc: !0, props: t, emit: n, slots: o, tableRef: r, tableWrapRef: a, containerWidth: f, loading: m, localFullData: _, innerData: z, rawDataSource: S, innerColumns: x, innerProps: p, selectedRows: v, showPaginationRef: B, mergeSettings: V, effectiveProps: F, defaultPagination: A, pagination: E, showTitleBar: N, showPagination: k, paginationSmall: u, paginationBackground: W, rowKeyField: y, selectedKeysSet: j, displayColumns: q, flatColumnsMap: X, allFlatColumns: G, fixedColumnsWidth: ee, isRatioWidth: Z, totalRatio: Y, fixedDataColumnsWidth: te, parseWidthPx: U, spanMethodAdapter: le, getColumnWidth: g, shouldShowColumn: I, selectableRows: $, hasSelectableRows: i, isAllCurrentPageSelected: h, isIndeterminate: M, isRowSelected: K, getCheckboxDisabled: L, getRadioDisabled: Q, emitSelectionChange: ae, handleCheckboxChange: _e, handleRadioSelect: ge, handleSelectAll: be, fetchData: re, handleReload: ye, handleSizeChange: we, handleCurrentChange: xe, handleRowClick: Ce, handleRowDblclick: Pe, handleSortChange: Se, handleExpandChange: ve, tableAction: ce, syncColumns: ue, loadData: d, updateContainerWidth: P, resizeObserver: R, observedEl: T, TableColumnGroup: st, BodyCellRenderer: qe };
426
426
  }
427
427
  });
428
428
  var it = function() {
@@ -459,7 +459,7 @@ var it = function() {
459
459
  null,
460
460
  null
461
461
  );
462
- const He = ut.exports, Ie = (s) => Array.isArray(s) ? s.length > 0 : s != null && String(s).trim() !== "", Ne = (s) => Array.isArray(s) ? s.map((e) => String(e)).join(", ") : s == null ? "" : typeof s == "object" ? JSON.stringify(s) : String(s), De = (s, e) => {
462
+ const He = ut.exports, Oe = (s) => Array.isArray(s) ? s.length > 0 : s != null && String(s).trim() !== "", Ne = (s) => Array.isArray(s) ? s.map((e) => String(e)).join(", ") : s == null ? "" : typeof s == "object" ? JSON.stringify(s) : String(s), De = (s, e) => {
463
463
  if (!s)
464
464
  return null;
465
465
  if (s === !0)
@@ -467,7 +467,7 @@ const He = ut.exports, Ie = (s) => Array.isArray(s) ? s.length > 0 : s != null &
467
467
  content: Ne(e),
468
468
  placement: "top",
469
469
  effect: "dark",
470
- disabled: !Ie(e)
470
+ disabled: !Oe(e)
471
471
  };
472
472
  if (typeof s == "string")
473
473
  return {
@@ -476,7 +476,7 @@ const He = ut.exports, Ie = (s) => Array.isArray(s) ? s.length > 0 : s != null &
476
476
  effect: "dark"
477
477
  };
478
478
  const n = { ...s };
479
- return Object.prototype.hasOwnProperty.call(n, "content") || (n.content = Ne(e)), Object.prototype.hasOwnProperty.call(n, "placement") || (n.placement = "top"), Object.prototype.hasOwnProperty.call(n, "effect") || (n.effect = "dark"), Object.prototype.hasOwnProperty.call(n, "disabled") || (n.disabled = !Ie(n.content)), n;
479
+ return Object.prototype.hasOwnProperty.call(n, "content") || (n.content = Ne(e)), Object.prototype.hasOwnProperty.call(n, "placement") || (n.placement = "top"), Object.prototype.hasOwnProperty.call(n, "effect") || (n.effect = "dark"), Object.prototype.hasOwnProperty.call(n, "disabled") || (n.disabled = !Oe(n.content)), n;
480
480
  }, dt = /* @__PURE__ */ ne({
481
481
  __name: "TableAction",
482
482
  props: {
@@ -562,7 +562,7 @@ function un(s) {
562
562
  const f = n();
563
563
  f && Object.keys(f).length > 0 && a.setProps(f);
564
564
  };
565
- return s && U(
565
+ return s && J(
566
566
  () => n(),
567
567
  (a) => {
568
568
  a && e.value && e.value.setProps(a);
@@ -647,13 +647,13 @@ const vt = /* @__PURE__ */ ne({
647
647
  fetchOptions: z
648
648
  }), me(() => {
649
649
  n.lazy || z();
650
- }), U(
650
+ }), J(
651
651
  () => n.api,
652
652
  () => {
653
653
  n.lazy ? (o.value = [], r.value = []) : z();
654
654
  },
655
655
  { deep: !0 }
656
- ), U(() => n.params, () => {
656
+ ), J(() => n.params, () => {
657
657
  a(n.params ?? null) !== m.value && (n.lazy ? (o.value = [], r.value = []) : z());
658
658
  }, { deep: !0 }), { __sfc: !0, props: n, loading: t, options: o, rawOptions: r, sortStringify: a, sortKeys: f, lastFetchedParamsKey: m, onVisibleChange: _, fetchOptions: z };
659
659
  }
@@ -807,7 +807,7 @@ const St = /* @__PURE__ */ ne({
807
807
  a()
808
808
  );
809
809
  }
810
- U(
810
+ J(
811
811
  () => [n.value, n.integerDigits, n.decimalPlaces, n.rounding],
812
812
  () => m(),
813
813
  { immediate: !0, deep: !0 }
@@ -899,8 +899,8 @@ const Me = Bt.exports, Rt = /* @__PURE__ */ ne({
899
899
  for (const Z of y) {
900
900
  const Y = String(Z[X] ?? Z.label ?? ""), te = Z[G] ?? Z.value;
901
901
  te != null && (q[String(te)] = j ? j + " / " + Y : Y);
902
- const J = Z[ee] ?? Z.children;
903
- Array.isArray(J) && J.length && Object.assign(q, x(J, Y));
902
+ const U = Z[ee] ?? Z.children;
903
+ Array.isArray(U) && U.length && Object.assign(q, x(U, Y));
904
904
  }
905
905
  return q;
906
906
  }
@@ -924,7 +924,7 @@ const Me = Bt.exports, Rt = /* @__PURE__ */ ne({
924
924
  const q = n.labelField ?? "label";
925
925
  return String(j[q] ?? j.label ?? "").toLowerCase().includes(y.toLowerCase());
926
926
  };
927
- U(f, (y) => {
927
+ J(f, (y) => {
928
928
  var j;
929
929
  (j = o.value) == null || j.filter(y);
930
930
  });
@@ -959,11 +959,11 @@ const Me = Bt.exports, Rt = /* @__PURE__ */ ne({
959
959
  }
960
960
  return me(() => {
961
961
  p() ? B() : n.lazy || W();
962
- }), U(() => n.treeData, () => {
962
+ }), J(() => n.treeData, () => {
963
963
  p() ? B() : (m.value = [], _.value = {}, !n.lazy && n.api && W());
964
- }, { deep: !0 }), U(() => n.api, () => {
964
+ }, { deep: !0 }), J(() => n.api, () => {
965
965
  p() || (n.lazy ? (m.value = [], _.value = {}) : W());
966
- }, { deep: !0 }), U(() => n.params, () => {
966
+ }, { deep: !0 }), J(() => n.params, () => {
967
967
  p() || (n.lazy ? (m.value = [], _.value = {}) : W());
968
968
  }, { deep: !0 }), { __sfc: !0, props: n, emit: e, rootRef: t, treeRef: o, dropdownVisible: r, loading: a, filterText: f, treeData: m, flatLabelMap: _, treeProps: z, normalizeNode: S, buildFlatLabelMap: x, hasTreeDataProp: p, applyTreeData: v, syncFromTreeDataProp: B, displayText: V, filterNodeMethod: F, clickOutsideHandler: A, openDropdown: E, closeDropdown: N, clearValue: k, onNodeClick: u, fetchData: W };
969
969
  }
@@ -1110,7 +1110,7 @@ var zt = function() {
1110
1110
  }, expression: "formModel[schema.field]" } }, "el-radio-group", t.effectiveComponentProps, !1), t.effectiveComponentListeners), e._l(t.getOptions(t.effectiveComponentProps) || [], function(o) {
1111
1111
  return n("el-radio", { key: String(o.value), attrs: { label: o.value } }, [e._v(" " + e._s(o.label) + " ")]);
1112
1112
  }), 1) : e._e()], 1)]], 2) : e._e();
1113
- }, Et = [], Ot = /* @__PURE__ */ se(
1113
+ }, Et = [], It = /* @__PURE__ */ se(
1114
1114
  Dt,
1115
1115
  zt,
1116
1116
  Et,
@@ -1120,7 +1120,7 @@ var zt = function() {
1120
1120
  null,
1121
1121
  null
1122
1122
  );
1123
- const Je = Ot.exports, It = /* @__PURE__ */ ne({
1123
+ const Ue = It.exports, Ot = /* @__PURE__ */ ne({
1124
1124
  __name: "FormActions",
1125
1125
  props: {
1126
1126
  showActionButtonGroup: { type: Boolean, default: !0 },
@@ -1149,7 +1149,7 @@ var Nt = function() {
1149
1149
  return e.$emit("reset");
1150
1150
  } } }, [e._v(" " + e._s(e.resetButtonText) + " ")]) : e._e(), e._t("actions")], 2);
1151
1151
  }, Vt = [], Wt = /* @__PURE__ */ se(
1152
- It,
1152
+ Ot,
1153
1153
  Nt,
1154
1154
  Vt,
1155
1155
  !1,
@@ -1158,7 +1158,7 @@ var Nt = function() {
1158
1158
  null,
1159
1159
  null
1160
1160
  );
1161
- const Ue = Wt.exports, Kt = /* @__PURE__ */ ne({
1161
+ const Je = Wt.exports, Kt = /* @__PURE__ */ ne({
1162
1162
  __name: "ProForm",
1163
1163
  props: {
1164
1164
  schemas: null,
@@ -1240,7 +1240,7 @@ const Ue = Wt.exports, Kt = /* @__PURE__ */ ne({
1240
1240
  }), R;
1241
1241
  }, te = (d, P = !0) => {
1242
1242
  _.value = d, P && n("update:modelValue", d);
1243
- }, J = (d) => {
1243
+ }, U = (d) => {
1244
1244
  const P = Y({ ...N.value, ...d });
1245
1245
  return te(P), P;
1246
1246
  }, le = () => {
@@ -1257,7 +1257,7 @@ const Ue = Wt.exports, Kt = /* @__PURE__ */ ne({
1257
1257
  return;
1258
1258
  (typeof T == "boolean" ? T : T({ schema: R, values: d, model: d, field: R.field })) || delete P[R.field];
1259
1259
  }), P;
1260
- }, O = (d) => {
1260
+ }, I = (d) => {
1261
1261
  const P = g(d), R = x.value.fieldMapToTime;
1262
1262
  if (!(R != null && R.length))
1263
1263
  return P;
@@ -1269,7 +1269,7 @@ const Ue = Wt.exports, Kt = /* @__PURE__ */ ne({
1269
1269
  }, $ = async () => {
1270
1270
  var d;
1271
1271
  try {
1272
- await ((d = r.value) == null ? void 0 : d.validate()), F.value.submitFunc ? await F.value.submitFunc() : (f.value = !0, n("submit", O({ ...N.value })));
1272
+ await ((d = r.value) == null ? void 0 : d.validate()), F.value.submitFunc ? await F.value.submitFunc() : (f.value = !0, n("submit", I({ ...N.value })));
1273
1273
  } catch (P) {
1274
1274
  console.error("Form validation failed:", P);
1275
1275
  } finally {
@@ -1278,11 +1278,11 @@ const Ue = Wt.exports, Kt = /* @__PURE__ */ ne({
1278
1278
  }, i = async () => {
1279
1279
  var d;
1280
1280
  F.value.resetFunc ? await F.value.resetFunc() : ((d = r.value) == null || d.resetFields(), le(), n("reset"), F.value.submitOnReset && await $());
1281
- }, h = (d) => (J(d), Promise.resolve()), M = () => O({ ...N.value }), K = async () => {
1281
+ }, h = (d) => (U(d), Promise.resolve()), M = () => I({ ...N.value }), K = async () => {
1282
1282
  var d;
1283
1283
  (d = r.value) == null || d.resetFields(), te(Y(void 0, !1));
1284
1284
  }, L = (d, P) => {
1285
- J({ [d]: P });
1285
+ U({ [d]: P });
1286
1286
  }, Q = (d) => {
1287
1287
  var P;
1288
1288
  return ((P = r.value) == null ? void 0 : P.validate(d)) ?? Promise.resolve();
@@ -1360,9 +1360,9 @@ const Ue = Wt.exports, Kt = /* @__PURE__ */ ne({
1360
1360
  ce(), n("register", ve), typeof window < "u" && window.addEventListener("resize", ue);
1361
1361
  }), Be(() => {
1362
1362
  typeof window < "u" && window.removeEventListener("resize", ue);
1363
- }), U(() => A.value, (d) => {
1363
+ }), J(() => A.value, (d) => {
1364
1364
  !E.value || d === void 0 || te(Y(d), !1);
1365
- }, { deep: !0, immediate: !0 }), U(() => [t.schemas, t.initialValues], ce, { deep: !0 }), { __sfc: !0, props: t, emit: n, slots: o, formRef: r, formWrapRef: a, submitLoading: f, collapsed: m, formModel: _, formRules: z, innerSchemas: S, innerProps: x, fieldInstanceMap: p, BREAKPOINTS: v, getEffectiveSpan: B, getComponentSetting: V, effectiveProps: F, controlledModelValue: A, isControlled: E, currentFormModel: N, formCustomComponents: k, effectiveActionColOptions: u, windowWidth: W, getVisibleSchemaCount: y, hasMoreFields: j, formListeners: q, displaySchemas: X, shouldShow: G, getColProps: ee, getSlotName: Z, resolveSchemaModel: Y, applyFormModel: te, updateFormModel: J, initForm: le, filterByIfShow: g, processFieldMapToTime: O, handleSubmit: $, handleReset: i, setFieldsValue: h, getFieldsValue: M, resetFields: K, handleFieldChange: L, validate: Q, validateFields: ae, scrollToField: _e, clearValidate: ge, updateSchema: be, appendSchemaByField: re, removeSchemaByField: ye, setProps: we, registerFieldInstance: xe, getComponentInstance: Ce, getFieldOptions: Pe, isFieldLoading: Se, formActionRef: ve, syncSchemas: ce, handleResize: ue, ProFormItem: Je, FormActions: Ue };
1365
+ }, { deep: !0, immediate: !0 }), J(() => [t.schemas, t.initialValues], ce, { deep: !0 }), { __sfc: !0, props: t, emit: n, slots: o, formRef: r, formWrapRef: a, submitLoading: f, collapsed: m, formModel: _, formRules: z, innerSchemas: S, innerProps: x, fieldInstanceMap: p, BREAKPOINTS: v, getEffectiveSpan: B, getComponentSetting: V, effectiveProps: F, controlledModelValue: A, isControlled: E, currentFormModel: N, formCustomComponents: k, effectiveActionColOptions: u, windowWidth: W, getVisibleSchemaCount: y, hasMoreFields: j, formListeners: q, displaySchemas: X, shouldShow: G, getColProps: ee, getSlotName: Z, resolveSchemaModel: Y, applyFormModel: te, updateFormModel: U, initForm: le, filterByIfShow: g, processFieldMapToTime: I, handleSubmit: $, handleReset: i, setFieldsValue: h, getFieldsValue: M, resetFields: K, handleFieldChange: L, validate: Q, validateFields: ae, scrollToField: _e, clearValidate: ge, updateSchema: be, appendSchemaByField: re, removeSchemaByField: ye, setProps: we, registerFieldInstance: xe, getComponentInstance: Ce, getFieldOptions: Pe, isFieldLoading: Se, formActionRef: ve, syncSchemas: ce, handleResize: ue, ProFormItem: Ue, FormActions: Je };
1366
1366
  }
1367
1367
  });
1368
1368
  var Lt = function() {
@@ -1392,7 +1392,7 @@ function dn(s) {
1392
1392
  const u = t();
1393
1393
  u && Object.keys(u).length > 0 && k.setProps(u);
1394
1394
  };
1395
- s && U(
1395
+ s && J(
1396
1396
  () => t(),
1397
1397
  (k) => {
1398
1398
  n.value = k, k && e.value && e.value.setProps(k);
@@ -1491,56 +1491,56 @@ const Ht = /* @__PURE__ */ ne({
1491
1491
  },
1492
1492
  setup(g) {
1493
1493
  return () => {
1494
- const O = g.schema, $ = g.record, i = g.value, h = (M) => {
1495
- const K = z(O, M === g.emptyText ? i : M, $), L = de("span", M);
1494
+ const I = g.schema, $ = g.record, i = g.value, h = (M) => {
1495
+ const K = z(I, M === g.emptyText ? i : M, $), L = de("span", M);
1496
1496
  return K ? de("el-tooltip", { props: K }, [L]) : L;
1497
1497
  };
1498
- if (O.render) {
1499
- const M = O.render(i, $);
1498
+ if (I.render) {
1499
+ const M = I.render(i, $);
1500
1500
  return M == null || M === "" ? h(g.emptyText) : typeof M == "string" || typeof M == "number" ? h(String(M)) : M;
1501
1501
  }
1502
1502
  return Array.isArray(i) ? h(i.length ? i.join(", ") : g.emptyText) : i == null || i === "" ? h(g.emptyText) : h(typeof i == "object" ? JSON.stringify(i) : String(i));
1503
1503
  };
1504
1504
  }
1505
- }), z = (g, O, $) => {
1505
+ }), z = (g, I, $) => {
1506
1506
  const i = g.tooltip;
1507
1507
  if (!i)
1508
1508
  return null;
1509
- const h = typeof i == "function" ? i({ value: O, record: $, schema: g }) : i;
1510
- return De(h, O);
1511
- }, { mergeSettings: S } = Re(), x = w(() => S("ProDescriptions", { ...t, ...o.value })), p = { xxl: 1920, xl: 1200, lg: 992, md: 768, sm: 576 }, v = (g, O) => {
1509
+ const h = typeof i == "function" ? i({ value: I, record: $, schema: g }) : i;
1510
+ return De(h, I);
1511
+ }, { mergeSettings: S } = Re(), x = w(() => S("ProDescriptions", { ...t, ...o.value })), p = { xxl: 1920, xl: 1200, lg: 992, md: 768, sm: 576 }, v = (g, I) => {
1512
1512
  if (typeof g == "number")
1513
1513
  return Math.max(1, g);
1514
1514
  const $ = g ?? {};
1515
- return O >= p.xxl ? $.xxl ?? $.xl ?? $.lg ?? $.md ?? $.sm ?? $.xs ?? 3 : O >= p.xl ? $.xl ?? $.lg ?? $.md ?? $.sm ?? $.xs ?? 3 : O >= p.lg ? $.lg ?? $.md ?? $.sm ?? $.xs ?? 3 : O >= p.md ? $.md ?? $.sm ?? $.xs ?? 3 : O >= p.sm ? $.sm ?? $.xs ?? 2 : $.xs ?? 1;
1515
+ return I >= p.xxl ? $.xxl ?? $.xl ?? $.lg ?? $.md ?? $.sm ?? $.xs ?? 3 : I >= p.xl ? $.xl ?? $.lg ?? $.md ?? $.sm ?? $.xs ?? 3 : I >= p.lg ? $.lg ?? $.md ?? $.sm ?? $.xs ?? 3 : I >= p.md ? $.md ?? $.sm ?? $.xs ?? 3 : I >= p.sm ? $.sm ?? $.xs ?? 2 : $.xs ?? 1;
1516
1516
  }, B = w(() => v(x.value.column, f.value)), V = w(() => x.value.data ?? r.value ?? {}), F = w(() => (a.value.length ? a.value : x.value.schema ?? []).filter((g) => g.dataIndex || g.field ? typeof g.show == "function" ? g.show(V.value) : g.show !== !1 : !1).map((g) => ({
1517
1517
  ...g,
1518
1518
  dataIndex: g.dataIndex || g.field || ""
1519
1519
  }))), A = w(() => {
1520
1520
  const g = [];
1521
- let O = { items: [] }, $ = 0;
1521
+ let I = { items: [] }, $ = 0;
1522
1522
  const i = B.value;
1523
1523
  return F.value.forEach((h, M) => {
1524
1524
  const K = F.value.length - M, L = Math.max(1, Math.min(h.span ?? 1, i)), Q = K === 1 ? i - $ || i : L;
1525
- $ + Q > i && (g.push(O), O = { items: [] }, $ = 0);
1525
+ $ + Q > i && (g.push(I), I = { items: [] }, $ = 0);
1526
1526
  const ae = K === 1 && $ < i ? Math.max(1, i - $) : Q;
1527
- O.items.push({ ...h, _span: ae }), $ += ae, $ >= i && (g.push(O), O = { items: [] }, $ = 0);
1528
- }), O.items.length > 0 && g.push(O), g;
1527
+ I.items.push({ ...h, _span: ae }), $ += ae, $ >= i && (g.push(I), I = { items: [] }, $ = 0);
1528
+ }), I.items.length > 0 && g.push(I), g;
1529
1529
  }), E = w(() => {
1530
- var O;
1530
+ var I;
1531
1531
  if (!N.value || m.value)
1532
1532
  return A.value;
1533
- const g = Math.max(1, ((O = x.value.collapseOptions) == null ? void 0 : O.visibleRows) ?? 1);
1533
+ const g = Math.max(1, ((I = x.value.collapseOptions) == null ? void 0 : I.visibleRows) ?? 1);
1534
1534
  return A.value.slice(0, g);
1535
1535
  }), N = w(() => {
1536
- var O, $;
1537
- const g = Math.max(1, ((O = x.value.collapseOptions) == null ? void 0 : O.visibleRows) ?? 1);
1536
+ var I, $;
1537
+ const g = Math.max(1, ((I = x.value.collapseOptions) == null ? void 0 : I.visibleRows) ?? 1);
1538
1538
  return !!x.value.useCollapse && !!(($ = x.value.collapseOptions) != null && $.canExpand) && A.value.length > g;
1539
1539
  }), k = w(() => !!x.value.title || !!x.value.helpMessage || N.value), u = w(() => {
1540
- var g, O;
1540
+ var g, I;
1541
1541
  return {
1542
1542
  expand: ((g = x.value.collapseOptions) == null ? void 0 : g.expandButtonText) ?? "展开",
1543
- collapse: ((O = x.value.collapseOptions) == null ? void 0 : O.collapseButtonText) ?? "收起"
1543
+ collapse: ((I = x.value.collapseOptions) == null ? void 0 : I.collapseButtonText) ?? "收起"
1544
1544
  };
1545
1545
  }), W = w(() => ({
1546
1546
  gridTemplateColumns: `repeat(${B.value}, minmax(0, 1fr))`
@@ -1560,26 +1560,26 @@ const Ht = /* @__PURE__ */ ne({
1560
1560
  o.value = { ...o.value, ...g }, g.schema && (a.value = [...g.schema]), g.data && (r.value = { ...g.data });
1561
1561
  }, Y = async (g) => {
1562
1562
  r.value = { ...r.value, ...g }, o.value = { ...o.value, data: r.value };
1563
- }, te = () => ({ ...x.value.data ?? r.value ?? {} }), J = {
1563
+ }, te = () => ({ ...x.value.data ?? r.value ?? {} }), U = {
1564
1564
  setProps: Z,
1565
1565
  setData: Y,
1566
1566
  getData: te
1567
1567
  };
1568
- e(J);
1568
+ e(U);
1569
1569
  const le = () => {
1570
1570
  typeof window < "u" && (f.value = window.innerWidth);
1571
1571
  };
1572
1572
  return me(() => {
1573
1573
  var g;
1574
- G(), ee(), m.value = ((g = x.value.collapseOptions) == null ? void 0 : g.defaultExpand) !== !1, n("register", J), typeof window < "u" && window.addEventListener("resize", le);
1574
+ G(), ee(), m.value = ((g = x.value.collapseOptions) == null ? void 0 : g.defaultExpand) !== !1, n("register", U), typeof window < "u" && window.addEventListener("resize", le);
1575
1575
  }), Be(() => {
1576
1576
  typeof window < "u" && window.removeEventListener("resize", le);
1577
- }), U(() => x.value.schema, G, { deep: !0 }), U(() => x.value.data, ee, { deep: !0 }), U(() => {
1577
+ }), J(() => x.value.schema, G, { deep: !0 }), J(() => x.value.data, ee, { deep: !0 }), J(() => {
1578
1578
  var g;
1579
1579
  return (g = x.value.collapseOptions) == null ? void 0 : g.defaultExpand;
1580
1580
  }, (g) => {
1581
1581
  g !== void 0 && (m.value = g);
1582
- }), { __sfc: !0, props: t, emit: n, innerProps: o, innerData: r, innerSchema: a, windowWidth: f, expanded: m, DescriptionValueRenderer: _, normalizeTooltip: z, mergeSettings: S, effectiveProps: x, breakpoints: p, resolveColumn: v, currentColumn: B, effectiveData: V, visibleSchema: F, normalizedRows: A, renderedRows: E, showCollapseButton: N, showHeader: k, collapseButtonText: u, bodyStyle: W, getItemStyle: y, getLabelStyle: j, getContentStyle: q, getItemValue: X, syncSchema: G, syncData: ee, setProps: Z, setData: Y, getData: te, descriptionAction: J, updateWindowWidth: le };
1582
+ }), { __sfc: !0, props: t, emit: n, innerProps: o, innerData: r, innerSchema: a, windowWidth: f, expanded: m, DescriptionValueRenderer: _, normalizeTooltip: z, mergeSettings: S, effectiveProps: x, breakpoints: p, resolveColumn: v, currentColumn: B, effectiveData: V, visibleSchema: F, normalizedRows: A, renderedRows: E, showCollapseButton: N, showHeader: k, collapseButtonText: u, bodyStyle: W, getItemStyle: y, getLabelStyle: j, getContentStyle: q, getItemValue: X, syncSchema: G, syncData: ee, setProps: Z, setData: Y, getData: te, descriptionAction: U, updateWindowWidth: le };
1583
1583
  }
1584
1584
  });
1585
1585
  var Gt = function() {
@@ -1599,17 +1599,17 @@ var Gt = function() {
1599
1599
  return [n("div", { key: `${a}-${f.dataIndex || f.field}`, staticClass: "ecp-pro-descriptions__item", style: t.getItemStyle(f) }, [n("div", { staticClass: "ecp-pro-descriptions__label", style: t.getLabelStyle(f) }, [e._v(" " + e._s(f.label) + " ")]), n("div", { staticClass: "ecp-pro-descriptions__content", style: t.getContentStyle(f) }, [e.$scopedSlots[f.slot || f.dataIndex] ? e._t(f.slot || f.dataIndex, null, { value: t.getItemValue(f), record: t.effectiveData, schema: f }) : n(t.DescriptionValueRenderer, { attrs: { schema: f, value: t.getItemValue(f), record: t.effectiveData, "empty-text": t.effectiveProps.emptyText || "-" } })], 2)])];
1600
1600
  })];
1601
1601
  })], 2)]);
1602
- }, Jt = [], Ut = /* @__PURE__ */ se(
1602
+ }, Ut = [], Jt = /* @__PURE__ */ se(
1603
1603
  Ht,
1604
1604
  Gt,
1605
- Jt,
1605
+ Ut,
1606
1606
  !1,
1607
1607
  null,
1608
1608
  "656036f6",
1609
1609
  null,
1610
1610
  null
1611
1611
  );
1612
- const Ze = Ut.exports;
1612
+ const Ze = Jt.exports;
1613
1613
  function fn(s) {
1614
1614
  const e = D(null), n = () => s ? pe(s) : void 0, t = () => {
1615
1615
  const a = pe(e);
@@ -1621,7 +1621,7 @@ function fn(s) {
1621
1621
  const f = n();
1622
1622
  f && Object.keys(f).length > 0 && a.setProps(f);
1623
1623
  };
1624
- return s && U(
1624
+ return s && J(
1625
1625
  () => n(),
1626
1626
  (a) => {
1627
1627
  a && e.value && e.value.setProps(a);
@@ -1673,9 +1673,9 @@ const Xt = /* @__PURE__ */ ne({
1673
1673
  }, F = () => {
1674
1674
  x.value && V();
1675
1675
  };
1676
- return U(() => t.expanded, (A) => {
1676
+ return J(() => t.expanded, (A) => {
1677
1677
  A !== void 0 && (a.value = A);
1678
- }), U(() => t.defaultExpand, (A) => {
1678
+ }), J(() => t.defaultExpand, (A) => {
1679
1679
  t.expanded === void 0 && (a.value = A);
1680
1680
  }), e({
1681
1681
  setExpanded: B,
@@ -1857,7 +1857,7 @@ const Qe = Yt.exports, en = {
1857
1857
  function te(i) {
1858
1858
  return i.component === "formatted-number" ? Me : "el-input";
1859
1859
  }
1860
- function J(i) {
1860
+ function U(i) {
1861
1861
  const h = i.componentProps || {};
1862
1862
  return i.component === "formatted-number" ? {
1863
1863
  integerDigits: 5,
@@ -1896,7 +1896,7 @@ const Qe = Yt.exports, en = {
1896
1896
  Q.rules ? i[`${r()}.${L}.${Q.key}`] = Q.rules : Q.required && (i[`${r()}.${L}.${Q.key}`] = h(Q.title));
1897
1897
  }), { ...i, ...t.rules || {} };
1898
1898
  });
1899
- function O() {
1899
+ function I() {
1900
1900
  return new Promise((i) => {
1901
1901
  const h = o.value;
1902
1902
  if (!h || typeof h.validate != "function") {
@@ -1913,11 +1913,11 @@ const Qe = Yt.exports, en = {
1913
1913
  (M = (h = o.value) == null ? void 0 : h.clearValidate) == null || M.call(h, i);
1914
1914
  }
1915
1915
  return e({
1916
- validate: O,
1916
+ validate: I,
1917
1917
  clearValidate: $,
1918
1918
  addCompetitor: X,
1919
1919
  removeCompetitor: G
1920
- }), { __sfc: !0, props: t, emit: n, formRef: o, ck: r, nk: a, showFirstColumnComputed: f, firstColumnFixed: m, actionColumnBind: _, rowKeyFn: z, tableRows: S, canDeleteCompetitor: x, cloneModel: p, ensureFixedBlock: v, emitNext: B, getFixedMetric: V, setFixedMetric: F, competitorList: A, getCompetitorName: E, setCompetitorName: N, getCompetitorMetric: k, setCompetitorMetric: u, getCellValue: W, setCellValue: y, slotUpdateHandler: j, emptyCompetitorRow: q, addCompetitor: X, removeCompetitor: G, fixedMetricProp: ee, competitorNameProp: Z, competitorMetricProp: Y, cellComponent: te, cellBind: J, firstColumnScope: le, mergedRules: g, validate: O, clearValidate: $ };
1920
+ }), { __sfc: !0, props: t, emit: n, formRef: o, ck: r, nk: a, showFirstColumnComputed: f, firstColumnFixed: m, actionColumnBind: _, rowKeyFn: z, tableRows: S, canDeleteCompetitor: x, cloneModel: p, ensureFixedBlock: v, emitNext: B, getFixedMetric: V, setFixedMetric: F, competitorList: A, getCompetitorName: E, setCompetitorName: N, getCompetitorMetric: k, setCompetitorMetric: u, getCellValue: W, setCellValue: y, slotUpdateHandler: j, emptyCompetitorRow: q, addCompetitor: X, removeCompetitor: G, fixedMetricProp: ee, competitorNameProp: Z, competitorMetricProp: Y, cellComponent: te, cellBind: U, firstColumnScope: le, mergedRules: g, validate: I, clearValidate: $ };
1921
1921
  }
1922
1922
  });
1923
1923
  var nn = function() {
@@ -1970,8 +1970,8 @@ const Ye = ln.exports, an = [
1970
1970
  { name: "ProTable", component: He },
1971
1971
  { name: "TableAction", component: Ge },
1972
1972
  { name: "ProForm", component: Xe },
1973
- { name: "ProFormItem", component: Je },
1974
- { name: "FormActions", component: Ue },
1973
+ { name: "ProFormItem", component: Ue },
1974
+ { name: "FormActions", component: Je },
1975
1975
  { name: "FormattedNumberInput", component: Me },
1976
1976
  { name: "ProDescriptions", component: Ze },
1977
1977
  { name: "CollapseContainer", component: Qe },
@@ -1994,11 +1994,11 @@ const pn = {
1994
1994
  };
1995
1995
  export {
1996
1996
  Qe as CollapseContainer,
1997
- Ue as FormActions,
1997
+ Je as FormActions,
1998
1998
  Me as FormattedNumberInput,
1999
1999
  Ze as ProDescriptions,
2000
2000
  Xe as ProForm,
2001
- Je as ProFormItem,
2001
+ Ue as ProFormItem,
2002
2002
  He as ProTable,
2003
2003
  Ye as ProTableForm,
2004
2004
  Ge as TableAction,