feat(edges): Use slot injection for custom edges

This commit is contained in:
Braks
2022-04-04 21:42:48 +02:00
parent 307917011a
commit 3f15983f3e
5 changed files with 40 additions and 57 deletions
+1 -2
View File
@@ -136,7 +136,7 @@ const type = computed(() => {
return store.getNodeTypes.default
}
if (slot.length > 1) {
console.warn('[vue-flow]: More than one element in node-slots detected. Using fallback to first slot item.')
console.warn('[vue-flow]: More than one element in node-slot detected. Using fallback to first slot item.')
}
return slot[0]
@@ -189,7 +189,6 @@ export default {
>
<component
:is="type"
v-if="type"
v-bind="{
nodeElement,
id: node.id,