mirror of
https://git.hmsn.ink/kospo/svcm/oa.git
synced 2026-03-20 04:22:25 +09:00
2.1 KiB
2.1 KiB
optionsSingle, state
| optionsSingle | state | |||||
|---|---|---|---|---|---|---|
|
|
Autocomplete
Vuero is integrated with Vue Multiselect, a vue 3 select single, multiple and
tags input library. You can check the plugin documentation on
Github. You can transform the
component into an autocomplete by adding the :searchable="true" prop. Check
the code example for more details.
<script setup lang="ts">
const valueSingle = []
const optionsSingle = ['Batman', 'Robin', 'Joker']
</script>
<template>
<VField v-slot="{ id }" class="is-autocomplete-select">
<VControl icon="lucide:search">
<Multiselect
v-model="valueSingle"
:attrs="{ id }"
:options="optionsSingle"
placeholder="Search heroes..."
:searchable="true"
/>
</VControl>
</VField>
</template>