1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-11 20:01:10 +00:00

12.0 list view support multiple selection (#6421)

* Feature - multiple selection with ctrl/shift

* update grid view context menu list in multiple selection mode

* list view support multiple selection

* improve list view selection experience

* before remove activeDirent state

* improve list view selection experience

* fix warnings
This commit is contained in:
Aries
2024-07-26 17:07:26 +08:00
committed by GitHub
parent 9aeaeed894
commit fa46b89b0d
4 changed files with 27 additions and 40 deletions

View File

@@ -532,7 +532,9 @@ class DirentGridView extends React.Component {
if (this.props.selectedDirentList.length > 1) return;
// Display menu items according to the current dirent permission
const menuList = this.getDirentItemMenuList(dirent, true);
this.handleContextClick(event, GRID_ITEM_CONTEXTMENU_ID, menuList, dirent);
const id = 'grid-item-contextmenu';
this.handleContextClick(event, id, menuList, dirent);
if (this.props.direntList.filter(item => item.isSelected).length > 1) return;
this.props.onGridItemClick && this.props.onGridItemClick(dirent);
};