1.設置table的ref為tableList
2.設置滾動至頂部
this.$refs.tableList.bodyWrapper.scrollTop =0;
3.設置滾動至底部
this.$refs.tableList.bodyWrapper.scrollTop =this.$refs.tableList.bodyWrapper.
scrollHeight;