标签:mod include box bsp cti pre 条件 code color
<div :class="[box,shadow]"></div>
或 :后面跟条件,条件成立则添加class,否则不添加
:class="[{‘modelColor2‘:item.state===1||item.state===2},{‘modelColor1‘:active&&active.includes(item.num)}]"
标签:mod include box bsp cti pre 条件 code color
原文地址:https://www.cnblogs.com/candy-Yao/p/9949482.html