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

[bug-report] TabBar 横竖屏切换的时候reflow()方法不成功 #765

Open
virgoheRomAn opened this issue Jan 13, 2022 · 0 comments
Open

Comments

@virgoheRomAn
Copy link

Mand Mobile Version

2.5.20

Vue Version

2.6.11

Model / OS & Browser Info

安卓、苹果

Node Version, Package Management Tool

node 14.13.1/npm 7.14.0

Recurring Steps

在手机端打开时,切换横竖屏,TabBar的样式从横屏回到竖屏时出现错乱,监听了window.resize方法执行了TabBar.reflow(),但是并没有生效。

mounted() {
window.onresize = () => {
this.$refs["tab-bar"].reflow();
}
}

Expectant Behaviors

根据宽度变化自动计算样式

Actual Behaviors

重新计算样式并没有生效

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