From 348ad2a6adefd740cd6c6bbf987808d4bafa6792 Mon Sep 17 00:00:00 2001 From: rd <1344903914@qq.com> Date: Mon, 15 Sep 2025 17:57:39 +0800 Subject: [PATCH] =?UTF-8?q?style:=20=E8=B0=83=E6=95=B4=E7=99=BB=E5=BD=95?= =?UTF-8?q?=E8=A1=A8=E5=8D=95=E6=A0=B7=E5=BC=8F=E5=92=8C=E6=8C=89=E9=92=AE?= =?UTF-8?q?=E5=B8=83=E5=B1=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 更新 `login/style.scss` 中的输入框内边距和字体大小 - 在 `ant-input.scss` 中添加自动填充样式 - 修改 `login-form/index.vue` 中忘记密码按钮的显示逻辑 --- src/styles/components/ant-input.scss | 20 +++++++++++++++++-- .../login/components/login-form/index.vue | 20 +++++++++++-------- src/views/login/style.scss | 4 ++-- 3 files changed, 32 insertions(+), 12 deletions(-) diff --git a/src/styles/components/ant-input.scss b/src/styles/components/ant-input.scss index 1f99625..7327837 100644 --- a/src/styles/components/ant-input.scss +++ b/src/styles/components/ant-input.scss @@ -20,6 +20,7 @@ color: var(--Text-4, #939499); } + &:hover { background-color: #fff !important; } @@ -43,6 +44,15 @@ border-color: $color-error !important; } } + + &:-webkit-autofill, + &:-webkit-autofill:hover, + &:-webkit-autofill:focus, + &:-webkit-autofill:active { + -webkit-transition-delay: 99999s; + -webkit-transition: color 99999s ease-out, + background-color 99999s ease-out; + } } input.ant-input { height: 32px; @@ -64,11 +74,17 @@ textarea.ant-input { background-color: var(--BG-200, #f2f3f5) !important; } - &.ant-input-affix-wrapper-status-error { - &:not(.ant-input-affix-wrapper-disabled) { + &:not(.ant-input-affix-wrapper-disabled) { + &.ant-input-affix-wrapper-status-error { border-color: $color-error !important; } + + &:hover { + border-color: $color-primary !important; + } } + + &:focus, &-focused { box-shadow: none !important; diff --git a/src/views/login/components/login-form/index.vue b/src/views/login/components/login-form/index.vue index 3630f5a..bbc29ba 100644 --- a/src/views/login/components/login-form/index.vue +++ b/src/views/login/components/login-form/index.vue @@ -67,14 +67,18 @@ 登录