On the Table problem of antd

for example, after I click on one of the numbers under "nearly 5-day increase (%)" in the following figure, I want to take all the data under "nearly 5-day increase (%)". For example, [- 0.15 grin 0.37 Lindsay 0.77%]
similarly, if you click on any number under "nearly 10-day increase (%)" to get all the "near-10-day increase (%)" figure. How can this be achieved?

I think there are only three render parameters in columns, namely, the value of the current row, the current row data, and the row index. It seems that relying on these three parameters can not achieve my requirement

.

May.22,2021

doesn't table want to send a dataSource? just use this dataSource to get the data you want

<Table
    dataSource={this.state.datas}
>
</Table>

//
Click(){
    var arr = this.state.datas.map((item, index) => {
        return item.gender;
    })
}

this arr is what you want


knows how to do it. You can judge

by adding one more parameter to render.
Menu