From efaeca54771425c3b89a1bb8e2221454e60358ea Mon Sep 17 00:00:00 2001 From: Jonas Heinrich Date: Wed, 21 Oct 2020 11:26:41 +0200 Subject: [PATCH] change volume with slider --- src/components/Main.vue | 23 ++++++++++++++++++----- src/components/Navigation.vue | 9 ++++++++- src/components/Player.vue | 13 ++++++++++++- 3 files changed, 38 insertions(+), 7 deletions(-) diff --git a/src/components/Main.vue b/src/components/Main.vue index 9bc8c88..4134bcd 100644 --- a/src/components/Main.vue +++ b/src/components/Main.vue @@ -1,6 +1,7 @@ @@ -36,6 +38,11 @@ export default { AppNavigationItem, Player, }, + methods: { + changeVolume(volume) { + this.$emit('changeVolume', volume) + }, + }, } diff --git a/src/components/Player.vue b/src/components/Player.vue index fc89ff2..7137f90 100644 --- a/src/components/Player.vue +++ b/src/components/Player.vue @@ -3,11 +3,14 @@