🐛(component): 修复 table 组件 height 属性改变时单元格错位
This commit is contained in:
		
							parent
							
								
									fe2157de55
								
							
						
					
					
						commit
						fa84d00a00
					
				@ -437,6 +437,18 @@ const classes = computed(() => {
 | 
			
		||||
  ];
 | 
			
		||||
});
 | 
			
		||||
 | 
			
		||||
watch(() => props.height, () => {
 | 
			
		||||
  nextTick(() => {
 | 
			
		||||
    getScrollWidth();
 | 
			
		||||
  })
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
watch(() => props.maxHeight, () => {
 | 
			
		||||
  nextTick(() => {
 | 
			
		||||
    getScrollWidth();
 | 
			
		||||
  })
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
onMounted(() => {
 | 
			
		||||
  getScrollWidth();
 | 
			
		||||
  getFixedColumn();
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user