📜  mat 对话框 - TypeScript 代码示例

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

代码示例2
@Component({/* ... */})
export class YourDialog {
  constructor(public dialogRef: MatDialogRef) { }

  closeDialog() {
    this.dialogRef.close('Pizza!');
  }
}