mirror of https://github.com/halo-dev/halo
Remove withDefaults from props definition
Simplified the props definition in AttachmentSingleThumbnailItem.vue by removing withDefaults, as no default values are needed.
parent
f0cfd78e7f
commit
4ff058eac2
|
@ -1,13 +1,10 @@
|
|||
<script lang="ts" setup>
|
||||
import { SIZE_MAP } from "../composables/use-thumbnail-detail";
|
||||
|
||||
const { size, permalink } = withDefaults(
|
||||
defineProps<{
|
||||
size: string;
|
||||
permalink: string;
|
||||
}>(),
|
||||
{}
|
||||
);
|
||||
const { size, permalink } = defineProps<{
|
||||
size: string;
|
||||
permalink: string;
|
||||
}>();
|
||||
</script>
|
||||
<template>
|
||||
<li>
|
||||
|
|
Loading…
Reference in New Issue