我正在使用 MatProgressBarModule 在卡页脚末尾添加线性不确定状态栏。下面是我的代码 -
<mat-card-footer>
<ng-content select="dashboard-card-footer"></ng-content>
<section class="example-section">
<mat-progress-bar [mode]="indeterminate" value="20" bufferValue ="75">
</mat-progress-bar>
</section>
</mat-card-footer>
它在屏幕上显示为确定的状态栏。我也尝试过不同的模式,即查询、缓冲区。但它只能作为确定的进度条。
最佳答案
尝试检查,也许您导入了:NoopAnimationsModule,因为它将禁用您应用程序的所有动画)
关于angular - 不确定的进度条无法正常工作,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51964626/