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
cb2e43f6
Commit
cb2e43f6
authored
Jun 06, 2017
by
Leopoldthecoder
Committed by
杨奕
Jun 09, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix DatePicker and Select bug
parent
f9b19d9a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
4 deletions
+2
-4
packages/date-picker/src/basic/date-table.vue
packages/date-picker/src/basic/date-table.vue
+1
-3
src/utils/resize-event.js
src/utils/resize-event.js
+1
-1
No files found.
packages/date-picker/src/basic/date-table.vue
View file @
cb2e43f6
...
...
@@ -32,9 +32,7 @@
const
WEEKS
=
[
'
sun
'
,
'
mon
'
,
'
tue
'
,
'
wed
'
,
'
thu
'
,
'
fri
'
,
'
sat
'
];
const
clearHours
=
function
(
time
)
{
const
cloneDate
=
new
Date
(
time
);
const
timeZoneOffset
=
cloneDate
.
getTimezoneOffset
();
const
timeZone
=
timeZoneOffset
>=
0
?
24
-
timeZoneOffset
/
60
:
Math
.
abs
(
timeZoneOffset
)
/
60
;
cloneDate
.
setHours
(
timeZone
,
0
,
0
,
0
);
cloneDate
.
setHours
(
0
,
0
,
0
,
0
);
return
cloneDate
.
getTime
();
};
...
...
src/utils/resize-event.js
View file @
cb2e43f6
...
...
@@ -121,7 +121,7 @@ const createStyles = function() {
// opacity: 0 works around a chrome bug https://code.google.com/p/chromium/issues/detail?id=286360
const
css
=
`
${
animationKeyframes
}
.resize-triggers {
${
animationStyle
}
visibility: hidden; opacity: 0; }
.resize-triggers, .resize-triggers > div, .contract-trigger:before { content: \" \"; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; }
.resize-triggers, .resize-triggers > div, .contract-trigger:before { content: \" \"; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden;
z-index: -1
}
.resize-triggers > div { background: #eee; overflow: auto; }
.contract-trigger:before { width: 200%; height: 200%; }`
;
...
...
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