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:
@@ -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)"
|
||||
>
|
||||
|
||||
Reference in New Issue
Block a user