city-casereport/miniprogram_npm/tdesign-miniprogram/overlay/overlay.wxml
2023-12-06 14:22:42 +08:00

26 lines
827 B
Plaintext

<wxs src="../common/utils.wxs" module="_" />
<view
wx:if="{{realVisible && preventScrollThrough}}"
class="{{prefix}}-overlay {{transitionClass}} class"
style="{{_._style(['--td-overlay-transition-duration:' + duration + 'ms', 'z-index:' + _zIndex, computedStyle, style, customStyle])}}"
bind:tap="handleClick"
catchtouchmove="noop"
bind:transitionend="onTransitionEnd"
aria-role="{{ ariaRole || 'button' }}"
aria-label="{{ ariaLabel || '关闭' }}"
>
<slot />
</view>
<view
wx:elif="{{realVisible}}"
class="{{prefix}}-overlay {{transitionClass}} class"
style="{{_._style(['z-index:' + _zIndex, computedStyle, style, customStyle])}}"
bind:tap="handleClick"
bind:transitionend="onTransitionEnd"
aria-role="{{ ariaRole || 'button' }}"
aria-label="{{ ariaLabel || '关闭' }}"
>
<slot />
</view>