Remove withDefaults from props definition

Simplified the props definition in AttachmentSingleThumbnailItem.vue by removing withDefaults, as no default values are needed.
Ryan Wang 2025-09-30 15:38:32 +08:00
parent f0cfd78e7f
commit 4ff058eac2
1 changed files with 4 additions and 7 deletions

View File

@ -1,13 +1,10 @@
<script lang="ts" setup> <script lang="ts" setup>
import { SIZE_MAP } from "../composables/use-thumbnail-detail"; import { SIZE_MAP } from "../composables/use-thumbnail-detail";
const { size, permalink } = withDefaults( const { size, permalink } = defineProps<{
defineProps<{ size: string;
size: string; permalink: string;
permalink: string; }>();
}>(),
{}
);
</script> </script>
<template> <template>
<li> <li>