v-if:style
<tr v-if="v[2].length>0" v-for="(a,i) in v[2]" :style="v[9]?('background:#e6e6e6'):('background:#fff')">
v-if:class
:class="[selectedIndex==index? 'lu-active' : '']"
基础类-v-if 配合style class根据判断渲染不同样式
猜你喜欢
转载自blog.csdn.net/weixin_45039768/article/details/130048204
今日推荐
周排行