index.wxml 1.2KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. <wxs src="./index.wxs" module="computed" />
  2. <van-popup
  3. round
  4. class="van-share-sheet"
  5. show="{{ show }}"
  6. position="bottom"
  7. overlay="{{ overlay }}"
  8. duration="{{ duration }}"
  9. z-index="{{ zIndex }}"
  10. overlay-style="{{ overlayStyle }}"
  11. close-on-click-overlay="{{ closeOnClickOverlay }}"
  12. safe-area-inset-bottom="{{ safeAreaInsetBottom }}"
  13. bind:close="onClose"
  14. bind:click-overlay="onClickOverlay"
  15. >
  16. <view class="van-share-sheet__header">
  17. <view class="van-share-sheet__title">
  18. <slot name="title" />
  19. </view>
  20. <view wx:if="{{ title }}" class="van-share-sheet__title">{{ title }}</view>
  21. <view class="van-share-sheet__description">
  22. <slot name="description" />
  23. </view>
  24. <view wx:if="{{ description }}" class="van-share-sheet__description">
  25. {{ description }}
  26. </view>
  27. </view>
  28. <block wx:if="{{ computed.isMulti(options) }}">
  29. <options
  30. wx:for="{{ options }}"
  31. show-border="{{ index !== 0 }}"
  32. wx:key="index"
  33. options="{{ item }}"
  34. bind:select="onSelect"
  35. />
  36. </block>
  37. <options wx:else options="{{ options }}" bind:select="onSelect" />
  38. <button type="button" class="van-share-sheet__cancel" bindtap="onCancel">
  39. {{ cancelText }}
  40. </button>
  41. </van-popup>