Tree: add current-change event & current-node-key. (#1807)

This commit is contained in:
FuryBean
2016-12-17 14:09:05 +08:00
committed by cinwell.li
parent 4614990cb4
commit 6c4f8a6867
7 changed files with 63 additions and 3 deletions

View File

@@ -58,6 +58,7 @@
default: false
},
highlightCurrent: Boolean,
currentNodeKey: [String, Number],
load: Function,
filterNodeMethod: Function
},
@@ -71,6 +72,7 @@
lazy: this.lazy,
props: this.props,
load: this.load,
currentNodeKey: this.currentNodeKey,
checkStrictly: this.checkStrictly,
defaultCheckedKeys: this.defaultCheckedKeys,
defaultExpandedKeys: this.defaultExpandedKeys,
@@ -114,6 +116,9 @@
this.store.defaultExpandedKeys = newVal;
this.store.setDefaultExpandedKeys(newVal);
},
currentNodeKey(newVal) {
this.store.setCurrentNodeKey(newVal);
},
data(newVal) {
this.store.setData(newVal);
}