解决办法:在el-table提供的api中使用doLayoutdoLayout:重新布局Table。当Table或其祖先元素从隐藏切换到显示时,可能需要调用该方法用法:每次el-table调用doLayoutthis.$nextTick数据变化(()=>{this.$refs.myTable.doLayout()})
el-table表格固定列错位相关文章