Атрибут input range оказался строкой. TypeScript дай мне сил
This commit is contained in:
parent
aa5362712e
commit
2f9cf0307a
|
|
@ -55,14 +55,7 @@
|
||||||
/>
|
/>
|
||||||
<q-skeleton v-if="loaderPlay" class="player__tools m--skeleton" />
|
<q-skeleton v-if="loaderPlay" class="player__tools m--skeleton" />
|
||||||
<div v-else class="player__volume">
|
<div v-else class="player__volume">
|
||||||
<span
|
<span ref="volumeIcon" @click="toggleVolume" :class="volumeClass" />
|
||||||
@click="toggleVolume"
|
|
||||||
:class="
|
|
||||||
this.songVolume === 0
|
|
||||||
? 'player__volume-off'
|
|
||||||
: 'player__volume-on'
|
|
||||||
"
|
|
||||||
/>
|
|
||||||
<input
|
<input
|
||||||
type="range"
|
type="range"
|
||||||
min="0"
|
min="0"
|
||||||
|
|
@ -136,6 +129,9 @@ export default {
|
||||||
loaderPlay() {
|
loaderPlay() {
|
||||||
return this.$store.state.currentPlay.isLoader;
|
return this.$store.state.currentPlay.isLoader;
|
||||||
},
|
},
|
||||||
|
volumeClass() {
|
||||||
|
return this.songVolume == 0 ? 'player__volume-off' : 'player__volume-on';
|
||||||
|
},
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
currentPlay: {
|
currentPlay: {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue