mirror of https://github.com/openspug/spug
U web update
parent
5af447d3af
commit
46015147cd
|
@ -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>
|
||||||
|
|
Loading…
Reference in New Issue