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

onShow中重置列表报Cannot read properties of null (reading 'offsetWidth') #463

Open
xiao-shu-sheng opened this issue Apr 23, 2023 · 0 comments

Comments

@xiao-shu-sheng
Copy link

在onShow中重置列表,如果列表是空的话会报Cannot read properties of null (reading 'offsetWidth')这个错误,这个问题是由于空状态图片判断导致的,即是mescroll-empty.vue中这段代码 引起的问题,具体导致问题的是mode="widthFix"宽度不变,高度自动变化这个属性,我暂时将这个属性修改为aspectFill保持纵横比缩放图片,再这样的话不会出现报错,您这边打算如何处理这个问题

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant