mrr.sj.front/unpackage/dist/dev/mp-weixin/components/popup-picker/popup-picker.wxml

1 line
1.0 KiB
Plaintext
Raw Normal View History

2026-03-24 11:45:13 +08:00
<block wx:if="{{show}}"><view class="popup-picker"><block wx:if="{{show}}"><view data-event-opts="{{[['tap',[['handleClose',['$event']]]]]}}" class="{{['popup-mask',(show)?'show':'']}}" bindtap="__e"></view></block><view class="{{['popup-content',(show)?'show':'']}}"><view class="popup-header"><text data-event-opts="{{[['tap',[['handleClose',['$event']]]]]}}" class="cancel" bindtap="__e">取消</text><text class="title">{{title}}</text><text data-event-opts="{{[['tap',[['handleConfirm',['$event']]]]]}}" class="confirm" bindtap="__e">确定</text></view><picker-view class="picker-view" value="{{currentValue}}" data-event-opts="{{[['change',[['handleChange',['$event']]]]]}}" bindchange="__e"><block wx:for="{{columns}}" wx:for-item="column" wx:for-index="index" wx:key="index"><picker-view-column><block wx:for="{{column}}" wx:for-item="item" wx:for-index="itemIndex" wx:key="id"><view class="picker-item">{{''+(item[labelKey]||item.title)+''}}</view></block></picker-view-column></block></picker-view></view></view></block>