Reproduction link
https://stackblitz.com/edit/react-rgqfh4?file=index.html
scale缩放情况下,整体错位了
官方的demo,直接body上scale缩放
What is expected?
希望不要错位
What is actually happening?
错位
| Environment | Info |
| ------------ | ------------ |
| antd | 5.18.3 |
| React | 18 |
| System | mac/windows |
| Browser | chrome |
4条答案
按热度按时间ee7vknir1#
Hello @zystudios. Please provide a online reproduction by forking codesandbox of antd@5.x or antd@4.x , or provide a minimal GitHub repository. Issues labeled by
Need Reproduce
will be closed if no activities in 3 days.你好 @zystudios,我们需要你提供一个在线的重现实例以便于我们帮你排查问题。你可以通过点击这里创建一个 antd@5.x 或 antd@4.x 的 codesandbox,或者提供一个最小化的 GitHub 仓库。3 天内未跟进此 issue 将会被自动关闭。
什么是最小化重现,为什么这是必需的?
8mmmxcuj2#
Start a new pull request in StackBlitz Codeflow .
vc9ivgsu3#
https://stackblitz.com/edit/react-rgqfh4?file=index.html
camsedfj4#
原因:body tranform:scale(0.6) 之后,tour定位的top和left也需要对应的缩小0.6倍,这样就不会错位了。需要修改底层依赖组件@rc-component/tour,已提交pr @afc163