inleft
2022-02-14 83fb3746908461d30e73471e7c7cbbd486e001b8
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'"
f9c38e 7                 :after-visible-change="afterVisibleChange" @close="onClose1" :zIndex="90" :width=300
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> -->
f9c38e 37                     <tool @showModal="showModal" @showDrawer1="showDrawer1" @showScreen="showScreen"></tool>
41b36f 38                 </a-col>
I 39             </a-row>
40         </div>
41
ad2b70 42     </div>
L 43 </template>
44
45 <script>
41b36f 46     import boxLeft from "../group/boxLeft.vue"
I 47     import boxRight from "../group/boxRight.vue"
aab811 48     import articleListScorll from "../group/articleListScorll.vue"
b505f3 49     import tool from "../group/tool.vue"
I 50     import MyModal from "../group/MyModal.vue"
41b36f 51
ad2b70 52     export default {
41b36f 53
ad2b70 54         components: {
L 55             boxLeft,
56             boxRight,
aab811 57             articleListScorll,
b505f3 58             tool,
I 59             MyModal,
ad2b70 60         },
d629d9 61         methods: {
f9c38e 62             showScreen() {
I 63                 if (this.screen) {
64                     //缩小
65                     this.colApiLeft.xxl.span = 0;
66                     this.colApiLeft.xxl.offset = 0;
67
68                     this.colApiMain.xxl.span = 17;
69                     this.colApiMain.xxl.offset = 4;
70                 } else {
71                     //放大
72                     this.colApiLeft.xxl.span = 4;
73                     this.colApiLeft.xxl.offset = 3;
74
75                     this.colApiMain.xxl.span = 11;
76                     this.colApiMain.xxl.offset = 2;
77                 }
78                 this.screen = !this.screen;
79
80             },
f5539f 81             showModal() {
b505f3 82                 this.$refs.myModal.showModal();
f5539f 83             },
41b36f 84             afterVisibleChange(val) {},
d629d9 85             showDrawer1() {
L 86                 this.visible1 = true;
87             },
88             onClose1() {
89                 this.visible1 = false;
90             },
b505f3 91
d629d9 92         },
ad2b70 93         data() {
L 94             return {
f9c38e 95                 screen: true,
d629d9 96                 visible1: false,
L 97                 visible2: false,
b505f3 98                 colMini: {
I 99                     xs: 1,
100                     sm: 1,
101                     md: 1,
102                     lg: 0,
103                     xl: 0,
104                     xxl: 0
105                 },
ad2b70 106                 colApiLeft: {
L 107                     xs: 0,
108                     sm: 0,
41b36f 109                     md: {
I 110                         span: 8,
111                     },
112                     lg: {
113                         span: 7,
114                         offset: 1,
115                     },
116                     xl: {
117                         span: 5,
118                         offset: 2,
119                     },
120                     xxl: {
121                         span: 4,
122                         offset: 3,
123                     },
ad2b70 124                 },
L 125                 colApiRight: {
126                     xs: 0,
127                     sm: 0,
128                     md: 0,
b505f3 129                     lg: 1,
I 130                     xl: 1,
131                     xxl: 1,
ad2b70 132                 },
L 133                 colApiMain: {
134                     xs: 24,
41b36f 135                     sm: {
I 136                         span: 20,
137                         offset: 2,
138                     },
139                     md: {
b505f3 140                         span: 15,
41b36f 141                         offset: 1,
I 142                     },
143                     lg: {
144                         span: 13,
145                         offset: 2,
146                     },
147                     xl: {
b505f3 148                         span: 13,
I 149                         offset: 2,
41b36f 150                     },
I 151                     xxl: {
b505f3 152                         span: 11,
I 153                         offset: 2,
41b36f 154                     },
ad2b70 155                 }
L 156             }
157         }
158     }
159 </script>
160
161 <style lang="less">
83fb37 162     @font-face {
I 163         font-family: 'HYTangMeiRen';
164         // font-display: swap;
165         src: url("https://unpkg.zhimg.com/fontawepro@latest/fonts/hytmr55.woff") format("truetype");
166     }
167
168     span,p,a,body,h1,h2,h3,h4,h5,h6,code {
169         font-family: HYTangMeiRen !important;
170     }
171
56a4b8 172     .swichTag {
41b36f 173         min-height: 750px;
56a4b8 174         padding: 30px 30px 10px;
I 175         border-radius: 15px;
f9c38e 176         box-shadow: 0 12px 15px 0 rgba(0, 0, 0, 0.24), 0 17px 50px 0 rgba(0, 0, 0, 0.19);
I 177         padding: 20px 30px 0px;
56a4b8 178     }
f5539f 179
L 180     .holdHeight {
aab811 181         min-height: 780px;
I 182     }
d629d9 183
L 184
ad2b70 185     .blog-main {
41b36f 186         margin-top: 80px;
ad2b70 187         padding-left: 5%;
L 188         padding-right: 5%;
189     }
190
191     /*左右两边的盒子容器*/
192     .blog-cell {
193         opacity: 0.8;
aab811 194         padding: 0px 14px 10px;
ad2b70 195     }
L 196
197     /*左边部分*/
198     .blog-left-side {
199         position: sticky;
200         // top: 80px;
41b36f 201         // padding-left: 2%;
ad2b70 202         /*padding-right: 2%;*/
L 203     }
204
205     /*中间部分*/
206     .blog-body {
207         padding-top: 10px;
208         /*padding-left: 3%;*/
209         /*padding-right: 3%;*/
210     }
211
212     /*右边部分*/
213     .blog-right-side {
214         position: sticky;
215         top: -19%;
216         padding-top: 10px;
217         /*padding-left: 2%;*/
218         /*padding-right: 2%;*/
219     }
220
221     div .blog-right-side-meta div {
222         padding-left: 6%;
223         padding-right: 6%;
224         margin-bottom: 3%;
225     }
226
227
06ee76 228     @card-box-shadow: 8px 8px 18px rgba(0, 0, 0, 0.1), -8px -8px 18px rgba(255, 255, 255, 1);
L 229
ad2b70 230     /*---------------------
L 231         |   核心盒子构成start   |
232         ------- ---------------*/
233     .blog-container {
234         border-radius: 15px;
06ee76 235         // background-color: #f5f8fa;
ad2b70 236         background-color: white;
L 237
238         line-height: 1.4;
239         white-space: nowrap;
240         /*规定段落中的文本不进行换行:*/
241         text-align: center;
242         padding-top: 20px;
243         padding-bottom: 20px;
83fb37 244         // max-height: 300px;
ad2b70 245         /*margin-top: 10px;*/
L 246         /*min-height: 200px;*/
247
248         // overflow-x: hidden;
249         // overflow-y: overlay;
250         // display: block;
251
252         padding-top: 10px;
253         padding-bottom: 20px;
83fb37 254         // overflow: hidden;
06ee76 255         // box-shadow: 1px 1px 1px 2px #00000059;
b505f3 256
06ee76 257         // -webkit-box-shadow: 0 12px 15px 0 rgba(0, 0, 0, 0.24), 0 17px 50px 0 rgba(0, 0, 0, 0.19);
L 258         // box-shadow: 0 12px 15px 0 rgba(0, 0, 0, 0.24), 0 17px 50px 0 rgba(0, 0, 0, 0.19);
259
260         box-shadow: @card-box-shadow;
261         -webkit-box-shadow: @card-box-shadow;
262         transition: all .4s;
263         -webkit-transition: all .6s;
264         -moz-transition: all .6s;
265         -o-transition: all .6s;
266         -ms-transition: all .6s;
83fb37 267         transition: height 2s;
I 268
06ee76 269     }
L 270
271     //div本体阴影
272     .blog-container:hover {
273         transition: all .25s;
274         -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);
275         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 276     }
L 277
278     .show-line {
279         border-top: 1px solid #999;
280     }
281
282     .blog-scroll {
283         padding-top: 10px;
284         overflow-x: hidden;
83fb37 285         overflow-y: hidden;
I 286
287         transition: height 1s;
288
ad2b70 289     }
L 290
291
292     .blog-scroll:hover::-webkit-scrollbar {
293         display: block;
294     }
295
296     .blog-scroll:hover::-webkit-scrollbar {
297         display: block;
298     }
299
300     .blog-scroll::-webkit-scrollbar {
301         width: 5px;
302         display: none;
303     }
304
305     .blog-scroll::-webkit-scrollbar-thumb {
306         background-color: rgba(153, 154, 170, 0.3);
307         border-radius: 2px;
308     }
309
310     /*margin滚动条上偏移*/
311     .blog-scroll::-webkit-scrollbar-track {
312         margin-top: 5px;
313         margin-bottom: 5px;
314     }
315 </style>