diff --git a/components/image/demo/toolbarRender.tsx b/components/image/demo/toolbarRender.tsx index 6cc9bef026..62b08a4751 100644 --- a/components/image/demo/toolbarRender.tsx +++ b/components/image/demo/toolbarRender.tsx @@ -1,6 +1,7 @@ import React from 'react'; import { DownloadOutlined, + UndoOutlined, RotateLeftOutlined, RotateRightOutlined, SwapOutlined, @@ -38,7 +39,15 @@ const App: React.FC = () => { _, { transform: { scale }, - actions: { onFlipY, onFlipX, onRotateLeft, onRotateRight, onZoomOut, onZoomIn }, + actions: { + onFlipY, + onFlipX, + onRotateLeft, + onRotateRight, + onZoomOut, + onZoomIn, + onReset, + }, }, ) => ( @@ -49,6 +58,7 @@ const App: React.FC = () => { + ), }} diff --git a/components/image/index.en-US.md b/components/image/index.en-US.md index 77bfb32fb4..36776aea39 100644 --- a/components/image/index.en-US.md +++ b/components/image/index.en-US.md @@ -156,6 +156,8 @@ type TransformAction = onRotateRight: () => void; onZoomOut: () => void; onZoomIn: () => void; + onReset: () => void; // support after 5.17.3 + onClose: () => void; }; transform: TransformType, current: number; diff --git a/components/image/index.zh-CN.md b/components/image/index.zh-CN.md index 4d7a9f953f..bc9c39116d 100644 --- a/components/image/index.zh-CN.md +++ b/components/image/index.zh-CN.md @@ -135,7 +135,8 @@ type TransformAction = | 'wheel' | 'doubleClick' | 'move' - | 'dragRebound'; + | 'dragRebound' + | 'reset'; ``` ### ToolbarRenderInfoType @@ -157,6 +158,8 @@ type TransformAction = onRotateRight: () => void; onZoomOut: () => void; onZoomIn: () => void; + onReset: () => void; // 5.17.3 δΉ‹εŽζ”―ζŒ + onClose: () => void; }; transform: TransformType, current: number; diff --git a/package.json b/package.json index 05d61f7ece..17406b70cf 100644 --- a/package.json +++ b/package.json @@ -137,7 +137,7 @@ "rc-drawer": "~7.1.0", "rc-dropdown": "~4.2.0", "rc-field-form": "~2.2.0", - "rc-image": "~7.7.0", + "rc-image": "~7.8.0", "rc-input": "~1.4.5", "rc-input-number": "~9.0.0", "rc-mentions": "~2.11.1",