picker.wxml 870 B

1234567891011121314151617181920
  1. <t-popup visible="{{visible}}" placement="bottom" bind:visible-change="onPopupChange">
  2. <view slot="content" class="{{classPrefix}} t-class">
  3. <view class="{{classPrefix}}__toolbar" wx:if="{{header}}">
  4. <view class="{{classPrefix}}__cancel t-class-cancel" wx:if="{{cancelBtn}}" bindtap="onCancel">{{cancelBtn}}</view>
  5. <view class="{{classPrefix}}__title t-class-title">{{title}}</view>
  6. <view class="{{classPrefix}}__confirm t-class-confirm" wx:if="{{confirmBtn}}" bindtap="onConfirm"
  7. >{{confirmBtn}}</view
  8. >
  9. </view>
  10. <!-- 扩展插槽 -->
  11. <slot name="header"></slot>
  12. <view class="{{classPrefix}}__main">
  13. <slot></slot>
  14. <view class="{{classPrefix}}__mask"></view>
  15. <view class="{{classPrefix}}__indicator"></view>
  16. </view>
  17. <!-- 扩展插槽 -->
  18. <slot name="footer"></slot>
  19. </view>
  20. </t-popup>