@aspire-ui/element-component-pro 1.0.8 → 1.0.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- import { reactive as je, defineComponent as oe, h as ue, useSlots as Se, ref as k, computed as S, onMounted as ve, nextTick as Oe, onUnmounted as Fe, watch as J, unref as fe } from "vue";
1
+ import { reactive as je, defineComponent as oe, h as ue, useSlots as Se, ref as k, computed as F, onMounted as me, nextTick as Oe, onUnmounted as Fe, watch as J, unref as fe } from "vue";
2
2
  import { MessageBox as qe } from "element-ui";
3
3
  const we = je({});
4
4
  function Re() {
@@ -54,8 +54,8 @@ const He = /* @__PURE__ */ oe({
54
54
  load: null
55
55
  },
56
56
  emits: ["register", "fetch-success", "fetch-error", "selection-change", "row-click", "row-dblclick", "sort-change", "expand-change"],
57
- setup(i, { expose: e, emit: l }) {
58
- const t = i, n = oe({
57
+ setup(r, { expose: e, emit: l }) {
58
+ const t = r, n = oe({
59
59
  name: "EcpProTableDefaultCellRenderer",
60
60
  props: {
61
61
  column: { type: Object, required: !0 },
@@ -65,14 +65,14 @@ const He = /* @__PURE__ */ oe({
65
65
  },
66
66
  setup(o) {
67
67
  return () => {
68
- var _, P;
68
+ var h, S;
69
69
  const s = o.column;
70
70
  if (s != null && s.customRender) {
71
71
  const E = s.customRender({ text: o.value, record: o.record, index: o.index });
72
72
  return typeof E == "string" || typeof E == "number" ? ue("span", String(E)) : E;
73
73
  }
74
74
  if (s != null && s.valueEnum) {
75
- const E = ((P = (_ = s.valueEnum) == null ? void 0 : _[o.value]) == null ? void 0 : P.text) ?? o.value;
75
+ const E = ((S = (h = s.valueEnum) == null ? void 0 : h[o.value]) == null ? void 0 : S.text) ?? o.value;
76
76
  return ue("span", E == null ? "" : String(E));
77
77
  }
78
78
  return ue("span", o.value == null ? "" : String(o.value));
@@ -91,103 +91,103 @@ const He = /* @__PURE__ */ oe({
91
91
  },
92
92
  setup(o) {
93
93
  return () => {
94
- const s = o.slotRender, _ = s == null ? void 0 : s({ column: o.column, record: o.record, index: o.index, value: o.value });
95
- if (((G) => G == null ? [] : Array.isArray(G) ? G.filter((te) => te != null && te !== !1 && !te.isComment) : [G])(_).length > 0)
96
- return _;
97
- const I = { ...o.column };
98
- return o.customRender && (I.customRender = o.customRender), o.valueEnum && (I.valueEnum = o.valueEnum), ue(n, { props: { column: I, record: o.record, index: o.index, value: o.value } });
94
+ const s = o.slotRender, h = s == null ? void 0 : s({ column: o.column, record: o.record, index: o.index, value: o.value });
95
+ if (((G) => G == null ? [] : Array.isArray(G) ? G.filter((te) => te != null && te !== !1 && !te.isComment) : [G])(h).length > 0)
96
+ return h;
97
+ const O = { ...o.column };
98
+ return o.customRender && (O.customRender = o.customRender), o.valueEnum && (O.valueEnum = o.valueEnum), ue(n, { props: { column: O, record: o.record, index: o.index, value: o.value } });
99
99
  };
100
100
  }
101
- }), a = Se(), f = k(), r = k(), C = k(0), O = k(t.loading ?? !1), v = k([]), m = k({}), d = k([]), B = k({}), y = k([]), D = k(null), z = k({
101
+ }), a = Se(), f = k(), i = k(), g = k(0), z = k(t.loading ?? !1), m = k([]), P = k({}), d = k([]), x = k({}), _ = k([]), D = k(null), I = k({
102
102
  page: 1,
103
103
  pageSize: t.pagination && typeof t.pagination == "object" ? t.pagination.pageSize ?? 10 : 10,
104
104
  pageSizes: t.pagination && typeof t.pagination == "object" ? t.pagination.pageSizes ?? [10, 20, 50, 100] : [10, 20, 50, 100],
105
105
  total: 0
106
- }), { getSetting: g } = Re(), h = S(() => ({ ...g("ProTable"), ...t, ...B.value })), W = S(() => !!h.value.title || !!a.tableTitle || !!a.toolbar), b = S(() => D.value !== null ? D.value : !!t.pagination && typeof t.pagination == "object"), M = S(() => h.value.rowKey || "id"), j = S(() => new Set(y.value.map((o) => o[M.value]))), F = S(
106
+ }), { getSetting: y } = Re(), v = F(() => ({ ...y("ProTable"), ...t, ...x.value })), L = F(() => !!v.value.title || !!a.tableTitle || !!a.toolbar), b = F(() => D.value !== null ? D.value : !!t.pagination && typeof t.pagination == "object"), M = F(() => v.value.rowKey || "id"), j = F(() => new Set(_.value.map((o) => o[M.value]))), R = F(
107
107
  () => d.value.filter((o) => !o.hideInTable && !o.defaultHidden)
108
- ), N = S(() => {
109
- var s, _;
108
+ ), N = F(() => {
109
+ var s, h;
110
110
  let o = 0;
111
- return h.value.rowSelection && (o += Number(h.value.rowSelection.width) || 48), h.value.showIndexColumn && (o += Number((s = h.value.indexColumnProps) == null ? void 0 : s.width) || 60), h.value.actionColumn && (o += Number((_ = h.value.actionColumn) == null ? void 0 : _.width) || 150), o;
112
- }), L = (o) => typeof o == "number" && o > 0, Z = S(() => F.value.filter((s) => Q(s) && L(s.width)).reduce((s, _) => s + (typeof _.width == "number" ? _.width : 0), 0)), ee = S(() => F.value.filter((s) => Q(s) && typeof s.width == "string").reduce((s, _) => s + (Number(q(_)) || 80), 0)), H = (o) => o == null ? null : typeof o == "number" ? o : parseInt(String(o).replace(/px$/i, ""), 10) || null, q = (o) => {
111
+ return v.value.rowSelection && (o += Number(v.value.rowSelection.width) || 48), v.value.showIndexColumn && (o += Number((s = v.value.indexColumnProps) == null ? void 0 : s.width) || 60), v.value.actionColumn && (o += Number((h = v.value.actionColumn) == null ? void 0 : h.width) || 150), o;
112
+ }), W = (o) => typeof o == "number" && o > 0, Z = F(() => R.value.filter((s) => Q(s) && W(s.width)).reduce((s, h) => s + (typeof h.width == "number" ? h.width : 0), 0)), ee = F(() => R.value.filter((s) => Q(s) && typeof s.width == "string").reduce((s, h) => s + (Number(q(h)) || 80), 0)), H = (o) => o == null ? null : typeof o == "number" ? o : parseInt(String(o).replace(/px$/i, ""), 10) || null, q = (o) => {
113
113
  const s = o.width;
114
- if (L(s) && Z.value > 0 && C.value > 0 && typeof s == "number") {
115
- const _ = C.value - N.value - ee.value;
116
- let P = Math.floor(_ * s / Z.value);
117
- const E = H(o.minWidth) ?? 60, I = H(o.maxWidth);
118
- return P = Math.max(E, P), I != null && (P = Math.min(I, P)), P;
114
+ if (W(s) && Z.value > 0 && g.value > 0 && typeof s == "number") {
115
+ const h = g.value - N.value - ee.value;
116
+ let S = Math.floor(h * s / Z.value);
117
+ const E = H(o.minWidth) ?? 60, O = H(o.maxWidth);
118
+ return S = Math.max(E, S), O != null && (S = Math.min(O, S)), S;
119
119
  }
120
120
  if (typeof s == "string") {
121
- const _ = H(s) ?? 80, P = H(o.minWidth), E = H(o.maxWidth);
122
- let I = _;
123
- return P != null && (I = Math.max(P, I)), E != null && (I = Math.min(E, I)), I;
121
+ const h = H(s) ?? 80, S = H(o.minWidth), E = H(o.maxWidth);
122
+ let O = h;
123
+ return S != null && (O = Math.max(S, O)), E != null && (O = Math.min(E, O)), O;
124
124
  }
125
125
  return o.width;
126
- }, Q = (o) => o.ifShow === !1 ? !1 : typeof o.ifShow == "function" ? o.ifShow({ column: o }) : !0, U = S(() => {
126
+ }, Q = (o) => o.ifShow === !1 ? !1 : typeof o.ifShow == "function" ? o.ifShow({ column: o }) : !0, U = F(() => {
127
127
  var s;
128
- const o = (s = h.value.rowSelection) == null ? void 0 : s.getCheckboxProps;
129
- return o ? v.value.filter((_) => {
130
- var P;
131
- return !((P = o(_)) != null && P.disabled);
132
- }) : v.value;
133
- }), Y = S(() => U.value.length > 0), re = S(() => U.value.length === 0 ? !1 : U.value.every((o) => j.value.has(o[M.value]))), p = S(() => {
128
+ const o = (s = v.value.rowSelection) == null ? void 0 : s.getCheckboxProps;
129
+ return o ? m.value.filter((h) => {
130
+ var S;
131
+ return !((S = o(h)) != null && S.disabled);
132
+ }) : m.value;
133
+ }), Y = F(() => U.value.length > 0), re = F(() => U.value.length === 0 ? !1 : U.value.every((o) => j.value.has(o[M.value]))), p = F(() => {
134
134
  const o = U.value.filter((s) => j.value.has(s[M.value])).length;
135
135
  return o > 0 && o < U.value.length;
136
136
  }), $ = (o) => j.value.has(o[M.value]), T = (o) => {
137
- var s, _, P;
138
- return ((P = (_ = (s = h.value.rowSelection) == null ? void 0 : s.getCheckboxProps) == null ? void 0 : _.call(s, o)) == null ? void 0 : P.disabled) ?? !1;
137
+ var s, h, S;
138
+ return ((S = (h = (s = v.value.rowSelection) == null ? void 0 : s.getCheckboxProps) == null ? void 0 : h.call(s, o)) == null ? void 0 : S.disabled) ?? !1;
139
139
  }, V = (o) => {
140
- var s, _, P;
141
- return ((P = (_ = (s = h.value.rowSelection) == null ? void 0 : s.getRadioProps) == null ? void 0 : _.call(s, o)) == null ? void 0 : P.disabled) ?? !1;
140
+ var s, h, S;
141
+ return ((S = (h = (s = v.value.rowSelection) == null ? void 0 : s.getRadioProps) == null ? void 0 : h.call(s, o)) == null ? void 0 : S.disabled) ?? !1;
142
142
  }, K = () => {
143
- const o = y.value.map((s) => s[M.value]);
144
- l("selection-change", { keys: o, rows: y.value });
143
+ const o = _.value.map((s) => s[M.value]);
144
+ l("selection-change", { keys: o, rows: _.value });
145
145
  }, X = (o, s) => {
146
- const _ = o[M.value];
147
- s ? y.value = [...y.value.filter((P) => P[M.value] !== _), o] : y.value = y.value.filter((P) => P[M.value] !== _), K();
146
+ const h = o[M.value];
147
+ s ? _.value = [..._.value.filter((S) => S[M.value] !== h), o] : _.value = _.value.filter((S) => S[M.value] !== h), K();
148
148
  }, ne = (o) => {
149
- y.value = [o], K();
149
+ _.value = [o], K();
150
150
  }, ae = (o) => {
151
151
  if (o) {
152
- const s = new Set(y.value.map((P) => P[M.value])), _ = U.value.filter((P) => !s.has(P[M.value]));
153
- y.value = [...y.value, ..._];
152
+ const s = new Set(_.value.map((S) => S[M.value])), h = U.value.filter((S) => !s.has(S[M.value]));
153
+ _.value = [..._.value, ...h];
154
154
  } else {
155
- const s = new Set(v.value.map((_) => _[M.value]));
156
- y.value = y.value.filter((_) => !s.has(_[M.value]));
155
+ const s = new Set(m.value.map((h) => h[M.value]));
156
+ _.value = _.value.filter((h) => !s.has(h[M.value]));
157
157
  }
158
158
  K();
159
159
  }, le = async (o) => {
160
160
  if (!t.api) {
161
161
  if (t.dataSource)
162
162
  return;
163
- v.value = [];
163
+ m.value = [];
164
164
  return;
165
165
  }
166
- O.value = !0;
166
+ z.value = !0;
167
167
  try {
168
- const s = h.value.fetchSetting ?? {}, _ = s.pageField ?? "page", P = s.sizeField ?? "pageSize", E = s.listField ?? "list", I = s.totalField ?? "total", G = {
169
- [_]: (o == null ? void 0 : o.page) ?? z.value.page,
170
- [P]: (o == null ? void 0 : o.pageSize) ?? z.value.pageSize,
168
+ const s = v.value.fetchSetting ?? {}, h = s.pageField ?? "page", S = s.sizeField ?? "pageSize", E = s.listField ?? "list", O = s.totalField ?? "total", G = {
169
+ [h]: (o == null ? void 0 : o.page) ?? I.value.page,
170
+ [S]: (o == null ? void 0 : o.pageSize) ?? I.value.pageSize,
171
171
  ...t.searchInfo,
172
172
  ...o == null ? void 0 : o.searchInfo
173
173
  };
174
- (o == null ? void 0 : o.page) != null && (z.value.page = o.page), (o == null ? void 0 : o.pageSize) != null && (z.value.pageSize = o.pageSize);
175
- const te = t.beforeFetch ? t.beforeFetch(G) : G, Ce = await t.api(te);
176
- m.value = Ce || {};
177
- const ye = t.afterFetch ? t.afterFetch(Ce) : Ce, Me = ye[E] ?? ye.items ?? ye.list ?? [], Te = ye[I] ?? 0;
178
- v.value = Me, z.value.total = Te, l("fetch-success", { items: Me, total: Te });
174
+ (o == null ? void 0 : o.page) != null && (I.value.page = o.page), (o == null ? void 0 : o.pageSize) != null && (I.value.pageSize = o.pageSize);
175
+ const te = t.beforeFetch ? t.beforeFetch(G) : G, xe = await t.api(te);
176
+ P.value = xe || {};
177
+ const ye = t.afterFetch ? t.afterFetch(xe) : xe, Me = ye[E] ?? ye.items ?? ye.list ?? [], Te = ye[O] ?? 0;
178
+ m.value = Me, I.value.total = Te, l("fetch-success", { items: Me, total: Te });
179
179
  } catch (s) {
180
180
  l("fetch-error", s);
181
181
  } finally {
182
- O.value = !1;
182
+ z.value = !1;
183
183
  }
184
- }, ie = () => le(void 0), me = (o) => {
185
- h.value.clearSelectOnPageChange && (y.value = []), z.value.pageSize = o, z.value.page = 1, le(void 0);
184
+ }, ie = () => le(void 0), ve = (o) => {
185
+ v.value.clearSelectOnPageChange && (_.value = []), I.value.pageSize = o, I.value.page = 1, le(void 0);
186
186
  }, he = (o) => {
187
- h.value.clearSelectOnPageChange && (y.value = []), z.value.page = o, le(void 0);
188
- }, _e = (o, s, _) => l("row-click", o, _), be = (o, s, _) => l("row-dblclick", o, _), ge = ({ prop: o, order: s }) => l("sort-change", { prop: o, order: s }), pe = (o, s) => l("expand-change", o, s), de = (o) => v.value.findIndex((s) => s[M.value] === o), ce = {
187
+ v.value.clearSelectOnPageChange && (_.value = []), I.value.page = o, le(void 0);
188
+ }, _e = (o, s, h) => l("row-click", o, h), be = (o, s, h) => l("row-dblclick", o, h), ge = ({ prop: o, order: s }) => l("sort-change", { prop: o, order: s }), pe = (o, s) => l("expand-change", o, s), de = (o) => m.value.findIndex((s) => s[M.value] === o), ce = {
189
189
  setProps: (o) => {
190
- B.value = { ...B.value, ...o };
190
+ x.value = { ...x.value, ...o };
191
191
  },
192
192
  reload: (o) => le(o),
193
193
  redoHeight: () => {
@@ -195,88 +195,88 @@ const He = /* @__PURE__ */ oe({
195
195
  (s = (o = f.value) == null ? void 0 : o.doLayout) == null || s.call(o);
196
196
  },
197
197
  setLoading: (o) => {
198
- O.value = o;
198
+ z.value = o;
199
199
  },
200
- getDataSource: () => v.value,
201
- getRawDataSource: () => m.value,
200
+ getDataSource: () => m.value,
201
+ getRawDataSource: () => P.value,
202
202
  setTableData: (o) => {
203
- v.value = o ?? [];
203
+ m.value = o ?? [];
204
204
  },
205
205
  getColumns: () => d.value,
206
206
  setColumns: (o) => {
207
207
  if (Array.isArray(o) && o.length > 0 && typeof o[0] == "string") {
208
- const s = o, _ = (t.columns ?? []).filter((E) => s.includes(E.key ?? E.dataIndex)), P = s.map((E) => _.find((I) => (I.key ?? I.dataIndex) === E)).filter(Boolean);
209
- P.length && (d.value = P);
208
+ const s = o, h = (t.columns ?? []).filter((E) => s.includes(E.key ?? E.dataIndex)), S = s.map((E) => h.find((O) => (O.key ?? O.dataIndex) === E)).filter(Boolean);
209
+ S.length && (d.value = S);
210
210
  } else
211
211
  d.value = o ?? [];
212
212
  },
213
213
  setPagination: (o) => {
214
- o != null && o.page && (z.value.page = o.page), o != null && o.pageSize && (z.value.pageSize = o.pageSize), (o == null ? void 0 : o.total) !== void 0 && (z.value.total = o.total);
214
+ o != null && o.page && (I.value.page = o.page), o != null && o.pageSize && (I.value.pageSize = o.pageSize), (o == null ? void 0 : o.total) !== void 0 && (I.value.total = o.total);
215
215
  },
216
- getSelectRowKeys: () => y.value.map((o) => o[M.value]),
217
- getSelectRows: () => y.value,
216
+ getSelectRowKeys: () => _.value.map((o) => o[M.value]),
217
+ getSelectRows: () => _.value,
218
218
  clearSelectedRowKeys: () => {
219
- y.value = [], K();
219
+ _.value = [], K();
220
220
  },
221
221
  setSelectedRowKeys: (o) => {
222
- const s = new Set(o), _ = v.value.filter((P) => s.has(P[M.value]));
223
- o.forEach((P) => {
224
- _.some((E) => E[M.value] === P) || _.push({ [M.value]: P });
225
- }), y.value = _, K();
222
+ const s = new Set(o), h = m.value.filter((S) => s.has(S[M.value]));
223
+ o.forEach((S) => {
224
+ h.some((E) => E[M.value] === S) || h.push({ [M.value]: S });
225
+ }), _.value = h, K();
226
226
  },
227
227
  deleteSelectRowByKey: (o) => {
228
- y.value = y.value.filter((s) => s[M.value] !== o), K();
228
+ _.value = _.value.filter((s) => s[M.value] !== o), K();
229
229
  },
230
- updateTableData: (o, s, _) => {
231
- o < 0 || o >= v.value.length || (v.value = [...v.value], v.value[o] = { ...v.value[o], [s]: _ });
230
+ updateTableData: (o, s, h) => {
231
+ o < 0 || o >= m.value.length || (m.value = [...m.value], m.value[o] = { ...m.value[o], [s]: h });
232
232
  },
233
233
  updateTableDataRecord: (o, s) => {
234
- const _ = de(o);
235
- if (!(_ < 0))
236
- return v.value = [...v.value], v.value[_] = { ...v.value[_], ...s }, v.value[_];
234
+ const h = de(o);
235
+ if (!(h < 0))
236
+ return m.value = [...m.value], m.value[h] = { ...m.value[h], ...s }, m.value[h];
237
237
  },
238
238
  deleteTableDataRecord: (o) => {
239
- const s = Array.isArray(o) ? o : [o], _ = new Set(s);
240
- v.value = v.value.filter((P) => !_.has(P[M.value]));
239
+ const s = Array.isArray(o) ? o : [o], h = new Set(s);
240
+ m.value = m.value.filter((S) => !h.has(S[M.value]));
241
241
  },
242
242
  insertTableDataRecord: (o, s) => {
243
- const _ = [...v.value];
244
- return s == null || s >= _.length ? _.push(o) : _.splice(s, 0, o), v.value = _, o;
243
+ const h = [...m.value];
244
+ return s == null || s >= h.length ? h.push(o) : h.splice(s, 0, o), m.value = h, o;
245
245
  },
246
- getPaginationRef: () => b.value ? { page: z.value.page, pageSize: Number(z.value.pageSize) || 10, total: z.value.total } : !1,
246
+ getPaginationRef: () => b.value ? { page: I.value.page, pageSize: Number(I.value.pageSize) || 10, total: I.value.total } : !1,
247
247
  getShowPagination: () => b.value,
248
248
  setShowPagination: (o) => {
249
249
  D.value = o;
250
250
  },
251
- getRowSelection: () => h.value.rowSelection,
251
+ getRowSelection: () => v.value.rowSelection,
252
252
  expandAll: () => {
253
- var P;
254
- const o = ((P = h.value.treeProps) == null ? void 0 : P.children) ?? "children", s = (E) => {
255
- const I = [];
253
+ var S;
254
+ const o = ((S = v.value.treeProps) == null ? void 0 : S.children) ?? "children", s = (E) => {
255
+ const O = [];
256
256
  return E.forEach((G) => {
257
- I.push(G);
257
+ O.push(G);
258
258
  const te = G[o];
259
- Array.isArray(te) && te.length > 0 && I.push(...s(te));
260
- }), I;
259
+ Array.isArray(te) && te.length > 0 && O.push(...s(te));
260
+ }), O;
261
261
  };
262
- s(v.value).forEach((E) => {
263
- var I, G;
264
- return (G = (I = f.value) == null ? void 0 : I.toggleRowExpansion) == null ? void 0 : G.call(I, E, !0);
262
+ s(m.value).forEach((E) => {
263
+ var O, G;
264
+ return (G = (O = f.value) == null ? void 0 : O.toggleRowExpansion) == null ? void 0 : G.call(O, E, !0);
265
265
  });
266
266
  },
267
267
  collapseAll: () => {
268
- var P;
269
- const o = ((P = h.value.treeProps) == null ? void 0 : P.children) ?? "children", s = (E) => {
270
- const I = [];
268
+ var S;
269
+ const o = ((S = v.value.treeProps) == null ? void 0 : S.children) ?? "children", s = (E) => {
270
+ const O = [];
271
271
  return E.forEach((G) => {
272
- I.push(G);
272
+ O.push(G);
273
273
  const te = G[o];
274
- Array.isArray(te) && te.length > 0 && I.push(...s(te));
275
- }), I;
274
+ Array.isArray(te) && te.length > 0 && O.push(...s(te));
275
+ }), O;
276
276
  };
277
- s(v.value).forEach((E) => {
278
- var I, G;
279
- return (G = (I = f.value) == null ? void 0 : I.toggleRowExpansion) == null ? void 0 : G.call(I, E, !1);
277
+ s(m.value).forEach((E) => {
278
+ var O, G;
279
+ return (G = (O = f.value) == null ? void 0 : O.toggleRowExpansion) == null ? void 0 : G.call(O, E, !1);
280
280
  });
281
281
  }
282
282
  };
@@ -284,82 +284,82 @@ const He = /* @__PURE__ */ oe({
284
284
  const c = () => {
285
285
  d.value = [...t.columns ?? []];
286
286
  }, w = () => {
287
- t.api && h.value.immediate !== !1 ? le(void 0) : t.dataSource && (v.value = [...t.dataSource], !t.api && t.pagination !== !1 && (z.value.total = t.dataSource.length));
288
- }, R = () => {
289
- r.value && (C.value = r.value.offsetWidth || 0);
287
+ t.api && v.value.immediate !== !1 ? le(void 0) : t.dataSource && (m.value = [...t.dataSource], !t.api && t.pagination !== !1 && (I.value.total = t.dataSource.length));
288
+ }, B = () => {
289
+ i.value && (g.value = i.value.offsetWidth || 0);
290
290
  };
291
- let A = null, x = null;
292
- return ve(() => {
293
- c(), l("register", ce), w(), typeof window < "u" && (window.addEventListener("resize", R), A = new ResizeObserver(R), Oe(() => {
294
- R(), x = r.value, x && (A == null || A.observe(x));
291
+ let A = null, C = null;
292
+ return me(() => {
293
+ c(), l("register", ce), w(), typeof window < "u" && (window.addEventListener("resize", B), A = new ResizeObserver(B), Oe(() => {
294
+ B(), C = i.value, C && (A == null || A.observe(C));
295
295
  }));
296
296
  }), Fe(() => {
297
- typeof window < "u" && (window.removeEventListener("resize", R), A && x && (A.unobserve(x), x = null));
297
+ typeof window < "u" && (window.removeEventListener("resize", B), A && C && (A.unobserve(C), C = null));
298
298
  }), J(() => t.columns, c, { deep: !0 }), J(() => t.dataSource, () => {
299
- !t.api && t.dataSource && (v.value = [...t.dataSource]);
299
+ !t.api && t.dataSource && (m.value = [...t.dataSource]);
300
300
  }, { deep: !0 }), J(() => t.loading, (o) => {
301
- O.value = o ?? !1;
302
- }), { __sfc: !0, DefaultCellRenderer: n, BodyCellRenderer: u, props: t, emit: l, slots: a, tableRef: f, tableWrapRef: r, containerWidth: C, loading: O, innerData: v, rawDataSource: m, innerColumns: d, innerProps: B, selectedRows: y, showPaginationRef: D, pagination: z, getComponentSetting: g, effectiveProps: h, showTitleBar: W, showPagination: b, rowKeyField: M, selectedKeysSet: j, displayColumns: F, fixedColumnsWidth: N, isRatioWidth: L, totalRatio: Z, fixedDataColumnsWidth: ee, parseWidthPx: H, getColumnWidth: q, shouldShowColumn: Q, selectableRows: U, hasSelectableRows: Y, isAllCurrentPageSelected: re, isIndeterminate: p, isRowSelected: $, getCheckboxDisabled: T, getRadioDisabled: V, emitSelectionChange: K, handleCheckboxChange: X, handleRadioSelect: ne, handleSelectAll: ae, fetchData: le, handleReload: ie, handleSizeChange: me, handleCurrentChange: he, handleRowClick: _e, handleRowDblclick: be, handleSortChange: ge, handleExpandChange: pe, findRowIndex: de, tableAction: ce, syncColumns: c, loadData: w, updateContainerWidth: R, resizeObserver: A, observedEl: x };
301
+ z.value = o ?? !1;
302
+ }), { __sfc: !0, DefaultCellRenderer: n, BodyCellRenderer: u, props: t, emit: l, slots: a, tableRef: f, tableWrapRef: i, containerWidth: g, loading: z, innerData: m, rawDataSource: P, innerColumns: d, innerProps: x, selectedRows: _, showPaginationRef: D, pagination: I, getComponentSetting: y, effectiveProps: v, showTitleBar: L, showPagination: b, rowKeyField: M, selectedKeysSet: j, displayColumns: R, fixedColumnsWidth: N, isRatioWidth: W, totalRatio: Z, fixedDataColumnsWidth: ee, parseWidthPx: H, getColumnWidth: q, shouldShowColumn: Q, selectableRows: U, hasSelectableRows: Y, isAllCurrentPageSelected: re, isIndeterminate: p, isRowSelected: $, getCheckboxDisabled: T, getRadioDisabled: V, emitSelectionChange: K, handleCheckboxChange: X, handleRadioSelect: ne, handleSelectAll: ae, fetchData: le, handleReload: ie, handleSizeChange: ve, handleCurrentChange: he, handleRowClick: _e, handleRowDblclick: be, handleSortChange: ge, handleExpandChange: pe, findRowIndex: de, tableAction: ce, syncColumns: c, loadData: w, updateContainerWidth: B, resizeObserver: A, observedEl: C };
303
303
  }
304
304
  });
305
- function se(i, e, l, t, n, u, a, f) {
306
- var r = typeof i == "function" ? i.options : i;
307
- e && (r.render = e, r.staticRenderFns = l, r._compiled = !0), t && (r.functional = !0), u && (r._scopeId = "data-v-" + u);
308
- var C;
309
- if (a ? (C = function(m) {
310
- m = m || // cached call
305
+ function se(r, e, l, t, n, u, a, f) {
306
+ var i = typeof r == "function" ? r.options : r;
307
+ e && (i.render = e, i.staticRenderFns = l, i._compiled = !0), t && (i.functional = !0), u && (i._scopeId = "data-v-" + u);
308
+ var g;
309
+ if (a ? (g = function(P) {
310
+ P = P || // cached call
311
311
  this.$vnode && this.$vnode.ssrContext || // stateful
312
- this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext, !m && typeof __VUE_SSR_CONTEXT__ < "u" && (m = __VUE_SSR_CONTEXT__), n && n.call(this, m), m && m._registeredComponents && m._registeredComponents.add(a);
313
- }, r._ssrRegister = C) : n && (C = f ? function() {
312
+ this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext, !P && typeof __VUE_SSR_CONTEXT__ < "u" && (P = __VUE_SSR_CONTEXT__), n && n.call(this, P), P && P._registeredComponents && P._registeredComponents.add(a);
313
+ }, i._ssrRegister = g) : n && (g = f ? function() {
314
314
  n.call(
315
315
  this,
316
- (r.functional ? this.parent : this).$root.$options.shadowRoot
316
+ (i.functional ? this.parent : this).$root.$options.shadowRoot
317
317
  );
318
- } : n), C)
319
- if (r.functional) {
320
- r._injectStyles = C;
321
- var O = r.render;
322
- r.render = function(d, B) {
323
- return C.call(B), O(d, B);
318
+ } : n), g)
319
+ if (i.functional) {
320
+ i._injectStyles = g;
321
+ var z = i.render;
322
+ i.render = function(d, x) {
323
+ return g.call(x), z(d, x);
324
324
  };
325
325
  } else {
326
- var v = r.beforeCreate;
327
- r.beforeCreate = v ? [].concat(v, C) : [C];
326
+ var m = i.beforeCreate;
327
+ i.beforeCreate = m ? [].concat(m, g) : [g];
328
328
  }
329
329
  return {
330
- exports: i,
331
- options: r
330
+ exports: r,
331
+ options: i
332
332
  };
333
333
  }
334
334
  var Ge = function() {
335
335
  var n, u, a, f;
336
336
  var e = this, l = e._self._c, t = e._self._setupProxy;
337
- return l("div", { staticClass: "ecp-pro-table" }, [t.showTitleBar ? l("div", { staticClass: "ecp-pro-table__header" }, [l("div", { staticClass: "ecp-pro-table__title-wrapper" }, [l("span", { staticClass: "ecp-pro-table__title" }, [e._v(e._s(t.effectiveProps.title))]), t.effectiveProps.titleHelpMessage ? l("el-tooltip", { staticClass: "ecp-pro-table__help", attrs: { placement: "top" } }, [l("template", { slot: "content" }, [Array.isArray(t.effectiveProps.titleHelpMessage) ? l("span", e._l(t.effectiveProps.titleHelpMessage, function(r, C) {
338
- return l("div", { key: C }, [e._v(e._s(r))]);
337
+ return l("div", { staticClass: "ecp-pro-table" }, [t.showTitleBar ? l("div", { staticClass: "ecp-pro-table__header" }, [l("div", { staticClass: "ecp-pro-table__title-wrapper" }, [l("span", { staticClass: "ecp-pro-table__title" }, [e._v(e._s(t.effectiveProps.title))]), t.effectiveProps.titleHelpMessage ? l("el-tooltip", { staticClass: "ecp-pro-table__help", attrs: { placement: "top" } }, [l("template", { slot: "content" }, [Array.isArray(t.effectiveProps.titleHelpMessage) ? l("span", e._l(t.effectiveProps.titleHelpMessage, function(i, g) {
338
+ return l("div", { key: g }, [e._v(e._s(i))]);
339
339
  }), 0) : l("span", [e._v(e._s(t.effectiveProps.titleHelpMessage))])]), l("i", { staticClass: "el-icon-question" })], 2) : e._e()], 1), l("div", { staticClass: "ecp-pro-table__toolbar" }, [e._t("tableTitle"), e._t("toolbar"), e._t("toolbar-right", function() {
340
- var r;
341
- return [((r = t.effectiveProps.tableSetting) == null ? void 0 : r.redo) !== !1 ? l("el-button", { attrs: { type: "text", icon: "el-icon-refresh", size: "small" }, on: { click: t.handleReload } }, [e._v(" 刷新 ")]) : e._e()];
342
- })], 2)]) : e._e(), l("div", { directives: [{ name: "loading", rawName: "v-loading", value: t.loading, expression: "loading" }], ref: "tableWrapRef", staticClass: "ecp-pro-table__body" }, [l("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.effectiveProps.spanMethod, "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 ? l("el-table-column", { attrs: { width: t.effectiveProps.rowSelection.width || 48, fixed: t.effectiveProps.rowSelection.fixed, align: "center" }, scopedSlots: e._u([{ key: "header", fn: function(r) {
340
+ var i;
341
+ return [((i = t.effectiveProps.tableSetting) == null ? void 0 : i.redo) !== !1 ? l("el-button", { attrs: { type: "text", icon: "el-icon-refresh", size: "small" }, on: { click: t.handleReload } }, [e._v(" 刷新 ")]) : e._e()];
342
+ })], 2)]) : e._e(), l("div", { directives: [{ name: "loading", rawName: "v-loading", value: t.loading, expression: "loading" }], ref: "tableWrapRef", staticClass: "ecp-pro-table__body" }, [l("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.effectiveProps.spanMethod, "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 ? l("el-table-column", { attrs: { width: t.effectiveProps.rowSelection.width || 48, fixed: t.effectiveProps.rowSelection.fixed, align: "center" }, scopedSlots: e._u([{ key: "header", fn: function(i) {
343
343
  return [t.effectiveProps.rowSelection.type !== "radio" ? l("el-checkbox", { attrs: { value: t.isAllCurrentPageSelected, indeterminate: t.isIndeterminate, disabled: !t.hasSelectableRows }, on: { change: t.handleSelectAll } }) : l("span")];
344
- } }, { key: "default", fn: function(r) {
345
- var C;
346
- return [t.effectiveProps.rowSelection.type !== "radio" ? l("el-checkbox", { attrs: { value: t.isRowSelected(r.row), disabled: t.getCheckboxDisabled(r.row) }, on: { change: (O) => t.handleCheckboxChange(r.row, O) }, nativeOn: { click: function(O) {
347
- O.stopPropagation();
348
- } } }) : l("el-radio", { attrs: { value: (C = t.selectedRows[0]) == null ? void 0 : C[t.rowKeyField], label: r.row[t.rowKeyField], disabled: t.getRadioDisabled(r.row) }, on: { change: function(O) {
349
- return t.handleRadioSelect(r.row);
350
- } }, nativeOn: { click: function(O) {
351
- O.stopPropagation();
344
+ } }, { key: "default", fn: function(i) {
345
+ var g;
346
+ return [t.effectiveProps.rowSelection.type !== "radio" ? l("el-checkbox", { attrs: { value: t.isRowSelected(i.row), disabled: t.getCheckboxDisabled(i.row) }, on: { change: (z) => t.handleCheckboxChange(i.row, z) }, nativeOn: { click: function(z) {
347
+ z.stopPropagation();
348
+ } } }) : l("el-radio", { attrs: { value: (g = t.selectedRows[0]) == null ? void 0 : g[t.rowKeyField], label: i.row[t.rowKeyField], disabled: t.getRadioDisabled(i.row) }, on: { change: function(z) {
349
+ return t.handleRadioSelect(i.row);
350
+ } }, nativeOn: { click: function(z) {
351
+ z.stopPropagation();
352
352
  } } }, [l("span")])];
353
- } }], null, !1, 983730649) }) : e._e(), t.effectiveProps.showIndexColumn ? l("el-table-column", { attrs: { type: "index", label: ((n = t.effectiveProps.indexColumnProps) == null ? void 0 : n.title) || "序号", width: ((u = t.effectiveProps.indexColumnProps) == null ? void 0 : u.width) || 60, fixed: (a = t.effectiveProps.indexColumnProps) == null ? void 0 : a.fixed, align: ((f = t.effectiveProps.indexColumnProps) == null ? void 0 : f.align) || "center" } }) : e._e(), e._l(t.displayColumns, function(r) {
354
- return [t.shouldShowColumn(r) ? l("el-table-column", { key: r.dataIndex || r.key || r.title, attrs: { prop: r.dataIndex, label: r.title, width: t.getColumnWidth(r), "min-width": t.isRatioWidth(r.width) ? void 0 : r.minWidth, fixed: r.fixed, align: r.align || "left", sortable: r.sortable, formatter: r.formatter, "show-overflow-tooltip": r.ellipsis !== !1 && t.effectiveProps.ellipsis !== !1 }, scopedSlots: e._u([{ key: "header", fn: function(C) {
355
- return [r.dataIndex && e.$scopedSlots[`header-${r.dataIndex}`] ? e._t(`header-${r.dataIndex}`, null, { column: r }) : e.$scopedSlots.headerCell ? e._t("headerCell", null, { column: r }) : [l("span", [e._v(e._s(r.title))]), r.helpMessage ? l("el-tooltip", { staticClass: "ecp-pro-table__col-help", attrs: { placement: "top", effect: "dark" } }, [l("template", { slot: "content" }, [Array.isArray(r.helpMessage) ? l("span", e._l(r.helpMessage, function(O, v) {
356
- return l("div", { key: v }, [e._v(e._s(O))]);
357
- }), 0) : l("span", [e._v(e._s(r.helpMessage))])]), l("i", { staticClass: "el-icon-question" })], 2) : e._e()]];
358
- } }, { key: "default", fn: function(C) {
359
- return [r.dataIndex && e.$scopedSlots[r.dataIndex] ? e._t(r.dataIndex, null, { row: C.row, column: r, index: C.$index, value: C.row[r.dataIndex] }) : e.$scopedSlots.bodyCell ? l(t.BodyCellRenderer, { attrs: { "slot-render": e.$scopedSlots.bodyCell, column: r, record: C.row, index: C.$index, value: C.row[r.dataIndex], "custom-render": r.customRender, "value-enum": r.valueEnum } }) : l(t.DefaultCellRenderer, { attrs: { column: r, record: C.row, index: C.$index, value: C.row[r.dataIndex] } })];
353
+ } }], null, !1, 983730649) }) : e._e(), t.effectiveProps.showIndexColumn ? l("el-table-column", { attrs: { type: "index", label: ((n = t.effectiveProps.indexColumnProps) == null ? void 0 : n.title) || "序号", width: ((u = t.effectiveProps.indexColumnProps) == null ? void 0 : u.width) || 60, fixed: (a = t.effectiveProps.indexColumnProps) == null ? void 0 : a.fixed, align: ((f = t.effectiveProps.indexColumnProps) == null ? void 0 : f.align) || "center" } }) : e._e(), e._l(t.displayColumns, function(i) {
354
+ return [t.shouldShowColumn(i) ? l("el-table-column", { key: i.dataIndex || i.key || i.title, attrs: { prop: i.dataIndex, label: i.title, width: t.getColumnWidth(i), "min-width": t.isRatioWidth(i.width) ? void 0 : i.minWidth, fixed: i.fixed, align: i.align || "left", sortable: i.sortable, formatter: i.formatter, "show-overflow-tooltip": i.ellipsis !== !1 && t.effectiveProps.ellipsis !== !1 }, scopedSlots: e._u([{ key: "header", fn: function(g) {
355
+ return [i.dataIndex && e.$scopedSlots[`header-${i.dataIndex}`] ? e._t(`header-${i.dataIndex}`, null, { column: i }) : e.$scopedSlots.headerCell ? e._t("headerCell", null, { column: i }) : [l("span", [e._v(e._s(i.title))]), i.helpMessage ? l("el-tooltip", { staticClass: "ecp-pro-table__col-help", attrs: { placement: "top", effect: "dark" } }, [l("template", { slot: "content" }, [Array.isArray(i.helpMessage) ? l("span", e._l(i.helpMessage, function(z, m) {
356
+ return l("div", { key: m }, [e._v(e._s(z))]);
357
+ }), 0) : l("span", [e._v(e._s(i.helpMessage))])]), l("i", { staticClass: "el-icon-question" })], 2) : e._e()]];
358
+ } }, { key: "default", fn: function(g) {
359
+ return [i.dataIndex && e.$scopedSlots[i.dataIndex] ? e._t(i.dataIndex, null, { row: g.row, column: i, index: g.$index, value: g.row[i.dataIndex] }) : e.$scopedSlots.bodyCell ? l(t.BodyCellRenderer, { attrs: { "slot-render": e.$scopedSlots.bodyCell, column: i, record: g.row, index: g.$index, value: g.row[i.dataIndex], "custom-render": i.customRender, "value-enum": i.valueEnum } }) : l(t.DefaultCellRenderer, { attrs: { column: i, record: g.row, index: g.$index, value: g.row[i.dataIndex] } })];
360
360
  } }], null, !0) }) : e._e()];
361
- }), t.effectiveProps.actionColumn ? l("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(r) {
362
- return [e.$scopedSlots.action ? e._t("action", null, { record: r.row, column: t.effectiveProps.actionColumn, index: r.$index }) : e.$scopedSlots.bodyCell ? l(t.BodyCellRenderer, { attrs: { "slot-render": e.$scopedSlots.bodyCell, column: t.effectiveProps.actionColumn, record: r.row, index: r.$index, value: void 0, "custom-render": t.effectiveProps.actionColumn.customRender, "value-enum": t.effectiveProps.actionColumn.valueEnum } }) : e._e()];
361
+ }), t.effectiveProps.actionColumn ? l("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(i) {
362
+ return [e.$scopedSlots.action ? e._t("action", null, { record: i.row, column: t.effectiveProps.actionColumn, index: i.$index }) : e.$scopedSlots.bodyCell ? l(t.BodyCellRenderer, { attrs: { "slot-render": e.$scopedSlots.bodyCell, column: t.effectiveProps.actionColumn, record: i.row, index: i.$index, value: void 0, "custom-render": t.effectiveProps.actionColumn.customRender, "value-enum": t.effectiveProps.actionColumn.valueEnum } }) : e._e()];
363
363
  } }], null, !0) }) : e._e()], 2)], 1), t.showPagination ? l("div", { staticClass: "ecp-pro-table__pagination" }, [l("el-pagination", e._b({ attrs: { "current-page": t.pagination.page, "page-sizes": t.pagination.pageSizes, "page-size": t.pagination.pageSize, total: t.pagination.total, 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()]);
364
364
  }, Ue = [], Je = /* @__PURE__ */ se(
365
365
  He,
@@ -371,24 +371,24 @@ var Ge = function() {
371
371
  null,
372
372
  null
373
373
  );
374
- const Ee = Je.exports, ke = (i) => Array.isArray(i) ? i.length > 0 : i != null && String(i).trim() !== "", De = (i) => Array.isArray(i) ? i.map((e) => String(e)).join(", ") : i == null ? "" : typeof i == "object" ? JSON.stringify(i) : String(i), Be = (i, e) => {
375
- if (!i)
374
+ const Ee = Je.exports, De = (r) => Array.isArray(r) ? r.length > 0 : r != null && String(r).trim() !== "", ke = (r) => Array.isArray(r) ? r.map((e) => String(e)).join(", ") : r == null ? "" : typeof r == "object" ? JSON.stringify(r) : String(r), Be = (r, e) => {
375
+ if (!r)
376
376
  return null;
377
- if (i === !0)
377
+ if (r === !0)
378
378
  return {
379
- content: De(e),
379
+ content: ke(e),
380
380
  placement: "top",
381
381
  effect: "dark",
382
- disabled: !ke(e)
382
+ disabled: !De(e)
383
383
  };
384
- if (typeof i == "string")
384
+ if (typeof r == "string")
385
385
  return {
386
- content: i,
386
+ content: r,
387
387
  placement: "top",
388
388
  effect: "dark"
389
389
  };
390
- const l = { ...i };
391
- return Object.prototype.hasOwnProperty.call(l, "content") || (l.content = De(e)), Object.prototype.hasOwnProperty.call(l, "placement") || (l.placement = "top"), Object.prototype.hasOwnProperty.call(l, "effect") || (l.effect = "dark"), Object.prototype.hasOwnProperty.call(l, "disabled") || (l.disabled = !ke(l.content)), l;
390
+ const l = { ...r };
391
+ return Object.prototype.hasOwnProperty.call(l, "content") || (l.content = ke(e)), Object.prototype.hasOwnProperty.call(l, "placement") || (l.placement = "top"), Object.prototype.hasOwnProperty.call(l, "effect") || (l.effect = "dark"), Object.prototype.hasOwnProperty.call(l, "disabled") || (l.disabled = !De(l.content)), l;
392
392
  }, Xe = /* @__PURE__ */ oe({
393
393
  __name: "TableAction",
394
394
  props: {
@@ -396,43 +396,43 @@ const Ee = Je.exports, ke = (i) => Array.isArray(i) ? i.length > 0 : i != null &
396
396
  dropDownActions: { default: () => [] },
397
397
  stopButtonPropagation: { type: Boolean, default: !1 }
398
398
  },
399
- setup(i) {
400
- const e = i, l = (d) => Be(d) || {}, t = (d) => d.type ? d.type : d.color === "error" ? "danger" : d.color === "success" ? "success" : d.color === "warning" ? "warning" : "text", n = (d) => d.filter((B) => {
401
- const { ifShow: y } = B;
402
- return typeof y == "boolean" ? y : typeof y == "function" ? y(B) : !0;
403
- }), u = S(() => n(e.actions || [])), a = S(() => n(e.dropDownActions || [])), f = (d, B) => {
404
- var y;
405
- e.stopButtonPropagation && B.stopPropagation(), (y = d.onClick) == null || y.call(d, B);
406
- }, r = (d, B) => {
407
- f(d, B);
408
- }, C = (d, B, y) => {
409
- var D, z, g, h;
410
- e.stopButtonPropagation && y.stopPropagation(), d.popConfirm && (B === "confirm" ? (z = (D = d.popConfirm).confirm) == null || z.call(D) : (h = (g = d.popConfirm).cancel) == null || h.call(g));
399
+ setup(r) {
400
+ const e = r, l = (d) => Be(d) || {}, t = (d) => d.type ? d.type : d.color === "error" ? "danger" : d.color === "success" ? "success" : d.color === "warning" ? "warning" : "text", n = (d) => d.filter((x) => {
401
+ const { ifShow: _ } = x;
402
+ return typeof _ == "boolean" ? _ : typeof _ == "function" ? _(x) : !0;
403
+ }), u = F(() => n(e.actions || [])), a = F(() => n(e.dropDownActions || [])), f = (d, x) => {
404
+ var _;
405
+ e.stopButtonPropagation && x.stopPropagation(), (_ = d.onClick) == null || _.call(d, x);
406
+ }, i = (d, x) => {
407
+ f(d, x);
408
+ }, g = (d, x, _) => {
409
+ var D, I, y, v;
410
+ e.stopButtonPropagation && _.stopPropagation(), d.popConfirm && (x === "confirm" ? (I = (D = d.popConfirm).confirm) == null || I.call(D) : (v = (y = d.popConfirm).cancel) == null || v.call(y));
411
411
  };
412
- return { __sfc: !0, props: e, normalizeTooltip: l, getButtonType: t, filterVisible: n, visibleActions: u, visibleDropDownActions: a, handleClick: f, handleActionClick: r, handlePopConfirm: C, handlePopConfirmConfirm: (d, B) => {
413
- C(d, "confirm", B);
414
- }, handlePopConfirmCancel: (d, B) => {
415
- C(d, "cancel", B);
412
+ return { __sfc: !0, props: e, normalizeTooltip: l, getButtonType: t, filterVisible: n, visibleActions: u, visibleDropDownActions: a, handleClick: f, handleActionClick: i, handlePopConfirm: g, handlePopConfirmConfirm: (d, x) => {
413
+ g(d, "confirm", x);
414
+ }, handlePopConfirmCancel: (d, x) => {
415
+ g(d, "cancel", x);
416
416
  }, handleDropdownCommand: (d) => {
417
417
  var D;
418
- const B = Number(d), y = a.value[B];
419
- if (!(!y || y.disabled)) {
420
- if (y.popConfirm) {
421
- const z = y.popConfirm.title, g = y.popConfirm.okText || "确定", h = y.popConfirm.cancelText || "取消";
422
- qe.confirm(z, "提示", {
423
- confirmButtonText: g,
424
- cancelButtonText: h,
418
+ const x = Number(d), _ = a.value[x];
419
+ if (!(!_ || _.disabled)) {
420
+ if (_.popConfirm) {
421
+ const I = _.popConfirm.title, y = _.popConfirm.okText || "确定", v = _.popConfirm.cancelText || "取消";
422
+ qe.confirm(I, "提示", {
423
+ confirmButtonText: y,
424
+ cancelButtonText: v,
425
425
  type: "warning"
426
426
  }).then(() => {
427
- var W, b;
428
- return (b = (W = y.popConfirm) == null ? void 0 : W.confirm) == null ? void 0 : b.call(W);
427
+ var L, b;
428
+ return (b = (L = _.popConfirm) == null ? void 0 : L.confirm) == null ? void 0 : b.call(L);
429
429
  }).catch(() => {
430
- var W, b;
431
- return (b = (W = y.popConfirm) == null ? void 0 : W.cancel) == null ? void 0 : b.call(W);
430
+ var L, b;
431
+ return (b = (L = _.popConfirm) == null ? void 0 : L.cancel) == null ? void 0 : b.call(L);
432
432
  });
433
433
  return;
434
434
  }
435
- (D = y.onClick) == null || D.call(y, {});
435
+ (D = _.onClick) == null || D.call(_, {});
436
436
  }
437
437
  } };
438
438
  }
@@ -463,8 +463,8 @@ var Ze = function() {
463
463
  null
464
464
  );
465
465
  const Ne = Ye.exports;
466
- function Ot(i) {
467
- const e = k(null), l = () => i ? fe(i) : void 0, t = () => {
466
+ function Nt(r) {
467
+ const e = k(null), l = () => r ? fe(r) : void 0, t = () => {
468
468
  const a = fe(e);
469
469
  if (!a)
470
470
  throw new Error("ProTable instance has not been registered");
@@ -474,7 +474,7 @@ function Ot(i) {
474
474
  const f = l();
475
475
  f && Object.keys(f).length > 0 && a.setProps(f);
476
476
  };
477
- return i && J(
477
+ return r && J(
478
478
  () => l(),
479
479
  (a) => {
480
480
  a && e.value && e.value.setProps(a);
@@ -496,7 +496,7 @@ function Ot(i) {
496
496
  clearSelectedRowKeys: () => t().clearSelectedRowKeys(),
497
497
  setSelectedRowKeys: (a) => t().setSelectedRowKeys(a),
498
498
  deleteSelectRowByKey: (a) => t().deleteSelectRowByKey(a),
499
- updateTableData: (a, f, r) => t().updateTableData(a, f, r),
499
+ updateTableData: (a, f, i) => t().updateTableData(a, f, i),
500
500
  updateTableDataRecord: (a, f) => t().updateTableDataRecord(a, f),
501
501
  deleteTableDataRecord: (a) => t().deleteTableDataRecord(a),
502
502
  insertTableDataRecord: (a, f) => t().insertTableDataRecord(a, f),
@@ -530,19 +530,19 @@ const et = /* @__PURE__ */ oe({
530
530
  multiple: { type: Boolean }
531
531
  },
532
532
  emits: ["input"],
533
- setup(i) {
534
- const e = i, l = k(!1), t = k([]), n = (a) => {
533
+ setup(r) {
534
+ const e = r, l = k(!1), t = k([]), n = (a) => {
535
535
  e.lazy && a && u();
536
536
  }, u = async () => {
537
537
  if (e.api) {
538
538
  l.value = !0;
539
539
  try {
540
- const a = await e.api(e.params), f = Array.isArray(a) ? a : (a == null ? void 0 : a.list) ?? (a == null ? void 0 : a.data) ?? [], r = e.labelField ?? "label", C = e.valueField ?? "value";
541
- t.value = f.map((O) => {
542
- const v = O;
540
+ const a = await e.api(e.params), f = Array.isArray(a) ? a : (a == null ? void 0 : a.list) ?? (a == null ? void 0 : a.data) ?? [], i = e.labelField ?? "label", g = e.valueField ?? "value";
541
+ t.value = f.map((z) => {
542
+ const m = z;
543
543
  return {
544
- label: String(v[r] ?? v.label ?? ""),
545
- value: v[C] ?? v.value
544
+ label: String(m[i] ?? m.label ?? ""),
545
+ value: m[g] ?? m.value
546
546
  };
547
547
  });
548
548
  } finally {
@@ -550,7 +550,7 @@ const et = /* @__PURE__ */ oe({
550
550
  }
551
551
  }
552
552
  };
553
- return ve(() => {
553
+ return me(() => {
554
554
  e.lazy || u();
555
555
  }), J(
556
556
  () => e.api,
@@ -581,8 +581,8 @@ var tt = function() {
581
581
  null
582
582
  );
583
583
  const nt = ot.exports;
584
- function $e(i) {
585
- const e = i.trim();
584
+ function $e(r) {
585
+ const e = r.trim();
586
586
  if (!e)
587
587
  return "";
588
588
  let l = 0, t = "";
@@ -598,28 +598,48 @@ function $e(i) {
598
598
  }
599
599
  return t;
600
600
  }
601
- function xe(i) {
602
- return i.replace(/,/g, "").trim();
601
+ function Pe(r) {
602
+ return r.replace(/,/g, "").trim();
603
+ }
604
+ function at(r, e, l) {
605
+ if (!r || r === "-")
606
+ return r;
607
+ const t = r[0] === "-";
608
+ let n = t ? r.slice(1) : r;
609
+ const u = n.indexOf(".");
610
+ if (u === -1) {
611
+ const z = Math.max(0, e);
612
+ return n = z > 0 ? n.slice(0, z) : n, t ? "-" + n : n;
613
+ }
614
+ let a = n.slice(0, u);
615
+ e > 0 && (a = a.slice(0, e));
616
+ const f = n.slice(u + 1), i = f === "" && n.endsWith(".");
617
+ if (l <= 0)
618
+ return t ? "-" + a : a;
619
+ if (i)
620
+ return (t ? "-" : "") + a + ".";
621
+ const g = f.slice(0, l);
622
+ return (t ? "-" : "") + a + "." + g;
603
623
  }
604
- function at(i, e) {
605
- const l = Math.pow(10, i) - 1;
624
+ function st(r, e) {
625
+ const l = Math.pow(10, r) - 1;
606
626
  return e <= 0 ? l : l + (1 - Math.pow(10, -e));
607
627
  }
608
- function ze(i, e, l) {
609
- const t = at(e, l), n = i < 0 ? -1 : 1;
610
- return Math.abs(i) <= t ? i : n * t;
628
+ function ze(r, e, l) {
629
+ const t = st(e, l), n = r < 0 ? -1 : 1;
630
+ return Math.abs(r) <= t ? r : n * t;
611
631
  }
612
- function st(i, e, l) {
632
+ function rt(r, e, l) {
613
633
  if (e <= 0)
614
634
  switch (l) {
615
635
  case "floor":
616
- return Math.floor(i);
636
+ return Math.floor(r);
617
637
  case "ceil":
618
- return Math.ceil(i);
638
+ return Math.ceil(r);
619
639
  default:
620
- return Math.round(i);
640
+ return Math.round(r);
621
641
  }
622
- const t = Math.pow(10, e), n = i * t;
642
+ const t = Math.pow(10, e), n = r * t;
623
643
  let u;
624
644
  switch (l) {
625
645
  case "floor":
@@ -633,23 +653,26 @@ function st(i, e, l) {
633
653
  }
634
654
  return u / t;
635
655
  }
636
- function Pe(i, e, l, t) {
637
- let n = ze(i, e, l);
638
- return n = st(n, l, t), n = ze(n, e, l), n;
656
+ function Ce(r, e, l, t) {
657
+ let n = ze(r, e, l);
658
+ return n = rt(n, l, t), n = ze(n, e, l), n;
639
659
  }
640
- function Ie(i, e) {
641
- if (Number.isNaN(i) || !Number.isFinite(i))
660
+ function it(r, e) {
661
+ return Number.isNaN(r) || !Number.isFinite(r) ? "" : r.toFixed(Math.max(0, e));
662
+ }
663
+ function Ie(r, e) {
664
+ if (Number.isNaN(r) || !Number.isFinite(r))
642
665
  return "";
643
- const l = i.toFixed(Math.max(0, e)), t = l.startsWith("-"), n = t ? l.slice(1) : l, [u, a] = n.split("."), f = u.replace(/\B(?=(\d{3})+(?!\d))/g, ",");
666
+ const l = r.toFixed(Math.max(0, e)), t = l.startsWith("-"), n = t ? l.slice(1) : l, [u, a] = n.split("."), f = u.replace(/\B(?=(\d{3})+(?!\d))/g, ",");
644
667
  return e <= 0 || a === void 0 ? (t ? "-" : "") + f : (t ? "-" : "") + f + "." + a;
645
668
  }
646
- function rt(i, e) {
647
- if (Number.isNaN(i) || !Number.isFinite(i))
669
+ function ct(r, e) {
670
+ if (Number.isNaN(r) || !Number.isFinite(r))
648
671
  return "";
649
- let l = i.toFixed(Math.max(0, e));
672
+ let l = r.toFixed(Math.max(0, e));
650
673
  return l = l.replace(/(\.\d*?)0+$/, "$1"), l = l.replace(/\.$/, ""), l;
651
674
  }
652
- const it = /* @__PURE__ */ oe({
675
+ const ut = /* @__PURE__ */ oe({
653
676
  __name: "FormattedNumberInput",
654
677
  props: {
655
678
  value: null,
@@ -657,91 +680,98 @@ const it = /* @__PURE__ */ oe({
657
680
  disabled: { type: Boolean },
658
681
  integerDigits: { default: 5 },
659
682
  decimalPlaces: { default: 6 },
660
- rounding: { default: "round" }
683
+ rounding: { default: "round" },
684
+ inputLimit: { type: Boolean, default: !0 }
661
685
  },
662
686
  emits: ["input"],
663
- setup(i, { emit: e }) {
664
- const l = i, t = k(!1), n = k(""), u = () => Math.max(0, Math.floor(l.integerDigits ?? 5)), a = () => Math.max(0, Math.floor(l.decimalPlaces ?? 6));
665
- function f(m) {
666
- if (m == null || m === "")
687
+ setup(r, { emit: e }) {
688
+ const l = r, t = k(!1), n = k(""), u = () => Math.max(0, Math.floor(l.integerDigits ?? 5)), a = () => Math.max(0, Math.floor(l.decimalPlaces ?? 6));
689
+ function f(d) {
690
+ if (d == null || d === "")
667
691
  return null;
668
- if (typeof m == "number")
669
- return Number.isFinite(m) ? m : null;
670
- const d = xe(String(m));
671
- if (d === "" || d === "-")
692
+ if (typeof d == "number")
693
+ return Number.isFinite(d) ? d : null;
694
+ const x = Pe(String(d));
695
+ if (x === "" || x === "-")
672
696
  return null;
673
- const B = Number(d);
674
- return Number.isFinite(B) ? B : null;
697
+ const _ = Number(x);
698
+ return Number.isFinite(_) ? _ : null;
675
699
  }
676
- function r() {
700
+ function i() {
677
701
  if (t.value)
678
702
  return;
679
- const m = f(l.value);
680
- if (m === null) {
703
+ const d = f(l.value);
704
+ if (d === null) {
681
705
  n.value = "";
682
706
  return;
683
707
  }
684
708
  n.value = Ie(
685
- Pe(m, u(), a(), l.rounding),
709
+ Ce(d, u(), a(), l.rounding),
686
710
  a()
687
711
  );
688
712
  }
689
713
  J(
690
714
  () => [l.value, l.integerDigits, l.decimalPlaces, l.rounding],
691
- () => r(),
715
+ () => i(),
692
716
  { immediate: !0, deep: !0 }
693
717
  );
694
- function C(m) {
695
- const d = $e(m);
696
- if (n.value = d, d === "" || d === "-")
718
+ function g(d) {
719
+ e("input", it(d, a()));
720
+ }
721
+ function z(d) {
722
+ let x = $e(d);
723
+ if (l.inputLimit !== !1 && (x = at(x, u(), a())), n.value = x, x === "" || x === "-")
697
724
  return;
698
- const B = Number(d);
699
- Number.isFinite(B) && e("input", B);
725
+ const _ = Number(x);
726
+ if (!Number.isFinite(_))
727
+ return;
728
+ const D = Ce(_, u(), a(), l.rounding);
729
+ g(D);
700
730
  }
701
- function O() {
731
+ function m() {
702
732
  t.value = !0;
703
- const m = xe(n.value), d = f(m === "" ? l.value : m);
704
- if (d === null) {
733
+ const d = Pe(n.value), x = f(d === "" ? l.value : d);
734
+ if (x === null) {
705
735
  n.value = "";
706
736
  return;
707
737
  }
708
- n.value = rt(
709
- Pe(d, u(), a(), l.rounding),
738
+ n.value = ct(
739
+ Ce(x, u(), a(), l.rounding),
710
740
  a()
711
741
  );
712
742
  }
713
- function v() {
743
+ function P() {
714
744
  t.value = !1;
715
- const m = xe(n.value);
716
- if (m === "" || m === "-") {
745
+ const d = Pe(n.value);
746
+ if (d === "" || d === "-") {
717
747
  n.value = "", e("input", void 0);
718
748
  return;
719
749
  }
720
- const d = Number($e(m));
721
- if (!Number.isFinite(d)) {
750
+ const x = Number($e(d));
751
+ if (!Number.isFinite(x)) {
722
752
  n.value = "", e("input", void 0);
723
753
  return;
724
754
  }
725
- const B = Pe(d, u(), a(), l.rounding);
726
- n.value = Ie(B, a()), e("input", B);
755
+ const _ = Ce(x, u(), a(), l.rounding);
756
+ n.value = Ie(_, a()), g(_);
727
757
  }
728
- return { __sfc: !0, props: l, emit: e, focused: t, displayText: n, intN: u, decM: a, parseExternalToNumber: f, syncDisplayFromValue: r, onInput: C, onFocus: O, onBlur: v };
758
+ return { __sfc: !0, props: l, emit: e, focused: t, displayText: n, intN: u, decM: a, parseExternalToNumber: f, syncDisplayFromValue: i, emitStoredValue: g, onInput: z, onFocus: m, onBlur: P };
729
759
  }
730
760
  });
731
- var ct = function() {
761
+ var dt = function() {
732
762
  var e = this, l = e._self._c, t = e._self._setupProxy;
733
763
  return l("el-input", e._b({ attrs: { value: t.displayText, placeholder: e.placeholder, disabled: e.disabled }, on: { input: t.onInput, focus: t.onFocus, blur: t.onBlur } }, "el-input", e.$attrs, !1));
734
- }, ut = [], dt = /* @__PURE__ */ se(
735
- it,
736
- ct,
764
+ }, ft = [], pt = /* @__PURE__ */ se(
737
765
  ut,
766
+ dt,
767
+ ft,
738
768
  !1,
739
769
  null,
740
770
  null,
741
771
  null,
742
772
  null
743
773
  );
744
- const Ae = dt.exports, ft = /* @__PURE__ */ oe({
774
+ const Ae = pt.exports, mt = /* @__PURE__ */ oe({
745
775
  __name: "TreeSelect",
746
776
  props: {
747
777
  value: null,
@@ -758,107 +788,107 @@ const Ae = dt.exports, ft = /* @__PURE__ */ oe({
758
788
  clearable: { type: Boolean }
759
789
  },
760
790
  emits: ["input"],
761
- setup(i, { emit: e }) {
762
- const l = i, t = k(), n = k(), u = k(!1), a = k(!1), f = k(""), r = k([]), C = k({}), O = S(() => ({
791
+ setup(r, { emit: e }) {
792
+ const l = r, t = k(), n = k(), u = k(!1), a = k(!1), f = k(""), i = k([]), g = k({}), z = F(() => ({
763
793
  label: l.labelField,
764
794
  children: l.childrenField
765
795
  }));
766
- function v(F) {
767
- const N = l.labelField ?? "label", L = l.valueField ?? "value", Z = l.childrenField ?? "children", ee = F[Z], H = {};
768
- return H[l.labelField ?? "label"] = F[N] ?? F.label, H[l.valueField ?? "value"] = F[L] ?? F.value, Array.isArray(ee) && ee.length && (H[l.childrenField ?? "children"] = ee.map((q) => v(q))), H;
796
+ function m(R) {
797
+ const N = l.labelField ?? "label", W = l.valueField ?? "value", Z = l.childrenField ?? "children", ee = R[Z], H = {};
798
+ return H[l.labelField ?? "label"] = R[N] ?? R.label, H[l.valueField ?? "value"] = R[W] ?? R.value, Array.isArray(ee) && ee.length && (H[l.childrenField ?? "children"] = ee.map((q) => m(q))), H;
769
799
  }
770
- function m(F, N = "") {
771
- const L = {}, Z = l.labelField ?? "label", ee = l.valueField ?? "value", H = l.childrenField ?? "children";
772
- for (const q of F) {
800
+ function P(R, N = "") {
801
+ const W = {}, Z = l.labelField ?? "label", ee = l.valueField ?? "value", H = l.childrenField ?? "children";
802
+ for (const q of R) {
773
803
  const Q = String(q[Z] ?? q.label ?? ""), U = q[ee] ?? q.value;
774
- U != null && (L[String(U)] = N ? N + " / " + Q : Q);
804
+ U != null && (W[String(U)] = N ? N + " / " + Q : Q);
775
805
  const Y = q[H] ?? q.children;
776
- Array.isArray(Y) && Y.length && Object.assign(L, m(Y, Q));
806
+ Array.isArray(Y) && Y.length && Object.assign(W, P(Y, Q));
777
807
  }
778
- return L;
808
+ return W;
779
809
  }
780
810
  function d() {
781
- const F = l.treeData;
782
- return Array.isArray(F) && F.length > 0;
811
+ const R = l.treeData;
812
+ return Array.isArray(R) && R.length > 0;
783
813
  }
784
- function B(F) {
785
- r.value = F, C.value = m(F);
814
+ function x(R) {
815
+ i.value = R, g.value = P(R);
786
816
  }
787
- function y() {
788
- const F = l.treeData;
789
- if (!Array.isArray(F) || F.length === 0)
817
+ function _() {
818
+ const R = l.treeData;
819
+ if (!Array.isArray(R) || R.length === 0)
790
820
  return;
791
- const N = F.map((L) => v(L));
792
- B(N);
821
+ const N = R.map((W) => m(W));
822
+ x(N);
793
823
  }
794
- const D = S(() => l.value == null || l.value === "" ? "" : C.value[String(l.value)] ?? String(l.value)), z = (F, N) => {
795
- if (!F)
824
+ const D = F(() => l.value == null || l.value === "" ? "" : g.value[String(l.value)] ?? String(l.value)), I = (R, N) => {
825
+ if (!R)
796
826
  return !0;
797
- const L = l.labelField ?? "label";
798
- return String(N[L] ?? N.label ?? "").toLowerCase().includes(F.toLowerCase());
827
+ const W = l.labelField ?? "label";
828
+ return String(N[W] ?? N.label ?? "").toLowerCase().includes(R.toLowerCase());
799
829
  };
800
- J(f, (F) => {
830
+ J(f, (R) => {
801
831
  var N;
802
- (N = n.value) == null || N.filter(F);
832
+ (N = n.value) == null || N.filter(R);
803
833
  });
804
- let g = null;
805
- function h() {
834
+ let y = null;
835
+ function v() {
806
836
  l.disabled || (u.value = !0, l.lazy && !d() && j(), Oe(() => {
807
- g = (F) => {
808
- t.value && !t.value.contains(F.target) && W();
809
- }, document.addEventListener("click", g);
837
+ y = (R) => {
838
+ t.value && !t.value.contains(R.target) && L();
839
+ }, document.addEventListener("click", y);
810
840
  }));
811
841
  }
812
- function W() {
813
- u.value = !1, f.value = "", g && (document.removeEventListener("click", g), g = null);
842
+ function L() {
843
+ u.value = !1, f.value = "", y && (document.removeEventListener("click", y), y = null);
814
844
  }
815
845
  function b() {
816
846
  e("input", void 0);
817
847
  }
818
- function M(F) {
819
- const N = l.valueField ?? "value", L = F[N] ?? F.value;
820
- e("input", L), W();
848
+ function M(R) {
849
+ const N = l.valueField ?? "value", W = R[N] ?? R.value;
850
+ e("input", W), L();
821
851
  }
822
852
  async function j() {
823
853
  if (!(!l.api || d())) {
824
854
  a.value = !0;
825
855
  try {
826
- const F = await l.api(l.params), N = Array.isArray(F) ? F : (F == null ? void 0 : F.list) ?? (F == null ? void 0 : F.data) ?? [];
827
- r.value = N.map((L) => v(L)), C.value = m(r.value);
856
+ const R = await l.api(l.params), N = Array.isArray(R) ? R : (R == null ? void 0 : R.list) ?? (R == null ? void 0 : R.data) ?? [];
857
+ i.value = N.map((W) => m(W)), g.value = P(i.value);
828
858
  } finally {
829
859
  a.value = !1;
830
860
  }
831
861
  }
832
862
  }
833
- return ve(() => {
834
- d() ? y() : l.lazy || j();
863
+ return me(() => {
864
+ d() ? _() : l.lazy || j();
835
865
  }), J(() => l.treeData, () => {
836
- d() ? y() : (r.value = [], C.value = {}, !l.lazy && l.api && j());
866
+ d() ? _() : (i.value = [], g.value = {}, !l.lazy && l.api && j());
837
867
  }, { deep: !0 }), J(() => l.api, () => {
838
- d() || (l.lazy ? (r.value = [], C.value = {}) : j());
868
+ d() || (l.lazy ? (i.value = [], g.value = {}) : j());
839
869
  }, { deep: !0 }), J(() => l.params, () => {
840
- d() || (l.lazy ? (r.value = [], C.value = {}) : j());
841
- }, { deep: !0 }), { __sfc: !0, props: l, emit: e, rootRef: t, treeRef: n, dropdownVisible: u, loading: a, filterText: f, treeData: r, flatLabelMap: C, treeProps: O, normalizeNode: v, buildFlatLabelMap: m, hasTreeDataProp: d, applyTreeData: B, syncFromTreeDataProp: y, displayText: D, filterNodeMethod: z, clickOutsideHandler: g, openDropdown: h, closeDropdown: W, clearValue: b, onNodeClick: M, fetchData: j };
870
+ d() || (l.lazy ? (i.value = [], g.value = {}) : j());
871
+ }, { deep: !0 }), { __sfc: !0, props: l, emit: e, rootRef: t, treeRef: n, dropdownVisible: u, loading: a, filterText: f, treeData: i, flatLabelMap: g, treeProps: z, normalizeNode: m, buildFlatLabelMap: P, hasTreeDataProp: d, applyTreeData: x, syncFromTreeDataProp: _, displayText: D, filterNodeMethod: I, clickOutsideHandler: y, openDropdown: v, closeDropdown: L, clearValue: b, onNodeClick: M, fetchData: j };
842
872
  }
843
873
  });
844
- var pt = function() {
874
+ var vt = function() {
845
875
  var e = this, l = e._self._c, t = e._self._setupProxy;
846
876
  return l("div", { ref: "rootRef", staticClass: "ecp-tree-select" }, [l("el-input", { staticClass: "ecp-tree-select__input", attrs: { value: t.displayText, placeholder: e.placeholder, disabled: e.disabled, clearable: e.clearable, readonly: "", "suffix-icon": "el-icon-arrow-down" }, on: { focus: t.openDropdown, clear: t.clearValue } }), l("transition", { attrs: { name: "el-zoom-in-top" } }, [l("div", { directives: [{ name: "show", rawName: "v-show", value: t.dropdownVisible, expression: "dropdownVisible" }], staticClass: "ecp-tree-select__dropdown" }, [e.filterable ? l("div", { staticClass: "ecp-tree-select__filter-inner" }, [l("el-input", { attrs: { size: "small", placeholder: "搜索节点", "prefix-icon": "el-icon-search", clearable: "" }, nativeOn: { click: function(n) {
847
877
  n.stopPropagation();
848
878
  } }, model: { value: t.filterText, callback: function(n) {
849
879
  t.filterText = n;
850
880
  }, expression: "filterText" } })], 1) : e._e(), l("el-tree", { directives: [{ name: "show", rawName: "v-show", value: !t.loading, expression: "!loading" }], ref: "treeRef", attrs: { data: t.treeData, props: t.treeProps, "node-key": e.valueField, "filter-node-method": e.filterable ? t.filterNodeMethod : void 0, "highlight-current": !0, "default-expand-all": "" }, on: { "node-click": t.onNodeClick } }), t.loading ? l("div", { staticClass: "ecp-tree-select__loading" }, [l("i", { staticClass: "el-icon-loading" }), e._v(" 加载中... ")]) : e._e()], 1)])], 1);
851
- }, vt = [], mt = /* @__PURE__ */ se(
852
- ft,
853
- pt,
881
+ }, ht = [], _t = /* @__PURE__ */ se(
882
+ mt,
854
883
  vt,
884
+ ht,
855
885
  !1,
856
886
  null,
857
887
  "f30bba11",
858
888
  null,
859
889
  null
860
890
  );
861
- const ht = mt.exports, _t = /* @__PURE__ */ oe({
891
+ const bt = _t.exports, gt = /* @__PURE__ */ oe({
862
892
  __name: "ProFormItem",
863
893
  props: {
864
894
  schema: null,
@@ -870,8 +900,8 @@ const ht = mt.exports, _t = /* @__PURE__ */ oe({
870
900
  onFieldChange: null,
871
901
  customComponents: null
872
902
  },
873
- setup(i) {
874
- const e = i, l = /* @__PURE__ */ new Set([
903
+ setup(r) {
904
+ const e = r, l = /* @__PURE__ */ new Set([
875
905
  "input",
876
906
  "select",
877
907
  "api-select",
@@ -884,56 +914,56 @@ const ht = mt.exports, _t = /* @__PURE__ */ oe({
884
914
  "cascader",
885
915
  "checkbox",
886
916
  "radio"
887
- ]), t = Se(), n = S(() => ({
917
+ ]), t = Se(), n = F(() => ({
888
918
  schema: e.schema,
889
919
  values: e.formModel,
890
920
  model: e.formModel,
891
921
  field: e.schema.field
892
- })), u = S(() => {
922
+ })), u = F(() => {
893
923
  const b = e.schema.ifShow;
894
924
  return b === void 0 ? !0 : typeof b == "boolean" ? b : b(n.value);
895
- }), a = S(() => {
925
+ }), a = F(() => {
896
926
  const b = e.schema.show;
897
927
  return b === void 0 ? !0 : typeof b == "boolean" ? b : b(n.value);
898
- }), f = S(() => {
928
+ }), f = F(() => {
899
929
  if (e.formDisabled)
900
930
  return !0;
901
931
  const b = e.schema.dynamicDisabled;
902
932
  return b === void 0 ? !1 : typeof b == "boolean" ? b : b(n.value);
903
- }), r = S(() => {
933
+ }), i = F(() => {
904
934
  const b = e.schema.dynamicRules;
905
935
  return b ? Array.isArray(b) ? b : b(n.value) : e.schema.rules;
906
- }), C = S(() => {
936
+ }), g = F(() => {
907
937
  const b = e.schema.componentProps;
908
938
  if (!b)
909
939
  return { props: {}, listeners: {} };
910
940
  const M = typeof b == "function" ? b({
911
941
  ...n.value,
912
942
  formActionType: e.formActionType
913
- }) : { ...b }, j = {}, F = {};
914
- for (const [N, L] of Object.entries(M))
915
- if (N.length > 2 && /^on[A-Za-z]/.test(N) && typeof L == "function") {
943
+ }) : { ...b }, j = {}, R = {};
944
+ for (const [N, W] of Object.entries(M))
945
+ if (N.length > 2 && /^on[A-Za-z]/.test(N) && typeof W == "function") {
916
946
  const Z = N.slice(2).charAt(0).toLowerCase() + N.slice(3);
917
- F[Z] = L;
947
+ R[Z] = W;
918
948
  } else
919
- j[N] = L;
920
- return { props: j, listeners: F };
921
- }), O = S(() => C.value.props), v = S(() => C.value.listeners), m = S(() => e.schema.colon ?? e.colon ?? !1), d = S(() => {
949
+ j[N] = W;
950
+ return { props: j, listeners: R };
951
+ }), z = F(() => g.value.props), m = F(() => g.value.listeners), P = F(() => e.schema.colon ?? e.colon ?? !1), d = F(() => {
922
952
  const b = e.schema.tooltip;
923
953
  if (!b)
924
954
  return null;
925
955
  const M = typeof b == "function" ? b(n.value) : b;
926
956
  return Be(M, e.formModel[e.schema.field]);
927
- }), B = S(() => d.value ? "el-tooltip" : "span"), y = S(() => d.value || {}), D = S(() => !!t.default), z = (b) => {
957
+ }), x = F(() => d.value ? "el-tooltip" : "span"), _ = F(() => d.value || {}), D = F(() => !!t.default), I = (b) => {
928
958
  const M = b == null ? void 0 : b.options;
929
959
  return Array.isArray(M) ? M : void 0;
930
- }, g = S(() => {
960
+ }, y = F(() => {
931
961
  const b = e.schema.component;
932
962
  return b == null ? null : typeof b == "string" ? l.has(b) ? null : e.customComponents && e.customComponents[b] || b : b;
933
- }), h = (b) => {
963
+ }), v = (b) => {
934
964
  var M;
935
965
  (M = e.onFieldChange) == null || M.call(e, e.schema.field, b);
936
- }, W = S(() => {
966
+ }, L = F(() => {
937
967
  const b = e.schema.render;
938
968
  return b ? {
939
969
  render() {
@@ -942,10 +972,10 @@ const ht = mt.exports, _t = /* @__PURE__ */ oe({
942
972
  }
943
973
  } : null;
944
974
  });
945
- return { __sfc: !0, BUILT_IN_COMPONENTS: l, props: e, slots: t, renderParams: n, shouldRender: u, shouldShow: a, effectiveDisabled: f, effectiveRules: r, effectiveComponentPropsAndListeners: C, effectiveComponentProps: O, effectiveComponentListeners: v, showColon: m, normalizedTooltip: d, fieldWrapperComponent: B, fieldWrapperProps: y, hasSlot: D, getOptions: z, resolvedCustomComponent: g, setFieldValue: h, renderComponent: W, ApiSelect: nt, FormattedNumberInput: Ae, TreeSelect: ht };
975
+ return { __sfc: !0, BUILT_IN_COMPONENTS: l, props: e, slots: t, renderParams: n, shouldRender: u, shouldShow: a, effectiveDisabled: f, effectiveRules: i, effectiveComponentPropsAndListeners: g, effectiveComponentProps: z, effectiveComponentListeners: m, showColon: P, normalizedTooltip: d, fieldWrapperComponent: x, fieldWrapperProps: _, hasSlot: D, getOptions: I, resolvedCustomComponent: y, setFieldValue: v, renderComponent: L, ApiSelect: nt, FormattedNumberInput: Ae, TreeSelect: bt };
946
976
  }
947
977
  });
948
- var bt = function() {
978
+ var yt = function() {
949
979
  var e = this, l = e._self._c, t = e._self._setupProxy;
950
980
  return t.shouldRender ? l("el-form-item", { directives: [{ name: "show", rawName: "v-show", value: t.shouldShow, expression: "shouldShow" }], attrs: { prop: e.schema.field, required: e.schema.required, rules: t.effectiveRules, "label-width": e.schema.labelWidth } }, [l("template", { slot: "label" }, [l("span", [e._v(" " + e._s(e.schema.label)), t.showColon ? l("span", { staticClass: "ecp-pro-form-item__colon" }, [e._v(":")]) : e._e()]), e.schema.helpMessage ? l("el-tooltip", e._b({ attrs: { placement: "top", effect: "light" } }, "el-tooltip", e.schema.helpComponentProps || {}, !1), [l("template", { slot: "content" }, [Array.isArray(e.schema.helpMessage) ? e._l(e.schema.helpMessage, function(n, u) {
951
981
  return l("div", { key: u, staticClass: "ecp-pro-form-item__help-item" }, [e._v(" " + e._s(n) + " ")]);
@@ -974,17 +1004,17 @@ var bt = function() {
974
1004
  }, expression: "formModel[schema.field]" } }, "el-radio-group", t.effectiveComponentProps, !1), t.effectiveComponentListeners), e._l(t.getOptions(t.effectiveComponentProps) || [], function(n) {
975
1005
  return l("el-radio", { key: String(n.value), attrs: { label: n.value } }, [e._v(" " + e._s(n.label) + " ")]);
976
1006
  }), 1) : e._e()], 1)]], 2) : e._e();
977
- }, gt = [], yt = /* @__PURE__ */ se(
978
- _t,
979
- bt,
1007
+ }, wt = [], Ct = /* @__PURE__ */ se(
980
1008
  gt,
1009
+ yt,
1010
+ wt,
981
1011
  !1,
982
1012
  null,
983
1013
  "d3466c67",
984
1014
  null,
985
1015
  null
986
1016
  );
987
- const Ve = yt.exports, wt = /* @__PURE__ */ oe({
1017
+ const Ve = Ct.exports, xt = /* @__PURE__ */ oe({
988
1018
  __name: "FormActions",
989
1019
  props: {
990
1020
  showActionButtonGroup: { type: Boolean, default: !0 },
@@ -1001,28 +1031,28 @@ const Ve = yt.exports, wt = /* @__PURE__ */ oe({
1001
1031
  actionColOptions: null
1002
1032
  },
1003
1033
  emits: ["submit", "reset", "toggle"],
1004
- setup(i) {
1034
+ setup(r) {
1005
1035
  return { __sfc: !0 };
1006
1036
  }
1007
1037
  });
1008
- var Ct = function() {
1038
+ var Pt = function() {
1009
1039
  var e = this, l = e._self._c;
1010
1040
  return e._self._setupProxy, l("div", { staticClass: "ecp-form-actions" }, [e._t("submitBefore"), e.showSubmitButton ? l("el-button", { attrs: { type: "primary", icon: e.submitButtonIcon, loading: e.submitLoading }, on: { click: function(t) {
1011
1041
  return e.$emit("submit");
1012
1042
  } } }, [e._v(" " + e._s(e.submitButtonText) + " ")]) : e._e(), e._t("resetBefore"), e.showResetButton ? l("el-button", { attrs: { icon: e.resetButtonIcon }, on: { click: function(t) {
1013
1043
  return e.$emit("reset");
1014
1044
  } } }, [e._v(" " + e._s(e.resetButtonText) + " ")]) : e._e(), e._t("actions")], 2);
1015
- }, xt = [], Pt = /* @__PURE__ */ se(
1016
- wt,
1017
- Ct,
1045
+ }, St = [], Ft = /* @__PURE__ */ se(
1018
1046
  xt,
1047
+ Pt,
1048
+ St,
1019
1049
  !1,
1020
1050
  null,
1021
1051
  "489c88d2",
1022
1052
  null,
1023
1053
  null
1024
1054
  );
1025
- const We = Pt.exports, St = /* @__PURE__ */ oe({
1055
+ const Le = Ft.exports, Rt = /* @__PURE__ */ oe({
1026
1056
  __name: "ProForm",
1027
1057
  props: {
1028
1058
  schemas: null,
@@ -1055,85 +1085,85 @@ const We = Pt.exports, St = /* @__PURE__ */ oe({
1055
1085
  components: null
1056
1086
  },
1057
1087
  emits: ["submit", "reset", "register", "update:modelValue"],
1058
- setup(i, { expose: e, emit: l }) {
1059
- const t = i, n = Se(), u = k(), a = k(), f = k(!1), r = k(!0), C = k({}), O = k({}), v = k([]), m = k({}), d = { xl: 1920, lg: 1200, md: 992, sm: 768 }, B = (c, w, R) => {
1060
- const A = R ?? (typeof window < "u" ? window.innerWidth : 1920), x = c ?? {}, o = w ?? {}, s = o.span ?? 8;
1061
- return A >= d.xl ? x.xl ?? o.xl ?? x.lg ?? o.lg ?? x.md ?? o.md ?? x.sm ?? o.sm ?? x.xs ?? o.xs ?? x.span ?? s : A >= d.lg ? x.lg ?? o.lg ?? x.md ?? o.md ?? x.sm ?? o.sm ?? x.xs ?? o.xs ?? x.span ?? s : A >= d.md ? x.md ?? o.md ?? x.sm ?? o.sm ?? x.xs ?? o.xs ?? x.span ?? s : A >= d.sm ? x.sm ?? o.sm ?? x.xs ?? o.xs ?? x.span ?? s : x.xs ?? o.xs ?? x.span ?? s;
1062
- }, { getSetting: y } = Re(), D = S(() => ({ ...y("ProForm"), ...t, ...m.value })), z = S(() => D.value.modelValue), g = S(() => z.value !== void 0), h = S(() => g.value ? z.value ?? {} : C.value), W = S(() => ({
1063
- ...y("ProForm").components ?? {},
1088
+ setup(r, { expose: e, emit: l }) {
1089
+ const t = r, n = Se(), u = k(), a = k(), f = k(!1), i = k(!0), g = k({}), z = k({}), m = k([]), P = k({}), d = { xl: 1920, lg: 1200, md: 992, sm: 768 }, x = (c, w, B) => {
1090
+ const A = B ?? (typeof window < "u" ? window.innerWidth : 1920), C = c ?? {}, o = w ?? {}, s = o.span ?? 8;
1091
+ return A >= d.xl ? C.xl ?? o.xl ?? C.lg ?? o.lg ?? C.md ?? o.md ?? C.sm ?? o.sm ?? C.xs ?? o.xs ?? C.span ?? s : A >= d.lg ? C.lg ?? o.lg ?? C.md ?? o.md ?? C.sm ?? o.sm ?? C.xs ?? o.xs ?? C.span ?? s : A >= d.md ? C.md ?? o.md ?? C.sm ?? o.sm ?? C.xs ?? o.xs ?? C.span ?? s : A >= d.sm ? C.sm ?? o.sm ?? C.xs ?? o.xs ?? C.span ?? s : C.xs ?? o.xs ?? C.span ?? s;
1092
+ }, { getSetting: _ } = Re(), D = F(() => ({ ..._("ProForm"), ...t, ...P.value })), I = F(() => D.value.modelValue), y = F(() => I.value !== void 0), v = F(() => y.value ? I.value ?? {} : g.value), L = F(() => ({
1093
+ ..._("ProForm").components ?? {},
1064
1094
  ...D.value.components ?? {},
1065
- ...m.value.components ?? {}
1066
- })), b = S(() => D.value.actionColOptions ?? { span: 24 }), M = k(typeof window < "u" ? window.innerWidth : 1920), j = (c, w, R, A) => {
1067
- let x = 24, o = 1, s = 0;
1068
- for (const _ of c) {
1069
- const P = B(_.colProps, w, A);
1070
- if (P > x) {
1071
- if (o++, o > R)
1095
+ ...P.value.components ?? {}
1096
+ })), b = F(() => D.value.actionColOptions ?? { span: 24 }), M = k(typeof window < "u" ? window.innerWidth : 1920), j = (c, w, B, A) => {
1097
+ let C = 24, o = 1, s = 0;
1098
+ for (const h of c) {
1099
+ const S = x(h.colProps, w, A);
1100
+ if (S > C) {
1101
+ if (o++, o > B)
1072
1102
  break;
1073
- x = 24 - P;
1103
+ C = 24 - S;
1074
1104
  } else
1075
- x -= P;
1105
+ C -= S;
1076
1106
  s++;
1077
1107
  }
1078
1108
  return s;
1079
- }, F = S(() => {
1080
- const c = v.value.filter((x) => Z(x));
1109
+ }, R = F(() => {
1110
+ const c = m.value.filter((C) => Z(C));
1081
1111
  if (!D.value.showAdvancedButton)
1082
1112
  return !1;
1083
- const w = D.value.alwaysShowLines ?? 1, R = D.value.baseColProps, A = j(c, R, w, M.value);
1113
+ const w = D.value.alwaysShowLines ?? 1, B = D.value.baseColProps, A = j(c, B, w, M.value);
1084
1114
  return c.length > A;
1085
- }), N = S(() => D.value.formListeners ?? {}), L = S(() => {
1086
- const c = v.value.filter((x) => Z(x));
1087
- if (!D.value.showAdvancedButton || !r.value)
1115
+ }), N = F(() => D.value.formListeners ?? {}), W = F(() => {
1116
+ const c = m.value.filter((C) => Z(C));
1117
+ if (!D.value.showAdvancedButton || !i.value)
1088
1118
  return c;
1089
- const w = D.value.alwaysShowLines ?? 1, R = D.value.baseColProps, A = j(c, R, w, M.value);
1119
+ const w = D.value.alwaysShowLines ?? 1, B = D.value.baseColProps, A = j(c, B, w, M.value);
1090
1120
  return c.slice(0, A);
1091
1121
  }), Z = (c) => {
1092
- let w = !0, R = !0;
1093
- return typeof c.ifShow == "function" && (w = c.ifShow({ schema: c, values: h.value, model: h.value, field: c.field })), typeof c.ifShow == "boolean" && (w = c.ifShow), typeof c.show == "function" && (R = c.show({ schema: c, values: h.value, model: h.value, field: c.field })), typeof c.show == "boolean" && (R = c.show), w && R;
1122
+ let w = !0, B = !0;
1123
+ return typeof c.ifShow == "function" && (w = c.ifShow({ schema: c, values: v.value, model: v.value, field: c.field })), typeof c.ifShow == "boolean" && (w = c.ifShow), typeof c.show == "function" && (B = c.show({ schema: c, values: v.value, model: v.value, field: c.field })), typeof c.show == "boolean" && (B = c.show), w && B;
1094
1124
  }, ee = (c) => c.colProps ?? D.value.baseColProps ?? {}, H = (c) => c.slot || c.field, q = (c, w = !0) => {
1095
- const R = w ? { ...c ?? {} } : {}, A = D.value.initialValues ?? t.initialValues;
1096
- return v.value.forEach((x) => {
1097
- if (!(w && Object.prototype.hasOwnProperty.call(R, x.field))) {
1098
- if (x.defaultValue !== void 0) {
1099
- R[x.field] = x.defaultValue;
1125
+ const B = w ? { ...c ?? {} } : {}, A = D.value.initialValues ?? t.initialValues;
1126
+ return m.value.forEach((C) => {
1127
+ if (!(w && Object.prototype.hasOwnProperty.call(B, C.field))) {
1128
+ if (C.defaultValue !== void 0) {
1129
+ B[C.field] = C.defaultValue;
1100
1130
  return;
1101
1131
  }
1102
- A && Object.prototype.hasOwnProperty.call(A, x.field) && (R[x.field] = A[x.field]);
1132
+ A && Object.prototype.hasOwnProperty.call(A, C.field) && (B[C.field] = A[C.field]);
1103
1133
  }
1104
- }), R;
1134
+ }), B;
1105
1135
  }, Q = (c, w = !0) => {
1106
- C.value = c, w && l("update:modelValue", c);
1136
+ g.value = c, w && l("update:modelValue", c);
1107
1137
  }, U = (c) => {
1108
- const w = q({ ...h.value, ...c });
1138
+ const w = q({ ...v.value, ...c });
1109
1139
  return Q(w), w;
1110
1140
  }, Y = () => {
1111
1141
  const c = {};
1112
- v.value.forEach((w) => {
1113
- var R;
1114
- (R = w.rules) != null && R.length && (c[w.field] = w.rules);
1115
- }), Q(q(h.value), !1), O.value = c;
1142
+ m.value.forEach((w) => {
1143
+ var B;
1144
+ (B = w.rules) != null && B.length && (c[w.field] = w.rules);
1145
+ }), Q(q(v.value), !1), z.value = c;
1116
1146
  }, re = (c) => {
1117
1147
  const w = { ...c };
1118
- return v.value.forEach((R) => {
1119
- const A = R.ifShow;
1148
+ return m.value.forEach((B) => {
1149
+ const A = B.ifShow;
1120
1150
  if (A === void 0)
1121
1151
  return;
1122
- (typeof A == "boolean" ? A : A({ schema: R, values: c, model: c, field: R.field })) || delete w[R.field];
1152
+ (typeof A == "boolean" ? A : A({ schema: B, values: c, model: c, field: B.field })) || delete w[B.field];
1123
1153
  }), w;
1124
1154
  }, p = (c) => {
1125
- const w = re(c), R = m.value.fieldMapToTime;
1126
- if (!(R != null && R.length))
1155
+ const w = re(c), B = P.value.fieldMapToTime;
1156
+ if (!(B != null && B.length))
1127
1157
  return w;
1128
1158
  const A = { ...w };
1129
- return R.forEach(([x, [o, s]]) => {
1130
- const _ = A[x];
1131
- Array.isArray(_) && _.length === 2 && (delete A[x], A[o] = _[0], A[s] = _[1]);
1159
+ return B.forEach(([C, [o, s]]) => {
1160
+ const h = A[C];
1161
+ Array.isArray(h) && h.length === 2 && (delete A[C], A[o] = h[0], A[s] = h[1]);
1132
1162
  }), A;
1133
1163
  }, $ = async () => {
1134
1164
  var c;
1135
1165
  try {
1136
- await ((c = u.value) == null ? void 0 : c.validate()), D.value.submitFunc ? await D.value.submitFunc() : (f.value = !0, l("submit", p({ ...h.value })));
1166
+ await ((c = u.value) == null ? void 0 : c.validate()), D.value.submitFunc ? await D.value.submitFunc() : (f.value = !0, l("submit", p({ ...v.value })));
1137
1167
  } catch (w) {
1138
1168
  console.error("Form validation failed:", w);
1139
1169
  } finally {
@@ -1142,7 +1172,7 @@ const We = Pt.exports, St = /* @__PURE__ */ oe({
1142
1172
  }, T = async () => {
1143
1173
  var c;
1144
1174
  D.value.resetFunc ? await D.value.resetFunc() : ((c = u.value) == null || c.resetFields(), Y(), l("reset"), D.value.submitOnReset && await $());
1145
- }, V = (c) => (U(c), Promise.resolve()), K = () => p({ ...h.value }), X = async () => {
1175
+ }, V = (c) => (U(c), Promise.resolve()), K = () => p({ ...v.value }), X = async () => {
1146
1176
  var c;
1147
1177
  (c = u.value) == null || c.resetFields(), Q(q(void 0, !1));
1148
1178
  }, ne = (c, w) => {
@@ -1150,34 +1180,34 @@ const We = Pt.exports, St = /* @__PURE__ */ oe({
1150
1180
  }, ae = (c) => {
1151
1181
  var w;
1152
1182
  return ((w = u.value) == null ? void 0 : w.validate(c)) ?? Promise.resolve();
1153
- }, le = (c) => u.value ? c != null && c.length ? Promise.all(c.map((w) => new Promise((R, A) => {
1154
- u.value.validateField(w, (x) => x ? R(void 0) : A(new Error("Validation failed")));
1183
+ }, le = (c) => u.value ? c != null && c.length ? Promise.all(c.map((w) => new Promise((B, A) => {
1184
+ u.value.validateField(w, (C) => C ? B(void 0) : A(new Error("Validation failed")));
1155
1185
  }))) : u.value.validate() : Promise.resolve(), ie = async (c, w) => {
1156
1186
  var A;
1157
- const R = (A = a.value) == null ? void 0 : A.querySelector(`[data-field="${c}"]`);
1158
- return R && R.scrollIntoView({ behavior: (w == null ? void 0 : w.behavior) ?? "smooth", block: (w == null ? void 0 : w.block) ?? "nearest" }), Promise.resolve();
1159
- }, me = (c) => {
1187
+ const B = (A = a.value) == null ? void 0 : A.querySelector(`[data-field="${c}"]`);
1188
+ return B && B.scrollIntoView({ behavior: (w == null ? void 0 : w.behavior) ?? "smooth", block: (w == null ? void 0 : w.block) ?? "nearest" }), Promise.resolve();
1189
+ }, ve = (c) => {
1160
1190
  var w;
1161
1191
  (w = u.value) == null || w.clearValidate(c);
1162
1192
  }, he = async (c) => {
1163
- (Array.isArray(c) ? c : [c]).forEach((R) => {
1164
- const A = v.value.findIndex((x) => x.field === R.field);
1165
- A >= 0 && (v.value[A] = { ...v.value[A], ...R });
1193
+ (Array.isArray(c) ? c : [c]).forEach((B) => {
1194
+ const A = m.value.findIndex((C) => C.field === B.field);
1195
+ A >= 0 && (m.value[A] = { ...m.value[A], ...B });
1166
1196
  });
1167
- }, _e = async (c, w, R) => {
1168
- if (R)
1169
- v.value.unshift(c);
1197
+ }, _e = async (c, w, B) => {
1198
+ if (B)
1199
+ m.value.unshift(c);
1170
1200
  else if (w) {
1171
- const A = v.value.findIndex((x) => x.field === w);
1172
- v.value.splice(A + 1, 0, c);
1201
+ const A = m.value.findIndex((C) => C.field === w);
1202
+ m.value.splice(A + 1, 0, c);
1173
1203
  } else
1174
- v.value.push(c);
1204
+ m.value.push(c);
1175
1205
  Y();
1176
1206
  }, be = async (c) => {
1177
1207
  const w = Array.isArray(c) ? c : [c];
1178
- v.value = v.value.filter((R) => !w.includes(R.field));
1208
+ m.value = m.value.filter((B) => !w.includes(B.field));
1179
1209
  }, ge = async (c) => {
1180
- m.value = { ...m.value, ...c }, c.schemas && (v.value = [...c.schemas], Y());
1210
+ P.value = { ...P.value, ...c }, c.schemas && (m.value = [...c.schemas], Y());
1181
1211
  }, pe = {
1182
1212
  getFieldsValue: K,
1183
1213
  setFieldsValue: V,
@@ -1186,7 +1216,7 @@ const We = Pt.exports, St = /* @__PURE__ */ oe({
1186
1216
  validateFields: le,
1187
1217
  submit: $,
1188
1218
  scrollToField: ie,
1189
- clearValidate: me,
1219
+ clearValidate: ve,
1190
1220
  updateSchema: he,
1191
1221
  appendSchemaByField: _e,
1192
1222
  removeSchemaByField: be,
@@ -1194,20 +1224,20 @@ const We = Pt.exports, St = /* @__PURE__ */ oe({
1194
1224
  };
1195
1225
  e(pe);
1196
1226
  const de = () => {
1197
- v.value = [...t.schemas ?? []], Y();
1227
+ m.value = [...t.schemas ?? []], Y();
1198
1228
  }, ce = () => {
1199
1229
  typeof window < "u" && (M.value = window.innerWidth);
1200
1230
  };
1201
- return ve(() => {
1231
+ return me(() => {
1202
1232
  de(), l("register", pe), typeof window < "u" && window.addEventListener("resize", ce);
1203
1233
  }), Fe(() => {
1204
1234
  typeof window < "u" && window.removeEventListener("resize", ce);
1205
- }), J(() => z.value, (c) => {
1206
- !g.value || c === void 0 || Q(q(c), !1);
1207
- }, { deep: !0, immediate: !0 }), J(() => [t.schemas, t.initialValues], de, { deep: !0 }), { __sfc: !0, props: t, emit: l, slots: n, formRef: u, formWrapRef: a, submitLoading: f, collapsed: r, formModel: C, formRules: O, innerSchemas: v, innerProps: m, BREAKPOINTS: d, getEffectiveSpan: B, getComponentSetting: y, effectiveProps: D, controlledModelValue: z, isControlled: g, currentFormModel: h, formCustomComponents: W, effectiveActionColOptions: b, windowWidth: M, getVisibleSchemaCount: j, hasMoreFields: F, formListeners: N, displaySchemas: L, shouldShow: Z, getColProps: ee, getSlotName: H, resolveSchemaModel: q, applyFormModel: Q, updateFormModel: U, initForm: Y, filterByIfShow: re, processFieldMapToTime: p, handleSubmit: $, handleReset: T, setFieldsValue: V, getFieldsValue: K, resetFields: X, handleFieldChange: ne, validate: ae, validateFields: le, scrollToField: ie, clearValidate: me, updateSchema: he, appendSchemaByField: _e, removeSchemaByField: be, setProps: ge, formActionRef: pe, syncSchemas: de, handleResize: ce, ProFormItem: Ve, FormActions: We };
1235
+ }), J(() => I.value, (c) => {
1236
+ !y.value || c === void 0 || Q(q(c), !1);
1237
+ }, { deep: !0, immediate: !0 }), J(() => [t.schemas, t.initialValues], de, { deep: !0 }), { __sfc: !0, props: t, emit: l, slots: n, formRef: u, formWrapRef: a, submitLoading: f, collapsed: i, formModel: g, formRules: z, innerSchemas: m, innerProps: P, BREAKPOINTS: d, getEffectiveSpan: x, getComponentSetting: _, effectiveProps: D, controlledModelValue: I, isControlled: y, currentFormModel: v, formCustomComponents: L, effectiveActionColOptions: b, windowWidth: M, getVisibleSchemaCount: j, hasMoreFields: R, formListeners: N, displaySchemas: W, shouldShow: Z, getColProps: ee, getSlotName: H, resolveSchemaModel: q, applyFormModel: Q, updateFormModel: U, initForm: Y, filterByIfShow: re, processFieldMapToTime: p, handleSubmit: $, handleReset: T, setFieldsValue: V, getFieldsValue: K, resetFields: X, handleFieldChange: ne, validate: ae, validateFields: le, scrollToField: ie, clearValidate: ve, updateSchema: he, appendSchemaByField: _e, removeSchemaByField: be, setProps: ge, formActionRef: pe, syncSchemas: de, handleResize: ce, ProFormItem: Ve, FormActions: Le };
1208
1238
  }
1209
1239
  });
1210
- var Ft = function() {
1240
+ var Bt = function() {
1211
1241
  var e = this, l = e._self._c, t = e._self._setupProxy;
1212
1242
  return l("div", { ref: "formWrapRef", staticClass: "ecp-pro-form" }, [l("el-form", e._g(e._b({ ref: "formRef", staticClass: "ecp-pro-form", attrs: { model: t.currentFormModel, rules: t.formRules, "label-width": t.effectiveProps.labelWidth, "label-position": t.effectiveProps.labelPosition, size: t.effectiveProps.size, disabled: t.effectiveProps.disabled } }, "el-form", e.$attrs, !1), t.formListeners), [e._t("formHeader"), l("el-row", { style: t.effectiveProps.baseRowStyle, attrs: { gutter: t.effectiveProps.gutter } }, [e._l(t.displaySchemas, function(n) {
1213
1243
  var u, a;
@@ -1217,83 +1247,83 @@ var Ft = function() {
1217
1247
  } } }, [l("template", { slot: "submitBefore" }, [e._t("submitBefore")], 2), l("template", { slot: "resetBefore" }, [e._t("resetBefore")], 2), l("template", { slot: "advanceBefore" }, [e._t("advanceBefore")], 2), l("template", { slot: "advanceAfter" }, [e._t("advanceAfter")], 2), l("template", { slot: "actions" }, [e._t("actions")], 2)], 2)], 1) : e._e()], 2), t.effectiveProps.showAdvancedButton && t.hasMoreFields ? l("el-button", { staticClass: "ecp-form-actions__advance", attrs: { type: "text" }, on: { click: function(n) {
1218
1248
  t.collapsed = !t.collapsed;
1219
1249
  } } }, [l("i", { staticClass: "el-icon-d-arrow-left", class: t.collapsed ? "down" : "up" }), e._v(" " + e._s(t.collapsed ? "展开" : "收起") + " ")]) : e._e(), e._t("formFooter")], 2)], 1);
1220
- }, Rt = [], Bt = /* @__PURE__ */ se(
1221
- St,
1222
- Ft,
1250
+ }, At = [], Mt = /* @__PURE__ */ se(
1223
1251
  Rt,
1252
+ Bt,
1253
+ At,
1224
1254
  !1,
1225
1255
  null,
1226
1256
  "bf70afca",
1227
1257
  null,
1228
1258
  null
1229
1259
  );
1230
- const Le = Bt.exports;
1231
- function Et(i) {
1232
- const e = k(null), l = k(i ? fe(i) : void 0), t = () => i ? fe(i) : void 0, n = (g) => {
1233
- e.value = g;
1234
- const h = t();
1235
- h && Object.keys(h).length > 0 && g.setProps(h);
1260
+ const We = Mt.exports;
1261
+ function Vt(r) {
1262
+ const e = k(null), l = k(r ? fe(r) : void 0), t = () => r ? fe(r) : void 0, n = (y) => {
1263
+ e.value = y;
1264
+ const v = t();
1265
+ v && Object.keys(v).length > 0 && y.setProps(v);
1236
1266
  };
1237
- return i && J(
1267
+ return r && J(
1238
1268
  () => t(),
1239
- (g) => {
1240
- l.value = g, g && e.value && e.value.setProps(g);
1269
+ (y) => {
1270
+ l.value = y, y && e.value && e.value.setProps(y);
1241
1271
  },
1242
1272
  { deep: !0 }
1243
1273
  ), [n, {
1244
1274
  register: n,
1245
1275
  formAction: e,
1246
1276
  getFieldsValue: () => {
1247
- var g;
1248
- return ((g = e.value) == null ? void 0 : g.getFieldsValue()) ?? {};
1277
+ var y;
1278
+ return ((y = e.value) == null ? void 0 : y.getFieldsValue()) ?? {};
1249
1279
  },
1250
- setFieldsValue: async (g) => {
1251
- var h;
1252
- await ((h = e.value) == null ? void 0 : h.setFieldsValue(g));
1280
+ setFieldsValue: async (y) => {
1281
+ var v;
1282
+ await ((v = e.value) == null ? void 0 : v.setFieldsValue(y));
1253
1283
  },
1254
1284
  resetFields: async () => {
1255
- var g;
1256
- await ((g = e.value) == null ? void 0 : g.resetFields());
1285
+ var y;
1286
+ await ((y = e.value) == null ? void 0 : y.resetFields());
1257
1287
  },
1258
- validate: (g) => {
1259
- var h;
1260
- return ((h = e.value) == null ? void 0 : h.validate(g)) ?? Promise.resolve();
1288
+ validate: (y) => {
1289
+ var v;
1290
+ return ((v = e.value) == null ? void 0 : v.validate(y)) ?? Promise.resolve();
1261
1291
  },
1262
- validateFields: (g) => {
1263
- var h;
1264
- return ((h = e.value) == null ? void 0 : h.validateFields(g)) ?? Promise.resolve();
1292
+ validateFields: (y) => {
1293
+ var v;
1294
+ return ((v = e.value) == null ? void 0 : v.validateFields(y)) ?? Promise.resolve();
1265
1295
  },
1266
1296
  submit: () => {
1267
- var g;
1268
- return ((g = e.value) == null ? void 0 : g.submit()) ?? Promise.resolve();
1297
+ var y;
1298
+ return ((y = e.value) == null ? void 0 : y.submit()) ?? Promise.resolve();
1269
1299
  },
1270
- scrollToField: (g, h) => {
1271
- var W;
1272
- return ((W = e.value) == null ? void 0 : W.scrollToField(g, h)) ?? Promise.resolve();
1300
+ scrollToField: (y, v) => {
1301
+ var L;
1302
+ return ((L = e.value) == null ? void 0 : L.scrollToField(y, v)) ?? Promise.resolve();
1273
1303
  },
1274
- clearValidate: (g) => {
1275
- var h;
1276
- (h = e.value) == null || h.clearValidate(g);
1304
+ clearValidate: (y) => {
1305
+ var v;
1306
+ (v = e.value) == null || v.clearValidate(y);
1277
1307
  },
1278
- updateSchema: (g) => {
1279
- var h;
1280
- return ((h = e.value) == null ? void 0 : h.updateSchema(g)) ?? Promise.resolve();
1308
+ updateSchema: (y) => {
1309
+ var v;
1310
+ return ((v = e.value) == null ? void 0 : v.updateSchema(y)) ?? Promise.resolve();
1281
1311
  },
1282
- appendSchemaByField: (g, h, W) => {
1312
+ appendSchemaByField: (y, v, L) => {
1283
1313
  var b;
1284
- return ((b = e.value) == null ? void 0 : b.appendSchemaByField(g, h, W)) ?? Promise.resolve();
1314
+ return ((b = e.value) == null ? void 0 : b.appendSchemaByField(y, v, L)) ?? Promise.resolve();
1285
1315
  },
1286
- removeSchemaByField: (g) => {
1287
- var h;
1288
- return ((h = e.value) == null ? void 0 : h.removeSchemaByField(g)) ?? Promise.resolve();
1316
+ removeSchemaByField: (y) => {
1317
+ var v;
1318
+ return ((v = e.value) == null ? void 0 : v.removeSchemaByField(y)) ?? Promise.resolve();
1289
1319
  },
1290
- setProps: async (g) => {
1291
- var h;
1292
- l.value = { ...l.value, ...g }, await ((h = e.value) == null ? void 0 : h.setProps(g));
1320
+ setProps: async (y) => {
1321
+ var v;
1322
+ l.value = { ...l.value, ...y }, await ((v = e.value) == null ? void 0 : v.setProps(y));
1293
1323
  }
1294
1324
  }];
1295
1325
  }
1296
- const At = /* @__PURE__ */ oe({
1326
+ const Tt = /* @__PURE__ */ oe({
1297
1327
  __name: "ProDescriptions",
1298
1328
  props: {
1299
1329
  title: null,
@@ -1308,8 +1338,8 @@ const At = /* @__PURE__ */ oe({
1308
1338
  collapseOptions: { default: () => ({ canExpand: !1, defaultExpand: !0, expandButtonText: "展开", collapseButtonText: "收起", visibleRows: 1 }) }
1309
1339
  },
1310
1340
  emits: ["register"],
1311
- setup(i, { expose: e, emit: l }) {
1312
- const t = i, n = k({}), u = k({}), a = k([]), f = k(typeof window < "u" ? window.innerWidth : 1920), r = k(!0), C = oe({
1341
+ setup(r, { expose: e, emit: l }) {
1342
+ const t = r, n = k({}), u = k({}), a = k([]), f = k(typeof window < "u" ? window.innerWidth : 1920), i = k(!0), g = oe({
1313
1343
  name: "EcpDescriptionValueRenderer",
1314
1344
  props: {
1315
1345
  schema: { type: Object, required: !0 },
@@ -1320,7 +1350,7 @@ const At = /* @__PURE__ */ oe({
1320
1350
  setup(p) {
1321
1351
  return () => {
1322
1352
  const $ = p.schema, T = p.record, V = p.value, K = (X) => {
1323
- const ne = O($, X === p.emptyText ? V : X, T), ae = ue("span", X);
1353
+ const ne = z($, X === p.emptyText ? V : X, T), ae = ue("span", X);
1324
1354
  return ne ? ue("el-tooltip", { props: ne }, [ae]) : ae;
1325
1355
  };
1326
1356
  if ($.render) {
@@ -1330,65 +1360,65 @@ const At = /* @__PURE__ */ oe({
1330
1360
  return Array.isArray(V) ? K(V.length ? V.join(", ") : p.emptyText) : V == null || V === "" ? K(p.emptyText) : K(typeof V == "object" ? JSON.stringify(V) : String(V));
1331
1361
  };
1332
1362
  }
1333
- }), O = (p, $, T) => {
1363
+ }), z = (p, $, T) => {
1334
1364
  const V = p.tooltip;
1335
1365
  if (!V)
1336
1366
  return null;
1337
1367
  const K = typeof V == "function" ? V({ value: $, record: T, schema: p }) : V;
1338
1368
  return Be(K, $);
1339
- }, { getSetting: v } = Re(), m = S(() => ({ ...v("ProDescriptions"), ...t, ...n.value })), d = { xxl: 1920, xl: 1200, lg: 992, md: 768, sm: 576 }, B = (p, $) => {
1369
+ }, { getSetting: m } = Re(), P = F(() => ({ ...m("ProDescriptions"), ...t, ...n.value })), d = { xxl: 1920, xl: 1200, lg: 992, md: 768, sm: 576 }, x = (p, $) => {
1340
1370
  if (typeof p == "number")
1341
1371
  return Math.max(1, p);
1342
1372
  const T = p ?? {};
1343
1373
  return $ >= d.xxl ? T.xxl ?? T.xl ?? T.lg ?? T.md ?? T.sm ?? T.xs ?? 3 : $ >= d.xl ? T.xl ?? T.lg ?? T.md ?? T.sm ?? T.xs ?? 3 : $ >= d.lg ? T.lg ?? T.md ?? T.sm ?? T.xs ?? 3 : $ >= d.md ? T.md ?? T.sm ?? T.xs ?? 3 : $ >= d.sm ? T.sm ?? T.xs ?? 2 : T.xs ?? 1;
1344
- }, y = S(() => B(m.value.column, f.value)), D = S(() => m.value.data ?? u.value ?? {}), z = S(() => (a.value.length ? a.value : m.value.schema ?? []).filter((p) => p.dataIndex || p.field ? typeof p.show == "function" ? p.show(D.value) : p.show !== !1 : !1).map((p) => ({
1374
+ }, _ = F(() => x(P.value.column, f.value)), D = F(() => P.value.data ?? u.value ?? {}), I = F(() => (a.value.length ? a.value : P.value.schema ?? []).filter((p) => p.dataIndex || p.field ? typeof p.show == "function" ? p.show(D.value) : p.show !== !1 : !1).map((p) => ({
1345
1375
  ...p,
1346
1376
  dataIndex: p.dataIndex || p.field || ""
1347
- }))), g = S(() => {
1377
+ }))), y = F(() => {
1348
1378
  const p = [];
1349
1379
  let $ = { items: [] }, T = 0;
1350
- const V = y.value;
1351
- return z.value.forEach((K, X) => {
1352
- const ne = z.value.length - X, ae = Math.max(1, Math.min(K.span ?? 1, V)), le = ne === 1 ? V - T || V : ae;
1380
+ const V = _.value;
1381
+ return I.value.forEach((K, X) => {
1382
+ const ne = I.value.length - X, ae = Math.max(1, Math.min(K.span ?? 1, V)), le = ne === 1 ? V - T || V : ae;
1353
1383
  T + le > V && (p.push($), $ = { items: [] }, T = 0);
1354
1384
  const ie = ne === 1 && T < V ? Math.max(1, V - T) : le;
1355
1385
  $.items.push({ ...K, _span: ie }), T += ie, T >= V && (p.push($), $ = { items: [] }, T = 0);
1356
1386
  }), $.items.length > 0 && p.push($), p;
1357
- }), h = S(() => {
1387
+ }), v = F(() => {
1358
1388
  var $;
1359
- if (!W.value || r.value)
1360
- return g.value;
1361
- const p = Math.max(1, (($ = m.value.collapseOptions) == null ? void 0 : $.visibleRows) ?? 1);
1362
- return g.value.slice(0, p);
1363
- }), W = S(() => {
1389
+ if (!L.value || i.value)
1390
+ return y.value;
1391
+ const p = Math.max(1, (($ = P.value.collapseOptions) == null ? void 0 : $.visibleRows) ?? 1);
1392
+ return y.value.slice(0, p);
1393
+ }), L = F(() => {
1364
1394
  var $, T;
1365
- const p = Math.max(1, (($ = m.value.collapseOptions) == null ? void 0 : $.visibleRows) ?? 1);
1366
- return !!m.value.useCollapse && !!((T = m.value.collapseOptions) != null && T.canExpand) && g.value.length > p;
1367
- }), b = S(() => !!m.value.title || !!m.value.helpMessage || W.value), M = S(() => {
1395
+ const p = Math.max(1, (($ = P.value.collapseOptions) == null ? void 0 : $.visibleRows) ?? 1);
1396
+ return !!P.value.useCollapse && !!((T = P.value.collapseOptions) != null && T.canExpand) && y.value.length > p;
1397
+ }), b = F(() => !!P.value.title || !!P.value.helpMessage || L.value), M = F(() => {
1368
1398
  var p, $;
1369
1399
  return {
1370
- expand: ((p = m.value.collapseOptions) == null ? void 0 : p.expandButtonText) ?? "展开",
1371
- collapse: (($ = m.value.collapseOptions) == null ? void 0 : $.collapseButtonText) ?? "收起"
1400
+ expand: ((p = P.value.collapseOptions) == null ? void 0 : p.expandButtonText) ?? "展开",
1401
+ collapse: (($ = P.value.collapseOptions) == null ? void 0 : $.collapseButtonText) ?? "收起"
1372
1402
  };
1373
- }), j = S(() => ({
1374
- gridTemplateColumns: `repeat(${y.value}, minmax(0, 1fr))`
1375
- })), F = (p) => ({
1403
+ }), j = F(() => ({
1404
+ gridTemplateColumns: `repeat(${_.value}, minmax(0, 1fr))`
1405
+ })), R = (p) => ({
1376
1406
  gridColumn: `span ${p._span}`
1377
1407
  }), N = (p) => ({
1378
1408
  minWidth: p.labelMinWidth ? `${p.labelMinWidth}px` : void 0,
1379
1409
  ...p.labelStyle ?? {}
1380
- }), L = (p) => ({
1410
+ }), W = (p) => ({
1381
1411
  minWidth: p.contentMinWidth ? `${p.contentMinWidth}px` : void 0,
1382
1412
  ...p.contentStyle ?? {}
1383
1413
  }), Z = (p) => D.value[p.dataIndex], ee = () => {
1384
- a.value = [...m.value.schema ?? []];
1414
+ a.value = [...P.value.schema ?? []];
1385
1415
  }, H = () => {
1386
- u.value = { ...m.value.data ?? {} };
1416
+ u.value = { ...P.value.data ?? {} };
1387
1417
  }, q = async (p) => {
1388
1418
  n.value = { ...n.value, ...p }, p.schema && (a.value = [...p.schema]), p.data && (u.value = { ...p.data });
1389
1419
  }, Q = async (p) => {
1390
1420
  u.value = { ...u.value, ...p }, n.value = { ...n.value, data: u.value };
1391
- }, U = () => ({ ...m.value.data ?? u.value ?? {} }), Y = {
1421
+ }, U = () => ({ ...P.value.data ?? u.value ?? {} }), Y = {
1392
1422
  setProps: q,
1393
1423
  setData: Q,
1394
1424
  getData: U
@@ -1397,20 +1427,20 @@ const At = /* @__PURE__ */ oe({
1397
1427
  const re = () => {
1398
1428
  typeof window < "u" && (f.value = window.innerWidth);
1399
1429
  };
1400
- return ve(() => {
1430
+ return me(() => {
1401
1431
  var p;
1402
- ee(), H(), r.value = ((p = m.value.collapseOptions) == null ? void 0 : p.defaultExpand) !== !1, l("register", Y), typeof window < "u" && window.addEventListener("resize", re);
1432
+ ee(), H(), i.value = ((p = P.value.collapseOptions) == null ? void 0 : p.defaultExpand) !== !1, l("register", Y), typeof window < "u" && window.addEventListener("resize", re);
1403
1433
  }), Fe(() => {
1404
1434
  typeof window < "u" && window.removeEventListener("resize", re);
1405
- }), J(() => m.value.schema, ee, { deep: !0 }), J(() => m.value.data, H, { deep: !0 }), J(() => {
1435
+ }), J(() => P.value.schema, ee, { deep: !0 }), J(() => P.value.data, H, { deep: !0 }), J(() => {
1406
1436
  var p;
1407
- return (p = m.value.collapseOptions) == null ? void 0 : p.defaultExpand;
1437
+ return (p = P.value.collapseOptions) == null ? void 0 : p.defaultExpand;
1408
1438
  }, (p) => {
1409
- p !== void 0 && (r.value = p);
1410
- }), { __sfc: !0, props: t, emit: l, innerProps: n, innerData: u, innerSchema: a, windowWidth: f, expanded: r, DescriptionValueRenderer: C, normalizeTooltip: O, getSetting: v, effectiveProps: m, breakpoints: d, resolveColumn: B, currentColumn: y, effectiveData: D, visibleSchema: z, normalizedRows: g, renderedRows: h, showCollapseButton: W, showHeader: b, collapseButtonText: M, bodyStyle: j, getItemStyle: F, getLabelStyle: N, getContentStyle: L, getItemValue: Z, syncSchema: ee, syncData: H, setProps: q, setData: Q, getData: U, descriptionAction: Y, updateWindowWidth: re };
1439
+ p !== void 0 && (i.value = p);
1440
+ }), { __sfc: !0, props: t, emit: l, innerProps: n, innerData: u, innerSchema: a, windowWidth: f, expanded: i, DescriptionValueRenderer: g, normalizeTooltip: z, getSetting: m, effectiveProps: P, breakpoints: d, resolveColumn: x, currentColumn: _, effectiveData: D, visibleSchema: I, normalizedRows: y, renderedRows: v, showCollapseButton: L, showHeader: b, collapseButtonText: M, bodyStyle: j, getItemStyle: R, getLabelStyle: N, getContentStyle: W, getItemValue: Z, syncSchema: ee, syncData: H, setProps: q, setData: Q, getData: U, descriptionAction: Y, updateWindowWidth: re };
1411
1441
  }
1412
1442
  });
1413
- var Mt = function() {
1443
+ var Dt = function() {
1414
1444
  var n;
1415
1445
  var e = this, l = e._self._c, t = e._self._setupProxy;
1416
1446
  return l("div", { staticClass: "ecp-pro-descriptions" }, [t.showHeader ? l("div", { staticClass: "ecp-pro-descriptions__header" }, [l("div", { staticClass: "ecp-pro-descriptions__title-wrap" }, [t.effectiveProps.title ? l("span", { staticClass: "ecp-pro-descriptions__title" }, [e._v(e._s(t.effectiveProps.title))]) : e._e(), t.effectiveProps.helpMessage ? l("el-tooltip", { attrs: { placement: "top", effect: "dark" } }, [l("template", { slot: "content" }, [Array.isArray(t.effectiveProps.helpMessage) ? l("span", e._l(t.effectiveProps.helpMessage, function(u, a) {
@@ -1427,19 +1457,19 @@ var Mt = function() {
1427
1457
  return [l("div", { key: `${a}-${f.dataIndex || f.field}`, staticClass: "ecp-pro-descriptions__item", style: t.getItemStyle(f) }, [l("div", { staticClass: "ecp-pro-descriptions__label", style: t.getLabelStyle(f) }, [e._v(" " + e._s(f.label) + " ")]), l("div", { staticClass: "ecp-pro-descriptions__content", style: t.getContentStyle(f) }, [e.$scopedSlots[f.slot || f.dataIndex] ? e._t(f.slot || f.dataIndex, null, { value: t.getItemValue(f), record: t.effectiveData, schema: f }) : l(t.DescriptionValueRenderer, { attrs: { schema: f, value: t.getItemValue(f), record: t.effectiveData, "empty-text": t.effectiveProps.emptyText || "-" } })], 2)])];
1428
1458
  })];
1429
1459
  })], 2)]);
1430
- }, Tt = [], kt = /* @__PURE__ */ se(
1431
- At,
1432
- Mt,
1460
+ }, kt = [], $t = /* @__PURE__ */ se(
1433
1461
  Tt,
1462
+ Dt,
1463
+ kt,
1434
1464
  !1,
1435
1465
  null,
1436
1466
  "7d6cd376",
1437
1467
  null,
1438
1468
  null
1439
1469
  );
1440
- const Ke = kt.exports;
1441
- function Nt(i) {
1442
- const e = k(null), l = () => i ? fe(i) : void 0, t = () => {
1470
+ const Ke = $t.exports;
1471
+ function Lt(r) {
1472
+ const e = k(null), l = () => r ? fe(r) : void 0, t = () => {
1443
1473
  const a = fe(e);
1444
1474
  if (!a)
1445
1475
  throw new Error("ProDescriptions instance has not been registered");
@@ -1449,7 +1479,7 @@ function Nt(i) {
1449
1479
  const f = l();
1450
1480
  f && Object.keys(f).length > 0 && a.setProps(f);
1451
1481
  };
1452
- return i && J(
1482
+ return r && J(
1453
1483
  () => l(),
1454
1484
  (a) => {
1455
1485
  a && e.value && e.value.setProps(a);
@@ -1461,48 +1491,50 @@ function Nt(i) {
1461
1491
  getData: () => t().getData()
1462
1492
  }];
1463
1493
  }
1464
- const Dt = [
1494
+ const zt = [
1465
1495
  { name: "ProTable", component: Ee },
1466
1496
  { name: "TableAction", component: Ne },
1467
- { name: "ProForm", component: Le },
1497
+ { name: "ProForm", component: We },
1468
1498
  { name: "ProFormItem", component: Ve },
1469
- { name: "FormActions", component: We },
1499
+ { name: "FormActions", component: Le },
1470
1500
  { name: "FormattedNumberInput", component: Ae },
1471
1501
  { name: "ProDescriptions", component: Ke }
1472
1502
  ];
1473
- function $t(i) {
1474
- Dt.forEach(({ name: e, component: l }) => {
1475
- i.component(e, l);
1503
+ function It(r) {
1504
+ zt.forEach(({ name: e, component: l }) => {
1505
+ r.component(e, l);
1476
1506
  });
1477
1507
  }
1478
- const Vt = {
1479
- install: $t,
1508
+ const Wt = {
1509
+ install: It,
1480
1510
  ProTable: Ee,
1481
- ProForm: Le,
1511
+ ProForm: We,
1482
1512
  ProDescriptions: Ke,
1483
1513
  TableAction: Ne,
1484
1514
  FormattedNumberInput: Ae
1485
1515
  };
1486
1516
  export {
1487
- We as FormActions,
1517
+ Le as FormActions,
1488
1518
  Ae as FormattedNumberInput,
1489
1519
  Ke as ProDescriptions,
1490
- Le as ProForm,
1520
+ We as ProForm,
1491
1521
  Ve as ProFormItem,
1492
1522
  Ee as ProTable,
1493
1523
  Ne as TableAction,
1524
+ at as applyNumericInputDigitLimits,
1494
1525
  ze as clampByIntegerDigits,
1495
- Vt as default,
1526
+ Wt as default,
1496
1527
  Ie as formatWithThousands,
1497
- $t as install,
1498
- Pe as normalizeNumericValue,
1499
- rt as numberToEditString,
1500
- st as roundToDecimals,
1528
+ It as install,
1529
+ Ce as normalizeNumericValue,
1530
+ ct as numberToEditString,
1531
+ rt as roundToDecimals,
1501
1532
  $e as sanitizeNumericInput,
1502
- xe as stripNumberGrouping,
1533
+ Pe as stripNumberGrouping,
1534
+ it as toFixedDecimalString,
1503
1535
  Re as useComponentSetting,
1504
- Nt as useDescription,
1505
- Et as useForm,
1506
- Ot as useProTable
1536
+ Lt as useDescription,
1537
+ Vt as useForm,
1538
+ Nt as useProTable
1507
1539
  };
1508
1540
  //# sourceMappingURL=element-component-pro.es.js.map