rc-progress
Advanced tools
Comparing version 2.0.1 to 2.0.2
@@ -26,2 +26,10 @@ 'use strict'; | ||
}, | ||
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(); | ||
}, | ||
render: function render() { | ||
@@ -71,2 +79,3 @@ var _props = this.props; | ||
fillOpacity: '0', | ||
ref: 'path', | ||
style: pathStyle | ||
@@ -73,0 +82,0 @@ }) |
@@ -26,2 +26,10 @@ 'use strict'; | ||
}, | ||
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(); | ||
}, | ||
render: function render() { | ||
@@ -75,2 +83,3 @@ var _props = this.props; | ||
fillOpacity: '0', | ||
ref: 'path', | ||
style: pathStyle | ||
@@ -77,0 +86,0 @@ }) |
{ | ||
"name": "rc-progress", | ||
"version": "2.0.1", | ||
"version": "2.0.2", | ||
"description": "progress ui component for react", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -117,2 +117,8 @@ # rc-progress | ||
## Installation | ||
``` | ||
npm install --save rc-progress | ||
``` | ||
## Development | ||
@@ -119,0 +125,0 @@ |
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
12374
182
133