-
-
Notifications
You must be signed in to change notification settings - Fork 234
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: Tab Item support icon prop #680
Conversation
li-jia-nan
commented
Nov 24, 2023
•
edited
Loading
edited
- Tab Item support icon property ant-design/ant-design#46076
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
@afc163 need review |
@@ -87,6 +87,7 @@ function TabNode({ | |||
}} | |||
onFocus={onFocus} | |||
> | |||
{icon} | |||
{label} |
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.
icon 和 label 之间要有一个默认间距。
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.
那我加个 span 标签,在 antd 里面加间距
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.
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.
这个间距直接用 css 就能覆盖吧
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #680 +/- ##
=======================================
Coverage 97.64% 97.64%
=======================================
Files 18 18
Lines 678 679 +1
Branches 180 181 +1
=======================================
+ Hits 662 663 +1
Misses 16 16 ☔ View full report in Codecov by Sentry. |
Co-authored-by: MadCcc <[email protected]>