|
|
|
@ -55,7 +55,7 @@ export class ModalComponent implements OnDestroy { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
@Input() centered: boolean = true; |
|
|
|
@Input() centered: boolean = false; |
|
|
|
|
|
|
|
@Input() modalClass: string = ''; |
|
|
|
|
|
|
|
@ -63,6 +63,12 @@ export class ModalComponent implements OnDestroy { |
|
|
|
|
|
|
|
@Output() visibleChange = new EventEmitter<boolean>(); |
|
|
|
|
|
|
|
@Input() height: number; |
|
|
|
|
|
|
|
@Input() minHeight: number; |
|
|
|
|
|
|
|
@Output() init = new EventEmitter<void>(); |
|
|
|
|
|
|
|
@ContentChild('abpHeader', { static: false }) abpHeader: TemplateRef<any>; |
|
|
|
|
|
|
|
@ContentChild('abpBody', { static: false }) abpBody: TemplateRef<any>; |
|
|
|
@ -139,6 +145,8 @@ export class ModalComponent implements OnDestroy { |
|
|
|
filter(() => !!(this.closable && this.modalContent)), |
|
|
|
) |
|
|
|
.subscribe(() => this.close()); |
|
|
|
|
|
|
|
this.init.emit(); |
|
|
|
} |
|
|
|
|
|
|
|
close() { |
|
|
|
|