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>
<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>