mirror of
https://github.com/misskey-dev/misskey.git
synced 2026-05-29 23:25:01 +02:00
fix(frontend): Paginatorの型エラー解消 (#16230)
* fix(frontend): fix paginator type error * fix * refactor * fix * fix * fix(paginator): remove readonly type * fix * typo * fix: R -> E * remove any --------- Co-authored-by: syuilo <4439005+syuilo@users.noreply.github.com>
This commit is contained in:
@@ -28,7 +28,7 @@ SPDX-License-Identifier: AGPL-3.0-only
|
||||
|
||||
<template #default="{ items }">
|
||||
<div class="_gaps_s">
|
||||
<div v-for="item in items" :key="item.user.id" :class="[$style.userItem, { [$style.userItemOpend]: expandedItems.includes(item.id) }]">
|
||||
<div v-for="item in items" :key="item.user.id" :class="[$style.userItem, { [$style.userItemOpened]: expandedItems.includes(item.id) }]">
|
||||
<div :class="$style.userItemMain">
|
||||
<MkA :class="$style.userItemMainBody" :to="`/admin/user/${item.user.id}`">
|
||||
<MkUserCardMini :user="item.user"/>
|
||||
@@ -76,12 +76,12 @@ const props = defineProps<{
|
||||
|
||||
const usersPaginator = markRaw(new Paginator('admin/roles/users', {
|
||||
limit: 20,
|
||||
computedParams: computed(() => ({
|
||||
computedParams: computed(() => props.id ? ({
|
||||
roleId: props.id,
|
||||
})),
|
||||
}) : undefined),
|
||||
}));
|
||||
|
||||
const expandedItems = ref([]);
|
||||
const expandedItems = ref<string[]>([]);
|
||||
|
||||
const role = reactive(await misskeyApi('admin/roles/show', {
|
||||
roleId: props.id,
|
||||
@@ -199,7 +199,7 @@ definePage(() => ({
|
||||
transition: transform 0.1s ease-out;
|
||||
}
|
||||
|
||||
.userItem.userItemOpend {
|
||||
.userItem.userItemOpened {
|
||||
.chevron {
|
||||
transform: rotateX(180deg);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user