Element UI table 表格表头错位问题解决

Element UI table 表头错位

方法一 

在app.vue中添加

.el-table--border th.gutter:last-of-type {
    display: block!important;
    width: 17px!important;
}

方法二 

在el-table组件挂载一个ref="configurationTable",然后在每次请求数据成功后动一动表格的默认宽度

this.$refs.configurationTable.$el.style.width = '99.99%'

https://www.jianshu.com/p/c18e6f911b2d 

 

猜你喜欢

转载自blog.csdn.net/GrootBaby/article/details/109113277