Skip to content

Instantly share code, notes, and snippets.

@vuchl
Forked from ChadTaljaardt/flow.vue
Created September 28, 2016 13:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vuchl/6dc585bffd50886f291c899930a873cd to your computer and use it in GitHub Desktop.
Save vuchl/6dc585bffd50886f291c899930a873cd 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