Skip to content

Instantly share code, notes, and snippets.

@ChadTaljaardt
Created September 28, 2016 13:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • 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