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';
|
||||
|
||||
export default {
|
||||
components: {
|
||||
activityCard,
|
||||
}
|
||||
}
|
||||
const history = [
|
||||
{
|
||||
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>
|
||||
|
||||
<template>
|
||||
<div class="flex flex-col w-full items-center">
|
||||
<h1>This is activity history</h1>
|
||||
<activityCard itle="hello" />
|
||||
<activityCard />
|
||||
<activityCard />
|
||||
<activityCard v-for="event in history" :Activity="event" />
|
||||
</div>
|
||||
</template>
|
||||
Reference in New Issue
Block a user