xph-crud 0.2.2 → 0.2.4
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 +247 -244
- package/dist/index.umd.cjs +8 -8
- package/dist/types/common/src/componnets/actions/hooks/useActionsProps.d.ts +1 -1
- package/dist/types/common/src/componnets/actions/hooks/useExtendActions.d.ts +1 -1
- package/dist/types/common/src/componnets/auth/hooks/useExtendAuth.d.ts +1 -1
- package/dist/types/common/src/hooks/useExtendCompProps.d.ts +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import Se, { useCallback as ve, createElement as Kn, createContext as Jn, useContext as Zn, useState as X, useRef as D, useEffect as q, Fragment as Vr, forwardRef as fe, useImperativeHandle as Pe, useMemo as
|
|
2
|
-
import { Button as ae, Dropdown as qr, theme as
|
|
1
|
+
import Se, { useCallback as ve, createElement as Kn, createContext as Jn, useContext as Zn, useState as X, useRef as D, useEffect as q, Fragment as Vr, forwardRef as fe, useImperativeHandle as Pe, useMemo as lt, memo as Ur } from "react";
|
|
2
|
+
import { Button as ae, Dropdown as qr, theme as qe, Space as Qn, Spin as Yr, Form as tt, Select as Gr, TreeSelect as Xr, Transfer as Kr, AutoComplete as Jr, Upload as $t, message as Ft, Input as Ut, InputNumber as eo, Switch as to, Radio as Zr, Checkbox as Qr, Cascader as ro, TimePicker as no, DatePicker as ut, 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
|
-
import
|
|
5
|
+
import rt from "dayjs";
|
|
6
6
|
const Mt = [];
|
|
7
7
|
for (let e = 0; e <= 15; e++)
|
|
8
8
|
Mt[e] = e.toString(16);
|
|
@@ -65,7 +65,7 @@ var gr;
|
|
|
65
65
|
function _o() {
|
|
66
66
|
return gr || (gr = 1, process.env.NODE_ENV !== "production" && function() {
|
|
67
67
|
var e = Se, t = Symbol.for("react.element"), r = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), o = Symbol.for("react.strict_mode"), s = Symbol.for("react.profiler"), i = Symbol.for("react.provider"), a = Symbol.for("react.context"), l = Symbol.for("react.forward_ref"), u = Symbol.for("react.suspense"), d = Symbol.for("react.suspense_list"), g = Symbol.for("react.memo"), f = Symbol.for("react.lazy"), b = Symbol.for("react.offscreen"), p = Symbol.iterator, v = "@@iterator";
|
|
68
|
-
function
|
|
68
|
+
function x(c) {
|
|
69
69
|
if (c === null || typeof c != "object")
|
|
70
70
|
return null;
|
|
71
71
|
var m = p && c[p] || c[v];
|
|
@@ -89,14 +89,14 @@ function _o() {
|
|
|
89
89
|
H.unshift("Warning: " + m), Function.prototype.apply.call(console[c], console, H);
|
|
90
90
|
}
|
|
91
91
|
}
|
|
92
|
-
var k = !1, I = !1, Y = !1, $ = !1, C = !1,
|
|
93
|
-
|
|
92
|
+
var k = !1, I = !1, Y = !1, $ = !1, C = !1, w;
|
|
93
|
+
w = Symbol.for("react.module.reference");
|
|
94
94
|
function _(c) {
|
|
95
95
|
return !!(typeof c == "string" || typeof c == "function" || c === n || c === s || C || c === o || c === u || c === d || $ || c === b || k || I || 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.
|
|
99
|
-
c.$$typeof ===
|
|
99
|
+
c.$$typeof === w || c.getModuleId !== void 0));
|
|
100
100
|
}
|
|
101
101
|
function S(c, m, y) {
|
|
102
102
|
var P = c.displayName;
|
|
@@ -234,7 +234,7 @@ function _o() {
|
|
|
234
234
|
var bt = typeof WeakMap == "function" ? WeakMap : Map;
|
|
235
235
|
Re = new bt();
|
|
236
236
|
}
|
|
237
|
-
function
|
|
237
|
+
function Xe(c, m) {
|
|
238
238
|
if (!c || De)
|
|
239
239
|
return "";
|
|
240
240
|
{
|
|
@@ -305,8 +305,8 @@ function _o() {
|
|
|
305
305
|
var Me = c ? c.displayName || c.name : "", je = Me ? he(Me) : "";
|
|
306
306
|
return typeof c == "function" && Re.set(c, je), je;
|
|
307
307
|
}
|
|
308
|
-
function
|
|
309
|
-
return
|
|
308
|
+
function Ke(c, m, y) {
|
|
309
|
+
return Xe(c, !1);
|
|
310
310
|
}
|
|
311
311
|
function vt(c) {
|
|
312
312
|
var m = c.prototype;
|
|
@@ -316,7 +316,7 @@ function _o() {
|
|
|
316
316
|
if (c == null)
|
|
317
317
|
return "";
|
|
318
318
|
if (typeof c == "function")
|
|
319
|
-
return
|
|
319
|
+
return Xe(c, vt(c));
|
|
320
320
|
if (typeof c == "string")
|
|
321
321
|
return he(c);
|
|
322
322
|
switch (c) {
|
|
@@ -328,7 +328,7 @@ function _o() {
|
|
|
328
328
|
if (typeof c == "object")
|
|
329
329
|
switch (c.$$typeof) {
|
|
330
330
|
case l:
|
|
331
|
-
return
|
|
331
|
+
return Ke(c.render);
|
|
332
332
|
case g:
|
|
333
333
|
return Oe(c.type, m, y);
|
|
334
334
|
case f: {
|
|
@@ -341,8 +341,8 @@ function _o() {
|
|
|
341
341
|
}
|
|
342
342
|
return "";
|
|
343
343
|
}
|
|
344
|
-
var me = Object.prototype.hasOwnProperty,
|
|
345
|
-
function
|
|
344
|
+
var me = Object.prototype.hasOwnProperty, Je = {}, yt = R.ReactDebugCurrentFrame;
|
|
345
|
+
function we(c) {
|
|
346
346
|
if (c) {
|
|
347
347
|
var m = c._owner, y = Oe(c.type, c._source, m ? m.type : null);
|
|
348
348
|
yt.setExtraStackFrame(y);
|
|
@@ -364,15 +364,15 @@ function _o() {
|
|
|
364
364
|
} catch (K) {
|
|
365
365
|
O = K;
|
|
366
366
|
}
|
|
367
|
-
O && !(O instanceof Error) && (
|
|
367
|
+
O && !(O instanceof Error) && (we(z), T("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", P || "React class", y, M, typeof O), we(null)), O instanceof Error && !(O.message in Je) && (Je[O.message] = !0, we(z), T("Failed %s type: %s", y, O.message), we(null));
|
|
368
368
|
}
|
|
369
369
|
}
|
|
370
370
|
}
|
|
371
|
-
var
|
|
371
|
+
var xt = Array.isArray;
|
|
372
372
|
function Ie(c) {
|
|
373
|
-
return
|
|
373
|
+
return xt(c);
|
|
374
374
|
}
|
|
375
|
-
function
|
|
375
|
+
function wt(c) {
|
|
376
376
|
{
|
|
377
377
|
var m = typeof Symbol == "function" && Symbol.toStringTag, y = m && c[Symbol.toStringTag] || c.constructor.name || "Object";
|
|
378
378
|
return y;
|
|
@@ -380,17 +380,17 @@ function _o() {
|
|
|
380
380
|
}
|
|
381
381
|
function Ct(c) {
|
|
382
382
|
try {
|
|
383
|
-
return
|
|
383
|
+
return Ze(c), !1;
|
|
384
384
|
} catch {
|
|
385
385
|
return !0;
|
|
386
386
|
}
|
|
387
387
|
}
|
|
388
|
-
function
|
|
388
|
+
function Ze(c) {
|
|
389
389
|
return "" + c;
|
|
390
390
|
}
|
|
391
391
|
function tr(c) {
|
|
392
392
|
if (Ct(c))
|
|
393
|
-
return T("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",
|
|
393
|
+
return T("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", wt(c)), Ze(c);
|
|
394
394
|
}
|
|
395
395
|
var Le = R.ReactCurrentOwner, Dn = {
|
|
396
396
|
key: !0,
|
|
@@ -556,7 +556,7 @@ Check the top-level render call using <` + y + ">.");
|
|
|
556
556
|
else if (Rt(c))
|
|
557
557
|
c._store && (c._store.validated = !0);
|
|
558
558
|
else if (c) {
|
|
559
|
-
var z =
|
|
559
|
+
var z = x(c);
|
|
560
560
|
if (typeof z == "function" && z !== c.entries)
|
|
561
561
|
for (var H = z.call(c), M; !(M = H.next()).done; )
|
|
562
562
|
Rt(M.value) && ar(M.value, m);
|
|
@@ -656,9 +656,9 @@ React keys must be passed directly to JSX without using spread:
|
|
|
656
656
|
}()), We;
|
|
657
657
|
}
|
|
658
658
|
process.env.NODE_ENV === "production" ? kt.exports = yo() : kt.exports = _o();
|
|
659
|
-
var h = kt.exports, tn = typeof global == "object" && global && global.Object === Object && global,
|
|
659
|
+
var h = kt.exports, tn = typeof global == "object" && global && global.Object === Object && global, xo = typeof self == "object" && self && self.Object === Object && self, pe = tn || xo || Function("return this")(), Te = pe.Symbol, rn = Object.prototype, wo = rn.hasOwnProperty, Co = rn.toString, Be = Te ? Te.toStringTag : void 0;
|
|
660
660
|
function To(e) {
|
|
661
|
-
var t =
|
|
661
|
+
var t = wo.call(e, Be), r = e[Be];
|
|
662
662
|
try {
|
|
663
663
|
e[Be] = void 0;
|
|
664
664
|
var n = !0;
|
|
@@ -799,14 +799,14 @@ function rs(e) {
|
|
|
799
799
|
return e;
|
|
800
800
|
};
|
|
801
801
|
}
|
|
802
|
-
var
|
|
802
|
+
var nt = function() {
|
|
803
803
|
try {
|
|
804
804
|
var e = Ae(Object, "defineProperty");
|
|
805
805
|
return e({}, "", {}), e;
|
|
806
806
|
} catch {
|
|
807
807
|
}
|
|
808
|
-
}(), ns =
|
|
809
|
-
return
|
|
808
|
+
}(), ns = nt ? function(e, t) {
|
|
809
|
+
return nt(e, "toString", {
|
|
810
810
|
configurable: !0,
|
|
811
811
|
enumerable: !1,
|
|
812
812
|
value: rs(t),
|
|
@@ -818,20 +818,20 @@ function Yt(e, t) {
|
|
|
818
818
|
return t = t ?? ss, !!t && (r == "number" || r != "symbol" && is.test(e)) && e > -1 && e % 1 == 0 && e < t;
|
|
819
819
|
}
|
|
820
820
|
function Gt(e, t, r) {
|
|
821
|
-
t == "__proto__" &&
|
|
821
|
+
t == "__proto__" && nt ? nt(e, t, {
|
|
822
822
|
configurable: !0,
|
|
823
823
|
enumerable: !0,
|
|
824
824
|
value: r,
|
|
825
825
|
writable: !0
|
|
826
826
|
}) : e[t] = r;
|
|
827
827
|
}
|
|
828
|
-
function
|
|
828
|
+
function Ye(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) && Ye(n, r)) || r === void 0 && !(t in e)) && Gt(e, t, r);
|
|
835
835
|
}
|
|
836
836
|
function ls(e, t, r, n) {
|
|
837
837
|
var o = !r;
|
|
@@ -867,7 +867,7 @@ function ps(e, t, r) {
|
|
|
867
867
|
if (!ce(r))
|
|
868
868
|
return !1;
|
|
869
869
|
var n = typeof t;
|
|
870
|
-
return (n == "number" ? dt(r) && Yt(t, r.length) : n == "string" && t in r) ?
|
|
870
|
+
return (n == "number" ? dt(r) && Yt(t, r.length) : n == "string" && t in r) ? Ye(r[t], e) : !1;
|
|
871
871
|
}
|
|
872
872
|
function gs(e) {
|
|
873
873
|
return ds(function(t, r) {
|
|
@@ -890,18 +890,18 @@ function ms(e, t) {
|
|
|
890
890
|
return n;
|
|
891
891
|
}
|
|
892
892
|
var bs = "[object Arguments]";
|
|
893
|
-
function
|
|
893
|
+
function xr(e) {
|
|
894
894
|
return de(e) && ge(e) == bs;
|
|
895
895
|
}
|
|
896
|
-
var cn = Object.prototype, vs = cn.hasOwnProperty, ys = cn.propertyIsEnumerable, It =
|
|
896
|
+
var cn = Object.prototype, vs = cn.hasOwnProperty, ys = cn.propertyIsEnumerable, It = xr(/* @__PURE__ */ function() {
|
|
897
897
|
return arguments;
|
|
898
|
-
}()) ?
|
|
898
|
+
}()) ? xr : function(e) {
|
|
899
899
|
return de(e) && vs.call(e, "callee") && !ys.call(e, "callee");
|
|
900
900
|
};
|
|
901
901
|
function _s() {
|
|
902
902
|
return !1;
|
|
903
903
|
}
|
|
904
|
-
var ln = typeof exports == "object" && exports && !exports.nodeType && exports,
|
|
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, ot = 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]", Ns = "[object Int8Array]", Ws = "[object Int16Array]", Bs = "[object Int32Array]", Hs = "[object Uint8Array]", Vs = "[object Uint8ClampedArray]", Us = "[object Uint16Array]", qs = "[object Uint32Array]", U = {};
|
|
905
905
|
U[Is] = U[Ls] = U[Ns] = U[Ws] = U[Bs] = U[Hs] = U[Vs] = U[Us] = U[qs] = !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
907
|
function Ys(e) {
|
|
@@ -920,7 +920,7 @@ var un = typeof exports == "object" && exports && !exports.nodeType && exports,
|
|
|
920
920
|
}
|
|
921
921
|
}(), Sr = Tr && Tr.isTypedArray, Kt = Sr ? Gs(Sr) : Ys, Ks = Object.prototype, Js = Ks.hasOwnProperty;
|
|
922
922
|
function dn(e, t) {
|
|
923
|
-
var r = oe(e), n = !r && It(e), o = !r && !n &&
|
|
923
|
+
var r = oe(e), n = !r && It(e), o = !r && !n && ot(e), s = !r && !n && !o && Kt(e), i = r || n || o || s, a = i ? ms(e.length, String) : [], l = a.length;
|
|
924
924
|
for (var u in e)
|
|
925
925
|
(t || Js.call(e, u)) && !(i && // Safari 9 has enumerable `arguments.length` in strict mode.
|
|
926
926
|
(u == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
|
|
@@ -1011,16 +1011,16 @@ Fe.prototype.delete = di;
|
|
|
1011
1011
|
Fe.prototype.get = hi;
|
|
1012
1012
|
Fe.prototype.has = vi;
|
|
1013
1013
|
Fe.prototype.set = _i;
|
|
1014
|
-
function
|
|
1014
|
+
function xi() {
|
|
1015
1015
|
this.__data__ = [], this.size = 0;
|
|
1016
1016
|
}
|
|
1017
1017
|
function ft(e, t) {
|
|
1018
1018
|
for (var r = e.length; r--; )
|
|
1019
|
-
if (
|
|
1019
|
+
if (Ye(e[r][0], t))
|
|
1020
1020
|
return r;
|
|
1021
1021
|
return -1;
|
|
1022
1022
|
}
|
|
1023
|
-
var
|
|
1023
|
+
var wi = Array.prototype, Ci = wi.splice;
|
|
1024
1024
|
function Ti(e) {
|
|
1025
1025
|
var t = this.__data__, r = ft(t, e);
|
|
1026
1026
|
if (r < 0)
|
|
@@ -1046,7 +1046,7 @@ function _e(e) {
|
|
|
1046
1046
|
this.set(n[0], n[1]);
|
|
1047
1047
|
}
|
|
1048
1048
|
}
|
|
1049
|
-
_e.prototype.clear =
|
|
1049
|
+
_e.prototype.clear = xi;
|
|
1050
1050
|
_e.prototype.delete = Ti;
|
|
1051
1051
|
_e.prototype.get = Si;
|
|
1052
1052
|
_e.prototype.has = Pi;
|
|
@@ -1081,18 +1081,18 @@ function Oi(e, t) {
|
|
|
1081
1081
|
var r = pt(this, e), n = r.size;
|
|
1082
1082
|
return r.set(e, t), this.size += r.size == n ? 0 : 1, this;
|
|
1083
1083
|
}
|
|
1084
|
-
function
|
|
1084
|
+
function xe(e) {
|
|
1085
1085
|
var t = -1, r = e == null ? 0 : e.length;
|
|
1086
1086
|
for (this.clear(); ++t < r; ) {
|
|
1087
1087
|
var n = e[t];
|
|
1088
1088
|
this.set(n[0], n[1]);
|
|
1089
1089
|
}
|
|
1090
1090
|
}
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1091
|
+
xe.prototype.clear = ji;
|
|
1092
|
+
xe.prototype.delete = Ei;
|
|
1093
|
+
xe.prototype.get = Ai;
|
|
1094
|
+
xe.prototype.has = Di;
|
|
1095
|
+
xe.prototype.set = Oi;
|
|
1096
1096
|
var $i = "Expected a function";
|
|
1097
1097
|
function Jt(e, t) {
|
|
1098
1098
|
if (typeof e != "function" || t != null && typeof t != "function")
|
|
@@ -1104,9 +1104,9 @@ function Jt(e, t) {
|
|
|
1104
1104
|
var i = e.apply(this, n);
|
|
1105
1105
|
return r.cache = s.set(o, i) || s, i;
|
|
1106
1106
|
};
|
|
1107
|
-
return r.cache = new (Jt.Cache ||
|
|
1107
|
+
return r.cache = new (Jt.Cache || xe)(), r;
|
|
1108
1108
|
}
|
|
1109
|
-
Jt.Cache =
|
|
1109
|
+
Jt.Cache = xe;
|
|
1110
1110
|
var Mi = 500;
|
|
1111
1111
|
function ki(e) {
|
|
1112
1112
|
var t = Jt(e, function(n) {
|
|
@@ -1168,7 +1168,7 @@ function ra(e, t) {
|
|
|
1168
1168
|
var n = r.__data__;
|
|
1169
1169
|
if (!Ue || n.length < ta - 1)
|
|
1170
1170
|
return n.push([e, t]), this.size = ++r.size, this;
|
|
1171
|
-
r = this.__data__ = new
|
|
1171
|
+
r = this.__data__ = new xe(n);
|
|
1172
1172
|
}
|
|
1173
1173
|
return r.set(e, t), this.size = r.size, this;
|
|
1174
1174
|
}
|
|
@@ -1226,10 +1226,10 @@ var Lt = Ae(pe, "DataView"), Nt = Ae(pe, "Promise"), Wt = Ae(pe, "Set"), Er = "[
|
|
|
1226
1226
|
}
|
|
1227
1227
|
return t;
|
|
1228
1228
|
});
|
|
1229
|
-
var
|
|
1229
|
+
var st = pe.Uint8Array;
|
|
1230
1230
|
function ba(e) {
|
|
1231
1231
|
var t = new e.constructor(e.byteLength);
|
|
1232
|
-
return new
|
|
1232
|
+
return new st(t).set(new st(e)), t;
|
|
1233
1233
|
}
|
|
1234
1234
|
function va(e, t) {
|
|
1235
1235
|
var r = ba(e.buffer);
|
|
@@ -1239,19 +1239,19 @@ function ya(e) {
|
|
|
1239
1239
|
return typeof e.constructor == "function" && !Xt(e) ? Xo(gn(e)) : {};
|
|
1240
1240
|
}
|
|
1241
1241
|
var _a = "__lodash_hash_undefined__";
|
|
1242
|
-
function
|
|
1242
|
+
function xa(e) {
|
|
1243
1243
|
return this.__data__.set(e, _a), this;
|
|
1244
1244
|
}
|
|
1245
|
-
function
|
|
1245
|
+
function wa(e) {
|
|
1246
1246
|
return this.__data__.has(e);
|
|
1247
1247
|
}
|
|
1248
|
-
function
|
|
1248
|
+
function it(e) {
|
|
1249
1249
|
var t = -1, r = e == null ? 0 : e.length;
|
|
1250
|
-
for (this.__data__ = new
|
|
1250
|
+
for (this.__data__ = new xe(); ++t < r; )
|
|
1251
1251
|
this.add(e[t]);
|
|
1252
1252
|
}
|
|
1253
|
-
|
|
1254
|
-
|
|
1253
|
+
it.prototype.add = it.prototype.push = xa;
|
|
1254
|
+
it.prototype.has = wa;
|
|
1255
1255
|
function Ca(e, t) {
|
|
1256
1256
|
for (var r = -1, n = e == null ? 0 : e.length; ++r < n; )
|
|
1257
1257
|
if (t(e[r], r, e))
|
|
@@ -1269,13 +1269,13 @@ function bn(e, t, r, n, o, s) {
|
|
|
1269
1269
|
var u = s.get(e), d = s.get(t);
|
|
1270
1270
|
if (u && d)
|
|
1271
1271
|
return u == t && d == e;
|
|
1272
|
-
var g = -1, f = !0, b = r & Pa ? new
|
|
1272
|
+
var g = -1, f = !0, b = r & Pa ? new it() : void 0;
|
|
1273
1273
|
for (s.set(e, t), s.set(t, e); ++g < a; ) {
|
|
1274
1274
|
var p = e[g], v = t[g];
|
|
1275
1275
|
if (n)
|
|
1276
|
-
var
|
|
1277
|
-
if (
|
|
1278
|
-
if (
|
|
1276
|
+
var x = i ? n(v, p, g, t, e, s) : n(p, v, g, e, t, s);
|
|
1277
|
+
if (x !== void 0) {
|
|
1278
|
+
if (x)
|
|
1279
1279
|
continue;
|
|
1280
1280
|
f = !1;
|
|
1281
1281
|
break;
|
|
@@ -1315,11 +1315,11 @@ function Ba(e, t, r, n, o, s, i) {
|
|
|
1315
1315
|
return !1;
|
|
1316
1316
|
e = e.buffer, t = t.buffer;
|
|
1317
1317
|
case Na:
|
|
1318
|
-
return !(e.byteLength != t.byteLength || !s(new
|
|
1318
|
+
return !(e.byteLength != t.byteLength || !s(new st(e), new st(t)));
|
|
1319
1319
|
case Aa:
|
|
1320
1320
|
case Da:
|
|
1321
1321
|
case Ma:
|
|
1322
|
-
return
|
|
1322
|
+
return Ye(+e, +t);
|
|
1323
1323
|
case Oa:
|
|
1324
1324
|
return e.name == t.name && e.message == t.message;
|
|
1325
1325
|
case ka:
|
|
@@ -1358,7 +1358,7 @@ function qa(e, t, r, n, o, s) {
|
|
|
1358
1358
|
return b == t && p == e;
|
|
1359
1359
|
var v = !0;
|
|
1360
1360
|
s.set(e, t), s.set(t, e);
|
|
1361
|
-
for (var
|
|
1361
|
+
for (var x = i; ++g < l; ) {
|
|
1362
1362
|
f = a[g];
|
|
1363
1363
|
var R = e[f], T = t[f];
|
|
1364
1364
|
if (n)
|
|
@@ -1367,21 +1367,21 @@ function qa(e, t, r, n, o, s) {
|
|
|
1367
1367
|
v = !1;
|
|
1368
1368
|
break;
|
|
1369
1369
|
}
|
|
1370
|
-
|
|
1370
|
+
x || (x = f == "constructor");
|
|
1371
1371
|
}
|
|
1372
|
-
if (v && !
|
|
1372
|
+
if (v && !x) {
|
|
1373
1373
|
var k = e.constructor, I = t.constructor;
|
|
1374
1374
|
k != I && "constructor" in e && "constructor" in t && !(typeof k == "function" && k instanceof k && typeof I == "function" && I instanceof I) && (v = !1);
|
|
1375
1375
|
}
|
|
1376
1376
|
return s.delete(e), s.delete(t), v;
|
|
1377
1377
|
}
|
|
1378
|
-
var Ya = 1, kr = "[object Arguments]", zr = "[object Array]",
|
|
1378
|
+
var Ya = 1, kr = "[object Arguments]", zr = "[object Array]", Qe = "[object Object]", Ga = Object.prototype, Ir = Ga.hasOwnProperty;
|
|
1379
1379
|
function Xa(e, t, r, n, o, s) {
|
|
1380
1380
|
var i = oe(e), a = oe(t), l = i ? zr : Ce(e), u = a ? zr : Ce(t);
|
|
1381
|
-
l = l == kr ?
|
|
1382
|
-
var d = l ==
|
|
1383
|
-
if (f &&
|
|
1384
|
-
if (!
|
|
1381
|
+
l = l == kr ? Qe : l, u = u == kr ? Qe : u;
|
|
1382
|
+
var d = l == Qe, g = u == Qe, f = l == u;
|
|
1383
|
+
if (f && ot(e)) {
|
|
1384
|
+
if (!ot(t))
|
|
1385
1385
|
return !1;
|
|
1386
1386
|
i = !0, d = !1;
|
|
1387
1387
|
}
|
|
@@ -1390,8 +1390,8 @@ function Xa(e, t, r, n, o, s) {
|
|
|
1390
1390
|
if (!(r & Ya)) {
|
|
1391
1391
|
var b = d && Ir.call(e, "__wrapped__"), p = g && Ir.call(t, "__wrapped__");
|
|
1392
1392
|
if (b || p) {
|
|
1393
|
-
var v = b ? e.value() : e,
|
|
1394
|
-
return s || (s = new ye()), o(v,
|
|
1393
|
+
var v = b ? e.value() : e, x = p ? t.value() : t;
|
|
1394
|
+
return s || (s = new ye()), o(v, x, r, n, s);
|
|
1395
1395
|
}
|
|
1396
1396
|
}
|
|
1397
1397
|
return f ? (s || (s = new ye()), qa(e, t, r, n, o, s)) : !1;
|
|
@@ -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 && !Ye(e[t], r) || r === void 0 && !(t in e)) && Gt(e, t, r);
|
|
1415
1415
|
}
|
|
1416
1416
|
function Za(e) {
|
|
1417
1417
|
return de(e) && dt(e);
|
|
@@ -1431,7 +1431,7 @@ function ec(e, t, r, n, o, s, i) {
|
|
|
1431
1431
|
}
|
|
1432
1432
|
var d = s ? s(a, l, r + "", e, t, i) : void 0, g = d === void 0;
|
|
1433
1433
|
if (g) {
|
|
1434
|
-
var f = oe(l), b = !f &&
|
|
1434
|
+
var f = oe(l), b = !f && ot(l), p = !f && !b && Kt(l);
|
|
1435
1435
|
d = l, f || b || p ? oe(a) ? d = a : Za(a) ? d = Jo(a) : b ? (g = !1, d = oa(l)) : p ? (g = !1, d = va(l)) : d = [] : Ki(l) || It(l) ? (d = a, It(a) ? d = Qa(a) : (!ce(a) || Z(a)) && (d = ya(l))) : g = !1;
|
|
1436
1436
|
}
|
|
1437
1437
|
g && (i.set(l, d), o(d, l, n, s, i), i.delete(l)), Bt(e, r, d);
|
|
@@ -1454,7 +1454,7 @@ var rc = "[object Boolean]";
|
|
|
1454
1454
|
function Vt(e) {
|
|
1455
1455
|
return e === !0 || e === !1 || de(e) && ge(e) == rc;
|
|
1456
1456
|
}
|
|
1457
|
-
function
|
|
1457
|
+
function at(e, t) {
|
|
1458
1458
|
return vn(e, t);
|
|
1459
1459
|
}
|
|
1460
1460
|
var nc = "[object Number]";
|
|
@@ -1486,7 +1486,7 @@ function ic(e, t, r, n) {
|
|
|
1486
1486
|
}
|
|
1487
1487
|
return e;
|
|
1488
1488
|
}
|
|
1489
|
-
function
|
|
1489
|
+
function xn(e, t, r) {
|
|
1490
1490
|
return e == null ? e : ic(e, t, r);
|
|
1491
1491
|
}
|
|
1492
1492
|
function ac(e) {
|
|
@@ -1509,7 +1509,7 @@ function ac(e) {
|
|
|
1509
1509
|
authProps: i
|
|
1510
1510
|
};
|
|
1511
1511
|
}
|
|
1512
|
-
function
|
|
1512
|
+
function wn(e) {
|
|
1513
1513
|
return "component" in e;
|
|
1514
1514
|
}
|
|
1515
1515
|
function cc(e) {
|
|
@@ -1537,7 +1537,7 @@ function lc(e, t) {
|
|
|
1537
1537
|
return !!b;
|
|
1538
1538
|
}, u = o.map((g) => {
|
|
1539
1539
|
const f = { ...g };
|
|
1540
|
-
if (
|
|
1540
|
+
if (wn(f)) {
|
|
1541
1541
|
const b = f.component;
|
|
1542
1542
|
switch (f.componentProps = {
|
|
1543
1543
|
type: r,
|
|
@@ -1591,17 +1591,17 @@ const uc = (e) => {
|
|
|
1591
1591
|
}
|
|
1592
1592
|
)
|
|
1593
1593
|
);
|
|
1594
|
-
},
|
|
1595
|
-
|
|
1596
|
-
|
|
1594
|
+
}, ct = /* @__PURE__ */ new Map();
|
|
1595
|
+
ct.set("Button", uc);
|
|
1596
|
+
ct.set("Dropdown", dc);
|
|
1597
1597
|
function Cn() {
|
|
1598
1598
|
const { setExtendActionsComp: e } = Sn();
|
|
1599
|
-
return e(
|
|
1599
|
+
return e(ct), {
|
|
1600
1600
|
renderContent: ve(
|
|
1601
1601
|
(r, n) => {
|
|
1602
|
-
const o =
|
|
1602
|
+
const o = wn(r), s = cc(r);
|
|
1603
1603
|
if (o) {
|
|
1604
|
-
const i =
|
|
1604
|
+
const i = ct.get(r.component);
|
|
1605
1605
|
return /* @__PURE__ */ Kn(i, { ...r, key: n });
|
|
1606
1606
|
}
|
|
1607
1607
|
return s ? /* @__PURE__ */ h.jsx("div", { children: r.render }, n) : null;
|
|
@@ -1622,7 +1622,7 @@ const Tn = Jn({}), iu = (e) => {
|
|
|
1622
1622
|
children: e.children
|
|
1623
1623
|
}
|
|
1624
1624
|
);
|
|
1625
|
-
},
|
|
1625
|
+
}, Ge = () => Zn(Tn), fc = (e) => {
|
|
1626
1626
|
const [t, r] = X(e), n = D(null);
|
|
1627
1627
|
return q(() => {
|
|
1628
1628
|
n.current && (n.current(), n.current = null);
|
|
@@ -1633,7 +1633,7 @@ const Tn = Jn({}), iu = (e) => {
|
|
|
1633
1633
|
});
|
|
1634
1634
|
})];
|
|
1635
1635
|
}, Sn = () => {
|
|
1636
|
-
const { extendProps: e, extendComp: t } =
|
|
1636
|
+
const { extendProps: e, extendComp: t } = Ge(), r = (n) => {
|
|
1637
1637
|
const o = t == null ? void 0 : t.actions;
|
|
1638
1638
|
o && Object.keys(o).forEach((s) => {
|
|
1639
1639
|
n.set(s, o[s]);
|
|
@@ -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 } = qe, gc = ({
|
|
1648
1648
|
items: e,
|
|
1649
1649
|
actionsProps: t
|
|
1650
1650
|
}) => {
|
|
@@ -1729,7 +1729,7 @@ const mc = (e) => {
|
|
|
1729
1729
|
baseDialogProps: r
|
|
1730
1730
|
};
|
|
1731
1731
|
}, bc = () => {
|
|
1732
|
-
const { extendProps: e } =
|
|
1732
|
+
const { extendProps: e } = Ge();
|
|
1733
1733
|
return {
|
|
1734
1734
|
extendDialogProps: e == null ? void 0 : e.dialog
|
|
1735
1735
|
};
|
|
@@ -1792,8 +1792,8 @@ const mc = (e) => {
|
|
|
1792
1792
|
}, []), l = ve((d) => {
|
|
1793
1793
|
const g = r.current, { translateX: f, translateY: b } = i(g);
|
|
1794
1794
|
let p = d.clientX - o.current, v = d.clientY - s.current;
|
|
1795
|
-
const
|
|
1796
|
-
p <
|
|
1795
|
+
const x = -f, R = -b, T = e.current.scrollWidth - g.offsetWidth - f, j = e.current.scrollHeight - g.offsetHeight - b;
|
|
1796
|
+
p < x && (p = x), p > T && (p = T), v < R && (v = R), v > j && (v = j), n({ left: p, top: v });
|
|
1797
1797
|
}, []), u = ve(() => {
|
|
1798
1798
|
document.removeEventListener("mousemove", l), document.removeEventListener("mouseup", u);
|
|
1799
1799
|
}, []);
|
|
@@ -1803,7 +1803,7 @@ const mc = (e) => {
|
|
|
1803
1803
|
d.removeEventListener("mousedown", a);
|
|
1804
1804
|
};
|
|
1805
1805
|
}, []), {};
|
|
1806
|
-
},
|
|
1806
|
+
}, xc = ({
|
|
1807
1807
|
containerSizeTarget: e,
|
|
1808
1808
|
dialogChangeRecord: t,
|
|
1809
1809
|
close: r,
|
|
@@ -1821,19 +1821,19 @@ const mc = (e) => {
|
|
|
1821
1821
|
},
|
|
1822
1822
|
onMaximize: (b) => {
|
|
1823
1823
|
if (b === "minimize" && i(!1), b === "maximize") {
|
|
1824
|
-
const { scrollWidth: p, scrollHeight: v } = e.current,
|
|
1825
|
-
n({ width:
|
|
1824
|
+
const { scrollWidth: p, scrollHeight: v } = e.current, x = Math.floor(p), R = Math.floor(v), T = Math.floor(p / 2), j = Math.floor(v / 2);
|
|
1825
|
+
n({ width: x, height: R }), o({ top: j, left: T }), l(!0);
|
|
1826
1826
|
}
|
|
1827
1827
|
},
|
|
1828
1828
|
onRecovery: () => {
|
|
1829
|
-
const { top: b, left: p, width: v, height:
|
|
1830
|
-
n({ width: v, height:
|
|
1829
|
+
const { top: b, left: p, width: v, height: x } = t.current;
|
|
1830
|
+
n({ width: v, height: x }), o({ top: b, left: p }), l(!1);
|
|
1831
1831
|
},
|
|
1832
1832
|
onClose: () => {
|
|
1833
1833
|
i(!1), l(!1), r();
|
|
1834
1834
|
}
|
|
1835
1835
|
};
|
|
1836
|
-
},
|
|
1836
|
+
}, wc = ({
|
|
1837
1837
|
visible: e,
|
|
1838
1838
|
containerSizeTarget: t,
|
|
1839
1839
|
dialogHeight: r,
|
|
@@ -2030,13 +2030,13 @@ const mc = (e) => {
|
|
|
2030
2030
|
}
|
|
2031
2031
|
), []), i = D(null), a = D(), l = D(!1), [u, d] = X(!1), g = D(0), f = D(0), b = ($, C) => {
|
|
2032
2032
|
l.current = !0, d(!0), a.current = C;
|
|
2033
|
-
const { clientX:
|
|
2034
|
-
g.current =
|
|
2033
|
+
const { clientX: w, clientY: _ } = $;
|
|
2034
|
+
g.current = w, f.current = _;
|
|
2035
2035
|
const S = parseFloat(t.current.style.left), E = parseFloat(t.current.style.top), F = t.current.offsetWidth, A = t.current.offsetHeight;
|
|
2036
2036
|
i.current.style.display = "block", i.current.style.left = `${S - 0.5 * F}px`, i.current.style.top = `${E - 0.5 * A}px`, i.current.style.width = `${F}px`, i.current.style.height = `${A}px`;
|
|
2037
2037
|
}, p = ($) => {
|
|
2038
2038
|
if (l.current) {
|
|
2039
|
-
const { clientX: C, clientY:
|
|
2039
|
+
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, L = i.current.offsetHeight, Q = r.current.width, te = r.current.height, le = e.current.scrollWidth, se = e.current.scrollHeight;
|
|
2040
2040
|
let N = A, W = L, V = E, G = F;
|
|
2041
2041
|
switch (a.current) {
|
|
2042
2042
|
case "lt": {
|
|
@@ -2056,15 +2056,15 @@ const mc = (e) => {
|
|
|
2056
2056
|
break;
|
|
2057
2057
|
}
|
|
2058
2058
|
}
|
|
2059
|
-
i.current.style.left = `${V}px`, i.current.style.top = `${G}px`, i.current.style.width = `${N}px`, i.current.style.height = `${W}px`, g.current = C, f.current =
|
|
2059
|
+
i.current.style.left = `${V}px`, i.current.style.top = `${G}px`, i.current.style.width = `${N}px`, i.current.style.height = `${W}px`, g.current = C, f.current = w;
|
|
2060
2060
|
}
|
|
2061
2061
|
}, v = () => {
|
|
2062
2062
|
if (l.current) {
|
|
2063
2063
|
l.current = !1, d(!1), i.current.style.display = "none";
|
|
2064
|
-
const { left: $, top: C, width:
|
|
2064
|
+
const { left: $, top: C, width: w, height: _ } = i.current.style, S = parseFloat($) + 0.5 * parseFloat(w), E = parseFloat(C) + 0.5 * parseFloat(_), F = parseFloat(w), A = parseFloat(_);
|
|
2065
2065
|
o({ left: S, top: E }), n({ width: F, height: A });
|
|
2066
2066
|
}
|
|
2067
|
-
},
|
|
2067
|
+
}, x = ($) => b($, "lt"), R = ($) => b($, "rt"), T = ($) => b($, "rb"), j = ($) => b($, "lb"), k = ve(($) => {
|
|
2068
2068
|
p($);
|
|
2069
2069
|
}, []), I = ve(() => {
|
|
2070
2070
|
v();
|
|
@@ -2076,7 +2076,7 @@ const mc = (e) => {
|
|
|
2076
2076
|
}), []), {
|
|
2077
2077
|
resizingState: u,
|
|
2078
2078
|
DashedBox: s,
|
|
2079
|
-
onMousedownResizeLt:
|
|
2079
|
+
onMousedownResizeLt: x,
|
|
2080
2080
|
onMousedownResizeRt: R,
|
|
2081
2081
|
onMousedownResizeRb: T,
|
|
2082
2082
|
onMousedownResizeLb: j
|
|
@@ -2094,13 +2094,13 @@ const mc = (e) => {
|
|
|
2094
2094
|
}), []);
|
|
2095
2095
|
const { containerSizeTarget: i, setContainerSizeTarget: a } = Ec({
|
|
2096
2096
|
container: e
|
|
2097
|
-
}), { width: l, height: u } = r, { width: d, height: g } = t, f = d || l, b = g || u, { clientWidth: p, clientHeight: v } = i.current,
|
|
2097
|
+
}), { 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) => {
|
|
2098
2098
|
T.current = C.width, j.current = C.height;
|
|
2099
2099
|
}, I = D(Math.floor(p / 2)), Y = D(Math.floor(v / 2)), $ = (C) => {
|
|
2100
2100
|
I.current = C.left, Y.current = C.top;
|
|
2101
2101
|
};
|
|
2102
2102
|
return q(() => {
|
|
2103
|
-
a(), k({ width:
|
|
2103
|
+
a(), k({ width: x, height: R }), $({
|
|
2104
2104
|
left: Math.floor(p / 2),
|
|
2105
2105
|
top: Math.floor(v / 2)
|
|
2106
2106
|
});
|
|
@@ -2111,7 +2111,7 @@ const mc = (e) => {
|
|
|
2111
2111
|
initTop: Y,
|
|
2112
2112
|
initWidth: T,
|
|
2113
2113
|
initHeight: j,
|
|
2114
|
-
curPropsWidth:
|
|
2114
|
+
curPropsWidth: x,
|
|
2115
2115
|
curPropsHeight: R,
|
|
2116
2116
|
setInitPosition: $,
|
|
2117
2117
|
setInitSize: k
|
|
@@ -2222,7 +2222,7 @@ const mc = (e) => {
|
|
|
2222
2222
|
}
|
|
2223
2223
|
)
|
|
2224
2224
|
}
|
|
2225
|
-
), { useToken: Oc } =
|
|
2225
|
+
), { useToken: Oc } = qe, $c = fe(
|
|
2226
2226
|
({
|
|
2227
2227
|
title: e,
|
|
2228
2228
|
left: t,
|
|
@@ -2269,7 +2269,7 @@ const mc = (e) => {
|
|
|
2269
2269
|
"dialog__resize-rt": "_dialog__resize-rt_128q2_125",
|
|
2270
2270
|
"dialog__resize-rb": "_dialog__resize-rb_128q2_137",
|
|
2271
2271
|
"dialog__resize-lb": "_dialog__resize-lb_128q2_149"
|
|
2272
|
-
}, { useToken: Lc } =
|
|
2272
|
+
}, { useToken: Lc } = qe, Nc = fe((e, t) => {
|
|
2273
2273
|
console.log("render Dialog==============================================");
|
|
2274
2274
|
const { token: r } = Lc(), n = {
|
|
2275
2275
|
borderRadius: r.borderRadiusLG
|
|
@@ -2281,7 +2281,7 @@ const mc = (e) => {
|
|
|
2281
2281
|
renderFooter: l,
|
|
2282
2282
|
renderTitle: u,
|
|
2283
2283
|
getPopperContainer: d
|
|
2284
|
-
} = e, g = d(), [f, b] = fc(!1), [p, v] = X(!1), { open:
|
|
2284
|
+
} = e, g = d(), [f, b] = fc(!1), [p, v] = X(!1), { open: x, close: R } = vc(
|
|
2285
2285
|
f,
|
|
2286
2286
|
e,
|
|
2287
2287
|
b,
|
|
@@ -2289,7 +2289,7 @@ const mc = (e) => {
|
|
|
2289
2289
|
), { footerActions: T } = hc(e, p), j = D(null), k = D(null), I = D(null), Y = D(null), {
|
|
2290
2290
|
containerSizeTarget: $,
|
|
2291
2291
|
parentResizeRecord: C,
|
|
2292
|
-
initLeft:
|
|
2292
|
+
initLeft: w,
|
|
2293
2293
|
initTop: _,
|
|
2294
2294
|
initWidth: S,
|
|
2295
2295
|
initHeight: E,
|
|
@@ -2305,9 +2305,9 @@ const mc = (e) => {
|
|
|
2305
2305
|
setDialogChangeRecord: Q
|
|
2306
2306
|
}), { dialogLeft: N, dialogTop: W, setDialogPosition: V } = _c({
|
|
2307
2307
|
initTop: _,
|
|
2308
|
-
initLeft:
|
|
2308
|
+
initLeft: w,
|
|
2309
2309
|
setDialogChangeRecord: Q
|
|
2310
|
-
}), { dialogMaxHeight: G, contentMaxHeight: ht } =
|
|
2310
|
+
}), { dialogMaxHeight: G, contentMaxHeight: ht } = wc({
|
|
2311
2311
|
visible: f,
|
|
2312
2312
|
containerSizeTarget: $,
|
|
2313
2313
|
dialogHeight: le,
|
|
@@ -2322,26 +2322,26 @@ const mc = (e) => {
|
|
|
2322
2322
|
), { minimizeLeft: ke, minimizeTop: ze, minimizeRef: he, setMinimizePosition: De } = Cc(), {
|
|
2323
2323
|
minimizeVisible: Re,
|
|
2324
2324
|
maximizeVisible: bt,
|
|
2325
|
-
setMaximizeVisible:
|
|
2326
|
-
onMaximize:
|
|
2325
|
+
setMaximizeVisible: Xe,
|
|
2326
|
+
onMaximize: Ke,
|
|
2327
2327
|
onMinimize: vt,
|
|
2328
2328
|
onRecovery: Oe,
|
|
2329
2329
|
onClose: me
|
|
2330
|
-
} =
|
|
2330
|
+
} = xc({
|
|
2331
2331
|
containerSizeTarget: $,
|
|
2332
2332
|
dialogChangeRecord: L,
|
|
2333
2333
|
close: R,
|
|
2334
2334
|
setDialogSize: se,
|
|
2335
2335
|
setDialogPosition: V
|
|
2336
|
-
}),
|
|
2337
|
-
console.log("触发了initDialog"), se({ width: S.current, height: E.current }), V({ left:
|
|
2336
|
+
}), Je = () => {
|
|
2337
|
+
console.log("触发了initDialog"), se({ width: S.current, height: E.current }), V({ left: w.current, top: _.current }), De({ left: 160, top: 60 }), Xe(!1);
|
|
2338
2338
|
};
|
|
2339
2339
|
q(() => {
|
|
2340
|
-
|
|
2340
|
+
Je();
|
|
2341
2341
|
}, [C]), Sc({
|
|
2342
2342
|
initWidth: S,
|
|
2343
2343
|
initHeight: E,
|
|
2344
|
-
initLeft:
|
|
2344
|
+
initLeft: w,
|
|
2345
2345
|
initTop: _,
|
|
2346
2346
|
curPropsWidth: F,
|
|
2347
2347
|
curPropsHeight: A,
|
|
@@ -2358,18 +2358,18 @@ const mc = (e) => {
|
|
|
2358
2358
|
dialogRef: he,
|
|
2359
2359
|
setDialogPosition: De
|
|
2360
2360
|
});
|
|
2361
|
-
const { dialogTopShowClassConfig:
|
|
2361
|
+
const { dialogTopShowClassConfig: we } = Tc({
|
|
2362
2362
|
visible: f,
|
|
2363
2363
|
container: g,
|
|
2364
2364
|
dialogRef: j,
|
|
2365
2365
|
minimizeRef: he
|
|
2366
2366
|
}), {
|
|
2367
2367
|
resizingState: _t,
|
|
2368
|
-
DashedBox:
|
|
2368
|
+
DashedBox: xt,
|
|
2369
2369
|
onMousedownResizeLt: Ie,
|
|
2370
|
-
onMousedownResizeRt:
|
|
2370
|
+
onMousedownResizeRt: wt,
|
|
2371
2371
|
onMousedownResizeRb: Ct,
|
|
2372
|
-
onMousedownResizeLb:
|
|
2372
|
+
onMousedownResizeLb: Ze
|
|
2373
2373
|
} = Rc({
|
|
2374
2374
|
containerSizeTarget: $,
|
|
2375
2375
|
dialogRef: j,
|
|
@@ -2378,23 +2378,23 @@ const mc = (e) => {
|
|
|
2378
2378
|
setDialogPosition: V
|
|
2379
2379
|
});
|
|
2380
2380
|
return Pe(t, () => ({
|
|
2381
|
-
open:
|
|
2381
|
+
open: x,
|
|
2382
2382
|
close: me,
|
|
2383
2383
|
setLoading: v,
|
|
2384
2384
|
getVisible: () => f
|
|
2385
|
-
})), /* @__PURE__ */ h.jsxs("div", { className:
|
|
2385
|
+
})), /* @__PURE__ */ h.jsxs("div", { className: we.xphDialog, children: [
|
|
2386
2386
|
i && f ? /* @__PURE__ */ h.jsx("div", { className: ne["xph-dialog-mask"] }) : null,
|
|
2387
2387
|
/* @__PURE__ */ h.jsx(
|
|
2388
2388
|
$c,
|
|
2389
2389
|
{
|
|
2390
2390
|
visible: Re,
|
|
2391
|
-
className: `${
|
|
2391
|
+
className: `${we.xphMinimizeDialog}`,
|
|
2392
2392
|
loading: p,
|
|
2393
2393
|
ref: he,
|
|
2394
2394
|
left: ke,
|
|
2395
2395
|
top: ze,
|
|
2396
2396
|
title: a,
|
|
2397
|
-
onMaximize: () =>
|
|
2397
|
+
onMaximize: () => Ke("minimize"),
|
|
2398
2398
|
onClosesquare: me
|
|
2399
2399
|
}
|
|
2400
2400
|
),
|
|
@@ -2402,7 +2402,7 @@ const mc = (e) => {
|
|
|
2402
2402
|
"div",
|
|
2403
2403
|
{
|
|
2404
2404
|
ref: j,
|
|
2405
|
-
className: `${ne["xph-dialog-wrapper"]} ${
|
|
2405
|
+
className: `${ne["xph-dialog-wrapper"]} ${we.xphDialogWrapper}`,
|
|
2406
2406
|
style: {
|
|
2407
2407
|
display: f && !Re ? "flex" : "none",
|
|
2408
2408
|
left: N,
|
|
@@ -2419,7 +2419,7 @@ const mc = (e) => {
|
|
|
2419
2419
|
/* @__PURE__ */ h.jsx("div", { children: u ? u() : a }),
|
|
2420
2420
|
/* @__PURE__ */ h.jsxs("div", { className: ne["dialog__header-btns"], children: [
|
|
2421
2421
|
/* @__PURE__ */ h.jsx(Ac, { onClick: vt }),
|
|
2422
|
-
bt ? /* @__PURE__ */ h.jsx(Dc, { onClick: Oe }) : /* @__PURE__ */ h.jsx(Pn, { onClick: () =>
|
|
2422
|
+
bt ? /* @__PURE__ */ h.jsx(Dc, { onClick: Oe }) : /* @__PURE__ */ h.jsx(Pn, { onClick: () => Ke("maximize") }),
|
|
2423
2423
|
/* @__PURE__ */ h.jsx(Rn, { onClick: me, disabled: p })
|
|
2424
2424
|
] })
|
|
2425
2425
|
] }),
|
|
@@ -2446,7 +2446,7 @@ const mc = (e) => {
|
|
|
2446
2446
|
"div",
|
|
2447
2447
|
{
|
|
2448
2448
|
className: `${ne.dialog__resize} ${ne["dialog__resize-rt"]}`,
|
|
2449
|
-
onMouseDown:
|
|
2449
|
+
onMouseDown: wt
|
|
2450
2450
|
}
|
|
2451
2451
|
),
|
|
2452
2452
|
/* @__PURE__ */ h.jsx(
|
|
@@ -2460,13 +2460,13 @@ const mc = (e) => {
|
|
|
2460
2460
|
"div",
|
|
2461
2461
|
{
|
|
2462
2462
|
className: `${ne.dialog__resize} ${ne["dialog__resize-lb"]}`,
|
|
2463
|
-
onMouseDown:
|
|
2463
|
+
onMouseDown: Ze
|
|
2464
2464
|
}
|
|
2465
2465
|
)
|
|
2466
2466
|
]
|
|
2467
2467
|
}
|
|
2468
2468
|
),
|
|
2469
|
-
/* @__PURE__ */ h.jsx(
|
|
2469
|
+
/* @__PURE__ */ h.jsx(xt, {})
|
|
2470
2470
|
] });
|
|
2471
2471
|
}), Wc = (e, t) => {
|
|
2472
2472
|
const { children: r, ...n } = e, { baseDialogProps: o, dialogProps: s } = mc(n), { getPopperContainer: i } = s;
|
|
@@ -2492,16 +2492,16 @@ function Vc(e) {
|
|
|
2492
2492
|
};
|
|
2493
2493
|
}
|
|
2494
2494
|
const Uc = () => {
|
|
2495
|
-
const { extendProps: e } =
|
|
2495
|
+
const { extendProps: e } = Ge();
|
|
2496
2496
|
return {
|
|
2497
2497
|
extendAuthProps: e == null ? void 0 : e.auth
|
|
2498
2498
|
};
|
|
2499
2499
|
}, au = (e) => {
|
|
2500
2500
|
const { children: t, ...r } = e, { authProps: n } = Vc(r), { auth: o, authCode: s } = n;
|
|
2501
|
-
return
|
|
2501
|
+
return (() => {
|
|
2502
2502
|
let a = !1;
|
|
2503
2503
|
return s && o && (oe(s) ? a = s.every((l) => o(l)) : a = o(s)), a;
|
|
2504
|
-
}
|
|
2504
|
+
})() ? t : null;
|
|
2505
2505
|
};
|
|
2506
2506
|
function Qt(e) {
|
|
2507
2507
|
return "component" in e;
|
|
@@ -2539,14 +2539,14 @@ const Gc = [
|
|
|
2539
2539
|
l = i({ model: t });
|
|
2540
2540
|
const d = Lr(n.current) ? l : n.current;
|
|
2541
2541
|
q(() => {
|
|
2542
|
-
|
|
2542
|
+
at(l, d) || s && s();
|
|
2543
2543
|
}, [t]);
|
|
2544
2544
|
}
|
|
2545
2545
|
if (Z(a)) {
|
|
2546
2546
|
u = a({ model: t });
|
|
2547
2547
|
const d = Lr(o.current) ? u : o.current;
|
|
2548
2548
|
q(() => {
|
|
2549
|
-
|
|
2549
|
+
at(u, d) || s && s();
|
|
2550
2550
|
}, [t]);
|
|
2551
2551
|
}
|
|
2552
2552
|
return n.current = l, o.current = u, { isShow: l, isIfShow: u };
|
|
@@ -2568,8 +2568,8 @@ const Gc = [
|
|
|
2568
2568
|
let a = o;
|
|
2569
2569
|
const l = Qt(e), u = l ? qc(e.component) + s : "";
|
|
2570
2570
|
function d(p, v) {
|
|
2571
|
-
const
|
|
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(
|
|
2571
|
+
const x = p.message || u;
|
|
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();
|
|
2573
2573
|
}
|
|
2574
2574
|
const g = Z(i) ? i({ model: t }) : i;
|
|
2575
2575
|
g && (!a || a.length === 0 ? a = [{ required: g, validator: d }] : a.findIndex(
|
|
@@ -2583,8 +2583,8 @@ const Gc = [
|
|
|
2583
2583
|
if (r || (p.required = !1), l) {
|
|
2584
2584
|
const { component: v } = e;
|
|
2585
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);
|
|
2586
|
-
const
|
|
2587
|
-
Yc(p, v,
|
|
2586
|
+
const x = n.valueFormat;
|
|
2587
|
+
Yc(p, v, x);
|
|
2588
2588
|
}
|
|
2589
2589
|
}
|
|
2590
2590
|
const b = a.findIndex((p) => p.max);
|
|
@@ -2625,9 +2625,9 @@ const Gc = [
|
|
|
2625
2625
|
e.items.forEach((a) => {
|
|
2626
2626
|
n[a.name] = a.initialValue;
|
|
2627
2627
|
});
|
|
2628
|
-
const o = Xc(t), s = o ?
|
|
2628
|
+
const o = Xc(t), s = o ? tt.useWatch((a) => r(a)) : null;
|
|
2629
2629
|
return {
|
|
2630
|
-
rewritingModel:
|
|
2630
|
+
rewritingModel: lt(() => s || r(n), [s]),
|
|
2631
2631
|
isusewatch: o
|
|
2632
2632
|
};
|
|
2633
2633
|
}, cu = () => {
|
|
@@ -2680,7 +2680,7 @@ function sl(e, t = {}) {
|
|
|
2680
2680
|
return;
|
|
2681
2681
|
const s = [];
|
|
2682
2682
|
return o.forEach((i, a) => {
|
|
2683
|
-
|
|
2683
|
+
xn(s, a, t[i.trim()]);
|
|
2684
2684
|
}), s.filter(Boolean).length ? s : void 0;
|
|
2685
2685
|
}
|
|
2686
2686
|
}
|
|
@@ -2695,7 +2695,7 @@ function il(e, t = {}) {
|
|
|
2695
2695
|
return;
|
|
2696
2696
|
const s = {};
|
|
2697
2697
|
return o.forEach((i) => {
|
|
2698
|
-
|
|
2698
|
+
xn(s, i.trim(), t[i.trim()]);
|
|
2699
2699
|
}), Object.values(s).filter(Boolean).length ? s : void 0;
|
|
2700
2700
|
}
|
|
2701
2701
|
}
|
|
@@ -2716,7 +2716,7 @@ function al(e, t) {
|
|
|
2716
2716
|
continue;
|
|
2717
2717
|
}
|
|
2718
2718
|
const [a, l] = e[n], [u, d] = Array.isArray(i) ? i : [i, i];
|
|
2719
|
-
e[o] =
|
|
2719
|
+
e[o] = rt(a).format(u), e[s] = rt(l).format(d), Reflect.deleteProperty(e, n);
|
|
2720
2720
|
}
|
|
2721
2721
|
return e;
|
|
2722
2722
|
}
|
|
@@ -2734,10 +2734,10 @@ const cl = (e, t, r) => {
|
|
|
2734
2734
|
if (oe(f)) {
|
|
2735
2735
|
const b = [];
|
|
2736
2736
|
for (const p of f)
|
|
2737
|
-
b.push(p ?
|
|
2737
|
+
b.push(p ? rt(p) : null);
|
|
2738
2738
|
a[u.name] = b;
|
|
2739
2739
|
} else
|
|
2740
|
-
a[u.name] = f ?
|
|
2740
|
+
a[u.name] = f ? rt(f) : null;
|
|
2741
2741
|
l.push(u.name);
|
|
2742
2742
|
} else
|
|
2743
2743
|
a[u.name] = f, l.push(u.name);
|
|
@@ -2758,13 +2758,13 @@ const cl = (e, t, r) => {
|
|
|
2758
2758
|
const [v] = b;
|
|
2759
2759
|
if (!v || Z(p))
|
|
2760
2760
|
continue;
|
|
2761
|
-
const { transformDateFunc:
|
|
2761
|
+
const { transformDateFunc: x } = t, R = (d = (u = (l = r.current) == null ? void 0 : l.get(v)) == null ? void 0 : u.current) == null ? void 0 : d.componentProps, T = R == null ? void 0 : R.valueFormat;
|
|
2762
2762
|
if (ce(p)) {
|
|
2763
2763
|
const j = p;
|
|
2764
|
-
j.format && (p =
|
|
2764
|
+
j.format && (p = x == null ? void 0 : x(j, T));
|
|
2765
2765
|
}
|
|
2766
2766
|
oe(p) && ((g = p[0]) != null && g.format) && ((f = p[1]) != null && f.format) && (p = p.map(
|
|
2767
|
-
(j) =>
|
|
2767
|
+
(j) => x == null ? void 0 : x(j, T)
|
|
2768
2768
|
)), _n(p) && (p === "" ? p = void 0 : p = p.trim()), a[v] = p;
|
|
2769
2769
|
}
|
|
2770
2770
|
return al(a, t);
|
|
@@ -2803,7 +2803,7 @@ const cl = (e, t, r) => {
|
|
|
2803
2803
|
n && Z(n) && (r ? n(r).then(o) : n().then(o), a.current = r);
|
|
2804
2804
|
};
|
|
2805
2805
|
return q(() => {
|
|
2806
|
-
i.current && (t && l(), i.current = !1), !i.current && s && (
|
|
2806
|
+
i.current && (t && l(), i.current = !1), !i.current && s && (at(r, a.current) || t && l());
|
|
2807
2807
|
}, [r]), {
|
|
2808
2808
|
getApiData: l
|
|
2809
2809
|
};
|
|
@@ -2833,7 +2833,7 @@ const cl = (e, t, r) => {
|
|
|
2833
2833
|
}
|
|
2834
2834
|
};
|
|
2835
2835
|
}, jn = () => {
|
|
2836
|
-
const { extendProps: e, extendComp: t } =
|
|
2836
|
+
const { extendProps: e, extendComp: t } = Ge(), r = (n) => {
|
|
2837
2837
|
const o = t == null ? void 0 : t.form;
|
|
2838
2838
|
o && Object.keys(o).forEach((s) => {
|
|
2839
2839
|
n.set(s, o[s]);
|
|
@@ -2860,8 +2860,8 @@ const cl = (e, t, r) => {
|
|
|
2860
2860
|
}), d = (f) => {
|
|
2861
2861
|
f && !n && u(), s && s(f);
|
|
2862
2862
|
}, g = () => {
|
|
2863
|
-
const { api: f, params: b, immediate: p, isusewatch: v, ...
|
|
2864
|
-
return
|
|
2863
|
+
const { api: f, params: b, immediate: p, isusewatch: v, ...x } = e;
|
|
2864
|
+
return x;
|
|
2865
2865
|
};
|
|
2866
2866
|
return /* @__PURE__ */ h.jsx(
|
|
2867
2867
|
Gr,
|
|
@@ -2888,8 +2888,8 @@ const cl = (e, t, r) => {
|
|
|
2888
2888
|
}), d = (f) => {
|
|
2889
2889
|
f && !n && u(), s && s(f);
|
|
2890
2890
|
}, g = () => {
|
|
2891
|
-
const { api: f, params: b, immediate: p, isusewatch: v, ...
|
|
2892
|
-
return
|
|
2891
|
+
const { api: f, params: b, immediate: p, isusewatch: v, ...x } = e;
|
|
2892
|
+
return x;
|
|
2893
2893
|
};
|
|
2894
2894
|
return /* @__PURE__ */ h.jsx(
|
|
2895
2895
|
Xr,
|
|
@@ -2930,8 +2930,8 @@ const cl = (e, t, r) => {
|
|
|
2930
2930
|
}), d = (f) => {
|
|
2931
2931
|
f && !n && u(), s && s(f);
|
|
2932
2932
|
}, g = () => {
|
|
2933
|
-
const { api: f, params: b, immediate: p, isusewatch: v, ...
|
|
2934
|
-
return
|
|
2933
|
+
const { api: f, params: b, immediate: p, isusewatch: v, ...x } = e;
|
|
2934
|
+
return x;
|
|
2935
2935
|
};
|
|
2936
2936
|
return /* @__PURE__ */ h.jsx(
|
|
2937
2937
|
Jr,
|
|
@@ -2965,12 +2965,12 @@ const cl = (e, t, r) => {
|
|
|
2965
2965
|
value: u = t,
|
|
2966
2966
|
// 默认文件列表
|
|
2967
2967
|
onChange: d
|
|
2968
|
-
} = e, g = D(!0), f = D(0), b = D([]), [p, v] = X([]),
|
|
2968
|
+
} = e, g = D(!0), f = D(0), b = D([]), [p, v] = X([]), x = (C) => {
|
|
2969
2969
|
b.current = C, v([...C]);
|
|
2970
2970
|
}, R = () => {
|
|
2971
2971
|
const {
|
|
2972
2972
|
api: C,
|
|
2973
|
-
maxCount:
|
|
2973
|
+
maxCount: w,
|
|
2974
2974
|
maxSize: _,
|
|
2975
2975
|
openCrop: S,
|
|
2976
2976
|
beforeUpload: E,
|
|
@@ -2980,15 +2980,15 @@ const cl = (e, t, r) => {
|
|
|
2980
2980
|
} = e;
|
|
2981
2981
|
return L;
|
|
2982
2982
|
}, T = (C) => {
|
|
2983
|
-
const
|
|
2984
|
-
|
|
2983
|
+
const w = C.size / 1024 / 1024 < o;
|
|
2984
|
+
w || Ft.error(`文件大小超过:${o}M, 请重试`);
|
|
2985
2985
|
const _ = b.current.length + f.current < n;
|
|
2986
|
-
return _ || Ft.error(`文件数量不能超过${n}个`),
|
|
2986
|
+
return _ || Ft.error(`文件数量不能超过${n}个`), w && _ && f.current++, w && _ && j(C), $t.LIST_IGNORE;
|
|
2987
2987
|
}, j = (C) => {
|
|
2988
2988
|
i ? (Ft.error("暂时不支持裁剪功能,后续兼容。。。。"), k({ file: C })) : k({ file: C });
|
|
2989
2989
|
}, k = (C) => {
|
|
2990
|
-
r ? r({ file: C.file, ...a }).then((
|
|
2991
|
-
|
|
2990
|
+
r ? r({ file: C.file, ...a }).then((w) => {
|
|
2991
|
+
x([...b.current, ...w]);
|
|
2992
2992
|
}).finally(() => {
|
|
2993
2993
|
f.current--;
|
|
2994
2994
|
}) : (Object.assign(C.file, {
|
|
@@ -2998,24 +2998,24 @@ const cl = (e, t, r) => {
|
|
|
2998
2998
|
type: Kc(C.file.type)
|
|
2999
2999
|
})
|
|
3000
3000
|
)
|
|
3001
|
-
}),
|
|
3001
|
+
}), x([...b.current, C.file]), f.current--);
|
|
3002
3002
|
}, I = (C) => {
|
|
3003
|
-
const { file:
|
|
3003
|
+
const { file: w, fileList: _ } = C, { status: S } = w;
|
|
3004
3004
|
switch (S) {
|
|
3005
3005
|
case "removed": {
|
|
3006
|
-
|
|
3006
|
+
x([..._]);
|
|
3007
3007
|
break;
|
|
3008
3008
|
}
|
|
3009
3009
|
}
|
|
3010
3010
|
}, Y = (C) => {
|
|
3011
|
-
const
|
|
3011
|
+
const w = (S) => {
|
|
3012
3012
|
const E = S.split("/"), F = E[E.length - 1], [A] = F.split("?");
|
|
3013
3013
|
return A;
|
|
3014
3014
|
};
|
|
3015
3015
|
return { uid: ((S) => {
|
|
3016
3016
|
const E = b.current.find((F) => F.url === S);
|
|
3017
3017
|
return E ? E.uid : dr();
|
|
3018
|
-
})(C), name:
|
|
3018
|
+
})(C), name: w(C), url: C, status: "done" };
|
|
3019
3019
|
}, $ = () => {
|
|
3020
3020
|
switch (l) {
|
|
3021
3021
|
case be.String:
|
|
@@ -3030,27 +3030,27 @@ const cl = (e, t, r) => {
|
|
|
3030
3030
|
};
|
|
3031
3031
|
return q(() => {
|
|
3032
3032
|
const C = $();
|
|
3033
|
-
if (
|
|
3034
|
-
let
|
|
3033
|
+
if (at(C, u)) return;
|
|
3034
|
+
let w = [];
|
|
3035
3035
|
switch (l) {
|
|
3036
3036
|
case be.String: {
|
|
3037
|
-
|
|
3037
|
+
w = (u || "").split(",").filter((_) => _).map((_) => Y(_));
|
|
3038
3038
|
break;
|
|
3039
3039
|
}
|
|
3040
3040
|
case be["String[]"]: {
|
|
3041
|
-
|
|
3041
|
+
w = (u || []).map((_) => Y(_));
|
|
3042
3042
|
break;
|
|
3043
3043
|
}
|
|
3044
3044
|
case be["File[]"]: {
|
|
3045
|
-
|
|
3045
|
+
w = (u || []).map((_) => _);
|
|
3046
3046
|
break;
|
|
3047
3047
|
}
|
|
3048
3048
|
case be.FileList: {
|
|
3049
|
-
|
|
3049
|
+
w = (u || []).map((_) => _);
|
|
3050
3050
|
break;
|
|
3051
3051
|
}
|
|
3052
3052
|
}
|
|
3053
|
-
w
|
|
3053
|
+
x(w);
|
|
3054
3054
|
}, [u]), q(() => {
|
|
3055
3055
|
if (g.current) {
|
|
3056
3056
|
g.current = !1;
|
|
@@ -3128,7 +3128,7 @@ const Wr = {
|
|
|
3128
3128
|
n,
|
|
3129
3129
|
e
|
|
3130
3130
|
), {
|
|
3131
|
-
name:
|
|
3131
|
+
name: x,
|
|
3132
3132
|
label: R,
|
|
3133
3133
|
wrapperCol: T,
|
|
3134
3134
|
labelCol: j,
|
|
@@ -3143,7 +3143,7 @@ const Wr = {
|
|
|
3143
3143
|
setItemCollapse: v
|
|
3144
3144
|
}));
|
|
3145
3145
|
const $ = () => ({
|
|
3146
|
-
name:
|
|
3146
|
+
name: x,
|
|
3147
3147
|
label: R,
|
|
3148
3148
|
rules: f,
|
|
3149
3149
|
wrapperCol: T,
|
|
@@ -3152,8 +3152,8 @@ const Wr = {
|
|
|
3152
3152
|
initialValue: I
|
|
3153
3153
|
}), { setExtendFormComp: C } = jn();
|
|
3154
3154
|
C(B);
|
|
3155
|
-
const
|
|
3156
|
-
if (
|
|
3155
|
+
const w = Qt(t), _ = er(t), S = () => {
|
|
3156
|
+
if (w) {
|
|
3157
3157
|
const E = B.get(t.component);
|
|
3158
3158
|
return /* @__PURE__ */ h.jsx(
|
|
3159
3159
|
E,
|
|
@@ -3166,7 +3166,7 @@ const Wr = {
|
|
|
3166
3166
|
}
|
|
3167
3167
|
return _ ? t.render({
|
|
3168
3168
|
model: i,
|
|
3169
|
-
name:
|
|
3169
|
+
name: x,
|
|
3170
3170
|
disabled: b,
|
|
3171
3171
|
methods: r,
|
|
3172
3172
|
componentProps: g
|
|
@@ -3179,7 +3179,7 @@ const Wr = {
|
|
|
3179
3179
|
{
|
|
3180
3180
|
...d,
|
|
3181
3181
|
className: u && !p ? void 0 : Wr["form-item-hidden"],
|
|
3182
|
-
children: /* @__PURE__ */ h.jsx(
|
|
3182
|
+
children: /* @__PURE__ */ h.jsx(tt.Item, { ...$(), children: S() })
|
|
3183
3183
|
}
|
|
3184
3184
|
) : null
|
|
3185
3185
|
] });
|
|
@@ -3192,7 +3192,7 @@ const Wr = {
|
|
|
3192
3192
|
onClickExpand: t,
|
|
3193
3193
|
onClickFold: r
|
|
3194
3194
|
}, n) => {
|
|
3195
|
-
const [o, s] = X(e), i =
|
|
3195
|
+
const [o, s] = X(e), i = lt(() => o, [o]), a = () => {
|
|
3196
3196
|
r(), s(!0);
|
|
3197
3197
|
}, l = () => {
|
|
3198
3198
|
t(), s(!1);
|
|
@@ -3219,14 +3219,14 @@ const Wr = {
|
|
|
3219
3219
|
}
|
|
3220
3220
|
), _l = {
|
|
3221
3221
|
"group-wrapper": "_group-wrapper_g8zqi_1"
|
|
3222
|
-
},
|
|
3222
|
+
}, xl = ({ formProps: e }) => {
|
|
3223
3223
|
const { renderActions: t } = e;
|
|
3224
3224
|
return /* @__PURE__ */ h.jsx("div", { className: _l["group-wrapper"], children: t == null ? void 0 : t() });
|
|
3225
|
-
},
|
|
3225
|
+
}, wl = {
|
|
3226
3226
|
"xph-form-action": "_xph-form-action_8ws73_1"
|
|
3227
3227
|
}, Cl = (e, t) => {
|
|
3228
3228
|
console.log("render Form");
|
|
3229
|
-
const [r] =
|
|
3229
|
+
const [r] = tt.useForm(), { formProps: n } = ul(e), { formItems: o } = nl({ formProps: n }), s = D(/* @__PURE__ */ new Map()), {
|
|
3230
3230
|
collapsible: i,
|
|
3231
3231
|
collapseNum: a,
|
|
3232
3232
|
collapseRef: l,
|
|
@@ -3240,7 +3240,7 @@ const Wr = {
|
|
|
3240
3240
|
setFieldsValue: b,
|
|
3241
3241
|
getFieldsValue: p,
|
|
3242
3242
|
resetFields: v,
|
|
3243
|
-
validator:
|
|
3243
|
+
validator: x,
|
|
3244
3244
|
scrollToField: R
|
|
3245
3245
|
} = ll(
|
|
3246
3246
|
r,
|
|
@@ -3253,7 +3253,7 @@ const Wr = {
|
|
|
3253
3253
|
labelCol: Y,
|
|
3254
3254
|
colon: $,
|
|
3255
3255
|
disabled: C,
|
|
3256
|
-
labelWrap:
|
|
3256
|
+
labelWrap: w,
|
|
3257
3257
|
labelAlign: _,
|
|
3258
3258
|
scrollToFirstError: S,
|
|
3259
3259
|
size: E
|
|
@@ -3264,7 +3264,7 @@ const Wr = {
|
|
|
3264
3264
|
labelCol: Y,
|
|
3265
3265
|
colon: $,
|
|
3266
3266
|
disabled: C,
|
|
3267
|
-
labelWrap:
|
|
3267
|
+
labelWrap: w,
|
|
3268
3268
|
labelAlign: _,
|
|
3269
3269
|
scrollToFirstError: S,
|
|
3270
3270
|
size: E
|
|
@@ -3273,14 +3273,14 @@ const Wr = {
|
|
|
3273
3273
|
setFieldsValue: b,
|
|
3274
3274
|
getFieldsValue: p,
|
|
3275
3275
|
resetFields: v,
|
|
3276
|
-
validator:
|
|
3276
|
+
validator: x,
|
|
3277
3277
|
scrollToField: R
|
|
3278
3278
|
};
|
|
3279
3279
|
return Pe(t, () => ({
|
|
3280
3280
|
...j
|
|
3281
3281
|
})), q(() => (console.log("Form is mounted======================="), n.register && n.register(j), () => {
|
|
3282
3282
|
console.log("Form is unmounted========================="), s.current.clear();
|
|
3283
|
-
}), []), /* @__PURE__ */ h.jsxs(
|
|
3283
|
+
}), []), /* @__PURE__ */ h.jsxs(tt, { form: r, ...T(), children: [
|
|
3284
3284
|
/* @__PURE__ */ h.jsx(so, { children: o.map((k, I) => (s.current.has(k.name) || s.current.set(k.name, Se.createRef()), /* @__PURE__ */ h.jsx(
|
|
3285
3285
|
bl,
|
|
3286
3286
|
{
|
|
@@ -3293,8 +3293,8 @@ const Wr = {
|
|
|
3293
3293
|
},
|
|
3294
3294
|
I
|
|
3295
3295
|
))) }),
|
|
3296
|
-
/* @__PURE__ */ h.jsxs("div", { className:
|
|
3297
|
-
/* @__PURE__ */ h.jsx(
|
|
3296
|
+
/* @__PURE__ */ h.jsxs("div", { className: wl["xph-form-action"], children: [
|
|
3297
|
+
/* @__PURE__ */ h.jsx(xl, { formProps: n }),
|
|
3298
3298
|
i ? /* @__PURE__ */ h.jsx(
|
|
3299
3299
|
yl,
|
|
3300
3300
|
{
|
|
@@ -3351,7 +3351,7 @@ const Wr = {
|
|
|
3351
3351
|
n.current.validator().then(async (p) => {
|
|
3352
3352
|
r.current.setLoading(!0), await f({
|
|
3353
3353
|
values: n.current.getFieldsValue()
|
|
3354
|
-
}).then((
|
|
3354
|
+
}).then((x) => x).finally(() => {
|
|
3355
3355
|
r.current.setLoading(!1);
|
|
3356
3356
|
}) !== !1 && (r.current.close(), a.current = null);
|
|
3357
3357
|
});
|
|
@@ -3362,7 +3362,7 @@ const Wr = {
|
|
|
3362
3362
|
r.current.setLoading(!0), await d({
|
|
3363
3363
|
values: p,
|
|
3364
3364
|
data: b
|
|
3365
|
-
}).then((
|
|
3365
|
+
}).then((x) => (console.log(x), x)).finally(() => {
|
|
3366
3366
|
r.current.setLoading(!1);
|
|
3367
3367
|
}) !== !1 && (r.current.close(), a.current = null);
|
|
3368
3368
|
});
|
|
@@ -3431,7 +3431,7 @@ function El(e) {
|
|
|
3431
3431
|
function Al(e) {
|
|
3432
3432
|
return "children" in e;
|
|
3433
3433
|
}
|
|
3434
|
-
const { useToken: Dl } =
|
|
3434
|
+
const { useToken: Dl } = qe, Ol = (e, t, r) => {
|
|
3435
3435
|
const { curComponentProps: n, cellFuncProps: o } = t, { url: s, onClick: i } = n, { token: a } = Dl(), l = {
|
|
3436
3436
|
color: a.colorLink,
|
|
3437
3437
|
cursor: "pointer"
|
|
@@ -3458,7 +3458,7 @@ const { useToken: Dl } = Ye, Ol = (e, t, r) => {
|
|
|
3458
3458
|
}, Ml = (e, t, r) => {
|
|
3459
3459
|
const { curComponentProps: n, cellFuncProps: o } = t;
|
|
3460
3460
|
return /* @__PURE__ */ h.jsx("div", { className: $l["cellfunc-actions"], children: /* @__PURE__ */ h.jsx(Zt, { ...n }) });
|
|
3461
|
-
}, { useToken: kl } =
|
|
3461
|
+
}, { useToken: kl } = qe, zl = {
|
|
3462
3462
|
0: {
|
|
3463
3463
|
color: "orange",
|
|
3464
3464
|
backgroundColor: "unset",
|
|
@@ -3707,7 +3707,7 @@ function Vl(e) {
|
|
|
3707
3707
|
t
|
|
3708
3708
|
), s = D(
|
|
3709
3709
|
t
|
|
3710
|
-
), i =
|
|
3710
|
+
), i = lt(() => n && (r === !0 || r === void 0) || !1, [n]);
|
|
3711
3711
|
return {
|
|
3712
3712
|
pagination: {
|
|
3713
3713
|
model: n,
|
|
@@ -3741,24 +3741,24 @@ function Ul(e, t) {
|
|
|
3741
3741
|
backupsDataSource: []
|
|
3742
3742
|
}), p = {
|
|
3743
3743
|
model: g,
|
|
3744
|
-
update: (
|
|
3744
|
+
update: (w) => {
|
|
3745
3745
|
var S;
|
|
3746
|
-
const _ = { ...b.current, ...
|
|
3746
|
+
const _ = { ...b.current, ...w };
|
|
3747
3747
|
f(_), b.current = _, (S = t.current) == null || S.setFormLoading(_.loading);
|
|
3748
3748
|
}
|
|
3749
3749
|
}, v = async () => {
|
|
3750
3750
|
q(() => {
|
|
3751
|
-
const { autoRequest:
|
|
3752
|
-
|
|
3751
|
+
const { autoRequest: w } = e.table, { validator: _ } = t.current;
|
|
3752
|
+
w && _().then((S) => {
|
|
3753
3753
|
j({ searchFormParams: S });
|
|
3754
3754
|
});
|
|
3755
3755
|
}, []);
|
|
3756
|
-
},
|
|
3757
|
-
searchFormParams:
|
|
3756
|
+
}, x = async ({
|
|
3757
|
+
searchFormParams: w,
|
|
3758
3758
|
paginationParams: _
|
|
3759
3759
|
}) => {
|
|
3760
3760
|
const S = {
|
|
3761
|
-
...
|
|
3761
|
+
...w,
|
|
3762
3762
|
/** 没传paginationParams默认就是上一次 */
|
|
3763
3763
|
[`${i.current}`]: d.current.current,
|
|
3764
3764
|
[`${i.pageSize}`]: d.current.pageSize,
|
|
@@ -3783,10 +3783,10 @@ function Ul(e, t) {
|
|
|
3783
3783
|
p.update({ loading: !1 });
|
|
3784
3784
|
});
|
|
3785
3785
|
}, R = async ({
|
|
3786
|
-
searchFormParams:
|
|
3786
|
+
searchFormParams: w,
|
|
3787
3787
|
paginationParams: _
|
|
3788
3788
|
}) => {
|
|
3789
|
-
const S = { ...
|
|
3789
|
+
const S = { ...w };
|
|
3790
3790
|
return r(S).then((E) => {
|
|
3791
3791
|
const { list: F } = fr(a, E), A = n ? n(F) : F;
|
|
3792
3792
|
p.update({
|
|
@@ -3800,11 +3800,11 @@ function Ul(e, t) {
|
|
|
3800
3800
|
p.update({ loading: !1 });
|
|
3801
3801
|
});
|
|
3802
3802
|
}, T = async ({
|
|
3803
|
-
searchFormParams:
|
|
3803
|
+
searchFormParams: w,
|
|
3804
3804
|
paginationParams: _
|
|
3805
3805
|
}) => {
|
|
3806
3806
|
var E;
|
|
3807
|
-
const S = { ...
|
|
3807
|
+
const S = { ...w };
|
|
3808
3808
|
if (_) {
|
|
3809
3809
|
const { current: F, pageSize: A } = _;
|
|
3810
3810
|
u.update({
|
|
@@ -3836,25 +3836,25 @@ function Ul(e, t) {
|
|
|
3836
3836
|
p.update({ loading: !1 });
|
|
3837
3837
|
});
|
|
3838
3838
|
}, j = async ({
|
|
3839
|
-
searchFormParams:
|
|
3839
|
+
searchFormParams: w,
|
|
3840
3840
|
paginationParams: _
|
|
3841
3841
|
}) => {
|
|
3842
3842
|
if (p.update({ loading: !0, selection: [] }), r)
|
|
3843
3843
|
switch (!!d.current) {
|
|
3844
3844
|
case !0:
|
|
3845
3845
|
return o === !0 ? T({
|
|
3846
|
-
searchFormParams:
|
|
3846
|
+
searchFormParams: w,
|
|
3847
3847
|
paginationParams: _
|
|
3848
3848
|
}) : o === !1 ? R({
|
|
3849
|
-
searchFormParams:
|
|
3849
|
+
searchFormParams: w,
|
|
3850
3850
|
paginationParams: _
|
|
3851
|
-
}) :
|
|
3852
|
-
searchFormParams:
|
|
3851
|
+
}) : x({
|
|
3852
|
+
searchFormParams: w,
|
|
3853
3853
|
paginationParams: _
|
|
3854
3854
|
});
|
|
3855
3855
|
case !1:
|
|
3856
3856
|
return R({
|
|
3857
|
-
searchFormParams:
|
|
3857
|
+
searchFormParams: w,
|
|
3858
3858
|
paginationParams: _
|
|
3859
3859
|
});
|
|
3860
3860
|
}
|
|
@@ -3864,31 +3864,31 @@ function Ul(e, t) {
|
|
|
3864
3864
|
table: p,
|
|
3865
3865
|
pagination: u,
|
|
3866
3866
|
firstGetTableData: v,
|
|
3867
|
-
onPaginationChange: (
|
|
3867
|
+
onPaginationChange: (w, _) => {
|
|
3868
3868
|
const { validator: S } = t.current;
|
|
3869
3869
|
S().then((E) => {
|
|
3870
3870
|
j({
|
|
3871
3871
|
searchFormParams: E,
|
|
3872
|
-
paginationParams: { current:
|
|
3872
|
+
paginationParams: { current: w, pageSize: _ }
|
|
3873
3873
|
});
|
|
3874
|
-
}), l && l(
|
|
3874
|
+
}), l && l(w, _);
|
|
3875
3875
|
},
|
|
3876
|
-
onAllChange: async (...
|
|
3877
|
-
const [_, S, E, F] =
|
|
3876
|
+
onAllChange: async (...w) => {
|
|
3877
|
+
const [_, S, E, F] = w, A = [];
|
|
3878
3878
|
for (let L = 0; L < A.length && !A[L](); L++)
|
|
3879
3879
|
;
|
|
3880
3880
|
s && s(S, E, F);
|
|
3881
3881
|
},
|
|
3882
3882
|
resetData: async () => {
|
|
3883
|
-
const { resetFields:
|
|
3884
|
-
return
|
|
3883
|
+
const { resetFields: w, validator: _ } = t.current;
|
|
3884
|
+
return w().then(async () => {
|
|
3885
3885
|
const S = await _();
|
|
3886
3886
|
return j({ searchFormParams: S });
|
|
3887
3887
|
});
|
|
3888
3888
|
},
|
|
3889
3889
|
resetAllData: async () => {
|
|
3890
|
-
const { resetFields:
|
|
3891
|
-
return
|
|
3890
|
+
const { resetFields: w, validator: _ } = t.current;
|
|
3891
|
+
return w().then(async () => {
|
|
3892
3892
|
const S = {};
|
|
3893
3893
|
if (d.current) {
|
|
3894
3894
|
const { pageSize: E } = d.current;
|
|
@@ -3898,8 +3898,8 @@ function Ul(e, t) {
|
|
|
3898
3898
|
});
|
|
3899
3899
|
},
|
|
3900
3900
|
reloadData: async () => {
|
|
3901
|
-
const { validator:
|
|
3902
|
-
return
|
|
3901
|
+
const { validator: w } = t.current;
|
|
3902
|
+
return w().then((_) => j({
|
|
3903
3903
|
searchFormParams: _
|
|
3904
3904
|
}));
|
|
3905
3905
|
}
|
|
@@ -3936,12 +3936,15 @@ const ql = (e, t) => {
|
|
|
3936
3936
|
};
|
|
3937
3937
|
function Yl(e, t) {
|
|
3938
3938
|
const { scroll: r, virtual: n } = e.table, o = D(null), [s, i] = X(0), [a, l] = X(0), u = () => {
|
|
3939
|
-
o.current && (i(o.current.offsetWidth), l(o.current.offsetHeight));
|
|
3939
|
+
o.current && (console.log("触发了table的handleResize"), i(o.current.offsetWidth), l(o.current.offsetHeight));
|
|
3940
3940
|
};
|
|
3941
|
-
q(() =>
|
|
3942
|
-
|
|
3943
|
-
|
|
3944
|
-
|
|
3941
|
+
q(() => {
|
|
3942
|
+
const g = new ResizeObserver(u);
|
|
3943
|
+
return o.current && g.observe(o.current), () => {
|
|
3944
|
+
g && o.current && g.unobserve(o.current);
|
|
3945
|
+
};
|
|
3946
|
+
}, []);
|
|
3947
|
+
const d = lt(() => t ? n ? { x: s, y: a - 70, ...r } : { x: "max-content", y: a - 70, ...r } : {
|
|
3945
3948
|
x: "max-content",
|
|
3946
3949
|
...r
|
|
3947
3950
|
}, [a]);
|
|
@@ -3974,7 +3977,7 @@ function Gl(e, t) {
|
|
|
3974
3977
|
};
|
|
3975
3978
|
}
|
|
3976
3979
|
const An = () => {
|
|
3977
|
-
const { extendProps: e, extendComp: t } =
|
|
3980
|
+
const { extendProps: e, extendComp: t } = Ge(), r = (n) => {
|
|
3978
3981
|
const o = t == null ? void 0 : t.tableCellFunc;
|
|
3979
3982
|
o && Object.keys(o).forEach((s) => {
|
|
3980
3983
|
const i = o[s];
|
|
@@ -3990,7 +3993,7 @@ const An = () => {
|
|
|
3990
3993
|
}, Xl = ({ crudFormDialog: e }) => ({
|
|
3991
3994
|
crudFormDialogRef: D(null),
|
|
3992
3995
|
crudFormProps: e
|
|
3993
|
-
}), Kl = "_container__toolbar_1yx5k_13", Jl = "_container__table_1yx5k_27", Zl = "_container__pagination_1yx5k_35",
|
|
3996
|
+
}), Kl = "_container__toolbar_1yx5k_13", Jl = "_container__table_1yx5k_27", Zl = "_container__pagination_1yx5k_35", et = {
|
|
3994
3997
|
"main-container": "_main-container_1yx5k_1",
|
|
3995
3998
|
container__toolbar: Kl,
|
|
3996
3999
|
container__table: Jl,
|
|
@@ -4005,7 +4008,7 @@ const An = () => {
|
|
|
4005
4008
|
resetData: g,
|
|
4006
4009
|
resetAllData: f,
|
|
4007
4010
|
reloadData: b
|
|
4008
|
-
} = Ul(e, t), { rowSelection: p } = ql(e, i), { divRef: v, scroll:
|
|
4011
|
+
} = Ul(e, t), { rowSelection: p } = ql(e, i), { divRef: v, scroll: x } = Yl(e, r), { getTopToolbarBindProps: R } = Gl(e, i), T = () => {
|
|
4009
4012
|
const {
|
|
4010
4013
|
autoRequest: j,
|
|
4011
4014
|
api: k,
|
|
@@ -4013,7 +4016,7 @@ const An = () => {
|
|
|
4013
4016
|
autoPagination: Y,
|
|
4014
4017
|
columns: $,
|
|
4015
4018
|
scroll: C,
|
|
4016
|
-
pagination:
|
|
4019
|
+
pagination: w,
|
|
4017
4020
|
rowSelection: _,
|
|
4018
4021
|
onChange: S,
|
|
4019
4022
|
...E
|
|
@@ -4026,13 +4029,13 @@ const An = () => {
|
|
|
4026
4029
|
reloadData: b,
|
|
4027
4030
|
/** 合并一下antd中table实例的方法 */
|
|
4028
4031
|
...s.current
|
|
4029
|
-
})), console.log("render Table"), /* @__PURE__ */ h.jsxs("div", { className: r ?
|
|
4030
|
-
/* @__PURE__ */ h.jsx("div", { className:
|
|
4032
|
+
})), console.log("render Table"), /* @__PURE__ */ h.jsxs("div", { className: r ? et["main-container"] : void 0, children: [
|
|
4033
|
+
/* @__PURE__ */ h.jsx("div", { className: et.container__toolbar, children: /* @__PURE__ */ h.jsx(Zt, { ...R() }) }),
|
|
4031
4034
|
/* @__PURE__ */ h.jsx(
|
|
4032
4035
|
"div",
|
|
4033
4036
|
{
|
|
4034
4037
|
ref: v,
|
|
4035
|
-
className: r ?
|
|
4038
|
+
className: r ? et.container__table : void 0,
|
|
4036
4039
|
children: /* @__PURE__ */ h.jsx(
|
|
4037
4040
|
io,
|
|
4038
4041
|
{
|
|
@@ -4043,13 +4046,13 @@ const An = () => {
|
|
|
4043
4046
|
dataSource: i.model.dataSource,
|
|
4044
4047
|
pagination: !1,
|
|
4045
4048
|
rowSelection: p,
|
|
4046
|
-
scroll:
|
|
4049
|
+
scroll: x,
|
|
4047
4050
|
onChange: d
|
|
4048
4051
|
}
|
|
4049
4052
|
)
|
|
4050
4053
|
}
|
|
4051
4054
|
),
|
|
4052
|
-
a.show ? /* @__PURE__ */ h.jsx("div", { className:
|
|
4055
|
+
a.show ? /* @__PURE__ */ h.jsx("div", { className: et.container__pagination, children: /* @__PURE__ */ h.jsx(
|
|
4053
4056
|
ao,
|
|
4054
4057
|
{
|
|
4055
4058
|
disabled: i.model.loading,
|
|
@@ -4102,6 +4105,6 @@ export {
|
|
|
4102
4105
|
vo as getValueByPath,
|
|
4103
4106
|
fr as getValuesByPathObj,
|
|
4104
4107
|
fc as useAsyncState,
|
|
4105
|
-
|
|
4108
|
+
Ge as useXphExtendCompProps,
|
|
4106
4109
|
cu as useXphForm
|
|
4107
4110
|
};
|