ViewUI icon indicating copy to clipboard operation
ViewUI copied to clipboard

[Feature Request]希望水平菜单Menu内容过多时出现左右切换按钮,目前无法自处理

Open shizhihuaxu opened this issue 5 years ago • 3 comments

What problem does this feature solve?

当水平菜单项过多时能够根据页面大小隐藏部分菜单项,并提供切换显示按钮;在目前的组件基础上无法自处理,如果设置菜单父元素overflow:hidden自处理,则二级子菜单会被隐藏掉,无法正常显示;

What does the proposed API look like?

可以提供menu 组件二级菜单的 transfer选项,放置到body层级或者能够实现切换按钮

shizhihuaxu avatar Feb 20 '21 06:02 shizhihuaxu

更新:暂时使用 dropdown 组件模拟

shizhihuaxu avatar Mar 03 '21 07:03 shizhihuaxu

我目前遇到 内容太长 给ivu-select-dropdown设置高度200 并且overflow-y: scroll后 二级菜单没有显示出来 你有解决吗? image

wakaka378 avatar Mar 03 '22 03:03 wakaka378

我目前遇到 内容太长 给ivu-select-dropdown设置高度200 并且overflow-y: scroll后 二级菜单没有显示出来 你有解决吗? image

dropdown 里的内容是用什么组件做的呀,用 z-index 提一下层级有作用吗

shizhihuaxu avatar Mar 09 '22 03:03 shizhihuaxu