xtml配置
<view class="tab_title">
<view
wx:for="{{tabs}}"
wx:key="id"
class="title_item {{item.isActive?'active':''}} "
bindtap="handleItemTap"
data-index="{{index}}"
>
{{item.value}}
</view>
</view>
wxss配置
.tabs_title{
display: flex;
flex-direction: row;
}
.title_item{
display: flex;
flex: 1;
justify-content: center;
align-items: center;
padding: 15rpx 0;
}
图片显示
现在是竖着排列的,有办法可以横着排吗