Comparing version 1.6.0 to 1.7.0
@@ -89,6 +89,7 @@ import _extends from 'babel-runtime/helpers/extends'; | ||
disabled = _props2.disabled, | ||
loadingIcon = _props2.loadingIcon, | ||
checkedChildren = _props2.checkedChildren, | ||
tabIndex = _props2.tabIndex, | ||
unCheckedChildren = _props2.unCheckedChildren, | ||
restProps = _objectWithoutProperties(_props2, ['className', 'prefixCls', 'disabled', 'checkedChildren', 'tabIndex', 'unCheckedChildren']); | ||
restProps = _objectWithoutProperties(_props2, ['className', 'prefixCls', 'disabled', 'loadingIcon', 'checkedChildren', 'tabIndex', 'unCheckedChildren']); | ||
@@ -108,2 +109,3 @@ var checked = this.state.checked; | ||
}), | ||
loadingIcon, | ||
React.createElement( | ||
@@ -171,3 +173,4 @@ 'span', | ||
defaultChecked: PropTypes.bool, | ||
autoFocus: PropTypes.bool | ||
autoFocus: PropTypes.bool, | ||
loadingIcon: PropTypes.node | ||
}; | ||
@@ -174,0 +177,0 @@ |
@@ -0,1 +1,5 @@ | ||
## 1.7.0 | ||
- Add `loadingIcon`. | ||
## 1.6.0 | ||
@@ -2,0 +6,0 @@ |
@@ -124,6 +124,7 @@ 'use strict'; | ||
disabled = _props2.disabled, | ||
loadingIcon = _props2.loadingIcon, | ||
checkedChildren = _props2.checkedChildren, | ||
tabIndex = _props2.tabIndex, | ||
unCheckedChildren = _props2.unCheckedChildren, | ||
restProps = (0, _objectWithoutProperties3['default'])(_props2, ['className', 'prefixCls', 'disabled', 'checkedChildren', 'tabIndex', 'unCheckedChildren']); | ||
restProps = (0, _objectWithoutProperties3['default'])(_props2, ['className', 'prefixCls', 'disabled', 'loadingIcon', 'checkedChildren', 'tabIndex', 'unCheckedChildren']); | ||
@@ -143,2 +144,3 @@ var checked = this.state.checked; | ||
}), | ||
loadingIcon, | ||
_react2['default'].createElement( | ||
@@ -205,3 +207,4 @@ 'span', | ||
defaultChecked: _propTypes2['default'].bool, | ||
autoFocus: _propTypes2['default'].bool | ||
autoFocus: _propTypes2['default'].bool, | ||
loadingIcon: _propTypes2['default'].node | ||
}; | ||
@@ -208,0 +211,0 @@ |
{ | ||
"name": "rc-switch", | ||
"version": "1.6.0", | ||
"version": "1.7.0", | ||
"description": "switch ui component for react", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -104,2 +104,14 @@ # rc-switch | ||
</tr> | ||
<tr> | ||
<td>disabled</td> | ||
<td>boolean</td> | ||
<td>false</td> | ||
<td>whether switch is disabled</td> | ||
</tr> | ||
<tr> | ||
<td>loadingIcon</td> | ||
<td>React.ReactNode</td> | ||
<td></td> | ||
<td>specific the extra node. generally used in loading icon.</td> | ||
</tr> | ||
</tbody> | ||
@@ -106,0 +118,0 @@ </table> |
Sorry, the diff of this file is not supported yet
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
131
0
19989
443