You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

32 lines
1005 B

1 year ago
<wxs src="./popup.wxs" module="utils" />
<wxs src="../common/utils.wxs" module="_" />
<view
wx:if="{{realVisible}}"
style="{{_._style([utils.getPopupStyles(zIndex), style, customStyle])}}"
class="{{_.cls(classPrefix, [placement])}} {{transitionClass}} class {{prefix}}-class"
bind:transitionend="onTransitionEnd"
aria-role="dialog"
aria-modal="{{ true }}"
>
<view class="{{classPrefix}}__content {{prefix}}-class-content">
<view class="{{classPrefix}}__close" bind:tap="handleClose">
<t-icon name="close" wx:if="{{closeBtn}}" size="64rpx" />
<slot name="close-btn" class="{{classPrefix}}-slot" />
</view>
<slot name="content" />
<slot />
</view>
</view>
<t-overlay
id="popup-overlay"
wx:if="{{showOverlay}}"
visible="{{visible}}"
class="test"
z-index="{{overlayProps.zIndex || 11000}}"
prevent-scroll-through="{{preventScrollThrough || overlayProps.preventScrollThrough}}"
bind:tap="handleOverlayClick"
style="{{overlayProps.style || ''}}"
/>