摘要: 1、在html中动态的添加class,并使用管道 <thy-icon class="status-icon " [style.color]="( taskDetail?.status | taskStatus)?.color" [thyIconName]="( taskDetail?.status 阅读全文