import SearchBarInput from 'react-ios-component/src/components/searchbar/SearchBarInput.js'SearchBarInput
Extends:
react~Component → SearchBarInput
搜索栏输入框
Constructor Summary
| Public Constructor | ||
| public |
constructor(props: Object, context: Object) 构造函数 |
|
Method Summary
| Public Methods | ||
| public |
onBlur(e: *) |
|
| public |
onChange(e: *) |
|
| public |
onClear(e: *) |
|
| public |
onFocus(e: *) |
|
| public |
render(): * |
|
Public Constructors
public constructor(props: Object, context: Object) source
构造函数
Params:
| Name | Type | Attribute | Description |
| props | Object | 组件所使用的属性 |
|
| props.type | string |
|
输入框类型 |
| props.hasFooter | boolean |
|
是否有尾部 |
| props.hasClear | boolean |
|
是否有清除图标 |
| props.placeholder | string |
|
输入框 placeholder |
| props.onBlur | function |
|
输入框失焦事件函数 |
| props.onFocus | function |
|
输入框激活事件函数 |
| props.onChange | function |
|
输入框值改变事件函数 |
| props.onClear | function |
|
清楚输入框内容的事件函数 |
| context | Object |