Created
September 27, 2016 18:28
-
-
Save ChadTaljaardt/c22fa7c9c50c70fdf51bb05d487f1b9d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<style> | |
</style> | |
<template> | |
</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> | |
// u need add component to vue instance .. i cant fix this from github live editor lol :D | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment