// html
<el-table ref='table'></el-table>
//在执行完跳转页码的数据请求后
this.$nextTick(() => {
this.$refs.table.bodyWrapper.scrollTop = 0
})
el-table切换页码后,返回数据顶部
于 2022-03-10 11:03:55 首次发布
// html
<el-table ref='table'></el-table>
//在执行完跳转页码的数据请求后
this.$nextTick(() => {
this.$refs.table.bodyWrapper.scrollTop = 0
})