File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -2054,12 +2054,11 @@ export default {
20542054
20552055 // set scrolling
20562056 setScrolling ( tableContainerRef ) {
2057- const { scrollWidth, clientWidth, scrollLeft, scrollTop } =
2058- tableContainerRef ;
2059-
20602057 if ( this . hasFixedColumn ) {
2061- const { previewTableContainerScrollLeft : previewScrollLeft } =
2062- this ;
2058+ const { scrollWidth, clientWidth, scrollLeft } =
2059+ tableContainerRef ;
2060+ const { previewTableContainerScrollLeft : previewScrollLeft } =
2061+ this ;
20632062
20642063 // 仅横向滚动需要处理
20652064 if (
@@ -2077,6 +2076,7 @@ export default {
20772076 }
20782077
20792078 if ( this . fixedHeader ) {
2079+ const { scrollTop } = tableContainerRef ;
20802080 this . isVerticalScrolling = scrollTop > 0 ;
20812081 }
20822082 } ,
You can’t perform that action at this time.
0 commit comments