fix(range-picker): separator error (#5059)

pull/5065/head
ajuner 2021-12-21 16:38:59 +08:00 committed by GitHub
parent ef7d0cf0d2
commit e70738137e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -91,7 +91,7 @@ const RangeCalendar = {
visible: PropTypes.bool.def(true), visible: PropTypes.bool.def(true),
prefixCls: PropTypes.string.def('rc-calendar'), prefixCls: PropTypes.string.def('rc-calendar'),
dateInputPlaceholder: PropTypes.any, dateInputPlaceholder: PropTypes.any,
seperator: PropTypes.string.def('~'), separator: PropTypes.string.def('~'),
defaultValue: PropTypes.any, defaultValue: PropTypes.any,
value: PropTypes.any, value: PropTypes.any,
hoverValue: PropTypes.any, hoverValue: PropTypes.any,
@ -667,7 +667,7 @@ const RangeCalendar = {
showClear, showClear,
showToday, showToday,
type, type,
seperator, separator,
} = props; } = props;
const clearIcon = getComponentFromProp(this, 'clearIcon'); const clearIcon = getComponentFromProp(this, 'clearIcon');
const { sHoverValue, sSelectedValue, sMode: mode, sShowTimePicker, sValue } = this; const { sHoverValue, sSelectedValue, sMode: mode, sShowTimePicker, sValue } = this;
@ -835,7 +835,7 @@ const RangeCalendar = {
onMouseenter={type !== 'both' ? this.onDatePanelEnter : noop} onMouseenter={type !== 'both' ? this.onDatePanelEnter : noop}
> >
<CalendarPart {...leftPartProps} /> <CalendarPart {...leftPartProps} />
<span class={`${prefixCls}-range-middle`}>{seperator}</span> <span class={`${prefixCls}-range-middle`}>{separator}</span>
<CalendarPart {...rightPartProps} /> <CalendarPart {...rightPartProps} />
</div> </div>
<div class={cls}> <div class={cls}>