rc-notification
Advanced tools
Comparing version 1.4.3 to 2.0.0
@@ -92,2 +92,6 @@ import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties'; | ||
var className = (_className = {}, _defineProperty(_className, props.prefixCls, 1), _defineProperty(_className, props.className, !!props.className), _className); | ||
var animateProps = {}; | ||
if (this.state.notices.length <= 1) { | ||
animateProps.component = ''; | ||
} | ||
return React.createElement( | ||
@@ -98,3 +102,3 @@ 'div', | ||
Animate, | ||
{ transitionName: this.getTransitionName() }, | ||
_extends({ transitionName: this.getTransitionName() }, animateProps), | ||
noticeNodes | ||
@@ -101,0 +105,0 @@ ) |
@@ -0,3 +1,7 @@ | ||
## 2.0.0 | ||
- [Beack Change] Remove wrapper span element when just single notification. [#17](https://github.com/react-component/notification/pull/17) | ||
## 1.4.0 | ||
- Added `getContainer` property. |
@@ -141,2 +141,6 @@ 'use strict'; | ||
var className = (_className = {}, (0, _defineProperty3['default'])(_className, props.prefixCls, 1), (0, _defineProperty3['default'])(_className, props.className, !!props.className), _className); | ||
var animateProps = {}; | ||
if (this.state.notices.length <= 1) { | ||
animateProps.component = ''; | ||
} | ||
return _react2['default'].createElement( | ||
@@ -147,3 +151,3 @@ 'div', | ||
_rcAnimate2['default'], | ||
{ transitionName: this.getTransitionName() }, | ||
(0, _extends3['default'])({ transitionName: this.getTransitionName() }, animateProps), | ||
noticeNodes | ||
@@ -150,0 +154,0 @@ ) |
{ | ||
"name": "rc-notification", | ||
"version": "1.4.3", | ||
"version": "2.0.0", | ||
"description": "notification ui component for react", | ||
@@ -41,7 +41,7 @@ "keywords": [ | ||
"lint": "rc-tools run lint", | ||
"karma": "rc-tools run karma", | ||
"saucelabs": "rc-tools run saucelabs", | ||
"test": "rc-tools run test", | ||
"chrome-test": "rc-tools run chrome-test", | ||
"coverage": "rc-tools run coverage" | ||
"karma": "rc-test run karma", | ||
"saucelabs": "rc-test run saucelabs", | ||
"test": "rc-test run test", | ||
"chrome-test": "rc-test run chrome-test", | ||
"coverage": "rc-test run coverage" | ||
}, | ||
@@ -52,2 +52,3 @@ "devDependencies": { | ||
"rc-tools": "6.x", | ||
"rc-test": "^6.0.1", | ||
"react": "15.x", | ||
@@ -54,0 +55,0 @@ "react-dom": "15.x" |
@@ -144,3 +144,3 @@ # rc-notification | ||
<td>Object</td> | ||
<td>{right: '50%'}</td> | ||
<td> { top: 65, left: '50%' } </td> | ||
<td>additional style for single notice node.</td> | ||
@@ -147,0 +147,0 @@ </tr> |
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
27964
589
6