fix(tree): fix el-tree accordion attribute only takes effect on root nodes (#1996) (#2523)

Co-authored-by: Qian Jie <jie.qian@blockheaders.com>
This commit is contained in:
bastarder 2021-07-14 18:00:51 +08:00 committed by GitHub
parent d1dc55dc65
commit 5b52f21311
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 0 deletions

View File

@ -103,6 +103,7 @@ export default defineComponent({
type: Object as PropType<TreeOptionProps>,
default: () => ({}),
},
accordion: Boolean,
renderContent: Function,
renderAfterExpand: Boolean,
showCheckbox: {

View File

@ -15,6 +15,7 @@
:key="getNodeKey(child)"
:node="child"
:props="props"
:accordion="accordion"
:render-after-expand="renderAfterExpand"
:show-checkbox="showCheckbox"
:render-content="renderContent"