Merge pull request #969 from followfire/master
fix: 修复Table中show-summary、fixed同时存在,且max-height设置的比实际高度高的时候,合计被顶出去的问题
This commit is contained in:
commit
ef35c398c0
1 changed files with 3 additions and 1 deletions
|
@ -497,7 +497,9 @@
|
||||||
let style = {};
|
let style = {};
|
||||||
if (this.bodyHeight !== 0) {
|
if (this.bodyHeight !== 0) {
|
||||||
let height = this.bodyHeight - (this.showHorizontalScrollBar?this.scrollBarWidth:0);
|
let height = this.bodyHeight - (this.showHorizontalScrollBar?this.scrollBarWidth:0);
|
||||||
style.height = this.showHorizontalScrollBar ? `${height}px` : `${height - 1}px`;
|
const bodyHeight = this.showHorizontalScrollBar ? `${height}px` : `${height - 1}px`;
|
||||||
|
if (this.height) style.height = bodyHeight;
|
||||||
|
else if (this.maxHeight) style.maxHeight = bodyHeight;
|
||||||
}
|
}
|
||||||
return style;
|
return style;
|
||||||
},
|
},
|
||||||
|
|
Loading…
Add table
Reference in a new issue