mirror of
https://gitee.com/vant-contrib/vant-weapp.git
synced 2025-04-06 03:58:05 +08:00
fix #1377 + Transition: fix overlay still show after closed + Dialog: add new transition none
20 lines
690 B
Plaintext
20 lines
690 B
Plaintext
<wxs src="../wxs/utils.wxs" module="utils" />
|
|
|
|
<van-overlay
|
|
wx:if="{{ inited && overlay }}"
|
|
mask
|
|
show="{{ show }}"
|
|
z-index="{{ zIndex }}"
|
|
custom-style="{{ overlayStyle }}"
|
|
duration="{{ transition === 'none' ? 1 : duration }}"
|
|
bind:click="onClickOverlay"
|
|
/>
|
|
<view
|
|
wx:if="{{ inited }}"
|
|
class="custom-class {{ classes }} {{ utils.bem('popup', [position, { safe: isIPhoneX && safeAreaInsetBottom && position === 'bottom' }]) }}"
|
|
style="z-index: {{ zIndex }}; -webkit-transition-duration:{{ currentDuration }}ms; transition-duration:{{ currentDuration }}ms; {{ display ? '' : 'display: none;' }} {{ customStyle }}"
|
|
bind:transitionend="onTransitionEnd"
|
|
>
|
|
<slot />
|
|
</view>
|