rc-animate
Advanced tools
Comparing version 2.5.3 to 2.6.0-beta.1
@@ -196,3 +196,4 @@ import _defineProperty from 'babel-runtime/helpers/defineProperty'; | ||
visible = _props.visible, | ||
removeOnLeave = _props.removeOnLeave; | ||
removeOnLeave = _props.removeOnLeave, | ||
leavedClassName = _props.leavedClassName; | ||
@@ -203,3 +204,9 @@ | ||
if (status === STATUS_NONE || !isSupportTransition(this.props)) { | ||
return visible || !removeOnLeave ? children({}) : null; | ||
if (visible) { | ||
return children({}); | ||
} else if (!removeOnLeave) { | ||
return children({ className: leavedClassName }); | ||
} | ||
return null; | ||
} | ||
@@ -266,2 +273,3 @@ | ||
removeOnLeave: PropTypes.bool, | ||
leavedClassName: PropTypes.string, | ||
onAppearStart: PropTypes.func, | ||
@@ -268,0 +276,0 @@ onAppearActive: PropTypes.func, |
@@ -240,3 +240,4 @@ 'use strict'; | ||
visible = _props.visible, | ||
removeOnLeave = _props.removeOnLeave; | ||
removeOnLeave = _props.removeOnLeave, | ||
leavedClassName = _props.leavedClassName; | ||
@@ -247,3 +248,9 @@ | ||
if (status === STATUS_NONE || !isSupportTransition(this.props)) { | ||
return visible || !removeOnLeave ? children({}) : null; | ||
if (visible) { | ||
return children({}); | ||
} else if (!removeOnLeave) { | ||
return children({ className: leavedClassName }); | ||
} | ||
return null; | ||
} | ||
@@ -309,2 +316,3 @@ | ||
removeOnLeave: _propTypes2['default'].bool, | ||
leavedClassName: _propTypes2['default'].string, | ||
onAppearStart: _propTypes2['default'].func, | ||
@@ -311,0 +319,0 @@ onAppearActive: _propTypes2['default'].func, |
{ | ||
"name": "rc-animate", | ||
"version": "2.5.3", | ||
"version": "2.6.0-beta.1", | ||
"description": "css-transition 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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
72207
1773
1