🐛(component): [menu]tooltip 未跟随菜单主题颜色的问题

This commit is contained in:
sight 2022-07-21 12:20:50 +08:00
parent 826dc0fa75
commit e2af04ad83

View File

@ -20,6 +20,7 @@ const { level } = useLevel();
const selectedKey: Ref<string> = inject("selectedKey") as Ref<string>;
const isTree = inject("isTree") as ComputedRef<boolean>;
const isCollapse = inject("isCollapse") as ComputedRef<boolean | string>;
const theme = inject("menuTheme") as Ref<string>;
const selectHandle = function () {
selectedKey.value = props.id;
};
@ -39,7 +40,7 @@ const needTooltip = computed(
@click="selectHandle()"
>
<template v-if="needTooltip">
<lay-tooltip position="right">
<lay-tooltip position="right" :isDark="theme !== 'light'">
<a href="javascript:void(0)">
<i v-if="slots.icon">
<slot name="icon"></slot>