pages/user/user.vue
@@ -1,41 +1,8 @@ <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>