addRow () {
this.showList.push({
key: this.showList.length,
value:***
})
this.key += 1
this.$nextTick(() => {
// 获取表格元素
var dom = document.querySelectorAll('.ant-table-body')[0]
dom.scrollTop = dom.scrollHeight
})
}
antd vue 中表格添加行自动滚动到最新行
最新推荐文章于 2024-03-20 11:19:27 发布