From ac8274f791063de11197f624ad7c68b357bf96cf Mon Sep 17 00:00:00 2001 From: MTrun <1262327911@qq.com> Date: Tue, 14 Dec 2021 20:32:22 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E6=94=B9=E9=A6=96=E9=A1=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/plugins/naive.ts | 6 +- src/styles/common/var.scss | 6 ++ src/views/login/index.vue | 166 +++++++++++++++++++++---------------- 3 files changed, 104 insertions(+), 74 deletions(-) diff --git a/src/plugins/naive.ts b/src/plugins/naive.ts index 75d4e3ef..9cb6be04 100644 --- a/src/plugins/naive.ts +++ b/src/plugins/naive.ts @@ -66,7 +66,8 @@ import { NTimePicker, NBackTop, NSkeleton, - NCarousel + NCarousel, + NCollapseTransition } from 'naive-ui'; const naive = create({ @@ -136,7 +137,8 @@ const naive = create({ NTimePicker, NBackTop, NSkeleton, - NCarousel + NCarousel, + NCollapseTransition ], }); diff --git a/src/styles/common/var.scss b/src/styles/common/var.scss index 5979a6f3..1083cae4 100644 --- a/src/styles/common/var.scss +++ b/src/styles/common/var.scss @@ -4,6 +4,12 @@ $--color-red: #fc625d; $--color-warn: #fcbc40; $--color-success: #34c749; +// 文字 +$--color-text-1: hsla(0, 0%, 100%, 0.9); +$--color-text-2: hsla(0, 0%, 100%, 0.7); +$--color-text-3: hsla(0, 0%, 100%, 0.5); +$--color-text-4: hsla(0, 0%, 100%, 0.3); + // 顶部距离 $--header-height: 60px; // 模糊 diff --git a/src/views/login/index.vue b/src/views/login/index.vue index ec40ef96..c7861d27 100644 --- a/src/views/login/index.vue +++ b/src/views/login/index.vue @@ -15,78 +15,82 @@