Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
ant-design-pro-vue
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
tianzhuanghu
ant-design-pro-vue
Commits
36b3f2de
Commit
36b3f2de
authored
Sep 20, 2018
by
Sendya
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update: layout style
support mobile style
parent
e24bff54
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
71 additions
and
9 deletions
+71
-9
RankList.vue
src/components/chart/RankList.vue
+7
-2
LayoutMain.vue
src/components/layout/LayoutMain.vue
+26
-2
PageHeader.vue
src/components/layout/PageHeader.vue
+18
-0
Workplace.vue
src/views/dashboard/Workplace.vue
+20
-5
No files found.
src/components/chart/RankList.vue
View file @
36b3f2de
...
@@ -4,8 +4,8 @@
...
@@ -4,8 +4,8 @@
<ul
class=
"list"
>
<ul
class=
"list"
>
<li
:key=
"index"
v-for=
"(item, index) in list"
>
<li
:key=
"index"
v-for=
"(item, index) in list"
>
<span
:class=
"index
<
3
?
'
active
'
:
null
"
>
{{
index
+
1
}}
</span>
<span
:class=
"index
<
3
?
'
active
'
:
null
"
>
{{
index
+
1
}}
</span>
<span
>
{{
item
.
name
}}
</span>
<span
>
{{
item
.
name
}}
</span>
<span
>
{{
item
.
total
}}
</span>
<span
>
{{
item
.
total
}}
</span>
</li>
</li>
</ul>
</ul>
</div>
</div>
...
@@ -70,4 +70,8 @@
...
@@ -70,4 +70,8 @@
}
}
}
}
.mobile
.rank
{
padding
:
0
32px
32px
32px
;
}
</
style
>
</
style
>
\ No newline at end of file
src/components/layout/LayoutMain.vue
View file @
36b3f2de
<
template
>
<
template
>
<a-layout
class=
"layout"
>
<a-layout
class=
"layout"
:class=
"device"
>
<a-drawer
<a-drawer
v-if=
"device === 'mobile'"
v-if=
"device === 'mobile'"
wrapClassName=
"drawer-sider
"
:wrapClassName=
"'drawer-sider ' + theme
"
placement=
"left"
placement=
"left"
@
close=
"() => this.collapsed = false"
@
close=
"() => this.collapsed = false"
:closable=
"false"
:closable=
"false"
...
@@ -93,6 +93,14 @@
...
@@ -93,6 +93,14 @@
min-height
:
100vh
;
min-height
:
100vh
;
overflow-x
:
hidden
;
overflow-x
:
hidden
;
&.mobile
{
.ant-table-wrapper
{
.ant-table-body
{
overflow-y
:
auto
;
}
}
}
&
.ant-layout-has-sider
{
&
.ant-layout-has-sider
{
flex-direction
:
row
;
flex-direction
:
row
;
}
}
...
@@ -156,6 +164,22 @@
...
@@ -156,6 +164,22 @@
//
drawer-sider
自定义
//
drawer-sider
自定义
.ant-drawer.drawer-sider
{
.ant-drawer.drawer-sider
{
.sider
{
box-shadow
:
none
;
}
&
.dark
{
.ant-drawer-content
{
background-color
:
rgb
(
0
,
21
,
41
);
}
}
&
.light
{
box-shadow
:
none
;
.ant-drawer-content
{
background-color
:
#fff
;
}
}
.ant-drawer-body
{
.ant-drawer-body
{
padding
:
0
padding
:
0
}
}
...
...
src/components/layout/PageHeader.vue
View file @
36b3f2de
...
@@ -176,4 +176,21 @@
...
@@ -176,4 +176,21 @@
}
}
}
}
}
}
.mobile
.page-header
{
.main
{
.row
{
flex-wrap
:
wrap
;
}
.extra
{
flex
:
1
1
auto
;
margin-left
:
0
;
min-width
:
0
;
text-align
:
right
;
}
}
}
</
style
>
</
style
>
\ No newline at end of file
src/views/dashboard/Workplace.vue
View file @
36b3f2de
<
template
>
<
template
>
<page-layout
:avatar=
"avatar"
>
<page-layout
:avatar=
"avatar"
>
<div
slot=
"headerContent"
>
<div
slot=
"headerContent"
>
<div
class=
"title"
>
{{
timeFix
}}
,
{{
user
.
name
}}
,
{{
welcome
()
}}
</div>
<div
class=
"title"
>
{{
timeFix
}}
,
{{
user
.
name
}}
<span
class=
"welcome-text"
>
,
{{
welcome
()
}}
</span></div>
<div>
前端工程师 | 蚂蚁金服 - 某某某事业群 - VUE平台
</div>
<div>
前端工程师 | 蚂蚁金服 - 某某某事业群 - VUE平台
</div>
</div>
</div>
<div
slot=
"extra"
>
<div
slot=
"extra"
>
<a-row
>
<a-row
class=
"more-info"
>
<a-col
:s
m=
"8"
:xs=
"24"
>
<a-col
:s
pan=
"8"
>
<head-info
title=
"项目数"
content=
"56"
:bordered=
"true"
/>
<head-info
title=
"项目数"
content=
"56"
:bordered=
"true"
/>
</a-col>
</a-col>
<a-col
:s
m=
"8"
:xs=
"24"
>
<a-col
:s
pan=
"8"
>
<head-info
title=
"团队排名"
content=
"8/24"
:bordered=
"true"
/>
<head-info
title=
"团队排名"
content=
"8/24"
:bordered=
"true"
/>
</a-col>
</a-col>
<a-col
:s
m=
"8"
:xs=
"24"
>
<a-col
:s
pan=
"8"
>
<head-info
title=
"项目访问"
content=
"2,223"
/>
<head-info
title=
"项目访问"
content=
"2,223"
/>
</a-col>
</a-col>
</a-row>
</a-row>
...
@@ -326,4 +326,18 @@
...
@@ -326,4 +326,18 @@
}
}
}
}
}
}
.mobile
{
.more-info
{
border-top
:
1px
solid
#e8e8e8
;
padding-top
:
16px
;
margin
:
16px
0
16px
;
}
.content
.title
.welcome-text
{
display
:
none
;
}
}
</
style
>
</
style
>
\ No newline at end of file
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