我有多个弹出窗口,我想给其中一个自定义CSS和样式。这是我的代码:
open(content,type?) {
if(type) {
this.modalService.open(content,{ windowClass: 'dark-modal',size:'sm'}).result.then((result) => {
this.closeResult = `Closed with: ${result}`;
}, (reason) => {
this.closeResult = `Dismissed ${this.getDismissReason(reason)}`;
});
return;
}
this.modalService.open(content,{ windowClass: 'dark-modal'}).result.then((result) => {
this.closeResult = `Closed with: ${result}`;
}, (reason) => {
this.closeResult = `Dismissed ${this.getDismissReason(reason)}`;
});
}