<el-table-column fixed="right" label="操作" width="100">
<template slot-scope="scope">
<el-button @click="handleClick(scope.row)" type="text" size="small"
>编辑</el-button
>
<el-popconfirm
title="确定删除吗?"
@confirm="del(scope.row)"
@onConfirm="del(scope.row)"
>
<el-button type="text" size="small" slot="reference"
>删除</el-button
>
</el-popconfirm>
</template>
</el-table-column>
参考: