index.axml 1.4 KB

123456789101112131415161718192021222324252627282930313233
  1. <view class='page-container-classname' ref='saveChildRef0'>
  2. <demo-block title='文字提示' padding=" " ref='saveChildRef1'>
  3. <van-button type='primary' class='demo-margin-right' onClick='showToast' ref='saveChildRef2'>
  4. 文字提示
  5. </van-button>
  6. <van-button type='primary' onClick='showLongToast' ref='saveChildRef3'>
  7. 长文字提示
  8. </van-button>
  9. </demo-block>
  10. <demo-block title='加载提示' padding=" " ref='saveChildRef4'>
  11. <van-button type='primary' class='demo-margin-right' onClick='showLoadingToast' ref='saveChildRef5'>
  12. 加载提示
  13. </van-button>
  14. <van-button type='primary' onClick='showCustomLoadingToast' ref='saveChildRef6'>
  15. 自定义加载图标
  16. </van-button>
  17. </demo-block>
  18. <demo-block title='成功/失败提示' padding=" " ref='saveChildRef7'>
  19. <van-button type='info' class='demo-margin-right' onClick='showSuccessToast' ref='saveChildRef8'>
  20. 成功提示
  21. </van-button>
  22. <van-button type='danger' onClick='showFailToast' ref='saveChildRef9'>
  23. 失败提示
  24. </van-button>
  25. </demo-block>
  26. <demo-block title='动态更新提示' padding=" " ref='saveChildRef10'>
  27. <van-button type='primary' onClick='showCustomizedToast' ref='saveChildRef11'>
  28. 动态更新提示
  29. </van-button>
  30. </demo-block>
  31. <van-toast id='van-toast' ref='saveChildRef12'>
  32. </van-toast>
  33. </view>