y***@dhc.com.cn
y***@dhc.com.cn
  • 发布:2020-07-17 10:36
  • 更新:2020-07-17 10:36
  • 阅读:615

请问各位大神,checkbox-group可以与tab联动配置吗?类似于van-tab与checkbox

分类:uni-app

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>

2020-07-17 10:36 负责人:无 分享
已邀请:

该问题目前已经被锁定, 无法添加新回复