import TimePicker from 'react-ios-component/src/components/picker/TimePicker.js'
TimePicker
Extends:
react~Component → TimePicker
时间弹窗选择器
Constructor Summary
Public Constructor | ||
public |
constructor(props: Object, context: Object) 构造函数 |
Method Summary
Public Methods | ||
public |
componentWillReceiveProps(objectPattern: {"selectedTime": *}) |
|
public |
render(): * |
Public Constructors
public constructor(props: Object, context: Object) source
构造函数
Params:
Name | Type | Attribute | Description |
props | Object | 组件所使用的属性 |
|
props.selectedTime | string |
|
当前选中的日期 |
props.minDate | string |
|
最小可选择的日期 |
props.maxDate | string |
|
最大可选择的日期 |
props.hourUnit | string |
|
小时的单位文案 |
props.minuteUnit | string |
|
分钟的单位文案 |
props.secondUnit | string |
|
秒的单位文案 |
props.visible | boolean |
|
选择器是否显示 |
props.title | PropTypes.node |
|
选择器标题 |
props.confirmText | PropTypes.node |
|
确认按钮文案 |
props.cancelText | PropTypes.node |
|
取消按钮文案 |
props.onConfirm | function |
|
确认按钮的回调函数 |
props.onCancel | function |
|
取消按钮的回调函数 |
props.onChange | function | 选中某一个项时触发的函数回调 |
|
context | Object |