[element-ui]的table組件滾動條位置

1.設置table的ref爲tableList

2.設置滾動至頂部

this.$refs.tableList.bodyWrapper.scrollTop =0;

3.設置滾動至底部
this.refs.tableList.bodyWrapper.scrollTop=this.refs.tableList.bodyWrapper.scrollTop =this.refs.tableList.bodyWrapper.scrollHeight;

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章