Commit 146e02c4 authored by Leopoldthecoder's avatar Leopoldthecoder Committed by 杨奕

DatePicker: workaround for Chromium 55 - 57

parent 468124f9
...@@ -482,6 +482,12 @@ ...@@ -482,6 +482,12 @@
this.onPick && this.onPick(val); this.onPick && this.onPick(val);
this.maxDate = val.maxDate; this.maxDate = val.maxDate;
this.minDate = val.minDate; this.minDate = val.minDate;
// workaround for https://github.com/ElemeFE/element/issues/7539, should remove this block when we don't have to care about Chromium 55 - 57
setTimeout(() => {
this.maxDate = val.maxDate;
this.minDate = val.minDate;
}, 10);
if (!close || this.showTime) return; if (!close || this.showTime) return;
this.handleConfirm(); this.handleConfirm();
}, },
......
...@@ -15,14 +15,14 @@ ...@@ -15,14 +15,14 @@
@include m((daterange, timerange)) { @include m((daterange, timerange)) {
&.el-input, &.el-input,
&.el-input__inner { &.el-input__inner {
width: 320px; width: 350px;
} }
} }
@include m(datetimerange) { @include m(datetimerange) {
&.el-input, &.el-input,
&.el-input__inner { &.el-input__inner {
width: 370px; width: 400px;
} }
} }
...@@ -42,7 +42,7 @@ ...@@ -42,7 +42,7 @@
height: 100%; height: 100%;
margin: 0; margin: 0;
padding: 0; padding: 0;
width: 38%; width: 39%;
text-align: center; text-align: center;
font-size: $--font-size-base; font-size: $--font-size-base;
color: $--color-text-regular; color: $--color-text-regular;
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
@include b(time-spinner) { @include b(time-spinner) {
&.has-seconds { &.has-seconds {
.el-time-spinner__wrapper { .el-time-spinner__wrapper {
width: 33%; width: 33.3%;
} }
.el-time-spinner__wrapper:nth-child(2) { .el-time-spinner__wrapper:nth-child(2) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment