1234567891011121314151617181920212223242526272829303132333435363738 |
- <view class='radioAndcheckbox-index {{className}}' style='{{style}}' ref='saveChildRef0'>
- <van-popup
- show='{{ chooseBuilding }}'
- position='bottom'
- custom-style='height: 50%;'
- ref='saveChildRef1'
- >
- <view class='topTab'>
- <text class='cancel' onTap='antmoveAction' data-antmove-tap='crossBuilding'>
- 取消
- </text>
- <text class='sure' onTap='antmoveAction' data-antmove-tap='sure'>
- 确定
- </text>
- </view>
- <radio-group a:if="{{type==='radio'}}" onChange='chooserRadio'>
- <custom-label a:for='{{list}}' class='group' a:key='{{item.name}}' ref-numbers='{{list}}'>
- <radio value='{{item.name}}' data-name='{{item.name}}' checked='{{item.name==name}}'>
- </radio>
- {{item.name}}
- </custom-label>
- </radio-group>
- <checkbox-group a:if="{{type==='checkbox'}}" onChange='checkboxChange'>
- <view
- a:for='{{list}}'
- class="{{className=='block'?'block':'group group1'}}"
- a:key='{{item.name}}'
- ref-numbers='{{list}}'
- >
- <custom-label data-index='{{index}}'>
- <custom-checkbox value='{{sn?item.sn:item.name}}' checked='{{item.checked}}'>
- </custom-checkbox>
- {{item.name}}
- </custom-label>
- </view>
- </checkbox-group>
- </van-popup>
- </view>
|