弹框二次弹窗删除

记一下最近用到的vue弹框确认是否删除的两个方法吧,一个就是利用vue中this.$confirm,还有一个就是利用写的组件处理。

this.$confirm

 this.$confirm("是否删除此节点?", "提示", {
          confirmButtonText: "确认",
          cancelButtonText: "取消",
          type: "warning",
        })
          .then(() => {
            DeletOprate();
          })
          .catch(() => {});

组件:

父:

子:



你可能感兴趣的:(vue.js,前端,javascript)