Skip to content

Commit 68813f2

Browse files
committed
fix: 暂时删掉了chunk的多选逻辑以保持状态一致
1 parent b3319d0 commit 68813f2

1 file changed

Lines changed: 3 additions & 10 deletions

File tree

src/components/panels/ChunkListPanel.vue

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@
111111
uiStore.activeChunkId === chunk.chunkId,
112112
}"
113113
draggable="true"
114-
@click="handleChunkItemClick(chunk.chunkId, $event)"
114+
@click="handleChunkItemClick(chunk.chunkId)"
115115
@dragstart="
116116
handleChunkDragStart($event, chunk.chunkId)
117117
"
@@ -262,14 +262,8 @@ function handleToggleExpand(doc: LogDocument) {
262262
logStore.updateDocument(doc.docId, { isExpanded: !doc.isExpanded });
263263
}
264264
265-
function handleChunkItemClick(chunkId: string, event: MouseEvent) {
265+
function handleChunkItemClick(chunkId: string) {
266266
uiStore.setActiveChunk(chunkId);
267-
268-
if (event.metaKey || event.ctrlKey) {
269-
filterTool.toggleChunkSelection(chunkId);
270-
return;
271-
}
272-
273267
filterTool.setActiveChunkSelection(chunkId);
274268
}
275269
@@ -482,8 +476,7 @@ function handleChunkDragEnd() {
482476
}
483477
484478
.chunk-item.is-selected:not(.is-active) {
485-
background-color: var(--hover-bg);
486-
box-shadow: inset 2px 0 0 var(--active-accent);
479+
background-color: var(--inactive-accent);
487480
}
488481
489482
.chunk-name {

0 commit comments

Comments
 (0)