当给表格添加 fixed="right" 后,切换页签重新获取数据时会出现下面的问题
在获取数据后添加下面的代码即可解决
// 重新布局表格
this.$nextTick(() => {
this.$refs.multipleTable.doLayout();
// el-table加ref="multipleTable"
});
当给表格添加 fixed="right" 后,切换页签重新获取数据时会出现下面的问题
在获取数据后添加下面的代码即可解决
// 重新布局表格
this.$nextTick(() => {
this.$refs.multipleTable.doLayout();
// el-table加ref="multipleTable"
});