xph-crud 0.2.5 → 0.2.6
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 +164 -164
- 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,7 +2121,7 @@ const mc = (e) => {
|
|
|
2121
2121
|
};
|
|
2122
2122
|
}, Fc = (e, t, r, n) => {
|
|
2123
2123
|
const o = D(null);
|
|
2124
|
-
return
|
|
2124
|
+
return G(() => {
|
|
2125
2125
|
if (e) {
|
|
2126
2126
|
const s = t.current.offsetWidth, i = t.current.offsetHeight;
|
|
2127
2127
|
o.current = {
|
|
@@ -2225,7 +2225,7 @@ const mc = (e) => {
|
|
|
2225
2225
|
}
|
|
2226
2226
|
)
|
|
2227
2227
|
}
|
|
2228
|
-
), { useToken: Oc } =
|
|
2228
|
+
), { useToken: Oc } = Xe, $c = fe(
|
|
2229
2229
|
({
|
|
2230
2230
|
title: e,
|
|
2231
2231
|
left: t,
|
|
@@ -2260,19 +2260,19 @@ const mc = (e) => {
|
|
|
2260
2260
|
}
|
|
2261
2261
|
);
|
|
2262
2262
|
}
|
|
2263
|
-
), Mc = "
|
|
2264
|
-
"xph-dialog-mask": "_xph-dialog-
|
|
2265
|
-
"xph-dialog-wrapper": "_xph-dialog-
|
|
2263
|
+
), Mc = "_dialog__header_o2yvb_45", kc = "_dialog__main_o2yvb_71", zc = "_dialog__footer_o2yvb_85", Ic = "_dialog__resize_o2yvb_99", ne = {
|
|
2264
|
+
"xph-dialog-mask": "_xph-dialog-mask_o2yvb_1",
|
|
2265
|
+
"xph-dialog-wrapper": "_xph-dialog-wrapper_o2yvb_23",
|
|
2266
2266
|
dialog__header: Mc,
|
|
2267
|
-
"dialog__header-btns": "_dialog__header-
|
|
2267
|
+
"dialog__header-btns": "_dialog__header-btns_o2yvb_63",
|
|
2268
2268
|
dialog__main: kc,
|
|
2269
2269
|
dialog__footer: zc,
|
|
2270
2270
|
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 } =
|
|
2271
|
+
"dialog__resize-lt": "_dialog__resize-lt_o2yvb_113",
|
|
2272
|
+
"dialog__resize-rt": "_dialog__resize-rt_o2yvb_125",
|
|
2273
|
+
"dialog__resize-rb": "_dialog__resize-rb_o2yvb_137",
|
|
2274
|
+
"dialog__resize-lb": "_dialog__resize-lb_o2yvb_149"
|
|
2275
|
+
}, { useToken: Lc } = Xe, Wc = fe((e, t) => {
|
|
2276
2276
|
console.log("render Dialog==============================================");
|
|
2277
2277
|
const { token: r } = Lc(), n = {
|
|
2278
2278
|
borderRadius: r.borderRadiusLG
|
|
@@ -2284,12 +2284,12 @@ const mc = (e) => {
|
|
|
2284
2284
|
renderFooter: l,
|
|
2285
2285
|
renderTitle: u,
|
|
2286
2286
|
getPopperContainer: d
|
|
2287
|
-
} = e, g = d(), [f, b] = fc(!1), [p, v] =
|
|
2287
|
+
} = e, g = d(), [f, b] = fc(!1), [p, v] = q(!1), { open: x, close: R } = vc(
|
|
2288
2288
|
f,
|
|
2289
2289
|
e,
|
|
2290
2290
|
b,
|
|
2291
2291
|
v
|
|
2292
|
-
), { footerActions: T } = hc(e, p), j = D(null), k = D(null), L = D(null),
|
|
2292
|
+
), { footerActions: T } = hc(e, p), j = D(null), k = D(null), L = D(null), Y = D(null), {
|
|
2293
2293
|
containerSizeTarget: $,
|
|
2294
2294
|
parentInitRecord: C,
|
|
2295
2295
|
initLeft: w,
|
|
@@ -2307,7 +2307,7 @@ const mc = (e) => {
|
|
|
2307
2307
|
initWidth: S,
|
|
2308
2308
|
initHeight: E,
|
|
2309
2309
|
setDialogChangeRecord: te
|
|
2310
|
-
}), { dialogLeft: N, dialogTop:
|
|
2310
|
+
}), { dialogLeft: N, dialogTop: X, setDialogPosition: V } = _c({
|
|
2311
2311
|
initTop: _,
|
|
2312
2312
|
initLeft: w,
|
|
2313
2313
|
setDialogChangeRecord: te
|
|
@@ -2317,7 +2317,7 @@ const mc = (e) => {
|
|
|
2317
2317
|
dialogHeight: ce,
|
|
2318
2318
|
dialogRef: j,
|
|
2319
2319
|
dialogHeaderRef: k,
|
|
2320
|
-
dialogFooterRef:
|
|
2320
|
+
dialogFooterRef: Y
|
|
2321
2321
|
}), { minResizeRecord: ke } = Fc(
|
|
2322
2322
|
f,
|
|
2323
2323
|
j,
|
|
@@ -2340,7 +2340,7 @@ const mc = (e) => {
|
|
|
2340
2340
|
}), et = () => {
|
|
2341
2341
|
console.log("触发了initDialog"), z({ width: S.current, height: E.current }), V({ left: w.current, top: _.current }), Se({ left: 160, top: 60 }), xt(!1);
|
|
2342
2342
|
};
|
|
2343
|
-
|
|
2343
|
+
G(() => {
|
|
2344
2344
|
et();
|
|
2345
2345
|
}, [C]), Sc({
|
|
2346
2346
|
initWidth: S,
|
|
@@ -2407,7 +2407,7 @@ const mc = (e) => {
|
|
|
2407
2407
|
style: {
|
|
2408
2408
|
display: f && !Je ? "flex" : "none",
|
|
2409
2409
|
left: N,
|
|
2410
|
-
top:
|
|
2410
|
+
top: X,
|
|
2411
2411
|
width: de,
|
|
2412
2412
|
height: ce,
|
|
2413
2413
|
maxHeight: yt,
|
|
@@ -2432,10 +2432,10 @@ const mc = (e) => {
|
|
|
2432
2432
|
style: {
|
|
2433
2433
|
maxHeight: _t
|
|
2434
2434
|
},
|
|
2435
|
-
children: /* @__PURE__ */ h.jsx(
|
|
2435
|
+
children: /* @__PURE__ */ h.jsx(Gr, { spinning: p, children: f ? o : null })
|
|
2436
2436
|
}
|
|
2437
2437
|
),
|
|
2438
|
-
l ? /* @__PURE__ */ h.jsx("div", { ref:
|
|
2438
|
+
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
2439
|
/* @__PURE__ */ h.jsx(
|
|
2440
2440
|
"div",
|
|
2441
2441
|
{
|
|
@@ -2477,7 +2477,7 @@ const mc = (e) => {
|
|
|
2477
2477
|
getPopperContainer: t
|
|
2478
2478
|
}) => {
|
|
2479
2479
|
const [r, n] = Ce.useState(null);
|
|
2480
|
-
return
|
|
2480
|
+
return G(() => {
|
|
2481
2481
|
const o = t();
|
|
2482
2482
|
n(o);
|
|
2483
2483
|
}, []), r ? bo.createPortal(e, r) : null;
|
|
@@ -2510,21 +2510,21 @@ function er(e) {
|
|
|
2510
2510
|
function tr(e) {
|
|
2511
2511
|
return "render" in e;
|
|
2512
2512
|
}
|
|
2513
|
-
function
|
|
2513
|
+
function Yc(e) {
|
|
2514
2514
|
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
2515
|
}
|
|
2516
|
-
function
|
|
2516
|
+
function Gc(e, t, r) {
|
|
2517
2517
|
["DatePicker", "MonthPicker", "WeekPicker", "TimePicker"].includes(
|
|
2518
2518
|
t
|
|
2519
2519
|
) ? e.type = r ? "string" : "object" : ["RangePicker", "Upload", "CheckboxGroup", "TimePicker"].includes(t) ? e.type = "array" : ["InputNumber"].includes(t) && (e.type = "number");
|
|
2520
2520
|
}
|
|
2521
|
-
const
|
|
2521
|
+
const Xc = [
|
|
2522
2522
|
"DatePicker",
|
|
2523
2523
|
"MonthPicker",
|
|
2524
2524
|
"RangePicker",
|
|
2525
2525
|
"WeekPicker",
|
|
2526
2526
|
"TimePicker"
|
|
2527
|
-
],
|
|
2527
|
+
], qc = (e) => {
|
|
2528
2528
|
const { show: t, ifShow: r, required: n, disabled: o, componentProps: s } = e;
|
|
2529
2529
|
return !!(Z(t) || Z(r) || Z(n) || Z(o) || Z(s) || tr(e));
|
|
2530
2530
|
}, Kc = (e) => [
|
|
@@ -2539,20 +2539,20 @@ const Gc = [
|
|
|
2539
2539
|
if (Ut(i) && (l = i), Ut(a) && (u = a), Z(i)) {
|
|
2540
2540
|
l = i({ model: t });
|
|
2541
2541
|
const d = Lr(n.current) ? l : n.current;
|
|
2542
|
-
|
|
2542
|
+
G(() => {
|
|
2543
2543
|
dt(l, d) || s && s();
|
|
2544
2544
|
}, [t]);
|
|
2545
2545
|
}
|
|
2546
2546
|
if (Z(a)) {
|
|
2547
2547
|
u = a({ model: t });
|
|
2548
2548
|
const d = Lr(o.current) ? u : o.current;
|
|
2549
|
-
|
|
2549
|
+
G(() => {
|
|
2550
2550
|
dt(u, d) || s && s();
|
|
2551
2551
|
}, [t]);
|
|
2552
2552
|
}
|
|
2553
2553
|
return n.current = l, o.current = u, { isShow: l, isIfShow: u };
|
|
2554
2554
|
}, Zc = (e, t) => {
|
|
2555
|
-
const { collapsible: r, collapseNum: n } = e, [o, s] =
|
|
2555
|
+
const { collapsible: r, collapseNum: n } = e, [o, s] = q(
|
|
2556
2556
|
!!(r && t >= n)
|
|
2557
2557
|
);
|
|
2558
2558
|
return {
|
|
@@ -2567,7 +2567,7 @@ const Gc = [
|
|
|
2567
2567
|
}) => {
|
|
2568
2568
|
const { rules: o = [], label: s, required: i } = e;
|
|
2569
2569
|
let a = o;
|
|
2570
|
-
const l = er(e), u = l ?
|
|
2570
|
+
const l = er(e), u = l ? Yc(e.component) + s : "";
|
|
2571
2571
|
function d(p, v) {
|
|
2572
2572
|
const x = p.message || u;
|
|
2573
2573
|
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 +2585,7 @@ const Gc = [
|
|
|
2585
2585
|
const { component: v } = e;
|
|
2586
2586
|
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
2587
|
const x = n.valueFormat;
|
|
2588
|
-
|
|
2588
|
+
Gc(p, v, x);
|
|
2589
2589
|
}
|
|
2590
2590
|
}
|
|
2591
2591
|
const b = a.findIndex((p) => p.max);
|
|
@@ -2626,7 +2626,7 @@ const Gc = [
|
|
|
2626
2626
|
e.items.forEach((a) => {
|
|
2627
2627
|
n[a.name] = a.initialValue;
|
|
2628
2628
|
});
|
|
2629
|
-
const o =
|
|
2629
|
+
const o = qc(t), s = o ? st.useWatch((a) => r(a)) : null;
|
|
2630
2630
|
return {
|
|
2631
2631
|
rewritingModel: pt(() => s || r(n), [s]),
|
|
2632
2632
|
isusewatch: o
|
|
@@ -2663,7 +2663,7 @@ const Gc = [
|
|
|
2663
2663
|
return e.current.scrollToField(...n);
|
|
2664
2664
|
}
|
|
2665
2665
|
};
|
|
2666
|
-
return
|
|
2666
|
+
return G(() => (console.log(
|
|
2667
2667
|
"ParentComponent is mounted====================================="
|
|
2668
2668
|
), () => {
|
|
2669
2669
|
console.log(
|
|
@@ -2731,7 +2731,7 @@ const cl = (e, t, r) => {
|
|
|
2731
2731
|
if (d || g) {
|
|
2732
2732
|
const f = g || i[u.name];
|
|
2733
2733
|
if (er(u))
|
|
2734
|
-
if (
|
|
2734
|
+
if (Xc.includes(u.component)) {
|
|
2735
2735
|
if (oe(f)) {
|
|
2736
2736
|
const b = [];
|
|
2737
2737
|
for (const p of f)
|
|
@@ -2803,7 +2803,7 @@ const cl = (e, t, r) => {
|
|
|
2803
2803
|
const { immediate: t = !0, params: r, api: n, apiCallback: o, isUseWatch: s } = e, i = D(!0), a = D(r), l = () => {
|
|
2804
2804
|
n && Z(n) && (r ? n(r).then(o) : n().then(o), a.current = r);
|
|
2805
2805
|
};
|
|
2806
|
-
return
|
|
2806
|
+
return G(() => {
|
|
2807
2807
|
i.current && (t && l(), i.current = !1), !i.current && s && (dt(r, a.current) || t && l());
|
|
2808
2808
|
}, [r]), {
|
|
2809
2809
|
getApiData: l
|
|
@@ -2865,7 +2865,7 @@ const cl = (e, t, r) => {
|
|
|
2865
2865
|
return x;
|
|
2866
2866
|
};
|
|
2867
2867
|
return /* @__PURE__ */ h.jsx(
|
|
2868
|
-
|
|
2868
|
+
Xr,
|
|
2869
2869
|
{
|
|
2870
2870
|
...g(),
|
|
2871
2871
|
options: a,
|
|
@@ -2893,7 +2893,7 @@ const cl = (e, t, r) => {
|
|
|
2893
2893
|
return x;
|
|
2894
2894
|
};
|
|
2895
2895
|
return /* @__PURE__ */ h.jsx(
|
|
2896
|
-
|
|
2896
|
+
qr,
|
|
2897
2897
|
{
|
|
2898
2898
|
...g(),
|
|
2899
2899
|
treeData: a,
|
|
@@ -2966,7 +2966,7 @@ const cl = (e, t, r) => {
|
|
|
2966
2966
|
value: u = t,
|
|
2967
2967
|
// 默认文件列表
|
|
2968
2968
|
onChange: d
|
|
2969
|
-
} = e, g = D(!0), f = D(0), b = D([]), [p, v] =
|
|
2969
|
+
} = e, g = D(!0), f = D(0), b = D([]), [p, v] = q([]), x = (C) => {
|
|
2970
2970
|
b.current = C, v([...C]);
|
|
2971
2971
|
}, R = () => {
|
|
2972
2972
|
const {
|
|
@@ -3008,7 +3008,7 @@ const cl = (e, t, r) => {
|
|
|
3008
3008
|
break;
|
|
3009
3009
|
}
|
|
3010
3010
|
}
|
|
3011
|
-
},
|
|
3011
|
+
}, Y = (C) => {
|
|
3012
3012
|
const w = (S) => {
|
|
3013
3013
|
const E = S.split("/"), F = E[E.length - 1], [A] = F.split("?");
|
|
3014
3014
|
return A;
|
|
@@ -3029,17 +3029,17 @@ const cl = (e, t, r) => {
|
|
|
3029
3029
|
return [...p];
|
|
3030
3030
|
}
|
|
3031
3031
|
};
|
|
3032
|
-
return
|
|
3032
|
+
return G(() => {
|
|
3033
3033
|
const C = $();
|
|
3034
3034
|
if (dt(C, u)) return;
|
|
3035
3035
|
let w = [];
|
|
3036
3036
|
switch (l) {
|
|
3037
3037
|
case he.String: {
|
|
3038
|
-
w = (u || "").split(",").filter((_) => _).map((_) =>
|
|
3038
|
+
w = (u || "").split(",").filter((_) => _).map((_) => Y(_));
|
|
3039
3039
|
break;
|
|
3040
3040
|
}
|
|
3041
3041
|
case he["String[]"]: {
|
|
3042
|
-
w = (u || []).map((_) =>
|
|
3042
|
+
w = (u || []).map((_) => Y(_));
|
|
3043
3043
|
break;
|
|
3044
3044
|
}
|
|
3045
3045
|
case he["File[]"]: {
|
|
@@ -3052,7 +3052,7 @@ const cl = (e, t, r) => {
|
|
|
3052
3052
|
}
|
|
3053
3053
|
}
|
|
3054
3054
|
x(w);
|
|
3055
|
-
}, [u]),
|
|
3055
|
+
}, [u]), G(() => {
|
|
3056
3056
|
if (g.current) {
|
|
3057
3057
|
g.current = !1;
|
|
3058
3058
|
return;
|
|
@@ -3071,12 +3071,12 @@ const cl = (e, t, r) => {
|
|
|
3071
3071
|
}
|
|
3072
3072
|
);
|
|
3073
3073
|
}, H = /* @__PURE__ */ new Map();
|
|
3074
|
-
H.set("Input",
|
|
3074
|
+
H.set("Input", Yt);
|
|
3075
3075
|
H.set("ApiSelect", fl);
|
|
3076
|
-
H.set("Select",
|
|
3076
|
+
H.set("Select", Xr);
|
|
3077
3077
|
H.set("InputNumber", eo);
|
|
3078
3078
|
H.set("ApiTreeSelect", pl);
|
|
3079
|
-
H.set("TreeSelect",
|
|
3079
|
+
H.set("TreeSelect", qr);
|
|
3080
3080
|
H.set("ApiTransfer", gl);
|
|
3081
3081
|
H.set("Transfer", Kr);
|
|
3082
3082
|
H.set("Switch", to);
|
|
@@ -3091,8 +3091,8 @@ H.set("DatePicker", gt);
|
|
|
3091
3091
|
H.set("MonthPicker", gt.MonthPicker);
|
|
3092
3092
|
H.set("WeekPicker", gt.WeekPicker);
|
|
3093
3093
|
H.set("RangePicker", gt.RangePicker);
|
|
3094
|
-
H.set("InputPassword",
|
|
3095
|
-
H.set("InputTextArea",
|
|
3094
|
+
H.set("InputPassword", Yt.Password);
|
|
3095
|
+
H.set("InputTextArea", Yt.TextArea);
|
|
3096
3096
|
H.set("ApiAutoComplete", hl);
|
|
3097
3097
|
H.set("AutoComplete", Jr);
|
|
3098
3098
|
H.set("Upload", Mt);
|
|
@@ -3135,7 +3135,7 @@ const Nr = {
|
|
|
3135
3135
|
labelCol: j,
|
|
3136
3136
|
valuePropName: k,
|
|
3137
3137
|
initialValue: L,
|
|
3138
|
-
forceRow:
|
|
3138
|
+
forceRow: Y
|
|
3139
3139
|
} = t;
|
|
3140
3140
|
Te(s, () => ({
|
|
3141
3141
|
itemIndex: e,
|
|
@@ -3174,7 +3174,7 @@ const Nr = {
|
|
|
3174
3174
|
}) : null;
|
|
3175
3175
|
};
|
|
3176
3176
|
return /* @__PURE__ */ h.jsxs(Vr, { children: [
|
|
3177
|
-
|
|
3177
|
+
Y ? /* @__PURE__ */ h.jsx("div", { className: Nr["form-item-force"] }) : null,
|
|
3178
3178
|
l ? /* @__PURE__ */ h.jsx(
|
|
3179
3179
|
oo,
|
|
3180
3180
|
{
|
|
@@ -3193,7 +3193,7 @@ const Nr = {
|
|
|
3193
3193
|
onClickExpand: t,
|
|
3194
3194
|
onClickFold: r
|
|
3195
3195
|
}, n) => {
|
|
3196
|
-
const [o, s] =
|
|
3196
|
+
const [o, s] = q(e), i = pt(() => o, [o]), a = () => {
|
|
3197
3197
|
r(), s(!0);
|
|
3198
3198
|
}, l = () => {
|
|
3199
3199
|
t(), s(!1);
|
|
@@ -3251,7 +3251,7 @@ const Nr = {
|
|
|
3251
3251
|
const {
|
|
3252
3252
|
layout: k,
|
|
3253
3253
|
wrapperCol: L,
|
|
3254
|
-
labelCol:
|
|
3254
|
+
labelCol: Y,
|
|
3255
3255
|
colon: $,
|
|
3256
3256
|
disabled: C,
|
|
3257
3257
|
labelWrap: w,
|
|
@@ -3262,7 +3262,7 @@ const Nr = {
|
|
|
3262
3262
|
return {
|
|
3263
3263
|
layout: k,
|
|
3264
3264
|
wrapperCol: L,
|
|
3265
|
-
labelCol:
|
|
3265
|
+
labelCol: Y,
|
|
3266
3266
|
colon: $,
|
|
3267
3267
|
disabled: C,
|
|
3268
3268
|
labelWrap: w,
|
|
@@ -3279,7 +3279,7 @@ const Nr = {
|
|
|
3279
3279
|
};
|
|
3280
3280
|
return Te(t, () => ({
|
|
3281
3281
|
...j
|
|
3282
|
-
})),
|
|
3282
|
+
})), G(() => (console.log("Form is mounted======================="), n.register && n.register(j), () => {
|
|
3283
3283
|
console.log("Form is unmounted========================="), s.current.clear();
|
|
3284
3284
|
}), []), /* @__PURE__ */ h.jsxs(st, { form: r, ...T(), children: [
|
|
3285
3285
|
/* @__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 +3308,7 @@ const Nr = {
|
|
|
3308
3308
|
] })
|
|
3309
3309
|
] });
|
|
3310
3310
|
}, Fn = fe(Cl), Tl = Ur(Fn), Sl = fe((e, t) => {
|
|
3311
|
-
const { renderActions: r, showSearch: n, tableRef: o } = e, [s, i] =
|
|
3311
|
+
const { renderActions: r, showSearch: n, tableRef: o } = e, [s, i] = q(!1), a = D(null), l = () => {
|
|
3312
3312
|
const { reloadData: f } = o.current;
|
|
3313
3313
|
f();
|
|
3314
3314
|
}, u = () => {
|
|
@@ -3339,7 +3339,7 @@ const Nr = {
|
|
|
3339
3339
|
/** 扩展了loading方法,让table调用 */
|
|
3340
3340
|
setFormLoading: i,
|
|
3341
3341
|
...a.current
|
|
3342
|
-
})), /* @__PURE__ */ h.jsx(
|
|
3342
|
+
})), /* @__PURE__ */ h.jsx(Gr, { spinning: s, children: /* @__PURE__ */ h.jsx(Tl, { ref: a, ...g() }) });
|
|
3343
3343
|
}), Pl = Ur(Fn), Rl = (e, t) => {
|
|
3344
3344
|
const r = D(null), n = D(null), { formProps: o } = e, i = (() => {
|
|
3345
3345
|
const { formProps: d, ...g } = e;
|
|
@@ -3432,7 +3432,7 @@ function El(e) {
|
|
|
3432
3432
|
function Al(e) {
|
|
3433
3433
|
return "children" in e;
|
|
3434
3434
|
}
|
|
3435
|
-
const { useToken: Dl } =
|
|
3435
|
+
const { useToken: Dl } = Xe, Ol = (e, t, r) => {
|
|
3436
3436
|
const { curComponentProps: n, cellFuncProps: o } = t, { url: s, onClick: i } = n, { token: a } = Dl(), l = {
|
|
3437
3437
|
color: a.colorLink,
|
|
3438
3438
|
cursor: "pointer"
|
|
@@ -3459,7 +3459,7 @@ const { useToken: Dl } = Ge, Ol = (e, t, r) => {
|
|
|
3459
3459
|
}, Ml = (e, t, r) => {
|
|
3460
3460
|
const { curComponentProps: n, cellFuncProps: o } = t;
|
|
3461
3461
|
return /* @__PURE__ */ h.jsx("div", { className: $l["cellfunc-actions"], children: /* @__PURE__ */ h.jsx(Qt, { ...n }) });
|
|
3462
|
-
}, { useToken: kl } =
|
|
3462
|
+
}, { useToken: kl } = Xe, zl = {
|
|
3463
3463
|
0: {
|
|
3464
3464
|
color: "orange",
|
|
3465
3465
|
backgroundColor: "unset",
|
|
@@ -3704,7 +3704,7 @@ const Bl = (e) => {
|
|
|
3704
3704
|
};
|
|
3705
3705
|
};
|
|
3706
3706
|
function Vl(e) {
|
|
3707
|
-
const { pagination: t, autoPagination: r } = e.table, [n, o] =
|
|
3707
|
+
const { pagination: t, autoPagination: r } = e.table, [n, o] = q(
|
|
3708
3708
|
t
|
|
3709
3709
|
), s = D(
|
|
3710
3710
|
t
|
|
@@ -3730,7 +3730,7 @@ function Ul(e, t) {
|
|
|
3730
3730
|
onChange: s,
|
|
3731
3731
|
requestFields: i,
|
|
3732
3732
|
responseFields: a
|
|
3733
|
-
} = e.table, l = e.onPaginationChange, { pagination: u, lastPaginationState: d } = Vl(e), [g, f] =
|
|
3733
|
+
} = e.table, l = e.onPaginationChange, { pagination: u, lastPaginationState: d } = Vl(e), [g, f] = q({
|
|
3734
3734
|
loading: !1,
|
|
3735
3735
|
dataSource: [],
|
|
3736
3736
|
selection: [],
|
|
@@ -3748,7 +3748,7 @@ function Ul(e, t) {
|
|
|
3748
3748
|
f(_), b.current = _, (S = t.current) == null || S.setFormLoading(_.loading);
|
|
3749
3749
|
}
|
|
3750
3750
|
}, v = async () => {
|
|
3751
|
-
|
|
3751
|
+
G(() => {
|
|
3752
3752
|
const { autoRequest: w } = e.table, { validator: _ } = t.current;
|
|
3753
3753
|
w && _().then((S) => {
|
|
3754
3754
|
j({ searchFormParams: S });
|
|
@@ -3906,7 +3906,7 @@ function Ul(e, t) {
|
|
|
3906
3906
|
}
|
|
3907
3907
|
};
|
|
3908
3908
|
}
|
|
3909
|
-
const
|
|
3909
|
+
const Yl = (e, t) => {
|
|
3910
3910
|
const { onRowSelectionChange: r } = e, { rowSelection: n } = e.table, o = () => {
|
|
3911
3911
|
if (_n(n))
|
|
3912
3912
|
return {
|
|
@@ -3935,11 +3935,11 @@ const ql = (e, t) => {
|
|
|
3935
3935
|
getNewRowSelection: o
|
|
3936
3936
|
};
|
|
3937
3937
|
};
|
|
3938
|
-
function
|
|
3939
|
-
const { scroll: r, virtual: n } = e.table, o = D(null), [s, i] =
|
|
3938
|
+
function Gl(e, t) {
|
|
3939
|
+
const { scroll: r, virtual: n } = e.table, o = D(null), [s, i] = q(0), [a, l] = q(0), u = () => {
|
|
3940
3940
|
o.current && (console.log("触发了table的handleResize"), i(o.current.offsetWidth), l(o.current.offsetHeight));
|
|
3941
3941
|
};
|
|
3942
|
-
|
|
3942
|
+
G(() => {
|
|
3943
3943
|
const g = new ResizeObserver(u);
|
|
3944
3944
|
return o.current && g.observe(o.current), () => {
|
|
3945
3945
|
g && o.current && g.unobserve(o.current);
|
|
@@ -3954,7 +3954,7 @@ function Yl(e, t) {
|
|
|
3954
3954
|
scroll: d
|
|
3955
3955
|
};
|
|
3956
3956
|
}
|
|
3957
|
-
function
|
|
3957
|
+
function Xl(e, t) {
|
|
3958
3958
|
const { toolbar: r } = e.table;
|
|
3959
3959
|
return {
|
|
3960
3960
|
getTopToolbarBindProps: () => {
|
|
@@ -3991,7 +3991,7 @@ const An = () => {
|
|
|
3991
3991
|
extendTableProps: e == null ? void 0 : e.table,
|
|
3992
3992
|
setExtendTableCellComp: r
|
|
3993
3993
|
};
|
|
3994
|
-
},
|
|
3994
|
+
}, ql = ({ crudFormDialog: e }) => ({
|
|
3995
3995
|
crudFormDialogRef: D(null),
|
|
3996
3996
|
crudFormProps: e
|
|
3997
3997
|
}), Kl = "_container__toolbar_1yx5k_13", Jl = "_container__table_1yx5k_27", Zl = "_container__pagination_1yx5k_35", ot = {
|
|
@@ -4009,12 +4009,12 @@ const An = () => {
|
|
|
4009
4009
|
resetData: g,
|
|
4010
4010
|
resetAllData: f,
|
|
4011
4011
|
reloadData: b
|
|
4012
|
-
} = Ul(e, t), { rowSelection: p } =
|
|
4012
|
+
} = Ul(e, t), { rowSelection: p } = Yl(e, i), { divRef: v, scroll: x } = Gl(e, r), { getTopToolbarBindProps: R } = Xl(e, i), T = () => {
|
|
4013
4013
|
const {
|
|
4014
4014
|
autoRequest: j,
|
|
4015
4015
|
api: k,
|
|
4016
4016
|
formatDataSource: L,
|
|
4017
|
-
autoPagination:
|
|
4017
|
+
autoPagination: Y,
|
|
4018
4018
|
columns: $,
|
|
4019
4019
|
scroll: C,
|
|
4020
4020
|
pagination: w,
|
|
@@ -4066,7 +4066,7 @@ const An = () => {
|
|
|
4066
4066
|
"xph-table-full-wrapper": "_xph-table-full-wrapper_mdv0g_1",
|
|
4067
4067
|
"full-wrapper__table": "_full-wrapper__table_mdv0g_13"
|
|
4068
4068
|
}, eu = (e, t) => {
|
|
4069
|
-
const { tableProps: r } = Bl(e), n = D(null), { searchFormRef: o, searchFormProps: s } = Fl(r), { crudFormDialogRef: i, crudFormProps: a } =
|
|
4069
|
+
const { tableProps: r } = Bl(e), n = D(null), { searchFormRef: o, searchFormProps: s } = Fl(r), { crudFormDialogRef: i, crudFormProps: a } = ql(r);
|
|
4070
4070
|
let { fullHeight: l } = r.table;
|
|
4071
4071
|
const { virtual: u } = r.table;
|
|
4072
4072
|
return u && (l = !0), Te(t, () => ({
|