- 设置table的ref为tableList
- 设置滚动至顶部
this.$nextTick(()=>{
this.$refs.tableList.bodyWrapper.scrollTop =0;
})
- 设置滚动至底部
this.$nextTick(()=>{
this.$refs.tableList.bodyWrapper.scrollTop =this.$refs.tableList.bodyWrapper.scrollHeight;Ï
})
this.$nextTick(()=>{
this.$refs.tableList.bodyWrapper.scrollTop =0;
})
this.$nextTick(()=>{
this.$refs.tableList.bodyWrapper.scrollTop =this.$refs.tableList.bodyWrapper.scrollHeight;Ï
})