element table表格中的数据修改弹出框,点击确定更新后table修改的数据高度位置不变
scrollChildren (data, acId) { if (data && data.length > 0) { for (let i = 0; i < data.length; i++) { if (data[i].id === acId) { this.$refs.tableId.bodyWrapper.scrollTop = this.tableBodyScroll } else { if (data[i].children && data[i].children.length > 0) { this.scrollChildren(data[i].children, acId) } } } } },
参考:https://www.cnblogs.com/wuhefeng/p/11304966.html