Slider and text input changes (#65)

This commit is contained in:
Adrian O.V
2023-06-10 12:18:15 -04:00
committed by GitHub
parent 01304e807a
commit cea5a18a7a
4 changed files with 42 additions and 10 deletions

View File

@@ -22,12 +22,8 @@
@input="onInput($refs.input.value)"
/>
<div class="slider-range">
<span>
{{ min }}
</span>
<span>
{{ max }}
</span>
<span> {{ min }} {{ unit }} </span>
<span> {{ max }} {{ unit }} </span>
</div>
</div>
</div>
@@ -72,6 +68,10 @@ const props = defineProps({
type: Boolean,
default: false,
},
unit: {
type: String,
default: '',
},
})
let currentValue = ref(Math.max(props.min, props.modelValue).toString())
@@ -178,6 +178,7 @@ const onInput = (value) => {
}
.disabled {
filter: brightness(0.8);
opacity: 0.5;
cursor: not-allowed;
}
</style>