RT
请问各位大神,checkbox-group可以与tab联动配置吗?类似于van-tab与checkbox的效果 类似效果:
<van-tabs v-model="active" color="#6c87fd" title-active-color="#6c87fd" title-inactive-color="#888" :ellipsis="false" :swipe-threshold="3" :swipeable="true">
<van-tab v-for="itemF in List" :title="itemF.mc" :key="itemF.id" >
<form class="container">
<van-checkbox-group v-model="itemF.select">
<van-cell-group style="border-bottom: 0.2rem solid #f1f2f7">
<div class="miniTitle">
<h5>1业务</h5>
</div>
<van-cell style="height: 1rem; line-height: 1rem;"
v-for="(item,index) in itemF.nr"
clickable
:key="item.key"
:title="item.text"
>
<van-checkbox :name="item.key" ref="checkboxes" />
</van-cell>
</van-cell-group>
<van-cell-group>
<div class="miniTitle">
<h5>2业务</h5>
</div>
<van-cell style="height: 1rem; line-height: 1rem;"
v-for="(item,index) in itemF.nr2"
clickable
:key="item.key"
:title="item.text"
>
<van-checkbox :name="item.key" ref="checkboxes" />
</van-cell>
</van-cell-group>
</van-checkbox-group>
</form>
</van-tab>
</van-tabs>
0 个回复