【vxe-table】设置表头的高度和行高的区别

官网链接

设置表头样式的属性: header-cell-style

设置行高的属性: row-config"

区别: header-cell-style里面的属性必须满足键值对的格式,设置高必须加单位,不然就不生效

:header-cell-style="{
    
     
	'text-align': 'center', 
	'height': '32px',
	'background': 'red' 
}"

row-config里面就不讲究,直接写就行

:row-config="{
    
    
	isHover: true,
	height: 28
}"

猜你喜欢

转载自blog.csdn.net/bbt953/article/details/132711764