fix(picture): resolve alt property not working

This commit is contained in:
Hakadao
2024-10-05 01:14:02 +08:00
parent 115999652a
commit c90f2a8e5d

View File

@@ -2,7 +2,7 @@
defineProps<{
src: string
loading: 'lazy' | 'eager'
alt: string
alt?: string
}>()
</script>
@@ -13,6 +13,7 @@ defineProps<{
<img
:src="src"
:loading="loading"
:alt="alt"
block w-full h-full object="[inherit]" aspect-inherit
rounded-inherit
>