From cff87688f8c800f8144d25a76c4485befee3ce3e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=85=89=E5=BC=98?= Date: Thu, 13 Sep 2018 15:09:54 +0800 Subject: [PATCH] ver. 0.1.12 --- HISTORY.md | 5 +++++ package.json | 4 ++-- src/Switch.jsx | 11 ++++++++--- 3 files changed, 15 insertions(+), 5 deletions(-) diff --git a/HISTORY.md b/HISTORY.md index 1f02444..7a1b9c3 100644 --- a/HISTORY.md +++ b/HISTORY.md @@ -1,3 +1,8 @@ +## 0.1.12 + +* `CHANGED` fix `rc-switch` version to `~1.7.0` to avoid style breaking change +* `FIXED` some eslint error + ## 0.1.8 * `CHANGED` support new prop `loading` diff --git a/package.json b/package.json index 044e2ee..78ff30e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "uxcore-switch", - "version": "0.1.11", + "version": "0.1.12", "description": "uxcore-switch component for uxcore.", "repository": "https://github.com/uxcore/uxcore-switch.git", "author": "eternalsky", @@ -47,7 +47,7 @@ "dependencies": { "classnames": "^2.1.2", "object-assign": "^4.0.0", - "rc-switch": "^1.6.0" + "rc-switch": "~1.7.0" }, "contributors": [], "license": "MIT" diff --git a/src/Switch.jsx b/src/Switch.jsx index 802810c..62b5bb7 100644 --- a/src/Switch.jsx +++ b/src/Switch.jsx @@ -13,13 +13,18 @@ import PropTypes from 'prop-types'; class Switch extends React.Component { render() { - const { loading, className, disabled, ...otherProps } = this.props; + const { + loading, className, disabled, prefixCls, checkedChildren, unCheckedChildren, ...otherProps + } = this.props; return (