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>
|
<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>
|
||||||
|
|
Loading…
Reference in New Issue