Tree: add setChecked method. (#1434)

This commit is contained in:
FuryBean
2016-11-28 18:57:09 +08:00
committed by cinwell.li
parent 2e79e4af63
commit d3b3d865e8
6 changed files with 26 additions and 1 deletions

View File

@@ -144,6 +144,9 @@
setCheckedKeys(keys, leafOnly) {
if (!this.nodeKey) throw new Error('[Tree] nodeKey is required in setCheckedNodes');
this.store.setCheckedKeys(keys, leafOnly);
},
setChecked(data, checked, deep) {
this.store.setChecked(data, checked, deep);
}
}
};