Skip to content
Snippets Groups Projects
Commit ccd73783 authored by HJ's avatar HJ :fire:
Browse files

fix (roundness) ranges in theme tab

parent 8e711e05
No related branches found
No related tags found
2 merge requests!1711Update stable - 2.5.0 release,!1385Migration to Vue 3 (again)
......@@ -14,8 +14,8 @@
:id="name + '-o'"
class="opt"
type="checkbox"
:modelValue="present"
@input="$emit('update:modelValue', !present ? fallback : undefined)"
:checked="present"
@change="$emit('update:modelValue', !present ? fallback : undefined)"
>
<label
v-if="typeof fallback !== 'undefined'"
......@@ -26,7 +26,7 @@
:id="name"
class="input-number"
type="range"
:value="value || fallback"
:value="modelValue || fallback"
:disabled="!present || disabled"
:max="max || hardMax || 100"
:min="min || hardMin || 0"
......@@ -37,7 +37,7 @@
:id="name"
class="input-number"
type="number"
:value="value || fallback"
:value="modelValue || fallback"
:disabled="!present || disabled"
:max="hardMax"
:min="hardMin"
......@@ -50,11 +50,12 @@
<script>
export default {
props: [
'name', 'value', 'fallback', 'disabled', 'label', 'max', 'min', 'step', 'hardMin', 'hardMax'
'name', 'modelValue', 'fallback', 'disabled', 'label', 'max', 'min', 'step', 'hardMin', 'hardMax'
],
emits: ['update:modelValue'],
computed: {
present () {
return typeof this.value !== 'undefined'
return typeof this.modelValue !== 'undefined'
}
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment