The table provided elementUI assembly position of the slider

Ref is set to 1. The table tableList

2. Scroll to the top

this.$refs.tableList.bodyWrapper.scrollTop =0;
3. Scroll to the bottom
this.$refs.tableList.bodyWrapper.scrollTop =this.$refs.tableList.bodyWrapper. scrollHeight;

Guess you like

Origin www.cnblogs.com/growupup/p/11323515.html