options.axml 950 B

1234567891011121314151617181920
  1. <view class='share-sheet-options {{className}}' style='{{style}}' ref='saveChildRef0'>
  2. <import-sjs from='./options.sjs' name='computed'>
  3. </import-sjs>
  4. <import-sjs from='../wxs/utils.sjs' name='utils'>
  5. </import-sjs>
  6. <view class="{{ utils.bem('share-sheet__options', { border: showBorder }) }}">
  7. <view a:for='{{ options }}' a:key='{{index}}' class='van-share-sheet__option' data-index='{{ index }}' ref-numbers='{{ options }}' onTap='antmoveAction' data-antmove-tap='onSelect'>
  8. <btn class='van-share-sheet__button' open-type='{{ item.openType }}'>
  9. <image src='{{ computed.getIconURL(item.icon) }}' class='van-share-sheet__icon'>
  10. </image>
  11. </btn>
  12. <view a:if='{{ item.name }}' class='van-share-sheet__name'>
  13. {{ item.name }}
  14. </view>
  15. <view a:if='{{ item.description }}' class='van-share-sheet__option-description'>
  16. {{ item.description }}
  17. </view>
  18. </view>
  19. </view>
  20. </view>