♻️ Refactor post list

This commit is contained in:
2024-08-17 00:43:08 +08:00
parent 4a51a85d9c
commit 2b9601640b
11 changed files with 136 additions and 29 deletions

View File

@@ -27,7 +27,7 @@
</article>
<v-card v-if="post.body?.attachments?.length > 0" class="mb-5">
<attachment-carousel :attachments="post.body?.attachments" />
<attachment-carousel :no-clickable-attachment="props.noClickableAttachment" :attachments="post.body?.attachments" />
</v-card>
<div class="text-sm flex flex-col">
@@ -53,6 +53,6 @@
</template>
<script setup lang="ts">
const props = defineProps<{ post: any, forceShowContent?: boolean }>()
const props = defineProps<{ post: any, forceShowContent?: boolean, noClickableAttachment?: boolean }>()
const config = useRuntimeConfig()
</script>