fix:模态框中使用table,计算的滚动条宽度为0的bug

This commit is contained in:
izbz wh 2019-05-23 09:32:19 +08:00
parent f287618102
commit f5eb769e4f
1 changed files with 5 additions and 0 deletions

View File

@ -204,6 +204,11 @@ class Table extends Component {
if(nextProps.resetScroll){ if(nextProps.resetScroll){
this.resetScrollX(); this.resetScrollX();
} }
// fix:模态框中使用table计算的滚动条宽度为0的bug
if(this.scrollbarWidth<=0 && this.props.scroll.y){
this.scrollbarWidth = measureScrollbar();
}
// console.log('this.scrollTop**********',this.scrollTop); // console.log('this.scrollTop**********',this.scrollTop);