vue2 动态样式-三元表达式
// 颜色和背景色两种
<span class="sugBox" :style="{color:detailInfo.auditSug=='正常'?'#77B900':'#EA5858', backgroundColor:detailInfo.auditSug=='正常'?'rgb(236, 245, 219)':'rgb(252, 231, 231)'}">{{ detailInfo.auditSug }}</span>
vue2 动态样式-三元表达式
// 颜色和背景色两种
<span class="sugBox" :style="{color:detailInfo.auditSug=='正常'?'#77B900':'#EA5858', backgroundColor:detailInfo.auditSug=='正常'?'rgb(236, 245, 219)':'rgb(252, 231, 231)'}">{{ detailInfo.auditSug }}</span>