vue 根据不同属性 设置背景

<td v-for="cell in row" >
<input type="text" max-length='13' v-if="cell.key === 'input'"/>
<span class="circle" v-if="cell.key === 'label'" :style="{backgroundColor: cell.color}">{{cell.value}}</span>
</td>
posted @ 2019-03-04 17:15  he0xff  阅读(1132)  评论(0编辑  收藏  举报