设置element-iu中table滚动条位置

设置element-iu中table滚动条位置

  1.  
    1.设置table的ref为tableList
  2.  
     
  3.  
    2.设置滚动至顶部
  4.  
  5. this.$nextTick(()=>{
        this.$refs.tableList.bodyWrapper.scrollTop =0;
    })
    

      

  6. 3.设置滚动至底部
  7.  
    this.$nextTick(()=>{
      this.$refs.tableList.bodyWrapper.scrollTop =this.$refs.tableList.bodyWrapper.scrollHeight;Ï
    })
    

      

posted @ 2020-10-09 10:29  Jason-HHC  阅读(1804)  评论(0编辑  收藏  举报