build
This commit is contained in:
parent
168fd8ed69
commit
29fb01dcf4
|
@ -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';
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue