options.wxml 730 B

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