<a-table
:row-key="dataSource => dataSource.id"
:columns="columns"
:dataSource="dataSource"
:pagination="pagination"
:loading="tableLoading"
:scroll="{ x: 900 }"
style="margin-top: 20px;">
<span slot="id" slot-scope="text">{{text}}</span>
<a slot="name" slot-scope="text,record" @click="fetch(record.id)">{{text}}</a>
</a-table>
slot-scope,代表着插槽的范围,类似于session.Scope,record代表获取dataSource一行的值,所以想要获取到table中的值使用record.xx,xx代表着自定义dataSource中的数据。