搜索输入框组件
- Source:
Members
(inner) props
- Source:
Properties:
Name | Type | Attributes | Description |
---|---|---|---|
suggest |
boolean |
<optional> |
启用输入建议功能,需要定义 fetchSuggestions |
props |
Object |
<optional> |
输入框组件的实例化参数,即 ElInput 的参数,如开启suggest,即标识 ElAutocomplete的参数 |
value |
string |
<optional> |
输入框的值 |
round |
boolean |
<optional> |
输入框变成圆角 |
icon |
string |
<optional> |
搜索按钮的图标, 不支持svg图标 |
text |
string |
<optional> |
搜索按钮的文本 |
disabled |
boolean |
<optional> |
禁用输入框 |
readonly |
boolean |
<optional> |
输入框只读模式 |
placeholder |
string |
<optional> |
输入框占位文本 |
size |
string |
<optional> |
组件尺寸,支持 'medium', 'small', 'mini', '' |
属性参数
Events
search
- Source:
点击搜索按钮时触发
Parameters:
Name | Type | Description |
---|---|---|
value |
string | 输入框的值 |