Skip to content

feat(avatar): add Avatar component #13586

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

North-al
Copy link

@North-al North-al commented Aug 7, 2025

新增两个组件:

  • Avatar:用于展示头像,可为图片、图标或文本,支持自定义大小、形状等;
  • AvatarGroup:头像组组件,可用于成员头像组合展示。

@codecov-commenter
Copy link

Codecov Report

❌ Patch coverage is 85.13514% with 11 lines in your changes missing coverage. Please review.
✅ Project coverage is 89.68%. Comparing base (ec5b45b) to head (2168c39).
⚠️ Report is 133 commits behind head on main.

Files with missing lines Patch % Lines
packages/vant/src/avatar-group/AvatarGroup.tsx 80.00% 3 Missing and 5 partials ⚠️
packages/vant/src/avatar/Avatar.tsx 90.62% 2 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main   #13586      +/-   ##
==========================================
+ Coverage   89.60%   89.68%   +0.08%     
==========================================
  Files         257      261       +4     
  Lines        7013     7117     +104     
  Branches     1736     1769      +33     
==========================================
+ Hits         6284     6383      +99     
- Misses        384      388       +4     
- 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.

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