chore: upgrade antd. (halo-dev/console#105)

pull/3445/head
Ryan Wang 2020-03-18 21:45:05 +08:00 committed by GitHub
parent fe2ed25541
commit ecbda21ea2
6 changed files with 12 additions and 60 deletions

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 62 KiB

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 54 KiB

View File

@ -832,51 +832,11 @@ body {
align-items: center; align-items: center;
text-align: center; text-align: center;
margin-top: 150px; margin-top: 150px;
.img {
display: inline-block;
padding-right: 52px;
zoom: 1;
img {
height: 360px;
max-width: 430px;
}
}
.content {
display: inline-block;
flex: auto;
h1 {
color: #434e59;
font-size: 72px;
font-weight: 600;
line-height: 72px;
margin-bottom: 24px;
}
.desc {
color: rgba(0, 0, 0, 0.45);
font-size: 20px;
line-height: 28px;
margin-bottom: 16px;
}
}
} }
.mobile { .mobile {
.exception { .exception {
margin-top: 30px; margin-top: 30px;
.img {
padding-right: unset;
img {
height: 40%;
max-width: 80%;
}
}
} }
} }

View File

@ -47,7 +47,8 @@ import {
ConfigProvider, ConfigProvider,
Timeline, Timeline,
Steps, Steps,
Empty Empty,
Result
} from 'ant-design-vue' } from 'ant-design-vue'
Vue.use(Anchor) Vue.use(Anchor)
@ -96,6 +97,7 @@ Vue.use(ConfigProvider)
Vue.use(Timeline) Vue.use(Timeline)
Vue.use(Steps) Vue.use(Steps)
Vue.use(Empty) Vue.use(Empty)
Vue.use(Result)
Vue.prototype.$message = message Vue.prototype.$message = message
Vue.prototype.$notification = notification Vue.prototype.$notification = notification

View File

@ -1,18 +1,14 @@
<template> <template>
<div class="exception"> <div class="exception">
<div class="img"> <a-result
<img :src="config[type].img" /> :status="type"
</div> :title="type"
<div class="content"> :subTitle="config[type].desc"
<h1>{{ config[type].title }}</h1> >
<div class="desc">{{ config[type].desc }}</div> <template v-slot:extra>
<div class="action"> <a-button type="primary" @click="handleToHome"></a-button>
<a-button </template>
type="primary" </a-result>
@click="handleToHome"
>返回首页</a-button>
</div>
</div>
</div> </div>
</template> </template>

View File

@ -1,12 +1,8 @@
const types = { const types = {
404: { 404: {
img: '/images/404.svg',
title: '404',
desc: '抱歉,你访问的页面不存在' desc: '抱歉,你访问的页面不存在'
}, },
500: { 500: {
img: '/images/500.svg',
title: '500',
desc: '抱歉,服务器出错了' desc: '抱歉,服务器出错了'
} }
} }