From 8a34b42c2aabeef91e825494a468c4957d2fbcc1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BD=95=E5=98=89=E6=82=A6?= <2834007710@qq.com> Date: Fri, 6 Jun 2025 18:17:49 +0800 Subject: [PATCH] =?UTF-8?q?fix(component):=20=F0=9F=A7=A9=20=E6=8F=90?= =?UTF-8?q?=E4=BA=A4=E4=BB=A3=E7=A0=81=E4=B8=8D=E6=A0=A1=E9=AA=8C=E6=A0=B7?= =?UTF-8?q?=E5=BC=8F=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .lintstagedrc | 5 ----- src/components/LoginDialog/index.vue | 12 ++++++++---- src/layouts/components/Aside/index.vue | 9 +++------ 3 files changed, 11 insertions(+), 15 deletions(-) diff --git a/.lintstagedrc b/.lintstagedrc index 3e66be0..cb7bda4 100644 --- a/.lintstagedrc +++ b/.lintstagedrc @@ -9,11 +9,6 @@ ], "*.vue": [ "eslint --fix", - "stylelint --fix", - "git add" - ], - "*.{scss,less,styl,html}": [ - "stylelint --fix", "git add" ] } diff --git a/src/components/LoginDialog/index.vue b/src/components/LoginDialog/index.vue index f55183d..4eebe82 100644 --- a/src/components/LoginDialog/index.vue +++ b/src/components/LoginDialog/index.vue @@ -113,8 +113,8 @@ function onAfterLeave() { /* 动画样式(仅作用于弹框) */ .dialog-zoom-enter-active, .dialog-zoom-leave-active { - transform-origin: center; transition: all 0.3s ease-in-out; + transform-origin: center; } .dialog-zoom-enter-from, .dialog-zoom-leave-to { @@ -141,8 +141,8 @@ function onAfterLeave() { overflow: hidden; user-select: none; background-color: rgb(0 0 0 / 50%); - opacity: 1; backdrop-filter: blur(3px); + opacity: 1; transition: opacity 0.3s; } .mask[hidden] { @@ -171,7 +171,11 @@ function onAfterLeave() { justify-content: center; width: calc(var(--login-dialog-width) / 2); padding: var(--login-dialog-section-padding); - background: linear-gradient(233deg, rgb(113 161 255 / 60%) 17.67%, rgb(154 219 255 / 60%) 70.4%); + background: linear-gradient( + 233deg, + rgb(113 161 255 / 60%) 17.67%, + rgb(154 219 255 / 60%) 70.4% + ); } .left-section .logo-wrap { display: flex; @@ -185,9 +189,9 @@ function onAfterLeave() { height: 40px; padding: 4px; background: var(--login-dialog-logo-background); + filter: drop-shadow(0 4px 4px rgb(0 0 0 / 10%)); border-radius: 12px; box-shadow: 0 2px 12px 0 rgb(0 0 0 / 8%); - filter: drop-shadow(0 4px 4px rgb(0 0 0 / 10%)); } .left-section .logo-wrap .logo-text { font-size: 16px; diff --git a/src/layouts/components/Aside/index.vue b/src/layouts/components/Aside/index.vue index f7603e0..6de8247 100644 --- a/src/layouts/components/Aside/index.vue +++ b/src/layouts/components/Aside/index.vue @@ -329,13 +329,12 @@ function handleMenuCommand(command: string, item: ConversationItem