index.axml 1.4 KB

123456789101112131415161718192021222324
  1. <view class='page-container-classname' ref='saveChildRef0'>
  2. <demo-block title='选择完整时间' ref='saveChildRef1'>
  3. <van-datetime-picker type='datetime' data-type='datetime' loading='{{ loading }}' value='{{ currentDate1 }}' min-date='{{ minDate }}' onInput='onInput' ref='saveChildRef2'>
  4. </van-datetime-picker>
  5. </demo-block>
  6. <demo-block title='选择日期(年月日)' ref='saveChildRef3'>
  7. <van-datetime-picker type='date' data-type='date' value='{{ currentDate2 }}' min-date='{{ minDate }}' formatter='{{ formatter }}' onInput='onInput' ref='saveChildRef4'>
  8. </van-datetime-picker>
  9. </demo-block>
  10. <demo-block title='选择日期(年月)' ref='saveChildRef5'>
  11. <van-datetime-picker type='year-month' data-type='year-month' value='{{ currentDate3 }}' min-date='{{ minDate }}' onInput='onInput' ref='saveChildRef6'>
  12. </van-datetime-picker>
  13. </demo-block>
  14. <demo-block title='选择时间' ref='saveChildRef7'>
  15. <van-datetime-picker type='time' data-type='time' value='{{ currentDate4 }}' min-hour='{{ minHour }}' max-hour='{{ maxHour }}' onInput='onInput' ref='saveChildRef8'>
  16. </van-datetime-picker>
  17. </demo-block>
  18. <demo-block title='选项过滤器' ref='saveChildRef9'>
  19. <van-datetime-picker type='time' value='{{ currentDate4 }}' filter='{{ filter }}' ref='saveChildRef10'>
  20. </van-datetime-picker>
  21. </demo-block>
  22. <van-toast id='van-toast' ref='saveChildRef11'>
  23. </van-toast>
  24. </view>