feat(events): add events list

This commit is contained in:
thehrz 2023-07-21 17:12:34 +08:00
parent 6858e631c4
commit 2a8a0796d2
Signed by: thehrz
GPG Key ID: C84CBCE7D5F88855
2 changed files with 26 additions and 2 deletions

View File

@ -0,0 +1,7 @@
interface Event {
time: string
name: string
description: string
}
export { Event }

View File

@ -1,7 +1,24 @@
<script setup lang="ts"></script>
<script setup lang="ts">
import _events from '~/assets/jsons/events.json'
import type { Event } from '~/common/interfaces/Event'
const events = _events as Event[]
</script>
<template>
<h1>events</h1>
<h1>事件</h1>
<v-timeline side="end">
<v-timeline-item
v-for="event, i in events"
:key="i"
size="small"
>
<v-alert :value="true">
{{ event.description }}
</v-alert>
</v-timeline-item>
</v-timeline>
</template>
<style scoped></style>