Commit ecf6c2fae9f123f47bc4b5e19e6ee095f041b37f
1 parent
c89e0e17
update dependence
Showing
2 changed files
with
4 additions
and
3 deletions
Show diff stats
examples/routers/tree.vue
1 | 1 | <template> |
2 | 2 | <div> |
3 | - <Tree :data="baseData" show-checkbox></Tree> | |
3 | + <Tree :data="baseData" show-checkbox multiple></Tree> | |
4 | 4 | <Button @click="handleAdd">add</Button> |
5 | 5 | <Button @click="handleUpdate">update</Button> |
6 | 6 | </div> |
... | ... | @@ -13,6 +13,7 @@ |
13 | 13 | { |
14 | 14 | expand: true, |
15 | 15 | title: 'parent 1', |
16 | + checked: true, | |
16 | 17 | children: [ |
17 | 18 | { |
18 | 19 | title: 'parent 1-0', |
... | ... | @@ -30,7 +31,7 @@ |
30 | 31 | }, |
31 | 32 | { |
32 | 33 | title: 'parent 1-1', |
33 | - expand: true, | |
34 | + expand: false, | |
34 | 35 | checked: true, |
35 | 36 | children: [ |
36 | 37 | { | ... | ... |