ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
[TOC] ## useDropZone ``` <script setup lang="ts"> import { useDropZone } from '@vueuse/core' const dropZoneRef = ref<HTMLDivElement>() function onDrop(files: File[] | null) { // called when files are dropped on zone } const { isOverDropZone } = useDropZone(dropZoneRef, onDrop) </script> <template> <div ref="dropZoneRef"> Drop files here </div> </template> ```