index.axml 1.0 KB

123456789101112
  1. <view class='popup-index {{className}}' style='{{style}}' ref='saveChildRef0'>
  2. <import-sjs from='../wxs/utils.sjs' name='utils'>
  3. </import-sjs>
  4. <van-overlay a:if='{{ overlay }}' show='{{ show }}' z-index='{{ zIndex }}' custom-style='{{ overlayStyle }}' duration='{{ duration }}' inited='{{inited}}' display='{{display}}' onClick='onClickOverlay' ref='saveChildRef1'>
  5. </van-overlay>
  6. <view a:if='{{ inited }}' class="{{customClass}} {{ classes }} {{ utils.bem('popup', [position, { round, safe: safeAreaInsetBottom, safeTop: safeAreaInsetTop }]) }}" style="z-index: {{ zIndex }}; -webkit-transition-duration:{{ currentDuration }}ms; transition-duration:{{ currentDuration }}ms; {{ display ? '' : 'display: none;' }};{{ customStyle }}" onTransitionend='onTransitionEnd'>
  7. <van-icon a:if='{{ closeable }}' name='{{ closeIcon }}' class='{{closeIconClass}} van-popup__close-icon van-popup__close-icon--{{ closeIconPosition }}' onClick='onClickCloseIcon' ref='saveChildRef2'>
  8. </van-icon>
  9. <slot>
  10. </slot>
  11. </view>
  12. </view>