From 5a25a6d5621f93ef7e242f9eaadd198d2fdcde85 Mon Sep 17 00:00:00 2001 From: xxqc Date: Wed, 5 Jul 2023 14:27:19 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E6=9A=97=E9=BB=91?= =?UTF-8?q?=E6=A8=A1=E5=BC=8F=EF=BC=8C=E6=A0=B7=E5=BC=8F=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/layouts/default/tabs/index.less | 19 +++++++++++++------ src/views/base/login/LoginForm.vue | 8 +++++++- 2 files changed, 20 insertions(+), 7 deletions(-) diff --git a/src/layouts/default/tabs/index.less b/src/layouts/default/tabs/index.less index 2a70122..8a02782 100644 --- a/src/layouts/default/tabs/index.less +++ b/src/layouts/default/tabs/index.less @@ -6,14 +6,26 @@ html[data-theme='dark'] { border-bottom: none !important; } } + .ant-tabs-tab:not(.ant-tabs-tab-active) { + border: none !important; + &:hover { + color: inherit; + background-color: rgba(255, 255, 255, 0.5) !important; + } + } } html[data-theme='light'] { .@{prefix-cls} { .ant-tabs-tab:not(.ant-tabs-tab-active) { border: none !important; + &:hover { + color: inherit; + background-color: #dee1e6; + } } } + } .@{prefix-cls} { @@ -120,12 +132,7 @@ html[data-theme='light'] { } } - .ant-tabs-tab:not(.ant-tabs-tab-active) { - &:hover { - color: inherit; - background-color: #dee1e6; - } - } + .ant-tabs-tab-active { position: relative; diff --git a/src/views/base/login/LoginForm.vue b/src/views/base/login/LoginForm.vue index 35f54fd..86387ab 100644 --- a/src/views/base/login/LoginForm.vue +++ b/src/views/base/login/LoginForm.vue @@ -14,7 +14,13 @@ - +