style: menu style
parent
8347f97a2a
commit
dcc33d37bc
|
@ -40,7 +40,7 @@ const getClass = computed(() => {
|
||||||
|
|
||||||
const getCollapse = computed(() => unref(getParentRootMenu)?.props.collapse)
|
const getCollapse = computed(() => unref(getParentRootMenu)?.props.collapse)
|
||||||
|
|
||||||
const showTooptip = computed(() => {
|
const showToptip = computed(() => {
|
||||||
return unref(getParentMenu)?.type.name === 'Menu' && unref(getCollapse) && slots.title
|
return unref(getParentMenu)?.type.name === 'Menu' && unref(getCollapse) && slots.title
|
||||||
})
|
})
|
||||||
|
|
||||||
|
@ -85,7 +85,7 @@ watch(
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<li :class="getClass" :style="getCollapse ? {} : getItemStyle" @click.stop="handleClickItem">
|
<li :class="getClass" :style="getCollapse ? {} : getItemStyle" @click.stop="handleClickItem">
|
||||||
<Tooltip v-if="showTooptip" placement="right">
|
<Tooltip v-if="showToptip" placement="right">
|
||||||
<template #title>
|
<template #title>
|
||||||
<slot name="title" />
|
<slot name="title" />
|
||||||
</template>
|
</template>
|
||||||
|
|
|
@ -232,6 +232,7 @@
|
||||||
color: @menu-dark-subsidiary-color;
|
color: @menu-dark-subsidiary-color;
|
||||||
&-active:not(.@{menu-prefix-cls}-submenu) {
|
&-active:not(.@{menu-prefix-cls}-submenu) {
|
||||||
color: #fff !important;
|
color: #fff !important;
|
||||||
|
background-color: #0b55a4;
|
||||||
}
|
}
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
|
|
Loading…
Reference in New Issue