Skip to content

Instantly share code, notes, and snippets.

View hitochan777's full-sized avatar

hitochan777

View GitHub Profile
@hitochan777
hitochan777 / v-select.vue
Last active February 20, 2024 04:21
[Vuetify] VSelect with empty selection text when no matching item
<template>
<v-select
:items="items"
:model-value="isValid ? modelValue : null"
:item-value="itemValue"
v-bind="$attrs"
>
<template #[name]="vars" v-for="_, name in $slots">
<slot :name="name" v-bind="vars" />
</template>