index.axml 1.3 KB

123456789101112131415161718192021222324
  1. <view class='page-container-classname' ref='saveChildRef0'>
  2. <demo-block title='基础用法' ref='saveChildRef1'>
  3. <van-circle type='2d' value='{{ value }}' text='{{ value }}%' ref='saveChildRef3' id='canvas1'>
  4. </van-circle>
  5. </demo-block>
  6. <demo-block title='样式定制' ref='saveChildRef4'>
  7. <van-circle value='{{ value }}' stroke-width='{{ 6 }}' type='2d' text='宽度定制' ref='saveChildRef10' id='canvas2'>
  8. </van-circle>
  9. <van-circle value='{{ value }}' layer-color='#eee' type='2d' color='#ee0a24' text='颜色定制' ref='saveChildRef11' id='canvas3'>
  10. </van-circle>
  11. <van-circle value='{{ value }}' type='2d' color='{{ gradientColor }}' text='渐变色' ref='saveChildRef12' id='canvas4'>
  12. </van-circle>
  13. <van-circle value='{{ value }}' type='2d' color='#07c160' clockwise='{{ false }}' text='逆时针' ref='saveChildRef13' id='canvas5'>
  14. </van-circle>
  15. <van-circle value='{{ value }}' type='2d' size='{{120}}' text='大小定制' ref='saveChildRef14' id='canvas6'>
  16. </van-circle>
  17. </demo-block>
  18. <van-button type='primary' size='small' data-step='10' onClick='run' ref='saveChildRef15'>
  19. 增加
  20. </van-button>
  21. <van-button type='danger' size='small' data-step='-10' onClick='run' ref='saveChildRef16'>
  22. 减少
  23. </van-button>
  24. </view>