From 4a2dbbf1d904653763f664704f728318987d1351 Mon Sep 17 00:00:00 2001
From: wang <1509326266@qq.com>
Date: Sat, 27 Jul 2024 22:46:14 +0800
Subject: [PATCH] feat(components): add theme switching animation
---
src/components/common/theme-schema-switch.vue | 52 ++++++++++++++-----
src/layouts/modules/global-header/index.vue | 6 +--
src/styles/css/global.css | 18 +++++++
src/views/_builtin/login/index.vue | 7 +--
4 files changed, 58 insertions(+), 25 deletions(-)
diff --git a/src/components/common/theme-schema-switch.vue b/src/components/common/theme-schema-switch.vue
index 78050d4f..ffea5216 100644
--- a/src/components/common/theme-schema-switch.vue
+++ b/src/components/common/theme-schema-switch.vue
@@ -1,13 +1,12 @@
@@ -49,7 +73,7 @@ const tooltipContent = computed(() => {
:icon="icon"
:tooltip-content="tooltipContent"
:tooltip-placement="tooltipPlacement"
- @click="handleSwitch"
+ @click="toggleDark"
/>
diff --git a/src/layouts/modules/global-header/index.vue b/src/layouts/modules/global-header/index.vue
index cd640ba4..80bd3fbc 100644
--- a/src/layouts/modules/global-header/index.vue
+++ b/src/layouts/modules/global-header/index.vue
@@ -41,11 +41,7 @@ const { isFullscreen, toggle } = useFullscreen();