xph-crud 0.0.4 → 0.0.5
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 +410 -396
- package/dist/index.umd.cjs +5 -5
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import Fe, { useCallback as Te, createContext as Vr, useContext as Yr, Fragment as In, useRef as B, useState as re, useEffect as ne, forwardRef as
|
|
2
|
-
import { Button as he, Dropdown as kn, theme as Ln, Space as qr, Form as Ze, Select as Nn, TreeSelect as Wn, Transfer as Hn, AutoComplete as Bn, Upload as Ct, message as
|
|
1
|
+
import Fe, { useCallback as Te, createContext as Vr, useContext as Yr, Fragment as In, useRef as B, useState as re, useEffect as ne, forwardRef as be, useImperativeHandle as Ee, useMemo as it, memo as zn } from "react";
|
|
2
|
+
import { Button as he, Dropdown as kn, theme as Ln, Space as qr, Form as Ze, Select as Nn, TreeSelect as Wn, Transfer as Hn, AutoComplete as Bn, Upload as Ct, message as yt, Input as At, InputNumber as Gr, Switch as Xr, Radio as Un, Checkbox as Vn, Cascader as Kr, TimePicker as Jr, DatePicker as at, Col as Zr, Row as Qr, Spin as eo, Table as to, Pagination as no } from "antd";
|
|
3
3
|
import { CaretDownOutlined as Yn, ShrinkOutlined as ro, FullscreenOutlined as oo, FullscreenExitOutlined as so, CloseOutlined as io, DownOutlined as ao, UpOutlined as co, SearchOutlined as lo, ReloadOutlined as uo } from "@ant-design/icons";
|
|
4
4
|
import fo from "react-dom";
|
|
5
5
|
const Tt = [];
|
|
@@ -32,14 +32,14 @@ function go() {
|
|
|
32
32
|
on = 1;
|
|
33
33
|
var e = Fe, t = Symbol.for("react.element"), n = Symbol.for("react.fragment"), r = Object.prototype.hasOwnProperty, o = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, s = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
34
34
|
function a(i, l, u) {
|
|
35
|
-
var f,
|
|
36
|
-
u !== void 0 && (
|
|
35
|
+
var f, h = {}, d = null, w = null;
|
|
36
|
+
u !== void 0 && (d = "" + u), l.key !== void 0 && (d = "" + l.key), l.ref !== void 0 && (w = l.ref);
|
|
37
37
|
for (f in l)
|
|
38
|
-
r.call(l, f) && !s.hasOwnProperty(f) && (
|
|
38
|
+
r.call(l, f) && !s.hasOwnProperty(f) && (h[f] = l[f]);
|
|
39
39
|
if (i && i.defaultProps)
|
|
40
40
|
for (f in l = i.defaultProps, l)
|
|
41
|
-
|
|
42
|
-
return { $$typeof: t, type: i, key:
|
|
41
|
+
h[f] === void 0 && (h[f] = l[f]);
|
|
42
|
+
return { $$typeof: t, type: i, key: d, ref: w, props: h, _owner: o.current };
|
|
43
43
|
}
|
|
44
44
|
return Ne.Fragment = n, Ne.jsx = a, Ne.jsxs = a, Ne;
|
|
45
45
|
}
|
|
@@ -56,11 +56,11 @@ var We = {};
|
|
|
56
56
|
var sn;
|
|
57
57
|
function mo() {
|
|
58
58
|
return sn || (sn = 1, process.env.NODE_ENV !== "production" && function() {
|
|
59
|
-
var e = Fe, t = Symbol.for("react.element"), n = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), o = Symbol.for("react.strict_mode"), s = Symbol.for("react.profiler"), a = Symbol.for("react.provider"), i = Symbol.for("react.context"), l = Symbol.for("react.forward_ref"), u = Symbol.for("react.suspense"), f = Symbol.for("react.suspense_list"),
|
|
59
|
+
var e = Fe, t = Symbol.for("react.element"), n = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), o = Symbol.for("react.strict_mode"), s = Symbol.for("react.profiler"), a = Symbol.for("react.provider"), i = Symbol.for("react.context"), l = Symbol.for("react.forward_ref"), u = Symbol.for("react.suspense"), f = Symbol.for("react.suspense_list"), h = Symbol.for("react.memo"), d = Symbol.for("react.lazy"), w = Symbol.for("react.offscreen"), p = Symbol.iterator, _ = "@@iterator";
|
|
60
60
|
function $(c) {
|
|
61
61
|
if (c === null || typeof c != "object")
|
|
62
62
|
return null;
|
|
63
|
-
var m =
|
|
63
|
+
var m = p && c[p] || c[_];
|
|
64
64
|
return typeof m == "function" ? m : null;
|
|
65
65
|
}
|
|
66
66
|
var M = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
@@ -81,10 +81,10 @@ function mo() {
|
|
|
81
81
|
K.unshift("Warning: " + m), Function.prototype.apply.call(console[c], console, K);
|
|
82
82
|
}
|
|
83
83
|
}
|
|
84
|
-
var G = !1, Y = !1, J = !1, k = !1,
|
|
84
|
+
var G = !1, Y = !1, J = !1, k = !1, y = !1, j;
|
|
85
85
|
j = Symbol.for("react.module.reference");
|
|
86
86
|
function P(c) {
|
|
87
|
-
return !!(typeof c == "string" || typeof c == "function" || c === r || c === s ||
|
|
87
|
+
return !!(typeof c == "string" || typeof c == "function" || c === r || c === s || y || c === o || c === u || c === f || k || c === w || G || Y || J || typeof c == "object" && c !== null && (c.$$typeof === d || c.$$typeof === h || c.$$typeof === a || c.$$typeof === i || c.$$typeof === l || // This needs to include all possible module reference object
|
|
88
88
|
// types supported by any Flight configuration anywhere since
|
|
89
89
|
// we don't know which Flight build this will end up being used
|
|
90
90
|
// with.
|
|
@@ -131,10 +131,10 @@ function mo() {
|
|
|
131
131
|
return I(S._context) + ".Provider";
|
|
132
132
|
case l:
|
|
133
133
|
return T(c, c.render, "ForwardRef");
|
|
134
|
-
case
|
|
134
|
+
case h:
|
|
135
135
|
var z = c.displayName || null;
|
|
136
136
|
return z !== null ? z : L(c.type) || "Memo";
|
|
137
|
-
case
|
|
137
|
+
case d: {
|
|
138
138
|
var q = c, K = q._payload, V = q._init;
|
|
139
139
|
try {
|
|
140
140
|
return L(V(K));
|
|
@@ -145,14 +145,14 @@ function mo() {
|
|
|
145
145
|
}
|
|
146
146
|
return null;
|
|
147
147
|
}
|
|
148
|
-
var C = Object.assign, v = 0,
|
|
148
|
+
var C = Object.assign, v = 0, b, D, x, E, F, R, A;
|
|
149
149
|
function N() {
|
|
150
150
|
}
|
|
151
151
|
N.__reactDisabledLog = !0;
|
|
152
152
|
function W() {
|
|
153
153
|
{
|
|
154
154
|
if (v === 0) {
|
|
155
|
-
|
|
155
|
+
b = console.log, D = console.info, x = console.warn, E = console.error, F = console.group, R = console.groupCollapsed, A = console.groupEnd;
|
|
156
156
|
var c = {
|
|
157
157
|
configurable: !0,
|
|
158
158
|
enumerable: !0,
|
|
@@ -182,7 +182,7 @@ function mo() {
|
|
|
182
182
|
};
|
|
183
183
|
Object.defineProperties(console, {
|
|
184
184
|
log: C({}, c, {
|
|
185
|
-
value:
|
|
185
|
+
value: b
|
|
186
186
|
}),
|
|
187
187
|
info: C({}, c, {
|
|
188
188
|
value: D
|
|
@@ -226,7 +226,7 @@ function mo() {
|
|
|
226
226
|
var de = typeof WeakMap == "function" ? WeakMap : Map;
|
|
227
227
|
Q = new de();
|
|
228
228
|
}
|
|
229
|
-
function
|
|
229
|
+
function ye(c, m) {
|
|
230
230
|
if (!c || le)
|
|
231
231
|
return "";
|
|
232
232
|
{
|
|
@@ -298,7 +298,7 @@ function mo() {
|
|
|
298
298
|
return typeof c == "function" && Q.set(c, nn), nn;
|
|
299
299
|
}
|
|
300
300
|
function De(c, m, S) {
|
|
301
|
-
return
|
|
301
|
+
return ye(c, !1);
|
|
302
302
|
}
|
|
303
303
|
function Tr(c) {
|
|
304
304
|
var m = c.prototype;
|
|
@@ -308,7 +308,7 @@ function mo() {
|
|
|
308
308
|
if (c == null)
|
|
309
309
|
return "";
|
|
310
310
|
if (typeof c == "function")
|
|
311
|
-
return
|
|
311
|
+
return ye(c, Tr(c));
|
|
312
312
|
if (typeof c == "string")
|
|
313
313
|
return fe(c);
|
|
314
314
|
switch (c) {
|
|
@@ -321,9 +321,9 @@ function mo() {
|
|
|
321
321
|
switch (c.$$typeof) {
|
|
322
322
|
case l:
|
|
323
323
|
return De(c.render);
|
|
324
|
-
case
|
|
324
|
+
case h:
|
|
325
325
|
return qe(c.type, m, S);
|
|
326
|
-
case
|
|
326
|
+
case d: {
|
|
327
327
|
var z = c, q = z._payload, K = z._init;
|
|
328
328
|
try {
|
|
329
329
|
return qe(K(q), m, S);
|
|
@@ -565,7 +565,7 @@ Check the top-level render call using <` + S + ">.");
|
|
|
565
565
|
S = m.propTypes;
|
|
566
566
|
else if (typeof m == "object" && (m.$$typeof === l || // Note: Memo only checks outer props here.
|
|
567
567
|
// Inner props are checked in the reconciler.
|
|
568
|
-
m.$$typeof ===
|
|
568
|
+
m.$$typeof === h))
|
|
569
569
|
S = m.propTypes;
|
|
570
570
|
else
|
|
571
571
|
return;
|
|
@@ -633,15 +633,15 @@ Check the top-level render call using <` + S + ">.");
|
|
|
633
633
|
}()), We;
|
|
634
634
|
}
|
|
635
635
|
process.env.NODE_ENV === "production" ? St.exports = go() : St.exports = mo();
|
|
636
|
-
var g = St.exports, qn = typeof global == "object" && global && global.Object === Object && global, vo = typeof self == "object" && self && self.Object === Object && self, _e = qn || vo || Function("return this")(), Re = _e.Symbol, Gn = Object.prototype,
|
|
636
|
+
var g = St.exports, qn = typeof global == "object" && global && global.Object === Object && global, vo = typeof self == "object" && self && self.Object === Object && self, _e = qn || vo || Function("return this")(), Re = _e.Symbol, Gn = Object.prototype, yo = Gn.hasOwnProperty, bo = Gn.toString, He = Re ? Re.toStringTag : void 0;
|
|
637
637
|
function _o(e) {
|
|
638
|
-
var t =
|
|
638
|
+
var t = yo.call(e, He), n = e[He];
|
|
639
639
|
try {
|
|
640
640
|
e[He] = void 0;
|
|
641
641
|
var r = !0;
|
|
642
642
|
} catch {
|
|
643
643
|
}
|
|
644
|
-
var o =
|
|
644
|
+
var o = bo.call(e);
|
|
645
645
|
return r && (t ? e[He] = n : delete e[He]), o;
|
|
646
646
|
}
|
|
647
647
|
var wo = Object.prototype, xo = wo.toString;
|
|
@@ -689,8 +689,8 @@ function se(e) {
|
|
|
689
689
|
var t = we(e);
|
|
690
690
|
return t == Ro || t == Oo || t == jo || t == Fo;
|
|
691
691
|
}
|
|
692
|
-
var
|
|
693
|
-
var e = /[^.]+$/.exec(
|
|
692
|
+
var bt = _e["__core-js_shared__"], un = function() {
|
|
693
|
+
var e = /[^.]+$/.exec(bt && bt.keys && bt.keys.IE_PROTO || "");
|
|
694
694
|
return e ? "Symbol(src)_1." + e : "";
|
|
695
695
|
}();
|
|
696
696
|
function Eo(e) {
|
|
@@ -878,9 +878,9 @@ var Qn = Object.prototype, hs = Qn.hasOwnProperty, gs = Qn.propertyIsEnumerable,
|
|
|
878
878
|
function ms() {
|
|
879
879
|
return !1;
|
|
880
880
|
}
|
|
881
|
-
var er = typeof exports == "object" && exports && !exports.nodeType && exports, hn = er && typeof module == "object" && module && !module.nodeType && module, vs = hn && hn.exports === er, gn = vs ? _e.Buffer : void 0,
|
|
881
|
+
var er = typeof exports == "object" && exports && !exports.nodeType && exports, hn = er && typeof module == "object" && module && !module.nodeType && module, vs = hn && hn.exports === er, gn = vs ? _e.Buffer : void 0, ys = gn ? gn.isBuffer : void 0, et = ys || ms, bs = "[object Arguments]", _s = "[object Array]", ws = "[object Boolean]", xs = "[object Date]", Cs = "[object Error]", Ts = "[object Function]", Ss = "[object Map]", Ps = "[object Number]", $s = "[object Object]", Ds = "[object RegExp]", js = "[object Set]", Rs = "[object String]", Os = "[object WeakMap]", Fs = "[object ArrayBuffer]", Es = "[object DataView]", As = "[object Float32Array]", Ms = "[object Float64Array]", Is = "[object Int8Array]", zs = "[object Int16Array]", ks = "[object Int32Array]", Ls = "[object Uint8Array]", Ns = "[object Uint8ClampedArray]", Ws = "[object Uint16Array]", Hs = "[object Uint32Array]", Z = {};
|
|
882
882
|
Z[As] = Z[Ms] = Z[Is] = Z[zs] = Z[ks] = Z[Ls] = Z[Ns] = Z[Ws] = Z[Hs] = !0;
|
|
883
|
-
Z[
|
|
883
|
+
Z[bs] = Z[_s] = Z[Fs] = Z[ws] = Z[Es] = Z[xs] = Z[Cs] = Z[Ts] = Z[Ss] = Z[Ps] = Z[$s] = Z[Ds] = Z[js] = Z[Rs] = Z[Os] = !1;
|
|
884
884
|
function Bs(e) {
|
|
885
885
|
return ve(e) && Zn(e.length) && !!Z[we(e)];
|
|
886
886
|
}
|
|
@@ -997,13 +997,13 @@ function lt(e, t) {
|
|
|
997
997
|
return n;
|
|
998
998
|
return -1;
|
|
999
999
|
}
|
|
1000
|
-
var
|
|
1000
|
+
var yi = Array.prototype, bi = yi.splice;
|
|
1001
1001
|
function _i(e) {
|
|
1002
1002
|
var t = this.__data__, n = lt(t, e);
|
|
1003
1003
|
if (n < 0)
|
|
1004
1004
|
return !1;
|
|
1005
1005
|
var r = t.length - 1;
|
|
1006
|
-
return n == r ? t.pop() :
|
|
1006
|
+
return n == r ? t.pop() : bi.call(t, n, 1), --this.size, !0;
|
|
1007
1007
|
}
|
|
1008
1008
|
function wi(e) {
|
|
1009
1009
|
var t = this.__data__, n = lt(t, e);
|
|
@@ -1158,8 +1158,8 @@ Se.prototype.delete = Gi;
|
|
|
1158
1158
|
Se.prototype.get = Xi;
|
|
1159
1159
|
Se.prototype.has = Ki;
|
|
1160
1160
|
Se.prototype.set = Zi;
|
|
1161
|
-
var ar = typeof exports == "object" && exports && !exports.nodeType && exports,
|
|
1162
|
-
|
|
1161
|
+
var ar = typeof exports == "object" && exports && !exports.nodeType && exports, yn = ar && typeof module == "object" && module && !module.nodeType && module, Qi = yn && yn.exports === ar, bn = Qi ? _e.Buffer : void 0;
|
|
1162
|
+
bn && bn.allocUnsafe;
|
|
1163
1163
|
function ea(e, t) {
|
|
1164
1164
|
return e.slice();
|
|
1165
1165
|
}
|
|
@@ -1219,7 +1219,7 @@ var ma = "__lodash_hash_undefined__";
|
|
|
1219
1219
|
function va(e) {
|
|
1220
1220
|
return this.__data__.set(e, ma), this;
|
|
1221
1221
|
}
|
|
1222
|
-
function
|
|
1222
|
+
function ya(e) {
|
|
1223
1223
|
return this.__data__.has(e);
|
|
1224
1224
|
}
|
|
1225
1225
|
function nt(e) {
|
|
@@ -1228,8 +1228,8 @@ function nt(e) {
|
|
|
1228
1228
|
this.add(e[t]);
|
|
1229
1229
|
}
|
|
1230
1230
|
nt.prototype.add = nt.prototype.push = va;
|
|
1231
|
-
nt.prototype.has =
|
|
1232
|
-
function
|
|
1231
|
+
nt.prototype.has = ya;
|
|
1232
|
+
function ba(e, t) {
|
|
1233
1233
|
for (var n = -1, r = e == null ? 0 : e.length; ++n < r; )
|
|
1234
1234
|
if (t(e[n], n, e))
|
|
1235
1235
|
return !0;
|
|
@@ -1246,31 +1246,31 @@ function cr(e, t, n, r, o, s) {
|
|
|
1246
1246
|
var u = s.get(e), f = s.get(t);
|
|
1247
1247
|
if (u && f)
|
|
1248
1248
|
return u == t && f == e;
|
|
1249
|
-
var
|
|
1250
|
-
for (s.set(e, t), s.set(t, e); ++
|
|
1251
|
-
var
|
|
1249
|
+
var h = -1, d = !0, w = n & xa ? new nt() : void 0;
|
|
1250
|
+
for (s.set(e, t), s.set(t, e); ++h < i; ) {
|
|
1251
|
+
var p = e[h], _ = t[h];
|
|
1252
1252
|
if (r)
|
|
1253
|
-
var $ = a ? r(_,
|
|
1253
|
+
var $ = a ? r(_, p, h, t, e, s) : r(p, _, h, e, t, s);
|
|
1254
1254
|
if ($ !== void 0) {
|
|
1255
1255
|
if ($)
|
|
1256
1256
|
continue;
|
|
1257
|
-
|
|
1257
|
+
d = !1;
|
|
1258
1258
|
break;
|
|
1259
1259
|
}
|
|
1260
1260
|
if (w) {
|
|
1261
|
-
if (!
|
|
1262
|
-
if (!_a(w, O) && (
|
|
1261
|
+
if (!ba(t, function(M, O) {
|
|
1262
|
+
if (!_a(w, O) && (p === M || o(p, M, n, r, s)))
|
|
1263
1263
|
return w.push(O);
|
|
1264
1264
|
})) {
|
|
1265
|
-
|
|
1265
|
+
d = !1;
|
|
1266
1266
|
break;
|
|
1267
1267
|
}
|
|
1268
|
-
} else if (!(
|
|
1269
|
-
|
|
1268
|
+
} else if (!(p === _ || o(p, _, n, r, s))) {
|
|
1269
|
+
d = !1;
|
|
1270
1270
|
break;
|
|
1271
1271
|
}
|
|
1272
1272
|
}
|
|
1273
|
-
return s.delete(e), s.delete(t),
|
|
1273
|
+
return s.delete(e), s.delete(t), d;
|
|
1274
1274
|
}
|
|
1275
1275
|
function Ca(e) {
|
|
1276
1276
|
var t = -1, n = Array(e.size);
|
|
@@ -1325,26 +1325,26 @@ function Ha(e, t, n, r, o, s) {
|
|
|
1325
1325
|
var a = n & La, i = wn(e), l = i.length, u = wn(t), f = u.length;
|
|
1326
1326
|
if (l != f && !a)
|
|
1327
1327
|
return !1;
|
|
1328
|
-
for (var
|
|
1329
|
-
var
|
|
1330
|
-
if (!(a ?
|
|
1328
|
+
for (var h = l; h--; ) {
|
|
1329
|
+
var d = i[h];
|
|
1330
|
+
if (!(a ? d in t : Wa.call(t, d)))
|
|
1331
1331
|
return !1;
|
|
1332
1332
|
}
|
|
1333
|
-
var w = s.get(e),
|
|
1334
|
-
if (w &&
|
|
1335
|
-
return w == t &&
|
|
1333
|
+
var w = s.get(e), p = s.get(t);
|
|
1334
|
+
if (w && p)
|
|
1335
|
+
return w == t && p == e;
|
|
1336
1336
|
var _ = !0;
|
|
1337
1337
|
s.set(e, t), s.set(t, e);
|
|
1338
|
-
for (var $ = a; ++
|
|
1339
|
-
|
|
1340
|
-
var M = e[
|
|
1338
|
+
for (var $ = a; ++h < l; ) {
|
|
1339
|
+
d = i[h];
|
|
1340
|
+
var M = e[d], O = t[d];
|
|
1341
1341
|
if (r)
|
|
1342
|
-
var U = a ? r(O, M,
|
|
1342
|
+
var U = a ? r(O, M, d, t, e, s) : r(M, O, d, e, t, s);
|
|
1343
1343
|
if (!(U === void 0 ? M === O || o(M, O, n, r, s) : U)) {
|
|
1344
1344
|
_ = !1;
|
|
1345
1345
|
break;
|
|
1346
1346
|
}
|
|
1347
|
-
$ || ($ =
|
|
1347
|
+
$ || ($ = d == "constructor");
|
|
1348
1348
|
}
|
|
1349
1349
|
if (_ && !$) {
|
|
1350
1350
|
var G = e.constructor, Y = t.constructor;
|
|
@@ -1356,22 +1356,22 @@ var Ba = 1, Dn = "[object Arguments]", jn = "[object Array]", Ke = "[object Obje
|
|
|
1356
1356
|
function Va(e, t, n, r, o, s) {
|
|
1357
1357
|
var a = ue(e), i = ue(t), l = a ? jn : je(e), u = i ? jn : je(t);
|
|
1358
1358
|
l = l == Dn ? Ke : l, u = u == Dn ? Ke : u;
|
|
1359
|
-
var f = l == Ke,
|
|
1360
|
-
if (
|
|
1359
|
+
var f = l == Ke, h = u == Ke, d = l == u;
|
|
1360
|
+
if (d && et(e)) {
|
|
1361
1361
|
if (!et(t))
|
|
1362
1362
|
return !1;
|
|
1363
1363
|
a = !0, f = !1;
|
|
1364
1364
|
}
|
|
1365
|
-
if (
|
|
1365
|
+
if (d && !f)
|
|
1366
1366
|
return s || (s = new Se()), a || Lt(e) ? cr(e, t, n, r, o, s) : ka(e, t, l, n, r, o, s);
|
|
1367
1367
|
if (!(n & Ba)) {
|
|
1368
|
-
var w = f && Rn.call(e, "__wrapped__"),
|
|
1369
|
-
if (w ||
|
|
1370
|
-
var _ = w ? e.value() : e, $ =
|
|
1368
|
+
var w = f && Rn.call(e, "__wrapped__"), p = h && Rn.call(t, "__wrapped__");
|
|
1369
|
+
if (w || p) {
|
|
1370
|
+
var _ = w ? e.value() : e, $ = p ? t.value() : t;
|
|
1371
1371
|
return s || (s = new Se()), o(_, $, n, r, s);
|
|
1372
1372
|
}
|
|
1373
1373
|
}
|
|
1374
|
-
return
|
|
1374
|
+
return d ? (s || (s = new Se()), Ha(e, t, n, r, o, s)) : !1;
|
|
1375
1375
|
}
|
|
1376
1376
|
function lr(e, t, n, r, o) {
|
|
1377
1377
|
return e === t ? !0 : e == null || t == null || !ve(e) && !ve(t) ? e !== e && t !== t : Va(e, t, n, r, lr, o);
|
|
@@ -1406,12 +1406,12 @@ function Ka(e, t, n, r, o, s, a) {
|
|
|
1406
1406
|
Ot(e, n, u);
|
|
1407
1407
|
return;
|
|
1408
1408
|
}
|
|
1409
|
-
var f = s ? s(i, l, n + "", e, t, a) : void 0,
|
|
1410
|
-
if (
|
|
1411
|
-
var
|
|
1412
|
-
f = l,
|
|
1409
|
+
var f = s ? s(i, l, n + "", e, t, a) : void 0, h = f === void 0;
|
|
1410
|
+
if (h) {
|
|
1411
|
+
var d = ue(l), w = !d && et(l), p = !d && !w && Lt(l);
|
|
1412
|
+
f = l, d || w || p ? ue(i) ? f = i : Ga(i) ? f = qo(i) : w ? (h = !1, f = ea(l)) : p ? (h = !1, f = ha(l)) : f = [] : Yi(l) || $t(l) ? (f = i, $t(i) ? f = Xa(i) : (!ge(i) || se(i)) && (f = ga(l))) : h = !1;
|
|
1413
1413
|
}
|
|
1414
|
-
|
|
1414
|
+
h && (a.set(l, f), o(f, l, r, s, a), a.delete(l)), Ot(e, n, f);
|
|
1415
1415
|
}
|
|
1416
1416
|
function ur(e, t, n, r, o) {
|
|
1417
1417
|
e !== t && qa(t, function(s, a) {
|
|
@@ -1662,15 +1662,15 @@ const fc = (e) => {
|
|
|
1662
1662
|
}
|
|
1663
1663
|
};
|
|
1664
1664
|
}, hc = (e, t, n, r) => {
|
|
1665
|
-
const { width: o, height: s } = t, { width: a, height: i } = n, l = a || o, u = i || s, { clientWidth: f, clientHeight:
|
|
1665
|
+
const { width: o, height: s } = t, { width: a, height: i } = n, l = a || o, u = i || s, { clientWidth: f, clientHeight: h } = e, d = l ? l > f ? f : l : 0, w = u ? u > h ? h : u : "unset", p = B(d), _ = B(w), [$, M] = re(p.current), [O, U] = re(
|
|
1666
1666
|
_.current
|
|
1667
1667
|
);
|
|
1668
1668
|
return {
|
|
1669
1669
|
dialogWidth: $,
|
|
1670
1670
|
dialogHeight: O,
|
|
1671
|
-
initWidth:
|
|
1671
|
+
initWidth: p,
|
|
1672
1672
|
initHeight: _,
|
|
1673
|
-
curPropsWidth:
|
|
1673
|
+
curPropsWidth: d,
|
|
1674
1674
|
curPropsHeight: w,
|
|
1675
1675
|
setDialogSize: ({
|
|
1676
1676
|
width: Y,
|
|
@@ -1688,10 +1688,10 @@ const fc = (e) => {
|
|
|
1688
1688
|
dialogLeft: a,
|
|
1689
1689
|
dialogTop: l,
|
|
1690
1690
|
setDialogPosition: ({
|
|
1691
|
-
left:
|
|
1692
|
-
top:
|
|
1691
|
+
left: h,
|
|
1692
|
+
top: d
|
|
1693
1693
|
}) => {
|
|
1694
|
-
t({ left: a, top: l }),
|
|
1694
|
+
t({ left: a, top: l }), h !== void 0 && i(h), d !== void 0 && u(d);
|
|
1695
1695
|
}
|
|
1696
1696
|
};
|
|
1697
1697
|
}, Fn = ({
|
|
@@ -1701,16 +1701,16 @@ const fc = (e) => {
|
|
|
1701
1701
|
setDialogPosition: r
|
|
1702
1702
|
}) => {
|
|
1703
1703
|
const o = B(0), s = B(0), a = (f) => {
|
|
1704
|
-
const
|
|
1705
|
-
return { translateX:
|
|
1704
|
+
const h = f.getBoundingClientRect(), d = h.width, w = h.height, p = -0.5 * d, _ = -0.5 * w;
|
|
1705
|
+
return { translateX: p, translateY: _ };
|
|
1706
1706
|
}, i = Te((f) => {
|
|
1707
|
-
const { offsetLeft:
|
|
1708
|
-
o.current = f.clientX -
|
|
1707
|
+
const { offsetLeft: h, offsetTop: d } = n.current;
|
|
1708
|
+
o.current = f.clientX - h, s.current = f.clientY - d, document.addEventListener("mousemove", l), document.addEventListener("mouseup", u);
|
|
1709
1709
|
}, []), l = Te((f) => {
|
|
1710
|
-
const
|
|
1711
|
-
let
|
|
1712
|
-
const $ = -
|
|
1713
|
-
|
|
1710
|
+
const h = n.current, { translateX: d, translateY: w } = a(h);
|
|
1711
|
+
let p = f.clientX - o.current, _ = f.clientY - s.current;
|
|
1712
|
+
const $ = -d, M = -w, O = e.scrollWidth - h.offsetWidth - d, U = e.scrollHeight - h.offsetHeight - w;
|
|
1713
|
+
p < $ && (p = $), p > O && (p = O), _ < M && (_ = M), _ > U && (_ = U), r({ left: p, top: _ });
|
|
1714
1714
|
}, []), u = Te(() => {
|
|
1715
1715
|
document.removeEventListener("mousemove", l), document.removeEventListener("mouseup", u);
|
|
1716
1716
|
}, []);
|
|
@@ -1736,13 +1736,13 @@ const fc = (e) => {
|
|
|
1736
1736
|
},
|
|
1737
1737
|
onMaximize: (w) => {
|
|
1738
1738
|
if (w === "minimize" && a(!1), w === "maximize") {
|
|
1739
|
-
const { scrollWidth:
|
|
1739
|
+
const { scrollWidth: p, scrollHeight: _ } = e, $ = Math.floor(p), M = Math.floor(_), O = Math.floor(p / 2), U = Math.floor(_ / 2);
|
|
1740
1740
|
r({ width: $, height: M }), o({ top: U, left: O }), l(!0);
|
|
1741
1741
|
}
|
|
1742
1742
|
},
|
|
1743
1743
|
onRecovery: () => {
|
|
1744
|
-
const { top: w, left:
|
|
1745
|
-
r({ width: _, height: $ }), o({ top: w, left:
|
|
1744
|
+
const { top: w, left: p, width: _, height: $ } = t.current;
|
|
1745
|
+
r({ width: _, height: $ }), o({ top: w, left: p }), l(!1);
|
|
1746
1746
|
},
|
|
1747
1747
|
onClose: () => {
|
|
1748
1748
|
a(!1), l(!1), n();
|
|
@@ -1762,16 +1762,16 @@ const fc = (e) => {
|
|
|
1762
1762
|
return ne(() => {
|
|
1763
1763
|
var l, u, f;
|
|
1764
1764
|
if (e) {
|
|
1765
|
-
const { clientHeight: w } = t,
|
|
1766
|
-
let M = ((f = r.current) == null ? void 0 : f.getBoundingClientRect().height) -
|
|
1767
|
-
const O = w -
|
|
1765
|
+
const { clientHeight: w } = t, p = (l = o.current) == null ? void 0 : l.offsetHeight, _ = (u = s.current) == null ? void 0 : u.offsetHeight;
|
|
1766
|
+
let M = ((f = r.current) == null ? void 0 : f.getBoundingClientRect().height) - p - _ - 0;
|
|
1767
|
+
const O = w - p - _ - 0;
|
|
1768
1768
|
M > O && (M = O), i(M);
|
|
1769
1769
|
}
|
|
1770
1770
|
}, [e, n]), {
|
|
1771
1771
|
contentMaxHeight: a,
|
|
1772
1772
|
setContentMaxHeight: i
|
|
1773
1773
|
};
|
|
1774
|
-
},
|
|
1774
|
+
}, yc = () => {
|
|
1775
1775
|
const [e, t] = re(160), [n, r] = re(60), o = B(null);
|
|
1776
1776
|
return {
|
|
1777
1777
|
minimizeTop: n,
|
|
@@ -1784,7 +1784,7 @@ const fc = (e) => {
|
|
|
1784
1784
|
a !== void 0 && t(a), i !== void 0 && r(i);
|
|
1785
1785
|
}
|
|
1786
1786
|
};
|
|
1787
|
-
},
|
|
1787
|
+
}, bc = ({
|
|
1788
1788
|
visible: e,
|
|
1789
1789
|
dialogRef: t,
|
|
1790
1790
|
minimizeRef: n,
|
|
@@ -1810,13 +1810,13 @@ const fc = (e) => {
|
|
|
1810
1810
|
l.nextSibling
|
|
1811
1811
|
), l.parentNode.insertBefore(i, u), l.parentNode.removeChild(u);
|
|
1812
1812
|
}, a = (i) => {
|
|
1813
|
-
var f,
|
|
1813
|
+
var f, h;
|
|
1814
1814
|
const l = r.querySelectorAll(
|
|
1815
1815
|
`.${o.xphDialog}`
|
|
1816
1816
|
), u = l[l.length - 1];
|
|
1817
|
-
if (((f = t.current) == null ? void 0 : f.parentNode) !== u && (s((
|
|
1818
|
-
const
|
|
1819
|
-
|
|
1817
|
+
if (((f = t.current) == null ? void 0 : f.parentNode) !== u && (s((h = t.current) == null ? void 0 : h.parentNode, u), i)) {
|
|
1818
|
+
const d = i.target;
|
|
1819
|
+
d.tagName === "INPUT" && d.focus && d.focus();
|
|
1820
1820
|
}
|
|
1821
1821
|
};
|
|
1822
1822
|
return ne(() => {
|
|
@@ -1843,15 +1843,29 @@ const fc = (e) => {
|
|
|
1843
1843
|
else {
|
|
1844
1844
|
const i = Array.from(
|
|
1845
1845
|
r.querySelectorAll(`.${o.xphDialog}`)
|
|
1846
|
-
),
|
|
1847
|
-
(
|
|
1848
|
-
).filter((
|
|
1849
|
-
(
|
|
1850
|
-
)
|
|
1851
|
-
|
|
1852
|
-
|
|
1853
|
-
|
|
1846
|
+
), l = i.map(
|
|
1847
|
+
(d) => d.querySelector(`.${o.xphDialogWrapper}`)
|
|
1848
|
+
).filter((d) => d !== null), u = i.map(
|
|
1849
|
+
(d) => d.querySelector(`.${o.xphMinimizeDialog}`)
|
|
1850
|
+
).filter((d) => d !== null), f = l.filter(
|
|
1851
|
+
(d) => d.style.display === "flex"
|
|
1852
|
+
), h = u.filter(
|
|
1853
|
+
(d) => d.style.display === "flex"
|
|
1854
1854
|
);
|
|
1855
|
+
if (f.length) {
|
|
1856
|
+
s(
|
|
1857
|
+
f[f.length - 1].parentNode,
|
|
1858
|
+
i[i.length - 1]
|
|
1859
|
+
);
|
|
1860
|
+
return;
|
|
1861
|
+
}
|
|
1862
|
+
if (h.length) {
|
|
1863
|
+
s(
|
|
1864
|
+
h[h.length - 1].parentNode,
|
|
1865
|
+
i[i.length - 1]
|
|
1866
|
+
);
|
|
1867
|
+
return;
|
|
1868
|
+
}
|
|
1855
1869
|
}
|
|
1856
1870
|
}, [e]), { dialogTopShowClassConfig: o };
|
|
1857
1871
|
}, _c = ({
|
|
@@ -1864,13 +1878,13 @@ const fc = (e) => {
|
|
|
1864
1878
|
setDialogSize: a,
|
|
1865
1879
|
setDialogPosition: i
|
|
1866
1880
|
}) => {
|
|
1867
|
-
const { clientWidth: l, clientHeight: u } = t, f = Math.floor(l / 2),
|
|
1881
|
+
const { clientWidth: l, clientHeight: u } = t, f = Math.floor(l / 2), h = Math.floor(u / 2);
|
|
1868
1882
|
ne(() => {
|
|
1869
1883
|
o !== n.current && (console.log("重新设置了宽度"), a({ width: o })), s !== r.current && (console.log("重新设置了高度"), a({ height: s }));
|
|
1870
1884
|
}, [o, s]), ne(() => {
|
|
1871
|
-
o !== n.current && (console.log("重新设置了左边位置"), i({ left: f })), s !== r.current && (console.log("重新设置了上边位置"), i({ top:
|
|
1885
|
+
o !== n.current && (console.log("重新设置了左边位置"), i({ left: f })), s !== r.current && (console.log("重新设置了上边位置"), i({ top: h }));
|
|
1872
1886
|
}, [o, s]), ne(() => {
|
|
1873
|
-
e || (a({ width: n.current, height: r.current }), i({ left: f, top:
|
|
1887
|
+
e || (a({ width: n.current, height: r.current }), i({ left: f, top: h }));
|
|
1874
1888
|
}, [e]);
|
|
1875
1889
|
}, wc = () => {
|
|
1876
1890
|
const e = B({
|
|
@@ -1921,52 +1935,52 @@ const fc = (e) => {
|
|
|
1921
1935
|
), []), a = B(null);
|
|
1922
1936
|
ne(() => {
|
|
1923
1937
|
if (e) {
|
|
1924
|
-
const
|
|
1938
|
+
const y = n.current.offsetWidth, j = n.current.offsetHeight;
|
|
1925
1939
|
a.current = {
|
|
1926
|
-
width:
|
|
1940
|
+
width: y,
|
|
1927
1941
|
height: j
|
|
1928
1942
|
};
|
|
1929
1943
|
} else
|
|
1930
1944
|
a.current = null;
|
|
1931
1945
|
}, [e]);
|
|
1932
|
-
const i = B(null), l = B(), u = B(!1), [f,
|
|
1933
|
-
u.current = !0,
|
|
1934
|
-
const { clientX: P, clientY: T } =
|
|
1935
|
-
|
|
1946
|
+
const i = B(null), l = B(), u = B(!1), [f, h] = re(!1), d = B(0), w = B(0), p = (y, j) => {
|
|
1947
|
+
u.current = !0, h(!0), l.current = j;
|
|
1948
|
+
const { clientX: P, clientY: T } = y;
|
|
1949
|
+
d.current = P, w.current = T;
|
|
1936
1950
|
const I = parseFloat(n.current.style.left), L = parseFloat(n.current.style.top), C = n.current.offsetWidth, v = n.current.offsetHeight;
|
|
1937
1951
|
i.current.style.display = "block", i.current.style.left = `${I - 0.5 * C}px`, i.current.style.top = `${L - 0.5 * v}px`, i.current.style.width = `${C}px`, i.current.style.height = `${v}px`;
|
|
1938
|
-
}, _ = (
|
|
1952
|
+
}, _ = (y) => {
|
|
1939
1953
|
if (u.current) {
|
|
1940
|
-
const { clientX: j, clientY: P } =
|
|
1941
|
-
let R = v, A =
|
|
1954
|
+
const { clientX: j, clientY: P } = y, T = j - d.current, I = P - w.current, L = parseFloat(i.current.style.left), C = parseFloat(i.current.style.top), v = i.current.offsetWidth, b = i.current.offsetHeight, D = a.current.width, x = a.current.height, E = t.scrollWidth, F = t.scrollHeight;
|
|
1955
|
+
let R = v, A = b, N = L, W = C;
|
|
1942
1956
|
switch (l.current) {
|
|
1943
1957
|
case "lt": {
|
|
1944
|
-
R = R - T, A = A - I, W = W + I, N = N + T, R < D && (R = v, N = L), A < x && (A =
|
|
1958
|
+
R = R - T, A = A - I, W = W + I, N = N + T, R < D && (R = v, N = L), A < x && (A = b, W = C), N < 0 && (N = 0, R = v), W < 0 && (W = 0, A = b);
|
|
1945
1959
|
break;
|
|
1946
1960
|
}
|
|
1947
1961
|
case "rt": {
|
|
1948
|
-
R = R + T, A = A - I, W = W + I, N = L, R < D && (R = v), A < x && (A =
|
|
1962
|
+
R = R + T, A = A - I, W = W + I, N = L, R < D && (R = v), A < x && (A = b, W = C), R > E - N && (R = E - N), W < 0 && (W = 0, A = b);
|
|
1949
1963
|
break;
|
|
1950
1964
|
}
|
|
1951
1965
|
case "rb": {
|
|
1952
|
-
R = R + T, A = A + I, W = C, N = L, R < D && (R = v), A < x && (A =
|
|
1966
|
+
R = R + T, A = A + I, W = C, N = L, R < D && (R = v), A < x && (A = b), R > E - N && (R = E - N), A > F - W && (A = F - W);
|
|
1953
1967
|
break;
|
|
1954
1968
|
}
|
|
1955
1969
|
case "lb": {
|
|
1956
|
-
R = R - T, A = A + I, W = C, N = N + T, R < D && (R = v, N = L), A < x && (A =
|
|
1970
|
+
R = R - T, A = A + I, W = C, N = N + T, R < D && (R = v, N = L), A < x && (A = b), N < 0 && (N = 0, R = v), A > F - W && (A = F - W);
|
|
1957
1971
|
break;
|
|
1958
1972
|
}
|
|
1959
1973
|
}
|
|
1960
|
-
i.current.style.left = `${N}px`, i.current.style.top = `${W}px`, i.current.style.width = `${R}px`, i.current.style.height = `${A}px`,
|
|
1974
|
+
i.current.style.left = `${N}px`, i.current.style.top = `${W}px`, i.current.style.width = `${R}px`, i.current.style.height = `${A}px`, d.current = j, w.current = P;
|
|
1961
1975
|
}
|
|
1962
1976
|
}, $ = () => {
|
|
1963
1977
|
if (u.current) {
|
|
1964
|
-
u.current = !1,
|
|
1965
|
-
const { left:
|
|
1978
|
+
u.current = !1, h(!1), i.current.style.display = "none";
|
|
1979
|
+
const { left: y, top: j, width: P, height: T } = i.current.style, I = parseFloat(y) + 0.5 * parseFloat(P), L = parseFloat(j) + 0.5 * parseFloat(T), C = parseFloat(P), v = parseFloat(T);
|
|
1966
1980
|
console.log(I, L, C, v), o({ left: I, top: L }), r({ width: C, height: v });
|
|
1967
1981
|
}
|
|
1968
|
-
}, M = (
|
|
1969
|
-
_(
|
|
1982
|
+
}, M = (y) => p(y, "lt"), O = (y) => p(y, "rt"), U = (y) => p(y, "rb"), G = (y) => p(y, "lb"), Y = Te((y) => {
|
|
1983
|
+
_(y);
|
|
1970
1984
|
}, []), J = Te(() => {
|
|
1971
1985
|
$();
|
|
1972
1986
|
}, []), k = Te(() => {
|
|
@@ -2031,7 +2045,7 @@ const fc = (e) => {
|
|
|
2031
2045
|
}
|
|
2032
2046
|
)
|
|
2033
2047
|
}
|
|
2034
|
-
),
|
|
2048
|
+
), yr = ({ onClick: e }) => /* @__PURE__ */ g.jsx(
|
|
2035
2049
|
he,
|
|
2036
2050
|
{
|
|
2037
2051
|
type: "link",
|
|
@@ -2046,7 +2060,7 @@ const fc = (e) => {
|
|
|
2046
2060
|
}
|
|
2047
2061
|
)
|
|
2048
2062
|
}
|
|
2049
|
-
), Sc =
|
|
2063
|
+
), Sc = be(
|
|
2050
2064
|
({ title: e, left: t, top: n, visible: r, onMaximize: o, onClosesquare: s, className: a }, i) => /* @__PURE__ */ g.jsxs(
|
|
2051
2065
|
"div",
|
|
2052
2066
|
{
|
|
@@ -2057,7 +2071,7 @@ const fc = (e) => {
|
|
|
2057
2071
|
/* @__PURE__ */ g.jsx("div", { className: xt["minimize-windows-title"], title: e, children: e }),
|
|
2058
2072
|
/* @__PURE__ */ g.jsxs("div", { className: xt["minimize-windows-operate"], children: [
|
|
2059
2073
|
/* @__PURE__ */ g.jsx(vr, { onClick: o }),
|
|
2060
|
-
/* @__PURE__ */ g.jsx(
|
|
2074
|
+
/* @__PURE__ */ g.jsx(yr, { onClick: s })
|
|
2061
2075
|
] })
|
|
2062
2076
|
]
|
|
2063
2077
|
}
|
|
@@ -2074,32 +2088,32 @@ const fc = (e) => {
|
|
|
2074
2088
|
"dialog__resize-rt": "_dialog__resize-rt_1pw42_127",
|
|
2075
2089
|
"dialog__resize-rb": "_dialog__resize-rb_1pw42_139",
|
|
2076
2090
|
"dialog__resize-lb": "_dialog__resize-lb_1pw42_151"
|
|
2077
|
-
}, Rc =
|
|
2091
|
+
}, Rc = be((e, t) => {
|
|
2078
2092
|
console.log("render Dialog==============================================");
|
|
2079
|
-
const { children: n, baseDialogProps: r, mask: o } = e, [s, a] = re(!1), { footerActions: i } = uc(e), { title: l, renderFooter: u, renderTitle: f, getPopperContainer:
|
|
2093
|
+
const { children: n, baseDialogProps: r, mask: o } = e, [s, a] = re(!1), { footerActions: i } = uc(e), { title: l, renderFooter: u, renderTitle: f, getPopperContainer: h } = e, { open: d, close: w } = pc(e, a), p = h(), _ = B(null), $ = B(null), M = B(null), O = B(null), { dialogChangeRecord: U, setDialogChangeRecord: G } = wc(), {
|
|
2080
2094
|
initWidth: Y,
|
|
2081
2095
|
initHeight: J,
|
|
2082
2096
|
curPropsWidth: k,
|
|
2083
|
-
curPropsHeight:
|
|
2097
|
+
curPropsHeight: y,
|
|
2084
2098
|
dialogWidth: j,
|
|
2085
2099
|
dialogHeight: P,
|
|
2086
2100
|
setDialogSize: T
|
|
2087
2101
|
} = hc(
|
|
2088
|
-
|
|
2102
|
+
p,
|
|
2089
2103
|
r,
|
|
2090
2104
|
e,
|
|
2091
2105
|
G
|
|
2092
2106
|
), { dialogLeft: I, dialogTop: L, setDialogPosition: C } = gc({
|
|
2093
|
-
container:
|
|
2107
|
+
container: p,
|
|
2094
2108
|
setDialogChangeRecord: G
|
|
2095
2109
|
}), { contentMaxHeight: v } = vc({
|
|
2096
2110
|
visible: s,
|
|
2097
|
-
container:
|
|
2111
|
+
container: p,
|
|
2098
2112
|
dialogHeight: P,
|
|
2099
2113
|
dialogRef: _,
|
|
2100
2114
|
dialogHeaderRef: $,
|
|
2101
2115
|
dialogFooterRef: O
|
|
2102
|
-
}), { minimizeLeft:
|
|
2116
|
+
}), { minimizeLeft: b, minimizeTop: D, minimizeRef: x, setMinimizePosition: E } = yc(), {
|
|
2103
2117
|
minimizeVisible: F,
|
|
2104
2118
|
maximizeVisible: R,
|
|
2105
2119
|
onMaximize: A,
|
|
@@ -2107,7 +2121,7 @@ const fc = (e) => {
|
|
|
2107
2121
|
onRecovery: W,
|
|
2108
2122
|
onClose: oe
|
|
2109
2123
|
} = mc({
|
|
2110
|
-
container:
|
|
2124
|
+
container: p,
|
|
2111
2125
|
dialogChangeRecord: U,
|
|
2112
2126
|
close: w,
|
|
2113
2127
|
setDialogSize: T,
|
|
@@ -2115,27 +2129,27 @@ const fc = (e) => {
|
|
|
2115
2129
|
});
|
|
2116
2130
|
_c({
|
|
2117
2131
|
visible: s,
|
|
2118
|
-
container:
|
|
2132
|
+
container: p,
|
|
2119
2133
|
initWidth: Y,
|
|
2120
2134
|
initHeight: J,
|
|
2121
2135
|
curPropsWidth: k,
|
|
2122
|
-
curPropsHeight:
|
|
2136
|
+
curPropsHeight: y,
|
|
2123
2137
|
setDialogSize: T,
|
|
2124
2138
|
setDialogPosition: C
|
|
2125
2139
|
}), Fn({
|
|
2126
|
-
container:
|
|
2140
|
+
container: p,
|
|
2127
2141
|
dialogHeaderRef: $,
|
|
2128
2142
|
dialogRef: _,
|
|
2129
2143
|
setDialogPosition: C
|
|
2130
2144
|
}), Fn({
|
|
2131
|
-
container:
|
|
2145
|
+
container: p,
|
|
2132
2146
|
dialogHeaderRef: x,
|
|
2133
2147
|
dialogRef: x,
|
|
2134
2148
|
setDialogPosition: E
|
|
2135
2149
|
});
|
|
2136
|
-
const { dialogTopShowClassConfig: ie } =
|
|
2150
|
+
const { dialogTopShowClassConfig: ie } = bc({
|
|
2137
2151
|
visible: s,
|
|
2138
|
-
container:
|
|
2152
|
+
container: p,
|
|
2139
2153
|
dialogRef: _,
|
|
2140
2154
|
minimizeRef: x
|
|
2141
2155
|
}), {
|
|
@@ -2143,17 +2157,17 @@ const fc = (e) => {
|
|
|
2143
2157
|
DashedBox: le,
|
|
2144
2158
|
onMousedownResizeLt: Q,
|
|
2145
2159
|
onMousedownResizeRt: de,
|
|
2146
|
-
onMousedownResizeRb:
|
|
2160
|
+
onMousedownResizeRb: ye,
|
|
2147
2161
|
onMousedownResizeLb: De
|
|
2148
2162
|
} = xc({
|
|
2149
2163
|
visible: s,
|
|
2150
|
-
container:
|
|
2164
|
+
container: p,
|
|
2151
2165
|
dialogRef: _,
|
|
2152
2166
|
setDialogSize: T,
|
|
2153
2167
|
setDialogPosition: C
|
|
2154
2168
|
});
|
|
2155
2169
|
return Ee(t, () => ({
|
|
2156
|
-
open:
|
|
2170
|
+
open: d,
|
|
2157
2171
|
close: oe
|
|
2158
2172
|
})), /* @__PURE__ */ g.jsxs("div", { className: ie.xphDialog, children: [
|
|
2159
2173
|
o ? /* @__PURE__ */ g.jsx(
|
|
@@ -2162,8 +2176,8 @@ const fc = (e) => {
|
|
|
2162
2176
|
className: ce["xph-dialog-mask"],
|
|
2163
2177
|
style: {
|
|
2164
2178
|
display: s ? "block" : "none",
|
|
2165
|
-
width:
|
|
2166
|
-
height:
|
|
2179
|
+
width: p.scrollWidth,
|
|
2180
|
+
height: p.scrollHeight
|
|
2167
2181
|
}
|
|
2168
2182
|
}
|
|
2169
2183
|
) : null,
|
|
@@ -2173,7 +2187,7 @@ const fc = (e) => {
|
|
|
2173
2187
|
visible: F,
|
|
2174
2188
|
className: `${ie.xphMinimizeDialog}`,
|
|
2175
2189
|
ref: x,
|
|
2176
|
-
left:
|
|
2190
|
+
left: b,
|
|
2177
2191
|
top: D,
|
|
2178
2192
|
title: l,
|
|
2179
2193
|
onMaximize: () => A("minimize"),
|
|
@@ -2200,7 +2214,7 @@ const fc = (e) => {
|
|
|
2200
2214
|
/* @__PURE__ */ g.jsxs("div", { className: ce["dialog__header-btns"], children: [
|
|
2201
2215
|
/* @__PURE__ */ g.jsx(Cc, { onClick: N }),
|
|
2202
2216
|
R ? /* @__PURE__ */ g.jsx(Tc, { onClick: W }) : /* @__PURE__ */ g.jsx(vr, { onClick: () => A("maximize") }),
|
|
2203
|
-
/* @__PURE__ */ g.jsx(
|
|
2217
|
+
/* @__PURE__ */ g.jsx(yr, { onClick: oe })
|
|
2204
2218
|
] })
|
|
2205
2219
|
] }),
|
|
2206
2220
|
/* @__PURE__ */ g.jsx(
|
|
@@ -2233,7 +2247,7 @@ const fc = (e) => {
|
|
|
2233
2247
|
"div",
|
|
2234
2248
|
{
|
|
2235
2249
|
className: `${ce.dialog__resize} ${ce["dialog__resize-rb"]}`,
|
|
2236
|
-
onMouseDown:
|
|
2250
|
+
onMouseDown: ye
|
|
2237
2251
|
}
|
|
2238
2252
|
),
|
|
2239
2253
|
/* @__PURE__ */ g.jsx(
|
|
@@ -2251,7 +2265,7 @@ const fc = (e) => {
|
|
|
2251
2265
|
}), Oc = (e, t) => {
|
|
2252
2266
|
const { children: n, ...r } = e, { baseDialogProps: o, dialogProps: s } = fc(r), { getPopperContainer: a } = s;
|
|
2253
2267
|
return console.log("render XphDialog=============================================="), /* @__PURE__ */ g.jsx(Ec, { getPopperContainer: a, children: /* @__PURE__ */ g.jsx(Rc, { ...s, baseDialogProps: o, ref: t, children: n }) });
|
|
2254
|
-
}, Fc =
|
|
2268
|
+
}, Fc = be(Oc), Ec = ({
|
|
2255
2269
|
children: e,
|
|
2256
2270
|
getPopperContainer: t
|
|
2257
2271
|
}) => {
|
|
@@ -2325,27 +2339,27 @@ const Ic = [
|
|
|
2325
2339
|
const { rules: o = [], label: s, required: a } = e;
|
|
2326
2340
|
let i = o;
|
|
2327
2341
|
const l = Ht(e), u = l ? Ac(e.component) + s : "";
|
|
2328
|
-
function f(
|
|
2329
|
-
const $ =
|
|
2342
|
+
function f(p, _) {
|
|
2343
|
+
const $ = p.message || u;
|
|
2330
2344
|
return _ === void 0 || tc(_) || Array.isArray(_) && _.length === 0 || typeof _ == "string" && _.trim() === "" || typeof _ == "object" && Reflect.has(_, "checked") && Reflect.has(_, "halfChecked") && Array.isArray(_.checked) && Array.isArray(_.halfChecked) && _.checked.length === 0 && _.halfChecked.length === 0 ? Promise.reject($) : Promise.resolve();
|
|
2331
2345
|
}
|
|
2332
|
-
const
|
|
2333
|
-
|
|
2346
|
+
const h = se(a) ? a({ model: t }) : a;
|
|
2347
|
+
h && (!i || i.length === 0 ? i = [{ required: h, validator: f }] : i.findIndex(
|
|
2334
2348
|
(_) => Reflect.has(_, "required")
|
|
2335
|
-
) === -1 && i.push({ required:
|
|
2336
|
-
const
|
|
2337
|
-
(
|
|
2349
|
+
) === -1 && i.push({ required: h, validator: f }));
|
|
2350
|
+
const d = i.findIndex(
|
|
2351
|
+
(p) => Reflect.has(p, "required") && !Reflect.has(p, "validator")
|
|
2338
2352
|
);
|
|
2339
|
-
if (
|
|
2340
|
-
const
|
|
2341
|
-
if (n || (
|
|
2353
|
+
if (d !== -1) {
|
|
2354
|
+
const p = i[d];
|
|
2355
|
+
if (n || (p.required = !1), l) {
|
|
2342
2356
|
const { component: _ } = e;
|
|
2343
|
-
Reflect.has(
|
|
2357
|
+
Reflect.has(p, "type") || (p.type = _ === "InputNumber" ? "number" : "string"), p.message = p.message || u, (_.includes("Input") || _.includes("Textarea")) && (p.whitespace = !0);
|
|
2344
2358
|
const $ = r.valueFormat;
|
|
2345
|
-
Mc(
|
|
2359
|
+
Mc(p, _, $);
|
|
2346
2360
|
}
|
|
2347
2361
|
}
|
|
2348
|
-
const w = i.findIndex((
|
|
2362
|
+
const w = i.findIndex((p) => p.max);
|
|
2349
2363
|
return w !== -1 && !i[w].validator && (i[w].message = i[w].message || `字符数应小于${i[w].max}位`), {
|
|
2350
2364
|
rules: i
|
|
2351
2365
|
};
|
|
@@ -2428,42 +2442,42 @@ const Ic = [
|
|
|
2428
2442
|
), e.current = null;
|
|
2429
2443
|
}), []), [t, n];
|
|
2430
2444
|
};
|
|
2431
|
-
var
|
|
2445
|
+
var br = { exports: {} };
|
|
2432
2446
|
(function(e, t) {
|
|
2433
2447
|
(function(n, r) {
|
|
2434
2448
|
e.exports = r();
|
|
2435
2449
|
})(po, function() {
|
|
2436
|
-
var n = 1e3, r = 6e4, o = 36e5, s = "millisecond", a = "second", i = "minute", l = "hour", u = "day", f = "week",
|
|
2437
|
-
var v = ["th", "st", "nd", "rd"],
|
|
2438
|
-
return "[" + C + (v[(
|
|
2439
|
-
} }, U = function(C, v,
|
|
2450
|
+
var n = 1e3, r = 6e4, o = 36e5, s = "millisecond", a = "second", i = "minute", l = "hour", u = "day", f = "week", h = "month", d = "quarter", w = "year", p = "date", _ = "Invalid Date", $ = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, M = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, O = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(C) {
|
|
2451
|
+
var v = ["th", "st", "nd", "rd"], b = C % 100;
|
|
2452
|
+
return "[" + C + (v[(b - 20) % 10] || v[b] || v[0]) + "]";
|
|
2453
|
+
} }, U = function(C, v, b) {
|
|
2440
2454
|
var D = String(C);
|
|
2441
|
-
return !D || D.length >= v ? C : "" + Array(v + 1 - D.length).join(
|
|
2455
|
+
return !D || D.length >= v ? C : "" + Array(v + 1 - D.length).join(b) + C;
|
|
2442
2456
|
}, G = { s: U, z: function(C) {
|
|
2443
|
-
var v = -C.utcOffset(),
|
|
2457
|
+
var v = -C.utcOffset(), b = Math.abs(v), D = Math.floor(b / 60), x = b % 60;
|
|
2444
2458
|
return (v <= 0 ? "+" : "-") + U(D, 2, "0") + ":" + U(x, 2, "0");
|
|
2445
|
-
}, m: function C(v,
|
|
2446
|
-
if (v.date() <
|
|
2447
|
-
return -C(
|
|
2448
|
-
var D = 12 * (
|
|
2449
|
-
return +(-(D + (
|
|
2459
|
+
}, m: function C(v, b) {
|
|
2460
|
+
if (v.date() < b.date())
|
|
2461
|
+
return -C(b, v);
|
|
2462
|
+
var D = 12 * (b.year() - v.year()) + (b.month() - v.month()), x = v.clone().add(D, h), E = b - x < 0, F = v.clone().add(D + (E ? -1 : 1), h);
|
|
2463
|
+
return +(-(D + (b - x) / (E ? x - F : F - x)) || 0);
|
|
2450
2464
|
}, a: function(C) {
|
|
2451
2465
|
return C < 0 ? Math.ceil(C) || 0 : Math.floor(C);
|
|
2452
2466
|
}, p: function(C) {
|
|
2453
|
-
return { M:
|
|
2467
|
+
return { M: h, y: w, w: f, d: u, D: p, h: l, m: i, s: a, ms: s, Q: d }[C] || String(C || "").toLowerCase().replace(/s$/, "");
|
|
2454
2468
|
}, u: function(C) {
|
|
2455
2469
|
return C === void 0;
|
|
2456
2470
|
} }, Y = "en", J = {};
|
|
2457
2471
|
J[Y] = O;
|
|
2458
|
-
var k = "$isDayjsObject",
|
|
2472
|
+
var k = "$isDayjsObject", y = function(C) {
|
|
2459
2473
|
return C instanceof I || !(!C || !C[k]);
|
|
2460
|
-
}, j = function C(v,
|
|
2474
|
+
}, j = function C(v, b, D) {
|
|
2461
2475
|
var x;
|
|
2462
2476
|
if (!v)
|
|
2463
2477
|
return Y;
|
|
2464
2478
|
if (typeof v == "string") {
|
|
2465
2479
|
var E = v.toLowerCase();
|
|
2466
|
-
J[E] && (x = E),
|
|
2480
|
+
J[E] && (x = E), b && (J[E] = b, x = E);
|
|
2467
2481
|
var F = v.split("-");
|
|
2468
2482
|
if (!x && F.length > 1)
|
|
2469
2483
|
return C(F[0]);
|
|
@@ -2473,20 +2487,20 @@ var yr = { exports: {} };
|
|
|
2473
2487
|
}
|
|
2474
2488
|
return !D && x && (Y = x), x || !D && Y;
|
|
2475
2489
|
}, P = function(C, v) {
|
|
2476
|
-
if (
|
|
2490
|
+
if (y(C))
|
|
2477
2491
|
return C.clone();
|
|
2478
|
-
var
|
|
2479
|
-
return
|
|
2492
|
+
var b = typeof v == "object" ? v : {};
|
|
2493
|
+
return b.date = C, b.args = arguments, new I(b);
|
|
2480
2494
|
}, T = G;
|
|
2481
|
-
T.l = j, T.i =
|
|
2495
|
+
T.l = j, T.i = y, T.w = function(C, v) {
|
|
2482
2496
|
return P(C, { locale: v.$L, utc: v.$u, x: v.$x, $offset: v.$offset });
|
|
2483
2497
|
};
|
|
2484
2498
|
var I = function() {
|
|
2485
|
-
function C(
|
|
2486
|
-
this.$L = j(
|
|
2499
|
+
function C(b) {
|
|
2500
|
+
this.$L = j(b.locale, null, !0), this.parse(b), this.$x = this.$x || b.x || {}, this[k] = !0;
|
|
2487
2501
|
}
|
|
2488
2502
|
var v = C.prototype;
|
|
2489
|
-
return v.parse = function(
|
|
2503
|
+
return v.parse = function(b) {
|
|
2490
2504
|
this.$d = function(D) {
|
|
2491
2505
|
var x = D.date, E = D.utc;
|
|
2492
2506
|
if (x === null)
|
|
@@ -2503,29 +2517,29 @@ var yr = { exports: {} };
|
|
|
2503
2517
|
}
|
|
2504
2518
|
}
|
|
2505
2519
|
return new Date(x);
|
|
2506
|
-
}(
|
|
2520
|
+
}(b), this.init();
|
|
2507
2521
|
}, v.init = function() {
|
|
2508
|
-
var
|
|
2509
|
-
this.$y =
|
|
2522
|
+
var b = this.$d;
|
|
2523
|
+
this.$y = b.getFullYear(), this.$M = b.getMonth(), this.$D = b.getDate(), this.$W = b.getDay(), this.$H = b.getHours(), this.$m = b.getMinutes(), this.$s = b.getSeconds(), this.$ms = b.getMilliseconds();
|
|
2510
2524
|
}, v.$utils = function() {
|
|
2511
2525
|
return T;
|
|
2512
2526
|
}, v.isValid = function() {
|
|
2513
2527
|
return this.$d.toString() !== _;
|
|
2514
|
-
}, v.isSame = function(
|
|
2515
|
-
var x = P(
|
|
2528
|
+
}, v.isSame = function(b, D) {
|
|
2529
|
+
var x = P(b);
|
|
2516
2530
|
return this.startOf(D) <= x && x <= this.endOf(D);
|
|
2517
|
-
}, v.isAfter = function(
|
|
2518
|
-
return P(
|
|
2519
|
-
}, v.isBefore = function(
|
|
2520
|
-
return this.endOf(D) < P(
|
|
2521
|
-
}, v.$g = function(
|
|
2522
|
-
return T.u(
|
|
2531
|
+
}, v.isAfter = function(b, D) {
|
|
2532
|
+
return P(b) < this.startOf(D);
|
|
2533
|
+
}, v.isBefore = function(b, D) {
|
|
2534
|
+
return this.endOf(D) < P(b);
|
|
2535
|
+
}, v.$g = function(b, D, x) {
|
|
2536
|
+
return T.u(b) ? this[D] : this.set(x, b);
|
|
2523
2537
|
}, v.unix = function() {
|
|
2524
2538
|
return Math.floor(this.valueOf() / 1e3);
|
|
2525
2539
|
}, v.valueOf = function() {
|
|
2526
2540
|
return this.$d.getTime();
|
|
2527
|
-
}, v.startOf = function(
|
|
2528
|
-
var x = this, E = !!T.u(D) || D, F = T.p(
|
|
2541
|
+
}, v.startOf = function(b, D) {
|
|
2542
|
+
var x = this, E = !!T.u(D) || D, F = T.p(b), R = function(le, Q) {
|
|
2529
2543
|
var de = T.w(x.$u ? Date.UTC(x.$y, Q, le) : new Date(x.$y, Q, le), x);
|
|
2530
2544
|
return E ? de : de.endOf(u);
|
|
2531
2545
|
}, A = function(le, Q) {
|
|
@@ -2534,13 +2548,13 @@ var yr = { exports: {} };
|
|
|
2534
2548
|
switch (F) {
|
|
2535
2549
|
case w:
|
|
2536
2550
|
return E ? R(1, 0) : R(31, 11);
|
|
2537
|
-
case
|
|
2551
|
+
case h:
|
|
2538
2552
|
return E ? R(1, W) : R(0, W + 1);
|
|
2539
2553
|
case f:
|
|
2540
2554
|
var ie = this.$locale().weekStart || 0, fe = (N < ie ? N + 7 : N) - ie;
|
|
2541
2555
|
return R(E ? oe - fe : oe + (6 - fe), W);
|
|
2542
2556
|
case u:
|
|
2543
|
-
case
|
|
2557
|
+
case p:
|
|
2544
2558
|
return A(me + "Hours", 0);
|
|
2545
2559
|
case l:
|
|
2546
2560
|
return A(me + "Minutes", 1);
|
|
@@ -2551,54 +2565,54 @@ var yr = { exports: {} };
|
|
|
2551
2565
|
default:
|
|
2552
2566
|
return this.clone();
|
|
2553
2567
|
}
|
|
2554
|
-
}, v.endOf = function(
|
|
2555
|
-
return this.startOf(
|
|
2556
|
-
}, v.$set = function(
|
|
2557
|
-
var x, E = T.p(
|
|
2558
|
-
if (E ===
|
|
2559
|
-
var N = this.clone().set(
|
|
2560
|
-
N.$d[R](A), N.init(), this.$d = N.set(
|
|
2568
|
+
}, v.endOf = function(b) {
|
|
2569
|
+
return this.startOf(b, !1);
|
|
2570
|
+
}, v.$set = function(b, D) {
|
|
2571
|
+
var x, E = T.p(b), F = "set" + (this.$u ? "UTC" : ""), R = (x = {}, x[u] = F + "Date", x[p] = F + "Date", x[h] = F + "Month", x[w] = F + "FullYear", x[l] = F + "Hours", x[i] = F + "Minutes", x[a] = F + "Seconds", x[s] = F + "Milliseconds", x)[E], A = E === u ? this.$D + (D - this.$W) : D;
|
|
2572
|
+
if (E === h || E === w) {
|
|
2573
|
+
var N = this.clone().set(p, 1);
|
|
2574
|
+
N.$d[R](A), N.init(), this.$d = N.set(p, Math.min(this.$D, N.daysInMonth())).$d;
|
|
2561
2575
|
} else
|
|
2562
2576
|
R && this.$d[R](A);
|
|
2563
2577
|
return this.init(), this;
|
|
2564
|
-
}, v.set = function(
|
|
2565
|
-
return this.clone().$set(
|
|
2566
|
-
}, v.get = function(
|
|
2567
|
-
return this[T.p(
|
|
2568
|
-
}, v.add = function(
|
|
2578
|
+
}, v.set = function(b, D) {
|
|
2579
|
+
return this.clone().$set(b, D);
|
|
2580
|
+
}, v.get = function(b) {
|
|
2581
|
+
return this[T.p(b)]();
|
|
2582
|
+
}, v.add = function(b, D) {
|
|
2569
2583
|
var x, E = this;
|
|
2570
|
-
|
|
2584
|
+
b = Number(b);
|
|
2571
2585
|
var F = T.p(D), R = function(W) {
|
|
2572
2586
|
var oe = P(E);
|
|
2573
|
-
return T.w(oe.date(oe.date() + Math.round(W *
|
|
2587
|
+
return T.w(oe.date(oe.date() + Math.round(W * b)), E);
|
|
2574
2588
|
};
|
|
2575
|
-
if (F ===
|
|
2576
|
-
return this.set(
|
|
2589
|
+
if (F === h)
|
|
2590
|
+
return this.set(h, this.$M + b);
|
|
2577
2591
|
if (F === w)
|
|
2578
|
-
return this.set(w, this.$y +
|
|
2592
|
+
return this.set(w, this.$y + b);
|
|
2579
2593
|
if (F === u)
|
|
2580
2594
|
return R(1);
|
|
2581
2595
|
if (F === f)
|
|
2582
2596
|
return R(7);
|
|
2583
|
-
var A = (x = {}, x[i] = r, x[l] = o, x[a] = n, x)[F] || 1, N = this.$d.getTime() +
|
|
2597
|
+
var A = (x = {}, x[i] = r, x[l] = o, x[a] = n, x)[F] || 1, N = this.$d.getTime() + b * A;
|
|
2584
2598
|
return T.w(N, this);
|
|
2585
|
-
}, v.subtract = function(
|
|
2586
|
-
return this.add(-1 *
|
|
2587
|
-
}, v.format = function(
|
|
2599
|
+
}, v.subtract = function(b, D) {
|
|
2600
|
+
return this.add(-1 * b, D);
|
|
2601
|
+
}, v.format = function(b) {
|
|
2588
2602
|
var D = this, x = this.$locale();
|
|
2589
2603
|
if (!this.isValid())
|
|
2590
2604
|
return x.invalidDate || _;
|
|
2591
|
-
var E =
|
|
2592
|
-
return Q && (Q[de] || Q(D, E)) ||
|
|
2605
|
+
var E = b || "YYYY-MM-DDTHH:mm:ssZ", F = T.z(this), R = this.$H, A = this.$m, N = this.$M, W = x.weekdays, oe = x.months, me = x.meridiem, ie = function(Q, de, ye, De) {
|
|
2606
|
+
return Q && (Q[de] || Q(D, E)) || ye[de].slice(0, De);
|
|
2593
2607
|
}, fe = function(Q) {
|
|
2594
2608
|
return T.s(R % 12 || 12, Q, "0");
|
|
2595
|
-
}, le = me || function(Q, de,
|
|
2609
|
+
}, le = me || function(Q, de, ye) {
|
|
2596
2610
|
var De = Q < 12 ? "AM" : "PM";
|
|
2597
|
-
return
|
|
2611
|
+
return ye ? De.toLowerCase() : De;
|
|
2598
2612
|
};
|
|
2599
2613
|
return E.replace(M, function(Q, de) {
|
|
2600
|
-
return de || function(
|
|
2601
|
-
switch (
|
|
2614
|
+
return de || function(ye) {
|
|
2615
|
+
switch (ye) {
|
|
2602
2616
|
case "YY":
|
|
2603
2617
|
return String(D.$y).slice(-2);
|
|
2604
2618
|
case "YYYY":
|
|
@@ -2653,18 +2667,18 @@ var yr = { exports: {} };
|
|
|
2653
2667
|
});
|
|
2654
2668
|
}, v.utcOffset = function() {
|
|
2655
2669
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
2656
|
-
}, v.diff = function(
|
|
2657
|
-
var E, F = this, R = T.p(D), A = P(
|
|
2670
|
+
}, v.diff = function(b, D, x) {
|
|
2671
|
+
var E, F = this, R = T.p(D), A = P(b), N = (A.utcOffset() - this.utcOffset()) * r, W = this - A, oe = function() {
|
|
2658
2672
|
return T.m(F, A);
|
|
2659
2673
|
};
|
|
2660
2674
|
switch (R) {
|
|
2661
2675
|
case w:
|
|
2662
2676
|
E = oe() / 12;
|
|
2663
2677
|
break;
|
|
2664
|
-
case
|
|
2678
|
+
case h:
|
|
2665
2679
|
E = oe();
|
|
2666
2680
|
break;
|
|
2667
|
-
case
|
|
2681
|
+
case d:
|
|
2668
2682
|
E = oe() / 3;
|
|
2669
2683
|
break;
|
|
2670
2684
|
case f:
|
|
@@ -2687,13 +2701,13 @@ var yr = { exports: {} };
|
|
|
2687
2701
|
}
|
|
2688
2702
|
return x ? E : T.a(E);
|
|
2689
2703
|
}, v.daysInMonth = function() {
|
|
2690
|
-
return this.endOf(
|
|
2704
|
+
return this.endOf(h).$D;
|
|
2691
2705
|
}, v.$locale = function() {
|
|
2692
2706
|
return J[this.$L];
|
|
2693
|
-
}, v.locale = function(
|
|
2694
|
-
if (!
|
|
2707
|
+
}, v.locale = function(b, D) {
|
|
2708
|
+
if (!b)
|
|
2695
2709
|
return this.$L;
|
|
2696
|
-
var x = this.clone(), E = j(
|
|
2710
|
+
var x = this.clone(), E = j(b, D, !0);
|
|
2697
2711
|
return E && (x.$L = E), x;
|
|
2698
2712
|
}, v.clone = function() {
|
|
2699
2713
|
return T.w(this.$d, this);
|
|
@@ -2707,18 +2721,18 @@ var yr = { exports: {} };
|
|
|
2707
2721
|
return this.$d.toUTCString();
|
|
2708
2722
|
}, C;
|
|
2709
2723
|
}(), L = I.prototype;
|
|
2710
|
-
return P.prototype = L, [["$ms", s], ["$s", a], ["$m", i], ["$H", l], ["$W", u], ["$M",
|
|
2724
|
+
return P.prototype = L, [["$ms", s], ["$s", a], ["$m", i], ["$H", l], ["$W", u], ["$M", h], ["$y", w], ["$D", p]].forEach(function(C) {
|
|
2711
2725
|
L[C[1]] = function(v) {
|
|
2712
2726
|
return this.$g(v, C[0], C[1]);
|
|
2713
2727
|
};
|
|
2714
2728
|
}), P.extend = function(C, v) {
|
|
2715
2729
|
return C.$i || (C(v, I, P), C.$i = !0), P;
|
|
2716
|
-
}, P.locale = j, P.isDayjs =
|
|
2730
|
+
}, P.locale = j, P.isDayjs = y, P.unix = function(C) {
|
|
2717
2731
|
return P(1e3 * C);
|
|
2718
2732
|
}, P.en = J[Y], P.Ls = J, P.p = {}, P;
|
|
2719
2733
|
});
|
|
2720
|
-
})(
|
|
2721
|
-
var qc =
|
|
2734
|
+
})(br);
|
|
2735
|
+
var qc = br.exports;
|
|
2722
2736
|
const st = /* @__PURE__ */ ho(qc);
|
|
2723
2737
|
function Gc(e, t = {}) {
|
|
2724
2738
|
const n = /^\[(.+)\]$/;
|
|
@@ -2776,22 +2790,22 @@ const Jc = (e, t, n) => {
|
|
|
2776
2790
|
handleFormatRenderValues: (a) => {
|
|
2777
2791
|
const i = {}, l = [];
|
|
2778
2792
|
return r.forEach((u) => {
|
|
2779
|
-
const f = Reflect.has(a, u.name),
|
|
2780
|
-
if (f ||
|
|
2781
|
-
const
|
|
2793
|
+
const f = Reflect.has(a, u.name), h = Gc(u.name, a) || Xc(u.name, a);
|
|
2794
|
+
if (f || h) {
|
|
2795
|
+
const d = h || a[u.name];
|
|
2782
2796
|
if (Ht(u))
|
|
2783
2797
|
if (Ic.includes(u.component)) {
|
|
2784
|
-
if (ue(
|
|
2798
|
+
if (ue(d)) {
|
|
2785
2799
|
const w = [];
|
|
2786
|
-
for (const
|
|
2787
|
-
w.push(
|
|
2800
|
+
for (const p of d)
|
|
2801
|
+
w.push(p ? st(p) : null);
|
|
2788
2802
|
i[u.name] = w;
|
|
2789
2803
|
} else
|
|
2790
|
-
i[u.name] =
|
|
2804
|
+
i[u.name] = d ? st(d) : null;
|
|
2791
2805
|
l.push(u.name);
|
|
2792
2806
|
} else
|
|
2793
|
-
i[u.name] =
|
|
2794
|
-
Bt(u) && (i[u.name] =
|
|
2807
|
+
i[u.name] = d, l.push(u.name);
|
|
2808
|
+
Bt(u) && (i[u.name] = d, l.push(u.name));
|
|
2795
2809
|
}
|
|
2796
2810
|
}), {
|
|
2797
2811
|
renderValues: i,
|
|
@@ -2799,23 +2813,23 @@ const Jc = (e, t, n) => {
|
|
|
2799
2813
|
};
|
|
2800
2814
|
},
|
|
2801
2815
|
handleFormatReturnValues: (a) => {
|
|
2802
|
-
var l, u, f,
|
|
2816
|
+
var l, u, f, h, d;
|
|
2803
2817
|
if (!ge(a))
|
|
2804
2818
|
return {};
|
|
2805
2819
|
const i = {};
|
|
2806
2820
|
for (const w of Object.entries(a)) {
|
|
2807
|
-
let [,
|
|
2821
|
+
let [, p] = w;
|
|
2808
2822
|
const [_] = w;
|
|
2809
|
-
if (!_ || ue(
|
|
2823
|
+
if (!_ || ue(p) && p.length === 0 || se(p))
|
|
2810
2824
|
continue;
|
|
2811
2825
|
const { transformDateFunc: $ } = t, M = (f = (u = (l = n.current) == null ? void 0 : l.get(_)) == null ? void 0 : u.current) == null ? void 0 : f.componentProps, O = M == null ? void 0 : M.valueFormat;
|
|
2812
|
-
if (ge(
|
|
2813
|
-
const U =
|
|
2814
|
-
U.format && (
|
|
2826
|
+
if (ge(p)) {
|
|
2827
|
+
const U = p;
|
|
2828
|
+
U.format && (p = $ == null ? void 0 : $(U, O));
|
|
2815
2829
|
}
|
|
2816
|
-
ue(
|
|
2830
|
+
ue(p) && ((h = p[0]) != null && h.format) && ((d = p[1]) != null && d.format) && (p = p.map(
|
|
2817
2831
|
(U) => $ == null ? void 0 : $(U, O)
|
|
2818
|
-
)), fr(
|
|
2832
|
+
)), fr(p) && (p === "" ? p = void 0 : p = p.trim()), i[_] = p;
|
|
2819
2833
|
}
|
|
2820
2834
|
return Kc(i, t);
|
|
2821
2835
|
}
|
|
@@ -2907,16 +2921,16 @@ const Jc = (e, t, n) => {
|
|
|
2907
2921
|
params: n,
|
|
2908
2922
|
apiCallback: l,
|
|
2909
2923
|
isUseWatch: a
|
|
2910
|
-
}), f = (
|
|
2911
|
-
|
|
2912
|
-
},
|
|
2913
|
-
const { api:
|
|
2924
|
+
}), f = (d) => {
|
|
2925
|
+
d && !r && u(), s && s(d);
|
|
2926
|
+
}, h = () => {
|
|
2927
|
+
const { api: d, params: w, immediate: p, isusewatch: _, ...$ } = e;
|
|
2914
2928
|
return $;
|
|
2915
2929
|
};
|
|
2916
2930
|
return /* @__PURE__ */ g.jsx(
|
|
2917
2931
|
Nn,
|
|
2918
2932
|
{
|
|
2919
|
-
...
|
|
2933
|
+
...h(),
|
|
2920
2934
|
options: i,
|
|
2921
2935
|
onDropdownVisibleChange: f
|
|
2922
2936
|
}
|
|
@@ -2935,16 +2949,16 @@ const Jc = (e, t, n) => {
|
|
|
2935
2949
|
params: n,
|
|
2936
2950
|
apiCallback: l,
|
|
2937
2951
|
isUseWatch: a
|
|
2938
|
-
}), f = (
|
|
2939
|
-
|
|
2940
|
-
},
|
|
2941
|
-
const { api:
|
|
2952
|
+
}), f = (d) => {
|
|
2953
|
+
d && !r && u(), s && s(d);
|
|
2954
|
+
}, h = () => {
|
|
2955
|
+
const { api: d, params: w, immediate: p, isusewatch: _, ...$ } = e;
|
|
2942
2956
|
return $;
|
|
2943
2957
|
};
|
|
2944
2958
|
return /* @__PURE__ */ g.jsx(
|
|
2945
2959
|
Wn,
|
|
2946
2960
|
{
|
|
2947
|
-
...
|
|
2961
|
+
...h(),
|
|
2948
2962
|
treeData: i,
|
|
2949
2963
|
onDropdownVisibleChange: f
|
|
2950
2964
|
}
|
|
@@ -2959,8 +2973,8 @@ const Jc = (e, t, n) => {
|
|
|
2959
2973
|
isUseWatch: o
|
|
2960
2974
|
});
|
|
2961
2975
|
const i = () => {
|
|
2962
|
-
const { api: l, params: u, isusewatch: f, ...
|
|
2963
|
-
return
|
|
2976
|
+
const { api: l, params: u, isusewatch: f, ...h } = e;
|
|
2977
|
+
return h;
|
|
2964
2978
|
};
|
|
2965
2979
|
return /* @__PURE__ */ g.jsx(Hn, { ...i(), dataSource: s });
|
|
2966
2980
|
}, ol = (e) => {
|
|
@@ -2977,16 +2991,16 @@ const Jc = (e, t, n) => {
|
|
|
2977
2991
|
params: n,
|
|
2978
2992
|
apiCallback: l,
|
|
2979
2993
|
isUseWatch: a
|
|
2980
|
-
}), f = (
|
|
2981
|
-
|
|
2982
|
-
},
|
|
2983
|
-
const { api:
|
|
2994
|
+
}), f = (d) => {
|
|
2995
|
+
d && !r && u(), s && s(d);
|
|
2996
|
+
}, h = () => {
|
|
2997
|
+
const { api: d, params: w, immediate: p, isusewatch: _, ...$ } = e;
|
|
2984
2998
|
return $;
|
|
2985
2999
|
};
|
|
2986
3000
|
return /* @__PURE__ */ g.jsx(
|
|
2987
3001
|
Bn,
|
|
2988
3002
|
{
|
|
2989
|
-
...
|
|
3003
|
+
...h(),
|
|
2990
3004
|
options: i,
|
|
2991
3005
|
onDropdownVisibleChange: f
|
|
2992
3006
|
}
|
|
@@ -3015,11 +3029,11 @@ const Jc = (e, t, n) => {
|
|
|
3015
3029
|
value: u = t,
|
|
3016
3030
|
// 默认文件列表
|
|
3017
3031
|
onChange: f
|
|
3018
|
-
} = e,
|
|
3019
|
-
w.current =
|
|
3032
|
+
} = e, h = B(!0), d = B(0), w = B([]), [p, _] = re([]), $ = (y) => {
|
|
3033
|
+
w.current = y, _([...y]);
|
|
3020
3034
|
}, M = () => {
|
|
3021
3035
|
const {
|
|
3022
|
-
api:
|
|
3036
|
+
api: y,
|
|
3023
3037
|
maxCount: j,
|
|
3024
3038
|
maxSize: P,
|
|
3025
3039
|
openCrop: T,
|
|
@@ -3029,35 +3043,35 @@ const Jc = (e, t, n) => {
|
|
|
3029
3043
|
...v
|
|
3030
3044
|
} = e;
|
|
3031
3045
|
return v;
|
|
3032
|
-
}, O = (
|
|
3033
|
-
const j =
|
|
3034
|
-
j ||
|
|
3035
|
-
const P = w.current.length +
|
|
3036
|
-
return P ||
|
|
3037
|
-
}, U = (
|
|
3038
|
-
a ? (
|
|
3039
|
-
}, G = (
|
|
3040
|
-
n ? n({ file:
|
|
3046
|
+
}, O = (y) => {
|
|
3047
|
+
const j = y.size / 1024 / 1024 < o;
|
|
3048
|
+
j || yt.error(`文件大小超过:${o}M, 请重试`);
|
|
3049
|
+
const P = w.current.length + d.current < r;
|
|
3050
|
+
return P || yt.error(`文件数量不能超过${r}个`), j && P && d.current++, j && P && U(y), Ct.LIST_IGNORE;
|
|
3051
|
+
}, U = (y) => {
|
|
3052
|
+
a ? (yt.error("暂时不支持裁剪功能,后续兼容。。。。"), G({ file: y })) : G({ file: y });
|
|
3053
|
+
}, G = (y) => {
|
|
3054
|
+
n ? n({ file: y.file, ...i }).then((j) => {
|
|
3041
3055
|
$([...w.current, ...j]);
|
|
3042
3056
|
}).finally(() => {
|
|
3043
|
-
|
|
3044
|
-
}) : (Object.assign(
|
|
3057
|
+
d.current--;
|
|
3058
|
+
}) : (Object.assign(y.file, {
|
|
3045
3059
|
status: "done",
|
|
3046
3060
|
url: URL.createObjectURL(
|
|
3047
|
-
new Blob([
|
|
3048
|
-
type: kc(
|
|
3061
|
+
new Blob([y.file], {
|
|
3062
|
+
type: kc(y.file.type)
|
|
3049
3063
|
})
|
|
3050
3064
|
)
|
|
3051
|
-
}), $([...w.current,
|
|
3052
|
-
}, Y = (
|
|
3053
|
-
const { file: j, fileList: P } =
|
|
3065
|
+
}), $([...w.current, y.file]), d.current--);
|
|
3066
|
+
}, Y = (y) => {
|
|
3067
|
+
const { file: j, fileList: P } = y, { status: T } = j;
|
|
3054
3068
|
switch (T) {
|
|
3055
3069
|
case "removed": {
|
|
3056
3070
|
$([...P]);
|
|
3057
3071
|
break;
|
|
3058
3072
|
}
|
|
3059
3073
|
}
|
|
3060
|
-
}, J = (
|
|
3074
|
+
}, J = (y) => {
|
|
3061
3075
|
const j = (T) => {
|
|
3062
3076
|
const I = T.split("/"), L = I[I.length - 1], [C] = L.split("?");
|
|
3063
3077
|
return C;
|
|
@@ -3065,22 +3079,22 @@ const Jc = (e, t, n) => {
|
|
|
3065
3079
|
return { uid: ((T) => {
|
|
3066
3080
|
const I = w.current.find((L) => L.url === T);
|
|
3067
3081
|
return I ? I.uid : rn();
|
|
3068
|
-
})(
|
|
3082
|
+
})(y), name: j(y), url: y, status: "done" };
|
|
3069
3083
|
}, k = () => {
|
|
3070
3084
|
switch (l) {
|
|
3071
3085
|
case Ce.String:
|
|
3072
|
-
return
|
|
3086
|
+
return p.map((y) => y.url).join(",");
|
|
3073
3087
|
case Ce["String[]"]:
|
|
3074
|
-
return
|
|
3088
|
+
return p.map((y) => y.url);
|
|
3075
3089
|
case Ce["File[]"]:
|
|
3076
|
-
return [...
|
|
3090
|
+
return [...p];
|
|
3077
3091
|
case Ce.FileList:
|
|
3078
|
-
return [...
|
|
3092
|
+
return [...p];
|
|
3079
3093
|
}
|
|
3080
3094
|
};
|
|
3081
3095
|
return ne(() => {
|
|
3082
|
-
const
|
|
3083
|
-
if (rt(
|
|
3096
|
+
const y = k();
|
|
3097
|
+
if (rt(y, u))
|
|
3084
3098
|
return;
|
|
3085
3099
|
let j = [];
|
|
3086
3100
|
switch (l) {
|
|
@@ -3103,18 +3117,18 @@ const Jc = (e, t, n) => {
|
|
|
3103
3117
|
}
|
|
3104
3118
|
$(j);
|
|
3105
3119
|
}, [u]), ne(() => {
|
|
3106
|
-
if (
|
|
3107
|
-
|
|
3120
|
+
if (h.current) {
|
|
3121
|
+
h.current = !1;
|
|
3108
3122
|
return;
|
|
3109
3123
|
}
|
|
3110
|
-
const
|
|
3111
|
-
f == null || f(
|
|
3112
|
-
}, [
|
|
3124
|
+
const y = k();
|
|
3125
|
+
f == null || f(y);
|
|
3126
|
+
}, [p]), /* @__PURE__ */ g.jsx(
|
|
3113
3127
|
Ct,
|
|
3114
3128
|
{
|
|
3115
3129
|
listType: s,
|
|
3116
3130
|
...M(),
|
|
3117
|
-
fileList:
|
|
3131
|
+
fileList: p,
|
|
3118
3132
|
beforeUpload: O,
|
|
3119
3133
|
onChange: Y,
|
|
3120
3134
|
children: "上传"
|
|
@@ -3150,7 +3164,7 @@ X.set("AutoUpload", sl);
|
|
|
3150
3164
|
const En = {
|
|
3151
3165
|
"form-item-force": "_form-item-force_1hsf3_1",
|
|
3152
3166
|
"form-item-hidden": "_form-item-hidden_1hsf3_9"
|
|
3153
|
-
}, il =
|
|
3167
|
+
}, il = be(
|
|
3154
3168
|
({
|
|
3155
3169
|
itemIndex: e,
|
|
3156
3170
|
itemProps: t,
|
|
@@ -3163,19 +3177,19 @@ const En = {
|
|
|
3163
3177
|
t,
|
|
3164
3178
|
a,
|
|
3165
3179
|
o
|
|
3166
|
-
), { colProps: f } = Uc(t, r), { componentProps:
|
|
3180
|
+
), { colProps: f } = Uc(t, r), { componentProps: h } = Bc(
|
|
3167
3181
|
t,
|
|
3168
3182
|
a
|
|
3169
|
-
), { rules:
|
|
3183
|
+
), { rules: d } = Wc({
|
|
3170
3184
|
item: t,
|
|
3171
3185
|
model: a,
|
|
3172
3186
|
isShow: u,
|
|
3173
|
-
componentProps:
|
|
3187
|
+
componentProps: h
|
|
3174
3188
|
}), { disabled: w } = Hc(
|
|
3175
3189
|
r,
|
|
3176
3190
|
t,
|
|
3177
3191
|
a
|
|
3178
|
-
), { itemCollapse:
|
|
3192
|
+
), { itemCollapse: p, setItemCollapse: _ } = Nc(
|
|
3179
3193
|
r,
|
|
3180
3194
|
e
|
|
3181
3195
|
), {
|
|
@@ -3189,27 +3203,27 @@ const En = {
|
|
|
3189
3203
|
} = t;
|
|
3190
3204
|
Ee(s, () => ({
|
|
3191
3205
|
itemIndex: e,
|
|
3192
|
-
componentProps:
|
|
3193
|
-
itemCollapse:
|
|
3206
|
+
componentProps: h,
|
|
3207
|
+
itemCollapse: p,
|
|
3194
3208
|
setItemCollapse: _
|
|
3195
3209
|
}));
|
|
3196
3210
|
const k = () => ({
|
|
3197
3211
|
name: $,
|
|
3198
3212
|
label: M,
|
|
3199
|
-
rules:
|
|
3213
|
+
rules: d,
|
|
3200
3214
|
wrapperCol: O,
|
|
3201
3215
|
labelCol: U,
|
|
3202
3216
|
valuePropName: G,
|
|
3203
3217
|
initialValue: Y
|
|
3204
|
-
}), { setExtendFormComp:
|
|
3205
|
-
|
|
3218
|
+
}), { setExtendFormComp: y } = _r();
|
|
3219
|
+
y(X);
|
|
3206
3220
|
const j = Ht(t), P = Bt(t), T = () => {
|
|
3207
3221
|
if (j) {
|
|
3208
3222
|
const I = X.get(t.component);
|
|
3209
3223
|
return /* @__PURE__ */ g.jsx(
|
|
3210
3224
|
I,
|
|
3211
3225
|
{
|
|
3212
|
-
...
|
|
3226
|
+
...h,
|
|
3213
3227
|
disabled: w,
|
|
3214
3228
|
isusewatch: i.toString()
|
|
3215
3229
|
}
|
|
@@ -3220,7 +3234,7 @@ const En = {
|
|
|
3220
3234
|
name: $,
|
|
3221
3235
|
disabled: w,
|
|
3222
3236
|
methods: n,
|
|
3223
|
-
componentProps:
|
|
3237
|
+
componentProps: h
|
|
3224
3238
|
}) : null;
|
|
3225
3239
|
};
|
|
3226
3240
|
return /* @__PURE__ */ g.jsxs(In, { children: [
|
|
@@ -3229,7 +3243,7 @@ const En = {
|
|
|
3229
3243
|
Zr,
|
|
3230
3244
|
{
|
|
3231
3245
|
...f,
|
|
3232
|
-
className: u && !
|
|
3246
|
+
className: u && !p ? void 0 : En["form-item-hidden"],
|
|
3233
3247
|
children: /* @__PURE__ */ g.jsx(Ze.Item, { ...k(), children: T() })
|
|
3234
3248
|
}
|
|
3235
3249
|
) : null
|
|
@@ -3237,7 +3251,7 @@ const En = {
|
|
|
3237
3251
|
}
|
|
3238
3252
|
), al = {
|
|
3239
3253
|
"collapse-wrapper": "_collapse-wrapper_ylm01_1"
|
|
3240
|
-
}, cl =
|
|
3254
|
+
}, cl = be(
|
|
3241
3255
|
({
|
|
3242
3256
|
collapsible: e,
|
|
3243
3257
|
onClickExpand: t,
|
|
@@ -3283,27 +3297,27 @@ const En = {
|
|
|
3283
3297
|
collapseRef: l,
|
|
3284
3298
|
onClickCollapseToFalse: u,
|
|
3285
3299
|
onClickCollapseToTrue: f
|
|
3286
|
-
} = el(r, s), { handleFormatRenderValues:
|
|
3300
|
+
} = el(r, s), { handleFormatRenderValues: h, handleFormatReturnValues: d } = Jc(
|
|
3287
3301
|
o,
|
|
3288
3302
|
r,
|
|
3289
3303
|
s
|
|
3290
3304
|
), {
|
|
3291
3305
|
setFieldsValue: w,
|
|
3292
|
-
getFieldsValue:
|
|
3306
|
+
getFieldsValue: p,
|
|
3293
3307
|
resetFields: _,
|
|
3294
3308
|
validator: $,
|
|
3295
3309
|
scrollToField: M
|
|
3296
3310
|
} = Zc(
|
|
3297
3311
|
n,
|
|
3298
|
-
|
|
3299
|
-
|
|
3312
|
+
h,
|
|
3313
|
+
d
|
|
3300
3314
|
), O = () => {
|
|
3301
3315
|
const {
|
|
3302
3316
|
layout: G,
|
|
3303
3317
|
wrapperCol: Y,
|
|
3304
3318
|
labelCol: J,
|
|
3305
3319
|
colon: k,
|
|
3306
|
-
disabled:
|
|
3320
|
+
disabled: y,
|
|
3307
3321
|
labelWrap: j,
|
|
3308
3322
|
labelAlign: P,
|
|
3309
3323
|
scrollToFirstError: T,
|
|
@@ -3314,7 +3328,7 @@ const En = {
|
|
|
3314
3328
|
wrapperCol: Y,
|
|
3315
3329
|
labelCol: J,
|
|
3316
3330
|
colon: k,
|
|
3317
|
-
disabled:
|
|
3331
|
+
disabled: y,
|
|
3318
3332
|
labelWrap: j,
|
|
3319
3333
|
labelAlign: P,
|
|
3320
3334
|
scrollToFirstError: T,
|
|
@@ -3322,7 +3336,7 @@ const En = {
|
|
|
3322
3336
|
};
|
|
3323
3337
|
}, U = {
|
|
3324
3338
|
setFieldsValue: w,
|
|
3325
|
-
getFieldsValue:
|
|
3339
|
+
getFieldsValue: p,
|
|
3326
3340
|
resetFields: _,
|
|
3327
3341
|
validator: $,
|
|
3328
3342
|
scrollToField: M
|
|
@@ -3357,13 +3371,13 @@ const En = {
|
|
|
3357
3371
|
) : null
|
|
3358
3372
|
] })
|
|
3359
3373
|
] });
|
|
3360
|
-
}, wr =
|
|
3374
|
+
}, wr = be(dl), pl = zn(wr), hl = be((e, t) => {
|
|
3361
3375
|
const { renderActions: n, showSearch: r, tableRef: o } = e, [s, a] = re(!1), i = B(null), l = () => {
|
|
3362
|
-
const { reloadData:
|
|
3363
|
-
|
|
3376
|
+
const { reloadData: d } = o.current;
|
|
3377
|
+
d();
|
|
3364
3378
|
}, u = () => {
|
|
3365
|
-
const { resetData:
|
|
3366
|
-
|
|
3379
|
+
const { resetData: d } = o.current;
|
|
3380
|
+
d();
|
|
3367
3381
|
}, f = Te(() => /* @__PURE__ */ g.jsxs("div", { style: { width: "100%", display: "flex" }, children: [
|
|
3368
3382
|
/* @__PURE__ */ g.jsx("div", { style: { flex: 1, width: 0 }, children: n == null ? void 0 : n() }),
|
|
3369
3383
|
r && /* @__PURE__ */ g.jsxs("div", { style: { display: "flex", gap: "8px" }, children: [
|
|
@@ -3378,8 +3392,8 @@ const En = {
|
|
|
3378
3392
|
),
|
|
3379
3393
|
/* @__PURE__ */ g.jsx(he, { icon: /* @__PURE__ */ g.jsx(uo, {}), onClick: u, children: "重置" })
|
|
3380
3394
|
] })
|
|
3381
|
-
] }), [r, n]),
|
|
3382
|
-
const { renderActions:
|
|
3395
|
+
] }), [r, n]), h = () => {
|
|
3396
|
+
const { renderActions: d, ...w } = e;
|
|
3383
3397
|
return {
|
|
3384
3398
|
...w,
|
|
3385
3399
|
renderActions: f
|
|
@@ -3389,7 +3403,7 @@ const En = {
|
|
|
3389
3403
|
/** 扩展了loading方法,让table调用 */
|
|
3390
3404
|
setFormLoading: a,
|
|
3391
3405
|
...i.current
|
|
3392
|
-
})), /* @__PURE__ */ g.jsx(eo, { spinning: s, children: /* @__PURE__ */ g.jsx(pl, { ref: i, ...
|
|
3406
|
+
})), /* @__PURE__ */ g.jsx(eo, { spinning: s, children: /* @__PURE__ */ g.jsx(pl, { ref: i, ...h() }) });
|
|
3393
3407
|
}), gl = zn(wr), ml = (e, t) => {
|
|
3394
3408
|
const n = B(null), r = B(null), { formProps: o } = e, s = () => {
|
|
3395
3409
|
const { formProps: a, ...i } = e;
|
|
@@ -3410,14 +3424,14 @@ const En = {
|
|
|
3410
3424
|
validator: (...a) => r.current.validator(...a),
|
|
3411
3425
|
scrollToField: (...a) => r.current.scrollToField(...a)
|
|
3412
3426
|
})), /* @__PURE__ */ g.jsx(Fc, { ...s(), ref: n, children: /* @__PURE__ */ g.jsx(gl, { ...o, ref: r }) });
|
|
3413
|
-
}, vl =
|
|
3414
|
-
function
|
|
3427
|
+
}, vl = be(ml);
|
|
3428
|
+
function yl({ searchForm: e }) {
|
|
3415
3429
|
return {
|
|
3416
3430
|
searchFormRef: B(null),
|
|
3417
3431
|
searchFormProps: e
|
|
3418
3432
|
};
|
|
3419
3433
|
}
|
|
3420
|
-
function
|
|
3434
|
+
function bl(e) {
|
|
3421
3435
|
return "cellFunc" in e;
|
|
3422
3436
|
}
|
|
3423
3437
|
function _l(e) {
|
|
@@ -3481,13 +3495,13 @@ const { useToken: wl } = Ln, xl = (e, t, n) => {
|
|
|
3481
3495
|
function xr(e) {
|
|
3482
3496
|
return e.map((t) => {
|
|
3483
3497
|
let n = { ...t };
|
|
3484
|
-
if (
|
|
3498
|
+
if (bl(n)) {
|
|
3485
3499
|
const { cellFunc: r, ...o } = n;
|
|
3486
3500
|
n = {
|
|
3487
3501
|
...o,
|
|
3488
3502
|
render: (...s) => {
|
|
3489
|
-
const a = se(r), [i, l, u] = s, f = { text: i, record: l, index: u },
|
|
3490
|
-
return /* @__PURE__ */ g.jsx(Pl, { dslConfig:
|
|
3503
|
+
const a = se(r), [i, l, u] = s, f = { text: i, record: l, index: u }, h = a ? r(f) : r;
|
|
3504
|
+
return /* @__PURE__ */ g.jsx(Pl, { dslConfig: h, renderPrams: f });
|
|
3491
3505
|
}
|
|
3492
3506
|
};
|
|
3493
3507
|
}
|
|
@@ -3555,55 +3569,55 @@ function Rl(e, t) {
|
|
|
3555
3569
|
dataSource: [],
|
|
3556
3570
|
selection: [],
|
|
3557
3571
|
backupsDataSource: []
|
|
3558
|
-
}),
|
|
3572
|
+
}), h = B({
|
|
3559
3573
|
loading: !1,
|
|
3560
3574
|
dataSource: [],
|
|
3561
3575
|
selection: [],
|
|
3562
3576
|
backupsDataSource: []
|
|
3563
|
-
}),
|
|
3577
|
+
}), d = {
|
|
3564
3578
|
model: u,
|
|
3565
3579
|
update: (k) => {
|
|
3566
3580
|
var j;
|
|
3567
|
-
const
|
|
3568
|
-
f(
|
|
3581
|
+
const y = { ...h.current, ...k };
|
|
3582
|
+
f(y), h.current = y, (j = t.current) == null || j.setFormLoading(y.loading);
|
|
3569
3583
|
}
|
|
3570
3584
|
}, w = async () => {
|
|
3571
3585
|
ne(() => {
|
|
3572
|
-
const { autoRequest: k } = e.table, { validator:
|
|
3573
|
-
k &&
|
|
3586
|
+
const { autoRequest: k } = e.table, { validator: y } = t.current;
|
|
3587
|
+
k && y().then((j) => {
|
|
3574
3588
|
M({ searchFormParams: j });
|
|
3575
3589
|
});
|
|
3576
3590
|
}, []);
|
|
3577
|
-
},
|
|
3591
|
+
}, p = async ({
|
|
3578
3592
|
searchFormParams: k,
|
|
3579
|
-
paginationParams:
|
|
3593
|
+
paginationParams: y
|
|
3580
3594
|
}) => {
|
|
3581
3595
|
const j = {
|
|
3582
3596
|
...k,
|
|
3583
3597
|
/** 没传paginationParams默认就是上一次 */
|
|
3584
3598
|
current: l.current.current,
|
|
3585
3599
|
pageSize: l.current.pageSize,
|
|
3586
|
-
...
|
|
3600
|
+
...y
|
|
3587
3601
|
};
|
|
3588
3602
|
return n(j).then((P) => {
|
|
3589
3603
|
const { data: T, current: I, total: L } = P;
|
|
3590
|
-
|
|
3604
|
+
d.update({
|
|
3591
3605
|
dataSource: r ? r(T) : T
|
|
3592
3606
|
}), i.update({
|
|
3593
3607
|
total: L,
|
|
3594
3608
|
current: I
|
|
3595
3609
|
});
|
|
3596
3610
|
}).finally(() => {
|
|
3597
|
-
|
|
3611
|
+
d.update({ loading: !1 });
|
|
3598
3612
|
});
|
|
3599
3613
|
}, _ = async ({
|
|
3600
3614
|
searchFormParams: k,
|
|
3601
|
-
paginationParams:
|
|
3615
|
+
paginationParams: y
|
|
3602
3616
|
}) => {
|
|
3603
3617
|
const j = { ...k };
|
|
3604
3618
|
return n(j).then((P) => {
|
|
3605
3619
|
const T = r ? r(P) : P;
|
|
3606
|
-
|
|
3620
|
+
d.update({
|
|
3607
3621
|
selection: [],
|
|
3608
3622
|
dataSource: T
|
|
3609
3623
|
}), i.update({
|
|
@@ -3611,25 +3625,25 @@ function Rl(e, t) {
|
|
|
3611
3625
|
total: P.length
|
|
3612
3626
|
});
|
|
3613
3627
|
}).finally(() => {
|
|
3614
|
-
|
|
3628
|
+
d.update({ loading: !1 });
|
|
3615
3629
|
});
|
|
3616
3630
|
}, $ = async ({
|
|
3617
3631
|
searchFormParams: k,
|
|
3618
|
-
paginationParams:
|
|
3632
|
+
paginationParams: y
|
|
3619
3633
|
}) => {
|
|
3620
3634
|
var P;
|
|
3621
3635
|
const j = { ...k };
|
|
3622
|
-
if (
|
|
3623
|
-
const { current: T, pageSize: I } =
|
|
3636
|
+
if (y) {
|
|
3637
|
+
const { current: T, pageSize: I } = y;
|
|
3624
3638
|
i.update({
|
|
3625
3639
|
current: T,
|
|
3626
3640
|
pageSize: I
|
|
3627
3641
|
});
|
|
3628
|
-
const L = (T - 1) * I, C = L + I, v = (P =
|
|
3642
|
+
const L = (T - 1) * I, C = L + I, v = (P = h.current.backupsDataSource) == null ? void 0 : P.slice(
|
|
3629
3643
|
L,
|
|
3630
3644
|
C
|
|
3631
3645
|
);
|
|
3632
|
-
return
|
|
3646
|
+
return d.update({
|
|
3633
3647
|
loading: !1,
|
|
3634
3648
|
selection: [],
|
|
3635
3649
|
dataSource: v
|
|
@@ -3638,7 +3652,7 @@ function Rl(e, t) {
|
|
|
3638
3652
|
return n(j).then((T) => {
|
|
3639
3653
|
let I = r ? r(T) : T;
|
|
3640
3654
|
const L = [...I], C = 0, v = C + l.current.pageSize;
|
|
3641
|
-
I = I.slice(C, v),
|
|
3655
|
+
I = I.slice(C, v), d.update({
|
|
3642
3656
|
selection: [],
|
|
3643
3657
|
dataSource: I,
|
|
3644
3658
|
backupsDataSource: L
|
|
@@ -3647,74 +3661,74 @@ function Rl(e, t) {
|
|
|
3647
3661
|
total: T.length
|
|
3648
3662
|
});
|
|
3649
3663
|
}).finally(() => {
|
|
3650
|
-
|
|
3664
|
+
d.update({ loading: !1 });
|
|
3651
3665
|
});
|
|
3652
3666
|
}, M = async ({
|
|
3653
3667
|
searchFormParams: k,
|
|
3654
|
-
paginationParams:
|
|
3668
|
+
paginationParams: y
|
|
3655
3669
|
}) => {
|
|
3656
|
-
if (
|
|
3670
|
+
if (d.update({ loading: !0, selection: [] }), n)
|
|
3657
3671
|
switch (!!l.current) {
|
|
3658
3672
|
case !0:
|
|
3659
3673
|
return o === !0 ? $({
|
|
3660
3674
|
searchFormParams: k,
|
|
3661
|
-
paginationParams:
|
|
3675
|
+
paginationParams: y
|
|
3662
3676
|
}) : o === !1 ? _({
|
|
3663
3677
|
searchFormParams: k,
|
|
3664
|
-
paginationParams:
|
|
3665
|
-
}) :
|
|
3678
|
+
paginationParams: y
|
|
3679
|
+
}) : p({
|
|
3666
3680
|
searchFormParams: k,
|
|
3667
|
-
paginationParams:
|
|
3681
|
+
paginationParams: y
|
|
3668
3682
|
});
|
|
3669
3683
|
case !1:
|
|
3670
3684
|
return _({
|
|
3671
3685
|
searchFormParams: k,
|
|
3672
|
-
paginationParams:
|
|
3686
|
+
paginationParams: y
|
|
3673
3687
|
});
|
|
3674
3688
|
}
|
|
3675
|
-
return
|
|
3689
|
+
return d.update({ loading: !1 });
|
|
3676
3690
|
};
|
|
3677
3691
|
return {
|
|
3678
|
-
table:
|
|
3692
|
+
table: d,
|
|
3679
3693
|
pagination: i,
|
|
3680
3694
|
firstGetTableData: w,
|
|
3681
|
-
onPaginationChange: (k,
|
|
3695
|
+
onPaginationChange: (k, y) => {
|
|
3682
3696
|
const { validator: j } = t.current;
|
|
3683
3697
|
j().then((P) => {
|
|
3684
3698
|
M({
|
|
3685
3699
|
searchFormParams: P,
|
|
3686
|
-
paginationParams: { current: k, pageSize:
|
|
3700
|
+
paginationParams: { current: k, pageSize: y }
|
|
3687
3701
|
});
|
|
3688
|
-
}), a && a(k,
|
|
3702
|
+
}), a && a(k, y);
|
|
3689
3703
|
},
|
|
3690
3704
|
onAllChange: async (...k) => {
|
|
3691
|
-
const [
|
|
3705
|
+
const [y, j, P, T] = k, I = [];
|
|
3692
3706
|
for (let L = 0; L < I.length && !I[L](); L++)
|
|
3693
3707
|
;
|
|
3694
3708
|
s && s(j, P, T);
|
|
3695
3709
|
},
|
|
3696
3710
|
resetData: async () => {
|
|
3697
|
-
const { resetFields: k, validator:
|
|
3711
|
+
const { resetFields: k, validator: y } = t.current;
|
|
3698
3712
|
return k().then(async () => {
|
|
3699
|
-
const j = await
|
|
3713
|
+
const j = await y();
|
|
3700
3714
|
return M({ searchFormParams: j });
|
|
3701
3715
|
});
|
|
3702
3716
|
},
|
|
3703
3717
|
resetAllData: async () => {
|
|
3704
|
-
const { resetFields: k, validator:
|
|
3718
|
+
const { resetFields: k, validator: y } = t.current;
|
|
3705
3719
|
return k().then(async () => {
|
|
3706
3720
|
const j = {};
|
|
3707
3721
|
if (l.current) {
|
|
3708
3722
|
const { pageSize: P } = l.current;
|
|
3709
3723
|
o === void 0 && (j.paginationParams = { current: 1, pageSize: P });
|
|
3710
3724
|
}
|
|
3711
|
-
return j.searchFormParams = await
|
|
3725
|
+
return j.searchFormParams = await y(), M(j);
|
|
3712
3726
|
});
|
|
3713
3727
|
},
|
|
3714
3728
|
reloadData: async () => {
|
|
3715
3729
|
const { validator: k } = t.current;
|
|
3716
|
-
return k().then((
|
|
3717
|
-
searchFormParams:
|
|
3730
|
+
return k().then((y) => M({
|
|
3731
|
+
searchFormParams: y
|
|
3718
3732
|
}));
|
|
3719
3733
|
}
|
|
3720
3734
|
};
|
|
@@ -3755,9 +3769,9 @@ function Fl(e, t) {
|
|
|
3755
3769
|
o.current && (a(o.current.offsetWidth), l(o.current.offsetHeight));
|
|
3756
3770
|
};
|
|
3757
3771
|
f();
|
|
3758
|
-
const
|
|
3759
|
-
return o.current &&
|
|
3760
|
-
|
|
3772
|
+
const h = new ResizeObserver(f);
|
|
3773
|
+
return o.current && h.observe(o.current), () => {
|
|
3774
|
+
h && o.current && h.unobserve(o.current);
|
|
3761
3775
|
};
|
|
3762
3776
|
}, []);
|
|
3763
3777
|
const u = it(() => t ? r ? { x: s, y: i - 70, ...n } : { x: "max-content", y: i - 70, ...n } : {
|
|
@@ -3814,24 +3828,24 @@ const Cr = () => {
|
|
|
3814
3828
|
container__toolbar: Ml,
|
|
3815
3829
|
container__table: Il,
|
|
3816
3830
|
container__pagination: zl
|
|
3817
|
-
}, kl =
|
|
3831
|
+
}, kl = be(({ tableProps: e, searchFormRef: t, fullHeight: n }, r) => {
|
|
3818
3832
|
const { columns: o } = $l(e), s = B(null), {
|
|
3819
3833
|
table: a,
|
|
3820
3834
|
pagination: i,
|
|
3821
3835
|
firstGetTableData: l,
|
|
3822
3836
|
onPaginationChange: u,
|
|
3823
3837
|
onAllChange: f,
|
|
3824
|
-
resetData:
|
|
3825
|
-
resetAllData:
|
|
3838
|
+
resetData: h,
|
|
3839
|
+
resetAllData: d,
|
|
3826
3840
|
reloadData: w
|
|
3827
|
-
} = Rl(e, t), { rowSelection:
|
|
3841
|
+
} = Rl(e, t), { rowSelection: p } = Ol(e, a), { divRef: _, scroll: $ } = Fl(e, n), { getTopToolbarBindProps: M } = El(e, a), O = () => {
|
|
3828
3842
|
const {
|
|
3829
3843
|
autoRequest: U,
|
|
3830
3844
|
api: G,
|
|
3831
3845
|
formatDataSource: Y,
|
|
3832
3846
|
autoPagination: J,
|
|
3833
3847
|
columns: k,
|
|
3834
|
-
scroll:
|
|
3848
|
+
scroll: y,
|
|
3835
3849
|
pagination: j,
|
|
3836
3850
|
rowSelection: P,
|
|
3837
3851
|
onChange: T,
|
|
@@ -3840,8 +3854,8 @@ const Cr = () => {
|
|
|
3840
3854
|
return I;
|
|
3841
3855
|
};
|
|
3842
3856
|
return l(), Ee(r, () => ({
|
|
3843
|
-
resetData:
|
|
3844
|
-
resetAllData:
|
|
3857
|
+
resetData: h,
|
|
3858
|
+
resetAllData: d,
|
|
3845
3859
|
reloadData: w,
|
|
3846
3860
|
/** 合并一下antd中table实例的方法 */
|
|
3847
3861
|
...s.current
|
|
@@ -3861,7 +3875,7 @@ const Cr = () => {
|
|
|
3861
3875
|
columns: o,
|
|
3862
3876
|
dataSource: a.model.dataSource,
|
|
3863
3877
|
pagination: !1,
|
|
3864
|
-
rowSelection:
|
|
3878
|
+
rowSelection: p,
|
|
3865
3879
|
scroll: $,
|
|
3866
3880
|
onChange: f
|
|
3867
3881
|
}
|
|
@@ -3881,7 +3895,7 @@ const Cr = () => {
|
|
|
3881
3895
|
"xph-table-full-wrapper": "_xph-table-full-wrapper_mdv0g_1",
|
|
3882
3896
|
"full-wrapper__table": "_full-wrapper__table_mdv0g_13"
|
|
3883
3897
|
}, Ll = (e, t) => {
|
|
3884
|
-
const { tableProps: n } = Dl(e), r = B(null), { searchFormRef: o, searchFormProps: s } =
|
|
3898
|
+
const { tableProps: n } = Dl(e), r = B(null), { searchFormRef: o, searchFormProps: s } = yl(n), { crudFormDialogRef: a, crudFormProps: i } = Al(n);
|
|
3885
3899
|
let { fullHeight: l } = n.table;
|
|
3886
3900
|
const { virtual: u } = n.table;
|
|
3887
3901
|
return u && (l = !0), Ee(t, () => ({
|
|
@@ -3907,7 +3921,7 @@ const Cr = () => {
|
|
|
3907
3921
|
) }),
|
|
3908
3922
|
i ? /* @__PURE__ */ g.jsx(vl, { ref: a, ...i }) : null
|
|
3909
3923
|
] });
|
|
3910
|
-
}, Yl =
|
|
3924
|
+
}, Yl = be(Ll);
|
|
3911
3925
|
export {
|
|
3912
3926
|
Wt as XphActions,
|
|
3913
3927
|
vl as XphCrudFormDialog,
|