設置element-iu中table滾動條位置
-
1.設置table的ref為tableList
-
-
2.設置滾動至頂部
-
-
this.$nextTick(()=>{ this.$refs.tableList.bodyWrapper.scrollTop =0; })
-
3.設置滾動至底部
-
this.$nextTick(()=>{ this.$refs.tableList.bodyWrapper.scrollTop =this.$refs.tableList.bodyWrapper.scrollHeight;Ï })