index.axml 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <view class='page-container-classname' ref='saveChildRef0'>
  2. <van-cell center=" " title='基础用法' ref='saveChildRef1'>
  3. <van-stepper value='{{ 1 }}' ref='saveChildRef2'>
  4. </van-stepper>
  5. </van-cell>
  6. <van-cell center=" " title='步长设置' ref='saveChildRef3'>
  7. <van-stepper value='{{ 1 }}' step='2' ref='saveChildRef4'>
  8. </van-stepper>
  9. </van-cell>
  10. <van-cell center=" " title='限制输入范围' ref='saveChildRef5'>
  11. <van-stepper value='{{ 1 }}' min='5' max='8' ref='saveChildRef6'>
  12. </van-stepper>
  13. </van-cell>
  14. <van-cell center=" " title='限制输入整数' ref='saveChildRef7'>
  15. <van-stepper value='{{ 1 }}' integer=" " ref='saveChildRef8'>
  16. </van-stepper>
  17. </van-cell>
  18. <van-cell center=" " title='禁用状态' ref='saveChildRef9'>
  19. <van-stepper value='{{ 1 }}' disabled=" " ref='saveChildRef10'>
  20. </van-stepper>
  21. </van-cell>
  22. <van-cell center=" " title='禁用长按' ref='saveChildRef11'>
  23. <van-stepper value='{{ 1 }}' long-press='{{ false }}' ref='saveChildRef12'>
  24. </van-stepper>
  25. </van-cell>
  26. <van-cell center=" " title='固定小数位数' ref='saveChildRef13'>
  27. <van-stepper value='{{ 1 }}' step='0.2' decimal-length='{{ 1 }}' ref='saveChildRef14'>
  28. </van-stepper>
  29. </van-cell>
  30. <van-cell center=" " title='异步变更' ref='saveChildRef15'>
  31. <van-stepper value='{{ value }}' async-change=" " onChange='onChange' ref='saveChildRef16'>
  32. </van-stepper>
  33. </van-cell>
  34. <van-cell center=" " title='自定义大小' ref='saveChildRef17'>
  35. <van-stepper value='{{ 1 }}' input-width='40px' button-size='32px' ref='saveChildRef18'>
  36. </van-stepper>
  37. </van-cell>
  38. <van-toast id='van-toast' ref='saveChildRef19'>
  39. </van-toast>
  40. </view>