From 9ddf449ea7759a2bc85dffe04978c2d10997f5d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=80=E4=B8=87?= <52823142+Ten-K@users.noreply.github.com> Date: Sun, 31 Oct 2021 20:24:57 +0800 Subject: [PATCH] perf: perf style (#89) perf: perf style --- src/components/ReCharts/src/Infinite.vue | 2 +- src/components/ReMap/src/Amap.vue | 4 +- src/layout/components/appMain.vue | 30 ++- src/style/index.scss | 5 - src/style/sidebar.scss | 1 + src/views/components/contextmenu/index.vue | 2 +- src/views/components/count-to/index.vue | 2 +- src/views/components/cropping/index.vue | 2 +- src/views/components/map/index.vue | 9 +- .../components/seamless-scroll/index.vue | 4 - src/views/components/selector/index.vue | 13 +- src/views/components/split-pane/index.vue | 5 +- src/views/flow-chart/index.vue | 9 +- src/views/nested/menu1/index.vue | 2 +- src/views/nested/menu2/index.vue | 2 +- src/views/permission/button/index.vue | 2 +- src/views/permission/page/index.vue | 2 +- src/views/system/dict/index.vue | 14 +- src/views/system/user/index.vue | 31 +-- src/views/welcome.vue | 186 +++++++++--------- 20 files changed, 161 insertions(+), 166 deletions(-) diff --git a/src/components/ReCharts/src/Infinite.vue b/src/components/ReCharts/src/Infinite.vue index 28f9c0160..654d87fe3 100644 --- a/src/components/ReCharts/src/Infinite.vue +++ b/src/components/ReCharts/src/Infinite.vue @@ -111,7 +111,7 @@ let classOption = reactive({ .warp { width: 95%; - height: 230px; + height: 215px; margin: 0 auto; overflow: hidden; diff --git a/src/components/ReMap/src/Amap.vue b/src/components/ReMap/src/Amap.vue index ef2c5e931..507d937c9 100644 --- a/src/components/ReMap/src/Amap.vue +++ b/src/components/ReMap/src/Amap.vue @@ -28,7 +28,7 @@ let map: MapConfigureInter; const instance = getCurrentInstance(); -const mapSet: mapInter = reactive({ +const mapSet = reactive({ loading: deviceDetection() ? false : true }); @@ -138,7 +138,7 @@ onUnmounted(() => { diff --git a/src/style/index.scss b/src/style/index.scss index 0706bfd44..a72b289c2 100644 --- a/src/style/index.scss +++ b/src/style/index.scss @@ -65,11 +65,6 @@ ul { } } -// main-container global css -.app-container { - padding: 20px; -} - .login, .register { width: 100vw; diff --git a/src/style/sidebar.scss b/src/style/sidebar.scss index 5aad6fcd5..bbb570724 100644 --- a/src/style/sidebar.scss +++ b/src/style/sidebar.scss @@ -33,6 +33,7 @@ transition: margin-left 0.28s; margin-left: $sideBarWidth; position: relative; + background: #f0f2f5; @media screen and (min-width: 150px) and (max-width: 420px) { .app-main .el-scrollbar__view:first-child { overflow-y: hidden; diff --git a/src/views/components/contextmenu/index.vue b/src/views/components/contextmenu/index.vue index 8dbde0f41..f59353a64 100644 --- a/src/views/components/contextmenu/index.vue +++ b/src/views/components/contextmenu/index.vue @@ -5,7 +5,7 @@ import menuDynamic from "./menuDynamic.vue";