Атрибут input range оказался строкой. TypeScript дай мне сил

This commit is contained in:
Norbaev 2024-06-28 18:10:55 +05:00
parent aa5362712e
commit 2f9cf0307a
1 changed files with 4 additions and 8 deletions

View File

@ -55,14 +55,7 @@
/>
<q-skeleton v-if="loaderPlay" class="player__tools m--skeleton" />
<div v-else class="player__volume">
<span
@click="toggleVolume"
:class="
this.songVolume === 0
? 'player__volume-off'
: 'player__volume-on'
"
/>
<span ref="volumeIcon" @click="toggleVolume" :class="volumeClass" />
<input
type="range"
min="0"
@ -136,6 +129,9 @@ export default {
loaderPlay() {
return this.$store.state.currentPlay.isLoader;
},
volumeClass() {
return this.songVolume == 0 ? 'player__volume-off' : 'player__volume-on';
},
},
watch: {
currentPlay: {