设置elementUI的table组件滚动条位置

1.设置table的ref为tableList

2.设置滚动至顶部

this.$refs.tableList.bodyWrapper.scrollTop =0;
3.设置滚动至底部
this.$refs.tableList.bodyWrapper.scrollTop =this.$refs.tableList.bodyWrapper. scrollHeight;

猜你喜欢

转载自www.cnblogs.com/growupup/p/11323515.html