Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

开启scroll-x后,滚动到底元素显示不完全 #181

Open
c-sopoo opened this issue Jan 3, 2025 · 4 comments
Open

开启scroll-x后,滚动到底元素显示不完全 #181

c-sopoo opened this issue Jan 3, 2025 · 4 comments
Labels
bug Something isn't working

Comments

@c-sopoo
Copy link

c-sopoo commented Jan 3, 2025

编译平台
使用HbuilderX还是npm方式编译出现的问题?(如:HbuilderX)
HbuilderX

VUE版本
在vue2还是vue3中出现的问题,是nvue还是vue?(如:vue2+nvue)
vue3

运行平台
在运行到哪个平台中出现的问题?(如:App、微信小程序、h5)
微信小程序

z-paging版本
在哪个版本的z-paging中出现的问题?
示例demo
问题描述
请详细描述问题,最好说明复现步骤,尽可能附上代码或截图

image
image

@SmileZXLee SmileZXLee added the bug Something isn't working label Jan 8, 2025
@SmileZXLee
Copy link
Owner

SmileZXLee commented Jan 8, 2025

经过测试和排查,是uni-app或者微信小程序官方的bug,目前只有微信小程序平台有这个问题。如果scroll-view中的scroll-y的值是通过data或者computed获取,就有这个问题。例如:

<template>
    <scroll-view style="height: 500px;" scroll-x :scroll-y="canScroll">
        <view class="" v-for="item in 100" style="width: 800px;">
            {{item}}
        </view>
    </scroll-view>
</template>

<script>
    export default {
        data() {
            return {
                canScroll: true
            }
        },
    }
</script>

即可复现问题。
目前只能等官方修复此问题,或者您手动修改z-paging源码中scroll-viewscroll-y属性,将其改为定值true也可以临时解决。

@c-sopoo
Copy link
Author

c-sopoo commented Jan 9, 2025

我后面发现微信小程序端在真机上(安卓,苹果不知道)是好的,开发者工具上就会有问题

@SmileZXLee
Copy link
Owner

苹果真机也有相同问题,我有试过

@c-sopoo
Copy link
Author

c-sopoo commented Jan 9, 2025

苹果真机也有相同问题,我有试过

😫感谢提醒

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants