index.axml 1.5 KB

12345678910111213141516171819202122232425262728293031
  1. <view class='share-sheet-index {{className}}' style='{{style}}' ref='saveChildRef0'>
  2. <import-sjs from='./index.sjs' name='computed'>
  3. </import-sjs>
  4. <van-popup round=" " class='van-share-sheet' show='{{ show }}' position='bottom' overlay='{{ overlay }}' duration='{{ duration }}' z-index='{{ zIndex }}' overlay-style='{{ overlayStyle }}' close-on-click-overlay='{{ closeOnClickOverlay }}' safe-area-inset-bottom='{{ safeAreaInsetBottom }}' onClose='onClose' onClick-overlay='onClickOverlay' ref='saveChildRef1'>
  5. <view class='van-share-sheet__header'>
  6. <view class='van-share-sheet__title'>
  7. <slot name='title'>
  8. </slot>
  9. </view>
  10. <view a:if='{{ title }}' class='van-share-sheet__title'>
  11. {{ title }}
  12. </view>
  13. <view class='van-share-sheet__description'>
  14. <slot name='description'>
  15. </slot>
  16. </view>
  17. <view a:if='{{ description }}' class='van-share-sheet__description'>
  18. {{ description }}
  19. </view>
  20. </view>
  21. <block a:if='{{ computed.isMulti(options) }}'>
  22. <options a:for='{{ options }}' show-border='{{ index !== 0 }}' a:key='{{*this}}' options='{{ item }}' onSelect='onSelect' ref-numbers='{{ options }}' ref='saveChildRef2'>
  23. </options>
  24. </block>
  25. <options a:else options='{{ options }}' onSelect='onSelect' ref='saveChildRef3'>
  26. </options>
  27. <btn type='button' class='van-share-sheet__cancel button-style' onTap='antmoveAction' data-antmove-tap='onCancel'>
  28. {{ cancelText }}
  29. </btn>
  30. </van-popup>
  31. </view>