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