options.wxml 821 B

1234567891011121314151617181920
  1. <wxs module="utils" src="../wxs/utils.wxs"/>
  2. <wxs module="computed" src="./options.wxs"/>
  3. <view class="{{ utils.bem('share-sheet__options', { border: showBorder }) }}">
  4. <view
  5. bindtap="onSelect"
  6. class="van-share-sheet__option"
  7. data-index="{{ index }}"
  8. wx:for="{{ options }}"
  9. wx:key="index"
  10. >
  11. <button class="van-share-sheet__button" open-type="{{ item.openType }}">
  12. <image class="van-share-sheet__icon" src="{{ computed.getIconURL(item.icon) }}"/>
  13. <view class="van-share-sheet__name" wx:if="{{ item.name }}">{{ item.name }}</view>
  14. <view class="van-share-sheet__option-description" wx:if="{{ item.description }}">
  15. {{ item.description }}
  16. </view>
  17. </button>
  18. </view>
  19. </view>