feat: Initial revision

This commit is contained in:
Adrian Rumpold
2022-01-24 10:17:39 +01:00
parent 534374ceb9
commit e47fc5f8c9
5 changed files with 132 additions and 66 deletions

View File

@@ -0,0 +1,34 @@
<template>
<div class="temperature-slider">
<input
type="range"
min="15"
max="80"
v-model="value"
@change="valueChanged"
/>
<span>{{ value }}&nbsp;°C</span>
</div>
</template>
<script>
export default {
props: {
initialValue: Number,
},
emits: ["value-changed"],
data() {
return {
value: this.initialValue,
};
},
methods: {
valueChanged() {
this.$emit("value-changed", this.value);
},
},
};
</script>
<style scoped>
</style>