refactor(core): allow setting handleId in useNodeConnections (#1732)
* refactor(core): allow setting handleId in useNodeConnections Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com> * chore(core): deprecate useHandleConnections Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com> * chore(examples): cleanup Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com> * chore(docs): cleanup Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com> * chore(core): cleanup Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com> * chore(core): cleanup Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com> * chore(docs): cleanup Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com> --------- Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
<script setup>
|
||||
import { computed, toRef } from 'vue'
|
||||
import { Handle, useHandleConnections } from '@vue-flow/core'
|
||||
import { Handle, useNodeConnections } from '@vue-flow/core'
|
||||
|
||||
const props = defineProps({
|
||||
data: {
|
||||
@@ -15,11 +15,11 @@ const props = defineProps({
|
||||
},
|
||||
})
|
||||
|
||||
const sourceConnections = useHandleConnections({
|
||||
const sourceConnections = useNodeConnections({
|
||||
type: 'target',
|
||||
})
|
||||
|
||||
const targetConnections = useHandleConnections({
|
||||
const targetConnections = useNodeConnections({
|
||||
type: 'source',
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user