Added placeholder data and switched to a loop to render cards
This commit is contained in:
@@ -1,18 +1,27 @@
|
|||||||
<script>
|
<script setup>
|
||||||
import activityCard from './activityCard.vue';
|
import activityCard from './activityCard.vue';
|
||||||
|
|
||||||
export default {
|
const history = [
|
||||||
components: {
|
{
|
||||||
activityCard,
|
EventName: 'Operation Whatever',
|
||||||
}
|
EventDate: Date.now(),
|
||||||
}
|
Type: 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
EventName: 'SPC -> CPL ',
|
||||||
|
EventDate: Date.now(),
|
||||||
|
Type: 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
EventName: 'Ranger Tab',
|
||||||
|
EventDate: Date.now(),
|
||||||
|
Type: 2
|
||||||
|
},
|
||||||
|
]
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<div class="flex flex-col w-full items-center">
|
<div class="flex flex-col w-full items-center">
|
||||||
<h1>This is activity history</h1>
|
<activityCard v-for="event in history" :Activity="event" />
|
||||||
<activityCard itle="hello" />
|
|
||||||
<activityCard />
|
|
||||||
<activityCard />
|
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
Reference in New Issue
Block a user