-
-
Notifications
You must be signed in to change notification settings - Fork 9.5k
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] floatingPanel 与 indexBar 配合使用时,indexBar 会有 BUG #12121
Comments
如果设置的高度达到整个屏幕的高度就不会有问题,猜测 indexBar 是根据整屏高度来计算的,代码暂时还没看懂,不过有点意思🤔 |
上面问题,参考下
问题应该是:transform 套了 fixed ,但是组件是这么设计的,嵌套就出问题了。 @chenjiahan 把 floatingPanel 的 transform 改成 bottom 来位移? |
抛开这个问题,感觉使用 transform 应该更好一些。可以考虑修改 indexBar 的相关逻辑。 |
如果能力上可以对齐的话,确实 bottom 可以适配更多场景。 不过 bottom 的渲染性能会差一些,不如 transform |
重现链接
https://codesandbox.io/s/vant-4-issue-template-forked-jm7rf2?file=/package.json&resolutionWidth=320&resolutionHeight=676
Vant 版本
4.5.0
描述一下你遇到的问题。
indexBar 的锚点浮动时会出现异位
重现步骤
代码所示:
设备/浏览器
chrome
The text was updated successfully, but these errors were encountered: