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 @@
.project-list
{
flex
:
1
;
margin-bottom
:
10px
;
}
.project-info
{
...
...
src/views/Home.vue
View file @
2c352a61
...
...
@@ -4,45 +4,43 @@
class=
"editor-version"
>
{{
env
.
version
}}
</span></p>
<main>
<div
class=
"project-list"
>
<div>
<el-table
:data=
"projects"
:empty-text=
"$t('No projects')"
style=
"width: 100%"
>
<el-table-column
:label=
"$t('Projects')"
>
<template
slot-scope=
"scope"
>
<div
class=
"project-info"
>
<span
class=
"project-name"
>
{{
scope
.
row
.
name
}}
</span>
<el-tag
size=
"mini"
type=
"success"
>
{{
scope
.
row
.
creator
}}
</el-tag>
<el-tag
size=
"mini"
type=
"warning"
>
{{
moment
(
scope
.
row
.
update_time
)
}}
</el-tag>
</div>
</
template
>
</el-table-column>
<el-table-column
fixed=
"right"
width=
"140"
>
<
template
slot-scope=
"scope"
>
<el-button
@
click
.
native
.
prevent=
"selectProject(scope.row)"
type=
"primary"
icon=
"el-icon-edit"
size=
"small"
circle
plain
>
</el-button>
<el-button
@
click
.
native
.
prevent=
"showDuplicateProjectDialog(scope.row)"
type=
"success"
icon=
"el-icon-document-copy"
size=
"small"
circle
plain
>
</el-button>
<el-button
@
click
.
native
.
prevent=
"deleteProject(scope.row)"
type=
"danger"
icon=
"el-icon-delete"
size=
"small"
circle
plain
>
</el-button>
</
template
>
</el-table-column>
</el-table>
</div>
<el-table
:data=
"projects"
:empty-text=
"$t('No projects')"
height=
"100%"
>
<el-table-column
:label=
"$t('Projects')"
>
<template
slot-scope=
"scope"
>
<div
class=
"project-info"
>
<span
class=
"project-name"
>
{{
scope
.
row
.
name
}}
</span>
<el-tag
size=
"mini"
type=
"success"
>
{{
scope
.
row
.
creator
}}
</el-tag>
<el-tag
size=
"mini"
type=
"warning"
>
{{
moment
(
scope
.
row
.
update_time
)
}}
</el-tag>
</div>
</
template
>
</el-table-column>
<el-table-column
fixed=
"right"
width=
"140"
>
<
template
slot-scope=
"scope"
>
<el-button
@
click
.
native
.
prevent=
"selectProject(scope.row)"
type=
"primary"
icon=
"el-icon-edit"
size=
"small"
circle
plain
>
</el-button>
<el-button
@
click
.
native
.
prevent=
"showDuplicateProjectDialog(scope.row)"
type=
"success"
icon=
"el-icon-document-copy"
size=
"small"
circle
plain
>
</el-button>
<el-button
@
click
.
native
.
prevent=
"deleteProject(scope.row)"
type=
"danger"
icon=
"el-icon-delete"
size=
"small"
circle
plain
>
</el-button>
</
template
>
</el-table-column>
</el-table>
</div>
<div>
<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