Skip to content

Commit

Permalink
Fix tooltip activator
Browse files Browse the repository at this point in the history
  • Loading branch information
ysakasin committed Jul 17, 2020
1 parent 4e72281 commit 5c02eee
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 15 deletions.
28 changes: 16 additions & 12 deletions src/AppBar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -17,22 +17,26 @@
placeholder="ロード中……"
/>
<v-tooltip bottom>
<v-btn
slot="activator"
@click.stop="playSound = !playSound"
class="hidden-xs-only"
icon
>
<v-icon v-if="playSound">volume_up</v-icon>
<v-icon v-else>volume_off</v-icon>
</v-btn>
<template v-slot:activator="{ on }">
<v-btn
v-on="on"
@click.stop="playSound = !playSound"
class="hidden-xs-only"
icon
>
<v-icon v-if="playSound">volume_up</v-icon>
<v-icon v-else>volume_off</v-icon>
</v-btn>
</template>
<span v-if="playSound">現在 : ON</span>
<span v-else>現在 : OFF</span>
</v-tooltip>
<v-tooltip bottom>
<v-btn slot="activator" @click.stop="settings = true" icon>
<v-icon>settings</v-icon>
</v-btn>
<template v-slot:activator="{ on }">
<v-btn v-on="on" @click.stop="settings = true" icon>
<v-icon>settings</v-icon>
</v-btn>
</template>
<span>設定</span>
</v-tooltip>
</v-toolbar>
Expand Down
8 changes: 5 additions & 3 deletions src/Tool.vue
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,11 @@
>{{ command }}</v-btn
>
<v-tooltip bottom>
<v-btn slot="activator" @click.stop="edit = true" icon>
<v-icon>add</v-icon>
</v-btn>
<template v-slot:activator="{ on }">
<v-btn v-on="on" @click.stop="edit = true" icon>
<v-icon>add</v-icon>
</v-btn>
</template>
<span>ショートカット追加</span>
</v-tooltip>
<ShortcutDialog v-model="edit" />
Expand Down

0 comments on commit 5c02eee

Please sign in to comment.