-
-
Save vuchl/6dc585bffd50886f291c899930a873cd to your computer and use it in GitHub Desktop.
This file contains 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> | |
<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