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>
68 lines
1.3 KiB
Vue
68 lines
1.3 KiB
Vue
<template>
|
|
<div class="ab-presentation" @click="$emit('click', $event)">
|
|
<div v-if="image || icon || initials" class="ab-presentation__avatar">
|
|
<ABAvatar
|
|
:icon="icon"
|
|
:image="image"
|
|
:initials="initials"
|
|
size="x-large"
|
|
v-bind="$attrs"
|
|
/>
|
|
</div>
|
|
<div class="ab-presentation__content">
|
|
<div class="ab-presentation__title">{{ title }}</div>
|
|
<div v-if="subtitle" class="ab-presentation__subtitle">
|
|
{{ subtitle }}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
name: 'ABPresentation',
|
|
props: {
|
|
initials: {
|
|
type: String,
|
|
required: false,
|
|
default: '',
|
|
},
|
|
icon: {
|
|
type: String,
|
|
required: false,
|
|
default: '',
|
|
},
|
|
iconSize: {
|
|
type: String,
|
|
required: false,
|
|
default: 'large',
|
|
},
|
|
roundedIcon: {
|
|
type: Boolean,
|
|
required: false,
|
|
default: true,
|
|
},
|
|
image: {
|
|
type: String,
|
|
required: false,
|
|
default: null,
|
|
},
|
|
avatarColor: {
|
|
type: String,
|
|
required: false,
|
|
default: 'blue',
|
|
},
|
|
title: {
|
|
type: String,
|
|
default: '',
|
|
},
|
|
subtitle: {
|
|
type: String,
|
|
required: false,
|
|
default: '',
|
|
},
|
|
},
|
|
emits: ['click'],
|
|
}
|
|
</script>
|