Add new props 'childrenKey' to Tree component
This commit is contained in:
parent
a0f489478b
commit
56c7cc0efc
2 changed files with 20 additions and 7 deletions
|
@ -6,7 +6,8 @@
|
|||
:data="item"
|
||||
visible
|
||||
:multiple="multiple"
|
||||
:show-checkbox="showCheckbox">
|
||||
:show-checkbox="showCheckbox"
|
||||
:children-key="childrenKey">
|
||||
</Tree-node>
|
||||
<div :class="[prefixCls + '-empty']" v-if="!stateTree.length">{{ localeEmptyText }}</div>
|
||||
</div>
|
||||
|
@ -40,6 +41,10 @@
|
|||
emptyText: {
|
||||
type: String
|
||||
},
|
||||
childrenKey: {
|
||||
type: String,
|
||||
default: 'children'
|
||||
},
|
||||
loadData: {
|
||||
type: Function
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue