In my AudioPlayer component, I have a v-slider
I cannot get the value after cha,ging the slide position ;-)
<v-slider @change="setPosition()" :value="trackProgress" :v-model="percentage" thumb-label></v-slider>
data() {
return {
percentage: 0
};
},
computed: {
trackProgress: function() {
return this.progress * 100;
}
},
methods: {
setPosition() {
console.log("SET POSITION: ", this.percentage); // always 0 !!!
// this.setProgress(this.percentage / 100);
// this.togglePlayback();
}
},
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…