✨ new maps
This commit is contained in:
@@ -15,7 +15,7 @@ import {VirtualFile} from '../../model/FileSystem/types';
|
||||
|
||||
const isDragOver = ref(false);
|
||||
const emit = defineEmits<{
|
||||
onDrop: [VirtualFile],
|
||||
dropFile: [VirtualFile],
|
||||
}>();
|
||||
|
||||
const props = defineProps<{
|
||||
@@ -65,7 +65,8 @@ function onDrop(event: DragEvent) {
|
||||
event.preventDefault();
|
||||
isDragOver.value = false;
|
||||
const drop = parseMeta(event);
|
||||
|
||||
console.log('drop', drop);
|
||||
if (drop) {
|
||||
emit('dropFile', drop);
|
||||
}
|
||||
}
|
||||
</script>
|
||||
Reference in New Issue
Block a user