@aspire-ui/element-component-pro 1.0.12 → 1.0.14

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,16 +1,39 @@
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
- import { MessageBox as qe } from "element-ui";
3
- const we = je({});
4
- function Re() {
1
+ import { reactive as Xe, defineComponent as ie, h as pe, useSlots as Me, ref as O, computed as C, onMounted as ge, nextTick as Le, onUnmounted as Ae, watch as ne, unref as ve } from "vue";
2
+ import { MessageBox as Ze } from "element-ui";
3
+ const me = Xe({});
4
+ function Be(i, e) {
5
+ if (!e)
6
+ return i;
7
+ for (const o in e)
8
+ if (Object.prototype.hasOwnProperty.call(e, o)) {
9
+ const t = i[o], n = e[o];
10
+ Ne(n) ? Ne(t) ? i[o] = Be(
11
+ t,
12
+ n
13
+ ) : i[o] = { ...n } : i[o] = n;
14
+ }
15
+ return i;
16
+ }
17
+ function Ne(i) {
18
+ if (!i || typeof i != "object")
19
+ return !1;
20
+ const e = Object.getPrototypeOf(i);
21
+ return e === Object.prototype || e === null;
22
+ }
23
+ function Te() {
5
24
  return {
6
- getSetting: (l) => l === void 0 ? { ...we } : { ...we[l] ?? {} },
7
- setSetting: (l, t) => {
8
- const n = we[l];
9
- we[l] = n ? { ...n, ...t } : { ...t };
25
+ getSetting: (t) => JSON.parse(JSON.stringify(t === void 0 ? me : me[t] ?? {})),
26
+ setSetting: (t, n) => {
27
+ const s = me[t];
28
+ s ? me[t] = Be({ ...s }, n) : me[t] = { ...n };
29
+ },
30
+ mergeSettings: (t, n) => {
31
+ const s = me[t] ?? {};
32
+ return Be({ ...s }, n);
10
33
  }
11
34
  };
12
35
  }
13
- const He = /* @__PURE__ */ oe({
36
+ const Qe = /* @__PURE__ */ ie({
14
37
  __name: "ProTable",
15
38
  props: {
16
39
  columns: null,
@@ -54,8 +77,8 @@ const He = /* @__PURE__ */ oe({
54
77
  load: null
55
78
  },
56
79
  emits: ["register", "fetch-success", "fetch-error", "selection-change", "row-click", "row-dblclick", "sort-change", "expand-change"],
57
- setup(r, { expose: e, emit: l }) {
58
- const t = r, n = oe({
80
+ setup(i, { expose: e, emit: o }) {
81
+ const t = i, n = ie({
59
82
  name: "EcpProTableDefaultCellRenderer",
60
83
  props: {
61
84
  column: { type: Object, required: !0 },
@@ -63,22 +86,22 @@ const He = /* @__PURE__ */ oe({
63
86
  index: { type: Number, required: !0 },
64
87
  value: { required: !1 }
65
88
  },
66
- setup(o) {
89
+ setup(l) {
67
90
  return () => {
68
- var h, S;
69
- const s = o.column;
70
- if (s != null && s.customRender) {
71
- const E = s.customRender({ text: o.value, record: o.record, index: o.index });
72
- return typeof E == "string" || typeof E == "number" ? ue("span", String(E)) : E;
91
+ var w, A;
92
+ const u = l.column;
93
+ if (u != null && u.customRender) {
94
+ const K = u.customRender({ text: l.value, record: l.record, index: l.index });
95
+ return typeof K == "string" || typeof K == "number" ? pe("span", String(K)) : K;
73
96
  }
74
- if (s != null && s.valueEnum) {
75
- const E = ((S = (h = s.valueEnum) == null ? void 0 : h[o.value]) == null ? void 0 : S.text) ?? o.value;
76
- return ue("span", E == null ? "" : String(E));
97
+ if (u != null && u.valueEnum) {
98
+ const K = ((A = (w = u.valueEnum) == null ? void 0 : w[l.value]) == null ? void 0 : A.text) ?? l.value;
99
+ return pe("span", K == null ? "" : String(K));
77
100
  }
78
- return ue("span", o.value == null ? "" : String(o.value));
101
+ return pe("span", l.value == null ? "" : String(l.value));
79
102
  };
80
103
  }
81
- }), u = oe({
104
+ }), s = ie({
82
105
  name: "EcpProTableBodyCellRenderer",
83
106
  props: {
84
107
  slotRender: { type: Function, required: !0 },
@@ -89,393 +112,399 @@ const He = /* @__PURE__ */ oe({
89
112
  customRender: { type: Function, required: !1 },
90
113
  valueEnum: { type: Object, required: !1 }
91
114
  },
92
- setup(o) {
115
+ setup(l) {
93
116
  return () => {
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 } });
117
+ const u = l.slotRender, w = u == null ? void 0 : u({ column: l.column, record: l.record, index: l.index, value: l.value });
118
+ if (((Y) => Y == null ? [] : Array.isArray(Y) ? Y.filter((se) => se != null && se !== !1 && !se.isComment) : [Y])(w).length > 0)
119
+ return w;
120
+ const L = { ...l.column };
121
+ return l.customRender && (L.customRender = l.customRender), l.valueEnum && (L.valueEnum = l.valueEnum), pe(n, { props: { column: L, record: l.record, index: l.index, value: l.value } });
99
122
  };
100
123
  }
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({
124
+ }), a = Me(), h = O(), c = O(), y = O(0), E = O(t.loading ?? !1), b = O([]), F = O({}), f = O([]), S = O({}), _ = O([]), z = O(null), { mergeSettings: J } = Te(), d = C(() => J("ProTable", { ...t, ...S.value })), P = C(() => {
125
+ const l = d.value.pagination;
126
+ return l && typeof l == "object" ? {
127
+ pageSize: l.pageSize ?? 10,
128
+ pageSizes: l.pageSizes ?? [10, 20, 50, 100]
129
+ } : { pageSize: 10, pageSizes: [10, 20, 50, 100] };
130
+ }), T = O({
102
131
  page: 1,
103
- pageSize: t.pagination && typeof t.pagination == "object" ? t.pagination.pageSize ?? 10 : 10,
104
- pageSizes: t.pagination && typeof t.pagination == "object" ? t.pagination.pageSizes ?? [10, 20, 50, 100] : [10, 20, 50, 100],
132
+ pageSize: P.value.pageSize,
133
+ pageSizes: P.value.pageSizes,
105
134
  total: 0
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
- () => d.value.filter((o) => !o.hideInTable && !o.defaultHidden)
108
- ), N = F(() => {
109
- var s, h;
110
- let o = 0;
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
- const s = o.width;
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;
135
+ }), g = C(() => !!d.value.title || !!a.tableTitle || !!a.toolbar), j = C(() => z.value !== null ? z.value : !!t.pagination && typeof t.pagination == "object"), G = C(() => d.value.pagination && typeof d.value.pagination == "object" ? !!d.value.pagination.small : !1), M = C(() => d.value.pagination && typeof d.value.pagination == "object" ? !!d.value.pagination.background : !1), R = C(() => d.value.rowKey || "id"), q = C(() => new Set(_.value.map((l) => l[R.value]))), X = C(
136
+ () => f.value.filter((l) => !l.hideInTable && !l.defaultHidden)
137
+ ), le = C(() => {
138
+ var u, w;
139
+ let l = 0;
140
+ return d.value.rowSelection && (l += Number(d.value.rowSelection.width) || 48), d.value.showIndexColumn && (l += Number((u = d.value.indexColumnProps) == null ? void 0 : u.width) || 60), d.value.actionColumn && (l += Number((w = d.value.actionColumn) == null ? void 0 : w.width) || 150), l;
141
+ }), ee = (l) => typeof l == "number" && l > 0, U = C(() => X.value.filter((u) => ce(u) && ee(u.width)).reduce((u, w) => u + (typeof w.width == "number" ? w.width : 0), 0)), ae = C(() => X.value.filter((u) => ce(u) && typeof u.width == "string").reduce((u, w) => u + (Number(te(w)) || 80), 0)), Z = (l) => l == null ? null : typeof l == "number" ? l : parseInt(String(l).replace(/px$/i, ""), 10) || null, te = (l) => {
142
+ const u = l.width;
143
+ if (ee(u) && U.value > 0 && y.value > 0 && typeof u == "number") {
144
+ const w = y.value - le.value - ae.value;
145
+ let A = Math.floor(w * u / U.value);
146
+ const K = Z(l.minWidth) ?? 60, L = Z(l.maxWidth);
147
+ return A = Math.max(K, A), L != null && (A = Math.min(L, A)), A;
119
148
  }
120
- if (typeof s == "string") {
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;
149
+ if (typeof u == "string") {
150
+ const w = Z(u) ?? 80, A = Z(l.minWidth), K = Z(l.maxWidth);
151
+ let L = w;
152
+ return A != null && (L = Math.max(A, L)), K != null && (L = Math.min(K, L)), L;
124
153
  }
125
- return o.width;
126
- }, Q = (o) => o.ifShow === !1 ? !1 : typeof o.ifShow == "function" ? o.ifShow({ column: o }) : !0, U = F(() => {
127
- var 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
- const o = U.value.filter((s) => j.value.has(s[M.value])).length;
135
- return o > 0 && o < U.value.length;
136
- }), $ = (o) => j.value.has(o[M.value]), T = (o) => {
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
- }, V = (o) => {
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
- }, K = () => {
143
- const o = _.value.map((s) => s[M.value]);
144
- l("selection-change", { keys: o, rows: _.value });
145
- }, X = (o, s) => {
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
- }, ne = (o) => {
149
- _.value = [o], K();
150
- }, ae = (o) => {
151
- if (o) {
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
+ return l.width;
155
+ }, ce = (l) => l.ifShow === !1 ? !1 : typeof l.ifShow == "function" ? l.ifShow({ column: l }) : !0, v = C(() => {
156
+ var u;
157
+ const l = (u = d.value.rowSelection) == null ? void 0 : u.getCheckboxProps;
158
+ return l ? b.value.filter((w) => {
159
+ var A;
160
+ return !((A = l(w)) != null && A.disabled);
161
+ }) : b.value;
162
+ }), I = C(() => v.value.length > 0), $ = C(() => v.value.length === 0 ? !1 : v.value.every((l) => q.value.has(l[R.value]))), r = C(() => {
163
+ const l = v.value.filter((u) => q.value.has(u[R.value])).length;
164
+ return l > 0 && l < v.value.length;
165
+ }), m = (l) => q.value.has(l[R.value]), k = (l) => {
166
+ var u, w, A;
167
+ return ((A = (w = (u = d.value.rowSelection) == null ? void 0 : u.getCheckboxProps) == null ? void 0 : w.call(u, l)) == null ? void 0 : A.disabled) ?? !1;
168
+ }, W = (l) => {
169
+ var u, w, A;
170
+ return ((A = (w = (u = d.value.rowSelection) == null ? void 0 : u.getRadioProps) == null ? void 0 : w.call(u, l)) == null ? void 0 : A.disabled) ?? !1;
171
+ }, N = () => {
172
+ const l = _.value.map((u) => u[R.value]);
173
+ o("selection-change", { keys: l, rows: _.value });
174
+ }, Q = (l, u) => {
175
+ const w = l[R.value];
176
+ u ? _.value = [..._.value.filter((A) => A[R.value] !== w), l] : _.value = _.value.filter((A) => A[R.value] !== w), N();
177
+ }, fe = (l) => {
178
+ _.value = [l], N();
179
+ }, ye = (l) => {
180
+ if (l) {
181
+ const u = new Set(_.value.map((A) => A[R.value])), w = v.value.filter((A) => !u.has(A[R.value]));
182
+ _.value = [..._.value, ...w];
154
183
  } else {
155
- const s = new Set(m.value.map((h) => h[M.value]));
156
- _.value = _.value.filter((h) => !s.has(h[M.value]));
184
+ const u = new Set(b.value.map((w) => w[R.value]));
185
+ _.value = _.value.filter((w) => !u.has(w[R.value]));
157
186
  }
158
- K();
159
- }, le = async (o) => {
187
+ N();
188
+ }, de = async (l) => {
160
189
  if (!t.api) {
161
190
  if (t.dataSource)
162
191
  return;
163
- m.value = [];
192
+ b.value = [];
164
193
  return;
165
194
  }
166
- z.value = !0;
195
+ E.value = !0;
167
196
  try {
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,
197
+ const u = d.value.fetchSetting ?? {}, w = u.pageField ?? "page", A = u.sizeField ?? "pageSize", K = u.listField ?? "list", L = u.totalField ?? "total", Y = {
198
+ [w]: (l == null ? void 0 : l.page) ?? T.value.page,
199
+ [A]: (l == null ? void 0 : l.pageSize) ?? T.value.pageSize,
171
200
  ...t.searchInfo,
172
- ...o == null ? void 0 : o.searchInfo
201
+ ...l == null ? void 0 : l.searchInfo
173
202
  };
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
- } catch (s) {
180
- l("fetch-error", s);
203
+ (l == null ? void 0 : l.page) != null && (T.value.page = l.page), (l == null ? void 0 : l.pageSize) != null && (T.value.pageSize = l.pageSize);
204
+ const se = t.beforeFetch ? t.beforeFetch(Y) : Y, ke = await t.api(se);
205
+ F.value = ke || {};
206
+ const Pe = t.afterFetch ? t.afterFetch(ke) : ke, De = Pe[K] ?? Pe.items ?? Pe.list ?? [], ze = Pe[L] ?? 0;
207
+ b.value = De, T.value.total = ze, o("fetch-success", { items: De, total: ze });
208
+ } catch (u) {
209
+ o("fetch-error", u);
181
210
  } finally {
182
- z.value = !1;
211
+ E.value = !1;
183
212
  }
184
- }, ie = () => le(void 0), ve = (o) => {
185
- v.value.clearSelectOnPageChange && (_.value = []), I.value.pageSize = o, I.value.page = 1, le(void 0);
186
- }, he = (o) => {
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
- setProps: (o) => {
190
- x.value = { ...x.value, ...o };
213
+ }, we = () => de(void 0), Ce = (l) => {
214
+ d.value.clearSelectOnPageChange && (_.value = []), T.value.pageSize = l, T.value.page = 1, de(void 0);
215
+ }, xe = (l) => {
216
+ d.value.clearSelectOnPageChange && (_.value = []), T.value.page = l, de(void 0);
217
+ }, he = (l, u, w) => o("row-click", l, w), _e = (l, u, w) => o("row-dblclick", l, w), be = ({ prop: l, order: u }) => o("sort-change", { prop: l, order: u }), p = (l, u) => o("expand-change", l, u), x = (l) => b.value.findIndex((u) => u[R.value] === l), D = {
218
+ setProps: (l) => {
219
+ S.value = { ...S.value, ...l };
191
220
  },
192
- reload: (o) => le(o),
221
+ reload: (l) => de(l),
193
222
  redoHeight: () => {
194
- var o, s;
195
- (s = (o = f.value) == null ? void 0 : o.doLayout) == null || s.call(o);
223
+ var l, u;
224
+ (u = (l = h.value) == null ? void 0 : l.doLayout) == null || u.call(l);
196
225
  },
197
- setLoading: (o) => {
198
- z.value = o;
226
+ setLoading: (l) => {
227
+ E.value = l;
199
228
  },
200
- getDataSource: () => m.value,
201
- getRawDataSource: () => P.value,
202
- setTableData: (o) => {
203
- m.value = o ?? [];
229
+ getDataSource: () => b.value,
230
+ getRawDataSource: () => F.value,
231
+ setTableData: (l) => {
232
+ b.value = l ?? [];
204
233
  },
205
- getColumns: () => d.value,
206
- setColumns: (o) => {
207
- if (Array.isArray(o) && o.length > 0 && typeof o[0] == "string") {
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);
234
+ getColumns: () => f.value,
235
+ setColumns: (l) => {
236
+ if (Array.isArray(l) && l.length > 0 && typeof l[0] == "string") {
237
+ const u = l, w = (t.columns ?? []).filter((K) => u.includes(K.key ?? K.dataIndex)), A = u.map((K) => w.find((L) => (L.key ?? L.dataIndex) === K)).filter(Boolean);
238
+ A.length && (f.value = A);
210
239
  } else
211
- d.value = o ?? [];
240
+ f.value = l ?? [];
212
241
  },
213
- setPagination: (o) => {
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);
242
+ setPagination: (l) => {
243
+ l != null && l.page && (T.value.page = l.page), l != null && l.pageSize && (T.value.pageSize = l.pageSize), (l == null ? void 0 : l.total) !== void 0 && (T.value.total = l.total);
215
244
  },
216
- getSelectRowKeys: () => _.value.map((o) => o[M.value]),
245
+ getSelectRowKeys: () => _.value.map((l) => l[R.value]),
217
246
  getSelectRows: () => _.value,
218
247
  clearSelectedRowKeys: () => {
219
- _.value = [], K();
248
+ _.value = [], N();
220
249
  },
221
- setSelectedRowKeys: (o) => {
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();
250
+ setSelectedRowKeys: (l) => {
251
+ const u = new Set(l), w = b.value.filter((A) => u.has(A[R.value]));
252
+ l.forEach((A) => {
253
+ w.some((K) => K[R.value] === A) || w.push({ [R.value]: A });
254
+ }), _.value = w, N();
226
255
  },
227
- deleteSelectRowByKey: (o) => {
228
- _.value = _.value.filter((s) => s[M.value] !== o), K();
256
+ deleteSelectRowByKey: (l) => {
257
+ _.value = _.value.filter((u) => u[R.value] !== l), N();
229
258
  },
230
- updateTableData: (o, s, h) => {
231
- o < 0 || o >= m.value.length || (m.value = [...m.value], m.value[o] = { ...m.value[o], [s]: h });
259
+ updateTableData: (l, u, w) => {
260
+ l < 0 || l >= b.value.length || (b.value = [...b.value], b.value[l] = { ...b.value[l], [u]: w });
232
261
  },
233
- updateTableDataRecord: (o, s) => {
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];
262
+ updateTableDataRecord: (l, u) => {
263
+ const w = x(l);
264
+ if (!(w < 0))
265
+ return b.value = [...b.value], b.value[w] = { ...b.value[w], ...u }, b.value[w];
237
266
  },
238
- deleteTableDataRecord: (o) => {
239
- const s = Array.isArray(o) ? o : [o], h = new Set(s);
240
- m.value = m.value.filter((S) => !h.has(S[M.value]));
267
+ deleteTableDataRecord: (l) => {
268
+ const u = Array.isArray(l) ? l : [l], w = new Set(u);
269
+ b.value = b.value.filter((A) => !w.has(A[R.value]));
241
270
  },
242
- insertTableDataRecord: (o, s) => {
243
- const h = [...m.value];
244
- return s == null || s >= h.length ? h.push(o) : h.splice(s, 0, o), m.value = h, o;
271
+ insertTableDataRecord: (l, u) => {
272
+ const w = [...b.value];
273
+ return u == null || u >= w.length ? w.push(l) : w.splice(u, 0, l), b.value = w, l;
245
274
  },
246
- getPaginationRef: () => b.value ? { page: I.value.page, pageSize: Number(I.value.pageSize) || 10, total: I.value.total } : !1,
247
- getShowPagination: () => b.value,
248
- setShowPagination: (o) => {
249
- D.value = o;
275
+ getPaginationRef: () => j.value ? { page: T.value.page, pageSize: Number(T.value.pageSize) || 10, total: T.value.total } : !1,
276
+ getShowPagination: () => j.value,
277
+ setShowPagination: (l) => {
278
+ z.value = l;
250
279
  },
251
- getRowSelection: () => v.value.rowSelection,
280
+ getRowSelection: () => d.value.rowSelection,
252
281
  expandAll: () => {
253
- var S;
254
- const o = ((S = v.value.treeProps) == null ? void 0 : S.children) ?? "children", s = (E) => {
255
- const O = [];
256
- return E.forEach((G) => {
257
- O.push(G);
258
- const te = G[o];
259
- Array.isArray(te) && te.length > 0 && O.push(...s(te));
260
- }), O;
282
+ var A;
283
+ const l = ((A = d.value.treeProps) == null ? void 0 : A.children) ?? "children", u = (K) => {
284
+ const L = [];
285
+ return K.forEach((Y) => {
286
+ L.push(Y);
287
+ const se = Y[l];
288
+ Array.isArray(se) && se.length > 0 && L.push(...u(se));
289
+ }), L;
261
290
  };
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);
291
+ u(b.value).forEach((K) => {
292
+ var L, Y;
293
+ return (Y = (L = h.value) == null ? void 0 : L.toggleRowExpansion) == null ? void 0 : Y.call(L, K, !0);
265
294
  });
266
295
  },
267
296
  collapseAll: () => {
268
- var S;
269
- const o = ((S = v.value.treeProps) == null ? void 0 : S.children) ?? "children", s = (E) => {
270
- const O = [];
271
- return E.forEach((G) => {
272
- O.push(G);
273
- const te = G[o];
274
- Array.isArray(te) && te.length > 0 && O.push(...s(te));
275
- }), O;
297
+ var A;
298
+ const l = ((A = d.value.treeProps) == null ? void 0 : A.children) ?? "children", u = (K) => {
299
+ const L = [];
300
+ return K.forEach((Y) => {
301
+ L.push(Y);
302
+ const se = Y[l];
303
+ Array.isArray(se) && se.length > 0 && L.push(...u(se));
304
+ }), L;
276
305
  };
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);
306
+ u(b.value).forEach((K) => {
307
+ var L, Y;
308
+ return (Y = (L = h.value) == null ? void 0 : L.toggleRowExpansion) == null ? void 0 : Y.call(L, K, !1);
280
309
  });
281
310
  }
282
311
  };
283
- e(ce);
284
- const c = () => {
285
- d.value = [...t.columns ?? []];
286
- }, w = () => {
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));
312
+ e(D);
313
+ const V = () => {
314
+ f.value = [...t.columns ?? []];
288
315
  }, B = () => {
289
- i.value && (g.value = i.value.offsetWidth || 0);
316
+ t.api && d.value.immediate !== !1 ? de(void 0) : t.dataSource && (b.value = [...t.dataSource], !t.api && t.pagination !== !1 && (T.value.total = t.dataSource.length));
317
+ }, H = () => {
318
+ c.value && (y.value = c.value.offsetWidth || 0);
290
319
  };
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));
320
+ let oe = null, re = null;
321
+ return ge(() => {
322
+ V(), o("register", D), B(), typeof window < "u" && (window.addEventListener("resize", H), oe = new ResizeObserver(H), Le(() => {
323
+ H(), re = c.value, re && (oe == null || oe.observe(re));
295
324
  }));
296
- }), Fe(() => {
297
- typeof window < "u" && (window.removeEventListener("resize", B), A && C && (A.unobserve(C), C = null));
298
- }), J(() => t.columns, c, { deep: !0 }), J(() => t.dataSource, () => {
299
- !t.api && t.dataSource && (m.value = [...t.dataSource]);
300
- }, { deep: !0 }), J(() => t.loading, (o) => {
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 };
325
+ }), Ae(() => {
326
+ typeof window < "u" && (window.removeEventListener("resize", H), oe && re && (oe.unobserve(re), re = null));
327
+ }), ne(() => t.columns, V, { deep: !0 }), ne(() => t.dataSource, () => {
328
+ !t.api && t.dataSource && (b.value = [...t.dataSource]);
329
+ }, { deep: !0 }), ne(() => t.loading, (l) => {
330
+ E.value = l ?? !1;
331
+ }), { __sfc: !0, DefaultCellRenderer: n, BodyCellRenderer: s, props: t, emit: o, slots: a, tableRef: h, tableWrapRef: c, containerWidth: y, loading: E, innerData: b, rawDataSource: F, innerColumns: f, innerProps: S, selectedRows: _, showPaginationRef: z, mergeSettings: J, effectiveProps: d, defaultPagination: P, pagination: T, showTitleBar: g, showPagination: j, paginationSmall: G, paginationBackground: M, rowKeyField: R, selectedKeysSet: q, displayColumns: X, fixedColumnsWidth: le, isRatioWidth: ee, totalRatio: U, fixedDataColumnsWidth: ae, parseWidthPx: Z, getColumnWidth: te, shouldShowColumn: ce, selectableRows: v, hasSelectableRows: I, isAllCurrentPageSelected: $, isIndeterminate: r, isRowSelected: m, getCheckboxDisabled: k, getRadioDisabled: W, emitSelectionChange: N, handleCheckboxChange: Q, handleRadioSelect: fe, handleSelectAll: ye, fetchData: de, handleReload: we, handleSizeChange: Ce, handleCurrentChange: xe, handleRowClick: he, handleRowDblclick: _e, handleSortChange: be, handleExpandChange: p, findRowIndex: x, tableAction: D, syncColumns: V, loadData: B, updateContainerWidth: H, resizeObserver: oe, observedEl: re };
303
332
  }
304
333
  });
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
334
+ function ue(i, e, o, t, n, s, a, h) {
335
+ var c = typeof i == "function" ? i.options : i;
336
+ e && (c.render = e, c.staticRenderFns = o, c._compiled = !0), t && (c.functional = !0), s && (c._scopeId = "data-v-" + s);
337
+ var y;
338
+ if (a ? (y = function(F) {
339
+ F = F || // cached call
311
340
  this.$vnode && this.$vnode.ssrContext || // stateful
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() {
341
+ this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext, !F && typeof __VUE_SSR_CONTEXT__ < "u" && (F = __VUE_SSR_CONTEXT__), n && n.call(this, F), F && F._registeredComponents && F._registeredComponents.add(a);
342
+ }, c._ssrRegister = y) : n && (y = h ? function() {
314
343
  n.call(
315
344
  this,
316
- (i.functional ? this.parent : this).$root.$options.shadowRoot
345
+ (c.functional ? this.parent : this).$root.$options.shadowRoot
317
346
  );
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);
347
+ } : n), y)
348
+ if (c.functional) {
349
+ c._injectStyles = y;
350
+ var E = c.render;
351
+ c.render = function(f, S) {
352
+ return y.call(S), E(f, S);
324
353
  };
325
354
  } else {
326
- var m = i.beforeCreate;
327
- i.beforeCreate = m ? [].concat(m, g) : [g];
355
+ var b = c.beforeCreate;
356
+ c.beforeCreate = b ? [].concat(b, y) : [y];
328
357
  }
329
358
  return {
330
- exports: r,
331
- options: i
359
+ exports: i,
360
+ options: c
332
361
  };
333
362
  }
334
- var Ge = function() {
335
- var n, u, a, f;
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(i, g) {
338
- return l("div", { key: g }, [e._v(e._s(i))]);
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 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
- 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(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
- } } }, [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(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] } })];
363
+ var Ye = function() {
364
+ var n, s, a, h;
365
+ var e = this, o = e._self._c, t = e._self._setupProxy;
366
+ return o("div", { staticClass: "ecp-pro-table" }, [t.showTitleBar ? o("div", { staticClass: "ecp-pro-table__header" }, [o("div", { staticClass: "ecp-pro-table__title-wrapper" }, [o("span", { staticClass: "ecp-pro-table__title" }, [e._v(e._s(t.effectiveProps.title))]), t.effectiveProps.titleHelpMessage ? o("el-tooltip", { staticClass: "ecp-pro-table__help", attrs: { placement: "top" } }, [o("template", { slot: "content" }, [Array.isArray(t.effectiveProps.titleHelpMessage) ? o("span", e._l(t.effectiveProps.titleHelpMessage, function(c, y) {
367
+ return o("div", { key: y }, [e._v(e._s(c))]);
368
+ }), 0) : o("span", [e._v(e._s(t.effectiveProps.titleHelpMessage))])]), o("i", { staticClass: "el-icon-question" })], 2) : e._e()], 1), o("div", { staticClass: "ecp-pro-table__toolbar" }, [e._t("tableTitle"), e._t("toolbar"), e._t("toolbar-right", function() {
369
+ var c;
370
+ return [((c = t.effectiveProps.tableSetting) == null ? void 0 : c.redo) !== !1 ? o("el-button", { attrs: { type: "text", icon: "el-icon-refresh", size: "small" }, on: { click: t.handleReload } }, [e._v(" 刷新 ")]) : e._e()];
371
+ })], 2)]) : e._e(), o("div", { directives: [{ name: "loading", rawName: "v-loading", value: t.loading, expression: "loading" }], ref: "tableWrapRef", staticClass: "ecp-pro-table__body" }, [o("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 ? o("el-table-column", { attrs: { width: t.effectiveProps.rowSelection.width || 48, fixed: t.effectiveProps.rowSelection.fixed, align: "center" }, scopedSlots: e._u([{ key: "header", fn: function(c) {
372
+ return [t.effectiveProps.rowSelection.type !== "radio" ? o("el-checkbox", { attrs: { value: t.isAllCurrentPageSelected, indeterminate: t.isIndeterminate, disabled: !t.hasSelectableRows }, on: { change: t.handleSelectAll } }) : o("span")];
373
+ } }, { key: "default", fn: function(c) {
374
+ var y;
375
+ return [t.effectiveProps.rowSelection.type !== "radio" ? o("el-checkbox", { attrs: { value: t.isRowSelected(c.row), disabled: t.getCheckboxDisabled(c.row) }, on: { change: (E) => t.handleCheckboxChange(c.row, E) }, nativeOn: { click: function(E) {
376
+ E.stopPropagation();
377
+ } } }) : o("el-radio", { attrs: { value: (y = t.selectedRows[0]) == null ? void 0 : y[t.rowKeyField], label: c.row[t.rowKeyField], disabled: t.getRadioDisabled(c.row) }, on: { change: function(E) {
378
+ return t.handleRadioSelect(c.row);
379
+ } }, nativeOn: { click: function(E) {
380
+ E.stopPropagation();
381
+ } } }, [o("span")])];
382
+ } }], null, !1, 983730649) }) : e._e(), t.effectiveProps.showIndexColumn ? o("el-table-column", { attrs: { type: "index", label: ((n = t.effectiveProps.indexColumnProps) == null ? void 0 : n.title) || "序号", width: ((s = t.effectiveProps.indexColumnProps) == null ? void 0 : s.width) || 60, fixed: (a = t.effectiveProps.indexColumnProps) == null ? void 0 : a.fixed, align: ((h = t.effectiveProps.indexColumnProps) == null ? void 0 : h.align) || "center" } }) : e._e(), e._l(t.displayColumns, function(c) {
383
+ return [t.shouldShowColumn(c) ? o("el-table-column", { key: c.dataIndex || c.key || c.title, attrs: { prop: c.dataIndex, label: c.title, width: t.getColumnWidth(c), "min-width": t.isRatioWidth(c.width) ? void 0 : c.minWidth, fixed: c.fixed, align: c.align || "left", sortable: c.sortable, formatter: c.formatter, "show-overflow-tooltip": c.ellipsis !== !1 && t.effectiveProps.ellipsis !== !1 }, scopedSlots: e._u([{ key: "header", fn: function(y) {
384
+ return [c.dataIndex && e.$scopedSlots[`header-${c.dataIndex}`] ? e._t(`header-${c.dataIndex}`, null, { column: c }) : e.$scopedSlots.headerCell ? e._t("headerCell", null, { column: c }) : [o("span", [e._v(e._s(c.title))]), c.helpMessage ? o("el-tooltip", { staticClass: "ecp-pro-table__col-help", attrs: { placement: "top", effect: "dark" } }, [o("template", { slot: "content" }, [Array.isArray(c.helpMessage) ? o("span", e._l(c.helpMessage, function(E, b) {
385
+ return o("div", { key: b }, [e._v(e._s(E))]);
386
+ }), 0) : o("span", [e._v(e._s(c.helpMessage))])]), o("i", { staticClass: "el-icon-question" })], 2) : e._e()]];
387
+ } }, { key: "default", fn: function(y) {
388
+ return [c.dataIndex && e.$scopedSlots[c.dataIndex] ? e._t(c.dataIndex, null, { row: y.row, column: c, index: y.$index, value: y.row[c.dataIndex] }) : e.$scopedSlots.bodyCell ? o(t.BodyCellRenderer, { attrs: { "slot-render": e.$scopedSlots.bodyCell, column: c, record: y.row, index: y.$index, value: y.row[c.dataIndex], "custom-render": c.customRender, "value-enum": c.valueEnum } }) : o(t.DefaultCellRenderer, { attrs: { column: c, record: y.row, index: y.$index, value: y.row[c.dataIndex] } })];
360
389
  } }], 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(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
- } }], 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
- }, Ue = [], Je = /* @__PURE__ */ se(
365
- He,
366
- Ge,
367
- Ue,
390
+ }), t.effectiveProps.actionColumn ? o("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(c) {
391
+ return [e.$scopedSlots.action ? e._t("action", null, { record: c.row, column: t.effectiveProps.actionColumn, index: c.$index }) : e.$scopedSlots.bodyCell ? o(t.BodyCellRenderer, { attrs: { "slot-render": e.$scopedSlots.bodyCell, column: t.effectiveProps.actionColumn, record: c.row, index: c.$index, value: void 0, "custom-render": t.effectiveProps.actionColumn.customRender, "value-enum": t.effectiveProps.actionColumn.valueEnum } }) : e._e()];
392
+ } }], null, !0) }) : e._e()], 2)], 1), t.showPagination ? o("div", { staticClass: "ecp-pro-table__pagination" }, [o("el-pagination", e._b({ attrs: { "current-page": t.pagination.page, "page-sizes": t.pagination.pageSizes, "page-size": t.pagination.pageSize, total: t.pagination.total, small: t.paginationSmall, background: t.paginationBackground, layout: (t.effectiveProps.pagination && typeof t.effectiveProps.pagination == "object" ? t.effectiveProps.pagination.layout : null) || "total, sizes, prev, pager, next, jumper" }, on: { "size-change": t.handleSizeChange, "current-change": t.handleCurrentChange } }, "el-pagination", t.effectiveProps.pagination && typeof t.effectiveProps.pagination == "object" && t.effectiveProps.pagination.props || {}, !1))], 1) : e._e()]);
393
+ }, et = [], tt = /* @__PURE__ */ ue(
394
+ Qe,
395
+ Ye,
396
+ et,
368
397
  !1,
369
398
  null,
370
- "c5638c20",
399
+ "f3d27813",
371
400
  null,
372
401
  null
373
402
  );
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)
403
+ const Ke = tt.exports, Oe = (i) => Array.isArray(i) ? i.length > 0 : i != null && String(i).trim() !== "", Ve = (i) => Array.isArray(i) ? i.map((e) => String(e)).join(", ") : i == null ? "" : typeof i == "object" ? JSON.stringify(i) : String(i), $e = (i, e) => {
404
+ if (!i)
376
405
  return null;
377
- if (r === !0)
406
+ if (i === !0)
378
407
  return {
379
- content: ke(e),
408
+ content: Ve(e),
380
409
  placement: "top",
381
410
  effect: "dark",
382
- disabled: !De(e)
411
+ disabled: !Oe(e)
383
412
  };
384
- if (typeof r == "string")
413
+ if (typeof i == "string")
385
414
  return {
386
- content: r,
415
+ content: i,
387
416
  placement: "top",
388
417
  effect: "dark"
389
418
  };
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
- }, Xe = /* @__PURE__ */ oe({
419
+ const o = { ...i };
420
+ return Object.prototype.hasOwnProperty.call(o, "content") || (o.content = Ve(e)), Object.prototype.hasOwnProperty.call(o, "placement") || (o.placement = "top"), Object.prototype.hasOwnProperty.call(o, "effect") || (o.effect = "dark"), Object.prototype.hasOwnProperty.call(o, "disabled") || (o.disabled = !Oe(o.content)), o;
421
+ }, ot = /* @__PURE__ */ ie({
393
422
  __name: "TableAction",
394
423
  props: {
395
424
  actions: { default: () => [] },
396
425
  dropDownActions: { default: () => [] },
397
426
  stopButtonPropagation: { type: Boolean, default: !1 }
398
427
  },
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) => {
428
+ setup(i) {
429
+ const e = i, o = (f) => $e(f) || {}, t = (f) => f.type ? f.type : f.color === "error" ? "danger" : f.color === "success" ? "success" : f.color === "warning" ? "warning" : "text", n = (f) => f.filter((S) => {
430
+ const { ifShow: _ } = S;
431
+ return typeof _ == "boolean" ? _ : typeof _ == "function" ? _(S) : !0;
432
+ }), s = C(() => n(e.actions || [])), a = C(() => n(e.dropDownActions || [])), h = (f, S) => {
404
433
  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));
434
+ e.stopButtonPropagation && S.stopPropagation(), (_ = f.onClick) == null || _.call(f, S);
435
+ }, c = (f, S) => {
436
+ h(f, S);
437
+ }, y = (f, S, _) => {
438
+ var z, J, d, P;
439
+ e.stopButtonPropagation && _.stopPropagation(), f.popConfirm && (S === "confirm" ? (J = (z = f.popConfirm).confirm) == null || J.call(z) : (P = (d = f.popConfirm).cancel) == null || P.call(d));
411
440
  };
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
- }, handleDropdownCommand: (d) => {
417
- var D;
418
- const x = Number(d), _ = a.value[x];
441
+ return { __sfc: !0, props: e, normalizeTooltip: o, getButtonType: t, filterVisible: n, visibleActions: s, visibleDropDownActions: a, handleClick: h, handleActionClick: c, handlePopConfirm: y, handlePopConfirmConfirm: (f, S) => {
442
+ y(f, "confirm", S);
443
+ }, handlePopConfirmCancel: (f, S) => {
444
+ y(f, "cancel", S);
445
+ }, handleDropdownCommand: (f) => {
446
+ var z;
447
+ const S = Number(f), _ = a.value[S];
419
448
  if (!(!_ || _.disabled)) {
420
449
  if (_.popConfirm) {
421
- const I = _.popConfirm.title, y = _.popConfirm.okText || "确定", v = _.popConfirm.cancelText || "取消";
422
- qe.confirm(I, "提示", {
423
- confirmButtonText: y,
424
- cancelButtonText: v,
450
+ const J = _.popConfirm.title, d = _.popConfirm.okText || "确定", P = _.popConfirm.cancelText || "取消";
451
+ Ze.confirm(J, "提示", {
452
+ confirmButtonText: d,
453
+ cancelButtonText: P,
425
454
  type: "warning"
426
455
  }).then(() => {
427
- var L, b;
428
- return (b = (L = _.popConfirm) == null ? void 0 : L.confirm) == null ? void 0 : b.call(L);
456
+ var T, g;
457
+ return (g = (T = _.popConfirm) == null ? void 0 : T.confirm) == null ? void 0 : g.call(T);
429
458
  }).catch(() => {
430
- var L, b;
431
- return (b = (L = _.popConfirm) == null ? void 0 : L.cancel) == null ? void 0 : b.call(L);
459
+ var T, g;
460
+ return (g = (T = _.popConfirm) == null ? void 0 : T.cancel) == null ? void 0 : g.call(T);
432
461
  });
433
462
  return;
434
463
  }
435
- (D = _.onClick) == null || D.call(_, {});
464
+ (z = _.onClick) == null || z.call(_, {});
436
465
  }
437
466
  } };
438
467
  }
439
468
  });
440
- var Ze = function() {
441
- var e = this, l = e._self._c, t = e._self._setupProxy;
442
- return l("div", { staticClass: "ecp-table-action" }, [e._l(t.visibleActions, function(n, u) {
443
- return l("span", { key: `action-${u}`, staticClass: "ecp-table-action__item" }, [n.popConfirm ? l("el-popconfirm", { attrs: { title: n.popConfirm.title, "confirm-button-text": n.popConfirm.okText || "确定", "cancel-button-text": n.popConfirm.cancelText || "取消" }, on: { confirm: function(a) {
469
+ var nt = function() {
470
+ var e = this, o = e._self._c, t = e._self._setupProxy;
471
+ return o("div", { staticClass: "ecp-table-action" }, [e._l(t.visibleActions, function(n, s) {
472
+ return o("span", { key: `action-${s}`, staticClass: "ecp-table-action__item" }, [n.popConfirm ? o("el-popconfirm", { attrs: { title: n.popConfirm.title, "confirm-button-text": n.popConfirm.okText || "确定", "cancel-button-text": n.popConfirm.cancelText || "取消" }, on: { confirm: function(a) {
444
473
  return t.handlePopConfirmConfirm(n, a);
445
474
  }, cancel: function(a) {
446
475
  return t.handlePopConfirmCancel(n, a);
447
- } } }, [l("span", { attrs: { slot: "reference" }, slot: "reference" }, [l(n.tooltip ? "el-tooltip" : "span", e._b({ tag: "component" }, "component", n.tooltip ? t.normalizeTooltip(n.tooltip) : {}, !1), [l("el-button", e._b({ attrs: { type: t.getButtonType(n), size: "small", disabled: n.disabled }, on: { click: function(a) {
476
+ } } }, [o("span", { attrs: { slot: "reference" }, slot: "reference" }, [o(n.tooltip ? "el-tooltip" : "span", e._b({ tag: "component" }, "component", n.tooltip ? t.normalizeTooltip(n.tooltip) : {}, !1), [o("el-button", e._b({ attrs: { type: t.getButtonType(n), size: "small", disabled: n.disabled }, on: { click: function(a) {
448
477
  return t.handleActionClick(n, a);
449
- } } }, "el-button", n.props, !1), [n.icon ? l("i", { class: ["ecp-table-action__icon", n.icon] }) : e._e(), l("span", [e._v(e._s(n.label))])])], 1)], 1)]) : l(n.tooltip ? "el-tooltip" : "span", e._b({ tag: "component" }, "component", n.tooltip ? t.normalizeTooltip(n.tooltip) : {}, !1), [l("el-button", e._b({ attrs: { type: t.getButtonType(n), size: "small", disabled: n.disabled }, on: { click: function(a) {
478
+ } } }, "el-button", n.props, !1), [n.icon ? o("i", { class: ["ecp-table-action__icon", n.icon] }) : e._e(), o("span", [e._v(e._s(n.label))])])], 1)], 1)]) : o(n.tooltip ? "el-tooltip" : "span", e._b({ tag: "component" }, "component", n.tooltip ? t.normalizeTooltip(n.tooltip) : {}, !1), [o("el-button", e._b({ attrs: { type: t.getButtonType(n), size: "small", disabled: n.disabled }, on: { click: function(a) {
450
479
  return t.handleActionClick(n, a);
451
- } } }, "el-button", n.props, !1), [n.icon ? l("i", { class: ["ecp-table-action__icon", n.icon] }) : e._e(), l("span", [e._v(e._s(n.label))])])], 1), n.divider ? l("el-divider", { attrs: { direction: "vertical" } }) : e._e()], 1);
452
- }), t.visibleDropDownActions.length ? l("el-dropdown", { attrs: { trigger: "click" }, on: { command: t.handleDropdownCommand } }, [l("span", { staticClass: "ecp-table-action__more" }, [l("el-button", { attrs: { type: "text", size: "small" } }, [e._v(" 更多"), l("i", { staticClass: "el-icon-arrow-down el-icon--right" })])], 1), l("el-dropdown-menu", { attrs: { slot: "dropdown" }, slot: "dropdown" }, e._l(t.visibleDropDownActions, function(n, u) {
453
- return l("el-dropdown-item", { key: `dropdown-${u}`, attrs: { command: u, disabled: n.disabled, divided: !!n.divider } }, [l("span", { staticClass: "ecp-table-action__dropdown-item" }, [n.icon ? l("i", { class: ["ecp-table-action__icon", n.icon] }) : e._e(), l("span", [e._v(e._s(n.label))])])]);
480
+ } } }, "el-button", n.props, !1), [n.icon ? o("i", { class: ["ecp-table-action__icon", n.icon] }) : e._e(), o("span", [e._v(e._s(n.label))])])], 1), n.divider ? o("el-divider", { attrs: { direction: "vertical" } }) : e._e()], 1);
481
+ }), t.visibleDropDownActions.length ? o("el-dropdown", { attrs: { trigger: "click" }, on: { command: t.handleDropdownCommand } }, [o("span", { staticClass: "ecp-table-action__more" }, [o("el-button", { attrs: { type: "text", size: "small" } }, [e._v(" 更多"), o("i", { staticClass: "el-icon-arrow-down el-icon--right" })])], 1), o("el-dropdown-menu", { attrs: { slot: "dropdown" }, slot: "dropdown" }, e._l(t.visibleDropDownActions, function(n, s) {
482
+ return o("el-dropdown-item", { key: `dropdown-${s}`, attrs: { command: s, disabled: n.disabled, divided: !!n.divider } }, [o("span", { staticClass: "ecp-table-action__dropdown-item" }, [n.icon ? o("i", { class: ["ecp-table-action__icon", n.icon] }) : e._e(), o("span", [e._v(e._s(n.label))])])]);
454
483
  }), 1)], 1) : e._e()], 2);
455
- }, Qe = [], Ye = /* @__PURE__ */ se(
456
- Xe,
457
- Ze,
458
- Qe,
484
+ }, lt = [], at = /* @__PURE__ */ ue(
485
+ ot,
486
+ nt,
487
+ lt,
459
488
  !1,
460
489
  null,
461
490
  "45a58e7c",
462
491
  null,
463
492
  null
464
493
  );
465
- const Ne = Ye.exports;
466
- function Nt(r) {
467
- const e = k(null), l = () => r ? fe(r) : void 0, t = () => {
468
- const a = fe(e);
494
+ const je = at.exports;
495
+ function Xt(i) {
496
+ const e = O(null), o = () => i ? ve(i) : void 0, t = () => {
497
+ const a = ve(e);
469
498
  if (!a)
470
499
  throw new Error("ProTable instance has not been registered");
471
500
  return a;
472
501
  }, n = (a) => {
473
502
  e.value = a;
474
- const f = l();
475
- f && Object.keys(f).length > 0 && a.setProps(f);
503
+ const h = o();
504
+ h && Object.keys(h).length > 0 && a.setProps(h);
476
505
  };
477
- return r && J(
478
- () => l(),
506
+ return i && ne(
507
+ () => o(),
479
508
  (a) => {
480
509
  a && e.value && e.value.setProps(a);
481
510
  },
@@ -496,25 +525,25 @@ function Nt(r) {
496
525
  clearSelectedRowKeys: () => t().clearSelectedRowKeys(),
497
526
  setSelectedRowKeys: (a) => t().setSelectedRowKeys(a),
498
527
  deleteSelectRowByKey: (a) => t().deleteSelectRowByKey(a),
499
- updateTableData: (a, f, i) => t().updateTableData(a, f, i),
500
- updateTableDataRecord: (a, f) => t().updateTableDataRecord(a, f),
528
+ updateTableData: (a, h, c) => t().updateTableData(a, h, c),
529
+ updateTableDataRecord: (a, h) => t().updateTableDataRecord(a, h),
501
530
  deleteTableDataRecord: (a) => t().deleteTableDataRecord(a),
502
- insertTableDataRecord: (a, f) => t().insertTableDataRecord(a, f),
531
+ insertTableDataRecord: (a, h) => t().insertTableDataRecord(a, h),
503
532
  getPaginationRef: () => t().getPaginationRef(),
504
533
  getShowPagination: () => t().getShowPagination(),
505
534
  setShowPagination: (a) => t().setShowPagination(a),
506
535
  getRowSelection: () => t().getRowSelection(),
507
536
  expandAll: () => {
508
- var a, f;
509
- return (f = (a = t()).expandAll) == null ? void 0 : f.call(a);
537
+ var a, h;
538
+ return (h = (a = t()).expandAll) == null ? void 0 : h.call(a);
510
539
  },
511
540
  collapseAll: () => {
512
- var a, f;
513
- return (f = (a = t()).collapseAll) == null ? void 0 : f.call(a);
541
+ var a, h;
542
+ return (h = (a = t()).collapseAll) == null ? void 0 : h.call(a);
514
543
  }
515
544
  }];
516
545
  }
517
- const et = /* @__PURE__ */ oe({
546
+ const rt = /* @__PURE__ */ ie({
518
547
  __name: "ApiSelect",
519
548
  props: {
520
549
  value: null,
@@ -530,248 +559,248 @@ const et = /* @__PURE__ */ oe({
530
559
  multiple: { type: Boolean }
531
560
  },
532
561
  emits: ["input"],
533
- setup(r) {
534
- const e = r, l = k(!1), t = k([]), n = (a) => {
535
- e.lazy && a && u();
536
- }, u = async () => {
562
+ setup(i) {
563
+ const e = i, o = O(!1), t = O([]), n = (a) => {
564
+ e.lazy && a && s();
565
+ }, s = async () => {
537
566
  if (e.api) {
538
- l.value = !0;
567
+ o.value = !0;
539
568
  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) ?? [], i = e.labelField ?? "label", g = e.valueField ?? "value";
541
- t.value = f.map((z) => {
542
- const m = z;
569
+ const a = await e.api(e.params), h = Array.isArray(a) ? a : (a == null ? void 0 : a.list) ?? (a == null ? void 0 : a.data) ?? [], c = e.labelField ?? "label", y = e.valueField ?? "value";
570
+ t.value = h.map((E) => {
571
+ const b = E;
543
572
  return {
544
- label: String(m[i] ?? m.label ?? ""),
545
- value: m[g] ?? m.value
573
+ label: String(b[c] ?? b.label ?? ""),
574
+ value: b[y] ?? b.value
546
575
  };
547
576
  });
548
577
  } finally {
549
- l.value = !1;
578
+ o.value = !1;
550
579
  }
551
580
  }
552
581
  };
553
- return me(() => {
554
- e.lazy || u();
555
- }), J(
582
+ return ge(() => {
583
+ e.lazy || s();
584
+ }), ne(
556
585
  () => e.api,
557
586
  () => {
558
- e.lazy ? t.value = [] : u();
587
+ e.lazy ? t.value = [] : s();
559
588
  },
560
589
  { deep: !0 }
561
- ), J(() => e.params, () => {
562
- e.lazy ? t.value = [] : u();
563
- }, { deep: !0 }), { __sfc: !0, props: e, loading: l, options: t, onVisibleChange: n, fetchOptions: u };
590
+ ), ne(() => e.params, () => {
591
+ e.lazy ? t.value = [] : s();
592
+ }, { deep: !0 }), { __sfc: !0, props: e, loading: o, options: t, onVisibleChange: n, fetchOptions: s };
564
593
  }
565
594
  });
566
- var tt = function() {
567
- var e = this, l = e._self._c, t = e._self._setupProxy;
568
- return l("el-select", e._b({ attrs: { value: e.value, placeholder: e.placeholder, disabled: e.disabled, loading: t.loading, clearable: e.clearable, filterable: e.filterable, multiple: e.multiple }, on: { input: function(n) {
595
+ var st = function() {
596
+ var e = this, o = e._self._c, t = e._self._setupProxy;
597
+ return o("el-select", e._b({ attrs: { value: e.value, placeholder: e.placeholder, disabled: e.disabled, loading: t.loading, clearable: e.clearable, filterable: e.filterable, multiple: e.multiple }, on: { input: function(n) {
569
598
  return e.$emit("input", n);
570
599
  }, "visible-change": t.onVisibleChange } }, "el-select", e.$attrs, !1), e._l(t.options, function(n) {
571
- return l("el-option", { key: String(n.value), attrs: { label: n.label, value: n.value } });
600
+ return o("el-option", { key: String(n.value), attrs: { label: n.label, value: n.value } });
572
601
  }), 1);
573
- }, lt = [], ot = /* @__PURE__ */ se(
574
- et,
575
- tt,
576
- lt,
602
+ }, it = [], ct = /* @__PURE__ */ ue(
603
+ rt,
604
+ st,
605
+ it,
577
606
  !1,
578
607
  null,
579
608
  null,
580
609
  null,
581
610
  null
582
611
  );
583
- const nt = ot.exports;
584
- function $e(r) {
585
- const e = r.trim();
612
+ const ut = ct.exports;
613
+ function Ie(i) {
614
+ const e = i.trim();
586
615
  if (!e)
587
616
  return "";
588
- let l = 0, t = "";
589
- e[0] === "-" && (t = "-", l = 1);
617
+ let o = 0, t = "";
618
+ e[0] === "-" && (t = "-", o = 1);
590
619
  let n = !1;
591
- for (; l < e.length; l++) {
592
- const u = e[l];
593
- if (u >= "0" && u <= "9") {
594
- t += u;
620
+ for (; o < e.length; o++) {
621
+ const s = e[o];
622
+ if (s >= "0" && s <= "9") {
623
+ t += s;
595
624
  continue;
596
625
  }
597
- u === "." && !n && (n = !0, (t === "" || t === "-") && (t += "0"), t += ".");
626
+ s === "." && !n && (n = !0, (t === "" || t === "-") && (t += "0"), t += ".");
598
627
  }
599
628
  return t;
600
629
  }
601
- function Pe(r) {
602
- return r.replace(/,/g, "").trim();
630
+ function Re(i) {
631
+ return i.replace(/,/g, "").trim();
603
632
  }
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;
633
+ function dt(i, e, o) {
634
+ if (!i || i === "-")
635
+ return i;
636
+ const t = i[0] === "-";
637
+ let n = t ? i.slice(1) : i;
638
+ const s = n.indexOf(".");
639
+ if (s === -1) {
640
+ const E = Math.max(0, e);
641
+ return n = E > 0 ? n.slice(0, E) : n, t ? "-" + n : n;
613
642
  }
614
- let a = n.slice(0, u);
643
+ let a = n.slice(0, s);
615
644
  e > 0 && (a = a.slice(0, e));
616
- const f = n.slice(u + 1), i = f === "" && n.endsWith(".");
617
- if (l <= 0)
645
+ const h = n.slice(s + 1), c = h === "" && n.endsWith(".");
646
+ if (o <= 0)
618
647
  return t ? "-" + a : a;
619
- if (i)
648
+ if (c)
620
649
  return (t ? "-" : "") + a + ".";
621
- const g = f.slice(0, l);
622
- return (t ? "-" : "") + a + "." + g;
650
+ const y = h.slice(0, o);
651
+ return (t ? "-" : "") + a + "." + y;
623
652
  }
624
- function st(r, e) {
625
- const l = Math.pow(10, r) - 1;
626
- return e <= 0 ? l : l + (1 - Math.pow(10, -e));
653
+ function ft(i, e) {
654
+ const o = Math.pow(10, i) - 1;
655
+ return e <= 0 ? o : o + (1 - Math.pow(10, -e));
627
656
  }
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;
657
+ function Ee(i, e, o) {
658
+ const t = ft(e, o), n = i < 0 ? -1 : 1;
659
+ return Math.abs(i) <= t ? i : n * t;
631
660
  }
632
- function rt(r, e, l) {
661
+ function pt(i, e, o) {
633
662
  if (e <= 0)
634
- switch (l) {
663
+ switch (o) {
635
664
  case "floor":
636
- return Math.floor(r);
665
+ return Math.floor(i);
637
666
  case "ceil":
638
- return Math.ceil(r);
667
+ return Math.ceil(i);
639
668
  default:
640
- return Math.round(r);
669
+ return Math.round(i);
641
670
  }
642
- const t = Math.pow(10, e), n = r * t;
643
- let u;
644
- switch (l) {
671
+ const t = Math.pow(10, e), n = i * t;
672
+ let s;
673
+ switch (o) {
645
674
  case "floor":
646
- u = Math.floor(n);
675
+ s = Math.floor(n);
647
676
  break;
648
677
  case "ceil":
649
- u = Math.ceil(n);
678
+ s = Math.ceil(n);
650
679
  break;
651
680
  default:
652
- u = Math.round(n);
681
+ s = Math.round(n);
653
682
  }
654
- return u / t;
683
+ return s / t;
655
684
  }
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;
685
+ function Se(i, e, o, t) {
686
+ let n = Ee(i, e, o);
687
+ return n = pt(n, o, t), n = Ee(n, e, o), n;
659
688
  }
660
- function it(r, e) {
661
- return Number.isNaN(r) || !Number.isFinite(r) ? "" : r.toFixed(Math.max(0, e));
689
+ function mt(i, e) {
690
+ return Number.isNaN(i) || !Number.isFinite(i) ? "" : i.toFixed(Math.max(0, e));
662
691
  }
663
- function Ie(r, e) {
664
- if (Number.isNaN(r) || !Number.isFinite(r))
692
+ function We(i, e) {
693
+ if (Number.isNaN(i) || !Number.isFinite(i))
665
694
  return "";
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, ",");
667
- return e <= 0 || a === void 0 ? (t ? "-" : "") + f : (t ? "-" : "") + f + "." + a;
695
+ const o = i.toFixed(Math.max(0, e)), t = o.startsWith("-"), n = t ? o.slice(1) : o, [s, a] = n.split("."), h = s.replace(/\B(?=(\d{3})+(?!\d))/g, ",");
696
+ return e <= 0 || a === void 0 ? (t ? "-" : "") + h : (t ? "-" : "") + h + "." + a;
668
697
  }
669
- function ct(r, e) {
670
- if (Number.isNaN(r) || !Number.isFinite(r))
698
+ function vt(i, e) {
699
+ if (Number.isNaN(i) || !Number.isFinite(i))
671
700
  return "";
672
- let l = r.toFixed(Math.max(0, e));
673
- return l = l.replace(/(\.\d*?)0+$/, "$1"), l = l.replace(/\.$/, ""), l;
701
+ let o = i.toFixed(Math.max(0, e));
702
+ return o = o.replace(/(\.\d*?)0+$/, "$1"), o = o.replace(/\.$/, ""), o;
674
703
  }
675
- const ut = /* @__PURE__ */ oe({
704
+ const ht = /* @__PURE__ */ ie({
676
705
  __name: "FormattedNumberInput",
677
706
  props: {
678
707
  value: null,
679
708
  placeholder: null,
680
709
  disabled: { type: Boolean },
681
- integerDigits: { default: 5 },
710
+ integerDigits: { default: 6 },
682
711
  decimalPlaces: { default: 6 },
683
712
  rounding: { default: "round" },
684
713
  inputLimit: { type: Boolean, default: !0 }
685
714
  },
686
715
  emits: ["input"],
687
- setup(r, { emit: e }) {
688
- const l = r, t = k(!1), n = k(""), u = () => Math.max(0, Math.floor(l.integerDigits ?? 6)), a = () => Math.max(0, Math.floor(l.decimalPlaces ?? 6));
689
- function f(d) {
690
- if (d == null || d === "")
716
+ setup(i, { emit: e }) {
717
+ const o = i, t = O(!1), n = O(""), s = () => Math.max(0, Math.floor(o.integerDigits ?? 6)), a = () => Math.max(0, Math.floor(o.decimalPlaces ?? 6));
718
+ function h(f) {
719
+ if (f == null || f === "")
691
720
  return null;
692
- if (typeof d == "number")
693
- return Number.isFinite(d) ? d : null;
694
- const x = Pe(String(d));
695
- if (x === "" || x === "-")
721
+ if (typeof f == "number")
722
+ return Number.isFinite(f) ? f : null;
723
+ const S = Re(String(f));
724
+ if (S === "" || S === "-")
696
725
  return null;
697
- const _ = Number(x);
726
+ const _ = Number(S);
698
727
  return Number.isFinite(_) ? _ : null;
699
728
  }
700
- function i() {
729
+ function c() {
701
730
  if (t.value)
702
731
  return;
703
- const d = f(l.value);
704
- if (d === null) {
732
+ const f = h(o.value);
733
+ if (f === null) {
705
734
  n.value = "";
706
735
  return;
707
736
  }
708
- n.value = Ie(
709
- Ce(d, u(), a(), l.rounding),
737
+ n.value = We(
738
+ Se(f, s(), a(), o.rounding),
710
739
  a()
711
740
  );
712
741
  }
713
- J(
714
- () => [l.value, l.integerDigits, l.decimalPlaces, l.rounding],
715
- () => i(),
742
+ ne(
743
+ () => [o.value, o.integerDigits, o.decimalPlaces, o.rounding],
744
+ () => c(),
716
745
  { immediate: !0, deep: !0 }
717
746
  );
718
- function g(d) {
719
- e("input", it(d, a()));
747
+ function y(f) {
748
+ e("input", mt(f, a()));
720
749
  }
721
- function z(d) {
722
- let x = $e(d);
723
- if (l.inputLimit !== !1 && (x = at(x, u(), a())), n.value = x, x === "" || x === "-")
750
+ function E(f) {
751
+ let S = Ie(f);
752
+ if (o.inputLimit !== !1 && (S = dt(S, s(), a())), n.value = S, S === "" || S === "-")
724
753
  return;
725
- const _ = Number(x);
754
+ const _ = Number(S);
726
755
  if (!Number.isFinite(_))
727
756
  return;
728
- const D = Ce(_, u(), a(), l.rounding);
729
- g(D);
757
+ const z = Se(_, s(), a(), o.rounding);
758
+ y(z);
730
759
  }
731
- function m() {
760
+ function b() {
732
761
  t.value = !0;
733
- const d = Pe(n.value), x = f(d === "" ? l.value : d);
734
- if (x === null) {
762
+ const f = Re(n.value), S = h(f === "" ? o.value : f);
763
+ if (S === null) {
735
764
  n.value = "";
736
765
  return;
737
766
  }
738
- n.value = ct(
739
- Ce(x, u(), a(), l.rounding),
767
+ n.value = vt(
768
+ Se(S, s(), a(), o.rounding),
740
769
  a()
741
770
  );
742
771
  }
743
- function P() {
772
+ function F() {
744
773
  t.value = !1;
745
- const d = Pe(n.value);
746
- if (d === "" || d === "-") {
774
+ const f = Re(n.value);
775
+ if (f === "" || f === "-") {
747
776
  n.value = "", e("input", void 0);
748
777
  return;
749
778
  }
750
- const x = Number($e(d));
751
- if (!Number.isFinite(x)) {
779
+ const S = Number(Ie(f));
780
+ if (!Number.isFinite(S)) {
752
781
  n.value = "", e("input", void 0);
753
782
  return;
754
783
  }
755
- const _ = Ce(x, u(), a(), l.rounding);
756
- n.value = Ie(_, a()), g(_);
784
+ const _ = Se(S, s(), a(), o.rounding);
785
+ n.value = We(_, a()), y(_);
757
786
  }
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 };
787
+ return { __sfc: !0, props: o, emit: e, focused: t, displayText: n, intN: s, decM: a, parseExternalToNumber: h, syncDisplayFromValue: c, emitStoredValue: y, onInput: E, onFocus: b, onBlur: F };
759
788
  }
760
789
  });
761
- var dt = function() {
762
- var e = this, l = e._self._c, t = e._self._setupProxy;
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));
764
- }, ft = [], pt = /* @__PURE__ */ se(
765
- ut,
766
- dt,
767
- ft,
790
+ var _t = function() {
791
+ var e = this, o = e._self._c, t = e._self._setupProxy;
792
+ return o("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));
793
+ }, bt = [], gt = /* @__PURE__ */ ue(
794
+ ht,
795
+ _t,
796
+ bt,
768
797
  !1,
769
798
  null,
770
799
  null,
771
800
  null,
772
801
  null
773
802
  );
774
- const Ae = pt.exports, mt = /* @__PURE__ */ oe({
803
+ const Fe = gt.exports, yt = /* @__PURE__ */ ie({
775
804
  __name: "TreeSelect",
776
805
  props: {
777
806
  value: null,
@@ -788,107 +817,107 @@ const Ae = pt.exports, mt = /* @__PURE__ */ oe({
788
817
  clearable: { type: Boolean }
789
818
  },
790
819
  emits: ["input"],
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(() => ({
793
- label: l.labelField,
794
- children: l.childrenField
820
+ setup(i, { emit: e }) {
821
+ const o = i, t = O(), n = O(), s = O(!1), a = O(!1), h = O(""), c = O([]), y = O({}), E = C(() => ({
822
+ label: o.labelField,
823
+ children: o.childrenField
795
824
  }));
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;
825
+ function b(M) {
826
+ const R = o.labelField ?? "label", q = o.valueField ?? "value", X = o.childrenField ?? "children", le = M[X], ee = {};
827
+ return ee[o.labelField ?? "label"] = M[R] ?? M.label, ee[o.valueField ?? "value"] = M[q] ?? M.value, Array.isArray(le) && le.length && (ee[o.childrenField ?? "children"] = le.map((U) => b(U))), ee;
799
828
  }
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) {
803
- const Q = String(q[Z] ?? q.label ?? ""), U = q[ee] ?? q.value;
804
- U != null && (W[String(U)] = N ? N + " / " + Q : Q);
805
- const Y = q[H] ?? q.children;
806
- Array.isArray(Y) && Y.length && Object.assign(W, P(Y, Q));
829
+ function F(M, R = "") {
830
+ const q = {}, X = o.labelField ?? "label", le = o.valueField ?? "value", ee = o.childrenField ?? "children";
831
+ for (const U of M) {
832
+ const ae = String(U[X] ?? U.label ?? ""), Z = U[le] ?? U.value;
833
+ Z != null && (q[String(Z)] = R ? R + " / " + ae : ae);
834
+ const te = U[ee] ?? U.children;
835
+ Array.isArray(te) && te.length && Object.assign(q, F(te, ae));
807
836
  }
808
- return W;
837
+ return q;
809
838
  }
810
- function d() {
811
- const R = l.treeData;
812
- return Array.isArray(R) && R.length > 0;
839
+ function f() {
840
+ const M = o.treeData;
841
+ return Array.isArray(M) && M.length > 0;
813
842
  }
814
- function x(R) {
815
- i.value = R, g.value = P(R);
843
+ function S(M) {
844
+ c.value = M, y.value = F(M);
816
845
  }
817
846
  function _() {
818
- const R = l.treeData;
819
- if (!Array.isArray(R) || R.length === 0)
847
+ const M = o.treeData;
848
+ if (!Array.isArray(M) || M.length === 0)
820
849
  return;
821
- const N = R.map((W) => m(W));
822
- x(N);
850
+ const R = M.map((q) => b(q));
851
+ S(R);
823
852
  }
824
- const D = F(() => l.value == null || l.value === "" ? "" : g.value[String(l.value)] ?? String(l.value)), I = (R, N) => {
825
- if (!R)
853
+ const z = C(() => o.value == null || o.value === "" ? "" : y.value[String(o.value)] ?? String(o.value)), J = (M, R) => {
854
+ if (!M)
826
855
  return !0;
827
- const W = l.labelField ?? "label";
828
- return String(N[W] ?? N.label ?? "").toLowerCase().includes(R.toLowerCase());
856
+ const q = o.labelField ?? "label";
857
+ return String(R[q] ?? R.label ?? "").toLowerCase().includes(M.toLowerCase());
829
858
  };
830
- J(f, (R) => {
831
- var N;
832
- (N = n.value) == null || N.filter(R);
859
+ ne(h, (M) => {
860
+ var R;
861
+ (R = n.value) == null || R.filter(M);
833
862
  });
834
- let y = null;
835
- function v() {
836
- l.disabled || (u.value = !0, l.lazy && !d() && j(), Oe(() => {
837
- y = (R) => {
838
- t.value && !t.value.contains(R.target) && L();
839
- }, document.addEventListener("click", y);
863
+ let d = null;
864
+ function P() {
865
+ o.disabled || (s.value = !0, o.lazy && !f() && G(), Le(() => {
866
+ d = (M) => {
867
+ t.value && !t.value.contains(M.target) && T();
868
+ }, document.addEventListener("click", d);
840
869
  }));
841
870
  }
842
- function L() {
843
- u.value = !1, f.value = "", y && (document.removeEventListener("click", y), y = null);
871
+ function T() {
872
+ s.value = !1, h.value = "", d && (document.removeEventListener("click", d), d = null);
844
873
  }
845
- function b() {
874
+ function g() {
846
875
  e("input", void 0);
847
876
  }
848
- function M(R) {
849
- const N = l.valueField ?? "value", W = R[N] ?? R.value;
850
- e("input", W), L();
877
+ function j(M) {
878
+ const R = o.valueField ?? "value", q = M[R] ?? M.value;
879
+ e("input", q), T();
851
880
  }
852
- async function j() {
853
- if (!(!l.api || d())) {
881
+ async function G() {
882
+ if (!(!o.api || f())) {
854
883
  a.value = !0;
855
884
  try {
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);
885
+ const M = await o.api(o.params), R = Array.isArray(M) ? M : (M == null ? void 0 : M.list) ?? (M == null ? void 0 : M.data) ?? [];
886
+ c.value = R.map((q) => b(q)), y.value = F(c.value);
858
887
  } finally {
859
888
  a.value = !1;
860
889
  }
861
890
  }
862
891
  }
863
- return me(() => {
864
- d() ? _() : l.lazy || j();
865
- }), J(() => l.treeData, () => {
866
- d() ? _() : (i.value = [], g.value = {}, !l.lazy && l.api && j());
867
- }, { deep: !0 }), J(() => l.api, () => {
868
- d() || (l.lazy ? (i.value = [], g.value = {}) : j());
869
- }, { deep: !0 }), J(() => l.params, () => {
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 };
892
+ return ge(() => {
893
+ f() ? _() : o.lazy || G();
894
+ }), ne(() => o.treeData, () => {
895
+ f() ? _() : (c.value = [], y.value = {}, !o.lazy && o.api && G());
896
+ }, { deep: !0 }), ne(() => o.api, () => {
897
+ f() || (o.lazy ? (c.value = [], y.value = {}) : G());
898
+ }, { deep: !0 }), ne(() => o.params, () => {
899
+ f() || (o.lazy ? (c.value = [], y.value = {}) : G());
900
+ }, { deep: !0 }), { __sfc: !0, props: o, emit: e, rootRef: t, treeRef: n, dropdownVisible: s, loading: a, filterText: h, treeData: c, flatLabelMap: y, treeProps: E, normalizeNode: b, buildFlatLabelMap: F, hasTreeDataProp: f, applyTreeData: S, syncFromTreeDataProp: _, displayText: z, filterNodeMethod: J, clickOutsideHandler: d, openDropdown: P, closeDropdown: T, clearValue: g, onNodeClick: j, fetchData: G };
872
901
  }
873
902
  });
874
- var vt = function() {
875
- var e = this, l = e._self._c, t = e._self._setupProxy;
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) {
903
+ var wt = function() {
904
+ var e = this, o = e._self._c, t = e._self._setupProxy;
905
+ return o("div", { ref: "rootRef", staticClass: "ecp-tree-select" }, [o("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 } }), o("transition", { attrs: { name: "el-zoom-in-top" } }, [o("div", { directives: [{ name: "show", rawName: "v-show", value: t.dropdownVisible, expression: "dropdownVisible" }], staticClass: "ecp-tree-select__dropdown" }, [e.filterable ? o("div", { staticClass: "ecp-tree-select__filter-inner" }, [o("el-input", { attrs: { size: "small", placeholder: "搜索节点", "prefix-icon": "el-icon-search", clearable: "" }, nativeOn: { click: function(n) {
877
906
  n.stopPropagation();
878
907
  } }, model: { value: t.filterText, callback: function(n) {
879
908
  t.filterText = n;
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);
881
- }, ht = [], _t = /* @__PURE__ */ se(
882
- mt,
883
- vt,
884
- ht,
909
+ }, expression: "filterText" } })], 1) : e._e(), o("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 ? o("div", { staticClass: "ecp-tree-select__loading" }, [o("i", { staticClass: "el-icon-loading" }), e._v(" 加载中... ")]) : e._e()], 1)])], 1);
910
+ }, Ct = [], xt = /* @__PURE__ */ ue(
911
+ yt,
912
+ wt,
913
+ Ct,
885
914
  !1,
886
915
  null,
887
916
  "f30bba11",
888
917
  null,
889
918
  null
890
919
  );
891
- const bt = _t.exports, gt = /* @__PURE__ */ oe({
920
+ const Pt = xt.exports, St = /* @__PURE__ */ ie({
892
921
  __name: "ProFormItem",
893
922
  props: {
894
923
  schema: null,
@@ -900,8 +929,8 @@ const bt = _t.exports, gt = /* @__PURE__ */ oe({
900
929
  onFieldChange: null,
901
930
  customComponents: null
902
931
  },
903
- setup(r) {
904
- const e = r, l = /* @__PURE__ */ new Set([
932
+ setup(i) {
933
+ const e = i, o = /* @__PURE__ */ new Set([
905
934
  "input",
906
935
  "select",
907
936
  "api-select",
@@ -914,107 +943,107 @@ const bt = _t.exports, gt = /* @__PURE__ */ oe({
914
943
  "cascader",
915
944
  "checkbox",
916
945
  "radio"
917
- ]), t = Se(), n = F(() => ({
946
+ ]), t = Me(), n = C(() => ({
918
947
  schema: e.schema,
919
948
  values: e.formModel,
920
949
  model: e.formModel,
921
950
  field: e.schema.field
922
- })), u = F(() => {
923
- const b = e.schema.ifShow;
924
- return b === void 0 ? !0 : typeof b == "boolean" ? b : b(n.value);
925
- }), a = F(() => {
926
- const b = e.schema.show;
927
- return b === void 0 ? !0 : typeof b == "boolean" ? b : b(n.value);
928
- }), f = F(() => {
951
+ })), s = C(() => {
952
+ const g = e.schema.ifShow;
953
+ return g === void 0 ? !0 : typeof g == "boolean" ? g : g(n.value);
954
+ }), a = C(() => {
955
+ const g = e.schema.show;
956
+ return g === void 0 ? !0 : typeof g == "boolean" ? g : g(n.value);
957
+ }), h = C(() => {
929
958
  if (e.formDisabled)
930
959
  return !0;
931
- const b = e.schema.dynamicDisabled;
932
- return b === void 0 ? !1 : typeof b == "boolean" ? b : b(n.value);
933
- }), i = F(() => {
934
- const b = e.schema.dynamicRules;
935
- return b ? Array.isArray(b) ? b : b(n.value) : e.schema.rules;
936
- }), g = F(() => {
937
- const b = e.schema.componentProps;
938
- if (!b)
960
+ const g = e.schema.dynamicDisabled;
961
+ return g === void 0 ? !1 : typeof g == "boolean" ? g : g(n.value);
962
+ }), c = C(() => {
963
+ const g = e.schema.dynamicRules;
964
+ return g ? Array.isArray(g) ? g : g(n.value) : e.schema.rules;
965
+ }), y = C(() => {
966
+ const g = e.schema.componentProps;
967
+ if (!g)
939
968
  return { props: {}, listeners: {} };
940
- const M = typeof b == "function" ? b({
969
+ const j = typeof g == "function" ? g({
941
970
  ...n.value,
942
971
  formActionType: e.formActionType
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") {
946
- const Z = N.slice(2).charAt(0).toLowerCase() + N.slice(3);
947
- R[Z] = W;
972
+ }) : { ...g }, G = {}, M = {};
973
+ for (const [R, q] of Object.entries(j))
974
+ if (R.length > 2 && /^on[A-Za-z]/.test(R) && typeof q == "function") {
975
+ const X = R.slice(2).charAt(0).toLowerCase() + R.slice(3);
976
+ M[X] = q;
948
977
  } else
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(() => {
952
- const b = e.schema.tooltip;
953
- if (!b)
978
+ G[R] = q;
979
+ return { props: G, listeners: M };
980
+ }), E = C(() => y.value.props), b = C(() => y.value.listeners), F = C(() => e.schema.colon ?? e.colon ?? !1), f = C(() => {
981
+ const g = e.schema.tooltip;
982
+ if (!g)
954
983
  return null;
955
- const M = typeof b == "function" ? b(n.value) : b;
956
- return Be(M, e.formModel[e.schema.field]);
957
- }), x = F(() => d.value ? "el-tooltip" : "span"), _ = F(() => d.value || {}), D = F(() => !!t.default), I = (b) => {
958
- const M = b == null ? void 0 : b.options;
959
- return Array.isArray(M) ? M : void 0;
960
- }, y = F(() => {
961
- const b = e.schema.component;
962
- return b == null ? null : typeof b == "string" ? l.has(b) ? null : e.customComponents && e.customComponents[b] || b : b;
963
- }), v = (b) => {
964
- var M;
965
- (M = e.onFieldChange) == null || M.call(e, e.schema.field, b);
966
- }, L = F(() => {
967
- const b = e.schema.render;
968
- return b ? {
984
+ const j = typeof g == "function" ? g(n.value) : g;
985
+ return $e(j, e.formModel[e.schema.field]);
986
+ }), S = C(() => f.value ? "el-tooltip" : "span"), _ = C(() => f.value || {}), z = C(() => !!t.default), J = (g) => {
987
+ const j = g == null ? void 0 : g.options;
988
+ return Array.isArray(j) ? j : void 0;
989
+ }, d = C(() => {
990
+ const g = e.schema.component;
991
+ return g == null ? null : typeof g == "string" ? o.has(g) ? null : e.customComponents && e.customComponents[g] || g : g;
992
+ }), P = (g) => {
993
+ var j;
994
+ (j = e.onFieldChange) == null || j.call(e, e.schema.field, g);
995
+ }, T = C(() => {
996
+ const g = e.schema.render;
997
+ return g ? {
969
998
  render() {
970
- const M = b(n.value);
971
- return Array.isArray(M) ? ue("span", M) : M;
999
+ const j = g(n.value);
1000
+ return Array.isArray(j) ? pe("span", j) : j;
972
1001
  }
973
1002
  } : null;
974
1003
  });
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 };
1004
+ return { __sfc: !0, BUILT_IN_COMPONENTS: o, props: e, slots: t, renderParams: n, shouldRender: s, shouldShow: a, effectiveDisabled: h, effectiveRules: c, effectiveComponentPropsAndListeners: y, effectiveComponentProps: E, effectiveComponentListeners: b, showColon: F, normalizedTooltip: f, fieldWrapperComponent: S, fieldWrapperProps: _, hasSlot: z, getOptions: J, resolvedCustomComponent: d, setFieldValue: P, renderComponent: T, ApiSelect: ut, FormattedNumberInput: Fe, TreeSelect: Pt };
976
1005
  }
977
1006
  });
978
- var yt = function() {
979
- var e = this, l = e._self._c, t = e._self._setupProxy;
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) {
981
- return l("div", { key: u, staticClass: "ecp-pro-form-item__help-item" }, [e._v(" " + e._s(n) + " ")]);
982
- }) : l("span", [e._v(e._s(e.schema.helpMessage))])], 2), l("i", { staticClass: "el-icon-question ecp-pro-form-item__help-icon" })], 2) : e._e()], 1), e.schema.render ? [l(t.renderComponent, { tag: "component" })] : t.hasSlot ? e._t("default", null, { model: e.formModel, schema: e.schema, field: e.schema.field, values: e.formModel }) : [l(t.fieldWrapperComponent, e._b({ tag: "component" }, "component", t.fieldWrapperProps, !1), [t.resolvedCustomComponent ? l(t.resolvedCustomComponent, e._g(e._b({ tag: "component", attrs: { value: e.formModel[e.schema.field], placeholder: e.schema.placeholder || (e.autoPlaceholder ? `请输入${e.schema.label}` : void 0), disabled: t.effectiveDisabled }, on: { input: t.setFieldValue } }, "component", t.effectiveComponentProps, !1), t.effectiveComponentListeners)) : e.schema.component === "input" || !e.schema.component ? l("el-input", e._g(e._b({ attrs: { placeholder: e.schema.placeholder || (e.autoPlaceholder ? `请输入${e.schema.label}` : void 0), disabled: t.effectiveDisabled }, model: { value: e.formModel[e.schema.field], callback: function(n) {
1007
+ var Ft = function() {
1008
+ var e = this, o = e._self._c, t = e._self._setupProxy;
1009
+ return t.shouldRender ? o("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 } }, [o("template", { slot: "label" }, [o("span", [e._v(" " + e._s(e.schema.label)), t.showColon ? o("span", { staticClass: "ecp-pro-form-item__colon" }, [e._v(":")]) : e._e()]), e.schema.helpMessage ? o("el-tooltip", e._b({ attrs: { placement: "top", effect: "light" } }, "el-tooltip", e.schema.helpComponentProps || {}, !1), [o("template", { slot: "content" }, [Array.isArray(e.schema.helpMessage) ? e._l(e.schema.helpMessage, function(n, s) {
1010
+ return o("div", { key: s, staticClass: "ecp-pro-form-item__help-item" }, [e._v(" " + e._s(n) + " ")]);
1011
+ }) : o("span", [e._v(e._s(e.schema.helpMessage))])], 2), o("i", { staticClass: "el-icon-question ecp-pro-form-item__help-icon" })], 2) : e._e()], 1), e.schema.render ? [o(t.renderComponent, { tag: "component" })] : t.hasSlot ? e._t("default", null, { model: e.formModel, schema: e.schema, field: e.schema.field, values: e.formModel }) : [o(t.fieldWrapperComponent, e._b({ tag: "component" }, "component", t.fieldWrapperProps, !1), [t.resolvedCustomComponent ? o(t.resolvedCustomComponent, e._g(e._b({ tag: "component", attrs: { value: e.formModel[e.schema.field], placeholder: e.schema.placeholder || (e.autoPlaceholder ? `请输入${e.schema.label}` : void 0), disabled: t.effectiveDisabled }, on: { input: t.setFieldValue } }, "component", t.effectiveComponentProps, !1), t.effectiveComponentListeners)) : e.schema.component === "input" || !e.schema.component ? o("el-input", e._g(e._b({ attrs: { placeholder: e.schema.placeholder || (e.autoPlaceholder ? `请输入${e.schema.label}` : void 0), disabled: t.effectiveDisabled }, model: { value: e.formModel[e.schema.field], callback: function(n) {
983
1012
  e.$set(e.formModel, e.schema.field, n);
984
- }, expression: "formModel[schema.field]" } }, "el-input", t.effectiveComponentProps, !1), t.effectiveComponentListeners)) : e.schema.component === "input-number" ? l("el-input-number", e._g(e._b({ attrs: { placeholder: e.schema.placeholder, disabled: t.effectiveDisabled }, model: { value: e.formModel[e.schema.field], callback: function(n) {
1013
+ }, expression: "formModel[schema.field]" } }, "el-input", t.effectiveComponentProps, !1), t.effectiveComponentListeners)) : e.schema.component === "input-number" ? o("el-input-number", e._g(e._b({ attrs: { placeholder: e.schema.placeholder, disabled: t.effectiveDisabled }, model: { value: e.formModel[e.schema.field], callback: function(n) {
985
1014
  e.$set(e.formModel, e.schema.field, n);
986
- }, expression: "formModel[schema.field]" } }, "el-input-number", t.effectiveComponentProps, !1), t.effectiveComponentListeners)) : e.schema.component === "formatted-number" ? l(t.FormattedNumberInput, e._g(e._b({ attrs: { value: e.formModel[e.schema.field], placeholder: e.schema.placeholder || (e.autoPlaceholder ? `请输入${e.schema.label}` : void 0), disabled: t.effectiveDisabled }, on: { input: t.setFieldValue } }, "FormattedNumberInput", t.effectiveComponentProps, !1), t.effectiveComponentListeners)) : e.schema.component === "select" ? l("el-select", e._g(e._b({ staticClass: "ecp-pro-form-item__select", attrs: { placeholder: e.schema.placeholder || (e.autoPlaceholder ? `请选择${e.schema.label}` : void 0), disabled: t.effectiveDisabled }, model: { value: e.formModel[e.schema.field], callback: function(n) {
1015
+ }, expression: "formModel[schema.field]" } }, "el-input-number", t.effectiveComponentProps, !1), t.effectiveComponentListeners)) : e.schema.component === "formatted-number" ? o(t.FormattedNumberInput, e._g(e._b({ attrs: { value: e.formModel[e.schema.field], placeholder: e.schema.placeholder || (e.autoPlaceholder ? `请输入${e.schema.label}` : void 0), disabled: t.effectiveDisabled }, on: { input: t.setFieldValue } }, "FormattedNumberInput", t.effectiveComponentProps, !1), t.effectiveComponentListeners)) : e.schema.component === "select" ? o("el-select", e._g(e._b({ staticClass: "ecp-pro-form-item__select", attrs: { placeholder: e.schema.placeholder || (e.autoPlaceholder ? `请选择${e.schema.label}` : void 0), disabled: t.effectiveDisabled }, model: { value: e.formModel[e.schema.field], callback: function(n) {
987
1016
  e.$set(e.formModel, e.schema.field, n);
988
1017
  }, expression: "formModel[schema.field]" } }, "el-select", t.effectiveComponentProps, !1), t.effectiveComponentListeners), e._l(t.getOptions(t.effectiveComponentProps) || [], function(n) {
989
- return l("el-option", { key: String(n.value), attrs: { label: n.label, value: n.value } });
990
- }), 1) : e.schema.component === "api-select" ? l(t.ApiSelect, e._g(e._b({ attrs: { value: e.formModel[e.schema.field], placeholder: e.schema.placeholder || (e.autoPlaceholder ? `请选择${e.schema.label}` : void 0), disabled: t.effectiveDisabled }, on: { input: t.setFieldValue } }, "ApiSelect", t.effectiveComponentProps, !1), t.effectiveComponentListeners)) : e.schema.component === "tree-select" ? l(t.TreeSelect, e._g(e._b({ attrs: { value: e.formModel[e.schema.field], placeholder: e.schema.placeholder || (e.autoPlaceholder ? `请选择${e.schema.label}` : void 0), disabled: t.effectiveDisabled }, on: { input: t.setFieldValue } }, "TreeSelect", t.effectiveComponentProps, !1), t.effectiveComponentListeners)) : e.schema.component === "date-picker" ? l("el-date-picker", e._g(e._b({ attrs: { placeholder: e.schema.placeholder || (e.autoPlaceholder ? `请选择${e.schema.label}` : void 0), disabled: t.effectiveDisabled }, model: { value: e.formModel[e.schema.field], callback: function(n) {
1018
+ return o("el-option", { key: String(n.value), attrs: { label: n.label, value: n.value } });
1019
+ }), 1) : e.schema.component === "api-select" ? o(t.ApiSelect, e._g(e._b({ attrs: { value: e.formModel[e.schema.field], placeholder: e.schema.placeholder || (e.autoPlaceholder ? `请选择${e.schema.label}` : void 0), disabled: t.effectiveDisabled }, on: { input: t.setFieldValue } }, "ApiSelect", t.effectiveComponentProps, !1), t.effectiveComponentListeners)) : e.schema.component === "tree-select" ? o(t.TreeSelect, e._g(e._b({ attrs: { value: e.formModel[e.schema.field], placeholder: e.schema.placeholder || (e.autoPlaceholder ? `请选择${e.schema.label}` : void 0), disabled: t.effectiveDisabled }, on: { input: t.setFieldValue } }, "TreeSelect", t.effectiveComponentProps, !1), t.effectiveComponentListeners)) : e.schema.component === "date-picker" ? o("el-date-picker", e._g(e._b({ attrs: { placeholder: e.schema.placeholder || (e.autoPlaceholder ? `请选择${e.schema.label}` : void 0), disabled: t.effectiveDisabled }, model: { value: e.formModel[e.schema.field], callback: function(n) {
991
1020
  e.$set(e.formModel, e.schema.field, n);
992
- }, expression: "formModel[schema.field]" } }, "el-date-picker", t.effectiveComponentProps, !1), t.effectiveComponentListeners)) : e.schema.component === "date-range" ? l("el-date-picker", e._g(e._b({ attrs: { type: "daterange", "range-separator": "至", "start-placeholder": "开始日期", "end-placeholder": "结束日期", "value-format": "yyyy-MM-dd", disabled: t.effectiveDisabled }, model: { value: e.formModel[e.schema.field], callback: function(n) {
1021
+ }, expression: "formModel[schema.field]" } }, "el-date-picker", t.effectiveComponentProps, !1), t.effectiveComponentListeners)) : e.schema.component === "date-range" ? o("el-date-picker", e._g(e._b({ attrs: { type: "daterange", "range-separator": "至", "start-placeholder": "开始日期", "end-placeholder": "结束日期", "value-format": "yyyy-MM-dd", disabled: t.effectiveDisabled }, model: { value: e.formModel[e.schema.field], callback: function(n) {
993
1022
  e.$set(e.formModel, e.schema.field, n);
994
- }, expression: "formModel[schema.field]" } }, "el-date-picker", t.effectiveComponentProps, !1), t.effectiveComponentListeners)) : e.schema.component === "switch" ? l("el-switch", e._g(e._b({ attrs: { disabled: t.effectiveDisabled }, model: { value: e.formModel[e.schema.field], callback: function(n) {
1023
+ }, expression: "formModel[schema.field]" } }, "el-date-picker", t.effectiveComponentProps, !1), t.effectiveComponentListeners)) : e.schema.component === "switch" ? o("el-switch", e._g(e._b({ attrs: { disabled: t.effectiveDisabled }, model: { value: e.formModel[e.schema.field], callback: function(n) {
995
1024
  e.$set(e.formModel, e.schema.field, n);
996
- }, expression: "formModel[schema.field]" } }, "el-switch", t.effectiveComponentProps, !1), t.effectiveComponentListeners)) : e.schema.component === "cascader" ? l("el-cascader", e._g(e._b({ attrs: { placeholder: e.schema.placeholder || (e.autoPlaceholder ? `请选择${e.schema.label}` : void 0), disabled: t.effectiveDisabled }, model: { value: e.formModel[e.schema.field], callback: function(n) {
1025
+ }, expression: "formModel[schema.field]" } }, "el-switch", t.effectiveComponentProps, !1), t.effectiveComponentListeners)) : e.schema.component === "cascader" ? o("el-cascader", e._g(e._b({ attrs: { placeholder: e.schema.placeholder || (e.autoPlaceholder ? `请选择${e.schema.label}` : void 0), disabled: t.effectiveDisabled }, model: { value: e.formModel[e.schema.field], callback: function(n) {
997
1026
  e.$set(e.formModel, e.schema.field, n);
998
- }, expression: "formModel[schema.field]" } }, "el-cascader", t.effectiveComponentProps, !1), t.effectiveComponentListeners)) : e.schema.component === "checkbox" ? l("el-checkbox-group", e._g(e._b({ attrs: { disabled: t.effectiveDisabled }, model: { value: e.formModel[e.schema.field], callback: function(n) {
1027
+ }, expression: "formModel[schema.field]" } }, "el-cascader", t.effectiveComponentProps, !1), t.effectiveComponentListeners)) : e.schema.component === "checkbox" ? o("el-checkbox-group", e._g(e._b({ attrs: { disabled: t.effectiveDisabled }, model: { value: e.formModel[e.schema.field], callback: function(n) {
999
1028
  e.$set(e.formModel, e.schema.field, n);
1000
1029
  }, expression: "formModel[schema.field]" } }, "el-checkbox-group", t.effectiveComponentProps, !1), t.effectiveComponentListeners), e._l(t.getOptions(t.effectiveComponentProps) || [], function(n) {
1001
- return l("el-checkbox", { key: String(n.value), attrs: { label: n.value } }, [e._v(" " + e._s(n.label) + " ")]);
1002
- }), 1) : e.schema.component === "radio" ? l("el-radio-group", e._g(e._b({ attrs: { disabled: t.effectiveDisabled }, model: { value: e.formModel[e.schema.field], callback: function(n) {
1030
+ return o("el-checkbox", { key: String(n.value), attrs: { label: n.value } }, [e._v(" " + e._s(n.label) + " ")]);
1031
+ }), 1) : e.schema.component === "radio" ? o("el-radio-group", e._g(e._b({ attrs: { disabled: t.effectiveDisabled }, model: { value: e.formModel[e.schema.field], callback: function(n) {
1003
1032
  e.$set(e.formModel, e.schema.field, n);
1004
1033
  }, expression: "formModel[schema.field]" } }, "el-radio-group", t.effectiveComponentProps, !1), t.effectiveComponentListeners), e._l(t.getOptions(t.effectiveComponentProps) || [], function(n) {
1005
- return l("el-radio", { key: String(n.value), attrs: { label: n.value } }, [e._v(" " + e._s(n.label) + " ")]);
1034
+ return o("el-radio", { key: String(n.value), attrs: { label: n.value } }, [e._v(" " + e._s(n.label) + " ")]);
1006
1035
  }), 1) : e._e()], 1)]], 2) : e._e();
1007
- }, wt = [], Ct = /* @__PURE__ */ se(
1008
- gt,
1009
- yt,
1010
- wt,
1036
+ }, kt = [], Rt = /* @__PURE__ */ ue(
1037
+ St,
1038
+ Ft,
1039
+ kt,
1011
1040
  !1,
1012
1041
  null,
1013
1042
  "d3466c67",
1014
1043
  null,
1015
1044
  null
1016
1045
  );
1017
- const Ve = Ct.exports, xt = /* @__PURE__ */ oe({
1046
+ const qe = Rt.exports, Bt = /* @__PURE__ */ ie({
1018
1047
  __name: "FormActions",
1019
1048
  props: {
1020
1049
  showActionButtonGroup: { type: Boolean, default: !0 },
@@ -1031,28 +1060,28 @@ const Ve = Ct.exports, xt = /* @__PURE__ */ oe({
1031
1060
  actionColOptions: null
1032
1061
  },
1033
1062
  emits: ["submit", "reset", "toggle"],
1034
- setup(r) {
1063
+ setup(i) {
1035
1064
  return { __sfc: !0 };
1036
1065
  }
1037
1066
  });
1038
- var Pt = function() {
1039
- var e = this, l = e._self._c;
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) {
1067
+ var Mt = function() {
1068
+ var e = this, o = e._self._c;
1069
+ return e._self._setupProxy, o("div", { staticClass: "ecp-form-actions" }, [e._t("submitBefore"), e.showSubmitButton ? o("el-button", { attrs: { type: "primary", icon: e.submitButtonIcon, loading: e.submitLoading }, on: { click: function(t) {
1041
1070
  return e.$emit("submit");
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) {
1071
+ } } }, [e._v(" " + e._s(e.submitButtonText) + " ")]) : e._e(), e._t("resetBefore"), e.showResetButton ? o("el-button", { attrs: { icon: e.resetButtonIcon }, on: { click: function(t) {
1043
1072
  return e.$emit("reset");
1044
1073
  } } }, [e._v(" " + e._s(e.resetButtonText) + " ")]) : e._e(), e._t("actions")], 2);
1045
- }, St = [], Ft = /* @__PURE__ */ se(
1046
- xt,
1047
- Pt,
1048
- St,
1074
+ }, At = [], Tt = /* @__PURE__ */ ue(
1075
+ Bt,
1076
+ Mt,
1077
+ At,
1049
1078
  !1,
1050
1079
  null,
1051
1080
  "489c88d2",
1052
1081
  null,
1053
1082
  null
1054
1083
  );
1055
- const Le = Ft.exports, Rt = /* @__PURE__ */ oe({
1084
+ const He = Tt.exports, $t = /* @__PURE__ */ ie({
1056
1085
  __name: "ProForm",
1057
1086
  props: {
1058
1087
  schemas: null,
@@ -1085,245 +1114,245 @@ const Le = Ft.exports, Rt = /* @__PURE__ */ oe({
1085
1114
  components: null
1086
1115
  },
1087
1116
  emits: ["submit", "reset", "register", "update:modelValue"],
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(() => ({
1117
+ setup(i, { expose: e, emit: o }) {
1118
+ const t = i, n = Me(), s = O(), a = O(), h = O(!1), c = O(!0), y = O({}), E = O({}), b = O([]), F = O({}), f = { xl: 1920, lg: 1200, md: 992, sm: 768 }, S = (p, x, D) => {
1119
+ const V = D ?? (typeof window < "u" ? window.innerWidth : 1920), B = p ?? {}, H = x ?? {}, oe = H.span ?? 8;
1120
+ return V >= f.xl ? B.xl ?? H.xl ?? B.lg ?? H.lg ?? B.md ?? H.md ?? B.sm ?? H.sm ?? B.xs ?? H.xs ?? B.span ?? oe : V >= f.lg ? B.lg ?? H.lg ?? B.md ?? H.md ?? B.sm ?? H.sm ?? B.xs ?? H.xs ?? B.span ?? oe : V >= f.md ? B.md ?? H.md ?? B.sm ?? H.sm ?? B.xs ?? H.xs ?? B.span ?? oe : V >= f.sm ? B.sm ?? H.sm ?? B.xs ?? H.xs ?? B.span ?? oe : B.xs ?? H.xs ?? B.span ?? oe;
1121
+ }, { getSetting: _ } = Te(), z = C(() => ({ ..._("ProForm"), ...t, ...F.value })), J = C(() => z.value.modelValue), d = C(() => J.value !== void 0), P = C(() => d.value ? J.value ?? {} : y.value), T = C(() => ({
1093
1122
  ..._("ProForm").components ?? {},
1094
- ...D.value.components ?? {},
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)
1123
+ ...z.value.components ?? {},
1124
+ ...F.value.components ?? {}
1125
+ })), g = C(() => z.value.actionColOptions ?? { span: 24 }), j = O(typeof window < "u" ? window.innerWidth : 1920), G = (p, x, D, V) => {
1126
+ let B = 24, H = 1, oe = 0;
1127
+ for (const re of p) {
1128
+ const l = S(re.colProps, x, V);
1129
+ if (l > B) {
1130
+ if (H++, H > D)
1102
1131
  break;
1103
- C = 24 - S;
1132
+ B = 24 - l;
1104
1133
  } else
1105
- C -= S;
1106
- s++;
1134
+ B -= l;
1135
+ oe++;
1107
1136
  }
1108
- return s;
1109
- }, R = F(() => {
1110
- const c = m.value.filter((C) => Z(C));
1111
- if (!D.value.showAdvancedButton)
1137
+ return oe;
1138
+ }, M = C(() => {
1139
+ const p = b.value.filter((B) => X(B));
1140
+ if (!z.value.showAdvancedButton)
1112
1141
  return !1;
1113
- const w = D.value.alwaysShowLines ?? 1, B = D.value.baseColProps, A = j(c, B, w, M.value);
1114
- return c.length > A;
1115
- }), N = F(() => D.value.formListeners ?? {}), W = F(() => {
1116
- const c = m.value.filter((C) => Z(C));
1117
- if (!D.value.showAdvancedButton || !i.value)
1118
- return c;
1119
- const w = D.value.alwaysShowLines ?? 1, B = D.value.baseColProps, A = j(c, B, w, M.value);
1120
- return c.slice(0, A);
1121
- }), Z = (c) => {
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;
1124
- }, ee = (c) => c.colProps ?? D.value.baseColProps ?? {}, H = (c) => c.slot || c.field, q = (c, w = !0) => {
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;
1142
+ const x = z.value.alwaysShowLines ?? 1, D = z.value.baseColProps, V = G(p, D, x, j.value);
1143
+ return p.length > V;
1144
+ }), R = C(() => z.value.formListeners ?? {}), q = C(() => {
1145
+ const p = b.value.filter((B) => X(B));
1146
+ if (!z.value.showAdvancedButton || !c.value)
1147
+ return p;
1148
+ const x = z.value.alwaysShowLines ?? 1, D = z.value.baseColProps, V = G(p, D, x, j.value);
1149
+ return p.slice(0, V);
1150
+ }), X = (p) => {
1151
+ let x = !0, D = !0;
1152
+ return typeof p.ifShow == "function" && (x = p.ifShow({ schema: p, values: P.value, model: P.value, field: p.field })), typeof p.ifShow == "boolean" && (x = p.ifShow), typeof p.show == "function" && (D = p.show({ schema: p, values: P.value, model: P.value, field: p.field })), typeof p.show == "boolean" && (D = p.show), x && D;
1153
+ }, le = (p) => p.colProps ?? z.value.baseColProps ?? {}, ee = (p) => p.slot || p.field, U = (p, x = !0) => {
1154
+ const D = x ? { ...p ?? {} } : {}, V = z.value.initialValues ?? t.initialValues;
1155
+ return b.value.forEach((B) => {
1156
+ if (!(x && Object.prototype.hasOwnProperty.call(D, B.field))) {
1157
+ if (B.defaultValue !== void 0) {
1158
+ D[B.field] = B.defaultValue;
1130
1159
  return;
1131
1160
  }
1132
- A && Object.prototype.hasOwnProperty.call(A, C.field) && (B[C.field] = A[C.field]);
1161
+ V && Object.prototype.hasOwnProperty.call(V, B.field) && (D[B.field] = V[B.field]);
1133
1162
  }
1134
- }), B;
1135
- }, Q = (c, w = !0) => {
1136
- g.value = c, w && l("update:modelValue", c);
1137
- }, U = (c) => {
1138
- const w = q({ ...v.value, ...c });
1139
- return Q(w), w;
1140
- }, Y = () => {
1141
- const 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;
1146
- }, re = (c) => {
1147
- const w = { ...c };
1148
- return m.value.forEach((B) => {
1149
- const A = B.ifShow;
1150
- if (A === void 0)
1163
+ }), D;
1164
+ }, ae = (p, x = !0) => {
1165
+ y.value = p, x && o("update:modelValue", p);
1166
+ }, Z = (p) => {
1167
+ const x = U({ ...P.value, ...p });
1168
+ return ae(x), x;
1169
+ }, te = () => {
1170
+ const p = {};
1171
+ b.value.forEach((x) => {
1172
+ var D;
1173
+ (D = x.rules) != null && D.length && (p[x.field] = x.rules);
1174
+ }), ae(U(P.value), !1), E.value = p;
1175
+ }, ce = (p) => {
1176
+ const x = { ...p };
1177
+ return b.value.forEach((D) => {
1178
+ const V = D.ifShow;
1179
+ if (V === void 0)
1151
1180
  return;
1152
- (typeof A == "boolean" ? A : A({ schema: B, values: c, model: c, field: B.field })) || delete w[B.field];
1153
- }), w;
1154
- }, p = (c) => {
1155
- const w = re(c), B = P.value.fieldMapToTime;
1156
- if (!(B != null && B.length))
1157
- return w;
1158
- const A = { ...w };
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]);
1162
- }), A;
1163
- }, $ = async () => {
1164
- var c;
1181
+ (typeof V == "boolean" ? V : V({ schema: D, values: p, model: p, field: D.field })) || delete x[D.field];
1182
+ }), x;
1183
+ }, v = (p) => {
1184
+ const x = ce(p), D = F.value.fieldMapToTime;
1185
+ if (!(D != null && D.length))
1186
+ return x;
1187
+ const V = { ...x };
1188
+ return D.forEach(([B, [H, oe]]) => {
1189
+ const re = V[B];
1190
+ Array.isArray(re) && re.length === 2 && (delete V[B], V[H] = re[0], V[oe] = re[1]);
1191
+ }), V;
1192
+ }, I = async () => {
1193
+ var p;
1165
1194
  try {
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 })));
1167
- } catch (w) {
1168
- console.error("Form validation failed:", w);
1195
+ await ((p = s.value) == null ? void 0 : p.validate()), z.value.submitFunc ? await z.value.submitFunc() : (h.value = !0, o("submit", v({ ...P.value })));
1196
+ } catch (x) {
1197
+ console.error("Form validation failed:", x);
1169
1198
  } finally {
1170
- f.value = !1;
1199
+ h.value = !1;
1171
1200
  }
1172
- }, T = async () => {
1173
- var c;
1174
- D.value.resetFunc ? await D.value.resetFunc() : ((c = u.value) == null || c.resetFields(), Y(), l("reset"), D.value.submitOnReset && await $());
1175
- }, V = (c) => (U(c), Promise.resolve()), K = () => p({ ...v.value }), X = async () => {
1176
- var c;
1177
- (c = u.value) == null || c.resetFields(), Q(q(void 0, !1));
1178
- }, ne = (c, w) => {
1179
- U({ [c]: w });
1180
- }, ae = (c) => {
1181
- var w;
1182
- return ((w = u.value) == null ? void 0 : w.validate(c)) ?? Promise.resolve();
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")));
1185
- }))) : u.value.validate() : Promise.resolve(), ie = async (c, w) => {
1186
- var A;
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) => {
1190
- var w;
1191
- (w = u.value) == null || w.clearValidate(c);
1192
- }, he = async (c) => {
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 });
1201
+ }, $ = async () => {
1202
+ var p;
1203
+ z.value.resetFunc ? await z.value.resetFunc() : ((p = s.value) == null || p.resetFields(), te(), o("reset"), z.value.submitOnReset && await I());
1204
+ }, r = (p) => (Z(p), Promise.resolve()), m = () => v({ ...P.value }), k = async () => {
1205
+ var p;
1206
+ (p = s.value) == null || p.resetFields(), ae(U(void 0, !1));
1207
+ }, W = (p, x) => {
1208
+ Z({ [p]: x });
1209
+ }, N = (p) => {
1210
+ var x;
1211
+ return ((x = s.value) == null ? void 0 : x.validate(p)) ?? Promise.resolve();
1212
+ }, Q = (p) => s.value ? p != null && p.length ? Promise.all(p.map((x) => new Promise((D, V) => {
1213
+ s.value.validateField(x, (B) => B ? D(void 0) : V(new Error("Validation failed")));
1214
+ }))) : s.value.validate() : Promise.resolve(), fe = async (p, x) => {
1215
+ var V;
1216
+ const D = (V = a.value) == null ? void 0 : V.querySelector(`[data-field="${p}"]`);
1217
+ return D && D.scrollIntoView({ behavior: (x == null ? void 0 : x.behavior) ?? "smooth", block: (x == null ? void 0 : x.block) ?? "nearest" }), Promise.resolve();
1218
+ }, ye = (p) => {
1219
+ var x;
1220
+ (x = s.value) == null || x.clearValidate(p);
1221
+ }, de = async (p) => {
1222
+ (Array.isArray(p) ? p : [p]).forEach((D) => {
1223
+ const V = b.value.findIndex((B) => B.field === D.field);
1224
+ V >= 0 && (b.value[V] = { ...b.value[V], ...D });
1196
1225
  });
1197
- }, _e = async (c, w, B) => {
1198
- if (B)
1199
- m.value.unshift(c);
1200
- else if (w) {
1201
- const A = m.value.findIndex((C) => C.field === w);
1202
- m.value.splice(A + 1, 0, c);
1226
+ }, we = async (p, x, D) => {
1227
+ if (D)
1228
+ b.value.unshift(p);
1229
+ else if (x) {
1230
+ const V = b.value.findIndex((B) => B.field === x);
1231
+ b.value.splice(V + 1, 0, p);
1203
1232
  } else
1204
- m.value.push(c);
1205
- Y();
1206
- }, be = async (c) => {
1207
- const w = Array.isArray(c) ? c : [c];
1208
- m.value = m.value.filter((B) => !w.includes(B.field));
1209
- }, ge = async (c) => {
1210
- P.value = { ...P.value, ...c }, c.schemas && (m.value = [...c.schemas], Y());
1211
- }, pe = {
1212
- getFieldsValue: K,
1213
- setFieldsValue: V,
1214
- resetFields: X,
1215
- validate: ae,
1216
- validateFields: le,
1217
- submit: $,
1218
- scrollToField: ie,
1219
- clearValidate: ve,
1220
- updateSchema: he,
1221
- appendSchemaByField: _e,
1222
- removeSchemaByField: be,
1223
- setProps: ge
1233
+ b.value.push(p);
1234
+ te();
1235
+ }, Ce = async (p) => {
1236
+ const x = Array.isArray(p) ? p : [p];
1237
+ b.value = b.value.filter((D) => !x.includes(D.field));
1238
+ }, xe = async (p) => {
1239
+ F.value = { ...F.value, ...p }, p.schemas && (b.value = [...p.schemas], te());
1240
+ }, he = {
1241
+ getFieldsValue: m,
1242
+ setFieldsValue: r,
1243
+ resetFields: k,
1244
+ validate: N,
1245
+ validateFields: Q,
1246
+ submit: I,
1247
+ scrollToField: fe,
1248
+ clearValidate: ye,
1249
+ updateSchema: de,
1250
+ appendSchemaByField: we,
1251
+ removeSchemaByField: Ce,
1252
+ setProps: xe
1224
1253
  };
1225
- e(pe);
1226
- const de = () => {
1227
- m.value = [...t.schemas ?? []], Y();
1228
- }, ce = () => {
1229
- typeof window < "u" && (M.value = window.innerWidth);
1254
+ e(he);
1255
+ const _e = () => {
1256
+ b.value = [...t.schemas ?? []], te();
1257
+ }, be = () => {
1258
+ typeof window < "u" && (j.value = window.innerWidth);
1230
1259
  };
1231
- return me(() => {
1232
- de(), l("register", pe), typeof window < "u" && window.addEventListener("resize", ce);
1233
- }), Fe(() => {
1234
- typeof window < "u" && window.removeEventListener("resize", ce);
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 };
1260
+ return ge(() => {
1261
+ _e(), o("register", he), typeof window < "u" && window.addEventListener("resize", be);
1262
+ }), Ae(() => {
1263
+ typeof window < "u" && window.removeEventListener("resize", be);
1264
+ }), ne(() => J.value, (p) => {
1265
+ !d.value || p === void 0 || ae(U(p), !1);
1266
+ }, { deep: !0, immediate: !0 }), ne(() => [t.schemas, t.initialValues], _e, { deep: !0 }), { __sfc: !0, props: t, emit: o, slots: n, formRef: s, formWrapRef: a, submitLoading: h, collapsed: c, formModel: y, formRules: E, innerSchemas: b, innerProps: F, BREAKPOINTS: f, getEffectiveSpan: S, getComponentSetting: _, effectiveProps: z, controlledModelValue: J, isControlled: d, currentFormModel: P, formCustomComponents: T, effectiveActionColOptions: g, windowWidth: j, getVisibleSchemaCount: G, hasMoreFields: M, formListeners: R, displaySchemas: q, shouldShow: X, getColProps: le, getSlotName: ee, resolveSchemaModel: U, applyFormModel: ae, updateFormModel: Z, initForm: te, filterByIfShow: ce, processFieldMapToTime: v, handleSubmit: I, handleReset: $, setFieldsValue: r, getFieldsValue: m, resetFields: k, handleFieldChange: W, validate: N, validateFields: Q, scrollToField: fe, clearValidate: ye, updateSchema: de, appendSchemaByField: we, removeSchemaByField: Ce, setProps: xe, formActionRef: he, syncSchemas: _e, handleResize: be, ProFormItem: qe, FormActions: He };
1238
1267
  }
1239
1268
  });
1240
- var Bt = function() {
1241
- var e = this, l = e._self._c, t = e._self._setupProxy;
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) {
1243
- var u, a;
1244
- return [t.shouldShow(n) ? l("el-col", e._b({ key: n.field, attrs: { offset: ((u = n.colProps) == null ? void 0 : u.offset) ?? ((a = t.effectiveProps.baseColProps) == null ? void 0 : a.offset) ?? 0, "data-field": n.field } }, "el-col", t.getColProps(n), !1), [l(t.ProFormItem, { attrs: { schema: n, "form-model": t.currentFormModel, "form-disabled": t.effectiveProps.disabled, "auto-placeholder": t.effectiveProps.autoSetPlaceholder, "form-action-type": t.formActionRef, colon: t.effectiveProps.colon, "custom-components": t.formCustomComponents, "on-field-change": t.handleFieldChange } }, [t.slots[t.getSlotName(n)] ? [e._t(t.getSlotName(n), null, { model: t.currentFormModel, schema: n, field: n.field, values: t.currentFormModel })] : e._e()], 2)], 1) : e._e()];
1245
- }), t.effectiveProps.showActionButtonGroup ? l("el-col", e._b({ staticClass: "ecp-pro-form_col" }, "el-col", t.hasMoreFields ? { span: 24 } : t.effectiveProps.actionColOptions || { span: 6 }, !1), [l(t.FormActions, { attrs: { "show-action-button-group": t.effectiveProps.showActionButtonGroup, "show-submit-button": t.effectiveProps.showSubmitButton, "show-reset-button": t.effectiveProps.showResetButton, "submit-button-text": t.effectiveProps.submitButtonText, "reset-button-text": t.effectiveProps.resetButtonText, "submit-button-icon": t.effectiveProps.submitButtonIcon, "reset-button-icon": t.effectiveProps.resetButtonIcon, "submit-loading": t.submitLoading, "show-advanced-button": t.effectiveProps.showAdvancedButton, "has-more-fields": t.hasMoreFields, collapsed: t.collapsed, "action-col-options": t.effectiveActionColOptions }, on: { submit: t.handleSubmit, reset: t.handleReset, toggle: function(n) {
1269
+ var Dt = function() {
1270
+ var e = this, o = e._self._c, t = e._self._setupProxy;
1271
+ return o("div", { ref: "formWrapRef", staticClass: "ecp-pro-form" }, [o("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"), o("el-row", { style: t.effectiveProps.baseRowStyle, attrs: { gutter: t.effectiveProps.gutter } }, [e._l(t.displaySchemas, function(n) {
1272
+ var s, a;
1273
+ return [t.shouldShow(n) ? o("el-col", e._b({ key: n.field, attrs: { offset: ((s = n.colProps) == null ? void 0 : s.offset) ?? ((a = t.effectiveProps.baseColProps) == null ? void 0 : a.offset) ?? 0, "data-field": n.field } }, "el-col", t.getColProps(n), !1), [o(t.ProFormItem, { attrs: { schema: n, "form-model": t.currentFormModel, "form-disabled": t.effectiveProps.disabled, "auto-placeholder": t.effectiveProps.autoSetPlaceholder, "form-action-type": t.formActionRef, colon: t.effectiveProps.colon, "custom-components": t.formCustomComponents, "on-field-change": t.handleFieldChange } }, [t.slots[t.getSlotName(n)] ? [e._t(t.getSlotName(n), null, { model: t.currentFormModel, schema: n, field: n.field, values: t.currentFormModel })] : e._e()], 2)], 1) : e._e()];
1274
+ }), t.effectiveProps.showActionButtonGroup ? o("el-col", e._b({ staticClass: "ecp-pro-form_col" }, "el-col", t.hasMoreFields ? { span: 24 } : t.effectiveProps.actionColOptions || { span: 6 }, !1), [o(t.FormActions, { attrs: { "show-action-button-group": t.effectiveProps.showActionButtonGroup, "show-submit-button": t.effectiveProps.showSubmitButton, "show-reset-button": t.effectiveProps.showResetButton, "submit-button-text": t.effectiveProps.submitButtonText, "reset-button-text": t.effectiveProps.resetButtonText, "submit-button-icon": t.effectiveProps.submitButtonIcon, "reset-button-icon": t.effectiveProps.resetButtonIcon, "submit-loading": t.submitLoading, "show-advanced-button": t.effectiveProps.showAdvancedButton, "has-more-fields": t.hasMoreFields, collapsed: t.collapsed, "action-col-options": t.effectiveActionColOptions }, on: { submit: t.handleSubmit, reset: t.handleReset, toggle: function(n) {
1246
1275
  t.collapsed = !t.collapsed;
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) {
1276
+ } } }, [o("template", { slot: "submitBefore" }, [e._t("submitBefore")], 2), o("template", { slot: "resetBefore" }, [e._t("resetBefore")], 2), o("template", { slot: "advanceBefore" }, [e._t("advanceBefore")], 2), o("template", { slot: "advanceAfter" }, [e._t("advanceAfter")], 2), o("template", { slot: "actions" }, [e._t("actions")], 2)], 2)], 1) : e._e()], 2), t.effectiveProps.showAdvancedButton && t.hasMoreFields ? o("el-button", { staticClass: "ecp-form-actions__advance", attrs: { type: "text" }, on: { click: function(n) {
1248
1277
  t.collapsed = !t.collapsed;
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);
1250
- }, At = [], Mt = /* @__PURE__ */ se(
1251
- Rt,
1252
- Bt,
1253
- At,
1278
+ } } }, [o("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);
1279
+ }, zt = [], Nt = /* @__PURE__ */ ue(
1280
+ $t,
1281
+ Dt,
1282
+ zt,
1254
1283
  !1,
1255
1284
  null,
1256
1285
  "bf70afca",
1257
1286
  null,
1258
1287
  null
1259
1288
  );
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);
1289
+ const Je = Nt.exports;
1290
+ function Zt(i) {
1291
+ const e = O(null), o = O(i ? ve(i) : void 0), t = () => i ? ve(i) : void 0, n = (d) => {
1292
+ e.value = d;
1293
+ const P = t();
1294
+ P && Object.keys(P).length > 0 && d.setProps(P);
1266
1295
  };
1267
- return r && J(
1296
+ return i && ne(
1268
1297
  () => t(),
1269
- (y) => {
1270
- l.value = y, y && e.value && e.value.setProps(y);
1298
+ (d) => {
1299
+ o.value = d, d && e.value && e.value.setProps(d);
1271
1300
  },
1272
1301
  { deep: !0 }
1273
1302
  ), [n, {
1274
1303
  register: n,
1275
1304
  formAction: e,
1276
1305
  getFieldsValue: () => {
1277
- var y;
1278
- return ((y = e.value) == null ? void 0 : y.getFieldsValue()) ?? {};
1306
+ var d;
1307
+ return ((d = e.value) == null ? void 0 : d.getFieldsValue()) ?? {};
1279
1308
  },
1280
- setFieldsValue: async (y) => {
1281
- var v;
1282
- await ((v = e.value) == null ? void 0 : v.setFieldsValue(y));
1309
+ setFieldsValue: async (d) => {
1310
+ var P;
1311
+ await ((P = e.value) == null ? void 0 : P.setFieldsValue(d));
1283
1312
  },
1284
1313
  resetFields: async () => {
1285
- var y;
1286
- await ((y = e.value) == null ? void 0 : y.resetFields());
1314
+ var d;
1315
+ await ((d = e.value) == null ? void 0 : d.resetFields());
1287
1316
  },
1288
- validate: (y) => {
1289
- var v;
1290
- return ((v = e.value) == null ? void 0 : v.validate(y)) ?? Promise.resolve();
1317
+ validate: (d) => {
1318
+ var P;
1319
+ return ((P = e.value) == null ? void 0 : P.validate(d)) ?? Promise.resolve();
1291
1320
  },
1292
- validateFields: (y) => {
1293
- var v;
1294
- return ((v = e.value) == null ? void 0 : v.validateFields(y)) ?? Promise.resolve();
1321
+ validateFields: (d) => {
1322
+ var P;
1323
+ return ((P = e.value) == null ? void 0 : P.validateFields(d)) ?? Promise.resolve();
1295
1324
  },
1296
1325
  submit: () => {
1297
- var y;
1298
- return ((y = e.value) == null ? void 0 : y.submit()) ?? Promise.resolve();
1326
+ var d;
1327
+ return ((d = e.value) == null ? void 0 : d.submit()) ?? Promise.resolve();
1299
1328
  },
1300
- scrollToField: (y, v) => {
1301
- var L;
1302
- return ((L = e.value) == null ? void 0 : L.scrollToField(y, v)) ?? Promise.resolve();
1329
+ scrollToField: (d, P) => {
1330
+ var T;
1331
+ return ((T = e.value) == null ? void 0 : T.scrollToField(d, P)) ?? Promise.resolve();
1303
1332
  },
1304
- clearValidate: (y) => {
1305
- var v;
1306
- (v = e.value) == null || v.clearValidate(y);
1333
+ clearValidate: (d) => {
1334
+ var P;
1335
+ (P = e.value) == null || P.clearValidate(d);
1307
1336
  },
1308
- updateSchema: (y) => {
1309
- var v;
1310
- return ((v = e.value) == null ? void 0 : v.updateSchema(y)) ?? Promise.resolve();
1337
+ updateSchema: (d) => {
1338
+ var P;
1339
+ return ((P = e.value) == null ? void 0 : P.updateSchema(d)) ?? Promise.resolve();
1311
1340
  },
1312
- appendSchemaByField: (y, v, L) => {
1313
- var b;
1314
- return ((b = e.value) == null ? void 0 : b.appendSchemaByField(y, v, L)) ?? Promise.resolve();
1341
+ appendSchemaByField: (d, P, T) => {
1342
+ var g;
1343
+ return ((g = e.value) == null ? void 0 : g.appendSchemaByField(d, P, T)) ?? Promise.resolve();
1315
1344
  },
1316
- removeSchemaByField: (y) => {
1317
- var v;
1318
- return ((v = e.value) == null ? void 0 : v.removeSchemaByField(y)) ?? Promise.resolve();
1345
+ removeSchemaByField: (d) => {
1346
+ var P;
1347
+ return ((P = e.value) == null ? void 0 : P.removeSchemaByField(d)) ?? Promise.resolve();
1319
1348
  },
1320
- setProps: async (y) => {
1321
- var v;
1322
- l.value = { ...l.value, ...y }, await ((v = e.value) == null ? void 0 : v.setProps(y));
1349
+ setProps: async (d) => {
1350
+ var P;
1351
+ o.value = { ...o.value, ...d }, await ((P = e.value) == null ? void 0 : P.setProps(d));
1323
1352
  }
1324
1353
  }];
1325
1354
  }
1326
- const Tt = /* @__PURE__ */ oe({
1355
+ const Ot = /* @__PURE__ */ ie({
1327
1356
  __name: "ProDescriptions",
1328
1357
  props: {
1329
1358
  title: null,
@@ -1338,8 +1367,8 @@ const Tt = /* @__PURE__ */ oe({
1338
1367
  collapseOptions: { default: () => ({ canExpand: !1, defaultExpand: !0, expandButtonText: "展开", collapseButtonText: "收起", visibleRows: 1 }) }
1339
1368
  },
1340
1369
  emits: ["register"],
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({
1370
+ setup(i, { expose: e, emit: o }) {
1371
+ const t = i, n = O({}), s = O({}), a = O([]), h = O(typeof window < "u" ? window.innerWidth : 1920), c = O(!0), y = ie({
1343
1372
  name: "EcpDescriptionValueRenderer",
1344
1373
  props: {
1345
1374
  schema: { type: Object, required: !0 },
@@ -1347,140 +1376,140 @@ const Tt = /* @__PURE__ */ oe({
1347
1376
  record: { type: Object, required: !0 },
1348
1377
  emptyText: { type: String, default: "-" }
1349
1378
  },
1350
- setup(p) {
1379
+ setup(v) {
1351
1380
  return () => {
1352
- const $ = p.schema, T = p.record, V = p.value, K = (X) => {
1353
- const ne = z($, X === p.emptyText ? V : X, T), ae = ue("span", X);
1354
- return ne ? ue("el-tooltip", { props: ne }, [ae]) : ae;
1381
+ const I = v.schema, $ = v.record, r = v.value, m = (k) => {
1382
+ const W = E(I, k === v.emptyText ? r : k, $), N = pe("span", k);
1383
+ return W ? pe("el-tooltip", { props: W }, [N]) : N;
1355
1384
  };
1356
- if ($.render) {
1357
- const X = $.render(V, T);
1358
- return X == null || X === "" ? K(p.emptyText) : typeof X == "string" || typeof X == "number" ? K(String(X)) : X;
1385
+ if (I.render) {
1386
+ const k = I.render(r, $);
1387
+ return k == null || k === "" ? m(v.emptyText) : typeof k == "string" || typeof k == "number" ? m(String(k)) : k;
1359
1388
  }
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));
1389
+ return Array.isArray(r) ? m(r.length ? r.join(", ") : v.emptyText) : r == null || r === "" ? m(v.emptyText) : m(typeof r == "object" ? JSON.stringify(r) : String(r));
1361
1390
  };
1362
1391
  }
1363
- }), z = (p, $, T) => {
1364
- const V = p.tooltip;
1365
- if (!V)
1392
+ }), E = (v, I, $) => {
1393
+ const r = v.tooltip;
1394
+ if (!r)
1366
1395
  return null;
1367
- const K = typeof V == "function" ? V({ value: $, record: T, schema: p }) : V;
1368
- return Be(K, $);
1369
- }, { getSetting: m } = Re(), P = F(() => ({ ...m("ProDescriptions"), ...t, ...n.value })), d = { xxl: 1920, xl: 1200, lg: 992, md: 768, sm: 576 }, x = (p, $) => {
1370
- if (typeof p == "number")
1371
- return Math.max(1, p);
1372
- const T = p ?? {};
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;
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) => ({
1375
- ...p,
1376
- dataIndex: p.dataIndex || p.field || ""
1377
- }))), y = F(() => {
1378
- const p = [];
1379
- let $ = { items: [] }, T = 0;
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;
1383
- T + le > V && (p.push($), $ = { items: [] }, T = 0);
1384
- const ie = ne === 1 && T < V ? Math.max(1, V - T) : le;
1385
- $.items.push({ ...K, _span: ie }), T += ie, T >= V && (p.push($), $ = { items: [] }, T = 0);
1386
- }), $.items.length > 0 && p.push($), p;
1387
- }), v = F(() => {
1388
- var $;
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(() => {
1394
- var $, T;
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(() => {
1398
- var p, $;
1396
+ const m = typeof r == "function" ? r({ value: I, record: $, schema: v }) : r;
1397
+ return $e(m, I);
1398
+ }, { mergeSettings: b } = Te(), F = C(() => b("ProDescriptions", { ...t, ...n.value })), f = { xxl: 1920, xl: 1200, lg: 992, md: 768, sm: 576 }, S = (v, I) => {
1399
+ if (typeof v == "number")
1400
+ return Math.max(1, v);
1401
+ const $ = v ?? {};
1402
+ return I >= f.xxl ? $.xxl ?? $.xl ?? $.lg ?? $.md ?? $.sm ?? $.xs ?? 3 : I >= f.xl ? $.xl ?? $.lg ?? $.md ?? $.sm ?? $.xs ?? 3 : I >= f.lg ? $.lg ?? $.md ?? $.sm ?? $.xs ?? 3 : I >= f.md ? $.md ?? $.sm ?? $.xs ?? 3 : I >= f.sm ? $.sm ?? $.xs ?? 2 : $.xs ?? 1;
1403
+ }, _ = C(() => S(F.value.column, h.value)), z = C(() => F.value.data ?? s.value ?? {}), J = C(() => (a.value.length ? a.value : F.value.schema ?? []).filter((v) => v.dataIndex || v.field ? typeof v.show == "function" ? v.show(z.value) : v.show !== !1 : !1).map((v) => ({
1404
+ ...v,
1405
+ dataIndex: v.dataIndex || v.field || ""
1406
+ }))), d = C(() => {
1407
+ const v = [];
1408
+ let I = { items: [] }, $ = 0;
1409
+ const r = _.value;
1410
+ return J.value.forEach((m, k) => {
1411
+ const W = J.value.length - k, N = Math.max(1, Math.min(m.span ?? 1, r)), Q = W === 1 ? r - $ || r : N;
1412
+ $ + Q > r && (v.push(I), I = { items: [] }, $ = 0);
1413
+ const fe = W === 1 && $ < r ? Math.max(1, r - $) : Q;
1414
+ I.items.push({ ...m, _span: fe }), $ += fe, $ >= r && (v.push(I), I = { items: [] }, $ = 0);
1415
+ }), I.items.length > 0 && v.push(I), v;
1416
+ }), P = C(() => {
1417
+ var I;
1418
+ if (!T.value || c.value)
1419
+ return d.value;
1420
+ const v = Math.max(1, ((I = F.value.collapseOptions) == null ? void 0 : I.visibleRows) ?? 1);
1421
+ return d.value.slice(0, v);
1422
+ }), T = C(() => {
1423
+ var I, $;
1424
+ const v = Math.max(1, ((I = F.value.collapseOptions) == null ? void 0 : I.visibleRows) ?? 1);
1425
+ return !!F.value.useCollapse && !!(($ = F.value.collapseOptions) != null && $.canExpand) && d.value.length > v;
1426
+ }), g = C(() => !!F.value.title || !!F.value.helpMessage || T.value), j = C(() => {
1427
+ var v, I;
1399
1428
  return {
1400
- expand: ((p = P.value.collapseOptions) == null ? void 0 : p.expandButtonText) ?? "展开",
1401
- collapse: (($ = P.value.collapseOptions) == null ? void 0 : $.collapseButtonText) ?? "收起"
1429
+ expand: ((v = F.value.collapseOptions) == null ? void 0 : v.expandButtonText) ?? "展开",
1430
+ collapse: ((I = F.value.collapseOptions) == null ? void 0 : I.collapseButtonText) ?? "收起"
1402
1431
  };
1403
- }), j = F(() => ({
1432
+ }), G = C(() => ({
1404
1433
  gridTemplateColumns: `repeat(${_.value}, minmax(0, 1fr))`
1405
- })), R = (p) => ({
1406
- gridColumn: `span ${p._span}`
1407
- }), N = (p) => ({
1408
- minWidth: p.labelMinWidth ? `${p.labelMinWidth}px` : void 0,
1409
- ...p.labelStyle ?? {}
1410
- }), W = (p) => ({
1411
- minWidth: p.contentMinWidth ? `${p.contentMinWidth}px` : void 0,
1412
- ...p.contentStyle ?? {}
1413
- }), Z = (p) => D.value[p.dataIndex], ee = () => {
1414
- a.value = [...P.value.schema ?? []];
1415
- }, H = () => {
1416
- u.value = { ...P.value.data ?? {} };
1417
- }, q = async (p) => {
1418
- n.value = { ...n.value, ...p }, p.schema && (a.value = [...p.schema]), p.data && (u.value = { ...p.data });
1419
- }, Q = async (p) => {
1420
- u.value = { ...u.value, ...p }, n.value = { ...n.value, data: u.value };
1421
- }, U = () => ({ ...P.value.data ?? u.value ?? {} }), Y = {
1422
- setProps: q,
1423
- setData: Q,
1424
- getData: U
1434
+ })), M = (v) => ({
1435
+ gridColumn: `span ${v._span}`
1436
+ }), R = (v) => ({
1437
+ minWidth: v.labelMinWidth ? `${v.labelMinWidth}px` : void 0,
1438
+ ...v.labelStyle ?? {}
1439
+ }), q = (v) => ({
1440
+ minWidth: v.contentMinWidth ? `${v.contentMinWidth}px` : void 0,
1441
+ ...v.contentStyle ?? {}
1442
+ }), X = (v) => z.value[v.dataIndex], le = () => {
1443
+ a.value = [...F.value.schema ?? []];
1444
+ }, ee = () => {
1445
+ s.value = { ...F.value.data ?? {} };
1446
+ }, U = async (v) => {
1447
+ n.value = { ...n.value, ...v }, v.schema && (a.value = [...v.schema]), v.data && (s.value = { ...v.data });
1448
+ }, ae = async (v) => {
1449
+ s.value = { ...s.value, ...v }, n.value = { ...n.value, data: s.value };
1450
+ }, Z = () => ({ ...F.value.data ?? s.value ?? {} }), te = {
1451
+ setProps: U,
1452
+ setData: ae,
1453
+ getData: Z
1425
1454
  };
1426
- e(Y);
1427
- const re = () => {
1428
- typeof window < "u" && (f.value = window.innerWidth);
1455
+ e(te);
1456
+ const ce = () => {
1457
+ typeof window < "u" && (h.value = window.innerWidth);
1429
1458
  };
1430
- return me(() => {
1431
- var p;
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);
1433
- }), Fe(() => {
1434
- typeof window < "u" && window.removeEventListener("resize", re);
1435
- }), J(() => P.value.schema, ee, { deep: !0 }), J(() => P.value.data, H, { deep: !0 }), J(() => {
1436
- var p;
1437
- return (p = P.value.collapseOptions) == null ? void 0 : p.defaultExpand;
1438
- }, (p) => {
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 };
1459
+ return ge(() => {
1460
+ var v;
1461
+ le(), ee(), c.value = ((v = F.value.collapseOptions) == null ? void 0 : v.defaultExpand) !== !1, o("register", te), typeof window < "u" && window.addEventListener("resize", ce);
1462
+ }), Ae(() => {
1463
+ typeof window < "u" && window.removeEventListener("resize", ce);
1464
+ }), ne(() => F.value.schema, le, { deep: !0 }), ne(() => F.value.data, ee, { deep: !0 }), ne(() => {
1465
+ var v;
1466
+ return (v = F.value.collapseOptions) == null ? void 0 : v.defaultExpand;
1467
+ }, (v) => {
1468
+ v !== void 0 && (c.value = v);
1469
+ }), { __sfc: !0, props: t, emit: o, innerProps: n, innerData: s, innerSchema: a, windowWidth: h, expanded: c, DescriptionValueRenderer: y, normalizeTooltip: E, mergeSettings: b, effectiveProps: F, breakpoints: f, resolveColumn: S, currentColumn: _, effectiveData: z, visibleSchema: J, normalizedRows: d, renderedRows: P, showCollapseButton: T, showHeader: g, collapseButtonText: j, bodyStyle: G, getItemStyle: M, getLabelStyle: R, getContentStyle: q, getItemValue: X, syncSchema: le, syncData: ee, setProps: U, setData: ae, getData: Z, descriptionAction: te, updateWindowWidth: ce };
1441
1470
  }
1442
1471
  });
1443
- var Dt = function() {
1472
+ var Vt = function() {
1444
1473
  var n;
1445
- var e = this, l = e._self._c, t = e._self._setupProxy;
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) {
1447
- return l("div", { key: a }, [e._v(e._s(u))]);
1448
- }), 0) : l("span", [e._v(e._s(t.effectiveProps.helpMessage))])]), l("i", { staticClass: "el-icon-question ecp-pro-descriptions__help" })], 2) : e._e(), (n = t.effectiveProps.collapseOptions) != null && n.helpMessage ? l("el-tooltip", { attrs: { placement: "top", effect: "dark" } }, [l("template", { slot: "content" }, [Array.isArray(t.effectiveProps.collapseOptions.helpMessage) ? l("span", e._l(t.effectiveProps.collapseOptions.helpMessage, function(u, a) {
1449
- return l("div", { key: `collapse-${a}` }, [e._v(e._s(u))]);
1450
- }), 0) : l("span", [e._v(e._s(t.effectiveProps.collapseOptions.helpMessage))])]), l("i", { staticClass: "el-icon-info ecp-pro-descriptions__help" })], 2) : e._e()], 1), t.showCollapseButton ? l("el-button", { staticClass: "ecp-pro-descriptions__toggle", attrs: { type: "text" }, on: { click: function(u) {
1474
+ var e = this, o = e._self._c, t = e._self._setupProxy;
1475
+ return o("div", { staticClass: "ecp-pro-descriptions" }, [t.showHeader ? o("div", { staticClass: "ecp-pro-descriptions__header" }, [o("div", { staticClass: "ecp-pro-descriptions__title-wrap" }, [t.effectiveProps.title ? o("span", { staticClass: "ecp-pro-descriptions__title" }, [e._v(e._s(t.effectiveProps.title))]) : e._e(), t.effectiveProps.helpMessage ? o("el-tooltip", { attrs: { placement: "top", effect: "dark" } }, [o("template", { slot: "content" }, [Array.isArray(t.effectiveProps.helpMessage) ? o("span", e._l(t.effectiveProps.helpMessage, function(s, a) {
1476
+ return o("div", { key: a }, [e._v(e._s(s))]);
1477
+ }), 0) : o("span", [e._v(e._s(t.effectiveProps.helpMessage))])]), o("i", { staticClass: "el-icon-question ecp-pro-descriptions__help" })], 2) : e._e(), (n = t.effectiveProps.collapseOptions) != null && n.helpMessage ? o("el-tooltip", { attrs: { placement: "top", effect: "dark" } }, [o("template", { slot: "content" }, [Array.isArray(t.effectiveProps.collapseOptions.helpMessage) ? o("span", e._l(t.effectiveProps.collapseOptions.helpMessage, function(s, a) {
1478
+ return o("div", { key: `collapse-${a}` }, [e._v(e._s(s))]);
1479
+ }), 0) : o("span", [e._v(e._s(t.effectiveProps.collapseOptions.helpMessage))])]), o("i", { staticClass: "el-icon-info ecp-pro-descriptions__help" })], 2) : e._e()], 1), t.showCollapseButton ? o("el-button", { staticClass: "ecp-pro-descriptions__toggle", attrs: { type: "text" }, on: { click: function(s) {
1451
1480
  t.expanded = !t.expanded;
1452
- } } }, [e._v(" " + e._s(t.expanded ? t.collapseButtonText.collapse : t.collapseButtonText.expand) + " "), l("i", { staticClass: "el-icon-arrow-down", class: t.expanded ? "is-expanded" : "" })]) : e._e()], 1) : e._e(), l("div", e._b({ staticClass: "ecp-pro-descriptions__body", class: [
1481
+ } } }, [e._v(" " + e._s(t.expanded ? t.collapseButtonText.collapse : t.collapseButtonText.expand) + " "), o("i", { staticClass: "el-icon-arrow-down", class: t.expanded ? "is-expanded" : "" })]) : e._e()], 1) : e._e(), o("div", e._b({ staticClass: "ecp-pro-descriptions__body", class: [
1453
1482
  `is-${t.effectiveProps.size}`,
1454
1483
  { "is-bordered": t.effectiveProps.bordered, "is-collapsed": t.showCollapseButton && !t.expanded }
1455
- ], style: t.bodyStyle }, "div", e.$attrs, !1), [e._l(t.renderedRows, function(u, a) {
1456
- return [e._l(u.items, function(f) {
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)])];
1484
+ ], style: t.bodyStyle }, "div", e.$attrs, !1), [e._l(t.renderedRows, function(s, a) {
1485
+ return [e._l(s.items, function(h) {
1486
+ return [o("div", { key: `${a}-${h.dataIndex || h.field}`, staticClass: "ecp-pro-descriptions__item", style: t.getItemStyle(h) }, [o("div", { staticClass: "ecp-pro-descriptions__label", style: t.getLabelStyle(h) }, [e._v(" " + e._s(h.label) + " ")]), o("div", { staticClass: "ecp-pro-descriptions__content", style: t.getContentStyle(h) }, [e.$scopedSlots[h.slot || h.dataIndex] ? e._t(h.slot || h.dataIndex, null, { value: t.getItemValue(h), record: t.effectiveData, schema: h }) : o(t.DescriptionValueRenderer, { attrs: { schema: h, value: t.getItemValue(h), record: t.effectiveData, "empty-text": t.effectiveProps.emptyText || "-" } })], 2)])];
1458
1487
  })];
1459
1488
  })], 2)]);
1460
- }, kt = [], $t = /* @__PURE__ */ se(
1461
- Tt,
1462
- Dt,
1463
- kt,
1489
+ }, It = [], Et = /* @__PURE__ */ ue(
1490
+ Ot,
1491
+ Vt,
1492
+ It,
1464
1493
  !1,
1465
1494
  null,
1466
- "7d6cd376",
1495
+ "656036f6",
1467
1496
  null,
1468
1497
  null
1469
1498
  );
1470
- const Ke = $t.exports;
1471
- function Lt(r) {
1472
- const e = k(null), l = () => r ? fe(r) : void 0, t = () => {
1473
- const a = fe(e);
1499
+ const Ue = Et.exports;
1500
+ function Qt(i) {
1501
+ const e = O(null), o = () => i ? ve(i) : void 0, t = () => {
1502
+ const a = ve(e);
1474
1503
  if (!a)
1475
1504
  throw new Error("ProDescriptions instance has not been registered");
1476
1505
  return a;
1477
1506
  }, n = (a) => {
1478
1507
  e.value = a;
1479
- const f = l();
1480
- f && Object.keys(f).length > 0 && a.setProps(f);
1508
+ const h = o();
1509
+ h && Object.keys(h).length > 0 && a.setProps(h);
1481
1510
  };
1482
- return r && J(
1483
- () => l(),
1511
+ return i && ne(
1512
+ () => o(),
1484
1513
  (a) => {
1485
1514
  a && e.value && e.value.setProps(a);
1486
1515
  },
@@ -1491,50 +1520,311 @@ function Lt(r) {
1491
1520
  getData: () => t().getData()
1492
1521
  }];
1493
1522
  }
1494
- const zt = [
1495
- { name: "ProTable", component: Ee },
1496
- { name: "TableAction", component: Ne },
1497
- { name: "ProForm", component: We },
1498
- { name: "ProFormItem", component: Ve },
1499
- { name: "FormActions", component: Le },
1500
- { name: "FormattedNumberInput", component: Ae },
1501
- { name: "ProDescriptions", component: Ke }
1523
+ const Wt = {
1524
+ name: "ProTableForm",
1525
+ model: {
1526
+ prop: "modelValue",
1527
+ event: "update:modelValue"
1528
+ }
1529
+ }, Lt = /* @__PURE__ */ ie({
1530
+ ...Wt,
1531
+ props: {
1532
+ modelValue: { default: () => ({}) },
1533
+ columns: null,
1534
+ fixedRows: null,
1535
+ competitorsKey: { default: "competitors" },
1536
+ competitorNameKey: { default: "name" },
1537
+ firstColumnTitle: { default: "维度/友商" },
1538
+ competitorNamePlaceholder: { default: "请输入友商名称" },
1539
+ metricPlaceholder: { default: "请输入" },
1540
+ addCompetitorText: { default: "+新增友商" },
1541
+ minCompetitors: { default: 0 },
1542
+ rules: null,
1543
+ labelWidth: { default: "0" },
1544
+ bordered: { type: Boolean, default: !0 },
1545
+ firstColMinWidth: { default: 160 },
1546
+ actionWidth: { default: 120 },
1547
+ showFirstColumn: { type: Boolean, default: !0 },
1548
+ showActionColumn: { type: Boolean, default: !0 },
1549
+ actionColumn: null
1550
+ },
1551
+ emits: ["update:modelValue"],
1552
+ setup(i, { expose: e, emit: o }) {
1553
+ const t = i, n = O(null), s = () => t.competitorsKey ?? "competitors", a = () => t.competitorNameKey ?? "name", h = C(() => t.fixedRows.length > 0 ? !0 : t.showFirstColumn !== !1), c = C(() => "left"), y = C(() => {
1554
+ const r = t.actionColumn;
1555
+ return {
1556
+ width: (r == null ? void 0 : r.width) ?? t.actionWidth,
1557
+ minWidth: r == null ? void 0 : r.minWidth,
1558
+ align: (r == null ? void 0 : r.align) ?? "center",
1559
+ fixed: (r == null ? void 0 : r.fixed) === void 0 ? "right" : r.fixed
1560
+ };
1561
+ });
1562
+ function E(r) {
1563
+ return r._type === "fixed" ? `f-${r.rowKey}` : `c-${r._index}`;
1564
+ }
1565
+ const b = C(() => {
1566
+ const r = [];
1567
+ t.fixedRows.forEach((W) => {
1568
+ r.push({
1569
+ _type: "fixed",
1570
+ rowKey: W.rowKey,
1571
+ rowLabel: W.label
1572
+ });
1573
+ });
1574
+ const m = t.modelValue;
1575
+ return ((m && typeof m == "object" ? m[s()] : void 0) ?? []).forEach((W, N) => {
1576
+ r.push({ _type: "competitor", _index: N });
1577
+ }), r;
1578
+ }), F = C(() => {
1579
+ const r = t.modelValue;
1580
+ return ((r && typeof r == "object" ? r[s()] : void 0) ?? []).length > t.minCompetitors;
1581
+ });
1582
+ function f() {
1583
+ const r = t.modelValue;
1584
+ return !r || typeof r != "object" ? {} : JSON.parse(JSON.stringify(r));
1585
+ }
1586
+ function S(r) {
1587
+ const m = t.modelValue;
1588
+ if (!m || typeof m != "object") {
1589
+ const N = {};
1590
+ for (const Q of t.columns)
1591
+ N[Q.key] = "";
1592
+ return N;
1593
+ }
1594
+ const k = m[r];
1595
+ if (k && typeof k == "object" && !Array.isArray(k))
1596
+ return k;
1597
+ const W = {};
1598
+ for (const N of t.columns)
1599
+ W[N.key] = "";
1600
+ return W;
1601
+ }
1602
+ function _(r) {
1603
+ o("update:modelValue", r);
1604
+ }
1605
+ function z(r, m) {
1606
+ return S(r)[m] ?? "";
1607
+ }
1608
+ function J(r, m, k) {
1609
+ const W = f(), N = { ...W[r] || {} };
1610
+ N[m] = k, W[r] = N, _(W);
1611
+ }
1612
+ function d() {
1613
+ const r = t.modelValue;
1614
+ if (!r || typeof r != "object")
1615
+ return [];
1616
+ const m = r[s()];
1617
+ return Array.isArray(m) ? m : [];
1618
+ }
1619
+ function P(r) {
1620
+ const m = d()[r], k = a();
1621
+ return m ? String(m[k] ?? "") : "";
1622
+ }
1623
+ function T(r, m) {
1624
+ const k = f(), W = [...d()], N = { ...W[r] || {} };
1625
+ N[a()] = m, W[r] = N, k[s()] = W, _(k);
1626
+ }
1627
+ function g(r, m) {
1628
+ const k = d()[r];
1629
+ return k ? k[m] ?? "" : "";
1630
+ }
1631
+ function j(r, m, k) {
1632
+ const W = f(), N = [...d()], Q = { ...N[r] || {} };
1633
+ Q[m] = k, N[r] = Q, W[s()] = N, _(W);
1634
+ }
1635
+ function G(r, m) {
1636
+ return r._type === "fixed" ? z(r.rowKey, m.key) : g(r._index, m.key);
1637
+ }
1638
+ function M(r, m, k) {
1639
+ r._type === "fixed" ? J(r.rowKey, m.key, k) : j(r._index, m.key, k);
1640
+ }
1641
+ function R(r, m) {
1642
+ return (k) => M(r.row, m, k);
1643
+ }
1644
+ function q() {
1645
+ const r = { [a()]: "" };
1646
+ for (const m of t.columns)
1647
+ r[m.key] = "";
1648
+ return r;
1649
+ }
1650
+ function X() {
1651
+ const r = f(), m = [...d()];
1652
+ m.push(q()), r[s()] = m, _(r);
1653
+ }
1654
+ function le(r) {
1655
+ if (!F.value)
1656
+ return;
1657
+ const m = f(), k = [...d()];
1658
+ k.splice(r, 1), m[s()] = k, _(m);
1659
+ }
1660
+ function ee(r, m) {
1661
+ return `${r}.${m}`;
1662
+ }
1663
+ function U(r) {
1664
+ return `${s()}.${r}.${a()}`;
1665
+ }
1666
+ function ae(r, m) {
1667
+ return `${s()}.${r}.${m}`;
1668
+ }
1669
+ function Z(r) {
1670
+ return r.component === "formatted-number" ? Fe : "el-input";
1671
+ }
1672
+ function te(r) {
1673
+ const m = r.componentProps || {};
1674
+ return r.component === "formatted-number" ? {
1675
+ integerDigits: 5,
1676
+ decimalPlaces: 6,
1677
+ rounding: "round",
1678
+ inputLimit: !0,
1679
+ ...m
1680
+ } : { ...m };
1681
+ }
1682
+ function ce(r) {
1683
+ const m = r.row;
1684
+ if (m._type === "fixed")
1685
+ return {
1686
+ row: m,
1687
+ rowType: "fixed",
1688
+ rowKey: m.rowKey,
1689
+ rowLabel: m.rowLabel
1690
+ };
1691
+ const k = m._index;
1692
+ return {
1693
+ row: m,
1694
+ rowType: "competitor",
1695
+ rowIndex: k,
1696
+ value: P(k),
1697
+ updateValue: (W) => T(k, W)
1698
+ };
1699
+ }
1700
+ const v = C(() => {
1701
+ const r = {}, m = (W) => [{ required: !0, message: `请输入${W}`, trigger: "blur" }];
1702
+ for (const W of t.fixedRows)
1703
+ for (const N of t.columns)
1704
+ N.rules ? r[`${W.rowKey}.${N.key}`] = N.rules : N.required && (r[`${W.rowKey}.${N.key}`] = m(N.title));
1705
+ return d().forEach((W, N) => {
1706
+ r[`${s()}.${N}.${a()}`] = m("友商名称");
1707
+ for (const Q of t.columns)
1708
+ Q.rules ? r[`${s()}.${N}.${Q.key}`] = Q.rules : Q.required && (r[`${s()}.${N}.${Q.key}`] = m(Q.title));
1709
+ }), { ...r, ...t.rules || {} };
1710
+ });
1711
+ function I() {
1712
+ return new Promise((r) => {
1713
+ const m = n.value;
1714
+ if (!m || typeof m.validate != "function") {
1715
+ r(!0);
1716
+ return;
1717
+ }
1718
+ m.validate((k) => {
1719
+ r(k);
1720
+ });
1721
+ });
1722
+ }
1723
+ function $(r) {
1724
+ var m, k;
1725
+ (k = (m = n.value) == null ? void 0 : m.clearValidate) == null || k.call(m, r);
1726
+ }
1727
+ return e({
1728
+ validate: I,
1729
+ clearValidate: $,
1730
+ addCompetitor: X,
1731
+ removeCompetitor: le
1732
+ }), { __sfc: !0, props: t, emit: o, formRef: n, ck: s, nk: a, showFirstColumnComputed: h, firstColumnFixed: c, actionColumnBind: y, rowKeyFn: E, tableRows: b, canDeleteCompetitor: F, cloneModel: f, ensureFixedBlock: S, emitNext: _, getFixedMetric: z, setFixedMetric: J, competitorList: d, getCompetitorName: P, setCompetitorName: T, getCompetitorMetric: g, setCompetitorMetric: j, getCellValue: G, setCellValue: M, slotUpdateHandler: R, emptyCompetitorRow: q, addCompetitor: X, removeCompetitor: le, fixedMetricProp: ee, competitorNameProp: U, competitorMetricProp: ae, cellComponent: Z, cellBind: te, firstColumnScope: ce, mergedRules: v, validate: I, clearValidate: $ };
1733
+ }
1734
+ });
1735
+ var Kt = function() {
1736
+ var e = this, o = e._self._c, t = e._self._setupProxy;
1737
+ return o("div", { staticClass: "ecp-pro-table-form" }, [o("el-form", { ref: "formRef", staticClass: "ecp-pro-table-form__form", attrs: { model: e.modelValue, rules: t.mergedRules, "label-width": e.labelWidth } }, [o("el-table", { staticClass: "ecp-pro-table-form__table", attrs: { data: t.tableRows, border: e.bordered, "row-key": t.rowKeyFn, "header-cell-class-name": "ecp-pro-table-form__header-cell" } }, [t.showFirstColumnComputed ? o("el-table-column", { attrs: { "min-width": e.firstColMinWidth, fixed: t.firstColumnFixed }, scopedSlots: e._u([{ key: "header", fn: function() {
1738
+ return [e._t("firstColumnHeader", function() {
1739
+ return [o("span", { staticClass: "ecp-pro-table-form__th-text" }, [o("span", { staticClass: "ecp-pro-table-form__req" }, [e._v("*")]), e._v(e._s(e.firstColumnTitle) + " ")])];
1740
+ })];
1741
+ }, proxy: !0 }, { key: "default", fn: function(n) {
1742
+ return [e._t("firstColumn", function() {
1743
+ return [n.row._type === "fixed" ? [o("span", { staticClass: "ecp-pro-table-form__fixed-label" }, [e._v(e._s(n.row.rowLabel))])] : o("el-form-item", { staticClass: "ecp-pro-table-form__cell-item", attrs: { prop: t.competitorNameProp(n.row._index) } }, [o("el-input", { attrs: { value: t.getCompetitorName(n.row._index), placeholder: e.competitorNamePlaceholder }, on: { input: function(s) {
1744
+ return t.setCompetitorName(n.row._index, s);
1745
+ } } })], 1)];
1746
+ }, null, t.firstColumnScope(n))];
1747
+ } }], null, !0) }) : e._e(), e._l(e.columns, function(n) {
1748
+ return o("el-table-column", { key: n.key, attrs: { "min-width": n.minWidth || n.width || 120, width: n.width }, scopedSlots: e._u([{ key: "header", fn: function() {
1749
+ return [e._t("header-" + n.key, function() {
1750
+ return [o("span", { staticClass: "ecp-pro-table-form__th-text" }, [n.required ? o("span", { staticClass: "ecp-pro-table-form__req" }, [e._v("*")]) : e._e(), e._v(e._s(n.title) + " ")])];
1751
+ }, { column: n })];
1752
+ }, proxy: !0 }, { key: "default", fn: function(s) {
1753
+ return [n.component === "slot" && n.slotName ? [s.row._type === "fixed" ? o("el-form-item", { staticClass: "ecp-pro-table-form__cell-item", attrs: { prop: t.fixedMetricProp(s.row.rowKey, n.key) } }, [e._t("cell-" + n.slotName, null, { column: n, row: s.row, value: t.getCellValue(s.row, n), updateValue: t.slotUpdateHandler(s, n) })], 2) : o("el-form-item", { staticClass: "ecp-pro-table-form__cell-item", attrs: { prop: t.competitorMetricProp(s.row._index, n.key) } }, [e._t("cell-" + n.slotName, null, { column: n, row: s.row, value: t.getCellValue(s.row, n), updateValue: t.slotUpdateHandler(s, n) })], 2)] : [s.row._type === "fixed" ? o("el-form-item", { staticClass: "ecp-pro-table-form__cell-item", attrs: { prop: t.fixedMetricProp(s.row.rowKey, n.key) } }, [o(t.cellComponent(n), e._b({ tag: "component", attrs: { value: t.getFixedMetric(s.row.rowKey, n.key), placeholder: n.placeholder || e.metricPlaceholder }, on: { input: function(a) {
1754
+ return t.setFixedMetric(s.row.rowKey, n.key, a);
1755
+ } } }, "component", t.cellBind(n), !1))], 1) : o("el-form-item", { staticClass: "ecp-pro-table-form__cell-item", attrs: { prop: t.competitorMetricProp(s.row._index, n.key) } }, [o(t.cellComponent(n), e._b({ tag: "component", attrs: { value: t.getCompetitorMetric(s.row._index, n.key), placeholder: n.placeholder || e.metricPlaceholder }, on: { input: function(a) {
1756
+ return t.setCompetitorMetric(s.row._index, n.key, a);
1757
+ } } }, "component", t.cellBind(n), !1))], 1)]];
1758
+ } }], null, !0) });
1759
+ }), e.showActionColumn ? o("el-table-column", e._b({ scopedSlots: e._u([{ key: "header", fn: function() {
1760
+ return [e._t("actionHeader", function() {
1761
+ var n;
1762
+ return [(n = e.actionColumn) != null && n.title ? o("span", { staticClass: "ecp-pro-table-form__action-title" }, [e._v(e._s(e.actionColumn.title))]) : e._e(), o("el-button", { staticClass: "ecp-pro-table-form__add-btn", attrs: { type: "text" }, on: { click: t.addCompetitor } }, [e._v(" " + e._s(e.addCompetitorText) + " ")])];
1763
+ })];
1764
+ }, proxy: !0 }, { key: "default", fn: function(n) {
1765
+ return [e._t("action", function() {
1766
+ return [n.row._type === "competitor" ? o("el-button", { staticClass: "ecp-pro-table-form__del-btn", attrs: { type: "text", disabled: !t.canDeleteCompetitor }, on: { click: function(s) {
1767
+ return t.removeCompetitor(n.row._index);
1768
+ } } }, [e._v(" 删除 ")]) : o("el-button", { staticClass: "ecp-pro-table-form__del-btn", attrs: { type: "text", disabled: "" } }, [e._v(" 删除 ")])];
1769
+ }, { row: n.row, canDelete: t.canDeleteCompetitor, addCompetitor: t.addCompetitor, removeCompetitor: t.removeCompetitor })];
1770
+ } }], null, !0) }, "el-table-column", t.actionColumnBind, !1)) : e._e()], 2)], 1)], 1);
1771
+ }, jt = [], qt = /* @__PURE__ */ ue(
1772
+ Lt,
1773
+ Kt,
1774
+ jt,
1775
+ !1,
1776
+ null,
1777
+ "44aa7592",
1778
+ null,
1779
+ null
1780
+ );
1781
+ const Ge = qt.exports, Ht = [
1782
+ { name: "ProTable", component: Ke },
1783
+ { name: "TableAction", component: je },
1784
+ { name: "ProForm", component: Je },
1785
+ { name: "ProFormItem", component: qe },
1786
+ { name: "FormActions", component: He },
1787
+ { name: "FormattedNumberInput", component: Fe },
1788
+ { name: "ProDescriptions", component: Ue },
1789
+ { name: "ProTableForm", component: Ge }
1502
1790
  ];
1503
- function It(r) {
1504
- zt.forEach(({ name: e, component: l }) => {
1505
- r.component(e, l);
1791
+ function Jt(i) {
1792
+ Ht.forEach(({ name: e, component: o }) => {
1793
+ i.component(e, o);
1506
1794
  });
1507
1795
  }
1508
- const Wt = {
1509
- install: It,
1510
- ProTable: Ee,
1511
- ProForm: We,
1512
- ProDescriptions: Ke,
1513
- TableAction: Ne,
1514
- FormattedNumberInput: Ae
1796
+ const Yt = {
1797
+ install: Jt,
1798
+ ProTable: Ke,
1799
+ ProForm: Je,
1800
+ ProDescriptions: Ue,
1801
+ TableAction: je,
1802
+ FormattedNumberInput: Fe,
1803
+ ProTableForm: Ge
1515
1804
  };
1516
1805
  export {
1517
- Le as FormActions,
1518
- Ae as FormattedNumberInput,
1519
- Ke as ProDescriptions,
1520
- We as ProForm,
1521
- Ve as ProFormItem,
1522
- Ee as ProTable,
1523
- Ne as TableAction,
1524
- at as applyNumericInputDigitLimits,
1525
- ze as clampByIntegerDigits,
1526
- Wt as default,
1527
- Ie as formatWithThousands,
1528
- It as install,
1529
- Ce as normalizeNumericValue,
1530
- ct as numberToEditString,
1531
- rt as roundToDecimals,
1532
- $e as sanitizeNumericInput,
1533
- Pe as stripNumberGrouping,
1534
- it as toFixedDecimalString,
1535
- Re as useComponentSetting,
1536
- Lt as useDescription,
1537
- Vt as useForm,
1538
- Nt as useProTable
1806
+ He as FormActions,
1807
+ Fe as FormattedNumberInput,
1808
+ Ue as ProDescriptions,
1809
+ Je as ProForm,
1810
+ qe as ProFormItem,
1811
+ Ke as ProTable,
1812
+ Ge as ProTableForm,
1813
+ je as TableAction,
1814
+ dt as applyNumericInputDigitLimits,
1815
+ Ee as clampByIntegerDigits,
1816
+ Yt as default,
1817
+ We as formatWithThousands,
1818
+ Jt as install,
1819
+ Se as normalizeNumericValue,
1820
+ vt as numberToEditString,
1821
+ pt as roundToDecimals,
1822
+ Ie as sanitizeNumericInput,
1823
+ Re as stripNumberGrouping,
1824
+ mt as toFixedDecimalString,
1825
+ Te as useComponentSetting,
1826
+ Qt as useDescription,
1827
+ Zt as useForm,
1828
+ Xt as useProTable
1539
1829
  };
1540
1830
  //# sourceMappingURL=element-component-pro.es.js.map