fix: 拖拽列宽动态出滚动条
This commit is contained in:
parent
6ce443ff74
commit
ead958b881
|
@ -229,7 +229,7 @@ class TableHeader extends Component {
|
||||||
const newTableWidth = this.drag.tableWidth + diff +'px';
|
const newTableWidth = this.drag.tableWidth + diff +'px';
|
||||||
this.table.table.style.width = newTableWidth;//改变table的width
|
this.table.table.style.width = newTableWidth;//改变table的width
|
||||||
this.table.innerTableBody.style.width = newTableWidth ;
|
this.table.innerTableBody.style.width = newTableWidth ;
|
||||||
let showScroll = contentDomWidth - newTableWidth - scrollbarWidth ;
|
let showScroll = contentDomWidth - (this.drag.tableWidth + diff) - scrollbarWidth ;
|
||||||
|
|
||||||
//表头滚动条处理
|
//表头滚动条处理
|
||||||
if(headerScroll){
|
if(headerScroll){
|
||||||
|
|
Loading…
Reference in New Issue