Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Z
zeroing-editor
Project
Project
Details
Activity
Releases
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
劳工
zeroing-editor
Commits
2c352a61
Commit
2c352a61
authored
Sep 20, 2019
by
rockyl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
调整项目列表页样式
parent
0c8459a9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
38 additions
and
39 deletions
+38
-39
home.scss
src/themes/light/home.scss
+1
-0
Home.vue
src/views/Home.vue
+37
-39
No files found.
src/themes/light/home.scss
View file @
2c352a61
...
@@ -24,6 +24,7 @@
...
@@ -24,6 +24,7 @@
.project-list
{
.project-list
{
flex
:
1
;
flex
:
1
;
margin-bottom
:
10px
;
}
}
.project-info
{
.project-info
{
...
...
src/views/Home.vue
View file @
2c352a61
...
@@ -4,45 +4,43 @@
...
@@ -4,45 +4,43 @@
class=
"editor-version"
>
{{
env
.
version
}}
</span></p>
class=
"editor-version"
>
{{
env
.
version
}}
</span></p>
<main>
<main>
<div
class=
"project-list"
>
<div
class=
"project-list"
>
<div>
<el-table
<el-table
:data=
"projects"
:data=
"projects"
:empty-text=
"$t('No projects')"
:empty-text=
"$t('No projects')"
height=
"100%"
style=
"width: 100%"
>
>
<el-table-column
<el-table-column
:label=
"$t('Projects')"
>
:label=
"$t('Projects')"
>
<template
slot-scope=
"scope"
>
<template
slot-scope=
"scope"
>
<div
class=
"project-info"
>
<div
class=
"project-info"
>
<span
class=
"project-name"
>
{{
scope
.
row
.
name
}}
</span>
<span
class=
"project-name"
>
{{
scope
.
row
.
name
}}
</span>
<el-tag
size=
"mini"
type=
"success"
>
{{
scope
.
row
.
creator
}}
</el-tag>
<el-tag
size=
"mini"
type=
"success"
>
{{
scope
.
row
.
creator
}}
</el-tag>
<el-tag
size=
"mini"
type=
"warning"
>
{{
moment
(
scope
.
row
.
update_time
)
}}
</el-tag>
<el-tag
size=
"mini"
type=
"warning"
>
{{
moment
(
scope
.
row
.
update_time
)
}}
</el-tag>
</div>
</div>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
<el-table-column
fixed=
"right"
fixed=
"right"
width=
"140"
>
width=
"140"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<el-button
<el-button
@
click
.
native
.
prevent=
"selectProject(scope.row)"
@
click
.
native
.
prevent=
"selectProject(scope.row)"
type=
"primary"
icon=
"el-icon-edit"
type=
"primary"
icon=
"el-icon-edit"
size=
"small"
circle
plain
>
size=
"small"
circle
plain
>
</el-button>
</el-button>
<el-button
<el-button
@
click
.
native
.
prevent=
"showDuplicateProjectDialog(scope.row)"
@
click
.
native
.
prevent=
"showDuplicateProjectDialog(scope.row)"
type=
"success"
icon=
"el-icon-document-copy"
type=
"success"
icon=
"el-icon-document-copy"
size=
"small"
circle
plain
>
size=
"small"
circle
plain
>
</el-button>
</el-button>
<el-button
<el-button
@
click
.
native
.
prevent=
"deleteProject(scope.row)"
@
click
.
native
.
prevent=
"deleteProject(scope.row)"
type=
"danger"
icon=
"el-icon-delete"
type=
"danger"
icon=
"el-icon-delete"
size=
"small"
circle
plain
>
size=
"small"
circle
plain
>
</el-button>
</el-button>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
</el-table>
</el-table>
</div>
</div>
</div>
<div>
<div>
<el-button
@
click=
"showCreateProjectDialog()"
>
{{$t('Create')}}
</el-button>
<el-button
@
click=
"showCreateProjectDialog()"
>
{{$t('Create')}}
</el-button>
...
...
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