选择多行获取多行数据
<a-table
ref="table"
row-key="fileId"
:loading="loading"
:columns="columns"
:data-source="dataSource.records"
:scroll="scroll"
:row-selection="{ selectedRowKeys: selectedRowKeys, onChange: onSelectChange }"
:pagination="pagination"
@change="handleTableChange"
>
</a-table>
onSelectChange(selectedRowKeys, selectedRows) {
// keys
console.log("selectedRowKeys changed: ", selectedRowKeys);
// 上数据
console.log("selectedRows changed: ", selectedRows);
},