Skip to content

Commit

Permalink
Merge 406a37f into 7138cf6
Browse files Browse the repository at this point in the history
  • Loading branch information
eternalsky committed Jun 18, 2019
2 parents 7138cf6 + 406a37f commit a3f20de
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions demo/CalendarDemo.jsx
Expand Up @@ -132,6 +132,7 @@ class Demo extends React.Component {
value={value}
onSelect={this.onSelect}
showDateInput
// renderFooter={() => {return 'aaa'}}
/>
</div>
<div
Expand Down
6 changes: 4 additions & 2 deletions src/RcCalendar.jsx
Expand Up @@ -76,7 +76,7 @@ const Calendar = createClass({
renderSidebar: PropTypes.func,
yearSelectTotal: PropTypes.number,
yearSelectOffset: PropTypes.number,
localeStr: PropTypes.string
localeStr: PropTypes.string,
},

mixins: [CommonMixin, CalendarMixin],
Expand Down Expand Up @@ -211,7 +211,8 @@ const Calendar = createClass({
disabledTime,
yearSelectOffset,
yearSelectTotal,
localeStr
localeStr,
renderFooter,
} = this.props;
const { value, selectedValue, showTimePicker } = this.state;
const disabledTimeConfig = showTimePicker && disabledTime && timePicker
Expand Down Expand Up @@ -290,6 +291,7 @@ const Calendar = createClass({
</div>
) : null}
</div>
{renderFooter ? renderFooter() : null}
{timePicker && showTimePicker ? (
<CalendarFooter locale={locale} prefixCls={prefixCls} onOk={this.onOk} />
) : null}
Expand Down

0 comments on commit a3f20de

Please sign in to comment.