masastack/MASA.Blazor.Pro

提供可选项,当导航菜单折叠时,鼠标悬停显示菜单,而不是展开整个NavigationDrawer

wangxuepeng opened this issue · 6 comments

Issue type

sample request

Description

提供可选项(例如在Settings里添加选项:折叠时菜单样式:浮动 or 展开),实现类似AntDesign Pro那样的导航菜单,当导航菜单折叠时,鼠标悬停在上面,显示浮动的导航菜单,而不是展开整个NavigationDrawer。

这样的界面更紧凑,方便使用。

谢谢。

Screenshots

image

image

image

Which OS or Visual Studio versions did you see the issue on?

No response

Additional context

No response

doddgu commented

这应该是 MASA Blazor 的NavigationDrawer的功能,可以到MASA Blazor中提issue支持,但优先级相对不是很高。

这个和AntDesign Pro的实现不一样,AntDesign Pro指定MenuData就可以,Menu是sidebar的一部分,所以可以实现在控件里。

Masa Blazor Pro的菜单是一个MListGroup,和NavigationDrawer是分离的,NavigationDrawer如何知道该render什么?感觉还是实现在Masa Blazor Pro中合适。

或者是把NavigationDrawer增强一下,指定MenuData就可以实现菜单,并在展开/收起的时候render合适的样子。

@wangxuepeng 我们stack产品线的导航是这样的,你可以参考源码,至于PRO目前的设计没有更改的计划。

doddgu commented

@wangxuepeng 我们stack产品线的导航是这样的,你可以参考源码,至于PRO目前的设计没有更改的计划。

@capdiem 这个可以让 NagivationDrawer 增强,不属于Pro我觉得

Moved to Masa Stack issue list.

masastack/MASA.Stack.Components#438