chore(docs): update drag and drop example

This commit is contained in:
braks
2024-02-05 07:51:12 +01:00
committed by Braks
parent be57e51685
commit 88beaeca2b
7 changed files with 162 additions and 69 deletions
+3 -6
View File
@@ -1,10 +1,7 @@
<script setup>
function onDragStart(event, nodeType) {
if (event.dataTransfer) {
event.dataTransfer.setData('application/vueflow', nodeType)
event.dataTransfer.effectAllowed = 'move'
}
}
import useDragAndDrop from './useDnD'
const { onDragStart } = useDragAndDrop()
</script>
<template>