forked from VOICEVOX/voicevox
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3e3af23
commit a6be99f
Showing
2 changed files
with
113 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,82 @@ | ||
<template> | ||
<q-btn flat round dense> | ||
<q-icon name="menu" /> | ||
<q-menu transition-show="none" transition-hide="none"> | ||
<q-list dense> | ||
<menu-item | ||
v-for="(item, index) in menudata" | ||
:key="item.label" | ||
v-model:selected="subMenuOpenFlags[index]" | ||
:menudata="item" | ||
/> | ||
</q-list> | ||
</q-menu> | ||
</q-btn> | ||
</template> | ||
|
||
<script setup lang="ts"> | ||
import { ref } from "vue"; | ||
import { MenuItemData } from "./MenuBar.vue"; | ||
import MenuItem from "./MenuItem.vue"; | ||
const menudata = ref<MenuItemData[]>([ | ||
{ | ||
type: "button", | ||
label: "選択している音声を書き出し", | ||
onClick: () => { | ||
alert("TODO"); | ||
}, | ||
disableWhenUiLocked: true, | ||
}, | ||
{ | ||
type: "button", | ||
label: "すべての音声を書き出し", | ||
onClick: () => { | ||
alert("TODO"); | ||
}, | ||
disableWhenUiLocked: true, | ||
}, | ||
{ | ||
type: "button", | ||
label: "すべての音声を繋げて書き出し", | ||
onClick: () => { | ||
alert("TODO"); | ||
}, | ||
disableWhenUiLocked: true, | ||
}, | ||
{ | ||
type: "separator", | ||
}, | ||
{ | ||
type: "button", | ||
label: "テキストを繋げて書き出し", | ||
onClick: () => { | ||
alert("TODO"); | ||
}, | ||
disableWhenUiLocked: true, | ||
}, | ||
{ | ||
type: "button", | ||
label: "テキスト読み込み", | ||
onClick: () => { | ||
alert("TODO"); | ||
}, | ||
disableWhenUiLocked: true, | ||
}, | ||
{ | ||
type: "separator", | ||
}, | ||
{ | ||
type: "button", | ||
label: "メニューに戻る", | ||
onClick: () => { | ||
alert("TODO"); | ||
}, | ||
disableWhenUiLocked: true, | ||
}, | ||
]); | ||
const subMenuOpenFlags = ref<boolean[]>( | ||
[...Array(menudata.value.length)].map(() => false) | ||
); | ||
</script> |