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

[Feature request/config目前只针对路由,希望能针对菜单做配置] #80

Open
akan opened this issue Dec 9, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@akan
Copy link

akan commented Dec 9, 2021

您的Feature Request/想法是否与已有问题有关? 请描述。
简明扼要的描述你的需求、想法、建议

image
请问上面这个config只影响路由,目前layout里面需要重复配置menu:[],能否menu就从各个页面config里抽取?类似的功能是需要做一个定制的layout plugin,还是目前的layout已经支持了,只是文档不好找?
简述你想要的解决方案
没有可以不填写
config里面加个字端就可以判断了,包括子菜单。
menu_level:-1,0,1,2
默认为0,一级菜单。 -1就是不进入菜单。1是子菜单
子菜单需要加一个跟名字对应parent_group:
顺序无所谓了,按汉字来个排序,要指定顺序还得加字段,没啥必要性。

描述你考虑过的替代方案
是否有替代方案、你看过的不错的参考方案、交互方案等
image
image

有个同事做的框架,其实主要是group指明父菜单,noNav判断是否加在导航里,

其它补充内容
任何和这个问题有关的额外内容

@wanchun wanchun added the enhancement New feature or request label Jan 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants