InputProps interface
输入框组件:支持下拉、搜索、清除、前后缀等多种形态
Signature
interface InputPropsProperties
Property | Modifiers | Type | Description |
|---|---|---|---|
boolean | (Optional) Whether Show clear button | ||
boolean | (Optional) Whether to show the click button | ||
boolean | (Optional) Whether Disable input | ||
(Optional) Dropdown list data. When provided, the input box can select from a dropdown | |||
(data: string) => void | (Optional) 点击添加按钮时触发,参数为当前输入值 | ||
(data: string) => void | (Optional) 输入框失焦时触发,参数为当前输入值 | ||
(data: string) => void | (Optional) 输入内容变化时触发,参数为最新值 | ||
() => void | (Optional) 点击输入框时触发 | ||
(data: string) => void | (Optional) 点击筛选按钮时触发,参数为当前输入值 | ||
(data: string) => void | (Optional) 点击搜索按钮时触发,参数为当前输入值 | ||
{ [key: string]: string } | (Optional) Other attributes attached to the input element (key-value pair string) | ||
string | (Optional) Placeholder text | ||
string | (Optional) Prefix text | ||
boolean | (Optional) Whether it is read-only | ||
boolean | (Optional) Whether Show search button | ||
string | (Optional) Validation value for testing | ||
'text' | 'telephone' | 'number' | 'password' | 'color' | 'email' | Input box type (required) | ||
string | (Optional) Current input value |