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

如何添加图片翻转后,保存操作? #157

Open
hopher opened this issue Dec 2, 2022 · 0 comments
Open

如何添加图片翻转后,保存操作? #157

hopher opened this issue Dec 2, 2022 · 0 comments

Comments

@hopher
Copy link

hopher commented Dec 2, 2022

问题

如何添加图片翻转后,保存操作?

tools 如何自定义扩展?如何覆写原有 onClick ?

https://github.com/react-component/image/blob/master/src/Preview.tsx

  const tools = [
    {
      icon: close,
      onClick: onClose,
      type: 'close',
    },
    {
      icon: zoomIn,
      onClick: onZoomIn,
      type: 'zoomIn',
    },
    {
      icon: zoomOut,
      onClick: onZoomOut,
      type: 'zoomOut',
      disabled: scale === 1,
    },
    {
      icon: rotateRight,
      onClick: onRotateRight,
      type: 'rotateRight',
    },
    {
      icon: rotateLeft,
      onClick: onRotateLeft,
      type: 'rotateLeft',
    },
  ];

image

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