rc-progress
Advanced tools
Comparing version 2.0.2 to 2.0.3
@@ -13,23 +13,15 @@ 'use strict'; | ||
var _props2 = require('./props'); | ||
var _mixin = require('./mixin'); | ||
var _mixin2 = _interopRequireDefault(_mixin); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } | ||
function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; } | ||
function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; } /* eslint-disable react/prop-types */ | ||
exports["default"] = _react2["default"].createClass({ | ||
displayName: 'Circle', | ||
propTypes: _props2.propTypes, | ||
getDefaultProps: function getDefaultProps() { | ||
return _props2.defaultProps; | ||
}, | ||
componentDidUpdate: function componentDidUpdate() { | ||
var now = Date.now(); | ||
this.refs.path.style.transitionDuration = '0.6s, 0.6s'; | ||
if (this.prevTimeStamp && now - this.prevTimeStamp < 600) { | ||
this.refs.path.style.transitionDuration = '0s, 0s'; | ||
} | ||
this.prevTimeStamp = Date.now(); | ||
}, | ||
mixins: [_mixin2["default"]], | ||
render: function render() { | ||
@@ -55,3 +47,3 @@ var _props = this.props; | ||
strokeDashoffset: (100 - percent) / 100 * len + 'px', | ||
transition: 'stroke-dashoffset 0.6s ease 0s, stroke 0.6s ease' | ||
transition: 'stroke-dashoffset 0.3s ease 0s, stroke 0.3s ease' | ||
}; | ||
@@ -58,0 +50,0 @@ |
@@ -13,23 +13,15 @@ 'use strict'; | ||
var _props2 = require('./props'); | ||
var _mixin = require('./mixin'); | ||
var _mixin2 = _interopRequireDefault(_mixin); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } | ||
function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; } | ||
function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; } /* eslint-disable react/prop-types */ | ||
exports["default"] = _react2["default"].createClass({ | ||
displayName: 'Line', | ||
propTypes: _props2.propTypes, | ||
getDefaultProps: function getDefaultProps() { | ||
return _props2.defaultProps; | ||
}, | ||
componentDidUpdate: function componentDidUpdate() { | ||
var now = Date.now(); | ||
this.refs.path.style.transitionDuration = '0.6s, 0.6s'; | ||
if (this.prevTimeStamp && now - this.prevTimeStamp < 600) { | ||
this.refs.path.style.transitionDuration = '0s, 0s'; | ||
} | ||
this.prevTimeStamp = Date.now(); | ||
}, | ||
mixins: [_mixin2["default"]], | ||
render: function render() { | ||
@@ -52,3 +44,3 @@ var _props = this.props; | ||
strokeDashoffset: 100 - percent + 'px', | ||
transition: 'stroke-dashoffset 0.6s ease 0s, stroke 0.6s linear' | ||
transition: 'stroke-dashoffset 0.3s ease 0s, stroke 0.3s linear' | ||
}; | ||
@@ -55,0 +47,0 @@ |
{ | ||
"name": "rc-progress", | ||
"version": "2.0.2", | ||
"version": "2.0.3", | ||
"description": "progress ui component for react", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
12118
174