index.wxml 787 B

12345678910111213141516171819202122232425
  1. <wxs src="../wxs/utils.wxs" module="utils" />
  2. <wxs src="./index.wxs" module="computed" />
  3. <van-overlay
  4. wx:if="{{ overlay }}"
  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, { round, safe: safeAreaInsetBottom, safeTop: safeAreaInsetTop }]) }}"
  14. style="{{ computed.popupStyle({ zIndex, currentDuration, display, customStyle }) }}"
  15. bind:transitionend="onTransitionEnd"
  16. >
  17. <slot />
  18. <van-icon
  19. wx:if="{{ closeable }}"
  20. name="{{ closeIcon }}"
  21. class="close-icon-class van-popup__close-icon van-popup__close-icon--{{ closeIconPosition }}"
  22. bind:tap="onClickCloseIcon"
  23. />
  24. </view>