Select 下拉选择
基础
We couldn't find any matches for that
类型
outlined (默认)
We couldn't find any matches for that
lined
We couldn't find any matches for that
filled
We couldn't find any matches for that
禁用
We couldn't find any matches for that
We couldn't find any matches for that
We couldn't find any matches for that
禁用项
We couldn't find any matches for that
多选
We couldn't find any matches for that
已选项样式:plain
We couldn't find any matches for that
We couldn't find any matches for that
We couldn't find any matches for that
可清空
单选
We couldn't find any matches for that
多选
We couldn't find any matches for that
可筛选
按照 Option 的 value 或者 label 进行关键字匹配搜索
单选
We couldn't find any matches for that
多选
We couldn't find any matches for that
单选
We couldn't find any matches for that
多选
We couldn't find any matches for that
单选
We couldn't find any matches for that
多选
We couldn't find any matches for that
分组
分组一
分组二
We couldn't find any matches for that
自定义模板
We couldn't find any matches for that
前缀
单选
We couldn't find any matches for that
多选
We couldn't find any matches for that
单选
We couldn't find any matches for that
多选
We couldn't find any matches for that
单选
We couldn't find any matches for that
多选
We couldn't find any matches for that
大小
单选
small
We couldn't find any matches for that
normal
We couldn't find any matches for that
large
We couldn't find any matches for that
多选
small
We couldn't find any matches for that
normal
We couldn't find any matches for that
large
We couldn't find any matches for that
Select Props
参数 | 介绍 | 类型 | 可选值 | 默认值 |
---|---|---|---|---|
value | 通过 v-model 绑定选中值 | String, Number, Array | — | — |
style-type | 样式类型 | String | outlined, lined, filled | outlined |
disabled | 是否禁用 | Boolean | — | false |
multiple | 是否多选 | Boolean | — | false |
size | 尺寸 | String | small, large | — |
clearable | 是否可清空 | Boolean | — | false |
placeholder | 占位符 | String | — | — |
filterable | 是否可筛选 | Boolean | — | false |
max-height | 最大下拉高度 | Number | — | 500 |
name | 原生 input name | String | — | — |
autocomplete | select input 的 autocomplete 属性 | String | — | off |
selection-style | 多选模式下,已选项的样式 | String | tag, plain | tag |
placement | 弹出位置 | String | top, bottom | bottom |
hide-view-all | 隐藏显示全部按钮 | Boolean | — | false |
Select Events
参数 | 介绍 | 回调参数 |
---|---|---|
change | 选中值发生变化时触发 | (value) 选中值 |
clear | 清空选中时触发 | — |
Select Slots
参数 | 介绍 | 类型 | 可选值 | 默认值 |
---|---|---|---|---|
default | 默认 | Slot | — | - |
prefix | 前缀 | Slot | — | - |
Select API
方法 | 介绍 | 参数说明 |
---|---|---|
open() | 打开下拉面板 | - |
close() | 关闭下拉面板 | - |
OptionGroup Props
参数 | 介绍 | 类型 | 可选值 | 默认值 |
---|---|---|---|---|
label | 组显示标签 | String | — | — |
disabled | 是否禁用该组所有选项 | Boolean | — | false |
Option Props
参数 | 介绍 | 类型 | 可选值 | 默认值 |
---|---|---|---|---|
value | 可选项的值 | String, Number | — | — |
label | 可选项的标签 | String | — | — |
disabled | 是否禁用 | Boolean | — | false |