picker_cell.wxml
1.4 KB
<template name="picker_cell_normal">
<view class='item_body'>
<text hidden='{{!isrequre}}' style='color:red;font-size: 30rpx;line-height: 90rpx;float:left'>*</text>
<view wx:if='{{isrequre||isblack}}'>
<text class='text_black_30 float_left' style='line-height: 90rpx;'>{{label}}</text>
</view>
<view wx:else>
<text class='text_666_30 float_left' style='line-height: 90rpx;'>{{label}}</text>
</view>
<image wx:if='{{!disabled}}' class='arrow_wrap' src='/images/arrow_right.png'></image>
<view class="weui-cell__bd">
<picker mode="{{mode?mode:'selector'}}" range-key="{{range_key}}" range="{{values}}" fields="{{fields}}" start="{{start}}" end="{{end}}" bindchange="{{onChange}}" bindcolumnchange="{{onColumnChange}}" disabled="{{disabled}}" id='{{bindtype}}'>
<!-- <view wx:if="{{selected&&disabled}}" class="text_999_30 float_right">{{selected}}</view>
<view wx:elif="{{selected}}" class="text_333_30 float_right ">{{selected}}</view>
<view wx:else class="text_999_30 float_right ">{{placeholder}}</view> -->
<text wx:if="{{selected&&disabled}}" class="text_999_30 float_right" style='line-height: 90rpx;'>{{selected}}</text>
<text wx:elif="{{selected}}" class="text_333_30 float_right " style='line-height: 90rpx;'>{{selected}}</text>
<text wx:else class="text_999_30 float_right " style='line-height: 90rpx;'>{{placeholder}}</text>
</picker>
</view>
</view>
</template>