Closed sailei1 closed 5 years ago
scrollTarget(event){
setTimeout(()=> {
let target = event.target;
if (this.lock) return;
if (target.clientHeight + target.scrollTop > target.scrollHeight - 800) {
this.lock = true;
let index = this.start;
if (index >= this.comps.length) {
return;
}
let item = this.comps[index];
item.show = true;
// this.comps=Object.assign(t,this.comps);
Vue.set(this.comps, index, item);
setTimeout(() => {
this.lock = false;
this.start++;
}, 0)
}
},0);
},