popup.wxml 811 B

12345678910111213141516171819202122232425
  1. <view
  2. wx:if="{{realVisible}}"
  3. style="{{customStyle + ';z-index:' + zIndex + ';'}}"
  4. class="{{className}} {{transitionClass}} {{prefix}}-class"
  5. bind:transitionend="onTransitionEnd"
  6. >
  7. <view class="{{classPrefix}}__content {{prefix}}-class-content">
  8. <view class="{{classPrefix}}__close" bind:tap="handleClose">
  9. <t-icon name="close" wx:if="{{closeBtn}}" size="64rpx" />
  10. <slot name="closeBtn" class="{{classPrefix}}-slot" />
  11. </view>
  12. <slot name="content" />
  13. <slot />
  14. </view>
  15. </view>
  16. <t-overlay
  17. id="popup-overlay"
  18. wx:if="{{showOverlay}}"
  19. visible="{{visible}}"
  20. z-index="{{overlayProps.zIndex}}"
  21. prevent-scroll-through="{{preventScrollThrough || overlayProps.preventScrollThrough}}"
  22. bind:tap="handleOverlayClick"
  23. custom-style="{{overlayProps.customStyle || ''}}"
  24. />