2023-02-28 08:29:30 +00:00
|
|
|
<template>
|
|
|
|
<DocSectionText v-bind="$attrs">
|
|
|
|
<p>Content location relative the line is defined with the <i>align</i> property.</p>
|
|
|
|
</DocSectionText>
|
|
|
|
<div class="card flex flex-wrap gap-6">
|
|
|
|
<Timeline :value="events" class="w-full md:w-20rem">
|
|
|
|
<template #content="slotProps">
|
|
|
|
{{ slotProps.item.status }}
|
|
|
|
</template>
|
|
|
|
</Timeline>
|
|
|
|
|
|
|
|
<Timeline :value="events" align="right" class="w-full md:w-20rem">
|
|
|
|
<template #content="slotProps">
|
|
|
|
{{ slotProps.item.status }}
|
|
|
|
</template>
|
|
|
|
</Timeline>
|
|
|
|
|
|
|
|
<Timeline :value="events" align="alternate" class="w-full md:w-20rem">
|
|
|
|
<template #content="slotProps">
|
|
|
|
{{ slotProps.item.status }}
|
|
|
|
</template>
|
|
|
|
</Timeline>
|
|
|
|
</div>
|
|
|
|
<DocSectionCode :code="code" />
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
export default {
|
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
events: [
|
|
|
|
{ status: 'Ordered', date: '15/10/2020 10:30', icon: 'pi pi-shopping-cart', color: '#9C27B0' },
|
|
|
|
{ status: 'Processing', date: '15/10/2020 14:00', icon: 'pi pi-cog', color: '#673AB7' },
|
|
|
|
{ status: 'Shipped', date: '15/10/2020 16:15', icon: 'pi pi-shopping-cart', color: '#FF9800' },
|
|
|
|
{ status: 'Delivered', date: '16/10/2020 10:00', icon: 'pi pi-check', color: '#607D8B' }
|
|
|
|
],
|
|
|
|
code: {
|
2023-09-22 12:54:14 +00:00
|
|
|
basic: `
|
|
|
|
<Timeline :value="events" class="w-full md:w-20rem">
|
2023-02-28 08:29:30 +00:00
|
|
|
<template #content="slotProps">
|
|
|
|
{{ slotProps.item.status }}
|
|
|
|
</template>
|
|
|
|
</Timeline>
|
|
|
|
|
|
|
|
<Timeline :value="events" align="right" class="w-full md:w-20rem">
|
|
|
|
<template #content="slotProps">
|
|
|
|
{{ slotProps.item.status }}
|
|
|
|
</template>
|
|
|
|
</Timeline>
|
|
|
|
|
|
|
|
<Timeline :value="events" align="alternate" class="w-full md:w-20rem">
|
|
|
|
<template #content="slotProps">
|
|
|
|
{{ slotProps.item.status }}
|
|
|
|
</template>
|
2023-10-15 09:38:39 +00:00
|
|
|
</Timeline>
|
|
|
|
`,
|
2023-09-22 12:54:14 +00:00
|
|
|
options: `
|
|
|
|
<template>
|
2023-02-28 08:29:30 +00:00
|
|
|
<div class="card flex flex-wrap gap-6">
|
|
|
|
<Timeline :value="events" class="w-full md:w-20rem">
|
|
|
|
<template #content="slotProps">
|
|
|
|
{{ slotProps.item.status }}
|
|
|
|
</template>
|
|
|
|
</Timeline>
|
|
|
|
|
|
|
|
<Timeline :value="events" align="right" class="w-full md:w-20rem">
|
|
|
|
<template #content="slotProps">
|
|
|
|
{{ slotProps.item.status }}
|
|
|
|
</template>
|
|
|
|
</Timeline>
|
|
|
|
|
|
|
|
<Timeline :value="events" align="alternate" class="w-full md:w-20rem">
|
|
|
|
<template #content="slotProps">
|
|
|
|
{{ slotProps.item.status }}
|
|
|
|
</template>
|
|
|
|
</Timeline>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
export default {
|
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
events: [
|
|
|
|
{ status: 'Ordered', date: '15/10/2020 10:30', icon: 'pi pi-shopping-cart', color: '#9C27B0'},
|
|
|
|
{ status: 'Processing', date: '15/10/2020 14:00', icon: 'pi pi-cog', color: '#673AB7' },
|
|
|
|
{ status: 'Shipped', date: '15/10/2020 16:15', icon: 'pi pi-shopping-cart', color: '#FF9800' },
|
|
|
|
{ status: 'Delivered', date: '16/10/2020 10:00', icon: 'pi pi-check', color: '#607D8B' }
|
|
|
|
]
|
|
|
|
};
|
|
|
|
}
|
|
|
|
};
|
2023-10-15 09:38:39 +00:00
|
|
|
<\/script>
|
|
|
|
`,
|
2023-09-22 12:54:14 +00:00
|
|
|
composition: `
|
|
|
|
<template>
|
2023-02-28 08:29:30 +00:00
|
|
|
<div class="card flex flex-wrap gap-6">
|
|
|
|
<Timeline :value="events" class="w-full md:w-20rem">
|
|
|
|
<template #content="slotProps">
|
|
|
|
{{ slotProps.item.status }}
|
|
|
|
</template>
|
|
|
|
</Timeline>
|
|
|
|
|
|
|
|
<Timeline :value="events" align="right" class="w-full md:w-20rem">
|
|
|
|
<template #content="slotProps">
|
|
|
|
{{ slotProps.item.status }}
|
|
|
|
</template>
|
|
|
|
</Timeline>
|
|
|
|
|
|
|
|
<Timeline :value="events" align="alternate" class="w-full md:w-20rem">
|
|
|
|
<template #content="slotProps">
|
|
|
|
{{ slotProps.item.status }}
|
|
|
|
</template>
|
|
|
|
</Timeline>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script setup>
|
|
|
|
import { ref } from "vue";
|
|
|
|
|
|
|
|
const events = ref([
|
|
|
|
{ status: 'Ordered', date: '15/10/2020 10:30', icon: 'pi pi-shopping-cart', color: '#9C27B0'},
|
|
|
|
{ status: 'Processing', date: '15/10/2020 14:00', icon: 'pi pi-cog', color: '#673AB7' },
|
|
|
|
{ status: 'Shipped', date: '15/10/2020 16:15', icon: 'pi pi-shopping-cart', color: '#FF9800' },
|
|
|
|
{ status: 'Delivered', date: '16/10/2020 10:00', icon: 'pi pi-check', color: '#607D8B' }
|
|
|
|
]);
|
|
|
|
|
2023-10-15 09:38:39 +00:00
|
|
|
<\/script>
|
|
|
|
`
|
2023-02-28 08:29:30 +00:00
|
|
|
}
|
|
|
|
};
|
|
|
|
}
|
|
|
|
};
|
|
|
|
</script>
|