U web update

pull/22/head
雷二猛 2019-12-05 22:23:55 +08:00
parent 5af447d3af
commit 46015147cd
1 changed files with 1 additions and 5 deletions

View File

@ -11,8 +11,6 @@ class ComForm extends React.Component {
super(props);
this.state = {
loading: false,
targetKeys: [],
dataSource: contactStore.records.map(x => ({key: x.id, title: x.name}))
}
}
@ -60,9 +58,7 @@ class ComForm extends React.Component {
<Transfer
titles={['已有联系人', '已选联系人']}
listStyle={{width: 199}}
dataSource={this.state.dataSource}
targetKeys={this.state.targetKeys}
onChange={v => this.setState({targetKeys: v})}
dataSource={contactStore.records.map(x => ({key: x.id, title: x.name}))}
render={item => item.title}/>
)}
</Form.Item>