fix(component): 🧩 提交代码不校验样式代码

This commit is contained in:
何嘉悦
2025-06-06 18:17:49 +08:00
parent 42359a824b
commit 8a34b42c2a
3 changed files with 11 additions and 15 deletions
+8 -4
View File
@@ -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;
+3 -6
View File
@@ -329,13 +329,12 @@ function handleMenuCommand(command: string, item: ConversationItem<ChatSessionVo
0 10px 20px 0 rgb(0 0 0 / 10%),
0 0 1px 0 rgb(0 0 0 / 15%);
opacity: 0;
transition: opacity 0.3s ease 0.3s, transform 0.3s ease 0.3s;
// 指定样式过渡
// 向左偏移一个宽度
transform: translateX(-100%);
transition:
opacity 0.3s ease 0.3s,
transform 0.3s ease 0.3s;
/* 新增:未激活悬停时覆盖延迟 */
&.no-delay {
@@ -359,12 +358,10 @@ function handleMenuCommand(command: string, item: ConversationItem<ChatSessionVo
// 直接在这里写悬停时的样式(与 aside-container-suspended 一致)
opacity: 1;
transition: opacity 0.3s ease 0s, transform 0.3s ease 0s;
// 过渡动画沿用原有设置
transform: translateX(15px);
transition:
opacity 0.3s ease 0s,
transform 0.3s ease 0s;
// 会话列表高度-悬停样式
.conversations-wrap {