1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162 |
- <view class='picker-index {{className}}' style='{{style}}' ref='saveChildRef0'>
- <view a:if='{{!type}}'>
- <picker
- class='picker'
- range='{{list}}'
- range-key='{{rangeKey}}'
- value='{{index}}'
- disabled='{{isAudit}}'
- onChange='chooseItem'
- >
- <text>
- {{index == null?placeholder[0]:list[index][rangeKey]}}
- </text>
- </picker>
- <van-icon class='icon' name='arrow' ref='saveChildRef1'>
- </van-icon>
- </view>
- <view a:if="{{type === 'date-time'}}">
- <picker
- class='picker'
- mode='date'
- value='{{date}}'
- data-type='date'
- disabled='{{isAudit}}'
- onChange='chooseDateTime'
- >
- <text>
- {{date == null?placeholder[0]:date}}
- </text>
- </picker>
- <picker
- class='picker'
- mode='time'
- value='{{time}}'
- data-type='time'
- disabled='{{isAudit}}'
- onChange='chooseDateTime'
- >
- <text>
- {{time == null?placeholder[1]:time}}
- </text>
- </picker>
- <van-icon class='icon' name='arrow' ref='saveChildRef2'>
- </van-icon>
- </view>
- <view a:if="{{type==='radio'}}">
- <picker
- class='picker'
- range='{{list}}'
- range-key='{{rangeKey}}'
- value='{{date}}'
- disabled='{{isAudit}}'
- onChange='chooseItem'
- >
- <radio name='1' label-class='text-white' checked-color='#4AA39E' custom-class='padding-sm'>
- aaa
- </radio>
- </picker>
- <van-icon class='icon' name='arrow' ref='saveChildRef3'>
- </van-icon>
- </view>
- </view>
|