This commit is contained in:
mattyatea 2023-10-11 06:19:14 +09:00
parent e0f65229b6
commit 6ad8fd3d4f
2 changed files with 4 additions and 2 deletions

View File

@ -78,7 +78,7 @@ watch(props.SelectFiles, () => {
}); });
function onClick(ev: MouseEvent) { function onClick(ev: MouseEvent) {
('onclick');
if (props.selectMode) { if (props.selectMode) {
emit('chosen', props.file); emit('chosen', props.file);
} else if (!ev.shiftKey && !isTouchUsing && !isSelectedFile.value) { } else if (!ev.shiftKey && !isTouchUsing && !isSelectedFile.value) {
@ -93,7 +93,7 @@ function onClick(ev: MouseEvent) {
} }
function onContextmenu(ev: MouseEvent) { function onContextmenu(ev: MouseEvent) {
('oncontext');
if (!isTouchUsing) { if (!isTouchUsing) {
if (!ev.shiftKey && !isSelectedFile.value) { if (!ev.shiftKey && !isSelectedFile.value) {
os.contextMenu(getDriveFileMenu(props.file, props.folder), ev); os.contextMenu(getDriveFileMenu(props.file, props.folder), ev);

View File

@ -22,6 +22,7 @@ SPDX-License-Identifier: AGPL-3.0-only
:folder="f" :folder="f"
:parentFolder="folder" :parentFolder="folder"
:class="[$style.navPathItem]" :class="[$style.navPathItem]"
:selectedFiles="selectedFiles"
@move="move" @move="move"
@upload="upload" @upload="upload"
@removeFile="removeFile" @removeFile="removeFile"
@ -87,6 +88,7 @@ SPDX-License-Identifier: AGPL-3.0-only
:file="file" :file="file"
:folder="folder" :folder="folder"
:selectMode="select === 'file'" :selectMode="select === 'file'"
:SelectFiles="selectedFiles"
:isSelected="selectedFiles.some(x => x.id === file.id)" :isSelected="selectedFiles.some(x => x.id === file.id)"
@click.shift.left.exact="filesSelect" @click.shift.left.exact="filesSelect"
@chosen="chooseFile" @chosen="chooseFile"