added link active and changed the logo
This commit is contained in:
@@ -45,9 +45,7 @@ const classes = computed(() => {
|
|||||||
"input-solid": variant.value === "solid",
|
"input-solid": variant.value === "solid",
|
||||||
"input-outlined": variant.value === "outlined",
|
"input-outlined": variant.value === "outlined",
|
||||||
"input-effects": !error.value,
|
"input-effects": !error.value,
|
||||||
[variant.value === "solid"
|
[variant.value === "solid" ? "input-solid-error" : "input-outlined-error"]: error.value,
|
||||||
? "input-solid-error"
|
|
||||||
: "input-outlined-error"]: error.value,
|
|
||||||
},
|
},
|
||||||
triggerRootClass.value,
|
triggerRootClass.value,
|
||||||
];
|
];
|
||||||
@@ -61,14 +59,17 @@ const classes = computed(() => {
|
|||||||
:disabled="disabled || loading"
|
:disabled="disabled || loading"
|
||||||
>
|
>
|
||||||
<SelectTrigger :class="classes">
|
<SelectTrigger :class="classes">
|
||||||
<slot v-if="!!$slots.trigger" name="trigger" />
|
<slot
|
||||||
|
v-if="!!$slots.trigger"
|
||||||
|
name="trigger"
|
||||||
|
/>
|
||||||
|
|
||||||
<SelectValue
|
<SelectValue
|
||||||
v-else
|
v-else
|
||||||
:placeholder="placeholder"
|
:placeholder="placeholder"
|
||||||
v-bind="$attrs"
|
v-bind="$attrs"
|
||||||
:class="selectedValue ? '!text-black' : 'text-slate-400'"
|
:class="selectedValue ? '!text-black' : 'text-slate-400 font-normal'"
|
||||||
class="font-iran-yekan-x text-xs lg:text-sm text-start placeholder-slate-400"
|
class="font-iran-yekan-x text-xs lg:text-sm text-start placeholder-slate-400 placeholder:text-xs lg:placeholder:text-sm"
|
||||||
/>
|
/>
|
||||||
<Icon
|
<Icon
|
||||||
:name="loading ? 'svg-spinners:3-dots-fade' : 'bi:chevron-down'"
|
:name="loading ? 'svg-spinners:3-dots-fade' : 'bi:chevron-down'"
|
||||||
@@ -83,7 +84,10 @@ const classes = computed(() => {
|
|||||||
:side-offset="5"
|
:side-offset="5"
|
||||||
>
|
>
|
||||||
<SelectViewport class="p-[5px]">
|
<SelectViewport class="p-[5px]">
|
||||||
<slot v-if="!!$slots.content" name="content" />
|
<slot
|
||||||
|
v-if="!!$slots.content"
|
||||||
|
name="content"
|
||||||
|
/>
|
||||||
|
|
||||||
<SelectGroup v-else>
|
<SelectGroup v-else>
|
||||||
<SelectItem
|
<SelectItem
|
||||||
@@ -95,11 +99,12 @@ const classes = computed(() => {
|
|||||||
<SelectItemIndicator
|
<SelectItemIndicator
|
||||||
class="absolute left-0 w-[25px] inline-flex items-center justify-center"
|
class="absolute left-0 w-[25px] inline-flex items-center justify-center"
|
||||||
>
|
>
|
||||||
<Icon name="bi:check" size="20" />
|
<Icon
|
||||||
|
name="bi:check"
|
||||||
|
size="20"
|
||||||
|
/>
|
||||||
</SelectItemIndicator>
|
</SelectItemIndicator>
|
||||||
<SelectItemText
|
<SelectItemText class="text-end font-iran-yekan-x text-sm">
|
||||||
class="text-end font-iran-yekan-x text-sm"
|
|
||||||
>
|
|
||||||
{{ option }}
|
{{ option }}
|
||||||
</SelectItemText>
|
</SelectItemText>
|
||||||
</SelectItem>
|
</SelectItem>
|
||||||
|
|||||||
Reference in New Issue
Block a user