给部分按钮增加浮动提示

This commit is contained in:
alkalixin
2024-02-23 15:07:01 +08:00
parent 6e6be057ca
commit 25c22a276a
5 changed files with 110 additions and 42 deletions

View File

@@ -121,7 +121,11 @@ function themeTransition() {
<template>
<IconBtn @click="changeTheme">
<VIcon :icon="props.themes[currentThemeIndex].icon" />
<VTooltip text="切换主题">
<template #activator="{ props: _props }">
<VIcon v-bind="_props" :icon="props.themes[currentThemeIndex].icon" />
</template>
</VTooltip>
</IconBtn>
</template>