@vue-start/pro 0.5.27 → 0.5.29

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