Skip to content

a-menu-item等添加可否添加path/to等属性? #2522

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

Closed
1 task
ShiraGawaAnri opened this issue Jul 4, 2020 · 2 comments
Closed
1 task

a-menu-item等添加可否添加path/to等属性? #2522

ShiraGawaAnri opened this issue Jul 4, 2020 · 2 comments
Labels

Comments

@ShiraGawaAnri
Copy link

ShiraGawaAnri commented Jul 4, 2020

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

What problem does this feature solve?

添加相关属性后可使得点击menu直接移动到相应的路由
或者新增一个形如 的插槽也可

What does the proposed API look like?

<a-menu type="route"> <a-menu-item (key|to|path)="/index" title="HomePage" /> </a-menu>

@sendya
Copy link
Member

sendya commented Jul 4, 2020

<a-menu-item>
 <router-link :to="">MenuName</router-link>
</a-menu-item>

@github-actions
Copy link

github-actions bot commented Jul 5, 2021

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 Jul 5, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants