mirror of
https://github.com/m-xlsea/ruoyi-plus-soybean.git
synced 2025-09-24 07:49:47 +08:00
16 lines
532 B
Vue
16 lines
532 B
Vue
<template>
|
|
<hover-container class="w-40px" content-class="hover:text-primary" tooltip-content="主题模式" @click="toggleDarkMode">
|
|
<icon-mdi-moon-waning-crescent v-if="theme.darkMode" class="text-14px" />
|
|
<icon-mdi-white-balance-sunny v-else class="text-14px" />
|
|
</hover-container>
|
|
</template>
|
|
|
|
<script lang="ts" setup>
|
|
import { HoverContainer } from '@/components';
|
|
import { useThemeStore } from '@/store';
|
|
|
|
const theme = useThemeStore();
|
|
const { toggleDarkMode } = useThemeStore();
|
|
</script>
|
|
<style scoped></style>
|