popup.wxml 635 B

12345678910111213141516
  1. <wxs src="../wxs/utils.wxs" module="utils" />
  2. <wxs src="./index.wxs" module="computed" />
  3. <view
  4. wx:if="{{ inited }}"
  5. class="custom-class {{ classes }} {{ utils.bem('popup', [position, { round, safe: safeAreaInsetBottom, safeTop: safeAreaInsetTop, safeTabBar: safeAreaTabBar }]) }}"
  6. style="{{ computed.popupStyle({ zIndex, currentDuration, display, customStyle }) }}"
  7. bind:transitionend="onTransitionEnd"
  8. >
  9. <slot />
  10. <van-icon
  11. wx:if="{{ closeable }}"
  12. name="{{ closeIcon }}"
  13. class="close-icon-class van-popup__close-icon van-popup__close-icon--{{ closeIconPosition }}"
  14. bind:tap="onClickCloseIcon"
  15. />
  16. </view>