2018-12-05 17:41:48 +08:00

17 lines
534 B
Plaintext

<van-overlay
wx:if="{{ inited && overlay }}"
mask
show="{{ show }}"
z-index="{{ zIndex }}"
custom-style="{{ overlayStyle }}"
bind:click="onClickOverlay"
/>
<view
wx:if="{{ inited }}"
class="{{ popupClass }}"
style="z-index: {{ zIndex }}; -webkit-animation: van-{{ transition || position }}-{{ type }} {{ duration }}ms both; animation: van-{{ transition || position }}-{{ type }} {{ duration }}ms both; {{ display ? '' : 'display: none;' }}{{ customStyle }}"
bind:animationend="onAnimationEnd"
>
<slot />
</view>