popup.wxml 545 B

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