父组件中:
<div>
<ticketFormDetails
text="指定时间"
:value="assignDatetime | dateFormatSecondZero"
></ticketFormDetails>
</div>
<div>
<ticketFormDetails
text="编号"
:value="businessId"
></ticketFormDetails>
</div>
子组件:
<div class="">
<el-col :span="8" :push="2">
<div>
{{ `${text}:` }}
</div>
</el-col>
<el-col :span="15" :push="1">
<div class="">
<label class="">{{ value }}</label>
</div>
</el-col>
</div>
如何让
:value="assignDatetime | dateFormatSecondZero"显示红色
:value="businessId" 显示黑色?
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…