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

魔方怎么设置三级或四级菜单 #24

Closed
andylxy opened this issue May 15, 2019 · 3 comments
Closed

魔方怎么设置三级或四级菜单 #24

andylxy opened this issue May 15, 2019 · 3 comments

Comments

@andylxy
Copy link

andylxy commented May 15, 2019

  1. 魔方默认只有二级菜单
    区域为一级菜单,
    控制器是二级菜单。

想知道怎么设置三级或四级菜单。

@nnhy @xxred

@xxred
Copy link
Member

xxred commented May 15, 2019

想要三级四级菜单得自己添加菜单想哦,不用自动生成,然后覆盖此文件~\Admin\Views\Index\_Left.cshtml自己实现

@nnhy
Copy link
Member

nnhy commented May 16, 2019

魔方支持无限级菜单!
你可以在菜单表里面添加子菜单试试。

CMX里面则是标准多级菜单

@andylxy
Copy link
Author

andylxy commented May 16, 2019

解决了.谢谢..
`\Admin\Views\Index_Left_Item.cshtml

添加三级或四级菜单代码,

@if (childs.Any()) { <a href="#" class="dropdown-toggle"> <i class="menu-icon fa fa-caret-right"></i> @item.DisplayName </a> <b class="arrow"></b> <ul class="submenu"> @foreach (var menu in childs) { @Html.Partial("_Left_Item", menu); } </ul> }

@andylxy andylxy closed this as completed May 28, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants