From a3ec9e2ad2f3f80c6ce42994396a2c9d69b0b24d Mon Sep 17 00:00:00 2001
From: pany <939630029@qq.com>
Date: Tue, 10 Dec 2024 17:36:58 +0800
Subject: [PATCH] =?UTF-8?q?perf:=20=E5=8F=B3=E4=BE=A7=E8=AE=BE=E7=BD=AE?=
 =?UTF-8?q?=E6=8C=89=E9=92=AE=E5=AE=9A=E4=BD=8D=E6=96=B9=E5=BC=8F=E6=94=B9?=
 =?UTF-8?q?=E4=B8=BA=E7=99=BE=E5=88=86=E6=AF=94?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 src/layouts/components/RightPanel/index.vue | 12 +-----------
 1 file changed, 1 insertion(+), 11 deletions(-)

diff --git a/src/layouts/components/RightPanel/index.vue b/src/layouts/components/RightPanel/index.vue
index e793832..90accec 100644
--- a/src/layouts/components/RightPanel/index.vue
+++ b/src/layouts/components/RightPanel/index.vue
@@ -1,16 +1,6 @@
 <script lang="ts" setup>
 import { Setting } from "@element-plus/icons-vue"
 
-interface Props {
-  buttonTop?: number
-}
-
-const props = withDefaults(defineProps<Props>(), {
-  buttonTop: 350
-})
-
-const buttonTopCss = `${props.buttonTop}px`
-
 const show = ref(false)
 </script>
 
@@ -31,7 +21,7 @@ const show = ref(false)
   height: 48px;
   background-color: var(--v3-rightpanel-button-bg-color);
   position: fixed;
-  top: v-bind(buttonTopCss);
+  top: 45%;
   right: 0;
   border-radius: 6px 0 0 6px;
   z-index: 2000;