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