这看起来很简单,但由于某些原因,我不能让它工作。因此,我希望mat-form-field的外观根据某些条件进行更改,例如,如果字段被禁用,它应该是none,如果它被启用,它应该是standard。
因此,对于最简单的场景,如何让它工作:
<mat-form-field appearance="'true' ? 'standard' : 'none'">
...
</mat-form-field>发布于 2020-01-14 22:37:39
这应该是可行的:
<mat-form-field [appearance]="true ? 'outline': 'fill'">
...
</mat-form-field>https://stackoverflow.com/questions/59721124
复制相似问题