摘要: <view :class="[index == 0 ? 'bgpvip' : 'bgsvip' ,bg]"> 1.class前面需要加: 2.多个类名可以使用数组的方式 3.使用三目运算动态添加想要的类名 方式一:对象的形式 <p :class="{'p1' : true}">对象的形式(文字的颜色 阅读全文
posted @ 2022-03-31 13:14 skyhxm 阅读(641) 评论(0) 推荐(0)
摘要: <template> <view style="width: 100%; height: 100%;"> <view class="tabs"> <view v-for="(tab, index) in tabs" :key="index" class="tab-item" :class="curr 阅读全文
posted @ 2022-03-31 13:11 skyhxm 阅读(135) 评论(0) 推荐(0)