事件影响 #128

This commit is contained in:
jonyshi 2018-06-24 10:46:40 +08:00
parent ee966745bc
commit d10da2494d
1 changed files with 7 additions and 1 deletions

View File

@ -32,6 +32,12 @@ export default function filterColumn(Table, Checkbox, Popover, Icon) {
};
}
componentWillReceiveProps(nextProps){
this.setState({
showPopover:false
})
}
getShowModal=(event)=>{
let {showModal} = this.state;
if(showModal){
@ -103,7 +109,7 @@ export default function filterColumn(Table, Checkbox, Popover, Icon) {
<Table {...this.props} columns={_columns} data={data} />
<Popover
placement="leftTop"
content={content} id="aa"
content={content}
show={showModal} >
<div className={`${prefixCls}-pop-column-filter`}><Icon type="uf-navmenu" onClick={this.openCloumList}/></div>
</Popover>