mirror of https://github.com/ElemeFE/element
				
				
				
			Table: fix update scrolly not working bug (#1519)
							parent
							
								
									e56f52ff26
								
							
						
					
					
						commit
						e2870f72f0
					
				| 
						 | 
				
			
			@ -43,11 +43,10 @@ class TableLayout {
 | 
			
		|||
 | 
			
		||||
  updateScrollY() {
 | 
			
		||||
    const height = this.height;
 | 
			
		||||
    if (typeof height !== 'string' || typeof height !== 'number') return;
 | 
			
		||||
    if (typeof height !== 'string' && typeof height !== 'number') return;
 | 
			
		||||
    const bodyWrapper = this.table.$refs.bodyWrapper;
 | 
			
		||||
    if (this.table.$el && bodyWrapper) {
 | 
			
		||||
      const body = bodyWrapper.querySelector('.el-table__body');
 | 
			
		||||
 | 
			
		||||
      this.scrollY = body.offsetHeight > bodyWrapper.offsetHeight;
 | 
			
		||||
    }
 | 
			
		||||
  }
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue