Fix Tree Bug: set data does not work

This commit is contained in:
furybean
2016-10-08 13:58:31 +08:00
committed by cinwell.li
parent 8af8c8b8fe
commit cd7156cb03
2 changed files with 28 additions and 17 deletions

View File

@@ -68,6 +68,12 @@
}
},
watch: {
data(newVal) {
this.tree.root.setData(newVal);
}
},
methods: {
getCheckedNodes(leafOnly) {
return this.tree.getCheckedNodes(leafOnly);