📜  样式 mat-dialog-container - TypeScript 代码示例

📅  最后修改于: 2022-03-11 14:48:18.651000             🧑  作者: Mango

代码示例1
// Overlay-based components have a panelClass property (or similar) 
// that can be used to target the overlay pane.

this.dialog.open(DialogExampleComponent, { 
    panelClass: 'dialog-container-custom' 
});

// then style it from there

.dialog-container-custom .mat-dialog-container {
    padding: 0;
    background: grey;
}