@aspire-ui/element-component-pro 1.0.2 → 1.0.4

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,16 @@
1
- import { reactive as De, defineComponent as Z, h as ne, useSlots as ye, ref as M, computed as B, onMounted as xe, nextTick as $e, onUnmounted as Re, watch as ae, unref as we } from "vue";
1
+ import { reactive as $e, defineComponent as ee, h as ce, useSlots as Pe, ref as k, computed as R, onMounted as we, nextTick as Fe, onUnmounted as Re, watch as U, unref as ye } from "vue";
2
2
  import { MessageBox as ze } from "element-ui";
3
- const be = De({});
4
- function Fe() {
3
+ const ge = $e({});
4
+ function Be() {
5
5
  return {
6
- getSetting: (l) => l === void 0 ? { ...be } : { ...be[l] ?? {} },
6
+ getSetting: (l) => l === void 0 ? { ...ge } : { ...ge[l] ?? {} },
7
7
  setSetting: (l, t) => {
8
- const n = be[l];
9
- be[l] = n ? { ...n, ...t } : { ...t };
8
+ const a = ge[l];
9
+ ge[l] = a ? { ...a, ...t } : { ...t };
10
10
  }
11
11
  };
12
12
  }
13
- const Ee = /* @__PURE__ */ Z({
13
+ const Ee = /* @__PURE__ */ ee({
14
14
  __name: "ProTable",
15
15
  props: {
16
16
  columns: null,
@@ -54,8 +54,8 @@ const Ee = /* @__PURE__ */ Z({
54
54
  load: null
55
55
  },
56
56
  emits: ["register", "fetch-success", "fetch-error", "selection-change", "row-click", "row-dblclick", "sort-change", "expand-change"],
57
- setup(A, { expose: e, emit: l }) {
58
- const t = A, n = Z({
57
+ setup(x, { expose: e, emit: l }) {
58
+ const t = x, a = ee({
59
59
  name: "EcpProTableDefaultCellRenderer",
60
60
  props: {
61
61
  column: { type: Object, required: !0 },
@@ -65,20 +65,20 @@ const Ee = /* @__PURE__ */ Z({
65
65
  },
66
66
  setup(o) {
67
67
  return () => {
68
- var u, m;
69
- const a = o.column;
70
- if (a != null && a.customRender) {
71
- const F = a.customRender({ text: o.value, record: o.record, index: o.index });
72
- return typeof F == "string" || typeof F == "number" ? ne("span", String(F)) : F;
68
+ var f, b;
69
+ const n = o.column;
70
+ if (n != null && n.customRender) {
71
+ const T = n.customRender({ text: o.value, record: o.record, index: o.index });
72
+ return typeof T == "string" || typeof T == "number" ? ce("span", String(T)) : T;
73
73
  }
74
- if (a != null && a.valueEnum) {
75
- const F = ((m = (u = a.valueEnum) == null ? void 0 : u[o.value]) == null ? void 0 : m.text) ?? o.value;
76
- return ne("span", F == null ? "" : String(F));
74
+ if (n != null && n.valueEnum) {
75
+ const T = ((b = (f = n.valueEnum) == null ? void 0 : f[o.value]) == null ? void 0 : b.text) ?? o.value;
76
+ return ce("span", T == null ? "" : String(T));
77
77
  }
78
- return ne("span", o.value == null ? "" : String(o.value));
78
+ return ce("span", o.value == null ? "" : String(o.value));
79
79
  };
80
80
  }
81
- }), i = Z({
81
+ }), y = ee({
82
82
  name: "EcpProTableBodyCellRenderer",
83
83
  props: {
84
84
  slotRender: { type: Function, required: !0 },
@@ -91,485 +91,711 @@ const Ee = /* @__PURE__ */ Z({
91
91
  },
92
92
  setup(o) {
93
93
  return () => {
94
- const a = o.slotRender, u = a == null ? void 0 : a({ column: o.column, record: o.record, index: o.index, value: o.value });
95
- if ((($) => $ == null ? [] : Array.isArray($) ? $.filter((I) => I != null && I !== !1 && !I.isComment) : [$])(u).length > 0)
96
- return u;
97
- const S = { ...o.column };
98
- return o.customRender && (S.customRender = o.customRender), o.valueEnum && (S.valueEnum = o.valueEnum), ne(n, { props: { column: S, record: o.record, index: o.index, value: o.value } });
94
+ const n = o.slotRender, f = n == null ? void 0 : n({ column: o.column, record: o.record, index: o.index, value: o.value });
95
+ if (((V) => V == null ? [] : Array.isArray(V) ? V.filter((G) => G != null && G !== !1 && !G.isComment) : [V])(f).length > 0)
96
+ return f;
97
+ const F = { ...o.column };
98
+ return o.customRender && (F.customRender = o.customRender), o.valueEnum && (F.valueEnum = o.valueEnum), ce(a, { props: { column: F, record: o.record, index: o.index, value: o.value } });
99
99
  };
100
100
  }
101
- }), P = ye(), z = M(), s = M(), v = M(0), h = M(t.loading ?? !1), c = M([]), b = M({}), k = M([]), p = M({}), y = M([]), R = M(null), x = M({
101
+ }), r = Pe(), P = k(), s = k(), p = k(0), $ = k(t.loading ?? !1), u = k([]), D = k({}), h = k([]), B = k({}), m = k([]), A = k(null), c = k({
102
102
  page: 1,
103
103
  pageSize: t.pagination && typeof t.pagination == "object" ? t.pagination.pageSize ?? 10 : 10,
104
104
  pageSizes: t.pagination && typeof t.pagination == "object" ? t.pagination.pageSizes ?? [10, 20, 50, 100] : [10, 20, 50, 100],
105
105
  total: 0
106
- }), { getSetting: f } = Fe(), d = B(() => ({ ...f("ProTable"), ...t, ...p.value })), O = B(() => !!d.value.title || !!P.tableTitle || !!P.toolbar), j = B(() => R.value !== null ? R.value : !!t.pagination && typeof t.pagination == "object"), D = B(() => d.value.rowKey || "id"), H = B(() => new Set(y.value.map((o) => o[D.value]))), ee = B(
107
- () => k.value.filter((o) => !o.hideInTable && !o.defaultHidden)
108
- ), re = B(() => {
109
- var a, u;
106
+ }), { getSetting: v } = Be(), d = R(() => ({ ...v("ProTable"), ...t, ...B.value })), z = R(() => !!d.value.title || !!r.tableTitle || !!r.toolbar), I = R(() => A.value !== null ? A.value : !!t.pagination && typeof t.pagination == "object"), M = R(() => d.value.rowKey || "id"), N = R(() => new Set(m.value.map((o) => o[M.value]))), g = R(
107
+ () => h.value.filter((o) => !o.hideInTable && !o.defaultHidden)
108
+ ), L = R(() => {
109
+ var n, f;
110
110
  let o = 0;
111
- return d.value.rowSelection && (o += Number(d.value.rowSelection.width) || 48), d.value.showIndexColumn && (o += Number((a = d.value.indexColumnProps) == null ? void 0 : a.width) || 60), d.value.actionColumn && (o += Number((u = d.value.actionColumn) == null ? void 0 : u.width) || 150), o;
112
- }), L = (o) => typeof o == "number" && o > 0, J = B(() => ee.value.filter((a) => Y(a) && L(a.width)).reduce((a, u) => a + (typeof u.width == "number" ? u.width : 0), 0)), Q = B(() => ee.value.filter((a) => Y(a) && typeof a.width == "string").reduce((a, u) => a + (Number(ie(u)) || 80), 0)), W = (o) => o == null ? null : typeof o == "number" ? o : parseInt(String(o).replace(/px$/i, ""), 10) || null, ie = (o) => {
113
- const a = o.width;
114
- if (L(a) && J.value > 0 && v.value > 0 && typeof a == "number") {
115
- const u = v.value - re.value - Q.value;
116
- let m = Math.floor(u * a / J.value);
117
- const F = W(o.minWidth) ?? 60, S = W(o.maxWidth);
118
- return m = Math.max(F, m), S != null && (m = Math.min(S, m)), m;
111
+ return d.value.rowSelection && (o += Number(d.value.rowSelection.width) || 48), d.value.showIndexColumn && (o += Number((n = d.value.indexColumnProps) == null ? void 0 : n.width) || 60), d.value.actionColumn && (o += Number((f = d.value.actionColumn) == null ? void 0 : f.width) || 150), o;
112
+ }), O = (o) => typeof o == "number" && o > 0, W = R(() => g.value.filter((n) => Y(n) && O(n.width)).reduce((n, f) => n + (typeof f.width == "number" ? f.width : 0), 0)), X = R(() => g.value.filter((n) => Y(n) && typeof n.width == "string").reduce((n, f) => n + (Number(q(f)) || 80), 0)), K = (o) => o == null ? null : typeof o == "number" ? o : parseInt(String(o).replace(/px$/i, ""), 10) || null, q = (o) => {
113
+ const n = o.width;
114
+ if (O(n) && W.value > 0 && p.value > 0 && typeof n == "number") {
115
+ const f = p.value - L.value - X.value;
116
+ let b = Math.floor(f * n / W.value);
117
+ const T = K(o.minWidth) ?? 60, F = K(o.maxWidth);
118
+ return b = Math.max(T, b), F != null && (b = Math.min(F, b)), b;
119
119
  }
120
- if (typeof a == "string") {
121
- const u = W(a) ?? 80, m = W(o.minWidth), F = W(o.maxWidth);
122
- let S = u;
123
- return m != null && (S = Math.max(m, S)), F != null && (S = Math.min(F, S)), S;
120
+ if (typeof n == "string") {
121
+ const f = K(n) ?? 80, b = K(o.minWidth), T = K(o.maxWidth);
122
+ let F = f;
123
+ return b != null && (F = Math.max(b, F)), T != null && (F = Math.min(T, F)), F;
124
124
  }
125
125
  return o.width;
126
- }, Y = (o) => o.ifShow === !1 ? !1 : typeof o.ifShow == "function" ? o.ifShow({ column: o }) : !0, V = B(() => {
127
- var a;
128
- const o = (a = d.value.rowSelection) == null ? void 0 : a.getCheckboxProps;
129
- return o ? c.value.filter((u) => {
130
- var m;
131
- return !((m = o(u)) != null && m.disabled);
132
- }) : c.value;
133
- }), ce = B(() => V.value.length > 0), ue = B(() => V.value.length === 0 ? !1 : V.value.every((o) => H.value.has(o[D.value]))), de = B(() => {
134
- const o = V.value.filter((a) => H.value.has(a[D.value])).length;
135
- return o > 0 && o < V.value.length;
136
- }), fe = (o) => H.value.has(o[D.value]), pe = (o) => {
137
- var a, u, m;
138
- return ((m = (u = (a = d.value.rowSelection) == null ? void 0 : a.getCheckboxProps) == null ? void 0 : u.call(a, o)) == null ? void 0 : m.disabled) ?? !1;
139
- }, me = (o) => {
140
- var a, u, m;
141
- return ((m = (u = (a = d.value.rowSelection) == null ? void 0 : a.getRadioProps) == null ? void 0 : u.call(a, o)) == null ? void 0 : m.disabled) ?? !1;
142
- }, K = () => {
143
- const o = y.value.map((a) => a[D.value]);
144
- l("selection-change", { keys: o, rows: y.value });
145
- }, ve = (o, a) => {
146
- const u = o[D.value];
147
- a ? y.value = [...y.value.filter((m) => m[D.value] !== u), o] : y.value = y.value.filter((m) => m[D.value] !== u), K();
126
+ }, Y = (o) => o.ifShow === !1 ? !1 : typeof o.ifShow == "function" ? o.ifShow({ column: o }) : !0, j = R(() => {
127
+ var n;
128
+ const o = (n = d.value.rowSelection) == null ? void 0 : n.getCheckboxProps;
129
+ return o ? u.value.filter((f) => {
130
+ var b;
131
+ return !((b = o(f)) != null && b.disabled);
132
+ }) : u.value;
133
+ }), te = R(() => j.value.length > 0), ue = R(() => j.value.length === 0 ? !1 : j.value.every((o) => N.value.has(o[M.value]))), de = R(() => {
134
+ const o = j.value.filter((n) => N.value.has(n[M.value])).length;
135
+ return o > 0 && o < j.value.length;
136
+ }), fe = (o) => N.value.has(o[M.value]), pe = (o) => {
137
+ var n, f, b;
138
+ return ((b = (f = (n = d.value.rowSelection) == null ? void 0 : n.getCheckboxProps) == null ? void 0 : f.call(n, o)) == null ? void 0 : b.disabled) ?? !1;
139
+ }, ve = (o) => {
140
+ var n, f, b;
141
+ return ((b = (f = (n = d.value.rowSelection) == null ? void 0 : n.getRadioProps) == null ? void 0 : f.call(n, o)) == null ? void 0 : b.disabled) ?? !1;
142
+ }, Z = () => {
143
+ const o = m.value.map((n) => n[M.value]);
144
+ l("selection-change", { keys: o, rows: m.value });
145
+ }, me = (o, n) => {
146
+ const f = o[M.value];
147
+ n ? m.value = [...m.value.filter((b) => b[M.value] !== f), o] : m.value = m.value.filter((b) => b[M.value] !== f), Z();
148
148
  }, he = (o) => {
149
- y.value = [o], K();
150
- }, te = (o) => {
149
+ m.value = [o], Z();
150
+ }, be = (o) => {
151
151
  if (o) {
152
- const a = new Set(y.value.map((m) => m[D.value])), u = V.value.filter((m) => !a.has(m[D.value]));
153
- y.value = [...y.value, ...u];
152
+ const n = new Set(m.value.map((b) => b[M.value])), f = j.value.filter((b) => !n.has(b[M.value]));
153
+ m.value = [...m.value, ...f];
154
154
  } else {
155
- const a = new Set(c.value.map((u) => u[D.value]));
156
- y.value = y.value.filter((u) => !a.has(u[D.value]));
155
+ const n = new Set(u.value.map((f) => f[M.value]));
156
+ m.value = m.value.filter((f) => !n.has(f[M.value]));
157
157
  }
158
- K();
159
- }, q = async (o) => {
158
+ Z();
159
+ }, J = async (o) => {
160
160
  if (!t.api) {
161
161
  if (t.dataSource)
162
162
  return;
163
- c.value = [];
163
+ u.value = [];
164
164
  return;
165
165
  }
166
- h.value = !0;
166
+ $.value = !0;
167
167
  try {
168
- const a = d.value.fetchSetting ?? {}, u = a.pageField ?? "page", m = a.sizeField ?? "pageSize", F = a.listField ?? "list", S = a.totalField ?? "total", $ = {
169
- [u]: (o == null ? void 0 : o.page) ?? x.value.page,
170
- [m]: (o == null ? void 0 : o.pageSize) ?? x.value.pageSize,
168
+ const n = d.value.fetchSetting ?? {}, f = n.pageField ?? "page", b = n.sizeField ?? "pageSize", T = n.listField ?? "list", F = n.totalField ?? "total", V = {
169
+ [f]: (o == null ? void 0 : o.page) ?? c.value.page,
170
+ [b]: (o == null ? void 0 : o.pageSize) ?? c.value.pageSize,
171
171
  ...t.searchInfo,
172
172
  ...o == null ? void 0 : o.searchInfo
173
173
  };
174
- (o == null ? void 0 : o.page) != null && (x.value.page = o.page), (o == null ? void 0 : o.pageSize) != null && (x.value.pageSize = o.pageSize);
175
- const I = t.beforeFetch ? t.beforeFetch($) : $, _e = await t.api(I);
176
- b.value = _e || {};
177
- const ge = t.afterFetch ? t.afterFetch(_e) : _e, Ce = ge[F] ?? ge.items ?? ge.list ?? [], Se = ge[S] ?? 0;
178
- c.value = Ce, x.value.total = Se, l("fetch-success", { items: Ce, total: Se });
179
- } catch (a) {
180
- l("fetch-error", a);
174
+ (o == null ? void 0 : o.page) != null && (c.value.page = o.page), (o == null ? void 0 : o.pageSize) != null && (c.value.pageSize = o.pageSize);
175
+ const G = t.beforeFetch ? t.beforeFetch(V) : V, Ce = await t.api(G);
176
+ D.value = Ce || {};
177
+ const _e = t.afterFetch ? t.afterFetch(Ce) : Ce, Se = _e[T] ?? _e.items ?? _e.list ?? [], xe = _e[F] ?? 0;
178
+ u.value = Se, c.value.total = xe, l("fetch-success", { items: Se, total: xe });
179
+ } catch (n) {
180
+ l("fetch-error", n);
181
181
  } finally {
182
- h.value = !1;
182
+ $.value = !1;
183
183
  }
184
- }, oe = () => q(void 0), r = (o) => {
185
- d.value.clearSelectOnPageChange && (y.value = []), x.value.pageSize = o, x.value.page = 1, q(void 0);
186
- }, g = (o) => {
187
- d.value.clearSelectOnPageChange && (y.value = []), x.value.page = o, q(void 0);
188
- }, C = (o, a, u) => l("row-click", o, u), w = (o, a, u) => l("row-dblclick", o, u), _ = ({ prop: o, order: a }) => l("sort-change", { prop: o, order: a }), T = (o, a) => l("expand-change", o, a), E = (o) => c.value.findIndex((a) => a[D.value] === o), N = {
184
+ }, se = () => J(void 0), re = (o) => {
185
+ d.value.clearSelectOnPageChange && (m.value = []), c.value.pageSize = o, c.value.page = 1, J(void 0);
186
+ }, i = (o) => {
187
+ d.value.clearSelectOnPageChange && (m.value = []), c.value.page = o, J(void 0);
188
+ }, _ = (o, n, f) => l("row-click", o, f), S = (o, n, f) => l("row-dblclick", o, f), C = ({ prop: o, order: n }) => l("sort-change", { prop: o, order: n }), w = (o, n) => l("expand-change", o, n), E = (o) => u.value.findIndex((n) => n[M.value] === o), H = {
189
189
  setProps: (o) => {
190
- p.value = { ...p.value, ...o };
190
+ B.value = { ...B.value, ...o };
191
191
  },
192
- reload: (o) => q(o),
192
+ reload: (o) => J(o),
193
193
  redoHeight: () => {
194
- var o, a;
195
- (a = (o = z.value) == null ? void 0 : o.doLayout) == null || a.call(o);
194
+ var o, n;
195
+ (n = (o = P.value) == null ? void 0 : o.doLayout) == null || n.call(o);
196
196
  },
197
197
  setLoading: (o) => {
198
- h.value = o;
198
+ $.value = o;
199
199
  },
200
- getDataSource: () => c.value,
201
- getRawDataSource: () => b.value,
200
+ getDataSource: () => u.value,
201
+ getRawDataSource: () => D.value,
202
202
  setTableData: (o) => {
203
- c.value = o ?? [];
203
+ u.value = o ?? [];
204
204
  },
205
- getColumns: () => k.value,
205
+ getColumns: () => h.value,
206
206
  setColumns: (o) => {
207
207
  if (Array.isArray(o) && o.length > 0 && typeof o[0] == "string") {
208
- const a = o, u = (t.columns ?? []).filter((F) => a.includes(F.key ?? F.dataIndex)), m = a.map((F) => u.find((S) => (S.key ?? S.dataIndex) === F)).filter(Boolean);
209
- m.length && (k.value = m);
208
+ const n = o, f = (t.columns ?? []).filter((T) => n.includes(T.key ?? T.dataIndex)), b = n.map((T) => f.find((F) => (F.key ?? F.dataIndex) === T)).filter(Boolean);
209
+ b.length && (h.value = b);
210
210
  } else
211
- k.value = o ?? [];
211
+ h.value = o ?? [];
212
212
  },
213
213
  setPagination: (o) => {
214
- o != null && o.page && (x.value.page = o.page), o != null && o.pageSize && (x.value.pageSize = o.pageSize), (o == null ? void 0 : o.total) !== void 0 && (x.value.total = o.total);
214
+ o != null && o.page && (c.value.page = o.page), o != null && o.pageSize && (c.value.pageSize = o.pageSize), (o == null ? void 0 : o.total) !== void 0 && (c.value.total = o.total);
215
215
  },
216
- getSelectRowKeys: () => y.value.map((o) => o[D.value]),
217
- getSelectRows: () => y.value,
216
+ getSelectRowKeys: () => m.value.map((o) => o[M.value]),
217
+ getSelectRows: () => m.value,
218
218
  clearSelectedRowKeys: () => {
219
- y.value = [], K();
219
+ m.value = [], Z();
220
220
  },
221
221
  setSelectedRowKeys: (o) => {
222
- const a = new Set(o), u = c.value.filter((m) => a.has(m[D.value]));
223
- o.forEach((m) => {
224
- u.some((F) => F[D.value] === m) || u.push({ [D.value]: m });
225
- }), y.value = u, K();
222
+ const n = new Set(o), f = u.value.filter((b) => n.has(b[M.value]));
223
+ o.forEach((b) => {
224
+ f.some((T) => T[M.value] === b) || f.push({ [M.value]: b });
225
+ }), m.value = f, Z();
226
226
  },
227
227
  deleteSelectRowByKey: (o) => {
228
- y.value = y.value.filter((a) => a[D.value] !== o), K();
228
+ m.value = m.value.filter((n) => n[M.value] !== o), Z();
229
229
  },
230
- updateTableData: (o, a, u) => {
231
- o < 0 || o >= c.value.length || (c.value = [...c.value], c.value[o] = { ...c.value[o], [a]: u });
230
+ updateTableData: (o, n, f) => {
231
+ o < 0 || o >= u.value.length || (u.value = [...u.value], u.value[o] = { ...u.value[o], [n]: f });
232
232
  },
233
- updateTableDataRecord: (o, a) => {
234
- const u = E(o);
235
- if (!(u < 0))
236
- return c.value = [...c.value], c.value[u] = { ...c.value[u], ...a }, c.value[u];
233
+ updateTableDataRecord: (o, n) => {
234
+ const f = E(o);
235
+ if (!(f < 0))
236
+ return u.value = [...u.value], u.value[f] = { ...u.value[f], ...n }, u.value[f];
237
237
  },
238
238
  deleteTableDataRecord: (o) => {
239
- const a = Array.isArray(o) ? o : [o], u = new Set(a);
240
- c.value = c.value.filter((m) => !u.has(m[D.value]));
239
+ const n = Array.isArray(o) ? o : [o], f = new Set(n);
240
+ u.value = u.value.filter((b) => !f.has(b[M.value]));
241
241
  },
242
- insertTableDataRecord: (o, a) => {
243
- const u = [...c.value];
244
- return a == null || a >= u.length ? u.push(o) : u.splice(a, 0, o), c.value = u, o;
242
+ insertTableDataRecord: (o, n) => {
243
+ const f = [...u.value];
244
+ return n == null || n >= f.length ? f.push(o) : f.splice(n, 0, o), u.value = f, o;
245
245
  },
246
- getPaginationRef: () => j.value ? { page: x.value.page, pageSize: Number(x.value.pageSize) || 10, total: x.value.total } : !1,
247
- getShowPagination: () => j.value,
246
+ getPaginationRef: () => I.value ? { page: c.value.page, pageSize: Number(c.value.pageSize) || 10, total: c.value.total } : !1,
247
+ getShowPagination: () => I.value,
248
248
  setShowPagination: (o) => {
249
- R.value = o;
249
+ A.value = o;
250
250
  },
251
251
  getRowSelection: () => d.value.rowSelection,
252
252
  expandAll: () => {
253
- var m;
254
- const o = ((m = d.value.treeProps) == null ? void 0 : m.children) ?? "children", a = (F) => {
255
- const S = [];
256
- return F.forEach(($) => {
257
- S.push($);
258
- const I = $[o];
259
- Array.isArray(I) && I.length > 0 && S.push(...a(I));
260
- }), S;
253
+ var b;
254
+ const o = ((b = d.value.treeProps) == null ? void 0 : b.children) ?? "children", n = (T) => {
255
+ const F = [];
256
+ return T.forEach((V) => {
257
+ F.push(V);
258
+ const G = V[o];
259
+ Array.isArray(G) && G.length > 0 && F.push(...n(G));
260
+ }), F;
261
261
  };
262
- a(c.value).forEach((F) => {
263
- var S, $;
264
- return ($ = (S = z.value) == null ? void 0 : S.toggleRowExpansion) == null ? void 0 : $.call(S, F, !0);
262
+ n(u.value).forEach((T) => {
263
+ var F, V;
264
+ return (V = (F = P.value) == null ? void 0 : F.toggleRowExpansion) == null ? void 0 : V.call(F, T, !0);
265
265
  });
266
266
  },
267
267
  collapseAll: () => {
268
- var m;
269
- const o = ((m = d.value.treeProps) == null ? void 0 : m.children) ?? "children", a = (F) => {
270
- const S = [];
271
- return F.forEach(($) => {
272
- S.push($);
273
- const I = $[o];
274
- Array.isArray(I) && I.length > 0 && S.push(...a(I));
275
- }), S;
268
+ var b;
269
+ const o = ((b = d.value.treeProps) == null ? void 0 : b.children) ?? "children", n = (T) => {
270
+ const F = [];
271
+ return T.forEach((V) => {
272
+ F.push(V);
273
+ const G = V[o];
274
+ Array.isArray(G) && G.length > 0 && F.push(...n(G));
275
+ }), F;
276
276
  };
277
- a(c.value).forEach((F) => {
278
- var S, $;
279
- return ($ = (S = z.value) == null ? void 0 : S.toggleRowExpansion) == null ? void 0 : $.call(S, F, !1);
277
+ n(u.value).forEach((T) => {
278
+ var F, V;
279
+ return (V = (F = P.value) == null ? void 0 : F.toggleRowExpansion) == null ? void 0 : V.call(F, T, !1);
280
280
  });
281
281
  }
282
282
  };
283
- e(N);
284
- const G = () => {
285
- k.value = [...t.columns ?? []];
286
- }, Pe = () => {
287
- t.api && d.value.immediate !== !1 ? q(void 0) : t.dataSource && (c.value = [...t.dataSource], !t.api && t.pagination !== !1 && (x.value.total = t.dataSource.length));
288
- }, le = () => {
289
- s.value && (v.value = s.value.offsetWidth || 0);
283
+ e(H);
284
+ const Q = () => {
285
+ h.value = [...t.columns ?? []];
286
+ }, ne = () => {
287
+ t.api && d.value.immediate !== !1 ? J(void 0) : t.dataSource && (u.value = [...t.dataSource], !t.api && t.pagination !== !1 && (c.value.total = t.dataSource.length));
288
+ }, ie = () => {
289
+ s.value && (p.value = s.value.offsetWidth || 0);
290
290
  };
291
- let U = null, X = null;
292
- return xe(() => {
293
- G(), l("register", N), Pe(), typeof window < "u" && (window.addEventListener("resize", le), U = new ResizeObserver(le), $e(() => {
294
- le(), X = s.value, X && (U == null || U.observe(X));
291
+ let le = null, oe = null;
292
+ return we(() => {
293
+ Q(), l("register", H), ne(), typeof window < "u" && (window.addEventListener("resize", ie), le = new ResizeObserver(ie), Fe(() => {
294
+ ie(), oe = s.value, oe && (le == null || le.observe(oe));
295
295
  }));
296
296
  }), Re(() => {
297
- typeof window < "u" && (window.removeEventListener("resize", le), U && X && (U.unobserve(X), X = null));
298
- }), ae(() => t.columns, G, { deep: !0 }), ae(() => t.dataSource, () => {
299
- !t.api && t.dataSource && (c.value = [...t.dataSource]);
300
- }, { deep: !0 }), ae(() => t.loading, (o) => {
301
- h.value = o ?? !1;
302
- }), { __sfc: !0, DefaultCellRenderer: n, BodyCellRenderer: i, props: t, emit: l, slots: P, tableRef: z, tableWrapRef: s, containerWidth: v, loading: h, innerData: c, rawDataSource: b, innerColumns: k, innerProps: p, selectedRows: y, showPaginationRef: R, pagination: x, getComponentSetting: f, effectiveProps: d, showTitleBar: O, showPagination: j, rowKeyField: D, selectedKeysSet: H, displayColumns: ee, fixedColumnsWidth: re, isRatioWidth: L, totalRatio: J, fixedDataColumnsWidth: Q, parseWidthPx: W, getColumnWidth: ie, shouldShowColumn: Y, selectableRows: V, hasSelectableRows: ce, isAllCurrentPageSelected: ue, isIndeterminate: de, isRowSelected: fe, getCheckboxDisabled: pe, getRadioDisabled: me, emitSelectionChange: K, handleCheckboxChange: ve, handleRadioSelect: he, handleSelectAll: te, fetchData: q, handleReload: oe, handleSizeChange: r, handleCurrentChange: g, handleRowClick: C, handleRowDblclick: w, handleSortChange: _, handleExpandChange: T, findRowIndex: E, tableAction: N, syncColumns: G, loadData: Pe, updateContainerWidth: le, resizeObserver: U, observedEl: X };
297
+ typeof window < "u" && (window.removeEventListener("resize", ie), le && oe && (le.unobserve(oe), oe = null));
298
+ }), U(() => t.columns, Q, { deep: !0 }), U(() => t.dataSource, () => {
299
+ !t.api && t.dataSource && (u.value = [...t.dataSource]);
300
+ }, { deep: !0 }), U(() => t.loading, (o) => {
301
+ $.value = o ?? !1;
302
+ }), { __sfc: !0, DefaultCellRenderer: a, BodyCellRenderer: y, props: t, emit: l, slots: r, tableRef: P, tableWrapRef: s, containerWidth: p, loading: $, innerData: u, rawDataSource: D, innerColumns: h, innerProps: B, selectedRows: m, showPaginationRef: A, pagination: c, getComponentSetting: v, effectiveProps: d, showTitleBar: z, showPagination: I, rowKeyField: M, selectedKeysSet: N, displayColumns: g, fixedColumnsWidth: L, isRatioWidth: O, totalRatio: W, fixedDataColumnsWidth: X, parseWidthPx: K, getColumnWidth: q, shouldShowColumn: Y, selectableRows: j, hasSelectableRows: te, isAllCurrentPageSelected: ue, isIndeterminate: de, isRowSelected: fe, getCheckboxDisabled: pe, getRadioDisabled: ve, emitSelectionChange: Z, handleCheckboxChange: me, handleRadioSelect: he, handleSelectAll: be, fetchData: J, handleReload: se, handleSizeChange: re, handleCurrentChange: i, handleRowClick: _, handleRowDblclick: S, handleSortChange: C, handleExpandChange: w, findRowIndex: E, tableAction: H, syncColumns: Q, loadData: ne, updateContainerWidth: ie, resizeObserver: le, observedEl: oe };
303
303
  }
304
304
  });
305
- function se(A, e, l, t, n, i, P, z) {
306
- var s = typeof A == "function" ? A.options : A;
307
- e && (s.render = e, s.staticRenderFns = l, s._compiled = !0), t && (s.functional = !0), i && (s._scopeId = "data-v-" + i);
308
- var v;
309
- if (P ? (v = function(b) {
310
- b = b || // cached call
305
+ function ae(x, e, l, t, a, y, r, P) {
306
+ var s = typeof x == "function" ? x.options : x;
307
+ e && (s.render = e, s.staticRenderFns = l, s._compiled = !0), t && (s.functional = !0), y && (s._scopeId = "data-v-" + y);
308
+ var p;
309
+ if (r ? (p = function(D) {
310
+ D = D || // cached call
311
311
  this.$vnode && this.$vnode.ssrContext || // stateful
312
- this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext, !b && typeof __VUE_SSR_CONTEXT__ < "u" && (b = __VUE_SSR_CONTEXT__), n && n.call(this, b), b && b._registeredComponents && b._registeredComponents.add(P);
313
- }, s._ssrRegister = v) : n && (v = z ? function() {
314
- n.call(
312
+ this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext, !D && typeof __VUE_SSR_CONTEXT__ < "u" && (D = __VUE_SSR_CONTEXT__), a && a.call(this, D), D && D._registeredComponents && D._registeredComponents.add(r);
313
+ }, s._ssrRegister = p) : a && (p = P ? function() {
314
+ a.call(
315
315
  this,
316
316
  (s.functional ? this.parent : this).$root.$options.shadowRoot
317
317
  );
318
- } : n), v)
318
+ } : a), p)
319
319
  if (s.functional) {
320
- s._injectStyles = v;
321
- var h = s.render;
322
- s.render = function(k, p) {
323
- return v.call(p), h(k, p);
320
+ s._injectStyles = p;
321
+ var $ = s.render;
322
+ s.render = function(h, B) {
323
+ return p.call(B), $(h, B);
324
324
  };
325
325
  } else {
326
- var c = s.beforeCreate;
327
- s.beforeCreate = c ? [].concat(c, v) : [v];
326
+ var u = s.beforeCreate;
327
+ s.beforeCreate = u ? [].concat(u, p) : [p];
328
328
  }
329
329
  return {
330
- exports: A,
330
+ exports: x,
331
331
  options: s
332
332
  };
333
333
  }
334
334
  var Ie = function() {
335
- var n, i, P, z;
335
+ var a, y, r, P;
336
336
  var e = this, l = e._self._c, t = e._self._setupProxy;
337
- return l("div", { staticClass: "ecp-pro-table" }, [t.showTitleBar ? l("div", { staticClass: "ecp-pro-table__header" }, [l("div", { staticClass: "ecp-pro-table__title-wrapper" }, [l("span", { staticClass: "ecp-pro-table__title" }, [e._v(e._s(t.effectiveProps.title))]), t.effectiveProps.titleHelpMessage ? l("el-tooltip", { staticClass: "ecp-pro-table__help", attrs: { placement: "top" } }, [l("template", { slot: "content" }, [Array.isArray(t.effectiveProps.titleHelpMessage) ? l("span", e._l(t.effectiveProps.titleHelpMessage, function(s, v) {
338
- return l("div", { key: v }, [e._v(e._s(s))]);
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(s, p) {
338
+ return l("div", { key: p }, [e._v(e._s(s))]);
339
339
  }), 0) : l("span", [e._v(e._s(t.effectiveProps.titleHelpMessage))])]), l("i", { staticClass: "el-icon-question" })], 2) : e._e()], 1), l("div", { staticClass: "ecp-pro-table__toolbar" }, [e._t("tableTitle"), e._t("toolbar"), e._t("toolbar-right", function() {
340
340
  var s;
341
341
  return [((s = t.effectiveProps.tableSetting) == null ? void 0 : s.redo) !== !1 ? l("el-button", { attrs: { type: "text", icon: "el-icon-refresh", size: "small" }, on: { click: t.handleReload } }, [e._v(" 刷新 ")]) : e._e()];
342
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(s) {
343
343
  return [t.effectiveProps.rowSelection.type !== "radio" ? l("el-checkbox", { attrs: { value: t.isAllCurrentPageSelected, indeterminate: t.isIndeterminate, disabled: !t.hasSelectableRows }, on: { change: t.handleSelectAll } }) : l("span")];
344
344
  } }, { key: "default", fn: function(s) {
345
- var v;
346
- return [t.effectiveProps.rowSelection.type !== "radio" ? l("el-checkbox", { attrs: { value: t.isRowSelected(s.row), disabled: t.getCheckboxDisabled(s.row) }, on: { change: (h) => t.handleCheckboxChange(s.row, h) }, nativeOn: { click: function(h) {
347
- h.stopPropagation();
348
- } } }) : l("el-radio", { attrs: { value: (v = t.selectedRows[0]) == null ? void 0 : v[t.rowKeyField], label: s.row[t.rowKeyField], disabled: t.getRadioDisabled(s.row) }, on: { change: function(h) {
345
+ var p;
346
+ return [t.effectiveProps.rowSelection.type !== "radio" ? l("el-checkbox", { attrs: { value: t.isRowSelected(s.row), disabled: t.getCheckboxDisabled(s.row) }, on: { change: ($) => t.handleCheckboxChange(s.row, $) }, nativeOn: { click: function($) {
347
+ $.stopPropagation();
348
+ } } }) : l("el-radio", { attrs: { value: (p = t.selectedRows[0]) == null ? void 0 : p[t.rowKeyField], label: s.row[t.rowKeyField], disabled: t.getRadioDisabled(s.row) }, on: { change: function($) {
349
349
  return t.handleRadioSelect(s.row);
350
- } }, nativeOn: { click: function(h) {
351
- h.stopPropagation();
350
+ } }, nativeOn: { click: function($) {
351
+ $.stopPropagation();
352
352
  } } }, [l("span")])];
353
- } }], null, !1, 983730649) }) : e._e(), t.effectiveProps.showIndexColumn ? l("el-table-column", { attrs: { type: "index", label: ((n = t.effectiveProps.indexColumnProps) == null ? void 0 : n.title) || "序号", width: ((i = t.effectiveProps.indexColumnProps) == null ? void 0 : i.width) || 60, fixed: (P = t.effectiveProps.indexColumnProps) == null ? void 0 : P.fixed, align: ((z = t.effectiveProps.indexColumnProps) == null ? void 0 : z.align) || "center" } }) : e._e(), e._l(t.displayColumns, function(s) {
354
- return [t.shouldShowColumn(s) ? l("el-table-column", { key: s.dataIndex || s.key || s.title, attrs: { prop: s.dataIndex, label: s.title, width: t.getColumnWidth(s), "min-width": t.isRatioWidth(s.width) ? void 0 : s.minWidth, fixed: s.fixed, align: s.align || "left", sortable: s.sortable, formatter: s.formatter, "show-overflow-tooltip": s.ellipsis !== !1 && t.effectiveProps.ellipsis !== !1 }, scopedSlots: e._u([{ key: "header", fn: function(v) {
355
- return [s.dataIndex && e.$scopedSlots[`header-${s.dataIndex}`] ? e._t(`header-${s.dataIndex}`, null, { column: s }) : e.$scopedSlots.headerCell ? e._t("headerCell", null, { column: s }) : [l("span", [e._v(e._s(s.title))]), s.helpMessage ? l("el-tooltip", { staticClass: "ecp-pro-table__col-help", attrs: { placement: "top", effect: "dark" } }, [l("template", { slot: "content" }, [Array.isArray(s.helpMessage) ? l("span", e._l(s.helpMessage, function(h, c) {
356
- return l("div", { key: c }, [e._v(e._s(h))]);
353
+ } }], null, !1, 983730649) }) : e._e(), t.effectiveProps.showIndexColumn ? l("el-table-column", { attrs: { type: "index", label: ((a = t.effectiveProps.indexColumnProps) == null ? void 0 : a.title) || "序号", width: ((y = t.effectiveProps.indexColumnProps) == null ? void 0 : y.width) || 60, fixed: (r = t.effectiveProps.indexColumnProps) == null ? void 0 : r.fixed, align: ((P = t.effectiveProps.indexColumnProps) == null ? void 0 : P.align) || "center" } }) : e._e(), e._l(t.displayColumns, function(s) {
354
+ return [t.shouldShowColumn(s) ? l("el-table-column", { key: s.dataIndex || s.key || s.title, attrs: { prop: s.dataIndex, label: s.title, width: t.getColumnWidth(s), "min-width": t.isRatioWidth(s.width) ? void 0 : s.minWidth, fixed: s.fixed, align: s.align || "left", sortable: s.sortable, formatter: s.formatter, "show-overflow-tooltip": s.ellipsis !== !1 && t.effectiveProps.ellipsis !== !1 }, scopedSlots: e._u([{ key: "header", fn: function(p) {
355
+ return [s.dataIndex && e.$scopedSlots[`header-${s.dataIndex}`] ? e._t(`header-${s.dataIndex}`, null, { column: s }) : e.$scopedSlots.headerCell ? e._t("headerCell", null, { column: s }) : [l("span", [e._v(e._s(s.title))]), s.helpMessage ? l("el-tooltip", { staticClass: "ecp-pro-table__col-help", attrs: { placement: "top", effect: "dark" } }, [l("template", { slot: "content" }, [Array.isArray(s.helpMessage) ? l("span", e._l(s.helpMessage, function($, u) {
356
+ return l("div", { key: u }, [e._v(e._s($))]);
357
357
  }), 0) : l("span", [e._v(e._s(s.helpMessage))])]), l("i", { staticClass: "el-icon-question" })], 2) : e._e()]];
358
- } }, { key: "default", fn: function(v) {
359
- return [s.dataIndex && e.$scopedSlots[s.dataIndex] ? e._t(s.dataIndex, null, { row: v.row, column: s, index: v.$index, value: v.row[s.dataIndex] }) : e.$scopedSlots.bodyCell ? l(t.BodyCellRenderer, { attrs: { "slot-render": e.$scopedSlots.bodyCell, column: s, record: v.row, index: v.$index, value: v.row[s.dataIndex], "custom-render": s.customRender, "value-enum": s.valueEnum } }) : l(t.DefaultCellRenderer, { attrs: { column: s, record: v.row, index: v.$index, value: v.row[s.dataIndex] } })];
358
+ } }, { key: "default", fn: function(p) {
359
+ return [s.dataIndex && e.$scopedSlots[s.dataIndex] ? e._t(s.dataIndex, null, { row: p.row, column: s, index: p.$index, value: p.row[s.dataIndex] }) : e.$scopedSlots.bodyCell ? l(t.BodyCellRenderer, { attrs: { "slot-render": e.$scopedSlots.bodyCell, column: s, record: p.row, index: p.$index, value: p.row[s.dataIndex], "custom-render": s.customRender, "value-enum": s.valueEnum } }) : l(t.DefaultCellRenderer, { attrs: { column: s, record: p.row, index: p.$index, value: p.row[s.dataIndex] } })];
360
360
  } }], null, !0) }) : e._e()];
361
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(s) {
362
362
  return [e.$scopedSlots.action ? e._t("action", null, { record: s.row, column: t.effectiveProps.actionColumn, index: s.$index }) : e.$scopedSlots.bodyCell ? l(t.BodyCellRenderer, { attrs: { "slot-render": e.$scopedSlots.bodyCell, column: t.effectiveProps.actionColumn, record: s.row, index: s.$index, value: void 0, "custom-render": t.effectiveProps.actionColumn.customRender, "value-enum": t.effectiveProps.actionColumn.valueEnum } }) : e._e()];
363
363
  } }], null, !0) }) : e._e()], 2)], 1), t.showPagination ? l("div", { staticClass: "ecp-pro-table__pagination" }, [l("el-pagination", e._b({ attrs: { "current-page": t.pagination.page, "page-sizes": t.pagination.pageSizes, "page-size": t.pagination.pageSize, total: t.pagination.total, layout: (t.effectiveProps.pagination && typeof t.effectiveProps.pagination == "object" ? t.effectiveProps.pagination.layout : null) || "total, sizes, prev, pager, next, jumper" }, on: { "size-change": t.handleSizeChange, "current-change": t.handleCurrentChange } }, "el-pagination", t.effectiveProps.pagination && typeof t.effectiveProps.pagination == "object" && t.effectiveProps.pagination.props || {}, !1))], 1) : e._e()]);
364
- }, Oe = [], Le = /* @__PURE__ */ se(
364
+ }, Le = [], Oe = /* @__PURE__ */ ae(
365
365
  Ee,
366
366
  Ie,
367
- Oe,
367
+ Le,
368
368
  !1,
369
369
  null,
370
370
  "c5638c20",
371
371
  null,
372
372
  null
373
373
  );
374
- const Be = Le.exports, We = /* @__PURE__ */ Z({
374
+ const Ae = Oe.exports, Ve = /* @__PURE__ */ ee({
375
375
  __name: "TableAction",
376
376
  props: {
377
377
  actions: { default: () => [] },
378
378
  dropDownActions: { default: () => [] },
379
379
  stopButtonPropagation: { type: Boolean, default: !1 }
380
380
  },
381
- setup(A) {
382
- const e = A, l = (h) => h ? typeof h == "string" ? { content: h } : h : {}, t = (h) => h.type ? h.type : h.color === "error" ? "danger" : h.color === "success" ? "success" : h.color === "warning" ? "warning" : "text", n = (h) => h.filter((c) => {
383
- const { ifShow: b } = c;
384
- return typeof b == "boolean" ? b : typeof b == "function" ? b(c) : !0;
385
- }), i = B(() => n(e.actions || [])), P = B(() => n(e.dropDownActions || []));
386
- return { __sfc: !0, props: e, normalizeTooltip: l, getButtonType: t, filterVisible: n, visibleActions: i, visibleDropDownActions: P, handleClick: (h, c) => {
387
- var b;
388
- e.stopButtonPropagation && c.stopPropagation(), (b = h.onClick) == null || b.call(h, c);
389
- }, handlePopConfirm: (h, c, b) => {
390
- var k, p, y, R;
391
- e.stopButtonPropagation && b.stopPropagation(), h.popConfirm && (c === "confirm" ? (p = (k = h.popConfirm).confirm) == null || p.call(k) : (R = (y = h.popConfirm).cancel) == null || R.call(y));
381
+ setup(x) {
382
+ const e = x, l = (h) => h ? typeof h == "string" ? { content: h } : h : {}, t = (h) => h.type ? h.type : h.color === "error" ? "danger" : h.color === "success" ? "success" : h.color === "warning" ? "warning" : "text", a = (h) => h.filter((B) => {
383
+ const { ifShow: m } = B;
384
+ return typeof m == "boolean" ? m : typeof m == "function" ? m(B) : !0;
385
+ }), y = R(() => a(e.actions || [])), r = R(() => a(e.dropDownActions || [])), P = (h, B) => {
386
+ var m;
387
+ e.stopButtonPropagation && B.stopPropagation(), (m = h.onClick) == null || m.call(h, B);
388
+ }, s = (h, B) => {
389
+ P(h, B);
390
+ }, p = (h, B, m) => {
391
+ var A, c, v, d;
392
+ e.stopButtonPropagation && m.stopPropagation(), h.popConfirm && (B === "confirm" ? (c = (A = h.popConfirm).confirm) == null || c.call(A) : (d = (v = h.popConfirm).cancel) == null || d.call(v));
393
+ };
394
+ return { __sfc: !0, props: e, normalizeTooltip: l, getButtonType: t, filterVisible: a, visibleActions: y, visibleDropDownActions: r, handleClick: P, handleActionClick: s, handlePopConfirm: p, handlePopConfirmConfirm: (h, B) => {
395
+ p(h, "confirm", B);
396
+ }, handlePopConfirmCancel: (h, B) => {
397
+ p(h, "cancel", B);
392
398
  }, handleDropdownCommand: (h) => {
393
- var k;
394
- const c = Number(h), b = P.value[c];
395
- if (!(!b || b.disabled)) {
396
- if (b.popConfirm) {
397
- const p = b.popConfirm.title, y = b.popConfirm.okText || "确定", R = b.popConfirm.cancelText || "取消";
398
- ze.confirm(p, "提示", {
399
- confirmButtonText: y,
400
- cancelButtonText: R,
399
+ var A;
400
+ const B = Number(h), m = r.value[B];
401
+ if (!(!m || m.disabled)) {
402
+ if (m.popConfirm) {
403
+ const c = m.popConfirm.title, v = m.popConfirm.okText || "确定", d = m.popConfirm.cancelText || "取消";
404
+ ze.confirm(c, "提示", {
405
+ confirmButtonText: v,
406
+ cancelButtonText: d,
401
407
  type: "warning"
402
408
  }).then(() => {
403
- var x, f;
404
- return (f = (x = b.popConfirm) == null ? void 0 : x.confirm) == null ? void 0 : f.call(x);
409
+ var z, I;
410
+ return (I = (z = m.popConfirm) == null ? void 0 : z.confirm) == null ? void 0 : I.call(z);
405
411
  }).catch(() => {
406
- var x, f;
407
- return (f = (x = b.popConfirm) == null ? void 0 : x.cancel) == null ? void 0 : f.call(x);
412
+ var z, I;
413
+ return (I = (z = m.popConfirm) == null ? void 0 : z.cancel) == null ? void 0 : I.call(z);
408
414
  });
409
415
  return;
410
416
  }
411
- (k = b.onClick) == null || k.call(b, {});
417
+ (A = m.onClick) == null || A.call(m, {});
412
418
  }
413
419
  } };
414
420
  }
415
421
  });
416
- var Ve = function() {
422
+ var Ke = function() {
417
423
  var e = this, l = e._self._c, t = e._self._setupProxy;
418
- return l("div", { staticClass: "ecp-table-action" }, [e._l(t.visibleActions, function(n, i) {
419
- return l("span", { key: `action-${i}`, 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: (P) => t.handlePopConfirm(n, "confirm", P), cancel: (P) => t.handlePopConfirm(n, "cancel", P) } }, [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: (P) => t.handleClick(n, P) } }, "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: (P) => t.handleClick(n, P) } }, "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);
420
- }), 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, i) {
421
- return l("el-dropdown-item", { key: `dropdown-${i}`, attrs: { command: i, 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))])])]);
424
+ return l("div", { staticClass: "ecp-table-action" }, [e._l(t.visibleActions, function(a, y) {
425
+ return l("span", { key: `action-${y}`, staticClass: "ecp-table-action__item" }, [a.popConfirm ? l("el-popconfirm", { attrs: { title: a.popConfirm.title, "confirm-button-text": a.popConfirm.okText || "确定", "cancel-button-text": a.popConfirm.cancelText || "取消" }, on: { confirm: function(r) {
426
+ return t.handlePopConfirmConfirm(a, r);
427
+ }, cancel: function(r) {
428
+ return t.handlePopConfirmCancel(a, r);
429
+ } } }, [l("span", { attrs: { slot: "reference" }, slot: "reference" }, [l(a.tooltip ? "el-tooltip" : "span", e._b({ tag: "component" }, "component", a.tooltip ? t.normalizeTooltip(a.tooltip) : {}, !1), [l("el-button", e._b({ attrs: { type: t.getButtonType(a), size: "small", disabled: a.disabled }, on: { click: function(r) {
430
+ return t.handleActionClick(a, r);
431
+ } } }, "el-button", a.props, !1), [a.icon ? l("i", { class: ["ecp-table-action__icon", a.icon] }) : e._e(), l("span", [e._v(e._s(a.label))])])], 1)], 1)]) : l(a.tooltip ? "el-tooltip" : "span", e._b({ tag: "component" }, "component", a.tooltip ? t.normalizeTooltip(a.tooltip) : {}, !1), [l("el-button", e._b({ attrs: { type: t.getButtonType(a), size: "small", disabled: a.disabled }, on: { click: function(r) {
432
+ return t.handleActionClick(a, r);
433
+ } } }, "el-button", a.props, !1), [a.icon ? l("i", { class: ["ecp-table-action__icon", a.icon] }) : e._e(), l("span", [e._v(e._s(a.label))])])], 1), a.divider ? l("el-divider", { attrs: { direction: "vertical" } }) : e._e()], 1);
434
+ }), 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(a, y) {
435
+ return l("el-dropdown-item", { key: `dropdown-${y}`, attrs: { command: y, disabled: a.disabled, divided: !!a.divider } }, [l("span", { staticClass: "ecp-table-action__dropdown-item" }, [a.icon ? l("i", { class: ["ecp-table-action__icon", a.icon] }) : e._e(), l("span", [e._v(e._s(a.label))])])]);
422
436
  }), 1)], 1) : e._e()], 2);
423
- }, Ke = [], qe = /* @__PURE__ */ se(
424
- We,
437
+ }, Ne = [], We = /* @__PURE__ */ ae(
425
438
  Ve,
426
439
  Ke,
440
+ Ne,
427
441
  !1,
428
442
  null,
429
- "1b2d6c42",
443
+ "f319e73a",
430
444
  null,
431
445
  null
432
446
  );
433
- const Ae = qe.exports;
434
- function st(A) {
435
- const e = M(null), l = () => {
436
- const i = we(e);
437
- if (!i)
447
+ const ke = We.exports;
448
+ function ht(x) {
449
+ const e = k(null), l = () => x ? ye(x) : void 0, t = () => {
450
+ const r = ye(e);
451
+ if (!r)
438
452
  throw new Error("ProTable instance has not been registered");
439
- return i;
453
+ return r;
454
+ }, a = (r) => {
455
+ e.value = r;
456
+ const P = l();
457
+ P && Object.keys(P).length > 0 && r.setProps(P);
440
458
  };
441
- return [(i) => {
442
- e.value = i;
443
- }, {
444
- setProps: (i) => l().setProps(i),
445
- reload: (i) => l().reload(i),
446
- setLoading: (i) => l().setLoading(i),
447
- getDataSource: () => l().getDataSource(),
448
- getRawDataSource: () => l().getRawDataSource(),
449
- setTableData: (i) => l().setTableData(i),
450
- getColumns: () => l().getColumns(),
451
- setColumns: (i) => l().setColumns(i),
452
- setPagination: (i) => l().setPagination(i),
453
- getSelectRowKeys: () => l().getSelectRowKeys(),
454
- getSelectRows: () => l().getSelectRows(),
455
- clearSelectedRowKeys: () => l().clearSelectedRowKeys(),
456
- setSelectedRowKeys: (i) => l().setSelectedRowKeys(i),
457
- deleteSelectRowByKey: (i) => l().deleteSelectRowByKey(i),
458
- updateTableDataRecord: (i, P) => l().updateTableDataRecord(i, P),
459
- deleteTableDataRecord: (i) => l().deleteTableDataRecord(i),
460
- insertTableDataRecord: (i, P) => l().insertTableDataRecord(i, P),
461
- getPaginationRef: () => l().getPaginationRef(),
462
- getShowPagination: () => l().getShowPagination(),
463
- setShowPagination: (i) => l().setShowPagination(i),
459
+ return x && U(
460
+ () => l(),
461
+ (r) => {
462
+ r && e.value && e.value.setProps(r);
463
+ },
464
+ { deep: !0 }
465
+ ), [a, {
466
+ setProps: (r) => t().setProps(r),
467
+ reload: (r) => t().reload(r),
468
+ redoHeight: () => t().redoHeight(),
469
+ setLoading: (r) => t().setLoading(r),
470
+ getDataSource: () => t().getDataSource(),
471
+ getRawDataSource: () => t().getRawDataSource(),
472
+ setTableData: (r) => t().setTableData(r),
473
+ getColumns: () => t().getColumns(),
474
+ setColumns: (r) => t().setColumns(r),
475
+ setPagination: (r) => t().setPagination(r),
476
+ getSelectRowKeys: () => t().getSelectRowKeys(),
477
+ getSelectRows: () => t().getSelectRows(),
478
+ clearSelectedRowKeys: () => t().clearSelectedRowKeys(),
479
+ setSelectedRowKeys: (r) => t().setSelectedRowKeys(r),
480
+ deleteSelectRowByKey: (r) => t().deleteSelectRowByKey(r),
481
+ updateTableData: (r, P, s) => t().updateTableData(r, P, s),
482
+ updateTableDataRecord: (r, P) => t().updateTableDataRecord(r, P),
483
+ deleteTableDataRecord: (r) => t().deleteTableDataRecord(r),
484
+ insertTableDataRecord: (r, P) => t().insertTableDataRecord(r, P),
485
+ getPaginationRef: () => t().getPaginationRef(),
486
+ getShowPagination: () => t().getShowPagination(),
487
+ setShowPagination: (r) => t().setShowPagination(r),
488
+ getRowSelection: () => t().getRowSelection(),
464
489
  expandAll: () => {
465
- var i, P;
466
- return (P = (i = l()).expandAll) == null ? void 0 : P.call(i);
490
+ var r, P;
491
+ return (P = (r = t()).expandAll) == null ? void 0 : P.call(r);
467
492
  },
468
493
  collapseAll: () => {
469
- var i, P;
470
- return (P = (i = l()).collapseAll) == null ? void 0 : P.call(i);
494
+ var r, P;
495
+ return (P = (r = t()).collapseAll) == null ? void 0 : P.call(r);
471
496
  }
472
497
  }];
473
498
  }
474
- const Ne = /* @__PURE__ */ Z({
499
+ const qe = /* @__PURE__ */ ee({
500
+ __name: "ApiSelect",
501
+ props: {
502
+ value: null,
503
+ api: null,
504
+ params: null,
505
+ lazy: { type: Boolean, default: !1 },
506
+ labelField: { default: "label" },
507
+ valueField: { default: "value" },
508
+ placeholder: null,
509
+ disabled: { type: Boolean },
510
+ clearable: { type: Boolean },
511
+ filterable: { type: Boolean },
512
+ multiple: { type: Boolean }
513
+ },
514
+ emits: ["input"],
515
+ setup(x) {
516
+ const e = x, l = k(!1), t = k([]), a = (r) => {
517
+ e.lazy && r && y();
518
+ }, y = async () => {
519
+ if (e.api) {
520
+ l.value = !0;
521
+ try {
522
+ const r = await e.api(e.params), P = Array.isArray(r) ? r : (r == null ? void 0 : r.list) ?? (r == null ? void 0 : r.data) ?? [], s = e.labelField ?? "label", p = e.valueField ?? "value";
523
+ t.value = P.map(($) => {
524
+ const u = $;
525
+ return {
526
+ label: String(u[s] ?? u.label ?? ""),
527
+ value: u[p] ?? u.value
528
+ };
529
+ });
530
+ } finally {
531
+ l.value = !1;
532
+ }
533
+ }
534
+ };
535
+ return we(() => {
536
+ e.lazy || y();
537
+ }), U(
538
+ () => e.api,
539
+ () => {
540
+ e.lazy ? t.value = [] : y();
541
+ },
542
+ { deep: !0 }
543
+ ), U(() => e.params, () => {
544
+ e.lazy ? t.value = [] : y();
545
+ }, { deep: !0 }), { __sfc: !0, props: e, loading: l, options: t, onVisibleChange: a, fetchOptions: y };
546
+ }
547
+ });
548
+ var je = function() {
549
+ var e = this, l = e._self._c, t = e._self._setupProxy;
550
+ 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(a) {
551
+ return e.$emit("input", a);
552
+ }, "visible-change": t.onVisibleChange } }, "el-select", e.$attrs, !1), e._l(t.options, function(a) {
553
+ return l("el-option", { key: String(a.value), attrs: { label: a.label, value: a.value } });
554
+ }), 1);
555
+ }, He = [], Ge = /* @__PURE__ */ ae(
556
+ qe,
557
+ je,
558
+ He,
559
+ !1,
560
+ null,
561
+ null,
562
+ null,
563
+ null
564
+ );
565
+ const Ue = Ge.exports, Xe = /* @__PURE__ */ ee({
566
+ __name: "TreeSelect",
567
+ props: {
568
+ value: null,
569
+ treeData: null,
570
+ api: null,
571
+ params: null,
572
+ lazy: { type: Boolean, default: !1 },
573
+ labelField: { default: "label" },
574
+ valueField: { default: "value" },
575
+ childrenField: { default: "children" },
576
+ filterable: { type: Boolean },
577
+ placeholder: null,
578
+ disabled: { type: Boolean },
579
+ clearable: { type: Boolean }
580
+ },
581
+ emits: ["input"],
582
+ setup(x, { emit: e }) {
583
+ const l = x, t = k(), a = k(), y = k(!1), r = k(!1), P = k(""), s = k([]), p = k({}), $ = R(() => ({
584
+ label: l.labelField,
585
+ children: l.childrenField
586
+ }));
587
+ function u(g) {
588
+ const L = l.labelField ?? "label", O = l.valueField ?? "value", W = l.childrenField ?? "children", X = g[W], K = {};
589
+ return K[l.labelField ?? "label"] = g[L] ?? g.label, K[l.valueField ?? "value"] = g[O] ?? g.value, Array.isArray(X) && X.length && (K[l.childrenField ?? "children"] = X.map((q) => u(q))), K;
590
+ }
591
+ function D(g, L = "") {
592
+ const O = {}, W = l.labelField ?? "label", X = l.valueField ?? "value", K = l.childrenField ?? "children";
593
+ for (const q of g) {
594
+ const Y = String(q[W] ?? q.label ?? ""), j = q[X] ?? q.value;
595
+ j != null && (O[String(j)] = L ? L + " / " + Y : Y);
596
+ const te = q[K] ?? q.children;
597
+ Array.isArray(te) && te.length && Object.assign(O, D(te, Y));
598
+ }
599
+ return O;
600
+ }
601
+ function h() {
602
+ const g = l.treeData;
603
+ return Array.isArray(g) && g.length > 0;
604
+ }
605
+ function B(g) {
606
+ s.value = g, p.value = D(g);
607
+ }
608
+ function m() {
609
+ const g = l.treeData;
610
+ if (!Array.isArray(g) || g.length === 0)
611
+ return;
612
+ const L = g.map((O) => u(O));
613
+ B(L);
614
+ }
615
+ const A = R(() => l.value == null || l.value === "" ? "" : p.value[String(l.value)] ?? String(l.value)), c = (g, L) => {
616
+ if (!g)
617
+ return !0;
618
+ const O = l.labelField ?? "label";
619
+ return String(L[O] ?? L.label ?? "").toLowerCase().includes(g.toLowerCase());
620
+ };
621
+ U(P, (g) => {
622
+ var L;
623
+ (L = a.value) == null || L.filter(g);
624
+ });
625
+ let v = null;
626
+ function d() {
627
+ l.disabled || (y.value = !0, l.lazy && !h() && N(), Fe(() => {
628
+ v = (g) => {
629
+ t.value && !t.value.contains(g.target) && z();
630
+ }, document.addEventListener("click", v);
631
+ }));
632
+ }
633
+ function z() {
634
+ y.value = !1, P.value = "", v && (document.removeEventListener("click", v), v = null);
635
+ }
636
+ function I() {
637
+ e("input", void 0);
638
+ }
639
+ function M(g) {
640
+ const L = l.valueField ?? "value", O = g[L] ?? g.value;
641
+ e("input", O), z();
642
+ }
643
+ async function N() {
644
+ if (!(!l.api || h())) {
645
+ r.value = !0;
646
+ try {
647
+ const g = await l.api(l.params), L = Array.isArray(g) ? g : (g == null ? void 0 : g.list) ?? (g == null ? void 0 : g.data) ?? [];
648
+ s.value = L.map((O) => u(O)), p.value = D(s.value);
649
+ } finally {
650
+ r.value = !1;
651
+ }
652
+ }
653
+ }
654
+ return we(() => {
655
+ h() ? m() : l.lazy || N();
656
+ }), U(() => l.treeData, () => {
657
+ h() ? m() : (s.value = [], p.value = {}, !l.lazy && l.api && N());
658
+ }, { deep: !0 }), U(() => l.api, () => {
659
+ h() || (l.lazy ? (s.value = [], p.value = {}) : N());
660
+ }, { deep: !0 }), U(() => l.params, () => {
661
+ h() || (l.lazy ? (s.value = [], p.value = {}) : N());
662
+ }, { deep: !0 }), { __sfc: !0, props: l, emit: e, rootRef: t, treeRef: a, dropdownVisible: y, loading: r, filterText: P, treeData: s, flatLabelMap: p, treeProps: $, normalizeNode: u, buildFlatLabelMap: D, hasTreeDataProp: h, applyTreeData: B, syncFromTreeDataProp: m, displayText: A, filterNodeMethod: c, clickOutsideHandler: v, openDropdown: d, closeDropdown: z, clearValue: I, onNodeClick: M, fetchData: N };
663
+ }
664
+ });
665
+ var Ze = function() {
666
+ var e = this, l = e._self._c, t = e._self._setupProxy;
667
+ 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(a) {
668
+ a.stopPropagation();
669
+ } }, model: { value: t.filterText, callback: function(a) {
670
+ t.filterText = a;
671
+ }, 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);
672
+ }, Je = [], Qe = /* @__PURE__ */ ae(
673
+ Xe,
674
+ Ze,
675
+ Je,
676
+ !1,
677
+ null,
678
+ "f30bba11",
679
+ null,
680
+ null
681
+ );
682
+ const Ye = Qe.exports, et = /* @__PURE__ */ ee({
475
683
  __name: "ProFormItem",
476
684
  props: {
477
685
  schema: null,
478
686
  formModel: null,
479
687
  formDisabled: { type: Boolean },
480
688
  autoPlaceholder: { type: Boolean },
481
- formActionType: null
689
+ formActionType: null,
690
+ customComponents: null
482
691
  },
483
- setup(A) {
484
- const e = A, l = ye(), t = B(() => ({
692
+ setup(x) {
693
+ const e = x, l = /* @__PURE__ */ new Set([
694
+ "input",
695
+ "select",
696
+ "api-select",
697
+ "tree-select",
698
+ "date-picker",
699
+ "date-range",
700
+ "input-number",
701
+ "switch",
702
+ "cascader",
703
+ "checkbox",
704
+ "radio"
705
+ ]), t = Pe(), a = R(() => ({
485
706
  schema: e.schema,
486
707
  values: e.formModel,
487
708
  model: e.formModel,
488
709
  field: e.schema.field
489
- })), n = B(() => {
490
- const p = e.schema.ifShow;
491
- return p === void 0 ? !0 : typeof p == "boolean" ? p : p(t.value);
492
- }), i = B(() => {
493
- const p = e.schema.show;
494
- return p === void 0 ? !0 : typeof p == "boolean" ? p : p(t.value);
495
- }), P = B(() => {
710
+ })), y = R(() => {
711
+ const c = e.schema.ifShow;
712
+ return c === void 0 ? !0 : typeof c == "boolean" ? c : c(a.value);
713
+ }), r = R(() => {
714
+ const c = e.schema.show;
715
+ return c === void 0 ? !0 : typeof c == "boolean" ? c : c(a.value);
716
+ }), P = R(() => {
496
717
  if (e.formDisabled)
497
718
  return !0;
498
- const p = e.schema.dynamicDisabled;
499
- return p === void 0 ? !1 : typeof p == "boolean" ? p : p(t.value);
500
- }), z = B(() => {
501
- const p = e.schema.dynamicRules;
502
- return p ? Array.isArray(p) ? p : p(t.value) : e.schema.rules;
503
- }), s = B(() => {
504
- const p = e.schema.componentProps;
505
- if (!p)
719
+ const c = e.schema.dynamicDisabled;
720
+ return c === void 0 ? !1 : typeof c == "boolean" ? c : c(a.value);
721
+ }), s = R(() => {
722
+ const c = e.schema.dynamicRules;
723
+ return c ? Array.isArray(c) ? c : c(a.value) : e.schema.rules;
724
+ }), p = R(() => {
725
+ const c = e.schema.componentProps;
726
+ if (!c)
506
727
  return { props: {}, listeners: {} };
507
- const y = typeof p == "function" ? p({
508
- ...t.value,
728
+ const v = typeof c == "function" ? c({
729
+ ...a.value,
509
730
  formActionType: e.formActionType
510
- }) : { ...p }, R = {}, x = {};
511
- for (const [f, d] of Object.entries(y))
512
- if (f.length > 2 && /^on[A-Za-z]/.test(f) && typeof d == "function") {
513
- const O = f.slice(2).charAt(0).toLowerCase() + f.slice(3);
514
- x[O] = d;
731
+ }) : { ...c }, d = {}, z = {};
732
+ for (const [I, M] of Object.entries(v))
733
+ if (I.length > 2 && /^on[A-Za-z]/.test(I) && typeof M == "function") {
734
+ const N = I.slice(2).charAt(0).toLowerCase() + I.slice(3);
735
+ z[N] = M;
515
736
  } else
516
- R[f] = d;
517
- return { props: R, listeners: x };
518
- }), v = B(() => s.value.props), h = B(() => s.value.listeners), c = B(() => !!l.default), b = (p) => {
519
- const y = p == null ? void 0 : p.options;
520
- return Array.isArray(y) ? y : void 0;
521
- }, k = B(() => {
522
- const p = e.schema.render;
523
- return p ? {
737
+ d[I] = M;
738
+ return { props: d, listeners: z };
739
+ }), $ = R(() => p.value.props), u = R(() => p.value.listeners), D = R(() => !!t.default), h = (c) => {
740
+ const v = c == null ? void 0 : c.options;
741
+ return Array.isArray(v) ? v : void 0;
742
+ }, B = R(() => {
743
+ const c = e.schema.component;
744
+ return c == null ? null : typeof c == "string" ? l.has(c) ? null : e.customComponents && e.customComponents[c] || c : c;
745
+ }), m = (c) => {
746
+ e.formModel[e.schema.field] = c;
747
+ }, A = R(() => {
748
+ const c = e.schema.render;
749
+ return c ? {
524
750
  render() {
525
- const y = p(t.value);
526
- return Array.isArray(y) ? ne("span", y) : y;
751
+ const v = c(a.value);
752
+ return Array.isArray(v) ? ce("span", v) : v;
527
753
  }
528
754
  } : null;
529
755
  });
530
- return { __sfc: !0, props: e, slots: l, renderParams: t, shouldRender: n, shouldShow: i, effectiveDisabled: P, effectiveRules: z, effectiveComponentPropsAndListeners: s, effectiveComponentProps: v, effectiveComponentListeners: h, hasSlot: c, getOptions: b, renderComponent: k };
756
+ return { __sfc: !0, BUILT_IN_COMPONENTS: l, props: e, slots: t, renderParams: a, shouldRender: y, shouldShow: r, effectiveDisabled: P, effectiveRules: s, effectiveComponentPropsAndListeners: p, effectiveComponentProps: $, effectiveComponentListeners: u, hasSlot: D, getOptions: h, resolvedCustomComponent: B, setFieldValue: m, renderComponent: A, ApiSelect: Ue, TreeSelect: Ye };
531
757
  }
532
758
  });
533
- var je = function() {
759
+ var tt = function() {
534
760
  var e = this, l = e._self._c, t = e._self._setupProxy;
535
- 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 } }, [l("template", { slot: "label" }, [l("span", [e._v(e._s(e.schema.label))]), 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, i) {
536
- return l("div", { key: i, staticClass: "ecp-pro-form-item__help-item" }, [e._v(" " + e._s(n) + " ")]);
537
- }) : 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 }) : [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) {
538
- e.$set(e.formModel, e.schema.field, n);
539
- }, 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) {
540
- e.$set(e.formModel, e.schema.field, n);
541
- }, expression: "formModel[schema.field]" } }, "el-input-number", 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) {
542
- e.$set(e.formModel, e.schema.field, n);
543
- }, expression: "formModel[schema.field]" } }, "el-select", t.effectiveComponentProps, !1), t.effectiveComponentListeners), e._l(t.getOptions(t.effectiveComponentProps) || [], function(n) {
544
- return l("el-option", { key: String(n.value), attrs: { label: n.label, value: n.value } });
545
- }), 1) : 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) {
546
- e.$set(e.formModel, e.schema.field, n);
547
- }, 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) {
548
- e.$set(e.formModel, e.schema.field, n);
549
- }, 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) {
550
- e.$set(e.formModel, e.schema.field, n);
551
- }, 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) {
552
- e.$set(e.formModel, e.schema.field, n);
553
- }, 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) {
554
- e.$set(e.formModel, e.schema.field, n);
555
- }, expression: "formModel[schema.field]" } }, "el-checkbox-group", t.effectiveComponentProps, !1), t.effectiveComponentListeners), e._l(t.getOptions(t.effectiveComponentProps) || [], function(n) {
556
- return l("el-checkbox", { key: String(n.value), attrs: { label: n.value } }, [e._v(" " + e._s(n.label) + " ")]);
557
- }), 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) {
558
- e.$set(e.formModel, e.schema.field, n);
559
- }, expression: "formModel[schema.field]" } }, "el-radio-group", t.effectiveComponentProps, !1), t.effectiveComponentListeners), e._l(t.getOptions(t.effectiveComponentProps) || [], function(n) {
560
- return l("el-radio", { key: String(n.value), attrs: { label: n.value } }, [e._v(" " + e._s(n.label) + " ")]);
761
+ 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))]), 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(a, y) {
762
+ return l("div", { key: y, staticClass: "ecp-pro-form-item__help-item" }, [e._v(" " + e._s(a) + " ")]);
763
+ }) : 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 }) : [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(a) {
764
+ e.$set(e.formModel, e.schema.field, a);
765
+ }, 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(a) {
766
+ e.$set(e.formModel, e.schema.field, a);
767
+ }, expression: "formModel[schema.field]" } }, "el-input-number", 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(a) {
768
+ e.$set(e.formModel, e.schema.field, a);
769
+ }, expression: "formModel[schema.field]" } }, "el-select", t.effectiveComponentProps, !1), t.effectiveComponentListeners), e._l(t.getOptions(t.effectiveComponentProps) || [], function(a) {
770
+ return l("el-option", { key: String(a.value), attrs: { label: a.label, value: a.value } });
771
+ }), 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(a) {
772
+ e.$set(e.formModel, e.schema.field, a);
773
+ }, 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(a) {
774
+ e.$set(e.formModel, e.schema.field, a);
775
+ }, 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(a) {
776
+ e.$set(e.formModel, e.schema.field, a);
777
+ }, 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(a) {
778
+ e.$set(e.formModel, e.schema.field, a);
779
+ }, 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(a) {
780
+ e.$set(e.formModel, e.schema.field, a);
781
+ }, expression: "formModel[schema.field]" } }, "el-checkbox-group", t.effectiveComponentProps, !1), t.effectiveComponentListeners), e._l(t.getOptions(t.effectiveComponentProps) || [], function(a) {
782
+ return l("el-checkbox", { key: String(a.value), attrs: { label: a.value } }, [e._v(" " + e._s(a.label) + " ")]);
783
+ }), 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(a) {
784
+ e.$set(e.formModel, e.schema.field, a);
785
+ }, expression: "formModel[schema.field]" } }, "el-radio-group", t.effectiveComponentProps, !1), t.effectiveComponentListeners), e._l(t.getOptions(t.effectiveComponentProps) || [], function(a) {
786
+ return l("el-radio", { key: String(a.value), attrs: { label: a.value } }, [e._v(" " + e._s(a.label) + " ")]);
561
787
  }), 1) : e._e()]], 2) : e._e();
562
- }, He = [], Ge = /* @__PURE__ */ se(
563
- Ne,
564
- je,
565
- He,
788
+ }, lt = [], ot = /* @__PURE__ */ ae(
789
+ et,
790
+ tt,
791
+ lt,
566
792
  !1,
567
793
  null,
568
- "cfc968c5",
794
+ "2227d67d",
569
795
  null,
570
796
  null
571
797
  );
572
- const ke = Ge.exports, Ue = /* @__PURE__ */ Z({
798
+ const Te = ot.exports, at = /* @__PURE__ */ ee({
573
799
  __name: "FormActions",
574
800
  props: {
575
801
  showActionButtonGroup: { type: Boolean, default: !0 },
@@ -586,28 +812,28 @@ const ke = Ge.exports, Ue = /* @__PURE__ */ Z({
586
812
  actionColOptions: null
587
813
  },
588
814
  emits: ["submit", "reset", "toggle"],
589
- setup(A) {
815
+ setup(x) {
590
816
  return { __sfc: !0 };
591
817
  }
592
818
  });
593
- var Xe = function() {
819
+ var nt = function() {
594
820
  var e = this, l = e._self._c;
595
821
  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) {
596
822
  return e.$emit("submit");
597
823
  } } }, [e._v(" " + e._s(e.submitButtonText) + " ")]) : e._e(), e._t("resetBefore"), e.showResetButton ? l("el-button", { attrs: { icon: e.resetButtonIcon }, on: { click: function(t) {
598
824
  return e.$emit("reset");
599
825
  } } }, [e._v(" " + e._s(e.resetButtonText) + " ")]) : e._e(), e._t("actions")], 2);
600
- }, Ze = [], Je = /* @__PURE__ */ se(
601
- Ue,
602
- Xe,
603
- Ze,
826
+ }, st = [], rt = /* @__PURE__ */ ae(
827
+ at,
828
+ nt,
829
+ st,
604
830
  !1,
605
831
  null,
606
832
  "489c88d2",
607
833
  null,
608
834
  null
609
835
  );
610
- const Te = Je.exports, Qe = /* @__PURE__ */ Z({
836
+ const De = rt.exports, it = /* @__PURE__ */ ee({
611
837
  __name: "ProForm",
612
838
  props: {
613
839
  schemas: null,
@@ -634,256 +860,256 @@ const Te = Je.exports, Qe = /* @__PURE__ */ Z({
634
860
  submitFunc: null,
635
861
  resetFunc: null,
636
862
  submitOnReset: { type: Boolean, default: !1 },
637
- formListeners: null
863
+ formListeners: null,
864
+ components: null
638
865
  },
639
866
  emits: ["submit", "reset", "register"],
640
- setup(A, { expose: e, emit: l }) {
641
- const t = A, n = ye(), i = M(), P = M(), z = M(!1), s = M(!0), v = M({}), h = M({}), c = M([]), b = M({}), k = { xl: 1920, lg: 1200, md: 992, sm: 768 }, p = (r, g, C) => {
642
- const w = C ?? (typeof window < "u" ? window.innerWidth : 1920), _ = r ?? {}, T = g ?? {}, E = T.span ?? 8;
643
- return w >= k.xl ? _.xl ?? T.xl ?? _.lg ?? T.lg ?? _.md ?? T.md ?? _.sm ?? T.sm ?? _.xs ?? T.xs ?? _.span ?? E : w >= k.lg ? _.lg ?? T.lg ?? _.md ?? T.md ?? _.sm ?? T.sm ?? _.xs ?? T.xs ?? _.span ?? E : w >= k.md ? _.md ?? T.md ?? _.sm ?? T.sm ?? _.xs ?? T.xs ?? _.span ?? E : w >= k.sm ? _.sm ?? T.sm ?? _.xs ?? T.xs ?? _.span ?? E : _.xs ?? T.xs ?? _.span ?? E;
644
- }, { getSetting: y } = Fe(), R = B(() => ({ ...y("ProForm"), ...t, ...b.value })), x = B(() => R.value.actionColOptions ?? { span: 24 }), f = M(typeof window < "u" ? window.innerWidth : 1920), d = (r, g, C, w) => {
645
- let _ = 24, T = 1, E = 0;
646
- for (const N of r) {
647
- const G = p(N.colProps, g, w);
648
- if (G > _) {
649
- if (T++, T > C)
867
+ setup(x, { expose: e, emit: l }) {
868
+ const t = x, a = Pe(), y = k(), r = k(), P = k(!1), s = k(!0), p = k({}), $ = k({}), u = k([]), D = k({}), h = { xl: 1920, lg: 1200, md: 992, sm: 768 }, B = (i, _, S) => {
869
+ const C = S ?? (typeof window < "u" ? window.innerWidth : 1920), w = i ?? {}, E = _ ?? {}, H = E.span ?? 8;
870
+ return C >= h.xl ? w.xl ?? E.xl ?? w.lg ?? E.lg ?? w.md ?? E.md ?? w.sm ?? E.sm ?? w.xs ?? E.xs ?? w.span ?? H : C >= h.lg ? w.lg ?? E.lg ?? w.md ?? E.md ?? w.sm ?? E.sm ?? w.xs ?? E.xs ?? w.span ?? H : C >= h.md ? w.md ?? E.md ?? w.sm ?? E.sm ?? w.xs ?? E.xs ?? w.span ?? H : C >= h.sm ? w.sm ?? E.sm ?? w.xs ?? E.xs ?? w.span ?? H : w.xs ?? E.xs ?? w.span ?? H;
871
+ }, { getSetting: m } = Be(), A = R(() => ({ ...m("ProForm"), ...t, ...D.value })), c = R(() => ({
872
+ ...m("ProForm").components ?? {},
873
+ ...t.components ?? {},
874
+ ...D.value.components ?? {}
875
+ })), v = R(() => A.value.actionColOptions ?? { span: 24 }), d = k(typeof window < "u" ? window.innerWidth : 1920), z = (i, _, S, C) => {
876
+ let w = 24, E = 1, H = 0;
877
+ for (const Q of i) {
878
+ const ne = B(Q.colProps, _, C);
879
+ if (ne > w) {
880
+ if (E++, E > S)
650
881
  break;
651
- _ = 24 - G;
882
+ w = 24 - ne;
652
883
  } else
653
- _ -= G;
654
- E++;
884
+ w -= ne;
885
+ H++;
655
886
  }
656
- return E;
657
- }, O = B(() => {
658
- const r = c.value.filter((_) => H(_));
659
- if (!R.value.showAdvancedButton)
887
+ return H;
888
+ }, I = R(() => {
889
+ const i = u.value.filter((w) => g(w));
890
+ if (!A.value.showAdvancedButton)
660
891
  return !1;
661
- const g = R.value.alwaysShowLines ?? 1, C = R.value.baseColProps, w = d(r, C, g, f.value);
662
- return console.log(r.length, w), r.length > w;
663
- }), j = B(() => R.value.formListeners ?? {}), D = B(() => {
664
- const r = c.value.filter((_) => H(_));
665
- if (!R.value.showAdvancedButton || !s.value)
666
- return r;
667
- const g = R.value.alwaysShowLines ?? 1, C = R.value.baseColProps, w = d(r, C, g, f.value);
668
- return r.slice(0, w);
669
- }), H = (r) => {
670
- let g = !0, C = !0;
671
- return typeof r.ifShow == "function" && (g = r.ifShow({ schema: r, values: v.value, model: v.value, field: r.field })), typeof r.ifShow == "boolean" && (g = r.ifShow), typeof r.show == "function" && (C = r.show({ schema: r, values: v.value, model: v.value, field: r.field })), typeof r.show == "boolean" && (C = r.show), g && C;
672
- }, ee = (r) => r.colProps ?? R.value.baseColProps ?? {}, re = (r) => r.slot || r.field, L = () => {
673
- const r = {}, g = {}, C = R.value.initialValues ?? t.initialValues;
674
- c.value.forEach((w) => {
675
- var _;
676
- r[w.field] = w.defaultValue ?? (C == null ? void 0 : C[w.field]), (_ = w.rules) != null && _.length && (g[w.field] = w.rules);
677
- }), v.value = { ...v.value, ...r }, h.value = g;
678
- }, J = (r) => {
679
- const g = { ...r };
680
- return c.value.forEach((C) => {
681
- const w = C.ifShow;
682
- if (w === void 0)
892
+ const _ = A.value.alwaysShowLines ?? 1, S = A.value.baseColProps, C = z(i, S, _, d.value);
893
+ return console.log(i.length, C), i.length > C;
894
+ }), M = R(() => A.value.formListeners ?? {}), N = R(() => {
895
+ const i = u.value.filter((w) => g(w));
896
+ if (!A.value.showAdvancedButton || !s.value)
897
+ return i;
898
+ const _ = A.value.alwaysShowLines ?? 1, S = A.value.baseColProps, C = z(i, S, _, d.value);
899
+ return i.slice(0, C);
900
+ }), g = (i) => {
901
+ let _ = !0, S = !0;
902
+ return typeof i.ifShow == "function" && (_ = i.ifShow({ schema: i, values: p.value, model: p.value, field: i.field })), typeof i.ifShow == "boolean" && (_ = i.ifShow), typeof i.show == "function" && (S = i.show({ schema: i, values: p.value, model: p.value, field: i.field })), typeof i.show == "boolean" && (S = i.show), _ && S;
903
+ }, L = (i) => i.colProps ?? A.value.baseColProps ?? {}, O = (i) => i.slot || i.field, W = () => {
904
+ const i = {}, _ = {}, S = A.value.initialValues ?? t.initialValues;
905
+ u.value.forEach((C) => {
906
+ var w;
907
+ i[C.field] = C.defaultValue ?? (S == null ? void 0 : S[C.field]), (w = C.rules) != null && w.length && (_[C.field] = C.rules);
908
+ }), p.value = { ...p.value, ...i }, $.value = _;
909
+ }, X = (i) => {
910
+ const _ = { ...i };
911
+ return u.value.forEach((S) => {
912
+ const C = S.ifShow;
913
+ if (C === void 0)
683
914
  return;
684
- (typeof w == "boolean" ? w : w({ schema: C, values: r, model: r, field: C.field })) || delete g[C.field];
685
- }), g;
686
- }, Q = (r) => {
687
- const g = J(r), C = b.value.fieldMapToTime;
688
- if (!(C != null && C.length))
689
- return g;
690
- const w = { ...g };
691
- return C.forEach(([_, [T, E]]) => {
692
- const N = w[_];
693
- Array.isArray(N) && N.length === 2 && (delete w[_], w[T] = N[0], w[E] = N[1]);
694
- }), w;
695
- }, W = async () => {
696
- var r;
915
+ (typeof C == "boolean" ? C : C({ schema: S, values: i, model: i, field: S.field })) || delete _[S.field];
916
+ }), _;
917
+ }, K = (i) => {
918
+ const _ = X(i), S = D.value.fieldMapToTime;
919
+ if (!(S != null && S.length))
920
+ return _;
921
+ const C = { ..._ };
922
+ return S.forEach(([w, [E, H]]) => {
923
+ const Q = C[w];
924
+ Array.isArray(Q) && Q.length === 2 && (delete C[w], C[E] = Q[0], C[H] = Q[1]);
925
+ }), C;
926
+ }, q = async () => {
927
+ var i;
697
928
  try {
698
- await ((r = i.value) == null ? void 0 : r.validate()), R.value.submitFunc ? await R.value.submitFunc() : (z.value = !0, l("submit", Q({ ...v.value })));
699
- } catch (g) {
700
- console.error("Form validation failed:", g);
929
+ await ((i = y.value) == null ? void 0 : i.validate()), A.value.submitFunc ? await A.value.submitFunc() : (P.value = !0, l("submit", K({ ...p.value })));
930
+ } catch (_) {
931
+ console.error("Form validation failed:", _);
701
932
  } finally {
702
- z.value = !1;
933
+ P.value = !1;
703
934
  }
704
- }, ie = async () => {
705
- var r;
706
- R.value.resetFunc ? await R.value.resetFunc() : ((r = i.value) == null || r.resetFields(), L(), l("reset"), R.value.submitOnReset && await W());
707
- }, Y = (r) => (v.value = { ...v.value, ...r }, Promise.resolve()), V = () => Q({ ...v.value }), ce = async () => {
708
- var r;
709
- (r = i.value) == null || r.resetFields(), L();
710
- }, ue = (r) => {
711
- var g;
712
- return ((g = i.value) == null ? void 0 : g.validate(r)) ?? Promise.resolve();
713
- }, de = (r) => i.value ? r != null && r.length ? Promise.all(r.map((g) => new Promise((C, w) => {
714
- i.value.validateField(g, (_) => _ ? C(void 0) : w(new Error("Validation failed")));
715
- }))) : i.value.validate() : Promise.resolve(), fe = async (r, g) => {
716
- var w;
717
- const C = (w = P.value) == null ? void 0 : w.querySelector(`[data-field="${r}"]`);
718
- return C && C.scrollIntoView({ behavior: (g == null ? void 0 : g.behavior) ?? "smooth", block: (g == null ? void 0 : g.block) ?? "nearest" }), Promise.resolve();
719
- }, pe = (r) => {
720
- var g;
721
- (g = i.value) == null || g.clearValidate(r);
722
- }, me = async (r) => {
723
- (Array.isArray(r) ? r : [r]).forEach((C) => {
724
- const w = c.value.findIndex((_) => _.field === C.field);
725
- w >= 0 && (c.value[w] = { ...c.value[w], ...C });
935
+ }, Y = async () => {
936
+ var i;
937
+ A.value.resetFunc ? await A.value.resetFunc() : ((i = y.value) == null || i.resetFields(), W(), l("reset"), A.value.submitOnReset && await q());
938
+ }, j = (i) => (p.value = { ...p.value, ...i }, Promise.resolve()), te = () => K({ ...p.value }), ue = async () => {
939
+ var i;
940
+ (i = y.value) == null || i.resetFields(), W();
941
+ }, de = (i) => {
942
+ var _;
943
+ return ((_ = y.value) == null ? void 0 : _.validate(i)) ?? Promise.resolve();
944
+ }, fe = (i) => y.value ? i != null && i.length ? Promise.all(i.map((_) => new Promise((S, C) => {
945
+ y.value.validateField(_, (w) => w ? S(void 0) : C(new Error("Validation failed")));
946
+ }))) : y.value.validate() : Promise.resolve(), pe = async (i, _) => {
947
+ var C;
948
+ const S = (C = r.value) == null ? void 0 : C.querySelector(`[data-field="${i}"]`);
949
+ return S && S.scrollIntoView({ behavior: (_ == null ? void 0 : _.behavior) ?? "smooth", block: (_ == null ? void 0 : _.block) ?? "nearest" }), Promise.resolve();
950
+ }, ve = (i) => {
951
+ var _;
952
+ (_ = y.value) == null || _.clearValidate(i);
953
+ }, Z = async (i) => {
954
+ (Array.isArray(i) ? i : [i]).forEach((S) => {
955
+ const C = u.value.findIndex((w) => w.field === S.field);
956
+ C >= 0 && (u.value[C] = { ...u.value[C], ...S });
726
957
  });
727
- }, K = async (r, g, C) => {
728
- if (C)
729
- c.value.unshift(r);
730
- else if (g) {
731
- const w = c.value.findIndex((_) => _.field === g);
732
- c.value.splice(w + 1, 0, r);
958
+ }, me = async (i, _, S) => {
959
+ if (S)
960
+ u.value.unshift(i);
961
+ else if (_) {
962
+ const C = u.value.findIndex((w) => w.field === _);
963
+ u.value.splice(C + 1, 0, i);
733
964
  } else
734
- c.value.push(r);
735
- L();
736
- }, ve = async (r) => {
737
- const g = Array.isArray(r) ? r : [r];
738
- c.value = c.value.filter((C) => !g.includes(C.field));
739
- }, he = async (r) => {
740
- if (b.value = { ...b.value, ...r }, r.schemas) {
741
- c.value = [...r.schemas];
742
- debugger;
743
- L();
744
- }
745
- }, te = {
746
- getFieldsValue: V,
747
- setFieldsValue: Y,
748
- resetFields: ce,
749
- validate: ue,
750
- validateFields: de,
751
- submit: W,
752
- scrollToField: fe,
753
- clearValidate: pe,
754
- updateSchema: me,
755
- appendSchemaByField: K,
756
- removeSchemaByField: ve,
757
- setProps: he
965
+ u.value.push(i);
966
+ W();
967
+ }, he = async (i) => {
968
+ const _ = Array.isArray(i) ? i : [i];
969
+ u.value = u.value.filter((S) => !_.includes(S.field));
970
+ }, be = async (i) => {
971
+ D.value = { ...D.value, ...i }, i.schemas && (u.value = [...i.schemas], W());
972
+ }, J = {
973
+ getFieldsValue: te,
974
+ setFieldsValue: j,
975
+ resetFields: ue,
976
+ validate: de,
977
+ validateFields: fe,
978
+ submit: q,
979
+ scrollToField: pe,
980
+ clearValidate: ve,
981
+ updateSchema: Z,
982
+ appendSchemaByField: me,
983
+ removeSchemaByField: he,
984
+ setProps: be
758
985
  };
759
- e(te);
760
- const q = () => {
761
- c.value = [...t.schemas ?? []], L();
762
- }, oe = () => {
763
- typeof window < "u" && (f.value = window.innerWidth);
986
+ e(J);
987
+ const se = () => {
988
+ u.value = [...t.schemas ?? []], W();
989
+ }, re = () => {
990
+ typeof window < "u" && (d.value = window.innerWidth);
764
991
  };
765
- return xe(() => {
766
- q(), l("register", te), typeof window < "u" && window.addEventListener("resize", oe);
992
+ return we(() => {
993
+ se(), l("register", J), typeof window < "u" && window.addEventListener("resize", re);
767
994
  }), Re(() => {
768
- typeof window < "u" && window.removeEventListener("resize", oe);
769
- }), ae(() => [t.schemas, t.initialValues], q, { deep: !0 }), { __sfc: !0, props: t, emit: l, slots: n, formRef: i, formWrapRef: P, submitLoading: z, collapsed: s, formModel: v, formRules: h, innerSchemas: c, innerProps: b, BREAKPOINTS: k, getEffectiveSpan: p, getComponentSetting: y, effectiveProps: R, effectiveActionColOptions: x, windowWidth: f, getVisibleSchemaCount: d, hasMoreFields: O, formListeners: j, displaySchemas: D, shouldShow: H, getColProps: ee, getSlotName: re, initForm: L, filterByIfShow: J, processFieldMapToTime: Q, handleSubmit: W, handleReset: ie, setFieldsValue: Y, getFieldsValue: V, resetFields: ce, validate: ue, validateFields: de, scrollToField: fe, clearValidate: pe, updateSchema: me, appendSchemaByField: K, removeSchemaByField: ve, setProps: he, formActionRef: te, syncSchemas: q, handleResize: oe, ProFormItem: ke, FormActions: Te };
995
+ typeof window < "u" && window.removeEventListener("resize", re);
996
+ }), U(() => [t.schemas, t.initialValues], se, { deep: !0 }), { __sfc: !0, props: t, emit: l, slots: a, formRef: y, formWrapRef: r, submitLoading: P, collapsed: s, formModel: p, formRules: $, innerSchemas: u, innerProps: D, BREAKPOINTS: h, getEffectiveSpan: B, getComponentSetting: m, effectiveProps: A, formCustomComponents: c, effectiveActionColOptions: v, windowWidth: d, getVisibleSchemaCount: z, hasMoreFields: I, formListeners: M, displaySchemas: N, shouldShow: g, getColProps: L, getSlotName: O, initForm: W, filterByIfShow: X, processFieldMapToTime: K, handleSubmit: q, handleReset: Y, setFieldsValue: j, getFieldsValue: te, resetFields: ue, validate: de, validateFields: fe, scrollToField: pe, clearValidate: ve, updateSchema: Z, appendSchemaByField: me, removeSchemaByField: he, setProps: be, formActionRef: J, syncSchemas: se, handleResize: re, ProFormItem: Te, FormActions: De };
770
997
  }
771
998
  });
772
- var Ye = function() {
999
+ var ct = function() {
773
1000
  var e = this, l = e._self._c, t = e._self._setupProxy;
774
- 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.formModel, 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) {
775
- var i, P;
776
- return [t.shouldShow(n) ? l("el-col", e._b({ key: n.field, attrs: { offset: ((i = n.colProps) == null ? void 0 : i.offset) ?? ((P = t.effectiveProps.baseColProps) == null ? void 0 : P.offset) ?? 0, "data-field": n.field } }, "el-col", t.getColProps(n), !1), [l(t.ProFormItem, { attrs: { schema: n, "form-model": t.formModel, "form-disabled": t.effectiveProps.disabled, "auto-placeholder": t.effectiveProps.autoSetPlaceholder, "form-action-type": t.formActionRef } }, [t.slots[t.getSlotName(n)] ? [e._t(t.getSlotName(n), null, { model: t.formModel, schema: n, field: n.field, values: t.formModel })] : e._e()], 2)], 1) : e._e()];
777
- }), 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) {
1001
+ 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.formModel, 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(a) {
1002
+ var y, r;
1003
+ return [t.shouldShow(a) ? l("el-col", e._b({ key: a.field, attrs: { offset: ((y = a.colProps) == null ? void 0 : y.offset) ?? ((r = t.effectiveProps.baseColProps) == null ? void 0 : r.offset) ?? 0, "data-field": a.field } }, "el-col", t.getColProps(a), !1), [l(t.ProFormItem, { attrs: { schema: a, "form-model": t.formModel, "form-disabled": t.effectiveProps.disabled, "auto-placeholder": t.effectiveProps.autoSetPlaceholder, "form-action-type": t.formActionRef, "custom-components": t.formCustomComponents } }, [t.slots[t.getSlotName(a)] ? [e._t(t.getSlotName(a), null, { model: t.formModel, schema: a, field: a.field, values: t.formModel })] : e._e()], 2)], 1) : e._e()];
1004
+ }), 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(a) {
778
1005
  t.collapsed = !t.collapsed;
779
- } } }, [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) {
1006
+ } } }, [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(a) {
780
1007
  t.collapsed = !t.collapsed;
781
1008
  } } }, [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);
782
- }, et = [], tt = /* @__PURE__ */ se(
783
- Qe,
784
- Ye,
785
- et,
1009
+ }, ut = [], dt = /* @__PURE__ */ ae(
1010
+ it,
1011
+ ct,
1012
+ ut,
786
1013
  !1,
787
1014
  null,
788
- "140fc052",
1015
+ "4ee1cb87",
789
1016
  null,
790
1017
  null
791
1018
  );
792
- const Me = tt.exports;
793
- function rt(A) {
794
- const e = M(null), l = M(A ? we(A) : void 0), t = () => A ? we(A) : void 0, n = (f) => {
795
- e.value = f;
1019
+ const Me = dt.exports;
1020
+ function bt(x) {
1021
+ const e = k(null), l = k(x ? ye(x) : void 0), t = () => x ? ye(x) : void 0, a = (v) => {
1022
+ e.value = v;
796
1023
  const d = t();
797
- debugger;
798
- d && Object.keys(d).length > 0 && f.setProps(d);
1024
+ d && Object.keys(d).length > 0 && v.setProps(d);
799
1025
  };
800
- return A && ae(
1026
+ return x && U(
801
1027
  () => t(),
802
- (f) => {
803
- l.value = f, f && e.value && e.value.setProps(f);
1028
+ (v) => {
1029
+ l.value = v, v && e.value && e.value.setProps(v);
804
1030
  },
805
1031
  { deep: !0 }
806
- ), [n, {
807
- register: n,
1032
+ ), [a, {
1033
+ register: a,
808
1034
  formAction: e,
809
1035
  getFieldsValue: () => {
810
- var f;
811
- return ((f = e.value) == null ? void 0 : f.getFieldsValue()) ?? {};
1036
+ var v;
1037
+ return ((v = e.value) == null ? void 0 : v.getFieldsValue()) ?? {};
812
1038
  },
813
- setFieldsValue: async (f) => {
1039
+ setFieldsValue: async (v) => {
814
1040
  var d;
815
- await ((d = e.value) == null ? void 0 : d.setFieldsValue(f));
1041
+ await ((d = e.value) == null ? void 0 : d.setFieldsValue(v));
816
1042
  },
817
1043
  resetFields: async () => {
818
- var f;
819
- await ((f = e.value) == null ? void 0 : f.resetFields());
1044
+ var v;
1045
+ await ((v = e.value) == null ? void 0 : v.resetFields());
820
1046
  },
821
- validate: (f) => {
1047
+ validate: (v) => {
822
1048
  var d;
823
- return ((d = e.value) == null ? void 0 : d.validate(f)) ?? Promise.resolve();
1049
+ return ((d = e.value) == null ? void 0 : d.validate(v)) ?? Promise.resolve();
824
1050
  },
825
- validateFields: (f) => {
1051
+ validateFields: (v) => {
826
1052
  var d;
827
- return ((d = e.value) == null ? void 0 : d.validateFields(f)) ?? Promise.resolve();
1053
+ return ((d = e.value) == null ? void 0 : d.validateFields(v)) ?? Promise.resolve();
828
1054
  },
829
1055
  submit: () => {
830
- var f;
831
- return ((f = e.value) == null ? void 0 : f.submit()) ?? Promise.resolve();
1056
+ var v;
1057
+ return ((v = e.value) == null ? void 0 : v.submit()) ?? Promise.resolve();
832
1058
  },
833
- scrollToField: (f, d) => {
834
- var O;
835
- return ((O = e.value) == null ? void 0 : O.scrollToField(f, d)) ?? Promise.resolve();
1059
+ scrollToField: (v, d) => {
1060
+ var z;
1061
+ return ((z = e.value) == null ? void 0 : z.scrollToField(v, d)) ?? Promise.resolve();
836
1062
  },
837
- clearValidate: (f) => {
1063
+ clearValidate: (v) => {
838
1064
  var d;
839
- (d = e.value) == null || d.clearValidate(f);
1065
+ (d = e.value) == null || d.clearValidate(v);
840
1066
  },
841
- updateSchema: (f) => {
1067
+ updateSchema: (v) => {
842
1068
  var d;
843
- return ((d = e.value) == null ? void 0 : d.updateSchema(f)) ?? Promise.resolve();
1069
+ return ((d = e.value) == null ? void 0 : d.updateSchema(v)) ?? Promise.resolve();
844
1070
  },
845
- appendSchemaByField: (f, d, O) => {
846
- var j;
847
- return ((j = e.value) == null ? void 0 : j.appendSchemaByField(f, d, O)) ?? Promise.resolve();
1071
+ appendSchemaByField: (v, d, z) => {
1072
+ var I;
1073
+ return ((I = e.value) == null ? void 0 : I.appendSchemaByField(v, d, z)) ?? Promise.resolve();
848
1074
  },
849
- removeSchemaByField: (f) => {
1075
+ removeSchemaByField: (v) => {
850
1076
  var d;
851
- return ((d = e.value) == null ? void 0 : d.removeSchemaByField(f)) ?? Promise.resolve();
1077
+ return ((d = e.value) == null ? void 0 : d.removeSchemaByField(v)) ?? Promise.resolve();
852
1078
  },
853
- setProps: async (f) => {
1079
+ setProps: async (v) => {
854
1080
  var d;
855
- l.value = { ...l.value, ...f }, await ((d = e.value) == null ? void 0 : d.setProps(f));
1081
+ l.value = { ...l.value, ...v }, await ((d = e.value) == null ? void 0 : d.setProps(v));
856
1082
  }
857
1083
  }];
858
1084
  }
859
- const ot = [
860
- { name: "ProTable", component: Be },
861
- { name: "TableAction", component: Ae },
1085
+ const ft = [
1086
+ { name: "ProTable", component: Ae },
1087
+ { name: "TableAction", component: ke },
862
1088
  { name: "ProForm", component: Me },
863
- { name: "ProFormItem", component: ke },
864
- { name: "FormActions", component: Te }
1089
+ { name: "ProFormItem", component: Te },
1090
+ { name: "FormActions", component: De }
865
1091
  ];
866
- function lt(A) {
867
- ot.forEach(({ name: e, component: l }) => {
868
- A.component(e, l);
1092
+ function pt(x) {
1093
+ ft.forEach(({ name: e, component: l }) => {
1094
+ x.component(e, l);
869
1095
  });
870
1096
  }
871
- const it = {
872
- install: lt,
873
- ProTable: Be,
1097
+ const _t = {
1098
+ install: pt,
1099
+ ProTable: Ae,
874
1100
  ProForm: Me,
875
- TableAction: Ae
1101
+ TableAction: ke
876
1102
  };
877
1103
  export {
878
- Te as FormActions,
1104
+ De as FormActions,
879
1105
  Me as ProForm,
880
- ke as ProFormItem,
881
- Be as ProTable,
882
- Ae as TableAction,
883
- it as default,
884
- lt as install,
885
- Fe as useComponentSetting,
886
- rt as useForm,
887
- st as useProTable
1106
+ Te as ProFormItem,
1107
+ Ae as ProTable,
1108
+ ke as TableAction,
1109
+ _t as default,
1110
+ pt as install,
1111
+ Be as useComponentSetting,
1112
+ bt as useForm,
1113
+ ht as useProTable
888
1114
  };
889
1115
  //# sourceMappingURL=element-component-pro.es.js.map