antd Vue--this.$confirm弹窗使用

看API中this.$confirm弹窗使用不对 讲的也不明确,在此记录下正确的用法

this.$confirm("确认删除文件?",{
            type:'error'}).then(()=>{
              console.log("确认操作");
             
            }).catch(()=>{
              console.log("取消操作");
            })