Skip to content
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

n-menu collapsed 问题 #6530

Open
5 tasks done
transtone opened this issue Nov 9, 2024 · 1 comment
Open
5 tasks done

n-menu collapsed 问题 #6530

transtone opened this issue Nov 9, 2024 · 1 comment
Labels
untriaged need to sort

Comments

@transtone
Copy link

描述错误

在 collapsed 状态下,如果菜单项有 children:null 存在,会被识别成目录,而非collapsed状态下是正常的。

复现步骤

在 menuOptions 中添加 children:null 项。

最小复现链接

https://www.naiveui.com/zh-CN/os-theme/components/menu#API

系统信息

所有

使用的包管理器

npm

验证

@transtone
Copy link
Author

在接口转换树型数据的时候,有些转换函数会留有 children:[],或children:null 的数据存在,当 children 为空时,是当做菜单项处理呢,还是当成目录?

不管当成什么,压缩和展开状态的形式应该一致,对吧。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
untriaged need to sort
Projects
None yet
Development

No branches or pull requests

1 participant