-
Notifications
You must be signed in to change notification settings - Fork 358
fix(fake-arrow): 修复旋转箭头在safari 无法旋转 #2380
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
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Collaborator
Collaborator
|
🤔 向左转还是向右转呢 设计稿没这点🤣 |
Collaborator
|
原来这个是使用path修改动画的,需要确定统一的动画和旋转方向 |
Collaborator
Author
|
改了,跟原来一样上下翻转 |
HaixingOoO
approved these changes
Dec 27, 2025
Wesley-0808
approved these changes
Dec 27, 2025
Collaborator
|
其实还是不太一样的 这个改动方式是最早的实现方式,是设计侧没妥协才用d path 实现,不过确实safari没兼容
1.mov
2.mov |
Collaborator
|
也许可以再单独增加个transform的class 判断是UA 是safari 增加那transform的class 兼容 不要直接删掉d? |
Collaborator
那只能加个兼容性处理样式了 |
16 tasks
Wesley-0808
approved these changes
Jan 4, 2026
uyarn
approved these changes
Jan 4, 2026
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
🤔 这个 PR 的性质是?
🔗 相关 Issue
Tencent/tdesign-vue-next#6290
💡 需求背景和解决方案
问题原因:
原代码使用了 d: path('M3.75 10.2002L7.99274 5.7998L12.2361 10.0425');
CSS path() 函数在某些版本的 Safari 中支持不完整,特别是用于动态更改 SVG path 数据时
解决方案:
移除了不兼容的 path() 函数和 d 属性动画
改用 transform: scaleY(-1) 实现箭头翻转效果
保持了相同视觉效果,但使用更广泛支持的 CSS transform 属性
添加了 transform-origin: center 确保旋转中心正确
兼容性提升:
transform: scaleY(-1) 适配所有现代浏览器(含Safari),兼容性优异;实现垂直翻转效果更流畅稳定,且完全保留组件原有交互体验。
📝 更新日志
fix(Menu): 在
safari浏览器中点击展开图标没有变化本条 PR 不需要纳入 Changelog
☑️ 请求合并前的自查清单