From 7d56db2f54717d86ab567dbd7f1d5a723fc411b9 Mon Sep 17 00:00:00 2001 From: kakkokari-gtyih <67428053+kakkokari-gtyih@users.noreply.github.com> Date: Tue, 9 Jul 2024 22:33:54 +0900 Subject: [PATCH] =?UTF-8?q?enter=E3=81=A7=E5=AD=90=E3=83=A1=E3=83=8B?= =?UTF-8?q?=E3=83=A5=E3=83=BC=E3=82=92=E9=96=8B=E3=81=91=E3=82=8B=E3=82=88?= =?UTF-8?q?=E3=81=86=E3=81=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/frontend/src/components/MkMenu.vue | 89 ++++++++++++++++++--- 1 file changed, 79 insertions(+), 10 deletions(-) diff --git a/packages/frontend/src/components/MkMenu.vue b/packages/frontend/src/components/MkMenu.vue index 7338fd6eda..093f1a43e0 100644 --- a/packages/frontend/src/components/MkMenu.vue +++ b/packages/frontend/src/components/MkMenu.vue @@ -30,7 +30,16 @@ SPDX-License-Identifier: AGPL-3.0-only - + @@ -38,20 +47,48 @@ SPDX-License-Identifier: AGPL-3.0-only - + {{ item.text }} - + - + @@ -59,14 +96,31 @@ SPDX-License-Identifier: AGPL-3.0-only - + {{ item.text }} - + @@ -74,14 +128,29 @@ SPDX-License-Identifier: AGPL-3.0-only {{ item.text }} - + {{ item.text }} - + @@ -202,7 +271,7 @@ function onItemMouseLeave() { if (childCloseTimer) window.clearTimeout(childCloseTimer); } -async function showRadioOptions(item: MenuRadio, ev: MouseEvent) { +async function showRadioOptions(item: MenuRadio, ev: Event) { const children: MenuItem[] = Object.keys(item.options).map(key => { const value = item.options[key]; return { @@ -227,7 +296,7 @@ async function showRadioOptions(item: MenuRadio, ev: MouseEvent) { } } -async function showChildren(item: MenuParent, ev: MouseEvent) { +async function showChildren(item: MenuParent, ev: Event) { const children: MenuItem[] = await (async () => { if (childrenCache.has(item)) { return childrenCache.get(item)!;