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 {
144144 }
145145 newState . _selectedKeys = newSelectedKeys
146146
147+ this . $emit ( 'update:selectedKeys' , newSelectedKeys )
147148 this . $emit ( 'select' , newSelectedKeys , event )
148149
149150 this . setUncontrolledState ( newState )
@@ -188,7 +189,7 @@ export default {
188189 ref : 'tree' ,
189190 class : `${ prefixCls } -directory` ,
190191 on : {
191- ...this . $listeners ,
192+ ...omit ( this . $listeners , [ 'update:selectedKeys' ] ) ,
192193 select : this . onSelect ,
193194 click : this . onClick ,
194195 doubleclick : this . onDoubleClick ,
Original file line number Diff line number Diff line change @@ -395,6 +395,7 @@ const Tree = {
395395 selectedNodes,
396396 nativeEvent : e ,
397397 }
398+ this . __emit ( 'update:selectedKeys' , selectedKeys )
398399 this . __emit ( 'select' , selectedKeys , eventObj )
399400 } ,
400401 onNodeCheck ( e , treeNode , checked ) {
@@ -516,6 +517,7 @@ const Tree = {
516517 expanded : targetExpanded ,
517518 nativeEvent : e ,
518519 } )
520+ this . __emit ( 'update:expandedKeys' , expandedKeys )
519521
520522 // Async Load data
521523 if ( targetExpanded && loadData ) {
You can’t perform that action at this time.
0 commit comments