new maps

This commit is contained in:
2024-11-24 17:34:41 +00:00
parent eb6abbb97d
commit 641938f7e4
38 changed files with 1241 additions and 228 deletions

View File

@@ -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>