fix Tree bug
This commit is contained in:
parent
6a6525483c
commit
94767f6cde
3 changed files with 10 additions and 6 deletions
|
@ -1,21 +1,24 @@
|
|||
<template>
|
||||
<Tree :data="data2" check-directly show-checkbox></Tree>
|
||||
<Tree :data="data4" show-checkbox multiple></Tree>
|
||||
</template>
|
||||
<script>
|
||||
export default {
|
||||
data () {
|
||||
return {
|
||||
data2: [
|
||||
data4: [
|
||||
{
|
||||
title: 'parent 1',
|
||||
expand: true,
|
||||
selected: true,
|
||||
children: [
|
||||
{
|
||||
title: 'parent 1-1',
|
||||
expand: true,
|
||||
disabled: true,
|
||||
children: [
|
||||
{
|
||||
title: 'leaf 1-1-1'
|
||||
title: 'leaf 1-1-1',
|
||||
disabled: true
|
||||
},
|
||||
{
|
||||
title: 'leaf 1-1-2'
|
||||
|
@ -27,7 +30,8 @@
|
|||
expand: true,
|
||||
children: [
|
||||
{
|
||||
title: 'leaf 1-2-1'
|
||||
title: 'leaf 1-2-1',
|
||||
checked: true
|
||||
},
|
||||
{
|
||||
title: 'leaf 1-2-1'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue