@aspire-ui/element-component-pro 1.0.26 → 1.0.28

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.
@@ -70,7 +70,7 @@ const je = te({
70
70
  setup(r) {
71
71
  return () => {
72
72
  const e = r.slotRender, n = e == null ? void 0 : e({ column: r.column, record: r.record, index: r.index, value: r.value });
73
- if (((s) => s == null ? [] : Array.isArray(s) ? s.filter((u) => u != null && u !== !1 && !u.isComment) : [s])(n).length > 0)
73
+ if (((s) => s == null ? [] : Array.isArray(s) ? s.filter((c) => c != null && c !== !1 && !c.isComment) : [s])(n).length > 0)
74
74
  return n;
75
75
  const a = { ...r.column };
76
76
  return r.customRender && (a.customRender = r.customRender), r.valueEnum && (a.valueEnum = r.valueEnum), ve(je, { props: { column: a, record: r.record, index: r.index, value: r.value } });
@@ -88,33 +88,33 @@ const je = te({
88
88
  return { __sfc: !0, props: e, $scopedSlots: n, shouldShowColumn: (l) => l.ifShow === !1 ? !1 : typeof l.ifShow == "function" ? l.ifShow({ column: l }) : !0, DefaultCellRenderer: je, BodyCellRenderer: qe };
89
89
  }
90
90
  });
91
- function re(r, e, n, t, l, a, s, u) {
92
- var d = typeof r == "function" ? r.options : r;
93
- e && (d.render = e, d.staticRenderFns = n, d._compiled = !0), t && (d.functional = !0), a && (d._scopeId = "data-v-" + a);
91
+ function re(r, e, n, t, l, a, s, c) {
92
+ var f = typeof r == "function" ? r.options : r;
93
+ e && (f.render = e, f.staticRenderFns = n, f._compiled = !0), t && (f.functional = !0), a && (f._scopeId = "data-v-" + a);
94
94
  var v;
95
- if (s ? (v = function(y) {
96
- y = y || // cached call
95
+ if (s ? (v = function(b) {
96
+ b = b || // cached call
97
97
  this.$vnode && this.$vnode.ssrContext || // stateful
98
- this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext, !y && typeof __VUE_SSR_CONTEXT__ < "u" && (y = __VUE_SSR_CONTEXT__), l && l.call(this, y), y && y._registeredComponents && y._registeredComponents.add(s);
99
- }, d._ssrRegister = v) : l && (v = u ? function() {
98
+ this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext, !b && typeof __VUE_SSR_CONTEXT__ < "u" && (b = __VUE_SSR_CONTEXT__), l && l.call(this, b), b && b._registeredComponents && b._registeredComponents.add(s);
99
+ }, f._ssrRegister = v) : l && (v = c ? function() {
100
100
  l.call(
101
101
  this,
102
- (d.functional ? this.parent : this).$root.$options.shadowRoot
102
+ (f.functional ? this.parent : this).$root.$options.shadowRoot
103
103
  );
104
104
  } : l), v)
105
- if (d.functional) {
106
- d._injectStyles = v;
107
- var B = d.render;
108
- d.render = function(p, _) {
109
- return v.call(_), B(p, _);
105
+ if (f.functional) {
106
+ f._injectStyles = v;
107
+ var F = f.render;
108
+ f.render = function(p, _) {
109
+ return v.call(_), F(p, _);
110
110
  };
111
111
  } else {
112
- var b = d.beforeCreate;
113
- d.beforeCreate = b ? [].concat(b, v) : [v];
112
+ var g = f.beforeCreate;
113
+ f.beforeCreate = g ? [].concat(g, v) : [v];
114
114
  }
115
115
  return {
116
116
  exports: r,
117
- options: d
117
+ options: f
118
118
  };
119
119
  }
120
120
  var at = function() {
@@ -140,7 +140,7 @@ var at = function() {
140
140
  null,
141
141
  null
142
142
  );
143
- const it = rt.exports, ct = /* @__PURE__ */ te({
143
+ const it = rt.exports, ut = /* @__PURE__ */ te({
144
144
  __name: "ProTable",
145
145
  props: {
146
146
  columns: null,
@@ -185,13 +185,13 @@ const it = rt.exports, ct = /* @__PURE__ */ te({
185
185
  },
186
186
  emits: ["register", "fetch-success", "fetch-error", "selection-change", "row-click", "row-dblclick", "sort-change", "expand-change"],
187
187
  setup(r, { expose: e, emit: n }) {
188
- const t = r, l = we(), a = D(), s = D(), u = D(0), d = D(t.loading ?? !1), v = D([]), B = w(() => {
188
+ const t = r, l = we(), a = D(), s = D(), c = D(0), f = D(t.loading ?? !1), v = D([]), F = w(() => {
189
189
  const o = v.value;
190
190
  if (!S.value || !o.length)
191
191
  return o;
192
- const { page: c, pageSize: x } = E.value, k = (c - 1) * x;
192
+ const { page: u, pageSize: x } = E.value, k = (u - 1) * x;
193
193
  return o.slice(k, k + x);
194
- }), b = D({}), y = D([]), p = D({}), _ = D([]), A = D(null), { mergeSettings: O } = Be(), P = w(() => O("ProTable", { ...t, ...p.value })), T = w(() => {
194
+ }), g = D({}), b = D([]), p = D({}), _ = D([]), A = D(null), { mergeSettings: O } = Be(), P = w(() => O("ProTable", { ...t, ...p.value })), T = w(() => {
195
195
  const o = P.value.pagination;
196
196
  return o && typeof o == "object" ? {
197
197
  pageSize: o.pageSize ?? 10,
@@ -202,69 +202,69 @@ const it = rt.exports, ct = /* @__PURE__ */ te({
202
202
  pageSize: T.value.pageSize,
203
203
  pageSizes: T.value.pageSizes,
204
204
  total: 0
205
- }), N = w(() => !!P.value.title || !!l.tableTitle || !!l.toolbar), S = w(() => A.value !== null ? A.value : !!t.pagination && typeof t.pagination == "object"), f = w(() => P.value.pagination && typeof P.value.pagination == "object" ? !!P.value.pagination.small : !1), W = w(() => P.value.pagination && typeof P.value.pagination == "object" ? !!P.value.pagination.background : !1), g = w(() => P.value.rowKey || "id"), K = w(() => new Set(_.value.map((o) => o[g.value]))), q = w(() => y.value.filter((o) => !o.hideInTable && !o.defaultHidden)), Q = w(() => {
206
- const o = /* @__PURE__ */ new Map(), c = (x) => {
205
+ }), N = w(() => !!P.value.title || !!l.tableTitle || !!l.toolbar), S = w(() => A.value !== null ? A.value : !!t.pagination && typeof t.pagination == "object"), d = w(() => P.value.pagination && typeof P.value.pagination == "object" ? !!P.value.pagination.small : !1), W = w(() => P.value.pagination && typeof P.value.pagination == "object" ? !!P.value.pagination.background : !1), y = w(() => P.value.rowKey || "id"), K = w(() => new Set(_.value.map((o) => o[y.value]))), q = w(() => b.value.filter((o) => !o.hideInTable && !o.defaultHidden)), Q = w(() => {
206
+ const o = /* @__PURE__ */ new Map(), u = (x) => {
207
207
  for (const k of x)
208
- k.children && k.children.length > 0 ? c(k.children) : k.dataIndex && o.set(k.dataIndex, k);
208
+ k.children && k.children.length > 0 ? u(k.children) : k.dataIndex && o.set(k.dataIndex, k);
209
209
  };
210
- return c(q.value), o;
210
+ return u(q.value), o;
211
211
  }), J = w(() => Array.from(Q.value.values())), Y = w(() => {
212
- var c, x;
212
+ var u, x;
213
213
  let o = 0;
214
- return P.value.rowSelection && (o += Number(P.value.rowSelection.width) || 48), P.value.showIndexColumn && (o += Number((c = P.value.indexColumnProps) == null ? void 0 : c.width) || 60), P.value.actionColumn && (o += Number((x = P.value.actionColumn) == null ? void 0 : x.width) || 150), o;
215
- }), Z = (o) => typeof o == "number" && o > 0, I = w(() => J.value.filter((c) => h(c) && Z(c.width)).reduce((c, x) => c + (typeof x.width == "number" ? x.width : 0), 0)), V = w(() => J.value.filter((c) => h(c) && typeof c.width == "string").reduce((c, x) => c + (Number(i(x)) || 80), 0)), j = (o) => o == null ? null : typeof o == "number" ? o : parseInt(String(o).replace(/px$/i, ""), 10) || null, C = (o) => {
214
+ return P.value.rowSelection && (o += Number(P.value.rowSelection.width) || 48), P.value.showIndexColumn && (o += Number((u = P.value.indexColumnProps) == null ? void 0 : u.width) || 60), P.value.actionColumn && (o += Number((x = P.value.actionColumn) == null ? void 0 : x.width) || 150), o;
215
+ }), Z = (o) => typeof o == "number" && o > 0, I = w(() => J.value.filter((u) => h(u) && Z(u.width)).reduce((u, x) => u + (typeof x.width == "number" ? x.width : 0), 0)), V = w(() => J.value.filter((u) => h(u) && typeof u.width == "string").reduce((u, x) => u + (Number(i(x)) || 80), 0)), j = (o) => o == null ? null : typeof o == "number" ? o : parseInt(String(o).replace(/px$/i, ""), 10) || null, C = (o) => {
216
216
  if (!P.value.spanMethod)
217
217
  return [1, 1];
218
- const c = Q.value.get(o.column.property);
218
+ const u = Q.value.get(o.column.property);
219
219
  return P.value.spanMethod({
220
220
  ...o,
221
- column: c ? { ...c, ...o.column } : { ...o.column, dataIndex: o.column.property, title: o.column.label }
221
+ column: u ? { ...u, ...o.column } : { ...o.column, dataIndex: o.column.property, title: o.column.label }
222
222
  });
223
223
  }, i = (o) => {
224
- const c = o.width;
225
- if (Z(c) && I.value > 0 && u.value > 0 && typeof c == "number") {
226
- const x = u.value - Y.value - V.value;
227
- let k = Math.floor(x * c / I.value);
224
+ const u = o.width;
225
+ if (Z(u) && I.value > 0 && c.value > 0 && typeof u == "number") {
226
+ const x = c.value - Y.value - V.value;
227
+ let k = Math.floor(x * u / I.value);
228
228
  const U = j(o.minWidth) ?? 60, L = j(o.maxWidth);
229
229
  return k = Math.max(U, k), L != null && (k = Math.min(L, k)), k;
230
230
  }
231
- if (typeof c == "string") {
232
- const x = j(c) ?? 80, k = j(o.minWidth), U = j(o.maxWidth);
231
+ if (typeof u == "string") {
232
+ const x = j(u) ?? 80, k = j(o.minWidth), U = j(o.maxWidth);
233
233
  let L = x;
234
234
  return k != null && (L = Math.max(k, L)), U != null && (L = Math.min(U, L)), L;
235
235
  }
236
236
  return o.minWidth;
237
237
  }, h = (o) => o.ifShow === !1 ? !1 : typeof o.ifShow == "function" ? o.ifShow({ column: o }) : !0, R = w(() => {
238
- var c;
239
- const o = (c = P.value.rowSelection) == null ? void 0 : c.getCheckboxProps;
240
- return o ? B.value.filter((x) => {
238
+ var u;
239
+ const o = (u = P.value.rowSelection) == null ? void 0 : u.getCheckboxProps;
240
+ return o ? F.value.filter((x) => {
241
241
  var k;
242
242
  return !((k = o(x)) != null && k.disabled);
243
- }) : B.value;
244
- }), z = w(() => R.value.length > 0), H = w(() => R.value.length === 0 ? !1 : R.value.every((o) => K.value.has(o[g.value]))), G = w(() => {
245
- const o = R.value.filter((c) => K.value.has(c[g.value])).length;
243
+ }) : F.value;
244
+ }), z = w(() => R.value.length > 0), H = w(() => R.value.length === 0 ? !1 : R.value.every((o) => K.value.has(o[y.value]))), G = w(() => {
245
+ const o = R.value.filter((u) => K.value.has(u[y.value])).length;
246
246
  return o > 0 && o < R.value.length;
247
- }), ne = (o) => K.value.has(o[g.value]), le = (o) => {
248
- var c, x, k;
249
- return ((k = (x = (c = P.value.rowSelection) == null ? void 0 : c.getCheckboxProps) == null ? void 0 : x.call(c, o)) == null ? void 0 : k.disabled) ?? !1;
247
+ }), ne = (o) => K.value.has(o[y.value]), le = (o) => {
248
+ var u, x, k;
249
+ return ((k = (x = (u = P.value.rowSelection) == null ? void 0 : u.getCheckboxProps) == null ? void 0 : x.call(u, o)) == null ? void 0 : k.disabled) ?? !1;
250
250
  }, X = (o) => {
251
- var c, x, k;
252
- return ((k = (x = (c = P.value.rowSelection) == null ? void 0 : c.getRadioProps) == null ? void 0 : x.call(c, o)) == null ? void 0 : k.disabled) ?? !1;
251
+ var u, x, k;
252
+ return ((k = (x = (u = P.value.rowSelection) == null ? void 0 : u.getRadioProps) == null ? void 0 : x.call(u, o)) == null ? void 0 : k.disabled) ?? !1;
253
253
  }, ae = () => {
254
- const o = _.value.map((c) => c[g.value]);
254
+ const o = _.value.map((u) => u[y.value]);
255
255
  n("selection-change", { keys: o, rows: _.value });
256
- }, de = (o, c) => {
257
- const x = o[g.value];
258
- c ? _.value = [..._.value.filter((k) => k[g.value] !== x), o] : _.value = _.value.filter((k) => k[g.value] !== x), ae();
256
+ }, de = (o, u) => {
257
+ const x = o[y.value];
258
+ u ? _.value = [..._.value.filter((k) => k[y.value] !== x), o] : _.value = _.value.filter((k) => k[y.value] !== x), ae();
259
259
  }, ie = (o) => {
260
260
  _.value = [o], ae();
261
261
  }, fe = (o) => {
262
262
  if (o) {
263
- const c = new Set(_.value.map((k) => k[g.value])), x = R.value.filter((k) => !c.has(k[g.value]));
263
+ const u = new Set(_.value.map((k) => k[y.value])), x = R.value.filter((k) => !u.has(k[y.value]));
264
264
  _.value = [..._.value, ...x];
265
265
  } else {
266
- const c = new Set(B.value.map((x) => x[g.value]));
267
- _.value = _.value.filter((x) => !c.has(x[g.value]));
266
+ const u = new Set(F.value.map((x) => x[y.value]));
267
+ _.value = _.value.filter((x) => !u.has(x[y.value]));
268
268
  }
269
269
  ae();
270
270
  }, oe = async (o) => {
@@ -274,89 +274,89 @@ const it = rt.exports, ct = /* @__PURE__ */ te({
274
274
  v.value = [];
275
275
  return;
276
276
  }
277
- d.value = !0;
277
+ f.value = !0;
278
278
  try {
279
- const c = P.value.fetchSetting ?? {}, x = c.pageField ?? "page", k = c.sizeField ?? "pageSize", U = c.listField ?? "list", L = c.totalField ?? "total", se = {
279
+ const u = P.value.fetchSetting ?? {}, x = u.pageField ?? "page", k = u.sizeField ?? "pageSize", U = u.listField ?? "list", L = u.totalField ?? "total", se = {
280
280
  [x]: (o == null ? void 0 : o.page) ?? E.value.page,
281
281
  [k]: (o == null ? void 0 : o.pageSize) ?? E.value.pageSize,
282
282
  ...t.searchInfo,
283
283
  ...o == null ? void 0 : o.searchInfo
284
284
  };
285
285
  (o == null ? void 0 : o.page) != null && (E.value.page = o.page), (o == null ? void 0 : o.pageSize) != null && (E.value.pageSize = o.pageSize);
286
- const ce = t.beforeFetch ? t.beforeFetch(se) : se, Me = await t.api(ce);
287
- b.value = Me || {};
286
+ const ue = t.beforeFetch ? t.beforeFetch(se) : se, Me = await t.api(ue);
287
+ g.value = Me || {};
288
288
  const Re = t.afterFetch ? t.afterFetch(Me) : Me, ze = Re[U] ?? Re.items ?? Re.list ?? [], Ee = Re[L] ?? 0;
289
289
  v.value = ze, E.value.total = Ee, n("fetch-success", { items: ze, total: Ee });
290
- } catch (c) {
291
- v.value = [], n("fetch-error", c);
290
+ } catch (u) {
291
+ v.value = [], n("fetch-error", u);
292
292
  } finally {
293
- d.value = !1;
293
+ f.value = !1;
294
294
  }
295
- }, be = () => oe(void 0), ue = (o) => {
295
+ }, be = () => oe(void 0), ce = (o) => {
296
296
  P.value.clearSelectOnPageChange && (_.value = []), E.value.pageSize = o, E.value.page = 1, oe(void 0);
297
297
  }, Ce = (o) => {
298
298
  P.value.clearSelectOnPageChange && (_.value = []), E.value.page = o, oe(void 0);
299
- }, xe = (o, c, x) => n("row-click", o, x), Pe = (o, c, x) => n("row-dblclick", o, x), Se = ({ prop: o, order: c }) => n("sort-change", { prop: o, order: c }), ye = (o, c) => n("expand-change", o, c), pe = {
299
+ }, xe = (o, u, x) => n("row-click", o, x), Pe = (o, u, x) => n("row-dblclick", o, x), Se = ({ prop: o, order: u }) => n("sort-change", { prop: o, order: u }), ye = (o, u) => n("expand-change", o, u), pe = {
300
300
  setProps: (o) => {
301
301
  p.value = { ...p.value, ...o };
302
302
  },
303
303
  reload: (o) => oe(o),
304
304
  redoHeight: () => {
305
- var o, c;
306
- (c = (o = a.value) == null ? void 0 : o.doLayout) == null || c.call(o);
305
+ var o, u;
306
+ (u = (o = a.value) == null ? void 0 : o.doLayout) == null || u.call(o);
307
307
  },
308
308
  setLoading: (o) => {
309
- d.value = o;
309
+ f.value = o;
310
310
  },
311
311
  /** 返回全量数据(API 模式为服务端返回的当前页数据,本地模式为原始全量数据) */
312
312
  getDataSource: () => v.value,
313
- getRawDataSource: () => b.value,
313
+ getRawDataSource: () => g.value,
314
314
  /** 设置本地全量数据,同时同步 total */
315
315
  setTableData: (o) => {
316
316
  v.value = o ?? [], t.pagination !== !1 && (E.value.total = (o ?? []).length);
317
317
  },
318
- getColumns: () => y.value,
318
+ getColumns: () => b.value,
319
319
  setColumns: (o) => {
320
320
  if (Array.isArray(o) && o.length > 0 && typeof o[0] == "string") {
321
- const c = o, x = (t.columns ?? []).filter((U) => c.includes(U.key ?? U.dataIndex)), k = c.map((U) => x.find((L) => (L.key ?? L.dataIndex) === U)).filter(Boolean);
322
- k.length && (y.value = k);
321
+ const u = o, x = (t.columns ?? []).filter((U) => u.includes(U.key ?? U.dataIndex)), k = u.map((U) => x.find((L) => (L.key ?? L.dataIndex) === U)).filter(Boolean);
322
+ k.length && (b.value = k);
323
323
  } else
324
- y.value = o ?? [];
324
+ b.value = o ?? [];
325
325
  },
326
326
  setPagination: (o) => {
327
327
  o != null && o.page && (E.value.page = o.page), o != null && o.pageSize && (E.value.pageSize = o.pageSize), (o == null ? void 0 : o.total) !== void 0 && (E.value.total = o.total);
328
328
  },
329
- getSelectRowKeys: () => _.value.map((o) => o[g.value]),
329
+ getSelectRowKeys: () => _.value.map((o) => o[y.value]),
330
330
  getSelectRows: () => _.value,
331
331
  clearSelectedRowKeys: () => {
332
332
  _.value = [], ae();
333
333
  },
334
334
  setSelectedRowKeys: (o) => {
335
- const c = new Set(o), x = v.value.filter((k) => c.has(k[g.value]));
335
+ const u = new Set(o), x = v.value.filter((k) => u.has(k[y.value]));
336
336
  o.forEach((k) => {
337
- x.some((U) => U[g.value] === k) || x.push({ [g.value]: k });
337
+ x.some((U) => U[y.value] === k) || x.push({ [y.value]: k });
338
338
  }), _.value = x, ae();
339
339
  },
340
340
  deleteSelectRowByKey: (o) => {
341
- _.value = _.value.filter((c) => c[g.value] !== o), ae();
341
+ _.value = _.value.filter((u) => u[y.value] !== o), ae();
342
342
  },
343
343
  /** index 为当前页索引,自动转换为全量索引 */
344
- updateTableData: (o, c, x) => {
344
+ updateTableData: (o, u, x) => {
345
345
  const { page: k, pageSize: U } = E.value, L = (k - 1) * U + o;
346
- L < 0 || L >= v.value.length || (v.value = [...v.value], v.value[L] = { ...v.value[L], [c]: x });
346
+ L < 0 || L >= v.value.length || (v.value = [...v.value], v.value[L] = { ...v.value[L], [u]: x });
347
347
  },
348
- updateTableDataRecord: (o, c) => {
349
- const x = v.value.findIndex((k) => k[g.value] === o);
348
+ updateTableDataRecord: (o, u) => {
349
+ const x = v.value.findIndex((k) => k[y.value] === o);
350
350
  if (!(x < 0))
351
- return v.value = [...v.value], v.value[x] = { ...v.value[x], ...c }, v.value[x];
351
+ return v.value = [...v.value], v.value[x] = { ...v.value[x], ...u }, v.value[x];
352
352
  },
353
353
  deleteTableDataRecord: (o) => {
354
- const c = Array.isArray(o) ? o : [o], x = new Set(c);
355
- v.value = v.value.filter((k) => !x.has(k[g.value])), t.pagination !== !1 && (E.value.total = v.value.length);
354
+ const u = Array.isArray(o) ? o : [o], x = new Set(u);
355
+ v.value = v.value.filter((k) => !x.has(k[y.value])), t.pagination !== !1 && (E.value.total = v.value.length);
356
356
  },
357
- insertTableDataRecord: (o, c) => {
357
+ insertTableDataRecord: (o, u) => {
358
358
  const x = [...v.value];
359
- return c == null || c >= x.length ? x.push(o) : x.splice(c, 0, o), v.value = x, t.pagination !== !1 && (E.value.total = v.value.length), o;
359
+ return u == null || u >= x.length ? x.push(o) : x.splice(u, 0, o), v.value = x, t.pagination !== !1 && (E.value.total = v.value.length), o;
360
360
  },
361
361
  getPaginationRef: () => S.value ? { page: E.value.page, pageSize: Number(E.value.pageSize) || 10, total: E.value.total } : !1,
362
362
  getShowPagination: () => S.value,
@@ -366,30 +366,30 @@ const it = rt.exports, ct = /* @__PURE__ */ te({
366
366
  getRowSelection: () => P.value.rowSelection,
367
367
  expandAll: () => {
368
368
  var k;
369
- const o = ((k = P.value.treeProps) == null ? void 0 : k.children) ?? "children", c = (U) => {
369
+ const o = ((k = P.value.treeProps) == null ? void 0 : k.children) ?? "children", u = (U) => {
370
370
  const L = [];
371
371
  return U.forEach((se) => {
372
372
  L.push(se);
373
- const ce = se[o];
374
- Array.isArray(ce) && ce.length > 0 && L.push(...c(ce));
373
+ const ue = se[o];
374
+ Array.isArray(ue) && ue.length > 0 && L.push(...u(ue));
375
375
  }), L;
376
376
  };
377
- c(v.value).forEach((U) => {
377
+ u(v.value).forEach((U) => {
378
378
  var L, se;
379
379
  return (se = (L = a.value) == null ? void 0 : L.toggleRowExpansion) == null ? void 0 : se.call(L, U, !0);
380
380
  });
381
381
  },
382
382
  collapseAll: () => {
383
383
  var k;
384
- const o = ((k = P.value.treeProps) == null ? void 0 : k.children) ?? "children", c = (U) => {
384
+ const o = ((k = P.value.treeProps) == null ? void 0 : k.children) ?? "children", u = (U) => {
385
385
  const L = [];
386
386
  return U.forEach((se) => {
387
387
  L.push(se);
388
- const ce = se[o];
389
- Array.isArray(ce) && ce.length > 0 && L.push(...c(ce));
388
+ const ue = se[o];
389
+ Array.isArray(ue) && ue.length > 0 && L.push(...u(ue));
390
390
  }), L;
391
391
  };
392
- c(v.value).forEach((U) => {
392
+ u(v.value).forEach((U) => {
393
393
  var L, se;
394
394
  return (se = (L = a.value) == null ? void 0 : L.toggleRowExpansion) == null ? void 0 : se.call(L, U, !1);
395
395
  });
@@ -397,7 +397,7 @@ const it = rt.exports, ct = /* @__PURE__ */ te({
397
397
  };
398
398
  e(pe);
399
399
  const me = () => {
400
- const o = (c, x = "") => c.map((k, U) => {
400
+ const o = (u, x = "") => u.map((k, U) => {
401
401
  const L = `${k.dataIndex}`;
402
402
  return {
403
403
  ...k,
@@ -405,57 +405,57 @@ const it = rt.exports, ct = /* @__PURE__ */ te({
405
405
  children: k.children ? o(k.children, L) : void 0
406
406
  };
407
407
  });
408
- y.value = o(t.columns ?? []);
408
+ b.value = o(t.columns ?? []);
409
409
  }, m = () => {
410
410
  t.api && P.value.immediate !== !1 ? oe(void 0) : t.dataSource && (v.value = [...t.dataSource], !t.api && t.pagination !== !1 && (E.value.total = t.dataSource.length));
411
- }, F = () => {
412
- s.value && (u.value = s.value.offsetWidth || 0);
411
+ }, B = () => {
412
+ s.value && (c.value = s.value.offsetWidth || 0);
413
413
  };
414
414
  let M = null, $ = null;
415
415
  return ge(() => {
416
- me(), n("register", pe), m(), typeof window < "u" && (window.addEventListener("resize", F), M = new ResizeObserver(F), Ke(() => {
417
- F(), $ = s.value, $ && (M == null || M.observe($));
416
+ me(), n("register", pe), m(), typeof window < "u" && (window.addEventListener("resize", B), M = new ResizeObserver(B), Ke(() => {
417
+ B(), $ = s.value, $ && (M == null || M.observe($));
418
418
  }));
419
419
  }), Fe(() => {
420
- typeof window < "u" && (window.removeEventListener("resize", F), M && $ && (M.unobserve($), $ = null));
420
+ typeof window < "u" && (window.removeEventListener("resize", B), M && $ && (M.unobserve($), $ = null));
421
421
  }), ee(() => t.columns, me, { deep: !0 }), ee(() => t.dataSource, () => {
422
422
  !t.api && t.dataSource && (v.value = [...t.dataSource], t.pagination !== !1 && (E.value.total = t.dataSource.length));
423
423
  }, { deep: !0 }), ee(() => t.loading, (o) => {
424
- d.value = o ?? !1;
425
- }), { __sfc: !0, props: t, emit: n, slots: l, tableRef: a, tableWrapRef: s, containerWidth: u, loading: d, localFullData: v, innerData: B, rawDataSource: b, innerColumns: y, innerProps: p, selectedRows: _, showPaginationRef: A, mergeSettings: O, effectiveProps: P, defaultPagination: T, pagination: E, showTitleBar: N, showPagination: S, paginationSmall: f, paginationBackground: W, rowKeyField: g, selectedKeysSet: K, displayColumns: q, flatColumnsMap: Q, allFlatColumns: J, fixedColumnsWidth: Y, isRatioWidth: Z, totalRatio: I, fixedDataColumnsWidth: V, parseWidthPx: j, spanMethodAdapter: C, getColumnWidth: i, shouldShowColumn: h, selectableRows: R, hasSelectableRows: z, isAllCurrentPageSelected: H, isIndeterminate: G, isRowSelected: ne, getCheckboxDisabled: le, getRadioDisabled: X, emitSelectionChange: ae, handleCheckboxChange: de, handleRadioSelect: ie, handleSelectAll: fe, fetchData: oe, handleReload: be, handleSizeChange: ue, handleCurrentChange: Ce, handleRowClick: xe, handleRowDblclick: Pe, handleSortChange: Se, handleExpandChange: ye, tableAction: pe, syncColumns: me, loadData: m, updateContainerWidth: F, resizeObserver: M, observedEl: $, TableColumnGroup: it, BodyCellRenderer: qe };
424
+ f.value = o ?? !1;
425
+ }), { __sfc: !0, props: t, emit: n, slots: l, tableRef: a, tableWrapRef: s, containerWidth: c, loading: f, localFullData: v, innerData: F, rawDataSource: g, innerColumns: b, innerProps: p, selectedRows: _, showPaginationRef: A, mergeSettings: O, effectiveProps: P, defaultPagination: T, pagination: E, showTitleBar: N, showPagination: S, paginationSmall: d, paginationBackground: W, rowKeyField: y, selectedKeysSet: K, displayColumns: q, flatColumnsMap: Q, allFlatColumns: J, fixedColumnsWidth: Y, isRatioWidth: Z, totalRatio: I, fixedDataColumnsWidth: V, parseWidthPx: j, spanMethodAdapter: C, getColumnWidth: i, shouldShowColumn: h, selectableRows: R, hasSelectableRows: z, isAllCurrentPageSelected: H, isIndeterminate: G, isRowSelected: ne, getCheckboxDisabled: le, getRadioDisabled: X, emitSelectionChange: ae, handleCheckboxChange: de, handleRadioSelect: ie, handleSelectAll: fe, fetchData: oe, handleReload: be, handleSizeChange: ce, handleCurrentChange: Ce, handleRowClick: xe, handleRowDblclick: Pe, handleSortChange: Se, handleExpandChange: ye, tableAction: pe, syncColumns: me, loadData: m, updateContainerWidth: B, resizeObserver: M, observedEl: $, TableColumnGroup: it, BodyCellRenderer: qe };
426
426
  }
427
427
  });
428
- var ut = function() {
429
- var l, a, s, u;
428
+ var ct = function() {
429
+ var l, a, s, c;
430
430
  var e = this, n = e._self._c, t = e._self._setupProxy;
431
- return n("div", { staticClass: "ecp-pro-table" }, [t.showTitleBar ? n("div", { staticClass: "ecp-pro-table__header" }, [n("div", { staticClass: "ecp-pro-table__title-wrapper" }, [n("span", { staticClass: "ecp-pro-table__title" }, [e._v(e._s(t.effectiveProps.title))]), t.effectiveProps.titleHelpMessage ? n("el-tooltip", { staticClass: "ecp-pro-table__help", attrs: { placement: "top" } }, [n("template", { slot: "content" }, [Array.isArray(t.effectiveProps.titleHelpMessage) ? n("span", e._l(t.effectiveProps.titleHelpMessage, function(d, v) {
432
- return n("div", { key: v }, [e._v(e._s(d))]);
431
+ return n("div", { staticClass: "ecp-pro-table" }, [t.showTitleBar ? n("div", { staticClass: "ecp-pro-table__header" }, [n("div", { staticClass: "ecp-pro-table__title-wrapper" }, [n("span", { staticClass: "ecp-pro-table__title" }, [e._v(e._s(t.effectiveProps.title))]), t.effectiveProps.titleHelpMessage ? n("el-tooltip", { staticClass: "ecp-pro-table__help", attrs: { placement: "top" } }, [n("template", { slot: "content" }, [Array.isArray(t.effectiveProps.titleHelpMessage) ? n("span", e._l(t.effectiveProps.titleHelpMessage, function(f, v) {
432
+ return n("div", { key: v }, [e._v(e._s(f))]);
433
433
  }), 0) : n("span", [e._v(e._s(t.effectiveProps.titleHelpMessage))])]), n("i", { staticClass: "el-icon-question" })], 2) : e._e()], 1), n("div", { staticClass: "ecp-pro-table__toolbar" }, [e._t("tableTitle"), e._t("toolbar"), e._t("toolbar-right", function() {
434
- var d;
435
- return [((d = t.effectiveProps.tableSetting) == null ? void 0 : d.redo) !== !1 ? n("el-button", { attrs: { type: "text", icon: "el-icon-refresh", size: "small" }, on: { click: t.handleReload } }, [e._v(" 刷新 ")]) : e._e()];
436
- })], 2)]) : e._e(), n("div", { directives: [{ name: "loading", rawName: "v-loading", value: t.loading, expression: "loading" }], ref: "tableWrapRef", staticClass: "ecp-pro-table__body" }, [n("el-table", e._b({ ref: "tableRef", attrs: { data: t.innerData, "row-key": t.effectiveProps.rowKey, border: t.effectiveProps.bordered, stripe: t.effectiveProps.striped, size: t.effectiveProps.size, "max-height": t.effectiveProps.maxHeight, height: t.effectiveProps.height, "default-sort": t.effectiveProps.defaultSort, "span-method": t.spanMethodAdapter, "tree-props": t.effectiveProps.treeProps, "default-expand-all": t.effectiveProps.defaultExpandAll, "expand-row-keys": t.effectiveProps.expandRowKeys || [], lazy: t.effectiveProps.lazy, load: t.effectiveProps.load, "row-class-name": t.effectiveProps.rowClassName }, on: { "row-click": t.handleRowClick, "row-dblclick": t.handleRowDblclick, "sort-change": t.handleSortChange, "expand-change": t.handleExpandChange } }, "el-table", t.effectiveProps.tableProps, !1), [t.effectiveProps.rowSelection ? n("el-table-column", { attrs: { width: t.effectiveProps.rowSelection.width || 48, fixed: t.effectiveProps.rowSelection.fixed, align: "center" }, scopedSlots: e._u([{ key: "header", fn: function(d) {
434
+ var f;
435
+ return [((f = t.effectiveProps.tableSetting) == null ? void 0 : f.redo) !== !1 ? n("el-button", { attrs: { type: "text", icon: "el-icon-refresh", size: "small" }, on: { click: t.handleReload } }, [e._v(" 刷新 ")]) : e._e()];
436
+ })], 2)]) : e._e(), n("div", { directives: [{ name: "loading", rawName: "v-loading", value: t.loading, expression: "loading" }], ref: "tableWrapRef", staticClass: "ecp-pro-table__body" }, [n("el-table", e._b({ ref: "tableRef", attrs: { data: t.innerData, "row-key": t.effectiveProps.rowKey, border: t.effectiveProps.bordered, stripe: t.effectiveProps.striped, size: t.effectiveProps.size, "max-height": t.effectiveProps.maxHeight, height: t.effectiveProps.height, "default-sort": t.effectiveProps.defaultSort, "span-method": t.spanMethodAdapter, "tree-props": t.effectiveProps.treeProps, "default-expand-all": t.effectiveProps.defaultExpandAll, "expand-row-keys": t.effectiveProps.expandRowKeys || [], lazy: t.effectiveProps.lazy, load: t.effectiveProps.load, "row-class-name": t.effectiveProps.rowClassName }, on: { "row-click": t.handleRowClick, "row-dblclick": t.handleRowDblclick, "sort-change": t.handleSortChange, "expand-change": t.handleExpandChange } }, "el-table", t.effectiveProps.tableProps, !1), [t.effectiveProps.rowSelection ? n("el-table-column", { attrs: { width: t.effectiveProps.rowSelection.width || 48, fixed: t.effectiveProps.rowSelection.fixed, align: "center" }, scopedSlots: e._u([{ key: "header", fn: function(f) {
437
437
  return [t.effectiveProps.rowSelection.type !== "radio" ? n("el-checkbox", { attrs: { value: t.isAllCurrentPageSelected, indeterminate: t.isIndeterminate, disabled: !t.hasSelectableRows }, on: { change: t.handleSelectAll } }) : n("span")];
438
- } }, { key: "default", fn: function(d) {
438
+ } }, { key: "default", fn: function(f) {
439
439
  var v;
440
- return [t.effectiveProps.rowSelection.type !== "radio" ? n("el-checkbox", { attrs: { value: t.isRowSelected(d.row), disabled: t.getCheckboxDisabled(d.row) }, on: { change: (B) => t.handleCheckboxChange(d.row, B) }, nativeOn: { click: function(B) {
441
- B.stopPropagation();
442
- } } }) : n("el-radio", { attrs: { value: (v = t.selectedRows[0]) == null ? void 0 : v[t.rowKeyField], label: d.row[t.rowKeyField], disabled: t.getRadioDisabled(d.row) }, on: { change: function(B) {
443
- return t.handleRadioSelect(d.row);
444
- } }, nativeOn: { click: function(B) {
445
- B.stopPropagation();
440
+ return [t.effectiveProps.rowSelection.type !== "radio" ? n("el-checkbox", { attrs: { value: t.isRowSelected(f.row), disabled: t.getCheckboxDisabled(f.row) }, on: { change: (F) => t.handleCheckboxChange(f.row, F) }, nativeOn: { click: function(F) {
441
+ F.stopPropagation();
442
+ } } }) : n("el-radio", { attrs: { value: (v = t.selectedRows[0]) == null ? void 0 : v[t.rowKeyField], label: f.row[t.rowKeyField], disabled: t.getRadioDisabled(f.row) }, on: { change: function(F) {
443
+ return t.handleRadioSelect(f.row);
444
+ } }, nativeOn: { click: function(F) {
445
+ F.stopPropagation();
446
446
  } } }, [n("span")])];
447
- } }], null, !1, 983730649) }) : e._e(), t.effectiveProps.showIndexColumn ? n("el-table-column", { attrs: { type: "index", label: ((l = t.effectiveProps.indexColumnProps) == null ? void 0 : l.title) || "序号", width: ((a = t.effectiveProps.indexColumnProps) == null ? void 0 : a.width) || 60, fixed: (s = t.effectiveProps.indexColumnProps) == null ? void 0 : s.fixed, align: ((u = t.effectiveProps.indexColumnProps) == null ? void 0 : u.align) || "center" } }) : e._e(), e._l(t.displayColumns, function(d) {
448
- return [t.shouldShowColumn(d) ? n(t.TableColumnGroup, { key: d.key || d.dataIndex || d.title, attrs: { column: d, "effective-props": t.effectiveProps, "get-column-width": t.getColumnWidth } }) : e._e()];
449
- }), t.effectiveProps.actionColumn ? n("el-table-column", { attrs: { label: t.effectiveProps.actionColumn.title || "操作", width: t.effectiveProps.actionColumn.width || 150, fixed: t.effectiveProps.actionColumn.fixed || "right", align: t.effectiveProps.actionColumn.align || "center" }, scopedSlots: e._u([{ key: "default", fn: function(d) {
450
- return [e.$scopedSlots.action ? e._t("action", null, { record: d.row, column: t.effectiveProps.actionColumn, index: d.$index }) : e.$scopedSlots.bodyCell ? n(t.BodyCellRenderer, { attrs: { "slot-render": e.$scopedSlots.bodyCell, column: t.effectiveProps.actionColumn, record: d.row, index: d.$index, value: void 0, "custom-render": t.effectiveProps.actionColumn.customRender, "value-enum": t.effectiveProps.actionColumn.valueEnum } }) : e._e()];
447
+ } }], null, !1, 983730649) }) : e._e(), t.effectiveProps.showIndexColumn ? n("el-table-column", { attrs: { type: "index", label: ((l = t.effectiveProps.indexColumnProps) == null ? void 0 : l.title) || "序号", width: ((a = t.effectiveProps.indexColumnProps) == null ? void 0 : a.width) || 60, fixed: (s = t.effectiveProps.indexColumnProps) == null ? void 0 : s.fixed, align: ((c = t.effectiveProps.indexColumnProps) == null ? void 0 : c.align) || "center" } }) : e._e(), e._l(t.displayColumns, function(f) {
448
+ return [t.shouldShowColumn(f) ? n(t.TableColumnGroup, { key: f.key || f.dataIndex || f.title, attrs: { column: f, "effective-props": t.effectiveProps, "get-column-width": t.getColumnWidth } }) : e._e()];
449
+ }), t.effectiveProps.actionColumn ? n("el-table-column", { attrs: { label: t.effectiveProps.actionColumn.title || "操作", width: t.effectiveProps.actionColumn.width || 150, fixed: t.effectiveProps.actionColumn.fixed || "right", align: t.effectiveProps.actionColumn.align || "center" }, scopedSlots: e._u([{ key: "default", fn: function(f) {
450
+ return [e.$scopedSlots.action ? e._t("action", null, { record: f.row, column: t.effectiveProps.actionColumn, index: f.$index }) : e.$scopedSlots.bodyCell ? n(t.BodyCellRenderer, { attrs: { "slot-render": e.$scopedSlots.bodyCell, column: t.effectiveProps.actionColumn, record: f.row, index: f.$index, value: void 0, "custom-render": t.effectiveProps.actionColumn.customRender, "value-enum": t.effectiveProps.actionColumn.valueEnum } }) : e._e()];
451
451
  } }], null, !0) }) : e._e()], 2)], 1), t.showPagination ? n("div", { staticClass: "ecp-pro-table__pagination" }, [n("el-pagination", e._b({ attrs: { "current-page": t.pagination.page, "page-sizes": t.pagination.pageSizes, "page-size": t.pagination.pageSize, total: t.pagination.total, small: t.paginationSmall, background: t.paginationBackground, layout: (t.effectiveProps.pagination && typeof t.effectiveProps.pagination == "object" ? t.effectiveProps.pagination.layout : null) || "total, sizes, prev, pager, next, jumper" }, on: { "size-change": t.handleSizeChange, "current-change": t.handleCurrentChange } }, "el-pagination", t.effectiveProps.pagination && typeof t.effectiveProps.pagination == "object" && t.effectiveProps.pagination.props || {}, !1))], 1) : e._e()]);
452
452
  }, dt = [], ft = /* @__PURE__ */ re(
453
- ct,
454
453
  ut,
454
+ ct,
455
455
  dt,
456
456
  !1,
457
457
  null,
458
- "d48fd076",
458
+ null,
459
459
  null,
460
460
  null
461
461
  );
@@ -488,16 +488,16 @@ const He = ft.exports, Ve = (r) => Array.isArray(r) ? r.length > 0 : r != null &
488
488
  const e = r, n = (p) => De(p) || {}, t = (p) => p.type ? p.type : p.color === "error" ? "danger" : p.color === "success" ? "success" : p.color === "warning" ? "warning" : "text", l = (p) => p.filter((_) => {
489
489
  const { ifShow: A } = _;
490
490
  return typeof A == "boolean" ? A : typeof A == "function" ? A(_) : !0;
491
- }), a = w(() => l(e.actions || [])), s = w(() => l(e.dropDownActions || [])), u = (p, _) => {
491
+ }), a = w(() => l(e.actions || [])), s = w(() => l(e.dropDownActions || [])), c = (p, _) => {
492
492
  var A;
493
493
  e.stopButtonPropagation && _.stopPropagation(), (A = p.onClick) == null || A.call(p, _);
494
- }, d = (p, _) => {
495
- u(p, _);
494
+ }, f = (p, _) => {
495
+ c(p, _);
496
496
  }, v = (p, _, A) => {
497
497
  var O, P, T, E;
498
498
  e.stopButtonPropagation && A.stopPropagation(), p.popConfirm && (_ === "confirm" ? (P = (O = p.popConfirm).confirm) == null || P.call(O) : (E = (T = p.popConfirm).cancel) == null || E.call(T));
499
499
  };
500
- return { __sfc: !0, props: e, normalizeTooltip: n, getButtonType: t, filterVisible: l, visibleActions: a, visibleDropDownActions: s, handleClick: u, handleActionClick: d, handlePopConfirm: v, handlePopConfirmConfirm: (p, _) => {
500
+ return { __sfc: !0, props: e, normalizeTooltip: n, getButtonType: t, filterVisible: l, visibleActions: a, visibleDropDownActions: s, handleClick: c, handleActionClick: f, handlePopConfirm: v, handlePopConfirmConfirm: (p, _) => {
501
501
  v(p, "confirm", _);
502
502
  }, handlePopConfirmCancel: (p, _) => {
503
503
  v(p, "cancel", _);
@@ -546,7 +546,7 @@ var mt = function() {
546
546
  vt,
547
547
  !1,
548
548
  null,
549
- "45a58e7c",
549
+ null,
550
550
  null,
551
551
  null
552
552
  );
@@ -559,8 +559,8 @@ function hn(r) {
559
559
  return s;
560
560
  }, l = (s) => {
561
561
  e.value = s;
562
- const u = n();
563
- u && Object.keys(u).length > 0 && s.setProps(u);
562
+ const c = n();
563
+ c && Object.keys(c).length > 0 && s.setProps(c);
564
564
  };
565
565
  return r && ee(
566
566
  () => n(),
@@ -584,21 +584,21 @@ function hn(r) {
584
584
  clearSelectedRowKeys: () => t().clearSelectedRowKeys(),
585
585
  setSelectedRowKeys: (s) => t().setSelectedRowKeys(s),
586
586
  deleteSelectRowByKey: (s) => t().deleteSelectRowByKey(s),
587
- updateTableData: (s, u, d) => t().updateTableData(s, u, d),
588
- updateTableDataRecord: (s, u) => t().updateTableDataRecord(s, u),
587
+ updateTableData: (s, c, f) => t().updateTableData(s, c, f),
588
+ updateTableDataRecord: (s, c) => t().updateTableDataRecord(s, c),
589
589
  deleteTableDataRecord: (s) => t().deleteTableDataRecord(s),
590
- insertTableDataRecord: (s, u) => t().insertTableDataRecord(s, u),
590
+ insertTableDataRecord: (s, c) => t().insertTableDataRecord(s, c),
591
591
  getPaginationRef: () => t().getPaginationRef(),
592
592
  getShowPagination: () => t().getShowPagination(),
593
593
  setShowPagination: (s) => t().setShowPagination(s),
594
594
  getRowSelection: () => t().getRowSelection(),
595
595
  expandAll: () => {
596
- var s, u;
597
- return (u = (s = t()).expandAll) == null ? void 0 : u.call(s);
596
+ var s, c;
597
+ return (c = (s = t()).expandAll) == null ? void 0 : c.call(s);
598
598
  },
599
599
  collapseAll: () => {
600
- var s, u;
601
- return (u = (s = t()).collapseAll) == null ? void 0 : u.call(s);
600
+ var s, c;
601
+ return (c = (s = t()).collapseAll) == null ? void 0 : c.call(s);
602
602
  }
603
603
  }];
604
604
  }
@@ -619,22 +619,22 @@ const _t = /* @__PURE__ */ te({
619
619
  },
620
620
  emits: ["input", "change"],
621
621
  setup(r, { expose: e }) {
622
- const n = r, t = D(!1), l = D([]), a = D([]), s = (b) => b == null ? "null" : JSON.stringify(u(b)), u = (b) => Array.isArray(b) ? b.map(u) : b !== null && typeof b == "object" ? Object.keys(b).sort().reduce((y, p) => (y[p] = u(b[p]), y), {}) : b, d = D(s(n.params ?? null)), v = (b) => {
623
- n.lazy && b && (s(n.params ?? null) !== d.value || l.value.length === 0) && B();
624
- }, B = async () => {
622
+ const n = r, t = D(!1), l = D([]), a = D([]), s = (g) => g == null ? "null" : JSON.stringify(c(g)), c = (g) => Array.isArray(g) ? g.map(c) : g !== null && typeof g == "object" ? Object.keys(g).sort().reduce((b, p) => (b[p] = c(g[p]), b), {}) : g, f = D(s(n.params ?? null)), v = (g) => {
623
+ n.lazy && g && (s(n.params ?? null) !== f.value || l.value.length === 0) && F();
624
+ }, F = async () => {
625
625
  if (n.api) {
626
626
  t.value = !0;
627
627
  try {
628
- const b = await n.api(n.params), y = Array.isArray(b) ? b : (b == null ? void 0 : b.list) ?? (b == null ? void 0 : b.data) ?? [];
629
- a.value = y;
628
+ const g = await n.api(n.params), b = Array.isArray(g) ? g : (g == null ? void 0 : g.list) ?? (g == null ? void 0 : g.data) ?? [];
629
+ a.value = b;
630
630
  const p = n.labelField ?? "label", _ = n.valueField ?? "value";
631
- l.value = y.map((A) => {
631
+ l.value = b.map((A) => {
632
632
  const O = A;
633
633
  return {
634
634
  label: String(O[p] ?? O.label ?? ""),
635
635
  value: O[_] ?? O.value
636
636
  };
637
- }), d.value = s(n.params ?? null);
637
+ }), f.value = s(n.params ?? null);
638
638
  } finally {
639
639
  t.value = !1;
640
640
  }
@@ -644,18 +644,18 @@ const _t = /* @__PURE__ */ te({
644
644
  options: l,
645
645
  rawOptions: a,
646
646
  loading: t,
647
- fetchOptions: B
647
+ fetchOptions: F
648
648
  }), ge(() => {
649
- n.lazy || B();
649
+ n.lazy || F();
650
650
  }), ee(
651
651
  () => n.api,
652
652
  () => {
653
- n.lazy ? (l.value = [], a.value = []) : B();
653
+ n.lazy ? (l.value = [], a.value = []) : F();
654
654
  },
655
655
  { deep: !0 }
656
656
  ), ee(() => n.params, () => {
657
- s(n.params ?? null) !== d.value && (n.lazy ? (l.value = [], a.value = []) : B());
658
- }, { deep: !0 }), { __sfc: !0, props: n, loading: t, options: l, rawOptions: a, sortStringify: s, sortKeys: u, lastFetchedParamsKey: d, onVisibleChange: v, fetchOptions: B };
657
+ s(n.params ?? null) !== f.value && (n.lazy ? (l.value = [], a.value = []) : F());
658
+ }, { deep: !0 }), { __sfc: !0, props: n, loading: t, options: l, rawOptions: a, sortStringify: s, sortKeys: c, lastFetchedParamsKey: f, onVisibleChange: v, fetchOptions: F };
659
659
  }
660
660
  });
661
661
  var gt = function() {
@@ -705,17 +705,17 @@ function wt(r, e, n) {
705
705
  let l = t ? r.slice(1) : r;
706
706
  const a = l.indexOf(".");
707
707
  if (a === -1) {
708
- const B = Math.max(0, e);
709
- return l = B > 0 ? l.slice(0, B) : l, t ? "-" + l : l;
708
+ const F = Math.max(0, e);
709
+ return l = F > 0 ? l.slice(0, F) : l, t ? "-" + l : l;
710
710
  }
711
711
  let s = l.slice(0, a);
712
712
  e > 0 && (s = s.slice(0, e));
713
- const u = l.slice(a + 1), d = u === "" && l.endsWith(".");
713
+ const c = l.slice(a + 1), f = c === "" && l.endsWith(".");
714
714
  if (n <= 0)
715
715
  return t ? "-" + s : s;
716
- if (d)
716
+ if (f)
717
717
  return (t ? "-" : "") + s + ".";
718
- const v = u.slice(0, n);
718
+ const v = c.slice(0, n);
719
719
  return (t ? "-" : "") + s + "." + v;
720
720
  }
721
721
  function Ct(r, e) {
@@ -760,8 +760,8 @@ function Pt(r, e) {
760
760
  function Le(r, e) {
761
761
  if (Number.isNaN(r) || !Number.isFinite(r))
762
762
  return "";
763
- const n = r.toFixed(Math.max(0, e)), t = n.startsWith("-"), l = t ? n.slice(1) : n, [a, s] = l.split("."), u = a.replace(/\B(?=(\d{3})+(?!\d))/g, ",");
764
- return e <= 0 || s === void 0 ? (t ? "-" : "") + u : (t ? "-" : "") + u + "." + s;
763
+ const n = r.toFixed(Math.max(0, e)), t = n.startsWith("-"), l = t ? n.slice(1) : n, [a, s] = l.split("."), c = a.replace(/\B(?=(\d{3})+(?!\d))/g, ",");
764
+ return e <= 0 || s === void 0 ? (t ? "-" : "") + c : (t ? "-" : "") + c + "." + s;
765
765
  }
766
766
  function St(r, e) {
767
767
  if (Number.isNaN(r) || !Number.isFinite(r))
@@ -783,7 +783,7 @@ const Rt = /* @__PURE__ */ te({
783
783
  emits: ["input"],
784
784
  setup(r, { emit: e }) {
785
785
  const n = r, t = D(!1), l = D(""), a = () => Math.max(0, Math.floor(n.integerDigits ?? 6)), s = () => Math.max(0, Math.floor(n.decimalPlaces ?? 6));
786
- function u(p) {
786
+ function c(p) {
787
787
  if (p == null || p === "")
788
788
  return null;
789
789
  if (typeof p == "number")
@@ -794,10 +794,10 @@ const Rt = /* @__PURE__ */ te({
794
794
  const A = Number(_);
795
795
  return Number.isFinite(A) ? A : null;
796
796
  }
797
- function d() {
797
+ function f() {
798
798
  if (t.value)
799
799
  return;
800
- const p = u(n.value);
800
+ const p = c(n.value);
801
801
  if (p === null) {
802
802
  l.value = "";
803
803
  return;
@@ -809,13 +809,13 @@ const Rt = /* @__PURE__ */ te({
809
809
  }
810
810
  ee(
811
811
  () => [n.value, n.integerDigits, n.decimalPlaces, n.rounding],
812
- () => d(),
812
+ () => f(),
813
813
  { immediate: !0, deep: !0 }
814
814
  );
815
815
  function v(p) {
816
816
  e("input", Pt(p, s()));
817
817
  }
818
- function B(p) {
818
+ function F(p) {
819
819
  let _ = Ne(p);
820
820
  if (n.inputLimit !== !1 && (_ = wt(_, a(), s())), l.value = _, _ === "" || _ === "-")
821
821
  return;
@@ -825,9 +825,9 @@ const Rt = /* @__PURE__ */ te({
825
825
  const O = ke(A, a(), s(), n.rounding);
826
826
  v(O);
827
827
  }
828
- function b() {
828
+ function g() {
829
829
  t.value = !0;
830
- const p = Te(l.value), _ = u(p === "" ? n.value : p);
830
+ const p = Te(l.value), _ = c(p === "" ? n.value : p);
831
831
  if (_ === null) {
832
832
  l.value = "";
833
833
  return;
@@ -837,7 +837,7 @@ const Rt = /* @__PURE__ */ te({
837
837
  s()
838
838
  );
839
839
  }
840
- function y() {
840
+ function b() {
841
841
  t.value = !1;
842
842
  const p = Te(l.value);
843
843
  if (p === "" || p === "-") {
@@ -852,7 +852,7 @@ const Rt = /* @__PURE__ */ te({
852
852
  const A = ke(_, a(), s(), n.rounding);
853
853
  l.value = Le(A, s()), v(A);
854
854
  }
855
- return { __sfc: !0, props: n, emit: e, focused: t, displayText: l, intN: a, decM: s, parseExternalToNumber: u, syncDisplayFromValue: d, emitStoredValue: v, onInput: B, onFocus: b, onBlur: y };
855
+ return { __sfc: !0, props: n, emit: e, focused: t, displayText: l, intN: a, decM: s, parseExternalToNumber: c, syncDisplayFromValue: f, emitStoredValue: v, onInput: F, onFocus: g, onBlur: b };
856
856
  }
857
857
  });
858
858
  var kt = function() {
@@ -886,72 +886,72 @@ const Ae = Bt.exports, At = /* @__PURE__ */ te({
886
886
  },
887
887
  emits: ["input"],
888
888
  setup(r, { emit: e }) {
889
- const n = r, t = D(), l = D(), a = D(!1), s = D(!1), u = D(""), d = D([]), v = D({}), B = w(() => ({
889
+ const n = r, t = D(), l = D(), a = D(!1), s = D(!1), c = D(""), f = D([]), v = D({}), F = w(() => ({
890
890
  label: n.labelField,
891
891
  children: n.childrenField
892
892
  }));
893
- function b(g) {
894
- const K = n.labelField ?? "label", q = n.valueField ?? "value", Q = n.childrenField ?? "children", J = g[Q], Y = {};
895
- return Y[n.labelField ?? "label"] = g[K] ?? g.label, Y[n.valueField ?? "value"] = g[q] ?? g.value, Array.isArray(J) && J.length && (Y[n.childrenField ?? "children"] = J.map((Z) => b(Z))), Y;
893
+ function g(y) {
894
+ const K = n.labelField ?? "label", q = n.valueField ?? "value", Q = n.childrenField ?? "children", J = y[Q], Y = {};
895
+ return Y[n.labelField ?? "label"] = y[K] ?? y.label, Y[n.valueField ?? "value"] = y[q] ?? y.value, Array.isArray(J) && J.length && (Y[n.childrenField ?? "children"] = J.map((Z) => g(Z))), Y;
896
896
  }
897
- function y(g, K = "") {
897
+ function b(y, K = "") {
898
898
  const q = {}, Q = n.labelField ?? "label", J = n.valueField ?? "value", Y = n.childrenField ?? "children";
899
- for (const Z of g) {
899
+ for (const Z of y) {
900
900
  const I = String(Z[Q] ?? Z.label ?? ""), V = Z[J] ?? Z.value;
901
901
  V != null && (q[String(V)] = K ? K + " / " + I : I);
902
902
  const j = Z[Y] ?? Z.children;
903
- Array.isArray(j) && j.length && Object.assign(q, y(j, I));
903
+ Array.isArray(j) && j.length && Object.assign(q, b(j, I));
904
904
  }
905
905
  return q;
906
906
  }
907
907
  function p() {
908
- const g = n.treeData;
909
- return Array.isArray(g) && g.length > 0;
908
+ const y = n.treeData;
909
+ return Array.isArray(y) && y.length > 0;
910
910
  }
911
- function _(g) {
912
- d.value = g, v.value = y(g);
911
+ function _(y) {
912
+ f.value = y, v.value = b(y);
913
913
  }
914
914
  function A() {
915
- const g = n.treeData;
916
- if (!Array.isArray(g) || g.length === 0)
915
+ const y = n.treeData;
916
+ if (!Array.isArray(y) || y.length === 0)
917
917
  return;
918
- const K = g.map((q) => b(q));
918
+ const K = y.map((q) => g(q));
919
919
  _(K);
920
920
  }
921
- const O = w(() => n.value == null || n.value === "" ? "" : v.value[String(n.value)] ?? String(n.value)), P = (g, K) => {
922
- if (!g)
921
+ const O = w(() => n.value == null || n.value === "" ? "" : v.value[String(n.value)] ?? String(n.value)), P = (y, K) => {
922
+ if (!y)
923
923
  return !0;
924
924
  const q = n.labelField ?? "label";
925
- return String(K[q] ?? K.label ?? "").toLowerCase().includes(g.toLowerCase());
925
+ return String(K[q] ?? K.label ?? "").toLowerCase().includes(y.toLowerCase());
926
926
  };
927
- ee(u, (g) => {
927
+ ee(c, (y) => {
928
928
  var K;
929
- (K = l.value) == null || K.filter(g);
929
+ (K = l.value) == null || K.filter(y);
930
930
  });
931
931
  let T = null;
932
932
  function E() {
933
933
  n.disabled || (a.value = !0, n.lazy && !p() && W(), Ke(() => {
934
- T = (g) => {
935
- t.value && !t.value.contains(g.target) && N();
934
+ T = (y) => {
935
+ t.value && !t.value.contains(y.target) && N();
936
936
  }, document.addEventListener("click", T);
937
937
  }));
938
938
  }
939
939
  function N() {
940
- a.value = !1, u.value = "", T && (document.removeEventListener("click", T), T = null);
940
+ a.value = !1, c.value = "", T && (document.removeEventListener("click", T), T = null);
941
941
  }
942
942
  function S() {
943
943
  e("input", void 0);
944
944
  }
945
- function f(g) {
946
- const K = n.valueField ?? "value", q = g[K] ?? g.value;
945
+ function d(y) {
946
+ const K = n.valueField ?? "value", q = y[K] ?? y.value;
947
947
  e("input", q), N();
948
948
  }
949
949
  async function W() {
950
950
  if (!(!n.api || p())) {
951
951
  s.value = !0;
952
952
  try {
953
- const g = await n.api(n.params), K = Array.isArray(g) ? g : (g == null ? void 0 : g.list) ?? (g == null ? void 0 : g.data) ?? [];
954
- d.value = K.map((q) => b(q)), v.value = y(d.value);
953
+ const y = await n.api(n.params), K = Array.isArray(y) ? y : (y == null ? void 0 : y.list) ?? (y == null ? void 0 : y.data) ?? [];
954
+ f.value = K.map((q) => g(q)), v.value = b(f.value);
955
955
  } finally {
956
956
  s.value = !1;
957
957
  }
@@ -960,12 +960,12 @@ const Ae = Bt.exports, At = /* @__PURE__ */ te({
960
960
  return ge(() => {
961
961
  p() ? A() : n.lazy || W();
962
962
  }), ee(() => n.treeData, () => {
963
- p() ? A() : (d.value = [], v.value = {}, !n.lazy && n.api && W());
963
+ p() ? A() : (f.value = [], v.value = {}, !n.lazy && n.api && W());
964
964
  }, { deep: !0 }), ee(() => n.api, () => {
965
- p() || (n.lazy ? (d.value = [], v.value = {}) : W());
965
+ p() || (n.lazy ? (f.value = [], v.value = {}) : W());
966
966
  }, { deep: !0 }), ee(() => n.params, () => {
967
- p() || (n.lazy ? (d.value = [], v.value = {}) : W());
968
- }, { deep: !0 }), { __sfc: !0, props: n, emit: e, rootRef: t, treeRef: l, dropdownVisible: a, loading: s, filterText: u, treeData: d, flatLabelMap: v, treeProps: B, normalizeNode: b, buildFlatLabelMap: y, hasTreeDataProp: p, applyTreeData: _, syncFromTreeDataProp: A, displayText: O, filterNodeMethod: P, clickOutsideHandler: T, openDropdown: E, closeDropdown: N, clearValue: S, onNodeClick: f, fetchData: W };
967
+ p() || (n.lazy ? (f.value = [], v.value = {}) : W());
968
+ }, { deep: !0 }), { __sfc: !0, props: n, emit: e, rootRef: t, treeRef: l, dropdownVisible: a, loading: s, filterText: c, treeData: f, flatLabelMap: v, treeProps: F, normalizeNode: g, buildFlatLabelMap: b, hasTreeDataProp: p, applyTreeData: _, syncFromTreeDataProp: A, displayText: O, filterNodeMethod: P, clickOutsideHandler: T, openDropdown: E, closeDropdown: N, clearValue: S, onNodeClick: d, fetchData: W };
969
969
  }
970
970
  });
971
971
  var Mt = function() {
@@ -981,7 +981,7 @@ var Mt = function() {
981
981
  Tt,
982
982
  !1,
983
983
  null,
984
- "f30bba11",
984
+ null,
985
985
  null,
986
986
  null
987
987
  );
@@ -1014,11 +1014,11 @@ const Je = $t.exports, Dt = /* @__PURE__ */ te({
1014
1014
  "radio"
1015
1015
  ]), t = D(null);
1016
1016
  ge(() => {
1017
- var f;
1018
- e.schema.component === "api-select" && ((f = e.registerFieldInstance) == null || f.call(e, e.schema.field, t.value));
1017
+ var d;
1018
+ e.schema.component === "api-select" && ((d = e.registerFieldInstance) == null || d.call(e, e.schema.field, t.value));
1019
1019
  }), Fe(() => {
1020
- var f;
1021
- e.schema.component === "api-select" && ((f = e.registerFieldInstance) == null || f.call(e, e.schema.field, null));
1020
+ var d;
1021
+ e.schema.component === "api-select" && ((d = e.registerFieldInstance) == null || d.call(e, e.schema.field, null));
1022
1022
  });
1023
1023
  const l = we(), a = w(() => ({
1024
1024
  schema: e.schema,
@@ -1026,59 +1026,59 @@ const Je = $t.exports, Dt = /* @__PURE__ */ te({
1026
1026
  model: e.formModel,
1027
1027
  field: e.schema.field
1028
1028
  })), s = w(() => {
1029
- const f = e.schema.ifShow;
1030
- return f === void 0 ? !0 : typeof f == "boolean" ? f : f(a.value);
1031
- }), u = w(() => {
1032
- const f = e.schema.show;
1033
- return f === void 0 ? !0 : typeof f == "boolean" ? f : f(a.value);
1034
- }), d = w(() => {
1029
+ const d = e.schema.ifShow;
1030
+ return d === void 0 ? !0 : typeof d == "boolean" ? d : d(a.value);
1031
+ }), c = w(() => {
1032
+ const d = e.schema.show;
1033
+ return d === void 0 ? !0 : typeof d == "boolean" ? d : d(a.value);
1034
+ }), f = w(() => {
1035
1035
  if (e.formDisabled)
1036
1036
  return !0;
1037
- const f = e.schema.dynamicDisabled;
1038
- return f === void 0 ? !1 : typeof f == "boolean" ? f : f(a.value);
1037
+ const d = e.schema.dynamicDisabled;
1038
+ return d === void 0 ? !1 : typeof d == "boolean" ? d : d(a.value);
1039
1039
  }), v = w(() => {
1040
- const f = e.schema.dynamicRules;
1041
- return f ? Array.isArray(f) ? f : f(a.value) : e.schema.rules;
1042
- }), B = w(() => {
1043
- const f = e.schema.componentProps;
1044
- if (!f)
1040
+ const d = e.schema.dynamicRules;
1041
+ return d ? Array.isArray(d) ? d : d(a.value) : e.schema.rules;
1042
+ }), F = w(() => {
1043
+ const d = e.schema.componentProps;
1044
+ if (!d)
1045
1045
  return { props: {}, listeners: {} };
1046
- const W = typeof f == "function" ? f({
1046
+ const W = typeof d == "function" ? d({
1047
1047
  ...a.value,
1048
1048
  formActionType: e.formActionType
1049
- }) : { ...f }, g = {}, K = {};
1049
+ }) : { ...d }, y = {}, K = {};
1050
1050
  for (const [q, Q] of Object.entries(W))
1051
1051
  if (q.length > 2 && /^on[A-Za-z]/.test(q) && typeof Q == "function") {
1052
1052
  const J = q.slice(2).charAt(0).toLowerCase() + q.slice(3);
1053
1053
  K[J] = Q;
1054
1054
  } else
1055
- g[q] = Q;
1056
- return { props: g, listeners: K };
1057
- }), b = w(() => B.value.props), y = w(() => B.value.listeners), p = w(() => e.schema.colon ?? e.colon ?? !1), _ = w(() => {
1058
- const f = e.schema.tooltip;
1059
- if (!f)
1055
+ y[q] = Q;
1056
+ return { props: y, listeners: K };
1057
+ }), g = w(() => F.value.props), b = w(() => F.value.listeners), p = w(() => e.schema.colon ?? e.colon ?? !1), _ = w(() => {
1058
+ const d = e.schema.tooltip;
1059
+ if (!d)
1060
1060
  return null;
1061
- const W = typeof f == "function" ? f(a.value) : f;
1061
+ const W = typeof d == "function" ? d(a.value) : d;
1062
1062
  return De(W, e.formModel[e.schema.field]);
1063
- }), A = w(() => _.value ? "el-tooltip" : "span"), O = w(() => _.value || {}), P = w(() => !!l.default), T = (f) => {
1064
- const W = f == null ? void 0 : f.options;
1063
+ }), A = w(() => _.value ? "el-tooltip" : "span"), O = w(() => _.value || {}), P = w(() => !!l.default), T = (d) => {
1064
+ const W = d == null ? void 0 : d.options;
1065
1065
  return Array.isArray(W) ? W : void 0;
1066
1066
  }, E = w(() => {
1067
- const f = e.schema.component;
1068
- return f == null ? null : typeof f == "string" ? n.has(f) ? null : e.customComponents && e.customComponents[f] || f : f;
1069
- }), N = (f) => {
1067
+ const d = e.schema.component;
1068
+ return d == null ? null : typeof d == "string" ? n.has(d) ? null : e.customComponents && e.customComponents[d] || d : d;
1069
+ }), N = (d) => {
1070
1070
  var W;
1071
- (W = e.onFieldChange) == null || W.call(e, e.schema.field, f);
1071
+ (W = e.onFieldChange) == null || W.call(e, e.schema.field, d);
1072
1072
  }, S = w(() => {
1073
- const f = e.schema.render;
1074
- return f ? {
1073
+ const d = e.schema.render;
1074
+ return d ? {
1075
1075
  render() {
1076
- const W = f(a.value);
1076
+ const W = d(a.value);
1077
1077
  return Array.isArray(W) ? ve("span", W) : W;
1078
1078
  }
1079
1079
  } : null;
1080
1080
  });
1081
- return { __sfc: !0, BUILT_IN_COMPONENTS: n, props: e, apiSelectRef: t, slots: l, renderParams: a, shouldRender: s, shouldShow: u, effectiveDisabled: d, effectiveRules: v, effectiveComponentPropsAndListeners: B, effectiveComponentProps: b, effectiveComponentListeners: y, showColon: p, normalizedTooltip: _, fieldWrapperComponent: A, fieldWrapperProps: O, hasSlot: P, getOptions: T, resolvedCustomComponent: E, setFieldValue: N, renderComponent: S, ApiSelect: Ue, FormattedNumberInput: Ae, TreeSelect: Je };
1081
+ return { __sfc: !0, BUILT_IN_COMPONENTS: n, props: e, apiSelectRef: t, slots: l, renderParams: a, shouldRender: s, shouldShow: c, effectiveDisabled: f, effectiveRules: v, effectiveComponentPropsAndListeners: F, effectiveComponentProps: g, effectiveComponentListeners: b, showColon: p, normalizedTooltip: _, fieldWrapperComponent: A, fieldWrapperProps: O, hasSlot: P, getOptions: T, resolvedCustomComponent: E, setFieldValue: N, renderComponent: S, ApiSelect: Ue, FormattedNumberInput: Ae, TreeSelect: Je };
1082
1082
  }
1083
1083
  });
1084
1084
  var zt = function() {
@@ -1116,7 +1116,7 @@ var zt = function() {
1116
1116
  Et,
1117
1117
  !1,
1118
1118
  null,
1119
- "48d7960b",
1119
+ null,
1120
1120
  null,
1121
1121
  null
1122
1122
  );
@@ -1154,7 +1154,7 @@ var Ot = function() {
1154
1154
  Nt,
1155
1155
  !1,
1156
1156
  null,
1157
- "489c88d2",
1157
+ null,
1158
1158
  null,
1159
1159
  null
1160
1160
  );
@@ -1192,19 +1192,19 @@ const Xe = Wt.exports, Lt = /* @__PURE__ */ te({
1192
1192
  },
1193
1193
  emits: ["submit", "reset", "register", "update:modelValue"],
1194
1194
  setup(r, { expose: e, emit: n }) {
1195
- const t = r, l = we(), a = D(), s = D(), u = D(!1), d = D(!0), v = D({}), B = D({}), b = D([]), y = D({}), p = D(/* @__PURE__ */ new Map()), _ = { xl: 1920, lg: 1200, md: 992, sm: 768 }, A = (m, F, M) => {
1196
- const $ = M ?? (typeof window < "u" ? window.innerWidth : 1920), o = m ?? {}, c = F ?? {}, x = c.span ?? 8;
1197
- return $ >= _.xl ? o.xl ?? c.xl ?? o.lg ?? c.lg ?? o.md ?? c.md ?? o.sm ?? c.sm ?? o.xs ?? c.xs ?? o.span ?? x : $ >= _.lg ? o.lg ?? c.lg ?? o.md ?? c.md ?? o.sm ?? c.sm ?? o.xs ?? c.xs ?? o.span ?? x : $ >= _.md ? o.md ?? c.md ?? o.sm ?? c.sm ?? o.xs ?? c.xs ?? o.span ?? x : $ >= _.sm ? o.sm ?? c.sm ?? o.xs ?? c.xs ?? o.span ?? x : o.xs ?? c.xs ?? o.span ?? x;
1198
- }, { getSetting: O } = Be(), P = w(() => ({ ...O("ProForm"), ...t, ...y.value })), T = w(() => P.value.modelValue), E = w(() => T.value !== void 0), N = w(() => E.value ? T.value ?? {} : v.value), S = w(() => ({
1195
+ const t = r, l = we(), a = D(), s = D(), c = D(!1), f = D(!0), v = D({}), F = D({}), g = D([]), b = D({}), p = D(/* @__PURE__ */ new Map()), _ = { xl: 1920, lg: 1200, md: 992, sm: 768 }, A = (m, B, M) => {
1196
+ const $ = M ?? (typeof window < "u" ? window.innerWidth : 1920), o = m ?? {}, u = B ?? {}, x = u.span ?? 8;
1197
+ return $ >= _.xl ? o.xl ?? u.xl ?? o.lg ?? u.lg ?? o.md ?? u.md ?? o.sm ?? u.sm ?? o.xs ?? u.xs ?? o.span ?? x : $ >= _.lg ? o.lg ?? u.lg ?? o.md ?? u.md ?? o.sm ?? u.sm ?? o.xs ?? u.xs ?? o.span ?? x : $ >= _.md ? o.md ?? u.md ?? o.sm ?? u.sm ?? o.xs ?? u.xs ?? o.span ?? x : $ >= _.sm ? o.sm ?? u.sm ?? o.xs ?? u.xs ?? o.span ?? x : o.xs ?? u.xs ?? o.span ?? x;
1198
+ }, { getSetting: O } = Be(), P = w(() => ({ ...O("ProForm"), ...t, ...b.value })), T = w(() => P.value.modelValue), E = w(() => T.value !== void 0), N = w(() => E.value ? T.value ?? {} : v.value), S = w(() => ({
1199
1199
  ...O("ProForm").components ?? {},
1200
1200
  ...P.value.components ?? {},
1201
- ...y.value.components ?? {}
1202
- })), f = w(() => P.value.actionColOptions ?? { span: 24 }), W = D(typeof window < "u" ? window.innerWidth : 1920), g = (m, F, M, $) => {
1203
- let o = 24, c = 1, x = 0;
1201
+ ...b.value.components ?? {}
1202
+ })), d = w(() => P.value.actionColOptions ?? { span: 24 }), W = D(typeof window < "u" ? window.innerWidth : 1920), y = (m, B, M, $) => {
1203
+ let o = 24, u = 1, x = 0;
1204
1204
  for (const k of m) {
1205
- const U = A(k.colProps, F, $);
1205
+ const U = A(k.colProps, B, $);
1206
1206
  if (U > o) {
1207
- if (c++, c > M)
1207
+ if (u++, u > M)
1208
1208
  break;
1209
1209
  o = 24 - U;
1210
1210
  } else
@@ -1213,24 +1213,24 @@ const Xe = Wt.exports, Lt = /* @__PURE__ */ te({
1213
1213
  }
1214
1214
  return x;
1215
1215
  }, K = w(() => {
1216
- const m = b.value.filter((o) => J(o));
1216
+ const m = g.value.filter((o) => J(o));
1217
1217
  if (!P.value.showAdvancedButton)
1218
1218
  return !1;
1219
- const F = P.value.alwaysShowLines ?? 1, M = P.value.baseColProps, $ = g(m, M, F, W.value);
1219
+ const B = P.value.alwaysShowLines ?? 1, M = P.value.baseColProps, $ = y(m, M, B, W.value);
1220
1220
  return m.length > $;
1221
1221
  }), q = w(() => P.value.formListeners ?? {}), Q = w(() => {
1222
- const m = b.value.filter((o) => J(o));
1223
- if (!P.value.showAdvancedButton || !d.value)
1222
+ const m = g.value.filter((o) => J(o));
1223
+ if (!P.value.showAdvancedButton || !f.value)
1224
1224
  return m;
1225
- const F = P.value.alwaysShowLines ?? 1, M = P.value.baseColProps, $ = g(m, M, F, W.value);
1225
+ const B = P.value.alwaysShowLines ?? 1, M = P.value.baseColProps, $ = y(m, M, B, W.value);
1226
1226
  return m.slice(0, $);
1227
1227
  }), J = (m) => {
1228
- let F = !0, M = !0;
1229
- return typeof m.ifShow == "function" && (F = m.ifShow({ schema: m, values: N.value, model: N.value, field: m.field })), typeof m.ifShow == "boolean" && (F = m.ifShow), typeof m.show == "function" && (M = m.show({ schema: m, values: N.value, model: N.value, field: m.field })), typeof m.show == "boolean" && (M = m.show), F && M;
1230
- }, Y = (m) => m.colProps ?? P.value.baseColProps ?? {}, Z = (m) => m.slot || m.field, I = (m, F = !0) => {
1231
- const M = F ? { ...m ?? {} } : {}, $ = P.value.initialValues ?? t.initialValues;
1232
- return b.value.forEach((o) => {
1233
- if (!(F && Object.prototype.hasOwnProperty.call(M, o.field))) {
1228
+ let B = !0, M = !0;
1229
+ return typeof m.ifShow == "function" && (B = m.ifShow({ schema: m, values: N.value, model: N.value, field: m.field })), typeof m.ifShow == "boolean" && (B = m.ifShow), typeof m.show == "function" && (M = m.show({ schema: m, values: N.value, model: N.value, field: m.field })), typeof m.show == "boolean" && (M = m.show), B && M;
1230
+ }, Y = (m) => m.colProps ?? P.value.baseColProps ?? {}, Z = (m) => m.slot || m.field, I = (m, B = !0) => {
1231
+ const M = B ? { ...m ?? {} } : {}, $ = P.value.initialValues ?? t.initialValues;
1232
+ return g.value.forEach((o) => {
1233
+ if (!(B && Object.prototype.hasOwnProperty.call(M, o.field))) {
1234
1234
  if (o.defaultValue !== void 0) {
1235
1235
  M[o.field] = o.defaultValue;
1236
1236
  return;
@@ -1238,42 +1238,42 @@ const Xe = Wt.exports, Lt = /* @__PURE__ */ te({
1238
1238
  $ && Object.prototype.hasOwnProperty.call($, o.field) && (M[o.field] = $[o.field]);
1239
1239
  }
1240
1240
  }), M;
1241
- }, V = (m, F = !0) => {
1242
- v.value = m, F && n("update:modelValue", m);
1241
+ }, V = (m, B = !0) => {
1242
+ v.value = m, B && n("update:modelValue", m);
1243
1243
  }, j = (m) => {
1244
- const F = I({ ...N.value, ...m });
1245
- return V(F), F;
1244
+ const B = I({ ...N.value, ...m });
1245
+ return V(B), B;
1246
1246
  }, C = () => {
1247
1247
  const m = {};
1248
- b.value.forEach((F) => {
1248
+ g.value.forEach((B) => {
1249
1249
  var M;
1250
- (M = F.rules) != null && M.length && (m[F.field] = F.rules);
1251
- }), V(I(N.value), !1), B.value = m;
1250
+ (M = B.rules) != null && M.length && (m[B.field] = B.rules);
1251
+ }), V(I(N.value), !1), F.value = m;
1252
1252
  }, i = (m) => {
1253
- const F = { ...m };
1254
- return b.value.forEach((M) => {
1253
+ const B = { ...m };
1254
+ return g.value.forEach((M) => {
1255
1255
  const $ = M.ifShow;
1256
1256
  if ($ === void 0)
1257
1257
  return;
1258
- (typeof $ == "boolean" ? $ : $({ schema: M, values: m, model: m, field: M.field })) || delete F[M.field];
1259
- }), F;
1258
+ (typeof $ == "boolean" ? $ : $({ schema: M, values: m, model: m, field: M.field })) || delete B[M.field];
1259
+ }), B;
1260
1260
  }, h = (m) => {
1261
- const F = i(m), M = y.value.fieldMapToTime;
1261
+ const B = i(m), M = b.value.fieldMapToTime;
1262
1262
  if (!(M != null && M.length))
1263
- return F;
1264
- const $ = { ...F };
1265
- return M.forEach(([o, [c, x]]) => {
1263
+ return B;
1264
+ const $ = { ...B };
1265
+ return M.forEach(([o, [u, x]]) => {
1266
1266
  const k = $[o];
1267
- Array.isArray(k) && k.length === 2 && (delete $[o], $[c] = k[0], $[x] = k[1]);
1267
+ Array.isArray(k) && k.length === 2 && (delete $[o], $[u] = k[0], $[x] = k[1]);
1268
1268
  }), $;
1269
1269
  }, R = async () => {
1270
1270
  var m;
1271
1271
  try {
1272
- await ((m = a.value) == null ? void 0 : m.validate()), P.value.submitFunc ? await P.value.submitFunc() : (u.value = !0, n("submit", h({ ...N.value })));
1273
- } catch (F) {
1274
- console.error("Form validation failed:", F);
1272
+ await ((m = a.value) == null ? void 0 : m.validate()), P.value.submitFunc ? await P.value.submitFunc() : (c.value = !0, n("submit", h({ ...N.value })));
1273
+ } catch (B) {
1274
+ console.error("Form validation failed:", B);
1275
1275
  } finally {
1276
- u.value = !1;
1276
+ c.value = !1;
1277
1277
  }
1278
1278
  }, z = async () => {
1279
1279
  var m;
@@ -1281,54 +1281,54 @@ const Xe = Wt.exports, Lt = /* @__PURE__ */ te({
1281
1281
  }, H = (m) => (j(m), Promise.resolve()), G = () => h({ ...N.value }), ne = async () => {
1282
1282
  var m;
1283
1283
  (m = a.value) == null || m.resetFields(), V(I(void 0, !1));
1284
- }, le = (m, F) => {
1285
- j({ [m]: F });
1284
+ }, le = (m, B) => {
1285
+ j({ [m]: B });
1286
1286
  }, X = (m) => {
1287
- var F;
1288
- return ((F = a.value) == null ? void 0 : F.validate(m)) ?? Promise.resolve();
1289
- }, ae = (m) => a.value ? m != null && m.length ? Promise.all(m.map((F) => new Promise((M, $) => {
1290
- a.value.validateField(F, (o) => o ? M(void 0) : $(new Error("Validation failed")));
1291
- }))) : a.value.validate() : Promise.resolve(), de = async (m, F) => {
1287
+ var B;
1288
+ return ((B = a.value) == null ? void 0 : B.validate(m)) ?? Promise.resolve();
1289
+ }, ae = (m) => a.value ? m != null && m.length ? Promise.all(m.map((B) => new Promise((M, $) => {
1290
+ a.value.validateField(B, (o) => o ? M(void 0) : $(new Error("Validation failed")));
1291
+ }))) : a.value.validate() : Promise.resolve(), de = async (m, B) => {
1292
1292
  var $;
1293
1293
  const M = ($ = s.value) == null ? void 0 : $.querySelector(`[data-field="${m}"]`);
1294
- return M && M.scrollIntoView({ behavior: (F == null ? void 0 : F.behavior) ?? "smooth", block: (F == null ? void 0 : F.block) ?? "nearest" }), Promise.resolve();
1294
+ return M && M.scrollIntoView({ behavior: (B == null ? void 0 : B.behavior) ?? "smooth", block: (B == null ? void 0 : B.block) ?? "nearest" }), Promise.resolve();
1295
1295
  }, ie = (m) => {
1296
- var F;
1297
- (F = a.value) == null || F.clearValidate(m);
1296
+ var B;
1297
+ (B = a.value) == null || B.clearValidate(m);
1298
1298
  }, fe = async (m) => {
1299
1299
  (Array.isArray(m) ? m : [m]).forEach((M) => {
1300
- const $ = b.value.findIndex((o) => o.field === M.field);
1301
- $ >= 0 && (b.value[$] = { ...b.value[$], ...M });
1300
+ const $ = g.value.findIndex((o) => o.field === M.field);
1301
+ $ >= 0 && (g.value[$] = { ...g.value[$], ...M });
1302
1302
  });
1303
- }, oe = async (m, F, M) => {
1303
+ }, oe = async (m, B, M) => {
1304
1304
  if (M)
1305
- b.value.unshift(m);
1306
- else if (F) {
1307
- const $ = b.value.findIndex((o) => o.field === F);
1308
- b.value.splice($ + 1, 0, m);
1305
+ g.value.unshift(m);
1306
+ else if (B) {
1307
+ const $ = g.value.findIndex((o) => o.field === B);
1308
+ g.value.splice($ + 1, 0, m);
1309
1309
  } else
1310
- b.value.push(m);
1310
+ g.value.push(m);
1311
1311
  C();
1312
1312
  }, be = async (m) => {
1313
- const F = Array.isArray(m) ? m : [m];
1314
- b.value = b.value.filter((M) => !F.includes(M.field));
1315
- }, ue = async (m) => {
1316
- y.value = { ...y.value, ...m }, m.schemas && (b.value = [...m.schemas], C());
1317
- }, Ce = (m, F) => {
1318
- F ? p.value.set(m, F) : p.value.delete(m);
1313
+ const B = Array.isArray(m) ? m : [m];
1314
+ g.value = g.value.filter((M) => !B.includes(M.field));
1315
+ }, ce = async (m) => {
1316
+ b.value = { ...b.value, ...m }, m.schemas && (g.value = [...m.schemas], C());
1317
+ }, Ce = (m, B) => {
1318
+ B ? p.value.set(m, B) : p.value.delete(m);
1319
1319
  }, xe = (m) => p.value.get(m) ?? null;
1320
- function Pe(m, F = !1) {
1320
+ function Pe(m, B = !1) {
1321
1321
  const M = p.value.get(m);
1322
1322
  if (!M)
1323
1323
  return [];
1324
1324
  const $ = M;
1325
- return F ? ($ == null ? void 0 : $.rawOptions) ?? [] : ($ == null ? void 0 : $.options) ?? [];
1325
+ return B ? ($ == null ? void 0 : $.rawOptions) ?? [] : ($ == null ? void 0 : $.options) ?? [];
1326
1326
  }
1327
1327
  const Se = (m) => {
1328
- const F = p.value.get(m);
1329
- if (!F)
1328
+ const B = p.value.get(m);
1329
+ if (!B)
1330
1330
  return !1;
1331
- const M = F;
1331
+ const M = B;
1332
1332
  return (M == null ? void 0 : M.loading) ?? !1;
1333
1333
  }, ye = {
1334
1334
  getFieldsValue: G,
@@ -1342,7 +1342,7 @@ const Xe = Wt.exports, Lt = /* @__PURE__ */ te({
1342
1342
  updateSchema: fe,
1343
1343
  appendSchemaByField: oe,
1344
1344
  removeSchemaByField: be,
1345
- setProps: ue,
1345
+ setProps: ce,
1346
1346
  getComponentInstance: xe,
1347
1347
  getFieldOptions: Pe,
1348
1348
  isFieldLoading: Se
@@ -1352,7 +1352,7 @@ const Xe = Wt.exports, Lt = /* @__PURE__ */ te({
1352
1352
  registerFieldInstance: Ce
1353
1353
  });
1354
1354
  const pe = () => {
1355
- b.value = [...t.schemas ?? []], C();
1355
+ g.value = [...t.schemas ?? []], C();
1356
1356
  }, me = () => {
1357
1357
  typeof window < "u" && (W.value = window.innerWidth);
1358
1358
  };
@@ -1362,7 +1362,7 @@ const Xe = Wt.exports, Lt = /* @__PURE__ */ te({
1362
1362
  typeof window < "u" && window.removeEventListener("resize", me);
1363
1363
  }), ee(() => T.value, (m) => {
1364
1364
  !E.value || m === void 0 || V(I(m), !1);
1365
- }, { deep: !0, immediate: !0 }), ee(() => [t.schemas, t.initialValues], pe, { deep: !0 }), { __sfc: !0, props: t, emit: n, slots: l, formRef: a, formWrapRef: s, submitLoading: u, collapsed: d, formModel: v, formRules: B, innerSchemas: b, innerProps: y, fieldInstanceMap: p, BREAKPOINTS: _, getEffectiveSpan: A, getComponentSetting: O, effectiveProps: P, controlledModelValue: T, isControlled: E, currentFormModel: N, formCustomComponents: S, effectiveActionColOptions: f, windowWidth: W, getVisibleSchemaCount: g, hasMoreFields: K, formListeners: q, displaySchemas: Q, shouldShow: J, getColProps: Y, getSlotName: Z, resolveSchemaModel: I, applyFormModel: V, updateFormModel: j, initForm: C, filterByIfShow: i, processFieldMapToTime: h, handleSubmit: R, handleReset: z, setFieldsValue: H, getFieldsValue: G, resetFields: ne, handleFieldChange: le, validate: X, validateFields: ae, scrollToField: de, clearValidate: ie, updateSchema: fe, appendSchemaByField: oe, removeSchemaByField: be, setProps: ue, registerFieldInstance: Ce, getComponentInstance: xe, getFieldOptions: Pe, isFieldLoading: Se, formActionRef: ye, syncSchemas: pe, handleResize: me, ProFormItem: Ze, FormActions: Xe };
1365
+ }, { deep: !0, immediate: !0 }), ee(() => [t.schemas, t.initialValues], pe, { deep: !0 }), { __sfc: !0, props: t, emit: n, slots: l, formRef: a, formWrapRef: s, submitLoading: c, collapsed: f, formModel: v, formRules: F, innerSchemas: g, innerProps: b, fieldInstanceMap: p, BREAKPOINTS: _, getEffectiveSpan: A, getComponentSetting: O, effectiveProps: P, controlledModelValue: T, isControlled: E, currentFormModel: N, formCustomComponents: S, effectiveActionColOptions: d, windowWidth: W, getVisibleSchemaCount: y, hasMoreFields: K, formListeners: q, displaySchemas: Q, shouldShow: J, getColProps: Y, getSlotName: Z, resolveSchemaModel: I, applyFormModel: V, updateFormModel: j, initForm: C, filterByIfShow: i, processFieldMapToTime: h, handleSubmit: R, handleReset: z, setFieldsValue: H, getFieldsValue: G, resetFields: ne, handleFieldChange: le, validate: X, validateFields: ae, scrollToField: de, clearValidate: ie, updateSchema: fe, appendSchemaByField: oe, removeSchemaByField: be, setProps: ce, registerFieldInstance: Ce, getComponentInstance: xe, getFieldOptions: Pe, isFieldLoading: Se, formActionRef: ye, syncSchemas: pe, handleResize: me, ProFormItem: Ze, FormActions: Xe };
1366
1366
  }
1367
1367
  });
1368
1368
  var Kt = function() {
@@ -1381,7 +1381,7 @@ var Kt = function() {
1381
1381
  jt,
1382
1382
  !1,
1383
1383
  null,
1384
- "cf7b3b35",
1384
+ null,
1385
1385
  null,
1386
1386
  null
1387
1387
  );
@@ -1389,8 +1389,8 @@ const Qe = qt.exports;
1389
1389
  function _n(r) {
1390
1390
  const e = D(null), n = D(r ? _e(r) : void 0), t = () => r ? _e(r) : void 0, l = (S) => {
1391
1391
  e.value = S;
1392
- const f = t();
1393
- f && Object.keys(f).length > 0 && S.setProps(f);
1392
+ const d = t();
1393
+ d && Object.keys(d).length > 0 && S.setProps(d);
1394
1394
  };
1395
1395
  r && ee(
1396
1396
  () => t(),
@@ -1403,56 +1403,56 @@ function _n(r) {
1403
1403
  var S;
1404
1404
  return ((S = e.value) == null ? void 0 : S.getFieldsValue()) ?? {};
1405
1405
  }, s = async (S) => {
1406
- var f;
1407
- await ((f = e.value) == null ? void 0 : f.setFieldsValue(S));
1408
- }, u = async () => {
1406
+ var d;
1407
+ await ((d = e.value) == null ? void 0 : d.setFieldsValue(S));
1408
+ }, c = async () => {
1409
1409
  var S;
1410
1410
  await ((S = e.value) == null ? void 0 : S.resetFields());
1411
- }, d = (S) => {
1412
- var f;
1413
- return ((f = e.value) == null ? void 0 : f.validate(S)) ?? Promise.resolve();
1411
+ }, f = (S) => {
1412
+ var d;
1413
+ return ((d = e.value) == null ? void 0 : d.validate(S)) ?? Promise.resolve();
1414
1414
  }, v = (S) => {
1415
- var f;
1416
- return ((f = e.value) == null ? void 0 : f.validateFields(S)) ?? Promise.resolve();
1417
- }, B = () => {
1415
+ var d;
1416
+ return ((d = e.value) == null ? void 0 : d.validateFields(S)) ?? Promise.resolve();
1417
+ }, F = () => {
1418
1418
  var S;
1419
1419
  return ((S = e.value) == null ? void 0 : S.submit()) ?? Promise.resolve();
1420
- }, b = (S, f) => {
1420
+ }, g = (S, d) => {
1421
1421
  var W;
1422
- return ((W = e.value) == null ? void 0 : W.scrollToField(S, f)) ?? Promise.resolve();
1423
- }, y = (S) => {
1424
- var f;
1425
- (f = e.value) == null || f.clearValidate(S);
1422
+ return ((W = e.value) == null ? void 0 : W.scrollToField(S, d)) ?? Promise.resolve();
1423
+ }, b = (S) => {
1424
+ var d;
1425
+ (d = e.value) == null || d.clearValidate(S);
1426
1426
  }, p = (S) => {
1427
- var f;
1428
- return ((f = e.value) == null ? void 0 : f.updateSchema(S)) ?? Promise.resolve();
1429
- }, _ = (S, f, W) => {
1430
- var g;
1431
- return ((g = e.value) == null ? void 0 : g.appendSchemaByField(S, f, W)) ?? Promise.resolve();
1427
+ var d;
1428
+ return ((d = e.value) == null ? void 0 : d.updateSchema(S)) ?? Promise.resolve();
1429
+ }, _ = (S, d, W) => {
1430
+ var y;
1431
+ return ((y = e.value) == null ? void 0 : y.appendSchemaByField(S, d, W)) ?? Promise.resolve();
1432
1432
  }, A = (S) => {
1433
- var f;
1434
- return ((f = e.value) == null ? void 0 : f.removeSchemaByField(S)) ?? Promise.resolve();
1433
+ var d;
1434
+ return ((d = e.value) == null ? void 0 : d.removeSchemaByField(S)) ?? Promise.resolve();
1435
1435
  }, O = async (S) => {
1436
- var f;
1437
- n.value = { ...n.value, ...S }, await ((f = e.value) == null ? void 0 : f.setProps(S));
1436
+ var d;
1437
+ n.value = { ...n.value, ...S }, await ((d = e.value) == null ? void 0 : d.setProps(S));
1438
1438
  }, P = (S) => {
1439
- var f;
1440
- return ((f = e.value) == null ? void 0 : f.getComponentInstance(S)) ?? null;
1439
+ var d;
1440
+ return ((d = e.value) == null ? void 0 : d.getComponentInstance(S)) ?? null;
1441
1441
  };
1442
- function T(S, f = !1) {
1443
- return e.value ? f ? e.value.getFieldOptions(S, !0) : e.value.getFieldOptions(S) : [];
1442
+ function T(S, d = !1) {
1443
+ return e.value ? d ? e.value.getFieldOptions(S, !0) : e.value.getFieldOptions(S) : [];
1444
1444
  }
1445
1445
  return [l, {
1446
1446
  register: l,
1447
1447
  formAction: e,
1448
1448
  getFieldsValue: a,
1449
1449
  setFieldsValue: s,
1450
- resetFields: u,
1451
- validate: d,
1450
+ resetFields: c,
1451
+ validate: f,
1452
1452
  validateFields: v,
1453
- submit: B,
1454
- scrollToField: b,
1455
- clearValidate: y,
1453
+ submit: F,
1454
+ scrollToField: g,
1455
+ clearValidate: b,
1456
1456
  updateSchema: p,
1457
1457
  appendSchemaByField: _,
1458
1458
  removeSchemaByField: A,
@@ -1460,8 +1460,8 @@ function _n(r) {
1460
1460
  getComponentInstance: P,
1461
1461
  getFieldOptions: T,
1462
1462
  isFieldLoading: (S) => {
1463
- var f;
1464
- return ((f = e.value) == null ? void 0 : f.isFieldLoading(S)) ?? !1;
1463
+ var d;
1464
+ return ((d = e.value) == null ? void 0 : d.isFieldLoading(S)) ?? !1;
1465
1465
  }
1466
1466
  }];
1467
1467
  }
@@ -1481,7 +1481,7 @@ const Ht = /* @__PURE__ */ te({
1481
1481
  },
1482
1482
  emits: ["register"],
1483
1483
  setup(r, { expose: e, emit: n }) {
1484
- const t = r, l = D({}), a = D({}), s = D([]), u = D(typeof window < "u" ? window.innerWidth : 1920), d = D(!0), v = te({
1484
+ const t = r, l = D({}), a = D({}), s = D([]), c = D(typeof window < "u" ? window.innerWidth : 1920), f = D(!0), v = te({
1485
1485
  name: "EcpDescriptionValueRenderer",
1486
1486
  props: {
1487
1487
  schema: { type: Object, required: !0 },
@@ -1492,7 +1492,7 @@ const Ht = /* @__PURE__ */ te({
1492
1492
  setup(i) {
1493
1493
  return () => {
1494
1494
  const h = i.schema, R = i.record, z = i.value, H = (G) => {
1495
- const ne = B(h, G === i.emptyText ? z : G, R), le = ve("span", G);
1495
+ const ne = F(h, G === i.emptyText ? z : G, R), le = ve("span", G);
1496
1496
  return ne ? ve("el-tooltip", { props: ne }, [le]) : le;
1497
1497
  };
1498
1498
  if (h.render) {
@@ -1502,18 +1502,18 @@ const Ht = /* @__PURE__ */ te({
1502
1502
  return Array.isArray(z) ? H(z.length ? z.join(", ") : i.emptyText) : z == null || z === "" ? H(i.emptyText) : H(typeof z == "object" ? JSON.stringify(z) : String(z));
1503
1503
  };
1504
1504
  }
1505
- }), B = (i, h, R) => {
1505
+ }), F = (i, h, R) => {
1506
1506
  const z = i.tooltip;
1507
1507
  if (!z)
1508
1508
  return null;
1509
1509
  const H = typeof z == "function" ? z({ value: h, record: R, schema: i }) : z;
1510
1510
  return De(H, h);
1511
- }, { mergeSettings: b } = Be(), y = w(() => b("ProDescriptions", { ...t, ...l.value })), p = { xxl: 1920, xl: 1200, lg: 992, md: 768, sm: 576 }, _ = (i, h) => {
1511
+ }, { mergeSettings: g } = Be(), b = w(() => g("ProDescriptions", { ...t, ...l.value })), p = { xxl: 1920, xl: 1200, lg: 992, md: 768, sm: 576 }, _ = (i, h) => {
1512
1512
  if (typeof i == "number")
1513
1513
  return Math.max(1, i);
1514
1514
  const R = i ?? {};
1515
1515
  return h >= p.xxl ? R.xxl ?? R.xl ?? R.lg ?? R.md ?? R.sm ?? R.xs ?? 3 : h >= p.xl ? R.xl ?? R.lg ?? R.md ?? R.sm ?? R.xs ?? 3 : h >= p.lg ? R.lg ?? R.md ?? R.sm ?? R.xs ?? 3 : h >= p.md ? R.md ?? R.sm ?? R.xs ?? 3 : h >= p.sm ? R.sm ?? R.xs ?? 2 : R.xs ?? 1;
1516
- }, A = w(() => _(y.value.column, u.value)), O = w(() => y.value.data ?? a.value ?? {}), P = w(() => (s.value.length ? s.value : y.value.schema ?? []).filter((i) => i.dataIndex || i.field ? typeof i.show == "function" ? i.show(O.value) : i.show !== !1 : !1).map((i) => ({
1516
+ }, A = w(() => _(b.value.column, c.value)), O = w(() => b.value.data ?? a.value ?? {}), P = w(() => (s.value.length ? s.value : b.value.schema ?? []).filter((i) => i.dataIndex || i.field ? typeof i.show == "function" ? i.show(O.value) : i.show !== !1 : !1).map((i) => ({
1517
1517
  ...i,
1518
1518
  dataIndex: i.dataIndex || i.field || ""
1519
1519
  }))), T = w(() => {
@@ -1528,23 +1528,23 @@ const Ht = /* @__PURE__ */ te({
1528
1528
  }), h.items.length > 0 && i.push(h), i;
1529
1529
  }), E = w(() => {
1530
1530
  var h;
1531
- if (!N.value || d.value)
1531
+ if (!N.value || f.value)
1532
1532
  return T.value;
1533
- const i = Math.max(1, ((h = y.value.collapseOptions) == null ? void 0 : h.visibleRows) ?? 1);
1533
+ const i = Math.max(1, ((h = b.value.collapseOptions) == null ? void 0 : h.visibleRows) ?? 1);
1534
1534
  return T.value.slice(0, i);
1535
1535
  }), N = w(() => {
1536
1536
  var h, R;
1537
- const i = Math.max(1, ((h = y.value.collapseOptions) == null ? void 0 : h.visibleRows) ?? 1);
1538
- return !!y.value.useCollapse && !!((R = y.value.collapseOptions) != null && R.canExpand) && T.value.length > i;
1539
- }), S = w(() => !!y.value.title || !!y.value.helpMessage || N.value), f = w(() => {
1537
+ const i = Math.max(1, ((h = b.value.collapseOptions) == null ? void 0 : h.visibleRows) ?? 1);
1538
+ return !!b.value.useCollapse && !!((R = b.value.collapseOptions) != null && R.canExpand) && T.value.length > i;
1539
+ }), S = w(() => !!b.value.title || !!b.value.helpMessage || N.value), d = w(() => {
1540
1540
  var i, h;
1541
1541
  return {
1542
- expand: ((i = y.value.collapseOptions) == null ? void 0 : i.expandButtonText) ?? "展开",
1543
- collapse: ((h = y.value.collapseOptions) == null ? void 0 : h.collapseButtonText) ?? "收起"
1542
+ expand: ((i = b.value.collapseOptions) == null ? void 0 : i.expandButtonText) ?? "展开",
1543
+ collapse: ((h = b.value.collapseOptions) == null ? void 0 : h.collapseButtonText) ?? "收起"
1544
1544
  };
1545
1545
  }), W = w(() => ({
1546
1546
  gridTemplateColumns: `repeat(${A.value}, minmax(0, 1fr))`
1547
- })), g = (i) => ({
1547
+ })), y = (i) => ({
1548
1548
  gridColumn: `span ${i._span}`
1549
1549
  }), K = (i) => ({
1550
1550
  minWidth: i.labelMinWidth ? `${i.labelMinWidth}px` : void 0,
@@ -1553,33 +1553,33 @@ const Ht = /* @__PURE__ */ te({
1553
1553
  minWidth: i.contentMinWidth ? `${i.contentMinWidth}px` : void 0,
1554
1554
  ...i.contentStyle ?? {}
1555
1555
  }), Q = (i) => O.value[i.dataIndex], J = () => {
1556
- s.value = [...y.value.schema ?? []];
1556
+ s.value = [...b.value.schema ?? []];
1557
1557
  }, Y = () => {
1558
- a.value = { ...y.value.data ?? {} };
1558
+ a.value = { ...b.value.data ?? {} };
1559
1559
  }, Z = async (i) => {
1560
1560
  l.value = { ...l.value, ...i }, i.schema && (s.value = [...i.schema]), i.data && (a.value = { ...i.data });
1561
1561
  }, I = async (i) => {
1562
1562
  a.value = { ...a.value, ...i }, l.value = { ...l.value, data: a.value };
1563
- }, V = () => ({ ...y.value.data ?? a.value ?? {} }), j = {
1563
+ }, V = () => ({ ...b.value.data ?? a.value ?? {} }), j = {
1564
1564
  setProps: Z,
1565
1565
  setData: I,
1566
1566
  getData: V
1567
1567
  };
1568
1568
  e(j);
1569
1569
  const C = () => {
1570
- typeof window < "u" && (u.value = window.innerWidth);
1570
+ typeof window < "u" && (c.value = window.innerWidth);
1571
1571
  };
1572
1572
  return ge(() => {
1573
1573
  var i;
1574
- J(), Y(), d.value = ((i = y.value.collapseOptions) == null ? void 0 : i.defaultExpand) !== !1, n("register", j), typeof window < "u" && window.addEventListener("resize", C);
1574
+ J(), Y(), f.value = ((i = b.value.collapseOptions) == null ? void 0 : i.defaultExpand) !== !1, n("register", j), typeof window < "u" && window.addEventListener("resize", C);
1575
1575
  }), Fe(() => {
1576
1576
  typeof window < "u" && window.removeEventListener("resize", C);
1577
- }), ee(() => y.value.schema, J, { deep: !0 }), ee(() => y.value.data, Y, { deep: !0 }), ee(() => {
1577
+ }), ee(() => b.value.schema, J, { deep: !0 }), ee(() => b.value.data, Y, { deep: !0 }), ee(() => {
1578
1578
  var i;
1579
- return (i = y.value.collapseOptions) == null ? void 0 : i.defaultExpand;
1579
+ return (i = b.value.collapseOptions) == null ? void 0 : i.defaultExpand;
1580
1580
  }, (i) => {
1581
- i !== void 0 && (d.value = i);
1582
- }), { __sfc: !0, props: t, emit: n, innerProps: l, innerData: a, innerSchema: s, windowWidth: u, expanded: d, DescriptionValueRenderer: v, normalizeTooltip: B, mergeSettings: b, effectiveProps: y, breakpoints: p, resolveColumn: _, currentColumn: A, effectiveData: O, visibleSchema: P, normalizedRows: T, renderedRows: E, showCollapseButton: N, showHeader: S, collapseButtonText: f, bodyStyle: W, getItemStyle: g, getLabelStyle: K, getContentStyle: q, getItemValue: Q, syncSchema: J, syncData: Y, setProps: Z, setData: I, getData: V, descriptionAction: j, updateWindowWidth: C };
1581
+ i !== void 0 && (f.value = i);
1582
+ }), { __sfc: !0, props: t, emit: n, innerProps: l, innerData: a, innerSchema: s, windowWidth: c, expanded: f, DescriptionValueRenderer: v, normalizeTooltip: F, mergeSettings: g, effectiveProps: b, breakpoints: p, resolveColumn: _, currentColumn: A, effectiveData: O, visibleSchema: P, normalizedRows: T, renderedRows: E, showCollapseButton: N, showHeader: S, collapseButtonText: d, bodyStyle: W, getItemStyle: y, getLabelStyle: K, getContentStyle: q, getItemValue: Q, syncSchema: J, syncData: Y, setProps: Z, setData: I, getData: V, descriptionAction: j, updateWindowWidth: C };
1583
1583
  }
1584
1584
  });
1585
1585
  var Gt = function() {
@@ -1595,8 +1595,8 @@ var Gt = function() {
1595
1595
  `is-${t.effectiveProps.size}`,
1596
1596
  { "is-bordered": t.effectiveProps.bordered, "is-collapsed": t.showCollapseButton && !t.expanded }
1597
1597
  ], style: t.bodyStyle }, "div", e.$attrs, !1), [e._l(t.renderedRows, function(a, s) {
1598
- return [e._l(a.items, function(u) {
1599
- return [n("div", { key: `${s}-${u.dataIndex || u.field}`, staticClass: "ecp-pro-descriptions__item", style: t.getItemStyle(u) }, [n("div", { staticClass: "ecp-pro-descriptions__label", style: t.getLabelStyle(u) }, [e._v(" " + e._s(u.label) + " ")]), n("div", { staticClass: "ecp-pro-descriptions__content", style: t.getContentStyle(u) }, [e.$scopedSlots[u.slot || u.dataIndex] ? e._t(u.slot || u.dataIndex, null, { value: t.getItemValue(u), record: t.effectiveData, schema: u }) : n(t.DescriptionValueRenderer, { attrs: { schema: u, value: t.getItemValue(u), record: t.effectiveData, "empty-text": t.effectiveProps.emptyText || "-" } })], 2)])];
1598
+ return [e._l(a.items, function(c) {
1599
+ return [n("div", { key: `${s}-${c.dataIndex || c.field}`, staticClass: "ecp-pro-descriptions__item", style: t.getItemStyle(c) }, [n("div", { staticClass: "ecp-pro-descriptions__label", style: t.getLabelStyle(c) }, [e._v(" " + e._s(c.label) + " ")]), n("div", { staticClass: "ecp-pro-descriptions__content", style: t.getContentStyle(c) }, [e.$scopedSlots[c.slot || c.dataIndex] ? e._t(c.slot || c.dataIndex, null, { value: t.getItemValue(c), record: t.effectiveData, schema: c }) : n(t.DescriptionValueRenderer, { attrs: { schema: c, value: t.getItemValue(c), record: t.effectiveData, "empty-text": t.effectiveProps.emptyText || "-" } })], 2)])];
1600
1600
  })];
1601
1601
  })], 2)]);
1602
1602
  }, Ut = [], Jt = /* @__PURE__ */ re(
@@ -1605,7 +1605,7 @@ var Gt = function() {
1605
1605
  Ut,
1606
1606
  !1,
1607
1607
  null,
1608
- "656036f6",
1608
+ null,
1609
1609
  null,
1610
1610
  null
1611
1611
  );
@@ -1618,8 +1618,8 @@ function gn(r) {
1618
1618
  return s;
1619
1619
  }, l = (s) => {
1620
1620
  e.value = s;
1621
- const u = n();
1622
- u && Object.keys(u).length > 0 && s.setProps(u);
1621
+ const c = n();
1622
+ c && Object.keys(c).length > 0 && s.setProps(c);
1623
1623
  };
1624
1624
  return r && ee(
1625
1625
  () => n(),
@@ -1655,23 +1655,23 @@ const Zt = /* @__PURE__ */ te({
1655
1655
  },
1656
1656
  emits: ["update:expanded", "change", "collapse", "expand"],
1657
1657
  setup(r, { expose: e, emit: n }) {
1658
- const t = r, l = we(), { mergeSettings: a } = Be(), s = D(t.expanded ?? t.defaultExpand), u = w(() => a("CollapseContainer", { ...t })), d = w(() => u.value.canExpand ?? u.value.canExpan ?? !0), v = w(() => u.value.expanded !== void 0), B = w(() => v.value ? !!u.value.expanded : s.value), b = w(() => !!l.title || !!l.action || !!u.value.title || !!u.value.helpMessage || d.value), y = w(() => d.value), p = w(() => {
1659
- const T = u.value.wrapperProps ?? {}, E = T.class, N = T.style, S = { ...T };
1658
+ const t = r, l = we(), { mergeSettings: a } = Be(), s = D(t.expanded ?? t.defaultExpand), c = w(() => a("CollapseContainer", { ...t })), f = w(() => c.value.canExpand ?? c.value.canExpan ?? !0), v = w(() => c.value.expanded !== void 0), F = w(() => v.value ? !!c.value.expanded : s.value), g = w(() => !!l.title || !!l.action || !!c.value.title || !!c.value.helpMessage || f.value), b = w(() => f.value), p = w(() => {
1659
+ const T = c.value.wrapperProps ?? {}, E = T.class, N = T.style, S = { ...T };
1660
1660
  return delete S.class, delete S.style, {
1661
1661
  ...S,
1662
1662
  class: E,
1663
1663
  style: N
1664
1664
  };
1665
1665
  }), _ = () => {
1666
- !u.value.triggerWindowResize || typeof window > "u" || window.setTimeout(() => {
1666
+ !c.value.triggerWindowResize || typeof window > "u" || window.setTimeout(() => {
1667
1667
  window.dispatchEvent(new Event("resize"));
1668
1668
  }, 220);
1669
1669
  }, A = (T) => {
1670
1670
  v.value || (s.value = T), n("update:expanded", T), n("change", T), n(T ? "expand" : "collapse"), _();
1671
1671
  }, O = () => {
1672
- d.value && A(!B.value);
1672
+ f.value && A(!F.value);
1673
1673
  }, P = () => {
1674
- y.value && O();
1674
+ b.value && O();
1675
1675
  };
1676
1676
  return ee(() => t.expanded, (T) => {
1677
1677
  T !== void 0 && (s.value = T);
@@ -1680,7 +1680,7 @@ const Zt = /* @__PURE__ */ te({
1680
1680
  }), e({
1681
1681
  setExpanded: A,
1682
1682
  toggleExpand: O
1683
- }), { __sfc: !0, props: t, emit: n, slots: l, mergeSettings: a, innerExpanded: s, effectiveProps: u, resolvedCanExpan: d, isControlled: v, mergedExpanded: B, showHeader: b, canToggleByHeader: y, wrapperProps: p, triggerWindowResize: _, setExpanded: A, toggleExpand: O, handleHeaderClick: P };
1683
+ }), { __sfc: !0, props: t, emit: n, slots: l, mergeSettings: a, innerExpanded: s, effectiveProps: c, resolvedCanExpan: f, isControlled: v, mergedExpanded: F, showHeader: g, canToggleByHeader: b, wrapperProps: p, triggerWindowResize: _, setExpanded: A, toggleExpand: O, handleHeaderClick: P };
1684
1684
  }
1685
1685
  });
1686
1686
  var Xt = function() {
@@ -1704,7 +1704,7 @@ var Xt = function() {
1704
1704
  Qt,
1705
1705
  !1,
1706
1706
  null,
1707
- "087dba3a",
1707
+ null,
1708
1708
  null,
1709
1709
  null
1710
1710
  );
@@ -1712,12 +1712,12 @@ const et = Yt.exports;
1712
1712
  function en(r) {
1713
1713
  const { props: e, emit: n, emitAddRow: t, emitRemoveRow: l } = r, a = D(null), s = (C) => {
1714
1714
  a.value = C;
1715
- }, u = D(null), d = w(() => e.modelValue), v = w(() => d.value !== void 0), B = w(() => v.value ? d.value ?? [] : []), b = w(() => ({ rows: B.value })), y = w(() => B.value.map((C, i) => ({ ...C, _index: i })));
1715
+ }, c = D(null), f = w(() => e.modelValue), v = w(() => f.value !== void 0), F = w(() => v.value ? f.value ?? [] : []), g = w(() => ({ rows: F.value })), b = w(() => F.value.map((C, i) => ({ ...C, _index: i })));
1716
1716
  function p(C) {
1717
1717
  return `r-${C._index}`;
1718
1718
  }
1719
1719
  function _() {
1720
- return JSON.parse(JSON.stringify(B.value));
1720
+ return JSON.parse(JSON.stringify(F.value));
1721
1721
  }
1722
1722
  function A() {
1723
1723
  const C = {};
@@ -1733,7 +1733,7 @@ function en(r) {
1733
1733
  n("update:modelValue", C);
1734
1734
  }
1735
1735
  function P(C) {
1736
- return B.value[C._index] ?? {};
1736
+ return F.value[C._index] ?? {};
1737
1737
  }
1738
1738
  function T(C, i, h) {
1739
1739
  if (h) {
@@ -1761,17 +1761,17 @@ function en(r) {
1761
1761
  C.push(A()), O(C);
1762
1762
  }
1763
1763
  function S(C) {
1764
- if (!f.value)
1764
+ if (!d.value)
1765
1765
  return;
1766
1766
  l == null || l(C);
1767
1767
  const i = _();
1768
1768
  i.splice(C, 1), O(i);
1769
1769
  }
1770
- const f = w(() => B.value.length > (e.minRows ?? 0));
1770
+ const d = w(() => F.value.length > (e.minRows ?? 0));
1771
1771
  function W(C, i, h) {
1772
1772
  return h ? `rows.${C._index}.${h}` : `rows.${C._index}.${i.key}`;
1773
1773
  }
1774
- const g = {};
1774
+ const y = {};
1775
1775
  function K(C) {
1776
1776
  return JSON.stringify(C.map((i) => {
1777
1777
  if (i == null || typeof i != "object")
@@ -1796,14 +1796,14 @@ function en(r) {
1796
1796
  ];
1797
1797
  let i = !1;
1798
1798
  const h = {};
1799
- B.value.forEach((z, H) => {
1799
+ F.value.forEach((z, H) => {
1800
1800
  for (const G of e.columns) {
1801
1801
  const ne = (le, X, ae) => {
1802
1802
  const de = `rows.${H}.${le}`;
1803
1803
  let ie = [];
1804
1804
  "dynamicRules" in X && X.dynamicRules !== void 0 ? ie = typeof X.dynamicRules == "function" ? X.dynamicRules({ row: z, value: ae, column: X }) : X.dynamicRules : "rules" in X && X.rules !== void 0 ? ie = X.rules : X.required && (ie = C(X.title));
1805
- const fe = K(ie), oe = g[de], ue = (oe == null ? void 0 : oe.__sig) === fe && oe ? oe : ie;
1806
- ue.__sig = fe, h[de] = ue, ue !== oe && (i = !0);
1805
+ const fe = K(ie), oe = y[de], ce = (oe == null ? void 0 : oe.__sig) === fe && oe ? oe : ie;
1806
+ ce.__sig = fe, h[de] = ce, ce !== oe && (i = !0);
1807
1807
  };
1808
1808
  if (G.children && G.children.length > 0)
1809
1809
  for (const le of G.children) {
@@ -1819,15 +1819,15 @@ function en(r) {
1819
1819
  const R = e.rules || {};
1820
1820
  for (const z of Object.keys(R)) {
1821
1821
  const H = R[z];
1822
- h[z] = H, H !== g[z] && (i = !0);
1822
+ h[z] = H, H !== y[z] && (i = !0);
1823
1823
  }
1824
- return (i || Object.keys(h).length !== Object.keys(g).length) && (Object.keys(g).forEach((z) => {
1825
- delete g[z];
1826
- }), Object.assign(g, h)), g;
1824
+ return (i || Object.keys(h).length !== Object.keys(y).length) && (Object.keys(y).forEach((z) => {
1825
+ delete y[z];
1826
+ }), Object.assign(y, h)), y;
1827
1827
  });
1828
1828
  function Q() {
1829
1829
  return new Promise((C) => {
1830
- const i = u.value;
1830
+ const i = c.value;
1831
1831
  if (!i || typeof i.validate != "function") {
1832
1832
  C(!0);
1833
1833
  return;
@@ -1837,7 +1837,7 @@ function en(r) {
1837
1837
  }
1838
1838
  function J(C) {
1839
1839
  var i, h;
1840
- (h = (i = u.value) == null ? void 0 : i.clearValidate) == null || h.call(i, C);
1840
+ (h = (i = c.value) == null ? void 0 : i.clearValidate) == null || h.call(i, C);
1841
1841
  }
1842
1842
  function Y(C) {
1843
1843
  return C.component === "formatted-number" ? "ecp-formatted-number-input" : "el-input";
@@ -1865,11 +1865,11 @@ function en(r) {
1865
1865
  // 注册
1866
1866
  register: s,
1867
1867
  // el-form 绑定(formModelRef 包装了数组,满足 el-form :model Object 类型要求)
1868
- formModelRef: b,
1869
- currentModelValue: B,
1868
+ formModelRef: g,
1869
+ currentModelValue: F,
1870
1870
  mergedRules: q,
1871
1871
  // el-table 绑定
1872
- tableRows: y,
1872
+ tableRows: b,
1873
1873
  rowKeyFn: p,
1874
1874
  spanMethodAdapter: ({
1875
1875
  rowIndex: C,
@@ -1889,8 +1889,8 @@ function en(r) {
1889
1889
  },
1890
1890
  allLeafColumnKeys: V,
1891
1891
  // ref
1892
- formRef: u,
1893
- getFormRef: () => u.value,
1892
+ formRef: c,
1893
+ getFormRef: () => c.value,
1894
1894
  // 单元格渲染
1895
1895
  cellComponent: Y,
1896
1896
  cellBind: Z,
@@ -1914,7 +1914,8 @@ const tn = /* @__PURE__ */ te({
1914
1914
  value: null,
1915
1915
  row: null,
1916
1916
  size: null,
1917
- placeholder: null
1917
+ placeholder: null,
1918
+ action: null
1918
1919
  },
1919
1920
  emits: ["update"],
1920
1921
  setup(r, { emit: e }) {
@@ -1922,54 +1923,55 @@ const tn = /* @__PURE__ */ te({
1922
1923
  const v = (typeof n.col.componentProps == "function" ? {} : n.col.componentProps ?? {}).options;
1923
1924
  return Array.isArray(v) ? v : [];
1924
1925
  }), l = w(() => {
1925
- const d = {
1926
+ const f = {
1926
1927
  input: "el-input",
1927
1928
  "input-number": "el-input-number",
1928
1929
  "date-picker": "el-date-picker",
1929
1930
  switch: "el-switch",
1930
1931
  cascader: "el-cascader"
1931
1932
  };
1932
- return n.col.component === "formatted-number" ? Ae : d[n.col.component] || "el-input";
1933
+ return n.col.component === "formatted-number" ? Ae : f[n.col.component] || "el-input";
1933
1934
  }), a = w(() => {
1934
- let d = {}, v = {};
1935
- const B = n.col.componentProps;
1936
- typeof B == "function" ? v = B({ row: n.row ?? {}, value: n.value, column: n.col }) : d = B ?? {};
1937
- const b = { size: n.size };
1938
- for (const [y, p] of Object.entries({ ...d, ...v }))
1939
- /^on[A-Za-z]/.test(y) && typeof p == "function" || (b[y] = p);
1935
+ let f = {}, v = {};
1936
+ const F = n.col.componentProps;
1937
+ typeof F == "function" ? v = F({ row: n.row ?? {}, value: n.value, column: n.col, action: n.action }) : f = F ?? {};
1938
+ const g = { size: n.size };
1939
+ for (const [b, p] of Object.entries({ ...f, ...v }))
1940
+ /^on[A-Za-z]/.test(b) && typeof p == "function" || (g[b] = p);
1940
1941
  if (n.col.component === "formatted-number")
1941
- return { integerDigits: 5, decimalPlaces: 6, rounding: "round", inputLimit: !0, ...b };
1942
+ return { integerDigits: 5, decimalPlaces: 6, rounding: "round", inputLimit: !0, ...g };
1942
1943
  if (["select", "checkbox", "radio"].includes(n.col.component)) {
1943
- const { options: y, ...p } = b;
1944
+ const { options: b, ...p } = g;
1944
1945
  return p;
1945
1946
  }
1946
- return b;
1947
+ return g;
1947
1948
  }), s = w(() => {
1948
- let d = {}, v = {};
1949
- const B = n.col.componentProps;
1950
- typeof B == "function" ? v = B({ row: n.row ?? {}, value: n.value, column: n.col }) : d = B ?? {};
1951
- const b = {};
1952
- for (const [y, p] of Object.entries({ ...d, ...v }))
1953
- if (/^on[A-Za-z]/.test(y) && typeof p == "function") {
1954
- const _ = y[2].toLowerCase() + y.slice(3);
1955
- b[_] = p;
1949
+ let f = {}, v = {};
1950
+ const F = n.col.componentProps;
1951
+ typeof F == "function" ? v = F({ row: n.row ?? {}, value: n.value, column: n.col, action: n.action }) : f = F ?? {};
1952
+ const g = {};
1953
+ for (const [b, p] of Object.entries({ ...f, ...v }))
1954
+ if (/^on[A-Za-z]/.test(b) && typeof p == "function") {
1955
+ const _ = b[2].toLowerCase() + b.slice(3);
1956
+ g[_] = p;
1956
1957
  }
1957
- return b;
1958
+ return g;
1958
1959
  });
1959
- return { __sfc: !0, props: n, emit: e, options: t, cellComp: l, cellBind: a, cellEvents: s, mergedEvents: (d) => {
1960
- const v = s.value[d];
1961
- return {
1962
- ...s.value,
1963
- [d]: (B) => {
1964
- v && v(B), e("update", B);
1965
- }
1966
- };
1960
+ return { __sfc: !0, props: n, emit: e, options: t, cellComp: l, cellBind: a, cellEvents: s, mergedEvents: (...f) => {
1961
+ const v = {};
1962
+ for (const F of f) {
1963
+ const g = s.value[F];
1964
+ v[F] = (b) => {
1965
+ g && g(b), e("update", F === "clear" ? void 0 : b);
1966
+ };
1967
+ }
1968
+ return v;
1967
1969
  }, ApiSelect: Ue, TreeSelect: Je };
1968
1970
  }
1969
1971
  });
1970
1972
  var nn = function() {
1971
1973
  var e = this, n = e._self._c, t = e._self._setupProxy;
1972
- return e.col.component === "select" ? n("el-select", e._g(e._b({ attrs: { value: e.value, placeholder: e.placeholder } }, "el-select", t.cellBind, !1), t.mergedEvents("change")), e._l(t.options, function(l) {
1974
+ return e.col.component === "select" ? n("el-select", e._g(e._b({ attrs: { value: e.value, placeholder: e.placeholder } }, "el-select", t.cellBind, !1), t.mergedEvents("change", "clear")), e._l(t.options, function(l) {
1973
1975
  return n("el-option", { key: String(l.value), attrs: { label: l.label, value: l.value } });
1974
1976
  }), 1) : e.col.component === "checkbox" ? n("el-checkbox-group", e._g(e._b({ attrs: { value: e.value } }, "el-checkbox-group", t.cellBind, !1), t.mergedEvents("change")), e._l(t.options, function(l) {
1975
1977
  return n("el-checkbox", { key: String(l.value), attrs: { label: l.value } }, [e._v(e._s(l.label))]);
@@ -2037,22 +2039,22 @@ const an = on.exports, sn = {
2037
2039
  });
2038
2040
  function a(I, V, j, C) {
2039
2041
  const i = C !== void 0 ? T(V, j, C) : T(V, j), h = I.render({ row: V, value: i, column: I });
2040
- return { isText: d(h), value: h };
2042
+ return { isText: f(h), value: h };
2041
2043
  }
2042
2044
  const s = /* @__PURE__ */ new WeakMap();
2043
- function u(I, V, j, C) {
2045
+ function c(I, V, j, C) {
2044
2046
  s.has(V) || s.set(V, /* @__PURE__ */ new Map());
2045
2047
  const i = s.get(V), h = j.key + (C ? "." + C : "");
2046
2048
  return i.has(h) || i.set(h, a(I, V, j, C)), i.get(h);
2047
2049
  }
2048
- function d(I) {
2050
+ function f(I) {
2049
2051
  return I === null || typeof I in { string: 1, number: 1, boolean: 1, bigint: 1, symbol: 1 };
2050
2052
  }
2051
2053
  const {
2052
2054
  formModelRef: v,
2053
- currentModelValue: B,
2054
- mergedRules: b,
2055
- tableRows: y,
2055
+ currentModelValue: F,
2056
+ mergedRules: g,
2057
+ tableRows: b,
2056
2058
  rowKeyFn: p,
2057
2059
  spanMethodAdapter: _,
2058
2060
  formRef: A,
@@ -2062,7 +2064,7 @@ const an = on.exports, sn = {
2062
2064
  setCellValue: E,
2063
2065
  handleAddRow: N,
2064
2066
  handleRemoveRow: S,
2065
- validate: f,
2067
+ validate: d,
2066
2068
  clearValidate: W
2067
2069
  } = en({
2068
2070
  props: t,
@@ -2070,7 +2072,7 @@ const an = on.exports, sn = {
2070
2072
  emitAddRow: () => n("add-row"),
2071
2073
  emitRemoveRow: (I) => n("remove-row", I)
2072
2074
  });
2073
- function g(I, V, j) {
2075
+ function y(I, V, j) {
2074
2076
  var C;
2075
2077
  (C = t.onRowClick) == null || C.call(t, I, j);
2076
2078
  }
@@ -2090,23 +2092,23 @@ const an = on.exports, sn = {
2090
2092
  ...I,
2091
2093
  _key: I.key || `__col-${V}`
2092
2094
  }))), Y = D(null), Z = {
2093
- validate: f,
2095
+ validate: d,
2094
2096
  clearValidate: W,
2095
2097
  addRow: N,
2096
2098
  removeRow: S,
2097
- getRows: () => [...B.value],
2098
- getRowCount: () => B.value.length,
2099
+ getRows: () => [...F.value],
2100
+ getRowCount: () => F.value.length,
2099
2101
  getTable: () => Y.value,
2100
- getModelValue: () => [...B.value],
2102
+ getModelValue: () => [...F.value],
2101
2103
  setModelValue: (I) => n("update:modelValue", I),
2102
2104
  getFormRef: () => A.value
2103
2105
  };
2104
- return e(Z), n("register", Z), { __sfc: !0, RenderCell: l, execRenderOnce: a, _renderCache: s, getRender: u, isPrimitive: d, props: t, emit: n, formModelRef: v, currentModelValue: B, mergedRules: b, tableRows: y, rowKeyFn: p, spanMethodAdapter: _, formRef: A, slotUpdateHandler: O, getCellProp: P, getCellValue: T, setCellValue: E, handleAddRow: N, handleRemoveRow: S, validate: f, clearValidate: W, handleTableRowClick: g, handleTableRowDblclick: K, handleTableSortChange: q, handleTableExpandChange: Q, flatColumns: J, tableRef: Y, action: Z, CellEditor: an };
2106
+ return e(Z), n("register", Z), { __sfc: !0, RenderCell: l, execRenderOnce: a, _renderCache: s, getRender: c, isPrimitive: f, props: t, emit: n, formModelRef: v, currentModelValue: F, mergedRules: g, tableRows: b, rowKeyFn: p, spanMethodAdapter: _, formRef: A, slotUpdateHandler: O, getCellProp: P, getCellValue: T, setCellValue: E, handleAddRow: N, handleRemoveRow: S, validate: d, clearValidate: W, handleTableRowClick: y, handleTableRowDblclick: K, handleTableSortChange: q, handleTableExpandChange: Q, flatColumns: J, tableRef: Y, action: Z, CellEditor: an };
2105
2107
  }
2106
2108
  });
2107
- var cn = function() {
2109
+ var un = function() {
2108
2110
  var e = this, n = e._self._c, t = e._self._setupProxy;
2109
- return n("div", e._b({ staticClass: "ecp-pro-table-form" }, "div", e.$attrs, !1), [n("el-form", e._b({ ref: "formRef", staticClass: "ecp-pro-table-form__form", attrs: { model: t.formModelRef, rules: t.mergedRules, "validate-on-rule-change": !1, "label-width": e.labelWidth, size: e.formSize, "label-position": e.labelPosition, disabled: e.disabled } }, "el-form", e.formProps, !1), [n("el-table", e._b({ ref: "tableRef", staticClass: "ecp-pro-table-form__table", attrs: { data: t.tableRows, border: e.bordered, stripe: e.stripe, size: e.size, "max-height": e.maxHeight, height: e.height, "row-key": t.rowKeyFn, "row-class-name": e.rowClassName, "default-expand-all": e.defaultExpandAll, "span-method": t.spanMethodAdapter, "header-cell-class-name": "ecp-pro-table-form__header-cell" }, on: { "row-click": t.handleTableRowClick, "row-dblclick": t.handleTableRowDblclick, "sort-change": t.handleTableSortChange, "expand-change": t.handleTableExpandChange } }, "el-table", e.tableProps, !1), [e._l(t.flatColumns, function(l) {
2111
+ return n("div", e._b({ staticClass: "ecp-pro-table-form" }, "div", e.$attrs, !1), [n("el-form", e._b({ ref: "formRef", staticClass: "ecp-pro-table-form__form", attrs: { model: t.formModelRef, rules: t.mergedRules, "label-width": e.labelWidth, size: e.formSize, "label-position": e.labelPosition, disabled: e.disabled } }, "el-form", e.formProps, !1), [n("el-table", e._b({ ref: "tableRef", staticClass: "ecp-pro-table-form__table", attrs: { data: t.tableRows, border: e.bordered, stripe: e.stripe, size: e.size, "max-height": e.maxHeight, height: e.height, "row-key": t.rowKeyFn, "row-class-name": e.rowClassName, "default-expand-all": e.defaultExpandAll, "span-method": t.spanMethodAdapter, "header-cell-class-name": "ecp-pro-table-form__header-cell" }, on: { "row-click": t.handleTableRowClick, "row-dblclick": t.handleTableRowDblclick, "sort-change": t.handleTableSortChange, "expand-change": t.handleTableExpandChange } }, "el-table", e.tableProps, !1), [e._l(t.flatColumns, function(l) {
2110
2112
  return [l.children && l.children.length > 0 ? n("el-table-column", { key: "col-" + l._key, attrs: { label: l.title, "min-width": l.minWidth || l.width || 120, width: l.width, align: l.align || "center", "header-align": l.headerAlign, fixed: l.fixed, "cell-style": l.cellStyle, "header-cell-style": l.headerCellStyle, "cell-class-name": l.cellClassName, "header-cell-class-name": l.headerCellClassName, sortable: l.sortable, resizable: l.resizable !== !1 }, scopedSlots: e._u([{ key: "header", fn: function() {
2111
2113
  return [e._t(`header-${l.key}`, function() {
2112
2114
  return [n("span", { staticClass: "ecp-pro-table-form__th-text" }, [l.required ? n("span", { staticClass: "ecp-pro-table-form__req" }, [e._v("*")]) : e._e(), e._v(e._s(l.title) + " ")])];
@@ -2117,8 +2119,8 @@ var cn = function() {
2117
2119
  return [n("span", { staticClass: "ecp-pro-table-form__th-text" }, [a.required ? n("span", { staticClass: "ecp-pro-table-form__req" }, [e._v("*")]) : e._e(), e._v(e._s(a.title) + " ")])];
2118
2120
  }, { column: a })];
2119
2121
  }, proxy: !0 }, { key: "default", fn: function(s) {
2120
- return [a.render ? [n("el-form-item", { staticClass: "ecp-pro-table-form__cell-item", attrs: { prop: t.getCellProp(s.row, l, a.key), rules: t.mergedRules[t.getCellProp(s.row, l, a.key)] } }, [t.getRender(a, s.row, l, a.key).isText ? [n("span", [e._v(e._s(t.getRender(a, s.row, l, a.key).value))])] : [n(t.RenderCell, { attrs: { "render-fn": a.render, "render-params": { row: s.row, col: l, childKey: a.key } } })]], 2)] : a.component === "slot" && a.slotName ? [n("el-form-item", { staticClass: "ecp-pro-table-form__cell-item", attrs: { prop: t.getCellProp(s.row, l, a.key), rules: t.mergedRules[t.getCellProp(s.row, l, a.key)] } }, [e._t(`cell-${a.slotName}`, null, { column: a, row: s.row, index: s.$index, value: t.getCellValue(s.row, l, a.key), updateValue: t.slotUpdateHandler(s, l, a.key) })], 2)] : n("el-form-item", { staticClass: "ecp-pro-table-form__cell-item", attrs: { prop: t.getCellProp(s.row, l, a.key), rules: t.mergedRules[t.getCellProp(s.row, l, a.key)] } }, [n(t.CellEditor, { attrs: { col: a, value: t.getCellValue(s.row, l, a.key), row: s.row, size: e.size, placeholder: l.placeholder || e.metricPlaceholder }, on: { update: function(u) {
2121
- return t.setCellValue(s.row, l, a.key, u);
2122
+ return [a.render ? [n("el-form-item", { staticClass: "ecp-pro-table-form__cell-item", attrs: { prop: t.getCellProp(s.row, l, a.key), rules: t.mergedRules[t.getCellProp(s.row, l, a.key)] } }, [t.getRender(a, s.row, l, a.key).isText ? [n("span", [e._v(e._s(t.getRender(a, s.row, l, a.key).value))])] : [n(t.RenderCell, { attrs: { "render-fn": a.render, "render-params": { row: s.row, col: l, childKey: a.key } } })]], 2)] : a.component === "slot" && a.slotName ? [n("el-form-item", { staticClass: "ecp-pro-table-form__cell-item", attrs: { prop: t.getCellProp(s.row, l, a.key), rules: t.mergedRules[t.getCellProp(s.row, l, a.key)] } }, [e._t(`cell-${a.slotName}`, null, { column: a, row: s.row, index: s.$index, value: t.getCellValue(s.row, l, a.key), updateValue: t.slotUpdateHandler(s, l, a.key) })], 2)] : n("el-form-item", { staticClass: "ecp-pro-table-form__cell-item", attrs: { prop: t.getCellProp(s.row, l, a.key), rules: t.mergedRules[t.getCellProp(s.row, l, a.key)] } }, [n(t.CellEditor, { attrs: { col: a, value: t.getCellValue(s.row, l, a.key), row: s.row, size: e.size, placeholder: l.placeholder || e.metricPlaceholder, action: t.action }, on: { update: function(c) {
2123
+ return t.setCellValue(s.row, l, a.key, c);
2122
2124
  } } })], 1)];
2123
2125
  } }], null, !0) })];
2124
2126
  })], 2) : l.hideInTable ? e._e() : n("el-table-column", { key: "leaf-" + l._key, attrs: { label: l.title, "min-width": l.minWidth || l.width || 120, width: l.width, align: l.align || "center", "header-align": l.headerAlign, fixed: l.fixed, "cell-style": l.cellStyle, "header-cell-style": l.headerCellStyle, "cell-class-name": l.cellClassName, "header-cell-class-name": l.headerCellClassName, sortable: l.sortable, resizable: l.resizable !== !1 }, scopedSlots: e._u([{ key: "header", fn: function() {
@@ -2126,18 +2128,18 @@ var cn = function() {
2126
2128
  return [n("span", { staticClass: "ecp-pro-table-form__th-text" }, [l.required ? n("span", { staticClass: "ecp-pro-table-form__req" }, [e._v("*")]) : e._e(), e._v(e._s(l.title) + " ")])];
2127
2129
  }, { column: l })];
2128
2130
  }, proxy: !0 }, { key: "default", fn: function(a) {
2129
- return [l.render ? [n("el-form-item", { staticClass: "ecp-pro-table-form__cell-item", attrs: { prop: t.getCellProp(a.row, l), rules: t.mergedRules[t.getCellProp(a.row, l)] } }, [t.getRender(l, a.row, l).isText ? [n("span", [e._v(e._s(t.getRender(l, a.row, l).value))])] : [n(t.RenderCell, { attrs: { "render-fn": l.render, "render-params": { row: a.row, col: l } } })]], 2)] : l.component === "slot" && l.slotName ? [n("el-form-item", { staticClass: "ecp-pro-table-form__cell-item", attrs: { prop: t.getCellProp(a.row, l), rules: t.mergedRules[t.getCellProp(a.row, l)] } }, [e._t(`cell-${l.slotName}`, null, { column: l, row: a.row, index: a.$index, value: t.getCellValue(a.row, l), updateValue: t.slotUpdateHandler(a, l) })], 2)] : n("el-form-item", { staticClass: "ecp-pro-table-form__cell-item", attrs: { prop: t.getCellProp(a.row, l), rules: t.mergedRules[t.getCellProp(a.row, l)] } }, [n(t.CellEditor, { attrs: { col: l, value: t.getCellValue(a.row, l), row: a.row, size: e.size, placeholder: l.placeholder || e.metricPlaceholder }, on: { update: function(s) {
2131
+ return [l.render ? [n("el-form-item", { staticClass: "ecp-pro-table-form__cell-item", attrs: { prop: t.getCellProp(a.row, l), rules: t.mergedRules[t.getCellProp(a.row, l)] } }, [t.getRender(l, a.row, l).isText ? [n("span", [e._v(e._s(t.getRender(l, a.row, l).value))])] : [n(t.RenderCell, { attrs: { "render-fn": l.render, "render-params": { row: a.row, col: l } } })]], 2)] : l.component === "slot" && l.slotName ? [n("el-form-item", { staticClass: "ecp-pro-table-form__cell-item", attrs: { prop: t.getCellProp(a.row, l), rules: t.mergedRules[t.getCellProp(a.row, l)] } }, [e._t(`cell-${l.slotName}`, null, { column: l, row: a.row, index: a.$index, value: t.getCellValue(a.row, l), updateValue: t.slotUpdateHandler(a, l) })], 2)] : n("el-form-item", { staticClass: "ecp-pro-table-form__cell-item", attrs: { prop: t.getCellProp(a.row, l), rules: t.mergedRules[t.getCellProp(a.row, l)] } }, [n(t.CellEditor, { attrs: { col: l, value: t.getCellValue(a.row, l), row: a.row, size: e.size, placeholder: l.placeholder || e.metricPlaceholder, action: t.action }, on: { update: function(s) {
2130
2132
  return t.setCellValue(a.row, l, void 0, s);
2131
2133
  } } })], 1)];
2132
2134
  } }], null, !0) })];
2133
2135
  }), e._t("action", null, { addRow: t.handleAddRow, removeRow: t.handleRemoveRow })], 2)], 1)], 1);
2134
- }, un = [], dn = /* @__PURE__ */ re(
2136
+ }, cn = [], dn = /* @__PURE__ */ re(
2135
2137
  rn,
2136
- cn,
2137
2138
  un,
2139
+ cn,
2138
2140
  !1,
2139
2141
  null,
2140
- "3dfcfb4e",
2142
+ null,
2141
2143
  null,
2142
2144
  null
2143
2145
  );