From b212b2553701d091d6a094a43123dab99648650a Mon Sep 17 00:00:00 2001 From: Aresn Date: Wed, 1 Jul 2020 15:14:18 +0800 Subject: [PATCH] Revert "fix: disabled node can be checked" --- src/components/tree/tree.vue | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/components/tree/tree.vue b/src/components/tree/tree.vue index 4780a0fb..c5864b83 100644 --- a/src/components/tree/tree.vue +++ b/src/components/tree/tree.vue @@ -174,11 +174,7 @@ if (this.checkStrictly) return; for (let key in changes) { - if (key === 'checked' && node.disabled) { - this.$set(node, key, node.checked); - } else { - this.$set(node, key, changes[key]); - } + this.$set(node, key, changes[key]); } if (node[this.childrenKey]) { node[this.childrenKey].forEach(child => {