How to close $msgbox in element-ui

I used $msgbox to write an upload plug-in with vnode. After using it, the partners of the operation said one after another whether they could automatically close the floating layer after uploading.

I looked up the documents for a long time and found that there seemed to be no way. I asked here to see if I could find a reliable solution.

the following is the main code:

{temVM.tip}</div>
      </el-upload>,
    showConfirmButton: true,
    showCancelButton: false
  })
}

Vue.use({
  install (Vue) {
    Vue.prototype.$dialogUpload = show
  }
})

Thank you.

Mar.21,2021

Thank you for your answers ~

the answers are concentrated in the done method in beforeClose . Users need to click close to trigger.

expect to close $msgbox directly without clicking.

No relevant instructions were found in the document. When I went to try my luck to look at the source code, I found:

bottom of https://github.com/ElemeFE/el.

   

Menu