fix code style

This commit is contained in:
afc163 2016-07-15 14:01:51 +08:00
parent a535238d68
commit 138a7a9c54
2 changed files with 2 additions and 1 deletions

View File

@ -53,6 +53,7 @@ export default class Transfer extends React.Component {
rightCheckedKeys: [],
};
}
componentWillReceiveProps(nextProps) {
const { leftCheckedKeys, rightCheckedKeys } = this.state;
if (nextProps.targetKeys !== this.props.targetKeys ||

View File

@ -148,7 +148,7 @@ export default class TransferList extends React.Component {
}
return (
<li onClick={() => { this.handleSelect(item); }} key={item.key} title={renderedText}>
<li onClick={() => this.handleSelect(item)} key={item.key} title={renderedText}>
<Checkbox checked={checkedKeys.some(key => key === item.key)} />
<span>{renderedEl}</span>
</li>