feat: Add popupRender API for custom submenu popup rendering#53566
feat: Add popupRender API for custom submenu popup rendering#53566zombieJ merged 14 commits intoant-design:nextfrom
Conversation
|
|
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
👁 Visual Regression Report for PR #53566 Failed ❌
Important There are 3 diffs found in this PR: 🆕
|
More templates
commit: |
Bundle ReportChanges will increase total bundle size by 7.76MB (207.05%) ⬆️
Affected Assets, Files, and Routes:view changes for bundle: antd.min-array-pushAssets Changed:
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## next #53566 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 787 788 +1
Lines 14291 14304 +13
Branches 3780 3786 +6
=========================================
+ Hits 14291 14304 +13 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
|
||
| const styles = { | ||
| navigationPopup: { | ||
| padding: '24px', |
| }; | ||
|
|
||
| const addHoverEffect = (e: MouseEvent<HTMLDivElement>) => { | ||
| e.currentTarget.style.background = 'rgba(0, 0, 0, 0.02)'; |
There was a problem hiding this comment.
用 css 实现,不能直接操作 dom 节点。可以参考其他用 antd-styled 的例子
|
|
||
| const styles = { | ||
| navigationPopup: { | ||
| padding: 12, |
There was a problem hiding this comment.
用 antd-styled,或者如果不用 antd 的 token 也可以考虑用 tailwind




中文版模板 / Chinese template
🤔 This is a ...
🔗 Related Issues
#52265
💡 Background and Solution
📝 Change Log