mirror of
https://github.com/ElemeFE/element.git
synced 2025-12-19 12:04:02 +08:00
Tree: add current-change event & current-node-key. (#1807)
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user