0
0

timeline.html 510 B

12345678910111213141516171819202122
  1. <div id="{$name}">
  2. <el-timeline>
  3. <el-timeline-item
  4. v-for="(activity, index) in activities"
  5. :key="index"
  6. :color="activity.color"
  7. :timestamp="activity.timestamp">
  8. {{activity.content}}
  9. </el-timeline-item>
  10. </el-timeline>
  11. </div>
  12. <script>
  13. new Vue({
  14. el: '#{$name}',
  15. data: function() {
  16. return {
  17. activities: {:json_encode($lists)},
  18. }
  19. },
  20. })
  21. </script>