element-ui 彈出確認提示框


element-ui 彈出確認提示框
https://www.jianshu.com/p/ff273dc81b68
圖解:
image
代碼:

 this.$confirm('此操作將任務狀態改為刪除狀態, 是否繼續?', '提示', {
        confirmButtonText: '確定',
        cancelButtonText: '取消',
        type: 'warning'
      }).then(() => {
        //點擊確定的操作(調用接口)
      }).catch(() => {
        //幾點取消的提示
      });

看效果:
image


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM