Skip to content
This repository has been archived by the owner on Aug 28, 2024. It is now read-only.

Commit

Permalink
fix: 左侧混合菜单,鼠标离开左侧菜单不关闭菜单面板,鼠标离开菜单面板 关闭菜单面板(#118)
Browse files Browse the repository at this point in the history
  • Loading branch information
jinmao88 committed Oct 26, 2023
1 parent d8e4016 commit 960ac03
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/layouts/src/components/mixSideBar/Menu.vue
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,8 @@ const getMenuEvents = computed(() => {
? {
onMouseleave: () => {
setActive(true)
closeMenu()
//鼠标离开Menu 不触发关闭菜单面板
// closeMenu()
},
}
: {}
Expand Down Expand Up @@ -241,7 +242,7 @@ const handleFixedMenu = () => {
<VbenH5 v-if="openMenu" :class="bem('menu-list__children-title')">{{
childrenTitle
}}</VbenH5>
<MixMenu :list="childrenMenus" />
<MixMenu :list="childrenMenus" @mouseleave="closeMenu" />
</div>
</div>
</template>
Expand Down

0 comments on commit 960ac03

Please sign in to comment.