企业🤖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> ```