feat(menuitem): add css classnames to enhance custom style abilities#2443
feat(menuitem): add css classnames to enhance custom style abilities#2443xiaoyatong merged 2 commits intojdf2e:nextfrom
Conversation
Walkthrough在 Changes
Sequence Diagram(s)本次变更不涉及新的功能或控制流程的修改,因此不需要生成序列图。 Possibly related issues
Poem
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
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 as PR comments)
Additionally, you can add CodeRabbit Configuration File (
|
chore(menuitem): 新增css类名,增强自定义样式能力
Summary by CodeRabbit
新功能
MenuItem组件中添加了图标的条件渲染功能。如果图标存在,将克隆并添加额外的样式类;否则,将渲染默认的Check图标,并应用修改后的样式类名。样式
"nut-menu-container-item-icon"和"nut-menu-container-item-title"。