碰见了就记录一下,tab选项卡式的picker。
就直接在picker里写tab选项就可以
wxml:
<view class="swiper-tab">
<picker class="swiper-tab-item {
{currentTab==0?'active':''}}" data-current="0" bindtap="clickTab" bindchange="pickChange" value="{
{objindex}}" range="{
{objarray}}">
{
{objarray[objindex]}}
</picker>
<picker class="swiper-tab-item {
{currentTab==1?'active':''}}" data-current="1" bindtap="clickTab" bindchange="bindPickerChange" value="{
{index}}" range="{
{array}}">{
{array[index]}}
</picker>
</view>
<swiper current="{
{currentTab}}" duration="300" bindchange="swiperTab">
<swiper-item >