Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
V
vue-gantt
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
杨子
vue-gantt
Commits
7e94ccc4
Commit
7e94ccc4
authored
Jun 16, 2022
by
杨子
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化
parent
50e5b64f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
1 deletion
+0
-1
useTimeaxisUnits.ts
src/composables/useTimeaxisUnits.ts
+0
-1
No files found.
src/composables/useTimeaxisUnits.ts
View file @
7e94ccc4
...
@@ -100,7 +100,6 @@ export default function useTimeaxisUnits(
...
@@ -100,7 +100,6 @@ export default function useTimeaxisUnits(
}
}
// for the very last upper unit :
// for the very last upper unit :
if
(
!
upperUnits
.
some
(
un
=>
un
.
value
===
String
(
currentUpperUnitVal
)))
{
if
(
!
upperUnits
.
some
(
un
=>
un
.
value
===
String
(
currentUpperUnitVal
)))
{
debugger
upperUnitMinutesCount
+=
chartEndDayjs
.
value
.
diff
(
currentUnit
.
subtract
(
1
,
lowerUnit
===
'minute'
?
'hour'
:
lowerUnit
),
"minutes"
,
true
)
upperUnitMinutesCount
+=
chartEndDayjs
.
value
.
diff
(
currentUnit
.
subtract
(
1
,
lowerUnit
===
'minute'
?
'hour'
:
lowerUnit
),
"minutes"
,
true
)
upperUnits
.
push
({
upperUnits
.
push
({
label
:
currentUnit
.
format
(
displayFormats
[
upperUnit
]),
label
:
currentUnit
.
format
(
displayFormats
[
upperUnit
]),
...
...
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