added custom content

This commit is contained in:
Mamalizz
2025-02-18 23:40:06 +03:30
parent 2d268801ed
commit abde29cfe3
+4 -2
View File
@@ -6,7 +6,7 @@ type Props = {
disabled?: boolean;
modelValue: string;
error?: boolean;
options: string[];
options?: string[];
placeholder?: string;
triggerRootClass?: string;
};
@@ -71,7 +71,9 @@ const classes = computed(() => {
:side-offset="5"
>
<SelectViewport class="p-[5px]">
<SelectGroup>
<slot v-if="!!$slots.content" name="content" />
<SelectGroup v-else>
<SelectItem
v-for="(option, index) in options"
:key="index"