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