Add check event and getHalfChecedNodes method for Tree (#9730)

This commit is contained in:
FuryBean
2018-02-09 10:31:11 +08:00
committed by 杨奕
parent 607aef0ac7
commit fe29af1b1f
7 changed files with 69 additions and 12 deletions

View File

@@ -184,6 +184,12 @@
setChecked(data, checked, deep) {
this.store.setChecked(data, checked, deep);
},
getHalfCheckedNodes() {
return this.store.getHalfCheckedNodes();
},
getHalfCheckedKeys() {
return this.store.getHalfCheckedKeys();
},
setCurrentNode(node) {
if (!this.nodeKey) throw new Error('[Tree] nodeKey is required in setCurrentNode');
this.store.setUserCurrentNode(node);