index.axml 1.2 KB

12345678910111213141516171819202122232425262728
  1. <view class='page-container-classname' ref='saveChildRef0'>
  2. <demo-block title='基础用法' ref='saveChildRef1'>
  3. <van-picker columns='{{ column1 }}' onChange='onChange1' ref='saveChildRef2'>
  4. </van-picker>
  5. </demo-block>
  6. <demo-block title='默认选中项' ref='saveChildRef3'>
  7. <van-picker columns='{{ column1 }}' default-index='{{ 2 }}' onChange='onChange1' ref='saveChildRef4'>
  8. </van-picker>
  9. </demo-block>
  10. <demo-block title='展示顶部栏' ref='saveChildRef5'>
  11. <van-picker show-toolbar=" " title='标题' columns='{{ column1 }}' onChange='onChange1' onConfirm='onConfirm' onCancel='onCancel' ref='saveChildRef6'>
  12. </van-picker>
  13. </demo-block>
  14. <demo-block title='多列联动' ref='saveChildRef7'>
  15. <van-picker columns='{{ column4 }}' onChange='onChange2' ref='saveChildRef8'>
  16. </van-picker>
  17. </demo-block>
  18. <demo-block title='禁用选项' ref='saveChildRef9'>
  19. <van-picker columns='{{ column2 }}' ref='saveChildRef10'>
  20. </van-picker>
  21. </demo-block>
  22. <demo-block title='加载状态' ref='saveChildRef11'>
  23. <van-picker loading=" " columns='{{ column4 }}' ref='saveChildRef12'>
  24. </van-picker>
  25. </demo-block>
  26. <van-toast id='van-toast' ref='saveChildRef13'>
  27. </van-toast>
  28. </view>