index.axml 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. <view class='picker-index {{className}}' style='{{style}}' ref='saveChildRef0'>
  2. <view a:if='{{!type}}'>
  3. <picker
  4. class='picker'
  5. range='{{list}}'
  6. range-key='{{rangeKey}}'
  7. value='{{index}}'
  8. disabled='{{isAudit}}'
  9. onChange='chooseItem'
  10. >
  11. <text>
  12. {{index == null?placeholder[0]:list[index][rangeKey]}}
  13. </text>
  14. </picker>
  15. <van-icon class='icon' name='arrow' ref='saveChildRef1'>
  16. </van-icon>
  17. </view>
  18. <view a:if="{{type === 'date-time'}}">
  19. <picker
  20. class='picker'
  21. mode='date'
  22. value='{{date}}'
  23. data-type='date'
  24. disabled='{{isAudit}}'
  25. onChange='chooseDateTime'
  26. >
  27. <text>
  28. {{date == null?placeholder[0]:date}}
  29. </text>
  30. </picker>
  31. <picker
  32. class='picker'
  33. mode='time'
  34. value='{{time}}'
  35. data-type='time'
  36. disabled='{{isAudit}}'
  37. onChange='chooseDateTime'
  38. >
  39. <text>
  40. {{time == null?placeholder[1]:time}}
  41. </text>
  42. </picker>
  43. <van-icon class='icon' name='arrow' ref='saveChildRef2'>
  44. </van-icon>
  45. </view>
  46. <view a:if="{{type==='radio'}}">
  47. <picker
  48. class='picker'
  49. range='{{list}}'
  50. range-key='{{rangeKey}}'
  51. value='{{date}}'
  52. disabled='{{isAudit}}'
  53. onChange='chooseItem'
  54. >
  55. <radio name='1' label-class='text-white' checked-color='#4AA39E' custom-class='padding-sm'>
  56. aaa
  57. </radio>
  58. </picker>
  59. <van-icon class='icon' name='arrow' ref='saveChildRef3'>
  60. </van-icon>
  61. </view>
  62. </view>