image icon indicating copy to clipboard operation
image copied to clipboard

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

Open hopher opened this issue 2 years ago • 0 comments

问题

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

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

hopher avatar Dec 02 '22 07:12 hopher