Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

在scroll-view中同时使用scroll-view-refresh和scroll-view-more 的bug #835

Open
manongqiyin opened this issue Aug 21, 2023 · 2 comments

Comments

@manongqiyin
Copy link

The issue which is not created via Mand Mobile Issue Helper will be closed immediately.


注意:不是用 Mand Mobile Issue Helper 创建的 issue 会被立即关闭。

@manongqiyin manongqiyin changed the title 在scroll-view中同时使用 在scroll-view中同时使用scroll-view-refresh和scroll-view-more 的bug Aug 21, 2023
@manongqiyin
Copy link
Author

scroll-view的两个函数@end-reached(加载更多)和@refreshing(下拉刷新),我的使用场景如下:
我有个列表,条数是30条,pagesize是10。
在初始化时可以通过@end-reached加载数据,在条数达到30时,我的md-scroll-view-refresh的参数is-refreshing会设置为true。
然后使用下拉刷新@refreshing,会初始化参数,list=[],page=1,is-refreshing=false,然后手动执行获取列表的接口。此时再次滑动到底部,就不会再触发@end-reached。且一直显示loading-text:更多加载中...

@manongqiyin
Copy link
Author

而且在is-refreshing没设置过true,也就是数据没加载完成时,调用@refreshing后初始化数据后再获取列表,是一切正常的

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant