diff --git a/components/lib/tree/TreeNode.vue b/components/lib/tree/TreeNode.vue index 2aaeccb73..0196d403f 100755 --- a/components/lib/tree/TreeNode.vue +++ b/components/lib/tree/TreeNode.vue @@ -142,7 +142,9 @@ export default { } if (this.isCheckboxSelectionMode()) { - this.toggleCheckbox(); + if (this.node.selectable != false) { + this.toggleCheckbox(); + } } else { this.$emit('node-click', { originalEvent: event, @@ -336,7 +338,7 @@ export default { }); }, propagateDown(node, check, selectionKeys) { - if (check) selectionKeys[node.key] = { checked: true, partialChecked: false }; + if (check && node.selectable != false) selectionKeys[node.key] = { checked: true, partialChecked: false }; else delete selectionKeys[node.key]; if (node.children && node.children.length) {