Commit 6b5526d9 by huaying

fix: 活码列表下拉框滚动加载高度调整

parent 9ad53e27
......@@ -177,7 +177,8 @@ export default {
inserted(el, binding) {
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;
const CONDITION = this.clientHeight + this.scrollTop + 20 >= this.scrollHeight;
console.log(this.scrollTop);
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