export default {
loadmore: {
bind (el, binding) {
const SELECTWRAP_DOM = el.querySelector(
'.el-select-dropdown .el-select-dropdown__wrap'
)
SELECTWRAP_DOM.addEventListener('scroll', function () {
const condition =
this.scrollHeight - this.scrollTop <= this.clientHeight
if (condition) { binding.value() }
})
}
}
}
loadmore v-loadmore 指令 el-select下拉加载更多
最新推荐文章于 2024-09-04 11:12:05 发布