mirror of
https://github.com/ElemeFE/element.git
synced 2025-12-19 12:04:02 +08:00
Fix Tree Bug: set data does not work
This commit is contained in:
@@ -68,6 +68,12 @@
|
||||
}
|
||||
},
|
||||
|
||||
watch: {
|
||||
data(newVal) {
|
||||
this.tree.root.setData(newVal);
|
||||
}
|
||||
},
|
||||
|
||||
methods: {
|
||||
getCheckedNodes(leafOnly) {
|
||||
return this.tree.getCheckedNodes(leafOnly);
|
||||
|
||||
Reference in New Issue
Block a user