有一个需求,需要打印多行三列的数据
<table width="100%">
<tr v-for="ho in hotel">
<td align="center" v-if="ho.houseState===0" style="background-color: darkgray">{{ho.houseId}}({{ho.houseType}})</td>
<td align="center" v-else-if="ho.houseState===1" style="background-color: yellow">{{ho.houseId}}({{ho.houseType}})</td>
<td align="center" v-else-if="ho.houseState===2" style="background-color: pink">{{ho.houseId}}({{ho.houseType}})</td>
<td align="center" v-else-if="ho.houseState===3" style="background-color: bisque">{{ho.houseId}}({{ho.houseType}})</td>
</tr>