主表
<a-table
:columns="columns"
rowKey="id"
:dataSource="data"
:expandedRowKeys="expandedRowKeys"
@change="handleTableChange"
>
子表
<a-table
rowKey="id"
:columns="innerColumns"
slot="expandedRowRender"
slot-scope="record"
:data-source="record.你数据的子属性 |其他数据集[record.id]"
>
</a-table>
在你加载数据时
this.expandedRowKeys =当前页所有 [id1,id2];