mirror of
https://github.com/ant-design/ant-design.git
synced 2025-01-18 14:13:37 +08:00
fix: should pass formatter to rc-calendar #917
This commit is contained in:
parent
5fdb2109f4
commit
61df1eb1dc
@ -78,6 +78,7 @@ export default React.createClass({
|
||||
|
||||
const calendar = (
|
||||
<RangeCalendar prefixCls="ant-calendar"
|
||||
formatter={this.getFormatter()}
|
||||
className={calendarClassName}
|
||||
timePicker={timePicker}
|
||||
disabledDate={disabledDate}
|
||||
|
@ -16,6 +16,6 @@ function onChange(value) {
|
||||
ReactDOM.render(<div>
|
||||
<RangePicker style={{width: 184}} onChange={onChange} />
|
||||
<br />
|
||||
<RangePicker showTime format="yyyy-MM-dd HH:mm:ss" onChange={onChange} />
|
||||
<RangePicker showTime format="yyyy/MM/dd HH:mm:ss" onChange={onChange} />
|
||||
</div>, mountNode);
|
||||
````
|
||||
|
@ -69,6 +69,7 @@ function createPicker(TheCalendar, defaultFormat) {
|
||||
|
||||
const calendar = (
|
||||
<TheCalendar
|
||||
formatter={this.getFormatter()}
|
||||
disabledDate={this.props.disabledDate}
|
||||
locale={locale.lang}
|
||||
timePicker={timePicker}
|
||||
|
Loading…
Reference in New Issue
Block a user