1
0
Fork 0
mirror of https://gitlab.com/bramw/baserow.git synced 2025-05-07 18:20:55 +00:00

Resolve "Add an image collection field"

This commit is contained in:
Afonso Silva 2024-09-03 14:34:20 +00:00
parent e62a0c91ec
commit 4d25f17cc2
14 changed files with 278 additions and 14 deletions
web-frontend/modules/builder/components/elements/baseComponents

View file

@ -1,6 +1,11 @@
<template>
<div class="ab-image">
<img class="ab-image__img" :alt="alt" :src="src" />
<img
class="ab-image__img"
:alt="alt"
:src="src"
:loading="lazy ? 'lazy' : null"
/>
</div>
</template>
@ -28,6 +33,14 @@ export default {
required: false,
default: '',
},
/**
* @type {Boolean} - Whether the image should be loaded lazily.
*/
lazy: {
type: Boolean,
required: false,
default: true,
},
},
}
</script>