From cebc6a590e1a19af7380a55aed43b23af274df0a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=97=A0=E6=9C=A8?= Date: Fri, 23 Jul 2021 09:33:14 +0800 Subject: [PATCH] fix(login): fix `auto fill` style in dark-theme MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修复黑暗主题下的自动填充表单域样式 --- src/views/sys/login/Login.vue | 6 ++++++ src/views/sys/login/LoginForm.vue | 7 ++++++- src/views/sys/login/MobileForm.vue | 8 +++++++- src/views/sys/login/RegisterForm.vue | 11 +++++++++-- 4 files changed, 28 insertions(+), 4 deletions(-) diff --git a/src/views/sys/login/Login.vue b/src/views/sys/login/Login.vue index ab5b157c..4a925c6c 100644 --- a/src/views/sys/login/Login.vue +++ b/src/views/sys/login/Login.vue @@ -140,6 +140,12 @@ color: #fff; } } + + input.fix-auto-fill, + .fix-auto-fill input { + -webkit-text-fill-color: #c9d1d9 !important; + box-shadow: inherit !important; + } } .@{prefix-cls} { diff --git a/src/views/sys/login/LoginForm.vue b/src/views/sys/login/LoginForm.vue index 697592ca..244bd14b 100644 --- a/src/views/sys/login/LoginForm.vue +++ b/src/views/sys/login/LoginForm.vue @@ -9,7 +9,12 @@ @keypress.enter="handleLogin" > - +
- + diff --git a/src/views/sys/login/RegisterForm.vue b/src/views/sys/login/RegisterForm.vue index b80c17b5..07eed0b5 100644 --- a/src/views/sys/login/RegisterForm.vue +++ b/src/views/sys/login/RegisterForm.vue @@ -4,17 +4,24 @@ - + @@ -52,7 +59,7 @@ > {{ t('sys.login.registerButton') }} -