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

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.
@@ -187,10 +187,10 @@ const st = at.exports, rt = /* @__PURE__ */ ne({
187
187
  setup(s, { expose: e, emit: n }) {
188
188
  const t = s, o = he(), r = D(), a = D(), f = D(0), m = D(t.loading ?? !1), _ = D([]), z = w(() => {
189
189
  const l = _.value;
190
- if (!l.length)
190
+ if (!k.value || !l.length)
191
191
  return l;
192
- const { page: c, pageSize: g } = E.value, C = (c - 1) * g;
193
- return l.slice(C, C + g);
192
+ const { page: c, pageSize: b } = E.value, C = (c - 1) * b;
193
+ return l.slice(C, C + b);
194
194
  }), S = D({}), x = D([]), p = D({}), v = D([]), B = D(null), { mergeSettings: V } = Re(), F = w(() => V("ProTable", { ...t, ...p.value })), A = w(() => {
195
195
  const l = F.value.pagination;
196
196
  return l && typeof l == "object" ? {
@@ -202,71 +202,69 @@ const st = at.exports, rt = /* @__PURE__ */ ne({
202
202
  pageSize: A.value.pageSize,
203
203
  pageSizes: A.value.pageSizes,
204
204
  total: 0
205
- }), I = w(() => !!F.value.title || !!o.tableTitle || !!o.toolbar), k = w(() => B.value !== null ? B.value : !!t.pagination && typeof t.pagination == "object"), u = w(() => F.value.pagination && typeof F.value.pagination == "object" ? !!F.value.pagination.small : !1), W = w(() => F.value.pagination && typeof F.value.pagination == "object" ? !!F.value.pagination.background : !1), y = w(() => F.value.rowKey || "id"), j = w(() => new Set(v.value.map((l) => l[y.value]))), q = w(
206
- () => x.value.filter((l) => !l.hideInTable && !l.defaultHidden)
207
- ), X = w(() => {
208
- const l = /* @__PURE__ */ new Map(), c = (g) => {
209
- for (const C of g)
210
- C.children && C.children.length > 0 ? c(C.children) : C.id && l.set(C.id, C);
205
+ }), N = w(() => !!F.value.title || !!o.tableTitle || !!o.toolbar), k = w(() => B.value !== null ? B.value : !!t.pagination && typeof t.pagination == "object"), u = w(() => F.value.pagination && typeof F.value.pagination == "object" ? !!F.value.pagination.small : !1), W = w(() => F.value.pagination && typeof F.value.pagination == "object" ? !!F.value.pagination.background : !1), y = w(() => F.value.rowKey || "id"), j = w(() => new Set(v.value.map((l) => l[y.value]))), q = w(() => (console.log(x.value), x.value.filter((l) => !l.hideInTable && !l.defaultHidden))), X = w(() => {
206
+ const l = /* @__PURE__ */ new Map(), c = (b) => {
207
+ for (const C of b)
208
+ C.children && C.children.length > 0 ? c(C.children) : C.dataIndex && l.set(C.dataIndex, C);
211
209
  };
212
210
  return c(q.value), l;
213
211
  }), G = w(() => Array.from(X.value.values())), ee = w(() => {
214
- var c, g;
212
+ var c, b;
215
213
  let l = 0;
216
- 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((g = F.value.actionColumn) == null ? void 0 : g.width) || 150), l;
217
- }), Z = (l) => typeof l == "number" && l > 0, Y = w(() => G.value.filter((c) => O(c) && Z(c.width)).reduce((c, g) => c + (typeof g.width == "number" ? g.width : 0), 0)), te = w(() => G.value.filter((c) => O(c) && typeof c.width == "string").reduce((c, g) => c + (Number(b(g)) || 80), 0)), J = (l) => l == null ? null : typeof l == "number" ? l : parseInt(String(l).replace(/px$/i, ""), 10) || null, le = (l) => {
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) => {
218
216
  if (!F.value.spanMethod)
219
217
  return [1, 1];
220
- const c = X.value.get(l.column.id);
218
+ const c = X.value.get(l.column.property);
221
219
  return F.value.spanMethod({
222
220
  ...l,
223
- column: { ...c, dataIndex: l.column.property, title: l.column.label }
221
+ column: c ? { ...c, ...l.column } : { ...l.column, dataIndex: l.column.property, title: l.column.label }
224
222
  });
225
- }, b = (l) => {
223
+ }, g = (l) => {
226
224
  const c = l.width;
227
225
  if (Z(c) && Y.value > 0 && f.value > 0 && typeof c == "number") {
228
- const g = f.value - ee.value - te.value;
229
- let C = Math.floor(g * c / Y.value);
230
- const H = J(l.minWidth) ?? 60, N = J(l.maxWidth);
231
- return C = Math.max(H, C), N != null && (C = Math.min(N, C)), C;
226
+ const b = f.value - ee.value - te.value;
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;
232
230
  }
233
231
  if (typeof c == "string") {
234
- const g = J(c) ?? 80, C = J(l.minWidth), H = J(l.maxWidth);
235
- let N = g;
236
- return C != null && (N = Math.max(C, N)), H != null && (N = Math.min(H, N)), N;
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;
237
235
  }
238
236
  return l.minWidth;
239
237
  }, O = (l) => l.ifShow === !1 ? !1 : typeof l.ifShow == "function" ? l.ifShow({ column: l }) : !0, $ = w(() => {
240
238
  var c;
241
239
  const l = (c = F.value.rowSelection) == null ? void 0 : c.getCheckboxProps;
242
- return l ? z.value.filter((g) => {
240
+ return l ? z.value.filter((b) => {
243
241
  var C;
244
- return !((C = l(g)) != null && C.disabled);
242
+ return !((C = l(b)) != null && C.disabled);
245
243
  }) : z.value;
246
244
  }), i = w(() => $.value.length > 0), h = w(() => $.value.length === 0 ? !1 : $.value.every((l) => j.value.has(l[y.value]))), M = w(() => {
247
245
  const l = $.value.filter((c) => j.value.has(c[y.value])).length;
248
246
  return l > 0 && l < $.value.length;
249
247
  }), K = (l) => j.value.has(l[y.value]), L = (l) => {
250
- var c, g, C;
251
- return ((C = (g = (c = F.value.rowSelection) == null ? void 0 : c.getCheckboxProps) == null ? void 0 : g.call(c, l)) == null ? void 0 : C.disabled) ?? !1;
248
+ var c, b, C;
249
+ return ((C = (b = (c = F.value.rowSelection) == null ? void 0 : c.getCheckboxProps) == null ? void 0 : b.call(c, l)) == null ? void 0 : C.disabled) ?? !1;
252
250
  }, Q = (l) => {
253
- var c, g, C;
254
- return ((C = (g = (c = F.value.rowSelection) == null ? void 0 : c.getRadioProps) == null ? void 0 : g.call(c, l)) == null ? void 0 : C.disabled) ?? !1;
251
+ var c, b, C;
252
+ return ((C = (b = (c = F.value.rowSelection) == null ? void 0 : c.getRadioProps) == null ? void 0 : b.call(c, l)) == null ? void 0 : C.disabled) ?? !1;
255
253
  }, ae = () => {
256
254
  const l = v.value.map((c) => c[y.value]);
257
255
  n("selection-change", { keys: l, rows: v.value });
258
256
  }, _e = (l, c) => {
259
- const g = l[y.value];
260
- c ? v.value = [...v.value.filter((C) => C[y.value] !== g), l] : v.value = v.value.filter((C) => C[y.value] !== g), ae();
257
+ const b = l[y.value];
258
+ c ? v.value = [...v.value.filter((C) => C[y.value] !== b), l] : v.value = v.value.filter((C) => C[y.value] !== b), ae();
261
259
  }, ge = (l) => {
262
260
  v.value = [l], ae();
263
261
  }, be = (l) => {
264
262
  if (l) {
265
- const c = new Set(v.value.map((C) => C[y.value])), g = $.value.filter((C) => !c.has(C[y.value]));
266
- v.value = [...v.value, ...g];
263
+ const c = new Set(v.value.map((C) => C[y.value])), b = $.value.filter((C) => !c.has(C[y.value]));
264
+ v.value = [...v.value, ...b];
267
265
  } else {
268
- const c = new Set(z.value.map((g) => g[y.value]));
269
- v.value = v.value.filter((g) => !c.has(g[y.value]));
266
+ const c = new Set(z.value.map((b) => b[y.value]));
267
+ v.value = v.value.filter((b) => !c.has(b[y.value]));
270
268
  }
271
269
  ae();
272
270
  }, re = async (l) => {
@@ -278,8 +276,8 @@ const st = at.exports, rt = /* @__PURE__ */ ne({
278
276
  }
279
277
  m.value = !0;
280
278
  try {
281
- const c = F.value.fetchSetting ?? {}, g = c.pageField ?? "page", C = c.sizeField ?? "pageSize", H = c.listField ?? "list", N = c.totalField ?? "total", oe = {
282
- [g]: (l == null ? void 0 : l.page) ?? E.value.page,
279
+ const c = F.value.fetchSetting ?? {}, b = c.pageField ?? "page", C = c.sizeField ?? "pageSize", H = c.listField ?? "list", I = c.totalField ?? "total", oe = {
280
+ [b]: (l == null ? void 0 : l.page) ?? E.value.page,
283
281
  [C]: (l == null ? void 0 : l.pageSize) ?? E.value.pageSize,
284
282
  ...t.searchInfo,
285
283
  ...l == null ? void 0 : l.searchInfo
@@ -287,7 +285,7 @@ const st = at.exports, rt = /* @__PURE__ */ ne({
287
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);
288
286
  const ie = t.beforeFetch ? t.beforeFetch(oe) : oe, $e = await t.api(ie);
289
287
  S.value = $e || {};
290
- const Fe = t.afterFetch ? t.afterFetch($e) : $e, ze = Fe[H] ?? Fe.items ?? Fe.list ?? [], Ee = Fe[N] ?? 0;
288
+ const Fe = t.afterFetch ? t.afterFetch($e) : $e, ze = Fe[H] ?? Fe.items ?? Fe.list ?? [], Ee = Fe[I] ?? 0;
291
289
  _.value = ze, E.value.total = Ee, n("fetch-success", { items: ze, total: Ee });
292
290
  } catch (c) {
293
291
  _.value = [], n("fetch-error", c);
@@ -296,9 +294,9 @@ const st = at.exports, rt = /* @__PURE__ */ ne({
296
294
  }
297
295
  }, ye = () => re(void 0), we = (l) => {
298
296
  F.value.clearSelectOnPageChange && (v.value = []), E.value.pageSize = l, E.value.page = 1, re(void 0);
299
- }, Ce = (l) => {
297
+ }, xe = (l) => {
300
298
  F.value.clearSelectOnPageChange && (v.value = []), E.value.page = l, re(void 0);
301
- }, xe = (l, c, g) => n("row-click", l, g), Pe = (l, c, g) => n("row-dblclick", l, g), Se = ({ prop: l, order: c }) => n("sort-change", { prop: l, order: c }), ve = (l, c) => n("expand-change", l, c), ce = {
299
+ }, Ce = (l, c, b) => n("row-click", l, b), Pe = (l, c, b) => n("row-dblclick", l, b), Se = ({ prop: l, order: c }) => n("sort-change", { prop: l, order: c }), ve = (l, c) => n("expand-change", l, c), ce = {
302
300
  setProps: (l) => {
303
301
  p.value = { ...p.value, ...l };
304
302
  },
@@ -320,7 +318,7 @@ const st = at.exports, rt = /* @__PURE__ */ ne({
320
318
  getColumns: () => x.value,
321
319
  setColumns: (l) => {
322
320
  if (Array.isArray(l) && l.length > 0 && typeof l[0] == "string") {
323
- const c = l, g = (t.columns ?? []).filter((H) => c.includes(H.key ?? H.dataIndex)), C = c.map((H) => g.find((N) => (N.key ?? N.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((I) => (I.key ?? I.dataIndex) === H)).filter(Boolean);
324
322
  C.length && (x.value = C);
325
323
  } else
326
324
  x.value = l ?? [];
@@ -334,31 +332,31 @@ const st = at.exports, rt = /* @__PURE__ */ ne({
334
332
  v.value = [], ae();
335
333
  },
336
334
  setSelectedRowKeys: (l) => {
337
- const c = new Set(l), g = _.value.filter((C) => c.has(C[y.value]));
335
+ const c = new Set(l), b = _.value.filter((C) => c.has(C[y.value]));
338
336
  l.forEach((C) => {
339
- g.some((H) => H[y.value] === C) || g.push({ [y.value]: C });
340
- }), v.value = g, ae();
337
+ b.some((H) => H[y.value] === C) || b.push({ [y.value]: C });
338
+ }), v.value = b, ae();
341
339
  },
342
340
  deleteSelectRowByKey: (l) => {
343
341
  v.value = v.value.filter((c) => c[y.value] !== l), ae();
344
342
  },
345
343
  /** index 为当前页索引,自动转换为全量索引 */
346
- updateTableData: (l, c, g) => {
347
- const { page: C, pageSize: H } = E.value, N = (C - 1) * H + l;
348
- N < 0 || N >= _.value.length || (_.value = [..._.value], _.value[N] = { ..._.value[N], [c]: g });
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 });
349
347
  },
350
348
  updateTableDataRecord: (l, c) => {
351
- const g = _.value.findIndex((C) => C[y.value] === l);
352
- if (!(g < 0))
353
- return _.value = [..._.value], _.value[g] = { ..._.value[g], ...c }, _.value[g];
349
+ const b = _.value.findIndex((C) => C[y.value] === l);
350
+ if (!(b < 0))
351
+ return _.value = [..._.value], _.value[b] = { ..._.value[b], ...c }, _.value[b];
354
352
  },
355
353
  deleteTableDataRecord: (l) => {
356
- const c = Array.isArray(l) ? l : [l], g = new Set(c);
357
- _.value = _.value.filter((C) => !g.has(C[y.value])), t.pagination !== !1 && (E.value.total = _.value.length);
354
+ const c = Array.isArray(l) ? l : [l], b = new Set(c);
355
+ _.value = _.value.filter((C) => !b.has(C[y.value])), t.pagination !== !1 && (E.value.total = _.value.length);
358
356
  },
359
357
  insertTableDataRecord: (l, c) => {
360
- const g = [..._.value];
361
- return c == null || c >= g.length ? g.push(l) : g.splice(c, 0, l), _.value = g, t.pagination !== !1 && (E.value.total = _.value.length), l;
358
+ const b = [..._.value];
359
+ return c == null || c >= b.length ? b.push(l) : b.splice(c, 0, l), _.value = b, t.pagination !== !1 && (E.value.total = _.value.length), l;
362
360
  },
363
361
  getPaginationRef: () => k.value ? { page: E.value.page, pageSize: Number(E.value.pageSize) || 10, total: E.value.total } : !1,
364
362
  getShowPagination: () => k.value,
@@ -369,42 +367,42 @@ const st = at.exports, rt = /* @__PURE__ */ ne({
369
367
  expandAll: () => {
370
368
  var C;
371
369
  const l = ((C = F.value.treeProps) == null ? void 0 : C.children) ?? "children", c = (H) => {
372
- const N = [];
370
+ const I = [];
373
371
  return H.forEach((oe) => {
374
- N.push(oe);
372
+ I.push(oe);
375
373
  const ie = oe[l];
376
- Array.isArray(ie) && ie.length > 0 && N.push(...c(ie));
377
- }), N;
374
+ Array.isArray(ie) && ie.length > 0 && I.push(...c(ie));
375
+ }), I;
378
376
  };
379
377
  c(_.value).forEach((H) => {
380
- var N, oe;
381
- return (oe = (N = r.value) == null ? void 0 : N.toggleRowExpansion) == null ? void 0 : oe.call(N, H, !0);
378
+ var I, oe;
379
+ return (oe = (I = r.value) == null ? void 0 : I.toggleRowExpansion) == null ? void 0 : oe.call(I, H, !0);
382
380
  });
383
381
  },
384
382
  collapseAll: () => {
385
383
  var C;
386
384
  const l = ((C = F.value.treeProps) == null ? void 0 : C.children) ?? "children", c = (H) => {
387
- const N = [];
385
+ const I = [];
388
386
  return H.forEach((oe) => {
389
- N.push(oe);
387
+ I.push(oe);
390
388
  const ie = oe[l];
391
- Array.isArray(ie) && ie.length > 0 && N.push(...c(ie));
392
- }), N;
389
+ Array.isArray(ie) && ie.length > 0 && I.push(...c(ie));
390
+ }), I;
393
391
  };
394
392
  c(_.value).forEach((H) => {
395
- var N, oe;
396
- return (oe = (N = r.value) == null ? void 0 : N.toggleRowExpansion) == null ? void 0 : oe.call(N, H, !1);
393
+ var I, oe;
394
+ return (oe = (I = r.value) == null ? void 0 : I.toggleRowExpansion) == null ? void 0 : oe.call(I, H, !1);
397
395
  });
398
396
  }
399
397
  };
400
398
  e(ce);
401
399
  const ue = () => {
402
- const l = (c, g = "") => c.map((C, H) => {
403
- const N = `${g}-${H}`;
400
+ const l = (c, b = "") => c.map((C, H) => {
401
+ const I = `${C.dataIndex}`;
404
402
  return {
405
403
  ...C,
406
- id: C.id || N,
407
- children: C.children ? l(C.children, N) : void 0
404
+ dataIndex: I,
405
+ children: C.children ? l(C.children, I) : void 0
408
406
  };
409
407
  });
410
408
  x.value = l(t.columns ?? []);
@@ -424,7 +422,7 @@ const st = at.exports, rt = /* @__PURE__ */ ne({
424
422
  !t.api && t.dataSource && (_.value = [...t.dataSource], t.pagination !== !1 && (E.value.total = t.dataSource.length));
425
423
  }, { deep: !0 }), U(() => t.loading, (l) => {
426
424
  m.value = l ?? !1;
427
- }), { __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: I, 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: b, 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: Ce, handleRowClick: xe, 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: 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 };
428
426
  }
429
427
  });
430
428
  var it = function() {
@@ -457,19 +455,19 @@ var it = function() {
457
455
  ct,
458
456
  !1,
459
457
  null,
460
- "ffeb78c4",
458
+ "3d780f58",
461
459
  null,
462
460
  null
463
461
  );
464
- const He = ut.exports, Ne = (s) => Array.isArray(s) ? s.length > 0 : s != null && String(s).trim() !== "", Ie = (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, 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) => {
465
463
  if (!s)
466
464
  return null;
467
465
  if (s === !0)
468
466
  return {
469
- content: Ie(e),
467
+ content: Ne(e),
470
468
  placement: "top",
471
469
  effect: "dark",
472
- disabled: !Ne(e)
470
+ disabled: !Ie(e)
473
471
  };
474
472
  if (typeof s == "string")
475
473
  return {
@@ -478,7 +476,7 @@ const He = ut.exports, Ne = (s) => Array.isArray(s) ? s.length > 0 : s != null &
478
476
  effect: "dark"
479
477
  };
480
478
  const n = { ...s };
481
- return Object.prototype.hasOwnProperty.call(n, "content") || (n.content = Ie(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 = !Ne(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 = !Ie(n.content)), n;
482
480
  }, dt = /* @__PURE__ */ ne({
483
481
  __name: "TableAction",
484
482
  props: {
@@ -514,11 +512,11 @@ const He = ut.exports, Ne = (s) => Array.isArray(s) ? s.length > 0 : s != null &
514
512
  cancelButtonText: E,
515
513
  type: "warning"
516
514
  }).then(() => {
517
- var I, k;
518
- return (k = (I = B.popConfirm) == null ? void 0 : I.confirm) == null ? void 0 : k.call(I);
515
+ var N, k;
516
+ return (k = (N = B.popConfirm) == null ? void 0 : N.confirm) == null ? void 0 : k.call(N);
519
517
  }).catch(() => {
520
- var I, k;
521
- return (k = (I = B.popConfirm) == null ? void 0 : I.cancel) == null ? void 0 : k.call(I);
518
+ var N, k;
519
+ return (k = (N = B.popConfirm) == null ? void 0 : N.cancel) == null ? void 0 : k.call(N);
522
520
  });
523
521
  return;
524
522
  }
@@ -728,7 +726,7 @@ function We(s, e, n) {
728
726
  const t = wt(e, n), o = s < 0 ? -1 : 1;
729
727
  return Math.abs(s) <= t ? s : o * t;
730
728
  }
731
- function Ct(s, e, n) {
729
+ function xt(s, e, n) {
732
730
  if (e <= 0)
733
731
  switch (n) {
734
732
  case "floor":
@@ -754,9 +752,9 @@ function Ct(s, e, n) {
754
752
  }
755
753
  function ke(s, e, n, t) {
756
754
  let o = We(s, e, n);
757
- return o = Ct(o, n, t), o = We(o, e, n), o;
755
+ return o = xt(o, n, t), o = We(o, e, n), o;
758
756
  }
759
- function xt(s, e) {
757
+ function Ct(s, e) {
760
758
  return Number.isNaN(s) || !Number.isFinite(s) ? "" : s.toFixed(Math.max(0, e));
761
759
  }
762
760
  function Ke(s, e) {
@@ -815,7 +813,7 @@ const St = /* @__PURE__ */ ne({
815
813
  { immediate: !0, deep: !0 }
816
814
  );
817
815
  function _(p) {
818
- e("input", xt(p, a()));
816
+ e("input", Ct(p, a()));
819
817
  }
820
818
  function z(p) {
821
819
  let v = Ve(p);
@@ -934,11 +932,11 @@ const Me = Bt.exports, Rt = /* @__PURE__ */ ne({
934
932
  function E() {
935
933
  n.disabled || (r.value = !0, n.lazy && !p() && W(), Le(() => {
936
934
  A = (y) => {
937
- t.value && !t.value.contains(y.target) && I();
935
+ t.value && !t.value.contains(y.target) && N();
938
936
  }, document.addEventListener("click", A);
939
937
  }));
940
938
  }
941
- function I() {
939
+ function N() {
942
940
  r.value = !1, f.value = "", A && (document.removeEventListener("click", A), A = null);
943
941
  }
944
942
  function k() {
@@ -946,7 +944,7 @@ const Me = Bt.exports, Rt = /* @__PURE__ */ ne({
946
944
  }
947
945
  function u(y) {
948
946
  const j = n.valueField ?? "value", q = y[j] ?? y.value;
949
- e("input", q), I();
947
+ e("input", q), N();
950
948
  }
951
949
  async function W() {
952
950
  if (!(!n.api || p())) {
@@ -967,7 +965,7 @@ const Me = Bt.exports, Rt = /* @__PURE__ */ ne({
967
965
  p() || (n.lazy ? (m.value = [], _.value = {}) : W());
968
966
  }, { deep: !0 }), U(() => n.params, () => {
969
967
  p() || (n.lazy ? (m.value = [], _.value = {}) : W());
970
- }, { 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: I, clearValue: k, onNodeClick: u, fetchData: W };
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 };
971
969
  }
972
970
  });
973
971
  var Mt = function() {
@@ -1068,7 +1066,7 @@ const Tt = At.exports, Dt = /* @__PURE__ */ ne({
1068
1066
  }, E = w(() => {
1069
1067
  const u = e.schema.component;
1070
1068
  return u == null ? null : typeof u == "string" ? n.has(u) ? null : e.customComponents && e.customComponents[u] || u : u;
1071
- }), I = (u) => {
1069
+ }), N = (u) => {
1072
1070
  var W;
1073
1071
  (W = e.onFieldChange) == null || W.call(e, e.schema.field, u);
1074
1072
  }, k = w(() => {
@@ -1080,7 +1078,7 @@ const Tt = At.exports, Dt = /* @__PURE__ */ ne({
1080
1078
  }
1081
1079
  } : null;
1082
1080
  });
1083
- return { __sfc: !0, BUILT_IN_COMPONENTS: n, props: e, apiSelectRef: t, slots: o, renderParams: r, shouldRender: a, shouldShow: f, effectiveDisabled: m, effectiveRules: _, effectiveComponentPropsAndListeners: z, effectiveComponentProps: S, effectiveComponentListeners: x, showColon: p, normalizedTooltip: v, fieldWrapperComponent: B, fieldWrapperProps: V, hasSlot: F, getOptions: A, resolvedCustomComponent: E, setFieldValue: I, renderComponent: k, ApiSelect: bt, FormattedNumberInput: Me, TreeSelect: Tt };
1081
+ return { __sfc: !0, BUILT_IN_COMPONENTS: n, props: e, apiSelectRef: t, slots: o, renderParams: r, shouldRender: a, shouldShow: f, effectiveDisabled: m, effectiveRules: _, effectiveComponentPropsAndListeners: z, effectiveComponentProps: S, effectiveComponentListeners: x, showColon: p, normalizedTooltip: v, fieldWrapperComponent: B, fieldWrapperProps: V, hasSlot: F, getOptions: A, resolvedCustomComponent: E, setFieldValue: N, renderComponent: k, ApiSelect: bt, FormattedNumberInput: Me, TreeSelect: Tt };
1084
1082
  }
1085
1083
  });
1086
1084
  var zt = function() {
@@ -1122,7 +1120,7 @@ var zt = function() {
1122
1120
  null,
1123
1121
  null
1124
1122
  );
1125
- const Je = Ot.exports, Nt = /* @__PURE__ */ ne({
1123
+ const Je = Ot.exports, It = /* @__PURE__ */ ne({
1126
1124
  __name: "FormActions",
1127
1125
  props: {
1128
1126
  showActionButtonGroup: { type: Boolean, default: !0 },
@@ -1143,7 +1141,7 @@ const Je = Ot.exports, Nt = /* @__PURE__ */ ne({
1143
1141
  return { __sfc: !0 };
1144
1142
  }
1145
1143
  });
1146
- var It = function() {
1144
+ var Nt = function() {
1147
1145
  var e = this, n = e._self._c;
1148
1146
  return e._self._setupProxy, n("div", { staticClass: "ecp-form-actions" }, [e._t("submitBefore"), e.showSubmitButton ? n("el-button", { attrs: { type: "primary", icon: e.submitButtonIcon, loading: e.submitLoading }, on: { click: function(t) {
1149
1147
  return e.$emit("submit");
@@ -1151,8 +1149,8 @@ var It = function() {
1151
1149
  return e.$emit("reset");
1152
1150
  } } }, [e._v(" " + e._s(e.resetButtonText) + " ")]) : e._e(), e._t("actions")], 2);
1153
1151
  }, Vt = [], Wt = /* @__PURE__ */ se(
1154
- Nt,
1155
1152
  It,
1153
+ Nt,
1156
1154
  Vt,
1157
1155
  !1,
1158
1156
  null,
@@ -1195,14 +1193,14 @@ const Ue = Wt.exports, Kt = /* @__PURE__ */ ne({
1195
1193
  emits: ["submit", "reset", "register", "update:modelValue"],
1196
1194
  setup(s, { expose: e, emit: n }) {
1197
1195
  const t = s, o = he(), r = D(), a = D(), f = D(!1), m = D(!0), _ = D({}), z = D({}), S = D([]), x = D({}), p = D(/* @__PURE__ */ new Map()), v = { xl: 1920, lg: 1200, md: 992, sm: 768 }, B = (d, P, R) => {
1198
- const T = R ?? (typeof window < "u" ? window.innerWidth : 1920), l = d ?? {}, c = P ?? {}, g = c.span ?? 8;
1199
- return T >= v.xl ? l.xl ?? c.xl ?? l.lg ?? c.lg ?? l.md ?? c.md ?? l.sm ?? c.sm ?? l.xs ?? c.xs ?? l.span ?? g : T >= v.lg ? l.lg ?? c.lg ?? l.md ?? c.md ?? l.sm ?? c.sm ?? l.xs ?? c.xs ?? l.span ?? g : T >= v.md ? l.md ?? c.md ?? l.sm ?? c.sm ?? l.xs ?? c.xs ?? l.span ?? g : T >= v.sm ? l.sm ?? c.sm ?? l.xs ?? c.xs ?? l.span ?? g : l.xs ?? c.xs ?? l.span ?? g;
1200
- }, { getSetting: V } = Re(), F = w(() => ({ ...V("ProForm"), ...t, ...x.value })), A = w(() => F.value.modelValue), E = w(() => A.value !== void 0), I = w(() => E.value ? A.value ?? {} : _.value), k = w(() => ({
1196
+ const T = R ?? (typeof window < "u" ? window.innerWidth : 1920), l = d ?? {}, c = P ?? {}, b = c.span ?? 8;
1197
+ return T >= v.xl ? l.xl ?? c.xl ?? l.lg ?? c.lg ?? l.md ?? c.md ?? l.sm ?? c.sm ?? l.xs ?? c.xs ?? l.span ?? b : T >= v.lg ? l.lg ?? c.lg ?? l.md ?? c.md ?? l.sm ?? c.sm ?? l.xs ?? c.xs ?? l.span ?? b : T >= v.md ? l.md ?? c.md ?? l.sm ?? c.sm ?? l.xs ?? c.xs ?? l.span ?? b : T >= v.sm ? l.sm ?? c.sm ?? l.xs ?? c.xs ?? l.span ?? b : l.xs ?? c.xs ?? l.span ?? b;
1198
+ }, { getSetting: V } = Re(), F = w(() => ({ ...V("ProForm"), ...t, ...x.value })), A = w(() => F.value.modelValue), E = w(() => A.value !== void 0), N = w(() => E.value ? A.value ?? {} : _.value), k = w(() => ({
1201
1199
  ...V("ProForm").components ?? {},
1202
1200
  ...F.value.components ?? {},
1203
1201
  ...x.value.components ?? {}
1204
1202
  })), u = w(() => F.value.actionColOptions ?? { span: 24 }), W = D(typeof window < "u" ? window.innerWidth : 1920), y = (d, P, R, T) => {
1205
- let l = 24, c = 1, g = 0;
1203
+ let l = 24, c = 1, b = 0;
1206
1204
  for (const C of d) {
1207
1205
  const H = B(C.colProps, P, T);
1208
1206
  if (H > l) {
@@ -1211,9 +1209,9 @@ const Ue = Wt.exports, Kt = /* @__PURE__ */ ne({
1211
1209
  l = 24 - H;
1212
1210
  } else
1213
1211
  l -= H;
1214
- g++;
1212
+ b++;
1215
1213
  }
1216
- return g;
1214
+ return b;
1217
1215
  }, j = w(() => {
1218
1216
  const d = S.value.filter((l) => G(l));
1219
1217
  if (!F.value.showAdvancedButton)
@@ -1228,7 +1226,7 @@ const Ue = Wt.exports, Kt = /* @__PURE__ */ ne({
1228
1226
  return d.slice(0, T);
1229
1227
  }), G = (d) => {
1230
1228
  let P = !0, R = !0;
1231
- return typeof d.ifShow == "function" && (P = d.ifShow({ schema: d, values: I.value, model: I.value, field: d.field })), typeof d.ifShow == "boolean" && (P = d.ifShow), typeof d.show == "function" && (R = d.show({ schema: d, values: I.value, model: I.value, field: d.field })), typeof d.show == "boolean" && (R = d.show), P && R;
1229
+ return typeof d.ifShow == "function" && (P = d.ifShow({ schema: d, values: N.value, model: N.value, field: d.field })), typeof d.ifShow == "boolean" && (P = d.ifShow), typeof d.show == "function" && (R = d.show({ schema: d, values: N.value, model: N.value, field: d.field })), typeof d.show == "boolean" && (R = d.show), P && R;
1232
1230
  }, ee = (d) => d.colProps ?? F.value.baseColProps ?? {}, Z = (d) => d.slot || d.field, Y = (d, P = !0) => {
1233
1231
  const R = P ? { ...d ?? {} } : {}, T = F.value.initialValues ?? t.initialValues;
1234
1232
  return S.value.forEach((l) => {
@@ -1243,15 +1241,15 @@ const Ue = Wt.exports, Kt = /* @__PURE__ */ ne({
1243
1241
  }, te = (d, P = !0) => {
1244
1242
  _.value = d, P && n("update:modelValue", d);
1245
1243
  }, J = (d) => {
1246
- const P = Y({ ...I.value, ...d });
1244
+ const P = Y({ ...N.value, ...d });
1247
1245
  return te(P), P;
1248
1246
  }, le = () => {
1249
1247
  const d = {};
1250
1248
  S.value.forEach((P) => {
1251
1249
  var R;
1252
1250
  (R = P.rules) != null && R.length && (d[P.field] = P.rules);
1253
- }), te(Y(I.value), !1), z.value = d;
1254
- }, b = (d) => {
1251
+ }), te(Y(N.value), !1), z.value = d;
1252
+ }, g = (d) => {
1255
1253
  const P = { ...d };
1256
1254
  return S.value.forEach((R) => {
1257
1255
  const T = R.ifShow;
@@ -1260,18 +1258,18 @@ const Ue = Wt.exports, Kt = /* @__PURE__ */ ne({
1260
1258
  (typeof T == "boolean" ? T : T({ schema: R, values: d, model: d, field: R.field })) || delete P[R.field];
1261
1259
  }), P;
1262
1260
  }, O = (d) => {
1263
- const P = b(d), R = x.value.fieldMapToTime;
1261
+ const P = g(d), R = x.value.fieldMapToTime;
1264
1262
  if (!(R != null && R.length))
1265
1263
  return P;
1266
1264
  const T = { ...P };
1267
- return R.forEach(([l, [c, g]]) => {
1265
+ return R.forEach(([l, [c, b]]) => {
1268
1266
  const C = T[l];
1269
- Array.isArray(C) && C.length === 2 && (delete T[l], T[c] = C[0], T[g] = C[1]);
1267
+ Array.isArray(C) && C.length === 2 && (delete T[l], T[c] = C[0], T[b] = C[1]);
1270
1268
  }), T;
1271
1269
  }, $ = async () => {
1272
1270
  var d;
1273
1271
  try {
1274
- await ((d = r.value) == null ? void 0 : d.validate()), F.value.submitFunc ? await F.value.submitFunc() : (f.value = !0, n("submit", O({ ...I.value })));
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 })));
1275
1273
  } catch (P) {
1276
1274
  console.error("Form validation failed:", P);
1277
1275
  } finally {
@@ -1280,7 +1278,7 @@ const Ue = Wt.exports, Kt = /* @__PURE__ */ ne({
1280
1278
  }, i = async () => {
1281
1279
  var d;
1282
1280
  F.value.resetFunc ? await F.value.resetFunc() : ((d = r.value) == null || d.resetFields(), le(), n("reset"), F.value.submitOnReset && await $());
1283
- }, h = (d) => (J(d), Promise.resolve()), M = () => O({ ...I.value }), K = async () => {
1281
+ }, h = (d) => (J(d), Promise.resolve()), M = () => O({ ...N.value }), K = async () => {
1284
1282
  var d;
1285
1283
  (d = r.value) == null || d.resetFields(), te(Y(void 0, !1));
1286
1284
  }, L = (d, P) => {
@@ -1316,9 +1314,9 @@ const Ue = Wt.exports, Kt = /* @__PURE__ */ ne({
1316
1314
  S.value = S.value.filter((R) => !P.includes(R.field));
1317
1315
  }, we = async (d) => {
1318
1316
  x.value = { ...x.value, ...d }, d.schemas && (S.value = [...d.schemas], le());
1319
- }, Ce = (d, P) => {
1317
+ }, xe = (d, P) => {
1320
1318
  P ? p.value.set(d, P) : p.value.delete(d);
1321
- }, xe = (d) => p.value.get(d) ?? null;
1319
+ }, Ce = (d) => p.value.get(d) ?? null;
1322
1320
  function Pe(d, P = !1) {
1323
1321
  const R = p.value.get(d);
1324
1322
  if (!R)
@@ -1345,13 +1343,13 @@ const Ue = Wt.exports, Kt = /* @__PURE__ */ ne({
1345
1343
  appendSchemaByField: re,
1346
1344
  removeSchemaByField: ye,
1347
1345
  setProps: we,
1348
- getComponentInstance: xe,
1346
+ getComponentInstance: Ce,
1349
1347
  getFieldOptions: Pe,
1350
1348
  isFieldLoading: Se
1351
1349
  };
1352
1350
  e({
1353
1351
  ...ve,
1354
- registerFieldInstance: Ce
1352
+ registerFieldInstance: xe
1355
1353
  });
1356
1354
  const ce = () => {
1357
1355
  S.value = [...t.schemas ?? []], le();
@@ -1364,7 +1362,7 @@ const Ue = Wt.exports, Kt = /* @__PURE__ */ ne({
1364
1362
  typeof window < "u" && window.removeEventListener("resize", ue);
1365
1363
  }), U(() => A.value, (d) => {
1366
1364
  !E.value || d === void 0 || te(Y(d), !1);
1367
- }, { 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: I, 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: b, 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: Ce, getComponentInstance: xe, getFieldOptions: Pe, isFieldLoading: Se, formActionRef: ve, syncSchemas: ce, handleResize: ue, ProFormItem: Je, FormActions: Ue };
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 };
1368
1366
  }
1369
1367
  });
1370
1368
  var Lt = function() {
@@ -1491,77 +1489,77 @@ const Ht = /* @__PURE__ */ ne({
1491
1489
  record: { type: Object, required: !0 },
1492
1490
  emptyText: { type: String, default: "-" }
1493
1491
  },
1494
- setup(b) {
1492
+ setup(g) {
1495
1493
  return () => {
1496
- const O = b.schema, $ = b.record, i = b.value, h = (M) => {
1497
- const K = z(O, M === b.emptyText ? i : M, $), L = de("span", M);
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);
1498
1496
  return K ? de("el-tooltip", { props: K }, [L]) : L;
1499
1497
  };
1500
1498
  if (O.render) {
1501
1499
  const M = O.render(i, $);
1502
- return M == null || M === "" ? h(b.emptyText) : typeof M == "string" || typeof M == "number" ? h(String(M)) : M;
1500
+ return M == null || M === "" ? h(g.emptyText) : typeof M == "string" || typeof M == "number" ? h(String(M)) : M;
1503
1501
  }
1504
- return Array.isArray(i) ? h(i.length ? i.join(", ") : b.emptyText) : i == null || i === "" ? h(b.emptyText) : h(typeof i == "object" ? JSON.stringify(i) : String(i));
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));
1505
1503
  };
1506
1504
  }
1507
- }), z = (b, O, $) => {
1508
- const i = b.tooltip;
1505
+ }), z = (g, O, $) => {
1506
+ const i = g.tooltip;
1509
1507
  if (!i)
1510
1508
  return null;
1511
- const h = typeof i == "function" ? i({ value: O, record: $, schema: b }) : i;
1509
+ const h = typeof i == "function" ? i({ value: O, record: $, schema: g }) : i;
1512
1510
  return De(h, O);
1513
- }, { mergeSettings: S } = Re(), x = w(() => S("ProDescriptions", { ...t, ...o.value })), p = { xxl: 1920, xl: 1200, lg: 992, md: 768, sm: 576 }, v = (b, O) => {
1514
- if (typeof b == "number")
1515
- return Math.max(1, b);
1516
- const $ = b ?? {};
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) => {
1512
+ if (typeof g == "number")
1513
+ return Math.max(1, g);
1514
+ const $ = g ?? {};
1517
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;
1518
- }, 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((b) => b.dataIndex || b.field ? typeof b.show == "function" ? b.show(V.value) : b.show !== !1 : !1).map((b) => ({
1519
- ...b,
1520
- dataIndex: b.dataIndex || b.field || ""
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
+ ...g,
1518
+ dataIndex: g.dataIndex || g.field || ""
1521
1519
  }))), A = w(() => {
1522
- const b = [];
1520
+ const g = [];
1523
1521
  let O = { items: [] }, $ = 0;
1524
1522
  const i = B.value;
1525
1523
  return F.value.forEach((h, M) => {
1526
1524
  const K = F.value.length - M, L = Math.max(1, Math.min(h.span ?? 1, i)), Q = K === 1 ? i - $ || i : L;
1527
- $ + Q > i && (b.push(O), O = { items: [] }, $ = 0);
1525
+ $ + Q > i && (g.push(O), O = { items: [] }, $ = 0);
1528
1526
  const ae = K === 1 && $ < i ? Math.max(1, i - $) : Q;
1529
- O.items.push({ ...h, _span: ae }), $ += ae, $ >= i && (b.push(O), O = { items: [] }, $ = 0);
1530
- }), O.items.length > 0 && b.push(O), b;
1527
+ O.items.push({ ...h, _span: ae }), $ += ae, $ >= i && (g.push(O), O = { items: [] }, $ = 0);
1528
+ }), O.items.length > 0 && g.push(O), g;
1531
1529
  }), E = w(() => {
1532
1530
  var O;
1533
- if (!I.value || m.value)
1531
+ if (!N.value || m.value)
1534
1532
  return A.value;
1535
- const b = Math.max(1, ((O = x.value.collapseOptions) == null ? void 0 : O.visibleRows) ?? 1);
1536
- return A.value.slice(0, b);
1537
- }), I = w(() => {
1533
+ const g = Math.max(1, ((O = x.value.collapseOptions) == null ? void 0 : O.visibleRows) ?? 1);
1534
+ return A.value.slice(0, g);
1535
+ }), N = w(() => {
1538
1536
  var O, $;
1539
- const b = Math.max(1, ((O = x.value.collapseOptions) == null ? void 0 : O.visibleRows) ?? 1);
1540
- return !!x.value.useCollapse && !!(($ = x.value.collapseOptions) != null && $.canExpand) && A.value.length > b;
1541
- }), k = w(() => !!x.value.title || !!x.value.helpMessage || I.value), u = w(() => {
1542
- var b, O;
1537
+ const g = Math.max(1, ((O = x.value.collapseOptions) == null ? void 0 : O.visibleRows) ?? 1);
1538
+ return !!x.value.useCollapse && !!(($ = x.value.collapseOptions) != null && $.canExpand) && A.value.length > g;
1539
+ }), k = w(() => !!x.value.title || !!x.value.helpMessage || N.value), u = w(() => {
1540
+ var g, O;
1543
1541
  return {
1544
- expand: ((b = x.value.collapseOptions) == null ? void 0 : b.expandButtonText) ?? "展开",
1542
+ expand: ((g = x.value.collapseOptions) == null ? void 0 : g.expandButtonText) ?? "展开",
1545
1543
  collapse: ((O = x.value.collapseOptions) == null ? void 0 : O.collapseButtonText) ?? "收起"
1546
1544
  };
1547
1545
  }), W = w(() => ({
1548
1546
  gridTemplateColumns: `repeat(${B.value}, minmax(0, 1fr))`
1549
- })), y = (b) => ({
1550
- gridColumn: `span ${b._span}`
1551
- }), j = (b) => ({
1552
- minWidth: b.labelMinWidth ? `${b.labelMinWidth}px` : void 0,
1553
- ...b.labelStyle ?? {}
1554
- }), q = (b) => ({
1555
- minWidth: b.contentMinWidth ? `${b.contentMinWidth}px` : void 0,
1556
- ...b.contentStyle ?? {}
1557
- }), X = (b) => V.value[b.dataIndex], G = () => {
1547
+ })), y = (g) => ({
1548
+ gridColumn: `span ${g._span}`
1549
+ }), j = (g) => ({
1550
+ minWidth: g.labelMinWidth ? `${g.labelMinWidth}px` : void 0,
1551
+ ...g.labelStyle ?? {}
1552
+ }), q = (g) => ({
1553
+ minWidth: g.contentMinWidth ? `${g.contentMinWidth}px` : void 0,
1554
+ ...g.contentStyle ?? {}
1555
+ }), X = (g) => V.value[g.dataIndex], G = () => {
1558
1556
  a.value = [...x.value.schema ?? []];
1559
1557
  }, ee = () => {
1560
1558
  r.value = { ...x.value.data ?? {} };
1561
- }, Z = async (b) => {
1562
- o.value = { ...o.value, ...b }, b.schema && (a.value = [...b.schema]), b.data && (r.value = { ...b.data });
1563
- }, Y = async (b) => {
1564
- r.value = { ...r.value, ...b }, o.value = { ...o.value, data: r.value };
1559
+ }, Z = async (g) => {
1560
+ o.value = { ...o.value, ...g }, g.schema && (a.value = [...g.schema]), g.data && (r.value = { ...g.data });
1561
+ }, Y = async (g) => {
1562
+ r.value = { ...r.value, ...g }, o.value = { ...o.value, data: r.value };
1565
1563
  }, te = () => ({ ...x.value.data ?? r.value ?? {} }), J = {
1566
1564
  setProps: Z,
1567
1565
  setData: Y,
@@ -1572,16 +1570,16 @@ const Ht = /* @__PURE__ */ ne({
1572
1570
  typeof window < "u" && (f.value = window.innerWidth);
1573
1571
  };
1574
1572
  return me(() => {
1575
- var b;
1576
- G(), ee(), m.value = ((b = x.value.collapseOptions) == null ? void 0 : b.defaultExpand) !== !1, n("register", J), typeof window < "u" && window.addEventListener("resize", le);
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);
1577
1575
  }), Be(() => {
1578
1576
  typeof window < "u" && window.removeEventListener("resize", le);
1579
1577
  }), U(() => x.value.schema, G, { deep: !0 }), U(() => x.value.data, ee, { deep: !0 }), U(() => {
1580
- var b;
1581
- return (b = x.value.collapseOptions) == null ? void 0 : b.defaultExpand;
1582
- }, (b) => {
1583
- b !== void 0 && (m.value = b);
1584
- }), { __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: I, 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 };
1578
+ var g;
1579
+ return (g = x.value.collapseOptions) == null ? void 0 : g.defaultExpand;
1580
+ }, (g) => {
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 };
1585
1583
  }
1586
1584
  });
1587
1585
  var Gt = function() {
@@ -1658,11 +1656,11 @@ const Xt = /* @__PURE__ */ ne({
1658
1656
  emits: ["update:expanded", "change", "collapse", "expand"],
1659
1657
  setup(s, { expose: e, emit: n }) {
1660
1658
  const t = s, o = he(), { mergeSettings: r } = Re(), a = D(t.expanded ?? t.defaultExpand), f = w(() => r("CollapseContainer", { ...t })), m = w(() => f.value.canExpand ?? f.value.canExpan ?? !0), _ = w(() => f.value.expanded !== void 0), z = w(() => _.value ? !!f.value.expanded : a.value), S = w(() => !!o.title || !!o.action || !!f.value.title || !!f.value.helpMessage || m.value), x = w(() => m.value), p = w(() => {
1661
- const A = f.value.wrapperProps ?? {}, E = A.class, I = A.style, k = { ...A };
1659
+ const A = f.value.wrapperProps ?? {}, E = A.class, N = A.style, k = { ...A };
1662
1660
  return delete k.class, delete k.style, {
1663
1661
  ...k,
1664
1662
  class: E,
1665
- style: I
1663
+ style: N
1666
1664
  };
1667
1665
  }), v = () => {
1668
1666
  !f.value.triggerWindowResize || typeof window > "u" || window.setTimeout(() => {
@@ -1810,7 +1808,7 @@ const Qe = Yt.exports, en = {
1810
1808
  const h = A()[i], M = a();
1811
1809
  return h ? String(h[M] ?? "") : "";
1812
1810
  }
1813
- function I(i, h) {
1811
+ function N(i, h) {
1814
1812
  const M = p(), K = [...A()], L = { ...K[i] || {} };
1815
1813
  L[a()] = h, K[i] = L, M[r()] = K, B(M);
1816
1814
  }
@@ -1884,10 +1882,10 @@ const Qe = Yt.exports, en = {
1884
1882
  rowType: "competitor",
1885
1883
  rowIndex: M,
1886
1884
  value: E(M),
1887
- updateValue: (K) => I(M, K)
1885
+ updateValue: (K) => N(M, K)
1888
1886
  };
1889
1887
  }
1890
- const b = w(() => {
1888
+ const g = w(() => {
1891
1889
  const i = {}, h = (K) => [{ required: !0, message: `请输入${K}`, trigger: "blur" }];
1892
1890
  for (const K of t.fixedRows)
1893
1891
  for (const L of t.columns)
@@ -1919,7 +1917,7 @@ const Qe = Yt.exports, en = {
1919
1917
  clearValidate: $,
1920
1918
  addCompetitor: X,
1921
1919
  removeCompetitor: G
1922
- }), { __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: I, 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: b, 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: J, firstColumnScope: le, mergedRules: g, validate: O, clearValidate: $ };
1923
1921
  }
1924
1922
  });
1925
1923
  var nn = function() {
@@ -2011,10 +2009,10 @@ export {
2011
2009
  sn as install,
2012
2010
  ke as normalizeNumericValue,
2013
2011
  Pt as numberToEditString,
2014
- Ct as roundToDecimals,
2012
+ xt as roundToDecimals,
2015
2013
  Ve as sanitizeNumericInput,
2016
2014
  Ae as stripNumberGrouping,
2017
- xt as toFixedDecimalString,
2015
+ Ct as toFixedDecimalString,
2018
2016
  Re as useComponentSetting,
2019
2017
  fn as useDescription,
2020
2018
  dn as useForm,