1
0
mirror of https://gitlab.com/bramw/baserow.git synced 2024-11-21 23:37:55 +00:00
bramw_baserow/web-frontend/modules/core/components/Thumbnail.vue
Jonathan Adeline 4321aaea9a Replace icons
2023-09-28 13:39:41 +00:00

26 lines
479 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,
},
},
}
</script>