From 2742844957d617d63393b5fc4bb83c8f2673044e Mon Sep 17 00:00:00 2001 From: longyi-xw <2691049525@qq.com> Date: Wed, 14 Feb 2024 23:34:55 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20right-panel=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/ThemeSwitch/index.vue | 31 +++++------ src/layouts/components/AppMain.vue | 9 +++- src/layouts/components/Breadcrumb/index.vue | 20 ++++---- src/layouts/components/Hamburger/index.vue | 8 ++- .../components/NavigationBar/index.vue | 51 ++++++++++++------- src/layouts/components/RightPanel/index.vue | 10 ++-- src/layouts/components/Settings/index.vue | 17 ++++--- 7 files changed, 82 insertions(+), 64 deletions(-) diff --git a/src/components/ThemeSwitch/index.vue b/src/components/ThemeSwitch/index.vue index 6eabf17..229c798 100644 --- a/src/components/ThemeSwitch/index.vue +++ b/src/components/ThemeSwitch/index.vue @@ -1,30 +1,31 @@ diff --git a/src/layouts/components/AppMain.vue b/src/layouts/components/AppMain.vue index 81b4e9e..052ead2 100644 --- a/src/layouts/components/AppMain.vue +++ b/src/layouts/components/AppMain.vue @@ -5,6 +5,10 @@ import Footer from "./Footer/index.vue"; const tagsViewStore = useTagsViewStore(); const settingsStore = useSettingsStore(); + +const getBackTopTarget = () => { + return document.querySelector(".app-scrollbar"); +}; @@ -43,6 +47,7 @@ const settingsStore = useSettingsStore(); @extend %scrollbar; display: flex; flex-direction: column; + .app-container-grow { flex-grow: 1; } diff --git a/src/layouts/components/Breadcrumb/index.vue b/src/layouts/components/Breadcrumb/index.vue index 30681a1..65f7504 100644 --- a/src/layouts/components/Breadcrumb/index.vue +++ b/src/layouts/components/Breadcrumb/index.vue @@ -40,31 +40,31 @@ listenerRouteChange((route) => {