// 获取元素
const content = this.$refs.content
// 给元素添加滚动监听
content.addEventListener('scroll', this.scrollChange, true)
// 处理函数
scrollChange(e) {
const { scrollTop, clientHeight, scrollHeight } = e.target
if (scrollTop + clientHeight === scrollHeight) {
// 此时元素滚动到最底部
}
}