Picker
Extends:
react~Component → Picker
弹窗选择器
Constructor Summary
| Public Constructor | ||
| public |
constructor(props: Object, context: Object) 构造函数 |
|
Member Summary
| Public Members | ||
| public |
state: * |
|
Method Summary
| Public Methods | ||
| public |
componentWillReceiveProps(objectPattern: {"selectedList": *}) |
|
| public |
render(): * |
|
Public Constructors
public constructor(props: Object, context: Object) source
构造函数
Params:
| Name | Type | Attribute | Description |
| props | Object | 组件所使用的属性 |
|
| props.visible | boolean |
|
弹窗选择器是否显示 |
| props.optionsList | Object[] | string[] | number[] | 进行选择的数据列表 |
|
| props.selectedList | number[] |
|
当前选中的数据列表项下标组成的数组 |
| props.labelName | string |
|
当可选择的数据列表的项是对象(obj)时, |
| props.nextName | string |
|
某个列表项的下一个选择列表数据多对应的 |
| props.title | PropTypes.node |
|
弹窗标题 |
| props.confirmText | PropTypes.node |
|
确认按钮文案 |
| props.cancelText | PropTypes.node |
|
取消按钮文案 |
| props.onConfirm | function | 确认按钮的函数回调 |
|
| props.onCancel | function |
|
取消按钮的函数回调 |
| props.onChange | function |
|
选中某一个项时触发的函数回调 |
| context | Object |