1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-02 07:27:04 +00:00

Drag and drop multiple files

This commit is contained in:
zxj96
2019-06-17 16:11:54 +08:00
parent f177aa882f
commit 614d128dc4
5 changed files with 94 additions and 4 deletions

View File

@@ -577,6 +577,10 @@ class DirentListView extends React.Component {
let {nodeDirent, nodeParentPath, nodeRootPath} = dragStartItemData;
if (e.target.className === 'table-container table-drop-active') {
if (Array.isArray(dragStartItemData)) {
return;
}
if (nodeRootPath === this.props.path || nodeParentPath === this.props.path) {
return;
}
@@ -664,6 +668,7 @@ class DirentListView extends React.Component {
onFileTagChanged={this.props.onFileTagChanged}
getDirentItemMenuList={this.getDirentItemMenuList}
showDirentDetail={this.props.showDirentDetail}
onItemsMove={this.props.onItemsMove}
/>
);
})}