index.axml 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. <view class='page-container-classname' ref='saveChildRef0'>
  2. <demo-block title='基础用法' padding=" " ref='saveChildRef1'>
  3. <van-button type='primary' onClick='toggleActionSheet1' ref='saveChildRef2'>
  4. 弹出菜单
  5. </van-button>
  6. <van-action-sheet show='{{ show1 }}' actions='{{ action1 }}' onClose='toggleActionSheet1' ref='saveChildRef3'>
  7. </van-action-sheet>
  8. </demo-block>
  9. <demo-block title='选项状态' padding=" " ref='saveChildRef4'>
  10. <van-button type='primary' onClick='toggleActionSheet2' ref='saveChildRef5'>
  11. 弹出菜单
  12. </van-button>
  13. <van-action-sheet show='{{ show2 }}' actions='{{ action2 }}' onClose='toggleActionSheet2' ref='saveChildRef6'>
  14. </van-action-sheet>
  15. </demo-block>
  16. <demo-block title='展示取消按钮' padding=" " ref='saveChildRef7'>
  17. <van-button type='primary' onClick='toggleActionSheet3' ref='saveChildRef8'>
  18. 弹出菜单
  19. </van-button>
  20. <van-action-sheet show='{{ show3 }}' actions='{{ action1 }}' cancel-text='取消' onClose='toggleActionSheet3' ref='saveChildRef9'>
  21. </van-action-sheet>
  22. </demo-block>
  23. <demo-block title='展示描述信息' padding=" " ref='saveChildRef10'>
  24. <van-button type='primary' onClick='toggleActionSheet4' ref='saveChildRef11'>
  25. 弹出菜单
  26. </van-button>
  27. <van-action-sheet show='{{ show4 }}' actions='{{ action1 }}' description='这是一段描述信息' onClose='toggleActionSheet4' ref='saveChildRef12'>
  28. </van-action-sheet>
  29. </demo-block>
  30. <demo-block title='展示标题栏' padding=" " ref='saveChildRef13'>
  31. <van-button type='primary' onClick='toggleActionSheet5' ref='saveChildRef14'>
  32. 弹出菜单
  33. </van-button>
  34. <van-action-sheet show='{{ show5 }}' title='标题' onClose='toggleActionSheet5' ref='saveChildRef15'>
  35. <view class='content'>
  36. 内容
  37. </view>
  38. </van-action-sheet>
  39. </demo-block>
  40. <demo-block title='微信开放能力' padding=" " ref='saveChildRef16'>
  41. <van-button type='primary' onClick='toggleActionSheet6' ref='saveChildRef17'>
  42. 弹出菜单
  43. </van-button>
  44. <van-action-sheet show='{{ show6 }}' title='标题' actions='{{ action6 }}' onClose='toggleActionSheet6' onGetuserinfo='onGetUserInfo' ref='saveChildRef18'>
  45. </van-action-sheet>
  46. </demo-block>
  47. </view>