| multiple |
是否多选 |
boolean |
— |
false |
| disabled |
是否禁用 |
boolean |
— |
false |
| value-key |
作为 value 唯一标识的键名,绑定值为对象类型时必填 |
string |
— |
value |
| inputheight |
当为多选时,可通过inputheight 修改 Select input框的高度 |
number |
— |
36 |
| inputclass |
Select input框的类名,当为多选时,无法改变高度,高度只能通过inputheight属性设置 |
string |
— |
— |
| clearable |
单选时是否可以清空选项 |
boolean |
— |
false |
| multiple-limit |
多选时用户最多可以选择的项目数,为 0 则不限制 |
number |
— |
0 |
| name |
select input 的 name 属性 |
string |
— |
— |
| placeholder |
占位符 |
string |
— |
请选择 |
| filterable |
是否可搜索 |
boolean |
— |
false |
| allow-create |
是否允许用户创建新条目,需配合 filterable 使用 |
boolean |
— |
false |
| filter-method |
自定义过滤方法 |
function |
— |
— |
| remote |
是否为远程搜索 |
boolean |
— |
false |
| remote-method |
远程搜索方法 |
function |
— |
— |
| loading |
是否正在从远程获取数据 |
boolean |
— |
false |
| loading-text |
远程加载时显示的文字 |
string |
— |
加载中 |
| no-match-text |
搜索条件无匹配时显示的文字 |
string |
— |
无匹配数据 |
| no-data-text |
选项为空时显示的文字 |
string |
— |
无数据 |
| popper-class |
Select 下拉框的类名 |
string |
— |
— |
| default-first-option |
在输入框按下回车,选择第一个匹配项。需配合 filterable 或 remote 使用 |
boolean |
— |
false |