mirror of
https://github.com/m-xlsea/ruoyi-plus-soybean.git
synced 2025-09-24 07:49:47 +08:00
refactor(components): blankLayout引入GlobalContent
This commit is contained in:
@ -24,6 +24,8 @@ const props = withDefaults(defineProps<Props>(), {
|
||||
});
|
||||
|
||||
const COLOR_WHITE = '#ffffff';
|
||||
const stopColor = computed(() => mixColor(COLOR_WHITE, props.themeColor, 0.7));
|
||||
const stopColor = computed(() => {
|
||||
return mixColor(COLOR_WHITE, props.themeColor, 0.7);
|
||||
});
|
||||
</script>
|
||||
<style scoped></style>
|
||||
|
@ -1,12 +1,13 @@
|
||||
<template>
|
||||
<div class="flex-center w-40px h-40px text-14px hover:text-primary cursor-pointer" @click="toggleDarkMode">
|
||||
<hover-container class="w-40px h-full text-14px text-[#999] hover:text-primary" @click="toggleDarkMode">
|
||||
<icon-mdi-moon-waning-crescent v-if="dark" />
|
||||
<icon-mdi-white-balance-sunny v-else />
|
||||
</div>
|
||||
</hover-container>
|
||||
</template>
|
||||
|
||||
<script lang="ts" setup>
|
||||
import { watch } from 'vue';
|
||||
import { HoverContainer } from '../../common';
|
||||
import { useBoolean } from '@/hooks';
|
||||
|
||||
interface Props {
|
||||
|
Reference in New Issue
Block a user