@vue-start/pro 0.5.32 → 0.5.34

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.
package/dist/index.es.js CHANGED
@@ -1,24 +1,24 @@
1
- import { defineComponent as O, provide as me, inject as ye, reactive as Ne, createVNode as l, Fragment as ie, computed as N, h as Pe, isVNode as pe, mergeProps as A, ref as _, createTextVNode as nt, toRef as an } from "vue";
2
- import { reduce as ne, get as m, map as F, isString as ae, forEach as Z, size as Q, endsWith as gt, set as ce, isArray as G, pick as z, add as on, subtract as un, isFunction as W, filter as Y, has as We, keys as H, isObject as Ce, omit as $, some as fe, isNumber as St, head as cn, split as ln, isEmpty as Pt, mergeWith as sn, startsWith as dn, mapKeys as fn, debounce as pt, clone as mn, isBoolean as Ee, sortBy as Ct, every as yn, join as Ge, findLast as vn, cloneDeep as Et } from "lodash";
3
- import { filter as De, tap as xe, merge as hn, Subject as bn } from "rxjs";
4
- import { map as gn, tap as Sn } from "rxjs/operators";
5
- import { mergeStateToData as Pn, mergeStateToData2 as pn, useEffect as oe, findFirstValidMenu as Cn, setReactiveValue as Mt, restorePath as It, isValidPath as Tt, isPathHasParent as Nt, useUpdateKey as $t, useRuleState as ke, convertCollection as At, useWatch as Ot, useState as rt, useResizeObserver as Ve, decimalFixed as En, thousandDivision as Mn, listToMap as In, treeToMap as Tn, getMenuTopNameMap as Nn, findTreeItem as at, strToJson as wt, jsonToStr as $n, useSafeActivated as An } from "@vue-start/hooks";
6
- import { useRequestProvide as $e, isDoneRequestActor as Dt, isFailedRequestActor as xt } from "@vue-start/request";
7
- import { useDispatchStore as Kt, useStore as Lt, useObservableRef as On, useStoreConn as wn, shallowEqual as Dn, createStateUse as xn } from "@vue-start/store";
8
- import { parseQuery as ot, stringifyQuery as Kn, useRouter as Xe, useRoute as _e } from "vue-router";
9
- import { css as ut } from "@emotion/css";
10
- import ct from "dayjs";
11
- const Ln = () => ({
1
+ import { defineComponent as D, provide as me, inject as ye, reactive as Ne, createVNode as l, Fragment as ie, computed as N, h as Pe, isVNode as pe, mergeProps as x, ref as X, createTextVNode as et, toRef as rn } from "vue";
2
+ import { reduce as ne, get as y, map as R, isString as ae, forEach as Z, size as Y, endsWith as ht, set as ce, isArray as W, pick as z, add as an, subtract as on, isFunction as V, filter as _, has as He, keys as H, isObject as Ce, omit as O, some as fe, isNumber as bt, head as un, split as cn, isEmpty as gt, mergeWith as sn, startsWith as ln, mapKeys as dn, debounce as St, clone as fn, isBoolean as Ee, sortBy as Pt, every as mn, join as We, findLast as yn, cloneDeep as pt } from "lodash";
3
+ import { filter as De, tap as Fe, merge as vn, Subject as hn } from "rxjs";
4
+ import { map as bn, tap as gn } from "rxjs/operators";
5
+ import { mergeStateToData as Sn, mergeStateToData2 as Pn, useEffect as oe, findFirstValidMenu as pn, setReactiveValue as Ct, restorePath as Et, isValidPath as Mt, isPathHasParent as Tt, useUpdateKey as It, useRuleState as ke, convertCollection as Nt, useWatch as At, useState as tt, signTableMerge as Cn, useResizeObserver as Ve, decimalFixed as En, thousandDivision as Mn, listToMap as Tn, treeToMap as In, getMenuTopNameMap as Nn, findTreeItem as nt, strToJson as Ot, jsonToStr as An, useSafeActivated as On } from "@vue-start/hooks";
6
+ import { useRequestProvide as Ae, isDoneRequestActor as $t, isFailedRequestActor as wt } from "@vue-start/request";
7
+ import { useDispatchStore as Dt, useStore as Ft, useObservableRef as $n, useStoreConn as wn, shallowEqual as Dn, createStateUse as Fn } from "@vue-start/store";
8
+ import { parseQuery as rt, stringifyQuery as xn, useRouter as Ge, useRoute as Xe } from "vue-router";
9
+ import { css as at } from "@emotion/css";
10
+ import ot from "dayjs";
11
+ const Kn = () => ({
12
12
  elementMap: { type: Object },
13
13
  formElementMap: { type: Object },
14
14
  columns: { type: Array },
15
15
  convertColumn: { type: Function },
16
16
  columnState: { type: Object },
17
17
  columnState2: { type: Object }
18
- }), ve = Ln(), Fe = (e, t, a) => {
18
+ }), ve = Kn(), Le = (e, t, r) => {
19
19
  let o = e;
20
- return t && (o = Pn(o, t, (r) => le(r))), a && (o = pn(o, a, (r) => le(r))), o;
21
- }, Fn = () => ({
20
+ return t && (o = Sn(o, t, (a) => se(a))), r && (o = Pn(o, r, (a) => se(a))), o;
21
+ }, Ln = () => ({
22
22
  elementMap: { type: Object },
23
23
  formElementMap: { type: Object },
24
24
  formExtraMap: { type: Object },
@@ -30,34 +30,34 @@ const Ln = () => ({
30
30
  showMsg: { type: Object },
31
31
  showModal: { type: Object },
32
32
  showNotify: { type: Object }
33
- }), Ye = Symbol("pro-config"), ee = () => ye(Ye) || {}, Vr = () => {
33
+ }), _e = Symbol("pro-config"), ee = () => ye(_e) || {}, zr = () => {
34
34
  const { showMsg: e } = ee();
35
35
  return (t) => e(t);
36
- }, zr = () => {
36
+ }, Hr = () => {
37
37
  const { showModal: e } = ee();
38
38
  return (t) => e(t);
39
- }, Hr = () => {
39
+ }, Wr = () => {
40
40
  const { showNotify: e } = ee();
41
41
  return (t) => e(t);
42
- }, Wr = O({
42
+ }, Gr = D({
43
43
  props: {
44
- ...Fn()
44
+ ...Ln()
45
45
  },
46
46
  setup: (e, { slots: t }) => {
47
- const a = ne(e.registerStores, (c, i) => ({ ...c, [i.key]: i }), {}), o = ne(e.registerActors, (c, i) => ({ ...c, [i.actor.name]: i }), {}), r = ne(e.registerMetas, (c, i) => ({ ...c, [i.actorName]: i }), {});
48
- kn(r, o);
49
- const { dispatchRequest: n } = $e(), u = (c, i, s) => {
50
- const S = m(o, c);
51
- if (!!S)
52
- return n(S.actor, i, s);
47
+ const r = ne(e.registerStores, (c, s) => ({ ...c, [s.key]: s }), {}), o = ne(e.registerActors, (c, s) => ({ ...c, [s.actor.name]: s }), {}), a = ne(e.registerMetas, (c, s) => ({ ...c, [s.actorName]: s }), {});
48
+ kn(a, o);
49
+ const { dispatchRequest: n } = Ae(), u = (c, s, d) => {
50
+ const b = y(o, c);
51
+ if (!!b)
52
+ return n(b.actor, s, d);
53
53
  };
54
- return me(Ye, {
54
+ return me(_e, {
55
55
  elementMap: e.elementMap,
56
56
  formElementMap: e.formElementMap,
57
57
  formExtraMap: e.formExtraMap,
58
- registerStoreMap: a,
58
+ registerStoreMap: r,
59
59
  registerActorMap: o,
60
- registerMetaMap: r,
60
+ registerMetaMap: a,
61
61
  dispatchRequest: u,
62
62
  convertRouter: e.convertRouter,
63
63
  showMsg: e.showMsg,
@@ -68,73 +68,73 @@ const Ln = () => ({
68
68
  return (c = t.default) == null ? void 0 : c.call(t);
69
69
  };
70
70
  }
71
- }), Gr = (e = {}) => (t) => {
72
- t.provide(Ye, e);
73
- }, Ft = (e) => (t, a) => {
74
- const { requestSubject$: o } = $e(), r = new Set(F(t, (n) => ae(n) ? n : n.name));
71
+ }), Xr = (e = {}) => (t) => {
72
+ t.provide(_e, e);
73
+ }, xt = (e) => (t, r) => {
74
+ const { requestSubject$: o } = Ae(), a = new Set(R(t, (n) => ae(n) ? n : n.name));
75
75
  oe(() => {
76
76
  const n = o.pipe(
77
77
  De(e),
78
- xe((u) => {
79
- r.has(u.name) && a(u);
78
+ Fe((u) => {
79
+ a.has(u.name) && r(u);
80
80
  })
81
81
  ).subscribe();
82
82
  return () => {
83
83
  n.unsubscribe();
84
84
  };
85
85
  }, []);
86
- }, Xr = Ft(Dt), _r = Ft(xt), Rn = (e, t, a) => {
87
- const { requestSubject$: o, dispatchRequest: r } = $e(), n = new Set(F(e, (c) => ae(c) ? c : c.name)), u = {};
86
+ }, _r = xt($t), Yr = xt(wt), Rn = (e, t, r) => {
87
+ const { requestSubject$: o, dispatchRequest: a } = Ae(), n = new Set(R(e, (c) => ae(c) ? c : c.name)), u = {};
88
88
  oe(() => {
89
- const c = hn(
89
+ const c = vn(
90
90
  o.pipe(
91
- De(Dt),
92
- xe((i) => {
93
- var s, S;
94
- n.has(i.name) && ((s = t.onSuccess) == null || s.call(t, i), (S = t.onFinish) == null || S.call(t, i), u[i.name] = void 0);
91
+ De($t),
92
+ Fe((s) => {
93
+ var d, b;
94
+ n.has(s.name) && ((d = t.onSuccess) == null || d.call(t, s), (b = t.onFinish) == null || b.call(t, s), u[s.name] = void 0);
95
95
  })
96
96
  ),
97
97
  o.pipe(
98
- De(xt),
99
- xe((i) => {
100
- var s, S;
101
- n.has(i.name) && ((s = t.onFailed) == null || s.call(t, i), (S = t.onFinish) == null || S.call(t, i), u[i.name] = void 0);
98
+ De(wt),
99
+ Fe((s) => {
100
+ var d, b;
101
+ n.has(s.name) && ((d = t.onFailed) == null || d.call(t, s), (b = t.onFinish) == null || b.call(t, s), u[s.name] = void 0);
102
102
  })
103
103
  )
104
104
  ).subscribe();
105
105
  return () => {
106
- c.unsubscribe(), a && Z(u, (i) => {
107
- i && r({ ...i, stage: "CANCEL" });
106
+ c.unsubscribe(), r && Z(u, (s) => {
107
+ s && a({ ...s, stage: "CANCEL" });
108
108
  });
109
109
  };
110
110
  }, []);
111
- }, jn = (e, t, a) => {
112
- var r;
113
- const o = (r = e.res) == null ? void 0 : r.data;
114
- return t ? t(o, e) : a ? m(o, a) : o;
115
- }, Yr = () => {
116
- const e = Lt(), { registerMetaMap: t, dispatchRequest: a } = ee();
111
+ }, jn = (e, t, r) => {
112
+ var a;
113
+ const o = (a = e.res) == null ? void 0 : a.data;
114
+ return t ? t(o, e) : r ? y(o, r) : o;
115
+ }, Qr = () => {
116
+ const e = Ft(), { registerMetaMap: t, dispatchRequest: r } = ee();
117
117
  return (o) => {
118
- const r = m(t, o);
119
- if (!r)
118
+ const a = y(t, o);
119
+ if (!a)
120
120
  return;
121
- const n = r.storeName || o;
122
- m(e.value, n) || a(o, r.initParams || {});
121
+ const n = a.storeName || o;
122
+ y(e.value, n) || r(o, a.initParams || {});
123
123
  };
124
124
  }, kn = (e, t) => {
125
- const { requestSubject$: a } = $e(), o = Kt(), r = (n) => {
126
- const u = m(e, n.name), c = m(t, n.name);
125
+ const { requestSubject$: r } = Ae(), o = Dt(), a = (n) => {
126
+ const u = y(e, n.name), c = y(t, n.name);
127
127
  return !!(u && c && c.actor);
128
128
  };
129
129
  oe(() => {
130
- const n = a.pipe(
131
- De(r),
132
- xe((u) => {
133
- const c = m(e, u.name);
130
+ const n = r.pipe(
131
+ De(a),
132
+ Fe((u) => {
133
+ const c = y(e, u.name);
134
134
  if (!c)
135
135
  return;
136
- const i = c.storeName || u.name, s = jn(u, c.convertData, c.convertPath);
137
- o(i, s, !1, void 0);
136
+ const s = c.storeName || u.name, d = jn(u, c.convertData, c.convertPath);
137
+ o(s, d, !1, void 0);
138
138
  })
139
139
  ).subscribe();
140
140
  return () => {
@@ -142,7 +142,7 @@ const Ln = () => ({
142
142
  };
143
143
  }, []);
144
144
  }, Un = {
145
- open: (e, t, a) => window.open(e, t, a),
145
+ open: (e, t, r) => window.open(e, t, r),
146
146
  parseStr: (e) => {
147
147
  var n;
148
148
  if (!e)
@@ -153,26 +153,26 @@ const Ln = () => ({
153
153
  protocol: u.protocol,
154
154
  path: u.pathname,
155
155
  origin: u.origin,
156
- query: ot(u.search),
156
+ query: rt(u.search),
157
157
  url: u.origin + u.pathname
158
158
  };
159
159
  } catch {
160
160
  }
161
161
  const t = e.indexOf("//") > -1 ? (n = e.split("//")) == null ? void 0 : n[0] : "";
162
- let a = "", o = "";
163
- e.indexOf("?") >= -1 && (a = e.substring(0, e.indexOf("?")), o = e.substring(e.indexOf("?")));
164
- const r = o ? ot(o) : {};
165
- return { protocol: t, query: r, url: a };
162
+ let r = "", o = "";
163
+ e.indexOf("?") >= -1 && (r = e.substring(0, e.indexOf("?")), o = e.substring(e.indexOf("?")));
164
+ const a = o ? rt(o) : {};
165
+ return { protocol: t, query: a, url: r };
166
166
  },
167
167
  stringifyUrl: ({ url: e, query: t }) => {
168
- const a = Kn(t);
169
- return `${e}${a ? "?" : ""}${a || ""}`;
168
+ const r = xn(t);
169
+ return `${e}${r ? "?" : ""}${r || ""}`;
170
170
  }
171
- }, Rt = () => {
172
- const { convertRouter: e } = ee(), t = Xe(), a = _e(), r = { ...t, openMenu: (u) => {
171
+ }, Kt = () => {
172
+ const { convertRouter: e } = ee(), t = Ge(), r = Xe(), a = { ...t, openMenu: (u) => {
173
173
  if (!!u) {
174
- if (Q(u.children) > 0) {
175
- const c = Cn(u.children, (i) => !i.children || Q(i.children) <= 0);
174
+ if (Y(u.children) > 0) {
175
+ const c = pn(u.children, (s) => !s.children || Y(s.children) <= 0);
176
176
  if (c) {
177
177
  t.push({ name: c.value });
178
178
  return;
@@ -181,61 +181,61 @@ const Ln = () => ({
181
181
  t.push({ name: u.value });
182
182
  }
183
183
  }, ...Un };
184
- return { router: e ? e(r) : r, route: a };
184
+ return { router: e ? e(a) : a, route: r };
185
185
  }, Bn = (e) => {
186
- if (!G(e) || Q(e) <= 0)
186
+ if (!W(e) || Y(e) <= 0)
187
187
  return !1;
188
188
  const t = e[0];
189
- return ae(t) ? gt(t, "$") : !1;
190
- }, qn = (e) => typeof e != "object" || !e.type$ ? !1 : e.type$ === "data$" && e.type$, Vn = (e) => typeof e != "object" || !e.type$ ? !1 : e.type$ === "obj", zn = { get: m, pick: z, add: on, subtract: un }, Ke = (e, t) => {
189
+ return ae(t) ? ht(t, "$") : !1;
190
+ }, qn = (e) => typeof e != "object" || !e.type$ ? !1 : e.type$ === "data$" && e.type$, Vn = (e) => typeof e != "object" || !e.type$ ? !1 : e.type$ === "obj", zn = { get: y, pick: z, add: an, subtract: on }, xe = (e, t) => {
191
191
  if (qn(e)) {
192
- const a = m(t, e.name$);
193
- return e.namePath$ ? m(a, e.namePath$) : a;
192
+ const r = y(t, e.name$);
193
+ return e.namePath$ ? y(r, e.namePath$) : r;
194
194
  } else if (Vn(e)) {
195
- const a = {};
196
- return Z(e, (o, r) => {
197
- if (r !== "type$")
198
- if (gt(r, "$")) {
199
- const n = Ke(o, t);
200
- ce(a, r.replace("$", ""), n);
195
+ const r = {};
196
+ return Z(e, (o, a) => {
197
+ if (a !== "type$")
198
+ if (ht(a, "$")) {
199
+ const n = xe(o, t);
200
+ ce(r, a.replace("$", ""), n);
201
201
  } else
202
- a[r] = o;
203
- }), a;
202
+ r[a] = o;
203
+ }), r;
204
204
  } else if (Bn(e)) {
205
- const [a, ...o] = e, r = t.expressionMethods || zn, n = m(r, a.replace("$", ""));
205
+ const [r, ...o] = e, a = t.expressionMethods || zn, n = y(a, r.replace("$", ""));
206
206
  if (!n) {
207
207
  console.log("ex", "\u672A\u627E\u5230\u5BF9\u5E94\u7684\u65B9\u6CD5", e);
208
208
  return;
209
209
  }
210
- const u = F(o, (c) => Ke(c, t));
210
+ const u = R(o, (c) => xe(c, t));
211
211
  return n(...u);
212
212
  }
213
213
  return e;
214
214
  }, Hn = () => {
215
- const e = Kt(), { registerStoreMap: t } = ee();
216
- return (a, o) => {
217
- const r = m(t, a);
218
- !r || e(a, o, !!r.persist, r.initialState);
215
+ const e = Dt(), { registerStoreMap: t } = ee();
216
+ return (r, o) => {
217
+ const a = y(t, r);
218
+ !a || e(r, o, !!a.persist, a.initialState);
219
219
  };
220
- }, Qr = (e) => {
221
- const { registerStoreMap: t } = ee(), a = m(t, e), o = `${a != null && a.persist ? "$" : ""}${a == null ? void 0 : a.key}`;
222
- return On(wn((n) => {
223
- const u = m(n, o);
224
- return u || (W(a == null ? void 0 : a.initialState) ? a == null ? void 0 : a.initialState() : a == null ? void 0 : a.initialState);
220
+ }, Jr = (e) => {
221
+ const { registerStoreMap: t } = ee(), r = y(t, e), o = `${r != null && r.persist ? "$" : ""}${r == null ? void 0 : r.key}`;
222
+ return $n(wn((n) => {
223
+ const u = y(n, o);
224
+ return u || (V(r == null ? void 0 : r.initialState) ? r == null ? void 0 : r.initialState() : r == null ? void 0 : r.initialState);
225
225
  }));
226
- }, jt = Symbol("pro-module"), he = () => ye(jt), Wn = (e) => {
227
- me(jt, e);
228
- }, Qe = (e) => {
226
+ }, Lt = Symbol("pro-module"), he = () => ye(Lt), Wn = (e) => {
227
+ me(Lt, e);
228
+ }, Ye = (e) => {
229
229
  const {
230
230
  subject$: t
231
231
  } = he();
232
232
  oe(() => {
233
- const a = t.subscribe({
233
+ const r = t.subscribe({
234
234
  next: (o) => {
235
235
  e(o);
236
236
  }
237
237
  });
238
- return () => a.unsubscribe();
238
+ return () => r.unsubscribe();
239
239
  }, []);
240
240
  }, Me = {
241
241
  Success: "request-success$",
@@ -265,272 +265,294 @@ const Ln = () => ({
265
265
  requests: {
266
266
  type: Array
267
267
  }
268
- }), we = O({
268
+ }), we = D({
269
269
  props: {
270
270
  ...Gn()
271
271
  },
272
272
  setup: (e, {
273
273
  slots: t,
274
- expose: a
274
+ expose: r
275
275
  }) => {
276
- const o = Lt(), {
277
- router: r
278
- } = Rt(), {
276
+ const o = Ft(), {
277
+ router: a
278
+ } = Kt(), {
279
279
  elementMap: n,
280
280
  registerStoreMap: u,
281
281
  expressionMethods: c
282
- } = ee(), i = e.elementMap || n, s = (P) => G(P) ? et(i, P) : Ie(i, P), S = new bn(), h = (P) => {
283
- S.next(P);
284
- }, y = Y(e.storeKeys, (P) => We(u, P)), v = () => ne(y, (P, g) => {
285
- const w = m(u, g);
282
+ } = ee(), s = e.elementMap || n, d = (v) => W(v) ? Je(s, v) : Te(s, v), b = new hn(), h = (v) => {
283
+ b.next(v);
284
+ }, m = _(e.storeKeys, (v) => He(u, v)), g = () => ne(m, (v, T) => {
285
+ const F = y(u, T);
286
286
  return {
287
- ...P,
288
- [g]: m(o.value, `${w.persist ? "$" : ""}${g}`) || m(u, [g, "initialState"])
287
+ ...v,
288
+ [T]: y(o.value, `${F.persist ? "$" : ""}${T}`) || y(u, [T, "initialState"])
289
289
  };
290
- }, {}), E = v(), f = e.state || Ne({
291
- ...E,
290
+ }, {}), S = g(), f = e.state || Ne({
291
+ ...S,
292
292
  ...e.initState
293
- }), p = {}, b = (P) => {
294
- const g = f[P.type], w = W(P.payload) ? P.payload(g) : P.payload;
295
- if (Ce(g)) {
296
- Mt(f[P.type], w);
293
+ }), p = {}, C = (v) => {
294
+ const T = f[v.type], F = V(v.payload) ? v.payload(T) : v.payload;
295
+ if (Ce(T)) {
296
+ Ct(f[v.type], F);
297
297
  return;
298
298
  }
299
- f[P.type] = w;
300
- }, d = Hn(), C = {
301
- dispatch: b,
302
- dispatchStore: d
299
+ f[v.type] = F;
300
+ }, i = Hn(), P = {
301
+ dispatch: C,
302
+ dispatchStore: i
303
303
  };
304
304
  oe(() => {
305
- const P = o.pipe(gn(() => v()), Sn((g) => {
306
- Z(g, (w, V) => {
307
- const ue = m(f, V);
308
- Dn(ue, w) || b({
309
- type: V,
310
- payload: w
305
+ const v = o.pipe(bn(() => g()), gn((T) => {
306
+ Z(T, (F, L) => {
307
+ const ue = y(f, L);
308
+ Dn(ue, F) || C({
309
+ type: L,
310
+ payload: F
311
311
  });
312
312
  });
313
313
  })).subscribe();
314
314
  return () => {
315
- P.unsubscribe();
315
+ v.unsubscribe();
316
316
  };
317
317
  }, []);
318
318
  const {
319
- dispatchRequest: I
320
- } = $e(), B = (() => {
321
- const P = {}, g = ne(e.actors || [], (w, V) => ({
322
- ...w,
323
- [V.name]: V
319
+ dispatchRequest: E
320
+ } = Ae(), M = (() => {
321
+ const v = {}, T = ne(e.actors || [], (F, L) => ({
322
+ ...F,
323
+ [L.name]: L
324
324
  }), {});
325
- return Z(e.requests, (w) => {
326
- if (ae(w.actor)) {
327
- const V = m(g, w.actor);
328
- if (!V)
325
+ return Z(e.requests, (F) => {
326
+ if (ae(F.actor)) {
327
+ const L = y(T, F.actor);
328
+ if (!L)
329
329
  return;
330
- w.actor = V;
330
+ F.actor = L;
331
331
  }
332
- !w.actor || (P[w.actor.name] = w, w.action && (P[w.action] = w));
333
- }), P;
334
- })(), R = (P, ...g) => P.convertParams ? P.convertParams(...g) : P.convertParamsEx ? x(P.convertParamsEx, g) : m(g, 0), M = (P, g) => {
335
- var w;
336
- return P.convertData ? P.convertData(g) : P.convertDataEx ? x(P.convertDataEx, g) : (w = g.res) == null ? void 0 : w.data;
337
- }, T = (P, ...g) => {
338
- const w = m(B, P);
339
- if (!w)
332
+ !F.actor || (v[F.actor.name] = F, F.action && (v[F.action] = F));
333
+ }), v;
334
+ })(), k = (v, ...T) => v.convertParams ? v.convertParams(...T) : v.convertParamsEx ? $(v.convertParamsEx, T) : y(T, 0), Q = (v, T) => {
335
+ var F;
336
+ return v.convertData ? v.convertData(T) : v.convertDataEx ? $(v.convertDataEx, T) : (F = T.res) == null ? void 0 : F.data;
337
+ }, q = (v, ...T) => {
338
+ const F = y(M, v);
339
+ if (!F)
340
340
  return;
341
- const V = R(w, ...g);
342
- w.loadingName && b({
343
- type: w.loadingName,
341
+ const L = k(F, ...T);
342
+ F.loadingName && C({
343
+ type: F.loadingName,
344
344
  payload: !0
345
- }), I(w.actor, V);
345
+ }), E(F.actor, L);
346
346
  };
347
- Rn(H(B), {
348
- onSuccess: (P) => {
349
- var V;
350
- const g = m(B, P.name), w = M(g, P);
351
- g != null && g.stateName && b({
352
- type: g.stateName,
353
- payload: w
347
+ Rn(H(M), {
348
+ onSuccess: (v) => {
349
+ var L;
350
+ const T = y(M, v.name), F = Q(T, v);
351
+ T != null && T.stateName && C({
352
+ type: T.stateName,
353
+ payload: F
354
354
  }), h({
355
355
  type: Me.Success,
356
356
  payload: {
357
- actor: P,
358
- requestOpts: g
357
+ actor: v,
358
+ requestOpts: T
359
359
  }
360
- }), (V = g.onSuccess) == null || V.call(g, P), g.onSuccessEx && k(g.onSuccessEx, [w]);
360
+ }), (L = T.onSuccess) == null || L.call(T, v), T.onSuccessEx && A(T.onSuccessEx, [F]);
361
361
  },
362
- onFailed: (P) => {
363
- var w;
364
- const g = m(B, P.name);
362
+ onFailed: (v) => {
363
+ var F;
364
+ const T = y(M, v.name);
365
365
  h({
366
366
  type: Me.Fail,
367
367
  payload: {
368
- actor: P,
369
- requestOpts: g
368
+ actor: v,
369
+ requestOpts: T
370
370
  }
371
- }), (w = g.onFailed) == null || w.call(g, P), g.onFailedEx && k(g.onFailedEx, [P.err]);
371
+ }), (F = T.onFailed) == null || F.call(T, v), T.onFailedEx && A(T.onFailedEx, [v.err]);
372
372
  },
373
- onFinish: (P) => {
374
- const g = m(B, [P.name, "loadingName"]);
375
- g && b({
376
- type: g,
373
+ onFinish: (v) => {
374
+ const T = y(M, [v.name, "loadingName"]);
375
+ T && C({
376
+ type: T,
377
377
  payload: !1
378
378
  });
379
379
  }
380
380
  }, !0);
381
- const x = (P, g) => Ke(P, {
381
+ const $ = (v, T) => xe(v, {
382
382
  state: f,
383
383
  data: p,
384
- args: g,
384
+ args: T,
385
385
  expressionMethods: c
386
- }), k = (P, g) => {
387
- if (!P)
386
+ }), A = (v, T) => {
387
+ if (!v)
388
388
  return;
389
- const w = {
389
+ const F = {
390
390
  state: f,
391
391
  data: p,
392
- args: g,
392
+ args: T,
393
393
  expressionMethods: c
394
394
  };
395
- Z(P, (V) => {
396
- if (!G(V) || Q(V) < 2) {
397
- console.log("execute invalid", V);
395
+ Z(v, (L) => {
396
+ if (!W(L) || Y(L) < 2) {
397
+ console.log("execute invalid", L);
398
398
  return;
399
399
  }
400
- const [ue, D, ...j] = V;
401
- let X;
400
+ const [ue, w, ...j] = L;
401
+ let G;
402
402
  switch (ue) {
403
403
  case "router":
404
- X = m(r, D);
404
+ G = y(a, w);
405
405
  break;
406
406
  case "state":
407
- X = m(C, D);
407
+ G = y(P, w);
408
408
  break;
409
409
  }
410
- if (X)
410
+ if (G)
411
411
  try {
412
- const je = F(j, (rn) => Ke(rn, w));
413
- X(...je);
412
+ const je = R(j, (nn) => xe(nn, F));
413
+ G(...je);
414
414
  } catch (je) {
415
415
  console.log("execute err", je);
416
416
  }
417
417
  });
418
418
  };
419
419
  return Wn({
420
- elementMap: i,
421
- subject$: S,
420
+ elementMap: s,
421
+ subject$: b,
422
422
  sendEvent: h,
423
423
  state: f,
424
- dispatch: b,
424
+ dispatch: C,
425
425
  data: p,
426
426
  requests: e.requests,
427
- sendRequest: T,
428
- executeExp: x,
429
- execute: k
430
- }), a({
427
+ sendRequest: q,
428
+ executeExp: $,
429
+ execute: A
430
+ }), r({
431
431
  sendEvent: h,
432
- sendRequest: T
432
+ sendRequest: q
433
433
  }), () => {
434
- var P;
435
- return l(ie, null, [Q(e.elementConfigs) > 0 && s(e.elementConfigs), (P = t.default) == null ? void 0 : P.call(t)]);
434
+ var v;
435
+ return l(ie, null, [Y(e.elementConfigs) > 0 && d(e.elementConfigs), (v = t.default) == null ? void 0 : v.call(t)]);
436
436
  };
437
437
  }
438
- }), kt = (e) => e.formValueType || e.valueType || "text", le = (e) => {
439
- var t;
440
- return ((t = e.formItemProps) == null ? void 0 : t.name) || e.dataIndex;
441
- }, ze = (e, t) => ae(t) ? m(e, t) : t, Je = (e, t) => {
442
- var s;
443
- const a = kt(t), o = m(e, a);
444
- if (!o)
438
+ }), Rt = (e) => e.formValueType || e.valueType || "text", se = (e) => {
439
+ var o, a;
440
+ const t = (o = e.formItemProps) == null ? void 0 : o.name;
441
+ return ((a = e.inputProps) == null ? void 0 : a.name) || t || e.dataIndex;
442
+ }, Xn = (e, t) => {
443
+ let r = t;
444
+ return ae(t) && (r = y(e, t)), V(r) || (r = y(e, "render")), V(r) ? r : void 0;
445
+ }, Qe = (e, t, r, o) => {
446
+ var b, h, m;
447
+ const a = Xn(t, o == null ? void 0 : o.render);
448
+ if (a)
449
+ return a({
450
+ ...r,
451
+ column: t
452
+ });
453
+ const n = t.valueType || "text", u = y(e, n);
454
+ if (!u)
445
455
  return null;
446
- const r = le(t), n = ((s = t.formFieldProps) == null ? void 0 : s.slots) || {}, u = {}, c = ze(t, t.formReadRender);
447
- !n.renderShow && W(c) && (u.renderShow = (S) => c({
448
- ...S,
449
- column: t
450
- }));
451
- const i = ze(t, t.formRender);
452
- return !n.renderInput && i && (u.renderInput = (S) => i({
453
- ...S,
454
- column: t
455
- })), Pe(o, {
456
- key: r,
457
- name: r,
458
- label: t.title,
459
- ...t.formItemProps,
460
- fieldProps: $(t.formFieldProps, "slots"),
461
- showProps: t.showProps
456
+ const c = ((b = t.props) == null ? void 0 : b.slots) || ((h = t.formFieldProps) == null ? void 0 : h.slots) || {}, s = r || {};
457
+ u.props.showProps && (s.showProps = t.props ? (m = t.props) == null ? void 0 : m.showProps : t.showProps);
458
+ const d = t.props ? {
459
+ ...O(t.props, "slots"),
460
+ ...s
461
+ } : {
462
+ ...O(t.formFieldProps, "slots"),
463
+ ...s
464
+ };
465
+ return Pe(u, {
466
+ ...d
467
+ }, c);
468
+ }, jt = (e, t, r) => {
469
+ var b, h;
470
+ const o = Rt(r), a = y(t, o);
471
+ if (!a)
472
+ return null;
473
+ const n = r.inputProps, u = ((b = n == null ? void 0 : n.fieldProps) == null ? void 0 : b.slots) || ((h = r.formFieldProps) == null ? void 0 : h.slots) || {};
474
+ !u.renderInput && V(r.inputRender) && (u.renderInput = (m) => r.inputRender({
475
+ ...m,
476
+ column: r
477
+ })), u.renderShow || (u.renderShow = (m) => Qe(e, r, {
478
+ value: m.value
462
479
  }, {
480
+ render: "formReadRender"
481
+ }) || m.value);
482
+ const c = se(r), s = r.title, d = n ? {
463
483
  ...n,
464
- ...u
465
- });
466
- }, Ze = (e, t, a) => {
467
- var n;
468
- const o = t.valueType || "text", r = m(e, o);
469
- return r ? Pe(r, {
470
- ...$(t.formFieldProps, "slots"),
471
- showProps: t.showProps,
472
- value: a
473
- }, (n = t.formFieldProps) == null ? void 0 : n.slots) : null;
474
- }, Xn = (e) => e && !W(e) && e.elementType, et = (e, t) => F(t, (a) => Ie(e, a)), Ut = (e, t) => {
484
+ fieldProps: O(n.fieldProps, "slots")
485
+ } : {
486
+ ...r.formItemProps,
487
+ fieldProps: O(r.formFieldProps, "slots"),
488
+ showProps: r.showProps
489
+ };
490
+ return Pe(a, {
491
+ key: c,
492
+ name: c,
493
+ label: s,
494
+ ...d
495
+ }, u);
496
+ }, _n = (e) => e && !V(e) && e.elementType, Je = (e, t) => R(t, (r) => Te(e, r)), kt = (e, t) => {
475
497
  var n;
476
- const a = t.elementProps, o = {
498
+ const r = t.elementProps, o = {
477
499
  ...t.elementProps
478
- }, r = a == null ? void 0 : a.class;
479
- return r && (typeof r == "object" ? o.class = ut(r) : ae(r) && r.indexOf(":") > 0 && (o.class = ut`
480
- ${r}
500
+ }, a = r == null ? void 0 : r.class;
501
+ return a && (typeof a == "object" ? o.class = at(a) : ae(a) && a.indexOf(":") > 0 && (o.class = at`
502
+ ${a}
481
503
  `)), Z((n = t.highConfig$) == null ? void 0 : n.registerPropsTrans, (u) => {
482
- const c = m(a, u.name);
504
+ const c = y(r, u.name);
483
505
  if (!(!c || pe(c))) {
484
- if (G(c)) {
485
- if (fe(c, (i) => pe(i)))
506
+ if (W(c)) {
507
+ if (fe(c, (s) => pe(s)))
486
508
  return;
487
- ce(o, u.name, et(e, c));
509
+ ce(o, u.name, Je(e, c));
488
510
  return;
489
511
  }
490
- !c.elementType || (u.isFun ? ce(o, u.name, (...i) => {
491
- const s = u.needParams ? {
512
+ !c.elementType || (u.isFun ? ce(o, u.name, (...s) => {
513
+ const d = u.needParams ? {
492
514
  ...c.elementProps,
493
- params$: i
515
+ params$: s
494
516
  } : c.elementProps;
495
- return Ie(e, {
517
+ return Te(e, {
496
518
  ...c,
497
- elementProps: s
519
+ elementProps: d
498
520
  });
499
- }) : ce(o, u.name, Ie(e, c)));
521
+ }) : ce(o, u.name, Te(e, c)));
500
522
  }
501
523
  }), o;
502
- }, Bt = (e, t) => {
503
- const a = Q(t.children) > 0 ? et(e, t.children) : void 0, o = t.childrenSlotName || "default", r = $(t.slots, a ? o : "");
504
- return Z(H(r), (n) => {
505
- const u = r[n];
506
- Xn(u) ? r[n] = (...c) => {
507
- const i = u.needParams ? {
524
+ }, Ut = (e, t) => {
525
+ const r = Y(t.children) > 0 ? Je(e, t.children) : void 0, o = t.childrenSlotName || "default", a = O(t.slots, r ? o : "");
526
+ return Z(H(a), (n) => {
527
+ const u = a[n];
528
+ _n(u) ? a[n] = (...c) => {
529
+ const s = u.needParams ? {
508
530
  ...u.elementProps,
509
531
  params$: c
510
532
  } : u.elementProps;
511
- return Ie(e, {
533
+ return Te(e, {
512
534
  ...u,
513
- elementProps: i
535
+ elementProps: s
514
536
  });
515
- } : (ae(u) || St(u)) && (r[n] = () => u);
537
+ } : (ae(u) || bt(u)) && (a[n] = () => u);
516
538
  }), {
517
- [o]: a ? () => a : void 0,
518
- ...r
539
+ [o]: r ? () => r : void 0,
540
+ ...a
519
541
  };
520
- }, Ie = (e, t) => {
521
- const a = m(e, t.elementType) || t.elementType;
542
+ }, Te = (e, t) => {
543
+ const r = y(e, t.elementType) || t.elementType;
522
544
  if (t.highConfig$)
523
- return Pe(Yn, {
545
+ return Pe(Qn, {
524
546
  key: t.elementId,
525
547
  elementMap: e,
526
548
  elementConfig: t
527
549
  });
528
- const o = Bt(e, t), r = Ut(e, t);
529
- return Pe(a, {
550
+ const o = Ut(e, t), a = kt(e, t);
551
+ return Pe(r, {
530
552
  key: t.elementId,
531
- ...r
553
+ ...a
532
554
  }, o);
533
- }, _n = (e) => G(e) ? cn(e) : ae(e) && e.indexOf(".") > 0 ? e.substring(0, e.indexOf(".")) : e, Yn = O({
555
+ }, Yn = (e) => W(e) ? un(e) : ae(e) && e.indexOf(".") > 0 ? e.substring(0, e.indexOf(".")) : e, Qn = D({
534
556
  props: {
535
557
  elementMap: {
536
558
  type: Object
@@ -540,49 +562,49 @@ const Ln = () => ({
540
562
  }
541
563
  },
542
564
  setup: (e) => {
543
- var v;
565
+ var g;
544
566
  const {
545
567
  state: t,
546
- sendEvent: a,
568
+ sendEvent: r,
547
569
  execute: o
548
570
  } = he(), {
549
- elementMap: r,
571
+ elementMap: a,
550
572
  elementConfig: n
551
- } = e, u = n.highConfig$, c = Ut(r, n);
552
- Z((v = n.highConfig$) == null ? void 0 : v.registerEventList, (E) => {
553
- const f = (...b) => {
554
- const d = `${n.elementId}-${E.name}`;
555
- a({
556
- type: d,
557
- payload: b
558
- }), o(E.executeList, b);
559
- }, p = It(E.name, c);
560
- c && Tt(p) && Nt(p, c) && ce(c, p, f);
573
+ } = e, u = n.highConfig$, c = kt(a, n);
574
+ Z((g = n.highConfig$) == null ? void 0 : g.registerEventList, (S) => {
575
+ const f = (...C) => {
576
+ const i = `${n.elementId}-${S.name}`;
577
+ r({
578
+ type: i,
579
+ payload: C
580
+ }), o(S.executeList, C);
581
+ }, p = Et(S.name, c);
582
+ c && Mt(p) && Tt(p, c) && ce(c, p, f);
561
583
  });
562
- const i = N(() => {
563
- if (!u.registerStateList || Q(u.registerStateList) <= 0)
584
+ const s = N(() => {
585
+ if (!u.registerStateList || Y(u.registerStateList) <= 0)
564
586
  return;
565
- const E = {
587
+ const S = {
566
588
  ...c
567
- }, f = Y(u.registerStateList, (b) => !b.target || b.target === "prop"), p = F(f, (b) => {
568
- const d = b.mapName || b.name, C = m(t, b.name);
569
- return ce(E, d, C), _n(d);
589
+ }, f = _(u.registerStateList, (C) => !C.target || C.target === "prop"), p = R(f, (C) => {
590
+ const i = C.mapName || C.name, P = y(t, C.name);
591
+ return ce(S, i, P), Yn(i);
570
592
  });
571
- return z(E, p);
572
- }), s = m(r, n.elementType) || n.elementType, S = Bt(r, n), h = ne(Y(u.registerStateList, (E) => E.target === "slot"), (E, f) => ({
573
- ...E,
574
- [f.mapName]: () => m(t, f.name)
575
- }), {}), y = {
593
+ return z(S, p);
594
+ }), d = y(a, n.elementType) || n.elementType, b = Ut(a, n), h = ne(_(u.registerStateList, (S) => S.target === "slot"), (S, f) => ({
576
595
  ...S,
596
+ [f.mapName]: () => y(t, f.name)
597
+ }), {}), m = {
598
+ ...b,
577
599
  ...h
578
600
  };
579
- return () => m(i.value, "show$") === !1 ? null : Pe(s, {
601
+ return () => y(s.value, "show$") === !1 ? null : Pe(d, {
580
602
  key: n.elementId,
581
603
  ...c,
582
- ...$(i.value, "show$")
583
- }, y);
604
+ ...O(s.value, "show$")
605
+ }, m);
584
606
  }
585
- }), q = {
607
+ }), B = {
586
608
  TypographyKey: "Typography$",
587
609
  LoadingKey: "Loading$",
588
610
  RowKey: "Row$",
@@ -607,12 +629,12 @@ const Ln = () => ({
607
629
  ProListKey: "ProList$"
608
630
  }, J = () => {
609
631
  const { elementMap: e } = ee();
610
- return (t) => m(e, t);
632
+ return (t) => y(e, t);
611
633
  };
612
- function Qn(e) {
634
+ function Jn(e) {
613
635
  return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !pe(e);
614
636
  }
615
- const Jn = () => ({
637
+ const Zn = () => ({
616
638
  row: {
617
639
  type: Object,
618
640
  default: void 0
@@ -623,69 +645,69 @@ const Jn = () => ({
623
645
  items: {
624
646
  type: Array
625
647
  }
626
- }), ge = O({
648
+ }), ge = D({
627
649
  props: {
628
- ...Jn()
650
+ ...Zn()
629
651
  },
630
652
  setup: (e) => {
631
- const t = J(), a = t(q.RowKey), o = t(q.ColKey);
653
+ const t = J(), r = t(B.RowKey), o = t(B.ColKey);
632
654
  return () => {
633
- let r;
634
- return !a || !o ? null : l(a, e.row, Qn(r = F(e.items, (n) => l(o, A({
655
+ let a;
656
+ return !r || !o ? null : l(r, e.row, Jn(a = R(e.items, (n) => l(o, x({
635
657
  key: n.rowKey
636
658
  }, e.col, n.col), {
637
659
  default: () => [n.vNode]
638
- }))) ? r : {
639
- default: () => [r]
660
+ }))) ? a : {
661
+ default: () => [a]
640
662
  });
641
663
  };
642
664
  }
643
- }), Zn = (e, t, a) => {
665
+ }), er = (e, t, r) => {
644
666
  if (t) {
645
- const o = Y(H(t), (r) => !t[r]);
646
- return $(e, o);
667
+ const o = _(H(t), (a) => !t[a]);
668
+ return O(e, o);
647
669
  }
648
- if (a) {
649
- const o = Y(H(a), (r) => !a[r](e));
650
- return $(e, o);
670
+ if (r) {
671
+ const o = _(H(r), (a) => !r[a](e));
672
+ return O(e, o);
651
673
  }
652
674
  return e;
653
- }, qt = (e) => {
675
+ }, Bt = (e) => {
654
676
  if (!!e)
655
- return G(e) ? e : e && ae(e) && e.indexOf(".") > 0 ? ln(e, ".") : [e];
656
- }, Jr = (e, t, a) => !t || !a ? e : F(e, (o) => {
657
- const r = W(a) ? a(o) : m(o, a), n = m(t, r);
658
- return !n || Pt(n) || W(n) || !Ce(n) ? o : sn(o, n, (u, c) => {
659
- if (G(u) || G(c))
677
+ return W(e) ? e : e && ae(e) && e.indexOf(".") > 0 ? cn(e, ".") : [e];
678
+ }, Zr = (e, t, r) => !t || !r ? e : R(e, (o) => {
679
+ const a = V(r) ? r(o) : y(o, r), n = y(t, a);
680
+ return !n || gt(n) || V(n) || !Ce(n) ? o : sn(o, n, (u, c) => {
681
+ if (W(u) || W(c))
660
682
  return c;
661
683
  });
662
684
  }), be = (e, t) => {
663
- const a = ne(
685
+ const r = ne(
664
686
  e,
665
- (o, r) => ({
687
+ (o, a) => ({
666
688
  ...o,
667
- [r]: (...n) => {
689
+ [a]: (...n) => {
668
690
  var u, c;
669
- return (c = (u = t.value) == null ? void 0 : u[r]) == null ? void 0 : c.call(u, ...n);
691
+ return (c = (u = t.value) == null ? void 0 : u[a]) == null ? void 0 : c.call(u, ...n);
670
692
  }
671
693
  }),
672
694
  {}
673
695
  );
674
- return a.originRef = t, a;
675
- }, Zr = (e, t, a) => {
676
- const o = { originRef: e, ...a };
677
- return t && Q(t) > 0 && Z(t, (r) => {
678
- o[r] = (...n) => {
696
+ return r.originRef = t, r;
697
+ }, ea = (e, t, r) => {
698
+ const o = { originRef: e, ...r };
699
+ return t && Y(t) > 0 && Z(t, (a) => {
700
+ o[a] = (...n) => {
679
701
  var u, c;
680
- return (c = (u = e.value) == null ? void 0 : u[r]) == null ? void 0 : c.call(u, ...n);
702
+ return (c = (u = e.value) == null ? void 0 : u[a]) == null ? void 0 : c.call(u, ...n);
681
703
  };
682
704
  }), o;
683
- }, er = (e, t) => m(e, ["extra", t]) || m(e, t), se = (e, t) => {
684
- const a = H(e), o = `${t}-`, r = Y(a, (u) => dn(u, o)), n = z(e, r);
685
- return fn(n, (u, c) => c.replace(o, ""));
686
- }, Vt = Symbol("pro-form-list"), zt = () => ye(Vt), Ht = (e) => {
687
- me(Vt, e);
688
- }, tr = O({
705
+ }, tr = (e, t) => y(e, ["extra", t]) || y(e, t), le = (e, t) => {
706
+ const r = H(e), o = `${t}-`, a = _(r, (u) => ln(u, o)), n = z(e, a);
707
+ return dn(n, (u, c) => c.replace(o, ""));
708
+ }, qt = Symbol("pro-form-list"), Vt = () => ye(qt), zt = (e) => {
709
+ me(qt, e);
710
+ }, nr = D({
689
711
  props: {
690
712
  pathList: {
691
713
  type: Array
@@ -693,13 +715,13 @@ const Jn = () => ({
693
715
  },
694
716
  setup: (e, {
695
717
  slots: t
696
- }) => (Ht({
718
+ }) => (zt({
697
719
  pathList: e.pathList
698
720
  }), () => {
699
- var a;
700
- return (a = t.default) == null ? void 0 : a.call(t);
721
+ var r;
722
+ return (r = t.default) == null ? void 0 : r.call(t);
701
723
  })
702
- }), lt = () => ({
724
+ }), ut = () => ({
703
725
  rowKey: {
704
726
  type: String,
705
727
  default: "id"
@@ -723,90 +745,133 @@ const Jn = () => ({
723
745
  },
724
746
  renderItemMinus: {
725
747
  type: Function
748
+ },
749
+ onPreAdd: {
750
+ type: Function
751
+ },
752
+ onAdd: {
753
+ type: Function
754
+ },
755
+ onPreRemove: {
756
+ type: Function
757
+ },
758
+ onRemove: {
759
+ type: Function
726
760
  }
727
- }), ea = O({
761
+ }), ta = D({
728
762
  props: {
729
- ...lt(),
730
- ...$(ge.props, "items")
763
+ ...ut(),
764
+ ...O(ge.props, "items")
731
765
  },
732
766
  setup: (e, {
733
767
  slots: t
734
768
  }) => {
735
- const o = J()(q.FormItemKey), {
736
- formState: r,
769
+ const o = J()(B.FormItemKey), {
770
+ formState: a,
737
771
  readonly: n,
738
- formElementMap: u
739
- } = Gt(), c = zt(), i = qt(e.name), s = c != null && c.pathList ? [...c.pathList, ...i] : i, [S, h] = $t(), y = () => {
740
- let b = m(r, s);
741
- G(b) || (b = []), b.push({
742
- [e.rowKey]: new Date().valueOf()
743
- }), ce(r, s, b);
744
- }, v = (b) => {
745
- const d = m(r, s);
746
- Q(d) <= 0 || (d.splice(b, 1), h());
747
- }, E = (b, d) => {
748
- const C = le(b);
749
- return C && t[C] ? t[C](b, r, d) : Je(u, b);
750
- }, f = (b) => {
751
- if (!u || Q(e.columns) <= 0)
772
+ elementMap: u,
773
+ formElementMap: c
774
+ } = Wt(), s = Vt(), d = Bt(e.name), b = s != null && s.pathList ? [...s.pathList, ...d] : d, [h, m] = It(), g = () => {
775
+ var E;
776
+ if (((E = e.onPreAdd) == null ? void 0 : E.call(e)) === !0)
777
+ return;
778
+ const P = () => {
779
+ let I = y(a, b);
780
+ W(I) || (I = []), I.push({
781
+ [e.rowKey]: new Date().valueOf()
782
+ }), ce(a, b, I);
783
+ };
784
+ if (e.onAdd) {
785
+ e.onAdd(P);
786
+ return;
787
+ }
788
+ P();
789
+ }, S = (i, P) => {
790
+ var M;
791
+ if (((M = e.onPreRemove) == null ? void 0 : M.call(e, {
792
+ index: i,
793
+ item: P
794
+ })) === !0)
795
+ return;
796
+ const I = () => {
797
+ const k = y(a, b);
798
+ Y(k) <= 0 || (k.splice(i, 1), m());
799
+ };
800
+ if (e.onRemove) {
801
+ e.onRemove(I, {
802
+ index: i,
803
+ item: P
804
+ });
805
+ return;
806
+ }
807
+ I();
808
+ }, f = (i, P) => {
809
+ const E = se(i);
810
+ return E && t[E] ? t[E]({
811
+ item: i,
812
+ formState: a,
813
+ pathList: P
814
+ }) : jt(u, c, i);
815
+ }, p = (i, P) => {
816
+ if (!c || Y(e.columns) <= 0)
752
817
  return null;
753
818
  if (!e.row)
754
- return F(e.columns, (C) => E(C, b));
755
- const d = F(e.columns, (C) => ({
756
- rowKey: le(C),
757
- vNode: E(C, b),
758
- col: m(C, ["extra", "col"])
819
+ return R(e.columns, (I) => f(I, i));
820
+ const E = R(e.columns, (I) => ({
821
+ rowKey: se(I),
822
+ vNode: f(I, i),
823
+ col: y(I, ["extra", "col"])
759
824
  }));
760
825
  return l(ge, {
761
826
  row: e.row,
762
827
  col: e.col,
763
- items: d
828
+ items: E
764
829
  }, null);
765
- }, p = H(lt());
766
- return () => o ? l(o, A({
830
+ }, C = H(ut());
831
+ return () => o ? l(o, x({
767
832
  class: `pro-form-list ${e.inline ? "pro-form-list-inline" : ""}`,
768
833
  name: e.name
769
- }, $(e, p)), {
834
+ }, O(e, C)), {
770
835
  default: () => {
771
- var b, d;
772
- return [F(m(r, s), (C, I) => {
773
- const L = [...s, I];
774
- return l(tr, {
775
- key: C[e.rowKey] + S.value,
776
- pathList: L
836
+ var i, P;
837
+ return [R(y(a, b), (E, I) => {
838
+ const M = [...b, I];
839
+ return l(nr, {
840
+ key: E[e.rowKey] + h.value,
841
+ pathList: M
777
842
  }, {
778
843
  default: () => {
779
- var B, R, M, T, x, k;
844
+ var k, Q, q, $, A, v;
780
845
  return [l("div", {
781
846
  class: "pro-form-list-item"
782
- }, [(B = t.start) == null ? void 0 : B.call(t, {
783
- state: r,
784
- path: s,
847
+ }, [(k = t.start) == null ? void 0 : k.call(t, {
848
+ state: a,
849
+ path: b,
785
850
  index: I
786
- }), f(L), (R = t.default) == null ? void 0 : R.call(t), !n.value && l(ie, null, [l("div", {
851
+ }), p(M), (Q = t.default) == null ? void 0 : Q.call(t), !n.value && l(ie, null, [l("div", {
787
852
  class: "pro-form-list-item-add",
788
- onClick: y
789
- }, [((M = t.itemAdd) == null ? void 0 : M.call(t)) || ((T = e.renderItemAdd) == null ? void 0 : T.call(e))]), l("div", {
853
+ onClick: g
854
+ }, [((q = t.itemAdd) == null ? void 0 : q.call(t)) || (($ = e.renderItemAdd) == null ? void 0 : $.call(e))]), l("div", {
790
855
  class: "pro-form-list-item-minus",
791
- onClick: () => v(I)
792
- }, [((x = t.itemMinus) == null ? void 0 : x.call(t)) || ((k = e.renderItemMinus) == null ? void 0 : k.call(e))])])])];
856
+ onClick: () => S(I, E)
857
+ }, [((A = t.itemMinus) == null ? void 0 : A.call(t)) || ((v = e.renderItemMinus) == null ? void 0 : v.call(e))])])])];
793
858
  }
794
859
  });
795
860
  }), !n.value && l("div", {
796
861
  class: "pro-form-list-add",
797
- onClick: y
798
- }, [((b = t.add) == null ? void 0 : b.call(t)) || ((d = e.renderAdd) == null ? void 0 : d.call(e))])];
862
+ onClick: g
863
+ }, [((i = t.add) == null ? void 0 : i.call(t)) || ((P = e.renderAdd) == null ? void 0 : P.call(e))])];
799
864
  }
800
865
  }) : null;
801
866
  }
802
- }), Wt = Symbol("pro-form"), Gt = () => ye(Wt), nr = (e, t = 300, a) => pt(e, t, a), rr = (e) => {
803
- me(Wt, e);
867
+ }), Ht = Symbol("pro-form"), Wt = () => ye(Ht), rr = (e, t = 300, r) => St(e, t, r), ar = (e) => {
868
+ me(Ht, e);
804
869
  };
805
870
  let te;
806
871
  (function(e) {
807
872
  e.RESET = "RESET", e.SUBMIT = "SUBMIT", e.CONTINUE = "CONTINUE";
808
873
  })(te || (te = {}));
809
- const st = () => ({
874
+ const ct = () => ({
810
875
  clsName: {
811
876
  type: String,
812
877
  default: "pro-form"
@@ -856,45 +921,45 @@ const st = () => ({
856
921
  type: Function,
857
922
  default: void 0
858
923
  }
859
- }), ta = O({
924
+ }), na = D({
860
925
  inheritAttrs: !1,
861
926
  props: {
862
927
  ...ve,
863
- ...st(),
864
- ...$(ge.props, "items")
928
+ ...ct(),
929
+ ...O(ge.props, "items")
865
930
  },
866
931
  setup: (e, {
867
932
  slots: t,
868
- emit: a,
933
+ emit: r,
869
934
  expose: o,
870
- attrs: r
935
+ attrs: a
871
936
  }) => {
872
937
  const {
873
938
  elementMap: n,
874
939
  formElementMap: u
875
- } = ee(), c = e.elementMap || n, i = e.formElementMap || u, s = e.model || Ne({}), S = ke(s, e.showStateRules, e.showState), h = ke(s, e.readonlyStateRules, e.readonlyState), y = ke(s, e.disableStateRules, e.disableState), v = N(() => e.readonly), E = N(() => {
876
- const D = Fe(e.columns, e.columnState, e.columnState2);
877
- return e.convertColumn ? At(D, e.convertColumn) : D;
878
- }), f = (...D) => {
879
- var X;
880
- ((X = e.onPreFinish) == null ? void 0 : X.call(e, ...D)) !== !0 && a("finish", ...D);
881
- }, p = e.debounceSubmit, b = (typeof p == "object" ? p.wait : p) || 300, d = nr((...D) => f(...D), b, p == null ? void 0 : p.options), C = (D) => {
882
- const j = Zn(D, S, e.showStateRules);
883
- p !== void 0 ? d(j, D) : f(j, D);
884
- }, I = _();
885
- o(be(e.formMethods || [], I)), rr({
886
- formState: s,
887
- showState: S,
940
+ } = ee(), c = e.elementMap || n, s = e.formElementMap || u, d = e.model || Ne({}), b = ke(d, e.showStateRules, e.showState), h = ke(d, e.readonlyStateRules, e.readonlyState), m = ke(d, e.disableStateRules, e.disableState), g = N(() => e.readonly), S = N(() => {
941
+ const w = Le(e.columns, e.columnState, e.columnState2);
942
+ return e.convertColumn ? Nt(w, e.convertColumn) : w;
943
+ }), f = (...w) => {
944
+ var G;
945
+ ((G = e.onPreFinish) == null ? void 0 : G.call(e, ...w)) !== !0 && r("finish", ...w);
946
+ }, p = e.debounceSubmit, C = (typeof p == "object" ? p.wait : p) || 300, i = rr((...w) => f(...w), C, p == null ? void 0 : p.options), P = (w) => {
947
+ const j = er(w, b, e.showStateRules);
948
+ p !== void 0 ? i(j, w) : f(j, w);
949
+ }, E = X();
950
+ o(be(e.formMethods || [], E)), ar({
951
+ formState: d,
952
+ showState: b,
888
953
  readonlyState: h,
889
- disableState: y,
954
+ disableState: m,
890
955
  elementMap: c,
891
- formElementMap: i,
892
- readonly: v,
893
- columns: E,
894
- formRef: I,
956
+ formElementMap: s,
957
+ readonly: g,
958
+ columns: S,
959
+ formRef: E,
895
960
  ...e.provideExtra
896
- }), Ht({});
897
- const L = [{
961
+ }), zt({});
962
+ const I = [{
898
963
  value: te.RESET,
899
964
  label: "\u91CD\u7F6E"
900
965
  }, {
@@ -903,85 +968,85 @@ const st = () => ({
903
968
  extraProps: {
904
969
  type: "primary"
905
970
  }
906
- }], B = () => {
907
- var D, j;
908
- if ((D = e.operate) != null && D.onReset) {
971
+ }], M = () => {
972
+ var w, j;
973
+ if ((w = e.operate) != null && w.onReset) {
909
974
  e.operate.onReset({
910
- form: I.value
975
+ form: E.value
911
976
  });
912
977
  return;
913
978
  }
914
- (j = I.value) == null || j.resetFields();
915
- }, R = () => {
916
- var D, j;
917
- if ((D = e.operate) != null && D.onSubmit) {
979
+ (j = E.value) == null || j.resetFields();
980
+ }, k = () => {
981
+ var w, j;
982
+ if ((w = e.operate) != null && w.onSubmit) {
918
983
  e.operate.onSubmit({
919
- form: I.value
984
+ form: E.value
920
985
  });
921
986
  return;
922
987
  }
923
- (j = I.value) == null || j.submit();
924
- }, M = () => {
925
- var D, j;
926
- (j = (D = e.operate) == null ? void 0 : D.onContinue) == null || j.call(D, {
927
- form: I.value
988
+ (j = E.value) == null || j.submit();
989
+ }, Q = () => {
990
+ var w, j;
991
+ (j = (w = e.operate) == null ? void 0 : w.onContinue) == null || j.call(w, {
992
+ form: E.value
928
993
  });
929
- }, T = {
930
- [te.RESET]: B,
931
- [te.SUBMIT]: R,
932
- [te.CONTINUE]: M
933
- }, x = N(() => {
934
- const D = e.operate, j = (D == null ? void 0 : D.items) || L;
935
- return F(j, (X) => !X.onClick && !m(D == null ? void 0 : D.itemState, [X.value, "onClick"]) ? {
936
- ...X,
937
- onClick: m(T, X.value)
938
- } : X);
939
- }), k = N(() => {
940
- var D;
994
+ }, q = {
995
+ [te.RESET]: M,
996
+ [te.SUBMIT]: k,
997
+ [te.CONTINUE]: Q
998
+ }, $ = N(() => {
999
+ const w = e.operate, j = (w == null ? void 0 : w.items) || I;
1000
+ return R(j, (G) => !G.onClick && !y(w == null ? void 0 : w.itemState, [G.value, "onClick"]) ? {
1001
+ ...G,
1002
+ onClick: y(q, G.value)
1003
+ } : G);
1004
+ }), A = N(() => {
1005
+ var w;
941
1006
  return {
942
1007
  [te.SUBMIT]: {
943
1008
  value: te.SUBMIT,
944
1009
  loading: e.submitLoading
945
1010
  },
946
- ...(D = e.operate) == null ? void 0 : D.itemState
1011
+ ...(w = e.operate) == null ? void 0 : w.itemState
947
1012
  };
948
- }), P = (D) => {
949
- const j = le(D);
950
- return j && t[j] ? t[j](D, s) : Je(i, D);
951
- }, g = N(() => {
952
- const D = Y(E.value, (j) => {
953
- const X = le(j);
954
- return !!m(S, X, !0);
1013
+ }), v = (w) => {
1014
+ const j = se(w);
1015
+ return j && t[j] ? t[j](w, d) : jt(c, s, w);
1016
+ }, T = N(() => {
1017
+ const w = _(S.value, (j) => {
1018
+ const G = se(j);
1019
+ return !!y(b, G, !0);
955
1020
  });
956
- return e.row ? F(D, (j) => ({
957
- rowKey: le(j),
958
- vNode: P(j),
959
- col: m(j, ["extra", "col"])
960
- })) : F(D, (j) => P(j));
961
- }), w = [...H(st()), ...H(ve)], V = H($(ge.props, "items")), ue = m(n, q.FormKey);
962
- return () => ue ? l(ue, A({
963
- ref: I,
1021
+ return e.row ? R(w, (j) => ({
1022
+ rowKey: se(j),
1023
+ vNode: v(j),
1024
+ col: y(j, ["extra", "col"])
1025
+ })) : R(w, (j) => v(j));
1026
+ }), F = [...H(ct()), ...H(ve)], L = H(O(ge.props, "items")), ue = y(n, B.FormKey);
1027
+ return () => ue ? l(ue, x({
1028
+ ref: E,
964
1029
  class: e.clsName
965
- }, $(r, "onFinish"), $(e, ...w, ...V, "onFinish", "operate"), {
966
- model: s,
967
- onFinish: C
1030
+ }, O(a, "onFinish"), O(e, ...F, ...L, "onFinish", "operate"), {
1031
+ model: d,
1032
+ onFinish: P
968
1033
  }), {
969
1034
  default: () => {
970
- var D, j, X;
971
- return [(D = t.start) == null ? void 0 : D.call(t), i && Q(E.value) > 0 && l(ie, null, [e.row ? l(ge, {
1035
+ var w, j, G;
1036
+ return [(w = t.start) == null ? void 0 : w.call(t), s && Y(S.value) > 0 && l(ie, null, [e.row ? l(ge, {
972
1037
  row: e.row,
973
1038
  col: e.col,
974
- items: g.value
975
- }, null) : g.value]), (j = t.default) == null ? void 0 : j.call(t), e.operate && l(Jt, A({
1039
+ items: T.value
1040
+ }, null) : T.value]), (j = t.default) == null ? void 0 : j.call(t), e.operate && l(Qt, x({
976
1041
  class: `${e.clsName}-operate`
977
- }, $(e.operate, "items", "itemState", "onReset", "onSubmit", "onContinue"), {
978
- items: x.value,
979
- itemState: k.value
980
- }), null), (X = t.end) == null ? void 0 : X.call(t)];
1042
+ }, O(e.operate, "items", "itemState", "onReset", "onSubmit", "onContinue"), {
1043
+ items: $.value,
1044
+ itemState: A.value
1045
+ }), null), (G = t.end) == null ? void 0 : G.call(t)];
981
1046
  }
982
1047
  }) : null;
983
1048
  }
984
- }), na = {
1049
+ }), ra = {
985
1050
  text: "\u8BF7\u8F93\u5165",
986
1051
  digit: "\u8BF7\u8F93\u5165",
987
1052
  select: "\u8BF7\u9009\u62E9",
@@ -993,18 +1058,18 @@ const st = () => ({
993
1058
  date: "\u8BF7\u9009\u62E9",
994
1059
  time: "\u8BF7\u9009\u62E9"
995
1060
  };
996
- let Le;
1061
+ let Ke;
997
1062
  (function(e) {
998
1063
  e.AUTO = "AUTO", e.MANUAL = "MANUAL";
999
- })(Le || (Le = {}));
1000
- const it = () => ({
1064
+ })(Ke || (Ke = {}));
1065
+ const st = () => ({
1001
1066
  initEmit: {
1002
1067
  type: Boolean,
1003
1068
  default: !0
1004
1069
  },
1005
1070
  searchMode: {
1006
1071
  type: String,
1007
- default: Le.AUTO
1072
+ default: Ke.AUTO
1008
1073
  },
1009
1074
  debounceKeys: {
1010
1075
  type: Array
@@ -1017,9 +1082,9 @@ const it = () => ({
1017
1082
  type: Number,
1018
1083
  default: 800
1019
1084
  }
1020
- }), ra = O({
1085
+ }), aa = D({
1021
1086
  props: {
1022
- ...it(),
1087
+ ...st(),
1023
1088
  needRules: {
1024
1089
  type: Boolean,
1025
1090
  default: !1
@@ -1027,46 +1092,46 @@ const it = () => ({
1027
1092
  },
1028
1093
  setup: (e, {
1029
1094
  slots: t,
1030
- expose: a
1095
+ expose: r
1031
1096
  }) => {
1032
- const r = J()(q.ProFormKey), n = e.model || Ne({}), u = new Set(e.debounceTypes), c = F(Y(e.columns, (f) => {
1033
- const p = kt(f);
1097
+ const a = J()(B.ProFormKey), n = e.model || Ne({}), u = new Set(e.debounceTypes), c = R(_(e.columns, (f) => {
1098
+ const p = Rt(f);
1034
1099
  return u.has(p);
1035
- }), (f) => le(f)), i = N(() => F(e.columns, (f) => ({
1100
+ }), (f) => se(f)), s = N(() => R(e.columns, (f) => ({
1036
1101
  ...f,
1037
- formItemProps: $(f.formItemProps, "required")
1038
- }))), s = _(), S = e.formMethods || [];
1039
- a(be(S, s));
1102
+ formItemProps: O(f.formItemProps, "required")
1103
+ }))), d = X(), b = e.formMethods || [];
1104
+ r(be(b, d));
1040
1105
  const h = () => {
1041
1106
  var f;
1042
- (f = s.value) == null || f.submit();
1043
- }, y = pt(() => {
1107
+ (f = d.value) == null || f.submit();
1108
+ }, m = St(() => {
1044
1109
  h();
1045
1110
  }, e.debounceTime);
1046
1111
  oe(() => {
1047
1112
  e.initEmit && h();
1048
1113
  }, []);
1049
- const v = (f, p, b) => fe(b, (d) => m(f, d) !== m(p, d));
1050
- Ot((f, p) => {
1051
- if (e.searchMode !== Le.AUTO)
1114
+ const g = (f, p, C) => fe(C, (i) => y(f, i) !== y(p, i));
1115
+ At((f, p) => {
1116
+ if (e.searchMode !== Ke.AUTO)
1052
1117
  return;
1053
- const b = Q(e.debounceKeys) > 0 ? e.debounceKeys : c;
1054
- if (Q(b) > 0 && v(f, p, b)) {
1055
- y();
1118
+ const C = Y(e.debounceKeys) > 0 ? e.debounceKeys : c;
1119
+ if (Y(C) > 0 && g(f, p, C)) {
1120
+ m();
1056
1121
  return;
1057
1122
  }
1058
1123
  h();
1059
- }, () => mn(n));
1060
- const E = H(it());
1061
- return () => r ? l(r, A({
1062
- ref: s,
1124
+ }, () => fn(n));
1125
+ const S = H(st());
1126
+ return () => a ? l(a, x({
1127
+ ref: d,
1063
1128
  class: "pro-search-form"
1064
- }, $(e, E, "columns"), {
1065
- columns: i.value,
1129
+ }, O(e, S, "columns"), {
1130
+ columns: s.value,
1066
1131
  model: n
1067
1132
  }), t) : null;
1068
1133
  }
1069
- }), dt = () => ({
1134
+ }), lt = () => ({
1070
1135
  readonly: {
1071
1136
  type: Boolean,
1072
1137
  default: void 0
@@ -1080,15 +1145,15 @@ const it = () => ({
1080
1145
  slots: {
1081
1146
  type: Object
1082
1147
  }
1083
- }), aa = (e, t) => ({
1084
- InputComp: a,
1148
+ }), oa = (e, t) => ({
1149
+ InputComp: r,
1085
1150
  valueType: o,
1086
- name: r
1087
- }) => O({
1088
- name: r,
1151
+ name: a
1152
+ }) => D({
1153
+ name: a,
1089
1154
  props: {
1090
1155
  ...e.props,
1091
- ...dt()
1156
+ ...lt()
1092
1157
  },
1093
1158
  setup: (n, {
1094
1159
  slots: u
@@ -1096,110 +1161,106 @@ const it = () => ({
1096
1161
  const {
1097
1162
  formExtraMap: c
1098
1163
  } = ee(), {
1099
- formState: i,
1100
- readonlyState: s,
1101
- disableState: S,
1102
- readonly: h,
1103
- elementMap: y
1104
- } = Gt(), v = zt(), E = N(() => Ee(n.readonly) ? n.readonly : Ee(s[n.name]) ? s[n.name] : h.value), f = () => `${m(c == null ? void 0 : c.rulePrefixMap, o) || "\u8BF7\u8F93\u5165"}${n.label || ""}`, p = N(() => c != null && c.rulePrefixMap ? n.required === !0 && !n.rules ? [{
1164
+ formState: s,
1165
+ readonlyState: d,
1166
+ disableState: b,
1167
+ readonly: h
1168
+ } = Wt(), m = Vt(), g = N(() => Ee(n.readonly) ? n.readonly : Ee(d[n.name]) ? d[n.name] : h.value), S = () => `${y(c == null ? void 0 : c.rulePrefixMap, o) || "\u8BF7\u8F93\u5165"}${n.label || ""}`, f = N(() => c != null && c.rulePrefixMap ? n.required === !0 && !n.rules ? [{
1105
1169
  required: !0,
1106
- message: f()
1107
- }] : n.rules ? F(n.rules, (R) => (R.required && !R.message && (R.message = f()), R)) : n.rules : n.rules), b = qt(n.name), d = v != null && v.pathList ? [...v.pathList, ...b] : b, C = (R) => {
1108
- ce(i, d, R);
1109
- }, I = H(dt()), L = () => {
1110
- const R = m(i, d);
1111
- if (u.renderShow)
1112
- return u.renderShow({
1113
- value: R,
1114
- record: i
1115
- });
1116
- const M = m(y, o);
1117
- return M ? l(M, A({
1118
- value: R
1119
- }, n.fieldProps, {
1120
- showProps: n.showProps
1121
- }), u) : l("span", null, [R]);
1122
- }, B = () => {
1123
- const R = m(i, d), M = m(S, d);
1170
+ message: S()
1171
+ }] : n.rules ? R(n.rules, (M) => (M.required && !M.message && (M.message = S()), M)) : n.rules : n.rules), p = Bt(n.name), C = m != null && m.pathList ? [...m.pathList, ...p] : p, i = (M) => {
1172
+ ce(s, C, M);
1173
+ }, P = H(lt()), E = () => {
1174
+ const M = y(s, C);
1175
+ return u.renderShow ? u.renderShow({
1176
+ value: M,
1177
+ record: s,
1178
+ path: C
1179
+ }) : l("span", null, [M]);
1180
+ }, I = () => {
1181
+ const M = y(s, C), k = y(b, C);
1124
1182
  return u.renderInput ? u.renderInput({
1125
- value: R,
1126
- setValue: C,
1127
- disabled: M,
1128
- record: i
1129
- }) : l(a, A(t(R, C, M), n.fieldProps), u);
1183
+ value: M,
1184
+ setValue: i,
1185
+ disabled: k,
1186
+ record: s,
1187
+ path: C
1188
+ }) : l(r, x(t(M, i, k), n.fieldProps), u);
1130
1189
  };
1131
- return () => l(e, A($(n, ...I, "name", "rules"), {
1132
- name: d,
1133
- rules: p.value
1190
+ return () => l(e, x({
1191
+ class: "pro-form-item"
1192
+ }, O(n, ...P, "name", "rules"), {
1193
+ name: C,
1194
+ rules: f.value
1134
1195
  }), {
1135
- default: () => [E.value ? L() : B()],
1196
+ default: () => [g.value ? E() : I()],
1136
1197
  ...n.slots
1137
1198
  });
1138
1199
  }
1139
- }), Xt = xn("access", void 0, !0), ar = () => {
1140
- const [e, t] = Xt();
1200
+ }), Gt = Fn("access", void 0, !0), or = () => {
1201
+ const [e, t] = Gt();
1141
1202
  return { access: e, setAccess: t, delAccess: () => {
1142
1203
  t(void 0);
1143
1204
  } };
1144
- }, oa = () => {
1145
- const [e, t] = Xt();
1205
+ }, ua = () => {
1206
+ const [e, t] = Gt();
1146
1207
  return [e, t, () => {
1147
1208
  t(void 0);
1148
1209
  }];
1149
- }, _t = Symbol("logon-user"), or = () => ye(_t), ua = O((e, { slots: t }) => {
1150
- const [a, o] = rt(), [r, n] = rt();
1151
- return me(_t, { user: a, setUser: o, per: r, setPer: n, opts: {} }), () => {
1210
+ }, Xt = Symbol("logon-user"), ur = () => ye(Xt), ca = D((e, { slots: t }) => {
1211
+ const [r, o] = tt(), [a, n] = tt();
1212
+ return me(Xt, { user: r, setUser: o, per: a, setPer: n, opts: {} }), () => {
1152
1213
  var c;
1153
1214
  return (c = t.default) == null ? void 0 : c.call(t);
1154
1215
  };
1155
- }), ca = O((e, { slots: t, emit: a }) => {
1156
- const { access: o } = ar(), r = N(() => o && o.token);
1216
+ }), sa = D((e, { slots: t, emit: r }) => {
1217
+ const { access: o } = or(), a = N(() => o && o.token);
1157
1218
  return oe(() => {
1158
- r.value || a("toLogin");
1159
- }, r), () => {
1219
+ a.value || r("toLogin");
1220
+ }, a), () => {
1160
1221
  var n;
1161
- return r.value ? (n = t.default) == null ? void 0 : n.call(t) : null;
1222
+ return a.value ? (n = t.default) == null ? void 0 : n.call(t) : null;
1162
1223
  };
1163
1224
  }), la = {
1164
1225
  Add: "add",
1165
1226
  Edit: "edit",
1166
1227
  Delete: "delete"
1167
- }, ur = (e, t) => !e || !t ? !1 : G(t) ? fe(t, (a) => e[a]) : e[t], Yt = () => {
1168
- const { per: e } = or() || { per: { menus: [], buttonMap: {} } }, t = _e();
1169
- return (a, o) => {
1170
- if (!a)
1228
+ }, cr = (e, t) => !e || !t ? !1 : W(t) ? fe(t, (r) => e[r]) : e[t], _t = () => {
1229
+ const { per: e } = ur() || { per: { menus: [], buttonMap: {} } }, t = Xe();
1230
+ return (r, o) => {
1231
+ if (!r)
1171
1232
  return !1;
1172
- let r = a;
1233
+ let a = r;
1173
1234
  if (o != null && o.suffix) {
1174
1235
  const n = t.name ? t.name.toString() : "", u = (o == null ? void 0 : o.splitStr) || "_";
1175
- r = G(r) ? F(r, (c) => `${n}${u}${c}`) : `${n}${u}${r}`;
1236
+ a = W(a) ? R(a, (c) => `${n}${u}${c}`) : `${n}${u}${a}`;
1176
1237
  }
1177
- return ur(e.buttonMap, r);
1238
+ return cr(e.buttonMap, a);
1178
1239
  };
1179
- }, Qt = () => {
1180
- const e = Yt();
1181
- return (t, a, o) => t ? e(t) : a ? e(a, { suffix: !0, splitStr: o }) : !0;
1182
- }, cr = () => ({
1240
+ }, Yt = () => {
1241
+ const e = _t();
1242
+ return (t, r, o) => t ? e(t) : r ? e(r, { suffix: !0, splitStr: o }) : !0;
1243
+ }, sr = () => ({
1183
1244
  suffix: { type: [String, Array] },
1184
1245
  value: { type: [String, Array] },
1185
1246
  splitStr: { type: String }
1186
- }), sa = O({
1247
+ }), ia = D({
1187
1248
  inheritAttrs: !1,
1188
1249
  props: {
1189
- ...cr()
1250
+ ...sr()
1190
1251
  },
1191
1252
  setup: (e, { slots: t }) => {
1192
- const a = Yt(), o = N(() => e.value ? a(e.value) : e.suffix ? a(e.suffix, { suffix: !0, splitStr: e.splitStr }) : !1);
1253
+ const r = _t(), o = N(() => e.value ? r(e.value) : e.suffix ? r(e.suffix, { suffix: !0, splitStr: e.splitStr }) : !1);
1193
1254
  return () => {
1194
- var r;
1195
- return o.value ? (r = t.default) == null ? void 0 : r.call(t) : null;
1255
+ var a;
1256
+ return o.value ? (a = t.default) == null ? void 0 : a.call(t) : null;
1196
1257
  };
1197
1258
  }
1198
1259
  });
1199
1260
  function lr(e) {
1200
1261
  return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !pe(e);
1201
1262
  }
1202
- const sr = () => ({
1263
+ const ir = () => ({
1203
1264
  clsName: {
1204
1265
  type: String,
1205
1266
  default: "pro-operate"
@@ -1212,48 +1273,48 @@ const sr = () => ({
1212
1273
  },
1213
1274
  elementKey: {
1214
1275
  type: String,
1215
- default: q.ButtonKey
1276
+ default: B.ButtonKey
1216
1277
  },
1217
1278
  splitStr: {
1218
1279
  type: String
1219
1280
  }
1220
- }), Jt = O({
1281
+ }), Qt = D({
1221
1282
  props: {
1222
- ...sr()
1283
+ ...ir()
1223
1284
  },
1224
1285
  setup: (e, {
1225
1286
  slots: t
1226
1287
  }) => {
1227
- const a = Qt(), o = N(() => {
1228
- const c = Y(e.items, (s) => a(s.per, s.perSuffix, e.splitStr) ? W(s.show) ? s.show() : Ee(s.show) ? s.show : !0 : !1), i = F(c, (s) => We(e.itemState, s.value) ? {
1229
- ...s,
1230
- ...m(e.itemState, s.value)
1231
- } : s);
1232
- return Ct(i, (s) => s.sort);
1233
- }), r = (c) => {
1234
- var i;
1235
- (i = c.onClick) == null || i.call(c, c.value);
1288
+ const r = Yt(), o = N(() => {
1289
+ const c = _(e.items, (d) => r(d.per, d.perSuffix, e.splitStr) ? V(d.show) ? d.show() : Ee(d.show) ? d.show : !0 : !1), s = R(c, (d) => He(e.itemState, d.value) ? {
1290
+ ...d,
1291
+ ...y(e.itemState, d.value)
1292
+ } : d);
1293
+ return Pt(s, (d) => d.sort);
1294
+ }), a = (c) => {
1295
+ var s;
1296
+ (s = c.onClick) == null || s.call(c, c.value);
1236
1297
  }, n = J(), u = e.elementKey ? n(e.elementKey) : void 0;
1237
1298
  return () => l("div", {
1238
1299
  class: e.clsName
1239
- }, [F(o.value, (c) => {
1240
- const i = W(c.disabled) ? c.disabled() : c.disabled, s = W(c.loading) ? c.loading() : c.loading, S = W(c.label) ? c.label() : c.label, h = W(c.extraProps) ? c.extraProps() : c.extraProps, y = {
1241
- ...$(c, "show", "disabled", "element"),
1242
- disabled: i
1300
+ }, [R(o.value, (c) => {
1301
+ const s = V(c.disabled) ? c.disabled() : c.disabled, d = V(c.loading) ? c.loading() : c.loading, b = V(c.label) ? c.label() : c.label, h = V(c.extraProps) ? c.extraProps() : c.extraProps, m = {
1302
+ ...O(c, "show", "disabled", "element"),
1303
+ disabled: s
1243
1304
  };
1244
- return c.element && W(c.element) ? c.element(y) : t[c.value] ? t[c.value](y) : u ? l(u, A({
1245
- disabled: i,
1246
- loading: s,
1247
- onClick: () => r(c)
1248
- }, h), lr(S) ? S : {
1249
- default: () => [S]
1305
+ return c.element && V(c.element) ? c.element(m) : t[c.value] ? t[c.value](m) : u ? l(u, x({
1306
+ disabled: s,
1307
+ loading: d,
1308
+ onClick: () => a(c)
1309
+ }, h), lr(b) ? b : {
1310
+ default: () => [b]
1250
1311
  }) : l("div", {
1251
1312
  class: `${e.clsName}-item`,
1252
- onClick: () => r(c)
1253
- }, [S]);
1313
+ onClick: () => a(c)
1314
+ }, [b]);
1254
1315
  })]);
1255
1316
  }
1256
- }), ir = () => ({
1317
+ }), dr = () => ({
1257
1318
  clsName: {
1258
1319
  type: String,
1259
1320
  default: "pro-table-toolbar-column"
@@ -1274,105 +1335,105 @@ const sr = () => ({
1274
1335
  type: Function,
1275
1336
  default: () => "\u5217\u8BBE\u7F6E"
1276
1337
  }
1277
- }), dr = O({
1338
+ }), fr = D({
1278
1339
  props: {
1279
- ...ir()
1340
+ ...dr()
1280
1341
  },
1281
1342
  setup: (e, {
1282
1343
  slots: t
1283
1344
  }) => {
1284
- const a = J(), o = a(q.PopoverKey), r = a(q.CheckboxKey), {
1345
+ const r = J(), o = r(B.PopoverKey), a = r(B.CheckboxKey), {
1285
1346
  originColumns: n,
1286
1347
  selectIdsRef: u
1287
- } = fr(), [c, i] = $t();
1288
- let s = {};
1289
- const S = (d) => {
1290
- s[d] = !1;
1348
+ } = mr(), [c, s] = It();
1349
+ let d = {};
1350
+ const b = (i) => {
1351
+ d[i] = !1;
1291
1352
  }, h = () => {
1292
- Z(u.value, (d) => {
1293
- s[d] = !0;
1353
+ Z(u.value, (i) => {
1354
+ d[i] = !0;
1294
1355
  });
1295
- }, y = N(() => ne(u.value, (d, C) => ({
1296
- ...d,
1297
- [C]: !0
1298
- }), {})), v = (d) => er(d, e.signName);
1356
+ }, m = N(() => ne(u.value, (i, P) => ({
1357
+ ...i,
1358
+ [P]: !0
1359
+ }), {})), g = (i) => tr(i, e.signName);
1299
1360
  oe(() => {
1300
- u.value = F(Y(n.value, (d) => {
1301
- var C;
1302
- return e.useSelectedStatus && We(s, d.dataIndex) ? s[d.dataIndex] : ((C = v(d)) == null ? void 0 : C.initShow) !== !1;
1303
- }), (d) => d.dataIndex);
1304
- }, n), Ot(() => {
1305
- var d;
1306
- i(), h(), (d = e.onColumnSelectChange) == null || d.call(e, u.value);
1361
+ u.value = R(_(n.value, (i) => {
1362
+ var P;
1363
+ return e.useSelectedStatus && He(d, i.dataIndex) ? d[i.dataIndex] : ((P = g(i)) == null ? void 0 : P.initShow) !== !1;
1364
+ }), (i) => i.dataIndex);
1365
+ }, n), At(() => {
1366
+ var i;
1367
+ s(), h(), (i = e.onColumnSelectChange) == null || i.call(e, u.value);
1307
1368
  }, u);
1308
- const E = N(() => {
1309
- const d = yn(n.value, (I) => {
1310
- var L;
1311
- return (L = v(I)) != null && L.disabled ? !0 : m(y.value, I.dataIndex);
1312
- }), C = fe(n.value, (I) => {
1313
- var L;
1314
- return (L = v(I)) != null && L.disabled ? !0 : m(y.value, I.dataIndex);
1369
+ const S = N(() => {
1370
+ const i = mn(n.value, (E) => {
1371
+ var I;
1372
+ return (I = g(E)) != null && I.disabled ? !0 : y(m.value, E.dataIndex);
1373
+ }), P = fe(n.value, (E) => {
1374
+ var I;
1375
+ return (I = g(E)) != null && I.disabled ? !0 : y(m.value, E.dataIndex);
1315
1376
  });
1316
1377
  return {
1317
- checked: d,
1318
- indeterminate: d ? !1 : C
1378
+ checked: i,
1379
+ indeterminate: i ? !1 : P
1319
1380
  };
1320
- }), f = (d) => {
1321
- var I;
1322
- (Ce(d) ? (I = d.target) == null ? void 0 : I.checked : d) ? u.value = F(n.value, (L) => L.dataIndex) : u.value = F(Y(n.value, (L) => {
1323
- var B;
1324
- return (B = v(L)) != null && B.disabled ? !0 : (S(L.dataIndex), !1);
1325
- }), (L) => L.dataIndex);
1381
+ }), f = (i) => {
1382
+ var E;
1383
+ (Ce(i) ? (E = i.target) == null ? void 0 : E.checked : i) ? u.value = R(n.value, (I) => I.dataIndex) : u.value = R(_(n.value, (I) => {
1384
+ var M;
1385
+ return (M = g(I)) != null && M.disabled ? !0 : (b(I.dataIndex), !1);
1386
+ }), (I) => I.dataIndex);
1326
1387
  }, p = () => {
1327
- u.value = F(Y(n.value, (d) => {
1328
- var C;
1329
- return ((C = v(d)) == null ? void 0 : C.initShow) === !1 ? (S(d.dataIndex), !1) : !0;
1330
- }), (d) => d.dataIndex);
1331
- }, b = (d, C) => {
1332
- var L;
1333
- (Ce(C) ? (L = C.target) == null ? void 0 : L.checked : C) ? u.value = [...u.value, d.dataIndex] : u.value = Y(u.value, (B) => d.dataIndex === B ? (S(d.dataIndex), !1) : !0);
1388
+ u.value = R(_(n.value, (i) => {
1389
+ var P;
1390
+ return ((P = g(i)) == null ? void 0 : P.initShow) === !1 ? (b(i.dataIndex), !1) : !0;
1391
+ }), (i) => i.dataIndex);
1392
+ }, C = (i, P) => {
1393
+ var I;
1394
+ (Ce(P) ? (I = P.target) == null ? void 0 : I.checked : P) ? u.value = [...u.value, i.dataIndex] : u.value = _(u.value, (M) => i.dataIndex === M ? (b(i.dataIndex), !1) : !0);
1334
1395
  };
1335
- return () => o ? l(o, A({
1396
+ return () => o ? l(o, x({
1336
1397
  trigger: "click"
1337
1398
  }, e.popoverProps), {
1338
1399
  default: () => {
1339
- var d, C;
1340
- return [((d = t.default) == null ? void 0 : d.call(t)) || ((C = e.renderDom) == null ? void 0 : C.call(e))];
1400
+ var i, P;
1401
+ return [((i = t.default) == null ? void 0 : i.call(t)) || ((P = e.renderDom) == null ? void 0 : P.call(e))];
1341
1402
  },
1342
1403
  content: () => l("div", {
1343
1404
  class: `${e.clsName}`
1344
1405
  }, [l("div", {
1345
1406
  class: `${e.clsName}-header`
1346
- }, [l(r, {
1407
+ }, [l(a, {
1347
1408
  key: c.value,
1348
- checked: E.value.checked,
1349
- indeterminate: E.value.indeterminate,
1409
+ checked: S.value.checked,
1410
+ indeterminate: S.value.indeterminate,
1350
1411
  onChange: f
1351
1412
  }, {
1352
- default: () => [nt("\u5217\u5C55\u793A")]
1413
+ default: () => [et("\u5217\u5C55\u793A")]
1353
1414
  }), l("a", {
1354
1415
  onClick: p
1355
- }, [nt("\u91CD\u7F6E")])]), l("div", {
1416
+ }, [et("\u91CD\u7F6E")])]), l("div", {
1356
1417
  key: c.value,
1357
1418
  class: `${e.clsName}-list`
1358
- }, [F(n.value, (d) => {
1359
- const C = v(d), I = m(y.value, d.dataIndex, !1);
1360
- return l(r, {
1361
- checked: I,
1362
- disabled: C == null ? void 0 : C.disabled,
1363
- onChange: (L) => {
1364
- b(d, L);
1419
+ }, [R(n.value, (i) => {
1420
+ const P = g(i), E = y(m.value, i.dataIndex, !1);
1421
+ return l(a, {
1422
+ checked: E,
1423
+ disabled: P == null ? void 0 : P.disabled,
1424
+ onChange: (I) => {
1425
+ C(i, I);
1365
1426
  }
1366
1427
  }, {
1367
- default: () => [d.title]
1428
+ default: () => [i.title]
1368
1429
  });
1369
1430
  })])]),
1370
- ...$(t, "default")
1431
+ ...O(t, "default")
1371
1432
  }) : null;
1372
1433
  }
1373
- }), Zt = Symbol("pro-table"), fr = () => ye(Zt), mr = (e) => {
1374
- me(Zt, e);
1375
- }, ft = () => ({
1434
+ }), Jt = Symbol("pro-table"), mr = () => ye(Jt), yr = (e) => {
1435
+ me(Jt, e);
1436
+ }, it = () => ({
1376
1437
  clsName: {
1377
1438
  type: String,
1378
1439
  default: "pro-table"
@@ -1406,148 +1467,153 @@ const sr = () => ({
1406
1467
  },
1407
1468
  tableMethods: {
1408
1469
  type: Array
1470
+ },
1471
+ mergeOpts: {
1472
+ type: Object
1473
+ },
1474
+ dataSource: {
1475
+ type: Array
1409
1476
  }
1410
- }), ia = O({
1477
+ }), da = D({
1411
1478
  inheritAttrs: !1,
1412
1479
  props: {
1413
1480
  ...ve,
1414
- ...ft()
1481
+ ...it()
1415
1482
  },
1416
1483
  setup: (e, {
1417
1484
  slots: t,
1418
- expose: a,
1485
+ expose: r,
1419
1486
  attrs: o
1420
1487
  }) => {
1421
1488
  const {
1422
- elementMap: r
1423
- } = ee(), n = e.elementMap || r, u = m(r, q.TableKey), c = () => ({
1489
+ elementMap: a
1490
+ } = ee(), n = e.elementMap || a, u = y(a, B.TableKey), c = () => ({
1424
1491
  title: "\u5E8F\u53F7",
1425
1492
  dataIndex: "serialNumber",
1426
1493
  width: 80,
1427
1494
  ...e.column,
1428
1495
  ...Ee(e.serialNumber) ? void 0 : e.serialNumber,
1429
1496
  customRender: ({
1430
- index: M
1497
+ index: $
1431
1498
  }) => {
1432
- var T, x;
1433
- return ((T = e.paginationState) == null ? void 0 : T.page) && ((x = e.paginationState) == null ? void 0 : x.pageSize) ? e.paginationState.pageSize * (e.paginationState.page - 1) + M + 1 : M + 1;
1499
+ var A, v;
1500
+ return ((A = e.paginationState) == null ? void 0 : A.page) && ((v = e.paginationState) == null ? void 0 : v.pageSize) ? e.paginationState.pageSize * (e.paginationState.page - 1) + $ + 1 : $ + 1;
1434
1501
  }
1435
- }), i = (M, T) => {
1436
- var x;
1437
- if (e.operateItemClickMap && e.operateItemClickMap[T.value]) {
1438
- e.operateItemClickMap[T.value](M, T);
1502
+ }), s = ($, A) => {
1503
+ var v;
1504
+ if (e.operateItemClickMap && e.operateItemClickMap[A.value]) {
1505
+ e.operateItemClickMap[A.value]($, A);
1439
1506
  return;
1440
1507
  }
1441
- (x = T.onClick) == null || x.call(T, M);
1442
- }, s = se(t, "operate"), S = () => {
1443
- const M = e.operate, T = F(M.items, (x) => ({
1444
- ...m(e.operateItemState, x.value),
1445
- ...x,
1446
- ...m(M.itemState, x.value)
1508
+ (v = A.onClick) == null || v.call(A, $);
1509
+ }, d = le(t, "operate"), b = () => {
1510
+ const $ = e.operate, A = R($.items, (v) => ({
1511
+ ...y(e.operateItemState, v.value),
1512
+ ...v,
1513
+ ...y($.itemState, v.value)
1447
1514
  }));
1448
1515
  return {
1449
1516
  ...e.column,
1450
1517
  title: "\u64CD\u4F5C",
1451
1518
  dataIndex: "operate",
1452
1519
  fixed: "right",
1453
- ...M.column,
1520
+ ...$.column,
1454
1521
  customRender: ({
1455
- record: x
1522
+ record: v
1456
1523
  }) => {
1457
- const k = F(T, (g) => ({
1458
- ...g,
1459
- show: W(g.show) ? g.show(x) : g.show,
1460
- disabled: W(g.disabled) ? g.disabled(x) : g.disabled,
1461
- loading: W(g.loading) ? g.loading(x) : g.loading,
1462
- extraProps: W(g.extraProps) ? g.extraProps(x) : g.extraProps,
1463
- element: W(g.element) ? () => g.element(x, g) : g.element,
1464
- onClick: () => i(x, g)
1465
- })), P = ne(H(s), (g, w) => ({
1466
- ...g,
1467
- [w]: (V) => {
1468
- var ue;
1469
- return (ue = s[w]) == null ? void 0 : ue.call(s, x, V);
1524
+ const T = R(A, (L) => ({
1525
+ ...L,
1526
+ show: V(L.show) ? L.show(v) : L.show,
1527
+ disabled: V(L.disabled) ? L.disabled(v) : L.disabled,
1528
+ loading: V(L.loading) ? L.loading(v) : L.loading,
1529
+ extraProps: V(L.extraProps) ? L.extraProps(v) : L.extraProps,
1530
+ element: V(L.element) ? () => L.element(v, L) : L.element,
1531
+ onClick: () => s(v, L)
1532
+ })), F = ne(H(d), (L, ue) => ({
1533
+ ...L,
1534
+ [ue]: (w) => {
1535
+ var j;
1536
+ return (j = d[ue]) == null ? void 0 : j.call(d, v, w);
1470
1537
  }
1471
1538
  }), {});
1472
- return l(Jt, {
1539
+ return l(Qt, {
1473
1540
  class: `${e.clsName}-operate`,
1474
- items: k,
1475
- elementKey: M.elementKey || q.TableOperateKey
1476
- }, P);
1541
+ items: T,
1542
+ elementKey: $.elementKey || B.TableOperateKey
1543
+ }, F);
1477
1544
  }
1478
1545
  };
1479
- }, h = _([]), y = N(() => {
1480
- var M;
1481
- return !!((M = e.toolbar) != null && M.columnSetting);
1482
- }), v = an(e, "columns");
1483
- N(() => {
1484
- if (!y.value)
1546
+ }, h = X([]), m = N(() => {
1547
+ var $;
1548
+ return !!(($ = e.toolbar) != null && $.columnSetting);
1549
+ }), g = rn(e, "columns"), S = N(() => {
1550
+ if (!m.value)
1485
1551
  return e.columns;
1486
- const M = ne(h.value, (T, x) => ({
1487
- ...T,
1488
- [x]: !0
1552
+ const $ = ne(h.value, (A, v) => ({
1553
+ ...A,
1554
+ [v]: !0
1489
1555
  }), {});
1490
- return Y(e.columns, (T) => m(M, T.dataIndex));
1491
- });
1492
- const E = (M) => F(M, (T) => {
1493
- const x = {
1556
+ return _(e.columns, (A) => y($, A.dataIndex));
1557
+ }), f = ($) => R($, (A) => {
1558
+ const v = {
1494
1559
  ...e.column,
1495
- ...T
1496
- }, k = e.convertColumn ? e.convertColumn(x) : x;
1497
- return T.children && Q(T.children) > 0 ? (k.children = E(T.children), k) : (T.customRender || (k.customRender = ({
1498
- text: P
1499
- }) => {
1500
- var w;
1501
- return Ze(n, {
1502
- ...T,
1503
- showProps: {
1504
- ...T.showProps,
1505
- content: ((w = T.showProps) == null ? void 0 : w.content) || e.columnEmptyText
1506
- }
1507
- }, P) || P || e.columnEmptyText;
1508
- }), k);
1509
- }), f = N(() => {
1510
- const M = Fe(e.columns, e.columnState, e.columnState2), T = E(M);
1511
- return e.serialNumber && T.unshift(c()), e.operate && e.operate.items && fe(e.operate.items, (x) => x.show) && T.push(S()), T;
1512
- }), p = _();
1513
- mr({
1514
- columns: f,
1515
- originColumns: v,
1560
+ ...A
1561
+ }, T = e.convertColumn ? e.convertColumn(v) : v;
1562
+ return A.children && Y(A.children) > 0 ? (T.children = f(A.children), T) : (A.customRender || (T.customRender = ({
1563
+ value: F
1564
+ }) => typeof F > "u" || F === null || F === "" ? e.columnEmptyText : Qe(n, A, {
1565
+ value: F
1566
+ }, {
1567
+ render: "tableRender"
1568
+ }) || F), T);
1569
+ }), p = N(() => {
1570
+ const $ = Le(S.value, e.columnState, e.columnState2), A = f($);
1571
+ return e.serialNumber && A.unshift(c()), e.operate && e.operate.items && fe(e.operate.items, (v) => v.show) && A.push(b()), A;
1572
+ }), C = N(() => {
1573
+ var A, v;
1574
+ const $ = e.dataSource;
1575
+ return $ && (((A = e.mergeOpts) == null ? void 0 : A.rowNames) || ((v = e.mergeOpts) == null ? void 0 : v.colNames)) && Cn($, e.mergeOpts), $;
1576
+ }), i = X();
1577
+ yr({
1578
+ columns: p,
1579
+ originColumns: g,
1516
1580
  selectIdsRef: h,
1517
- tableRef: p,
1581
+ tableRef: i,
1518
1582
  toolbar: e.toolbar,
1519
1583
  ...e.provideExtra
1520
- }), a(be(e.tableMethods || [], p));
1521
- const b = _(), d = _(!1), C = _(), I = _(!1);
1522
- Ve(b, () => {
1523
- d.value = !!b.value.innerText;
1524
- }), Ve(C, () => {
1525
- I.value = !!C.value.innerText;
1584
+ }), r(be(e.tableMethods || [], i));
1585
+ const P = X(), E = X(!1), I = X(), M = X(!1);
1586
+ Ve(P, () => {
1587
+ E.value = !!P.value.innerText;
1588
+ }), Ve(I, () => {
1589
+ M.value = !!I.value.innerText;
1526
1590
  });
1527
- const L = N(() => I.value || d.value ? `${e.clsName}-toolbar-valid` : ""), B = H(ft()), R = se(t, "columnSetting");
1591
+ const k = N(() => M.value || E.value ? `${e.clsName}-toolbar-valid` : ""), Q = H(it()), q = le(t, "columnSetting");
1528
1592
  return () => {
1529
- var T, x;
1593
+ var A, v;
1530
1594
  if (!u)
1531
1595
  return null;
1532
- const M = y.value ? l(dr, (T = e.toolbar) == null ? void 0 : T.columnSetting, R) : null;
1533
- return l("div", A({
1596
+ const $ = m.value ? l(fr, (A = e.toolbar) == null ? void 0 : A.columnSetting, q) : null;
1597
+ return l("div", x({
1534
1598
  class: e.clsName
1535
1599
  }, z(o, "class")), [l("div", {
1536
- class: `${e.clsName}-toolbar ${L.value}`
1600
+ class: `${e.clsName}-toolbar ${k.value}`
1537
1601
  }, [l("div", {
1538
- ref: b,
1602
+ ref: P,
1539
1603
  class: `${e.clsName}-toolbar-start`
1540
- }, [(x = t.toolbar) == null ? void 0 : x.call(t)]), l("div", {
1541
- ref: C,
1604
+ }, [(v = t.toolbar) == null ? void 0 : v.call(t)]), l("div", {
1605
+ ref: I,
1542
1606
  class: `${e.clsName}-toolbar-extra`
1543
- }, [t.toolbarExtra ? t.toolbarExtra([M]) : l(ie, null, [M])])]), l(u, A({
1544
- ref: p
1545
- }, $(o, "class"), $(e, B), {
1546
- columns: f.value
1607
+ }, [t.toolbarExtra ? t.toolbarExtra([$]) : l(ie, null, [$])])]), l(u, x({
1608
+ ref: i
1609
+ }, O(o, "class"), O(e, Q), {
1610
+ mergeOpts: e.mergeOpts,
1611
+ dataSource: C.value,
1612
+ columns: p.value
1547
1613
  }), t)]);
1548
1614
  };
1549
1615
  }
1550
- }), yr = () => ({
1616
+ }), vr = () => ({
1551
1617
  title: {
1552
1618
  type: String
1553
1619
  },
@@ -1566,27 +1632,27 @@ const sr = () => ({
1566
1632
  type: Function,
1567
1633
  default: () => "\u8FD4\u56DE"
1568
1634
  }
1569
- }), Ue = O({
1635
+ }), Ue = D({
1570
1636
  props: {
1571
- ...yr()
1637
+ ...vr()
1572
1638
  },
1573
1639
  setup: (e, {
1574
1640
  slots: t
1575
1641
  }) => {
1576
- const a = Xe(), o = () => {
1577
- var r;
1642
+ const r = Ge(), o = () => {
1643
+ var a;
1578
1644
  if (e.onBackClick) {
1579
- (r = e.onBackClick) == null || r.call(e);
1645
+ (a = e.onBackClick) == null || a.call(e);
1580
1646
  return;
1581
1647
  }
1582
- a.back();
1648
+ r.back();
1583
1649
  };
1584
1650
  return () => {
1585
- var n, u, c, i, s;
1586
- const r = e.hideWhileNoHistory && ((u = (n = window.history) == null ? void 0 : n.state) == null ? void 0 : u.back) || e.hideWhileNoHistory === !1;
1651
+ var n, u, c, s, d;
1652
+ const a = e.hideWhileNoHistory && ((u = (n = window.history) == null ? void 0 : n.state) == null ? void 0 : u.back) || e.hideWhileNoHistory === !1;
1587
1653
  return l("div", {
1588
1654
  class: "pro-page-header"
1589
- }, [e.showBack && r && l("div", {
1655
+ }, [e.showBack && a && l("div", {
1590
1656
  class: "pro-page-header-back",
1591
1657
  onClick: o
1592
1658
  }, [t.backIcon ? t.backIcon() : (c = e.renderBackIcon) == null ? void 0 : c.call(e)]), l("div", {
@@ -1595,12 +1661,12 @@ const sr = () => ({
1595
1661
  class: "pro-page-header-sub-title"
1596
1662
  }, [t.subTitle ? t.subTitle() : e.subTitle]), l("div", {
1597
1663
  class: "pro-page-header-space"
1598
- }, [(i = t.space) == null ? void 0 : i.call(t)]), l("div", {
1664
+ }, [(s = t.space) == null ? void 0 : s.call(t)]), l("div", {
1599
1665
  class: "pro-page-header-extra"
1600
- }, [(s = t.extra) == null ? void 0 : s.call(t)])]);
1666
+ }, [(d = t.extra) == null ? void 0 : d.call(t)])]);
1601
1667
  };
1602
1668
  }
1603
- }), vr = () => ({
1669
+ }), hr = () => ({
1604
1670
  loading: {
1605
1671
  type: Boolean,
1606
1672
  default: !1
@@ -1610,37 +1676,37 @@ const sr = () => ({
1610
1676
  type: Boolean,
1611
1677
  default: !0
1612
1678
  }
1613
- }), da = O({
1679
+ }), fa = D({
1614
1680
  props: {
1615
1681
  ...Ue.props,
1616
- ...vr()
1682
+ ...hr()
1617
1683
  },
1618
1684
  setup: (e, {
1619
1685
  slots: t
1620
1686
  }) => {
1621
- const o = J()(q.LoadingKey), r = H(Ue.props);
1687
+ const o = J()(B.LoadingKey), a = H(Ue.props);
1622
1688
  return () => {
1623
- var c, i, s;
1689
+ var c, s, d;
1624
1690
  const n = e.title || t.title || e.subTitle || t.subTitle || t.extra, u = !!t.footer;
1625
1691
  return l("div", {
1626
1692
  class: `pro-page ${e.fillMode ? "pro-page-fill" : ""}`
1627
- }, [(c = t.start) == null ? void 0 : c.call(t), n && l(Ue, z(e, r), $(t, "start", "default", "footer")), l("div", {
1693
+ }, [(c = t.start) == null ? void 0 : c.call(t), n && l(Ue, z(e, a), O(t, "start", "default", "footer")), l("div", {
1628
1694
  class: "pro-page-content"
1629
- }, [e.loading ? o ? l(o, A({
1695
+ }, [e.loading ? o ? l(o, x({
1630
1696
  loading: !0
1631
1697
  }, e.loadingOpts), {
1632
1698
  default: () => [l("div", {
1633
1699
  class: "pro-loading-dom"
1634
1700
  }, null)]
1635
- }) : null : (i = t.default) == null ? void 0 : i.call(t)]), !e.loading && u && l("div", {
1701
+ }) : null : (s = t.default) == null ? void 0 : s.call(t)]), !e.loading && u && l("div", {
1636
1702
  class: "pro-page-footer"
1637
- }, [(s = t.footer) == null ? void 0 : s.call(t)])]);
1703
+ }, [(d = t.footer) == null ? void 0 : d.call(t)])]);
1638
1704
  };
1639
1705
  }
1640
- }), hr = Object.freeze({
1706
+ }), br = Object.freeze({
1641
1707
  page: 1,
1642
1708
  pageSize: 10
1643
- }), br = () => ({
1709
+ }), gr = () => ({
1644
1710
  clsName: {
1645
1711
  type: String,
1646
1712
  default: "pro-list"
@@ -1674,43 +1740,43 @@ const sr = () => ({
1674
1740
  end: {
1675
1741
  type: Function
1676
1742
  }
1677
- }), gr = O({
1743
+ }), Sr = D({
1678
1744
  props: {
1679
- ...br()
1745
+ ...gr()
1680
1746
  },
1681
1747
  setup: (e, {
1682
1748
  slots: t,
1683
- emit: a
1749
+ emit: r
1684
1750
  }) => {
1685
- const o = J(), r = o(q.ProSearchFormKey), n = o(q.ProTableKey), u = o(q.PaginationKey), c = e.pageState || Ne({
1686
- ...hr
1751
+ const o = J(), a = o(B.ProSearchFormKey), n = o(B.ProTableKey), u = o(B.PaginationKey), c = e.pageState || Ne({
1752
+ ...br
1687
1753
  });
1688
- let i;
1689
- const s = () => {
1690
- a("search", {
1691
- ...i,
1754
+ let s;
1755
+ const d = () => {
1756
+ r("search", {
1757
+ ...s,
1692
1758
  ...c
1693
1759
  });
1694
- }, S = (f, p) => {
1695
- i = f, c.page = p || 1, s();
1760
+ }, b = (f, p) => {
1761
+ s = f, c.page = p || 1, d();
1696
1762
  }, h = (f, p) => {
1697
- c.page = f, c.pageSize = p, s();
1698
- }, y = se(t, "search"), v = se(t, "table"), E = se(t, "pagination");
1763
+ c.page = f, c.pageSize = p, d();
1764
+ }, m = le(t, "search"), g = le(t, "table"), S = le(t, "pagination");
1699
1765
  return () => {
1700
- var p, b, d, C, I, L, B, R;
1766
+ var p, C, i, P, E, I, M, k;
1701
1767
  const f = t.search ? t.search({
1702
- executeSearchWithResetPage: S,
1768
+ executeSearchWithResetPage: b,
1703
1769
  pageState: c
1704
- }) : l(ie, null, [r && l(r, A({
1770
+ }) : l(ie, null, [a && l(a, x({
1705
1771
  class: `${e.clsName}-search`
1706
- }, $(e.searchProps, "onFinish"), {
1707
- onFinish: (M) => S(M)
1708
- }), y)]);
1772
+ }, O(e.searchProps, "onFinish"), {
1773
+ onFinish: (Q) => b(Q)
1774
+ }), m)]);
1709
1775
  return l("div", {
1710
1776
  class: e.clsName
1711
- }, [((p = t.start) == null ? void 0 : p.call(t)) || ((b = e.start) == null ? void 0 : b.call(e)), !e.searchInTable && f, ((d = t.divide) == null ? void 0 : d.call(t)) || ((C = e.divide) == null ? void 0 : C.call(e)), t.table ? t.table({
1777
+ }, [((p = t.start) == null ? void 0 : p.call(t)) || ((C = e.start) == null ? void 0 : C.call(e)), !e.searchInTable && f, ((i = t.divide) == null ? void 0 : i.call(t)) || ((P = e.divide) == null ? void 0 : P.call(e)), t.table ? t.table({
1712
1778
  pageState: c
1713
- }) : l(ie, null, [n && l(n, A({
1779
+ }) : l(ie, null, [n && l(n, x({
1714
1780
  class: `${e.clsName}-table`,
1715
1781
  paginationState: {
1716
1782
  page: c.page,
@@ -1718,21 +1784,21 @@ const sr = () => ({
1718
1784
  },
1719
1785
  pagination: !1
1720
1786
  }, e.tableProps), {
1721
- ...v,
1722
- toolbar: e.searchInTable ? () => v.toolbar ? v.toolbar(f) : f : v.toolbar
1723
- })]), ((I = t.divide2) == null ? void 0 : I.call(t)) || ((L = e.divide2) == null ? void 0 : L.call(e)), t.pagination ? t.pagination({
1787
+ ...g,
1788
+ toolbar: e.searchInTable ? () => g.toolbar ? g.toolbar(f) : f : g.toolbar
1789
+ })]), ((E = t.divide2) == null ? void 0 : E.call(t)) || ((I = e.divide2) == null ? void 0 : I.call(e)), t.pagination ? t.pagination({
1724
1790
  executePageChange: h,
1725
1791
  pageState: c
1726
1792
  }) : l(ie, null, [e.paginationProps !== !1 && u && l("div", {
1727
1793
  class: `${e.clsName}-pagination`
1728
- }, [l(u, A($(Ee(e.paginationProps) ? {} : e.paginationProps, "onChange"), {
1794
+ }, [l(u, x(O(Ee(e.paginationProps) ? {} : e.paginationProps, "onChange"), {
1729
1795
  page: c.page,
1730
1796
  pageSize: c.pageSize,
1731
1797
  onComposeChange: h
1732
- }), E)])]), ((B = t.end) == null ? void 0 : B.call(t)) || ((R = e.end) == null ? void 0 : R.call(e))]);
1798
+ }), S)])]), ((M = t.end) == null ? void 0 : M.call(t)) || ((k = e.end) == null ? void 0 : k.call(e))]);
1733
1799
  };
1734
1800
  }
1735
- }), mt = () => ({
1801
+ }), dt = () => ({
1736
1802
  clsName: {
1737
1803
  type: String,
1738
1804
  default: "pro-desc"
@@ -1740,50 +1806,46 @@ const sr = () => ({
1740
1806
  model: {
1741
1807
  type: Object
1742
1808
  }
1743
- }), Sr = O({
1809
+ }), Pr = D({
1744
1810
  props: {
1745
1811
  ...ve,
1746
- ...mt()
1812
+ ...dt()
1747
1813
  },
1748
1814
  setup: (e, {
1749
1815
  slots: t
1750
1816
  }) => {
1751
1817
  const {
1752
- elementMap: a
1753
- } = ee(), o = e.elementMap || a, r = J(), n = r(q.DescriptionsKey), u = r(q.DescriptionsItemKey), c = N(() => Fe(e.columns, e.columnState, e.columnState2)), i = (h, y) => {
1754
- const v = ze(h, h.descRender);
1755
- if (!!v)
1756
- return v({
1757
- value: y,
1758
- record: e.model,
1759
- column: $(h, "descRender")
1760
- });
1761
- }, s = H(ve), S = H(mt());
1762
- return () => !n || !u ? null : l(n, A({
1818
+ elementMap: r
1819
+ } = ee(), o = e.elementMap || r, a = J(), n = a(B.DescriptionsKey), u = a(B.DescriptionsItemKey), c = N(() => Le(e.columns, e.columnState, e.columnState2)), s = H(ve), d = H(dt());
1820
+ return () => !n || !u ? null : l(n, x({
1763
1821
  class: e.clsName
1764
- }, $(e, ...s, ...S, "model")), {
1822
+ }, O(e, ...s, ...d, "model")), {
1765
1823
  default: () => {
1766
- var h, y;
1767
- return [(h = t.start) == null ? void 0 : h.call(t), F(c.value, (v) => {
1768
- const E = v.dataIndex, f = m(e.model, E);
1769
- return l(u, A({
1824
+ var b, h;
1825
+ return [(b = t.start) == null ? void 0 : b.call(t), R(c.value, (m) => {
1826
+ const g = m.dataIndex, S = y(e.model, g);
1827
+ return l(u, x({
1770
1828
  class: `${e.clsName}-item`
1771
- }, m(v.extra, "desc")), {
1829
+ }, y(m.extra, "desc")), {
1772
1830
  default: () => {
1773
- var p, b;
1774
- return [((p = t[E]) == null ? void 0 : p.call(t, f, v)) || ((b = t.value) == null ? void 0 : b.call(t, f, v)) || i(v, f) || Ze(o, v, f)];
1831
+ var f, p;
1832
+ return [((f = t[g]) == null ? void 0 : f.call(t, S, m)) || ((p = t.value) == null ? void 0 : p.call(t, S, m)) || Qe(o, m, {
1833
+ value: S
1834
+ }, {
1835
+ render: "descRender"
1836
+ })];
1775
1837
  },
1776
1838
  label: () => {
1777
- var p;
1778
- return ((p = t.label) == null ? void 0 : p.call(t, v)) || v.title;
1839
+ var f;
1840
+ return ((f = t.label) == null ? void 0 : f.call(t, m)) || m.title;
1779
1841
  }
1780
1842
  });
1781
- }), (y = t.default) == null ? void 0 : y.call(t)];
1843
+ }), (h = t.default) == null ? void 0 : h.call(t)];
1782
1844
  },
1783
1845
  ...t
1784
1846
  });
1785
1847
  }
1786
- }), Pr = () => ({
1848
+ }), pr = () => ({
1787
1849
  content: {
1788
1850
  type: [String, Number]
1789
1851
  },
@@ -1791,22 +1853,22 @@ const sr = () => ({
1791
1853
  type: [Object, Boolean]
1792
1854
  },
1793
1855
  popoverProps: Object
1794
- }), pr = O({
1856
+ }), Cr = D({
1795
1857
  inheritAttrs: !1,
1796
1858
  props: {
1797
- ...Pr()
1859
+ ...pr()
1798
1860
  },
1799
1861
  setup: (e, {
1800
1862
  attrs: t
1801
1863
  }) => {
1802
- const o = J()(q.PopoverKey), r = () => {
1864
+ const o = J()(B.PopoverKey), a = () => {
1803
1865
  var n, u;
1804
1866
  return e.ellipsis ? e.ellipsis === !0 ? 1 : ((n = e.ellipsis) == null ? void 0 : n.rows) || ((u = e.ellipsis) == null ? void 0 : u.num) || 1 : "unset";
1805
1867
  };
1806
1868
  return () => {
1807
- const n = l("span", A({
1869
+ const n = l("span", x({
1808
1870
  class: `pro-typography ${e.ellipsis ? "pro-typography-ellipsis" : ""}`,
1809
- style: `-webkit-line-clamp:${r()}`
1871
+ style: `-webkit-line-clamp:${a()}`
1810
1872
  }, t), [e.content]);
1811
1873
  return !e.popoverProps || !o ? n : l(o, e.popoverProps, {
1812
1874
  default: () => [n],
@@ -1814,7 +1876,7 @@ const sr = () => ({
1814
1876
  });
1815
1877
  };
1816
1878
  }
1817
- }), Ae = {
1879
+ }), Oe = {
1818
1880
  value: {
1819
1881
  type: [String, Number]
1820
1882
  },
@@ -1824,27 +1886,27 @@ const sr = () => ({
1824
1886
  convert: {
1825
1887
  type: Function
1826
1888
  }
1827
- }, Re = O({
1889
+ }, Re = D({
1828
1890
  inheritAttrs: !1,
1829
1891
  props: {
1830
- ...Ae
1892
+ ...Oe
1831
1893
  },
1832
1894
  setup: (e, {
1833
1895
  attrs: t
1834
1896
  }) => {
1835
- const a = N(() => {
1897
+ const r = N(() => {
1836
1898
  var n;
1837
- const o = (n = e.showProps) == null ? void 0 : n.content, r = e.value || St(e.value) ? e.value : o;
1838
- return e.convert ? e.convert(r, e) : r;
1899
+ const o = (n = e.showProps) == null ? void 0 : n.content, a = e.value || bt(e.value) ? e.value : o;
1900
+ return e.convert ? e.convert(a, e) : a;
1839
1901
  });
1840
- return () => l(pr, A(z(t, "style", "class"), $(e.showProps, "content"), {
1841
- content: a.value
1902
+ return () => l(Cr, x(z(t, "style", "class"), O(e.showProps, "content"), {
1903
+ content: r.value
1842
1904
  }), null);
1843
1905
  }
1844
- }), fa = O({
1906
+ }), ma = D({
1845
1907
  inheritAttrs: !1,
1846
1908
  props: {
1847
- ...Ae,
1909
+ ...Oe,
1848
1910
  decimalFixed: {
1849
1911
  type: Number,
1850
1912
  default: 0
@@ -1857,19 +1919,19 @@ const sr = () => ({
1857
1919
  setup: (e, {
1858
1920
  attrs: t
1859
1921
  }) => {
1860
- const a = N(() => {
1922
+ const r = N(() => {
1861
1923
  let o = e.value;
1862
1924
  return o && e.decimalFixed && (o = En(o, e.decimalFixed || 2)), o && e.thousandDivision && (o = Mn(o)), e.convert ? e.convert(o, e) : o;
1863
1925
  });
1864
- return () => l(Re, A(z(t, "style", "class"), {
1865
- value: a.value,
1926
+ return () => l(Re, x(z(t, "style", "class"), {
1927
+ value: r.value,
1866
1928
  showProps: e.showProps
1867
1929
  }), null);
1868
1930
  }
1869
- }), ma = O({
1931
+ }), ya = D({
1870
1932
  inheritAttrs: !1,
1871
1933
  props: {
1872
- ...Ae,
1934
+ ...Oe,
1873
1935
  value: {
1874
1936
  type: [String, Number, Array]
1875
1937
  },
@@ -1885,21 +1947,21 @@ const sr = () => ({
1885
1947
  setup: (e, {
1886
1948
  attrs: t
1887
1949
  }) => {
1888
- const a = N(() => In(e.options, (n) => n.label), void 0), o = N(() => {
1950
+ const r = N(() => Tn(e.options, (n) => n.label), void 0), o = N(() => {
1889
1951
  const n = e.value;
1890
1952
  let u = e.value;
1891
- return G(n) ? u = Ge(F(n, (c) => m(a.value, c, c)), e.splitStr) : u = m(a.value, n, e.value), e.convert ? e.convert(u, e) : u;
1892
- }), r = N(() => m(e.colorMap, e.value));
1893
- return () => l(Re, A(z(t, "style", "class"), {
1894
- style: `color:${r.value || ""}`,
1953
+ return W(n) ? u = We(R(n, (c) => y(r.value, c, c)), e.splitStr) : u = y(r.value, n, e.value), e.convert ? e.convert(u, e) : u;
1954
+ }), a = N(() => y(e.colorMap, e.value));
1955
+ return () => l(Re, x(z(t, "style", "class"), {
1956
+ style: `color:${a.value || ""}`,
1895
1957
  value: o.value,
1896
1958
  showProps: e.showProps
1897
1959
  }), null);
1898
1960
  }
1899
- }), ya = O({
1961
+ }), va = D({
1900
1962
  inheritAttrs: !1,
1901
1963
  props: {
1902
- ...Ae,
1964
+ ...Oe,
1903
1965
  value: {
1904
1966
  type: [String, Number, Array]
1905
1967
  },
@@ -1916,25 +1978,25 @@ const sr = () => ({
1916
1978
  setup: (e, {
1917
1979
  attrs: t
1918
1980
  }) => {
1919
- const a = N(() => {
1920
- const r = e.treeData || e.data || e.options, n = e.fieldNames || e.props;
1921
- return Tn(r, (u) => m(u, (n == null ? void 0 : n.label) || "label"), {
1981
+ const r = N(() => {
1982
+ const a = e.treeData || e.data || e.options, n = e.fieldNames || e.props;
1983
+ return In(a, (u) => y(u, (n == null ? void 0 : n.label) || "label"), {
1922
1984
  value: "value",
1923
1985
  children: "children",
1924
1986
  ...n
1925
1987
  });
1926
1988
  }), o = N(() => {
1927
- let r = e.value;
1928
- return G(e.value) ? r = Ge(F(e.value, (n) => m(a.value, n, n)), e.splitStr) : r = m(a.value, e.value, e.value), e.convert ? e.convert(r, e) : r;
1989
+ let a = e.value;
1990
+ return W(e.value) ? a = We(R(e.value, (n) => y(r.value, n, n)), e.splitStr) : a = y(r.value, e.value, e.value), e.convert ? e.convert(a, e) : a;
1929
1991
  });
1930
- return () => l(Re, A(z(t, "style", "class"), {
1992
+ return () => l(Re, x(z(t, "style", "class"), {
1931
1993
  value: o.value,
1932
1994
  showProps: e.showProps
1933
1995
  }), null);
1934
1996
  }
1935
- }), va = O({
1997
+ }), ha = D({
1936
1998
  props: {
1937
- ...Ae,
1999
+ ...Oe,
1938
2000
  value: {
1939
2001
  type: [String, Number, Array]
1940
2002
  },
@@ -1954,31 +2016,31 @@ const sr = () => ({
1954
2016
  setup: (e, {
1955
2017
  attrs: t
1956
2018
  }) => {
1957
- const a = (r) => r && (e.isUnix ? ct.unix(r).format(e.format) : ct(r).format(e.format)), o = N(() => {
1958
- let r = e.value;
1959
- return G(e.value) ? r = Ge(F(e.value, (n) => a(n) || ""), e.splitStr) : r = a(e.value) || "", e.convert ? e.convert(r, e) : r;
2019
+ const r = (a) => a && (e.isUnix ? ot.unix(a).format(e.format) : ot(a).format(e.format)), o = N(() => {
2020
+ let a = e.value;
2021
+ return W(e.value) ? a = We(R(e.value, (n) => r(n) || ""), e.splitStr) : a = r(e.value) || "", e.convert ? e.convert(a, e) : a;
1960
2022
  });
1961
- return () => l(Re, A(z(t, "style", "class"), {
2023
+ return () => l(Re, x(z(t, "style", "class"), {
1962
2024
  value: o.value,
1963
2025
  showProps: e.showProps
1964
2026
  }), null);
1965
2027
  }
1966
- }), Oe = O((e, {
2028
+ }), $e = D((e, {
1967
2029
  slots: t
1968
2030
  }) => {
1969
- const a = _(), o = _(0);
1970
- return Ve(a, (r) => {
2031
+ const r = X(), o = X(0);
2032
+ return Ve(r, (a) => {
1971
2033
  var u;
1972
- const n = (u = r[0]) == null ? void 0 : u.contentRect;
2034
+ const n = (u = a[0]) == null ? void 0 : u.contentRect;
1973
2035
  o.value = n == null ? void 0 : n.width;
1974
2036
  }), () => {
1975
- var r, n, u;
1976
- return l("header", null, [(r = t.start) == null ? void 0 : r.call(t), t.menus && l("div", {
1977
- ref: a,
2037
+ var a, n, u;
2038
+ return l("header", null, [(a = t.start) == null ? void 0 : a.call(t), t.menus && l("div", {
2039
+ ref: r,
1978
2040
  class: "pro-header-menus-wrapper"
1979
2041
  }, [t.menus(o.value)]), (n = t.default) == null ? void 0 : n.call(t), (u = t.end) == null ? void 0 : u.call(t)]);
1980
2042
  };
1981
- }), Cr = () => ({
2043
+ }), Er = () => ({
1982
2044
  clsName: {
1983
2045
  type: String,
1984
2046
  default: "pro-layout"
@@ -2016,120 +2078,120 @@ const sr = () => ({
2016
2078
  menuProps: {
2017
2079
  type: Object
2018
2080
  }
2019
- }), ha = O({
2081
+ }), ba = D({
2020
2082
  inheritAttrs: !1,
2021
2083
  props: {
2022
- ...Cr()
2084
+ ...Er()
2023
2085
  },
2024
2086
  setup: (e, {
2025
2087
  slots: t,
2026
- attrs: a
2088
+ attrs: r
2027
2089
  }) => {
2028
- const r = J()(q.MenusKey), {
2090
+ const a = J()(B.MenusKey), {
2029
2091
  router: n,
2030
2092
  route: u
2031
- } = Rt(), c = N(() => {
2093
+ } = Kt(), c = N(() => {
2032
2094
  var p;
2033
- return At(e.menus, (b) => {
2034
- var I, L;
2035
- const d = ((I = e.fieldNames) == null ? void 0 : I.value) || "value", C = ((L = e.fieldNames) == null ? void 0 : L.label) || "label";
2095
+ return Nt(e.menus, (C) => {
2096
+ var E, I;
2097
+ const i = ((E = e.fieldNames) == null ? void 0 : E.value) || "value", P = ((I = e.fieldNames) == null ? void 0 : I.label) || "label";
2036
2098
  return {
2037
- ...$(b, d, C),
2038
- value: m(b, d),
2039
- label: m(b, C)
2099
+ ...O(C, i, P),
2100
+ value: y(C, i),
2101
+ label: y(C, P)
2040
2102
  };
2041
2103
  }, {
2042
2104
  children: ((p = e.fieldNames) == null ? void 0 : p.children) || "children",
2043
2105
  childrenName: "children"
2044
2106
  });
2045
- }), i = N(() => Nn(c.value)), s = N(() => {
2107
+ }), s = N(() => Nn(c.value)), d = N(() => {
2046
2108
  if (e.findCurrentTopName)
2047
- return e.findCurrentTopName(u, i.value);
2048
- const p = vn(u.matched, (b) => !!m(i.value, b.name));
2109
+ return e.findCurrentTopName(u, s.value);
2110
+ const p = yn(u.matched, (C) => !!y(s.value, C.name));
2049
2111
  if (p)
2050
- return m(i.value, p.name);
2051
- }), S = N(() => s.value ? at(c.value, (p) => p.value === s.value).target : null), h = N(() => {
2112
+ return y(s.value, p.name);
2113
+ }), b = N(() => d.value ? nt(c.value, (p) => p.value === d.value).target : null), h = N(() => {
2052
2114
  if (e.findActiveKey)
2053
- return e.findActiveKey(u, i.value);
2054
- if (u.name && m(i.value, u.name))
2115
+ return e.findActiveKey(u, s.value);
2116
+ if (u.name && y(s.value, u.name))
2055
2117
  return u.name;
2056
- }), y = (p) => {
2118
+ }), m = (p) => {
2057
2119
  e.onMenuItemClick ? e.onMenuItemClick(p) : n.openMenu(p);
2058
- }, v = (p) => {
2059
- const b = at(c.value, (d) => d.value === p.value).target;
2060
- y(b);
2061
- }, E = se(t, "header"), f = se(t, "menu");
2120
+ }, g = (p) => {
2121
+ const C = nt(c.value, (i) => i.value === p.value).target;
2122
+ m(C);
2123
+ }, S = le(t, "header"), f = le(t, "menu");
2062
2124
  return () => {
2063
- var d, C, I, L, B, R, M, T, x, k;
2064
- if (!r)
2125
+ var i, P, E, I, M, k, Q, q, $, A;
2126
+ if (!a)
2065
2127
  return null;
2066
- const p = z(a, "class"), b = {
2128
+ const p = z(r, "class"), C = {
2067
2129
  class: `${e.clsName}-menus`,
2068
2130
  options: c.value,
2069
2131
  activeKey: h.value,
2070
2132
  ...z(e, "convertSubMenuProps", "convertMenuItemProps"),
2071
- onMenuItemClick: y,
2133
+ onMenuItemClick: m,
2072
2134
  ...e.menuProps
2073
2135
  };
2074
- return e.layout === "vertical" ? l("main", A(p, {
2136
+ return e.layout === "vertical" ? l("main", x(p, {
2075
2137
  class: `${e.clsName} ${e.clsName}-${e.layout}`
2076
- }), [l(Oe, {
2138
+ }), [l($e, {
2077
2139
  class: `${e.clsName}-header`
2078
2140
  }, {
2079
- menus: (P) => P ? l(r, A({
2080
- style: `width:${P}px`,
2141
+ menus: (v) => v ? l(a, x({
2142
+ style: `width:${v}px`,
2081
2143
  mode: "horizontal"
2082
- }, b), f) : null,
2083
- ...E
2144
+ }, C), f) : null,
2145
+ ...S
2084
2146
  }), l("div", {
2085
2147
  class: `${e.clsName}-section`
2086
- }, [(d = t.default) == null ? void 0 : d.call(t)])]) : e.layout === "horizontal" ? l("main", A(p, {
2148
+ }, [(i = t.default) == null ? void 0 : i.call(t)])]) : e.layout === "horizontal" ? l("main", x(p, {
2087
2149
  class: `${e.clsName} ${e.clsName}-${e.layout}`
2088
2150
  }), [l("div", {
2089
2151
  class: `${e.clsName}-menus-wrapper`
2090
- }, [(C = f.start) == null ? void 0 : C.call(f), l(r, b, f), (I = f.end) == null ? void 0 : I.call(f)]), l("div", {
2152
+ }, [(P = f.start) == null ? void 0 : P.call(f), l(a, C, f), (E = f.end) == null ? void 0 : E.call(f)]), l("div", {
2091
2153
  class: `${e.clsName}-structure`
2092
- }, [l(Oe, {
2154
+ }, [l($e, {
2093
2155
  class: `${e.clsName}-header`
2094
- }, E), l("div", {
2156
+ }, S), l("div", {
2095
2157
  class: `${e.clsName}-section`
2096
- }, [(L = t.default) == null ? void 0 : L.call(t)])])]) : e.layout === "horizontal-v" ? l("main", A(p, {
2158
+ }, [(I = t.default) == null ? void 0 : I.call(t)])])]) : e.layout === "horizontal-v" ? l("main", x(p, {
2097
2159
  class: `${e.clsName} ${e.clsName}-${e.layout}`
2098
- }), [l(Oe, {
2160
+ }), [l($e, {
2099
2161
  class: `${e.clsName}-header`
2100
- }, E), l("div", {
2162
+ }, S), l("div", {
2101
2163
  class: `${e.clsName}-structure`
2102
2164
  }, [l("div", {
2103
2165
  class: `${e.clsName}-menus-wrapper`
2104
- }, [(B = f.start) == null ? void 0 : B.call(f), l(r, b, f), (R = f.end) == null ? void 0 : R.call(f)]), l("div", {
2166
+ }, [(M = f.start) == null ? void 0 : M.call(f), l(a, C, f), (k = f.end) == null ? void 0 : k.call(f)]), l("div", {
2105
2167
  class: `${e.clsName}-section`
2106
- }, [(M = t.default) == null ? void 0 : M.call(t)])])]) : l("main", A(p, {
2168
+ }, [(Q = t.default) == null ? void 0 : Q.call(t)])])]) : l("main", x(p, {
2107
2169
  class: `${e.clsName} ${e.clsName}-${e.layout}`
2108
- }), [l(Oe, {
2170
+ }), [l($e, {
2109
2171
  class: `${e.clsName}-header`
2110
2172
  }, {
2111
- menus: (P) => P ? l(r, A({
2112
- style: `width:${P}px`,
2173
+ menus: (v) => v ? l(a, x({
2174
+ style: `width:${v}px`,
2113
2175
  class: `${e.clsName}-menus`,
2114
2176
  mode: "horizontal",
2115
- options: F(c.value, (g) => $(g, "children")),
2116
- activeKey: s.value
2177
+ options: R(c.value, (T) => O(T, "children")),
2178
+ activeKey: d.value
2117
2179
  }, z(e, "convertSubMenuProps", "convertMenuItemProps"), {
2118
- onMenuItemClick: v
2180
+ onMenuItemClick: g
2119
2181
  }), f) : null,
2120
- ...E
2182
+ ...S
2121
2183
  }), l("div", {
2122
2184
  class: `${e.clsName}-structure`
2123
- }, [S.value && Q(S.value.children) > 0 && l("div", {
2185
+ }, [b.value && Y(b.value.children) > 0 && l("div", {
2124
2186
  class: `${e.clsName}-menus-wrapper`
2125
- }, [(T = f.start) == null ? void 0 : T.call(f), l(r, A({
2126
- options: S.value.children
2127
- }, $(b, "options")), f), (x = f.end) == null ? void 0 : x.call(f)]), l("div", {
2187
+ }, [(q = f.start) == null ? void 0 : q.call(f), l(a, x({
2188
+ options: b.value.children
2189
+ }, O(C, "options")), f), ($ = f.end) == null ? void 0 : $.call(f)]), l("div", {
2128
2190
  class: `${e.clsName}-section`
2129
- }, [(k = t.default) == null ? void 0 : k.call(t)])])]);
2191
+ }, [(A = t.default) == null ? void 0 : A.call(t)])])]);
2130
2192
  };
2131
2193
  }
2132
- }), ba = O({
2194
+ }), ga = D({
2133
2195
  props: {
2134
2196
  fieldNames: {
2135
2197
  type: Object,
@@ -2145,41 +2207,41 @@ const sr = () => ({
2145
2207
  },
2146
2208
  setup: (e, {
2147
2209
  slots: t,
2148
- emit: a
2210
+ emit: r
2149
2211
  }) => {
2150
- const r = J()(q.UploaderKey), n = (s) => {
2151
- const S = wt(s);
2152
- if (G(S)) {
2212
+ const a = J()(B.UploaderKey), n = (d) => {
2213
+ const b = Ot(d);
2214
+ if (W(b)) {
2153
2215
  const h = e.fieldNames;
2154
- return F(S, (y) => ({
2155
- ...$(y, h.id, h.name, h.size),
2156
- id: m(y, h.id),
2157
- name: m(y, h.name),
2158
- size: m(y, h.size)
2216
+ return R(b, (m) => ({
2217
+ ...O(m, h.id, h.name, h.size),
2218
+ id: y(m, h.id),
2219
+ name: y(m, h.name),
2220
+ size: y(m, h.size)
2159
2221
  }));
2160
2222
  }
2161
2223
  return [];
2162
- }, u = N(() => n(e.value)), c = N(() => n(e.modelValue)), i = (s, S) => {
2224
+ }, u = N(() => n(e.value)), c = N(() => n(e.modelValue)), s = (d, b) => {
2163
2225
  let h = "";
2164
- s && Q(s) > 0 && (h = $n(F(s, (y) => {
2226
+ d && Y(d) > 0 && (h = An(R(d, (m) => {
2165
2227
  var f;
2166
- const v = e.fieldNames, E = {
2167
- [v.id]: y.id,
2168
- [v.name]: y.name,
2169
- [v.size || "size"]: y.size
2228
+ const g = e.fieldNames, S = {
2229
+ [g.id]: m.id,
2230
+ [g.name]: m.name,
2231
+ [g.size || "size"]: m.size
2170
2232
  };
2171
- return ((f = e.convertItem) == null ? void 0 : f.call(e, y)) || E;
2172
- }))), a(S, h);
2233
+ return ((f = e.convertItem) == null ? void 0 : f.call(e, m)) || S;
2234
+ }))), r(b, h);
2173
2235
  };
2174
- return () => r ? l(r, A({
2236
+ return () => a ? l(a, x({
2175
2237
  class: "pro-uploader-text",
2176
2238
  value: u.value,
2177
- "onUpdate:value": (s) => i(s, "update:value"),
2239
+ "onUpdate:value": (d) => s(d, "update:value"),
2178
2240
  modelValue: c.value,
2179
- "onUpdate:modelValue": (s) => i(s, "update:modelValue")
2180
- }, $(e, "value", "modelValue", "fieldNames")), t) : null;
2241
+ "onUpdate:modelValue": (d) => s(d, "update:modelValue")
2242
+ }, O(e, "value", "modelValue", "fieldNames")), t) : null;
2181
2243
  }
2182
- }), ga = O({
2244
+ }), Sa = D({
2183
2245
  props: {
2184
2246
  value: [String, Array],
2185
2247
  fieldNames: {
@@ -2193,66 +2255,66 @@ const sr = () => ({
2193
2255
  },
2194
2256
  setup: (e, {
2195
2257
  slots: t,
2196
- emit: a
2258
+ emit: r
2197
2259
  }) => {
2198
2260
  const o = (u) => {
2199
2261
  var c;
2200
- return !!m(u, ((c = e.fieldNames) == null ? void 0 : c.id) || "id");
2201
- }, r = N(() => {
2262
+ return !!y(u, ((c = e.fieldNames) == null ? void 0 : c.id) || "id");
2263
+ }, a = N(() => {
2202
2264
  let u = e.value;
2203
- return u && ae(u) && (u = wt(u)), u && !G(u) && Ce(u) && o(u) && (u = [u]), G(u) ? F(Y(u, (c) => o(c)), (c) => {
2204
- var h, y, v;
2205
- const i = m(c, ((h = e.fieldNames) == null ? void 0 : h.id) || "id"), s = m(c, ((y = e.fieldNames) == null ? void 0 : y.name) || "name"), S = m(c, ((v = e.fieldNames) == null ? void 0 : v.name) || "size");
2265
+ return u && ae(u) && (u = Ot(u)), u && !W(u) && Ce(u) && o(u) && (u = [u]), W(u) ? R(_(u, (c) => o(c)), (c) => {
2266
+ var h, m, g;
2267
+ const s = y(c, ((h = e.fieldNames) == null ? void 0 : h.id) || "id"), d = y(c, ((m = e.fieldNames) == null ? void 0 : m.name) || "name"), b = y(c, ((g = e.fieldNames) == null ? void 0 : g.name) || "size");
2206
2268
  return {
2207
2269
  ...c,
2208
- id: i,
2209
- size: S,
2210
- name: s || i
2270
+ id: s,
2271
+ size: b,
2272
+ name: d || s
2211
2273
  };
2212
2274
  }) : [];
2213
2275
  }), n = (u) => {
2214
- a("titleClick", u);
2276
+ r("titleClick", u);
2215
2277
  };
2216
2278
  return () => {
2217
2279
  var u, c;
2218
2280
  return l("div", {
2219
2281
  class: "pro-upload-list"
2220
- }, [(u = t.start) == null ? void 0 : u.call(t), F(r.value, (i) => {
2221
- var s;
2282
+ }, [(u = t.start) == null ? void 0 : u.call(t), R(a.value, (s) => {
2283
+ var d;
2222
2284
  return l("div", {
2223
2285
  class: "pro-upload-list-item"
2224
2286
  }, [l("span", {
2225
2287
  class: "pro-upload-list-item-title",
2226
- onClick: () => n(i)
2227
- }, [i.name]), (s = t.extra) == null ? void 0 : s.call(t, i)]);
2288
+ onClick: () => n(s)
2289
+ }, [s.name]), (d = t.extra) == null ? void 0 : d.call(t, s)]);
2228
2290
  }), (c = t.default) == null ? void 0 : c.call(t)]);
2229
2291
  };
2230
2292
  }
2231
- }), Er = (e, t) => {
2232
- !e || !t || Pt(t) || pe(e) || Z(t, (a, o) => {
2233
- const r = It(o, e);
2234
- if (!Tt(r)) {
2293
+ }), Mr = (e, t) => {
2294
+ !e || !t || gt(t) || pe(e) || Z(t, (r, o) => {
2295
+ const a = Et(o, e);
2296
+ if (!Mt(a)) {
2235
2297
  console.log("ConfigExtra\uFF1A\u8865\u5145\u5BF9\u8C61key\u8F6C\u6362\u5931\u8D25", e.elementId, o);
2236
2298
  return;
2237
2299
  }
2238
- if (!Nt(r, e)) {
2239
- console.log("ConfigExtra\uFF1A\u8865\u5145\u5BF9\u8C61key\u672A\u627E\u5230\u7236\u7EA7", e.elementId, o, "->", r);
2300
+ if (!Tt(a, e)) {
2301
+ console.log("ConfigExtra\uFF1A\u8865\u5145\u5BF9\u8C61key\u672A\u627E\u5230\u7236\u7EA7", e.elementId, o, "->", a);
2240
2302
  return;
2241
2303
  }
2242
- ce(e, r, a);
2304
+ ce(e, a, r);
2243
2305
  });
2244
2306
  }, Se = (e, t) => {
2245
- Er(e, m(t, e.elementId));
2246
- const a = m(e, ["highConfig$", "registerPropsTrans"]);
2247
- a && Q(a) > 0 && Z(a, (o) => {
2248
- const r = m(e.elementProps, o.name);
2249
- G(r) ? Z(r, (n) => {
2307
+ Mr(e, y(t, e.elementId));
2308
+ const r = y(e, ["highConfig$", "registerPropsTrans"]);
2309
+ r && Y(r) > 0 && Z(r, (o) => {
2310
+ const a = y(e.elementProps, o.name);
2311
+ W(a) ? Z(a, (n) => {
2250
2312
  Se(n, t);
2251
- }) : Se(r, t);
2252
- }), e.children && Q(e.children) > 0 && Z(e.children, (o) => {
2313
+ }) : Se(a, t);
2314
+ }), e.children && Y(e.children) > 0 && Z(e.children, (o) => {
2253
2315
  Se(o, t);
2254
2316
  });
2255
- }, Mr = O({
2317
+ }, Tr = D({
2256
2318
  props: {
2257
2319
  initExecuteList: {
2258
2320
  type: Array
@@ -2266,28 +2328,28 @@ const sr = () => ({
2266
2328
  e.initExecuteList && t(e.initExecuteList, []);
2267
2329
  }, []), () => null;
2268
2330
  }
2269
- }), Sa = ({
2331
+ }), Pa = ({
2270
2332
  actors: e,
2271
2333
  configData: t,
2272
- configDataExtra: a,
2334
+ configDataExtra: r,
2273
2335
  Logic: o
2274
- }) => O(() => {
2275
- const r = _(), n = (i) => {
2276
- const s = Et(i);
2277
- return a && (G(s) ? Z(s, (S) => Se(S, a)) : Se(s, a)), s;
2336
+ }) => D(() => {
2337
+ const a = X(), n = (s) => {
2338
+ const d = pt(s);
2339
+ return r && (W(d) ? Z(d, (b) => Se(b, r)) : Se(d, r)), d;
2278
2340
  };
2279
2341
  oe(() => {
2280
- t && t.elementConfigs && (r.value = n(t.elementConfigs)), t != null && t.elementConfigs;
2342
+ t && t.elementConfigs && (a.value = n(t.elementConfigs)), t != null && t.elementConfigs;
2281
2343
  }, []);
2282
- const c = J()(q.LoadingKey);
2283
- return () => r.value ? l(we, {
2344
+ const c = J()(B.LoadingKey);
2345
+ return () => a.value ? l(we, {
2284
2346
  initState: t == null ? void 0 : t.initState,
2285
2347
  storeKeys: t == null ? void 0 : t.storeKeys,
2286
2348
  actors: e,
2287
2349
  requests: t == null ? void 0 : t.requests,
2288
- elementConfigs: r.value
2350
+ elementConfigs: a.value
2289
2351
  }, {
2290
- default: () => [l(Mr, null, null), o && l(o, null, null)]
2352
+ default: () => [l(Tr, null, null), o && l(o, null, null)]
2291
2353
  }) : c ? l(c, {
2292
2354
  loading: !0
2293
2355
  }, {
@@ -2295,9 +2357,9 @@ const sr = () => ({
2295
2357
  class: "pro-module-loading-dom"
2296
2358
  }, null)]
2297
2359
  }) : null;
2298
- }), en = Symbol("pro-curd"), re = () => ye(en), Ir = (e) => me(en, e);
2299
- var K = /* @__PURE__ */ ((e) => (e.LIST = "LIST", e.DETAIL = "DETAIL", e.ADD = "ADD", e.EDIT = "EDIT", e.DELETE = "DELETE", e))(K || {}), U = /* @__PURE__ */ ((e) => (e.EMIT = "EMIT", e.EXECUTE = "EXECUTE", e.PAGE = "PAGE", e.SUCCESS = "SUCCESS", e.FAIL = "FAIL", e))(U || {}), de = /* @__PURE__ */ ((e) => (e.ADD = "ADD", e.EDIT = "EDIT", e.DETAIL = "DETAIL", e))(de || {}), Te = /* @__PURE__ */ ((e) => (e.NORMAL = "NORMAL", e.CONTINUE = "CONTINUE", e))(Te || {});
2300
- const Tr = () => ({
2360
+ }), Zt = Symbol("pro-curd"), re = () => ye(Zt), Ir = (e) => me(Zt, e);
2361
+ var K = /* @__PURE__ */ ((e) => (e.LIST = "LIST", e.DETAIL = "DETAIL", e.ADD = "ADD", e.EDIT = "EDIT", e.DELETE = "DELETE", e))(K || {}), U = /* @__PURE__ */ ((e) => (e.EMIT = "EMIT", e.EXECUTE = "EXECUTE", e.PAGE = "PAGE", e.SUCCESS = "SUCCESS", e.FAIL = "FAIL", e))(U || {}), de = /* @__PURE__ */ ((e) => (e.ADD = "ADD", e.EDIT = "EDIT", e.DETAIL = "DETAIL", e))(de || {}), Ie = /* @__PURE__ */ ((e) => (e.NORMAL = "NORMAL", e.CONTINUE = "CONTINUE", e))(Ie || {});
2362
+ const Nr = () => ({
2301
2363
  rowKey: {
2302
2364
  type: String,
2303
2365
  default: "id"
@@ -2320,322 +2382,320 @@ const Tr = () => ({
2320
2382
  modalProps: {
2321
2383
  type: Object
2322
2384
  }
2323
- }), tn = ["sendCurdEvent", "refreshList", "sendEvent", "sendRequest"], yt = O({
2385
+ }), en = ["sendCurdEvent", "refreshList", "sendEvent", "sendRequest"], ft = D({
2324
2386
  props: {
2325
2387
  ...ve,
2326
- ...Tr()
2388
+ ...Nr()
2327
2389
  },
2328
2390
  setup: (e, {
2329
2391
  slots: t,
2330
- expose: a
2392
+ expose: r
2331
2393
  }) => {
2332
2394
  const {
2333
2395
  elementMap: o,
2334
- state: r,
2396
+ state: a,
2335
2397
  sendEvent: n,
2336
2398
  sendRequest: u
2337
- } = he(), c = N(() => Fe(e.columns, e.columnState, e.columnState2)), i = (M) => Je(e.formElementMap, M), s = (M, T) => Ze(o, M, T), S = (M, T) => {
2338
- const x = Y(c.value, (k) => {
2339
- const P = m(k, ["extra", M]) || m(k, M);
2340
- return T ? P !== !1 : P;
2399
+ } = he(), c = N(() => Le(e.columns, e.columnState, e.columnState2)), s = (M, k) => {
2400
+ const Q = _(c.value, (q) => {
2401
+ const $ = y(q, ["extra", M]) || y(q, M);
2402
+ return k ? $ !== !1 : $;
2341
2403
  });
2342
- return Ct(x, (k) => m(k, ["extra", `${M}Sort`]) || m(k, `${M}Sort`));
2343
- }, h = N(() => S("form", !0)), y = N(() => S("detail", !0)), v = N(() => S("table", !0)), E = N(() => S("search"));
2344
- let f;
2345
- const p = (M) => {
2404
+ return Pt(Q, (q) => y(q, ["extra", `${M}Sort`]) || y(q, `${M}Sort`));
2405
+ }, d = N(() => s("form", !0)), b = N(() => s("detail", !0)), h = N(() => s("table", !0)), m = N(() => s("search"));
2406
+ let g;
2407
+ const S = (M) => {
2346
2408
  u(K.LIST, {
2347
- ...f,
2409
+ ...g,
2348
2410
  ...M
2349
2411
  });
2350
- }, b = (M) => {
2412
+ }, f = (M) => {
2351
2413
  n({
2352
2414
  type: M.action,
2353
- payload: $(M, "action", "source"),
2415
+ payload: O(M, "action", "source"),
2354
2416
  source: M.source
2355
2417
  });
2356
2418
  };
2357
- Qe(({
2419
+ Ye(({
2358
2420
  type: M,
2359
- payload: T,
2360
- source: x
2421
+ payload: k,
2422
+ source: Q
2361
2423
  }) => {
2362
- if (x)
2424
+ if (Q)
2363
2425
  return;
2364
- let k = M, P = T == null ? void 0 : T.type;
2365
- k === Me.Success && (k = m(T, ["requestOpts", "action"]), P = U.SUCCESS);
2426
+ let q = M, $ = k == null ? void 0 : k.type;
2427
+ q === Me.Success && (q = y(k, ["requestOpts", "action"]), $ = U.SUCCESS);
2366
2428
  const {
2367
- values: g,
2368
- record: w
2369
- } = T;
2370
- switch (k) {
2429
+ values: A,
2430
+ record: v
2431
+ } = k;
2432
+ switch (q) {
2371
2433
  case K.LIST:
2372
- P === U.EMIT && (f = g, p());
2434
+ $ === U.EMIT && (g = A, S());
2373
2435
  return;
2374
2436
  case K.ADD:
2375
- P === U.EXECUTE && u(K.ADD, g, r.detailData);
2437
+ $ === U.EXECUTE && u(K.ADD, A, a.detailData);
2376
2438
  return;
2377
2439
  case K.EDIT:
2378
- P === U.EXECUTE && u(K.EDIT, g, r.detailData);
2440
+ $ === U.EXECUTE && u(K.EDIT, A, a.detailData);
2379
2441
  return;
2380
2442
  case K.DELETE:
2381
- P === U.EMIT ? u(K.DELETE, w, e.rowKey) : P === U.SUCCESS && p();
2443
+ $ === U.EMIT ? u(K.DELETE, v, e.rowKey) : $ === U.SUCCESS && S();
2382
2444
  return;
2383
2445
  }
2384
- k && M === U.EXECUTE && u(k, g);
2446
+ q && M === U.EXECUTE && u(q, A);
2385
2447
  });
2386
- const d = ne(e.operates, (M, T) => ({
2448
+ const p = ne(e.operates, (M, k) => ({
2387
2449
  ...M,
2388
- [T.action]: T
2389
- }), {}), C = (M) => m(d, M), I = N(() => e.listProps), L = N(() => e.formProps), B = N(() => e.descProps), R = N(() => e.modalProps);
2450
+ [k.action]: k
2451
+ }), {}), C = (M) => y(p, M), i = N(() => e.listProps), P = N(() => e.formProps), E = N(() => e.descProps), I = N(() => e.modalProps);
2390
2452
  return Ir({
2391
2453
  columns: c,
2392
- getSignColumns: S,
2393
- getFormItemVNode: i,
2394
- getItemVNode: s,
2454
+ getSignColumns: s,
2395
2455
  elementMap: o,
2396
2456
  formElementMap: e.formElementMap,
2397
2457
  rowKey: e.rowKey,
2398
- curdState: r,
2399
- formColumns: h,
2400
- descColumns: y,
2401
- tableColumns: v,
2402
- searchColumns: E,
2403
- sendCurdEvent: b,
2458
+ curdState: a,
2459
+ formColumns: d,
2460
+ descColumns: b,
2461
+ tableColumns: h,
2462
+ searchColumns: m,
2463
+ sendCurdEvent: f,
2404
2464
  operates: e.operates,
2405
2465
  getOperate: C,
2406
- refreshList: p,
2407
- listProps: I,
2408
- formProps: L,
2409
- descProps: B,
2410
- modalProps: R
2411
- }), a({
2412
- sendCurdEvent: b,
2413
- refreshList: p
2466
+ refreshList: S,
2467
+ listProps: i,
2468
+ formProps: P,
2469
+ descProps: E,
2470
+ modalProps: I
2471
+ }), r({
2472
+ sendCurdEvent: f,
2473
+ refreshList: S
2414
2474
  }), () => {
2415
2475
  var M;
2416
2476
  return (M = t.default) == null ? void 0 : M.call(t);
2417
2477
  };
2418
2478
  }
2419
- }), He = O({
2479
+ }), ze = D({
2420
2480
  props: {
2421
- ...$(we.props, "state", "requests"),
2422
- ...yt.props,
2481
+ ...O(we.props, "state", "requests"),
2482
+ ...ft.props,
2423
2483
  curdState: {
2424
2484
  type: Object
2425
2485
  }
2426
2486
  },
2427
2487
  setup: (e, {
2428
2488
  slots: t,
2429
- expose: a
2489
+ expose: r
2430
2490
  }) => {
2431
2491
  const {
2432
2492
  elementMap: o,
2433
- formElementMap: r
2434
- } = ee(), n = _(), u = _(), c = e.curdState || Ne({
2493
+ formElementMap: a
2494
+ } = ee(), n = X(), u = X(), c = e.curdState || Ne({
2435
2495
  detailData: {}
2436
- }), i = {
2496
+ }), s = {
2437
2497
  [K.LIST]: {
2438
- convertParams: (y) => y,
2439
- convertData: (y) => {
2440
- var v;
2441
- return (v = y.res) == null ? void 0 : v.data;
2498
+ convertParams: (m) => m,
2499
+ convertData: (m) => {
2500
+ var g;
2501
+ return (g = m.res) == null ? void 0 : g.data;
2442
2502
  },
2443
2503
  loadingName: "listLoading",
2444
2504
  stateName: "listData"
2445
2505
  },
2446
2506
  [K.DETAIL]: {
2447
- convertParams: (y, v) => z(y, v),
2448
- convertData: (y) => {
2449
- var v;
2450
- return (v = y.res) == null ? void 0 : v.data;
2507
+ convertParams: (m, g) => z(m, g),
2508
+ convertData: (m) => {
2509
+ var g;
2510
+ return (g = m.res) == null ? void 0 : g.data;
2451
2511
  },
2452
2512
  loadingName: "detailLoading",
2453
2513
  stateName: "detailData",
2454
2514
  label: "\u8BE6\u60C5"
2455
2515
  },
2456
2516
  [K.ADD]: {
2457
- convertParams: (y, v) => ({
2517
+ convertParams: (m, g) => ({
2458
2518
  body: {
2459
- ...v,
2460
- ...y
2519
+ ...g,
2520
+ ...m
2461
2521
  }
2462
2522
  }),
2463
2523
  loadingName: "operateLoading",
2464
2524
  label: "\u6DFB\u52A0"
2465
2525
  },
2466
2526
  [K.EDIT]: {
2467
- convertParams: (y, v) => ({
2527
+ convertParams: (m, g) => ({
2468
2528
  body: {
2469
- ...v,
2470
- ...y
2529
+ ...g,
2530
+ ...m
2471
2531
  }
2472
2532
  }),
2473
2533
  loadingName: "operateLoading",
2474
2534
  label: "\u7F16\u8F91"
2475
2535
  },
2476
2536
  [K.DELETE]: {
2477
- convertParams: (y, v) => z(y, v),
2537
+ convertParams: (m, g) => z(m, g),
2478
2538
  label: "\u5220\u9664"
2479
2539
  }
2480
- }, s = F(e.operates, (y) => {
2540
+ }, d = R(e.operates, (m) => {
2481
2541
  var f;
2482
- const v = m(i, y.action), E = ((f = e.convertOperate) == null ? void 0 : f.call(e, y, v)) || y;
2542
+ const g = y(s, m.action), S = ((f = e.convertOperate) == null ? void 0 : f.call(e, m, g)) || m;
2483
2543
  return {
2484
- ...v,
2485
- ...E
2544
+ ...g,
2545
+ ...S
2486
2546
  };
2487
- }), S = Y(s, (y) => y.actor), h = H($(we.props, "state", "requests"));
2488
- return a({
2489
- sendCurdEvent: (y) => {
2490
- var v;
2491
- (v = u.value) == null || v.sendCurdEvent(y);
2547
+ }), b = _(d, (m) => m.actor), h = H(O(we.props, "state", "requests"));
2548
+ return r({
2549
+ sendCurdEvent: (m) => {
2550
+ var g;
2551
+ (g = u.value) == null || g.sendCurdEvent(m);
2492
2552
  },
2493
- refreshList: (y) => {
2494
- var v;
2495
- (v = u.value) == null || v.refreshList(y);
2553
+ refreshList: (m) => {
2554
+ var g;
2555
+ (g = u.value) == null || g.refreshList(m);
2496
2556
  },
2497
- sendEvent: (y) => {
2498
- var v;
2499
- (v = n.value) == null || v.sendEvent(y);
2557
+ sendEvent: (m) => {
2558
+ var g;
2559
+ (g = n.value) == null || g.sendEvent(m);
2500
2560
  },
2501
- sendRequest: (y, ...v) => {
2502
- var E;
2503
- (E = n.value) == null || E.sendRequest(y, ...v);
2561
+ sendRequest: (m, ...g) => {
2562
+ var S;
2563
+ (S = n.value) == null || S.sendRequest(m, ...g);
2504
2564
  }
2505
- }), () => l(we, A({
2565
+ }), () => l(we, x({
2506
2566
  ref: n
2507
2567
  }, z(e, h), {
2508
2568
  elementMap: e.elementMap || o,
2509
2569
  state: c,
2510
- requests: S
2570
+ requests: b
2511
2571
  }), {
2512
- default: () => [l(yt, A({
2572
+ default: () => [l(ft, x({
2513
2573
  ref: u
2514
- }, $(e, ...h, "curdState", "operates", "convertOperate"), {
2515
- formElementMap: e.formElementMap || r,
2516
- operates: s
2574
+ }, O(e, ...h, "curdState", "operates", "convertOperate"), {
2575
+ formElementMap: e.formElementMap || a,
2576
+ operates: d
2517
2577
  }), t)]
2518
2578
  });
2519
2579
  }
2520
- }), Nr = () => ({
2580
+ }), Ar = () => ({
2521
2581
  defaultAddRecord: {
2522
2582
  type: Object
2523
2583
  }
2524
- }), Be = O({
2584
+ }), Be = D({
2525
2585
  props: {
2526
- ...Nr()
2586
+ ...Ar()
2527
2587
  },
2528
2588
  setup: (e) => {
2529
- var v;
2589
+ var g;
2530
2590
  const {
2531
2591
  dispatch: t,
2532
- sendRequest: a
2592
+ sendRequest: r
2533
2593
  } = he(), {
2534
2594
  rowKey: o,
2535
- curdState: r,
2595
+ curdState: a,
2536
2596
  listProps: n,
2537
2597
  getOperate: u,
2538
2598
  refreshList: c
2539
- } = re(), i = (v = n == null ? void 0 : n.value) == null ? void 0 : v.pageState, s = (E) => {
2599
+ } = re(), s = (g = n == null ? void 0 : n.value) == null ? void 0 : g.pageState, d = (S) => {
2540
2600
  const f = u(K.DETAIL);
2541
- f != null && f.actor ? a(K.DETAIL, E, o) : t({
2601
+ f != null && f.actor ? r(K.DETAIL, S, o) : t({
2542
2602
  type: "detailData",
2543
- payload: Et(E)
2603
+ payload: pt(S)
2544
2604
  });
2545
- }, S = (E, {
2605
+ }, b = (S, {
2546
2606
  record: f
2547
2607
  }) => {
2548
- E === U.EMIT && (t({
2608
+ S === U.EMIT && (t({
2549
2609
  type: "mode",
2550
2610
  payload: de.DETAIL
2551
- }), s(f));
2552
- }, h = (E) => {
2553
- E === U.EMIT ? (t({
2611
+ }), d(f));
2612
+ }, h = (S) => {
2613
+ S === U.EMIT ? (t({
2554
2614
  type: "mode",
2555
2615
  payload: de.ADD
2556
2616
  }), t({
2557
2617
  type: "detailData",
2558
2618
  payload: e.defaultAddRecord || {}
2559
- })) : E === U.SUCCESS && (i && (i.page = 1), c(), r.addAction === Te.CONTINUE ? t({
2619
+ })) : S === U.SUCCESS && (s && (s.page = 1), c(), a.addAction === Ie.CONTINUE ? t({
2560
2620
  type: "detailData",
2561
2621
  payload: e.defaultAddRecord || {}
2562
2622
  }) : t({
2563
2623
  type: "mode",
2564
2624
  payload: void 0
2565
2625
  }));
2566
- }, y = (E, {
2626
+ }, m = (S, {
2567
2627
  record: f
2568
2628
  }) => {
2569
- E === U.EMIT ? (t({
2629
+ S === U.EMIT ? (t({
2570
2630
  type: "mode",
2571
2631
  payload: de.EDIT
2572
- }), s(f)) : E === U.SUCCESS && (t({
2632
+ }), d(f)) : S === U.SUCCESS && (t({
2573
2633
  type: "mode",
2574
2634
  payload: void 0
2575
2635
  }), c());
2576
2636
  };
2577
- return Qe(({
2578
- type: E,
2637
+ return Ye(({
2638
+ type: S,
2579
2639
  payload: f,
2580
2640
  source: p
2581
2641
  }) => {
2582
2642
  if (p)
2583
2643
  return;
2584
- let b = E, d = f == null ? void 0 : f.type;
2585
- const C = f == null ? void 0 : f.record;
2586
- switch (b === Me.Success && (b = m(f, ["requestOpts", "action"]), d = U.SUCCESS), b) {
2644
+ let C = S, i = f == null ? void 0 : f.type;
2645
+ const P = f == null ? void 0 : f.record;
2646
+ switch (C === Me.Success && (C = y(f, ["requestOpts", "action"]), i = U.SUCCESS), C) {
2587
2647
  case K.DETAIL:
2588
- S(d, {
2589
- record: C
2648
+ b(i, {
2649
+ record: P
2590
2650
  });
2591
2651
  break;
2592
2652
  case K.ADD:
2593
- h(d);
2653
+ h(i);
2594
2654
  break;
2595
2655
  case K.EDIT:
2596
- y(d, {
2597
- record: C
2656
+ m(i, {
2657
+ record: P
2598
2658
  });
2599
2659
  break;
2600
2660
  }
2601
2661
  }), () => null;
2602
2662
  }
2603
- }), Pa = O({
2663
+ }), pa = D({
2604
2664
  props: {
2605
- ...He.props,
2665
+ ...ze.props,
2606
2666
  ...Be.props
2607
2667
  },
2608
2668
  setup: (e, {
2609
2669
  slots: t,
2610
- expose: a
2670
+ expose: r
2611
2671
  }) => {
2612
- const o = _();
2613
- a(be(tn, o));
2614
- const r = H(Be.props), u = J()(q.ProCurdKey);
2615
- return () => u ? l(u, A({
2672
+ const o = X();
2673
+ r(be(en, o));
2674
+ const a = H(Be.props), u = J()(B.ProCurdKey);
2675
+ return () => u ? l(u, x({
2616
2676
  ref: o
2617
- }, $(e, r)), {
2677
+ }, O(e, a)), {
2618
2678
  default: () => {
2619
2679
  var c;
2620
- return [l(Be, z(e, r), null), (c = t.default) == null ? void 0 : c.call(t)];
2680
+ return [l(Be, z(e, a), null), (c = t.default) == null ? void 0 : c.call(t)];
2621
2681
  }
2622
2682
  }) : null;
2623
2683
  }
2624
- }), $r = () => ({
2684
+ }), Or = () => ({
2625
2685
  defaultAddRecord: {
2626
2686
  type: Object
2627
2687
  },
2628
2688
  routeBack: {
2629
2689
  type: Function
2630
2690
  }
2631
- }), qe = O({
2691
+ }), qe = D({
2632
2692
  props: {
2633
- ...$r()
2693
+ ...Or()
2634
2694
  },
2635
2695
  setup: (e) => {
2636
- const t = Xe(), a = _e(), {
2696
+ const t = Ge(), r = Xe(), {
2637
2697
  dispatch: o,
2638
- sendRequest: r
2698
+ sendRequest: a
2639
2699
  } = he(), {
2640
2700
  rowKey: n,
2641
2701
  curdState: u
@@ -2653,120 +2713,120 @@ const Tr = () => ({
2653
2713
  type: "addAction",
2654
2714
  payload: void 0
2655
2715
  }));
2656
- }, i = (h, {
2657
- record: y
2716
+ }, s = (h, {
2717
+ record: m
2658
2718
  }) => {
2659
2719
  h === U.EMIT ? t.push({
2660
- path: `${a.path}/detail`,
2661
- query: z(y, n)
2720
+ path: `${r.path}/detail`,
2721
+ query: z(m, n)
2662
2722
  }) : h === U.PAGE && (o({
2663
2723
  type: "mode",
2664
2724
  payload: de.DETAIL
2665
- }), r(K.DETAIL, a.query, n));
2666
- }, s = (h) => {
2725
+ }), a(K.DETAIL, r.query, n));
2726
+ }, d = (h) => {
2667
2727
  h === U.EMIT ? t.push({
2668
- path: `${a.path}/add`
2728
+ path: `${r.path}/add`
2669
2729
  }) : h === U.PAGE ? (o({
2670
2730
  type: "mode",
2671
2731
  payload: de.ADD
2672
2732
  }), o({
2673
2733
  type: "detailData",
2674
2734
  payload: e.defaultAddRecord || {}
2675
- })) : h === U.SUCCESS && (u.addAction === Te.CONTINUE ? o({
2735
+ })) : h === U.SUCCESS && (u.addAction === Ie.CONTINUE ? o({
2676
2736
  type: "detailData",
2677
2737
  payload: e.defaultAddRecord || {}
2678
2738
  }) : e.routeBack ? e.routeBack(K.ADD) : t.go(-1));
2679
- }, S = (h, {
2680
- record: y
2739
+ }, b = (h, {
2740
+ record: m
2681
2741
  }) => {
2682
2742
  h === U.EMIT ? t.push({
2683
- path: `${a.path}/edit`,
2684
- query: z(y, n)
2743
+ path: `${r.path}/edit`,
2744
+ query: z(m, n)
2685
2745
  }) : h === U.PAGE ? (o({
2686
2746
  type: "mode",
2687
2747
  payload: de.EDIT
2688
- }), r(K.DETAIL, a.query, n)) : h === U.SUCCESS && (e.routeBack ? e.routeBack(K.EDIT) : t.go(-1));
2748
+ }), a(K.DETAIL, r.query, n)) : h === U.SUCCESS && (e.routeBack ? e.routeBack(K.EDIT) : t.go(-1));
2689
2749
  };
2690
- return Qe(({
2750
+ return Ye(({
2691
2751
  type: h,
2692
- payload: y,
2693
- source: v
2752
+ payload: m,
2753
+ source: g
2694
2754
  }) => {
2695
- if (v)
2755
+ if (g)
2696
2756
  return;
2697
- let E = h, f = y == null ? void 0 : y.type;
2698
- const p = y == null ? void 0 : y.record;
2699
- switch (E === Me.Success && (E = m(y, ["requestOpts", "action"]), f = U.SUCCESS), E) {
2757
+ let S = h, f = m == null ? void 0 : m.type;
2758
+ const p = m == null ? void 0 : m.record;
2759
+ switch (S === Me.Success && (S = y(m, ["requestOpts", "action"]), f = U.SUCCESS), S) {
2700
2760
  case K.LIST:
2701
2761
  c(f);
2702
2762
  break;
2703
2763
  case K.DETAIL:
2704
- i(f, {
2764
+ s(f, {
2705
2765
  record: p
2706
2766
  });
2707
2767
  break;
2708
2768
  case K.ADD:
2709
- s(f);
2769
+ d(f);
2710
2770
  break;
2711
2771
  case K.EDIT:
2712
- S(f, {
2772
+ b(f, {
2713
2773
  record: p
2714
2774
  });
2715
2775
  break;
2716
2776
  }
2717
2777
  }), () => null;
2718
2778
  }
2719
- }), pa = O({
2779
+ }), Ca = D({
2720
2780
  props: {
2721
- ...He.props,
2781
+ ...ze.props,
2722
2782
  ...qe.props
2723
2783
  },
2724
2784
  setup: (e, {
2725
2785
  slots: t,
2726
- expose: a
2786
+ expose: r
2727
2787
  }) => {
2728
- const o = _();
2729
- a(be(tn, o));
2730
- const r = H(qe.props);
2731
- return () => l(He, A({
2788
+ const o = X();
2789
+ r(be(en, o));
2790
+ const a = H(qe.props);
2791
+ return () => l(ze, x({
2732
2792
  ref: o
2733
- }, $(e, r)), {
2793
+ }, O(e, a)), {
2734
2794
  default: () => {
2735
2795
  var n;
2736
- return [l(qe, z(e, r), null), (n = t.default) == null ? void 0 : n.call(t)];
2796
+ return [l(qe, z(e, a), null), (n = t.default) == null ? void 0 : n.call(t)];
2737
2797
  }
2738
2798
  });
2739
2799
  }
2740
- }), vt = O({
2800
+ }), mt = D({
2741
2801
  props: {
2742
2802
  buttonProps: Object
2743
2803
  },
2744
2804
  setup: (e, {
2745
2805
  slots: t
2746
2806
  }) => {
2747
- const a = Qt(), {
2807
+ const r = Yt(), {
2748
2808
  getOperate: o,
2749
- sendCurdEvent: r
2809
+ sendCurdEvent: a
2750
2810
  } = re(), n = o(K.ADD), u = () => {
2751
2811
  if (n != null && n.onClick) {
2752
2812
  n.onClick();
2753
2813
  return;
2754
2814
  }
2755
- r({
2815
+ a({
2756
2816
  action: K.ADD,
2757
2817
  type: U.EMIT
2758
2818
  });
2759
- }, i = J()(q.ButtonKey);
2760
- return () => !n || !a(n.per, n.perSuffix) || !(W(n.show) ? n.show({}) : n.show) ? null : n.element ? n.element({}, n) : t.default ? t.default(n, u) : i ? l(i, A({
2819
+ }, s = J()(B.ButtonKey);
2820
+ return () => !n || !r(n.per, n.perSuffix) || !(V(n.show) ? n.show({}) : n.show) ? null : n.element ? n.element({}, n) : t.default ? t.default(n, u) : s ? l(s, x({
2761
2821
  class: "pro-curd-add-button",
2762
- disabled: W(n.disabled) ? n.disabled() : n.disabled
2822
+ disabled: V(n.disabled) ? n.disabled() : n.disabled
2763
2823
  }, e.buttonProps, {
2764
2824
  onClick: u
2765
2825
  }), {
2766
2826
  default: () => [n.label]
2767
2827
  }) : null;
2768
2828
  }
2769
- }), ht = () => ({
2829
+ }), yt = () => ({
2770
2830
  addConfig: {
2771
2831
  type: Object,
2772
2832
  default: {
@@ -2777,136 +2837,136 @@ const Tr = () => ({
2777
2837
  type: Boolean,
2778
2838
  default: !0
2779
2839
  }
2780
- }), Ar = O({
2840
+ }), $r = D({
2781
2841
  props: {
2782
- ...gr.props,
2783
- ...ht()
2842
+ ...Sr.props,
2843
+ ...yt()
2784
2844
  },
2785
2845
  setup: (e, {
2786
2846
  slots: t
2787
2847
  }) => {
2788
2848
  const {
2789
- elementMap: a,
2849
+ elementMap: r,
2790
2850
  formElementMap: o,
2791
- curdState: r,
2851
+ curdState: a,
2792
2852
  searchColumns: n,
2793
2853
  tableColumns: u,
2794
2854
  sendCurdEvent: c,
2795
- operates: i,
2796
- refreshList: s
2797
- } = re(), S = F(
2798
- Y(i, (d) => {
2799
- const C = d.action;
2800
- return C === K.DETAIL || C === K.EDIT || C === K.DELETE || d.tableOperate;
2855
+ operates: s,
2856
+ refreshList: d
2857
+ } = re(), b = R(
2858
+ _(s, (i) => {
2859
+ const P = i.action;
2860
+ return P === K.DETAIL || P === K.EDIT || P === K.DELETE || i.tableOperate;
2801
2861
  }),
2802
- (d) => {
2803
- const C = {
2804
- ...z(d, "label", "show", "disabled", "loading", "extraProps", "onClick", "element", "sort", "per", "perSuffix"),
2805
- value: d.action
2862
+ (i) => {
2863
+ const P = {
2864
+ ...z(i, "label", "show", "disabled", "loading", "extraProps", "onClick", "element", "sort", "per", "perSuffix"),
2865
+ value: i.action
2806
2866
  };
2807
- return C.onClick || (C.onClick = (I) => {
2867
+ return P.onClick || (P.onClick = (E) => {
2808
2868
  c({
2809
- action: d.action,
2869
+ action: i.action,
2810
2870
  type: U.EMIT,
2811
- record: I
2871
+ record: E
2812
2872
  });
2813
- }), C;
2873
+ }), P;
2814
2874
  }
2815
- ), h = (d) => {
2875
+ ), h = (i) => {
2816
2876
  c({
2817
2877
  action: K.LIST,
2818
2878
  type: U.EMIT,
2819
- values: d
2879
+ values: i
2820
2880
  });
2821
2881
  };
2822
- An(() => {
2823
- e.activatedRefresh && s();
2882
+ On(() => {
2883
+ e.activatedRefresh && d();
2824
2884
  });
2825
- const y = N(() => ({
2885
+ const m = N(() => ({
2826
2886
  formElementMap: o,
2827
2887
  columns: n.value,
2828
2888
  ...e.searchProps
2829
- })), v = N(() => {
2830
- var d, C;
2889
+ })), g = N(() => {
2890
+ var i, P;
2831
2891
  return {
2832
- elementMap: a,
2892
+ elementMap: r,
2833
2893
  columns: u.value,
2834
- loading: r.listLoading,
2835
- dataSource: (d = r.listData) == null ? void 0 : d.dataSource,
2836
- ...$(e.tableProps, "operate"),
2894
+ loading: a.listLoading,
2895
+ dataSource: (i = a.listData) == null ? void 0 : i.dataSource,
2896
+ ...O(e.tableProps, "operate"),
2837
2897
  operate: {
2838
- items: S,
2839
- ...(C = e.tableProps) == null ? void 0 : C.operate
2898
+ items: b,
2899
+ ...(P = e.tableProps) == null ? void 0 : P.operate
2840
2900
  }
2841
2901
  };
2842
- }), E = N(() => {
2843
- var d;
2902
+ }), S = N(() => {
2903
+ var i;
2844
2904
  return e.paginationProps === !1 ? !1 : {
2845
- total: (d = r.listData) == null ? void 0 : d.total,
2905
+ total: (i = a.listData) == null ? void 0 : i.total,
2846
2906
  ...e.paginationProps
2847
2907
  };
2848
- }), f = H(ht()), b = J()(q.ProListKey);
2908
+ }), f = H(yt()), C = J()(B.ProListKey);
2849
2909
  return () => {
2850
- var d, C;
2851
- return b ? l(b, A({
2910
+ var i, P;
2911
+ return C ? l(C, x({
2852
2912
  class: "pro-curd-list"
2853
- }, $(e, ...f, "searchProps", "tableProps", "paginationProps"), {
2854
- searchProps: y.value,
2855
- tableProps: v.value,
2856
- paginationProps: E.value,
2913
+ }, O(e, ...f, "searchProps", "tableProps", "paginationProps"), {
2914
+ searchProps: m.value,
2915
+ tableProps: g.value,
2916
+ paginationProps: S.value,
2857
2917
  onSearch: h
2858
2918
  }), {
2859
- "search-end": (d = e.addConfig) != null && d.inSearch ? () => {
2860
- var I;
2919
+ "search-end": (i = e.addConfig) != null && i.inSearch ? () => {
2920
+ var E;
2861
2921
  return l("div", {
2862
2922
  class: "pro-curd-list-search-end"
2863
- }, [l(vt, (I = e.addConfig) == null ? void 0 : I.buttonProps, null)]);
2923
+ }, [l(mt, (E = e.addConfig) == null ? void 0 : E.buttonProps, null)]);
2864
2924
  } : void 0,
2865
- "table-toolbarExtra": (C = e.addConfig) != null && C.inTable ? (I) => {
2866
- var L;
2867
- return l(ie, null, [l(vt, (L = e.addConfig) == null ? void 0 : L.buttonProps, null), I]);
2925
+ "table-toolbarExtra": (P = e.addConfig) != null && P.inTable ? (E) => {
2926
+ var I;
2927
+ return l(ie, null, [l(mt, (I = e.addConfig) == null ? void 0 : I.buttonProps, null), E]);
2868
2928
  } : void 0,
2869
2929
  ...t,
2870
- search: t.search ? (I) => t.search(I, y.value) : void 0,
2871
- table: t.table ? (I) => t.table(I, v.value) : void 0,
2872
- pagination: t.pagination ? (I) => t.pagination(I, E.value) : void 0
2930
+ search: t.search ? (E) => t.search(E, m.value) : void 0,
2931
+ table: t.table ? (E) => t.table(E, g.value) : void 0,
2932
+ pagination: t.pagination ? (E) => t.pagination(E, S.value) : void 0
2873
2933
  }) : null;
2874
2934
  };
2875
2935
  }
2876
- }), Ca = O(() => {
2936
+ }), Ea = D(() => {
2877
2937
  const {
2878
2938
  listProps: e
2879
2939
  } = re();
2880
- return () => l(Ar, $(e == null ? void 0 : e.value, "slots"), m(e == null ? void 0 : e.value, "slots"));
2881
- }), Or = () => ({
2940
+ return () => l($r, O(e == null ? void 0 : e.value, "slots"), y(e == null ? void 0 : e.value, "slots"));
2941
+ }), wr = () => ({
2882
2942
  signName: {
2883
2943
  type: String
2884
2944
  }
2885
- }), tt = O({
2945
+ }), Ze = D({
2886
2946
  props: {
2887
- ...Or()
2947
+ ...wr()
2888
2948
  },
2889
2949
  setup: (e, {
2890
2950
  slots: t,
2891
- expose: a,
2951
+ expose: r,
2892
2952
  attrs: o
2893
2953
  }) => {
2894
2954
  const {
2895
- elementMap: r,
2955
+ elementMap: a,
2896
2956
  formElementMap: n,
2897
2957
  curdState: u,
2898
2958
  formColumns: c,
2899
- getSignColumns: i,
2900
- sendCurdEvent: s
2901
- } = re(), S = _();
2902
- a(be(e.formMethods || [], S));
2903
- const h = N(() => e.signName ? i(e.signName) : c.value), y = () => {
2904
- var d;
2905
- u.addAction = Te.NORMAL, (d = S.value) == null || d.submit();
2906
- }, v = () => {
2907
- var d;
2908
- u.addAction = Te.CONTINUE, (d = S.value) == null || d.submit();
2909
- }, E = [
2959
+ getSignColumns: s,
2960
+ sendCurdEvent: d
2961
+ } = re(), b = X();
2962
+ r(be(e.formMethods || [], b));
2963
+ const h = N(() => e.signName ? s(e.signName) : c.value), m = () => {
2964
+ var i;
2965
+ u.addAction = Ie.NORMAL, (i = b.value) == null || i.submit();
2966
+ }, g = () => {
2967
+ var i;
2968
+ u.addAction = Ie.CONTINUE, (i = b.value) == null || i.submit();
2969
+ }, S = [
2910
2970
  {
2911
2971
  value: te.RESET,
2912
2972
  label: "\u91CD\u7F6E"
@@ -2926,70 +2986,70 @@ const Tr = () => ({
2926
2986
  },
2927
2987
  show: !1
2928
2988
  }
2929
- ], f = (d) => {
2930
- o.onFinish || (u.mode === K.EDIT ? s({
2989
+ ], f = (i) => {
2990
+ o.onFinish || (u.mode === K.EDIT ? d({
2931
2991
  action: K.EDIT,
2932
2992
  type: U.EXECUTE,
2933
- values: d
2934
- }) : s({
2993
+ values: i
2994
+ }) : d({
2935
2995
  action: K.ADD,
2936
2996
  type: U.EXECUTE,
2937
- values: d
2997
+ values: i
2938
2998
  }));
2939
- }, b = J()(q.ProFormKey);
2940
- return () => b ? l(b, A({
2941
- ref: S,
2999
+ }, C = J()(B.ProFormKey);
3000
+ return () => C ? l(C, x({
3001
+ ref: b,
2942
3002
  class: "pro-curd-form"
2943
- }, $(e, "operate"), {
2944
- elementMap: e.elementMap || r,
3003
+ }, O(e, "operate"), {
3004
+ elementMap: e.elementMap || a,
2945
3005
  formElementMap: e.formElementMap || n,
2946
3006
  columns: e.columns || h.value,
2947
3007
  readonly: u.mode === K.DETAIL,
2948
3008
  model: e.model || u.detailData,
2949
3009
  hideRequiredMark: u.mode === K.DETAIL,
2950
3010
  operate: e.operate ? {
2951
- items: E,
2952
- onSubmit: y,
2953
- onContinue: v,
3011
+ items: S,
3012
+ onSubmit: m,
3013
+ onContinue: g,
2954
3014
  ...e.operate
2955
3015
  } : void 0,
2956
3016
  onFinish: f
2957
3017
  }), t) : null;
2958
3018
  }
2959
- }), Ea = O(() => {
3019
+ }), Ma = D(() => {
2960
3020
  const {
2961
3021
  formProps: e
2962
3022
  } = re();
2963
- return () => l(tt, $(e == null ? void 0 : e.value, "slots"), m(e == null ? void 0 : e.value, "slots"));
2964
- }), wr = () => ({
3023
+ return () => l(Ze, O(e == null ? void 0 : e.value, "slots"), y(e == null ? void 0 : e.value, "slots"));
3024
+ }), Dr = () => ({
2965
3025
  signName: {
2966
3026
  type: String
2967
3027
  }
2968
- }), Dr = O({
3028
+ }), Fr = D({
2969
3029
  props: {
2970
- ...wr()
3030
+ ...Dr()
2971
3031
  },
2972
3032
  setup: (e, {
2973
3033
  slots: t
2974
3034
  }) => {
2975
3035
  const {
2976
- curdState: a,
3036
+ curdState: r,
2977
3037
  descColumns: o,
2978
- getSignColumns: r
2979
- } = re(), n = N(() => e.signName ? r(e.signName) : o.value);
2980
- return () => l(Sr, A($(e, "signName", "model", "columns"), {
2981
- model: e.model || a.detailData,
3038
+ getSignColumns: a
3039
+ } = re(), n = N(() => e.signName ? a(e.signName) : o.value);
3040
+ return () => l(Pr, x(O(e, "signName", "model", "columns"), {
3041
+ model: e.model || r.detailData,
2982
3042
  columns: n.value
2983
3043
  }), t);
2984
3044
  }
2985
- }), Ma = O(() => {
3045
+ }), Ta = D(() => {
2986
3046
  const {
2987
3047
  descProps: e
2988
3048
  } = re();
2989
- return () => l(Dr, A({
3049
+ return () => l(Fr, x({
2990
3050
  class: "pro-curd-desc"
2991
- }, $(e == null ? void 0 : e.value, "slots")), m(e == null ? void 0 : e.value, "slots"));
2992
- }), bt = () => ({
3051
+ }, O(e == null ? void 0 : e.value, "slots")), y(e == null ? void 0 : e.value, "slots"));
3052
+ }), vt = () => ({
2993
3053
  validMode: {
2994
3054
  type: Array,
2995
3055
  default: [K.ADD, K.DETAIL, K.EDIT]
@@ -3000,27 +3060,27 @@ const Tr = () => ({
3000
3060
  overrideProps: {
3001
3061
  type: Object
3002
3062
  }
3003
- }), nn = O({
3063
+ }), tn = D({
3004
3064
  props: {
3005
- ...bt()
3065
+ ...vt()
3006
3066
  },
3007
3067
  setup: (e, {
3008
3068
  slots: t
3009
3069
  }) => {
3010
- const a = J(), o = a(q.ModalKey), r = a(q.LoadingKey), {
3070
+ const r = J(), o = r(B.ModalKey), a = r(B.LoadingKey), {
3011
3071
  curdState: n,
3012
3072
  getOperate: u
3013
3073
  } = re(), c = () => {
3014
- n.mode = void 0, Mt(n.detailData, {}), n.detailLoading = !1, n.addAction = void 0;
3015
- }, i = H(bt());
3074
+ n.mode = void 0, Ct(n.detailData, {}), n.detailLoading = !1, n.addAction = void 0;
3075
+ }, s = H(vt());
3016
3076
  return () => {
3017
- var S;
3018
- const s = n.mode;
3019
- return !fe(e.validMode, (h) => h === s) || !o ? null : l(o, A({
3077
+ var b;
3078
+ const d = n.mode;
3079
+ return !fe(e.validMode, (h) => h === d) || !o ? null : l(o, x({
3020
3080
  class: "pro-curd-modal"
3021
- }, $(e, i), {
3022
- visible: fe(e.validMode, (h) => h === s),
3023
- title: e.title || ((S = u(n.mode)) == null ? void 0 : S.label),
3081
+ }, O(e, s), {
3082
+ visible: fe(e.validMode, (h) => h === d),
3083
+ title: e.title || ((b = u(n.mode)) == null ? void 0 : b.label),
3024
3084
  confirmLoading: n.operateLoading,
3025
3085
  maskClosable: n.mode === K.DETAIL,
3026
3086
  footer: n.mode === K.DETAIL ? !1 : void 0
@@ -3029,7 +3089,7 @@ const Tr = () => ({
3029
3089
  }), {
3030
3090
  default: () => {
3031
3091
  var h;
3032
- return [n.detailLoading && r ? l(r, A({
3092
+ return [n.detailLoading && a ? l(a, x({
3033
3093
  loading: !0
3034
3094
  }, e.loadingOpts), {
3035
3095
  default: () => [l("div", {
@@ -3037,11 +3097,11 @@ const Tr = () => ({
3037
3097
  }, null)]
3038
3098
  }) : (h = t.default) == null ? void 0 : h.call(t)];
3039
3099
  },
3040
- ...$(t, "default")
3100
+ ...O(t, "default")
3041
3101
  });
3042
3102
  };
3043
3103
  }
3044
- }), Ia = O({
3104
+ }), Ia = D({
3045
3105
  props: {
3046
3106
  modalProps: Object,
3047
3107
  formProps: Object
@@ -3049,137 +3109,137 @@ const Tr = () => ({
3049
3109
  setup: (e, {
3050
3110
  slots: t
3051
3111
  }) => {
3052
- const a = _(), o = se(t, "modal"), r = se(t, "form");
3053
- return () => l(nn, A(e.modalProps, {
3112
+ const r = X(), o = le(t, "modal"), a = le(t, "form");
3113
+ return () => l(tn, x(e.modalProps, {
3054
3114
  onOk: () => {
3055
3115
  var n;
3056
- (n = a.value) == null || n.submit();
3116
+ (n = r.value) == null || n.submit();
3057
3117
  }
3058
3118
  }), {
3059
- default: () => [l(tt, A({
3060
- ref: a
3061
- }, e.formProps), r)],
3119
+ default: () => [l(Ze, x({
3120
+ ref: r
3121
+ }, e.formProps), a)],
3062
3122
  ...o
3063
3123
  });
3064
3124
  }
3065
- }), Ta = O(() => {
3125
+ }), Na = D(() => {
3066
3126
  const {
3067
3127
  modalProps: e,
3068
3128
  formProps: t
3069
- } = re(), a = _();
3070
- return () => l(nn, A($(e == null ? void 0 : e.value, "slots"), {
3129
+ } = re(), r = X();
3130
+ return () => l(tn, x(O(e == null ? void 0 : e.value, "slots"), {
3071
3131
  onOk: () => {
3072
3132
  var o;
3073
- (o = a.value) == null || o.submit();
3133
+ (o = r.value) == null || o.submit();
3074
3134
  }
3075
3135
  }), {
3076
- default: () => [l(tt, A({
3077
- ref: a
3078
- }, $(t == null ? void 0 : t.value, "slots")), m(t == null ? void 0 : t.value, "slots"))],
3079
- ...m(e == null ? void 0 : e.value, "slots")
3136
+ default: () => [l(Ze, x({
3137
+ ref: r
3138
+ }, O(t == null ? void 0 : t.value, "slots")), y(t == null ? void 0 : t.value, "slots"))],
3139
+ ...y(e == null ? void 0 : e.value, "slots")
3080
3140
  });
3081
3141
  });
3082
3142
  export {
3083
- vt as AddButton,
3084
- dr as ColumnSetting,
3143
+ mt as AddButton,
3144
+ fr as ColumnSetting,
3085
3145
  K as CurdAction,
3086
- Te as CurdAddAction,
3146
+ Ie as CurdAddAction,
3087
3147
  de as CurdCurrentMode,
3088
- tn as CurdMethods,
3148
+ en as CurdMethods,
3089
3149
  U as CurdSubAction,
3090
- q as ElementKeys,
3150
+ B as ElementKeys,
3091
3151
  te as FormAction,
3092
- na as FormRulePrefixMap,
3093
- ua as LogonUser,
3094
- _t as LogonUserKey,
3095
- ca as MustLogon,
3152
+ ra as FormRulePrefixMap,
3153
+ ca as LogonUser,
3154
+ Xt as LogonUserKey,
3155
+ sa as MustLogon,
3096
3156
  la as PerSuffix,
3097
- sa as Permission,
3098
- Wr as ProConfig,
3099
- He as ProCurd,
3100
- Dr as ProCurdDesc,
3101
- Ma as ProCurdDescConnect,
3102
- tt as ProCurdForm,
3103
- Ea as ProCurdFormConnect,
3104
- Ar as ProCurdList,
3105
- Ca as ProCurdListConnect,
3106
- nn as ProCurdModal,
3157
+ ia as Permission,
3158
+ Gr as ProConfig,
3159
+ ze as ProCurd,
3160
+ Fr as ProCurdDesc,
3161
+ Ta as ProCurdDescConnect,
3162
+ Ze as ProCurdForm,
3163
+ Ma as ProCurdFormConnect,
3164
+ $r as ProCurdList,
3165
+ Ea as ProCurdListConnect,
3166
+ tn as ProCurdModal,
3107
3167
  Ia as ProCurdModalForm,
3108
- Ta as ProCurdModalFormConnect,
3109
- Sr as ProDesc,
3110
- ta as ProForm,
3111
- ea as ProFormList,
3168
+ Na as ProCurdModalFormConnect,
3169
+ Pr as ProDesc,
3170
+ na as ProForm,
3171
+ ta as ProFormList,
3112
3172
  ge as ProGrid,
3113
- ha as ProLayout,
3114
- gr as ProList,
3115
- Pa as ProModalCurd,
3173
+ ba as ProLayout,
3174
+ Sr as ProList,
3175
+ pa as ProModalCurd,
3116
3176
  we as ProModule,
3117
- Jt as ProOperate,
3118
- da as ProPage,
3119
- pa as ProPageCurd,
3120
- ra as ProSearchForm,
3121
- va as ProShowDate,
3122
- fa as ProShowDigit,
3123
- ma as ProShowOptions,
3177
+ Qt as ProOperate,
3178
+ fa as ProPage,
3179
+ Ca as ProPageCurd,
3180
+ aa as ProSearchForm,
3181
+ ha as ProShowDate,
3182
+ ma as ProShowDigit,
3183
+ ya as ProShowOptions,
3124
3184
  Re as ProShowText,
3125
- ya as ProShowTree,
3126
- ia as ProTable,
3127
- pr as ProTypography,
3128
- ga as ProUploadList,
3129
- ba as ProUploaderText,
3185
+ va as ProShowTree,
3186
+ da as ProTable,
3187
+ Cr as ProTypography,
3188
+ Sa as ProUploadList,
3189
+ ga as ProUploaderText,
3130
3190
  Me as RequestAction,
3131
3191
  Un as RouterMethods,
3132
- Le as SearchMode,
3133
- Yn as Wrapper,
3134
- qt as convertPathToList,
3192
+ Ke as SearchMode,
3193
+ Qn as Wrapper,
3194
+ Bt as convertPathToList,
3135
3195
  jn as convertResData,
3136
3196
  be as createExpose,
3137
- Zr as createExposeObj,
3138
- aa as createFormItemCompFn,
3139
- Sa as createModule,
3140
- Gr as createProConfig,
3141
- hr as defaultPage,
3142
- se as filterSlotsByPrefix,
3143
- le as getColumnFormItemName,
3144
- kt as getColumnValueType,
3145
- _n as getFirstPropName,
3146
- Je as getFormItemEl,
3147
- Ze as getItemEl,
3148
- ze as getRealRender,
3149
- er as getSignValue,
3150
- Zn as getValidValues,
3151
- Xn as isValidConfig,
3152
- Fe as mergeState,
3153
- Jr as mergeStateToList,
3197
+ ea as createExposeObj,
3198
+ oa as createFormItemCompFn,
3199
+ Pa as createModule,
3200
+ Xr as createProConfig,
3201
+ br as defaultPage,
3202
+ le as filterSlotsByPrefix,
3203
+ se as getColumnFormItemName,
3204
+ Rt as getColumnValueType,
3205
+ Yn as getFirstPropName,
3206
+ Xn as getRealRender,
3207
+ tr as getSignValue,
3208
+ er as getValidValues,
3209
+ _n as isValidConfig,
3210
+ Le as mergeState,
3211
+ Zr as mergeStateToList,
3154
3212
  ve as proBaseProps,
3155
3213
  Ir as provideProCurd,
3156
- Ht as provideProFormList,
3214
+ zt as provideProFormList,
3157
3215
  Wn as provideProModule,
3158
- Ie as renderElement,
3159
- et as renderElements,
3160
- ar as useAccess,
3161
- oa as useAccessMgr,
3216
+ Qe as renderColumn,
3217
+ Te as renderElement,
3218
+ Je as renderElements,
3219
+ jt as renderInputColumn,
3220
+ or as useAccess,
3221
+ ua as useAccessMgr,
3162
3222
  Rn as useComposeRequestActor,
3163
- Yr as useDispatchMeta,
3223
+ Qr as useDispatchMeta,
3164
3224
  Hn as useDispatchStore,
3165
- Xr as useDoneRequestActor,
3166
- _r as useFailedRequestActor,
3167
- nr as useFormSubmit,
3225
+ _r as useDoneRequestActor,
3226
+ Yr as useFailedRequestActor,
3227
+ rr as useFormSubmit,
3168
3228
  J as useGetCompByKey,
3169
- Yt as useHasPer,
3170
- Qt as useHasPer2,
3171
- or as useLogonUser,
3229
+ _t as useHasPer,
3230
+ Yt as useHasPer2,
3231
+ ur as useLogonUser,
3172
3232
  kn as useMetaRegister,
3173
- Qe as useModuleEvent,
3233
+ Ye as useModuleEvent,
3174
3234
  ee as useProConfig,
3175
3235
  re as useProCurd,
3176
- Gt as useProForm,
3177
- zt as useProFormList,
3178
- zr as useProModal,
3236
+ Wt as useProForm,
3237
+ Vt as useProFormList,
3238
+ Hr as useProModal,
3179
3239
  he as useProModule,
3180
- Vr as useProMsg,
3181
- Hr as useProNotify,
3182
- Rt as useProRouter,
3183
- fr as useProTable,
3184
- Qr as useReadStore
3240
+ zr as useProMsg,
3241
+ Wr as useProNotify,
3242
+ Kt as useProRouter,
3243
+ mr as useProTable,
3244
+ Jr as useReadStore
3185
3245
  };