From 19434009330554e028d5a1f145eaba769371cac8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BA=8C=E5=88=BA=E8=9E=88?= Date: Sat, 14 Dec 2024 21:34:03 +0800 Subject: [PATCH] perf: gkd-w, BodyScrollbar --- src/App.vue | 21 +++- src/components/BodyScrollbar.vue | 169 ++++++++++++++++++++++++++ src/components/TrackDlg.vue | 2 +- src/utils/others.ts | 27 +++- src/utils/size.ts | 4 +- src/views/SelectorPage.vue | 6 + src/views/snapshot/AttrCard.vue | 2 +- src/views/snapshot/ScreenshotCard.vue | 2 +- 8 files changed, 216 insertions(+), 17 deletions(-) create mode 100644 src/components/BodyScrollbar.vue diff --git a/src/App.vue b/src/App.vue index 71d1d6b..4c561a0 100644 --- a/src/App.vue +++ b/src/App.vue @@ -2,26 +2,35 @@ import { dateZhCN, zhCN } from 'naive-ui'; import { RouterView } from 'vue-router'; import ErrorDlg from './components/ErrorDlg.vue'; +import { ScrollbarWrapper } from './utils/others'; diff --git a/src/components/TrackDlg.vue b/src/components/TrackDlg.vue index d5808d1..a839a51 100644 --- a/src/components/TrackDlg.vue +++ b/src/components/TrackDlg.vue @@ -30,7 +30,7 @@ watchEffect(() => { v-model:show="show" preset="dialog" title="选择器路径视图" - class="min-w-[calc(var(--gkd-width)*0.4)]" + class="min-w-[calc(var(--gkd-w)*0.4)]" @afterLeave="onUpdateTrack()" >