revert mistake of DatePicker time changed

This commit is contained in:
afc163 2016-06-24 17:48:50 +08:00
parent 3e78711253
commit c7da69036d
3 changed files with 8 additions and 19 deletions

View File

@ -22,12 +22,14 @@ export default function createPicker(TheCalendar) {
});
}
}
clearSelection = (e) => {
e.preventDefault();
e.stopPropagation();
this.setState({ value: null });
this.handleChange(null);
}
handleChange = (value) => {
const props = this.props;
if (!('value' in props)) {

View File

@ -57,13 +57,6 @@
margin-left: -29px;
}
.@{calendar-prefix-cls}-time-picker-wrap {
left: 115px;
}
&-right .@{calendar-prefix-cls}-time-picker-wrap {
left: 100px;
}
&.@{calendar-prefix-cls}-time &-right .@{calendar-prefix-cls}-date-input-wrap {
margin-left: -15px;
}

View File

@ -11,17 +11,14 @@
.@{calendar-prefix-cls}-clear-btn {
direction: ltr;
}
.@{calendar-prefix-cls}-time-picker-wrap {
position: absolute;
right: 0;
}
}
.@{calendar-prefix-cls}-input,
.@{timepicker-prefix-cls}-input {
// .input;
}
.@{timepicker-prefix-cls}-input {
display: none;
.input;
border-radius: @border-radius-sm;
height: @input-height-sm;
width: 96px;
margin-right: 6px;
}
.@{calendar-prefix-cls}-input {
padding-right: 21px;
@ -30,9 +27,6 @@
min-width: 168px;
}
.@{timepicker-prefix-cls}-icon {
font-family: "anticon" !important;
position: relative;
content: "\E643";
display: inline;
display: none;
}
}