嗨,如何为 vuetify 3 组合框添加 onselect?
<v-combobox
v-model="values1"
:items="uniq"
class="flex-full-width mt-5"
density="comfortable"
placeholder="Suche..."
append-inner-icon="mdi-magnify"
variant="outlined"
no-filter
@update:modelValue="toogle"
@update:search="updateForCustomerSearch"
/>
当出现下拉列表并单击下拉列表时,我希望执行特定的方法。 但只有当我从下拉菜单中选择时。
亲切的问候
塞维林
查看文档以找到 onSelect 事件。
<VCombobox :value="props.value" :items="dataList">
<template #item="{ props }">
<VListItem
v-bind="props"
@click="handleOnSelect(props?.value)"
/>
</template>
</VCombobox>