@ccs-ui/rc-pro 1.1.24-beta-19 → 1.1.24

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.
@@ -14,11 +14,11 @@ 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 } from 'antd';
18
- import "./index.less";
19
- import { useEffect, useRef, useState } from 'react';
20
17
  import { CloseOutlined, LeftOutlined, LoadingOutlined, ReloadOutlined, RightOutlined } from '@ant-design/icons';
21
18
  import { useEventListener } from 'ahooks';
19
+ import { Button, Modal, Spin } from 'antd';
20
+ import { useEffect, useRef, useState } from 'react';
21
+ import "./index.less";
22
22
  import { jsx as _jsx } from "react/jsx-runtime";
23
23
  import { jsxs as _jsxs } from "react/jsx-runtime";
24
24
  import { Fragment as _Fragment } from "react/jsx-runtime";
@@ -47,6 +47,7 @@ function AjCaptchaSliding(_ref2) {
47
47
  onCancel = _ref2.onCancel,
48
48
  onRefresh = _ref2.onRefresh;
49
49
  var sliderBarRef = useRef(null);
50
+ var sliderRef = useRef(null);
50
51
  var sliderImgRef = useRef(null);
51
52
  var moveRef = useRef({
52
53
  start: false,
@@ -89,7 +90,7 @@ function AjCaptchaSliding(_ref2) {
89
90
  onChangePosition(offsetX);
90
91
  }
91
92
  }, {
92
- target: sliderBarRef
93
+ target: sliderRef
93
94
  });
94
95
 
95
96
  // 结束
@@ -102,15 +103,18 @@ function AjCaptchaSliding(_ref2) {
102
103
  }, 'sliding');
103
104
  moveRef.current.start = false;
104
105
  }, {
105
- target: sliderBarRef
106
+ target: sliderRef
106
107
  });
107
108
 
108
109
  // 离开
109
- useEventListener('mouseleave', function () {
110
- moveRef.current.start = false;
111
- }, {
112
- target: sliderBarRef
113
- });
110
+ // useEventListener(
111
+ // 'mouseleave',
112
+ // () => {
113
+ // moveRef.current.start = false;
114
+ // },
115
+ // { target: sliderBarRef },
116
+ // );
117
+
114
118
  return /*#__PURE__*/_jsxs(Spin, {
115
119
  indicator: /*#__PURE__*/_jsx(LoadingOutlined, {
116
120
  style: {
@@ -151,6 +155,7 @@ function AjCaptchaSliding(_ref2) {
151
155
  })]
152
156
  }), /*#__PURE__*/_jsxs("div", {
153
157
  className: "ccs-aj-slider",
158
+ ref: sliderRef,
154
159
  children: [/*#__PURE__*/_jsx("div", {
155
160
  className: "ccs-aj-slider-track",
156
161
  children: "\u6309\u4F4F\u6ED1\u5757\uFF0C\u62D6\u52A8\u5B8C\u6210\u4E0A\u65B9\u62FC\u56FE"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ccs-ui/rc-pro",
3
- "version": "1.1.24-beta-19",
3
+ "version": "1.1.24",
4
4
  "description": "修复table双滚动条问题;修复modal按钮无间距问题;修改antd组件过期参数使用问题;修复ccs date-picker插件bug;colorful 主题组件样式调整;添加单页布局模式;倒计时按钮组件添加实例方法;添加滑块验证码组件;",
5
5
  "license": "MIT",
6
6
  "author": {