cleanup
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user