This commit is contained in:
philipp lang 2024-07-02 17:44:28 +02:00
parent 69a3ed2a60
commit 0741984858
1 changed files with 8 additions and 1 deletions
resources/js/components/form

View File

@ -10,7 +10,14 @@
></div>
<div v-show="visible" class="absolute w-[max-content] z-30 max-h-[25rem] overflow-auto shadow-lg bg-gray-600 border border-gray-500 rounded-lg p-2 top-7 space-y-1">
<div v-for="(option, index) in parsedOptions" :key="index" class="flex items-center space-x-2">
<f-switch :id="`${id}-${index}`" size="sm" :model-value="modelValue.includes(option.id)" :value="option.id" @update:modelValue="trigger(option, $event)"></f-switch>
<f-switch
:id="`${id}-${index}`"
:name="`${id}-${index}`"
size="sm"
:model-value="modelValue.includes(option.id)"
:value="option.id"
@update:modelValue="trigger(option, $event)"
></f-switch>
<div class="text-sm text-gray-200" v-text="option.name"></div>
</div>
</div>