@vue-start/pro 0.5.66 → 0.5.67

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,5 +1,5 @@
1
1
  import { inject as be, defineComponent as O, computed as C, provide as Se, createVNode as s, mergeProps as L, isVNode as Oe, Fragment as fe, reactive as ve, ref as Q, createTextVNode as st, toRef as Bn, nextTick as qn, KeepAlive as Un, Teleport as Ht, h as Fe, resolveComponent as Vn } from "vue";
2
- import { reduce as ie, get as g, map as $, isString as ye, forEach as se, isFunction as Y, filter as J, keys as Z, omit as K, isArray as re, split as zn, isEmpty as Wt, isObject as Ke, mergeWith as Hn, size as ee, startsWith as Wn, pick as ne, mapKeys as _n, set as he, debounce as _t, clone as Gn, some as Ie, isBoolean as Re, has as it, sortBy as Gt, every as Xt, pickBy as Yt, identity as Xn, find as Ge, findIndex as Yn, countBy as Qn, findLast as Jn, isNumber as dt, join as et, endsWith as Qt, add as Zn, subtract as er, head as tr, cloneDeep as Jt } from "lodash";
2
+ import { reduce as ie, get as g, map as $, isString as ye, forEach as se, isFunction as Y, filter as J, keys as Z, omit as K, isArray as ae, split as zn, isEmpty as Wt, isObject as Ke, mergeWith as Hn, size as ee, startsWith as Wn, pick as ne, mapKeys as _n, set as he, debounce as _t, clone as Gn, some as Ie, isBoolean as Re, has as it, sortBy as Gt, every as Xt, pickBy as Yt, identity as Xn, find as Ge, findIndex as Yn, countBy as Qn, findLast as Jn, isNumber as dt, join as et, endsWith as Qt, add as Zn, subtract as er, head as tr, cloneDeep as Jt } from "lodash";
3
3
  import { filter as Le, tap as Xe, merge as nr, Subject as rr } from "rxjs";
4
4
  import { map as ar, tap as or } from "rxjs/operators";
5
5
  import { mergeStateToData as ur, mergeStateToData2 as lr, useEffect as ue, useUpdateKey as tt, useRuleState as ot, convertCollection as Zt, useWatch as Ee, useState as xt, signTableMerge as cr, useResizeObserver as en, treeToMap as ft, findTreeItem as $e, jsonToStr as Ye, filterCollection as sr, getMenuTopNameMap as wt, findFirstValidMenu as tn, strToJson as mt, decimalFixed as ir, thousandDivision as dr, listToMap as fr, setReactiveValue as yt, restorePath as nn, isValidPath as rn, isPathHasParent as an, useSafeActivated as mr } from "@vue-start/hooks";
@@ -119,14 +119,14 @@ const mn = Symbol("logon-user"), to = () => be(mn), gt = {
119
119
  showNotify: { type: Function },
120
120
  appConfig: { type: Object, default: Sr },
121
121
  localeConfig: { type: Object }
122
- }), pt = Symbol("pro-config"), ae = () => be(pt) || {}, no = () => {
123
- const { showMsg: e } = ae();
122
+ }), pt = Symbol("pro-config"), oe = () => be(pt) || {}, no = () => {
123
+ const { showMsg: e } = oe();
124
124
  return (t) => e(t);
125
125
  }, ro = () => {
126
- const { showModal: e } = ae();
126
+ const { showModal: e } = oe();
127
127
  return (t) => e(t);
128
128
  }, ao = () => {
129
- const { showNotify: e } = ae();
129
+ const { showNotify: e } = oe();
130
130
  return (t) => e(t);
131
131
  }, oo = O({
132
132
  props: {
@@ -134,9 +134,9 @@ const mn = Symbol("logon-user"), to = () => be(mn), gt = {
134
134
  },
135
135
  setup: (e, { slots: t }) => {
136
136
  const n = ie(e.registerStores, (d, m) => ({ ...d, [m.key]: m }), {}), r = ie(e.registerActors, (d, m) => ({ ...d, [m.actor.name]: m }), {}), a = ie(e.registerMetas, (d, m) => ({ ...d, [m.actorName]: m }), {}), { dispatchRequest: o } = Ue(), u = (d, m, p) => {
137
- const v = g(r, d);
138
- if (!!v)
139
- return o(v.actor, m, p);
137
+ const y = g(r, d);
138
+ if (!!y)
139
+ return o(y.actor, m, p);
140
140
  };
141
141
  xr(a, r);
142
142
  const l = C(() => e.formExtraMap), c = C(() => {
@@ -209,7 +209,7 @@ const mn = Symbol("logon-user"), to = () => be(mn), gt = {
209
209
  const r = (a = e.res) == null ? void 0 : a.data;
210
210
  return t ? t(r, e) : n ? g(r, n) : r;
211
211
  }, vn = (e, t) => Y(e) ? "meta_" + e(t) : "meta_" + e, so = (e, t) => {
212
- const { registerMetaMap: n, dispatchRequest: r } = ae(), a = g(n, e);
212
+ const { registerMetaMap: n, dispatchRequest: r } = oe(), a = g(n, e);
213
213
  if (!a)
214
214
  return {};
215
215
  const o = vn(a.storeName || e, t || a.initParams), l = ln(cn((c) => g(c, o)));
@@ -268,7 +268,7 @@ const mn = Symbol("logon-user"), to = () => be(mn), gt = {
268
268
  ProPageKey: "ProPage$",
269
269
  ProOperateKey: "ProOperate$"
270
270
  }, te = () => {
271
- const { elementMap: e } = ae();
271
+ const { elementMap: e } = oe();
272
272
  return (t) => g(e, t);
273
273
  };
274
274
  function wr(e) {
@@ -314,11 +314,11 @@ const Tr = () => ({
314
314
  return e;
315
315
  }, hn = (e) => {
316
316
  if (!!e)
317
- return re(e) ? e : e && ye(e) && e.indexOf(".") > 0 ? zn(e, ".") : [e];
317
+ return ae(e) ? e : e && ye(e) && e.indexOf(".") > 0 ? zn(e, ".") : [e];
318
318
  }, io = (e, t, n) => !t || !n ? e : $(e, (r) => {
319
319
  const a = Y(n) ? n(r) : g(r, n), o = g(t, a);
320
320
  return !o || Wt(o) || Y(o) || !Ke(o) ? r : Hn(r, o, (u, l) => {
321
- if (re(u) || re(l))
321
+ if (ae(u) || ae(l))
322
322
  return l;
323
323
  });
324
324
  }), xe = (e, t) => {
@@ -417,7 +417,7 @@ const Tr = () => ({
417
417
  return;
418
418
  const I = () => {
419
419
  let T = g(a, f);
420
- re(T) || (T = []), T.push({
420
+ ae(T) || (T = []), T.push({
421
421
  [e.rowKey]: new Date().valueOf()
422
422
  }), he(a, f, T);
423
423
  };
@@ -426,7 +426,7 @@ const Tr = () => ({
426
426
  return;
427
427
  }
428
428
  I();
429
- }, v = (D, I) => {
429
+ }, y = (D, I) => {
430
430
  var R;
431
431
  if (((R = e.onPreRemove) == null ? void 0 : R.call(e, {
432
432
  index: D,
@@ -445,7 +445,7 @@ const Tr = () => ({
445
445
  return;
446
446
  }
447
447
  T();
448
- }, y = (D, I) => {
448
+ }, h = (D, I) => {
449
449
  const S = pe(D);
450
450
  return S && t[S] ? t[S]({
451
451
  item: D,
@@ -456,10 +456,10 @@ const Tr = () => ({
456
456
  if (!l || ee(e.columns) <= 0)
457
457
  return null;
458
458
  if (!e.row)
459
- return $(e.columns, (T) => y(T, D));
459
+ return $(e.columns, (T) => h(T, D));
460
460
  const S = $(e.columns, (T) => ({
461
461
  rowKey: pe(T),
462
- vNode: y(T, D),
462
+ vNode: h(T, D),
463
463
  col: g(T, ["extra", "col"])
464
464
  }));
465
465
  return s(De, {
@@ -481,14 +481,14 @@ const Tr = () => ({
481
481
  pathList: j
482
482
  }, {
483
483
  default: () => {
484
- var G, oe, N, A, h, E;
484
+ var G, re, N, A, v, E;
485
485
  return [s("div", {
486
486
  class: "pro-form-list-item"
487
487
  }, [(G = t.start) == null ? void 0 : G.call(t, {
488
488
  state: a,
489
489
  path: f,
490
490
  index: R
491
- }), b(j), (oe = t.default) == null ? void 0 : oe.call(t, {
491
+ }), b(j), (re = t.default) == null ? void 0 : re.call(t, {
492
492
  state: a,
493
493
  path: f,
494
494
  index: R
@@ -497,8 +497,8 @@ const Tr = () => ({
497
497
  onClick: p
498
498
  }, [((N = t.itemAdd) == null ? void 0 : N.call(t)) || ((A = e.renderItemAdd) == null ? void 0 : A.call(e))]), s("div", {
499
499
  class: "pro-form-list-item-minus",
500
- onClick: () => v(R, T)
501
- }, [((h = t.itemMinus) == null ? void 0 : h.call(t)) || ((E = e.renderItemMinus) == null ? void 0 : E.call(e))])])])];
500
+ onClick: () => y(R, T)
501
+ }, [((v = t.itemMinus) == null ? void 0 : v.call(t)) || ((E = e.renderItemMinus) == null ? void 0 : E.call(e))])])])];
502
502
  }
503
503
  });
504
504
  }), !o.value && s("div", {
@@ -585,7 +585,7 @@ const Ot = () => ({
585
585
  elementMap: o,
586
586
  formElementMap: u,
587
587
  t: l
588
- } = ae(), c = e.elementMap || o, i = e.formElementMap || u, f = e.model || ve({}), d = ot(f, e.showStateRules, e.showState), m = ot(f, e.readonlyStateRules, e.readonlyState), p = ot(f, e.disableStateRules, e.disableState), v = C(() => e.readonly), y = C(() => {
588
+ } = oe(), c = e.elementMap || o, i = e.formElementMap || u, f = e.model || ve({}), d = ot(f, e.showStateRules, e.showState), m = ot(f, e.readonlyStateRules, e.readonlyState), p = ot(f, e.disableStateRules, e.disableState), y = C(() => e.readonly), h = C(() => {
589
589
  const F = nt(e.columns, e.columnState, e.columnState2);
590
590
  return e.convertColumn ? Zt(F, e.convertColumn) : F;
591
591
  }), b = Q(!1), x = Q(0), D = (...F) => {
@@ -609,8 +609,8 @@ const Ot = () => ({
609
609
  disableState: p,
610
610
  elementMap: c,
611
611
  formElementMap: i,
612
- readonly: v,
613
- columns: y,
612
+ readonly: y,
613
+ columns: h,
614
614
  formRef: j,
615
615
  userOpe: b,
616
616
  asyncNum: x,
@@ -625,7 +625,7 @@ const Ot = () => ({
625
625
  extraProps: {
626
626
  type: "primary"
627
627
  }
628
- }]), oe = () => {
628
+ }]), re = () => {
629
629
  var F, z;
630
630
  if ((F = e.operate) != null && F.onReset) {
631
631
  e.operate.onReset({
@@ -648,8 +648,8 @@ const Ot = () => ({
648
648
  (z = (F = e.operate) == null ? void 0 : F.onContinue) == null || z.call(F, {
649
649
  form: j.value
650
650
  });
651
- }, h = {
652
- [de.RESET]: oe,
651
+ }, v = {
652
+ [de.RESET]: re,
653
653
  [de.SUBMIT]: N,
654
654
  [de.CONTINUE]: A
655
655
  }, E = C(() => {
@@ -657,7 +657,7 @@ const Ot = () => ({
657
657
  const F = e.operate, z = (F == null ? void 0 : F.items) || ((M = e.opeItems) == null ? void 0 : M.call(e)) || G.value;
658
658
  return $(z, (q) => !q.onClick && !g(F == null ? void 0 : F.itemState, [q.value, "onClick"]) ? {
659
659
  ...q,
660
- onClick: g(h, q.value)
660
+ onClick: g(v, q.value)
661
661
  } : q);
662
662
  }), k = C(() => {
663
663
  var F;
@@ -672,7 +672,7 @@ const Ot = () => ({
672
672
  const z = pe(F);
673
673
  return z && t[z] ? t[z](F, f) : Nn(c, i, F);
674
674
  }, P = C(() => {
675
- const F = J(y.value, (z) => {
675
+ const F = J(h.value, (z) => {
676
676
  const M = pe(z);
677
677
  return !!g(d, M, !0);
678
678
  });
@@ -694,7 +694,7 @@ const Ot = () => ({
694
694
  model: f,
695
695
  onFinish: R
696
696
  }), {
697
- default: () => [F, i && ee(y.value) > 0 && s(fe, null, [e.row ? s(De, {
697
+ default: () => [F, i && ee(h.value) > 0 && s(fe, null, [e.row ? s(De, {
698
698
  row: e.row,
699
699
  col: e.col,
700
700
  items: P.value
@@ -755,39 +755,39 @@ const Ft = () => ({
755
755
  slots: t,
756
756
  expose: n
757
757
  }) => {
758
- const a = te()(H.ProFormKey), o = e.model || ve({}), u = new Set(e.debounceTypes), l = $(J(e.columns, (y) => {
759
- const b = Dn(y);
758
+ const a = te()(H.ProFormKey), o = e.model || ve({}), u = new Set(e.debounceTypes), l = $(J(e.columns, (h) => {
759
+ const b = Dn(h);
760
760
  return u.has(b);
761
- }), (y) => pe(y)), c = C(() => $(e.columns, (y) => ({
762
- ...y,
763
- formItemProps: K(y.formItemProps, "required")
761
+ }), (h) => pe(h)), c = C(() => $(e.columns, (h) => ({
762
+ ...h,
763
+ formItemProps: K(h.formItemProps, "required")
764
764
  }))), i = Q(), f = e.formMethods || [];
765
765
  n(xe(f, i));
766
766
  const d = () => {
767
- var y;
768
- (y = i.value) == null || y.submit();
767
+ var h;
768
+ (h = i.value) == null || h.submit();
769
769
  }, m = _t(() => {
770
770
  d();
771
771
  }, e.debounceTime);
772
772
  ue(() => {
773
773
  e.initEmit && d();
774
774
  }, []);
775
- const p = (y, b, x) => Ie(x, (D) => g(y, D) !== g(b, D));
776
- Ee((y, b) => {
775
+ const p = (h, b, x) => Ie(x, (D) => g(h, D) !== g(b, D));
776
+ Ee((h, b) => {
777
777
  if (e.searchMode !== Qe.AUTO)
778
778
  return;
779
779
  const x = ee(e.debounceKeys) > 0 ? e.debounceKeys : l;
780
- if (ee(x) > 0 && p(y, b, x)) {
780
+ if (ee(x) > 0 && p(h, b, x)) {
781
781
  m();
782
782
  return;
783
783
  }
784
784
  d();
785
785
  }, () => Gn(o));
786
- const v = Z(Ft());
786
+ const y = Z(Ft());
787
787
  return () => a ? s(a, L({
788
788
  ref: i,
789
789
  class: "pro-search-form"
790
- }, K(e, v, "columns"), {
790
+ }, K(e, y, "columns"), {
791
791
  columns: c.value,
792
792
  model: o
793
793
  }), t) : null;
@@ -856,13 +856,13 @@ const Ft = () => ({
856
856
  formExtraMap: l,
857
857
  elementMap: c,
858
858
  t: i
859
- } = ae(), {
859
+ } = oe(), {
860
860
  formState: f,
861
861
  readonlyState: d,
862
862
  disableState: m,
863
863
  readonly: p,
864
- userOpe: v
865
- } = Pn(), y = pn(), b = C(() => Re(o.readonly) ? o.readonly : Re(d[o.name]) ? d[o.name] : p.value), x = () => {
864
+ userOpe: y
865
+ } = Pn(), h = pn(), b = C(() => Re(o.readonly) ? o.readonly : Re(d[o.name]) ? d[o.name] : p.value), x = () => {
866
866
  var A;
867
867
  return `${g((A = l.value) == null ? void 0 : A.rulePrefixMap, r) || i.value("pleaseEnter")}${o.label || ""}`;
868
868
  }, D = C(() => {
@@ -871,8 +871,8 @@ const Ft = () => ({
871
871
  required: !0,
872
872
  message: x()
873
873
  }] : o.rules ? $(o.rules, (A) => (A.required && !A.message && (A.message = x()), A)) : o.rules : o.rules;
874
- }), I = hn(o.name), S = y != null && y.pathList ? [...y.pathList, ...I] : I, T = (N) => {
875
- v.value = !0, he(f, S, N);
874
+ }), I = hn(o.name), S = h != null && h.pathList ? [...h.pathList, ...I] : I, T = (N) => {
875
+ y.value = !0, he(f, S, N);
876
876
  }, R = Z(Kt()), j = () => {
877
877
  const N = g(f, S);
878
878
  if (u.renderShow)
@@ -896,7 +896,7 @@ const Ft = () => ({
896
896
  record: f,
897
897
  path: S
898
898
  }) : s(n, L(t(N, T, A), o.fieldProps), u);
899
- }, oe = () => s(fe, null, [o.label, o.tip && s(Kr, L({
899
+ }, re = () => s(fe, null, [o.label, o.tip && s(Kr, L({
900
900
  content: o.tip,
901
901
  title: o.tip
902
902
  }, o.tipProps), null)]);
@@ -907,7 +907,7 @@ const Ft = () => ({
907
907
  rules: D.value
908
908
  }), {
909
909
  default: () => [b.value ? j() : G()],
910
- label: o.label || o.tip ? oe : void 0,
910
+ label: o.label || o.tip ? re : void 0,
911
911
  ...o.slots
912
912
  });
913
913
  }
@@ -939,7 +939,7 @@ const Ft = () => ({
939
939
  Add: "add",
940
940
  Edit: "edit",
941
941
  Delete: "delete"
942
- }, $r = (e, t) => !e || !t ? !1 : re(t) ? Ie(t, (n) => e[n]) : e[t], En = () => {
942
+ }, $r = (e, t) => !e || !t ? !1 : ae(t) ? Ie(t, (n) => e[n]) : e[t], En = () => {
943
943
  const { per: e } = Lr() || { per: { menus: [], buttonMap: {} } }, t = ht();
944
944
  return (n, r) => {
945
945
  if (!n)
@@ -947,7 +947,7 @@ const Ft = () => ({
947
947
  let a = n;
948
948
  if (r != null && r.suffix) {
949
949
  const o = t.name ? t.name.toString() : "", u = (r == null ? void 0 : r.splitStr) || "_";
950
- a = re(a) ? $(a, (l) => `${o}${u}${l}`) : `${o}${u}${a}`;
950
+ a = ae(a) ? $(a, (l) => `${o}${u}${l}`) : `${o}${u}${a}`;
951
951
  }
952
952
  return $r(e.buttonMap, a);
953
953
  };
@@ -1021,7 +1021,7 @@ const qr = () => ({
1021
1021
  if (t[c.value])
1022
1022
  return t[c.value](p);
1023
1023
  if (u) {
1024
- const v = s(u, L({
1024
+ const y = s(u, L({
1025
1025
  disabled: i,
1026
1026
  loading: f,
1027
1027
  onClick: () => a(c)
@@ -1031,9 +1031,9 @@ const qr = () => ({
1031
1031
  return c.tip && l ? s(l, L({
1032
1032
  placement: "top"
1033
1033
  }, c.tipProps), {
1034
- default: () => [v],
1034
+ default: () => [y],
1035
1035
  content: () => c.tip
1036
- }) : v;
1036
+ }) : y;
1037
1037
  }
1038
1038
  return s("div", {
1039
1039
  class: `${e.clsName}-item`,
@@ -1076,7 +1076,7 @@ const qr = () => ({
1076
1076
  }) => {
1077
1077
  const {
1078
1078
  t: n
1079
- } = ae(), r = te(), a = r(H.PopoverKey), o = r(H.CheckboxKey), {
1079
+ } = oe(), r = te(), a = r(H.PopoverKey), o = r(H.CheckboxKey), {
1080
1080
  originColumns: u,
1081
1081
  selectIdsRef: l
1082
1082
  } = zr(), [c, i] = tt();
@@ -1090,23 +1090,23 @@ const qr = () => ({
1090
1090
  }, p = C(() => ie(l.value, (S, T) => ({
1091
1091
  ...S,
1092
1092
  [T]: !0
1093
- }), {})), v = (S) => Ar(S, e.signName);
1093
+ }), {})), y = (S) => Ar(S, e.signName);
1094
1094
  ue(() => {
1095
1095
  l.value = $(J(u.value, (S) => {
1096
1096
  var T;
1097
- return e.useSelectedStatus && it(f, S.dataIndex) ? f[S.dataIndex] : ((T = v(S)) == null ? void 0 : T.initShow) !== !1;
1097
+ return e.useSelectedStatus && it(f, S.dataIndex) ? f[S.dataIndex] : ((T = y(S)) == null ? void 0 : T.initShow) !== !1;
1098
1098
  }), (S) => S.dataIndex);
1099
1099
  }, u), Ee(() => {
1100
1100
  var S;
1101
1101
  i(), m(), (S = e.onColumnSelectChange) == null || S.call(e, l.value);
1102
1102
  }, l);
1103
- const y = C(() => {
1103
+ const h = C(() => {
1104
1104
  const S = Xt(u.value, (R) => {
1105
1105
  var j;
1106
- return (j = v(R)) != null && j.disabled ? !0 : g(p.value, R.dataIndex);
1106
+ return (j = y(R)) != null && j.disabled ? !0 : g(p.value, R.dataIndex);
1107
1107
  }), T = Ie(u.value, (R) => {
1108
1108
  var j;
1109
- return (j = v(R)) != null && j.disabled ? !0 : g(p.value, R.dataIndex);
1109
+ return (j = y(R)) != null && j.disabled ? !0 : g(p.value, R.dataIndex);
1110
1110
  });
1111
1111
  return {
1112
1112
  checked: S,
@@ -1116,12 +1116,12 @@ const qr = () => ({
1116
1116
  var R;
1117
1117
  (Ke(S) ? (R = S.target) == null ? void 0 : R.checked : S) ? l.value = $(u.value, (j) => j.dataIndex) : l.value = $(J(u.value, (j) => {
1118
1118
  var G;
1119
- return (G = v(j)) != null && G.disabled ? !0 : (d(j.dataIndex), !1);
1119
+ return (G = y(j)) != null && G.disabled ? !0 : (d(j.dataIndex), !1);
1120
1120
  }), (j) => j.dataIndex);
1121
1121
  }, x = () => {
1122
1122
  l.value = $(J(u.value, (S) => {
1123
1123
  var T;
1124
- return ((T = v(S)) == null ? void 0 : T.initShow) === !1 ? (d(S.dataIndex), !1) : !0;
1124
+ return ((T = y(S)) == null ? void 0 : T.initShow) === !1 ? (d(S.dataIndex), !1) : !0;
1125
1125
  }), (S) => S.dataIndex);
1126
1126
  }, D = (S, T) => {
1127
1127
  var j;
@@ -1140,8 +1140,8 @@ const qr = () => ({
1140
1140
  class: `${e.clsName}-header`
1141
1141
  }, [s(o, {
1142
1142
  key: c.value,
1143
- checked: y.value.checked,
1144
- indeterminate: y.value.indeterminate,
1143
+ checked: h.value.checked,
1144
+ indeterminate: h.value.indeterminate,
1145
1145
  onChange: b
1146
1146
  }, {
1147
1147
  default: () => [e.allTitle || n.value("columnDisplay")]
@@ -1151,7 +1151,7 @@ const qr = () => ({
1151
1151
  key: c.value,
1152
1152
  class: `${e.clsName}-list`
1153
1153
  }, [$(u.value, (S) => {
1154
- const T = v(S), R = g(p.value, S.dataIndex, !1);
1154
+ const T = y(S), R = g(p.value, S.dataIndex, !1);
1155
1155
  return s(o, {
1156
1156
  checked: R,
1157
1157
  disabled: T == null ? void 0 : T.disabled,
@@ -1225,7 +1225,7 @@ const qr = () => ({
1225
1225
  const {
1226
1226
  elementMap: a,
1227
1227
  t: o
1228
- } = ae(), u = e.elementMap || a, {
1228
+ } = oe(), u = e.elementMap || a, {
1229
1229
  router: l
1230
1230
  } = Ce(), c = e.virtual ? g(a, H.TableV2Key) || g(a, H.TableKey) : g(a, H.TableKey), i = () => ({
1231
1231
  title: o.value("serialNumber"),
@@ -1236,8 +1236,8 @@ const qr = () => ({
1236
1236
  customRender: ({
1237
1237
  index: N
1238
1238
  }) => {
1239
- var A, h;
1240
- return ((A = e.paginationState) == null ? void 0 : A.page) && ((h = e.paginationState) == null ? void 0 : h.pageSize) ? e.paginationState.pageSize * (e.paginationState.page - 1) + N + 1 : N + 1;
1239
+ var A, v;
1240
+ return ((A = e.paginationState) == null ? void 0 : A.page) && ((v = e.paginationState) == null ? void 0 : v.pageSize) ? e.paginationState.pageSize * (e.paginationState.page - 1) + N + 1 : N + 1;
1241
1241
  }
1242
1242
  }), f = (N, A) => {
1243
1243
  var E;
@@ -1245,20 +1245,20 @@ const qr = () => ({
1245
1245
  e.operateItemClickMap[A.value](N, A);
1246
1246
  return;
1247
1247
  }
1248
- const h = A.routeOpts;
1249
- if (h) {
1250
- Y(h) ? l.push(h(N)) : l.push({
1251
- name: h.name,
1252
- query: ne(N, h.query)
1248
+ const v = A.routeOpts;
1249
+ if (v) {
1250
+ Y(v) ? l.push(v(N)) : l.push({
1251
+ name: v.name,
1252
+ query: ne(N, v.query)
1253
1253
  });
1254
1254
  return;
1255
1255
  }
1256
1256
  (E = A.onClick) == null || E.call(A, N);
1257
1257
  }, d = ge(t, "operate"), m = () => {
1258
- const N = e.operate, A = $(N.items, (h) => ({
1259
- ...g(e.operateItemState, h.value),
1260
- ...h,
1261
- ...g(N.itemState, h.value)
1258
+ const N = e.operate, A = $(N.items, (v) => ({
1259
+ ...g(e.operateItemState, v.value),
1260
+ ...v,
1261
+ ...g(N.itemState, v.value)
1262
1262
  }));
1263
1263
  return {
1264
1264
  ...e.column,
@@ -1267,23 +1267,23 @@ const qr = () => ({
1267
1267
  fixed: "right",
1268
1268
  ...N.column,
1269
1269
  customRender: ({
1270
- record: h
1270
+ record: v
1271
1271
  }) => {
1272
1272
  const E = $(A, (w) => ({
1273
1273
  ...w,
1274
- show: Y(w.show) ? w.show(h) : w.show,
1275
- disabled: Y(w.disabled) ? w.disabled(h) : w.disabled,
1276
- loading: Y(w.loading) ? w.loading(h) : w.loading,
1277
- extraProps: Y(w.extraProps) ? w.extraProps(h) : w.extraProps,
1278
- element: Y(w.element) ? (P) => w.element(h, P) : w.element,
1279
- onClick: () => f(h, w),
1280
- tip: Y(w.tip) ? w.tip(h) : w.tip,
1281
- tipProps: Y(w.tipProps) ? w.tipProps(h) : w.tipProps
1274
+ show: Y(w.show) ? w.show(v) : w.show,
1275
+ disabled: Y(w.disabled) ? w.disabled(v) : w.disabled,
1276
+ loading: Y(w.loading) ? w.loading(v) : w.loading,
1277
+ extraProps: Y(w.extraProps) ? w.extraProps(v) : w.extraProps,
1278
+ element: Y(w.element) ? (P) => w.element(v, P) : w.element,
1279
+ onClick: () => f(v, w),
1280
+ tip: Y(w.tip) ? w.tip(v) : w.tip,
1281
+ tipProps: Y(w.tipProps) ? w.tipProps(v) : w.tipProps
1282
1282
  })), k = ie(Z(d), (w, P) => ({
1283
1283
  ...w,
1284
1284
  [P]: (B) => {
1285
1285
  var U;
1286
- return (U = d[P]) == null ? void 0 : U.call(d, h, B);
1286
+ return (U = d[P]) == null ? void 0 : U.call(d, v, B);
1287
1287
  }
1288
1288
  }), {});
1289
1289
  return s(bt, {
@@ -1293,22 +1293,22 @@ const qr = () => ({
1293
1293
  }, k);
1294
1294
  }
1295
1295
  };
1296
- }, p = Q([]), v = C(() => {
1296
+ }, p = Q([]), y = C(() => {
1297
1297
  var N;
1298
1298
  return !!((N = e.toolbar) != null && N.columnSetting);
1299
- }), y = Bn(e, "columns"), b = C(() => {
1300
- if (!v.value)
1299
+ }), h = Bn(e, "columns"), b = C(() => {
1300
+ if (!y.value)
1301
1301
  return e.columns;
1302
- const N = ie(p.value, (A, h) => ({
1302
+ const N = ie(p.value, (A, v) => ({
1303
1303
  ...A,
1304
- [h]: !0
1304
+ [v]: !0
1305
1305
  }), {});
1306
1306
  return J(e.columns, (A) => g(N, A.dataIndex));
1307
1307
  }), x = (N) => $(N, (A) => {
1308
- const h = {
1308
+ const v = {
1309
1309
  ...e.column,
1310
1310
  ...A
1311
- }, E = e.convertColumn ? e.convertColumn(h) : h;
1311
+ }, E = e.convertColumn ? e.convertColumn(v) : v;
1312
1312
  return A.children && ee(A.children) > 0 ? (E.children = x(A.children), E) : (A.customRender || (E.customRender = ({
1313
1313
  value: k
1314
1314
  }) => typeof k > "u" || k === null || k === "" ? e.columnEmptyText : Pt(u, A, {
@@ -1318,15 +1318,15 @@ const qr = () => ({
1318
1318
  }) || k), E);
1319
1319
  }), D = C(() => {
1320
1320
  const N = nt(b.value, e.columnState, e.columnState2), A = x(N);
1321
- return e.serialNumber && A.unshift(i()), e.operate && e.operate.items && Ie(e.operate.items, (h) => h.show) && A.push(m()), A;
1321
+ return e.serialNumber && A.unshift(i()), e.operate && e.operate.items && Ie(e.operate.items, (v) => v.show) && A.push(m()), A;
1322
1322
  }), I = C(() => {
1323
- var A, h;
1323
+ var A, v;
1324
1324
  const N = e.dataSource;
1325
- return N && (((A = e.mergeOpts) == null ? void 0 : A.rowNames) || ((h = e.mergeOpts) == null ? void 0 : h.colNames)) && cr(N, e.mergeOpts), N;
1325
+ return N && (((A = e.mergeOpts) == null ? void 0 : A.rowNames) || ((v = e.mergeOpts) == null ? void 0 : v.colNames)) && cr(N, e.mergeOpts), N;
1326
1326
  }), S = Q();
1327
1327
  Hr({
1328
1328
  columns: D,
1329
- originColumns: y,
1329
+ originColumns: h,
1330
1330
  selectIdsRef: p,
1331
1331
  tableRef: S,
1332
1332
  toolbar: e.toolbar,
@@ -1336,19 +1336,19 @@ const qr = () => ({
1336
1336
  en(T, (N) => {
1337
1337
  const A = g(N, [0, "contentRect"]);
1338
1338
  R.value = A.height, qn(() => {
1339
- const h = window.getComputedStyle(T.value);
1340
- if (h) {
1341
- const E = parseFloat(h.marginTop) || 0, k = parseFloat(h.marginBottom) || 0;
1339
+ const v = window.getComputedStyle(T.value);
1340
+ if (v) {
1341
+ const E = parseFloat(v.marginTop) || 0, k = parseFloat(v.marginBottom) || 0;
1342
1342
  j.value = R.value + E + k;
1343
1343
  }
1344
1344
  });
1345
1345
  });
1346
- const G = Z(Rt()), oe = ge(t, "columnSetting");
1346
+ const G = Z(Rt()), re = ge(t, "columnSetting");
1347
1347
  return () => {
1348
1348
  var w, P, B;
1349
1349
  if (!c)
1350
1350
  return null;
1351
- const N = v.value ? s(Vr, (w = e.toolbar) == null ? void 0 : w.columnSetting, oe) : null, A = (P = t.toolbar) == null ? void 0 : P.call(t), h = (B = t.toolbarExtra) == null ? void 0 : B.call(t, [N]), E = [e.clsName];
1351
+ const N = y.value ? s(Vr, (w = e.toolbar) == null ? void 0 : w.columnSetting, re) : null, A = (P = t.toolbar) == null ? void 0 : P.call(t), v = (B = t.toolbarExtra) == null ? void 0 : B.call(t, [N]), E = [e.clsName];
1352
1352
  let k = "";
1353
1353
  return R.value > 0 && (E.push("has-header"), k = `${e.clsName}-toolbar-valid`), s("div", L({
1354
1354
  class: E,
@@ -1360,7 +1360,7 @@ const qr = () => ({
1360
1360
  class: `${e.clsName}-toolbar-start`
1361
1361
  }, [A]), s("div", {
1362
1362
  class: `${e.clsName}-toolbar-extra`
1363
- }, [h || N])]), s(c, L({
1363
+ }, [v || N])]), s(c, L({
1364
1364
  ref: S
1365
1365
  }, K(r, "class"), K(e, G), {
1366
1366
  mergeOpts: e.mergeOpts,
@@ -1395,10 +1395,10 @@ const qr = () => ({
1395
1395
  router: c,
1396
1396
  route: i
1397
1397
  } = Ce(), f = C(() => {
1398
- const v = ft(t.value, (y) => y.keep ? ee(y.children) > 0 ? Xt(y.children, (b) => b.hide) : !0 : !1);
1399
- return Yt(v, Xn);
1398
+ const y = ft(t.value, (h) => h.keep ? ee(h.children) > 0 ? Xt(h.children, (b) => b.hide) : !0 : !1);
1399
+ return Yt(y, Xn);
1400
1400
  }), d = C(() => {
1401
- const v = Z(f.value);
1401
+ const y = Z(f.value);
1402
1402
  if (!o.value) {
1403
1403
  const {
1404
1404
  parentList: x
@@ -1406,28 +1406,28 @@ const qr = () => ({
1406
1406
  const S = l(I);
1407
1407
  return c.hasRoute(S);
1408
1408
  });
1409
- return [...v, ...e.includes, ...$(D, (I) => I.value)];
1409
+ return [...y, ...e.includes, ...$(D, (I) => I.value)];
1410
1410
  }
1411
- let y = r.value;
1412
- e.tagsCache || (y = J(r.value, (x) => x.keep));
1413
- let b = $(y, (x) => x.value);
1411
+ let h = r.value;
1412
+ e.tagsCache || (h = J(r.value, (x) => x.keep));
1413
+ let b = $(h, (x) => x.value);
1414
1414
  return a.value && (b = J(b, (x) => x !== i.name)), [...e.includes, ...b];
1415
- }), m = /* @__PURE__ */ new Map(), p = (v, y) => (m.has(y) || m.set(y, {
1416
- ...v,
1415
+ }), m = /* @__PURE__ */ new Map(), p = (y, h) => (m.has(h) || m.set(h, {
1416
+ ...y,
1417
1417
  type: {
1418
- ...v.type,
1418
+ ...y.type,
1419
1419
  name: u(i)
1420
1420
  }
1421
- }), m.get(y));
1421
+ }), m.get(h));
1422
1422
  return () => s(hr, null, {
1423
1423
  default: ({
1424
- Component: v,
1425
- route: y
1424
+ Component: y,
1425
+ route: h
1426
1426
  }) => {
1427
1427
  let b;
1428
- return y.name && (n.value[y.name] ? v && v.type && !v.type.name && (b = p(v, u(y))) : v && v.type && !v.type.name && (v.type.name = y.name)), s(Un, {
1428
+ return h.name && (n.value[h.name] ? y && y.type && !y.type.name && (b = p(y, u(h))) : y && y.type && !y.type.name && (y.type.name = h.name)), s(Un, {
1429
1429
  include: d.value
1430
- }, [a.value ? null : b ? s(b, null, null) : s(v, null, null)]);
1430
+ }, [a.value ? null : b ? s(b, null, null) : s(y, null, null)]);
1431
1431
  }
1432
1432
  });
1433
1433
  }
@@ -1457,7 +1457,7 @@ const qr = () => ({
1457
1457
  setup: (e) => {
1458
1458
  const {
1459
1459
  t
1460
- } = ae(), {
1460
+ } = oe(), {
1461
1461
  router: n,
1462
1462
  route: r
1463
1463
  } = Ce(), {
@@ -1528,7 +1528,7 @@ const qr = () => ({
1528
1528
  return;
1529
1529
  }
1530
1530
  n.openMenu(P);
1531
- }, v = (P) => {
1531
+ }, y = (P) => {
1532
1532
  var B;
1533
1533
  if (!f(P)) {
1534
1534
  if (P.value === ((B = d.value) == null ? void 0 : B.value)) {
@@ -1537,7 +1537,7 @@ const qr = () => ({
1537
1537
  }
1538
1538
  u.value = J(u.value, (U) => U.value !== P.value);
1539
1539
  }
1540
- }, y = (P) => {
1540
+ }, h = (P) => {
1541
1541
  var B;
1542
1542
  P.value !== ((B = d.value) == null ? void 0 : B.value) && p(P), u.value = J(u.value, (U) => U.value === P.value ? !0 : f(U));
1543
1543
  }, b = () => {
@@ -1576,17 +1576,17 @@ const qr = () => ({
1576
1576
  onDragEnd: G
1577
1577
  });
1578
1578
  }, [T]);
1579
- const oe = Q();
1579
+ const re = Q();
1580
1580
  ue(() => {
1581
1581
  var B;
1582
- const P = (B = oe.value) == null ? void 0 : B.originRef;
1582
+ const P = (B = re.value) == null ? void 0 : B.originRef;
1583
1583
  !P || P == null || P.handleOpen();
1584
- }, oe);
1584
+ }, re);
1585
1585
  const N = (P) => {
1586
1586
  P || (i.ctxMenuItem = null);
1587
1587
  }, A = (P) => {
1588
- P === "refresh" ? x(i.ctxMenuItem) : P === "close" ? v(i.ctxMenuItem) : P === "close-other" ? y(i.ctxMenuItem) : P === "close-all" && b(), S();
1589
- }, h = C(() => {
1588
+ P === "refresh" ? x(i.ctxMenuItem) : P === "close" ? y(i.ctxMenuItem) : P === "close-other" ? h(i.ctxMenuItem) : P === "close-all" && b(), S();
1589
+ }, v = C(() => {
1590
1590
  var B, U;
1591
1591
  const P = [];
1592
1592
  return ((B = d.value) == null ? void 0 : B.value) === ((U = i.ctxMenuItem) == null ? void 0 : U.value) && P.push({
@@ -1621,7 +1621,7 @@ const qr = () => ({
1621
1621
  }, [((F = P.itemLabel) == null ? void 0 : F.call(P, P)) || P.label, !B && s("div", {
1622
1622
  class: "pro-layout-tabs-item-close",
1623
1623
  onClick: (z) => {
1624
- z.preventDefault(), z.stopPropagation(), v(P);
1624
+ z.preventDefault(), z.stopPropagation(), y(P);
1625
1625
  },
1626
1626
  oncontextmenu: I
1627
1627
  }, [st("\u2715")])]);
@@ -1633,9 +1633,9 @@ const qr = () => ({
1633
1633
  class: "pro-layout-tabs-menus",
1634
1634
  style: `left:${i.ctxMenuPos.x}px;top:${i.ctxMenuPos.y}px`
1635
1635
  }, [s(k, {
1636
- ref: oe,
1636
+ ref: re,
1637
1637
  trigger: "click",
1638
- options: h.value,
1638
+ options: v.value,
1639
1639
  hideOnClick: !1,
1640
1640
  onCommand: A,
1641
1641
  onVisibleChange: N
@@ -1845,18 +1845,18 @@ const qr = () => ({
1845
1845
  return e.convertValue(M);
1846
1846
  const q = M.value.indexOf("?");
1847
1847
  return q > 0 ? M.value.substring(0, q) : M.value;
1848
- }, v = C(() => {
1848
+ }, y = C(() => {
1849
1849
  const M = Z(Yt(Qn(m.value, (q) => p(q)), (q) => q > 1));
1850
1850
  return ie(M, (q, X) => ({
1851
1851
  ...q,
1852
1852
  [X]: !0
1853
1853
  }), {});
1854
- }), y = (M) => {
1854
+ }), h = (M) => {
1855
1855
  if (e.convertName)
1856
1856
  return e.convertName(M, {
1857
1857
  menuTopMap: f.value
1858
1858
  });
1859
- if (M.name && v.value[M.name]) {
1859
+ if (M.name && y.value[M.name]) {
1860
1860
  const q = M.fullPath.indexOf("?");
1861
1861
  return M.name + M.fullPath.substring(q);
1862
1862
  }
@@ -1864,12 +1864,12 @@ const qr = () => ({
1864
1864
  }, b = C(() => {
1865
1865
  if (e.findCurrentTopName)
1866
1866
  return e.findCurrentTopName(l, f.value);
1867
- const M = y(l);
1867
+ const M = h(l);
1868
1868
  return f.value[M];
1869
1869
  }), x = C(() => b.value ? Ge(i.value, (M) => M.value === b.value) : null), D = C(() => !!(x.value && x.value.children && ee(x.value.children) > 0)), I = C(() => {
1870
1870
  if (e.findActiveKey)
1871
1871
  return e.findActiveKey(l, f.value);
1872
- const M = y(l);
1872
+ const M = h(l);
1873
1873
  if (d.value[M])
1874
1874
  return M;
1875
1875
  const {
@@ -1898,7 +1898,7 @@ const qr = () => ({
1898
1898
  }));
1899
1899
  }
1900
1900
  return ee(q) <= 0 && G && (q = [G]), q;
1901
- })()), A = (M) => M.value === (G == null ? void 0 : G.value), h = (M) => {
1901
+ })()), A = (M) => M.value === (G == null ? void 0 : G.value), v = (M) => {
1902
1902
  N.value = J(N.value, (q) => q.value !== M);
1903
1903
  };
1904
1904
  Ee(() => {
@@ -1922,15 +1922,15 @@ const qr = () => ({
1922
1922
  }, []);
1923
1923
  const k = C(() => !!e.breadcrumb), w = Q(!1);
1924
1924
  Se(wn, {
1925
- convertName: y,
1925
+ convertName: h,
1926
1926
  convertValue: p,
1927
1927
  menus: c,
1928
1928
  showMenus: i,
1929
- repeatRouteMap: v,
1929
+ repeatRouteMap: y,
1930
1930
  menuMap: m,
1931
1931
  tabs: N,
1932
1932
  showTabs: R,
1933
- closeTab: h,
1933
+ closeTab: v,
1934
1934
  refreshRef: w,
1935
1935
  refresh: () => {
1936
1936
  w.value = !0, setTimeout(() => {
@@ -2044,7 +2044,7 @@ const qr = () => ({
2044
2044
  }) => {
2045
2045
  const {
2046
2046
  t: n
2047
- } = ae(), {
2047
+ } = oe(), {
2048
2048
  router: r
2049
2049
  } = Ce(), a = () => {
2050
2050
  var u;
@@ -2121,12 +2121,12 @@ const qr = () => ({
2121
2121
  class: m
2122
2122
  }, {
2123
2123
  default: () => {
2124
- var v, y;
2125
- return [(v = t.start) == null ? void 0 : v.call(t), i && s(ut, L(ne(e, c), {
2124
+ var y, h;
2125
+ return [(y = t.start) == null ? void 0 : y.call(t), i && s(ut, L(ne(e, c), {
2126
2126
  showBack: r.value
2127
2127
  }), K(t, "start", "default", "footer")), s("div", {
2128
2128
  class: "pro-page-content"
2129
- }, [e.loading ? l() : (y = t.default) == null ? void 0 : y.call(t)]), d && s("div", {
2129
+ }, [e.loading ? l() : (h = t.default) == null ? void 0 : h.call(t)]), d && s("div", {
2130
2130
  class: "pro-page-footer"
2131
2131
  }, [f])];
2132
2132
  }
@@ -2187,24 +2187,28 @@ const qr = () => ({
2187
2187
  ...c,
2188
2188
  ...l
2189
2189
  });
2190
- }, f = (y, b) => {
2191
- c = y, l.page = b || 1, i();
2192
- }, d = (y, b) => {
2193
- l.page = y, l.pageSize = b, i();
2194
- }, m = ge(t, "search"), p = ge(t, "table"), v = ge(t, "pagination");
2190
+ }, f = (b, x) => {
2191
+ c = b, l.page = x || 1, i();
2192
+ }, d = (b, x) => {
2193
+ l.page = b, l.pageSize = x, i();
2194
+ }, m = ge(t, "search"), p = ge(t, "table"), y = ge(t, "pagination"), h = C(() => {
2195
+ var x;
2196
+ const b = [e.clsName];
2197
+ return (x = e.tableProps) != null && x.virtual && b.push("virtual"), b;
2198
+ });
2195
2199
  return () => {
2196
- var b, x, D, I, S, T, R, j;
2197
- const y = t.search ? t.search({
2200
+ var x, D, I, S, T, R, j, G;
2201
+ const b = t.search ? t.search({
2198
2202
  executeSearchWithResetPage: f,
2199
2203
  pageState: l
2200
2204
  }) : s(fe, null, [a && s(a, L({
2201
2205
  class: `${e.clsName}-search`
2202
2206
  }, K(e.searchProps, "onFinish"), {
2203
- onFinish: (G) => f(G)
2207
+ onFinish: (re) => f(re)
2204
2208
  }), m)]);
2205
2209
  return s("div", {
2206
- class: e.clsName
2207
- }, [((b = t.start) == null ? void 0 : b.call(t)) || ((x = e.start) == null ? void 0 : x.call(e)), !e.searchInTable && y, ((D = t.divide) == null ? void 0 : D.call(t)) || ((I = e.divide) == null ? void 0 : I.call(e)), t.table ? t.table({
2210
+ class: h.value
2211
+ }, [((x = t.start) == null ? void 0 : x.call(t)) || ((D = e.start) == null ? void 0 : D.call(e)), !e.searchInTable && b, ((I = t.divide) == null ? void 0 : I.call(t)) || ((S = e.divide) == null ? void 0 : S.call(e)), t.table ? t.table({
2208
2212
  pageState: l
2209
2213
  }) : s(fe, null, [o && s(o, L({
2210
2214
  class: `${e.clsName}-table`,
@@ -2215,8 +2219,8 @@ const qr = () => ({
2215
2219
  pagination: !1
2216
2220
  }, e.tableProps), {
2217
2221
  ...p,
2218
- toolbar: e.searchInTable ? () => p.toolbar ? p.toolbar(y) : y : p.toolbar
2219
- })]), ((S = t.divide2) == null ? void 0 : S.call(t)) || ((T = e.divide2) == null ? void 0 : T.call(e)), t.pagination ? t.pagination({
2222
+ toolbar: e.searchInTable ? () => p.toolbar ? p.toolbar(b) : b : p.toolbar
2223
+ })]), ((T = t.divide2) == null ? void 0 : T.call(t)) || ((R = e.divide2) == null ? void 0 : R.call(e)), t.pagination ? t.pagination({
2220
2224
  executePageChange: d,
2221
2225
  pageState: l
2222
2226
  }) : s(fe, null, [e.paginationProps !== !1 && u && s("div", {
@@ -2225,7 +2229,7 @@ const qr = () => ({
2225
2229
  page: l.page,
2226
2230
  pageSize: l.pageSize,
2227
2231
  onComposeChange: d
2228
- }), v)])]), ((R = t.end) == null ? void 0 : R.call(t)) || ((j = e.end) == null ? void 0 : j.call(e))]);
2232
+ }), y)])]), ((j = t.end) == null ? void 0 : j.call(t)) || ((G = e.end) == null ? void 0 : G.call(e))]);
2229
2233
  };
2230
2234
  }
2231
2235
  }), Lt = () => ({
@@ -2246,28 +2250,28 @@ const qr = () => ({
2246
2250
  }) => {
2247
2251
  const {
2248
2252
  elementMap: n
2249
- } = ae(), r = e.elementMap || n, a = te(), o = a(H.DescriptionsKey), u = a(H.DescriptionsItemKey), l = C(() => nt(e.columns, e.columnState, e.columnState2)), c = Z(Te), i = Z(Lt());
2253
+ } = oe(), r = e.elementMap || n, a = te(), o = a(H.DescriptionsKey), u = a(H.DescriptionsItemKey), l = C(() => nt(e.columns, e.columnState, e.columnState2)), c = Z(Te), i = Z(Lt());
2250
2254
  return () => !o || !u ? null : s(o, L({
2251
2255
  class: e.clsName
2252
2256
  }, K(e, ...c, ...i, "model")), {
2253
2257
  default: () => {
2254
2258
  var f, d;
2255
2259
  return [(f = t.start) == null ? void 0 : f.call(t), $(l.value, (m) => {
2256
- const p = m.dataIndex, v = g(e.model, p);
2260
+ const p = m.dataIndex, y = g(e.model, p);
2257
2261
  return s(u, L({
2258
2262
  class: `${e.clsName}-item`
2259
2263
  }, g(m.extra, "desc")), {
2260
2264
  default: () => {
2261
- var y, b;
2262
- return [((y = t[p]) == null ? void 0 : y.call(t, v, m)) || ((b = t.value) == null ? void 0 : b.call(t, v, m)) || Pt(r, m, {
2263
- value: v
2265
+ var h, b;
2266
+ return [((h = t[p]) == null ? void 0 : h.call(t, y, m)) || ((b = t.value) == null ? void 0 : b.call(t, y, m)) || Pt(r, m, {
2267
+ value: y
2264
2268
  }, {
2265
2269
  render: "descRender"
2266
2270
  })];
2267
2271
  },
2268
2272
  label: () => {
2269
- var y;
2270
- return ((y = t.label) == null ? void 0 : y.call(t, m)) || m.title;
2273
+ var h;
2274
+ return ((h = t.label) == null ? void 0 : h.call(t, m)) || m.title;
2271
2275
  }
2272
2276
  });
2273
2277
  }), (d = t.default) == null ? void 0 : d.call(t)];
@@ -2404,7 +2408,7 @@ const qr = () => ({
2404
2408
  const n = C(() => fr(e.options, (o) => o.label), void 0), r = C(() => {
2405
2409
  const o = e.value;
2406
2410
  let u = e.value;
2407
- return re(o) ? u = et($(o, (l) => g(n.value, l, l)), e.splitStr) : u = g(n.value, o, e.value), e.convert ? e.convert(u, e) : u;
2411
+ return ae(o) ? u = et($(o, (l) => g(n.value, l, l)), e.splitStr) : u = g(n.value, o, e.value), e.convert ? e.convert(u, e) : u;
2408
2412
  }), a = C(() => g(e.colorMap, e.value));
2409
2413
  return () => e.render ? e.render({
2410
2414
  color: a.value,
@@ -2454,7 +2458,7 @@ const qr = () => ({
2454
2458
  });
2455
2459
  }), r = C(() => {
2456
2460
  let a = e.value;
2457
- return re(e.value) ? a = et($(e.value, (o) => g(n.value, o, o)), e.multiple ? e.splitStr2 : e.splitStr) : a = g(n.value, e.value, e.value), e.convert ? e.convert(a, e) : a;
2461
+ return ae(e.value) ? a = et($(e.value, (o) => g(n.value, o, o)), e.multiple ? e.splitStr2 : e.splitStr) : a = g(n.value, e.value, e.value), e.convert ? e.convert(a, e) : a;
2458
2462
  });
2459
2463
  return () => e.render ? e.render({
2460
2464
  value: r.value,
@@ -2490,7 +2494,7 @@ const qr = () => ({
2490
2494
  }) => {
2491
2495
  const n = (a) => a && (e.isUnix ? kt.unix(a).format(e.format) : kt(a).format(e.format)), r = C(() => {
2492
2496
  let a = e.value;
2493
- return re(e.value) ? a = et($(e.value, (o) => n(o) || ""), e.splitStr) : a = n(e.value) || "", e.convert ? e.convert(a, e) : a;
2497
+ return ae(e.value) ? a = et($(e.value, (o) => n(o) || ""), e.splitStr) : a = n(e.value) || "", e.convert ? e.convert(a, e) : a;
2494
2498
  });
2495
2499
  return () => e.render ? e.render({
2496
2500
  value: r.value,
@@ -2522,7 +2526,7 @@ const qr = () => ({
2522
2526
  }) => {
2523
2527
  const a = te()(H.UploaderKey), o = (i) => {
2524
2528
  const f = mt(i);
2525
- if (re(f)) {
2529
+ if (ae(f)) {
2526
2530
  const d = e.fieldNames;
2527
2531
  return $(f, (m) => ({
2528
2532
  ...K(m, d.id, d.name, d.size),
@@ -2535,13 +2539,13 @@ const qr = () => ({
2535
2539
  }, u = C(() => o(e.value)), l = C(() => o(e.modelValue)), c = (i, f) => {
2536
2540
  let d = "";
2537
2541
  i && ee(i) > 0 && (d = Ye($(i, (m) => {
2538
- var y;
2539
- const p = e.fieldNames, v = {
2542
+ var h;
2543
+ const p = e.fieldNames, y = {
2540
2544
  [p.id]: m.id,
2541
2545
  [p.name]: m.name,
2542
2546
  [p.size || "size"]: m.size
2543
2547
  };
2544
- return ((y = e.convertItem) == null ? void 0 : y.call(e, m, e.fieldNames)) || v;
2548
+ return ((h = e.convertItem) == null ? void 0 : h.call(e, m, e.fieldNames)) || y;
2545
2549
  }))), n(f, d);
2546
2550
  };
2547
2551
  return () => a ? s(a, L({
@@ -2573,7 +2577,7 @@ const qr = () => ({
2573
2577
  return !!g(u, ((l = e.fieldNames) == null ? void 0 : l.id) || "id");
2574
2578
  }, a = C(() => {
2575
2579
  let u = e.value;
2576
- return u && ye(u) && (u = mt(u)), u && !re(u) && Ke(u) && r(u) && (u = [u]), re(u) ? $(J(u, (l) => r(l)), (l) => {
2580
+ return u && ye(u) && (u = mt(u)), u && !ae(u) && Ke(u) && r(u) && (u = [u]), ae(u) ? $(J(u, (l) => r(l)), (l) => {
2577
2581
  var d, m, p;
2578
2582
  const c = g(l, ((d = e.fieldNames) == null ? void 0 : d.id) || "id"), i = g(l, ((m = e.fieldNames) == null ? void 0 : m.name) || "name"), f = g(l, ((p = e.fieldNames) == null ? void 0 : p.name) || "size");
2579
2583
  return {
@@ -2629,7 +2633,7 @@ const qr = () => ({
2629
2633
  return `${e}${n ? "?" : ""}${n || ""}`;
2630
2634
  }
2631
2635
  }, Ce = () => {
2632
- const { convertRouter: e } = ae(), t = dn(), n = ht(), r = ke(), u = { ...t, openMenu: (c) => {
2636
+ const { convertRouter: e } = oe(), t = dn(), n = ht(), r = ke(), u = { ...t, openMenu: (c) => {
2633
2637
  if (!!c) {
2634
2638
  if (ee(c.children) > 0) {
2635
2639
  const i = tn(c.children, (f) => !f.children || ee(f.children) <= 0);
@@ -2652,7 +2656,7 @@ const qr = () => ({
2652
2656
  }, ...ia };
2653
2657
  return { router: e ? e(u) : u, route: n };
2654
2658
  }, da = (e) => {
2655
- if (!re(e) || ee(e) <= 0)
2659
+ if (!ae(e) || ee(e) <= 0)
2656
2660
  return !1;
2657
2661
  const t = e[0];
2658
2662
  return ye(t) ? Qt(t, "$") : !1;
@@ -2681,13 +2685,13 @@ const qr = () => ({
2681
2685
  }
2682
2686
  return e;
2683
2687
  }, va = () => {
2684
- const e = un(), { registerStoreMap: t } = ae();
2688
+ const e = un(), { registerStoreMap: t } = oe();
2685
2689
  return (n, r) => {
2686
2690
  const a = g(t, n);
2687
2691
  !a || e(n, r, !!a.persist, a.initialState);
2688
2692
  };
2689
2693
  }, No = (e) => {
2690
- const { registerStoreMap: t } = ae(), n = g(t, e), r = `${n != null && n.persist ? "$" : ""}${n == null ? void 0 : n.key}`;
2694
+ const { registerStoreMap: t } = oe(), n = g(t, e), r = `${n != null && n.persist ? "$" : ""}${n == null ? void 0 : n.key}`;
2691
2695
  return ln(cn((o) => {
2692
2696
  const u = g(o, r);
2693
2697
  return u || (Y(n == null ? void 0 : n.initialState) ? n == null ? void 0 : n.initialState() : n == null ? void 0 : n.initialState);
@@ -2748,32 +2752,32 @@ const qr = () => ({
2748
2752
  elementMap: o,
2749
2753
  registerStoreMap: u,
2750
2754
  expressionMethods: l
2751
- } = ae(), c = e.elementMap || o, i = (h) => re(h) ? Ct(c, h) : Be(c, h), f = new rr(), d = (h) => {
2752
- f.next(h);
2753
- }, m = J(e.storeKeys, (h) => it(u, h)), p = () => ie(m, (h, E) => {
2755
+ } = oe(), c = e.elementMap || o, i = (v) => ae(v) ? Ct(c, v) : Be(c, v), f = new rr(), d = (v) => {
2756
+ f.next(v);
2757
+ }, m = J(e.storeKeys, (v) => it(u, v)), p = () => ie(m, (v, E) => {
2754
2758
  const k = g(u, E);
2755
2759
  return {
2756
- ...h,
2760
+ ...v,
2757
2761
  [E]: g(r.value, `${k.persist ? "$" : ""}${E}`) || g(u, [E, "initialState"])
2758
2762
  };
2759
- }, {}), v = p(), y = e.state || ve({
2760
- ...v,
2763
+ }, {}), y = p(), h = e.state || ve({
2764
+ ...y,
2761
2765
  ...e.initState
2762
- }), b = {}, x = (h) => {
2763
- const E = y[h.type], k = Y(h.payload) ? h.payload(E) : h.payload;
2764
- if (!re(E) && Ke(E)) {
2765
- yt(y[h.type], k);
2766
+ }), b = {}, x = (v) => {
2767
+ const E = h[v.type], k = Y(v.payload) ? v.payload(E) : v.payload;
2768
+ if (!ae(E) && Ke(E)) {
2769
+ yt(h[v.type], k);
2766
2770
  return;
2767
2771
  }
2768
- y[h.type] = k;
2772
+ h[v.type] = k;
2769
2773
  }, D = va(), I = {
2770
2774
  dispatch: x,
2771
2775
  dispatchStore: D
2772
2776
  };
2773
2777
  ue(() => {
2774
- const h = r.pipe(ar(() => p()), or((E) => {
2778
+ const v = r.pipe(ar(() => p()), or((E) => {
2775
2779
  se(E, (k, w) => {
2776
- const P = g(y, w);
2780
+ const P = g(h, w);
2777
2781
  vr(P, k) || x({
2778
2782
  type: w,
2779
2783
  payload: k
@@ -2781,13 +2785,13 @@ const qr = () => ({
2781
2785
  });
2782
2786
  })).subscribe();
2783
2787
  return () => {
2784
- h.unsubscribe();
2788
+ v.unsubscribe();
2785
2789
  };
2786
2790
  }, []);
2787
2791
  const {
2788
2792
  dispatchRequest: S
2789
2793
  } = Ue(), R = (() => {
2790
- const h = {}, E = ie(e.actors || [], (k, w) => ({
2794
+ const v = {}, E = ie(e.actors || [], (k, w) => ({
2791
2795
  ...k,
2792
2796
  [w.name]: w
2793
2797
  }), {});
@@ -2798,13 +2802,13 @@ const qr = () => ({
2798
2802
  return;
2799
2803
  k.actor = w;
2800
2804
  }
2801
- !k.actor || (h[k.actor.name] = k, k.action && (h[k.action] = k));
2802
- }), h;
2803
- })(), j = (h, ...E) => h.convertParams ? h.convertParams(...E) : h.convertParamsEx ? N(h.convertParamsEx, E) : g(E, 0), G = (h, E) => {
2805
+ !k.actor || (v[k.actor.name] = k, k.action && (v[k.action] = k));
2806
+ }), v;
2807
+ })(), j = (v, ...E) => v.convertParams ? v.convertParams(...E) : v.convertParamsEx ? N(v.convertParamsEx, E) : g(E, 0), G = (v, E) => {
2804
2808
  var k;
2805
- return h.convertData ? h.convertData(E) : h.convertDataEx ? N(h.convertDataEx, E) : (k = E.res) == null ? void 0 : k.data;
2806
- }, oe = (h, ...E) => {
2807
- const k = g(R, h);
2809
+ return v.convertData ? v.convertData(E) : v.convertDataEx ? N(v.convertDataEx, E) : (k = E.res) == null ? void 0 : k.data;
2810
+ }, re = (v, ...E) => {
2811
+ const k = g(R, v);
2808
2812
  if (!k)
2809
2813
  return;
2810
2814
  const w = j(k, ...E);
@@ -2814,55 +2818,55 @@ const qr = () => ({
2814
2818
  }), S(k.actor, w);
2815
2819
  };
2816
2820
  Er(Z(R), {
2817
- onSuccess: (h) => {
2821
+ onSuccess: (v) => {
2818
2822
  var w;
2819
- const E = g(R, h.name), k = G(E, h);
2823
+ const E = g(R, v.name), k = G(E, v);
2820
2824
  E != null && E.stateName && x({
2821
2825
  type: E.stateName,
2822
2826
  payload: k
2823
2827
  }), d({
2824
2828
  type: je.Success,
2825
2829
  payload: {
2826
- actor: h,
2830
+ actor: v,
2827
2831
  requestOpts: E
2828
2832
  }
2829
- }), (w = E.onSuccess) == null || w.call(E, h), E.onSuccessEx && A(E.onSuccessEx, [k]);
2833
+ }), (w = E.onSuccess) == null || w.call(E, v), E.onSuccessEx && A(E.onSuccessEx, [k]);
2830
2834
  },
2831
- onFailed: (h) => {
2835
+ onFailed: (v) => {
2832
2836
  var k;
2833
- const E = g(R, h.name);
2837
+ const E = g(R, v.name);
2834
2838
  d({
2835
2839
  type: je.Fail,
2836
2840
  payload: {
2837
- actor: h,
2841
+ actor: v,
2838
2842
  requestOpts: E
2839
2843
  }
2840
- }), (k = E.onFailed) == null || k.call(E, h), E.onFailedEx && A(E.onFailedEx, [h.err]);
2844
+ }), (k = E.onFailed) == null || k.call(E, v), E.onFailedEx && A(E.onFailedEx, [v.err]);
2841
2845
  },
2842
- onFinish: (h) => {
2843
- const E = g(R, [h.name, "loadingName"]);
2846
+ onFinish: (v) => {
2847
+ const E = g(R, [v.name, "loadingName"]);
2844
2848
  E && x({
2845
2849
  type: E,
2846
2850
  payload: !1
2847
2851
  });
2848
2852
  }
2849
2853
  }, !0);
2850
- const N = (h, E) => Je(h, {
2851
- state: y,
2854
+ const N = (v, E) => Je(v, {
2855
+ state: h,
2852
2856
  data: b,
2853
2857
  args: E,
2854
2858
  expressionMethods: l
2855
- }), A = (h, E) => {
2856
- if (!h)
2859
+ }), A = (v, E) => {
2860
+ if (!v)
2857
2861
  return;
2858
2862
  const k = {
2859
- state: y,
2863
+ state: h,
2860
2864
  data: b,
2861
2865
  args: E,
2862
2866
  expressionMethods: l
2863
2867
  };
2864
- se(h, (w) => {
2865
- if (!re(w) || ee(w) < 2) {
2868
+ se(v, (w) => {
2869
+ if (!ae(w) || ee(w) < 2) {
2866
2870
  console.log("execute invalid", w);
2867
2871
  return;
2868
2872
  }
@@ -2889,19 +2893,19 @@ const qr = () => ({
2889
2893
  elementMap: c,
2890
2894
  subject$: f,
2891
2895
  sendEvent: d,
2892
- state: y,
2896
+ state: h,
2893
2897
  dispatch: x,
2894
2898
  data: b,
2895
2899
  requests: e.requests,
2896
- sendRequest: oe,
2900
+ sendRequest: re,
2897
2901
  executeExp: N,
2898
2902
  execute: A
2899
2903
  }), n({
2900
2904
  sendEvent: d,
2901
- sendRequest: oe
2905
+ sendRequest: re
2902
2906
  }), () => {
2903
- var h;
2904
- return s(fe, null, [ee(e.elementConfigs) > 0 && i(e.elementConfigs), (h = t.default) == null ? void 0 : h.call(t)]);
2907
+ var v;
2908
+ return s(fe, null, [ee(e.elementConfigs) > 0 && i(e.elementConfigs), (v = t.default) == null ? void 0 : v.call(t)]);
2905
2909
  };
2906
2910
  }
2907
2911
  }), ct = (e) => {
@@ -2975,7 +2979,7 @@ const qr = () => ({
2975
2979
  `)), se((o = t.highConfig$) == null ? void 0 : o.registerPropsTrans, (u) => {
2976
2980
  const l = g(n, u.name);
2977
2981
  if (!(!l || Oe(l))) {
2978
- if (re(l)) {
2982
+ if (ae(l)) {
2979
2983
  if (Ie(l, (c) => Oe(c)))
2980
2984
  return;
2981
2985
  he(r, u.name, Ct(e, l));
@@ -3024,7 +3028,7 @@ const qr = () => ({
3024
3028
  key: t.elementId,
3025
3029
  ...a
3026
3030
  }, r);
3027
- }, Sa = (e) => re(e) ? tr(e) : ye(e) && e.indexOf(".") > 0 ? e.substring(0, e.indexOf(".")) : e, Pa = O({
3031
+ }, Sa = (e) => ae(e) ? tr(e) : ye(e) && e.indexOf(".") > 0 ? e.substring(0, e.indexOf(".")) : e, Pa = O({
3028
3032
  props: {
3029
3033
  elementMap: {
3030
3034
  type: Object
@@ -3043,29 +3047,29 @@ const qr = () => ({
3043
3047
  elementMap: a,
3044
3048
  elementConfig: o
3045
3049
  } = e, u = o.highConfig$, l = On(a, o);
3046
- se((p = o.highConfig$) == null ? void 0 : p.registerEventList, (v) => {
3047
- const y = (...x) => {
3048
- const D = `${o.elementId}-${v.name}`;
3050
+ se((p = o.highConfig$) == null ? void 0 : p.registerEventList, (y) => {
3051
+ const h = (...x) => {
3052
+ const D = `${o.elementId}-${y.name}`;
3049
3053
  n({
3050
3054
  type: D,
3051
3055
  payload: x
3052
- }), r(v.executeList, x);
3053
- }, b = nn(v.name, l);
3054
- l && rn(b) && an(b, l) && he(l, b, y);
3056
+ }), r(y.executeList, x);
3057
+ }, b = nn(y.name, l);
3058
+ l && rn(b) && an(b, l) && he(l, b, h);
3055
3059
  });
3056
3060
  const c = C(() => {
3057
3061
  if (!u.registerStateList || ee(u.registerStateList) <= 0)
3058
3062
  return;
3059
- const v = {
3063
+ const y = {
3060
3064
  ...l
3061
- }, y = J(u.registerStateList, (x) => !x.target || x.target === "prop"), b = $(y, (x) => {
3065
+ }, h = J(u.registerStateList, (x) => !x.target || x.target === "prop"), b = $(h, (x) => {
3062
3066
  const D = x.mapName || x.name, I = g(t, x.name);
3063
- return he(v, D, I), Sa(D);
3067
+ return he(y, D, I), Sa(D);
3064
3068
  });
3065
- return ne(v, b);
3066
- }), i = g(a, o.elementType) || o.elementType, f = Fn(a, o), d = ie(J(u.registerStateList, (v) => v.target === "slot"), (v, y) => ({
3067
- ...v,
3068
- [y.mapName]: () => g(t, y.name)
3069
+ return ne(y, b);
3070
+ }), i = g(a, o.elementType) || o.elementType, f = Fn(a, o), d = ie(J(u.registerStateList, (y) => y.target === "slot"), (y, h) => ({
3071
+ ...y,
3072
+ [h.mapName]: () => g(t, h.name)
3069
3073
  }), {}), m = {
3070
3074
  ...f,
3071
3075
  ...d
@@ -3094,7 +3098,7 @@ const qr = () => ({
3094
3098
  const n = g(e, ["highConfig$", "registerPropsTrans"]);
3095
3099
  n && ee(n) > 0 && se(n, (r) => {
3096
3100
  const a = g(e.elementProps, r.name);
3097
- re(a) ? se(a, (o) => {
3101
+ ae(a) ? se(a, (o) => {
3098
3102
  Ne(o, t);
3099
3103
  }) : Ne(a, t);
3100
3104
  }), e.children && ee(e.children) > 0 && se(e.children, (r) => {
@@ -3122,7 +3126,7 @@ const qr = () => ({
3122
3126
  }) => O(() => {
3123
3127
  const a = Q(), o = (c) => {
3124
3128
  const i = Jt(c);
3125
- return n && (re(i) ? se(i, (f) => Ne(f, n)) : Ne(i, n)), i;
3129
+ return n && (ae(i) ? se(i, (f) => Ne(f, n)) : Ne(i, n)), i;
3126
3130
  };
3127
3131
  ue(() => {
3128
3132
  t && t.elementConfigs && (a.value = o(t.elementConfigs)), t != null && t.elementConfigs;
@@ -3205,42 +3209,42 @@ const Ia = () => ({
3205
3209
  return e.title;
3206
3210
  if (e.useMenuName && r) {
3207
3211
  const {
3208
- menus: h,
3212
+ menus: v,
3209
3213
  convertName: E
3210
3214
  } = r, {
3211
3215
  target: k
3212
- } = $e(h.value, (w) => w.value === E(a));
3216
+ } = $e(v.value, (w) => w.value === E(a));
3213
3217
  return (k == null ? void 0 : k.label) || "";
3214
3218
  }
3215
3219
  return "";
3216
- }), f = C(() => nt(e.columns, e.columnState, e.columnState2)), d = (h, E) => {
3220
+ }), f = C(() => nt(e.columns, e.columnState, e.columnState2)), d = (v, E) => {
3217
3221
  const k = J(f.value, (w) => {
3218
- const P = g(w, ["extra", h]) || g(w, h);
3222
+ const P = g(w, ["extra", v]) || g(w, v);
3219
3223
  return E ? P !== !1 : P;
3220
3224
  });
3221
- return Gt(k, (w) => g(w, ["extra", `${h}Sort`]) || g(w, `${h}Sort`));
3222
- }, m = C(() => d("form", !0)), p = C(() => d("detail", !0)), v = C(() => d("table", !0)), y = C(() => d("search"));
3225
+ return Gt(k, (w) => g(w, ["extra", `${v}Sort`]) || g(w, `${v}Sort`));
3226
+ }, m = C(() => d("form", !0)), p = C(() => d("detail", !0)), y = C(() => d("table", !0)), h = C(() => d("search"));
3223
3227
  let b;
3224
- const x = (h) => {
3228
+ const x = (v) => {
3225
3229
  c(V.LIST, {
3226
3230
  ...b,
3227
- ...h
3231
+ ...v
3228
3232
  });
3229
- }, D = (h) => {
3233
+ }, D = (v) => {
3230
3234
  l({
3231
- type: h.action,
3232
- payload: K(h, "action", "source"),
3233
- source: h.source
3235
+ type: v.action,
3236
+ payload: K(v, "action", "source"),
3237
+ source: v.source
3234
3238
  });
3235
3239
  };
3236
3240
  St(({
3237
- type: h,
3241
+ type: v,
3238
3242
  payload: E,
3239
3243
  source: k
3240
3244
  }) => {
3241
3245
  if (k)
3242
3246
  return;
3243
- let w = h, P = E == null ? void 0 : E.type;
3247
+ let w = v, P = E == null ? void 0 : E.type;
3244
3248
  w === je.Success && (w = g(E, ["requestOpts", "action"]), P = _.SUCCESS);
3245
3249
  const {
3246
3250
  values: B,
@@ -3260,9 +3264,9 @@ const Ia = () => ({
3260
3264
  P === _.EMIT ? c(V.DELETE, U, e.rowKey) : P === _.SUCCESS && x();
3261
3265
  return;
3262
3266
  }
3263
- w && h === _.EXECUTE && c(w, B);
3267
+ w && v === _.EXECUTE && c(w, B);
3264
3268
  });
3265
- const I = C(() => e.operates), S = (h) => Ge(e.operates, (E) => E.action === h), T = C(() => e.defaultAddRecord), R = C(() => e.listProps), j = C(() => e.formProps), G = C(() => e.descProps), oe = C(() => e.modalProps), N = C(() => e.pageProps), A = C(() => e.subPageProps);
3269
+ const I = C(() => e.operates), S = (v) => Ge(e.operates, (E) => E.action === v), T = C(() => e.defaultAddRecord), R = C(() => e.listProps), j = C(() => e.formProps), G = C(() => e.descProps), re = C(() => e.modalProps), N = C(() => e.pageProps), A = C(() => e.subPageProps);
3266
3270
  return Ea({
3267
3271
  columns: f,
3268
3272
  getSignColumns: d,
@@ -3272,8 +3276,8 @@ const Ia = () => ({
3272
3276
  curdState: u,
3273
3277
  formColumns: m,
3274
3278
  descColumns: p,
3275
- tableColumns: v,
3276
- searchColumns: y,
3279
+ tableColumns: y,
3280
+ searchColumns: h,
3277
3281
  sendCurdEvent: D,
3278
3282
  operates: I,
3279
3283
  getOperate: S,
@@ -3283,15 +3287,15 @@ const Ia = () => ({
3283
3287
  listProps: R,
3284
3288
  formProps: j,
3285
3289
  descProps: G,
3286
- modalProps: oe,
3290
+ modalProps: re,
3287
3291
  pageProps: N,
3288
3292
  subPageProps: A
3289
3293
  }), n({
3290
3294
  sendCurdEvent: D,
3291
3295
  refreshList: x
3292
3296
  }), () => {
3293
- var h;
3294
- return (h = t.default) == null ? void 0 : h.call(t);
3297
+ var v;
3298
+ return (v = t.default) == null ? void 0 : v.call(t);
3295
3299
  };
3296
3300
  }
3297
3301
  }), Ze = O({
@@ -3310,32 +3314,32 @@ const Ia = () => ({
3310
3314
  elementMap: r,
3311
3315
  formElementMap: a,
3312
3316
  t: o
3313
- } = ae(), u = Q(), l = Q(), c = e.curdState || ve({
3317
+ } = oe(), u = Q(), l = Q(), c = e.curdState || ve({
3314
3318
  detailData: {}
3315
3319
  }), i = C(() => ({
3316
3320
  [V.LIST]: {
3317
3321
  convertParams: (p) => p,
3318
3322
  convertData: (p) => {
3319
- var v;
3320
- return (v = p.res) == null ? void 0 : v.data;
3323
+ var y;
3324
+ return (y = p.res) == null ? void 0 : y.data;
3321
3325
  },
3322
3326
  loadingName: "listLoading",
3323
3327
  stateName: "listData"
3324
3328
  },
3325
3329
  [V.DETAIL]: {
3326
- convertParams: (p, v) => ne(p, v),
3330
+ convertParams: (p, y) => ne(p, y),
3327
3331
  convertData: (p) => {
3328
- var v;
3329
- return (v = p.res) == null ? void 0 : v.data;
3332
+ var y;
3333
+ return (y = p.res) == null ? void 0 : y.data;
3330
3334
  },
3331
3335
  loadingName: "detailLoading",
3332
3336
  stateName: "detailData",
3333
3337
  label: o.value("details")
3334
3338
  },
3335
3339
  [V.ADD]: {
3336
- convertParams: (p, v) => ({
3340
+ convertParams: (p, y) => ({
3337
3341
  body: {
3338
- ...v,
3342
+ ...y,
3339
3343
  ...p
3340
3344
  }
3341
3345
  }),
@@ -3343,9 +3347,9 @@ const Ia = () => ({
3343
3347
  label: o.value("add")
3344
3348
  },
3345
3349
  [V.EDIT]: {
3346
- convertParams: (p, v) => ({
3350
+ convertParams: (p, y) => ({
3347
3351
  body: {
3348
- ...v,
3352
+ ...y,
3349
3353
  ...p
3350
3354
  }
3351
3355
  }),
@@ -3353,33 +3357,33 @@ const Ia = () => ({
3353
3357
  label: o.value("edit")
3354
3358
  },
3355
3359
  [V.DELETE]: {
3356
- convertParams: (p, v) => ne(p, v),
3360
+ convertParams: (p, y) => ne(p, y),
3357
3361
  label: o.value("delete")
3358
3362
  }
3359
3363
  })), f = C(() => $(e.operates, (p) => {
3360
3364
  var b;
3361
- const v = g(i.value, p.action), y = ((b = e.convertOperate) == null ? void 0 : b.call(e, p, v)) || p;
3365
+ const y = g(i.value, p.action), h = ((b = e.convertOperate) == null ? void 0 : b.call(e, p, y)) || p;
3362
3366
  return {
3363
- ...v,
3364
- ...y
3367
+ ...y,
3368
+ ...h
3365
3369
  };
3366
3370
  })), d = C(() => J(f.value, (p) => p.actor)), m = Z(K(We.props, "state", "requests"));
3367
3371
  return n({
3368
3372
  sendCurdEvent: (p) => {
3369
- var v;
3370
- (v = l.value) == null || v.sendCurdEvent(p);
3373
+ var y;
3374
+ (y = l.value) == null || y.sendCurdEvent(p);
3371
3375
  },
3372
3376
  refreshList: (p) => {
3373
- var v;
3374
- (v = l.value) == null || v.refreshList(p);
3377
+ var y;
3378
+ (y = l.value) == null || y.refreshList(p);
3375
3379
  },
3376
3380
  sendEvent: (p) => {
3377
- var v;
3378
- (v = u.value) == null || v.sendEvent(p);
3379
- },
3380
- sendRequest: (p, ...v) => {
3381
3381
  var y;
3382
- (y = u.value) == null || y.sendRequest(p, ...v);
3382
+ (y = u.value) == null || y.sendEvent(p);
3383
+ },
3384
+ sendRequest: (p, ...y) => {
3385
+ var h;
3386
+ (h = u.value) == null || h.sendRequest(p, ...y);
3383
3387
  }
3384
3388
  }), () => s(We, L({
3385
3389
  ref: u
@@ -3444,7 +3448,7 @@ const Ia = () => ({
3444
3448
  ...xa()
3445
3449
  },
3446
3450
  setup: (e) => {
3447
- var v;
3451
+ var y;
3448
3452
  const {
3449
3453
  dispatch: t,
3450
3454
  sendRequest: n
@@ -3455,52 +3459,52 @@ const Ia = () => ({
3455
3459
  getOperate: u,
3456
3460
  refreshList: l,
3457
3461
  defaultAddRecord: c
3458
- } = le(), i = (v = o == null ? void 0 : o.value) == null ? void 0 : v.pageState, f = (y) => {
3462
+ } = le(), i = (y = o == null ? void 0 : o.value) == null ? void 0 : y.pageState, f = (h) => {
3459
3463
  const b = u(V.DETAIL);
3460
- b != null && b.actor ? n(V.DETAIL, y, r) : t({
3464
+ b != null && b.actor ? n(V.DETAIL, h, r) : t({
3461
3465
  type: "detailData",
3462
- payload: Jt(y)
3466
+ payload: Jt(h)
3463
3467
  });
3464
- }, d = (y, {
3468
+ }, d = (h, {
3465
3469
  record: b
3466
3470
  }) => {
3467
- y === _.EMIT && (t({
3471
+ h === _.EMIT && (t({
3468
3472
  type: "mode",
3469
3473
  payload: Me.DETAIL
3470
3474
  }), f(b));
3471
- }, m = (y) => {
3472
- y === _.EMIT ? (t({
3475
+ }, m = (h) => {
3476
+ h === _.EMIT ? (t({
3473
3477
  type: "mode",
3474
3478
  payload: Me.ADD
3475
3479
  }), t({
3476
3480
  type: "detailData",
3477
3481
  payload: e.defaultAddRecord || (c == null ? void 0 : c.value) || {}
3478
- })) : y === _.SUCCESS && (i && (i.page = 1), l(), a.addAction === qe.CONTINUE ? t({
3482
+ })) : h === _.SUCCESS && (i && (i.page = 1), l(), a.addAction === qe.CONTINUE ? t({
3479
3483
  type: "detailData",
3480
3484
  payload: e.defaultAddRecord || (c == null ? void 0 : c.value) || {}
3481
3485
  }) : t({
3482
3486
  type: "mode",
3483
3487
  payload: void 0
3484
3488
  }));
3485
- }, p = (y, {
3489
+ }, p = (h, {
3486
3490
  record: b
3487
3491
  }) => {
3488
- y === _.EMIT ? (t({
3492
+ h === _.EMIT ? (t({
3489
3493
  type: "mode",
3490
3494
  payload: Me.EDIT
3491
- }), f(b)) : y === _.SUCCESS && (t({
3495
+ }), f(b)) : h === _.SUCCESS && (t({
3492
3496
  type: "mode",
3493
3497
  payload: void 0
3494
3498
  }), l());
3495
3499
  };
3496
3500
  return St(({
3497
- type: y,
3501
+ type: h,
3498
3502
  payload: b,
3499
3503
  source: x
3500
3504
  }) => {
3501
3505
  if (x)
3502
3506
  return;
3503
- let D = y, I = b == null ? void 0 : b.type;
3507
+ let D = h, I = b == null ? void 0 : b.type;
3504
3508
  const S = b == null ? void 0 : b.record;
3505
3509
  switch (D === je.Success && (D = g(b, ["requestOpts", "action"]), I = _.SUCCESS), D) {
3506
3510
  case V.DETAIL:
@@ -3613,22 +3617,22 @@ const Ia = () => ({
3613
3617
  }) => {
3614
3618
  if (p)
3615
3619
  return;
3616
- let v = d, y = m == null ? void 0 : m.type;
3620
+ let y = d, h = m == null ? void 0 : m.type;
3617
3621
  const b = m == null ? void 0 : m.record;
3618
- switch (v === je.Success && (v = g(m, ["requestOpts", "action"]), y = _.SUCCESS), v) {
3622
+ switch (y === je.Success && (y = g(m, ["requestOpts", "action"]), h = _.SUCCESS), y) {
3619
3623
  case V.LIST:
3620
- l(y);
3624
+ l(h);
3621
3625
  break;
3622
3626
  case V.DETAIL:
3623
- c(y, {
3627
+ c(h, {
3624
3628
  record: b
3625
3629
  });
3626
3630
  break;
3627
3631
  case V.ADD:
3628
- i(y);
3632
+ i(h);
3629
3633
  break;
3630
3634
  case V.EDIT:
3631
- f(y, {
3635
+ f(h, {
3632
3636
  record: b
3633
3637
  });
3634
3638
  break;
@@ -3762,13 +3766,13 @@ const Ia = () => ({
3762
3766
  ...(S = e.tableProps) == null ? void 0 : S.operate
3763
3767
  }
3764
3768
  };
3765
- }), v = C(() => {
3769
+ }), y = C(() => {
3766
3770
  var I;
3767
3771
  return e.paginationProps === !1 ? !1 : {
3768
3772
  total: (I = a.listData) == null ? void 0 : I.total,
3769
3773
  ...e.paginationProps
3770
3774
  };
3771
- }), y = C(() => {
3775
+ }), h = C(() => {
3772
3776
  var I;
3773
3777
  return e.paginationProps === !1 ? !1 : !!((I = a.listData) != null && I.total);
3774
3778
  }), b = Z(Bt()), D = te()(H.ProListKey);
@@ -3777,12 +3781,12 @@ const Ia = () => ({
3777
3781
  if (!D)
3778
3782
  return null;
3779
3783
  const I = ["pro-curd-list"];
3780
- return y.value && I.push("has-pagination"), s(D, L({
3784
+ return h.value && I.push("has-pagination"), s(D, L({
3781
3785
  class: I
3782
3786
  }, K(e, ...b, "searchProps", "tableProps", "paginationProps"), {
3783
3787
  searchProps: m.value,
3784
3788
  tableProps: p.value,
3785
- paginationProps: v.value,
3789
+ paginationProps: y.value,
3786
3790
  onSearch: d
3787
3791
  }), {
3788
3792
  "search-end": (S = e.addConfig) != null && S.inSearch ? () => {
@@ -3798,7 +3802,7 @@ const Ia = () => ({
3798
3802
  ...t,
3799
3803
  search: t.search ? (R) => t.search(R, m.value) : void 0,
3800
3804
  table: t.table ? (R) => t.table(R, p.value) : void 0,
3801
- pagination: t.pagination ? (R) => t.pagination(R, v.value) : void 0
3805
+ pagination: t.pagination ? (R) => t.pagination(R, y.value) : void 0
3802
3806
  });
3803
3807
  };
3804
3808
  }
@@ -3853,7 +3857,7 @@ const Ia = () => ({
3853
3857
  }) => {
3854
3858
  const {
3855
3859
  t: a
3856
- } = ae(), {
3860
+ } = oe(), {
3857
3861
  elementMap: o,
3858
3862
  formElementMap: u,
3859
3863
  curdState: l,
@@ -3865,10 +3869,10 @@ const Ia = () => ({
3865
3869
  const m = C(() => e.signName ? i(e.signName) : c.value), p = () => {
3866
3870
  var I;
3867
3871
  l.addAction = qe.NORMAL, (I = d.value) == null || I.submit();
3868
- }, v = () => {
3872
+ }, y = () => {
3869
3873
  var I;
3870
3874
  l.addAction = qe.CONTINUE, (I = d.value) == null || I.submit();
3871
- }, y = C(() => [
3875
+ }, h = C(() => [
3872
3876
  {
3873
3877
  value: de.RESET,
3874
3878
  label: a.value("reset")
@@ -3910,9 +3914,9 @@ const Ia = () => ({
3910
3914
  model: e.model || l.detailData,
3911
3915
  hideRequiredMark: l.mode === V.DETAIL,
3912
3916
  operate: e.operate ? {
3913
- items: y.value,
3917
+ items: h.value,
3914
3918
  onSubmit: p,
3915
- onContinue: v,
3919
+ onContinue: y,
3916
3920
  ...e.operate
3917
3921
  } : void 0,
3918
3922
  onFinish: b
@@ -4077,19 +4081,19 @@ const Ia = () => ({
4077
4081
  }) => {
4078
4082
  const {
4079
4083
  t: r
4080
- } = ae(), {
4084
+ } = oe(), {
4081
4085
  curdState: a
4082
4086
  } = le(), {
4083
4087
  clearMode: o,
4084
4088
  opeTitle: u
4085
- } = Rn(), l = C(() => e.title || u.value), c = C(() => !!Ie(e.validMode, (v) => v === a.mode)), i = () => {
4089
+ } = Rn(), l = C(() => e.title || u.value), c = C(() => !!Ie(e.validMode, (y) => y === a.mode)), i = () => {
4086
4090
  t("ok");
4087
4091
  }, f = C(() => {
4088
- var y;
4092
+ var h;
4089
4093
  if (a.mode === V.DETAIL)
4090
4094
  return [];
4091
- const v = (y = e.operate) == null ? void 0 : y.items;
4092
- return ee(v) > 0 ? v : [{
4095
+ const y = (h = e.operate) == null ? void 0 : h.items;
4096
+ return ee(y) > 0 ? y : [{
4093
4097
  value: "cancel",
4094
4098
  label: r.value("cancel"),
4095
4099
  onClick: o
@@ -4180,7 +4184,7 @@ const Ia = () => ({
4180
4184
  }), La = sn("app-config", void 0, !0), jn = () => {
4181
4185
  const {
4182
4186
  appConfig: e
4183
- } = ae(), [t, n] = La(), r = ve({
4187
+ } = oe(), [t, n] = La(), r = ve({
4184
4188
  ...e,
4185
4189
  ...t
4186
4190
  });
@@ -4365,15 +4369,15 @@ const Ia = () => ({
4365
4369
  })])
4366
4370
  } : b)), m = () => {
4367
4371
  o(), l();
4368
- }, p = te(), v = p(H.DrawerKey), y = p(H.ProFormKey);
4369
- return () => s(v, {
4372
+ }, p = te(), y = p(H.DrawerKey), h = p(H.ProFormKey);
4373
+ return () => s(y, {
4370
4374
  title: "\u8BBE\u7F6E",
4371
4375
  size: "260px",
4372
4376
  footer: !1
4373
4377
  }, {
4374
4378
  default: () => {
4375
4379
  var b;
4376
- return [s(y, {
4380
+ return [s(h, {
4377
4381
  class: "pro-app-config_form",
4378
4382
  model: u,
4379
4383
  columns: d.value
@@ -4389,7 +4393,7 @@ const Ia = () => ({
4389
4393
  });
4390
4394
  }
4391
4395
  }), ja = (e, t) => fn(t / 10, "#000000", e), Ba = (e, t) => fn(t / 10, "#ffffff", e), qa = (e, t) => {
4392
- var a, o, u, l, c, i, f, d, m, p, v, y;
4396
+ var a, o, u, l, c, i, f, d, m, p, y, h;
4393
4397
  const n = [1, 2, 3, 4, 5, 6, 7, 8, 9], r = (b) => ({
4394
4398
  base: b,
4395
4399
  light: ie(n, (x, D) => ({
@@ -4407,7 +4411,7 @@ const Ia = () => ({
4407
4411
  warning: r(((c = e == null ? void 0 : e.color) == null ? void 0 : c.warning) || ((i = t == null ? void 0 : t.color) == null ? void 0 : i.warning)),
4408
4412
  danger: r(((f = e == null ? void 0 : e.color) == null ? void 0 : f.danger) || ((d = t == null ? void 0 : t.color) == null ? void 0 : d.danger)),
4409
4413
  error: r(((m = e == null ? void 0 : e.color) == null ? void 0 : m.error) || ((p = t == null ? void 0 : t.color) == null ? void 0 : p.error)),
4410
- info: r(((v = e == null ? void 0 : e.color) == null ? void 0 : v.info) || ((y = t == null ? void 0 : t.color) == null ? void 0 : y.info)),
4414
+ info: r(((y = e == null ? void 0 : e.color) == null ? void 0 : y.info) || ((h = t == null ? void 0 : t.color) == null ? void 0 : h.info)),
4411
4415
  ...t == null ? void 0 : t.extraColor
4412
4416
  },
4413
4417
  radius: {
@@ -4635,7 +4639,7 @@ export {
4635
4639
  so as useMeta,
4636
4640
  xr as useMetaRegister,
4637
4641
  St as useModuleEvent,
4638
- ae as useProConfig,
4642
+ oe as useProConfig,
4639
4643
  le as useProCurd,
4640
4644
  Pn as useProForm,
4641
4645
  pn as useProFormList,