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