feat: scope edge and node slots by name
* node, edge names slots scoped as `edge/node-${edge/node-type}`
This commit is contained in:
@@ -45,7 +45,7 @@ const connectionLineVisible = computed(
|
||||
:edge-updater-radius="props.edgeUpdaterRadius"
|
||||
>
|
||||
<template #default="edgeProps">
|
||||
<slot name="edge" v-bind="edgeProps"></slot>
|
||||
<slot :name="`edge-${edge.type}`" v-bind="edgeProps"></slot>
|
||||
</template>
|
||||
</Edge>
|
||||
</template>
|
||||
|
||||
Reference in New Issue
Block a user