We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
4.1.2
Microsoft Edge122.0.2365.52 (正式版本) (64 位)
https://www.antdv.com/components/menu-cn#components-menu-demo-inline-collapsed
<a-menu v-model:selectedKeys="selectedKeys" mode="inline" theme="dark" :inline-collapsed="collapsed" :items="menus" @select="menuChoose" :open-keys="state.openKeys" @openChange="onOpenChange" ></a-menu> </a-layout-sider> // 高亮显示选中的菜单项 const openAndChooseSelectedMenu = (key) => { // 展开被选中的菜单(这边的写法只支持两层菜单) menus.value.forEach(m => { if(m.children && m.children.find(cm => cm.key === key)) { state.openKeys = [m.key] } }); // 选择具体某个菜单项 selectedKeys.value = [key] }
折叠的情况下,二级菜单弹出并高亮后自动消失。
二级菜单弹出选中后,一直停留在页面上。
The text was updated successfully, but these errors were encountered:
能否提供一个可复现的最小仓库地址呢?
Sorry, something went wrong.
This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days
No branches or pull requests
Version
4.1.2
Environment
Microsoft Edge122.0.2365.52 (正式版本) (64 位)
Reproduction link
https://www.antdv.com/components/menu-cn#components-menu-demo-inline-collapsed
Steps to reproduce
内嵌菜单,状态缩为缩起时:js里通过设置selectedKeys选中某个二级菜单,二级菜单会以气泡卡片形式弹出并选中菜单。但是气泡卡片会一直停留在页面上。只有鼠标移动到卡片上再移开才会消失。
GIF
代码示例
What is expected?
折叠的情况下,二级菜单弹出并高亮后自动消失。
What is actually happening?
二级菜单弹出选中后,一直停留在页面上。
The text was updated successfully, but these errors were encountered: