问题
在element ui中的 el-popconfirm组件在el-table中偶发点击无效的问题
解决办法
问题原因:在列表中页需要补充key属性并赋唯一值;
代码
<el-table-column fixed="right" label="操作" width="100">
<template slot-scope="scope">
<el-popconfirm
title="确认删除吗?"
@confirm="handleApply(scope)"
:key="scope.row.userId"
>
<template #reference>
<el-button type="text" size="mini">删除</el-button>
</template>
</el-popconfirm>
</template>
</el-table-column>