【发布时间】:2020-09-06 17:28:07
【问题描述】:
我需要做的就是在单击a-table 的单元格中的按钮位置后获取并传递行索引,但我找不到解决方案:
<a-table
:columns="columns"
:data-source="getRowsData"
:pagination="false"
row-key="id"
>
<template slot="action" slot-scope="text">
<a-button type="primary" @click="getRowIndex">
{{ text }}
</a-button>
</template>
</a-table>
【问题讨论】:
-
这缺少很多细节
-
没有显示您尝试如何使用
getRowIndex
标签: javascript vue.js antd