popup.wxml 1005 B

12345678910111213141516171819202122232425262728293031
  1. <wxs src="./popup.wxs" module="utils" />
  2. <wxs src="../common/utils.wxs" module="_" />
  3. <view
  4. wx:if="{{realVisible}}"
  5. style="{{_._style([utils.getPopupStyles(zIndex), style, customStyle])}}"
  6. class="{{_.cls(classPrefix, [placement])}} {{transitionClass}} class {{prefix}}-class"
  7. bind:transitionend="onTransitionEnd"
  8. aria-role="dialog"
  9. aria-modal="{{ true }}"
  10. >
  11. <view class="{{classPrefix}}__content {{prefix}}-class-content">
  12. <view class="{{classPrefix}}__close" bind:tap="handleClose">
  13. <t-icon name="close" wx:if="{{closeBtn}}" size="64rpx" />
  14. <slot name="close-btn" class="{{classPrefix}}-slot" />
  15. </view>
  16. <slot name="content" />
  17. <slot />
  18. </view>
  19. </view>
  20. <t-overlay
  21. id="popup-overlay"
  22. wx:if="{{showOverlay}}"
  23. visible="{{visible}}"
  24. class="test"
  25. z-index="{{overlayProps.zIndex || 11000}}"
  26. prevent-scroll-through="{{preventScrollThrough || overlayProps.preventScrollThrough}}"
  27. bind:tap="handleOverlayClick"
  28. style="{{overlayProps.style || ''}}"
  29. />