From d2dd90855083a528d7b11d708668d291a76dc2e1 Mon Sep 17 00:00:00 2001 From: Hakadao Date: Tue, 17 Oct 2023 23:37:35 +0800 Subject: [PATCH] feat: add animation effect for home page entry --- src/contentScripts/views/Home/Home.vue | 116 ++++++++++++++++--------- 1 file changed, 74 insertions(+), 42 deletions(-) diff --git a/src/contentScripts/views/Home/Home.vue b/src/contentScripts/views/Home/Home.vue index bfe9cbaf..8c7b5dce 100644 --- a/src/contentScripts/views/Home/Home.vue +++ b/src/contentScripts/views/Home/Home.vue @@ -13,6 +13,7 @@ const handleBackToTop = inject('handleBackToTop') as (targetScrollTop: number) = const recommendContentKey = ref(`recommendContent${Number(new Date())}`) const activatedPage = ref(HomeSubPage.ForYou) const pages = { ForYou, Following, Trending, Ranking } +const showSearchPageMode = ref(false) const tabs = reactive([ { @@ -38,6 +39,7 @@ watch(() => activatedPage.value, () => { }) onMounted(() => { + showSearchPageMode.value = true emitter.off('pageRefresh') emitter.on('pageRefresh', async () => { recommendContentKey.value = `recommendContent${Number(new Date())}` @@ -52,57 +54,63 @@ onUnmounted(() => {