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

在展开子菜单的情况下,点击折叠菜单时,左侧竖向子菜单不会向上收起,再次展开时也不会展开,其他版本都是横向和纵向同时收起。https://elp.soybeanjs.cn/ #57

Open
liuxukang opened this issue Feb 14, 2025 · 1 comment
Labels
bug Something isn't working

Comments

@liuxukang
Copy link

Image

@liuxukang liuxukang changed the title 在展开子菜单的情况下,点击折叠菜单时,左侧竖向子菜单不会收起,其他版本都是横向和纵向同时收起。https://elp.soybeanjs.cn/ 在展开子菜单的情况下,点击折叠菜单时,左侧竖向子菜单不会向上收起,再次展开时也不会展开,其他版本都是横向和纵向同时收起。https://elp.soybeanjs.cn/ Feb 14, 2025
@liuxukang liuxukang reopened this Feb 14, 2025
@skyfeiz skyfeiz added the bug Something isn't working label Feb 14, 2025
@skyfeiz
Copy link
Collaborator

skyfeiz commented Feb 14, 2025

增加了default-openeds默认展开项。[#58]
切换collapse,收起还是存在问题,可能属于ElementPlus问题。

// 官方源码位置 /element-plus/packages/components/menu/src/menu.ts 375行

watch(
    () => props.collapse,
    (value) => {
      if (value) openedMenus.value = []
    }
  )

这里切换collapse时,ElementPlus有设置 展开项 为空,但这里没有触发收起动画。
具体问题还需要进一步查看.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants