index.wxml 683 B

123456789101112131415161718
  1. <wxs src="../wxs/utils.wxs" module="utils" />
  2. <van-overlay
  3. wx:if="{{ inited && overlay }}"
  4. mask
  5. show="{{ show }}"
  6. z-index="{{ zIndex }}"
  7. custom-style="{{ overlayStyle }}"
  8. bind:click="onClickOverlay"
  9. />
  10. <view
  11. wx:if="{{ inited }}"
  12. class="custom-class {{ utils.bem('popup', [position, { safe: isIPhoneX && safeAreaInsetBottom && position === 'bottom' }]) }}"
  13. 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 }}"
  14. bind:animationend="onAnimationEnd"
  15. >
  16. <slot />
  17. </view>