Comments (5)
HI, 请把事件绑定的代码贴一下!
事件的绑定方式是:<list-pull-loading @scroll="scrolling" ..>
@qq865738120
from list-pull-loading.
我是这么写的,也许是我项目哪里有问题。不过还是建议把api文档稍微完善一下,不写的话还得去看源码才知道。建议把上拉加载和下拉刷新都提供个接口,我相信这部分需求也是不少的,特别是下拉刷新很多时候是不需要的。
from list-pull-loading.
建议可以使用finger-mover把项目重构下,这样你的源码会更简洁 @yujinjin
from list-pull-loading.
@qq865738120 谢谢你的建议,我会认真考虑的!
下拉刷新如果不需要,需配置down: false
上拉加载和下拉刷新可以用一个接口有传值(isLoadingMore:是否是重新加载),而具体用什么接口实现由业务场景自己来判断。
抱歉,应该是我的文档不够完善导致了你的困惑!
from list-pull-loading.
那我明白了,确实是文档没写好。
from list-pull-loading.
Related Issues (8)
- 实例4的话,上拉的时候在还没弹下去的时候,点另一个tab会出现下拉刷新并且不会消失。 HOT 1
- 出现bug HOT 1
- 上拉和下拉出现问题 HOT 3
- 错误的API是什么鬼 HOT 3
- 上拉下拉问题 HOT 16
- 列表中,a标签不能跳转,是什么原因 HOT 2
- api函数return reject(err) 直接卡死了 是什么原因 ? HOT 2
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 list-pull-loading.