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.

猜你喜欢

转载自www.cnblogs.com/wn798/p/12371501.html