From 5a9a0e0794b8f0a5cd0eac7caeb73e5daa504997 Mon Sep 17 00:00:00 2001 From: jdkfx Date: Thu, 27 Jun 2024 22:01:22 +0900 Subject: [PATCH 01/20] =?UTF-8?q?=E5=8F=B3=E3=82=AF=E3=83=AA=E3=83=83?= =?UTF-8?q?=E3=82=AF=E3=81=AB=E3=82=88=E3=82=8B=E3=82=B3=E3=83=B3=E3=83=86?= =?UTF-8?q?=E3=82=AD=E3=82=B9=E3=83=88=E3=83=A1=E3=83=8B=E3=83=A5=E3=83=BC?= =?UTF-8?q?=E8=A1=A8=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Dialog/DictionaryManageDialog.vue | 54 ++++++++++++++++++- 1 file changed, 53 insertions(+), 1 deletion(-) diff --git a/src/components/Dialog/DictionaryManageDialog.vue b/src/components/Dialog/DictionaryManageDialog.vue index 682a61c8fa..c1cf0fd8db 100644 --- a/src/components/Dialog/DictionaryManageDialog.vue +++ b/src/components/Dialog/DictionaryManageDialog.vue @@ -125,7 +125,13 @@ :disable="uiLocked" @blur="setSurface(surface)" @keydown.enter="yomiFocus" - /> + > + +
読み
@@ -142,6 +148,11 @@ +
アクセント調整
@@ -266,6 +277,8 @@ import { computed, ref, watch } from "vue"; import { QInput } from "quasar"; import AudioAccent from "@/components/Talk/AudioAccent.vue"; +import { MenuItemButton, MenuItemSeparator } from "@/components/Menu/type"; +import ContextMenu from "@/components/Menu/ContextMenu.vue"; import { useStore } from "@/store"; import type { FetchAudioResult } from "@/store/type"; import { AccentPhrase, UserDictWord } from "@/openapi"; @@ -666,6 +679,45 @@ const toWordEditingState = () => { const toDialogClosedState = () => { dictionaryManageDialogOpenedComputed.value = false; }; + +// テキスト編集エリアの右クリック +const contextMenu = ref>(); +const contextMenuHeader = ref(""); +const contextMenudata = ref< + [ + MenuItemButton, + MenuItemButton, + MenuItemButton, + MenuItemSeparator, + MenuItemButton, + ] +>([ + { + type: "button", + label: "切り取り", + onClick: async () => {}, + disableWhenUiLocked: true, + }, + { + type: "button", + label: "コピー", + onClick: () => {}, + disableWhenUiLocked: true, + }, + { + type: "button", + label: "貼り付け", + onClick: async () => {}, + disableWhenUiLocked: true, + }, + { type: "separator" }, + { + type: "button", + label: "全選択", + onClick: async () => {}, + disableWhenUiLocked: true, + }, +]);