mirror of
https://gitee.com/element-plus/element-plus.git
synced 2024-12-15 09:50:58 +08:00
37 lines
665 B
Vue
37 lines
665 B
Vue
|
<template>
|
||
|
<div class="block">
|
||
|
<el-timeline>
|
||
|
<el-timeline-item
|
||
|
v-for="(activity, index) in activities"
|
||
|
:key="index"
|
||
|
:timestamp="activity.timestamp"
|
||
|
>
|
||
|
{{ activity.content }}
|
||
|
</el-timeline-item>
|
||
|
</el-timeline>
|
||
|
</div>
|
||
|
</template>
|
||
|
|
||
|
<script lang="ts">
|
||
|
export default {
|
||
|
data() {
|
||
|
return {
|
||
|
activities: [
|
||
|
{
|
||
|
content: 'Event start',
|
||
|
timestamp: '2018-04-15',
|
||
|
},
|
||
|
{
|
||
|
content: 'Approved',
|
||
|
timestamp: '2018-04-13',
|
||
|
},
|
||
|
{
|
||
|
content: 'Success',
|
||
|
timestamp: '2018-04-11',
|
||
|
},
|
||
|
],
|
||
|
}
|
||
|
},
|
||
|
}
|
||
|
</script>
|