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>
41 lines
826 B
Vue
41 lines
826 B
Vue
<template>
|
|
<div class="card-file__list-wrapper">
|
|
<ul class="card-file__list">
|
|
<li class="card-file__item">
|
|
<template v-if="value">
|
|
<img
|
|
v-if="value.is_image"
|
|
class="card-file__image"
|
|
:src="value.thumbnails?.tiny?.url"
|
|
/>
|
|
<i
|
|
v-else
|
|
class="card-file__icon"
|
|
:class="getIconClass(value.mime_type)"
|
|
></i>
|
|
</template>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
</template>
|
|
|
|
<script>
|
|
import { mimetype2icon } from '@baserow/modules/core/utils/fileTypeToIcon'
|
|
|
|
export default {
|
|
height: 22,
|
|
name: 'RowCardFieldSingleFile',
|
|
props: {
|
|
value: {
|
|
type: Object,
|
|
default: null,
|
|
},
|
|
},
|
|
methods: {
|
|
getIconClass(mimeType) {
|
|
return mimetype2icon(mimeType)
|
|
},
|
|
},
|
|
}
|
|
</script>
|