index.axml 1.4 KB

123456789101112131415161718192021222324252627282930313233
  1. <view class='page-container-classname' ref='saveChildRef0'>
  2. <demo-block title='基础用法' padding=" " ref='saveChildRef1'>
  3. <van-empty description='描述文字' ref='saveChildRef2'>
  4. </van-empty>
  5. </demo-block>
  6. <demo-block title='图片类型' ref='saveChildRef3'>
  7. <van-tabs active='{{ activeTab }}' onChange='onChange' ref='saveChildRef4'>
  8. <van-tab title='通用错误' ref='saveChildRef5'>
  9. <van-empty image='error' description='描述文字' ref='saveChildRef6'>
  10. </van-empty>
  11. </van-tab>
  12. <van-tab title='网络错误' ref='saveChildRef7'>
  13. <van-empty image='network' description='描述文字' ref='saveChildRef8'>
  14. </van-empty>
  15. </van-tab>
  16. <van-tab title='搜索提示' ref='saveChildRef9'>
  17. <van-empty image='search' description='描述文字' ref='saveChildRef10'>
  18. </van-empty>
  19. </van-tab>
  20. </van-tabs>
  21. </demo-block>
  22. <demo-block title='自定义图片' padding=" " ref='saveChildRef11'>
  23. <van-empty custom-class='custom-image' image='https://img.yzcdn.cn/vant/custom-empty-image.png' description='描述文字' ref='saveChildRef12'>
  24. </van-empty>
  25. </demo-block>
  26. <demo-block title='底部内容' padding=" " ref='saveChildRef13'>
  27. <van-empty description='描述文字' ref='saveChildRef14'>
  28. <van-button round=" " type='danger' custom-class='bottom-button' ref='saveChildRef15'>
  29. 按钮
  30. </van-button>
  31. </van-empty>
  32. </demo-block>
  33. </view>