From 1fa5793ec4486ea0c7cf7626f48cdb35e6c10a09 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=95=9D=E8=A3=B3?= <1923740402@qq.com> Date: Wed, 27 Oct 2021 14:40:31 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E5=8F=96=E6=B6=88?= =?UTF-8?q?=E5=9B=BA=E5=AE=9A=E5=A4=B4=E9=83=A8=E9=97=AE=E9=A2=98=20(#75)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * fix: 修复取消固定头部问题 * perf: simplify the layout code --- .vscode/settings.json | 3 +- src/layout/components/appMain.vue | 105 +++++++++++++++++++++-------- src/layout/index.vue | 106 +++++++++++++++++++----------- src/style/sidebar.scss | 22 +++++++ 4 files changed, 166 insertions(+), 70 deletions(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index d9426c8b6..84fc371c6 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -45,5 +45,6 @@ "source.fixAll.eslint": true }, "volar.tsPlugin": true, - "typescript.tsdk": "node_modules/typescript/lib" + "typescript.tsdk": "node_modules/typescript/lib", + "i18n-ally.localesPaths": ["src/plugins/i18n"] } diff --git a/src/layout/components/appMain.vue b/src/layout/components/appMain.vue index 70db036b4..e28ed909d 100644 --- a/src/layout/components/appMain.vue +++ b/src/layout/components/appMain.vue @@ -1,42 +1,72 @@ @@ -58,4 +99,10 @@ const transition = computed(() => { position: relative; overflow-x: hidden; } + +.app-main-nofixed-header { + width: 100%; + min-height: 100vh; + position: relative; +} diff --git a/src/layout/index.vue b/src/layout/index.vue index f971ac450..7917b5d87 100644 --- a/src/layout/index.vue +++ b/src/layout/index.vue @@ -1,32 +1,6 @@ - -