2019-05-21 08:44:36 +09:00
|
|
|
<template>
|
2023-01-17 04:40:06 +09:00
|
|
|
<div class="defgtij">
|
|
|
|
<div v-for="user in users" :key="user.id" class="users">
|
|
|
|
<MkAvatar :user="user" class="avatar" :show-indicator="true"/>
|
2020-02-08 16:51:27 +09:00
|
|
|
</div>
|
2019-05-21 08:44:36 +09:00
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
2022-01-06 23:07:32 +09:00
|
|
|
<script lang="ts" setup>
|
|
|
|
import { onMounted, ref } from 'vue';
|
2021-11-12 02:02:25 +09:00
|
|
|
import * as os from '@/os';
|
2019-05-21 08:44:36 +09:00
|
|
|
|
2022-01-06 23:07:32 +09:00
|
|
|
const props = defineProps<{
|
|
|
|
userIds: string[];
|
|
|
|
}>();
|
|
|
|
|
|
|
|
const users = ref([]);
|
|
|
|
|
|
|
|
onMounted(async () => {
|
|
|
|
users.value = await os.api('users/show', {
|
|
|
|
userIds: props.userIds
|
|
|
|
});
|
2019-05-21 08:44:36 +09:00
|
|
|
});
|
|
|
|
</script>
|
2023-01-17 04:40:06 +09:00
|
|
|
|
|
|
|
<style lang="scss">
|
|
|
|
.defgtij {
|
|
|
|
padding: 12px;
|
|
|
|
|
|
|
|
> .users {
|
|
|
|
display: grid;
|
|
|
|
grid-template-columns: repeat(auto-fill, minmax(30px, 40px));
|
|
|
|
grid-gap: 12px;
|
|
|
|
place-content: center;
|
|
|
|
padding: 12px;
|
|
|
|
|
|
|
|
> .avatar {
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
aspect-ratio: 1;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</style>
|