mirror of
https://github.com/zwpro/coupons.git
synced 2025-12-10 16:52:48 +00:00
1 line
1.6 KiB
Plaintext
1 line
1.6 KiB
Plaintext
<view class="v-tabs data-v-552d3ab8" id="{{elId}}"><scroll-view style="{{'position:'+(fixed?'fixed':'relative')+';'+('z-index:'+(1993)+';')}}" scroll-x="{{scroll}}" scroll-left="{{scroll?scrollLeft:0}}" scroll-with-animation="{{scroll}}" class="data-v-552d3ab8"><view class="v-tabs__container data-v-552d3ab8" style="{{'display:'+(scroll?'inline-flex':'flex')+';'+('white-space:'+(scroll?'nowrap':'normal')+';')+('background:'+(bgColor)+';')+('padding:'+(padding)+';')}}"><block wx:for="{{tabs}}" wx:for-item="v" wx:for-index="i" wx:key="i"><view data-event-opts="{{[['tap',[['change',[i]]]]]}}" class="v-tabs__container-item data-v-552d3ab8" style="{{'color:'+(current==i?activeColor:color)+';'+('font-size:'+(current==i?fontSize:fontSize)+';')}}" bindtap="__e"><image src="{{v.icon}}" mode class="data-v-552d3ab8"></image><view class="data-v-552d3ab8">{{v.text}}</view></view></block><block wx:if="{{!pills}}"><view class="v-tabs__container-line data-v-552d3ab8" style="{{'background:'+(lineColor)+';'+('width:'+(lineWidth+'px')+';')+('height:'+(lineHeight)+';')+('border-radius:'+(lineRadius)+';')+('left:'+(lineLeft+'px')+';')+('transform:'+('translateX(-'+lineWidth/2+'px)')+';')}}"></view></block><block wx:else><view class="v-tabs__container-pills data-v-552d3ab8" style="{{'background:'+(pillsColor)+';'+('border-radius:'+(pillsBorderRadius)+';')+('left:'+(pillsLeft+'px')+';')+('width:'+(currentWidth+'px')+';')+('height:'+(height)+';')}}"></view></block></view></scroll-view><view class="v-tabs__placeholder data-v-552d3ab8" style="{{'height:'+(fixed?height:'0')+';'+('padding:'+(padding)+';')}}"></view></view> |