index.axml 1.7 KB

12345678910111213141516171819202122232425262728
  1. <view class='page-container-classname' ref='saveChildRef0'>
  2. <demo-block card=" " title='基础用法' ref='saveChildRef1'>
  3. <van-cell is-link=" " title='显示分享面板' data-type='basic' onClick='onShowShareSheet' ref='saveChildRef2'>
  4. </van-cell>
  5. <van-share-sheet show='{{ show.basic }}' title='立即分享给好友' options='{{ options }}' onClose='onClose' onSelect='onSelect' ref='saveChildRef3'>
  6. </van-share-sheet>
  7. </demo-block>
  8. <demo-block card=" " title='展示多行选项' ref='saveChildRef4'>
  9. <van-cell is-link=" " title='显示分享面板' data-type='multiLine' onClick='onShowShareSheet' ref='saveChildRef5'>
  10. </van-cell>
  11. <van-share-sheet show='{{ show.multiLine }}' title='立即分享给好友' options='{{ multiLineOptions }}' onClose='onClose' onSelect='onSelect' ref='saveChildRef6'>
  12. </van-share-sheet>
  13. </demo-block>
  14. <demo-block card=" " title='自定义图标' ref='saveChildRef7'>
  15. <van-cell is-link=" " title='显示分享面板' data-type='customIcon' onClick='onShowShareSheet' ref='saveChildRef8'>
  16. </van-cell>
  17. <van-share-sheet show='{{ show.customIcon }}' options='{{ customIconOptions }}' onClose='onClose' onSelect='onSelect' ref='saveChildRef9'>
  18. </van-share-sheet>
  19. </demo-block>
  20. <demo-block card=" " title='展示描述信息' ref='saveChildRef10'>
  21. <van-cell is-link=" " title='显示分享面板' data-type='withDesc' onClick='onShowShareSheet' ref='saveChildRef11'>
  22. </van-cell>
  23. <van-share-sheet show='{{ show.withDesc }}' title='立即分享给好友' options='{{ optionsWithDesc }}' description='描述信息' onClose='onClose' onSelect='onSelect' ref='saveChildRef12'>
  24. </van-share-sheet>
  25. </demo-block>
  26. <van-toast id='van-toast' ref='saveChildRef13'>
  27. </van-toast>
  28. </view>