Created
September 27, 2016 08:40
-
-
Save ChadTaljaardt/7074c079e01b8f3fa5096dc032fb1b86 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> | |
Vue.component('item', require('./Item.vue')); | |
var 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' } | |
] | |
} | |
] | |
} | |
] | |
} | |
data: function () { | |
return { | |
open: false | |
} | |
}, | |
export default { | |
data: { | |
treeData: data | |
} | |
} | |
</script> | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment