Update MkImgWithBlurhash.vue
This commit is contained in:
parent
1f4eb88d45
commit
7569081040
1 changed files with 5 additions and 5 deletions
|
@ -13,10 +13,10 @@
|
||||||
:type="type"
|
:type="type"
|
||||||
:alt="alt"
|
:alt="alt"
|
||||||
:class="{
|
:class="{
|
||||||
cover,
|
cover,
|
||||||
wide: largestDimension === 'width',
|
wide: largestDimension === 'width',
|
||||||
tall: largestDimension === 'height'
|
tall: largestDimension === 'height'
|
||||||
}"
|
}"
|
||||||
:style="{ 'object-fit': cover ? 'cover' : null }"
|
:style="{ 'object-fit': cover ? 'cover' : null }"
|
||||||
loading="lazy"
|
loading="lazy"
|
||||||
@load="onLoad"
|
@load="onLoad"
|
||||||
|
@ -36,7 +36,7 @@ const props = withDefaults(
|
||||||
title?: string | null;
|
title?: string | null;
|
||||||
size?: number;
|
size?: number;
|
||||||
cover?: boolean;
|
cover?: boolean;
|
||||||
largestDimension?: 'width'|'height'
|
largestDimension?: "width" | "height";
|
||||||
}>(),
|
}>(),
|
||||||
{
|
{
|
||||||
src: null,
|
src: null,
|
||||||
|
|
Loading…
Reference in a new issue