fix: 对话选中状态增强

This commit is contained in:
Gsh
2026-02-14 20:47:31 +08:00
parent 993c0fa95d
commit 717d5ba876

View File

@@ -234,7 +234,7 @@ function toggleSidebar() {
:load-more="handleLoadMore"
:load-more-loading="loadMoreLoading"
:items-style="{
marginLeft: '8px',
marginLeft: isCollapsed ? '8px' : '5px',
marginRight: '8px',
userSelect: 'none',
borderRadius: isCollapsed ? '12px' : '10px',
@@ -246,14 +246,18 @@ function toggleSidebar() {
flexDirection: isCollapsed ? 'column' : 'row',
position: 'relative',
overflow: 'hidden',
borderLeft: '3px solid transparent',
}"
:items-active-style="{
backgroundColor: '#fff',
boxShadow: '0 1px 2px rgba(0, 0, 0, 0.05)',
color: 'rgba(0, 0, 0, 0.85)',
backgroundColor: 'rgba(0, 87, 255, 0.08)',
boxShadow: '0 2px 8px rgba(0, 87, 255, 0.12)',
color: '#0057ff',
borderLeft: '3px solid #0057ff',
fontWeight: '500',
}"
:items-hover-style="{
backgroundColor: 'rgba(0, 0, 0, 0.04)',
borderLeft: '3px solid transparent',
}"
@menu-command="handleMenuCommand"
@change="handleChange"