Options
Extends:
react~Component → Options
单选择器
Constructor Summary
| Public Constructor | ||
| public |
constructor(props: Object, context: Object) 构造函数 |
|
Member Summary
| Public Members | ||
| public |
iScroll: * |
|
Method Summary
| Public Methods | ||
| public |
|
|
| public |
|
|
| public |
|
|
| public |
render(): * |
|
| public |
setPosition(index: *, time: number) |
|
Public Constructors
public constructor(props: Object, context: Object) source
构造函数
Params:
| Name | Type | Attribute | Description |
| props | Object | 组件所使用的属性 |
|
| props.options | Object[] | string[] | number[] | 进行选择的数据列表 |
|
| props.labelName | string |
|
当可选择的数据列表的项是对象(obj)时, |
| props.selectedIndex | number |
|
当前选中的数据列表项的下标 |
| props.onChange | function | 选中某一个项时触发的函数回调 |
|
| props.iScrollOptions | Object |
|
|
| context | Object |