diff --git a/src/components/FileTable.vue b/src/components/FileTable.vue index f98fd96..d134d69 100644 --- a/src/components/FileTable.vue +++ b/src/components/FileTable.vue @@ -51,9 +51,9 @@
+ 'overflow-y-auto h-full rounded-xl relative', + isDragging ? 'border-green-500 border-4 border-dashed transition-all ease-in-out' : '' + ]" @drop.prevent="onDrop">
+ +
+
+
@@ -164,10 +169,12 @@ export default { const parts = this.breadcrumbParts.slice(0, index + 1); return '/' + parts.join('/'); }, - enterDrag() { + onDragEnter(event) { + event.preventDefault(); this.isDragging = true; }, - leaveDrag() { + onDragLeave(event) { + event.preventDefault(); this.isDragging = false; }, getBreadcrumbParts() { @@ -214,6 +221,7 @@ export default { }, async onDrop(event) { event.preventDefault(); + this.isDragging = false; try { this.isTransfering = true;