【发布时间】:2020-02-13 09:36:26
【问题描述】:
我正在使用 Angular 8.2.4 和水平垫步进器。我已经在每个步骤中自定义了图标,并且一旦访问了每个步骤,我就不需要显示“勾号”图标(对应于完成状态)。这就是它现在的样子。
`<mat-horizontal-stepper #stepper [linear]="true" class="register-stepper">
<!--<ng-template matStepperIcon="done">
<mat-icon>done</mat-icon>
</ng-template>-->
<ng-template matStepperIcon="user">
<mat-icon>account_circle</mat-icon>
</ng-template>
<mat-step [completed]="true" state="user">
<ng-template class="form-control" matStepLabel>Basic</ng-template>
<h4 class="cgg-component-heading">Basic Information</h4>
</mat-step>
</mat-horizontal-stepper>`
我已经删除了the matStepperIcon="done"。
如何避免显示完成状态的图标并保持自定义默认图标不变而不显示“勾号”图标?
【问题讨论】:
标签: angular angular-material angular8 mat-stepper