tiny-vue/examples/sites/demos/mobile-first/app/time-line/fold-time.vue

30 lines
849 B
Vue

<template>
<tiny-time-line :data="data" vertical></tiny-time-line>
</template>
<script>
import { TimeLine } from '@opentiny/vue'
export default {
components: {
TinyTimeLine: TimeLine
},
data() {
return {
active: 1,
data: [
{ name: '节点标题', time: '2019-11-11 00:01:30' },
{ name: '节点标题', time: '2019-11-12 14:20:15' },
{ name: '节点标题', time: '2019-11-14 20:45:50' },
{ name: '节点标题', time: '2019-11-11 00:01:30' },
{ name: '节点标题', time: '2019-11-12 14:20:15' },
{ name: '节点标题', time: '2019-11-14 20:45:50' },
{ name: '节点标题', time: '2019-11-11 00:01:30' },
{ name: '节点标题', time: '2019-11-12 14:20:15' },
{ name: '节点标题', time: '2019-11-14 20:45:50' }
]
}
}
}
</script>