This commit is contained in:
2024-11-24 18:03:06 +00:00
parent 641938f7e4
commit 16ba22d90b
39 changed files with 76 additions and 254 deletions

View File

@@ -18,21 +18,19 @@ const emit = defineEmits<{
dropFile: [VirtualFile],
}>();
const props = defineProps<{
defineProps<{
accept?: string,
}>();
const slot = defineSlots<{
default(props: {isDragOver: boolean}): any
}>()
// const slot = defineSlots<{
// default(props: {isDragOver: boolean}): any
// }>()
function onDragEnter(event: DragEvent) {
console.log('drag enter');
function onDragEnter() {
isDragOver.value = true;
}
function onDragLeave(event: DragEvent) {
console.log('drag leave');
function onDragLeave() {
isDragOver.value = false;
}