Skip to content

Commit

Permalink
修复popup中在微信小程序中真机调试滚动失效
Browse files Browse the repository at this point in the history
  • Loading branch information
jry committed Apr 10, 2024
1 parent de52dc4 commit 46d7b9f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 10 deletions.
10 changes: 2 additions & 8 deletions src/pages/componentsA/popup/popup.nvue
Original file line number Diff line number Diff line change
Expand Up @@ -47,13 +47,7 @@
width: ['bottom', 'top'].includes(popupData.mode) ? '750rpx' : '200px',
marginTop: ['left', 'right'].includes(popupData.mode) ? '480rpx' : '0',
}"
>
<up-button
type="success"
text="点我关闭"
customStyle="width: 200rpx"
@click="show = !show"
></up-button>
> <view style="height: 12vh;overflow-y: scroll;margin-bottom: 10px;"> <view v-for="i in 30"> 列表滚动{[i]} </view> </view> <view> <up-button type="success" text="点我关闭" customStyle="width: 200rpx" size="small" @click="show = !show" ></up-button> </view>
</view>
</up-popup>
</view>
Expand Down Expand Up @@ -177,6 +171,6 @@
height: 150px;
@include flex;
justify-content: center;
align-items: center;
align-items: center; flex-direction: column;
}
</style>
Expand Down
2 changes: 1 addition & 1 deletion src/uni_modules/uview-plus/components/u-popup/u-popup.vue
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
* @property {Boolean} overlay 是否显示遮罩 (默认 true )
* @property {String} mode 弹出方向(默认 'bottom' )
* @property {String | Number} duration 动画时长,单位ms (默认 300 )
* @property {String | Number} overlayDuration 遮罩层动画时长,单位ms (默认 350 )
* @property {String | Number} overlayDuration 遮罩层动画时长,单位ms (默认 350 )
* @property {Boolean} closeable 是否显示关闭图标(默认 false )
* @property {Object | String} overlayStyle 自定义遮罩的样式
* @property {String | Number} overlayOpacity 遮罩透明度,0-1之间(默认 0.5)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
@tap="clickHandler"
:class="classes"
:style="[mergeStyle]"
@touchmove.stop.prevent="noop"
@touchmove="noop"
>
<slot />
</view>
Expand Down

0 comments on commit 46d7b9f

Please sign in to comment.