added custom content
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user