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
2814847a
Commit
2814847a
authored
Jun 08, 2022
by
杨子
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化代码
parent
d72527e0
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
20 deletions
+7
-20
GanttView.vue
src/components/GanttView.vue
+0
-13
index.ts
src/router/index.ts
+3
-3
Gantt.vue
src/views/Gantt.vue
+4
-4
No files found.
src/components/
HelloWorld
.vue
→
src/components/
GanttView
.vue
View file @
2814847a
...
@@ -21,19 +21,7 @@
...
@@ -21,19 +21,7 @@
/>
/>
</
template
>
</
template
>
<!-- <g-gantt-row
label="My row 1"
:bars="bars1"
highlight-on-hover
/> -->
</g-gantt-chart>
</g-gantt-chart>
<!-- 选择开始日期: <input type="text" v-model="dateValueStart">
选择结束日期: <input type="text" v-model="dateValueEnd"> -->
<!-- 分钟间隔: <input type="text" v-model="minuteValue" />
<button @click="confirm()">确定</button> -->
</template>
</template>
<
script
setup
lang=
"ts"
>
<
script
setup
lang=
"ts"
>
...
@@ -137,5 +125,4 @@ const confirm = (type: number) => {
...
@@ -137,5 +125,4 @@ const confirm = (type: number) => {
minuteInterval
.
value
=
minuteValue
.
value
;
minuteInterval
.
value
=
minuteValue
.
value
;
}
}
};
};
</
script
>
</
script
>
src/router/index.ts
View file @
2814847a
import
{
createRouter
,
createWebHistory
,
RouteRecordRaw
}
from
'vue-router'
import
{
createRouter
,
createWebHistory
,
RouteRecordRaw
}
from
'vue-router'
import
HomeView
from
'../views/HomeView
.vue'
import
Gantt
from
'../views/Gantt
.vue'
const
routes
:
Array
<
RouteRecordRaw
>
=
[
const
routes
:
Array
<
RouteRecordRaw
>
=
[
{
{
path
:
'/'
,
path
:
'/'
,
name
:
'
home
'
,
name
:
'
gantt
'
,
component
:
HomeView
component
:
Gantt
},
},
{
{
path
:
'/about'
,
path
:
'/about'
,
...
...
src/views/
HomeView
.vue
→
src/views/
Gantt
.vue
View file @
2814847a
<
template
>
<
template
>
<div
class=
"home"
>
<div
class=
"home"
>
<h1>
{{
taskName
}}
</h1>
<h1>
{{
taskName
}}
</h1>
<
HelloWorld
@
updateTaskName=
"updateTaskName"
/>
<
GanttView
@
updateTaskName=
"updateTaskName"
/>
</div>
</div>
</
template
>
</
template
>
<
script
lang=
"ts"
>
<
script
lang=
"ts"
>
import
{
Options
,
Vue
}
from
'vue-class-component'
import
{
Options
,
Vue
}
from
'vue-class-component'
import
HelloWorld
from
'@/components/HelloWorld
.vue'
// @ is an alias to /src
import
GanttView
from
'@/components/GanttView
.vue'
// @ is an alias to /src
@
Options
({
@
Options
({
components
:
{
components
:
{
HelloWorld
GanttView
},
},
data
(){
data
(){
return
{
return
{
...
@@ -24,5 +24,5 @@ import HelloWorld from '@/components/HelloWorld.vue' // @ is an alias to /src
...
@@ -24,5 +24,5 @@ import HelloWorld from '@/components/HelloWorld.vue' // @ is an alias to /src
}
}
}
}
})
})
export
default
class
HomeView
extends
Vue
{}
export
default
class
Gantt
extends
Vue
{}
</
script
>
</
script
>
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