tiny-vue/examples/sites/demos/mobile/app/timeline/different-data.vue

63 lines
1.3 KiB
Vue
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<template>
<tiny-time-line :data="data" name-field="statusText" :active="active" @click="click"></tiny-time-line>
</template>
<script lang="jsx">
import { TimeLine } from '@opentiny/vue'
export default {
components: {
TinyTimeLine: TimeLine
},
data() {
return {
active: 1,
data: [
{
status: 'current',
statusText: '企业资料',
personInfo: '张三',
cycle: '周期2天',
overdue: '已超期 1 天'
},
{
status: 'success',
statusText: '法人资料',
personInfo: '张三',
cycle: '周期2天',
overdue: '已超期 1 天'
},
{
status: 'complete',
statusText: '校验身份',
personInfo: '张三',
cycle: '周期2天',
overdue: '已超期 1 天'
},
{
status: 'complete',
statusText: '提交资料',
personInfo: '张三',
cycle: '周期2天',
overdue: '已超期 1 天'
}
]
}
},
methods: {
click(index, node) {
this.active = index
}
}
}
</script>
<style scoped>
.tiny-mobile-timeline__date-time {
padding: 15px 22px 15px 4px !important;
}
.tiny-mobile-timeline__content {
padding: 15px 16px 14px 22px !important;
}
</style>