mirror of
https://github.com/hay-kot/mealie.git
synced 2025-08-21 22:13:31 -07:00
fix: Auto Form Select (#5919)
Co-authored-by: Kuchenpirat <24235032+Kuchenpirat@users.noreply.github.com>
This commit is contained in:
parent
ad60b4445b
commit
9b2b8091ac
1 changed files with 11 additions and 9 deletions
|
@ -37,15 +37,16 @@
|
|||
:name="inputField.varName"
|
||||
:disabled="(inputField.disableUpdate && updateMode) || (!updateMode && inputField.disableCreate) || (disabledFields && disabledFields.includes(inputField.varName))"
|
||||
:hint="inputField.hint"
|
||||
hide-details="auto"
|
||||
:hide-details="!inputField.hint"
|
||||
:persistent-hint="!!inputField.hint"
|
||||
density="comfortable"
|
||||
@change="emitBlur">
|
||||
<template #label>
|
||||
<span class="ml-4">
|
||||
{{ inputField.label }}
|
||||
</span>
|
||||
</template>
|
||||
</v-checkbox>
|
||||
</template>
|
||||
</v-checkbox>
|
||||
|
||||
<!-- Text Field -->
|
||||
<v-text-field
|
||||
|
@ -97,8 +98,8 @@
|
|||
:label="inputField.label"
|
||||
:name="inputField.varName"
|
||||
:items="inputField.options"
|
||||
:item-title="inputField.itemText"
|
||||
:item-value="inputField.itemValue"
|
||||
item-title="text"
|
||||
item-value="text"
|
||||
:return-object="false"
|
||||
:hint="inputField.hint"
|
||||
density="comfortable"
|
||||
|
@ -107,10 +108,11 @@
|
|||
@blur="emitBlur"
|
||||
>
|
||||
<template #item="{ item }">
|
||||
<div>
|
||||
<v-list-item-title>{{ item.raw.text }}</v-list-item-title>
|
||||
<v-list-item-subtitle>{{ item.raw.description }}</v-list-item-subtitle>
|
||||
</div>
|
||||
<v-list-item
|
||||
v-bind="props"
|
||||
:title="item.raw.text"
|
||||
:subtitle="item.raw.description"
|
||||
/>
|
||||
</template>
|
||||
</v-select>
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue