fix: replace store id with flow id

Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com>
This commit is contained in:
Braks
2021-12-20 19:29:52 +01:00
parent f8a23c59ec
commit 600e3866c4
8 changed files with 24 additions and 34 deletions
+2 -2
View File
@@ -11,7 +11,7 @@ interface HandleProps {
connectable?: boolean
}
const { store } = useVueFlow()
const { id } = useVueFlow()
const props = withDefaults(defineProps<HandleProps>(), {
id: '',
type: 'source',
@@ -38,7 +38,7 @@ export default {
:class="[
'vue-flow__handle',
`vue-flow__handle-${props.position}`,
`vue-flow__handle-${store.id}`,
`vue-flow__handle-${id}`,
'nodrag',
{
source: props.type !== 'target',