xph-crud 0.2.5 → 0.2.7
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.js +166 -167
- package/dist/index.umd.cjs +5 -5
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import Ce, { useCallback as me, createElement as Kn, createContext as Jn, useContext as Zn, useState as
|
|
2
|
-
import { Button as ie, Dropdown as
|
|
1
|
+
import Ce, { useCallback as me, createElement as Kn, createContext as Jn, useContext as Zn, useState as q, useRef as D, useEffect as G, Fragment as Vr, forwardRef as fe, useImperativeHandle as Te, useMemo as pt, memo as Ur } from "react";
|
|
2
|
+
import { Button as ie, Dropdown as Yr, theme as Xe, Space as Qn, Spin as Gr, Form as st, Select as Xr, TreeSelect as qr, Transfer as Kr, AutoComplete as Jr, Upload as Mt, message as Et, Input as Yt, InputNumber as eo, Switch as to, Radio as Zr, Checkbox as Qr, Cascader as ro, TimePicker as no, DatePicker as gt, Col as oo, Row as so, Table as io, Pagination as ao } from "antd";
|
|
3
3
|
import { CaretDownOutlined as en, ShrinkOutlined as co, FullscreenOutlined as lo, FullscreenExitOutlined as uo, CloseOutlined as fo, DownOutlined as po, UpOutlined as go, SearchOutlined as ho, ReloadOutlined as mo } from "@ant-design/icons";
|
|
4
4
|
import bo from "react-dom";
|
|
5
5
|
import it from "dayjs";
|
|
@@ -89,10 +89,10 @@ function _o() {
|
|
|
89
89
|
B.unshift("Warning: " + m), Function.prototype.apply.call(console[c], console, B);
|
|
90
90
|
}
|
|
91
91
|
}
|
|
92
|
-
var k = !1, L = !1,
|
|
92
|
+
var k = !1, L = !1, Y = !1, $ = !1, C = !1, w;
|
|
93
93
|
w = Symbol.for("react.module.reference");
|
|
94
94
|
function _(c) {
|
|
95
|
-
return !!(typeof c == "string" || typeof c == "function" || c === n || c === s || C || c === o || c === u || c === d || $ || c === b || k || L ||
|
|
95
|
+
return !!(typeof c == "string" || typeof c == "function" || c === n || c === s || C || c === o || c === u || c === d || $ || c === b || k || L || Y || typeof c == "object" && c !== null && (c.$$typeof === f || c.$$typeof === g || c.$$typeof === i || c.$$typeof === a || c.$$typeof === l || // This needs to include all possible module reference object
|
|
96
96
|
// types supported by any Flight configuration anywhere since
|
|
97
97
|
// we don't know which Flight build this will end up being used
|
|
98
98
|
// with.
|
|
@@ -153,14 +153,14 @@ function _o() {
|
|
|
153
153
|
}
|
|
154
154
|
return null;
|
|
155
155
|
}
|
|
156
|
-
var A = Object.assign, W = 0, ee, te, de, ce, z, N,
|
|
156
|
+
var A = Object.assign, W = 0, ee, te, de, ce, z, N, X;
|
|
157
157
|
function V() {
|
|
158
158
|
}
|
|
159
159
|
V.__reactDisabledLog = !0;
|
|
160
160
|
function yt() {
|
|
161
161
|
{
|
|
162
162
|
if (W === 0) {
|
|
163
|
-
ee = console.log, te = console.info, de = console.warn, ce = console.error, z = console.group, N = console.groupCollapsed,
|
|
163
|
+
ee = console.log, te = console.info, de = console.warn, ce = console.error, z = console.group, N = console.groupCollapsed, X = console.groupEnd;
|
|
164
164
|
var c = {
|
|
165
165
|
configurable: !0,
|
|
166
166
|
enumerable: !0,
|
|
@@ -208,7 +208,7 @@ function _o() {
|
|
|
208
208
|
value: N
|
|
209
209
|
}),
|
|
210
210
|
groupEnd: A({}, c, {
|
|
211
|
-
value:
|
|
211
|
+
value: X
|
|
212
212
|
})
|
|
213
213
|
});
|
|
214
214
|
}
|
|
@@ -629,17 +629,17 @@ Check the top-level render call using <` + y + ">.");
|
|
|
629
629
|
cr(se, c);
|
|
630
630
|
}
|
|
631
631
|
if (Pe.call(m, "key")) {
|
|
632
|
-
var Re = F(c), re = Object.keys(m).filter(function(
|
|
633
|
-
return
|
|
632
|
+
var Re = F(c), re = Object.keys(m).filter(function(qn) {
|
|
633
|
+
return qn !== "key";
|
|
634
634
|
}), Ft = re.length > 0 ? "{key: someKey, " + re.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
635
635
|
if (!lr[Re + Ft]) {
|
|
636
|
-
var
|
|
636
|
+
var Xn = re.length > 0 ? "{" + re.join(": ..., ") + ": ...}" : "{}";
|
|
637
637
|
T(`A props object containing a "key" prop is being spread into JSX:
|
|
638
638
|
let props = %s;
|
|
639
639
|
<%s {...props} />
|
|
640
640
|
React keys must be passed directly to JSX without using spread:
|
|
641
641
|
let props = %s;
|
|
642
|
-
<%s key={someKey} {...props} />`, Ft, Re,
|
|
642
|
+
<%s key={someKey} {...props} />`, Ft, Re, Xn, Re), lr[Re + Ft] = !0;
|
|
643
643
|
}
|
|
644
644
|
}
|
|
645
645
|
return c === n ? Bn(J) : Hn(J), J;
|
|
@@ -651,8 +651,8 @@ React keys must be passed directly to JSX without using spread:
|
|
|
651
651
|
function Un(c, m, y) {
|
|
652
652
|
return ur(c, m, y, !1);
|
|
653
653
|
}
|
|
654
|
-
var
|
|
655
|
-
Be.Fragment = n, Be.jsx =
|
|
654
|
+
var Yn = Un, Gn = Vn;
|
|
655
|
+
Be.Fragment = n, Be.jsx = Yn, Be.jsxs = Gn;
|
|
656
656
|
}()), Be;
|
|
657
657
|
}
|
|
658
658
|
process.env.NODE_ENV === "production" ? zt.exports = yo() : zt.exports = _o();
|
|
@@ -679,7 +679,7 @@ function ue(e) {
|
|
|
679
679
|
return e != null && typeof e == "object";
|
|
680
680
|
}
|
|
681
681
|
var Eo = "[object Symbol]";
|
|
682
|
-
function
|
|
682
|
+
function Gt(e) {
|
|
683
683
|
return typeof e == "symbol" || ue(e) && ge(e) == Eo;
|
|
684
684
|
}
|
|
685
685
|
function Ao(e, t) {
|
|
@@ -693,7 +693,7 @@ function nn(e) {
|
|
|
693
693
|
return e;
|
|
694
694
|
if (oe(e))
|
|
695
695
|
return Ao(e, nn) + "";
|
|
696
|
-
if (
|
|
696
|
+
if (Gt(e))
|
|
697
697
|
return br ? br.call(e) : "";
|
|
698
698
|
var t = e + "";
|
|
699
699
|
return t == "0" && 1 / e == -Do ? "-0" : t;
|
|
@@ -733,23 +733,23 @@ function Fe(e) {
|
|
|
733
733
|
}
|
|
734
734
|
return "";
|
|
735
735
|
}
|
|
736
|
-
var Wo = /[\\^$.*+?()[\]{}|]/g, No = /^\[object .+?Constructor\]$/, Ho = Function.prototype, Bo = Object.prototype, Vo = Ho.toString, Uo = Bo.hasOwnProperty,
|
|
736
|
+
var Wo = /[\\^$.*+?()[\]{}|]/g, No = /^\[object .+?Constructor\]$/, Ho = Function.prototype, Bo = Object.prototype, Vo = Ho.toString, Uo = Bo.hasOwnProperty, Yo = RegExp(
|
|
737
737
|
"^" + Vo.call(Uo).replace(Wo, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
738
738
|
);
|
|
739
|
-
function
|
|
739
|
+
function Go(e) {
|
|
740
740
|
if (!ae(e) || zo(e))
|
|
741
741
|
return !1;
|
|
742
|
-
var t = Z(e) ?
|
|
742
|
+
var t = Z(e) ? Yo : No;
|
|
743
743
|
return t.test(Fe(e));
|
|
744
744
|
}
|
|
745
|
-
function
|
|
745
|
+
function Xo(e, t) {
|
|
746
746
|
return e == null ? void 0 : e[t];
|
|
747
747
|
}
|
|
748
748
|
function Ee(e, t) {
|
|
749
|
-
var r =
|
|
750
|
-
return
|
|
749
|
+
var r = Xo(e, t);
|
|
750
|
+
return Go(r) ? r : void 0;
|
|
751
751
|
}
|
|
752
|
-
var It = Ee(pe, "WeakMap"), yr = Object.create,
|
|
752
|
+
var It = Ee(pe, "WeakMap"), yr = Object.create, qo = /* @__PURE__ */ function() {
|
|
753
753
|
function e() {
|
|
754
754
|
}
|
|
755
755
|
return function(t) {
|
|
@@ -813,11 +813,11 @@ var at = function() {
|
|
|
813
813
|
writable: !0
|
|
814
814
|
});
|
|
815
815
|
} : on, os = ts(ns), ss = 9007199254740991, is = /^(?:0|[1-9]\d*)$/;
|
|
816
|
-
function
|
|
816
|
+
function Xt(e, t) {
|
|
817
817
|
var r = typeof e;
|
|
818
818
|
return t = t ?? ss, !!t && (r == "number" || r != "symbol" && is.test(e)) && e > -1 && e % 1 == 0 && e < t;
|
|
819
819
|
}
|
|
820
|
-
function
|
|
820
|
+
function qt(e, t, r) {
|
|
821
821
|
t == "__proto__" && at ? at(e, t, {
|
|
822
822
|
configurable: !0,
|
|
823
823
|
enumerable: !0,
|
|
@@ -825,20 +825,20 @@ function Xt(e, t, r) {
|
|
|
825
825
|
writable: !0
|
|
826
826
|
}) : e[t] = r;
|
|
827
827
|
}
|
|
828
|
-
function
|
|
828
|
+
function qe(e, t) {
|
|
829
829
|
return e === t || e !== e && t !== t;
|
|
830
830
|
}
|
|
831
831
|
var as = Object.prototype, cs = as.hasOwnProperty;
|
|
832
832
|
function sn(e, t, r) {
|
|
833
833
|
var n = e[t];
|
|
834
|
-
(!(cs.call(e, t) &&
|
|
834
|
+
(!(cs.call(e, t) && qe(n, r)) || r === void 0 && !(t in e)) && qt(e, t, r);
|
|
835
835
|
}
|
|
836
836
|
function ls(e, t, r, n) {
|
|
837
837
|
var o = !r;
|
|
838
838
|
r || (r = {});
|
|
839
839
|
for (var s = -1, i = t.length; ++s < i; ) {
|
|
840
840
|
var a = t[s], l = void 0;
|
|
841
|
-
l === void 0 && (l = e[a]), o ?
|
|
841
|
+
l === void 0 && (l = e[a]), o ? qt(r, a, l) : sn(r, a, l);
|
|
842
842
|
}
|
|
843
843
|
return r;
|
|
844
844
|
}
|
|
@@ -867,7 +867,7 @@ function ps(e, t, r) {
|
|
|
867
867
|
if (!ae(r))
|
|
868
868
|
return !1;
|
|
869
869
|
var n = typeof t;
|
|
870
|
-
return (n == "number" ? ht(r) &&
|
|
870
|
+
return (n == "number" ? ht(r) && Xt(t, r.length) : n == "string" && t in r) ? qe(r[t], e) : !1;
|
|
871
871
|
}
|
|
872
872
|
function gs(e) {
|
|
873
873
|
return ds(function(t, r) {
|
|
@@ -901,24 +901,24 @@ var cn = Object.prototype, vs = cn.hasOwnProperty, ys = cn.propertyIsEnumerable,
|
|
|
901
901
|
function _s() {
|
|
902
902
|
return !1;
|
|
903
903
|
}
|
|
904
|
-
var ln = typeof exports == "object" && exports && !exports.nodeType && exports, wr = ln && typeof module == "object" && module && !module.nodeType && module, xs = wr && wr.exports === ln, Cr = xs ? pe.Buffer : void 0, ws = Cr ? Cr.isBuffer : void 0, ct = ws || _s, Cs = "[object Arguments]", Ts = "[object Array]", Ss = "[object Boolean]", Ps = "[object Date]", Rs = "[object Error]", js = "[object Function]", Fs = "[object Map]", Es = "[object Number]", As = "[object Object]", Ds = "[object RegExp]", Os = "[object Set]", $s = "[object String]", Ms = "[object WeakMap]", ks = "[object ArrayBuffer]", zs = "[object DataView]", Is = "[object Float32Array]", Ls = "[object Float64Array]", Ws = "[object Int8Array]", Ns = "[object Int16Array]", Hs = "[object Int32Array]", Bs = "[object Uint8Array]", Vs = "[object Uint8ClampedArray]", Us = "[object Uint16Array]",
|
|
905
|
-
U[Is] = U[Ls] = U[Ws] = U[Ns] = U[Hs] = U[Bs] = U[Vs] = U[Us] = U[
|
|
904
|
+
var ln = typeof exports == "object" && exports && !exports.nodeType && exports, wr = ln && typeof module == "object" && module && !module.nodeType && module, xs = wr && wr.exports === ln, Cr = xs ? pe.Buffer : void 0, ws = Cr ? Cr.isBuffer : void 0, ct = ws || _s, Cs = "[object Arguments]", Ts = "[object Array]", Ss = "[object Boolean]", Ps = "[object Date]", Rs = "[object Error]", js = "[object Function]", Fs = "[object Map]", Es = "[object Number]", As = "[object Object]", Ds = "[object RegExp]", Os = "[object Set]", $s = "[object String]", Ms = "[object WeakMap]", ks = "[object ArrayBuffer]", zs = "[object DataView]", Is = "[object Float32Array]", Ls = "[object Float64Array]", Ws = "[object Int8Array]", Ns = "[object Int16Array]", Hs = "[object Int32Array]", Bs = "[object Uint8Array]", Vs = "[object Uint8ClampedArray]", Us = "[object Uint16Array]", Ys = "[object Uint32Array]", U = {};
|
|
905
|
+
U[Is] = U[Ls] = U[Ws] = U[Ns] = U[Hs] = U[Bs] = U[Vs] = U[Us] = U[Ys] = !0;
|
|
906
906
|
U[Cs] = U[Ts] = U[ks] = U[Ss] = U[zs] = U[Ps] = U[Rs] = U[js] = U[Fs] = U[Es] = U[As] = U[Ds] = U[Os] = U[$s] = U[Ms] = !1;
|
|
907
|
-
function
|
|
907
|
+
function Gs(e) {
|
|
908
908
|
return ue(e) && an(e.length) && !!U[ge(e)];
|
|
909
909
|
}
|
|
910
|
-
function
|
|
910
|
+
function Xs(e) {
|
|
911
911
|
return function(t) {
|
|
912
912
|
return e(t);
|
|
913
913
|
};
|
|
914
914
|
}
|
|
915
|
-
var un = typeof exports == "object" && exports && !exports.nodeType && exports, Ue = un && typeof module == "object" && module && !module.nodeType && module,
|
|
915
|
+
var un = typeof exports == "object" && exports && !exports.nodeType && exports, Ue = un && typeof module == "object" && module && !module.nodeType && module, qs = Ue && Ue.exports === un, Dt = qs && tn.process, Tr = function() {
|
|
916
916
|
try {
|
|
917
917
|
var e = Ue && Ue.require && Ue.require("util").types;
|
|
918
918
|
return e || Dt && Dt.binding && Dt.binding("util");
|
|
919
919
|
} catch {
|
|
920
920
|
}
|
|
921
|
-
}(), Sr = Tr && Tr.isTypedArray, Jt = Sr ?
|
|
921
|
+
}(), Sr = Tr && Tr.isTypedArray, Jt = Sr ? Xs(Sr) : Gs, Ks = Object.prototype, Js = Ks.hasOwnProperty;
|
|
922
922
|
function dn(e, t) {
|
|
923
923
|
var r = oe(e), n = !r && Lt(e), o = !r && !n && ct(e), s = !r && !n && !o && Jt(e), i = r || n || o || s, a = i ? ms(e.length, String) : [], l = a.length;
|
|
924
924
|
for (var u in e)
|
|
@@ -926,7 +926,7 @@ function dn(e, t) {
|
|
|
926
926
|
(u == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
|
|
927
927
|
o && (u == "offset" || u == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
|
|
928
928
|
s && (u == "buffer" || u == "byteLength" || u == "byteOffset") || // Skip index properties.
|
|
929
|
-
|
|
929
|
+
Xt(u, l))) && a.push(u);
|
|
930
930
|
return a;
|
|
931
931
|
}
|
|
932
932
|
function fn(e, t) {
|
|
@@ -970,11 +970,11 @@ function li(e, t) {
|
|
|
970
970
|
if (oe(e))
|
|
971
971
|
return !1;
|
|
972
972
|
var r = typeof e;
|
|
973
|
-
return r == "number" || r == "symbol" || r == "boolean" || e == null ||
|
|
973
|
+
return r == "number" || r == "symbol" || r == "boolean" || e == null || Gt(e) ? !0 : ci.test(e) || !ai.test(e) || t != null && e in Object(t);
|
|
974
974
|
}
|
|
975
|
-
var
|
|
975
|
+
var Ye = Ee(Object, "create");
|
|
976
976
|
function ui() {
|
|
977
|
-
this.__data__ =
|
|
977
|
+
this.__data__ = Ye ? Ye(null) : {}, this.size = 0;
|
|
978
978
|
}
|
|
979
979
|
function di(e) {
|
|
980
980
|
var t = this.has(e) && delete this.__data__[e];
|
|
@@ -983,7 +983,7 @@ function di(e) {
|
|
|
983
983
|
var fi = "__lodash_hash_undefined__", pi = Object.prototype, gi = pi.hasOwnProperty;
|
|
984
984
|
function hi(e) {
|
|
985
985
|
var t = this.__data__;
|
|
986
|
-
if (
|
|
986
|
+
if (Ye) {
|
|
987
987
|
var r = t[e];
|
|
988
988
|
return r === fi ? void 0 : r;
|
|
989
989
|
}
|
|
@@ -992,12 +992,12 @@ function hi(e) {
|
|
|
992
992
|
var mi = Object.prototype, bi = mi.hasOwnProperty;
|
|
993
993
|
function vi(e) {
|
|
994
994
|
var t = this.__data__;
|
|
995
|
-
return
|
|
995
|
+
return Ye ? t[e] !== void 0 : bi.call(t, e);
|
|
996
996
|
}
|
|
997
997
|
var yi = "__lodash_hash_undefined__";
|
|
998
998
|
function _i(e, t) {
|
|
999
999
|
var r = this.__data__;
|
|
1000
|
-
return this.size += this.has(e) ? 0 : 1, r[e] =
|
|
1000
|
+
return this.size += this.has(e) ? 0 : 1, r[e] = Ye && t === void 0 ? yi : t, this;
|
|
1001
1001
|
}
|
|
1002
1002
|
function je(e) {
|
|
1003
1003
|
var t = -1, r = e == null ? 0 : e.length;
|
|
@@ -1016,7 +1016,7 @@ function xi() {
|
|
|
1016
1016
|
}
|
|
1017
1017
|
function mt(e, t) {
|
|
1018
1018
|
for (var r = e.length; r--; )
|
|
1019
|
-
if (
|
|
1019
|
+
if (qe(e[r][0], t))
|
|
1020
1020
|
return r;
|
|
1021
1021
|
return -1;
|
|
1022
1022
|
}
|
|
@@ -1051,11 +1051,11 @@ ve.prototype.delete = Ti;
|
|
|
1051
1051
|
ve.prototype.get = Si;
|
|
1052
1052
|
ve.prototype.has = Pi;
|
|
1053
1053
|
ve.prototype.set = Ri;
|
|
1054
|
-
var
|
|
1054
|
+
var Ge = Ee(pe, "Map");
|
|
1055
1055
|
function ji() {
|
|
1056
1056
|
this.size = 0, this.__data__ = {
|
|
1057
1057
|
hash: new je(),
|
|
1058
|
-
map: new (
|
|
1058
|
+
map: new (Ge || ve)(),
|
|
1059
1059
|
string: new je()
|
|
1060
1060
|
};
|
|
1061
1061
|
}
|
|
@@ -1128,7 +1128,7 @@ function Ni(e, t) {
|
|
|
1128
1128
|
}
|
|
1129
1129
|
var Hi = 1 / 0;
|
|
1130
1130
|
function Bi(e) {
|
|
1131
|
-
if (typeof e == "string" ||
|
|
1131
|
+
if (typeof e == "string" || Gt(e))
|
|
1132
1132
|
return e;
|
|
1133
1133
|
var t = e + "";
|
|
1134
1134
|
return t == "0" && 1 / e == -Hi ? "-0" : t;
|
|
@@ -1138,15 +1138,15 @@ function Vi(e, t) {
|
|
|
1138
1138
|
e[o + r] = t[r];
|
|
1139
1139
|
return e;
|
|
1140
1140
|
}
|
|
1141
|
-
var gn = fn(Object.getPrototypeOf, Object), Ui = "[object Object]",
|
|
1141
|
+
var gn = fn(Object.getPrototypeOf, Object), Ui = "[object Object]", Yi = Function.prototype, Gi = Object.prototype, hn = Yi.toString, Xi = Gi.hasOwnProperty, qi = hn.call(Object);
|
|
1142
1142
|
function Ki(e) {
|
|
1143
1143
|
if (!ue(e) || ge(e) != Ui)
|
|
1144
1144
|
return !1;
|
|
1145
1145
|
var t = gn(e);
|
|
1146
1146
|
if (t === null)
|
|
1147
1147
|
return !0;
|
|
1148
|
-
var r =
|
|
1149
|
-
return typeof r == "function" && r instanceof r && hn.call(r) ==
|
|
1148
|
+
var r = Xi.call(t, "constructor") && t.constructor;
|
|
1149
|
+
return typeof r == "function" && r instanceof r && hn.call(r) == qi;
|
|
1150
1150
|
}
|
|
1151
1151
|
function Ji() {
|
|
1152
1152
|
this.__data__ = new ve(), this.size = 0;
|
|
@@ -1166,7 +1166,7 @@ function ra(e, t) {
|
|
|
1166
1166
|
var r = this.__data__;
|
|
1167
1167
|
if (r instanceof ve) {
|
|
1168
1168
|
var n = r.__data__;
|
|
1169
|
-
if (!
|
|
1169
|
+
if (!Ge || n.length < ta - 1)
|
|
1170
1170
|
return n.push([e, t]), this.size = ++r.size, this;
|
|
1171
1171
|
r = this.__data__ = new ye(n);
|
|
1172
1172
|
}
|
|
@@ -1208,8 +1208,8 @@ function ua(e, t, r) {
|
|
|
1208
1208
|
function Fr(e) {
|
|
1209
1209
|
return ua(e, ri, la);
|
|
1210
1210
|
}
|
|
1211
|
-
var Wt = Ee(pe, "DataView"), Nt = Ee(pe, "Promise"), Ht = Ee(pe, "Set"), Er = "[object Map]", da = "[object Object]", Ar = "[object Promise]", Dr = "[object Set]", Or = "[object WeakMap]", $r = "[object DataView]", fa = Fe(Wt), pa = Fe(
|
|
1212
|
-
(Wt && xe(new Wt(new ArrayBuffer(1))) != $r ||
|
|
1211
|
+
var Wt = Ee(pe, "DataView"), Nt = Ee(pe, "Promise"), Ht = Ee(pe, "Set"), Er = "[object Map]", da = "[object Object]", Ar = "[object Promise]", Dr = "[object Set]", Or = "[object WeakMap]", $r = "[object DataView]", fa = Fe(Wt), pa = Fe(Ge), ga = Fe(Nt), ha = Fe(Ht), ma = Fe(It), xe = ge;
|
|
1212
|
+
(Wt && xe(new Wt(new ArrayBuffer(1))) != $r || Ge && xe(new Ge()) != Er || Nt && xe(Nt.resolve()) != Ar || Ht && xe(new Ht()) != Dr || It && xe(new It()) != Or) && (xe = function(e) {
|
|
1213
1213
|
var t = ge(e), r = t == da ? e.constructor : void 0, n = r ? Fe(r) : "";
|
|
1214
1214
|
if (n)
|
|
1215
1215
|
switch (n) {
|
|
@@ -1236,7 +1236,7 @@ function va(e, t) {
|
|
|
1236
1236
|
return new e.constructor(r, e.byteOffset, e.length);
|
|
1237
1237
|
}
|
|
1238
1238
|
function ya(e) {
|
|
1239
|
-
return typeof e.constructor == "function" && !Kt(e) ?
|
|
1239
|
+
return typeof e.constructor == "function" && !Kt(e) ? qo(gn(e)) : {};
|
|
1240
1240
|
}
|
|
1241
1241
|
var _a = "__lodash_hash_undefined__";
|
|
1242
1242
|
function xa(e) {
|
|
@@ -1319,7 +1319,7 @@ function Ha(e, t, r, n, o, s, i) {
|
|
|
1319
1319
|
case Aa:
|
|
1320
1320
|
case Da:
|
|
1321
1321
|
case Ma:
|
|
1322
|
-
return
|
|
1322
|
+
return qe(+e, +t);
|
|
1323
1323
|
case Oa:
|
|
1324
1324
|
return e.name == t.name && e.message == t.message;
|
|
1325
1325
|
case ka:
|
|
@@ -1344,7 +1344,7 @@ function Ha(e, t, r, n, o, s, i) {
|
|
|
1344
1344
|
return !1;
|
|
1345
1345
|
}
|
|
1346
1346
|
var Ba = 1, Va = Object.prototype, Ua = Va.hasOwnProperty;
|
|
1347
|
-
function
|
|
1347
|
+
function Ya(e, t, r, n, o, s) {
|
|
1348
1348
|
var i = r & Ba, a = Fr(e), l = a.length, u = Fr(t), d = u.length;
|
|
1349
1349
|
if (l != d && !i)
|
|
1350
1350
|
return !1;
|
|
@@ -1375,8 +1375,8 @@ function qa(e, t, r, n, o, s) {
|
|
|
1375
1375
|
}
|
|
1376
1376
|
return s.delete(e), s.delete(t), v;
|
|
1377
1377
|
}
|
|
1378
|
-
var
|
|
1379
|
-
function
|
|
1378
|
+
var Ga = 1, kr = "[object Arguments]", zr = "[object Array]", nt = "[object Object]", Xa = Object.prototype, Ir = Xa.hasOwnProperty;
|
|
1379
|
+
function qa(e, t, r, n, o, s) {
|
|
1380
1380
|
var i = oe(e), a = oe(t), l = i ? zr : xe(e), u = a ? zr : xe(t);
|
|
1381
1381
|
l = l == kr ? nt : l, u = u == kr ? nt : u;
|
|
1382
1382
|
var d = l == nt, g = u == nt, f = l == u;
|
|
@@ -1387,17 +1387,17 @@ function Xa(e, t, r, n, o, s) {
|
|
|
1387
1387
|
}
|
|
1388
1388
|
if (f && !d)
|
|
1389
1389
|
return s || (s = new be()), i || Jt(e) ? bn(e, t, r, n, o, s) : Ha(e, t, l, r, n, o, s);
|
|
1390
|
-
if (!(r &
|
|
1390
|
+
if (!(r & Ga)) {
|
|
1391
1391
|
var b = d && Ir.call(e, "__wrapped__"), p = g && Ir.call(t, "__wrapped__");
|
|
1392
1392
|
if (b || p) {
|
|
1393
1393
|
var v = b ? e.value() : e, x = p ? t.value() : t;
|
|
1394
1394
|
return s || (s = new be()), o(v, x, r, n, s);
|
|
1395
1395
|
}
|
|
1396
1396
|
}
|
|
1397
|
-
return f ? (s || (s = new be()),
|
|
1397
|
+
return f ? (s || (s = new be()), Ya(e, t, r, n, o, s)) : !1;
|
|
1398
1398
|
}
|
|
1399
1399
|
function vn(e, t, r, n, o) {
|
|
1400
|
-
return e === t ? !0 : e == null || t == null || !ue(e) && !ue(t) ? e !== e && t !== t :
|
|
1400
|
+
return e === t ? !0 : e == null || t == null || !ue(e) && !ue(t) ? e !== e && t !== t : qa(e, t, r, n, vn, o);
|
|
1401
1401
|
}
|
|
1402
1402
|
function Ka(e) {
|
|
1403
1403
|
return function(t, r, n) {
|
|
@@ -1411,7 +1411,7 @@ function Ka(e) {
|
|
|
1411
1411
|
}
|
|
1412
1412
|
var Ja = Ka();
|
|
1413
1413
|
function Bt(e, t, r) {
|
|
1414
|
-
(r !== void 0 && !
|
|
1414
|
+
(r !== void 0 && !qe(e[t], r) || r === void 0 && !(t in e)) && qt(e, t, r);
|
|
1415
1415
|
}
|
|
1416
1416
|
function Za(e) {
|
|
1417
1417
|
return ue(e) && ht(e);
|
|
@@ -1480,7 +1480,7 @@ function ic(e, t, r, n) {
|
|
|
1480
1480
|
return e;
|
|
1481
1481
|
if (o != i) {
|
|
1482
1482
|
var d = a[l];
|
|
1483
|
-
u = void 0, u === void 0 && (u = ae(d) ? d :
|
|
1483
|
+
u = void 0, u === void 0 && (u = ae(d) ? d : Xt(t[o + 1]) ? [] : {});
|
|
1484
1484
|
}
|
|
1485
1485
|
sn(a, l, u), a = a[l];
|
|
1486
1486
|
}
|
|
@@ -1576,7 +1576,7 @@ const uc = (e) => {
|
|
|
1576
1576
|
return (
|
|
1577
1577
|
/** items: [] 一定要给不然antd会报错 */
|
|
1578
1578
|
/* @__PURE__ */ h.jsx(
|
|
1579
|
-
|
|
1579
|
+
Yr,
|
|
1580
1580
|
{
|
|
1581
1581
|
disabled: n.disabled,
|
|
1582
1582
|
menu: {
|
|
@@ -1623,8 +1623,8 @@ const Tn = Jn({}), iu = (e) => {
|
|
|
1623
1623
|
}
|
|
1624
1624
|
);
|
|
1625
1625
|
}, Ke = () => Zn(Tn), fc = (e) => {
|
|
1626
|
-
const [t, r] =
|
|
1627
|
-
return
|
|
1626
|
+
const [t, r] = q(e), n = D(null);
|
|
1627
|
+
return G(() => {
|
|
1628
1628
|
n.current && (n.current(), n.current = null);
|
|
1629
1629
|
}, [t]), [t, (s) => new Promise((i, a) => {
|
|
1630
1630
|
r((l) => {
|
|
@@ -1644,7 +1644,7 @@ const Tn = Jn({}), iu = (e) => {
|
|
|
1644
1644
|
extendActionsProps: e == null ? void 0 : e.actions,
|
|
1645
1645
|
setExtendActionsComp: r
|
|
1646
1646
|
};
|
|
1647
|
-
}, { useToken: pc } =
|
|
1647
|
+
}, { useToken: pc } = Xe, gc = ({
|
|
1648
1648
|
items: e,
|
|
1649
1649
|
actionsProps: t
|
|
1650
1650
|
}) => {
|
|
@@ -1656,7 +1656,7 @@ const Tn = Jn({}), iu = (e) => {
|
|
|
1656
1656
|
return (
|
|
1657
1657
|
/** items: [] 一定要给不然antd会报错 */
|
|
1658
1658
|
/* @__PURE__ */ h.jsx(
|
|
1659
|
-
|
|
1659
|
+
Yr,
|
|
1660
1660
|
{
|
|
1661
1661
|
disabled: n,
|
|
1662
1662
|
menu: { items: [] },
|
|
@@ -1748,7 +1748,7 @@ const mc = (e) => {
|
|
|
1748
1748
|
initHeight: t,
|
|
1749
1749
|
setDialogChangeRecord: r
|
|
1750
1750
|
}) => {
|
|
1751
|
-
const [n, o] =
|
|
1751
|
+
const [n, o] = q(e.current), [s, i] = q(
|
|
1752
1752
|
t.current
|
|
1753
1753
|
);
|
|
1754
1754
|
return {
|
|
@@ -1766,7 +1766,7 @@ const mc = (e) => {
|
|
|
1766
1766
|
initTop: t,
|
|
1767
1767
|
setDialogChangeRecord: r
|
|
1768
1768
|
}) => {
|
|
1769
|
-
const [n, o] =
|
|
1769
|
+
const [n, o] = q(e.current), [s, i] = q(t.current);
|
|
1770
1770
|
return {
|
|
1771
1771
|
dialogLeft: n,
|
|
1772
1772
|
dialogTop: s,
|
|
@@ -1797,7 +1797,7 @@ const mc = (e) => {
|
|
|
1797
1797
|
}, []), u = me(() => {
|
|
1798
1798
|
document.removeEventListener("mousemove", l), document.removeEventListener("mouseup", u);
|
|
1799
1799
|
}, []);
|
|
1800
|
-
return
|
|
1800
|
+
return G(() => {
|
|
1801
1801
|
const d = t.current;
|
|
1802
1802
|
return d.addEventListener("mousedown", a), () => {
|
|
1803
1803
|
d.removeEventListener("mousedown", a);
|
|
@@ -1810,7 +1810,7 @@ const mc = (e) => {
|
|
|
1810
1810
|
setDialogSize: n,
|
|
1811
1811
|
setDialogPosition: o
|
|
1812
1812
|
}) => {
|
|
1813
|
-
const [s, i] =
|
|
1813
|
+
const [s, i] = q(!1), [a, l] = q(!1);
|
|
1814
1814
|
return {
|
|
1815
1815
|
minimizeVisible: s,
|
|
1816
1816
|
maximizeVisible: a,
|
|
@@ -1841,37 +1841,37 @@ const mc = (e) => {
|
|
|
1841
1841
|
dialogHeaderRef: o,
|
|
1842
1842
|
dialogFooterRef: s
|
|
1843
1843
|
}) => {
|
|
1844
|
-
const { clientHeight: i, scrollHeight: a } = t.current, [l, u] =
|
|
1844
|
+
const { clientHeight: i, scrollHeight: a } = t.current, [l, u] = q(0), [d, g] = q(
|
|
1845
1845
|
"unset"
|
|
1846
1846
|
), f = (b, p) => {
|
|
1847
|
-
var L,
|
|
1848
|
-
const R = (L = o.current) == null ? void 0 : L.offsetHeight, T = (
|
|
1847
|
+
var L, Y;
|
|
1848
|
+
const R = (L = o.current) == null ? void 0 : L.offsetHeight, T = (Y = s.current) == null ? void 0 : Y.offsetHeight;
|
|
1849
1849
|
let j = b - R - T - 0;
|
|
1850
1850
|
const k = p - R - T - 0;
|
|
1851
1851
|
return j > k && (j = k), j;
|
|
1852
1852
|
};
|
|
1853
|
-
return
|
|
1853
|
+
return G(() => {
|
|
1854
1854
|
var b;
|
|
1855
1855
|
if (l === i) {
|
|
1856
1856
|
console.log("触发了dialogMaxHeight改变");
|
|
1857
1857
|
const p = (b = n.current) == null ? void 0 : b.getBoundingClientRect().height;
|
|
1858
1858
|
g(f(p, i)), u("unset");
|
|
1859
1859
|
}
|
|
1860
|
-
}, [l]),
|
|
1860
|
+
}, [l]), G(() => {
|
|
1861
1861
|
r !== "unset" && r !== 0 && (console.log("触发了重新设置contentMaxHeight", r), g(
|
|
1862
1862
|
f(
|
|
1863
1863
|
r,
|
|
1864
1864
|
r > i ? a : i
|
|
1865
1865
|
)
|
|
1866
1866
|
), u("unset"));
|
|
1867
|
-
}, [r]),
|
|
1867
|
+
}, [r]), G(() => {
|
|
1868
1868
|
e ? u(i) : (u(0), g("unset"));
|
|
1869
1869
|
}, [e]), {
|
|
1870
1870
|
dialogMaxHeight: l,
|
|
1871
1871
|
contentMaxHeight: d
|
|
1872
1872
|
};
|
|
1873
1873
|
}, Cc = () => {
|
|
1874
|
-
const [e, t] =
|
|
1874
|
+
const [e, t] = q(160), [r, n] = q(60), o = D(null);
|
|
1875
1875
|
return {
|
|
1876
1876
|
minimizeTop: r,
|
|
1877
1877
|
minimizeLeft: e,
|
|
@@ -1918,7 +1918,7 @@ const mc = (e) => {
|
|
|
1918
1918
|
f.tagName === "INPUT" && f.focus && f.focus();
|
|
1919
1919
|
}
|
|
1920
1920
|
};
|
|
1921
|
-
return
|
|
1921
|
+
return G(() => {
|
|
1922
1922
|
var a, l;
|
|
1923
1923
|
return (a = t.current) == null || a.addEventListener("mousedown", i, !1), (l = r.current) == null || l.addEventListener(
|
|
1924
1924
|
"mousedown",
|
|
@@ -1936,7 +1936,7 @@ const mc = (e) => {
|
|
|
1936
1936
|
!1
|
|
1937
1937
|
);
|
|
1938
1938
|
};
|
|
1939
|
-
}, []),
|
|
1939
|
+
}, []), G(() => {
|
|
1940
1940
|
if (e)
|
|
1941
1941
|
i();
|
|
1942
1942
|
else {
|
|
@@ -1974,7 +1974,7 @@ const mc = (e) => {
|
|
|
1974
1974
|
curPropsHeight: n,
|
|
1975
1975
|
setParentInitRecord: o
|
|
1976
1976
|
}) => {
|
|
1977
|
-
|
|
1977
|
+
G(() => {
|
|
1978
1978
|
if (r !== e.current) {
|
|
1979
1979
|
console.log("动态设置了宽度"), o((s) => s + 1);
|
|
1980
1980
|
return;
|
|
@@ -2030,7 +2030,7 @@ const mc = (e) => {
|
|
|
2030
2030
|
display: "none"
|
|
2031
2031
|
}
|
|
2032
2032
|
}
|
|
2033
|
-
), []), i = D(null), a = D(), l = D(!1), [u, d] =
|
|
2033
|
+
), []), i = D(null), a = D(), l = D(!1), [u, d] = q(!1), g = D(0), f = D(0), b = ($, C) => {
|
|
2034
2034
|
l.current = !0, d(!0), a.current = C;
|
|
2035
2035
|
const { clientX: w, clientY: _ } = $;
|
|
2036
2036
|
g.current = w, f.current = _;
|
|
@@ -2039,26 +2039,26 @@ const mc = (e) => {
|
|
|
2039
2039
|
}, p = ($) => {
|
|
2040
2040
|
if (l.current) {
|
|
2041
2041
|
const { clientX: C, clientY: w } = $, _ = C - g.current, S = w - f.current, E = parseFloat(i.current.style.left), F = parseFloat(i.current.style.top), A = i.current.offsetWidth, W = i.current.offsetHeight, ee = r.current.width, te = r.current.height, de = e.current.scrollWidth, ce = e.current.scrollHeight;
|
|
2042
|
-
let z = A, N = W,
|
|
2042
|
+
let z = A, N = W, X = E, V = F;
|
|
2043
2043
|
switch (a.current) {
|
|
2044
2044
|
case "lt": {
|
|
2045
|
-
z = z - _, N = N - S, V = V + S,
|
|
2045
|
+
z = z - _, N = N - S, V = V + S, X = X + _, z < ee && (z = A, X = E), N < te && (N = W, V = F), X < 0 && (X = 0, z = A), V < 0 && (V = 0, N = W);
|
|
2046
2046
|
break;
|
|
2047
2047
|
}
|
|
2048
2048
|
case "rt": {
|
|
2049
|
-
z = z + _, N = N - S, V = V + S,
|
|
2049
|
+
z = z + _, N = N - S, V = V + S, X = E, z < ee && (z = A), N < te && (N = W, V = F), z > de - X && (z = de - X), V < 0 && (V = 0, N = W);
|
|
2050
2050
|
break;
|
|
2051
2051
|
}
|
|
2052
2052
|
case "rb": {
|
|
2053
|
-
z = z + _, N = N + S, V = F,
|
|
2053
|
+
z = z + _, N = N + S, V = F, X = E, z < ee && (z = A), N < te && (N = W), z > de - X && (z = de - X), N > ce - V && (N = ce - V);
|
|
2054
2054
|
break;
|
|
2055
2055
|
}
|
|
2056
2056
|
case "lb": {
|
|
2057
|
-
z = z - _, N = N + S, V = F,
|
|
2057
|
+
z = z - _, N = N + S, V = F, X = X + _, z < ee && (z = A, X = E), N < te && (N = W), X < 0 && (X = 0, z = A), N > ce - V && (N = ce - V);
|
|
2058
2058
|
break;
|
|
2059
2059
|
}
|
|
2060
2060
|
}
|
|
2061
|
-
i.current.style.left = `${
|
|
2061
|
+
i.current.style.left = `${X}px`, i.current.style.top = `${V}px`, i.current.style.width = `${z}px`, i.current.style.height = `${N}px`, g.current = C, f.current = w;
|
|
2062
2062
|
}
|
|
2063
2063
|
}, v = () => {
|
|
2064
2064
|
if (l.current) {
|
|
@@ -2070,11 +2070,11 @@ const mc = (e) => {
|
|
|
2070
2070
|
p($);
|
|
2071
2071
|
}, []), L = me(() => {
|
|
2072
2072
|
v();
|
|
2073
|
-
}, []),
|
|
2073
|
+
}, []), Y = me(() => {
|
|
2074
2074
|
v();
|
|
2075
2075
|
}, []);
|
|
2076
|
-
return
|
|
2077
|
-
document.body.removeEventListener("mousemove", k), document.body.removeEventListener("mouseup", L), document.body.removeEventListener("mouseleave",
|
|
2076
|
+
return G(() => (document.body.addEventListener("mousemove", k), document.body.addEventListener("mouseup", L), document.body.addEventListener("mouseleave", Y), () => {
|
|
2077
|
+
document.body.removeEventListener("mousemove", k), document.body.removeEventListener("mouseup", L), document.body.removeEventListener("mouseleave", Y);
|
|
2078
2078
|
}), []), {
|
|
2079
2079
|
resizingState: u,
|
|
2080
2080
|
DashedBox: s,
|
|
@@ -2088,20 +2088,20 @@ const mc = (e) => {
|
|
|
2088
2088
|
dialogProps: t,
|
|
2089
2089
|
baseDialogProps: r
|
|
2090
2090
|
}) => {
|
|
2091
|
-
const [n, o] =
|
|
2091
|
+
const [n, o] = q(0), s = () => {
|
|
2092
2092
|
o((C) => C + 1);
|
|
2093
2093
|
};
|
|
2094
|
-
|
|
2094
|
+
G(() => (window.addEventListener("resize", s), () => {
|
|
2095
2095
|
window.removeEventListener("resize", s);
|
|
2096
2096
|
}), []);
|
|
2097
2097
|
const { containerSizeTarget: i, setContainerSizeTarget: a } = Ec({
|
|
2098
2098
|
container: e
|
|
2099
2099
|
}), { width: l, height: u } = r, { width: d, height: g } = t, f = d || l, b = g || u, { clientWidth: p, clientHeight: v } = i.current, x = f ? f > p ? p : f : 0, R = b ? b > v ? v : b : "unset", T = D(x), j = D(R), k = (C) => {
|
|
2100
2100
|
T.current = C.width, j.current = C.height;
|
|
2101
|
-
}, L = D(Math.floor(p / 2)),
|
|
2102
|
-
L.current = C.left,
|
|
2101
|
+
}, L = D(Math.floor(p / 2)), Y = D(Math.floor(v / 2)), $ = (C) => {
|
|
2102
|
+
L.current = C.left, Y.current = C.top;
|
|
2103
2103
|
};
|
|
2104
|
-
return
|
|
2104
|
+
return G(() => {
|
|
2105
2105
|
a(), k({ width: x, height: R }), $({
|
|
2106
2106
|
left: Math.floor(p / 2),
|
|
2107
2107
|
top: Math.floor(v / 2)
|
|
@@ -2110,7 +2110,7 @@ const mc = (e) => {
|
|
|
2110
2110
|
containerSizeTarget: i,
|
|
2111
2111
|
parentInitRecord: n,
|
|
2112
2112
|
initLeft: L,
|
|
2113
|
-
initTop:
|
|
2113
|
+
initTop: Y,
|
|
2114
2114
|
initWidth: T,
|
|
2115
2115
|
initHeight: j,
|
|
2116
2116
|
curPropsWidth: x,
|
|
@@ -2121,15 +2121,14 @@ const mc = (e) => {
|
|
|
2121
2121
|
};
|
|
2122
2122
|
}, Fc = (e, t, r, n) => {
|
|
2123
2123
|
const o = D(null);
|
|
2124
|
-
return
|
|
2125
|
-
|
|
2124
|
+
return G(() => {
|
|
2125
|
+
e ? setTimeout(() => {
|
|
2126
2126
|
const s = t.current.offsetWidth, i = t.current.offsetHeight;
|
|
2127
2127
|
o.current = {
|
|
2128
2128
|
width: s,
|
|
2129
2129
|
height: i
|
|
2130
2130
|
};
|
|
2131
|
-
}
|
|
2132
|
-
o.current = null;
|
|
2131
|
+
}, 0) : o.current = null;
|
|
2133
2132
|
}, [r, n, e]), {
|
|
2134
2133
|
minResizeRecord: o
|
|
2135
2134
|
};
|
|
@@ -2225,7 +2224,7 @@ const mc = (e) => {
|
|
|
2225
2224
|
}
|
|
2226
2225
|
)
|
|
2227
2226
|
}
|
|
2228
|
-
), { useToken: Oc } =
|
|
2227
|
+
), { useToken: Oc } = Xe, $c = fe(
|
|
2229
2228
|
({
|
|
2230
2229
|
title: e,
|
|
2231
2230
|
left: t,
|
|
@@ -2260,19 +2259,19 @@ const mc = (e) => {
|
|
|
2260
2259
|
}
|
|
2261
2260
|
);
|
|
2262
2261
|
}
|
|
2263
|
-
), Mc = "
|
|
2264
|
-
"xph-dialog-mask": "_xph-dialog-
|
|
2265
|
-
"xph-dialog-wrapper": "_xph-dialog-
|
|
2262
|
+
), Mc = "_dialog__header_o2yvb_45", kc = "_dialog__main_o2yvb_71", zc = "_dialog__footer_o2yvb_85", Ic = "_dialog__resize_o2yvb_99", ne = {
|
|
2263
|
+
"xph-dialog-mask": "_xph-dialog-mask_o2yvb_1",
|
|
2264
|
+
"xph-dialog-wrapper": "_xph-dialog-wrapper_o2yvb_23",
|
|
2266
2265
|
dialog__header: Mc,
|
|
2267
|
-
"dialog__header-btns": "_dialog__header-
|
|
2266
|
+
"dialog__header-btns": "_dialog__header-btns_o2yvb_63",
|
|
2268
2267
|
dialog__main: kc,
|
|
2269
2268
|
dialog__footer: zc,
|
|
2270
2269
|
dialog__resize: Ic,
|
|
2271
|
-
"dialog__resize-lt": "_dialog__resize-
|
|
2272
|
-
"dialog__resize-rt": "_dialog__resize-
|
|
2273
|
-
"dialog__resize-rb": "_dialog__resize-
|
|
2274
|
-
"dialog__resize-lb": "_dialog__resize-
|
|
2275
|
-
}, { useToken: Lc } =
|
|
2270
|
+
"dialog__resize-lt": "_dialog__resize-lt_o2yvb_113",
|
|
2271
|
+
"dialog__resize-rt": "_dialog__resize-rt_o2yvb_125",
|
|
2272
|
+
"dialog__resize-rb": "_dialog__resize-rb_o2yvb_137",
|
|
2273
|
+
"dialog__resize-lb": "_dialog__resize-lb_o2yvb_149"
|
|
2274
|
+
}, { useToken: Lc } = Xe, Wc = fe((e, t) => {
|
|
2276
2275
|
console.log("render Dialog==============================================");
|
|
2277
2276
|
const { token: r } = Lc(), n = {
|
|
2278
2277
|
borderRadius: r.borderRadiusLG
|
|
@@ -2284,12 +2283,12 @@ const mc = (e) => {
|
|
|
2284
2283
|
renderFooter: l,
|
|
2285
2284
|
renderTitle: u,
|
|
2286
2285
|
getPopperContainer: d
|
|
2287
|
-
} = e, g = d(), [f, b] = fc(!1), [p, v] =
|
|
2286
|
+
} = e, g = d(), [f, b] = fc(!1), [p, v] = q(!1), { open: x, close: R } = vc(
|
|
2288
2287
|
f,
|
|
2289
2288
|
e,
|
|
2290
2289
|
b,
|
|
2291
2290
|
v
|
|
2292
|
-
), { footerActions: T } = hc(e, p), j = D(null), k = D(null), L = D(null),
|
|
2291
|
+
), { footerActions: T } = hc(e, p), j = D(null), k = D(null), L = D(null), Y = D(null), {
|
|
2293
2292
|
containerSizeTarget: $,
|
|
2294
2293
|
parentInitRecord: C,
|
|
2295
2294
|
initLeft: w,
|
|
@@ -2307,7 +2306,7 @@ const mc = (e) => {
|
|
|
2307
2306
|
initWidth: S,
|
|
2308
2307
|
initHeight: E,
|
|
2309
2308
|
setDialogChangeRecord: te
|
|
2310
|
-
}), { dialogLeft: N, dialogTop:
|
|
2309
|
+
}), { dialogLeft: N, dialogTop: X, setDialogPosition: V } = _c({
|
|
2311
2310
|
initTop: _,
|
|
2312
2311
|
initLeft: w,
|
|
2313
2312
|
setDialogChangeRecord: te
|
|
@@ -2317,7 +2316,7 @@ const mc = (e) => {
|
|
|
2317
2316
|
dialogHeight: ce,
|
|
2318
2317
|
dialogRef: j,
|
|
2319
2318
|
dialogHeaderRef: k,
|
|
2320
|
-
dialogFooterRef:
|
|
2319
|
+
dialogFooterRef: Y
|
|
2321
2320
|
}), { minResizeRecord: ke } = Fc(
|
|
2322
2321
|
f,
|
|
2323
2322
|
j,
|
|
@@ -2340,7 +2339,7 @@ const mc = (e) => {
|
|
|
2340
2339
|
}), et = () => {
|
|
2341
2340
|
console.log("触发了initDialog"), z({ width: S.current, height: E.current }), V({ left: w.current, top: _.current }), Se({ left: 160, top: 60 }), xt(!1);
|
|
2342
2341
|
};
|
|
2343
|
-
|
|
2342
|
+
G(() => {
|
|
2344
2343
|
et();
|
|
2345
2344
|
}, [C]), Sc({
|
|
2346
2345
|
initWidth: S,
|
|
@@ -2407,7 +2406,7 @@ const mc = (e) => {
|
|
|
2407
2406
|
style: {
|
|
2408
2407
|
display: f && !Je ? "flex" : "none",
|
|
2409
2408
|
left: N,
|
|
2410
|
-
top:
|
|
2409
|
+
top: X,
|
|
2411
2410
|
width: de,
|
|
2412
2411
|
height: ce,
|
|
2413
2412
|
maxHeight: yt,
|
|
@@ -2432,10 +2431,10 @@ const mc = (e) => {
|
|
|
2432
2431
|
style: {
|
|
2433
2432
|
maxHeight: _t
|
|
2434
2433
|
},
|
|
2435
|
-
children: /* @__PURE__ */ h.jsx(
|
|
2434
|
+
children: /* @__PURE__ */ h.jsx(Gr, { spinning: p, children: f ? o : null })
|
|
2436
2435
|
}
|
|
2437
2436
|
),
|
|
2438
|
-
l ? /* @__PURE__ */ h.jsx("div", { ref:
|
|
2437
|
+
l ? /* @__PURE__ */ h.jsx("div", { ref: Y, children: l({ loading: p }) }) : /* @__PURE__ */ h.jsx("div", { ref: Y, className: ne.dialog__footer, children: /* @__PURE__ */ h.jsx(Qt, { ...T }) }),
|
|
2439
2438
|
/* @__PURE__ */ h.jsx(
|
|
2440
2439
|
"div",
|
|
2441
2440
|
{
|
|
@@ -2477,7 +2476,7 @@ const mc = (e) => {
|
|
|
2477
2476
|
getPopperContainer: t
|
|
2478
2477
|
}) => {
|
|
2479
2478
|
const [r, n] = Ce.useState(null);
|
|
2480
|
-
return
|
|
2479
|
+
return G(() => {
|
|
2481
2480
|
const o = t();
|
|
2482
2481
|
n(o);
|
|
2483
2482
|
}, []), r ? bo.createPortal(e, r) : null;
|
|
@@ -2510,21 +2509,21 @@ function er(e) {
|
|
|
2510
2509
|
function tr(e) {
|
|
2511
2510
|
return "render" in e;
|
|
2512
2511
|
}
|
|
2513
|
-
function
|
|
2512
|
+
function Yc(e) {
|
|
2514
2513
|
return e.includes("Input") || e.includes("Complete") ? "请输入" : e.includes("Picker") || e.includes("Select") || e.includes("Cascader") || e.includes("Checkbox") || e.includes("Radio") || e.includes("Switch") ? "请选择" : "";
|
|
2515
2514
|
}
|
|
2516
|
-
function
|
|
2515
|
+
function Gc(e, t, r) {
|
|
2517
2516
|
["DatePicker", "MonthPicker", "WeekPicker", "TimePicker"].includes(
|
|
2518
2517
|
t
|
|
2519
2518
|
) ? e.type = r ? "string" : "object" : ["RangePicker", "Upload", "CheckboxGroup", "TimePicker"].includes(t) ? e.type = "array" : ["InputNumber"].includes(t) && (e.type = "number");
|
|
2520
2519
|
}
|
|
2521
|
-
const
|
|
2520
|
+
const Xc = [
|
|
2522
2521
|
"DatePicker",
|
|
2523
2522
|
"MonthPicker",
|
|
2524
2523
|
"RangePicker",
|
|
2525
2524
|
"WeekPicker",
|
|
2526
2525
|
"TimePicker"
|
|
2527
|
-
],
|
|
2526
|
+
], qc = (e) => {
|
|
2528
2527
|
const { show: t, ifShow: r, required: n, disabled: o, componentProps: s } = e;
|
|
2529
2528
|
return !!(Z(t) || Z(r) || Z(n) || Z(o) || Z(s) || tr(e));
|
|
2530
2529
|
}, Kc = (e) => [
|
|
@@ -2539,20 +2538,20 @@ const Gc = [
|
|
|
2539
2538
|
if (Ut(i) && (l = i), Ut(a) && (u = a), Z(i)) {
|
|
2540
2539
|
l = i({ model: t });
|
|
2541
2540
|
const d = Lr(n.current) ? l : n.current;
|
|
2542
|
-
|
|
2541
|
+
G(() => {
|
|
2543
2542
|
dt(l, d) || s && s();
|
|
2544
2543
|
}, [t]);
|
|
2545
2544
|
}
|
|
2546
2545
|
if (Z(a)) {
|
|
2547
2546
|
u = a({ model: t });
|
|
2548
2547
|
const d = Lr(o.current) ? u : o.current;
|
|
2549
|
-
|
|
2548
|
+
G(() => {
|
|
2550
2549
|
dt(u, d) || s && s();
|
|
2551
2550
|
}, [t]);
|
|
2552
2551
|
}
|
|
2553
2552
|
return n.current = l, o.current = u, { isShow: l, isIfShow: u };
|
|
2554
2553
|
}, Zc = (e, t) => {
|
|
2555
|
-
const { collapsible: r, collapseNum: n } = e, [o, s] =
|
|
2554
|
+
const { collapsible: r, collapseNum: n } = e, [o, s] = q(
|
|
2556
2555
|
!!(r && t >= n)
|
|
2557
2556
|
);
|
|
2558
2557
|
return {
|
|
@@ -2567,7 +2566,7 @@ const Gc = [
|
|
|
2567
2566
|
}) => {
|
|
2568
2567
|
const { rules: o = [], label: s, required: i } = e;
|
|
2569
2568
|
let a = o;
|
|
2570
|
-
const l = er(e), u = l ?
|
|
2569
|
+
const l = er(e), u = l ? Yc(e.component) + s : "";
|
|
2571
2570
|
function d(p, v) {
|
|
2572
2571
|
const x = p.message || u;
|
|
2573
2572
|
return v === void 0 || sc(v) || Array.isArray(v) && v.length === 0 || typeof v == "string" && v.trim() === "" || typeof v == "object" && Reflect.has(v, "checked") && Reflect.has(v, "halfChecked") && Array.isArray(v.checked) && Array.isArray(v.halfChecked) && v.checked.length === 0 && v.halfChecked.length === 0 ? Promise.reject(x) : Promise.resolve();
|
|
@@ -2585,7 +2584,7 @@ const Gc = [
|
|
|
2585
2584
|
const { component: v } = e;
|
|
2586
2585
|
Reflect.has(p, "type") || (p.type = v === "InputNumber" ? "number" : "string"), p.message = p.message || u, (v.includes("Input") || v.includes("Textarea")) && (p.whitespace = !0);
|
|
2587
2586
|
const x = n.valueFormat;
|
|
2588
|
-
|
|
2587
|
+
Gc(p, v, x);
|
|
2589
2588
|
}
|
|
2590
2589
|
}
|
|
2591
2590
|
const b = a.findIndex((p) => p.max);
|
|
@@ -2626,7 +2625,7 @@ const Gc = [
|
|
|
2626
2625
|
e.items.forEach((a) => {
|
|
2627
2626
|
n[a.name] = a.initialValue;
|
|
2628
2627
|
});
|
|
2629
|
-
const o =
|
|
2628
|
+
const o = qc(t), s = o ? st.useWatch((a) => r(a)) : null;
|
|
2630
2629
|
return {
|
|
2631
2630
|
rewritingModel: pt(() => s || r(n), [s]),
|
|
2632
2631
|
isusewatch: o
|
|
@@ -2663,7 +2662,7 @@ const Gc = [
|
|
|
2663
2662
|
return e.current.scrollToField(...n);
|
|
2664
2663
|
}
|
|
2665
2664
|
};
|
|
2666
|
-
return
|
|
2665
|
+
return G(() => (console.log(
|
|
2667
2666
|
"ParentComponent is mounted====================================="
|
|
2668
2667
|
), () => {
|
|
2669
2668
|
console.log(
|
|
@@ -2731,7 +2730,7 @@ const cl = (e, t, r) => {
|
|
|
2731
2730
|
if (d || g) {
|
|
2732
2731
|
const f = g || i[u.name];
|
|
2733
2732
|
if (er(u))
|
|
2734
|
-
if (
|
|
2733
|
+
if (Xc.includes(u.component)) {
|
|
2735
2734
|
if (oe(f)) {
|
|
2736
2735
|
const b = [];
|
|
2737
2736
|
for (const p of f)
|
|
@@ -2803,7 +2802,7 @@ const cl = (e, t, r) => {
|
|
|
2803
2802
|
const { immediate: t = !0, params: r, api: n, apiCallback: o, isUseWatch: s } = e, i = D(!0), a = D(r), l = () => {
|
|
2804
2803
|
n && Z(n) && (r ? n(r).then(o) : n().then(o), a.current = r);
|
|
2805
2804
|
};
|
|
2806
|
-
return
|
|
2805
|
+
return G(() => {
|
|
2807
2806
|
i.current && (t && l(), i.current = !1), !i.current && s && (dt(r, a.current) || t && l());
|
|
2808
2807
|
}, [r]), {
|
|
2809
2808
|
getApiData: l
|
|
@@ -2865,7 +2864,7 @@ const cl = (e, t, r) => {
|
|
|
2865
2864
|
return x;
|
|
2866
2865
|
};
|
|
2867
2866
|
return /* @__PURE__ */ h.jsx(
|
|
2868
|
-
|
|
2867
|
+
Xr,
|
|
2869
2868
|
{
|
|
2870
2869
|
...g(),
|
|
2871
2870
|
options: a,
|
|
@@ -2893,7 +2892,7 @@ const cl = (e, t, r) => {
|
|
|
2893
2892
|
return x;
|
|
2894
2893
|
};
|
|
2895
2894
|
return /* @__PURE__ */ h.jsx(
|
|
2896
|
-
|
|
2895
|
+
qr,
|
|
2897
2896
|
{
|
|
2898
2897
|
...g(),
|
|
2899
2898
|
treeData: a,
|
|
@@ -2966,7 +2965,7 @@ const cl = (e, t, r) => {
|
|
|
2966
2965
|
value: u = t,
|
|
2967
2966
|
// 默认文件列表
|
|
2968
2967
|
onChange: d
|
|
2969
|
-
} = e, g = D(!0), f = D(0), b = D([]), [p, v] =
|
|
2968
|
+
} = e, g = D(!0), f = D(0), b = D([]), [p, v] = q([]), x = (C) => {
|
|
2970
2969
|
b.current = C, v([...C]);
|
|
2971
2970
|
}, R = () => {
|
|
2972
2971
|
const {
|
|
@@ -3008,7 +3007,7 @@ const cl = (e, t, r) => {
|
|
|
3008
3007
|
break;
|
|
3009
3008
|
}
|
|
3010
3009
|
}
|
|
3011
|
-
},
|
|
3010
|
+
}, Y = (C) => {
|
|
3012
3011
|
const w = (S) => {
|
|
3013
3012
|
const E = S.split("/"), F = E[E.length - 1], [A] = F.split("?");
|
|
3014
3013
|
return A;
|
|
@@ -3029,17 +3028,17 @@ const cl = (e, t, r) => {
|
|
|
3029
3028
|
return [...p];
|
|
3030
3029
|
}
|
|
3031
3030
|
};
|
|
3032
|
-
return
|
|
3031
|
+
return G(() => {
|
|
3033
3032
|
const C = $();
|
|
3034
3033
|
if (dt(C, u)) return;
|
|
3035
3034
|
let w = [];
|
|
3036
3035
|
switch (l) {
|
|
3037
3036
|
case he.String: {
|
|
3038
|
-
w = (u || "").split(",").filter((_) => _).map((_) =>
|
|
3037
|
+
w = (u || "").split(",").filter((_) => _).map((_) => Y(_));
|
|
3039
3038
|
break;
|
|
3040
3039
|
}
|
|
3041
3040
|
case he["String[]"]: {
|
|
3042
|
-
w = (u || []).map((_) =>
|
|
3041
|
+
w = (u || []).map((_) => Y(_));
|
|
3043
3042
|
break;
|
|
3044
3043
|
}
|
|
3045
3044
|
case he["File[]"]: {
|
|
@@ -3052,7 +3051,7 @@ const cl = (e, t, r) => {
|
|
|
3052
3051
|
}
|
|
3053
3052
|
}
|
|
3054
3053
|
x(w);
|
|
3055
|
-
}, [u]),
|
|
3054
|
+
}, [u]), G(() => {
|
|
3056
3055
|
if (g.current) {
|
|
3057
3056
|
g.current = !1;
|
|
3058
3057
|
return;
|
|
@@ -3071,12 +3070,12 @@ const cl = (e, t, r) => {
|
|
|
3071
3070
|
}
|
|
3072
3071
|
);
|
|
3073
3072
|
}, H = /* @__PURE__ */ new Map();
|
|
3074
|
-
H.set("Input",
|
|
3073
|
+
H.set("Input", Yt);
|
|
3075
3074
|
H.set("ApiSelect", fl);
|
|
3076
|
-
H.set("Select",
|
|
3075
|
+
H.set("Select", Xr);
|
|
3077
3076
|
H.set("InputNumber", eo);
|
|
3078
3077
|
H.set("ApiTreeSelect", pl);
|
|
3079
|
-
H.set("TreeSelect",
|
|
3078
|
+
H.set("TreeSelect", qr);
|
|
3080
3079
|
H.set("ApiTransfer", gl);
|
|
3081
3080
|
H.set("Transfer", Kr);
|
|
3082
3081
|
H.set("Switch", to);
|
|
@@ -3091,8 +3090,8 @@ H.set("DatePicker", gt);
|
|
|
3091
3090
|
H.set("MonthPicker", gt.MonthPicker);
|
|
3092
3091
|
H.set("WeekPicker", gt.WeekPicker);
|
|
3093
3092
|
H.set("RangePicker", gt.RangePicker);
|
|
3094
|
-
H.set("InputPassword",
|
|
3095
|
-
H.set("InputTextArea",
|
|
3093
|
+
H.set("InputPassword", Yt.Password);
|
|
3094
|
+
H.set("InputTextArea", Yt.TextArea);
|
|
3096
3095
|
H.set("ApiAutoComplete", hl);
|
|
3097
3096
|
H.set("AutoComplete", Jr);
|
|
3098
3097
|
H.set("Upload", Mt);
|
|
@@ -3135,7 +3134,7 @@ const Nr = {
|
|
|
3135
3134
|
labelCol: j,
|
|
3136
3135
|
valuePropName: k,
|
|
3137
3136
|
initialValue: L,
|
|
3138
|
-
forceRow:
|
|
3137
|
+
forceRow: Y
|
|
3139
3138
|
} = t;
|
|
3140
3139
|
Te(s, () => ({
|
|
3141
3140
|
itemIndex: e,
|
|
@@ -3174,7 +3173,7 @@ const Nr = {
|
|
|
3174
3173
|
}) : null;
|
|
3175
3174
|
};
|
|
3176
3175
|
return /* @__PURE__ */ h.jsxs(Vr, { children: [
|
|
3177
|
-
|
|
3176
|
+
Y ? /* @__PURE__ */ h.jsx("div", { className: Nr["form-item-force"] }) : null,
|
|
3178
3177
|
l ? /* @__PURE__ */ h.jsx(
|
|
3179
3178
|
oo,
|
|
3180
3179
|
{
|
|
@@ -3193,7 +3192,7 @@ const Nr = {
|
|
|
3193
3192
|
onClickExpand: t,
|
|
3194
3193
|
onClickFold: r
|
|
3195
3194
|
}, n) => {
|
|
3196
|
-
const [o, s] =
|
|
3195
|
+
const [o, s] = q(e), i = pt(() => o, [o]), a = () => {
|
|
3197
3196
|
r(), s(!0);
|
|
3198
3197
|
}, l = () => {
|
|
3199
3198
|
t(), s(!1);
|
|
@@ -3251,7 +3250,7 @@ const Nr = {
|
|
|
3251
3250
|
const {
|
|
3252
3251
|
layout: k,
|
|
3253
3252
|
wrapperCol: L,
|
|
3254
|
-
labelCol:
|
|
3253
|
+
labelCol: Y,
|
|
3255
3254
|
colon: $,
|
|
3256
3255
|
disabled: C,
|
|
3257
3256
|
labelWrap: w,
|
|
@@ -3262,7 +3261,7 @@ const Nr = {
|
|
|
3262
3261
|
return {
|
|
3263
3262
|
layout: k,
|
|
3264
3263
|
wrapperCol: L,
|
|
3265
|
-
labelCol:
|
|
3264
|
+
labelCol: Y,
|
|
3266
3265
|
colon: $,
|
|
3267
3266
|
disabled: C,
|
|
3268
3267
|
labelWrap: w,
|
|
@@ -3279,7 +3278,7 @@ const Nr = {
|
|
|
3279
3278
|
};
|
|
3280
3279
|
return Te(t, () => ({
|
|
3281
3280
|
...j
|
|
3282
|
-
})),
|
|
3281
|
+
})), G(() => (console.log("Form is mounted======================="), n.register && n.register(j), () => {
|
|
3283
3282
|
console.log("Form is unmounted========================="), s.current.clear();
|
|
3284
3283
|
}), []), /* @__PURE__ */ h.jsxs(st, { form: r, ...T(), children: [
|
|
3285
3284
|
/* @__PURE__ */ h.jsx(so, { children: o.map((k, L) => (s.current.has(k.name) || s.current.set(k.name, Ce.createRef()), /* @__PURE__ */ h.jsx(
|
|
@@ -3308,7 +3307,7 @@ const Nr = {
|
|
|
3308
3307
|
] })
|
|
3309
3308
|
] });
|
|
3310
3309
|
}, Fn = fe(Cl), Tl = Ur(Fn), Sl = fe((e, t) => {
|
|
3311
|
-
const { renderActions: r, showSearch: n, tableRef: o } = e, [s, i] =
|
|
3310
|
+
const { renderActions: r, showSearch: n, tableRef: o } = e, [s, i] = q(!1), a = D(null), l = () => {
|
|
3312
3311
|
const { reloadData: f } = o.current;
|
|
3313
3312
|
f();
|
|
3314
3313
|
}, u = () => {
|
|
@@ -3339,7 +3338,7 @@ const Nr = {
|
|
|
3339
3338
|
/** 扩展了loading方法,让table调用 */
|
|
3340
3339
|
setFormLoading: i,
|
|
3341
3340
|
...a.current
|
|
3342
|
-
})), /* @__PURE__ */ h.jsx(
|
|
3341
|
+
})), /* @__PURE__ */ h.jsx(Gr, { spinning: s, children: /* @__PURE__ */ h.jsx(Tl, { ref: a, ...g() }) });
|
|
3343
3342
|
}), Pl = Ur(Fn), Rl = (e, t) => {
|
|
3344
3343
|
const r = D(null), n = D(null), { formProps: o } = e, i = (() => {
|
|
3345
3344
|
const { formProps: d, ...g } = e;
|
|
@@ -3432,7 +3431,7 @@ function El(e) {
|
|
|
3432
3431
|
function Al(e) {
|
|
3433
3432
|
return "children" in e;
|
|
3434
3433
|
}
|
|
3435
|
-
const { useToken: Dl } =
|
|
3434
|
+
const { useToken: Dl } = Xe, Ol = (e, t, r) => {
|
|
3436
3435
|
const { curComponentProps: n, cellFuncProps: o } = t, { url: s, onClick: i } = n, { token: a } = Dl(), l = {
|
|
3437
3436
|
color: a.colorLink,
|
|
3438
3437
|
cursor: "pointer"
|
|
@@ -3459,7 +3458,7 @@ const { useToken: Dl } = Ge, Ol = (e, t, r) => {
|
|
|
3459
3458
|
}, Ml = (e, t, r) => {
|
|
3460
3459
|
const { curComponentProps: n, cellFuncProps: o } = t;
|
|
3461
3460
|
return /* @__PURE__ */ h.jsx("div", { className: $l["cellfunc-actions"], children: /* @__PURE__ */ h.jsx(Qt, { ...n }) });
|
|
3462
|
-
}, { useToken: kl } =
|
|
3461
|
+
}, { useToken: kl } = Xe, zl = {
|
|
3463
3462
|
0: {
|
|
3464
3463
|
color: "orange",
|
|
3465
3464
|
backgroundColor: "unset",
|
|
@@ -3704,7 +3703,7 @@ const Bl = (e) => {
|
|
|
3704
3703
|
};
|
|
3705
3704
|
};
|
|
3706
3705
|
function Vl(e) {
|
|
3707
|
-
const { pagination: t, autoPagination: r } = e.table, [n, o] =
|
|
3706
|
+
const { pagination: t, autoPagination: r } = e.table, [n, o] = q(
|
|
3708
3707
|
t
|
|
3709
3708
|
), s = D(
|
|
3710
3709
|
t
|
|
@@ -3730,7 +3729,7 @@ function Ul(e, t) {
|
|
|
3730
3729
|
onChange: s,
|
|
3731
3730
|
requestFields: i,
|
|
3732
3731
|
responseFields: a
|
|
3733
|
-
} = e.table, l = e.onPaginationChange, { pagination: u, lastPaginationState: d } = Vl(e), [g, f] =
|
|
3732
|
+
} = e.table, l = e.onPaginationChange, { pagination: u, lastPaginationState: d } = Vl(e), [g, f] = q({
|
|
3734
3733
|
loading: !1,
|
|
3735
3734
|
dataSource: [],
|
|
3736
3735
|
selection: [],
|
|
@@ -3748,7 +3747,7 @@ function Ul(e, t) {
|
|
|
3748
3747
|
f(_), b.current = _, (S = t.current) == null || S.setFormLoading(_.loading);
|
|
3749
3748
|
}
|
|
3750
3749
|
}, v = async () => {
|
|
3751
|
-
|
|
3750
|
+
G(() => {
|
|
3752
3751
|
const { autoRequest: w } = e.table, { validator: _ } = t.current;
|
|
3753
3752
|
w && _().then((S) => {
|
|
3754
3753
|
j({ searchFormParams: S });
|
|
@@ -3906,7 +3905,7 @@ function Ul(e, t) {
|
|
|
3906
3905
|
}
|
|
3907
3906
|
};
|
|
3908
3907
|
}
|
|
3909
|
-
const
|
|
3908
|
+
const Yl = (e, t) => {
|
|
3910
3909
|
const { onRowSelectionChange: r } = e, { rowSelection: n } = e.table, o = () => {
|
|
3911
3910
|
if (_n(n))
|
|
3912
3911
|
return {
|
|
@@ -3935,11 +3934,11 @@ const ql = (e, t) => {
|
|
|
3935
3934
|
getNewRowSelection: o
|
|
3936
3935
|
};
|
|
3937
3936
|
};
|
|
3938
|
-
function
|
|
3939
|
-
const { scroll: r, virtual: n } = e.table, o = D(null), [s, i] =
|
|
3937
|
+
function Gl(e, t) {
|
|
3938
|
+
const { scroll: r, virtual: n } = e.table, o = D(null), [s, i] = q(0), [a, l] = q(0), u = () => {
|
|
3940
3939
|
o.current && (console.log("触发了table的handleResize"), i(o.current.offsetWidth), l(o.current.offsetHeight));
|
|
3941
3940
|
};
|
|
3942
|
-
|
|
3941
|
+
G(() => {
|
|
3943
3942
|
const g = new ResizeObserver(u);
|
|
3944
3943
|
return o.current && g.observe(o.current), () => {
|
|
3945
3944
|
g && o.current && g.unobserve(o.current);
|
|
@@ -3954,7 +3953,7 @@ function Yl(e, t) {
|
|
|
3954
3953
|
scroll: d
|
|
3955
3954
|
};
|
|
3956
3955
|
}
|
|
3957
|
-
function
|
|
3956
|
+
function Xl(e, t) {
|
|
3958
3957
|
const { toolbar: r } = e.table;
|
|
3959
3958
|
return {
|
|
3960
3959
|
getTopToolbarBindProps: () => {
|
|
@@ -3991,7 +3990,7 @@ const An = () => {
|
|
|
3991
3990
|
extendTableProps: e == null ? void 0 : e.table,
|
|
3992
3991
|
setExtendTableCellComp: r
|
|
3993
3992
|
};
|
|
3994
|
-
},
|
|
3993
|
+
}, ql = ({ crudFormDialog: e }) => ({
|
|
3995
3994
|
crudFormDialogRef: D(null),
|
|
3996
3995
|
crudFormProps: e
|
|
3997
3996
|
}), Kl = "_container__toolbar_1yx5k_13", Jl = "_container__table_1yx5k_27", Zl = "_container__pagination_1yx5k_35", ot = {
|
|
@@ -4009,12 +4008,12 @@ const An = () => {
|
|
|
4009
4008
|
resetData: g,
|
|
4010
4009
|
resetAllData: f,
|
|
4011
4010
|
reloadData: b
|
|
4012
|
-
} = Ul(e, t), { rowSelection: p } =
|
|
4011
|
+
} = Ul(e, t), { rowSelection: p } = Yl(e, i), { divRef: v, scroll: x } = Gl(e, r), { getTopToolbarBindProps: R } = Xl(e, i), T = () => {
|
|
4013
4012
|
const {
|
|
4014
4013
|
autoRequest: j,
|
|
4015
4014
|
api: k,
|
|
4016
4015
|
formatDataSource: L,
|
|
4017
|
-
autoPagination:
|
|
4016
|
+
autoPagination: Y,
|
|
4018
4017
|
columns: $,
|
|
4019
4018
|
scroll: C,
|
|
4020
4019
|
pagination: w,
|
|
@@ -4066,7 +4065,7 @@ const An = () => {
|
|
|
4066
4065
|
"xph-table-full-wrapper": "_xph-table-full-wrapper_mdv0g_1",
|
|
4067
4066
|
"full-wrapper__table": "_full-wrapper__table_mdv0g_13"
|
|
4068
4067
|
}, eu = (e, t) => {
|
|
4069
|
-
const { tableProps: r } = Bl(e), n = D(null), { searchFormRef: o, searchFormProps: s } = Fl(r), { crudFormDialogRef: i, crudFormProps: a } =
|
|
4068
|
+
const { tableProps: r } = Bl(e), n = D(null), { searchFormRef: o, searchFormProps: s } = Fl(r), { crudFormDialogRef: i, crudFormProps: a } = ql(r);
|
|
4070
4069
|
let { fullHeight: l } = r.table;
|
|
4071
4070
|
const { virtual: u } = r.table;
|
|
4072
4071
|
return u && (l = !0), Te(t, () => ({
|