<!--components/picker/index.wxml-->
<!-- 普通选择器 -->
<view wx:if="{{!type}}">
  <picker class="picker {{isAudit?'dis-col':''}}" range="{{list}}" range-key="{{rangeKey}}" value="{{index}}" bindchange="chooseItem" disabled="{{isAudit}}">
    <text class="{{index == null?'noSelectCor':'normalCor'}}">{{index == null?placeholder[0]:list[index][rangeKey]}}</text>
  </picker>
  <van-icon class="icon" name="arrow" />
</view>
<!-- 日期时间选择器 -->
<view wx:if="{{type === 'date-time'}}">
  <picker class="picker" mode="date" value="{{date}}" data-type="date" bindchange="chooseDateTime" disabled="{{isAudit}}">
    <text class="{{date == null?'noSelectCor':'normalCor'}}">{{date == null?placeholder[0]:date}}</text>
  </picker>
  <picker class="picker" mode="time" value="{{time}}" data-type="time" bindchange="chooseDateTime" disabled="{{isAudit}}">
    <text class="{{time == null?'noSelectCor':'normalCor'}}">{{time == null?placeholder[1]:time}}</text>
  </picker>
  <van-icon class="icon" name="arrow" />
</view>

<view wx:if="{{type==='radio'}}">
    <picker class="picker" range="{{list}}" range-key="{{rangeKey}}" value="{{date}}" bindchange="chooseItem" disabled="{{isAudit}}">
        <!-- <text>{{index == null?placeholder[0]:list[index][rangeKey]}}</text> -->
        <!-- <van-radio-group value="{{ date}}" class="radio-group" direction="horizontal" bind:change="chooseItem"> -->
            <radio name="1" label-class="text-white" checked-color="#4AA39E" custom-class="padding-sm">aaa</radio>
        <!-- </van-radio-group> -->
    </picker>
    <van-icon class="icon" name="arrow" />
</view>