餓了麼的幫助文檔並沒有給出如圖popconfirm控件中“確定”按鈕如何綁定事件,這裏給出解決的的方案
<el-popconfirm
title="您確定刪除嗎?"
confirmButtonText='好的'
cancelButtonText="取消"
@onConfirm="綁定的確定方法"
@onCancel="綁定的取消方法">
<el-button slot="reference"
type="danger"
icon="el-icon-delete" circle>
</el-button>
</el-popconfirm>