mirror of
https://github.com/ant-design/ant-design.git
synced 2025-06-07 09:26:06 +08:00
revert mistake of DatePicker time changed
This commit is contained in:
parent
3e78711253
commit
c7da69036d
@ -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)) {
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user