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