1.示例图片:
2.示例代码:
this.$confirm("是否确认该操作","提示",{
iconClass: "el-icon-question",//自定义图标样式
confirmButtonText: "确认",//确认按钮文字更换
cancelButtonText: "取消",//取消按钮文字更换
showClose: true,//是否显示右上角关闭按钮
type: "warning",//提示类型 success/info/warning/error
}).then(()=>{
//确认操作
}).then((data) => {
//取消操作
}).catch((err) => {
//捕获异常
console.log(err);
});