mirror of
https://activitypub.software/TransFem-org/Sharkey.git
synced 2024-11-15 20:06:54 +01:00
f4d1fcaf67
* feat: ユーザーをcontextmenuからアンテナに追加できるように close #11115 * MkAvatars.vue変更 * nanka iroiro * fix MkAvatars * ix * fix --------- Co-authored-by: tamaina <tamaina@hotmail.co.jp>
29 lines
762 B
Vue
29 lines
762 B
Vue
<template>
|
|
<div>
|
|
<div v-for="user in users.slice(0, limit)" :key="user.id" style="display:inline-block;width:32px;height:32px;margin-right:8px;">
|
|
<MkAvatar :user="user" style="width:32px; height:32px;" indicator link preview/>
|
|
</div>
|
|
<div v-if="users.length > limit" style="display: inline-block;">...</div>
|
|
</div>
|
|
</template>
|
|
|
|
<script lang="ts" setup>
|
|
import { onMounted, ref } from 'vue';
|
|
import * as os from '@/os';
|
|
import { UserLite } from 'misskey-js/built/entities';
|
|
|
|
const props = withDefaults(defineProps<{
|
|
userIds: string[];
|
|
limit?: number;
|
|
}>(), {
|
|
limit: Infinity,
|
|
});
|
|
|
|
const users = ref<UserLite[]>([]);
|
|
|
|
onMounted(async () => {
|
|
users.value = await os.api('users/show', {
|
|
userIds: props.userIds,
|
|
}) as unknown as UserLite[];
|
|
});
|
|
</script>
|