Browse Source

fix code style

pull/2452/head
afc163 8 years ago
parent
commit
138a7a9c54
  1. 1
      components/transfer/index.jsx
  2. 2
      components/transfer/list.jsx

1
components/transfer/index.jsx

@ -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 ||

2
components/transfer/list.jsx

@ -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…
Cancel
Save