首页 > 微信 > 详细

小程序tab导航切换样式

时间:2018-11-09 18:09:47      阅读:210      评论:0      收藏:0      [点我收藏+]

技术分享图片

 

 

<view id="green" class="scroll-view-item {{ current == index ? ‘active‘ :‘‘ }} " bindtap="yearselect" wx:for="{{year}}" wx:key="{{index}}" data-year="{{item}}" data-index="{{index}}">{{item}}</view>

yearselect(e){
this.setData({
yearselect:e.currentTarget.dataset.year,
current:e.currentTarget.dataset.index
})
},

.active{
background: #62B0F2;
color: #fff;
}

 

小程序tab导航切换样式

原文:https://www.cnblogs.com/wjhaaa/p/9936492.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!