File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -1016,10 +1016,13 @@ export default {
10161016 const { scrollWidth, clientWidth, scrollLeft } =
10171017 tableContainerRef ;
10181018
1019+ const { previewTableContainerScrollLeft : previewScrollLeft } =
1020+ this . $options . customOption ;
1021+
10191022 // 仅横向滚动需要处理
10201023 if (
1021- this . $options . customOption
1022- . previewTableContainerScrollLeft !== scrollLeft
1024+ previewScrollLeft === 0 ||
1025+ previewScrollLeft !== scrollLeft
10231026 ) {
10241027 this . $options . customOption . previewTableContainerScrollLeft =
10251028 scrollLeft ;
@@ -1248,6 +1251,8 @@ export default {
12481251 "on-dom-resize-change" : ( { height } ) => {
12491252 this . tableOffestHeight = height ;
12501253 this . initVirtualScroll ( ) ;
1254+ // fixed #404
1255+ this . initScrolling ( ) ;
12511256 } ,
12521257 } ,
12531258 } ;
You can’t perform that action at this time.
0 commit comments