From 5b52f21311c0fd9c7afc4c00774e30de85e3aaa4 Mon Sep 17 00:00:00 2001 From: bastarder <85257684@qq.com> Date: Wed, 14 Jul 2021 18:00:51 +0800 Subject: [PATCH] fix(tree): fix el-tree accordion attribute only takes effect on root nodes (#1996) (#2523) Co-authored-by: Qian Jie --- packages/tree/src/tree-node.vue | 1 + packages/tree/src/tree.vue | 1 + 2 files changed, 2 insertions(+) diff --git a/packages/tree/src/tree-node.vue b/packages/tree/src/tree-node.vue index 13c996546a..77e5f06996 100644 --- a/packages/tree/src/tree-node.vue +++ b/packages/tree/src/tree-node.vue @@ -103,6 +103,7 @@ export default defineComponent({ type: Object as PropType, default: () => ({}), }, + accordion: Boolean, renderContent: Function, renderAfterExpand: Boolean, showCheckbox: { diff --git a/packages/tree/src/tree.vue b/packages/tree/src/tree.vue index 3093a1007e..45e89008aa 100644 --- a/packages/tree/src/tree.vue +++ b/packages/tree/src/tree.vue @@ -15,6 +15,7 @@ :key="getNodeKey(child)" :node="child" :props="props" + :accordion="accordion" :render-after-expand="renderAfterExpand" :show-checkbox="showCheckbox" :render-content="renderContent"