Skip to content

Instantly share code, notes, and snippets.

@ChadTaljaardt
Created September 28, 2016 13:35
Show Gist options
  • Save ChadTaljaardt/cf001791e781444bbe76264f59e5279b to your computer and use it in GitHub Desktop.
Save ChadTaljaardt/cf001791e781444bbe76264f59e5279b to your computer and use it in GitHub Desktop.
<style>
</style>
<template>
<item class="item" :model="treeData"> </item>
</template>
<script>
import item from './Item.vue';
export default {
data : () => ({
name: 'My Tree',
children: [
{ name: 'hello' },
{ name: 'wat' },
{
name: 'child folder',
children: [
{
name: 'child folder',
children: [
{ name: 'hello' },
{ name: 'wat' }
]
},
{ name: 'hello' },
{ name: 'wat' },
{
name: 'child folder',
children: [
{ name: 'hello' },
{ name: 'wat' }
]
}
]
}
]
})
}
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment