<el-scrollbar label="chatList" ref="scrollbar">
<div>内容</div>
</el-scrollbar>
滚动到底部的方法:
chatListScrollBottom () {
const element = document.querySelector('.chatList')
const height = element.offsetHeight
this.$refs['scrollbar'].wrap.scrollTop = height
}