-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MobileHeaderBarをHeaderBarと統合 #44
base: main
Are you sure you want to change the base?
Changes from 5 commits
3e3af23
a6be99f
aabef24
3723c66
2d9b3b0
9228080
80c1cb5
262dec2
287bfab
ba1b650
aa5b0b7
f4e47d6
847b820
b26fc50
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,6 @@ | ||
toolbarIcons.svg: | ||
saveVoice: save + volume_up | ||
playAll: filled:play_arrow + notes | ||
exportSelected: filled:save + volume_up | ||
exportConnectAll: filled:save + link | ||
exportAll: filled:save + notes | ||
importText: filled:upload + outlined:import_contacts |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
This file was deleted.
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. デフォルトスタイル選択とかってどこにいくことになりそうでしょう There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 設定画面ですかね? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. なるほどです。 |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,83 @@ | ||
<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> | ||
<q-separator vertical spaced inset color="background" /> | ||
</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> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ここ、コンテナとプレゼンター分けて、モバイル用のプレゼンター入れた方がいい気がしますね〜
リファクタリング箇所がわかってきた。