Antdv UI 获取a-table 表格的索引 index
卡槽 #bodyCell 属性 index 即是当前表格索引
<template><!-- Antdv 表格 -->
<a-table :columns="columns" :data-source="data" :scroll="{ x: 100, y: 500 }" >
<template #bodyCell="{column,record,index}" > //卡槽 index 索引属性
<template v-if="column.key === 'operation'">
<a @click="tapClick(record,index)">操作</a> //index即是当前表单索引
</template>
</template>
</a-table>
</template>