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

openOnceKey 为false时,父菜单需要点击多次才能折叠。 #290

Open
srrgithub opened this issue Nov 2, 2023 · 2 comments
Open
Labels
bug Something isn't working

Comments

@srrgithub
Copy link

srrgithub commented Nov 2, 2023

🐛 Bug 描述 Bug description

组件版本号:
@ant-desingn-vue/[email protected]

代码:
<pro-layout :openOnceKey="false">

结果:
左侧菜单无法折叠,需要多次点击才行。

猜测原因:
原因在于内部组件BaseMenu.jsx 中的 updateMenu方法没有做去重校验,导致路径重复添加,所以openKeys存在重复的路径,导致父菜单需要点击多次才能折叠。

🏞 期望结果 Desired result

希望能够之点击一次就能折叠。

🚑 其他信息 Other information

内部实现:
image

希望做的功能:
这个地方需要做去重判断
image

@srrgithub srrgithub added the bug Something isn't working label Nov 2, 2023
@srrgithub
Copy link
Author

@sendya @aibayanyu20 大佬有空看看吗?

@TsMask
Copy link
Contributor

TsMask commented Dec 27, 2023

已经没维护了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants