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

希望image的预览组件能够支持图片恢复初预览时候的大小 #6549

Open
3 tasks done
xt925 opened this issue Nov 19, 2024 · 0 comments
Open
3 tasks done
Labels
feature request New feature or request

Comments

@xt925
Copy link

xt925 commented Nov 19, 2024

问题的清晰而简明的描述

目前我看了下,resizeToOriginalSize这个实际作用是恢复到图片本身的大小,在图片大于屏幕的时候,点击这个就会使图片超出屏幕,和用户预期不太相符,希望是能够有一个按钮,能够支持图片恢复到刚打开预览组件的时候的大小,目前尝试了直接手动清除style样式,但是代码里的scale等属性没改变,那点击放大缩小还是会有问题

建议的解决方案

也就是ImagePreview.tsx这个文件里,希望能够增加个按钮支持上述功能,最起码也希望能够提供一个重置scale,rotate等变量的函数暴露出来

备选方案

No response

附加上下文

20241119-180533

验证

  • 阅读 贡献指南
  • 阅读 文档
  • 检查是否已经存在请求相同功能的问题,以避免创建重复的问题。
@xt925 xt925 added the feature request New feature or request label Nov 19, 2024
@xt925 xt925 changed the title 希望image的预览组件能够支持图片恢复初预览时候的大小,目前我看了下,resizeToOriginalSize这个是恢复到图片本身的大小,和预期 希望image的预览组件能够支持图片恢复初预览时候的大小 Nov 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant