File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -144,6 +144,7 @@ export default {
144
144
}
145
145
newState . _selectedKeys = newSelectedKeys
146
146
147
+ this . $emit ( 'update:selectedKeys' , newSelectedKeys )
147
148
this . $emit ( 'select' , newSelectedKeys , event )
148
149
149
150
this . setUncontrolledState ( newState )
@@ -188,7 +189,7 @@ export default {
188
189
ref : 'tree' ,
189
190
class : `${ prefixCls } -directory` ,
190
191
on : {
191
- ...this . $listeners ,
192
+ ...omit ( this . $listeners , [ 'update:selectedKeys' ] ) ,
192
193
select : this . onSelect ,
193
194
click : this . onClick ,
194
195
doubleclick : this . onDoubleClick ,
Original file line number Diff line number Diff line change @@ -395,6 +395,7 @@ const Tree = {
395
395
selectedNodes,
396
396
nativeEvent : e ,
397
397
}
398
+ this . __emit ( 'update:selectedKeys' , selectedKeys )
398
399
this . __emit ( 'select' , selectedKeys , eventObj )
399
400
} ,
400
401
onNodeCheck ( e , treeNode , checked ) {
@@ -516,6 +517,7 @@ const Tree = {
516
517
expanded : targetExpanded ,
517
518
nativeEvent : e ,
518
519
} )
520
+ this . __emit ( 'update:expandedKeys' , expandedKeys )
519
521
520
522
// Async Load data
521
523
if ( targetExpanded && loadData ) {
You can’t perform that action at this time.
0 commit comments