2020-02-05 05:57:22 +00:00
|
|
|
<template>
|
2020-10-18 18:02:22 +00:00
|
|
|
<div class="flex overflow-hidden">
|
|
|
|
<span
|
|
|
|
v-for="(user, index) in users"
|
|
|
|
:key="user.id"
|
|
|
|
:class="
|
|
|
|
`${
|
|
|
|
index ? '-ml-4' : ''
|
|
|
|
} inline-block rounded-full text-white shadow-solid`
|
|
|
|
"
|
|
|
|
>
|
|
|
|
<thumbnail
|
|
|
|
size="40px"
|
2020-02-05 05:57:22 +00:00
|
|
|
:username="user.name"
|
|
|
|
:src="user.avatar"
|
|
|
|
has-border
|
|
|
|
/>
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
import Thumbnail from 'dashboard/components/widgets/Thumbnail.vue';
|
|
|
|
|
|
|
|
export default {
|
|
|
|
name: 'GroupedAvatars',
|
|
|
|
components: { Thumbnail },
|
|
|
|
props: {
|
|
|
|
users: {
|
|
|
|
type: Array,
|
|
|
|
default: () => [],
|
|
|
|
},
|
|
|
|
},
|
|
|
|
};
|
|
|
|
</script>
|