想要的需求:点击+号,显示子表格的数据
<a-table
:dataSource="dataSource"
:columns="columns"
:pagination="pagination"
@change="tableChange"
rowKey="id"
@expand="expandChange"
>
绑定expand,参数有两个,expanded, record
const expandChange = (expanded:any, record:any) => {
console.log(expanded, record.id, '得到的数据');
当expanded为真实,调用子表格的数据
if(!expanded) return
rentEnterpriseList(record.id)
}