mirror of
https://github.com/BewlyBewly/BewlyBewly.git
synced 2025-04-14 13:15:29 +00:00
fix(picture): resolve alt property not working
This commit is contained in:
@@ -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
|
||||
>
|
||||
|
||||
Reference in New Issue
Block a user