vue下拉刷新与滚动窗口冲突问题解决

image



data(){ return { refDisabled:false, scrollTop:0, } }, watch: { scrollTop(val){ if(val==0){ this.refDisabled=false }else{ this.refDisabled=true } } }, mounted() { let box = this.$refs.divList; box.addEventListener('scroll',()=>{ this.scrollTop = box.scrollTop; }); },

只提供解决思路

你可能感兴趣的:(vue下拉刷新与滚动窗口冲突问题解决)