方法一:可以解决element table的列错位问题
/deep/.el-table--border th.gutter:last-of-type {
    display: table-cell !important;
}

 

方法二:拿到数据请求结果后,使用element table doLayout方法进行强制重新渲染(屡试不爽)
setTimeout(() => {
    this.$nextTick(() => {
        this.$refs.table.doLayout()
    })
}, 300)

 

posted on 2020-05-19 09:36  去吃饭了  阅读(6607)  评论(1编辑  收藏  举报