element popconfirm组件的确认问题
文档里没有写组件确认后的操作,但是有大神查看源代码发现是@onConfirm
<el-popconfirm title="确定删除吗?" @onConfirm="deleStudent(scope.row)">
<el-button slot="reference">删除</el-button>
</el-popconfirm>
最开始是好使的,但是过了一段时间就失效了
最终改成
<el-popconfirm title="确定删除吗?" @ononfirm="deleStudent(scope.row)">
<el-button slot="reference">删除</el-button>
</el-popconfirm>
把@onConfirm改成@ononfirm