Skip to content

Commit

Permalink
feat(module:modal): provide open & close & setConfirmLoading function (
Browse files Browse the repository at this point in the history
…#125)

use #modal.open() instead of set nzVisible=true
use #modal.close() instead of set nzVisible=false
use #modal.setConfirmLoading(loading:boolean) instead of set confirmLoading

close #118
  • Loading branch information
giscafer authored and vthinkxie committed Aug 31, 2017
1 parent 8ef45eb commit 0f87f6c
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/components/modal/nz-modal.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -292,6 +292,18 @@ export class NzModalComponent implements OnInit, OnDestroy, AfterViewInit {
}
}

setConfirmLoading(loading: boolean): void {
this.nzConfirmLoading = loading;
}

open(): void {
this.nzVisible = true;
}

close(): void {
this.nzVisible = false;
}

clickOk(e): void {
if (this.nzOnOk) {
this.nzOnOk.emit(e);
Expand Down

0 comments on commit 0f87f6c

Please sign in to comment.