1
0
mirror of https://github.com/misskey-dev/misskey.git synced 2026-05-04 03:46:19 +02:00
This commit is contained in:
syuilo
2025-08-26 20:04:59 +09:00
parent ac7c60d102
commit b186c67767
7 changed files with 15 additions and 29 deletions

View File

@@ -293,7 +293,7 @@ function onDragleave() {
draghover.value = false;
}
function onDrop(ev: DragEvent) {
function onDrop(ev: DragEvent): void | boolean {
draghover.value = false;
if (!ev.dataTransfer) return;

View File

@@ -39,17 +39,10 @@ SPDX-License-Identifier: AGPL-3.0-only
export type Tab = {
key: string;
onClick?: (ev: MouseEvent) => void;
} & (
| {
iconOnly?: false;
title: string;
icon?: string;
}
| {
iconOnly: true;
icon: string;
}
);
iconOnly?: boolean;
title: string;
icon?: string;
};
</script>
<script lang="ts" setup>

View File

@@ -39,17 +39,10 @@ SPDX-License-Identifier: AGPL-3.0-only
export type Tab = {
key: string;
onClick?: (ev: MouseEvent) => void;
} & (
| {
iconOnly?: false;
title: string;
icon?: string;
}
| {
iconOnly: true;
icon: string;
}
);
iconOnly?: boolean;
title: string;
icon?: string;
};
</script>
<script lang="ts" setup>