options.wxml 739 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. <view wx:if="{{ item.name }}" class="van-share-sheet__name">{{ item.name }}</view>
  14. <view wx:if="{{ item.description }}" class="van-share-sheet__option-description">
  15. {{ item.description }}
  16. </view>
  17. </button>
  18. </view>
  19. </view>