commit | author | age
|
ad2b70
|
1 |
<template> |
L |
2 |
<div class="blog-main"> |
|
3 |
<a-row> |
|
4 |
<a-col v-bind="colApiLeft"> |
|
5 |
<boxLeft></boxLeft> |
|
6 |
</a-col> |
|
7 |
<a-col v-bind="colApiMain "> |
|
8 |
<router-view></router-view> |
|
9 |
</a-col> |
|
10 |
<a-col v-bind="colApiRight"> |
|
11 |
<boxRight></boxRight> |
|
12 |
</a-col> |
|
13 |
</a-row> |
|
14 |
</div> |
|
15 |
</template> |
|
16 |
|
|
17 |
<script> |
|
18 |
import boxLeft from "./boxLeft.vue" |
|
19 |
import boxRight from "./boxRight.vue" |
|
20 |
import box6 from "./box6-articleList.vue" |
|
21 |
export default { |
|
22 |
components: { |
|
23 |
boxLeft, |
|
24 |
boxRight, |
|
25 |
box6 |
|
26 |
}, |
|
27 |
|
|
28 |
data() { |
|
29 |
return { |
|
30 |
sliderApi: { |
|
31 |
collapsible: true, //是否可收起 |
|
32 |
|
|
33 |
collapsedWidth: 0 //收缩宽度,设置为 0 会出现特殊 trigger |
|
34 |
}, |
|
35 |
colApiLeft: { |
|
36 |
xs: 0, |
|
37 |
sm: 0, |
|
38 |
md: 0, |
|
39 |
lg: 8, |
|
40 |
xl: 8, |
|
41 |
xxl: 6, |
|
42 |
}, |
|
43 |
colApiRight: { |
|
44 |
xs: 0, |
|
45 |
sm: 0, |
|
46 |
md: 0, |
|
47 |
lg: 0, |
|
48 |
xl: 0, |
|
49 |
xxl: 4, |
|
50 |
}, |
|
51 |
colApiMain: { |
|
52 |
xs: 24, |
|
53 |
sm: 24, |
|
54 |
md: 24, |
|
55 |
lg: 14, |
|
56 |
xl: 14, |
|
57 |
xxl: 14, |
|
58 |
} |
|
59 |
} |
|
60 |
} |
|
61 |
} |
|
62 |
</script> |
|
63 |
|
|
64 |
<style lang="less"> |
|
65 |
.blog-main { |
|
66 |
padding-left: 5%; |
|
67 |
padding-right: 5%; |
|
68 |
} |
|
69 |
|
|
70 |
/*左右两边的盒子容器*/ |
|
71 |
.blog-cell { |
|
72 |
opacity: 0.8; |
|
73 |
padding: 0px 25px 10px; |
|
74 |
} |
|
75 |
|
|
76 |
/*左边部分*/ |
|
77 |
.blog-left-side { |
|
78 |
position: sticky; |
|
79 |
// top: 80px; |
|
80 |
padding-left: 2%; |
|
81 |
/*padding-right: 2%;*/ |
|
82 |
z-index: 100; |
|
83 |
} |
|
84 |
|
|
85 |
/*中间部分*/ |
|
86 |
.blog-body { |
|
87 |
padding-top: 10px; |
|
88 |
/*padding-left: 3%;*/ |
|
89 |
/*padding-right: 3%;*/ |
|
90 |
} |
|
91 |
|
|
92 |
/*右边部分*/ |
|
93 |
.blog-right-side { |
|
94 |
position: sticky; |
|
95 |
top: -19%; |
|
96 |
padding-top: 10px; |
|
97 |
/*padding-left: 2%;*/ |
|
98 |
/*padding-right: 2%;*/ |
|
99 |
z-index: 100; |
|
100 |
} |
|
101 |
|
|
102 |
div .blog-right-side-meta div { |
|
103 |
padding-left: 6%; |
|
104 |
padding-right: 6%; |
|
105 |
margin-bottom: 3%; |
|
106 |
} |
|
107 |
|
|
108 |
|
|
109 |
/*--------------------- |
|
110 |
| 核心盒子构成start | |
|
111 |
------- ---------------*/ |
|
112 |
.blog-container { |
|
113 |
border-radius: 15px; |
|
114 |
background-color: white; |
|
115 |
|
|
116 |
line-height: 1.4; |
|
117 |
white-space: nowrap; |
|
118 |
/*规定段落中的文本不进行换行:*/ |
|
119 |
text-align: center; |
|
120 |
padding-top: 20px; |
|
121 |
padding-bottom: 20px; |
|
122 |
max-height: 300px; |
|
123 |
/*margin-top: 10px;*/ |
|
124 |
/*min-height: 200px;*/ |
|
125 |
|
|
126 |
// overflow-x: hidden; |
|
127 |
// overflow-y: overlay; |
|
128 |
// display: block; |
|
129 |
|
|
130 |
padding-top: 10px; |
|
131 |
padding-bottom: 20px; |
|
132 |
overflow: hidden; |
|
133 |
box-shadow: 1px 1px 1px 2px #1196c459 |
|
134 |
} |
|
135 |
|
|
136 |
.show-line { |
|
137 |
border-top: 1px solid #999; |
|
138 |
} |
|
139 |
|
|
140 |
.blog-scroll { |
|
141 |
padding-top: 10px; |
|
142 |
max-height: 200px; |
|
143 |
|
|
144 |
overflow-x: hidden; |
|
145 |
overflow-y: overlay; |
|
146 |
} |
|
147 |
|
|
148 |
|
|
149 |
.blog-scroll:hover::-webkit-scrollbar { |
|
150 |
display: block; |
|
151 |
} |
|
152 |
|
|
153 |
.blog-scroll:hover::-webkit-scrollbar { |
|
154 |
display: block; |
|
155 |
} |
|
156 |
|
|
157 |
.blog-scroll::-webkit-scrollbar { |
|
158 |
width: 5px; |
|
159 |
display: none; |
|
160 |
} |
|
161 |
|
|
162 |
.blog-scroll::-webkit-scrollbar-thumb { |
|
163 |
background-color: rgba(153, 154, 170, 0.3); |
|
164 |
border-radius: 2px; |
|
165 |
} |
|
166 |
|
|
167 |
/*margin滚动条上偏移*/ |
|
168 |
.blog-scroll::-webkit-scrollbar-track { |
|
169 |
margin-top: 5px; |
|
170 |
margin-bottom: 5px; |
|
171 |
} |
|
172 |
</style> |