Home Reference Source Repository
public class | source

InlineDatePicker

Extends:

react~Component → InlineDatePicker

內联日期选择器

Constructor Summary

Public Constructor
public

constructor(props: Object, context: Object)

构造函数

Method Summary

Public Methods
public

onChange(newDate: *)

public

render(): *

Public Constructors

public constructor(props: Object, context: Object) source

构造函数

Params:

NameTypeAttributeDescription
props Object

组件所使用的属性

props.selectedDate Date
  • optional
  • default: new

Date()] 当前选中的日期

props.minDate Date
  • optional
  • default: new

Date()] 最小可选择的日期

props.maxDate Date
  • optional
  • default: new

Date()] 最大可选择的日期

props.yearUnit string
  • optional
  • default: ''

年份的单位文案

props.monthUnit string
  • optional
  • default: ''

月份的单位文案

props.dateUnit string
  • optional
  • default: ''

天的单位文案

props.onChange function

选中某一个项时触发的函数回调

context Object

Public Methods

public onChange(newDate: *) source

Params:

NameTypeAttributeDescription
newDate *

public render(): * source

Return:

*