ng-ytl-zorro-antd
Version:
An enterprise-class UI components based on Ant Design and Angular
38 lines (32 loc) • 956 B
text/typescript
import { Component } from '@angular/core';
export class NzDemoModalAsyncComponent {
isVisible = false;
isConfirmLoading = false;
showModal = () => {
this.isVisible = true;
};
handleOk = (e) => {
this.isConfirmLoading = true;
setTimeout(() => {
this.isVisible = false;
this.isConfirmLoading = false;
}, 3000);
};
handleCancel = (e) => {
this.isVisible = false;
};
}