index.axml 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <view class='page-container-classname' ref='saveChildRef0'>
  2. <demo-block padding=" " title='基础用法' ref='saveChildRef1'>
  3. <van-button type='danger' onClick='showNotify' ref='saveChildRef2'>
  4. 基础用法
  5. </van-button>
  6. </demo-block>
  7. <demo-block padding=" " title='通知类型' ref='saveChildRef3'>
  8. <view class='demo-margin-bottom'>
  9. <van-button class='demo-margin-right' type='info' data-type='primary' onClick='showNotifyByType' ref='saveChildRef4'>
  10. 主要通知
  11. </van-button>
  12. <van-button type='primary' data-type='success' onClick='showNotifyByType' ref='saveChildRef5'>
  13. 成功通知
  14. </van-button>
  15. </view>
  16. <view class='demo-margin-bottom'>
  17. <van-button class='demo-margin-right' type='danger' data-type='danger' onClick='showNotifyByType' ref='saveChildRef6'>
  18. 危险通知
  19. </van-button>
  20. <van-button type='warning' data-type='warning' onClick='showNotifyByType' ref='saveChildRef7'>
  21. 警告通知
  22. </van-button>
  23. </view>
  24. </demo-block>
  25. <demo-block padding=" " title='自定义通知' ref='saveChildRef8'>
  26. <van-button type='primary' class='demo-margin-right' onClick='showCustomColor' ref='saveChildRef9'>
  27. 自定义颜色
  28. </van-button>
  29. <van-button type='primary' onClick='showCustomDuration' ref='saveChildRef10'>
  30. 自定义时长
  31. </van-button>
  32. </demo-block>
  33. <demo-block padding=" " title='插入状态栏高度' ref='saveChildRef11'>
  34. <van-button type='primary' class='demo-margin-right' onClick='showSafe' ref='saveChildRef12'>
  35. 插入状态栏高度
  36. </van-button>
  37. </demo-block>
  38. <van-notify id='van-notify' ref='saveChildRef13'>
  39. </van-notify>
  40. </view>