<van-cell-group>
    <van-field wx:for="{{fromList}}" wx:key="{{item.label}}" data-item="{{item}}" data-index="{{index}}" value="{{ item.value }}" label="{{item.label}}" placeholder="{{item.placeholder}}" error='{{item.error}}' required='{{item.required}}' input-align='right' bind:change='inputChange' bind:clear='inputClear' clearable>
        <view class="section" wx:if="{{item.type=='date'}}" slot='input'>
            <picker mode="date" value="{{item.value}}" end="{{endTime}}" data-index="{{index}}" bindchange="bindDateChange">
                <view class="picker" style="color:{{item.error?'var(--field-input-error-text-color,#ee0a24)':'var(--field-input-text-color,#323233)'}}">
                    <text wx:if="{{item.value==''}}" style="opacity:{{item.error?1:.4}}">请选择</text>
                    <text wx:else>{{item.value}}</text>
                </view>
            </picker>
        </view>
        <!-- 性别选择器 -->
        <view class="section" wx:if="{{item.type=='sex'}}" slot='input' catchtap="seleteSex">
            <view class="picker">
                <text wx:if="{{item.value}}" style="color:rgba(0, 0, 0, 1) ;">{{item.value}}</text>
                <text wx:else>请选择</text>
            </view>
        </view>
        <slot name='slot' wx:if="{{item.type=='slot'}}" slot='input' />
        <slot name='slot1' wx:if="{{item.type=='custom'}}" slot='input' />
        <slot name='slot2' wx:if="{{item.type=='custom'}}" slot='input' />
        <slot name='slot3' wx:if="{{item.type=='custom'}}" slot='input' />
        <slot name='slot4' wx:if="{{item.type=='custom'}}" slot='input' />
    </van-field>
</van-cell-group>
<van-action-sheet show="{{ seleteSexShow }}" actions="{{ sexActions }}" bind:cancel='cancel' bind:select='handleSex' cancel-text="取消" />