@vue-start/pro 0.5.65 → 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)));
@@ -255,6 +255,7 @@ const mn = Symbol("logon-user"), to = () => be(mn), gt = {
255
255
  FormKey: "Form$",
256
256
  FormItemKey: "FormItem$",
257
257
  TableKey: "Table$",
258
+ TableV2Key: "TableV2$",
258
259
  TableOperateKey: "TableOperate$",
259
260
  UploaderKey: "Uploader$",
260
261
  EmptyKey: "Empty$",
@@ -267,7 +268,7 @@ const mn = Symbol("logon-user"), to = () => be(mn), gt = {
267
268
  ProPageKey: "ProPage$",
268
269
  ProOperateKey: "ProOperate$"
269
270
  }, te = () => {
270
- const { elementMap: e } = ae();
271
+ const { elementMap: e } = oe();
271
272
  return (t) => g(e, t);
272
273
  };
273
274
  function wr(e) {
@@ -313,11 +314,11 @@ const Tr = () => ({
313
314
  return e;
314
315
  }, hn = (e) => {
315
316
  if (!!e)
316
- 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];
317
318
  }, io = (e, t, n) => !t || !n ? e : $(e, (r) => {
318
319
  const a = Y(n) ? n(r) : g(r, n), o = g(t, a);
319
320
  return !o || Wt(o) || Y(o) || !Ke(o) ? r : Hn(r, o, (u, l) => {
320
- if (re(u) || re(l))
321
+ if (ae(u) || ae(l))
321
322
  return l;
322
323
  });
323
324
  }), xe = (e, t) => {
@@ -416,7 +417,7 @@ const Tr = () => ({
416
417
  return;
417
418
  const I = () => {
418
419
  let T = g(a, f);
419
- re(T) || (T = []), T.push({
420
+ ae(T) || (T = []), T.push({
420
421
  [e.rowKey]: new Date().valueOf()
421
422
  }), he(a, f, T);
422
423
  };
@@ -425,7 +426,7 @@ const Tr = () => ({
425
426
  return;
426
427
  }
427
428
  I();
428
- }, v = (D, I) => {
429
+ }, y = (D, I) => {
429
430
  var R;
430
431
  if (((R = e.onPreRemove) == null ? void 0 : R.call(e, {
431
432
  index: D,
@@ -444,7 +445,7 @@ const Tr = () => ({
444
445
  return;
445
446
  }
446
447
  T();
447
- }, y = (D, I) => {
448
+ }, h = (D, I) => {
448
449
  const S = pe(D);
449
450
  return S && t[S] ? t[S]({
450
451
  item: D,
@@ -455,10 +456,10 @@ const Tr = () => ({
455
456
  if (!l || ee(e.columns) <= 0)
456
457
  return null;
457
458
  if (!e.row)
458
- return $(e.columns, (T) => y(T, D));
459
+ return $(e.columns, (T) => h(T, D));
459
460
  const S = $(e.columns, (T) => ({
460
461
  rowKey: pe(T),
461
- vNode: y(T, D),
462
+ vNode: h(T, D),
462
463
  col: g(T, ["extra", "col"])
463
464
  }));
464
465
  return s(De, {
@@ -480,14 +481,14 @@ const Tr = () => ({
480
481
  pathList: j
481
482
  }, {
482
483
  default: () => {
483
- var G, oe, N, A, h, E;
484
+ var G, re, N, A, v, E;
484
485
  return [s("div", {
485
486
  class: "pro-form-list-item"
486
487
  }, [(G = t.start) == null ? void 0 : G.call(t, {
487
488
  state: a,
488
489
  path: f,
489
490
  index: R
490
- }), b(j), (oe = t.default) == null ? void 0 : oe.call(t, {
491
+ }), b(j), (re = t.default) == null ? void 0 : re.call(t, {
491
492
  state: a,
492
493
  path: f,
493
494
  index: R
@@ -496,8 +497,8 @@ const Tr = () => ({
496
497
  onClick: p
497
498
  }, [((N = t.itemAdd) == null ? void 0 : N.call(t)) || ((A = e.renderItemAdd) == null ? void 0 : A.call(e))]), s("div", {
498
499
  class: "pro-form-list-item-minus",
499
- onClick: () => v(R, T)
500
- }, [((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))])])])];
501
502
  }
502
503
  });
503
504
  }), !o.value && s("div", {
@@ -584,7 +585,7 @@ const Ot = () => ({
584
585
  elementMap: o,
585
586
  formElementMap: u,
586
587
  t: l
587
- } = 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(() => {
588
589
  const F = nt(e.columns, e.columnState, e.columnState2);
589
590
  return e.convertColumn ? Zt(F, e.convertColumn) : F;
590
591
  }), b = Q(!1), x = Q(0), D = (...F) => {
@@ -608,8 +609,8 @@ const Ot = () => ({
608
609
  disableState: p,
609
610
  elementMap: c,
610
611
  formElementMap: i,
611
- readonly: v,
612
- columns: y,
612
+ readonly: y,
613
+ columns: h,
613
614
  formRef: j,
614
615
  userOpe: b,
615
616
  asyncNum: x,
@@ -624,7 +625,7 @@ const Ot = () => ({
624
625
  extraProps: {
625
626
  type: "primary"
626
627
  }
627
- }]), oe = () => {
628
+ }]), re = () => {
628
629
  var F, z;
629
630
  if ((F = e.operate) != null && F.onReset) {
630
631
  e.operate.onReset({
@@ -647,8 +648,8 @@ const Ot = () => ({
647
648
  (z = (F = e.operate) == null ? void 0 : F.onContinue) == null || z.call(F, {
648
649
  form: j.value
649
650
  });
650
- }, h = {
651
- [de.RESET]: oe,
651
+ }, v = {
652
+ [de.RESET]: re,
652
653
  [de.SUBMIT]: N,
653
654
  [de.CONTINUE]: A
654
655
  }, E = C(() => {
@@ -656,7 +657,7 @@ const Ot = () => ({
656
657
  const F = e.operate, z = (F == null ? void 0 : F.items) || ((M = e.opeItems) == null ? void 0 : M.call(e)) || G.value;
657
658
  return $(z, (q) => !q.onClick && !g(F == null ? void 0 : F.itemState, [q.value, "onClick"]) ? {
658
659
  ...q,
659
- onClick: g(h, q.value)
660
+ onClick: g(v, q.value)
660
661
  } : q);
661
662
  }), k = C(() => {
662
663
  var F;
@@ -671,7 +672,7 @@ const Ot = () => ({
671
672
  const z = pe(F);
672
673
  return z && t[z] ? t[z](F, f) : Nn(c, i, F);
673
674
  }, P = C(() => {
674
- const F = J(y.value, (z) => {
675
+ const F = J(h.value, (z) => {
675
676
  const M = pe(z);
676
677
  return !!g(d, M, !0);
677
678
  });
@@ -693,7 +694,7 @@ const Ot = () => ({
693
694
  model: f,
694
695
  onFinish: R
695
696
  }), {
696
- 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, {
697
698
  row: e.row,
698
699
  col: e.col,
699
700
  items: P.value
@@ -754,39 +755,39 @@ const Ft = () => ({
754
755
  slots: t,
755
756
  expose: n
756
757
  }) => {
757
- const a = te()(H.ProFormKey), o = e.model || ve({}), u = new Set(e.debounceTypes), l = $(J(e.columns, (y) => {
758
- 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);
759
760
  return u.has(b);
760
- }), (y) => pe(y)), c = C(() => $(e.columns, (y) => ({
761
- ...y,
762
- formItemProps: K(y.formItemProps, "required")
761
+ }), (h) => pe(h)), c = C(() => $(e.columns, (h) => ({
762
+ ...h,
763
+ formItemProps: K(h.formItemProps, "required")
763
764
  }))), i = Q(), f = e.formMethods || [];
764
765
  n(xe(f, i));
765
766
  const d = () => {
766
- var y;
767
- (y = i.value) == null || y.submit();
767
+ var h;
768
+ (h = i.value) == null || h.submit();
768
769
  }, m = _t(() => {
769
770
  d();
770
771
  }, e.debounceTime);
771
772
  ue(() => {
772
773
  e.initEmit && d();
773
774
  }, []);
774
- const p = (y, b, x) => Ie(x, (D) => g(y, D) !== g(b, D));
775
- Ee((y, b) => {
775
+ const p = (h, b, x) => Ie(x, (D) => g(h, D) !== g(b, D));
776
+ Ee((h, b) => {
776
777
  if (e.searchMode !== Qe.AUTO)
777
778
  return;
778
779
  const x = ee(e.debounceKeys) > 0 ? e.debounceKeys : l;
779
- if (ee(x) > 0 && p(y, b, x)) {
780
+ if (ee(x) > 0 && p(h, b, x)) {
780
781
  m();
781
782
  return;
782
783
  }
783
784
  d();
784
785
  }, () => Gn(o));
785
- const v = Z(Ft());
786
+ const y = Z(Ft());
786
787
  return () => a ? s(a, L({
787
788
  ref: i,
788
789
  class: "pro-search-form"
789
- }, K(e, v, "columns"), {
790
+ }, K(e, y, "columns"), {
790
791
  columns: c.value,
791
792
  model: o
792
793
  }), t) : null;
@@ -855,13 +856,13 @@ const Ft = () => ({
855
856
  formExtraMap: l,
856
857
  elementMap: c,
857
858
  t: i
858
- } = ae(), {
859
+ } = oe(), {
859
860
  formState: f,
860
861
  readonlyState: d,
861
862
  disableState: m,
862
863
  readonly: p,
863
- userOpe: v
864
- } = 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 = () => {
865
866
  var A;
866
867
  return `${g((A = l.value) == null ? void 0 : A.rulePrefixMap, r) || i.value("pleaseEnter")}${o.label || ""}`;
867
868
  }, D = C(() => {
@@ -870,8 +871,8 @@ const Ft = () => ({
870
871
  required: !0,
871
872
  message: x()
872
873
  }] : o.rules ? $(o.rules, (A) => (A.required && !A.message && (A.message = x()), A)) : o.rules : o.rules;
873
- }), I = hn(o.name), S = y != null && y.pathList ? [...y.pathList, ...I] : I, T = (N) => {
874
- 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);
875
876
  }, R = Z(Kt()), j = () => {
876
877
  const N = g(f, S);
877
878
  if (u.renderShow)
@@ -895,7 +896,7 @@ const Ft = () => ({
895
896
  record: f,
896
897
  path: S
897
898
  }) : s(n, L(t(N, T, A), o.fieldProps), u);
898
- }, oe = () => s(fe, null, [o.label, o.tip && s(Kr, L({
899
+ }, re = () => s(fe, null, [o.label, o.tip && s(Kr, L({
899
900
  content: o.tip,
900
901
  title: o.tip
901
902
  }, o.tipProps), null)]);
@@ -906,7 +907,7 @@ const Ft = () => ({
906
907
  rules: D.value
907
908
  }), {
908
909
  default: () => [b.value ? j() : G()],
909
- label: o.label || o.tip ? oe : void 0,
910
+ label: o.label || o.tip ? re : void 0,
910
911
  ...o.slots
911
912
  });
912
913
  }
@@ -938,7 +939,7 @@ const Ft = () => ({
938
939
  Add: "add",
939
940
  Edit: "edit",
940
941
  Delete: "delete"
941
- }, $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 = () => {
942
943
  const { per: e } = Lr() || { per: { menus: [], buttonMap: {} } }, t = ht();
943
944
  return (n, r) => {
944
945
  if (!n)
@@ -946,7 +947,7 @@ const Ft = () => ({
946
947
  let a = n;
947
948
  if (r != null && r.suffix) {
948
949
  const o = t.name ? t.name.toString() : "", u = (r == null ? void 0 : r.splitStr) || "_";
949
- a = re(a) ? $(a, (l) => `${o}${u}${l}`) : `${o}${u}${a}`;
950
+ a = ae(a) ? $(a, (l) => `${o}${u}${l}`) : `${o}${u}${a}`;
950
951
  }
951
952
  return $r(e.buttonMap, a);
952
953
  };
@@ -1020,7 +1021,7 @@ const qr = () => ({
1020
1021
  if (t[c.value])
1021
1022
  return t[c.value](p);
1022
1023
  if (u) {
1023
- const v = s(u, L({
1024
+ const y = s(u, L({
1024
1025
  disabled: i,
1025
1026
  loading: f,
1026
1027
  onClick: () => a(c)
@@ -1030,9 +1031,9 @@ const qr = () => ({
1030
1031
  return c.tip && l ? s(l, L({
1031
1032
  placement: "top"
1032
1033
  }, c.tipProps), {
1033
- default: () => [v],
1034
+ default: () => [y],
1034
1035
  content: () => c.tip
1035
- }) : v;
1036
+ }) : y;
1036
1037
  }
1037
1038
  return s("div", {
1038
1039
  class: `${e.clsName}-item`,
@@ -1075,7 +1076,7 @@ const qr = () => ({
1075
1076
  }) => {
1076
1077
  const {
1077
1078
  t: n
1078
- } = ae(), r = te(), a = r(H.PopoverKey), o = r(H.CheckboxKey), {
1079
+ } = oe(), r = te(), a = r(H.PopoverKey), o = r(H.CheckboxKey), {
1079
1080
  originColumns: u,
1080
1081
  selectIdsRef: l
1081
1082
  } = zr(), [c, i] = tt();
@@ -1089,23 +1090,23 @@ const qr = () => ({
1089
1090
  }, p = C(() => ie(l.value, (S, T) => ({
1090
1091
  ...S,
1091
1092
  [T]: !0
1092
- }), {})), v = (S) => Ar(S, e.signName);
1093
+ }), {})), y = (S) => Ar(S, e.signName);
1093
1094
  ue(() => {
1094
1095
  l.value = $(J(u.value, (S) => {
1095
1096
  var T;
1096
- 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;
1097
1098
  }), (S) => S.dataIndex);
1098
1099
  }, u), Ee(() => {
1099
1100
  var S;
1100
1101
  i(), m(), (S = e.onColumnSelectChange) == null || S.call(e, l.value);
1101
1102
  }, l);
1102
- const y = C(() => {
1103
+ const h = C(() => {
1103
1104
  const S = Xt(u.value, (R) => {
1104
1105
  var j;
1105
- 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);
1106
1107
  }), T = Ie(u.value, (R) => {
1107
1108
  var j;
1108
- 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);
1109
1110
  });
1110
1111
  return {
1111
1112
  checked: S,
@@ -1115,12 +1116,12 @@ const qr = () => ({
1115
1116
  var R;
1116
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) => {
1117
1118
  var G;
1118
- 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);
1119
1120
  }), (j) => j.dataIndex);
1120
1121
  }, x = () => {
1121
1122
  l.value = $(J(u.value, (S) => {
1122
1123
  var T;
1123
- 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;
1124
1125
  }), (S) => S.dataIndex);
1125
1126
  }, D = (S, T) => {
1126
1127
  var j;
@@ -1139,8 +1140,8 @@ const qr = () => ({
1139
1140
  class: `${e.clsName}-header`
1140
1141
  }, [s(o, {
1141
1142
  key: c.value,
1142
- checked: y.value.checked,
1143
- indeterminate: y.value.indeterminate,
1143
+ checked: h.value.checked,
1144
+ indeterminate: h.value.indeterminate,
1144
1145
  onChange: b
1145
1146
  }, {
1146
1147
  default: () => [e.allTitle || n.value("columnDisplay")]
@@ -1150,7 +1151,7 @@ const qr = () => ({
1150
1151
  key: c.value,
1151
1152
  class: `${e.clsName}-list`
1152
1153
  }, [$(u.value, (S) => {
1153
- const T = v(S), R = g(p.value, S.dataIndex, !1);
1154
+ const T = y(S), R = g(p.value, S.dataIndex, !1);
1154
1155
  return s(o, {
1155
1156
  checked: R,
1156
1157
  disabled: T == null ? void 0 : T.disabled,
@@ -1206,6 +1207,9 @@ const qr = () => ({
1206
1207
  },
1207
1208
  dataSource: {
1208
1209
  type: Array
1210
+ },
1211
+ virtual: {
1212
+ type: Boolean
1209
1213
  }
1210
1214
  }), Mo = O({
1211
1215
  inheritAttrs: !1,
@@ -1221,9 +1225,9 @@ const qr = () => ({
1221
1225
  const {
1222
1226
  elementMap: a,
1223
1227
  t: o
1224
- } = ae(), u = e.elementMap || a, {
1228
+ } = oe(), u = e.elementMap || a, {
1225
1229
  router: l
1226
- } = Ce(), c = g(a, H.TableKey), i = () => ({
1230
+ } = Ce(), c = e.virtual ? g(a, H.TableV2Key) || g(a, H.TableKey) : g(a, H.TableKey), i = () => ({
1227
1231
  title: o.value("serialNumber"),
1228
1232
  dataIndex: "serialNumber",
1229
1233
  width: 80,
@@ -1232,8 +1236,8 @@ const qr = () => ({
1232
1236
  customRender: ({
1233
1237
  index: N
1234
1238
  }) => {
1235
- var A, h;
1236
- 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;
1237
1241
  }
1238
1242
  }), f = (N, A) => {
1239
1243
  var E;
@@ -1241,20 +1245,20 @@ const qr = () => ({
1241
1245
  e.operateItemClickMap[A.value](N, A);
1242
1246
  return;
1243
1247
  }
1244
- const h = A.routeOpts;
1245
- if (h) {
1246
- Y(h) ? l.push(h(N)) : l.push({
1247
- name: h.name,
1248
- 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)
1249
1253
  });
1250
1254
  return;
1251
1255
  }
1252
1256
  (E = A.onClick) == null || E.call(A, N);
1253
1257
  }, d = ge(t, "operate"), m = () => {
1254
- const N = e.operate, A = $(N.items, (h) => ({
1255
- ...g(e.operateItemState, h.value),
1256
- ...h,
1257
- ...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)
1258
1262
  }));
1259
1263
  return {
1260
1264
  ...e.column,
@@ -1263,23 +1267,23 @@ const qr = () => ({
1263
1267
  fixed: "right",
1264
1268
  ...N.column,
1265
1269
  customRender: ({
1266
- record: h
1270
+ record: v
1267
1271
  }) => {
1268
1272
  const E = $(A, (w) => ({
1269
1273
  ...w,
1270
- show: Y(w.show) ? w.show(h) : w.show,
1271
- disabled: Y(w.disabled) ? w.disabled(h) : w.disabled,
1272
- loading: Y(w.loading) ? w.loading(h) : w.loading,
1273
- extraProps: Y(w.extraProps) ? w.extraProps(h) : w.extraProps,
1274
- element: Y(w.element) ? (P) => w.element(h, P) : w.element,
1275
- onClick: () => f(h, w),
1276
- tip: Y(w.tip) ? w.tip(h) : w.tip,
1277
- 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
1278
1282
  })), k = ie(Z(d), (w, P) => ({
1279
1283
  ...w,
1280
1284
  [P]: (B) => {
1281
1285
  var U;
1282
- 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);
1283
1287
  }
1284
1288
  }), {});
1285
1289
  return s(bt, {
@@ -1289,22 +1293,22 @@ const qr = () => ({
1289
1293
  }, k);
1290
1294
  }
1291
1295
  };
1292
- }, p = Q([]), v = C(() => {
1296
+ }, p = Q([]), y = C(() => {
1293
1297
  var N;
1294
1298
  return !!((N = e.toolbar) != null && N.columnSetting);
1295
- }), y = Bn(e, "columns"), b = C(() => {
1296
- if (!v.value)
1299
+ }), h = Bn(e, "columns"), b = C(() => {
1300
+ if (!y.value)
1297
1301
  return e.columns;
1298
- const N = ie(p.value, (A, h) => ({
1302
+ const N = ie(p.value, (A, v) => ({
1299
1303
  ...A,
1300
- [h]: !0
1304
+ [v]: !0
1301
1305
  }), {});
1302
1306
  return J(e.columns, (A) => g(N, A.dataIndex));
1303
1307
  }), x = (N) => $(N, (A) => {
1304
- const h = {
1308
+ const v = {
1305
1309
  ...e.column,
1306
1310
  ...A
1307
- }, E = e.convertColumn ? e.convertColumn(h) : h;
1311
+ }, E = e.convertColumn ? e.convertColumn(v) : v;
1308
1312
  return A.children && ee(A.children) > 0 ? (E.children = x(A.children), E) : (A.customRender || (E.customRender = ({
1309
1313
  value: k
1310
1314
  }) => typeof k > "u" || k === null || k === "" ? e.columnEmptyText : Pt(u, A, {
@@ -1314,15 +1318,15 @@ const qr = () => ({
1314
1318
  }) || k), E);
1315
1319
  }), D = C(() => {
1316
1320
  const N = nt(b.value, e.columnState, e.columnState2), A = x(N);
1317
- 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;
1318
1322
  }), I = C(() => {
1319
- var A, h;
1323
+ var A, v;
1320
1324
  const N = e.dataSource;
1321
- 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;
1322
1326
  }), S = Q();
1323
1327
  Hr({
1324
1328
  columns: D,
1325
- originColumns: y,
1329
+ originColumns: h,
1326
1330
  selectIdsRef: p,
1327
1331
  tableRef: S,
1328
1332
  toolbar: e.toolbar,
@@ -1332,19 +1336,19 @@ const qr = () => ({
1332
1336
  en(T, (N) => {
1333
1337
  const A = g(N, [0, "contentRect"]);
1334
1338
  R.value = A.height, qn(() => {
1335
- const h = window.getComputedStyle(T.value);
1336
- if (h) {
1337
- 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;
1338
1342
  j.value = R.value + E + k;
1339
1343
  }
1340
1344
  });
1341
1345
  });
1342
- const G = Z(Rt()), oe = ge(t, "columnSetting");
1346
+ const G = Z(Rt()), re = ge(t, "columnSetting");
1343
1347
  return () => {
1344
1348
  var w, P, B;
1345
1349
  if (!c)
1346
1350
  return null;
1347
- 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];
1348
1352
  let k = "";
1349
1353
  return R.value > 0 && (E.push("has-header"), k = `${e.clsName}-toolbar-valid`), s("div", L({
1350
1354
  class: E,
@@ -1356,7 +1360,7 @@ const qr = () => ({
1356
1360
  class: `${e.clsName}-toolbar-start`
1357
1361
  }, [A]), s("div", {
1358
1362
  class: `${e.clsName}-toolbar-extra`
1359
- }, [h || N])]), s(c, L({
1363
+ }, [v || N])]), s(c, L({
1360
1364
  ref: S
1361
1365
  }, K(r, "class"), K(e, G), {
1362
1366
  mergeOpts: e.mergeOpts,
@@ -1391,10 +1395,10 @@ const qr = () => ({
1391
1395
  router: c,
1392
1396
  route: i
1393
1397
  } = Ce(), f = C(() => {
1394
- const v = ft(t.value, (y) => y.keep ? ee(y.children) > 0 ? Xt(y.children, (b) => b.hide) : !0 : !1);
1395
- 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);
1396
1400
  }), d = C(() => {
1397
- const v = Z(f.value);
1401
+ const y = Z(f.value);
1398
1402
  if (!o.value) {
1399
1403
  const {
1400
1404
  parentList: x
@@ -1402,28 +1406,28 @@ const qr = () => ({
1402
1406
  const S = l(I);
1403
1407
  return c.hasRoute(S);
1404
1408
  });
1405
- return [...v, ...e.includes, ...$(D, (I) => I.value)];
1409
+ return [...y, ...e.includes, ...$(D, (I) => I.value)];
1406
1410
  }
1407
- let y = r.value;
1408
- e.tagsCache || (y = J(r.value, (x) => x.keep));
1409
- 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);
1410
1414
  return a.value && (b = J(b, (x) => x !== i.name)), [...e.includes, ...b];
1411
- }), m = /* @__PURE__ */ new Map(), p = (v, y) => (m.has(y) || m.set(y, {
1412
- ...v,
1415
+ }), m = /* @__PURE__ */ new Map(), p = (y, h) => (m.has(h) || m.set(h, {
1416
+ ...y,
1413
1417
  type: {
1414
- ...v.type,
1418
+ ...y.type,
1415
1419
  name: u(i)
1416
1420
  }
1417
- }), m.get(y));
1421
+ }), m.get(h));
1418
1422
  return () => s(hr, null, {
1419
1423
  default: ({
1420
- Component: v,
1421
- route: y
1424
+ Component: y,
1425
+ route: h
1422
1426
  }) => {
1423
1427
  let b;
1424
- 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, {
1425
1429
  include: d.value
1426
- }, [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)]);
1427
1431
  }
1428
1432
  });
1429
1433
  }
@@ -1453,7 +1457,7 @@ const qr = () => ({
1453
1457
  setup: (e) => {
1454
1458
  const {
1455
1459
  t
1456
- } = ae(), {
1460
+ } = oe(), {
1457
1461
  router: n,
1458
1462
  route: r
1459
1463
  } = Ce(), {
@@ -1524,7 +1528,7 @@ const qr = () => ({
1524
1528
  return;
1525
1529
  }
1526
1530
  n.openMenu(P);
1527
- }, v = (P) => {
1531
+ }, y = (P) => {
1528
1532
  var B;
1529
1533
  if (!f(P)) {
1530
1534
  if (P.value === ((B = d.value) == null ? void 0 : B.value)) {
@@ -1533,7 +1537,7 @@ const qr = () => ({
1533
1537
  }
1534
1538
  u.value = J(u.value, (U) => U.value !== P.value);
1535
1539
  }
1536
- }, y = (P) => {
1540
+ }, h = (P) => {
1537
1541
  var B;
1538
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));
1539
1543
  }, b = () => {
@@ -1572,17 +1576,17 @@ const qr = () => ({
1572
1576
  onDragEnd: G
1573
1577
  });
1574
1578
  }, [T]);
1575
- const oe = Q();
1579
+ const re = Q();
1576
1580
  ue(() => {
1577
1581
  var B;
1578
- const P = (B = oe.value) == null ? void 0 : B.originRef;
1582
+ const P = (B = re.value) == null ? void 0 : B.originRef;
1579
1583
  !P || P == null || P.handleOpen();
1580
- }, oe);
1584
+ }, re);
1581
1585
  const N = (P) => {
1582
1586
  P || (i.ctxMenuItem = null);
1583
1587
  }, A = (P) => {
1584
- P === "refresh" ? x(i.ctxMenuItem) : P === "close" ? v(i.ctxMenuItem) : P === "close-other" ? y(i.ctxMenuItem) : P === "close-all" && b(), S();
1585
- }, 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(() => {
1586
1590
  var B, U;
1587
1591
  const P = [];
1588
1592
  return ((B = d.value) == null ? void 0 : B.value) === ((U = i.ctxMenuItem) == null ? void 0 : U.value) && P.push({
@@ -1617,7 +1621,7 @@ const qr = () => ({
1617
1621
  }, [((F = P.itemLabel) == null ? void 0 : F.call(P, P)) || P.label, !B && s("div", {
1618
1622
  class: "pro-layout-tabs-item-close",
1619
1623
  onClick: (z) => {
1620
- z.preventDefault(), z.stopPropagation(), v(P);
1624
+ z.preventDefault(), z.stopPropagation(), y(P);
1621
1625
  },
1622
1626
  oncontextmenu: I
1623
1627
  }, [st("\u2715")])]);
@@ -1629,9 +1633,9 @@ const qr = () => ({
1629
1633
  class: "pro-layout-tabs-menus",
1630
1634
  style: `left:${i.ctxMenuPos.x}px;top:${i.ctxMenuPos.y}px`
1631
1635
  }, [s(k, {
1632
- ref: oe,
1636
+ ref: re,
1633
1637
  trigger: "click",
1634
- options: h.value,
1638
+ options: v.value,
1635
1639
  hideOnClick: !1,
1636
1640
  onCommand: A,
1637
1641
  onVisibleChange: N
@@ -1841,18 +1845,18 @@ const qr = () => ({
1841
1845
  return e.convertValue(M);
1842
1846
  const q = M.value.indexOf("?");
1843
1847
  return q > 0 ? M.value.substring(0, q) : M.value;
1844
- }, v = C(() => {
1848
+ }, y = C(() => {
1845
1849
  const M = Z(Yt(Qn(m.value, (q) => p(q)), (q) => q > 1));
1846
1850
  return ie(M, (q, X) => ({
1847
1851
  ...q,
1848
1852
  [X]: !0
1849
1853
  }), {});
1850
- }), y = (M) => {
1854
+ }), h = (M) => {
1851
1855
  if (e.convertName)
1852
1856
  return e.convertName(M, {
1853
1857
  menuTopMap: f.value
1854
1858
  });
1855
- if (M.name && v.value[M.name]) {
1859
+ if (M.name && y.value[M.name]) {
1856
1860
  const q = M.fullPath.indexOf("?");
1857
1861
  return M.name + M.fullPath.substring(q);
1858
1862
  }
@@ -1860,12 +1864,12 @@ const qr = () => ({
1860
1864
  }, b = C(() => {
1861
1865
  if (e.findCurrentTopName)
1862
1866
  return e.findCurrentTopName(l, f.value);
1863
- const M = y(l);
1867
+ const M = h(l);
1864
1868
  return f.value[M];
1865
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(() => {
1866
1870
  if (e.findActiveKey)
1867
1871
  return e.findActiveKey(l, f.value);
1868
- const M = y(l);
1872
+ const M = h(l);
1869
1873
  if (d.value[M])
1870
1874
  return M;
1871
1875
  const {
@@ -1894,7 +1898,7 @@ const qr = () => ({
1894
1898
  }));
1895
1899
  }
1896
1900
  return ee(q) <= 0 && G && (q = [G]), q;
1897
- })()), 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) => {
1898
1902
  N.value = J(N.value, (q) => q.value !== M);
1899
1903
  };
1900
1904
  Ee(() => {
@@ -1918,15 +1922,15 @@ const qr = () => ({
1918
1922
  }, []);
1919
1923
  const k = C(() => !!e.breadcrumb), w = Q(!1);
1920
1924
  Se(wn, {
1921
- convertName: y,
1925
+ convertName: h,
1922
1926
  convertValue: p,
1923
1927
  menus: c,
1924
1928
  showMenus: i,
1925
- repeatRouteMap: v,
1929
+ repeatRouteMap: y,
1926
1930
  menuMap: m,
1927
1931
  tabs: N,
1928
1932
  showTabs: R,
1929
- closeTab: h,
1933
+ closeTab: v,
1930
1934
  refreshRef: w,
1931
1935
  refresh: () => {
1932
1936
  w.value = !0, setTimeout(() => {
@@ -2040,7 +2044,7 @@ const qr = () => ({
2040
2044
  }) => {
2041
2045
  const {
2042
2046
  t: n
2043
- } = ae(), {
2047
+ } = oe(), {
2044
2048
  router: r
2045
2049
  } = Ce(), a = () => {
2046
2050
  var u;
@@ -2117,12 +2121,12 @@ const qr = () => ({
2117
2121
  class: m
2118
2122
  }, {
2119
2123
  default: () => {
2120
- var v, y;
2121
- 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), {
2122
2126
  showBack: r.value
2123
2127
  }), K(t, "start", "default", "footer")), s("div", {
2124
2128
  class: "pro-page-content"
2125
- }, [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", {
2126
2130
  class: "pro-page-footer"
2127
2131
  }, [f])];
2128
2132
  }
@@ -2183,24 +2187,28 @@ const qr = () => ({
2183
2187
  ...c,
2184
2188
  ...l
2185
2189
  });
2186
- }, f = (y, b) => {
2187
- c = y, l.page = b || 1, i();
2188
- }, d = (y, b) => {
2189
- l.page = y, l.pageSize = b, i();
2190
- }, 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
+ });
2191
2199
  return () => {
2192
- var b, x, D, I, S, T, R, j;
2193
- const y = t.search ? t.search({
2200
+ var x, D, I, S, T, R, j, G;
2201
+ const b = t.search ? t.search({
2194
2202
  executeSearchWithResetPage: f,
2195
2203
  pageState: l
2196
2204
  }) : s(fe, null, [a && s(a, L({
2197
2205
  class: `${e.clsName}-search`
2198
2206
  }, K(e.searchProps, "onFinish"), {
2199
- onFinish: (G) => f(G)
2207
+ onFinish: (re) => f(re)
2200
2208
  }), m)]);
2201
2209
  return s("div", {
2202
- class: e.clsName
2203
- }, [((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({
2204
2212
  pageState: l
2205
2213
  }) : s(fe, null, [o && s(o, L({
2206
2214
  class: `${e.clsName}-table`,
@@ -2211,8 +2219,8 @@ const qr = () => ({
2211
2219
  pagination: !1
2212
2220
  }, e.tableProps), {
2213
2221
  ...p,
2214
- toolbar: e.searchInTable ? () => p.toolbar ? p.toolbar(y) : y : p.toolbar
2215
- })]), ((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({
2216
2224
  executePageChange: d,
2217
2225
  pageState: l
2218
2226
  }) : s(fe, null, [e.paginationProps !== !1 && u && s("div", {
@@ -2221,7 +2229,7 @@ const qr = () => ({
2221
2229
  page: l.page,
2222
2230
  pageSize: l.pageSize,
2223
2231
  onComposeChange: d
2224
- }), 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))]);
2225
2233
  };
2226
2234
  }
2227
2235
  }), Lt = () => ({
@@ -2242,28 +2250,28 @@ const qr = () => ({
2242
2250
  }) => {
2243
2251
  const {
2244
2252
  elementMap: n
2245
- } = 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());
2246
2254
  return () => !o || !u ? null : s(o, L({
2247
2255
  class: e.clsName
2248
2256
  }, K(e, ...c, ...i, "model")), {
2249
2257
  default: () => {
2250
2258
  var f, d;
2251
2259
  return [(f = t.start) == null ? void 0 : f.call(t), $(l.value, (m) => {
2252
- const p = m.dataIndex, v = g(e.model, p);
2260
+ const p = m.dataIndex, y = g(e.model, p);
2253
2261
  return s(u, L({
2254
2262
  class: `${e.clsName}-item`
2255
2263
  }, g(m.extra, "desc")), {
2256
2264
  default: () => {
2257
- var y, b;
2258
- 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, {
2259
- 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
2260
2268
  }, {
2261
2269
  render: "descRender"
2262
2270
  })];
2263
2271
  },
2264
2272
  label: () => {
2265
- var y;
2266
- 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;
2267
2275
  }
2268
2276
  });
2269
2277
  }), (d = t.default) == null ? void 0 : d.call(t)];
@@ -2400,7 +2408,7 @@ const qr = () => ({
2400
2408
  const n = C(() => fr(e.options, (o) => o.label), void 0), r = C(() => {
2401
2409
  const o = e.value;
2402
2410
  let u = e.value;
2403
- 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;
2404
2412
  }), a = C(() => g(e.colorMap, e.value));
2405
2413
  return () => e.render ? e.render({
2406
2414
  color: a.value,
@@ -2450,7 +2458,7 @@ const qr = () => ({
2450
2458
  });
2451
2459
  }), r = C(() => {
2452
2460
  let a = e.value;
2453
- 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;
2454
2462
  });
2455
2463
  return () => e.render ? e.render({
2456
2464
  value: r.value,
@@ -2486,7 +2494,7 @@ const qr = () => ({
2486
2494
  }) => {
2487
2495
  const n = (a) => a && (e.isUnix ? kt.unix(a).format(e.format) : kt(a).format(e.format)), r = C(() => {
2488
2496
  let a = e.value;
2489
- 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;
2490
2498
  });
2491
2499
  return () => e.render ? e.render({
2492
2500
  value: r.value,
@@ -2518,7 +2526,7 @@ const qr = () => ({
2518
2526
  }) => {
2519
2527
  const a = te()(H.UploaderKey), o = (i) => {
2520
2528
  const f = mt(i);
2521
- if (re(f)) {
2529
+ if (ae(f)) {
2522
2530
  const d = e.fieldNames;
2523
2531
  return $(f, (m) => ({
2524
2532
  ...K(m, d.id, d.name, d.size),
@@ -2531,13 +2539,13 @@ const qr = () => ({
2531
2539
  }, u = C(() => o(e.value)), l = C(() => o(e.modelValue)), c = (i, f) => {
2532
2540
  let d = "";
2533
2541
  i && ee(i) > 0 && (d = Ye($(i, (m) => {
2534
- var y;
2535
- const p = e.fieldNames, v = {
2542
+ var h;
2543
+ const p = e.fieldNames, y = {
2536
2544
  [p.id]: m.id,
2537
2545
  [p.name]: m.name,
2538
2546
  [p.size || "size"]: m.size
2539
2547
  };
2540
- 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;
2541
2549
  }))), n(f, d);
2542
2550
  };
2543
2551
  return () => a ? s(a, L({
@@ -2569,7 +2577,7 @@ const qr = () => ({
2569
2577
  return !!g(u, ((l = e.fieldNames) == null ? void 0 : l.id) || "id");
2570
2578
  }, a = C(() => {
2571
2579
  let u = e.value;
2572
- 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) => {
2573
2581
  var d, m, p;
2574
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");
2575
2583
  return {
@@ -2625,7 +2633,7 @@ const qr = () => ({
2625
2633
  return `${e}${n ? "?" : ""}${n || ""}`;
2626
2634
  }
2627
2635
  }, Ce = () => {
2628
- 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) => {
2629
2637
  if (!!c) {
2630
2638
  if (ee(c.children) > 0) {
2631
2639
  const i = tn(c.children, (f) => !f.children || ee(f.children) <= 0);
@@ -2648,7 +2656,7 @@ const qr = () => ({
2648
2656
  }, ...ia };
2649
2657
  return { router: e ? e(u) : u, route: n };
2650
2658
  }, da = (e) => {
2651
- if (!re(e) || ee(e) <= 0)
2659
+ if (!ae(e) || ee(e) <= 0)
2652
2660
  return !1;
2653
2661
  const t = e[0];
2654
2662
  return ye(t) ? Qt(t, "$") : !1;
@@ -2677,13 +2685,13 @@ const qr = () => ({
2677
2685
  }
2678
2686
  return e;
2679
2687
  }, va = () => {
2680
- const e = un(), { registerStoreMap: t } = ae();
2688
+ const e = un(), { registerStoreMap: t } = oe();
2681
2689
  return (n, r) => {
2682
2690
  const a = g(t, n);
2683
2691
  !a || e(n, r, !!a.persist, a.initialState);
2684
2692
  };
2685
2693
  }, No = (e) => {
2686
- 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}`;
2687
2695
  return ln(cn((o) => {
2688
2696
  const u = g(o, r);
2689
2697
  return u || (Y(n == null ? void 0 : n.initialState) ? n == null ? void 0 : n.initialState() : n == null ? void 0 : n.initialState);
@@ -2744,32 +2752,32 @@ const qr = () => ({
2744
2752
  elementMap: o,
2745
2753
  registerStoreMap: u,
2746
2754
  expressionMethods: l
2747
- } = ae(), c = e.elementMap || o, i = (h) => re(h) ? Ct(c, h) : Be(c, h), f = new rr(), d = (h) => {
2748
- f.next(h);
2749
- }, 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) => {
2750
2758
  const k = g(u, E);
2751
2759
  return {
2752
- ...h,
2760
+ ...v,
2753
2761
  [E]: g(r.value, `${k.persist ? "$" : ""}${E}`) || g(u, [E, "initialState"])
2754
2762
  };
2755
- }, {}), v = p(), y = e.state || ve({
2756
- ...v,
2763
+ }, {}), y = p(), h = e.state || ve({
2764
+ ...y,
2757
2765
  ...e.initState
2758
- }), b = {}, x = (h) => {
2759
- const E = y[h.type], k = Y(h.payload) ? h.payload(E) : h.payload;
2760
- if (!re(E) && Ke(E)) {
2761
- 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);
2762
2770
  return;
2763
2771
  }
2764
- y[h.type] = k;
2772
+ h[v.type] = k;
2765
2773
  }, D = va(), I = {
2766
2774
  dispatch: x,
2767
2775
  dispatchStore: D
2768
2776
  };
2769
2777
  ue(() => {
2770
- const h = r.pipe(ar(() => p()), or((E) => {
2778
+ const v = r.pipe(ar(() => p()), or((E) => {
2771
2779
  se(E, (k, w) => {
2772
- const P = g(y, w);
2780
+ const P = g(h, w);
2773
2781
  vr(P, k) || x({
2774
2782
  type: w,
2775
2783
  payload: k
@@ -2777,13 +2785,13 @@ const qr = () => ({
2777
2785
  });
2778
2786
  })).subscribe();
2779
2787
  return () => {
2780
- h.unsubscribe();
2788
+ v.unsubscribe();
2781
2789
  };
2782
2790
  }, []);
2783
2791
  const {
2784
2792
  dispatchRequest: S
2785
2793
  } = Ue(), R = (() => {
2786
- const h = {}, E = ie(e.actors || [], (k, w) => ({
2794
+ const v = {}, E = ie(e.actors || [], (k, w) => ({
2787
2795
  ...k,
2788
2796
  [w.name]: w
2789
2797
  }), {});
@@ -2794,13 +2802,13 @@ const qr = () => ({
2794
2802
  return;
2795
2803
  k.actor = w;
2796
2804
  }
2797
- !k.actor || (h[k.actor.name] = k, k.action && (h[k.action] = k));
2798
- }), h;
2799
- })(), 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) => {
2800
2808
  var k;
2801
- return h.convertData ? h.convertData(E) : h.convertDataEx ? N(h.convertDataEx, E) : (k = E.res) == null ? void 0 : k.data;
2802
- }, oe = (h, ...E) => {
2803
- 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);
2804
2812
  if (!k)
2805
2813
  return;
2806
2814
  const w = j(k, ...E);
@@ -2810,55 +2818,55 @@ const qr = () => ({
2810
2818
  }), S(k.actor, w);
2811
2819
  };
2812
2820
  Er(Z(R), {
2813
- onSuccess: (h) => {
2821
+ onSuccess: (v) => {
2814
2822
  var w;
2815
- const E = g(R, h.name), k = G(E, h);
2823
+ const E = g(R, v.name), k = G(E, v);
2816
2824
  E != null && E.stateName && x({
2817
2825
  type: E.stateName,
2818
2826
  payload: k
2819
2827
  }), d({
2820
2828
  type: je.Success,
2821
2829
  payload: {
2822
- actor: h,
2830
+ actor: v,
2823
2831
  requestOpts: E
2824
2832
  }
2825
- }), (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]);
2826
2834
  },
2827
- onFailed: (h) => {
2835
+ onFailed: (v) => {
2828
2836
  var k;
2829
- const E = g(R, h.name);
2837
+ const E = g(R, v.name);
2830
2838
  d({
2831
2839
  type: je.Fail,
2832
2840
  payload: {
2833
- actor: h,
2841
+ actor: v,
2834
2842
  requestOpts: E
2835
2843
  }
2836
- }), (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]);
2837
2845
  },
2838
- onFinish: (h) => {
2839
- const E = g(R, [h.name, "loadingName"]);
2846
+ onFinish: (v) => {
2847
+ const E = g(R, [v.name, "loadingName"]);
2840
2848
  E && x({
2841
2849
  type: E,
2842
2850
  payload: !1
2843
2851
  });
2844
2852
  }
2845
2853
  }, !0);
2846
- const N = (h, E) => Je(h, {
2847
- state: y,
2854
+ const N = (v, E) => Je(v, {
2855
+ state: h,
2848
2856
  data: b,
2849
2857
  args: E,
2850
2858
  expressionMethods: l
2851
- }), A = (h, E) => {
2852
- if (!h)
2859
+ }), A = (v, E) => {
2860
+ if (!v)
2853
2861
  return;
2854
2862
  const k = {
2855
- state: y,
2863
+ state: h,
2856
2864
  data: b,
2857
2865
  args: E,
2858
2866
  expressionMethods: l
2859
2867
  };
2860
- se(h, (w) => {
2861
- if (!re(w) || ee(w) < 2) {
2868
+ se(v, (w) => {
2869
+ if (!ae(w) || ee(w) < 2) {
2862
2870
  console.log("execute invalid", w);
2863
2871
  return;
2864
2872
  }
@@ -2885,19 +2893,19 @@ const qr = () => ({
2885
2893
  elementMap: c,
2886
2894
  subject$: f,
2887
2895
  sendEvent: d,
2888
- state: y,
2896
+ state: h,
2889
2897
  dispatch: x,
2890
2898
  data: b,
2891
2899
  requests: e.requests,
2892
- sendRequest: oe,
2900
+ sendRequest: re,
2893
2901
  executeExp: N,
2894
2902
  execute: A
2895
2903
  }), n({
2896
2904
  sendEvent: d,
2897
- sendRequest: oe
2905
+ sendRequest: re
2898
2906
  }), () => {
2899
- var h;
2900
- 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)]);
2901
2909
  };
2902
2910
  }
2903
2911
  }), ct = (e) => {
@@ -2971,7 +2979,7 @@ const qr = () => ({
2971
2979
  `)), se((o = t.highConfig$) == null ? void 0 : o.registerPropsTrans, (u) => {
2972
2980
  const l = g(n, u.name);
2973
2981
  if (!(!l || Oe(l))) {
2974
- if (re(l)) {
2982
+ if (ae(l)) {
2975
2983
  if (Ie(l, (c) => Oe(c)))
2976
2984
  return;
2977
2985
  he(r, u.name, Ct(e, l));
@@ -3020,7 +3028,7 @@ const qr = () => ({
3020
3028
  key: t.elementId,
3021
3029
  ...a
3022
3030
  }, r);
3023
- }, 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({
3024
3032
  props: {
3025
3033
  elementMap: {
3026
3034
  type: Object
@@ -3039,29 +3047,29 @@ const qr = () => ({
3039
3047
  elementMap: a,
3040
3048
  elementConfig: o
3041
3049
  } = e, u = o.highConfig$, l = On(a, o);
3042
- se((p = o.highConfig$) == null ? void 0 : p.registerEventList, (v) => {
3043
- const y = (...x) => {
3044
- 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}`;
3045
3053
  n({
3046
3054
  type: D,
3047
3055
  payload: x
3048
- }), r(v.executeList, x);
3049
- }, b = nn(v.name, l);
3050
- 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);
3051
3059
  });
3052
3060
  const c = C(() => {
3053
3061
  if (!u.registerStateList || ee(u.registerStateList) <= 0)
3054
3062
  return;
3055
- const v = {
3063
+ const y = {
3056
3064
  ...l
3057
- }, 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) => {
3058
3066
  const D = x.mapName || x.name, I = g(t, x.name);
3059
- return he(v, D, I), Sa(D);
3067
+ return he(y, D, I), Sa(D);
3060
3068
  });
3061
- return ne(v, b);
3062
- }), i = g(a, o.elementType) || o.elementType, f = Fn(a, o), d = ie(J(u.registerStateList, (v) => v.target === "slot"), (v, y) => ({
3063
- ...v,
3064
- [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)
3065
3073
  }), {}), m = {
3066
3074
  ...f,
3067
3075
  ...d
@@ -3090,7 +3098,7 @@ const qr = () => ({
3090
3098
  const n = g(e, ["highConfig$", "registerPropsTrans"]);
3091
3099
  n && ee(n) > 0 && se(n, (r) => {
3092
3100
  const a = g(e.elementProps, r.name);
3093
- re(a) ? se(a, (o) => {
3101
+ ae(a) ? se(a, (o) => {
3094
3102
  Ne(o, t);
3095
3103
  }) : Ne(a, t);
3096
3104
  }), e.children && ee(e.children) > 0 && se(e.children, (r) => {
@@ -3118,7 +3126,7 @@ const qr = () => ({
3118
3126
  }) => O(() => {
3119
3127
  const a = Q(), o = (c) => {
3120
3128
  const i = Jt(c);
3121
- 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;
3122
3130
  };
3123
3131
  ue(() => {
3124
3132
  t && t.elementConfigs && (a.value = o(t.elementConfigs)), t != null && t.elementConfigs;
@@ -3201,42 +3209,42 @@ const Ia = () => ({
3201
3209
  return e.title;
3202
3210
  if (e.useMenuName && r) {
3203
3211
  const {
3204
- menus: h,
3212
+ menus: v,
3205
3213
  convertName: E
3206
3214
  } = r, {
3207
3215
  target: k
3208
- } = $e(h.value, (w) => w.value === E(a));
3216
+ } = $e(v.value, (w) => w.value === E(a));
3209
3217
  return (k == null ? void 0 : k.label) || "";
3210
3218
  }
3211
3219
  return "";
3212
- }), 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) => {
3213
3221
  const k = J(f.value, (w) => {
3214
- const P = g(w, ["extra", h]) || g(w, h);
3222
+ const P = g(w, ["extra", v]) || g(w, v);
3215
3223
  return E ? P !== !1 : P;
3216
3224
  });
3217
- return Gt(k, (w) => g(w, ["extra", `${h}Sort`]) || g(w, `${h}Sort`));
3218
- }, 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"));
3219
3227
  let b;
3220
- const x = (h) => {
3228
+ const x = (v) => {
3221
3229
  c(V.LIST, {
3222
3230
  ...b,
3223
- ...h
3231
+ ...v
3224
3232
  });
3225
- }, D = (h) => {
3233
+ }, D = (v) => {
3226
3234
  l({
3227
- type: h.action,
3228
- payload: K(h, "action", "source"),
3229
- source: h.source
3235
+ type: v.action,
3236
+ payload: K(v, "action", "source"),
3237
+ source: v.source
3230
3238
  });
3231
3239
  };
3232
3240
  St(({
3233
- type: h,
3241
+ type: v,
3234
3242
  payload: E,
3235
3243
  source: k
3236
3244
  }) => {
3237
3245
  if (k)
3238
3246
  return;
3239
- let w = h, P = E == null ? void 0 : E.type;
3247
+ let w = v, P = E == null ? void 0 : E.type;
3240
3248
  w === je.Success && (w = g(E, ["requestOpts", "action"]), P = _.SUCCESS);
3241
3249
  const {
3242
3250
  values: B,
@@ -3256,9 +3264,9 @@ const Ia = () => ({
3256
3264
  P === _.EMIT ? c(V.DELETE, U, e.rowKey) : P === _.SUCCESS && x();
3257
3265
  return;
3258
3266
  }
3259
- w && h === _.EXECUTE && c(w, B);
3267
+ w && v === _.EXECUTE && c(w, B);
3260
3268
  });
3261
- 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);
3262
3270
  return Ea({
3263
3271
  columns: f,
3264
3272
  getSignColumns: d,
@@ -3268,8 +3276,8 @@ const Ia = () => ({
3268
3276
  curdState: u,
3269
3277
  formColumns: m,
3270
3278
  descColumns: p,
3271
- tableColumns: v,
3272
- searchColumns: y,
3279
+ tableColumns: y,
3280
+ searchColumns: h,
3273
3281
  sendCurdEvent: D,
3274
3282
  operates: I,
3275
3283
  getOperate: S,
@@ -3279,15 +3287,15 @@ const Ia = () => ({
3279
3287
  listProps: R,
3280
3288
  formProps: j,
3281
3289
  descProps: G,
3282
- modalProps: oe,
3290
+ modalProps: re,
3283
3291
  pageProps: N,
3284
3292
  subPageProps: A
3285
3293
  }), n({
3286
3294
  sendCurdEvent: D,
3287
3295
  refreshList: x
3288
3296
  }), () => {
3289
- var h;
3290
- return (h = t.default) == null ? void 0 : h.call(t);
3297
+ var v;
3298
+ return (v = t.default) == null ? void 0 : v.call(t);
3291
3299
  };
3292
3300
  }
3293
3301
  }), Ze = O({
@@ -3306,32 +3314,32 @@ const Ia = () => ({
3306
3314
  elementMap: r,
3307
3315
  formElementMap: a,
3308
3316
  t: o
3309
- } = ae(), u = Q(), l = Q(), c = e.curdState || ve({
3317
+ } = oe(), u = Q(), l = Q(), c = e.curdState || ve({
3310
3318
  detailData: {}
3311
3319
  }), i = C(() => ({
3312
3320
  [V.LIST]: {
3313
3321
  convertParams: (p) => p,
3314
3322
  convertData: (p) => {
3315
- var v;
3316
- return (v = p.res) == null ? void 0 : v.data;
3323
+ var y;
3324
+ return (y = p.res) == null ? void 0 : y.data;
3317
3325
  },
3318
3326
  loadingName: "listLoading",
3319
3327
  stateName: "listData"
3320
3328
  },
3321
3329
  [V.DETAIL]: {
3322
- convertParams: (p, v) => ne(p, v),
3330
+ convertParams: (p, y) => ne(p, y),
3323
3331
  convertData: (p) => {
3324
- var v;
3325
- return (v = p.res) == null ? void 0 : v.data;
3332
+ var y;
3333
+ return (y = p.res) == null ? void 0 : y.data;
3326
3334
  },
3327
3335
  loadingName: "detailLoading",
3328
3336
  stateName: "detailData",
3329
3337
  label: o.value("details")
3330
3338
  },
3331
3339
  [V.ADD]: {
3332
- convertParams: (p, v) => ({
3340
+ convertParams: (p, y) => ({
3333
3341
  body: {
3334
- ...v,
3342
+ ...y,
3335
3343
  ...p
3336
3344
  }
3337
3345
  }),
@@ -3339,9 +3347,9 @@ const Ia = () => ({
3339
3347
  label: o.value("add")
3340
3348
  },
3341
3349
  [V.EDIT]: {
3342
- convertParams: (p, v) => ({
3350
+ convertParams: (p, y) => ({
3343
3351
  body: {
3344
- ...v,
3352
+ ...y,
3345
3353
  ...p
3346
3354
  }
3347
3355
  }),
@@ -3349,33 +3357,33 @@ const Ia = () => ({
3349
3357
  label: o.value("edit")
3350
3358
  },
3351
3359
  [V.DELETE]: {
3352
- convertParams: (p, v) => ne(p, v),
3360
+ convertParams: (p, y) => ne(p, y),
3353
3361
  label: o.value("delete")
3354
3362
  }
3355
3363
  })), f = C(() => $(e.operates, (p) => {
3356
3364
  var b;
3357
- 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;
3358
3366
  return {
3359
- ...v,
3360
- ...y
3367
+ ...y,
3368
+ ...h
3361
3369
  };
3362
3370
  })), d = C(() => J(f.value, (p) => p.actor)), m = Z(K(We.props, "state", "requests"));
3363
3371
  return n({
3364
3372
  sendCurdEvent: (p) => {
3365
- var v;
3366
- (v = l.value) == null || v.sendCurdEvent(p);
3373
+ var y;
3374
+ (y = l.value) == null || y.sendCurdEvent(p);
3367
3375
  },
3368
3376
  refreshList: (p) => {
3369
- var v;
3370
- (v = l.value) == null || v.refreshList(p);
3377
+ var y;
3378
+ (y = l.value) == null || y.refreshList(p);
3371
3379
  },
3372
3380
  sendEvent: (p) => {
3373
- var v;
3374
- (v = u.value) == null || v.sendEvent(p);
3375
- },
3376
- sendRequest: (p, ...v) => {
3377
3381
  var y;
3378
- (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);
3379
3387
  }
3380
3388
  }), () => s(We, L({
3381
3389
  ref: u
@@ -3440,7 +3448,7 @@ const Ia = () => ({
3440
3448
  ...xa()
3441
3449
  },
3442
3450
  setup: (e) => {
3443
- var v;
3451
+ var y;
3444
3452
  const {
3445
3453
  dispatch: t,
3446
3454
  sendRequest: n
@@ -3451,52 +3459,52 @@ const Ia = () => ({
3451
3459
  getOperate: u,
3452
3460
  refreshList: l,
3453
3461
  defaultAddRecord: c
3454
- } = 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) => {
3455
3463
  const b = u(V.DETAIL);
3456
- b != null && b.actor ? n(V.DETAIL, y, r) : t({
3464
+ b != null && b.actor ? n(V.DETAIL, h, r) : t({
3457
3465
  type: "detailData",
3458
- payload: Jt(y)
3466
+ payload: Jt(h)
3459
3467
  });
3460
- }, d = (y, {
3468
+ }, d = (h, {
3461
3469
  record: b
3462
3470
  }) => {
3463
- y === _.EMIT && (t({
3471
+ h === _.EMIT && (t({
3464
3472
  type: "mode",
3465
3473
  payload: Me.DETAIL
3466
3474
  }), f(b));
3467
- }, m = (y) => {
3468
- y === _.EMIT ? (t({
3475
+ }, m = (h) => {
3476
+ h === _.EMIT ? (t({
3469
3477
  type: "mode",
3470
3478
  payload: Me.ADD
3471
3479
  }), t({
3472
3480
  type: "detailData",
3473
3481
  payload: e.defaultAddRecord || (c == null ? void 0 : c.value) || {}
3474
- })) : 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({
3475
3483
  type: "detailData",
3476
3484
  payload: e.defaultAddRecord || (c == null ? void 0 : c.value) || {}
3477
3485
  }) : t({
3478
3486
  type: "mode",
3479
3487
  payload: void 0
3480
3488
  }));
3481
- }, p = (y, {
3489
+ }, p = (h, {
3482
3490
  record: b
3483
3491
  }) => {
3484
- y === _.EMIT ? (t({
3492
+ h === _.EMIT ? (t({
3485
3493
  type: "mode",
3486
3494
  payload: Me.EDIT
3487
- }), f(b)) : y === _.SUCCESS && (t({
3495
+ }), f(b)) : h === _.SUCCESS && (t({
3488
3496
  type: "mode",
3489
3497
  payload: void 0
3490
3498
  }), l());
3491
3499
  };
3492
3500
  return St(({
3493
- type: y,
3501
+ type: h,
3494
3502
  payload: b,
3495
3503
  source: x
3496
3504
  }) => {
3497
3505
  if (x)
3498
3506
  return;
3499
- let D = y, I = b == null ? void 0 : b.type;
3507
+ let D = h, I = b == null ? void 0 : b.type;
3500
3508
  const S = b == null ? void 0 : b.record;
3501
3509
  switch (D === je.Success && (D = g(b, ["requestOpts", "action"]), I = _.SUCCESS), D) {
3502
3510
  case V.DETAIL:
@@ -3609,22 +3617,22 @@ const Ia = () => ({
3609
3617
  }) => {
3610
3618
  if (p)
3611
3619
  return;
3612
- let v = d, y = m == null ? void 0 : m.type;
3620
+ let y = d, h = m == null ? void 0 : m.type;
3613
3621
  const b = m == null ? void 0 : m.record;
3614
- 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) {
3615
3623
  case V.LIST:
3616
- l(y);
3624
+ l(h);
3617
3625
  break;
3618
3626
  case V.DETAIL:
3619
- c(y, {
3627
+ c(h, {
3620
3628
  record: b
3621
3629
  });
3622
3630
  break;
3623
3631
  case V.ADD:
3624
- i(y);
3632
+ i(h);
3625
3633
  break;
3626
3634
  case V.EDIT:
3627
- f(y, {
3635
+ f(h, {
3628
3636
  record: b
3629
3637
  });
3630
3638
  break;
@@ -3758,13 +3766,13 @@ const Ia = () => ({
3758
3766
  ...(S = e.tableProps) == null ? void 0 : S.operate
3759
3767
  }
3760
3768
  };
3761
- }), v = C(() => {
3769
+ }), y = C(() => {
3762
3770
  var I;
3763
3771
  return e.paginationProps === !1 ? !1 : {
3764
3772
  total: (I = a.listData) == null ? void 0 : I.total,
3765
3773
  ...e.paginationProps
3766
3774
  };
3767
- }), y = C(() => {
3775
+ }), h = C(() => {
3768
3776
  var I;
3769
3777
  return e.paginationProps === !1 ? !1 : !!((I = a.listData) != null && I.total);
3770
3778
  }), b = Z(Bt()), D = te()(H.ProListKey);
@@ -3773,12 +3781,12 @@ const Ia = () => ({
3773
3781
  if (!D)
3774
3782
  return null;
3775
3783
  const I = ["pro-curd-list"];
3776
- return y.value && I.push("has-pagination"), s(D, L({
3784
+ return h.value && I.push("has-pagination"), s(D, L({
3777
3785
  class: I
3778
3786
  }, K(e, ...b, "searchProps", "tableProps", "paginationProps"), {
3779
3787
  searchProps: m.value,
3780
3788
  tableProps: p.value,
3781
- paginationProps: v.value,
3789
+ paginationProps: y.value,
3782
3790
  onSearch: d
3783
3791
  }), {
3784
3792
  "search-end": (S = e.addConfig) != null && S.inSearch ? () => {
@@ -3794,7 +3802,7 @@ const Ia = () => ({
3794
3802
  ...t,
3795
3803
  search: t.search ? (R) => t.search(R, m.value) : void 0,
3796
3804
  table: t.table ? (R) => t.table(R, p.value) : void 0,
3797
- pagination: t.pagination ? (R) => t.pagination(R, v.value) : void 0
3805
+ pagination: t.pagination ? (R) => t.pagination(R, y.value) : void 0
3798
3806
  });
3799
3807
  };
3800
3808
  }
@@ -3849,7 +3857,7 @@ const Ia = () => ({
3849
3857
  }) => {
3850
3858
  const {
3851
3859
  t: a
3852
- } = ae(), {
3860
+ } = oe(), {
3853
3861
  elementMap: o,
3854
3862
  formElementMap: u,
3855
3863
  curdState: l,
@@ -3861,10 +3869,10 @@ const Ia = () => ({
3861
3869
  const m = C(() => e.signName ? i(e.signName) : c.value), p = () => {
3862
3870
  var I;
3863
3871
  l.addAction = qe.NORMAL, (I = d.value) == null || I.submit();
3864
- }, v = () => {
3872
+ }, y = () => {
3865
3873
  var I;
3866
3874
  l.addAction = qe.CONTINUE, (I = d.value) == null || I.submit();
3867
- }, y = C(() => [
3875
+ }, h = C(() => [
3868
3876
  {
3869
3877
  value: de.RESET,
3870
3878
  label: a.value("reset")
@@ -3906,9 +3914,9 @@ const Ia = () => ({
3906
3914
  model: e.model || l.detailData,
3907
3915
  hideRequiredMark: l.mode === V.DETAIL,
3908
3916
  operate: e.operate ? {
3909
- items: y.value,
3917
+ items: h.value,
3910
3918
  onSubmit: p,
3911
- onContinue: v,
3919
+ onContinue: y,
3912
3920
  ...e.operate
3913
3921
  } : void 0,
3914
3922
  onFinish: b
@@ -4073,19 +4081,19 @@ const Ia = () => ({
4073
4081
  }) => {
4074
4082
  const {
4075
4083
  t: r
4076
- } = ae(), {
4084
+ } = oe(), {
4077
4085
  curdState: a
4078
4086
  } = le(), {
4079
4087
  clearMode: o,
4080
4088
  opeTitle: u
4081
- } = 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 = () => {
4082
4090
  t("ok");
4083
4091
  }, f = C(() => {
4084
- var y;
4092
+ var h;
4085
4093
  if (a.mode === V.DETAIL)
4086
4094
  return [];
4087
- const v = (y = e.operate) == null ? void 0 : y.items;
4088
- return ee(v) > 0 ? v : [{
4095
+ const y = (h = e.operate) == null ? void 0 : h.items;
4096
+ return ee(y) > 0 ? y : [{
4089
4097
  value: "cancel",
4090
4098
  label: r.value("cancel"),
4091
4099
  onClick: o
@@ -4176,7 +4184,7 @@ const Ia = () => ({
4176
4184
  }), La = sn("app-config", void 0, !0), jn = () => {
4177
4185
  const {
4178
4186
  appConfig: e
4179
- } = ae(), [t, n] = La(), r = ve({
4187
+ } = oe(), [t, n] = La(), r = ve({
4180
4188
  ...e,
4181
4189
  ...t
4182
4190
  });
@@ -4361,15 +4369,15 @@ const Ia = () => ({
4361
4369
  })])
4362
4370
  } : b)), m = () => {
4363
4371
  o(), l();
4364
- }, p = te(), v = p(H.DrawerKey), y = p(H.ProFormKey);
4365
- return () => s(v, {
4372
+ }, p = te(), y = p(H.DrawerKey), h = p(H.ProFormKey);
4373
+ return () => s(y, {
4366
4374
  title: "\u8BBE\u7F6E",
4367
4375
  size: "260px",
4368
4376
  footer: !1
4369
4377
  }, {
4370
4378
  default: () => {
4371
4379
  var b;
4372
- return [s(y, {
4380
+ return [s(h, {
4373
4381
  class: "pro-app-config_form",
4374
4382
  model: u,
4375
4383
  columns: d.value
@@ -4385,7 +4393,7 @@ const Ia = () => ({
4385
4393
  });
4386
4394
  }
4387
4395
  }), ja = (e, t) => fn(t / 10, "#000000", e), Ba = (e, t) => fn(t / 10, "#ffffff", e), qa = (e, t) => {
4388
- 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;
4389
4397
  const n = [1, 2, 3, 4, 5, 6, 7, 8, 9], r = (b) => ({
4390
4398
  base: b,
4391
4399
  light: ie(n, (x, D) => ({
@@ -4403,7 +4411,7 @@ const Ia = () => ({
4403
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)),
4404
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)),
4405
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)),
4406
- 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)),
4407
4415
  ...t == null ? void 0 : t.extraColor
4408
4416
  },
4409
4417
  radius: {
@@ -4631,7 +4639,7 @@ export {
4631
4639
  so as useMeta,
4632
4640
  xr as useMetaRegister,
4633
4641
  St as useModuleEvent,
4634
- ae as useProConfig,
4642
+ oe as useProConfig,
4635
4643
  le as useProCurd,
4636
4644
  Pn as useProForm,
4637
4645
  pn as useProFormList,