-
-
Notifications
You must be signed in to change notification settings - Fork 50.6k
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: CP support Tabs addIcon & moreIcon #47274
Conversation
Run & review this pull request in StackBlitz Codeflow. |
size-limit report 📦
|
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 6c8e83f:
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## feature #47274 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 734 734
Lines 12589 12590 +1
Branches 3294 3294
=========================================
+ Hits 12589 12590 +1 ☔ View full report in Codecov by Sentry. |
components/tabs/index.tsx
Outdated
@@ -69,7 +70,7 @@ const Tabs: React.FC<TabsProps> & { TabPane: typeof TabPane } = (props) => { | |||
onEdit?.(editType === 'add' ? event : key!, editType); | |||
}, | |||
removeIcon: <CloseOutlined />, | |||
addIcon: addIcon || <PlusOutlined />, | |||
addIcon: addIcon ?? tabs?.addIcon ?? <PlusOutlined />, |
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.
done~
Signed-off-by: lijianan <[email protected]>
[中文版模板 / Chinese template]
🤔 This is a ...
🔗 Related issue link
💡 Background and solution
📝 Changelog
☑️ Self-Check before Merge