From 57d1df3f6e7cf37917b76c9f4127757822967af5 Mon Sep 17 00:00:00 2001 From: pany <939630029@qq.com> Date: Thu, 29 Jun 2023 12:43:01 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=8B=93=E5=B1=95=E5=85=A8=E5=B1=8F?= =?UTF-8?q?=E7=BB=84=E4=BB=B6=EF=BC=8C=E6=94=AF=E6=8C=81=E5=86=85=E5=AE=B9?= =?UTF-8?q?=E5=8C=BA=E6=94=BE=E5=A4=A7=E5=92=8C=E5=86=85=E5=AE=B9=E5=8C=BA?= =?UTF-8?q?=E5=85=A8=E5=B1=8F=E4=B8=A4=E7=A7=8D=E6=A8=A1=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Screenfull/index.vue | 67 ++++++++++++++----- src/layout/components/TagsView/ScrollPane.vue | 2 +- src/styles/variables.css | 12 +++- 3 files changed, 62 insertions(+), 19 deletions(-) diff --git a/src/components/Screenfull/index.vue b/src/components/Screenfull/index.vue index 252ff8a..9259a2f 100644 --- a/src/components/Screenfull/index.vue +++ b/src/components/Screenfull/index.vue @@ -1,51 +1,84 @@ diff --git a/src/layout/components/TagsView/ScrollPane.vue b/src/layout/components/TagsView/ScrollPane.vue index 398acfa..9f7c8f4 100644 --- a/src/layout/components/TagsView/ScrollPane.vue +++ b/src/layout/components/TagsView/ScrollPane.vue @@ -118,7 +118,7 @@ watch( - + diff --git a/src/styles/variables.css b/src/styles/variables.css index 3e8da36..6c26a3f 100644 --- a/src/styles/variables.css +++ b/src/styles/variables.css @@ -1,5 +1,4 @@ /** 全局 CSS 变量,这种变量不仅可以在 CSS 和 SCSS 中使用,还可以导入到 JS 中使用 */ - :root { /** 全局背景色 */ --v3-body-bg-color: #f2f3f5; @@ -33,3 +32,14 @@ /** RightPanel 组件 */ --v3-rightpanel-button-bg-color: #001428; } + +/** 内容区放大时,将不需要的组件隐藏 */ +body.content-large { + /** Header 区域 = TagsView 组件 */ + --v3-header-height: var(--v3-tagsview-height); + /** NavigationBar 组件 */ + --v3-navigationbar-height: 0px; + /** Sidebar 组件 */ + --v3-sidebar-width: 0px; + --v3-sidebar-hide-width: 0px; +}