app-radio-group.wxml 1.2 KB

1
  1. <view class="app-radio-group data-v-52655ba0"><view style="overflow-y:hidden;" class="data-v-52655ba0"><view class="dir-left-wrap data-v-52655ba0"><block wx:for="{{model}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view class="item cross-center dir-left-nowrap data-v-52655ba0" style="{{'height:'+(height+'rpx')+';'}}"><block wx:if="{{type==='round'}}"><view data-event-opts="{{[['tap',[['handleClick',[index]]]]]}}" class="{{['item-round text-ellipsis data-v-52655ba0','white-background',item.value?'background':'']}}" style="{{'color:'+(color?color:'#FF4544')+';'+('border-color:'+(color?color:'#FF4544')+';')+('background-color:'+(item.value?color:'#FFFFFF')+';')}}" bindtap="__e">{{item.label+''}}</view></block><block wx:else><view class="checker data-v-52655ba0"><app-radio vue-id="{{'0b7c1d41-1-'+index}}" type="round" sign="{{index}}" value="{{item.value}}" data-event-opts="{{[['^input',[['__set_model',['$0','value','$event',[]],[[['model','',index]]]],['handleInput']]]]}}" bind:input="__e" class="data-v-52655ba0" bind:__l="__l"></app-radio></view><view class="label text-ellipsis data-v-52655ba0">{{item.label}}</view></block></view></block></view></view></view>