一般从无数据到有数据, 表格中的fixed列就会出现排版错误如图
有用唯一key解决的, 也有因为有列用了show-overflow-tooltip导致,然后全部列都要添加上这个属性解决的.
各种奇奇怪怪的情况, 官方的办法是用表格的doLayout方法
doLayout | 对 Table 进行重新布局。当 Table 或其祖先元素由隐藏切换为显示时,可能需要调用此方法 |
// 重新渲染表格
doLayoutFun() {
let that = this;
this.$nextTick(() => {
that.$refs.commonTable.doLayout();
});
},