el-table表格监听滚动事件,触底加载数据

this.$refs.multipleTable.bodyWrapper.addEventListener('scroll', (res) => {
  const height = res.target
  const clientHeight = height.clientHeight
  const scrollTop = height.scrollTop
  const scrollHeight = height.scrollHeight

  if (clientHeight + scrollTop === scrollHeight && this.listStatus) {
    this.listQuery.pageNo++
    this.listAuthPage()
  }
}, true)

你可能感兴趣的:(el-table表格监听滚动事件,触底加载数据)