Element: selection-change 获取选中的json数据的id

Created on 6 Dec 2016  ·  6Comments  ·  Source: ElemeFE/element

通过selection-change事件来获取选中的数据,但是获取的数据是整个json对象的所有内容,现在只需要获取选中的id,请问如何实现?

Most helpful comment

怎么获取选中行的index呢?

All 6 comments

...

你所谓的 id 是指?

准确来说,是获取选中数据的的某一列的数据

比如官方文档中我只想获取table中select选中的name值。如下红色部分。
image

val.map(item => item.name)

怎么获取选中行的index呢?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

akaylh picture akaylh  ·  3Comments

yorululu picture yorululu  ·  3Comments

FranzSkuffka picture FranzSkuffka  ·  3Comments

dbskccc picture dbskccc  ·  3Comments

Zhao-github picture Zhao-github  ·  3Comments