wxml:
<i-row class="tab_question">
<i-col span="24" i-class="col-class">
<i-tabs current="{{ current }}" color="#f759ab" bindchange="handleChange" >
<i-tab wx:for="{{type}}"
wx:key="{{index}}"
key="tab{{index+1}}"
>
</i-cell>
</i-cell-group>
</i-col>
</i-row>
js:
handleChange ({ detail }) {
this.setData({
current: detail.key,
show: detail.key
});
},
css:
.right-item{display: none}
.active{display: block}