bixi
Version:
企业级中后台前端解决方案
37 lines (32 loc) • 845 B
text/typescript
import { Component, Input } from '@angular/core';
import { NzModalRef } from 'ng-zorro-antd/modal';
export class DemoModalComponent {
// tslint:disable-next-line: no-any
record: any;
constructor(private modal: NzModalRef) { }
ok() {
this.modal.close(`new time: ${+new Date()}`);
this.cancel();
}
cancel() {
this.modal.destroy();
}
}