From 6bd9e46fad05cb80b4493ca648d27c27d592be96 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E5=8A=B2=E6=9D=BE?= Date: Mon, 30 Mar 2020 14:14:09 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E4=BC=98=E5=8C=96=E4=BA=8C=E7=BA=A7?= =?UTF-8?q?=E5=88=97=E8=A1=A8=E6=8B=96=E5=8A=A8=E6=95=88=E6=9E=9C=E3=80=81?= =?UTF-8?q?=E6=8F=90=E5=8F=96=E5=85=AC=E5=85=B1=E6=96=B9=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nezha-fronted/src/assets/stylus/main.scss | 6 +- .../components/common/bottomBox/bottomBox.vue | 2 +- .../src/components/page/alert/config.vue | 148 ++--------------- .../src/components/page/asset/asset.vue | 149 ++--------------- .../src/components/page/config/account.vue | 146 ++--------------- .../src/components/page/config/dc.vue | 152 ++---------------- .../src/components/page/config/promServer.vue | 147 ++--------------- .../src/components/page/project/project.vue | 147 ++--------------- nezha-fronted/src/main.js | 3 +- nezha-fronted/src/tools.js | 144 +++++++++++++++++ 10 files changed, 233 insertions(+), 811 deletions(-) diff --git a/nezha-fronted/src/assets/stylus/main.scss b/nezha-fronted/src/assets/stylus/main.scss index 022fd75d0..81ad1155b 100644 --- a/nezha-fronted/src/assets/stylus/main.scss +++ b/nezha-fronted/src/assets/stylus/main.scss @@ -588,18 +588,18 @@ li{ } .main-list { height: 100%; - transition: .4s height, .4s transform; position: relative; } .main-list.main-list-with-sub { - transform: translate3d(0,0,0); height: calc(50% - 4px); } .sub-list { height: calc(50% - 4px); - transition: .4s height; position: relative; } +.main-and-sub-transition { + transition: .4s height; +} .sub-list-resize { margin: 0 -6px; border-top: 1px solid #aaa; diff --git a/nezha-fronted/src/components/common/bottomBox/bottomBox.vue b/nezha-fronted/src/components/common/bottomBox/bottomBox.vue index 315d5263c..575f7c77c 100644 --- a/nezha-fronted/src/components/common/bottomBox/bottomBox.vue +++ b/nezha-fronted/src/components/common/bottomBox/bottomBox.vue @@ -2,7 +2,7 @@
-
+
diff --git a/nezha-fronted/src/components/page/alert/config.vue b/nezha-fronted/src/components/page/alert/config.vue index 93e442416..efd9ae5ae 100644 --- a/nezha-fronted/src/components/page/alert/config.vue +++ b/nezha-fronted/src/components/page/alert/config.vue @@ -15,7 +15,7 @@
-
+