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