mirror of
https://github.com/Megghy/vtsuru.live.git
synced 2025-12-07 02:46:55 +08:00
25 lines
678 B
Vue
25 lines
678 B
Vue
<script setup lang="ts">
|
|
import { QAInfo } from '@/api/api-models'
|
|
import { NCard, NDivider, NFlex, NImage, NList, NListItem, NTag, NText, NTime, NTooltip } from 'naive-ui'
|
|
import QuestionItem from './QuestionItem.vue'
|
|
|
|
const props = defineProps<{
|
|
questions: QAInfo[]
|
|
}>()
|
|
</script>
|
|
|
|
<template>
|
|
<NList bordered>
|
|
<NListItem v-for="item in questions" :key="item?.id">
|
|
<QuestionItem :item="item">
|
|
<template #footer>
|
|
<slot name="footer" :item="item"></slot>
|
|
</template>
|
|
<template #header-extra>
|
|
<slot name="header-extra" :item="item"></slot>
|
|
</template>
|
|
</QuestionItem>
|
|
</NListItem>
|
|
</NList>
|
|
</template>
|