Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
Element
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
CI / CD Analytics
Repository Analytics
Value Stream Analytics
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
林焕东
Element
Commits
146e02c4
Commit
146e02c4
authored
Oct 30, 2017
by
Leopoldthecoder
Committed by
杨奕
Oct 30, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
DatePicker: workaround for Chromium 55 - 57
parent
468124f9
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
4 deletions
+10
-4
packages/date-picker/src/panel/date-range.vue
packages/date-picker/src/panel/date-range.vue
+6
-0
packages/theme-chalk/src/date-picker/picker.scss
packages/theme-chalk/src/date-picker/picker.scss
+3
-3
packages/theme-chalk/src/date-picker/time-spinner.scss
packages/theme-chalk/src/date-picker/time-spinner.scss
+1
-1
No files found.
packages/date-picker/src/panel/date-range.vue
View file @
146e02c4
...
...
@@ -482,6 +482,12 @@
this
.
onPick
&&
this
.
onPick
(
val
);
this
.
maxDate
=
val
.
maxDate
;
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
;
this
.
handleConfirm
();
},
...
...
packages/theme-chalk/src/date-picker/picker.scss
View file @
146e02c4
...
...
@@ -15,14 +15,14 @@
@include
m
((
daterange
,
timerange
))
{
&
.el-input
,
&
.el-input__inner
{
width
:
3
2
0px
;
width
:
3
5
0px
;
}
}
@include
m
(
datetimerange
)
{
&
.el-input
,
&
.el-input__inner
{
width
:
37
0px
;
width
:
40
0px
;
}
}
...
...
@@ -42,7 +42,7 @@
height
:
100%
;
margin
:
0
;
padding
:
0
;
width
:
3
8
%
;
width
:
3
9
%
;
text-align
:
center
;
font-size
:
$--font-size-base
;
color
:
$--color-text-regular
;
...
...
packages/theme-chalk/src/date-picker/time-spinner.scss
View file @
146e02c4
...
...
@@ -3,7 +3,7 @@
@include
b
(
time-spinner
)
{
&
.has-seconds
{
.el-time-spinner__wrapper
{
width
:
33%
;
width
:
33
.3
%
;
}
.el-time-spinner__wrapper
:nth-child
(
2
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment