From 3cfb256281f055a97803eb0de17d9f2198a2c8ac Mon Sep 17 00:00:00 2001 From: zouzhibing Date: Mon, 12 Sep 2022 20:31:21 +0800 Subject: [PATCH 1/2] =?UTF-8?q?update:=E4=BC=98=E5=8C=96=E6=BB=9A=E5=8A=A8?= =?UTF-8?q?=EF=BC=8C=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/App.vue | 11 ----- src/layout/Header/index.vue | 3 +- src/layout/Main/index.vue | 14 ++----- src/layout/Sidebar/components/Logo.vue | 2 +- src/layout/TagsView/index.vue | 20 +++++++-- src/layout/index.vue | 57 +++++++++++++------------- src/router/index.ts | 3 -- src/styles/common.scss | 38 ++++++++++++++++- src/views/charts/migration.vue | 6 +-- 9 files changed, 90 insertions(+), 64 deletions(-) diff --git a/src/App.vue b/src/App.vue index 75e9cfd..ee50ef7 100644 --- a/src/App.vue +++ b/src/App.vue @@ -25,13 +25,6 @@ -moz-osx-font-smoothing: grayscale; color: #2c3e50; } - html, - body { - height: 100%; - } - body{ - background: #f6f8f9; - } .el-pager li:focus { border: none; } @@ -41,8 +34,4 @@ .svg-icon:focus { border: none; } - * { - margin: 0; - padding: 0; - } diff --git a/src/layout/Header/index.vue b/src/layout/Header/index.vue index 1f18d2a..05c6771 100644 --- a/src/layout/Header/index.vue +++ b/src/layout/Header/index.vue @@ -128,8 +128,9 @@ cursor: pointer; } .header { - height: 60px; + height: 50px; width: 100%; + border-bottom: 1px solid #eee; display: flex; align-items: center; padding: 0 10px; diff --git a/src/layout/Main/index.vue b/src/layout/Main/index.vue index 2afae56..5521876 100644 --- a/src/layout/Main/index.vue +++ b/src/layout/Main/index.vue @@ -1,5 +1,5 @@ diff --git a/src/router/index.ts b/src/router/index.ts index 56b8d64..50f922a 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -108,9 +108,7 @@ export const asyncRoutes = [ dataScreenRouter, chartsRouter, tableRouter, - chatRouter, - // componentsRouter, othersRouter, nestedRouter, excelRouter, @@ -120,7 +118,6 @@ export const asyncRoutes = [ clipboardTable, systemRouter, permissionRouter, - { path: '/:pathMatch(.*)', redirect: '/error/404' diff --git a/src/styles/common.scss b/src/styles/common.scss index dd90a11..528dcdb 100644 --- a/src/styles/common.scss +++ b/src/styles/common.scss @@ -1,3 +1,18 @@ +html, +body { + height: 100%; + width: 100%; + overflow: visible; + overflow-x: hidden; + margin: 0; + padding: 0; +} + + +body{ + background: #f6f8f9; +} + /* 常用 flex */ .flex-center { @@ -15,9 +30,30 @@ align-items: center; } - +/* 移动端的时候由于屏幕变小隐藏头部导航栏 */ @media screen and ( max-width: 540px ) { .app-breadcrumb{ display: none!important; } } + + +/** 设置滚动条 **/ +::-webkit-scrollbar { + width: 7px; + height: 8px; +} + + +::-webkit-scrollbar-track { + background-color: rgb(0 0 0 / 5%); +} + +::-webkit-scrollbar-thumb { + // background: rgba(0, 0, 0, 0.6); + background-color: rgb(144 147 153 / 30%); + // background-color: rgba(144, 147, 153, 0.3); + border-radius: 2px; + box-shadow: inset 0 0 6px rgb(0 0 0 / 20%); +} + diff --git a/src/views/charts/migration.vue b/src/views/charts/migration.vue index c8050d2..20d9c36 100644 --- a/src/views/charts/migration.vue +++ b/src/views/charts/migration.vue @@ -11,12 +11,12 @@ diff --git a/src/components/u-Hamburger/index.vue b/src/components/u-Hamburger/index.vue index 9a89e3a..562edfb 100644 --- a/src/components/u-Hamburger/index.vue +++ b/src/components/u-Hamburger/index.vue @@ -1,6 +1,6 @@