fix: RangePicker style

This commit is contained in:
Benjy Cui 2017-02-22 15:32:21 +08:00
parent fbeccb7be5
commit d9ec4bf732
2 changed files with 14 additions and 12 deletions

View File

@ -179,13 +179,13 @@ export default class RangePicker extends React.Component<any, any> {
const start = inputValue[0];
const end = inputValue[1];
return (
<span className={props.pickerInputClass} disabled={props.disabled}>
<span className={`${props.pickerInputClass} ${prefixCls}-range-picker-input`} disabled={props.disabled}>
<input
disabled={props.disabled}
readOnly
value={(start && start.format(props.format)) || ''}
placeholder={startPlaceholder}
className={`${prefixCls}-range-picker-input`}
className={`${prefixCls}-range-picker-input-part`}
/>
<span className={`${prefixCls}-range-picker-separator`}> ~ </span>
<input
@ -193,7 +193,7 @@ export default class RangePicker extends React.Component<any, any> {
readOnly
value={(end && end.format(props.format)) || ''}
placeholder={endPlaceholder}
className={`${prefixCls}-range-picker-input`}
className={`${prefixCls}-range-picker-input-part`}
/>
{clearIcon}
<span className={`${prefixCls}-picker-icon`} />

View File

@ -1,16 +1,18 @@
@input-box-height: 34px;
.@{calendar-prefix-cls}-range-picker-input {
background-color: transparent;
border: 0;
height: 18px;
line-height: 18px;
outline: 0;
width: 43%;
text-align: center;
padding: 0;
&[disabled] {
cursor: not-allowed;
&-part {
background-color: transparent;
border: 0;
outline: 0;
width: 43%;
text-align: center;
&[disabled] {
cursor: not-allowed;
}
}
}