options.wxml 637 B

123456789101112131415161718
  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. <image src="{{ computed.getIconURL(item.icon) }}" class="van-share-sheet__icon" />
  12. <view wx:if="{{ item.name }}" class="van-share-sheet__name">{{ item.name }}</view>
  13. <view wx:if="{{ item.description }}" class="van-share-sheet__option-description">
  14. {{ item.description }}
  15. </view>
  16. </view>
  17. </view>