@vue-start/pro 0.5.30 → 0.5.31

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