![](https://img-blog.csdnimg.cn/img_convert/842d41a365cdbcb55d03606d618156c4.png)
解决办法:this.$refs.table.doLayout();
![](https://img-blog.csdnimg.cn/img_convert/70f89fd1dd3f3e157413454c42f4241f.png)
mounted () {
window.addEventListener('resize', this.handleResize)
},
destroyed () {
window.removeEventListener('resize', this.handleResize)
},
methods: {
handleResize () {
this.$nextTick(() => {
this.$refs.table.doLayout()
})
},
}