You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

1 lines
2.9 KiB

<view class="uni-data-checklist"><block wx:if="{{loading}}"><view class="uni-data-loading"><uni-load-more vue-id="7ca013a4-1" status="loading" iconType="snow" iconSize="{{18}}" content-text="{{contentText}}" bind:__l="__l"></uni-load-more></view></block><block wx:else><block wx:if="{{multiple}}"><checkbox-group data-event-opts="{{[['change',[['chagne',['$event']]]]]}}" class="{{['checklist-group',(mode==='list')?'is-list':'',(wrap)?'is-wrap':'']}}" bindchange="__e"><block wx:for="{{$root.l0}}" wx:for-item="item" wx:for-index="index" wx:key="index"><label class="{{['checklist-box',item.$orig.labelClass]}}" style="{{item.s0}}"><checkbox class="hidden" hidden="{{true}}" disabled="{{!!item.$orig.disabled}}" value="{{item.$orig.value+''}}" checked="{{item.$orig.selected}}"></checkbox><block wx:if="{{mode!=='tag'&&mode!=='list'||mode==='list'&&icon==='left'}}"><view class="{{['checkbox__inner',item.$orig.checkboxBgClass]}}" style="{{item.s1}}"><view class="{{['checkbox__inner-icon',item.$orig.checkboxClass]}}"></view></view></block><view class="{{['checklist-content',(mode==='list'&&icon==='left')?'list-content':'']}}"><text class="{{['checklist-text',item.$orig.textClass]}}" style="{{item.s2}}">{{item.$orig.text}}</text><block wx:if="{{inputVisble}}"><uni-easyinput bind:input="__e" vue-id="{{'7ca013a4-2-'+index}}" disabled="{{true}}" type="text" inputBorder="{{true}}" placeholder="请输入" value="{{item.InputValue}}" data-event-opts="{{[['^input',[['__set_model',['$0','InputValue','$event',[]],[[['dataList','',index]]]]]]]}}" bind:__l="__l"></uni-easyinput></block><block wx:if="{{mode==='list'&&icon==='right'}}"><view class="{{['checkobx__list',item.$orig.listClass]}}" style="{{item.s3}}"></view></block></view></label></block></checkbox-group></block><block wx:else><radio-group data-event-opts="{{[['change',[['chagne',['$event']]]]]}}" class="{{['checklist-group',(mode==='list')?'is-list':'',(wrap)?'is-wrap':'']}}" bindchange="__e"><block wx:for="{{$root.l1}}" wx:for-item="item" wx:for-index="index" wx:key="index"><label class="{{['checklist-box',item.$orig.labelClass]}}" style="{{item.s4}}"><radio hidden="{{true}}" disabled="{{item.$orig.disabled}}" value="{{item.$orig.value+''}}" checked="{{item.$orig.selected}}"></radio><block wx:if="{{mode!=='tag'&&mode!=='list'||mode==='list'&&icon==='left'}}"><view class="{{['radio__inner',item.$orig.checkboxBgClass]}}" style="{{item.s5}}"><view class="{{['radio__inner-icon',item.$orig.checkboxClass]}}" style="{{item.s6}}"></view></view></block><view class="{{['checklist-content',(mode==='list'&&icon==='left')?'list-content':'']}}"><text class="{{['checklist-text',item.$orig.textClass]}}" style="{{item.s7}}">{{item.$orig.text}}</text><block wx:if="{{mode==='list'&&icon==='right'}}"><view class="{{['checkobx__list',item.$orig.listClass]}}" style="{{item.s8}}"></view></block></view></label></block></radio-group></block></block></view>