import DatePicker from 'react-ios-component/src/components/picker/DatePicker.js'DatePicker
Extends:
react~Component → DatePicker
日期弹窗选择器
Constructor Summary
| Public Constructor | ||
| public |
constructor(props: Object, context: Object) 构造函数 |
|
Method Summary
| Public Methods | ||
| public |
componentWillReceiveProps(objectPattern: {"selectedDate": *}) |
|
| public |
render(): * |
|
Public Constructors
public constructor(props: Object, context: Object) source
构造函数
Params:
| Name | Type | Attribute | Description |
| props | Object | 组件所使用的属性 |
|
| props.selectedDate | Date |
|
Date()] 当前选中的日期 |
| props.minDate | Date |
|
Date()] 最小可选择的日期 |
| props.maxDate | Date |
|
Date()] 最大可选择的日期 |
| props.yearUnit | string |
|
年份的单位文案 |
| props.monthUnit | string |
|
月份的单位文案 |
| props.dateUnit | 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 |