iview/examples/routers/tree.vue
2020-01-13 08:56:38 +08:00

47 lines
1.6 KiB
Vue

<template>
<Tree :data="data4" show-checkbox multiple></Tree>
</template>
<script>
export default {
data () {
return {
data4: [
{
title: 'parent 1',
expand: true,
selected: true,
children: [
{
title: 'parent 1-1',
expand: true,
disabled: true,
children: [
{
title: 'leaf 1-1-1',
disabled: true
},
{
title: 'leaf 1-1-2'
}
]
},
{
title: 'parent 1-2',
expand: true,
children: [
{
title: 'leaf 1-2-1',
checked: true
},
{
title: 'leaf 1-2-1'
}
]
}
]
}
]
}
}
}
</script>