From 38388645bd77ab1b466c4cbf14f290e1391f93af Mon Sep 17 00:00:00 2001 From: chenjinsong <523037378@qq.com> Date: Wed, 3 Jun 2020 14:53:02 +0800 Subject: [PATCH] =?UTF-8?q?NEZ-289=20perf:=20=E6=A0=87=E9=A2=98=E8=89=B2?= =?UTF-8?q?=E8=B0=83=E6=B5=85=E3=80=81=E4=BC=98=E5=8C=96=E5=8A=A8=E7=94=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nezha-fronted/src/assets/stylus/main.scss | 98 +++++++++++++++++++ .../components/charts/chart-asset-info.vue | 8 +- .../src/components/charts/chart-list.vue | 1 + .../components/charts/chart-project-info.vue | 29 +++--- .../src/components/charts/chart.scss | 39 ++++++-- .../src/components/common/language/en.js | 1 + 6 files changed, 150 insertions(+), 26 deletions(-) diff --git a/nezha-fronted/src/assets/stylus/main.scss b/nezha-fronted/src/assets/stylus/main.scss index 23ad8cad6..5d42dd699 100644 --- a/nezha-fronted/src/assets/stylus/main.scss +++ b/nezha-fronted/src/assets/stylus/main.scss @@ -845,6 +845,104 @@ li{ transform-origin: right; } } +@keyframes unfold-200 { + 0%{ + visibility: hidden; + opacity: 0; + max-height: 0; + } + 25%{ + opacity: 0; + max-height: 50px; + } + 50%{ + opacity: 0; + max-height: 100px; + } + 75%{ + opacity: 0.4; + max-height: 150px; + } + 100% { + visibility: visible; + opacity: 1; + max-height: 200px; + } +} +@keyframes fold-200 { + 0% { + opacity: 1; + max-height: 200px; + visibility: visible; + } + 25%{ + + opacity: 0.4; + max-height: 150px; + } + 50%{ + opacity: 0; + max-height: 100px; + } + 75%{ + opacity: 0; + max-height: 50px; + } + 100% { + visibility: hidden; + opacity: 0; + max-height: 0; + } +} +@keyframes unfold-500 { + 0%{ + visibility: hidden; + opacity: 0; + max-height: 0; + } + 25%{ + opacity: 0; + max-height: 125px; + } + 50%{ + opacity: 0; + max-height: 250px; + } + 75%{ + opacity: 0.4; + max-height: 375px; + } + 100% { + visibility: visible; + opacity: 1; + max-height: 500px; + } +} +@keyframes fold-500 { + 0% { + opacity: 1; + max-height: 500px; + visibility: visible; + } + 25%{ + + opacity: 0.4; + max-height: 375px; + } + 50%{ + opacity: 0; + max-height: 250px; + } + 75%{ + opacity: 0; + max-height: 125px; + } + 100% { + visibility: hidden; + opacity: 0; + max-height: 0; + } +} .right-box-enter-active { animation: slide-in-from-right 0.4s; } diff --git a/nezha-fronted/src/components/charts/chart-asset-info.vue b/nezha-fronted/src/components/charts/chart-asset-info.vue index b9c889f65..0d2e6808e 100644 --- a/nezha-fronted/src/components/charts/chart-asset-info.vue +++ b/nezha-fronted/src/components/charts/chart-asset-info.vue @@ -33,7 +33,7 @@ {{$t('asset.createAssetTab.basicTitle')}} -