EL-Table get selected row

When using the Element front-end library, when you need to get the selected row of the table, it is not written in the elemnet manual.

By looking at the source code, I found that there is a store attribute that saves the selected row data.

Obtained by:

<el-table ref="singleTable"/>
this.$refs.multipleTable.store.states.selection

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324910629&siteId=291194637
Recommended