fix(layout->menu): can`t hover when menu is colappsed (#3499) resolve #3492

This commit is contained in:
xachary 2024-01-05 09:52:19 +08:00 committed by GitHub
parent f0ca8d5a03
commit 7ffe1726b9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -44,7 +44,8 @@
:class="`${prefixCls}-submenu-title-icon`" :class="`${prefixCls}-submenu-title-icon`"
/> />
</div> </div>
<template #content v-if="state.opened"> <!-- eslint-disable-next-line -->
<template #content v-show="state.opened">
<div v-bind="getEvents(true)"> <div v-bind="getEvents(true)">
<ul :class="[prefixCls, `${prefixCls}-${getTheme}`, `${prefixCls}-popup`]"> <ul :class="[prefixCls, `${prefixCls}-${getTheme}`, `${prefixCls}-popup`]">
<slot></slot> <slot></slot>