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:
parent
e62a0c91ec
commit
4d25f17cc2
14 changed files with 278 additions and 14 deletions
web-frontend/modules/builder/components/elements/baseComponents
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue