1
0
elk/components/common/CommonBlurhash.vue

17 lines
388 B
Vue
Raw Normal View History

<script setup lang="ts">
defineOptions({
inheritAttrs: false,
})
2023-04-27 05:46:00 +09:00
const { blurhash = '', src, srcset, shouldLoadImage = true } = defineProps<{
blurhash?: string
src: string
srcset?: string
2023-02-15 19:34:23 +09:00
shouldLoadImage?: boolean
}>()
</script>
<template>
2023-04-27 05:46:00 +09:00
<UnLazyImage v-bind="$attrs" :blurhash="blurhash" :src="src" :src-set="srcset" :lazy-load="shouldLoadImage" auto-sizes />
</template>