mirror of https://github.com/sveltejs/svelte
13 lines
166 B
13 lines
166 B
6 years ago
|
<script>
|
||
|
export let tree;
|
||
|
</script>
|
||
|
|
||
|
{#each tree as item, i (item.id)}
|
||
|
<div>
|
||
|
{item.id}
|
||
|
{#if item.sub}
|
||
|
<svelte:self tree={item.sub}/>
|
||
|
{/if}
|
||
|
</div>
|
||
|
{/each}
|