feat(frontend): implement marquee selection for knowledge base

- Introduced a new `useMarqueeSelect` hook to enable marquee selection functionality in the knowledge base view.
- Integrated marquee selection with mouse events to allow users to select multiple items by dragging a selection box.
- Updated the `KnowledgeBase.vue` and `DocumentListView.vue` components to support the new selection feature, including visual indicators for selection mode.
- Enhanced user experience by providing a responsive selection interface that adapts to user interactions.
This commit is contained in:
wizardchen
2026-06-10 10:59:02 +08:00
committed by lyingbug
parent ce3702b6de
commit 0964b26558
3 changed files with 266 additions and 3 deletions
@@ -218,6 +218,7 @@ const handleAction = (action: 'edit' | 'reparse' | 'cancel-parse' | 'move' | 'de
:key="item.id"
class="doc-list-row"
:class="{ selected: selectedIds.has(item.id), 'menu-open': moreOpen === item.id }"
:data-select-id="item.id"
role="row"
@click="emit('open', item)"
>