-
-
Notifications
You must be signed in to change notification settings - Fork 50.8k
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: Menu.Item support icon #23629
feat: Menu.Item support icon #23629
Conversation
…ZhaoFly/ant-design into MengZhaoFly-feat/menu-item-support-icon
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.
Could you please add tests to make sure this change works as expected?
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 10599c4:
|
Codecov Report
@@ Coverage Diff @@
## feature #23629 +/- ##
========================================
Coverage 98.51% 98.51%
========================================
Files 363 363
Lines 7254 7268 +14
Branches 1999 2014 +15
========================================
+ Hits 7146 7160 +14
Misses 108 108
Continue to review full report at Codecov.
|
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 b70c7ef:
|
SubMenu 也支持了 |
🤔 This is a ...
🔗 Related issue link
close #23392
close #23456
💡 Background and solution
Menu.Item support icon,
solution: Treat icon as a child element of Menu.Item
📝 Changelog
icon
prop.icon
属性。☑️ Self Check before Merge
View rendered components/menu/demo/horizontal.md
View rendered components/menu/demo/inline-collapsed.md
View rendered components/menu/demo/switch-mode.md
View rendered components/menu/index.en-US.md
View rendered components/menu/index.zh-CN.md