mirror of
https://github.com/baserow/baserow.git
synced 2026-12-04 08:18:42 +00:00
Update the nuxt3 version. Co-authored-by: Jonathan Adeline <jonathan@baserow.io> Co-authored-by: Bram Wiepjes <bramw@protonmail.com> Co-authored-by: Cezary <cezary@baserow.io> Co-authored-by: Tsering Paljor <tsering@baserow.io> Co-authored-by: Przemyslaw Kukulski <przemyslaw+gh@baserow.io> Co-authored-by: Bram <bram2w@users.noreply.github.com>
27 lines
500 B
Vue
27 lines
500 B
Vue
<template>
|
|
<div class="thumbnail">
|
|
<img v-bind="$attrs" class="thumbnail__image" :src="src" />
|
|
<a v-if="removable" class="thumbnail__remove" @click="$emit('remove')">
|
|
<i class="iconoir-cancel"></i>
|
|
{{ $t('action.remove') }}
|
|
</a>
|
|
</div>
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
name: 'Thumbnail',
|
|
props: {
|
|
src: {
|
|
type: String,
|
|
required: true,
|
|
},
|
|
removable: {
|
|
type: Boolean,
|
|
default: false,
|
|
},
|
|
},
|
|
emits: ['remove'],
|
|
}
|
|
</script>
|