fix recursive tree rendering

This commit is contained in:
Mutasem 2022-08-08 14:15:03 +02:00
parent 5b54fdcc7e
commit b0cc1abd28
2 changed files with 6 additions and 3 deletions

View file

@ -1,6 +1,10 @@
<template>
<div class="n8n-tree">
<n8n-tree-node :input="input" :path="path"></n8n-tree-node>
<n8n-tree-node :input="input" :path="path">
<template v-for="(index, name) in $scopedSlots" v-slot:[name]="data">
<slot :name="name" v-bind="data"></slot>
</template>
</n8n-tree-node>
</div>
</template>
@ -15,7 +19,6 @@ export default Vue.extend({
},
props: {
input: {
type: Object,
},
path: {
type: String,

View file

@ -65,7 +65,7 @@
</div>
</template>
<template>
<span>{{ label }}</span>
<span>yo {{ label }}</span>
</template>
</Draggable>
</template>