update: pass store state as props to edge-renderer and edge

Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com>
This commit is contained in:
Braks
2021-11-22 13:40:25 +01:00
parent ebd0f9e738
commit 2b065b4e56
14 changed files with 152 additions and 143 deletions
+2 -1
View File
@@ -42,6 +42,7 @@ const center = computed(() =>
targetY: props.targetY,
}),
)
const onClick = () => console.log(props.data)
</script>
<script lang="ts">
export default {
@@ -59,6 +60,6 @@ export default {
:label-bg-style="{ fill: 'red' }"
:label-bg-padding="[2, 4]"
:label-bg-border-radius="2"
@click="() => console.log(props.data)"
@click="onClick"
/>
</template>