index.wxml 748 B

1234567891011121314151617181920
  1. <wxs src="../wxs/utils.wxs" module="utils" />
  2. <van-overlay
  3. wx:if="{{ overlay }}"
  4. mask
  5. show="{{ show }}"
  6. z-index="{{ zIndex }}"
  7. custom-style="{{ overlayStyle }}"
  8. duration="{{ duration }}"
  9. bind:click="onClickOverlay"
  10. />
  11. <view
  12. wx:if="{{ inited }}"
  13. class="custom-class {{ classes }} {{ utils.bem('popup', [position, { safe: isIPhoneX && safeAreaInsetBottom }]) }}"
  14. style="z-index: {{ zIndex }}; -webkit-transition-duration:{{ currentDuration }}ms; transition-duration:{{ currentDuration }}ms; {{ display ? '' : 'display: none;' }} {{ customStyle }}"
  15. bind:transitionend="onTransitionEnd"
  16. >
  17. <view wx:if="{{ safeAreaInsetTop }}" class="van-popup__safe-top" style="padding-top: {{ statusBarHeight }}px;"></view>
  18. <slot />
  19. </view>