Skip to content

菜单收缩时子菜单滚动条不能操作 #3430

@jingping-ye

Description

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

What problem does this feature solve?

菜单收缩时,如果悬浮子菜单过多,那么菜单会将页面的高撑破。我写了一行代码实现了将子菜单的高限制在当前屏幕的高之内,如下。看起来很可行,但是实际操作的时候,会发现鼠标不能去操作滚动条,但是使用鼠标滚轮可以。

<style lang="scss">
.ant-menu-dark,
.ant-menu-dark .ant-menu-sub {
  max-height: 100vh;
  overflow: auto;
}
</style>

What does the proposed API look like?

滚动条可以操作

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions