index.axml 1.1 KB

123456789101112131415161718
  1. <view class='toast-index {{className}}' style='{{style}}' ref='saveChildRef0'>
  2. <van-overlay a:if='{{ mask || forbidClick }}' show='{{ show }}' z-index='{{ zIndex }}' custom-style="{{ mask ? '' : 'background-color: transparent;' }}" ref='saveChildRef1'>
  3. </van-overlay>
  4. <van-transition show='{{ show }}' custom-style='z-index: {{ zIndex }}' custom-class='van-toast__container' ref='saveChildRef2'>
  5. <view class="van-toast van-toast--{{ type === 'text' ? 'text' : 'icon' }} van-toast--{{ position }}" catchTouchMove='antmoveAction' data-antmove-touchmove='noop'>
  6. <text a:if="{{ type === 'text' }}">
  7. {{ message }} </text> <block a:else >
  8. <van-loading a:if="{{ type === 'loading' }}" color='white' type='{{ loadingType }}' custom-class='van-toast__loading' ref='saveChildRef3'>
  9. </van-loading>
  10. <van-icon a:else class='van-toast__icon' name='{{ type }}' ref='saveChildRef4'>
  11. </van-icon>
  12. <text a:if='{{ message }}' class='van-toast__text'>
  13. {{ message }} </text>
  14. </block> <slot>
  15. </slot>
  16. </view>
  17. </van-transition>
  18. </view>