hookehuyr

fix 处理overlay遮罩锁定无法滚动问题

1 <!-- 1 <!--
2 * @Date: 2022-06-20 11:35:50 2 * @Date: 2022-06-20 11:35:50
3 * @LastEditors: hookehuyr hookehuyr@gmail.com 3 * @LastEditors: hookehuyr hookehuyr@gmail.com
4 - * @LastEditTime: 2022-06-20 16:51:47 4 + * @LastEditTime: 2022-06-20 17:03:32
5 * @FilePath: /tswj/src/components/LocalismBox/index.vue 5 * @FilePath: /tswj/src/components/LocalismBox/index.vue
6 * @Description: 调整作品方言弹框组件 6 * @Description: 调整作品方言弹框组件
7 --> 7 -->
8 <template> 8 <template>
9 - <van-overlay :show="show" z-index="1000"> 9 + <van-overlay :show="show" z-index="1000" :lock-scroll="false">
10 <div class="wrapper" @click.stop> 10 <div class="wrapper" @click.stop>
11 <div class="block"> 11 <div class="block">
12 <div class="close"> 12 <div class="close">
...@@ -200,8 +200,8 @@ const handleSubmit = () => { // 提交选择方言 ...@@ -200,8 +200,8 @@ const handleSubmit = () => { // 提交选择方言
200 } 200 }
201 .localism-list { 201 .localism-list {
202 margin-top: 2rem; 202 margin-top: 2rem;
203 - max-height: 20rem; 203 + height: 20rem;
204 - overflow: auto; 204 + overflow: scroll;
205 } 205 }
206 206
207 .bar { 207 .bar {
......