fix(menu): 修复子菜单全部隐藏时父菜单无法点击的问题#595
Conversation
|
Caution Review failedThe pull request is closed. 📝 Walkthrough""" Walkthrough本次更改对菜单子项的 Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant MenuComponent
participant MenuItem
User ->> MenuComponent: 渲染菜单
MenuComponent ->> MenuItem: 检查子项
MenuItem ->> MenuComponent: 返回 meta.menu 和 meta.hidden 状态
MenuComponent ->> MenuComponent: 计算 hasChildren
Note right of MenuComponent: 若所有子项 meta.menu 为 false 或 meta.hidden 为 true,则 hasChildren 为 false
Possibly related issues
Poem
""" 📜 Recent review detailsConfiguration used: .coderabbit.yaml 📒 Files selected for processing (1)
✨ Finishing Touches
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:
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
Documentation and Community
|
Summary by CodeRabbit