Tree: add renderAfterExpand

This commit is contained in:
Leopoldthecoder
2017-12-24 18:59:09 +08:00
committed by 杨奕
parent bfa9f4ed0f
commit 351f900df6
4 changed files with 14 additions and 2 deletions

View File

@@ -8,6 +8,7 @@
v-for="child in root.childNodes"
:node="child"
:props="props"
:render-after-expand="renderAfterExpand"
:key="getNodeKey(child)"
:render-content="renderContent"
@node-expand="handleNodeExpand">
@@ -53,6 +54,10 @@
return t('el.tree.emptyText');
}
},
renderAfterExpand: {
type: Boolean,
default: true
},
nodeKey: String,
checkStrictly: Boolean,
defaultExpandAll: Boolean,