commit | author | age
|
ad2b70
|
1 |
<template> |
41b36f
|
2 |
<div> |
b505f3
|
3 |
<MyModal ref="myModal"></MyModal> |
I |
4 |
|
41b36f
|
5 |
<div class="blog-drawer"> |
I |
6 |
<a-drawer placement="left" :closable="false" :visible="visible1" :getContainer="'body'" |
aab811
|
7 |
:after-visible-change="afterVisibleChange" @close="onClose1" :zIndex="90" :width=270 |
b505f3
|
8 |
:bodyStyle="{padding:'0px'}" |
I |
9 |
:wrapStyle="{padding:'0px',top:'60px !important','height':'calc(100% - 60px) !important'}"> |
ad2b70
|
10 |
<boxLeft></boxLeft> |
41b36f
|
11 |
<boxRight></boxRight> |
I |
12 |
</a-drawer> |
|
13 |
</div> |
b505f3
|
14 |
|
41b36f
|
15 |
<div class="blog-main"> |
b505f3
|
16 |
|
41b36f
|
17 |
<a-row> |
I |
18 |
<a-col v-bind="colApiLeft"> |
|
19 |
<boxLeft></boxLeft> |
b505f3
|
20 |
<boxRight></boxRight> |
41b36f
|
21 |
</a-col> |
f5539f
|
22 |
|
b505f3
|
23 |
<a-col v-bind="colApiMain "> |
I |
24 |
<a-col v-bind="colMini" :style="{'position':'absolute','right':'30px'}"> |
|
25 |
<a-affix :offset-top="550"> |
|
26 |
<a-button @click="showDrawer1"> |
|
27 |
抽屉1 |
|
28 |
</a-button> |
|
29 |
</a-affix> |
|
30 |
</a-col> |
|
31 |
|
019990
|
32 |
<router-view class="fade"></router-view> |
41b36f
|
33 |
</a-col> |
f5539f
|
34 |
|
41b36f
|
35 |
<a-col v-bind="colApiRight" ref="myDrawer"> |
b505f3
|
36 |
<!-- <boxRight></boxRight> --> |
I |
37 |
<tool @showModal="showModal" @showDrawer1="showDrawer1"></tool> |
41b36f
|
38 |
</a-col> |
I |
39 |
</a-row> |
|
40 |
</div> |
|
41 |
|
ad2b70
|
42 |
</div> |
L |
43 |
</template> |
|
44 |
|
|
45 |
<script> |
b4f6a5
|
46 |
import tempFriendBox from "../group/tempFriendBox.vue" |
41b36f
|
47 |
import boxLeft from "../group/boxLeft.vue" |
I |
48 |
import boxRight from "../group/boxRight.vue" |
aab811
|
49 |
import articleListScorll from "../group/articleListScorll.vue" |
b505f3
|
50 |
import tool from "../group/tool.vue" |
I |
51 |
import MyModal from "../group/MyModal.vue" |
41b36f
|
52 |
|
ad2b70
|
53 |
export default { |
41b36f
|
54 |
|
ad2b70
|
55 |
components: { |
b4f6a5
|
56 |
tempFriendBox, |
ad2b70
|
57 |
boxLeft, |
L |
58 |
boxRight, |
aab811
|
59 |
articleListScorll, |
b505f3
|
60 |
tool, |
I |
61 |
MyModal, |
ad2b70
|
62 |
}, |
d629d9
|
63 |
methods: { |
f5539f
|
64 |
showModal() { |
b505f3
|
65 |
this.$refs.myModal.showModal(); |
f5539f
|
66 |
}, |
41b36f
|
67 |
afterVisibleChange(val) {}, |
d629d9
|
68 |
showDrawer1() { |
L |
69 |
this.visible1 = true; |
|
70 |
}, |
|
71 |
onClose1() { |
|
72 |
this.visible1 = false; |
|
73 |
}, |
b505f3
|
74 |
|
d629d9
|
75 |
}, |
ad2b70
|
76 |
data() { |
L |
77 |
return { |
d629d9
|
78 |
visible1: false, |
L |
79 |
visible2: false, |
b505f3
|
80 |
colMini: { |
I |
81 |
xs: 1, |
|
82 |
sm: 1, |
|
83 |
md: 1, |
|
84 |
lg: 0, |
|
85 |
xl: 0, |
|
86 |
xxl: 0 |
|
87 |
}, |
ad2b70
|
88 |
colApiLeft: { |
L |
89 |
xs: 0, |
|
90 |
sm: 0, |
41b36f
|
91 |
md: { |
I |
92 |
span: 8, |
|
93 |
}, |
|
94 |
lg: { |
|
95 |
span: 7, |
|
96 |
offset: 1, |
|
97 |
}, |
|
98 |
xl: { |
|
99 |
span: 5, |
|
100 |
offset: 2, |
|
101 |
}, |
|
102 |
xxl: { |
|
103 |
span: 4, |
|
104 |
offset: 3, |
|
105 |
}, |
ad2b70
|
106 |
}, |
L |
107 |
colApiRight: { |
|
108 |
xs: 0, |
|
109 |
sm: 0, |
|
110 |
md: 0, |
b505f3
|
111 |
lg: 1, |
I |
112 |
xl: 1, |
|
113 |
xxl: 1, |
ad2b70
|
114 |
}, |
L |
115 |
colApiMain: { |
|
116 |
xs: 24, |
41b36f
|
117 |
sm: { |
I |
118 |
span: 20, |
|
119 |
offset: 2, |
|
120 |
}, |
|
121 |
md: { |
b505f3
|
122 |
span: 15, |
41b36f
|
123 |
offset: 1, |
I |
124 |
}, |
|
125 |
lg: { |
|
126 |
span: 13, |
|
127 |
offset: 2, |
|
128 |
}, |
|
129 |
xl: { |
b505f3
|
130 |
span: 13, |
I |
131 |
offset: 2, |
41b36f
|
132 |
}, |
I |
133 |
xxl: { |
b505f3
|
134 |
span: 11, |
I |
135 |
offset: 2, |
41b36f
|
136 |
}, |
ad2b70
|
137 |
} |
41b36f
|
138 |
|
ad2b70
|
139 |
} |
L |
140 |
} |
|
141 |
} |
|
142 |
</script> |
|
143 |
|
|
144 |
<style lang="less"> |
56a4b8
|
145 |
.swichTag { |
41b36f
|
146 |
min-height: 750px; |
56a4b8
|
147 |
padding: 30px 30px 10px; |
I |
148 |
background-color: white; |
|
149 |
border-radius: 15px; |
|
150 |
} |
f5539f
|
151 |
|
L |
152 |
.holdHeight { |
aab811
|
153 |
min-height: 780px; |
I |
154 |
} |
d629d9
|
155 |
|
L |
156 |
|
ad2b70
|
157 |
.blog-main { |
41b36f
|
158 |
margin-top: 80px; |
ad2b70
|
159 |
padding-left: 5%; |
L |
160 |
padding-right: 5%; |
|
161 |
} |
|
162 |
|
|
163 |
/*左右两边的盒子容器*/ |
|
164 |
.blog-cell { |
|
165 |
opacity: 0.8; |
aab811
|
166 |
padding: 0px 14px 10px; |
ad2b70
|
167 |
} |
L |
168 |
|
|
169 |
/*左边部分*/ |
|
170 |
.blog-left-side { |
|
171 |
position: sticky; |
|
172 |
// top: 80px; |
41b36f
|
173 |
// padding-left: 2%; |
ad2b70
|
174 |
/*padding-right: 2%;*/ |
L |
175 |
} |
|
176 |
|
|
177 |
/*中间部分*/ |
|
178 |
.blog-body { |
|
179 |
padding-top: 10px; |
|
180 |
/*padding-left: 3%;*/ |
|
181 |
/*padding-right: 3%;*/ |
|
182 |
} |
|
183 |
|
|
184 |
/*右边部分*/ |
|
185 |
.blog-right-side { |
|
186 |
position: sticky; |
|
187 |
top: -19%; |
|
188 |
padding-top: 10px; |
|
189 |
/*padding-left: 2%;*/ |
|
190 |
/*padding-right: 2%;*/ |
|
191 |
} |
|
192 |
|
|
193 |
div .blog-right-side-meta div { |
|
194 |
padding-left: 6%; |
|
195 |
padding-right: 6%; |
|
196 |
margin-bottom: 3%; |
|
197 |
} |
|
198 |
|
|
199 |
|
06ee76
|
200 |
@card-box-shadow: 8px 8px 18px rgba(0, 0, 0, 0.1), -8px -8px 18px rgba(255, 255, 255, 1); |
L |
201 |
|
ad2b70
|
202 |
/*--------------------- |
L |
203 |
| 核心盒子构成start | |
|
204 |
------- ---------------*/ |
|
205 |
.blog-container { |
|
206 |
border-radius: 15px; |
06ee76
|
207 |
// background-color: #f5f8fa; |
ad2b70
|
208 |
background-color: white; |
L |
209 |
|
|
210 |
line-height: 1.4; |
|
211 |
white-space: nowrap; |
|
212 |
/*规定段落中的文本不进行换行:*/ |
|
213 |
text-align: center; |
|
214 |
padding-top: 20px; |
|
215 |
padding-bottom: 20px; |
|
216 |
max-height: 300px; |
|
217 |
/*margin-top: 10px;*/ |
|
218 |
/*min-height: 200px;*/ |
|
219 |
|
|
220 |
// overflow-x: hidden; |
|
221 |
// overflow-y: overlay; |
|
222 |
// display: block; |
|
223 |
|
|
224 |
padding-top: 10px; |
|
225 |
padding-bottom: 20px; |
|
226 |
overflow: hidden; |
06ee76
|
227 |
// box-shadow: 1px 1px 1px 2px #00000059; |
b505f3
|
228 |
|
06ee76
|
229 |
// -webkit-box-shadow: 0 12px 15px 0 rgba(0, 0, 0, 0.24), 0 17px 50px 0 rgba(0, 0, 0, 0.19); |
L |
230 |
// box-shadow: 0 12px 15px 0 rgba(0, 0, 0, 0.24), 0 17px 50px 0 rgba(0, 0, 0, 0.19); |
|
231 |
|
|
232 |
box-shadow: @card-box-shadow; |
|
233 |
-webkit-box-shadow: @card-box-shadow; |
|
234 |
transition: all .4s; |
|
235 |
-webkit-transition: all .6s; |
|
236 |
-moz-transition: all .6s; |
|
237 |
-o-transition: all .6s; |
|
238 |
-ms-transition: all .6s; |
|
239 |
} |
|
240 |
|
|
241 |
//div本体阴影 |
|
242 |
.blog-container:hover { |
|
243 |
transition: all .25s; |
|
244 |
-webkit-box-shadow: 0 0 0 rgba(0, 0, 0, 0.2), 0 0 0 rgba(255, 255, 255, 0.8), inset 9px 9px 15px rgba(0, 0, 0, 0.1), inset -9px -9px 15px rgba(255, 255, 255, 1); |
|
245 |
box-shadow: 0 0 0 rgba(0, 0, 0, 0.2), 0 0 0 rgba(255, 255, 255, 0.8), inset 9px 9px 15px rgba(0, 0, 0, 0.1), inset -9px -9px 15px rgba(255, 255, 255, 1); |
ad2b70
|
246 |
} |
L |
247 |
|
|
248 |
.show-line { |
|
249 |
border-top: 1px solid #999; |
|
250 |
} |
|
251 |
|
|
252 |
.blog-scroll { |
|
253 |
padding-top: 10px; |
|
254 |
max-height: 200px; |
|
255 |
|
|
256 |
overflow-x: hidden; |
|
257 |
overflow-y: overlay; |
|
258 |
} |
|
259 |
|
|
260 |
|
|
261 |
.blog-scroll:hover::-webkit-scrollbar { |
|
262 |
display: block; |
|
263 |
} |
|
264 |
|
|
265 |
.blog-scroll:hover::-webkit-scrollbar { |
|
266 |
display: block; |
|
267 |
} |
|
268 |
|
|
269 |
.blog-scroll::-webkit-scrollbar { |
|
270 |
width: 5px; |
|
271 |
display: none; |
|
272 |
} |
|
273 |
|
|
274 |
.blog-scroll::-webkit-scrollbar-thumb { |
|
275 |
background-color: rgba(153, 154, 170, 0.3); |
|
276 |
border-radius: 2px; |
|
277 |
} |
|
278 |
|
|
279 |
/*margin滚动条上偏移*/ |
|
280 |
.blog-scroll::-webkit-scrollbar-track { |
|
281 |
margin-top: 5px; |
|
282 |
margin-bottom: 5px; |
|
283 |
} |
|
284 |
</style> |