index.wxml 820B

123456789101112131415161718192021222324252627
  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. lock-scroll="{{ lockScroll }}"
  11. />
  12. <view
  13. wx:if="{{ inited }}"
  14. class="custom-class {{ classes }} {{ utils.bem('popup', [position, { round, safe: safeAreaInsetBottom, safeTop: safeAreaInsetTop }]) }}"
  15. style="{{ computed.popupStyle({ zIndex, currentDuration, display, customStyle }) }}"
  16. bind:transitionend="onTransitionEnd"
  17. >
  18. <slot />
  19. <van-icon
  20. wx:if="{{ closeable }}"
  21. name="{{ closeIcon }}"
  22. class="close-icon-class van-popup__close-icon van-popup__close-icon--{{ closeIconPosition }}"
  23. bind:tap="onClickCloseIcon"
  24. />
  25. </view>