mirror of
https://github.com/iczer/vue-antd-admin
synced 2025-04-06 04:00:06 +08:00
修改:调整部分页面样式问题;
This commit is contained in:
parent
54c130a1b0
commit
0a490feda3
@ -75,7 +75,6 @@ export default {
|
|||||||
display: flex;
|
display: flex;
|
||||||
.row {
|
.row {
|
||||||
display: flex;
|
display: flex;
|
||||||
width: 100%;
|
|
||||||
}
|
}
|
||||||
.avatar {
|
.avatar {
|
||||||
flex: 0 1 72px;
|
flex: 0 1 72px;
|
||||||
@ -89,7 +88,6 @@ export default {
|
|||||||
}
|
}
|
||||||
.main{
|
.main{
|
||||||
width: 100%;
|
width: 100%;
|
||||||
flex: 0 1 auto;
|
|
||||||
.title{
|
.title{
|
||||||
flex: auto;
|
flex: auto;
|
||||||
font-size: 20px;
|
font-size: 20px;
|
||||||
@ -104,14 +102,12 @@ export default {
|
|||||||
margin-right: 16px;
|
margin-right: 16px;
|
||||||
}
|
}
|
||||||
.content{
|
.content{
|
||||||
/*margin-bottom: 16px;*/
|
flex: 1;
|
||||||
flex: auto;
|
|
||||||
}
|
}
|
||||||
.extra{
|
.extra{
|
||||||
flex: 0 1 auto;
|
display: flex;
|
||||||
margin-left: 88px;
|
margin-left: 88px;
|
||||||
min-width: 242px;
|
min-width: 420px;
|
||||||
text-align: right;
|
|
||||||
}
|
}
|
||||||
.action{
|
.action{
|
||||||
margin-left: 56px;
|
margin-left: 56px;
|
||||||
|
@ -32,7 +32,7 @@
|
|||||||
<a-switch :checked="fixedHeader" slot="actions" size="small" @change="setFixedHeader" />
|
<a-switch :checked="fixedHeader" slot="actions" size="small" @change="setFixedHeader" />
|
||||||
</a-list-item>
|
</a-list-item>
|
||||||
<a-list-item>
|
<a-list-item>
|
||||||
固定Siderbar
|
固定侧边栏
|
||||||
<a-switch :checked="fixedSider" slot="actions" size="small" @change="setFixedSider" />
|
<a-switch :checked="fixedSider" slot="actions" size="small" @change="setFixedSider" />
|
||||||
</a-list-item>
|
</a-list-item>
|
||||||
</a-list>
|
</a-list>
|
||||||
|
@ -2,7 +2,6 @@
|
|||||||
<div class="head-info">
|
<div class="head-info">
|
||||||
<span>{{title}}</span>
|
<span>{{title}}</span>
|
||||||
<p>{{content}}</p>
|
<p>{{content}}</p>
|
||||||
<em v-if="bordered" />
|
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@ -15,29 +14,19 @@ export default {
|
|||||||
|
|
||||||
<style lang="less" scoped>
|
<style lang="less" scoped>
|
||||||
.head-info{
|
.head-info{
|
||||||
position: relative;
|
|
||||||
text-align: center;
|
text-align: center;
|
||||||
padding: 0 32px;
|
padding: 0 32px;
|
||||||
|
width: 100%;
|
||||||
span{
|
span{
|
||||||
color: rgba(0,0,0,.45);
|
color: rgba(0,0,0,.45);
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
line-height: 22px;
|
|
||||||
margin-bottom: 4px;
|
margin-bottom: 4px;
|
||||||
};
|
}
|
||||||
p{
|
p{
|
||||||
color: rgba(0,0,0,.85);
|
color: rgba(0,0,0,.85);
|
||||||
font-size: 24px;
|
font-size: 24px;
|
||||||
line-height: 32px;
|
|
||||||
margin: 0;
|
margin: 0;
|
||||||
};
|
|
||||||
em{
|
|
||||||
background-color: #e8e8e8;
|
|
||||||
position: absolute;
|
|
||||||
height: 56px;
|
|
||||||
width: 1px;
|
|
||||||
top: 0;
|
|
||||||
right: 0;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<a-dropdown>
|
<a-dropdown>
|
||||||
<div class="header-avatar" style="cursor: pointer">
|
<div class="header-avatar" style="cursor: pointer">
|
||||||
<a-avatar class="avatar" :size="30" shape="circle" :src="user.avatar"/>
|
<a-avatar class="avatar" size="small" shape="circle" :src="user.avatar"/>
|
||||||
<span class="name">{{user.name}}</span>
|
<span class="name">{{user.name}}</span>
|
||||||
</div>
|
</div>
|
||||||
<a-menu :class="['avatar-menu']" slot="overlay">
|
<a-menu :class="['avatar-menu']" slot="overlay">
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
</template>
|
</template>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<slot v-if="this.$refs.extra" slot="extra" name="extra"></slot>
|
<slot v-if="this.$slots.extra" slot="extra" name="extra"></slot>
|
||||||
</page-header>
|
</page-header>
|
||||||
<div ref="page" :class="['page-content', layout]" >
|
<div ref="page" :class="['page-content', layout]" >
|
||||||
<slot></slot>
|
<slot></slot>
|
||||||
|
@ -4,11 +4,11 @@
|
|||||||
<div class="title">{{currUser.timefix}},{{currUser.name}},{{currUser.welcome}}</div>
|
<div class="title">{{currUser.timefix}},{{currUser.name}},{{currUser.welcome}}</div>
|
||||||
<div>{{currUser.position}}</div>
|
<div>{{currUser.position}}</div>
|
||||||
</div>
|
</div>
|
||||||
<div slot="extra">
|
<template slot="extra">
|
||||||
<head-info title="项目数" content="56" :bordered="true"/>
|
<head-info class="split-right" title="项目数" content="56"/>
|
||||||
<head-info title="团队内排名" content="8/24" :bordered="true"/>
|
<head-info class="split-right" title="团队内排名" content="8/24"/>
|
||||||
<head-info title="项目访问" content="2,223"/>
|
<head-info class="split-right" title="项目访问" content="2,223"/>
|
||||||
</div>
|
</template>
|
||||||
<div>
|
<div>
|
||||||
<a-row style="margin: 0 -12px">
|
<a-row style="margin: 0 -12px">
|
||||||
<a-col style="padding: 0 12px" :xl="16" :lg="24" :md="24" :sm="24" :xs="24">
|
<a-col style="padding: 0 12px" :xl="16" :lg="24" :md="24" :sm="24" :xs="24">
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
<detail-list-item term="生效日期">2018-08-07 ~ 2018-12-11</detail-list-item>
|
<detail-list-item term="生效日期">2018-08-07 ~ 2018-12-11</detail-list-item>
|
||||||
<detail-list-item term="备注">请于两个工作日内确认</detail-list-item>
|
<detail-list-item term="备注">请于两个工作日内确认</detail-list-item>
|
||||||
</detail-list>
|
</detail-list>
|
||||||
<a-row slot="extra">
|
<a-row style="text-align: right;width: 100%;" slot="extra">
|
||||||
<a-col :xs="24" :sm="12">
|
<a-col :xs="24" :sm="12">
|
||||||
<div class="text">状态</div>
|
<div class="text">状态</div>
|
||||||
<div class="heading">待审批</div>
|
<div class="heading">待审批</div>
|
||||||
@ -19,7 +19,7 @@
|
|||||||
</a-col>
|
</a-col>
|
||||||
</a-row>
|
</a-row>
|
||||||
<template slot="action">
|
<template slot="action">
|
||||||
<a-button-group style="margin-right: 4px;">
|
<a-button-group style="margin-right: 8px;">
|
||||||
<a-button>操作</a-button>
|
<a-button>操作</a-button>
|
||||||
<a-button>操作</a-button>
|
<a-button>操作</a-button>
|
||||||
<a-button><a-icon type="ellipsis"/></a-button>
|
<a-button><a-icon type="ellipsis"/></a-button>
|
||||||
@ -171,7 +171,7 @@ export default {
|
|||||||
}
|
}
|
||||||
.heading{
|
.heading{
|
||||||
color: rgba(0,0,0,.85);
|
color: rgba(0,0,0,.85);
|
||||||
font-size: 20px;
|
font-size: 28px;
|
||||||
}
|
}
|
||||||
.nodata{
|
.nodata{
|
||||||
color: rgba(0,0,0,.25);
|
color: rgba(0,0,0,.25);
|
||||||
|
@ -2,13 +2,13 @@
|
|||||||
<div>
|
<div>
|
||||||
<a-card :bordered="false">
|
<a-card :bordered="false">
|
||||||
<a-row>
|
<a-row>
|
||||||
<a-col :sm="8" :xs="24">
|
<a-col :sm="8" :xs="24" class="split-right">
|
||||||
<head-info title="我的待办" content="8个任务" :bordered="true"/>
|
<head-info title="我的待办" content="8个任务" :bordered="true"/>
|
||||||
</a-col>
|
</a-col>
|
||||||
<a-col :sm="8" :xs="24">
|
<a-col :sm="8" :xs="24" class="split-right">
|
||||||
<head-info title="本周任务平均处理时间" content="32分钟" :bordered="true"/>
|
<head-info title="本周任务平均处理时间" content="32分钟" :bordered="true"/>
|
||||||
</a-col>
|
</a-col>
|
||||||
<a-col :sm="8" :xs="24">
|
<a-col :sm="8" :xs="24" class="split-right">
|
||||||
<head-info title="本周完成任务数" content="24个"/>
|
<head-info title="本周完成任务数" content="24个"/>
|
||||||
</a-col>
|
</a-col>
|
||||||
</a-row>
|
</a-row>
|
||||||
@ -33,7 +33,7 @@
|
|||||||
description="那是一种内在的东西, 他们到达不了,也无法触及的"
|
description="那是一种内在的东西, 他们到达不了,也无法触及的"
|
||||||
>
|
>
|
||||||
<a-avatar slot="avatar" size="large" shape="square" src="https://gw.alipayobjects.com/zos/rmsportal/WdGqmHpayyMjiEhcKoVE.png"/>
|
<a-avatar slot="avatar" size="large" shape="square" src="https://gw.alipayobjects.com/zos/rmsportal/WdGqmHpayyMjiEhcKoVE.png"/>
|
||||||
<a slot="title">Alipay</a>
|
<a slot="title">AliPay</a>
|
||||||
</a-list-item-meta>
|
</a-list-item-meta>
|
||||||
<div slot="actions">
|
<div slot="actions">
|
||||||
<a>编辑</a>
|
<a>编辑</a>
|
||||||
@ -75,11 +75,6 @@ export default {
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="less" scoped>
|
<style lang="less" scoped>
|
||||||
.ant-avatar-lg{
|
|
||||||
width: 48px;
|
|
||||||
height: 48px;
|
|
||||||
line-height: 48px;
|
|
||||||
}
|
|
||||||
.list-content-item{
|
.list-content-item{
|
||||||
color: rgba(0,0,0,.45);
|
color: rgba(0,0,0,.45);
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
@ -90,8 +85,7 @@ export default {
|
|||||||
line-height: 20px;
|
line-height: 20px;
|
||||||
}
|
}
|
||||||
p{
|
p{
|
||||||
margin-top: 4px;
|
margin: 4px 0 0;
|
||||||
margin-bottom: 0;
|
|
||||||
line-height: 22px;
|
line-height: 22px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -21,3 +21,8 @@
|
|||||||
background: @primary-3;
|
background: @primary-3;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
.split-right{
|
||||||
|
&:not(:last-child) {
|
||||||
|
border-right: 1px solid rgba(98, 98, 98, 0.2);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user