<script>
import { ref } from '@vue/composition-api'
import { onScrollBottom } from '@/scroll'

export default {
  setup () {
    function loadMore () {
      // ...
    }
    
    const el = ref()
    onScrollBottom(loadMore, el, 600)
  
    return {
      el,
    }
  }
}
</script>