This commit is contained in:
wanghaoo 2018-12-06 16:41:35 +08:00
parent 168fd8ed69
commit 29fb01dcf4
1 changed files with 4 additions and 0 deletions

View File

@ -766,6 +766,10 @@ var Table = function (_Component) {
//表格元素的宽度大于容器的宽度也显示滚动条
if (scroll.x || fixed || this.contentDomWidth < this.contentWidth) {
tableClassName = clsPrefix + '-fixed';
//没有数据并且含有顶部菜单时
if (this.props.data.length == 0 && this.props.headerScroll) {
bodyStyle.overflowX = 'hidden';
}
if (!footerScroll) {
bodyStyle.overflowX = bodyStyle.overflowX || 'auto';
}