index.wxml 826 B

123456789101112131415161718192021222324
  1. <wxs src="../wxs/utils.wxs" module="utils" />
  2. <van-overlay
  3. wx:if="{{ overlay }}"
  4. show="{{ show }}"
  5. z-index="{{ zIndex }}"
  6. custom-style="{{ overlayStyle }}"
  7. duration="{{ duration }}"
  8. bind:click="onClickOverlay"
  9. />
  10. <view
  11. wx:if="{{ inited }}"
  12. class="custom-class {{ classes }} {{ utils.bem('popup', [position, { round, safe: safeAreaInsetBottom, safeTop: safeAreaInsetTop }]) }}"
  13. style="z-index: {{ zIndex }}; -webkit-transition-duration:{{ currentDuration }}ms; transition-duration:{{ currentDuration }}ms; {{ display ? '' : 'display: none;' }};{{ customStyle }}"
  14. bind:transitionend="onTransitionEnd"
  15. >
  16. <slot />
  17. <van-icon
  18. wx:if="{{ closeable }}"
  19. name="{{ closeIcon }}"
  20. class="van-popup__close-icon van-popup__close-icon--{{ closeIconPosition }}"
  21. bind:tap="onClickCloseIcon"
  22. />
  23. </view>