Files
NSG_PORTAL_V2/components/article/Event.vue
T

14 lines
572 B
Vue
Raw Normal View History

2024-06-03 12:27:22 +07:00
<script setup lang="ts">
const props = defineProps<{ events: any[] }>()
</script>
<template>
<div v-if="events?.length" class="mt-6">
<h3 class="text-xl font-semibold after:content-[':']">Sự kiện</h3>
<ul class="flex flex-col gap-2 list-disc ml-4 my-2 pl-3 flex-wrap">
2024-07-03 15:33:51 +07:00
<li v-for="(event, index) in events" :key="index" class="font-semibold text-primary">
2024-06-03 12:27:22 +07:00
<nuxt-link :to="{ name: 'event-eventSlug', params: { eventSlug: event.code } }">{{ event.title }}</nuxt-link>
</li>
</ul>
</div>
</template>