• Timeline 时间轴
    • Timeline Variables
    • TimelineItem Variables

    Timeline 时间轴

    时间线的方式展示信息。

    TIP

    1.0.4+

    Timeline 时间轴 - 图1

    展示时间轴,可以通过 color自定义标志颜色,icon自定义icon,父级pending设定最后一个加载样式。

    1. <avue-timeline pending>
    2. <avue-timeline-item>
    3. 北京
    4. </avue-timeline-item>
    5. <avue-timeline-item color="green">
    6. 长春
    7. </avue-timeline-item>
    8. <avue-timeline-item>
    9. 到达呼伦贝尔
    10. </avue-timeline-item>
    11. <avue-timeline-item icon="el-icon-tickets">
    12. 蒙古的草原
    13. </avue-timeline-item>
    14. <avue-timeline-item icon="el-icon-circle-check-outline" color="green">
    15. 满洲里,外面的俄罗斯是什么样子的世界?
    16. </avue-timeline-item>
    17. <avue-timeline-item>
    18. <a href="#" style="color: #409EFF;cursor: pointer;text-decoration: none;">加载更多</a>
    19. </avue-timeline-item>
    20. </avue-timeline>
    21. <script>
    22. export default {
    23. }
    24. </script>

    Timeline 时间轴 - 图2

    展示带左侧时间的时间轴,可以通过timetrue设定展示左侧样式,time-width200设定左侧宽度。

    1. <avue-timeline pending time :time-width="200">
    2. <avue-timeline-item>
    3. 北京
    4. </avue-timeline-item>
    5. <avue-timeline-item color="green">
    6. 长春
    7. </avue-timeline-item>
    8. <avue-timeline-item>
    9. <div slot="time">2012-12-23</div>
    10. <div slot="content">到达呼伦贝尔</div>
    11. </avue-timeline-item>
    12. <avue-timeline-item icon="el-icon-circle-check-outline">
    13. <div slot="time">
    14. <p>2012-12-23</p>
    15. <p>天气晴</p>
    16. </div>
    17. <div slot="content">蒙古的草原</div>
    18. </avue-timeline-item>
    19. <avue-timeline-item icon="el-icon-tickets" color="green">
    20. <div slot="time">
    21. <p>2012-12-23</p>
    22. <p>小雨</p>
    23. </div>
    24. <div slot="content">
    25. <h3>春夜洛城闻笛</h3>
    26. <p>谁家玉笛暗飞声</p>
    27. <p>散入春风满洛城</p>
    28. <p>此夜曲中闻折柳</p>
    29. <p>何人不起故园情</p>
    30. </div>
    31. </avue-timeline-item>
    32. <avue-timeline-item>
    33. <a href="#" style="color: #409EFF;cursor: pointer;text-decoration: none;">加载更多</a>
    34. </avue-timeline-item>
    35. </avue-timeline>
    36. <script>
    37. export default {
    38. }
    39. </script>

    Timeline Variables

    参数说明类型可选值默认值
    time是否显示左侧booleantrue,falsefalse
    pending最后一个显示加载样式booleantrue,falsefalse
    timeWidth显示左侧的宽度number-100

    TimelineItem Variables

    参数说明类型可选值默认值
    color时间轴颜色stringblue,green,yellow,red,#**blue
    icon图标stringicon图标-