2019-05-21 08:44:36 +09:00
|
|
|
<template>
|
|
|
|
<div>
|
2022-01-06 23:07:32 +09:00
|
|
|
<div v-for="user in users" :key="user.id" style="display:inline-block;width:32px;height:32px;margin-right:8px;">
|
2023-05-19 13:58:09 +09:00
|
|
|
<MkAvatar :user="user" style="width:32px; height:32px;" indicator link preview/>
|
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', {
|
2022-12-22 16:01:59 +09:00
|
|
|
userIds: props.userIds,
|
2022-01-06 23:07:32 +09:00
|
|
|
});
|
2019-05-21 08:44:36 +09:00
|
|
|
});
|
|
|
|
</script>
|