UNPKG

vue3-dnd

Version:

Drag and Drop for Vue Composition API

10 lines (9 loc) 343 B
import { DropTargetMonitorImpl } from "../../internals"; import { useDragDropManager } from "../useDragDropManager"; import { computed, unref } from "vue-demi"; export function useDropTargetMonitor() { var manager = useDragDropManager(); return computed(function() { return new DropTargetMonitorImpl(unref(manager)); }); }