You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ant-design-vue/components/timeline/demo/alternate.vue

46 lines
1.3 KiB

<docs>
---
order: 4
title:
zh-CN: 交替展现
en-US: Alternate
---
## zh-CN
内容在时间轴两侧轮流出现
## en-US
Alternate timeline.
</docs>
<template>
<a-timeline mode="alternate">
<a-timeline-item>Create a services site 2015-09-01</a-timeline-item>
<a-timeline-item color="green">Solve initial network problems 2015-09-01</a-timeline-item>
<a-timeline-item>
<template #dot><ClockCircleOutlined style="font-size: 16px" /></template>
Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque
laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto
beatae vitae dicta sunt explicabo.
</a-timeline-item>
<a-timeline-item color="red">Network problems being solved 2015-09-01</a-timeline-item>
<a-timeline-item>Create a services site 2015-09-01</a-timeline-item>
<a-timeline-item>
<template #dot><ClockCircleOutlined style="font-size: 16px" /></template>
Technical testing 2015-09-01
</a-timeline-item>
</a-timeline>
</template>
<script lang="ts">
import { ClockCircleOutlined } from '@ant-design/icons-vue';
import { defineComponent } from 'vue';
export default defineComponent({
components: {
ClockCircleOutlined,
},
});
</script>