Files
sociology_app/unpackage/dist/dev/mp-weixin/pages/component/picker/picker.wxml
2025-05-06 13:33:55 +08:00

1 line
2.1 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<view><page-head vue-id="7d5d4cd2-1" title="{{title}}" bind:__l="__l"></page-head><view class="uni-title uni-common-pl">普通选择器</view><view class="uni-list"><view class="uni-list-cell"><view class="uni-list-cell-left">当前选择</view><view class="uni-list-cell-db"><picker value="{{index}}" range="{{array}}" range-key="name" data-event-opts="{{[['change',[['bindPickerChange',['$event']]]]]}}" bindchange="__e"><view class="uni-input">{{array[index].name}}</view></picker></view></view></view><view class="uni-title uni-common-pl">多列选择器</view><view class="uni-list"><view class="uni-list-cell"><view class="uni-list-cell-left">当前选择</view><view class="uni-list-cell-db"><picker mode="multiSelector" value="{{multiIndex}}" range="{{multiArray}}" data-event-opts="{{[['columnchange',[['bindMultiPickerColumnChange',['$event']]]]]}}" bindcolumnchange="__e"><view class="uni-input">{{multiArray[0][multiIndex[0]]+""+multiArray[1][multiIndex[1]]+""+multiArray[2][multiIndex[2]]}}</view></picker></view></view></view><view class="uni-title uni-common-pl">时间选择器</view><view class="uni-list"><view class="uni-list-cell"><view class="uni-list-cell-left">当前选择</view><view class="uni-list-cell-db"><picker mode="time" value="{{time}}" start="09:01" end="21:01" data-event-opts="{{[['change',[['bindTimeChange',['$event']]]]]}}" bindchange="__e"><view class="uni-input">{{time}}</view></picker></view></view></view><view class="uni-picker-tips">注:选择 09:01 ~ 21:01 之间的时间, 不在区间内不能选中</view><view class="uni-title uni-common-pl">日期选择器</view><view class="uni-list"><view class="uni-list-cell"><view class="uni-list-cell-left">当前选择</view><view class="uni-list-cell-db"><picker mode="date" value="{{date}}" start="{{startDate}}" end="{{endDate}}" data-event-opts="{{[['change',[['bindDateChange',['$event']]]]]}}" bindchange="__e"><view class="uni-input">{{date}}</view></picker></view></view></view><view class="uni-picker-tips">注:选择当前时间 ±10 年之间的时间, 不在区间内不能选中</view></view>