Skip to content

Commit

Permalink
ver. 1.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
光弘 committed May 9, 2018
1 parent 206890c commit 943d8a7
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
4 changes: 4 additions & 0 deletions HISTORY.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
# history


## 1.3.0

* `CHANGED` item support className

## 1.2.4

* `CHANGED` style adjustment(disabled enhancement)
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "uxcore-checkbox-group",
"version": "1.2.4",
"version": "1.3.0",
"description": "uxcore-checkbox-group component for uxcore.",
"repository": "https://github.com/uxcore/uxcore-checkbox-group.git",
"author": "eternalsky",
Expand Down
4 changes: 3 additions & 1 deletion src/CheckboxItem.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class CheckboxItem extends React.Component {
}
render() {
const me = this;
const { prefixCls } = me.props;
const { prefixCls, className } = me.props;
let disabled = false;
if (me.props.disabled !== undefined) {
disabled = me.props.disabled;
Expand All @@ -21,6 +21,7 @@ class CheckboxItem extends React.Component {
<label
className={classnames(`${prefixCls}`, {
[`${prefixCls}__disabled`]: disabled,
[className]: !!className,
})}
>
<input
Expand Down Expand Up @@ -50,6 +51,7 @@ CheckboxItem.propTypes = {
value: PropTypes.string,
disabled: PropTypes.bool,
prefixCls: PropTypes.string,
className: PropTypes.string,
onChange: PropTypes.func,
};

Expand Down

0 comments on commit 943d8a7

Please sign in to comment.