1
0
mirror of https://github.com/misskey-dev/misskey.git synced 2026-05-01 22:06:02 +02:00
This commit is contained in:
syuilo
2025-08-28 11:15:17 +09:00
parent 25c2007f59
commit 3e24419981
8 changed files with 21 additions and 19 deletions

View File

@@ -152,11 +152,12 @@ import { getDriveFileMenu } from '@/utility/get-drive-file-menu.js';
import { Paginator } from '@/utility/paginator.js';
const props = withDefaults(defineProps<{
initialFolder?: Misskey.entities.DriveFolder['id'] | null;
initialFolder?: Misskey.entities.DriveFolder | Misskey.entities.DriveFolder['id'] | null;
type?: string;
multiple?: boolean;
select?: 'file' | 'folder' | null;
}>(), {
initialFolder: null,
multiple: false,
select: null,
});

View File

@@ -34,9 +34,10 @@ import { deviceKind } from '@/utility/device-kind.js';
import { prefer } from '@/preferences.js';
const props = withDefaults(defineProps<{
anchorElement?: HTMLElement;
anchorElement?: HTMLElement | null;
anchor?: { x: string; y: string; };
}>(), {
anchorElement: null,
anchor: () => ({ x: 'right', y: 'center' }),
});

View File

@@ -8,7 +8,7 @@ SPDX-License-Identifier: AGPL-3.0-only
<MkLoading/>
</div>
<div v-else-if="resolved">
<slot :result="result"></slot>
<slot :result="result as T"></slot>
</div>
<div v-else>
<div :class="$style.error">