Skip to content

Commit 3fd9a84

Browse files
committed
keep in sync with vue-element-admin
1 parent dd37f24 commit 3fd9a84

File tree

5 files changed

+32
-10
lines changed

5 files changed

+32
-10
lines changed

src/styles/sidebar.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
min-height: 100%;
55
transition: margin-left .28s;
66
margin-left: 180px;
7+
position: relative;
78
}
89
// 侧边栏
910
.sidebar-container {

src/views/404.vue

Lines changed: 16 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<template>
2-
<div style="background:#f0f2f5;margin-top: -20px;">
2+
<div class="wscn-http404-container">
33
<div class="wscn-http404">
44
<div class="pic-404">
55
<img class="pic-404__parent" :src="img_404" alt="404">
@@ -9,7 +9,9 @@
99
</div>
1010
<div class="bullshit">
1111
<div class="bullshit__oops">OOPS!</div>
12-
<div class="bullshit__info">版权所有<a class="link-type" href="https://wallstreetcn.com" target='_blank'>华尔街见闻</a></div>
12+
<div class="bullshit__info">版权所有
13+
<a class='link-type' href='https://wallstreetcn.com' target='_blank'>华尔街见闻</a>
14+
</div>
1315
<div class="bullshit__headline">{{ message }}</div>
1416
<div class="bullshit__info">请检查您输入的网址是否正确,请点击以下按钮返回主页或者发送错误报告</div>
1517
<a href="" class="bullshit__return-home">返回首页</a>
@@ -23,6 +25,7 @@ import img_404 from '@/assets/404_images/404.png'
2325
import img_404_cloud from '@/assets/404_images/404_cloud.png'
2426
2527
export default {
28+
name: 'page404',
2629
data() {
2730
return {
2831
img_404,
@@ -31,24 +34,28 @@ export default {
3134
},
3235
computed: {
3336
message() {
34-
return '特朗普说这个页面你不能进......'
37+
return '网管说这个页面你不能进......'
3538
}
3639
}
3740
}
3841
</script>
3942

4043
<style rel="stylesheet/scss" lang="scss" scoped>
44+
.wscn-http404-container{
45+
transform: translate(-50%,-50%);
46+
position: absolute;
47+
top: 40%;
48+
left: 50%;
49+
}
4150
.wscn-http404 {
4251
position: relative;
4352
width: 1200px;
44-
margin: 20px auto 60px;
45-
padding: 0 100px;
53+
padding: 0 50px;
4654
overflow: hidden;
4755
.pic-404 {
4856
position: relative;
4957
float: left;
5058
width: 600px;
51-
padding: 150px 0;
5259
overflow: hidden;
5360
&__parent {
5461
width: 100%;
@@ -160,7 +167,7 @@ export default {
160167
position: relative;
161168
float: left;
162169
width: 300px;
163-
padding: 150px 0;
170+
padding: 30px 0;
164171
overflow: hidden;
165172
&__oops {
166173
font-size: 32px;
@@ -176,7 +183,8 @@ export default {
176183
&__headline {
177184
font-size: 20px;
178185
line-height: 24px;
179-
color: #1482f0;
186+
color: #222;
187+
font-weight: bold;
180188
opacity: 0;
181189
margin-bottom: 10px;
182190
animation-name: slideUp;
@@ -225,5 +233,4 @@ export default {
225233
}
226234
}
227235
}
228-
229236
</style>

src/views/layout/Layout.vue

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ export default {
3131
classObj() {
3232
return {
3333
hideSidebar: !this.sidebar.opened,
34+
openSidebar: this.sidebar.opened,
3435
withoutAnimation: this.sidebar.withoutAnimation,
3536
mobile: this.device === 'mobile'
3637
}
@@ -51,6 +52,10 @@ export default {
5152
position: relative;
5253
height: 100%;
5354
width: 100%;
55+
&.mobile.openSidebar{
56+
position: fixed;
57+
top: 0;
58+
}
5459
}
5560
.drawer-bg {
5661
background: #000;

src/views/layout/components/AppMain.vue

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,12 @@ export default {
1717
}
1818
}
1919
</script>
20+
21+
<style scoped>
22+
.app-main {
23+
/*50 = navbar */
24+
min-height: calc(100vh - 50px);
25+
position: relative;
26+
overflow: hidden;
27+
}
28+
</style>

src/views/table/index.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<template>
22
<div class="app-container">
3-
<el-table :data="list" v-loading.body="listLoading" element-loading-text="Loading" border fit highlight-current-row>
3+
<el-table :data="list" v-loading="listLoading" element-loading-text="Loading" border fit highlight-current-row>
44
<el-table-column align="center" label='ID' width="95">
55
<template slot-scope="scope">
66
{{scope.$index}}

0 commit comments

Comments
 (0)