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

feat: prew预览参数增加dragRebound属性,控制是否回弹到屏幕中心 #216

Open
keyus opened this issue Apr 7, 2023 · 0 comments

Comments

@keyus
Copy link

keyus commented Apr 7, 2023

https://github.com/ant-design/ant-design/issues/41652

1.Preview组件 props 增加dragRebound属性:
dragRebound?: boolean;

2.Operations组件 , tools新增一个刷新图标:
{ icon: refresh, onClick: onRefresh, type: 'refresh', },

用于控制图片回到屏幕中心,旋转角度重置为0,缩放大小重置,以及左右切换重置。

Wxh16144 pushed a commit to Wxh16144-forks/image that referenced this issue Apr 7, 2023
…react-component#216)

(cherry picked from commit 670d175)

# Conflicts:
#	src/Image.tsx
#	src/Preview.tsx
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