@vue-start/pro 0.5.8 → 0.5.10

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
  var Kt = Object.defineProperty;
2
2
  var xt = (e, t, r) => t in e ? Kt(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
3
- var ee = (e, t, r) => (xt(e, typeof t != "symbol" ? t + "" : t, r), r);
4
- import { defineComponent as I, provide as oe, inject as te, ref as B, computed as D, h as le, isVNode as Ee, reactive as ve, createVNode as i, Fragment as Y, mergeProps as M, createTextVNode as He, toRef as Rt } from "vue";
5
- import { reduce as H, get as h, isFunction as k, map as L, isString as he, forEach as pe, size as W, set as se, pick as R, omit as T, isArray as U, some as ae, keys as j, head as kt, isObject as ie, filter as q, split as Ft, isEmpty as jt, mergeWith as Ut, startsWith as qt, mapKeys as Bt, has as je, debounce as Vt, clone as zt, isBoolean as ne, every as _t, sortBy as st, isNumber as Gt, join as Ue, findLast as We, cloneDeep as Ht } from "lodash";
3
+ var Z = (e, t, r) => (xt(e, typeof t != "symbol" ? t + "" : t, r), r);
4
+ import { defineComponent as I, provide as oe, inject as te, ref as V, computed as D, h as le, isVNode as Ee, reactive as ve, createVNode as i, Fragment as ee, mergeProps as M, createTextVNode as He, toRef as Rt } from "vue";
5
+ import { reduce as H, get as h, isFunction as k, map as L, isString as he, forEach as pe, size as W, set as se, pick as R, omit as T, isArray as q, some as ae, keys as U, head as kt, isObject as ie, filter as B, split as Ft, isEmpty as jt, mergeWith as Ut, startsWith as qt, mapKeys as Bt, has as je, debounce as Vt, clone as zt, isBoolean as ne, every as _t, sortBy as st, isNumber as Gt, join as Ue, findLast as We, cloneDeep as Ht } from "lodash";
6
6
  import { Observable as Wt, filter as Ce, tap as Te, merge as Xt, Subject as Yt } from "rxjs";
7
- import { useEffect as Q, useState as Fe, setReactiveValue as ut, useRuleState as $e, useWatch as ct, useUpdateKey as Jt, useResizeObserver as Qt, decimalFixed as Zt, thousandDivision as en, listToMap as tn, treeToMap as nn, convertTreeData as rn, getMenuTopNameMap as an, findTreeItem as Xe, strToJson as lt, jsonToStr as on } from "@vue-start/hooks";
7
+ import { useEffect as J, useState as Fe, setReactiveValue as ut, useRuleState as $e, useWatch as ct, useUpdateKey as Jt, useResizeObserver as Qt, decimalFixed as Zt, thousandDivision as en, listToMap as tn, treeToMap as nn, convertTreeData as rn, getMenuTopNameMap as an, findTreeItem as Xe, strToJson as lt, jsonToStr as on } from "@vue-start/hooks";
8
8
  import { useRequestProvide as ge, isDoneRequestActor as it, isFailedRequestActor as dt } from "@vue-start/request";
9
9
  import { map as sn, distinctUntilChanged as un } from "rxjs/operators";
10
10
  import { useRoute as qe, useRouter as cn } from "vue-router";
@@ -21,17 +21,17 @@ const ln = () => ({
21
21
  registerStores: { type: Array },
22
22
  registerActors: { type: Array },
23
23
  registerMetas: { type: Array }
24
- }), Be = Symbol("pro-config"), Z = () => te(Be) || {}, Pr = I({
24
+ }), Be = Symbol("pro-config"), Q = () => te(Be) || {}, Pr = I({
25
25
  props: {
26
26
  ...dn()
27
27
  },
28
28
  setup: (e, { slots: t }) => {
29
- const r = H(e.registerStores, (u, m) => ({ ...u, [m.key]: m }), {}), s = H(e.registerActors, (u, m) => ({ ...u, [m.actor.name]: m }), {}), o = H(e.registerMetas, (u, m) => ({ ...u, [m.actorName]: m }), {});
29
+ const r = H(e.registerStores, (u, f) => ({ ...u, [f.key]: f }), {}), s = H(e.registerActors, (u, f) => ({ ...u, [f.actor.name]: f }), {}), o = H(e.registerMetas, (u, f) => ({ ...u, [f.actorName]: f }), {});
30
30
  In(o, s);
31
- const { dispatchRequest: n } = ge(), a = (u, m, d) => {
31
+ const { dispatchRequest: n } = ge(), a = (u, f, d) => {
32
32
  const p = h(s, u);
33
33
  if (!!p)
34
- return n(p.actor, m, d);
34
+ return n(p.actor, f, d);
35
35
  };
36
36
  return oe(Be, {
37
37
  elementMap: e.elementMap,
@@ -48,7 +48,7 @@ const ln = () => ({
48
48
  }
49
49
  }), Er = (e = {}) => (t) => {
50
50
  t.provide(Be, e);
51
- }, fn = Object.prototype.hasOwnProperty, Je = (e, t) => e === t ? e !== 0 || t !== 0 || 1 / e === 1 / t : e !== e && t !== t, mn = (e, t) => {
51
+ }, mn = Object.prototype.hasOwnProperty, Je = (e, t) => e === t ? e !== 0 || t !== 0 || 1 / e === 1 / t : e !== e && t !== t, fn = (e, t) => {
52
52
  if (Je(e, t))
53
53
  return !0;
54
54
  if (typeof e != "object" || e === null || typeof t != "object" || t === null)
@@ -57,7 +57,7 @@ const ln = () => ({
57
57
  if (r.length !== s.length)
58
58
  return !1;
59
59
  for (let o = 0; o < r.length; o++)
60
- if (!fn.call(t, r[o]) || !Je(e[r[o]], t[r[o]]))
60
+ if (!mn.call(t, r[o]) || !Je(e[r[o]], t[r[o]]))
61
61
  return !1;
62
62
  return !0;
63
63
  }, yn = "$store", Ne = () => te(yn), vn = (e, t) => (r = {}, s) => {
@@ -71,12 +71,12 @@ const ln = () => ({
71
71
  };
72
72
  class hn {
73
73
  constructor(t) {
74
- ee(this, "group");
75
- ee(this, "name");
76
- ee(this, "stage");
77
- ee(this, "effect");
78
- ee(this, "arg");
79
- ee(this, "opts");
74
+ Z(this, "group");
75
+ Z(this, "name");
76
+ Z(this, "stage");
77
+ Z(this, "effect");
78
+ Z(this, "arg");
79
+ Z(this, "opts");
80
80
  this.group = t.group || "UN_GROUPED", this.name = t.name || "UN_NAMED", this.stage = t.stage, this.effect = t.effect, this.arg = t.arg || {}, this.opts = t.opts || {};
81
81
  }
82
82
  static of(t) {
@@ -135,7 +135,7 @@ class hn {
135
135
  }
136
136
  }
137
137
  class De extends Wt {
138
- constructor(r, s, o = mn) {
138
+ constructor(r, s, o = fn) {
139
139
  super((n) => this.state$.pipe(
140
140
  sn((a) => {
141
141
  const u = this.mapper(a);
@@ -143,7 +143,7 @@ class De extends Wt {
143
143
  }),
144
144
  un()
145
145
  ).subscribe(n));
146
- ee(this, "_value");
146
+ Z(this, "_value");
147
147
  this.state$ = r, this.mapper = s;
148
148
  }
149
149
  static from(r, s) {
@@ -155,7 +155,7 @@ class De extends Wt {
155
155
  }
156
156
  const pn = (e, t) => {
157
157
  const [r, s] = Fe(t || e.value);
158
- return Q(() => {
158
+ return J(() => {
159
159
  const o = e.subscribe((n) => {
160
160
  s(n);
161
161
  });
@@ -164,8 +164,8 @@ const pn = (e, t) => {
164
164
  };
165
165
  }, void 0), r;
166
166
  }, gn = (e, t) => {
167
- const r = B(t || e.value);
168
- return Q(() => {
167
+ const r = V(t || e.value);
168
+ return J(() => {
169
169
  const s = e.subscribe((o) => {
170
170
  r.value = o;
171
171
  });
@@ -173,20 +173,20 @@ const pn = (e, t) => {
173
173
  s && s.unsubscribe();
174
174
  };
175
175
  }, []), r;
176
- }, bn = (e, t) => De.from(e, t), Sn = (e) => bn(Ne(), e || ((t) => t)), Pn = hn.of("state"), ft = Pn.named("update").effectOn(
176
+ }, bn = (e, t) => De.from(e, t), Sn = (e) => bn(Ne(), e || ((t) => t)), Pn = hn.of("state"), mt = Pn.named("update").effectOn(
177
177
  (e) => e.opts.key,
178
178
  (e, t) => t.arg(e)
179
- ), mt = () => {
179
+ ), ft = () => {
180
180
  const e = Ne();
181
181
  return (t, r, s, o) => {
182
182
  const n = `${s ? "$" : ""}${t}`, a = k(o) ? o() : o;
183
- ft.with(
183
+ mt.with(
184
184
  (u = a) => k(r) ? r(u) : r,
185
185
  { key: n }
186
186
  ).invoke(e);
187
187
  };
188
188
  }, En = (e, t, r) => {
189
- const s = `${r ? "$" : ""}${e}`, o = k(t) ? t() : t, n = Ne(), a = (d) => ft.with(
189
+ const s = `${r ? "$" : ""}${e}`, o = k(t) ? t() : t, n = Ne(), a = (d) => mt.with(
190
190
  (p = o) => k(d) ? d(p) : d,
191
191
  { key: s }
192
192
  ).invoke(n), u = De.from(n, (d) => h(d, [s], o));
@@ -196,7 +196,7 @@ const pn = (e, t) => {
196
196
  return [s, o];
197
197
  }, yt = (e) => (t, r) => {
198
198
  const { requestSubject$: s } = ge(), o = new Set(L(t, (n) => he(n) ? n : n.name));
199
- Q(() => {
199
+ J(() => {
200
200
  const n = s.pipe(
201
201
  Ce(e),
202
202
  Te((a) => {
@@ -209,26 +209,26 @@ const pn = (e, t) => {
209
209
  }, []);
210
210
  }, Cr = yt(it), Tr = yt(dt), Tn = (e, t, r) => {
211
211
  const { requestSubject$: s, dispatchRequest: o } = ge(), n = new Set(L(e, (u) => he(u) ? u : u.name)), a = {};
212
- Q(() => {
212
+ J(() => {
213
213
  const u = Xt(
214
214
  s.pipe(
215
215
  Ce(it),
216
- Te((m) => {
216
+ Te((f) => {
217
217
  var d, p;
218
- n.has(m.name) && ((d = t.onSuccess) == null || d.call(t, m), (p = t.onFinish) == null || p.call(t, m), a[m.name] = void 0);
218
+ n.has(f.name) && ((d = t.onSuccess) == null || d.call(t, f), (p = t.onFinish) == null || p.call(t, f), a[f.name] = void 0);
219
219
  })
220
220
  ),
221
221
  s.pipe(
222
222
  Ce(dt),
223
- Te((m) => {
223
+ Te((f) => {
224
224
  var d, p;
225
- n.has(m.name) && ((d = t.onFailed) == null || d.call(t, m), (p = t.onFinish) == null || p.call(t, m), a[m.name] = void 0);
225
+ n.has(f.name) && ((d = t.onFailed) == null || d.call(t, f), (p = t.onFinish) == null || p.call(t, f), a[f.name] = void 0);
226
226
  })
227
227
  )
228
228
  ).subscribe();
229
229
  return () => {
230
- u.unsubscribe(), r && pe(a, (m) => {
231
- m && o({ ...m, stage: "CANCEL" });
230
+ u.unsubscribe(), r && pe(a, (f) => {
231
+ f && o({ ...f, stage: "CANCEL" });
232
232
  });
233
233
  };
234
234
  }, []);
@@ -237,7 +237,7 @@ const pn = (e, t) => {
237
237
  const s = (o = e.res) == null ? void 0 : o.data;
238
238
  return t ? t(s, e) : r ? h(s, r) : s;
239
239
  }, Mr = () => {
240
- const e = Ne(), { registerMetaMap: t, dispatchRequest: r } = Z();
240
+ const e = Ne(), { registerMetaMap: t, dispatchRequest: r } = Q();
241
241
  return (s) => {
242
242
  const o = h(t, s);
243
243
  if (!o)
@@ -246,19 +246,19 @@ const pn = (e, t) => {
246
246
  h(e.value, n) || r(s, o.initParams || {});
247
247
  };
248
248
  }, In = (e, t) => {
249
- const { requestSubject$: r } = ge(), s = mt(), o = (n) => {
249
+ const { requestSubject$: r } = ge(), s = ft(), o = (n) => {
250
250
  const a = h(e, n.name), u = h(t, n.name);
251
251
  return !!(a && u && u.actor);
252
252
  };
253
- Q(() => {
253
+ J(() => {
254
254
  const n = r.pipe(
255
255
  Ce(o),
256
256
  Te((a) => {
257
257
  const u = h(e, a.name);
258
258
  if (!u)
259
259
  return;
260
- const m = u.storeName || a.name, d = Mn(a, u.convertData, u.convertPath);
261
- s(m, d, !1, void 0);
260
+ const f = u.storeName || a.name, d = Mn(a, u.convertData, u.convertPath);
261
+ s(f, d, !1, void 0);
262
262
  })
263
263
  ).subscribe();
264
264
  return () => {
@@ -290,7 +290,7 @@ const pn = (e, t) => {
290
290
  showProps: t.showProps,
291
291
  value: r
292
292
  }, (n = t.formFieldProps) == null ? void 0 : n.slots) : null;
293
- }, ze = (e, t) => L(t, (r) => fe(e, r)), pt = (e, t) => {
293
+ }, ze = (e, t) => L(t, (r) => me(e, r)), pt = (e, t) => {
294
294
  var o;
295
295
  const r = t.elementProps, s = {
296
296
  ...t.elementProps
@@ -298,43 +298,43 @@ const pn = (e, t) => {
298
298
  return pe((o = t.highConfig$) == null ? void 0 : o.registerPropsTrans, (n) => {
299
299
  const a = h(r, n.name);
300
300
  if (!(!a || Ee(a))) {
301
- if (U(a)) {
301
+ if (q(a)) {
302
302
  if (ae(a, (u) => Ee(u)))
303
303
  return;
304
304
  se(s, n.name, ze(e, a));
305
305
  return;
306
306
  }
307
307
  !a.elementType || (n.isFun ? se(s, n.name, (...u) => {
308
- const m = n.needParams ? {
308
+ const f = n.needParams ? {
309
309
  ...a.elementProps,
310
310
  params$: u
311
311
  } : a.elementProps;
312
- return fe(e, {
312
+ return me(e, {
313
313
  ...a,
314
- elementProps: m
314
+ elementProps: f
315
315
  });
316
- }) : se(s, n.name, fe(e, a)));
316
+ }) : se(s, n.name, me(e, a)));
317
317
  }
318
318
  }), s;
319
319
  }, gt = (e, t) => {
320
320
  const r = W(t.children) > 0 ? ze(e, t.children) : void 0, s = t.childrenSlotName || "default", o = T(t.slots, r ? s : "");
321
- return pe(j(o), (n) => {
321
+ return pe(U(o), (n) => {
322
322
  const a = o[n];
323
323
  a && !k(a) && a.elementType && (o[n] = (...u) => {
324
- const m = a.needParams ? {
324
+ const f = a.needParams ? {
325
325
  ...a.elementProps,
326
326
  params$: u
327
327
  } : a.elementProps;
328
- return fe(e, {
328
+ return me(e, {
329
329
  ...a,
330
- elementProps: m
330
+ elementProps: f
331
331
  });
332
332
  });
333
333
  }), {
334
334
  [s]: r ? () => r : void 0,
335
335
  ...o
336
336
  };
337
- }, fe = (e, t) => {
337
+ }, me = (e, t) => {
338
338
  const r = h(e, t.elementType) || t.elementType;
339
339
  if (t.highConfig$)
340
340
  return le(Dn, {
@@ -347,7 +347,7 @@ const pn = (e, t) => {
347
347
  key: t.elementId,
348
348
  ...o
349
349
  }, s);
350
- }, Nn = (e) => U(e) ? kt(e) : he(e) && e.indexOf(".") > 0 ? e.substring(0, e.indexOf(".")) : e, Dn = I({
350
+ }, Nn = (e) => q(e) ? kt(e) : he(e) && e.indexOf(".") > 0 ? e.substring(0, e.indexOf(".")) : e, Dn = I({
351
351
  props: {
352
352
  elementMap: {
353
353
  type: Object
@@ -363,29 +363,29 @@ const pn = (e, t) => {
363
363
  } = be(), {
364
364
  elementMap: s,
365
365
  elementConfig: o
366
- } = e, n = o.highConfig$, a = pt(s, o), u = H(n.registerEventList, (f, c) => ({
367
- ...f,
366
+ } = e, n = o.highConfig$, a = pt(s, o), u = H(n.registerEventList, (m, c) => ({
367
+ ...m,
368
368
  [c.name]: (...l) => {
369
369
  r({
370
370
  type: c.sendEventName || o.elementId,
371
371
  payload: l
372
372
  });
373
373
  }
374
- }), {}), m = D(() => {
374
+ }), {}), f = D(() => {
375
375
  if (!n.registerStateList || W(n.registerStateList) <= 0)
376
376
  return;
377
- const f = {
377
+ const m = {
378
378
  ...a
379
379
  }, c = L(n.registerStateList, (l) => {
380
380
  const v = l.mapName || l.name, y = h(t, l.name);
381
- return se(f, v, y), Nn(v);
381
+ return se(m, v, y), Nn(v);
382
382
  });
383
- return R(f, c);
383
+ return R(m, c);
384
384
  }), d = h(s, o.elementType) || o.elementType, p = gt(s, o);
385
- return () => h(m.value, "show$") === !1 ? null : le(d, {
385
+ return () => h(f.value, "show$") === !1 ? null : le(d, {
386
386
  key: o.elementId,
387
387
  ...a,
388
- ...T(m.value, "show$"),
388
+ ...T(f.value, "show$"),
389
389
  ...u
390
390
  }, p);
391
391
  }
@@ -395,7 +395,7 @@ const pn = (e, t) => {
395
395
  const {
396
396
  subject$: t
397
397
  } = be();
398
- Q(() => {
398
+ J(() => {
399
399
  const r = t.subscribe({
400
400
  next: (s) => {
401
401
  e(s);
@@ -403,7 +403,7 @@ const pn = (e, t) => {
403
403
  });
404
404
  return () => r.unsubscribe();
405
405
  }, []);
406
- }, me = {
406
+ }, fe = {
407
407
  Success: "request-success$",
408
408
  Fail: "request-fail$"
409
409
  }, On = () => ({
@@ -427,7 +427,7 @@ const pn = (e, t) => {
427
427
  slots: t,
428
428
  expose: r
429
429
  }) => {
430
- const s = (c) => U(c) ? ze(e.elementMap, c) : fe(e.elementMap, c), o = new Yt(), n = (c) => {
430
+ const s = (c) => q(c) ? ze(e.elementMap, c) : me(e.elementMap, c), o = new Yt(), n = (c) => {
431
431
  o.next(c);
432
432
  }, a = e.state || ve({}), u = (c) => {
433
433
  const l = a[c.type], v = k(c.payload) ? c.payload(l) : c.payload;
@@ -437,7 +437,7 @@ const pn = (e, t) => {
437
437
  }
438
438
  a[c.type] = v;
439
439
  }, {
440
- dispatchRequest: m
440
+ dispatchRequest: f
441
441
  } = ge(), d = H(e.requests, (c, l) => {
442
442
  var v;
443
443
  return {
@@ -447,7 +447,7 @@ const pn = (e, t) => {
447
447
  }, {}), p = H(e.requests, (c, l) => ({
448
448
  ...c,
449
449
  [l.action]: l
450
- }), {}), f = (c, ...l) => {
450
+ }), {}), m = (c, ...l) => {
451
451
  const v = h(d, c) || h(p, c);
452
452
  if (!v)
453
453
  return;
@@ -455,9 +455,9 @@ const pn = (e, t) => {
455
455
  v.convertParams ? y = v.convertParams(...l) : y = h(l, 0), v.loadingName && u({
456
456
  type: v.loadingName,
457
457
  payload: !0
458
- }), m(v.actor, y);
458
+ }), f(v.actor, y);
459
459
  };
460
- return Tn(j(d), {
460
+ return Tn(U(d), {
461
461
  onSuccess: (c) => {
462
462
  var v, y;
463
463
  const l = h(d, c.name);
@@ -469,7 +469,7 @@ const pn = (e, t) => {
469
469
  });
470
470
  }
471
471
  n({
472
- type: me.Success,
472
+ type: fe.Success,
473
473
  payload: {
474
474
  actor: c,
475
475
  requestOpts: l
@@ -480,7 +480,7 @@ const pn = (e, t) => {
480
480
  var v;
481
481
  const l = h(d, c.name);
482
482
  n({
483
- type: me.Fail,
483
+ type: fe.Fail,
484
484
  payload: {
485
485
  actor: c,
486
486
  requestOpts: l
@@ -501,23 +501,23 @@ const pn = (e, t) => {
501
501
  state: a,
502
502
  dispatch: u,
503
503
  requests: e.requests,
504
- sendRequest: f
504
+ sendRequest: m
505
505
  }), r({
506
506
  sendEvent: n,
507
- sendRequest: f
507
+ sendRequest: m
508
508
  }), () => {
509
509
  var c;
510
- return i(Y, null, [W(e.elementConfigs) > 0 && s(e.elementConfigs), (c = t.default) == null ? void 0 : c.call(t)]);
510
+ return i(ee, null, [W(e.elementConfigs) > 0 && s(e.elementConfigs), (c = t.default) == null ? void 0 : c.call(t)]);
511
511
  };
512
512
  }
513
513
  }), Ir = () => {
514
- const e = mt(), { registerStoreMap: t } = Z();
514
+ const e = ft(), { registerStoreMap: t } = Q();
515
515
  return (r, s) => {
516
516
  const o = h(t, r);
517
517
  !o || e(r, s, !!o.persist, o.initialState);
518
518
  };
519
519
  }, Nr = (e) => {
520
- const { registerStoreMap: t } = Z(), r = h(t, e), s = `${r != null && r.persist ? "$" : ""}${r == null ? void 0 : r.key}`;
520
+ const { registerStoreMap: t } = Q(), r = h(t, e), s = `${r != null && r.persist ? "$" : ""}${r == null ? void 0 : r.key}`;
521
521
  return gn(Sn((n) => {
522
522
  const a = h(n, s);
523
523
  return a || (k(r == null ? void 0 : r.initialState) ? r == null ? void 0 : r.initialState() : r == null ? void 0 : r.initialState);
@@ -540,7 +540,7 @@ const pn = (e, t) => {
540
540
  };
541
541
  }), Or = I((e, { slots: t, emit: r }) => {
542
542
  const { access: s } = $n(), o = D(() => s && s.token);
543
- return Q(() => {
543
+ return J(() => {
544
544
  o.value || r("toLogin");
545
545
  }, o), () => {
546
546
  var n;
@@ -550,7 +550,7 @@ const pn = (e, t) => {
550
550
  Add: "add",
551
551
  Edit: "edit",
552
552
  Delete: "delete"
553
- }, Ln = (e, t) => !e || !t ? !1 : U(t) ? ae(t, (r) => e[r]) : e[t], Kn = () => {
553
+ }, Ln = (e, t) => !e || !t ? !1 : q(t) ? ae(t, (r) => e[r]) : e[t], Kn = () => {
554
554
  const { per: e } = wn(), t = qe();
555
555
  return (r, s) => {
556
556
  if (!r)
@@ -558,7 +558,7 @@ const pn = (e, t) => {
558
558
  let o = r;
559
559
  if (s != null && s.suffix) {
560
560
  const n = t.name ? t.name.toString() : "";
561
- o = U(o) ? L(o, (a) => `${n}:${a}`) : `${n}:${o}`;
561
+ o = q(o) ? L(o, (a) => `${n}:${a}`) : `${n}:${o}`;
562
562
  }
563
563
  return Ln(e.buttonMap, o);
564
564
  };
@@ -598,7 +598,7 @@ const pn = (e, t) => {
598
598
  ProSearchFormKey: "ProSearchForm$",
599
599
  ProTableKey: "ProTable$"
600
600
  }, _ = () => {
601
- const { elementMap: e } = Z();
601
+ const { elementMap: e } = Q();
602
602
  return (t) => h(e, t);
603
603
  };
604
604
  function Rn(e) {
@@ -634,21 +634,21 @@ const kn = () => ({
634
634
  }
635
635
  }), Fn = (e, t, r) => {
636
636
  if (t) {
637
- const s = q(j(t), (o) => !t[o]);
637
+ const s = B(U(t), (o) => !t[o]);
638
638
  return T(e, s);
639
639
  }
640
640
  if (r) {
641
- const s = q(j(r), (o) => !r[o](e));
641
+ const s = B(U(r), (o) => !r[o](e));
642
642
  return T(e, s);
643
643
  }
644
644
  return e;
645
645
  }, Et = (e) => {
646
646
  if (!!e)
647
- return U(e) ? e : e && he(e) && e.indexOf(".") > 0 ? Ft(e, ".") : [e];
647
+ return q(e) ? e : e && he(e) && e.indexOf(".") > 0 ? Ft(e, ".") : [e];
648
648
  }, Ae = (e, t, r) => !t || !r ? e : L(e, (s) => {
649
649
  const o = k(r) ? r(s) : h(s, r), n = h(t, o);
650
650
  return !n || jt(n) || k(n) || !ie(n) ? s : Ut(s, n, (a, u) => {
651
- if (U(a) || U(u))
651
+ if (q(a) || q(u))
652
652
  return u;
653
653
  });
654
654
  }), ce = (e, t) => {
@@ -672,8 +672,8 @@ const kn = () => ({
672
672
  return (u = (a = e.value) == null ? void 0 : a[o]) == null ? void 0 : u.call(a, ...n);
673
673
  };
674
674
  }), s;
675
- }, jn = (e, t) => h(e, ["extra", t]) || h(e, t), J = (e, t) => {
676
- const r = j(e), s = `${t}-`, o = q(r, (a) => qt(a, s)), n = R(e, o);
675
+ }, jn = (e, t) => h(e, ["extra", t]) || h(e, t), Y = (e, t) => {
676
+ const r = U(e), s = `${t}-`, o = B(r, (a) => qt(a, s)), n = R(e, o);
677
677
  return Bt(n, (a, u) => u.replace(s, ""));
678
678
  }, Ct = Symbol("pro-form-list"), Tt = () => te(Ct), Mt = (e) => {
679
679
  oe(Ct, e);
@@ -710,27 +710,27 @@ const kn = () => ({
710
710
  const s = _()(F.FormItemKey), {
711
711
  formState: o,
712
712
  readonly: n
713
- } = Nt(), a = Tt(), u = Et(e.name), m = a != null && a.pathList ? [...a.pathList, ...u] : u, d = () => {
714
- let f = h(o, m);
715
- U(f) || (f = []), f.push({
713
+ } = Nt(), a = Tt(), u = Et(e.name), f = a != null && a.pathList ? [...a.pathList, ...u] : u, d = () => {
714
+ let m = h(o, f);
715
+ q(m) || (m = []), m.push({
716
716
  [e.rowKey]: new Date().valueOf()
717
- }), se(o, m, f);
718
- }, p = (f) => {
719
- const c = h(o, m);
720
- W(c) <= 0 || c.splice(f, 1);
717
+ }), se(o, f, m);
718
+ }, p = (m) => {
719
+ const c = h(o, f);
720
+ W(c) <= 0 || c.splice(m, 1);
721
721
  };
722
722
  return () => s ? i(s, T(e, "rowKey"), {
723
723
  default: () => {
724
- var f;
725
- return [L(h(o, m), (c, l) => i(Un, {
724
+ var m;
725
+ return [L(h(o, f), (c, l) => i(Un, {
726
726
  key: c[e.rowKey] || l,
727
- pathList: [...m, l]
727
+ pathList: [...f, l]
728
728
  }, {
729
729
  default: () => {
730
730
  var v, y, b;
731
731
  return [i("div", {
732
732
  class: "pro-form-list-item"
733
- }, [(v = t.default) == null ? void 0 : v.call(t), !n.value && i(Y, null, [i("div", {
733
+ }, [(v = t.default) == null ? void 0 : v.call(t), !n.value && i(ee, null, [i("div", {
734
734
  class: "pro-form-list-item-add",
735
735
  onClick: d
736
736
  }, [(y = t.itemAdd) == null ? void 0 : y.call(t)]), i("div", {
@@ -741,7 +741,7 @@ const kn = () => ({
741
741
  })), !n.value && i("div", {
742
742
  class: "pro-form-list-add",
743
743
  onClick: d
744
- }, [(f = t.add) == null ? void 0 : f.call(t)])];
744
+ }, [(m = t.add) == null ? void 0 : m.call(t)])];
745
745
  }
746
746
  }) : null;
747
747
  }
@@ -814,17 +814,17 @@ const Qe = () => ({
814
814
  const {
815
815
  elementMap: n,
816
816
  formElementMap: a
817
- } = Z(), u = e.elementMap || n, m = e.formElementMap || a, d = e.model || ve({}), p = $e(d, e.showStateRules, e.showState), f = $e(d, e.readonlyStateRules, e.readonlyState), c = $e(d, e.disableStateRules, e.disableState), l = D(() => e.readonly), v = D(() => Ae(e.columns, e.columnState, (P) => ue(P))), y = (P) => {
817
+ } = Q(), u = e.elementMap || n, f = e.formElementMap || a, d = e.model || ve({}), p = $e(d, e.showStateRules, e.showState), m = $e(d, e.readonlyStateRules, e.readonlyState), c = $e(d, e.disableStateRules, e.disableState), l = D(() => e.readonly), v = D(() => Ae(e.columns, e.columnState, (P) => ue(P))), y = (P) => {
818
818
  const N = Fn(P, p, e.showStateRules);
819
819
  r("finish", N, P);
820
- }, b = B();
820
+ }, b = V();
821
821
  s(ce(e.formMethods || [], b)), Bn({
822
822
  formState: d,
823
823
  showState: p,
824
- readonlyState: f,
824
+ readonlyState: m,
825
825
  disableState: c,
826
826
  elementMap: u,
827
- formElementMap: m,
827
+ formElementMap: f,
828
828
  readonly: l,
829
829
  columns: v,
830
830
  formRef: b,
@@ -841,29 +841,34 @@ const Qe = () => ({
841
841
  }
842
842
  }], g = D(() => {
843
843
  const P = e.operate, N = (P == null ? void 0 : P.items) || w;
844
- return L(N, (S) => (!S.onClick && !h(P == null ? void 0 : P.itemState, [S.value, "onClick"]) && (S.value === G.RESET ? S.onClick = () => {
845
- var x;
846
- if (P != null && P.onReset) {
847
- P.onReset();
848
- return;
849
- }
850
- (x = b.value) == null || x.resetFields();
851
- } : S.value === G.SUBMIT ? S.onClick = () => {
852
- var x;
853
- if (P != null && P.onSubmit) {
854
- P.onSubmit();
855
- return;
856
- }
857
- (x = b.value) == null || x.submit();
858
- } : S.value === G.CONTINUE && (P == null ? void 0 : P.onContinue) && (S.onClick = () => {
859
- P.onContinue();
860
- })), S.value === G.SUBMIT && !je(S, "loading") && (S.loading = e.submitLoading), S));
844
+ return L(N, (S) => {
845
+ const x = {
846
+ ...S
847
+ };
848
+ return !S.onClick && !h(P == null ? void 0 : P.itemState, [S.value, "onClick"]) && (S.value === G.RESET ? x.onClick = () => {
849
+ var j;
850
+ if (P != null && P.onReset) {
851
+ P.onReset();
852
+ return;
853
+ }
854
+ (j = b.value) == null || j.resetFields();
855
+ } : S.value === G.SUBMIT ? x.onClick = () => {
856
+ var j;
857
+ if (P != null && P.onSubmit) {
858
+ P.onSubmit();
859
+ return;
860
+ }
861
+ (j = b.value) == null || j.submit();
862
+ } : S.value === G.CONTINUE && (P == null ? void 0 : P.onContinue) && (x.onClick = () => {
863
+ P.onContinue();
864
+ })), S.value === G.SUBMIT && !je(S, "loading") && (x.loading = e.submitLoading), x;
865
+ });
861
866
  }), C = (P) => {
862
867
  const N = ue(P);
863
- return N && t[N] ? t[N](P, d) : ht(m, P, e.needRules);
868
+ return N && t[N] ? t[N](P, d) : ht(f, P, e.needRules);
864
869
  };
865
870
  Mt({});
866
- const O = j(Qe()), E = j(T(Le.props, "items")), $ = h(n, F.FormKey);
871
+ const O = U(Qe()), E = U(T(Le.props, "items")), $ = h(n, F.FormKey);
867
872
  return () => $ ? i($, M({
868
873
  ref: b,
869
874
  class: e.clsName
@@ -873,7 +878,7 @@ const Qe = () => ({
873
878
  }), {
874
879
  default: () => {
875
880
  var P, N, S;
876
- return [(P = t.start) == null ? void 0 : P.call(t), m && W(v.value) > 0 && i(Y, null, [e.row ? i(Le, {
881
+ return [(P = t.start) == null ? void 0 : P.call(t), f && W(v.value) > 0 && i(ee, null, [e.row ? i(Le, {
877
882
  row: e.row,
878
883
  col: e.col,
879
884
  items: L(v.value, (x) => ({
@@ -936,22 +941,22 @@ const Ze = () => ({
936
941
  slots: t,
937
942
  expose: r
938
943
  }) => {
939
- const o = _()(F.ProFormKey), n = e.model || ve({}), a = new Set(e.debounceTypes), u = L(q(e.columns, (y) => {
944
+ const o = _()(F.ProFormKey), n = e.model || ve({}), a = new Set(e.debounceTypes), u = L(B(e.columns, (y) => {
940
945
  const b = vt(y);
941
946
  return a.has(b);
942
- }), (y) => ue(y)), m = D(() => L(e.columns, (y) => ({
947
+ }), (y) => ue(y)), f = D(() => L(e.columns, (y) => ({
943
948
  ...y,
944
949
  formItemProps: T(y.formItemProps, "required")
945
- }))), d = B(), p = e.formMethods || [];
950
+ }))), d = V(), p = e.formMethods || [];
946
951
  r(ce(p, d));
947
- const f = () => {
952
+ const m = () => {
948
953
  var y;
949
954
  (y = d.value) == null || y.submit();
950
955
  }, c = Vt(() => {
951
- f();
956
+ m();
952
957
  }, e.debounceTime);
953
- Q(() => {
954
- e.initEmit && f();
958
+ J(() => {
959
+ e.initEmit && m();
955
960
  }, []);
956
961
  const l = (y, b, w) => ae(w, (g) => h(y, g) !== h(b, g));
957
962
  ct((y, b) => {
@@ -962,14 +967,14 @@ const Ze = () => ({
962
967
  c();
963
968
  return;
964
969
  }
965
- f();
970
+ m();
966
971
  }, () => zt(n));
967
- const v = j(Ze());
972
+ const v = U(Ze());
968
973
  return () => o ? i(o, M({
969
974
  ref: d,
970
975
  class: "pro-search-form"
971
976
  }, T(e, v, "columns"), {
972
- columns: m.value,
977
+ columns: f.value,
973
978
  model: n
974
979
  }), t) : null;
975
980
  }
@@ -1002,33 +1007,33 @@ const Ze = () => ({
1002
1007
  }) => {
1003
1008
  const {
1004
1009
  formExtraMap: u
1005
- } = Z(), {
1006
- formState: m,
1010
+ } = Q(), {
1011
+ formState: f,
1007
1012
  showState: d,
1008
1013
  readonlyState: p,
1009
- disableState: f,
1014
+ disableState: m,
1010
1015
  readonly: c,
1011
1016
  elementMap: l
1012
1017
  } = Nt(), v = Tt(), y = D(() => ne(n.readonly) ? n.readonly : ne(p[n.name]) ? p[n.name] : c.value), b = () => `${h(u == null ? void 0 : u.rulePrefixMap, s) || "\u8BF7\u8F93\u5165"}${n.label || ""}`, w = D(() => u != null && u.rulePrefixMap ? n.required === !0 && !n.rules ? [{
1013
1018
  required: !0,
1014
1019
  message: b()
1015
1020
  }] : n.rules ? L(n.rules, ($) => ($.required && !$.message && ($.message = b()), $)) : n.rules : n.rules), g = Et(n.name), C = v != null && v.pathList ? [...v.pathList, ...g] : g, O = ($) => {
1016
- se(m, C, $);
1017
- }, E = j(et());
1021
+ se(f, C, $);
1022
+ }, E = U(et());
1018
1023
  return () => {
1019
1024
  const $ = h(d, C);
1020
1025
  if (ne($) && !$)
1021
1026
  return null;
1022
- const P = h(m, C), N = h(l, s);
1027
+ const P = h(f, C), N = h(l, s);
1023
1028
  return i(e, M(T(n, ...E, "name", "rules", "slots"), {
1024
1029
  name: C,
1025
1030
  rules: w.value
1026
1031
  }), {
1027
- default: () => [y.value ? i(Y, null, [N ? i(N, M({
1032
+ default: () => [y.value ? i(ee, null, [N ? i(N, M({
1028
1033
  value: P
1029
1034
  }, n.fieldProps, {
1030
1035
  showProps: n.showProps
1031
- }), a) : i("span", null, [P])]) : i(r, M(t(P, O, h(f, C)), n.fieldProps), a)],
1036
+ }), a) : i("span", null, [P])]) : i(r, M(t(P, O, h(m, C)), n.fieldProps), a)],
1032
1037
  ...n.slots
1033
1038
  });
1034
1039
  };
@@ -1060,7 +1065,7 @@ const _n = () => ({
1060
1065
  slots: t
1061
1066
  }) => {
1062
1067
  const r = _(), s = e.elementKey ? r(e.elementKey) : void 0, o = D(() => {
1063
- const a = q(e.items, (u) => k(u.show) ? u.show() : ne(u.show) ? u.show : !0);
1068
+ const a = B(e.items, (u) => k(u.show) ? u.show() : ne(u.show) ? u.show : !0);
1064
1069
  return L(a, (u) => je(e.itemState, u.value) ? {
1065
1070
  ...u,
1066
1071
  ...h(e.itemState, u.value)
@@ -1072,13 +1077,13 @@ const _n = () => ({
1072
1077
  return () => i("div", {
1073
1078
  class: e.clsName
1074
1079
  }, [L(o.value, (a) => {
1075
- const u = k(a.disabled) ? a.disabled() : a.disabled, m = k(a.loading) ? a.loading() : a.loading, d = k(a.label) ? a.label() : a.label, p = k(a.extraProps) ? a.extraProps() : a.extraProps, f = {
1080
+ const u = k(a.disabled) ? a.disabled() : a.disabled, f = k(a.loading) ? a.loading() : a.loading, d = k(a.label) ? a.label() : a.label, p = k(a.extraProps) ? a.extraProps() : a.extraProps, m = {
1076
1081
  ...T(a, "show", "disabled", "element"),
1077
1082
  disabled: u
1078
1083
  };
1079
- return a.element && k(a.element) ? a.element(f) : t[a.value] ? t[a.value](f) : s ? i(s, M({
1084
+ return a.element && k(a.element) ? a.element(m) : t[a.value] ? t[a.value](m) : s ? i(s, M({
1080
1085
  disabled: u,
1081
- loading: m,
1086
+ loading: f,
1082
1087
  onClick: () => n(a)
1083
1088
  }, p), zn(d) ? d : {
1084
1089
  default: () => [d]
@@ -1115,11 +1120,11 @@ const _n = () => ({
1115
1120
  const r = _(), s = r(F.PopoverKey), o = r(F.CheckboxKey), {
1116
1121
  originColumns: n,
1117
1122
  selectIdsRef: a
1118
- } = Wn(), [u, m] = Jt();
1123
+ } = Wn(), [u, f] = Jt();
1119
1124
  let d = {};
1120
1125
  const p = (g) => {
1121
1126
  d[g] = !1;
1122
- }, f = () => {
1127
+ }, m = () => {
1123
1128
  pe(a.value, (g) => {
1124
1129
  d[g] = !0;
1125
1130
  });
@@ -1127,14 +1132,14 @@ const _n = () => ({
1127
1132
  ...g,
1128
1133
  [C]: !0
1129
1134
  }), {})), l = (g) => jn(g, e.signName);
1130
- Q(() => {
1131
- a.value = L(q(n.value, (g) => {
1135
+ J(() => {
1136
+ a.value = L(B(n.value, (g) => {
1132
1137
  var C;
1133
1138
  return e.useSelectedStatus && je(d, g.dataIndex) ? d[g.dataIndex] : ((C = l(g)) == null ? void 0 : C.initShow) !== !1;
1134
1139
  }), (g) => g.dataIndex);
1135
1140
  }, n), ct(() => {
1136
1141
  var g;
1137
- m(), f(), (g = e.onColumnSelectChange) == null || g.call(e, a.value);
1142
+ f(), m(), (g = e.onColumnSelectChange) == null || g.call(e, a.value);
1138
1143
  }, a);
1139
1144
  const v = D(() => {
1140
1145
  const g = _t(n.value, (O) => {
@@ -1150,18 +1155,18 @@ const _n = () => ({
1150
1155
  };
1151
1156
  }), y = (g) => {
1152
1157
  var O;
1153
- (ie(g) ? (O = g.target) == null ? void 0 : O.checked : g) ? a.value = L(n.value, (E) => E.dataIndex) : a.value = L(q(n.value, (E) => {
1158
+ (ie(g) ? (O = g.target) == null ? void 0 : O.checked : g) ? a.value = L(n.value, (E) => E.dataIndex) : a.value = L(B(n.value, (E) => {
1154
1159
  var $;
1155
1160
  return ($ = l(E)) != null && $.disabled ? !0 : (p(E.dataIndex), !1);
1156
1161
  }), (E) => E.dataIndex);
1157
1162
  }, b = () => {
1158
- a.value = L(q(n.value, (g) => {
1163
+ a.value = L(B(n.value, (g) => {
1159
1164
  var C;
1160
1165
  return ((C = l(g)) == null ? void 0 : C.initShow) === !1 ? (p(g.dataIndex), !1) : !0;
1161
1166
  }), (g) => g.dataIndex);
1162
1167
  }, w = (g, C) => {
1163
1168
  var E;
1164
- (ie(C) ? (E = C.target) == null ? void 0 : E.checked : C) ? a.value = [...a.value, g.dataIndex] : a.value = q(a.value, ($) => g.dataIndex === $ ? (p(g.dataIndex), !1) : !0);
1169
+ (ie(C) ? (E = C.target) == null ? void 0 : E.checked : C) ? a.value = [...a.value, g.dataIndex] : a.value = B(a.value, ($) => g.dataIndex === $ ? (p(g.dataIndex), !1) : !0);
1165
1170
  };
1166
1171
  return () => s ? i(s, M({
1167
1172
  trigger: "click"
@@ -1245,7 +1250,7 @@ const _n = () => ({
1245
1250
  }) => {
1246
1251
  const {
1247
1252
  elementMap: n
1248
- } = Z(), a = e.elementMap || n, u = h(n, F.TableKey), m = () => ({
1253
+ } = Q(), a = e.elementMap || n, u = h(n, F.TableKey), f = () => ({
1249
1254
  title: "\u5E8F\u53F7",
1250
1255
  dataIndex: "serialNumber",
1251
1256
  width: 80,
@@ -1257,7 +1262,7 @@ const _n = () => ({
1257
1262
  var E, $;
1258
1263
  return ((E = e.paginationState) == null ? void 0 : E.page) && (($ = e.paginationState) == null ? void 0 : $.pageSize) ? e.paginationState.pageSize * (e.paginationState.page - 1) + O + 1 : O + 1;
1259
1264
  }
1260
- }), d = J(t, "operate"), p = () => {
1265
+ }), d = Y(t, "operate"), p = () => {
1261
1266
  const O = e.operate, E = L(O.items, (P) => ({
1262
1267
  ...P,
1263
1268
  ...h(O.itemState, P.value)
@@ -1289,26 +1294,26 @@ const _n = () => ({
1289
1294
  class: `${e.clsName}-operate`,
1290
1295
  items: N,
1291
1296
  elementKey: O.elementKey
1292
- }, H(j(d), (S, x) => ({
1297
+ }, H(U(d), (S, x) => ({
1293
1298
  ...S,
1294
- [x]: (V) => {
1299
+ [x]: (j) => {
1295
1300
  var z;
1296
- return (z = d[x]) == null ? void 0 : z.call(d, P, V);
1301
+ return (z = d[x]) == null ? void 0 : z.call(d, P, j);
1297
1302
  }
1298
1303
  }), {}));
1299
1304
  }
1300
1305
  };
1301
- }, f = B([]), c = D(() => {
1306
+ }, m = V([]), c = D(() => {
1302
1307
  var O;
1303
1308
  return !!((O = e.toolbar) != null && O.columnSetting);
1304
1309
  }), l = Rt(e, "columns"), v = D(() => {
1305
1310
  if (!c.value)
1306
1311
  return e.columns;
1307
- const O = H(f.value, (E, $) => ({
1312
+ const O = H(m.value, (E, $) => ({
1308
1313
  ...E,
1309
1314
  [$]: !0
1310
1315
  }), {});
1311
- return q(e.columns, (E) => h(O, E.dataIndex));
1316
+ return B(e.columns, (E) => h(O, E.dataIndex));
1312
1317
  }), y = (O) => L(O, (E) => {
1313
1318
  const $ = {
1314
1319
  ...e.column,
@@ -1328,17 +1333,17 @@ const _n = () => ({
1328
1333
  }), $);
1329
1334
  }), b = D(() => {
1330
1335
  const O = Ae(v.value, e.columnState, ($) => $.dataIndex), E = y(O);
1331
- return e.serialNumber && E.unshift(m()), e.operate && e.operate.items && ae(e.operate.items, ($) => $.show) && E.push(p()), E;
1332
- }), w = B();
1336
+ return e.serialNumber && E.unshift(f()), e.operate && e.operate.items && ae(e.operate.items, ($) => $.show) && E.push(p()), E;
1337
+ }), w = V();
1333
1338
  Xn({
1334
1339
  columns: b,
1335
1340
  originColumns: l,
1336
- selectIdsRef: f,
1341
+ selectIdsRef: m,
1337
1342
  tableRef: w,
1338
1343
  toolbar: e.toolbar,
1339
1344
  ...e.provideExtra
1340
1345
  }), r(ce(e.tableMethods || [], w));
1341
- const g = j(tt()), C = J(t, "columnSetting");
1346
+ const g = U(tt()), C = Y(t, "columnSetting");
1342
1347
  return () => {
1343
1348
  var E;
1344
1349
  if (!u)
@@ -1413,21 +1418,21 @@ const _n = () => ({
1413
1418
  slots: t,
1414
1419
  emit: r
1415
1420
  }) => {
1416
- const o = _()(F.LoadingKey), n = B(), a = B(0);
1417
- Qt(n, (m) => {
1421
+ const o = _()(F.LoadingKey), n = V(), a = V(0);
1422
+ Qt(n, (f) => {
1418
1423
  var p;
1419
1424
  if (!e.fillMode)
1420
1425
  return;
1421
- const d = (p = m[0]) == null ? void 0 : p.contentRect;
1426
+ const d = (p = f[0]) == null ? void 0 : p.contentRect;
1422
1427
  a.value = d == null ? void 0 : d.height;
1423
1428
  });
1424
- const u = j(Ke.props);
1429
+ const u = U(Ke.props);
1425
1430
  return () => {
1426
- var p, f, c, l;
1427
- const m = e.title || t.title || e.subTitle || t.subTitle || t.extra, d = !!t.footer;
1431
+ var p, m, c, l;
1432
+ const f = e.title || t.title || e.subTitle || t.subTitle || t.extra, d = !!t.footer;
1428
1433
  return i("div", {
1429
1434
  class: "pro-page"
1430
- }, [(p = t.start) == null ? void 0 : p.call(t), m && i(Ke, M(R(e, u), {
1435
+ }, [(p = t.start) == null ? void 0 : p.call(t), f && i(Ke, M(R(e, u), {
1431
1436
  onBack: () => {
1432
1437
  r("back");
1433
1438
  }
@@ -1441,7 +1446,7 @@ const _n = () => ({
1441
1446
  ref: n,
1442
1447
  style: e.fillMode && a.value > 0 ? `height:${a.value};overflow-y:auto` : "",
1443
1448
  class: "pro-page-content"
1444
- }, [e.fillMode ? i(Y, null, [a.value > 0 && ((f = t.default) == null ? void 0 : f.call(t))]) : (c = t.default) == null ? void 0 : c.call(t)]), !e.loading && d && i("div", {
1449
+ }, [e.fillMode ? i(ee, null, [a.value > 0 && ((m = t.default) == null ? void 0 : m.call(t))]) : (c = t.default) == null ? void 0 : c.call(t)]), !e.loading && d && i("div", {
1445
1450
  class: "pro-page-footer"
1446
1451
  }, [(l = t.footer) == null ? void 0 : l.call(t)])]);
1447
1452
  };
@@ -1478,29 +1483,31 @@ const _n = () => ({
1478
1483
  const s = _(), o = s(F.ProSearchFormKey), n = s(F.ProTableKey), a = s(F.PaginationKey), u = e.pageState || ve({
1479
1484
  ...Qn
1480
1485
  });
1481
- let m;
1486
+ let f;
1482
1487
  const d = () => {
1483
1488
  r("search", {
1484
- ...m,
1489
+ ...f,
1485
1490
  ...u
1486
1491
  });
1487
1492
  }, p = (y, b) => {
1488
- m = y, u.page = b || 1, d();
1489
- }, f = (y, b) => {
1493
+ f = y, u.page = b || 1, d();
1494
+ }, m = (y, b) => {
1490
1495
  u.page = y, u.pageSize = b, d();
1491
- }, c = J(t, "search"), l = J(t, "table"), v = J(t, "pagination");
1496
+ }, c = Y(t, "search"), l = Y(t, "table"), v = Y(t, "pagination");
1492
1497
  return () => {
1493
1498
  var y, b, w, g;
1494
- return i(Y, null, [(y = t.start) == null ? void 0 : y.call(t), t.search ? t.search({
1499
+ return i("div", {
1500
+ class: e.clsName
1501
+ }, [(y = t.start) == null ? void 0 : y.call(t), t.search ? t.search({
1495
1502
  executeSearchWithResetPage: p,
1496
1503
  pageState: u
1497
- }) : i(Y, null, [o && i(o, M({
1504
+ }) : i(ee, null, [o && i(o, M({
1498
1505
  class: `${e.clsName}-search`
1499
1506
  }, T(e.searchProps, "onFinish"), {
1500
1507
  onFinish: (C) => p(C)
1501
1508
  }), c)]), (b = t.divide) == null ? void 0 : b.call(t), t.table ? t.table({
1502
1509
  pageState: u
1503
- }) : i(Y, null, [n && i(n, M({
1510
+ }) : i(ee, null, [n && i(n, M({
1504
1511
  class: `${e.clsName}-table`,
1505
1512
  paginationState: {
1506
1513
  page: u.page,
@@ -1508,14 +1515,14 @@ const _n = () => ({
1508
1515
  },
1509
1516
  pagination: !1
1510
1517
  }, e.tableProps), l)]), (w = t.divide2) == null ? void 0 : w.call(t), t.pagination ? t.pagination({
1511
- executePageChange: f,
1518
+ executePageChange: m,
1512
1519
  pageState: u
1513
- }) : i(Y, null, [e.paginationProps !== !1 && a && i("div", {
1520
+ }) : i(ee, null, [e.paginationProps !== !1 && a && i("div", {
1514
1521
  class: `${e.clsName}-pagination`
1515
1522
  }, [i(a, M(T(ne(e.paginationProps) ? {} : e.paginationProps, "onChange"), {
1516
1523
  page: u.page,
1517
1524
  pageSize: u.pageSize,
1518
- onComposeChange: f
1525
+ onComposeChange: m
1519
1526
  }), v)])]), (g = t.end) == null ? void 0 : g.call(t)]);
1520
1527
  };
1521
1528
  }
@@ -1537,12 +1544,12 @@ const _n = () => ({
1537
1544
  }) => {
1538
1545
  const {
1539
1546
  elementMap: r
1540
- } = Z(), s = e.elementMap || r, o = _(), n = o(F.DescriptionsKey), a = o(F.DescriptionsItemKey), u = D(() => Ae(e.columns, e.columnState, "dataIndex")), m = j(de), d = j(rt());
1547
+ } = Q(), s = e.elementMap || r, o = _(), n = o(F.DescriptionsKey), a = o(F.DescriptionsItemKey), u = D(() => Ae(e.columns, e.columnState, "dataIndex")), f = U(de), d = U(rt());
1541
1548
  return () => !n || !a ? null : i(n, M({
1542
1549
  class: e.clsName
1543
- }, T(e, ...m, ...d, "model")), {
1550
+ }, T(e, ...f, ...d, "model")), {
1544
1551
  default: () => {
1545
- var p, f;
1552
+ var p, m;
1546
1553
  return [(p = t.start) == null ? void 0 : p.call(t), L(u.value, (c) => {
1547
1554
  const l = c.dataIndex, v = h(e.model, l);
1548
1555
  return i(a, M({
@@ -1557,7 +1564,7 @@ const _n = () => ({
1557
1564
  return ((y = t.label) == null ? void 0 : y.call(t, c)) || c.title;
1558
1565
  }
1559
1566
  });
1560
- }), (f = t.default) == null ? void 0 : f.call(t)];
1567
+ }), (m = t.default) == null ? void 0 : m.call(t)];
1561
1568
  },
1562
1569
  ...t
1563
1570
  });
@@ -1667,7 +1674,7 @@ const _n = () => ({
1667
1674
  const r = D(() => tn(e.options, (n) => n.label), void 0), s = D(() => {
1668
1675
  const n = e.value;
1669
1676
  let a = e.value;
1670
- return U(n) ? a = Ue(L(n, (u) => h(r.value, u, u)), e.splitStr) : a = h(r.value, n, e.value), e.convert ? e.convert(a, e) : a;
1677
+ return q(n) ? a = Ue(L(n, (u) => h(r.value, u, u)), e.splitStr) : a = h(r.value, n, e.value), e.convert ? e.convert(a, e) : a;
1671
1678
  }), o = D(() => h(e.colorMap, e.value));
1672
1679
  return () => i(Oe, M(R(t, "style", "class"), {
1673
1680
  style: `color:${o.value || ""}`,
@@ -1704,7 +1711,7 @@ const _n = () => ({
1704
1711
  });
1705
1712
  }), s = D(() => {
1706
1713
  let o = e.value;
1707
- return U(e.value) ? o = Ue(L(e.value, (n) => h(r.value, n, n)), e.splitStr) : o = h(r.value, e.value, e.value), e.convert ? e.convert(o, e) : o;
1714
+ return q(e.value) ? o = Ue(L(e.value, (n) => h(r.value, n, n)), e.splitStr) : o = h(r.value, e.value, e.value), e.convert ? e.convert(o, e) : o;
1708
1715
  });
1709
1716
  return () => i(Oe, M(R(t, "style", "class"), {
1710
1717
  value: s.value,
@@ -1735,7 +1742,7 @@ const _n = () => ({
1735
1742
  }) => {
1736
1743
  const r = (o) => o && (e.isUnix ? Ye.unix(o).format(e.format) : Ye(o).format(e.format)), s = D(() => {
1737
1744
  let o = e.value;
1738
- return U(e.value) ? o = Ue(L(e.value, (n) => r(n) || ""), e.splitStr) : o = r(e.value) || "", e.convert ? e.convert(o, e) : o;
1745
+ return q(e.value) ? o = Ue(L(e.value, (n) => r(n) || ""), e.splitStr) : o = r(e.value) || "", e.convert ? e.convert(o, e) : o;
1739
1746
  });
1740
1747
  return () => i(Oe, M(R(t, "style", "class"), {
1741
1748
  value: s.value,
@@ -1805,19 +1812,19 @@ const _n = () => ({
1805
1812
  children: ((v = e.fieldNames) == null ? void 0 : v.children) || "children",
1806
1813
  childrenName: "children"
1807
1814
  });
1808
- }), u = D(() => an(a.value)), m = D(() => {
1815
+ }), u = D(() => an(a.value)), f = D(() => {
1809
1816
  var y;
1810
1817
  const v = We(n.matched, (b) => !!h(u.value, b.name));
1811
1818
  return v ? h(u.value, v.name) : (y = e.findCurrentTopName) == null ? void 0 : y.call(e, n, u.value);
1812
- }), d = D(() => m.value ? Xe(a.value, (v) => v.value === m.value).target : null), p = D(() => {
1819
+ }), d = D(() => f.value ? Xe(a.value, (v) => v.value === f.value).target : null), p = D(() => {
1813
1820
  var y;
1814
1821
  const v = We(n.matched, (b) => !!h(u.value, b.name));
1815
1822
  return v ? v.name : (y = e.findActiveKey) == null ? void 0 : y.call(e, n, u.value);
1816
- }), f = (v) => {
1823
+ }), m = (v) => {
1817
1824
  var b;
1818
1825
  const y = Xe(a.value, (w) => w.value === v.value).target;
1819
1826
  (b = e.onMenuItemClick) == null || b.call(e, y);
1820
- }, c = J(t, "header"), l = J(t, "menu");
1827
+ }, c = Y(t, "header"), l = Y(t, "menu");
1821
1828
  return () => {
1822
1829
  var b, w, g;
1823
1830
  if (!o)
@@ -1856,9 +1863,9 @@ const _n = () => ({
1856
1863
  class: "pro-layout-menus",
1857
1864
  mode: "horizontal",
1858
1865
  options: L(a.value, (C) => T(C, "children")),
1859
- activeKey: m.value
1866
+ activeKey: f.value
1860
1867
  }, R(e, "convertSubMenuProps", "convertMenuItemProps"), {
1861
- onMenuItemClick: f
1868
+ onMenuItemClick: m
1862
1869
  }), l),
1863
1870
  ...c
1864
1871
  }), i("div", {
@@ -1887,33 +1894,33 @@ const _n = () => ({
1887
1894
  }) => {
1888
1895
  const o = _()(F.UploaderKey), n = (d) => {
1889
1896
  const p = lt(d);
1890
- if (U(p)) {
1891
- const f = e.fieldNames;
1897
+ if (q(p)) {
1898
+ const m = e.fieldNames;
1892
1899
  return L(p, (c) => ({
1893
- ...T(c, f.id, f.name, f.size),
1894
- id: h(c, f.id),
1895
- name: h(c, f.name),
1896
- size: h(c, f.size)
1900
+ ...T(c, m.id, m.name, m.size),
1901
+ id: h(c, m.id),
1902
+ name: h(c, m.name),
1903
+ size: h(c, m.size)
1897
1904
  }));
1898
1905
  }
1899
1906
  return [];
1900
- }, a = D(() => n(e.value)), u = D(() => n(e.modelValue)), m = (d, p) => {
1901
- let f = "";
1902
- d && W(d) > 0 && (f = on(L(d, (c) => {
1907
+ }, a = D(() => n(e.value)), u = D(() => n(e.modelValue)), f = (d, p) => {
1908
+ let m = "";
1909
+ d && W(d) > 0 && (m = on(L(d, (c) => {
1903
1910
  const l = e.fieldNames;
1904
1911
  return {
1905
1912
  [l.id]: c.id,
1906
1913
  [l.name]: c.name,
1907
1914
  [l.size || "size"]: c.size
1908
1915
  };
1909
- }))), r(p, f);
1916
+ }))), r(p, m);
1910
1917
  };
1911
1918
  return () => o ? i(o, M({
1912
1919
  class: "pro-uploader-text",
1913
1920
  value: a.value,
1914
- "onUpdate:value": (d) => m(d, "update:value"),
1921
+ "onUpdate:value": (d) => f(d, "update:value"),
1915
1922
  modelValue: u.value,
1916
- "onUpdate:modelValue": (d) => m(d, "update:modelValue")
1923
+ "onUpdate:modelValue": (d) => f(d, "update:modelValue")
1917
1924
  }, T(e, "value", "modelValue", "fieldNames")), t) : null;
1918
1925
  }
1919
1926
  }), Gr = I({
@@ -1937,14 +1944,14 @@ const _n = () => ({
1937
1944
  return !!h(a, ((u = e.fieldNames) == null ? void 0 : u.id) || "id");
1938
1945
  }, o = D(() => {
1939
1946
  let a = e.value;
1940
- return a && he(a) && (a = lt(a)), a && !U(a) && ie(a) && s(a) && (a = [a]), U(a) ? L(q(a, (u) => s(u)), (u) => {
1941
- var f, c, l;
1942
- const m = h(u, ((f = e.fieldNames) == null ? void 0 : f.id) || "id"), d = h(u, ((c = e.fieldNames) == null ? void 0 : c.name) || "name"), p = h(u, ((l = e.fieldNames) == null ? void 0 : l.name) || "size");
1947
+ return a && he(a) && (a = lt(a)), a && !q(a) && ie(a) && s(a) && (a = [a]), q(a) ? L(B(a, (u) => s(u)), (u) => {
1948
+ var m, c, l;
1949
+ const f = h(u, ((m = e.fieldNames) == null ? void 0 : m.id) || "id"), d = h(u, ((c = e.fieldNames) == null ? void 0 : c.name) || "name"), p = h(u, ((l = e.fieldNames) == null ? void 0 : l.name) || "size");
1943
1950
  return {
1944
1951
  ...u,
1945
- id: m,
1952
+ id: f,
1946
1953
  size: p,
1947
- name: d || m
1954
+ name: d || f
1948
1955
  };
1949
1956
  }) : [];
1950
1957
  }), n = (a) => {
@@ -1954,14 +1961,14 @@ const _n = () => ({
1954
1961
  var a, u;
1955
1962
  return i("div", {
1956
1963
  class: "pro-upload-list"
1957
- }, [(a = t.start) == null ? void 0 : a.call(t), L(o.value, (m) => {
1964
+ }, [(a = t.start) == null ? void 0 : a.call(t), L(o.value, (f) => {
1958
1965
  var d;
1959
1966
  return i("div", {
1960
1967
  class: "pro-upload-list-item"
1961
1968
  }, [i("span", {
1962
1969
  class: "pro-upload-list-item-title",
1963
- onClick: () => n(m)
1964
- }, [m.name]), (d = t.extra) == null ? void 0 : d.call(t, m)]);
1970
+ onClick: () => n(f)
1971
+ }, [f.name]), (d = t.extra) == null ? void 0 : d.call(t, f)]);
1965
1972
  }), (u = t.default) == null ? void 0 : u.call(t)]);
1966
1973
  };
1967
1974
  }
@@ -2001,13 +2008,13 @@ const or = () => ({
2001
2008
  state: o,
2002
2009
  sendEvent: n,
2003
2010
  sendRequest: a
2004
- } = be(), u = D(() => Ae(e.columns, e.columnState, (N) => ue(N))), m = (N, S = !0) => ht(e.formElementMap, N, S), d = (N, S) => Ve(s, N, S), p = (N, S) => {
2005
- const x = q(u.value, (V) => {
2006
- const z = h(V, ["extra", N]) || h(V, N);
2011
+ } = be(), u = D(() => Ae(e.columns, e.columnState, (N) => ue(N))), f = (N, S = !0) => ht(e.formElementMap, N, S), d = (N, S) => Ve(s, N, S), p = (N, S) => {
2012
+ const x = B(u.value, (j) => {
2013
+ const z = h(j, ["extra", N]) || h(j, N);
2007
2014
  return S ? z !== !1 : z;
2008
2015
  });
2009
- return st(x, (V) => h(V, ["extra", `${N}Sort`]) || h(V, `${N}Sort`));
2010
- }, f = D(() => p("form", !0)), c = D(() => p("detail", !0)), l = D(() => p("table", !0)), v = D(() => p("search"));
2016
+ return st(x, (j) => h(j, ["extra", `${N}Sort`]) || h(j, `${N}Sort`));
2017
+ }, m = D(() => p("form", !0)), c = D(() => p("detail", !0)), l = D(() => p("table", !0)), v = D(() => p("search"));
2011
2018
  let y;
2012
2019
  const b = (N) => {
2013
2020
  a(A.LIST, {
@@ -2028,13 +2035,13 @@ const or = () => ({
2028
2035
  }) => {
2029
2036
  if (x)
2030
2037
  return;
2031
- let V = N, z = S == null ? void 0 : S.type;
2032
- V === me.Success && (V = h(S, ["requestOpts", "action"]), z = K.SUCCESS);
2038
+ let j = N, z = S == null ? void 0 : S.type;
2039
+ j === fe.Success && (j = h(S, ["requestOpts", "action"]), z = K.SUCCESS);
2033
2040
  const {
2034
2041
  values: Pe,
2035
2042
  record: Lt
2036
2043
  } = S;
2037
- switch (V) {
2044
+ switch (j) {
2038
2045
  case A.LIST:
2039
2046
  z === K.EMIT && (y = Pe, b());
2040
2047
  return;
@@ -2048,7 +2055,7 @@ const or = () => ({
2048
2055
  z === K.EMIT ? a(A.DELETE, Lt, e.rowKey) : z === K.SUCCESS && b();
2049
2056
  return;
2050
2057
  }
2051
- V && N === K.EXECUTE && a(V, Pe);
2058
+ j && N === K.EXECUTE && a(j, Pe);
2052
2059
  });
2053
2060
  const g = H(e.operates, (N, S) => ({
2054
2061
  ...N,
@@ -2057,13 +2064,13 @@ const or = () => ({
2057
2064
  return ar({
2058
2065
  columns: u,
2059
2066
  getSignColumns: p,
2060
- getFormItemVNode: m,
2067
+ getFormItemVNode: f,
2061
2068
  getItemVNode: d,
2062
2069
  elementMap: s,
2063
2070
  formElementMap: e.formElementMap,
2064
2071
  rowKey: e.rowKey,
2065
2072
  curdState: o,
2066
- formColumns: f,
2073
+ formColumns: m,
2067
2074
  descColumns: c,
2068
2075
  tableColumns: l,
2069
2076
  searchColumns: v,
@@ -2098,9 +2105,9 @@ const or = () => ({
2098
2105
  const {
2099
2106
  elementMap: s,
2100
2107
  formElementMap: o
2101
- } = Z(), n = B(), a = B(), u = e.curdState || ve({
2108
+ } = Q(), n = V(), a = V(), u = e.curdState || ve({
2102
2109
  detailData: {}
2103
- }), m = {
2110
+ }), f = {
2104
2111
  [A.LIST]: {
2105
2112
  convertParams: (c) => c,
2106
2113
  convertData: (c) => {
@@ -2145,9 +2152,9 @@ const or = () => ({
2145
2152
  label: "\u5220\u9664"
2146
2153
  }
2147
2154
  }, d = L(e.operates, (c) => ({
2148
- ...h(m, c.action),
2155
+ ...h(f, c.action),
2149
2156
  ...c
2150
- })), p = q(d, (c) => c.actor), f = j(T(we.props, "state", "requests"));
2157
+ })), p = B(d, (c) => c.actor), m = U(T(we.props, "state", "requests"));
2151
2158
  return r({
2152
2159
  sendCurdEvent: (c) => {
2153
2160
  var l;
@@ -2167,14 +2174,14 @@ const or = () => ({
2167
2174
  }
2168
2175
  }), () => i(we, M({
2169
2176
  ref: n
2170
- }, R(e, f), {
2177
+ }, R(e, m), {
2171
2178
  elementMap: e.elementMap || s,
2172
2179
  state: u,
2173
2180
  requests: p
2174
2181
  }), {
2175
2182
  default: () => [i(at, M({
2176
2183
  ref: a
2177
- }, T(e, ...f, "curdState", "operates"), {
2184
+ }, T(e, ...m, "curdState", "operates"), {
2178
2185
  formElementMap: e.formElementMap || o,
2179
2186
  operates: d
2180
2187
  }), t)]
@@ -2199,7 +2206,7 @@ const or = () => ({
2199
2206
  listProps: n,
2200
2207
  getOperate: a,
2201
2208
  refreshList: u
2202
- } = X(), m = (l = n == null ? void 0 : n.value) == null ? void 0 : l.pageState, d = (v) => {
2209
+ } = X(), f = (l = n == null ? void 0 : n.value) == null ? void 0 : l.pageState, d = (v) => {
2203
2210
  const y = a(A.DETAIL);
2204
2211
  y != null && y.actor ? r(A.DETAIL, v, s) : t({
2205
2212
  type: "detailData",
@@ -2212,14 +2219,14 @@ const or = () => ({
2212
2219
  type: "mode",
2213
2220
  payload: re.DETAIL
2214
2221
  }), d(y));
2215
- }, f = (v) => {
2222
+ }, m = (v) => {
2216
2223
  v === K.EMIT ? (t({
2217
2224
  type: "mode",
2218
2225
  payload: re.ADD
2219
2226
  }), t({
2220
2227
  type: "detailData",
2221
2228
  payload: e.defaultAddRecord || {}
2222
- })) : v === K.SUCCESS && (m && (m.page = 1), u(), o.addAction === ye.CONTINUE ? t({
2229
+ })) : v === K.SUCCESS && (f && (f.page = 1), u(), o.addAction === ye.CONTINUE ? t({
2223
2230
  type: "detailData",
2224
2231
  payload: e.defaultAddRecord || {}
2225
2232
  }) : t({
@@ -2246,14 +2253,14 @@ const or = () => ({
2246
2253
  return;
2247
2254
  let w = v, g = y == null ? void 0 : y.type;
2248
2255
  const C = y == null ? void 0 : y.record;
2249
- switch (w === me.Success && (w = h(y, ["requestOpts", "action"]), g = K.SUCCESS), w) {
2256
+ switch (w === fe.Success && (w = h(y, ["requestOpts", "action"]), g = K.SUCCESS), w) {
2250
2257
  case A.DETAIL:
2251
2258
  p(g, {
2252
2259
  record: C
2253
2260
  });
2254
2261
  break;
2255
2262
  case A.ADD:
2256
- f(g);
2263
+ m(g);
2257
2264
  break;
2258
2265
  case A.EDIT:
2259
2266
  c(g, {
@@ -2272,9 +2279,9 @@ const or = () => ({
2272
2279
  slots: t,
2273
2280
  expose: r
2274
2281
  }) => {
2275
- const s = B();
2282
+ const s = V();
2276
2283
  r(ce($t, s));
2277
- const o = j(Re.props);
2284
+ const o = U(Re.props);
2278
2285
  return () => i(Ie, M({
2279
2286
  ref: s
2280
2287
  }, T(e, o)), {
@@ -2302,8 +2309,8 @@ const or = () => ({
2302
2309
  } = be(), {
2303
2310
  rowKey: n,
2304
2311
  curdState: a
2305
- } = X(), u = (f) => {
2306
- f === K.PAGE && (s({
2312
+ } = X(), u = (m) => {
2313
+ m === K.PAGE && (s({
2307
2314
  type: "mode",
2308
2315
  payload: void 0
2309
2316
  }), s({
@@ -2316,55 +2323,55 @@ const or = () => ({
2316
2323
  type: "addAction",
2317
2324
  payload: void 0
2318
2325
  }));
2319
- }, m = (f, {
2326
+ }, f = (m, {
2320
2327
  record: c
2321
2328
  }) => {
2322
- f === K.EMIT ? t.push({
2329
+ m === K.EMIT ? t.push({
2323
2330
  path: `${r.path}/detail`,
2324
2331
  query: R(c, n)
2325
- }) : f === K.PAGE && (s({
2332
+ }) : m === K.PAGE && (s({
2326
2333
  type: "mode",
2327
2334
  payload: re.DETAIL
2328
2335
  }), o(A.DETAIL, r.query, n));
2329
- }, d = (f) => {
2330
- f === K.EMIT ? t.push({
2336
+ }, d = (m) => {
2337
+ m === K.EMIT ? t.push({
2331
2338
  path: `${r.path}/add`
2332
- }) : f === K.PAGE ? (s({
2339
+ }) : m === K.PAGE ? (s({
2333
2340
  type: "mode",
2334
2341
  payload: re.ADD
2335
2342
  }), s({
2336
2343
  type: "detailData",
2337
2344
  payload: e.defaultAddRecord || {}
2338
- })) : f === K.SUCCESS && (a.addAction === ye.CONTINUE ? s({
2345
+ })) : m === K.SUCCESS && (a.addAction === ye.CONTINUE ? s({
2339
2346
  type: "detailData",
2340
2347
  payload: e.defaultAddRecord || {}
2341
2348
  }) : e.routeBack ? e.routeBack(A.ADD) : t.go(-1));
2342
- }, p = (f, {
2349
+ }, p = (m, {
2343
2350
  record: c
2344
2351
  }) => {
2345
- f === K.EMIT ? t.push({
2352
+ m === K.EMIT ? t.push({
2346
2353
  path: `${r.path}/edit`,
2347
2354
  query: R(c, n)
2348
- }) : f === K.PAGE ? (s({
2355
+ }) : m === K.PAGE ? (s({
2349
2356
  type: "mode",
2350
2357
  payload: re.EDIT
2351
- }), o(A.DETAIL, r.query, n)) : f === K.SUCCESS && (e.routeBack ? e.routeBack(A.EDIT) : t.go(-1));
2358
+ }), o(A.DETAIL, r.query, n)) : m === K.SUCCESS && (e.routeBack ? e.routeBack(A.EDIT) : t.go(-1));
2352
2359
  };
2353
2360
  return _e(({
2354
- type: f,
2361
+ type: m,
2355
2362
  payload: c,
2356
2363
  source: l
2357
2364
  }) => {
2358
2365
  if (l)
2359
2366
  return;
2360
- let v = f, y = c == null ? void 0 : c.type;
2367
+ let v = m, y = c == null ? void 0 : c.type;
2361
2368
  const b = c == null ? void 0 : c.record;
2362
- switch (v === me.Success && (v = h(c, ["requestOpts", "action"]), y = K.SUCCESS), v) {
2369
+ switch (v === fe.Success && (v = h(c, ["requestOpts", "action"]), y = K.SUCCESS), v) {
2363
2370
  case A.LIST:
2364
2371
  u(y);
2365
2372
  break;
2366
2373
  case A.DETAIL:
2367
- m(y, {
2374
+ f(y, {
2368
2375
  record: b
2369
2376
  });
2370
2377
  break;
@@ -2388,9 +2395,9 @@ const or = () => ({
2388
2395
  slots: t,
2389
2396
  expose: r
2390
2397
  }) => {
2391
- const s = B();
2398
+ const s = V();
2392
2399
  r(ce($t, s));
2393
- const o = j(ke.props);
2400
+ const o = U(ke.props);
2394
2401
  return () => i(Ie, M({
2395
2402
  ref: s
2396
2403
  }, T(e, o)), {
@@ -2414,38 +2421,38 @@ const or = () => ({
2414
2421
  searchColumns: n,
2415
2422
  tableColumns: a,
2416
2423
  sendCurdEvent: u,
2417
- operates: m
2424
+ operates: f
2418
2425
  } = X(), d = L(
2419
- q(m, (f) => {
2420
- const c = f.action;
2421
- return c === A.DETAIL || c === A.EDIT || c === A.DELETE || f.tableOperate;
2426
+ B(f, (m) => {
2427
+ const c = m.action;
2428
+ return c === A.DETAIL || c === A.EDIT || c === A.DELETE || m.tableOperate;
2422
2429
  }),
2423
- (f) => {
2430
+ (m) => {
2424
2431
  const c = {
2425
- ...R(f, "label", "show", "disabled", "loading", "extraProps", "onClick", "element"),
2426
- value: f.action
2432
+ ...R(m, "label", "show", "disabled", "loading", "extraProps", "onClick", "element"),
2433
+ value: m.action
2427
2434
  };
2428
2435
  return c.onClick || (c.onClick = (l) => {
2429
2436
  u({
2430
- action: f.action,
2437
+ action: m.action,
2431
2438
  type: K.EMIT,
2432
2439
  record: l
2433
2440
  });
2434
2441
  }), c;
2435
2442
  }
2436
- ), p = (f) => {
2443
+ ), p = (m) => {
2437
2444
  u({
2438
2445
  action: A.LIST,
2439
2446
  type: K.EMIT,
2440
- values: f
2447
+ values: m
2441
2448
  });
2442
2449
  };
2443
2450
  return () => {
2444
2451
  var w, g;
2445
- const f = e.searchProps, c = {
2452
+ const m = e.searchProps, c = {
2446
2453
  formElementMap: s,
2447
2454
  columns: n.value,
2448
- ...f
2455
+ ...m
2449
2456
  }, l = e.tableProps, v = {
2450
2457
  elementMap: r,
2451
2458
  columns: a.value,
@@ -2498,11 +2505,11 @@ const or = () => ({
2498
2505
  formElementMap: n,
2499
2506
  curdState: a,
2500
2507
  formColumns: u,
2501
- getSignColumns: m,
2508
+ getSignColumns: f,
2502
2509
  sendCurdEvent: d
2503
- } = X(), p = B();
2510
+ } = X(), p = V();
2504
2511
  r(ce(e.formMethods || [], p));
2505
- const f = D(() => e.signName ? m(e.signName) : u.value), c = () => {
2512
+ const m = D(() => e.signName ? f(e.signName) : u.value), c = () => {
2506
2513
  var b;
2507
2514
  a.addAction = ye.NORMAL, (b = p.value) == null || b.submit();
2508
2515
  }, l = () => {
@@ -2545,7 +2552,7 @@ const or = () => ({
2545
2552
  }, T(e, "operate"), {
2546
2553
  elementMap: e.elementMap || o,
2547
2554
  formElementMap: e.formElementMap || n,
2548
- columns: e.columns || f.value,
2555
+ columns: e.columns || m.value,
2549
2556
  readonly: a.mode === A.DETAIL,
2550
2557
  model: e.model || a.detailData,
2551
2558
  hideRequiredMark: a.mode === A.DETAIL,
@@ -2608,28 +2615,28 @@ const or = () => ({
2608
2615
  getOperate: a
2609
2616
  } = X(), u = () => {
2610
2617
  n.mode = void 0, ut(n.detailData, {}), n.detailLoading = !1, n.addAction = void 0;
2611
- }, m = j(ot());
2618
+ }, f = U(ot());
2612
2619
  return () => {
2613
2620
  var p;
2614
2621
  const d = n.mode;
2615
- return !ae(e.validMode, (f) => f === d) || !s ? null : i(s, M({
2622
+ return !ae(e.validMode, (m) => m === d) || !s ? null : i(s, M({
2616
2623
  class: "pro-curd-modal"
2617
- }, T(e, m), {
2618
- visible: ae(e.validMode, (f) => f === d),
2624
+ }, T(e, f), {
2625
+ visible: ae(e.validMode, (m) => m === d),
2619
2626
  title: e.title || ((p = a(n.mode)) == null ? void 0 : p.label),
2620
2627
  confirmLoading: n.operateLoading,
2621
2628
  maskClosable: n.mode === A.DETAIL,
2622
2629
  onCancel: u
2623
2630
  }), {
2624
2631
  default: () => {
2625
- var f;
2632
+ var m;
2626
2633
  return [n.detailLoading && o ? i(o, {
2627
2634
  loading: !0
2628
2635
  }, {
2629
2636
  default: () => [i("div", {
2630
2637
  class: "pro-curd-modal-loading-dom"
2631
2638
  }, null)]
2632
- }) : (f = t.default) == null ? void 0 : f.call(t)];
2639
+ }) : (m = t.default) == null ? void 0 : m.call(t)];
2633
2640
  },
2634
2641
  ...T(t, "default")
2635
2642
  });
@@ -2643,7 +2650,7 @@ const or = () => ({
2643
2650
  setup: (e, {
2644
2651
  slots: t
2645
2652
  }) => {
2646
- const r = B(), s = J(t, "modal"), o = J(t, "form");
2653
+ const r = V(), s = Y(t, "modal"), o = Y(t, "form");
2647
2654
  return () => i(wt, M(e.modalProps, {
2648
2655
  onOk: () => {
2649
2656
  var n;
@@ -2660,7 +2667,7 @@ const or = () => ({
2660
2667
  const {
2661
2668
  modalProps: e,
2662
2669
  formProps: t
2663
- } = X(), r = B();
2670
+ } = X(), r = V();
2664
2671
  return () => i(wt, M(T(e == null ? void 0 : e.value, "slots"), {
2665
2672
  onOk: () => {
2666
2673
  var s;
@@ -2719,7 +2726,7 @@ export {
2719
2726
  Fr as ProTable,
2720
2727
  nr as ProTypography,
2721
2728
  _r as ProUploaderText,
2722
- me as RequestAction,
2729
+ fe as RequestAction,
2723
2730
  Me as SearchMode,
2724
2731
  Gr as UploadList,
2725
2732
  Dn as Wrapper,
@@ -2730,7 +2737,7 @@ export {
2730
2737
  kr as createFormItemCompFn,
2731
2738
  Er as createProConfig,
2732
2739
  Qn as defaultPage,
2733
- J as filterSlotsByPrefix,
2740
+ Y as filterSlotsByPrefix,
2734
2741
  ue as getColumnFormItemName,
2735
2742
  vt as getColumnValueType,
2736
2743
  Nn as getFirstPropName,
@@ -2743,7 +2750,7 @@ export {
2743
2750
  ar as provideProCurd,
2744
2751
  Mt as provideProFormList,
2745
2752
  An as provideProModule,
2746
- fe as renderElement,
2753
+ me as renderElement,
2747
2754
  ze as renderElements,
2748
2755
  $n as useAccess,
2749
2756
  Dr as useAccessMgr,
@@ -2757,7 +2764,7 @@ export {
2757
2764
  wn as useLogonUser,
2758
2765
  In as useMetaRegister,
2759
2766
  _e as useModuleEvent,
2760
- Z as useProConfig,
2767
+ Q as useProConfig,
2761
2768
  X as useProCurd,
2762
2769
  Nt as useProForm,
2763
2770
  Tt as useProFormList,