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"> |
56a4b8
|
65 |
.swichTag { |
I |
66 |
padding: 30px 30px 10px; |
|
67 |
background-color: white; |
|
68 |
border-radius: 15px; |
|
69 |
} |
|
70 |
|
|
71 |
.article-detail { |
|
72 |
max-height: 750px; |
|
73 |
overflow: overlay; |
|
74 |
} |
|
75 |
|
ad2b70
|
76 |
.blog-main { |
L |
77 |
padding-left: 5%; |
|
78 |
padding-right: 5%; |
|
79 |
} |
|
80 |
|
|
81 |
/*左右两边的盒子容器*/ |
|
82 |
.blog-cell { |
|
83 |
opacity: 0.8; |
|
84 |
padding: 0px 25px 10px; |
|
85 |
} |
|
86 |
|
|
87 |
/*左边部分*/ |
|
88 |
.blog-left-side { |
|
89 |
position: sticky; |
|
90 |
// top: 80px; |
|
91 |
padding-left: 2%; |
|
92 |
/*padding-right: 2%;*/ |
|
93 |
z-index: 100; |
|
94 |
} |
|
95 |
|
|
96 |
/*中间部分*/ |
|
97 |
.blog-body { |
|
98 |
padding-top: 10px; |
|
99 |
/*padding-left: 3%;*/ |
|
100 |
/*padding-right: 3%;*/ |
|
101 |
} |
|
102 |
|
|
103 |
/*右边部分*/ |
|
104 |
.blog-right-side { |
|
105 |
position: sticky; |
|
106 |
top: -19%; |
|
107 |
padding-top: 10px; |
|
108 |
/*padding-left: 2%;*/ |
|
109 |
/*padding-right: 2%;*/ |
|
110 |
z-index: 100; |
|
111 |
} |
|
112 |
|
|
113 |
div .blog-right-side-meta div { |
|
114 |
padding-left: 6%; |
|
115 |
padding-right: 6%; |
|
116 |
margin-bottom: 3%; |
|
117 |
} |
|
118 |
|
|
119 |
|
|
120 |
/*--------------------- |
|
121 |
| 核心盒子构成start | |
|
122 |
------- ---------------*/ |
|
123 |
.blog-container { |
|
124 |
border-radius: 15px; |
|
125 |
background-color: white; |
|
126 |
|
|
127 |
line-height: 1.4; |
|
128 |
white-space: nowrap; |
|
129 |
/*规定段落中的文本不进行换行:*/ |
|
130 |
text-align: center; |
|
131 |
padding-top: 20px; |
|
132 |
padding-bottom: 20px; |
|
133 |
max-height: 300px; |
|
134 |
/*margin-top: 10px;*/ |
|
135 |
/*min-height: 200px;*/ |
|
136 |
|
|
137 |
// overflow-x: hidden; |
|
138 |
// overflow-y: overlay; |
|
139 |
// display: block; |
|
140 |
|
|
141 |
padding-top: 10px; |
|
142 |
padding-bottom: 20px; |
|
143 |
overflow: hidden; |
|
144 |
box-shadow: 1px 1px 1px 2px #1196c459 |
|
145 |
} |
|
146 |
|
|
147 |
.show-line { |
|
148 |
border-top: 1px solid #999; |
|
149 |
} |
|
150 |
|
|
151 |
.blog-scroll { |
|
152 |
padding-top: 10px; |
|
153 |
max-height: 200px; |
|
154 |
|
|
155 |
overflow-x: hidden; |
|
156 |
overflow-y: overlay; |
|
157 |
} |
|
158 |
|
|
159 |
|
|
160 |
.blog-scroll:hover::-webkit-scrollbar { |
|
161 |
display: block; |
|
162 |
} |
|
163 |
|
|
164 |
.blog-scroll:hover::-webkit-scrollbar { |
|
165 |
display: block; |
|
166 |
} |
|
167 |
|
|
168 |
.blog-scroll::-webkit-scrollbar { |
|
169 |
width: 5px; |
|
170 |
display: none; |
|
171 |
} |
|
172 |
|
|
173 |
.blog-scroll::-webkit-scrollbar-thumb { |
|
174 |
background-color: rgba(153, 154, 170, 0.3); |
|
175 |
border-radius: 2px; |
|
176 |
} |
|
177 |
|
|
178 |
/*margin滚动条上偏移*/ |
|
179 |
.blog-scroll::-webkit-scrollbar-track { |
|
180 |
margin-top: 5px; |
|
181 |
margin-bottom: 5px; |
|
182 |
} |
|
183 |
</style> |