删除前端
删除按钮,一般用于用户,商品等列表后面
<el-button
size="mini"
type="danger"
@click="deleteList(scope.$index,scope.row)">删除</el-button>
script中:
// 删除
deleteList(index,row) {
//信息提示
this.$confirm('此操作将永久删除该文件, 是否继续?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'