一、表格添加ref
<el-table ref="table"></el-table>
二、页面切换或数据更新时调用
this.$nextTick(() => {
this.$refs.table.doLayout();
});
一、表格添加ref
<el-table ref="table"></el-table>
二、页面切换或数据更新时调用
this.$nextTick(() => {
this.$refs.table.doLayout();
});