rc-calendar
Advanced tools
Comparing version 9.8.2 to 9.9.0
@@ -201,3 +201,4 @@ import _extends from 'babel-runtime/helpers/extends'; | ||
disabledTime = props.disabledTime, | ||
clearIcon = props.clearIcon; | ||
clearIcon = props.clearIcon, | ||
renderFooter = props.renderFooter; | ||
var value = state.value, | ||
@@ -258,2 +259,3 @@ selectedValue = state.selectedValue, | ||
onPanelChange: this.onPanelChange, | ||
renderFooter: renderFooter, | ||
showTimePicker: showTimePicker, | ||
@@ -287,2 +289,3 @@ prefixCls: prefixCls | ||
showOk: props.showOk, | ||
mode: mode, | ||
renderFooter: props.renderFooter, | ||
@@ -289,0 +292,0 @@ locale: locale, |
@@ -25,3 +25,4 @@ import _extends from 'babel-runtime/helpers/extends'; | ||
renderFooter: PropTypes.func, | ||
defaultValue: PropTypes.object | ||
defaultValue: PropTypes.object, | ||
mode: PropTypes.string | ||
}, | ||
@@ -41,6 +42,7 @@ | ||
timePicker = props.timePicker, | ||
renderFooter = props.renderFooter; | ||
renderFooter = props.renderFooter, | ||
mode = props.mode; | ||
var footerEl = null; | ||
var extraFooter = renderFooter(); | ||
var extraFooter = renderFooter(mode); | ||
if (props.showToday || timePicker || extraFooter) { | ||
@@ -47,0 +49,0 @@ var _cx; |
@@ -37,3 +37,4 @@ import React from 'react'; | ||
enableNext: PropTypes.any, | ||
disabledMonth: PropTypes.func | ||
disabledMonth: PropTypes.func, | ||
renderFooter: PropTypes.func | ||
}, | ||
@@ -152,3 +153,4 @@ | ||
enablePrev = props.enablePrev, | ||
disabledMonth = props.disabledMonth; | ||
disabledMonth = props.disabledMonth, | ||
renderFooter = props.renderFooter; | ||
@@ -168,3 +170,4 @@ | ||
cellRender: props.monthCellRender, | ||
contentRender: props.monthCellContentRender | ||
contentRender: props.monthCellContentRender, | ||
renderFooter: renderFooter | ||
}); | ||
@@ -178,3 +181,4 @@ } | ||
onSelect: this.onYearSelect, | ||
onDecadePanelShow: this.showDecadePanel | ||
onDecadePanelShow: this.showDecadePanel, | ||
renderFooter: renderFooter | ||
}); | ||
@@ -187,3 +191,4 @@ } | ||
rootPrefixCls: prefixCls, | ||
onSelect: this.onDecadeSelect | ||
onSelect: this.onDecadeSelect, | ||
renderFooter: renderFooter | ||
}); | ||
@@ -190,0 +195,0 @@ } |
@@ -49,3 +49,5 @@ import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; | ||
var value = this.state.value; | ||
var locale = this.props.locale; | ||
var _props = this.props, | ||
locale = _props.locale, | ||
renderFooter = _props.renderFooter; | ||
@@ -73,2 +75,4 @@ var currentYear = value.year(); | ||
var footer = renderFooter && renderFooter('decade'); | ||
var decadesEls = decades.map(function (row, decadeIndex) { | ||
@@ -154,2 +158,7 @@ var tds = row.map(function (decadeData) { | ||
) | ||
), | ||
footer && React.createElement( | ||
'div', | ||
{ className: prefixCls + '-footer' }, | ||
footer | ||
) | ||
@@ -169,3 +178,4 @@ ); | ||
defaultValue: PropTypes.object, | ||
rootPrefixCls: PropTypes.string | ||
rootPrefixCls: PropTypes.string, | ||
renderFooter: PropTypes.func | ||
}; | ||
@@ -172,0 +182,0 @@ |
@@ -20,3 +20,4 @@ import React from 'react'; | ||
disabledDate: PropTypes.func, | ||
onSelect: PropTypes.func | ||
onSelect: PropTypes.func, | ||
renderFooter: PropTypes.func | ||
}, | ||
@@ -65,5 +66,6 @@ | ||
var value = this.state.value; | ||
var cellRender = props.cellRender; | ||
var contentRender = props.contentRender; | ||
var locale = props.locale; | ||
var locale = props.locale, | ||
cellRender = props.cellRender, | ||
contentRender = props.contentRender, | ||
renderFooter = props.renderFooter; | ||
@@ -73,2 +75,4 @@ var year = value.year(); | ||
var footer = renderFooter && renderFooter('month'); | ||
return React.createElement( | ||
@@ -127,2 +131,7 @@ 'div', | ||
}) | ||
), | ||
footer && React.createElement( | ||
'div', | ||
{ className: prefixCls + '-footer' }, | ||
footer | ||
) | ||
@@ -129,0 +138,0 @@ ) |
@@ -70,3 +70,4 @@ import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; | ||
var value = this.state.value; | ||
var locale = props.locale; | ||
var locale = props.locale, | ||
renderFooter = props.renderFooter; | ||
@@ -117,2 +118,4 @@ var years = this.years(); | ||
var footer = renderFooter && renderFooter('year'); | ||
return React.createElement( | ||
@@ -173,2 +176,7 @@ 'div', | ||
) | ||
), | ||
footer && React.createElement( | ||
'div', | ||
{ className: prefixCls + '-footer' }, | ||
footer | ||
) | ||
@@ -188,3 +196,4 @@ ) | ||
value: PropTypes.object, | ||
defaultValue: PropTypes.object | ||
defaultValue: PropTypes.object, | ||
renderFooter: PropTypes.func | ||
}; | ||
@@ -191,0 +200,0 @@ |
# History | ||
---- | ||
## 9.9.0 / 2018-12-23 | ||
- `renderFooter(mode)` support all modes. | ||
## 9.8.0 / 2018-11-30 | ||
@@ -5,0 +9,0 @@ |
@@ -244,3 +244,4 @@ 'use strict'; | ||
disabledTime = props.disabledTime, | ||
clearIcon = props.clearIcon; | ||
clearIcon = props.clearIcon, | ||
renderFooter = props.renderFooter; | ||
var value = state.value, | ||
@@ -301,2 +302,3 @@ selectedValue = state.selectedValue, | ||
onPanelChange: this.onPanelChange, | ||
renderFooter: renderFooter, | ||
showTimePicker: showTimePicker, | ||
@@ -330,2 +332,3 @@ prefixCls: prefixCls | ||
showOk: props.showOk, | ||
mode: mode, | ||
renderFooter: props.renderFooter, | ||
@@ -332,0 +335,0 @@ locale: locale, |
@@ -60,3 +60,4 @@ 'use strict'; | ||
renderFooter: _propTypes2['default'].func, | ||
defaultValue: _propTypes2['default'].object | ||
defaultValue: _propTypes2['default'].object, | ||
mode: _propTypes2['default'].string | ||
}, | ||
@@ -76,6 +77,7 @@ | ||
timePicker = props.timePicker, | ||
renderFooter = props.renderFooter; | ||
renderFooter = props.renderFooter, | ||
mode = props.mode; | ||
var footerEl = null; | ||
var extraFooter = renderFooter(); | ||
var extraFooter = renderFooter(mode); | ||
if (props.showToday || timePicker || extraFooter) { | ||
@@ -82,0 +84,0 @@ var _cx; |
@@ -63,3 +63,4 @@ 'use strict'; | ||
enableNext: _propTypes2['default'].any, | ||
disabledMonth: _propTypes2['default'].func | ||
disabledMonth: _propTypes2['default'].func, | ||
renderFooter: _propTypes2['default'].func | ||
}, | ||
@@ -178,3 +179,4 @@ | ||
enablePrev = props.enablePrev, | ||
disabledMonth = props.disabledMonth; | ||
disabledMonth = props.disabledMonth, | ||
renderFooter = props.renderFooter; | ||
@@ -194,3 +196,4 @@ | ||
cellRender: props.monthCellRender, | ||
contentRender: props.monthCellContentRender | ||
contentRender: props.monthCellContentRender, | ||
renderFooter: renderFooter | ||
}); | ||
@@ -204,3 +207,4 @@ } | ||
onSelect: this.onYearSelect, | ||
onDecadePanelShow: this.showDecadePanel | ||
onDecadePanelShow: this.showDecadePanel, | ||
renderFooter: renderFooter | ||
}); | ||
@@ -213,3 +217,4 @@ } | ||
rootPrefixCls: prefixCls, | ||
onSelect: this.onDecadeSelect | ||
onSelect: this.onDecadeSelect, | ||
renderFooter: renderFooter | ||
}); | ||
@@ -216,0 +221,0 @@ } |
@@ -74,3 +74,5 @@ 'use strict'; | ||
var value = this.state.value; | ||
var locale = this.props.locale; | ||
var _props = this.props, | ||
locale = _props.locale, | ||
renderFooter = _props.renderFooter; | ||
@@ -98,2 +100,4 @@ var currentYear = value.year(); | ||
var footer = renderFooter && renderFooter('decade'); | ||
var decadesEls = decades.map(function (row, decadeIndex) { | ||
@@ -179,2 +183,7 @@ var tds = row.map(function (decadeData) { | ||
) | ||
), | ||
footer && _react2['default'].createElement( | ||
'div', | ||
{ className: prefixCls + '-footer' }, | ||
footer | ||
) | ||
@@ -194,3 +203,4 @@ ); | ||
defaultValue: _propTypes2['default'].object, | ||
rootPrefixCls: _propTypes2['default'].string | ||
rootPrefixCls: _propTypes2['default'].string, | ||
renderFooter: _propTypes2['default'].func | ||
}; | ||
@@ -197,0 +207,0 @@ |
@@ -37,3 +37,4 @@ 'use strict'; | ||
disabledDate: _propTypes2['default'].func, | ||
onSelect: _propTypes2['default'].func | ||
onSelect: _propTypes2['default'].func, | ||
renderFooter: _propTypes2['default'].func | ||
}, | ||
@@ -82,5 +83,6 @@ | ||
var value = this.state.value; | ||
var cellRender = props.cellRender; | ||
var contentRender = props.contentRender; | ||
var locale = props.locale; | ||
var locale = props.locale, | ||
cellRender = props.cellRender, | ||
contentRender = props.contentRender, | ||
renderFooter = props.renderFooter; | ||
@@ -90,2 +92,4 @@ var year = value.year(); | ||
var footer = renderFooter && renderFooter('month'); | ||
return _react2['default'].createElement( | ||
@@ -144,2 +148,7 @@ 'div', | ||
}) | ||
), | ||
footer && _react2['default'].createElement( | ||
'div', | ||
{ className: prefixCls + '-footer' }, | ||
footer | ||
) | ||
@@ -146,0 +155,0 @@ ) |
@@ -94,3 +94,4 @@ 'use strict'; | ||
var value = this.state.value; | ||
var locale = props.locale; | ||
var locale = props.locale, | ||
renderFooter = props.renderFooter; | ||
@@ -141,2 +142,4 @@ var years = this.years(); | ||
var footer = renderFooter && renderFooter('year'); | ||
return _react2['default'].createElement( | ||
@@ -197,2 +200,7 @@ 'div', | ||
) | ||
), | ||
footer && _react2['default'].createElement( | ||
'div', | ||
{ className: prefixCls + '-footer' }, | ||
footer | ||
) | ||
@@ -212,3 +220,4 @@ ) | ||
value: _propTypes2['default'].object, | ||
defaultValue: _propTypes2['default'].object | ||
defaultValue: _propTypes2['default'].object, | ||
renderFooter: _propTypes2['default'].func | ||
}; | ||
@@ -215,0 +224,0 @@ |
{ | ||
"name": "rc-calendar", | ||
"version": "9.8.2", | ||
"version": "9.9.0", | ||
"description": "React Calendar", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -133,3 +133,3 @@ # rc-calendar | ||
<td>renderFooter</td> | ||
<td>() => React.Node</td> | ||
<td>(mode) => React.Node</td> | ||
<td></td> | ||
@@ -136,0 +136,0 @@ <td>extra footer</td> |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1501200
22927