1
0
Fork 1
mirror of https://github.com/elk-zone/elk.git synced 2024-11-09 18:39:58 +00:00
elk/components/common/CommonBlurhash.vue

17 lines
388 B
Vue
Raw Normal View History

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