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

 

el-table动态表头,表头不能填满

 如果上面不行,获取数据时

getList().then(res=>{
    this.list=res.data.rows;
    this.$nextTick(()=>{
        this.$refs.table.doLayout();
        //给table加一个ref
    })
})

 

https://blog.csdn.net/weixin_38779534/article/details/103237918

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-11
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-09-05
  • 2021-10-16
  • 2021-11-01
  • 2021-09-21
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案