Timeline 时间轴

    示例

    1. <view class="page__hd">
    2. <view class="page__title">Timeline</view>
    3. <view class="page__desc">时间轴</view>
    4. </view>
    5. <view class="page__bd page__bd_spacing">
    6. <view class="sub-title">Default</view>
    7. <wux-timeline>
    8. <wux-timeline-item content="2018-10-24 v1.0.0" />
    9. <wux-timeline-item content="2018-10-24 v1.0.0" />
    10. <wux-timeline-item content="2018-10-24 v1.0.0" />
    11. </wux-timeline>
    12. <view class="sub-title">Position = alternate</view>
    13. <wux-timeline position="alternate">
    14. <wux-timeline-item content="2018-10-24 v1.0.0" />
    15. <wux-timeline-item content="2018-10-24 v1.0.0" />
    16. <wux-timeline-item content="2018-10-24 v1.0.0" />
    17. <wux-timeline-item content="2018-10-24 v1.0.0" />
    18. </wux-timeline>
    19. <wux-timeline position="right">
    20. <wux-timeline-item content="2018-10-24 v1.0.0" />
    21. <wux-timeline-item content="2018-10-24 v1.0.0" />
    22. <wux-timeline-item content="2018-10-24 v1.0.0" />
    23. <wux-timeline-item content="2018-10-24 v1.0.0" />
    24. </wux-timeline>
    25. <view class="sub-title">Pending</view>
    26. <wux-timeline pending>
    27. <wux-timeline-item content="2018-10-24 v1.0.0" />
    28. <wux-timeline-item content="2018-10-24 v1.0.0" />
    29. <wux-timeline-item content="2018-10-24 v1.0.0" />
    30. </wux-timeline>
    31. <view class="sub-title">Slot</view>
    32. <wux-timeline>
    33. <wux-timeline-item>
    34. <view>2018-10-24 v1.0.0</view>
    35. </wux-timeline-item>
    36. <wux-timeline-item custom>
    37. <view>2018-10-24 v1.0.0</view>
    38. </wux-timeline-item>
    39. <wux-timeline-item dotStyle="border-color: #33cd5f; color: #33cd5f">
    40. <view>2018-10-24 v1.0.0</view>
    41. </wux-timeline-item>
    42. <wux-timeline-item dotStyle="border-color: #ef473a; color: #ef473a">
    43. <view>2018-10-24 v1.0.0</view>
    44. </wux-timeline-item>
    45. </wux-timeline>
    46. </view>
    47. </view>

    Timeline externalClasses

    TimelineItem slot