mirror of
https://github.com/soybeanjs/soybean-admin.git
synced 2025-12-29 10:10:18 +08:00
refactor(projects): all file and folder use kebab-case
This commit is contained in:
15
src/layouts/common/global-header/components/theme-mode.vue
Normal file
15
src/layouts/common/global-header/components/theme-mode.vue
Normal file
@@ -0,0 +1,15 @@
|
||||
<template>
|
||||
<hover-container class="w-40px" :inverted="theme.header.inverted" tooltip-content="主题模式">
|
||||
<dark-mode-switch :dark="theme.darkMode" class="wh-full" @update:dark="theme.setDarkMode" />
|
||||
</hover-container>
|
||||
</template>
|
||||
|
||||
<script lang="ts" setup>
|
||||
import { useThemeStore } from '@/store';
|
||||
|
||||
defineOptions({ name: 'ThemeMode' });
|
||||
|
||||
const theme = useThemeStore();
|
||||
</script>
|
||||
|
||||
<style scoped></style>
|
||||
Reference in New Issue
Block a user