Skip to content

AutoComplete 自动完成 ​

输入框自动补全建议,支持自由输入、即时过滤与方向键选择。

基础自动补全 ​

vue
<template>
  <VbAutoComplete v-model="keyword" :options="options" placeholder="输入关键词..." />
</template>

API ​

属性名说明类型默认值
modelValue输入值(v-model)string''
options候选项数组Array<string | { value: string; label?: string }>[]
filterOption是否按输入值本地过滤booleantrue
clearable是否可清空booleantrue
disabled是否禁用booleanfalse

基于 MIT 协议开源发布 · @vobo-design/ui v0.5.0