water_xcx/miniprogram_npm/tdesign-miniprogram/popup/popup.wxml

26 lines
811 B
Plaintext
Raw Permalink Normal View History

2025-04-15 15:44:51 +08:00
<view
wx:if="{{realVisible}}"
style="{{customStyle + ';z-index:' + zIndex + ';'}}"
class="{{className}} {{transitionClass}} {{prefix}}-class"
bind:transitionend="onTransitionEnd"
>
<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="closeBtn" class="{{classPrefix}}-slot" />
</view>
<slot name="content" />
<slot />
</view>
</view>
<t-overlay
id="popup-overlay"
wx:if="{{showOverlay}}"
visible="{{visible}}"
z-index="{{overlayProps.zIndex}}"
prevent-scroll-through="{{preventScrollThrough || overlayProps.preventScrollThrough}}"
bind:tap="handleOverlayClick"
custom-style="{{overlayProps.customStyle || ''}}"
/>