Package Exports
- vue-tree-example
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (vue-tree-example) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
vue-tree-example
VueJS component for rendering the tree with custom data.
Install
yarn add vue-tree-example
or
npm install --save vue-tree-example
Usage
Basic example
<script>
import VueTreeExample from 'vue-tree-example';
export default {
components: {
VueTreeExample,
},
data() {
return {
model: {
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>
<template>
<div>
Here will be vue-tree-example
<VueTreeExample :model="model"></VueTreeExample>
</div>
</template>