How to call all selected click events in antd design

the environmental background of the problems and what methods you have tried

related codes

/ / Please paste the code text below (do not replace the code with pictures)

what result do you expect? What is the error message actually seen?

Jun.28,2021

use rowSelection's selectedRowKeys,

you can set it to the key of all rows.

for example, your key is id

[{id:1, name: 'a'} m {id: 2, name: 'b'}]

the code to manually select all is to set rowSelection.selectedRowKeys = [1J2]

Menu