mirror of
https://github.com/ant-design/ant-design.git
synced 2025-06-07 17:44:35 +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) => {
|
clearSelection = (e) => {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
e.stopPropagation();
|
e.stopPropagation();
|
||||||
this.setState({ value: null });
|
this.setState({ value: null });
|
||||||
this.handleChange(null);
|
this.handleChange(null);
|
||||||
}
|
}
|
||||||
|
|
||||||
handleChange = (value) => {
|
handleChange = (value) => {
|
||||||
const props = this.props;
|
const props = this.props;
|
||||||
if (!('value' in props)) {
|
if (!('value' in props)) {
|
||||||
|
@ -57,13 +57,6 @@
|
|||||||
margin-left: -29px;
|
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 {
|
&.@{calendar-prefix-cls}-time &-right .@{calendar-prefix-cls}-date-input-wrap {
|
||||||
margin-left: -15px;
|
margin-left: -15px;
|
||||||
}
|
}
|
||||||
|
@ -11,17 +11,14 @@
|
|||||||
.@{calendar-prefix-cls}-clear-btn {
|
.@{calendar-prefix-cls}-clear-btn {
|
||||||
direction: ltr;
|
direction: ltr;
|
||||||
}
|
}
|
||||||
.@{calendar-prefix-cls}-time-picker-wrap {
|
|
||||||
position: absolute;
|
|
||||||
right: 0;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
.@{calendar-prefix-cls}-input,
|
.@{calendar-prefix-cls}-input,
|
||||||
.@{timepicker-prefix-cls}-input {
|
.@{timepicker-prefix-cls}-input {
|
||||||
// .input;
|
.input;
|
||||||
}
|
border-radius: @border-radius-sm;
|
||||||
.@{timepicker-prefix-cls}-input {
|
height: @input-height-sm;
|
||||||
display: none;
|
width: 96px;
|
||||||
|
margin-right: 6px;
|
||||||
}
|
}
|
||||||
.@{calendar-prefix-cls}-input {
|
.@{calendar-prefix-cls}-input {
|
||||||
padding-right: 21px;
|
padding-right: 21px;
|
||||||
@ -30,9 +27,6 @@
|
|||||||
min-width: 168px;
|
min-width: 168px;
|
||||||
}
|
}
|
||||||
.@{timepicker-prefix-cls}-icon {
|
.@{timepicker-prefix-cls}-icon {
|
||||||
font-family: "anticon" !important;
|
display: none;
|
||||||
position: relative;
|
|
||||||
content: "\E643";
|
|
||||||
display: inline;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user