iview Modal 确定按钮loading

let _this = this
setTimeout(() => {
    _this.btnLoading = false;
    _this.$nextTick(() => {_this.btnLoading = true;});
}, 100)

2

this.$Modal.success({
    title: '',
    content: `<strong style="font-size:16px">确认成功</strong>`,
    onOk: () => {
        this.btnLoading = false;
        this.modal = false;
        // do something
    }
});

 

end.

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-05-21
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-11-20
  • 2021-04-05
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案