index.axml 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <view class='page-container-classname' ref='saveChildRef0'>
  2. <demo-block title='基础用法' padding=" " ref='saveChildRef1'>
  3. <van-row ref='saveChildRef2'>
  4. <van-col span='8' custom-class='dark' ref='saveChildRef3'>
  5. span: 8
  6. </van-col>
  7. <van-col span='8' custom-class='light' ref='saveChildRef4'>
  8. span: 8
  9. </van-col>
  10. <van-col span='8' custom-class='dark' ref='saveChildRef5'>
  11. span: 8
  12. </van-col>
  13. </van-row>
  14. <van-row ref='saveChildRef6'>
  15. <van-col span='4' custom-class='dark' ref='saveChildRef7'>
  16. span: 4
  17. </van-col>
  18. <van-col span='10' offset='4' custom-class='light' ref='saveChildRef8'>
  19. offset: 4, span: 10
  20. </van-col>
  21. </van-row>
  22. <van-row ref='saveChildRef9'>
  23. <van-col offset='12' span='12' custom-class='dark' ref='saveChildRef10'>
  24. offset: 12, span: 12
  25. </van-col>
  26. </van-row>
  27. </demo-block>
  28. <demo-block title='在列元素之间增加间距' padding=" " ref='saveChildRef11'>
  29. <van-row gutter='20' ref='saveChildRef12'>
  30. <van-col span='8' custom-class='dark' ref='saveChildRef13'>
  31. span: 8
  32. </van-col>
  33. <van-col span='8' custom-class='light' ref='saveChildRef14'>
  34. span: 8
  35. </van-col>
  36. <van-col span='8' custom-class='dark' ref='saveChildRef15'>
  37. span: 8
  38. </van-col>
  39. </van-row>
  40. </demo-block>
  41. </view>