Skip to content

feat(PullRefresh): add a maxPullDistance param to enable cancellation #13484

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

CoderMonkie
Copy link

In pull-refresh component

I add a max-pull-distance prop to enable cancellation of pull refresh.

If not passed this prop, the behavior will keep the same as before.

@codecov-commenter
Copy link

codecov-commenter commented May 20, 2025

Codecov Report

Attention: Patch coverage is 26.66667% with 11 lines in your changes missing coverage. Please review.

Project coverage is 89.62%. Comparing base (ec5b45b) to head (961be08).
Report is 97 commits behind head on main.

Files with missing lines Patch % Lines
packages/vant/src/pull-refresh/PullRefresh.tsx 26.66% 8 Missing and 3 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main   #13484      +/-   ##
==========================================
+ Coverage   89.60%   89.62%   +0.02%     
==========================================
  Files         257      257              
  Lines        7013     7046      +33     
  Branches     1736     1747      +11     
==========================================
+ Hits         6284     6315      +31     
- Misses        384      385       +1     
- Partials      345      346       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@CoderMonkie CoderMonkie force-pushed the feat/pull-refresh-cancel branch from 9b1d095 to 961be08 Compare May 21, 2025 00:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants