iview Modal 确定按钮loading

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.

posted @ 2020-02-27 12:27  wxid_m2pywu7fxu1f  阅读(1260)  评论(0编辑  收藏  举报