#
whycq
2022-09-22 7f6fc656fe079f4baaf0e7c5bf0fe64965af8c5b
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
<template>
    <view class="">
        <scroll-view class="scroll-Y">
        <button @click="open">点击</button>
        <y-popup ref="yPopup" title="输入内容">
            
        </y-popup>
        </scroll-view>
    </view>
</template>
 
<script>
    export default {
        data () {
            return {
                scrollY:true
            }
        },
        methods: {
            open() {
                this.$refs.yPopup.open('center')
            }
        }
    
    }
</script>
 
<style>
    .vv {
        width: 100%;height: 100rpx;
        
    }
    .bb {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        overflow: hidden;
    }
</style>