console.log消しわさ売れ

This commit is contained in:
mattyatea 2023-10-06 08:17:19 +09:00
parent ef3dac4b1e
commit 449c87262b
2 changed files with 3 additions and 4 deletions

View File

@ -75,7 +75,7 @@ watch(props.SelectFiles, () => {
}); });
function onClick(ev: MouseEvent) { function onClick(ev: MouseEvent) {
console.log('onclick'); ('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) {
@ -88,7 +88,7 @@ function onClick(ev: MouseEvent) {
} }
function onContextmenu(ev: MouseEvent) { function onContextmenu(ev: MouseEvent) {
console.log('oncontext'); ('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);
@ -104,7 +104,7 @@ function onDragstart(ev: DragEvent) {
ev.dataTransfer.setData(_DATA_TRANSFER_DRIVE_FILE_, JSON.stringify(props.file)); ev.dataTransfer.setData(_DATA_TRANSFER_DRIVE_FILE_, JSON.stringify(props.file));
} }
isDragging.value = true; isDragging.value = true;
console.log(isDragging.value) (isDragging.value)
emit('dragstart'); emit('dragstart');
} }

View File

@ -765,7 +765,6 @@ function filesAllSelect() {
} }
function showMenu(ev: MouseEvent) { function showMenu(ev: MouseEvent) {
console.log(selectedFiles.value.length);
if (selectedFiles.value.length === 0) { if (selectedFiles.value.length === 0) {
os.popupMenu(getMenu(), (ev.currentTarget ?? ev.target ?? undefined) as HTMLElement | undefined); os.popupMenu(getMenu(), (ev.currentTarget ?? ev.target ?? undefined) as HTMLElement | undefined);
} else { } else {