特定模式的自定义CSS

时间:2017-07-17 12:01:06

标签: css angular typescript modal-dialog

我有多个弹出窗口,我想给其中一个自定义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)}`;
    });
  }

0 个答案:

没有答案