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

Whether the navigation menu selected event can return the complete current object or call back the key and title together #4290

Closed
1 task
JHeLiu opened this issue Jun 29, 2021 · 1 comment

Comments

@JHeLiu
Copy link

JHeLiu commented Jun 29, 2021

  • I have searched the issues of this repository and believe that this is not a duplicate.

What problem does this feature solve?

https://2x.antdv.com/components/menu-cn

选中菜单的时候 需要 title值 ,目前只返回了 key , 而不想去遍历原始数据

What does the proposed API look like?

select(item,key,selectedKeys,title)

或者

select(item,{key,selectedKeys,title})

或者把填充进入的原始数据返回来

//比如填充进去的参数是 key title icon pid url

选中方法回调给 当前的完整对象
select({key,title,icon,pid,url});

@github-actions github-actions bot changed the title 导航菜单选中事件可否返回完整的当前对象 或者 把 key 跟 title 一起回调回来 Whether the navigation menu selected event can return the complete current object or call back the key and title together Jun 29, 2021
@github-actions
Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 30, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants