解决横向滚动条、纵向滚动条互相影响问题
This commit is contained in:
parent
c7331d433a
commit
ddf2692a9c
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -1039,7 +1039,7 @@ class Table extends Component {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// console.log('lastScrollTop--'+this.lastScrollTop+'--eventScrollTop--'+ e.target.scrollTop);
|
// console.log('lastScrollTop--'+this.lastScrollTop+'--eventScrollTop--'+ e.target.scrollTop);
|
||||||
if (scroll.y && this.lastScrollTop != e.target.scrollTop) {
|
if (scroll.y && this.lastScrollTop != e.target.scrollTop && e.target !== headTable) {
|
||||||
if (fixedColumnsBodyLeft && e.target !== fixedColumnsBodyLeft) {
|
if (fixedColumnsBodyLeft && e.target !== fixedColumnsBodyLeft) {
|
||||||
fixedColumnsBodyLeft.scrollTop = e.target.scrollTop;
|
fixedColumnsBodyLeft.scrollTop = e.target.scrollTop;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue