fa-selects.swan 3.7 KB

1
  1. <view class="selects data-v-42d0d957"><view data-event-opts="{{[['tap',[['e0',['$event']]]]]}}" style="min-height:70rpx;" bindtap="__e" class="data-v-42d0d957"><rich-text class="{{['data-v-42d0d957',!lists_lable?'richColor':'']}}" nodes="{{$root.m0}}"></rich-text></view><u-popup vue-id="1fdfec33-1" popup="{{false}}" mode="bottom" height="600" value="{{show}}" data-event-opts="{{[['^close',[['close']]],['^input',[['__set_model',['','show','$event',[]]]]]]}}" bind:close="__e" bind:input="__e" class="data-v-42d0d957" vue-slots="{{['default']}}"><view class="u-flex u-flex-column data-v-42d0d957"><view class="fa-column u-flex-1 u-flex fa-scroll data-v-42d0d957"><scroll-view style="{{'height:'+(scrollHg+'px')+';'+('width:'+('100vw')+';')}}" scroll-y="true" class="data-v-42d0d957"><block s-if="{{checkeType=='selects'}}"><view class="data-v-42d0d957"><checkbox-group class="data-v-42d0d957"><block s-for="$root.l0 trackBy index" s-for-item="item" s-for-index="index"><u-cell-item vue-id="{{('1fdfec33-2-'+index)+','+('1fdfec33-1')}}" arrow="{{false}}" data-event-opts="{{[['^click',[['selectCell',[index]]]]]}}" bind:click="__e" class="data-v-42d0d957" vue-slots="{{['title','right-icon']}}"><view slot="title" class="data-v-42d0d957"><rich-text nodes="{{item.m1}}" class="data-v-42d0d957"></rich-text></view><checkbox class="{{['data-v-42d0d957',item.$orig.disabled==true?'fa-disabled':'']}}" slot="right-icon" shape="square" checked="{{item.$orig.checked}}" color="{{theme.bgColor}}" disabled="{{item.$orig.disabled==true}}"></checkbox></u-cell-item></block></checkbox-group></view></block><block s-else><view class="data-v-42d0d957"><u-radio-group bind:input="__e" style="width:100%;" vue-id="{{('1fdfec33-3')+','+('1fdfec33-1')}}" value="{{radio_value}}" data-event-opts="{{[['^input',[['__set_model',['','radio_value','$event',[]]]]]]}}" class="data-v-42d0d957" vue-slots="{{['default']}}"><block s-for="$root.l1 trackBy index" s-for-item="item" s-for-index="index"><u-cell-item vue-id="{{('1fdfec33-4-'+index)+','+('1fdfec33-3')}}" arrow="{{false}}" data-event-opts="{{[['^click',[['selectCell',[index]]]]]}}" bind:click="__e" class="data-v-42d0d957" vue-slots="{{['title','right-icon']}}"><view slot="title" class="data-v-42d0d957"><rich-text nodes="{{item.m2}}" class="data-v-42d0d957"></rich-text></view><u-radio vue-id="{{('1fdfec33-5-'+index)+','+('1fdfec33-4-'+index)}}" slot="right-icon" active-color="{{theme.bgColor}}" name="{{item.$orig[keyField]}}" disabled="{{item.$orig.disabled==true}}" class="data-v-42d0d957"></u-radio></u-cell-item></block></u-radio-group></view></block></scroll-view></view><block s-if="{{checkeType=='selects'}}"><view class="fa-column select-footer u-text-center data-v-42d0d957"><u-gap vue-id="{{('1fdfec33-6')+','+('1fdfec33-1')}}" height="10" bg-color="#eaeaec" class="data-v-42d0d957"></u-gap><view class="u-p-10 u-flex u-row-around data-v-42d0d957"><block s-if="{{checkeType=='selects'}}"><view data-event-opts="{{[['tap',[['clearAll',['$event']]]]]}}" class="u-flex-1 data-v-42d0d957" bindtap="__e"><text class="data-v-42d0d957">清空</text></view></block><view data-event-opts="{{[['tap',[['confirm',['$event']]]]]}}" class="u-flex-1 data-v-42d0d957" bindtap="__e"><text class="data-v-42d0d957">确定</text></view></view></view></block><block s-if="{{checkeType!='selects'}}"><view class="fa-column select-footer u-text-center data-v-42d0d957"><u-gap vue-id="{{('1fdfec33-7')+','+('1fdfec33-1')}}" height="5" bg-color="#eaeaec" class="data-v-42d0d957"></u-gap><view class="u-p-10 u-flex u-row-around data-v-42d0d957"><view data-event-opts="{{[['tap',[['close',['$event']]]]]}}" class="u-flex-1 data-v-42d0d957" bindtap="__e"><text class="data-v-42d0d957">取消</text></view></view></view></block></view></u-popup></view>