@@ -59,7 +59,7 @@ export default {
5959
6060 if ( self . isVerticalResize && self . internalHeight && self . internalHeight > 0 && currentHeight > 0 ) {
6161 // (窗口高度缩小 && 当前高度大于最小高度) || (窗口高度扩大 && 当前高度小于最大高度)
62- bottom -= self . VerticalResizeOffset ;
62+ bottom -= self . VerticalResizeOffset ;
6363 if ( ( bottom < 0 && currentHeight > minHeight ) || ( bottom > 0 && currentHeight < maxHeight ) ) {
6464 var currentHeight = currentHeight + bottom ; // - self.VerticalResizeOffset;
6565 currentHeight = currentHeight > maxHeight ? maxHeight : currentHeight ;
@@ -89,21 +89,35 @@ export default {
8989
9090 var differ = currentWidth - 2 - this . totalColumnsWidth ,
9191 initResizeWidths = this . initTotalColumnsWidth ,
92- rightViewBody = this . $el . querySelector ( '.v-table-rightview .v-table-body' ) ;
92+ rightViewBody = this . $el . querySelector ( '.v-table-rightview .v-table-body' ) ,
93+ rightViewFooter = this . $el . querySelector ( '.v-table-rightview .v-table-footer' ) ;
9394
9495
9596 if ( currentWidth <= initResizeWidths && ! this . isTableEmpty ) { // 排除表格无数据的影响
9697
97- rightViewBody . style . overflowX = 'scroll' ;
98+ if ( this . hasTableFooter ) {
99+
100+ rightViewFooter . style . overflowX = 'scroll' ;
101+
102+ } else {
103+
104+ rightViewBody . style . overflowX = 'scroll' ;
105+ }
98106
99107 } else {
100108 // 防止最后一列右距中时内容显示不全
101109 if ( this . getTotalColumnsHeight ( ) > this . internalHeight ) {
102110
103- differ -= ( utils . getScrollbarWidth ( ) + 1 ) ;
111+ differ -= ( utils . getScrollbarWidth ( ) + 1 ) ;
104112 }
105113
106- rightViewBody . style . overflowX = 'hidden' ;
114+ if ( this . hasTableFooter ) {
115+
116+ rightViewFooter . style . overflowX = 'hidden' ;
117+ } else {
118+
119+ rightViewBody . style . overflowX = 'hidden' ;
120+ }
107121 }
108122
109123 if ( currentWidth >= initResizeWidths || differ > 0 ) {
@@ -120,16 +134,17 @@ export default {
120134 } )
121135
122136 }
123- }
137+ } ,
138+
124139 } ,
125140
126141 mounted ( ) {
127142
128- utils . bind ( window , 'resize' , this . tableResize ) ;
143+ utils . bind ( window , 'resize' , this . tableResize ) ;
129144 } ,
130145 beforeDestroy ( ) {
131146
132- utils . unbind ( window , 'resize' , this . tableResize ) ;
147+ utils . unbind ( window , 'resize' , this . tableResize ) ;
133148 }
134149
135150}
0 commit comments