// el-table里
ref="tableBox" @header-dragend="tableHeaderDragend"
// methods 里
tableHeaderDragend() {
this.$refs.tableBox.doLayout();
},
// 或者列表里
this.$nextTick(() => {
if (this.$refs.tableBox&& this.$refs.tableBox.doLayout) {
this.$refs.tableBox.doLayout();
}
})
解决el-table表格错乱问题
最新推荐文章于 2024-04-28 15:34:18 发布