Comments (6)
deactivate 的时候 设置关闭上拉加载没有用
from vue-infinite-scroll.
按照代码上看,router路由切换后会执行unbind事件,应该不会造成这个情况,而且我测试了一遍,也无法复现这个问题,你可以提交这部分的代码看看
from vue-infinite-scroll.
谢谢,问题已解决。是因为我的 router-view 是 keep-alive 的,所以切换页面时不会触发 unbind
现在的解决办法是在组件 deactivate 时设置 this.busy = true
from vue-infinite-scroll.
怎么能做到deactivate时进行设置,我也用的这个插件,也碰到了问题,方便探讨下吗
from vue-infinite-scroll.
我也是遇到了这个问题
from vue-infinite-scroll.
我也遇到相同的问题,page1中使用了shop-list组件,且shop-list组件中在window添加了scroll事件的侦听。当page1 通过 vue-router转到page2时候,如果page2中也使用了shop-list组件,就会出现当触发scroll事件时,scroll事件绑定的回调函数两次触发的情况,也就是说页面中的window对象上添加了两个相同的scroll事件。
from vue-infinite-scroll.
Related Issues (20)
- 刚进入页面就会加载一次改方法,数据是后台请求的
- not support typescript
- Set "infinite-scroll-immediate-check" to false is not working if the prop sent as boolean HOT 1
- 滚动到底部加载一次后,就开始无限加载,直至全部加载完成bug
- Load callback checking fail when using async function
- 【天坑】此指令不能和v-else一起使用 HOT 3
- 请问当把这个指令使用在弹框这样一开始没有渲染的dom里面这样的情况怎么解决呢? HOT 1
- Firing without reaching bottom HOT 4
- 在微信和QQ内滑动失效?
- 在弹窗内无法使用 HOT 5
- vue-infinite-scroll支持vue3吗 HOT 7
- Stop calling api when I scroll down HOT 1
- 弹框中无法滚动加载,只有把列表封装成组件,可调用正常 HOT 2
- Problems with "page" variable
- Vue 3 support HOT 1
- 还是不能v-if下使用啊,v-show也不行 HOT 1
- Passive scroll listener
- 支持vue3的办法 How to support vue3
- not working in table td element HOT 1
- test
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vue-infinite-scroll.