Skip to content

Instantly share code, notes, and snippets.

@ChadTaljaardt
Created September 27, 2016 08:40
Show Gist options
  • Save ChadTaljaardt/7074c079e01b8f3fa5096dc032fb1b86 to your computer and use it in GitHub Desktop.
Save ChadTaljaardt/7074c079e01b8f3fa5096dc032fb1b86 to your computer and use it in GitHub Desktop.
<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