ng-ytl-zorro-antd
Version:
An enterprise-class UI components based on Ant Design and Angular
55 lines (48 loc) • 1.51 kB
text/typescript
import { Component } from '@angular/core';
export class NzDemoModalCustomizeComponent {
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;
}
constructor() { }
}