Tree: not check node when it's disabled (#11847)

This commit is contained in:
hetech
2018-07-03 18:27:50 +08:00
committed by 杨奕
parent 61756c5bd5
commit d3224b582b

View File

@@ -167,7 +167,7 @@
if (this.tree.expandOnClickNode) {
this.handleExpandIconClick();
}
if (this.tree.checkOnClickNode) {
if (this.tree.checkOnClickNode && !this.node.disabled) {
this.handleCheckChange(null, {
target: { checked: !this.node.checked }
});