[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;

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