element跳转至最后一行和第一行

1.设置table的ref为tableList

2.设置滚动至顶部

this.$refs.tableList.bodyWrapper.scrollTop =0;
3.设置滚动至底部
this.$refs.tableList.bodyWrapper.scrollTop =this.$refs.tableList.bodyWrapper.scrollHeight;
posted @ 2020-06-02 14:39  国服第一李师师  阅读(542)  评论(1编辑  收藏  举报