@vue-start/pro 0.5.30 → 0.5.32

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