Changeset 35426 for main/trunk/model-interfaces-dev/atea/korero-maori-asr/src/components/AudioTimeBar.vue
- Timestamp:
- 2021-09-20T10:06:23+12:00 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/model-interfaces-dev/atea/korero-maori-asr/src/components/AudioTimeBar.vue
r35413 r35426 1 1 <template> 2 2 <div class="root"> 3 <input type="range" class="slider-continuous" v-model ="sliderValue" :max="audioLength" step="0.01" />4 <span>{{ s liderValue }}</span>3 <input type="range" class="slider-continuous" v-model.number="sliderValue" :max="audioLength" step="0.01" /> 4 <span>{{ stringSliderValue }}</span> 5 5 </div> 6 6 </template> … … 32 32 sliderValue: { 33 33 get() { 34 if (this.m yValue < 0) {34 if (this.modelValue < 0) { 35 35 return 0; 36 36 } 37 37 38 if (this.m yValue > this.audioLength) {38 if (this.modelValue > this.audioLength) { 39 39 return this.audioLength; 40 40 } 41 41 42 return this.m yValue;42 return this.modelValue; 43 43 }, 44 44 set(newValue) { 45 // this.myValue = newValue; 45 46 this.$emit("update:modelValue", newValue); 46 this.myValue = newValue;47 47 } 48 48 }, 49 49 stringSliderValue() { 50 return Util.formatSecondsTimeString(this.sliderValue );50 return Util.formatSecondsTimeString(this.sliderValue, false, 2); 51 51 } 52 52 }
Note:
See TracChangeset
for help on using the changeset viewer.