react-mobile-datepicker
Advanced tools
Comparing version 2.0.2 to 2.0.3
@@ -0,1 +1,7 @@ | ||
v2.0.3 - Tue, 12 Jul 2016 09:15:00 GMT | ||
-------------------------------------- | ||
- | ||
v2.0.2 - Tue, 05 Jul 2016 00:48:26 GMT | ||
@@ -2,0 +8,0 @@ -------------------------------------- |
@@ -17,3 +17,2 @@ /** | ||
this.state = { | ||
angle: 0, | ||
date: this._productDate(props.date), | ||
@@ -28,3 +27,17 @@ minDate: this._productDate(props.minDate), | ||
componentWillReceiveProps(nextProps) { | ||
this.setState({ | ||
date: this._productDate(nextProps.date), | ||
minDate: this._productDate(nextProps.minDate), | ||
maxDate: this._productDate(nextProps.maxDate), | ||
}); | ||
} | ||
shouldComponentUpdate(nextProps, nextState) { | ||
return nextState.date.timestamp !== this.state.date.timestamp || | ||
nextProps.date !== this.props.date || | ||
nextProps.minDate !== this.props.minDate || | ||
nextProps.maxDate !== this.props.maxDate; | ||
} | ||
_productDate(date) { | ||
@@ -31,0 +44,0 @@ const nDate = nextDate(date, 0); |
{ | ||
"name": "react-mobile-datepicker", | ||
"version": "2.0.2", | ||
"version": "2.0.3", | ||
"description": "一个移动端时间选择器react组件", | ||
@@ -62,5 +62,3 @@ "main": "./dist/mobile-datepicker.js", | ||
"webpack-dev-server": "^1.14.1", | ||
"webpack-merge": "^0.12.0" | ||
}, | ||
"dependencies": { | ||
"webpack-merge": "^0.12.0", | ||
"react": "^15.2.0", | ||
@@ -67,0 +65,0 @@ "react-dom": "^15.2.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
102503
1
1179
37
- Removedreact@^15.2.0
- Removedreact-dom@^15.2.0
- Removedreact-dom@15.7.0(transitive)