📜  onbeforeopen swal - 任何代码示例

📅  最后修改于: 2022-03-11 15:00:46.381000             🧑  作者: Mango

代码示例1
Swal.fire({
  title: 'Wait ...',
  onBeforeOpen () {
    Swal.showLoading ()
  },
  onAfterClose () {
    Swal.hideLoading()
  },
  allowOutsideClick: false,
  allowEscapeKey: false,
  allowEnterKey: false
})
myFunc()
Swal.close()