<wxs src="../wxs/utils.wxs" module="utils" />
<wxs src="./index.wxs" module="computed" />
<view
  wx:if="{{ inited }}"
  class="custom-class {{ classes }} {{ utils.bem('popup', [position, { round, safeTop: safeAreaInsetTop, safeTabBar: safeAreaTabBar }]) }}"
  style="{{ computed.popupStyle({ position, status, zIndex, currentDuration, display, customStyle, safeAreaInsetBottom, safeAreaInsetBottomMin }) }}"
  catch:touchmove="{{ lockScroll ? 'noop' : ''}}"
>
  <slot />
  <smart-icon
    wx:if="{{ closeable }}"
    name="{{ closeIcon }}"
    class="close-icon-class smart-popup__close-icon smart-popup__close-icon--{{ closeIconPosition }}"
    aria-role="button"
    aria-label="{{ closeIconAriaLabel }}"
    bind:tap="onClickCloseIcon"
  />
</view>
