当我们从一个步骤切换到另一个步骤时,有没有办法禁用Angular材质的mat-stepper控件的动画?
发布于 2018-08-11 21:06:21
可以通过设置elements属性@.disabled来禁用角度动画,请参见https://angular.io/api/animations/trigger#disable-animations
您可以简单地将[@.disabled] = "true"输入放入您的mat-stepper
<mat-horizontal-stepper [@.disabled]="true" [linear]="isLinear" #stepper>https://stackoverflow.com/questions/51655634
复制相似问题