popup.wxml 805 B

1234567891011121314151617181920212223
  1. <t-transition
  2. visible="{{visible}}"
  3. custom-class="{{className}}"
  4. name="{{dataTransitionProps.name}}"
  5. appear="{{dataTransitionProps.appear}}"
  6. durations="{{dataTransitionProps.durations}}"
  7. destoryOnHide="{{destroyOnClose}}"
  8. catch:touchmove="{{preventScrollThrough ? 'preventEvent' : ''}}"
  9. >
  10. <view
  11. class="{{classPrefix}}__overlay {{prefix}}-class-overlay"
  12. bind:tap="onOverlayClick"
  13. style="z-index:{{zIndex -1}}"
  14. />
  15. <view class="{{classPrefix}}__content {{prefix}}-class-content" style="z-index:{{zIndex}}">
  16. <view class="{{classPrefix}}__close">
  17. <t-icon name="close" wx:if="{{closeBtn}}" bind:tap="onCloseClick" size="64rpx" />
  18. <slot name="closeBtn" class="{{classPrefix}}-slot" />
  19. </view>
  20. <slot name="content" />
  21. <slot />
  22. </view>
  23. </t-transition>