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