forked from opentiny/tiny-vue
29 lines
566 B
Vue
29 lines
566 B
Vue
<template>
|
|
<aui-time-line :data="data" :active="active" @click="click" vertical></aui-time-line>
|
|
</template>
|
|
|
|
<script>
|
|
import { TimeLineNew } from '@opentiny/vue'
|
|
|
|
export default {
|
|
components: {
|
|
AuiTimeLine: TimeLineNew
|
|
},
|
|
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' }
|
|
]
|
|
}
|
|
},
|
|
methods: {
|
|
click(index) {
|
|
this.active = index
|
|
}
|
|
}
|
|
}
|
|
</script>
|