Element: table组件中使用row-click,三个参数为何都是undefined

Created on 17 Dec 2016  ·  3Comments  ·  Source: ElemeFE/element

table中定义如下:
@row-click="rowClick(row, event, column)"
script方法如下:
rowClick: function(row, event, column) {
console.log('row clicked')
}

帮忙看下,谢谢。

Most helpful comment

定义时不需要加参数:@row-click="rowClick"

All 3 comments

定义时不需要加参数:@row-click="rowClick"

解决了,谢谢

这样设计的目的是啥?

Was this page helpful?
0 / 5 - 0 ratings