Skip to content

Instantly share code, notes, and snippets.

@ChadTaljaardt
Created September 28, 2016 13:50
Show Gist options
  • Save ChadTaljaardt/864feeaf6eb15a0f787022c3fee865a9 to your computer and use it in GitHub Desktop.
Save ChadTaljaardt/864feeaf6eb15a0f787022c3fee865a9 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() {
return {
treeData: {
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