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
5fc34777
Commit
5fc34777
authored
Feb 13, 2017
by
qingwei.li
Committed by
杨奕
Feb 13, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
DatePicker: fix marks are displaced when type is range, fixed #2612
parent
c310ee56
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
build/cooking.demo.js
build/cooking.demo.js
+1
-1
packages/date-picker/src/basic/date-table.vue
packages/date-picker/src/basic/date-table.vue
+2
-2
No files found.
build/cooking.demo.js
View file @
5fc34777
...
@@ -118,6 +118,6 @@ if (isProd) {
...
@@ -118,6 +118,6 @@ if (isProd) {
cooking
.
add
(
'
plugin.CopyWebpackPlugin
'
,
new
CopyWebpackPlugin
([
cooking
.
add
(
'
plugin.CopyWebpackPlugin
'
,
new
CopyWebpackPlugin
([
{
from
:
'
examples/versions.json
'
}
{
from
:
'
examples/versions.json
'
}
]));
]));
cooking
.
add
(
'
plugin.OfflinePlugin
'
,
new
OfflinePlugin
());
isProd
&&
cooking
.
add
(
'
plugin.OfflinePlugin
'
,
new
OfflinePlugin
());
cooking
.
add
(
'
vue.preserveWhitespace
'
,
false
);
cooking
.
add
(
'
vue.preserveWhitespace
'
,
false
);
module
.
exports
=
cooking
.
resolve
();
module
.
exports
=
cooking
.
resolve
();
packages/date-picker/src/basic/date-table.vue
View file @
5fc34777
...
@@ -270,7 +270,7 @@
...
@@ -270,7 +270,7 @@
getDateOfCell
(
row
,
column
)
{
getDateOfCell
(
row
,
column
)
{
const
startDate
=
this
.
startDate
;
const
startDate
=
this
.
startDate
;
return
new
Date
(
startDate
.
getTime
()
+
(
row
*
7
+
(
column
-
(
this
.
showWeekNumber
?
1
:
0
)))
*
DAY_DURATION
);
return
new
Date
(
startDate
.
getTime
()
+
(
row
*
7
+
(
column
-
(
this
.
showWeekNumber
?
1
:
0
))
-
this
.
offsetDay
)
*
DAY_DURATION
);
},
},
getCellByDate
(
date
)
{
getCellByDate
(
date
)
{
...
@@ -322,7 +322,7 @@
...
@@ -322,7 +322,7 @@
const
cell
=
row
[
j
];
const
cell
=
row
[
j
];
const
index
=
i
*
7
+
j
+
(
this
.
showWeekNumber
?
-
1
:
0
);
const
index
=
i
*
7
+
j
+
(
this
.
showWeekNumber
?
-
1
:
0
);
const
time
=
startDate
.
getTime
()
+
DAY_DURATION
*
index
;
const
time
=
startDate
.
getTime
()
+
DAY_DURATION
*
(
index
-
this
.
offsetDay
)
;
cell
.
inRange
=
minDate
&&
time
>=
clearHours
(
minDate
)
&&
time
<=
clearHours
(
maxDate
);
cell
.
inRange
=
minDate
&&
time
>=
clearHours
(
minDate
)
&&
time
<=
clearHours
(
maxDate
);
cell
.
start
=
minDate
&&
time
===
clearHours
(
minDate
.
getTime
());
cell
.
start
=
minDate
&&
time
===
clearHours
(
minDate
.
getTime
());
...
...
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