@@ -10,7 +10,7 @@ import ColumnManager from './ColumnManager';
10
10
import HeadTable from './HeadTable' ;
11
11
import BodyTable from './BodyTable' ;
12
12
import ExpandableTable from './ExpandableTable' ;
13
- import { initDefaultProps , getOptionProps } from '../../_util/props-util' ;
13
+ import { initDefaultProps , getOptionProps , getListeners } from '../../_util/props-util' ;
14
14
import BaseMixin from '../../_util/BaseMixin' ;
15
15
16
16
export default {
@@ -143,7 +143,7 @@ export default {
143
143
[ 'rowClick' , 'rowDoubleclick' , 'rowContextmenu' , 'rowMouseenter' , 'rowMouseleave' ] . forEach (
144
144
name => {
145
145
warningOnce (
146
- this . $listeners [ name ] === undefined ,
146
+ getListeners ( this ) [ name ] === undefined ,
147
147
`${ name } is deprecated, please use customRow instead.` ,
148
148
) ;
149
149
} ,
@@ -509,7 +509,7 @@ export default {
509
509
510
510
render ( ) {
511
511
const props = getOptionProps ( this ) ;
512
- const { $listeners , columnManager, getRowKey } = this ;
512
+ const { columnManager, getRowKey } = this ;
513
513
const prefixCls = props . prefixCls ;
514
514
let className = props . prefixCls ;
515
515
if ( props . useFixedHeader || ( props . scroll && props . scroll . y ) ) {
@@ -529,7 +529,7 @@ export default {
529
529
columnManager,
530
530
getRowKey,
531
531
} ,
532
- on : { ... $listeners } ,
532
+ on : getListeners ( this ) ,
533
533
scopedSlots : {
534
534
default : expander => {
535
535
this . expander = expander ;
0 commit comments