@ccs-ui/rc-pro 1.1.25-beta-2 → 1.1.25-beta-3
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/es/aj-captcha/index.js +4 -7
- package/package.json +1 -1
package/es/aj-captcha/index.js
CHANGED
|
@@ -14,10 +14,10 @@ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o =
|
|
|
14
14
|
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
15
15
|
function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
|
|
16
16
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
17
|
-
import { Button, Modal, Spin, theme } from 'antd';
|
|
18
|
-
import { useEffect, useRef, useState } from 'react';
|
|
19
17
|
import { CloseOutlined, LeftOutlined, LoadingOutlined, ReloadOutlined, RightOutlined } from '@ant-design/icons';
|
|
20
18
|
import { useEventListener } from 'ahooks';
|
|
19
|
+
import { Button, Modal, Spin, theme } from 'antd';
|
|
20
|
+
import { useEffect, useRef, useState } from 'react';
|
|
21
21
|
import "./index.less";
|
|
22
22
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
23
23
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
@@ -48,7 +48,6 @@ function AjCaptchaSliding(_ref2) {
|
|
|
48
48
|
onCancel = _ref2.onCancel,
|
|
49
49
|
onRefresh = _ref2.onRefresh;
|
|
50
50
|
var sliderBarRef = useRef(null);
|
|
51
|
-
var sliderRef = useRef(null);
|
|
52
51
|
var sliderImgRef = useRef(null);
|
|
53
52
|
var moveRef = useRef({
|
|
54
53
|
start: false,
|
|
@@ -91,7 +90,7 @@ function AjCaptchaSliding(_ref2) {
|
|
|
91
90
|
onChangePosition(offsetX);
|
|
92
91
|
}
|
|
93
92
|
}, {
|
|
94
|
-
target:
|
|
93
|
+
target: document
|
|
95
94
|
});
|
|
96
95
|
|
|
97
96
|
// 结束
|
|
@@ -104,7 +103,7 @@ function AjCaptchaSliding(_ref2) {
|
|
|
104
103
|
}, 'sliding');
|
|
105
104
|
moveRef.current.start = false;
|
|
106
105
|
}, {
|
|
107
|
-
target:
|
|
106
|
+
target: document
|
|
108
107
|
});
|
|
109
108
|
|
|
110
109
|
// 离开
|
|
@@ -161,7 +160,6 @@ function AjCaptchaSliding(_ref2) {
|
|
|
161
160
|
})]
|
|
162
161
|
}), /*#__PURE__*/_jsxs("div", {
|
|
163
162
|
className: "ccs-aj-slider",
|
|
164
|
-
ref: sliderRef,
|
|
165
163
|
style: {
|
|
166
164
|
background: token.colorBgElevated
|
|
167
165
|
},
|
|
@@ -219,7 +217,6 @@ function AjCaptchaWord(_ref3) {
|
|
|
219
217
|
}, [points.length]);
|
|
220
218
|
var _useToken2 = useToken(),
|
|
221
219
|
token = _useToken2.token;
|
|
222
|
-
console.log('token', token);
|
|
223
220
|
return /*#__PURE__*/_jsxs(Spin, {
|
|
224
221
|
indicator: /*#__PURE__*/_jsx(LoadingOutlined, {
|
|
225
222
|
style: {
|