解决element table表格内容错位的问题

image

 

亲测有效

 body .el-table th.gutter{
    display: table-cell!important;
  }

上面不行用下面终极方案:
在数据加载完成后,重新执行布局操作

<el-table :data="tableData" ref="multipleTable" > </el-table>
this.$nextTick(() => {
    this.$refs.multipleTable.doLayout();
})

 

posted @ 2020-05-28 09:47  龙卷风吹毁停车场  阅读(1359)  评论(0)    收藏  举报