Commit 44e79fda by 黄冷

update: dist

parent d2d7bf90
......@@ -6,8 +6,7 @@ export default {
bind(el, binding, vnode, oldVnode) {
const SELECTDOWN_DOM = el.querySelector('.el-select-dropdown .el-select-dropdown__wrap');
SELECTDOWN_DOM.addEventListener('scroll', function() {
const CONDITION = this.scrollHeight - this.scrollTop <= this.clientHeight;
console.log(this.scrollHeight, this.scrollTop, this.clientHeight);
const CONDITION = Math.floor(this.scrollHeight - this.scrollTop) <= this.clientHeight;
if (CONDITION) {
binding.value();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment