用 <FormControl>
来代替 <input>
, <textarea>
参数 | 说明 | 类型 | 默认值 |
---|---|---|---|
className | 类名 | string | - |
type | 类型(text ,search , submit ,'checkbox',...详情http://www.w3school.com.cn/html5/att_input_type.asp) |
string | 'input' |
onChange | input值发生改变触发的回调 | func | - |
onSearch | input type="search"前提下回车触发的回调 多用于搜索 | func | - |