@vue-start/pro 0.5.26 → 0.5.27

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,10 +1,10 @@
1
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 te, get as f, map as F, isString as le, forEach as Q, endsWith as bt, 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 ht, 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 Ke, tap as xe, merge as sn, Subject as dn } from "rxjs";
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
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 we, convertCollection as It, useWatch as Nt, useUpdateKey as yn, useResizeObserver as ze, decimalFixed as vn, thousandDivision as bn, listToMap as hn, treeToMap as gn, getMenuTopNameMap as Sn, findTreeItem as nt, strToJson as At, jsonToStr as Pn, useState as rt } from "@vue-start/hooks";
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
6
  import { useRequestProvide as Ne, isDoneRequestActor as $t, isFailedRequestActor as Dt } from "@vue-start/request";
7
- import { useDispatchStore as Ot, useStore as Kt, useObservableRef as pn, useStoreConn as Cn, shallowEqual as En, createStateUse as Mn } from "@vue-start/store";
7
+ import { useDispatchStore as Ot, useStore as wt, useObservableRef as pn, useStoreConn as Cn, shallowEqual as En, createStateUse as Mn } 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";
@@ -22,13 +22,25 @@ const Tn = () => ({
22
22
  registerActors: { type: Array },
23
23
  registerMetas: { type: Array },
24
24
  convertRouter: { type: Function },
25
- expressionMethods: { type: Object }
26
- }), _e = Symbol("pro-config"), ne = () => fe(_e) || {}, Lr = A({
25
+ expressionMethods: { type: Object },
26
+ showMsg: { type: Object },
27
+ showModal: { type: Object },
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();
34
+ return (t) => e(t);
35
+ }, Fr = () => {
36
+ const { showNotify: e } = Z();
37
+ return (t) => e(t);
38
+ }, Rr = A({
27
39
  props: {
28
40
  ...In()
29
41
  },
30
42
  setup: (e, { slots: t }) => {
31
- const o = te(e.registerStores, (c, m) => ({ ...c, [m.key]: m }), {}), u = te(e.registerActors, (c, m) => ({ ...c, [m.actor.name]: m }), {}), n = te(e.registerMetas, (c, m) => ({ ...c, [m.actorName]: m }), {});
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 }), {});
32
44
  $n(n, u);
33
45
  const { dispatchRequest: r } = Ne(), a = (c, m, i) => {
34
46
  const p = f(u, c);
@@ -43,20 +55,23 @@ const Tn = () => ({
43
55
  registerActorMap: u,
44
56
  registerMetaMap: n,
45
57
  dispatchRequest: a,
46
- convertRouter: e.convertRouter
58
+ convertRouter: e.convertRouter,
59
+ showMsg: e.showMsg,
60
+ showModal: e.showModal,
61
+ showNotify: e.showNotify
47
62
  }), () => {
48
63
  var c;
49
64
  return (c = t.default) == null ? void 0 : c.call(t);
50
65
  };
51
66
  }
52
- }), Fr = (e = {}) => (t) => {
67
+ }), jr = (e = {}) => (t) => {
53
68
  t.provide(_e, e);
54
- }, xt = (e) => (t, o) => {
55
- const { requestSubject$: u } = Ne(), n = new Set(F(t, (r) => le(r) ? r : r.name));
69
+ }, Kt = (e) => (t, o) => {
70
+ const { requestSubject$: u } = Ne(), n = new Set(L(t, (r) => le(r) ? r : r.name));
56
71
  oe(() => {
57
72
  const r = u.pipe(
58
- Ke(e),
59
- xe((a) => {
73
+ we(e),
74
+ Ke((a) => {
60
75
  n.has(a.name) && o(a);
61
76
  })
62
77
  ).subscribe();
@@ -64,20 +79,20 @@ const Tn = () => ({
64
79
  r.unsubscribe();
65
80
  };
66
81
  }, []);
67
- }, wr = xt($t), Rr = xt(Dt), Nn = (e, t, o) => {
68
- const { requestSubject$: u, dispatchRequest: n } = Ne(), r = new Set(F(e, (c) => le(c) ? c : c.name)), a = {};
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 = {};
69
84
  oe(() => {
70
85
  const c = sn(
71
86
  u.pipe(
72
- Ke($t),
73
- xe((m) => {
87
+ we($t),
88
+ Ke((m) => {
74
89
  var i, p;
75
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);
76
91
  })
77
92
  ),
78
93
  u.pipe(
79
- Ke(Dt),
80
- xe((m) => {
94
+ we(Dt),
95
+ Ke((m) => {
81
96
  var i, p;
82
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);
83
98
  })
@@ -93,8 +108,8 @@ const Tn = () => ({
93
108
  var n;
94
109
  const u = (n = e.res) == null ? void 0 : n.data;
95
110
  return t ? t(u, e) : o ? f(u, o) : u;
96
- }, jr = () => {
97
- const e = Kt(), { registerMetaMap: t, dispatchRequest: o } = ne();
111
+ }, Br = () => {
112
+ const e = wt(), { registerMetaMap: t, dispatchRequest: o } = Z();
98
113
  return (u) => {
99
114
  const n = f(t, u);
100
115
  if (!n)
@@ -109,8 +124,8 @@ const Tn = () => ({
109
124
  };
110
125
  oe(() => {
111
126
  const r = o.pipe(
112
- Ke(n),
113
- xe((a) => {
127
+ we(n),
128
+ Ke((a) => {
114
129
  const c = f(e, a.name);
115
130
  if (!c)
116
131
  return;
@@ -123,56 +138,56 @@ const Tn = () => ({
123
138
  };
124
139
  }, []);
125
140
  }, Dn = () => {
126
- const { convertRouter: e } = ne(), t = Xe(), o = Re(), r = { ...t, open: (c, m, i) => window.open(c, m, i), openMenu: (c) => {
141
+ const { convertRouter: e } = Z(), t = Xe(), o = Re(), r = { ...t, open: (c, m, i) => window.open(c, m, i), openMenu: (c) => {
127
142
  } };
128
143
  return { router: e ? e(r) : r, route: o };
129
144
  }, On = (e) => {
130
145
  if (!H(e) || J(e) <= 0)
131
146
  return !1;
132
147
  const t = e[0];
133
- return le(t) ? bt(t, "$") : !1;
134
- }, Kn = (e) => typeof e != "object" || !e.type$ ? !1 : e.type$ === "data$" && e.type$, xn = (e) => typeof e != "object" || !e.type$ ? !1 : e.type$ === "obj", Ln = { get: f, pick: V, add: Zt, subtract: en }, Le = (e, t) => {
135
- if (Kn(e)) {
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)) {
136
151
  const o = f(t, e.name$);
137
152
  return e.namePath$ ? f(o, e.namePath$) : o;
138
- } else if (xn(e)) {
153
+ } else if (Kn(e)) {
139
154
  const o = {};
140
155
  return Q(e, (u, n) => {
141
156
  if (n !== "type$")
142
- if (bt(n, "$")) {
143
- const r = Le(u, t);
157
+ if (ht(n, "$")) {
158
+ const r = xe(u, t);
144
159
  ue(o, n.replace("$", ""), r);
145
160
  } else
146
161
  o[n] = u;
147
162
  }), o;
148
163
  } else if (On(e)) {
149
- const [o, ...u] = e, n = t.expressionMethods || Ln, r = f(n, o.replace("$", ""));
164
+ const [o, ...u] = e, n = t.expressionMethods || xn, r = f(n, o.replace("$", ""));
150
165
  if (!r) {
151
166
  console.log("ex", "\u672A\u627E\u5230\u5BF9\u5E94\u7684\u65B9\u6CD5", e);
152
167
  return;
153
168
  }
154
- const a = F(u, (c) => Le(c, t));
169
+ const a = L(u, (c) => xe(c, t));
155
170
  return r(...a);
156
171
  }
157
172
  return e;
158
- }, Fn = () => {
159
- const e = Ot(), { registerStoreMap: t } = ne();
173
+ }, Ln = () => {
174
+ const e = Ot(), { registerStoreMap: t } = Z();
160
175
  return (o, u) => {
161
176
  const n = f(t, o);
162
177
  !n || e(o, u, !!n.persist, n.initialState);
163
178
  };
164
- }, kr = (e) => {
165
- const { registerStoreMap: t } = ne(), o = f(t, e), u = `${o != null && o.persist ? "$" : ""}${o == null ? void 0 : o.key}`;
179
+ }, qr = (e) => {
180
+ const { registerStoreMap: t } = Z(), o = f(t, e), u = `${o != null && o.persist ? "$" : ""}${o == null ? void 0 : o.key}`;
166
181
  return pn(Cn((r) => {
167
182
  const a = f(r, u);
168
183
  return a || (X(o == null ? void 0 : o.initialState) ? o == null ? void 0 : o.initialState() : o == null ? void 0 : o.initialState);
169
184
  }));
170
- }, Lt = Symbol("pro-module"), be = () => fe(Lt), wn = (e) => {
171
- me(Lt, e);
185
+ }, xt = Symbol("pro-module"), he = () => fe(xt), Fn = (e) => {
186
+ me(xt, e);
172
187
  }, Ye = (e) => {
173
188
  const {
174
189
  subject$: t
175
- } = be();
190
+ } = he();
176
191
  oe(() => {
177
192
  const o = t.subscribe({
178
193
  next: (u) => {
@@ -217,36 +232,36 @@ const Tn = () => ({
217
232
  slots: t,
218
233
  expose: o
219
234
  }) => {
220
- const u = Kt(), {
235
+ const u = wt(), {
221
236
  router: n
222
237
  } = Dn(), {
223
238
  elementMap: r,
224
239
  registerStoreMap: a,
225
240
  expressionMethods: c
226
- } = ne(), m = e.elementMap || r, i = (b) => H(b) ? Ze(m, b) : Me(m, b), p = new dn(), g = (b) => {
227
- p.next(b);
228
- }, y = _(e.storeKeys, (b) => He(a, b)), v = () => te(y, (b, E) => {
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) => {
229
244
  const O = f(a, E);
230
245
  return {
231
- ...b,
246
+ ...h,
232
247
  [E]: f(u.value, `${O.persist ? "$" : ""}${E}`) || f(a, [E, "initialState"])
233
248
  };
234
- }, {}), h = v(), s = e.state || Ie({
235
- ...h,
249
+ }, {}), b = v(), s = e.state || Ie({
250
+ ...b,
236
251
  ...e.initState
237
- }), C = {}, P = (b) => {
238
- const E = s[b.type], O = X(b.payload) ? b.payload(E) : b.payload;
252
+ }), C = {}, P = (h) => {
253
+ const E = s[h.type], O = X(h.payload) ? h.payload(E) : h.payload;
239
254
  if (Ce(E)) {
240
- Ct(s[b.type], O);
255
+ Ct(s[h.type], O);
241
256
  return;
242
257
  }
243
- s[b.type] = O;
244
- }, d = Fn(), S = {
258
+ s[h.type] = O;
259
+ }, d = Ln(), S = {
245
260
  dispatch: P,
246
261
  dispatchStore: d
247
262
  };
248
263
  oe(() => {
249
- const b = u.pipe(mn(() => v()), fn((E) => {
264
+ const h = u.pipe(mn(() => v()), fn((E) => {
250
265
  Q(E, (O, D) => {
251
266
  const T = f(s, D);
252
267
  En(T, O) || P({
@@ -256,13 +271,13 @@ const Tn = () => ({
256
271
  });
257
272
  })).subscribe();
258
273
  return () => {
259
- b.unsubscribe();
274
+ h.unsubscribe();
260
275
  };
261
276
  }, []);
262
277
  const {
263
278
  dispatchRequest: k
264
279
  } = Ne(), j = (() => {
265
- const b = {}, E = te(e.actors || [], (O, D) => ({
280
+ const h = {}, E = ne(e.actors || [], (O, D) => ({
266
281
  ...O,
267
282
  [D.name]: D
268
283
  }), {});
@@ -273,13 +288,13 @@ const Tn = () => ({
273
288
  return;
274
289
  O.actor = D;
275
290
  }
276
- !O.actor || (b[O.actor.name] = O, O.action && (b[O.action] = O));
277
- }), b;
278
- })(), W = (b, ...E) => b.convertParams ? b.convertParams(...E) : b.convertParamsEx ? L(b.convertParamsEx, E) : f(E, 0), $ = (b, E) => {
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) => {
279
294
  var O;
280
- return b.convertData ? b.convertData(E) : b.convertDataEx ? L(b.convertDataEx, E) : (O = E.res) == null ? void 0 : O.data;
281
- }, x = (b, ...E) => {
282
- const O = f(j, b);
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);
283
298
  if (!O)
284
299
  return;
285
300
  const D = W(O, ...E);
@@ -289,46 +304,46 @@ const Tn = () => ({
289
304
  }), k(O.actor, D);
290
305
  };
291
306
  Nn(z(j), {
292
- onSuccess: (b) => {
307
+ onSuccess: (h) => {
293
308
  var D;
294
- const E = f(j, b.name), O = $(E, b);
309
+ const E = f(j, h.name), O = $(E, h);
295
310
  E != null && E.stateName && P({
296
311
  type: E.stateName,
297
312
  payload: O
298
313
  }), g({
299
314
  type: Ee.Success,
300
315
  payload: {
301
- actor: b,
316
+ actor: h,
302
317
  requestOpts: E
303
318
  }
304
- }), (D = E.onSuccess) == null || D.call(E, b), E.onSuccessEx && w(E.onSuccessEx, [O]);
319
+ }), (D = E.onSuccess) == null || D.call(E, h), E.onSuccessEx && F(E.onSuccessEx, [O]);
305
320
  },
306
- onFailed: (b) => {
321
+ onFailed: (h) => {
307
322
  var O;
308
- const E = f(j, b.name);
323
+ const E = f(j, h.name);
309
324
  g({
310
325
  type: Ee.Fail,
311
326
  payload: {
312
- actor: b,
327
+ actor: h,
313
328
  requestOpts: E
314
329
  }
315
- }), (O = E.onFailed) == null || O.call(E, b), E.onFailedEx && w(E.onFailedEx, [b.err]);
330
+ }), (O = E.onFailed) == null || O.call(E, h), E.onFailedEx && F(E.onFailedEx, [h.err]);
316
331
  },
317
- onFinish: (b) => {
318
- const E = f(j, [b.name, "loadingName"]);
332
+ onFinish: (h) => {
333
+ const E = f(j, [h.name, "loadingName"]);
319
334
  E && P({
320
335
  type: E,
321
336
  payload: !1
322
337
  });
323
338
  }
324
339
  }, !0);
325
- const L = (b, E) => Le(b, {
340
+ const x = (h, E) => xe(h, {
326
341
  state: s,
327
342
  data: C,
328
343
  args: E,
329
344
  expressionMethods: c
330
- }), w = (b, E) => {
331
- if (!b)
345
+ }), F = (h, E) => {
346
+ if (!h)
332
347
  return;
333
348
  const O = {
334
349
  state: s,
@@ -336,12 +351,12 @@ const Tn = () => ({
336
351
  args: E,
337
352
  expressionMethods: c
338
353
  };
339
- Q(b, (D) => {
354
+ Q(h, (D) => {
340
355
  if (!H(D) || J(D) < 2) {
341
356
  console.log("execute invalid", D);
342
357
  return;
343
358
  }
344
- const [T, B, ...Z] = D;
359
+ const [T, B, ...ee] = D;
345
360
  let $e;
346
361
  switch (T) {
347
362
  case "router":
@@ -353,14 +368,14 @@ const Tn = () => ({
353
368
  }
354
369
  if ($e)
355
370
  try {
356
- const ke = F(Z, (Jt) => Le(Jt, O));
371
+ const ke = L(ee, (Jt) => xe(Jt, O));
357
372
  $e(...ke);
358
373
  } catch (ke) {
359
374
  console.log("execute err", ke);
360
375
  }
361
376
  });
362
377
  };
363
- return wn({
378
+ return Fn({
364
379
  elementMap: m,
365
380
  subject$: p,
366
381
  sendEvent: g,
@@ -368,23 +383,23 @@ const Tn = () => ({
368
383
  dispatch: P,
369
384
  data: C,
370
385
  requests: e.requests,
371
- sendRequest: x,
372
- executeExp: L,
373
- execute: w
386
+ sendRequest: K,
387
+ executeExp: x,
388
+ execute: F
374
389
  }), o({
375
390
  sendEvent: g,
376
- sendRequest: x
391
+ sendRequest: K
377
392
  }), () => {
378
- var b;
379
- return l(ae, null, [J(e.elementConfigs) > 0 && i(e.elementConfigs), (b = t.default) == null ? void 0 : b.call(t)]);
393
+ var h;
394
+ return l(ae, null, [J(e.elementConfigs) > 0 && i(e.elementConfigs), (h = t.default) == null ? void 0 : h.call(t)]);
380
395
  };
381
396
  }
382
- }), Ft = (e) => e.formValueType || e.valueType || "text", se = (e) => {
397
+ }), Lt = (e) => e.formValueType || e.valueType || "text", se = (e) => {
383
398
  var t;
384
399
  return ((t = e.formItemProps) == null ? void 0 : t.name) || e.dataIndex;
385
400
  }, Je = (e, t) => {
386
401
  var r;
387
- const o = Ft(t), u = f(e, o);
402
+ const o = Lt(t), u = f(e, o);
388
403
  if (!u)
389
404
  return null;
390
405
  const n = se(t);
@@ -404,7 +419,7 @@ const Tn = () => ({
404
419
  showProps: t.showProps,
405
420
  value: o
406
421
  }, (r = t.formFieldProps) == null ? void 0 : r.slots) : null;
407
- }, jn = (e) => e && !X(e) && e.elementType, Ze = (e, t) => F(t, (o) => Me(e, o)), wt = (e, t) => {
422
+ }, jn = (e) => e && !X(e) && e.elementType, Ze = (e, t) => L(t, (o) => Me(e, o)), Ft = (e, t) => {
408
423
  var r;
409
424
  const o = t.elementProps, u = {
410
425
  ...t.elementProps
@@ -445,7 +460,7 @@ const Tn = () => ({
445
460
  ...a,
446
461
  elementProps: m
447
462
  });
448
- } : (le(a) || ht(a)) && (n[r] = () => a);
463
+ } : (le(a) || bt(a)) && (n[r] = () => a);
449
464
  }), {
450
465
  [u]: o ? () => o : void 0,
451
466
  ...n
@@ -458,7 +473,7 @@ const Tn = () => ({
458
473
  elementMap: e,
459
474
  elementConfig: t
460
475
  });
461
- const u = Rt(e, t), n = wt(e, t);
476
+ const u = Rt(e, t), n = Ft(e, t);
462
477
  return Pe(o, {
463
478
  key: t.elementId,
464
479
  ...n
@@ -478,32 +493,32 @@ const Tn = () => ({
478
493
  state: t,
479
494
  sendEvent: o,
480
495
  execute: u
481
- } = be(), {
496
+ } = he(), {
482
497
  elementMap: n,
483
498
  elementConfig: r
484
- } = e, a = r.highConfig$, c = wt(n, r);
485
- Q((v = r.highConfig$) == null ? void 0 : v.registerEventList, (h) => {
499
+ } = e, a = r.highConfig$, c = Ft(n, r);
500
+ Q((v = r.highConfig$) == null ? void 0 : v.registerEventList, (b) => {
486
501
  const s = (...P) => {
487
- const d = `${r.elementId}-${h.name}`;
502
+ const d = `${r.elementId}-${b.name}`;
488
503
  o({
489
504
  type: d,
490
505
  payload: P
491
- }), u(h.executeList, P);
492
- }, C = Et(h.name, c);
506
+ }), u(b.executeList, P);
507
+ }, C = Et(b.name, c);
493
508
  c && Mt(C) && Tt(C, c) && ue(c, C, s);
494
509
  });
495
510
  const m = M(() => {
496
511
  if (!a.registerStateList || J(a.registerStateList) <= 0)
497
512
  return;
498
- const h = {
513
+ const b = {
499
514
  ...c
500
- }, s = _(a.registerStateList, (P) => !P.target || P.target === "prop"), C = F(s, (P) => {
515
+ }, s = _(a.registerStateList, (P) => !P.target || P.target === "prop"), C = L(s, (P) => {
501
516
  const d = P.mapName || P.name, S = f(t, P.name);
502
- return ue(h, d, S), kn(d);
517
+ return ue(b, d, S), kn(d);
503
518
  });
504
- return V(h, C);
505
- }), i = f(n, r.elementType) || r.elementType, p = Rt(n, r), g = te(_(a.registerStateList, (h) => h.target === "slot"), (h, s) => ({
506
- ...h,
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) => ({
521
+ ...b,
507
522
  [s.mapName]: () => f(t, s.name)
508
523
  }), {}), y = {
509
524
  ...p,
@@ -539,7 +554,7 @@ const Tn = () => ({
539
554
  ProCurdKey: "ProCurd$",
540
555
  ProListKey: "ProList$"
541
556
  }, Y = () => {
542
- const { elementMap: e } = ne();
557
+ const { elementMap: e } = Z();
543
558
  return (t) => f(e, t);
544
559
  };
545
560
  function Bn(e) {
@@ -564,7 +579,7 @@ const qn = () => ({
564
579
  const t = Y(), o = t(q.RowKey), u = t(q.ColKey);
565
580
  return () => {
566
581
  let n;
567
- return !o || !u ? null : l(o, e.row, Bn(n = F(e.items, (r) => l(u, I({
582
+ return !o || !u ? null : l(o, e.row, Bn(n = L(e.items, (r) => l(u, I({
568
583
  key: r.rowKey
569
584
  }, e.col, r.col), {
570
585
  default: () => [r.vNode]
@@ -586,14 +601,14 @@ const qn = () => ({
586
601
  }, jt = (e) => {
587
602
  if (!!e)
588
603
  return H(e) ? e : e && le(e) && e.indexOf(".") > 0 ? nn(e, ".") : [e];
589
- }, Ur = (e, t, o) => !t || !o ? e : F(e, (u) => {
604
+ }, Vr = (e, t, o) => !t || !o ? e : L(e, (u) => {
590
605
  const n = X(o) ? o(u) : f(u, o), r = f(t, n);
591
606
  return !r || gt(r) || X(r) || !Ce(r) ? u : rn(u, r, (a, c) => {
592
607
  if (H(a) || H(c))
593
608
  return c;
594
609
  });
595
- }), he = (e, t) => {
596
- const o = te(
610
+ }), be = (e, t) => {
611
+ const o = ne(
597
612
  e,
598
613
  (u, n) => ({
599
614
  ...u,
@@ -605,7 +620,7 @@ const qn = () => ({
605
620
  {}
606
621
  );
607
622
  return o.originRef = t, o;
608
- }, Br = (e, t, o) => {
623
+ }, zr = (e, t, o) => {
609
624
  const u = { originRef: e, ...o };
610
625
  return t && J(t) > 0 && Q(t, (n) => {
611
626
  u[n] = (...r) => {
@@ -657,7 +672,7 @@ const qn = () => ({
657
672
  renderItemMinus: {
658
673
  type: Function
659
674
  }
660
- }), qr = A({
675
+ }), Wr = A({
661
676
  props: {
662
677
  ...ut(),
663
678
  ...N(ge.props, "items")
@@ -680,18 +695,18 @@ const qn = () => ({
680
695
  }, y = (s) => {
681
696
  const C = se(s);
682
697
  return C && t[C] ? t[C](s, n) : Je(a, s);
683
- }, v = M(() => e.row ? F(e.columns, (s) => ({
698
+ }, v = M(() => e.row ? L(e.columns, (s) => ({
684
699
  rowKey: se(s),
685
700
  vNode: y(s),
686
701
  col: f(s, ["extra", "col"])
687
- })) : F(e.columns, (s) => y(s))), h = z(ut());
702
+ })) : L(e.columns, (s) => y(s))), b = z(ut());
688
703
  return () => u ? l(u, I({
689
704
  class: `pro-form-list ${e.inline ? "pro-form-list-inline" : ""}`,
690
705
  name: e.name
691
- }, N(e, h)), {
706
+ }, N(e, b)), {
692
707
  default: () => {
693
708
  var s, C;
694
- return [F(f(n, i), (P, d) => l(Wn, {
709
+ return [L(f(n, i), (P, d) => l(Wn, {
695
710
  key: P[e.rowKey] || d,
696
711
  pathList: [...i, d]
697
712
  }, {
@@ -725,10 +740,10 @@ const qn = () => ({
725
740
  }), qt = Symbol("pro-form"), Vt = () => fe(qt), Hn = (e, t = 300, o) => St(e, t, o), Gn = (e) => {
726
741
  me(qt, e);
727
742
  };
728
- let ee;
743
+ let te;
729
744
  (function(e) {
730
745
  e.RESET = "RESET", e.SUBMIT = "SUBMIT", e.CONTINUE = "CONTINUE";
731
- })(ee || (ee = {}));
746
+ })(te || (te = {}));
732
747
  const ct = () => ({
733
748
  clsName: {
734
749
  type: String,
@@ -775,7 +790,7 @@ const ct = () => ({
775
790
  type: [Number, Object],
776
791
  default: void 0
777
792
  }
778
- }), Vr = A({
793
+ }), Hr = A({
779
794
  inheritAttrs: !1,
780
795
  props: {
781
796
  ...ve,
@@ -791,14 +806,14 @@ const ct = () => ({
791
806
  const {
792
807
  elementMap: r,
793
808
  formElementMap: a
794
- } = ne(), 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), h = M(() => {
795
- const T = we(e.columns, e.columnState, (B) => se(B));
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));
796
811
  return e.convertColumn ? It(T, e.convertColumn) : T;
797
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) => {
798
813
  const B = Vn(T, p, e.showStateRules);
799
814
  s !== void 0 ? P(B, T) : o("finish", B, T);
800
815
  }, S = G();
801
- u(he(e.formMethods || [], S)), Gn({
816
+ u(be(e.formMethods || [], S)), Gn({
802
817
  formState: i,
803
818
  showState: p,
804
819
  readonlyState: g,
@@ -806,15 +821,15 @@ const ct = () => ({
806
821
  elementMap: c,
807
822
  formElementMap: m,
808
823
  readonly: v,
809
- columns: h,
824
+ columns: b,
810
825
  formRef: S,
811
826
  ...e.provideExtra
812
827
  }), Bt({});
813
828
  const k = [{
814
- value: ee.RESET,
829
+ value: te.RESET,
815
830
  label: "\u91CD\u7F6E"
816
831
  }, {
817
- value: ee.SUBMIT,
832
+ value: te.SUBMIT,
818
833
  label: "\u63D0\u4EA4",
819
834
  extraProps: {
820
835
  type: "primary"
@@ -843,32 +858,32 @@ const ct = () => ({
843
858
  form: S.value
844
859
  });
845
860
  }, $ = {
846
- [ee.RESET]: R,
847
- [ee.SUBMIT]: j,
848
- [ee.CONTINUE]: W
849
- }, x = M(() => {
861
+ [te.RESET]: R,
862
+ [te.SUBMIT]: j,
863
+ [te.CONTINUE]: W
864
+ }, K = M(() => {
850
865
  const T = e.operate, B = (T == null ? void 0 : T.items) || k;
851
- return F(B, (Z) => !Z.onClick && !f(T == null ? void 0 : T.itemState, [Z.value, "onClick"]) ? {
852
- ...Z,
853
- onClick: f($, Z.value)
854
- } : Z);
855
- }), L = M(() => {
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(() => {
856
871
  var T;
857
872
  return {
858
- [ee.SUBMIT]: {
859
- value: ee.SUBMIT,
873
+ [te.SUBMIT]: {
874
+ value: te.SUBMIT,
860
875
  loading: e.submitLoading
861
876
  },
862
877
  ...(T = e.operate) == null ? void 0 : T.itemState
863
878
  };
864
- }), w = (T) => {
879
+ }), F = (T) => {
865
880
  const B = se(T);
866
881
  return B && t[B] ? t[B](T, i) : Je(m, T);
867
- }, b = M(() => e.row ? F(h.value, (T) => ({
882
+ }, h = M(() => e.row ? L(b.value, (T) => ({
868
883
  rowKey: se(T),
869
- vNode: w(T),
884
+ vNode: F(T),
870
885
  col: f(T, ["extra", "col"])
871
- })) : F(h.value, (T) => w(T))), E = [...z(ct()), ...z(ve)], O = z(N(ge.props, "items")), D = f(r, q.FormKey);
886
+ })) : L(b.value, (T) => F(T))), E = [...z(ct()), ...z(ve)], O = z(N(ge.props, "items")), D = f(r, q.FormKey);
872
887
  return () => D ? l(D, I({
873
888
  ref: S,
874
889
  class: e.clsName
@@ -877,21 +892,21 @@ const ct = () => ({
877
892
  onFinish: d
878
893
  }), {
879
894
  default: () => {
880
- var T, B, Z;
881
- return [(T = t.start) == null ? void 0 : T.call(t), m && J(h.value) > 0 && l(ae, null, [e.row ? l(ge, {
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, {
882
897
  row: e.row,
883
898
  col: e.col,
884
- items: b.value
885
- }, null) : b.value]), (B = t.default) == null ? void 0 : B.call(t), e.operate && l(zt, I({
899
+ items: h.value
900
+ }, null) : h.value]), (B = t.default) == null ? void 0 : B.call(t), e.operate && l(zt, I({
886
901
  class: `${e.clsName}-operate`
887
902
  }, N(e.operate, "items", "itemState", "onReset", "onSubmit", "onContinue"), {
888
- items: x.value,
889
- itemState: L.value
890
- }), null), (Z = t.end) == null ? void 0 : Z.call(t)];
903
+ items: K.value,
904
+ itemState: x.value
905
+ }), null), (ee = t.end) == null ? void 0 : ee.call(t)];
891
906
  }
892
907
  }) : null;
893
908
  }
894
- }), zr = {
909
+ }), Gr = {
895
910
  text: "\u8BF7\u8F93\u5165",
896
911
  digit: "\u8BF7\u8F93\u5165",
897
912
  select: "\u8BF7\u9009\u62E9",
@@ -903,10 +918,10 @@ const ct = () => ({
903
918
  date: "\u8BF7\u9009\u62E9",
904
919
  time: "\u8BF7\u9009\u62E9"
905
920
  };
906
- let Fe;
921
+ let Le;
907
922
  (function(e) {
908
923
  e.AUTO = "AUTO", e.MANUAL = "MANUAL";
909
- })(Fe || (Fe = {}));
924
+ })(Le || (Le = {}));
910
925
  const lt = () => ({
911
926
  initEmit: {
912
927
  type: Boolean,
@@ -914,7 +929,7 @@ const lt = () => ({
914
929
  },
915
930
  searchMode: {
916
931
  type: String,
917
- default: Fe.AUTO
932
+ default: Le.AUTO
918
933
  },
919
934
  debounceKeys: {
920
935
  type: Array
@@ -927,7 +942,7 @@ const lt = () => ({
927
942
  type: Number,
928
943
  default: 800
929
944
  }
930
- }), Wr = A({
945
+ }), Xr = A({
931
946
  props: {
932
947
  ...lt(),
933
948
  needRules: {
@@ -939,14 +954,14 @@ const lt = () => ({
939
954
  slots: t,
940
955
  expose: o
941
956
  }) => {
942
- const n = Y()(q.ProFormKey), r = e.model || Ie({}), a = new Set(e.debounceTypes), c = F(_(e.columns, (s) => {
943
- const C = Ft(s);
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);
944
959
  return a.has(C);
945
- }), (s) => se(s)), m = M(() => F(e.columns, (s) => ({
960
+ }), (s) => se(s)), m = M(() => L(e.columns, (s) => ({
946
961
  ...s,
947
962
  formItemProps: N(s.formItemProps, "required")
948
963
  }))), i = G(), p = e.formMethods || [];
949
- o(he(p, i));
964
+ o(be(p, i));
950
965
  const g = () => {
951
966
  var s;
952
967
  (s = i.value) == null || s.submit();
@@ -958,7 +973,7 @@ const lt = () => ({
958
973
  }, []);
959
974
  const v = (s, C, P) => de(P, (d) => f(s, d) !== f(C, d));
960
975
  Nt((s, C) => {
961
- if (e.searchMode !== Fe.AUTO)
976
+ if (e.searchMode !== Le.AUTO)
962
977
  return;
963
978
  const P = J(e.debounceKeys) > 0 ? e.debounceKeys : c;
964
979
  if (J(P) > 0 && v(s, C, P)) {
@@ -967,11 +982,11 @@ const lt = () => ({
967
982
  }
968
983
  g();
969
984
  }, () => un(r));
970
- const h = z(lt());
985
+ const b = z(lt());
971
986
  return () => n ? l(n, I({
972
987
  ref: i,
973
988
  class: "pro-search-form"
974
- }, N(e, h, "columns"), {
989
+ }, N(e, b, "columns"), {
975
990
  columns: m.value,
976
991
  model: r
977
992
  }), t) : null;
@@ -990,7 +1005,7 @@ const lt = () => ({
990
1005
  slots: {
991
1006
  type: Object
992
1007
  }
993
- }), Hr = (e, t) => ({
1008
+ }), _r = (e, t) => ({
994
1009
  InputComp: o,
995
1010
  valueType: u,
996
1011
  name: n
@@ -1005,17 +1020,17 @@ const lt = () => ({
1005
1020
  }) => {
1006
1021
  const {
1007
1022
  formExtraMap: c
1008
- } = ne(), {
1023
+ } = Z(), {
1009
1024
  formState: m,
1010
1025
  showState: i,
1011
1026
  readonlyState: p,
1012
1027
  disableState: g,
1013
1028
  readonly: y,
1014
1029
  elementMap: v
1015
- } = Vt(), h = 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 ? [{
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 ? [{
1016
1031
  required: !0,
1017
1032
  message: C()
1018
- }] : r.rules ? F(r.rules, (j) => (j.required && !j.message && (j.message = C()), j)) : r.rules : r.rules), d = jt(r.name), S = h != null && h.pathList ? [...h.pathList, ...d] : d, k = (j) => {
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) => {
1019
1034
  ue(m, S, j);
1020
1035
  }, R = z(st());
1021
1036
  return () => {
@@ -1064,7 +1079,7 @@ const _n = () => ({
1064
1079
  }) => {
1065
1080
  const o = Y(), u = e.elementKey ? o(e.elementKey) : void 0, n = M(() => {
1066
1081
  const a = _(e.items, (c) => X(c.show) ? c.show() : ye(c.show) ? c.show : !0);
1067
- return F(a, (c) => He(e.itemState, c.value) ? {
1082
+ return L(a, (c) => He(e.itemState, c.value) ? {
1068
1083
  ...c,
1069
1084
  ...f(e.itemState, c.value)
1070
1085
  } : c);
@@ -1074,7 +1089,7 @@ const _n = () => ({
1074
1089
  };
1075
1090
  return () => l("div", {
1076
1091
  class: e.clsName
1077
- }, [F(n.value, (a) => {
1092
+ }, [L(n.value, (a) => {
1078
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 = {
1079
1094
  ...N(a, "show", "disabled", "element"),
1080
1095
  disabled: c
@@ -1130,12 +1145,12 @@ const _n = () => ({
1130
1145
  Q(a.value, (d) => {
1131
1146
  i[d] = !0;
1132
1147
  });
1133
- }, y = M(() => te(a.value, (d, S) => ({
1148
+ }, y = M(() => ne(a.value, (d, S) => ({
1134
1149
  ...d,
1135
1150
  [S]: !0
1136
1151
  }), {})), v = (d) => zn(d, e.signName);
1137
1152
  oe(() => {
1138
- a.value = F(_(r.value, (d) => {
1153
+ a.value = L(_(r.value, (d) => {
1139
1154
  var S;
1140
1155
  return e.useSelectedStatus && He(i, d.dataIndex) ? i[d.dataIndex] : ((S = v(d)) == null ? void 0 : S.initShow) !== !1;
1141
1156
  }), (d) => d.dataIndex);
@@ -1143,7 +1158,7 @@ const _n = () => ({
1143
1158
  var d;
1144
1159
  m(), g(), (d = e.onColumnSelectChange) == null || d.call(e, a.value);
1145
1160
  }, a);
1146
- const h = M(() => {
1161
+ const b = M(() => {
1147
1162
  const d = cn(r.value, (k) => {
1148
1163
  var R;
1149
1164
  return (R = v(k)) != null && R.disabled ? !0 : f(y.value, k.dataIndex);
@@ -1157,12 +1172,12 @@ const _n = () => ({
1157
1172
  };
1158
1173
  }), s = (d) => {
1159
1174
  var k;
1160
- (Ce(d) ? (k = d.target) == null ? void 0 : k.checked : d) ? a.value = F(r.value, (R) => R.dataIndex) : a.value = F(_(r.value, (R) => {
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) => {
1161
1176
  var j;
1162
1177
  return (j = v(R)) != null && j.disabled ? !0 : (p(R.dataIndex), !1);
1163
1178
  }), (R) => R.dataIndex);
1164
1179
  }, C = () => {
1165
- a.value = F(_(r.value, (d) => {
1180
+ a.value = L(_(r.value, (d) => {
1166
1181
  var S;
1167
1182
  return ((S = v(d)) == null ? void 0 : S.initShow) === !1 ? (p(d.dataIndex), !1) : !0;
1168
1183
  }), (d) => d.dataIndex);
@@ -1183,8 +1198,8 @@ const _n = () => ({
1183
1198
  class: `${e.clsName}-header`
1184
1199
  }, [l(n, {
1185
1200
  key: c.value,
1186
- checked: h.value.checked,
1187
- indeterminate: h.value.indeterminate,
1201
+ checked: b.value.checked,
1202
+ indeterminate: b.value.indeterminate,
1188
1203
  onChange: s
1189
1204
  }, {
1190
1205
  default: () => [tt("\u5217\u5C55\u793A")]
@@ -1193,7 +1208,7 @@ const _n = () => ({
1193
1208
  }, [tt("\u91CD\u7F6E")])]), l("div", {
1194
1209
  key: c.value,
1195
1210
  class: `${e.clsName}-list`
1196
- }, [F(r.value, (d) => {
1211
+ }, [L(r.value, (d) => {
1197
1212
  const S = v(d), k = f(y.value, d.dataIndex, !1);
1198
1213
  return l(n, {
1199
1214
  checked: k,
@@ -1245,7 +1260,7 @@ const _n = () => ({
1245
1260
  tableMethods: {
1246
1261
  type: Array
1247
1262
  }
1248
- }), Gr = A({
1263
+ }), Yr = A({
1249
1264
  inheritAttrs: !1,
1250
1265
  props: {
1251
1266
  ...ve,
@@ -1258,95 +1273,95 @@ const _n = () => ({
1258
1273
  }) => {
1259
1274
  const {
1260
1275
  elementMap: n
1261
- } = ne(), r = e.elementMap || n, a = f(n, q.TableKey), c = () => ({
1276
+ } = Z(), r = e.elementMap || n, a = f(n, q.TableKey), c = () => ({
1262
1277
  title: "\u5E8F\u53F7",
1263
1278
  dataIndex: "serialNumber",
1264
1279
  width: 80,
1265
1280
  ...e.column,
1266
1281
  ...ye(e.serialNumber) ? void 0 : e.serialNumber,
1267
1282
  customRender: ({
1268
- index: x
1283
+ index: K
1269
1284
  }) => {
1270
- var L, w;
1271
- return ((L = e.paginationState) == null ? void 0 : L.page) && ((w = e.paginationState) == null ? void 0 : w.pageSize) ? e.paginationState.pageSize * (e.paginationState.page - 1) + x + 1 : x + 1;
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;
1272
1287
  }
1273
- }), m = (x, L) => {
1274
- var w;
1275
- if (e.operateItemClickMap && e.operateItemClickMap[L.value]) {
1276
- e.operateItemClickMap[L.value](x, L);
1288
+ }), m = (K, x) => {
1289
+ var F;
1290
+ if (e.operateItemClickMap && e.operateItemClickMap[x.value]) {
1291
+ e.operateItemClickMap[x.value](K, x);
1277
1292
  return;
1278
1293
  }
1279
- (w = L.onClick) == null || w.call(L, x);
1294
+ (F = x.onClick) == null || F.call(x, K);
1280
1295
  }, i = ce(t, "operate"), p = () => {
1281
- const x = e.operate, L = F(x.items, (b) => ({
1282
- ...f(e.operateItemState, b.value),
1283
- ...b,
1284
- ...f(x.itemState, b.value)
1285
- })), w = Pt(L, (b) => b.sort);
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);
1286
1301
  return {
1287
1302
  ...e.column,
1288
1303
  title: "\u64CD\u4F5C",
1289
1304
  dataIndex: "operate",
1290
1305
  fixed: "right",
1291
- ...x.column,
1306
+ ...K.column,
1292
1307
  customRender: ({
1293
- record: b
1308
+ record: h
1294
1309
  }) => {
1295
- const E = F(w, (D) => ({
1310
+ const E = L(F, (D) => ({
1296
1311
  ...D,
1297
- show: X(D.show) ? D.show(b) : D.show,
1298
- disabled: X(D.disabled) ? D.disabled(b) : D.disabled,
1299
- loading: X(D.loading) ? D.loading(b) : D.loading,
1300
- extraProps: X(D.extraProps) ? D.extraProps(b) : D.extraProps,
1301
- element: X(D.element) ? () => D.element(b, D) : D.element,
1302
- onClick: () => m(b, D)
1303
- })), O = te(z(i), (D, T) => ({
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) => ({
1304
1319
  ...D,
1305
1320
  [T]: (B) => {
1306
- var Z;
1307
- return (Z = i[T]) == null ? void 0 : Z.call(i, b, B);
1321
+ var ee;
1322
+ return (ee = i[T]) == null ? void 0 : ee.call(i, h, B);
1308
1323
  }
1309
1324
  }), {});
1310
1325
  return l(zt, {
1311
1326
  class: `${e.clsName}-operate`,
1312
1327
  items: E,
1313
- elementKey: x.elementKey || q.TableOperateKey
1328
+ elementKey: K.elementKey || q.TableOperateKey
1314
1329
  }, O);
1315
1330
  }
1316
1331
  };
1317
1332
  }, g = G([]), y = M(() => {
1318
- var x;
1319
- return !!((x = e.toolbar) != null && x.columnSetting);
1320
- }), v = Qt(e, "columns"), h = M(() => {
1333
+ var K;
1334
+ return !!((K = e.toolbar) != null && K.columnSetting);
1335
+ }), v = Qt(e, "columns"), b = M(() => {
1321
1336
  if (!y.value)
1322
1337
  return e.columns;
1323
- const x = te(g.value, (L, w) => ({
1324
- ...L,
1325
- [w]: !0
1338
+ const K = ne(g.value, (x, F) => ({
1339
+ ...x,
1340
+ [F]: !0
1326
1341
  }), {});
1327
- return _(e.columns, (L) => f(x, L.dataIndex));
1328
- }), s = (x) => F(x, (L) => {
1329
- const w = {
1342
+ return _(e.columns, (x) => f(K, x.dataIndex));
1343
+ }), s = (K) => L(K, (x) => {
1344
+ const F = {
1330
1345
  ...e.column,
1331
- ...L
1332
- }, b = e.convertColumn ? e.convertColumn(w) : w;
1333
- return L.children && J(L.children) > 0 ? (b.children = s(L.children), b) : (L.customRender || (b.customRender = ({
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 = ({
1334
1349
  text: E
1335
1350
  }) => {
1336
1351
  var D;
1337
1352
  return Qe(r, {
1338
- ...L,
1353
+ ...x,
1339
1354
  showProps: {
1340
- ...L.showProps,
1341
- content: ((D = L.showProps) == null ? void 0 : D.content) || e.columnEmptyText
1355
+ ...x.showProps,
1356
+ content: ((D = x.showProps) == null ? void 0 : D.content) || e.columnEmptyText
1342
1357
  }
1343
1358
  }, E) || E || e.columnEmptyText;
1344
- }), b);
1359
+ }), h);
1345
1360
  }), C = M(() => {
1346
- const x = we(h.value, e.columnState, (w) => w.dataIndex, {
1361
+ const K = Fe(b.value, e.columnState, (F) => F.dataIndex, {
1347
1362
  children: "children"
1348
- }), L = s(x);
1349
- return e.serialNumber && L.unshift(c()), e.operate && e.operate.items && de(e.operate.items, (w) => w.show) && L.push(p()), L;
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;
1350
1365
  }), P = G();
1351
1366
  Zn({
1352
1367
  columns: C,
@@ -1355,7 +1370,7 @@ const _n = () => ({
1355
1370
  tableRef: P,
1356
1371
  toolbar: e.toolbar,
1357
1372
  ...e.provideExtra
1358
- }), o(he(e.tableMethods || [], P));
1373
+ }), o(be(e.tableMethods || [], P));
1359
1374
  const d = G(), S = G(!1), k = G(), R = G(!1);
1360
1375
  ze(d, () => {
1361
1376
  S.value = !!d.value.innerText;
@@ -1364,10 +1379,10 @@ const _n = () => ({
1364
1379
  });
1365
1380
  const j = M(() => R.value || S.value ? `${e.clsName}-toolbar-valid` : ""), W = z(it()), $ = ce(t, "columnSetting");
1366
1381
  return () => {
1367
- var L, w;
1382
+ var x, F;
1368
1383
  if (!a)
1369
1384
  return null;
1370
- const x = y.value ? l(Jn, (L = e.toolbar) == null ? void 0 : L.columnSetting, $) : null;
1385
+ const K = y.value ? l(Jn, (x = e.toolbar) == null ? void 0 : x.columnSetting, $) : null;
1371
1386
  return l("div", I({
1372
1387
  class: e.clsName
1373
1388
  }, V(u, "class")), [l("div", {
@@ -1375,10 +1390,10 @@ const _n = () => ({
1375
1390
  }, [l("div", {
1376
1391
  ref: d,
1377
1392
  class: `${e.clsName}-toolbar-start`
1378
- }, [(w = t.toolbar) == null ? void 0 : w.call(t)]), l("div", {
1393
+ }, [(F = t.toolbar) == null ? void 0 : F.call(t)]), l("div", {
1379
1394
  ref: k,
1380
1395
  class: `${e.clsName}-toolbar-extra`
1381
- }, [t.toolbarExtra ? t.toolbarExtra([x]) : l(ae, null, [x])])]), l(a, I({
1396
+ }, [t.toolbarExtra ? t.toolbarExtra([K]) : l(ae, null, [K])])]), l(a, I({
1382
1397
  ref: P
1383
1398
  }, N(u, "class"), N(e, W), {
1384
1399
  columns: C.value
@@ -1448,7 +1463,7 @@ const _n = () => ({
1448
1463
  type: Boolean,
1449
1464
  default: !0
1450
1465
  }
1451
- }), Xr = A({
1466
+ }), Jr = A({
1452
1467
  props: {
1453
1468
  ...Be.props,
1454
1469
  ...tr()
@@ -1533,7 +1548,7 @@ const _n = () => ({
1533
1548
  m = s, c.page = C || 1, i();
1534
1549
  }, g = (s, C) => {
1535
1550
  c.page = s, c.pageSize = C, i();
1536
- }, y = ce(t, "search"), v = ce(t, "table"), h = ce(t, "pagination");
1551
+ }, y = ce(t, "search"), v = ce(t, "table"), b = ce(t, "pagination");
1537
1552
  return () => {
1538
1553
  var C, P, d, S, k, R, j, W;
1539
1554
  const s = t.search ? t.search({
@@ -1567,7 +1582,7 @@ const _n = () => ({
1567
1582
  page: c.page,
1568
1583
  pageSize: c.pageSize,
1569
1584
  onComposeChange: g
1570
- }), h)])]), ((j = t.end) == null ? void 0 : j.call(t)) || ((W = e.end) == null ? void 0 : W.call(e))]);
1585
+ }), b)])]), ((j = t.end) == null ? void 0 : j.call(t)) || ((W = e.end) == null ? void 0 : W.call(e))]);
1571
1586
  };
1572
1587
  }
1573
1588
  }), dt = () => ({
@@ -1588,20 +1603,20 @@ const _n = () => ({
1588
1603
  }) => {
1589
1604
  const {
1590
1605
  elementMap: o
1591
- } = ne(), u = e.elementMap || o, n = Y(), r = n(q.DescriptionsKey), a = n(q.DescriptionsItemKey), c = M(() => we(e.columns, e.columnState, "dataIndex")), m = z(ve), i = z(dt());
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());
1592
1607
  return () => !r || !a ? null : l(r, I({
1593
1608
  class: e.clsName
1594
1609
  }, N(e, ...m, ...i, "model")), {
1595
1610
  default: () => {
1596
1611
  var p, g;
1597
- return [(p = t.start) == null ? void 0 : p.call(t), F(c.value, (y) => {
1598
- const v = y.dataIndex, h = f(e.model, v);
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);
1599
1614
  return l(a, I({
1600
1615
  class: `${e.clsName}-item`
1601
1616
  }, f(y.extra, "desc")), {
1602
1617
  default: () => {
1603
1618
  var s;
1604
- return [((s = t.value) == null ? void 0 : s.call(t, h, y)) || Qe(u, y, h)];
1619
+ return [((s = t.value) == null ? void 0 : s.call(t, b, y)) || Qe(u, y, b)];
1605
1620
  },
1606
1621
  label: () => {
1607
1622
  var s;
@@ -1664,14 +1679,14 @@ const _n = () => ({
1664
1679
  }) => {
1665
1680
  const o = M(() => {
1666
1681
  var r;
1667
- const u = (r = e.showProps) == null ? void 0 : r.content, n = e.value || ht(e.value) ? e.value : u;
1682
+ const u = (r = e.showProps) == null ? void 0 : r.content, n = e.value || bt(e.value) ? e.value : u;
1668
1683
  return e.convert ? e.convert(n, e) : n;
1669
1684
  });
1670
1685
  return () => l(cr, I(V(t, "style", "class"), N(e.showProps, "content"), {
1671
1686
  content: o.value
1672
1687
  }), null);
1673
1688
  }
1674
- }), _r = A({
1689
+ }), Qr = A({
1675
1690
  inheritAttrs: !1,
1676
1691
  props: {
1677
1692
  ...Ae,
@@ -1689,14 +1704,14 @@ const _n = () => ({
1689
1704
  }) => {
1690
1705
  const o = M(() => {
1691
1706
  let u = e.value;
1692
- return u && e.decimalFixed && (u = vn(u, e.decimalFixed || 2)), u && e.thousandDivision && (u = bn(u)), e.convert ? e.convert(u, e) : u;
1707
+ return u && e.decimalFixed && (u = vn(u, e.decimalFixed || 2)), u && e.thousandDivision && (u = hn(u)), e.convert ? e.convert(u, e) : u;
1693
1708
  });
1694
1709
  return () => l(je, I(V(t, "style", "class"), {
1695
1710
  value: o.value,
1696
1711
  showProps: e.showProps
1697
1712
  }), null);
1698
1713
  }
1699
- }), Yr = A({
1714
+ }), Zr = A({
1700
1715
  inheritAttrs: !1,
1701
1716
  props: {
1702
1717
  ...Ae,
@@ -1715,10 +1730,10 @@ const _n = () => ({
1715
1730
  setup: (e, {
1716
1731
  attrs: t
1717
1732
  }) => {
1718
- const o = M(() => hn(e.options, (r) => r.label), void 0), u = M(() => {
1733
+ const o = M(() => bn(e.options, (r) => r.label), void 0), u = M(() => {
1719
1734
  const r = e.value;
1720
1735
  let a = e.value;
1721
- return H(r) ? a = Ge(F(r, (c) => f(o.value, c, c)), e.splitStr) : a = f(o.value, r, e.value), e.convert ? e.convert(a, e) : a;
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;
1722
1737
  }), n = M(() => f(e.colorMap, e.value));
1723
1738
  return () => l(je, I(V(t, "style", "class"), {
1724
1739
  style: `color:${n.value || ""}`,
@@ -1726,7 +1741,7 @@ const _n = () => ({
1726
1741
  showProps: e.showProps
1727
1742
  }), null);
1728
1743
  }
1729
- }), Jr = A({
1744
+ }), ea = A({
1730
1745
  inheritAttrs: !1,
1731
1746
  props: {
1732
1747
  ...Ae,
@@ -1755,14 +1770,14 @@ const _n = () => ({
1755
1770
  });
1756
1771
  }), u = M(() => {
1757
1772
  let n = e.value;
1758
- return H(e.value) ? n = Ge(F(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;
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;
1759
1774
  });
1760
1775
  return () => l(je, I(V(t, "style", "class"), {
1761
1776
  value: u.value,
1762
1777
  showProps: e.showProps
1763
1778
  }), null);
1764
1779
  }
1765
- }), Qr = A({
1780
+ }), ta = A({
1766
1781
  props: {
1767
1782
  ...Ae,
1768
1783
  value: {
@@ -1786,7 +1801,7 @@ const _n = () => ({
1786
1801
  }) => {
1787
1802
  const o = (n) => n && (e.isUnix ? ot.unix(n).format(e.format) : ot(n).format(e.format)), u = M(() => {
1788
1803
  let n = e.value;
1789
- return H(e.value) ? n = Ge(F(e.value, (r) => o(r) || ""), e.splitStr) : n = o(e.value) || "", e.convert ? e.convert(n, e) : n;
1804
+ 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;
1790
1805
  });
1791
1806
  return () => l(je, I(V(t, "style", "class"), {
1792
1807
  value: u.value,
@@ -1843,7 +1858,7 @@ const _n = () => ({
1843
1858
  onMenuItemClick: {
1844
1859
  type: Function
1845
1860
  }
1846
- }), Zr = A({
1861
+ }), na = A({
1847
1862
  inheritAttrs: !1,
1848
1863
  props: {
1849
1864
  ...lr()
@@ -1853,7 +1868,7 @@ const _n = () => ({
1853
1868
  attrs: o
1854
1869
  }) => {
1855
1870
  const n = Y()(q.MenusKey), r = Re(), a = M(() => {
1856
- var h;
1871
+ var b;
1857
1872
  return It(e.menus, (s) => {
1858
1873
  var d, S;
1859
1874
  const C = ((d = e.fieldNames) == null ? void 0 : d.value) || "value", P = ((S = e.fieldNames) == null ? void 0 : S.label) || "label";
@@ -1863,32 +1878,32 @@ const _n = () => ({
1863
1878
  label: f(s, P)
1864
1879
  };
1865
1880
  }, {
1866
- children: ((h = e.fieldNames) == null ? void 0 : h.children) || "children",
1881
+ children: ((b = e.fieldNames) == null ? void 0 : b.children) || "children",
1867
1882
  childrenName: "children"
1868
1883
  });
1869
1884
  }), c = M(() => Sn(a.value)), m = M(() => {
1870
1885
  var s;
1871
- const h = ln(r.matched, (C) => !!f(c.value, C.name));
1872
- return h ? f(c.value, h.name) : (s = e.findCurrentTopName) == null ? void 0 : s.call(e, r, c.value);
1873
- }), i = M(() => m.value ? nt(a.value, (h) => h.value === m.value).target : null), p = M(() => {
1874
- var h;
1875
- return r.name && f(c.value, r.name) ? r.name : (h = e.findActiveKey) == null ? void 0 : h.call(e, r, c.value);
1876
- }), g = (h) => {
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(() => {
1889
+ 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) => {
1877
1892
  var C;
1878
- const s = nt(a.value, (P) => P.value === h.value).target;
1893
+ const s = nt(a.value, (P) => P.value === b.value).target;
1879
1894
  (C = e.onMenuItemClick) == null || C.call(e, s);
1880
1895
  }, y = ce(t, "header"), v = ce(t, "menu");
1881
1896
  return () => {
1882
1897
  var C, P, d, S, k, R, j, W;
1883
1898
  if (!n)
1884
1899
  return null;
1885
- const h = V(o, "class"), s = {
1900
+ const b = V(o, "class"), s = {
1886
1901
  class: "pro-layout-menus",
1887
1902
  options: a.value,
1888
1903
  activeKey: p.value,
1889
1904
  ...V(e, "convertSubMenuProps", "convertMenuItemProps", "onMenuItemClick")
1890
1905
  };
1891
- return e.layout === "vertical" ? l("main", I(h, {
1906
+ return e.layout === "vertical" ? l("main", I(b, {
1892
1907
  class: `${e.clsName} ${e.clsName}-${e.layout}`
1893
1908
  }), [l(De, {
1894
1909
  class: `${e.clsName}-header`
@@ -1900,7 +1915,7 @@ const _n = () => ({
1900
1915
  ...y
1901
1916
  }), l("div", {
1902
1917
  class: `${e.clsName}-section`
1903
- }, [(C = t.default) == null ? void 0 : C.call(t)])]) : e.layout === "horizontal" ? l("main", I(h, {
1918
+ }, [(C = t.default) == null ? void 0 : C.call(t)])]) : e.layout === "horizontal" ? l("main", I(b, {
1904
1919
  class: `${e.clsName} ${e.clsName}-${e.layout}`
1905
1920
  }), [l("div", {
1906
1921
  class: "pro-layout-menus-wrapper"
@@ -1910,7 +1925,7 @@ const _n = () => ({
1910
1925
  class: `${e.clsName}-header`
1911
1926
  }, y), l("div", {
1912
1927
  class: `${e.clsName}-section`
1913
- }, [(S = t.default) == null ? void 0 : S.call(t)])])]) : e.layout === "horizontal-v" ? l("main", I(h, {
1928
+ }, [(S = t.default) == null ? void 0 : S.call(t)])])]) : e.layout === "horizontal-v" ? l("main", I(b, {
1914
1929
  class: `${e.clsName} ${e.clsName}-horizontal ${e.clsName}-horizontal-v`
1915
1930
  }), [l(De, {
1916
1931
  class: `${e.clsName}-header`
@@ -1920,7 +1935,7 @@ const _n = () => ({
1920
1935
  class: "pro-layout-menus-wrapper"
1921
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", {
1922
1937
  class: `${e.clsName}-section`
1923
- }, [(j = t.default) == null ? void 0 : j.call(t)])])]) : l("main", I(h, {
1938
+ }, [(j = t.default) == null ? void 0 : j.call(t)])])]) : l("main", I(b, {
1924
1939
  class: `${e.clsName} ${e.clsName}-${e.layout}`
1925
1940
  }), [l(De, {
1926
1941
  class: `${e.clsName}-header`
@@ -1929,7 +1944,7 @@ const _n = () => ({
1929
1944
  style: `width:${$}px`,
1930
1945
  class: "pro-layout-menus",
1931
1946
  mode: "horizontal",
1932
- options: F(a.value, (x) => N(x, "children")),
1947
+ options: L(a.value, (K) => N(K, "children")),
1933
1948
  activeKey: m.value
1934
1949
  }, V(e, "convertSubMenuProps", "convertMenuItemProps"), {
1935
1950
  onMenuItemClick: g
@@ -1944,7 +1959,7 @@ const _n = () => ({
1944
1959
  }, [(W = t.default) == null ? void 0 : W.call(t)])])]);
1945
1960
  };
1946
1961
  }
1947
- }), ea = A({
1962
+ }), ra = A({
1948
1963
  props: {
1949
1964
  fieldNames: {
1950
1965
  type: Object,
@@ -1966,7 +1981,7 @@ const _n = () => ({
1966
1981
  const p = At(i);
1967
1982
  if (H(p)) {
1968
1983
  const g = e.fieldNames;
1969
- return F(p, (y) => ({
1984
+ return L(p, (y) => ({
1970
1985
  ...N(y, g.id, g.name, g.size),
1971
1986
  id: f(y, g.id),
1972
1987
  name: f(y, g.name),
@@ -1976,14 +1991,14 @@ const _n = () => ({
1976
1991
  return [];
1977
1992
  }, a = M(() => r(e.value)), c = M(() => r(e.modelValue)), m = (i, p) => {
1978
1993
  let g = "";
1979
- i && J(i) > 0 && (g = Pn(F(i, (y) => {
1994
+ i && J(i) > 0 && (g = Pn(L(i, (y) => {
1980
1995
  var s;
1981
- const v = e.fieldNames, h = {
1996
+ const v = e.fieldNames, b = {
1982
1997
  [v.id]: y.id,
1983
1998
  [v.name]: y.name,
1984
1999
  [v.size || "size"]: y.size
1985
2000
  };
1986
- return ((s = e.convertItem) == null ? void 0 : s.call(e, y)) || h;
2001
+ return ((s = e.convertItem) == null ? void 0 : s.call(e, y)) || b;
1987
2002
  }))), o(p, g);
1988
2003
  };
1989
2004
  return () => n ? l(n, I({
@@ -1994,7 +2009,7 @@ const _n = () => ({
1994
2009
  "onUpdate:modelValue": (i) => m(i, "update:modelValue")
1995
2010
  }, N(e, "value", "modelValue", "fieldNames")), t) : null;
1996
2011
  }
1997
- }), ta = A({
2012
+ }), aa = A({
1998
2013
  props: {
1999
2014
  value: [String, Array],
2000
2015
  fieldNames: {
@@ -2015,7 +2030,7 @@ const _n = () => ({
2015
2030
  return !!f(a, ((c = e.fieldNames) == null ? void 0 : c.id) || "id");
2016
2031
  }, n = M(() => {
2017
2032
  let a = e.value;
2018
- return a && le(a) && (a = At(a)), a && !H(a) && Ce(a) && u(a) && (a = [a]), H(a) ? F(_(a, (c) => u(c)), (c) => {
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) => {
2019
2034
  var g, y, v;
2020
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");
2021
2036
  return {
@@ -2032,7 +2047,7 @@ const _n = () => ({
2032
2047
  var a, c;
2033
2048
  return l("div", {
2034
2049
  class: "pro-upload-list"
2035
- }, [(a = t.start) == null ? void 0 : a.call(t), F(n.value, (m) => {
2050
+ }, [(a = t.start) == null ? void 0 : a.call(t), L(n.value, (m) => {
2036
2051
  var i;
2037
2052
  return l("div", {
2038
2053
  class: "pro-upload-list-item"
@@ -2076,12 +2091,12 @@ const _n = () => ({
2076
2091
  setup: (e) => {
2077
2092
  const {
2078
2093
  execute: t
2079
- } = be();
2094
+ } = he();
2080
2095
  return oe(() => {
2081
2096
  e.initExecuteList && t(e.initExecuteList, []);
2082
2097
  }, []), () => null;
2083
2098
  }
2084
- }), na = ({
2099
+ }), oa = ({
2085
2100
  actors: e,
2086
2101
  configData: t,
2087
2102
  configDataExtra: o,
@@ -2115,18 +2130,18 @@ const _n = () => ({
2115
2130
  return { access: e, setAccess: t, delAccess: () => {
2116
2131
  t(void 0);
2117
2132
  } };
2118
- }, ra = () => {
2133
+ }, ua = () => {
2119
2134
  const [e, t] = Ht();
2120
2135
  return [e, t, () => {
2121
2136
  t(void 0);
2122
2137
  }];
2123
- }, Gt = Symbol("logon-user"), mr = () => fe(Gt), aa = A((e, { slots: t }) => {
2138
+ }, Gt = Symbol("logon-user"), mr = () => fe(Gt), ca = A((e, { slots: t }) => {
2124
2139
  const [o, u] = rt(), [n, r] = rt();
2125
2140
  return me(Gt, { user: o, setUser: u, per: n, setPer: r, opts: {} }), () => {
2126
2141
  var c;
2127
2142
  return (c = t.default) == null ? void 0 : c.call(t);
2128
2143
  };
2129
- }), oa = A((e, { slots: t, emit: o }) => {
2144
+ }), la = A((e, { slots: t, emit: o }) => {
2130
2145
  const { access: u } = dr(), n = M(() => u && u.token);
2131
2146
  return oe(() => {
2132
2147
  n.value || o("toLogin");
@@ -2134,7 +2149,7 @@ const _n = () => ({
2134
2149
  var r;
2135
2150
  return n.value ? (r = t.default) == null ? void 0 : r.call(t) : null;
2136
2151
  };
2137
- }), ua = {
2152
+ }), sa = {
2138
2153
  Add: "add",
2139
2154
  Edit: "edit",
2140
2155
  Delete: "delete"
@@ -2146,14 +2161,14 @@ const _n = () => ({
2146
2161
  let n = o;
2147
2162
  if (u != null && u.suffix) {
2148
2163
  const r = t.name ? t.name.toString() : "";
2149
- n = H(n) ? F(n, (a) => `${r}:${a}`) : `${r}:${n}`;
2164
+ n = H(n) ? L(n, (a) => `${r}:${a}`) : `${r}:${n}`;
2150
2165
  }
2151
2166
  return fr(e.buttonMap, n);
2152
2167
  };
2153
2168
  }, vr = () => ({
2154
2169
  suffix: { type: [String, Array] },
2155
2170
  value: { type: [String, Array] }
2156
- }), ca = A({
2171
+ }), ia = A({
2157
2172
  inheritAttrs: !1,
2158
2173
  props: {
2159
2174
  ...vr()
@@ -2165,9 +2180,9 @@ const _n = () => ({
2165
2180
  return u.value ? (n = t.default) == null ? void 0 : n.call(t) : null;
2166
2181
  };
2167
2182
  }
2168
- }), Xt = Symbol("pro-curd"), re = () => fe(Xt), br = (e) => me(Xt, e);
2169
- var K = /* @__PURE__ */ ((e) => (e.LIST = "LIST", e.DETAIL = "DETAIL", e.ADD = "ADD", e.EDIT = "EDIT", e.DELETE = "DELETE", e))(K || {}), U = /* @__PURE__ */ ((e) => (e.EMIT = "EMIT", e.EXECUTE = "EXECUTE", e.PAGE = "PAGE", e.SUCCESS = "SUCCESS", e.FAIL = "FAIL", e))(U || {}), 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 || {});
2170
- const hr = () => ({
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 || {});
2185
+ const br = () => ({
2171
2186
  rowKey: {
2172
2187
  type: String,
2173
2188
  default: "id"
@@ -2193,7 +2208,7 @@ const hr = () => ({
2193
2208
  }), _t = ["sendCurdEvent", "refreshList", "sendEvent", "sendRequest"], mt = A({
2194
2209
  props: {
2195
2210
  ...ve,
2196
- ...hr()
2211
+ ...br()
2197
2212
  },
2198
2213
  setup: (e, {
2199
2214
  slots: t,
@@ -2204,16 +2219,16 @@ const hr = () => ({
2204
2219
  state: n,
2205
2220
  sendEvent: r,
2206
2221
  sendRequest: a
2207
- } = be(), c = M(() => we(e.columns, e.columnState, ($) => se($))), m = ($) => Je(e.formElementMap, $), i = ($, x) => Qe(u, $, x), p = ($, x) => {
2208
- const L = _(c.value, (w) => {
2209
- const b = f(w, ["extra", $]) || f(w, $);
2210
- return x ? b !== !1 : b;
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;
2211
2226
  });
2212
- return Pt(L, (w) => f(w, ["extra", `${$}Sort`]) || f(w, `${$}Sort`));
2213
- }, g = M(() => p("form", !0)), y = M(() => p("detail", !0)), v = M(() => p("table", !0)), h = M(() => p("search"));
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"));
2214
2229
  let s;
2215
2230
  const C = ($) => {
2216
- a(K.LIST, {
2231
+ a(w.LIST, {
2217
2232
  ...s,
2218
2233
  ...$
2219
2234
  });
@@ -2226,38 +2241,38 @@ const hr = () => ({
2226
2241
  };
2227
2242
  Ye(({
2228
2243
  type: $,
2229
- payload: x,
2230
- source: L
2244
+ payload: K,
2245
+ source: x
2231
2246
  }) => {
2232
- if (L)
2247
+ if (x)
2233
2248
  return;
2234
- let w = $, b = x == null ? void 0 : x.type;
2235
- w === Ee.Success && (w = f(x, ["requestOpts", "action"]), b = U.SUCCESS);
2249
+ let F = $, h = K == null ? void 0 : K.type;
2250
+ F === Ee.Success && (F = f(K, ["requestOpts", "action"]), h = U.SUCCESS);
2236
2251
  const {
2237
2252
  values: E,
2238
2253
  record: O
2239
- } = x;
2240
- switch (w) {
2241
- case K.LIST:
2242
- b === U.EMIT && (s = E, C());
2254
+ } = K;
2255
+ switch (F) {
2256
+ case w.LIST:
2257
+ h === U.EMIT && (s = E, C());
2243
2258
  return;
2244
- case K.ADD:
2245
- b === U.EXECUTE && a(K.ADD, E, n.detailData);
2259
+ case w.ADD:
2260
+ h === U.EXECUTE && a(w.ADD, E, n.detailData);
2246
2261
  return;
2247
- case K.EDIT:
2248
- b === U.EXECUTE && a(K.EDIT, E, n.detailData);
2262
+ case w.EDIT:
2263
+ h === U.EXECUTE && a(w.EDIT, E, n.detailData);
2249
2264
  return;
2250
- case K.DELETE:
2251
- b === U.EMIT ? a(K.DELETE, O, e.rowKey) : b === U.SUCCESS && C();
2265
+ case w.DELETE:
2266
+ h === U.EMIT ? a(w.DELETE, O, e.rowKey) : h === U.SUCCESS && C();
2252
2267
  return;
2253
2268
  }
2254
- w && $ === U.EXECUTE && a(w, E);
2269
+ F && $ === U.EXECUTE && a(F, E);
2255
2270
  });
2256
- const d = te(e.operates, ($, x) => ({
2271
+ const d = ne(e.operates, ($, K) => ({
2257
2272
  ...$,
2258
- [x.action]: x
2273
+ [K.action]: K
2259
2274
  }), {}), S = ($) => f(d, $), k = M(() => e.listProps), R = M(() => e.formProps), j = M(() => e.descProps), W = M(() => e.modalProps);
2260
- return br({
2275
+ return hr({
2261
2276
  columns: c,
2262
2277
  getSignColumns: p,
2263
2278
  getFormItemVNode: m,
@@ -2269,7 +2284,7 @@ const hr = () => ({
2269
2284
  formColumns: g,
2270
2285
  descColumns: y,
2271
2286
  tableColumns: v,
2272
- searchColumns: h,
2287
+ searchColumns: b,
2273
2288
  sendCurdEvent: P,
2274
2289
  operates: e.operates,
2275
2290
  getOperate: S,
@@ -2301,10 +2316,10 @@ const hr = () => ({
2301
2316
  const {
2302
2317
  elementMap: u,
2303
2318
  formElementMap: n
2304
- } = ne(), r = G(), a = G(), c = e.curdState || Ie({
2319
+ } = Z(), r = G(), a = G(), c = e.curdState || Ie({
2305
2320
  detailData: {}
2306
2321
  }), m = {
2307
- [K.LIST]: {
2322
+ [w.LIST]: {
2308
2323
  convertParams: (y) => y,
2309
2324
  convertData: (y) => {
2310
2325
  var v;
@@ -2313,7 +2328,7 @@ const hr = () => ({
2313
2328
  loadingName: "listLoading",
2314
2329
  stateName: "listData"
2315
2330
  },
2316
- [K.DETAIL]: {
2331
+ [w.DETAIL]: {
2317
2332
  convertParams: (y, v) => V(y, v),
2318
2333
  convertData: (y) => {
2319
2334
  var v;
@@ -2323,7 +2338,7 @@ const hr = () => ({
2323
2338
  stateName: "detailData",
2324
2339
  label: "\u8BE6\u60C5"
2325
2340
  },
2326
- [K.ADD]: {
2341
+ [w.ADD]: {
2327
2342
  convertParams: (y, v) => ({
2328
2343
  body: {
2329
2344
  ...v,
@@ -2333,7 +2348,7 @@ const hr = () => ({
2333
2348
  loadingName: "operateLoading",
2334
2349
  label: "\u6DFB\u52A0"
2335
2350
  },
2336
- [K.EDIT]: {
2351
+ [w.EDIT]: {
2337
2352
  convertParams: (y, v) => ({
2338
2353
  body: {
2339
2354
  ...v,
@@ -2343,16 +2358,16 @@ const hr = () => ({
2343
2358
  loadingName: "operateLoading",
2344
2359
  label: "\u7F16\u8F91"
2345
2360
  },
2346
- [K.DELETE]: {
2361
+ [w.DELETE]: {
2347
2362
  convertParams: (y, v) => V(y, v),
2348
2363
  label: "\u5220\u9664"
2349
2364
  }
2350
- }, i = F(e.operates, (y) => {
2365
+ }, i = L(e.operates, (y) => {
2351
2366
  var s;
2352
- const v = f(m, y.action), h = ((s = e.convertOperate) == null ? void 0 : s.call(e, y, v)) || y;
2367
+ const v = f(m, y.action), b = ((s = e.convertOperate) == null ? void 0 : s.call(e, y, v)) || y;
2353
2368
  return {
2354
2369
  ...v,
2355
- ...h
2370
+ ...b
2356
2371
  };
2357
2372
  }), p = _(i, (y) => y.actor), g = z(N(Oe.props, "state", "requests"));
2358
2373
  return o({
@@ -2369,8 +2384,8 @@ const hr = () => ({
2369
2384
  (v = r.value) == null || v.sendEvent(y);
2370
2385
  },
2371
2386
  sendRequest: (y, ...v) => {
2372
- var h;
2373
- (h = r.value) == null || h.sendRequest(y, ...v);
2387
+ var b;
2388
+ (b = r.value) == null || b.sendRequest(y, ...v);
2374
2389
  }
2375
2390
  }), () => l(Oe, I({
2376
2391
  ref: r
@@ -2400,69 +2415,69 @@ const hr = () => ({
2400
2415
  const {
2401
2416
  dispatch: t,
2402
2417
  sendRequest: o
2403
- } = be(), {
2418
+ } = he(), {
2404
2419
  rowKey: u,
2405
2420
  curdState: n,
2406
2421
  listProps: r,
2407
2422
  getOperate: a,
2408
2423
  refreshList: c
2409
- } = re(), m = (v = r == null ? void 0 : r.value) == null ? void 0 : v.pageState, i = (h) => {
2410
- const s = a(K.DETAIL);
2411
- s != null && s.actor ? o(K.DETAIL, h, u) : t({
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({
2412
2427
  type: "detailData",
2413
- payload: pt(h)
2428
+ payload: pt(b)
2414
2429
  });
2415
- }, p = (h, {
2430
+ }, p = (b, {
2416
2431
  record: s
2417
2432
  }) => {
2418
- h === U.EMIT && (t({
2433
+ b === U.EMIT && (t({
2419
2434
  type: "mode",
2420
2435
  payload: ie.DETAIL
2421
2436
  }), i(s));
2422
- }, g = (h) => {
2423
- h === U.EMIT ? (t({
2437
+ }, g = (b) => {
2438
+ b === U.EMIT ? (t({
2424
2439
  type: "mode",
2425
2440
  payload: ie.ADD
2426
2441
  }), t({
2427
2442
  type: "detailData",
2428
2443
  payload: e.defaultAddRecord || {}
2429
- })) : h === U.SUCCESS && (m && (m.page = 1), c(), n.addAction === Te.CONTINUE ? t({
2444
+ })) : b === U.SUCCESS && (m && (m.page = 1), c(), n.addAction === Te.CONTINUE ? t({
2430
2445
  type: "detailData",
2431
2446
  payload: e.defaultAddRecord || {}
2432
2447
  }) : t({
2433
2448
  type: "mode",
2434
2449
  payload: void 0
2435
2450
  }));
2436
- }, y = (h, {
2451
+ }, y = (b, {
2437
2452
  record: s
2438
2453
  }) => {
2439
- h === U.EMIT ? (t({
2454
+ b === U.EMIT ? (t({
2440
2455
  type: "mode",
2441
2456
  payload: ie.EDIT
2442
- }), i(s)) : h === U.SUCCESS && (t({
2457
+ }), i(s)) : b === U.SUCCESS && (t({
2443
2458
  type: "mode",
2444
2459
  payload: void 0
2445
2460
  }), c());
2446
2461
  };
2447
2462
  return Ye(({
2448
- type: h,
2463
+ type: b,
2449
2464
  payload: s,
2450
2465
  source: C
2451
2466
  }) => {
2452
2467
  if (C)
2453
2468
  return;
2454
- let P = h, d = s == null ? void 0 : s.type;
2469
+ let P = b, d = s == null ? void 0 : s.type;
2455
2470
  const S = s == null ? void 0 : s.record;
2456
2471
  switch (P === Ee.Success && (P = f(s, ["requestOpts", "action"]), d = U.SUCCESS), P) {
2457
- case K.DETAIL:
2472
+ case w.DETAIL:
2458
2473
  p(d, {
2459
2474
  record: S
2460
2475
  });
2461
2476
  break;
2462
- case K.ADD:
2477
+ case w.ADD:
2463
2478
  g(d);
2464
2479
  break;
2465
- case K.EDIT:
2480
+ case w.EDIT:
2466
2481
  y(d, {
2467
2482
  record: S
2468
2483
  });
@@ -2470,7 +2485,7 @@ const hr = () => ({
2470
2485
  }
2471
2486
  }), () => null;
2472
2487
  }
2473
- }), la = A({
2488
+ }), da = A({
2474
2489
  props: {
2475
2490
  ...We.props,
2476
2491
  ...qe.props
@@ -2480,7 +2495,7 @@ const hr = () => ({
2480
2495
  expose: o
2481
2496
  }) => {
2482
2497
  const u = G();
2483
- o(he(_t, u));
2498
+ o(be(_t, u));
2484
2499
  const n = z(qe.props), a = Y()(q.ProCurdKey);
2485
2500
  return () => a ? l(a, I({
2486
2501
  ref: u
@@ -2506,7 +2521,7 @@ const hr = () => ({
2506
2521
  const t = Xe(), o = Re(), {
2507
2522
  dispatch: u,
2508
2523
  sendRequest: n
2509
- } = be(), {
2524
+ } = he(), {
2510
2525
  rowKey: r,
2511
2526
  curdState: a
2512
2527
  } = re(), c = (g) => {
@@ -2532,7 +2547,7 @@ const hr = () => ({
2532
2547
  }) : g === U.PAGE && (u({
2533
2548
  type: "mode",
2534
2549
  payload: ie.DETAIL
2535
- }), n(K.DETAIL, o.query, r));
2550
+ }), n(w.DETAIL, o.query, r));
2536
2551
  }, i = (g) => {
2537
2552
  g === U.EMIT ? t.push({
2538
2553
  path: `${o.path}/add`
@@ -2545,7 +2560,7 @@ const hr = () => ({
2545
2560
  })) : g === U.SUCCESS && (a.addAction === Te.CONTINUE ? u({
2546
2561
  type: "detailData",
2547
2562
  payload: e.defaultAddRecord || {}
2548
- }) : e.routeBack ? e.routeBack(K.ADD) : t.go(-1));
2563
+ }) : e.routeBack ? e.routeBack(w.ADD) : t.go(-1));
2549
2564
  }, p = (g, {
2550
2565
  record: y
2551
2566
  }) => {
@@ -2555,7 +2570,7 @@ const hr = () => ({
2555
2570
  }) : g === U.PAGE ? (u({
2556
2571
  type: "mode",
2557
2572
  payload: ie.EDIT
2558
- }), n(K.DETAIL, o.query, r)) : g === U.SUCCESS && (e.routeBack ? e.routeBack(K.EDIT) : t.go(-1));
2573
+ }), n(w.DETAIL, o.query, r)) : g === U.SUCCESS && (e.routeBack ? e.routeBack(w.EDIT) : t.go(-1));
2559
2574
  };
2560
2575
  return Ye(({
2561
2576
  type: g,
@@ -2564,21 +2579,21 @@ const hr = () => ({
2564
2579
  }) => {
2565
2580
  if (v)
2566
2581
  return;
2567
- let h = g, s = y == null ? void 0 : y.type;
2582
+ let b = g, s = y == null ? void 0 : y.type;
2568
2583
  const C = y == null ? void 0 : y.record;
2569
- switch (h === Ee.Success && (h = f(y, ["requestOpts", "action"]), s = U.SUCCESS), h) {
2570
- case K.LIST:
2584
+ switch (b === Ee.Success && (b = f(y, ["requestOpts", "action"]), s = U.SUCCESS), b) {
2585
+ case w.LIST:
2571
2586
  c(s);
2572
2587
  break;
2573
- case K.DETAIL:
2588
+ case w.DETAIL:
2574
2589
  m(s, {
2575
2590
  record: C
2576
2591
  });
2577
2592
  break;
2578
- case K.ADD:
2593
+ case w.ADD:
2579
2594
  i(s);
2580
2595
  break;
2581
- case K.EDIT:
2596
+ case w.EDIT:
2582
2597
  p(s, {
2583
2598
  record: C
2584
2599
  });
@@ -2586,7 +2601,7 @@ const hr = () => ({
2586
2601
  }
2587
2602
  }), () => null;
2588
2603
  }
2589
- }), sa = A({
2604
+ }), ma = A({
2590
2605
  props: {
2591
2606
  ...We.props,
2592
2607
  ...Ve.props
@@ -2596,7 +2611,7 @@ const hr = () => ({
2596
2611
  expose: o
2597
2612
  }) => {
2598
2613
  const u = G();
2599
- o(he(_t, u));
2614
+ o(be(_t, u));
2600
2615
  const n = z(Ve.props);
2601
2616
  return () => l(We, I({
2602
2617
  ref: u
@@ -2617,13 +2632,13 @@ const hr = () => ({
2617
2632
  const {
2618
2633
  getOperate: o,
2619
2634
  sendCurdEvent: u
2620
- } = re(), n = o(K.ADD), r = () => {
2635
+ } = re(), n = o(w.ADD), r = () => {
2621
2636
  if (n != null && n.onClick) {
2622
2637
  n.onClick();
2623
2638
  return;
2624
2639
  }
2625
2640
  u({
2626
- action: K.ADD,
2641
+ action: w.ADD,
2627
2642
  type: U.EMIT
2628
2643
  });
2629
2644
  }, c = Y()(q.ButtonKey);
@@ -2659,10 +2674,10 @@ const hr = () => ({
2659
2674
  tableColumns: a,
2660
2675
  sendCurdEvent: c,
2661
2676
  operates: m
2662
- } = re(), i = F(
2677
+ } = re(), i = L(
2663
2678
  _(m, (P) => {
2664
2679
  const d = P.action;
2665
- return d === K.DETAIL || d === K.EDIT || d === K.DELETE || P.tableOperate;
2680
+ return d === w.DETAIL || d === w.EDIT || d === w.DELETE || P.tableOperate;
2666
2681
  }),
2667
2682
  (P) => {
2668
2683
  const d = {
@@ -2679,7 +2694,7 @@ const hr = () => ({
2679
2694
  }
2680
2695
  ), p = (P) => {
2681
2696
  c({
2682
- action: K.LIST,
2697
+ action: w.LIST,
2683
2698
  type: U.EMIT,
2684
2699
  values: P
2685
2700
  });
@@ -2706,12 +2721,12 @@ const hr = () => ({
2706
2721
  total: (P = n.listData) == null ? void 0 : P.total,
2707
2722
  ...e.paginationProps
2708
2723
  };
2709
- }), h = z(yt()), C = Y()(q.ProListKey);
2724
+ }), b = z(yt()), C = Y()(q.ProListKey);
2710
2725
  return () => {
2711
2726
  var P, d;
2712
2727
  return C ? l(C, I({
2713
2728
  class: "pro-curd-list"
2714
- }, N(e, ...h, "searchProps", "tableProps", "paginationProps"), {
2729
+ }, N(e, ...b, "searchProps", "tableProps", "paginationProps"), {
2715
2730
  searchProps: g.value,
2716
2731
  tableProps: y.value,
2717
2732
  paginationProps: v.value,
@@ -2734,7 +2749,7 @@ const hr = () => ({
2734
2749
  }) : null;
2735
2750
  };
2736
2751
  }
2737
- }), ia = A(() => {
2752
+ }), fa = A(() => {
2738
2753
  const {
2739
2754
  listProps: e
2740
2755
  } = re();
@@ -2760,27 +2775,27 @@ const hr = () => ({
2760
2775
  getSignColumns: m,
2761
2776
  sendCurdEvent: i
2762
2777
  } = re(), p = G();
2763
- o(he(e.formMethods || [], p));
2778
+ o(be(e.formMethods || [], p));
2764
2779
  const g = M(() => e.signName ? m(e.signName) : c.value), y = () => {
2765
2780
  var d;
2766
2781
  a.addAction = Te.NORMAL, (d = p.value) == null || d.submit();
2767
2782
  }, v = () => {
2768
2783
  var d;
2769
2784
  a.addAction = Te.CONTINUE, (d = p.value) == null || d.submit();
2770
- }, h = [
2785
+ }, b = [
2771
2786
  {
2772
- value: ee.RESET,
2787
+ value: te.RESET,
2773
2788
  label: "\u91CD\u7F6E"
2774
2789
  },
2775
2790
  {
2776
- value: ee.SUBMIT,
2791
+ value: te.SUBMIT,
2777
2792
  label: "\u63D0\u4EA4",
2778
2793
  extraProps: {
2779
2794
  type: "primary"
2780
2795
  }
2781
2796
  },
2782
2797
  {
2783
- value: ee.CONTINUE,
2798
+ value: te.CONTINUE,
2784
2799
  label: "\u786E\u5B9A\u5E76\u7EE7\u7EED",
2785
2800
  extraProps: {
2786
2801
  type: "primary"
@@ -2788,12 +2803,12 @@ const hr = () => ({
2788
2803
  show: !1
2789
2804
  }
2790
2805
  ], s = (d) => {
2791
- u.onFinish || (a.mode === K.EDIT ? i({
2792
- action: K.EDIT,
2806
+ u.onFinish || (a.mode === w.EDIT ? i({
2807
+ action: w.EDIT,
2793
2808
  type: U.EXECUTE,
2794
2809
  values: d
2795
2810
  }) : i({
2796
- action: K.ADD,
2811
+ action: w.ADD,
2797
2812
  type: U.EXECUTE,
2798
2813
  values: d
2799
2814
  }));
@@ -2805,11 +2820,11 @@ const hr = () => ({
2805
2820
  elementMap: e.elementMap || n,
2806
2821
  formElementMap: e.formElementMap || r,
2807
2822
  columns: e.columns || g.value,
2808
- readonly: a.mode === K.DETAIL,
2823
+ readonly: a.mode === w.DETAIL,
2809
2824
  model: e.model || a.detailData,
2810
- hideRequiredMark: a.mode === K.DETAIL,
2825
+ hideRequiredMark: a.mode === w.DETAIL,
2811
2826
  operate: e.operate ? {
2812
- items: h,
2827
+ items: b,
2813
2828
  onSubmit: y,
2814
2829
  onContinue: v,
2815
2830
  ...e.operate
@@ -2817,7 +2832,7 @@ const hr = () => ({
2817
2832
  onFinish: s
2818
2833
  }), t) : null;
2819
2834
  }
2820
- }), da = A(() => {
2835
+ }), ya = A(() => {
2821
2836
  const {
2822
2837
  formProps: e
2823
2838
  } = re();
@@ -2843,7 +2858,7 @@ const hr = () => ({
2843
2858
  columns: r.value
2844
2859
  }), t);
2845
2860
  }
2846
- }), ma = A(() => {
2861
+ }), va = A(() => {
2847
2862
  const {
2848
2863
  descProps: e
2849
2864
  } = re();
@@ -2853,7 +2868,7 @@ const hr = () => ({
2853
2868
  }), vt = () => ({
2854
2869
  validMode: {
2855
2870
  type: Array,
2856
- default: [K.ADD, K.DETAIL, K.EDIT]
2871
+ default: [w.ADD, w.DETAIL, w.EDIT]
2857
2872
  },
2858
2873
  loadingOpts: {
2859
2874
  type: Object
@@ -2883,8 +2898,8 @@ const hr = () => ({
2883
2898
  visible: de(e.validMode, (g) => g === i),
2884
2899
  title: e.title || ((p = a(r.mode)) == null ? void 0 : p.label),
2885
2900
  confirmLoading: r.operateLoading,
2886
- maskClosable: r.mode === K.DETAIL,
2887
- footer: r.mode === K.DETAIL ? !1 : void 0
2901
+ maskClosable: r.mode === w.DETAIL,
2902
+ footer: r.mode === w.DETAIL ? !1 : void 0
2888
2903
  }, e.overrideProps, {
2889
2904
  onCancel: c
2890
2905
  }), {
@@ -2902,7 +2917,7 @@ const hr = () => ({
2902
2917
  });
2903
2918
  };
2904
2919
  }
2905
- }), fa = A({
2920
+ }), ha = A({
2906
2921
  props: {
2907
2922
  modalProps: Object,
2908
2923
  formProps: Object
@@ -2923,7 +2938,7 @@ const hr = () => ({
2923
2938
  ...u
2924
2939
  });
2925
2940
  }
2926
- }), ya = A(() => {
2941
+ }), ba = A(() => {
2927
2942
  const {
2928
2943
  modalProps: e,
2929
2944
  formProps: t
@@ -2943,97 +2958,100 @@ const hr = () => ({
2943
2958
  export {
2944
2959
  ft as AddButton,
2945
2960
  Jn as ColumnSetting,
2946
- K as CurdAction,
2961
+ w as CurdAction,
2947
2962
  Te as CurdAddAction,
2948
2963
  ie as CurdCurrentMode,
2949
2964
  _t as CurdMethods,
2950
2965
  U as CurdSubAction,
2951
2966
  q as ElementKeys,
2952
- ee as FormAction,
2953
- zr as FormRulePrefixMap,
2954
- aa as LogonUser,
2967
+ te as FormAction,
2968
+ Gr as FormRulePrefixMap,
2969
+ ca as LogonUser,
2955
2970
  Gt as LogonUserKey,
2956
- oa as MustLogon,
2957
- ua as PerSuffix,
2958
- ca as Permission,
2959
- Lr as ProConfig,
2971
+ la as MustLogon,
2972
+ sa as PerSuffix,
2973
+ ia as Permission,
2974
+ Rr as ProConfig,
2960
2975
  We as ProCurd,
2961
2976
  Er as ProCurdDesc,
2962
- ma as ProCurdDescConnect,
2977
+ va as ProCurdDescConnect,
2963
2978
  et as ProCurdForm,
2964
- da as ProCurdFormConnect,
2979
+ ya as ProCurdFormConnect,
2965
2980
  Pr as ProCurdList,
2966
- ia as ProCurdListConnect,
2981
+ fa as ProCurdListConnect,
2967
2982
  Yt as ProCurdModal,
2968
- fa as ProCurdModalForm,
2969
- ya as ProCurdModalFormConnect,
2983
+ ha as ProCurdModalForm,
2984
+ ba as ProCurdModalFormConnect,
2970
2985
  or as ProDesc,
2971
- Vr as ProForm,
2972
- qr as ProFormList,
2986
+ Hr as ProForm,
2987
+ Wr as ProFormList,
2973
2988
  ge as ProGrid,
2974
- Zr as ProLayout,
2989
+ na as ProLayout,
2975
2990
  ar as ProList,
2976
- la as ProModalCurd,
2991
+ da as ProModalCurd,
2977
2992
  Oe as ProModule,
2978
2993
  zt as ProOperate,
2979
- Xr as ProPage,
2980
- sa as ProPageCurd,
2981
- Wr as ProSearchForm,
2982
- Qr as ProShowDate,
2983
- _r as ProShowDigit,
2984
- Yr as ProShowOptions,
2994
+ Jr as ProPage,
2995
+ ma as ProPageCurd,
2996
+ Xr as ProSearchForm,
2997
+ ta as ProShowDate,
2998
+ Qr as ProShowDigit,
2999
+ Zr as ProShowOptions,
2985
3000
  je as ProShowText,
2986
- Jr as ProShowTree,
2987
- Gr as ProTable,
3001
+ ea as ProShowTree,
3002
+ Yr as ProTable,
2988
3003
  cr as ProTypography,
2989
- ta as ProUploadList,
2990
- ea as ProUploaderText,
3004
+ aa as ProUploadList,
3005
+ ra as ProUploaderText,
2991
3006
  Ee as RequestAction,
2992
- Fe as SearchMode,
3007
+ Le as SearchMode,
2993
3008
  Un as Wrapper,
2994
3009
  jt as convertPathToList,
2995
3010
  An as convertResData,
2996
- he as createExpose,
2997
- Br as createExposeObj,
2998
- Hr as createFormItemCompFn,
2999
- na as createModule,
3000
- Fr as createProConfig,
3011
+ be as createExpose,
3012
+ zr as createExposeObj,
3013
+ _r as createFormItemCompFn,
3014
+ oa as createModule,
3015
+ jr as createProConfig,
3001
3016
  nr as defaultPage,
3002
3017
  ce as filterSlotsByPrefix,
3003
3018
  se as getColumnFormItemName,
3004
- Ft as getColumnValueType,
3019
+ Lt as getColumnValueType,
3005
3020
  kn as getFirstPropName,
3006
3021
  Je as getFormItemEl,
3007
3022
  Qe as getItemEl,
3008
3023
  zn as getSignValue,
3009
3024
  Vn as getValidValues,
3010
3025
  jn as isValidConfig,
3011
- Ur as mergeStateToList,
3026
+ Vr as mergeStateToList,
3012
3027
  ve as proBaseProps,
3013
- br as provideProCurd,
3028
+ hr as provideProCurd,
3014
3029
  Bt as provideProFormList,
3015
- wn as provideProModule,
3030
+ Fn as provideProModule,
3016
3031
  Me as renderElement,
3017
3032
  Ze as renderElements,
3018
3033
  dr as useAccess,
3019
- ra as useAccessMgr,
3034
+ ua as useAccessMgr,
3020
3035
  Nn as useComposeRequestActor,
3021
- jr as useDispatchMeta,
3022
- Fn as useDispatchStore,
3023
- wr as useDoneRequestActor,
3024
- Rr as useFailedRequestActor,
3036
+ Br as useDispatchMeta,
3037
+ Ln as useDispatchStore,
3038
+ kr as useDoneRequestActor,
3039
+ Ur as useFailedRequestActor,
3025
3040
  Hn as useFormSubmit,
3026
3041
  Y as useGetCompByKey,
3027
3042
  yr as useHasPer,
3028
3043
  mr as useLogonUser,
3029
3044
  $n as useMetaRegister,
3030
3045
  Ye as useModuleEvent,
3031
- ne as useProConfig,
3046
+ Z as useProConfig,
3032
3047
  re as useProCurd,
3033
3048
  Vt as useProForm,
3034
3049
  Ut as useProFormList,
3035
- be as useProModule,
3050
+ Lr as useProModal,
3051
+ he as useProModule,
3052
+ xr as useProMsg,
3053
+ Fr as useProNotify,
3036
3054
  Dn as useProRouter,
3037
3055
  Qn as useProTable,
3038
- kr as useReadStore
3056
+ qr as useReadStore
3039
3057
  };