原文链接:https://blog.csdn.net/hong521520/article/details/108620923

 

1. el-table中加上ref属性

<el-table
  ref="table"
  size="mini"
  show-summary
  border>
</el-table>

2.在updated生命周期函数

updated () {
  this.$nextTick(() => {
    this.$refs['table'].doLayout();
  })
},

 

相关文章: