Skip to content

[pull-down-refresh] 下拉的过程中,外部无法感知当前处于下拉的哪种状态。 #3481

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

Closed
rzdong opened this issue Feb 7, 2025 · 4 comments
Labels
question This is a question, not a bug

Comments

@rzdong
Copy link

rzdong commented Feb 7, 2025

这个功能解决了什么问题

外部希望能获取到下拉过程中的状态。来做对应的提示:

你建议的方案是什么

状态有4种:['下拉刷新', '松手刷新', '加载中', '刷新完成']。

使用场景:下拉过程中,期望在从 下拉刷新 变化到 松手刷新 这个状态变化时,触发一个振动。

Copy link
Contributor

github-actions bot commented Feb 7, 2025

👋 @rzdong,感谢给 TDesign 提出了 issue。
请根据 issue 模版确保背景信息的完善,我们将调查并尽快回复你。

@jarmywang
Copy link
Collaborator

@jarmywang jarmywang added the question This is a question, not a bug label Feb 10, 2025
@qianb7
Copy link

qianb7 commented Feb 15, 2025

@rzdong https://tdesign.tencent.com/miniprogram/components/pull-down-refresh?tab=api#pulldownrefresh-events change事件应该可以满足

尝试了下 change 事件只在下拉完成后回调,中途状态变化没有回调

@rzdong
Copy link
Author

rzdong commented Feb 25, 2025

@rzdong https://tdesign.tencent.com/miniprogram/components/pull-down-refresh?tab=api#pulldownrefresh-events change事件应该可以满足

@jarmywang 大佬,change是在松手之后才执行的。不满足需求呀。我想在下拉的过程中。下拉刷新 -> 松手刷新

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question This is a question, not a bug
Projects
None yet
Development

No branches or pull requests

3 participants