我在angular 13上使用NgDialogAnimationService,一切正常,但缺少一件事,我需要设置对话框打开和离开时的持续时间属性,但我不能,有些可以帮助!
import { NgDialogAnimationService } from 'ng-dialog-animation';
private dialogs:NgDialogAnimationService,
onView(row: any) {
this.dialogs.open(LogViewComponent, {
width: "250px",
animation: { to: "aside" },
data: {
dialogData: row,
}
}).afterClosed().subscribe(result => {
// this.loadData();
});
}
1条答案
按热度按时间8qgya5xd1#
您需要使用关键帧选项:
看看这个:https://stackblitz.com/edit/angular-material-animation?file=app%2Fdialog-overview-example.ts,app%2Fdialog-overview-example.html