rc-notification
Advanced tools
Comparing version 1.3.3 to 1.3.4
@@ -23,5 +23,5 @@ 'use strict'; | ||
propTypes: { | ||
duration: _react2["default"].PropTypes.number, | ||
onClose: _react2["default"].PropTypes.func, | ||
children: _react2["default"].PropTypes.any | ||
duration: _react.PropTypes.number, | ||
onClose: _react.PropTypes.func, | ||
children: _react.PropTypes.any | ||
}, | ||
@@ -32,2 +32,3 @@ | ||
onEnd: function onEnd() {}, | ||
onClose: function onClose() {}, | ||
@@ -43,3 +44,2 @@ duration: 1.5, | ||
this.clearCloseTimer(); | ||
if (this.props.duration) { | ||
@@ -51,5 +51,2 @@ this.closeTimer = setTimeout(function () { | ||
}, | ||
componentDidUpdate: function componentDidUpdate() { | ||
this.componentDidMount(); | ||
}, | ||
componentWillUnmount: function componentWillUnmount() { | ||
@@ -80,3 +77,3 @@ this.clearCloseTimer(); | ||
{ className: componentClass + '-content' }, | ||
this.props.children | ||
props.children | ||
), | ||
@@ -83,0 +80,0 @@ props.closable ? _react2["default"].createElement( |
@@ -44,2 +44,10 @@ 'use strict'; | ||
displayName: 'Notification', | ||
propTypes: { | ||
prefixCls: _react.PropTypes.string, | ||
transitionName: _react.PropTypes.string, | ||
animation: _react.PropTypes.oneOfType([_react.PropTypes.string, _react.PropTypes.object]), | ||
style: _react.PropTypes.object | ||
}, | ||
getDefaultProps: function getDefaultProps() { | ||
@@ -46,0 +54,0 @@ return { |
{ | ||
"name": "rc-notification", | ||
"version": "1.3.3", | ||
"version": "1.3.4", | ||
"description": "notification 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
15350
311