mirror of
https://github.com/n8n-io/n8n.git
synced 2025-03-05 20:50:17 -08:00
fix recursive tree rendering
This commit is contained in:
parent
5b54fdcc7e
commit
b0cc1abd28
|
@ -1,6 +1,10 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="n8n-tree">
|
<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>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
@ -15,7 +19,6 @@ export default Vue.extend({
|
||||||
},
|
},
|
||||||
props: {
|
props: {
|
||||||
input: {
|
input: {
|
||||||
type: Object,
|
|
||||||
},
|
},
|
||||||
path: {
|
path: {
|
||||||
type: String,
|
type: String,
|
||||||
|
|
|
@ -65,7 +65,7 @@
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<template>
|
<template>
|
||||||
<span>{{ label }}</span>
|
<span>yo {{ label }}</span>
|
||||||
</template>
|
</template>
|
||||||
</Draggable>
|
</Draggable>
|
||||||
</template>
|
</template>
|
||||||
|
|
Loading…
Reference in a new issue