关于弹窗是点击空白还是自定义关闭 添加distinguishCancelAndClose:true属性即可

直接上代码

this.$confirm('请选择是否带图片','提示',{

confirmButtonText:"不带图片",

cancelButtonText:"带图片",

type:"waring",

distinguishCancelAndClose:true

}).then({}=>{})

.catch((action)=>{

if(action==='cancel'){}//判断是否是自定义关闭

})

posted @ 2020-12-18 15:40  小十六哇  阅读(593)  评论(0编辑  收藏  举报