🐛(component): [menu]tooltip 未跟随菜单主题颜色的问题
This commit is contained in:
parent
826dc0fa75
commit
e2af04ad83
@ -20,6 +20,7 @@ const { level } = useLevel();
|
|||||||
const selectedKey: Ref<string> = inject("selectedKey") as Ref<string>;
|
const selectedKey: Ref<string> = inject("selectedKey") as Ref<string>;
|
||||||
const isTree = inject("isTree") as ComputedRef<boolean>;
|
const isTree = inject("isTree") as ComputedRef<boolean>;
|
||||||
const isCollapse = inject("isCollapse") as ComputedRef<boolean | string>;
|
const isCollapse = inject("isCollapse") as ComputedRef<boolean | string>;
|
||||||
|
const theme = inject("menuTheme") as Ref<string>;
|
||||||
const selectHandle = function () {
|
const selectHandle = function () {
|
||||||
selectedKey.value = props.id;
|
selectedKey.value = props.id;
|
||||||
};
|
};
|
||||||
@ -39,7 +40,7 @@ const needTooltip = computed(
|
|||||||
@click="selectHandle()"
|
@click="selectHandle()"
|
||||||
>
|
>
|
||||||
<template v-if="needTooltip">
|
<template v-if="needTooltip">
|
||||||
<lay-tooltip position="right">
|
<lay-tooltip position="right" :isDark="theme !== 'light'">
|
||||||
<a href="javascript:void(0)">
|
<a href="javascript:void(0)">
|
||||||
<i v-if="slots.icon">
|
<i v-if="slots.icon">
|
||||||
<slot name="icon"></slot>
|
<slot name="icon"></slot>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user