@vue-start/pro 0.5.55 → 0.5.56

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,8 +1,8 @@
1
- import { inject as ge, defineComponent as O, provide as be, createVNode as c, mergeProps as K, isVNode as Ne, Fragment as fe, reactive as ye, computed as x, ref as _, createTextVNode as Ae, toRef as Fn, KeepAlive as Rn, Teleport as Ut, h as Oe, resolveComponent as $n } from "vue";
2
- import { reduce as se, get as p, map as F, isString as me, forEach as ue, isFunction as W, filter as G, keys as Y, omit as D, isArray as ee, split as jn, isEmpty as Vt, isObject as De, mergeWith as Bn, size as Q, startsWith as qn, pick as Z, mapKeys as Un, set as ve, debounce as zt, clone as Vn, some as Me, isBoolean as Ke, has as lt, sortBy as Ht, every as Wt, pickBy as zn, identity as Hn, find as ut, findIndex as Wn, findLast as _n, isNumber as st, join as Je, endsWith as _t, add as Gn, subtract as Xn, head as Yn, cloneDeep as Gt } from "lodash";
3
- import { filter as Le, tap as We, merge as Qn, Subject as Jn } from "rxjs";
1
+ import { inject as pe, defineComponent as O, provide as be, createVNode as c, mergeProps as K, isVNode as Ne, Fragment as fe, reactive as ye, computed as E, ref as _, createTextVNode as Ae, toRef as Ln, KeepAlive as Rn, Teleport as Ut, h as Oe, resolveComponent as $n } from "vue";
2
+ import { reduce as se, get as g, map as L, isString as me, forEach as ue, isFunction as W, filter as G, keys as Y, omit as D, isArray as ne, split as jn, isEmpty as Vt, isObject as De, mergeWith as Bn, size as Q, startsWith as qn, pick as ee, mapKeys as Un, set as ve, debounce as zt, clone as Vn, some as Me, isBoolean as Ke, has as lt, sortBy as Ht, every as Wt, pickBy as zn, identity as Hn, find as ut, findIndex as Wn, findLast as _n, isNumber as st, join as Je, endsWith as _t, add as Gn, subtract as Xn, head as Yn, cloneDeep as Gt } from "lodash";
3
+ import { filter as Fe, tap as We, merge as Qn, Subject as Jn } from "rxjs";
4
4
  import { map as Zn, tap as er } from "rxjs/operators";
5
- import { mergeStateToData as tr, mergeStateToData2 as nr, useEffect as oe, useUpdateKey as Ze, useRuleState as rt, convertCollection as Xt, useWatch as Ce, useState as It, signTableMerge as rr, useResizeObserver as Yt, treeToMap as ct, findTreeItem as _e, jsonToStr as Ge, filterCollection as ar, getMenuTopNameMap as xt, findFirstValidMenu as Qt, strToJson as it, decimalFixed as or, thousandDivision as ur, listToMap as lr, setReactiveValue as dt, restorePath as Jt, isValidPath as Zt, isPathHasParent as en, useSafeActivated as sr } from "@vue-start/hooks";
5
+ import { mergeStateToData as tr, mergeStateToData2 as nr, useEffect as re, useUpdateKey as Ze, useRuleState as rt, convertCollection as Xt, useWatch as Ce, useState as It, signTableMerge as rr, useResizeObserver as Yt, treeToMap as ct, findTreeItem as _e, jsonToStr as Ge, filterCollection as ar, getMenuTopNameMap as xt, findFirstValidMenu as Qt, strToJson as it, decimalFixed as or, thousandDivision as ur, listToMap as lr, setReactiveValue as dt, restorePath as Jt, isValidPath as Zt, isPathHasParent as en, useSafeActivated as sr } from "@vue-start/hooks";
6
6
  import { useRequestProvide as Be, isDoneRequestActor as ft, isFailedRequestActor as tn } from "@vue-start/request";
7
7
  import { useDispatchStore as nn, useObservableRef as rn, useStoreConn as an, createStateUse as on, useStore as cr, shallowEqual as ir } from "@vue-start/store";
8
8
  import { useRoute as mt, RouterView as dr, useRouter as un, parseQuery as Et, stringifyQuery as fr } from "vue-router";
@@ -10,7 +10,7 @@ import wt from "dayjs";
10
10
  import { css as Tt } from "@emotion/css";
11
11
  import { mix as ln } from "polished";
12
12
  import { Global as mr } from "@vue-start/css";
13
- const sn = Symbol("logon-user"), _a = () => ge(sn), yt = {
13
+ const sn = Symbol("logon-user"), _a = () => pe(sn), yt = {
14
14
  color: {
15
15
  primary: "#409eff",
16
16
  success: "#67c23a",
@@ -61,8 +61,8 @@ const sn = Symbol("logon-user"), _a = () => ge(sn), yt = {
61
61
  columnState2: { type: Object }
62
62
  }), we = hr(), et = (e, t, n) => {
63
63
  let o = e;
64
- return t && (o = tr(o, t, (r) => pe(r))), n && (o = nr(o, n, (r) => pe(r))), o;
65
- }, pr = () => ({
64
+ return t && (o = tr(o, t, (r) => ge(r))), n && (o = nr(o, n, (r) => ge(r))), o;
65
+ }, gr = () => ({
66
66
  elementMap: { type: Object },
67
67
  formElementMap: { type: Object },
68
68
  formExtraMap: { type: Object },
@@ -75,7 +75,7 @@ const sn = Symbol("logon-user"), _a = () => ge(sn), yt = {
75
75
  showModal: { type: Function },
76
76
  showNotify: { type: Function },
77
77
  appConfig: { type: Object, default: vr }
78
- }), vt = Symbol("pro-config"), le = () => ge(vt) || {}, Ga = () => {
78
+ }), vt = Symbol("pro-config"), le = () => pe(vt) || {}, Ga = () => {
79
79
  const { showMsg: e } = le();
80
80
  return (t) => e(t);
81
81
  }, Xa = () => {
@@ -86,11 +86,11 @@ const sn = Symbol("logon-user"), _a = () => ge(sn), yt = {
86
86
  return (t) => e(t);
87
87
  }, Qa = O({
88
88
  props: {
89
- ...pr()
89
+ ...gr()
90
90
  },
91
91
  setup: (e, { slots: t }) => {
92
92
  const n = se(e.registerStores, (l, s) => ({ ...l, [s.key]: s }), {}), o = se(e.registerActors, (l, s) => ({ ...l, [s.actor.name]: s }), {}), r = se(e.registerMetas, (l, s) => ({ ...l, [s.actorName]: s }), {}), { dispatchRequest: a } = Be(), u = (l, s, d) => {
93
- const y = p(o, l);
93
+ const y = g(o, l);
94
94
  if (!!y)
95
95
  return a(y.actor, s, d);
96
96
  };
@@ -115,10 +115,10 @@ const sn = Symbol("logon-user"), _a = () => ge(sn), yt = {
115
115
  }), Ja = (e = {}) => (t) => {
116
116
  t.provide(vt, e);
117
117
  }, cn = (e) => (t, n) => {
118
- const { requestSubject$: o } = Be(), r = new Set(F(t, (a) => me(a) ? a : a.name));
119
- oe(() => {
118
+ const { requestSubject$: o } = Be(), r = new Set(L(t, (a) => me(a) ? a : a.name));
119
+ re(() => {
120
120
  const a = o.pipe(
121
- Le(e),
121
+ Fe(e),
122
122
  We((u) => {
123
123
  r.has(u.name) && n(u);
124
124
  })
@@ -127,19 +127,19 @@ const sn = Symbol("logon-user"), _a = () => ge(sn), yt = {
127
127
  a.unsubscribe();
128
128
  };
129
129
  }, []);
130
- }, Za = cn(ft), eo = cn(tn), gr = (e, t, n) => {
131
- const { requestSubject$: o, dispatchRequest: r } = Be(), a = new Set(F(e, (l) => me(l) ? l : l.name)), u = {};
132
- oe(() => {
130
+ }, Za = cn(ft), eo = cn(tn), pr = (e, t, n) => {
131
+ const { requestSubject$: o, dispatchRequest: r } = Be(), a = new Set(L(e, (l) => me(l) ? l : l.name)), u = {};
132
+ re(() => {
133
133
  const l = Qn(
134
134
  o.pipe(
135
- Le(ft),
135
+ Fe(ft),
136
136
  We((s) => {
137
137
  var d, y;
138
138
  a.has(s.name) && ((d = t.onSuccess) == null || d.call(t, s), (y = t.onFinish) == null || y.call(t, s), u[s.name] = void 0);
139
139
  })
140
140
  ),
141
141
  o.pipe(
142
- Le(tn),
142
+ Fe(tn),
143
143
  We((s) => {
144
144
  var d, y;
145
145
  a.has(s.name) && ((d = t.onFailed) == null || d.call(t, s), (y = t.onFinish) == null || y.call(t, s), u[s.name] = void 0);
@@ -155,24 +155,24 @@ const sn = Symbol("logon-user"), _a = () => ge(sn), yt = {
155
155
  }, br = (e, t, n) => {
156
156
  var r;
157
157
  const o = (r = e.res) == null ? void 0 : r.data;
158
- return t ? t(o, e) : n ? p(o, n) : o;
158
+ return t ? t(o, e) : n ? g(o, n) : o;
159
159
  }, dn = (e, t) => W(e) ? "meta_" + e(t) : "meta_" + e, to = (e, t) => {
160
- const { registerMetaMap: n, dispatchRequest: o } = le(), r = p(n, e);
160
+ const { registerMetaMap: n, dispatchRequest: o } = le(), r = g(n, e);
161
161
  if (!r)
162
162
  return {};
163
- const a = dn(r.storeName || e, t || r.initParams), l = rn(an((s) => p(s, a)));
163
+ const a = dn(r.storeName || e, t || r.initParams), l = rn(an((s) => g(s, a)));
164
164
  return l.value || o(e, t || r.initParams || {}), l;
165
165
  }, Sr = (e, t) => {
166
166
  const { requestSubject$: n } = Be(), o = nn(), r = (a) => {
167
- const u = p(e, a.name), l = p(t, a.name);
167
+ const u = g(e, a.name), l = g(t, a.name);
168
168
  return !!(u && l && l.actor);
169
169
  };
170
- oe(() => {
170
+ re(() => {
171
171
  const a = n.pipe(
172
- Le(r),
173
- Le(ft),
172
+ Fe(r),
173
+ Fe(ft),
174
174
  We((u) => {
175
- const l = p(e, u.name);
175
+ const l = g(e, u.name);
176
176
  if (!l)
177
177
  return;
178
178
  const s = l.storeName || u.name, d = br(u, l.convertData, l.convertPath), y = dn(s, u.req);
@@ -216,7 +216,7 @@ const sn = Symbol("logon-user"), _a = () => ge(sn), yt = {
216
216
  ProOperateKey: "ProOperate$"
217
217
  }, J = () => {
218
218
  const { elementMap: e } = le();
219
- return (t) => p(e, t);
219
+ return (t) => g(e, t);
220
220
  };
221
221
  function Pr(e) {
222
222
  return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !Ne(e);
@@ -240,7 +240,7 @@ const Cr = () => ({
240
240
  const t = J(), n = t(U.RowKey), o = t(U.ColKey);
241
241
  return () => {
242
242
  let r;
243
- return !n || !o ? null : c(n, e.row, Pr(r = F(e.items, (a) => c(o, K({
243
+ return !n || !o ? null : c(n, e.row, Pr(r = L(e.items, (a) => c(o, K({
244
244
  key: a.rowKey
245
245
  }, e.col, a.col), {
246
246
  default: () => [a.vNode]
@@ -261,11 +261,11 @@ const Cr = () => ({
261
261
  return e;
262
262
  }, fn = (e) => {
263
263
  if (!!e)
264
- return ee(e) ? e : e && me(e) && e.indexOf(".") > 0 ? jn(e, ".") : [e];
265
- }, no = (e, t, n) => !t || !n ? e : F(e, (o) => {
266
- const r = W(n) ? n(o) : p(o, n), a = p(t, r);
264
+ return ne(e) ? e : e && me(e) && e.indexOf(".") > 0 ? jn(e, ".") : [e];
265
+ }, no = (e, t, n) => !t || !n ? e : L(e, (o) => {
266
+ const r = W(n) ? n(o) : g(o, n), a = g(t, r);
267
267
  return !a || Vt(a) || W(a) || !De(a) ? o : Bn(o, a, (u, l) => {
268
- if (ee(u) || ee(l))
268
+ if (ne(u) || ne(l))
269
269
  return l;
270
270
  });
271
271
  }), Ie = (e, t) => {
@@ -289,10 +289,10 @@ const Cr = () => ({
289
289
  return (l = (u = e.value) == null ? void 0 : u[r]) == null ? void 0 : l.call(u, ...a);
290
290
  };
291
291
  }), o;
292
- }, Ir = (e, t) => p(e, ["extra", t]) || p(e, t), he = (e, t) => {
293
- const n = Y(e), o = `${t}-`, r = G(n, (u) => qn(u, o)), a = Z(e, r);
292
+ }, Ir = (e, t) => g(e, ["extra", t]) || g(e, t), he = (e, t) => {
293
+ const n = Y(e), o = `${t}-`, r = G(n, (u) => qn(u, o)), a = ee(e, r);
294
294
  return Un(a, (u, l) => l.replace(o, ""));
295
- }, mn = Symbol("pro-form-list"), yn = () => ge(mn), vn = (e) => {
295
+ }, mn = Symbol("pro-form-list"), yn = () => pe(mn), vn = (e) => {
296
296
  be(mn, e);
297
297
  }, xr = O({
298
298
  props: {
@@ -358,13 +358,13 @@ const Cr = () => ({
358
358
  readonly: a,
359
359
  elementMap: u,
360
360
  formElementMap: l
361
- } = pn(), s = yn(), d = fn(e.name), y = s != null && s.pathList ? [...s.pathList, ...d] : d, [m, f] = Ze(), h = () => {
361
+ } = gn(), s = yn(), d = fn(e.name), y = s != null && s.pathList ? [...s.pathList, ...d] : d, [m, f] = Ze(), h = () => {
362
362
  var k;
363
363
  if (((k = e.onPreAdd) == null ? void 0 : k.call(e)) === !0)
364
364
  return;
365
365
  const C = () => {
366
- let N = p(r, y);
367
- ee(N) || (N = []), N.push({
366
+ let N = g(r, y);
367
+ ne(N) || (N = []), N.push({
368
368
  [e.rowKey]: new Date().valueOf()
369
369
  }), ve(r, y, N);
370
370
  };
@@ -374,14 +374,14 @@ const Cr = () => ({
374
374
  }
375
375
  C();
376
376
  }, M = (v, C) => {
377
- var L;
378
- if (((L = e.onPreRemove) == null ? void 0 : L.call(e, {
377
+ var R;
378
+ if (((R = e.onPreRemove) == null ? void 0 : R.call(e, {
379
379
  index: v,
380
380
  item: C
381
381
  })) === !0)
382
382
  return;
383
383
  const N = () => {
384
- const V = p(r, y);
384
+ const V = g(r, y);
385
385
  Q(V) <= 0 || (V.splice(v, 1), f());
386
386
  };
387
387
  if (e.onRemove) {
@@ -392,22 +392,22 @@ const Cr = () => ({
392
392
  return;
393
393
  }
394
394
  N();
395
- }, g = (v, C) => {
396
- const k = pe(v);
395
+ }, p = (v, C) => {
396
+ const k = ge(v);
397
397
  return k && t[k] ? t[k]({
398
398
  item: v,
399
399
  formState: r,
400
400
  pathList: C
401
401
  }) : Tn(u, l, v);
402
- }, S = (v, C) => {
402
+ }, P = (v, C) => {
403
403
  if (!l || Q(e.columns) <= 0)
404
404
  return null;
405
405
  if (!e.row)
406
- return F(e.columns, (N) => g(N, v));
407
- const k = F(e.columns, (N) => ({
408
- rowKey: pe(N),
409
- vNode: g(N, v),
410
- col: p(N, ["extra", "col"])
406
+ return L(e.columns, (N) => p(N, v));
407
+ const k = L(e.columns, (N) => ({
408
+ rowKey: ge(N),
409
+ vNode: p(N, v),
410
+ col: g(N, ["extra", "col"])
411
411
  }));
412
412
  return c(Te, {
413
413
  row: e.row,
@@ -421,27 +421,27 @@ const Cr = () => ({
421
421
  }, D(e, T)), {
422
422
  default: () => {
423
423
  var v, C;
424
- return [F(p(r, y), (k, N) => {
425
- const L = [...y, N];
424
+ return [L(g(r, y), (k, N) => {
425
+ const R = [...y, N];
426
426
  return c(xr, {
427
427
  key: k[e.rowKey] + m.value,
428
- pathList: L
428
+ pathList: R
429
429
  }, {
430
430
  default: () => {
431
- var V, j, w, A, z, b;
431
+ var V, B, w, A, z, S;
432
432
  return [c("div", {
433
433
  class: "pro-form-list-item"
434
434
  }, [(V = t.start) == null ? void 0 : V.call(t, {
435
435
  state: r,
436
436
  path: y,
437
437
  index: N
438
- }), S(L), (j = t.default) == null ? void 0 : j.call(t), !a.value && c(fe, null, [c("div", {
438
+ }), P(R), (B = t.default) == null ? void 0 : B.call(t), !a.value && c(fe, null, [c("div", {
439
439
  class: "pro-form-list-item-add",
440
440
  onClick: h
441
441
  }, [((w = t.itemAdd) == null ? void 0 : w.call(t)) || ((A = e.renderItemAdd) == null ? void 0 : A.call(e))]), c("div", {
442
442
  class: "pro-form-list-item-minus",
443
443
  onClick: () => M(N, k)
444
- }, [((z = t.itemMinus) == null ? void 0 : z.call(t)) || ((b = e.renderItemMinus) == null ? void 0 : b.call(e))])])])];
444
+ }, [((z = t.itemMinus) == null ? void 0 : z.call(t)) || ((S = e.renderItemMinus) == null ? void 0 : S.call(e))])])])];
445
445
  }
446
446
  });
447
447
  }), !a.value && c("div", {
@@ -451,7 +451,7 @@ const Cr = () => ({
451
451
  }
452
452
  }) : null;
453
453
  }
454
- }), hn = Symbol("pro-form"), pn = () => ge(hn), Er = (e, t = 300, n) => zt(e, t, n), wr = (e) => {
454
+ }), hn = Symbol("pro-form"), gn = () => pe(hn), Er = (e, t = 300, n) => zt(e, t, n), wr = (e) => {
455
455
  be(hn, e);
456
456
  };
457
457
  let ce;
@@ -524,23 +524,23 @@ const Nt = () => ({
524
524
  const {
525
525
  elementMap: a,
526
526
  formElementMap: u
527
- } = le(), l = e.elementMap || a, s = e.formElementMap || u, d = e.model || ye({}), y = rt(d, e.showStateRules, e.showState), m = rt(d, e.readonlyStateRules, e.readonlyState), f = rt(d, e.disableStateRules, e.disableState), h = x(() => e.readonly), M = x(() => {
528
- const R = et(e.columns, e.columnState, e.columnState2);
529
- return e.convertColumn ? Xt(R, e.convertColumn) : R;
530
- }), g = _(!1), S = _(0), T = (...R) => {
527
+ } = le(), l = e.elementMap || a, s = e.formElementMap || u, d = e.model || ye({}), y = rt(d, e.showStateRules, e.showState), m = rt(d, e.readonlyStateRules, e.readonlyState), f = rt(d, e.disableStateRules, e.disableState), h = E(() => e.readonly), M = E(() => {
528
+ const F = et(e.columns, e.columnState, e.columnState2);
529
+ return e.convertColumn ? Xt(F, e.convertColumn) : F;
530
+ }), p = _(!1), P = _(0), T = (...F) => {
531
531
  var q;
532
- ((q = e.onPreFinish) == null ? void 0 : q.call(e, ...R)) !== !0 && n("finish", ...R, {
533
- userOpe: g,
534
- asyncNum: S
532
+ ((q = e.onPreFinish) == null ? void 0 : q.call(e, ...F)) !== !0 && n("finish", ...F, {
533
+ userOpe: p,
534
+ asyncNum: P
535
535
  });
536
- }, v = e.debounceSubmit, C = (typeof v == "object" ? v.wait : v) || 300, k = Er((...R) => T(...R), C, v == null ? void 0 : v.options), N = (R) => {
537
- const P = Mr(R, y, e.showStateRules);
538
- v !== void 0 ? k(P, R) : T(P, R);
539
- }, L = _();
536
+ }, v = e.debounceSubmit, C = (typeof v == "object" ? v.wait : v) || 300, k = Er((...F) => T(...F), C, v == null ? void 0 : v.options), N = (F) => {
537
+ const b = Mr(F, y, e.showStateRules);
538
+ v !== void 0 ? k(b, F) : T(b, F);
539
+ }, R = _();
540
540
  o({
541
- ...Ie(e.formMethods || [], L),
542
- userOpe: g,
543
- asyncNum: S
541
+ ...Ie(e.formMethods || [], R),
542
+ userOpe: p,
543
+ asyncNum: P
544
544
  }), wr({
545
545
  formState: d,
546
546
  showState: y,
@@ -550,9 +550,9 @@ const Nt = () => ({
550
550
  formElementMap: s,
551
551
  readonly: h,
552
552
  columns: M,
553
- formRef: L,
554
- userOpe: g,
555
- asyncNum: S,
553
+ formRef: R,
554
+ userOpe: p,
555
+ asyncNum: P,
556
556
  ...e.provideExtra
557
557
  }), vn({});
558
558
  const V = [{
@@ -564,82 +564,82 @@ const Nt = () => ({
564
564
  extraProps: {
565
565
  type: "primary"
566
566
  }
567
- }], j = () => {
568
- var R, P;
569
- if ((R = e.operate) != null && R.onReset) {
567
+ }], B = () => {
568
+ var F, b;
569
+ if ((F = e.operate) != null && F.onReset) {
570
570
  e.operate.onReset({
571
- form: L.value
571
+ form: R.value
572
572
  });
573
573
  return;
574
574
  }
575
- (P = L.value) == null || P.resetFields();
575
+ (b = R.value) == null || b.resetFields();
576
576
  }, w = () => {
577
- var R, P;
578
- if ((R = e.operate) != null && R.onSubmit) {
577
+ var F, b;
578
+ if ((F = e.operate) != null && F.onSubmit) {
579
579
  e.operate.onSubmit({
580
- form: L.value
580
+ form: R.value
581
581
  });
582
582
  return;
583
583
  }
584
- (P = L.value) == null || P.submit();
584
+ (b = R.value) == null || b.submit();
585
585
  }, A = () => {
586
- var R, P;
587
- (P = (R = e.operate) == null ? void 0 : R.onContinue) == null || P.call(R, {
588
- form: L.value
586
+ var F, b;
587
+ (b = (F = e.operate) == null ? void 0 : F.onContinue) == null || b.call(F, {
588
+ form: R.value
589
589
  });
590
590
  }, z = {
591
- [ce.RESET]: j,
591
+ [ce.RESET]: B,
592
592
  [ce.SUBMIT]: w,
593
593
  [ce.CONTINUE]: A
594
- }, b = x(() => {
595
- const R = e.operate, P = (R == null ? void 0 : R.items) || V;
596
- return F(P, (q) => !q.onClick && !p(R == null ? void 0 : R.itemState, [q.value, "onClick"]) ? {
594
+ }, S = E(() => {
595
+ const F = e.operate, b = (F == null ? void 0 : F.items) || V;
596
+ return L(b, (q) => !q.onClick && !g(F == null ? void 0 : F.itemState, [q.value, "onClick"]) ? {
597
597
  ...q,
598
- onClick: p(z, q.value)
598
+ onClick: g(z, q.value)
599
599
  } : q);
600
- }), i = x(() => {
601
- var R;
600
+ }), i = E(() => {
601
+ var F;
602
602
  return {
603
603
  [ce.SUBMIT]: {
604
604
  value: ce.SUBMIT,
605
605
  loading: e.submitLoading
606
606
  },
607
- ...(R = e.operate) == null ? void 0 : R.itemState
607
+ ...(F = e.operate) == null ? void 0 : F.itemState
608
608
  };
609
- }), I = (R) => {
610
- const P = pe(R);
611
- return P && t[P] ? t[P](R, d) : Tn(l, s, R);
612
- }, E = x(() => {
613
- const R = G(M.value, (P) => {
614
- const q = pe(P);
615
- return !!p(y, q, !0);
609
+ }), I = (F) => {
610
+ const b = ge(F);
611
+ return b && t[b] ? t[b](F, d) : Tn(l, s, F);
612
+ }, x = E(() => {
613
+ const F = G(M.value, (b) => {
614
+ const q = ge(b);
615
+ return !!g(y, q, !0);
616
616
  });
617
- return e.row ? F(R, (P) => ({
618
- rowKey: pe(P),
619
- vNode: I(P),
620
- col: p(P, ["extra", "col"])
621
- })) : F(R, (P) => I(P));
622
- }), B = [...Y(Nt()), ...Y(we)], te = Y(D(Te.props, "items")), ne = p(a, U.FormKey);
617
+ return e.row ? L(F, (b) => ({
618
+ rowKey: ge(b),
619
+ vNode: I(b),
620
+ col: g(b, ["extra", "col"])
621
+ })) : L(F, (b) => I(b));
622
+ }), $ = [...Y(Nt()), ...Y(we)], Z = Y(D(Te.props, "items")), te = g(a, U.FormKey);
623
623
  return () => {
624
624
  var ie, de, Se;
625
- if (!ne)
625
+ if (!te)
626
626
  return null;
627
- const R = (ie = t.start) == null ? void 0 : ie.call(t), P = (de = t.default) == null ? void 0 : de.call(t), q = (Se = t.end) == null ? void 0 : Se.call(t), X = [e.clsName], ae = Q(E.value) <= 0 && !Re(R) && !Re(P);
628
- return ae && X.push("is-empty"), c(ne, K({
629
- ref: L,
627
+ const F = (ie = t.start) == null ? void 0 : ie.call(t), b = (de = t.default) == null ? void 0 : de.call(t), q = (Se = t.end) == null ? void 0 : Se.call(t), X = [e.clsName], oe = Q(x.value) <= 0 && !Re(F) && !Re(b);
628
+ return oe && X.push("is-empty"), c(te, K({
629
+ ref: R,
630
630
  class: X
631
- }, D(r, "onFinish"), D(e, ...B, ...te, "onFinish", "operate"), {
631
+ }, D(r, "onFinish"), D(e, ...$, ...Z, "onFinish", "operate"), {
632
632
  model: d,
633
633
  onFinish: N
634
634
  }), {
635
- default: () => [R, s && Q(M.value) > 0 && c(fe, null, [e.row ? c(Te, {
635
+ default: () => [F, s && Q(M.value) > 0 && c(fe, null, [e.row ? c(Te, {
636
636
  row: e.row,
637
637
  col: e.col,
638
- items: E.value
639
- }, null) : E.value]), P, e.operate && !ae && c(ht, K({
638
+ items: x.value
639
+ }, null) : x.value]), b, e.operate && !oe && c(ht, K({
640
640
  class: `${e.clsName}-operate`
641
641
  }, D(e.operate, "items", "itemState", "onReset", "onSubmit", "onContinue"), {
642
- items: b.value,
642
+ items: S.value,
643
643
  itemState: i.value
644
644
  }), null), q]
645
645
  });
@@ -693,29 +693,29 @@ const At = () => ({
693
693
  slots: t,
694
694
  expose: n
695
695
  }) => {
696
- const r = J()(U.ProFormKey), a = e.model || ye({}), u = new Set(e.debounceTypes), l = F(G(e.columns, (g) => {
697
- const S = wn(g);
698
- return u.has(S);
699
- }), (g) => pe(g)), s = x(() => F(e.columns, (g) => ({
700
- ...g,
701
- formItemProps: D(g.formItemProps, "required")
696
+ const r = J()(U.ProFormKey), a = e.model || ye({}), u = new Set(e.debounceTypes), l = L(G(e.columns, (p) => {
697
+ const P = wn(p);
698
+ return u.has(P);
699
+ }), (p) => ge(p)), s = E(() => L(e.columns, (p) => ({
700
+ ...p,
701
+ formItemProps: D(p.formItemProps, "required")
702
702
  }))), d = _(), y = e.formMethods || [];
703
703
  n(Ie(y, d));
704
704
  const m = () => {
705
- var g;
706
- (g = d.value) == null || g.submit();
705
+ var p;
706
+ (p = d.value) == null || p.submit();
707
707
  }, f = zt(() => {
708
708
  m();
709
709
  }, e.debounceTime);
710
- oe(() => {
710
+ re(() => {
711
711
  e.initEmit && m();
712
712
  }, []);
713
- const h = (g, S, T) => Me(T, (v) => p(g, v) !== p(S, v));
714
- Ce((g, S) => {
713
+ const h = (p, P, T) => Me(T, (v) => g(p, v) !== g(P, v));
714
+ Ce((p, P) => {
715
715
  if (e.searchMode !== Xe.AUTO)
716
716
  return;
717
717
  const T = Q(e.debounceKeys) > 0 ? e.debounceKeys : l;
718
- if (Q(T) > 0 && h(g, S, T)) {
718
+ if (Q(T) > 0 && h(p, P, T)) {
719
719
  f();
720
720
  return;
721
721
  }
@@ -799,27 +799,27 @@ const At = () => ({
799
799
  disableState: m,
800
800
  readonly: f,
801
801
  userOpe: h
802
- } = pn(), M = yn(), g = x(() => Ke(a.readonly) ? a.readonly : Ke(y[a.name]) ? y[a.name] : f.value), S = () => `${p(l == null ? void 0 : l.rulePrefixMap, o) || "\u8BF7\u8F93\u5165"}${a.label || ""}`, T = x(() => l != null && l.rulePrefixMap ? a.required === !0 && !a.rules ? [{
802
+ } = gn(), M = yn(), p = E(() => Ke(a.readonly) ? a.readonly : Ke(y[a.name]) ? y[a.name] : f.value), P = () => `${g(l == null ? void 0 : l.rulePrefixMap, o) || "\u8BF7\u8F93\u5165"}${a.label || ""}`, T = E(() => l != null && l.rulePrefixMap ? a.required === !0 && !a.rules ? [{
803
803
  required: !0,
804
- message: S()
805
- }] : a.rules ? F(a.rules, (w) => (w.required && !w.message && (w.message = S()), w)) : a.rules : a.rules), v = fn(a.name), C = M != null && M.pathList ? [...M.pathList, ...v] : v, k = (w) => {
804
+ message: P()
805
+ }] : a.rules ? L(a.rules, (w) => (w.required && !w.message && (w.message = P()), w)) : a.rules : a.rules), v = fn(a.name), C = M != null && M.pathList ? [...M.pathList, ...v] : v, k = (w) => {
806
806
  h.value = !0, ve(d, C, w);
807
- }, N = Y(Ot()), L = () => {
808
- const w = p(d, C);
807
+ }, N = Y(Ot()), R = () => {
808
+ const w = g(d, C);
809
809
  if (u.renderShow)
810
810
  return u.renderShow({
811
811
  value: w,
812
812
  record: d,
813
813
  path: C
814
814
  });
815
- const A = p(s, o);
815
+ const A = g(s, o);
816
816
  return A ? c(A, K({
817
817
  value: w
818
818
  }, a.fieldProps, {
819
819
  showProps: a.showProps
820
820
  }), u) : c("span", null, [w]);
821
821
  }, V = () => {
822
- const w = p(d, C), A = p(m, C);
822
+ const w = g(d, C), A = g(m, C);
823
823
  return u.renderInput ? u.renderInput({
824
824
  value: w,
825
825
  setValue: k,
@@ -827,7 +827,7 @@ const At = () => ({
827
827
  record: d,
828
828
  path: C
829
829
  }) : c(n, K(t(w, k, A), a.fieldProps), u);
830
- }, j = () => c(fe, null, [a.label, a.tip && c(kr, K({
830
+ }, B = () => c(fe, null, [a.label, a.tip && c(kr, K({
831
831
  content: a.tip,
832
832
  title: a.tip
833
833
  }, a.tipProps), null)]);
@@ -837,30 +837,30 @@ const At = () => ({
837
837
  name: C,
838
838
  rules: T.value
839
839
  }), {
840
- default: () => [g.value ? L() : V()],
841
- label: a.label || a.tip ? j : void 0,
840
+ default: () => [p.value ? R() : V()],
841
+ label: a.label || a.tip ? B : void 0,
842
842
  ...a.slots
843
843
  });
844
844
  }
845
- }), gn = on("access", void 0, !0), Nr = () => {
846
- const [e, t] = gn();
845
+ }), pn = on("access", void 0, !0), Nr = () => {
846
+ const [e, t] = pn();
847
847
  return { access: e, setAccess: t, delAccess: () => {
848
848
  t(void 0);
849
849
  } };
850
850
  }, co = () => {
851
- const [e, t] = gn();
851
+ const [e, t] = pn();
852
852
  return [e, t, () => {
853
853
  t(void 0);
854
854
  }];
855
- }, bn = Symbol("logon-user"), Ar = () => ge(bn), io = O((e, { slots: t }) => {
855
+ }, bn = Symbol("logon-user"), Ar = () => pe(bn), io = O((e, { slots: t }) => {
856
856
  const [n, o] = It(), [r, a] = It();
857
857
  return be(bn, { user: n, setUser: o, per: r, setPer: a, opts: {} }), () => {
858
858
  var l;
859
859
  return (l = t.default) == null ? void 0 : l.call(t);
860
860
  };
861
861
  }), fo = O((e, { slots: t, emit: n }) => {
862
- const { access: o } = Nr(), r = x(() => o && o.token);
863
- return oe(() => {
862
+ const { access: o } = Nr(), r = E(() => o && o.token);
863
+ return re(() => {
864
864
  r.value || n("toLogin");
865
865
  }, r), () => {
866
866
  var a;
@@ -870,7 +870,7 @@ const At = () => ({
870
870
  Add: "add",
871
871
  Edit: "edit",
872
872
  Delete: "delete"
873
- }, Or = (e, t) => !e || !t ? !1 : ee(t) ? Me(t, (n) => e[n]) : e[t], Sn = () => {
873
+ }, Or = (e, t) => !e || !t ? !1 : ne(t) ? Me(t, (n) => e[n]) : e[t], Sn = () => {
874
874
  const { per: e } = Ar() || { per: { menus: [], buttonMap: {} } }, t = mt();
875
875
  return (n, o) => {
876
876
  if (!n)
@@ -878,7 +878,7 @@ const At = () => ({
878
878
  let r = n;
879
879
  if (o != null && o.suffix) {
880
880
  const a = t.name ? t.name.toString() : "", u = (o == null ? void 0 : o.splitStr) || "_";
881
- r = ee(r) ? F(r, (l) => `${a}${u}${l}`) : `${a}${u}${r}`;
881
+ r = ne(r) ? L(r, (l) => `${a}${u}${l}`) : `${a}${u}${r}`;
882
882
  }
883
883
  return Or(e.buttonMap, r);
884
884
  };
@@ -895,7 +895,7 @@ const At = () => ({
895
895
  ...Dr()
896
896
  },
897
897
  setup: (e, { slots: t }) => {
898
- const n = Sn(), o = x(() => e.value ? n(e.value) : e.suffix ? n(e.suffix, { suffix: !0, splitStr: e.splitStr }) : !1);
898
+ const n = Sn(), o = E(() => e.value ? n(e.value) : e.suffix ? n(e.suffix, { suffix: !0, splitStr: e.splitStr }) : !1);
899
899
  return () => {
900
900
  var r;
901
901
  return o.value ? (r = t.default) == null ? void 0 : r.call(t) : null;
@@ -905,7 +905,7 @@ const At = () => ({
905
905
  function Kr(e) {
906
906
  return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !Ne(e);
907
907
  }
908
- const Lr = () => ({
908
+ const Fr = () => ({
909
909
  clsName: {
910
910
  type: String,
911
911
  default: "pro-operate"
@@ -925,15 +925,15 @@ const Lr = () => ({
925
925
  }
926
926
  }), ht = O({
927
927
  props: {
928
- ...Lr()
928
+ ...Fr()
929
929
  },
930
930
  setup: (e, {
931
931
  slots: t
932
932
  }) => {
933
- const n = Pn(), o = x(() => {
934
- const s = G(e.items, (y) => n(y.per, y.perSuffix, e.splitStr) ? W(y.show) ? y.show() : Ke(y.show) ? y.show : !0 : !1), d = F(s, (y) => lt(e.itemState, y.value) ? {
933
+ const n = Pn(), o = E(() => {
934
+ const s = G(e.items, (y) => n(y.per, y.perSuffix, e.splitStr) ? W(y.show) ? y.show() : Ke(y.show) ? y.show : !0 : !1), d = L(s, (y) => lt(e.itemState, y.value) ? {
935
935
  ...y,
936
- ...p(e.itemState, y.value)
936
+ ...g(e.itemState, y.value)
937
937
  } : y);
938
938
  return Ht(d, (y) => y.sort);
939
939
  }), r = (s) => {
@@ -942,7 +942,7 @@ const Lr = () => ({
942
942
  }, a = J(), u = e.elementKey ? a(e.elementKey) : void 0, l = a(U.TooltipKey);
943
943
  return () => c("div", {
944
944
  class: e.clsName
945
- }, [F(o.value, (s) => {
945
+ }, [L(o.value, (s) => {
946
946
  const d = W(s.disabled) ? s.disabled() : s.disabled, y = W(s.loading) ? s.loading() : s.loading, m = W(s.label) ? s.label() : s.label, f = W(s.extraProps) ? s.extraProps() : s.extraProps, h = {
947
947
  ...D(s, "show", "disabled", "element"),
948
948
  disabled: d
@@ -972,7 +972,7 @@ const Lr = () => ({
972
972
  }, [m]);
973
973
  })]);
974
974
  }
975
- }), Fr = () => ({
975
+ }), Lr = () => ({
976
976
  clsName: {
977
977
  type: String,
978
978
  default: "pro-table-toolbar-column"
@@ -995,7 +995,7 @@ const Lr = () => ({
995
995
  }
996
996
  }), Rr = O({
997
997
  props: {
998
- ...Fr()
998
+ ...Lr()
999
999
  },
1000
1000
  setup: (e, {
1001
1001
  slots: t
@@ -1011,12 +1011,12 @@ const Lr = () => ({
1011
1011
  ue(u.value, (v) => {
1012
1012
  d[v] = !0;
1013
1013
  });
1014
- }, f = x(() => se(u.value, (v, C) => ({
1014
+ }, f = E(() => se(u.value, (v, C) => ({
1015
1015
  ...v,
1016
1016
  [C]: !0
1017
1017
  }), {})), h = (v) => Ir(v, e.signName);
1018
- oe(() => {
1019
- u.value = F(G(a.value, (v) => {
1018
+ re(() => {
1019
+ u.value = L(G(a.value, (v) => {
1020
1020
  var C;
1021
1021
  return e.useSelectedStatus && lt(d, v.dataIndex) ? d[v.dataIndex] : ((C = h(v)) == null ? void 0 : C.initShow) !== !1;
1022
1022
  }), (v) => v.dataIndex);
@@ -1024,32 +1024,32 @@ const Lr = () => ({
1024
1024
  var v;
1025
1025
  s(), m(), (v = e.onColumnSelectChange) == null || v.call(e, u.value);
1026
1026
  }, u);
1027
- const M = x(() => {
1027
+ const M = E(() => {
1028
1028
  const v = Wt(a.value, (k) => {
1029
1029
  var N;
1030
- return (N = h(k)) != null && N.disabled ? !0 : p(f.value, k.dataIndex);
1030
+ return (N = h(k)) != null && N.disabled ? !0 : g(f.value, k.dataIndex);
1031
1031
  }), C = Me(a.value, (k) => {
1032
1032
  var N;
1033
- return (N = h(k)) != null && N.disabled ? !0 : p(f.value, k.dataIndex);
1033
+ return (N = h(k)) != null && N.disabled ? !0 : g(f.value, k.dataIndex);
1034
1034
  });
1035
1035
  return {
1036
1036
  checked: v,
1037
1037
  indeterminate: v ? !1 : C
1038
1038
  };
1039
- }), g = (v) => {
1039
+ }), p = (v) => {
1040
1040
  var k;
1041
- (De(v) ? (k = v.target) == null ? void 0 : k.checked : v) ? u.value = F(a.value, (N) => N.dataIndex) : u.value = F(G(a.value, (N) => {
1042
- var L;
1043
- return (L = h(N)) != null && L.disabled ? !0 : (y(N.dataIndex), !1);
1041
+ (De(v) ? (k = v.target) == null ? void 0 : k.checked : v) ? u.value = L(a.value, (N) => N.dataIndex) : u.value = L(G(a.value, (N) => {
1042
+ var R;
1043
+ return (R = h(N)) != null && R.disabled ? !0 : (y(N.dataIndex), !1);
1044
1044
  }), (N) => N.dataIndex);
1045
- }, S = () => {
1046
- u.value = F(G(a.value, (v) => {
1045
+ }, P = () => {
1046
+ u.value = L(G(a.value, (v) => {
1047
1047
  var C;
1048
1048
  return ((C = h(v)) == null ? void 0 : C.initShow) === !1 ? (y(v.dataIndex), !1) : !0;
1049
1049
  }), (v) => v.dataIndex);
1050
1050
  }, T = (v, C) => {
1051
1051
  var N;
1052
- (De(C) ? (N = C.target) == null ? void 0 : N.checked : C) ? u.value = [...u.value, v.dataIndex] : u.value = G(u.value, (L) => v.dataIndex === L ? (y(v.dataIndex), !1) : !0);
1052
+ (De(C) ? (N = C.target) == null ? void 0 : N.checked : C) ? u.value = [...u.value, v.dataIndex] : u.value = G(u.value, (R) => v.dataIndex === R ? (y(v.dataIndex), !1) : !0);
1053
1053
  };
1054
1054
  return () => o ? c(o, K({
1055
1055
  trigger: "click"
@@ -1066,16 +1066,16 @@ const Lr = () => ({
1066
1066
  key: l.value,
1067
1067
  checked: M.value.checked,
1068
1068
  indeterminate: M.value.indeterminate,
1069
- onChange: g
1069
+ onChange: p
1070
1070
  }, {
1071
1071
  default: () => [Ae("\u5217\u5C55\u793A")]
1072
1072
  }), c("a", {
1073
- onClick: S
1073
+ onClick: P
1074
1074
  }, [Ae("\u91CD\u7F6E")])]), c("div", {
1075
1075
  key: l.value,
1076
1076
  class: `${e.clsName}-list`
1077
- }, [F(a.value, (v) => {
1078
- const C = h(v), k = p(f.value, v.dataIndex, !1);
1077
+ }, [L(a.value, (v) => {
1078
+ const C = h(v), k = g(f.value, v.dataIndex, !1);
1079
1079
  return c(r, {
1080
1080
  checked: k,
1081
1081
  disabled: C == null ? void 0 : C.disabled,
@@ -1089,7 +1089,7 @@ const Lr = () => ({
1089
1089
  ...D(t, "default")
1090
1090
  }) : null;
1091
1091
  }
1092
- }), Cn = Symbol("pro-table"), $r = () => ge(Cn), jr = (e) => {
1092
+ }), Cn = Symbol("pro-table"), $r = () => pe(Cn), jr = (e) => {
1093
1093
  be(Cn, e);
1094
1094
  }, Dt = () => ({
1095
1095
  clsName: {
@@ -1147,49 +1147,49 @@ const Lr = () => ({
1147
1147
  elementMap: r
1148
1148
  } = le(), a = e.elementMap || r, {
1149
1149
  router: u
1150
- } = xe(), l = p(r, U.TableKey), s = () => ({
1150
+ } = xe(), l = g(r, U.TableKey), s = () => ({
1151
1151
  title: "\u5E8F\u53F7",
1152
1152
  dataIndex: "serialNumber",
1153
1153
  width: 80,
1154
1154
  ...e.column,
1155
1155
  ...Ke(e.serialNumber) ? void 0 : e.serialNumber,
1156
1156
  customRender: ({
1157
- index: j
1157
+ index: B
1158
1158
  }) => {
1159
1159
  var w, A;
1160
- return ((w = e.paginationState) == null ? void 0 : w.page) && ((A = e.paginationState) == null ? void 0 : A.pageSize) ? e.paginationState.pageSize * (e.paginationState.page - 1) + j + 1 : j + 1;
1160
+ return ((w = e.paginationState) == null ? void 0 : w.page) && ((A = e.paginationState) == null ? void 0 : A.pageSize) ? e.paginationState.pageSize * (e.paginationState.page - 1) + B + 1 : B + 1;
1161
1161
  }
1162
- }), d = (j, w) => {
1162
+ }), d = (B, w) => {
1163
1163
  var z;
1164
1164
  if (e.operateItemClickMap && e.operateItemClickMap[w.value]) {
1165
- e.operateItemClickMap[w.value](j, w);
1165
+ e.operateItemClickMap[w.value](B, w);
1166
1166
  return;
1167
1167
  }
1168
1168
  const A = w.routeOpts;
1169
1169
  if (A) {
1170
- W(A) ? u.push(A(j)) : u.push({
1170
+ W(A) ? u.push(A(B)) : u.push({
1171
1171
  name: A.name,
1172
- query: Z(j, A.query)
1172
+ query: ee(B, A.query)
1173
1173
  });
1174
1174
  return;
1175
1175
  }
1176
- (z = w.onClick) == null || z.call(w, j);
1176
+ (z = w.onClick) == null || z.call(w, B);
1177
1177
  }, y = he(t, "operate"), m = () => {
1178
- const j = e.operate, w = F(j.items, (A) => ({
1179
- ...p(e.operateItemState, A.value),
1178
+ const B = e.operate, w = L(B.items, (A) => ({
1179
+ ...g(e.operateItemState, A.value),
1180
1180
  ...A,
1181
- ...p(j.itemState, A.value)
1181
+ ...g(B.itemState, A.value)
1182
1182
  }));
1183
1183
  return {
1184
1184
  ...e.column,
1185
1185
  title: "\u64CD\u4F5C",
1186
1186
  dataIndex: "operate",
1187
1187
  fixed: "right",
1188
- ...j.column,
1188
+ ...B.column,
1189
1189
  customRender: ({
1190
1190
  record: A
1191
1191
  }) => {
1192
- const z = F(w, (i) => ({
1192
+ const z = L(w, (i) => ({
1193
1193
  ...i,
1194
1194
  show: W(i.show) ? i.show(A) : i.show,
1195
1195
  disabled: W(i.disabled) ? i.disabled(A) : i.disabled,
@@ -1199,50 +1199,50 @@ const Lr = () => ({
1199
1199
  onClick: () => d(A, i),
1200
1200
  tip: W(i.tip) ? i.tip(A) : i.tip,
1201
1201
  tipProps: W(i.tipProps) ? i.tipProps(A) : i.tipProps
1202
- })), b = se(Y(y), (i, I) => ({
1202
+ })), S = se(Y(y), (i, I) => ({
1203
1203
  ...i,
1204
- [I]: (E) => {
1205
- var B;
1206
- return (B = y[I]) == null ? void 0 : B.call(y, A, E);
1204
+ [I]: (x) => {
1205
+ var $;
1206
+ return ($ = y[I]) == null ? void 0 : $.call(y, A, x);
1207
1207
  }
1208
1208
  }), {});
1209
1209
  return c(ht, {
1210
1210
  class: `${e.clsName}-operate`,
1211
1211
  items: z,
1212
- elementKey: j.elementKey || U.TableOperateKey
1213
- }, b);
1212
+ elementKey: B.elementKey || U.TableOperateKey
1213
+ }, S);
1214
1214
  }
1215
1215
  };
1216
- }, f = _([]), h = x(() => {
1217
- var j;
1218
- return !!((j = e.toolbar) != null && j.columnSetting);
1219
- }), M = Fn(e, "columns"), g = x(() => {
1216
+ }, f = _([]), h = E(() => {
1217
+ var B;
1218
+ return !!((B = e.toolbar) != null && B.columnSetting);
1219
+ }), M = Ln(e, "columns"), p = E(() => {
1220
1220
  if (!h.value)
1221
1221
  return e.columns;
1222
- const j = se(f.value, (w, A) => ({
1222
+ const B = se(f.value, (w, A) => ({
1223
1223
  ...w,
1224
1224
  [A]: !0
1225
1225
  }), {});
1226
- return G(e.columns, (w) => p(j, w.dataIndex));
1227
- }), S = (j) => F(j, (w) => {
1226
+ return G(e.columns, (w) => g(B, w.dataIndex));
1227
+ }), P = (B) => L(B, (w) => {
1228
1228
  const A = {
1229
1229
  ...e.column,
1230
1230
  ...w
1231
1231
  }, z = e.convertColumn ? e.convertColumn(A) : A;
1232
- return w.children && Q(w.children) > 0 ? (z.children = S(w.children), z) : (w.customRender || (z.customRender = ({
1233
- value: b
1234
- }) => typeof b > "u" || b === null || b === "" ? e.columnEmptyText : gt(a, w, {
1235
- value: b
1232
+ return w.children && Q(w.children) > 0 ? (z.children = P(w.children), z) : (w.customRender || (z.customRender = ({
1233
+ value: S
1234
+ }) => typeof S > "u" || S === null || S === "" ? e.columnEmptyText : pt(a, w, {
1235
+ value: S
1236
1236
  }, {
1237
1237
  render: "tableRender"
1238
- }) || b), z);
1239
- }), T = x(() => {
1240
- const j = et(g.value, e.columnState, e.columnState2), w = S(j);
1238
+ }) || S), z);
1239
+ }), T = E(() => {
1240
+ const B = et(p.value, e.columnState, e.columnState2), w = P(B);
1241
1241
  return e.serialNumber && w.unshift(s()), e.operate && e.operate.items && Me(e.operate.items, (A) => A.show) && w.push(m()), w;
1242
- }), v = x(() => {
1242
+ }), v = E(() => {
1243
1243
  var w, A;
1244
- const j = e.dataSource;
1245
- return j && (((w = e.mergeOpts) == null ? void 0 : w.rowNames) || ((A = e.mergeOpts) == null ? void 0 : A.colNames)) && rr(j, e.mergeOpts), j;
1244
+ const B = e.dataSource;
1245
+ return B && (((w = e.mergeOpts) == null ? void 0 : w.rowNames) || ((A = e.mergeOpts) == null ? void 0 : A.colNames)) && rr(B, e.mergeOpts), B;
1246
1246
  }), C = _();
1247
1247
  jr({
1248
1248
  columns: T,
@@ -1253,40 +1253,40 @@ const Lr = () => ({
1253
1253
  ...e.provideExtra
1254
1254
  }), n(Ie(e.tableMethods || [], C));
1255
1255
  const k = _(), N = _(0);
1256
- Yt(k, (j) => {
1257
- const w = p(j, [0, "contentRect"]), A = window.getComputedStyle(k.value);
1256
+ Yt(k, (B) => {
1257
+ const w = g(B, [0, "contentRect"]), A = window.getComputedStyle(k.value);
1258
1258
  if (w.height && A) {
1259
- const z = A.getPropertyValue("margin-bottom"), b = parseInt(z.replace("px", ""));
1260
- N.value = w.height + b;
1259
+ const z = A.getPropertyValue("margin-bottom"), S = parseInt(z.replace("px", ""));
1260
+ N.value = w.height + S;
1261
1261
  }
1262
1262
  });
1263
- const L = Y(Dt()), V = he(t, "columnSetting");
1263
+ const R = Y(Dt()), V = he(t, "columnSetting");
1264
1264
  return () => {
1265
- var i, I, E;
1265
+ var i, I, x;
1266
1266
  if (!l)
1267
1267
  return null;
1268
- const j = h.value ? c(Rr, (i = e.toolbar) == null ? void 0 : i.columnSetting, V) : null, w = (I = t.toolbar) == null ? void 0 : I.call(t), A = (E = t.toolbarExtra) == null ? void 0 : E.call(t, [j]), z = [e.clsName];
1269
- let b = "";
1270
- return (Re(w) || Re(A) || h.value) && (z.push("has-header"), b = `${e.clsName}-toolbar-valid`), c("div", K({
1268
+ const B = h.value ? c(Rr, (i = e.toolbar) == null ? void 0 : i.columnSetting, V) : null, w = (I = t.toolbar) == null ? void 0 : I.call(t), A = (x = t.toolbarExtra) == null ? void 0 : x.call(t, [B]), z = [e.clsName];
1269
+ let S = "";
1270
+ return (Re(w) || Re(A) || h.value) && (z.push("has-header"), S = `${e.clsName}-toolbar-valid`), c("div", K({
1271
1271
  class: z,
1272
1272
  style: `--pro-table-toolbar-hei: ${N.value}px`
1273
- }, Z(o, "class")), [c("div", {
1273
+ }, ee(o, "class")), [c("div", {
1274
1274
  ref: k,
1275
- class: `${e.clsName}-toolbar ${b}`
1275
+ class: `${e.clsName}-toolbar ${S}`
1276
1276
  }, [c("div", {
1277
1277
  class: `${e.clsName}-toolbar-start`
1278
1278
  }, [w]), c("div", {
1279
1279
  class: `${e.clsName}-toolbar-extra`
1280
- }, [A || j])]), c(l, K({
1280
+ }, [A || B])]), c(l, K({
1281
1281
  ref: C
1282
- }, D(o, "class"), D(e, L), {
1282
+ }, D(o, "class"), D(e, R), {
1283
1283
  mergeOpts: e.mergeOpts,
1284
1284
  dataSource: v.value,
1285
1285
  columns: T.value
1286
1286
  }), t)]);
1287
1287
  };
1288
1288
  }
1289
- }), Mn = Symbol("pro-layout"), qe = () => ge(Mn), Br = () => ({
1289
+ }), Mn = Symbol("pro-layout"), qe = () => pe(Mn), Br = () => ({
1290
1290
  includes: {
1291
1291
  type: Array,
1292
1292
  default: []
@@ -1310,23 +1310,23 @@ const Lr = () => ({
1310
1310
  } = qe(), {
1311
1311
  router: l,
1312
1312
  route: s
1313
- } = xe(), d = x(() => {
1313
+ } = xe(), d = E(() => {
1314
1314
  const m = ct(t.value, (f) => f.keep ? Q(f.children) > 0 ? Wt(f.children, (h) => h.hide) : !0 : !1);
1315
1315
  return zn(m, Hn);
1316
- }), y = x(() => {
1316
+ }), y = E(() => {
1317
1317
  const m = Y(d.value);
1318
1318
  if (!r.value) {
1319
1319
  const {
1320
1320
  parentList: M
1321
- } = _e(t.value, (S) => S.value === a(s), void 0, []), g = G(M, (S) => {
1322
- const T = u(S);
1321
+ } = _e(t.value, (P) => P.value === a(s), void 0, []), p = G(M, (P) => {
1322
+ const T = u(P);
1323
1323
  return l.hasRoute(T);
1324
1324
  });
1325
- return [...m, ...e.includes, ...F(g, (S) => S.value)];
1325
+ return [...m, ...e.includes, ...L(p, (P) => P.value)];
1326
1326
  }
1327
1327
  let f = n.value;
1328
1328
  e.tagsCache || (f = G(n.value, (M) => M.keep));
1329
- let h = F(f, (M) => u(M));
1329
+ let h = L(f, (M) => u(M));
1330
1330
  return o.value && (h = G(h, (M) => M !== s.name)), [...e.includes, ...h];
1331
1331
  });
1332
1332
  return () => c(dr, null, {
@@ -1353,6 +1353,9 @@ const Lr = () => ({
1353
1353
  },
1354
1354
  findFirstMenu: {
1355
1355
  type: Function
1356
+ },
1357
+ onItemClick: {
1358
+ type: Function
1356
1359
  }
1357
1360
  }), Vr = O({
1358
1361
  props: {
@@ -1370,36 +1373,46 @@ const Lr = () => ({
1370
1373
  } = qe(), l = ye({
1371
1374
  ctxMenuPos: null,
1372
1375
  ctxMenuItem: null
1373
- }), s = (i) => e.isHideClose ? e.isHideClose(i) : !1, d = x(() => {
1376
+ }), s = (i) => e.isHideClose ? e.isHideClose(i) : !1, d = E(() => {
1374
1377
  const i = u(n);
1375
- return p(o.value, i);
1378
+ return g(o.value, i);
1376
1379
  });
1377
- oe(() => {
1378
- const i = d.value;
1379
- if (!i)
1380
+ re((i, I) => {
1381
+ const x = d.value;
1382
+ if (!x)
1380
1383
  return;
1381
- let I = ut(r.value, (E) => E.value === i.value);
1382
- if (I) {
1383
- if (i.hide) {
1384
- const E = Ge(I.query) || "{}", B = Ge(n.query) || "{}";
1385
- if (E !== B) {
1386
- const te = {
1387
- ...i,
1388
- query: n.query
1389
- };
1390
- r.value = F(F(r.value, (ne) => ne.value === i.value ? te : ne)), M(te);
1391
- }
1392
- }
1393
- } else {
1394
- const E = i.hide ? {
1395
- ...i,
1384
+ let $ = ut(r.value, (F) => F.value === x.value);
1385
+ if (!$) {
1386
+ r.value = [...r.value, {
1387
+ ...x,
1396
1388
  query: n.query
1397
- } : i;
1398
- r.value = [...r.value, E];
1389
+ }];
1390
+ return;
1391
+ }
1392
+ const Z = Ge($.query) || "{}", te = Ge(n.query) || "{}";
1393
+ if (Z !== te) {
1394
+ const F = {
1395
+ ...x,
1396
+ query: n.query
1397
+ };
1398
+ r.value = L(L(r.value, (b) => b.value === x.value ? F : b)), i !== I && M(F);
1399
1399
  }
1400
- }, n);
1400
+ }, () => n.name), re((i, I) => {
1401
+ const x = i == null ? void 0 : i[0], $ = I == null ? void 0 : I[0];
1402
+ if (x !== $)
1403
+ return;
1404
+ const Z = d.value;
1405
+ !Z || (r.value = L(L(r.value, (te) => te.value === Z.value ? {
1406
+ ...Z,
1407
+ query: n.query
1408
+ } : te)));
1409
+ }, [() => n.name, () => n.query]);
1401
1410
  const y = (i) => {
1402
- if (i.hide) {
1411
+ if (e.onItemClick) {
1412
+ e.onItemClick(i);
1413
+ return;
1414
+ }
1415
+ if (t.hasRoute(i.value)) {
1403
1416
  t.push({
1404
1417
  name: i.value,
1405
1418
  query: i.query
@@ -1411,14 +1424,14 @@ const Lr = () => ({
1411
1424
  var I;
1412
1425
  if (!s(i)) {
1413
1426
  if (i.value === ((I = d.value) == null ? void 0 : I.value)) {
1414
- const E = Wn(r.value, (B) => B.value === d.value.value);
1415
- r.value[E + 1] ? y(r.value[E + 1]) : r.value[E - 1] && y(r.value[E - 1]);
1427
+ const x = Wn(r.value, ($) => $.value === d.value.value);
1428
+ r.value[x + 1] ? y(r.value[x + 1]) : r.value[x - 1] && y(r.value[x - 1]);
1416
1429
  }
1417
- r.value = G(r.value, (E) => E.value !== i.value);
1430
+ r.value = G(r.value, (x) => x.value !== i.value);
1418
1431
  }
1419
1432
  }, f = (i) => {
1420
1433
  var I;
1421
- i.value !== ((I = d.value) == null ? void 0 : I.value) && y(i), r.value = G(r.value, (E) => E.value === i.value ? !0 : s(E));
1434
+ i.value !== ((I = d.value) == null ? void 0 : I.value) && y(i), r.value = G(r.value, (x) => x.value === i.value ? !0 : s(x));
1422
1435
  }, h = () => {
1423
1436
  if (!d.value || !s(d.value)) {
1424
1437
  const i = ut(r.value, (I) => s(I));
@@ -1427,48 +1440,48 @@ const Lr = () => ({
1427
1440
  r.value = G(r.value, (i) => s(i));
1428
1441
  }, M = (i) => {
1429
1442
  a(i);
1430
- }, g = (i, I) => {
1443
+ }, p = (i, I) => {
1431
1444
  i.preventDefault();
1432
- const E = i.target;
1433
- if (!E)
1445
+ const x = i.target;
1446
+ if (!x)
1434
1447
  return;
1435
- const B = E.getBoundingClientRect();
1448
+ const $ = x.getBoundingClientRect();
1436
1449
  l.ctxMenuPos = {
1437
- x: B.x + B.width / 2,
1438
- y: B.y + B.height
1450
+ x: $.x + $.width / 2,
1451
+ y: $.y + $.height
1439
1452
  }, l.ctxMenuItem = I;
1440
- }, S = (i) => {
1453
+ }, P = (i) => {
1441
1454
  i.preventDefault(), i.stopPropagation();
1442
1455
  }, T = () => {
1443
1456
  l.ctxMenuItem = null;
1444
1457
  }, v = _(), [C, k] = Ze(), N = (i) => {
1445
- const I = se(r.value, (E, B) => ({
1446
- ...E,
1447
- [B.value]: B
1458
+ const I = se(r.value, (x, $) => ({
1459
+ ...x,
1460
+ [$.value]: $
1448
1461
  }), {});
1449
- r.value = F(i, (E) => p(I, E)), k();
1462
+ r.value = L(i, (x) => g(I, x)), k();
1450
1463
  };
1451
- oe(() => {
1464
+ re(() => {
1452
1465
  !v.value || !e.onDragRegister || e.onDragRegister({
1453
1466
  dom: v.value,
1454
1467
  dataIdAttr: "data-url",
1455
1468
  onDragEnd: N
1456
1469
  });
1457
1470
  }, [v]);
1458
- const L = _();
1459
- oe(() => {
1471
+ const R = _();
1472
+ re(() => {
1460
1473
  var I;
1461
- const i = (I = L.value) == null ? void 0 : I.originRef;
1474
+ const i = (I = R.value) == null ? void 0 : I.originRef;
1462
1475
  !i || i == null || i.handleOpen();
1463
- }, L);
1476
+ }, R);
1464
1477
  const V = (i) => {
1465
1478
  i || (l.ctxMenuItem = null);
1466
- }, j = (i) => {
1479
+ }, B = (i) => {
1467
1480
  i === "refresh" ? M(l.ctxMenuItem) : i === "close" ? m(l.ctxMenuItem) : i === "close-other" ? f(l.ctxMenuItem) : i === "close-all" && h(), T();
1468
- }, w = x(() => {
1469
- var I, E;
1481
+ }, w = E(() => {
1482
+ var I, x;
1470
1483
  const i = [];
1471
- return ((I = d.value) == null ? void 0 : I.value) === ((E = l.ctxMenuItem) == null ? void 0 : E.value) && i.push({
1484
+ return ((I = d.value) == null ? void 0 : I.value) === ((x = l.ctxMenuItem) == null ? void 0 : x.value) && i.push({
1472
1485
  label: "\u5237\u65B0",
1473
1486
  value: "refresh"
1474
1487
  }), s(l.ctxMenuItem) || i.push({
@@ -1480,29 +1493,29 @@ const Lr = () => ({
1480
1493
  }, {
1481
1494
  label: "\u5168\u90E8\u5173\u95ED",
1482
1495
  value: "close-all"
1483
- }), F(i, (B) => e.covertMenuItem ? e.covertMenuItem(B) : B);
1484
- }), A = J(), z = A(U.DropdownKey), b = A(U.ScrollKey) || "div";
1485
- return () => c(fe, null, [c(b, {
1496
+ }), L(i, ($) => e.covertMenuItem ? e.covertMenuItem($) : $);
1497
+ }), A = J(), z = A(U.DropdownKey), S = A(U.ScrollKey) || "div";
1498
+ return () => c(fe, null, [c(S, {
1486
1499
  class: "pro-layout-tabs"
1487
1500
  }, {
1488
1501
  default: () => [c("div", {
1489
1502
  class: "pro-layout-tabs-root",
1490
1503
  ref: v,
1491
1504
  key: C.value
1492
- }, [F(r.value, (i) => {
1493
- var B, te;
1494
- const I = s(i), E = i.value === ((B = d.value) == null ? void 0 : B.value);
1505
+ }, [L(r.value, (i) => {
1506
+ var $, Z;
1507
+ const I = s(i), x = i.value === (($ = d.value) == null ? void 0 : $.value);
1495
1508
  return c("div", {
1496
- class: ["pro-layout-tabs-item", E ? "active" : ""],
1509
+ class: ["pro-layout-tabs-item", x ? "active" : ""],
1497
1510
  "data-url": i.value,
1498
1511
  onClick: () => y(i),
1499
- oncontextmenu: (ne) => g(ne, i)
1500
- }, [((te = i.itemLabel) == null ? void 0 : te.call(i, i)) || i.label, !I && c("div", {
1512
+ oncontextmenu: (te) => p(te, i)
1513
+ }, [((Z = i.itemLabel) == null ? void 0 : Z.call(i, i)) || i.label, !I && c("div", {
1501
1514
  class: "pro-layout-tabs-item-close",
1502
- onClick: (ne) => {
1503
- ne.preventDefault(), ne.stopPropagation(), m(i);
1515
+ onClick: (te) => {
1516
+ te.preventDefault(), te.stopPropagation(), m(i);
1504
1517
  },
1505
- oncontextmenu: S
1518
+ oncontextmenu: P
1506
1519
  }, [Ae("\u2715")])]);
1507
1520
  })])]
1508
1521
  }), l.ctxMenuItem && l.ctxMenuPos && c(Ut, {
@@ -1512,11 +1525,11 @@ const Lr = () => ({
1512
1525
  class: "pro-layout-tabs-menus",
1513
1526
  style: `left:${l.ctxMenuPos.x}px;top:${l.ctxMenuPos.y}px`
1514
1527
  }, [c(z, {
1515
- ref: L,
1528
+ ref: R,
1516
1529
  trigger: "click",
1517
1530
  options: w.value,
1518
1531
  hideOnClick: !1,
1519
- onCommand: j,
1532
+ onCommand: B,
1520
1533
  onVisibleChange: V
1521
1534
  }, {
1522
1535
  default: () => [c("div", null, null)]
@@ -1536,7 +1549,7 @@ const Lr = () => ({
1536
1549
  const t = _(), n = ye({
1537
1550
  imgStr: ""
1538
1551
  });
1539
- return oe(() => {
1552
+ return re(() => {
1540
1553
  if (!t.value)
1541
1554
  return;
1542
1555
  let o = document.createElement("canvas");
@@ -1641,86 +1654,86 @@ const Lr = () => ({
1641
1654
  slots: t,
1642
1655
  attrs: n
1643
1656
  }) => {
1644
- var ne, R;
1657
+ var te, F;
1645
1658
  const o = J(), r = o(U.MenusKey), a = o(U.ScrollKey) || "div", {
1646
1659
  router: u,
1647
1660
  route: l
1648
- } = xe(), s = x(() => {
1649
- var P;
1661
+ } = xe(), s = E(() => {
1662
+ var b;
1650
1663
  return Xt(e.menus, (q) => {
1651
1664
  var Se, Pt, Ct, Mt;
1652
- const X = ((Se = e.fieldNames) == null ? void 0 : Se.value) || "value", ae = ((Pt = e.fieldNames) == null ? void 0 : Pt.label) || "label", ie = ((Ct = e.fieldNames) == null ? void 0 : Ct.hide) || "hide", de = ((Mt = e.fieldNames) == null ? void 0 : Mt.keep) || "keep";
1665
+ const X = ((Se = e.fieldNames) == null ? void 0 : Se.value) || "value", oe = ((Pt = e.fieldNames) == null ? void 0 : Pt.label) || "label", ie = ((Ct = e.fieldNames) == null ? void 0 : Ct.hide) || "hide", de = ((Mt = e.fieldNames) == null ? void 0 : Mt.keep) || "keep";
1653
1666
  return {
1654
- ...D(q, X, ae, ie, de),
1655
- value: p(q, X),
1656
- label: p(q, ae),
1657
- hide: p(q, ie),
1658
- keep: p(q, de)
1667
+ ...D(q, X, oe, ie, de),
1668
+ value: g(q, X),
1669
+ label: g(q, oe),
1670
+ hide: g(q, ie),
1671
+ keep: g(q, de)
1659
1672
  };
1660
1673
  }, {
1661
- children: ((P = e.fieldNames) == null ? void 0 : P.children) || "children",
1674
+ children: ((b = e.fieldNames) == null ? void 0 : b.children) || "children",
1662
1675
  childrenName: "children"
1663
1676
  });
1664
- }), d = x(() => ar(s.value, (P) => !P.hide)), y = x(() => xt(s.value)), m = x(() => xt(d.value)), f = x(() => ct(s.value, (P) => D(P, "children"))), h = (P) => e.convertName ? e.convertName(P, {
1677
+ }), d = E(() => ar(s.value, (b) => !b.hide)), y = E(() => xt(s.value)), m = E(() => xt(d.value)), f = E(() => ct(s.value, (b) => D(b, "children"))), h = (b) => e.convertName ? e.convertName(b, {
1665
1678
  menuTopMap: y.value
1666
- }) : P.name, M = (P) => e.convertValue ? e.convertValue(P) : P.value, g = x(() => {
1679
+ }) : b.name, M = (b) => e.convertValue ? e.convertValue(b) : b.value, p = E(() => {
1667
1680
  if (e.findCurrentTopName)
1668
1681
  return e.findCurrentTopName(l, y.value);
1669
- const P = h(l);
1670
- return y.value[P];
1671
- }), S = x(() => g.value ? ut(d.value, (P) => P.value === g.value) : null), T = x(() => !!(S.value && S.value.children && Q(S.value.children) > 0)), v = x(() => {
1682
+ const b = h(l);
1683
+ return y.value[b];
1684
+ }), P = E(() => p.value ? ut(d.value, (b) => b.value === p.value) : null), T = E(() => !!(P.value && P.value.children && Q(P.value.children) > 0)), v = E(() => {
1672
1685
  if (e.findActiveKey)
1673
1686
  return e.findActiveKey(l, y.value);
1674
- const P = h(l);
1675
- if (m.value[P])
1676
- return P;
1687
+ const b = h(l);
1688
+ if (m.value[b])
1689
+ return b;
1677
1690
  const {
1678
1691
  parentList: q
1679
- } = _e(s.value, (ae) => ae.value === P, void 0, []), X = _n(q, (ae) => !ae.hide);
1680
- return (X == null ? void 0 : X.value) || P;
1681
- }), C = (P) => {
1682
- e.onMenuItemClick ? e.onMenuItemClick(P) : u.openMenu(P);
1683
- }, k = (P) => {
1684
- const q = _e(d.value, (X) => X.value === P.value).target;
1692
+ } = _e(s.value, (oe) => oe.value === b, void 0, []), X = _n(q, (oe) => !oe.hide);
1693
+ return (X == null ? void 0 : X.value) || b;
1694
+ }), C = (b) => {
1695
+ e.onMenuItemClick ? e.onMenuItemClick(b) : u.openMenu(b);
1696
+ }, k = (b) => {
1697
+ const q = _e(d.value, (X) => X.value === b.value).target;
1685
1698
  C(q);
1686
- }, N = x(() => !!e.tabs), L = () => {
1699
+ }, N = E(() => !!e.tabs), R = () => {
1687
1700
  var q;
1688
- let P = (q = e.tabs) == null ? void 0 : q.sessionKey;
1689
- return P === void 0 && (P = "pro-layout-tabs"), P;
1690
- }, V = ((R = (ne = e.tabs) == null ? void 0 : ne.findFirstMenu) == null ? void 0 : R.call(ne, d.value)) || Qt(d.value, (P) => !P.children || Q(P.children) <= 0), w = _((() => {
1701
+ let b = (q = e.tabs) == null ? void 0 : q.sessionKey;
1702
+ return b === void 0 && (b = "pro-layout-tabs"), b;
1703
+ }, V = ((F = (te = e.tabs) == null ? void 0 : te.findFirstMenu) == null ? void 0 : F.call(te, d.value)) || Qt(d.value, (b) => !b.children || Q(b.children) <= 0), w = _((() => {
1691
1704
  if (!N.value)
1692
1705
  return [];
1693
- const P = L();
1706
+ const b = R();
1694
1707
  let q = [];
1695
- if (P) {
1696
- const X = window.sessionStorage.getItem(P), ae = X ? it(X) : [];
1697
- q = F(ae, (ie) => ({
1698
- ...p(f.value, ie.name),
1708
+ if (b) {
1709
+ const X = window.sessionStorage.getItem(b), oe = X ? it(X) : [];
1710
+ q = L(oe, (ie) => ({
1711
+ ...g(f.value, ie.name),
1699
1712
  query: ie.query
1700
1713
  }));
1701
1714
  }
1702
1715
  return Q(q) <= 0 && V && (q = [V]), q;
1703
- })()), A = (P) => P.value === (V == null ? void 0 : V.value), z = (P) => {
1704
- w.value = G(w.value, (q) => q.value !== P);
1716
+ })()), A = (b) => b.value === (V == null ? void 0 : V.value), z = (b) => {
1717
+ w.value = G(w.value, (q) => q.value !== b);
1705
1718
  };
1706
1719
  Ce(() => {
1707
- const P = L();
1708
- if (!P)
1720
+ const b = R();
1721
+ if (!b)
1709
1722
  return;
1710
- const q = F(w.value, (X) => ({
1723
+ const q = L(w.value, (X) => ({
1711
1724
  name: X.value,
1712
1725
  query: X.query
1713
1726
  }));
1714
- window.sessionStorage.setItem(P, Ge(q));
1727
+ window.sessionStorage.setItem(b, Ge(q));
1715
1728
  }, w);
1716
- const b = () => {
1729
+ const S = () => {
1717
1730
  var q;
1718
- const P = (q = e.tabs) == null ? void 0 : q.clearWhileUnmount;
1719
- return P === void 0 ? !0 : P;
1731
+ const b = (q = e.tabs) == null ? void 0 : q.clearWhileUnmount;
1732
+ return b === void 0 ? !0 : b;
1720
1733
  };
1721
- oe(() => () => {
1722
- const P = L();
1723
- P && b() && window.sessionStorage.removeItem(P);
1734
+ re(() => () => {
1735
+ const b = R();
1736
+ b && S() && window.sessionStorage.removeItem(b);
1724
1737
  }, []);
1725
1738
  const i = _(!1);
1726
1739
  be(Mn, {
@@ -1739,63 +1752,63 @@ const Lr = () => ({
1739
1752
  }, 0);
1740
1753
  }
1741
1754
  });
1742
- const E = he(t, "header"), B = he(t, "menu"), te = (P) => {
1755
+ const x = he(t, "header"), $ = he(t, "menu"), Z = (b) => {
1743
1756
  var q, X;
1744
1757
  return c("div", {
1745
1758
  class: `${e.clsName}-menus-wrapper`
1746
- }, [(q = B.start) == null ? void 0 : q.call(B), c(a, {
1759
+ }, [(q = $.start) == null ? void 0 : q.call($), c(a, {
1747
1760
  class: `${e.clsName}-menus-scroll`
1748
1761
  }, {
1749
- default: () => [c(r, P, B)]
1750
- }), (X = B.end) == null ? void 0 : X.call(B)]);
1762
+ default: () => [c(r, b, $)]
1763
+ }), (X = $.end) == null ? void 0 : X.call($)]);
1751
1764
  };
1752
1765
  return () => {
1753
1766
  var ie;
1754
1767
  if (!r)
1755
1768
  return null;
1756
- const P = [`${e.clsName} ${e.clsName}-${e.layout}`];
1757
- N.value && P.push("has-tabs");
1769
+ const b = [`${e.clsName} ${e.clsName}-${e.layout}`];
1770
+ N.value && b.push("has-tabs");
1758
1771
  const q = {
1759
1772
  class: `${e.clsName}-menus`,
1760
1773
  options: d.value,
1761
1774
  activeKey: v.value,
1762
- ...Z(e, "convertSubMenuProps", "convertMenuItemProps"),
1775
+ ...ee(e, "convertSubMenuProps", "convertMenuItemProps"),
1763
1776
  onMenuItemClick: C,
1764
1777
  ...e.menuProps
1765
1778
  }, X = {
1766
1779
  collapse: e.collapse,
1767
1780
  ...q
1768
- }, ae = c(fe, null, [N.value && c(Vr, K({
1781
+ }, oe = c(fe, null, [N.value && c(Vr, K({
1769
1782
  isHideClose: A
1770
1783
  }, D(e.tabs, "sessionKey", "clearWhileUnmount")), null), c("div", {
1771
1784
  class: `${e.clsName}-section`
1772
1785
  }, [(ie = t.default) == null ? void 0 : ie.call(t), t.routerView ? t.routerView() : c(qr, e.routeOpts, null), e.watermark && c(Hr, e.watermark, null)])]);
1773
1786
  return e.layout === "vertical" ? c("main", K(n, {
1774
- class: P
1787
+ class: b
1775
1788
  }), [c(Ve, {
1776
1789
  class: `${e.clsName}-header`
1777
1790
  }, {
1778
1791
  menus: (de) => de ? c(r, K({
1779
1792
  style: `width:${de}px`,
1780
1793
  mode: "horizontal"
1781
- }, q), B) : null,
1782
- ...E
1783
- }), ae]) : e.layout === "horizontal" ? (P.push("has-left-menu"), e.collapse && P.push("mini"), c("main", K(n, {
1784
- class: P
1785
- }), [te(X), c("div", {
1794
+ }, q), $) : null,
1795
+ ...x
1796
+ }), oe]) : e.layout === "horizontal" ? (b.push("has-left-menu"), e.collapse && b.push("mini"), c("main", K(n, {
1797
+ class: b
1798
+ }), [Z(X), c("div", {
1786
1799
  class: `${e.clsName}-structure`
1787
1800
  }, [c(Ve, {
1788
1801
  class: `${e.clsName}-header`
1789
- }, E), ae])])) : e.layout === "horizontal-v" ? (P.push("has-left-menu"), e.collapse && P.push("mini"), c("main", K(n, {
1790
- class: P
1802
+ }, x), oe])])) : e.layout === "horizontal-v" ? (b.push("has-left-menu"), e.collapse && b.push("mini"), c("main", K(n, {
1803
+ class: b
1791
1804
  }), [c(Ve, {
1792
1805
  class: `${e.clsName}-header`
1793
- }, E), c("div", {
1806
+ }, x), c("div", {
1794
1807
  class: `${e.clsName}-structure`
1795
- }, [te(X), c("div", {
1808
+ }, [Z(X), c("div", {
1796
1809
  class: `${e.clsName}-right`
1797
- }, [ae])])])) : (T.value && P.push("has-left-menu"), e.collapse && P.push("mini"), c("main", K(n, {
1798
- class: P
1810
+ }, [oe])])])) : (T.value && b.push("has-left-menu"), e.collapse && b.push("mini"), c("main", K(n, {
1811
+ class: b
1799
1812
  }), [c(Ve, {
1800
1813
  class: `${e.clsName}-header`
1801
1814
  }, {
@@ -1803,21 +1816,21 @@ const Lr = () => ({
1803
1816
  style: `width:${de}px`,
1804
1817
  class: `${e.clsName}-menus`,
1805
1818
  mode: "horizontal",
1806
- options: F(d.value, (Se) => D(Se, "children")),
1807
- activeKey: g.value
1808
- }, e.topMenuProps, Z(e, "convertSubMenuProps", "convertMenuItemProps"), {
1819
+ options: L(d.value, (Se) => D(Se, "children")),
1820
+ activeKey: p.value
1821
+ }, e.topMenuProps, ee(e, "convertSubMenuProps", "convertMenuItemProps"), {
1809
1822
  onMenuItemClick: k
1810
- }), B) : null,
1811
- ...E
1823
+ }), $) : null,
1824
+ ...x
1812
1825
  }), c("div", {
1813
1826
  class: `${e.clsName}-structure`
1814
- }, [T.value && te({
1827
+ }, [T.value && Z({
1815
1828
  ...X,
1816
- options: S.value.children,
1817
- key: S.value.value
1829
+ options: P.value.children,
1830
+ key: P.value.value
1818
1831
  }), c("div", {
1819
1832
  class: `${e.clsName}-right`
1820
- }, [ae])])]));
1833
+ }, [oe])])]));
1821
1834
  };
1822
1835
  }
1823
1836
  }), _r = () => ({
@@ -1902,7 +1915,7 @@ const Lr = () => ({
1902
1915
  setup: (e, {
1903
1916
  slots: t
1904
1917
  }) => {
1905
- const n = qe(), o = x(() => {
1918
+ const n = qe(), o = E(() => {
1906
1919
  if (!e.layoutTabsBackMode || e.sub || !n)
1907
1920
  return e.showBack;
1908
1921
  const {
@@ -1923,12 +1936,12 @@ const Lr = () => ({
1923
1936
  class: f
1924
1937
  }, {
1925
1938
  default: () => {
1926
- var M, g;
1927
- return [(M = t.start) == null ? void 0 : M.call(t), d && c(at, K(Z(e, s), {
1939
+ var M, p;
1940
+ return [(M = t.start) == null ? void 0 : M.call(t), d && c(at, K(ee(e, s), {
1928
1941
  showBack: o.value
1929
1942
  }), D(t, "start", "default", "footer")), c("div", {
1930
1943
  class: "pro-page-content"
1931
- }, [e.loading ? l() : (g = t.default) == null ? void 0 : g.call(t)]), m && c("div", {
1944
+ }, [e.loading ? l() : (p = t.default) == null ? void 0 : p.call(t)]), m && c("div", {
1932
1945
  class: "pro-page-footer"
1933
1946
  }, [y])];
1934
1947
  }
@@ -1989,24 +2002,24 @@ const Lr = () => ({
1989
2002
  ...s,
1990
2003
  ...l
1991
2004
  });
1992
- }, y = (g, S) => {
1993
- s = g, l.page = S || 1, d();
1994
- }, m = (g, S) => {
1995
- l.page = g, l.pageSize = S, d();
2005
+ }, y = (p, P) => {
2006
+ s = p, l.page = P || 1, d();
2007
+ }, m = (p, P) => {
2008
+ l.page = p, l.pageSize = P, d();
1996
2009
  }, f = he(t, "search"), h = he(t, "table"), M = he(t, "pagination");
1997
2010
  return () => {
1998
- var S, T, v, C, k, N, L, V;
1999
- const g = t.search ? t.search({
2011
+ var P, T, v, C, k, N, R, V;
2012
+ const p = t.search ? t.search({
2000
2013
  executeSearchWithResetPage: y,
2001
2014
  pageState: l
2002
2015
  }) : c(fe, null, [r && c(r, K({
2003
2016
  class: `${e.clsName}-search`
2004
2017
  }, D(e.searchProps, "onFinish"), {
2005
- onFinish: (j) => y(j)
2018
+ onFinish: (B) => y(B)
2006
2019
  }), f)]);
2007
2020
  return c("div", {
2008
2021
  class: e.clsName
2009
- }, [((S = t.start) == null ? void 0 : S.call(t)) || ((T = e.start) == null ? void 0 : T.call(e)), !e.searchInTable && g, ((v = t.divide) == null ? void 0 : v.call(t)) || ((C = e.divide) == null ? void 0 : C.call(e)), t.table ? t.table({
2022
+ }, [((P = t.start) == null ? void 0 : P.call(t)) || ((T = e.start) == null ? void 0 : T.call(e)), !e.searchInTable && p, ((v = t.divide) == null ? void 0 : v.call(t)) || ((C = e.divide) == null ? void 0 : C.call(e)), t.table ? t.table({
2010
2023
  pageState: l
2011
2024
  }) : c(fe, null, [a && c(a, K({
2012
2025
  class: `${e.clsName}-table`,
@@ -2017,7 +2030,7 @@ const Lr = () => ({
2017
2030
  pagination: !1
2018
2031
  }, e.tableProps), {
2019
2032
  ...h,
2020
- toolbar: e.searchInTable ? () => h.toolbar ? h.toolbar(g) : g : h.toolbar
2033
+ toolbar: e.searchInTable ? () => h.toolbar ? h.toolbar(p) : p : h.toolbar
2021
2034
  })]), ((k = t.divide2) == null ? void 0 : k.call(t)) || ((N = e.divide2) == null ? void 0 : N.call(e)), t.pagination ? t.pagination({
2022
2035
  executePageChange: m,
2023
2036
  pageState: l
@@ -2027,7 +2040,7 @@ const Lr = () => ({
2027
2040
  page: l.page,
2028
2041
  pageSize: l.pageSize,
2029
2042
  onComposeChange: m
2030
- }), M)])]), ((L = t.end) == null ? void 0 : L.call(t)) || ((V = e.end) == null ? void 0 : V.call(e))]);
2043
+ }), M)])]), ((R = t.end) == null ? void 0 : R.call(t)) || ((V = e.end) == null ? void 0 : V.call(e))]);
2031
2044
  };
2032
2045
  }
2033
2046
  }), Kt = () => ({
@@ -2048,28 +2061,28 @@ const Lr = () => ({
2048
2061
  }) => {
2049
2062
  const {
2050
2063
  elementMap: n
2051
- } = le(), o = e.elementMap || n, r = J(), a = r(U.DescriptionsKey), u = r(U.DescriptionsItemKey), l = x(() => et(e.columns, e.columnState, e.columnState2)), s = Y(we), d = Y(Kt());
2064
+ } = le(), o = e.elementMap || n, r = J(), a = r(U.DescriptionsKey), u = r(U.DescriptionsItemKey), l = E(() => et(e.columns, e.columnState, e.columnState2)), s = Y(we), d = Y(Kt());
2052
2065
  return () => !a || !u ? null : c(a, K({
2053
2066
  class: e.clsName
2054
2067
  }, D(e, ...s, ...d, "model")), {
2055
2068
  default: () => {
2056
2069
  var y, m;
2057
- return [(y = t.start) == null ? void 0 : y.call(t), F(l.value, (f) => {
2058
- const h = f.dataIndex, M = p(e.model, h);
2070
+ return [(y = t.start) == null ? void 0 : y.call(t), L(l.value, (f) => {
2071
+ const h = f.dataIndex, M = g(e.model, h);
2059
2072
  return c(u, K({
2060
2073
  class: `${e.clsName}-item`
2061
- }, p(f.extra, "desc")), {
2074
+ }, g(f.extra, "desc")), {
2062
2075
  default: () => {
2063
- var g, S;
2064
- return [((g = t[h]) == null ? void 0 : g.call(t, M, f)) || ((S = t.value) == null ? void 0 : S.call(t, M, f)) || gt(o, f, {
2076
+ var p, P;
2077
+ return [((p = t[h]) == null ? void 0 : p.call(t, M, f)) || ((P = t.value) == null ? void 0 : P.call(t, M, f)) || pt(o, f, {
2065
2078
  value: M
2066
2079
  }, {
2067
2080
  render: "descRender"
2068
2081
  })];
2069
2082
  },
2070
2083
  label: () => {
2071
- var g;
2072
- return ((g = t.label) == null ? void 0 : g.call(t, f)) || f.title;
2084
+ var p;
2085
+ return ((p = t.label) == null ? void 0 : p.call(t, f)) || f.title;
2073
2086
  }
2074
2087
  });
2075
2088
  }), (m = t.default) == null ? void 0 : m.call(t)];
@@ -2084,7 +2097,7 @@ const Lr = () => ({
2084
2097
  emptyText: {
2085
2098
  type: String
2086
2099
  }
2087
- }), po = O({
2100
+ }), go = O({
2088
2101
  props: {
2089
2102
  ...Zr()
2090
2103
  },
@@ -2145,16 +2158,16 @@ const Lr = () => ({
2145
2158
  setup: (e, {
2146
2159
  attrs: t
2147
2160
  }) => {
2148
- const n = x(() => {
2161
+ const n = E(() => {
2149
2162
  var a;
2150
2163
  const o = (a = e.showProps) == null ? void 0 : a.content, r = e.value || st(e.value) ? e.value : o;
2151
2164
  return e.convert ? e.convert(r, e) : r;
2152
2165
  });
2153
- return () => c(ta, K(Z(t, "style", "class"), D(e.showProps, "content"), {
2166
+ return () => c(ta, K(ee(t, "style", "class"), D(e.showProps, "content"), {
2154
2167
  content: n.value
2155
2168
  }), null);
2156
2169
  }
2157
- }), go = O({
2170
+ }), po = O({
2158
2171
  inheritAttrs: !1,
2159
2172
  props: {
2160
2173
  ...Ue,
@@ -2170,7 +2183,7 @@ const Lr = () => ({
2170
2183
  setup: (e, {
2171
2184
  attrs: t
2172
2185
  }) => {
2173
- const n = x(() => {
2186
+ const n = E(() => {
2174
2187
  let o = e.value;
2175
2188
  return o && e.decimalFixed && (o = or(o, e.decimalFixed || 2)), o && e.thousandDivision && (o = ur(o)), e.convert ? e.convert(o, e) : o;
2176
2189
  });
@@ -2179,7 +2192,7 @@ const Lr = () => ({
2179
2192
  props: e
2180
2193
  }) : c(tt, K({
2181
2194
  class: "pro-show-digit"
2182
- }, Z(t, "style", "class"), {
2195
+ }, ee(t, "style", "class"), {
2183
2196
  value: n.value,
2184
2197
  showProps: e.showProps
2185
2198
  }), null);
@@ -2203,18 +2216,18 @@ const Lr = () => ({
2203
2216
  setup: (e, {
2204
2217
  attrs: t
2205
2218
  }) => {
2206
- const n = x(() => lr(e.options, (a) => a.label), void 0), o = x(() => {
2219
+ const n = E(() => lr(e.options, (a) => a.label), void 0), o = E(() => {
2207
2220
  const a = e.value;
2208
2221
  let u = e.value;
2209
- return ee(a) ? u = Je(F(a, (l) => p(n.value, l, l)), e.splitStr) : u = p(n.value, a, e.value), e.convert ? e.convert(u, e) : u;
2210
- }), r = x(() => p(e.colorMap, e.value));
2222
+ return ne(a) ? u = Je(L(a, (l) => g(n.value, l, l)), e.splitStr) : u = g(n.value, a, e.value), e.convert ? e.convert(u, e) : u;
2223
+ }), r = E(() => g(e.colorMap, e.value));
2211
2224
  return () => e.render ? e.render({
2212
2225
  color: r.value,
2213
2226
  value: o.value,
2214
2227
  props: e
2215
2228
  }) : c(tt, K({
2216
2229
  class: "pro-show-options"
2217
- }, Z(t, "style", "class"), {
2230
+ }, ee(t, "style", "class"), {
2218
2231
  style: `color:${r.value || ""}`,
2219
2232
  value: o.value,
2220
2233
  showProps: e.showProps
@@ -2247,23 +2260,23 @@ const Lr = () => ({
2247
2260
  setup: (e, {
2248
2261
  attrs: t
2249
2262
  }) => {
2250
- const n = x(() => {
2263
+ const n = E(() => {
2251
2264
  const r = e.treeData || e.data || e.options, a = e.fieldNames || e.props;
2252
- return ct(r, (u) => p(u, (a == null ? void 0 : a.label) || "label"), {
2265
+ return ct(r, (u) => g(u, (a == null ? void 0 : a.label) || "label"), {
2253
2266
  value: "value",
2254
2267
  children: "children",
2255
2268
  ...a
2256
2269
  });
2257
- }), o = x(() => {
2270
+ }), o = E(() => {
2258
2271
  let r = e.value;
2259
- return ee(e.value) ? r = Je(F(e.value, (a) => p(n.value, a, a)), e.multiple ? e.splitStr2 : e.splitStr) : r = p(n.value, e.value, e.value), e.convert ? e.convert(r, e) : r;
2272
+ return ne(e.value) ? r = Je(L(e.value, (a) => g(n.value, a, a)), e.multiple ? e.splitStr2 : e.splitStr) : r = g(n.value, e.value, e.value), e.convert ? e.convert(r, e) : r;
2260
2273
  });
2261
2274
  return () => e.render ? e.render({
2262
2275
  value: o.value,
2263
2276
  props: e
2264
2277
  }) : c(tt, K({
2265
2278
  class: "pro-show-tree"
2266
- }, Z(t, "style", "class"), {
2279
+ }, ee(t, "style", "class"), {
2267
2280
  value: o.value,
2268
2281
  showProps: e.showProps
2269
2282
  }), null);
@@ -2290,16 +2303,16 @@ const Lr = () => ({
2290
2303
  setup: (e, {
2291
2304
  attrs: t
2292
2305
  }) => {
2293
- const n = (r) => r && (e.isUnix ? wt.unix(r).format(e.format) : wt(r).format(e.format)), o = x(() => {
2306
+ const n = (r) => r && (e.isUnix ? wt.unix(r).format(e.format) : wt(r).format(e.format)), o = E(() => {
2294
2307
  let r = e.value;
2295
- return ee(e.value) ? r = Je(F(e.value, (a) => n(a) || ""), e.splitStr) : r = n(e.value) || "", e.convert ? e.convert(r, e) : r;
2308
+ return ne(e.value) ? r = Je(L(e.value, (a) => n(a) || ""), e.splitStr) : r = n(e.value) || "", e.convert ? e.convert(r, e) : r;
2296
2309
  });
2297
2310
  return () => e.render ? e.render({
2298
2311
  value: o.value,
2299
2312
  props: e
2300
2313
  }) : c(tt, K({
2301
2314
  class: "pro-show-date"
2302
- }, Z(t, "style", "class"), {
2315
+ }, ee(t, "style", "class"), {
2303
2316
  value: o.value,
2304
2317
  showProps: e.showProps
2305
2318
  }), null);
@@ -2324,26 +2337,26 @@ const Lr = () => ({
2324
2337
  }) => {
2325
2338
  const r = J()(U.UploaderKey), a = (d) => {
2326
2339
  const y = it(d);
2327
- if (ee(y)) {
2340
+ if (ne(y)) {
2328
2341
  const m = e.fieldNames;
2329
- return F(y, (f) => ({
2342
+ return L(y, (f) => ({
2330
2343
  ...D(f, m.id, m.name, m.size),
2331
- id: p(f, m.id),
2332
- name: p(f, m.name),
2333
- size: p(f, m.size)
2344
+ id: g(f, m.id),
2345
+ name: g(f, m.name),
2346
+ size: g(f, m.size)
2334
2347
  }));
2335
2348
  }
2336
2349
  return [];
2337
- }, u = x(() => a(e.value)), l = x(() => a(e.modelValue)), s = (d, y) => {
2350
+ }, u = E(() => a(e.value)), l = E(() => a(e.modelValue)), s = (d, y) => {
2338
2351
  let m = "";
2339
- d && Q(d) > 0 && (m = Ge(F(d, (f) => {
2340
- var g;
2352
+ d && Q(d) > 0 && (m = Ge(L(d, (f) => {
2353
+ var p;
2341
2354
  const h = e.fieldNames, M = {
2342
2355
  [h.id]: f.id,
2343
2356
  [h.name]: f.name,
2344
2357
  [h.size || "size"]: f.size
2345
2358
  };
2346
- return ((g = e.convertItem) == null ? void 0 : g.call(e, f)) || M;
2359
+ return ((p = e.convertItem) == null ? void 0 : p.call(e, f)) || M;
2347
2360
  }))), n(y, m);
2348
2361
  };
2349
2362
  return () => r ? c(r, K({
@@ -2372,12 +2385,12 @@ const Lr = () => ({
2372
2385
  }) => {
2373
2386
  const o = (u) => {
2374
2387
  var l;
2375
- return !!p(u, ((l = e.fieldNames) == null ? void 0 : l.id) || "id");
2376
- }, r = x(() => {
2388
+ return !!g(u, ((l = e.fieldNames) == null ? void 0 : l.id) || "id");
2389
+ }, r = E(() => {
2377
2390
  let u = e.value;
2378
- return u && me(u) && (u = it(u)), u && !ee(u) && De(u) && o(u) && (u = [u]), ee(u) ? F(G(u, (l) => o(l)), (l) => {
2391
+ return u && me(u) && (u = it(u)), u && !ne(u) && De(u) && o(u) && (u = [u]), ne(u) ? L(G(u, (l) => o(l)), (l) => {
2379
2392
  var m, f, h;
2380
- const s = p(l, ((m = e.fieldNames) == null ? void 0 : m.id) || "id"), d = p(l, ((f = e.fieldNames) == null ? void 0 : f.name) || "name"), y = p(l, ((h = e.fieldNames) == null ? void 0 : h.name) || "size");
2393
+ const s = g(l, ((m = e.fieldNames) == null ? void 0 : m.id) || "id"), d = g(l, ((f = e.fieldNames) == null ? void 0 : f.name) || "name"), y = g(l, ((h = e.fieldNames) == null ? void 0 : h.name) || "size");
2381
2394
  return {
2382
2395
  ...l,
2383
2396
  id: s,
@@ -2392,7 +2405,7 @@ const Lr = () => ({
2392
2405
  var u, l;
2393
2406
  return c("div", {
2394
2407
  class: "pro-upload-list"
2395
- }, [(u = t.start) == null ? void 0 : u.call(t), F(r.value, (s) => {
2408
+ }, [(u = t.start) == null ? void 0 : u.call(t), L(r.value, (s) => {
2396
2409
  var d;
2397
2410
  return c("div", {
2398
2411
  class: "pro-upload-list-item"
@@ -2454,14 +2467,14 @@ const Lr = () => ({
2454
2467
  }, ...na };
2455
2468
  return { router: e ? e(u) : u, route: n };
2456
2469
  }, ra = (e) => {
2457
- if (!ee(e) || Q(e) <= 0)
2470
+ if (!ne(e) || Q(e) <= 0)
2458
2471
  return !1;
2459
2472
  const t = e[0];
2460
2473
  return me(t) ? _t(t, "$") : !1;
2461
- }, aa = (e) => typeof e != "object" || !e.type$ ? !1 : e.type$ === "data$" && e.type$, oa = (e) => typeof e != "object" || !e.type$ ? !1 : e.type$ === "obj", ua = { get: p, pick: Z, add: Gn, subtract: Xn }, Ye = (e, t) => {
2474
+ }, aa = (e) => typeof e != "object" || !e.type$ ? !1 : e.type$ === "data$" && e.type$, oa = (e) => typeof e != "object" || !e.type$ ? !1 : e.type$ === "obj", ua = { get: g, pick: ee, add: Gn, subtract: Xn }, Ye = (e, t) => {
2462
2475
  if (aa(e)) {
2463
- const n = p(t, e.name$);
2464
- return e.namePath$ ? p(n, e.namePath$) : n;
2476
+ const n = g(t, e.name$);
2477
+ return e.namePath$ ? g(n, e.namePath$) : n;
2465
2478
  } else if (oa(e)) {
2466
2479
  const n = {};
2467
2480
  return ue(e, (o, r) => {
@@ -2473,34 +2486,34 @@ const Lr = () => ({
2473
2486
  n[r] = o;
2474
2487
  }), n;
2475
2488
  } else if (ra(e)) {
2476
- const [n, ...o] = e, r = t.expressionMethods || ua, a = p(r, n.replace("$", ""));
2489
+ const [n, ...o] = e, r = t.expressionMethods || ua, a = g(r, n.replace("$", ""));
2477
2490
  if (!a) {
2478
2491
  console.log("ex", "\u672A\u627E\u5230\u5BF9\u5E94\u7684\u65B9\u6CD5", e);
2479
2492
  return;
2480
2493
  }
2481
- const u = F(o, (l) => Ye(l, t));
2494
+ const u = L(o, (l) => Ye(l, t));
2482
2495
  return a(...u);
2483
2496
  }
2484
2497
  return e;
2485
2498
  }, la = () => {
2486
2499
  const e = nn(), { registerStoreMap: t } = le();
2487
2500
  return (n, o) => {
2488
- const r = p(t, n);
2501
+ const r = g(t, n);
2489
2502
  !r || e(n, o, !!r.persist, r.initialState);
2490
2503
  };
2491
2504
  }, Io = (e) => {
2492
- const { registerStoreMap: t } = le(), n = p(t, e), o = `${n != null && n.persist ? "$" : ""}${n == null ? void 0 : n.key}`;
2505
+ const { registerStoreMap: t } = le(), n = g(t, e), o = `${n != null && n.persist ? "$" : ""}${n == null ? void 0 : n.key}`;
2493
2506
  return rn(an((a) => {
2494
- const u = p(a, o);
2507
+ const u = g(a, o);
2495
2508
  return u || (W(n == null ? void 0 : n.initialState) ? n == null ? void 0 : n.initialState() : n == null ? void 0 : n.initialState);
2496
2509
  }));
2497
- }, En = Symbol("pro-module"), Ee = () => ge(En), sa = (e) => {
2510
+ }, En = Symbol("pro-module"), Ee = () => pe(En), sa = (e) => {
2498
2511
  be(En, e);
2499
- }, pt = (e) => {
2512
+ }, gt = (e) => {
2500
2513
  const {
2501
2514
  subject$: t
2502
2515
  } = Ee();
2503
- oe(() => {
2516
+ re(() => {
2504
2517
  const n = t.subscribe({
2505
2518
  next: (o) => {
2506
2519
  e(o);
@@ -2508,7 +2521,7 @@ const Lr = () => ({
2508
2521
  });
2509
2522
  return () => n.unsubscribe();
2510
2523
  }, []);
2511
- }, Fe = {
2524
+ }, Le = {
2512
2525
  Success: "request-success$",
2513
2526
  Fail: "request-fail$"
2514
2527
  }, ca = () => ({
@@ -2550,140 +2563,140 @@ const Lr = () => ({
2550
2563
  elementMap: a,
2551
2564
  registerStoreMap: u,
2552
2565
  expressionMethods: l
2553
- } = le(), s = e.elementMap || a, d = (b) => ee(b) ? bt(s, b) : $e(s, b), y = new Jn(), m = (b) => {
2554
- y.next(b);
2555
- }, f = G(e.storeKeys, (b) => lt(u, b)), h = () => se(f, (b, i) => {
2556
- const I = p(u, i);
2566
+ } = le(), s = e.elementMap || a, d = (S) => ne(S) ? bt(s, S) : $e(s, S), y = new Jn(), m = (S) => {
2567
+ y.next(S);
2568
+ }, f = G(e.storeKeys, (S) => lt(u, S)), h = () => se(f, (S, i) => {
2569
+ const I = g(u, i);
2557
2570
  return {
2558
- ...b,
2559
- [i]: p(o.value, `${I.persist ? "$" : ""}${i}`) || p(u, [i, "initialState"])
2571
+ ...S,
2572
+ [i]: g(o.value, `${I.persist ? "$" : ""}${i}`) || g(u, [i, "initialState"])
2560
2573
  };
2561
- }, {}), M = h(), g = e.state || ye({
2574
+ }, {}), M = h(), p = e.state || ye({
2562
2575
  ...M,
2563
2576
  ...e.initState
2564
- }), S = {}, T = (b) => {
2565
- const i = g[b.type], I = W(b.payload) ? b.payload(i) : b.payload;
2566
- if (!ee(i) && De(i)) {
2567
- dt(g[b.type], I);
2577
+ }), P = {}, T = (S) => {
2578
+ const i = p[S.type], I = W(S.payload) ? S.payload(i) : S.payload;
2579
+ if (!ne(i) && De(i)) {
2580
+ dt(p[S.type], I);
2568
2581
  return;
2569
2582
  }
2570
- g[b.type] = I;
2583
+ p[S.type] = I;
2571
2584
  }, v = la(), C = {
2572
2585
  dispatch: T,
2573
2586
  dispatchStore: v
2574
2587
  };
2575
- oe(() => {
2576
- const b = o.pipe(Zn(() => h()), er((i) => {
2577
- ue(i, (I, E) => {
2578
- const B = p(g, E);
2579
- ir(B, I) || T({
2580
- type: E,
2588
+ re(() => {
2589
+ const S = o.pipe(Zn(() => h()), er((i) => {
2590
+ ue(i, (I, x) => {
2591
+ const $ = g(p, x);
2592
+ ir($, I) || T({
2593
+ type: x,
2581
2594
  payload: I
2582
2595
  });
2583
2596
  });
2584
2597
  })).subscribe();
2585
2598
  return () => {
2586
- b.unsubscribe();
2599
+ S.unsubscribe();
2587
2600
  };
2588
2601
  }, []);
2589
2602
  const {
2590
2603
  dispatchRequest: k
2591
- } = Be(), L = (() => {
2592
- const b = {}, i = se(e.actors || [], (I, E) => ({
2604
+ } = Be(), R = (() => {
2605
+ const S = {}, i = se(e.actors || [], (I, x) => ({
2593
2606
  ...I,
2594
- [E.name]: E
2607
+ [x.name]: x
2595
2608
  }), {});
2596
2609
  return ue(e.requests, (I) => {
2597
2610
  if (me(I.actor)) {
2598
- const E = p(i, I.actor);
2599
- if (!E)
2611
+ const x = g(i, I.actor);
2612
+ if (!x)
2600
2613
  return;
2601
- I.actor = E;
2614
+ I.actor = x;
2602
2615
  }
2603
- !I.actor || (b[I.actor.name] = I, I.action && (b[I.action] = I));
2604
- }), b;
2605
- })(), V = (b, ...i) => b.convertParams ? b.convertParams(...i) : b.convertParamsEx ? A(b.convertParamsEx, i) : p(i, 0), j = (b, i) => {
2616
+ !I.actor || (S[I.actor.name] = I, I.action && (S[I.action] = I));
2617
+ }), S;
2618
+ })(), V = (S, ...i) => S.convertParams ? S.convertParams(...i) : S.convertParamsEx ? A(S.convertParamsEx, i) : g(i, 0), B = (S, i) => {
2606
2619
  var I;
2607
- return b.convertData ? b.convertData(i) : b.convertDataEx ? A(b.convertDataEx, i) : (I = i.res) == null ? void 0 : I.data;
2608
- }, w = (b, ...i) => {
2609
- const I = p(L, b);
2620
+ return S.convertData ? S.convertData(i) : S.convertDataEx ? A(S.convertDataEx, i) : (I = i.res) == null ? void 0 : I.data;
2621
+ }, w = (S, ...i) => {
2622
+ const I = g(R, S);
2610
2623
  if (!I)
2611
2624
  return;
2612
- const E = V(I, ...i);
2625
+ const x = V(I, ...i);
2613
2626
  I.loadingName && T({
2614
2627
  type: I.loadingName,
2615
2628
  payload: !0
2616
- }), k(I.actor, E);
2629
+ }), k(I.actor, x);
2617
2630
  };
2618
- gr(Y(L), {
2619
- onSuccess: (b) => {
2620
- var E;
2621
- const i = p(L, b.name), I = j(i, b);
2631
+ pr(Y(R), {
2632
+ onSuccess: (S) => {
2633
+ var x;
2634
+ const i = g(R, S.name), I = B(i, S);
2622
2635
  i != null && i.stateName && T({
2623
2636
  type: i.stateName,
2624
2637
  payload: I
2625
2638
  }), m({
2626
- type: Fe.Success,
2639
+ type: Le.Success,
2627
2640
  payload: {
2628
- actor: b,
2641
+ actor: S,
2629
2642
  requestOpts: i
2630
2643
  }
2631
- }), (E = i.onSuccess) == null || E.call(i, b), i.onSuccessEx && z(i.onSuccessEx, [I]);
2644
+ }), (x = i.onSuccess) == null || x.call(i, S), i.onSuccessEx && z(i.onSuccessEx, [I]);
2632
2645
  },
2633
- onFailed: (b) => {
2646
+ onFailed: (S) => {
2634
2647
  var I;
2635
- const i = p(L, b.name);
2648
+ const i = g(R, S.name);
2636
2649
  m({
2637
- type: Fe.Fail,
2650
+ type: Le.Fail,
2638
2651
  payload: {
2639
- actor: b,
2652
+ actor: S,
2640
2653
  requestOpts: i
2641
2654
  }
2642
- }), (I = i.onFailed) == null || I.call(i, b), i.onFailedEx && z(i.onFailedEx, [b.err]);
2655
+ }), (I = i.onFailed) == null || I.call(i, S), i.onFailedEx && z(i.onFailedEx, [S.err]);
2643
2656
  },
2644
- onFinish: (b) => {
2645
- const i = p(L, [b.name, "loadingName"]);
2657
+ onFinish: (S) => {
2658
+ const i = g(R, [S.name, "loadingName"]);
2646
2659
  i && T({
2647
2660
  type: i,
2648
2661
  payload: !1
2649
2662
  });
2650
2663
  }
2651
2664
  }, !0);
2652
- const A = (b, i) => Ye(b, {
2653
- state: g,
2654
- data: S,
2665
+ const A = (S, i) => Ye(S, {
2666
+ state: p,
2667
+ data: P,
2655
2668
  args: i,
2656
2669
  expressionMethods: l
2657
- }), z = (b, i) => {
2658
- if (!b)
2670
+ }), z = (S, i) => {
2671
+ if (!S)
2659
2672
  return;
2660
2673
  const I = {
2661
- state: g,
2662
- data: S,
2674
+ state: p,
2675
+ data: P,
2663
2676
  args: i,
2664
2677
  expressionMethods: l
2665
2678
  };
2666
- ue(b, (E) => {
2667
- if (!ee(E) || Q(E) < 2) {
2668
- console.log("execute invalid", E);
2679
+ ue(S, (x) => {
2680
+ if (!ne(x) || Q(x) < 2) {
2681
+ console.log("execute invalid", x);
2669
2682
  return;
2670
2683
  }
2671
- const [B, te, ...ne] = E;
2672
- let R;
2673
- switch (B) {
2684
+ const [$, Z, ...te] = x;
2685
+ let F;
2686
+ switch ($) {
2674
2687
  case "router":
2675
- R = p(r, te);
2688
+ F = g(r, Z);
2676
2689
  break;
2677
2690
  case "state":
2678
- R = p(C, te);
2691
+ F = g(C, Z);
2679
2692
  break;
2680
2693
  }
2681
- if (R)
2694
+ if (F)
2682
2695
  try {
2683
- const P = F(ne, (q) => Ye(q, I));
2684
- R(...P);
2685
- } catch (P) {
2686
- console.log("execute err", P);
2696
+ const b = L(te, (q) => Ye(q, I));
2697
+ F(...b);
2698
+ } catch (b) {
2699
+ console.log("execute err", b);
2687
2700
  }
2688
2701
  });
2689
2702
  };
@@ -2691,9 +2704,9 @@ const Lr = () => ({
2691
2704
  elementMap: s,
2692
2705
  subject$: y,
2693
2706
  sendEvent: m,
2694
- state: g,
2707
+ state: p,
2695
2708
  dispatch: T,
2696
- data: S,
2709
+ data: P,
2697
2710
  requests: e.requests,
2698
2711
  sendRequest: w,
2699
2712
  executeExp: A,
@@ -2702,21 +2715,21 @@ const Lr = () => ({
2702
2715
  sendEvent: m,
2703
2716
  sendRequest: w
2704
2717
  }), () => {
2705
- var b;
2706
- return c(fe, null, [Q(e.elementConfigs) > 0 && d(e.elementConfigs), (b = t.default) == null ? void 0 : b.call(t)]);
2718
+ var S;
2719
+ return c(fe, null, [Q(e.elementConfigs) > 0 && d(e.elementConfigs), (S = t.default) == null ? void 0 : S.call(t)]);
2707
2720
  };
2708
2721
  }
2709
2722
  }), Re = (e) => {
2710
2723
  var t, n;
2711
2724
  return !(!e || ((n = (t = e == null ? void 0 : e[0]) == null ? void 0 : t.type) == null ? void 0 : n.toString()) === "Symbol(Comment)");
2712
- }, wn = (e) => e.formValueType || e.valueType || "text", pe = (e) => {
2725
+ }, wn = (e) => e.formValueType || e.valueType || "text", ge = (e) => {
2713
2726
  var o, r;
2714
2727
  const t = (o = e.formItemProps) == null ? void 0 : o.name;
2715
2728
  return ((r = e.inputProps) == null ? void 0 : r.name) || t || e.dataIndex;
2716
2729
  }, ia = (e, t) => {
2717
2730
  let n = t;
2718
- return me(t) && (n = p(e, t)), W(n) || (n = p(e, "render")), W(n) ? n : void 0;
2719
- }, gt = (e, t, n, o) => {
2731
+ return me(t) && (n = g(e, t)), W(n) || (n = g(e, "render")), W(n) ? n : void 0;
2732
+ }, pt = (e, t, n, o) => {
2720
2733
  var y, m, f;
2721
2734
  const r = ia(t, o == null ? void 0 : o.render);
2722
2735
  if (r)
@@ -2724,7 +2737,7 @@ const Lr = () => ({
2724
2737
  ...n,
2725
2738
  column: t
2726
2739
  });
2727
- const a = t.valueType || "text", u = p(e, a);
2740
+ const a = t.valueType || "text", u = g(e, a);
2728
2741
  if (!u)
2729
2742
  return null;
2730
2743
  const l = ((y = t.props) == null ? void 0 : y.slots) || ((m = t.formFieldProps) == null ? void 0 : m.slots) || {}, s = n || {};
@@ -2741,19 +2754,19 @@ const Lr = () => ({
2741
2754
  }, l);
2742
2755
  }, Tn = (e, t, n) => {
2743
2756
  var y, m;
2744
- const o = wn(n), r = p(t, o);
2757
+ const o = wn(n), r = g(t, o);
2745
2758
  if (!r)
2746
2759
  return null;
2747
2760
  const a = n.inputProps, u = ((y = a == null ? void 0 : a.fieldProps) == null ? void 0 : y.slots) || ((m = n.formFieldProps) == null ? void 0 : m.slots) || {};
2748
2761
  !u.renderInput && W(n.inputRender) && (u.renderInput = (f) => n.inputRender({
2749
2762
  ...f,
2750
2763
  column: n
2751
- })), u.renderShow || (u.renderShow = (f) => gt(e, n, {
2764
+ })), u.renderShow || (u.renderShow = (f) => pt(e, n, {
2752
2765
  value: f.value
2753
2766
  }, {
2754
2767
  render: "formReadRender"
2755
2768
  }) || f.value);
2756
- const l = pe(n), s = n.title, d = a ? {
2769
+ const l = ge(n), s = n.title, d = a ? {
2757
2770
  ...a,
2758
2771
  fieldProps: D(a.fieldProps, "slots")
2759
2772
  } : {
@@ -2767,7 +2780,7 @@ const Lr = () => ({
2767
2780
  label: s,
2768
2781
  ...d
2769
2782
  }, u);
2770
- }, da = (e) => e && !W(e) && e.elementType, bt = (e, t) => F(t, (n) => $e(e, n)), kn = (e, t) => {
2783
+ }, da = (e) => e && !W(e) && e.elementType, bt = (e, t) => L(t, (n) => $e(e, n)), kn = (e, t) => {
2771
2784
  var a;
2772
2785
  const n = t.elementProps, o = {
2773
2786
  ...t.elementProps
@@ -2775,9 +2788,9 @@ const Lr = () => ({
2775
2788
  return r && (typeof r == "object" ? o.class = Tt(r) : me(r) && r.indexOf(":") > 0 && (o.class = Tt`
2776
2789
  ${r}
2777
2790
  `)), ue((a = t.highConfig$) == null ? void 0 : a.registerPropsTrans, (u) => {
2778
- const l = p(n, u.name);
2791
+ const l = g(n, u.name);
2779
2792
  if (!(!l || Ne(l))) {
2780
- if (ee(l)) {
2793
+ if (ne(l)) {
2781
2794
  if (Me(l, (s) => Ne(s)))
2782
2795
  return;
2783
2796
  ve(o, u.name, bt(e, l));
@@ -2814,7 +2827,7 @@ const Lr = () => ({
2814
2827
  ...r
2815
2828
  };
2816
2829
  }, $e = (e, t) => {
2817
- const n = p(e, t.elementType) || t.elementType;
2830
+ const n = g(e, t.elementType) || t.elementType;
2818
2831
  if (t.highConfig$)
2819
2832
  return Oe(ma, {
2820
2833
  key: t.elementId,
@@ -2826,7 +2839,7 @@ const Lr = () => ({
2826
2839
  key: t.elementId,
2827
2840
  ...r
2828
2841
  }, o);
2829
- }, fa = (e) => ee(e) ? Yn(e) : me(e) && e.indexOf(".") > 0 ? e.substring(0, e.indexOf(".")) : e, ma = O({
2842
+ }, fa = (e) => ne(e) ? Yn(e) : me(e) && e.indexOf(".") > 0 ? e.substring(0, e.indexOf(".")) : e, ma = O({
2830
2843
  props: {
2831
2844
  elementMap: {
2832
2845
  type: Object
@@ -2846,33 +2859,33 @@ const Lr = () => ({
2846
2859
  elementConfig: a
2847
2860
  } = e, u = a.highConfig$, l = kn(r, a);
2848
2861
  ue((h = a.highConfig$) == null ? void 0 : h.registerEventList, (M) => {
2849
- const g = (...T) => {
2862
+ const p = (...T) => {
2850
2863
  const v = `${a.elementId}-${M.name}`;
2851
2864
  n({
2852
2865
  type: v,
2853
2866
  payload: T
2854
2867
  }), o(M.executeList, T);
2855
- }, S = Jt(M.name, l);
2856
- l && Zt(S) && en(S, l) && ve(l, S, g);
2868
+ }, P = Jt(M.name, l);
2869
+ l && Zt(P) && en(P, l) && ve(l, P, p);
2857
2870
  });
2858
- const s = x(() => {
2871
+ const s = E(() => {
2859
2872
  if (!u.registerStateList || Q(u.registerStateList) <= 0)
2860
2873
  return;
2861
2874
  const M = {
2862
2875
  ...l
2863
- }, g = G(u.registerStateList, (T) => !T.target || T.target === "prop"), S = F(g, (T) => {
2864
- const v = T.mapName || T.name, C = p(t, T.name);
2876
+ }, p = G(u.registerStateList, (T) => !T.target || T.target === "prop"), P = L(p, (T) => {
2877
+ const v = T.mapName || T.name, C = g(t, T.name);
2865
2878
  return ve(M, v, C), fa(v);
2866
2879
  });
2867
- return Z(M, S);
2868
- }), d = p(r, a.elementType) || a.elementType, y = Nn(r, a), m = se(G(u.registerStateList, (M) => M.target === "slot"), (M, g) => ({
2880
+ return ee(M, P);
2881
+ }), d = g(r, a.elementType) || a.elementType, y = Nn(r, a), m = se(G(u.registerStateList, (M) => M.target === "slot"), (M, p) => ({
2869
2882
  ...M,
2870
- [g.mapName]: () => p(t, g.name)
2883
+ [p.mapName]: () => g(t, p.name)
2871
2884
  }), {}), f = {
2872
2885
  ...y,
2873
2886
  ...m
2874
2887
  };
2875
- return () => p(s.value, "show$") === !1 ? null : Oe(d, {
2888
+ return () => g(s.value, "show$") === !1 ? null : Oe(d, {
2876
2889
  key: a.elementId,
2877
2890
  ...l,
2878
2891
  ...D(s.value, "show$")
@@ -2892,11 +2905,11 @@ const Lr = () => ({
2892
2905
  ve(e, r, n);
2893
2906
  });
2894
2907
  }, ke = (e, t) => {
2895
- ya(e, p(t, e.elementId));
2896
- const n = p(e, ["highConfig$", "registerPropsTrans"]);
2908
+ ya(e, g(t, e.elementId));
2909
+ const n = g(e, ["highConfig$", "registerPropsTrans"]);
2897
2910
  n && Q(n) > 0 && ue(n, (o) => {
2898
- const r = p(e.elementProps, o.name);
2899
- ee(r) ? ue(r, (a) => {
2911
+ const r = g(e.elementProps, o.name);
2912
+ ne(r) ? ue(r, (a) => {
2900
2913
  ke(a, t);
2901
2914
  }) : ke(r, t);
2902
2915
  }), e.children && Q(e.children) > 0 && ue(e.children, (o) => {
@@ -2912,7 +2925,7 @@ const Lr = () => ({
2912
2925
  const {
2913
2926
  execute: t
2914
2927
  } = Ee();
2915
- return oe(() => {
2928
+ return re(() => {
2916
2929
  e.initExecuteList && t(e.initExecuteList, []);
2917
2930
  }, []), () => null;
2918
2931
  }
@@ -2924,9 +2937,9 @@ const Lr = () => ({
2924
2937
  }) => O(() => {
2925
2938
  const r = _(), a = (s) => {
2926
2939
  const d = Gt(s);
2927
- return n && (ee(d) ? ue(d, (y) => ke(y, n)) : ke(d, n)), d;
2940
+ return n && (ne(d) ? ue(d, (y) => ke(y, n)) : ke(d, n)), d;
2928
2941
  };
2929
- oe(() => {
2942
+ re(() => {
2930
2943
  t && t.elementConfigs && (r.value = a(t.elementConfigs)), t != null && t.elementConfigs;
2931
2944
  }, []);
2932
2945
  const l = J()(U.LoadingKey);
@@ -2945,9 +2958,9 @@ const Lr = () => ({
2945
2958
  class: "pro-module-loading-dom"
2946
2959
  }, null)]
2947
2960
  }) : null;
2948
- }), An = Symbol("pro-curd"), re = () => ge(An), ha = (e) => be(An, e);
2949
- var $ = /* @__PURE__ */ ((e) => (e.LIST = "LIST", e.DETAIL = "DETAIL", e.ADD = "ADD", e.EDIT = "EDIT", e.DELETE = "DELETE", e))($ || {}), H = /* @__PURE__ */ ((e) => (e.EMIT = "EMIT", e.EXECUTE = "EXECUTE", e.PAGE = "PAGE", e.SUCCESS = "SUCCESS", e.FAIL = "FAIL", e))(H || {}), Pe = /* @__PURE__ */ ((e) => (e.ADD = "ADD", e.EDIT = "EDIT", e.DETAIL = "DETAIL", e))(Pe || {}), je = /* @__PURE__ */ ((e) => (e.NORMAL = "NORMAL", e.CONTINUE = "CONTINUE", e))(je || {});
2950
- const pa = () => ({
2961
+ }), An = Symbol("pro-curd"), ae = () => pe(An), ha = (e) => be(An, e);
2962
+ var j = /* @__PURE__ */ ((e) => (e.LIST = "LIST", e.DETAIL = "DETAIL", e.ADD = "ADD", e.EDIT = "EDIT", e.DELETE = "DELETE", e))(j || {}), H = /* @__PURE__ */ ((e) => (e.EMIT = "EMIT", e.EXECUTE = "EXECUTE", e.PAGE = "PAGE", e.SUCCESS = "SUCCESS", e.FAIL = "FAIL", e))(H || {}), Pe = /* @__PURE__ */ ((e) => (e.ADD = "ADD", e.EDIT = "EDIT", e.DETAIL = "DETAIL", e))(Pe || {}), je = /* @__PURE__ */ ((e) => (e.NORMAL = "NORMAL", e.CONTINUE = "CONTINUE", e))(je || {});
2963
+ const ga = () => ({
2951
2964
  rowKey: {
2952
2965
  type: String,
2953
2966
  default: "id"
@@ -2985,11 +2998,11 @@ const pa = () => ({
2985
2998
  subPageProps: {
2986
2999
  type: Object
2987
3000
  }
2988
- }), St = ["sendCurdEvent", "refreshList", "sendEvent", "sendRequest"], Lt = O({
3001
+ }), St = ["sendCurdEvent", "refreshList", "sendEvent", "sendRequest"], Ft = O({
2989
3002
  inheritAttrs: !1,
2990
3003
  props: {
2991
3004
  ...we,
2992
- ...pa()
3005
+ ...ga()
2993
3006
  },
2994
3007
  setup: (e, {
2995
3008
  slots: t,
@@ -3002,72 +3015,72 @@ const pa = () => ({
3002
3015
  state: u,
3003
3016
  sendEvent: l,
3004
3017
  sendRequest: s
3005
- } = Ee(), d = x(() => {
3018
+ } = Ee(), d = E(() => {
3006
3019
  if (e.title)
3007
3020
  return e.title;
3008
3021
  if (e.useMenuName && o) {
3009
3022
  const {
3010
- menus: b,
3023
+ menus: S,
3011
3024
  convertName: i
3012
3025
  } = o, {
3013
3026
  target: I
3014
- } = _e(b.value, (E) => E.value === i(r));
3027
+ } = _e(S.value, (x) => x.value === i(r));
3015
3028
  return (I == null ? void 0 : I.label) || "";
3016
3029
  }
3017
3030
  return "";
3018
- }), y = x(() => et(e.columns, e.columnState, e.columnState2)), m = (b, i) => {
3019
- const I = G(y.value, (E) => {
3020
- const B = p(E, ["extra", b]) || p(E, b);
3021
- return i ? B !== !1 : B;
3031
+ }), y = E(() => et(e.columns, e.columnState, e.columnState2)), m = (S, i) => {
3032
+ const I = G(y.value, (x) => {
3033
+ const $ = g(x, ["extra", S]) || g(x, S);
3034
+ return i ? $ !== !1 : $;
3022
3035
  });
3023
- return Ht(I, (E) => p(E, ["extra", `${b}Sort`]) || p(E, `${b}Sort`));
3024
- }, f = x(() => m("form", !0)), h = x(() => m("detail", !0)), M = x(() => m("table", !0)), g = x(() => m("search"));
3025
- let S;
3026
- const T = (b) => {
3027
- s($.LIST, {
3028
- ...S,
3029
- ...b
3036
+ return Ht(I, (x) => g(x, ["extra", `${S}Sort`]) || g(x, `${S}Sort`));
3037
+ }, f = E(() => m("form", !0)), h = E(() => m("detail", !0)), M = E(() => m("table", !0)), p = E(() => m("search"));
3038
+ let P;
3039
+ const T = (S) => {
3040
+ s(j.LIST, {
3041
+ ...P,
3042
+ ...S
3030
3043
  });
3031
- }, v = (b) => {
3044
+ }, v = (S) => {
3032
3045
  l({
3033
- type: b.action,
3034
- payload: D(b, "action", "source"),
3035
- source: b.source
3046
+ type: S.action,
3047
+ payload: D(S, "action", "source"),
3048
+ source: S.source
3036
3049
  });
3037
3050
  };
3038
- pt(({
3039
- type: b,
3051
+ gt(({
3052
+ type: S,
3040
3053
  payload: i,
3041
3054
  source: I
3042
3055
  }) => {
3043
3056
  if (I)
3044
3057
  return;
3045
- let E = b, B = i == null ? void 0 : i.type;
3046
- E === Fe.Success && (E = p(i, ["requestOpts", "action"]), B = H.SUCCESS);
3058
+ let x = S, $ = i == null ? void 0 : i.type;
3059
+ x === Le.Success && (x = g(i, ["requestOpts", "action"]), $ = H.SUCCESS);
3047
3060
  const {
3048
- values: te,
3049
- record: ne
3061
+ values: Z,
3062
+ record: te
3050
3063
  } = i;
3051
- switch (E) {
3052
- case $.LIST:
3053
- B === H.EMIT && (S = te, T());
3064
+ switch (x) {
3065
+ case j.LIST:
3066
+ $ === H.EMIT && (P = Z, T());
3054
3067
  return;
3055
- case $.ADD:
3056
- B === H.EXECUTE && s($.ADD, te, u.detailData);
3068
+ case j.ADD:
3069
+ $ === H.EXECUTE && s(j.ADD, Z, u.detailData);
3057
3070
  return;
3058
- case $.EDIT:
3059
- B === H.EXECUTE && s($.EDIT, te, u.detailData);
3071
+ case j.EDIT:
3072
+ $ === H.EXECUTE && s(j.EDIT, Z, u.detailData);
3060
3073
  return;
3061
- case $.DELETE:
3062
- B === H.EMIT ? s($.DELETE, ne, e.rowKey) : B === H.SUCCESS && T();
3074
+ case j.DELETE:
3075
+ $ === H.EMIT ? s(j.DELETE, te, e.rowKey) : $ === H.SUCCESS && T();
3063
3076
  return;
3064
3077
  }
3065
- E && b === H.EXECUTE && s(E, te);
3078
+ x && S === H.EXECUTE && s(x, Z);
3066
3079
  });
3067
- const C = se(e.operates, (b, i) => ({
3068
- ...b,
3080
+ const C = se(e.operates, (S, i) => ({
3081
+ ...S,
3069
3082
  [i.action]: i
3070
- }), {}), k = (b) => p(C, b), N = x(() => e.defaultAddRecord), L = x(() => e.listProps), V = x(() => e.formProps), j = x(() => e.descProps), w = x(() => e.modalProps), A = x(() => e.pageProps), z = x(() => e.subPageProps);
3083
+ }), {}), k = (S) => g(C, S), N = E(() => e.defaultAddRecord), R = E(() => e.listProps), V = E(() => e.formProps), B = E(() => e.descProps), w = E(() => e.modalProps), A = E(() => e.pageProps), z = E(() => e.subPageProps);
3071
3084
  return ha({
3072
3085
  columns: y,
3073
3086
  getSignColumns: m,
@@ -3078,16 +3091,16 @@ const pa = () => ({
3078
3091
  formColumns: f,
3079
3092
  descColumns: h,
3080
3093
  tableColumns: M,
3081
- searchColumns: g,
3094
+ searchColumns: p,
3082
3095
  sendCurdEvent: v,
3083
3096
  operates: e.operates,
3084
3097
  getOperate: k,
3085
3098
  refreshList: T,
3086
3099
  defaultAddRecord: N,
3087
3100
  title: d.value,
3088
- listProps: L,
3101
+ listProps: R,
3089
3102
  formProps: V,
3090
- descProps: j,
3103
+ descProps: B,
3091
3104
  modalProps: w,
3092
3105
  pageProps: A,
3093
3106
  subPageProps: z
@@ -3095,14 +3108,14 @@ const pa = () => ({
3095
3108
  sendCurdEvent: v,
3096
3109
  refreshList: T
3097
3110
  }), () => {
3098
- var b;
3099
- return (b = t.default) == null ? void 0 : b.call(t);
3111
+ var S;
3112
+ return (S = t.default) == null ? void 0 : S.call(t);
3100
3113
  };
3101
3114
  }
3102
3115
  }), Qe = O({
3103
3116
  props: {
3104
3117
  ...D(ze.props, "state", "requests"),
3105
- ...Lt.props,
3118
+ ...Ft.props,
3106
3119
  curdState: {
3107
3120
  type: Object
3108
3121
  }
@@ -3117,7 +3130,7 @@ const pa = () => ({
3117
3130
  } = le(), a = _(), u = _(), l = e.curdState || ye({
3118
3131
  detailData: {}
3119
3132
  }), s = {
3120
- [$.LIST]: {
3133
+ [j.LIST]: {
3121
3134
  convertParams: (f) => f,
3122
3135
  convertData: (f) => {
3123
3136
  var h;
@@ -3126,8 +3139,8 @@ const pa = () => ({
3126
3139
  loadingName: "listLoading",
3127
3140
  stateName: "listData"
3128
3141
  },
3129
- [$.DETAIL]: {
3130
- convertParams: (f, h) => Z(f, h),
3142
+ [j.DETAIL]: {
3143
+ convertParams: (f, h) => ee(f, h),
3131
3144
  convertData: (f) => {
3132
3145
  var h;
3133
3146
  return (h = f.res) == null ? void 0 : h.data;
@@ -3136,7 +3149,7 @@ const pa = () => ({
3136
3149
  stateName: "detailData",
3137
3150
  label: "\u8BE6\u60C5"
3138
3151
  },
3139
- [$.ADD]: {
3152
+ [j.ADD]: {
3140
3153
  convertParams: (f, h) => ({
3141
3154
  body: {
3142
3155
  ...h,
@@ -3146,7 +3159,7 @@ const pa = () => ({
3146
3159
  loadingName: "operateLoading",
3147
3160
  label: "\u6DFB\u52A0"
3148
3161
  },
3149
- [$.EDIT]: {
3162
+ [j.EDIT]: {
3150
3163
  convertParams: (f, h) => ({
3151
3164
  body: {
3152
3165
  ...h,
@@ -3156,13 +3169,13 @@ const pa = () => ({
3156
3169
  loadingName: "operateLoading",
3157
3170
  label: "\u7F16\u8F91"
3158
3171
  },
3159
- [$.DELETE]: {
3160
- convertParams: (f, h) => Z(f, h),
3172
+ [j.DELETE]: {
3173
+ convertParams: (f, h) => ee(f, h),
3161
3174
  label: "\u5220\u9664"
3162
3175
  }
3163
- }, d = F(e.operates, (f) => {
3164
- var g;
3165
- const h = p(s, f.action), M = ((g = e.convertOperate) == null ? void 0 : g.call(e, f, h)) || f;
3176
+ }, d = L(e.operates, (f) => {
3177
+ var p;
3178
+ const h = g(s, f.action), M = ((p = e.convertOperate) == null ? void 0 : p.call(e, f, h)) || f;
3166
3179
  return {
3167
3180
  ...h,
3168
3181
  ...M
@@ -3187,12 +3200,12 @@ const pa = () => ({
3187
3200
  }
3188
3201
  }), () => c(ze, K({
3189
3202
  ref: a
3190
- }, Z(e, m), {
3203
+ }, ee(e, m), {
3191
3204
  elementMap: e.elementMap || o,
3192
3205
  state: l,
3193
3206
  requests: y
3194
3207
  }), {
3195
- default: () => [c(Lt, K({
3208
+ default: () => [c(Ft, K({
3196
3209
  ref: u
3197
3210
  }, D(e, ...m, "curdState", "operates", "convertOperate"), {
3198
3211
  formElementMap: e.formElementMap || r,
@@ -3207,7 +3220,7 @@ const pa = () => ({
3207
3220
  curdState: t,
3208
3221
  getOperate: n,
3209
3222
  title: o
3210
- } = re(), r = () => {
3223
+ } = ae(), r = () => {
3211
3224
  e({
3212
3225
  type: "mode",
3213
3226
  payload: void 0
@@ -3221,11 +3234,11 @@ const pa = () => ({
3221
3234
  type: "addAction",
3222
3235
  payload: void 0
3223
3236
  });
3224
- }, a = x(() => {
3237
+ }, a = E(() => {
3225
3238
  const l = t.mode;
3226
3239
  if (!!l)
3227
3240
  return n(l);
3228
- }), u = x(() => {
3241
+ }), u = E(() => {
3229
3242
  const l = a.value;
3230
3243
  if (!l)
3231
3244
  return "";
@@ -3239,13 +3252,13 @@ const pa = () => ({
3239
3252
  operate: a,
3240
3253
  opeTitle: u
3241
3254
  };
3242
- }, ga = () => ({
3255
+ }, pa = () => ({
3243
3256
  defaultAddRecord: {
3244
3257
  type: Object
3245
3258
  }
3246
3259
  }), He = O({
3247
3260
  props: {
3248
- ...ga()
3261
+ ...pa()
3249
3262
  },
3250
3263
  setup: (e) => {
3251
3264
  var M;
@@ -3259,63 +3272,63 @@ const pa = () => ({
3259
3272
  getOperate: u,
3260
3273
  refreshList: l,
3261
3274
  defaultAddRecord: s
3262
- } = re(), d = (M = a == null ? void 0 : a.value) == null ? void 0 : M.pageState, y = (g) => {
3263
- const S = u($.DETAIL);
3264
- S != null && S.actor ? n($.DETAIL, g, o) : t({
3275
+ } = ae(), d = (M = a == null ? void 0 : a.value) == null ? void 0 : M.pageState, y = (p) => {
3276
+ const P = u(j.DETAIL);
3277
+ P != null && P.actor ? n(j.DETAIL, p, o) : t({
3265
3278
  type: "detailData",
3266
- payload: Gt(g)
3279
+ payload: Gt(p)
3267
3280
  });
3268
- }, m = (g, {
3269
- record: S
3281
+ }, m = (p, {
3282
+ record: P
3270
3283
  }) => {
3271
- g === H.EMIT && (t({
3284
+ p === H.EMIT && (t({
3272
3285
  type: "mode",
3273
3286
  payload: Pe.DETAIL
3274
- }), y(S));
3275
- }, f = (g) => {
3276
- g === H.EMIT ? (t({
3287
+ }), y(P));
3288
+ }, f = (p) => {
3289
+ p === H.EMIT ? (t({
3277
3290
  type: "mode",
3278
3291
  payload: Pe.ADD
3279
3292
  }), t({
3280
3293
  type: "detailData",
3281
3294
  payload: e.defaultAddRecord || (s == null ? void 0 : s.value) || {}
3282
- })) : g === H.SUCCESS && (d && (d.page = 1), l(), r.addAction === je.CONTINUE ? t({
3295
+ })) : p === H.SUCCESS && (d && (d.page = 1), l(), r.addAction === je.CONTINUE ? t({
3283
3296
  type: "detailData",
3284
3297
  payload: e.defaultAddRecord || (s == null ? void 0 : s.value) || {}
3285
3298
  }) : t({
3286
3299
  type: "mode",
3287
3300
  payload: void 0
3288
3301
  }));
3289
- }, h = (g, {
3290
- record: S
3302
+ }, h = (p, {
3303
+ record: P
3291
3304
  }) => {
3292
- g === H.EMIT ? (t({
3305
+ p === H.EMIT ? (t({
3293
3306
  type: "mode",
3294
3307
  payload: Pe.EDIT
3295
- }), y(S)) : g === H.SUCCESS && (t({
3308
+ }), y(P)) : p === H.SUCCESS && (t({
3296
3309
  type: "mode",
3297
3310
  payload: void 0
3298
3311
  }), l());
3299
3312
  };
3300
- return pt(({
3301
- type: g,
3302
- payload: S,
3313
+ return gt(({
3314
+ type: p,
3315
+ payload: P,
3303
3316
  source: T
3304
3317
  }) => {
3305
3318
  if (T)
3306
3319
  return;
3307
- let v = g, C = S == null ? void 0 : S.type;
3308
- const k = S == null ? void 0 : S.record;
3309
- switch (v === Fe.Success && (v = p(S, ["requestOpts", "action"]), C = H.SUCCESS), v) {
3310
- case $.DETAIL:
3320
+ let v = p, C = P == null ? void 0 : P.type;
3321
+ const k = P == null ? void 0 : P.record;
3322
+ switch (v === Le.Success && (v = g(P, ["requestOpts", "action"]), C = H.SUCCESS), v) {
3323
+ case j.DETAIL:
3311
3324
  m(C, {
3312
3325
  record: k
3313
3326
  });
3314
3327
  break;
3315
- case $.ADD:
3328
+ case j.ADD:
3316
3329
  f(C);
3317
3330
  break;
3318
- case $.EDIT:
3331
+ case j.EDIT:
3319
3332
  h(C, {
3320
3333
  record: k
3321
3334
  });
@@ -3340,7 +3353,7 @@ const pa = () => ({
3340
3353
  }, D(e, r)), {
3341
3354
  default: () => {
3342
3355
  var l;
3343
- return [c(He, Z(e, r), null), (l = t.default) == null ? void 0 : l.call(t)];
3356
+ return [c(He, ee(e, r), null), (l = t.default) == null ? void 0 : l.call(t)];
3344
3357
  }
3345
3358
  }) : null;
3346
3359
  }
@@ -3362,7 +3375,7 @@ const pa = () => ({
3362
3375
  } = Ee(), {
3363
3376
  rowKey: a,
3364
3377
  curdState: u
3365
- } = re(), l = (m) => {
3378
+ } = ae(), l = (m) => {
3366
3379
  m === H.PAGE && (o({
3367
3380
  type: "mode",
3368
3381
  payload: void 0
@@ -3381,11 +3394,11 @@ const pa = () => ({
3381
3394
  }) => {
3382
3395
  m === H.EMIT ? t.push({
3383
3396
  path: `${n.path}/detail`,
3384
- query: Z(f, a)
3397
+ query: ee(f, a)
3385
3398
  }) : m === H.PAGE && (o({
3386
3399
  type: "mode",
3387
3400
  payload: Pe.DETAIL
3388
- }), r($.DETAIL, n.query, a));
3401
+ }), r(j.DETAIL, n.query, a));
3389
3402
  }, d = (m) => {
3390
3403
  m === H.EMIT ? t.push({
3391
3404
  path: `${n.path}/add`
@@ -3398,42 +3411,42 @@ const pa = () => ({
3398
3411
  })) : m === H.SUCCESS && (u.addAction === je.CONTINUE ? o({
3399
3412
  type: "detailData",
3400
3413
  payload: e.defaultAddRecord || {}
3401
- }) : e.routeBack ? e.routeBack($.ADD) : t.go(-1));
3414
+ }) : e.routeBack ? e.routeBack(j.ADD) : t.go(-1));
3402
3415
  }, y = (m, {
3403
3416
  record: f
3404
3417
  }) => {
3405
3418
  m === H.EMIT ? t.push({
3406
3419
  path: `${n.path}/edit`,
3407
- query: Z(f, a)
3420
+ query: ee(f, a)
3408
3421
  }) : m === H.PAGE ? (o({
3409
3422
  type: "mode",
3410
3423
  payload: Pe.EDIT
3411
- }), r($.DETAIL, n.query, a)) : m === H.SUCCESS && (e.routeBack ? e.routeBack($.EDIT) : t.go(-1));
3424
+ }), r(j.DETAIL, n.query, a)) : m === H.SUCCESS && (e.routeBack ? e.routeBack(j.EDIT) : t.go(-1));
3412
3425
  };
3413
- return pt(({
3426
+ return gt(({
3414
3427
  type: m,
3415
3428
  payload: f,
3416
3429
  source: h
3417
3430
  }) => {
3418
3431
  if (h)
3419
3432
  return;
3420
- let M = m, g = f == null ? void 0 : f.type;
3421
- const S = f == null ? void 0 : f.record;
3422
- switch (M === Fe.Success && (M = p(f, ["requestOpts", "action"]), g = H.SUCCESS), M) {
3423
- case $.LIST:
3424
- l(g);
3433
+ let M = m, p = f == null ? void 0 : f.type;
3434
+ const P = f == null ? void 0 : f.record;
3435
+ switch (M === Le.Success && (M = g(f, ["requestOpts", "action"]), p = H.SUCCESS), M) {
3436
+ case j.LIST:
3437
+ l(p);
3425
3438
  break;
3426
- case $.DETAIL:
3427
- s(g, {
3428
- record: S
3439
+ case j.DETAIL:
3440
+ s(p, {
3441
+ record: P
3429
3442
  });
3430
3443
  break;
3431
- case $.ADD:
3432
- d(g);
3444
+ case j.ADD:
3445
+ d(p);
3433
3446
  break;
3434
- case $.EDIT:
3435
- y(g, {
3436
- record: S
3447
+ case j.EDIT:
3448
+ y(p, {
3449
+ record: P
3437
3450
  });
3438
3451
  break;
3439
3452
  }
@@ -3456,11 +3469,11 @@ const pa = () => ({
3456
3469
  }, D(e, r)), {
3457
3470
  default: () => {
3458
3471
  var a;
3459
- return [c(ot, Z(e, r), null), (a = t.default) == null ? void 0 : a.call(t)];
3472
+ return [c(ot, ee(e, r), null), (a = t.default) == null ? void 0 : a.call(t)];
3460
3473
  }
3461
3474
  });
3462
3475
  }
3463
- }), Ft = O({
3476
+ }), Lt = O({
3464
3477
  props: {
3465
3478
  buttonProps: Object
3466
3479
  },
@@ -3470,13 +3483,13 @@ const pa = () => ({
3470
3483
  const n = Pn(), {
3471
3484
  getOperate: o,
3472
3485
  sendCurdEvent: r
3473
- } = re(), a = o($.ADD), u = () => {
3486
+ } = ae(), a = o(j.ADD), u = () => {
3474
3487
  if (a != null && a.onClick) {
3475
3488
  a.onClick();
3476
3489
  return;
3477
3490
  }
3478
3491
  r({
3479
- action: $.ADD,
3492
+ action: j.ADD,
3480
3493
  type: H.EMIT
3481
3494
  });
3482
3495
  }, s = J()(U.ButtonKey);
@@ -3517,10 +3530,10 @@ const pa = () => ({
3517
3530
  sendCurdEvent: l,
3518
3531
  operates: s,
3519
3532
  refreshList: d
3520
- } = re(), y = F(
3533
+ } = ae(), y = L(
3521
3534
  G(s, (C) => {
3522
3535
  const k = C.action;
3523
- return k === $.DETAIL || k === $.EDIT || k === $.DELETE || C.tableOperate;
3536
+ return k === j.DETAIL || k === j.EDIT || k === j.DELETE || C.tableOperate;
3524
3537
  }),
3525
3538
  (C) => {
3526
3539
  const k = {
@@ -3537,7 +3550,7 @@ const pa = () => ({
3537
3550
  }
3538
3551
  ), m = (C) => {
3539
3552
  l({
3540
- action: $.LIST,
3553
+ action: j.LIST,
3541
3554
  type: H.EMIT,
3542
3555
  values: C
3543
3556
  });
@@ -3545,11 +3558,11 @@ const pa = () => ({
3545
3558
  sr(() => {
3546
3559
  e.activatedRefresh && d();
3547
3560
  });
3548
- const f = x(() => ({
3561
+ const f = E(() => ({
3549
3562
  formElementMap: o,
3550
3563
  columns: a.value,
3551
3564
  ...e.searchProps
3552
- })), h = x(() => {
3565
+ })), h = E(() => {
3553
3566
  var C, k;
3554
3567
  return {
3555
3568
  elementMap: n,
@@ -3562,51 +3575,51 @@ const pa = () => ({
3562
3575
  ...(k = e.tableProps) == null ? void 0 : k.operate
3563
3576
  }
3564
3577
  };
3565
- }), M = x(() => {
3578
+ }), M = E(() => {
3566
3579
  var C;
3567
3580
  return e.paginationProps === !1 ? !1 : {
3568
3581
  total: (C = r.listData) == null ? void 0 : C.total,
3569
3582
  ...e.paginationProps
3570
3583
  };
3571
- }), g = x(() => {
3584
+ }), p = E(() => {
3572
3585
  var C;
3573
3586
  return e.paginationProps === !1 ? !1 : !!((C = r.listData) != null && C.total);
3574
- }), S = Y(Rt()), v = J()(U.ProListKey);
3587
+ }), P = Y(Rt()), v = J()(U.ProListKey);
3575
3588
  return () => {
3576
3589
  var k, N;
3577
3590
  if (!v)
3578
3591
  return null;
3579
3592
  const C = ["pro-curd-list"];
3580
- return g.value && C.push("has-pagination"), c(v, K({
3593
+ return p.value && C.push("has-pagination"), c(v, K({
3581
3594
  class: C
3582
- }, D(e, ...S, "searchProps", "tableProps", "paginationProps"), {
3595
+ }, D(e, ...P, "searchProps", "tableProps", "paginationProps"), {
3583
3596
  searchProps: f.value,
3584
3597
  tableProps: h.value,
3585
3598
  paginationProps: M.value,
3586
3599
  onSearch: m
3587
3600
  }), {
3588
3601
  "search-end": (k = e.addConfig) != null && k.inSearch ? () => {
3589
- var L;
3602
+ var R;
3590
3603
  return c("div", {
3591
3604
  class: "pro-curd-list-search-end"
3592
- }, [c(Ft, (L = e.addConfig) == null ? void 0 : L.buttonProps, null)]);
3605
+ }, [c(Lt, (R = e.addConfig) == null ? void 0 : R.buttonProps, null)]);
3593
3606
  } : void 0,
3594
- "table-toolbarExtra": (N = e.addConfig) != null && N.inTable ? (L) => {
3607
+ "table-toolbarExtra": (N = e.addConfig) != null && N.inTable ? (R) => {
3595
3608
  var V;
3596
- return c(fe, null, [c(Ft, (V = e.addConfig) == null ? void 0 : V.buttonProps, null), L]);
3609
+ return c(fe, null, [c(Lt, (V = e.addConfig) == null ? void 0 : V.buttonProps, null), R]);
3597
3610
  } : void 0,
3598
3611
  ...t,
3599
- search: t.search ? (L) => t.search(L, f.value) : void 0,
3600
- table: t.table ? (L) => t.table(L, h.value) : void 0,
3601
- pagination: t.pagination ? (L) => t.pagination(L, M.value) : void 0
3612
+ search: t.search ? (R) => t.search(R, f.value) : void 0,
3613
+ table: t.table ? (R) => t.table(R, h.value) : void 0,
3614
+ pagination: t.pagination ? (R) => t.pagination(R, M.value) : void 0
3602
3615
  });
3603
3616
  };
3604
3617
  }
3605
3618
  }), Sa = O(() => {
3606
3619
  const {
3607
3620
  listProps: e
3608
- } = re();
3609
- return () => c(Dn, D(e == null ? void 0 : e.value, "slots"), p(e == null ? void 0 : e.value, "slots"));
3621
+ } = ae();
3622
+ return () => c(Dn, D(e == null ? void 0 : e.value, "slots"), g(e == null ? void 0 : e.value, "slots"));
3610
3623
  }), Pa = O({
3611
3624
  props: {
3612
3625
  ...In.props,
@@ -3620,7 +3633,7 @@ const pa = () => ({
3620
3633
  }) => {
3621
3634
  const {
3622
3635
  listProps: n
3623
- } = re(), r = J()(U.ProPageKey);
3636
+ } = ae(), r = J()(U.ProPageKey);
3624
3637
  return () => c(r, K({
3625
3638
  class: "curd-list has-footer"
3626
3639
  }, e), {
@@ -3628,7 +3641,7 @@ const pa = () => ({
3628
3641
  divide2: () => c("div", {
3629
3642
  class: "curd-list-grow"
3630
3643
  }, null),
3631
- ...p(n == null ? void 0 : n.value, "slots")
3644
+ ...g(n == null ? void 0 : n.value, "slots")
3632
3645
  })],
3633
3646
  ...t
3634
3647
  });
@@ -3636,8 +3649,8 @@ const pa = () => ({
3636
3649
  }), Ca = O(() => {
3637
3650
  const {
3638
3651
  pageProps: e
3639
- } = re();
3640
- return () => c(Pa, D(e == null ? void 0 : e.value, "slots"), p(e == null ? void 0 : e.value, "slots"));
3652
+ } = ae();
3653
+ return () => c(Pa, D(e == null ? void 0 : e.value, "slots"), g(e == null ? void 0 : e.value, "slots"));
3641
3654
  }), Ma = () => ({
3642
3655
  signName: {
3643
3656
  type: String
@@ -3658,9 +3671,9 @@ const pa = () => ({
3658
3671
  formColumns: l,
3659
3672
  getSignColumns: s,
3660
3673
  sendCurdEvent: d
3661
- } = re(), y = _();
3674
+ } = ae(), y = _();
3662
3675
  n(Ie(e.formMethods || [], y));
3663
- const m = x(() => e.signName ? s(e.signName) : l.value), f = () => {
3676
+ const m = E(() => e.signName ? s(e.signName) : l.value), f = () => {
3664
3677
  var v;
3665
3678
  u.addAction = je.NORMAL, (v = y.value) == null || v.submit();
3666
3679
  }, h = () => {
@@ -3686,13 +3699,13 @@ const pa = () => ({
3686
3699
  },
3687
3700
  show: !1
3688
3701
  }
3689
- ], g = (v) => {
3690
- o.onFinish || (u.mode === $.EDIT ? d({
3691
- action: $.EDIT,
3702
+ ], p = (v) => {
3703
+ o.onFinish || (u.mode === j.EDIT ? d({
3704
+ action: j.EDIT,
3692
3705
  type: H.EXECUTE,
3693
3706
  values: v
3694
3707
  }) : d({
3695
- action: $.ADD,
3708
+ action: j.ADD,
3696
3709
  type: H.EXECUTE,
3697
3710
  values: v
3698
3711
  }));
@@ -3704,23 +3717,23 @@ const pa = () => ({
3704
3717
  elementMap: e.elementMap || r,
3705
3718
  formElementMap: e.formElementMap || a,
3706
3719
  columns: e.columns || m.value,
3707
- readonly: u.mode === $.DETAIL,
3720
+ readonly: u.mode === j.DETAIL,
3708
3721
  model: e.model || u.detailData,
3709
- hideRequiredMark: u.mode === $.DETAIL,
3722
+ hideRequiredMark: u.mode === j.DETAIL,
3710
3723
  operate: e.operate ? {
3711
3724
  items: M,
3712
3725
  onSubmit: f,
3713
3726
  onContinue: h,
3714
3727
  ...e.operate
3715
3728
  } : void 0,
3716
- onFinish: g
3729
+ onFinish: p
3717
3730
  }), t) : null;
3718
3731
  }
3719
3732
  }), To = O(() => {
3720
3733
  const {
3721
3734
  formProps: e
3722
- } = re();
3723
- return () => c(nt, D(e == null ? void 0 : e.value, "slots"), p(e == null ? void 0 : e.value, "slots"));
3735
+ } = ae();
3736
+ return () => c(nt, D(e == null ? void 0 : e.value, "slots"), g(e == null ? void 0 : e.value, "slots"));
3724
3737
  }), Ia = () => ({
3725
3738
  signName: {
3726
3739
  type: String
@@ -3736,7 +3749,7 @@ const pa = () => ({
3736
3749
  curdState: n,
3737
3750
  descColumns: o,
3738
3751
  getSignColumns: r
3739
- } = re(), a = x(() => e.signName ? r(e.signName) : o.value);
3752
+ } = ae(), a = E(() => e.signName ? r(e.signName) : o.value);
3740
3753
  return () => c(Jr, K(D(e, "signName", "model", "columns"), {
3741
3754
  model: e.model || n.detailData,
3742
3755
  columns: a.value
@@ -3745,14 +3758,14 @@ const pa = () => ({
3745
3758
  }), ko = O(() => {
3746
3759
  const {
3747
3760
  descProps: e
3748
- } = re();
3761
+ } = ae();
3749
3762
  return () => c(xa, K({
3750
3763
  class: "pro-curd-desc"
3751
- }, D(e == null ? void 0 : e.value, "slots")), p(e == null ? void 0 : e.value, "slots"));
3764
+ }, D(e == null ? void 0 : e.value, "slots")), g(e == null ? void 0 : e.value, "slots"));
3752
3765
  }), $t = () => ({
3753
3766
  validMode: {
3754
3767
  type: Array,
3755
- default: [$.ADD, $.DETAIL, $.EDIT]
3768
+ default: [j.ADD, j.DETAIL, j.EDIT]
3756
3769
  },
3757
3770
  loadingOpts: {
3758
3771
  type: Object
@@ -3769,10 +3782,10 @@ const pa = () => ({
3769
3782
  }) => {
3770
3783
  const {
3771
3784
  curdState: n
3772
- } = re(), {
3785
+ } = ae(), {
3773
3786
  clearMode: o,
3774
3787
  opeTitle: r
3775
- } = On(), a = x(() => e.title || r.value), u = x(() => !!Me(e.validMode, (f) => f === n.mode)), l = (f) => {
3788
+ } = On(), a = E(() => e.title || r.value), u = E(() => !!Me(e.validMode, (f) => f === n.mode)), l = (f) => {
3776
3789
  f || o();
3777
3790
  }, s = Y($t()), d = J(), y = d(U.ModalKey), m = d(U.LoadingKey);
3778
3791
  return () => {
@@ -3785,8 +3798,8 @@ const pa = () => ({
3785
3798
  visible: !0,
3786
3799
  title: a.value,
3787
3800
  confirmLoading: n.operateLoading,
3788
- maskClosable: f === $.DETAIL,
3789
- footer: n.detailLoading || f === $.DETAIL ? !1 : void 0
3801
+ maskClosable: f === j.DETAIL,
3802
+ footer: n.detailLoading || f === j.DETAIL ? !1 : void 0
3790
3803
  }, e.overrideProps, {
3791
3804
  "onUpdate:modelValue": l
3792
3805
  }), {
@@ -3829,7 +3842,7 @@ const pa = () => ({
3829
3842
  const {
3830
3843
  modalProps: e,
3831
3844
  formProps: t
3832
- } = re(), n = _();
3845
+ } = ae(), n = _();
3833
3846
  return () => c(Kn, K(D(e == null ? void 0 : e.value, "slots"), {
3834
3847
  onOk: () => {
3835
3848
  var o;
@@ -3838,13 +3851,13 @@ const pa = () => ({
3838
3851
  }), {
3839
3852
  default: () => [c(nt, K({
3840
3853
  ref: n
3841
- }, D(t == null ? void 0 : t.value, "slots")), p(t == null ? void 0 : t.value, "slots"))],
3842
- ...p(e == null ? void 0 : e.value, "slots")
3854
+ }, D(t == null ? void 0 : t.value, "slots")), g(t == null ? void 0 : t.value, "slots"))],
3855
+ ...g(e == null ? void 0 : e.value, "slots")
3843
3856
  });
3844
3857
  }), jt = () => ({
3845
3858
  validMode: {
3846
3859
  type: Array,
3847
- default: [$.ADD, $.DETAIL, $.EDIT]
3860
+ default: [j.ADD, j.DETAIL, j.EDIT]
3848
3861
  },
3849
3862
  operate: {
3850
3863
  type: Object
@@ -3876,14 +3889,14 @@ const pa = () => ({
3876
3889
  }) => {
3877
3890
  const {
3878
3891
  curdState: o
3879
- } = re(), {
3892
+ } = ae(), {
3880
3893
  clearMode: r,
3881
3894
  opeTitle: a
3882
- } = On(), u = x(() => e.title || a.value), l = x(() => !!Me(e.validMode, (h) => h === o.mode)), s = () => {
3895
+ } = On(), u = E(() => e.title || a.value), l = E(() => !!Me(e.validMode, (h) => h === o.mode)), s = () => {
3883
3896
  t("ok");
3884
- }, d = x(() => {
3897
+ }, d = E(() => {
3885
3898
  var M;
3886
- if (o.mode === $.DETAIL)
3899
+ if (o.mode === j.DETAIL)
3887
3900
  return [];
3888
3901
  const h = (M = e.operate) == null ? void 0 : M.items;
3889
3902
  return Q(h) > 0 ? h : [{
@@ -3906,7 +3919,7 @@ const pa = () => ({
3906
3919
  title: u.value,
3907
3920
  onBackClick: e.onBackClick || r
3908
3921
  }), {
3909
- footer: () => o.mode === $.DETAIL ? null : c(ht, K(e.operate, {
3922
+ footer: () => o.mode === j.DETAIL ? null : c(ht, K(e.operate, {
3910
3923
  items: d.value
3911
3924
  }), null),
3912
3925
  ...n
@@ -3921,7 +3934,7 @@ const pa = () => ({
3921
3934
  }) => {
3922
3935
  const {
3923
3936
  formProps: n
3924
- } = re(), o = _(), r = () => {
3937
+ } = ae(), o = _(), r = () => {
3925
3938
  var a;
3926
3939
  (a = o.value) == null || a.submit();
3927
3940
  };
@@ -3932,7 +3945,7 @@ const pa = () => ({
3932
3945
  var a, u;
3933
3946
  return [(a = t.start) == null ? void 0 : a.call(t), c(nt, K({
3934
3947
  ref: o
3935
- }, D(n == null ? void 0 : n.value, "slots")), p(n == null ? void 0 : n.value, "slots")), (u = t.end) == null ? void 0 : u.call(t)];
3948
+ }, D(n == null ? void 0 : n.value, "slots")), g(n == null ? void 0 : n.value, "slots")), (u = t.end) == null ? void 0 : u.call(t)];
3936
3949
  },
3937
3950
  ...D(t, "start")
3938
3951
  });
@@ -3940,8 +3953,8 @@ const pa = () => ({
3940
3953
  }), Ta = O(() => {
3941
3954
  const {
3942
3955
  subPageProps: e
3943
- } = re();
3944
- return () => c(wa, D(e == null ? void 0 : e.value, "slots"), p(e == null ? void 0 : e.value, "slots"));
3956
+ } = ae();
3957
+ return () => c(wa, D(e == null ? void 0 : e.value, "slots"), g(e == null ? void 0 : e.value, "slots"));
3945
3958
  }), qt = () => ({
3946
3959
  listType: {
3947
3960
  type: String,
@@ -3974,7 +3987,7 @@ const pa = () => ({
3974
3987
  });
3975
3988
  };
3976
3989
  }
3977
- }), ka = on("app-config", void 0, !0), Ln = () => {
3990
+ }), ka = on("app-config", void 0, !0), Fn = () => {
3978
3991
  const {
3979
3992
  appConfig: e
3980
3993
  } = le(), [t, n] = ka(), o = ye({
@@ -4012,19 +4025,19 @@ const pa = () => ({
4012
4025
  appConfig: o,
4013
4026
  setAppConfig: r,
4014
4027
  delAppConfig: a
4015
- } = Ln(), u = ye({
4028
+ } = Fn(), u = ye({
4016
4029
  ...o
4017
4030
  }), l = () => {
4018
4031
  n("cancel");
4019
4032
  };
4020
4033
  Ce(() => {
4021
- r((S) => ({
4022
- ...S,
4034
+ r((P) => ({
4035
+ ...P,
4023
4036
  ...u
4024
4037
  }));
4025
4038
  }, u);
4026
- const s = (S) => {
4027
- u.layout = S, l();
4039
+ const s = (P) => {
4040
+ u.layout = P, l();
4028
4041
  }, d = [
4029
4042
  {
4030
4043
  title: "\u5E03\u5C40\u5207\u6362",
@@ -4127,40 +4140,40 @@ const pa = () => ({
4127
4140
  }, {
4128
4141
  key: "horizontal-v",
4129
4142
  child: ["left"]
4130
- }], m = x(() => F(e.columns || d, (S) => S.valueType === "title" ? {
4131
- ...Z(S, "dataIndex"),
4143
+ }], m = E(() => L(e.columns || d, (P) => P.valueType === "title" ? {
4144
+ ...ee(P, "dataIndex"),
4132
4145
  formItemProps: {
4133
4146
  class: "pro-app-config_form_title"
4134
4147
  },
4135
- inputRender: () => S.title
4136
- } : S.valueType === "layout" ? {
4137
- ...Z(S, "dataIndex"),
4148
+ inputRender: () => P.title
4149
+ } : P.valueType === "layout" ? {
4150
+ ...ee(P, "dataIndex"),
4138
4151
  inputRender: () => c("div", {
4139
4152
  class: "pro-app-config_form_layout"
4140
- }, [F(y, (T) => {
4153
+ }, [L(y, (T) => {
4141
4154
  const v = o.layout === T.key;
4142
4155
  return c("div", {
4143
4156
  class: v ? "selected" : void 0,
4144
4157
  onClick: () => s(T.key)
4145
- }, [F(T.child, (C) => c("div", {
4158
+ }, [L(T.child, (C) => c("div", {
4146
4159
  class: C
4147
4160
  }, null))]);
4148
4161
  })])
4149
- } : S)), f = () => {
4162
+ } : P)), f = () => {
4150
4163
  a(), l();
4151
- }, h = J(), M = h(U.DrawerKey), g = h(U.ProFormKey);
4164
+ }, h = J(), M = h(U.DrawerKey), p = h(U.ProFormKey);
4152
4165
  return () => c(M, {
4153
4166
  title: "\u8BBE\u7F6E",
4154
4167
  size: "260px",
4155
4168
  footer: !1
4156
4169
  }, {
4157
4170
  default: () => {
4158
- var S;
4159
- return [c(g, {
4171
+ var P;
4172
+ return [c(p, {
4160
4173
  class: "pro-app-config_form",
4161
4174
  model: u,
4162
4175
  columns: m.value
4163
- }, null), (S = t.default) == null ? void 0 : S.call(t), c("div", {
4176
+ }, null), (P = t.default) == null ? void 0 : P.call(t), c("div", {
4164
4177
  class: "pro-app-config_btm"
4165
4178
  }, [c($n("pro-button"), {
4166
4179
  type: "primary",
@@ -4172,15 +4185,15 @@ const pa = () => ({
4172
4185
  });
4173
4186
  }
4174
4187
  }), Aa = (e, t) => ln(t / 10, "#000000", e), Oa = (e, t) => ln(t / 10, "#ffffff", e), Da = (e, t) => {
4175
- var r, a, u, l, s, d, y, m, f, h, M, g;
4176
- const n = [1, 2, 3, 4, 5, 6, 7, 8, 9], o = (S) => ({
4177
- base: S,
4188
+ var r, a, u, l, s, d, y, m, f, h, M, p;
4189
+ const n = [1, 2, 3, 4, 5, 6, 7, 8, 9], o = (P) => ({
4190
+ base: P,
4178
4191
  light: se(n, (T, v) => ({
4179
4192
  ...T,
4180
- [String(v)]: Oa(S, v)
4193
+ [String(v)]: Oa(P, v)
4181
4194
  }), {}),
4182
4195
  dark: {
4183
- 2: Aa(S, 2)
4196
+ 2: Aa(P, 2)
4184
4197
  }
4185
4198
  });
4186
4199
  return {
@@ -4190,7 +4203,7 @@ const pa = () => ({
4190
4203
  warning: o(((s = e == null ? void 0 : e.color) == null ? void 0 : s.warning) || ((d = t == null ? void 0 : t.color) == null ? void 0 : d.warning)),
4191
4204
  danger: o(((y = e == null ? void 0 : e.color) == null ? void 0 : y.danger) || ((m = t == null ? void 0 : t.color) == null ? void 0 : m.danger)),
4192
4205
  error: o(((f = e == null ? void 0 : e.color) == null ? void 0 : f.error) || ((h = t == null ? void 0 : t.color) == null ? void 0 : h.error)),
4193
- info: o(((M = e == null ? void 0 : e.color) == null ? void 0 : M.info) || ((g = t == null ? void 0 : t.color) == null ? void 0 : g.info)),
4206
+ info: o(((M = e == null ? void 0 : e.color) == null ? void 0 : M.info) || ((p = t == null ? void 0 : t.color) == null ? void 0 : p.info)),
4194
4207
  ...t == null ? void 0 : t.extraColor
4195
4208
  },
4196
4209
  radius: {
@@ -4212,8 +4225,8 @@ const pa = () => ({
4212
4225
  md: 1.5714285714285714,
4213
4226
  sm: 1.6666666666666667
4214
4227
  },
4215
- spacing: se(n, (S, T) => ({
4216
- ...S,
4228
+ spacing: se(n, (P, T) => ({
4229
+ ...P,
4217
4230
  [String(T)]: T * (t == null ? void 0 : t.spacing) + "px"
4218
4231
  }), {}),
4219
4232
  shadow: {
@@ -4258,7 +4271,7 @@ const pa = () => ({
4258
4271
  }) => {
4259
4272
  const {
4260
4273
  appConfig: n
4261
- } = Ln(), [o, r] = Ze(), a = x(() => e.mode ? e.mode : n.isDark ? "dark" : "light"), u = () => {
4274
+ } = Fn(), [o, r] = Ze(), a = E(() => e.mode ? e.mode : n.isDark ? "dark" : "light"), u = () => {
4262
4275
  var f;
4263
4276
  if (e.theme)
4264
4277
  return e.theme;
@@ -4275,7 +4288,7 @@ const pa = () => ({
4275
4288
  });
4276
4289
  Ce(() => {
4277
4290
  dt(l, u());
4278
- }, [() => e.theme, () => e.themeToken, () => n.primary, () => n.isDark]), oe(() => {
4291
+ }, [() => e.theme, () => e.themeToken, () => n.primary, () => n.isDark]), re(() => {
4279
4292
  var m, f;
4280
4293
  a.value === "dark" ? (m = document.querySelector("html")) == null || m.classList.add("dark") : (f = document.querySelector("html")) == null || f.classList.remove("dark");
4281
4294
  }, a), Ce(() => {
@@ -4285,11 +4298,11 @@ const pa = () => ({
4285
4298
  }), be(sn, {
4286
4299
  theme: l
4287
4300
  });
4288
- const s = x(() => e.createCssVar ? e.createCssVar(l, a.value) : {}), d = x(() => a.value === "dark" ? {
4301
+ const s = E(() => e.createCssVar ? e.createCssVar(l, a.value) : {}), d = E(() => a.value === "dark" ? {
4289
4302
  "html.dark": s.value
4290
4303
  } : {
4291
4304
  ":root": s.value
4292
- }), y = x(() => Je(F(s.value, (m, f) => `${f}:${m}`), ";"));
4305
+ }), y = E(() => Je(L(s.value, (m, f) => `${f}:${m}`), ";"));
4293
4306
  return () => {
4294
4307
  var m, f;
4295
4308
  return e.global ? c(fe, null, [e.createCssVar && c(mr, {
@@ -4303,10 +4316,10 @@ const pa = () => ({
4303
4316
  }
4304
4317
  });
4305
4318
  export {
4306
- Ft as AddButton,
4319
+ Lt as AddButton,
4307
4320
  vr as AppConfig,
4308
4321
  Rr as ColumnSetting,
4309
- $ as CurdAction,
4322
+ j as CurdAction,
4310
4323
  je as CurdAddAction,
4311
4324
  Pe as CurdCurrentMode,
4312
4325
  St as CurdMethods,
@@ -4355,7 +4368,7 @@ export {
4355
4368
  qr as ProRouterView,
4356
4369
  lo as ProSearchForm,
4357
4370
  Po as ProShowDate,
4358
- go as ProShowDigit,
4371
+ po as ProShowDigit,
4359
4372
  bo as ProShowOptions,
4360
4373
  tt as ProShowText,
4361
4374
  So as ProShowTree,
@@ -4365,9 +4378,9 @@ export {
4365
4378
  ta as ProTypography,
4366
4379
  Mo as ProUploadList,
4367
4380
  Co as ProUploaderText,
4368
- po as ProValue,
4381
+ go as ProValue,
4369
4382
  Hr as ProWatermark,
4370
- Fe as RequestAction,
4383
+ Le as RequestAction,
4371
4384
  na as RouterMethods,
4372
4385
  Xe as SearchMode,
4373
4386
  sn as ThemeKey,
@@ -4383,7 +4396,7 @@ export {
4383
4396
  Da as createTheme,
4384
4397
  Xr as defaultPage,
4385
4398
  he as filterSlotsByPrefix,
4386
- pe as getColumnFormItemName,
4399
+ ge as getColumnFormItemName,
4387
4400
  wn as getColumnValueType,
4388
4401
  fa as getFirstPropName,
4389
4402
  ia as getRealRender,
@@ -4397,15 +4410,15 @@ export {
4397
4410
  ha as provideProCurd,
4398
4411
  vn as provideProFormList,
4399
4412
  sa as provideProModule,
4400
- gt as renderColumn,
4413
+ pt as renderColumn,
4401
4414
  $e as renderElement,
4402
4415
  bt as renderElements,
4403
4416
  Tn as renderInputColumn,
4404
4417
  xn as showValue,
4405
4418
  Nr as useAccess,
4406
4419
  co as useAccessMgr,
4407
- Ln as useAppConfig,
4408
- gr as useComposeRequestActor,
4420
+ Fn as useAppConfig,
4421
+ pr as useComposeRequestActor,
4409
4422
  On as useCurdCommon,
4410
4423
  la as useDispatchStore,
4411
4424
  Za as useDoneRequestActor,
@@ -4417,10 +4430,10 @@ export {
4417
4430
  Ar as useLogonUser,
4418
4431
  to as useMeta,
4419
4432
  Sr as useMetaRegister,
4420
- pt as useModuleEvent,
4433
+ gt as useModuleEvent,
4421
4434
  le as useProConfig,
4422
- re as useProCurd,
4423
- pn as useProForm,
4435
+ ae as useProCurd,
4436
+ gn as useProForm,
4424
4437
  yn as useProFormList,
4425
4438
  qe as useProLayout,
4426
4439
  Xa as useProModal,