Skip to content

Commit 01e3df0

Browse files
committed
chore(docs): cleanup dnd example
1 parent 0f51e2c commit 01e3df0

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

docs/examples/dnd/App.vue

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import useDragAndDrop from './useDnD'
77
88
const { onConnect, addEdges } = useVueFlow()
99
10-
const { onDragOver, onDrop, onDragLeave, isDragging } = useDragAndDrop()
10+
const { onDragOver, onDrop, onDragLeave, isDragOver } = useDragAndDrop()
1111
1212
const nodes = ref([])
1313
@@ -19,12 +19,10 @@ onConnect(addEdges)
1919
<VueFlow :nodes="nodes" @dragover="onDragOver" @dragleave="onDragLeave">
2020
<DropzoneBackground
2121
:style="{
22-
backgroundColor: isDragging ? 'rgba(0, 0, 0, 0.1)' : 'transparent',
23-
borderColor: isDragging ? 'rgba(0, 0, 0, 0.2)' : 'transparent',
24-
transition: 'background-color 0.2s, border-color 0.2s',
22+
backgroundColor: isDragOver ? '#e7f3ff' : 'transparent',
23+
transition: 'background-color 0.2s ease',
2524
}"
26-
>
27-
</DropzoneBackground>
25+
/>
2826
</VueFlow>
2927

3028
<Sidebar />

0 commit comments

Comments
 (0)