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 | <template> | 1 | <template> |
2 | <div> | 2 | <div> |
3 | - <Tree :data="baseData" show-checkbox></Tree> | 3 | + <Tree :data="baseData" show-checkbox multiple></Tree> |
4 | <Button @click="handleAdd">add</Button> | 4 | <Button @click="handleAdd">add</Button> |
5 | <Button @click="handleUpdate">update</Button> | 5 | <Button @click="handleUpdate">update</Button> |
6 | </div> | 6 | </div> |
@@ -13,6 +13,7 @@ | @@ -13,6 +13,7 @@ | ||
13 | { | 13 | { |
14 | expand: true, | 14 | expand: true, |
15 | title: 'parent 1', | 15 | title: 'parent 1', |
16 | + checked: true, | ||
16 | children: [ | 17 | children: [ |
17 | { | 18 | { |
18 | title: 'parent 1-0', | 19 | title: 'parent 1-0', |
@@ -30,7 +31,7 @@ | @@ -30,7 +31,7 @@ | ||
30 | }, | 31 | }, |
31 | { | 32 | { |
32 | title: 'parent 1-1', | 33 | title: 'parent 1-1', |
33 | - expand: true, | 34 | + expand: false, |
34 | checked: true, | 35 | checked: true, |
35 | children: [ | 36 | children: [ |
36 | { | 37 | { |
package.json
@@ -49,7 +49,7 @@ | @@ -49,7 +49,7 @@ | ||
49 | "tinycolor2": "^1.4.1" | 49 | "tinycolor2": "^1.4.1" |
50 | }, | 50 | }, |
51 | "peerDependencies": { | 51 | "peerDependencies": { |
52 | - "vue": "^2.4.3" | 52 | + "vue": "^2.5.2" |
53 | }, | 53 | }, |
54 | "devDependencies": { | 54 | "devDependencies": { |
55 | "autoprefixer-loader": "^2.0.0", | 55 | "autoprefixer-loader": "^2.0.0", |