antd-mobile 5.24.1 → 5.24.2
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/2x/bundle/antd-mobile.cjs.development.js +45 -39
- package/2x/bundle/antd-mobile.cjs.js +6 -6
- package/2x/bundle/antd-mobile.es.development.js +45 -39
- package/2x/bundle/antd-mobile.es.js +28 -35
- package/2x/bundle/antd-mobile.umd.development.js +45 -39
- package/2x/bundle/antd-mobile.umd.js +6 -6
- package/2x/bundle/style.css +1 -0
- package/2x/cjs/components/picker-view/picker-view.css +1 -0
- package/2x/cjs/components/slider/slider.js +1 -1
- package/2x/es/components/picker-view/picker-view.css +1 -0
- package/2x/es/components/slider/slider.js +1 -1
- package/2x/package.json +1 -1
- package/bundle/antd-mobile.cjs.development.js +45 -39
- package/bundle/antd-mobile.cjs.js +6 -6
- package/bundle/antd-mobile.compatible.umd.js +1 -1
- package/bundle/antd-mobile.es.development.js +45 -39
- package/bundle/antd-mobile.es.js +28 -35
- package/bundle/antd-mobile.umd.development.js +45 -39
- package/bundle/antd-mobile.umd.js +6 -6
- package/bundle/style.css +1 -1
- package/cjs/components/picker-view/picker-view.css +1 -0
- package/cjs/components/slider/slider.js +1 -1
- package/es/components/picker-view/picker-view.css +1 -0
- package/es/components/slider/slider.js +1 -1
- package/package.json +1 -1
- package/umd/antd-mobile.js +1 -1
|
@@ -902,7 +902,7 @@ const isDev$1 = isDev;
|
|
|
902
902
|
function useMemoizedFn(fn) {
|
|
903
903
|
if (isDev$1) {
|
|
904
904
|
if (!isFunction$1(fn)) {
|
|
905
|
-
console.error("useMemoizedFn expected parameter is a function, got "
|
|
905
|
+
console.error("useMemoizedFn expected parameter is a function, got ".concat(typeof fn));
|
|
906
906
|
}
|
|
907
907
|
}
|
|
908
908
|
var fnRef = useRef(fn);
|
|
@@ -939,7 +939,7 @@ function useLatest(value) {
|
|
|
939
939
|
var useUnmount = function useUnmount2(fn) {
|
|
940
940
|
if (isDev$1) {
|
|
941
941
|
if (!isFunction$1(fn)) {
|
|
942
|
-
console.error("useUnmount expected parameter is a function, got "
|
|
942
|
+
console.error("useUnmount expected parameter is a function, got ".concat(typeof fn));
|
|
943
943
|
}
|
|
944
944
|
}
|
|
945
945
|
var fnRef = useLatest(fn);
|
|
@@ -1108,7 +1108,7 @@ var throttle_1 = throttle$1;
|
|
|
1108
1108
|
var useMount = function useMount2(fn) {
|
|
1109
1109
|
if (isDev$1) {
|
|
1110
1110
|
if (!isFunction$1(fn)) {
|
|
1111
|
-
console.error('useMount: parameter `fn` expected to be a function, but got "'
|
|
1111
|
+
console.error('useMount: parameter `fn` expected to be a function, but got "'.concat(typeof fn, '".'));
|
|
1112
1112
|
}
|
|
1113
1113
|
}
|
|
1114
1114
|
useEffect(function() {
|
|
@@ -1485,17 +1485,22 @@ var __read$6 = globalThis && globalThis.__read || function(o, n) {
|
|
|
1485
1485
|
}
|
|
1486
1486
|
return ar;
|
|
1487
1487
|
};
|
|
1488
|
-
var
|
|
1489
|
-
|
|
1490
|
-
|
|
1491
|
-
|
|
1492
|
-
|
|
1488
|
+
var __spreadArray$2 = globalThis && globalThis.__spreadArray || function(to2, from, pack) {
|
|
1489
|
+
if (pack || arguments.length === 2)
|
|
1490
|
+
for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
1491
|
+
if (ar || !(i in from)) {
|
|
1492
|
+
if (!ar)
|
|
1493
|
+
ar = Array.prototype.slice.call(from, 0, i);
|
|
1494
|
+
ar[i] = from[i];
|
|
1495
|
+
}
|
|
1496
|
+
}
|
|
1497
|
+
return to2.concat(ar || Array.prototype.slice.call(from));
|
|
1493
1498
|
};
|
|
1494
1499
|
function useDebounceFn(fn, options) {
|
|
1495
1500
|
var _a;
|
|
1496
1501
|
if (isDev$1) {
|
|
1497
1502
|
if (!isFunction$1(fn)) {
|
|
1498
|
-
console.error("useDebounceFn expected parameter is a function, got "
|
|
1503
|
+
console.error("useDebounceFn expected parameter is a function, got ".concat(typeof fn));
|
|
1499
1504
|
}
|
|
1500
1505
|
}
|
|
1501
1506
|
var fnRef = useLatest(fn);
|
|
@@ -1506,7 +1511,7 @@ function useDebounceFn(fn, options) {
|
|
|
1506
1511
|
for (var _i = 0; _i < arguments.length; _i++) {
|
|
1507
1512
|
args[_i] = arguments[_i];
|
|
1508
1513
|
}
|
|
1509
|
-
return fnRef.current.apply(fnRef,
|
|
1514
|
+
return fnRef.current.apply(fnRef, __spreadArray$2([], __read$6(args), false));
|
|
1510
1515
|
}, wait, options);
|
|
1511
1516
|
}, []);
|
|
1512
1517
|
useUnmount$1(function() {
|
|
@@ -2906,11 +2911,16 @@ var __read$3 = globalThis && globalThis.__read || function(o, n) {
|
|
|
2906
2911
|
}
|
|
2907
2912
|
return ar;
|
|
2908
2913
|
};
|
|
2909
|
-
var
|
|
2910
|
-
|
|
2911
|
-
|
|
2912
|
-
|
|
2913
|
-
|
|
2914
|
+
var __spreadArray$1 = globalThis && globalThis.__spreadArray || function(to2, from, pack) {
|
|
2915
|
+
if (pack || arguments.length === 2)
|
|
2916
|
+
for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
2917
|
+
if (ar || !(i in from)) {
|
|
2918
|
+
if (!ar)
|
|
2919
|
+
ar = Array.prototype.slice.call(from, 0, i);
|
|
2920
|
+
ar[i] = from[i];
|
|
2921
|
+
}
|
|
2922
|
+
}
|
|
2923
|
+
return to2.concat(ar || Array.prototype.slice.call(from));
|
|
2914
2924
|
};
|
|
2915
2925
|
function useLockFn(fn) {
|
|
2916
2926
|
var _this = this;
|
|
@@ -2926,32 +2936,22 @@ function useLockFn(fn) {
|
|
|
2926
2936
|
switch (_a.label) {
|
|
2927
2937
|
case 0:
|
|
2928
2938
|
if (lockRef.current)
|
|
2929
|
-
return [
|
|
2930
|
-
2
|
|
2931
|
-
];
|
|
2939
|
+
return [2];
|
|
2932
2940
|
lockRef.current = true;
|
|
2933
2941
|
_a.label = 1;
|
|
2934
2942
|
case 1:
|
|
2935
2943
|
_a.trys.push([1, 3, , 4]);
|
|
2936
|
-
return [
|
|
2937
|
-
4,
|
|
2938
|
-
fn.apply(void 0, __spread$1(args))
|
|
2939
|
-
];
|
|
2944
|
+
return [4, fn.apply(void 0, __spreadArray$1([], __read$3(args), false))];
|
|
2940
2945
|
case 2:
|
|
2941
2946
|
ret = _a.sent();
|
|
2942
2947
|
lockRef.current = false;
|
|
2943
|
-
return [
|
|
2944
|
-
2,
|
|
2945
|
-
ret
|
|
2946
|
-
];
|
|
2948
|
+
return [2, ret];
|
|
2947
2949
|
case 3:
|
|
2948
2950
|
e_1 = _a.sent();
|
|
2949
2951
|
lockRef.current = false;
|
|
2950
2952
|
throw e_1;
|
|
2951
2953
|
case 4:
|
|
2952
|
-
return [
|
|
2953
|
-
2
|
|
2954
|
-
];
|
|
2954
|
+
return [2];
|
|
2955
2955
|
}
|
|
2956
2956
|
});
|
|
2957
2957
|
});
|
|
@@ -3552,17 +3552,22 @@ var __read = globalThis && globalThis.__read || function(o, n) {
|
|
|
3552
3552
|
}
|
|
3553
3553
|
return ar;
|
|
3554
3554
|
};
|
|
3555
|
-
var
|
|
3556
|
-
|
|
3557
|
-
|
|
3558
|
-
|
|
3559
|
-
|
|
3555
|
+
var __spreadArray = globalThis && globalThis.__spreadArray || function(to2, from, pack) {
|
|
3556
|
+
if (pack || arguments.length === 2)
|
|
3557
|
+
for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
3558
|
+
if (ar || !(i in from)) {
|
|
3559
|
+
if (!ar)
|
|
3560
|
+
ar = Array.prototype.slice.call(from, 0, i);
|
|
3561
|
+
ar[i] = from[i];
|
|
3562
|
+
}
|
|
3563
|
+
}
|
|
3564
|
+
return to2.concat(ar || Array.prototype.slice.call(from));
|
|
3560
3565
|
};
|
|
3561
3566
|
function useThrottleFn(fn, options) {
|
|
3562
3567
|
var _a;
|
|
3563
3568
|
if (isDev$1) {
|
|
3564
3569
|
if (!isFunction$1(fn)) {
|
|
3565
|
-
console.error("useThrottleFn expected parameter is a function, got "
|
|
3570
|
+
console.error("useThrottleFn expected parameter is a function, got ".concat(typeof fn));
|
|
3566
3571
|
}
|
|
3567
3572
|
}
|
|
3568
3573
|
var fnRef = useLatest(fn);
|
|
@@ -3573,7 +3578,7 @@ function useThrottleFn(fn, options) {
|
|
|
3573
3578
|
for (var _i = 0; _i < arguments.length; _i++) {
|
|
3574
3579
|
args[_i] = arguments[_i];
|
|
3575
3580
|
}
|
|
3576
|
-
return fnRef.current.apply(fnRef,
|
|
3581
|
+
return fnRef.current.apply(fnRef, __spreadArray([], __read(args), false));
|
|
3577
3582
|
}, wait, options);
|
|
3578
3583
|
}, []);
|
|
3579
3584
|
useUnmount$1(function() {
|
|
@@ -3587,10 +3592,11 @@ function useThrottleFn(fn, options) {
|
|
|
3587
3592
|
}
|
|
3588
3593
|
function useTimeout(fn, delay) {
|
|
3589
3594
|
var fnRef = useLatest(fn);
|
|
3590
|
-
var timerRef = useRef();
|
|
3595
|
+
var timerRef = useRef(null);
|
|
3591
3596
|
useEffect(function() {
|
|
3592
|
-
if (!isNumber(delay) || delay < 0)
|
|
3597
|
+
if (!isNumber(delay) || delay < 0) {
|
|
3593
3598
|
return;
|
|
3599
|
+
}
|
|
3594
3600
|
timerRef.current = setTimeout(function() {
|
|
3595
3601
|
fnRef.current();
|
|
3596
3602
|
}, delay);
|
|
@@ -24110,7 +24116,7 @@ const Slider = (p) => {
|
|
|
24110
24116
|
return Object.keys(marks).map(parseFloat).sort((a, b) => a - b);
|
|
24111
24117
|
} else {
|
|
24112
24118
|
const points = [];
|
|
24113
|
-
for (let i = Big(min2); i.
|
|
24119
|
+
for (let i = Big(min2); i.lte(max2); i = i.plus(step)) {
|
|
24114
24120
|
points.push(i.toNumber());
|
|
24115
24121
|
}
|
|
24116
24122
|
return points;
|
|
@@ -683,7 +683,7 @@ var Bf = function(t) {
|
|
|
683
683
|
}, O3 = !1;
|
|
684
684
|
const hi = O3;
|
|
685
685
|
function an(e) {
|
|
686
|
-
hi && (cr(e) || console.error("useMemoizedFn expected parameter is a function, got "
|
|
686
|
+
hi && (cr(e) || console.error("useMemoizedFn expected parameter is a function, got ".concat(typeof e)));
|
|
687
687
|
var t = M(e);
|
|
688
688
|
t.current = re(function() {
|
|
689
689
|
return e;
|
|
@@ -709,7 +709,7 @@ function vi(e) {
|
|
|
709
709
|
return t.current = e, t;
|
|
710
710
|
}
|
|
711
711
|
var F3 = function(t) {
|
|
712
|
-
hi && (cr(t) || console.error("useUnmount expected parameter is a function, got "
|
|
712
|
+
hi && (cr(t) || console.error("useUnmount expected parameter is a function, got ".concat(typeof t)));
|
|
713
713
|
var n = vi(t);
|
|
714
714
|
K(function() {
|
|
715
715
|
return function() {
|
|
@@ -812,7 +812,7 @@ function sv(e, t, n) {
|
|
|
812
812
|
});
|
|
813
813
|
}
|
|
814
814
|
var lv = sv, cv = function(t) {
|
|
815
|
-
hi && (cr(t) || console.error('useMount: parameter `fn` expected to be a function, but got "'
|
|
815
|
+
hi && (cr(t) || console.error('useMount: parameter `fn` expected to be a function, but got "'.concat(typeof t, '".'))), K(function() {
|
|
816
816
|
t == null || t();
|
|
817
817
|
}, []);
|
|
818
818
|
};
|
|
@@ -1139,19 +1139,20 @@ var bv = globalThis && globalThis.__read || function(e, t) {
|
|
|
1139
1139
|
}
|
|
1140
1140
|
}
|
|
1141
1141
|
return a;
|
|
1142
|
-
}, wv = globalThis && globalThis.
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1142
|
+
}, wv = globalThis && globalThis.__spreadArray || function(e, t, n) {
|
|
1143
|
+
if (n || arguments.length === 2)
|
|
1144
|
+
for (var r = 0, i = t.length, a; r < i; r++)
|
|
1145
|
+
(a || !(r in t)) && (a || (a = Array.prototype.slice.call(t, 0, r)), a[r] = t[r]);
|
|
1146
|
+
return e.concat(a || Array.prototype.slice.call(t));
|
|
1146
1147
|
};
|
|
1147
1148
|
function Ev(e, t) {
|
|
1148
1149
|
var n;
|
|
1149
|
-
hi && (cr(e) || console.error("useDebounceFn expected parameter is a function, got "
|
|
1150
|
+
hi && (cr(e) || console.error("useDebounceFn expected parameter is a function, got ".concat(typeof e)));
|
|
1150
1151
|
var r = vi(e), i = (n = t == null ? void 0 : t.wait) !== null && n !== void 0 ? n : 1e3, a = re(function() {
|
|
1151
1152
|
return Wf(function() {
|
|
1152
1153
|
for (var o = [], s = 0; s < arguments.length; s++)
|
|
1153
1154
|
o[s] = arguments[s];
|
|
1154
|
-
return r.current.apply(r, wv(o));
|
|
1155
|
+
return r.current.apply(r, wv([], bv(o), !1));
|
|
1155
1156
|
}, i, t);
|
|
1156
1157
|
}, []);
|
|
1157
1158
|
return pi(function() {
|
|
@@ -2102,10 +2103,11 @@ var p5 = globalThis && globalThis.__awaiter || function(e, t, n, r) {
|
|
|
2102
2103
|
}
|
|
2103
2104
|
}
|
|
2104
2105
|
return a;
|
|
2105
|
-
}, b5 = globalThis && globalThis.
|
|
2106
|
-
|
|
2107
|
-
|
|
2108
|
-
|
|
2106
|
+
}, b5 = globalThis && globalThis.__spreadArray || function(e, t, n) {
|
|
2107
|
+
if (n || arguments.length === 2)
|
|
2108
|
+
for (var r = 0, i = t.length, a; r < i; r++)
|
|
2109
|
+
(a || !(r in t)) && (a || (a = Array.prototype.slice.call(t, 0, r)), a[r] = t[r]);
|
|
2110
|
+
return e.concat(a || Array.prototype.slice.call(t));
|
|
2109
2111
|
};
|
|
2110
2112
|
function w5(e) {
|
|
2111
2113
|
var t = this, n = M(!1);
|
|
@@ -2118,26 +2120,16 @@ function w5(e) {
|
|
|
2118
2120
|
switch (s.label) {
|
|
2119
2121
|
case 0:
|
|
2120
2122
|
if (n.current)
|
|
2121
|
-
return [
|
|
2122
|
-
2
|
|
2123
|
-
];
|
|
2123
|
+
return [2];
|
|
2124
2124
|
n.current = !0, s.label = 1;
|
|
2125
2125
|
case 1:
|
|
2126
|
-
return s.trys.push([1, 3, , 4]), [
|
|
2127
|
-
4,
|
|
2128
|
-
e.apply(void 0, b5(r))
|
|
2129
|
-
];
|
|
2126
|
+
return s.trys.push([1, 3, , 4]), [4, e.apply(void 0, b5([], y5(r), !1))];
|
|
2130
2127
|
case 2:
|
|
2131
|
-
return a = s.sent(), n.current = !1, [
|
|
2132
|
-
2,
|
|
2133
|
-
a
|
|
2134
|
-
];
|
|
2128
|
+
return a = s.sent(), n.current = !1, [2, a];
|
|
2135
2129
|
case 3:
|
|
2136
2130
|
throw o = s.sent(), n.current = !1, o;
|
|
2137
2131
|
case 4:
|
|
2138
|
-
return [
|
|
2139
|
-
2
|
|
2140
|
-
];
|
|
2132
|
+
return [2];
|
|
2141
2133
|
}
|
|
2142
2134
|
});
|
|
2143
2135
|
});
|
|
@@ -2516,19 +2508,20 @@ var q5 = globalThis && globalThis.__read || function(e, t) {
|
|
|
2516
2508
|
}
|
|
2517
2509
|
}
|
|
2518
2510
|
return a;
|
|
2519
|
-
}, K5 = globalThis && globalThis.
|
|
2520
|
-
|
|
2521
|
-
|
|
2522
|
-
|
|
2511
|
+
}, K5 = globalThis && globalThis.__spreadArray || function(e, t, n) {
|
|
2512
|
+
if (n || arguments.length === 2)
|
|
2513
|
+
for (var r = 0, i = t.length, a; r < i; r++)
|
|
2514
|
+
(a || !(r in t)) && (a || (a = Array.prototype.slice.call(t, 0, r)), a[r] = t[r]);
|
|
2515
|
+
return e.concat(a || Array.prototype.slice.call(t));
|
|
2523
2516
|
};
|
|
2524
2517
|
function Za(e, t) {
|
|
2525
2518
|
var n;
|
|
2526
|
-
hi && (cr(e) || console.error("useThrottleFn expected parameter is a function, got "
|
|
2519
|
+
hi && (cr(e) || console.error("useThrottleFn expected parameter is a function, got ".concat(typeof e)));
|
|
2527
2520
|
var r = vi(e), i = (n = t == null ? void 0 : t.wait) !== null && n !== void 0 ? n : 1e3, a = re(function() {
|
|
2528
2521
|
return lv(function() {
|
|
2529
2522
|
for (var o = [], s = 0; s < arguments.length; s++)
|
|
2530
2523
|
o[s] = arguments[s];
|
|
2531
|
-
return r.current.apply(r, K5(o));
|
|
2524
|
+
return r.current.apply(r, K5([], q5(o), !1));
|
|
2532
2525
|
}, i, t);
|
|
2533
2526
|
}, []);
|
|
2534
2527
|
return pi(function() {
|
|
@@ -2540,7 +2533,7 @@ function Za(e, t) {
|
|
|
2540
2533
|
};
|
|
2541
2534
|
}
|
|
2542
2535
|
function G5(e, t) {
|
|
2543
|
-
var n = vi(e), r = M();
|
|
2536
|
+
var n = vi(e), r = M(null);
|
|
2544
2537
|
K(function() {
|
|
2545
2538
|
if (!(!k3(t) || t < 0))
|
|
2546
2539
|
return r.current = setTimeout(function() {
|
|
@@ -17090,7 +17083,7 @@ const Br = "adm-slider", Ex = {
|
|
|
17090
17083
|
return Object.keys(o).map(parseFloat).sort((O, x) => O - x);
|
|
17091
17084
|
{
|
|
17092
17085
|
const O = [];
|
|
17093
|
-
for (let x = $n(r); x.
|
|
17086
|
+
for (let x = $n(r); x.lte(i); x = x.plus(c))
|
|
17094
17087
|
O.push(x.toNumber());
|
|
17095
17088
|
return O;
|
|
17096
17089
|
}
|
|
@@ -924,7 +924,7 @@
|
|
|
924
924
|
function useMemoizedFn(fn) {
|
|
925
925
|
if (isDev$1) {
|
|
926
926
|
if (!isFunction$1(fn)) {
|
|
927
|
-
console.error("useMemoizedFn expected parameter is a function, got "
|
|
927
|
+
console.error("useMemoizedFn expected parameter is a function, got ".concat(typeof fn));
|
|
928
928
|
}
|
|
929
929
|
}
|
|
930
930
|
var fnRef = React$1.useRef(fn);
|
|
@@ -961,7 +961,7 @@
|
|
|
961
961
|
var useUnmount = function useUnmount2(fn) {
|
|
962
962
|
if (isDev$1) {
|
|
963
963
|
if (!isFunction$1(fn)) {
|
|
964
|
-
console.error("useUnmount expected parameter is a function, got "
|
|
964
|
+
console.error("useUnmount expected parameter is a function, got ".concat(typeof fn));
|
|
965
965
|
}
|
|
966
966
|
}
|
|
967
967
|
var fnRef = useLatest(fn);
|
|
@@ -1130,7 +1130,7 @@
|
|
|
1130
1130
|
var useMount = function useMount2(fn) {
|
|
1131
1131
|
if (isDev$1) {
|
|
1132
1132
|
if (!isFunction$1(fn)) {
|
|
1133
|
-
console.error('useMount: parameter `fn` expected to be a function, but got "'
|
|
1133
|
+
console.error('useMount: parameter `fn` expected to be a function, but got "'.concat(typeof fn, '".'));
|
|
1134
1134
|
}
|
|
1135
1135
|
}
|
|
1136
1136
|
React$1.useEffect(function() {
|
|
@@ -1507,17 +1507,22 @@
|
|
|
1507
1507
|
}
|
|
1508
1508
|
return ar;
|
|
1509
1509
|
};
|
|
1510
|
-
var
|
|
1511
|
-
|
|
1512
|
-
|
|
1513
|
-
|
|
1514
|
-
|
|
1510
|
+
var __spreadArray$2 = globalThis && globalThis.__spreadArray || function(to2, from, pack) {
|
|
1511
|
+
if (pack || arguments.length === 2)
|
|
1512
|
+
for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
1513
|
+
if (ar || !(i in from)) {
|
|
1514
|
+
if (!ar)
|
|
1515
|
+
ar = Array.prototype.slice.call(from, 0, i);
|
|
1516
|
+
ar[i] = from[i];
|
|
1517
|
+
}
|
|
1518
|
+
}
|
|
1519
|
+
return to2.concat(ar || Array.prototype.slice.call(from));
|
|
1515
1520
|
};
|
|
1516
1521
|
function useDebounceFn(fn, options) {
|
|
1517
1522
|
var _a;
|
|
1518
1523
|
if (isDev$1) {
|
|
1519
1524
|
if (!isFunction$1(fn)) {
|
|
1520
|
-
console.error("useDebounceFn expected parameter is a function, got "
|
|
1525
|
+
console.error("useDebounceFn expected parameter is a function, got ".concat(typeof fn));
|
|
1521
1526
|
}
|
|
1522
1527
|
}
|
|
1523
1528
|
var fnRef = useLatest(fn);
|
|
@@ -1528,7 +1533,7 @@
|
|
|
1528
1533
|
for (var _i = 0; _i < arguments.length; _i++) {
|
|
1529
1534
|
args[_i] = arguments[_i];
|
|
1530
1535
|
}
|
|
1531
|
-
return fnRef.current.apply(fnRef,
|
|
1536
|
+
return fnRef.current.apply(fnRef, __spreadArray$2([], __read$6(args), false));
|
|
1532
1537
|
}, wait, options);
|
|
1533
1538
|
}, []);
|
|
1534
1539
|
useUnmount$1(function() {
|
|
@@ -2928,11 +2933,16 @@
|
|
|
2928
2933
|
}
|
|
2929
2934
|
return ar;
|
|
2930
2935
|
};
|
|
2931
|
-
var
|
|
2932
|
-
|
|
2933
|
-
|
|
2934
|
-
|
|
2935
|
-
|
|
2936
|
+
var __spreadArray$1 = globalThis && globalThis.__spreadArray || function(to2, from, pack) {
|
|
2937
|
+
if (pack || arguments.length === 2)
|
|
2938
|
+
for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
2939
|
+
if (ar || !(i in from)) {
|
|
2940
|
+
if (!ar)
|
|
2941
|
+
ar = Array.prototype.slice.call(from, 0, i);
|
|
2942
|
+
ar[i] = from[i];
|
|
2943
|
+
}
|
|
2944
|
+
}
|
|
2945
|
+
return to2.concat(ar || Array.prototype.slice.call(from));
|
|
2936
2946
|
};
|
|
2937
2947
|
function useLockFn(fn) {
|
|
2938
2948
|
var _this = this;
|
|
@@ -2948,32 +2958,22 @@
|
|
|
2948
2958
|
switch (_a.label) {
|
|
2949
2959
|
case 0:
|
|
2950
2960
|
if (lockRef.current)
|
|
2951
|
-
return [
|
|
2952
|
-
2
|
|
2953
|
-
];
|
|
2961
|
+
return [2];
|
|
2954
2962
|
lockRef.current = true;
|
|
2955
2963
|
_a.label = 1;
|
|
2956
2964
|
case 1:
|
|
2957
2965
|
_a.trys.push([1, 3, , 4]);
|
|
2958
|
-
return [
|
|
2959
|
-
4,
|
|
2960
|
-
fn.apply(void 0, __spread$1(args))
|
|
2961
|
-
];
|
|
2966
|
+
return [4, fn.apply(void 0, __spreadArray$1([], __read$3(args), false))];
|
|
2962
2967
|
case 2:
|
|
2963
2968
|
ret = _a.sent();
|
|
2964
2969
|
lockRef.current = false;
|
|
2965
|
-
return [
|
|
2966
|
-
2,
|
|
2967
|
-
ret
|
|
2968
|
-
];
|
|
2970
|
+
return [2, ret];
|
|
2969
2971
|
case 3:
|
|
2970
2972
|
e_1 = _a.sent();
|
|
2971
2973
|
lockRef.current = false;
|
|
2972
2974
|
throw e_1;
|
|
2973
2975
|
case 4:
|
|
2974
|
-
return [
|
|
2975
|
-
2
|
|
2976
|
-
];
|
|
2976
|
+
return [2];
|
|
2977
2977
|
}
|
|
2978
2978
|
});
|
|
2979
2979
|
});
|
|
@@ -3574,17 +3574,22 @@
|
|
|
3574
3574
|
}
|
|
3575
3575
|
return ar;
|
|
3576
3576
|
};
|
|
3577
|
-
var
|
|
3578
|
-
|
|
3579
|
-
|
|
3580
|
-
|
|
3581
|
-
|
|
3577
|
+
var __spreadArray = globalThis && globalThis.__spreadArray || function(to2, from, pack) {
|
|
3578
|
+
if (pack || arguments.length === 2)
|
|
3579
|
+
for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
3580
|
+
if (ar || !(i in from)) {
|
|
3581
|
+
if (!ar)
|
|
3582
|
+
ar = Array.prototype.slice.call(from, 0, i);
|
|
3583
|
+
ar[i] = from[i];
|
|
3584
|
+
}
|
|
3585
|
+
}
|
|
3586
|
+
return to2.concat(ar || Array.prototype.slice.call(from));
|
|
3582
3587
|
};
|
|
3583
3588
|
function useThrottleFn(fn, options) {
|
|
3584
3589
|
var _a;
|
|
3585
3590
|
if (isDev$1) {
|
|
3586
3591
|
if (!isFunction$1(fn)) {
|
|
3587
|
-
console.error("useThrottleFn expected parameter is a function, got "
|
|
3592
|
+
console.error("useThrottleFn expected parameter is a function, got ".concat(typeof fn));
|
|
3588
3593
|
}
|
|
3589
3594
|
}
|
|
3590
3595
|
var fnRef = useLatest(fn);
|
|
@@ -3595,7 +3600,7 @@
|
|
|
3595
3600
|
for (var _i = 0; _i < arguments.length; _i++) {
|
|
3596
3601
|
args[_i] = arguments[_i];
|
|
3597
3602
|
}
|
|
3598
|
-
return fnRef.current.apply(fnRef,
|
|
3603
|
+
return fnRef.current.apply(fnRef, __spreadArray([], __read(args), false));
|
|
3599
3604
|
}, wait, options);
|
|
3600
3605
|
}, []);
|
|
3601
3606
|
useUnmount$1(function() {
|
|
@@ -3609,10 +3614,11 @@
|
|
|
3609
3614
|
}
|
|
3610
3615
|
function useTimeout(fn, delay) {
|
|
3611
3616
|
var fnRef = useLatest(fn);
|
|
3612
|
-
var timerRef = React$1.useRef();
|
|
3617
|
+
var timerRef = React$1.useRef(null);
|
|
3613
3618
|
React$1.useEffect(function() {
|
|
3614
|
-
if (!isNumber(delay) || delay < 0)
|
|
3619
|
+
if (!isNumber(delay) || delay < 0) {
|
|
3615
3620
|
return;
|
|
3621
|
+
}
|
|
3616
3622
|
timerRef.current = setTimeout(function() {
|
|
3617
3623
|
fnRef.current();
|
|
3618
3624
|
}, delay);
|
|
@@ -24132,7 +24138,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
24132
24138
|
return Object.keys(marks).map(parseFloat).sort((a, b) => a - b);
|
|
24133
24139
|
} else {
|
|
24134
24140
|
const points = [];
|
|
24135
|
-
for (let i = Big(min2); i.
|
|
24141
|
+
for (let i = Big(min2); i.lte(max2); i = i.plus(step)) {
|
|
24136
24142
|
points.push(i.toNumber());
|
|
24137
24143
|
}
|
|
24138
24144
|
return points;
|