原文:https://blog.csdn.net/Akatsuki233/article/details/100653049
:class="{'redRoom': Number(items.status) === 1, 'greenRoom1': Number(items.status) === 2, greenRoom2: Number(items.status) > 2}"
标签:status,vue,redRoom,样式,items,Number,添加,class From: https://www.cnblogs.com/pine007/p/16613020.html如果 status为1,样式为redRoom
如果 status为2,样式为greenRoom1
如果 status为其他,样式为greenRoom2