在element table隐藏显示切换时会重新计算宽度高度解决方法:
<el-table ref="tableRef" border stripe style="width: calc(100vw - 570px)"
height="calc(100vh - 202px)">
<el-table-column type="selection" min-width="5%">
</el-table>
el-table添加ref=“tableRef”
在显示/隐藏/切换方法走完后再调用方法:
// 强制刷新table
this.$nextTick(() => {
this.$refs.tableRef.doLayout()
})
1万+

被折叠的 条评论
为什么被折叠?



