Skip to content
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

Merged
merged 5 commits into from
Nov 27, 2023
Merged

feat: Tab Item support icon prop #680

merged 5 commits into from
Nov 27, 2023

Conversation

li-jia-nan
Copy link
Member

@li-jia-nan li-jia-nan commented Nov 24, 2023

Copy link

vercel bot commented Nov 24, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
tabs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 27, 2023 2:17am

@li-jia-nan
Copy link
Member Author

@afc163 need review

@@ -87,6 +87,7 @@ function TabNode({
}}
onFocus={onFocus}
>
{icon}
{label}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

icon 和 label 之间要有一个默认间距。

Copy link
Member Author

@li-jia-nan li-jia-nan Nov 25, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

那我加个 span 标签,在 antd 里面加间距

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

image

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个间距直接用 css 就能覆盖吧

Copy link

codecov bot commented Nov 25, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (da3d43c) 97.64% compared to head (a851f15) 97.64%.
Report is 9 commits behind head on master.

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.
📢 Have feedback on the report? Share it here.

src/TabNavList/TabNode.tsx Outdated Show resolved Hide resolved
Co-authored-by: MadCcc <1075746765@qq.com>
@MadCcc MadCcc merged commit 0c66625 into react-component:master Nov 27, 2023
9 checks passed
@li-jia-nan li-jia-nan deleted the feat-icon branch November 27, 2023 02:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants