generated from Seekra/repository-template
refactor(settings): rename variable
Renamed the variable 'inputClass' to 'inputType' because this name is more accurate
This commit is contained in:
@@ -40,7 +40,7 @@ inputModel.value = store.get(props.path);
|
|||||||
const inputId = useId();
|
const inputId = useId();
|
||||||
const inputLabelId = useId();
|
const inputLabelId = useId();
|
||||||
|
|
||||||
const inputClass = computed(() => ({
|
const inputType = computed(() => ({
|
||||||
number: 'number',
|
number: 'number',
|
||||||
string: 'text'
|
string: 'text'
|
||||||
}[props.setting.type]
|
}[props.setting.type]
|
||||||
@@ -66,7 +66,7 @@ const apply = function apply () {
|
|||||||
:class="{ 'done-button-shown': hasChanged }"
|
:class="{ 'done-button-shown': hasChanged }"
|
||||||
>
|
>
|
||||||
<input
|
<input
|
||||||
:type="inputClass"
|
:type="inputType"
|
||||||
:id="inputId"
|
:id="inputId"
|
||||||
:aria-labelledby="inputLabelId"
|
:aria-labelledby="inputLabelId"
|
||||||
v-model="inputModel"
|
v-model="inputModel"
|
||||||
|
|||||||
Reference in New Issue
Block a user