mirror of
https://github.com/ant-design/ant-design.git
synced 2025-01-18 22:36:31 +08:00
fix code style
This commit is contained in:
parent
a535238d68
commit
138a7a9c54
@ -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 ||
|
||||
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user