style: menu style

pull/29/head
xingyu 2023-08-07 00:25:11 +08:00
parent 8347f97a2a
commit dcc33d37bc
2 changed files with 3 additions and 2 deletions

View File

@ -40,7 +40,7 @@ const getClass = computed(() => {
const getCollapse = computed(() => unref(getParentRootMenu)?.props.collapse)
const showTooptip = computed(() => {
const showToptip = computed(() => {
return unref(getParentMenu)?.type.name === 'Menu' && unref(getCollapse) && slots.title
})
@ -85,7 +85,7 @@ watch(
<template>
<li :class="getClass" :style="getCollapse ? {} : getItemStyle" @click.stop="handleClickItem">
<Tooltip v-if="showTooptip" placement="right">
<Tooltip v-if="showToptip" placement="right">
<template #title>
<slot name="title" />
</template>

View File

@ -232,6 +232,7 @@
color: @menu-dark-subsidiary-color;
&-active:not(.@{menu-prefix-cls}-submenu) {
color: #fff !important;
background-color: #0b55a4;
}
&:hover {