-
Notifications
You must be signed in to change notification settings - Fork 732
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
feat: avatar size support raw value #2290
Conversation
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. Latest deployment of this branch, based on commit 26d717a:
|
Codecov ReportAttention: Patch coverage is
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## main #2290 +/- ##
==========================================
- Coverage 88.26% 88.20% -0.06%
==========================================
Files 441 441
Lines 26072 26077 +5
Branches 6659 6661 +2
==========================================
- Hits 23012 23001 -11
- Misses 3060 3076 +16 ☔ View full report in Codecov by Sentry. |
Passing run #2552 ↗︎
Details:
Review all test suite changes for PR #2290 ↗︎ |
content/show/avatar/index-en-US.md
Outdated
@@ -437,7 +437,7 @@ import { Avatar, AvatarGroup } from '@douyinfe/semi-ui'; | |||
| hoverMask | Avatar content overlay when hover | ReactNode | - | | |||
| imgAttr | Native html img attributes **>=1.5.0** | React.ImgHTMLAttributes<HTMLImageElement\> | - | | |||
| shape | Shape of the avatar, one of `circle`, `square` | string | `circle` | | |||
| size | Size of the avatar, one of `extra-extra-small`,`extra-small`, `small`, `default`, `medium`, `large`, `extra-large` | string | `medium` | | |||
| size | Size of the avatar, one of `extra-extra-small`,`extra-small`, `small`, `default`, `medium`, `large`, `extra-large` and raw value | string | `medium` | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
感觉 raw value 以及 字面量的理解门槛都有点高。尤其是 raw value。
中文模板 / Chinese Template
What kind of change does this PR introduce? (check at least one)
PR description
Fixes #
Changelog
🇨🇳 Chinese
🇺🇸 English
Checklist
Other
Additional information