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
@@ -3,7 +3,7 @@ import { Draggable, DraggableEventListener } from '@braks/revue-draggable'
import { useVueFlow } from '../../composables'
import { getRectOfNodes } from '../../utils'
const { store } = useVueFlow()
const { id, store } = useVueFlow()
const selectedNodesBBox = computed(() => getRectOfNodes(store.getSelectedNodes))
const innerStyle = computed(() => ({
width: `${selectedNodesBBox.value.width}px`,
@@ -42,7 +42,7 @@ export default {
@stop="onStop"
>
<div
:key="`vue-flow-nodesselection-rect-${store.id}`"
:key="`vue-flow-nodesselection-rect-${id}`"
class="vue-flow__nodesselection-rect"
:style="innerStyle"
@contextmenu="onContextMenu"